shishi-1.0.3/0000755000000000000000000000000014273616165007764 500000000000000shishi-1.0.3/NEWS0000644000000000000000000007011014273615054010376 00000000000000Shishi NEWS -- History of user-visible changes. -*- outline -*- * Noteworthy changes in release 1.0.3 (2022-08-07) [stable] ** New header file shishi-version (included from shishi.h). Adds symbols SHISHI_VERSION_MAJOR, SHISHI_VERSION_MINOR, SHISHI_VERSION_PATCH and SHISHI_VERSION_NUMBER. ** Modernize build infrastructure. We now use gnulib's bootstrap. ** pam_shishi: Implement options 'debug', 'realm=', and 'principal='. By Mats Erik Andersson . ** Numerous other code cleanups, bug fixes, improved documentation, ** updated translations, and portability improvements. * Noteworthy changes in release 1.0.2 (2013-04-03) ** libshishi: Fix server-realm handling. Reported by Mats Erik Andersson . ** libshishi: Fix salt derivation for principals with multiple components. Before, when adding a principal such as "user/admin" using shisa it would use the wrong salt. Reported by Mats Erik Andersson . ** libshishi: Fix setting principals with multiple components in encticketpart. Before, the shishid KDC would return the wrong client principal name in a KDC-REP when principals such as "user/admin" were used. That would lead to errors when getting a ticket for such principals. Reported by Mats Erik Andersson . ** libshishi: Fixes to .k5login authorization. Patch by Mats Erik Andersson . ** shishid: The syslog facility is now LOG_AUTH instead of LOG_DAEMON. Suggested by Mats Erik Andersson . ** minitasn1: Removed. You must use an external installed libtasn1. With recent libtasn1 it is no longer trivial to build libtasn1 as copied source code files. ** Update gnulib files and various other fixes. * Noteworthy changes in release 1.0.1 (2012-03-12) ** Builds with GnuTLS 3.x. ** minitasn1: Internal copy upgraded to GNU Libtasn1 v2.11. ** Translation updates. Added Finnish translation, thanks to Jorma Karvonen. ** Update gnulib files. Many internal cleanups and improvements. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 1.0.0 (2010-05-20) ** doc: Added PDF version of API reference manual. See doc/reference/shishi.pdf. ** doc: Added Cyclomatic Code Complexity charts. See doc/cyclo/. ** build: Fix building with --disable-starttls. Reported by Johan van Selst in . ** minitasn1: Internal copy upgraded to GNU Libtasn1 v2.6. ** Doc fixes. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.43 (2010-03-30) ** libshishi, shishid: Make IPv6 support work. ** shishid: Add --no-tls parameter to disable TLS support. ** libshishi, shishid: STARTTLS extension negotiation now follows RFC 5021. ** doc: Fix spelling typos noticed by lintian. ** Update gnulib files. Including moving the 'stat' module from db/ to gl/ so that libshishi builds properly. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.42 (2010-03-15) ** libshishi: Add APIs to save keys on keytab format. The functions are shishi_keys_to_keytab_file and shishi_keys_to_keytab_mem. ** libshishi: Add APIs to retrieve/set the timestamp for a key. Typically only used by keytab format. The functions are shishi_key_timestamp and shishi_key_timestamp_set. ** libshishi: Add API to read several keys from a file. The function is shishi_keys_from_file. ** keytab2shishi: Add --reverse (-R) parameter to write Keytab files. This allows you to use create Keytab files from your Shishi hostkeys. ** libshishi: Fix bug where '3des' is parsed as 'des'. ** minitasn1: Internal copy upgraded to GNU Libtasn1 v2.5. ** API and ABI modifications: shishi_key_timestamp: ADD. shishi_key_timestamp_set: ADD. shishi_keys_from_file: ADD. shishi_keys_to_keytab_file: ADD. shishi_keys_to_keytab_mem: ADD. * Noteworthy changes in release 0.0.41 (2010-01-19) ** Add configuration keyword 'quick-random' to speed up libgcrypt. ** Fix libgcrypt detection (problem with libgpg-error dependency). ** Update many gnulib files. ** minitasn1: Internal copy upgraded to GNU Libtasn1 v2.4. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.40 (2009-04-03) ** shisa: Fix bug that made command line parameter parsing unreliable. ** Shishi can now be cross-compiled to Windows using MinGW. See for build scripts and pre-built binary packages. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.39 (2009-03-30) ** libshishi: The linker version script lists APIs explicitly. This will reduce the chance that a symbol is exported accidentally. ** libshisa: Use a LD version script on platforms where it is supported. Currently only GNU LD and the Solaris linker supports it. This helps Debian package tools to produce better dependencies. Before we used Libtool -export-symbols-regex that created an anonymous version tag. We still fall back on -export-symbols-regex if the system does not support LD version scripts, although on most platforms this will just affect symbol visibility. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.38 (2009-02-26) ** libshisa: Use libtool -export-symbols-regex to fix exported namespace. ** doc: Change license on the manual to GFDLv1.3+. ** minitasn1: Internal copy updated to libtasn1 v1.8. ** More compiler warnings enabled, and many warnings fixed. ** API and ABI modifications: No changes since last version. * Noteworthy changes in release 0.0.37 (2008-06-24) ** libshishi: New functions to set a password prompt callback. You register the callback using shishi_prompt_password_callback_set and can retrieve the current callback using shishi_prompt_password_callback_get. The callback function should follow the shishi_prompt_password_func function prototype. The shishi_prompt_password function has been updated to call the callbacks, if registered. Inspired by discussion with Graham Shaw . ** libshishi: New ticketset hint flag SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE. When this flag is passed to ticketset functions, it will never query the user for a password. Inspired by discussion with Graham Shaw . ** libshishi: When doing pre-authentication with a pre-seeded password, ** don't ask for a new password. Reported by Graham Shaw in . ** libshishi: add new function to debug print ASN.1 structures. shishi_asn1_print: ADD. ** libshishi: Cleanup type declaration of Shishi_asn1. Now it is mapped to ASN1_TYPE if you included libtasn1.h, otherwise to 'void*'. ** Update examples for new API. Now the examples are also built by default, so we notice any build failures for them. ** Translations files not stored directly in git to avoid merge conflicts. This allows us to avoid use of --no-location which makes the translation teams happier. ** Dist gdoc-error to avoid build failures when building modified sources. Reported by Graham Shaw in . ** Internal copy of libtasn1 updated to version 1.4. ** Update gnulib files. ** New APIs to deal with password queries. SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE shishi_prompt_password_callback_set shishi_prompt_password_callback_get shishi_prompt_password_func * Noteworthy changes in release 0.0.36 (2008-02-14) ** Fix warnings in generated man pages (silence lintian). ** Update gnulib files. * Noteworthy changes in release 0.0.35 (2008-02-07) ** Warnings about missing configuration files are only printed once. ** Fix debug message printing. ** Fix non-portable use of brace expansion in makefiles. * Noteworthy changes in release 0.0.34 (2008-01-16) ** Several code fixes for MinGW. A mingw build now compiles and passes the self-tests under Wine. ** When built under MinGW, generate a libshishi-XX.def using -Wl,--output-def. Useful when developing applications with Visual Studio. ** Use gettext 0.17. ** Update and re-factor gnulib files. There is now a new gnulib directory src/gl/ and db/gl/ for those modules that aren't needed by libshishi, but used by the command-line tools and libshisa, respectively. ** If syslog is not available, shishid is not built. Implementing an alternative logging mechanism is needed in order to re-enable building shishid on platforms that lack syslog. ** New types for DNS classes: SHISHI_DNS_IN: New #define. * Noteworthy changes in release 0.0.33 (2007-09-14) ** libpam_shishi: Don't echo password when reading it from console. Reported by Jack Bates . ** libpam_shishi: Save read password in PAM library for other modules. Reported by Jack Bates . ** Update translations. * Noteworthy changes in release 0.0.32 (2007-06-29) ** Shishi is now licensed under the GPL version 3 or later. ** Remove extra/inetutils.diff since the patch has been merged into InetUtils. ** Update gnulib files. * Noteworthy changes in release 0.0.31 (2007-06-11) ** Shishi is now developed using Git instead of CVS. A public git mirror is available from . ** Verify the KDC's certificate against a CA certificate in the client. The CA is by default stored in ~/.shishi/client.ca in PEM format. Suggested by Alberto Fondi . ** Update gnulib files. * Noteworthy changes in release 0.0.30 (2006-11-01) ** Update STARTTLS extension to match latest drafts. Shishi now implements draft-josefsson-krb-tcp-expansion-02.txt and draft-josefsson-kerberos5-starttls-02.txt. ** Fix failure when reading large integers from ASN.1 structure. This can manifest itself by giving error messages such as 'Replay protection value (nonce) differ between request and reply.'. Added a new self test "nonce" to detect errors in these routines. Reported by Alberto Fondi. * Noteworthy changes in release 0.0.29 (2006-11-01) ** Add man page for ccache2shishi. * Noteworthy changes in release 0.0.28 (2006-11-01) ** New command line tool "ccache2shishi". The tool will read tickets from /tmp/krb5cc_UID (by default) and will write them to ~/.shishi/tickets. ** A description of the ccache file format were added in doc/ccache.txt. ** A self-contained standalone parser of the ccache format added. See lib/ccache.h and lib/ccache.c. The intention is that they should be usable outside of Shishi, and it doesn't use any Shishi specific header files or functions. It also avoids heap memory handling. ** New APIs to read MIT ccache files. shishi_tkts_add_ccache_mem shishi_tkts_add_ccache_file shishi_tkts_from_ccache_mem shishi_tkts_from_ccache_file ** New APIs to support ccache reading. shishi_enckdcreppart_authtime_set shishi_enckdcreppart_starttime_set shishi_enckdcreppart_renew_till_set shishi_tkts_default_ccache_guess shishi_tkts_default_ccache shishi_tkts_default_ccache_set ** Fix build errors for missing arcfour_stream when using --with-libgcrypt. Reported by abhijit mitra . * Noteworthy changes in release 0.0.27 (2006-09-15) ** New command line tool "keytab2shishi". The tool will read host keys from /etc/krb5.keytab (by default) and will write them to $(prefix)/etc/shishi.keys. ** New APIs to read MIT keytab files. Thanks to Michael B Allen who reverse-engineered the format and published a freely licensed description, available from . The APIs are shishi_keys_add_keytab_mem, shishi_keys_add_keytab_file, shishi_keys_from_keytab_mem, and shishi_keys_from_keytab_file. ** New APIs to manage set of keys. shishi_keys shishi_keys_done shishi_keys_size shishi_keys_nth shishi_keys_remove shishi_keys_add shishi_keys_print shishi_keys_to_file ** Libtasn1 updated to 0.3.6. This fixes a bug that caused self-test failures in Shishi on 64-bit platforms. ** Remove path from syslog messages for shishid. ** Update of gnulib files. ** Some minor code cleanups. * Noteworthy changes in release 0.0.26 (2006-05-15) ** Requests for service tickets (TGS) are now sent without a sub-session key. This solves interop problems with Windows 2003 and Heimdal, thanks to Elrond for debugging. ** Fix buggy MD4 implementation on 64-bit platforms. ** The Shishi PAM module in extra/pam-shishi/ is now built by default. The installation path has also been changed to $prefix/lib/security, but you can change it with `configure --with-pam-dir=/somewhere/else' or `make install PAMDIR=/somewhere/else'. ** Fix mem leaks. ** Self-tests are now run under valgrind, if it is installed. ** Updated Polish translation, thanks to Jakub Bogusz. * Noteworthy changes in release 0.0.25 (2006-04-27) ** Fix bug in code to get service tickets. The problem was in the libtasn1 DER encoder which include ASN.1 tags for SEQUENCE members when calling asn1_der_coding() on a SEQUENCE element, thanks to Elrond for debugging. ** Improved handling of key versions. Shishi should not send kvno for a session keys in TGS requests any more. Internally, the UINT32_MAX kvno is now used to denote a "kvno"-less (i.e., non-permenant) key, earlier 0 was used which collided with the perfectly valid real kvno of 0. ** Improved translation of messages in shishi. ** Doc fixes. * Noteworthy changes in release 0.0.24 (2006-04-22) ** Fix bug in shishid which caused it to listen on standard input and crash. ** Pre-authentication support. Only the PA-ENC-TIMESTAMP, ETYPE-INFO and ETYPE-INFO2 mechanisms are supported. Tested againt MIT, Heimdal, and Windows 2003 KDCs. ** Clarified the copyright on lib/kerberos5.asn1. ** Updated gnulib compatibility files. ** Fix some memory leaks and crashes. * Noteworthy changes in release 0.0.23 (2006-03-25) ** Debian packages are available from http://josefsson.org/shishi/debian/ Thanks to Russ Allbery, Yvan Bassuel and Elrond for help on the Debian packaging. ** Added shishi_derive_default_salt and shishi_key_from_name APIs. Used to create a key from principal and password. Suggested by Elrond . ** Replace internal crypto code with modules from gnulib. ** Added shared library versioning script, suggested by Steve Langasek. ** Improved libidn detection code. ** The manual doesn't have any invariant sections. ** Updated gnulib compatibility files. ** Updated libtasn1. ** Minor bugfixes and improvements. * Noteworthy changes in release 0.0.22 (2005-08-10) ** Fix build error when STARTTLS support is enabled. ** The help-shishi@gnu.org mailing list is now mentioned in documentation. ** Should now build with objdir != srcdir on systems that lack stdbool.h. ** The license template in files were updated with the new FSF address. ** The internal libtasn1 copy was updated to version 0.2.14. ** Gnulib files updated, and uses within the library updated. * Noteworthy changes in release 0.0.21 (2004-12-17) ** Libtasn1 updated to 0.2.13. ** Gnulib files updated, and uses within the library updated. ** Fix srcdir != objdir building, reported by Mike Castle. * Noteworthy changes in release 0.0.20 (2004-11-21) ** Fix formatting of man pages, based on warnings from Doclifter. ** Updated gnulib compatibility files. * Noteworthy changes in release 0.0.19 (2004-11-12) ** Documentation improvements. For example, you can now browse the Shishi API manual using DevHelp. ** Updated gnulib compatibility files. * Noteworthy changes in release 0.0.18 (2004-10-15) ** When generating an AP-REP, the generated EncAPRepPart is now remembered. ** Fix some memory leaks. ** Revamp of autogenerated documentation. ** Documentation improvements. ** Included libtasn1 updated to 0.2.11. ** ASN.1 API cleanup: shishi_new_a2d: RENAMED to shishi_asn1_to_der. shishi_a2d_new_field: RENAMED to shishi_asn1_to_der_field. shishi_a2d, shishi_a2d_field: REMOVED. shishi_asn1_read: RENAMED to shishi_asn1_read_inline. shishi_asn1_read2: RENAMED to shishi_asn1_read. shishi_asn1_read2_optional: RENAMED to shishi_asn1_read_optional. shishi_asn1_read_optional: MODIFIED, now allocate output. ** Various other API fixes. Functions that take fixed size buffers have been replaced by functions that allocate dynamically sized buffer of the correct length. * Noteworthy changes in release 0.0.17 (2004-08-08) ** Revamp of gnulib compatibility files. ** Fix warnings. * Noteworthy changes in release 0.0.16 (2004-08-01) ** New environment variables to override defaults in Shishi library. SHISHI_USER specifies default client username, SHISHI_HOME specifies user Shishi home directory (for configuration file, ticket cache, etc), SHISHI_TICKETS the ticket cache file, SHISHI_CONFIG for the system configuration file, SHISHI_KEYS for system wide host keys. ** Experimental KDC now handle non-default ticket life time. ** Nettle is now preferred over Libgcrypt, even if Libgcrypt is available. Use configure parameter --with-libgcrypt to override. Nettle is the minimalistic crypto library included with Shishi. ** The pkg-config script no longer use the linker parameter -R. ** Libtasn1 updated to 0.2.10. ** Many gnulib compatibility files were updated. ** Cross compile builds should work. It should work for any sane cross compile target, but the only tested platform is uClibc/uClinux on Motorola Coldfire. * Noteworthy changes in release 0.0.15 (2004-04-18) ** Sequence numbers in Authenticator and EncAPRepPart are now randomized. ** Low-level fixes of AES Cipher Text Stealing mode. Also added more AES/CTS self tests. ** Configuration tokens spelled correctly ("verbose-noice" -> "verbose-noise"). ** Polish translation added, by Jakub Bogusz. ** Various bugfixes and cleanups. * Noteworthy changes in release 0.0.14 (2004-01-22) ** High-level AP interface now support setting raw checksum field values. This is needed for certain applications that, like GSS-API, put non-standard data in the checksum field of the Authenticator in a AP-REQ. ** Various minor bugfixes. * Noteworthy changes in release 0.0.13 (2004-01-15) ** Fixed salt calculation in shisa. The earlier salt computed was incorrect, so existing keys in your Shisa database, that were derived from passwords, are incorrect, and should be changed. ** Fixed shisa key file parser to handle keys with leading whitespace. The parser used fscanf, which skip whitespace. If your cryptographic key (not passwords), in binary format, had leading whitespace, it would fail to read the correct key. ** Fix shishid crash on startup when sockets can't be opened. ** Various minor bugfixes. * Noteworthy changes in release 0.0.12 (2004-01-02) ** The user database library Shisa has been improved. Shisa now support multiple keys for users, and you can now selectively add and remove keys via the command line interface. ** The Shishi client and Shishid KDC now support TLS resumption. This improve TLS handshake speed, in particular for the normal AS plus TGS combination. Currently the TLS resume database is only stored in memory, so if either the client or server process is restarted, the TLS resume information is lost. This add --resume-limit to Shishid, which can be used to specify the size of the TLS resume database (or to disable it). ** The KDC has been cleaned up and the error handling is more robust. ** The Shisa programming API is documented in the manual. * Noteworthy changes in release 0.0.11 (2003-12-21) ** The Shishi library now support X.509 authenticated KDC connections via TLS. The client currently do not check server authentication, however this is no worse than existing UDP/TCP connections. If client certificates are available, the X.509 client certificate is simply sent (via TLS handshake) to the KDC for possible pre-authentication purposes. ** The KDC now support X.509 authentication. If server certificates are available, X.509 authenticated TLS may be negotiated. The KDC currently only use the client certificate details for logging purposes. However, it do verify client certificate against CA certificates, if those are available. ** The KDC has been cleaned up and the error handling is more robust. * Noteworthy changes in release 0.0.10 (2003-12-16) ** The TLS support in Shishid now works. ** All command line interfaces now uses getopt instead of argp. * Noteworthy changes in release 0.0.9 (2003-12-12) ** An information storage system added, called Shisa. Shisa is used by KDCs (e.g., Shishid) to find information about principals. Shisa can be extended to support various backends, such as LDAP and SQL databases, but currently only a file system based database is supported. Shisa consists of two parts, a library (libshisa, see db/) and a command line tool (shisa, see src/). Shisa is designed to be concurrent write safe, i.e., multiple writers to the same database is permitted. This is very much work in progress. ** A new tool 'shisa' added to add/remove/list/modify the Shisa database. ** The Administration and Reference Manual has been (re)written. There is now a step-by-step walk-through on creating the database for a new realm, adding a few principals, starting the server and testing it by getting tickets. ** Shishid (the KDC server) now read keys via the Shisa database. The old hostkeys-alike file based "database" is no longer supported. ** A sample Shisa database and host keys are created during installation. The default realm name (typically your hostname) is used, which might not be what you prefer, but should get you started. ** Improve behaviour with poorly synchronized clocks. Earlier newly acquired tickets were discarded if they were not yet valid when you acquire them. Now tickets are only discarded when their end time is in the past. ** Support for DES and 3DES without integrity checking re-added. Those encryption algorithms are needed by GSS Wrap/Unwrap, but was accidently removed from Shishi during an earlier cleanup. ** When Libgcrypt is used, ARCFOUR now handle streamed operations. This is needed for, e.g., rsh in the Shishi patched version of GNU InetUtils. ** Paths to configurations files and host keys changed. The configuration files and host keys are now stored (by default, but see next entry) in $prefix/etc/shishi/, instead of, as it was before, in $prefix/etc (for configuration and host keys) and $prefix/share/shishi (for user configuration file template). ** Paths to configurations, host keys and the database root now configurable. The configure parameters --with-conf-dir, --with-skel-dir, --with-key-dir, and --with-db-dir can be used to specify the location of shishi.conf and shisa.conf (system configuration files), shishi.skel (user configuration file template), shishi.keys (host specific keys) and the Shisa database root, respectively. ** IANA allocated Telnet Encrypt command 12 for the AES-CCM mode. ** Autoconf 2.59, Automake 1.8, and Libtool from CVS is used. ** Some more self tests were added. * Noteworthy changes in release 0.0.8 (2003-10-16) ** Passwords are processed with SASLprep instead of KRBprep. ** Authorization improvements. ** Documentation additions. Protocol descriptions for STARTTLS, AES-CCM encrypted telnet, and Shishi rsh/rlogin. ** Support for upgrading TCP connections to KDC to TLS supported (STARTTLS). STARTTLS support will be compiled in automatically, if you have GNUTLS installed, but can be disabled unconditionally by configuring with --disable-tls. Use the 'realm-kdc' configuration token to specify which KDCs the client should use it against, e.g., 'realm-kdc=MYREALM.ORG,kdc.myrealm.org/tls'. * Noteworthy changes in release 0.0.7 (2003-09-21) ** Encryption types can now be referred to using shorter aliases. E.g., you can write "aes" instead of "aes256-cts-hmac-sha1-96". ** ARCFOUR encryption support according to draft-brezak-win2k-krb-rc4-hmac-04. ** DES-CBC-CRC now works. * Noteworthy changes in release 0.0.6 (2003-09-14) ** Proxiable, proxy, forwardable and forwarded tickets supported. See the User Manual for discussion and examples. ** Man pages for all public functions are included. ** Installed versions of Libgcrypt and libtasn1 used where possible. Shishi need Libgcrypt 1.1.44 or later, and libtasn1 0.2.5 or later. If a usable version is not found, the internal Nettle (crypto/) and/or libminitasn1 (asn1/) libraries are used instead. ** It is possible to enable and disable part of the system at compile time. See --disable-des, --disable-3des, --disable-aes, --disable-md, --disable-null, and --enable-arcfour. ** The internal crypto interface now fully modularized. If you wish to add support for a new low-level cryptographic library, to, e.g., utilize specialized hardware, it is now easy to do so. Two wrappers for Nettle (lib/nettle.c) and Libgcrypt (lib/libgcrypt.c) are included. ** Logging destination for warnings and informational messages can be changed. By default, message are sent to stderr for clients, and syslog for servers. See the new API functions shishi_outputtype and shishi_set_outputtype for more information. * Noteworthy changes in release 0.0.5 (2003-09-07) ** Server host name to realm mapping via DNS supported. ** SAFE functions improved. Example code of a client using integrity protected application data exchanges is in examples/client-safe.c and examples/server.c. ** PRIV functions added. Example code of a client using privacy protected application data exchanges is in examples/client-priv.c. ** Documentation improvements. E.g., a reference manual was added, that document the configuration file, and the shishi and shishid parameters. ** Various API changes. * Noteworthy changes in release 0.0.4 (2003-08-31) ** The rsh/rlogin client 'rsh-redone' ported to Shishi, by Nicolas Pouvesle. The client is located in extra/rsh-redone/. It supports authentication and encryption. It interoperate with other implementations. ** Authenticator subkeys are supported, and is used by default in AP/TGS. Some KDCs does not understand subkeys in TGS requests, and use the session key instead. Shishi detect and work around this problem but prints a warning. ** Simplistic key distribution center (KDC) is working. See the Administration Manual for a walk through on how to get it up and running. ** Various API changes. * Noteworthy changes in release 0.0.3 (2003-08-22) ** Documentation fixes. ** Cleanups. * Noteworthy changes in release 0.0.2 (2003-08-17) ** Command line handling of the 'shishi' application rewritten. See the (updated) user manual and --help output for the new story. ** It is possible to acquire renewable tickets. ** Example client and server included. Application data protection is not supported, but authentication is demonstrated. The files are in src/client.c and src/server.c. ** New configuration verbs: 'ticket-life' and 'renew-life'. ** AES ciphers didn't work when nettle was used. ** Cleanups, bug fixes and improved portability. * Noteworthy changes in release 0.0.1 (2003-08-10) ** InetUtils copy removed. The patches (also found in extra/inetutils.diff) are forwarded upstream. ** Libidn copy removed. Libidn is optional, but recommended. It is used automatically if present on your system. ** Gettext not included. Due to some conflicts between libtool and gettext, if you want i18n on platforms that does not already have a useful gettext implementation, you can install GNU gettext before building this package. If you don't care about i18n, this package should work fine (except for i18n, of course). ** Low-level crypto uses nettle if libgcrypt is not installed. Libgcrypt is not shipped with Shishi any more, instead a more streamlined crypto implementation based on nettle is included. Specify --with-libgcrypt to use libgcrypt. ** Libtasn1 updated and replaced by "minitasn1" from gnutls. Specify --with-system-libtasn1 to link with the installed libtasn1, if you have it. ** KDC addresses are now found via DNS SRV RRs as a last resort. This is only enabled if libresolv and resolv.h is found on your system. ** Argp and other compatibility files replaced by gl/ directory. ** Cleanups, bug fixes and various improvements. * Noteworthy changes in release 0.0.0 (2003-06-02) ** Initial release ---------------------------------------------------------------------- Copyright (C) 2002-2022 Simon Josefsson Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. shishi-1.0.3/THANKS0000644000000000000000000000172114273600463010612 00000000000000Shishi THANKS -- Acknowledgements. Copyright (C) 2002-2022 Simon Josefsson See the end for copying conditions. Shishi uses Libtasn1 by Fabio Fiorina, Libgcrypt and Libgpg-error by Werner Koch, Libidn by Simon Josefsson, and gdoc by Michael Zucchi. Several GNU packages simplified development considerably, those packages include Autoconf, Automake, Libtool, Gnulib, Gettext, Indent, Texinfo, Help2man and Emacs. Historically we have used CVS, but today Git is used. Bug reports, patches and/or suggestions were also received from: Nicolas Pouvesle Jakub Bogusz Adrian Bunk Mike Castle Dave Love Yvan Bassuel Elrond Russ Allbery Abhijit Mitra Alberto Fondi Jack Bates Graham Shaw Johan van Selst Mats Erik Andersson Eray Aslan ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. shishi-1.0.3/maint.mk0000644000000000000000000020404314273615074011346 00000000000000# -*-Makefile-*- # This Makefile fragment tries to be general-purpose enough to be # used by many projects via the gnulib maintainer-makefile module. ## Copyright (C) 2001-2022 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . # This is reported not to work with make-3.79.1 # ME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) ME := maint.mk # These variables ought to be defined through the configure.ac section # of the module description. But some packages import this file directly, # ignoring the module description. AWK ?= awk GREP ?= grep SED ?= sed # Helper variables. _empty = _sp = $(_empty) $(_empty) # _equal,S1,S2 # ------------ # If S1 == S2, return S1, otherwise the empty string. _equal = $(and $(findstring $(1),$(2)),$(findstring $(2),$(1))) # member-check,VARIABLE,VALID-VALUES # ---------------------------------- # Check that $(VARIABLE) is in the space-separated list of VALID-VALUES, and # return it. Die otherwise. member-check = \ $(strip \ $(if $($(1)), \ $(if $(findstring $(_sp),$($(1))), \ $(error invalid $(1): '$($(1))', expected $(2)), \ $(or $(findstring $(_sp)$($(1))$(_sp),$(_sp)$(2)$(_sp)), \ $(error invalid $(1): '$($(1))', expected $(2)))), \ $(error $(1) undefined))) # Do not save the original name or timestamp in the .tar.gz file. # Use --rsyncable if available. gzip_rsyncable := \ $(shell gzip --help 2>/dev/null|$(GREP) rsyncable >/dev/null \ && printf %s --rsyncable) GZIP_ENV = '--no-name --best $(gzip_rsyncable)' GIT = git VC = $(GIT) VC_LIST = $(srcdir)/$(_build-aux)/vc-list-files -C $(srcdir) # You can override this variable in cfg.mk if your gnulib submodule lives # in a different location. gnulib_dir ?= $(shell if test -f $(srcdir)/gnulib/gnulib-tool; then \ echo $(srcdir)/gnulib; \ else \ echo ${GNULIB_SRCDIR}; \ fi) # You can override this variable in cfg.mk to set your own regexp # matching files to ignore. VC_LIST_ALWAYS_EXCLUDE_REGEX ?= ^$$ # This is to preprocess robustly the output of $(VC_LIST), so that even # when $(srcdir) is a pathological name like "....", the leading sed command # removes only the intended prefix. _dot_escaped_srcdir = $(subst .,\.,$(srcdir)) # Post-process $(VC_LIST) output, prepending $(srcdir)/, but only # when $(srcdir) is not ".". ifeq ($(srcdir),.) _prepend_srcdir_prefix = else _prepend_srcdir_prefix = | $(SED) 's|^|$(srcdir)/|' endif # In order to be able to consistently filter "."-relative names, # (i.e., with no $(srcdir) prefix), this definition is careful to # remove any $(srcdir) prefix, and to restore what it removes. _sc_excl = \ $(or $(exclude_file_name_regexp--$@),^$$) VC_LIST_EXCEPT = \ $(VC_LIST) | $(SED) 's|^$(_dot_escaped_srcdir)/||' \ | if test -f $(srcdir)/.x-$@; then $(GREP) -vEf $(srcdir)/.x-$@; \ else $(GREP) -Ev -e "$${VC_LIST_EXCEPT_DEFAULT-ChangeLog}"; fi \ | $(GREP) -Ev -e '($(VC_LIST_ALWAYS_EXCLUDE_REGEX)|$(_sc_excl))' \ $(_prepend_srcdir_prefix) ifeq ($(origin prev_version_file), undefined) prev_version_file = $(srcdir)/.prev-version endif PREV_VERSION := $(shell cat $(prev_version_file) 2>/dev/null) VERSION_REGEXP = $(subst .,\.,$(VERSION)) PREV_VERSION_REGEXP = $(subst .,\.,$(PREV_VERSION)) ifeq ($(VC),$(GIT)) this-vc-tag = v$(VERSION) this-vc-tag-regexp = v$(VERSION_REGEXP) else tag-package = $(shell echo "$(PACKAGE)" | tr '[:lower:]' '[:upper:]') tag-this-version = $(subst .,_,$(VERSION)) this-vc-tag = $(tag-package)-$(tag-this-version) this-vc-tag-regexp = $(this-vc-tag) endif my_distdir = $(PACKAGE)-$(VERSION) # Old releases are stored here. release_archive_dir ?= ../release # If RELEASE_TYPE is undefined, but RELEASE is, use its second word. # But overwrite VERSION. ifdef RELEASE VERSION := $(word 1, $(RELEASE)) RELEASE_TYPE ?= $(word 2, $(RELEASE)) endif # Validate and return $(RELEASE_TYPE), or die. RELEASE_TYPES = alpha beta stable release-type = $(call member-check,RELEASE_TYPE,$(RELEASE_TYPES)) # Override gnu_rel_host and url_dir_list in cfg.mk if these are not right. # Use alpha.gnu.org for alpha and beta releases. # Use ftp.gnu.org for stable releases. gnu_ftp_host-alpha = alpha.gnu.org gnu_ftp_host-beta = alpha.gnu.org gnu_ftp_host-stable = ftp.gnu.org gnu_rel_host ?= $(gnu_ftp_host-$(release-type)) url_dir_list ?= $(if $(call _equal,$(gnu_rel_host),ftp.gnu.org), \ https://ftpmirror.gnu.org/$(PACKAGE), \ https://$(gnu_rel_host)/gnu/$(PACKAGE)) # Override this in cfg.mk if you are using a different format in your # NEWS file. today = $(shell date +%Y-%m-%d) # Select which lines of NEWS are searched for $(news-check-regexp). # This is a sed line number spec. The default says that we search # lines 1..10 of NEWS for $(news-check-regexp). # If you want to search only line 3 or only lines 20-22, use "3" or "20,22". news-check-lines-spec ?= 1,10 news-check-regexp ?= '^\*.* $(VERSION_REGEXP) \($(today)\)' # Prevent programs like 'sort' from considering distinct strings to be equal. # Doing it here saves us from having to set LC_ALL elsewhere in this file. export LC_ALL = C ## --------------- ## ## Sanity checks. ## ## --------------- ## ifneq ($(_gl-Makefile),) _cfg_mk := $(wildcard $(srcdir)/cfg.mk) # Collect the names of rules starting with 'sc_'. syntax-check-rules := $(sort $(shell env LC_ALL=C $(SED) -n \ 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(srcdir)/$(ME) $(_cfg_mk))) .PHONY: $(syntax-check-rules) ifeq ($(shell $(VC_LIST) >/dev/null 2>&1; echo $$?),0) local-checks-available += $(syntax-check-rules) else local-checks-available += no-vc-detected no-vc-detected: @echo "No version control files detected; skipping syntax check" endif .PHONY: $(local-checks-available) # Arrange to print the name of each syntax-checking rule just before running it. $(syntax-check-rules): %: %.m sc_m_rules_ = $(patsubst %, %.m, $(syntax-check-rules)) .PHONY: $(sc_m_rules_) $(sc_m_rules_): @echo $(patsubst sc_%.m, %, $@) @date +%s.%N > .sc-start-$(basename $@) # Compute and print the elapsed time for each syntax-check rule. sc_z_rules_ = $(patsubst %, %.z, $(syntax-check-rules)) .PHONY: $(sc_z_rules_) $(sc_z_rules_): %.z: % @end=$$(date +%s.%N); \ start=$$(cat .sc-start-$*); \ rm -f .sc-start-$*; \ $(AWK) -v s=$$start -v e=$$end \ 'END {printf "%.2f $(patsubst sc_%,%,$*)\n", e - s}' < /dev/null # The patsubst here is to replace each sc_% rule with its sc_%.z wrapper # that computes and prints elapsed time. local-check := \ $(patsubst sc_%, sc_%.z, \ $(filter-out $(local-checks-to-skip), $(local-checks-available))) syntax-check: $(local-check) endif # _sc_search_regexp # # This macro searches for a given construct in the selected files and # then takes some action. # # Parameters (shell variables): # # prohibit | require # # Regular expression (ERE) denoting either a forbidden construct # or a required construct. Those arguments are exclusive. # # exclude # # Regular expression (ERE) denoting lines to ignore that matched # a prohibit construct. For example, this can be used to exclude # comments that mention why the nearby code uses an alternative # construct instead of the simpler prohibited construct. # # in_vc_files | in_files # # grep-E-style regexp selecting the files to check. For in_vc_files, # the regexp is used to select matching files from the list of all # version-controlled files; for in_files, it's from the names printed # by "find $(srcdir)". When neither is specified, use all files that # are under version control. # # containing | non_containing # # Select the files (non) containing strings matching this regexp. # If both arguments are specified then CONTAINING takes # precedence. # # with_grep_options # # Extra options for grep. # # ignore_case # # Ignore case. # # halt # # Message to display before to halting execution. # # Finally, you may exempt files based on an ERE matching file names. # For example, to exempt from the sc_space_tab check all files with the # .diff suffix, set this Make variable: # # exclude_file_name_regexp--sc_space_tab = \.diff$ # # Note that while this functionality is mostly inherited via VC_LIST_EXCEPT, # when filtering by name via in_files, we explicitly filter out matching # names here as well. # Initialize each, so that envvar settings cannot interfere. export require = export prohibit = export exclude = export in_vc_files = export in_files = export containing = export non_containing = export halt = export with_grep_options = # By default, _sc_search_regexp does not ignore case. export ignore_case = _ignore_case = $$(test -n "$$ignore_case" && printf %s -i || :) define _sc_say_and_exit dummy=; : so we do not need a semicolon before each use; \ { printf '%s\n' "$(ME): $$msg" 1>&2; exit 1; }; endef define _sc_search_regexp dummy=; : so we do not need a semicolon before each use; \ \ : Check arguments; \ test -n "$$prohibit" && test -n "$$require" \ && { msg='Cannot specify both prohibit and require' \ $(_sc_say_and_exit) } || :; \ test -z "$$prohibit" && test -z "$$require" \ && { msg='Should specify either prohibit or require' \ $(_sc_say_and_exit) } || :; \ test -z "$$prohibit" && test -n "$$exclude" \ && { msg='Use of exclude requires a prohibit pattern' \ $(_sc_say_and_exit) } || :; \ test -n "$$in_vc_files" && test -n "$$in_files" \ && { msg='Cannot specify both in_vc_files and in_files' \ $(_sc_say_and_exit) } || :; \ test "x$$halt" != x \ || { msg='halt not defined' $(_sc_say_and_exit) }; \ \ : Filter by file name; \ if test -n "$$in_files"; then \ files=$$(find $(srcdir) | $(GREP) -E "$$in_files" \ | $(GREP) -Ev '$(_sc_excl)'); \ else \ files=$$($(VC_LIST_EXCEPT)); \ if test -n "$$in_vc_files"; then \ files=$$(echo "$$files" | $(GREP) -E "$$in_vc_files"); \ fi; \ fi; \ \ : Filter by content; \ test -n "$$files" \ && test -n "$$containing" \ && { files=$$(echo "$$files" | xargs $(GREP) -l "$$containing"); } \ || :; \ test -n "$$files" \ && test -n "$$non_containing" \ && { files=$$(echo "$$files" | xargs $(GREP) -vl "$$non_containing"); } \ || :; \ \ : Check for the construct; \ if test -n "$$files"; then \ if test -n "$$prohibit"; then \ echo "$$files" \ | xargs $(GREP) $$with_grep_options $(_ignore_case) -nE \ "$$prohibit" /dev/null \ | $(GREP) -vE "$${exclude:-^$$}" \ && { msg="$$halt" $(_sc_say_and_exit) } \ || :; \ else \ echo "$$files" \ | xargs \ $(GREP) $$with_grep_options $(_ignore_case) -LE "$$require" \ | $(GREP) . \ && { msg="$$halt" $(_sc_say_and_exit) } \ || :; \ fi \ else :; \ fi || :; endef sc_avoid_if_before_free: @$(VC_LIST_EXCEPT) \ | $(GREP) -v useless-if-before-free \ | xargs \ $(srcdir)/$(_build-aux)/useless-if-before-free \ $(useless_free_options) \ && { printf '$(ME): found useless "if"' \ ' before "free" above\n' 1>&2; \ exit 1; } \ || : sc_cast_of_argument_to_free: @prohibit='\/dev/null 2>&1; then \ (cd $(srcdir) && autoconf --trace AC_CONFIG_FILES:'$$1') | \ tr ' ' '\n' | \ $(SED) -ne '/Makefile/{s/\.in$$//;p;}' | \ while read m; do \ $(MAKE) -qp -f $$m .DUMMY-TARGET 2>/dev/null | \ $(AWK) -v file=$$m -e '$($@_awk_)' || exit 1; \ done; \ fi # Using EXIT_SUCCESS as the first argument to error is misleading, # since when that parameter is 0, error does not exit. Use '0' instead. sc_error_exit_success: @prohibit='error *\(EXIT_SUCCESS,' \ in_vc_files='\.[chly]$$' \ halt='found error (EXIT_SUCCESS' \ $(_sc_search_regexp) # "FATAL:" should be fully upper-cased in error messages # "WARNING:" should be fully upper-cased, or fully lower-cased sc_error_message_warn_fatal: @$(VC_LIST_EXCEPT) \ | xargs $(GREP) -nEA2 '[^rp]error *\(' /dev/null \ | $(GREP) -E '"Warning|"Fatal|"fatal' \ && { echo '$(ME): use FATAL, WARNING or warning' 1>&2; \ exit 1; } \ || : # Error messages should not start with a capital letter sc_error_message_uppercase: @$(VC_LIST_EXCEPT) \ | xargs $(GREP) -nEA2 '[^rp]error *\(' /dev/null \ | $(GREP) -E '"[A-Z]' \ | $(GREP) -vE '"FATAL|"WARNING|"Java|"C#|"PRI' \ && { echo '$(ME): found capitalized error message' 1>&2; \ exit 1; } \ || : # Error messages should not end with a period sc_error_message_period: @$(VC_LIST_EXCEPT) \ | xargs $(GREP) -nEA2 '[^rp]error *\(' /dev/null \ | $(GREP) -E '[^."]\."' \ && { echo '$(ME): found error message ending in period' 1>&2; \ exit 1; } \ || : sc_file_system: @prohibit=file''system \ exclude='/proc/filesystems' \ ignore_case=1 \ halt='found use of "file''system"; spell it "file system"' \ $(_sc_search_regexp) # Don't use cpp tests of this symbol. All code assumes config.h is included. sc_prohibit_have_config_h: @prohibit='^# *if.*HAVE''_CONFIG_H' \ halt='found use of HAVE''_CONFIG_H; remove' \ $(_sc_search_regexp) # Nearly all .c files must include . However, we also permit this # via inclusion of a package-specific header, if cfg.mk specified one. # config_h_header must be suitable for grep -E. config_h_header ?= sc_require_config_h: @require='^# *include $(config_h_header)' \ in_vc_files='\.c$$' \ halt='the above files do not include ' \ $(_sc_search_regexp) # Print each file name for which the first #include does not match # $(config_h_header). Like grep -m 1, this only looks at the first match. perl_config_h_first_ = \ -e 'BEGIN {$$ret = 0}' \ -e 'if (/^\# *include\b/) {' \ -e ' if (not m{^\# *include $(config_h_header)}) {' \ -e ' print "$$ARGV\n";' \ -e ' $$ret = 1;' \ -e ' }' \ -e ' \# Move on to next file after first include' \ -e ' close ARGV;' \ -e '}' \ -e 'END {exit $$ret}' # You must include before including any other header file. # This can possibly be via a package-specific header, if given by cfg.mk. sc_require_config_h_first: @if $(VC_LIST_EXCEPT) | $(GREP) '\.c$$' > /dev/null; then \ files=$$($(VC_LIST_EXCEPT) | $(GREP) '\.c$$') && \ perl -n $(perl_config_h_first_) $$files || \ { echo '$(ME): the above files include some other header' \ 'before ' 1>&2; exit 1; } || :; \ else :; \ fi sc_prohibit_HAVE_MBRTOWC: @prohibit='\bHAVE_MBRTOWC\b' \ halt="do not use $$prohibit; it is always defined" \ $(_sc_search_regexp) # To use this "command" macro, you must first define two shell variables: # h: the header name, with no enclosing <> or "" # re: a regular expression that matches IFF something provided by $h is used. define _sc_header_without_use dummy=; : so we do not need a semicolon before each use; \ h_esc=`echo '[<"]'"$$h"'[">]'|$(SED) 's/\./\\\\./g'`; \ if $(VC_LIST_EXCEPT) | $(GREP) '\.c$$' > /dev/null; then \ files=$$($(GREP) -l '^# *include '"$$h_esc" \ $$($(VC_LIST_EXCEPT) | $(GREP) '\.c$$')) && \ $(GREP) -LE "$$re" $$files | $(GREP) . && \ { echo "$(ME): the above files include $$h but don't use it" \ 1>&2; exit 1; } || :; \ else :; \ fi endef # Prohibit the inclusion of assert.h without an actual use of assert. sc_prohibit_assert_without_use: @h='assert.h' re='\new(file => "/dev/stdin")->as_string'|sed 's/\?://g' # Note this was produced by the above: # _xa1 = \ #x(((2n?)?re|c(har)?|n(re|m)|z)alloc|alloc_(oversized|die)|m(alloc|emdup)|strdup) # But we can do better, in at least two ways: # 1) take advantage of two "dup"-suffixed strings: # x(((2n?)?re|c(har)?|n(re|m)|[mz])alloc|alloc_(oversized|die)|(mem|str)dup) # 2) notice that "c(har)?|[mz]" is equivalent to the shorter and more readable # "char|[cmz]" # x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|str)dup) _xa1 = x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|str)dup) _xa2 = X([CZ]|N?M)ALLOC sc_prohibit_xalloc_without_use: @h='xalloc.h' \ re='\<($(_xa1)|$(_xa2)) *\('\ $(_sc_header_without_use) # Extract function names: # perl -lne '/^(?:extern )?(?:void|char|Hash_table) \*?(\w+) *\(/ and print $1' lib/hash.h _hash_re = \ hash_(re(set_tuning|move)|xin(itialize|sert)|in(itialize|sert)|get_(firs|nex)t|print_statistics|(delet|fre)e|lookup|clear) _hash_fn = \<($(_hash_re)) *\( _hash_struct = (struct )?\<[Hh]ash_(table|tuning)\> sc_prohibit_hash_without_use: @h='hash.h' \ re='$(_hash_fn)|$(_hash_struct)'\ $(_sc_header_without_use) sc_prohibit_cloexec_without_use: @h='cloexec.h' re='\<(set_cloexec_flag|dup_cloexec) *\(' \ $(_sc_header_without_use) sc_prohibit_posixver_without_use: @h='posixver.h' re='\' \ halt='do not use HAVE''_FCNTL_H or O'_NDELAY \ $(_sc_search_regexp) # FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ # Each nonempty ChangeLog line must start with a year number, or a TAB. sc_changelog: @prohibit='^[^12 ]' \ in_vc_files='^ChangeLog$$' \ halt='found unexpected prefix in a ChangeLog' \ $(_sc_search_regexp) # Ensure that each .c file containing a "main" function also # calls bindtextdomain. sc_bindtextdomain: @require='bindtextdomain *\(' \ in_vc_files='\.c$$' \ containing='\
/dev/null \ && : || { die=1; echo $$i; } \ done; \ test $$die = 1 && \ { echo 1>&2 '$(ME): the final line in each of the above is not:'; \ echo 1>&2 'Exit something'; \ exit 1; } || :; \ fi sc_trailing_blank: @prohibit='[ ]$$' \ halt='found trailing blank(s)' \ exclude='^Binary file .* matches$$' \ $(_sc_search_regexp) # Match lines like the following, but where there is only one space # between the options and the description: # -D, --all-repeated[=delimit-method] print all duplicate lines\n longopt_re = --[a-z][0-9A-Za-z-]*(\[?=[0-9A-Za-z-]*]?)? sc_two_space_separator_in_usage: @prohibit='^ *(-[A-Za-z],)? $(longopt_re) [^ ].*\\$$' \ halt='help2man requires at least two spaces between an option and its description'\ $(_sc_search_regexp) # A regexp matching function names like "error" that may be used # to emit translatable messages. _gl_translatable_diag_func_re ?= error # Look for diagnostics that aren't marked for translation. # This won't find any for which error's format string is on a separate line. sc_unmarked_diagnostics: @prohibit='\<$(_gl_translatable_diag_func_re) *\([^"]*"[^"]*[a-z]{3}' \ exclude='(_|ngettext ?)\(' \ halt='found unmarked diagnostic(s)' \ $(_sc_search_regexp) # Avoid useless parentheses like those in this example: # #if defined (SYMBOL) || defined (SYM2) sc_useless_cpp_parens: @prohibit='^# *if .*defined *\(' \ halt='found useless parentheses in cpp directive' \ $(_sc_search_regexp) # List headers for which HAVE_HEADER_H is always true, assuming you are # using the appropriate gnulib module. CAUTION: for each "unnecessary" # #if HAVE_HEADER_H that you remove, be sure that your project explicitly # requires the gnulib module that guarantees the usability of that header. gl_assured_headers_ = \ cd $(gnulib_dir)/lib && echo *.in.h|$(SED) 's/\.in\.h//g' # Convert the list of names to upper case, and replace each space with "|". az_ = abcdefghijklmnopqrstuvwxyz AZ_ = ABCDEFGHIJKLMNOPQRSTUVWXYZ gl_header_upper_case_or_ = \ $$($(gl_assured_headers_) \ | tr $(az_)/.- $(AZ_)___ \ | tr -s ' ' '|' \ ) sc_prohibit_always_true_header_tests: @or=$(gl_header_upper_case_or_); \ re="HAVE_($$or)_H"; \ prohibit='\<'"$$re"'\>' \ halt=$$(printf '%s\n' \ 'do not test the above HAVE_
_H symbol(s);' \ ' with the corresponding gnulib module, they are always true') \ $(_sc_search_regexp) sc_prohibit_defined_have_decl_tests: @prohibit='(#[ ]*ifn?def|\[ (]+HAVE_DECL_' \ halt='HAVE_DECL macros are always defined' \ $(_sc_search_regexp) # ================================================================== gl_other_headers_ ?= \ intprops.h \ openat.h \ stat-macros.h # Perl -lne code to extract "significant" cpp-defined symbols from a # gnulib header file, eliminating a few common false-positives. # The exempted names below are defined only conditionally in gnulib, # and hence sometimes must/may be defined in application code. gl_extract_significant_defines_ = \ /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\ && $$2 !~ /(?:rpl_|_used_without_)/\ && $$1 !~ /^(?:NSIG|ENODATA)$$/\ && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\ and print $$1 # Create a list of regular expressions matching the names # of macros that are guaranteed to be defined by parts of gnulib. define def_sym_regex gen_h=$(gl_generated_headers_); \ (cd $(gnulib_dir)/lib; \ for f in *.in.h $(gl_other_headers_); do \ test -f $$f \ && perl -lne '$(gl_extract_significant_defines_)' $$f; \ done; \ ) | sort -u \ | $(SED) 's/^/^ *# *(define|undef) */;s/$$/\\>/' endef # Don't define macros that we already get from gnulib header files. sc_prohibit_always-defined_macros: @if test -d $(gnulib_dir); then \ case $$(echo all: | $(GREP) -l -f - Makefile) in Makefile);; *) \ echo '$(ME): skipping $@: you lack GNU grep' 1>&2; exit 0;; \ esac; \ regex=$$($(def_sym_regex)); export regex; \ $(VC_LIST_EXCEPT) \ | xargs sh -c 'echo $$regex | $(GREP) -E -f - "$$@"' \ dummy /dev/null \ && { printf '$(ME): define the above' \ ' via some gnulib .h file\n' 1>&2; \ exit 1; } \ || :; \ fi # ================================================================== # Prohibit checked in backup files. sc_prohibit_backup_files: @$(VC_LIST) | $(GREP) '~$$' && \ { echo '$(ME): found version controlled backup file' 1>&2; \ exit 1; } || : # Require the latest GPL. sc_GPL_version: @prohibit='either ''version [^3]' \ halt='GPL vN, N!=3' \ $(_sc_search_regexp) # Require the latest GFDL. Two regexp, since some .texi files end up # line wrapping between 'Free Documentation License,' and 'Version'. _GFDL_regexp = (Free ''Documentation.*Version 1\.[^3]|Version 1\.[^3] or any) sc_GFDL_version: @prohibit='$(_GFDL_regexp)' \ halt='GFDL vN, N!=3' \ $(_sc_search_regexp) # Don't use Texinfo's @acronym{}. # https://lists.gnu.org/r/bug-gnulib/2010-03/msg00321.html texinfo_suffix_re_ ?= \.(txi|texi(nfo)?)$$ sc_texinfo_acronym: @prohibit='@acronym\{' \ in_vc_files='$(texinfo_suffix_re_)' \ halt='found use of Texinfo @acronym{}' \ $(_sc_search_regexp) cvs_keywords = \ Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State sc_prohibit_cvs_keyword: @prohibit='\$$($(cvs_keywords))\$$' \ halt='do not use CVS keyword expansion' \ $(_sc_search_regexp) # This Perl code is slightly obfuscated. Not only is each "$" doubled # because it's in a Makefile, but the $$c's are comments; we cannot # use "#" due to the way the script ends up concatenated onto one line. # It would be much more concise, and would produce better output (including # counts) if written as: # perl -ln -0777 -e '/\n(\n+)$/ and print "$ARGV: ".length $1' ... # but that would be far less efficient, reading the entire contents # of each file, rather than just the last two bytes of each. # In addition, while the code below detects both blank lines and a missing # newline at EOF, the above detects only the former. # # This is a perl script that is expected to be the single-quoted argument # to a command-line "-le". The remaining arguments are file names. # Print the name of each file that does not end in exactly one newline byte. # I.e., warn if there are blank lines (2 or more newlines), or if the # last byte is not a newline. However, currently we don't complain # about any file that contains exactly one byte. # Exit nonzero if at least one such file is found, otherwise, exit 0. # Warn about, but otherwise ignore open failure. Ignore seek/read failure. # # Use this if you want to remove trailing empty lines from selected files: # perl -pi -0777 -e 's/\n\n+$/\n/' files... # require_exactly_one_NL_at_EOF_ = \ foreach my $$f (@ARGV) \ { \ open F, "<", $$f or (warn "failed to open $$f: $$!\n"), next; \ my $$p = sysseek (F, -2, 2); \ my $$c = "seek failure probably means file has < 2 bytes; ignore"; \ my $$last_two_bytes; \ defined $$p and $$p = sysread F, $$last_two_bytes, 2; \ close F; \ $$c = "ignore read failure"; \ $$p && ($$last_two_bytes eq "\n\n" \ || substr ($$last_two_bytes,1) ne "\n") \ and (print $$f), $$fail=1; \ } \ END { exit defined $$fail } sc_prohibit_empty_lines_at_EOF: @$(VC_LIST_EXCEPT) \ | xargs perl -le '$(require_exactly_one_NL_at_EOF_)' \ || { echo '$(ME): empty line(s) or no newline at EOF' 1>&2; \ exit 1; } \ || : # Make sure we don't use st_blocks. Use ST_NBLOCKS instead. # This is a bit of a kludge, since it prevents use of the string # even in comments, but for now it does the job with no false positives. sc_prohibit_stat_st_blocks: @prohibit='[.>]st_blocks' \ halt='do not use st_blocks; use ST_NBLOCKS' \ $(_sc_search_regexp) # Make sure we don't define any S_IS* macros in src/*.c files. # They're already defined via gnulib's sys/stat.h replacement. sc_prohibit_S_IS_definition: @prohibit='^ *# *define *S_IS' \ halt='do not define S_IS* macros; include ' \ $(_sc_search_regexp) # Perl block to convert a match to FILE_NAME:LINENO:TEST, # that is shared by two definitions below. perl_filename_lineno_text_ = \ -e ' {' \ -e ' $$n = ($$` =~ tr/\n/\n/ + 1);' \ -e ' ($$v = $$&) =~ s/\n/\\n/g;' \ -e ' print "$$ARGV:$$n:$$v\n";' \ -e ' }' prohibit_doubled_words_ = \ the then in an on if is it but for or at and do to can # expand the regex before running the check to avoid using expensive captures prohibit_doubled_word_expanded_ = \ $(join $(prohibit_doubled_words_),$(addprefix \s+,$(prohibit_doubled_words_))) prohibit_doubled_word_RE_ ?= \ /\b(?:$(subst $(_sp),|,$(prohibit_doubled_word_expanded_)))\b/gims prohibit_doubled_word_ = \ -e 'while ($(prohibit_doubled_word_RE_))' \ $(perl_filename_lineno_text_) # Define this to a regular expression that matches # any filename:dd:match lines you want to ignore. # The default is to ignore no matches. ignore_doubled_word_match_RE_ ?= ^$$ sc_prohibit_doubled_word: @$(VC_LIST_EXCEPT) \ | xargs perl -n -0777 $(prohibit_doubled_word_) \ | $(GREP) -vE '$(ignore_doubled_word_match_RE_)' \ | $(GREP) . \ && { echo '$(ME): doubled words' 1>&2; exit 1; } \ || : # A regular expression matching undesirable combinations of words like # "can not"; this matches them even when the two words appear on different # lines, but not when there is an intervening delimiter like "#" or "*". # Similarly undesirable, "See @xref{...}", since an @xref should start # a sentence. Explicitly prohibit any prefix of "see" or "also". # Also prohibit a prefix matching "\w+ +". # @pxref gets the same see/also treatment and should be parenthesized; # presume it must *not* start a sentence. # POSIX spells it "timestamp" rather than "time\s+stamp", so we do, too. bad_xref_re_ ?= (?:[\w,:;] +|(?:see|also)\s+)\@xref\{ bad_pxref_re_ ?= (?:[.!?]|(?:see|also))\s+\@pxref\{ prohibit_undesirable_word_seq_RE_ ?= \ /(?:\bcan\s+not\b|\btime\s+stamps?\b|$(bad_xref_re_)|$(bad_pxref_re_))/gims prohibit_undesirable_word_seq_ = \ -e 'while ($(prohibit_undesirable_word_seq_RE_))' \ $(perl_filename_lineno_text_) # Define this to a regular expression that matches # any filename:dd:match lines you want to ignore. # The default is to ignore no matches. ignore_undesirable_word_sequence_RE_ ?= ^$$ sc_prohibit_undesirable_word_seq: @$(VC_LIST_EXCEPT) \ | xargs perl -n -0777 $(prohibit_undesirable_word_seq_) \ | $(GREP) -vE '$(ignore_undesirable_word_sequence_RE_)' \ | $(GREP) . \ && { echo '$(ME): undesirable word sequence' >&2; exit 1; } \ || : # Except for shell files and for loops, double semicolon is probably a mistake sc_prohibit_double_semicolon: @prohibit='; *;[ {} \]*(/[/*]|$$)' \ in_vc_files='\.[chly]$$' \ exclude='\bfor *\(.*\)' \ halt="Double semicolon detected" \ $(_sc_search_regexp) _ptm1 = use "test C1 && test C2", not "test C1 -''a C2" _ptm2 = use "test C1 || test C2", not "test C1 -''o C2" # Using test's -a and -o operators is not portable. # We prefer test over [, since the latter is spelled [[ in configure.ac. sc_prohibit_test_minus_ao: @prohibit='(\ /dev/null \ || { fail=1; echo 1>&2 "$(ME): $$p uses proper_name_utf8"; }; \ done; \ test $$fail = 1 && \ { echo 1>&2 '$(ME): the above do not link with any ICONV library'; \ exit 1; } || :; \ fi # Warn about "c0nst struct Foo const foo[]", # but not about "char const *const foo" or "#define const const". sc_redundant_const: @prohibit='\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ halt='redundant "const" in declarations' \ $(_sc_search_regexp) sc_const_long_option: @prohibit='^ *static.*struct option ' \ exclude='const struct option|struct option const' \ halt='add "const" to the above declarations' \ $(_sc_search_regexp) NEWS_hash = \ $$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \ $(srcdir)/NEWS \ | perl -0777 -pe \ 's/^Copyright.+?Free\sSoftware\sFoundation,\sInc\.\n//ms' \ | md5sum - \ | $(SED) 's/ .*//') # Ensure that we don't accidentally insert an entry into an old NEWS block. sc_immutable_NEWS: @if test -f $(srcdir)/NEWS; then \ test "$(NEWS_hash)" = '$(old_NEWS_hash)' && : || \ { echo '$(ME): you have modified old NEWS' 1>&2; exit 1; }; \ fi # Update the hash stored above. Do this after each release and # for any corrections to old entries. update-NEWS-hash: NEWS perl -pi -e 's/^(old_NEWS_hash[ \t]+:?=[ \t]+).*/$${1}'"$(NEWS_hash)/" \ $(srcdir)/cfg.mk # Ensure that we use only the standard $(VAR) notation, # not @...@ in Makefile.am, now that we can rely on automake # to emit a definition for each substituted variable. # However, there is still one case in which @VAR@ use is not just # legitimate, but actually required: when augmenting an automake-defined # variable with a prefix. For example, gettext uses this: # MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@ # otherwise, makeinfo would put German or French (current locale) # navigation hints in the otherwise-English documentation. # # Allow the package to add exceptions via a hook in cfg.mk; # for example, @PRAGMA_SYSTEM_HEADER@ can be permitted by # setting this to ' && !/PRAGMA_SYSTEM_HEADER/'. _makefile_at_at_check_exceptions ?= sc_makefile_at_at_check: @perl -ne '/\@\w+\@/' \ -e ' && !/(\w+)\s+=.*\@\1\@$$/' \ -e ''$(_makefile_at_at_check_exceptions) \ -e 'and (print "$$ARGV:$$.: $$_"), $$m=1; END {exit !$$m}' \ $$($(VC_LIST_EXCEPT) | $(GREP) -E '(^|/)(Makefile\.am|[^/]+\.mk)$$') \ && { echo '$(ME): use $$(...), not @...@' 1>&2; exit 1; } || : news-check: NEWS $(AM_V_GEN)if $(SED) -n $(news-check-lines-spec)p $< \ | $(GREP) -E $(news-check-regexp) >/dev/null; then \ :; \ else \ echo 'NEWS: $$(news-check-regexp) failed to match' 1>&2; \ exit 1; \ fi sc_makefile_TAB_only_indentation: @prohibit='^ [ ]{8}' \ in_vc_files='akefile|\.mk$$' \ halt='found TAB-8-space indentation' \ $(_sc_search_regexp) sc_m4_quote_check: @prohibit='(AC_DEFINE(_UNQUOTED)?|AC_DEFUN)\([^[]' \ in_vc_files='(^configure\.ac|\.m4)$$' \ halt='quote the first arg to AC_DEF*' \ $(_sc_search_regexp) fix_po_file_diag = \ 'you have changed the set of files with translatable diagnostics;\n\ apply the above patch\n' # Generate a list of files in which to search for translatable strings. perl_translatable_files_list_ = \ -e 'foreach $$file (@ARGV) {' \ -e ' \# Consider only file extensions with one or two letters' \ -e ' $$file =~ /\...?$$/ or next;' \ -e ' \# Ignore m4 and mk files' \ -e ' $$file =~ /\.m[4k]$$/ and next;' \ -e ' \# Ignore a .c or .h file with a corresponding .l or .y file' \ -e ' $$file =~ /(.+)\.[ch]$$/ && (-e "$${1}.l" || -e "$${1}.y")' \ -e ' and next;' \ -e ' \# Skip unreadable files' \ -e ' -r $$file or next;' \ -e ' print "$$file ";' \ -e '}' # Verify that all source files using _() (more specifically, files that # match $(_gl_translatable_string_re)) are listed in po/POTFILES.in. po_file ?= $(srcdir)/po/POTFILES.in generated_files ?= $(srcdir)/lib/*.[ch] _gl_translatable_string_re ?= \b(N?_|gettext *)\([^)"]*("|$$) sc_po_check: @if test -f $(po_file); then \ $(GREP) -E -v '^(#|$$)' $(po_file) \ | $(GREP) -v '^src/false\.c$$' | sort > $@-1; \ { $(VC_LIST_EXCEPT); echo $(generated_files); } \ | xargs perl $(perl_translatable_files_list_) \ | xargs $(GREP) -E -l '$(_gl_translatable_string_re)' \ | $(SED) 's|^$(_dot_escaped_srcdir)/||' \ | sort -u > $@-2; \ diff -u -L $(po_file) -L $(po_file) $@-1 $@-2 \ || { printf '$(ME): '$(fix_po_file_diag) 1>&2; exit 1; }; \ rm -f $@-1 $@-2; \ fi # Sometimes it is useful to change the PATH environment variable # in Makefiles. When doing so, it's better not to use the Unix-centric # path separator of ':', but rather the automake-provided '$(PATH_SEPARATOR)'. msg = 'Do not use ":" above; use $$(PATH_SEPARATOR) instead' sc_makefile_path_separator_check: @prohibit='PATH[=].*:' \ in_vc_files='akefile|\.mk$$' \ halt=$(msg) \ $(_sc_search_regexp) # Check that 'make alpha' will not fail at the end of the process, # i.e., when pkg-M.N.tar.xz already exists (either in "." or in ../release) # and is read-only. writable-files: $(AM_V_GEN)if test -d $(release_archive_dir); then \ for file in $(DIST_ARCHIVES); do \ for p in ./ $(release_archive_dir)/; do \ test -e $$p$$file || continue; \ test -w $$p$$file \ || { echo ERROR: $$p$$file is not writable; fail=1; }; \ done; \ done; \ test "$$fail" && exit 1 || : ; \ else :; \ fi v_etc_file = $(gnulib_dir)/lib/version-etc.c sample-test = tests/sample-test texi = doc/$(PACKAGE).texi # Make sure that the copyright date in $(v_etc_file) is up to date. # Do the same for the $(sample-test) and the main doc/.texi file. sc_copyright_check: @require='enum { COPYRIGHT_YEAR = '$$(date +%Y)' };' \ in_files=$(v_etc_file) \ halt='out of date copyright in $(v_etc_file); update it' \ $(_sc_search_regexp) @require='# Copyright \(C\) '$$(date +%Y)' Free' \ in_vc_files=$(sample-test) \ halt='out of date copyright in $(sample-test); update it' \ $(_sc_search_regexp) @require='Copyright @copyright\{\} .*'$$(date +%Y) \ in_vc_files=$(texi) \ halt='out of date copyright in $(texi); update it' \ $(_sc_search_regexp) # If tests/help-version exists and seems to be new enough, assume that its # use of init.sh and path_prepend_ is correct, and ensure that every other # use of init.sh is identical. # This is useful because help-version cross-checks prog --version # with $(VERSION), which verifies that its path_prepend_ invocation # sets PATH correctly. This is an inexpensive way to ensure that # the other init.sh-using tests also get it right. _hv_file ?= $(srcdir)/tests/help-version _hv_regex_weak ?= ^ *\. .*/init\.sh" # Fix syntax-highlighters " _hv_regex_strong ?= ^ *\. "\$${srcdir=\.}/init\.sh" sc_cross_check_PATH_usage_in_tests: @if test -f $(_hv_file); then \ $(GREP) -l 'VERSION mismatch' $(_hv_file) >/dev/null \ || { echo "$@: skipped: no such file: $(_hv_file)" 1>&2; \ exit 0; }; \ $(GREP) -lE '$(_hv_regex_strong)' $(_hv_file) >/dev/null \ || { echo "$@: $(_hv_file) lacks conforming use of init.sh" 1>&2; \ exit 1; }; \ good=$$($(GREP) -E '$(_hv_regex_strong)' $(_hv_file)); \ $(VC_LIST_EXCEPT) \ | xargs $(GREP) -lE '$(_hv_regex_weak)' \ | xargs $(GREP) -LFx "$$good" \ | $(GREP) . \ && { printf "$(ME): the above files use" \ " path_prepend_ inconsistently\n" 1>&2; \ exit 1; } \ || :; \ fi # BRE regex of file contents to identify a test script. _test_script_regex ?= \ # In tests, use "compare expected actual", not the reverse. sc_prohibit_reversed_compare_failure: @prohibit='\ vc-diffs || : $(AM_V_at)if test -s vc-diffs; then \ cat vc-diffs; \ echo "Some files are locally modified:" 1>&2; \ exit 1; \ else \ rm vc-diffs; \ fi rel-files = $(DIST_ARCHIVES) gnulib-version = $$(cd $(gnulib_dir) \ && { git describe || git rev-parse --short=10 HEAD; } ) bootstrap-tools ?= autoconf,automake,gnulib gpgv = $$(gpgv2 --version >/dev/null && echo gpgv2 || echo gpgv) # If it's not already specified, derive the GPG key ID from # the signed tag we've just applied to mark this release. gpg_key_ID ?= \ $$(cd $(srcdir) \ && git cat-file tag v$(VERSION) \ | $(gpgv) --status-fd 1 --keyring /dev/null - - 2>/dev/null \ | $(AWK) '/^\[GNUPG:] ERRSIG / {print $$3; exit}') gpg_key_email ?= \ $$(gpg --list-key --with-colons $(gpg_key_ID) 2>/dev/null \ | $(AWK) -F: '/^uid/ {print $$10; exit}' \ | $(SED) -n 's/.*<\(.*\)>/\1/p') gpg_keyring_url ?= https://savannah.gnu.org/project/release-gpgkeys.php?group=$(PACKAGE)&download=1 translation_project_ ?= coordinator@translationproject.org # Make info-gnu the default only for a stable release. announcement_Cc_stable = $(translation_project_), $(PACKAGE_BUGREPORT) announcement_mail_headers_stable = \ To: info-gnu@gnu.org \ Cc: $(announcement_Cc_) \ Mail-Followup-To: $(PACKAGE_BUGREPORT) announcement_Cc_alpha = $(translation_project_) announcement_mail_headers_alpha = \ To: $(PACKAGE_BUGREPORT) \ Cc: $(announcement_Cc_) announcement_mail_Cc_beta = $(announcement_mail_Cc_alpha) announcement_mail_headers_beta = $(announcement_mail_headers_alpha) announcement_Cc_ ?= $(announcement_Cc_$(release-type)) announcement_mail_headers_ ?= $(announcement_mail_headers_$(release-type)) announcement: NEWS ChangeLog $(rel-files) # Not $(AM_V_GEN) since the output of this command serves as # announcement message: it would start with " GEN announcement". $(AM_V_at)$(srcdir)/$(_build-aux)/announce-gen \ --mail-headers='$(announcement_mail_headers_)' \ --release-type=$(release-type) \ --package=$(PACKAGE) \ --prev=$(PREV_VERSION) \ --curr=$(VERSION) \ --gpg-key-id=$(gpg_key_ID) \ $$(test -n "$(gpg_key_email)" && \ echo --gpg-key-email="$(gpg_key_email)") \ $$(test -n "$(gpg_keyring_url)" && \ echo --gpg-keyring-url="$(gpg_keyring_url)") \ --srcdir=$(srcdir) \ --news=$(srcdir)/NEWS \ --bootstrap-tools=$(bootstrap-tools) \ $$(case ,$(bootstrap-tools), in (*,gnulib,*) \ echo --gnulib-version=$(gnulib-version);; esac) \ $(addprefix --url-dir=, $(url_dir_list)) .PHONY: release-commit release-commit: $(AM_V_GEN)cd $(srcdir) \ && $(_build-aux)/do-release-commit-and-tag \ -C $(abs_builddir) $(RELEASE) ## ---------------- ## ## Updating files. ## ## ---------------- ## ftp-gnu = https://ftp.gnu.org/gnu www-gnu = https://www.gnu.org upload_dest_dir_ ?= $(PACKAGE) upload_command = \ $(srcdir)/$(_build-aux)/gnupload $(GNUPLOADFLAGS) \ --to $(gnu_rel_host):$(upload_dest_dir_) \ $(rel-files) emit_upload_commands: @echo ===================================== @echo ===================================== @echo '$(upload_command)' @echo '# send the ~/announce-$(my_distdir) e-mail' @echo ===================================== @echo ===================================== .PHONY: upload upload: $(AM_V_GEN)$(upload_command) define emit-commit-log printf '%s\n' 'maint: post-release administrivia' '' \ '* NEWS: Add header line for next release.' \ '* .prev-version: Record previous version.' \ '* cfg.mk (old_NEWS_hash): Auto-update.' endef .PHONY: no-submodule-changes no-submodule-changes: $(AM_V_GEN)if test -d $(srcdir)/.git \ && git --version >/dev/null 2>&1; then \ diff=$$(cd $(srcdir) && git submodule -q foreach \ git diff-index --name-only HEAD) \ || exit 1; \ case $$diff in '') ;; \ *) echo '$(ME): submodule files are locally modified:'; \ echo "$$diff"; exit 1;; esac; \ else \ : ; \ fi submodule-checks ?= no-submodule-changes public-submodule-commit # Ensure that each sub-module commit we're using is public. # Without this, it is too easy to tag and release code that # cannot be built from a fresh clone. .PHONY: public-submodule-commit public-submodule-commit: $(AM_V_GEN)if test -d $(srcdir)/.git \ && git --version >/dev/null 2>&1; then \ cd $(srcdir) && \ git submodule --quiet foreach \ 'test "$$(git rev-parse "$$sha1")" \ = "$$(git merge-base origin "$$sha1")"' \ || { echo '$(ME): found non-public submodule commit' >&2; \ exit 1; }; \ else \ : ; \ fi # This rule has a high enough utility/cost ratio that it should be a # dependent of "check" by default. However, some of us do occasionally # commit a temporary change that deliberately points to a non-public # submodule commit, and want to be able to use rules like "make check". # In that case, run e.g., "make check gl_public_submodule_commit=" # to disable this test. gl_public_submodule_commit ?= public-submodule-commit check: $(gl_public_submodule_commit) .PHONY: alpha beta stable release ALL_RECURSIVE_TARGETS += alpha beta stable alpha beta stable: $(local-check) writable-files $(submodule-checks) $(AM_V_GEN)test $@ = stable \ && { echo $(VERSION) | $(GREP) -E '^[0-9]+(\.[0-9]+)+$$' \ || { echo "invalid version string: $(VERSION)" 1>&2; exit 1;};}\ || : $(AM_V_at)$(MAKE) vc-diff-check $(AM_V_at)$(MAKE) news-check $(AM_V_at)$(MAKE) distcheck $(AM_V_at)$(MAKE) dist $(AM_V_at)$(MAKE) $(release-prep-hook) RELEASE_TYPE=$@ $(AM_V_at)$(MAKE) -s emit_upload_commands RELEASE_TYPE=$@ release: $(AM_V_GEN)$(MAKE) _version $(AM_V_at)$(MAKE) $(release-type) # Override this in cfg.mk if you follow different procedures. release-prep-hook ?= release-prep gl_noteworthy_news_ = * Noteworthy changes in release ?.? (????-??-??) [?] .PHONY: release-prep release-prep: $(AM_V_GEN)$(MAKE) --no-print-directory -s announcement \ > ~/announce-$(my_distdir) $(AM_V_at)if test -d $(release_archive_dir); then \ ln $(rel-files) $(release_archive_dir); \ chmod a-w $(rel-files); \ fi $(AM_V_at)echo $(VERSION) > $(prev_version_file) $(AM_V_at)$(MAKE) update-NEWS-hash $(AM_V_at)perl -pi \ -e '$$. == 3 and print "$(gl_noteworthy_news_)\n\n\n"' \ $(srcdir)/NEWS $(AM_V_at)msg=$$($(emit-commit-log)) || exit 1; \ cd $(srcdir) && $(VC) commit -m "$$msg" -a # Override this with e.g., -s $(srcdir)/some_other_name.texi # if the default $(PACKAGE)-derived name doesn't apply. gendocs_options_ ?= .PHONY: web-manual web-manual: $(AM_V_GEN)test -z "$(manual_title)" \ && { echo define manual_title in cfg.mk 1>&2; exit 1; } || : $(AM_V_at)cd '$(srcdir)/doc'; \ $(SHELL) ../$(_build-aux)/gendocs.sh $(gendocs_options_) \ -o '$(abs_builddir)/doc/manual' \ --email $(PACKAGE_BUGREPORT) $(PACKAGE) \ "$(PACKAGE_NAME) - $(manual_title)" $(AM_V_at)echo " *** Upload the doc/manual directory to web-cvs." .PHONY: web-manual-update web-manual-update: $(AM_V_GEN)cd $(srcdir) \ && $(_build-aux)/gnu-web-doc-update -C $(abs_builddir) # Code Coverage init-coverage: $(MAKE) $(AM_MAKEFLAGS) clean lcov --directory . --zerocounters COVERAGE_CCOPTS ?= "-g --coverage" COVERAGE_OUT ?= doc/coverage build-coverage: $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) $(MAKE) $(AM_MAKEFLAGS) CFLAGS=$(COVERAGE_CCOPTS) CXXFLAGS=$(COVERAGE_CCOPTS) check mkdir -p $(COVERAGE_OUT) lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info \ --capture gen-coverage: genhtml --output-directory $(COVERAGE_OUT) \ $(COVERAGE_OUT)/$(PACKAGE).info \ --highlight --frames --legend \ --title "$(PACKAGE_NAME)" coverage: $(MAKE) init-coverage $(MAKE) build-coverage $(MAKE) gen-coverage # Some projects carry local adjustments for gnulib modules via patches in # a gnulib patch directory whose default name is gl/ (defined in bootstrap # via local_gl_dir=gl). Those patches become stale as the originals evolve # in gnulib. Use this rule to refresh any stale patches. It applies each # patch to the original in $(gnulib_dir) and uses the temporary result to # generate a fuzz-free .diff file. If you customize the name of your local # gnulib patch directory via bootstrap.conf, this rule detects that name. # Run this from a non-VPATH (i.e., srcdir) build directory. .PHONY: refresh-gnulib-patches refresh-gnulib-patches: gl=gl; \ if test -f bootstrap.conf; then \ t=$$(perl -lne '/^\s*local_gl_dir=(\S+)/ and $$d=$$1;' \ -e 'END{defined $$d and print $$d}' bootstrap.conf); \ test -n "$$t" && gl=$$t; \ fi; \ for diff in $$(cd $$gl; git ls-files | $(GREP) '\.diff$$'); do \ b=$$(printf %s "$$diff"|$(SED) 's/\.diff$$//'); \ VERSION_CONTROL=none \ patch "$(gnulib_dir)/$$b" "$$gl/$$diff" || exit 1; \ ( cd $(gnulib_dir) || exit 1; \ git diff "$$b" > "../$$gl/$$diff"; \ git checkout $$b ) || exit 1; \ done # Update gettext files. PACKAGE ?= $(shell basename $(PWD)) PO_DOMAIN ?= $(PACKAGE) POURL = https://translationproject.org/latest/$(PO_DOMAIN)/ PODIR ?= po refresh-po: rm -f $(PODIR)/*.po && \ echo "$(ME): getting translations into po (please ignore the robots.txt ERROR 404)..." && \ wget --no-verbose --directory-prefix $(PODIR) --no-directories --recursive --level 1 --accept .po --accept .po.1 $(POURL) && \ echo 'en@boldquot' > $(PODIR)/LINGUAS && \ echo 'en@quot' >> $(PODIR)/LINGUAS && \ ls $(PODIR)/*.po | $(SED) 's/\.po//;s,$(PODIR)/,,' | \ sort >> $(PODIR)/LINGUAS # Indentation indent_args ?= -ppi 1 C_SOURCES ?= $$($(VC_LIST_EXCEPT) | grep '\.[ch]\(.in\)\?$$') INDENT_SOURCES ?= $(C_SOURCES) exclude_file_name_regexp--indent ?= $(exclude_file_name_regexp--sc_indent) .PHONY: indent indent: # Running indent once is not idempotent, but running it twice is. $(AM_V_GEN)indent $(indent_args) $(INDENT_SOURCES) && \ indent $(indent_args) $(INDENT_SOURCES) sc_indent: @if ! command -v indent > /dev/null; then \ echo 1>&2 '$(ME): sc_indent: indent is missing'; \ else \ fail=0; files="$(INDENT_SOURCES)"; \ for f in $$files; do \ indent $(indent_args) -st $$f \ | indent $(indent_args) -st - \ | diff -u $$f - || fail=1; \ done; \ test $$fail = 1 && \ { echo 1>&2 '$(ME): code format error, try "make indent"'; \ exit 1; } || :; \ fi # If you want to set UPDATE_COPYRIGHT_* environment variables, # put the assignments in this variable. update-copyright-env ?= # Run this rule once per year (usually early in January) # to update all FSF copyright year lists in your project. # If you have an additional project-specific rule, # add it in cfg.mk along with a line 'update-copyright: prereq'. # By default, exclude all variants of COPYING; you can also # add exemptions (such as ChangeLog..* for rotated change logs) # in the file .x-update-copyright. .PHONY: update-copyright update-copyright: $(AM_V_GEN)$(GREP) -l -w Copyright \ $$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \ | $(update-copyright-env) xargs $(srcdir)/$(_build-aux)/$@ # This tight_scope test is skipped with a warning if $(_gl_TS_headers) is not # overridden and $(_gl_TS_dir)/Makefile.am does not mention noinst_HEADERS. # NOTE: to override any _gl_TS_* default value, you must # define the variable(s) using "export" in cfg.mk. _gl_TS_dir ?= src ALL_RECURSIVE_TARGETS += sc_tight_scope sc_tight_scope: tight-scope.mk @fail=0; \ if ! $(GREP) '^ *export _gl_TS_headers *=' $(srcdir)/cfg.mk \ > /dev/null \ && ! $(GREP) -w noinst_HEADERS $(srcdir)/$(_gl_TS_dir)/Makefile.am \ > /dev/null 2>&1; then \ echo '$(ME): skipping $@'; \ else \ $(MAKE) -s -C $(_gl_TS_dir) \ -f Makefile \ -f $(abs_top_srcdir)/cfg.mk \ -f $(abs_top_builddir)/$< \ _gl_tight_scope \ || fail=1; \ fi; \ rm -f $<; \ exit $$fail tight-scope.mk: $(ME) @perl -ne '/^# TS-start/.../^# TS-end/ and print' $(srcdir)/$(ME) > $@-t @mv $@-t $@ ifeq (a,b) # TS-start # Most functions should have static scope. # Any that don't must be marked with 'extern', but 'main' # and 'usage' are exceptions: they're always extern, but # do not need to be marked. Symbols matching '__.*' are # reserved by the compiler, so are automatically excluded below. _gl_TS_unmarked_extern_functions ?= main usage _gl_TS_function_match ?= /^(?:$(_gl_TS_extern)) +.*?(\w+) *\(/ # If your project uses a macro like "XTERN", then put # the following in cfg.mk to override this default: # export _gl_TS_extern = extern|XTERN _gl_TS_extern ?= extern # The second nm|grep checks for file-scope variables with 'extern' scope. # Without gnulib's progname module, you might put program_name here. # Symbols matching '__.*' are reserved by the compiler, # so are automatically excluded below. _gl_TS_unmarked_extern_vars ?= # NOTE: the _match variables are perl expressions -- not mere regular # expressions -- so that you can extend them to match other patterns # and easily extract matched variable names. # For example, if your project declares some global variables via # a macro like this: GLOBAL(type, var_name, initializer), then you # can override this definition to automatically extract those names: # export _gl_TS_var_match = \ # /^(?:$(_gl_TS_extern)) .*?\**(\w+)(\[.*?])?;/ || /\bGLOBAL\(.*?,\s*(.*?),/ _gl_TS_var_match ?= /^(?:$(_gl_TS_extern)) .*?(\w+)(\[.*?])?;/ # The names of object files in (or relative to) $(_gl_TS_dir). _gl_TS_obj_files ?= *.$(OBJEXT) # Files in which to search for the one-line style extern declarations. # $(_gl_TS_dir)-relative. _gl_TS_headers ?= $(noinst_HEADERS) _gl_TS_other_headers ?= *.h .PHONY: _gl_tight_scope _gl_tight_scope: $(bin_PROGRAMS) sed_wrap='s/^/^_?/;s/$$/$$/'; \ t=exceptions-$$$$; \ trap 's=$$?; rm -f $$t; exit $$s' 0; \ for sig in 1 2 3 13 15; do \ eval "trap 'v=`expr $$sig + 128`; (exit $$v); exit $$v' $$sig"; \ done; \ src=`for f in $(SOURCES); do \ test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`; \ hdr=`for f in $(_gl_TS_headers); do \ test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`; \ ( printf '%s\n' '__.*' $(_gl_TS_unmarked_extern_functions); \ $(GREP) -h -A1 '^extern .*[^;]$$' $$src \ | $(GREP) -vE '^(extern |--|#)' | $(SED) 's/ .*//; /^$$/d'; \ perl -lne \ '$(_gl_TS_function_match) and print $$1' $$hdr; \ ) | sort -u | $(SED) "$$sed_wrap" > $$t; \ nm -g $(_gl_TS_obj_files)|$(SED) -n 's/.* T //p'|$(GREP) -Ev -f $$t \ && { echo the above functions should have static scope >&2; \ exit 1; } || : ; \ ( printf '%s\n' '__.*' main $(_gl_TS_unmarked_extern_vars); \ perl -lne '$(_gl_TS_var_match) and print $$1' \ $$hdr $(_gl_TS_other_headers) \ ) | sort -u | $(SED) "$$sed_wrap" > $$t; \ nm -g $(_gl_TS_obj_files) | $(SED) -n 's/.* [BCDGRS] //p' \ | sort -u | $(GREP) -Ev -f $$t \ && { echo the above variables should have static scope >&2; \ exit 1; } || : # TS-end endif shishi-1.0.3/lib/0000755000000000000000000000000014273616162010527 500000000000000shishi-1.0.3/lib/priv.c0000644000000000000000000004371714273601533011603 00000000000000/* priv.c --- Application data privacy protection. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" struct Shishi_priv { Shishi *handle; Shishi_key *key; Shishi_asn1 priv; Shishi_asn1 encprivpart; unsigned long seqnumber; }; /** * shishi_priv: * @handle: shishi handle as allocated by shishi_init(). * @priv: pointer to new structure that holds information about PRIV exchange * * Create a new PRIV exchange. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv (Shishi * handle, Shishi_priv ** priv) { Shishi_priv *lpriv; struct timeval tv; char *usec; int rc; *priv = xcalloc (1, sizeof (**priv)); lpriv = *priv; lpriv->handle = handle; rc = shishi_key (handle, &lpriv->key); if (rc != SHISHI_OK) return rc; lpriv->priv = shishi_asn1_priv (handle); if (lpriv->priv == NULL) return SHISHI_ASN1_ERROR; rc = shishi_asn1_write (handle, lpriv->priv, "pvno", "5", 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->priv, "msg-type", "21", 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->priv, "enc-part.kvno", "0", 0); if (rc != SHISHI_OK) return rc; lpriv->encprivpart = shishi_asn1_encprivpart (handle); if (lpriv->priv == NULL) return SHISHI_ASN1_ERROR; rc = shishi_asn1_write (handle, lpriv->encprivpart, "timestamp", shishi_generalize_time (handle, time (NULL)), 0); if (rc != SHISHI_OK) return rc; rc = gettimeofday (&tv, NULL); if (rc != 0) return SHISHI_GETTIMEOFDAY_ERROR; usec = xasprintf ("%ld", tv.tv_usec % 1000000); rc = shishi_asn1_write (handle, lpriv->encprivpart, "usec", usec, 0); free (usec); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->encprivpart, "seq-number", NULL, 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->encprivpart, "s-address.addr-type", /* directional */ "3", 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->encprivpart, "s-address.address", /* sender */ "\x00\x00\x00\x00", 4); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lpriv->encprivpart, "r-address", NULL, 0); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_priv_done: * @priv: structure that holds information about PRIV exchange * * Deallocate resources associated with PRIV exchange. This should be * called by the application when it no longer need to utilize the * PRIV exchange handle. **/ void shishi_priv_done (Shishi_priv * priv) { shishi_asn1_done (priv->handle, priv->priv); shishi_asn1_done (priv->handle, priv->encprivpart); shishi_key_done (priv->key); free (priv); } /** * shishi_priv_key: * @priv: structure that holds information about PRIV exchange * * Get key from PRIV exchange. * * Return value: Returns the key used in the PRIV exchange, or NULL if * not yet set or an error occured. **/ Shishi_key * shishi_priv_key (Shishi_priv * priv) { return priv->key; } /** * shishi_priv_key_set: * @priv: structure that holds information about PRIV exchange * @key: key to store in PRIV. * * Set the Key in the PRIV exchange. **/ void shishi_priv_key_set (Shishi_priv * priv, Shishi_key * key) { shishi_key_copy (priv->key, key); } /** * shishi_priv_priv: * @priv: structure that holds information about PRIV exchange * * Get ASN.1 PRIV structure in PRIV exchange. * * Return value: Returns the ASN.1 priv in the PRIV exchange, or NULL if * not yet set or an error occured. **/ Shishi_asn1 shishi_priv_priv (Shishi_priv * priv) { return priv->priv; } /** * shishi_priv_priv_set: * @priv: structure that holds information about PRIV exchange * @asn1priv: KRB-PRIV to store in PRIV exchange. * * Set the KRB-PRIV in the PRIV exchange. **/ void shishi_priv_priv_set (Shishi_priv * priv, Shishi_asn1 asn1priv) { if (priv->priv) shishi_asn1_done (priv->handle, priv->priv); priv->priv = asn1priv; } /** * shishi_priv_priv_der: * @priv: priv as allocated by shishi_priv(). * @out: output array with newly allocated DER encoding of PRIV. * @outlen: length of output array with DER encoding of PRIV. * * DER encode PRIV structure. Typically shishi_priv_build() is used * to build the PRIV structure first. @out is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_priv_der (Shishi_priv * priv, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (priv->handle, priv->priv, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_priv_priv_der_set: * @priv: priv as allocated by shishi_priv(). * @der: input array with DER encoded KRB-PRIV. * @derlen: length of input array with DER encoded KRB-PRIV. * * DER decode KRB-PRIV and set it PRIV exchange. If decoding fails, the * KRB-PRIV in the PRIV exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_priv_priv_der_set (Shishi_priv * priv, char *der, size_t derlen) { Shishi_asn1 asn1priv; asn1priv = shishi_der2asn1_priv (priv->handle, der, derlen); if (asn1priv == NULL) return SHISHI_ASN1_ERROR; shishi_priv_priv_set (priv, asn1priv); return SHISHI_OK; } /** * shishi_priv_encprivpart: * @priv: structure that holds information about PRIV exchange * * Get ASN.1 EncPrivPart structure from PRIV exchange. * * Return value: Returns the ASN.1 encprivpart in the PRIV exchange, or NULL if * not yet set or an error occured. **/ Shishi_asn1 shishi_priv_encprivpart (Shishi_priv * priv) { return priv->encprivpart; } /** * shishi_priv_encprivpart_set: * @priv: structure that holds information about PRIV exchange * @asn1encprivpart: ENCPRIVPART to store in PRIV exchange. * * Set the ENCPRIVPART in the PRIV exchange. **/ void shishi_priv_encprivpart_set (Shishi_priv * priv, Shishi_asn1 asn1encprivpart) { if (priv->encprivpart) shishi_asn1_done (priv->handle, priv->encprivpart); priv->encprivpart = asn1encprivpart; } /** * shishi_priv_encprivpart_der: * @priv: priv as allocated by shishi_priv(). * @out: output array with newly allocated DER encoding of ENCPRIVPART. * @outlen: length of output array with DER encoding of ENCPRIVPART. * * DER encode ENCPRIVPART structure. @out is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_encprivpart_der (Shishi_priv * priv, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (priv->handle, priv->encprivpart, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_priv_encprivpart_der_set: * @priv: priv as allocated by shishi_priv(). * @der: input array with DER encoded ENCPRIVPART. * @derlen: length of input array with DER encoded ENCPRIVPART. * * DER decode ENCPRIVPART and set it PRIV exchange. If decoding * fails, the ENCPRIVPART in the PRIV exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_priv_encprivpart_der_set (Shishi_priv * priv, char *der, size_t derlen) { Shishi_asn1 asn1encprivpart; asn1encprivpart = shishi_der2asn1_encprivpart (priv->handle, der, derlen); if (asn1encprivpart == NULL) return SHISHI_ASN1_ERROR; shishi_priv_encprivpart_set (priv, asn1encprivpart); return SHISHI_OK; } /** * shishi_priv_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @priv: PRIV to print. * * Print ASCII armored DER encoding of PRIV to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_print (Shishi * handle, FILE * fh, Shishi_asn1 priv) { return _shishi_print_armored_data (handle, fh, priv, "KRB-PRIV", NULL); } /** * shishi_priv_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @priv: PRIV to save. * * Save DER encoding of PRIV to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_save (Shishi * handle, FILE * fh, Shishi_asn1 priv) { return _shishi_save_data (handle, fh, priv, "PRIV"); } /** * shishi_priv_to_file: * @handle: shishi handle as allocated by shishi_init(). * @priv: PRIV to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write PRIV to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_to_file (Shishi * handle, Shishi_asn1 priv, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing PRIV to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing PRIV in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_priv_print (handle, fh, priv); else res = shishi_priv_save (handle, fh, priv); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing PRIV to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_priv_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @priv: output variable with newly allocated PRIV. * * Read ASCII armored DER encoded PRIV from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_parse (Shishi * handle, FILE * fh, Shishi_asn1 * priv) { return _shishi_priv_input (handle, fh, priv, 0); } /** * shishi_priv_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @priv: output variable with newly allocated PRIV. * * Read DER encoded PRIV from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_read (Shishi * handle, FILE * fh, Shishi_asn1 * priv) { return _shishi_priv_input (handle, fh, priv, 1); } /** * shishi_priv_from_file: * @handle: shishi handle as allocated by shishi_init(). * @priv: output variable with newly allocated PRIV. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read PRIV from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_from_file (Shishi * handle, Shishi_asn1 * priv, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading PRIV from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading PRIV in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_priv_parse (handle, fh, priv); else res = shishi_priv_read (handle, fh, priv); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading PRIV from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_priv_enc_part_etype: * @handle: shishi handle as allocated by shishi_init(). * @priv: PRIV variable to get value from. * @etype: output variable that holds the value. * * Extract PRIV.enc-part.etype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_enc_part_etype (Shishi * handle, Shishi_asn1 priv, int32_t * etype) { return shishi_asn1_read_int32 (handle, priv, "enc-part.etype", etype); } /** * shishi_priv_set_enc_part: * @handle: shishi handle as allocated by shishi_init(). * @priv: priv as allocated by shishi_priv(). * @etype: input encryption type to store in PRIV. * @encpart: input encrypted data to store in PRIV. * @encpartlen: size of input encrypted data to store in PRIV. * * Store encrypted data in PRIV. The encrypted data is usually * created by calling shishi_encrypt() on some application specific * data using the key from the ticket that is being used. To save * time, you may want to use shishi_priv_build() instead, which * encryptes the data and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_set_enc_part (Shishi * handle, Shishi_asn1 priv, int32_t etype, const char *encpart, size_t encpartlen) { int res; res = shishi_asn1_write_integer (handle, priv, "enc-part.etype", etype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, priv, "enc-part.cipher", encpart, encpartlen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encprivpart_user_data: * @handle: shishi handle as allocated by shishi_init(). * @encprivpart: encprivpart as allocated by shishi_priv(). * @userdata: output array with newly allocated user data from KRB-PRIV. * @userdatalen: output size of output user data buffer. * * Read user data value from KRB-PRIV. @userdata is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encprivpart_user_data (Shishi * handle, Shishi_asn1 encprivpart, char **userdata, size_t *userdatalen) { int res; res = shishi_asn1_read (handle, encprivpart, "user-data", userdata, userdatalen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encprivpart_set_user_data: * @handle: shishi handle as allocated by shishi_init(). * @encprivpart: encprivpart as allocated by shishi_priv(). * @userdata: input user application to store in PRIV. * @userdatalen: size of input user application to store in PRIV. * * Set the application data in PRIV. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encprivpart_set_user_data (Shishi * handle, Shishi_asn1 encprivpart, const char *userdata, size_t userdatalen) { int res; res = shishi_asn1_write (handle, encprivpart, "user-data", userdata, userdatalen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_priv_build: * @priv: priv as allocated by shishi_priv(). * @key: key for session, used to encrypt data. * * Build checksum and set it in KRB-PRIV. Note that this follows RFC * 1510bis and is incompatible with RFC 1510, although presumably few * implementations use the RFC1510 algorithm. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_priv_build (Shishi_priv * priv, Shishi_key * key) { int res; char *buf; size_t buflen; char *der; size_t derlen; res = shishi_asn1_to_der (priv->handle, priv->encprivpart, &der, &derlen); if (res != SHISHI_OK) { shishi_error_printf (priv->handle, "Could not DER encode EncPrivPart: %s\n", shishi_strerror (res)); return res; } res = shishi_encrypt (priv->handle, key, SHISHI_KEYUSAGE_KRB_PRIV, der, derlen, &buf, &buflen); free (der); if (res != SHISHI_OK) { shishi_error_printf (priv->handle, "Cannot encrypt EncPrivPart.\n"); return res; } res = shishi_priv_set_enc_part (priv->handle, priv->priv, shishi_key_type (key), buf, buflen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_priv_process: * @priv: priv as allocated by shishi_priv(). * @key: key to use to decrypt EncPrivPart. * * Decrypt encrypted data in KRB-PRIV and set the EncPrivPart in the * PRIV exchange. * * Return value: Returns SHISHI_OK iff successful, * SHISHI_PRIV_BAD_KEYTYPE if an incompatible key type is used, or * SHISHI_CRYPTO_ERROR if the actual decryption failed. **/ int shishi_priv_process (Shishi_priv * priv, Shishi_key * key) { int res; int i; char *buf; size_t buflen; char *cipher; size_t cipherlen; int32_t etype; res = shishi_priv_enc_part_etype (priv->handle, priv->priv, &etype); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (key)) return SHISHI_PRIV_BAD_KEYTYPE; res = shishi_asn1_read (priv->handle, priv->priv, "enc-part.cipher", &cipher, &cipherlen); if (res != SHISHI_OK) return res; res = shishi_decrypt (priv->handle, key, SHISHI_KEYUSAGE_KRB_PRIV, cipher, cipherlen, &buf, &buflen); free (cipher); if (res != SHISHI_OK) { shishi_error_printf (priv->handle, "PRIV decryption failed, bad key?\n"); return res; } /* The crypto is so 1980; no length indicator. Trim off pad bytes until we can parse it. */ for (i = 0; i < 8; i++) { if (VERBOSEASN1 (priv->handle)) printf ("Trying with %d pad in enckdcrep...\n", i); priv->encprivpart = shishi_der2asn1_encprivpart (priv->handle, &buf[0], buflen - i); if (priv->encprivpart != NULL) break; } free (buf); if (priv->encprivpart == NULL) { shishi_error_printf (priv->handle, "Could not DER decode EncPrivPart. " "Key probably correct (decrypt ok) though\n"); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } shishi-1.0.3/lib/version.c0000644000000000000000000000276114273601533012302 00000000000000/* version.c --- Version handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * */ #include "internal.h" /** * shishi_check_version: * @req_version: Oldest acceptable version, or %NULL. * * Checks that the installed library version is at least * as recent as the one provided in @req_version. * The version string is formatted like "1.0.2". * * Whenever %NULL is passed to this function, the check is * suppressed, but the library version is still returned. * * Return value: Returns the active library version, * or %NULL, should the running library be too old. **/ const char * shishi_check_version (const char *req_version) { if (!req_version || strverscmp (req_version, PACKAGE_VERSION) <= 0) return PACKAGE_VERSION; return NULL; } shishi-1.0.3/lib/ccache.c0000644000000000000000000003461514273601533012026 00000000000000/* ccache.c --- Read MIT style Kerberos Credential Cache file. * Copyright (C) 2006-2022 Simon Josefsson * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 3 of the License, * or (at your option) any later version. * * This file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this file; if not, see http://www.gnu.org/licenses or * write to the Free Software Foundation, Inc., 51 Franklin Street, * Fifth Floor, Boston, MA 02110-1301, USA * */ #include "ccache.h" #include /* See ccache.txt for a description of the file format. Currently this implementation do not support addresses nor auth-data. */ static int get_uint8 (const char **data, size_t *len, uint8_t * i) { const char *p = *data; if (*len < 1) return -1; *i = p[0]; *data += 1; *len -= 1; return 0; } static int get_uint16 (const char **data, size_t *len, uint16_t * i) { const char *p = *data; if (*len < 2) return -1; *i = p[0] << 8 | p[1]; *data += 2; *len -= 2; return 0; } static int get_uint32 (const char **data, size_t *len, uint32_t * i) { const char *p = *data; if (*len < 4) return -1; *i = ((p[0] << 24) & 0xFF000000) | ((p[1] << 16) & 0xFF0000) | ((p[2] << 8) & 0xFF00) | (p[3] & 0xFF); *data += 4; *len -= 4; return 0; } static int get_uint32_swapped (const char **data, size_t *len, uint32_t * i) { const char *p = *data; if (*len < 4) return -1; *i = ((p[3] << 24) & 0xFF000000) | ((p[2] << 16) & 0xFF0000) | ((p[1] << 8) & 0xFF00) | (p[0] & 0xFF); *data += 4; *len -= 4; return 0; } static int put_uint8 (uint8_t i, char **data, size_t *len) { if (*len < 1) return -1; *(*data)++ = i; *len -= 1; return 0; } static int put_uint16 (uint16_t i, char **data, size_t *len) { if (*len < 2) return -1; *(*data)++ = (i >> 8) & 0xFF; *(*data)++ = i; *len -= 2; return 0; } static int put_uint32 (uint32_t i, char **data, size_t *len) { if (*len < 4) return -1; *(*data)++ = (i >> 24) & 0xFF; *(*data)++ = (i >> 16) & 0xFF; *(*data)++ = (i >> 8) & 0xFF; *(*data)++ = i; *len -= 4; return 0; } static int put_uint32_swapped (uint32_t i, char **data, size_t *len) { if (*len < 4) return -1; *(*data)++ = i; *(*data)++ = (i >> 8) & 0xFF; *(*data)++ = (i >> 16) & 0xFF; *(*data)++ = (i >> 24) & 0xFF; *len -= 4; return 0; } static int parse_principal (const char **data, size_t *len, struct ccache_principal *out) { size_t n; int rc; rc = get_uint32 (data, len, &out->name_type); if (rc < 0) return rc; rc = get_uint32 (data, len, &out->num_components); if (rc < 0) return rc; if (out->num_components >= CCACHE_MAX_COMPONENTS) return -1; rc = get_uint32 (data, len, &out->realm.length); if (rc < 0) return rc; if (*len < out->realm.length) return -1; out->realm.data = (char *) *data; *data += out->realm.length; *len -= out->realm.length; /* Make sure realm will be zero terminated. This limits component lengths to 2^24 bytes. */ if (**(char **) data != '\0') return -1; for (n = 0; n < out->num_components; n++) { rc = get_uint32 (data, len, &out->components[n].length); if (rc < 0) return rc; if (*len < out->components[n].length) return -1; out->components[n].data = (char *) *data; *data += out->components[n].length; *len -= out->components[n].length; /* Make sure component is zero terminated. This limits the length of the next component to 2^24 bytes. Note that you'll have to test after the last component elsewhere. */ if (*len > 0 && **(char **) data != '\0') return -1; } return 0; } static int skip_address (const char **data, size_t *len) { uint16_t addrtype; uint32_t addrlen; int rc; rc = get_uint16 (data, len, &addrtype); if (rc < 0) return rc; rc = get_uint32 (data, len, &addrlen); if (rc < 0) return rc; if (*len < addrlen) return -1; *data += addrlen; *len -= addrlen; return 0; } static int skip_authdata (const char **data, size_t *len) { uint16_t authdatatype; uint32_t authdatalen; int rc; rc = get_uint16 (data, len, &authdatatype); if (rc < 0) return rc; rc = get_uint32 (data, len, &authdatalen); if (rc < 0) return rc; if (*len < authdatalen) return -1; *data += authdatalen; *len -= authdatalen; return 0; } static int parse_credential (const char **data, size_t *len, struct ccache_credential *out) { uint32_t num_address; uint32_t num_authdata; int rc; rc = parse_principal (data, len, &out->client); if (rc < 0) return rc; /* Make sure the last component is zero terminated. This limits the next name-type to 2^24 bytes. */ if (*len > 0 && **(char **) data != '\0') return -1; rc = parse_principal (data, len, &out->server); if (rc < 0) return rc; /* Make sure the last component is zero terminated. This limits the next key-type to lower 1 byte. */ if (*len > 0 && **(char **) data != '\0') return -1; rc = get_uint16 (data, len, &out->key.keytype); if (rc < 0) return rc; rc = get_uint16 (data, len, &out->key.etype); if (rc < 0) return rc; rc = get_uint16 (data, len, &out->key.keylen); if (rc < 0) return rc; if (*len < out->key.keylen) return -1; out->key.keyvalue = (char *) *data; *data += out->key.keylen; *len -= out->key.keylen; rc = get_uint32 (data, len, &out->authtime); if (rc < 0) return rc; rc = get_uint32 (data, len, &out->starttime); if (rc < 0) return rc; rc = get_uint32 (data, len, &out->endtime); if (rc < 0) return rc; rc = get_uint32 (data, len, &out->renew_till); if (rc < 0) return rc; rc = get_uint8 (data, len, &out->is_skey); if (rc < 0) return rc; rc = get_uint32_swapped (data, len, &out->tktflags); if (rc < 0) return rc; rc = get_uint32 (data, len, &num_address); if (rc < 0) return rc; for (; num_address; num_address--) { /* XXX Don't just skip data. */ rc = skip_address (data, len); if (rc < 0) return rc; } rc = get_uint32 (data, len, &num_authdata); if (rc < 0) return rc; for (; num_authdata; num_authdata--) { /* XXX Don't just skip data. */ rc = skip_authdata (data, len); if (rc < 0) return rc; } rc = get_uint32 (data, len, &out->ticket.length); if (rc < 0) return rc; if (*len < out->ticket.length) return -1; out->ticket.data = (char *) *data; *data += out->ticket.length; *len -= out->ticket.length; rc = get_uint32 (data, len, &out->second_ticket.length); if (rc < 0) return rc; if (*len < out->second_ticket.length) return -1; out->second_ticket.data = (char *) *data; *data += out->second_ticket.length; *len -= out->second_ticket.length; return 0; } int ccache_parse (const char *data, size_t len, struct ccache *out) { int rc; rc = get_uint16 (&data, &len, &out->file_format_version); if (rc < 0) return rc; rc = get_uint16 (&data, &len, &out->headerlen); if (rc < 0) return rc; if (len < out->headerlen) return -1; out->header = (char *) data; data += out->headerlen; len -= out->headerlen; rc = parse_principal (&data, &len, &out->default_principal); if (rc < 0) return rc; out->credentials = (char *) data; out->credentialslen = len; return 0; } int ccache_parse_credential (const char *data, size_t len, struct ccache_credential *out, size_t *n) { size_t savelen = len; int rc = parse_credential (&data, &len, out); if (rc < 0) return rc; *n = savelen - len; return 0; } static int pack_principal (struct ccache_principal *princ, char **out, size_t *len) { size_t n; int rc; rc = put_uint32 (princ->name_type, out, len); if (rc < 0) return rc; rc = put_uint32 (princ->num_components, out, len); if (rc < 0) return rc; if (princ->num_components >= CCACHE_MAX_COMPONENTS) return -1; rc = put_uint32 (princ->realm.length, out, len); if (rc < 0) return rc; if (*len < princ->realm.length) return -1; memcpy (*out, princ->realm.data, princ->realm.length); *out += princ->realm.length; *len -= princ->realm.length; for (n = 0; n < princ->num_components; n++) { rc = put_uint32 (princ->components[n].length, out, len); if (rc < 0) return rc; if (*len < princ->components[n].length) return -1; memcpy (*out, princ->components[n].data, princ->components[n].length); *out += princ->components[n].length; *len -= princ->components[n].length; } return 0; } static int pack_credential (struct ccache_credential *cred, char **out, size_t *len) { int rc; rc = pack_principal (&cred->client, out, len); if (rc < 0) return rc; rc = pack_principal (&cred->server, out, len); if (rc < 0) return rc; rc = put_uint16 (cred->key.keytype, out, len); if (rc < 0) return rc; rc = put_uint16 (cred->key.etype, out, len); if (rc < 0) return rc; rc = put_uint16 (cred->key.keylen, out, len); if (rc < 0) return rc; if (*len < cred->key.keylen) return -1; memcpy (*out, cred->key.keyvalue, cred->key.keylen); *out += cred->key.keylen; *len -= cred->key.keylen; rc = put_uint32 (cred->authtime, out, len); if (rc < 0) return rc; rc = put_uint32 (cred->starttime, out, len); if (rc < 0) return rc; rc = put_uint32 (cred->endtime, out, len); if (rc < 0) return rc; rc = put_uint32 (cred->renew_till, out, len); if (rc < 0) return rc; rc = put_uint8 (0, out, len); if (rc < 0) return rc; rc = put_uint32_swapped (cred->tktflags, out, len); if (rc < 0) return rc; /* XXX Write addresses. */ rc = put_uint32 (0, out, len); if (rc < 0) return rc; /* XXX Write auth-data. */ rc = put_uint32 (0, out, len); if (rc < 0) return rc; rc = put_uint32 (cred->ticket.length, out, len); if (rc < 0) return rc; if (*len < cred->ticket.length) return -1; memcpy (*out, cred->ticket.data, cred->ticket.length); *out += cred->ticket.length; *len -= cred->ticket.length; rc = put_uint32 (cred->second_ticket.length, out, len); if (rc < 0) return rc; if (*len < cred->second_ticket.length) return -1; memcpy (*out, cred->second_ticket.data, cred->second_ticket.length); *out += cred->second_ticket.length; *len -= cred->second_ticket.length; return 0; } int ccache_pack_credential (struct ccache_credential *cred, char *out, size_t *len) { size_t savelen = *len; int rc = pack_credential (cred, &out, len); if (rc < 0) return rc; *len = savelen - *len; return 0; } int ccache_pack (struct ccache *info, char *data, size_t *len) { size_t savelen = *len; int rc; rc = put_uint16 (info->file_format_version ? info->file_format_version : 0x0504, &data, len); if (rc < 0) return rc; rc = put_uint16 (info->headerlen, &data, len); if (rc < 0) return rc; if (*len < info->headerlen) return -1; memcpy (data, info->header, info->headerlen); data += info->headerlen; *len -= info->headerlen; rc = pack_principal (&info->default_principal, &data, len); if (rc < 0) return rc; *len = savelen - *len; return 0; } void ccache_print (struct ccache *ccache) { printf ("file_format_version %04x\n", ccache->file_format_version); printf ("headerlen %04x\n", ccache->headerlen); printf ("default_principal\n"); ccache_print_principal (&ccache->default_principal); } void ccache_print_principal (struct ccache_principal *princ) { size_t n; printf ("\tname_type %04x\n", princ->name_type); printf ("\tnum_components %04x\n", princ->num_components); printf ("\trealmlen %04x\n", princ->realm.length); printf ("\trealm %.*s\n", (int) princ->realm.length, princ->realm.data); for (n = 0; n < princ->num_components; n++) { printf ("\t\tcomponentlen %04x\n", princ->components[n].length); printf ("\t\tcomponent %.*s\n", (int) princ->components[n].length, princ->components[n].data); } } void ccache_print_credential (struct ccache_credential *cred) { size_t i; printf ("\tclient:\n"); ccache_print_principal (&cred->client); printf ("\tserver:\n"); ccache_print_principal (&cred->server); printf ("\tkey:\n"); printf ("\t\tkeytype %04x\n", cred->key.keytype); printf ("\t\tetype %04x\n", cred->key.etype); printf ("\t\tkeylen %04x\n", cred->key.keylen); printf ("\t\tkey value: "); for (i = 0; i < cred->key.keylen; i++) printf ("%02x", (unsigned) ((char *) cred->key.keyvalue)[i] & 0xFF); printf ("\n"); printf ("\ttimes:\n"); printf ("\t\tauthtime %04x\n", cred->authtime); printf ("\t\tstarttime %04x\n", cred->starttime); printf ("\t\tendtime %04x\n", cred->endtime); printf ("\t\trenew_till %04x\n", cred->renew_till); printf ("\tis_skey %04x\n", cred->is_skey); printf ("\ttktflags %04x\n", cred->tktflags); printf ("\tticketlen %04x\n", cred->ticket.length); printf ("\tsecond_ticketlen %04x\n", cred->second_ticket.length); } #ifdef TEST int main (int argc, char *argv[]) { char buf[10240]; size_t len; FILE *fh; int rc; struct ccache ccache; struct ccache_credential cred; size_t i = 0; if (argc <= 1) { printf ("Usage: %s \n", argv[0]); return 1; } fh = fopen (argv[1], "rb"); if (!fh) { puts ("Error: cannot open file"); return 1; } len = fread (buf, 1, sizeof (buf), fh); if (len >= sizeof (buf)) { puts ("Error: file too large"); return 1; } rc = ccache_parse (buf, len, &ccache); if (rc < 0) { puts ("Error: syntax error"); return 1; } ccache_print (&ccache); while (ccache.credentialslen) { size_t n; rc = ccache_parse_credential (ccache.credentials, ccache.credentialslen, &cred, &n); if (rc < 0) { printf ("Error: cannot parse credential %d\n", i); return rc; } printf ("\nCredential %d:\n", i++); ccache_print_credential (&cred); ccache.credentials += n; ccache.credentialslen -= n; } if (fclose (fh)) { puts ("Error: cannot close file"); return 1; } return 0; } #endif shishi-1.0.3/lib/crypto-ctx.c0000644000000000000000000001200114273601533012715 00000000000000/* crypto-ctx.c high-level crypto functions * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_crypto { Shishi *handle; Shishi_key *key; int keyusage; int32_t etype; char *iv; size_t ivlen; }; /** * shishi_crypto: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key will encrypt/decrypt. * @etype: integer specifying what cipher to use. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * * Initialize a crypto context. This store a key, keyusage, * encryption type and initialization vector in a "context", and the * caller can then use this context to perform encryption via * shishi_crypto_encrypt() and decryption via shishi_crypto_encrypt() * without supplying all those details again. The functions also * takes care of propagating the IV between calls. * * When the application no longer need to use the context, it should * deallocate resources associated with it by calling * shishi_crypto_close(). * * Return value: Return a newly allocated crypto context. **/ Shishi_crypto * shishi_crypto (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen) { Shishi_crypto *ctx; ctx = xmalloc (sizeof (*ctx)); shishi_key (handle, &ctx->key); /* XXX handle rc, or rather: change shishi_key() to return key instead of int. */ shishi_key_copy (ctx->key, key); ctx->handle = handle; ctx->keyusage = keyusage; ctx->etype = etype; if (iv) ctx->iv = xmemdup (iv, ivlen); else ctx->iv = NULL; ctx->ivlen = ivlen; return ctx; } /** * shishi_crypto_encrypt: * @ctx: crypto context as returned by shishi_crypto(). * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypt data, using information (e.g., key and initialization * vector) from context. The IV is updated inside the context after * this call. * * When the application no longer need to use the context, it should * deallocate resources associated with it by calling * shishi_crypto_close(). * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_crypto_encrypt (Shishi_crypto * ctx, const char *in, size_t inlen, char **out, size_t *outlen) { char *ivout = NULL; size_t ivoutlen; int rc; rc = shishi_encrypt_ivupdate_etype (ctx->handle, ctx->key, ctx->keyusage, ctx->etype, ctx->iv, ctx->ivlen, &ivout, &ivoutlen, in, inlen, out, outlen); if (rc == SHISHI_OK) { free (ctx->iv); ctx->iv = ivout; ctx->ivlen = ivoutlen; } return rc; } /** * shishi_crypto_decrypt: * @ctx: crypto context as returned by shishi_crypto(). * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypt data, using information (e.g., key and initialization * vector) from context. The IV is updated inside the context after * this call. * * When the application no longer need to use the context, it should * deallocate resources associated with it by calling * shishi_crypto_close(). * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_crypto_decrypt (Shishi_crypto * ctx, const char *in, size_t inlen, char **out, size_t *outlen) { char *ivout = NULL; size_t ivoutlen; int rc; rc = shishi_decrypt_ivupdate_etype (ctx->handle, ctx->key, ctx->keyusage, ctx->etype, ctx->iv, ctx->ivlen, &ivout, &ivoutlen, in, inlen, out, outlen); if (rc == SHISHI_OK) { free (ctx->iv); ctx->iv = ivout; ctx->ivlen = ivoutlen; } return rc; } /** * shishi_crypto_close: * @ctx: crypto context as returned by shishi_crypto(). * * Deallocate resources associated with the crypto context. **/ void shishi_crypto_close (Shishi_crypto * ctx) { if (ctx) { shishi_key_done (ctx->key); free (ctx->iv); free (ctx); } } shishi-1.0.3/lib/libshishi.map0000644000000000000000000005214514273600463013130 00000000000000# libshishi.maps -- versioning script to control what symbols to export # Copyright (C) 2005-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SHISHI_0.0 { global: # Variables: shishi_alloc_fail_function; # Functions: shishi; shishi_3des; shishi_aes_cts; shishi_ap; shishi_ap_authenticator; shishi_ap_authenticator_cksumdata; shishi_ap_authenticator_cksumdata_set; shishi_ap_authenticator_cksumraw_set; shishi_ap_authenticator_cksumtype; shishi_ap_authenticator_cksumtype_set; shishi_ap_authenticator_set; shishi_ap_done; shishi_ap_encapreppart; shishi_ap_encapreppart_set; shishi_ap_etype; shishi_ap_etype_tktoptionsdata; shishi_ap_key; shishi_ap_nosubkey; shishi_ap_option2string; shishi_ap_rep; shishi_ap_rep_asn1; shishi_ap_rep_build; shishi_ap_rep_der; shishi_ap_rep_der_set; shishi_ap_rep_set; shishi_ap_rep_verify; shishi_ap_rep_verify_asn1; shishi_ap_rep_verify_der; shishi_ap_req; shishi_ap_req_asn1; shishi_ap_req_build; shishi_ap_req_decode; shishi_ap_req_der; shishi_ap_req_der_set; shishi_ap_req_process; shishi_ap_req_process_keyusage; shishi_ap_req_set; shishi_ap_set_tktoptions; shishi_ap_set_tktoptionsasn1usage; shishi_ap_set_tktoptionsdata; shishi_ap_set_tktoptionsraw; shishi_ap_string2option; shishi_ap_tkt; shishi_ap_tkt_set; shishi_ap_tktoptions; shishi_ap_tktoptionsasn1usage; shishi_ap_tktoptionsdata; shishi_ap_tktoptionsraw; shishi_aprep; shishi_aprep_decrypt; shishi_aprep_enc_part_add; shishi_aprep_enc_part_make; shishi_aprep_enc_part_set; shishi_aprep_from_file; shishi_aprep_get_enc_part_etype; shishi_aprep_parse; shishi_aprep_print; shishi_aprep_read; shishi_aprep_save; shishi_aprep_to_file; shishi_aprep_verify; shishi_apreq; shishi_apreq_add_authenticator; shishi_apreq_decrypt; shishi_apreq_from_file; shishi_apreq_get_authenticator_etype; shishi_apreq_get_ticket; shishi_apreq_mutual_required_p; shishi_apreq_options; shishi_apreq_options_add; shishi_apreq_options_remove; shishi_apreq_options_set; shishi_apreq_parse; shishi_apreq_print; shishi_apreq_read; shishi_apreq_save; shishi_apreq_set_authenticator; shishi_apreq_set_ticket; shishi_apreq_to_file; shishi_apreq_use_session_key_p; shishi_arcfour; shishi_as; shishi_as_check_cname; shishi_as_check_crealm; shishi_as_derive_salt; shishi_as_done; shishi_as_krberror; shishi_as_krberror_der; shishi_as_krberror_set; shishi_as_process; shishi_as_rep; shishi_as_rep_build; shishi_as_rep_der; shishi_as_rep_der_set; shishi_as_rep_process; shishi_as_rep_set; shishi_as_req; shishi_as_req_build; shishi_as_req_der; shishi_as_req_der_set; shishi_as_req_set; shishi_as_sendrecv; shishi_as_sendrecv_hint; shishi_as_tkt; shishi_as_tkt_set; shishi_asn1_aprep; shishi_asn1_apreq; shishi_asn1_asrep; shishi_asn1_asreq; shishi_asn1_authenticator; shishi_asn1_done; shishi_asn1_empty_p; shishi_asn1_encapreppart; shishi_asn1_encasreppart; shishi_asn1_enckdcreppart; shishi_asn1_encprivpart; shishi_asn1_encrypteddata; shishi_asn1_encticketpart; shishi_asn1_etype_info; shishi_asn1_etype_info2; shishi_asn1_krberror; shishi_asn1_krbsafe; shishi_asn1_methoddata; shishi_asn1_msgtype; shishi_asn1_number_of_elements; shishi_asn1_pa_enc_ts_enc; shishi_asn1_padata; shishi_asn1_print; shishi_asn1_priv; shishi_asn1_read; shishi_asn1_read_bitstring; shishi_asn1_read_inline; shishi_asn1_read_int32; shishi_asn1_read_integer; shishi_asn1_read_optional; shishi_asn1_read_uint32; shishi_asn1_tgsrep; shishi_asn1_tgsreq; shishi_asn1_ticket; shishi_asn1_to_der; shishi_asn1_to_der_field; shishi_asn1_write; shishi_asn1_write_bitstring; shishi_asn1_write_int32; shishi_asn1_write_integer; shishi_asn1_write_uint32; shishi_asrep; shishi_asreq; shishi_asreq_clientrealm; shishi_authenticator; shishi_authenticator_add_authorizationdata; shishi_authenticator_add_cksum; shishi_authenticator_add_cksum_type; shishi_authenticator_add_random_subkey; shishi_authenticator_add_random_subkey_etype; shishi_authenticator_add_subkey; shishi_authenticator_authorizationdata; shishi_authenticator_cksum; shishi_authenticator_clear_authorizationdata; shishi_authenticator_client; shishi_authenticator_client_set; shishi_authenticator_clientrealm; shishi_authenticator_ctime; shishi_authenticator_ctime_set; shishi_authenticator_cusec_get; shishi_authenticator_cusec_set; shishi_authenticator_from_file; shishi_authenticator_get_subkey; shishi_authenticator_parse; shishi_authenticator_print; shishi_authenticator_read; shishi_authenticator_remove_cksum; shishi_authenticator_remove_subkey; shishi_authenticator_save; shishi_authenticator_seqnumber_get; shishi_authenticator_seqnumber_remove; shishi_authenticator_seqnumber_set; shishi_authenticator_set_cksum; shishi_authenticator_set_cname; shishi_authenticator_set_crealm; shishi_authenticator_set_subkey; shishi_authenticator_subkey; shishi_authenticator_to_file; shishi_authorization_parse; shishi_authorize_k5login; shishi_authorize_strcmp; shishi_authorized_p; shishi_cfg; shishi_cfg_authorizationtype_set; shishi_cfg_clientkdcetype; shishi_cfg_clientkdcetype_fast; shishi_cfg_clientkdcetype_set; shishi_cfg_default_systemfile; shishi_cfg_default_userdirectory; shishi_cfg_default_userfile; shishi_cfg_from_file; shishi_cfg_print; shishi_cfg_userdirectory_file; shishi_check_version; shishi_checksum; shishi_checksum_cksumlen; shishi_checksum_name; shishi_checksum_parse; shishi_checksum_supported_p; shishi_cipher_blocksize; shishi_cipher_confoundersize; shishi_cipher_defaultcksumtype; shishi_cipher_keylen; shishi_cipher_name; shishi_cipher_parse; shishi_cipher_randomlen; shishi_cipher_supported_p; shishi_crc; shishi_crypto; shishi_crypto_close; shishi_crypto_decrypt; shishi_crypto_encrypt; shishi_ctime; shishi_decrypt; shishi_decrypt_etype; shishi_decrypt_iv; shishi_decrypt_iv_etype; shishi_decrypt_ivupdate; shishi_decrypt_ivupdate_etype; shishi_der2asn1; shishi_der2asn1_aprep; shishi_der2asn1_apreq; shishi_der2asn1_asrep; shishi_der2asn1_asreq; shishi_der2asn1_authenticator; shishi_der2asn1_encapreppart; shishi_der2asn1_encasreppart; shishi_der2asn1_enckdcreppart; shishi_der2asn1_encprivpart; shishi_der2asn1_enctgsreppart; shishi_der2asn1_encticketpart; shishi_der2asn1_etype_info; shishi_der2asn1_etype_info2; shishi_der2asn1_kdcrep; shishi_der2asn1_kdcreq; shishi_der2asn1_krberror; shishi_der2asn1_krbsafe; shishi_der2asn1_methoddata; shishi_der2asn1_padata; shishi_der2asn1_priv; shishi_der2asn1_tgsrep; shishi_der2asn1_tgsreq; shishi_der2asn1_ticket; shishi_der_msgtype; shishi_derive_default_salt; shishi_des; shishi_des_cbc_mac; shishi_dk; shishi_done; shishi_dr; shishi_encapreppart; shishi_encapreppart_ctime; shishi_encapreppart_ctime_set; shishi_encapreppart_cusec_get; shishi_encapreppart_cusec_set; shishi_encapreppart_from_file; shishi_encapreppart_get_key; shishi_encapreppart_parse; shishi_encapreppart_print; shishi_encapreppart_read; shishi_encapreppart_save; shishi_encapreppart_seqnumber_get; shishi_encapreppart_seqnumber_remove; shishi_encapreppart_seqnumber_set; shishi_encapreppart_time_copy; shishi_encapreppart_to_file; shishi_encasreppart; shishi_enckdcreppart; shishi_enckdcreppart_authtime_set; shishi_enckdcreppart_endtime_set; shishi_enckdcreppart_flags_set; shishi_enckdcreppart_get_key; shishi_enckdcreppart_key_set; shishi_enckdcreppart_nonce_set; shishi_enckdcreppart_parse; shishi_enckdcreppart_populate_encticketpart; shishi_enckdcreppart_print; shishi_enckdcreppart_read; shishi_enckdcreppart_renew_till_set; shishi_enckdcreppart_save; shishi_enckdcreppart_server_set; shishi_enckdcreppart_sname_set; shishi_enckdcreppart_srealm_set; shishi_enckdcreppart_srealmserver_set; shishi_enckdcreppart_starttime_set; shishi_encprivpart_set_user_data; shishi_encprivpart_user_data; shishi_encrypt; shishi_encrypt_etype; shishi_encrypt_iv; shishi_encrypt_iv_etype; shishi_encrypt_ivupdate; shishi_encrypt_ivupdate_etype; shishi_encticketpart; shishi_encticketpart_authctime; shishi_encticketpart_authtime; shishi_encticketpart_authtime_set; shishi_encticketpart_client; shishi_encticketpart_clientrealm; shishi_encticketpart_cname_set; shishi_encticketpart_crealm; shishi_encticketpart_crealm_set; shishi_encticketpart_endtime_set; shishi_encticketpart_flags_set; shishi_encticketpart_get_key; shishi_encticketpart_key_set; shishi_encticketpart_print; shishi_encticketpart_transited_set; shishi_error; shishi_error_clear; shishi_error_outputtype; shishi_error_printf; shishi_error_set; shishi_error_set_outputtype; shishi_etype_info2_print; shishi_etype_info_print; shishi_generalize_ctime; shishi_generalize_now; shishi_generalize_time; shishi_get_date; shishi_hmac_md5; shishi_hmac_sha1; shishi_hostkeys_default_file; shishi_hostkeys_default_file_set; shishi_hostkeys_for_localservice; shishi_hostkeys_for_localservicerealm; shishi_hostkeys_for_server; shishi_hostkeys_for_serverrealm; shishi_info; shishi_init; shishi_init_server; shishi_init_server_with_paths; shishi_init_with_paths; shishi_kdc_check_nonce; shishi_kdc_copy_cname; shishi_kdc_copy_crealm; shishi_kdc_copy_nonce; shishi_kdc_process; shishi_kdc_sendrecv; shishi_kdc_sendrecv_hint; shishi_kdcrep_add_enc_part; shishi_kdcrep_clear_padata; shishi_kdcrep_client_set; shishi_kdcrep_cname_set; shishi_kdcrep_crealm_set; shishi_kdcrep_crealmserver_set; shishi_kdcrep_decrypt; shishi_kdcrep_from_file; shishi_kdcrep_get_enc_part_etype; shishi_kdcrep_get_ticket; shishi_kdcrep_parse; shishi_kdcrep_print; shishi_kdcrep_read; shishi_kdcrep_save; shishi_kdcrep_set_enc_part; shishi_kdcrep_set_ticket; shishi_kdcrep_to_file; shishi_kdcreq_add_padata; shishi_kdcreq_add_padata_preauth; shishi_kdcreq_add_padata_tgs; shishi_kdcreq_allow_postdate_p; shishi_kdcreq_build; shishi_kdcreq_clear_padata; shishi_kdcreq_client; shishi_kdcreq_disable_transited_check_p; shishi_kdcreq_enc_tkt_in_skey_p; shishi_kdcreq_etype; shishi_kdcreq_forwardable_p; shishi_kdcreq_forwarded_p; shishi_kdcreq_from_file; shishi_kdcreq_get_padata; shishi_kdcreq_get_padata_tgs; shishi_kdcreq_nonce; shishi_kdcreq_nonce_set; shishi_kdcreq_options; shishi_kdcreq_options_add; shishi_kdcreq_options_set; shishi_kdcreq_parse; shishi_kdcreq_postdated_p; shishi_kdcreq_print; shishi_kdcreq_proxiable_p; shishi_kdcreq_proxy_p; shishi_kdcreq_read; shishi_kdcreq_realm; shishi_kdcreq_realm_get; shishi_kdcreq_renew_p; shishi_kdcreq_renewable_ok_p; shishi_kdcreq_renewable_p; shishi_kdcreq_save; shishi_kdcreq_sendrecv; shishi_kdcreq_sendrecv_hint; shishi_kdcreq_server; shishi_kdcreq_set_cname; shishi_kdcreq_set_etype; shishi_kdcreq_set_realm; shishi_kdcreq_set_realmserver; shishi_kdcreq_set_server; shishi_kdcreq_set_sname; shishi_kdcreq_till; shishi_kdcreq_tillc; shishi_kdcreq_to_file; shishi_kdcreq_validate_p; shishi_key; shishi_key_copy; shishi_key_done; shishi_key_from_base64; shishi_key_from_name; shishi_key_from_random; shishi_key_from_string; shishi_key_from_value; shishi_key_length; shishi_key_name; shishi_key_parse; shishi_key_principal; shishi_key_principal_set; shishi_key_print; shishi_key_random; shishi_key_realm; shishi_key_realm_set; shishi_key_to_file; shishi_key_type; shishi_key_type_set; shishi_key_value; shishi_key_value_set; shishi_key_version; shishi_key_version_set; shishi_keys; shishi_keys_add; shishi_keys_add_keytab_file; shishi_keys_add_keytab_mem; shishi_keys_done; shishi_keys_for_localservicerealm_in_file; shishi_keys_for_server_in_file; shishi_keys_for_serverrealm_in_file; shishi_keys_from_keytab_file; shishi_keys_from_keytab_mem; shishi_keys_nth; shishi_keys_print; shishi_keys_remove; shishi_keys_size; shishi_keys_to_file; shishi_krberror; shishi_krberror_build; shishi_krberror_client; shishi_krberror_client_set; shishi_krberror_crealm; shishi_krberror_ctime; shishi_krberror_ctime_set; shishi_krberror_cusec; shishi_krberror_cusec_set; shishi_krberror_der; shishi_krberror_edata; shishi_krberror_errorcode; shishi_krberror_errorcode_fast; shishi_krberror_errorcode_message; shishi_krberror_errorcode_set; shishi_krberror_etext; shishi_krberror_from_file; shishi_krberror_message; shishi_krberror_methoddata; shishi_krberror_parse; shishi_krberror_pretty_print; shishi_krberror_print; shishi_krberror_read; shishi_krberror_realm; shishi_krberror_remove_cname; shishi_krberror_remove_crealm; shishi_krberror_remove_ctime; shishi_krberror_remove_cusec; shishi_krberror_remove_edata; shishi_krberror_remove_etext; shishi_krberror_remove_sname; shishi_krberror_save; shishi_krberror_server; shishi_krberror_server_set; shishi_krberror_set_cname; shishi_krberror_set_crealm; shishi_krberror_set_edata; shishi_krberror_set_etext; shishi_krberror_set_realm; shishi_krberror_set_sname; shishi_krberror_stime; shishi_krberror_stime_set; shishi_krberror_susec; shishi_krberror_susec_set; shishi_krberror_to_file; shishi_md4; shishi_md5; shishi_methoddata_print; shishi_n_fold; shishi_padata_print; shishi_parse_name; shishi_pbkdf2_sha1; shishi_principal_default; shishi_principal_default_guess; shishi_principal_default_set; shishi_principal_name; shishi_principal_name_realm; shishi_principal_name_set; shishi_principal_set; shishi_priv; shishi_priv_build; shishi_priv_done; shishi_priv_enc_part_etype; shishi_priv_encprivpart; shishi_priv_encprivpart_der; shishi_priv_encprivpart_der_set; shishi_priv_encprivpart_set; shishi_priv_from_file; shishi_priv_key; shishi_priv_key_set; shishi_priv_parse; shishi_priv_print; shishi_priv_priv; shishi_priv_priv_der; shishi_priv_priv_der_set; shishi_priv_priv_set; shishi_priv_process; shishi_priv_read; shishi_priv_save; shishi_priv_set_enc_part; shishi_priv_to_file; shishi_prompt_password; shishi_prompt_password_callback_get; shishi_prompt_password_callback_set; shishi_random_to_key; shishi_randomize; shishi_realm_default; shishi_realm_default_guess; shishi_realm_default_set; shishi_realm_for_server; shishi_realm_for_server_dns; shishi_realm_for_server_file; shishi_resolv; shishi_resolv_free; shishi_safe; shishi_safe_build; shishi_safe_cksum; shishi_safe_done; shishi_safe_from_file; shishi_safe_key; shishi_safe_key_set; shishi_safe_parse; shishi_safe_print; shishi_safe_read; shishi_safe_safe; shishi_safe_safe_der; shishi_safe_safe_der_set; shishi_safe_safe_set; shishi_safe_save; shishi_safe_set_cksum; shishi_safe_set_user_data; shishi_safe_to_file; shishi_safe_user_data; shishi_safe_verify; shishi_server; shishi_server_for_local_service; shishi_strerror; shishi_string_to_key; shishi_tgs; shishi_tgs_ap; shishi_tgs_done; shishi_tgs_krberror; shishi_tgs_krberror_der; shishi_tgs_krberror_set; shishi_tgs_process; shishi_tgs_rep; shishi_tgs_rep_build; shishi_tgs_rep_der; shishi_tgs_rep_process; shishi_tgs_req; shishi_tgs_req_build; shishi_tgs_req_der; shishi_tgs_req_der_set; shishi_tgs_req_process; shishi_tgs_req_set; shishi_tgs_sendrecv; shishi_tgs_sendrecv_hint; shishi_tgs_set_realm; shishi_tgs_set_realmserver; shishi_tgs_set_server; shishi_tgs_tgtkt; shishi_tgs_tgtkt_set; shishi_tgs_tkt; shishi_tgs_tkt_set; shishi_tgsrep; shishi_tgsreq; shishi_ticket; shishi_ticket_add_enc_part; shishi_ticket_decrypt; shishi_ticket_get_enc_part_etype; shishi_ticket_parse; shishi_ticket_print; shishi_ticket_read; shishi_ticket_realm_get; shishi_ticket_realm_set; shishi_ticket_save; shishi_ticket_server; shishi_ticket_set_enc_part; shishi_ticket_set_server; shishi_ticket_sname_set; shishi_ticket_srealmserver_set; shishi_time; shishi_tkt; shishi_tkt2; shishi_tkt_authctime; shishi_tkt_authtime; shishi_tkt_build; shishi_tkt_client; shishi_tkt_client_p; shishi_tkt_clientrealm; shishi_tkt_clientrealm_p; shishi_tkt_clientrealm_set; shishi_tkt_decrypt; shishi_tkt_done; shishi_tkt_enckdcreppart; shishi_tkt_enckdcreppart_set; shishi_tkt_encticketpart; shishi_tkt_encticketpart_set; shishi_tkt_endctime; shishi_tkt_endtime; shishi_tkt_expired_p; shishi_tkt_flags; shishi_tkt_flags_add; shishi_tkt_flags_set; shishi_tkt_forwardable_p; shishi_tkt_forwarded_p; shishi_tkt_hw_authent_p; shishi_tkt_initial_p; shishi_tkt_invalid_p; shishi_tkt_kdcrep; shishi_tkt_key; shishi_tkt_key_set; shishi_tkt_keytype; shishi_tkt_keytype_fast; shishi_tkt_keytype_p; shishi_tkt_lastreq; shishi_tkt_lastreq_pretty_print; shishi_tkt_lastreqc; shishi_tkt_match_p; shishi_tkt_may_postdate_p; shishi_tkt_ok_as_delegate_p; shishi_tkt_postdated_p; shishi_tkt_pre_authent_p; shishi_tkt_pretty_print; shishi_tkt_proxiable_p; shishi_tkt_proxy_p; shishi_tkt_realm; shishi_tkt_renew_till; shishi_tkt_renew_tillc; shishi_tkt_renewable_p; shishi_tkt_server; shishi_tkt_server_p; shishi_tkt_serverrealm_set; shishi_tkt_startctime; shishi_tkt_starttime; shishi_tkt_ticket; shishi_tkt_ticket_set; shishi_tkt_to_ccache_mem; shishi_tkt_transited_policy_checked_p; shishi_tkt_valid_at_time_p; shishi_tkt_valid_now_p; shishi_tkts; shishi_tkts_add; shishi_tkts_add_ccache_file; shishi_tkts_add_ccache_mem; shishi_tkts_default; shishi_tkts_default_ccache; shishi_tkts_default_ccache_guess; shishi_tkts_default_ccache_set; shishi_tkts_default_file; shishi_tkts_default_file_guess; shishi_tkts_default_file_set; shishi_tkts_default_to_file; shishi_tkts_done; shishi_tkts_expire; shishi_tkts_find; shishi_tkts_find_for_clientserver; shishi_tkts_find_for_server; shishi_tkts_from_ccache_file; shishi_tkts_from_ccache_mem; shishi_tkts_from_file; shishi_tkts_get; shishi_tkts_get_for_clientserver; shishi_tkts_get_for_localservicepasswd; shishi_tkts_get_for_server; shishi_tkts_get_tgs; shishi_tkts_get_tgt; shishi_tkts_new; shishi_tkts_nth; shishi_tkts_print; shishi_tkts_print_for_service; shishi_tkts_read; shishi_tkts_remove; shishi_tkts_size; shishi_tkts_to_ccache_mem; shishi_tkts_to_file; shishi_tkts_write; shishi_verbose; shishi_verify; shishi_warn; shishi_x509ca_default_file; shishi_x509ca_default_file_guess; shishi_x509ca_default_file_set; shishi_x509cert_default_file; shishi_x509cert_default_file_guess; shishi_x509cert_default_file_set; shishi_x509key_default_file; shishi_x509key_default_file_guess; shishi_x509key_default_file_set; shishi_xalloc_die; local: *; }; SHISHI_0.0.42 { global: shishi_key_timestamp; shishi_key_timestamp_set; shishi_keys_from_file; shishi_keys_to_keytab_file; shishi_keys_to_keytab_mem; } SHISHI_0.0; shishi-1.0.3/lib/kdcreq.c0000644000000000000000000011663514273601533012074 00000000000000/* kdcreq.c --- Key distribution (AS/TGS) request functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" #define SHISHI_KDCREQ_DEFAULT_PVNO "5" #define SHISHI_KDCREQ_DEFAULT_PVNO_LEN 0 #define SHISHI_AS_REQ_DEFAULT_MSG_TYPE "10" #define SHISHI_AS_REQ_DEFAULT_MSG_TYPE_LEN 0 #define SHISHI_TGS_REQ_DEFAULT_MSG_TYPE "12" #define SHISHI_TGS_REQ_DEFAULT_MSG_TYPE_LEN 0 #define SHISHI_KDCREQ_DEFAULT_REQ_BODY_KDC_OPTIONS "\x00\x00\x00\x00" #define SHISHI_KDCREQ_DEFAULT_REQ_BODY_KDC_OPTIONS_LEN 32 #define SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE "1" /* SHISHI_NT_PRINCIPAL */ #define SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE_LEN 0 static Shishi_asn1 _shishi_kdcreq (Shishi * handle, int as) { int res; Shishi_asn1 node; const char *servicebuf[3]; uint32_t nonce; if (as) node = shishi_asn1_asreq (handle); else node = shishi_asn1_tgsreq (handle); if (!node) return NULL; res = shishi_asn1_write (handle, node, "pvno", SHISHI_KDCREQ_DEFAULT_PVNO, SHISHI_KDCREQ_DEFAULT_PVNO_LEN); if (res != SHISHI_OK) goto error; if (as) res = shishi_asn1_write (handle, node, "msg-type", SHISHI_AS_REQ_DEFAULT_MSG_TYPE, SHISHI_AS_REQ_DEFAULT_MSG_TYPE_LEN); else res = shishi_asn1_write (handle, node, "msg-type", SHISHI_TGS_REQ_DEFAULT_MSG_TYPE, SHISHI_TGS_REQ_DEFAULT_MSG_TYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.kdc-options", SHISHI_KDCREQ_DEFAULT_REQ_BODY_KDC_OPTIONS, SHISHI_KDCREQ_DEFAULT_REQ_BODY_KDC_OPTIONS_LEN); if (res != SHISHI_OK) goto error; if (as) res = shishi_kdcreq_set_cname (handle, node, SHISHI_NT_PRINCIPAL, shishi_principal_default (handle)); else res = shishi_asn1_write (handle, node, "req-body.cname", NULL, 0); if (res != SHISHI_OK) goto error; res = shishi_kdcreq_set_realm (handle, node, shishi_realm_default (handle)); if (res != SHISHI_OK) goto error; servicebuf[0] = "krbtgt"; servicebuf[1] = shishi_realm_default (handle); servicebuf[2] = NULL; res = shishi_kdcreq_set_sname (handle, node, SHISHI_NT_PRINCIPAL, servicebuf); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.sname.name-type", SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE, SHISHI_KDCREQ_DEFAULT_REQ_BODY_SNAME_NAME_TYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.till", shishi_generalize_time (handle, time (NULL) + handle->ticketlife), 0); if (res != SHISHI_OK) goto error; shishi_randomize (handle, 0, &nonce, sizeof (nonce)); nonce &= 0x7FFFFFFF; /* XXX fix _libtasn1_convert_integer. */ res = shishi_kdcreq_nonce_set (handle, node, nonce); if (res != SHISHI_OK) goto error; res = shishi_kdcreq_set_etype (handle, node, handle->clientkdcetypes, handle->nclientkdcetypes); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.addresses", NULL, 0); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.enc-authorization-data", NULL, 0); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "req-body.additional-tickets", NULL, 0); if (res != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_asreq: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new AS-REQ, populated with some default * values. * * Return value: Returns the AS-REQ or NULL on failure. **/ Shishi_asn1 shishi_asreq (Shishi * handle) { return _shishi_kdcreq (handle, 1); } /** * shishi_tgsreq: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new TGS-REQ, populated with some default * values. * * Return value: Returns the TGS-REQ or NULL on failure. **/ Shishi_asn1 shishi_tgsreq (Shishi * handle) { return _shishi_kdcreq (handle, 0); } /** * shishi_kdcreq_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @kdcreq: KDC-REQ to print. * * Print ASCII armored DER encoding of KDC-REQ to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_print (Shishi * handle, FILE * fh, Shishi_asn1 kdcreq) { return _shishi_print_armored_data (handle, fh, kdcreq, "KDC-REQ", NULL); } /** * shishi_kdcreq_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @kdcreq: KDC-REQ to save. * * Print DER encoding of KDC-REQ to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_save (Shishi * handle, FILE * fh, Shishi_asn1 kdcreq) { return _shishi_save_data (handle, fh, kdcreq, "KDC-REQ"); } /** * shishi_kdcreq_to_file: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write KDC-REQ to file in specified TYPE. The file will be truncated * if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_to_file (Shishi * handle, Shishi_asn1 kdcreq, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing KDC-REQ to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing KDC-REQ in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_kdcreq_print (handle, fh, kdcreq); else res = shishi_kdcreq_save (handle, fh, kdcreq); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing KDC-REQ to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_kdcreq_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @kdcreq: output variable with newly allocated KDC-REQ. * * Read ASCII armored DER encoded KDC-REQ from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_parse (Shishi * handle, FILE * fh, Shishi_asn1 * kdcreq) { return _shishi_kdcreq_input (handle, fh, kdcreq, 0); } /** * shishi_kdcreq_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @kdcreq: output variable with newly allocated KDC-REQ. * * Read DER encoded KDC-REQ from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_read (Shishi * handle, FILE * fh, Shishi_asn1 * kdcreq) { return _shishi_kdcreq_input (handle, fh, kdcreq, 1); } /** * shishi_kdcreq_from_file: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: output variable with newly allocated KDC-REQ. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read KDC-REQ from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_from_file (Shishi * handle, Shishi_asn1 * kdcreq, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading KDC-REQ from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading KDC-REQ in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_kdcreq_parse (handle, fh, kdcreq); else res = shishi_kdcreq_read (handle, fh, kdcreq); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading KDC-REQ from %s...done\n"), filename); return SHISHI_OK; } int shishi_kdcreq_nonce (Shishi * handle, Shishi_asn1 kdcreq, uint32_t * nonce) { int res; res = shishi_asn1_read_uint32 (handle, kdcreq, "req-body.nonce", nonce); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_nonce_set: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set client name field in. * @nonce: integer nonce to store in KDC-REQ. * * Store nonce number field in KDC-REQ. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_kdcreq_nonce_set (Shishi * handle, Shishi_asn1 kdcreq, uint32_t nonce) { int res; res = shishi_asn1_write_uint32 (handle, kdcreq, "req-body.nonce", nonce); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_set_cname: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set client name field in. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @principal: input array with principal name. * * Set the client name field in the KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_set_cname (Shishi * handle, Shishi_asn1 kdcreq, Shishi_name_type name_type, const char *principal) { int res; res = shishi_principal_set (handle, kdcreq, "req-body.cname", principal); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_client: * @handle: Shishi library handle create by shishi_init(). * @kdcreq: KDC-REQ variable to get client name from. * @client: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Represent client principal name in KDC-REQ as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @clientlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_client (Shishi * handle, Shishi_asn1 kdcreq, char **client, size_t *clientlen) { return shishi_principal_name (handle, kdcreq, "req-body.cname", client, clientlen); } /** * shishi_asreq_clientrealm: * @handle: Shishi library handle create by shishi_init(). * @asreq: AS-REQ variable to get client name and realm from. * @client: pointer to newly allocated zero terminated string containing * principal name and realm. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Convert cname and realm fields from AS-REQ to printable principal * name format. The string is allocate by this function, and it is * the responsibility of the caller to deallocate it. Note that the * output length @clientlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_asreq_clientrealm (Shishi * handle, Shishi_asn1 asreq, char **client, size_t *clientlen) { return shishi_principal_name_realm (handle, asreq, "req-body.cname", asreq, "req-body.realm", client, clientlen); } /** * shishi_kdcreq_realm: * @handle: Shishi library handle create by shishi_init(). * @kdcreq: KDC-REQ variable to get client name from. * @realm: pointer to newly allocated zero terminated string containing * realm. May be %NULL (to only populate @realmlen). * @realmlen: pointer to length of @realm on output, excluding terminating * zero. May be %NULL (to only populate @realmlen). * * Get realm field in KDC-REQ as zero-terminated string. The string * is allocate by this function, and it is the responsibility of the * caller to deallocate it. Note that the output length @realmlen * does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_realm (Shishi * handle, Shishi_asn1 kdcreq, char **realm, size_t *realmlen) { return shishi_asn1_read_optional (handle, kdcreq, "req-body.realm", realm, realmlen); } int shishi_kdcreq_realm_get (Shishi * handle, Shishi_asn1 kdcreq, char **realm, size_t *realmlen) { return shishi_asn1_read_optional (handle, kdcreq, "req-body.realm", realm, realmlen); } /** * shishi_kdcreq_set_realm: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set realm field in. * @realm: input array with name of realm. * * Set the realm field in the KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_set_realm (Shishi * handle, Shishi_asn1 kdcreq, const char *realm) { int res; res = shishi_asn1_write (handle, kdcreq, "req-body.realm", realm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_server: * @handle: Shishi library handle create by shishi_init(). * @kdcreq: KDC-REQ variable to get server name from. * @server: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @serverlen). * @serverlen: pointer to length of @server on output, excluding terminating * zero. May be %NULL (to only populate @server). * * Represent server principal name in KDC-REQ as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @serverlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_server (Shishi * handle, Shishi_asn1 kdcreq, char **server, size_t *serverlen) { return shishi_principal_name (handle, kdcreq, "req-body.sname", server, serverlen); } /** * shishi_kdcreq_set_sname: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set server name field in. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @sname: input array with principal name. * * Set the server name field in the KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_set_sname (Shishi * handle, Shishi_asn1 kdcreq, Shishi_name_type name_type, const char *sname[]) { int res; res = shishi_principal_name_set (handle, kdcreq, "req-body.sname", name_type, sname); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_kdcreq_set_server (Shishi * handle, Shishi_asn1 req, const char *server) { int res; res = shishi_principal_set (handle, req, "req-body.sname", server); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_kdcreq_set_realmserver (Shishi * handle, Shishi_asn1 req, char *realm, char *server) { int res; res = shishi_kdcreq_set_realm (handle, req, realm); if (res != SHISHI_OK) return res; res = shishi_kdcreq_set_server (handle, req, server); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_till: * @handle: Shishi library handle created by shishi_init(). * @kdcreq: KDC-REQ variable to get endtime from. * @till: pointer to newly allocated null terminated string containing * "till" field with generalized time. May be passed as %NULL * to only populate @tilllen. * @tilllen: pointer to length of @till for output, excluding the * terminating null. Set to %NULL, only @till is populated. * * Get "till" field, i.e., "endtime", in KDC-REQ as a null-terminated * string. The string is typically 15 characters long and is * allocated by this function. It is the responsibility of the * caller to deallocate it. Note that the output length @tilllen * does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_till (Shishi * handle, Shishi_asn1 kdcreq, char **till, size_t *tilllen) { return shishi_asn1_read (handle, kdcreq, "req-body.till", till, tilllen); } /** * shishi_kdcreq_tillc: * @handle: Shishi library handle created by shishi_init(). * @kdcreq: KDC-REQ variable to get "till" field from. * * Extract C time corresponding to the "till" field. * * Return value: Returns the C time interpretation of the "till" * field in KDC-REQ. **/ time_t shishi_kdcreq_tillc (Shishi * handle, Shishi_asn1 kdcreq) { char *till; size_t tilllen; time_t t = (time_t) - 1; int res; res = shishi_kdcreq_till (handle, kdcreq, &till, &tilllen); if (res != SHISHI_OK) return t; if (tilllen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */ t = shishi_generalize_ctime (handle, till); free (till); return t; } /** * shishi_kdcreq_etype: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get etype field from. * @etype: output encryption type. * @netype: element number to return. * * Return the netype:th encryption type from KDC-REQ. The first etype * is number 1. * * Return value: Returns SHISHI_OK iff etype successful set. **/ int shishi_kdcreq_etype (Shishi * handle, Shishi_asn1 kdcreq, int32_t * etype, int netype) { char *buf; int res; asprintf (&buf, "req-body.etype.?%d", netype); res = shishi_asn1_read_int32 (handle, kdcreq, buf, etype); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_set_etype: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set etype field in. * @etype: input array with encryption types. * @netype: number of elements in input array with encryption types. * * Set the list of supported or wanted encryption types in the * request. The list should be sorted in priority order. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_set_etype (Shishi * handle, Shishi_asn1 kdcreq, int32_t * etype, int netype) { int res; char *buf; int i; res = shishi_asn1_write (handle, kdcreq, "req-body.etype", NULL, 0); if (res != SHISHI_OK) return res; for (i = 1; i <= netype; i++) { res = shishi_asn1_write (handle, kdcreq, "req-body.etype", "NEW", 1); if (res != SHISHI_OK) return res; asprintf (&buf, "req-body.etype.?%d", i); res = shishi_asn1_write_int32 (handle, kdcreq, buf, etype[i - 1]); free (buf); if (res != SHISHI_OK) return res; } return SHISHI_OK; } /** * shishi_kdcreq_options: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * @flags: pointer to output integer with flags. * * Extract KDC-Options from KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_options (Shishi * handle, Shishi_asn1 kdcreq, uint32_t * flags) { return shishi_asn1_read_bitstring (handle, kdcreq, "req-body.kdc-options", flags); } /** * shishi_kdcreq_forwardable_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option forwardable flag is set. * * The FORWARDABLE option indicates that the ticket to be issued is to * have its forwardable flag set. It may only be set on the initial * request, or in a subsequent request if the ticket-granting ticket * on which it is based is also forwardable. * * Return value: Returns non-0 iff forwardable flag is set in KDC-REQ. **/ int shishi_kdcreq_forwardable_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_FORWARDABLE; } /** * shishi_kdcreq_forwarded_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option forwarded flag is set. * * The FORWARDED option is only specified in a request to the * ticket-granting server and will only be honored if the * ticket-granting ticket in the request has its FORWARDABLE bit * set. This option indicates that this is a request for * forwarding. The address(es) of the host from which the resulting * ticket is to be valid are included in the addresses field of the * request. * * Return value: Returns non-0 iff forwarded flag is set in KDC-REQ. **/ int shishi_kdcreq_forwarded_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_FORWARDED; } /** * shishi_kdcreq_proxiable_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option proxiable flag is set. * * The PROXIABLE option indicates that the ticket to be issued is to * have its proxiable flag set. It may only be set on the initial * request, or in a subsequent request if the ticket-granting ticket * on which it is based is also proxiable. * * Return value: Returns non-0 iff proxiable flag is set in KDC-REQ. **/ int shishi_kdcreq_proxiable_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_PROXIABLE; } /** * shishi_kdcreq_proxy_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option proxy flag is set. * * The PROXY option indicates that this is a request for a proxy. This * option will only be honored if the ticket-granting ticket in the * request has its PROXIABLE bit set. The address(es) of the host * from which the resulting ticket is to be valid are included in the * addresses field of the request. * * Return value: Returns non-0 iff proxy flag is set in KDC-REQ. **/ int shishi_kdcreq_proxy_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_PROXY; } /** * shishi_kdcreq_allow_postdate_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option allow-postdate flag is set. * * The ALLOW-POSTDATE option indicates that the ticket to be issued is * to have its MAY-POSTDATE flag set. It may only be set on the * initial request, or in a subsequent request if the ticket-granting * ticket on which it is based also has its MAY-POSTDATE flag set. * * Return value: Returns non-0 iff allow-postdate flag is set in KDC-REQ. **/ int shishi_kdcreq_allow_postdate_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_ALLOW_POSTDATE; } /** * shishi_kdcreq_postdated_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option postdated flag is set. * * The POSTDATED option indicates that this is a request for a * postdated ticket. This option will only be honored if the * ticket-granting ticket on which it is based has its MAY-POSTDATE * flag set. The resulting ticket will also have its INVALID flag set, * and that flag may be reset by a subsequent request to the KDC after * the starttime in the ticket has been reached. * * Return value: Returns non-0 iff postdated flag is set in KDC-REQ. **/ int shishi_kdcreq_postdated_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_POSTDATED; } /** * shishi_kdcreq_renewable_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option renewable flag is set. * * The RENEWABLE option indicates that the ticket to be issued is to * have its RENEWABLE flag set. It may only be set on the initial * request, or when the ticket-granting ticket on which the request is * based is also renewable. If this option is requested, then the * rtime field in the request contains the desired absolute expiration * time for the ticket. * * Return value: Returns non-0 iff renewable flag is set in KDC-REQ. **/ int shishi_kdcreq_renewable_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_RENEWABLE; } /** * shishi_kdcreq_disable_transited_check_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option disable-transited-check flag is set. * * By default the KDC will check the transited field of a * ticket-granting-ticket against the policy of the local realm before * it will issue derivative tickets based on the ticket-granting * ticket. If this flag is set in the request, checking of the * transited field is disabled. Tickets issued without the performance * of this check will be noted by the reset (0) value of the * TRANSITED-POLICY-CHECKED flag, indicating to the application server * that the tranisted field must be checked locally. KDCs are * encouraged but not required to honor the DISABLE-TRANSITED-CHECK * option. * * This flag is new since RFC 1510 * * Return value: Returns non-0 iff disable-transited-check flag is set * in KDC-REQ. **/ int shishi_kdcreq_disable_transited_check_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_DISABLE_TRANSITED_CHECK; } /** * shishi_kdcreq_renewable_ok_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option renewable-ok flag is set. * * The RENEWABLE-OK option indicates that a renewable ticket will be * acceptable if a ticket with the requested life cannot otherwise be * provided. If a ticket with the requested life cannot be provided, * then a renewable ticket may be issued with a renew-till equal to * the requested endtime. The value of the renew-till field may still * be limited by local limits, or limits selected by the individual * principal or server. * * Return value: Returns non-0 iff renewable-ok flag is set in KDC-REQ. **/ int shishi_kdcreq_renewable_ok_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_RENEWABLE_OK; } /** * shishi_kdcreq_enc_tkt_in_skey_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option enc-tkt-in-skey flag is set. * * This option is used only by the ticket-granting service. The * ENC-TKT-IN-SKEY option indicates that the ticket for the end server * is to be encrypted in the session key from the additional * ticket-granting ticket provided. * * Return value: Returns non-0 iff enc-tkt-in-skey flag is set in KDC-REQ. **/ int shishi_kdcreq_enc_tkt_in_skey_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_ENC_TKT_IN_SKEY; } /** * shishi_kdcreq_renew_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option renew flag is set. * * This option is used only by the ticket-granting service. The RENEW * option indicates that the present request is for a renewal. The * ticket provided is encrypted in the secret key for the server on * which it is valid. This option will only be honored if the ticket * to be renewed has its RENEWABLE flag set and if the time in its * renew-till field has not passed. The ticket to be renewed is passed * in the padata field as part of the authentication header. * * Return value: Returns non-0 iff renew flag is set in KDC-REQ. **/ int shishi_kdcreq_renew_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_RENEW; } /** * shishi_kdcreq_validate_p: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to get kdc-options field from. * * Determine if KDC-Option validate flag is set. * * This option is used only by the ticket-granting service. The * VALIDATE option indicates that the request is to validate a * postdated ticket. It will only be honored if the ticket presented * is postdated, presently has its INVALID flag set, and would be * otherwise usable at this time. A ticket cannot be validated before * its starttime. The ticket presented for validation is encrypted in * the key of the server for which it is valid and is passed in the * padata field as part of the authentication header. * * Return value: Returns non-0 iff validate flag is set in KDC-REQ. **/ int shishi_kdcreq_validate_p (Shishi * handle, Shishi_asn1 kdcreq) { uint32_t options = 0; shishi_kdcreq_options (handle, kdcreq, &options); return options & SHISHI_KDCOPTIONS_VALIDATE; } /** * shishi_kdcreq_options_set: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set etype field in. * @options: integer with flags to store in KDC-REQ. * * Set options in KDC-REQ. Note that this reset any already existing * flags. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_options_set (Shishi * handle, Shishi_asn1 kdcreq, uint32_t options) { int res; res = shishi_asn1_write_bitstring (handle, kdcreq, "req-body.kdc-options", options); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_options_add: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ variable to set etype field in. * @option: integer with options to add in KDC-REQ. * * Add KDC-Option to KDC-REQ. This preserves all existing options. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_options_add (Shishi * handle, Shishi_asn1 kdcreq, uint32_t option) { uint32_t options; int res; res = shishi_kdcreq_options (handle, kdcreq, &options); if (res != SHISHI_OK) return res; options |= option; res = shishi_kdcreq_options_set (handle, kdcreq, options); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_clear_padata: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to remove PA-DATA from. * * Remove the padata field from KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_clear_padata (Shishi * handle, Shishi_asn1 kdcreq) { int res; res = shishi_asn1_write (handle, kdcreq, "padata", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_get_padata: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to get PA-DATA from. * @padatatype: type of PA-DATA, see Shishi_padata_type. * @out: output array with newly allocated PA-DATA value. * @outlen: size of output array with PA-DATA value. * * Get pre authentication data (PA-DATA) from KDC-REQ. Pre * authentication data is used to pass various information to KDC, * such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that * authenticates the user to get the ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_get_padata (Shishi * handle, Shishi_asn1 kdcreq, Shishi_padata_type padatatype, char **out, size_t *outlen) { char *format; int res; size_t i, n; res = shishi_asn1_number_of_elements (handle, kdcreq, "padata", &n); if (res != SHISHI_OK) return res; *out = NULL; *outlen = 0; for (i = 1; i <= n; i++) { int32_t patype; asprintf (&format, "padata.?%zu.padata-type", i); res = shishi_asn1_read_int32 (handle, kdcreq, format, &patype); free (format); if (res != SHISHI_OK) return res; if (patype == (int32_t) padatatype) { asprintf (&format, "padata.?%zu.padata-value", i); res = shishi_asn1_read (handle, kdcreq, format, out, outlen); free (format); if (res != SHISHI_OK) return res; break; } } return SHISHI_OK; } /** * shishi_kdcreq_get_padata_tgs: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to get PA-TGS-REQ from. * @apreq: Output variable with newly allocated AP-REQ. * * Extract TGS pre-authentication data from KDC-REQ. The data is an * AP-REQ that authenticates the request. This function call * shishi_kdcreq_get_padata() with a SHISHI_PA_TGS_REQ padatatype and * DER decode the result (if any). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_get_padata_tgs (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * apreq) { char *der; size_t derlen; int rc; if (VERBOSE (handle)) printf ("Extracting AP-REQ from KDC-REQ...\n"); rc = shishi_kdcreq_get_padata (handle, kdcreq, SHISHI_PA_TGS_REQ, &der, &derlen); if (rc != SHISHI_OK) return rc; *apreq = shishi_der2asn1_apreq (handle, der, derlen); if (!*apreq) return SHISHI_ASN1_ERROR; if (VERBOSEASN1 (handle)) shishi_apreq_print (handle, stdout, *apreq); return SHISHI_OK; } /** * shishi_kdcreq_add_padata: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to add PA-DATA to. * @padatatype: type of PA-DATA, see Shishi_padata_type. * @data: input array with PA-DATA value. * @datalen: size of input array with PA-DATA value. * * Add new pre authentication data (PA-DATA) to KDC-REQ. This is used * to pass various information to KDC, such as in case of a * SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user * to get the ticket. (But also see shishi_kdcreq_add_padata_tgs() * which takes an AP-REQ directly.) * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_add_padata (Shishi * handle, Shishi_asn1 kdcreq, int padatatype, const char *data, size_t datalen) { char *format; int res; size_t i; res = shishi_asn1_write (handle, kdcreq, "padata", "NEW", 1); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, kdcreq, "padata", &i); if (res != SHISHI_OK) return res; asprintf (&format, "padata.?%zu.padata-value", i); res = shishi_asn1_write (handle, kdcreq, format, data, datalen); free (format); if (res != SHISHI_OK) return res; asprintf (&format, "padata.?%zu.padata-type", i); res = shishi_asn1_write_uint32 (handle, kdcreq, format, padatatype); free (format); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcreq_add_padata_tgs: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to add PA-DATA to. * @apreq: AP-REQ to add as PA-DATA. * * Add TGS pre-authentication data to KDC-REQ. The data is an AP-REQ * that authenticates the request. This functions simply DER encodes * the AP-REQ and calls shishi_kdcreq_add_padata() with a * SHISHI_PA_TGS_REQ padatatype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_add_padata_tgs (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 apreq) { int res; char *data; size_t datalen; res = shishi_asn1_to_der (handle, apreq, &data, &datalen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode AP-REQ: %s\n", shishi_strerror (res)); return res; } res = shishi_kdcreq_add_padata (handle, kdcreq, SHISHI_PA_TGS_REQ, data, datalen); free (data); if (res != SHISHI_OK) return res; return res; } /** * shishi_kdcreq_add_padata_preauth: * @handle: shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ to add pre-authentication data to. * @key: Key used to encrypt pre-auth data. * * Add pre-authentication data to KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcreq_add_padata_preauth (Shishi * handle, Shishi_asn1 kdcreq, Shishi_key * key) { char *der, *data; size_t derlen, datalen; Shishi_asn1 pa; struct timeval tv; int rc; Shishi_asn1 ed; pa = shishi_asn1_pa_enc_ts_enc (handle); if (!pa) return SHISHI_ASN1_ERROR; rc = gettimeofday (&tv, NULL); if (rc != 0) return SHISHI_GETTIMEOFDAY_ERROR; rc = shishi_asn1_write (handle, pa, "patimestamp", shishi_generalize_time (handle, tv.tv_sec), SHISHI_GENERALIZEDTIME_LENGTH); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write_integer (handle, pa, "pausec", tv.tv_usec); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_to_der (handle, pa, &der, &derlen); if (rc != SHISHI_OK) return rc; rc = shishi_encrypt (handle, key, SHISHI_KEYUSAGE_ASREQ_PA_ENC_TIMESTAMP, der, derlen, &data, &datalen); free (der); if (rc != SHISHI_OK) return rc; ed = shishi_asn1_encrypteddata (handle); if (!ed) return SHISHI_ASN1_ERROR; rc = shishi_asn1_write_integer (handle, ed, "etype", shishi_key_type (key)); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, ed, "cipher", data, datalen); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, ed, "kvno", NULL, 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_to_der (handle, ed, &der, &derlen); free (data); if (rc != SHISHI_OK) return rc; rc = shishi_kdcreq_add_padata (handle, kdcreq, SHISHI_PA_ENC_TIMESTAMP, der, derlen); free (der); if (rc != SHISHI_OK) return rc; return rc; } int shishi_kdcreq_build (Shishi * handle, Shishi_asn1 kdcreq) { int res; size_t n; int msgtype; shishi_verbose (handle, "Building KDC-REQ..."); if (shishi_asn1_empty_p (handle, kdcreq, "req-body.rtime")) { res = shishi_asn1_write (handle, kdcreq, "req-body.rtime", NULL, 0); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not write rtime\n"); return res; } } if (shishi_asn1_empty_p (handle, kdcreq, "req-body.from")) { res = shishi_asn1_write (handle, kdcreq, "req-body.from", NULL, 0); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not write from\n"); return res; } } res = shishi_asn1_read_integer (handle, kdcreq, "msg-type", &msgtype); if (res != SHISHI_OK) return res; if (msgtype == SHISHI_MSGTYPE_AS_REQ) { res = shishi_asn1_number_of_elements (handle, kdcreq, "padata", &n); if (res == SHISHI_OK && n == 0) { res = shishi_kdcreq_clear_padata (handle, kdcreq); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not write padata\n"); return res; } } } return SHISHI_OK; } shishi-1.0.3/lib/apreq.c0000644000000000000000000005534714273601533011735 00000000000000/* apreq.c --- AP-REQ functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" #define SHISHI_APREQ_DEFAULT_PVNO "5" #define SHISHI_APREQ_DEFAULT_PVNO_LEN 0 #define SHISHI_APREQ_DEFAULT_MSG_TYPE "14" /* KRB_AP_REQ */ #define SHISHI_APREQ_DEFAULT_MSG_TYPE_LEN 0 #define SHISHI_APREQ_DEFAULT_AP_OPTIONS "\x00\x00\x00\x00" #define SHISHI_APREQ_DEFAULT_AP_OPTIONS_LEN 32 #define SHISHI_APREQ_DEFAULT_TICKET_TKT_VNO "5" #define SHISHI_APREQ_DEFAULT_TICKET_TKT_VNO_LEN 0 #define SHISHI_APREQ_DEFAULT_TICKET_REALM "" #define SHISHI_APREQ_DEFAULT_TICKET_REALM_LEN 0 #define SHISHI_APREQ_DEFAULT_TICKET_SNAME_NAME_TYPE "1" /* SHISHI_NT_PRINCIPAL */ #define SHISHI_APREQ_DEFAULT_TICKET_SNAME_NAME_TYPE_LEN 0 #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_ETYPE "0" #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_ETYPE_LEN 0 #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_KVNO "0" #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_KVNO_LEN 0 #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_CIPHER "" #define SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_CIPHER_LEN 0 #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_ETYPE "0" #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_ETYPE_LEN 0 #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_KVNO "1" #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_KVNO_LEN 0 #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_CIPHER "" #define SHISHI_APREQ_DEFAULT_AUTHENTICATOR_CIPHER_LEN 0 /** * shishi_apreq: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new AP-REQ, populated with some default * values. * * Return value: Returns the AP-REQ or NULL on failure. **/ Shishi_asn1 shishi_apreq (Shishi * handle) { Shishi_asn1 node; int res; node = shishi_asn1_apreq (handle); if (!node) goto error; res = shishi_asn1_write (handle, node, "pvno", SHISHI_APREQ_DEFAULT_PVNO, SHISHI_APREQ_DEFAULT_PVNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "msg-type", SHISHI_APREQ_DEFAULT_MSG_TYPE, SHISHI_APREQ_DEFAULT_MSG_TYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ap-options", SHISHI_APREQ_DEFAULT_AP_OPTIONS, SHISHI_APREQ_DEFAULT_AP_OPTIONS_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.tkt-vno", SHISHI_APREQ_DEFAULT_TICKET_TKT_VNO, SHISHI_APREQ_DEFAULT_TICKET_TKT_VNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.realm", SHISHI_APREQ_DEFAULT_TICKET_REALM, SHISHI_APREQ_DEFAULT_TICKET_REALM_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.realm", SHISHI_APREQ_DEFAULT_TICKET_REALM, SHISHI_APREQ_DEFAULT_TICKET_REALM_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.sname.name-type", SHISHI_APREQ_DEFAULT_TICKET_SNAME_NAME_TYPE, SHISHI_APREQ_DEFAULT_TICKET_SNAME_NAME_TYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.enc-part.etype", SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_ETYPE, SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_ETYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.enc-part.kvno", SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_KVNO, SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_KVNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ticket.enc-part.cipher", SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_CIPHER, SHISHI_APREQ_DEFAULT_TICKET_ENC_PART_CIPHER_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "authenticator.etype", SHISHI_APREQ_DEFAULT_AUTHENTICATOR_ETYPE, SHISHI_APREQ_DEFAULT_AUTHENTICATOR_ETYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "authenticator.kvno", SHISHI_APREQ_DEFAULT_AUTHENTICATOR_KVNO, SHISHI_APREQ_DEFAULT_AUTHENTICATOR_KVNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "authenticator.cipher", SHISHI_APREQ_DEFAULT_AUTHENTICATOR_CIPHER, SHISHI_APREQ_DEFAULT_AUTHENTICATOR_CIPHER_LEN); if (res != SHISHI_OK) goto error; return node; error: if (node) shishi_asn1_done (handle, node); return NULL; } /** * shishi_apreq_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @apreq: AP-REQ to print. * * Print ASCII armored DER encoding of AP-REQ to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_print (Shishi * handle, FILE * fh, Shishi_asn1 apreq) { return _shishi_print_armored_data (handle, fh, apreq, "AP-REQ", NULL); } /** * shishi_apreq_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @apreq: AP-REQ to save. * * Save DER encoding of AP-REQ to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_save (Shishi * handle, FILE * fh, Shishi_asn1 apreq) { return _shishi_save_data (handle, fh, apreq, "AP-REQ"); } /** * shishi_apreq_to_file: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write AP-REQ to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_to_file (Shishi * handle, Shishi_asn1 apreq, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing AP-REQ to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing AP-REQ in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_apreq_print (handle, fh, apreq); else res = shishi_apreq_save (handle, fh, apreq); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing AP-REQ to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_apreq_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @apreq: output variable with newly allocated AP-REQ. * * Read ASCII armored DER encoded AP-REQ from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_parse (Shishi * handle, FILE * fh, Shishi_asn1 * apreq) { return _shishi_apreq_input (handle, fh, apreq, 0); } /** * shishi_apreq_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @apreq: output variable with newly allocated AP-REQ. * * Read DER encoded AP-REQ from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_read (Shishi * handle, FILE * fh, Shishi_asn1 * apreq) { return _shishi_apreq_input (handle, fh, apreq, 1); } /** * shishi_apreq_from_file: * @handle: shishi handle as allocated by shishi_init(). * @apreq: output variable with newly allocated AP-REQ. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read AP-REQ from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_from_file (Shishi * handle, Shishi_asn1 * apreq, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading AP-REQ from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading AP-REQ in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_apreq_parse (handle, fh, apreq); else res = shishi_apreq_read (handle, fh, apreq); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading AP-REQ from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_apreq_set_authenticator: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ to add authenticator field to. * @etype: encryption type used to encrypt authenticator. * @kvno: version of the key used to encrypt authenticator. * @buf: input array with encrypted authenticator. * @buflen: size of input array with encrypted authenticator. * * Set the encrypted authenticator field in the AP-REP. The encrypted * data is usually created by calling shishi_encrypt() on the DER * encoded authenticator. To save time, you may want to use * shishi_apreq_add_authenticator() instead, which calculates the * encrypted data and calls this function in one step. * * Return value: Returns SHISHI_OK on success. **/ int shishi_apreq_set_authenticator (Shishi * handle, Shishi_asn1 apreq, int32_t etype, uint32_t kvno, const char *buf, size_t buflen) { int res; res = shishi_asn1_write (handle, apreq, "authenticator.cipher", buf, buflen); if (res != SHISHI_OK) return res; if (kvno == UINT32_MAX) res = shishi_asn1_write (handle, apreq, "authenticator.kvno", NULL, 0); else res = shishi_asn1_write_int32 (handle, apreq, "authenticator.kvno", kvno); if (res != SHISHI_OK) return res; res = shishi_asn1_write_int32 (handle, apreq, "authenticator.etype", etype); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_apreq_add_authenticator: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ to add authenticator field to. * @key: key to to use for encryption. * @keyusage: cryptographic key usage value to use in encryption. * @authenticator: authenticator as allocated by shishi_authenticator(). * * Encrypts DER encoded authenticator using key and store it in the * AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_add_authenticator (Shishi * handle, Shishi_asn1 apreq, Shishi_key * key, int keyusage, Shishi_asn1 authenticator) { int res; char *buf; size_t buflen; char *der; size_t derlen; res = shishi_asn1_to_der (handle, authenticator, &der, &derlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode authenticator: %s\n", shishi_strerror (res)); return res; } res = shishi_encrypt (handle, key, keyusage, der, derlen, &buf, &buflen); free (der); if (res != SHISHI_OK) { shishi_error_printf (handle, "Cannot encrypt authenticator.\n"); return res; } res = shishi_apreq_set_authenticator (handle, apreq, shishi_key_type (key), shishi_key_version (key), buf, buflen); return res; } /** * shishi_apreq_set_ticket: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ to add ticket field to. * @ticket: input ticket to copy into AP-REQ ticket field. * * Copy ticket into AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_set_ticket (Shishi * handle, Shishi_asn1 apreq, Shishi_asn1 ticket) { int res; char *format; char *buf; size_t buflen, i, n; res = shishi_asn1_read (handle, ticket, "tkt-vno", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, apreq, "ticket.tkt-vno", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "realm", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, apreq, "ticket.realm", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "sname.name-type", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, apreq, "ticket.sname.name-type", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, ticket, "sname.name-string", &n); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { res = shishi_asn1_write (handle, apreq, "ticket.sname.name-string", "NEW", 1); if (res != SHISHI_OK) return res; asprintf (&format, "sname.name-string.?%zu", i); res = shishi_asn1_read (handle, ticket, format, &buf, &buflen); free (format); if (res != SHISHI_OK) return res; asprintf (&format, "ticket.sname.name-string.?%zu", i); res = shishi_asn1_write (handle, apreq, format, buf, buflen); free (format); free (buf); if (res != SHISHI_OK) return res; } res = shishi_asn1_read (handle, ticket, "enc-part.etype", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, apreq, "ticket.enc-part.etype", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "enc-part.kvno", &buf, &buflen); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) return res; if (res == SHISHI_ASN1_NO_ELEMENT) res = shishi_asn1_write (handle, apreq, "ticket.enc-part.kvno", NULL, 0); else { res = shishi_asn1_write (handle, apreq, "ticket.enc-part.kvno", buf, buflen); free (buf); } if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "enc-part.cipher", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, apreq, "ticket.enc-part.cipher", buf, buflen); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_apreq_options: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ to get options from. * @flags: Output integer containing options from AP-REQ. * * Extract the AP-Options from AP-REQ into output integer. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_options (Shishi * handle, Shishi_asn1 apreq, uint32_t * flags) { return shishi_asn1_read_bitstring (handle, apreq, "ap-options", flags); } /** * shishi_apreq_use_session_key_p: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ as allocated by shishi_apreq(). * * Return non-0 iff the "Use session key" option is set in the AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_use_session_key_p (Shishi * handle, Shishi_asn1 apreq) { uint32_t options = 0; shishi_apreq_options (handle, apreq, &options); return options & SHISHI_APOPTIONS_USE_SESSION_KEY; } /** * shishi_apreq_mutual_required_p: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ as allocated by shishi_apreq(). * * Return non-0 iff the "Mutual required" option is set in the AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_mutual_required_p (Shishi * handle, Shishi_asn1 apreq) { uint32_t options = 0; shishi_apreq_options (handle, apreq, &options); return options & SHISHI_APOPTIONS_MUTUAL_REQUIRED; } /** * shishi_apreq_options_set: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ as allocated by shishi_apreq(). * @options: Options to set in AP-REQ. * * Set the AP-Options in AP-REQ to indicate integer. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_options_set (Shishi * handle, Shishi_asn1 apreq, uint32_t options) { int res; res = shishi_asn1_write_bitstring (handle, apreq, "ap-options", options); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_apreq_options_add: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ as allocated by shishi_apreq(). * @option: Options to add in AP-REQ. * * Add the AP-Options in AP-REQ. Options not set in input parameter * @option are preserved in the AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_options_add (Shishi * handle, Shishi_asn1 apreq, uint32_t option) { uint32_t options; int res; res = shishi_apreq_options (handle, apreq, &options); if (res != SHISHI_OK) return res; options |= option; res = shishi_apreq_options_set (handle, apreq, options); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_apreq_options_remove: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ as allocated by shishi_apreq(). * @option: Options to remove from AP-REQ. * * Remove the AP-Options from AP-REQ. Options not set in input * parameter @option are preserved in the AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_options_remove (Shishi * handle, Shishi_asn1 apreq, uint32_t option) { uint32_t options; int res; res = shishi_apreq_options (handle, apreq, &options); if (res != SHISHI_OK) return res; options &= ~(options & option); res = shishi_apreq_options_set (handle, apreq, options); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_apreq_get_authenticator_etype: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ variable to get value from. * @etype: output variable that holds the value. * * Extract AP-REQ.authenticator.etype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_get_authenticator_etype (Shishi * handle, Shishi_asn1 apreq, int32_t * etype) { return shishi_asn1_read_int32 (handle, apreq, "authenticator.etype", etype); } /** * shishi_apreq_get_ticket: * @handle: shishi handle as allocated by shishi_init(). * @apreq: AP-REQ variable to get ticket from. * @ticket: output variable to hold extracted ticket. * * Extract ticket from AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_apreq_get_ticket (Shishi * handle, Shishi_asn1 apreq, Shishi_asn1 * ticket) { char *buf; char *format; size_t buflen, i, n; int res; /* there's GOT to be an easier way to do this */ *ticket = shishi_ticket (handle); if (!*ticket) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, apreq, "ticket.tkt-vno", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "tkt-vno", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, apreq, "ticket.realm", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "realm", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, apreq, "ticket.sname.name-type", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "sname.name-type", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_number_of_elements (handle, apreq, "ticket.sname.name-string", &n); if (res != SHISHI_OK) goto error; for (i = 1; i <= n; i++) { res = shishi_asn1_write (handle, *ticket, "sname.name-string", "NEW", 1); if (res != SHISHI_OK) goto error; asprintf (&format, "ticket.sname.name-string.?%zu", i); res = shishi_asn1_read (handle, apreq, format, &buf, &buflen); free (format); if (res != SHISHI_OK) goto error; asprintf (&format, "sname.name-string.?%zu", i); res = shishi_asn1_write (handle, *ticket, format, buf, buflen); free (format); free (buf); if (res != SHISHI_OK) goto error; } res = shishi_asn1_read (handle, apreq, "ticket.enc-part.etype", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "enc-part.etype", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, apreq, "ticket.enc-part.kvno", &buf, &buflen); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) goto error; if (res == SHISHI_ASN1_NO_ELEMENT) res = shishi_asn1_write (handle, *ticket, "enc-part.kvno", NULL, 0); else { res = shishi_asn1_write (handle, *ticket, "enc-part.kvno", buf, buflen); free (buf); } if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, apreq, "ticket.enc-part.cipher", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "enc-part.cipher", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; return SHISHI_OK; error: shishi_asn1_done (handle, *ticket); return res; } int shishi_apreq_decrypt (Shishi * handle, Shishi_asn1 apreq, Shishi_key * key, int keyusage, Shishi_asn1 * authenticator) { int res; int i; char *buf; size_t buflen; char *cipher; size_t cipherlen; int etype; res = shishi_apreq_get_authenticator_etype (handle, apreq, &etype); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (key)) return SHISHI_APREQ_BAD_KEYTYPE; res = shishi_asn1_read (handle, apreq, "authenticator.cipher", &cipher, &cipherlen); if (res != SHISHI_OK) return res; res = shishi_decrypt (handle, key, keyusage, cipher, cipherlen, &buf, &buflen); free (cipher); if (res != SHISHI_OK) { shishi_error_printf (handle, "decrypt fail, most likely wrong password\n"); return SHISHI_APREQ_DECRYPT_FAILED; } /* The crypto is so 1980; no length indicator. Trim off pad bytes until we can parse it. */ for (i = 0; i < 8; i++) { if (VERBOSEASN1 (handle)) printf ("Trying with %d pad in enckdcrep...\n", i); *authenticator = shishi_der2asn1_authenticator (handle, &buf[0], buflen - i); if (*authenticator != NULL) break; } if (*authenticator == NULL) { shishi_error_printf (handle, "Could not DER decode Authenticator. " "Password probably correct (decrypt ok) though\n"); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } shishi-1.0.3/lib/enckdcreppart.c0000644000000000000000000003122614273601533013440 00000000000000/* enckdcreppart.c --- Key distribution encrypted reply part functions * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" Shishi_asn1 shishi_enckdcreppart (Shishi * handle) { int res; Shishi_asn1 node; node = shishi_asn1_enckdcreppart (handle); if (!node) return NULL; /* XXX remove these two: */ res = shishi_asn1_write (handle, node, "key-expiration", NULL, 0); if (res != SHISHI_OK) return NULL; res = shishi_asn1_write (handle, node, "caddr", NULL, 0); if (res != SHISHI_OK) return NULL; res = shishi_enckdcreppart_flags_set (handle, node, 0); if (res != SHISHI_OK) return NULL; return node; } Shishi_asn1 shishi_encasreppart (Shishi * handle) { int res; Shishi_asn1 node; node = shishi_asn1_encasreppart (handle); if (!node) return NULL; /* XXX remove these two: */ res = shishi_asn1_write (handle, node, "key-expiration", NULL, 0); if (res != SHISHI_OK) puts ("urk"); res = shishi_asn1_write (handle, node, "caddr", NULL, 0); if (res != SHISHI_OK) puts ("urk2"); return node; } /** * shishi_enckdcreppart_get_key: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @key: newly allocated encryption key handle. * * Extract the key to use with the ticket sent in the KDC-REP * associated with the EncKDCRepPart input variable. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_get_key (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_key ** key) { int res; char *buf; size_t buflen; int32_t keytype; res = shishi_asn1_read_int32 (handle, enckdcreppart, "key.keytype", &keytype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, enckdcreppart, "key.keyvalue", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_key_from_value (handle, keytype, buf, key); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_key_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @key: key handle with information to store in enckdcreppart. * * Set the EncKDCRepPart.key field to key type and value of supplied * key. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_key_set (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_key * key) { int res; res = shishi_asn1_write_integer (handle, enckdcreppart, "key.keytype", shishi_key_type (key)); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_write (handle, enckdcreppart, "key.keyvalue", shishi_key_value (key), shishi_key_length (key)); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; return SHISHI_OK; } /** * shishi_enckdcreppart_nonce_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @nonce: nonce to set in EncKDCRepPart. * * Set the EncKDCRepPart.nonce field. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_nonce_set (Shishi * handle, Shishi_asn1 enckdcreppart, uint32_t nonce) { int res; res = shishi_asn1_write_uint32 (handle, enckdcreppart, "nonce", nonce); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_flags_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @flags: flags to set in EncKDCRepPart. * * Set the EncKDCRepPart.flags field. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_flags_set (Shishi * handle, Shishi_asn1 enckdcreppart, int flags) { int res; res = shishi_asn1_write_bitstring (handle, enckdcreppart, "flags", flags); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_authtime_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @authtime: character buffer containing a generalized time string. * * Set the EncTicketPart.authtime to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_authtime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *authtime) { int res; res = shishi_asn1_write (handle, enckdcreppart, "authtime", authtime, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_starttime_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @starttime: character buffer containing a generalized time string. * * Set the EncTicketPart.starttime to supplied value. Use a NULL * value for @starttime to remove the field. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_starttime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *starttime) { int res; if (!starttime) res = shishi_asn1_write (handle, enckdcreppart, "starttime", NULL, 0); else res = shishi_asn1_write (handle, enckdcreppart, "starttime", starttime, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_endtime_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @endtime: character buffer containing a generalized time string. * * Set the EncTicketPart.endtime to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_endtime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *endtime) { int res; res = shishi_asn1_write (handle, enckdcreppart, "endtime", endtime, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_renew_till_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @renew_till: character buffer containing a generalized time string. * * Set the EncTicketPart.renew-till to supplied value. Use a NULL * value for @renew_till to remove the field. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_renew_till_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *renew_till) { int res; if (!renew_till) res = shishi_asn1_write (handle, enckdcreppart, "renew-till", NULL, 0); else res = shishi_asn1_write (handle, enckdcreppart, "renew-till", renew_till, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_srealm_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: EncKDCRepPart variable to set realm field in. * @srealm: input array with name of realm. * * Set the server realm field in the EncKDCRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_enckdcreppart_srealm_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *srealm) { int res = SHISHI_OK; res = shishi_asn1_write (handle, enckdcreppart, "srealm", srealm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_sname_set: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: EncKDCRepPart variable to set server name field in. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @sname: input array with principal name. * * Set the server name field in the EncKDCRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_enckdcreppart_sname_set (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_name_type name_type, char *sname[]) { int res = SHISHI_OK; int i; char *buf; res = shishi_asn1_write_integer (handle, enckdcreppart, "sname.name-type", name_type); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, enckdcreppart, "sname.name-string", NULL, 0); if (res != SHISHI_OK) return res; i = 1; while (sname[i - 1]) { res = shishi_asn1_write (handle, enckdcreppart, "sname.name-string", "NEW", 1); if (res != SHISHI_OK) return res; asprintf (&buf, "sname.name-string.?%d", i); res = shishi_asn1_write (handle, enckdcreppart, buf, sname[i - 1], 0); free (buf); if (res != SHISHI_OK) return res; i++; } return SHISHI_OK; } int shishi_enckdcreppart_server_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *server) { char *tmpserver; char **serverbuf; char *tokptr = NULL; int res; int i; tmpserver = xstrdup (server); serverbuf = xmalloc (sizeof (*serverbuf)); for (i = 0; (serverbuf[i] = strtok_r (i == 0 ? tmpserver : NULL, "/", &tokptr)); i++) { serverbuf = xrealloc (serverbuf, (i + 2) * sizeof (*serverbuf)); } res = shishi_enckdcreppart_sname_set (handle, enckdcreppart, SHISHI_NT_PRINCIPAL, serverbuf); if (res != SHISHI_OK) return res; free (serverbuf); free (tmpserver); return SHISHI_OK; } int shishi_enckdcreppart_srealmserver_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *srealm, const char *server) { int res; res = shishi_enckdcreppart_srealm_set (handle, enckdcreppart, srealm); if (res != SHISHI_OK) return res; res = shishi_enckdcreppart_server_set (handle, enckdcreppart, server); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_enckdcreppart_populate_encticketpart: * @handle: shishi handle as allocated by shishi_init(). * @enckdcreppart: input EncKDCRepPart variable. * @encticketpart: input EncTicketPart variable. * * Set the flags, authtime, starttime, endtime, renew-till and caddr * fields of the EncKDCRepPart to the corresponding values in the * EncTicketPart. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_enckdcreppart_populate_encticketpart (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_asn1 encticketpart) { char *buf; size_t buflen; int res; res = shishi_asn1_read (handle, encticketpart, "flags", &buf, &buflen); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_write (handle, enckdcreppart, "flags", buf, buflen); free (buf); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, encticketpart, "authtime", &buf, &buflen); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_write (handle, enckdcreppart, "authtime", buf, buflen); free (buf); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, encticketpart, "starttime", &buf, &buflen); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) return SHISHI_ASN1_ERROR; if (res == SHISHI_ASN1_NO_ELEMENT) res = shishi_asn1_write (handle, enckdcreppart, "starttime", NULL, 0); else { res = shishi_asn1_write (handle, enckdcreppart, "starttime", buf, buflen); free (buf); } if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, encticketpart, "endtime", &buf, &buflen); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_write (handle, enckdcreppart, "endtime", buf, buflen); free (buf); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, encticketpart, "renew-till", &buf, &buflen); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) return SHISHI_ASN1_ERROR; if (res == SHISHI_ASN1_NO_ELEMENT) res = shishi_asn1_write (handle, enckdcreppart, "renew-till", NULL, 0); else { res = shishi_asn1_write (handle, enckdcreppart, "renew-till", buf, buflen); free (buf); } if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; /* XXX copy caddr too */ return SHISHI_OK; } shishi-1.0.3/lib/keys.c0000644000000000000000000002234214273601533011565 00000000000000/* keys.c --- Functions for managing keys sets, and keys stored in files. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_keys { Shishi *handle; Shishi_key **keys; int nkeys; }; /** * shishi_keys: * @handle: shishi handle as allocated by shishi_init(). * @keys: output pointer to newly allocated keys handle. * * Get a new key set handle. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_keys (Shishi * handle, Shishi_keys ** keys) { *keys = xmalloc (sizeof (**keys)); (*keys)->handle = handle; (*keys)->keys = NULL; (*keys)->nkeys = 0; return SHISHI_OK; } /** * shishi_keys_done: * @keys: key set handle as allocated by shishi_keys(). * * Deallocates all resources associated with key set. The key set * handle must not be used in calls to other shishi_keys_*() functions * after this. **/ void shishi_keys_done (Shishi_keys ** keys) { size_t i; if (!keys || !*keys) return; if ((*keys)->nkeys > 0) for (i = (*keys)->nkeys; i > 0; i--) shishi_key_done ((*keys)->keys[i - 1]); free ((*keys)->keys); free (*keys); *keys = NULL; return; } /** * shishi_keys_size: * @keys: key set handle as allocated by shishi_keys(). * * Get size of key set. * * Return value: Returns number of keys stored in key set. **/ int shishi_keys_size (Shishi_keys * keys) { return keys->nkeys; } /** * shishi_keys_nth: * @keys: key set handle as allocated by shishi_keys(). * @keyno: integer indicating requested key in key set. * * Get the n:th ticket in key set. * * Return value: Returns a key handle to the keyno:th key in the key * set, or NULL if @keys is invalid or @keyno is out of bounds. The * first key is @keyno 0, the second key @keyno 1, and so on. **/ const Shishi_key * shishi_keys_nth (Shishi_keys * keys, int keyno) { if (keys == NULL || keyno >= keys->nkeys) return NULL; return keys->keys[keyno]; } /** * shishi_keys_remove: * @keys: key set handle as allocated by shishi_keys(). * @keyno: key number of key in the set to remove. The first * key is key number 0. * * Remove a key, indexed by @keyno, in given key set. **/ void shishi_keys_remove (Shishi_keys * keys, int keyno) { shishi_key_done (keys->keys[keyno]); if (keyno < keys->nkeys) memmove (&keys->keys[keyno], &keys->keys[keyno + 1], sizeof (*keys->keys) * (keys->nkeys - keyno - 1)); --keys->nkeys; keys->keys = xrealloc (keys->keys, sizeof (*keys->keys) * keys->nkeys); } /** * shishi_keys_add: * @keys: key set handle as allocated by shishi_keys(). * @key: key to be added to key set. * * Add a key to the key set. A deep copy of the key is stored, so * changing @key, or deallocating it, will not modify the value stored * in the key set. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_keys_add (Shishi_keys * keys, Shishi_key * key) { int rc; if (!key) return SHISHI_INVALID_KEY; keys->nkeys++; keys->keys = xrealloc (keys->keys, sizeof (*keys->keys) * keys->nkeys); rc = shishi_key (keys->handle, &(keys->keys[keys->nkeys - 1])); if (rc != SHISHI_OK) return rc; shishi_key_copy (keys->keys[keys->nkeys - 1], key); return SHISHI_OK; } /** * shishi_keys_print: * @keys: key set to print. * @fh: file handle, open for writing, to print keys to. * * Print all keys in set using shishi_key_print. * * Returns: Returns %SHISHI_OK on success. **/ int shishi_keys_print (Shishi_keys * keys, FILE * fh) { int rc; int i; for (i = 0; i < keys->nkeys; i++) { rc = shishi_key_print (keys->handle, fh, shishi_keys_nth (keys, i)); if (rc != SHISHI_OK) return rc; fprintf (fh, "\n"); } return SHISHI_OK; } /** * shishi_keys_to_file: * @handle: shishi handle as allocated by shishi_init(). * @filename: filename to append key to. * @keys: set of keys to print. * * Print an ASCII representation of a key structure to a file, for * each key in the key set. The file is appended to if it exists. * See shishi_key_print() for the format of the output. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_keys_to_file (Shishi * handle, const char *filename, Shishi_keys * keys) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing KEYS to %s...\n"), filename); fh = fopen (filename, "a"); if (fh == NULL) return SHISHI_FOPEN_ERROR; res = shishi_keys_print (keys, fh); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing KEYS to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_keys_from_file: * @keys: key set handle as allocated by shishi_keys(). * @filename: filename to read keys from. * * Read zero or more keys from file @filename and append them to the * keyset @keys. See shishi_key_print() for the format of the input. * * Return value: Returns %SHISHI_OK iff successful. * * Since: 0.0.42 **/ int shishi_keys_from_file (Shishi_keys * keys, const char *filename) { FILE *fh; int res; fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; res = SHISHI_OK; while (!feof (fh)) { Shishi_key *key = NULL; res = shishi_key_parse (keys->handle, fh, &key); if (res != SHISHI_OK || key == NULL) break; if (VERBOSENOISE (keys->handle)) { printf ("Read key:\n"); shishi_key_print (keys->handle, stdout, key); } res = shishi_keys_add (keys, key); shishi_key_done (key); key = NULL; } res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; return SHISHI_OK; } /** * shishi_keys_for_serverrealm_in_file * @handle: Shishi library handle create by shishi_init(). * @filename: file to read keys from. * @server: server name to get key for. * @realm: realm of server to get key for. * * Get keys that match specified @server and @realm from the key set * file @filename. * * Return value: Returns the key for specific server and realm, read * from the indicated file, or NULL if no key could be found or an * error encountered. **/ Shishi_key * shishi_keys_for_serverrealm_in_file (Shishi * handle, const char *filename, const char *server, const char *realm) { Shishi_key *key = NULL; FILE *fh; int res; fh = fopen (filename, "r"); if (fh == NULL) return NULL; res = SHISHI_OK; while (!feof (fh)) { res = shishi_key_parse (handle, fh, &key); if (res != SHISHI_OK || key == NULL) break; if (VERBOSENOISE (handle)) { printf ("Read key:\n"); shishi_key_print (handle, stdout, key); } if ((!server || (shishi_key_principal (key) && strcmp (server, shishi_key_principal (key)) == 0)) && (!realm || (shishi_key_realm (key) && strcmp (realm, shishi_key_realm (key)) == 0))) break; shishi_key_done (key); key = NULL; } res = fclose (fh); if (res != 0) return NULL; return key; } /** * shishi_keys_for_server_in_file * @handle: Shishi library handle create by shishi_init(). * @filename: file to read keys from. * @server: server name to get key for. * * Get key for specified @server from @filename. * * Return value: Returns the key for specific server, read from the * indicated file, or NULL if no key could be found or an error * encountered. **/ Shishi_key * shishi_keys_for_server_in_file (Shishi * handle, const char *filename, const char *server) { return shishi_keys_for_serverrealm_in_file (handle, filename, server, NULL); } /** * shishi_keys_for_localservicerealm_in_file: * @handle: Shishi library handle create by shishi_init(). * @filename: file to read keys from. * @service: service to get key for. * @realm: realm of server to get key for, or NULL for default realm. * * Get key for specified @service and @realm from @filename. * * Return value: Returns the key for the server * "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's * hostname), read from the default host keys file (see * shishi_hostkeys_default_file()), or NULL if no key could be found * or an error encountered. **/ Shishi_key * shishi_keys_for_localservicerealm_in_file (Shishi * handle, const char *filename, const char *service, const char *realm) { char *hostname; char *server; Shishi_key *key; hostname = xgethostname (); asprintf (&server, "%s/%s", service, hostname); key = shishi_keys_for_serverrealm_in_file (handle, filename, server, realm); free (server); free (hostname); return key; } shishi-1.0.3/lib/password.c0000644000000000000000000001170314273601533012453 00000000000000/* password.c --- Get passwords from user. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* XXX? zeroize password */ #include "internal.h" #include "getpass.h" #ifdef HAVE_LIBIDN # include #endif /** * shishi_prompt_password_callback_set: * @handle: shishi handle as allocated by shishi_init(). * @cb: function pointer to application password callback, a * #shishi_prompt_password_func type. * * Set a callback function that will be used by * shishi_prompt_password() to query the user for a password. The * function pointer can be retrieved using * shishi_prompt_password_callback_get(). * * The @cb function should follow the %shishi_prompt_password_func prototype: * * int prompt_password (Shishi * @handle, char **@s, * const char *@format, va_list @ap); * * If the function returns 0, the @s variable should contain a newly * allocated string with the password read from the user. **/ void shishi_prompt_password_callback_set (Shishi * handle, shishi_prompt_password_func cb) { handle->prompt_passwd = cb; } /** * shishi_prompt_password_callback_get: * @handle: shishi handle as allocated by shishi_init(). * * Get the application password prompt function callback as set by * shishi_prompt_password_callback_set(). * * Returns: Returns the callback, a #shishi_prompt_password_func type, * or %NULL. **/ shishi_prompt_password_func shishi_prompt_password_callback_get (Shishi * handle) { return handle->prompt_passwd; } /** * shishi_prompt_password: * @handle: shishi handle as allocated by shishi_init(). * @s: pointer to newly allocated output string with read password. * @format: printf(3) style format string. * @...: printf(3) style arguments. * * Format and print a prompt, and read a password from user. The * password is possibly converted (e.g., converted from Latin-1 to * UTF-8, or processed using Stringprep profile) following any * "stringprocess" keywords in configuration files. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_prompt_password (Shishi * handle, char **s, const char *format, ...) { char *p; va_list ap; if (handle->prompt_passwd) { int ret; va_start (ap, format); ret = handle->prompt_passwd (handle, s, format, ap); va_end (ap); return ret; } #ifdef HAVE_LIBIDN if (VERBOSE (handle)) { printf ("Libstringprep thinks your locale is `%s'.\n", stringprep_locale_charset ()); } #endif va_start (ap, format); vprintf (format, ap); fflush (stdout); va_end (ap); p = getpass (""); *s = xstrdup (p); printf ("\n"); if (VERBOSENOISE (handle)) { size_t i; printf ("Read password (length %zu): ", strlen (*s)); for (i = 0; i < strlen (*s); i++) printf ("%02x ", (unsigned) (*s)[i] & 0xFF); printf ("\n"); } if (handle->stringprocess && strcasecmp (handle->stringprocess, "none") != 0) #ifdef HAVE_LIBIDN { if (strcasecmp (handle->stringprocess, "stringprep") == 0) p = stringprep_locale_to_utf8 (*s); else p = stringprep_convert (*s, handle->stringprocess, stringprep_locale_charset ()); if (p) { free (*s); *s = p; } else shishi_warn (handle, "Charset conversion of password failed"); if (VERBOSENOISE (handle)) { size_t i; printf ("Password converted to %s (length %zu): ", strcasecmp (handle->stringprocess, "stringprep") == 0 ? "UTF-8" : handle->stringprocess, strlen (*s)); for (i = 0; i < strlen (*s); i++) printf ("%02x ", (unsigned) (*s)[i] & 0xFF); printf ("\n"); } if (strcasecmp (handle->stringprocess, "stringprep") == 0) { int rc; rc = stringprep_profile (*s, &p, "SASLprep", 0); if (rc == SHISHI_OK) { free (*s); *s = p; } else shishi_warn (handle, "Stringprep conversion of password failed"); if (VERBOSENOISE (handle)) { size_t i; printf ("Stringprep'ed password (length %zu): ", strlen (*s)); for (i = 0; i < strlen (*s); i++) printf ("%02x ", (unsigned) (*s)[i] & 0xFF); printf ("\n"); } } } #else shishi_warn (handle, "Password string processing (%s) disabled", handle->stringprocess); #endif return SHISHI_OK; } shishi-1.0.3/lib/starttls.h0000644000000000000000000000215614273601533012500 00000000000000/* starttls.h --- Network I/O functions for Shishi over TLS. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ extern int _shishi_tls_init (Shishi * handle); extern int _shishi_tls_done (Shishi * handle); extern int _shishi_sendrecv_tls (Shishi * handle, struct addrinfo *ai, const char *indata, size_t inlen, char **outdata, size_t *outlen); shishi-1.0.3/lib/crypto-md.c0000644000000000000000000000317314273601533012531 00000000000000/* crypto-md.c --- DES crypto functions * Copyright (C) 2002-2022 Simon Josefsson * Copyright (C) 2003 Free Software Foundation, Inc. * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include "crypto.h" static int md4_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { if (outlen) *outlen = 16; return shishi_md4 (handle, in, inlen, out); } static int md5_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { if (outlen) *outlen = 16; return shishi_md5 (handle, in, inlen, out); } checksuminfo md4_info = { SHISHI_RSA_MD4, "rsa-md4", 16, md4_checksum, NULL }; checksuminfo md5_info = { SHISHI_RSA_MD5, "rsa-md5", 16, md5_checksum, NULL }; shishi-1.0.3/lib/principal.c0000644000000000000000000003167014273601533012577 00000000000000/* principal.c --- Get and set default principal. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /** * shishi_principal_default_guess: * * Guesses the principal name for the user, looking at environment * variables SHISHI_USER, USER and LOGNAME, or if that fails, returns * the string "user". * * Return value: Returns guessed default principal for user as a * string that has to be deallocated by the caller with free(). **/ char * shishi_principal_default_guess (void) { const char *envuser; envuser = getenv ("SHISHI_USER"); if (!envuser) envuser = getenv ("USER"); if (!envuser) envuser = getenv ("LOGNAME"); if (!envuser) envuser = "user"; return xstrdup (envuser); } /** * shishi_principal_default: * @handle: Shishi library handle created by shishi_init(). * * The default principal name is the name in the environment variable * USER, or LOGNAME for some systems, but it can be overridden by * specifying the environment variable SHISHI_USER. * * Return value: Returns the default principal name used by the * library. (Not a copy of it, so don't modify or deallocate it.) **/ const char * shishi_principal_default (Shishi * handle) { if (!handle->default_principal) { char *p; p = shishi_principal_default_guess (); shishi_principal_default_set (handle, p); free (p); } return handle->default_principal; } /** * shishi_principal_default_set: * @handle: Shishi library handle created by shishi_init(). * @principal: string with new default principal name, or NULL to * reset to default. * * Set the default principal used by the library. The string is copied * into the library, so you can dispose of the variable immediately * after calling this function. **/ void shishi_principal_default_set (Shishi * handle, const char *principal) { free (handle->default_principal); if (principal) handle->default_principal = xstrdup (principal); else handle->default_principal = NULL; } /** * shishi_parse_name: * @handle: Shishi library handle created by shishi_init(). * @name: input principal name string, e.g. imap/mail.gnu.org\@GNU.ORG. * @principal: newly allocated output string with principal name. * @realm: newly allocated output string with realm name. * * Split principal name (e.g., "simon\@JOSEFSSON.ORG") into two * newly allocated strings, the @principal ("simon"), and the @realm * ("JOSEFSSON.ORG"). If there is no realm part in @name, @realm is set * to NULL. * * Return value: Returns SHISHI_INVALID_PRINCIPAL_NAME if @name is NULL * or ends with the escape character "\", and SHISHI_OK if * successful. **/ int shishi_parse_name (Shishi * handle, const char *name, char **principal, char **realm) { const char *p = name; const char *q; int escaped = 0; if (!name) { shishi_error_printf (handle, "Name is NULL\n"); return SHISHI_INVALID_PRINCIPAL_NAME; } while (*p && (*p != '@' || escaped)) if (escaped) escaped = 0; else if (*p++ == '\\') escaped = 1; if (escaped) { shishi_error_printf (handle, "Principal ended with escape character: %s\n", name); return SHISHI_INVALID_PRINCIPAL_NAME; } if (principal) { *principal = xstrndup (name, p - name + 1); (*principal)[p - name] = '\0'; } if (*p) { q = ++p; while (*q) if (escaped) escaped = 0; else if (*q++ == '\\') escaped = 1; if (escaped) { shishi_error_printf (handle, "Realm ended with escape character: %s\n", name); return SHISHI_INVALID_PRINCIPAL_NAME; } if (realm) *realm = xstrdup (p); } else if (realm) *realm = NULL; return SHISHI_OK; } /** * shishi_principal_name: * @handle: Shishi library handle created by shishi_init(). * @namenode: ASN.1 structure with principal in @namefield. * @namefield: name of field in @namenode containing principal name. * @out: pointer to newly allocated, null terminated, string containing * principal name. May be %NULL (to only populate @outlen). * @outlen: pointer to length of @out on output, excluding terminating * null. May be %NULL (to only populate @out). * * Represent principal name in ASN.1 structure as null-terminated * string. The string is allocated by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @outlen does not include the terminating null. * * Return value: Returns SHISHI_OK if successful. **/ int shishi_principal_name (Shishi * handle, Shishi_asn1 namenode, const char *namefield, char **out, size_t *outlen) { char *format; size_t i, j, n; char *name = NULL; size_t namelen = 0; int res; asprintf (&format, "%s.name-string", namefield); res = shishi_asn1_number_of_elements (handle, namenode, format, &n); free (format); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { char *tmp; size_t tmplen; size_t safetmplen; asprintf (&format, "%s.name-string.?%zu", namefield, i); res = shishi_asn1_read (handle, namenode, format, &tmp, &tmplen); free (format); if (res != SHISHI_OK) return res; safetmplen = tmplen; for (j = 0; j < tmplen; j++) if (tmp[j] == '@' || tmp[j] == '/' || tmp[j] == '\\') safetmplen++; if (i < n) safetmplen++; name = xrealloc (name, namelen + safetmplen); for (j = 0; j < tmplen; j++) { if (tmp[j] == '@' || tmp[j] == '/' || tmp[j] == '\\') name[namelen++] = '\\'; name[namelen++] = tmp[j]; } if (i < n) name[namelen++] = '/'; free (tmp); } name = xrealloc (name, namelen + 1); name[namelen] = '\0'; if (out) *out = name; else free (name); if (outlen) *outlen = namelen; return SHISHI_OK; } /** * shishi_principal_name_realm: * @handle: Shishi library handle created by shishi_init(). * @namenode: ASN.1 structure with principal name in @namefield. * @namefield: name of field in @namenode containing principal name. * @realmnode: ASN.1 structure with principal realm in @realmfield. * @realmfield: name of field in @realmnode containing principal realm. * @out: pointer to newly allocated null terminated string containing * principal name. May be %NULL (to only populate @outlen). * @outlen: pointer to length of @out on output, excluding terminating * null. May be %NULL (to only populate @out). * * Represent principal name and realm in ASN.1 structure as * null-terminated string. The string is allocated by this function. * It is the responsibility of the caller to deallocate it. Note * that the output length @outlen does not include the terminating * null character. * * Return value: Returns SHISHI_OK if successful. **/ int shishi_principal_name_realm (Shishi * handle, Shishi_asn1 namenode, const char *namefield, Shishi_asn1 realmnode, const char *realmfield, char **out, size_t *outlen) { char *tmp; size_t tmplen; int rc; rc = shishi_principal_name (handle, namenode, namefield, &tmp, &tmplen); if (rc != SHISHI_OK) return rc; if (realmnode == NULL && realmfield) { size_t realmfieldlen = strlen (realmfield); tmp = xrealloc (tmp, tmplen + 1 + realmfieldlen + 1); tmp[tmplen] = '@'; memcpy (tmp + tmplen + 1, realmfield, realmfieldlen); tmplen += 1 + realmfieldlen; tmp[tmplen] = '\0'; } else if (realmnode != NULL) { char *realm; size_t realmlen; rc = shishi_asn1_read (handle, realmnode, realmfield, &realm, &realmlen); if (rc != SHISHI_OK) { free (tmp); return rc; } tmp = xrealloc (tmp, tmplen + 1 + realmlen + 1); tmp[tmplen] = '@'; memcpy (tmp + tmplen + 1, realm, realmlen); tmplen += 1 + realmlen; tmp[tmplen] = '\0'; free (realm); } *out = tmp; if (outlen) *outlen = tmplen; return SHISHI_OK; } /** * shishi_principal_name_set: * @handle: shishi handle as allocated by shishi_init(). * @namenode: ASN.1 structure with principal in @namefield. * @namefield: name of field in @namenode containing principal name. * @name_type: type of principal, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @name: null-terminated input array with principal name. * * Set the given principal name field to the given name. * * Return value: Returns SHISHI_OK if successful. **/ int shishi_principal_name_set (Shishi * handle, Shishi_asn1 namenode, const char *namefield, Shishi_name_type name_type, const char *name[]) { int res; char *asn1name; int i; asprintf (&asn1name, "%s.name-type", namefield); res = shishi_asn1_write_int32 (handle, namenode, asn1name, name_type); free (asn1name); if (res != SHISHI_OK) return res; asprintf (&asn1name, "%s.name-string", namefield); res = shishi_asn1_write (handle, namenode, asn1name, NULL, 0); free (asn1name); if (res != SHISHI_OK) return res; i = 1; while (name[i - 1]) { asprintf (&asn1name, "%s.name-string", namefield); res = shishi_asn1_write (handle, namenode, asn1name, "NEW", 1); free (asn1name); if (res != SHISHI_OK) return res; asprintf (&asn1name, "%s.name-string.?%d", namefield, i); res = shishi_asn1_write (handle, namenode, asn1name, name[i - 1], 0); free (asn1name); if (res != SHISHI_OK) return res; i++; } return SHISHI_OK; } /** * shishi_principal_set: * @handle: shishi handle as allocated by shishi_init(). * @namenode: ASN.1 structure with principal in @namefield. * @namefield: name of field in @namenode containing principal name. * @name: null-terminated string with principal name in RFC 1964 form. * * Set principal name field in an ASN.1 structure to the given name. * * Return value: Returns SHISHI_OK if successful. **/ int shishi_principal_set (Shishi * handle, Shishi_asn1 namenode, const char *namefield, const char *name) { char *tmpname; const char **namebuf; char *tokptr = NULL; int res; int i; tmpname = xstrdup (name); namebuf = xmalloc (sizeof (*namebuf)); for (i = 0; (namebuf[i] = strtok_r (i == 0 ? tmpname : NULL, "/", &tokptr)); i++) { namebuf = xrealloc (namebuf, (i + 2) * sizeof (*namebuf)); } res = shishi_principal_name_set (handle, namenode, namefield, SHISHI_NT_UNKNOWN, namebuf); free (namebuf); free (tmpname); if (res != SHISHI_OK) { shishi_error_printf (handle, _("Could not set principal name: %s\n"), shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_derive_default_salt: * @handle: shishi handle as allocated by shishi_init(). * @name: principal name of user. * @salt: output variable with newly allocated salt string. * * Derive the default salt from a principal. The default salt is the * concatenation of the decoded realm and the principal. * * Return value: Return SHISHI_OK if successful. **/ int shishi_derive_default_salt (Shishi * handle, const char *name, char **salt) { char *principal; char *realm; char *p; int rc; /* XXX also deal with escaped /'s. */ rc = shishi_parse_name (handle, name, &principal, &realm); if (rc != SHISHI_OK) return rc; if (!principal || !realm) { free (realm); free (principal); return SHISHI_INVALID_PRINCIPAL_NAME; } while ((p = strchr (principal, '/'))) memmove (p, p + 1, strlen (p)); *salt = xasprintf ("%s%s", realm, principal); free (realm); free (principal); return SHISHI_OK; } /** * shishi_server_for_local_service: * @handle: shishi handle as allocated by shishi_init(). * @service: null terminated string with name of service, e.g., "host". * * Construct a service principal (e.g., "imap/yxa.extuno.com") based * on supplied service name (i.e., "imap") and the system's hostname as * returned by hostname() (i.e., "yxa.extundo.com"). The string must * be deallocated by the caller. * * Return value: Return newly allocated service name string. **/ char * shishi_server_for_local_service (Shishi * handle, const char *service) { char *hostname; char *server; hostname = xgethostname (); asprintf (&server, "%s/%s", service, hostname); free (hostname); return server; } shishi-1.0.3/lib/shishi.h0000644000000000000000000027344714273601533012124 00000000000000/* shishi.h --- Header file for Shishi library. -*- c -*- * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef SHISHI_H # define SHISHI_H /** * SECTION:shishi * @title: shishi.h * @short_description: main library interfaces * * The main library interfaces are declared in shishi.h. */ # include /* size_t */ # include /* FILE */ # include /* va_list */ # include /* time_t */ # include /* uint32_t */ # include /* SHISHI_VERSION etc */ # ifdef __cplusplus extern "C" { # endif # ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) # define __attribute__(Spec) /* empty */ # endif # endif /* Error codes */ typedef enum { SHISHI_OK = 0, SHISHI_ASN1_ERROR = 1, SHISHI_FOPEN_ERROR = 2, SHISHI_IO_ERROR = 3, SHISHI_MALLOC_ERROR = 4, SHISHI_BASE64_ERROR = 5, SHISHI_REALM_MISMATCH = 6, SHISHI_CNAME_MISMATCH = 7, SHISHI_NONCE_MISMATCH = 8, SHISHI_TGSREP_BAD_KEYTYPE = 9, SHISHI_KDCREP_BAD_KEYTYPE = 10, SHISHI_APREP_BAD_KEYTYPE = 11, SHISHI_APREP_VERIFY_FAILED = 12, SHISHI_APREQ_BAD_KEYTYPE = 13, SHISHI_TOO_SMALL_BUFFER = 14, SHISHI_DERIVEDKEY_TOO_SMALL = 15, SHISHI_KEY_TOO_LARGE = 16, SHISHI_CRYPTO_ERROR = 17, SHISHI_CRYPTO_INTERNAL_ERROR = 18, SHISHI_SOCKET_ERROR = 19, SHISHI_BIND_ERROR = 20, SHISHI_SENDTO_ERROR = 21, SHISHI_RECVFROM_ERROR = 22, SHISHI_CLOSE_ERROR = 23, SHISHI_KDC_TIMEOUT = 24, SHISHI_KDC_NOT_KNOWN_FOR_REALM = 25, SHISHI_TTY_ERROR = 26, SHISHI_GOT_KRBERROR = 27, SHISHI_HANDLE_ERROR = 28, SHISHI_INVALID_TKTS = 29, SHISHI_TICKET_BAD_KEYTYPE = 30, SHISHI_INVALID_KEY = 31, SHISHI_APREQ_DECRYPT_FAILED = 32, SHISHI_TICKET_DECRYPT_FAILED = 33, SHISHI_INVALID_TICKET = 34, SHISHI_OUT_OF_RANGE = 35, SHISHI_ASN1_NO_ELEMENT = 36, SHISHI_SAFE_BAD_KEYTYPE = 37, SHISHI_SAFE_VERIFY_FAILED = 38, SHISHI_PKCS5_INVALID_PRF = 39, SHISHI_PKCS5_INVALID_ITERATION_COUNT = 40, SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH = 41, SHISHI_PKCS5_DERIVED_KEY_TOO_LONG = 42, SHISHI_INVALID_PRINCIPAL_NAME = 43, SHISHI_INVALID_ARGUMENT = 44, SHISHI_ASN1_NO_VALUE = 45, SHISHI_CONNECT_ERROR = 46, SHISHI_VERIFY_FAILED = 47, SHISHI_PRIV_BAD_KEYTYPE = 48, SHISHI_FILE_ERROR = 49, SHISHI_ENCAPREPPART_BAD_KEYTYPE = 50, SHISHI_GETTIMEOFDAY_ERROR = 51, SHISHI_KEYTAB_ERROR = 52, SHISHI_CCACHE_ERROR = 53, SHISHI_LAST_ERROR = 53 } Shishi_rc; typedef enum { /* Name type not known */ SHISHI_NT_UNKNOWN = 0, /* Just the name of the principal as in DCE, or for users */ SHISHI_NT_PRINCIPAL = 1, /* Service and other unique instance (krbtgt) */ SHISHI_NT_SRV_INST = 2, /* Service with host name as instance (telnet, rcommands) */ SHISHI_NT_SRV_HST = 3, /* Service with host as remaining components */ SHISHI_NT_SRV_XHST = 4, /* Unique ID */ SHISHI_NT_UID = 5, /* Encoded X.509 Distingished name [RFC 2253] */ SHISHI_NT_X500_PRINCIPAL = 6, /* Name in form of SMTP email name (e.g. user@foo.com) */ SHISHI_NT_SMTP_NAME = 7, /* Enterprise name - may be mapped to principal name */ SHISHI_NT_ENTERPRISE = 10 } Shishi_name_type; typedef enum { SHISHI_PA_TGS_REQ = 1, SHISHI_PA_ENC_TIMESTAMP = 2, SHISHI_PA_PW_SALT = 3, SHISHI_PA_RESERVED = 4, SHISHI_PA_ENC_UNIX_TIME = 5, /* (deprecated) */ SHISHI_PA_SANDIA_SECUREID = 6, SHISHI_PA_SESAME = 7, SHISHI_PA_OSF_DCE = 8, SHISHI_PA_CYBERSAFE_SECUREID = 9, SHISHI_PA_AFS3_SALT = 10, SHISHI_PA_ETYPE_INFO = 11, SHISHI_PA_SAM_CHALLENGE = 12, /* (sam/otp) */ SHISHI_PA_SAM_RESPONSE = 13, /* (sam/otp) */ SHISHI_PA_PK_AS_REQ = 14, /* (pkinit) */ SHISHI_PA_PK_AS_REP = 15, /* (pkinit) */ SHISHI_PA_ETYPE_INFO2 = 19, /* (replaces pa_etype_info) */ SHISHI_PA_USE_SPECIFIED_KVNO = 20, SHISHI_PA_SAM_REDIRECT = 21, /* (sam/otp) */ SHISHI_PA_GET_FROM_TYPED_DATA = 22, /* (embedded in typed data) */ SHISHI_TD_PADATA = 22, /* (embeds padata) */ SHISHI_PA_SAM_ETYPE_INFO = 23, /* (sam/otp) */ SHISHI_PA_ALT_PRINC = 24, /* (crawdad@fnal.gov) */ SHISHI_PA_SAM_CHALLENGE2 = 30, /* (kenh@pobox.com) */ SHISHI_PA_SAM_RESPONSE2 = 31, /* (kenh@pobox.com) */ SHISHI_PA_EXTRA_TGT = 41, /* Reserved extra TGT */ SHISHI_TD_PKINIT_CMS_CERTIFICATES = 101, /* CertificateSet from CMS */ SHISHI_TD_KRB_PRINCIPAL = 102, /* PrincipalName */ SHISHI_TD_KRB_REALM = 103, /* Realm */ SHISHI_TD_TRUSTED_CERTIFIERS = 104, /* from PKINIT */ SHISHI_TD_CERTIFICATE_INDEX = 105, /* from PKINIT */ SHISHI_TD_APP_DEFINED_ERROR = 106, /* application specific */ SHISHI_TD_REQ_NONCE = 107, /* INTEGER */ SHISHI_TD_REQ_SEQ = 108, /* INTEGER */ SHISHI_PA_PAC_REQUEST = 128 /* (jbrezak@exchange.microsoft.com) */ } Shishi_padata_type; typedef enum { SHISHI_TR_DOMAIN_X500_COMPRESS = 1 } Shishi_tr_type; typedef enum { SHISHI_APOPTIONS_RESERVED = 0x1, /* bit 0 */ SHISHI_APOPTIONS_USE_SESSION_KEY = 0x2, /* bit 1 */ SHISHI_APOPTIONS_MUTUAL_REQUIRED = 0x4 /* bit 2 */ } Shishi_apoptions; typedef enum { SHISHI_TICKETFLAGS_RESERVED = 0x1, /* bit 0 */ SHISHI_TICKETFLAGS_FORWARDABLE = 0x2, /* bit 1 */ SHISHI_TICKETFLAGS_FORWARDED = 0x4, /* bit 2 */ SHISHI_TICKETFLAGS_PROXIABLE = 0x8, /* bit 3 */ SHISHI_TICKETFLAGS_PROXY = 0x10, /* bit 4 */ SHISHI_TICKETFLAGS_MAY_POSTDATE = 0x20, /* bit 5 */ SHISHI_TICKETFLAGS_POSTDATED = 0x40, /* bit 6 */ SHISHI_TICKETFLAGS_INVALID = 0x80, /* bit 7 */ SHISHI_TICKETFLAGS_RENEWABLE = 0x100, /* bit 8 */ SHISHI_TICKETFLAGS_INITIAL = 0x200, /* bit 9 */ SHISHI_TICKETFLAGS_PRE_AUTHENT = 0x400, /* bit 10 */ SHISHI_TICKETFLAGS_HW_AUTHENT = 0x800, /* bit 11 */ SHISHI_TICKETFLAGS_TRANSITED_POLICY_CHECKED = 0x1000, /* bit 12 */ SHISHI_TICKETFLAGS_OK_AS_DELEGATE = 0x2000 /* bit 13 */ } Shishi_ticketflags; typedef enum { SHISHI_KDCOPTIONS_RESERVED = 0x1, /* bit 0 */ SHISHI_KDCOPTIONS_FORWARDABLE = 0x2, /* bit 1 */ SHISHI_KDCOPTIONS_FORWARDED = 0x4, /* bit 2 */ SHISHI_KDCOPTIONS_PROXIABLE = 0x8, /* bit 3 */ SHISHI_KDCOPTIONS_PROXY = 0x10, /* bit 4 */ SHISHI_KDCOPTIONS_ALLOW_POSTDATE = 0x20, /* bit 5 */ SHISHI_KDCOPTIONS_POSTDATED = 0x40, /* bit 6 */ SHISHI_KDCOPTIONS_UNUSED7 = 0x80, /* bit 7 */ SHISHI_KDCOPTIONS_RENEWABLE = 0x100, /* bit 8 */ SHISHI_KDCOPTIONS_UNUSED9 = 0x200, /* bit 9 */ SHISHI_KDCOPTIONS_UNUSED10 = 0x400, /* bit 10 */ SHISHI_KDCOPTIONS_UNUSED11 = 0x800 /* bit 11 */ # define SHISHI_KDCOPTIONS_DISABLE_TRANSITED_CHECK 0x4000000 /* bit 26 */ # define SHISHI_KDCOPTIONS_RENEWABLE_OK 0x8000000 /* bit 27 */ # define SHISHI_KDCOPTIONS_ENC_TKT_IN_SKEY 0x10000000 /* bit 28 */ # define SHISHI_KDCOPTIONS_RENEW 0x40000000 /* bit 30 */ # define SHISHI_KDCOPTIONS_VALIDATE 0x80000000 /* bit 31 */ } Shishi_KDCOptions; typedef enum { /* 0 unused */ /* 1 Ticket PDU */ /* 2 Authenticator non-PDU */ /* 3 EncTicketPart non-PDU */ /* 4-9 unused */ /* Request for initial authentication */ SHISHI_MSGTYPE_AS_REQ = 10, /* Response to SHISHI_MSGTYPE_AS_REQ request */ SHISHI_MSGTYPE_AS_REP = 11, /* Request for authentication based on TGT */ SHISHI_MSGTYPE_TGS_REQ = 12, /* Response to SHISHI_MSGTYPE_TGS_REQ request */ SHISHI_MSGTYPE_TGS_REP = 13, /* application request to server */ SHISHI_MSGTYPE_AP_REQ = 14, /* Response to SHISHI_MSGTYPE_AP_REQ_MUTUAL */ SHISHI_MSGTYPE_AP_REP = 15, /* Reserved for user-to-user krb_tgt_request */ SHISHI_MSGTYPE_RESERVED16 = 16, /* Reserved for user-to-user krb_tgt_reply */ SHISHI_MSGTYPE_RESERVED17 = 17, /* 18-19 unused */ /* Safe (checksummed) application message */ SHISHI_MSGTYPE_SAFE = 20, /* Private (encrypted) application message */ SHISHI_MSGTYPE_PRIV = 21, /* Private (encrypted) message to forward credentials */ SHISHI_MSGTYPE_CRED = 22, /* 23-24 unused */ /* 25 EncASRepPart non-PDU */ /* 26 EncTGSRepPart non-PDU */ /* 27 EncApRepPart non-PDU */ /* 28 EncKrbPrivPart non-PDU */ /* 29 EncKrbCredPart non-PDU */ /* Error response */ SHISHI_MSGTYPE_ERROR = 30 } Shishi_msgtype; typedef enum { SHISHI_LRTYPE_LAST_INITIAL_TGT_REQUEST = 1, SHISHI_LRTYPE_LAST_INITIAL_REQUEST = 2, SHISHI_LRTYPE_NEWEST_TGT_ISSUE = 3, SHISHI_LRTYPE_LAST_RENEWAL = 4, SHISHI_LRTYPE_LAST_REQUEST = 5 } Shishi_lrtype; typedef enum { SHISHI_NULL = 0, SHISHI_DES_CBC_CRC = 1, SHISHI_DES_CBC_MD4 = 2, SHISHI_DES_CBC_MD5 = 3, SHISHI_DES_CBC_NONE = 4, SHISHI_DES3_CBC_NONE = 6, SHISHI_DES3_CBC_HMAC_SHA1_KD = 16, SHISHI_AES128_CTS_HMAC_SHA1_96 = 17, SHISHI_AES256_CTS_HMAC_SHA1_96 = 18, SHISHI_ARCFOUR_HMAC = 23, SHISHI_ARCFOUR_HMAC_EXP = 24 } Shishi_etype; typedef enum { SHISHI_CRC32 = 1, SHISHI_RSA_MD4 = 2, SHISHI_RSA_MD4_DES = 3, SHISHI_DES_MAC = 4, SHISHI_DES_MAC_K = 5, SHISHI_RSA_MD4_DES_K = 6, SHISHI_RSA_MD5 = 7, SHISHI_RSA_MD5_DES = 8, SHISHI_RSA_MD5_DES_GSS = 9, /* XXX */ SHISHI_HMAC_SHA1_DES3_KD = 12, SHISHI_HMAC_SHA1_96_AES128 = 15, SHISHI_HMAC_SHA1_96_AES256 = 16, SHISHI_ARCFOUR_HMAC_MD5 = -138, SHISHI_KRB5_GSSAPI_CKSUM = 8003, SHISHI_NO_CKSUMTYPE = -1 } Shishi_cksumtype; typedef enum { SHISHI_FILETYPE_TEXT = 0, SHISHI_FILETYPE_DER, SHISHI_FILETYPE_HEX, SHISHI_FILETYPE_BASE64, SHISHI_FILETYPE_BINARY } Shishi_filetype; typedef enum { SHISHI_OUTPUTTYPE_NULL = 0, SHISHI_OUTPUTTYPE_STDERR, SHISHI_OUTPUTTYPE_SYSLOG } Shishi_outputtype; typedef enum { SHISHI_AUTHORIZATION_BASIC = 0, SHISHI_AUTHORIZATION_K5LOGIN } Shishi_authorization; typedef enum { /* 1. AS-REQ PA-ENC-TIMESTAMP padata timestamp, encrypted with the client key */ SHISHI_KEYUSAGE_ASREQ_PA_ENC_TIMESTAMP = 1, /* 2. AS-REP Ticket and TGS-REP Ticket (includes TGS session key or application session key), encrypted with the service key */ SHISHI_KEYUSAGE_ENCTICKETPART = 2, /* 3. AS-REP encrypted part (includes TGS session key or application session key), encrypted with the client key */ SHISHI_KEYUSAGE_ENCASREPPART = 3, /* 4. TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS session key */ SHISHI_KEYUSAGE_TGSREQ_AUTHORIZATIONDATA_TGS_SESSION_KEY = 4, /* 5. TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the TGS authenticator subkey (section 5.4.1) */ SHISHI_KEYUSAGE_TGSREQ_AUTHORIZATIONDATA_TGS_AUTHENTICATOR_KEY = 5, /* 6. TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator cksum, keyed with the TGS session key */ SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR_CKSUM = 6, /* 7. TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator (includes TGS authenticator subkey), encrypted with the TGS session key */ SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR = 7, /* 8. TGS-REP encrypted part (includes application session key), encrypted with the TGS session key */ SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY = 8, /* 9. TGS-REP encrypted part (includes application session key), encrypted with the TGS authenticator subkey */ SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY = 9, /* 10. AP-REQ Authenticator cksum, keyed with the application session key */ SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR_CKSUM = 10, /* 11. AP-REQ Authenticator (includes application authenticator subkey), encrypted with the application session key */ SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR = 11, /* 12. AP-REP encrypted part (includes application session subkey), encrypted with the application session key */ SHISHI_KEYUSAGE_ENCAPREPPART = 12, /* 13. KRB-PRIV encrypted part, encrypted with a key chosen by the application */ SHISHI_KEYUSAGE_KRB_PRIV = 13, /* 14. KRB-CRED encrypted part, encrypted with a key chosen by the application */ SHISHI_KEYUSAGE_KRB_CRED = 14, /* 15. KRB-SAFE cksum, keyed with a key chosen by the application */ SHISHI_KEYUSAGE_KRB_SAFE = 15, /* 18. KRB-ERROR checksum (e-cksum) */ SHISHI_KEYUSAGE_KRB_ERROR = 18, /* 19. AD-KDCIssued checksum (ad-checksum) */ SHISHI_KEYUSAGE_AD_KDCISSUED = 19, /* 20. Checksum for Mandatory Ticket Extensions */ SHISHI_KEYUSAGE_TICKET_EXTENSION = 20, /* 21. Checksum in Authorization Data in Ticket Extensions */ SHISHI_KEYUSAGE_TICKET_EXTENSION_AUTHORIZATION = 21, /* 22-24. Reserved for use in GSSAPI mechanisms derived from RFC 1964. (raeburn/MIT) */ SHISHI_KEYUSAGE_GSS_R1 = 22, SHISHI_KEYUSAGE_GSS_R2 = 23, SHISHI_KEYUSAGE_GSS_R3 = 24, /* draft-ietf-krb-wg-gssapi-cfx */ SHISHI_KEYUSAGE_ACCEPTOR_SEAL = 22, SHISHI_KEYUSAGE_ACCEPTOR_SIGN = 23, SHISHI_KEYUSAGE_INITIATOR_SEAL = 24, SHISHI_KEYUSAGE_INITIATOR_SIGN = 25, /* 16-18,20-21,25-511. Reserved for future use. */ /* 512-1023. Reserved for uses internal implementations. */ /* 1024. Encryption for application use in protocols that do not specify key usage values */ /* 1025. Checksums for application use in protocols that do not specify key usage values */ /* 1026-2047. Reserved for application use. 1026,1028,1030,1032,1034 used in KCMD protocol */ SHISHI_KEYUSAGE_KCMD_DES = 1026, SHISHI_KEYUSAGE_KCMD_INPUT = 1028, SHISHI_KEYUSAGE_KCMD_OUTPUT = 1030, SHISHI_KEYUSAGE_KCMD_STDERR_INPUT = 1032, SHISHI_KEYUSAGE_KCMD_STDERR_OUTPUT = 1034 } Shishi_keyusage; typedef enum { /* No error */ SHISHI_KDC_ERR_NONE = 0, /* Client's entry in database has expired */ SHISHI_KDC_ERR_NAME_EXP = 1, /* Server's entry in database has expired */ SHISHI_KDC_ERR_SERVICE_EXP = 2, /* Requested protocol version number - not supported */ SHISHI_KDC_ERR_BAD_PVNO = 3, /* Client's key encrypted in old master key */ SHISHI_KDC_ERR_C_OLD_MAST_KVNO = 4, /* Server's key encrypted in old master key */ SHISHI_KDC_ERR_S_OLD_MAST_KVNO = 5, /* Client not found in database */ SHISHI_KDC_ERR_C_PRINCIPAL_UNKNOWN = 6, /* Server not found in database */ SHISHI_KDC_ERR_S_PRINCIPAL_UNKNOWN = 7, /* Multiple principal entries in database */ SHISHI_KDC_ERR_PRINCIPAL_NOT_UNIQUE = 8, /* The client or server has a null key */ SHISHI_KDC_ERR_NULL_KEY = 9, /* Ticket not eligible for postdating */ SHISHI_KDC_ERR_CANNOT_POSTDATE = 10, /* Requested start time is later than end time */ SHISHI_KDC_ERR_NEVER_VALID = 11, /* KDC policy rejects request */ SHISHI_KDC_ERR_POLICY = 12, /* KDC cannot accommodate requested option */ SHISHI_KDC_ERR_BADOPTION = 13, /* KDC has no support for encryption type */ SHISHI_KDC_ERR_ETYPE_NOSUPP = 14, /* KDC has no support for checksum type */ SHISHI_KDC_ERR_SUMTYPE_NOSUPP = 15, /* KDC has no support for padata type */ SHISHI_KDC_ERR_PADATA_TYPE_NOSUPP = 16, /* KDC has no support for transited type */ SHISHI_KDC_ERR_TRTYPE_NOSUPP = 17, /* Clients credentials have been revoked */ SHISHI_KDC_ERR_CLIENT_REVOKED = 18, /* Credentials for server have been revoked */ SHISHI_KDC_ERR_SERVICE_REVOKED = 19, /* TGT has been revoked */ SHISHI_KDC_ERR_TGT_REVOKED = 20, /* Client not yet valid - try again later */ SHISHI_KDC_ERR_CLIENT_NOTYET = 21, /* Server not yet valid - try again later */ SHISHI_KDC_ERR_SERVICE_NOTYET = 22, /* Password has expired - change password to reset */ SHISHI_KDC_ERR_KEY_EXPIRED = 23, /* Pre-authentication information was invalid */ SHISHI_KDC_ERR_PREAUTH_FAILED = 24, /* Additional pre-authenticationrequired */ SHISHI_KDC_ERR_PREAUTH_REQUIRED = 25, /* Requested server and ticket don't match */ SHISHI_KDC_ERR_SERVER_NOMATCH = 26, /* Server principal valid for user = 2,user only */ SHISHI_KDC_ERR_MUST_USE_USER2USER = 27, /* KDC Policy rejects transited path */ SHISHI_KDC_ERR_PATH_NOT_ACCPETED = 28, /* A service is not available */ SHISHI_KDC_ERR_SVC_UNAVAILABLE = 29, /* Integrity check on decrypted field failed */ SHISHI_KRB_AP_ERR_BAD_INTEGRITY = 31, /* Ticket expired */ SHISHI_KRB_AP_ERR_TKT_EXPIRED = 32, /* Ticket not yet valid */ SHISHI_KRB_AP_ERR_TKT_NYV = 33, /* Request is a replay */ SHISHI_KRB_AP_ERR_REPEAT = 34, /* The ticket isn't for us */ SHISHI_KRB_AP_ERR_NOT_US = 35, /* Ticket and authenticator don't match */ SHISHI_KRB_AP_ERR_BADMATCH = 36, /* Clock skew too great */ SHISHI_KRB_AP_ERR_SKEW = 37, /* Incorrect net address */ SHISHI_KRB_AP_ERR_BADADDR = 38, /* Protocol version mismatch */ SHISHI_KRB_AP_ERR_BADVERSION = 39, /* Invalid msg type */ SHISHI_KRB_AP_ERR_MSG_TYPE = 40, /* Message stream modified */ SHISHI_KRB_AP_ERR_MODIFIED = 41, /* Message out of order */ SHISHI_KRB_AP_ERR_BADORDER = 42, /* Specified version of key is not available */ SHISHI_KRB_AP_ERR_BADKEYVER = 44, /* Service key not available */ SHISHI_KRB_AP_ERR_NOKEY = 45, /* Mutual authentication failed */ SHISHI_KRB_AP_ERR_MUT_FAIL = 46, /* Incorrect message direction */ SHISHI_KRB_AP_ERR_BADDIRECTION = 47, /* Alternative authentication method required */ SHISHI_KRB_AP_ERR_METHOD = 48, /* Incorrect sequence number in message */ SHISHI_KRB_AP_ERR_BADSEQ = 49, /* Inappropriate type of checksum in message */ SHISHI_KRB_AP_ERR_INAPP_CKSUM = 50, /* Policy rejects transited path */ SHISHI_KRB_AP_PATH_NOT_ACCEPTED = 51, /* Response too big for UDP, retry with TCP */ SHISHI_KRB_ERR_RESPONSE_TOO_BIG = 52, /* Generic error (description in e-text) */ SHISHI_KRB_ERR_GENERIC = 60, /* Field is too long for this implementation */ SHISHI_KRB_ERR_FIELD_TOOLONG = 61, /* Reserved for PKINIT */ SHISHI_KDC_ERROR_CLIENT_NOT_TRUSTED = 62, /* Reserved for PKINIT */ SHISHI_KDC_ERROR_KDC_NOT_TRUSTED = 63, /* Reserved for PKINIT */ SHISHI_KDC_ERROR_INVALID_SIG = 64, /* Reserved for PKINIT */ SHISHI_KDC_ERR_KEY_TOO_WEAK = 65, /* Reserved for PKINIT */ SHISHI_KDC_ERR_CERTIFICATE_MISMATCH = 66, /* No TGT available to validate USER-TO-USER */ SHISHI_KRB_AP_ERR_NO_TGT = 67, /* USER-TO-USER TGT issued different KDC */ SHISHI_KDC_ERR_WRONG_REALM = 68, /* Ticket must be for USER-TO-USER */ SHISHI_KRB_AP_ERR_USER_TO_USER_REQUIRED = 69, /* Reserved for PKINIT */ SHISHI_KDC_ERR_CANT_VERIFY_CERTIFICATE = 70, /* Reserved for PKINIT */ SHISHI_KDC_ERR_INVALID_CERTIFICATE = 71, /* Reserved for PKINIT */ SHISHI_KDC_ERR_REVOKED_CERTIFICATE = 72, /* Reserved for PKINIT */ SHISHI_KDC_ERR_REVOCATION_STATUS_UNKNOWN = 73, /* Reserved for PKINIT */ SHISHI_KDC_ERR_REVOCATION_STATUS_UNAVAILABLE = 74, /* Reserved for PKINIT */ SHISHI_KDC_ERR_CLIENT_NAME_MISMATCH = 75, /* Reserved for PKINIT */ SHISHI_KDC_ERR_KDC_NAME_MISMATCH = 76, SHISHI_LAST_ERROR_CODE = 76 } Shishi_krb_error; typedef enum { SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED = 1, SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE = 2 } Shishi_tkts_hintflags; /* *INDENT-OFF* */ struct Shishi_tkts_hint { int startpos; char *server; char *serverrealm; char *client; char *clientrealm; int flags; Shishi_ticketflags tktflags; Shishi_KDCOptions kdcoptions; int32_t etype; char *passwd; time_t starttime; time_t endtime; time_t renew_till; int32_t preauthetype; char *preauthsalt; size_t preauthsaltlen; char *preauths2kparams; size_t preauths2kparamslen; }; struct Shishi_dns_st { struct Shishi_dns_st *next; uint16_t class; uint16_t type; uint32_t ttl; void *rr; }; struct Shishi_dns_srv_st { uint16_t priority; uint16_t weight; uint16_t port; char name[256]; }; /* *INDENT-ON* */ typedef struct Shishi_tkts_hint Shishi_tkts_hint; /* resolv.c */ # define SHISHI_DNS_IN 1 # define SHISHI_DNS_TXT 16 # define SHISHI_DNS_SRV 33 typedef struct Shishi_dns_st *Shishi_dns; typedef struct Shishi_dns_srv_st *Shishi_dns_srv; typedef struct Shishi Shishi; typedef struct Shishi_tkt Shishi_tkt; typedef struct Shishi_tkts Shishi_tkts; typedef struct Shishi_as Shishi_as; typedef struct Shishi_tgs Shishi_tgs; typedef struct Shishi_ap Shishi_ap; typedef struct Shishi_key Shishi_key; typedef struct Shishi_keys Shishi_keys; typedef struct Shishi_safe Shishi_safe; typedef struct Shishi_priv Shishi_priv; # ifdef LIBTASN1_H typedef ASN1_TYPE Shishi_asn1; # else typedef void *Shishi_asn1; # endif typedef struct Shishi_crypto Shishi_crypto; # define SHISHI_GENERALIZEDTIME_LENGTH 15 # define SHISHI_GENERALIZEDTIMEZ_LENGTH (SHISHI_GENERALIZEDTIME_LENGTH + 1) /* If non-NULL, call this function when memory is exhausted. */ extern void (*shishi_alloc_fail_function) (void); /* init.c */ extern Shishi *shishi (void); extern Shishi *shishi_server (void); extern void shishi_done (Shishi * handle); extern int shishi_init (Shishi ** handle); extern int shishi_init_with_paths (Shishi ** handle, const char *tktsfile, const char *systemcfgfile, const char *usercfgfile); extern int shishi_init_server (Shishi ** handle); extern int shishi_init_server_with_paths (Shishi ** handle, const char *systemcfgfile); /* cfg.c */ extern int shishi_cfg (Shishi * handle, const char *option); extern int shishi_cfg_from_file (Shishi * handle, const char *cfg); extern int shishi_cfg_print (Shishi * handle, FILE * fh); extern const char *shishi_cfg_default_systemfile (Shishi * handle); extern const char *shishi_cfg_default_userdirectory (Shishi * handle); extern const char *shishi_cfg_default_userfile (Shishi * handle); extern char *shishi_cfg_userdirectory_file (Shishi * handle, const char *file); extern int shishi_cfg_clientkdcetype (Shishi * handle, int32_t ** etypes); extern int32_t shishi_cfg_clientkdcetype_fast (Shishi * handle); extern int shishi_cfg_clientkdcetype_set (Shishi * handle, char *value); extern int shishi_cfg_authorizationtype_set (Shishi * handle, char *value); /* error.c */ extern const char *shishi_strerror (int err); extern const char *shishi_error (Shishi * handle); extern void shishi_error_clear (Shishi * handle); extern void shishi_error_set (Shishi * handle, const char *errstr); extern void shishi_error_printf (Shishi * handle, const char *format, ...) __attribute__((format (printf, 2, 3))); extern int shishi_error_outputtype (Shishi * handle); extern void shishi_error_set_outputtype (Shishi * handle, int type); extern void shishi_info (Shishi * handle, const char *format, ...) __attribute__((format (printf, 2, 3))); extern void shishi_warn (Shishi * handle, const char *format, ...) __attribute__((format (printf, 2, 3))); extern void shishi_verbose (Shishi * handle, const char *format, ...) __attribute__((format (printf, 2, 3))); /* realm.c */ extern char *shishi_realm_default_guess (void); extern const char *shishi_realm_default (Shishi * handle); extern void shishi_realm_default_set (Shishi * handle, const char *realm); extern char *shishi_realm_for_server_file (Shishi * handle, char *server); extern char *shishi_realm_for_server_dns (Shishi * handle, char *server); extern char *shishi_realm_for_server (Shishi * handle, char *server); /* principal.c */ extern char *shishi_principal_default_guess (void); extern const char *shishi_principal_default (Shishi * handle); extern void shishi_principal_default_set (Shishi * handle, const char *principal); extern int shishi_principal_name (Shishi * handle, Shishi_asn1 namenode, const char *namefield, char **out, size_t *outlen); extern int shishi_principal_name_realm (Shishi * handle, Shishi_asn1 namenode, const char *namefield, Shishi_asn1 realmnode, const char *realmfield, char **out, size_t *outlen); extern int shishi_principal_name_set (Shishi * handle, Shishi_asn1 namenode, const char *namefield, Shishi_name_type name_type, const char *name[]); extern int shishi_principal_set (Shishi * handle, Shishi_asn1 namenode, const char *namefield, const char *name); extern int shishi_parse_name (Shishi * handle, const char *name, char **principal, char **realm); extern int shishi_derive_default_salt (Shishi * handle, const char *name, char **salt); extern char *shishi_server_for_local_service (Shishi * handle, const char *service); /* ticket.c */ extern Shishi_asn1 shishi_ticket (Shishi * handle); extern int shishi_ticket_server (Shishi * handle, Shishi_asn1 ticket, char **server, size_t *serverlen); extern int shishi_ticket_sname_set (Shishi * handle, Shishi_asn1 ticket, Shishi_name_type name_type, char *sname[]); extern int shishi_ticket_srealmserver_set (Shishi * handle, Shishi_asn1 ticket, const char *realm, const char *server); extern int shishi_ticket_set_server (Shishi * handle, Shishi_asn1 ticket, const char *server); extern int shishi_ticket_realm_get (Shishi * handle, Shishi_asn1 ticket, char **realm, size_t *realmlen); extern int shishi_ticket_realm_set (Shishi * handle, Shishi_asn1 ticket, const char *realm); extern int shishi_ticket_get_enc_part_etype (Shishi * handle, Shishi_asn1 ticket, int32_t * etype); extern int shishi_ticket_set_enc_part (Shishi * handle, Shishi_asn1 ticket, int32_t etype, uint32_t kvno, const char *buf, size_t buflen); extern int shishi_ticket_add_enc_part (Shishi * handle, Shishi_asn1 ticket, Shishi_key * key, Shishi_asn1 encticketpart); extern int shishi_ticket_decrypt (Shishi * handle, Shishi_asn1 ticket, Shishi_key * key, Shishi_asn1 * encticketpart); /* tkt.c */ extern Shishi_asn1 shishi_tkt_ticket (Shishi_tkt * tkt); extern void shishi_tkt_ticket_set (Shishi_tkt * tkt, Shishi_asn1 ticket); extern Shishi_asn1 shishi_tkt_kdcrep (Shishi_tkt * tkt); extern Shishi_asn1 shishi_tkt_enckdcreppart (Shishi_tkt * tkt); extern void shishi_tkt_enckdcreppart_set (Shishi_tkt * tkt, Shishi_asn1 enckdcreppart); extern Shishi_asn1 shishi_tkt_encticketpart (Shishi_tkt * tkt); extern void shishi_tkt_encticketpart_set (Shishi_tkt * tkt, Shishi_asn1 encticketpart); extern Shishi_key *shishi_tkt_key (Shishi_tkt * tkt); extern int shishi_tkt_key_set (Shishi_tkt * tkt, Shishi_key * key); extern int shishi_tkt (Shishi * handle, Shishi_tkt ** tkt); extern Shishi_tkt *shishi_tkt2 (Shishi * handle, Shishi_asn1 ticket, Shishi_asn1 enckdcreppart, Shishi_asn1 kdcrep); extern void shishi_tkt_pretty_print (Shishi_tkt * tkt, FILE * fh); extern int shishi_tkt_realm (Shishi_tkt * tkt, char **realm, size_t *realmlen); extern int shishi_tkt_client (Shishi_tkt * tkt, char **client, size_t *clientlen); extern int shishi_tkt_client_p (Shishi_tkt * tkt, const char *client); extern int shishi_tkt_clientrealm (Shishi_tkt * tkt, char **client, size_t *clientlen); extern int shishi_tkt_clientrealm_p (Shishi_tkt * tkt, const char *client); extern int shishi_tkt_clientrealm_set (Shishi_tkt * tkt, const char *realm, const char *client); extern int shishi_tkt_serverrealm_set (Shishi_tkt * tkt, const char *realm, const char *server); extern int shishi_tkt_build (Shishi_tkt * tkt, Shishi_key * key); extern int shishi_tkt_lastreq (Shishi_tkt * tkt, char **lrtime, size_t *lrtimelen, int32_t lrtype); extern time_t shishi_tkt_lastreqc (Shishi_tkt * tkt, Shishi_lrtype lrtype); extern void shishi_tkt_lastreq_pretty_print (Shishi_tkt * tkt, FILE * fh); extern int shishi_tkt_authtime (Shishi_tkt * tkt, char **authtime, size_t *authtimelen); extern time_t shishi_tkt_authctime (Shishi_tkt * tkt); extern int shishi_tkt_starttime (Shishi_tkt * tkt, char **starttime, size_t *starttimelen); extern time_t shishi_tkt_startctime (Shishi_tkt * tkt); extern int shishi_tkt_endtime (Shishi_tkt * tkt, char **endtime, size_t *endtimelen); extern time_t shishi_tkt_endctime (Shishi_tkt * tkt); extern int shishi_tkt_renew_till (Shishi_tkt * tkt, char **renewtilltime, size_t *renewtilllen); extern time_t shishi_tkt_renew_tillc (Shishi_tkt * tkt); extern int shishi_tkt_keytype (Shishi_tkt * tkt, int32_t * etype); extern int32_t shishi_tkt_keytype_fast (Shishi_tkt * tkt); extern int shishi_tkt_keytype_p (Shishi_tkt * tkt, int32_t etype); extern int shishi_tkt_server (Shishi_tkt * tkt, char **server, size_t *serverlen); extern int shishi_tkt_server_p (Shishi_tkt * tkt, const char *server); extern int shishi_tkt_valid_at_time_p (Shishi_tkt * tkt, time_t now); extern int shishi_tkt_valid_now_p (Shishi_tkt * tkt); extern int shishi_tkt_expired_p (Shishi_tkt * tkt); extern int shishi_tkt_decrypt (Shishi_tkt * tkt, Shishi_key * key); extern void shishi_tkt_done (Shishi_tkt * tkt); extern int shishi_tkt_flags (Shishi_tkt * tkt, uint32_t * flags); extern int shishi_tkt_flags_set (Shishi_tkt * tkt, uint32_t flags); extern int shishi_tkt_flags_add (Shishi_tkt * tkt, uint32_t flag); extern int shishi_tkt_forwardable_p (Shishi_tkt * tkt); extern int shishi_tkt_forwarded_p (Shishi_tkt * tkt); extern int shishi_tkt_proxiable_p (Shishi_tkt * tkt); extern int shishi_tkt_proxy_p (Shishi_tkt * tkt); extern int shishi_tkt_may_postdate_p (Shishi_tkt * tkt); extern int shishi_tkt_postdated_p (Shishi_tkt * tkt); extern int shishi_tkt_invalid_p (Shishi_tkt * tkt); extern int shishi_tkt_renewable_p (Shishi_tkt * tkt); extern int shishi_tkt_initial_p (Shishi_tkt * tkt); extern int shishi_tkt_pre_authent_p (Shishi_tkt * tkt); extern int shishi_tkt_hw_authent_p (Shishi_tkt * tkt); extern int shishi_tkt_transited_policy_checked_p (Shishi_tkt * tkt); extern int shishi_tkt_ok_as_delegate_p (Shishi_tkt * tkt); /* tkts.c */ extern char *shishi_tkts_default_file_guess (Shishi * handle); extern const char *shishi_tkts_default_file (Shishi * handle); extern void shishi_tkts_default_file_set (Shishi * handle, const char *tktsfile); extern Shishi_tkts *shishi_tkts_default (Shishi * handle); extern int shishi_tkts_default_to_file (Shishi_tkts * tkts); extern int shishi_tkts (Shishi * handle, Shishi_tkts ** tkts); extern Shishi_tkt *shishi_tkts_nth (Shishi_tkts * tkts, int ticketno); extern int shishi_tkts_size (Shishi_tkts * tkts); extern int shishi_tkts_add (Shishi_tkts * tkts, Shishi_tkt * tkt); extern int shishi_tkts_new (Shishi_tkts * tkts, Shishi_asn1 ticket, Shishi_asn1 enckdcreppart, Shishi_asn1 kdcrep); extern int shishi_tkts_remove (Shishi_tkts * tkts, int ticketno); extern int shishi_tkts_expire (Shishi_tkts * tkts); extern int shishi_tkts_print_for_service (Shishi_tkts * tkts, FILE * fh, const char *service); extern int shishi_tkts_print (Shishi_tkts * tkts, FILE * fh); extern int shishi_tkts_write (Shishi_tkts * tkts, FILE * fh); extern int shishi_tkts_to_file (Shishi_tkts * tkts, const char *filename); extern int shishi_tkts_read (Shishi_tkts * tkts, FILE * fh); extern int shishi_tkts_from_file (Shishi_tkts * tkts, const char *filename); extern void shishi_tkts_done (Shishi_tkts ** tkts); extern int shishi_tkt_match_p (Shishi_tkt * tkt, Shishi_tkts_hint * hint); extern Shishi_tkt *shishi_tkts_find (Shishi_tkts * tkts, Shishi_tkts_hint * hint); extern Shishi_tkt *shishi_tkts_find_for_clientserver (Shishi_tkts * tkts, const char *client, const char *server); extern Shishi_tkt *shishi_tkts_find_for_server (Shishi_tkts * tkts, const char *server); extern Shishi_tkt *shishi_tkts_get (Shishi_tkts * tkts, Shishi_tkts_hint * hint); extern Shishi_tkt *shishi_tkts_get_tgt (Shishi_tkts * tkts, Shishi_tkts_hint * hint); extern Shishi_tkt *shishi_tkts_get_tgs (Shishi_tkts * tkts, Shishi_tkts_hint * hint, Shishi_tkt * tgt); extern Shishi_tkt *shishi_tkts_get_for_clientserver (Shishi_tkts * tkts, const char *client, const char *server); extern Shishi_tkt *shishi_tkts_get_for_server (Shishi_tkts * tkts, const char *server); extern Shishi_tkt *shishi_tkts_get_for_localservicepasswd (Shishi_tkts * tkts, const char *service, const char *passwd); /* tktccache.c */ extern char *shishi_tkts_default_ccache_guess (Shishi * handle); extern const char *shishi_tkts_default_ccache (Shishi * handle); extern void shishi_tkts_default_ccache_set (Shishi * handle, const char *ccache); extern int shishi_tkts_add_ccache_mem (Shishi * handle, const char *data, size_t len, Shishi_tkts * tkts); extern int shishi_tkts_add_ccache_file (Shishi * handle, const char *filename, Shishi_tkts * tkts); extern int shishi_tkts_from_ccache_mem (Shishi * handle, const char *data, size_t len, Shishi_tkts ** outtkts); extern int shishi_tkts_from_ccache_file (Shishi * handle, const char *filename, Shishi_tkts ** outtkts); /* diskio.c */ extern int shishi_enckdcreppart_print (Shishi * handle, FILE * fh, Shishi_asn1 enckdcreppart); extern int shishi_enckdcreppart_save (Shishi * handle, FILE * fh, Shishi_asn1 enckdcreppart); extern int shishi_enckdcreppart_parse (Shishi * handle, FILE * fh, Shishi_asn1 * enckdcreppart); extern int shishi_enckdcreppart_read (Shishi * handle, FILE * fh, Shishi_asn1 * enckdcreppart); extern int shishi_ticket_save (Shishi * handle, FILE * fh, Shishi_asn1 ticket); extern int shishi_ticket_print (Shishi * handle, FILE * fh, Shishi_asn1 ticket); extern int shishi_kdc_print (Shishi * handle, FILE * fh, Shishi_asn1 asreq, Shishi_asn1 asrep, Shishi_asn1 encasreppart); extern int shishi_ticket_parse (Shishi * handle, FILE * fh, Shishi_asn1 * ticket); extern int shishi_ticket_read (Shishi * handle, FILE * fh, Shishi_asn1 * ticket); extern int shishi_etype_info_print (Shishi * handle, FILE * fh, Shishi_asn1 etypeinfo); extern int shishi_etype_info2_print (Shishi * handle, FILE * fh, Shishi_asn1 etypeinfo2); extern int shishi_padata_print (Shishi * handle, FILE * fh, Shishi_asn1 padata); extern int shishi_methoddata_print (Shishi * handle, FILE * fh, Shishi_asn1 methoddata); /* authenticator.c */ extern Shishi_asn1 shishi_authenticator (Shishi * handle); extern int shishi_authenticator_set_crealm (Shishi * handle, Shishi_asn1 authenticator, const char *crealm); extern int shishi_authenticator_set_cname (Shishi * handle, Shishi_asn1 authenticator, Shishi_name_type name_type, const char *cname[]); extern int shishi_authenticator_client_set (Shishi * handle, Shishi_asn1 authenticator, const char *client); extern int shishi_authenticator_ctime (Shishi * handle, Shishi_asn1 authenticator, char **t); extern int shishi_authenticator_ctime_set (Shishi * handle, Shishi_asn1 authenticator, const char *t); extern int shishi_authenticator_cusec_get (Shishi * handle, Shishi_asn1 authenticator, uint32_t * cusec); extern int shishi_authenticator_cusec_set (Shishi * handle, Shishi_asn1 authenticator, uint32_t cusec); extern int shishi_authenticator_seqnumber_get (Shishi * handle, Shishi_asn1 authenticator, uint32_t * seqnumber); extern int shishi_authenticator_seqnumber_remove (Shishi * handle, Shishi_asn1 authenticator); extern int shishi_authenticator_seqnumber_set (Shishi * handle, Shishi_asn1 authenticator, uint32_t seqnumber); extern int shishi_authenticator_client (Shishi * handle, Shishi_asn1 authenticator, char **client, size_t *clientlen); extern int shishi_authenticator_clientrealm (Shishi * handle, Shishi_asn1 authenticator, char **client, size_t *clientlen); extern int shishi_authenticator_remove_cksum (Shishi * handle, Shishi_asn1 authenticator); extern int shishi_authenticator_cksum (Shishi * handle, Shishi_asn1 authenticator, int32_t * cksumtype, char **cksum, size_t *cksumlen); extern int shishi_authenticator_set_cksum (Shishi * handle, Shishi_asn1 authenticator, int cksumtype, char *cksum, size_t cksumlen); extern int shishi_authenticator_add_cksum (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * key, int keyusage, char *data, size_t datalen); extern int shishi_authenticator_add_cksum_type (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * key, int keyusage, int cksumtype, char *data, size_t datalen); extern int shishi_authenticator_remove_subkey (Shishi * handle, Shishi_asn1 authenticator); extern Shishi_asn1 shishi_authenticator_subkey (Shishi * handle); extern int shishi_authenticator_get_subkey (Shishi * handle, Shishi_asn1 authenticator, Shishi_key ** subkey); extern int shishi_authenticator_set_subkey (Shishi * handle, Shishi_asn1 authenticator, int32_t subkeytype, const char *subkey, size_t subkeylen); extern int shishi_authenticator_add_random_subkey (Shishi * handle, Shishi_asn1 authenticator); extern int shishi_authenticator_add_random_subkey_etype (Shishi * handle, Shishi_asn1 authenticator, int etype); extern int shishi_authenticator_add_subkey (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * subkey); extern int shishi_authenticator_clear_authorizationdata (Shishi * handle, Shishi_asn1 authenticator); extern int shishi_authenticator_add_authorizationdata (Shishi * handle, Shishi_asn1 authenticator, int32_t adtype, const char *addata, size_t addatalen); extern int shishi_authenticator_authorizationdata (Shishi * handle, Shishi_asn1 authenticator, int32_t * adtype, char **addata, size_t *addatalen, size_t nth); extern int shishi_authenticator_read (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator); extern int shishi_authenticator_parse (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator); extern int shishi_authenticator_from_file (Shishi * handle, Shishi_asn1 * authenticator, int filetype, const char *filename); extern int shishi_authenticator_print (Shishi * handle, FILE * fh, Shishi_asn1 authenticator); extern int shishi_authenticator_to_file (Shishi * handle, Shishi_asn1 authenticator, int filetype, const char *filename); extern int shishi_authenticator_save (Shishi * handle, FILE * fh, Shishi_asn1 authenticator); /* as.c */ extern int shishi_as (Shishi * handle, Shishi_as ** as); extern void shishi_as_done (Shishi_as * as); extern Shishi_asn1 shishi_as_req (Shishi_as * as); extern int shishi_as_req_build (Shishi_as * as); extern void shishi_as_req_set (Shishi_as * as, Shishi_asn1 asreq); extern int shishi_as_req_der (Shishi_as * as, char **out, size_t *outlen); extern int shishi_as_req_der_set (Shishi_as * as, char *der, size_t derlen); extern Shishi_asn1 shishi_as_rep (Shishi_as * as); extern void shishi_as_rep_set (Shishi_as * as, Shishi_asn1 asrep); extern int shishi_as_rep_build (Shishi_as * as, Shishi_key * key); extern int shishi_as_rep_der (Shishi_as * as, char **out, size_t *outlen); extern int shishi_as_rep_der_set (Shishi_as * as, char *der, size_t derlen); extern Shishi_asn1 shishi_as_krberror (Shishi_as * as); extern int shishi_as_krberror_der (Shishi_as * as, char **out, size_t *outlen); extern void shishi_as_krberror_set (Shishi_as * as, Shishi_asn1 krberror); extern Shishi_tkt *shishi_as_tkt (Shishi_as * as); extern void shishi_as_tkt_set (Shishi_as * as, Shishi_tkt * tkt); extern int shishi_as_sendrecv (Shishi_as * as); extern int shishi_as_sendrecv_hint (Shishi_as * as, Shishi_tkts_hint * hint); extern int shishi_as_rep_process (Shishi_as * as, Shishi_key * key, const char *password); /* tgs.c */ extern int shishi_tgs (Shishi * handle, Shishi_tgs ** tgs); extern void shishi_tgs_done (Shishi_tgs * tgs); extern Shishi_tkt *shishi_tgs_tgtkt (Shishi_tgs * tgs); extern void shishi_tgs_tgtkt_set (Shishi_tgs * tgs, Shishi_tkt * tgtkt); extern Shishi_ap *shishi_tgs_ap (Shishi_tgs * tgs); extern Shishi_asn1 shishi_tgs_req (Shishi_tgs * tgs); extern int shishi_tgs_req_der (Shishi_tgs * tgs, char **out, size_t *outlen); extern int shishi_tgs_req_der_set (Shishi_tgs * tgs, char *der, size_t derlen); extern void shishi_tgs_req_set (Shishi_tgs * tgs, Shishi_asn1 tgsreq); extern int shishi_tgs_req_build (Shishi_tgs * tgs); extern int shishi_tgs_req_process (Shishi_tgs * tgs); extern Shishi_asn1 shishi_tgs_rep (Shishi_tgs * tgs); extern int shishi_tgs_rep_der (Shishi_tgs * tgs, char **out, size_t *outlen); extern int shishi_tgs_rep_build (Shishi_tgs * tgs, int keyusage, Shishi_key * key); extern int shishi_tgs_rep_process (Shishi_tgs * tgs); extern Shishi_asn1 shishi_tgs_krberror (Shishi_tgs * tgs); extern int shishi_tgs_krberror_der (Shishi_tgs * tgs, char **out, size_t *outlen); extern void shishi_tgs_krberror_set (Shishi_tgs * tgs, Shishi_asn1 krberror); extern Shishi_tkt *shishi_tgs_tkt (Shishi_tgs * tgs); extern void shishi_tgs_tkt_set (Shishi_tgs * tgs, Shishi_tkt * tkt); extern int shishi_tgs_sendrecv (Shishi_tgs * tgs); extern int shishi_tgs_sendrecv_hint (Shishi_tgs * tgs, Shishi_tkts_hint * hint); extern int shishi_tgs_set_server (Shishi_tgs * tgs, const char *server); extern int shishi_tgs_set_realm (Shishi_tgs * tgs, const char *realm); extern int shishi_tgs_set_realmserver (Shishi_tgs * tgs, const char *realm, const char *server); /* kdcreq.c */ extern int shishi_kdcreq (Shishi * handle, char *realm, char *service, Shishi_asn1 * req); extern Shishi_asn1 shishi_asreq (Shishi * handle); extern Shishi_asn1 shishi_asreq_rsc (Shishi * handle, char *realm, char *server, char *client); extern Shishi_asn1 shishi_tgsreq (Shishi * handle); extern Shishi_asn1 shishi_tgsreq_rst (Shishi * handle, char *realm, char *server, Shishi_tkt * tkt); extern int shishi_kdcreq_save (Shishi * handle, FILE * fh, Shishi_asn1 kdcreq); extern int shishi_kdcreq_print (Shishi * handle, FILE * fh, Shishi_asn1 kdcreq); extern int shishi_kdcreq_to_file (Shishi * handle, Shishi_asn1 kdcreq, int filetype, const char *filename); extern int shishi_kdcreq_parse (Shishi * handle, FILE * fh, Shishi_asn1 * kdcreq); extern int shishi_kdcreq_read (Shishi * handle, FILE * fh, Shishi_asn1 * kdcreq); extern int shishi_kdcreq_from_file (Shishi * handle, Shishi_asn1 * kdcreq, int filetype, const char *filename); extern int shishi_asreq_clientrealm (Shishi * handle, Shishi_asn1 asreq, char **client, size_t *clientlen); extern int shishi_kdcreq_nonce (Shishi * handle, Shishi_asn1 kdcreq, uint32_t * nonce); extern int shishi_kdcreq_nonce_set (Shishi * handle, Shishi_asn1 kdcreq, uint32_t nonce); extern int shishi_kdcreq_client (Shishi * handle, Shishi_asn1 kdcreq, char **client, size_t *clientlen); extern int shishi_kdcreq_set_cname (Shishi * handle, Shishi_asn1 kdcreq, Shishi_name_type name_type, const char *principal); extern int shishi_kdcreq_server (Shishi * handle, Shishi_asn1 kdcreq, char **server, size_t *serverlen); extern int shishi_kdcreq_set_sname (Shishi * handle, Shishi_asn1 kdcreq, Shishi_name_type name_type, const char *sname[]); extern int shishi_kdcreq_realm (Shishi * handle, Shishi_asn1 kdcreq, char **realm, size_t *realmlen); extern int shishi_kdcreq_realm_get (Shishi * handle, Shishi_asn1 kdcreq, char **realm, size_t *realmlen); extern int shishi_kdcreq_set_realm (Shishi * handle, Shishi_asn1 kdcreq, const char *realm); extern int shishi_kdcreq_set_server (Shishi * handle, Shishi_asn1 req, const char *service); extern int shishi_kdcreq_set_realmserver (Shishi * handle, Shishi_asn1 req, char *realm, char *service); extern int shishi_kdcreq_till (Shishi * handle, Shishi_asn1 kdcreq, char **till, size_t *tilllen); extern time_t shishi_kdcreq_tillc (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_etype (Shishi * handle, Shishi_asn1 kdcreq, int32_t * etype, int netype); extern int shishi_kdcreq_set_etype (Shishi * handle, Shishi_asn1 kdcreq, int32_t * etype, int netype); extern int shishi_kdcreq_options (Shishi * handle, Shishi_asn1 kdcreq, uint32_t * flags); extern int shishi_kdcreq_forwardable_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_forwarded_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_proxiable_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_proxy_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_allow_postdate_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_postdated_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_renewable_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_disable_transited_check_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_renewable_ok_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_enc_tkt_in_skey_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_renew_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_validate_p (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_options_set (Shishi * handle, Shishi_asn1 kdcreq, uint32_t options); extern int shishi_kdcreq_options_add (Shishi * handle, Shishi_asn1 kdcreq, uint32_t option); extern int shishi_kdcreq_clear_padata (Shishi * handle, Shishi_asn1 kdcreq); extern int shishi_kdcreq_get_padata (Shishi * handle, Shishi_asn1 kdcreq, Shishi_padata_type padatatype, char **out, size_t *outlen); extern int shishi_kdcreq_get_padata_tgs (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * apreq); extern int shishi_kdcreq_add_padata (Shishi * handle, Shishi_asn1 kdcreq, int padatatype, const char *data, size_t datalen); extern int shishi_kdcreq_add_padata_tgs (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 apreq); extern int shishi_kdcreq_add_padata_preauth (Shishi * handle, Shishi_asn1 kdcreq, Shishi_key * key); extern int shishi_kdcreq_build (Shishi * handle, Shishi_asn1 kdcreq); /* kdc.c */ extern int shishi_as_derive_salt (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep, char **salt, size_t *saltlen); extern int shishi_tgs_process (Shishi * handle, Shishi_asn1 tgsreq, Shishi_asn1 tgsrep, Shishi_asn1 authenticator, Shishi_asn1 oldenckdcreppart, Shishi_asn1 * enckdcreppart); extern int shishi_as_process (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep, const char *string, Shishi_asn1 * enckdcreppart); extern int shishi_kdc_process (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 * enckdcreppart); extern int shishi_kdcreq_sendrecv (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * kdcrep); extern int shishi_kdcreq_sendrecv_hint (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * kdcrep, Shishi_tkts_hint * hint); extern int shishi_kdc_copy_crealm (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 encticketpart); extern int shishi_as_check_crealm (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep); extern int shishi_kdc_copy_cname (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 encticketpart); extern int shishi_as_check_cname (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep); extern int shishi_kdc_copy_nonce (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 enckdcreppart); extern int shishi_kdc_check_nonce (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 enckdcreppart); /* kdcrep.c */ extern Shishi_asn1 shishi_asrep (Shishi * handle); extern Shishi_asn1 shishi_tgsrep (Shishi * handle); extern int shishi_kdcrep_save (Shishi * handle, FILE * fh, Shishi_asn1 kdcrep); extern int shishi_kdcrep_print (Shishi * handle, FILE * fh, Shishi_asn1 kdcrep); extern int shishi_kdcrep_to_file (Shishi * handle, Shishi_asn1 kdcrep, int filetype, const char *filename); extern int shishi_kdcrep_parse (Shishi * handle, FILE * fh, Shishi_asn1 * kdcrep); extern int shishi_kdcrep_read (Shishi * handle, FILE * fh, Shishi_asn1 * kdcrep); extern int shishi_kdcrep_from_file (Shishi * handle, Shishi_asn1 * kdcrep, int filetype, const char *filename); extern int shishi_kdcrep_clear_padata (Shishi * handle, Shishi_asn1 kdcrep); extern int shishi_kdcrep_get_enc_part_etype (Shishi * handle, Shishi_asn1 kdcrep, int32_t * etype); extern int shishi_kdcrep_add_enc_part (Shishi * handle, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 enckdcreppart); extern int shishi_kdcrep_get_ticket (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 * ticket); extern int shishi_kdcrep_set_ticket (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 ticket); extern int shishi_kdcrep_crealm_set (Shishi * handle, Shishi_asn1 kdcrep, const char *crealm); extern int shishi_kdcrep_cname_set (Shishi * handle, Shishi_asn1 kdcrep, Shishi_name_type name_type, const char *cname[]); extern int shishi_kdcrep_client_set (Shishi * handle, Shishi_asn1 kdcrep, const char *client); extern int shishi_kdcrep_crealmserver_set (Shishi * handle, Shishi_asn1 kdcrep, const char *crealm, const char *client); extern int shishi_kdcrep_set_enc_part (Shishi * handle, Shishi_asn1 kdcrep, int32_t etype, uint32_t kvno, const char *buf, size_t buflen); extern int shishi_kdcrep_decrypt (Shishi * handle, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 * enckdcreppart); /* enckdcreppart.c */ extern Shishi_asn1 shishi_enckdcreppart (Shishi * handle); extern Shishi_asn1 shishi_encasreppart (Shishi * handle); extern int shishi_enckdcreppart_get_key (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_key ** key); extern int shishi_enckdcreppart_key_set (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_key * key); extern int shishi_enckdcreppart_nonce_set (Shishi * handle, Shishi_asn1 enckdcreppart, uint32_t nonce); extern int shishi_enckdcreppart_flags_set (Shishi * handle, Shishi_asn1 enckdcreppart, int flags); extern int shishi_enckdcreppart_authtime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *authtime); extern int shishi_enckdcreppart_starttime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *starttime); extern int shishi_enckdcreppart_endtime_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *endtime); extern int shishi_enckdcreppart_renew_till_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *renew_till); extern int shishi_enckdcreppart_srealm_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *srealm); extern int shishi_enckdcreppart_sname_set (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_name_type name_type, char *sname[]); extern int shishi_enckdcreppart_server_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *server); extern int shishi_enckdcreppart_srealmserver_set (Shishi * handle, Shishi_asn1 enckdcreppart, const char *srealm, const char *server); extern int shishi_enckdcreppart_populate_encticketpart (Shishi * handle, Shishi_asn1 enckdcreppart, Shishi_asn1 encticketpart); /* krberror.c */ extern Shishi_asn1 shishi_krberror (Shishi * handle); extern int shishi_krberror_print (Shishi * handle, FILE * fh, Shishi_asn1 krberror); extern int shishi_krberror_save (Shishi * handle, FILE * fh, Shishi_asn1 krberror); extern int shishi_krberror_to_file (Shishi * handle, Shishi_asn1 krberror, int filetype, const char *filename); extern int shishi_krberror_parse (Shishi * handle, FILE * fh, Shishi_asn1 * krberror); extern int shishi_krberror_read (Shishi * handle, FILE * fh, Shishi_asn1 * krberror); extern int shishi_krberror_from_file (Shishi * handle, Shishi_asn1 * krberror, int filetype, const char *filename); extern int shishi_krberror_build (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_der (Shishi * handle, Shishi_asn1 krberror, char **out, size_t *outlen); extern int shishi_krberror_crealm (Shishi * handle, Shishi_asn1 krberror, char **realm, size_t *realmlen); extern int shishi_krberror_remove_crealm (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_set_crealm (Shishi * handle, Shishi_asn1 krberror, const char *crealm); extern int shishi_krberror_client (Shishi * handle, Shishi_asn1 krberror, char **client, size_t *clientlen); extern int shishi_krberror_set_cname (Shishi * handle, Shishi_asn1 krberror, Shishi_name_type name_type, const char *cname[]); extern int shishi_krberror_remove_cname (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_client_set (Shishi * handle, Shishi_asn1 krberror, const char *client); extern int shishi_krberror_realm (Shishi * handle, Shishi_asn1 krberror, char **realm, size_t *realmlen); extern int shishi_krberror_set_realm (Shishi * handle, Shishi_asn1 krberror, const char *realm); extern int shishi_krberror_server (Shishi * handle, Shishi_asn1 krberror, char **server, size_t *serverlen); extern int shishi_krberror_remove_sname (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_set_sname (Shishi * handle, Shishi_asn1 krberror, Shishi_name_type name_type, const char *sname[]); extern int shishi_krberror_server_set (Shishi * handle, Shishi_asn1 krberror, const char *server); extern int shishi_krberror_ctime (Shishi * handle, Shishi_asn1 krberror, char **t); extern int shishi_krberror_ctime_set (Shishi * handle, Shishi_asn1 krberror, const char *t); extern int shishi_krberror_remove_ctime (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_cusec (Shishi * handle, Shishi_asn1 krberror, uint32_t * cusec); extern int shishi_krberror_cusec_set (Shishi * handle, Shishi_asn1 krberror, uint32_t cusec); extern int shishi_krberror_remove_cusec (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_stime (Shishi * handle, Shishi_asn1 krberror, char **t); extern int shishi_krberror_stime_set (Shishi * handle, Shishi_asn1 krberror, const char *t); extern int shishi_krberror_susec (Shishi * handle, Shishi_asn1 krberror, uint32_t * susec); extern int shishi_krberror_susec_set (Shishi * handle, Shishi_asn1 krberror, uint32_t susec); extern int shishi_krberror_errorcode_set (Shishi * handle, Shishi_asn1 krberror, int errorcode); extern int shishi_krberror_etext (Shishi * handle, Shishi_asn1 krberror, char **etext, size_t *etextlen); extern int shishi_krberror_set_etext (Shishi * handle, Shishi_asn1 krberror, const char *etext); extern int shishi_krberror_remove_etext (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_edata (Shishi * handle, Shishi_asn1 krberror, char **edata, size_t *edatalen); extern int shishi_krberror_set_edata (Shishi * handle, Shishi_asn1 krberror, const char *edata); extern int shishi_krberror_remove_edata (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_errorcode (Shishi * handle, Shishi_asn1 krberror, int *errorcode); extern int shishi_krberror_errorcode_fast (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_pretty_print (Shishi * handle, FILE * fh, Shishi_asn1 krberror); extern const char *shishi_krberror_errorcode_message (Shishi * handle, int errorcode); extern const char *shishi_krberror_message (Shishi * handle, Shishi_asn1 krberror); extern int shishi_krberror_methoddata (Shishi * handle, Shishi_asn1 krberror, Shishi_asn1 * methoddata); /* gztime.c */ extern const char *shishi_generalize_time (Shishi * handle, time_t t); extern const char *shishi_generalize_now (Shishi * handle); extern time_t shishi_generalize_ctime (Shishi * handle, const char *t); extern int shishi_time (Shishi * handle, Shishi_asn1 node, const char *field, char **t); extern int shishi_ctime (Shishi * handle, Shishi_asn1 node, const char *field, time_t * t); /* nettle.c, libgcrypt.c, ... */ extern int shishi_randomize (Shishi * handle, int strong, void *data, size_t datalen); extern int shishi_crc (Shishi * handle, const char *in, size_t inlen, char *out[4]); extern int shishi_md4 (Shishi * handle, const char *in, size_t inlen, char *out[16]); extern int shishi_md5 (Shishi * handle, const char *in, size_t inlen, char *out[16]); extern int shishi_hmac_md5 (Shishi * handle, const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[16]); extern int shishi_hmac_sha1 (Shishi * handle, const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[20]); extern int shishi_des_cbc_mac (Shishi * handle, const char key[8], const char iv[8], const char *in, size_t inlen, char *out[8]); extern int shishi_arcfour (Shishi * handle, int decryptp, const char *key, size_t keylen, const char iv[258], char *ivout[258], const char *in, size_t inlen, char **out); extern int shishi_des (Shishi * handle, int decryptp, const char key[8], const char iv[8], char *ivout[8], const char *in, size_t inlen, char **out); extern int shishi_3des (Shishi * handle, int decryptp, const char key[24], const char iv[8], char *ivout[8], const char *in, size_t inlen, char **out); extern int shishi_aes_cts (Shishi * handle, int decryptp, const char *key, size_t keylen, const char iv[16], char *ivout[16], const char *in, size_t inlen, char **out); /* crypto.c */ extern int shishi_cipher_supported_p (int type); extern const char *shishi_cipher_name (int type); extern int shishi_cipher_blocksize (int type); extern int shishi_cipher_confoundersize (int type); extern size_t shishi_cipher_keylen (int type); extern size_t shishi_cipher_randomlen (int type); extern int shishi_cipher_defaultcksumtype (int32_t type); extern int shishi_cipher_parse (const char *cipher); extern int shishi_checksum_supported_p (int32_t type); extern const char *shishi_checksum_name (int32_t type); extern size_t shishi_checksum_cksumlen (int32_t type); extern int shishi_checksum_parse (const char *checksum); extern int shishi_string_to_key (Shishi * handle, int32_t keytype, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey); extern int shishi_random_to_key (Shishi * handle, int32_t keytype, const char *rnd, size_t rndlen, Shishi_key * outkey); extern int shishi_encrypt_ivupdate_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_encrypt_iv_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_encrypt_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_encrypt_ivupdate (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_encrypt_iv (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_encrypt (Shishi * handle, Shishi_key * key, int keyusage, char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt_ivupdate_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt_iv_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt_ivupdate (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt_iv (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_checksum (Shishi * handle, Shishi_key * key, int keyusage, int32_t cksumtype, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_verify (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, const char *cksum, size_t cksumlen); extern int shishi_dk (Shishi * handle, Shishi_key * key, const char *prfconstant, size_t prfconstantlen, Shishi_key * derivedkey); extern int shishi_dr (Shishi * handle, Shishi_key * key, const char *prfconstant, size_t prfconstantlen, char *derivedrandom, size_t derivedrandomlen); extern int shishi_n_fold (Shishi * handle, const char *in, size_t inlen, char *out, size_t outlen); extern int shishi_pbkdf2_sha1 (Shishi * handle, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, unsigned int dkLen, char *DK); /* crypto-ctx.c */ extern Shishi_crypto *shishi_crypto (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen); extern void shishi_crypto_close (Shishi_crypto * ctx); extern int shishi_crypto_encrypt (Shishi_crypto * ctx, const char *in, size_t inlen, char **out, size_t *outlen); extern int shishi_crypto_decrypt (Shishi_crypto * ctx, const char *in, size_t inlen, char **out, size_t *outlen); /* version.c */ extern const char *shishi_check_version (const char *req_version); /* password.c */ typedef int (*shishi_prompt_password_func) (Shishi * handle, char **s, const char *format, va_list ap); extern void shishi_prompt_password_callback_set (Shishi * handle, shishi_prompt_password_func cb); extern shishi_prompt_password_func shishi_prompt_password_callback_get (Shishi * handle); extern int shishi_prompt_password (Shishi * handle, char **s, const char *format, ...); /* asn1.c */ extern int shishi_asn1_number_of_elements (Shishi * handle, Shishi_asn1 node, const char *field, size_t *n); extern int shishi_asn1_empty_p (Shishi * handle, Shishi_asn1 node, const char *field); extern int shishi_asn1_read (Shishi * handle, Shishi_asn1 node, const char *field, char **data, size_t *datalen); extern int shishi_asn1_read_inline (Shishi * handle, Shishi_asn1 node, const char *field, char *data, size_t *datalen); extern int shishi_asn1_read_integer (Shishi * handle, Shishi_asn1 node, const char *field, int *i); extern int shishi_asn1_read_int32 (Shishi * handle, Shishi_asn1 node, const char *field, int32_t * i); extern int shishi_asn1_read_uint32 (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t * i); extern int shishi_asn1_read_bitstring (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t * flags); extern int shishi_asn1_read_optional (Shishi * handle, Shishi_asn1 node, const char *field, char **data, size_t *datalen); extern int shishi_asn1_write (Shishi * handle, Shishi_asn1 node, const char *field, const char *data, size_t datalen); extern int shishi_asn1_write_integer (Shishi * handle, Shishi_asn1 node, const char *field, int n); extern int shishi_asn1_write_int32 (Shishi * handle, Shishi_asn1 node, const char *field, int32_t n); extern int shishi_asn1_write_uint32 (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t n); extern int shishi_asn1_write_bitstring (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t flags); extern void shishi_asn1_done (Shishi * handle, Shishi_asn1 node); extern Shishi_asn1 shishi_asn1_pa_enc_ts_enc (Shishi * handle); extern Shishi_asn1 shishi_asn1_encrypteddata (Shishi * handle); extern Shishi_asn1 shishi_asn1_padata (Shishi * handle); extern Shishi_asn1 shishi_asn1_methoddata (Shishi * handle); extern Shishi_asn1 shishi_asn1_etype_info (Shishi * handle); extern Shishi_asn1 shishi_asn1_etype_info2 (Shishi * handle); extern Shishi_asn1 shishi_asn1_asreq (Shishi * handle); extern Shishi_asn1 shishi_asn1_asrep (Shishi * handle); extern Shishi_asn1 shishi_asn1_tgsreq (Shishi * handle); extern Shishi_asn1 shishi_asn1_tgsrep (Shishi * handle); extern Shishi_asn1 shishi_asn1_apreq (Shishi * handle); extern Shishi_asn1 shishi_asn1_aprep (Shishi * handle); extern Shishi_asn1 shishi_asn1_ticket (Shishi * handle); extern Shishi_asn1 shishi_asn1_encapreppart (Shishi * handle); extern Shishi_asn1 shishi_asn1_encticketpart (Shishi * handle); extern Shishi_asn1 shishi_asn1_authenticator (Shishi * handle); extern Shishi_asn1 shishi_asn1_enckdcreppart (Shishi * handle); extern Shishi_asn1 shishi_asn1_encasreppart (Shishi * handle); extern Shishi_asn1 shishi_asn1_krberror (Shishi * handle); extern Shishi_asn1 shishi_asn1_krbsafe (Shishi * handle); extern Shishi_asn1 shishi_asn1_priv (Shishi * handle); extern Shishi_asn1 shishi_asn1_encprivpart (Shishi * handle); extern int shishi_asn1_to_der (Shishi * handle, Shishi_asn1 node, char **der, size_t *len); extern int shishi_asn1_to_der_field (Shishi * handle, Shishi_asn1 node, const char *field, char **der, size_t *len); extern Shishi_msgtype shishi_asn1_msgtype (Shishi * handle, Shishi_asn1 node); extern Shishi_msgtype shishi_der_msgtype (Shishi * handle, const char *der, size_t derlen); extern void shishi_asn1_print (Shishi * handle, Shishi_asn1 node, FILE * fh); extern Shishi_asn1 shishi_der2asn1 (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_padata (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_methoddata (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_etype_info (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_etype_info2 (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_ticket (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_encticketpart (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_asreq (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_tgsreq (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_asrep (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_tgsrep (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_kdcrep (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_kdcreq (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_apreq (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_aprep (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_authenticator (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_krberror (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_krbsafe (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_priv (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_encasreppart (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_enctgsreppart (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_enckdcreppart (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_encapreppart (Shishi * handle, const char *der, size_t derlen); extern Shishi_asn1 shishi_der2asn1_encprivpart (Shishi * handle, const char *der, size_t derlen); /* ap.c */ extern int shishi_ap (Shishi * handle, Shishi_ap ** ap); extern int shishi_ap_etype (Shishi * handle, Shishi_ap ** ap, int etype); extern int shishi_ap_nosubkey (Shishi * handle, Shishi_ap ** ap); extern void shishi_ap_done (Shishi_ap * ap); extern int shishi_ap_set_tktoptions (Shishi_ap * ap, Shishi_tkt * tkt, int options); extern int shishi_ap_tktoptions (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options); extern int shishi_ap_etype_tktoptionsdata (Shishi * handle, Shishi_ap ** ap, int32_t etype, Shishi_tkt * tkt, int options, const char *data, size_t len); extern int shishi_ap_set_tktoptionsdata (Shishi_ap * ap, Shishi_tkt * tkt, int options, const char *data, size_t len); extern int shishi_ap_tktoptionsdata (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, const char *data, size_t len); extern int shishi_ap_set_tktoptionsraw (Shishi_ap * ap, Shishi_tkt * tkt, int options, int32_t cksumtype, const char *data, size_t len); extern int shishi_ap_tktoptionsraw (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, int32_t cksumtype, const char *data, size_t len); extern int shishi_ap_set_tktoptionsasn1usage (Shishi_ap * ap, Shishi_tkt * tkt, int options, Shishi_asn1 node, const char *field, int authenticatorcksumkeyusage, int authenticatorkeyusage); extern int shishi_ap_tktoptionsasn1usage (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, Shishi_asn1 node, const char *field, int authenticatorcksumkeyusage, int authenticatorkeyusage); extern Shishi_tkt *shishi_ap_tkt (Shishi_ap * ap); extern void shishi_ap_tkt_set (Shishi_ap * ap, Shishi_tkt * tkt); extern int shishi_ap_authenticator_cksumdata (Shishi_ap * ap, char *out, size_t *len); extern void shishi_ap_authenticator_cksumdata_set (Shishi_ap * ap, const char *authenticatorcksumdata, size_t authenticatorcksumdatalen); extern void shishi_ap_authenticator_cksumraw_set (Shishi_ap * ap, int32_t authenticatorcksumtype, const char *authenticatorcksumraw, size_t authenticatorcksumrawlen); extern int32_t shishi_ap_authenticator_cksumtype (Shishi_ap * ap); extern void shishi_ap_authenticator_cksumtype_set (Shishi_ap * ap, int32_t cksumtype); extern Shishi_asn1 shishi_ap_authenticator (Shishi_ap * ap); extern void shishi_ap_authenticator_set (Shishi_ap * ap, Shishi_asn1 authenticator); extern Shishi_asn1 shishi_ap_req (Shishi_ap * ap); extern void shishi_ap_req_set (Shishi_ap * ap, Shishi_asn1 apreq); extern int shishi_ap_req_der (Shishi_ap * ap, char **out, size_t *outlen); extern int shishi_ap_req_der_set (Shishi_ap * ap, char *der, size_t derlen); extern int shishi_ap_req_build (Shishi_ap * ap); extern int shishi_ap_req_asn1 (Shishi_ap * ap, Shishi_asn1 * apreq); extern Shishi_key *shishi_ap_key (Shishi_ap * ap); extern int shishi_ap_req_decode (Shishi_ap * ap); extern int shishi_ap_req_process (Shishi_ap * ap, Shishi_key * key); extern int shishi_ap_req_process_keyusage (Shishi_ap * ap, Shishi_key * key, int32_t keyusage); extern Shishi_asn1 shishi_ap_rep (Shishi_ap * ap); extern void shishi_ap_rep_set (Shishi_ap * ap, Shishi_asn1 aprep); extern int shishi_ap_rep_der (Shishi_ap * ap, char **out, size_t *outlen); extern int shishi_ap_rep_der_set (Shishi_ap * ap, char *der, size_t derlen); extern int shishi_ap_rep_verify (Shishi_ap * ap); extern int shishi_ap_rep_verify_der (Shishi_ap * ap, char *der, size_t derlen); extern int shishi_ap_rep_verify_asn1 (Shishi_ap * ap, Shishi_asn1 aprep); extern int shishi_ap_rep_asn1 (Shishi_ap * ap, Shishi_asn1 * aprep); extern int shishi_ap_rep_build (Shishi_ap * ap); extern Shishi_asn1 shishi_ap_encapreppart (Shishi_ap * ap); extern void shishi_ap_encapreppart_set (Shishi_ap * ap, Shishi_asn1 encapreppart); extern const char *shishi_ap_option2string (Shishi_apoptions option); extern Shishi_apoptions shishi_ap_string2option (const char *str); /* key.c */ extern const char *shishi_key_principal (const Shishi_key * key); extern void shishi_key_principal_set (Shishi_key * key, const char *principal); extern const char *shishi_key_realm (const Shishi_key * key); extern void shishi_key_realm_set (Shishi_key * key, const char *realm); extern int shishi_key_type (const Shishi_key * key); extern void shishi_key_type_set (Shishi_key * key, int32_t type); extern const char *shishi_key_value (const Shishi_key * key); extern void shishi_key_value_set (Shishi_key * key, const char *value); extern const char *shishi_key_name (Shishi_key * key); extern size_t shishi_key_length (const Shishi_key * key); extern uint32_t shishi_key_version (const Shishi_key * key); extern void shishi_key_version_set (Shishi_key * key, uint32_t kvno); extern time_t shishi_key_timestamp (const Shishi_key * key); extern void shishi_key_timestamp_set (Shishi_key * key, time_t timestamp); extern int shishi_key (Shishi * handle, Shishi_key ** key); extern void shishi_key_done (Shishi_key * key); extern void shishi_key_copy (Shishi_key * dstkey, Shishi_key * srckey); extern int shishi_key_print (Shishi * handle, FILE * fh, const Shishi_key * key); extern int shishi_key_to_file (Shishi * handle, const char *filename, Shishi_key * key); extern int shishi_key_parse (Shishi * handle, FILE * fh, Shishi_key ** key); extern int shishi_key_random (Shishi * handle, int32_t type, Shishi_key ** key); extern int shishi_key_from_value (Shishi * handle, int32_t type, const char *value, Shishi_key ** key); extern int shishi_key_from_base64 (Shishi * handle, int32_t type, const char *value, Shishi_key ** key); extern int shishi_key_from_random (Shishi * handle, int32_t type, const char *rnd, size_t rndlen, Shishi_key ** outkey); extern int shishi_key_from_string (Shishi * handle, int32_t type, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key ** outkey); extern int shishi_key_from_name (Shishi * handle, int32_t type, const char *name, const char *password, size_t passwordlen, const char *parameter, Shishi_key ** outkey); /* keys.c */ extern int shishi_keys (Shishi * handle, Shishi_keys ** keys); extern void shishi_keys_done (Shishi_keys ** keys); extern int shishi_keys_size (Shishi_keys * keys); extern const Shishi_key *shishi_keys_nth (Shishi_keys * keys, int keyno); extern void shishi_keys_remove (Shishi_keys * keys, int keyno); extern int shishi_keys_add (Shishi_keys * keys, Shishi_key * key); extern int shishi_keys_print (Shishi_keys * keys, FILE * fh); extern int shishi_keys_from_file (Shishi_keys * keys, const char *filename); extern int shishi_keys_to_file (Shishi * handle, const char *filename, Shishi_keys * keys); extern Shishi_key *shishi_keys_for_serverrealm_in_file (Shishi * handle, const char *filename, const char *server, const char *realm); extern Shishi_key *shishi_keys_for_server_in_file (Shishi * handle, const char *filename, const char *server); extern Shishi_key *shishi_keys_for_localservicerealm_in_file (Shishi * handle, const char *filename, const char *service, const char *realm); /* keytab.c */ extern int shishi_keys_add_keytab_mem (Shishi * handle, const char *data, size_t len, Shishi_keys * keys); extern int shishi_keys_add_keytab_file (Shishi * handle, const char *filename, Shishi_keys * keys); extern int shishi_keys_from_keytab_mem (Shishi * handle, const char *data, size_t len, Shishi_keys ** outkeys); extern int shishi_keys_from_keytab_file (Shishi * handle, const char *filename, Shishi_keys ** outkeys); extern int shishi_keys_to_keytab_mem (Shishi * handle, Shishi_keys * keys, char **out, size_t *len); extern int shishi_keys_to_keytab_file (Shishi * handle, Shishi_keys * keys, const char *filename); /* hostkeys.c */ extern const char *shishi_hostkeys_default_file (Shishi * handle); extern void shishi_hostkeys_default_file_set (Shishi * handle, const char *hostkeysfile); extern Shishi_key *shishi_hostkeys_for_server (Shishi * handle, const char *server); extern Shishi_key *shishi_hostkeys_for_serverrealm (Shishi * handle, const char *server, const char *realm); extern Shishi_key *shishi_hostkeys_for_localservicerealm (Shishi * handle, const char *service, const char *realm); extern Shishi_key *shishi_hostkeys_for_localservice (Shishi * handle, const char *service); /* encapreppart.c */ extern Shishi_asn1 shishi_encapreppart (Shishi * handle); extern int shishi_encapreppart_time_copy (Shishi * handle, Shishi_asn1 encapreppart, Shishi_asn1 authenticator); extern int shishi_encapreppart_ctime (Shishi * handle, Shishi_asn1 encapreppart, char **t); extern int shishi_encapreppart_ctime_set (Shishi * handle, Shishi_asn1 encapreppart, const char *t); extern int shishi_encapreppart_cusec_get (Shishi * handle, Shishi_asn1 encapreppart, uint32_t * cusec); extern int shishi_encapreppart_cusec_set (Shishi * handle, Shishi_asn1 encapreppart, uint32_t cusec); extern int shishi_encapreppart_print (Shishi * handle, FILE * fh, Shishi_asn1 encapreppart); extern int shishi_encapreppart_save (Shishi * handle, FILE * fh, Shishi_asn1 encapreppart); extern int shishi_encapreppart_to_file (Shishi * handle, Shishi_asn1 encapreppart, int filetype, const char *filename); extern int shishi_encapreppart_read (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart); extern int shishi_encapreppart_parse (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart); extern int shishi_encapreppart_from_file (Shishi * handle, Shishi_asn1 * encapreppart, int filetype, const char *filename); extern int shishi_encapreppart_get_key (Shishi * handle, Shishi_asn1 encapreppart, Shishi_key ** key); extern int shishi_encapreppart_seqnumber_get (Shishi * handle, Shishi_asn1 encapreppart, uint32_t * seqnumber); extern int shishi_encapreppart_seqnumber_remove (Shishi * handle, Shishi_asn1 encapreppart); extern int shishi_encapreppart_seqnumber_set (Shishi * handle, Shishi_asn1 encapreppart, uint32_t seqnumber); /* apreq.c */ extern Shishi_asn1 shishi_apreq (Shishi * handle); extern int shishi_apreq_parse (Shishi * handle, FILE * fh, Shishi_asn1 * apreq); extern int shishi_apreq_from_file (Shishi * handle, Shishi_asn1 * apreq, int filetype, const char *filename); extern int shishi_apreq_print (Shishi * handle, FILE * fh, Shishi_asn1 apreq); extern int shishi_apreq_to_file (Shishi * handle, Shishi_asn1 apreq, int filetype, const char *filename); extern int shishi_apreq_read (Shishi * handle, FILE * fh, Shishi_asn1 * apreq); extern int shishi_apreq_save (Shishi * handle, FILE * fh, Shishi_asn1 apreq); extern int shishi_apreq_set_ticket (Shishi * handle, Shishi_asn1 apreq, Shishi_asn1 ticket); extern int shishi_apreq_set_authenticator (Shishi * handle, Shishi_asn1 apreq, int32_t etype, uint32_t kvno, const char *buf, size_t buflen); extern int shishi_apreq_add_authenticator (Shishi * handle, Shishi_asn1 apreq, Shishi_key * key, int keyusage, Shishi_asn1 authenticator); extern int shishi_apreq_options (Shishi * handle, Shishi_asn1 apreq, uint32_t * flags); extern int shishi_apreq_use_session_key_p (Shishi * handle, Shishi_asn1 apreq); extern int shishi_apreq_mutual_required_p (Shishi * handle, Shishi_asn1 apreq); extern int shishi_apreq_options_set (Shishi * handle, Shishi_asn1 apreq, uint32_t options); extern int shishi_apreq_options_add (Shishi * handle, Shishi_asn1 apreq, uint32_t option); extern int shishi_apreq_options_remove (Shishi * handle, Shishi_asn1 apreq, uint32_t option); extern int shishi_apreq_get_ticket (Shishi * handle, Shishi_asn1 apreq, Shishi_asn1 * ticket); extern int shishi_apreq_get_authenticator_etype (Shishi * handle, Shishi_asn1 apreq, int32_t * etype); extern int shishi_apreq_decrypt (Shishi * handle, Shishi_asn1 apreq, Shishi_key * key, int keyusage, Shishi_asn1 * authenticator); /* aprep.c */ extern Shishi_asn1 shishi_aprep (Shishi * handle); extern int shishi_aprep_print (Shishi * handle, FILE * fh, Shishi_asn1 aprep); extern int shishi_aprep_save (Shishi * handle, FILE * fh, Shishi_asn1 aprep); extern int shishi_aprep_to_file (Shishi * handle, Shishi_asn1 aprep, int filetype, const char *filename); extern int shishi_aprep_read (Shishi * handle, FILE * fh, Shishi_asn1 * aprep); extern int shishi_aprep_parse (Shishi * handle, FILE * fh, Shishi_asn1 * aprep); extern int shishi_aprep_from_file (Shishi * handle, Shishi_asn1 * aprep, int filetype, const char *filename); extern int shishi_aprep_decrypt (Shishi * handle, Shishi_asn1 aprep, Shishi_key * key, int keyusage, Shishi_asn1 * encapreppart); extern int shishi_aprep_verify (Shishi * handle, Shishi_asn1 authenticator, Shishi_asn1 encapreppart); extern int shishi_aprep_enc_part_set (Shishi * handle, Shishi_asn1 aprep, int etype, const char *buf, size_t buflen); extern int shishi_aprep_enc_part_add (Shishi * handle, Shishi_asn1 aprep, Shishi_asn1 encticketpart, Shishi_asn1 encapreppart); extern int shishi_aprep_enc_part_make (Shishi * handle, Shishi_asn1 aprep, Shishi_asn1 encapreppart, Shishi_asn1 authenticator, Shishi_asn1 encticketpart); extern int shishi_aprep_get_enc_part_etype (Shishi * handle, Shishi_asn1 aprep, int32_t * etype); /* netio.c */ extern int shishi_kdc_sendrecv (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen); extern int shishi_kdc_sendrecv_hint (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen, Shishi_tkts_hint * hint); /* encticketpart.c */ extern Shishi_asn1 shishi_encticketpart (Shishi * handle); extern int shishi_encticketpart_key_set (Shishi * handle, Shishi_asn1 encticketpart, Shishi_key * key); extern int shishi_encticketpart_get_key (Shishi * handle, Shishi_asn1 encticketpart, Shishi_key ** key); extern int shishi_encticketpart_crealm (Shishi * handle, Shishi_asn1 encticketpart, char **crealm, size_t *crealmlen); extern int shishi_encticketpart_crealm_set (Shishi * handle, Shishi_asn1 encticketpart, const char *realm); extern int shishi_encticketpart_client (Shishi * handle, Shishi_asn1 encticketpart, char **client, size_t *clientlen); extern int shishi_encticketpart_clientrealm (Shishi * handle, Shishi_asn1 encticketpart, char **client, size_t *clientlen); extern int shishi_encticketpart_cname_set (Shishi * handle, Shishi_asn1 encticketpart, Shishi_name_type name_type, const char *principal); extern int shishi_encticketpart_print (Shishi * handle, FILE * fh, Shishi_asn1 encticketpart); extern int shishi_encticketpart_flags_set (Shishi * handle, Shishi_asn1 encticketpart, int flags); extern int shishi_encticketpart_transited_set (Shishi * handle, Shishi_asn1 encticketpart, int32_t trtype, const char *trdata, size_t trdatalen); extern int shishi_encticketpart_authtime_set (Shishi * handle, Shishi_asn1 encticketpart, const char *authtime); extern int shishi_encticketpart_endtime_set (Shishi * handle, Shishi_asn1 encticketpart, const char *endtime); extern int shishi_encticketpart_authtime (Shishi * handle, Shishi_asn1 encticketpart, char *authtime, size_t *authtimelen); extern time_t shishi_encticketpart_authctime (Shishi * handle, Shishi_asn1 encticketpart); /* safe.c */ extern int shishi_safe (Shishi * handle, Shishi_safe ** safe); extern void shishi_safe_done (Shishi_safe * safe); extern Shishi_key *shishi_safe_key (Shishi_safe * safe); extern void shishi_safe_key_set (Shishi_safe * safe, Shishi_key * key); extern Shishi_asn1 shishi_safe_safe (Shishi_safe * safe); extern void shishi_safe_safe_set (Shishi_safe * safe, Shishi_asn1 asn1safe); extern int shishi_safe_safe_der (Shishi_safe * safe, char **out, size_t *outlen); extern int shishi_safe_safe_der_set (Shishi_safe * safe, char *der, size_t derlen); extern int shishi_safe_print (Shishi * handle, FILE * fh, Shishi_asn1 safe); extern int shishi_safe_save (Shishi * handle, FILE * fh, Shishi_asn1 safe); extern int shishi_safe_to_file (Shishi * handle, Shishi_asn1 safe, int filetype, const char *filename); extern int shishi_safe_parse (Shishi * handle, FILE * fh, Shishi_asn1 * safe); extern int shishi_safe_read (Shishi * handle, FILE * fh, Shishi_asn1 * safe); extern int shishi_safe_from_file (Shishi * handle, Shishi_asn1 * safe, int filetype, const char *filename); extern int shishi_safe_cksum (Shishi * handle, Shishi_asn1 safe, int32_t * cksumtype, char **cksum, size_t *cksumlen); extern int shishi_safe_set_cksum (Shishi * handle, Shishi_asn1 safe, int32_t cksumtype, const char *cksum, size_t cksumlen); extern int shishi_safe_user_data (Shishi * handle, Shishi_asn1 safe, char **userdata, size_t *userdatalen); extern int shishi_safe_set_user_data (Shishi * handle, Shishi_asn1 safe, const char *userdata, size_t userdatalen); extern int shishi_safe_build (Shishi_safe * safe, Shishi_key * key); extern int shishi_safe_verify (Shishi_safe * safe, Shishi_key * key); /* priv.c */ extern int shishi_priv (Shishi * handle, Shishi_priv ** priv); extern void shishi_priv_done (Shishi_priv * priv); extern Shishi_key *shishi_priv_key (Shishi_priv * priv); extern void shishi_priv_key_set (Shishi_priv * priv, Shishi_key * key); extern Shishi_asn1 shishi_priv_priv (Shishi_priv * priv); extern void shishi_priv_priv_set (Shishi_priv * priv, Shishi_asn1 asn1priv); extern int shishi_priv_priv_der (Shishi_priv * priv, char **out, size_t *outlen); extern int shishi_priv_priv_der_set (Shishi_priv * priv, char *der, size_t derlen); extern Shishi_asn1 shishi_priv_encprivpart (Shishi_priv * priv); extern void shishi_priv_encprivpart_set (Shishi_priv * priv, Shishi_asn1 asn1encprivpart); extern int shishi_priv_encprivpart_der (Shishi_priv * priv, char **out, size_t *outlen); extern int shishi_priv_encprivpart_der_set (Shishi_priv * priv, char *der, size_t derlen); extern int shishi_priv_print (Shishi * handle, FILE * fh, Shishi_asn1 priv); extern int shishi_priv_save (Shishi * handle, FILE * fh, Shishi_asn1 priv); extern int shishi_priv_to_file (Shishi * handle, Shishi_asn1 priv, int filetype, const char *filename); extern int shishi_priv_parse (Shishi * handle, FILE * fh, Shishi_asn1 * priv); extern int shishi_priv_read (Shishi * handle, FILE * fh, Shishi_asn1 * priv); extern int shishi_priv_from_file (Shishi * handle, Shishi_asn1 * priv, int filetype, const char *filename); extern int shishi_priv_enc_part_etype (Shishi * handle, Shishi_asn1 priv, int32_t * etype); extern int shishi_priv_set_enc_part (Shishi * handle, Shishi_asn1 priv, int32_t etype, const char *encpart, size_t encpartlen); extern int shishi_encprivpart_user_data (Shishi * handle, Shishi_asn1 encprivpart, char **userdata, size_t *userdatalen); extern int shishi_encprivpart_set_user_data (Shishi * handle, Shishi_asn1 encprivpart, const char *userdata, size_t userdatalen); extern int shishi_priv_build (Shishi_priv * priv, Shishi_key * key); extern int shishi_priv_process (Shishi_priv * priv, Shishi_key * key); /* authorize.c */ extern int shishi_authorized_p (Shishi * handle, Shishi_tkt * tkt, const char *authzname); extern int shishi_authorization_parse (const char *authorization); extern int shishi_authorize_strcmp (Shishi * handle, const char *principal, const char *authzname); extern int shishi_authorize_k5login (Shishi * handle, const char *principal, const char *authzname); /* pki.c */ extern char *shishi_x509ca_default_file_guess (Shishi * handle); extern void shishi_x509ca_default_file_set (Shishi * handle, const char *x509cafile); extern const char *shishi_x509ca_default_file (Shishi * handle); extern char *shishi_x509cert_default_file_guess (Shishi * handle); extern void shishi_x509cert_default_file_set (Shishi * handle, const char *x509certfile); extern const char *shishi_x509cert_default_file (Shishi * handle); extern char *shishi_x509key_default_file_guess (Shishi * handle); extern void shishi_x509key_default_file_set (Shishi * handle, const char *x509keyfile); extern const char *shishi_x509key_default_file (Shishi * handle); /* utils.c */ extern time_t shishi_get_date (const char *p, const time_t * now); /* Ugly hack to avoid re-declaring shishi_xalloc_die twice. It is already declared in xalloc.h internally in Shishi.h. This is to keep being able to use -Wredundant-decls. */ # if defined SYSTEMCFGFILE && !defined XALLOC_H_ extern void shishi_xalloc_die (void) __attribute__((__noreturn__)); # endif /* resolv.c */ extern Shishi_dns shishi_resolv (const char *zone, uint16_t querytype); extern void shishi_resolv_free (Shishi_dns rrs); # ifdef __cplusplus } # endif #endif shishi-1.0.3/lib/crypto-des.c0000644000000000000000000005045414273601533012710 00000000000000/* crypto-des.c --- DES crypto functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "crypto.h" /* Get _shishi_escapeprint, etc. */ #include "utils.h" static int raw_des_checksum0 (Shishi * handle, int algo, const char *in, size_t inlen, char *out, size_t *outlen) { char *tmp; size_t tmplen; char *p; int blen = 8; int hlen = (algo == SHISHI_DES_CBC_CRC) ? 4 : 16; int rc; rc = shishi_randomize (handle, 0, out, blen); if (rc != SHISHI_OK) return rc; tmplen = blen + inlen; tmp = xmalloc (tmplen); memcpy (tmp, out, blen); memcpy (tmp + blen, in, inlen); switch (algo) { case SHISHI_DES_CBC_CRC: rc = shishi_crc (handle, tmp, tmplen, &p); break; case SHISHI_DES_CBC_MD4: rc = shishi_md4 (handle, tmp, tmplen, &p); break; case SHISHI_DES_CBC_MD5: rc = shishi_md5 (handle, tmp, tmplen, &p); break; default: shishi_error_printf (handle, "MD %d unknown in raw des checksum", algo); return SHISHI_CRYPTO_INTERNAL_ERROR; break; } memcpy (out + blen, p, hlen); *outlen = blen + hlen; return SHISHI_OK; } static int raw_des_checksum1 (Shishi * handle, int algo, const char *in, size_t inlen, char *out, size_t *outlen) { char *tmp; size_t tmplen; char *p; int blen = 8; int hlen = (algo == SHISHI_DES_CBC_CRC) ? 4 : 16; int rc; rc = shishi_randomize (handle, 0, out, blen); if (rc != SHISHI_OK) return rc; memset (out + blen, 0, hlen); tmplen = blen + hlen + inlen; tmp = xmalloc (tmplen); memcpy (tmp, out, blen + hlen); memcpy (tmp + blen + hlen, in, inlen); switch (algo) { case SHISHI_DES_CBC_CRC: rc = shishi_crc (handle, tmp, tmplen, &p); break; case SHISHI_DES_CBC_MD4: rc = shishi_md4 (handle, tmp, tmplen, &p); break; case SHISHI_DES_CBC_MD5: rc = shishi_md5 (handle, tmp, tmplen, &p); break; default: shishi_error_printf (handle, "MD %d unknown in raw des checksum", algo); return SHISHI_CRYPTO_INTERNAL_ERROR; break; } free (tmp); memcpy (out + blen, p, hlen); free (p); *outlen = blen + hlen; return SHISHI_OK; } static int des_encrypt_checksum (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen, int algo) { char cksum[8 + MAX_HASH_LEN]; char *inpad; char *pt; size_t inpadlen, padzerolen = 0, ptlen, cksumlen; int hlen = (algo == SHISHI_DES_CBC_CRC) ? 4 : 16; int res; if ((inlen + hlen) % 8) padzerolen = 8 - ((inlen + hlen) % 8); inpadlen = inlen + padzerolen; inpad = xmalloc (inpadlen); memcpy (inpad, in, inlen); memset (inpad + inlen, 0, padzerolen); res = raw_des_checksum1 (handle, algo, inpad, inpadlen, cksum, &cksumlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "DES checksum failed"); return res; } ptlen = inpadlen + cksumlen; pt = xmalloc (ptlen); memcpy (pt, cksum, cksumlen); memcpy (pt + cksumlen, inpad, inpadlen); free (inpad); res = _shishi_simplified_encrypt (handle, key, 0, iv, ivlen, ivout, ivoutlen, pt, ptlen, out, outlen); free (pt); if (res != SHISHI_OK) { shishi_error_printf (handle, "DES encrypt failed"); return res; } return SHISHI_OK; } static int des_crc_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_encrypt_checksum (handle, key, keyusage, shishi_key_value (key), shishi_key_length (key), ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_CRC); } static int des_md4_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_encrypt_checksum (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_MD4); } static int des_md5_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_encrypt_checksum (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_MD5); } static int des_none_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_encrypt (handle, key, 0, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int des_decrypt_verify (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen, int algo) { int res; char incoming[16]; char *computed; size_t hlen = (algo == SHISHI_DES_CBC_CRC) ? 4 : 16; res = _shishi_simplified_decrypt (handle, key, 0, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "decrypt failed"); return res; } if (VERBOSECRYPTONOISE (handle)) { puts ("verify decrypted:"); _shishi_escapeprint (*out, *outlen); _shishi_hexprint (*out, *outlen); } memcpy (incoming, *out + 8, hlen); memset (*out + 8, 0, hlen); if (VERBOSECRYPTONOISE (handle)) { puts ("cksum pt:"); _shishi_hexprint (*out, *outlen); } switch (algo) { case SHISHI_DES_CBC_CRC: shishi_crc (handle, *out, *outlen, &computed); break; case SHISHI_DES_CBC_MD4: shishi_md4 (handle, *out, *outlen, &computed); break; case SHISHI_DES_CBC_MD5: shishi_md5 (handle, *out, *outlen, &computed); break; default: shishi_error_printf (handle, "MD %d unknown in raw des verify", algo); return SHISHI_CRYPTO_ERROR; break; } if (VERBOSECRYPTONOISE (handle)) { puts ("DES verify:"); _shishi_hexprint (incoming, hlen); _shishi_hexprint (computed, hlen); } if (memcmp (computed, incoming, hlen) != 0) { shishi_error_printf (handle, "DES hash verify failed"); return SHISHI_CRYPTO_ERROR; } free (computed); memmove (*out, *out + 8 + hlen, *outlen - 8 - hlen); *outlen -= 8 + hlen; return SHISHI_OK; } static int des_crc_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_decrypt_verify (handle, key, keyusage, shishi_key_value (key), shishi_key_length (key), ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_CRC); } static int des_md4_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_decrypt_verify (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_MD4); } static int des_md5_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des_decrypt_verify (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, SHISHI_DES_CBC_MD5); } static int des_none_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_decrypt (handle, key, 0, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static void des_set_odd_key_parity (char key[8]) { int i, j; for (i = 0; i < 8; i++) { int n_set_bits = 0; for (j = 1; j < 8; j++) if (key[i] & (1 << j)) n_set_bits++; key[i] &= ~1; if ((n_set_bits % 2) == 0) key[i] |= 1; } } static char weak_des_keys[16][8] = { /* Weak keys */ "\x01\x01\x01\x01\x01\x01\x01\x01", "\x1F\x1F\x1F\x1F\x0E\x0E\x0E\x0E", "\xE0\xE0\xE0\xE0\xF1\xF1\xF1\xF1", "\xFE\xFE\xFE\xFE\xFE\xFE\xFE\xFE", /* Semiweak keys */ "\x01\xFE\x01\xFE\x01\xFE\x01\xFE", "\x1F\xE0\x1F\xE0\x0E\xF1\x0E\xF1", "\x01\xE0\x01\xE0\x01\xF1\x01\xF1", "\x1F\xFE\x1F\xFE\x0E\xFE\x0E\xFE", "\x01\x1F\x01\x1F\x01\x0E\x01\x0E", "\xE0\xFE\xE0\xFE\xF1\xFE\xF1\xFE", "\xFE\x01\xFE\x01\xFE\x01\xFE\x01", "\xE0\x1F\xE1\x0F\xF1\x0E\xF1\x0E", "\xE0\x01\xE0\x01\xF1\x01\xF1\x01", "\xFE\x1F\xFE\x1F\xFE\x0E\xFE\x0E", "\x1F\x01\x1F\x01\x0E\x01\x0E\x01", "\xFE\xE0\xFE\xE0\xFE\xF1\xFE\xF1" }; static void des_key_correction (Shishi * handle, char key[8]) { size_t i; /* fixparity(key); */ des_set_odd_key_parity (key); /* This loop could be replaced by optimized code (compare nettle), but let's not do that. */ for (i = 0; i < 16; i++) if (memcmp (key, weak_des_keys[i], 8) == 0) { if (VERBOSECRYPTONOISE (handle)) printf ("\t ;; WEAK KEY (corrected)\n"); key[7] ^= 0xF0; break; } } static int des_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { char tmp[MAX_RANDOM_LEN]; int keylen = shishi_cipher_keylen (shishi_key_type (outkey)); if (rndlen != shishi_key_length (outkey)) { shishi_error_printf (handle, "DES random to key caller error"); return SHISHI_CRYPTO_ERROR; } memcpy (tmp, rnd, keylen); des_set_odd_key_parity (tmp); shishi_key_value_set (outkey, tmp); return SHISHI_OK; } static int des_string_to_key (Shishi * handle, const char *string, size_t stringlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { char *s; int n_s; int odd; char tempkey[8]; char *p; int i, j; char temp, temp2; int res; if (VERBOSECRYPTO (handle)) { printf ("des_string_to_key (string, salt)\n"); printf ("\t ;; String:\n"); _shishi_escapeprint (string, stringlen); _shishi_hexprint (string, stringlen); printf ("\t ;; Salt:\n"); _shishi_escapeprint (salt, saltlen); _shishi_hexprint (salt, saltlen); } if (VERBOSECRYPTONOISE (handle)) { printf ("odd = 1;\n"); printf ("s = string | salt;\n"); printf ("tempstring = 0; /* 56-bit string */\n"); printf ("pad(s); /* with nulls to 8 byte boundary */\n"); } odd = 1; n_s = stringlen + saltlen; if ((n_s % 8) != 0) n_s += 8 - n_s % 8; s = xmalloc (n_s); memcpy (s, string, stringlen); if (saltlen > 0) memcpy (s + stringlen, salt, saltlen); memset (s + stringlen + saltlen, 0, n_s - stringlen - saltlen); memset (tempkey, 0, sizeof (tempkey)); /* tempkey = NULL; */ if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; s = pad(string|salt):\n"); _shishi_escapeprint (s, n_s); _shishi_hexprint (s, n_s); } for (i = 0; i < n_s / 8; i++) { if (VERBOSECRYPTONOISE (handle)) { printf ("for (8byteblock in s) {\n"); printf ("\t ;; loop iteration %d\n", i); printf ("\t ;; 8byteblock:\n"); _shishi_escapeprint (&s[i * 8], 8); _shishi_hexprint (&s[i * 8], 8); _shishi_binprint (&s[i * 8], 8); printf ("56bitstring = removeMSBits(8byteblock);\n"); } for (j = 0; j < 8; j++) s[i * 8 + j] = s[i * 8 + j] & ~0x80; if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; 56bitstring:\n"); _shishi_bin7print (&s[i * 8], 8); printf ("if (odd == 0) reverse(56bitstring);\t ;; odd=%d\n", odd); } if (odd == 0) { for (j = 0; j < 4; j++) { temp = s[i * 8 + j]; temp = ((temp >> 6) & 0x01) | ((temp >> 4) & 0x02) | ((temp >> 2) & 0x04) | ((temp) & 0x08) | ((temp << 2) & 0x10) | ((temp << 4) & 0x20) | ((temp << 6) & 0x40); temp2 = s[i * 8 + 7 - j]; temp2 = ((temp2 >> 6) & 0x01) | ((temp2 >> 4) & 0x02) | ((temp2 >> 2) & 0x04) | ((temp2) & 0x08) | ((temp2 << 2) & 0x10) | ((temp2 << 4) & 0x20) | ((temp2 << 6) & 0x40); s[i * 8 + j] = temp2; s[i * 8 + 7 - j] = temp; } if (VERBOSECRYPTONOISE (handle)) { printf ("reverse(56bitstring)\n"); printf ("\t ;; 56bitstring after reverse\n"); _shishi_bin7print (&s[i * 8], 8); } } odd = !odd; if (VERBOSECRYPTONOISE (handle)) { printf ("odd = ! odd\n"); printf ("tempstring = tempstring XOR 56bitstring;\n"); } /* tempkey = tempkey XOR 8byteblock; */ for (j = 0; j < 8; j++) tempkey[j] ^= s[i * 8 + j]; if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; tempstring\n"); _shishi_bin7print (tempkey, 8); } } for (j = 0; j < 8; j++) tempkey[j] = tempkey[j] << 1; if (VERBOSECRYPTONOISE (handle)) { printf ("for (8byteblock in s) {\n"); printf ("}\n"); printf ("\t ;; for loop terminated\n"); printf ("\t ;; tempstring as 64bitblock\n"); _shishi_hexprint (tempkey, 8); _shishi_binprint (tempkey, 8); printf ("/* add parity as low bit of each byte */\n"); printf ("tempkey = key_correction(add_parity_bits(tempstring));\n"); } des_key_correction (handle, tempkey); if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; tempkey\n"); _shishi_escapeprint (tempkey, 8); _shishi_hexprint (tempkey, 8); _shishi_binprint (tempkey, 8); printf ("key = key_correction(DES-CBC-check(s,tempkey));\n"); } memcpy (s, string, stringlen); if (saltlen > 0) memcpy (s + stringlen, salt, saltlen); memset (s + stringlen + saltlen, 0, n_s - stringlen - saltlen); res = shishi_des_cbc_mac (handle, tempkey, tempkey, s, n_s, &p); if (res != SHISHI_OK) return res; free (s); memcpy (tempkey, p, 8); free (p); des_key_correction (handle, tempkey); if (VERBOSECRYPTO (handle)) { printf ("\t ;; key\n"); _shishi_escapeprint (tempkey, 8); _shishi_hexprint (tempkey, 8); _shishi_binprint (tempkey, 8); } shishi_key_value_set (outkey, tempkey); return SHISHI_OK; } static int des_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen, int algo) { char cksum[8 + MAX_HASH_LEN]; size_t cksumlen; char *keyp; int i; int res; res = raw_des_checksum0 (handle, algo, in, inlen, cksum, &cksumlen); if (res != SHISHI_OK) { shishi_error_set (handle, "raw des checksum failed"); return res; } keyp = (char *) shishi_key_value (key); for (i = 0; i < 8; i++) keyp[i] ^= 0xF0; res = _shishi_simplified_dencrypt (handle, key, NULL, 0, NULL, NULL, cksum, cksumlen, out, outlen, 0); for (i = 0; i < 8; i++) keyp[i] ^= 0xF0; if (res != SHISHI_OK) { shishi_error_set (handle, "encrypt failed"); return res; } return SHISHI_OK; } static int des_crc_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return des_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen, SHISHI_DES_CBC_CRC); } static int des_md4_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return des_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen, SHISHI_DES_CBC_MD4); } static int des_md5_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return des_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen, SHISHI_DES_CBC_MD5); } static int gss_des_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { char *p; int rc; rc = shishi_md5 (handle, in, inlen, &p); if (rc != SHISHI_OK) return rc; *outlen = 8; rc = shishi_des_cbc_mac (handle, shishi_key_value (key), NULL, p, 16, out); free (p); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } static int des_verify (Shishi * handle, int algo, Shishi_key * key, const char *in, size_t inlen, const char *cksum, size_t cksumlen) { char *out; size_t outlen; char *md; size_t tmplen; char *tmp; char *keyp; size_t i; int res; if (cksumlen != 8 + 16) return SHISHI_VERIFY_FAILED; /* * get_mic des-cbc(key XOR 0xF0F0F0F0F0F0F0F0, * conf | rsa-md5(conf | msg)) * verify_mic decrypt and verify rsa-md5 checksum */ keyp = (char *) shishi_key_value (key); for (i = 0; i < 8; i++) keyp[i] ^= 0xF0; res = _shishi_simplified_decrypt (handle, key, 0, NULL, 0, NULL, NULL, cksum, cksumlen, &out, &outlen); for (i = 0; i < 8; i++) keyp[i] ^= 0xF0; if (res != SHISHI_OK) { shishi_error_set (handle, "decrypt failed"); return res; } tmplen = 8 + inlen; tmp = xmalloc (tmplen); memcpy (tmp, out, 8); memcpy (tmp + 8, in, inlen); switch (algo) { case SHISHI_RSA_MD4_DES: res = shishi_md4 (handle, tmp, tmplen, &md); break; case SHISHI_RSA_MD5_DES: res = shishi_md5 (handle, tmp, tmplen, &md); break; default: res = SHISHI_CRYPTO_ERROR; } if (res != SHISHI_OK) { shishi_error_printf (handle, "DES verify MD error"); return res; } if (memcmp (out + 8, md, 16) != 0) return SHISHI_VERIFY_FAILED; return SHISHI_OK; } static int des_md4_verify (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, const char *cksum, size_t cksumlen) { return des_verify (handle, SHISHI_RSA_MD4_DES, key, in, inlen, cksum, cksumlen); } static int des_md5_verify (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, const char *cksum, size_t cksumlen) { return des_verify (handle, SHISHI_RSA_MD5_DES, key, in, inlen, cksum, cksumlen); } cipherinfo des_cbc_crc_info = { SHISHI_DES_CBC_CRC, "des-cbc-crc", 8, 8, 8, 8, SHISHI_CRC32, des_random_to_key, des_string_to_key, des_crc_encrypt, des_crc_decrypt }; cipherinfo des_cbc_md4_info = { SHISHI_DES_CBC_MD4, "des-cbc-md4", 8, 8, 8, 8, SHISHI_RSA_MD4_DES, des_random_to_key, des_string_to_key, des_md4_encrypt, des_md4_decrypt }; cipherinfo des_cbc_md5_info = { SHISHI_DES_CBC_MD5, "des-cbc-md5", 8, 8, 8, 8, SHISHI_RSA_MD5_DES, des_random_to_key, des_string_to_key, des_md5_encrypt, des_md5_decrypt }; cipherinfo des_cbc_none_info = { SHISHI_DES_CBC_NONE, "des-cbc-none", 8, 8, 8, 8, SHISHI_RSA_MD5_DES, des_random_to_key, des_string_to_key, des_none_encrypt, des_none_decrypt }; checksuminfo crc32_info = { SHISHI_CRC32, "crc32", 4, des_crc_checksum, NULL }; checksuminfo md4_des_info = { SHISHI_RSA_MD4_DES, "rsa-md4-des", 24, des_md4_checksum, des_md4_verify }; checksuminfo md5_des_info = { SHISHI_RSA_MD5_DES, "rsa-md5-des", 24, des_md5_checksum, des_md5_verify }; checksuminfo md5_gss_info = { SHISHI_RSA_MD5_DES_GSS, "rsa-md5-des-gss", 8, gss_des_checksum, NULL }; shishi-1.0.3/lib/diskio.c0000644000000000000000000006221214273601533012074 00000000000000/* diskio.c --- Read and write data structures from disk. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* XXX oh, please, rewrite this file. */ #include "internal.h" #include "diskio.h" #define HEADERBEG "-----BEGIN SHISHI %s-----" #define HEADEREND "-----END SHISHI %s-----" #define BUFSIZE 5000 /* * Note to self: if you change any *print* function, remember to change * the corresponding *parse* function too. * */ static char * armor_data (const char *data, size_t len, const char *armortype, const char *armorheaders) { /* Must be a multiple of 4. */ #define WRAP_COL 64 char *armorbegin, *armorend; char *b64data, *out; size_t wrapb64len = BASE64_LENGTH (len) + BASE64_LENGTH (len) / WRAP_COL + 1; size_t i; b64data = xmalloc (wrapb64len + 1); for (i = 0; i <= BASE64_LENGTH (len) / WRAP_COL; i++) { size_t readpos = i * WRAP_COL * 3 / 4; size_t nread = WRAP_COL * 3 / 4; size_t storepos = i * WRAP_COL + i; size_t nstore = WRAP_COL; if (readpos >= len) break; if (readpos + nread >= len) { nread = len - readpos; nstore = BASE64_LENGTH (nread); } base64_encode (data + readpos, nread, b64data + storepos, nstore); b64data[storepos + nstore] = '\n'; b64data[storepos + nstore + 1] = '\0'; #if 0 printf ("alloc %d len %d curlen %d " "readpos %d nread %d storepos %d nstore %d\n", wrapb64len + 1, len, strlen (b64data), readpos, nread, storepos, nstore); #endif } armorbegin = xasprintf (HEADERBEG, armortype); armorend = xasprintf (HEADEREND, armortype); out = xasprintf ("%s\n%s%s%s%s\n", armorbegin, armorheaders ? armorheaders : "", armorheaders ? "\n" : "", b64data, armorend); free (b64data); free (armorend); free (armorbegin); return out; } static char * armor_asn1 (Shishi * handle, Shishi_asn1 asn1, const char *armortype, const char *armorheaders) { char *der; size_t derlen; char *out; int rc; rc = shishi_asn1_to_der (handle, asn1, &der, &derlen); if (rc != SHISHI_OK) return NULL; out = armor_data (der, derlen, armortype, armorheaders); free (der); return out; } int _shishi_print_armored_data (Shishi * handle, FILE * fh, Shishi_asn1 asn1, const char *asn1type, char *headers) { char *data = armor_asn1 (handle, asn1, asn1type, headers); shishi_asn1_print (handle, asn1, fh); fprintf (fh, "%s\n", data); free (data); return SHISHI_OK; } int _shishi_save_data (Shishi * handle, FILE * fh, Shishi_asn1 asn1, const char *asn1type) { char *der; size_t derlen; size_t i; int res; res = shishi_asn1_to_der_field (handle, asn1, asn1type, &der, &derlen); if (res != SHISHI_OK) return res; i = fwrite (der, sizeof (der[0]), derlen, fh); if (i != derlen) return SHISHI_IO_ERROR; return SHISHI_OK; } int shishi_padata_print (Shishi * handle, FILE * fh, Shishi_asn1 padata) { return _shishi_print_armored_data (handle, fh, padata, "PA-DATA", NULL); } int shishi_methoddata_print (Shishi * handle, FILE * fh, Shishi_asn1 methoddata) { return _shishi_print_armored_data (handle, fh, methoddata, "METHOD-DATA", NULL); } int shishi_etype_info_print (Shishi * handle, FILE * fh, Shishi_asn1 etypeinfo) { return _shishi_print_armored_data (handle, fh, etypeinfo, "ETYPE-INFO", NULL); } int shishi_etype_info2_print (Shishi * handle, FILE * fh, Shishi_asn1 etypeinfo2) { return _shishi_print_armored_data (handle, fh, etypeinfo2, "ETYPE-INFO2", NULL); } int shishi_enckdcreppart_print (Shishi * handle, FILE * fh, Shishi_asn1 enckdcreppart) { return _shishi_print_armored_data (handle, fh, enckdcreppart, "EncKDCRepPart", NULL); } int shishi_enckdcreppart_save (Shishi * handle, FILE * fh, Shishi_asn1 enckdcreppart) { return _shishi_save_data (handle, fh, enckdcreppart, "EncKDCRepPart"); } int shishi_ticket_save (Shishi * handle, FILE * fh, Shishi_asn1 ticket) { return _shishi_save_data (handle, fh, ticket, "Ticket"); } int shishi_ticket_print (Shishi * handle, FILE * fh, Shishi_asn1 ticket) { return _shishi_print_armored_data (handle, fh, ticket, "Ticket", NULL); } int shishi_encticketpart_print (Shishi * handle, FILE * fh, Shishi_asn1 encticketpart) { return _shishi_print_armored_data (handle, fh, encticketpart, "EncTicketPart", NULL); } static int _shishi_read_armored_data (Shishi * handle, FILE * fh, char *buffer, size_t len, const char *tag) { char *line = NULL; size_t linelen = 0; char *armorbegin, *armorend; int phase = 0; int res = SHISHI_OK; armorbegin = xasprintf (HEADERBEG, tag); armorend = xasprintf (HEADEREND, tag); while (getline (&line, &linelen, fh) > 0) { while (*line && strchr ("\n\r\t ", line[strlen (line) - 1])) line[strlen (line) - 1] = '\0'; if (phase == 1) { if (strcmp (line, armorend) == 0) { phase = 2; break; } } else { if (strcmp (line, armorbegin) == 0) phase = 1; continue; } if (len <= strlen (line)) { res = SHISHI_TOO_SMALL_BUFFER; goto done; } memcpy (buffer, line, strlen (line)); buffer += strlen (line); len -= strlen (line); } if (len == 0) res = SHISHI_TOO_SMALL_BUFFER; else *buffer = '\0'; if (phase != 2) res = SHISHI_IO_ERROR; done: free (armorbegin); free (armorend); free (line); return res; } static int _shishi_ticket_input (Shishi * handle, FILE * fh, Shishi_asn1 * ticket, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "Ticket"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *ticket = shishi_der2asn1_ticket (handle, der, derlen); if (*ticket == NULL) return SHISHI_ASN1_ERROR; return SHISHI_OK; } int shishi_ticket_parse (Shishi * handle, FILE * fh, Shishi_asn1 * ticket) { return _shishi_ticket_input (handle, fh, ticket, 0); } int shishi_ticket_read (Shishi * handle, FILE * fh, Shishi_asn1 * ticket) { return _shishi_ticket_input (handle, fh, ticket, 1); } static int _shishi_enckdcreppart_input (Shishi * handle, FILE * fh, Shishi_asn1 * enckdcreppart, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "EncKDCRepPart"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *enckdcreppart = shishi_der2asn1_encasreppart (handle, der, derlen); if (*enckdcreppart == NULL) { shishi_error_printf (handle, "Could not DER decode Encasreppart: %s", shishi_error (handle)); *enckdcreppart = shishi_der2asn1_enctgsreppart (handle, der, derlen); if (*enckdcreppart == NULL) { shishi_error_printf (handle, "Could not DER decode Enctgsreppart: %s", shishi_error (handle)); *enckdcreppart = shishi_der2asn1_enckdcreppart (handle, der, derlen); if (*enckdcreppart == NULL) { shishi_error_printf (handle, "Could not DER decode Enckdcreppart: %s", shishi_error (handle)); return !SHISHI_OK; } } } return SHISHI_OK; } int shishi_enckdcreppart_parse (Shishi * handle, FILE * fh, Shishi_asn1 * enckdcreppart) { return _shishi_enckdcreppart_input (handle, fh, enckdcreppart, 0); } int shishi_enckdcreppart_read (Shishi * handle, FILE * fh, Shishi_asn1 * enckdcreppart) { return _shishi_enckdcreppart_input (handle, fh, enckdcreppart, 1); } int _shishi_kdcreq_input (Shishi * handle, FILE * fh, Shishi_asn1 * asreq, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "KDC-REQ"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *asreq = shishi_der2asn1_asreq (handle, der, derlen); if (*asreq == NULL) { printf ("bad asreq magic\n"); shishi_error_printf (handle, "Could not DER decode AS-REQ\n"); *asreq = shishi_der2asn1_tgsreq (handle, der, derlen); if (*asreq == NULL) { printf ("bad tgsreq magic\n"); shishi_error_printf (handle, "Could not DER decode TGS-REQ\n"); *asreq = shishi_der2asn1_kdcreq (handle, der, derlen); if (*asreq == NULL) { printf ("bad kdcreq magic\n"); shishi_error_printf (handle, "Could not DER decode KDC-REQ\n"); return !SHISHI_OK; } } } return SHISHI_OK; } int _shishi_kdcrep_input (Shishi * handle, FILE * fh, Shishi_asn1 * asrep, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "KDC-REP"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *asrep = shishi_der2asn1_asrep (handle, der, derlen); if (*asrep == NULL) { *asrep = shishi_der2asn1_tgsrep (handle, der, derlen); if (*asrep == NULL) { printf ("Could not DER decode KDC-REP: %s\n", shishi_error (handle)); printf ("Parsing AS/TGS-REP as KDC-REP (bug work around)\n"); *asrep = shishi_der2asn1_kdcrep (handle, der, derlen); if (*asrep == NULL) { fprintf (stderr, "Could not DER decode KDC-REP: %s\n", shishi_error (handle)); return !SHISHI_OK; } fprintf (stderr, "Bug workaround code successful...\n"); } } return SHISHI_OK; } int _shishi_apreq_input (Shishi * handle, FILE * fh, Shishi_asn1 * apreq, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "AP-REQ"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *apreq = shishi_der2asn1_apreq (handle, der, derlen); if (*apreq == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode AP-REQ\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_aprep_input (Shishi * handle, FILE * fh, Shishi_asn1 * aprep, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "AP-REP"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *aprep = shishi_der2asn1_aprep (handle, der, derlen); if (*aprep == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode AP-REP\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_encapreppart_input (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "EncAPRepPart"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *encapreppart = shishi_der2asn1_encapreppart (handle, der, derlen); if (*encapreppart == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode EncAPRepPart\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_authenticator_input (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "Authenticator"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *authenticator = shishi_der2asn1_authenticator (handle, der, derlen); if (*authenticator == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode AP-REQ\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_krberror_input (Shishi * handle, FILE * fh, Shishi_asn1 * krberror, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "KRB-ERROR"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *krberror = shishi_der2asn1_krberror (handle, der, derlen); if (*krberror == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode AP-REQ\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_safe_input (Shishi * handle, FILE * fh, Shishi_asn1 * safe, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "KRB-SAFE"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *safe = shishi_der2asn1_krbsafe (handle, der, derlen); if (*safe == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode KRB-SAFE\n"); return !SHISHI_OK; } return SHISHI_OK; } int _shishi_priv_input (Shishi * handle, FILE * fh, Shishi_asn1 * priv, int type) { char der[BUFSIZE]; size_t derlen; char b64der[BUFSIZE]; size_t b64len = 0; int res; if (type == 0) { b64len = sizeof (b64der); res = _shishi_read_armored_data (handle, fh, b64der, b64len, "KRB-PRIV"); if (res != SHISHI_OK) { shishi_error_printf (handle, "armor data read fail\n"); return res; } derlen = sizeof (der); if (!base64_decode (b64der, strlen (b64der), der, &derlen)) return SHISHI_BASE64_ERROR; } else { derlen = fread (der, sizeof (der[0]), sizeof (der) / sizeof (der[0]), fh); if (derlen <= 0 || !feof (fh) || ferror (fh)) { shishi_error_printf (handle, "Error reading from file (got %zu bytes)...", derlen); return !SHISHI_OK; } } *priv = shishi_der2asn1_priv (handle, der, derlen); if (*priv == NULL) { printf ("bad magic %s\n", shishi_error (handle)); shishi_error_printf (handle, "Could not DER decode KRB-PRIV\n"); return !SHISHI_OK; } return SHISHI_OK; } int shishi_key_parse (Shishi * handle, FILE * fh, Shishi_key ** key) { int lno = 0; char line[BUFSIZE]; char *b64buffer; char armorbegin[BUFSIZE]; char armorend[BUFSIZE]; int in_key = 0, in_body = 0; int res; Shishi_key *lkey = NULL; sprintf (armorbegin, HEADERBEG, "KEY"); sprintf (armorend, HEADEREND, "KEY"); while (fgets (line, sizeof (line), fh)) { lno++; line[sizeof (line) - 1] = '\0'; if (!*line || line[strlen (line) - 1] != '\n') { fprintf (stderr, "input line %d too long or missing LF\n", lno); continue; } line[strlen (line) - 1] = '\0'; if (VERBOSENOISE (handle)) printf ("line %d read %zu bytes: %s\n", lno, strlen (line), line); if (!in_key) { in_key = strncmp (line, armorbegin, strlen (armorbegin)) == 0; if (in_key) { res = shishi_key (handle, &lkey); if (res != SHISHI_OK) return res; } continue; } if (strcmp (line, armorend) == 0) break; if (in_body) { int ok = base64_decode_alloc (line, strlen (line), &b64buffer, NULL); if (!ok) return SHISHI_BASE64_ERROR; shishi_key_value_set (lkey, b64buffer); } else { if (strcmp (line, "") == 0 || strcmp (line, " ") == 0) in_body = 1; if (strncmp (line, "Keytype: ", strlen ("Keytype: ")) == 0) { int type; if (sscanf (line, "Keytype: %d (", &type) == 1) shishi_key_type_set (lkey, type); } else if (strncmp (line, "Key-Version-Number: ", strlen ("Key-Version-Number: ")) == 0) { int type; if (sscanf (line, "Key-Version-Number: %d", &type) == 1) shishi_key_version_set (lkey, type); } else if (strncmp (line, "Realm: ", strlen ("Realm: ")) == 0) { shishi_key_realm_set (lkey, line + strlen ("Realm: ")); } else if (strncmp (line, "Principal: ", strlen ("Principal: ")) == 0) { shishi_key_principal_set (lkey, line + strlen ("Principal: ")); } else if (strncmp (line, "Timestamp: ", strlen ("Timestamp: ")) == 0) { time_t timestamp; timestamp = shishi_generalize_ctime (handle, line + strlen ("Timestamp: ")); shishi_key_timestamp_set (lkey, timestamp); } } } if (!lkey) return SHISHI_OK; *key = lkey; return SHISHI_OK; } /** * shishi_key_print: * @handle: Shishi handle as allocated by shishi_init(). * @fh: File handle open for writing. * @key: Key to print. * * Prints an ASCII representation of a key structure @key * to the file descriptor @fh. Example output: * * -----BEGIN SHISHI KEY----- * Keytype: 18 (aes256-cts-hmac-sha1-96) * Principal: host/latte.josefsson.org * Realm: JOSEFSSON.ORG * Key-Version-Number: 1 * Timestamp: 20130420150337Z * * P1QdeW/oSiag/bTyVEBAY2msiGSTmgLXlopuCKoppDs= * -----END SHISHI KEY----- * * Return value: Returns %SHISHI_OK if successful. * The only failure is %SHISHI_MALLOC_ERROR. **/ int shishi_key_print (Shishi * handle, FILE * fh, const Shishi_key * key) { char *b64key; size_t i; base64_encode_alloc (shishi_key_value (key), shishi_key_length (key), &b64key); if (!b64key) return SHISHI_MALLOC_ERROR; fprintf (fh, HEADERBEG "\n", "KEY"); fprintf (fh, "Keytype: %d (%s)\n", shishi_key_type (key), shishi_cipher_name (shishi_key_type (key))); if (shishi_key_principal (key)) fprintf (fh, "Principal: %s\n", shishi_key_principal (key)); if (shishi_key_realm (key)) fprintf (fh, "Realm: %s\n", shishi_key_realm (key)); if (shishi_key_version (key) != UINT32_MAX) fprintf (fh, "Key-Version-Number: %" PRIu32 "\n", shishi_key_version (key)); if (shishi_key_timestamp (key)) fprintf (fh, "Timestamp: %s\n", shishi_generalize_time (handle, shishi_key_timestamp (key))); fprintf (fh, "\n"); for (i = 0; i < strlen (b64key); i++) { fprintf (fh, "%c", b64key[i]); if ((i + 1) % 64 == 0) fprintf (fh, "\n"); } if ((i + 1) % 64 != 0) fprintf (fh, "\n"); free (b64key); #if 0 if (VERBOSENOISE (handle)) { for (i = 0; i < shishi_key_length (key); i++) fprintf (stdout, "%02x", shishi_key_value (key)[i] & 0xFF); fprintf (stdout, "\n"); } #endif fprintf (fh, HEADEREND "\n", "KEY"); return SHISHI_OK; } /** * shishi_key_to_file: * @handle: Shishi handle as allocated by shishi_init(). * @filename: Name of file, to which the key text is appended. * @key: Key to print. * * Prints an ASCII representation of a key structure @key * to the file @filename. The text is appended if the file * exists. See shishi_key_print() for an example of output text. * * Return value: Returns %SHISHI_OK if successful. * Failures are due to I/O issues, or to allocation. **/ int shishi_key_to_file (Shishi * handle, const char *filename, Shishi_key * key) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing KEY to %s...\n"), filename); fh = fopen (filename, "a"); if (fh == NULL) return SHISHI_FOPEN_ERROR; res = shishi_key_print (handle, fh, key); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing KEY to %s...done\n"), filename); return SHISHI_OK; } shishi-1.0.3/lib/Makefile.in0000644000000000000000000031257714273615655012541 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @NULL_TRUE@am__append_1 = crypto-null.c @MD_TRUE@am__append_2 = crypto-md.c @DES_TRUE@am__append_3 = crypto-des.c @DES3_TRUE@am__append_4 = crypto-3des.c @AES_TRUE@am__append_5 = crypto-aes.c @ARCFOUR_TRUE@am__append_6 = crypto-rc4.c @STARTTLS_TRUE@am__append_7 = starttls.c starttls.h @HAVE_LD_VERSION_SCRIPT_TRUE@am__append_8 = -Wl,--version-script=$(srcdir)/libshishi.map @HAVE_LD_VERSION_SCRIPT_FALSE@am__append_9 = -export-symbols-regex '^shishi.*' @HAVE_LD_OUTPUT_DEF_TRUE@am__append_10 = -Wl,--output-def,libshishi-$(SOVERSION).def subdir = lib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = shishi-version.h CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(defexecdir)" \ "$(DESTDIR)$(includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libshishi_la_DEPENDENCIES = gl/libgnu.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__libshishi_la_SOURCES_DIST = libshishi.map shishi.h internal.h \ init.c cfg.c cfg.h realm.c principal.c error.c krberror.c \ gztime.c diskio.c diskio.h authorize.c pki.c authenticator.c \ kdc.c kdcreq.c kdcrep.c enckdcreppart.c as.c tgs.c ap.c \ apreq.c aprep.c encapreppart.c safe.c priv.c ticket.c \ encticketpart.c tkt.c tkts.c tktccache.c ccache.c ccache.h \ netio.c key.c keys.c keytab.c hostkeys.c crypto.c crypto.h \ crypto-ctx.c asn1.c asn1.h kerberos5.c version.c password.c \ utils.c utils.h resolv.c kerberos5.asn1 low-crypto.c \ low-crypto.h crypto-null.c crypto-md.c crypto-des.c \ crypto-3des.c crypto-aes.c crypto-rc4.c starttls.c starttls.h @NULL_TRUE@am__objects_1 = crypto-null.lo @MD_TRUE@am__objects_2 = crypto-md.lo @DES_TRUE@am__objects_3 = crypto-des.lo @DES3_TRUE@am__objects_4 = crypto-3des.lo @AES_TRUE@am__objects_5 = crypto-aes.lo @ARCFOUR_TRUE@am__objects_6 = crypto-rc4.lo @STARTTLS_TRUE@am__objects_7 = starttls.lo am_libshishi_la_OBJECTS = init.lo cfg.lo realm.lo principal.lo \ error.lo krberror.lo gztime.lo diskio.lo authorize.lo pki.lo \ authenticator.lo kdc.lo kdcreq.lo kdcrep.lo enckdcreppart.lo \ as.lo tgs.lo ap.lo apreq.lo aprep.lo encapreppart.lo safe.lo \ priv.lo ticket.lo encticketpart.lo tkt.lo tkts.lo tktccache.lo \ ccache.lo netio.lo key.lo keys.lo keytab.lo hostkeys.lo \ crypto.lo crypto-ctx.lo asn1.lo kerberos5.lo version.lo \ password.lo utils.lo resolv.lo low-crypto.lo $(am__objects_1) \ $(am__objects_2) $(am__objects_3) $(am__objects_4) \ $(am__objects_5) $(am__objects_6) $(am__objects_7) libshishi_la_OBJECTS = $(am_libshishi_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libshishi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libshishi_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/ap.Plo ./$(DEPDIR)/aprep.Plo \ ./$(DEPDIR)/apreq.Plo ./$(DEPDIR)/as.Plo ./$(DEPDIR)/asn1.Plo \ ./$(DEPDIR)/authenticator.Plo ./$(DEPDIR)/authorize.Plo \ ./$(DEPDIR)/ccache.Plo ./$(DEPDIR)/cfg.Plo \ ./$(DEPDIR)/crypto-3des.Plo ./$(DEPDIR)/crypto-aes.Plo \ ./$(DEPDIR)/crypto-ctx.Plo ./$(DEPDIR)/crypto-des.Plo \ ./$(DEPDIR)/crypto-md.Plo ./$(DEPDIR)/crypto-null.Plo \ ./$(DEPDIR)/crypto-rc4.Plo ./$(DEPDIR)/crypto.Plo \ ./$(DEPDIR)/diskio.Plo ./$(DEPDIR)/encapreppart.Plo \ ./$(DEPDIR)/enckdcreppart.Plo ./$(DEPDIR)/encticketpart.Plo \ ./$(DEPDIR)/error.Plo ./$(DEPDIR)/gztime.Plo \ ./$(DEPDIR)/hostkeys.Plo ./$(DEPDIR)/init.Plo \ ./$(DEPDIR)/kdc.Plo ./$(DEPDIR)/kdcrep.Plo \ ./$(DEPDIR)/kdcreq.Plo ./$(DEPDIR)/kerberos5.Plo \ ./$(DEPDIR)/key.Plo ./$(DEPDIR)/keys.Plo \ ./$(DEPDIR)/keytab.Plo ./$(DEPDIR)/krberror.Plo \ ./$(DEPDIR)/low-crypto.Plo ./$(DEPDIR)/netio.Plo \ ./$(DEPDIR)/password.Plo ./$(DEPDIR)/pki.Plo \ ./$(DEPDIR)/principal.Plo ./$(DEPDIR)/priv.Plo \ ./$(DEPDIR)/realm.Plo ./$(DEPDIR)/resolv.Plo \ ./$(DEPDIR)/safe.Plo ./$(DEPDIR)/starttls.Plo \ ./$(DEPDIR)/tgs.Plo ./$(DEPDIR)/ticket.Plo ./$(DEPDIR)/tkt.Plo \ ./$(DEPDIR)/tktccache.Plo ./$(DEPDIR)/tkts.Plo \ ./$(DEPDIR)/utils.Plo ./$(DEPDIR)/version.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libshishi_la_SOURCES) DIST_SOURCES = $(am__libshishi_la_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(defexec_DATA) HEADERS = $(include_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/shishi-version.h.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = gl AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY) AM_CPPFLAGS = $(LIBTASN1_CFLAGS) -I$(srcdir)/gl -I$(builddir)/gl \ -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shishi.conf\" \ -DSKELCFGFILE=\"$(SKELDIR)/shishi.skel\" \ -DHOSTKEYSFILE=\"$(KEYDIR)/shishi.keys\" BUILT_SOURCES = kerberos5.c MAINTAINERCLEANFILES = kerberos5.c include_HEADERS = shishi.h shishi-version.h lib_LTLIBRARIES = libshishi.la libshishi_la_SOURCES = libshishi.map shishi.h internal.h init.c cfg.c \ cfg.h realm.c principal.c error.c krberror.c gztime.c diskio.c \ diskio.h authorize.c pki.c authenticator.c kdc.c kdcreq.c \ kdcrep.c enckdcreppart.c as.c tgs.c ap.c apreq.c aprep.c \ encapreppart.c safe.c priv.c ticket.c encticketpart.c tkt.c \ tkts.c tktccache.c ccache.c ccache.h netio.c key.c keys.c \ keytab.c hostkeys.c crypto.c crypto.h crypto-ctx.c asn1.c \ asn1.h kerberos5.c version.c password.c utils.c utils.h \ resolv.c kerberos5.asn1 low-crypto.c low-crypto.h \ $(am__append_1) $(am__append_2) $(am__append_3) \ $(am__append_4) $(am__append_5) $(am__append_6) \ $(am__append_7) libshishi_la_LIBADD = gl/libgnu.la $(LIB_CLOCK_GETTIME) \ $(LTLIBTASN1) $(LTLIBGNUTLS) $(LTLIBGCRYPT) $(LTLIBIDN) \ $(LTLIBINTL) $(LTLIBRESOLV) $(LIBSOCKET) libshishi_la_LDFLAGS = -no-undefined -version-info \ $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(am__append_8) \ $(am__append_9) $(am__append_10) @HAVE_LD_OUTPUT_DEF_TRUE@defexecdir = $(bindir) @HAVE_LD_OUTPUT_DEF_TRUE@defexec_DATA = libshishi-$(SOVERSION).def @HAVE_LD_OUTPUT_DEF_TRUE@DISTCLEANFILES = $(defexec_DATA) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu lib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): shishi-version.h: $(top_builddir)/config.status $(srcdir)/shishi-version.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libshishi.la: $(libshishi_la_OBJECTS) $(libshishi_la_DEPENDENCIES) $(EXTRA_libshishi_la_DEPENDENCIES) $(AM_V_CCLD)$(libshishi_la_LINK) -rpath $(libdir) $(libshishi_la_OBJECTS) $(libshishi_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ap.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aprep.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/apreq.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/as.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/authenticator.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/authorize.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ccache.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfg.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-3des.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-aes.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-ctx.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-des.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-md.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-null.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-rc4.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diskio.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encapreppart.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enckdcreppart.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encticketpart.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gztime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hostkeys.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kdc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kdcrep.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kdcreq.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kerberos5.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/key.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keys.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keytab.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krberror.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/low-crypto.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netio.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/password.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pki.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/principal.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/priv.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/realm.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resolv.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/starttls.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tgs.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ticket.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tkt.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tktccache.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tkts.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-defexecDATA: $(defexec_DATA) @$(NORMAL_INSTALL) @list='$(defexec_DATA)'; test -n "$(defexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(defexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(defexecdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(defexecdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(defexecdir)" || exit $$?; \ done uninstall-defexecDATA: @$(NORMAL_UNINSTALL) @list='$(defexec_DATA)'; test -n "$(defexecdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(defexecdir)'; $(am__uninstall_files_from_dir) install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(defexecdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/ap.Plo -rm -f ./$(DEPDIR)/aprep.Plo -rm -f ./$(DEPDIR)/apreq.Plo -rm -f ./$(DEPDIR)/as.Plo -rm -f ./$(DEPDIR)/asn1.Plo -rm -f ./$(DEPDIR)/authenticator.Plo -rm -f ./$(DEPDIR)/authorize.Plo -rm -f ./$(DEPDIR)/ccache.Plo -rm -f ./$(DEPDIR)/cfg.Plo -rm -f ./$(DEPDIR)/crypto-3des.Plo -rm -f ./$(DEPDIR)/crypto-aes.Plo -rm -f ./$(DEPDIR)/crypto-ctx.Plo -rm -f ./$(DEPDIR)/crypto-des.Plo -rm -f ./$(DEPDIR)/crypto-md.Plo -rm -f ./$(DEPDIR)/crypto-null.Plo -rm -f ./$(DEPDIR)/crypto-rc4.Plo -rm -f ./$(DEPDIR)/crypto.Plo -rm -f ./$(DEPDIR)/diskio.Plo -rm -f ./$(DEPDIR)/encapreppart.Plo -rm -f ./$(DEPDIR)/enckdcreppart.Plo -rm -f ./$(DEPDIR)/encticketpart.Plo -rm -f ./$(DEPDIR)/error.Plo -rm -f ./$(DEPDIR)/gztime.Plo -rm -f ./$(DEPDIR)/hostkeys.Plo -rm -f ./$(DEPDIR)/init.Plo -rm -f ./$(DEPDIR)/kdc.Plo -rm -f ./$(DEPDIR)/kdcrep.Plo -rm -f ./$(DEPDIR)/kdcreq.Plo -rm -f ./$(DEPDIR)/kerberos5.Plo -rm -f ./$(DEPDIR)/key.Plo -rm -f ./$(DEPDIR)/keys.Plo -rm -f ./$(DEPDIR)/keytab.Plo -rm -f ./$(DEPDIR)/krberror.Plo -rm -f ./$(DEPDIR)/low-crypto.Plo -rm -f ./$(DEPDIR)/netio.Plo -rm -f ./$(DEPDIR)/password.Plo -rm -f ./$(DEPDIR)/pki.Plo -rm -f ./$(DEPDIR)/principal.Plo -rm -f ./$(DEPDIR)/priv.Plo -rm -f ./$(DEPDIR)/realm.Plo -rm -f ./$(DEPDIR)/resolv.Plo -rm -f ./$(DEPDIR)/safe.Plo -rm -f ./$(DEPDIR)/starttls.Plo -rm -f ./$(DEPDIR)/tgs.Plo -rm -f ./$(DEPDIR)/ticket.Plo -rm -f ./$(DEPDIR)/tkt.Plo -rm -f ./$(DEPDIR)/tktccache.Plo -rm -f ./$(DEPDIR)/tkts.Plo -rm -f ./$(DEPDIR)/utils.Plo -rm -f ./$(DEPDIR)/version.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-includeHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-defexecDATA install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f ./$(DEPDIR)/ap.Plo -rm -f ./$(DEPDIR)/aprep.Plo -rm -f ./$(DEPDIR)/apreq.Plo -rm -f ./$(DEPDIR)/as.Plo -rm -f ./$(DEPDIR)/asn1.Plo -rm -f ./$(DEPDIR)/authenticator.Plo -rm -f ./$(DEPDIR)/authorize.Plo -rm -f ./$(DEPDIR)/ccache.Plo -rm -f ./$(DEPDIR)/cfg.Plo -rm -f ./$(DEPDIR)/crypto-3des.Plo -rm -f ./$(DEPDIR)/crypto-aes.Plo -rm -f ./$(DEPDIR)/crypto-ctx.Plo -rm -f ./$(DEPDIR)/crypto-des.Plo -rm -f ./$(DEPDIR)/crypto-md.Plo -rm -f ./$(DEPDIR)/crypto-null.Plo -rm -f ./$(DEPDIR)/crypto-rc4.Plo -rm -f ./$(DEPDIR)/crypto.Plo -rm -f ./$(DEPDIR)/diskio.Plo -rm -f ./$(DEPDIR)/encapreppart.Plo -rm -f ./$(DEPDIR)/enckdcreppart.Plo -rm -f ./$(DEPDIR)/encticketpart.Plo -rm -f ./$(DEPDIR)/error.Plo -rm -f ./$(DEPDIR)/gztime.Plo -rm -f ./$(DEPDIR)/hostkeys.Plo -rm -f ./$(DEPDIR)/init.Plo -rm -f ./$(DEPDIR)/kdc.Plo -rm -f ./$(DEPDIR)/kdcrep.Plo -rm -f ./$(DEPDIR)/kdcreq.Plo -rm -f ./$(DEPDIR)/kerberos5.Plo -rm -f ./$(DEPDIR)/key.Plo -rm -f ./$(DEPDIR)/keys.Plo -rm -f ./$(DEPDIR)/keytab.Plo -rm -f ./$(DEPDIR)/krberror.Plo -rm -f ./$(DEPDIR)/low-crypto.Plo -rm -f ./$(DEPDIR)/netio.Plo -rm -f ./$(DEPDIR)/password.Plo -rm -f ./$(DEPDIR)/pki.Plo -rm -f ./$(DEPDIR)/principal.Plo -rm -f ./$(DEPDIR)/priv.Plo -rm -f ./$(DEPDIR)/realm.Plo -rm -f ./$(DEPDIR)/resolv.Plo -rm -f ./$(DEPDIR)/safe.Plo -rm -f ./$(DEPDIR)/starttls.Plo -rm -f ./$(DEPDIR)/tgs.Plo -rm -f ./$(DEPDIR)/ticket.Plo -rm -f ./$(DEPDIR)/tkt.Plo -rm -f ./$(DEPDIR)/tktccache.Plo -rm -f ./$(DEPDIR)/tkts.Plo -rm -f ./$(DEPDIR)/utils.Plo -rm -f ./$(DEPDIR)/version.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-defexecDATA uninstall-includeHEADERS \ uninstall-libLTLIBRARIES .MAKE: $(am__recursive_targets) all check install install-am \ install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-defexecDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-defexecDATA \ uninstall-includeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile kerberos5.c: $(srcdir)/kerberos5.asn1 $(AM_V_GEN)$(ASN1PARSER) -o $@ -n shishi_asn1_tab $(srcdir)/kerberos5.asn1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/lib/asn1.c0000644000000000000000000011133614273601533011456 00000000000000/* asn1.c --- Utilities to manipulate RFC 1510 ASN.1 types. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Normally internal.h pulls in config.h, but since internal.h also pulls in shishi.h, and we need to pull in libtasn1.h before shishi.h to get Shishi_asn1 definition correct, we need to pull in config.h here to avoid libtasn1.h pulling in system header files without having parsed config.h first. */ #include #include #include "internal.h" #include "asn1.h" #define ASN1NAME "KerberosV5Spec2." /* Generated by asn1Parser from ASN.1 module. */ extern const ASN1_ARRAY_TYPE shishi_asn1_tab[]; /* Prototype in asn1.h, used by init.c. */ int _shishi_asn1_init (Shishi * handle) { char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; int asn1_result; if (!asn1_check_version (ASN1_VERSION)) { shishi_warn (handle, "asn1_check-version(%s) failed: %s", ASN1_VERSION, asn1_check_version (NULL)); return SHISHI_ASN1_ERROR; } if (!asn1_check_version ("0.2.5")) shishi_warn (handle, "libtasn1 >= 0.2.5 preferred, you may see bugs."); asn1_result = asn1_array2tree (shishi_asn1_tab, &handle->asn1, errorDescription); if (asn1_result != ASN1_SUCCESS) { shishi_warn (handle, "asn1_array2tree() failed: %s\n", asn1_strerror (asn1_result)); shishi_warn (handle, "%s", errorDescription); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } int shishi_asn1_number_of_elements (Shishi * handle, Shishi_asn1 node, const char *field, size_t *n) { int rc; int tmp; rc = asn1_number_of_elements (node, field, &tmp); *n = tmp; if (rc != ASN1_SUCCESS) { if (rc == ASN1_ELEMENT_NOT_FOUND) return SHISHI_ASN1_NO_ELEMENT; else return SHISHI_ASN1_ERROR; } return SHISHI_OK; } int shishi_asn1_empty_p (Shishi * handle, Shishi_asn1 node, const char *field) { int rc; int datalen; datalen = 0; rc = asn1_read_value (node, field, NULL, &datalen); if (rc == ASN1_VALUE_NOT_FOUND) return 1; return 0; } /** * shishi_asn1_read_inline: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 variable to read field from. * @field: name of field in @node to read. * @data: pre-allocated output buffer that will hold ASN.1 field data. * @datalen: on input, maximum size of output buffer, * on output, actual size of output buffer. * * Extract data stored in a ASN.1 field into a fixed size buffer * allocated by caller. * * Note that since it is difficult to predict the length of the field, * it is often better to use shishi_asn1_read() instead. * * Return value: Returns SHISHI_OK if successful, * SHISHI_ASN1_NO_ELEMENT if the element do not exist, * SHISHI_ASN1_NO_VALUE if the field has no value, ot * SHISHI_ASN1_ERROR otherwise. **/ int shishi_asn1_read_inline (Shishi * handle, Shishi_asn1 node, const char *field, char *data, size_t *datalen) { int rc; int len = (int) *datalen; rc = asn1_read_value (node, field, (unsigned char *) data, &len); if (rc != ASN1_SUCCESS) { shishi_error_set (handle, asn1_strerror (rc)); if (rc == ASN1_ELEMENT_NOT_FOUND) return SHISHI_ASN1_NO_ELEMENT; else if (rc == ASN1_VALUE_NOT_FOUND) return SHISHI_ASN1_NO_VALUE; else return SHISHI_ASN1_ERROR; } *datalen = len; return SHISHI_OK; } /** * shishi_asn1_read: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 variable to read field from. * @field: name of field in @node to read. * @data: newly allocated output buffer that will hold ASN.1 field data. * @datalen: actual size of output buffer. * * Extract data stored in a ASN.1 field into a newly allocated buffer. * The buffer will always be zero terminated, even though @datalen * will not include the added zero. * * Return value: Returns SHISHI_OK if successful, * SHISHI_ASN1_NO_ELEMENT if the element do not exist, * SHISHI_ASN1_NO_VALUE if the field has no value, ot * SHISHI_ASN1_ERROR otherwise. **/ int shishi_asn1_read (Shishi * handle, Shishi_asn1 node, const char *field, char **data, size_t *datalen) { int rc; int len = 0; rc = asn1_read_value (node, field, NULL, &len); if (rc != ASN1_SUCCESS && rc != ASN1_MEM_ERROR) { shishi_error_set (handle, asn1_strerror (rc)); if (rc == ASN1_ELEMENT_NOT_FOUND) return SHISHI_ASN1_NO_ELEMENT; else if (rc == ASN1_VALUE_NOT_FOUND) return SHISHI_ASN1_NO_VALUE; else return SHISHI_ASN1_ERROR; } if (data) { size_t dlen = (size_t) len; *data = xmalloc (len + 1); if (len > 0) { rc = shishi_asn1_read_inline (handle, node, field, *data, &dlen); if (rc != SHISHI_OK) return rc; } (*data)[len] = '\0'; } if (datalen) *datalen = (size_t) len; return SHISHI_OK; } /** * shishi_asn1_read_optional: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 variable to read field from. * @field: name of field in @node to read. * @data: newly allocated output buffer that will hold ASN.1 field data. * @datalen: actual size of output buffer. * * Extract data stored in a ASN.1 field into a newly allocated buffer. * If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this * function set datalen to 0 and succeeds. Can be useful to read * ASN.1 fields which are marked OPTIONAL in the grammar, if you want * to avoid special error handling in your code. * * Return value: Returns SHISHI_OK if successful, * SHISHI_ASN1_NO_VALUE if the field has no value, ot * SHISHI_ASN1_ERROR otherwise. **/ int shishi_asn1_read_optional (Shishi * handle, Shishi_asn1 node, const char *field, char **data, size_t *datalen) { int rc; rc = shishi_asn1_read (handle, node, field, data, datalen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT) return rc; if (rc == SHISHI_ASN1_NO_ELEMENT) if (datalen) *datalen = 0; return SHISHI_OK; } #define C2I(buf) ((buf[3] & 0xFF) | \ ((buf[2] & 0xFF) << 8) | \ ((buf[1] & 0xFF) << 16) | \ ((buf[0] & 0xFF) << 24)) int shishi_asn1_read_int32 (Shishi * handle, Shishi_asn1 node, const char *field, int32_t * i) { char buf[4]; size_t buflen; int rc; memset (buf, 0, sizeof (buf)); buflen = sizeof (buf); rc = shishi_asn1_read_inline (handle, node, field, buf, &buflen); if (rc != SHISHI_OK) return rc; if (buflen < 4) { memset (buf, 0, sizeof (buf)); rc = shishi_asn1_read_inline (handle, node, field, &buf[4 - buflen], &buflen); if (rc != SHISHI_OK) return rc; } *i = C2I (buf); return SHISHI_OK; } int shishi_asn1_read_uint32 (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t * i) { return shishi_asn1_read_int32 (handle, node, field, (int32_t *) i); } int shishi_asn1_read_integer (Shishi * handle, Shishi_asn1 node, const char *field, int *i) { return shishi_asn1_read_int32 (handle, node, field, (int32_t *) i); } int shishi_asn1_read_bitstring (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t * flags) { char *buf; size_t buflen; size_t i; int res; res = shishi_asn1_read (handle, node, field, &buf, &buflen); if (res != SHISHI_OK) return res; if (buflen < 4) return SHISHI_ASN1_ERROR; *flags = 0; for (i = 0; i < 4; i++) { *flags |= (((buf[i] >> 7) & 0x01) | ((buf[i] >> 5) & 0x02) | ((buf[i] >> 3) & 0x04) | ((buf[i] >> 1) & 0x08) | ((buf[i] << 1) & 0x10) | ((buf[i] << 3) & 0x20) | ((buf[i] << 5) & 0x40) | ((buf[i] << 7) & 0x80)) << (8 * i); } return SHISHI_OK; } int shishi_asn1_write (Shishi * handle, Shishi_asn1 node, const char *field, const char *data, size_t datalen) { int rc; rc = asn1_write_value (node, field, (const unsigned char *) data, (int) datalen); if (rc != ASN1_SUCCESS) { shishi_error_set (handle, asn1_strerror (rc)); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } int shishi_asn1_write_uint32 (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t n) { char *buf; int res; asprintf (&buf, "%lu", (unsigned long) n); res = shishi_asn1_write (handle, node, field, buf, 0); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_asn1_write_int32 (Shishi * handle, Shishi_asn1 node, const char *field, int32_t n) { char *buf; int res; asprintf (&buf, "%ld", (signed long) n); res = shishi_asn1_write (handle, node, field, buf, 0); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_asn1_write_integer (Shishi * handle, Shishi_asn1 node, const char *field, int n) { return shishi_asn1_write_int32 (handle, node, field, (int32_t) n); } int shishi_asn1_write_bitstring (Shishi * handle, Shishi_asn1 node, const char *field, uint32_t flags) { char buf[4]; size_t i; int res; /* XXX Cannot handle bit strings longer than 32 bits. Currently not needed though. */ for (i = 0; i < 4; i++) { buf[i] = ((((flags >> (8 * i)) >> 7) & 0x01) | (((flags >> (8 * i)) >> 5) & 0x02) | (((flags >> (8 * i)) >> 3) & 0x04) | (((flags >> (8 * i)) >> 1) & 0x08) | (((flags >> (8 * i)) << 1) & 0x10) | (((flags >> (8 * i)) << 3) & 0x20) | (((flags >> (8 * i)) << 5) & 0x40) | (((flags >> (8 * i)) << 7) & 0x80)); } res = shishi_asn1_write (handle, node, field, buf, 32); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_asn1_done: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 node to deallocate. * * Deallocate resources associated with ASN.1 structure. Note that * the node must not be used after this call. **/ void shishi_asn1_done (Shishi * handle, Shishi_asn1 node) { int rc; if (node) { rc = asn1_delete_structure (&node); if (rc != ASN1_SUCCESS) shishi_error_printf (handle, "Cannot deallocate ASN.1 structure: %s", asn1_strerror (rc)); } } static Shishi_asn1 asn1_new (Shishi * handle, const char *field, const char *name) { ASN1_TYPE node = ASN1_TYPE_EMPTY; int res; res = asn1_create_element (handle->asn1, field, &node); if (res != ASN1_SUCCESS) { shishi_error_set (handle, asn1_strerror (res)); return NULL; } return (Shishi_asn1) node; } /** * shishi_asn1_pa_enc_ts_enc: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for PA-ENC-TS-ENC. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_pa_enc_ts_enc (Shishi * handle) { return asn1_new (handle, ASN1NAME "PA-ENC-TS-ENC", "PA-ENC-TS-ENC"); } /** * shishi_asn1_encrypteddata: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for EncryptedData * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_encrypteddata (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncryptedData", "EncryptedData"); } /** * shishi_asn1_padata: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for PA-DATA. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_padata (Shishi * handle) { return asn1_new (handle, ASN1NAME "PA-DATA", "PA-DATA"); } /** * shishi_asn1_methoddata: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for METHOD-DATA. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_methoddata (Shishi * handle) { return asn1_new (handle, ASN1NAME "METHOD-DATA", "METHOD-DATA"); } /** * shishi_asn1_etype_info: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for ETYPE-INFO. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_etype_info (Shishi * handle) { return asn1_new (handle, ASN1NAME "ETYPE-INFO", "ETYPE-INFO"); } /** * shishi_asn1_etype_info2: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for ETYPE-INFO2. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_etype_info2 (Shishi * handle) { return asn1_new (handle, ASN1NAME "ETYPE-INFO2", "ETYPE-INFO2"); } /** * shishi_asn1_asreq: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for AS-REQ. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_asreq (Shishi * handle) { return asn1_new (handle, ASN1NAME "AS-REQ", "KDC-REQ"); } /** * shishi_asn1_asrep: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for AS-REP. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_asrep (Shishi * handle) { return asn1_new (handle, ASN1NAME "AS-REP", "KDC-REP"); } /** * shishi_asn1_tgsreq: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for TGS-REQ. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_tgsreq (Shishi * handle) { return asn1_new (handle, ASN1NAME "TGS-REQ", "KDC-REQ"); } /** * shishi_asn1_tgsrep: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for TGS-REP. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_tgsrep (Shishi * handle) { return asn1_new (handle, ASN1NAME "TGS-REP", "KDC-REP"); } /** * shishi_asn1_apreq: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for AP-REQ. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_apreq (Shishi * handle) { return asn1_new (handle, ASN1NAME "AP-REQ", "AP-REQ"); } /** * shishi_asn1_aprep: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for AP-REP. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_aprep (Shishi * handle) { return asn1_new (handle, ASN1NAME "AP-REP", "AP-REP"); } /** * shishi_asn1_encapreppart: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for AP-REP. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_encapreppart (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncAPRepPart", "EncAPRepPart"); } /** * shishi_asn1_ticket: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for Ticket. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_ticket (Shishi * handle) { return asn1_new (handle, ASN1NAME "Ticket", "Ticket"); } /** * shishi_asn1_encticketpart: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for EncTicketPart. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_encticketpart (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncTicketPart", "EncTicketPart"); } /** * shishi_asn1_authenticator: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for Authenticator. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_authenticator (Shishi * handle) { return asn1_new (handle, ASN1NAME "Authenticator", "Authenticator"); } /** * shishi_asn1_enckdcreppart: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for EncKDCRepPart. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_enckdcreppart (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncKDCRepPart", "EncKDCRepPart"); } /** * shishi_asn1_encasreppart: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for EncASRepPart. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_encasreppart (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncASRepPart", "EncKDCRepPart"); } /** * shishi_asn1_krberror: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for KRB-ERROR. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_krberror (Shishi * handle) { return asn1_new (handle, ASN1NAME "KRB-ERROR", "KRB-ERROR"); } /** * shishi_asn1_krbsafe: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for KRB-SAFE. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_krbsafe (Shishi * handle) { return asn1_new (handle, ASN1NAME "KRB-SAFE", "KRB-SAFE"); } /** * shishi_asn1_priv: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for KRB-PRIV. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_priv (Shishi * handle) { return asn1_new (handle, ASN1NAME "KRB-PRIV", "KRB-PRIV"); } /** * shishi_asn1_encprivpart: * @handle: shishi handle as allocated by shishi_init(). * * Create new ASN.1 structure for EncKrbPrivPart. * * Return value: Returns ASN.1 structure. **/ Shishi_asn1 shishi_asn1_encprivpart (Shishi * handle) { return asn1_new (handle, ASN1NAME "EncKrbPrivPart", "EncKrbPrivPart"); } /** * shishi_asn1_to_der_field: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 data that have field to extract. * @field: name of field in @node to extract. * @der: output array that holds DER encoding of @field in @node. * @len: output variable with length of @der output array. * * Extract newly allocated DER representation of specified ASN.1 field. * * Return value: Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR * if DER encoding fails (common reasons for this is that the ASN.1 * is missing required values). **/ int shishi_asn1_to_der_field (Shishi * handle, Shishi_asn1 node, const char *field, char **der, size_t *len) { char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; int mylen = 0; int rc; rc = asn1_der_coding (node, field, NULL, &mylen, errorDescription); if (rc != ASN1_MEM_ERROR) { shishi_error_set (handle, errorDescription); return SHISHI_ASN1_ERROR; } *der = xmalloc (mylen); rc = asn1_der_coding (node, field, *der, &mylen, errorDescription); if (rc != ASN1_SUCCESS) { shishi_error_set (handle, errorDescription); return SHISHI_ASN1_ERROR; } if (strcmp (field, "req-body") == 0) { unsigned char class; int derlen, derlen2; unsigned long tag; signed long lenlen; /* XXX when encoding a field inside a SEQUENCE, libtasn1 appear to include the tag from the SEQUENCE in the encoding of a particular field. This appear wrong, so we frob it here. This typically happens when encoding req-body in KDC-REQ for TGS checksums. */ rc = asn1_get_tag_der ((unsigned char *) *der, mylen, &class, &derlen, &tag); if (rc != ASN1_SUCCESS) { shishi_error_set (handle, errorDescription); return SHISHI_ASN1_ERROR; } lenlen = asn1_get_length_der ((unsigned char *) *der + derlen, mylen - derlen, &derlen2); if (lenlen < 0) return SHISHI_ASN1_ERROR; if (derlen + derlen2 < mylen) { mylen -= derlen + derlen2; memmove (*der, *der + derlen + derlen2, mylen); } } *len = mylen; return SHISHI_OK; } /** * shishi_asn1_to_der: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 data to convert to DER. * @der: output array that holds DER encoding of @node. * @len: output variable with length of @der output array. * * Extract newly allocated DER representation of specified ASN.1 data. * * Return value: Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR * if DER encoding fails (common reasons for this is that the ASN.1 * is missing required values). **/ int shishi_asn1_to_der (Shishi * handle, Shishi_asn1 node, char **der, size_t *len) { return shishi_asn1_to_der_field (handle, node, "", der, len); } static Shishi_asn1 der2asn1 (Shishi * handle, const char *fieldname, const char *nodename, const char *der, size_t derlen) { char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = ""; Shishi_asn1 structure = NULL; int asn1_result = ASN1_SUCCESS; asn1_result = asn1_create_element (handle->asn1, fieldname, &structure); if (asn1_result != ASN1_SUCCESS) { shishi_error_set (handle, asn1_strerror (asn1_result)); return NULL; } asn1_result = asn1_der_decoding (&structure, (const unsigned char *) der, (int) derlen, errorDescription); if (asn1_result != ASN1_SUCCESS) { asn1_delete_structure (&structure); shishi_error_set (handle, errorDescription); return NULL; } return structure; } /** * shishi_asn1_msgtype: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 type to get msg type for. * * Determine msg-type of ASN.1 type of a packet. Currently this uses * the msg-type field instead of the APPLICATION tag, but this may be * changed in the future. * * Return value: Returns msg-type of ASN.1 type, 0 on failure. **/ Shishi_msgtype shishi_asn1_msgtype (Shishi * handle, Shishi_asn1 node) { asn1_retCode rc; uint32_t msgtype; /* XXX Use APPLICATION tag instead. */ rc = shishi_asn1_read_uint32 (handle, node, "msg-type", &msgtype); if (rc != SHISHI_OK) return 0; return msgtype; } /** * shishi_der_msgtype: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Determine msg-type of DER coded data of a packet. * * Return value: Returns msg-type of DER data, 0 on failure. **/ Shishi_msgtype shishi_der_msgtype (Shishi * handle, const char *der, size_t derlen) { /* XXX Doesn't handle APPLICATION TAGS > 31. */ if (derlen > 1 && *der >= 0x60 && (unsigned char) *der <= 0x7F) return *der - 0x60; else return 0; } /** * shishi_der2asn1: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Convert arbitrary DER data of a packet to a ASN.1 type. * * Return value: Returns newly allocate ASN.1 corresponding to DER * data, or %NULL on failure. **/ Shishi_asn1 shishi_der2asn1 (Shishi * handle, const char *der, size_t derlen) { Shishi_asn1 node = NULL; switch (shishi_der_msgtype (handle, der, derlen)) { case SHISHI_MSGTYPE_AS_REQ: node = shishi_der2asn1_asreq (handle, der, derlen); break; case SHISHI_MSGTYPE_AS_REP: node = shishi_der2asn1_asrep (handle, der, derlen); break; case SHISHI_MSGTYPE_TGS_REQ: node = shishi_der2asn1_tgsreq (handle, der, derlen); break; case SHISHI_MSGTYPE_TGS_REP: node = shishi_der2asn1_tgsrep (handle, der, derlen); break; case SHISHI_MSGTYPE_AP_REQ: node = shishi_der2asn1_apreq (handle, der, derlen); break; case SHISHI_MSGTYPE_AP_REP: node = shishi_der2asn1_aprep (handle, der, derlen); break; case SHISHI_MSGTYPE_SAFE: node = shishi_der2asn1_krbsafe (handle, der, derlen); break; case SHISHI_MSGTYPE_PRIV: node = shishi_der2asn1_priv (handle, der, derlen); break; case SHISHI_MSGTYPE_CRED: /* node = shishi_der2asn1_cred (handle, der, derlen); */ break; case SHISHI_MSGTYPE_ERROR: node = shishi_der2asn1_krberror (handle, der, derlen); break; case SHISHI_MSGTYPE_RESERVED16: case SHISHI_MSGTYPE_RESERVED17: default: node = NULL; break; } return node; } /** * shishi_der2asn1_padata: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of PA-DATA and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_padata (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "PA-DATA", "PA-DATA", der, derlen); } /** * shishi_der2asn1_methoddata: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of METHOD-DATA and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_methoddata (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "METHOD-DATA", "METHOD-DATA", der, derlen); } /** * shishi_der2asn1_etype_info: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of ETYPE-INFO and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_etype_info (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "ETYPE-INFO", "ETYPE-INFO", der, derlen); } /** * shishi_der2asn1_etype_info2: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of ETYPE-INFO2 and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_etype_info2 (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "ETYPE-INFO2", "ETYPE-INFO2", der, derlen); } /** * shishi_der2asn1_ticket: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of Ticket and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_ticket (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "Ticket", "Ticket", der, derlen); } /** * shishi_der2asn1_encticketpart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncTicketPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_encticketpart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncTicketPart", "EncTicketPart", der, derlen); } /** * shishi_der2asn1_asreq: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of AS-REQ and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_asreq (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "AS-REQ", "KDC-REQ", der, derlen); } /** * shishi_der2asn1_tgsreq: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of TGS-REQ and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_tgsreq (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "TGS-REQ", "KDC-REQ", der, derlen); } /** * shishi_der2asn1_asrep: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of AS-REP and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_asrep (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "AS-REP", "KDC-REP", der, derlen); } /** * shishi_der2asn1_tgsrep: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of TGS-REP and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_tgsrep (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "TGS-REP", "KDC-REP", der, derlen); } /** * shishi_der2asn1_kdcrep: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of KDC-REP and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_kdcrep (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "KDC-REP", "KDC-REP", der, derlen); } /** * shishi_der2asn1_encasreppart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncASRepPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_encasreppart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncASRepPart", "EncKDCRepPart", der, derlen); } /** * shishi_der2asn1_enctgsreppart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncTGSRepPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_enctgsreppart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncTGSRepPart", "EncKDCRepPart", der, derlen); } /** * shishi_der2asn1_enckdcreppart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncKDCRepPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_enckdcreppart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncKDCRepPart", "EncKDCRepPart", der, derlen); } /** * shishi_der2asn1_authenticator: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of Authenticator and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_authenticator (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "Authenticator", "Authenticator", der, derlen); } /** * shishi_der2asn1_krberror: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of KRB-ERROR and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_krberror (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "KRB-ERROR", "KRB-ERROR", der, derlen); } /** * shishi_der2asn1_krbsafe: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of KRB-SAFE and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_krbsafe (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "KRB-SAFE", "KRB-SAFE", der, derlen); } /** * shishi_der2asn1_priv: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of KRB-PRIV and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_priv (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "KRB-PRIV", "KRB-PRIV", der, derlen); } /** * shishi_der2asn1_encprivpart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncKrbPrivPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_encprivpart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncKrbPrivPart", "EncKrbPrivPart", der, derlen); } /** * shishi_der2asn1_apreq: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of AP-REQ and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_apreq (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "AP-REQ", "AP-REQ", der, derlen); } /** * shishi_der2asn1_aprep: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of AP-REP and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_aprep (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "AP-REP", "AP-REP", der, derlen); } /** * shishi_der2asn1_encapreppart: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of EncAPRepPart and create a ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_encapreppart (Shishi * handle, const char *der, size_t derlen) { return der2asn1 (handle, ASN1NAME "EncAPRepPart", "EncAPRepPart", der, derlen); } /** * shishi_der2asn1_kdcreq: * @handle: shishi handle as allocated by shishi_init(). * @der: input character array with DER encoding. * @derlen: length of input character array with DER encoding. * * Decode DER encoding of AS-REQ, TGS-REQ or KDC-REQ and create a * ASN.1 structure. * * Return value: Returns ASN.1 structure corresponding to DER data. **/ Shishi_asn1 shishi_der2asn1_kdcreq (Shishi * handle, const char *der, size_t derlen) { Shishi_asn1 structure = NULL; structure = shishi_der2asn1_asreq (handle, der, derlen); if (structure == NULL) { printf ("der2asn1_kdcreq: not asreq\n"); shishi_error_printf (handle, "Could not DER decode AS-REQ\n"); structure = shishi_der2asn1_tgsreq (handle, der, derlen); if (structure == NULL) { printf ("der2asn1_kdcreq: not tgsreq\n"); shishi_error_printf (handle, "Could not DER decode TGS-REQ\n"); structure = shishi_der2asn1_kdcreq (handle, der, derlen); if (structure == NULL) { printf ("der2asn1_kdcreq: not kdcreq\n"); shishi_error_printf (handle, "Could not DER decode KDC-REQ\n"); return NULL; } else printf ("der2asn1_kdcreq: kdcreq!!\n"); } } return structure; } /** * shishi_asn1_print: * @handle: shishi handle as allocated by shishi_init(). * @node: ASN.1 data that have field to extract. * @fh: file descriptor to print to, e.g. stdout. * * Print ASN.1 structure in human readable form, typically for * debugging purposes. **/ void shishi_asn1_print (Shishi * handle, Shishi_asn1 node, FILE * fh) { asn1_print_structure (fh, node, "", ASN1_PRINT_NAME_TYPE_VALUE); } shishi-1.0.3/lib/ticket.c0000644000000000000000000002413414273601533012076 00000000000000/* ticket.c --- Low-level ASN.1 Ticket handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #define SHISHI_TICKET_DEFAULT_TKTVNO "5" #define SHISHI_TICKET_DEFAULT_TKTVNO_LEN 0 /** * shishi_ticket: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new ASN.1 Ticket, populated with some * default values. * * Return value: Returns the ticket or NULL on failure. **/ Shishi_asn1 shishi_ticket (Shishi * handle) { Shishi_asn1 node = NULL; int rc; node = shishi_asn1_ticket (handle); if (!node) return NULL; rc = shishi_asn1_write (handle, node, "tkt-vno", SHISHI_TICKET_DEFAULT_TKTVNO, SHISHI_TICKET_DEFAULT_TKTVNO_LEN); if (rc != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_ticket_realm_get: * @handle: shishi handle as allocated by shishi_init(). * @ticket: input variable with ticket info. * @realm: output array with newly allocated name of realm in ticket. * @realmlen: size of output array. * * Extract realm from ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_realm_get (Shishi * handle, Shishi_asn1 ticket, char **realm, size_t *realmlen) { return shishi_asn1_read (handle, ticket, "realm", realm, realmlen); } /** * shishi_ticket_realm_set: * @handle: shishi handle as allocated by shishi_init(). * @ticket: input variable with ticket info. * @realm: input array with name of realm. * * Set the realm field in the Ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_realm_set (Shishi * handle, Shishi_asn1 ticket, const char *realm) { int res; res = shishi_asn1_write (handle, ticket, "realm", realm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_ticket_server: * @handle: Shishi library handle create by shishi_init(). * @ticket: ASN.1 Ticket variable to get server name from. * @server: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @serverlen). * @serverlen: pointer to length of @server on output, excluding terminating * zero. May be %NULL (to only populate @server). * * Represent server principal name in Ticket as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @serverlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_server (Shishi * handle, Shishi_asn1 ticket, char **server, size_t *serverlen) { return shishi_principal_name (handle, ticket, "sname", server, serverlen); } /** * shishi_ticket_sname_set: * @handle: shishi handle as allocated by shishi_init(). * @ticket: Ticket variable to set server name field in. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @sname: input array with principal name. * * Set the server name field in the Ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_sname_set (Shishi * handle, Shishi_asn1 ticket, Shishi_name_type name_type, char *sname[]) { int res = SHISHI_OK; char *buf; int i; asprintf (&buf, "%u", name_type); res = shishi_asn1_write (handle, ticket, "sname.name-type", buf, 0); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, ticket, "sname.name-string", NULL, 0); if (res != SHISHI_OK) return res; i = 1; while (sname[i - 1]) { res = shishi_asn1_write (handle, ticket, "sname.name-string", "NEW", 1); if (res != SHISHI_OK) return res; asprintf (&buf, "sname.name-string.?%d", i); res = shishi_asn1_write (handle, ticket, buf, sname[i - 1], 0); free (buf); if (res != SHISHI_OK) return res; i++; } return SHISHI_OK; } int shishi_ticket_set_server (Shishi * handle, Shishi_asn1 ticket, const char *server) { char *tmpserver; char **serverbuf; char *tokptr = NULL; int res; int i; tmpserver = xstrdup (server); serverbuf = xmalloc (sizeof (*serverbuf)); for (i = 0; (serverbuf[i] = strtok_r (i == 0 ? tmpserver : NULL, "/", &tokptr)); i++) { serverbuf = xrealloc (serverbuf, (i + 2) * sizeof (*serverbuf)); } res = shishi_ticket_sname_set (handle, ticket, SHISHI_NT_PRINCIPAL, serverbuf); if (res != SHISHI_OK) { fprintf (stderr, _("Could not set sname: %s\n"), shishi_error (handle)); return res; } free (serverbuf); free (tmpserver); return SHISHI_OK; } int shishi_ticket_srealmserver_set (Shishi * handle, Shishi_asn1 ticket, const char *realm, const char *server) { int res; res = shishi_ticket_realm_set (handle, ticket, realm); if (res != SHISHI_OK) return res; res = shishi_ticket_set_server (handle, ticket, server); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_ticket_get_enc_part_etype: * @handle: shishi handle as allocated by shishi_init(). * @ticket: Ticket variable to get value from. * @etype: output variable that holds the value. * * Extract Ticket.enc-part.etype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_get_enc_part_etype (Shishi * handle, Shishi_asn1 ticket, int32_t * etype) { int res; res = shishi_asn1_read_int32 (handle, ticket, "enc-part.etype", etype); return res; } int shishi_ticket_decrypt (Shishi * handle, Shishi_asn1 ticket, Shishi_key * key, Shishi_asn1 * encticketpart) { int res; int i; char *buf; size_t buflen; char *cipher; size_t cipherlen; int etype; res = shishi_ticket_get_enc_part_etype (handle, ticket, &etype); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (key)) return SHISHI_TICKET_BAD_KEYTYPE; res = shishi_asn1_read (handle, ticket, "enc-part.cipher", &cipher, &cipherlen); if (res != SHISHI_OK) return res; res = shishi_decrypt (handle, key, SHISHI_KEYUSAGE_ENCTICKETPART, cipher, cipherlen, &buf, &buflen); free (cipher); if (res != SHISHI_OK) { shishi_error_printf (handle, "Ticket decrypt failed, wrong password?\n"); return SHISHI_TICKET_DECRYPT_FAILED; } /* The crypto is so 1980; no length indicator. Trim off pad bytes until we can parse it. */ for (i = 0; i < 8; i++) { if (VERBOSEASN1 (handle)) printf ("Trying with %d pad in enckdcrep...\n", i); *encticketpart = shishi_der2asn1_encticketpart (handle, &buf[0], buflen - i); if (*encticketpart != NULL) break; } if (*encticketpart == NULL) { shishi_error_printf (handle, "Could not DER decode EncTicketPart. " "Password probably correct (decrypt ok) though\n"); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } /** * shishi_ticket_set_enc_part: * @handle: shishi handle as allocated by shishi_init(). * @ticket: Ticket to add enc-part field to. * @etype: encryption type used to encrypt enc-part. * @kvno: key version number. * @buf: input array with encrypted enc-part. * @buflen: size of input array with encrypted enc-part. * * Set the encrypted enc-part field in the Ticket. The encrypted data * is usually created by calling shishi_encrypt() on the DER encoded * enc-part. To save time, you may want to use * shishi_ticket_add_enc_part() instead, which calculates the * encrypted data and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_set_enc_part (Shishi * handle, Shishi_asn1 ticket, int32_t etype, uint32_t kvno, const char *buf, size_t buflen) { int res = SHISHI_OK; res = shishi_asn1_write (handle, ticket, "enc-part.cipher", buf, buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write_int32 (handle, ticket, "enc-part.etype", etype); if (res != SHISHI_OK) return res; if (kvno == UINT32_MAX) res = shishi_asn1_write (handle, ticket, "enc-part.kvno", NULL, 0); else res = shishi_asn1_write_uint32 (handle, ticket, "enc-part.kvno", kvno); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_ticket_add_enc_part: * @handle: shishi handle as allocated by shishi_init(). * @ticket: Ticket to add enc-part field to. * @key: key used to encrypt enc-part. * @encticketpart: EncTicketPart to add. * * Encrypts DER encoded EncTicketPart using key and stores it in the * Ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ticket_add_enc_part (Shishi * handle, Shishi_asn1 ticket, Shishi_key * key, Shishi_asn1 encticketpart) { int res = SHISHI_OK; char *buf; size_t buflen; char *der; size_t derlen; res = shishi_asn1_to_der (handle, encticketpart, &der, &derlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode encticketpart: %s\n", shishi_strerror (res)); return res; } res = shishi_encrypt (handle, key, SHISHI_KEYUSAGE_ENCTICKETPART, der, derlen, &buf, &buflen); free (der); if (res != SHISHI_OK) { shishi_error_printf (handle, "Cannot encrypt encrypted part of ticket\n"); return res; } res = shishi_ticket_set_enc_part (handle, ticket, shishi_key_type (key), shishi_key_version (key), buf, buflen); free (buf); return res; } shishi-1.0.3/lib/utils.c0000644000000000000000000000657514273601533011764 00000000000000/* utils.c --- Auxilliary help functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "utils.h" void _shishi_escapeprint (const char *str, int len) { int i; printf ("\t ;; `"); for (i = 0; i < len; i++) if ((str[i] >= 'A' && str[i] <= 'Z') || (str[i] >= 'a' && str[i] <= 'z') || (str[i] >= '0' && str[i] <= '9') || str[i] == '.') printf ("%c", str[i] & 0xFF); else printf ("\\x%02x", (unsigned) str[i] & 0xFF); printf ("' (length %d bytes)\n", len); } void _shishi_hexprint (const char *str, int len) { int i; printf ("\t ;; "); for (i = 0; i < len; i++) { printf ("%02x ", (unsigned) str[i] & 0xFF); if ((i + 1) % 8 == 0) printf (" "); if ((i + 1) % 16 == 0 && i + 1 < len) printf ("\n\t ;; "); } puts (""); } void _shishi_binprint (const char *str, int len) { int i; printf ("\t ;; "); for (i = 0; i < len; i++) { printf ("%d%d%d%d%d%d%d%d ", str[i] & 0x80 ? 1 : 0, str[i] & 0x40 ? 1 : 0, str[i] & 0x20 ? 1 : 0, str[i] & 0x10 ? 1 : 0, str[i] & 0x08 ? 1 : 0, str[i] & 0x04 ? 1 : 0, str[i] & 0x02 ? 1 : 0, str[i] & 0x01 ? 1 : 0); if ((i + 1) % 3 == 0) printf (" "); if ((i + 1) % 6 == 0 && i + 1 < len) printf ("\n\t ;; "); } puts (""); } void _shishi_bin7print (const char *str, int len) { int i; printf ("\t ;; "); for (i = 0; i < len; i++) { printf ("%d%d%d%d%d%d%d ", str[i] & 0x40 ? 1 : 0, str[i] & 0x20 ? 1 : 0, str[i] & 0x10 ? 1 : 0, str[i] & 0x08 ? 1 : 0, str[i] & 0x04 ? 1 : 0, str[i] & 0x02 ? 1 : 0, str[i] & 0x01 ? 1 : 0); if ((i + 1) % 3 == 0) printf (" "); if ((i + 1) % 6 == 0 && i + 1 < len) printf ("\n\t ;; "); } puts (""); } time_t xtime (time_t * t) { time_t now; now = time (t); if (now == (time_t) - 1) { perror ("time"); abort (); } return now; } time_t shishi_get_date (const char *p, const time_t * now) { struct timespec nowspec = { 0, 0 }; struct timespec thenspec; if (now) nowspec.tv_sec = *now; else nowspec.tv_sec = time (NULL); if (!parse_datetime (&thenspec, p, &nowspec)) { thenspec.tv_sec = (time_t) - 1; thenspec.tv_nsec = 0; } return thenspec.tv_sec; } /* If non-NULL, call this function when memory is exhausted. */ void (*shishi_alloc_fail_function) (void) = 0; void shishi_xalloc_die (void) { if (shishi_alloc_fail_function) (*shishi_alloc_fail_function) (); fflush (stdout); fprintf (stderr, _("%s: Memory allocation failed\n"), PACKAGE); abort (); } shishi-1.0.3/lib/utils.h0000644000000000000000000000215714273601533011761 00000000000000/* utils.h --- Auxilliary help prototypes. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ extern void _shishi_escapeprint (const char *str, int len); extern void _shishi_hexprint (const char *str, int len); extern void _shishi_binprint (const char *str, int len); extern void _shishi_bin7print (const char *str, int len); extern time_t xtime (time_t * t); shishi-1.0.3/lib/aprep.c0000644000000000000000000003046014273601533011721 00000000000000/* aprep.c --- AP-REP functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" #define SHISHI_APREP_DEFAULT_PVNO "5" #define SHISHI_APREP_DEFAULT_PVNO_LEN 0 #define SHISHI_APREP_DEFAULT_MSG_TYPE "15" /* KRB_AP_REP */ #define SHISHI_APREP_DEFAULT_MSG_TYPE_LEN 0 #define SHISHI_APREP_DEFAULT_ENC_PART_ETYPE "0" #define SHISHI_APREP_DEFAULT_ENC_PART_ETYPE_LEN 0 #define SHISHI_APREP_DEFAULT_ENC_PART_KVNO "0" #define SHISHI_APREP_DEFAULT_ENC_PART_KVNO_LEN 0 #define SHISHI_APREP_DEFAULT_ENC_PART_CIPHER "" #define SHISHI_APREP_DEFAULT_ENC_PART_CIPHER_LEN 0 /** * shishi_aprep: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new AP-REP, populated with some default * values. * * Return value: Returns the authenticator or NULL on * failure. **/ Shishi_asn1 shishi_aprep (Shishi * handle) { Shishi_asn1 node; int res; node = shishi_asn1_aprep (handle); if (!node) return NULL; res = shishi_asn1_write (handle, node, "pvno", SHISHI_APREP_DEFAULT_PVNO, SHISHI_APREP_DEFAULT_PVNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "msg-type", SHISHI_APREP_DEFAULT_MSG_TYPE, SHISHI_APREP_DEFAULT_MSG_TYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "enc-part.etype", SHISHI_APREP_DEFAULT_ENC_PART_ETYPE, SHISHI_APREP_DEFAULT_ENC_PART_ETYPE_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "enc-part.kvno", SHISHI_APREP_DEFAULT_ENC_PART_KVNO, SHISHI_APREP_DEFAULT_ENC_PART_KVNO_LEN); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "enc-part.cipher", SHISHI_APREP_DEFAULT_ENC_PART_CIPHER, SHISHI_APREP_DEFAULT_ENC_PART_CIPHER_LEN); if (res != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_aprep_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @aprep: AP-REP to print. * * Print ASCII armored DER encoding of AP-REP to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_print (Shishi * handle, FILE * fh, Shishi_asn1 aprep) { return _shishi_print_armored_data (handle, fh, aprep, "AP-REP", NULL); } /** * shishi_aprep_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @aprep: AP-REP to save. * * Save DER encoding of AP-REP to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_save (Shishi * handle, FILE * fh, Shishi_asn1 aprep) { return _shishi_save_data (handle, fh, aprep, "AP-REP"); } /** * shishi_aprep_to_file: * @handle: shishi handle as allocated by shishi_init(). * @aprep: AP-REP to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write AP-REP to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_to_file (Shishi * handle, Shishi_asn1 aprep, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing AP-REP to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing AP-REP in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_aprep_print (handle, fh, aprep); else res = shishi_aprep_save (handle, fh, aprep); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing AP-REP to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_aprep_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @aprep: output variable with newly allocated AP-REP. * * Read ASCII armored DER encoded AP-REP from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_parse (Shishi * handle, FILE * fh, Shishi_asn1 * aprep) { return _shishi_aprep_input (handle, fh, aprep, 0); } /** * shishi_aprep_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @aprep: output variable with newly allocated AP-REP. * * Read DER encoded AP-REP from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_read (Shishi * handle, FILE * fh, Shishi_asn1 * aprep) { return _shishi_aprep_input (handle, fh, aprep, 1); } /** * shishi_aprep_from_file: * @handle: shishi handle as allocated by shishi_init(). * @aprep: output variable with newly allocated AP-REP. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read AP-REP from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_from_file (Shishi * handle, Shishi_asn1 * aprep, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading AP-REP from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading AP-REP in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_aprep_parse (handle, fh, aprep); else res = shishi_aprep_read (handle, fh, aprep); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading AP-REP from %s...done\n"), filename); return SHISHI_OK; } int shishi_aprep_enc_part_set (Shishi * handle, Shishi_asn1 aprep, int etype, const char *buf, size_t buflen) { int res; res = shishi_asn1_write (handle, aprep, "enc-part.cipher", buf, buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write_integer (handle, aprep, "enc-part.etype", etype); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_aprep_enc_part_add (Shishi * handle, Shishi_asn1 aprep, Shishi_asn1 encticketpart, Shishi_asn1 encapreppart) { int res; char *buf; size_t buflen; char *der; size_t derlen; Shishi_key *key; res = shishi_encticketpart_get_key (handle, encticketpart, &key); if (res != SHISHI_OK) return res; res = shishi_asn1_to_der (handle, encapreppart, &der, &derlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode authenticator: %s\n", shishi_strerror (res)); return !SHISHI_OK; } der = xrealloc (der, derlen + 8); while ((derlen % 8) != 0) { der[derlen] = '\0'; derlen++; } res = shishi_encrypt (handle, key, SHISHI_KEYUSAGE_ENCAPREPPART, der, derlen, &buf, &buflen); free (der); if (res != SHISHI_OK) { shishi_error_printf (handle, "APRep encryption failed\n"); return res; } res = shishi_aprep_enc_part_set (handle, aprep, shishi_key_type (key), buf, buflen); free (buf); return res; } int shishi_aprep_enc_part_make (Shishi * handle, Shishi_asn1 aprep, Shishi_asn1 encapreppart, Shishi_asn1 authenticator, Shishi_asn1 encticketpart) { int res; res = shishi_encapreppart_time_copy (handle, encapreppart, authenticator); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not copy time: %s\n", shishi_error (handle)); return res; } res = shishi_aprep_enc_part_add (handle, aprep, encticketpart, encapreppart); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not add encapreppart: %s\n", shishi_error (handle)); return res; } return SHISHI_OK; } /** * shishi_aprep_get_enc_part_etype: * @handle: shishi handle as allocated by shishi_init(). * @aprep: AP-REP variable to get value from. * @etype: output variable that holds the value. * * Extract AP-REP.enc-part.etype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aprep_get_enc_part_etype (Shishi * handle, Shishi_asn1 aprep, int32_t * etype) { return shishi_asn1_read_int32 (handle, aprep, "enc-part.etype", etype); } int shishi_aprep_decrypt (Shishi * handle, Shishi_asn1 aprep, Shishi_key * key, int keyusage, Shishi_asn1 * encapreppart) { int res; int i; char *buf; size_t buflen; char *cipher; size_t cipherlen; int etype; res = shishi_aprep_get_enc_part_etype (handle, aprep, &etype); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (key)) return SHISHI_APREP_BAD_KEYTYPE; res = shishi_asn1_read (handle, aprep, "enc-part.cipher", &cipher, &cipherlen); if (res != SHISHI_OK) return res; res = shishi_decrypt (handle, key, keyusage, cipher, cipherlen, &buf, &buflen); free (cipher); if (res != SHISHI_OK) { shishi_error_printf (handle, "APRep decryption failed, wrong password?\n"); return res; } /* The crypto is so 1980; no length indicator. Trim off pad bytes until we can parse it. */ for (i = 0; i < 8; i++) { if (VERBOSEASN1 (handle)) printf ("Trying with %d pad in enckdcrep...\n", i); *encapreppart = shishi_der2asn1_encapreppart (handle, &buf[0], buflen - i); if (*encapreppart != NULL) break; } if (*encapreppart == NULL) { shishi_error_printf (handle, "Could not DER decode EncAPRepPart. " "Password probably correct (decrypt ok) though\n"); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } int shishi_aprep_verify (Shishi * handle, Shishi_asn1 authenticator, Shishi_asn1 encapreppart) { char *authenticatorctime; char *encapreppartctime; uint32_t authenticatorcusec, encapreppartcusec; int res; int different; /* 3.2.5. Receipt of KRB_AP_REP message If a KRB_AP_REP message is returned, the client uses the session key from the credentials obtained for the server[3.10] to decrypt the message, and verifies that the timestamp and microsecond fields match those in the Authenticator it sent to the server. If they match, then the client is assured that the server is genuine. The sequence number and subkey (if present) are retained for later use. */ res = shishi_authenticator_ctime (handle, authenticator, &authenticatorctime); if (res != SHISHI_OK) return res; res = shishi_authenticator_cusec_get (handle, authenticator, &authenticatorcusec); if (res != SHISHI_OK) return res; res = shishi_encapreppart_ctime (handle, encapreppart, &encapreppartctime); if (res != SHISHI_OK) return res; res = shishi_encapreppart_cusec_get (handle, encapreppart, &encapreppartcusec); if (res != SHISHI_OK) return res; if (VERBOSE (handle)) { printf ("authenticator cusec %08x ctime %s\n", authenticatorcusec, authenticatorctime); printf ("encapreppart cusec %08x ctime %s\n", encapreppartcusec, encapreppartctime); } different = authenticatorcusec != encapreppartcusec || strcmp (authenticatorctime, encapreppartctime) != 0; free (authenticatorctime); free (encapreppartctime); if (different) return SHISHI_APREP_VERIFY_FAILED; return SHISHI_OK; } shishi-1.0.3/lib/krberror.c0000644000000000000000000011360314273601533012443 00000000000000/* krberror.c --- Functions related to KRB-ERROR packet. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" #define SHISHI_KRB_ERROR_DEFAULT_PVNO "5" #define SHISHI_KRB_ERROR_DEFAULT_PVNO_LEN 0 #define SHISHI_KRB_ERROR_DEFAULT_MSG_TYPE "30" #define SHISHI_KRB_ERROR_DEFAULT_MSG_TYPE_LEN 0 /** * shishi_krberror: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new KRB-ERROR, populated with some default * values. * * Return value: Returns the KRB-ERROR or NULL on failure. **/ Shishi_asn1 shishi_krberror (Shishi * handle) { Shishi_asn1 krberror; struct timeval tv; int rc; rc = gettimeofday (&tv, NULL); if (rc != 0) return NULL; krberror = shishi_asn1_krberror (handle); if (!krberror) return NULL; rc = shishi_asn1_write (handle, krberror, "pvno", SHISHI_KRB_ERROR_DEFAULT_PVNO, SHISHI_KRB_ERROR_DEFAULT_PVNO_LEN); if (rc == SHISHI_OK) rc = shishi_asn1_write (handle, krberror, "msg-type", SHISHI_KRB_ERROR_DEFAULT_MSG_TYPE, SHISHI_KRB_ERROR_DEFAULT_MSG_TYPE_LEN); if (rc == SHISHI_OK) rc = shishi_krberror_susec_set (handle, krberror, tv.tv_usec % 1000000); if (rc == SHISHI_OK) rc = shishi_asn1_write (handle, krberror, "stime", shishi_generalize_now (handle), 0); if (rc != SHISHI_OK) { shishi_error_printf (handle, "shishi_krberror() failed"); shishi_asn1_done (handle, krberror); krberror = NULL; } return krberror; } /** * shishi_krberror_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @krberror: KRB-ERROR to print. * * Print ASCII armored DER encoding of KRB-ERROR to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_print (Shishi * handle, FILE * fh, Shishi_asn1 krberror) { return _shishi_print_armored_data (handle, fh, krberror, "KRB-ERROR", NULL); } /** * shishi_krberror_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @krberror: KRB-ERROR to save. * * Save DER encoding of KRB-ERROR to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_save (Shishi * handle, FILE * fh, Shishi_asn1 krberror) { return _shishi_save_data (handle, fh, krberror, "KRB-ERROR"); } /** * shishi_krberror_to_file: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write KRB-ERROR to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_to_file (Shishi * handle, Shishi_asn1 krberror, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing KRB-ERROR to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing KRB-ERROR in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_krberror_print (handle, fh, krberror); else res = shishi_krberror_save (handle, fh, krberror); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing KRB-ERROR to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_krberror_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @krberror: output variable with newly allocated KRB-ERROR. * * Read ASCII armored DER encoded KRB-ERROR from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_parse (Shishi * handle, FILE * fh, Shishi_asn1 * krberror) { return _shishi_krberror_input (handle, fh, krberror, 0); } /** * shishi_krberror_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @krberror: output variable with newly allocated KRB-ERROR. * * Read DER encoded KRB-ERROR from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_read (Shishi * handle, FILE * fh, Shishi_asn1 * krberror) { return _shishi_krberror_input (handle, fh, krberror, 1); } /** * shishi_krberror_from_file: * @handle: shishi handle as allocated by shishi_init(). * @krberror: output variable with newly allocated KRB-ERROR. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read KRB-ERROR from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_from_file (Shishi * handle, Shishi_asn1 * krberror, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading KRB-ERROR from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading KRB-ERROR in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_krberror_parse (handle, fh, krberror); else res = shishi_krberror_read (handle, fh, krberror); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading KRB-ERROR from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_krberror_build: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * * Finish KRB-ERROR, called before e.g. shishi_krberror_der. This * function removes empty but OPTIONAL fields (such as cname), and * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_build (Shishi * handle, Shishi_asn1 krberror) { char *t; size_t tmplen = sizeof (t); char *tmp; int32_t errc; uint32_t usec; int rc; rc = shishi_krberror_ctime (handle, krberror, &t); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; free (t); if (rc == SHISHI_ASN1_NO_VALUE) { rc = shishi_krberror_remove_ctime (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_cusec (handle, krberror, &usec); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_ASN1_NO_VALUE) { rc = shishi_krberror_remove_cusec (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_crealm (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE) { rc = shishi_krberror_remove_crealm (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_client (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE || (rc == SHISHI_OK && tmplen == 0)) { rc = shishi_krberror_remove_cname (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_realm (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE) { rc = shishi_krberror_set_realm (handle, krberror, ""); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_server (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE || tmplen == 0) { rc = shishi_krberror_remove_sname (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_edata (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE || (rc == SHISHI_OK && tmplen == 0)) { rc = shishi_krberror_remove_edata (handle, krberror); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_errorcode (handle, krberror, &errc); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_ASN1_NO_VALUE) { rc = shishi_krberror_errorcode_set (handle, krberror, SHISHI_KRB_ERR_GENERIC); if (rc != SHISHI_OK) return rc; } rc = shishi_krberror_etext (handle, krberror, &tmp, &tmplen); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT && rc != SHISHI_ASN1_NO_VALUE) return rc; if (rc == SHISHI_OK) free (tmp); if (rc == SHISHI_ASN1_NO_VALUE || (rc == SHISHI_OK && tmplen == 0)) { if (shishi_krberror_errorcode_fast (handle, krberror) == SHISHI_KRB_ERR_GENERIC) rc = shishi_krberror_set_etext (handle, krberror, "Uninitialized error"); else rc = shishi_krberror_remove_etext (handle, krberror); if (rc != SHISHI_OK) return rc; } return SHISHI_OK; } /** * shishi_krberror_der: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @out: output array with newly allocated DER encoding of KRB-ERROR. * @outlen: length of output array with DER encoding of KRB-ERROR. * * DER encode KRB-ERROR. The caller must deallocate the OUT buffer. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_der (Shishi * handle, Shishi_asn1 krberror, char **out, size_t *outlen) { int rc; rc = shishi_krberror_build (handle, krberror); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_to_der (handle, krberror, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_krberror_crealm: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @realm: output array with newly allocated name of realm in KRB-ERROR. * @realmlen: size of output array. * * Extract client realm from KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_crealm (Shishi * handle, Shishi_asn1 krberror, char **realm, size_t *realmlen) { return shishi_asn1_read (handle, krberror, "crealm", realm, realmlen); } /** * shishi_krberror_remove_crealm: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * * Remove client realm field in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_crealm (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "crealm", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_set_crealm: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @crealm: input array with realm. * * Set realm field in krberror to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_crealm (Shishi * handle, Shishi_asn1 krberror, const char *crealm) { int res; res = shishi_asn1_write (handle, krberror, "crealm", crealm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_client: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @client: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Return client principal name in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_client (Shishi * handle, Shishi_asn1 krberror, char **client, size_t *clientlen) { int rc; rc = shishi_principal_name (handle, krberror, "cname", client, clientlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_krberror_set_cname: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @cname: input array with principal name. * * Set principal field in krberror to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_cname (Shishi * handle, Shishi_asn1 krberror, Shishi_name_type name_type, const char *cname[]) { int res; res = shishi_principal_name_set (handle, krberror, "cname", name_type, cname); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_remove_cname: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * * Remove client realm field in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_cname (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "cname", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_client_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror to set client name field in. * @client: zero-terminated string with principal name on RFC 1964 form. * * Set the client name field in the Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_client_set (Shishi * handle, Shishi_asn1 krberror, const char *client) { int res; res = shishi_principal_set (handle, krberror, "cname", client); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_realm: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @realm: output array with newly allocated name of realm in KRB-ERROR. * @realmlen: size of output array. * * Extract (server) realm from KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_realm (Shishi * handle, Shishi_asn1 krberror, char **realm, size_t *realmlen) { return shishi_asn1_read (handle, krberror, "realm", realm, realmlen); } /** * shishi_krberror_set_realm: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @realm: input array with (server) realm. * * Set (server) realm field in krberror to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_realm (Shishi * handle, Shishi_asn1 krberror, const char *realm) { int res; res = shishi_asn1_write (handle, krberror, "realm", realm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_server: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @server: pointer to newly allocated zero terminated string containing * server name. May be %NULL (to only populate @serverlen). * @serverlen: pointer to length of @server on output, excluding terminating * zero. May be %NULL (to only populate @server). * * Return server principal name in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_server (Shishi * handle, Shishi_asn1 krberror, char **server, size_t *serverlen) { int rc; rc = shishi_principal_name (handle, krberror, "sname", server, serverlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_krberror_remove_sname: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror to set server name field in. * * Remove server name field in KRB-ERROR. (Since it is not marked * OPTIONAL in the ASN.1 profile, what is done is to set the name-type * to UNKNOWN and make sure the name-string sequence is empty.) * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_sname (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write_int32 (handle, krberror, "sname.name-type", SHISHI_NT_UNKNOWN); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, krberror, "sname.name-string", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_set_sname: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @sname: input array with principal name. * * Set principal field in krberror to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_sname (Shishi * handle, Shishi_asn1 krberror, Shishi_name_type name_type, const char *sname[]) { int res; res = shishi_principal_name_set (handle, krberror, "sname", name_type, sname); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_server_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror to set server name field in. * @server: zero-terminated string with principal name on RFC 1964 form. * * Set the server name field in the Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_server_set (Shishi * handle, Shishi_asn1 krberror, const char *server) { int res; res = shishi_principal_set (handle, krberror, "sname", server); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_ctime: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror to set client name field in. * @t: newly allocated zero-terminated output array with client time. * * Extract client time from KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_ctime (Shishi * handle, Shishi_asn1 krberror, char **t) { return shishi_time (handle, krberror, "ctime", t); } /** * shishi_krberror_ctime_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * @t: string with generalized time value to store in Krberror. * * Store client time in Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_ctime_set (Shishi * handle, Shishi_asn1 krberror, const char *t) { int res; if (t) res = shishi_asn1_write (handle, krberror, "ctime", t, SHISHI_GENERALIZEDTIME_LENGTH); else res = shishi_asn1_write (handle, krberror, "ctime", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_remove_ctime: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * * Remove client time field in Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_ctime (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "ctime", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_cusec: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * @cusec: output integer with client microseconds field. * * Extract client microseconds field from Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_cusec (Shishi * handle, Shishi_asn1 krberror, uint32_t * cusec) { int res; res = shishi_asn1_read_uint32 (handle, krberror, "cusec", cusec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_cusec_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @cusec: client microseconds to set in krberror, 0-999999. * * Set the cusec field in the Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_cusec_set (Shishi * handle, Shishi_asn1 krberror, uint32_t cusec) { int res; res = shishi_asn1_write_uint32 (handle, krberror, "cusec", cusec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_remove_cusec: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * * Remove client usec field in Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_cusec (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "cusec", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_stime: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror to set client name field in. * @t: newly allocated zero-terminated output array with server time. * * Extract server time from KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_stime (Shishi * handle, Shishi_asn1 krberror, char **t) { return shishi_time (handle, krberror, "stime", t); } /** * shishi_krberror_stime_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * @t: string with generalized time value to store in Krberror. * * Store server time in Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_stime_set (Shishi * handle, Shishi_asn1 krberror, const char *t) { int res; res = shishi_asn1_write (handle, krberror, "stime", t, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_susec: * @handle: shishi handle as allocated by shishi_init(). * @krberror: Krberror as allocated by shishi_krberror(). * @susec: output integer with server microseconds field. * * Extract server microseconds field from Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_susec (Shishi * handle, Shishi_asn1 krberror, uint32_t * susec) { int res; res = shishi_asn1_read_uint32 (handle, krberror, "susec", susec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_susec_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @susec: server microseconds to set in krberror, 0-999999. * * Set the susec field in the Krberror. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_susec_set (Shishi * handle, Shishi_asn1 krberror, uint32_t susec) { int res; res = shishi_asn1_write_uint32 (handle, krberror, "susec", susec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_errorcode: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * @errorcode: output integer KRB-ERROR error code. * * Extract error code from KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_errorcode (Shishi * handle, Shishi_asn1 krberror, int32_t * errorcode) { return shishi_asn1_read_int32 (handle, krberror, "error-code", errorcode); } /** * shishi_krberror_errorcode_fast: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * * Get error code from KRB-ERROR, without error checking. * * Return value: Return error code (see shishi_krberror_errorcode()) * directly, or -1 on error. **/ int shishi_krberror_errorcode_fast (Shishi * handle, Shishi_asn1 krberror) { int i; if (shishi_krberror_errorcode (handle, krberror, &i) != SHISHI_OK) i = -1; return i; } /** * shishi_krberror_errorcode_set: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code to set. * @errorcode: new error code to set in krberror. * * Set the error-code field to a new error code. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_errorcode_set (Shishi * handle, Shishi_asn1 krberror, int errorcode) { int res; res = shishi_asn1_write_int32 (handle, krberror, "error-code", errorcode); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_etext: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * @etext: output array with newly allocated error text. * @etextlen: output length of error text. * * Extract additional error text from server (possibly empty). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_etext (Shishi * handle, Shishi_asn1 krberror, char **etext, size_t *etextlen) { return shishi_asn1_read (handle, krberror, "e-text", etext, etextlen); } /** * shishi_krberror_set_etext: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @etext: input array with error text to set. * * Set error text (e-text) field in KRB-ERROR to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_etext (Shishi * handle, Shishi_asn1 krberror, const char *etext) { int res; res = shishi_asn1_write (handle, krberror, "e-text", etext, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_remove_etext: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * * Remove error text (e-text) field in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_etext (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "e-text", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_edata: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * @edata: output array with newly allocated error data. * @edatalen: output length of error data. * * Extract additional error data from server (possibly empty). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_edata (Shishi * handle, Shishi_asn1 krberror, char **edata, size_t *edatalen) { return shishi_asn1_read (handle, krberror, "e-data", edata, edatalen); } /** * shishi_krberror_methoddata: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * @methoddata: output ASN.1 METHOD-DATA. * * Extract METHOD-DATA ASN.1 object from the e-data field. The e-data * field will only contain a METHOD-DATA if the krberror error code is * %SHISHI_KDC_ERR_PREAUTH_REQUIRED. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_methoddata (Shishi * handle, Shishi_asn1 krberror, Shishi_asn1 * methoddata) { int rc; *methoddata = NULL; if (shishi_krberror_errorcode_fast (handle, krberror) == SHISHI_KDC_ERR_PREAUTH_REQUIRED) { char *buf; size_t len; rc = shishi_krberror_edata (handle, krberror, &buf, &len); if (rc != SHISHI_OK) return rc; *methoddata = shishi_der2asn1_methoddata (handle, buf, len); free (buf); if (!*methoddata) return SHISHI_ASN1_ERROR; } return SHISHI_OK; } /** * shishi_krberror_set_edata: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * @edata: input array with error text to set. * * Set error text (e-data) field in KRB-ERROR to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_set_edata (Shishi * handle, Shishi_asn1 krberror, const char *edata) { int res; res = shishi_asn1_write (handle, krberror, "e-data", edata, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_remove_edata: * @handle: shishi handle as allocated by shishi_init(). * @krberror: krberror as allocated by shishi_krberror(). * * Remove error text (e-data) field in KRB-ERROR. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_remove_edata (Shishi * handle, Shishi_asn1 krberror) { int res; res = shishi_asn1_write (handle, krberror, "e-data", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_krberror_pretty_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle opened for writing. * @krberror: KRB-ERROR structure with error code. * * Print KRB-ERROR error condition and some explanatory text to file * descriptor. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_krberror_pretty_print (Shishi * handle, FILE * fh, Shishi_asn1 krberror) { char *buf; size_t len; int res; if (VERBOSEASN1 (handle)) shishi_krberror_print (handle, fh, krberror); if (shishi_krberror_errorcode_fast (handle, krberror) == SHISHI_KRB_ERR_GENERIC) { fprintf (fh, "Generic error from server:\n"); res = shishi_krberror_etext (handle, krberror, &buf, &len); if (res == SHISHI_OK && len > 0) { buf[len] = '\0'; fprintf (fh, "%s\n", buf); free (buf); } } else { fprintf (fh, "Error code from server:\n%s\n", shishi_krberror_message (handle, krberror)); res = shishi_krberror_etext (handle, krberror, &buf, &len); if (res == SHISHI_OK && len > 0) { buf[len] = '\0'; fprintf (fh, "Additional error message from server:\n%s\n", buf); free (buf); } if (shishi_krberror_errorcode_fast (handle, krberror) == SHISHI_KDC_ERR_PREAUTH_REQUIRED) { Shishi_asn1 pas; size_t i, n; res = shishi_krberror_methoddata (handle, krberror, &pas); if (res != SHISHI_OK) return res; if (VERBOSEASN1 (handle)) shishi_methoddata_print (handle, stdout, pas); res = shishi_asn1_number_of_elements (handle, pas, "", &n); if (res == SHISHI_OK) { fprintf (fh, "Types of PA-DATA in KRB-ERROR: "); for (i = 1; i <= n; i++) { char *format = xasprintf ("?%zu.padata-type", i); int32_t padatatype; if (i > 1) fprintf (fh, ", "); res = shishi_asn1_read_int32 (handle, pas, format, &padatatype); if (res == SHISHI_OK) printf ("%d", padatatype); free (format); } fprintf (fh, ".\n"); } shishi_asn1_done (handle, pas); } } return SHISHI_OK; } struct krb_error_msgs { int errorcode; const char *message; }; static const struct krb_error_msgs _shishi_krberror_messages[SHISHI_LAST_ERROR_CODE] = { {SHISHI_KDC_ERR_NONE, N_("No error")}, {SHISHI_KDC_ERR_NAME_EXP, N_("Client's entry in database has expired")}, {SHISHI_KDC_ERR_SERVICE_EXP, N_("Server's entry in database has expired")}, {SHISHI_KDC_ERR_BAD_PVNO, N_("Requested protocol version number not supported")}, {SHISHI_KDC_ERR_C_OLD_MAST_KVNO, N_("Client's key encrypted in old master key")}, {SHISHI_KDC_ERR_S_OLD_MAST_KVNO, N_("Server's key encrypted in old master key")}, {SHISHI_KDC_ERR_C_PRINCIPAL_UNKNOWN, N_("Client not found in database")}, {SHISHI_KDC_ERR_S_PRINCIPAL_UNKNOWN, N_("Server not found in database")}, {SHISHI_KDC_ERR_PRINCIPAL_NOT_UNIQUE, N_("Multiple principal entries in database")}, {SHISHI_KDC_ERR_NULL_KEY, N_("The client or server has a null key")}, {SHISHI_KDC_ERR_CANNOT_POSTDATE, N_("Ticket not eligible for postdating")}, {SHISHI_KDC_ERR_NEVER_VALID, N_("Requested start time is later than end time")}, {SHISHI_KDC_ERR_POLICY, N_("KDC policy rejects request")}, {SHISHI_KDC_ERR_BADOPTION, N_("KDC cannot accommodate requested option")}, {SHISHI_KDC_ERR_ETYPE_NOSUPP, N_("KDC has no support for encryption type")}, {SHISHI_KDC_ERR_SUMTYPE_NOSUPP, N_("KDC has no support for checksum type")}, {SHISHI_KDC_ERR_PADATA_TYPE_NOSUPP, N_("KDC has no support for padata type")}, {SHISHI_KDC_ERR_TRTYPE_NOSUPP, N_("KDC has no support for transited type")}, {SHISHI_KDC_ERR_CLIENT_REVOKED, N_("Clients credentials have been revoked")}, {SHISHI_KDC_ERR_SERVICE_REVOKED, N_("Credentials for server have been revoked")}, {SHISHI_KDC_ERR_TGT_REVOKED, N_("TGT has been revoked")}, {SHISHI_KDC_ERR_CLIENT_NOTYET, N_("Client not yet valid - try again later")}, {SHISHI_KDC_ERR_SERVICE_NOTYET, N_("Server not yet valid - try again later")}, {SHISHI_KDC_ERR_KEY_EXPIRED, N_("Password has expired ")}, {SHISHI_KDC_ERR_PREAUTH_FAILED, N_("Pre-authentication information was invalid")}, {SHISHI_KDC_ERR_PREAUTH_REQUIRED, N_("Additional pre-authentication required")}, {SHISHI_KDC_ERR_SERVER_NOMATCH, N_("Requested server and ticket don't match")}, {SHISHI_KDC_ERR_MUST_USE_USER2USER, N_("Server principal valid for user2user only")}, {SHISHI_KDC_ERR_PATH_NOT_ACCPETED, N_("KDC Policy rejects transited path")}, {SHISHI_KDC_ERR_SVC_UNAVAILABLE, N_("A service is not available")}, {SHISHI_KRB_AP_ERR_BAD_INTEGRITY, N_("Integrity check on decrypted field failed")}, {SHISHI_KRB_AP_ERR_TKT_EXPIRED, N_("Ticket expired")}, {SHISHI_KRB_AP_ERR_TKT_NYV, N_("Ticket not yet valid")}, {SHISHI_KRB_AP_ERR_REPEAT, N_("Request is a replay")}, {SHISHI_KRB_AP_ERR_NOT_US, N_("The ticket isn't for us")}, {SHISHI_KRB_AP_ERR_BADMATCH, N_("Ticket and authenticator don't match")}, {SHISHI_KRB_AP_ERR_SKEW, N_("Clock skew too great")}, {SHISHI_KRB_AP_ERR_BADADDR, N_("Incorrect net address")}, {SHISHI_KRB_AP_ERR_BADVERSION, N_("Protocol version mismatch")}, {SHISHI_KRB_AP_ERR_MSG_TYPE, N_("Invalid msg type")}, {SHISHI_KRB_AP_ERR_MODIFIED, N_("Message stream modified")}, {SHISHI_KRB_AP_ERR_BADORDER, N_("Message out of order")}, {SHISHI_KRB_AP_ERR_BADKEYVER, N_("Specified version of key is not available")}, {SHISHI_KRB_AP_ERR_NOKEY, N_("Service key not available")}, {SHISHI_KRB_AP_ERR_MUT_FAIL, N_("Mutual authentication failed")}, {SHISHI_KRB_AP_ERR_BADDIRECTION, N_("Incorrect message direction")}, {SHISHI_KRB_AP_ERR_METHOD, N_("Alternative authentication method required")}, {SHISHI_KRB_AP_ERR_BADSEQ, N_("Incorrect sequence number in message")}, {SHISHI_KRB_AP_ERR_INAPP_CKSUM, N_("Inappropriate type of checksum in message")}, {SHISHI_KRB_AP_PATH_NOT_ACCEPTED, N_("Policy rejects transited path")}, {SHISHI_KRB_ERR_RESPONSE_TOO_BIG, N_("Response too big for UDP, retry with TCP")}, {SHISHI_KRB_ERR_GENERIC, N_("Generic error (description in e-text)")}, {SHISHI_KRB_ERR_FIELD_TOOLONG, N_("Field is too long for this implementation")}, {SHISHI_KDC_ERROR_CLIENT_NOT_TRUSTED, N_("(pkinit)")}, {SHISHI_KDC_ERROR_KDC_NOT_TRUSTED, N_("(pkinit)")}, {SHISHI_KDC_ERROR_INVALID_SIG, N_("(pkinit)")}, {SHISHI_KDC_ERR_KEY_TOO_WEAK, N_("(pkinit)")}, {SHISHI_KDC_ERR_CERTIFICATE_MISMATCH, N_("(pkinit)")}, {SHISHI_KRB_AP_ERR_NO_TGT, N_("(user-to-user)")}, {SHISHI_KDC_ERR_WRONG_REALM, N_("(user-to-user)")}, {SHISHI_KRB_AP_ERR_USER_TO_USER_REQUIRED, N_("(user-to-user)")}, {SHISHI_KDC_ERR_CANT_VERIFY_CERTIFICATE, N_("(pkinit)")}, {SHISHI_KDC_ERR_INVALID_CERTIFICATE, N_("(pkinit)")}, {SHISHI_KDC_ERR_REVOKED_CERTIFICATE, N_("(pkinit)")}, {SHISHI_KDC_ERR_REVOCATION_STATUS_UNKNOWN, N_("(pkinit)")}, {SHISHI_KDC_ERR_REVOCATION_STATUS_UNAVAILABLE, N_("(pkinit)")}, {SHISHI_KDC_ERR_CLIENT_NAME_MISMATCH, N_("(pkinit)")}, {SHISHI_KDC_ERR_KDC_NAME_MISMATCH, N_("(pkinit)")} }; /** * shishi_krberror_errorcode_message: * @handle: shishi handle as allocated by shishi_init(). * @errorcode: integer KRB-ERROR error code. * * Get human readable string describing KRB-ERROR code. * * Return value: Return a string describing error code. This function * will always return a string even if the error code * isn't known. **/ const char * shishi_krberror_errorcode_message (Shishi * handle, int errorcode) { int i; char *p; for (i = 0; i < SHISHI_LAST_ERROR_CODE; i++) { if (errorcode == _shishi_krberror_messages[i].errorcode) return _(_shishi_krberror_messages[i].message); } /* XXX memory leak */ asprintf (&p, _("Unknown KRB-ERROR error code %d."), errorcode); return p; } /** * shishi_krberror_message: * @handle: shishi handle as allocated by shishi_init(). * @krberror: KRB-ERROR structure with error code. * * Extract error code (see shishi_krberror_errorcode_fast()) and * return error message (see shishi_krberror_errorcode_message()). * * Return value: Return a string describing error code. This function * will always return a string even if the error code * isn't known. **/ const char * shishi_krberror_message (Shishi * handle, Shishi_asn1 krberror) { return shishi_krberror_errorcode_message (handle, shishi_krberror_errorcode_fast (handle, krberror)); } shishi-1.0.3/lib/internal.h0000644000000000000000000000741214273601533012434 00000000000000/* internal.h --- Internal header file for Shishi. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef _INTERNAL_H # define _INTERNAL_H # if HAVE_CONFIG_H # include "config.h" # endif # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # if !HAVE_DECL_H_ERRNO /*extern int h_errno;*/ # endif # include # include # include # ifdef HAVE_NETINET_IN6_H # include # endif # include # ifdef HAVE_SYSLOG_H # include # endif # include "gettext.h" # include "xvasprintf.h" # include "base64.h" # include "parse-datetime.h" # include "read-file.h" # include "timespec.h" # include "xalloc.h" # include "xgethostname.h" # include "xgetdomainname.h" # include "xstrndup.h" # include "shishi.h" # define _(String) dgettext (PACKAGE, String) # define gettext_noop(String) String # define N_(String) gettext_noop (String) # define MAX_KEY_LEN 32 # define MAX_RANDOM_LEN 32 # define MAX_HASH_LEN 32 # define MAX_CKSUM_LEN 32 # define SHISHI_VERBOSE_NOISE (1<<1) # define SHISHI_VERBOSE_ASN1 (1<<2) # define SHISHI_VERBOSE_CRYPTO (1<<3) # define SHISHI_VERBOSE_CRYPTO_NOISE (1<<4) # define KRBTGT "krbtgt" # define PRINCIPAL_DELIMITER "/" # define VERBOSENOISE(h) (h->verbose & SHISHI_VERBOSE_NOISE) # define VERBOSEASN1(h) (h->verbose & SHISHI_VERBOSE_ASN1) # define VERBOSECRYPTO(h) (h->verbose & SHISHI_VERBOSE_CRYPTO) # define VERBOSECRYPTONOISE(h) (h->verbose & SHISHI_VERBOSE_CRYPTO_NOISE) # define VERBOSES (SHISHI_VERBOSE_ASN1 | \ SHISHI_VERBOSE_CRYPTO | \ SHISHI_VERBOSE_NOISE | \ SHISHI_VERBOSE_CRYPTO_NOISE) # define VERBOSE(h) (h->verbose & ~VERBOSES) /* Transports */ enum { UDP, TCP, TLS }; struct Shishi_kdcinfo { int transport; char *hostname; char *port; }; struct Shishi_realminfo { char *name; struct Shishi_kdcinfo *kdcaddresses; size_t nkdcaddresses; char **serverwildcards; size_t nserverwildcards; }; struct Shishi { Shishi_asn1 asn1; int verbose; int outputtype; char *default_realm; char *default_principal; size_t kdctimeout; size_t kdcretries; int ticketlife; int renewlife; int32_t *clientkdcetypes; size_t nclientkdcetypes; int32_t *authorizationtypes; size_t nauthorizationtypes; struct Shishi_realminfo *realminfos; size_t nrealminfos; char error[1024]; char gztime_buf[40]; char *userdirectory; char *usercfgfile; char *tktsdefaultfile; char *ccachedefault; char *hostkeysdefaultfile; char *x509cafile; char *x509certfile; char *x509keyfile; char *stringprocess; Shishi_tkts *tkts; shishi_prompt_password_func prompt_passwd; }; # define TICKETLIFE (60*60*8) /* Work day */ # define RENEWLIFE (60*60*24*7) /* Week */ #endif /* _INTERNAL_H */ shishi-1.0.3/lib/starttls.c0000644000000000000000000002500214273601533012466 00000000000000/* starttls.c --- Network I/O functions for Shishi over TLS. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include #include "starttls.h" /* Initialize TLS subsystem. Typically invoked by shishi_init. */ int _shishi_tls_init (Shishi * handle) { int rc; rc = gnutls_global_init (); if (rc != GNUTLS_E_SUCCESS) { shishi_warn (handle, "TLS initialization failed: %s", gnutls_strerror (rc)); return SHISHI_CRYPTO_INTERNAL_ERROR; } return SHISHI_OK; } /* Deinitialize TLS subsystem. Typically invoked by shishi_done. */ int _shishi_tls_done (Shishi * handle) { /* XXX call gnutls_global_deinit here. But what if application uses tls? what if more than one shishi handle is allocated? */ return SHISHI_OK; } /* * Alternative approach: First send KDC-REQ in clear with PA-STARTTLS * preauth data, and have server respond with something saying it is * ready to go on (what should that packet look like??), and then * start tls on that session. If server doesn't support PA-STARTTLS, * it will simply complain. For udp we shouldn't do anything at all. * * Simpler: Use leading reserved bit in TCP length field to mean * STARTTLS. (Probably better to have it mean that a new octet is * present, and that a 0 in that field means STARTTLS, and all other * fields are reserved, for future extensions.) Yup, see complete * writeup in manual. * * Also need to add code to map client certificate X.509 into pre * authenticated principal? * * Derive EncKDCRepPart key from TLS PRF? Hm. * * The code currently implements rfc5021.txt and * draft-josefsson-kerberos5-starttls-02.txt. */ #define STARTTLS_CLIENT_REQUEST "\x80\x00\x00\x01" #define STARTTLS_SERVER_ACCEPT "\x00\x00\x00\x00" #define STARTTLS_LEN 4 #define C2I(buf) ((buf[3] & 0xFF) | \ ((buf[2] & 0xFF) << 8) | \ ((buf[1] & 0xFF) << 16) | \ ((buf[0] & 0xFF) << 24)) /* Negotiate TLS and send and receive packets on an open socket. */ static int _shishi_sendrecv_tls1 (Shishi * handle, int sockfd, gnutls_session_t session, const char *indata, size_t inlen, char **outdata, size_t *outlen, size_t timeout, bool have_cas) { int ret; ssize_t bytes_sent, bytes_read; char extbuf[STARTTLS_LEN + 1]; static size_t session_data_size = 0; static void *session_data = NULL; char tmpbuf[4]; unsigned int status; bytes_sent = write (sockfd, STARTTLS_CLIENT_REQUEST, STARTTLS_LEN); if (bytes_sent != STARTTLS_LEN) return SHISHI_SENDTO_ERROR; bytes_read = read (sockfd, extbuf, sizeof (extbuf)); if (bytes_read != STARTTLS_LEN || memcmp (extbuf, STARTTLS_SERVER_ACCEPT, STARTTLS_LEN) != 0) return SHISHI_RECVFROM_ERROR; gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) (unsigned long) sockfd); if (session_data_size > 0) gnutls_session_set_data (session, session_data, session_data_size); ret = gnutls_handshake (session); if (ret < 0) { shishi_error_printf (handle, "TLS handshake failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_RECVFROM_ERROR; } if (gnutls_session_is_resumed (session) != 0) shishi_error_printf (handle, "TLS handshake completed (resumed)"); else shishi_error_printf (handle, "TLS handshake completed (not resumed)"); if (have_cas) { ret = gnutls_certificate_verify_peers2 (session, &status); if (ret != 0 || status != 0) { shishi_error_printf (handle, "TLS verification of CA failed (%d/%u)", ret, status); return SHISHI_RECVFROM_ERROR; } /* XXX: We need to verify the CA cert further here. */ } if (session_data_size == 0) { ret = gnutls_session_get_data (session, NULL, &session_data_size); if (ret < 0) { shishi_error_printf (handle, "TLS gsgd(1) failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_RECVFROM_ERROR; } session_data = xmalloc (session_data_size); ret = gnutls_session_get_data (session, session_data, &session_data_size); if (ret < 0) { shishi_error_printf (handle, "TLS gsgd(2) failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_RECVFROM_ERROR; } } tmpbuf[3] = inlen & 0xFF; tmpbuf[2] = (inlen >> 8) & 0xFF; tmpbuf[1] = (inlen >> 16) & 0xFF; tmpbuf[0] = (inlen >> 24) & 0xFF; bytes_sent = gnutls_record_send (session, tmpbuf, 4); if (bytes_sent != 4) { shishi_error_printf (handle, "Bad TLS write (%zd < 4)", bytes_sent); return SHISHI_SENDTO_ERROR; } bytes_sent = gnutls_record_send (session, indata, inlen); if (bytes_sent != (ssize_t) inlen) { shishi_error_printf (handle, "Bad TLS write (%zd < %zu)", bytes_sent, inlen); return SHISHI_SENDTO_ERROR; } bytes_read = gnutls_record_recv (session, tmpbuf, 4); if (bytes_read != 4) { shishi_error_printf (handle, "Bad TLS read (%zd < 4)", bytes_read); return SHISHI_SENDTO_ERROR; } /* XXX sanities input. */ *outlen = C2I (tmpbuf); *outdata = xmalloc (*outlen); bytes_read = gnutls_record_recv (session, *outdata, *outlen); if (bytes_read == 0) { shishi_error_printf (handle, "Peer has closed the TLS connection"); free (*outdata); return SHISHI_RECVFROM_ERROR; } else if (bytes_read < 0) { shishi_error_printf (handle, "TLS Error (%d): %s", ret, gnutls_strerror (ret)); free (*outdata); return SHISHI_RECVFROM_ERROR; } else if (bytes_read != (ssize_t) * outlen) { shishi_error_printf (handle, "TLS Read error (%zu != %zd)", *outlen, bytes_read); free (*outdata); return SHISHI_RECVFROM_ERROR; } do ret = gnutls_bye (session, GNUTLS_SHUT_RDWR); while (ret == GNUTLS_E_INTERRUPTED || ret == GNUTLS_E_AGAIN); if (ret != GNUTLS_E_SUCCESS) shishi_error_printf (handle, "TLS Disconnected failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_OK; } /* Send request to KDC over TLS, receive reply, and disconnect. */ int _shishi_sendrecv_tls (Shishi * handle, struct addrinfo *ai, const char *indata, size_t inlen, char **outdata, size_t *outlen) { gnutls_session_t session; gnutls_anon_client_credentials_t anoncred; gnutls_certificate_credentials_t x509cred; int sockfd; int ret, outerr; const char *cafile = shishi_x509ca_default_file (handle); const char *certfile = shishi_x509cert_default_file (handle); const char *keyfile = shishi_x509key_default_file (handle); bool have_cas = false; sockfd = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (sockfd < 0) { shishi_error_set (handle, strerror (errno)); return SHISHI_SOCKET_ERROR; } if (connect (sockfd, ai->ai_addr, ai->ai_addrlen) != 0) { shishi_error_set (handle, strerror (errno)); close (sockfd); return SHISHI_BIND_ERROR; } ret = gnutls_init (&session, GNUTLS_CLIENT); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS init failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } ret = gnutls_priority_set_direct (session, "NORMAL:+ANON-ECDH:+ANON-DH", NULL); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS psd failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } ret = gnutls_anon_allocate_client_credentials (&anoncred); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS aacs failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } ret = gnutls_credentials_set (session, GNUTLS_CRD_ANON, anoncred); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS cs failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } ret = gnutls_certificate_allocate_credentials (&x509cred); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS cac failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } ret = gnutls_certificate_set_x509_trust_file (x509cred, cafile, GNUTLS_X509_FMT_PEM); if (ret != GNUTLS_E_SUCCESS && ret != GNUTLS_E_FILE_ERROR) { shishi_error_printf (handle, "TLS csxtf failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } else if (ret == GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "Loaded CA certificate"); have_cas = true; } ret = gnutls_certificate_set_x509_key_file (x509cred, certfile, keyfile, GNUTLS_X509_FMT_PEM); if (ret != GNUTLS_E_SUCCESS && ret != GNUTLS_E_FILE_ERROR) { shishi_error_printf (handle, "TLS csxkf failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } else if (ret == GNUTLS_E_SUCCESS) shishi_error_printf (handle, "Loaded client certificate"); ret = gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, x509cred); if (ret != GNUTLS_E_SUCCESS) { shishi_error_printf (handle, "TLS cs X.509 failed (%d): %s", ret, gnutls_strerror (ret)); return SHISHI_CRYPTO_ERROR; } /* Core part. */ outerr = _shishi_sendrecv_tls1 (handle, sockfd, session, indata, inlen, outdata, outlen, handle->kdctimeout, have_cas); ret = shutdown (sockfd, SHUT_RDWR); if (ret != 0) { shishi_error_printf (handle, "Shutdown failed (%d): %s", ret, strerror (errno)); if (outerr == SHISHI_OK) outerr = SHISHI_CLOSE_ERROR; } ret = close (sockfd); if (ret != 0) { shishi_error_printf (handle, "Close failed (%d): %s", ret, strerror (errno)); if (outerr == SHISHI_OK) outerr = SHISHI_CLOSE_ERROR; } gnutls_deinit (session); gnutls_anon_free_client_credentials (anoncred); return outerr; } shishi-1.0.3/lib/safe.c0000644000000000000000000003676414273601533011545 00000000000000/* safe.c --- Application data integrity protection. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" struct Shishi_safe { Shishi *handle; Shishi_key *key; Shishi_asn1 safe; unsigned long seqnumber; }; /** * shishi_safe: * @handle: shishi handle as allocated by shishi_init(). * @safe: pointer to new structure that holds information about SAFE exchange * * Create a new SAFE exchange. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe (Shishi * handle, Shishi_safe ** safe) { Shishi_safe *lsafe; struct timeval tv; char *usec; int rc; *safe = xcalloc (1, sizeof (**safe)); lsafe = *safe; lsafe->handle = handle; rc = shishi_key (handle, &lsafe->key); if (rc != SHISHI_OK) return rc; lsafe->safe = shishi_asn1_krbsafe (handle); if (lsafe->safe == NULL) return SHISHI_ASN1_ERROR; rc = shishi_asn1_write (handle, lsafe->safe, "pvno", "5", 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "msg-type", "20", 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.seq-number", NULL, 0); if (rc != SHISHI_OK) return rc; rc = gettimeofday (&tv, NULL); if (rc != 0) return SHISHI_GETTIMEOFDAY_ERROR; asprintf (&usec, "%ld", tv.tv_usec % 1000000); rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.usec", usec, 0); free (usec); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.timestamp", shishi_generalize_time (handle, time (NULL)), 0); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.s-address.addr-type", "3", 0); /* directional */ if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.s-address.address", "\x00\x00\x00\x00", 4); /* sender */ if (rc != SHISHI_OK) return rc; rc = shishi_asn1_write (handle, lsafe->safe, "safe-body.r-address", NULL, 0); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_safe_done: * @safe: structure that holds information about SAFE exchange * * Deallocate resources associated with SAFE exchange. This should be * called by the application when it no longer need to utilize the * SAFE exchange handle. **/ void shishi_safe_done (Shishi_safe * safe) { shishi_asn1_done (safe->handle, safe->safe); shishi_key_done (safe->key); free (safe); } /** * shishi_safe_key: * @safe: structure that holds information about SAFE exchange * * Get key structured from SAFE exchange. * * Return value: Returns the key used in the SAFE exchange, or NULL if * not yet set or an error occured. **/ Shishi_key * shishi_safe_key (Shishi_safe * safe) { return safe->key; } /** * shishi_safe_key_set: * @safe: structure that holds information about SAFE exchange * @key: key to store in SAFE. * * Set the Key in the SAFE exchange. **/ void shishi_safe_key_set (Shishi_safe * safe, Shishi_key * key) { shishi_key_copy (safe->key, key); } /** * shishi_safe_safe: * @safe: structure that holds information about SAFE exchange * * Get ASN.1 SAFE structured from SAFE exchange. * * Return value: Returns the ASN.1 safe in the SAFE exchange, or NULL if * not yet set or an error occured. **/ Shishi_asn1 shishi_safe_safe (Shishi_safe * safe) { return safe->safe; } /** * shishi_safe_safe_set: * @safe: structure that holds information about SAFE exchange * @asn1safe: KRB-SAFE to store in SAFE exchange. * * Set the KRB-SAFE in the SAFE exchange. **/ void shishi_safe_safe_set (Shishi_safe * safe, Shishi_asn1 asn1safe) { if (safe->safe) shishi_asn1_done (safe->handle, safe->safe); safe->safe = asn1safe; } /** * shishi_safe_safe_der: * @safe: safe as allocated by shishi_safe(). * @out: output array with newly allocated DER encoding of SAFE. * @outlen: length of output array with DER encoding of SAFE. * * DER encode SAFE structure. Typically shishi_safe_build() is used * to build the SAFE structure first. @out is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_safe_der (Shishi_safe * safe, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (safe->handle, safe->safe, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_safe_safe_der_set: * @safe: safe as allocated by shishi_safe(). * @der: input array with DER encoded KRB-SAFE. * @derlen: length of input array with DER encoded KRB-SAFE. * * DER decode KRB-SAFE and set it SAFE exchange. If decoding fails, the * KRB-SAFE in the SAFE exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_safe_safe_der_set (Shishi_safe * safe, char *der, size_t derlen) { Shishi_asn1 asn1safe; asn1safe = shishi_der2asn1_krbsafe (safe->handle, der, derlen); if (asn1safe == NULL) return SHISHI_ASN1_ERROR; shishi_safe_safe_set (safe, asn1safe); return SHISHI_OK; } /** * shishi_safe_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @safe: SAFE to print. * * Print ASCII armored DER encoding of SAFE to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_print (Shishi * handle, FILE * fh, Shishi_asn1 safe) { return _shishi_print_armored_data (handle, fh, safe, "KRB-SAFE", NULL); } /** * shishi_safe_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @safe: SAFE to save. * * Save DER encoding of SAFE to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_save (Shishi * handle, FILE * fh, Shishi_asn1 safe) { return _shishi_save_data (handle, fh, safe, "SAFE"); } /** * shishi_safe_to_file: * @handle: shishi handle as allocated by shishi_init(). * @safe: SAFE to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write SAFE to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_to_file (Shishi * handle, Shishi_asn1 safe, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing SAFE to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing SAFE in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_safe_print (handle, fh, safe); else res = shishi_safe_save (handle, fh, safe); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing SAFE to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_safe_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @safe: output variable with newly allocated SAFE. * * Read ASCII armored DER encoded SAFE from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_parse (Shishi * handle, FILE * fh, Shishi_asn1 * safe) { return _shishi_safe_input (handle, fh, safe, 0); } /** * shishi_safe_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @safe: output variable with newly allocated SAFE. * * Read DER encoded SAFE from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_read (Shishi * handle, FILE * fh, Shishi_asn1 * safe) { return _shishi_safe_input (handle, fh, safe, 1); } /** * shishi_safe_from_file: * @handle: shishi handle as allocated by shishi_init(). * @safe: output variable with newly allocated SAFE. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read SAFE from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_from_file (Shishi * handle, Shishi_asn1 * safe, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading SAFE from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading SAFE in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_safe_parse (handle, fh, safe); else res = shishi_safe_read (handle, fh, safe); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading SAFE from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_safe_cksum: * @handle: shishi handle as allocated by shishi_init(). * @safe: safe as allocated by shishi_safe(). * @cksumtype: output checksum type. * @cksum: output array with newly allocated checksum data from SAFE. * @cksumlen: output size of output checksum data buffer. * * Read checksum value from KRB-SAFE. @cksum is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_cksum (Shishi * handle, Shishi_asn1 safe, int32_t * cksumtype, char **cksum, size_t *cksumlen) { int res; res = shishi_asn1_read_int32 (handle, safe, "cksum.cksumtype", cksumtype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, safe, "cksum.checksum", cksum, cksumlen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_safe_set_cksum: * @handle: shishi handle as allocated by shishi_init(). * @safe: safe as allocated by shishi_safe(). * @cksumtype: input checksum type to store in SAFE. * @cksum: input checksum data to store in SAFE. * @cksumlen: size of input checksum data to store in SAFE. * * Store checksum value in SAFE. A checksum is usually created by * calling shishi_checksum() on some application specific data using * the key from the ticket that is being used. To save time, you may * want to use shishi_safe_build() instead, which calculates the * checksum and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_set_cksum (Shishi * handle, Shishi_asn1 safe, int32_t cksumtype, const char *cksum, size_t cksumlen) { int res; res = shishi_asn1_write_int32 (handle, safe, "cksum.cksumtype", cksumtype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, safe, "cksum.checksum", cksum, cksumlen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_safe_user_data: * @handle: shishi handle as allocated by shishi_init(). * @safe: safe as allocated by shishi_safe(). * @userdata: output array with newly allocated user data from KRB-SAFE. * @userdatalen: output size of output user data buffer. * * Read user data value from KRB-SAFE. @userdata is allocated by this * function, and it is the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_user_data (Shishi * handle, Shishi_asn1 safe, char **userdata, size_t *userdatalen) { int res; res = shishi_asn1_read (handle, safe, "safe-body.user-data", userdata, userdatalen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_safe_set_user_data: * @handle: shishi handle as allocated by shishi_init(). * @safe: safe as allocated by shishi_safe(). * @userdata: input user application to store in SAFE. * @userdatalen: size of input user application to store in SAFE. * * Set the application data in SAFE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_set_user_data (Shishi * handle, Shishi_asn1 safe, const char *userdata, size_t userdatalen) { int res; res = shishi_asn1_write (handle, safe, "safe-body.user-data", userdata, userdatalen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_safe_build: * @safe: safe as allocated by shishi_safe(). * @key: key for session, used to compute checksum. * * Build checksum and set it in KRB-SAFE. Note that this follows RFC * 1510bis and is incompatible with RFC 1510, although presumably few * implementations use the RFC1510 algorithm. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_safe_build (Shishi_safe * safe, Shishi_key * key) { int rc; char *buffer; size_t buflen; char *cksum; size_t cksumlen; int cksumtype = shishi_cipher_defaultcksumtype (shishi_key_type (key)); rc = shishi_safe_set_cksum (safe->handle, safe->safe, 0, "", 0); if (rc != SHISHI_OK) return rc; rc = shishi_safe_safe_der (safe, &buffer, &buflen); if (rc != SHISHI_OK) return rc; /* XXX check if keytype/cksumtype is suitable for SAFE */ if (VERBOSEASN1 (safe->handle)) shishi_key_print (safe->handle, stdout, key); rc = shishi_checksum (safe->handle, key, SHISHI_KEYUSAGE_KRB_SAFE, cksumtype, buffer, buflen, &cksum, &cksumlen); free (buffer); if (rc != SHISHI_OK) return rc; rc = shishi_safe_set_cksum (safe->handle, safe->safe, cksumtype, cksum, cksumlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_safe_verify: * @safe: safe as allocated by shishi_safe(). * @key: key for session, used to verify checksum. * * Verify checksum in KRB-SAFE. Note that this follows RFC 1510bis * and is incompatible with RFC 1510, although presumably few * implementations use the RFC1510 algorithm. * * Return value: Returns SHISHI_OK iff successful, * SHISHI_SAFE_BAD_KEYTYPE if an incompatible key type is used, or * SHISHI_SAFE_VERIFY_FAILED if the actual verification failed. **/ int shishi_safe_verify (Shishi_safe * safe, Shishi_key * key) { char *cksum = NULL; size_t cksumlen; int cksumtype; char *safeder = NULL; size_t safederlen; int rc; rc = shishi_safe_cksum (safe->handle, safe->safe, &cksumtype, &cksum, &cksumlen); if (rc != SHISHI_OK) goto done; rc = shishi_safe_set_cksum (safe->handle, safe->safe, 0, "", 0); if (rc != SHISHI_OK) goto done; rc = shishi_safe_safe_der (safe, &safeder, &safederlen); if (rc != SHISHI_OK) goto done; rc = shishi_verify (safe->handle, key, SHISHI_KEYUSAGE_KRB_SAFE, cksumtype, safeder, safederlen, cksum, cksumlen); if (rc != SHISHI_OK) goto done; rc = SHISHI_OK; done: free (cksum); free (safeder); return rc; } shishi-1.0.3/lib/crypto.h0000644000000000000000000001136714273601533012144 00000000000000/* crypto.h --- Crypto prototypes. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef _CRYPTO_H # define _CRYPTO_H # define SHISHI_DK_CONSTANT "\x6b\x65\x72\x62\x65\x72\x6f\x73" int _shishi_simplified_derivekey (Shishi * handle, Shishi_key * key, int keyusage, int derivekeymode, Shishi_key ** outkey); int _shishi_simplified_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen); int _shishi_simplified_dencrypt (Shishi * handle, Shishi_key * key, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen, int decryptp); int _shishi_simplified_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); int _shishi_simplified_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); typedef enum { SHISHI_DERIVEKEYMODE_CHECKSUM, SHISHI_DERIVEKEYMODE_PRIVACY, SHISHI_DERIVEKEYMODE_INTEGRITY } Shishi_derivekeymode; typedef int (*Shishi_random_to_key_function) (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey); typedef int (*Shishi_string_to_key_function) (Shishi * handle, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey); typedef int (*Shishi_encrypt_function) (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); typedef int (*Shishi_decrypt_function) (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen); typedef int (*Shishi_checksum_function) (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen); typedef int (*Shishi_verify_function) (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, const char *cksum, size_t cksumlen); struct cipherinfo { int32_t type; const char *name; size_t blocksize; size_t confoundersize; size_t keylen; size_t randomlen; int32_t defaultcksumtype; Shishi_random_to_key_function random2key; Shishi_string_to_key_function string2key; Shishi_encrypt_function encrypt; Shishi_decrypt_function decrypt; }; typedef struct cipherinfo cipherinfo; struct checksuminfo { int32_t type; const char *name; int cksumlen; Shishi_checksum_function checksum; Shishi_verify_function verify; }; typedef struct checksuminfo checksuminfo; extern cipherinfo null_info; extern checksuminfo crc32_info; extern checksuminfo md4_info; extern checksuminfo md5_info; extern cipherinfo des_cbc_crc_info; extern cipherinfo des_cbc_md4_info; extern cipherinfo des_cbc_md5_info; extern cipherinfo des_cbc_none_info; extern checksuminfo md4_des_info; extern checksuminfo md5_des_info; extern checksuminfo md5_gss_info; extern cipherinfo des3_cbc_none_info; extern cipherinfo des3_cbc_sha1_kd_info; extern checksuminfo hmac_sha1_des3_kd_info; extern cipherinfo aes128_cts_hmac_sha1_96_info; extern cipherinfo aes256_cts_hmac_sha1_96_info; extern checksuminfo hmac_sha1_96_aes128_info; extern checksuminfo hmac_sha1_96_aes256_info; extern cipherinfo arcfour_hmac_info; extern cipherinfo arcfour_hmac_exp_info; extern checksuminfo arcfour_hmac_md5_info; #endif shishi-1.0.3/lib/gztime.c0000644000000000000000000001073114273601533012110 00000000000000/* gztime.c --- Convertion functions for GeneralizedTime. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get xtime. */ #include "utils.h" /** * shishi_generalize_time: * @handle: Shishi handle as allocated by shishi_init(). * @t: C time to convert. * * Converts C time @t to a KerberosTime string representation. * The returned string must not be deallocated by the caller. * * Return value: Returns a KerberosTime formatted string * corresponding to the input parameter. **/ const char * shishi_generalize_time (Shishi * handle, time_t t) { struct tm *tm; tm = gmtime (&t); strftime (handle->gztime_buf, sizeof (handle->gztime_buf), "%Y%m%d%H%M%SZ", tm); return handle->gztime_buf; } /** * shishi_generalize_now: * @handle: Shishi handle as allocated by shishi_init(). * * Converts the current time to a KerberosTime string. * The returned string must not be deallocated by the caller. * * Return value: Returns a KerberosTime formatted string * corresponding to the current time. **/ const char * shishi_generalize_now (Shishi * handle) { time_t t = xtime (NULL); return shishi_generalize_time (handle, t); } /** * shishi_generalize_ctime: * @handle: Shishi handle as allocated by shishi_init(). * @t: KerberosTime string to convert. * * Converts a KerberosTime formatted string in @t to * integral C time representation. * * Return value: Returns the C time corresponding to the input * argument. **/ time_t shishi_generalize_ctime (Shishi * handle, const char *t) { struct tm tm; time_t ct; memset (&tm, 0, sizeof (tm)); sscanf (t, "%4d%2d%2d%2d%2d%2dZ", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec); tm.tm_year -= 1900; tm.tm_mon--; ct = timegm (&tm); return ct; } /** * shishi_time: * @handle: Shishi handle as allocated by shishi_init(). * @node: ASN.1 structure to get time from. * @field: Name of the field in the ASN.1 node carrying time. * @t: Returned pointer to an allocated char array containing * a null-terminated time string. * * Extracts time information from an ASN.1 structure, * and to be precise, does so from the named field @field * within the structure @node. * * Return value: Returns %SHISHI_OK if successful, or an error. **/ int shishi_time (Shishi * handle, Shishi_asn1 node, const char *field, char **t) { size_t len; int res; len = SHISHI_GENERALIZEDTIME_LENGTH + 1; *t = xmalloc (len); res = shishi_asn1_read_inline (handle, node, field, *t, &len); if (res != SHISHI_OK) return res; if (len <= SHISHI_GENERALIZEDTIME_LENGTH) { shishi_error_printf (handle, "Read time too short (%s)", *t); return SHISHI_ASN1_ERROR; } (*t)[SHISHI_GENERALIZEDTIME_LENGTH] = '\0'; return SHISHI_OK; } /** * shishi_ctime: * @handle: Shishi handle as allocated by shishi_init(). * @node: ASN.1 structure to read field from. * @field: Name of field in @node to read. * @t: Pointer to a C-time valued integer, being updated with * the time value to be extracted. * * Extracts time information from an ASN.1 structure @node, * and from an arbitrary element @field of that structure. * * Return value: Returns %SHISHI_OK if successful, * %SHISHI_ASN1_NO_ELEMENT if the element does not exist, * %SHISHI_ASN1_NO_VALUE if the field has no value. * In all other cases, %SHISHI_ASN1_ERROR is returned. **/ int shishi_ctime (Shishi * handle, Shishi_asn1 node, const char *field, time_t * t) { char str[SHISHI_GENERALIZEDTIME_LENGTH + 1]; size_t len = sizeof (str); int rc; rc = shishi_asn1_read_inline (handle, node, field, str, &len); if (rc != SHISHI_OK) return rc; *t = shishi_generalize_ctime (handle, str); return SHISHI_OK; } shishi-1.0.3/lib/hostkeys.c0000644000000000000000000001131414273601533012460 00000000000000/* hostkeys.c --- Functions for managing hostkeys stored in files. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /** * shishi_hostkeys_default_file: * @handle: Shishi library handle create by shishi_init(). * * Get file name of default host key file. * * Return value: Returns the default host key filename used in the * library. (Not a copy of it, so don't modify or deallocate it.) **/ const char * shishi_hostkeys_default_file (Shishi * handle) { char *envfile; envfile = getenv ("SHISHI_KEYS"); if (envfile) shishi_hostkeys_default_file_set (handle, envfile); if (!handle->hostkeysdefaultfile) handle->hostkeysdefaultfile = xstrdup (HOSTKEYSFILE); return handle->hostkeysdefaultfile; } /** * shishi_hostkeys_default_file_set: * @handle: Shishi library handle create by shishi_init(). * @hostkeysfile: string with new default hostkeys file name, or * NULL to reset to default. * * Set the default host key filename used in the library. The * string is copied into the library, so you can dispose of the * variable immediately after calling this function. **/ void shishi_hostkeys_default_file_set (Shishi * handle, const char *hostkeysfile) { free (handle->hostkeysdefaultfile); if (hostkeysfile) handle->hostkeysdefaultfile = xstrdup (hostkeysfile); else handle->hostkeysdefaultfile = NULL; } /** * shishi_hostkeys_for_server * @handle: Shishi library handle create by shishi_init(). * @server: server name to get key for * * Get host key for @server. * * Return value: Returns the key for specific server, read from the * default host keys file (see shishi_hostkeys_default_file()), or * NULL if no key could be found or an error encountered. **/ Shishi_key * shishi_hostkeys_for_server (Shishi * handle, const char *server) { return shishi_keys_for_server_in_file (handle, shishi_hostkeys_default_file (handle), server); } /** * shishi_hostkeys_for_serverrealm * @handle: Shishi library handle create by shishi_init(). * @server: server name to get key for * @realm: realm of server to get key for. * * Get host key for @server in @realm. * * Return value: Returns the key for specific server and realm, read * from the default host keys file (see * shishi_hostkeys_default_file()), or NULL if no key could be found * or an error encountered. **/ Shishi_key * shishi_hostkeys_for_serverrealm (Shishi * handle, const char *server, const char *realm) { return shishi_keys_for_serverrealm_in_file (handle, shishi_hostkeys_default_file (handle), server, realm); } /** * shishi_hostkeys_for_localservicerealm * @handle: Shishi library handle create by shishi_init(). * @service: service to get key for. * @realm: realm of server to get key for, or NULL for default realm. * * Get host key for @service on current host in @realm. * * Return value: Returns the key for the server * "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's * hostname), read from the default host keys file (see * shishi_hostkeys_default_file()), or NULL if no key could be found * or an error encountered. **/ Shishi_key * shishi_hostkeys_for_localservicerealm (Shishi * handle, const char *service, const char *realm) { return shishi_keys_for_localservicerealm_in_file (handle, shishi_hostkeys_default_file (handle), service, realm); } /** * shishi_hostkeys_for_localservice * @handle: Shishi library handle create by shishi_init(). * @service: service to get key for. * * Get host key for @service on current host in default realm. * * Return value: Returns the key for the server "SERVICE/HOSTNAME" * (where HOSTNAME is the current system's hostname), read from the * default host keys file (see shishi_hostkeys_default_file()), or * NULL if no key could be found or an error encountered. **/ Shishi_key * shishi_hostkeys_for_localservice (Shishi * handle, const char *service) { return shishi_hostkeys_for_localservicerealm (handle, service, NULL); } shishi-1.0.3/lib/authenticator.c0000644000000000000000000007177714273601533013504 00000000000000/* authenticator.c --- Functions for authenticators. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" /** * shishi_authenticator: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new Authenticator, populated with some * default values. It uses the current time as returned by the system * for the ctime and cusec fields. * * Return value: Returns the authenticator or NULL on * failure. **/ Shishi_asn1 shishi_authenticator (Shishi * handle) { int res; Shishi_asn1 node = NULL; struct timeval tv; uint32_t seqnr; res = gettimeofday (&tv, NULL); if (res != 0) return NULL; node = shishi_asn1_authenticator (handle); if (!node) return NULL; res = shishi_asn1_write (handle, node, "authenticator-vno", "5", 0); if (res != SHISHI_OK) goto error; res = shishi_authenticator_set_crealm (handle, node, shishi_realm_default (handle)); if (res != SHISHI_OK) goto error; res = shishi_authenticator_client_set (handle, node, shishi_principal_default (handle)); if (res != SHISHI_OK) goto error; res = shishi_authenticator_cusec_set (handle, node, tv.tv_usec % 1000000); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "ctime", shishi_generalize_time (handle, time (NULL)), 0); if (res != SHISHI_OK) goto error; /* * For sequence numbers to adequately support the detection of * replays they SHOULD be non-repeating, even across connection * boundaries. The initial sequence number SHOULD be random and * uniformly distributed across the full space of possible sequence * numbers, so that it cannot be guessed by an attacker and so that * it and the successive sequence numbers do not repeat other * sequences. */ shishi_randomize (handle, 0, &seqnr, sizeof (seqnr)); /* XXX remove once libtasn1 _asn1_convert_integer is fixed. */ seqnr &= 0x7FFFFFFF; /* * Implementation note: as noted before, some implementations omit * the optional sequence number when its value would be zero. * Implementations MAY accept an omitted sequence number when * expecting a value of zero, and SHOULD NOT transmit an * Authenticator with a initial sequence number of zero. */ if (seqnr == 0) seqnr++; res = shishi_authenticator_seqnumber_set (handle, node, seqnr); if (res != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_authenticator_subkey: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new Authenticator, populated with some * default values. It uses the current time as returned by the system * for the ctime and cusec fields. It adds a random subkey. * * Return value: Returns the authenticator or NULL on * failure. **/ Shishi_asn1 shishi_authenticator_subkey (Shishi * handle) { Shishi_asn1 node; int res; node = shishi_authenticator (handle); if (node == NULL) return NULL; res = shishi_authenticator_add_random_subkey (handle, node); if (res != SHISHI_OK) return NULL; return node; } /** * shishi_authenticator_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @authenticator: authenticator as allocated by shishi_authenticator(). * * Print ASCII armored DER encoding of authenticator to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_print (Shishi * handle, FILE * fh, Shishi_asn1 authenticator) { return _shishi_print_armored_data (handle, fh, authenticator, "Authenticator", NULL); } /** * shishi_authenticator_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @authenticator: authenticator as allocated by shishi_authenticator(). * * Save DER encoding of authenticator to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_save (Shishi * handle, FILE * fh, Shishi_asn1 authenticator) { return _shishi_save_data (handle, fh, authenticator, "Authenticator"); } /** * shishi_authenticator_to_file: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write Authenticator to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_to_file (Shishi * handle, Shishi_asn1 authenticator, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing Authenticator to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing Authenticator in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_authenticator_print (handle, fh, authenticator); else res = shishi_authenticator_save (handle, fh, authenticator); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing Authenticator to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_authenticator_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @authenticator: output variable with newly allocated authenticator. * * Read ASCII armored DER encoded authenticator from file and populate * given authenticator variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_parse (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator) { return _shishi_authenticator_input (handle, fh, authenticator, 0); } /** * shishi_authenticator_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @authenticator: output variable with newly allocated authenticator. * * Read DER encoded authenticator from file and populate given * authenticator variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_read (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator) { return _shishi_authenticator_input (handle, fh, authenticator, 1); } /** * shishi_authenticator_from_file: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: output variable with newly allocated Authenticator. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read Authenticator from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_from_file (Shishi * handle, Shishi_asn1 * authenticator, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading Authenticator from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading Authenticator in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_authenticator_parse (handle, fh, authenticator); else res = shishi_authenticator_read (handle, fh, authenticator); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading Authenticator from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_authenticator_set_crealm: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @crealm: input array with realm. * * Set realm field in authenticator to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_set_crealm (Shishi * handle, Shishi_asn1 authenticator, const char *crealm) { int res; res = shishi_asn1_write (handle, authenticator, "crealm", crealm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_set_cname: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @cname: input array with principal name. * * Set principal field in authenticator to specified value. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_set_cname (Shishi * handle, Shishi_asn1 authenticator, Shishi_name_type name_type, const char *cname[]) { int res; res = shishi_principal_name_set (handle, authenticator, "cname", name_type, cname); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_client_set: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator to set client name field in. * @client: zero-terminated string with principal name on RFC 1964 form. * * Set the client name field in the Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_client_set (Shishi * handle, Shishi_asn1 authenticator, const char *client) { int res; res = shishi_principal_set (handle, authenticator, "cname", client); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_ctime: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator as allocated by shishi_authenticator(). * @t: newly allocated zero-terminated character array with client time. * * Extract client time from Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_ctime (Shishi * handle, Shishi_asn1 authenticator, char **t) { return shishi_time (handle, authenticator, "ctime", t); } /** * shishi_authenticator_ctime_set: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator as allocated by shishi_authenticator(). * @t: string with generalized time value to store in Authenticator. * * Store client time in Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_ctime_set (Shishi * handle, Shishi_asn1 authenticator, const char *t) { int res; res = shishi_asn1_write (handle, authenticator, "ctime", t, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_cusec_get: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator as allocated by shishi_authenticator(). * @cusec: output integer with client microseconds field. * * Extract client microseconds field from Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_cusec_get (Shishi * handle, Shishi_asn1 authenticator, uint32_t * cusec) { int res; res = shishi_asn1_read_uint32 (handle, authenticator, "cusec", cusec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_cusec_set: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @cusec: client microseconds to set in authenticator, 0-999999. * * Set the cusec field in the Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_cusec_set (Shishi * handle, Shishi_asn1 authenticator, uint32_t cusec) { int res; res = shishi_asn1_write_uint32 (handle, authenticator, "cusec", cusec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_seqnumber_get: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @seqnumber: output integer with sequence number field. * * Extract sequence number field from Authenticator. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_authenticator_seqnumber_get (Shishi * handle, Shishi_asn1 authenticator, uint32_t * seqnumber) { int res; res = shishi_asn1_read_uint32 (handle, authenticator, "seq-number", seqnumber); if (res != SHISHI_OK) return res; return res; } /** * shishi_authenticator_seqnumber_remove: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * * Remove sequence number field in Authenticator. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_authenticator_seqnumber_remove (Shishi * handle, Shishi_asn1 authenticator) { int res; res = shishi_asn1_write (handle, authenticator, "seq-number", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_seqnumber_set: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @seqnumber: integer with sequence number field to store in Authenticator. * * Store sequence number field in Authenticator. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_authenticator_seqnumber_set (Shishi * handle, Shishi_asn1 authenticator, uint32_t seqnumber) { int res; res = shishi_asn1_write_uint32 (handle, authenticator, "seq-number", seqnumber); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_client: * @handle: Shishi library handle create by shishi_init(). * @authenticator: Authenticator variable to get client name from. * @client: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Represent client principal name in Authenticator as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @clientlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_client (Shishi * handle, Shishi_asn1 authenticator, char **client, size_t *clientlen) { return shishi_principal_name (handle, authenticator, "cname", client, clientlen); } /** * shishi_authenticator_clientrealm: * @handle: Shishi library handle create by shishi_init(). * @authenticator: Authenticator variable to get client name and realm from. * @client: pointer to newly allocated zero terminated string containing * principal name and realm. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Convert cname and realm fields from Authenticator to printable * principal name format. The string is allocate by this function, * and it is the responsibility of the caller to deallocate it. Note * that the output length @clientlen does not include the terminating * zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_clientrealm (Shishi * handle, Shishi_asn1 authenticator, char **client, size_t *clientlen) { return shishi_principal_name_realm (handle, authenticator, "cname", authenticator, "crealm", client, clientlen); } int shishi_authenticator_remove_cksum (Shishi * handle, Shishi_asn1 authenticator) { int res; /* XXX remove this function */ res = shishi_asn1_write (handle, authenticator, "cksum", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_cksum: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @cksumtype: output checksum type. * @cksum: newly allocated output checksum data from authenticator. * @cksumlen: on output, actual size of allocated output checksum data buffer. * * Read checksum value from authenticator. @cksum is allocated by * this function, and it is the responsibility of caller to deallocate * it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_cksum (Shishi * handle, Shishi_asn1 authenticator, int32_t * cksumtype, char **cksum, size_t *cksumlen) { int res; res = shishi_asn1_read_int32 (handle, authenticator, "cksum.cksumtype", cksumtype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, authenticator, "cksum.checksum", cksum, cksumlen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_set_cksum: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @cksumtype: input checksum type to store in authenticator. * @cksum: input checksum data to store in authenticator. * @cksumlen: size of input checksum data to store in authenticator. * * Store checksum value in authenticator. A checksum is usually created * by calling shishi_checksum() on some application specific data using * the key from the ticket that is being used. To save time, you may * want to use shishi_authenticator_add_cksum() instead, which calculates * the checksum and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_set_cksum (Shishi * handle, Shishi_asn1 authenticator, int32_t cksumtype, char *cksum, size_t cksumlen) { int res; res = shishi_asn1_write_int32 (handle, authenticator, "cksum.cksumtype", cksumtype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, authenticator, "cksum.checksum", cksum, cksumlen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_add_cksum: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @key: key to to use for encryption. * @keyusage: cryptographic key usage value to use in encryption. * @data: input array with data to calculate checksum on. * @datalen: size of input array with data to calculate checksum on. * * Calculate checksum for data and store it in the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_cksum (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * key, int keyusage, char *data, size_t datalen) { return shishi_authenticator_add_cksum_type (handle, authenticator, key, keyusage, shishi_cipher_defaultcksumtype (shishi_key_type (key)), data, datalen); } /** * shishi_authenticator_add_cksum_type: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @key: key to to use for encryption. * @keyusage: cryptographic key usage value to use in encryption. * @cksumtype: checksum to type to calculate checksum. * @data: input array with data to calculate checksum on. * @datalen: size of input array with data to calculate checksum on. * * Calculate checksum for data and store it in the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_cksum_type (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * key, int keyusage, int cksumtype, char *data, size_t datalen) { int res; if (data && datalen > 0) { char *cksum; size_t cksumlen; res = shishi_checksum (handle, key, keyusage, cksumtype, data, datalen, &cksum, &cksumlen); if (res != SHISHI_OK) return res; res = shishi_authenticator_set_cksum (handle, authenticator, cksumtype, cksum, cksumlen); free (cksum); } else res = shishi_authenticator_remove_cksum (handle, authenticator); return res; } /** * shishi_authenticator_clear_authorizationdata: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: Authenticator as allocated by shishi_authenticator(). * * Remove the authorization-data field from Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_clear_authorizationdata (Shishi * handle, Shishi_asn1 authenticator) { int res; res = shishi_asn1_write (handle, authenticator, "authorization-data", NULL, 0); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; return SHISHI_OK; } /** * shishi_authenticator_add_authorizationdata: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @adtype: input authorization data type to add. * @addata: input authorization data to add. * @addatalen: size of input authorization data to add. * * Add authorization data to authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_authorizationdata (Shishi * handle, Shishi_asn1 authenticator, int32_t adtype, const char *addata, size_t addatalen) { char *format; int res; size_t i; res = shishi_asn1_write (handle, authenticator, "authorization-data", "NEW", 1); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, authenticator, "authorization-data", &i); if (res != SHISHI_OK) return res; asprintf (&format, "authorization-data.?%zu.ad-type", i); res = shishi_asn1_write_integer (handle, authenticator, format, adtype); if (res != SHISHI_OK) { free (format); return res; } sprintf (format, "authorization-data.?%zu.ad-data", i); res = shishi_asn1_write (handle, authenticator, format, addata, addatalen); free (format); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_authorizationdata: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @adtype: output authorization data type. * @addata: newly allocated output authorization data. * @addatalen: on output, actual size of newly allocated authorization data. * @nth: element number of authorization-data to extract. * * Extract n:th authorization data from authenticator. The first * field is 1. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_authorizationdata (Shishi * handle, Shishi_asn1 authenticator, int32_t * adtype, char **addata, size_t *addatalen, size_t nth) { char *format; int res; size_t i; res = shishi_asn1_number_of_elements (handle, authenticator, "authorization-data", &i); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; if (nth > i) return SHISHI_OUT_OF_RANGE; asprintf (&format, "authorization-data.?%zu.ad-type", nth); res = shishi_asn1_read_int32 (handle, authenticator, format, adtype); free (format); if (res != SHISHI_OK) return res; asprintf (&format, "authorization-data.?%zu.ad-data", i); res = shishi_asn1_read (handle, authenticator, format, addata, addatalen); free (format); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_remove_subkey: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * * Remove subkey from the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_remove_subkey (Shishi * handle, Shishi_asn1 authenticator) { int res; res = shishi_asn1_write (handle, authenticator, "subkey", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_get_subkey: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @subkey: output newly allocated subkey from authenticator. * * Read subkey value from authenticator. * * Return value: Returns SHISHI_OK if successful or SHISHI_ASN1_NO_ELEMENT * if subkey is not present. **/ int shishi_authenticator_get_subkey (Shishi * handle, Shishi_asn1 authenticator, Shishi_key ** subkey) { int res; int subkeytype; char *subkeyvalue; size_t subkeylen; res = shishi_asn1_read_int32 (handle, authenticator, "subkey.keytype", &subkeytype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, authenticator, "subkey.keyvalue", &subkeyvalue, &subkeylen); if (res != SHISHI_OK) return res; res = shishi_key (handle, subkey); if (res != SHISHI_OK) return res; shishi_key_type_set (*subkey, subkeytype); shishi_key_value_set (*subkey, subkeyvalue); return SHISHI_OK; } /** * shishi_authenticator_set_subkey: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @subkeytype: input subkey type to store in authenticator. * @subkey: input subkey data to store in authenticator. * @subkeylen: size of input subkey data to store in authenticator. * * Store subkey value in authenticator. A subkey is usually created * by calling shishi_key_random() using the default encryption type of * the key from the ticket that is being used. To save time, you may * want to use shishi_authenticator_add_subkey() instead, which calculates * the subkey and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_set_subkey (Shishi * handle, Shishi_asn1 authenticator, int32_t subkeytype, const char *subkey, size_t subkeylen) { int res; res = shishi_asn1_write_int32 (handle, authenticator, "subkey.keytype", subkeytype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, authenticator, "subkey.keyvalue", subkey, subkeylen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_authenticator_add_random_subkey: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * * Generate random subkey, of the default encryption type from * configuration, and store it in the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_random_subkey (Shishi * handle, Shishi_asn1 authenticator) { int n; int res; int *etypes; n = shishi_cfg_clientkdcetype (handle, &etypes); if (n <= 0) return SHISHI_TICKET_BAD_KEYTYPE; /* XXX */ res = shishi_authenticator_add_random_subkey_etype (handle, authenticator, etypes[0]); if (res != SHISHI_OK) return res; return res; } /** * shishi_authenticator_add_random_subkey_etype: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @etype: encryption type of random key to generate. * * Generate random subkey of indicated encryption type, and store it * in the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_random_subkey_etype (Shishi * handle, Shishi_asn1 authenticator, int etype) { int res; Shishi_key *subkey; res = shishi_key_random (handle, etype, &subkey); if (res != SHISHI_OK) return res; res = shishi_authenticator_add_subkey (handle, authenticator, subkey); shishi_key_done (subkey); return res; } /** * shishi_authenticator_add_subkey: * @handle: shishi handle as allocated by shishi_init(). * @authenticator: authenticator as allocated by shishi_authenticator(). * @subkey: subkey to add to authenticator. * * Store subkey in the authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_authenticator_add_subkey (Shishi * handle, Shishi_asn1 authenticator, Shishi_key * subkey) { int res; res = shishi_authenticator_set_subkey (handle, authenticator, shishi_key_type (subkey), shishi_key_value (subkey), shishi_key_length (subkey)); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/encapreppart.c0000644000000000000000000003231414273601533013276 00000000000000/* encapreppart.c --- Encrypted authentication reply part functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" /** * shishi_encapreppart: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new EncAPRepPart, populated with some * default values. It uses the current time as returned by the system * for the ctime and cusec fields. * * Return value: Returns the encapreppart or NULL on failure. **/ Shishi_asn1 shishi_encapreppart (Shishi * handle) { int res; Shishi_asn1 node = NULL; struct timeval tv; uint32_t seqnr; res = gettimeofday (&tv, NULL); if (res) return NULL; node = shishi_asn1_encapreppart (handle); if (!node) return NULL; res = shishi_asn1_write (handle, node, "ctime", shishi_generalize_time (handle, time (NULL)), 0); if (res != SHISHI_OK) goto error; res = shishi_encapreppart_cusec_set (handle, node, tv.tv_usec % 1000000); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, node, "subkey", NULL, 0); if (res != SHISHI_OK) goto error; /* * For sequence numbers to adequately support the detection of * replays they SHOULD be non-repeating, even across connection * boundaries. The initial sequence number SHOULD be random and * uniformly distributed across the full space of possible sequence * numbers, so that it cannot be guessed by an attacker and so that * it and the successive sequence numbers do not repeat other * sequences. */ shishi_randomize (handle, 0, &seqnr, sizeof (seqnr)); /* * Implementation note: as noted before, some implementations omit * the optional sequence number when its value would be zero. * Implementations MAY accept an omitted sequence number when * expecting a value of zero, and SHOULD NOT transmit an * Authenticator with a initial sequence number of zero. */ if (seqnr == 0) seqnr++; res = shishi_encapreppart_seqnumber_set (handle, node, seqnr); if (res != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_encapreppart_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @encapreppart: EncAPRepPart to print. * * Print ASCII armored DER encoding of EncAPRepPart to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_print (Shishi * handle, FILE * fh, Shishi_asn1 encapreppart) { return _shishi_print_armored_data (handle, fh, encapreppart, "EncAPRepPart", NULL); } /** * shishi_encapreppart_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @encapreppart: EncAPRepPart to save. * * Save DER encoding of EncAPRepPart to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_save (Shishi * handle, FILE * fh, Shishi_asn1 encapreppart) { return _shishi_save_data (handle, fh, encapreppart, "EncAPRepPart"); } /** * shishi_encapreppart_to_file: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write EncAPRepPart to file in specified TYPE. The file will be * truncated if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_to_file (Shishi * handle, Shishi_asn1 encapreppart, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing EncAPRepPart to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing EncAPRepPart in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_encapreppart_print (handle, fh, encapreppart); else res = shishi_encapreppart_save (handle, fh, encapreppart); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing EncAPRepPart to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_encapreppart_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @encapreppart: output variable with newly allocated EncAPRepPart. * * Read ASCII armored DER encoded EncAPRepPart from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_parse (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart) { return _shishi_encapreppart_input (handle, fh, encapreppart, 0); } /** * shishi_encapreppart_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @encapreppart: output variable with newly allocated EncAPRepPart. * * Read DER encoded EncAPRepPart from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_read (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart) { return _shishi_encapreppart_input (handle, fh, encapreppart, 1); } /** * shishi_encapreppart_from_file: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: output variable with newly allocated EncAPRepPart. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read EncAPRepPart from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_from_file (Shishi * handle, Shishi_asn1 * encapreppart, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading EncAPRepPart from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading EncAPRepPart in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_encapreppart_parse (handle, fh, encapreppart); else res = shishi_encapreppart_read (handle, fh, encapreppart); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading EncAPRepPart from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_encapreppart_get_key: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: input EncAPRepPart variable. * @key: newly allocated key. * * Extract the subkey from the encrypted AP-REP part. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encapreppart_get_key (Shishi * handle, Shishi_asn1 encapreppart, Shishi_key ** key) { int res; char *buf; size_t buflen; int32_t keytype; res = shishi_asn1_read_int32 (handle, encapreppart, "subkey.keytype", &keytype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, encapreppart, "subkey.keyvalue", &buf, &buflen); if (res != SHISHI_OK) return res; if (shishi_cipher_keylen (keytype) != buflen) return SHISHI_ENCAPREPPART_BAD_KEYTYPE; res = shishi_key_from_value (handle, keytype, buf, key); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encapreppart_ctime: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @t: newly allocated zero-terminated character array with client time. * * Extract client time from EncAPRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_ctime (Shishi * handle, Shishi_asn1 encapreppart, char **t) { return shishi_time (handle, encapreppart, "ctime", t); } /** * shishi_encapreppart_ctime_set: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @t: string with generalized time value to store in EncAPRepPart. * * Store client time in EncAPRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_ctime_set (Shishi * handle, Shishi_asn1 encapreppart, const char *t) { int res; res = shishi_asn1_write (handle, encapreppart, "ctime", t, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encapreppart_cusec_get: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @cusec: output integer with client microseconds field. * * Extract client microseconds field from EncAPRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_cusec_get (Shishi * handle, Shishi_asn1 encapreppart, uint32_t * cusec) { int res; res = shishi_asn1_read_uint32 (handle, encapreppart, "cusec", cusec); if (res != SHISHI_OK) return res; return res; } /** * shishi_encapreppart_cusec_set: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @cusec: client microseconds to set in authenticator, 0-999999. * * Set the cusec field in the Authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_cusec_set (Shishi * handle, Shishi_asn1 encapreppart, uint32_t cusec) { int res; res = shishi_asn1_write_integer (handle, encapreppart, "cusec", cusec); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encapreppart_seqnumber_get: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @seqnumber: output integer with sequence number field. * * Extract sequence number field from EncAPRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_seqnumber_get (Shishi * handle, Shishi_asn1 encapreppart, uint32_t * seqnumber) { int res; res = shishi_asn1_read_uint32 (handle, encapreppart, "seq-number", seqnumber); if (res != SHISHI_OK) return res; return res; } /** * shishi_encapreppart_seqnumber_remove: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: encapreppart as allocated by shishi_encapreppart(). * * Remove sequence number field in EncAPRepPart. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encapreppart_seqnumber_remove (Shishi * handle, Shishi_asn1 encapreppart) { int res; res = shishi_asn1_write (handle, encapreppart, "seq-number", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encapreppart_seqnumber_set: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: encapreppart as allocated by shishi_encapreppart(). * @seqnumber: integer with sequence number field to store in encapreppart. * * Store sequence number field in EncAPRepPart. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encapreppart_seqnumber_set (Shishi * handle, Shishi_asn1 encapreppart, uint32_t seqnumber) { int res; res = shishi_asn1_write_uint32 (handle, encapreppart, "seq-number", seqnumber); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encapreppart_time_copy: * @handle: shishi handle as allocated by shishi_init(). * @encapreppart: EncAPRepPart as allocated by shishi_encapreppart(). * @authenticator: Authenticator to copy time fields from. * * Copy time fields from Authenticator into EncAPRepPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encapreppart_time_copy (Shishi * handle, Shishi_asn1 encapreppart, Shishi_asn1 authenticator) { char *buf; size_t buflen; int res; res = shishi_asn1_read (handle, authenticator, "cusec", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, encapreppart, "cusec", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, authenticator, "ctime", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, encapreppart, "ctime", buf, buflen); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/low-crypto.c0000644000000000000000000003756414273601533012745 00000000000000/* low-crypto.c --- Shishi crypto wrappers around generic crypto. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include "gc.h" #include "arcfour.h" #include #include "crc.h" #include "low-crypto.h" int _shishi_crypto_init (Shishi * handle) { int rc = gc_init (); if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } void _shishi_quick_random (void) { gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); } /** * shishi_randomize: * @handle: shishi handle as allocated by shishi_init(). * @strong: 0 iff operation should not block, non-0 for very strong randomness. * @data: output array to be filled with random data. * @datalen: size of output array. * * Store cryptographically random data of given size in the provided * buffer. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_randomize (Shishi * handle, int strong, void *data, size_t datalen) { Gc_rc rc; if (strong) rc = gc_random (data, datalen); else rc = gc_pseudo_random (data, datalen); if (rc != GC_OK) return SHISHI_FILE_ERROR; return SHISHI_OK; } /** * shishi_crc: * @handle: shishi handle as allocated by shishi_init(). * @in: input character array of data to checksum. * @inlen: length of input character array of data to checksum. * @out: newly allocated character array with checksum of data. * * Compute checksum of data using CRC32 modified according to RFC * 1510. The @out buffer must be deallocated by the caller. * * The modifications compared to standard CRC32 is that no initial and * final XOR is performed, and that the output is returned in * LSB-first order. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_crc (Shishi * handle, const char *in, size_t inlen, char *out[4]) { uint32_t crc = crc32_update_no_xor (0, in, inlen); *out = xmalloc (4); (*out)[0] = crc & 0xFF; (*out)[1] = (crc >> 8) & 0xFF; (*out)[2] = (crc >> 16) & 0xFF; (*out)[3] = (crc >> 24) & 0xFF; return SHISHI_OK; } /** * shishi_md4: * @handle: shishi handle as allocated by shishi_init(). * @in: input character array of data to hash. * @inlen: length of input character array of data to hash. * @out: newly allocated character array with hash of data. * * Compute hash of data using MD4. The @out buffer must be * deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_md4 (Shishi * handle, const char *in, size_t inlen, char *out[16]) { Gc_rc rc; *out = xmalloc (GC_MD4_DIGEST_SIZE); rc = gc_md4 (in, inlen, *out); if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } /** * shishi_md5: * @handle: shishi handle as allocated by shishi_init(). * @in: input character array of data to hash. * @inlen: length of input character array of data to hash. * @out: newly allocated character array with hash of data. * * Compute hash of data using MD5. The @out buffer must be * deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_md5 (Shishi * handle, const char *in, size_t inlen, char *out[16]) { Gc_rc rc; *out = xmalloc (GC_MD5_DIGEST_SIZE); rc = gc_md5 (in, inlen, *out); if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } /** * shishi_hmac_md5: * @handle: shishi handle as allocated by shishi_init(). * @key: input character array with key to use. * @keylen: length of input character array with key to use. * @in: input character array of data to hash. * @inlen: length of input character array of data to hash. * @outhash: newly allocated character array with keyed hash of data. * * Compute keyed checksum of data using HMAC-MD5. The @outhash buffer * must be deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_hmac_md5 (Shishi * handle, const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[16]) { Gc_rc rc; *outhash = xmalloc (GC_MD5_DIGEST_SIZE); rc = gc_hmac_md5 (key, keylen, in, inlen, *outhash); if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } /** * shishi_hmac_sha1: * @handle: shishi handle as allocated by shishi_init(). * @key: input character array with key to use. * @keylen: length of input character array with key to use. * @in: input character array of data to hash. * @inlen: length of input character array of data to hash. * @outhash: newly allocated character array with keyed hash of data. * * Compute keyed checksum of data using HMAC-SHA1. The @outhash * buffer must be deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_hmac_sha1 (Shishi * handle, const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[20]) { Gc_rc rc; *outhash = xmalloc (GC_SHA1_DIGEST_SIZE); rc = gc_hmac_sha1 (key, keylen, in, inlen, *outhash); if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } /** * shishi_des_cbc_mac: * @handle: shishi handle as allocated by shishi_init(). * @key: input character array with key to use. * @iv: input character array with initialization vector to use, can be NULL. * @in: input character array of data to hash. * @inlen: length of input character array of data to hash. * @out: newly allocated character array with keyed hash of data. * * Computed keyed checksum of data using DES-CBC-MAC. The @out buffer * must be deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_des_cbc_mac (Shishi * handle, const char key[8], const char iv[8], const char *in, size_t inlen, char *out[8]) { gcry_cipher_hd_t ch; gpg_error_t err; int res = SHISHI_CRYPTO_INTERNAL_ERROR; err = gcry_cipher_open (&ch, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, GCRY_CIPHER_CBC_MAC); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "DES-CBC-MAC not available in libgcrypt"); return SHISHI_CRYPTO_INTERNAL_ERROR; } err = gcry_cipher_setkey (ch, key, 8); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "DES setkey failed"); shishi_error_set (handle, gpg_strerror (err)); goto done; } err = gcry_cipher_setiv (ch, iv, 8); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "DES setiv failed"); shishi_error_set (handle, gpg_strerror (err)); goto done; } *out = xmalloc (8); err = gcry_cipher_encrypt (ch, *out, 8, in, inlen); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "DES encrypt failed"); shishi_error_set (handle, gpg_strerror (err)); goto done; } res = SHISHI_OK; done: gcry_cipher_close (ch); return res; } static int libgcrypt_dencrypt (Shishi * handle, int algo, int flags, int mode, int decryptp, const char *key, size_t keylen, const char *iv, char **ivout, const char *in, size_t inlen, char **out) { size_t ivlen = gcry_cipher_get_algo_blklen (algo); gcry_cipher_hd_t ch; gpg_error_t err; err = gcry_cipher_open (&ch, algo, mode, flags); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "Libgcrypt cipher open failed"); shishi_error_set (handle, gpg_strerror (err)); return SHISHI_CRYPTO_INTERNAL_ERROR; } err = gcry_cipher_setkey (ch, key, keylen); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "Libgcrypt setkey failed"); shishi_error_set (handle, gpg_strerror (err)); return SHISHI_CRYPTO_INTERNAL_ERROR; } err = gcry_cipher_setiv (ch, iv, ivlen); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "Libgcrypt setiv failed"); shishi_error_set (handle, gpg_strerror (err)); return SHISHI_CRYPTO_INTERNAL_ERROR; } *out = xmalloc (inlen); if (decryptp) err = gcry_cipher_decrypt (ch, (unsigned char *) *out, inlen, (const unsigned char *) in, inlen); else err = gcry_cipher_encrypt (ch, (unsigned char *) *out, inlen, (const unsigned char *) in, inlen); if (err != GPG_ERR_NO_ERROR) { shishi_error_printf (handle, "Libgcrypt ciphering failed"); shishi_error_set (handle, gpg_strerror (err)); return SHISHI_CRYPTO_INTERNAL_ERROR; } if (ivout) { size_t ivdiff, ivpos = 0; *ivout = xmalloc (ivlen); if (flags & GCRY_CIPHER_CBC_CTS) { /* XXX what is the output iv for CBC-CTS mode? but is this value useful at all for that mode anyway? Mostly it is DES apps that want the updated iv, so this is ok. */ if (inlen % ivlen) ivdiff = ivlen + inlen % ivlen; else ivdiff = ivlen + ivlen; if (inlen >= ivdiff) ivpos = inlen - ivdiff; } else ivpos = inlen - ivlen; if (decryptp) memcpy (*ivout, in + ivpos, inlen >= ivlen ? ivlen : inlen); else memcpy (*ivout, *out + ivpos, inlen >= ivlen ? ivlen : inlen); } gcry_cipher_close (ch); return SHISHI_OK; } /** * shishi_arcfour: * @handle: shishi handle as allocated by shishi_init(). * @decryptp: 0 to indicate encryption, non-0 to indicate decryption. * @key: input character array with key to use. * @keylen: length of input key array. * @iv: input character array with initialization vector to use, or NULL. * @ivout: output character array with updated initialization vector, or NULL. * @in: input character array of data to encrypt/decrypt. * @inlen: length of input character array of data to encrypt/decrypt. * @out: newly allocated character array with encrypted/decrypted data. * * Encrypt or decrypt data (depending on @decryptp) using ARCFOUR. * The @out buffer must be deallocated by the caller. * * The "initialization vector" used here is the concatenation of the * sbox and i and j, and is thus always of size 256 + 1 + 1. This is * a slight abuse of terminology, and assumes you know what you are * doing. Don't use it if you can avoid to. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_arcfour (Shishi * handle, int decryptp, const char *key, size_t keylen, const char iv[258], char *ivout[258], const char *in, size_t inlen, char **out) { arcfour_context ctx; *out = xmalloc (inlen); if (iv) memcpy (&ctx, iv, sizeof (ctx)); else arcfour_setkey (&ctx, key, keylen); arcfour_stream (&ctx, in, *out, inlen); if (ivout) { *ivout = xmalloc (sizeof (ctx)); memcpy (*ivout, &ctx, sizeof (ctx)); } return SHISHI_OK; } /** * shishi_des: * @handle: shishi handle as allocated by shishi_init(). * @decryptp: 0 to indicate encryption, non-0 to indicate decryption. * @key: input character array with key to use. * @iv: input character array with initialization vector to use, or NULL. * @ivout: output character array with updated initialization vector, or NULL. * @in: input character array of data to encrypt/decrypt. * @inlen: length of input character array of data to encrypt/decrypt. * @out: newly allocated character array with encrypted/decrypted data. * * Encrypt or decrypt data (depending on @decryptp) using DES in CBC * mode. The @out buffer must be deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_des (Shishi * handle, int decryptp, const char key[8], const char iv[8], char *ivout[8], const char *in, size_t inlen, char **out) { return libgcrypt_dencrypt (handle, GCRY_CIPHER_DES, 0, GCRY_CIPHER_MODE_CBC, decryptp, key, 8, iv, ivout, in, inlen, out); } /** * shishi_3des: * @handle: shishi handle as allocated by shishi_init(). * @decryptp: 0 to indicate encryption, non-0 to indicate decryption. * @key: input character array with key to use. * @iv: input character array with initialization vector to use, or NULL. * @ivout: output character array with updated initialization vector, or NULL. * @in: input character array of data to encrypt/decrypt. * @inlen: length of input character array of data to encrypt/decrypt. * @out: newly allocated character array with encrypted/decrypted data. * * Encrypt or decrypt data (depending on @decryptp) using 3DES in CBC * mode. The @out buffer must be deallocated by the caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_3des (Shishi * handle, int decryptp, const char key[8], const char iv[8], char *ivout[8], const char *in, size_t inlen, char **out) { return libgcrypt_dencrypt (handle, GCRY_CIPHER_3DES, 0, GCRY_CIPHER_MODE_CBC, decryptp, key, 24, iv, ivout, in, inlen, out); } /** * shishi_aes_cts: * @handle: shishi handle as allocated by shishi_init(). * @decryptp: 0 to indicate encryption, non-0 to indicate decryption. * @key: input character array with key to use. * @keylen: length of input character array with key to use. * @iv: input character array with initialization vector to use, or NULL. * @ivout: output character array with updated initialization vector, or NULL. * @in: input character array of data to encrypt/decrypt. * @inlen: length of input character array of data to encrypt/decrypt. * @out: newly allocated character array with encrypted/decrypted data. * * Encrypt or decrypt data (depending on @decryptp) using AES in * CBC-CTS mode. The length of the key, @keylen, decide if AES 128 or * AES 256 should be used. The @out buffer must be deallocated by the * caller. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_aes_cts (Shishi * handle, int decryptp, const char *key, size_t keylen, const char iv[16], char *ivout[16], const char *in, size_t inlen, char **out) { return libgcrypt_dencrypt (handle, GCRY_CIPHER_AES, GCRY_CIPHER_CBC_CTS, GCRY_CIPHER_MODE_CBC, decryptp, key, keylen, iv, ivout, in, inlen, out); } /** * shishi_pbkdf2_sha1: * @handle: shishi handle as allocated by shishi_init(). * @P: input password, an octet string * @Plen: length of password, an octet string * @S: input salt, an octet string * @Slen: length of salt, an octet string * @c: iteration count, a positive integer * @dkLen: intended length in octets of the derived key, a positive integer, * at most (2^32 - 1) * hLen. The DK array must have room for this many * characters. * @DK: output derived key, a dkLen-octet string * * Derive key using the PBKDF2 defined in PKCS5. PBKDF2 applies a * pseudorandom function to derive keys. The length of the derived key * is essentially unbounded. (However, the maximum effective search * space for the derived key may be limited by the structure of the * underlying pseudorandom function, which is this function is always * SHA1.) * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_pbkdf2_sha1 (Shishi * handle, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, unsigned int dkLen, char *DK) { Gc_rc rc; rc = gc_pbkdf2_sha1 (P, Plen, S, Slen, c, DK, dkLen); if (rc == GC_PKCS5_INVALID_ITERATION_COUNT) return SHISHI_PKCS5_INVALID_ITERATION_COUNT; if (rc == GC_PKCS5_INVALID_DERIVED_KEY_LENGTH) return SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH; if (rc == GC_PKCS5_DERIVED_KEY_TOO_LONG) return SHISHI_PKCS5_DERIVED_KEY_TOO_LONG; if (rc != GC_OK) return SHISHI_CRYPTO_INTERNAL_ERROR; return SHISHI_OK; } shishi-1.0.3/lib/cfg.c0000644000000000000000000004622414273601533011356 00000000000000/* cfg.h --- Configuration file functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "cfg.h" #include "low-crypto.h" enum { DEFAULT_REALM_OPTION = 0, DEFAULT_PRINCIPAL_OPTION, CLIENT_KDC_ETYPES_OPTION, REALM_KDC_OPTION, SERVER_REALM_OPTION, KDC_TIMEOUT_OPTION, KDC_RETRIES_OPTION, TICKET_LIFE_OPTION, RENEW_LIFE_OPTION, AUTHORIZATION_TYPES_OPTION, VERBOSE_CRYPTO_NOISE_OPTION, VERBOSE_CRYPTO_OPTION, VERBOSE_ASN1_OPTION, VERBOSE_NOISE_OPTION, VERBOSE_OPTION, STRINGPROCESS_OPTION, QUICK_RANDOM, THE_END }; static const char *const _shishi_opts[] = { /* [DEFAULT_REALM_OPTION] = */ "default-realm", /* [DEFAULT_PRINCIPAL_OPTION] = */ "default-principal", /* [CLIENT_KDC_ETYPES_OPTION] = */ "client-kdc-etypes", /* [REALM_KDC_OPTION] = */ "realm-kdc", /* [SERVER_REALM_OPTION] = */ "server-realm", /* [KDC_TIMEOUT_OPTION] = */ "kdc-timeout", /* [KDC_RETRIES_OPTION] = */ "kdc-retries", /* [TICKET_LIFE_OPTION] = */ "ticket-life", /* [RENEW_LIFE_OPTION] = */ "renew-life", /* [AUTHORIZATION_TYPES_OPTION] = */ "authorization-types", /* [VERBOSE_CRYPTO_NOISE_OPTION] = */ "verbose-crypto-noise", /* [VERBOSE_CRYPTO_OPTION] = */ "verbose-crypto", /* [VERBOSE_ASN1_OPTION] = */ "verbose-asn1", /* [VERBOSE_NOISE_OPTION] = */ "verbose-noise", /* [VERBOSE_OPTION] = */ "verbose", /* [STRINGPROCESS_OPTION] = */ "stringprocess", /* [QUICK_RANDOM] = */ "quick-random", /* [THE_END] = */ NULL }; struct Shishi_realminfo * _shishi_realminfo (Shishi * handle, const char *realm) { size_t i; for (i = 0; i < handle->nrealminfos; i++) if (strcmp (realm, handle->realminfos[i].name) == 0) return &handle->realminfos[i]; return NULL; } struct Shishi_realminfo * _shishi_realminfo_new (Shishi * handle, char *realm) { struct Shishi_realminfo *ri; ri = _shishi_realminfo (handle, realm); if (ri) return ri; handle->realminfos = xrealloc (handle->realminfos, (++handle->nrealminfos) * sizeof (*handle->realminfos)); ri = &handle->realminfos[handle->nrealminfos - 1]; memset (ri, 0, sizeof (*ri)); ri->name = realm; return ri; } /** * shishi_cfg: * @handle: Shishi library handle created by shishi_init(). * @option: String containing shishi library options. * * Configures the shishi library according to the options * given in @option. * * Return value: Returns %SHISHI_OK if @option is valid * and configuration was successful. **/ int shishi_cfg (Shishi * handle, const char *option) { char *opt = option ? xstrdup (option) : NULL; char *p = opt; char *value; int res; size_t i; while (p != NULL && *p != '\0') { switch (getsubopt (&p, (char *const *) _shishi_opts, &value)) { case KDC_TIMEOUT_OPTION: if (value && atoi (value) > 0) handle->kdctimeout = atoi (value); else if (value) shishi_warn (handle, "Invalid KDC timeout value: `%s'", value); else shishi_warn (handle, "Missing KDC timeout value"); break; case KDC_RETRIES_OPTION: if (value && atoi (value) > 0) handle->kdcretries = atoi (value); else if (value) shishi_warn (handle, "Invalid KDC retries value: `%s'", value); else shishi_warn (handle, "Missing KDC retries value"); break; case TICKET_LIFE_OPTION: { time_t now = time (NULL); time_t then = shishi_get_date (value, &now); int diff = difftime (then, now); if (value && then != -1 && diff > 0) handle->ticketlife = diff; else if (diff <= 0 && diff + 60 * 60 * 24 > 0) /* Hack to support "17:00" as always meaning the next 17:00. */ handle->ticketlife = 60 * 60 * 24 + diff; else if (diff <= 0) shishi_warn (handle, "Negative ticket life date: `%s'", value); else if (then == -1) shishi_warn (handle, "Invalid ticket life date: `%s'", value); else shishi_warn (handle, "Missing ticket life value"); } break; case RENEW_LIFE_OPTION: { time_t now = time (NULL); time_t then = shishi_get_date (value, &now); int diff = difftime (then, now); if (value && then != -1 && diff > 0) handle->renewlife = diff; else if (diff <= 0) shishi_warn (handle, "Negative renew life date: `%s'", value); else if (then == -1) shishi_warn (handle, "Invalid renew life date: `%s'", value); else shishi_warn (handle, "Missing renew life value"); } break; case REALM_KDC_OPTION: { struct Shishi_realminfo *ri; char *realm = NULL; char *protstr; int transport = UDP; int add_realm = 1; realm = xstrdup (value); for (i = 0; i < handle->nrealminfos; i++) if (strcmp (realm, handle->realminfos[i].name) == 0) { if (handle->realminfos[i].nkdcaddresses > 0 || handle->realminfos[i].kdcaddresses) { free (handle->realminfos[i].kdcaddresses); handle->realminfos[i].kdcaddresses = NULL; handle->realminfos[i].nkdcaddresses = 0; ri = &handle->realminfos[i]; add_realm = 0; } break; } if (add_realm) { handle->realminfos = xrealloc (handle->realminfos, (handle->nrealminfos + 1) * sizeof (*handle->realminfos)); memset (&handle->realminfos[handle->nrealminfos], 0, sizeof (handle->realminfos[handle->nrealminfos])); handle->realminfos[handle->nrealminfos].name = realm; ri = &handle->realminfos[handle->nrealminfos]; handle->nrealminfos++; } if ((protstr = strchr (p, '/'))) { *protstr = '\0'; protstr++; if (strcasecmp (protstr, "udp") == 0) transport = UDP; else if (strcasecmp (protstr, "tcp") == 0) transport = TCP; else if (strcasecmp (protstr, "tls") == 0) transport = TLS; else shishi_warn (handle, "Ignoring unknown KDC transport: %s", protstr); } ri->kdcaddresses = xrealloc (ri->kdcaddresses, (ri->nkdcaddresses + 1) * sizeof (*ri->kdcaddresses)); ri->kdcaddresses[ri->nkdcaddresses].transport = transport; ri->kdcaddresses[ri->nkdcaddresses].hostname = xstrdup (p); if ((protstr = strchr (value, ':'))) { *protstr = '\0'; protstr++; ri->kdcaddresses[ri->nkdcaddresses].port = protstr; } else ri->kdcaddresses[ri->nkdcaddresses].port = NULL; ri->nkdcaddresses++; p = NULL; /* Done with suboptions. */ } break; case SERVER_REALM_OPTION: { struct Shishi_realminfo *ri; char *subopts, *part, *next; if (!p || (*p == 0)) { shishi_warn (handle, "Empty server-realm for '%s'.", value); break; } ri = _shishi_realminfo_new (handle, xstrdup (value)); part = subopts = xstrdup (p); /* List of patterns. */ while (part && *part) { next = strchr (part, ','); if (next) *(next++) = '\0'; ri->serverwildcards = xrealloc (ri->serverwildcards, ++ri->nserverwildcards * sizeof (*ri->serverwildcards)); ri->serverwildcards[ri->nserverwildcards - 1] = xstrdup (part); part = next; } p = NULL; /* Done with suboptions. */ } break; case DEFAULT_REALM_OPTION: handle->default_realm = xstrdup (value); break; case DEFAULT_PRINCIPAL_OPTION: handle->default_principal = xstrdup (value); break; case CLIENT_KDC_ETYPES_OPTION: res = shishi_cfg_clientkdcetype_set (handle, value); if (res != SHISHI_OK) goto out; break; case AUTHORIZATION_TYPES_OPTION: res = shishi_cfg_authorizationtype_set (handle, value); if (res != SHISHI_OK) goto out; break; case STRINGPROCESS_OPTION: free (handle->stringprocess); handle->stringprocess = xstrdup (value); break; case QUICK_RANDOM: _shishi_quick_random (); break; case VERBOSE_OPTION: handle->verbose = value && atoi (value) ? atoi (value) : ~0 & ~VERBOSES; break; case VERBOSE_CRYPTO_NOISE_OPTION: handle->verbose |= SHISHI_VERBOSE_CRYPTO_NOISE; break; case VERBOSE_CRYPTO_OPTION: handle->verbose |= SHISHI_VERBOSE_CRYPTO; break; case VERBOSE_ASN1_OPTION: handle->verbose |= SHISHI_VERBOSE_ASN1; break; case VERBOSE_NOISE_OPTION: handle->verbose |= SHISHI_VERBOSE_NOISE; break; case -1: if (!value) break; /* fall through */ default: shishi_warn (handle, "Unknown option: `%s'", value); break; } } res = SHISHI_OK; out: free (opt); return res; } /** * shishi_cfg_from_file: * @handle: Shishi library handle created by shishi_init(). * @cfg: Name of configuration file. * * Configures the shishi library using a configuration file * located at @cfg. * * Return value: Returns %SHISHI_OK if successful. **/ int shishi_cfg_from_file (Shishi * handle, const char *cfg) { char *line = NULL; size_t len = 0; FILE *fh; if (cfg == NULL) return SHISHI_OK; fh = fopen (cfg, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; while (!feof (fh)) { ssize_t n = getline (&line, &len, fh); char *p = line; char *q; if (n <= 0) /* End of file or error. */ break; while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || p[strlen (p) - 1] == '\r')) p[strlen (p) - 1] = '\0'; while (*p && strchr (" \t\r\n", *p)) p++; if (*p == '\0' || *p == '#') continue; q = strchr (p, ' '); if (q && (strchr (p, '=') == NULL || q < strchr (p, '='))) *q = '='; shishi_cfg (handle, p); } free (line); if (ferror (fh)) shishi_error_printf (handle, "Error reading configuration file"); if (fclose (fh) != 0) return SHISHI_IO_ERROR; return SHISHI_OK; } const char * _shishi_transport2string (int transport) { if (transport == UDP) return "UDP"; else if (transport == TCP) return "TCP"; else if (transport == TLS) return "TLS"; else return "UNKNOWN"; } /** * shishi_cfg_print: * @handle: Shishi library handle created by shishi_init(). * @fh: File stream handle opened for writing. * * Prints library configuration status to @fh. This function is * mostly intended for debugging purposes. * * Return value: Always returns %SHISHI_OK. **/ int shishi_cfg_print (Shishi * handle, FILE * fh) { size_t i, j; time_t tmp, now = time (NULL); fprintf (fh, "Shishi initial library configuration:\n"); fprintf (fh, "\tDefault realm: %s\n", handle->default_realm ? handle->default_realm : "(NULL)"); fprintf (fh, "\tDefault principal: %s\n", handle->default_principal ? handle->default_principal : "(NULL)"); fprintf (fh, "\tClient KDC etypes:"); for (i = 0; i < handle->nclientkdcetypes; i++) fprintf (fh, " %s", shishi_cipher_name (handle->clientkdcetypes[i])); fprintf (fh, "\n"); fprintf (fh, "\tVerbose: %d\n", handle->verbose); tmp = now + handle->ticketlife; fprintf (fh, "\tTicket life: %d seconds. %s", handle->ticketlife, ctime (&tmp)); tmp = now + handle->renewlife; fprintf (fh, "\tRenew life: %d seconds. %s", handle->renewlife, ctime (&tmp)); for (i = 0; i < handle->nrealminfos; i++) { fprintf (fh, "\tKDCs for realm %s:\n", handle->realminfos[i].name); for (j = 0; j < handle->realminfos[i].nkdcaddresses; j++) fprintf (fh, "\t\tTransport %s host %s port %s\n", _shishi_transport2string (handle->realminfos[i]. kdcaddresses[j].transport), handle->realminfos[i].kdcaddresses[j].hostname, handle->realminfos[i].kdcaddresses[j].port); } return SHISHI_OK; } /** * shishi_cfg_default_systemfile: * @handle: Shishi library handle created by shishi_init(). * * The system configuration file name is decided at compile * time, but is replaced by assigning another file name to * the environment variable $SHISHI_CONFIG. This call offers * a single interface for determining the file name, to which * the library turns for its settings. * * Return value: Returns file name of present system configuration. **/ const char * shishi_cfg_default_systemfile (Shishi * handle) { char *file; file = getenv ("SHISHI_CONFIG"); if (file) return file; return SYSTEMCFGFILE; } #define BASE_DIR "/.shishi" /** * shishi_cfg_default_userdirectory: * @handle: Shishi library handle created by shishi_init(). * * The default user directory, referred to for Shishi ticket cache * and other purposes, is normally computed by appending the fixed * string "/.shishi" to the content of the environment variable $HOME. * * This hard coded directory, i.e., "$HOME/.shishi/", can be replaced * by whatever complete path is stored in the environment variable * $SHISHI_HOME. * * Return value: Returns the user's directory name where the Shishi * library will search for configuration files, ticket caches, * etcetera. **/ const char * shishi_cfg_default_userdirectory (Shishi * handle) { char *home; char *envdir; envdir = getenv ("SHISHI_HOME"); if (envdir) return envdir; if (!handle->userdirectory) { home = getenv ("HOME"); asprintf (&handle->userdirectory, "%s%s", home ? home : "", BASE_DIR); } return handle->userdirectory; } /** * shishi_cfg_userdirectory_file: * @handle: Shishi library handle created by shishi_init(). * @file: Basename of file to use for the user's configuration * settings of the library. * * Reports the full path to the file where the Shishi library * expects to find the user's library configuration, given that * the file itself is named by the parameter @file. * * The answer is composed from the value of @file and the directory * returned by shishi_cfg_default_userdirectory(). Typically, the * returned string would be expanded from "$HOME/.shishi/@file". * * Return value: Returns the absolute filename to the argument @file, * relative to the user specific Shishi configuration directory. **/ char * shishi_cfg_userdirectory_file (Shishi * handle, const char *file) { char *out; asprintf (&out, "%s/%s", shishi_cfg_default_userdirectory (handle), file); return out; } #define USERCFG_FILE "shishi.conf" /** * shishi_cfg_default_userfile: * @handle: Shishi library handle created by shishi_init(). * * Reports the absolute filename of the default user configuration * file. This is typically "$HOME/.shishi/shishi.conf". * * The value of $SHISHI_HOME will change the directory part, * as stated regarding shishi_cfg_default_userdirectory(). * * Return value: Returns the user's configuration filename. **/ const char * shishi_cfg_default_userfile (Shishi * handle) { if (!handle->usercfgfile) handle->usercfgfile = shishi_cfg_userdirectory_file (handle, USERCFG_FILE); return handle->usercfgfile; } /** * shishi_cfg_clientkdcetype: * @handle: Shishi library handle created by shishi_init(). * @etypes: Pointer to an array of encryption types. * * Sets the variable @etypes to a static array of preferred encryption * types applicable to clients. * * Return value: Returns the number of encryption types referred to * by the updated array pointer, or zero, should no type exist. **/ int shishi_cfg_clientkdcetype (Shishi * handle, int32_t ** etypes) { *etypes = handle->clientkdcetypes; return handle->nclientkdcetypes; } /** * shishi_cfg_clientkdcetype_fast: * @handle: Shishi library handle created by shishi_init(). * * Extracts the default encryption type from the list of preferred * encryption types acceptable to the client. * * When the preferred list is empty, %SHISHI_AES256_CTS_HMAC_SHA1_96 * is returned as a sensible default type. * * Return value: Returns the default encryption type. **/ int32_t shishi_cfg_clientkdcetype_fast (Shishi * handle) { if (handle->nclientkdcetypes > 0) return handle->clientkdcetypes[0]; else return SHISHI_AES256_CTS_HMAC_SHA1_96; } /** * shishi_cfg_clientkdcetype_set: * @handle: Shishi library handle created by shishi_init(). * @value: String naming acceptable encryption types. * * Sets the configuration option "client-kdc-etypes" from @value. * The string contains encryption types, integers or names, * separated by comma or by whitespace. An example naming three * encryption types could be: * * aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 * * Return value: Returns %SHISHI_OK if successful, and * %SHISHI_INVALID_ARGUMENT otherwise. **/ int shishi_cfg_clientkdcetype_set (Shishi * handle, char *value) { char *ptrptr; char *val, *tmpvalue; int i; int tot = 0; int rc = SHISHI_INVALID_ARGUMENT; if (value == NULL || *value == '\0') return SHISHI_OK; tmpvalue = xstrdup (value); for (i = 0; (val = strtok_r (i == 0 ? tmpvalue : NULL, ", \t", &ptrptr)); i++) { int etype = shishi_cipher_parse (val); if (etype == -1) shishi_warn (handle, "Ignoring unknown encryption type: `%s'", val); else { int *new; tot++; new = xrealloc (handle->clientkdcetypes, tot * sizeof (*handle->clientkdcetypes)); handle->clientkdcetypes = new; handle->clientkdcetypes[tot - 1] = etype; handle->nclientkdcetypes = tot; rc = SHISHI_OK; /* At least one valid type. */ } } free (tmpvalue); return rc; } /** * shishi_cfg_authorizationtype_set: * @handle: Shishi library handle created by shishi_init(). * @value: String listing acceptable authorization types. * * Sets the configuration option "authorization-types" from @value. * The string contains authorization types, integers or names, * separated by comma or whitespace. * * As an example, "k5login basic" would first check Kerberos5 * authentication based on preset principals, and then fall back * to the basic test of identical principal names. * * Return value: Returns %SHISHI_OK if successful, and * %SHISHI_INVALID_ARGUMENT otherwise. **/ int shishi_cfg_authorizationtype_set (Shishi * handle, char *value) { char *ptrptr; char *val, *tmpvalue; int i; int tot = 0; int rc = SHISHI_INVALID_ARGUMENT; if (value == NULL || *value == '\0') return SHISHI_OK; tmpvalue = xstrdup (value); for (i = 0; (val = strtok_r (i == 0 ? tmpvalue : NULL, ", \t", &ptrptr)); i++) { int atype = shishi_authorization_parse (val); if (atype == -1) shishi_warn (handle, "Ignoring unknown authorization type: `%s'", val); else { int *new; tot++; new = xrealloc (handle->authorizationtypes, tot * sizeof (*handle->authorizationtypes)); handle->authorizationtypes = new; handle->authorizationtypes[tot - 1] = atype; handle->nauthorizationtypes = tot; rc = SHISHI_OK; /* At least one valid type. */ } } free (tmpvalue); return rc; } shishi-1.0.3/lib/key.c0000644000000000000000000003267114273601533011410 00000000000000/* key.c --- Key related functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_key { Shishi *handle; char *principal; char *realm; int type; char value[MAX_KEY_LEN]; uint32_t kvno; /* UINT32_MAX means undefined kvno */ time_t timestamp; /* Only used by keytab code. */ /* If you add anything here, check the functions shishi_key, shishi_key_done and shishi_key_copy. */ }; /** * shishi_key_principal: * @key: structure that holds key information * * Get the principal part of the key owner principal name, i.e., * except the realm. * * Return value: Returns the principal owning the key. (Not a copy of * it, so don't modify or deallocate it.) **/ const char * shishi_key_principal (const Shishi_key * key) { return key->principal; } /** * shishi_key_principal_set: * @key: structure that holds key information * @principal: string with new principal name. * * Set the principal owning the key. The string is copied into the * key, so you can dispose of the variable immediately after calling * this function. **/ void shishi_key_principal_set (Shishi_key * key, const char *principal) { free (key->principal); if (principal) key->principal = xstrdup (principal); else key->principal = NULL; } /** * shishi_key_realm: * @key: structure that holds key information * * Get the realm part of the key owner principal name. * * Return value: Returns the realm for the principal owning the key. * (Not a copy of it, so don't modify or deallocate it.) **/ const char * shishi_key_realm (const Shishi_key * key) { return key->realm; } /** * shishi_key_realm_set: * @key: structure that holds key information * @realm: string with new realm name. * * Set the realm for the principal owning the key. The string is * copied into the key, so you can dispose of the variable immediately * after calling this function. **/ void shishi_key_realm_set (Shishi_key * key, const char *realm) { free (key->realm); if (realm) key->realm = xstrdup (realm); else key->realm = NULL; } /** * shishi_key_type: * @key: structure that holds key information * * Get key type. * * Return value: Returns the type of key as an integer as described in * the standard. **/ int shishi_key_type (const Shishi_key * key) { return key->type; } /** * shishi_key_type_set: * @key: structure that holds key information * @type: type to set in key. * * Set the type of key in key structure. **/ void shishi_key_type_set (Shishi_key * key, int32_t type) { key->type = type; } /** * shishi_key_value: * @key: structure that holds key information * * Get the raw key bytes. * * Return value: Returns the key value as a pointer which is valid * throughout the lifetime of the key structure. **/ const char * shishi_key_value (const Shishi_key * key) { return key->value; } /** * shishi_key_value_set: * @key: structure that holds key information * @value: input array with key data. * * Set the key value and length in key structure. The value is copied * into the key (in other words, you can deallocate @value right after * calling this function without modifying the value inside the key). **/ void shishi_key_value_set (Shishi_key * key, const char *value) { if (value && shishi_cipher_keylen (key->type) > 0 && shishi_cipher_keylen (key->type) <= MAX_KEY_LEN) memcpy (key->value, value, shishi_cipher_keylen (key->type)); } /** * shishi_key_version: * @key: structure that holds key information * * Get the "kvno" (key version) of key. It will be UINT32_MAX if the * key is not long-lived. * * Return value: Returns the version of key ("kvno"). **/ uint32_t shishi_key_version (const Shishi_key * key) { return key->kvno; } /** * shishi_key_version_set: * @key: structure that holds key information * @kvno: new version integer. * * Set the version of key ("kvno") in key structure. Use UINT32_MAX * for non-ptermanent keys. **/ void shishi_key_version_set (Shishi_key * key, uint32_t kvno) { key->kvno = kvno; } /** * shishi_key_timestamp: * @key: structure that holds key information * * Get the time the key was established. Typically only present when * the key was imported from a keytab format. * * Return value: Returns the time the key was established, or * (time_t)-1 if not available. * * Since: 0.0.42 **/ time_t shishi_key_timestamp (const Shishi_key * key) { return key->timestamp; } /** * shishi_key_timestamp_set: * @key: structure that holds key information * @timestamp: new timestamp. * * Set the time the key was established. Typically only relevant when * exporting the key to keytab format. * * Since: 0.0.42 **/ void shishi_key_timestamp_set (Shishi_key * key, time_t timestamp) { key->timestamp = timestamp; } /** * shishi_key_name: * @key: structure that holds key information * * Calls shishi_cipher_name for key type. * * Return value: Return name of key. **/ const char * shishi_key_name (Shishi_key * key) { return shishi_cipher_name (key->type); } /** * shishi_key_length: * @key: structure that holds key information * * Calls shishi_cipher_keylen for key type. * * Return value: Returns the length of the key value. **/ size_t shishi_key_length (const Shishi_key * key) { return shishi_cipher_keylen (key->type); } /** * shishi_key: * @handle: Shishi library handle create by shishi_init(). * @key: pointer to structure that will hold newly created key information * * Create a new Key information structure. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key (Shishi * handle, Shishi_key ** key) { *key = xcalloc (1, sizeof (**key)); (*key)->handle = handle; (*key)->kvno = UINT32_MAX; return SHISHI_OK; } /** * shishi_key_done: * @key: pointer to structure that holds key information. * * Deallocates key information structure. **/ void shishi_key_done (Shishi_key * key) { free (key->realm); free (key->principal); free (key); } /** * shishi_key_copy: * @dstkey: structure that holds destination key information * @srckey: structure that holds source key information * * Copies source key into existing allocated destination key. **/ void shishi_key_copy (Shishi_key * dstkey, Shishi_key * srckey) { shishi_key_principal_set (dstkey, shishi_key_principal (srckey)); shishi_key_realm_set (dstkey, shishi_key_realm (srckey)); shishi_key_type_set (dstkey, shishi_key_type (srckey)); shishi_key_value_set (dstkey, shishi_key_value (srckey)); shishi_key_version_set (dstkey, shishi_key_version (srckey)); shishi_key_timestamp_set (dstkey, shishi_key_timestamp (srckey)); } /** * shishi_key_from_value: * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @value: input array with key value, or NULL. * @key: pointer to structure that will hold newly created key information * * Create a new Key information structure, and set the key type and * key value. KEY contains a newly allocated structure only if this * function is successful. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key_from_value (Shishi * handle, int32_t type, const char *value, Shishi_key ** key) { int rc; rc = shishi_key (handle, key); if (rc != SHISHI_OK) return rc; shishi_key_type_set (*key, type); if (value) shishi_key_value_set (*key, value); return SHISHI_OK; } /** * shishi_key_from_base64: * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @value: input string with base64 encoded key value, or NULL. * @key: pointer to structure that will hold newly created key information * * Create a new Key information structure, and set the key type and * key value. KEY contains a newly allocated structure only if this * function is successful. * * Return value: Returns SHISHI_INVALID_KEY if the base64 encoded key * length doesn't match the key type, and SHISHI_OK on * success. **/ int shishi_key_from_base64 (Shishi * handle, int32_t type, const char *value, Shishi_key ** key) { int rc; rc = shishi_key (handle, key); if (rc != SHISHI_OK) return rc; shishi_key_type_set (*key, type); if (value) { size_t len = MAX_KEY_LEN; if (!base64_decode (value, strlen (value), (*key)->value, &len)) { shishi_key_done (*key); return SHISHI_BASE64_ERROR; } if (len != shishi_key_length (*key)) { shishi_key_done (*key); return SHISHI_INVALID_KEY; } } return SHISHI_OK; } /** * shishi_key_random * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @key: pointer to structure that will hold newly created key information * * Create a new Key information structure for the key type and some * random data. KEY contains a newly allocated structure only if this * function is successful. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key_random (Shishi * handle, int32_t type, Shishi_key ** key) { char buf[MAX_RANDOM_LEN]; int len = shishi_cipher_randomlen (type); int rc; rc = shishi_randomize (handle, 1, buf, len); if (rc != SHISHI_OK) return rc; rc = shishi_key (handle, key); if (rc != SHISHI_OK) return rc; rc = shishi_random_to_key (handle, type, buf, len, *key); if (rc != SHISHI_OK) { shishi_key_done (*key); return rc; } return SHISHI_OK; } /** * shishi_key_from_random * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @rnd: random data. * @rndlen: length of random data. * @outkey: pointer to structure that will hold newly created key information * * Create a new Key information structure, and set the key type and * key value using shishi_random_to_key(). KEY contains a newly * allocated structure only if this function is successful. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key_from_random (Shishi * handle, int32_t type, const char *rnd, size_t rndlen, Shishi_key ** outkey) { int rc; rc = shishi_key (handle, outkey); if (rc != SHISHI_OK) return rc; rc = shishi_random_to_key (handle, type, rnd, rndlen, *outkey); return rc; } /** * shishi_key_from_string * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @password: input array containing password. * @passwordlen: length of input array containing password. * @salt: input array containing salt. * @saltlen: length of input array containing salt. * @parameter: input array with opaque encryption type specific information. * @outkey: pointer to structure that will hold newly created key information * * Create a new Key information structure, and set the key type and * key value using shishi_string_to_key(). KEY contains a newly * allocated structure only if this function is successful. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key_from_string (Shishi * handle, int32_t type, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key ** outkey) { int rc; rc = shishi_key (handle, outkey); if (rc != SHISHI_OK) return rc; rc = shishi_string_to_key (handle, type, password, passwordlen, salt, saltlen, parameter, *outkey); if (rc != SHISHI_OK) { shishi_key_done (*outkey); return rc; } return SHISHI_OK; } /** * shishi_key_from_name: * @handle: Shishi library handle create by shishi_init(). * @type: type of key. * @name: principal name of user. * @password: input array containing password. * @passwordlen: length of input array containing password. * @parameter: input array with opaque encryption type specific information. * @outkey: pointer to structure that will hold newly created key information * * Create a new Key information structure, and derive the key from * principal name and password using shishi_key_from_name(). The salt * is derived from the principal name by concatenating the decoded * realm and principal. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_key_from_name (Shishi * handle, int32_t type, const char *name, const char *password, size_t passwordlen, const char *parameter, Shishi_key ** outkey) { int rc; char *salt; rc = shishi_derive_default_salt (handle, name, &salt); if (rc != SHISHI_OK) return rc; rc = shishi_key_from_string (handle, type, password, passwordlen, salt, strlen (salt), parameter, outkey); if (rc == SHISHI_OK) { char *principal; char *realm; rc = shishi_parse_name (handle, name, &principal, &realm); if (rc == SHISHI_OK) { shishi_key_principal_set (*outkey, principal); shishi_key_realm_set (*outkey, realm); free (realm); free (principal); } } free (salt); return rc; } shishi-1.0.3/lib/kdc.c0000644000000000000000000005571114273601533011361 00000000000000/* kdc.c --- Key distribution (AS/TGS) functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /** * shishi_as_derive_salt: * @handle: Shishi handle as allocated by shishi_init(). * @asreq: Input AS-REQ variable. * @asrep: Input AS-REP variable. * @salt: Returned pointer to newly allocated output array. * @saltlen: Pointer to integer, returning size of output array. * * Computes the salt that should be used when deriving a key via * shishi_string_to_key() for an AS exchange. Currently this * searches for PA-DATA of type %SHISHI_PA_PW_SALT in the AS-REP * provided by @asrep, and if present returns it. Otherwise the * salt is composed from the client name and the realm, both are * extracted from the request @asreq. * * Return value: Returns %SHISHI_OK if successful. * Failure conditions include various ASN.1 issues. **/ int shishi_as_derive_salt (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep, char **salt, size_t *saltlen) { size_t i, n; char *format; int res; res = shishi_asn1_number_of_elements (handle, asrep, "padata", &n); if (res == SHISHI_ASN1_NO_ELEMENT) n = 0; else if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { int patype; asprintf (&format, "padata.?%zu.padata-type", i); res = shishi_asn1_read_int32 (handle, asrep, format, &patype); free (format); if (res != SHISHI_OK) return res; if (patype == SHISHI_PA_PW_SALT) { asprintf (&format, "padata.?%zu.padata-value", i); res = shishi_asn1_read (handle, asrep, format, salt, saltlen); free (format); if (res != SHISHI_OK) return res; return SHISHI_OK; } } res = shishi_kdcreq_realm (handle, asreq, salt, saltlen); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, asreq, "req-body.cname.name-string", &n); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { char *tmp; size_t tmplen; asprintf (&format, "req-body.cname.name-string.?%zu", i); res = shishi_asn1_read (handle, asreq, format, &tmp, &tmplen); free (format); if (res != SHISHI_OK) return res; *saltlen += tmplen; *salt = xrealloc (*salt, *saltlen + 1); memcpy (*salt + *saltlen - tmplen, tmp, tmplen); (*salt)[*saltlen] = '\0'; free (tmp); } return SHISHI_OK; } /** * shishi_kdcreq_sendrecv_hint: * @handle: Shishi library handle created by shishi_init(). * @kdcreq: Input variable with a prepared AS-REQ. * @kdcrep: Output pointer variable for decoded AS-REP. * @hint: Input #Shishi_tkts_hint structure with flags. * * Sends a request to KDC, and receives the response. * The provided request @kdcreq and the hints structure @hint, * together determine transmitted data. On reception the reply * is decoded as AS-REP into @kdcrep. * * Return value: Return code is %SHISHI_OK on success, * %SHISHI_KDC_TIMEOUT on timeouts, %SHISHI_ASN1_ERROR on * translation errors, and %SHISHI_GOT_KRBERROR for other * corruptions. **/ int shishi_kdcreq_sendrecv_hint (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * kdcrep, Shishi_tkts_hint * hint) { char *der; size_t der_len; size_t buflen; char *buffer; char *realm; size_t realmlen; int res; res = shishi_asn1_to_der (handle, kdcreq, &der, &der_len); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode AS-REQ: %s\n", shishi_strerror (res)); return res; } res = shishi_asn1_read (handle, kdcreq, "req-body.realm", &realm, &realmlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not get realm: %s\n", shishi_error (handle)); return res; } realm = xrealloc (realm, realmlen + 1); realm[realmlen] = '\0'; res = shishi_kdc_sendrecv_hint (handle, realm, der, der_len, &buffer, &buflen, hint); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not send to KDC: %s\n", shishi_error (handle)); return res; } free (realm); free (der); if (VERBOSEASN1 (handle)) printf ("received %zu bytes\n", buflen); *kdcrep = shishi_der2asn1_asrep (handle, buffer, buflen); if (*kdcrep == NULL) { *kdcrep = shishi_der2asn1_tgsrep (handle, buffer, buflen); if (*kdcrep == NULL) { *kdcrep = shishi_der2asn1_kdcrep (handle, buffer, buflen); if (*kdcrep == NULL) { *kdcrep = shishi_der2asn1_krberror (handle, buffer, buflen); if (*kdcrep == NULL) { shishi_error_printf (handle, "Could not DER decode AS-REP/KRB-ERROR: %s", shishi_error (handle)); return SHISHI_ASN1_ERROR; } shishi_error_clear (handle); return SHISHI_GOT_KRBERROR; } else { printf ("Buggy server replied with KDC-REP instead of AS-REP\n"); } } } free (buffer); return SHISHI_OK; } /** * shishi_kdcreq_sendrecv: * @handle: Shishi library handle created by shishi_init(). * @kdcreq: Input variable with a prepared AS-REQ. * @kdcrep: Output pointer variable returning received AS-REP. * * Sends a request to KDC, and receives the response. * The provided AS-REQ, in @kdcreq, sets all data for the * request. On reception the reply is decoded as AS-REP * into @kdcrep. * * Return value: Return code is %SHISHI_OK on success, * %SHISHI_KDC_TIMEOUT on timeouts, %SHISHI_ASN1_ERROR on * translation errors, and %SHISHI_GOT_KRBERROR for other * corruptions. **/ int shishi_kdcreq_sendrecv (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 * kdcrep) { return shishi_kdcreq_sendrecv_hint (handle, kdcreq, kdcrep, NULL); } /** * shishi_kdc_copy_crealm: * @handle: Shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP where the field "crealm" is updated. * @encticketpart: EncTicketPart providing "crealm" field. * * Reads the field "crealm" from the ticket @encticketpart * and copies the value into the reply @kdcrep. * * Return value: Returns %SHISHI_OK if successful, and ASN.1 * failures otherwise. **/ int shishi_kdc_copy_crealm (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 encticketpart) { char *buf; size_t buflen; int res; res = shishi_asn1_read (handle, encticketpart, "crealm", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "crealm", buf, buflen); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_as_check_crealm: * @handle: Shishi handle as allocated by shishi_init(). * @asreq: Request of type AS-REQ. * @asrep: Reply structure of type AS-REP. * * Verifies that the fields @asreq.req-body.realm and @asrep.crealm * contain identical realm names. This is one of the steps that * has to be performed when processing an exchange of AS-REQ and * AS-REP; see shishi_kdc_process() for more details. * * Return value: Returns %SHISHI_OK if successful, * %SHISHI_REALM_MISMATCH whenever the realm names differ, * and an error code otherwise. **/ int shishi_as_check_crealm (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep) { char *reqrealm, *reprealm; size_t reqrealmlen, reprealmlen; int res; res = shishi_asn1_read (handle, asreq, "req-body.realm", &reqrealm, &reqrealmlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not read request realm: %s\n", shishi_strerror (res)); return res; } res = shishi_asn1_read (handle, asrep, "crealm", &reprealm, &reprealmlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not read reply realm: %s\n", shishi_strerror (res)); return res; } reqrealm[reqrealmlen] = '\0'; reprealm[reprealmlen] = '\0'; if (VERBOSEASN1 (handle)) { printf ("request realm: %s\n", reqrealm); printf ("reply realm: %s\n", reprealm); } res = strcmp (reqrealm, reprealm) != 0; free (reqrealm); free (reprealm); if (res) return SHISHI_REALM_MISMATCH; return SHISHI_OK; } /** * shishi_kdc_copy_cname: * @handle: Shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP where the field "cname" is updated. * @encticketpart: EncTicketPart providing "cname" field. * * Reads the field "cname" from the ticket @encticketpart * and copies the value into the reply @kdcrep. * * Return value: Returns %SHISHI_OK if successful, and ASN.1 * failures otherwise. **/ int shishi_kdc_copy_cname (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 encticketpart) { char *buf; char *format; size_t buflen, i, n; int res; res = shishi_asn1_read (handle, encticketpart, "cname.name-type", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "cname.name-type", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, encticketpart, "cname.name-string", &n); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "cname.name-string", NULL, 0); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { res = shishi_asn1_write (handle, kdcrep, "cname.name-string", "NEW", 1); if (res != SHISHI_OK) return res; asprintf (&format, "cname.name-string.?%zu", i); res = shishi_asn1_read (handle, encticketpart, format, &buf, &buflen); free (format); if (res != SHISHI_OK) return res; asprintf (&format, "cname.name-string.?%zu", i); res = shishi_asn1_write (handle, kdcrep, format, buf, buflen); free (format); free (buf); if (res != SHISHI_OK) return res; } return SHISHI_OK; } /** * shishi_as_check_cname: * @handle: Shishi handle as allocated by shishi_init(). * @asreq: Request of type AS-REQ. * @asrep: Reply structure of type AS-REP. * * Verifies that the fields @asreq.req-body.cname and @asrep.cname * contain identical names. This is one of the steps that has to * be performed when processing an exchange of AS-REQ and AS-REP; * see shishi_kdc_process() for more details. * * Return value: Returns %SHISHI_OK if successful, * %SHISHI_CNAME_MISMATCH if the names differ, * and an error code otherwise. **/ int shishi_as_check_cname (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep) { char *reqcname, *repcname; size_t reqcnamelen, repcnamelen, i, j; char *format; int res; /* We do not compare msg-type as recommended on the ietf-krb-wg list */ res = shishi_asn1_number_of_elements (handle, asreq, "req-body.cname.name-string", &i); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, asrep, "cname.name-string", &j); if (res != SHISHI_OK) return res; if (i != j) return SHISHI_CNAME_MISMATCH; for (i = 1; i <= j; i++) { asprintf (&format, "req-body.cname.name-string.?%zu", i); res = shishi_asn1_read (handle, asreq, format, &reqcname, &reqcnamelen); free (format); if (res != SHISHI_OK) return res; asprintf (&format, "cname.name-string.?%zu", i); res = shishi_asn1_read (handle, asrep, format, &repcname, &repcnamelen); free (format); if (res != SHISHI_OK) return res; if (VERBOSEASN1 (handle)) { reqcname[reqcnamelen] = '\0'; repcname[repcnamelen] = '\0'; printf ("request cname %zu: %s\n", i, reqcname); printf ("reply cname %zu: %s\n", i, repcname); } res = (reqcnamelen != repcnamelen) || (memcmp (reqcname, repcname, reqcnamelen) != 0); free (reqcname); free (repcname); if (res) return SHISHI_CNAME_MISMATCH; } return SHISHI_OK; } /** * shishi_kdc_copy_nonce: * @handle: Shishi handle as allocated by shishi_init(). * @kdcreq: KDC-REQ providing "nonce" field. * @enckdcreppart: EncKDCRepPart where "nonce" field is updated. * * Sets the field "nonce" in @enckdcreppart to a value retreived * from the corresponding field in @kdcreq. * * Return value: Returns %SHISHI_OK if successful. **/ int shishi_kdc_copy_nonce (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 enckdcreppart) { int res; uint32_t nonce; res = shishi_kdcreq_nonce (handle, kdcreq, &nonce); if (res != SHISHI_OK) return res; res = shishi_enckdcreppart_nonce_set (handle, enckdcreppart, nonce); if (res != SHISHI_OK) return res; return SHISHI_OK; } static int shishi_kdc_check_nonce_1 (Shishi * handle, char *reqnonce, size_t reqnoncelen, char *repnonce, size_t repnoncelen) { if (VERBOSENOISE (handle)) { size_t i; printf ("request nonce (len=%zu) ", reqnoncelen); for (i = 0; i < reqnoncelen; i++) printf ("%02x", (unsigned) reqnonce[i] & 0xFF); printf ("\n"); printf ("reply nonce (len=%zu) ", repnoncelen); for (i = 0; i < repnoncelen; i++) printf ("%02x", (unsigned) repnonce[i] & 0xFF); printf ("\n"); } if (reqnoncelen > 4 && repnoncelen == 4) { /* This case warrants some explanation. * * RFC 1510 didn't restrict nonce to 4 bytes, so the nonce field * may be longer. There are KDCs that will accept longer nonces * but truncate them to 4 bytes in the response. If we happen * to parse such a KDC request, we consider it OK even though it * isn't. I doubt this is a security problem, because you need * to break the integrity protection of the encryption system, * as well as guessing the nonce correctly. The nonce doesn't * seem to serve any purpose at all, really. * */ if (memcmp (reqnonce + reqnoncelen - 4, repnonce, 4) != 0) return SHISHI_NONCE_MISMATCH; shishi_warn (handle, "server truncated long nonce to 4 bytes"); return SHISHI_OK; } if (reqnoncelen != repnoncelen || memcmp (reqnonce, repnonce, repnoncelen) != 0) return SHISHI_NONCE_MISMATCH; return SHISHI_OK; } /** * shishi_kdc_check_nonce: * @handle: Shishi handle as allocated by shishi_init(). * @kdcreq: Request of type KDC-REQ. * @enckdcreppart: Encrypted KDC-REP part. * * Verifies that @kdcreq.req-body.nonce and @enckdcreppart.nonce * contain matching values. This is one of the steps that has to * be performed when processing an exchange of KDC-REQ and KDC-REP. * * Return value: Returns %SHISHI_OK if successful, * %SHISHI_NONCE_MISMATCH whenever the nonces are of * differing lengths (usually a sign that a buggy server * truncates the nonce to 4 bytes) and the same code if the * nonce values differ, or an error code otherwise. **/ int shishi_kdc_check_nonce (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 enckdcreppart) { char *reqnonce; char *repnonce; size_t reqnoncelen, repnoncelen; int res; res = shishi_asn1_read (handle, kdcreq, "req-body.nonce", &reqnonce, &reqnoncelen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not read request nonce: %s\n", shishi_strerror (res)); return res; } res = shishi_asn1_read (handle, enckdcreppart, "nonce", &repnonce, &repnoncelen); if (res != SHISHI_OK) { free (reqnonce); shishi_error_printf (handle, "Could not read reply nonce: %s\n", shishi_strerror (res)); return res; } res = shishi_kdc_check_nonce_1 (handle, reqnonce, reqnoncelen, repnonce, repnoncelen); free (reqnonce); free (repnonce); return res; } /** * shishi_tgs_process: * @handle: Shishi handle as allocated by shishi_init(). * @tgsreq: Input variable holding the transmitted KDC-REQ. * @tgsrep: Input variable holding the received KDC-REP. * @authenticator: Input variable with an authenticator extracted * from the AP-REQ part of @tgsreq. * @oldenckdcreppart: Input variable with EncKDCRepPart used * in the request. * @enckdcreppart: Output variable holding the new EncKDCRepPart. * * Processes a TGS client exchange and outputs the decrypted * EncKDCRepPart, holding details about the received ticket. * This function simply derives the encryption key from the * ticket used to construct the original TGS request, and then * calls shishi_kdc_process(). * * Return value: Returns %SHISHI_OK if the TGS client exchange * was successful. Failures include ASN.1 and TGS conditions. **/ int shishi_tgs_process (Shishi * handle, Shishi_asn1 tgsreq, Shishi_asn1 tgsrep, Shishi_asn1 authenticator, Shishi_asn1 oldenckdcreppart, Shishi_asn1 * enckdcreppart) { Shishi_key *tktkey; Shishi_key *subkey; int use_subkey; int etype; int res; res = shishi_kdcrep_get_enc_part_etype (handle, tgsrep, &etype); if (res != SHISHI_OK) return res; res = shishi_authenticator_get_subkey (handle, authenticator, &subkey); use_subkey = (res != SHISHI_ASN1_NO_ELEMENT); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) return res; res = shishi_enckdcreppart_get_key (handle, oldenckdcreppart, &tktkey); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (use_subkey ? subkey : tktkey)) res = SHISHI_TGSREP_BAD_KEYTYPE; else res = shishi_kdc_process (handle, tgsreq, tgsrep, use_subkey ? subkey : tktkey, use_subkey ? SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY : SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY, enckdcreppart); /* Entire if statement to work around buggy KDCs. */ if (use_subkey && (res == SHISHI_CRYPTO_ERROR || res == SHISHI_TGSREP_BAD_KEYTYPE)) { int tmpres; /* Try again using key from ticket instead of subkey */ if (etype != shishi_key_type (tktkey)) tmpres = SHISHI_TGSREP_BAD_KEYTYPE; else tmpres = shishi_kdc_process (handle, tgsreq, tgsrep, tktkey, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY, enckdcreppart); /* if bug workaround code didn't help, return original error. */ if (tmpres != SHISHI_OK) return res; shishi_warn (handle, "KDC bug: Reply encrypted using wrong key."); res = tmpres; } if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_as_process: * @handle: Shishi handle as allocated by shishi_init(). * @asreq: Input variable holding the transmitted KDC-REQ. * @asrep: Input variable holding the received KDC-REP. * @string: Input variable with a null terminated password. * @enckdcreppart: Output variable returning a new EncKDCRepPart. * * Processes an AS client exchange and returns the decrypted * EncKDCRepPart, holding details about the received ticket. * This function simply derives the encryption key from the * password, and then calls shishi_kdc_process(). * * Return value: Returns %SHISHI_OK if the AS client exchange was * successful. Multiple failure conditions are possible. **/ int shishi_as_process (Shishi * handle, Shishi_asn1 asreq, Shishi_asn1 asrep, const char *string, Shishi_asn1 * enckdcreppart) { char *salt; size_t saltlen; int res; Shishi_key *key; int keytype; res = shishi_as_derive_salt (handle, asreq, asrep, &salt, &saltlen); if (res != SHISHI_OK) return res; res = shishi_kdcrep_get_enc_part_etype (handle, asrep, &keytype); if (res != SHISHI_OK) return res; res = shishi_key_from_string (handle, keytype, string, strlen (string), salt, saltlen, NULL, &key); if (res != SHISHI_OK) return res; if (VERBOSENOISE (handle)) shishi_key_print (handle, stderr, key); res = shishi_kdc_process (handle, asreq, asrep, key, SHISHI_KEYUSAGE_ENCASREPPART, enckdcreppart); return res; } /** * shishi_kdc_process: * @handle: Shishi handle as allocated by shishi_init(). * @kdcreq: Input variable holding the transmitted KDC-REQ. * @kdcrep: Input variable holding the received KDC-REP. * @key: Input pointet to key for decrypting parts of @kdcrep. * @keyusage: Kerberos key usage code. * @enckdcreppart: Output pointer for the extracted EncKDCRepPart. * * Processes a KDC client exchange and extracts a decrypted * EncKDCRepPart, holding details about the received ticket. * Use shishi_kdcrep_get_ticket() to extract the ticket itself. * This function verifies the various conditions that must hold * if the response is to be considered valid. In particular, * it compares nonces (using shishi_kdc_check_nonce()), and if * the exchange was an AS exchange, it also checks cname and * crealm (using shishi_as_check_cname(), shishi_as_check_crealm()). * * Usually shishi_as_process() and shishi_tgs_process() should be * used instead of this call, since they simplify computation of * the decryption key. * * Return value: Returns %SHISHI_OK if the KDC client exchange was * successful. Multiple failure conditions are possible. **/ int shishi_kdc_process (Shishi * handle, Shishi_asn1 kdcreq, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 * enckdcreppart) { int res; int msgtype; /* If the reply message type is KRB_AS_REP, then the client verifies that the cname and crealm fields in the cleartext portion of the reply match what it requested. If any padata fields are present, they may be used to derive the proper secret key to decrypt the message. The client decrypts the encrypted part of the response using its secret key, verifies that the nonce in the encrypted part matches the nonce it supplied in its request (to detect replays). It also verifies that the sname and srealm in the response match those in the request (or are otherwise expected values), and that the host address field is also correct. It then stores the ticket, session key, start and expiration times, and other information for later use. The key-expiration field from the encrypted part of the response may be checked to notify the user of impending key expiration (the client program could then suggest remedial action, such as a password change). */ msgtype = 0; res = shishi_asn1_read_integer (handle, kdcrep, "msg-type", &msgtype); if (res != SHISHI_OK) return res; if (msgtype == SHISHI_MSGTYPE_AS_REP) { res = shishi_as_check_crealm (handle, kdcreq, kdcrep); if (res != SHISHI_OK) return res; res = shishi_as_check_cname (handle, kdcreq, kdcrep); if (res != SHISHI_OK) return res; } res = shishi_kdcrep_decrypt (handle, kdcrep, key, keyusage, enckdcreppart); if (res != SHISHI_OK) return res; res = shishi_kdc_check_nonce (handle, kdcreq, *enckdcreppart); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/ccache.h0000644000000000000000000000506314273601533012026 00000000000000/* ccache.h --- Read MIT style Kerberos Credential Cache file. * Copyright (C) 2006-2022 Simon Josefsson * * This file is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 3 of the License, * or (at your option) any later version. * * This file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this file; if not, see http://www.gnu.org/licenses or * write to the Free Software Foundation, Inc., 51 Franklin Street, * Fifth Floor, Boston, MA 02110-1301, USA * */ #ifndef CCACHE_H # define CCACHE_H 1 # include # include # define CCACHE_MAX_COMPONENTS 5 # define CCACHE_MAX_KEYLEN 32 struct ccache_header { uint16_t tag; uint16_t taglen; char *tagdata; }; struct ccache_buffer { uint32_t length; char *data; }; struct ccache_principal { uint32_t name_type; uint32_t num_components; struct ccache_buffer realm; struct ccache_buffer components[CCACHE_MAX_COMPONENTS]; }; struct ccache_keyblock { uint16_t keytype; uint16_t etype; uint16_t keylen; char *keyvalue; char storage[CCACHE_MAX_KEYLEN]; /* usable by caller for storing keys that keyvalue point to. */ }; struct ccache_credential { struct ccache_principal client; struct ccache_principal server; struct ccache_keyblock key; uint32_t authtime; uint32_t starttime; uint32_t endtime; uint32_t renew_till; uint8_t is_skey; uint32_t tktflags; struct ccache_buffer ticket; struct ccache_buffer second_ticket; }; struct ccache { uint16_t file_format_version; uint16_t headerlen; char *header; struct ccache_principal default_principal; size_t credentialslen; char *credentials; }; extern int ccache_parse (const char *data, size_t length, struct ccache *out); extern int ccache_parse_credential (const char *data, size_t len, struct ccache_credential *out, size_t *n); extern int ccache_pack (struct ccache *info, char *data, size_t *len); extern int ccache_pack_credential (struct ccache_credential *cred, char *out, size_t *len); extern void ccache_print (struct ccache *ccache); extern void ccache_print_principal (struct ccache_principal *princ); extern void ccache_print_credential (struct ccache_credential *cred); #endif /* CCACHE_H */ shishi-1.0.3/lib/low-crypto.h0000644000000000000000000000176114273601533012740 00000000000000/* low-crypto.h --- Crypto initialization prototypes. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef LOW_CRYPTO_H # define LOW_CRYPTO_H int _shishi_crypto_init (Shishi * handle); void _shishi_quick_random (void); #endif shishi-1.0.3/lib/authorize.c0000644000000000000000000001343114273601533012623 00000000000000/* authorize.c --- Authorization to services of authenticated principals. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #ifdef HAVE_PWD_H # include #endif /** * shishi_authorize_strcmp: * @handle: shishi handle allocated by shishi_init(). * @principal: string with desired principal name. * @authzname: authorization name. * * Authorization of @authzname against desired @principal * according to "basic" authentication, i.e., testing for * identical strings. * * Return value: Returns 1 if @authzname is authorized for services * by the encrypted principal, and 0 otherwise. **/ int shishi_authorize_strcmp (Shishi * handle, const char *principal, const char *authzname) { if (strcmp (principal, authzname) == 0) return 1; return 0; } /* MIT/Heimdal authorization method */ /** * shishi_authorize_k5login: * @handle: shishi handle allocated by shishi_init(). * @principal: string with desired principal name and realm. * @authzname: authorization name. * * Authorization of @authzname against desired @principal * in accordance with the MIT/Heimdal authorization method. * * Return value: Returns 1 if @authzname is authorized for services * by @principal, and returns 0 otherwise. **/ int shishi_authorize_k5login (Shishi * handle, const char *principal, const char *authzname) { #if HAVE_PWD_H && HAVE_GETPWNAM struct passwd *pwd; struct stat sta; FILE *fic; char *ficname; char *line = NULL; size_t linelength = 0; int authorized = 0; pwd = getpwnam (authzname); if (pwd == NULL || pwd->pw_dir == NULL) return 0; asprintf (&ficname, "%s/%s", pwd->pw_dir, ".k5login"); if (stat (ficname, &sta) != 0) { /* File .k5login does not exist. */ free (ficname); return 0; } /* Owner should be acting user, or root. */ if ((sta.st_uid != pwd->pw_uid) && (sta.st_uid != 0)) { free (ficname); return 0; } /* Write access is forbidden for group and world. */ if ((sta.st_mode & S_IWGRP) || (sta.st_mode & S_IWOTH)) { free (ficname); return 0; } fic = fopen (ficname, "r"); if (fic == NULL) { free (ficname); return 0; } while (!feof (fic)) { char *p; if (getline (&line, &linelength, fic) == -1) break; p = strchr (line, '\n'); if (p) *p = '\0'; if (strcmp (principal, line) == 0) { authorized = 1; break; } } fclose (fic); free (ficname); free (line); return authorized; #else return 0; #endif } struct Authorization_aliases { const char *name; int type; }; static const struct Authorization_aliases authorization_aliases[] = { {"basic", SHISHI_AUTHORIZATION_BASIC}, {"k5login", SHISHI_AUTHORIZATION_K5LOGIN} }; /** * shishi_authorization_parse: * @authorization: name of authorization type, "basic" or "k5login". * * Parse authorization type name. * * Return value: Returns authorization type corresponding to a string. **/ int shishi_authorization_parse (const char *authorization) { size_t i; char *endptr; i = strtol (authorization, &endptr, 0); if (endptr != authorization) return i; for (i = 0; i < sizeof (authorization_aliases) / sizeof (authorization_aliases[0]); i++) if (strcasecmp (authorization, authorization_aliases[i].name) == 0) return authorization_aliases[i].type; return -1; } /** * shishi_authorized_p: * @handle: shishi handle allocated by shishi_init(). * @tkt: input variable with ticket info. * @authzname: authorization name. * * Simplistic authorization of @authzname against encrypted client * principal name inside ticket. For "basic" authentication type, * the principal name must coincide with @authzname. The "k5login" * authentication type attempts the MIT/Heimdal method of parsing * the file "~/.k5login" for additional equivalence names. * * Return value: Returns 1 if @authzname is authorized for services * by the encrypted principal, and 0 otherwise. **/ int shishi_authorized_p (Shishi * handle, Shishi_tkt * tkt, const char *authzname) { char *client = NULL, *clientrealm = NULL; size_t i; int rc; rc = shishi_encticketpart_client (handle, shishi_tkt_encticketpart (tkt), &client, NULL); if (rc != SHISHI_OK) return 0; rc = shishi_encticketpart_clientrealm (handle, shishi_tkt_encticketpart (tkt), &clientrealm, NULL); if (rc != SHISHI_OK) { free (client); return 0; } for (i = 0; i < handle->nauthorizationtypes; i++) { switch (handle->authorizationtypes[i]) { case SHISHI_AUTHORIZATION_BASIC: if (shishi_authorize_strcmp (handle, client, authzname)) { free (client); free (clientrealm); return 1; } break; case SHISHI_AUTHORIZATION_K5LOGIN: if (shishi_authorize_k5login (handle, clientrealm, authzname)) { free (client); free (clientrealm); return 1; } break; default: break; /* Ignore unknown types. Continue searching. */ } } free (client); free (clientrealm); return 0; } shishi-1.0.3/lib/realm.c0000644000000000000000000001664314273601533011721 00000000000000/* realm.c --- Realm related functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /** * shishi_realm_default_guess: * * Guesses a realm based on getdomainname(), which really responds * with a NIS/YP domain, but if set properly, it might be a good * first guess. If this NIS query fails, call gethostname(), * and on its failure, fall back to returning the artificial * string "could-not-guess-default-realm". * * Note that the hostname is not trimmed off of the string returned * by gethostname(), thus pretending the local host name is a valid * realm name. The resulting corner case could merit a check that * the suggested realm is distinct from the fully qualifies host, * and if not, simply strip the host name from the returned string * before it is used in an application. One reason for sticking * with the present behaviour, is that some systems respond with * a non-qualified host name as reply from gethostname(). * * Return value: Returns a guessed realm for the running host, * containing a string that has to be deallocated with * free() by the caller. **/ char * shishi_realm_default_guess (void) { char *realm; realm = xgetdomainname (); if (realm && strlen (realm) > 0 && strcmp (realm, "(none)") != 0) return realm; free (realm); realm = xgethostname (); if (realm && strlen (realm) > 0 && strcmp (realm, "(none)") != 0) return realm; free (realm); realm = strdup ("could-not-guess-default-realm"); return realm; } /** * shishi_realm_default: * @handle: Shishi library handle created by shishi_init(). * * Determines name of default realm, i.e., the name of whatever * realm the library will use whenever an explicit realm is not * stated during a library call. * * Return value: Returns the default realm in use by the library. * Not a copy, so do not modify or deallocate the returned string. **/ const char * shishi_realm_default (Shishi * handle) { if (!handle->default_realm) { char *p; p = shishi_realm_default_guess (); shishi_realm_default_set (handle, p); free (p); } return handle->default_realm; } /** * shishi_realm_default_set: * @handle: Shishi library handle created by shishi_init(). * @realm: String stating a new default realm name, or %NULL. * * Sets the default realm used by the library; or, with @realm * set to %NULL, resets the library realm setting to that name * selected by configuration for default value. * * The string is copied into the library, so you can dispose of * the content in @realm immediately after calling this function. **/ void shishi_realm_default_set (Shishi * handle, const char *realm) { free (handle->default_realm); if (realm) handle->default_realm = xstrdup (realm); else handle->default_realm = NULL; } /** * shishi_realm_for_server_file: * @handle: Shishi library handle created by shishi_init(). * @server: Hostname to determine realm for. * * Finds the realm applicable to a host @server, using the * standard configuration file. * * Return value: Returns realm for host, or %NULL if not known. **/ char * shishi_realm_for_server_file (Shishi * handle, char *server) { struct Shishi_realminfo *ri; size_t i, j; char *p; for (i = 0; i < handle->nrealminfos; i++) { ri = &handle->realminfos[i]; if (!ri->nserverwildcards) continue; for (j = 0; j < ri->nserverwildcards; j++) { /* Exact server name match. */ if (strcmp (server, ri->serverwildcards[j]) == 0) return ri->name; /* Is this a tail pattern? */ if (*(ri->serverwildcards[j]) != '.') continue; /* Domain part matching. */ p = server; while ((p = strchr (p, '.'))) if (strcmp (p++, ri->serverwildcards[j]) == 0) return ri->name; } } return NULL; } /** * shishi_realm_for_server_dns: * @handle: Shishi library handle created by shishi_init(). * @server: Hostname to find realm for. * * Finds the realm for a host @server using DNS lookup, as is * prescribed in "draft-ietf-krb-wg-krb-dns-locate-03.txt". * * Since DNS lookup can be spoofed, relying on the realm information * may result in a redirection attack. In a single-realm scenario, * this only achieves a denial of service, but with trust across * multiple realms the attack may redirect you to a compromised realm. * For this reason, Shishi prints a warning, suggesting that the user * should instead add a proper 'server-realm' configuration token. * * To illustrate the DNS information used, here is an extract from a * zone file for the domain ASDF.COM: * * _kerberos.asdf.com. IN TXT "ASDF.COM" * _kerberos.mrkserver.asdf.com. IN TXT "MARKETING.ASDF.COM" * _kerberos.salesserver.asdf.com. IN TXT "SALES.ASDF.COM" * * Let us suppose that in this case, a client wishes to use a service * on the host "foo.asdf.com". It would first query for * * _kerberos.foo.asdf.com. IN TXT * * Finding no match, it would then query for * * _kerberos.asdf.com. IN TXT * * With the resource records stated above, the latter query returns * a positive answer. * * Return value: Returns realm for the indicated host, or %NULL * if no relevant TXT record could be found. **/ char * shishi_realm_for_server_dns (Shishi * handle, char *server) { Shishi_dns rrs; char *tmp = NULL; char *p = server; do { asprintf (&tmp, "_kerberos.%s", p); rrs = shishi_resolv (tmp, SHISHI_DNS_TXT); free (tmp); p = strchr (p, '.'); if (p) p++; } while (!rrs && p && *p); if (!rrs) return NULL; if (rrs->class != SHISHI_DNS_IN || rrs->type != SHISHI_DNS_TXT) { shishi_warn (handle, "Got non-TXT response to TXT query from DNS?"); return NULL; } shishi_warn (handle, "DNS maps '%s' to '%s'.", server, (char *) rrs->rr); shishi_warn (handle, "Consider using a 'server-realm' configuration token."); return rrs->rr; } /** * shishi_realm_for_server: * @handle: Shishi library handle created by shishi_init(). * @server: Hostname to find realm for. * * Finds a realm for the host @server, using various methods. * * Currently this includes static configuration files, using * the library call shishi_realm_for_server_file(), and DNS * lookup using shishi_realm_for_server_dns(). They are * attempted in the stated order. See the documentation of * either function for more information. * * Return value: Returns realm for the indicated host, or %NULL * if nothing is known about @server. **/ char * shishi_realm_for_server (Shishi * handle, char *server) { char *p; p = shishi_realm_for_server_file (handle, server); if (!p) p = shishi_realm_for_server_dns (handle, server); return p; } shishi-1.0.3/lib/init.c0000644000000000000000000003031614273601533011555 00000000000000/* init.c --- Initialization functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get gl_sockets_startup. */ #include "sockets.h" /* Get _shishi_tls_init. */ #include "starttls.h" /* Get _shishi_crypto_init. */ #include "low-crypto.h" /* Get _shishi_asn1_init. */ #include "asn1.h" static Shishi * init_handle (int outputtype) { Shishi *handle; int rc; handle = xcalloc (1, sizeof (*handle)); shishi_error_set_outputtype (handle, outputtype); if (!shishi_check_version (SHISHI_VERSION)) { shishi_warn (handle, "Library and header version missmatch (%s vs %s).", shishi_check_version (NULL), SHISHI_VERSION); free (handle); return NULL; } rc = gl_sockets_startup (SOCKETS_2_1); if (rc) { shishi_warn (handle, "Failed to initialized Windows sockets (%d)", rc); free (handle); return NULL; } rc = _shishi_crypto_init (handle); if (rc != SHISHI_OK) { shishi_warn (handle, "Cannot initialize crypto library"); free (handle); return NULL; } #ifdef USE_STARTTLS rc = _shishi_tls_init (handle); if (rc != SHISHI_OK) { shishi_warn (handle, "Cannot initialize TLS library"); free (handle); return NULL; } #endif rc = _shishi_asn1_init (handle); if (rc != SHISHI_OK) { shishi_warn (handle, "%s", shishi_strerror (SHISHI_ASN1_ERROR)); free (handle); return NULL; } bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); handle->kdctimeout = 5; handle->kdcretries = 3; handle->ticketlife = TICKETLIFE; handle->renewlife = RENEWLIFE; handle->nclientkdcetypes = 1; handle->clientkdcetypes = xmalloc (sizeof (*handle->clientkdcetypes) * handle->nclientkdcetypes); handle->clientkdcetypes[0] = SHISHI_AES256_CTS_HMAC_SHA1_96; handle->nauthorizationtypes = 1; handle->authorizationtypes = xmalloc (sizeof (*handle->authorizationtypes) * handle->nauthorizationtypes); handle->authorizationtypes[0] = SHISHI_AUTHORIZATION_BASIC; return handle; } /** * shishi: * * Initializes the Shishi library, and primes logging so that future * warnings and informational messages are printed on %stderr. * If this function fails, it may send its own diagnostic errors * to %stderr. * * Return value: Returns a Shishi library handle, or %NULL on error. **/ Shishi * shishi (void) { return init_handle (SHISHI_OUTPUTTYPE_STDERR); } /** * shishi_server: * * Initializes the Shishi library, and primes logging so that future * warnings and informational messages are sent to the syslog system. * If this function fails, it may print diagnostic errors in the syslog. * * Return value: Returns a Shishi library handle, or %NULL on error. **/ Shishi * shishi_server (void) { return init_handle (SHISHI_OUTPUTTYPE_SYSLOG); } /** * shishi_done: * @handle: Shishi handle as allocated by shishi_init(). * * Deallocates the Shishi library handle. The handle must not be used * in any call to a shishi function after an execution of shishi_done(). * * If there is a default #tkts, it is written to the default tkts file. * If you do not wish to write the default tkts file, close the * default file before calling this function. It is closed with a * simple #shishi_tkts_done(@handle, %NULL). For related information, * see shishi_tkts_default_file_set(). **/ void shishi_done (Shishi * handle) { int rc; if (handle->tkts) { shishi_tkts_to_file (handle->tkts, shishi_tkts_default_file (handle)); shishi_tkts_done (&handle->tkts); } shishi_principal_default_set (handle, NULL); shishi_tkts_default_file_set (handle, NULL); #ifdef USE_STARTTLS rc = _shishi_tls_done (handle); if (rc != SHISHI_OK) shishi_warn (handle, "Cannot deinitialize TLS library"); #endif if (handle->realminfos) { size_t i, j; for (i = 0; i < handle->nrealminfos; i++) { /* XXX free each address */ free (handle->realminfos[i].kdcaddresses); free (handle->realminfos[i].name); for (j = 0; j < handle->realminfos[i].nserverwildcards; j++) free (handle->realminfos[i].serverwildcards[j]); } } free (handle->default_realm); free (handle->usercfgfile); free (handle->hostkeysdefaultfile); free (handle->clientkdcetypes); free (handle->authorizationtypes); free (handle->stringprocess); free (handle->userdirectory); if (handle->asn1) shishi_asn1_done (handle, handle->asn1); free (handle); } static void maybe_install_usercfg (Shishi * handle) { const char *usercfg = shishi_cfg_default_userfile (handle); const char *userdir = shishi_cfg_default_userdirectory (handle); struct stat buf; FILE *fh; FILE *src, *dst; int rc; int c; /* Don't create anything if non-standard home is used. */ if (getenv ("SHISHI_HOME")) return; fh = fopen (usercfg, "r"); if (fh) { fclose (fh); return; } rc = stat (userdir, &buf); if (rc == -1 && errno == ENOENT) { rc = mkdir (userdir, S_IRUSR | S_IWUSR | S_IXUSR); if (rc != 0) shishi_warn (handle, "`%s': %s", userdir, strerror (errno)); } else if (rc != 0) shishi_warn (handle, "`%s': %s", userdir, strerror (errno)); src = fopen (SKELCFGFILE, "r"); if (!src) { shishi_warn (handle, "`%s': %s", SKELCFGFILE, strerror (errno)); return; } dst = fopen (usercfg, "w"); if (!dst) { fclose (src); shishi_warn (handle, "`%s': %s", usercfg, strerror (errno)); return; } while ((c = getc (src)) != EOF) putc (c, dst); fclose (dst); fclose (src); shishi_info (handle, "created `%s'", usercfg); } static int init_read (Shishi * handle, const char *tktsfile, const char *systemcfgfile, const char *usercfgfile) { int rc = SHISHI_OK; /* XXX Is this the correct place for this? */ maybe_install_usercfg (handle); if (!systemcfgfile) systemcfgfile = shishi_cfg_default_systemfile (handle); if (*systemcfgfile) rc = shishi_cfg_from_file (handle, systemcfgfile); if (rc == SHISHI_FOPEN_ERROR) shishi_warn (handle, "%s: %s", systemcfgfile, strerror (errno)); if (rc != SHISHI_OK && rc != SHISHI_FOPEN_ERROR) return rc; if (!usercfgfile) usercfgfile = shishi_cfg_default_userfile (handle); if (*usercfgfile) rc = shishi_cfg_from_file (handle, usercfgfile); if (rc == SHISHI_FOPEN_ERROR) shishi_warn (handle, "%s: %s", usercfgfile, strerror (errno)); if (rc != SHISHI_OK && rc != SHISHI_FOPEN_ERROR) return rc; if (!tktsfile) tktsfile = shishi_tkts_default_file (handle); if (!handle->tkts) rc = shishi_tkts (handle, &handle->tkts); if (rc != SHISHI_OK) return rc; if (*tktsfile) rc = shishi_tkts_from_file (handle->tkts, tktsfile); if (rc == SHISHI_FOPEN_ERROR) shishi_verbose (handle, "%s: %s", tktsfile, strerror (errno)); if (rc != SHISHI_OK && rc != SHISHI_FOPEN_ERROR) return rc; if (VERBOSENOISE (handle)) shishi_cfg_print (handle, stderr); return SHISHI_OK; } /** * shishi_init: * @handle: Pointer to a Shishi handle created by this call. * * Creates a Shishi library handle, using shishi(), and reads the system * configuration file, user configuration file and user tickets from * their default locations. The paths to the system configuration * file is decided at compile time, and is $sysconfdir/shishi.conf. * The user configuration file is $HOME/.shishi/config, and the user * ticket file is $HOME/.shishi/ticket. * * The handle is allocated regardless of return value. The single * exception being %SHISHI_HANDLE_ERROR, which indicates a problem * in allocating the handle. Other error conditions could arise * while reading files. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_init (Shishi ** handle) { if (!handle || !(*handle = shishi ())) return SHISHI_HANDLE_ERROR; return init_read (*handle, shishi_tkts_default_file (*handle), shishi_cfg_default_systemfile (*handle), shishi_cfg_default_userfile (*handle)); } /** * shishi_init_with_paths: * @handle: Pointer to a Shishi handle created by this call. * @tktsfile: Filename of ticket file, or %NULL. * @systemcfgfile: Filename of system configuration, or %NULL. * @usercfgfile: Filename of user configuration, or %NULL. * * Creates a Shishi library handle, using shishi(), and reads the system * configuration file, user configuration file, and user tickets at * the specified locations. If any of @usercfgfile or @systemcfgfile * is %NULL, the file is read from its default location, which for * the system configuration is decided at compile time, and is * $sysconfdir/shishi.conf, and for the user configuration it is * $HOME/.shishi/config. If the ticket file name is %NULL, a ticket * file is not read at all. * * The handle is allocated regardless of return value. The single * exception being %SHISHI_HANDLE_ERROR, which indicates a problem * in allocating the handle. Other error conditions could arise * while reading files. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_init_with_paths (Shishi ** handle, const char *tktsfile, const char *systemcfgfile, const char *usercfgfile) { if (!handle || !(*handle = shishi ())) return SHISHI_HANDLE_ERROR; shishi_tkts_default_file_set (*handle, tktsfile); return init_read (*handle, tktsfile, systemcfgfile, usercfgfile); } /** * shishi_init_server: * @handle: Pointer to a Shishi handle created by this call. * * Creates a Shishi library handle, using shishi_server(), and reads * the system configuration file. The path to the system configuration * file is decided at compile time, and is $sysconfdir/shishi.conf. * * The handle is allocated regardless of return value. The single * exception being %SHISHI_HANDLE_ERROR, which indicates a problem * in allocating the handle. Other error conditions could arise * while reading the file. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_init_server (Shishi ** handle) { int rc; if (!handle || !(*handle = shishi_server ())) return SHISHI_HANDLE_ERROR; rc = shishi_cfg_from_file (*handle, shishi_cfg_default_systemfile (*handle)); if (rc == SHISHI_FOPEN_ERROR) shishi_warn (*handle, "%s: %s", shishi_cfg_default_systemfile (*handle), strerror (errno)); if (rc != SHISHI_OK && rc != SHISHI_FOPEN_ERROR) return rc; return SHISHI_OK; } /** * shishi_init_server_with_paths: * @handle: Pointer to a Shishi handle created by this call. * @systemcfgfile: Filename of system configuration, or %NULL. * * Creates a Shishi library handle, using shishi_server(), and reads * the system configuration file from the specified location. The path * to the system configuration file is decided at compile time, and is * $sysconfdir/shishi.conf. * * The handle is allocated regardless of return value. The single * exception being %SHISHI_HANDLE_ERROR, which indicates a problem * in allocating the handle. Other error conditions could arise * while reading the file. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_init_server_with_paths (Shishi ** handle, const char *systemcfgfile) { int rc; if (!handle || !(*handle = shishi_server ())) return SHISHI_HANDLE_ERROR; if (!systemcfgfile) systemcfgfile = shishi_cfg_default_systemfile (*handle); rc = shishi_cfg_from_file (*handle, systemcfgfile); if (rc == SHISHI_FOPEN_ERROR) shishi_warn (*handle, "%s: %s", systemcfgfile, strerror (errno)); if (rc != SHISHI_OK && rc != SHISHI_FOPEN_ERROR) return rc; return SHISHI_OK; } shishi-1.0.3/lib/shishi-version.h.in0000644000000000000000000000521314273601533014174 00000000000000/* shishi-version.h --- Header file with Shishi version. -*- c -*- * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef SHISHI_VERSION_H # define SHISHI_VERSION_H /** * SECTION:shishi-version * @title: shishi-version.h * @short_description: version symbols * * The shishi-version.h file contains version symbols. It should * not be included directly, only via shishi.h. */ /** * SHISHI_VERSION * * Pre-processor symbol with a string that describe the header file * version number. Used together with shishi_check_version() to * verify header file and run-time library consistency. */ # define SHISHI_VERSION "@VERSION@" /** * SHISHI_VERSION_MAJOR * * Pre-processor symbol with a decimal value that describe the major * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 1. * * Since: 1.0.3 */ # define SHISHI_VERSION_MAJOR @MAJOR_VERSION@ /** * SHISHI_VERSION_MINOR * * Pre-processor symbol with a decimal value that describe the minor * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 2. * * Since: 1.0.3 */ # define SHISHI_VERSION_MINOR @MINOR_VERSION@ /** * SHISHI_VERSION_PATCH * * Pre-processor symbol with a decimal value that describe the patch * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 3. * * Since: 1.0.3 */ # define SHISHI_VERSION_PATCH @PATCH_VERSION@ /** * SHISHI_VERSION_NUMBER * * Pre-processor symbol with a hexadecimal value describing the * header file version number. For example, when the header version * is 1.2.3 this symbol will have the value 0x010203. * * Since: 1.0.3 */ # define SHISHI_VERSION_NUMBER @NUMBER_VERSION@ #endif /* SHISHI_VERSION_H */ shishi-1.0.3/lib/tkts.c0000644000000000000000000010621614273601533011602 00000000000000/* tkts.c --- Ticket set handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include struct Shishi_tkts { Shishi *handle; Shishi_tkt **tkts; int ntkts; }; #define TICKET_FILE "tickets" /** * shishi_tkts_default_file_guess: * @handle: Shishi library handle create by shishi_init(). * * Guesses the default ticket filename; it is $SHISHI_TICKETS, * $SHISHI_HOME/tickets, or $HOME/.shishi/tickets. * * Return value: Returns default tkts filename as a string that * has to be deallocated with free() by the caller. **/ char * shishi_tkts_default_file_guess (Shishi * handle) { char *envfile; envfile = getenv ("SHISHI_TICKETS"); if (envfile) return xstrdup (envfile); return shishi_cfg_userdirectory_file (handle, TICKET_FILE); } /** * shishi_tkts_default_file: * @handle: Shishi library handle create by shishi_init(). * * Get filename of default ticket set. * * Return value: Returns the default ticket set filename used in the * library. The string is not a copy, so don't modify or deallocate * it. **/ const char * shishi_tkts_default_file (Shishi * handle) { if (!handle->tktsdefaultfile) { char *p; p = shishi_tkts_default_file_guess (handle); shishi_tkts_default_file_set (handle, p); free (p); } return handle->tktsdefaultfile; } /** * shishi_tkts_default_file_set: * @handle: Shishi library handle create by shishi_init(). * @tktsfile: string with new default tkts file name, or * NULL to reset to default. * * Set the default ticket set filename used in the library. The * string is copied into the library, so you can dispose of the * variable immediately after calling this function. **/ void shishi_tkts_default_file_set (Shishi * handle, const char *tktsfile) { free (handle->tktsdefaultfile); if (tktsfile) handle->tktsdefaultfile = xstrdup (tktsfile); else handle->tktsdefaultfile = NULL; } /** * shishi_tkts_default: * @handle: Shishi library handle create by shishi_init(). * * Get the default ticket set for library handle. * * Return value: Return the handle global ticket set. **/ Shishi_tkts * shishi_tkts_default (Shishi * handle) { if (handle->tkts == NULL && (shishi_tkts (handle, &handle->tkts) != SHISHI_OK)) handle->tkts = NULL; return handle->tkts; } int shishi_tkts_default_to_file (Shishi_tkts * tkts) { return shishi_tkts_to_file (tkts, shishi_tkts_default_file (tkts->handle)); } /** * shishi_tkts: * @handle: shishi handle as allocated by shishi_init(). * @tkts: output pointer to newly allocated tkts handle. * * Get a new ticket set handle. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts (Shishi * handle, Shishi_tkts ** tkts) { *tkts = xcalloc (1, sizeof (**tkts)); (*tkts)->handle = handle; return SHISHI_OK; } /** * shishi_tkts_done: * @tkts: ticket set handle as allocated by shishi_tkts(). * * Deallocates all resources associated with ticket set. The ticket * set handle must not be used in calls to other shishi_tkts_*() * functions after this. **/ void shishi_tkts_done (Shishi_tkts ** tkts) { if (!tkts || !*tkts) return; if ((*tkts)->tkts) free ((*tkts)->tkts); free (*tkts); *tkts = NULL; return; } /** * shishi_tkts_size: * @tkts: ticket set handle as allocated by shishi_tkts(). * * Get size of ticket set. * * Return value: Returns number of tickets stored in ticket set. **/ int shishi_tkts_size (Shishi_tkts * tkts) { return tkts ? tkts->ntkts : -1; } /** * shishi_tkts_nth: * @tkts: ticket set handle as allocated by shishi_tkts(). * @ticketno: integer indicating requested ticket in ticket set. * * Get the n:th ticket in ticket set. * * Return value: Returns a ticket handle to the ticketno:th ticket in * the ticket set, or NULL if ticket set is invalid or ticketno is * out of bounds. The first ticket is ticketno 0, the second * ticketno 1, and so on. **/ Shishi_tkt * shishi_tkts_nth (Shishi_tkts * tkts, int ticketno) { if (tkts == NULL || ticketno >= tkts->ntkts) return NULL; return tkts->tkts[ticketno]; } /** * shishi_tkts_remove: * @tkts: ticket set handle as allocated by shishi_tkts(). * @ticketno: ticket number of ticket in the set to remove. The first * ticket is ticket number 0. * * Remove a ticket, indexed by @ticketno, in ticket set. * * Return value: %SHISHI_OK if successful or if @ticketno larger than * size of ticket set. **/ int shishi_tkts_remove (Shishi_tkts * tkts, int ticketno) { if (!tkts) return SHISHI_INVALID_TKTS; if (ticketno >= tkts->ntkts) return SHISHI_OK; if (ticketno < tkts->ntkts) memmove (&tkts->tkts[ticketno], &tkts->tkts[ticketno + 1], sizeof (*tkts->tkts) * (tkts->ntkts - ticketno - 1)); --tkts->ntkts; if (tkts->ntkts > 0) { tkts->tkts = xrealloc (tkts->tkts, sizeof (*tkts->tkts) * tkts->ntkts); } else { free (tkts->tkts); tkts->tkts = NULL; } return SHISHI_OK; } /** * shishi_tkts_add: * @tkts: ticket set handle as allocated by shishi_tkts(). * @tkt: ticket to be added to ticket set. * * Add a ticket to the ticket set. Only the pointer is stored, so if * you modify @tkt, the ticket in the ticket set will also be * modified. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_add (Shishi_tkts * tkts, Shishi_tkt * tkt) { if (!tkt) return SHISHI_INVALID_TICKET; if (tkts->ntkts++ == 0) tkts->tkts = xmalloc (sizeof (*tkts->tkts)); else tkts->tkts = xrealloc (tkts->tkts, sizeof (*tkts->tkts) * tkts->ntkts); tkts->tkts[tkts->ntkts - 1] = tkt; return SHISHI_OK; } /** * shishi_tkts_new: * @tkts: ticket set handle as allocated by shishi_tkts(). * @ticket: input ticket variable. * @enckdcreppart: input ticket detail variable. * @kdcrep: input KDC-REP variable. * * Allocate a new ticket and add it to the ticket set. * * Note that @ticket, @enckdcreppart and @kdcrep are stored by * reference, so you must not de-allocate them before the ticket is * removed from the ticket set and de-allocated. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_new (Shishi_tkts * tkts, Shishi_asn1 ticket, Shishi_asn1 enckdcreppart, Shishi_asn1 kdcrep) { Shishi_tkt *tkt; int res; /* XXX Who will de-allocate these? */ tkt = shishi_tkt2 (tkts->handle, ticket, enckdcreppart, kdcrep); res = shishi_tkts_add (tkts, tkt); if (res != SHISHI_OK) { free (tkt); return res; } return SHISHI_OK; } /** * shishi_tkts_read: * @tkts: ticket set handle as allocated by shishi_tkts(). * @fh: file descriptor to read from. * * Read tickets from file descriptor and add them to the ticket set. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_read (Shishi_tkts * tkts, FILE * fh) { int res; res = SHISHI_OK; while (!feof (fh)) { Shishi_asn1 ticket; Shishi_asn1 enckdcreppart; Shishi_asn1 kdcrep; res = shishi_kdcrep_parse (tkts->handle, fh, &kdcrep); if (res != SHISHI_OK) { res = SHISHI_OK; break; } res = shishi_enckdcreppart_parse (tkts->handle, fh, &enckdcreppart); if (res != SHISHI_OK) break; res = shishi_ticket_parse (tkts->handle, fh, &ticket); if (res != SHISHI_OK) break; /* XXX Who will de-allocate these? */ res = shishi_tkts_new (tkts, ticket, enckdcreppart, kdcrep); if (res != SHISHI_OK) break; if (VERBOSEASN1 (tkts->handle)) { printf ("Read ticket for principal `':\n"); shishi_kdcrep_print (tkts->handle, stdout, kdcrep); shishi_enckdcreppart_print (tkts->handle, stdout, enckdcreppart); shishi_ticket_print (tkts->handle, stdout, ticket); } } return res; } /** * shishi_tkts_from_file: * @tkts: ticket set handle as allocated by shishi_tkts(). * @filename: filename to read tickets from. * * Read tickets from file and add them to the ticket set. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_from_file (Shishi_tkts * tkts, const char *filename) { FILE *fh; int res; fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; res = shishi_tkts_read (tkts, fh); if (res != SHISHI_OK) { fclose (fh); return res; } res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; return SHISHI_OK; } /** * shishi_tkts_write: * @tkts: ticket set handle as allocated by shishi_tkts(). * @fh: file descriptor to write tickets to. * * Write tickets in set to file descriptor. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_write (Shishi_tkts * tkts, FILE * fh) { int res; int i; if (!tkts) return SHISHI_INVALID_TKTS; for (i = 0; i < tkts->ntkts; i++) { res = shishi_kdcrep_print (tkts->handle, fh, shishi_tkt_kdcrep (tkts->tkts[i])); if (res != SHISHI_OK) { shishi_error_printf (tkts->handle, "Could not print ticket: %s", shishi_error (tkts->handle)); return res; } res = shishi_enckdcreppart_print (tkts->handle, fh, shishi_tkt_enckdcreppart (tkts->tkts[i])); if (res != SHISHI_OK) { shishi_error_printf (tkts->handle, "Could not print ticket: %s", shishi_error (tkts->handle)); return res; } res = shishi_ticket_print (tkts->handle, fh, shishi_tkt_ticket (tkts->tkts[i])); if (res != SHISHI_OK) { shishi_error_printf (tkts->handle, "Could not print ticket: %s", shishi_error (tkts->handle)); return res; } fprintf (fh, "\n\n"); } return SHISHI_OK; } /** * shishi_tkts_expire: * @tkts: ticket set handle as allocated by shishi_tkts(). * * Remove expired tickets from ticket set. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_expire (Shishi_tkts * tkts) { int warn = 0; int i = 0; if (!tkts) return SHISHI_INVALID_TKTS; while (i < tkts->ntkts) { if (shishi_tkt_expired_p (tkts->tkts[i])) { warn++; shishi_tkts_remove (tkts, i); } else i++; } if (VERBOSE (tkts->handle) && warn) shishi_warn (tkts->handle, ngettext ("removed %d expired ticket\n", "removed %d expired tickets\n", warn), warn); return SHISHI_OK; } /** * shishi_tkts_to_file: * @tkts: ticket set handle as allocated by shishi_tkts(). * @filename: filename to write tickets to. * * Write tickets in set to file. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_to_file (Shishi_tkts * tkts, const char *filename) { FILE *fh; int res; fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; res = shishi_tkts_write (tkts, fh); if (res != SHISHI_OK) { fclose (fh); return res; } res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; return SHISHI_OK; } /** * shishi_tkts_print_for_service: * @tkts: ticket set handle as allocated by shishi_tkts(). * @fh: file descriptor to print to. * @service: service to limit tickets printed to, or NULL. * * Print description of tickets for specified service to file * descriptor. If service is NULL, all tickets are printed. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_print_for_service (Shishi_tkts * tkts, FILE * fh, const char *service) { int res; int found; int i; found = 0; for (i = 0; i < shishi_tkts_size (tkts); i++) { Shishi_tkt *tkt = shishi_tkts_nth (tkts, i); if (service) { char *buf; res = shishi_tkt_server (tkt, &buf, NULL); if (res != SHISHI_OK) continue; if (strcmp (service, buf) != 0) { free (buf); continue; } free (buf); } printf ("\n"); shishi_tkt_pretty_print (shishi_tkts_nth (tkts, i), fh); found++; } if (found) { printf (ngettext ("\n%d ticket found.\n", "\n%d tickets found.\n", found), found); } else { if (service) printf ("\nNo matching tickets found.\n"); else printf ("\nNo tickets found.\n"); } return SHISHI_OK; } /** * shishi_tkts_print: * @tkts: ticket set handle as allocated by shishi_tkts(). * @fh: file descriptor to print to. * * Print description of all tickets to file descriptor. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_tkts_print (Shishi_tkts * tkts, FILE * fh) { return shishi_tkts_print_for_service (tkts, fh, NULL); } /** * shishi_tkt_match_p: * @tkt: ticket to test hints on. * @hint: structure with characteristics of ticket to be found. * * Test if a ticket matches specified hints. * * Return value: Returns 0 iff ticket fails to match given criteria. **/ int shishi_tkt_match_p (Shishi_tkt * tkt, Shishi_tkts_hint * hint) { if (hint->server && !shishi_tkt_server_p (tkt, hint->server)) return 0; if (hint->client && !shishi_tkt_client_p (tkt, hint->client)) return 0; if (!(hint->flags & SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED) && !shishi_tkt_valid_now_p (tkt)) return 0; if ((hint->tktflags & SHISHI_TICKETFLAGS_FORWARDABLE) && !shishi_tkt_forwardable_p (tkt)) return 0; if ((hint->tktflags & SHISHI_TICKETFLAGS_FORWARDED) && !shishi_tkt_forwarded_p (tkt)) return 0; if ((hint->tktflags & SHISHI_TICKETFLAGS_RENEWABLE) && !shishi_tkt_renewable_p (tkt)) return 0; if ((hint->tktflags & SHISHI_TICKETFLAGS_PROXIABLE) && !shishi_tkt_proxiable_p (tkt)) return 0; if ((hint->tktflags & SHISHI_TICKETFLAGS_PROXY) && !shishi_tkt_proxy_p (tkt)) return 0; if (hint->etype && !shishi_tkt_keytype_p (tkt, hint->etype)) return 0; return 1; } /** * shishi_tkts_find: * @tkts: ticket set handle as allocated by shishi_tkts(). * @hint: structure with characteristics of ticket to be found. * * Search the ticketset sequentially (from ticket number 0 through all * tickets in the set) for a ticket that fits the given * characteristics. If a ticket is found, the hint->startpos field is * updated to point to the next ticket in the set, so this function * can be called repeatedly with the same hint argument in order to * find all tickets matching a certain criterium. Note that if * tickets are added to, or removed from, the ticketset during a query * with the same hint argument, the hint->startpos field must be * updated appropriately. * * Here is how you would typically use this function: * * Shishi_tkts_hint hint; * * Shishi_tkt tkt; * * * memset(&hint, 0, sizeof(hint)); * * hint.server = "imap/mail.example.org"; * * tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint); * * if (!tkt) * * printf("No ticket found...\n"); * * else * * do_something_with_ticket (tkt); * * Return value: Returns a ticket if found, or NULL if no further * matching tickets could be found. **/ Shishi_tkt * shishi_tkts_find (Shishi_tkts * tkts, Shishi_tkts_hint * hint) { int i; if (!tkts) return NULL; if (VERBOSENOISE (tkts->handle)) { fprintf (stderr, "Searching tickets... "); if (hint->server) fprintf (stderr, "server=`%s' ", hint->server); if (hint->client) fprintf (stderr, "client=`%s' ", hint->client); fprintf (stderr, "\n"); } for (i = hint->startpos; i < tkts->ntkts; i++) { if (!shishi_tkt_match_p (tkts->tkts[i], hint)) continue; hint->startpos = i + 1; return tkts->tkts[i]; } hint->startpos = i; return NULL; } /** * shishi_tkts_find_for_clientserver: * @tkts: ticket set handle as allocated by shishi_tkts(). * @client: client name to find ticket for. * @server: server name to find ticket for. * * Short-hand function for searching the ticket set for a ticket for * the given client and server. See shishi_tkts_find(). * * Return value: Returns a ticket if found, or NULL. **/ Shishi_tkt * shishi_tkts_find_for_clientserver (Shishi_tkts * tkts, const char *client, const char *server) { Shishi_tkts_hint hint; Shishi_tkt *tkt; memset (&hint, 0, sizeof (hint)); hint.server = (char *) server; hint.client = (char *) client; tkt = shishi_tkts_find (tkts, &hint); return tkt; } /** * shishi_tkts_find_for_server: * @tkts: ticket set handle as allocated by shishi_tkts(). * @server: server name to find ticket for. * * Short-hand function for searching the ticket set for a ticket for * the given server using the default client principal. See * shishi_tkts_find_for_clientserver() and shishi_tkts_find(). * * Return value: Returns a ticket if found, or NULL. **/ Shishi_tkt * shishi_tkts_find_for_server (Shishi_tkts * tkts, const char *server) { return shishi_tkts_find_for_clientserver (tkts, shishi_principal_default (tkts->handle), server); } /* Set flags and times in KDC-REQ based on hint. */ static int act_hint_on_kdcreq (Shishi * handle, Shishi_tkts_hint * hint, Shishi_asn1 kdcreq) { time_t starttime = hint->starttime ? hint->starttime : time (NULL); time_t endtime = hint->endtime ? hint->endtime : starttime + handle->ticketlife; time_t renew_till = hint->renew_till ? hint->renew_till : starttime + handle->renewlife; int rc; if (hint->starttime) { rc = shishi_asn1_write (handle, kdcreq, "req-body.from", shishi_generalize_time (handle, starttime), 0); if (rc != SHISHI_OK) { shishi_error_printf (handle, "Cannot set starttime: %s", shishi_strerror (rc)); return rc; } } if (hint->endtime) { rc = shishi_asn1_write (handle, kdcreq, "req-body.till", shishi_generalize_time (handle, endtime), 0); if (rc != SHISHI_OK) { shishi_error_printf (handle, "Cannot set endtime: %s", shishi_strerror (rc)); return rc; } } if (hint->tktflags & SHISHI_TICKETFLAGS_FORWARDABLE) { rc = shishi_kdcreq_options_add (handle, kdcreq, SHISHI_KDCOPTIONS_FORWARDABLE); if (rc != SHISHI_OK) goto done; } if (hint->tktflags & SHISHI_TICKETFLAGS_FORWARDED) { rc = shishi_kdcreq_options_add (handle, kdcreq, SHISHI_KDCOPTIONS_FORWARDED); if (rc != SHISHI_OK) goto done; } if (hint->tktflags & SHISHI_TICKETFLAGS_RENEWABLE) { rc = shishi_kdcreq_options_add (handle, kdcreq, SHISHI_KDCOPTIONS_RENEWABLE); if (rc != SHISHI_OK) goto done; rc = shishi_asn1_write (handle, kdcreq, "req-body.rtime", shishi_generalize_time (handle, renew_till), 0); if (rc != SHISHI_OK) { shishi_error_printf (handle, "Cannot set renewtill: %s", shishi_strerror (rc)); return rc; } } if (hint->tktflags & SHISHI_TICKETFLAGS_PROXIABLE) { rc = shishi_kdcreq_options_add (handle, kdcreq, SHISHI_KDCOPTIONS_PROXIABLE); if (rc != SHISHI_OK) goto done; } if (hint->tktflags & SHISHI_TICKETFLAGS_PROXY) { rc = shishi_kdcreq_options_add (handle, kdcreq, SHISHI_KDCOPTIONS_PROXY); if (rc != SHISHI_OK) goto done; } if (hint->etype) { rc = shishi_kdcreq_set_etype (handle, kdcreq, &hint->etype, 1); if (rc != SHISHI_OK) goto done; } return SHISHI_OK; done: shishi_error_printf (handle, "Cannot set KDC Options: %s", shishi_strerror (rc)); return rc; } /* Make sure the ticket granting ticket is suitable for the wanted ticket. E.g., if the wanted ticket should be a PROXY ticket, the ticket granting ticket must be a PROXIABLE ticket for things to work. */ static void set_tgtflags_based_on_hint (Shishi_tkts_hint * tkthint, Shishi_tkts_hint * tgthint) { if (tkthint->tktflags & SHISHI_TICKETFLAGS_FORWARDABLE) tgthint->tktflags |= SHISHI_TICKETFLAGS_FORWARDABLE; if (tkthint->tktflags & SHISHI_TICKETFLAGS_FORWARDED) tgthint->tktflags |= SHISHI_TICKETFLAGS_FORWARDABLE; if (tkthint->tktflags & SHISHI_TICKETFLAGS_PROXIABLE) tgthint->tktflags |= SHISHI_TICKETFLAGS_PROXIABLE; if (tkthint->tktflags & SHISHI_TICKETFLAGS_PROXY) tgthint->tktflags |= SHISHI_TICKETFLAGS_PROXIABLE; if (tkthint->tktflags & SHISHI_TICKETFLAGS_RENEWABLE) tgthint->tktflags |= SHISHI_TICKETFLAGS_RENEWABLE; if (tkthint->kdcoptions & SHISHI_KDCOPTIONS_RENEW) tgthint->tktflags |= SHISHI_TICKETFLAGS_RENEWABLE; if (tkthint->endtime) tgthint->endtime = tkthint->endtime; if (tkthint->passwd) tgthint->passwd = tkthint->passwd; if (tkthint->preauthetype) tgthint->preauthetype = tkthint->preauthetype; if (tkthint->preauthsalt) { tgthint->preauthsalt = tkthint->preauthsalt; tgthint->preauthsaltlen = tkthint->preauthsaltlen; } if (tkthint->preauths2kparams) { tgthint->preauths2kparams = tkthint->preauths2kparams; tgthint->preauths2kparamslen = tkthint->preauths2kparamslen; } } /* Pre-authenticate request, based on LOCHINT. Currently only PA-ENC-TIMESTAMP is supported. */ static int do_preauth (Shishi_tkts * tkts, Shishi_tkts_hint * lochint, Shishi_as * as) { int rc = SHISHI_OK; if (lochint->preauthetype) { Shishi_key *key; char *user; /* XXX Don't prompt for password here? */ rc = shishi_asreq_clientrealm (tkts->handle, shishi_as_req (as), &user, NULL); if (rc != SHISHI_OK) return rc; if (lochint->passwd == NULL) { rc = shishi_prompt_password (tkts->handle, &lochint->passwd, "Enter password for `%s': ", user); if (rc != SHISHI_OK) return rc; } if (!lochint->preauthsalt) { rc = shishi_derive_default_salt (tkts->handle, user, &lochint->preauthsalt); if (rc != SHISHI_OK) return rc; lochint->preauthsaltlen = strlen (lochint->preauthsalt); } rc = shishi_key_from_string (tkts->handle, lochint->preauthetype, lochint->passwd, strlen (lochint->passwd), lochint->preauthsalt, lochint->preauthsaltlen, lochint->preauths2kparams, &key); if (rc != SHISHI_OK) return rc; rc = shishi_kdcreq_add_padata_preauth (tkts->handle, shishi_as_req (as), key); } return rc; } /* Handle ETYPE-INFO and ETYPE-INFO2 pre-auth data. */ static int recover_preauth_info (Shishi_tkts * tkts, Shishi_as * as, Shishi_tkts_hint * lochint, Shishi_asn1 einfos, bool isinfo2, bool *retry) { size_t foundpos = SIZE_MAX; size_t i, n; int rc; shishi_verbose (tkts->handle, "Found INFO-ETYPE(2) pre-auth hints"); if (VERBOSEASN1 (tkts->handle)) { if (isinfo2) shishi_etype_info2_print (tkts->handle, stdout, einfos); else shishi_etype_info_print (tkts->handle, stdout, einfos); } if (lochint->preauthetype) { shishi_verbose (tkts->handle, "Pre-auth data already specified"); return SHISHI_OK; } rc = shishi_asn1_number_of_elements (tkts->handle, einfos, "", &n); if (rc != SHISHI_OK) return rc; for (i = 1; i <= n; i++) { char *format; int32_t etype; format = xasprintf ("?%zu.etype", i); rc = shishi_asn1_read_int32 (tkts->handle, einfos, format, &etype); free (format); if (rc == SHISHI_OK) { size_t j; shishi_verbose (tkts->handle, "Server has etype %d", etype); for (j = 0; j < tkts->handle->nclientkdcetypes; j++) { if (etype == tkts->handle->clientkdcetypes[j]) { if (j < foundpos && VERBOSENOISE (tkts->handle)) { shishi_verbose (tkts->handle, "New best etype %d", etype); /* XXX mem leak. */ format = xasprintf ("?%zu.salt", i); rc = shishi_asn1_read (tkts->handle, einfos, format, &lochint->preauthsalt, &lochint->preauthsaltlen); free (format); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT) return rc; if (isinfo2) { format = xasprintf ("?%zu.s2kparams", i); rc = shishi_asn1_read (tkts->handle, einfos, format, &lochint->preauths2kparams, &lochint->preauths2kparamslen); free (format); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT) return rc; } } foundpos = MIN (foundpos, j); } } } } if (foundpos != SIZE_MAX) { lochint->preauthetype = tkts->handle->clientkdcetypes[foundpos]; shishi_verbose (tkts->handle, "Best pre-auth etype was %d", lochint->preauthetype); *retry = true; } return SHISHI_OK; } /* Called when KDC refused with a NEED_PREAUTH error. This function should look at the METHOD-DATA, figure out what kind of pre-auth is requested, and if it is able to figure out how to recover from the error, set *RETRY to true and set any hints in LOCHINT that help do_preauth() compute the proper pre-auth data. */ static int recover_preauth (Shishi_tkts * tkts, Shishi_as * as, Shishi_tkts_hint * lochint, bool *retry) { Shishi_asn1 krberror = shishi_as_krberror (as); Shishi_asn1 pas; size_t i, n; int rc; *retry = false; shishi_verbose (tkts->handle, "Server requests pre-auth data"); rc = shishi_krberror_methoddata (tkts->handle, krberror, &pas); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_number_of_elements (tkts->handle, pas, "", &n); if (rc == SHISHI_OK) { for (i = 1; i <= n; i++) { char *format = xasprintf ("?%zu.padata-type", i); int32_t padatatype; rc = shishi_asn1_read_int32 (tkts->handle, pas, format, &padatatype); free (format); if (rc == SHISHI_OK) { shishi_verbose (tkts->handle, "Looking at pa-type %d", padatatype); switch (padatatype) { /* XXX Don't parse INFO structures if there is a INFO2. */ case SHISHI_PA_ETYPE_INFO: case SHISHI_PA_ETYPE_INFO2: { char *der; size_t len; Shishi_asn1 einfos; format = xasprintf ("?%zu.padata-value", i); rc = shishi_asn1_read (tkts->handle, pas, format, &der, &len); free (format); if (rc != SHISHI_OK) { shishi_error_printf (tkts->handle, "Can't extract PA-DATA value"); continue; } if (padatatype == SHISHI_PA_ETYPE_INFO) einfos = shishi_der2asn1_etype_info (tkts->handle, der, len); else einfos = shishi_der2asn1_etype_info2 (tkts->handle, der, len); free (der); if (!einfos) { shishi_error_printf (tkts->handle, "Can't DER decode PA-DATA"); continue; } rc = recover_preauth_info (tkts, as, lochint, einfos, padatatype == SHISHI_PA_ETYPE_INFO2, retry); if (rc != SHISHI_OK) { shishi_error_printf (tkts->handle, "Could not use pre-auth data: %s", shishi_strerror (rc)); continue; } shishi_asn1_done (tkts->handle, einfos); } break; default: break; } } } } shishi_asn1_done (tkts->handle, pas); return SHISHI_OK; } /** * shishi_tkts_get_tgt: * @tkts: ticket set handle as allocated by shishi_tkts(). * @hint: structure with characteristics of ticket to begot. * * Get a ticket granting ticket (TGT) suitable for acquiring ticket * matching the hint. I.e., get a TGT for the server realm in the * hint structure (hint->serverrealm), or the default realm if the * serverrealm field is NULL. Can result in AS exchange. * * Currently this function do not implement cross realm logic. * * This function is used by shishi_tkts_get(), which is probably what * you really want to use unless you have special needs. * * Return value: Returns a ticket granting ticket if successful, or * NULL if this function is unable to acquire on. **/ Shishi_tkt * shishi_tkts_get_tgt (Shishi_tkts * tkts, Shishi_tkts_hint * hint) { Shishi_tkts_hint lochint; Shishi_as *as; Shishi_tkt *tgt; int rc; /* XXX cross-realm operation */ memset (&lochint, 0, sizeof (lochint)); asprintf (&lochint.server, "krbtgt/%s", hint->serverrealm ? hint->serverrealm : shishi_realm_default (tkts->handle)); set_tgtflags_based_on_hint (hint, &lochint); tgt = shishi_tkts_find (tkts, &lochint); free (lochint.server); lochint.server = NULL; if (tgt) return tgt; if (hint->flags & SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE) return NULL; again: rc = shishi_as (tkts->handle, &as); if (rc == SHISHI_OK) rc = act_hint_on_kdcreq (tkts->handle, &lochint, shishi_as_req (as)); if (rc == SHISHI_OK) rc = do_preauth (tkts, &lochint, as); if (rc == SHISHI_OK) rc = shishi_as_req_build (as); if (rc == SHISHI_OK) rc = shishi_as_sendrecv_hint (as, &lochint); if (rc == SHISHI_OK) rc = shishi_as_rep_process (as, NULL, lochint.passwd); if (rc == SHISHI_GOT_KRBERROR && shishi_krberror_errorcode_fast (tkts->handle, shishi_as_krberror (as)) == SHISHI_KDC_ERR_PREAUTH_REQUIRED) { bool retry = false; rc = recover_preauth (tkts, as, &lochint, &retry); if (rc != SHISHI_OK) return NULL; if (retry) { shishi_as_done (as); goto again; } shishi_error_printf (tkts->handle, "Unsupported pre-auth required"); return NULL; } if (rc != SHISHI_OK) { shishi_error_printf (tkts->handle, "AS exchange failed: %s\n%s\n", shishi_strerror (rc), shishi_error (tkts->handle)); return NULL; } /* XXX free lochint members */ tgt = shishi_as_tkt (as); if (!tgt) { shishi_error_printf (tkts->handle, "No ticket in AS-REP"); return NULL; } if (VERBOSENOISE (tkts->handle)) { printf ("Received ticket granting ticket:\n"); shishi_tkt_pretty_print (tgt, stdout); } rc = shishi_tkts_add (tkts, tgt); if (rc != SHISHI_OK) printf ("Could not add ticket: %s", shishi_strerror (rc)); return tgt; } /** * shishi_tkts_get_tgs: * @tkts: ticket set handle as allocated by shishi_tkts(). * @hint: structure with characteristics of ticket to begot. * @tgt: ticket granting ticket to use. * * Get a ticket via TGS exchange using specified ticket granting * ticket. * * This function is used by shishi_tkts_get(), which is probably what * you really want to use unless you have special needs. * * Return value: Returns a ticket if successful, or NULL if this * function is unable to acquire on. **/ Shishi_tkt * shishi_tkts_get_tgs (Shishi_tkts * tkts, Shishi_tkts_hint * hint, Shishi_tkt * tgt) { Shishi_tgs *tgs; Shishi_tkt *tkt; int rc; rc = shishi_tgs (tkts->handle, &tgs); shishi_tgs_tgtkt_set (tgs, tgt); if (rc == SHISHI_OK) rc = act_hint_on_kdcreq (tkts->handle, hint, shishi_tgs_req (tgs)); if (rc == SHISHI_OK) rc = shishi_tgs_set_server (tgs, hint->server); if (rc == SHISHI_OK) rc = shishi_tgs_req_build (tgs); if (rc == SHISHI_OK) rc = shishi_tgs_sendrecv_hint (tgs, hint); if (rc == SHISHI_OK) rc = shishi_tgs_rep_process (tgs); if (rc != SHISHI_OK) { shishi_error_printf (tkts->handle, "TGS exchange failed: %s\n%s\n", shishi_strerror (rc), shishi_error (tkts->handle)); if (rc == SHISHI_GOT_KRBERROR) shishi_krberror_pretty_print (tkts->handle, stdout, shishi_tgs_krberror (tgs)); return NULL; } tkt = shishi_tgs_tkt (tgs); if (!tkt) { shishi_error_printf (tkts->handle, "No ticket in TGS-REP?!: %s", shishi_error (tkts->handle)); return NULL; } if (VERBOSENOISE (tkts->handle)) { printf ("Received ticket:\n"); shishi_tkt_pretty_print (tkt, stdout); } rc = shishi_tkts_add (tkts, tkt); if (rc != SHISHI_OK) printf ("Could not add ticket: %s", shishi_strerror (rc)); return tkt; } /** * shishi_tkts_get: * @tkts: ticket set handle as allocated by shishi_tkts(). * @hint: structure with characteristics of ticket to be found. * * Get a ticket matching given characteristics. This function first * looks in the ticket set for a ticket, then tries to find a * suitable TGT, possibly via an AS exchange, using * shishi_tkts_get_tgt(), and then uses that TGT in a TGS exchange to * get the ticket. * * Currently this function does not implement cross realm logic. * * Return value: Returns a ticket if found, or NULL if this function * is unable to get the ticket. **/ Shishi_tkt * shishi_tkts_get (Shishi_tkts * tkts, Shishi_tkts_hint * hint) { Shishi_tkt *tkt, *tgt; /* If we already have a matching ticket, avoid getting a new one. */ hint->startpos = 0; tkt = shishi_tkts_find (tkts, hint); if (tkt) return tkt; tgt = shishi_tkts_get_tgt (tkts, hint); if (!tgt) { shishi_error_printf (tkts->handle, "Could not get TGT for ticket."); return NULL; } if (shishi_tkt_match_p (tgt, hint)) return tgt; tkt = shishi_tkts_get_tgs (tkts, hint, tgt); if (!tkt) { shishi_error_printf (tkts->handle, "Could not get ticket using TGT."); return NULL; } return tkt; } /** * shishi_tkts_get_for_clientserver: * @tkts: ticket set handle as allocated by shishi_tkts(). * @client: client name to get ticket for. * @server: server name to get ticket for. * * Short-hand function for getting a ticket for the given client and * server. See shishi_tkts_get(). * * Return value: Returns a ticket if found, or NULL. **/ Shishi_tkt * shishi_tkts_get_for_clientserver (Shishi_tkts * tkts, const char *client, const char *server) { Shishi_tkts_hint hint; Shishi_tkt *tkt; memset (&hint, 0, sizeof (hint)); hint.client = (char *) client; hint.server = (char *) server; tkt = shishi_tkts_get (tkts, &hint); return tkt; } /** * shishi_tkts_get_for_server: * @tkts: ticket set handle as allocated by shishi_tkts(). * @server: server name to get ticket for. * * Short-hand function for getting a ticket to the given server and * for the default principal client. See shishi_tkts_get(). * * Return value: Returns a ticket if found, or NULL. **/ Shishi_tkt * shishi_tkts_get_for_server (Shishi_tkts * tkts, const char *server) { return shishi_tkts_get_for_clientserver (tkts, shishi_principal_default (tkts->handle), server); } /** * shishi_tkts_get_for_localservicepasswd: * @tkts: ticket set handle as allocated by shishi_tkts(). * @service: service name to get ticket for. * @passwd: password for the default client principal. * * Short-hand function for getting a ticket to the given * local service, and for the default principal client. * The latter's password is given as argument. * See shishi_tkts_get(). * * Return value: Returns a ticket if found, or NULL otherwise. **/ Shishi_tkt * shishi_tkts_get_for_localservicepasswd (Shishi_tkts * tkts, const char *service, const char *passwd) { Shishi_tkt *tkt; Shishi_tkts_hint hint; memset (&hint, 0, sizeof (hint)); hint.client = (char *) shishi_principal_default (tkts->handle); hint.server = shishi_server_for_local_service (tkts->handle, service); hint.passwd = (char *) passwd; tkt = shishi_tkts_get (tkts, &hint); free (hint.server); return tkt; } shishi-1.0.3/lib/asn1.h0000644000000000000000000000164614273601533011465 00000000000000/* asn1.h --- Utilities to manipulate RFC 1510 ASN.1 types. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ extern int _shishi_asn1_init (Shishi * handle); shishi-1.0.3/lib/kerberos5.c0000644000000000000000000003277514273615266012536 00000000000000#if HAVE_CONFIG_H # include "config.h" #endif #include const asn1_static_node shishi_asn1_tab[] = { { "KerberosV5Spec2", 536872976, NULL }, { NULL, 1610612748, NULL }, { "iso", 1073741825, "1"}, { "identified-organization", 1073741825, "3"}, { "dod", 1073741825, "6"}, { "internet", 1073741825, "1"}, { "security", 1073741825, "5"}, { "kerberosV5", 1073741825, "2"}, { "modules", 1073741825, "4"}, { "krb5spec2", 1, "2"}, { "id-krb5", 1879048204, NULL }, { "iso", 1073741825, "1"}, { "identified-organization", 1073741825, "3"}, { "dod", 1073741825, "6"}, { "internet", 1073741825, "1"}, { "security", 1073741825, "5"}, { "kerberosV5", 1, "2"}, { "Int32", 1073741827, NULL }, { "UInt32", 1073741827, NULL }, { "Microseconds", 1073741827, NULL }, { "KerberosString", 1073741851, NULL }, { "Realm", 1073741826, "KerberosString"}, { "PrincipalName", 1610612741, NULL }, { "name-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "name-string", 536879115, NULL }, { NULL, 1073743880, "1"}, { NULL, 2, "KerberosString"}, { "KerberosTime", 1073741861, NULL }, { "HostAddress", 1610612741, NULL }, { "addr-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "address", 536879111, NULL }, { NULL, 2056, "1"}, { "HostAddresses", 1610612747, NULL }, { NULL, 2, "HostAddress"}, { "AuthorizationData", 1610612747, NULL }, { NULL, 536870917, NULL }, { "ad-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "ad-data", 536879111, NULL }, { NULL, 2056, "1"}, { "PA-DATA", 1610612741, NULL }, { "padata-type", 1610620930, "Int32"}, { NULL, 2056, "1"}, { "padata-value", 536879111, NULL }, { NULL, 2056, "2"}, { "KerberosFlags", 1075838982, NULL }, { "EncryptedData", 1610612741, NULL }, { "etype", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "kvno", 1610637314, "UInt32"}, { NULL, 2056, "1"}, { "cipher", 536879111, NULL }, { NULL, 2056, "2"}, { "EncryptionKey", 1610612741, NULL }, { "keytype", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "keyvalue", 536879111, NULL }, { NULL, 2056, "1"}, { "Checksum", 1610612741, NULL }, { "cksumtype", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "checksum", 536879111, NULL }, { NULL, 2056, "1"}, { "Ticket", 1610620933, NULL }, { NULL, 1073744904, "1"}, { "tkt-vno", 1610620931, NULL }, { NULL, 2056, "0"}, { "realm", 1610620930, "Realm"}, { NULL, 2056, "1"}, { "sname", 1610620930, "PrincipalName"}, { NULL, 2056, "2"}, { "enc-part", 536879106, "EncryptedData"}, { NULL, 2056, "3"}, { "EncTicketPart", 1610620933, NULL }, { NULL, 1073744904, "3"}, { "flags", 1610620930, "TicketFlags"}, { NULL, 2056, "0"}, { "key", 1610620930, "EncryptionKey"}, { NULL, 2056, "1"}, { "crealm", 1610620930, "Realm"}, { NULL, 2056, "2"}, { "cname", 1610620930, "PrincipalName"}, { NULL, 2056, "3"}, { "transited", 1610620930, "TransitedEncoding"}, { NULL, 2056, "4"}, { "authtime", 1610620930, "KerberosTime"}, { NULL, 2056, "5"}, { "starttime", 1610637314, "KerberosTime"}, { NULL, 2056, "6"}, { "endtime", 1610620930, "KerberosTime"}, { NULL, 2056, "7"}, { "renew-till", 1610637314, "KerberosTime"}, { NULL, 2056, "8"}, { "caddr", 1610637314, "HostAddresses"}, { NULL, 2056, "9"}, { "authorization-data", 536895490, "AuthorizationData"}, { NULL, 2056, "10"}, { "TransitedEncoding", 1610612741, NULL }, { "tr-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "contents", 536879111, NULL }, { NULL, 2056, "1"}, { "TicketFlags", 1073741826, "KerberosFlags"}, { "AS-REQ", 1610620930, "KDC-REQ"}, { NULL, 3080, "10"}, { "TGS-REQ", 1610620930, "KDC-REQ"}, { NULL, 3080, "12"}, { "KDC-REQ", 1610612741, NULL }, { "pvno", 1610620931, NULL }, { NULL, 2056, "1"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "2"}, { "padata", 1610637323, NULL }, { NULL, 1073743880, "3"}, { NULL, 2, "PA-DATA"}, { "req-body", 536879106, "KDC-REQ-BODY"}, { NULL, 2056, "4"}, { "KDC-REQ-BODY", 1610612741, NULL }, { "kdc-options", 1610620930, "KDCOptions"}, { NULL, 2056, "0"}, { "cname", 1610637314, "PrincipalName"}, { NULL, 2056, "1"}, { "realm", 1610620930, "Realm"}, { NULL, 2056, "2"}, { "sname", 1610637314, "PrincipalName"}, { NULL, 2056, "3"}, { "from", 1610637314, "KerberosTime"}, { NULL, 2056, "4"}, { "till", 1610620930, "KerberosTime"}, { NULL, 2056, "5"}, { "rtime", 1610637314, "KerberosTime"}, { NULL, 2056, "6"}, { "nonce", 1610620930, "UInt32"}, { NULL, 2056, "7"}, { "etype", 1610620939, NULL }, { NULL, 1073743880, "8"}, { NULL, 2, "Int32"}, { "addresses", 1610637314, "HostAddresses"}, { NULL, 2056, "9"}, { "enc-authorization-data", 1610637314, "EncryptedData"}, { NULL, 2056, "10"}, { "additional-tickets", 536895499, NULL }, { NULL, 1073743880, "11"}, { NULL, 2, "Ticket"}, { "KDCOptions", 1073741826, "KerberosFlags"}, { "AS-REP", 1610620930, "KDC-REP"}, { NULL, 3080, "11"}, { "TGS-REP", 1610620930, "KDC-REP"}, { NULL, 3080, "13"}, { "KDC-REP", 1610612741, NULL }, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "padata", 1610637323, NULL }, { NULL, 1073743880, "2"}, { NULL, 2, "PA-DATA"}, { "crealm", 1610620930, "Realm"}, { NULL, 2056, "3"}, { "cname", 1610620930, "PrincipalName"}, { NULL, 2056, "4"}, { "ticket", 1610620930, "Ticket"}, { NULL, 2056, "5"}, { "enc-part", 536879106, "EncryptedData"}, { NULL, 2056, "6"}, { "EncASRepPart", 1610620930, "EncKDCRepPart"}, { NULL, 3080, "25"}, { "EncTGSRepPart", 1610620930, "EncKDCRepPart"}, { NULL, 3080, "26"}, { "EncKDCRepPart", 1610612741, NULL }, { "key", 1610620930, "EncryptionKey"}, { NULL, 2056, "0"}, { "last-req", 1610620930, "LastReq"}, { NULL, 2056, "1"}, { "nonce", 1610620930, "UInt32"}, { NULL, 2056, "2"}, { "key-expiration", 1610637314, "KerberosTime"}, { NULL, 2056, "3"}, { "flags", 1610620930, "TicketFlags"}, { NULL, 2056, "4"}, { "authtime", 1610620930, "KerberosTime"}, { NULL, 2056, "5"}, { "starttime", 1610637314, "KerberosTime"}, { NULL, 2056, "6"}, { "endtime", 1610620930, "KerberosTime"}, { NULL, 2056, "7"}, { "renew-till", 1610637314, "KerberosTime"}, { NULL, 2056, "8"}, { "srealm", 1610620930, "Realm"}, { NULL, 2056, "9"}, { "sname", 1610620930, "PrincipalName"}, { NULL, 2056, "10"}, { "caddr", 536895490, "HostAddresses"}, { NULL, 2056, "11"}, { "LastReq", 1610612747, NULL }, { NULL, 536870917, NULL }, { "lr-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "lr-value", 536879106, "KerberosTime"}, { NULL, 2056, "1"}, { "AP-REQ", 1610620933, NULL }, { NULL, 1073744904, "14"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "ap-options", 1610620930, "APOptions"}, { NULL, 2056, "2"}, { "ticket", 1610620930, "Ticket"}, { NULL, 2056, "3"}, { "authenticator", 536879106, "EncryptedData"}, { NULL, 2056, "4"}, { "APOptions", 1073741826, "KerberosFlags"}, { "Authenticator", 1610620933, NULL }, { NULL, 1073744904, "2"}, { "authenticator-vno", 1610620931, NULL }, { NULL, 2056, "0"}, { "crealm", 1610620930, "Realm"}, { NULL, 2056, "1"}, { "cname", 1610620930, "PrincipalName"}, { NULL, 2056, "2"}, { "cksum", 1610637314, "Checksum"}, { NULL, 2056, "3"}, { "cusec", 1610620930, "Microseconds"}, { NULL, 2056, "4"}, { "ctime", 1610620930, "KerberosTime"}, { NULL, 2056, "5"}, { "subkey", 1610637314, "EncryptionKey"}, { NULL, 2056, "6"}, { "seq-number", 1610637314, "UInt32"}, { NULL, 2056, "7"}, { "authorization-data", 536895490, "AuthorizationData"}, { NULL, 2056, "8"}, { "AP-REP", 1610620933, NULL }, { NULL, 1073744904, "15"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "enc-part", 536879106, "EncryptedData"}, { NULL, 2056, "2"}, { "EncAPRepPart", 1610620933, NULL }, { NULL, 1073744904, "27"}, { "ctime", 1610620930, "KerberosTime"}, { NULL, 2056, "0"}, { "cusec", 1610620930, "Microseconds"}, { NULL, 2056, "1"}, { "subkey", 1610637314, "EncryptionKey"}, { NULL, 2056, "2"}, { "seq-number", 536895490, "UInt32"}, { NULL, 2056, "3"}, { "KRB-SAFE", 1610620933, NULL }, { NULL, 1073744904, "20"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "safe-body", 1610620930, "KRB-SAFE-BODY"}, { NULL, 2056, "2"}, { "cksum", 536879106, "Checksum"}, { NULL, 2056, "3"}, { "KRB-SAFE-BODY", 1610612741, NULL }, { "user-data", 1610620935, NULL }, { NULL, 2056, "0"}, { "timestamp", 1610637314, "KerberosTime"}, { NULL, 2056, "1"}, { "usec", 1610637314, "Microseconds"}, { NULL, 2056, "2"}, { "seq-number", 1610637314, "UInt32"}, { NULL, 2056, "3"}, { "s-address", 1610620930, "HostAddress"}, { NULL, 2056, "4"}, { "r-address", 536895490, "HostAddress"}, { NULL, 2056, "5"}, { "KRB-PRIV", 1610620933, NULL }, { NULL, 1073744904, "21"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "enc-part", 536879106, "EncryptedData"}, { NULL, 2056, "3"}, { "EncKrbPrivPart", 1610620933, NULL }, { NULL, 1073744904, "28"}, { "user-data", 1610620935, NULL }, { NULL, 2056, "0"}, { "timestamp", 1610637314, "KerberosTime"}, { NULL, 2056, "1"}, { "usec", 1610637314, "Microseconds"}, { NULL, 2056, "2"}, { "seq-number", 1610637314, "UInt32"}, { NULL, 2056, "3"}, { "s-address", 1610620930, "HostAddress"}, { NULL, 2056, "4"}, { "r-address", 536895490, "HostAddress"}, { NULL, 2056, "5"}, { "KRB-CRED", 1610620933, NULL }, { NULL, 1073744904, "22"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "tickets", 1610620939, NULL }, { NULL, 1073743880, "2"}, { NULL, 2, "Ticket"}, { "enc-part", 536879106, "EncryptedData"}, { NULL, 2056, "3"}, { "EncKrbCredPart", 1610620933, NULL }, { NULL, 1073744904, "29"}, { "ticket-info", 1610620939, NULL }, { NULL, 1073743880, "0"}, { NULL, 2, "KrbCredInfo"}, { "nonce", 1610637314, "UInt32"}, { NULL, 2056, "1"}, { "timestamp", 1610637314, "KerberosTime"}, { NULL, 2056, "2"}, { "usec", 1610637314, "Microseconds"}, { NULL, 2056, "3"}, { "s-address", 1610637314, "HostAddress"}, { NULL, 2056, "4"}, { "r-address", 536895490, "HostAddress"}, { NULL, 2056, "5"}, { "KrbCredInfo", 1610612741, NULL }, { "key", 1610620930, "EncryptionKey"}, { NULL, 2056, "0"}, { "prealm", 1610637314, "Realm"}, { NULL, 2056, "1"}, { "pname", 1610637314, "PrincipalName"}, { NULL, 2056, "2"}, { "flags", 1610637314, "TicketFlags"}, { NULL, 2056, "3"}, { "authtime", 1610637314, "KerberosTime"}, { NULL, 2056, "4"}, { "starttime", 1610637314, "KerberosTime"}, { NULL, 2056, "5"}, { "endtime", 1610637314, "KerberosTime"}, { NULL, 2056, "6"}, { "renew-till", 1610637314, "KerberosTime"}, { NULL, 2056, "7"}, { "srealm", 1610637314, "Realm"}, { NULL, 2056, "8"}, { "sname", 1610637314, "PrincipalName"}, { NULL, 2056, "9"}, { "caddr", 536895490, "HostAddresses"}, { NULL, 2056, "10"}, { "KRB-ERROR", 1610620933, NULL }, { NULL, 1073744904, "30"}, { "pvno", 1610620931, NULL }, { NULL, 2056, "0"}, { "msg-type", 1610620931, NULL }, { NULL, 2056, "1"}, { "ctime", 1610637314, "KerberosTime"}, { NULL, 2056, "2"}, { "cusec", 1610637314, "Microseconds"}, { NULL, 2056, "3"}, { "stime", 1610620930, "KerberosTime"}, { NULL, 2056, "4"}, { "susec", 1610620930, "Microseconds"}, { NULL, 2056, "5"}, { "error-code", 1610620930, "Int32"}, { NULL, 2056, "6"}, { "crealm", 1610637314, "Realm"}, { NULL, 2056, "7"}, { "cname", 1610637314, "PrincipalName"}, { NULL, 2056, "8"}, { "realm", 1610620930, "Realm"}, { NULL, 2056, "9"}, { "sname", 1610620930, "PrincipalName"}, { NULL, 2056, "10"}, { "e-text", 1610637314, "KerberosString"}, { NULL, 2056, "11"}, { "e-data", 536895495, NULL }, { NULL, 2056, "12"}, { "METHOD-DATA", 1610612747, NULL }, { NULL, 2, "PA-DATA"}, { "TYPED-DATA", 1612709899, NULL }, { NULL, 536870917, NULL }, { "data-type", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "data-value", 536895495, NULL }, { NULL, 2056, "1"}, { "PA-ENC-TIMESTAMP", 1073741826, "EncryptedData"}, { "PA-ENC-TS-ENC", 1610612741, NULL }, { "patimestamp", 1610620930, "KerberosTime"}, { NULL, 2056, "0"}, { "pausec", 536895490, "Microseconds"}, { NULL, 2056, "1"}, { "ETYPE-INFO-ENTRY", 1610612741, NULL }, { "etype", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "salt", 536895495, NULL }, { NULL, 2056, "1"}, { "ETYPE-INFO", 1610612747, NULL }, { NULL, 2, "ETYPE-INFO-ENTRY"}, { "ETYPE-INFO2-ENTRY", 1610612741, NULL }, { "etype", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "salt", 1610637314, "KerberosString"}, { NULL, 2056, "1"}, { "s2kparams", 536895495, NULL }, { NULL, 2056, "2"}, { "ETYPE-INFO2", 1612709899, NULL }, { NULL, 2, "ETYPE-INFO2-ENTRY"}, { "AD-IF-RELEVANT", 1073741826, "AuthorizationData"}, { "AD-KDCIssued", 1610612741, NULL }, { "ad-checksum", 1610620930, "Checksum"}, { NULL, 2056, "0"}, { "i-realm", 1610637314, "Realm"}, { NULL, 2056, "1"}, { "i-sname", 1610637314, "PrincipalName"}, { NULL, 2056, "2"}, { "elements", 536879106, "AuthorizationData"}, { NULL, 2056, "3"}, { "AD-AND-OR", 1610612741, NULL }, { "condition-count", 1610620930, "Int32"}, { NULL, 2056, "0"}, { "elements", 536879106, "AuthorizationData"}, { NULL, 2056, "1"}, { "AD-MANDATORY-FOR-KDC", 2, "AuthorizationData"}, { NULL, 0, NULL } }; shishi-1.0.3/lib/netio.c0000644000000000000000000002666414273601533011743 00000000000000/* netio.c --- Network I/O functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_sendrecv_tls, etc. */ #include "starttls.h" /* Get _shishi_realminfo, etc. */ #include "diskio.h" /* Get _shishi_realminfo. */ #include "cfg.h" static int sendrecv_udp (Shishi * handle, struct addrinfo *ai, const char *indata, int inlen, char **outdata, size_t *outlen) { char tmpbuf[BUFSIZ]; /* XXX can we do without it? MSG_PEEK|MSG_TRUNC doesn't work for udp.. */ int sockfd; int bytes_sent; fd_set readfds; struct timeval tout; ssize_t slen; int rc; sockfd = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (sockfd < 0) { shishi_error_set (handle, strerror (errno)); return SHISHI_SOCKET_ERROR; } if (connect (sockfd, ai->ai_addr, ai->ai_addrlen) != 0) { shishi_error_set (handle, strerror (errno)); close (sockfd); return SHISHI_BIND_ERROR; } bytes_sent = write (sockfd, indata, inlen); if (bytes_sent != inlen) { shishi_error_set (handle, strerror (errno)); close (sockfd); return SHISHI_SENDTO_ERROR; } FD_ZERO (&readfds); FD_SET (sockfd, &readfds); tout.tv_sec = handle->kdctimeout; tout.tv_usec = 0; if ((rc = select (sockfd + 1, &readfds, NULL, NULL, &tout)) != 1) { if (rc == -1) shishi_error_set (handle, strerror (errno)); else shishi_error_clear (handle); close (sockfd); return SHISHI_KDC_TIMEOUT; } *outlen = sizeof (tmpbuf); slen = read (sockfd, tmpbuf, *outlen); if (slen == -1) { shishi_error_set (handle, strerror (errno)); close (sockfd); return SHISHI_RECVFROM_ERROR; } *outdata = xmalloc (slen); *outlen = slen; memcpy (*outdata, tmpbuf, slen); if (close (sockfd) != 0) { shishi_error_set (handle, strerror (errno)); return SHISHI_CLOSE_ERROR; } return SHISHI_OK; } static int sendrecv_tcp (Shishi * handle, struct addrinfo *ai, const char *indata, int inlen, char **outdata, size_t *outlen) { char tmpbuf[BUFSIZ]; /* XXX can we do without it? MSG_PEEK|MSG_TRUNC doesn't work for udp.. */ int sockfd; int bytes_sent; struct sockaddr_storage from_sa; socklen_t length = sizeof (struct sockaddr_storage); fd_set readfds; struct timeval tout; int rc; ssize_t slen; sockfd = socket (ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (sockfd < 0) { shishi_error_set (handle, strerror (errno)); return SHISHI_SOCKET_ERROR; } if (connect (sockfd, ai->ai_addr, ai->ai_addrlen) != 0) { shishi_error_set (handle, strerror (errno)); close (sockfd); return SHISHI_BIND_ERROR; } tmpbuf[3] = inlen & 0xFF; tmpbuf[2] = (inlen >> 8) & 0xFF; tmpbuf[1] = (inlen >> 16) & 0xFF; tmpbuf[0] = (inlen >> 24) & 0xFF; bytes_sent = write (sockfd, tmpbuf, 4); if (bytes_sent != 4) { shishi_error_set (handle, strerror (errno)); return SHISHI_SENDTO_ERROR; } bytes_sent = write (sockfd, (const void *) indata, inlen); if (bytes_sent != inlen) { shishi_error_set (handle, strerror (errno)); return SHISHI_SENDTO_ERROR; } FD_ZERO (&readfds); FD_SET (sockfd, &readfds); tout.tv_sec = handle->kdctimeout; tout.tv_usec = 0; if ((rc = select (sockfd + 1, &readfds, NULL, NULL, &tout)) != 1) { if (rc == -1) shishi_error_set (handle, strerror (errno)); else shishi_error_clear (handle); return SHISHI_KDC_TIMEOUT; } *outlen = 4; slen = recvfrom (sockfd, tmpbuf, *outlen, 0, (struct sockaddr *) &from_sa, &length); if (slen == -1) { shishi_error_set (handle, strerror (errno)); return SHISHI_RECVFROM_ERROR; } *outlen = sizeof (tmpbuf); slen = recvfrom (sockfd, tmpbuf, *outlen, 0, (struct sockaddr *) &from_sa, &length); if (slen == -1) { shishi_error_set (handle, strerror (errno)); return SHISHI_RECVFROM_ERROR; } *outdata = xmalloc (slen); *outlen = slen; memcpy (*outdata, tmpbuf, slen); if (close (sockfd) != 0) { shishi_error_set (handle, strerror (errno)); return SHISHI_CLOSE_ERROR; } return SHISHI_OK; } static int sendrecv_host (Shishi * handle, int transport, const char *host, const char *port, const char *indata, size_t inlen, char **outdata, size_t *outlen) { struct addrinfo hints; struct addrinfo *ai; int rc; memset (&hints, 0, sizeof (hints)); if (transport == TCP || transport == TLS) hints.ai_socktype = SOCK_STREAM; else hints.ai_socktype = SOCK_DGRAM; hints.ai_flags = AI_ADDRCONFIG; if (port == NULL) port = "88"; rc = getaddrinfo (host, port, &hints, &ai); if (rc != 0) { shishi_error_printf (handle, "Cannot find host %s", host); return SHISHI_KDC_NOT_KNOWN_FOR_REALM; } do { char nodename[NI_MAXHOST]; size_t j = 0; rc = getnameinfo (ai->ai_addr, ai->ai_addrlen, nodename, sizeof (nodename), NULL, 0, NI_NUMERICHOST); shishi_verbose (handle, "Sending to %s (%s) port %s transport %s", host, rc == 0 ? nodename : "unknown address", port, _shishi_transport2string (transport)); do { if (transport == TCP) rc = sendrecv_tcp (handle, ai, indata, inlen, outdata, outlen); #ifdef USE_STARTTLS else if (transport == TLS) rc = _shishi_sendrecv_tls (handle, ai, indata, inlen, outdata, outlen); #endif else rc = sendrecv_udp (handle, ai, indata, inlen, outdata, outlen); if (rc != SHISHI_OK) shishi_verbose (handle, "Error sending to KDC: %s", shishi_strerror (rc)); } while (rc == SHISHI_KDC_TIMEOUT && ++j < handle->kdcretries); } while (rc != SHISHI_OK && (ai = ai->ai_next)); return rc; } static int sendrecv_srv3 (Shishi * handle, int transport, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen, Shishi_dns rrs, bool *found_srv_records) { int rc = SHISHI_KDC_NOT_KNOWN_FOR_REALM; for (; rrs; rrs = rrs->next) { Shishi_dns_srv srv = rrs->rr; char *port; if (rrs->class != SHISHI_DNS_IN) continue; if (rrs->type != SHISHI_DNS_SRV) continue; shishi_verbose (handle, "Found SRV host %s port %d", srv->name, srv->port); *found_srv_records = true; port = xasprintf ("%d", srv->port); rc = sendrecv_host (handle, transport, srv->name, port, indata, inlen, outdata, outlen); free (port); if (rc == SHISHI_OK) return rc; } return rc; } static int sendrecv_srv2 (Shishi * handle, int transport, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen, bool *found_srv_records) { Shishi_dns rrs; char *tmp; int rc; if (transport != UDP && transport != TCP) return SHISHI_KDC_NOT_KNOWN_FOR_REALM; tmp = xasprintf ("_kerberos._%s.%s", transport == UDP ? "udp" : "tcp", realm); shishi_verbose (handle, "Looking up SRV for %s", tmp); rrs = shishi_resolv (tmp, SHISHI_DNS_SRV); free (tmp); if (rrs) rc = sendrecv_srv3 (handle, transport, realm, indata, inlen, outdata, outlen, rrs, found_srv_records); else rc = SHISHI_KDC_NOT_KNOWN_FOR_REALM; shishi_resolv_free (rrs); return rc; } static int sendrecv_srv (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen, bool *found_srv_records) { int rc = sendrecv_srv2 (handle, UDP, realm, indata, inlen, outdata, outlen, found_srv_records); if (rc == SHISHI_OK) return rc; return sendrecv_srv2 (handle, TCP, realm, indata, inlen, outdata, outlen, found_srv_records); } static int sendrecv_static (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen) { struct Shishi_realminfo *ri; size_t k; int rc; ri = _shishi_realminfo (handle, realm); if (!ri || ri->nkdcaddresses == 0) { shishi_error_printf (handle, "No KDC configured for %s", realm); return SHISHI_KDC_NOT_KNOWN_FOR_REALM; } rc = SHISHI_KDC_NOT_KNOWN_FOR_REALM; for (k = 0; k < ri->nkdcaddresses; k++) { rc = sendrecv_host (handle, ri->kdcaddresses[k].transport, ri->kdcaddresses[k].hostname, ri->kdcaddresses[k].port, indata, inlen, outdata, outlen); if (rc == SHISHI_OK) return rc; } return rc; } /** * shishi_kdc_sendrecv_hint: * @handle: Shishi library handle create by shishi_init(). * @realm: string with realm name. * @indata: Packet to send to KDC. * @inlen: Length of @indata. * @outdata: Newly allocated string with data returned from KDC. * @outlen: Length of @outdata. * @hint: a #Shishi_tkts_hint structure with flags. * * Send packet to KDC for realm and receive response. The code finds * KDC addresses from configuration file, then by querying for SRV * records for the realm, and finally by using the realm name as a * hostname. * * Returns: %SHISHI_OK on success, %SHISHI_KDC_TIMEOUT if a timeout * was reached, or other errors. **/ int shishi_kdc_sendrecv_hint (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen, Shishi_tkts_hint * hint) { struct Shishi_realminfo *ri; bool found_srv_records = false; int rc; ri = _shishi_realminfo (handle, realm); if (ri && ri->nkdcaddresses > 0) /* If we have configured KDCs, never use DNS or direct method. */ return sendrecv_static (handle, realm, indata, inlen, outdata, outlen); rc = sendrecv_srv (handle, realm, indata, inlen, outdata, outlen, &found_srv_records); if (rc != SHISHI_OK && !found_srv_records) { shishi_verbose (handle, "No SRV RRs, trying realm host mapping for %s", realm); rc = sendrecv_host (handle, UDP, realm, NULL, indata, inlen, outdata, outlen); } return rc; } /** * shishi_kdc_sendrecv: * @handle: Shishi library handle create by shishi_init(). * @realm: string with realm name. * @indata: Packet to send to KDC. * @inlen: Length of @indata. * @outdata: Newly allocated string with data returned from KDC. * @outlen: Length of @outdata. * * Send packet to KDC for realm and receive response. The code finds * KDC addresses from configuration file, then by querying for SRV * records for the realm, and finally by using the realm name as a * hostname. * * Returns: %SHISHI_OK on success, %SHISHI_KDC_TIMEOUT if a timeout * was reached, or other errors. **/ int shishi_kdc_sendrecv (Shishi * handle, const char *realm, const char *indata, size_t inlen, char **outdata, size_t *outlen) { return shishi_kdc_sendrecv_hint (handle, realm, indata, inlen, outdata, outlen, NULL); } shishi-1.0.3/lib/as.c0000644000000000000000000003435614273601533011225 00000000000000/* as.c --- High level client AS functions * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_as { Shishi *handle; Shishi_asn1 asreq; Shishi_asn1 asrep; Shishi_asn1 krberror; Shishi_tkt *tkt; }; /** * shishi_as: * @handle: shishi handle as allocated by shishi_init(). * @as: holds pointer to newly allocate Shishi_as structure. * * Allocate a new AS exchange variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as (Shishi * handle, Shishi_as ** as) { Shishi_as *las; int res; *as = xmalloc (sizeof (**as)); las = *as; memset (las, 0, sizeof (*las)); las->handle = handle; las->asreq = shishi_asreq (handle); if (las->asreq == NULL) { shishi_error_printf (handle, "Could not create AS-REQ: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } las->asrep = shishi_asrep (handle); if (las->asrep == NULL) { shishi_error_printf (handle, "Could not create AS-REP: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } las->krberror = shishi_krberror (handle); if (las->krberror == NULL) { shishi_error_printf (handle, "Could not create KRB-ERROR: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } res = shishi_tkt (handle, &las->tkt); if (res != SHISHI_OK) return res; res = shishi_tkt_flags_set (las->tkt, SHISHI_TICKETFLAGS_INITIAL); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_as_done: * @as: structure that holds information about AS exchange * * Deallocate resources associated with AS exchange. This should be * called by the application when it no longer need to utilize the AS * exchange handle. **/ void shishi_as_done (Shishi_as * as) { shishi_asn1_done (as->handle, as->asreq); shishi_asn1_done (as->handle, as->asrep); shishi_asn1_done (as->handle, as->krberror); shishi_tkt_done (as->tkt); free (as); } /* TODO: add shishi_as_clientserver(h,p,a,client,server) and make the shishi_as_cnamerealmsname function take real cname/sname pointer arrays. */ /** * shishi_as_req: * @as: structure that holds information about AS exchange * * Get ASN.1 AS-REQ structure from AS exchange. * * Return value: Returns the generated AS-REQ packet from the AS * exchange, or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_as_req (Shishi_as * as) { return as->asreq; } /** * shishi_as_req_build: * @as: structure that holds information about AS exchange * * Possibly remove unset fields (e.g., rtime). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_req_build (Shishi_as * as) { int res; res = shishi_kdcreq_build (as->handle, as->asreq); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_as_req_set: * @as: structure that holds information about AS exchange * @asreq: asreq to store in AS. * * Set the AS-REQ in the AS exchange. **/ void shishi_as_req_set (Shishi_as * as, Shishi_asn1 asreq) { if (as->asreq) shishi_asn1_done (as->handle, as->asreq); as->asreq = asreq; } /** * shishi_as_req_der: * @as: structure that holds information about AS exchange * @out: output array with newly allocated DER encoding of AS-REQ. * @outlen: length of output array with DER encoding of AS-REQ. * * DER encode AS-REQ. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_req_der (Shishi_as * as, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (as->handle, as->asreq, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_as_req_der_set: * @as: structure that holds information about AS exchange * @der: input array with DER encoded AP-REQ. * @derlen: length of input array with DER encoded AP-REQ. * * DER decode AS-REQ and set it AS exchange. If decoding fails, the * AS-REQ in the AS exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_as_req_der_set (Shishi_as * as, char *der, size_t derlen) { Shishi_asn1 asreq; asreq = shishi_der2asn1_asreq (as->handle, der, derlen); if (asreq == NULL) return SHISHI_ASN1_ERROR; as->asreq = asreq; return SHISHI_OK; } /** * shishi_as_rep: * @as: structure that holds information about AS exchange * * Get ASN.1 AS-REP structure from AS exchange. * * Return value: Returns the received AS-REP packet from the AS * exchange, or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_as_rep (Shishi_as * as) { return as->asrep; } /** * shishi_as_rep_process: * @as: structure that holds information about AS exchange * @key: user's key, used to encrypt the encrypted part of the AS-REP. * @password: user's password, used if key is NULL. * * Process new AS-REP and set ticket. The key is used to decrypt the * AP-REP. If both key and password is NULL, the user is queried for * it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_rep_process (Shishi_as * as, Shishi_key * key, const char *password) { Shishi_asn1 ticket, kdcreppart; int res; if (VERBOSE (as->handle)) printf ("Processing AS-REQ and AS-REP...\n"); if (VERBOSEASN1 (as->handle)) shishi_kdcreq_print (as->handle, stdout, as->asreq); if (VERBOSEASN1 (as->handle)) shishi_kdcrep_print (as->handle, stdout, as->asrep); if (key == NULL && password == NULL) { char *passwd; char *user; size_t userlen; res = shishi_asreq_clientrealm (as->handle, as->asreq, &user, &userlen); if (res != SHISHI_OK) { shishi_error_printf (as->handle, "Could not extract cname and " "realm from AS-REQ: %s\n", shishi_strerror (res)); return res; } res = shishi_prompt_password (as->handle, &passwd, "Enter password for `%s': ", user); free (user); if (res != SHISHI_OK) { shishi_error_printf (as->handle, "Reading password failed: %s\n", shishi_strerror (res)); return res; } res = shishi_as_process (as->handle, as->asreq, as->asrep, passwd, &kdcreppart); free (passwd); } else if (key == NULL) res = shishi_as_process (as->handle, as->asreq, as->asrep, password, &kdcreppart); else res = shishi_kdc_process (as->handle, as->asreq, as->asrep, key, SHISHI_KEYUSAGE_ENCASREPPART, &kdcreppart); if (res != SHISHI_OK) return res; if (VERBOSE (as->handle)) printf ("Got EncKDCRepPart...\n"); if (VERBOSEASN1 (as->handle)) shishi_enckdcreppart_print (as->handle, stdout, kdcreppart); res = shishi_kdcrep_get_ticket (as->handle, as->asrep, &ticket); if (res != SHISHI_OK) { shishi_error_printf (as->handle, "Could not extract ticket from AS-REP: %s", shishi_error (as->handle)); return res; } if (VERBOSE (as->handle)) printf ("Got Ticket...\n"); if (VERBOSEASN1 (as->handle)) shishi_ticket_print (as->handle, stdout, ticket); /* XXX */ as->tkt = shishi_tkt2 (as->handle, ticket, kdcreppart, as->asrep); return SHISHI_OK; } /** * shishi_as_rep_build: * @as: structure that holds information about AS exchange * @key: user's key, used to encrypt the encrypted part of the AS-REP. * * Build AS-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_rep_build (Shishi_as * as, Shishi_key * key) { int rc; /* XXX there are reasons for having padata in AS-REP */ rc = shishi_kdcrep_clear_padata (as->handle, as->asrep); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_populate_encticketpart (as->handle, shishi_tkt_enckdcreppart (as->tkt), shishi_tkt_encticketpart (as->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_nonce (as->handle, as->asreq, shishi_tkt_enckdcreppart (as->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_add_enc_part (as->handle, as->asrep, key, SHISHI_KEYUSAGE_ENCASREPPART, shishi_tkt_enckdcreppart (as->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_set_ticket (as->handle, as->asrep, shishi_tkt_ticket (as->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_crealm (as->handle, as->asrep, shishi_tkt_encticketpart (as->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_cname (as->handle, as->asrep, shishi_tkt_encticketpart (as->tkt)); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_as_rep_der: * @as: structure that holds information about AS exchange * @out: output array with newly allocated DER encoding of AS-REP. * @outlen: length of output array with DER encoding of AS-REP. * * DER encode AS-REP. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_rep_der (Shishi_as * as, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (as->handle, as->asrep, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_as_rep_set: * @as: structure that holds information about AS exchange * @asrep: asrep to store in AS. * * Set the AS-REP in the AS exchange. **/ void shishi_as_rep_set (Shishi_as * as, Shishi_asn1 asrep) { if (as->asrep) shishi_asn1_done (as->handle, as->asrep); as->asrep = asrep; } /** * shishi_as_rep_der_set: * @as: structure that holds information about AS exchange * @der: input array with DER encoded AP-REP. * @derlen: length of input array with DER encoded AP-REP. * * DER decode AS-REP and set it AS exchange. If decoding fails, the * AS-REP in the AS exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_as_rep_der_set (Shishi_as * as, char *der, size_t derlen) { Shishi_asn1 asrep; asrep = shishi_der2asn1_asrep (as->handle, der, derlen); if (asrep == NULL) return SHISHI_ASN1_ERROR; as->asrep = asrep; return SHISHI_OK; } /** * shishi_as_krberror: * @as: structure that holds information about AS exchange * * Get ASN.1 KRB-ERROR structure from AS exchange. * * Return value: Returns the received KRB-ERROR packet from the AS * exchange, or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_as_krberror (Shishi_as * as) { return as->krberror; } /** * shishi_as_krberror_der: * @as: structure that holds information about AS exchange * @out: output array with newly allocated DER encoding of KRB-ERROR. * @outlen: length of output array with DER encoding of KRB-ERROR. * * DER encode KRB-ERROR. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_krberror_der (Shishi_as * as, char **out, size_t *outlen) { int rc; rc = shishi_krberror_der (as->handle, as->krberror, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_as_krberror_set: * @as: structure that holds information about AS exchange * @krberror: krberror to store in AS. * * Set the KRB-ERROR in the AS exchange. **/ void shishi_as_krberror_set (Shishi_as * as, Shishi_asn1 krberror) { if (as->krberror) shishi_asn1_done (as->handle, as->krberror); as->krberror = krberror; } /** * shishi_as_tkt: * @as: structure that holds information about AS exchange * * Get Ticket in AS exchange. * * Return value: Returns the newly acquired tkt from the AS * exchange, or NULL if not yet set or an error occured. **/ Shishi_tkt * shishi_as_tkt (Shishi_as * as) { return as->tkt; } /** * shishi_as_tkt_set: * @as: structure that holds information about AS exchange * @tkt: tkt to store in AS. * * Set the Tkt in the AS exchange. **/ void shishi_as_tkt_set (Shishi_as * as, Shishi_tkt * tkt) { as->tkt = tkt; } /** * shishi_as_sendrecv_hint: * @as: structure that holds information about AS exchange * @hint: additional parameters that modify connection behaviour, or %NULL. * * Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial * authentication, usually used to acquire a Ticket Granting Ticket. * The @hint structure can be used to set, e.g., parameters for TLS * authentication. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_sendrecv_hint (Shishi_as * as, Shishi_tkts_hint * hint) { int res; if (VERBOSE (as->handle)) printf ("Sending AS-REQ...\n"); if (VERBOSEASN1 (as->handle)) shishi_kdcreq_print (as->handle, stdout, as->asreq); res = shishi_kdcreq_sendrecv_hint (as->handle, as->asreq, &as->asrep, hint); if (res == SHISHI_GOT_KRBERROR) { as->krberror = as->asrep; as->asrep = NULL; if (VERBOSE (as->handle)) printf ("Received KRB-ERROR...\n"); if (VERBOSEASN1 (as->handle)) shishi_krberror_print (as->handle, stdout, as->krberror); if (VERBOSEASN1 (as->handle)) shishi_krberror_pretty_print (as->handle, stdout, as->krberror); } if (res != SHISHI_OK) return res; if (VERBOSE (as->handle)) printf ("Received AS-REP...\n"); if (VERBOSEASN1 (as->handle)) shishi_kdcrep_print (as->handle, stdout, as->asrep); return SHISHI_OK; } /** * shishi_as_sendrecv: * @as: structure that holds information about AS exchange * * Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial * authentication, usually used to acquire a Ticket Granting Ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_as_sendrecv (Shishi_as * as) { return shishi_as_sendrecv_hint (as, NULL); } shishi-1.0.3/lib/crypto-3des.c0000644000000000000000000001741414273601533012772 00000000000000/* crypto-3des.c --- 3DES crypto functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "crypto.h" /* Get _shishi_escapeprint, etc. */ #include "utils.h" static int _des3_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_encrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int _des3_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_decrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int des3none_dencrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen, int direction) { int res; if (keyusage != 0) { Shishi_key *derivedkey; res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_PRIVACY, &derivedkey); if (res != SHISHI_OK) return res; res = _shishi_simplified_dencrypt (handle, derivedkey, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, direction); shishi_key_done (derivedkey); if (res != SHISHI_OK) return res; } else { res = _shishi_simplified_dencrypt (handle, key, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, direction); if (res != SHISHI_OK) return res; } return SHISHI_OK; } static int des3none_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des3none_dencrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, 0); } static int des3none_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return des3none_dencrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, 1); } static void des_set_odd_key_parity (char key[8]) { int i, j; for (i = 0; i < 8; i++) { int n_set_bits = 0; for (j = 1; j < 8; j++) if (key[i] & (1 << j)) n_set_bits++; key[i] &= ~1; if ((n_set_bits % 2) == 0) key[i] |= 1; } } /* The 168 bits of random key data are converted to a protocol key * value as follows. First, the 168 bits are divided into three * groups of 56 bits, which are expanded individually into 64 bits as * follows: * * 1 2 3 4 5 6 7 p * 9 10 11 12 13 14 15 p * 17 18 19 20 21 22 23 p * 25 26 27 28 29 30 31 p * 33 34 35 36 37 38 39 p * 41 42 43 44 45 46 47 p * 49 50 51 52 53 54 55 p * 56 48 40 32 24 16 8 p * * The "p" bits are parity bits computed over the data bits. The * output of the three expansions are concatenated to form the * protocol key value. * */ static int des3_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { char tmpkey[3 * 8]; int i; if (rndlen < 168 / 8) return !SHISHI_OK; if (VERBOSECRYPTO (handle)) { printf ("des3_random_to_key (random)\n"); printf ("\t ;; random (length %d):\n", 168 / 8); _shishi_hexprint (rnd, 168 / 8); _shishi_binprint (rnd, 168 / 8); } memcpy (tmpkey, rnd, 7); memcpy (tmpkey + 8, rnd + 7, 7); memcpy (tmpkey + 16, rnd + 14, 7); for (i = 0; i < 3; i++) { tmpkey[i * 8 + 7] = ((tmpkey[i * 8 + 0] & 0x01) << 1) | ((tmpkey[i * 8 + 1] & 0x01) << 2) | ((tmpkey[i * 8 + 2] & 0x01) << 3) | ((tmpkey[i * 8 + 3] & 0x01) << 4) | ((tmpkey[i * 8 + 4] & 0x01) << 5) | ((tmpkey[i * 8 + 5] & 0x01) << 6) | ((tmpkey[i * 8 + 6] & 0x01) << 7); des_set_odd_key_parity (tmpkey + i * 8); } shishi_key_value_set (outkey, tmpkey); if (VERBOSECRYPTO (handle)) { printf ("key = des3_random_to_key (random)\n"); printf ("\t ;; key:\n"); _shishi_hexprint (tmpkey, 3 * 8); _shishi_binprint (tmpkey, 3 * 8); } return SHISHI_OK; } static int des3_string_to_key (Shishi * handle, const char *string, size_t stringlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { char *s; int n_s; Shishi_key *key; char nfold[168 / 8]; int nfoldlen = 168 / 8; int res; if (VERBOSECRYPTO (handle)) { printf ("des3_string_to_key (string, salt)\n"); printf ("\t ;; String:\n"); _shishi_escapeprint (string, stringlen); _shishi_hexprint (string, stringlen); printf ("\t ;; Salt:\n"); _shishi_escapeprint (salt, saltlen); _shishi_hexprint (salt, saltlen); } /* s = passwordString + salt */ n_s = stringlen + saltlen; s = xmalloc (n_s); memcpy (s, string, stringlen); memcpy (s + stringlen, salt, saltlen); /* tmpKey = random-to-key(168-fold(s)) */ res = shishi_n_fold (handle, s, n_s, nfold, nfoldlen); free (s); if (res != SHISHI_OK) return res; res = shishi_key_from_value (handle, shishi_key_type (outkey), NULL, &key); if (res != SHISHI_OK) return res; res = des3_random_to_key (handle, nfold, nfoldlen, key); if (res == SHISHI_OK) /* key = DK (tmpKey, Constant) */ res = shishi_dk (handle, key, SHISHI_DK_CONSTANT, strlen (SHISHI_DK_CONSTANT), outkey); shishi_key_done (key); if (res != SHISHI_OK) return res; if (VERBOSECRYPTO (handle)) { printf ("des3_string_to_key (string, salt)\n"); printf ("\t ;; Key:\n"); _shishi_hexprint (shishi_key_value (outkey), shishi_key_length (outkey)); _shishi_binprint (shishi_key_value (outkey), shishi_key_length (outkey)); } return SHISHI_OK; } static int des3_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen); } cipherinfo des3_cbc_none_info = { SHISHI_DES3_CBC_NONE, "des3-cbc-none", 8, 8, 3 * 8, 3 * 8, SHISHI_HMAC_SHA1_DES3_KD, des3_random_to_key, des3_string_to_key, des3none_encrypt, des3none_decrypt }; cipherinfo des3_cbc_sha1_kd_info = { SHISHI_DES3_CBC_HMAC_SHA1_KD, "des3-cbc-sha1-kd", 8, 8, 3 * 8, 3 * 8, SHISHI_HMAC_SHA1_DES3_KD, des3_random_to_key, des3_string_to_key, _des3_encrypt, _des3_decrypt }; checksuminfo hmac_sha1_des3_kd_info = { SHISHI_HMAC_SHA1_DES3_KD, "hmac-sha1-des3-kd", 20, des3_checksum, NULL }; shishi-1.0.3/lib/keytab.c0000644000000000000000000003617614273601533012103 00000000000000/* keys.c --- Functions for reading /etc/krb5.keytab style key files. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_hexprint, etc. */ #include "utils.h" /** * shishi_keys_add_keytab_mem: * @handle: shishi handle as allocated by shishi_init(). * @data: constant memory buffer with keytab of @len size. * @len: size of memory buffer with keytab data. * @keys: allocated key set to store keys in. * * Read keys from a MIT keytab data structure, and add them to the key * set. * * The format of keytab's is proprietary, and this function support * the 0x0501 and 0x0502 formats. See the section The MIT Kerberos * Keytab Binary File Format in the Shishi manual for a description of * the reverse-engineered format. * * Returns: Returns %SHISHI_KEYTAB_ERROR if the data does not * represent a valid keytab structure, and %SHISHI_OK on success. **/ int shishi_keys_add_keytab_mem (Shishi * handle, const char *data, size_t len, Shishi_keys * keys) { int rc; uint16_t file_format_version; size_t entrystartpos; uint16_t num_components; /* sub 1 if version 0x501 */ size_t i; Shishi_key *key; if (VERBOSENOISE (handle)) { printf ("keytab len %zu (0x%zx)\n", len, len); _shishi_hexprint (data, len); } /* Check file format. */ file_format_version = (data[0] << 8) | data[1]; if (VERBOSENOISE (handle)) printf ("keytab file_format_version %04X\n", file_format_version); if (file_format_version != 0x0501 && file_format_version != 0x0502) return SHISHI_KEYTAB_ERROR; /* Check file integrity first, to avoid error-checking below. */ entrystartpos = 2; while (entrystartpos < len) { int32_t size = data[entrystartpos] << 24 | data[entrystartpos + 1] << 16 | data[entrystartpos + 2] << 8 | data[entrystartpos + 3]; entrystartpos += 4; if (VERBOSENOISE (handle)) { printf ("keytab size %d (%x)\n", size, (unsigned) size); printf ("keytab pos %zu < %zu\n", entrystartpos + size, len); } if (entrystartpos + size > len) return SHISHI_KEYTAB_ERROR; /* Go to next entry... */ entrystartpos += size; } if (entrystartpos != len) return SHISHI_KEYTAB_ERROR; rc = shishi_key (handle, &key); if (rc != SHISHI_OK) return rc; entrystartpos = 2; while (entrystartpos < len) { size_t pos = entrystartpos; uint16_t size = data[pos] << 24 | data[pos + 1] << 16 | data[pos + 2] << 8 | data[pos + 3]; pos += 4; if (VERBOSENOISE (handle)) printf ("keytab size %d (%x)\n", size, size); /* Num_components */ num_components = data[pos] << 8 | data[pos + 1]; pos += 2; if (file_format_version == 0x0501) num_components--; /* Realm */ { uint16_t realmlen = data[pos] << 8 | data[pos + 1]; char *realm = xstrndup (&data[pos + 2], realmlen); pos += 2 + realmlen; shishi_key_realm_set (key, realm); free (realm); } /* Principal components. */ { char *name = NULL; size_t namelen = 0; for (i = 0; i < num_components; i++) { size_t l; l = data[pos] << 8 | data[pos + 1]; pos += 2; name = xrealloc (name, namelen + l + 1); memcpy (name + namelen, &data[pos], l); name[namelen + l] = '/'; namelen += l + 1; pos += l; } name[namelen - 1] = '\0'; shishi_key_principal_set (key, name); free (name); } /* Name_type */ { uint32_t name_type /* not present if version 0x501 */ = data[pos] << 24 | data[pos + 1] << 16 | data[pos + 2] << 8 | data[pos + 3]; pos += 4; if (VERBOSENOISE (handle)) printf ("keytab nametype %" PRIu32 " (0x%08x)\n", name_type, name_type); } /* Timestamp */ { uint32_t timestamp = ((data[pos] << 24) & 0xFF000000) | ((data[pos + 1] << 16) & 0xFF0000) | ((data[pos + 2] << 8) & 0xFF00) | ((data[pos + 3] & 0xFF)); time_t t = timestamp; pos += 4; if (VERBOSENOISE (handle)) printf ("keytab timestamp %s (0x%08x)\n", shishi_generalize_time (handle, timestamp), timestamp); shishi_key_timestamp_set (key, t); } /* keyvno8 */ { uint8_t vno8 = data[pos++]; if (VERBOSENOISE (handle)) printf ("keytab kvno8 %d (0x%02x)\n", vno8, vno8); shishi_key_version_set (key, vno8); } /* key, keytype */ { uint32_t keytype = data[pos] << 8 | data[pos + 1]; pos += 2; if (VERBOSENOISE (handle)) printf ("keytab keytype %" PRIu32 " (0x%x)\n", keytype, keytype); shishi_key_type_set (key, keytype); } /* key, length and data */ { uint16_t keylen = data[pos] << 8 | data[pos + 1]; pos += 2; if (VERBOSENOISE (handle)) printf ("keytab keylen %d (0x%x) eq? %zu\n", keylen, keylen, shishi_key_length (key)); if (VERBOSENOISE (handle)) _shishi_hexprint (data + pos, keylen); shishi_key_value_set (key, data + pos); pos += keylen; } if (pos - entrystartpos < (size_t) size + 4) { uint32_t vno /* only present if >= 4 bytes left in entry */ = data[pos] << 24 | data[pos + 1] << 16 | data[pos + 2] << 8 | data[pos + 3]; pos += 4; if (VERBOSENOISE (handle)) printf ("keytab kvno %" PRIu32 " (0x%08x)\n", vno, vno); shishi_key_version_set (key, vno); } if (VERBOSECRYPTONOISE (handle)) shishi_key_print (handle, stdout, key); rc = shishi_keys_add (keys, key); if (rc != SHISHI_OK) goto done; /* Go to next entry... */ entrystartpos += size + 4; } rc = SHISHI_OK; done: shishi_key_done (key); return rc; } /** * shishi_keys_add_keytab_file: * @handle: shishi handle as allocated by shishi_init(). * @filename: name of file to read. * @keys: allocated key set to store keys in. * * Read keys from a MIT keytab data structure from a file, and add the * keys to the key set. * * The format of keytab's is proprietary, and this function support * the 0x0501 and 0x0502 formats. See the section The MIT Kerberos * Keytab Binary File Format in the Shishi manual for a description of * the reverse-engineered format. * * Returns: Returns %SHISHI_IO_ERROR if the file cannot be read, * %SHISHI_KEYTAB_ERROR if the data cannot be parsed as a valid keytab * structure, and %SHISHI_OK on success. **/ int shishi_keys_add_keytab_file (Shishi * handle, const char *filename, Shishi_keys * keys) { size_t len; char *keytab = read_file (filename, RF_BINARY, &len); int rc; if (!keytab) return SHISHI_IO_ERROR; rc = shishi_keys_add_keytab_mem (handle, keytab, len, keys); free (keytab); return rc; } /** * shishi_keys_from_keytab_mem: * @handle: shishi handle as allocated by shishi_init(). * @data: constant memory buffer with keytab of @len size. * @len: size of memory buffer with keytab data. * @outkeys: pointer to key set that will be allocated and populated, * must be deallocated by caller on succes. * * Create a new key set populated with keys from a MIT keytab data * structure read from a memory block. * * The format of keytab's is proprietary, and this function support * the 0x0501 and 0x0502 formats. See the section The MIT Kerberos * Keytab Binary File Format in the Shishi manual for a description of * the reverse-engineered format. * * Returns: Returns %SHISHI_KEYTAB_ERROR if the data does not * represent a valid keytab structure, and %SHISHI_OK on success. **/ int shishi_keys_from_keytab_mem (Shishi * handle, const char *data, size_t len, Shishi_keys ** outkeys) { int rc; rc = shishi_keys (handle, outkeys); if (rc != SHISHI_OK) return rc; rc = shishi_keys_add_keytab_mem (handle, data, len, *outkeys); if (rc != SHISHI_OK) { shishi_keys_done (outkeys); return rc; } return SHISHI_OK; } /** * shishi_keys_from_keytab_file: * @handle: shishi handle as allocated by shishi_init(). * @filename: name of file to read. * @outkeys: pointer to key set that will be allocated and populated, * must be deallocated by caller on succes. * * Create a new key set populated with keys from a MIT keytab data * structure read from a file. * * The format of keytab's is proprietary, and this function support * the 0x0501 and 0x0502 formats. See the section The MIT Kerberos * Keytab Binary File Format in the Shishi manual for a description of * the reverse-engineered format. * * Returns: Returns %SHISHI_IO_ERROR if the file cannot be read, * %SHISHI_KEYTAB_ERROR if the data cannot be parsed as a valid keytab * structure, and %SHISHI_OK on success. **/ int shishi_keys_from_keytab_file (Shishi * handle, const char *filename, Shishi_keys ** outkeys) { int rc; rc = shishi_keys (handle, outkeys); if (rc != SHISHI_OK) return rc; rc = shishi_keys_add_keytab_file (handle, filename, *outkeys); if (rc != SHISHI_OK) { shishi_keys_done (outkeys); return rc; } return SHISHI_OK; } static int key_to_keytab_entry (Shishi * handle, const Shishi_key * key, char **out, size_t *len) { uint16_t num_components = 0; const char *realm = shishi_key_realm (key); size_t realmlen = strlen (realm); const char *principal = shishi_key_principal (key); uint32_t name_type = SHISHI_NT_PRINCIPAL; time_t timestamp = shishi_key_timestamp (key); uint32_t version = shishi_key_version (key); uint16_t key_type = shishi_key_type (key); size_t key_length = shishi_key_length (key); const char *key_value = shishi_key_value (key); char *tmpname; const char **namebuf; char *tokptr = NULL; char *p; size_t i; if (realmlen > UINT16_MAX) return SHISHI_KEYTAB_ERROR; if (key_length > UINT16_MAX) return SHISHI_KEYTAB_ERROR; /* Reserve room for size, num_components, realm.length, realm, name_type, timestamp, vno8, keyblock.type, keyblock.data.length, keyblock.data, and version. */ *len = 4 + 2 + 2 + realmlen + 4 + 4 + 1 + 2 + 2 + key_length + 4; tmpname = xstrdup (principal); namebuf = xmalloc (sizeof (*namebuf)); for (num_components = 0; (namebuf[num_components] = strtok_r (num_components == 0 ? tmpname : NULL, "/", &tokptr)); num_components++) { size_t length = strlen (namebuf[num_components]); if (length > UINT16_MAX) return SHISHI_KEYTAB_ERROR; *len += 2 + length; namebuf = xrealloc (namebuf, (num_components + 2) * sizeof (*namebuf)); } *out = xmalloc (*len); p = *out; /* Write size. */ p[0] = ((*len - 4) >> 24) & 0xFF; p[1] = ((*len - 4) >> 16) & 0xFF; p[2] = ((*len - 4) >> 8) & 0xFF; p[3] = (*len - 4) & 0xFF; p += 4; /* Write num_components. */ p[0] = (num_components >> 8) & 0xFF; p[1] = num_components & 0xFF; p += 2; /* Write realm.length and realm.data. */ p[0] = (realmlen >> 8) & 0xFF; p[1] = realmlen & 0xFF; p += 2; memcpy (p, realm, realmlen); p += realmlen; for (i = 0; i < num_components; i++) { uint16_t length = strlen (namebuf[i]); p[0] = (length >> 8) & 0xFF; p[1] = length & 0xFF; p += 2; memcpy (p, namebuf[i], length); p += length; } /* Name type */ p[0] = (name_type >> 24) & 0xFF; p[1] = (name_type >> 16) & 0xFF; p[2] = (name_type >> 8) & 0xFF; p[3] = name_type & 0xFF; p += 4; /* Timestamp */ p[0] = (timestamp >> 24) & 0xFF; p[1] = (timestamp >> 16) & 0xFF; p[2] = (timestamp >> 8) & 0xFF; p[3] = timestamp & 0xFF; p += 4; /* Version */ if (version < 256) p[0] = version & 0xFF; else p[0] = 0; /* use vno */ p += 1; /* Key */ p[0] = (key_type >> 8) & 0xFF; p[1] = key_type & 0xFF; p += 2; p[0] = (key_length >> 8) & 0xFF; p[1] = key_length & 0xFF; p += 2; memcpy (p, key_value, key_length); p += key_length; /* Version */ p[0] = (version >> 24) & 0xFF; p[1] = (version >> 16) & 0xFF; p[2] = (version >> 8) & 0xFF; p[3] = version & 0xFF; free (tmpname); free (namebuf); return SHISHI_OK; } /** * shishi_keys_to_keytab_mem: * @handle: shishi handle as allocated by shishi_init(). * @keys: key set to convert to keytab format. * @out: constant memory buffer with keytab of @len size. * @len: size of memory buffer with keytab data. * * Write keys to a MIT keytab data structure. * * The format of keytab's is proprietary, and this function writes the * 0x0502 format. See the section The MIT Kerberos Keytab Binary File * Format in the Shishi manual for a description of the * reverse-engineered format. * * Returns: On success %SHISHI_OK is returned, otherwise an error * code. * * Since: 0.0.42 **/ int shishi_keys_to_keytab_mem (Shishi * handle, Shishi_keys * keys, char **out, size_t *len) { int rc; const Shishi_key *key; int keyno = 0; *out = xmalloc (2); *len = 2; /* Write file format version. */ (*out)[0] = '\x05'; (*out)[1] = '\x02'; while ((key = shishi_keys_nth (keys, keyno++)) != NULL) { char *tmp = NULL; size_t tmplen = 0; rc = key_to_keytab_entry (handle, key, &tmp, &tmplen); if (rc != SHISHI_OK) { free (*out); return rc; } *out = xrealloc (*out, *len + tmplen); memcpy (*out + *len, tmp, tmplen); *len += tmplen; free (tmp); } if (VERBOSENOISE (handle)) { printf ("keys_to_keytab len %zu (0x%zx)\n", *len, *len); _shishi_hexprint (*out, *len); } return rc; } static int write_binary_file (const char *filename, const char *data, size_t length) { FILE *fh; size_t written; fh = fopen (filename, "wb"); if (!fh) return SHISHI_FOPEN_ERROR; written = fwrite (data, 1, length, fh); if (written != length) return SHISHI_IO_ERROR; return SHISHI_OK; } /** * shishi_keys_to_keytab_file: * @handle: shishi handle as allocated by shishi_init(). * @keys: keyset to write. * @filename: name of file to write. * * Write keys to a MIT keytab data structure. * * The format of keytab's is proprietary, and this function writes the * 0x0502 format. See the section The MIT Kerberos Keytab Binary File * Format in the Shishi manual for a description of the * reverse-engineered format. * * Returns: %SHISHI_FOPEN_ERROR if there is a problem opening * @filename for writing, %SHISHI_IO_ERROR if there is problem * writing the file, and %SHISHI_OK on success. * * Since: 0.0.42 **/ int shishi_keys_to_keytab_file (Shishi * handle, Shishi_keys * keys, const char *filename) { int rc; char *data; size_t len; rc = shishi_keys_to_keytab_mem (handle, keys, &data, &len); if (rc != SHISHI_OK) return rc; rc = write_binary_file (filename, data, len); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } shishi-1.0.3/lib/error.c0000644000000000000000000003142114273601533011741 00000000000000/* error.c --- Error handling functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct shishi_error_msgs { int errorcode; const char *message; }; static const struct shishi_error_msgs _shishi_error_messages[] = { {SHISHI_OK, N_("Shishi success.")}, {SHISHI_ASN1_ERROR, N_("Error in ASN.1 function. (corrupt data?)")}, {SHISHI_FOPEN_ERROR, N_("Could not open file.")}, {SHISHI_IO_ERROR, N_("File input/output error.")}, {SHISHI_MALLOC_ERROR, N_("Memory allocation error in shishi library.")}, {SHISHI_BASE64_ERROR, N_("Base64 encoding or decoding failed. Data corrupt?")}, {SHISHI_REALM_MISMATCH, N_("Client realm value differ between request and reply.")}, {SHISHI_CNAME_MISMATCH, N_("Client name value differ between request and reply.")}, {SHISHI_NONCE_MISMATCH, N_("Replay protection value (nonce) differ between request and reply.")}, {SHISHI_TGSREP_BAD_KEYTYPE, N_("Incorrect key type used in TGS reply.")}, {SHISHI_KDCREP_BAD_KEYTYPE, N_("Incorrect key type used in reply from KDC.")}, {SHISHI_APREP_BAD_KEYTYPE, N_("Incorrect key type used in AP reply.")}, {SHISHI_APREP_VERIFY_FAILED, N_("Failed verification of AP reply.")}, {SHISHI_APREQ_BAD_KEYTYPE, N_("Incorrect key type used in AP request.")}, {SHISHI_TOO_SMALL_BUFFER, N_("Provided buffer was too small.")}, {SHISHI_DERIVEDKEY_TOO_SMALL, N_("Derived key material is too short to be applicable.")}, {SHISHI_KEY_TOO_LARGE, N_("The key is too large to be usable.")}, {SHISHI_CRYPTO_ERROR, N_("Low-level cryptographic primitive failed. This usually indicates " "bad password or data corruption.")}, {SHISHI_CRYPTO_INTERNAL_ERROR, N_("Internal error in low-level crypto routines.")}, {SHISHI_SOCKET_ERROR, N_("The system call socket() failed. This usually indicates that " "your system does not support the socket type.")}, {SHISHI_BIND_ERROR, N_("The system call bind() failed. This usually indicates " "insufficient permissions.")}, {SHISHI_SENDTO_ERROR, N_("The system call sendto() failed.")}, {SHISHI_RECVFROM_ERROR, N_("Error receiving data from server.")}, {SHISHI_CLOSE_ERROR, N_("The system call close() failed.")}, {SHISHI_KDC_TIMEOUT, N_("Timed out talking to KDC. This usually indicates a network " "or KDC address problem.")}, {SHISHI_KDC_NOT_KNOWN_FOR_REALM, N_("No KDC known for given realm.")}, {SHISHI_TTY_ERROR, N_("No TTY assigned to process.")}, {SHISHI_GOT_KRBERROR, N_("Server replied to the request with an error message.")}, {SHISHI_HANDLE_ERROR, N_("Failure to use handle. Missing handle, or misconfigured.")}, {SHISHI_INVALID_TKTS, N_("Ticket set not initialized. This usually indicates an internal " "application error.")}, {SHISHI_TICKET_BAD_KEYTYPE, N_("Key type used to encrypt ticket doesn't match provided key. " "This usually indicates an internal application error.")}, {SHISHI_INVALID_KEY, N_("Reference to invalid encryption key.")}, {SHISHI_APREQ_DECRYPT_FAILED, N_("Could not decrypt AP-REQ using provided key. " "This usually indicates an internal application error.")}, {SHISHI_TICKET_DECRYPT_FAILED, N_("Could not decrypt Ticket using provided key. " "This usually indicates an internal application error.")}, {SHISHI_INVALID_TICKET, N_("Invalid ticked passed in call.")}, {SHISHI_OUT_OF_RANGE, N_("Argument lies outside of valid range.")}, {SHISHI_ASN1_NO_ELEMENT, N_("The ASN.1 structure does not contain the indicated element.")}, {SHISHI_SAFE_BAD_KEYTYPE, N_("Attempted access to non-existent key type.")}, {SHISHI_SAFE_VERIFY_FAILED, N_("Verification failed on either side.")}, {SHISHI_PKCS5_INVALID_PRF, N_("Invalid PKCS5 descriptor.")}, {SHISHI_PKCS5_INVALID_ITERATION_COUNT, N_("Invalid claim of iteration count in PKCS5 descriptor.")}, {SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH, N_("Derived key length is incorrect for PKCS5 descriptor.")}, {SHISHI_PKCS5_DERIVED_KEY_TOO_LONG, N_("Derived key is too long for PKCS5 descriptor.")}, {SHISHI_INVALID_PRINCIPAL_NAME, N_("Principal name syntax error.")}, {SHISHI_INVALID_ARGUMENT, N_("Invalid argument passed in call. Wrong or unknown value.")}, {SHISHI_ASN1_NO_VALUE, N_("The indicated ASN.1 element does not carry a value.")}, {SHISHI_CONNECT_ERROR, N_("Connection attempt failed. Try again, or check availability.")}, {SHISHI_VERIFY_FAILED, N_("Verification failed on either side.")}, {SHISHI_PRIV_BAD_KEYTYPE, N_("The private key uses an incompatible encryption type.")}, {SHISHI_FILE_ERROR, N_("The desired file could not be accessed. Check permissions.")}, {SHISHI_ENCAPREPPART_BAD_KEYTYPE, N_("The present AP reply specifies an inpermissible key type.")}, {SHISHI_GETTIMEOFDAY_ERROR, N_("A request for present time of day has failed. " "This is usually internal, but a valid time is imperative for us.")}, {SHISHI_KEYTAB_ERROR, N_("Failed to parse keytab file.")}, {SHISHI_CCACHE_ERROR, N_("Failed to parse credential cache file.")}, {-1, NULL} }; /** * shishi_strerror: * @err: shishi error code. * * Converts the return code in @err to a human readable string. * * Return value: Returns a pointer to a statically allocated string * containing a description of the error with code @err. * This string can be used to output a diagnostic message to the user. **/ const char * shishi_strerror (int err) { const char *p = _("Unknown error"); size_t i; for (i = 0; _shishi_error_messages[i].errorcode != -1; i++) if (_shishi_error_messages[i].errorcode == err) { p = _(_shishi_error_messages[i].message); break; } return p; } /** * shishi_error: * @handle: shishi handle as allocated by shishi_init(). * * Extracts detailed information on the most recently occurred * error condition. Note that memory is managed by the Shishi * library, so the returned string must not be deallocated. * * Return value: Returns a pointer to a string describing an error. * The string must not be deallocated by the caller. **/ const char * shishi_error (Shishi * handle) { if (handle->error) return handle->error; return _("No error"); } /** * shishi_error_clear: * @handle: shishi handle as allocated by shishi_init(). * * Clears the internal error description. See shishi_error() * on how to access the error string, and shishi_error_set() as well * as shishi_error_printf() on how to set the error string. * * This function is mostly for Shishi's internal use, but if you develop * an extension of Shishi, it may be useful to support the same error * handling infrastructure. **/ void shishi_error_clear (Shishi * handle) { handle->error[0] = '\0'; } /** * shishi_error_set: * @handle: shishi handle as allocated by shishi_init(). * @errstr: A null-terminated character string holding a description, * or %NULL to clear the internal error string. * * Sets the error description to the content of @errstr. The * string is copied into the Shishi internal structure, so you can * deallocate any string passed to this function. * * This function is mostly for Shishi's internal use, but if you develop * an extension of Shishi, it may be useful to support the same error * handling infrastructure. **/ void shishi_error_set (Shishi * handle, const char *errstr) { if (errstr) { strncpy (handle->error, errstr, sizeof (handle->error) - 1); handle->error[sizeof (handle->error) - 1] = '\0'; if (VERBOSENOISE (handle)) puts (handle->error); } else shishi_error_clear (handle); } /** * shishi_error_printf: * @handle: shishi handle as allocated by shishi_init(). * @format: printf style format string. * @...: printf style arguments. * * Sets the internal error description to a printf(3) formatted * string. This function is mostly for Shishi's internal use, but if * you develop an extension of Shishi, it may be useful to support the * same infrastructure for error handling. **/ void shishi_error_printf (Shishi * handle, const char *format, ...) { va_list ap; char *s; va_start (ap, format); vasprintf (&s, format, ap); strncpy (handle->error, s, sizeof (handle->error)); handle->error[sizeof (handle->error) - 1] = '\0'; free (s); if (VERBOSE (handle)) puts (handle->error); va_end (ap); } /** * shishi_error_outputtype: * @handle: shishi handle as allocated by shishi_init(). * * Reports the current output type used in message logging. * * Return value: Returns the output type. %SHISHI_OUTPUTTYPE_NULL * means no output. %SHISHI_OUTPUTTYPE_STDERR and * %SHISHI_OUTPUTTYPE_SYSLOG direct text to the console, or to the * syslog system. **/ int shishi_error_outputtype (Shishi * handle) { return handle->outputtype; } /** * shishi_error_set_outputtype: * @handle: shishi handle as allocated by shishi_init(). * @type: output type, of enum type #Shishi_outputtype. * * Sets the output type (%NULL, %stderr or %syslog) used for information * and warning messages. Intended values are %SHISHI_OUTPUTTYPE_NULL, * for no output at all, %SHISHI_OUTPUTTYPE_STDERR for output to the * console, and %SHISHI_OUTPUTTYPE_SYSLOG for syslog messaging. * The first value covers everything different from the latter two values. **/ void shishi_error_set_outputtype (Shishi * handle, int type) { handle->outputtype = type; } /** * shishi_info: * @handle: shishi handle as allocated by shishi_init(). * @format: printf style format string. * @...: printf style arguments. * * Prints an informational message, composed from the arguments, * to the output stream set in @handle. **/ void shishi_info (Shishi * handle, const char *format, ...) { va_list ap; char *out; int type; va_start (ap, format); vasprintf (&out, format, ap); type = shishi_error_outputtype (handle); switch (type) { case SHISHI_OUTPUTTYPE_SYSLOG: /* If we don't have syslog, log to stderr... */ #ifdef HAVE_SYSLOG /* Which facility is optimal? */ syslog (LOG_INFO, _("libshishi: info: %s"), out); break; #endif case SHISHI_OUTPUTTYPE_STDERR: fprintf (stderr, _("libshishi: info: %s\n"), out); break; default: break; } free (out); va_end (ap); } /** * shishi_warn: * @handle: shishi handle as allocated by shishi_init(). * @format: printf style format string. * @...: printf style arguments. * * Prints a warning, composed from the arguments, to the output * stream set in @handle. **/ void shishi_warn (Shishi * handle, const char *format, ...) { va_list ap; char *out; int type; va_start (ap, format); vasprintf (&out, format, ap); type = shishi_error_outputtype (handle); switch (type) { case SHISHI_OUTPUTTYPE_SYSLOG: /* If we don't have syslog, log to stderr... */ #ifdef HAVE_SYSLOG /* Which facility is optimal? */ syslog (LOG_WARNING, _("libshishi: warning: %s"), out); break; #endif case SHISHI_OUTPUTTYPE_STDERR: fprintf (stderr, _("libshishi: warning: %s\n"), out); break; default: break; } free (out); va_end (ap); } /** * shishi_verbose: * @handle: shishi handle as allocated by shishi_init(). * @format: printf style format string. * @...: printf style arguments. * * Prints a diagnostic message, composed from the arguments, * to the output stream set in @handle. The current verbosity * setting determines whether the message is actually printed, * or is suppressed due to low significance. **/ void shishi_verbose (Shishi * handle, const char *format, ...) { va_list ap; char *out; int type; if (!VERBOSE (handle)) return; va_start (ap, format); vasprintf (&out, format, ap); type = shishi_error_outputtype (handle); switch (type) { case SHISHI_OUTPUTTYPE_SYSLOG: /* If we don't have syslog, log to stderr... */ #ifdef HAVE_SYSLOG /* Which facility is optimal? */ syslog (LOG_INFO, "%s", out); break; #endif case SHISHI_OUTPUTTYPE_STDERR: fprintf (stderr, "%s\n", out); break; default: break; } free (out); va_end (ap); } shishi-1.0.3/lib/tkt.c0000644000000000000000000011521614273601533011417 00000000000000/* tkt.c --- Ticket handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_tkt { Shishi *handle; Shishi_asn1 ticket; Shishi_asn1 kdcrep; Shishi_asn1 enckdcreppart; Shishi_asn1 encticketpart; Shishi_key *key; }; /** * shishi_tkt: * @handle: shishi handle as allocated by shishi_init(). * @tkt: output variable with newly allocated ticket. * * Create a new ticket handle. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt (Shishi * handle, Shishi_tkt ** tkt) { Shishi_tkt *t; int res; t = xcalloc (1, sizeof (*t)); t->handle = handle; t->ticket = shishi_ticket (handle); if (t->ticket == NULL) { shishi_error_printf (handle, "Could not create Ticket: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } /* XXX what about tgs's? */ t->enckdcreppart = shishi_encasreppart (handle); if (t->enckdcreppart == NULL) { shishi_error_printf (handle, "Could not create EncKDCRepPart: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } t->encticketpart = shishi_encticketpart (handle); if (t->encticketpart == NULL) { shishi_error_printf (handle, "Could not create EncTicketPart: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } res = shishi_encticketpart_transited_set (handle, t->encticketpart, SHISHI_TR_DOMAIN_X500_COMPRESS, "", 0); if (res != SHISHI_OK) return res; res = shishi_encticketpart_authtime_set (handle, t->encticketpart, shishi_generalize_time (handle, time (NULL))); if (res != SHISHI_OK) return res; res = shishi_encticketpart_endtime_set (handle, t->encticketpart, shishi_generalize_time (handle, time (NULL) + 1000)); if (res != SHISHI_OK) return res; t->kdcrep = shishi_asrep (handle); if (t->kdcrep == NULL) { shishi_error_printf (handle, "Could not create AS-REP: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } /* XXX We don't allocate t->key here, because shishi_tkt_key() relies on it being NULL. Possibly, we should allocate it here instead, and simplify shishi_tkt_key(). */ *tkt = t; return SHISHI_OK; } /** * shishi_tkt2: * @handle: shishi handle as allocated by shishi_init(). * @ticket: input variable with ticket. * @enckdcreppart: input variable with auxiliary ticket information. * @kdcrep: input variable with KDC-REP ticket information. * * Create a new ticket handle. * * Return value: Returns new ticket handle, or %NULL on error. **/ Shishi_tkt * shishi_tkt2 (Shishi * handle, Shishi_asn1 ticket, Shishi_asn1 enckdcreppart, Shishi_asn1 kdcrep) { Shishi_tkt *tkt; tkt = xcalloc (1, sizeof (*tkt)); tkt->handle = handle; tkt->ticket = ticket; tkt->enckdcreppart = enckdcreppart; tkt->kdcrep = kdcrep; return tkt; } /** * shishi_tkt_done: * @tkt: input variable with ticket info. * * Deallocate resources associated with ticket. The ticket must not * be used again after this call. **/ void shishi_tkt_done (Shishi_tkt * tkt) { if (tkt->key) shishi_key_done (tkt->key); free (tkt); } int shishi_tkt_build (Shishi_tkt * tkt, Shishi_key * key) { int res; res = shishi_ticket_add_enc_part (tkt->handle, tkt->ticket, key, tkt->encticketpart); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_tkt_ticket: * @tkt: input variable with ticket info. * * Get ASN.1 Ticket structure from ticket. * * Return value: Returns actual ticket. **/ Shishi_asn1 shishi_tkt_ticket (Shishi_tkt * tkt) { return tkt->ticket; } /** * shishi_tkt_ticket_set: * @tkt: input variable with ticket info. * @ticket: ASN.1 Ticket to store in ticket. * * Set the ASN.1 Ticket in the Ticket. **/ void shishi_tkt_ticket_set (Shishi_tkt * tkt, Shishi_asn1 ticket) { if (tkt->ticket) shishi_asn1_done (tkt->handle, tkt->ticket); tkt->ticket = ticket; } /** * shishi_tkt_enckdcreppart: * @tkt: input variable with ticket info. * * Get ASN.1 EncKDCRepPart structure from ticket. * * Return value: Returns auxiliary ticket information. **/ Shishi_asn1 shishi_tkt_enckdcreppart (Shishi_tkt * tkt) { return tkt->enckdcreppart; } /** * shishi_tkt_enckdcreppart_set: * @tkt: structure that holds information about Ticket exchange * @enckdcreppart: EncKDCRepPart to store in Ticket. * * Set the EncKDCRepPart in the Ticket. **/ void shishi_tkt_enckdcreppart_set (Shishi_tkt * tkt, Shishi_asn1 enckdcreppart) { if (tkt->enckdcreppart) shishi_asn1_done (tkt->handle, tkt->enckdcreppart); tkt->enckdcreppart = enckdcreppart; } /** * shishi_tkt_kdcrep: * @tkt: input variable with ticket info. * * Get ASN.1 KDCRep structure from ticket. * * Return value: Returns KDC-REP information. **/ Shishi_asn1 shishi_tkt_kdcrep (Shishi_tkt * tkt) { return tkt->kdcrep; } /** * shishi_tkt_encticketpart: * @tkt: input variable with ticket info. * * Get ASN.1 EncTicketPart structure from ticket. * * Return value: Returns EncTicketPart information. **/ Shishi_asn1 shishi_tkt_encticketpart (Shishi_tkt * tkt) { return tkt->encticketpart; } /** * shishi_tkt_encticketpart_set: * @tkt: input variable with ticket info. * @encticketpart: encticketpart to store in ticket. * * Set the EncTicketPart in the Ticket. **/ void shishi_tkt_encticketpart_set (Shishi_tkt * tkt, Shishi_asn1 encticketpart) { if (tkt->encticketpart) shishi_asn1_done (tkt->handle, tkt->encticketpart); tkt->encticketpart = encticketpart; } /** * shishi_tkt_key: * @tkt: input variable with ticket info. * * Get key used in ticket, by looking first in EncKDCRepPart and then * in EncTicketPart. If key is already populated, it is not extracted * again. * * Return value: Returns key extracted from EncKDCRepPart or * EncTicketPart. **/ Shishi_key * shishi_tkt_key (Shishi_tkt * tkt) { int rc; /* XXX We probably shouldn't extract the keys here. Where is this extraction actually needed? */ if (!tkt->key && tkt->enckdcreppart) { rc = shishi_enckdcreppart_get_key (tkt->handle, tkt->enckdcreppart, &tkt->key); if (rc != SHISHI_OK) return NULL; } else if (!tkt->key && tkt->encticketpart) { rc = shishi_encticketpart_get_key (tkt->handle, tkt->encticketpart, &tkt->key); if (rc != SHISHI_OK) return NULL; } return tkt->key; } /** * shishi_tkt_key_set: * @tkt: input variable with ticket info. * @key: key to store in ticket. * * Set the key in the EncTicketPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_key_set (Shishi_tkt * tkt, Shishi_key * key) { int res; res = shishi_encticketpart_key_set (tkt->handle, tkt->encticketpart, key); if (res != SHISHI_OK) return res; res = shishi_enckdcreppart_key_set (tkt->handle, tkt->enckdcreppart, key); if (res != SHISHI_OK) return res; if (!tkt->key) { res = shishi_key (tkt->handle, &tkt->key); if (res != SHISHI_OK) return res; } shishi_key_copy (tkt->key, key); return SHISHI_OK; } int shishi_tkt_clientrealm_set (Shishi_tkt * tkt, const char *realm, const char *client) { int res; res = shishi_encticketpart_crealm_set (tkt->handle, tkt->encticketpart, realm); if (res != SHISHI_OK) return res; res = shishi_encticketpart_cname_set (tkt->handle, tkt->encticketpart, SHISHI_NT_UNKNOWN, client); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_tkt_serverrealm_set (Shishi_tkt * tkt, const char *realm, const char *server) { int res; res = shishi_ticket_srealmserver_set (tkt->handle, tkt->ticket, realm, server); if (res != SHISHI_OK) return res; res = shishi_enckdcreppart_srealmserver_set (tkt->handle, tkt->enckdcreppart, realm, server); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_tkt_client: * @tkt: input variable with ticket info. * @client: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Represent client principal name in Ticket KDC-REP as * zero-terminated string. The string is allocate by this function, * and it is the responsibility of the caller to deallocate it. Note * that the output length @clientlen does not include the terminating * zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_client (Shishi_tkt * tkt, char **client, size_t *clientlen) { return shishi_principal_name (tkt->handle, tkt->kdcrep, "cname", client, clientlen); } /** * shishi_tkt_client_p: * @tkt: input variable with ticket info. * @client: client name of ticket. * * Determine if ticket is for specified client. * * Return value: Returns non-0 iff ticket is for specified client. **/ int shishi_tkt_client_p (Shishi_tkt * tkt, const char *client) { char *buf; size_t buflen; int res; res = shishi_tkt_client (tkt, &buf, &buflen); if (res != SHISHI_OK) return 0; res = strcmp (client, buf) == 0; free (buf); return res; } /** * shishi_tkt_clientrealm: * @tkt: input variable with ticket info. * @client: pointer to newly allocated zero terminated string containing * principal name and realm. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Convert cname and realm fields from AS-REQ to printable principal * name format. The string is allocate by this function, and it is * the responsibility of the caller to deallocate it. Note that the * output length @clientlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_clientrealm (Shishi_tkt * tkt, char **client, size_t *clientlen) { return shishi_principal_name_realm (tkt->handle, tkt->kdcrep, "cname", tkt->kdcrep, "crealm", client, clientlen); } /** * shishi_tkt_clientrealm_p: * @tkt: input variable with ticket info. * @client: principal name (client name and realm) of ticket. * * Determine if ticket is for specified client principal. * * Return value: Returns non-0 iff ticket is for specified client principal. **/ int shishi_tkt_clientrealm_p (Shishi_tkt * tkt, const char *client) { char *buf; size_t buflen; int res; res = shishi_tkt_clientrealm (tkt, &buf, &buflen); if (res != SHISHI_OK) return 0; res = strcmp (client, buf) == 0; free (buf); return res; } /** * shishi_tkt_realm: * @tkt: input variable with ticket info. * @realm: pointer to newly allocated character array with realm name. * @realmlen: length of newly allocated character array with realm name. * * Extract realm of server in ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_realm (Shishi_tkt * tkt, char **realm, size_t *realmlen) { return shishi_ticket_realm_get (tkt->handle, tkt->ticket, realm, realmlen); } /** * shishi_tkt_server: * @tkt: input variable with ticket info. * @server: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @serverlen). * @serverlen: pointer to length of @server on output, excluding terminating * zero. May be %NULL (to only populate @server). * * Represent server principal name in Ticket as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @serverlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_server (Shishi_tkt * tkt, char **server, size_t *serverlen) { return shishi_ticket_server (tkt->handle, tkt->ticket, server, serverlen); } /** * shishi_tkt_server_p: * @tkt: input variable with ticket info. * @server: server name of ticket. * * Determine if ticket is for specified server. * * Return value: Returns non-0 iff ticket is for specified server. **/ int shishi_tkt_server_p (Shishi_tkt * tkt, const char *server) { char *buf; int res; res = shishi_tkt_server (tkt, &buf, NULL); if (res != SHISHI_OK) return 0; res = strcmp (server, buf) == 0; free (buf); return res; } /** * shishi_tkt_flags: * @tkt: input variable with ticket info. * @flags: pointer to output integer with flags. * * Extract flags in ticket (i.e., EncKDCRepPart). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_flags (Shishi_tkt * tkt, uint32_t * flags) { return shishi_asn1_read_bitstring (tkt->handle, tkt->enckdcreppart, "flags", flags); } /** * shishi_tkt_flags_set: * @tkt: input variable with ticket info. * @flags: integer with flags to store in ticket. * * Set flags in ticket, i.e., both EncTicketPart and EncKDCRepPart. * Note that this reset any already existing flags. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_flags_set (Shishi_tkt * tkt, uint32_t flags) { int res; res = shishi_encticketpart_flags_set (tkt->handle, tkt->encticketpart, flags); if (res != SHISHI_OK) return res; res = shishi_enckdcreppart_flags_set (tkt->handle, tkt->enckdcreppart, flags); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_tkt_flags_add: * @tkt: input variable with ticket info. * @flag: integer with flags to store in ticket. * * Add ticket flags to Ticket and EncKDCRepPart. This preserves all * existing options. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_flags_add (Shishi_tkt * tkt, uint32_t flag) { uint32_t flags; int res; res = shishi_tkt_flags (tkt, &flags); if (res != SHISHI_OK) return res; flags |= flag; res = shishi_tkt_flags_set (tkt, flags); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_tkt_forwardable_p: * @tkt: input variable with ticket info. * * Determine if ticket is forwardable. * * The FORWARDABLE flag in a ticket is normally only interpreted by * the ticket-granting service. It can be ignored by application * servers. The FORWARDABLE flag has an interpretation similar to * that of the PROXIABLE flag, except ticket-granting tickets may also * be issued with different network addresses. This flag is reset by * default, but users MAY request that it be set by setting the * FORWARDABLE option in the AS request when they request their * initial ticket-granting ticket. * * Return value: Returns non-0 iff forwardable flag is set in ticket. **/ int shishi_tkt_forwardable_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_FORWARDABLE; } /** * shishi_tkt_forwarded_p: * @tkt: input variable with ticket info. * * Determine if ticket is forwarded. * * The FORWARDED flag is set by the TGS when a client presents a * ticket with the FORWARDABLE flag set and requests a forwarded * ticket by specifying the FORWARDED KDC option and supplying a set * of addresses for the new ticket. It is also set in all tickets * issued based on tickets with the FORWARDED flag set. Application * servers may choose to process FORWARDED tickets differently than * non-FORWARDED tickets. * * Return value: Returns non-0 iff forwarded flag is set in ticket. **/ int shishi_tkt_forwarded_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_FORWARDED; } /** * shishi_tkt_proxiable_p: * @tkt: input variable with ticket info. * * Determine if ticket is proxiable. * * The PROXIABLE flag in a ticket is normally only interpreted by the * ticket-granting service. It can be ignored by application servers. * When set, this flag tells the ticket-granting server that it is OK * to issue a new ticket (but not a ticket-granting ticket) with a * different network address based on this ticket. This flag is set if * requested by the client on initial authentication. By default, the * client will request that it be set when requesting a * ticket-granting ticket, and reset when requesting any other ticket. * * Return value: Returns non-0 iff proxiable flag is set in ticket. **/ int shishi_tkt_proxiable_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_PROXIABLE; } /** * shishi_tkt_proxy_p: * @tkt: input variable with ticket info. * * Determine if ticket is proxy ticket. * * The PROXY flag is set in a ticket by the TGS when it issues a proxy * ticket. Application servers MAY check this flag and at their * option they MAY require additional authentication from the agent * presenting the proxy in order to provide an audit trail. * * Return value: Returns non-0 iff proxy flag is set in ticket. **/ int shishi_tkt_proxy_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_PROXY; } /** * shishi_tkt_may_postdate_p: * @tkt: input variable with ticket info. * * Determine if ticket may be used to grant postdated tickets. * * The MAY-POSTDATE flag in a ticket is normally only interpreted by * the ticket-granting service. It can be ignored by application * servers. This flag MUST be set in a ticket-granting ticket in * order to issue a postdated ticket based on the presented ticket. It * is reset by default; it MAY be requested by a client by setting the * ALLOW- POSTDATE option in the KRB_AS_REQ message. This flag does * not allow a client to obtain a postdated ticket-granting ticket; * postdated ticket-granting tickets can only by obtained by * requesting the postdating in the KRB_AS_REQ message. The life * (endtime-starttime) of a postdated ticket will be the remaining * life of the ticket-granting ticket at the time of the request, * unless the RENEWABLE option is also set, in which case it can be * the full life (endtime-starttime) of the ticket-granting * ticket. The KDC MAY limit how far in the future a ticket may be * postdated. * * Return value: Returns non-0 iff may-postdate flag is set in ticket. **/ int shishi_tkt_may_postdate_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_MAY_POSTDATE; } /** * shishi_tkt_postdated_p: * @tkt: input variable with ticket info. * * Determine if ticket is postdated. * * The POSTDATED flag indicates that a ticket has been postdated. The * application server can check the authtime field in the ticket to * see when the original authentication occurred. Some services MAY * choose to reject postdated tickets, or they may only accept them * within a certain period after the original authentication. When the * KDC issues a POSTDATED ticket, it will also be marked as INVALID, * so that the application client MUST present the ticket to the KDC * to be validated before use. * * Return value: Returns non-0 iff postdated flag is set in ticket. **/ int shishi_tkt_postdated_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_POSTDATED; } /** * shishi_tkt_invalid_p: * @tkt: input variable with ticket info. * * Determine if ticket is invalid. * * The INVALID flag indicates that a ticket is invalid. Application * servers MUST reject tickets which have this flag set. A postdated * ticket will be issued in this form. Invalid tickets MUST be * validated by the KDC before use, by presenting them to the KDC in a * TGS request with the VALIDATE option specified. The KDC will only * validate tickets after their starttime has passed. The validation * is required so that postdated tickets which have been stolen before * their starttime can be rendered permanently invalid (through a * hot-list mechanism). * * Return value: Returns non-0 iff invalid flag is set in ticket. **/ int shishi_tkt_invalid_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_INVALID; } /** * shishi_tkt_renewable_p: * @tkt: input variable with ticket info. * * Determine if ticket is renewable. * * The RENEWABLE flag in a ticket is normally only interpreted by the * ticket-granting service (discussed below in section 3.3). It can * usually be ignored by application servers. However, some * particularly careful application servers MAY disallow renewable * tickets. * * Return value: Returns non-0 iff renewable flag is set in ticket. **/ int shishi_tkt_renewable_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_RENEWABLE; } /** * shishi_tkt_initial_p: * @tkt: input variable with ticket info. * * Determine if ticket was issued using AS exchange. * * The INITIAL flag indicates that a ticket was issued using the AS * protocol, rather than issued based on a ticket-granting ticket. * Application servers that want to require the demonstrated knowledge * of a client's secret key (e.g. a password-changing program) can * insist that this flag be set in any tickets they accept, and thus * be assured that the client's key was recently presented to the * application client. * * Return value: Returns non-0 iff initial flag is set in ticket. **/ int shishi_tkt_initial_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_INITIAL; } /** * shishi_tkt_pre_authent_p: * @tkt: input variable with ticket info. * * Determine if ticket was pre-authenticated. * * The PRE-AUTHENT and HW-AUTHENT flags provide additional information * about the initial authentication, regardless of whether the current * ticket was issued directly (in which case INITIAL will also be set) * or issued on the basis of a ticket-granting ticket (in which case * the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags * are carried forward from the ticket-granting ticket). * * Return value: Returns non-0 iff pre-authent flag is set in ticket. **/ int shishi_tkt_pre_authent_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_PRE_AUTHENT; } /** * shishi_tkt_hw_authent_p: * @tkt: input variable with ticket info. * * Determine if ticket is authenticated using a hardware token. * * The PRE-AUTHENT and HW-AUTHENT flags provide additional information * about the initial authentication, regardless of whether the current * ticket was issued directly (in which case INITIAL will also be set) * or issued on the basis of a ticket-granting ticket (in which case * the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags * are carried forward from the ticket-granting ticket). * * Return value: Returns non-0 iff hw-authent flag is set in ticket. **/ int shishi_tkt_hw_authent_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_HW_AUTHENT; } /** * shishi_tkt_transited_policy_checked_p: * @tkt: input variable with ticket info. * * Determine if ticket has been policy checked for transit. * * The application server is ultimately responsible for accepting or * rejecting authentication and SHOULD check that only suitably * trusted KDCs are relied upon to authenticate a principal. The * transited field in the ticket identifies which realms (and thus * which KDCs) were involved in the authentication process and an * application server would normally check this field. If any of these * are untrusted to authenticate the indicated client principal * (probably determined by a realm-based policy), the authentication * attempt MUST be rejected. The presence of trusted KDCs in this list * does not provide any guarantee; an untrusted KDC may have * fabricated the list. * * While the end server ultimately decides whether authentication is * valid, the KDC for the end server's realm MAY apply a realm * specific policy for validating the transited field and accepting * credentials for cross-realm authentication. When the KDC applies * such checks and accepts such cross-realm authentication it will set * the TRANSITED-POLICY-CHECKED flag in the service tickets it issues * based on the cross-realm TGT. A client MAY request that the KDCs * not check the transited field by setting the * DISABLE-TRANSITED-CHECK flag. KDCs are encouraged but not required * to honor this flag. * * Application servers MUST either do the transited-realm checks * themselves, or reject cross-realm tickets without TRANSITED-POLICY- * CHECKED set. * * Return value: Returns non-0 iff transited-policy-checked flag is * set in ticket. **/ int shishi_tkt_transited_policy_checked_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_TRANSITED_POLICY_CHECKED; } /** * shishi_tkt_ok_as_delegate_p: * @tkt: input variable with ticket info. * * Determine if ticket is ok as delegated ticket. * * The copy of the ticket flags in the encrypted part of the KDC reply * may have the OK-AS-DELEGATE flag set to indicates to the client * that the server specified in the ticket has been determined by * policy of the realm to be a suitable recipient of delegation. A * client can use the presence of this flag to help it make a decision * whether to delegate credentials (either grant a proxy or a * forwarded ticket- granting ticket) to this server. It is * acceptable to ignore the value of this flag. When setting this * flag, an administrator should consider the security and placement * of the server on which the service will run, as well as whether the * service requires the use of delegated credentials. * * Return value: Returns non-0 iff ok-as-delegate flag is set in ticket. **/ int shishi_tkt_ok_as_delegate_p (Shishi_tkt * tkt) { uint32_t flags = 0; shishi_tkt_flags (tkt, &flags); return flags & SHISHI_TICKETFLAGS_OK_AS_DELEGATE; } /** * shishi_tkt_keytype: * @tkt: input variable with ticket info. * @etype: pointer to encryption type that is set, see Shishi_etype. * * Extract encryption type of key in ticket (really EncKDCRepPart). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tkt_keytype (Shishi_tkt * tkt, int32_t * etype) { return shishi_asn1_read_int32 (tkt->handle, tkt->enckdcreppart, "key.keytype", etype); } /** * shishi_tkt_keytype_fast: * @tkt: input variable with ticket info. * * Extract encryption type of key in ticket (really EncKDCRepPart). * * Return value: Returns encryption type of session key in ticket * (really EncKDCRepPart), or -1 on error. **/ int32_t shishi_tkt_keytype_fast (Shishi_tkt * tkt) { int32_t etype = -1; int res; res = shishi_asn1_read_int32 (tkt->handle, tkt->enckdcreppart, "key.keytype", &etype); if (res != SHISHI_OK) return -1; return etype; } /** * shishi_tkt_keytype_p: * @tkt: input variable with ticket info. * @etype: encryption type, see Shishi_etype. * * Determine if key in ticket (really EncKDCRepPart) is of specified * key type (really encryption type). * * Return value: Returns non-0 iff key in ticket is of specified * encryption type. **/ int shishi_tkt_keytype_p (Shishi_tkt * tkt, int32_t etype) { int32_t tktetype; int rc; rc = shishi_asn1_read_int32 (tkt->handle, tkt->enckdcreppart, "key.keytype", &tktetype); if (rc != SHISHI_OK) return 0; return etype == tktetype; } int shishi_tkt_lastreq (Shishi_tkt * tkt, char **lrtime, size_t *lrtimelen, int32_t lrtype) { char *format; int32_t tmplrtype; size_t i, n; int res; res = shishi_asn1_number_of_elements (tkt->handle, tkt->enckdcreppart, "last-req", &n); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { asprintf (&format, "last-req.?%zu.lr-type", i); res = shishi_asn1_read_int32 (tkt->handle, tkt->enckdcreppart, format, &tmplrtype); free (format); if (res != SHISHI_OK) return res; if (lrtype == tmplrtype) { asprintf (&format, "last-req.?%zu.lr-value", i); res = shishi_asn1_read (tkt->handle, tkt->enckdcreppart, format, lrtime, lrtimelen); free (format); if (res != SHISHI_OK) return res; return SHISHI_OK; } } return !SHISHI_OK; } /** * shishi_tkt_lastreqc: * @tkt: input variable with ticket info. * @lrtype: lastreq type to extract, see Shishi_lrtype. E.g., * SHISHI_LRTYPE_LAST_REQUEST. * * Extract C time corresponding to given lastreq type field in the * ticket. * * Return value: Returns C time interpretation of the specified * lastreq field, or (time_t) -1. **/ time_t shishi_tkt_lastreqc (Shishi_tkt * tkt, Shishi_lrtype lrtype) { char *lrtime; size_t lrtimelen; time_t t = (time_t) - 1; int res; res = shishi_tkt_lastreq (tkt, &lrtime, &lrtimelen, lrtype); if (res != SHISHI_OK) return t; if (lrtimelen == SHISHI_GENERALIZEDTIME_LENGTH) t = shishi_generalize_ctime (tkt->handle, lrtime); free (lrtime); return t; } int shishi_tkt_authtime (Shishi_tkt * tkt, char **authtime, size_t *authtimelen) { return shishi_asn1_read (tkt->handle, tkt->enckdcreppart, "authtime", authtime, authtimelen); } /** * shishi_tkt_authctime: * @tkt: input variable with ticket info. * * Extract C time corresponding to the authtime field. The field * holds the time when the original authentication took place that * later resulted in this ticket. * * Return value: Returns C time interpretation of the endtime in ticket. **/ time_t shishi_tkt_authctime (Shishi_tkt * tkt) { char *authtime; size_t authtimelen; time_t t = (time_t) - 1; int res; res = shishi_tkt_authtime (tkt, &authtime, &authtimelen); if (res != SHISHI_OK) return t; if (authtimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */ t = shishi_generalize_ctime (tkt->handle, authtime); free (authtime); return t; } int shishi_tkt_starttime (Shishi_tkt * tkt, char **starttime, size_t *starttimelen) { return shishi_asn1_read_optional (tkt->handle, tkt->enckdcreppart, "starttime", starttime, starttimelen); } /** * shishi_tkt_startctime: * @tkt: input variable with ticket info. * * Extract C time corresponding to the starttime field. The field * holds the time where the ticket start to be valid (typically in the * past). * * Return value: Returns C time interpretation of the endtime in ticket. **/ time_t shishi_tkt_startctime (Shishi_tkt * tkt) { char *starttime; size_t starttimelen; time_t t = (time_t) - 1; int res; res = shishi_tkt_starttime (tkt, &starttime, &starttimelen); if (res != SHISHI_OK || starttimelen == 0) return t; if (starttimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */ t = shishi_generalize_ctime (tkt->handle, starttime); free (starttime); return t; } int shishi_tkt_endtime (Shishi_tkt * tkt, char **endtime, size_t *endtimelen) { return shishi_asn1_read (tkt->handle, tkt->enckdcreppart, "endtime", endtime, endtimelen); } /** * shishi_tkt_endctime: * @tkt: input variable with ticket info. * * Extract C time corresponding to the endtime field. The field holds * the time where the ticket stop being valid. * * Return value: Returns C time interpretation of the endtime in ticket. **/ time_t shishi_tkt_endctime (Shishi_tkt * tkt) { char *endtime; size_t endtimelen; time_t t = (time_t) - 1; int res; res = shishi_tkt_endtime (tkt, &endtime, &endtimelen); if (res != SHISHI_OK) return t; if (endtimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */ t = shishi_generalize_ctime (tkt->handle, endtime); free (endtime); return t; } int shishi_tkt_renew_till (Shishi_tkt * tkt, char **renewtill, size_t *renewtilllen) { return shishi_asn1_read_optional (tkt->handle, tkt->enckdcreppart, "renew-till", renewtill, renewtilllen); } /** * shishi_tkt_renew_tillc: * @tkt: input variable with ticket info. * * Extract C time corresponding to the renew-till field. The field * holds the time where the ticket stop being valid for renewal. * * Return value: Returns C time interpretation of the renew-till in ticket. **/ time_t shishi_tkt_renew_tillc (Shishi_tkt * tkt) { char *renewtill; size_t renewtilllen; time_t t = (time_t) - 1; int res; res = shishi_tkt_renew_till (tkt, &renewtill, &renewtilllen); if (res != SHISHI_OK || renewtilllen == 0) return t; if (renewtilllen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */ t = shishi_generalize_ctime (tkt->handle, renewtill); free (renewtill); return t; } /** * shishi_tkt_valid_at_time_p: * @tkt: input variable with ticket info. * @now: time to check for. * * Determine if ticket is valid at a specific point in time. * * Return value: Returns non-0 iff ticket is valid (not expired and * after starttime) at specified time. **/ int shishi_tkt_valid_at_time_p (Shishi_tkt * tkt, time_t now) { time_t starttime, endtime; starttime = shishi_tkt_startctime (tkt); if (starttime == (time_t) - 1) starttime = shishi_tkt_authctime (tkt); endtime = shishi_tkt_endctime (tkt); return starttime <= now && now <= endtime; } /** * shishi_tkt_valid_now_p: * @tkt: input variable with ticket info. * * Determine if ticket is valid now. * * Return value: Returns 0 iff ticket is invalid (expired or not yet * valid). **/ int shishi_tkt_valid_now_p (Shishi_tkt * tkt) { return shishi_tkt_valid_at_time_p (tkt, time (NULL)); } /** * shishi_tkt_expired_p: * @tkt: input variable with ticket info. * * Determine if ticket has expired (i.e., endtime is in the past). * * Return value: Returns 0 iff ticket has expired. **/ int shishi_tkt_expired_p (Shishi_tkt * tkt) { time_t endtime = shishi_tkt_endctime (tkt); time_t now = time (NULL); return endtime < now; } /** * shishi_tkt_lastreq_pretty_print: * @tkt: input variable with ticket info. * @fh: file handle open for writing. * * Print a human readable representation of the various lastreq fields * in the ticket (really EncKDCRepPart). **/ void shishi_tkt_lastreq_pretty_print (Shishi_tkt * tkt, FILE * fh) { time_t t; t = shishi_tkt_lastreqc (tkt, SHISHI_LRTYPE_LAST_INITIAL_TGT_REQUEST); if (t != (time_t) - 1) fprintf (fh, _("Time of last initial request for a TGT:\t%s"), ctime (&t)); t = shishi_tkt_lastreqc (tkt, SHISHI_LRTYPE_LAST_INITIAL_REQUEST); if (t != (time_t) - 1) fprintf (fh, "Time of last initial request:\t%s", ctime (&t)); t = shishi_tkt_lastreqc (tkt, SHISHI_LRTYPE_NEWEST_TGT_ISSUE); if (t != (time_t) - 1) fprintf (fh, "Time of issue for the newest ticket-granting ticket used:\t%s", ctime (&t)); t = shishi_tkt_lastreqc (tkt, SHISHI_LRTYPE_LAST_RENEWAL); if (t != (time_t) - 1) fprintf (fh, "Time of the last renewal:\t%s", ctime (&t)); t = shishi_tkt_lastreqc (tkt, SHISHI_LRTYPE_LAST_REQUEST); if (t != (time_t) - 1) fprintf (fh, "Time of last request:\t%s", ctime (&t)); } /** * shishi_tkt_pretty_print: * @tkt: input variable with ticket info. * @fh: file handle open for writing. * * Print a human readable representation of a ticket to file handle. **/ void shishi_tkt_pretty_print (Shishi_tkt * tkt, FILE * fh) { char *buf; char *p; size_t buflen; int keytype, etype; uint32_t flags; int res; time_t t; time_t now = time (NULL); res = shishi_tkt_clientrealm (tkt, &buf, &buflen); if (res == SHISHI_OK) { fprintf (fh, "%s:\n", buf); free (buf); } else fprintf (fh, ":\n"); t = shishi_tkt_authctime (tkt); fprintf (fh, _("Authtime:\t%s"), ctime (&t)); t = shishi_tkt_startctime (tkt); if (t != (time_t) - 1) { p = ctime (&t); p[strlen (p) - 1] = '\0'; fprintf (fh, _("Starttime:\t%s"), p); if (t > now) fprintf (fh, " NOT YET VALID"); fprintf (fh, "\n"); } t = shishi_tkt_endctime (tkt); if (t != (time_t) - 1) { p = ctime (&t); p[strlen (p) - 1] = '\0'; fprintf (fh, _("Endtime:\t%s"), p); if (t < now) fprintf (fh, " EXPIRED"); fprintf (fh, "\n"); } t = shishi_tkt_renew_tillc (tkt); if (t != (time_t) - 1) fprintf (fh, _("Renewable till:\t%s"), ctime (&t)); res = shishi_tkt_server (tkt, &buf, NULL); if (res == SHISHI_OK) { res = shishi_ticket_get_enc_part_etype (tkt->handle, tkt->ticket, &keytype); if (res == SHISHI_OK) fprintf (fh, _("Server:\t\t%s key %s (%d)\n"), buf, shishi_cipher_name (keytype), keytype); free (buf); } res = shishi_tkt_keytype (tkt, &keytype); if (res == SHISHI_OK) res = shishi_kdcrep_get_enc_part_etype (tkt->handle, tkt->kdcrep, &etype); if (res == SHISHI_OK) fprintf (fh, _("Ticket key:\t%s (%d) protected by %s (%d)\n"), shishi_cipher_name (keytype), keytype, shishi_cipher_name (etype), etype); res = shishi_tkt_flags (tkt, &flags); if (res == SHISHI_OK && flags) { fprintf (fh, _("Ticket flags:\t")); if (shishi_tkt_forwardable_p (tkt)) fprintf (fh, "FORWARDABLE "); if (shishi_tkt_forwarded_p (tkt)) fprintf (fh, "FORWARDED "); if (shishi_tkt_proxiable_p (tkt)) fprintf (fh, "PROXIABLE "); if (shishi_tkt_proxy_p (tkt)) fprintf (fh, "PROXY "); if (shishi_tkt_may_postdate_p (tkt)) fprintf (fh, "MAYPOSTDATE "); if (shishi_tkt_postdated_p (tkt)) fprintf (fh, "POSTDATED "); if (shishi_tkt_invalid_p (tkt)) fprintf (fh, "INVALID "); if (shishi_tkt_renewable_p (tkt)) fprintf (fh, "RENEWABLE "); if (shishi_tkt_initial_p (tkt)) fprintf (fh, "INITIAL "); if (shishi_tkt_pre_authent_p (tkt)) fprintf (fh, "PREAUTHENT "); if (shishi_tkt_hw_authent_p (tkt)) fprintf (fh, "HWAUTHENT "); if (shishi_tkt_transited_policy_checked_p (tkt)) fprintf (fh, "TRANSITEDPOLICYCHECKED "); if (shishi_tkt_ok_as_delegate_p (tkt)) fprintf (fh, "OKASDELEGATE "); fprintf (fh, "(%" PRIu32 ")\n", flags); } } int shishi_tkt_decrypt (Shishi_tkt * tkt, Shishi_key * key) { int rc; Shishi_asn1 encticketpart; rc = shishi_ticket_decrypt (tkt->handle, tkt->ticket, key, &encticketpart); if (rc != SHISHI_OK) return rc; tkt->encticketpart = encticketpart; return SHISHI_OK; } shishi-1.0.3/lib/crypto.c0000644000000000000000000016351514273601533012142 00000000000000/* crypto.c --- Crypto functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "crypto.h" /* Get _shishi_escapeprint, etc. */ #include "utils.h" static int gcd (int a, int b) { if (b == 0) return a; else return gcd (b, a % b); } static int lcm (int a, int b) { return a * b / gcd (a, b); } static void rot13 (Shishi * handle, char *in, char *out, int len) { if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; rot 13 in:\n"); _shishi_escapeprint (in, len); _shishi_hexprint (in, len); _shishi_binprint (in, len); } if (len == 1) { out[0] = ((in[0] >> 5) & 0x01) | ((in[0] >> 5) & 0x02) | ((in[0] >> 5) & 0x04) | ((in[0] << 3) & 0x08) | ((in[0] << 3) & 0x10) | ((in[0] << 3) & 0x20) | ((in[0] << 3) & 0x40) | ((in[0] << 3) & 0x80); } else if (len > 1) { char nexttolast, last; int i; nexttolast = in[len - 2]; last = in[len - 1]; for (i = len * 8 - 1; i >= 13; i--) { int pos = i / 8; char mask = ~(1 << (7 - i % 8)); int pos2 = (i - 13) / 8; char mask2 = (1 << (7 - (i - 13) % 8)); out[pos] = (out[pos] & mask) | (((in[pos2] & mask2) ? 0xFF : 0x00) & ~mask); } out[0] = ((nexttolast & 0xFF) << 3) | ((last & 0xFF) >> 5); out[1] = (in[1] & ~(0xFF & (0xFF << 3))) | (0xFF & (last << 3)); } if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; rot13 out:\n"); _shishi_escapeprint (out, len); _shishi_hexprint (out, len); _shishi_binprint (out, len); } } static void ocadd (char *add1, char *add2, char *sum, int len) { int i; int carry = 0; for (i = len - 1; i >= 0; i--) { int tmpsum = (unsigned char) add1[i] + (unsigned char) add2[i]; sum[i] = (tmpsum + carry) & 0xFF; if (tmpsum + carry > 0xFF) carry = 1; else carry = 0; } if (carry) { int done = 0; for (i = len - 1; i >= 0; i--) if ((unsigned char) sum[i] != 0xFF) { sum[i]++; done = 1; break; } if (!done) memset (sum, 0, len); } } static int simplified_hmac (Shishi * handle, Shishi_key * key, const char *in, size_t inlen, char **outhash, size_t *outhashlen) { *outhashlen = shishi_checksum_cksumlen (shishi_cipher_defaultcksumtype (shishi_key_type (key))); return shishi_hmac_sha1 (handle, shishi_key_value (key), shishi_key_length (key), in, inlen, outhash); } static int simplified_hmac_verify (Shishi * handle, Shishi_key * key, const char *in, size_t inlen, const char *hmac, size_t hmaclen) { char *hash; size_t hlen; int same; int res; res = simplified_hmac (handle, key, in, inlen, &hash, &hlen); if (res != SHISHI_OK || hash == NULL) return res; if (VERBOSECRYPTO (handle)) { printf ("\t ;; HMAC verify:\n"); _shishi_escapeprint (hash, hlen); _shishi_hexprint (hash, hlen); _shishi_binprint (hash, hlen); _shishi_escapeprint (hmac, hmaclen); _shishi_hexprint (hmac, hmaclen); _shishi_binprint (hmac, hmaclen); } same = (hlen == hmaclen) && memcmp (hash, hmac, hmaclen) == 0; free (hash); if (!same) { shishi_error_printf (handle, "HMAC verify failed"); return SHISHI_CRYPTO_ERROR; } return SHISHI_OK; } int _shishi_simplified_derivekey (Shishi * handle, Shishi_key * key, int keyusage, int derivekeymode, Shishi_key ** outkey) { char prfconstant[5]; int res = SHISHI_OK; Shishi_key *derivedkey; if (VERBOSECRYPTO (handle)) { printf ("simplified_derivekey\n"); printf ("\t ;; mode %d (%s)\n", derivekeymode, derivekeymode == SHISHI_DERIVEKEYMODE_CHECKSUM ? "checksum" : derivekeymode == SHISHI_DERIVEKEYMODE_INTEGRITY ? "integrity" : derivekeymode == SHISHI_DERIVEKEYMODE_PRIVACY ? "privacy" : "base-key"); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); } res = shishi_key_from_value (handle, shishi_key_type (key), NULL, &derivedkey); if (res != SHISHI_OK) return res; *outkey = derivedkey; if (keyusage) { uint32_t tmp = htonl (keyusage); memcpy (prfconstant, &tmp, 4); if (derivekeymode == SHISHI_DERIVEKEYMODE_CHECKSUM) prfconstant[4] = '\x99'; else if (derivekeymode == SHISHI_DERIVEKEYMODE_INTEGRITY) prfconstant[4] = '\x55'; else /* if (derivekeymode == SHISHI_DERIVEKEYMODE_PRIVACY) */ prfconstant[4] = '\xAA'; res = shishi_dk (handle, key, prfconstant, 5, derivedkey); } else { shishi_key_copy (derivedkey, key); } if (VERBOSECRYPTO (handle)) { printf ("\t ;; simplified_derivekey out (%zu):\n", shishi_key_length (derivedkey)); _shishi_hexprint (shishi_key_value (derivedkey), shishi_key_length (derivedkey)); } return res; } int _shishi_simplified_dencrypt (Shishi * handle, Shishi_key * key, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen, int decryptp) { int rc; char *pt; size_t ptlen; size_t padzerolen = 0; if ((inlen % 8) != 0) while (((inlen + padzerolen) % 8) != 0) padzerolen++; ptlen = inlen + padzerolen; if (padzerolen) { pt = xmalloc (ptlen); memcpy (pt, in, inlen); memset (pt + inlen, 0, padzerolen); } else pt = (char *) in; switch (shishi_key_type (key)) { case SHISHI_DES_CBC_CRC: case SHISHI_DES_CBC_MD4: case SHISHI_DES_CBC_MD5: case SHISHI_DES_CBC_NONE: rc = shishi_des (handle, decryptp, shishi_key_value (key), iv, ivout, pt, ptlen, out); if (ivoutlen) *ivoutlen = 8; if (outlen) *outlen = ptlen; break; case SHISHI_DES3_CBC_HMAC_SHA1_KD: case SHISHI_DES3_CBC_NONE: rc = shishi_3des (handle, decryptp, shishi_key_value (key), iv, ivout, pt, inlen + padzerolen, out); if (ivoutlen) *ivoutlen = 8; if (outlen) *outlen = ptlen; break; case SHISHI_AES128_CTS_HMAC_SHA1_96: case SHISHI_AES256_CTS_HMAC_SHA1_96: rc = shishi_aes_cts (handle, decryptp, shishi_key_value (key), shishi_key_length (key), iv, ivout, in, inlen, out); if (ivoutlen) *ivoutlen = 16; if (outlen) *outlen = inlen; break; default: rc = SHISHI_CRYPTO_ERROR; } if (padzerolen) free (pt); return rc; } int _shishi_simplified_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { int res; int padzerolen = 0; if ((shishi_key_type (key) == SHISHI_DES3_CBC_HMAC_SHA1_KD || shishi_key_type (key) == SHISHI_DES_CBC_CRC || shishi_key_type (key) == SHISHI_DES_CBC_MD4 || shishi_key_type (key) == SHISHI_DES_CBC_MD5) && (inlen % 8) != 0) while (((inlen + padzerolen) % 8) != 0) padzerolen++; if (keyusage != 0) { char *pt = NULL, *ct = NULL, *hmac = NULL; int blen = shishi_cipher_blocksize (shishi_key_type (key)); size_t ctlen, ptlen, hmaclen; Shishi_key *privacykey = NULL, *integritykey = NULL; ptlen = inlen + blen + padzerolen; pt = xmalloc (ptlen); res = shishi_randomize (handle, 0, pt, blen); if (res != SHISHI_OK) goto done; memcpy (pt + blen, in, inlen); memset (pt + blen + inlen, 0, padzerolen); res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_PRIVACY, &privacykey); if (res != SHISHI_OK) goto done; res = _shishi_simplified_dencrypt (handle, privacykey, iv, ivlen, ivout, ivoutlen, pt, ptlen, &ct, &ctlen, 0); if (res != SHISHI_OK) goto done; res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_INTEGRITY, &integritykey); if (res != SHISHI_OK) goto done; res = simplified_hmac (handle, integritykey, pt, ptlen, &hmac, &hmaclen); if (res != SHISHI_OK) goto done; *outlen = ctlen + hmaclen; *out = xmalloc (*outlen); memcpy (*out, ct, ctlen); memcpy (*out + ctlen, hmac, hmaclen); done: if (privacykey) shishi_key_done (privacykey); if (integritykey) shishi_key_done (integritykey); free (hmac); free (ct); free (pt); } else { res = _shishi_simplified_dencrypt (handle, key, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, 0); } return res; } int _shishi_simplified_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { int res; if (keyusage) { Shishi_key *privacykey = NULL, *integritykey = NULL; int blen = shishi_cipher_blocksize (shishi_key_type (key)); size_t hlen = shishi_checksum_cksumlen (shishi_cipher_defaultcksumtype (shishi_key_type (key))); res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_PRIVACY, &privacykey); if (res != SHISHI_OK) goto done; res = _shishi_simplified_dencrypt (handle, privacykey, iv, ivlen, ivout, ivoutlen, in, inlen - hlen, out, outlen, 1); if (res != SHISHI_OK) goto done; res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_INTEGRITY, &integritykey); if (res != SHISHI_OK) goto done; res = simplified_hmac_verify (handle, integritykey, *out, *outlen, in + inlen - hlen, hlen); if (res != SHISHI_OK) goto done; memmove (*out, *out + blen, *outlen - blen); *outlen = *outlen - blen; *out = xrealloc (*out, *outlen); done: if (privacykey) shishi_key_done (privacykey); if (integritykey) shishi_key_done (integritykey); } else { res = _shishi_simplified_dencrypt (handle, key, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen, 1); } return res; } int _shishi_simplified_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { Shishi_key *checksumkey; int cksumlen = shishi_checksum_cksumlen (cksumtype); int res; res = _shishi_simplified_derivekey (handle, key, keyusage, SHISHI_DERIVEKEYMODE_CHECKSUM, &checksumkey); if (res != SHISHI_OK) return res; res = simplified_hmac (handle, checksumkey, in, inlen, out, outlen); shishi_key_done (checksumkey); if (res != SHISHI_OK) return res; *outlen = cksumlen; return SHISHI_OK; } static cipherinfo *ciphers[] = { #if WITH_NULL &null_info, #endif #if WITH_DES &des_cbc_crc_info, &des_cbc_md4_info, &des_cbc_md5_info, &des_cbc_none_info, #endif #if WITH_3DES &des3_cbc_none_info, &des3_cbc_sha1_kd_info, #endif #if WITH_AES &aes128_cts_hmac_sha1_96_info, &aes256_cts_hmac_sha1_96_info, #endif #if WITH_ARCFOUR &arcfour_hmac_info, &arcfour_hmac_exp_info #endif }; /** * shishi_cipher_supported_p: * @type: encryption type, see Shishi_etype. * * Find out if cipher is supported. * * Return value: Return 0 iff cipher is unsupported. **/ int shishi_cipher_supported_p (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return 1; return 0; } /** * shishi_cipher_name: * @type: encryption type, see Shishi_etype. * * Read humanly readable string for cipher. * * Return value: Return name of encryption type, * e.g. "des3-cbc-sha1-kd", as defined in the standards. **/ const char * shishi_cipher_name (int32_t type) { size_t i; char *p; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) { if (type == ciphers[i]->type) return ciphers[i]->name; } asprintf (&p, "unknown cipher %d", type); return p; } /** * shishi_cipher_blocksize: * @type: encryption type, see Shishi_etype. * * Get block size for cipher. * * Return value: Return block size for encryption type, as defined in * the standards. **/ int shishi_cipher_blocksize (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->blocksize; return -1; } /** * shishi_cipher_confoundersize: * @type: encryption type, see Shishi_etype. * * Get length of confounder for cipher. * * Return value: Returns the size of the confounder (random data) for * encryption type, as defined in the standards, or (size_t)-1 on * error (e.g., unsupported encryption type). **/ int shishi_cipher_confoundersize (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->confoundersize; return -1; } /** * shishi_cipher_keylen: * @type: encryption type, see Shishi_etype. * * Get key length for cipher. * * Return value: Return length of key used for the encryption type, as * defined in the standards. **/ size_t shishi_cipher_keylen (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->keylen; return -1; } /** * shishi_cipher_randomlen: * @type: encryption type, see Shishi_etype. * * Get length of random data for cipher. * * Return value: Return length of random used for the encryption type, * as defined in the standards, or (size_t)-1 on error (e.g., * unsupported encryption type). **/ size_t shishi_cipher_randomlen (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->randomlen; return -1; } /** * shishi_cipher_defaultcksumtype: * @type: encryption type, see Shishi_etype. * * Get the default checksum associated with cipher. * * Return value: Return associated checksum mechanism for the * encryption type, as defined in the standards. **/ int shishi_cipher_defaultcksumtype (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->defaultcksumtype; return -1; } struct Cipher_aliases { const char *name; int type; }; static struct Cipher_aliases cipher_aliases[] = { {"des-crc", SHISHI_DES_CBC_CRC}, {"des-md4", SHISHI_DES_CBC_MD4}, {"des-md5", SHISHI_DES_CBC_MD5}, {"des", SHISHI_DES_CBC_MD5}, {"des3", SHISHI_DES3_CBC_HMAC_SHA1_KD}, {"3des", SHISHI_DES3_CBC_HMAC_SHA1_KD}, {"aes128", SHISHI_AES128_CTS_HMAC_SHA1_96}, {"aes256", SHISHI_AES256_CTS_HMAC_SHA1_96}, {"aes", SHISHI_AES256_CTS_HMAC_SHA1_96}, {"arcfour", SHISHI_ARCFOUR_HMAC} }; /** * shishi_cipher_parse: * @cipher: name of encryption type, e.g. "des3-cbc-sha1-kd". * * Get cipher number by parsing string. * * Return value: Return encryption type corresponding to a string. **/ int shishi_cipher_parse (const char *cipher) { size_t i; char *endptr; i = strtol (cipher, &endptr, 0); if (*cipher && *endptr == '\0') return i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (strcasecmp (cipher, ciphers[i]->name) == 0) return ciphers[i]->type; for (i = 0; i < sizeof (cipher_aliases) / sizeof (cipher_aliases[0]); i++) if (strcasecmp (cipher, cipher_aliases[i].name) == 0) return cipher_aliases[i].type; return -1; } static Shishi_random_to_key_function _shishi_cipher_random_to_key (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->random2key; return NULL; } static Shishi_string_to_key_function _shishi_cipher_string_to_key (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->string2key; return NULL; } static Shishi_encrypt_function _shishi_cipher_encrypt (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->encrypt; return NULL; } static Shishi_decrypt_function _shishi_cipher_decrypt (int32_t type) { size_t i; for (i = 0; i < sizeof (ciphers) / sizeof (ciphers[0]); i++) if (type == ciphers[i]->type) return ciphers[i]->decrypt; return NULL; } static checksuminfo *checksums[] = { #if WITH_DES &crc32_info, #endif #if WITH_MD &md4_info, #endif #if WITH_DES &md4_des_info, #endif #if WITH_MD &md5_info, #endif #if WITH_DES &md5_des_info, &md5_gss_info, #endif #if WITH_3DES &hmac_sha1_des3_kd_info, #endif #if WITH_AES &hmac_sha1_96_aes128_info, &hmac_sha1_96_aes256_info, #endif #if WITH_ARCFOUR &arcfour_hmac_md5_info #endif }; /** * shishi_checksum_supported_p: * @type: checksum type, see Shishi_cksumtype. * * Find out whether checksum is supported. * * Return value: Return 0 iff checksum is unsupported. **/ int shishi_checksum_supported_p (int32_t type) { size_t i; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) if (type == checksums[i]->type) return 1; return 0; } /** * shishi_checksum_name: * @type: checksum type, see Shishi_cksumtype. * * Get name of checksum. * * Return value: Return name of checksum type, * e.g. "hmac-sha1-96-aes256", as defined in the standards. **/ const char * shishi_checksum_name (int32_t type) { size_t i; char *p; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) { if (type == checksums[i]->type) return checksums[i]->name; } asprintf (&p, "unknown checksum %d", type); return p; } /** * shishi_checksum_cksumlen: * @type: checksum type, see Shishi_cksumtype. * * Get length of checksum output. * * Return value: Return length of checksum used for the checksum type, * as defined in the standards. **/ size_t shishi_checksum_cksumlen (int32_t type) { size_t i; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) if (type == checksums[i]->type) return checksums[i]->cksumlen; return -1; } /** * shishi_checksum_parse: * @checksum: name of checksum type, e.g. "hmac-sha1-96-aes256". * * Get checksum number by parsing a string. * * Return value: Return checksum type, see Shishi_cksumtype, * corresponding to a string. **/ int shishi_checksum_parse (const char *checksum) { size_t i; char *endptr; i = strtol (checksum, &endptr, 0); if (endptr != checksum) return i; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) if (strcasecmp (checksum, checksums[i]->name) == 0) return checksums[i]->type; return -1; } static Shishi_checksum_function _shishi_checksum (int32_t type) { size_t i; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) if (type == checksums[i]->type) return checksums[i]->checksum; return NULL; } static Shishi_verify_function _shishi_verify (int32_t type) { size_t i; for (i = 0; i < sizeof (checksums) / sizeof (checksums[0]); i++) if (type == checksums[i]->type) return checksums[i]->verify; return NULL; } /** * shishi_string_to_key: * @handle: shishi handle as allocated by shishi_init(). * @keytype: cryptographic encryption type, see Shishi_etype. * @password: input array with password. * @passwordlen: length of input array with password. * @salt: input array with salt. * @saltlen: length of input array with salt. * @parameter: input array with opaque encryption type specific information. * @outkey: allocated key handle that will contain new key. * * Derive key from a string (password) and salt (commonly * concatenation of realm and principal) for specified key type, and * set the type and value in the given key to the computed values. * The parameter value is specific for each keytype, and can be set if * the parameter information is not available. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_string_to_key (Shishi * handle, int32_t keytype, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { Shishi_string_to_key_function string2key; int res; shishi_key_type_set (outkey, keytype); if (VERBOSECRYPTO (handle)) { printf ("string_to_key (%s, password, salt)\n", shishi_key_name (outkey)); printf ("\t ;; password:\n"); _shishi_escapeprint (password, passwordlen); _shishi_hexprint (password, passwordlen); printf ("\t ;; salt:\n"); _shishi_escapeprint (salt, saltlen); _shishi_hexprint (salt, saltlen); } string2key = _shishi_cipher_string_to_key (shishi_key_type (outkey)); if (string2key == NULL) { shishi_error_printf (handle, "Unsupported keytype %d", shishi_key_type (outkey)); return SHISHI_CRYPTO_ERROR; } res = (*string2key) (handle, password, passwordlen, salt, saltlen, parameter, outkey); if (VERBOSECRYPTO (handle)) { printf ("\t ;; string_to_key key:\n"); _shishi_hexprint (shishi_key_value (outkey), shishi_key_length (outkey)); _shishi_binprint (shishi_key_value (outkey), shishi_key_length (outkey)); } return res; } /** * shishi_random_to_key: * @handle: shishi handle as allocated by shishi_init(). * @keytype: cryptographic encryption type, see Shishi_etype. * @rnd: input array with random data. * @rndlen: length of input array with random data. * @outkey: allocated key handle that will contain new key. * * Derive key from random data for specified key type, and set the * type and value in the given key to the computed values. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_random_to_key (Shishi * handle, int32_t keytype, const char *rnd, size_t rndlen, Shishi_key * outkey) { Shishi_random_to_key_function random2key; int res; shishi_key_type_set (outkey, keytype); if (VERBOSECRYPTO (handle)) { printf ("random_to_key (%s, random)\n", shishi_key_name (outkey)); printf ("\t ;; random:\n"); _shishi_hexprint (rnd, rndlen); _shishi_binprint (rnd, rndlen); } random2key = _shishi_cipher_random_to_key (keytype); if (random2key == NULL) { shishi_error_printf (handle, "Unsupported random_to_key() ekeytype %d", keytype); return SHISHI_CRYPTO_ERROR; } res = (*random2key) (handle, rnd, rndlen, outkey); if (VERBOSECRYPTO (handle)) { printf ("\t ;; random_to_key key:\n"); _shishi_hexprint (shishi_key_value (outkey), shishi_key_length (outkey)); _shishi_binprint (shishi_key_value (outkey), shishi_key_length (outkey)); } return res; } /** * shishi_checksum: * @handle: shishi handle as allocated by shishi_init(). * @key: key to compute checksum with. * @keyusage: integer specifying what this key is used for. * @cksumtype: the checksum algorithm to use. * @in: input array with data to integrity protect. * @inlen: size of input array with data to integrity protect. * @out: output array with newly allocated integrity protected data. * @outlen: output variable with length of output array with checksum. * * Integrity protect data using key, possibly altered by supplied key * usage. If key usage is 0, no key derivation is used. The OUT * buffer must be deallocated by the caller. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { Shishi_checksum_function checksum; int res; if (VERBOSECRYPTO (handle)) { printf ("checksum (%s, %d, in, out)\n", shishi_key_name (key), cksumtype); printf ("\t ;; key (%zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; in:\n"); _shishi_escapeprint (in, inlen); _shishi_hexprint (in, inlen); } if (cksumtype == 0) cksumtype = shishi_cipher_defaultcksumtype (shishi_key_type (key)); checksum = _shishi_checksum (cksumtype); if (checksum == NULL) { shishi_error_printf (handle, "Unsupported checksum type %d", cksumtype); return SHISHI_CRYPTO_ERROR; } /* XXX? check if etype and cksumtype are compatible? */ res = (*checksum) (handle, key, keyusage, cksumtype, in, inlen, out, outlen); if (VERBOSECRYPTO (handle)) { printf ("\t ;; checksum out:\n"); _shishi_escapeprint (*out, *outlen); _shishi_hexprint (*out, *outlen); } return res; } /** * shishi_verify: * @handle: shishi handle as allocated by shishi_init(). * @key: key to verify checksum with. * @keyusage: integer specifying what this key is used for. * @cksumtype: the checksum algorithm to use. * @in: input array with data that was integrity protected. * @inlen: size of input array with data that was integrity protected. * @cksum: input array with alleged checksum of data. * @cksumlen: size of input array with alleged checksum of data. * * Verify checksum of data using key, possibly altered by supplied key * usage. If key usage is 0, no key derivation is used. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_verify (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, const char *cksum, size_t cksumlen) { Shishi_verify_function verify; int res; if (VERBOSECRYPTO (handle)) { printf ("verify (%s, %d, in, out)\n", shishi_key_name (key), cksumtype); printf ("\t ;; key (%zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; data:\n"); _shishi_escapeprint (in, inlen); _shishi_hexprint (in, inlen); printf ("\t ;; mic:\n"); _shishi_escapeprint (cksum, cksumlen); _shishi_hexprint (cksum, cksumlen); } if (cksumtype == 0) cksumtype = shishi_cipher_defaultcksumtype (shishi_key_type (key)); verify = _shishi_verify (cksumtype); if (verify == NULL) { shishi_error_printf (handle, "Unsupported checksum type %d", cksumtype); return SHISHI_CRYPTO_ERROR; } /* XXX? check if etype and cksumtype are compatible? */ res = (*verify) (handle, key, keyusage, cksumtype, in, inlen, cksum, cksumlen); if (VERBOSECRYPTO (handle)) printf ("\t ;; verify return: %d\n", res); return res; } /** * shishi_encrypt_ivupdate_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @etype: integer specifying what cipher to use. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @ivout: output array with newly allocated updated initialization vector. * @ivoutlen: size of output array with updated initialization vector. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data as per encryption method using specified * initialization vector and key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. If IVOUT or * IVOUTLEN is NULL, the updated IV is not saved anywhere. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt_ivupdate_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { Shishi_encrypt_function enc; int res; if (VERBOSECRYPTO (handle)) { printf ("encrypt (type=%s, usage=%d, key, in)\n", shishi_key_name (key), keyusage); printf ("\t ;; key (%zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; in (%zu):\n", inlen); _shishi_escapeprint (in, inlen); _shishi_hexprint (in, inlen); if (iv) { printf ("\t ;; iv (%zu):\n", ivlen); _shishi_escapeprint (iv, ivlen); _shishi_hexprint (iv, ivlen); } } enc = _shishi_cipher_encrypt (etype); if (enc == NULL) { shishi_error_printf (handle, "Unsupported keytype %d", shishi_key_type (key)); return SHISHI_CRYPTO_ERROR; } res = (*enc) (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); if (VERBOSECRYPTO (handle)) { if (res == SHISHI_OK) { printf ("\t ;; encrypt out:\n"); _shishi_escapeprint (*out, *outlen); _shishi_hexprint (*out, *outlen); if (ivout && ivoutlen) { printf ("\t ;; iv out:\n"); _shishi_escapeprint (*ivout, *ivoutlen); _shishi_hexprint (*ivout, *ivoutlen); } } else { printf ("\t ;; encrypt out failed %d\n", res); } } return res; } /** * shishi_encrypt_iv_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @etype: integer specifying what cipher to use. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data as per encryption method using specified * initialization vector and key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. The next IV is * lost, see shishi_encrypt_ivupdate_etype if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt_iv_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_encrypt_ivupdate_etype (handle, key, keyusage, etype, iv, ivlen, NULL, NULL, in, inlen, out, outlen); } /** * shishi_encrypt_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @etype: integer specifying what cipher to use. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data as per encryption method using specified * initialization vector and key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. The default IV * is used, see shishi_encrypt_iv_etype if you need to alter it. The * next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_encrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), NULL, 0, NULL, NULL, in, inlen, out, outlen); } /** * shishi_encrypt_ivupdate: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @ivout: output array with newly allocated updated initialization vector. * @ivoutlen: size of output array with updated initialization vector. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data using specified initialization vector and key. The * key actually used is derived using the key usage. If key usage is * 0, no key derivation is used. The OUT buffer must be deallocated * by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not * saved anywhere. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt_ivupdate (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_encrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } /** * shishi_encrypt_iv: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data using specified initialization vector and key. The * key actually used is derived using the key usage. If key usage is * 0, no key derivation is used. The OUT buffer must be deallocated * by the caller. The next IV is lost, see shishi_encrypt_ivupdate if * you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt_iv (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_encrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), iv, ivlen, NULL, NULL, in, inlen, out, outlen); } /** * shishi_encrypt: * @handle: shishi handle as allocated by shishi_init(). * @key: key to encrypt with. * @keyusage: integer specifying what this key is encrypting. * @in: input array with data to encrypt. * @inlen: size of input array with data to encrypt. * @out: output array with newly allocated encrypted data. * @outlen: output variable with size of newly allocated output array. * * Encrypts data using specified key. The key actually used is * derived using the key usage. If key usage is 0, no key derivation * is used. The OUT buffer must be deallocated by the caller. The * default IV is used, see shishi_encrypt_iv if you need to alter it. * The next IV is lost, see shishi_encrypt_ivupdate if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encrypt (Shishi * handle, Shishi_key * key, int keyusage, char *in, size_t inlen, char **out, size_t *outlen) { return shishi_encrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), NULL, 0, NULL, NULL, in, inlen, out, outlen); } /** * shishi_decrypt_ivupdate_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @etype: integer specifying what cipher to use. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @ivout: output array with newly allocated updated initialization vector. * @ivoutlen: size of output array with updated initialization vector. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data as per encryption method using specified * initialization vector and key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. If IVOUT or * IVOUTLEN is NULL, the updated IV is not saved anywhere. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt_ivupdate_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { Shishi_decrypt_function decrypt; int res; if (VERBOSECRYPTO (handle)) { printf ("decrypt (type=%s, usage=%d, key, in, out)\n", shishi_key_name (key), keyusage); printf ("\t ;; key (%zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; in (%zu):\n", inlen); _shishi_escapeprint (in, inlen); _shishi_hexprint (in, inlen); if (iv) { printf ("\t ;; iv (%zu):\n", ivlen); _shishi_escapeprint (iv, ivlen); _shishi_hexprint (iv, ivlen); } } decrypt = _shishi_cipher_decrypt (etype); if (decrypt == NULL) { shishi_error_printf (handle, "Unsupported keytype %d", shishi_key_type (key)); return SHISHI_CRYPTO_ERROR; } res = (*decrypt) (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); if (VERBOSECRYPTO (handle)) { if (res == SHISHI_OK) { printf ("\t ;; decrypt out:\n"); _shishi_escapeprint (*out, *outlen); _shishi_hexprint (*out, *outlen); } else { printf ("\t ;; decrypt out failed %d\n", res); } } return res; } /** * shishi_decrypt_iv_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @etype: integer specifying what cipher to use. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data as per encryption method using specified * initialization vector and key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. The next IV is * lost, see shishi_decrypt_ivupdate_etype if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt_iv_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_decrypt_ivupdate_etype (handle, key, keyusage, etype, iv, ivlen, NULL, NULL, in, inlen, out, outlen); } /** * shishi_decrypt_etype: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @etype: integer specifying what cipher to use. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data as per encryption method using specified key. The * key actually used is derived using the key usage. If key usage is * 0, no key derivation is used. The OUT buffer must be deallocated * by the caller. The default IV is used, see shishi_decrypt_iv_etype * if you need to alter it. The next IV is lost, see * shishi_decrypt_ivupdate_etype if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt_etype (Shishi * handle, Shishi_key * key, int keyusage, int32_t etype, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_decrypt_ivupdate_etype (handle, key, keyusage, etype, NULL, 0, NULL, NULL, in, inlen, out, outlen); } /** * shishi_decrypt_ivupdate: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @ivout: output array with newly allocated updated initialization vector. * @ivoutlen: size of output array with updated initialization vector. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data using specified initialization vector and key. The * key actually used is derived using the key usage. If key usage is * 0, no key derivation is used. The OUT buffer must be deallocated * by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not * saved anywhere. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt_ivupdate (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_decrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } /** * shishi_decrypt_iv: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @iv: input array with initialization vector * @ivlen: size of input array with initialization vector. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data using specified initialization vector and key. The * key actually used is derived using the key usage. If key usage is * 0, no key derivation is used. The OUT buffer must be deallocated * by the caller. The next IV is lost, see * shishi_decrypt_ivupdate_etype if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt_iv (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_decrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), iv, ivlen, NULL, NULL, in, inlen, out, outlen); } /** * shishi_decrypt: * @handle: shishi handle as allocated by shishi_init(). * @key: key to decrypt with. * @keyusage: integer specifying what this key is decrypting. * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt. * @out: output array with newly allocated decrypted data. * @outlen: output variable with size of newly allocated output array. * * Decrypts data specified key. The key actually used is derived * using the key usage. If key usage is 0, no key derivation is used. * The OUT buffer must be deallocated by the caller. The default IV * is used, see shishi_decrypt_iv if you need to alter it. The next * IV is lost, see shishi_decrypt_ivupdate if you need it. * * Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data * exactly. Some encryption types add pad to make the data fit into * the block size of the encryption algorithm. Furthermore, the pad * is not guaranteed to look in any special way, although existing * implementations often pad with the zero byte. This means that you * may have to "frame" data, so it is possible to infer the original * length after decryption. Compare ASN.1 DER which contains such * information. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *in, size_t inlen, char **out, size_t *outlen) { return shishi_decrypt_ivupdate_etype (handle, key, keyusage, shishi_key_type (key), NULL, 0, NULL, NULL, in, inlen, out, outlen); } /** * shishi_n_fold: * @handle: shishi handle as allocated by shishi_init(). * @in: input array with data to decrypt. * @inlen: size of input array with data to decrypt ("M"). * @out: output array with decrypted data. * @outlen: size of output array ("N"). * * Fold data into a fixed length output array, with the intent to give * each input bit approximately equal weight in determining the value * of each output bit. * * The algorithm is from "A Better Key Schedule For DES-like Ciphers" * by Uri Blumenthal and Steven M. Bellovin, * http://www.research.att.com/~smb/papers/ides.pdf, although the * sample vectors provided by the paper are incorrect. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_n_fold (Shishi * handle, const char *in, size_t inlen, char *out, size_t outlen) { int m = inlen; int n = outlen; char *buf = NULL; char *a = NULL; int lcmmn = 0; int i = 0; /* To n-fold a number X, replicate the input value to a length that is the least common multiple of n and the length of X. Before each repetition, the input is rotated to the right by 13 bit positions. The successive n-bit chunks are added together using 1's-complement addition (that is, addition with end-around carry) to yield a n-bit result denoted _n. */ a = xmemdup (in, m); lcmmn = lcm (m, n); if (VERBOSECRYPTONOISE (handle)) { printf ("%d-fold (string)\n", n * 8); printf ("\t ;; string length %d bytes %d bits\n", m, m * 8); _shishi_escapeprint (a, m); _shishi_hexprint (a, m); printf ("\t ;; lcm(%d, %d) = lcm(%d, %d) = %d\n", 8 * m, 8 * n, m, n, lcmmn); } buf = xmalloc (lcmmn); /* Replicate the input th the LCMMN length */ for (i = 0; i < (lcmmn / m); i++) { if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; %d-th replication\n", i + 1); printf ("string = rot13(string)\n"); } memcpy ((char *) &buf[i * m], a, m); rot13 (handle, a, a, m); } memset (out, 0, n); /* just in case */ if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; replicated string (length %d):\n", lcmmn); _shishi_hexprint (buf, lcmmn); _shishi_binprint (buf, lcmmn); printf ("sum = 0\n"); } /* Now we view the buf as set of n-byte strings Add the n-byte long chunks together, using one's complement addition, storing the result in the output string. */ for (i = 0; i < (lcmmn / n); i++) { if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; %d-th one's complement addition sum\n", i + 1); printf ("\t ;; sum:\n"); _shishi_hexprint (out, n); _shishi_binprint (out, n); printf ("\t ;; A (offset %d):\n", i * n); _shishi_hexprint (&buf[i * n], n); _shishi_binprint (&buf[i * n], n); printf ("sum = ocadd(sum, A);\n"); } ocadd (out, (char *) &buf[i * n], out, n); if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; sum:\n"); _shishi_hexprint (out, n); _shishi_binprint (out, n); } } if (VERBOSECRYPTONOISE (handle)) { printf ("\t ;; nfold\n"); _shishi_hexprint (out, n); _shishi_binprint (out, n); } free (buf); free (a); return SHISHI_OK; } #define MAX_DR_PRFCONSTANT 1024 /** * shishi_dr: * @handle: shishi handle as allocated by shishi_init(). * @key: input array with cryptographic key to use. * @prfconstant: input array with the constant string. * @prfconstantlen: size of input array with the constant string. * @derivedrandom: output array with derived random data. * @derivedrandomlen: size of output array with derived random data. * * Derive "random" data from a key and a constant thusly: * DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, * SHISHI_ENCRYPT(KEY, PRFCONSTANT)). * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_dr (Shishi * handle, Shishi_key * key, const char *prfconstant, size_t prfconstantlen, char *derivedrandom, size_t derivedrandomlen) { char *cipher; char plaintext[MAX_DR_PRFCONSTANT]; char nfoldprfconstant[MAX_DR_PRFCONSTANT]; size_t blocksize = shishi_cipher_blocksize (shishi_key_type (key)); size_t totlen, cipherlen; int res; if (VERBOSECRYPTO (handle)) { printf ("dr (%s, key, prfconstant, %zu)\n", shishi_cipher_name (shishi_key_type (key)), derivedrandomlen); printf ("\t ;; key (length %zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); _shishi_binprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; prfconstant %s':\n", prfconstant); _shishi_escapeprint (prfconstant, prfconstantlen); _shishi_hexprint (prfconstant, prfconstantlen); _shishi_binprint (prfconstant, prfconstantlen); } if (prfconstantlen > MAX_DR_PRFCONSTANT) return SHISHI_TOO_SMALL_BUFFER; if (prfconstantlen == blocksize) memcpy (nfoldprfconstant, prfconstant, prfconstantlen); else { res = shishi_n_fold (handle, prfconstant, prfconstantlen, nfoldprfconstant, blocksize); if (res != SHISHI_OK) return res; } if (VERBOSECRYPTO (handle)) { printf ("\t ;; possibly nfolded prfconstant (length %zu):\n", blocksize); _shishi_escapeprint (nfoldprfconstant, blocksize); _shishi_hexprint (nfoldprfconstant, blocksize); _shishi_binprint (nfoldprfconstant, blocksize); } memcpy (plaintext, nfoldprfconstant, blocksize); totlen = 0; do { res = shishi_encrypt (handle, key, 0, plaintext, blocksize, &cipher, &cipherlen); if (res != SHISHI_OK) return res; if (cipherlen != blocksize) return SHISHI_CRYPTO_ERROR; memcpy (derivedrandom + totlen, cipher, cipherlen); memcpy (plaintext, cipher, cipherlen); free (cipher); totlen += cipherlen; } while (totlen < derivedrandomlen); if (VERBOSECRYPTO (handle)) { printf ("\t ;; derived random (length %zu):\n", derivedrandomlen); _shishi_hexprint (derivedrandom, derivedrandomlen); _shishi_binprint (derivedrandom, derivedrandomlen); } return SHISHI_OK; } /** * shishi_dk: * @handle: shishi handle as allocated by shishi_init(). * @key: input cryptographic key to use. * @prfconstant: input array with the constant string. * @prfconstantlen: size of input array with the constant string. * @derivedkey: pointer to derived key (allocated by caller). * * Derive a key from a key and a constant thusly: * DK(KEY, PRFCONSTANT) = SHISHI_RANDOM-TO-KEY(SHISHI_DR(KEY, PRFCONSTANT)). * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_dk (Shishi * handle, Shishi_key * key, const char *prfconstant, size_t prfconstantlen, Shishi_key * derivedkey) { char rnd[MAX_RANDOM_LEN]; int res; if (VERBOSECRYPTO (handle)) { printf ("dk (%s, key, prfconstant)\n", shishi_key_name (key)); printf ("\t ;; key (length %zu):\n", shishi_key_length (key)); _shishi_hexprint (shishi_key_value (key), shishi_key_length (key)); _shishi_binprint (shishi_key_value (key), shishi_key_length (key)); printf ("\t ;; prfconstant:\n"); _shishi_escapeprint (prfconstant, prfconstantlen); _shishi_hexprint (prfconstant, prfconstantlen); _shishi_binprint (prfconstant, prfconstantlen); } shishi_key_type_set (derivedkey, shishi_key_type (key)); res = shishi_dr (handle, key, prfconstant, prfconstantlen, rnd, shishi_key_length (derivedkey)); if (res != SHISHI_OK) return res; res = shishi_random_to_key (handle, shishi_key_type (derivedkey), rnd, shishi_key_length (derivedkey), derivedkey); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/crypto-null.c0000644000000000000000000000425214273601533013102 00000000000000/* crypto-null.c --- NULL crypto functions * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include "crypto.h" static int null_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { *outlen = inlen; *out = xmalloc (*outlen); memcpy (*out, in, inlen); if (ivout) *ivout = NULL; if (ivoutlen) *ivoutlen = 0; return SHISHI_OK; } static int null_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { *outlen = inlen; *out = xmalloc (*outlen); memcpy (*out, in, inlen); if (ivout) *ivout = NULL; if (ivoutlen) *ivoutlen = 0; return SHISHI_OK; } static int null_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { return SHISHI_OK; } static int null_string_to_key (Shishi * handle, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { return SHISHI_OK; } cipherinfo null_info = { SHISHI_NULL, "NULL", 1, 0, 0, 0, SHISHI_RSA_MD5, null_random_to_key, null_string_to_key, null_encrypt, null_decrypt }; shishi-1.0.3/lib/kdcrep.c0000644000000000000000000004734114273601533012070 00000000000000/* kdcrep.c --- Key distribution (AS/TGS) Reply functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get _shishi_print_armored_data, etc. */ #include "diskio.h" #define SHISHI_KDCREP_DEFAULT_PVNO "5" #define SHISHI_KDCREP_DEFAULT_PVNO_LEN 0 #define SHISHI_AS_REP_DEFAULT_MSG_TYPE "11" #define SHISHI_AS_REP_DEFAULT_MSG_TYPE_LEN 0 #define SHISHI_TGS_REP_DEFAULT_MSG_TYPE "13" #define SHISHI_TGS_REP_DEFAULT_MSG_TYPE_LEN 0 static Shishi_asn1 _shishi_kdcrep (Shishi * handle, int as) { int res; Shishi_asn1 node; if (as) node = shishi_asn1_asrep (handle); else node = shishi_asn1_tgsrep (handle); if (!node) return NULL; res = shishi_asn1_write (handle, node, "pvno", SHISHI_KDCREP_DEFAULT_PVNO, SHISHI_KDCREP_DEFAULT_PVNO_LEN); if (res != SHISHI_OK) goto error; if (as) res = shishi_asn1_write (handle, node, "msg-type", SHISHI_AS_REP_DEFAULT_MSG_TYPE, SHISHI_AS_REP_DEFAULT_MSG_TYPE_LEN); else res = shishi_asn1_write (handle, node, "msg-type", SHISHI_TGS_REP_DEFAULT_MSG_TYPE, SHISHI_TGS_REP_DEFAULT_MSG_TYPE_LEN); if (res != SHISHI_OK) goto error; return node; error: shishi_asn1_done (handle, node); return NULL; } /** * shishi_asrep: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new AS-REP, populated with some default * values. * * Return value: Returns the AS-REP or NULL on failure. **/ Shishi_asn1 shishi_asrep (Shishi * handle) { return _shishi_kdcrep (handle, 1); } /** * shishi_tgsrep: * @handle: shishi handle as allocated by shishi_init(). * * This function creates a new TGS-REP, populated with some default * values. * * Return value: Returns the TGS-REP or NULL on failure. **/ Shishi_asn1 shishi_tgsrep (Shishi * handle) { return _shishi_kdcrep (handle, 0); } /** * shishi_kdcrep_print: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @kdcrep: KDC-REP to print. * * Print ASCII armored DER encoding of KDC-REP to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_print (Shishi * handle, FILE * fh, Shishi_asn1 kdcrep) { return _shishi_print_armored_data (handle, fh, kdcrep, "KDC-REP", NULL); } /** * shishi_kdcrep_save: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for writing. * @kdcrep: KDC-REP to save. * * Print DER encoding of KDC-REP to file. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_save (Shishi * handle, FILE * fh, Shishi_asn1 kdcrep) { return _shishi_save_data (handle, fh, kdcrep, "KDC-REP"); } /** * shishi_kdcrep_to_file: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP to save. * @filetype: input variable specifying type of file to be written, * see Shishi_filetype. * @filename: input variable with filename to write to. * * Write KDC-REP to file in specified TYPE. The file will be truncated * if it exists. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_to_file (Shishi * handle, Shishi_asn1 kdcrep, int filetype, const char *filename) { FILE *fh; int res; if (VERBOSE (handle)) printf (_("Writing KDC-REP to %s...\n"), filename); fh = fopen (filename, "w"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Writing KDC-REP in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_kdcrep_print (handle, fh, kdcrep); else res = shishi_kdcrep_save (handle, fh, kdcrep); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Writing KDC-REP to %s...done\n"), filename); return SHISHI_OK; } /** * shishi_kdcrep_parse: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @kdcrep: output variable with newly allocated KDC-REP. * * Read ASCII armored DER encoded KDC-REP from file and populate given * variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_parse (Shishi * handle, FILE * fh, Shishi_asn1 * kdcrep) { return _shishi_kdcrep_input (handle, fh, kdcrep, 0); } /** * shishi_kdcrep_read: * @handle: shishi handle as allocated by shishi_init(). * @fh: file handle open for reading. * @kdcrep: output variable with newly allocated KDC-REP. * * Read DER encoded KDC-REP from file and populate given variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_read (Shishi * handle, FILE * fh, Shishi_asn1 * kdcrep) { return _shishi_kdcrep_input (handle, fh, kdcrep, 1); } /** * shishi_kdcrep_from_file: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: output variable with newly allocated KDC-REP. * @filetype: input variable specifying type of file to be read, * see Shishi_filetype. * @filename: input variable with filename to read from. * * Read KDC-REP from file in specified TYPE. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_from_file (Shishi * handle, Shishi_asn1 * kdcrep, int filetype, const char *filename) { int res; FILE *fh; if (VERBOSE (handle)) printf (_("Reading KDC-REP from %s...\n"), filename); fh = fopen (filename, "r"); if (fh == NULL) return SHISHI_FOPEN_ERROR; if (VERBOSE (handle)) printf (_("Reading KDC-REP in %s format...\n"), filetype == SHISHI_FILETYPE_TEXT ? "TEXT" : "DER"); if (filetype == SHISHI_FILETYPE_TEXT) res = shishi_kdcrep_parse (handle, fh, kdcrep); else res = shishi_kdcrep_read (handle, fh, kdcrep); if (res != SHISHI_OK) return res; res = fclose (fh); if (res != 0) return SHISHI_IO_ERROR; if (VERBOSE (handle)) printf (_("Reading KDC-REP from %s...done\n"), filename); return SHISHI_OK; } /** * shishi_kdcrep_crealm_set: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: Kdcrep variable to set realm field in. * @crealm: input array with name of realm. * * Set the client realm field in the KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_crealm_set (Shishi * handle, Shishi_asn1 kdcrep, const char *crealm) { int res; res = shishi_asn1_write (handle, kdcrep, "crealm", crealm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcrep_cname_set: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: Kdcrep variable to set server name field in. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @cname: input array with principal name. * * Set the client name field in the KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_cname_set (Shishi * handle, Shishi_asn1 kdcrep, Shishi_name_type name_type, const char *cname[]) { int res; res = shishi_principal_name_set (handle, kdcrep, "cname", name_type, cname); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcrep_client_set: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: Kdcrep variable to set server name field in. * @client: zero-terminated string with principal name on RFC 1964 form. * * Set the client name field in the KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_client_set (Shishi * handle, Shishi_asn1 kdcrep, const char *client) { int res; res = shishi_principal_set (handle, kdcrep, "cname", client); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_kdcrep_crealmserver_set (Shishi * handle, Shishi_asn1 kdcrep, const char *crealm, const char *client) { int res; res = shishi_kdcrep_crealm_set (handle, kdcrep, crealm); if (res != SHISHI_OK) return res; res = shishi_kdcrep_client_set (handle, kdcrep, client); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcrep_get_enc_part_etype: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP variable to get value from. * @etype: output variable that holds the value. * * Extract KDC-REP.enc-part.etype. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_get_enc_part_etype (Shishi * handle, Shishi_asn1 kdcrep, int32_t * etype) { return shishi_asn1_read_int32 (handle, kdcrep, "enc-part.etype", etype); } /** * shishi_kdcrep_get_ticket: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP variable to get ticket from. * @ticket: output variable to hold extracted ticket. * * Extract ticket from KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_get_ticket (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 * ticket) { char *buf; char *format; size_t buflen; int res; size_t i, n; /* there's GOT to be an easier way to do this */ *ticket = shishi_ticket (handle); if (!*ticket) return SHISHI_ASN1_ERROR; res = shishi_asn1_read (handle, kdcrep, "ticket.tkt-vno", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "tkt-vno", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, kdcrep, "ticket.realm", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "realm", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, kdcrep, "ticket.sname.name-type", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "sname.name-type", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_number_of_elements (handle, kdcrep, "ticket.sname.name-string", &n); if (res != SHISHI_OK) goto error; for (i = 1; i <= n; i++) { res = shishi_asn1_write (handle, *ticket, "sname.name-string", "NEW", 1); if (res != SHISHI_OK) goto error; format = xasprintf ("ticket.sname.name-string.?%zu", i); res = shishi_asn1_read (handle, kdcrep, format, &buf, &buflen); free (format); if (res != SHISHI_OK) goto error; format = xasprintf ("sname.name-string.?%zu", i); res = shishi_asn1_write (handle, *ticket, format, buf, buflen); free (format); free (buf); if (res != SHISHI_OK) goto error; } res = shishi_asn1_read (handle, kdcrep, "ticket.enc-part.etype", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "enc-part.etype", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, kdcrep, "ticket.enc-part.kvno", &buf, &buflen); if (res != SHISHI_OK && res != SHISHI_ASN1_NO_ELEMENT) goto error; if (res == SHISHI_ASN1_NO_ELEMENT) res = shishi_asn1_write (handle, *ticket, "enc-part.kvno", NULL, 0); else { res = shishi_asn1_write (handle, *ticket, "enc-part.kvno", buf, buflen); free (buf); } if (res != SHISHI_OK) goto error; res = shishi_asn1_read (handle, kdcrep, "ticket.enc-part.cipher", &buf, &buflen); if (res != SHISHI_OK) goto error; res = shishi_asn1_write (handle, *ticket, "enc-part.cipher", buf, buflen); free (buf); if (res != SHISHI_OK) goto error; return SHISHI_OK; error: shishi_asn1_done (handle, *ticket); return res; } /** * shishi_kdcrep_set_ticket: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP to add ticket field to. * @ticket: input ticket to copy into KDC-REP ticket field. * * Copy ticket into KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_set_ticket (Shishi * handle, Shishi_asn1 kdcrep, Shishi_asn1 ticket) { int res = SHISHI_OK; char *format; char *buf; size_t buflen; size_t i, n; res = shishi_asn1_read (handle, ticket, "tkt-vno", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "ticket.tkt-vno", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "realm", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "ticket.realm", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "sname.name-type", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "ticket.sname.name-type", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_number_of_elements (handle, ticket, "sname.name-string", &n); if (res != SHISHI_OK) return res; for (i = 1; i <= n; i++) { res = shishi_asn1_write (handle, kdcrep, "ticket.sname.name-string", "NEW", 1); if (res != SHISHI_OK) return res; format = xasprintf ("sname.name-string.?%zu", i); res = shishi_asn1_read (handle, ticket, format, &buf, &buflen); free (format); if (res != SHISHI_OK) return res; format = xasprintf ("ticket.sname.name-string.?%zu", i); res = shishi_asn1_write (handle, kdcrep, format, buf, buflen); free (format); free (buf); if (res != SHISHI_OK) return res; } res = shishi_asn1_read (handle, ticket, "enc-part.etype", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "ticket.enc-part.etype", buf, buflen); free (buf); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "enc-part.kvno", &buf, &buflen); if (res != SHISHI_OK) res = shishi_asn1_write (handle, kdcrep, "ticket.enc-part.kvno", NULL, 0); else { res = shishi_asn1_write (handle, kdcrep, "ticket.enc-part.kvno", buf, buflen); free (buf); } if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, ticket, "enc-part.cipher", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, kdcrep, "ticket.enc-part.cipher", buf, buflen); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcrep_set_enc_part: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP to add enc-part field to. * @etype: encryption type used to encrypt enc-part. * @kvno: key version number. * @buf: input array with encrypted enc-part. * @buflen: size of input array with encrypted enc-part. * * Set the encrypted enc-part field in the KDC-REP. The encrypted * data is usually created by calling shishi_encrypt() on the DER * encoded enc-part. To save time, you may want to use * shishi_kdcrep_add_enc_part() instead, which calculates the * encrypted data and calls this function in one step. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_set_enc_part (Shishi * handle, Shishi_asn1 kdcrep, int32_t etype, uint32_t kvno, const char *buf, size_t buflen) { int res = SHISHI_OK; res = shishi_asn1_write (handle, kdcrep, "enc-part.cipher", buf, buflen); if (res != SHISHI_OK) return res; res = shishi_asn1_write_int32 (handle, kdcrep, "enc-part.etype", etype); if (res != SHISHI_OK) return res; if (kvno == UINT32_MAX) res = shishi_asn1_write (handle, kdcrep, "enc-part.kvno", NULL, 0); else res = shishi_asn1_write_uint32 (handle, kdcrep, "enc-part.kvno", kvno); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_kdcrep_add_enc_part: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP to add enc-part field to. * @key: key used to encrypt enc-part. * @keyusage: key usage to use, normally SHISHI_KEYUSAGE_ENCASREPPART, * SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY or * SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY. * @enckdcreppart: EncKDCRepPart to add. * * Encrypts DER encoded EncKDCRepPart using key and stores it in the * KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_add_enc_part (Shishi * handle, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 enckdcreppart) { int res = SHISHI_OK; char *buf; size_t buflen; char *der; size_t derlen; res = shishi_asn1_to_der (handle, enckdcreppart, &der, &derlen); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not DER encode enckdcreppart: %s\n", shishi_strerror (res)); return SHISHI_ASN1_ERROR; } res = shishi_encrypt (handle, key, keyusage, der, derlen, &buf, &buflen); free (der); if (res != SHISHI_OK) { shishi_error_printf (handle, "Cannot encrypt EncKDCRepPart\n"); return res; } res = shishi_kdcrep_set_enc_part (handle, kdcrep, shishi_key_type (key), shishi_key_version (key), buf, buflen); free (buf); return res; } int shishi_kdcrep_decrypt (Shishi * handle, Shishi_asn1 kdcrep, Shishi_key * key, int keyusage, Shishi_asn1 * enckdcreppart) { int res; int i; char *buf; size_t buflen; char *cipher; size_t cipherlen; int etype; res = shishi_kdcrep_get_enc_part_etype (handle, kdcrep, &etype); if (res != SHISHI_OK) return res; if (etype != shishi_key_type (key)) return SHISHI_KDCREP_BAD_KEYTYPE; res = shishi_asn1_read (handle, kdcrep, "enc-part.cipher", &cipher, &cipherlen); if (res != SHISHI_OK) return res; res = shishi_decrypt (handle, key, keyusage, cipher, cipherlen, &buf, &buflen); free (cipher); if (res != SHISHI_OK) { shishi_error_printf (handle, "KDCRep decryption failed, wrong password?"); return res; } /* The crypto is so 1980; no length indicator. Trim off pad bytes until we can parse it. */ for (i = 0; i < 8; i++) { if (VERBOSEASN1 (handle)) printf ("Trying with %d pad in enckdcrep...\n", i); *enckdcreppart = shishi_der2asn1_encasreppart (handle, &buf[0], buflen - i); if (*enckdcreppart != NULL) break; *enckdcreppart = shishi_der2asn1_enctgsreppart (handle, &buf[0], buflen - i); if (*enckdcreppart != NULL) break; *enckdcreppart = shishi_der2asn1_enckdcreppart (handle, &buf[0], buflen - i); if (*enckdcreppart != NULL) break; } free (buf); if (*enckdcreppart == NULL) { shishi_error_printf (handle, "Could not DER decode EncKDCRepPart. " "Password probably correct (decrypt ok) though\n"); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } /** * shishi_kdcrep_clear_padata: * @handle: shishi handle as allocated by shishi_init(). * @kdcrep: KDC-REP to remove PA-DATA from. * * Remove the padata field from KDC-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_kdcrep_clear_padata (Shishi * handle, Shishi_asn1 kdcrep) { int res; res = shishi_asn1_write (handle, kdcrep, "padata", NULL, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/gl/0000755000000000000000000000000014273616162011131 500000000000000shishi-1.0.3/lib/gl/strnlen.c0000644000000000000000000000222614273615123012700 00000000000000/* Find the length of STRING, but scan at most MAXLEN characters. Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include /* Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN. */ size_t strnlen (const char *string, size_t maxlen) { const char *end = memchr (string, '\0', maxlen); return end ? (size_t) (end - string) : maxlen; } shishi-1.0.3/lib/gl/close.c0000644000000000000000000000314314273615121012315 00000000000000/* close replacement. Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include "fd-hook.h" #if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" #endif #undef close #if defined _WIN32 && !defined __CYGWIN__ # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int close_nothrow (int fd) { int result; TRY_MSVC_INVAL { result = _close (fd); } CATCH_MSVC_INVAL { result = -1; errno = EBADF; } DONE_MSVC_INVAL; return result; } # else # define close_nothrow _close # endif #else # define close_nothrow close #endif /* Override close() to call into other gnulib modules. */ int rpl_close (int fd) { #if WINDOWS_SOCKETS int retval = execute_all_close_hooks (close_nothrow, fd); #else int retval = close_nothrow (fd); #endif #if REPLACE_FCHDIR if (retval >= 0) _gl_unregister_fd (fd); #endif return retval; } shishi-1.0.3/lib/gl/recvfrom.c0000644000000000000000000000325414273615123013040 00000000000000/* recvfrom.c --- wrappers for Windows recvfrom function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef recvfrom ssize_t rpl_recvfrom (int fd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int frombufsize = (from != NULL ? *fromlen : 0); int r = recvfrom (sock, buf, len, flags, from, fromlen); if (r < 0) set_winsock_errno (); /* Winsock recvfrom() only returns a valid 'from' when the socket is connectionless. POSIX gives a valid 'from' for all types of sockets. */ else if (from != NULL && *fromlen == frombufsize) rpl_getpeername (fd, from, fromlen); return r; } } shishi-1.0.3/lib/gl/w32sock.h0000644000000000000000000000645214273615123012520 00000000000000/* w32sock.h --- internal auxiliary functions for Windows socket functions Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include /* Get O_RDWR and O_BINARY. */ #include /* Get _open_osfhandle(). */ #include /* Get _get_osfhandle(). */ #if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" #else # include #endif #define FD_TO_SOCKET(fd) ((SOCKET) _get_osfhandle ((fd))) #define SOCKET_TO_FD(fh) (_open_osfhandle ((intptr_t) (fh), O_RDWR | O_BINARY)) static inline void set_winsock_errno (void) { int err = WSAGetLastError (); /* Map some WSAE* errors to the runtime library's error codes. */ switch (err) { case WSA_INVALID_HANDLE: errno = EBADF; break; case WSA_NOT_ENOUGH_MEMORY: errno = ENOMEM; break; case WSA_INVALID_PARAMETER: errno = EINVAL; break; case WSAENAMETOOLONG: errno = ENAMETOOLONG; break; case WSAENOTEMPTY: errno = ENOTEMPTY; break; case WSAEWOULDBLOCK: errno = EWOULDBLOCK; break; case WSAEINPROGRESS: errno = EINPROGRESS; break; case WSAEALREADY: errno = EALREADY; break; case WSAENOTSOCK: errno = ENOTSOCK; break; case WSAEDESTADDRREQ: errno = EDESTADDRREQ; break; case WSAEMSGSIZE: errno = EMSGSIZE; break; case WSAEPROTOTYPE: errno = EPROTOTYPE; break; case WSAENOPROTOOPT: errno = ENOPROTOOPT; break; case WSAEPROTONOSUPPORT: errno = EPROTONOSUPPORT; break; case WSAEOPNOTSUPP: errno = EOPNOTSUPP; break; case WSAEAFNOSUPPORT: errno = EAFNOSUPPORT; break; case WSAEADDRINUSE: errno = EADDRINUSE; break; case WSAEADDRNOTAVAIL: errno = EADDRNOTAVAIL; break; case WSAENETDOWN: errno = ENETDOWN; break; case WSAENETUNREACH: errno = ENETUNREACH; break; case WSAENETRESET: errno = ENETRESET; break; case WSAECONNABORTED: errno = ECONNABORTED; break; case WSAECONNRESET: errno = ECONNRESET; break; case WSAENOBUFS: errno = ENOBUFS; break; case WSAEISCONN: errno = EISCONN; break; case WSAENOTCONN: errno = ENOTCONN; break; case WSAETIMEDOUT: errno = ETIMEDOUT; break; case WSAECONNREFUSED: errno = ECONNREFUSED; break; case WSAELOOP: errno = ELOOP; break; case WSAEHOSTUNREACH: errno = EHOSTUNREACH; break; default: errno = (err > 10000 && err < 10025) ? err - 10000 : err; break; } } shishi-1.0.3/lib/gl/fopen.c0000644000000000000000000001454414273615122012327 00000000000000/* Open a stream to a file. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2007. */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_fopen doesn't recurse to rpl_fopen. */ #define _GL_ALREADY_INCLUDING_STDIO_H #include /* Get the original definition of fopen. It might be defined as a macro. */ #include #undef _GL_ALREADY_INCLUDING_STDIO_H static FILE * orig_fopen (const char *filename, const char *mode) { return fopen (filename, mode); } /* Specification. */ /* Write "stdio.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ #include "stdio.h" #include #include #include #include #include #include #include FILE * rpl_fopen (const char *filename, const char *mode) { int open_direction; int open_flags; #if GNULIB_FOPEN_GNU bool open_flags_gnu; # define BUF_SIZE 80 char fdopen_mode_buf[BUF_SIZE + 1]; #endif #if defined _WIN32 && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; #endif /* Parse the mode. */ open_direction = 0; open_flags = 0; #if GNULIB_FOPEN_GNU open_flags_gnu = false; #endif { const char *p = mode; #if GNULIB_FOPEN_GNU char *q = fdopen_mode_buf; #endif for (; *p != '\0'; p++) { switch (*p) { case 'r': open_direction = O_RDONLY; #if GNULIB_FOPEN_GNU if (q < fdopen_mode_buf + BUF_SIZE) *q++ = *p; #endif continue; case 'w': open_direction = O_WRONLY; open_flags |= O_CREAT | O_TRUNC; #if GNULIB_FOPEN_GNU if (q < fdopen_mode_buf + BUF_SIZE) *q++ = *p; #endif continue; case 'a': open_direction = O_WRONLY; open_flags |= O_CREAT | O_APPEND; #if GNULIB_FOPEN_GNU if (q < fdopen_mode_buf + BUF_SIZE) *q++ = *p; #endif continue; case 'b': /* While it is non-standard, O_BINARY is guaranteed by gnulib . We can also assume that orig_fopen supports the 'b' flag. */ open_flags |= O_BINARY; #if GNULIB_FOPEN_GNU if (q < fdopen_mode_buf + BUF_SIZE) *q++ = *p; #endif continue; case '+': open_direction = O_RDWR; #if GNULIB_FOPEN_GNU if (q < fdopen_mode_buf + BUF_SIZE) *q++ = *p; #endif continue; #if GNULIB_FOPEN_GNU case 'x': open_flags |= O_EXCL; open_flags_gnu = true; continue; case 'e': open_flags |= O_CLOEXEC; open_flags_gnu = true; continue; #endif default: break; } #if GNULIB_FOPEN_GNU /* The rest of the mode string can be a platform-dependent extension. Copy it unmodified. */ { size_t len = strlen (p); if (len > fdopen_mode_buf + BUF_SIZE - q) len = fdopen_mode_buf + BUF_SIZE - q; memcpy (q, p, len); q += len; } #endif break; } #if GNULIB_FOPEN_GNU *q = '\0'; #endif } #if FOPEN_TRAILING_SLASH_BUG /* Fail if the mode requires write access and the filename ends in a slash, as POSIX says such a filename must name a directory : "A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be resolved successfully unless the last pathname component before the trailing characters names an existing directory" If the named file already exists as a directory, then if a mode that requires write access is specified, fopen() must fail because POSIX says that it fails with errno = EISDIR in this case. If the named file does not exist or does not name a directory, then fopen() must fail since the file does not contain a '.' directory. */ { size_t len = strlen (filename); if (len > 0 && filename[len - 1] == '/') { int fd; struct stat statbuf; FILE *fp; if (open_direction != O_RDONLY) { errno = EISDIR; return NULL; } fd = open (filename, open_direction | open_flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd < 0) return NULL; if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) { close (fd); errno = ENOTDIR; return NULL; } # if GNULIB_FOPEN_GNU fp = fdopen (fd, fdopen_mode_buf); # else fp = fdopen (fd, mode); # endif if (fp == NULL) { int saved_errno = errno; close (fd); errno = saved_errno; } return fp; } } #endif #if GNULIB_FOPEN_GNU if (open_flags_gnu) { int fd; FILE *fp; fd = open (filename, open_direction | open_flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd < 0) return NULL; fp = fdopen (fd, fdopen_mode_buf); if (fp == NULL) { int saved_errno = errno; close (fd); errno = saved_errno; } return fp; } #endif return orig_fopen (filename, mode); } shishi-1.0.3/lib/gl/xalloc.h0000644000000000000000000001531514273615123012505 00000000000000/* xalloc.h -- malloc with out-of-memory checking Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef XALLOC_H_ #define XALLOC_H_ #include #include #include #if GNULIB_XALLOC # include "idx.h" # include "intprops.h" #endif #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef XALLOC_INLINE # define XALLOC_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif #if GNULIB_XALLOC_DIE /* This function is always triggered when memory is exhausted. It must be defined by the application, either explicitly or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ /*extern*/ _Noreturn void xalloc_die (void); #endif /* GNULIB_XALLOC_DIE */ #if GNULIB_XALLOC void *xmalloc (size_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *ximalloc (idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xinmalloc (idx_t n, idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xzalloc (size_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xizalloc (idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xcalloc (size_t n, size_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xicalloc (idx_t n, idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xrealloc (void *p, size_t s) _GL_ATTRIBUTE_ALLOC_SIZE ((2)); void *xirealloc (void *p, idx_t s) _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xreallocarray (void *p, size_t n, size_t s) _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3)); void *xireallocarray (void *p, idx_t n, idx_t s) _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *x2realloc (void *p, size_t *ps) /* superseded by xpalloc */ _GL_ATTRIBUTE_RETURNS_NONNULL; void *x2nrealloc (void *p, size_t *pn, size_t s) /* superseded by xpalloc */ _GL_ATTRIBUTE_RETURNS_NONNULL; void *xpalloc (void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) _GL_ATTRIBUTE_RETURNS_NONNULL; void *xmemdup (void const *p, size_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL; void *ximemdup (void const *p, idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL; char *ximemdup0 (void const *p, idx_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_RETURNS_NONNULL; char *xstrdup (char const *str) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_RETURNS_NONNULL; /* In the following macros, T must be an elementary or structure/union or typedef'ed type, or a pointer to such a type. To apply one of the following macros to a function pointer or array type, you need to typedef it first and use the typedef name. */ /* Allocate an object of type T dynamically, with error checking. */ /* extern t *XMALLOC (typename t); */ # define XMALLOC(t) ((t *) xmalloc (sizeof (t))) /* Allocate memory for N elements of type T, with error checking. */ /* extern t *XNMALLOC (size_t n, typename t); */ # define XNMALLOC(n, t) \ ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t)))) /* Allocate an object of type T dynamically, with error checking, and zero it. */ /* extern t *XZALLOC (typename t); */ # define XZALLOC(t) ((t *) xzalloc (sizeof (t))) /* Allocate memory for N elements of type T, with error checking, and zero it. */ /* extern t *XCALLOC (size_t n, typename t); */ # define XCALLOC(n, t) \ ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t)))) /* Allocate an array of N objects, each with S bytes of memory, dynamically, with error checking. S must be nonzero. */ void *xnmalloc (size_t n, size_t s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL; /* FIXME: Deprecate this in favor of xreallocarray? */ /* Change the size of an allocated block of memory P to an array of N objects each of S bytes, with error checking. S must be nonzero. */ XALLOC_INLINE void *xnrealloc (void *p, size_t n, size_t s) _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3)); XALLOC_INLINE void * xnrealloc (void *p, size_t n, size_t s) { return xreallocarray (p, n, s); } /* Return a pointer to a new buffer of N bytes. This is like xmalloc, except it returns char *. */ char *xcharalloc (size_t n) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL; #endif /* GNULIB_XALLOC */ #ifdef __cplusplus } #endif #if GNULIB_XALLOC && defined __cplusplus /* C++ does not allow conversions from void * to other pointer types without a cast. Use templates to work around the problem when possible. */ template inline T * xrealloc (T *p, size_t s) { return (T *) xrealloc ((void *) p, s); } template inline T * xreallocarray (T *p, size_t n, size_t s) { return (T *) xreallocarray ((void *) p, n, s); } /* FIXME: Deprecate this in favor of xreallocarray? */ template inline T * xnrealloc (T *p, size_t n, size_t s) { return xreallocarray (p, n, s); } template inline T * x2realloc (T *p, size_t *pn) { return (T *) x2realloc ((void *) p, pn); } template inline T * x2nrealloc (T *p, size_t *pn, size_t s) { return (T *) x2nrealloc ((void *) p, pn, s); } template inline T * xmemdup (T const *p, size_t s) { return (T *) xmemdup ((void const *) p, s); } #endif /* GNULIB_XALLOC && C++ */ _GL_INLINE_HEADER_END #endif /* !XALLOC_H_ */ shishi-1.0.3/lib/gl/read-file.c0000644000000000000000000001407714273615123013052 00000000000000/* read-file.c -- read file contents into a string Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. Written by Simon Josefsson and Bruno Haible. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include "read-file.h" /* Get fstat. */ #include /* Get ftello. */ #include /* Get PTRDIFF_MAX. */ #include /* Get malloc, realloc, free. */ #include /* Get explicit_bzero, memcpy. */ #include /* Get errno. */ #include /* Read a STREAM and return a newly allocated string with the content, and set *LENGTH to the length of the string. The string is zero-terminated, but the terminating zero byte is not counted in *LENGTH. On errors, *LENGTH is undefined, errno preserves the values set by system functions (if any), and NULL is returned. If the RF_SENSITIVE flag is set in FLAGS: - You should control the buffering of STREAM using 'setvbuf'. Either clear the buffer of STREAM after closing it, or disable buffering of STREAM before calling this function. - The memory buffer internally allocated will be cleared upon failure. */ char * fread_file (FILE *stream, int flags, size_t *length) { char *buf = NULL; size_t alloc = BUFSIZ; /* For a regular file, allocate a buffer that has exactly the right size. This avoids the need to do dynamic reallocations later. */ { struct stat st; if (fstat (fileno (stream), &st) >= 0 && S_ISREG (st.st_mode)) { off_t pos = ftello (stream); if (pos >= 0 && pos < st.st_size) { off_t alloc_off = st.st_size - pos; /* '1' below, accounts for the trailing NUL. */ if (PTRDIFF_MAX - 1 < alloc_off) { errno = ENOMEM; return NULL; } alloc = alloc_off + 1; } } } if (!(buf = malloc (alloc))) return NULL; /* errno is ENOMEM. */ { size_t size = 0; /* number of bytes read so far */ int save_errno; for (;;) { /* This reads 1 more than the size of a regular file so that we get eof immediately. */ size_t requested = alloc - size; size_t count = fread (buf + size, 1, requested, stream); size += count; if (count != requested) { save_errno = errno; if (ferror (stream)) break; /* Shrink the allocated memory if possible. */ if (size < alloc - 1) { if (flags & RF_SENSITIVE) { char *smaller_buf = malloc (size + 1); if (smaller_buf == NULL) explicit_bzero (buf + size, alloc - size); else { memcpy (smaller_buf, buf, size); explicit_bzero (buf, alloc); free (buf); buf = smaller_buf; } } else { char *smaller_buf = realloc (buf, size + 1); if (smaller_buf != NULL) buf = smaller_buf; } } buf[size] = '\0'; *length = size; return buf; } { char *new_buf; size_t save_alloc = alloc; if (alloc == PTRDIFF_MAX) { save_errno = ENOMEM; break; } if (alloc < PTRDIFF_MAX - alloc / 2) alloc = alloc + alloc / 2; else alloc = PTRDIFF_MAX; if (flags & RF_SENSITIVE) { new_buf = malloc (alloc); if (!new_buf) { /* BUF should be cleared below after the loop. */ save_errno = errno; break; } memcpy (new_buf, buf, save_alloc); explicit_bzero (buf, save_alloc); free (buf); } else if (!(new_buf = realloc (buf, alloc))) { save_errno = errno; break; } buf = new_buf; } } if (flags & RF_SENSITIVE) explicit_bzero (buf, alloc); free (buf); errno = save_errno; return NULL; } } /* Open and read the contents of FILENAME, and return a newly allocated string with the content, and set *LENGTH to the length of the string. The string is zero-terminated, but the terminating zero byte is not counted in *LENGTH. On errors, *LENGTH is undefined, errno preserves the values set by system functions (if any), and NULL is returned. If the RF_BINARY flag is set in FLAGS, the file is opened in binary mode. If the RF_SENSITIVE flag is set in FLAGS, the memory buffer internally allocated will be cleared upon failure. */ char * read_file (const char *filename, int flags, size_t *length) { const char *mode = (flags & RF_BINARY) ? "rbe" : "re"; FILE *stream = fopen (filename, mode); char *out; if (!stream) return NULL; if (flags & RF_SENSITIVE) setvbuf (stream, NULL, _IONBF, 0); out = fread_file (stream, flags, length); if (fclose (stream) != 0) { if (out) { if (flags & RF_SENSITIVE) explicit_bzero (out, *length); free (out); } return NULL; } return out; } shishi-1.0.3/lib/gl/asnprintf.c0000644000000000000000000000211014273615121013205 00000000000000/* Formatted output to strings. Copyright (C) 1999, 2002, 2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "vasnprintf.h" #include char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) { va_list args; char *result; va_start (args, format); result = vasnprintf (resultbuf, lengthp, format, args); va_end (args); return result; } shishi-1.0.3/lib/gl/minmax.h0000644000000000000000000000453214273615123012513 00000000000000/* MIN, MAX macros. Copyright (C) 1995, 1998, 2001, 2003, 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MINMAX_H #define _MINMAX_H /* Note: MIN, MAX are also defined in on some systems (glibc, IRIX, HP-UX, OSF/1). Therefore you might get warnings about MIN, MAX macro redefinitions on some systems; the workaround is to #include this file as the last one among the #include list. */ /* Before we define the following symbols we get the file since otherwise we get redefinitions on some systems if is included after this file. Likewise for . If more than one of these system headers define MIN and MAX, pick just one of the headers (because the definitions most likely are the same). */ #if HAVE_MINMAX_IN_LIMITS_H # include #elif HAVE_MINMAX_IN_SYS_PARAM_H # include #endif /* Note: MIN and MAX should be used with two arguments of the same type. They might not return the minimum and maximum of their two arguments, if the arguments have different types or have unusual floating-point values. For example, on a typical host with 32-bit 'int', 64-bit 'long long', and 64-bit IEEE 754 'double' types: MAX (-1, 2147483648) returns 4294967295. MAX (9007199254740992.0, 9007199254740993) returns 9007199254740992.0. MAX (NaN, 0.0) returns 0.0. MAX (+0.0, -0.0) returns -0.0. and in each case the answer is in some sense bogus. */ /* MAX(a,b) returns the maximum of A and B. */ #ifndef MAX # define MAX(a,b) ((a) > (b) ? (a) : (b)) #endif /* MIN(a,b) returns the minimum of A and B. */ #ifndef MIN # define MIN(a,b) ((a) < (b) ? (a) : (b)) #endif #endif /* _MINMAX_H */ shishi-1.0.3/lib/gl/parse-datetime.y0000644000000000000000000022377314273615123014161 00000000000000%{ /* Parse a string into an internal timestamp. Copyright (C) 1999-2000, 2002-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* Originally written by Steven M. Bellovin while at the University of North Carolina at Chapel Hill. Later tweaked by a couple of people on Usenet. Completely overhauled by Rich $alz and Jim Berets in August, 1990. Modified by Assaf Gordon in 2016 to add debug output. Modified by Paul Eggert in 1999 to do the right thing about local DST. Also modified by Paul Eggert in 2004 to support nanosecond-resolution timestamps, in 2004 to support TZ strings in dates, and in 2017 and 2020 to check for integer overflow and to support longer-than-'long' 'time_t' and 'tv_nsec'. */ #include #include "parse-datetime.h" #include "idx.h" #include "intprops.h" #include "timespec.h" #include "verify.h" #include "strftime.h" /* There's no need to extend the stack, so there's no need to involve alloca. */ #define YYSTACK_USE_ALLOCA 0 /* Tell Bison how much stack space is needed. 20 should be plenty for this grammar, which is not right recursive. Beware setting it too high, since that might cause problems on machines whose implementations have lame stack-overflow checking. */ #define YYMAXDEPTH 20 #define YYINITDEPTH YYMAXDEPTH #include #include #include #include #include #include #include "gettext.h" #define _(str) gettext (str) /* Bison's skeleton tests _STDLIB_H, while some stdlib.h headers use _STDLIB_H_ as witness. Map the latter to the one bison uses. */ /* FIXME: this is temporary. Remove when we have a mechanism to ensure that the version we're using is fixed, too. */ #ifdef _STDLIB_H_ # undef _STDLIB_H # define _STDLIB_H 1 #endif /* Shift A right by B bits portably, by dividing A by 2**B and truncating towards minus infinity. A and B should be free of side effects, and B should be in the range 0 <= B <= INT_BITS - 2, where INT_BITS is the number of useful bits in an int. GNU code can assume that INT_BITS is at least 32. ISO C99 says that A >> B is implementation-defined if A < 0. Some implementations (e.g., UNICOS 9.0 on a Cray Y-MP EL) don't shift right in the usual way when A < 0, so SHR falls back on division if ordinary A >> B doesn't seem to be the usual signed shift. */ #define SHR(a, b) \ (-1 >> 1 == -1 \ ? (a) >> (b) \ : (a) / (1 << (b)) - ((a) % (1 << (b)) < 0)) #define HOUR(x) (60 * 60 * (x)) #define STREQ(a, b) (strcmp (a, b) == 0) /* Verify that time_t is an integer as POSIX requires, and that every time_t value fits in intmax_t. Please file a bug report if these assumptions are false on your platform. */ verify (TYPE_IS_INTEGER (time_t)); verify (!TYPE_SIGNED (time_t) || INTMAX_MIN <= TYPE_MINIMUM (time_t)); verify (TYPE_MAXIMUM (time_t) <= INTMAX_MAX); /* True if N is out of range for time_t. */ static bool time_overflow (intmax_t n) { return ! ((TYPE_SIGNED (time_t) ? TYPE_MINIMUM (time_t) <= n : 0 <= n) && n <= TYPE_MAXIMUM (time_t)); } /* Convert a possibly-signed character to an unsigned character. This is a bit safer than casting to unsigned char, since it catches some type errors that the cast doesn't. */ static unsigned char to_uchar (char ch) { return ch; } static void _GL_ATTRIBUTE_FORMAT ((__printf__, 1, 2)) dbg_printf (char const *msg, ...) { va_list args; /* TODO: use gnulib's 'program_name' instead? */ fputs ("date: ", stderr); va_start (args, msg); vfprintf (stderr, msg, args); va_end (args); } /* An integer value, and the number of digits in its textual representation. */ typedef struct { bool negative; intmax_t value; idx_t digits; } textint; /* An entry in the lexical lookup table. */ typedef struct { char const *name; int type; int value; } table; /* Meridian: am, pm, or 24-hour style. */ enum { MERam, MERpm, MER24 }; /* A reasonable upper bound for the buffer used in debug output. */ enum { DBGBUFSIZE = 100 }; enum { BILLION = 1000000000, LOG10_BILLION = 9 }; /* Relative times. */ typedef struct { /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ intmax_t year; intmax_t month; intmax_t day; intmax_t hour; intmax_t minutes; intmax_t seconds; int ns; } relative_time; #if HAVE_COMPOUND_LITERALS # define RELATIVE_TIME_0 ((relative_time) { 0, 0, 0, 0, 0, 0, 0 }) #else static relative_time const RELATIVE_TIME_0; #endif /* Information passed to and from the parser. */ typedef struct { /* The input string remaining to be parsed. */ const char *input; /* N, if this is the Nth Tuesday. */ intmax_t day_ordinal; /* Day of week; Sunday is 0. */ int day_number; /* tm_isdst flag for the local zone. */ int local_isdst; /* Time zone, in seconds east of UT. */ int time_zone; /* Style used for time. */ int meridian; /* Gregorian year, month, day, hour, minutes, seconds, and nanoseconds. */ textint year; intmax_t month; intmax_t day; intmax_t hour; intmax_t minutes; struct timespec seconds; /* includes nanoseconds */ /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ relative_time rel; /* Presence or counts of nonterminals of various flavors parsed so far. */ bool timespec_seen; bool rels_seen; idx_t dates_seen; idx_t days_seen; idx_t J_zones_seen; idx_t local_zones_seen; idx_t dsts_seen; idx_t times_seen; idx_t zones_seen; bool year_seen; #ifdef GNULIB_PARSE_DATETIME2 /* Print debugging output to stderr. */ bool parse_datetime_debug; #endif /* Which of the 'seen' parts have been printed when debugging. */ bool debug_dates_seen; bool debug_days_seen; bool debug_local_zones_seen; bool debug_times_seen; bool debug_zones_seen; bool debug_year_seen; /* The user specified explicit ordinal day value. */ bool debug_ordinal_day_seen; /* Table of local time zone abbreviations, terminated by a null entry. */ table local_time_zone_table[3]; } parser_control; static bool debugging (parser_control const *pc) { #ifdef GNULIB_PARSE_DATETIME2 return pc->parse_datetime_debug; #else return false; #endif } union YYSTYPE; static int yylex (union YYSTYPE *, parser_control *); static int yyerror (parser_control const *, char const *); static bool time_zone_hhmm (parser_control *, textint, intmax_t); /* Extract into *PC any date and time info from a string of digits of the form e.g., YYYYMMDD, YYMMDD, HHMM, HH (and sometimes YYY, YYYY, ...). */ static void digits_to_date_time (parser_control *pc, textint text_int) { if (pc->dates_seen && ! pc->year.digits && ! pc->rels_seen && (pc->times_seen || 2 < text_int.digits)) { pc->year_seen = true; pc->year = text_int; } else { if (4 < text_int.digits) { pc->dates_seen++; pc->day = text_int.value % 100; pc->month = (text_int.value / 100) % 100; pc->year.value = text_int.value / 10000; pc->year.digits = text_int.digits - 4; } else { pc->times_seen++; if (text_int.digits <= 2) { pc->hour = text_int.value; pc->minutes = 0; } else { pc->hour = text_int.value / 100; pc->minutes = text_int.value % 100; } pc->seconds.tv_sec = 0; pc->seconds.tv_nsec = 0; pc->meridian = MER24; } } } /* Increment PC->rel by FACTOR * REL (FACTOR is 1 or -1). Return true if successful, false if an overflow occurred. */ static bool apply_relative_time (parser_control *pc, relative_time rel, int factor) { if (factor < 0 ? (INT_SUBTRACT_WRAPV (pc->rel.ns, rel.ns, &pc->rel.ns) | INT_SUBTRACT_WRAPV (pc->rel.seconds, rel.seconds, &pc->rel.seconds) | INT_SUBTRACT_WRAPV (pc->rel.minutes, rel.minutes, &pc->rel.minutes) | INT_SUBTRACT_WRAPV (pc->rel.hour, rel.hour, &pc->rel.hour) | INT_SUBTRACT_WRAPV (pc->rel.day, rel.day, &pc->rel.day) | INT_SUBTRACT_WRAPV (pc->rel.month, rel.month, &pc->rel.month) | INT_SUBTRACT_WRAPV (pc->rel.year, rel.year, &pc->rel.year)) : (INT_ADD_WRAPV (pc->rel.ns, rel.ns, &pc->rel.ns) | INT_ADD_WRAPV (pc->rel.seconds, rel.seconds, &pc->rel.seconds) | INT_ADD_WRAPV (pc->rel.minutes, rel.minutes, &pc->rel.minutes) | INT_ADD_WRAPV (pc->rel.hour, rel.hour, &pc->rel.hour) | INT_ADD_WRAPV (pc->rel.day, rel.day, &pc->rel.day) | INT_ADD_WRAPV (pc->rel.month, rel.month, &pc->rel.month) | INT_ADD_WRAPV (pc->rel.year, rel.year, &pc->rel.year))) return false; pc->rels_seen = true; return true; } /* Set PC-> hour, minutes, seconds and nanoseconds members from arguments. */ static void set_hhmmss (parser_control *pc, intmax_t hour, intmax_t minutes, time_t sec, int nsec) { pc->hour = hour; pc->minutes = minutes; pc->seconds.tv_sec = sec; pc->seconds.tv_nsec = nsec; } /* Return a textual representation of the day ordinal/number values in the parser_control struct (e.g., "last wed", "this tues", "thu"). */ static const char * str_days (parser_control *pc, char *buffer, int n) { /* TODO: use relative_time_table for reverse lookup. */ static char const ordinal_values[][11] = { "last", "this", "next/first", "(SECOND)", /* SECOND is commented out in relative_time_table. */ "third", "fourth", "fifth", "sixth", "seventh", "eight", "ninth", "tenth", "eleventh", "twelfth" }; static char const days_values[][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; int len; /* Don't add an ordinal prefix if the user didn't specify it (e.g., "this wed" vs "wed"). */ if (pc->debug_ordinal_day_seen) { /* Use word description if possible (e.g., -1 = last, 3 = third). */ len = (-1 <= pc->day_ordinal && pc->day_ordinal <= 12 ? snprintf (buffer, n, "%s", ordinal_values[pc->day_ordinal + 1]) : snprintf (buffer, n, "%"PRIdMAX, pc->day_ordinal)); } else { buffer[0] = '\0'; len = 0; } /* Add the day name */ if (0 <= pc->day_number && pc->day_number <= 6 && 0 <= len && len < n) snprintf (buffer + len, n - len, &" %s"[len == 0], days_values[pc->day_number]); else { /* invalid day_number value - should never happen */ } return buffer; } /* Convert a time zone to its string representation. */ enum { TIME_ZONE_BUFSIZE = INT_STRLEN_BOUND (intmax_t) + sizeof ":MM:SS" } ; static char const * time_zone_str (int time_zone, char time_zone_buf[TIME_ZONE_BUFSIZE]) { char *p = time_zone_buf; char sign = time_zone < 0 ? '-' : '+'; int hour = abs (time_zone / (60 * 60)); p += sprintf (time_zone_buf, "%c%02d", sign, hour); int offset_from_hour = abs (time_zone % (60 * 60)); if (offset_from_hour != 0) { int mm = offset_from_hour / 60; int ss = offset_from_hour % 60; *p++ = ':'; *p++ = '0' + mm / 10; *p++ = '0' + mm % 10; if (ss) { *p++ = ':'; *p++ = '0' + ss / 10; *p++ = '0' + ss % 10; } *p = '\0'; } return time_zone_buf; } /* debugging: print the current time in the parser_control structure. The parser will increment "*_seen" members for those which were parsed. This function will print only newly seen parts. */ static void debug_print_current_time (char const *item, parser_control *pc) { bool space = false; if (!debugging (pc)) return; /* no newline, more items printed below */ dbg_printf (_("parsed %s part: "), item); if (pc->dates_seen && !pc->debug_dates_seen) { /*TODO: use pc->year.negative? */ fprintf (stderr, "(Y-M-D) %04"PRIdMAX"-%02"PRIdMAX"-%02"PRIdMAX, pc->year.value, pc->month, pc->day); pc->debug_dates_seen = true; space = true; } if (pc->year_seen != pc->debug_year_seen) { if (space) fputc (' ', stderr); fprintf (stderr, _("year: %04"PRIdMAX), pc->year.value); pc->debug_year_seen = pc->year_seen; space = true; } if (pc->times_seen && !pc->debug_times_seen) { intmax_t sec = pc->seconds.tv_sec; fprintf (stderr, &" %02"PRIdMAX":%02"PRIdMAX":%02"PRIdMAX[!space], pc->hour, pc->minutes, sec); if (pc->seconds.tv_nsec != 0) { int nsec = pc->seconds.tv_nsec; fprintf (stderr, ".%09d", nsec); } if (pc->meridian == MERpm) fputs ("pm", stderr); pc->debug_times_seen = true; space = true; } if (pc->days_seen && !pc->debug_days_seen) { if (space) fputc (' ', stderr); char tmp[DBGBUFSIZE]; fprintf (stderr, _("%s (day ordinal=%"PRIdMAX" number=%d)"), str_days (pc, tmp, sizeof tmp), pc->day_ordinal, pc->day_number); pc->debug_days_seen = true; space = true; } /* local zone strings only change the DST settings, not the timezone value. If seen, inform about the DST. */ if (pc->local_zones_seen && !pc->debug_local_zones_seen) { fprintf (stderr, &" isdst=%d%s"[!space], pc->local_isdst, pc->dsts_seen ? " DST" : ""); pc->debug_local_zones_seen = true; space = true; } if (pc->zones_seen && !pc->debug_zones_seen) { char time_zone_buf[TIME_ZONE_BUFSIZE]; fprintf (stderr, &" UTC%s"[!space], time_zone_str (pc->time_zone, time_zone_buf)); pc->debug_zones_seen = true; space = true; } if (pc->timespec_seen) { intmax_t sec = pc->seconds.tv_sec; if (space) fputc (' ', stderr); fprintf (stderr, _("number of seconds: %"PRIdMAX), sec); } fputc ('\n', stderr); } /* Debugging: print the current relative values. */ static bool print_rel_part (bool space, intmax_t val, char const *name) { if (val == 0) return space; fprintf (stderr, &" %+"PRIdMAX" %s"[!space], val, name); return true; } static void debug_print_relative_time (char const *item, parser_control const *pc) { bool space = false; if (!debugging (pc)) return; /* no newline, more items printed below */ dbg_printf (_("parsed %s part: "), item); if (pc->rel.year == 0 && pc->rel.month == 0 && pc->rel.day == 0 && pc->rel.hour == 0 && pc->rel.minutes == 0 && pc->rel.seconds == 0 && pc->rel.ns == 0) { /* Special case: relative time of this/today/now */ fputs (_("today/this/now\n"), stderr); return; } space = print_rel_part (space, pc->rel.year, "year(s)"); space = print_rel_part (space, pc->rel.month, "month(s)"); space = print_rel_part (space, pc->rel.day, "day(s)"); space = print_rel_part (space, pc->rel.hour, "hour(s)"); space = print_rel_part (space, pc->rel.minutes, "minutes"); space = print_rel_part (space, pc->rel.seconds, "seconds"); print_rel_part (space, pc->rel.ns, "nanoseconds"); fputc ('\n', stderr); } %} /* We want a reentrant parser, even if the TZ manipulation and the calls to localtime and gmtime are not reentrant. */ %define api.pure %parse-param { parser_control *pc } %lex-param { parser_control *pc } /* This grammar has 31 shift/reduce conflicts. */ %expect 31 %union { intmax_t intval; textint textintval; struct timespec timespec; relative_time rel; } %token tAGO %token tDST %token tYEAR_UNIT tMONTH_UNIT tHOUR_UNIT tMINUTE_UNIT tSEC_UNIT %token tDAY_UNIT tDAY_SHIFT %token tDAY tDAYZONE tLOCAL_ZONE tMERIDIAN %token tMONTH tORDINAL tZONE %token tSNUMBER tUNUMBER %token tSDECIMAL_NUMBER tUDECIMAL_NUMBER %type o_colon_minutes %type seconds signed_seconds unsigned_seconds %type relunit relunit_snumber dayshift %% spec: timespec | items ; timespec: '@' seconds { pc->seconds = $2; pc->timespec_seen = true; debug_print_current_time (_("number of seconds"), pc); } ; items: /* empty */ | items item ; item: datetime { pc->times_seen++; pc->dates_seen++; debug_print_current_time (_("datetime"), pc); } | time { pc->times_seen++; debug_print_current_time (_("time"), pc); } | local_zone { pc->local_zones_seen++; debug_print_current_time (_("local_zone"), pc); } | 'J' { pc->J_zones_seen++; debug_print_current_time ("J", pc); } | zone { pc->zones_seen++; debug_print_current_time (_("zone"), pc); } | date { pc->dates_seen++; debug_print_current_time (_("date"), pc); } | day { pc->days_seen++; debug_print_current_time (_("day"), pc); } | rel { debug_print_relative_time (_("relative"), pc); } | number { debug_print_current_time (_("number"), pc); } | hybrid { debug_print_relative_time (_("hybrid"), pc); } ; datetime: iso_8601_datetime ; iso_8601_datetime: iso_8601_date 'T' iso_8601_time ; time: tUNUMBER tMERIDIAN { set_hhmmss (pc, $1.value, 0, 0, 0); pc->meridian = $2; } | tUNUMBER ':' tUNUMBER tMERIDIAN { set_hhmmss (pc, $1.value, $3.value, 0, 0); pc->meridian = $4; } | tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN { set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); pc->meridian = $6; } | iso_8601_time ; iso_8601_time: tUNUMBER zone_offset { set_hhmmss (pc, $1.value, 0, 0, 0); pc->meridian = MER24; } | tUNUMBER ':' tUNUMBER o_zone_offset { set_hhmmss (pc, $1.value, $3.value, 0, 0); pc->meridian = MER24; } | tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset { set_hhmmss (pc, $1.value, $3.value, $5.tv_sec, $5.tv_nsec); pc->meridian = MER24; } ; o_zone_offset: /* empty */ | zone_offset ; zone_offset: tSNUMBER o_colon_minutes { pc->zones_seen++; if (! time_zone_hhmm (pc, $1, $2)) YYABORT; } ; /* Local zone strings affect only the DST setting, and take effect only if the current TZ setting is relevant. Example 1: 'EEST' is parsed as tLOCAL_ZONE, as it relates to the effective TZ: TZ='Europe/Helsinki' date -d '2016-06-30 EEST' Example 2: 'EEST' is parsed as tDAYZONE: TZ='Asia/Tokyo' date -d '2016-06-30 EEST' This is implemented by probing the next three calendar quarters of the effective timezone and looking for DST changes - if found, the timezone name (EEST) is inserted into the lexical lookup table with type tLOCAL_ZONE. (Search for 'quarter' comment in 'parse_datetime2'.) */ local_zone: tLOCAL_ZONE { pc->local_isdst = $1; } | tLOCAL_ZONE tDST { pc->local_isdst = 1; pc->dsts_seen++; } ; /* Note 'T' is a special case, as it is used as the separator in ISO 8601 date and time of day representation. */ zone: tZONE { pc->time_zone = $1; } | 'T' { pc->time_zone = -HOUR (7); } | tZONE relunit_snumber { pc->time_zone = $1; if (! apply_relative_time (pc, $2, 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } | 'T' relunit_snumber { pc->time_zone = -HOUR (7); if (! apply_relative_time (pc, $2, 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } | tZONE tSNUMBER o_colon_minutes { if (! time_zone_hhmm (pc, $2, $3)) YYABORT; if (INT_ADD_WRAPV (pc->time_zone, $1, &pc->time_zone)) YYABORT; } | tDAYZONE { pc->time_zone = $1 + 60 * 60; } | tZONE tDST { pc->time_zone = $1 + 60 * 60; } ; day: tDAY { pc->day_ordinal = 0; pc->day_number = $1; } | tDAY ',' { pc->day_ordinal = 0; pc->day_number = $1; } | tORDINAL tDAY { pc->day_ordinal = $1; pc->day_number = $2; pc->debug_ordinal_day_seen = true; } | tUNUMBER tDAY { pc->day_ordinal = $1.value; pc->day_number = $2; pc->debug_ordinal_day_seen = true; } ; date: tUNUMBER '/' tUNUMBER { pc->month = $1.value; pc->day = $3.value; } | tUNUMBER '/' tUNUMBER '/' tUNUMBER { /* Interpret as YYYY/MM/DD if the first value has 4 or more digits, otherwise as MM/DD/YY. The goal in recognizing YYYY/MM/DD is solely to support legacy machine-generated dates like those in an RCS log listing. If you want portability, use the ISO 8601 format. */ if (4 <= $1.digits) { if (debugging (pc)) { intmax_t digits = $1.digits; dbg_printf (_("warning: value %"PRIdMAX" has %"PRIdMAX" digits. " "Assuming YYYY/MM/DD\n"), $1.value, digits); } pc->year = $1; pc->month = $3.value; pc->day = $5.value; } else { if (debugging (pc)) dbg_printf (_("warning: value %"PRIdMAX" has less than 4 digits. " "Assuming MM/DD/YY[YY]\n"), $1.value); pc->month = $1.value; pc->day = $3.value; pc->year = $5; } } | tUNUMBER tMONTH tSNUMBER { /* E.g., 17-JUN-1992. */ pc->day = $1.value; pc->month = $2; if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; pc->year.digits = $3.digits; } | tMONTH tSNUMBER tSNUMBER { /* E.g., JUN-17-1992. */ pc->month = $1; if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->day)) YYABORT; if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->year.value)) YYABORT; pc->year.digits = $3.digits; } | tMONTH tUNUMBER { pc->month = $1; pc->day = $2.value; } | tMONTH tUNUMBER ',' tUNUMBER { pc->month = $1; pc->day = $2.value; pc->year = $4; } | tUNUMBER tMONTH { pc->day = $1.value; pc->month = $2; } | tUNUMBER tMONTH tUNUMBER { pc->day = $1.value; pc->month = $2; pc->year = $3; } | iso_8601_date ; iso_8601_date: tUNUMBER tSNUMBER tSNUMBER { /* ISO 8601 format. YYYY-MM-DD. */ pc->year = $1; if (INT_SUBTRACT_WRAPV (0, $2.value, &pc->month)) YYABORT; if (INT_SUBTRACT_WRAPV (0, $3.value, &pc->day)) YYABORT; } ; rel: relunit tAGO { if (! apply_relative_time (pc, $1, $2)) YYABORT; } | relunit { if (! apply_relative_time (pc, $1, 1)) YYABORT; } | dayshift { if (! apply_relative_time (pc, $1, 1)) YYABORT; } ; relunit: tORDINAL tYEAR_UNIT { $$ = RELATIVE_TIME_0; $$.year = $1; } | tUNUMBER tYEAR_UNIT { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | tYEAR_UNIT { $$ = RELATIVE_TIME_0; $$.year = 1; } | tORDINAL tMONTH_UNIT { $$ = RELATIVE_TIME_0; $$.month = $1; } | tUNUMBER tMONTH_UNIT { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | tMONTH_UNIT { $$ = RELATIVE_TIME_0; $$.month = 1; } | tORDINAL tDAY_UNIT { $$ = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ($1, $2, &$$.day)) YYABORT; } | tUNUMBER tDAY_UNIT { $$ = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | tDAY_UNIT { $$ = RELATIVE_TIME_0; $$.day = $1; } | tORDINAL tHOUR_UNIT { $$ = RELATIVE_TIME_0; $$.hour = $1; } | tUNUMBER tHOUR_UNIT { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | tHOUR_UNIT { $$ = RELATIVE_TIME_0; $$.hour = 1; } | tORDINAL tMINUTE_UNIT { $$ = RELATIVE_TIME_0; $$.minutes = $1; } | tUNUMBER tMINUTE_UNIT { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | tMINUTE_UNIT { $$ = RELATIVE_TIME_0; $$.minutes = 1; } | tORDINAL tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = $1; } | tUNUMBER tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } | tSDECIMAL_NUMBER tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | tUDECIMAL_NUMBER tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = $1.tv_sec; $$.ns = $1.tv_nsec; } | tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = 1; } | relunit_snumber ; relunit_snumber: tSNUMBER tYEAR_UNIT { $$ = RELATIVE_TIME_0; $$.year = $1.value; } | tSNUMBER tMONTH_UNIT { $$ = RELATIVE_TIME_0; $$.month = $1.value; } | tSNUMBER tDAY_UNIT { $$ = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ($1.value, $2, &$$.day)) YYABORT; } | tSNUMBER tHOUR_UNIT { $$ = RELATIVE_TIME_0; $$.hour = $1.value; } | tSNUMBER tMINUTE_UNIT { $$ = RELATIVE_TIME_0; $$.minutes = $1.value; } | tSNUMBER tSEC_UNIT { $$ = RELATIVE_TIME_0; $$.seconds = $1.value; } ; dayshift: tDAY_SHIFT { $$ = RELATIVE_TIME_0; $$.day = $1; } ; seconds: signed_seconds | unsigned_seconds; signed_seconds: tSDECIMAL_NUMBER | tSNUMBER { if (time_overflow ($1.value)) YYABORT; $$.tv_sec = $1.value; $$.tv_nsec = 0; } ; unsigned_seconds: tUDECIMAL_NUMBER | tUNUMBER { if (time_overflow ($1.value)) YYABORT; $$.tv_sec = $1.value; $$.tv_nsec = 0; } ; number: tUNUMBER { digits_to_date_time (pc, $1); } ; hybrid: tUNUMBER relunit_snumber { /* Hybrid all-digit and relative offset, so that we accept e.g., "YYYYMMDD +N days" as well as "YYYYMMDD N days". */ digits_to_date_time (pc, $1); if (! apply_relative_time (pc, $2, 1)) YYABORT; } ; o_colon_minutes: /* empty */ { $$ = -1; } | ':' tUNUMBER { $$ = $2.value; } ; %% static table const meridian_table[] = { { "AM", tMERIDIAN, MERam }, { "A.M.", tMERIDIAN, MERam }, { "PM", tMERIDIAN, MERpm }, { "P.M.", tMERIDIAN, MERpm }, { NULL, 0, 0 } }; static table const dst_table[] = { { "DST", tDST, 0 } }; static table const month_and_day_table[] = { { "JANUARY", tMONTH, 1 }, { "FEBRUARY", tMONTH, 2 }, { "MARCH", tMONTH, 3 }, { "APRIL", tMONTH, 4 }, { "MAY", tMONTH, 5 }, { "JUNE", tMONTH, 6 }, { "JULY", tMONTH, 7 }, { "AUGUST", tMONTH, 8 }, { "SEPTEMBER",tMONTH, 9 }, { "SEPT", tMONTH, 9 }, { "OCTOBER", tMONTH, 10 }, { "NOVEMBER", tMONTH, 11 }, { "DECEMBER", tMONTH, 12 }, { "SUNDAY", tDAY, 0 }, { "MONDAY", tDAY, 1 }, { "TUESDAY", tDAY, 2 }, { "TUES", tDAY, 2 }, { "WEDNESDAY",tDAY, 3 }, { "WEDNES", tDAY, 3 }, { "THURSDAY", tDAY, 4 }, { "THUR", tDAY, 4 }, { "THURS", tDAY, 4 }, { "FRIDAY", tDAY, 5 }, { "SATURDAY", tDAY, 6 }, { NULL, 0, 0 } }; static table const time_units_table[] = { { "YEAR", tYEAR_UNIT, 1 }, { "MONTH", tMONTH_UNIT, 1 }, { "FORTNIGHT",tDAY_UNIT, 14 }, { "WEEK", tDAY_UNIT, 7 }, { "DAY", tDAY_UNIT, 1 }, { "HOUR", tHOUR_UNIT, 1 }, { "MINUTE", tMINUTE_UNIT, 1 }, { "MIN", tMINUTE_UNIT, 1 }, { "SECOND", tSEC_UNIT, 1 }, { "SEC", tSEC_UNIT, 1 }, { NULL, 0, 0 } }; /* Assorted relative-time words. */ static table const relative_time_table[] = { { "TOMORROW", tDAY_SHIFT, 1 }, { "YESTERDAY",tDAY_SHIFT, -1 }, { "TODAY", tDAY_SHIFT, 0 }, { "NOW", tDAY_SHIFT, 0 }, { "LAST", tORDINAL, -1 }, { "THIS", tORDINAL, 0 }, { "NEXT", tORDINAL, 1 }, { "FIRST", tORDINAL, 1 }, /*{ "SECOND", tORDINAL, 2 }, */ { "THIRD", tORDINAL, 3 }, { "FOURTH", tORDINAL, 4 }, { "FIFTH", tORDINAL, 5 }, { "SIXTH", tORDINAL, 6 }, { "SEVENTH", tORDINAL, 7 }, { "EIGHTH", tORDINAL, 8 }, { "NINTH", tORDINAL, 9 }, { "TENTH", tORDINAL, 10 }, { "ELEVENTH", tORDINAL, 11 }, { "TWELFTH", tORDINAL, 12 }, { "AGO", tAGO, -1 }, { "HENCE", tAGO, 1 }, { NULL, 0, 0 } }; /* The universal time zone table. These labels can be used even for timestamps that would not otherwise be valid, e.g., GMT timestamps oin London during summer. */ static table const universal_time_zone_table[] = { { "GMT", tZONE, HOUR ( 0) }, /* Greenwich Mean */ { "UT", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ { "UTC", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* The time zone table. This table is necessarily incomplete, as time zone abbreviations are ambiguous; e.g., Australians interpret "EST" as Eastern time in Australia, not as US Eastern Standard Time. You cannot rely on parse_datetime to handle arbitrary time zone abbreviations; use numeric abbreviations like "-0500" instead. */ static table const time_zone_table[] = { { "WET", tZONE, HOUR ( 0) }, /* Western European */ { "WEST", tDAYZONE, HOUR ( 0) }, /* Western European Summer */ { "BST", tDAYZONE, HOUR ( 0) }, /* British Summer */ { "ART", tZONE, -HOUR ( 3) }, /* Argentina */ { "BRT", tZONE, -HOUR ( 3) }, /* Brazil */ { "BRST", tDAYZONE, -HOUR ( 3) }, /* Brazil Summer */ { "NST", tZONE, -(HOUR ( 3) + 30 * 60) }, /* Newfoundland Standard */ { "NDT", tDAYZONE,-(HOUR ( 3) + 30 * 60) }, /* Newfoundland Daylight */ { "AST", tZONE, -HOUR ( 4) }, /* Atlantic Standard */ { "ADT", tDAYZONE, -HOUR ( 4) }, /* Atlantic Daylight */ { "CLT", tZONE, -HOUR ( 4) }, /* Chile */ { "CLST", tDAYZONE, -HOUR ( 4) }, /* Chile Summer */ { "EST", tZONE, -HOUR ( 5) }, /* Eastern Standard */ { "EDT", tDAYZONE, -HOUR ( 5) }, /* Eastern Daylight */ { "CST", tZONE, -HOUR ( 6) }, /* Central Standard */ { "CDT", tDAYZONE, -HOUR ( 6) }, /* Central Daylight */ { "MST", tZONE, -HOUR ( 7) }, /* Mountain Standard */ { "MDT", tDAYZONE, -HOUR ( 7) }, /* Mountain Daylight */ { "PST", tZONE, -HOUR ( 8) }, /* Pacific Standard */ { "PDT", tDAYZONE, -HOUR ( 8) }, /* Pacific Daylight */ { "AKST", tZONE, -HOUR ( 9) }, /* Alaska Standard */ { "AKDT", tDAYZONE, -HOUR ( 9) }, /* Alaska Daylight */ { "HST", tZONE, -HOUR (10) }, /* Hawaii Standard */ { "HAST", tZONE, -HOUR (10) }, /* Hawaii-Aleutian Standard */ { "HADT", tDAYZONE, -HOUR (10) }, /* Hawaii-Aleutian Daylight */ { "SST", tZONE, -HOUR (12) }, /* Samoa Standard */ { "WAT", tZONE, HOUR ( 1) }, /* West Africa */ { "CET", tZONE, HOUR ( 1) }, /* Central European */ { "CEST", tDAYZONE, HOUR ( 1) }, /* Central European Summer */ { "MET", tZONE, HOUR ( 1) }, /* Middle European */ { "MEZ", tZONE, HOUR ( 1) }, /* Middle European */ { "MEST", tDAYZONE, HOUR ( 1) }, /* Middle European Summer */ { "MESZ", tDAYZONE, HOUR ( 1) }, /* Middle European Summer */ { "EET", tZONE, HOUR ( 2) }, /* Eastern European */ { "EEST", tDAYZONE, HOUR ( 2) }, /* Eastern European Summer */ { "CAT", tZONE, HOUR ( 2) }, /* Central Africa */ { "SAST", tZONE, HOUR ( 2) }, /* South Africa Standard */ { "EAT", tZONE, HOUR ( 3) }, /* East Africa */ { "MSK", tZONE, HOUR ( 3) }, /* Moscow */ { "MSD", tDAYZONE, HOUR ( 3) }, /* Moscow Daylight */ { "IST", tZONE, (HOUR ( 5) + 30 * 60) }, /* India Standard */ { "SGT", tZONE, HOUR ( 8) }, /* Singapore */ { "KST", tZONE, HOUR ( 9) }, /* Korea Standard */ { "JST", tZONE, HOUR ( 9) }, /* Japan Standard */ { "GST", tZONE, HOUR (10) }, /* Guam Standard */ { "NZST", tZONE, HOUR (12) }, /* New Zealand Standard */ { "NZDT", tDAYZONE, HOUR (12) }, /* New Zealand Daylight */ { NULL, 0, 0 } }; /* Military time zone table. RFC 822 got these backwards, but RFC 5322 makes the incorrect treatment optional, so do them the right way here. 'J' is special, as it is local time. 'T' is also special, as it is the separator in ISO 8601 date and time of day representation. */ static table const military_table[] = { { "A", tZONE, HOUR ( 1) }, { "B", tZONE, HOUR ( 2) }, { "C", tZONE, HOUR ( 3) }, { "D", tZONE, HOUR ( 4) }, { "E", tZONE, HOUR ( 5) }, { "F", tZONE, HOUR ( 6) }, { "G", tZONE, HOUR ( 7) }, { "H", tZONE, HOUR ( 8) }, { "I", tZONE, HOUR ( 9) }, { "J", 'J', 0 }, { "K", tZONE, HOUR (10) }, { "L", tZONE, HOUR (11) }, { "M", tZONE, HOUR (12) }, { "N", tZONE, -HOUR ( 1) }, { "O", tZONE, -HOUR ( 2) }, { "P", tZONE, -HOUR ( 3) }, { "Q", tZONE, -HOUR ( 4) }, { "R", tZONE, -HOUR ( 5) }, { "S", tZONE, -HOUR ( 6) }, { "T", 'T', 0 }, { "U", tZONE, -HOUR ( 8) }, { "V", tZONE, -HOUR ( 9) }, { "W", tZONE, -HOUR (10) }, { "X", tZONE, -HOUR (11) }, { "Y", tZONE, -HOUR (12) }, { "Z", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* Convert a time zone expressed as HH:MM into an integer count of seconds. If MM is negative, then S is of the form HHMM and needs to be picked apart; otherwise, S is of the form HH. As specified in https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03, allow only valid TZ range, and consider first two digits as hours, if no minutes specified. Return true if successful. */ static bool time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) { intmax_t n_minutes; bool overflow = false; /* If the length of S is 1 or 2 and no minutes are specified, interpret it as a number of hours. */ if (s.digits <= 2 && mm < 0) s.value *= 100; if (mm < 0) n_minutes = (s.value / 100) * 60 + s.value % 100; else { overflow |= INT_MULTIPLY_WRAPV (s.value, 60, &n_minutes); overflow |= (s.negative ? INT_SUBTRACT_WRAPV (n_minutes, mm, &n_minutes) : INT_ADD_WRAPV (n_minutes, mm, &n_minutes)); } if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) return false; pc->time_zone = n_minutes * 60; return true; } static int to_hour (intmax_t hours, int meridian) { switch (meridian) { default: /* Pacify GCC. */ case MER24: return 0 <= hours && hours < 24 ? hours : -1; case MERam: return 0 < hours && hours < 12 ? hours : hours == 12 ? 0 : -1; case MERpm: return 0 < hours && hours < 12 ? hours + 12 : hours == 12 ? 12 : -1; } } enum { TM_YEAR_BASE = 1900 }; enum { TM_YEAR_BUFSIZE = INT_BUFSIZE_BOUND (int) + 1 }; /* Convert TM_YEAR, a year minus 1900, to a string that is numerically correct even if subtracting 1900 would overflow. */ static char const * tm_year_str (int tm_year, char buf[TM_YEAR_BUFSIZE]) { verify (TM_YEAR_BASE % 100 == 0); sprintf (buf, &"-%02d%02d"[-TM_YEAR_BASE <= tm_year], abs (tm_year / 100 + TM_YEAR_BASE / 100), abs (tm_year % 100)); return buf; } /* Convert a text year number to a year minus 1900, working correctly even if the input is in the range INT_MAX .. INT_MAX + 1900 - 1. */ static bool to_tm_year (textint textyear, bool debug, int *tm_year) { intmax_t year = textyear.value; /* XPG4 suggests that years 00-68 map to 2000-2068, and years 69-99 map to 1969-1999. */ if (0 <= year && textyear.digits == 2) { year += year < 69 ? 2000 : 1900; if (debug) dbg_printf (_("warning: adjusting year value %"PRIdMAX " to %"PRIdMAX"\n"), textyear.value, year); } if (year < 0 ? INT_SUBTRACT_WRAPV (-TM_YEAR_BASE, year, tm_year) : INT_SUBTRACT_WRAPV (year, TM_YEAR_BASE, tm_year)) { if (debug) dbg_printf (_("error: out-of-range year %"PRIdMAX"\n"), year); return false; } return true; } static table const * _GL_ATTRIBUTE_PURE lookup_zone (parser_control const *pc, char const *name) { table const *tp; for (tp = universal_time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; /* Try local zone abbreviations before those in time_zone_table, as the local ones are more likely to be right. */ for (tp = pc->local_time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; for (tp = time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; return NULL; } #if ! HAVE_TM_GMTOFF /* Yield the difference between *A and *B, measured in seconds, ignoring leap seconds. The body of this function is taken directly from the GNU C Library; see strftime.c. */ static int tm_diff (const struct tm *a, const struct tm *b) { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow in leap day calculations, but it's OK to assume that A and B are close to each other. */ int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (b->tm_year & 3); int a100 = a4 / 25 - (a4 % 25 < 0); int b100 = b4 / 25 - (b4 % 25 < 0); int a400 = SHR (a100, 2); int b400 = SHR (b100, 2); int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); int years = a->tm_year - b->tm_year; int days = (365 * years + intervening_leap_days + (a->tm_yday - b->tm_yday)); return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) + (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec)); } #endif /* ! HAVE_TM_GMTOFF */ static table const * lookup_word (parser_control const *pc, char *word) { char *p; char *q; idx_t wordlen; table const *tp; bool period_found; bool abbrev; /* Make it uppercase. */ for (p = word; *p; p++) *p = c_toupper (to_uchar (*p)); for (tp = meridian_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* See if we have an abbreviation for a month. */ wordlen = strlen (word); abbrev = wordlen == 3 || (wordlen == 4 && word[3] == '.'); for (tp = month_and_day_table; tp->name; tp++) if ((abbrev ? strncmp (word, tp->name, 3) : strcmp (word, tp->name)) == 0) return tp; if ((tp = lookup_zone (pc, word))) return tp; if (strcmp (word, dst_table[0].name) == 0) return dst_table; for (tp = time_units_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* Strip off any plural and try the units table again. */ if (word[wordlen - 1] == 'S') { word[wordlen - 1] = '\0'; for (tp = time_units_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; word[wordlen - 1] = 'S'; /* For "this" in relative_time_table. */ } for (tp = relative_time_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* Military time zones. */ if (wordlen == 1) for (tp = military_table; tp->name; tp++) if (word[0] == tp->name[0]) return tp; /* Drop out any periods and try the time zone table again. */ for (period_found = false, p = q = word; (*p = *q); q++) if (*q == '.') period_found = true; else p++; if (period_found && (tp = lookup_zone (pc, word))) return tp; return NULL; } static int yylex (union YYSTYPE *lvalp, parser_control *pc) { unsigned char c; for (;;) { while (c = *pc->input, c_isspace (c)) pc->input++; if (c_isdigit (c) || c == '-' || c == '+') { char const *p = pc->input; int sign; if (c == '-' || c == '+') { sign = c == '-' ? -1 : 1; while (c = *(pc->input = ++p), c_isspace (c)) continue; if (! c_isdigit (c)) /* skip the '-' sign */ continue; } else sign = 0; time_t value = 0; do { if (INT_MULTIPLY_WRAPV (value, 10, &value)) return '?'; if (INT_ADD_WRAPV (value, sign < 0 ? '0' - c : c - '0', &value)) return '?'; c = *++p; } while (c_isdigit (c)); if ((c == '.' || c == ',') && c_isdigit (p[1])) { time_t s = value; int digits; /* Accumulate fraction, to ns precision. */ p++; int ns = *p++ - '0'; for (digits = 2; digits <= LOG10_BILLION; digits++) { ns *= 10; if (c_isdigit (*p)) ns += *p++ - '0'; } /* Skip excess digits, truncating toward -Infinity. */ if (sign < 0) for (; c_isdigit (*p); p++) if (*p != '0') { ns++; break; } while (c_isdigit (*p)) p++; /* Adjust to the timespec convention, which is that tv_nsec is always a positive offset even if tv_sec is negative. */ if (sign < 0 && ns) { if (INT_SUBTRACT_WRAPV (s, 1, &s)) return '?'; ns = BILLION - ns; } lvalp->timespec.tv_sec = s; lvalp->timespec.tv_nsec = ns; pc->input = p; return sign ? tSDECIMAL_NUMBER : tUDECIMAL_NUMBER; } else { lvalp->textintval.negative = sign < 0; lvalp->textintval.value = value; lvalp->textintval.digits = p - pc->input; pc->input = p; return sign ? tSNUMBER : tUNUMBER; } } if (c_isalpha (c)) { char buff[20]; char *p = buff; table const *tp; do { if (p < buff + sizeof buff - 1) *p++ = c; c = *++pc->input; } while (c_isalpha (c) || c == '.'); *p = '\0'; tp = lookup_word (pc, buff); if (! tp) { if (debugging (pc)) dbg_printf (_("error: unknown word '%s'\n"), buff); return '?'; } lvalp->intval = tp->value; return tp->type; } if (c != '(') return to_uchar (*pc->input++); idx_t count = 0; do { c = *pc->input++; if (c == '\0') return c; if (c == '(') count++; else if (c == ')') count--; } while (count != 0); } } /* Do nothing if the parser reports an error. */ static int yyerror (_GL_UNUSED parser_control const *pc, _GL_UNUSED char const *s) { return 0; } /* If *TM0 is the old and *TM1 is the new value of a struct tm after passing it to mktime_z, return true if it's OK. It's not OK if mktime failed or if *TM0 has out-of-range mainline members. The caller should set TM1->tm_wday to -1 before calling mktime, as a negative tm_wday is how mktime failure is inferred. */ static bool mktime_ok (struct tm const *tm0, struct tm const *tm1) { if (tm1->tm_wday < 0) return false; return ! ((tm0->tm_sec ^ tm1->tm_sec) | (tm0->tm_min ^ tm1->tm_min) | (tm0->tm_hour ^ tm1->tm_hour) | (tm0->tm_mday ^ tm1->tm_mday) | (tm0->tm_mon ^ tm1->tm_mon) | (tm0->tm_year ^ tm1->tm_year)); } /* Debugging: format a 'struct tm' into a buffer, taking the parser's timezone information into account (if pc != NULL). */ static char const * debug_strfdatetime (struct tm const *tm, parser_control const *pc, char *buf, int n) { /* TODO: 1. find an optimal way to print date string in a clear and unambiguous format. Currently, always add '(Y-M-D)' prefix. Consider '2016y01m10d' or 'year(2016) month(01) day(10)'. If the user needs debug printing, it means he/she already having issues with the parsing - better to avoid formats that could be mis-interpreted (e.g., just YYYY-MM-DD). 2. Can strftime be used instead? depends if it is portable and can print invalid dates on all systems. 3. Print timezone information ? 4. Print DST information ? 5. Print nanosecond information ? NOTE: Printed date/time values might not be valid, e.g., '2016-02-31' or '2016-19-2016' . These are the values as parsed from the user string, before validation. */ int m = nstrftime (buf, n, "(Y-M-D) %Y-%m-%d %H:%M:%S", tm, 0, 0); /* If parser_control information was provided (for timezone), and there's enough space in the buffer, add timezone info. */ if (pc && m < n && pc->zones_seen) { int tz = pc->time_zone; /* Account for DST if tLOCAL_ZONE was seen. */ if (pc->local_zones_seen && !pc->zones_seen && 0 < pc->local_isdst) tz += 60 * 60; char time_zone_buf[TIME_ZONE_BUFSIZE]; snprintf (&buf[m], n - m, " TZ=%s", time_zone_str (tz, time_zone_buf)); } return buf; } static char const * debug_strfdate (struct tm const *tm, char *buf, int n) { char tm_year_buf[TM_YEAR_BUFSIZE]; snprintf (buf, n, "(Y-M-D) %s-%02d-%02d", tm_year_str (tm->tm_year, tm_year_buf), tm->tm_mon + 1, tm->tm_mday); return buf; } static char const * debug_strftime (struct tm const *tm, char *buf, int n) { snprintf (buf, n, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); return buf; } /* If mktime_ok failed, display the failed time values, and provide possible hints. Example output: date: error: invalid date/time value: date: user provided time: '(Y-M-D) 2006-04-02 02:45:00' date: normalized time: '(Y-M-D) 2006-04-02 03:45:00' date: __ date: possible reasons: date: non-existing due to daylight-saving time; date: numeric values overflow; date: missing timezone; */ static void debug_mktime_not_ok (struct tm const *tm0, struct tm const *tm1, parser_control const *pc, bool time_zone_seen) { /* TODO: handle t == -1 (as in 'mktime_ok'). */ char tmp[DBGBUFSIZE]; int i; const bool eq_sec = (tm0->tm_sec == tm1->tm_sec); const bool eq_min = (tm0->tm_min == tm1->tm_min); const bool eq_hour = (tm0->tm_hour == tm1->tm_hour); const bool eq_mday = (tm0->tm_mday == tm1->tm_mday); const bool eq_month = (tm0->tm_mon == tm1->tm_mon); const bool eq_year = (tm0->tm_year == tm1->tm_year); const bool dst_shift = eq_sec && eq_min && !eq_hour && eq_mday && eq_month && eq_year; if (!debugging (pc)) return; dbg_printf (_("error: invalid date/time value:\n")); dbg_printf (_(" user provided time: '%s'\n"), debug_strfdatetime (tm0, pc, tmp, sizeof tmp)); dbg_printf (_(" normalized time: '%s'\n"), debug_strfdatetime (tm1, pc, tmp, sizeof tmp)); /* The format must be aligned with debug_strfdatetime and the two DEBUG statements above. This string is not translated. */ i = snprintf (tmp, sizeof tmp, " %4s %2s %2s %2s %2s %2s", eq_year ? "" : "----", eq_month ? "" : "--", eq_mday ? "" : "--", eq_hour ? "" : "--", eq_min ? "" : "--", eq_sec ? "" : "--"); /* Trim trailing whitespace. */ if (0 <= i) { if (sizeof tmp - 1 < i) i = sizeof tmp - 1; while (0 < i && tmp[i - 1] == ' ') --i; tmp[i] = '\0'; } dbg_printf ("%s\n", tmp); dbg_printf (_(" possible reasons:\n")); if (dst_shift) dbg_printf (_(" non-existing due to daylight-saving time;\n")); if (!eq_mday && !eq_month) dbg_printf (_(" invalid day/month combination;\n")); dbg_printf (_(" numeric values overflow;\n")); dbg_printf (" %s\n", (time_zone_seen ? _("incorrect timezone") : _("missing timezone"))); } /* Parse a date/time string, storing the resulting time value into *RESULT. The string itself is pointed to by P. Return true if successful. P can be an incomplete or relative time specification; if so, use *NOW as the basis for the returned time. Default to timezone TZDEFAULT, which corresponds to tzalloc (TZSTRING). */ static bool parse_datetime_body (struct timespec *result, char const *p, struct timespec const *now, unsigned int flags, timezone_t tzdefault, char const *tzstring) { struct tm tm; struct tm tm0; char time_zone_buf[TIME_ZONE_BUFSIZE]; char dbg_tm[DBGBUFSIZE]; bool ok = false; char const *input_sentinel = p + strlen (p); char *tz1alloc = NULL; /* A reasonable upper bound for the size of ordinary TZ strings. Use heap allocation if TZ's length exceeds this. */ enum { TZBUFSIZE = 100 }; char tz1buf[TZBUFSIZE]; struct timespec gettime_buffer; if (! now) { gettime (&gettime_buffer); now = &gettime_buffer; } time_t Start = now->tv_sec; int Start_ns = now->tv_nsec; unsigned char c; while (c = *p, c_isspace (c)) p++; timezone_t tz = tzdefault; /* Store a local copy prior to first "goto". Without this, a prior use below of RELATIVE_TIME_0 on the RHS might translate to an assignment- to-temporary, which would trigger a -Wjump-misses-init warning. */ const relative_time rel_time_0 = RELATIVE_TIME_0; if (strncmp (p, "TZ=\"", 4) == 0) { char const *tzbase = p + 4; idx_t tzsize = 1; char const *s; for (s = tzbase; *s; s++, tzsize++) if (*s == '\\') { s++; if (! (*s == '\\' || *s == '"')) break; } else if (*s == '"') { timezone_t tz1; char *tz1string = tz1buf; char *z; if (TZBUFSIZE < tzsize) { tz1alloc = malloc (tzsize); if (!tz1alloc) goto fail; tz1string = tz1alloc; } z = tz1string; for (s = tzbase; *s != '"'; s++) *z++ = *(s += *s == '\\'); *z = '\0'; tz1 = tzalloc (tz1string); if (!tz1) goto fail; tz = tz1; tzstring = tz1string; p = s + 1; while (c = *p, c_isspace (c)) p++; break; } } struct tm tmp; if (! localtime_rz (tz, &now->tv_sec, &tmp)) goto fail; /* As documented, be careful to treat the empty string just like a date string of "0". Without this, an empty string would be declared invalid when parsed during a DST transition. */ if (*p == '\0') p = "0"; parser_control pc; pc.input = p; #ifdef GNULIB_PARSE_DATETIME2 pc.parse_datetime_debug = (flags & PARSE_DATETIME_DEBUG) != 0; #endif if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) { if (debugging (&pc)) dbg_printf (_("error: initial year out of range\n")); goto fail; } pc.year.digits = 0; pc.month = tmp.tm_mon + 1; pc.day = tmp.tm_mday; pc.hour = tmp.tm_hour; pc.minutes = tmp.tm_min; pc.seconds.tv_sec = tmp.tm_sec; pc.seconds.tv_nsec = Start_ns; tm.tm_isdst = tmp.tm_isdst; pc.meridian = MER24; pc.rel = rel_time_0; pc.timespec_seen = false; pc.rels_seen = false; pc.dates_seen = 0; pc.days_seen = 0; pc.times_seen = 0; pc.J_zones_seen = 0; pc.local_zones_seen = 0; pc.dsts_seen = 0; pc.zones_seen = 0; pc.year_seen = false; pc.debug_dates_seen = false; pc.debug_days_seen = false; pc.debug_times_seen = false; pc.debug_local_zones_seen = false; pc.debug_zones_seen = false; pc.debug_year_seen = false; pc.debug_ordinal_day_seen = false; #if HAVE_STRUCT_TM_TM_ZONE pc.local_time_zone_table[0].name = tmp.tm_zone; pc.local_time_zone_table[0].type = tLOCAL_ZONE; pc.local_time_zone_table[0].value = tmp.tm_isdst; pc.local_time_zone_table[1].name = NULL; /* Probe the names used in the next three calendar quarters, looking for a tm_isdst different from the one we already have. */ { int quarter; for (quarter = 1; quarter <= 3; quarter++) { time_t probe; if (INT_ADD_WRAPV (Start, quarter * (90 * 24 * 60 * 60), &probe)) break; struct tm probe_tm; if (localtime_rz (tz, &probe, &probe_tm) && probe_tm.tm_zone && probe_tm.tm_isdst != pc.local_time_zone_table[0].value) { { pc.local_time_zone_table[1].name = probe_tm.tm_zone; pc.local_time_zone_table[1].type = tLOCAL_ZONE; pc.local_time_zone_table[1].value = probe_tm.tm_isdst; pc.local_time_zone_table[2].name = NULL; } break; } } } #else #if HAVE_TZNAME { # if !HAVE_DECL_TZNAME extern char *tzname[]; # endif int i; for (i = 0; i < 2; i++) { pc.local_time_zone_table[i].name = tzname[i]; pc.local_time_zone_table[i].type = tLOCAL_ZONE; pc.local_time_zone_table[i].value = i; } pc.local_time_zone_table[i].name = NULL; } #else pc.local_time_zone_table[0].name = NULL; #endif #endif if (pc.local_time_zone_table[0].name && pc.local_time_zone_table[1].name && ! strcmp (pc.local_time_zone_table[0].name, pc.local_time_zone_table[1].name)) { /* This locale uses the same abbreviation for standard and daylight times. So if we see that abbreviation, we don't know whether it's daylight time. */ pc.local_time_zone_table[0].value = -1; pc.local_time_zone_table[1].name = NULL; } if (yyparse (&pc) != 0) { if (debugging (&pc)) dbg_printf ((input_sentinel <= pc.input ? _("error: parsing failed\n") : _("error: parsing failed, stopped at '%s'\n")), pc.input); goto fail; } /* Determine effective timezone source. */ if (debugging (&pc)) { dbg_printf (_("input timezone: ")); if (pc.timespec_seen) fprintf (stderr, _("'@timespec' - always UTC")); else if (pc.zones_seen) fprintf (stderr, _("parsed date/time string")); else if (tzstring) { if (tz != tzdefault) fprintf (stderr, _("TZ=\"%s\" in date string"), tzstring); else if (STREQ (tzstring, "UTC0")) { /* Special case: 'date -u' sets TZ="UTC0". */ fprintf (stderr, _("TZ=\"UTC0\" environment value or -u")); } else fprintf (stderr, _("TZ=\"%s\" environment value"), tzstring); } else fprintf (stderr, _("system default")); /* Account for DST changes if tLOCAL_ZONE was seen. local timezone only changes DST and is relative to the default timezone.*/ if (pc.local_zones_seen && !pc.zones_seen && 0 < pc.local_isdst) fprintf (stderr, ", dst"); if (pc.zones_seen) fprintf (stderr, " (%s)", time_zone_str (pc.time_zone, time_zone_buf)); fputc ('\n', stderr); } if (pc.timespec_seen) *result = pc.seconds; else { if (1 < (pc.times_seen | pc.dates_seen | pc.days_seen | pc.dsts_seen | (pc.J_zones_seen + pc.local_zones_seen + pc.zones_seen))) { if (debugging (&pc)) { if (pc.times_seen > 1) dbg_printf ("error: seen multiple time parts\n"); if (pc.dates_seen > 1) dbg_printf ("error: seen multiple date parts\n"); if (pc.days_seen > 1) dbg_printf ("error: seen multiple days parts\n"); if (pc.dsts_seen > 1) dbg_printf ("error: seen multiple daylight-saving parts\n"); if ((pc.J_zones_seen + pc.local_zones_seen + pc.zones_seen) > 1) dbg_printf ("error: seen multiple time-zone parts\n"); } goto fail; } if (! to_tm_year (pc.year, debugging (&pc), &tm.tm_year) || INT_ADD_WRAPV (pc.month, -1, &tm.tm_mon) || INT_ADD_WRAPV (pc.day, 0, &tm.tm_mday)) { if (debugging (&pc)) dbg_printf (_("error: year, month, or day overflow\n")); goto fail; } if (pc.times_seen || (pc.rels_seen && ! pc.dates_seen && ! pc.days_seen)) { tm.tm_hour = to_hour (pc.hour, pc.meridian); if (tm.tm_hour < 0) { char const *mrd = (pc.meridian == MERam ? "am" : pc.meridian == MERpm ?"pm" : ""); if (debugging (&pc)) dbg_printf (_("error: invalid hour %"PRIdMAX"%s\n"), pc.hour, mrd); goto fail; } tm.tm_min = pc.minutes; tm.tm_sec = pc.seconds.tv_sec; if (debugging (&pc)) dbg_printf ((pc.times_seen ? _("using specified time as starting value: '%s'\n") : _("using current time as starting value: '%s'\n")), debug_strftime (&tm, dbg_tm, sizeof dbg_tm)); } else { tm.tm_hour = tm.tm_min = tm.tm_sec = 0; pc.seconds.tv_nsec = 0; if (debugging (&pc)) dbg_printf ("warning: using midnight as starting time: 00:00:00\n"); } /* Let mktime deduce tm_isdst if we have an absolute timestamp. */ if (pc.dates_seen | pc.days_seen | pc.times_seen) tm.tm_isdst = -1; /* But if the input explicitly specifies local time with or without DST, give mktime that information. */ if (pc.local_zones_seen) tm.tm_isdst = pc.local_isdst; tm0.tm_sec = tm.tm_sec; tm0.tm_min = tm.tm_min; tm0.tm_hour = tm.tm_hour; tm0.tm_mday = tm.tm_mday; tm0.tm_mon = tm.tm_mon; tm0.tm_year = tm.tm_year; tm0.tm_isdst = tm.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz, &tm); if (! mktime_ok (&tm0, &tm)) { bool repaired = false; bool time_zone_seen = pc.zones_seen != 0; if (time_zone_seen) { /* Guard against falsely reporting errors near the time_t boundaries when parsing times in other time zones. For example, suppose the input string "1969-12-31 23:00:00 -0100", the current time zone is 8 hours ahead of UTC, and the min time_t value is 1970-01-01 00:00:00 UTC. Then the min localtime value is 1970-01-01 08:00:00, and mktime will therefore fail on 1969-12-31 23:00:00. To work around the problem, set the time zone to 1 hour behind UTC temporarily by setting TZ="XXX1:00" and try mktime again. */ char tz2buf[sizeof "XXX" - 1 + TIME_ZONE_BUFSIZE]; tz2buf[0] = tz2buf[1] = tz2buf[2] = 'X'; time_zone_str (pc.time_zone, &tz2buf[3]); timezone_t tz2 = tzalloc (tz2buf); if (!tz2) { if (debugging (&pc)) dbg_printf (_("error: tzalloc (\"%s\") failed\n"), tz2buf); goto fail; } tm.tm_sec = tm0.tm_sec; tm.tm_min = tm0.tm_min; tm.tm_hour = tm0.tm_hour; tm.tm_mday = tm0.tm_mday; tm.tm_mon = tm0.tm_mon; tm.tm_year = tm0.tm_year; tm.tm_isdst = tm0.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz2, &tm); repaired = mktime_ok (&tm0, &tm); tzfree (tz2); } if (! repaired) { debug_mktime_not_ok (&tm0, &tm, &pc, time_zone_seen); goto fail; } } char dbg_ord[DBGBUFSIZE]; if (pc.days_seen && ! pc.dates_seen) { intmax_t dayincr; tm.tm_yday = -1; if (! (INT_MULTIPLY_WRAPV ((pc.day_ordinal - (0 < pc.day_ordinal && tm.tm_wday != pc.day_number)), 7, &dayincr) || INT_ADD_WRAPV ((pc.day_number - tm.tm_wday + 7) % 7, dayincr, &dayincr) || INT_ADD_WRAPV (dayincr, tm.tm_mday, &tm.tm_mday))) { tm.tm_isdst = -1; Start = mktime_z (tz, &tm); } if (tm.tm_yday < 0) { if (debugging (&pc)) dbg_printf (_("error: day '%s' " "(day ordinal=%"PRIdMAX" number=%d) " "resulted in an invalid date: '%s'\n"), str_days (&pc, dbg_ord, sizeof dbg_ord), pc.day_ordinal, pc.day_number, debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); goto fail; } if (debugging (&pc)) dbg_printf (_("new start date: '%s' is '%s'\n"), str_days (&pc, dbg_ord, sizeof dbg_ord), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); } if (debugging (&pc)) { if (!pc.dates_seen && !pc.days_seen) dbg_printf (_("using current date as starting value: '%s'\n"), debug_strfdate (&tm, dbg_tm, sizeof dbg_tm)); if (pc.days_seen && pc.dates_seen) dbg_printf (_("warning: day (%s) ignored when explicit dates " "are given\n"), str_days (&pc, dbg_ord, sizeof dbg_ord)); dbg_printf (_("starting date/time: '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); } /* Add relative date. */ if (pc.rel.year | pc.rel.month | pc.rel.day) { if (debugging (&pc)) { if ((pc.rel.year != 0 || pc.rel.month != 0) && tm.tm_mday != 15) dbg_printf (_("warning: when adding relative months/years, " "it is recommended to specify the 15th of the " "months\n")); if (pc.rel.day != 0 && tm.tm_hour != 12) dbg_printf (_("warning: when adding relative days, " "it is recommended to specify noon\n")); } int year, month, day; if (INT_ADD_WRAPV (tm.tm_year, pc.rel.year, &year) || INT_ADD_WRAPV (tm.tm_mon, pc.rel.month, &month) || INT_ADD_WRAPV (tm.tm_mday, pc.rel.day, &day)) { if (debugging (&pc)) dbg_printf (_("error: %s:%d\n"), __FILE__, __LINE__); goto fail; } tm.tm_year = year; tm.tm_mon = month; tm.tm_mday = day; tm.tm_hour = tm0.tm_hour; tm.tm_min = tm0.tm_min; tm.tm_sec = tm0.tm_sec; tm.tm_isdst = tm0.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz, &tm); if (tm.tm_wday < 0) { if (debugging (&pc)) dbg_printf (_("error: adding relative date resulted " "in an invalid date: '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); goto fail; } if (debugging (&pc)) { dbg_printf (_("after date adjustment " "(%+"PRIdMAX" years, %+"PRIdMAX" months, " "%+"PRIdMAX" days),\n"), pc.rel.year, pc.rel.month, pc.rel.day); dbg_printf (_(" new date/time = '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); /* Warn about crossing DST due to time adjustment. Example: https://bugs.gnu.org/8357 env TZ=Europe/Helsinki \ date --debug \ -d 'Mon Mar 28 00:36:07 2011 EEST 1 day ago' This case is different than DST changes due to time adjustment, i.e., "1 day ago" vs "24 hours ago" are calculated in different places. 'tm0.tm_isdst' contains the DST of the input date, 'tm.tm_isdst' is the normalized result after calling mktime (&tm). */ if (tm0.tm_isdst != -1 && tm.tm_isdst != tm0.tm_isdst) dbg_printf (_("warning: daylight saving time changed after " "date adjustment\n")); /* Warn if the user did not ask to adjust days but mday changed, or user did not ask to adjust months/days but the month changed. Example for first case: 2016-05-31 + 1 month => 2016-06-31 => 2016-07-01. User asked to adjust month, but the day changed from 31 to 01. Example for second case: 2016-02-29 + 1 year => 2017-02-29 => 2017-03-01. User asked to adjust year, but the month changed from 02 to 03. */ if (pc.rel.day == 0 && (tm.tm_mday != day || (pc.rel.month == 0 && tm.tm_mon != month))) { dbg_printf (_("warning: month/year adjustment resulted in " "shifted dates:\n")); char tm_year_buf[TM_YEAR_BUFSIZE]; dbg_printf (_(" adjusted Y M D: %s %02d %02d\n"), tm_year_str (year, tm_year_buf), month + 1, day); dbg_printf (_(" normalized Y M D: %s %02d %02d\n"), tm_year_str (tm.tm_year, tm_year_buf), tm.tm_mon + 1, tm.tm_mday); } } } /* The only "output" of this if-block is an updated Start value, so this block must follow others that clobber Start. */ if (pc.zones_seen) { bool overflow = false; #ifdef HAVE_TM_GMTOFF long int utcoff = tm.tm_gmtoff; #else time_t t = Start; struct tm gmt; int utcoff = (gmtime_r (&t, &gmt) ? tm_diff (&tm, &gmt) : (overflow = true, 0)); #endif intmax_t delta; overflow |= INT_SUBTRACT_WRAPV (pc.time_zone, utcoff, &delta); time_t t1; overflow |= INT_SUBTRACT_WRAPV (Start, delta, &t1); if (overflow) { if (debugging (&pc)) dbg_printf (_("error: timezone %d caused time_t overflow\n"), pc.time_zone); goto fail; } Start = t1; } if (debugging (&pc)) { intmax_t Starti = Start; dbg_printf (_("'%s' = %"PRIdMAX" epoch-seconds\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm), Starti); } /* Add relative hours, minutes, and seconds. On hosts that support leap seconds, ignore the possibility of leap seconds; e.g., "+ 10 minutes" adds 600 seconds, even if one of them is a leap second. Typically this is not what the user wants, but it's too hard to do it the other way, because the time zone indicator must be applied before relative times, and if mktime is applied again the time zone will be lost. */ { intmax_t orig_ns = pc.seconds.tv_nsec; intmax_t sum_ns = orig_ns + pc.rel.ns; int normalized_ns = (sum_ns % BILLION + BILLION) % BILLION; int d4 = (sum_ns - normalized_ns) / BILLION; intmax_t d1, t1, d2, t2, t3; time_t t4; if (INT_MULTIPLY_WRAPV (pc.rel.hour, 60 * 60, &d1) || INT_ADD_WRAPV (Start, d1, &t1) || INT_MULTIPLY_WRAPV (pc.rel.minutes, 60, &d2) || INT_ADD_WRAPV (t1, d2, &t2) || INT_ADD_WRAPV (t2, pc.rel.seconds, &t3) || INT_ADD_WRAPV (t3, d4, &t4)) { if (debugging (&pc)) dbg_printf (_("error: adding relative time caused an " "overflow\n")); goto fail; } result->tv_sec = t4; result->tv_nsec = normalized_ns; if (debugging (&pc) && (pc.rel.hour | pc.rel.minutes | pc.rel.seconds | pc.rel.ns)) { dbg_printf (_("after time adjustment (%+"PRIdMAX" hours, " "%+"PRIdMAX" minutes, " "%+"PRIdMAX" seconds, %+d ns),\n"), pc.rel.hour, pc.rel.minutes, pc.rel.seconds, pc.rel.ns); intmax_t t4i = t4; dbg_printf (_(" new time = %"PRIdMAX" epoch-seconds\n"), t4i); /* Warn about crossing DST due to time adjustment. Example: https://bugs.gnu.org/8357 env TZ=Europe/Helsinki \ date --debug \ -d 'Mon Mar 28 00:36:07 2011 EEST 24 hours ago' This case is different than DST changes due to days adjustment, i.e., "1 day ago" vs "24 hours ago" are calculated in different places. 'tm.tm_isdst' contains the date after date adjustment. */ struct tm lmt; if (tm.tm_isdst != -1 && localtime_rz (tz, &result->tv_sec, &lmt) && tm.tm_isdst != lmt.tm_isdst) dbg_printf (_("warning: daylight saving time changed after " "time adjustment\n")); } } } if (debugging (&pc)) { /* Special case: using 'date -u' simply set TZ=UTC0 */ if (! tzstring) dbg_printf (_("timezone: system default\n")); else if (STREQ (tzstring, "UTC0")) dbg_printf (_("timezone: Universal Time\n")); else dbg_printf (_("timezone: TZ=\"%s\" environment value\n"), tzstring); intmax_t sec = result->tv_sec; int nsec = result->tv_nsec; dbg_printf (_("final: %"PRIdMAX".%09d (epoch-seconds)\n"), sec, nsec); struct tm gmt, lmt; bool got_utc = !!gmtime_r (&result->tv_sec, &gmt); if (got_utc) dbg_printf (_("final: %s (UTC)\n"), debug_strfdatetime (&gmt, NULL, dbg_tm, sizeof dbg_tm)); if (localtime_rz (tz, &result->tv_sec, &lmt)) { #ifdef HAVE_TM_GMTOFF bool got_utcoff = true; long int utcoff = lmt.tm_gmtoff; #else bool got_utcoff = got_utc; int utcoff; if (got_utcoff) utcoff = tm_diff (&lmt, &gmt); #endif if (got_utcoff) dbg_printf (_("final: %s (UTC%s)\n"), debug_strfdatetime (&lmt, NULL, dbg_tm, sizeof dbg_tm), time_zone_str (utcoff, time_zone_buf)); else dbg_printf (_("final: %s (unknown time zone offset)\n"), debug_strfdatetime (&lmt, NULL, dbg_tm, sizeof dbg_tm)); } } ok = true; fail: if (tz != tzdefault) tzfree (tz); free (tz1alloc); return ok; } #ifdef GNULIB_PARSE_DATETIME2 /* Parse a date/time string, storing the resulting time value into *RESULT. The string itself is pointed to by P. Return true if successful. P can be an incomplete or relative time specification; if so, use *NOW as the basis for the returned time. Default to timezone TZDEFAULT, which corresponds to tzalloc (TZSTRING). */ bool parse_datetime2 (struct timespec *result, char const *p, struct timespec const *now, unsigned int flags, timezone_t tzdefault, char const *tzstring) { return parse_datetime_body (result, p, now, flags, tzdefault, tzstring); } #endif /* The plain interface: run with debug=false and the default timezone. */ bool parse_datetime (struct timespec *result, char const *p, struct timespec const *now) { char const *tzstring = getenv ("TZ"); timezone_t tz = tzalloc (tzstring); if (!tz) return false; bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); tzfree (tz); return ok; } #if TEST int main (int ac, char **av) { char buff[BUFSIZ]; printf ("Enter date, or blank line to exit.\n\t> "); fflush (stdout); buff[BUFSIZ - 1] = '\0'; while (fgets (buff, BUFSIZ - 1, stdin) && buff[0]) { struct timespec d; struct tm const *tm; if (! parse_datetime (&d, buff, NULL)) printf ("Bad format - couldn't convert.\n"); else if (! (tm = localtime (&d.tv_sec))) { intmax_t sec = d.tv_sec; printf ("localtime (%"PRIdMAX") failed\n", sec); } else { int ns = d.tv_nsec; char tm_year_buf[TM_YEAR_BUFSIZE]; printf ("%s-%02d-%02d %02d:%02d:%02d.%09d\n", tm_year_str (tm->tm_year, tm_year_buf), tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, ns); } printf ("\t> "); fflush (stdout); } return 0; } #endif /* TEST */ shishi-1.0.3/lib/gl/malloca.c0000644000000000000000000000725314273615123012630 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003, 2006-2007, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2003, 2018. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #define _GL_USE_STDLIB_ALLOC 1 #include /* Specification. */ #include "malloca.h" #include "idx.h" #include "intprops.h" #include "verify.h" /* The speed critical point in this file is freea() applied to an alloca() result: it must be fast, to match the speed of alloca(). The speed of mmalloca() and freea() in the other case are not critical, because they are only invoked for big memory sizes. Here we use a bit in the address as an indicator, an idea by Ondřej Bílka. malloca() can return three types of pointers: - Pointers ≡ 0 mod 2*sa_alignment_max come from stack allocation. - Pointers ≡ sa_alignment_max mod 2*sa_alignment_max come from heap allocation. - NULL comes from a failed heap allocation. */ /* Type for holding very small pointer differences. */ typedef unsigned char small_t; /* Verify that it is wide enough. */ verify (2 * sa_alignment_max - 1 <= (small_t) -1); void * mmalloca (size_t n) { #if HAVE_ALLOCA /* Allocate one more word, used to determine the address to pass to freea(), and room for the alignment ≡ sa_alignment_max mod 2*sa_alignment_max. */ uintptr_t alignment2_mask = 2 * sa_alignment_max - 1; int plus = sizeof (small_t) + alignment2_mask; idx_t nplus; if (!INT_ADD_WRAPV (n, plus, &nplus) && !xalloc_oversized (nplus, 1)) { char *mem = (char *) malloc (nplus); if (mem != NULL) { uintptr_t umem = (uintptr_t)mem, umemplus; /* The INT_ADD_WRAPV avoids signed integer overflow on theoretical platforms where UINTPTR_MAX <= INT_MAX. */ INT_ADD_WRAPV (umem, sizeof (small_t) + sa_alignment_max - 1, &umemplus); idx_t offset = ((umemplus & ~alignment2_mask) + sa_alignment_max - umem); void *vp = mem + offset; small_t *p = vp; /* Here p >= mem + sizeof (small_t), and p <= mem + sizeof (small_t) + 2 * sa_alignment_max - 1 hence p + n <= mem + nplus. So, the memory range [p, p+n) lies in the allocated memory range [mem, mem + nplus). */ p[-1] = offset; /* p ≡ sa_alignment_max mod 2*sa_alignment_max. */ return p; } } /* Out of memory. */ return NULL; #else # if !MALLOC_0_IS_NONNULL if (n == 0) n = 1; # endif return malloc (n); #endif } #if HAVE_ALLOCA void freea (void *p) { /* Check argument. */ if ((uintptr_t) p & (sa_alignment_max - 1)) { /* p was not the result of a malloca() call. Invalid argument. */ abort (); } /* Determine whether p was a non-NULL pointer returned by mmalloca(). */ if ((uintptr_t) p & sa_alignment_max) { void *mem = (char *) p - ((small_t *) p)[-1]; free (mem); } } #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/float.in.h0000644000000000000000000001731014273615122012731 00000000000000/* A correct . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_FLOAT_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FLOAT_H@ #ifndef _@GUARD_PREFIX@_FLOAT_H #define _@GUARD_PREFIX@_FLOAT_H /* 'long double' properties. */ #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__) /* Number of mantissa units, in base FLT_RADIX. */ # undef LDBL_MANT_DIG # define LDBL_MANT_DIG 64 /* Number of decimal digits that is sufficient for representing a number. */ # undef LDBL_DIG # define LDBL_DIG 18 /* x-1 where x is the smallest representable number > 1. */ # undef LDBL_EPSILON # define LDBL_EPSILON 1.0842021724855044340E-19L /* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */ # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) /* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */ # undef LDBL_MAX_EXP # define LDBL_MAX_EXP 16384 /* Minimum positive normalized number. */ # undef LDBL_MIN # define LDBL_MIN 3.3621031431120935063E-4932L /* Maximum representable finite number. */ # undef LDBL_MAX # define LDBL_MAX 1.1897314953572317650E+4932L /* Minimum e such that 10^e is in the range of normalized numbers. */ # undef LDBL_MIN_10_EXP # define LDBL_MIN_10_EXP (-4931) /* Maximum e such that 10^e is in the range of representable finite numbers. */ # undef LDBL_MAX_10_EXP # define LDBL_MAX_10_EXP 4932 #endif /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of precision in the compiler but 64 bits of precision at runtime. See . */ #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__) /* Number of mantissa units, in base FLT_RADIX. */ # undef LDBL_MANT_DIG # define LDBL_MANT_DIG 64 /* Number of decimal digits that is sufficient for representing a number. */ # undef LDBL_DIG # define LDBL_DIG 18 /* x-1 where x is the smallest representable number > 1. */ # undef LDBL_EPSILON # define LDBL_EPSILON 1.084202172485504434007452800869941711426e-19L /* 2^-63 */ /* Minimum e such that FLT_RADIX^(e-1) is a normalized number. */ # undef LDBL_MIN_EXP # define LDBL_MIN_EXP (-16381) /* Maximum e such that FLT_RADIX^(e-1) is a representable finite number. */ # undef LDBL_MAX_EXP # define LDBL_MAX_EXP 16384 /* Minimum positive normalized number. */ # undef LDBL_MIN # define LDBL_MIN 3.362103143112093506262677817321752E-4932L /* = 0x1p-16382L */ /* Maximum representable finite number. */ # undef LDBL_MAX /* LDBL_MAX is represented as { 0xFFFFFFFF, 0xFFFFFFFF, 32766 }. But the largest literal that GCC allows us to write is 0x0.fffffffffffff8p16384L = { 0xFFFFF800, 0xFFFFFFFF, 32766 }. So, define it like this through a reference to an external variable const unsigned int LDBL_MAX[3] = { 0xFFFFFFFF, 0xFFFFFFFF, 32766 }; extern const long double LDBL_MAX; Unfortunately, this is not a constant expression. */ # if !GNULIB_defined_long_double_union union gl_long_double_union { struct { unsigned int lo; unsigned int hi; unsigned int exponent; } xd; long double ld; }; # define GNULIB_defined_long_double_union 1 # endif extern const union gl_long_double_union gl_LDBL_MAX; # define LDBL_MAX (gl_LDBL_MAX.ld) /* Minimum e such that 10^e is in the range of normalized numbers. */ # undef LDBL_MIN_10_EXP # define LDBL_MIN_10_EXP (-4931) /* Maximum e such that 10^e is in the range of representable finite numbers. */ # undef LDBL_MAX_10_EXP # define LDBL_MAX_10_EXP 4932 #endif /* On AIX 7.1 with gcc 4.2, the values of LDBL_MIN_EXP, LDBL_MIN, LDBL_MAX are wrong. On Linux/PowerPC with gcc 4.4, the value of LDBL_MAX is wrong. */ #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__ # undef LDBL_MIN_EXP # define LDBL_MIN_EXP DBL_MIN_EXP # undef LDBL_MIN_10_EXP # define LDBL_MIN_10_EXP DBL_MIN_10_EXP # undef LDBL_MIN # define LDBL_MIN 2.22507385850720138309023271733240406422e-308L /* DBL_MIN = 2^-1022 */ #endif #if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ # undef LDBL_MAX /* LDBL_MAX is represented as { 0x7FEFFFFF, 0xFFFFFFFF, 0x7C8FFFFF, 0xFFFFFFFF }. It is not easy to define: #define LDBL_MAX 1.79769313486231580793728971405302307166e308L is too small, whereas #define LDBL_MAX 1.79769313486231580793728971405302307167e308L is too large. Apparently a bug in GCC decimal-to-binary conversion. Also, I can't get values larger than #define LDBL63 ((long double) (1ULL << 63)) #define LDBL882 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63) #define LDBL945 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63) #define LDBL1008 (LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63 * LDBL63) #define LDBL_MAX (LDBL1008 * 65535.0L + LDBL945 * (long double) 9223372036821221375ULL + LDBL882 * (long double) 4611686018427387904ULL) which is represented as { 0x7FEFFFFF, 0xFFFFFFFF, 0x7C8FFFFF, 0xF8000000 }. So, define it like this through a reference to an external variable const double LDBL_MAX[2] = { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL }; extern const long double LDBL_MAX; or through a pointer cast #define LDBL_MAX \ (*(const long double *) (double[]) { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL }) Unfortunately, this is not a constant expression, and the latter expression does not work well when GCC is optimizing.. */ # if !GNULIB_defined_long_double_union union gl_long_double_union { struct { double hi; double lo; } dd; long double ld; }; # define GNULIB_defined_long_double_union 1 # endif extern const union gl_long_double_union gl_LDBL_MAX; # define LDBL_MAX (gl_LDBL_MAX.ld) #endif /* On IRIX 6.5, with cc, the value of LDBL_MANT_DIG is wrong. On IRIX 6.5, with gcc 4.2, the values of LDBL_MIN_EXP, LDBL_MIN, LDBL_EPSILON are wrong. */ #if defined __sgi && (LDBL_MANT_DIG >= 106) # undef LDBL_MANT_DIG # define LDBL_MANT_DIG 106 # if defined __GNUC__ # undef LDBL_MIN_EXP # define LDBL_MIN_EXP DBL_MIN_EXP # undef LDBL_MIN_10_EXP # define LDBL_MIN_10_EXP DBL_MIN_10_EXP # undef LDBL_MIN # define LDBL_MIN 2.22507385850720138309023271733240406422e-308L /* DBL_MIN = 2^-1022 */ # undef LDBL_EPSILON # define LDBL_EPSILON 2.46519032881566189191165176650870696773e-32L /* 2^-105 */ # endif #endif #if @REPLACE_ITOLD@ /* Pull in a function that fixes the 'int' to 'long double' conversion of glibc 2.7. */ extern # ifdef __cplusplus "C" # endif void _Qp_itoq (long double *, int); static void (*_gl_float_fix_itold) (long double *, int) = _Qp_itoq; #endif #endif /* _@GUARD_PREFIX@_FLOAT_H */ #endif /* _@GUARD_PREFIX@_FLOAT_H */ shishi-1.0.3/lib/gl/areadlink.c0000644000000000000000000000374614273615121013153 00000000000000/* areadlink.c -- readlink wrapper to return the link name in malloc'd storage Unlike xreadlink and xreadlink_with_size, don't ever call exit. Copyright (C) 2001, 2003-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Jim Meyering and Bruno Haible . */ #include /* Specification. */ #include "areadlink.h" #include "careadlinkat.h" #include #include /* Get the symbolic link value of FILENAME and put it into BUFFER, with size BUFFER_SIZE. This function acts like readlink but has readlinkat's signature. */ static ssize_t careadlinkatcwd (int fd, char const *filename, char *buffer, size_t buffer_size) { /* FD must be AT_FDCWD here, otherwise the caller is using this function in contexts it was not meant for. */ if (fd != AT_FDCWD) abort (); return readlink (filename, buffer, buffer_size); } /* Call readlink to get the symbolic link value of FILENAME. Return a pointer to that NUL-terminated string in malloc'd storage. If readlink fails, return NULL and set errno. If allocation fails, or if the link value is longer than SIZE_MAX :-), return NULL and set errno to ENOMEM. */ char * areadlink (char const *filename) { return careadlinkat (AT_FDCWD, filename, NULL, 0, NULL, careadlinkatcwd); } shishi-1.0.3/lib/gl/arcfour.c0000644000000000000000000000376514273615121012663 00000000000000/* arcfour.c --- The arcfour stream cipher * Copyright (C) 2000-2003, 2005-2006, 2009-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Code from Libgcrypt adapted for gnulib by Simon Josefsson. */ /* * For a description of the algorithm, see: * Bruce Schneier: Applied Cryptography. John Wiley & Sons, 1996. * ISBN 0-471-11709-9. Pages 397 ff. */ #include #include "arcfour.h" void arcfour_stream (arcfour_context * context, const char *inbuf, char *outbuf, size_t length) { uint8_t i = context->idx_i; uint8_t j = context->idx_j; char *sbox = context->sbox; for (; length > 0; length--) { char t; i++; j += sbox[i]; t = sbox[i]; sbox[i] = sbox[j]; sbox[j] = t; *outbuf++ = (*inbuf++ ^ sbox[(0U + sbox[i] + sbox[j]) % ARCFOUR_SBOX_SIZE]); } context->idx_i = i; context->idx_j = j; } void arcfour_setkey (arcfour_context * context, const char *key, size_t keylen) { size_t i, j, k; char *sbox = context->sbox; context->idx_i = context->idx_j = 0; for (i = 0; i < ARCFOUR_SBOX_SIZE; i++) sbox[i] = i; for (i = j = k = 0; i < ARCFOUR_SBOX_SIZE; i++) { char t; j = (j + sbox[i] + key[k]) % ARCFOUR_SBOX_SIZE; t = sbox[i]; sbox[i] = sbox[j]; sbox[j] = t; if (++k == keylen) k = 0; } } shishi-1.0.3/lib/gl/xstrndup.c0000644000000000000000000000224614273615123013104 00000000000000/* Duplicate a bounded initial segment of a string, with out-of-memory checking. Copyright (C) 2003, 2006-2007, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Specification. */ #include "xstrndup.h" #include #include "xalloc.h" /* Return a newly allocated copy of at most N bytes of STRING. In other words, return a copy of the initial segment of length N of STRING. */ char * xstrndup (const char *string, size_t n) { char *s = strndup (string, n); if (! s) xalloc_die (); return s; } shishi-1.0.3/lib/gl/idx.h0000644000000000000000000001206214273615122012002 00000000000000/* A type for indices and sizes. Copyright (C) 2020-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _IDX_H #define _IDX_H /* Get ptrdiff_t. */ #include /* Get PTRDIFF_MAX. */ #include /* The type 'idx_t' holds an (array) index or an (object) size. Its implementation promotes to a signed integer type, which can hold the values 0..2^63-1 (on 64-bit platforms) or 0..2^31-1 (on 32-bit platforms). Why a signed integer type? * Security: Signed types can be checked for overflow via '-fsanitize=undefined', but unsigned types cannot. * Comparisons without surprises: ISO C99 § 6.3.1.8 specifies a few surprising results for comparisons, such as (int) -3 < (unsigned long) 7 => false (int) -3 < (unsigned int) 7 => false and on 32-bit machines: (long) -3 < (unsigned int) 7 => false This is surprising because the natural comparison order is by value in the realm of infinite-precision signed integers (ℤ). The best way to get rid of such surprises is to use signed types for numerical integer values, and use unsigned types only for bit masks and enums. Why not use 'size_t' directly? * Because 'size_t' is an unsigned type, and a signed type is better. See above. Why not use 'ssize_t'? * 'ptrdiff_t' is more portable; it is standardized by ISO C whereas 'ssize_t' is standardized only by POSIX. * 'ssize_t' is not required to be as wide as 'size_t', and some now-obsolete POSIX platforms had 'size_t' wider than 'ssize_t'. * Conversely, some now-obsolete platforms had 'ptrdiff_t' wider than 'size_t', which can be a win and conforms to POSIX. Won't this cause a problem with objects larger than PTRDIFF_MAX? * Typical modern or large platforms do not allocate such objects, so this is not much of a problem in practice; for example, you can safely write 'idx_t len = strlen (s);'. To port to older small platforms where allocations larger than PTRDIFF_MAX could in theory be a problem, you can use Gnulib's ialloc module, or functions like ximalloc in Gnulib's xalloc module. Why not use 'ptrdiff_t' directly? * Maintainability: When reading and modifying code, it helps to know that a certain variable cannot have negative values. For example, when you have a loop int n = ...; for (int i = 0; i < n; i++) ... or ptrdiff_t n = ...; for (ptrdiff_t i = 0; i < n; i++) ... you have to ask yourself "what if n < 0?". Whereas in idx_t n = ...; for (idx_t i = 0; i < n; i++) ... you know that this case cannot happen. Similarly, when a programmer writes idx_t = ptr2 - ptr1; there is an implied assertion that ptr1 and ptr2 point into the same object and that ptr1 <= ptr2. * Being future-proof: In the future, range types (integers which are constrained to a certain range of values) may be added to C compilers or to the C standard. Several programming languages (Ada, Haskell, Common Lisp, Pascal) already have range types. Such range types may help producing good code and good warnings. The type 'idx_t' could then be typedef'ed to a range type that is signed after promotion. */ /* In the future, idx_t could be typedef'ed to a signed range type. The clang "extended integer types", supported in Clang 11 or newer , are a special case of range types. However, these types don't support binary operators with plain integer types (e.g. expressions such as x > 1). Therefore, they don't behave like signed types (and not like unsigned types either). So, we cannot use them here. */ /* Use the signed type 'ptrdiff_t'. */ /* Note: ISO C does not mandate that 'size_t' and 'ptrdiff_t' have the same size, but it is so on all platforms we have seen since 1990. */ typedef ptrdiff_t idx_t; /* IDX_MAX is the maximum value of an idx_t. */ #define IDX_MAX PTRDIFF_MAX /* So far no need has been found for an IDX_WIDTH macro. Perhaps there should be another macro IDX_VALUE_BITS that does not count the sign bit and is therefore one less than PTRDIFF_WIDTH. */ #endif /* _IDX_H */ shishi-1.0.3/lib/gl/memchr.valgrind0000644000000000000000000000216314273615123014052 00000000000000# Suppress a valgrind message about use of uninitialized memory in memchr(). # Copyright (C) 2009-2022 Free Software Foundation, Inc. # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # POSIX states that when the character is found, memchr must not read extra # bytes in an overestimated length (for example, where memchr is used to # implement strnlen). However, we use a safe word read to provide a speedup. { memchr-value4 Memcheck:Value4 fun:rpl_memchr } { memchr-value8 Memcheck:Value8 fun:rpl_memchr } shishi-1.0.3/lib/gl/strerror.c0000644000000000000000000000407414273615123013100 00000000000000/* strerror.c --- POSIX compatible system error routine Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #include #include #include "intprops.h" #include "strerror-override.h" #include "verify.h" /* Use the system functions, not the gnulib overrides in this file. */ #undef sprintf char * strerror (int n) #undef strerror { static char buf[STACKBUF_LEN]; size_t len; /* Cast away const, due to the historical signature of strerror; callers should not be modifying the string. */ const char *msg = strerror_override (n); if (msg) return (char *) msg; msg = strerror (n); /* Our strerror_r implementation might use the system's strerror buffer, so all other clients of strerror have to see the error copied into a buffer that we manage. This is not thread-safe, even if the system strerror is, but portable programs shouldn't be using strerror if they care about thread-safety. */ if (!msg || !*msg) { static char const fmt[] = "Unknown error %d"; verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n)); sprintf (buf, fmt, n); errno = EINVAL; return buf; } /* Fix STACKBUF_LEN if this ever aborts. */ len = strlen (msg); if (sizeof buf <= len) abort (); memcpy (buf, msg, len + 1); return buf; } shishi-1.0.3/lib/gl/cdefs.h0000644000000000000000000006410314273615121012304 00000000000000/* Copyright (C) 1992-2022 Free Software Foundation, Inc. Copyright The GNU Toolchain Authors. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _SYS_CDEFS_H #define _SYS_CDEFS_H 1 /* We are almost always included from features.h. */ #ifndef _FEATURES_H # include #endif /* The GNU libc does not support any K&R compilers or the traditional mode of ISO C compilers anymore. Check for some of the combinations not supported anymore. */ #if defined __GNUC__ && !defined __STDC__ # error "You need a ISO C conforming compiler to use the glibc headers" #endif /* Some user header file might have defined this before. */ #undef __P #undef __PMT /* Compilers that lack __has_attribute may object to #if defined __has_attribute && __has_attribute (...) even though they do not need to evaluate the right-hand side of the &&. Similarly for __has_builtin, etc. */ #if (defined __has_attribute \ && (!defined __clang_minor__ \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))) # define __glibc_has_attribute(attr) __has_attribute (attr) #else # define __glibc_has_attribute(attr) 0 #endif #ifdef __has_builtin # define __glibc_has_builtin(name) __has_builtin (name) #else # define __glibc_has_builtin(name) 0 #endif #ifdef __has_extension # define __glibc_has_extension(ext) __has_extension (ext) #else # define __glibc_has_extension(ext) 0 #endif #if defined __GNUC__ || defined __clang__ /* All functions, except those with callbacks or those that synchronize memory, are leaf functions. */ # if __GNUC_PREREQ (4, 6) && !defined _LIBC # define __LEAF , __leaf__ # define __LEAF_ATTR __attribute__ ((__leaf__)) # else # define __LEAF # define __LEAF_ATTR # endif /* GCC can always grok prototypes. For C++ programs we add throw() to help it optimize the function calls. But this only works with gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions as non-throwing using a function attribute since programs can use the -fexceptions options for C code as well. */ # if !defined __cplusplus \ && (__GNUC_PREREQ (3, 4) || __glibc_has_attribute (__nothrow__)) # define __THROW __attribute__ ((__nothrow__ __LEAF)) # define __THROWNL __attribute__ ((__nothrow__)) # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct # define __NTHNL(fct) __attribute__ ((__nothrow__)) fct # else # if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major >= 4) # if __cplusplus >= 201103L # define __THROW noexcept (true) # else # define __THROW throw () # endif # define __THROWNL __THROW # define __NTH(fct) __LEAF_ATTR fct __THROW # define __NTHNL(fct) fct __THROW # else # define __THROW # define __THROWNL # define __NTH(fct) fct # define __NTHNL(fct) fct # endif # endif #else /* Not GCC or clang. */ # if (defined __cplusplus \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)) # define __inline inline # else # define __inline /* No inline functions. */ # endif # define __THROW # define __THROWNL # define __NTH(fct) fct #endif /* GCC || clang. */ /* These two macros are not used in glibc anymore. They are kept here only because some other projects expect the macros to be defined. */ #define __P(args) args #define __PMT(args) args /* For these things, GCC behaves the ANSI way normally, and the non-ANSI way under -traditional. */ #define __CONCAT(x,y) x ## y #define __STRING(x) #x /* This is not a typedef so `const __ptr_t' does the right thing. */ #define __ptr_t void * /* C++ needs to know that types and declarations are C, not C++. */ #ifdef __cplusplus # define __BEGIN_DECLS extern "C" { # define __END_DECLS } #else # define __BEGIN_DECLS # define __END_DECLS #endif /* Fortify support. */ #define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) #define __bos0(ptr) __builtin_object_size (ptr, 0) /* Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. */ #if __USE_FORTIFY_LEVEL == 3 && (__glibc_clang_prereq (9, 0) \ || __GNUC_PREREQ (12, 0)) # define __glibc_objsize0(__o) __builtin_dynamic_object_size (__o, 0) # define __glibc_objsize(__o) __builtin_dynamic_object_size (__o, 1) #else # define __glibc_objsize0(__o) __bos0 (__o) # define __glibc_objsize(__o) __bos (__o) #endif /* Compile time conditions to choose between the regular, _chk and _chk_warn variants. These conditions should get evaluated to constant and optimized away. */ #define __glibc_safe_len_cond(__l, __s, __osz) ((__l) <= (__osz) / (__s)) #define __glibc_unsigned_or_positive(__l) \ ((__typeof (__l)) 0 < (__typeof (__l)) -1 \ || (__builtin_constant_p (__l) && (__l) > 0)) /* Length is known to be safe at compile time if the __L * __S <= __OBJSZ condition can be folded to a constant and if it is true, or unknown (-1) */ #define __glibc_safe_or_unknown_len(__l, __s, __osz) \ ((__osz) == (__SIZE_TYPE__) -1 \ || (__glibc_unsigned_or_positive (__l) \ && __builtin_constant_p (__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), \ (__s), (__osz))) \ && __glibc_safe_len_cond ((__SIZE_TYPE__) (__l), (__s), (__osz)))) /* Conversely, we know at compile time that the length is unsafe if the __L * __S <= __OBJSZ condition can be folded to a constant and if it is false. */ #define __glibc_unsafe_len(__l, __s, __osz) \ (__glibc_unsigned_or_positive (__l) \ && __builtin_constant_p (__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), \ __s, __osz)) \ && !__glibc_safe_len_cond ((__SIZE_TYPE__) (__l), __s, __osz)) /* Fortify function f. __f_alias, __f_chk and __f_chk_warn must be declared. */ #define __glibc_fortify(f, __l, __s, __osz, ...) \ (__glibc_safe_or_unknown_len (__l, __s, __osz) \ ? __ ## f ## _alias (__VA_ARGS__) \ : (__glibc_unsafe_len (__l, __s, __osz) \ ? __ ## f ## _chk_warn (__VA_ARGS__, __osz) \ : __ ## f ## _chk (__VA_ARGS__, __osz))) \ /* Fortify function f, where object size argument passed to f is the number of elements and not total size. */ #define __glibc_fortify_n(f, __l, __s, __osz, ...) \ (__glibc_safe_or_unknown_len (__l, __s, __osz) \ ? __ ## f ## _alias (__VA_ARGS__) \ : (__glibc_unsafe_len (__l, __s, __osz) \ ? __ ## f ## _chk_warn (__VA_ARGS__, (__osz) / (__s)) \ : __ ## f ## _chk (__VA_ARGS__, (__osz) / (__s)))) \ #if __GNUC_PREREQ (4,3) # define __warnattr(msg) __attribute__((__warning__ (msg))) # define __errordecl(name, msg) \ extern void name (void) __attribute__((__error__ (msg))) #else # define __warnattr(msg) # define __errordecl(name, msg) extern void name (void) #endif /* Support for flexible arrays. Headers that should use flexible arrays only if they're "real" (e.g. only if they won't affect sizeof()) should test #if __glibc_c99_flexarr_available. */ #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __HP_cc # define __flexarr [] # define __glibc_c99_flexarr_available 1 #elif __GNUC_PREREQ (2,97) || defined __clang__ /* GCC 2.97 and clang support C99 flexible array members as an extension, even when in C89 mode or compiling C++ (any version). */ # define __flexarr [] # define __glibc_c99_flexarr_available 1 #elif defined __GNUC__ /* Pre-2.97 GCC did not support C99 flexible arrays but did have an equivalent extension with slightly different notation. */ # define __flexarr [0] # define __glibc_c99_flexarr_available 1 #else /* Some other non-C99 compiler. Approximate with [1]. */ # define __flexarr [1] # define __glibc_c99_flexarr_available 0 #endif /* __asm__ ("xyz") is used throughout the headers to rename functions at the assembly language level. This is wrapped by the __REDIRECT macro, in order to support compilers that can do this some other way. When compilers don't support asm-names at all, we have to do preprocessor tricks instead (which don't have exactly the right semantics, but it's the best we can do). Example: int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); */ #if (defined __GNUC__ && __GNUC__ >= 2) || (__clang_major__ >= 4) # define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias)) # ifdef __cplusplus # define __REDIRECT_NTH(name, proto, alias) \ name proto __THROW __asm__ (__ASMNAME (#alias)) # define __REDIRECT_NTHNL(name, proto, alias) \ name proto __THROWNL __asm__ (__ASMNAME (#alias)) # else # define __REDIRECT_NTH(name, proto, alias) \ name proto __asm__ (__ASMNAME (#alias)) __THROW # define __REDIRECT_NTHNL(name, proto, alias) \ name proto __asm__ (__ASMNAME (#alias)) __THROWNL # endif # define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname) # define __ASMNAME2(prefix, cname) __STRING (prefix) cname /* #elif __SOME_OTHER_COMPILER__ # define __REDIRECT(name, proto, alias) name proto; \ _Pragma("let " #name " = " #alias) */ #endif /* GCC and clang have various useful declarations that can be made with the '__attribute__' syntax. All of the ways we use this do fine if they are omitted for compilers that don't understand it. */ #if !(defined __GNUC__ || defined __clang__) # define __attribute__(xyz) /* Ignore */ #endif /* At some point during the gcc 2.96 development the `malloc' attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. */ #if __GNUC_PREREQ (2,96) || __glibc_has_attribute (__malloc__) # define __attribute_malloc__ __attribute__ ((__malloc__)) #else # define __attribute_malloc__ /* Ignore */ #endif /* Tell the compiler which arguments to an allocation function indicate the size of the allocation. */ #if __GNUC_PREREQ (4, 3) # define __attribute_alloc_size__(params) \ __attribute__ ((__alloc_size__ params)) #else # define __attribute_alloc_size__(params) /* Ignore. */ #endif /* Tell the compiler which argument to an allocation function indicates the alignment of the allocation. */ #if __GNUC_PREREQ (4, 9) || __glibc_has_attribute (__alloc_align__) # define __attribute_alloc_align__(param) \ __attribute__ ((__alloc_align__ param)) #else # define __attribute_alloc_align__(param) /* Ignore. */ #endif /* At some point during the gcc 2.96 development the `pure' attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. */ #if __GNUC_PREREQ (2,96) || __glibc_has_attribute (__pure__) # define __attribute_pure__ __attribute__ ((__pure__)) #else # define __attribute_pure__ /* Ignore */ #endif /* This declaration tells the compiler that the value is constant. */ #if __GNUC_PREREQ (2,5) || __glibc_has_attribute (__const__) # define __attribute_const__ __attribute__ ((__const__)) #else # define __attribute_const__ /* Ignore */ #endif #if __GNUC_PREREQ (2,7) || __glibc_has_attribute (__unused__) # define __attribute_maybe_unused__ __attribute__ ((__unused__)) #else # define __attribute_maybe_unused__ /* Ignore */ #endif /* At some point during the gcc 3.1 development the `used' attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. */ #if __GNUC_PREREQ (3,1) || __glibc_has_attribute (__used__) # define __attribute_used__ __attribute__ ((__used__)) # define __attribute_noinline__ __attribute__ ((__noinline__)) #else # define __attribute_used__ __attribute__ ((__unused__)) # define __attribute_noinline__ /* Ignore */ #endif /* Since version 3.2, gcc allows marking deprecated functions. */ #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__deprecated__) # define __attribute_deprecated__ __attribute__ ((__deprecated__)) #else # define __attribute_deprecated__ /* Ignore */ #endif /* Since version 4.5, gcc also allows one to specify the message printed when a deprecated function is used. clang claims to be gcc 4.2, but may also support this feature. */ #if __GNUC_PREREQ (4,5) \ || __glibc_has_extension (__attribute_deprecated_with_message__) # define __attribute_deprecated_msg__(msg) \ __attribute__ ((__deprecated__ (msg))) #else # define __attribute_deprecated_msg__(msg) __attribute_deprecated__ #endif /* At some point during the gcc 2.8 development the `format_arg' attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. If several `format_arg' attributes are given for the same function, in gcc-3.0 and older, all but the last one are ignored. In newer gccs, all designated arguments are considered. */ #if __GNUC_PREREQ (2,8) || __glibc_has_attribute (__format_arg__) # define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x))) #else # define __attribute_format_arg__(x) /* Ignore */ #endif /* At some point during the gcc 2.97 development the `strfmon' format attribute for functions was introduced. We don't want to use it unconditionally (although this would be possible) since it generates warnings. */ #if __GNUC_PREREQ (2,97) || __glibc_has_attribute (__format__) # define __attribute_format_strfmon__(a,b) \ __attribute__ ((__format__ (__strfmon__, a, b))) #else # define __attribute_format_strfmon__(a,b) /* Ignore */ #endif /* The nonnull function attribute marks pointer parameters that must not be NULL. This has the name __nonnull in glibc, and __attribute_nonnull__ in files shared with Gnulib to avoid collision with a different __nonnull in DragonFlyBSD 5.9. */ #ifndef __attribute_nonnull__ # if __GNUC_PREREQ (3,3) || __glibc_has_attribute (__nonnull__) # define __attribute_nonnull__(params) __attribute__ ((__nonnull__ params)) # else # define __attribute_nonnull__(params) # endif #endif #ifndef __nonnull # define __nonnull(params) __attribute_nonnull__ (params) #endif /* The returns_nonnull function attribute marks the return type of the function as always being non-null. */ #ifndef __returns_nonnull # if __GNUC_PREREQ (4, 9) || __glibc_has_attribute (__returns_nonnull__) # define __returns_nonnull __attribute__ ((__returns_nonnull__)) # else # define __returns_nonnull # endif #endif /* If fortification mode, we warn about unused results of certain function calls which can lead to problems. */ #if __GNUC_PREREQ (3,4) || __glibc_has_attribute (__warn_unused_result__) # define __attribute_warn_unused_result__ \ __attribute__ ((__warn_unused_result__)) # if defined __USE_FORTIFY_LEVEL && __USE_FORTIFY_LEVEL > 0 # define __wur __attribute_warn_unused_result__ # endif #else # define __attribute_warn_unused_result__ /* empty */ #endif #ifndef __wur # define __wur /* Ignore */ #endif /* Forces a function to be always inlined. */ #if __GNUC_PREREQ (3,2) || __glibc_has_attribute (__always_inline__) /* The Linux kernel defines __always_inline in stddef.h (283d7573), and it conflicts with this definition. Therefore undefine it first to allow either header to be included first. */ # undef __always_inline # define __always_inline __inline __attribute__ ((__always_inline__)) #else # undef __always_inline # define __always_inline __inline #endif /* Associate error messages with the source location of the call site rather than with the source location inside the function. */ #if __GNUC_PREREQ (4,3) || __glibc_has_attribute (__artificial__) # define __attribute_artificial__ __attribute__ ((__artificial__)) #else # define __attribute_artificial__ /* Ignore */ #endif /* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions older than 4.3 may define these macros and still not guarantee GNU inlining semantics. clang++ identifies itself as gcc-4.2, but has support for GNU inlining semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and __GNUC_GNU_INLINE__ macro definitions. */ #if (!defined __cplusplus || __GNUC_PREREQ (4,3) \ || (defined __clang__ && (defined __GNUC_STDC_INLINE__ \ || defined __GNUC_GNU_INLINE__))) # if defined __GNUC_STDC_INLINE__ || defined __cplusplus # define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) # define __extern_always_inline \ extern __always_inline __attribute__ ((__gnu_inline__)) # else # define __extern_inline extern __inline # define __extern_always_inline extern __always_inline # endif #endif #ifdef __extern_always_inline # define __fortify_function __extern_always_inline __attribute_artificial__ #endif /* GCC 4.3 and above allow passing all anonymous arguments of an __extern_always_inline function to some other vararg function. */ #if __GNUC_PREREQ (4,3) # define __va_arg_pack() __builtin_va_arg_pack () # define __va_arg_pack_len() __builtin_va_arg_pack_len () #endif /* It is possible to compile containing GCC extensions even if GCC is run in pedantic mode if the uses are carefully marked using the `__extension__' keyword. But this is not generally available before version 2.8. */ #if !(__GNUC_PREREQ (2,8) || defined __clang__) # define __extension__ /* Ignore */ #endif /* __restrict is known in EGCS 1.2 and above, and in clang. It works also in C++ mode (outside of arrays), but only when spelled as '__restrict', not 'restrict'. */ #if !(__GNUC_PREREQ (2,92) || __clang_major__ >= 3) # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L # define __restrict restrict # else # define __restrict /* Ignore */ # endif #endif /* ISO C99 also allows to declare arrays as non-overlapping. The syntax is array_name[restrict] GCC 3.1 and clang support this. This syntax is not usable in C++ mode. */ #if (__GNUC_PREREQ (3,1) || __clang_major__ >= 3) && !defined __cplusplus # define __restrict_arr __restrict #else # ifdef __GNUC__ # define __restrict_arr /* Not supported in old GCC. */ # else # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L # define __restrict_arr restrict # else /* Some other non-C99 compiler. */ # define __restrict_arr /* Not supported. */ # endif # endif #endif #if (__GNUC__ >= 3) || __glibc_has_builtin (__builtin_expect) # define __glibc_unlikely(cond) __builtin_expect ((cond), 0) # define __glibc_likely(cond) __builtin_expect ((cond), 1) #else # define __glibc_unlikely(cond) (cond) # define __glibc_likely(cond) (cond) #endif #if (!defined _Noreturn \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && !(__GNUC_PREREQ (4,7) \ || (3 < __clang_major__ + (5 <= __clang_minor__)))) # if __GNUC_PREREQ (2,8) # define _Noreturn __attribute__ ((__noreturn__)) # else # define _Noreturn # endif #endif #if __GNUC_PREREQ (8, 0) /* Describes a char array whose address can safely be passed as the first argument to strncpy and strncat, as the char array is not necessarily a NUL-terminated string. */ # define __attribute_nonstring__ __attribute__ ((__nonstring__)) #else # define __attribute_nonstring__ #endif /* Undefine (also defined in libc-symbols.h). */ #undef __attribute_copy__ #if __GNUC_PREREQ (9, 0) /* Copies attributes from the declaration or type referenced by the argument. */ # define __attribute_copy__(arg) __attribute__ ((__copy__ (arg))) #else # define __attribute_copy__(arg) #endif #if (!defined _Static_assert && !defined __cplusplus \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && (!(__GNUC_PREREQ (4, 6) || __clang_major__ >= 4) \ || defined __STRICT_ANSI__)) # define _Static_assert(expr, diagnostic) \ extern int (*__Static_assert_function (void)) \ [!!sizeof (struct { int __error_if_negative: (expr) ? 2 : -1; })] #endif /* Gnulib avoids including these, as they don't work on non-glibc or older glibc platforms. */ #ifndef __GNULIB_CDEFS # include # include #endif #if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 # ifdef __REDIRECT /* Alias name defined automatically. */ # define __LDBL_REDIR(name, proto) ... unused__ldbl_redir # define __LDBL_REDIR_DECL(name) \ extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128")); /* Alias name defined automatically, with leading underscores. */ # define __LDBL_REDIR2_DECL(name) \ extern __typeof (__##name) __##name \ __asm (__ASMNAME ("__" #name "ieee128")); /* Alias name defined manually. */ # define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1 # define __LDBL_REDIR1_DECL(name, alias) \ extern __typeof (name) name __asm (__ASMNAME (#alias)); # define __LDBL_REDIR1_NTH(name, proto, alias) \ __REDIRECT_NTH (name, proto, alias) # define __REDIRECT_NTH_LDBL(name, proto, alias) \ __LDBL_REDIR1_NTH (name, proto, __##alias##ieee128) /* Unused. */ # define __REDIRECT_LDBL(name, proto, alias) ... unused__redirect_ldbl # define __LDBL_REDIR_NTH(name, proto) ... unused__ldbl_redir_nth # else _Static_assert (0, "IEEE 128-bits long double requires redirection on this platform"); # endif #elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH # define __LDBL_COMPAT 1 # ifdef __REDIRECT # define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias) # define __LDBL_REDIR(name, proto) \ __LDBL_REDIR1 (name, proto, __nldbl_##name) # define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias) # define __LDBL_REDIR_NTH(name, proto) \ __LDBL_REDIR1_NTH (name, proto, __nldbl_##name) # define __LDBL_REDIR2_DECL(name) \ extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name)); # define __LDBL_REDIR1_DECL(name, alias) \ extern __typeof (name) name __asm (__ASMNAME (#alias)); # define __LDBL_REDIR_DECL(name) \ extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name)); # define __REDIRECT_LDBL(name, proto, alias) \ __LDBL_REDIR1 (name, proto, __nldbl_##alias) # define __REDIRECT_NTH_LDBL(name, proto, alias) \ __LDBL_REDIR1_NTH (name, proto, __nldbl_##alias) # endif #endif #if (!defined __LDBL_COMPAT && __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0) \ || !defined __REDIRECT # define __LDBL_REDIR1(name, proto, alias) name proto # define __LDBL_REDIR(name, proto) name proto # define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW # define __LDBL_REDIR_NTH(name, proto) name proto __THROW # define __LDBL_REDIR2_DECL(name) # define __LDBL_REDIR_DECL(name) # ifdef __REDIRECT # define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias) # define __REDIRECT_NTH_LDBL(name, proto, alias) \ __REDIRECT_NTH (name, proto, alias) # endif #endif /* __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is intended for use in preprocessor macros. Note: MESSAGE must be a _single_ string; concatenation of string literals is not supported. */ #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5) # define __glibc_macro_warning1(message) _Pragma (#message) # define __glibc_macro_warning(message) \ __glibc_macro_warning1 (GCC warning message) #else # define __glibc_macro_warning(msg) #endif /* Generic selection (ISO C11) is a C-only feature, available in GCC since version 4.9. Previous versions do not provide generic selection, even though they might set __STDC_VERSION__ to 201112L, when in -std=c11 mode. Thus, we must check for !defined __GNUC__ when testing __STDC_VERSION__ for generic selection support. On the other hand, Clang also defines __GNUC__, so a clang-specific check is required to enable the use of generic selection. */ #if !defined __cplusplus \ && (__GNUC_PREREQ (4, 9) \ || __glibc_has_extension (c_generic_selections) \ || (!defined __GNUC__ && defined __STDC_VERSION__ \ && __STDC_VERSION__ >= 201112L)) # define __HAVE_GENERIC_SELECTION 1 #else # define __HAVE_GENERIC_SELECTION 0 #endif #if __GNUC_PREREQ (10, 0) /* Designates a 1-based positional argument ref-index of pointer type that can be used to access size-index elements of the pointed-to array according to access mode, or at least one element when size-index is not provided: access (access-mode, [, ]) */ # define __attr_access(x) __attribute__ ((__access__ x)) /* For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may use the access attribute to get object sizes from function definition arguments, so we can't use them on functions we fortify. Drop the object size hints for such functions. */ # if __USE_FORTIFY_LEVEL == 3 # define __fortified_attr_access(a, o, s) __attribute__ ((__access__ (a, o))) # else # define __fortified_attr_access(a, o, s) __attr_access ((a, o, s)) # endif # if __GNUC_PREREQ (11, 0) # define __attr_access_none(argno) __attribute__ ((__access__ (__none__, argno))) # else # define __attr_access_none(argno) # endif #else # define __fortified_attr_access(a, o, s) # define __attr_access(x) # define __attr_access_none(argno) #endif #if __GNUC_PREREQ (11, 0) /* Designates dealloc as a function to call to deallocate objects allocated by the declared function. */ # define __attr_dealloc(dealloc, argno) \ __attribute__ ((__malloc__ (dealloc, argno))) # define __attr_dealloc_free __attr_dealloc (__builtin_free, 1) #else # define __attr_dealloc(dealloc, argno) # define __attr_dealloc_free #endif /* Specify that a function such as setjmp or vfork may return twice. */ #if __GNUC_PREREQ (4, 1) # define __attribute_returns_twice__ __attribute__ ((__returns_twice__)) #else # define __attribute_returns_twice__ /* Ignore. */ #endif #endif /* sys/cdefs.h */ shishi-1.0.3/lib/gl/limits.in.h0000644000000000000000000001072514273615122013130 00000000000000/* A GNU-like . Copyright 2016-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _GL_ALREADY_INCLUDING_LIMITS_H /* Special invocation convention: On Haiku/x86_64, we have a sequence of nested includes -> -> . In this situation, LONG_MAX and INT_MAX are not yet defined, therefore we should not attempt to define LONG_BIT. */ #@INCLUDE_NEXT@ @NEXT_LIMITS_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_LIMITS_H # define _GL_ALREADY_INCLUDING_LIMITS_H /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_LIMITS_H@ # undef _GL_ALREADY_INCLUDING_LIMITS_H #ifndef _@GUARD_PREFIX@_LIMITS_H #define _@GUARD_PREFIX@_LIMITS_H #ifndef LLONG_MIN # if defined LONG_LONG_MIN /* HP-UX 11.31 */ # define LLONG_MIN LONG_LONG_MIN # elif defined LONGLONG_MIN /* IRIX 6.5 */ # define LLONG_MIN LONGLONG_MIN # elif defined __GNUC__ # define LLONG_MIN (- __LONG_LONG_MAX__ - 1LL) # endif #endif #ifndef LLONG_MAX # if defined LONG_LONG_MAX /* HP-UX 11.31 */ # define LLONG_MAX LONG_LONG_MAX # elif defined LONGLONG_MAX /* IRIX 6.5 */ # define LLONG_MAX LONGLONG_MAX # elif defined __GNUC__ # define LLONG_MAX __LONG_LONG_MAX__ # endif #endif #ifndef ULLONG_MAX # if defined ULONG_LONG_MAX /* HP-UX 11.31 */ # define ULLONG_MAX ULONG_LONG_MAX # elif defined ULONGLONG_MAX /* IRIX 6.5 */ # define ULLONG_MAX ULONGLONG_MAX # elif defined __GNUC__ # define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL) # endif #endif /* The number of usable bits in an unsigned or signed integer type with minimum value MIN and maximum value MAX, as an int expression suitable in #if. Cover all known practical hosts. This implementation exploits the fact that MAX is 1 less than a power of 2, and merely counts the number of 1 bits in MAX; "COBn" means "count the number of 1 bits in the low-order n bits"). */ #define _GL_INTEGER_WIDTH(min, max) (((min) < 0) + _GL_COB128 (max)) #define _GL_COB128(n) (_GL_COB64 ((n) >> 31 >> 31 >> 2) + _GL_COB64 (n)) #define _GL_COB64(n) (_GL_COB32 ((n) >> 31 >> 1) + _GL_COB32 (n)) #define _GL_COB32(n) (_GL_COB16 ((n) >> 16) + _GL_COB16 (n)) #define _GL_COB16(n) (_GL_COB8 ((n) >> 8) + _GL_COB8 (n)) #define _GL_COB8(n) (_GL_COB4 ((n) >> 4) + _GL_COB4 (n)) #define _GL_COB4(n) (!!((n) & 8) + !!((n) & 4) + !!((n) & 2) + !!((n) & 1)) #ifndef WORD_BIT /* Assume 'int' is 32 bits wide. */ # define WORD_BIT 32 #endif #ifndef LONG_BIT /* Assume 'long' is 32 or 64 bits wide. */ # if LONG_MAX == INT_MAX # define LONG_BIT 32 # else # define LONG_BIT 64 # endif #endif /* Macros specified by C2x and by ISO/IEC TS 18661-1:2014. */ #if (! defined ULLONG_WIDTH \ && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \ || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))) # define CHAR_WIDTH _GL_INTEGER_WIDTH (CHAR_MIN, CHAR_MAX) # define SCHAR_WIDTH _GL_INTEGER_WIDTH (SCHAR_MIN, SCHAR_MAX) # define UCHAR_WIDTH _GL_INTEGER_WIDTH (0, UCHAR_MAX) # define SHRT_WIDTH _GL_INTEGER_WIDTH (SHRT_MIN, SHRT_MAX) # define USHRT_WIDTH _GL_INTEGER_WIDTH (0, USHRT_MAX) # define INT_WIDTH _GL_INTEGER_WIDTH (INT_MIN, INT_MAX) # define UINT_WIDTH _GL_INTEGER_WIDTH (0, UINT_MAX) # define LONG_WIDTH _GL_INTEGER_WIDTH (LONG_MIN, LONG_MAX) # define ULONG_WIDTH _GL_INTEGER_WIDTH (0, ULONG_MAX) # define LLONG_WIDTH _GL_INTEGER_WIDTH (LLONG_MIN, LLONG_MAX) # define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX) #endif /* Macros specified by C2x. */ #if (! defined BOOL_WIDTH \ && (defined _GNU_SOURCE \ || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))) # define BOOL_MAX 1 # define BOOL_WIDTH 1 #endif #endif /* _@GUARD_PREFIX@_LIMITS_H */ #endif /* _@GUARD_PREFIX@_LIMITS_H */ #endif shishi-1.0.3/lib/gl/unsetenv.c0000644000000000000000000000551414273615123013065 00000000000000/* Copyright (C) 1992, 1995-2002, 2005-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc optimizes away the name == NULL test below. */ #define _GL_ARG_NONNULL(params) #include /* Specification. */ #include #include #if !_LIBC # define __set_errno(ev) ((errno) = (ev)) #endif #include #include #if !_LIBC # define __environ environ #endif #if _LIBC /* This lock protects against simultaneous modifications of 'environ'. */ # include __libc_lock_define_initialized (static, envlock) # define LOCK __libc_lock_lock (envlock) # define UNLOCK __libc_lock_unlock (envlock) #else # define LOCK # define UNLOCK #endif /* In the GNU C library we must keep the namespace clean. */ #ifdef _LIBC # define unsetenv __unsetenv #endif #if _LIBC || !HAVE_UNSETENV int unsetenv (const char *name) { size_t len; char **ep; if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) { __set_errno (EINVAL); return -1; } len = strlen (name); LOCK; ep = __environ; while (*ep != NULL) if (!strncmp (*ep, name, len) && (*ep)[len] == '=') { /* Found it. Remove this pointer by moving later ones back. */ char **dp = ep; do dp[0] = dp[1]; while (*dp++); /* Continue the loop in case NAME appears again. */ } else ++ep; UNLOCK; return 0; } #ifdef _LIBC # undef unsetenv weak_alias (__unsetenv, unsetenv) #endif #else /* HAVE_UNSETENV */ # undef unsetenv # if !HAVE_DECL_UNSETENV # if VOID_UNSETENV extern void unsetenv (const char *); # else extern int unsetenv (const char *); # endif # endif /* Call the underlying unsetenv, in case there is hidden bookkeeping that needs updating beyond just modifying environ. */ int rpl_unsetenv (const char *name) { int result = 0; if (!name || !*name || strchr (name, '=')) { errno = EINVAL; return -1; } while (getenv (name)) # if !VOID_UNSETENV result = # endif unsetenv (name); return result; } #endif /* HAVE_UNSETENV */ shishi-1.0.3/lib/gl/parse-datetime.h0000644000000000000000000000240014273615123014116 00000000000000/* Parse a string into an internal timestamp. Copyright (C) 1995, 1997-1998, 2003-2004, 2007, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include #include bool parse_datetime (struct timespec *restrict, char const *, struct timespec const *); /* parse_datetime2 flag: if set, print debug/progress information to STDERR */ #define PARSE_DATETIME_DEBUG 1 /* same as above, supporting additional flags */ bool parse_datetime2 (struct timespec *restrict, char const *, struct timespec const *, unsigned int flags, timezone_t, char const *); shishi-1.0.3/lib/gl/getaddrinfo.c0000644000000000000000000002642514273615122013507 00000000000000/* Get address information (partial implementation). Copyright (C) 1997, 2001-2002, 2004-2022 Free Software Foundation, Inc. Contributed by Simon Josefsson . This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc optimizes away the sa == NULL test below. */ #define _GL_ARG_NONNULL(params) #include #include #if HAVE_NETINET_IN_H # include #endif /* Get inet_ntop. */ #include /* Get calloc. */ #include /* Get memcpy, strdup. */ #include /* Get snprintf. */ #include #include #include "gettext.h" #define _(String) gettext (String) #define N_(String) String /* BeOS has AF_INET, but not PF_INET. */ #ifndef PF_INET # define PF_INET AF_INET #endif /* BeOS also lacks PF_UNSPEC. */ #ifndef PF_UNSPEC # define PF_UNSPEC 0 #endif #if HAVE_GETADDRINFO /* Override with cdecl calling convention. */ int getaddrinfo (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res) # undef getaddrinfo { return getaddrinfo (nodename, servname, hints, res); } void freeaddrinfo (struct addrinfo *ai) # undef freeaddrinfo { freeaddrinfo (ai); } #else # if defined _WIN32 && !defined __CYGWIN__ # define WINDOWS_NATIVE # endif /* gl_sockets_startup */ # include "sockets.h" # ifdef WINDOWS_NATIVE /* Don't assume that UNICODE is not defined. */ # undef GetModuleHandle # define GetModuleHandle GetModuleHandleA # if !(_WIN32_WINNT >= _WIN32_WINNT_WINXP) /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress typedef int (WSAAPI *getaddrinfo_func) (const char*, const char*, const struct addrinfo*, struct addrinfo**); typedef void (WSAAPI *freeaddrinfo_func) (struct addrinfo*); typedef int (WSAAPI *getnameinfo_func) (const struct sockaddr*, socklen_t, char*, DWORD, char*, DWORD, int); static getaddrinfo_func getaddrinfo_ptr = NULL; static freeaddrinfo_func freeaddrinfo_ptr = NULL; static getnameinfo_func getnameinfo_ptr = NULL; static int use_win32_p (void) { static int done = 0; HMODULE h; if (done) return getaddrinfo_ptr ? 1 : 0; done = 1; h = GetModuleHandle ("ws2_32.dll"); if (h) { getaddrinfo_ptr = (getaddrinfo_func) GetProcAddress (h, "getaddrinfo"); freeaddrinfo_ptr = (freeaddrinfo_func) GetProcAddress (h, "freeaddrinfo"); getnameinfo_ptr = (getnameinfo_func) GetProcAddress (h, "getnameinfo"); } /* If either is missing, something is odd. */ if (!getaddrinfo_ptr || !freeaddrinfo_ptr || !getnameinfo_ptr) { getaddrinfo_ptr = NULL; freeaddrinfo_ptr = NULL; getnameinfo_ptr = NULL; return 0; } gl_sockets_startup (SOCKETS_1_1); return 1; } # else static int use_win32_p (void) { static int done = 0; if (!done) { done = 1; gl_sockets_startup (SOCKETS_1_1); } return 1; } # define getaddrinfo_ptr getaddrinfo # define freeaddrinfo_ptr freeaddrinfo # define getnameinfo_ptr getnameinfo # endif # endif static bool validate_family (int family) { /* FIXME: Support more families. */ # if HAVE_IPV4 if (family == PF_INET) return true; # endif # if HAVE_IPV6 if (family == PF_INET6) return true; # endif if (family == PF_UNSPEC) return true; return false; } /* Translate name of a service location and/or a service name to set of socket addresses. */ int getaddrinfo (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res) #undef getaddrinfo { struct addrinfo *tmp; int port = 0; struct hostent *he; void *storage; size_t size; # if HAVE_IPV6 struct v6_pair { struct addrinfo addrinfo; struct sockaddr_in6 sockaddr_in6; }; # endif # if HAVE_IPV4 struct v4_pair { struct addrinfo addrinfo; struct sockaddr_in sockaddr_in; }; # endif # ifdef WINDOWS_NATIVE if (use_win32_p ()) return getaddrinfo_ptr (nodename, servname, hints, res); # endif if (hints && (hints->ai_flags & ~(AI_CANONNAME|AI_PASSIVE))) /* FIXME: Support more flags. */ return EAI_BADFLAGS; if (hints && !validate_family (hints->ai_family)) return EAI_FAMILY; if (hints && hints->ai_socktype != SOCK_STREAM && hints->ai_socktype != SOCK_DGRAM) /* FIXME: Support other socktype. */ return EAI_SOCKTYPE; /* FIXME: Better return code? */ if (!nodename) { if (!(hints->ai_flags & AI_PASSIVE)) return EAI_NONAME; # ifdef HAVE_IPV6 nodename = (hints->ai_family == AF_INET6) ? "::" : "0.0.0.0"; # else nodename = "0.0.0.0"; # endif } if (servname) { struct servent *se = NULL; const char *proto = (hints && hints->ai_socktype == SOCK_DGRAM) ? "udp" : "tcp"; if (hints == NULL || !(hints->ai_flags & AI_NUMERICSERV)) /* FIXME: Use getservbyname_r if available. */ se = getservbyname (servname, proto); if (!se) { char *c; if (!(*servname >= '0' && *servname <= '9')) return EAI_NONAME; port = strtoul (servname, &c, 10); if (*c || port > 0xffff) return EAI_NONAME; port = htons (port); } else port = se->s_port; } /* FIXME: Use gethostbyname_r if available. */ he = gethostbyname (nodename); if (!he || he->h_addr_list[0] == NULL) return EAI_NONAME; switch (he->h_addrtype) { # if HAVE_IPV6 case PF_INET6: size = sizeof (struct v6_pair); break; # endif # if HAVE_IPV4 case PF_INET: size = sizeof (struct v4_pair); break; # endif default: return EAI_NODATA; } storage = calloc (1, size); if (!storage) return EAI_MEMORY; switch (he->h_addrtype) { # if HAVE_IPV6 case PF_INET6: { struct v6_pair *p = storage; struct sockaddr_in6 *sinp = &p->sockaddr_in6; tmp = &p->addrinfo; if (port) sinp->sin6_port = port; if (he->h_length != sizeof (sinp->sin6_addr)) { free (storage); return EAI_SYSTEM; /* FIXME: Better return code? Set errno? */ } memcpy (&sinp->sin6_addr, he->h_addr_list[0], sizeof sinp->sin6_addr); tmp->ai_addr = (struct sockaddr *) sinp; tmp->ai_addrlen = sizeof *sinp; } break; # endif # if HAVE_IPV4 case PF_INET: { struct v4_pair *p = storage; struct sockaddr_in *sinp = &p->sockaddr_in; tmp = &p->addrinfo; if (port) sinp->sin_port = port; if (he->h_length != sizeof (sinp->sin_addr)) { free (storage); return EAI_SYSTEM; /* FIXME: Better return code? Set errno? */ } memcpy (&sinp->sin_addr, he->h_addr_list[0], sizeof sinp->sin_addr); tmp->ai_addr = (struct sockaddr *) sinp; tmp->ai_addrlen = sizeof *sinp; } break; # endif default: free (storage); return EAI_NODATA; } if (hints && hints->ai_flags & AI_CANONNAME) { const char *cn; if (he->h_name) cn = he->h_name; else cn = nodename; tmp->ai_canonname = strdup (cn); if (!tmp->ai_canonname) { free (storage); return EAI_MEMORY; } } tmp->ai_protocol = (hints) ? hints->ai_protocol : 0; tmp->ai_socktype = (hints) ? hints->ai_socktype : 0; tmp->ai_addr->sa_family = he->h_addrtype; tmp->ai_family = he->h_addrtype; # ifdef HAVE_STRUCT_SOCKADDR_SA_LEN switch (he->h_addrtype) { # if HAVE_IPV4 case AF_INET: tmp->ai_addr->sa_len = sizeof (struct sockaddr_in); break; # endif # if HAVE_IPV6 case AF_INET6: tmp->ai_addr->sa_len = sizeof (struct sockaddr_in6); break; # endif } # endif /* FIXME: If more than one address, create linked list of addrinfo's. */ *res = tmp; return 0; } /* Free 'addrinfo' structure AI including associated storage. */ void freeaddrinfo (struct addrinfo *ai) #undef freeaddrinfo { # ifdef WINDOWS_NATIVE if (use_win32_p ()) { freeaddrinfo_ptr (ai); return; } # endif while (ai) { struct addrinfo *cur; cur = ai; ai = ai->ai_next; free (cur->ai_canonname); free (cur); } } int getnameinfo (const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags) #undef getnameinfo { # ifdef WINDOWS_NATIVE if (use_win32_p ()) return getnameinfo_ptr (sa, salen, node, nodelen, service, servicelen, flags); # endif /* FIXME: Support other flags. */ if ((node && nodelen > 0 && !(flags & NI_NUMERICHOST)) || (service && servicelen > 0 && !(flags & NI_NUMERICHOST)) || (flags & ~(NI_NUMERICHOST|NI_NUMERICSERV))) return EAI_BADFLAGS; if (sa == NULL || salen < sizeof (sa->sa_family)) return EAI_FAMILY; switch (sa->sa_family) { # if HAVE_IPV4 case AF_INET: if (salen < sizeof (struct sockaddr_in)) return EAI_FAMILY; break; # endif # if HAVE_IPV6 case AF_INET6: if (salen < sizeof (struct sockaddr_in6)) return EAI_FAMILY; break; # endif default: return EAI_FAMILY; } if (node && nodelen > 0 && flags & NI_NUMERICHOST) { switch (sa->sa_family) { # if HAVE_IPV4 case AF_INET: if (!inet_ntop (AF_INET, &(((const struct sockaddr_in *) sa)->sin_addr), node, nodelen)) return EAI_SYSTEM; break; # endif # if HAVE_IPV6 case AF_INET6: if (!inet_ntop (AF_INET6, &(((const struct sockaddr_in6 *) sa)->sin6_addr), node, nodelen)) return EAI_SYSTEM; break; # endif default: return EAI_FAMILY; } } if (service && servicelen > 0 && flags & NI_NUMERICSERV) switch (sa->sa_family) { # if HAVE_IPV4 case AF_INET: # endif # if HAVE_IPV6 case AF_INET6: # endif { unsigned short int port = ntohs (((const struct sockaddr_in *) sa)->sin_port); if (servicelen <= snprintf (service, servicelen, "%u", port)) return EAI_OVERFLOW; } break; } return 0; } #endif shishi-1.0.3/lib/gl/strchrnul.valgrind0000644000000000000000000000171414273615123014624 00000000000000# Suppress a valgrind message about use of uninitialized memory in strchrnul(). # Copyright (C) 2008-2022 Free Software Foundation, Inc. # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # This use is OK because it provides only a speedup. { strchrnul-value4 Memcheck:Value4 fun:strchrnul } { strchrnul-value8 Memcheck:Value8 fun:strchrnul } shishi-1.0.3/lib/gl/memxor.h0000644000000000000000000000236414273615123012532 00000000000000/* memxor.h -- perform binary exclusive OR operation on memory blocks. Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. The interface was inspired by memxor in Niels Möller's Nettle. */ #ifndef MEMXOR_H # define MEMXOR_H #include /* Compute binary exclusive OR of memory areas DEST and SRC, putting the result in DEST, of length N bytes. Returns a pointer to DEST. */ void *memxor (void *restrict dest, const void *restrict src, size_t n); #endif /* MEMXOR_H */ /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/xgetdomainname.h0000644000000000000000000000260314273615123014217 00000000000000/* xgetdomainname.h -- Return the NIS domain name, without size limitations. Copyright (C) 1992, 1996, 2000-2001, 2003, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef _XGETDOMAINNAME_H #define _XGETDOMAINNAME_H #include /* Return the NIS domain name of the machine, in malloc'd storage. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. WARNING! The NIS domain name is usually the empty string or "(none)" when not using NIS. If malloc fails, exit. Upon any other failure, set errno and return NULL. */ extern char *xgetdomainname (void) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; #endif /* _XGETDOMAINNAME_H */ shishi-1.0.3/lib/gl/cloexec.c0000644000000000000000000000445414273615121012640 00000000000000/* cloexec.c - set or clear the close-on-exec descriptor flag Copyright (C) 1991, 2004-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* The code is taken from glibc/manual/llio.texi */ #include #include "cloexec.h" #include #include #include /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, or clear the flag if VALUE is false. Return 0 on success, or -1 on error with 'errno' set. Note that on MingW, this function does NOT protect DESC from being inherited into spawned children. Instead, either use dup_cloexec followed by closing the original DESC, or use interfaces such as open or pipe2 that accept flags like O_CLOEXEC to create DESC non-inheritable in the first place. */ int set_cloexec_flag (int desc, bool value) { #ifdef F_SETFD int flags = fcntl (desc, F_GETFD, 0); if (0 <= flags) { int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); if (flags == newflags || fcntl (desc, F_SETFD, newflags) != -1) return 0; } return -1; #else /* !F_SETFD */ /* Use dup2 to reject invalid file descriptors; the cloexec flag will be unaffected. */ if (desc < 0) { errno = EBADF; return -1; } if (dup2 (desc, desc) < 0) /* errno is EBADF here. */ return -1; /* There is nothing we can do on this kind of platform. Punt. */ return 0; #endif /* !F_SETFD */ } /* Duplicates a file handle FD, while marking the copy to be closed prior to exec or spawn. Returns -1 and sets errno if FD could not be duplicated. */ int dup_cloexec (int fd) { return fcntl (fd, F_DUPFD_CLOEXEC, 0); } shishi-1.0.3/lib/gl/fd-hook.c0000644000000000000000000000702514273615122012543 00000000000000/* Hook for making file descriptor functions close(), ioctl() extensible. Copyright (C) 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "fd-hook.h" #include /* Currently, this entire code is only needed for the handling of sockets on native Windows platforms. */ #if WINDOWS_SOCKETS /* The first and last link in the doubly linked list. Initially the list is empty. */ static struct fd_hook anchor = { &anchor, &anchor, NULL, NULL }; int execute_close_hooks (const struct fd_hook *remaining_list, gl_close_fn primary, int fd) { if (remaining_list == &anchor) /* End of list reached. */ return primary (fd); else return remaining_list->private_close_fn (remaining_list->private_next, primary, fd); } int execute_all_close_hooks (gl_close_fn primary, int fd) { return execute_close_hooks (anchor.private_next, primary, fd); } int execute_ioctl_hooks (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg) { if (remaining_list == &anchor) /* End of list reached. */ return primary (fd, request, arg); else return remaining_list->private_ioctl_fn (remaining_list->private_next, primary, fd, request, arg); } int execute_all_ioctl_hooks (gl_ioctl_fn primary, int fd, int request, void *arg) { return execute_ioctl_hooks (anchor.private_next, primary, fd, request, arg); } void register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link) { if (close_hook == NULL) close_hook = execute_close_hooks; if (ioctl_hook == NULL) ioctl_hook = execute_ioctl_hooks; if (link->private_next == NULL && link->private_prev == NULL) { /* Add the link to the doubly linked list. */ link->private_next = anchor.private_next; link->private_prev = &anchor; link->private_close_fn = close_hook; link->private_ioctl_fn = ioctl_hook; anchor.private_next->private_prev = link; anchor.private_next = link; } else { /* The link is already in use. */ if (link->private_close_fn != close_hook || link->private_ioctl_fn != ioctl_hook) abort (); } } void unregister_fd_hook (struct fd_hook *link) { struct fd_hook *next = link->private_next; struct fd_hook *prev = link->private_prev; if (next != NULL && prev != NULL) { /* The link is in use. Remove it from the doubly linked list. */ prev->private_next = next; next->private_prev = prev; /* Clear the link, to mark it unused. */ link->private_next = NULL; link->private_prev = NULL; link->private_close_fn = NULL; link->private_ioctl_fn = NULL; } } #endif shishi-1.0.3/lib/gl/sockets.c0000644000000000000000000001021214273615123012660 00000000000000/* sockets.c --- wrappers for Windows socket functions Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson */ #include /* Specification. */ #include "sockets.h" #if WINDOWS_SOCKETS /* This includes winsock2.h on MinGW. */ # include # include "fd-hook.h" # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Get set_winsock_errno, FD_TO_SOCKET etc. */ # include "w32sock.h" static int close_fd_maybe_socket (const struct fd_hook *remaining_list, gl_close_fn primary, int fd) { /* Note about multithread-safety: There is a race condition where, between our calls to closesocket() and the primary close(), some other thread could make system calls that allocate precisely the same HANDLE value as sock; then the primary close() would call CloseHandle() on it. */ SOCKET sock; WSANETWORKEVENTS ev; /* Test whether fd refers to a socket. */ sock = FD_TO_SOCKET (fd); ev.lNetworkEvents = 0xDEADBEEF; WSAEnumNetworkEvents (sock, NULL, &ev); if (ev.lNetworkEvents != 0xDEADBEEF) { /* fd refers to a socket. */ /* FIXME: other applications, like squid, use an undocumented _free_osfhnd free function. But this is not enough: The 'osfile' flags for fd also needs to be cleared, but it is hard to access it. Instead, here we just close twice the file descriptor. */ if (closesocket (sock)) { set_winsock_errno (); return -1; } else { /* This call frees the file descriptor and does a CloseHandle ((HANDLE) _get_osfhandle (fd)), which fails. */ _close (fd); return 0; } } else /* Some other type of file descriptor. */ return execute_close_hooks (remaining_list, primary, fd); } static int ioctl_fd_maybe_socket (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg) { SOCKET sock; WSANETWORKEVENTS ev; /* Test whether fd refers to a socket. */ sock = FD_TO_SOCKET (fd); ev.lNetworkEvents = 0xDEADBEEF; WSAEnumNetworkEvents (sock, NULL, &ev); if (ev.lNetworkEvents != 0xDEADBEEF) { /* fd refers to a socket. */ if (ioctlsocket (sock, request, arg) < 0) { set_winsock_errno (); return -1; } else return 0; } else /* Some other type of file descriptor. */ return execute_ioctl_hooks (remaining_list, primary, fd, request, arg); } static struct fd_hook fd_sockets_hook; static int initialized_sockets_version /* = 0 */; #endif /* WINDOWS_SOCKETS */ int gl_sockets_startup (_GL_UNUSED int version) { #if WINDOWS_SOCKETS if (version > initialized_sockets_version) { WSADATA data; int err; err = WSAStartup (version, &data); if (err != 0) return 1; if (data.wVersion != version) { WSACleanup (); return 2; } if (initialized_sockets_version == 0) register_fd_hook (close_fd_maybe_socket, ioctl_fd_maybe_socket, &fd_sockets_hook); initialized_sockets_version = version; } #endif return 0; } int gl_sockets_cleanup (void) { #if WINDOWS_SOCKETS int err; initialized_sockets_version = 0; unregister_fd_hook (&fd_sockets_hook); err = WSACleanup (); if (err != 0) return 1; #endif return 0; } shishi-1.0.3/lib/gl/netdb.in.h0000644000000000000000000002511714273615123012725 00000000000000/* Provide a netdb.h header file for systems lacking it (read: MinGW). Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* This file is supposed to be used on platforms that lack . It is intended to provide definitions and prototypes needed by an application. */ #ifndef _@GUARD_PREFIX@_NETDB_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if @HAVE_NETDB_H@ /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_NETDB_H@ #endif #ifndef _@GUARD_PREFIX@_NETDB_H #define _@GUARD_PREFIX@_NETDB_H /* Get definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and 'struct hostent' on MinGW. */ #include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Declarations for a platform that lacks , or where it is incomplete. */ #if @GNULIB_GETADDRINFO@ # if !@HAVE_STRUCT_ADDRINFO@ # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_struct_addrinfo /* Structure to contain information about address of a service provider. */ struct addrinfo { int ai_flags; /* Input flags. */ int ai_family; /* Protocol family for socket. */ int ai_socktype; /* Socket type. */ int ai_protocol; /* Protocol for socket. */ socklen_t ai_addrlen; /* Length of socket address. */ struct sockaddr *ai_addr; /* Socket address for socket. */ char *ai_canonname; /* Canonical name for service location. */ struct addrinfo *ai_next; /* Pointer to next in list. */ }; # define GNULIB_defined_struct_addrinfo 1 # endif # ifdef __cplusplus } # endif # endif /* Possible values for 'ai_flags' field in 'addrinfo' structure. */ # ifndef AI_PASSIVE # define AI_PASSIVE 0x0001 /* Socket address is intended for 'bind'. */ # endif # ifndef AI_CANONNAME # define AI_CANONNAME 0x0002 /* Request for canonical name. */ # endif # ifndef AI_NUMERICSERV # define AI_NUMERICSERV 0x0400 /* Don't use name resolution. */ # endif # if 0 # define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */ # endif /* These symbolic constants are required to be present by POSIX, but our getaddrinfo replacement doesn't use them (yet). Setting them to 0 on systems that doesn't have them avoids causing problems for system getaddrinfo implementations that would be confused by unknown values. */ # ifndef AI_V4MAPPED # define AI_V4MAPPED 0 /* 0x0008: IPv4 mapped addresses are acceptable. */ # endif # ifndef AI_ALL # define AI_ALL 0 /* 0x0010: Return IPv4 mapped and IPv6 addresses. */ # endif # ifndef AI_ADDRCONFIG # define AI_ADDRCONFIG 0 /* 0x0020: Use configuration of this host to choose returned address type. */ # endif /* Error values for 'getaddrinfo' function. */ # ifndef EAI_BADFLAGS # define EAI_BADFLAGS -1 /* Invalid value for 'ai_flags' field. */ # define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ # define EAI_AGAIN -3 /* Temporary failure in name resolution. */ # define EAI_FAIL -4 /* Non-recoverable failure in name res. */ # define EAI_NODATA -5 /* No address associated with NAME. */ # define EAI_FAMILY -6 /* 'ai_family' not supported. */ # define EAI_SOCKTYPE -7 /* 'ai_socktype' not supported. */ # define EAI_SERVICE -8 /* SERVICE not supported for 'ai_socktype'. */ # define EAI_MEMORY -10 /* Memory allocation failure. */ # endif /* Since EAI_NODATA is deprecated by RFC3493, some systems (at least FreeBSD, which does define EAI_BADFLAGS) have removed the definition in favor of EAI_NONAME. */ # if !defined EAI_NODATA && defined EAI_NONAME # define EAI_NODATA EAI_NONAME # endif # ifndef EAI_OVERFLOW /* Not defined on mingw32 and Haiku. */ # define EAI_OVERFLOW -12 /* Argument buffer overflow. */ # endif # ifndef EAI_ADDRFAMILY /* Not defined on mingw32. */ # define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */ # endif # ifndef EAI_SYSTEM /* Not defined on mingw32. */ # define EAI_SYSTEM -11 /* System error returned in 'errno'. */ # endif # if 0 /* The commented out definitions below are not yet implemented in the GNULIB getaddrinfo() replacement, so are not yet needed. If they are restored, be sure to protect the definitions with #ifndef. */ # ifndef EAI_INPROGRESS # define EAI_INPROGRESS -100 /* Processing request in progress. */ # define EAI_CANCELED -101 /* Request canceled. */ # define EAI_NOTCANCELED -102 /* Request not canceled. */ # define EAI_ALLDONE -103 /* All requests done. */ # define EAI_INTR -104 /* Interrupted by a signal. */ # define EAI_IDN_ENCODE -105 /* IDN encoding failed. */ # endif # endif /* Translate name of a service location and/or a service name to set of socket addresses. For more details, see the POSIX:2008 specification . */ # if @REPLACE_GETADDRINFO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getaddrinfo # define getaddrinfo rpl_getaddrinfo # endif _GL_FUNCDECL_RPL (getaddrinfo, int, (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res) _GL_ARG_NONNULL ((4))); _GL_CXXALIAS_RPL (getaddrinfo, int, (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res)); # else # if !@HAVE_DECL_GETADDRINFO@ _GL_FUNCDECL_SYS (getaddrinfo, int, (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res) _GL_ARG_NONNULL ((4))); # endif _GL_CXXALIAS_SYS (getaddrinfo, int, (const char *restrict nodename, const char *restrict servname, const struct addrinfo *restrict hints, struct addrinfo **restrict res)); # endif _GL_CXXALIASWARN (getaddrinfo); /* Free 'addrinfo' structure AI including associated storage. For more details, see the POSIX:2008 specification . */ # if @REPLACE_GETADDRINFO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef freeaddrinfo # define freeaddrinfo rpl_freeaddrinfo # endif _GL_FUNCDECL_RPL (freeaddrinfo, void, (struct addrinfo *ai) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (freeaddrinfo, void, (struct addrinfo *ai)); # else # if !@HAVE_DECL_FREEADDRINFO@ _GL_FUNCDECL_SYS (freeaddrinfo, void, (struct addrinfo *ai) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (freeaddrinfo, void, (struct addrinfo *ai)); # endif _GL_CXXALIASWARN (freeaddrinfo); # if @REPLACE_GAI_STRERROR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gai_strerror # define gai_strerror rpl_gai_strerror # endif _GL_FUNCDECL_RPL (gai_strerror, const char *, (int ecode)); _GL_CXXALIAS_RPL (gai_strerror, const char *, (int ecode)); # else # if !@HAVE_DECL_GAI_STRERROR@ /* Convert error return from getaddrinfo() to a string. For more details, see the POSIX:2008 specification . */ _GL_FUNCDECL_SYS (gai_strerror, const char *, (int ecode)); # endif _GL_CXXALIAS_SYS (gai_strerror, const char *, (int ecode)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (gai_strerror); # endif # if !@HAVE_DECL_GETNAMEINFO@ /* Convert socket address to printable node and service names. For more details, see the POSIX:2008 specification . */ _GL_FUNCDECL_SYS (getnameinfo, int, (const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on glibc systems, the seventh parameter is unsigned int flags. */ _GL_CXXALIAS_SYS_CAST (getnameinfo, int, (const struct sockaddr *restrict sa, socklen_t salen, char *restrict node, socklen_t nodelen, char *restrict service, socklen_t servicelen, int flags)); _GL_CXXALIASWARN (getnameinfo); /* Possible flags for getnameinfo. */ # ifndef NI_NUMERICHOST # define NI_NUMERICHOST 1 # endif # ifndef NI_NUMERICSERV # define NI_NUMERICSERV 2 # endif #elif defined GNULIB_POSIXCHECK # undef getaddrinfo # if HAVE_RAW_DECL_GETADDRINFO _GL_WARN_ON_USE (getaddrinfo, "getaddrinfo is unportable - " "use gnulib module getaddrinfo for portability"); # endif # undef freeaddrinfo # if HAVE_RAW_DECL_FREEADDRINFO _GL_WARN_ON_USE (freeaddrinfo, "freeaddrinfo is unportable - " "use gnulib module getaddrinfo for portability"); # endif # undef gai_strerror # if HAVE_RAW_DECL_GAI_STRERROR _GL_WARN_ON_USE (gai_strerror, "gai_strerror is unportable - " "use gnulib module getaddrinfo for portability"); # endif # undef getnameinfo # if HAVE_RAW_DECL_GETNAMEINFO _GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - " "use gnulib module getaddrinfo for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_NETDB_H */ #endif /* _@GUARD_PREFIX@_NETDB_H */ shishi-1.0.3/lib/gl/strchrnul.c0000644000000000000000000001303714273615123013241 00000000000000/* Searching in a string. Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Find the first occurrence of C in S or the final NUL byte. */ char * strchrnul (const char *s, int c_in) { /* On 32-bit hardware, choosing longword to be a 32-bit unsigned long instead of a 64-bit uintmax_t tends to give better performance. On 64-bit hardware, unsigned long is generally 64 bits already. Change this typedef to experiment with performance. */ typedef unsigned long int longword; const unsigned char *char_ptr; const longword *longword_ptr; longword repeated_one; longword repeated_c; unsigned char c; c = (unsigned char) c_in; if (!c) return rawmemchr (s, 0); /* Handle the first few bytes by reading one byte at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; (size_t) char_ptr % sizeof (longword) != 0; ++char_ptr) if (!*char_ptr || *char_ptr == c) return (char *) char_ptr; longword_ptr = (const longword *) char_ptr; /* All these elucidatory comments refer to 4-byte longwords, but the theory applies equally well to any size longwords. */ /* Compute auxiliary longword values: repeated_one is a value which has a 1 in every byte. repeated_c has c in every byte. */ repeated_one = 0x01010101; repeated_c = c | (c << 8); repeated_c |= repeated_c << 16; if (0xffffffffU < (longword) -1) { repeated_one |= repeated_one << 31 << 1; repeated_c |= repeated_c << 31 << 1; if (8 < sizeof (longword)) { size_t i; for (i = 64; i < sizeof (longword) * 8; i *= 2) { repeated_one |= repeated_one << i; repeated_c |= repeated_c << i; } } } /* Instead of the traditional loop which tests each byte, we will test a longword at a time. The tricky part is testing if *any of the four* bytes in the longword in question are equal to NUL or c. We first use an xor with repeated_c. This reduces the task to testing whether *any of the four* bytes in longword1 or longword2 is zero. Let's consider longword1. We compute tmp = ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). That is, we perform the following operations: 1. Subtract repeated_one. 2. & ~longword1. 3. & a mask consisting of 0x80 in every byte. Consider what happens in each byte: - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, and step 3 transforms it into 0x80. A carry can also be propagated to more significant bytes. - If a byte of longword1 is nonzero, let its lowest 1 bit be at position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, the byte ends in a single bit of value 0 and k bits of value 1. After step 2, the result is just k bits of value 1: 2^k - 1. After step 3, the result is 0. And no carry is produced. So, if longword1 has only non-zero bytes, tmp is zero. Whereas if longword1 has a zero byte, call j the position of the least significant zero byte. Then the result has a zero at positions 0, ..., j-1 and a 0x80 at position j. We cannot predict the result at the more significant bytes (positions j+1..3), but it does not matter since we already have a non-zero bit at position 8*j+7. The test whether any byte in longword1 or longword2 is zero is equivalent to testing whether tmp1 is nonzero or tmp2 is nonzero. We can combine this into a single test, whether (tmp1 | tmp2) is nonzero. This test can read more than one byte beyond the end of a string, depending on where the terminating NUL is encountered. However, this is considered safe since the initialization phase ensured that the read will be aligned, therefore, the read will not cross page boundaries and will not cause a fault. */ while (1) { longword longword1 = *longword_ptr ^ repeated_c; longword longword2 = *longword_ptr; if (((((longword1 - repeated_one) & ~longword1) | ((longword2 - repeated_one) & ~longword2)) & (repeated_one << 7)) != 0) break; longword_ptr++; } char_ptr = (const unsigned char *) longword_ptr; /* At this point, we know that one of the sizeof (longword) bytes starting at char_ptr is == 0 or == c. On little-endian machines, we could determine the first such byte without any further memory accesses, just by looking at the tmp result from the last loop iteration. But this does not work on big-endian machines. Choose code that works in both cases. */ char_ptr = (unsigned char *) longword_ptr; while (*char_ptr && (*char_ptr != c)) char_ptr++; return (char *) char_ptr; } shishi-1.0.3/lib/gl/wchar.in.h0000644000000000000000000012551214273615123012735 00000000000000/* A substitute for ISO C99 , for platforms that have issues. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake. */ /* * ISO C 99 for platforms that have issues. * * * For now, this just ensures proper prerequisite inclusion order and * the declaration of wcwidth(). */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if (((defined __need_mbstate_t || defined __need_wint_t) \ && !defined __MINGW32__) \ || (defined __hpux \ && ((defined _INTTYPES_INCLUDED \ && !defined _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H) \ || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ || (defined __MINGW32__ && defined __STRING_H_SOURCED__) \ || defined _GL_ALREADY_INCLUDING_WCHAR_H) /* Special invocation convention: - Inside glibc and uClibc header files, but not MinGW. - On HP-UX 11.00 we have a sequence of nested includes -> -> , and the latter includes , once indirectly -> -> -> and once directly. In both situations 'wint_t' is not yet defined, therefore we cannot provide the function overrides; instead include only the system's . - With MinGW 3.22, when includes , only some part of is actually processed, and that doesn't include 'mbstate_t'. - On IRIX 6.5, similarly, we have an include -> , and the latter includes . But here, we have no way to detect whether is completely included or is still being included. */ #@INCLUDE_NEXT@ @NEXT_WCHAR_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_WCHAR_H #define _GL_ALREADY_INCLUDING_WCHAR_H #if @HAVE_FEATURES_H@ # include /* for __GLIBC__ */ #endif /* In some builds of uClibc, is nonexistent and wchar_t is defined by . But avoid namespace pollution on glibc systems. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) # include #endif /* Include the original if it exists. Some builds of uClibc lack it. */ /* The include_next requires a split double-inclusion guard. */ #if @HAVE_WCHAR_H@ # @INCLUDE_NEXT@ @NEXT_WCHAR_H@ #endif #undef _GL_ALREADY_INCLUDING_WCHAR_H #ifndef _@GUARD_PREFIX@_WCHAR_H #define _@GUARD_PREFIX@_WCHAR_H /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #ifndef _GL_ATTRIBUTE_MALLOC # if __GNUC__ >= 3 || defined __clang__ # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define _GL_ATTRIBUTE_MALLOC # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The attribute __pure__ was added in gcc 2.96. */ #ifndef _GL_ATTRIBUTE_PURE # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define _GL_ATTRIBUTE_PURE /* empty */ # endif #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Define wint_t and WEOF. (Also done in wctype.in.h.) */ #if !@HAVE_WINT_T@ && !defined wint_t # define wint_t int # ifndef WEOF # define WEOF -1 # endif #else /* mingw and MSVC define wint_t as 'unsigned short' in or . This is too small: ISO C 99 section 7.24.1.(2) says that wint_t must be "unchanged by default argument promotions". Override it. */ # if @GNULIBHEADERS_OVERRIDE_WINT_T@ # if !GNULIB_defined_wint_t # if @HAVE_CRTDEFS_H@ # include # else # include # endif typedef unsigned int rpl_wint_t; # undef wint_t # define wint_t rpl_wint_t # define GNULIB_defined_wint_t 1 # endif # endif # ifndef WEOF # define WEOF ((wint_t) -1) # endif #endif /* Override mbstate_t if it is too small. On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for implementing mbrtowc for encodings like UTF-8. On AIX and MSVC, mbrtowc needs to be overridden, but mbstate_t exists and is large enough and overriding it would cause problems in C++ mode. */ #if !(((defined _WIN32 && !defined __CYGWIN__) || @HAVE_MBSINIT@) && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@ # if !GNULIB_defined_mbstate_t # if !(defined _AIX || defined _MSC_VER) typedef int rpl_mbstate_t; # undef mbstate_t # define mbstate_t rpl_mbstate_t # endif # define GNULIB_defined_mbstate_t 1 # endif #endif /* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though may not have been included yet. */ #if @GNULIB_FREE_POSIX@ # if (@REPLACE_FREE@ && !defined free \ && !(defined __cplusplus && defined GNULIB_NAMESPACE)) /* We can't do '#define free rpl_free' here. */ _GL_EXTERN_C void rpl_free (void *); # undef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1) # else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif # endif #else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif #endif /* Convert a single-byte character to a wide character. */ #if @GNULIB_BTOWC@ # if @REPLACE_BTOWC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef btowc # define btowc rpl_btowc # endif _GL_FUNCDECL_RPL (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (btowc, wint_t, (int c)); # else # if !@HAVE_BTOWC@ _GL_FUNCDECL_SYS (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); # endif /* Need to cast, because on mingw, the return type is 'unsigned short'. */ _GL_CXXALIAS_SYS_CAST (btowc, wint_t, (int c)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (btowc); # endif #elif defined GNULIB_POSIXCHECK # undef btowc # if HAVE_RAW_DECL_BTOWC _GL_WARN_ON_USE (btowc, "btowc is unportable - " "use gnulib module btowc for portability"); # endif #endif /* Convert a wide character to a single-byte character. */ #if @GNULIB_WCTOB@ # if @REPLACE_WCTOB@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wctob # define wctob rpl_wctob # endif _GL_FUNCDECL_RPL (wctob, int, (wint_t wc) _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); # else # if !defined wctob && !@HAVE_DECL_WCTOB@ /* wctob is provided by gnulib, or wctob exists but is not declared. */ _GL_FUNCDECL_SYS (wctob, int, (wint_t wc) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wctob); # endif #elif defined GNULIB_POSIXCHECK # undef wctob # if HAVE_RAW_DECL_WCTOB _GL_WARN_ON_USE (wctob, "wctob is unportable - " "use gnulib module wctob for portability"); # endif #endif /* Test whether *PS is in the initial state. */ #if @GNULIB_MBSINIT@ # if @REPLACE_MBSINIT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbsinit # define mbsinit rpl_mbsinit # endif _GL_FUNCDECL_RPL (mbsinit, int, (const mbstate_t *ps)); _GL_CXXALIAS_RPL (mbsinit, int, (const mbstate_t *ps)); # else # if !@HAVE_MBSINIT@ _GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps)); # endif _GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbsinit); # endif #elif defined GNULIB_POSIXCHECK # undef mbsinit # if HAVE_RAW_DECL_MBSINIT _GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - " "use gnulib module mbsinit for portability"); # endif #endif /* Convert a multibyte character to a wide character. */ #if @GNULIB_MBRTOWC@ # if @REPLACE_MBRTOWC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbrtowc # define mbrtowc rpl_mbrtowc # endif _GL_FUNCDECL_RPL (mbrtowc, size_t, (wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps)); _GL_CXXALIAS_RPL (mbrtowc, size_t, (wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps)); # else # if !@HAVE_MBRTOWC@ _GL_FUNCDECL_SYS (mbrtowc, size_t, (wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps)); # endif _GL_CXXALIAS_SYS (mbrtowc, size_t, (wchar_t *restrict pwc, const char *restrict s, size_t n, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbrtowc); # endif #elif defined GNULIB_POSIXCHECK # undef mbrtowc # if HAVE_RAW_DECL_MBRTOWC _GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - " "use gnulib module mbrtowc for portability"); # endif #endif /* Recognize a multibyte character. */ #if @GNULIB_MBRLEN@ # if @REPLACE_MBRLEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbrlen # define mbrlen rpl_mbrlen # endif _GL_FUNCDECL_RPL (mbrlen, size_t, (const char *restrict s, size_t n, mbstate_t *restrict ps)); _GL_CXXALIAS_RPL (mbrlen, size_t, (const char *restrict s, size_t n, mbstate_t *restrict ps)); # else # if !@HAVE_MBRLEN@ _GL_FUNCDECL_SYS (mbrlen, size_t, (const char *restrict s, size_t n, mbstate_t *restrict ps)); # endif _GL_CXXALIAS_SYS (mbrlen, size_t, (const char *restrict s, size_t n, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbrlen); # endif #elif defined GNULIB_POSIXCHECK # undef mbrlen # if HAVE_RAW_DECL_MBRLEN _GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - " "use gnulib module mbrlen for portability"); # endif #endif /* Convert a string to a wide string. */ #if @GNULIB_MBSRTOWCS@ # if @REPLACE_MBSRTOWCS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbsrtowcs # define mbsrtowcs rpl_mbsrtowcs # endif _GL_FUNCDECL_RPL (mbsrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mbsrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t len, mbstate_t *restrict ps)); # else # if !@HAVE_MBSRTOWCS@ _GL_FUNCDECL_SYS (mbsrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mbsrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t len, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbsrtowcs); # endif #elif defined GNULIB_POSIXCHECK # undef mbsrtowcs # if HAVE_RAW_DECL_MBSRTOWCS _GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - " "use gnulib module mbsrtowcs for portability"); # endif #endif /* Convert a string to a wide string. */ #if @GNULIB_MBSNRTOWCS@ # if @REPLACE_MBSNRTOWCS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbsnrtowcs # define mbsnrtowcs rpl_mbsnrtowcs # endif _GL_FUNCDECL_RPL (mbsnrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mbsnrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps)); # else # if !@HAVE_MBSNRTOWCS@ _GL_FUNCDECL_SYS (mbsnrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mbsnrtowcs, size_t, (wchar_t *restrict dest, const char **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps)); # endif _GL_CXXALIASWARN (mbsnrtowcs); #elif defined GNULIB_POSIXCHECK # undef mbsnrtowcs # if HAVE_RAW_DECL_MBSNRTOWCS _GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - " "use gnulib module mbsnrtowcs for portability"); # endif #endif /* Convert a wide character to a multibyte character. */ #if @GNULIB_WCRTOMB@ # if @REPLACE_WCRTOMB@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcrtomb # define wcrtomb rpl_wcrtomb # endif _GL_FUNCDECL_RPL (wcrtomb, size_t, (char *restrict s, wchar_t wc, mbstate_t *restrict ps)); _GL_CXXALIAS_RPL (wcrtomb, size_t, (char *restrict s, wchar_t wc, mbstate_t *restrict ps)); # else # if !@HAVE_WCRTOMB@ _GL_FUNCDECL_SYS (wcrtomb, size_t, (char *restrict s, wchar_t wc, mbstate_t *restrict ps)); # endif _GL_CXXALIAS_SYS (wcrtomb, size_t, (char *restrict s, wchar_t wc, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcrtomb); # endif #elif defined GNULIB_POSIXCHECK # undef wcrtomb # if HAVE_RAW_DECL_WCRTOMB _GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - " "use gnulib module wcrtomb for portability"); # endif #endif /* Convert a wide string to a string. */ #if @GNULIB_WCSRTOMBS@ # if @REPLACE_WCSRTOMBS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcsrtombs # define wcsrtombs rpl_wcsrtombs # endif _GL_FUNCDECL_RPL (wcsrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (wcsrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t len, mbstate_t *restrict ps)); # else # if !@HAVE_WCSRTOMBS@ _GL_FUNCDECL_SYS (wcsrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (wcsrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t len, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsrtombs); # endif #elif defined GNULIB_POSIXCHECK # undef wcsrtombs # if HAVE_RAW_DECL_WCSRTOMBS _GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - " "use gnulib module wcsrtombs for portability"); # endif #endif /* Convert a wide string to a string. */ #if @GNULIB_WCSNRTOMBS@ # if @REPLACE_WCSNRTOMBS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcsnrtombs # define wcsnrtombs rpl_wcsnrtombs # endif _GL_FUNCDECL_RPL (wcsnrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (wcsnrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps)); # else # if !@HAVE_WCSNRTOMBS@ || (defined __cplusplus && defined __sun) _GL_FUNCDECL_SYS (wcsnrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (wcsnrtombs, size_t, (char *restrict dest, const wchar_t **restrict srcp, size_t srclen, size_t len, mbstate_t *restrict ps)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsnrtombs); # endif #elif defined GNULIB_POSIXCHECK # undef wcsnrtombs # if HAVE_RAW_DECL_WCSNRTOMBS _GL_WARN_ON_USE (wcsnrtombs, "wcsnrtombs is unportable - " "use gnulib module wcsnrtombs for portability"); # endif #endif /* Return the number of screen columns needed for WC. */ #if @GNULIB_WCWIDTH@ # if @REPLACE_WCWIDTH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcwidth # define wcwidth rpl_wcwidth # endif _GL_FUNCDECL_RPL (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); # else # if !@HAVE_DECL_WCWIDTH@ /* wcwidth exists but is not declared. */ _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcwidth); # endif #elif defined GNULIB_POSIXCHECK # undef wcwidth # if HAVE_RAW_DECL_WCWIDTH _GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " "use gnulib module wcwidth for portability"); # endif #endif /* Search N wide characters of S for C. */ #if @GNULIB_WMEMCHR@ # if !@HAVE_WMEMCHR@ _GL_FUNCDECL_SYS (wmemchr, wchar_t *, (const wchar_t *s, wchar_t c, size_t n) _GL_ATTRIBUTE_PURE); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const wchar_t * std::wmemchr (const wchar_t *, wchar_t, size_t); wchar_t * std::wmemchr (wchar_t *, wchar_t, size_t); } */ _GL_CXXALIAS_SYS_CAST2 (wmemchr, wchar_t *, (const wchar_t *, wchar_t, size_t), const wchar_t *, (const wchar_t *, wchar_t, size_t)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) _GL_CXXALIASWARN1 (wmemchr, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); _GL_CXXALIASWARN1 (wmemchr, const wchar_t *, (const wchar_t *s, wchar_t c, size_t n)); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (wmemchr); # endif #elif defined GNULIB_POSIXCHECK # undef wmemchr # if HAVE_RAW_DECL_WMEMCHR _GL_WARN_ON_USE (wmemchr, "wmemchr is unportable - " "use gnulib module wmemchr for portability"); # endif #endif /* Compare N wide characters of S1 and S2. */ #if @GNULIB_WMEMCMP@ # if !@HAVE_WMEMCMP@ _GL_FUNCDECL_SYS (wmemcmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wmemcmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wmemcmp); # endif #elif defined GNULIB_POSIXCHECK # undef wmemcmp # if HAVE_RAW_DECL_WMEMCMP _GL_WARN_ON_USE (wmemcmp, "wmemcmp is unportable - " "use gnulib module wmemcmp for portability"); # endif #endif /* Copy N wide characters of SRC to DEST. */ #if @GNULIB_WMEMCPY@ # if !@HAVE_WMEMCPY@ _GL_FUNCDECL_SYS (wmemcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # endif _GL_CXXALIAS_SYS (wmemcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wmemcpy); # endif #elif defined GNULIB_POSIXCHECK # undef wmemcpy # if HAVE_RAW_DECL_WMEMCPY _GL_WARN_ON_USE (wmemcpy, "wmemcpy is unportable - " "use gnulib module wmemcpy for portability"); # endif #endif /* Copy N wide characters of SRC to DEST, guaranteeing correct behavior for overlapping memory areas. */ #if @GNULIB_WMEMMOVE@ # if !@HAVE_WMEMMOVE@ _GL_FUNCDECL_SYS (wmemmove, wchar_t *, (wchar_t *dest, const wchar_t *src, size_t n)); # endif _GL_CXXALIAS_SYS (wmemmove, wchar_t *, (wchar_t *dest, const wchar_t *src, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wmemmove); # endif #elif defined GNULIB_POSIXCHECK # undef wmemmove # if HAVE_RAW_DECL_WMEMMOVE _GL_WARN_ON_USE (wmemmove, "wmemmove is unportable - " "use gnulib module wmemmove for portability"); # endif #endif /* Copy N wide characters of SRC to DEST. Return pointer to wide characters after the last written wide character. */ #if @GNULIB_WMEMPCPY@ # if !@HAVE_WMEMPCPY@ _GL_FUNCDECL_SYS (wmempcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # endif _GL_CXXALIAS_SYS (wmempcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wmempcpy); # endif #elif defined GNULIB_POSIXCHECK # undef wmempcpy # if HAVE_RAW_DECL_WMEMPCPY _GL_WARN_ON_USE (wmempcpy, "wmempcpy is unportable - " "use gnulib module wmempcpy for portability"); # endif #endif /* Set N wide characters of S to C. */ #if @GNULIB_WMEMSET@ # if !@HAVE_WMEMSET@ _GL_FUNCDECL_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); # endif _GL_CXXALIAS_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wmemset); # endif #elif defined GNULIB_POSIXCHECK # undef wmemset # if HAVE_RAW_DECL_WMEMSET _GL_WARN_ON_USE (wmemset, "wmemset is unportable - " "use gnulib module wmemset for portability"); # endif #endif /* Return the number of wide characters in S. */ #if @GNULIB_WCSLEN@ # if !@HAVE_WCSLEN@ _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcslen); # endif #elif defined GNULIB_POSIXCHECK # undef wcslen # if HAVE_RAW_DECL_WCSLEN _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " "use gnulib module wcslen for portability"); # endif #endif /* Return the number of wide characters in S, but at most MAXLEN. */ #if @GNULIB_WCSNLEN@ # if !@HAVE_WCSNLEN@ _GL_FUNCDECL_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcsnlen, size_t, (const wchar_t *s, size_t maxlen)); _GL_CXXALIASWARN (wcsnlen); #elif defined GNULIB_POSIXCHECK # undef wcsnlen # if HAVE_RAW_DECL_WCSNLEN _GL_WARN_ON_USE (wcsnlen, "wcsnlen is unportable - " "use gnulib module wcsnlen for portability"); # endif #endif /* Copy SRC to DEST. */ #if @GNULIB_WCSCPY@ # if !@HAVE_WCSCPY@ _GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); # endif _GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcscpy); # endif #elif defined GNULIB_POSIXCHECK # undef wcscpy # if HAVE_RAW_DECL_WCSCPY _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " "use gnulib module wcscpy for portability"); # endif #endif /* Copy SRC to DEST, returning the address of the terminating L'\0' in DEST. */ #if @GNULIB_WCPCPY@ # if !@HAVE_WCPCPY@ _GL_FUNCDECL_SYS (wcpcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); # endif _GL_CXXALIAS_SYS (wcpcpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); _GL_CXXALIASWARN (wcpcpy); #elif defined GNULIB_POSIXCHECK # undef wcpcpy # if HAVE_RAW_DECL_WCPCPY _GL_WARN_ON_USE (wcpcpy, "wcpcpy is unportable - " "use gnulib module wcpcpy for portability"); # endif #endif /* Copy no more than N wide characters of SRC to DEST. */ #if @GNULIB_WCSNCPY@ # if !@HAVE_WCSNCPY@ _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # endif _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsncpy); # endif #elif defined GNULIB_POSIXCHECK # undef wcsncpy # if HAVE_RAW_DECL_WCSNCPY _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " "use gnulib module wcsncpy for portability"); # endif #endif /* Copy no more than N characters of SRC to DEST, returning the address of the last character written into DEST. */ #if @GNULIB_WCPNCPY@ # if !@HAVE_WCPNCPY@ _GL_FUNCDECL_SYS (wcpncpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # endif _GL_CXXALIAS_SYS (wcpncpy, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); _GL_CXXALIASWARN (wcpncpy); #elif defined GNULIB_POSIXCHECK # undef wcpncpy # if HAVE_RAW_DECL_WCPNCPY _GL_WARN_ON_USE (wcpncpy, "wcpncpy is unportable - " "use gnulib module wcpncpy for portability"); # endif #endif /* Append SRC onto DEST. */ #if @GNULIB_WCSCAT@ # if !@HAVE_WCSCAT@ _GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); # endif _GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcscat); # endif #elif defined GNULIB_POSIXCHECK # undef wcscat # if HAVE_RAW_DECL_WCSCAT _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " "use gnulib module wcscat for portability"); # endif #endif /* Append no more than N wide characters of SRC onto DEST. */ #if @GNULIB_WCSNCAT@ # if !@HAVE_WCSNCAT@ _GL_FUNCDECL_SYS (wcsncat, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # endif _GL_CXXALIAS_SYS (wcsncat, wchar_t *, (wchar_t *restrict dest, const wchar_t *restrict src, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsncat); # endif #elif defined GNULIB_POSIXCHECK # undef wcsncat # if HAVE_RAW_DECL_WCSNCAT _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " "use gnulib module wcsncat for portability"); # endif #endif /* Compare S1 and S2. */ #if @GNULIB_WCSCMP@ # if !@HAVE_WCSCMP@ _GL_FUNCDECL_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcscmp); # endif #elif defined GNULIB_POSIXCHECK # undef wcscmp # if HAVE_RAW_DECL_WCSCMP _GL_WARN_ON_USE (wcscmp, "wcscmp is unportable - " "use gnulib module wcscmp for portability"); # endif #endif /* Compare no more than N wide characters of S1 and S2. */ #if @GNULIB_WCSNCMP@ # if !@HAVE_WCSNCMP@ _GL_FUNCDECL_SYS (wcsncmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcsncmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsncmp); # endif #elif defined GNULIB_POSIXCHECK # undef wcsncmp # if HAVE_RAW_DECL_WCSNCMP _GL_WARN_ON_USE (wcsncmp, "wcsncmp is unportable - " "use gnulib module wcsncmp for portability"); # endif #endif /* Compare S1 and S2, ignoring case. */ #if @GNULIB_WCSCASECMP@ # if !@HAVE_WCSCASECMP@ _GL_FUNCDECL_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcscasecmp, int, (const wchar_t *s1, const wchar_t *s2)); _GL_CXXALIASWARN (wcscasecmp); #elif defined GNULIB_POSIXCHECK # undef wcscasecmp # if HAVE_RAW_DECL_WCSCASECMP _GL_WARN_ON_USE (wcscasecmp, "wcscasecmp is unportable - " "use gnulib module wcscasecmp for portability"); # endif #endif /* Compare no more than N chars of S1 and S2, ignoring case. */ #if @GNULIB_WCSNCASECMP@ # if !@HAVE_WCSNCASECMP@ _GL_FUNCDECL_SYS (wcsncasecmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcsncasecmp, int, (const wchar_t *s1, const wchar_t *s2, size_t n)); _GL_CXXALIASWARN (wcsncasecmp); #elif defined GNULIB_POSIXCHECK # undef wcsncasecmp # if HAVE_RAW_DECL_WCSNCASECMP _GL_WARN_ON_USE (wcsncasecmp, "wcsncasecmp is unportable - " "use gnulib module wcsncasecmp for portability"); # endif #endif /* Compare S1 and S2, both interpreted as appropriate to the LC_COLLATE category of the current locale. */ #if @GNULIB_WCSCOLL@ # if !@HAVE_WCSCOLL@ _GL_FUNCDECL_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2)); # endif _GL_CXXALIAS_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcscoll); # endif #elif defined GNULIB_POSIXCHECK # undef wcscoll # if HAVE_RAW_DECL_WCSCOLL _GL_WARN_ON_USE (wcscoll, "wcscoll is unportable - " "use gnulib module wcscoll for portability"); # endif #endif /* Transform S2 into array pointed to by S1 such that if wcscmp is applied to two transformed strings the result is the as applying 'wcscoll' to the original strings. */ #if @GNULIB_WCSXFRM@ # if !@HAVE_WCSXFRM@ _GL_FUNCDECL_SYS (wcsxfrm, size_t, (wchar_t *restrict s1, const wchar_t *restrict s2, size_t n)); # endif _GL_CXXALIAS_SYS (wcsxfrm, size_t, (wchar_t *restrict s1, const wchar_t *restrict s2, size_t n)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsxfrm); # endif #elif defined GNULIB_POSIXCHECK # undef wcsxfrm # if HAVE_RAW_DECL_WCSXFRM _GL_WARN_ON_USE (wcsxfrm, "wcsxfrm is unportable - " "use gnulib module wcsxfrm for portability"); # endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_WCSDUP@ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcsdup # define wcsdup _wcsdup # endif _GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s)); # else # if !@HAVE_WCSDUP@ || __GNUC__ >= 11 _GL_FUNCDECL_SYS (wcsdup, wchar_t *, (const wchar_t *s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s)); # endif _GL_CXXALIASWARN (wcsdup); #else # if __GNUC__ >= 11 && !defined wcsdup /* For -Wmismatched-dealloc: Associate wcsdup with free or rpl_free. */ _GL_FUNCDECL_SYS (wcsdup, wchar_t *, (const wchar_t *s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef wcsdup # if HAVE_RAW_DECL_WCSDUP _GL_WARN_ON_USE (wcsdup, "wcsdup is unportable - " "use gnulib module wcsdup for portability"); # endif # elif @GNULIB_MDA_WCSDUP@ /* On native Windows, map 'wcsdup' to '_wcsdup', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::wcsdup always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcsdup # define wcsdup _wcsdup # endif _GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s)); # else _GL_FUNCDECL_SYS (wcsdup, wchar_t *, (const wchar_t *s) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # if @HAVE_DECL_WCSDUP@ _GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_WCSDUP@ _GL_CXXALIASWARN (wcsdup); # endif # endif #endif /* Find the first occurrence of WC in WCS. */ #if @GNULIB_WCSCHR@ # if !@HAVE_WCSCHR@ _GL_FUNCDECL_SYS (wcschr, wchar_t *, (const wchar_t *wcs, wchar_t wc) _GL_ATTRIBUTE_PURE); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const wchar_t * std::wcschr (const wchar_t *, wchar_t); wchar_t * std::wcschr (wchar_t *, wchar_t); } */ _GL_CXXALIAS_SYS_CAST2 (wcschr, wchar_t *, (const wchar_t *, wchar_t), const wchar_t *, (const wchar_t *, wchar_t)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) _GL_CXXALIASWARN1 (wcschr, wchar_t *, (wchar_t *wcs, wchar_t wc)); _GL_CXXALIASWARN1 (wcschr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (wcschr); # endif #elif defined GNULIB_POSIXCHECK # undef wcschr # if HAVE_RAW_DECL_WCSCHR _GL_WARN_ON_USE (wcschr, "wcschr is unportable - " "use gnulib module wcschr for portability"); # endif #endif /* Find the last occurrence of WC in WCS. */ #if @GNULIB_WCSRCHR@ # if !@HAVE_WCSRCHR@ _GL_FUNCDECL_SYS (wcsrchr, wchar_t *, (const wchar_t *wcs, wchar_t wc) _GL_ATTRIBUTE_PURE); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const wchar_t * std::wcsrchr (const wchar_t *, wchar_t); wchar_t * std::wcsrchr (wchar_t *, wchar_t); } */ _GL_CXXALIAS_SYS_CAST2 (wcsrchr, wchar_t *, (const wchar_t *, wchar_t), const wchar_t *, (const wchar_t *, wchar_t)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) _GL_CXXALIASWARN1 (wcsrchr, wchar_t *, (wchar_t *wcs, wchar_t wc)); _GL_CXXALIASWARN1 (wcsrchr, const wchar_t *, (const wchar_t *wcs, wchar_t wc)); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsrchr); # endif #elif defined GNULIB_POSIXCHECK # undef wcsrchr # if HAVE_RAW_DECL_WCSRCHR _GL_WARN_ON_USE (wcsrchr, "wcsrchr is unportable - " "use gnulib module wcsrchr for portability"); # endif #endif /* Return the length of the initial segmet of WCS which consists entirely of wide characters not in REJECT. */ #if @GNULIB_WCSCSPN@ # if !@HAVE_WCSCSPN@ _GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcscspn); # endif #elif defined GNULIB_POSIXCHECK # undef wcscspn # if HAVE_RAW_DECL_WCSCSPN _GL_WARN_ON_USE (wcscspn, "wcscspn is unportable - " "use gnulib module wcscspn for portability"); # endif #endif /* Return the length of the initial segmet of WCS which consists entirely of wide characters in ACCEPT. */ #if @GNULIB_WCSSPN@ # if !@HAVE_WCSSPN@ _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept)); # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsspn); # endif #elif defined GNULIB_POSIXCHECK # undef wcsspn # if HAVE_RAW_DECL_WCSSPN _GL_WARN_ON_USE (wcsspn, "wcsspn is unportable - " "use gnulib module wcsspn for portability"); # endif #endif /* Find the first occurrence in WCS of any character in ACCEPT. */ #if @GNULIB_WCSPBRK@ # if !@HAVE_WCSPBRK@ _GL_FUNCDECL_SYS (wcspbrk, wchar_t *, (const wchar_t *wcs, const wchar_t *accept) _GL_ATTRIBUTE_PURE); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const wchar_t * std::wcspbrk (const wchar_t *, const wchar_t *); wchar_t * std::wcspbrk (wchar_t *, const wchar_t *); } */ _GL_CXXALIAS_SYS_CAST2 (wcspbrk, wchar_t *, (const wchar_t *, const wchar_t *), const wchar_t *, (const wchar_t *, const wchar_t *)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) _GL_CXXALIASWARN1 (wcspbrk, wchar_t *, (wchar_t *wcs, const wchar_t *accept)); _GL_CXXALIASWARN1 (wcspbrk, const wchar_t *, (const wchar_t *wcs, const wchar_t *accept)); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (wcspbrk); # endif #elif defined GNULIB_POSIXCHECK # undef wcspbrk # if HAVE_RAW_DECL_WCSPBRK _GL_WARN_ON_USE (wcspbrk, "wcspbrk is unportable - " "use gnulib module wcspbrk for portability"); # endif #endif /* Find the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_WCSSTR@ # if !@HAVE_WCSSTR@ _GL_FUNCDECL_SYS (wcsstr, wchar_t *, (const wchar_t *restrict haystack, const wchar_t *restrict needle) _GL_ATTRIBUTE_PURE); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const wchar_t * std::wcsstr (const wchar_t *, const wchar_t *); wchar_t * std::wcsstr (wchar_t *, const wchar_t *); } */ _GL_CXXALIAS_SYS_CAST2 (wcsstr, wchar_t *, (const wchar_t *restrict, const wchar_t *restrict), const wchar_t *, (const wchar_t *restrict, const wchar_t *restrict)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) _GL_CXXALIASWARN1 (wcsstr, wchar_t *, (wchar_t *restrict haystack, const wchar_t *restrict needle)); _GL_CXXALIASWARN1 (wcsstr, const wchar_t *, (const wchar_t *restrict haystack, const wchar_t *restrict needle)); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsstr); # endif #elif defined GNULIB_POSIXCHECK # undef wcsstr # if HAVE_RAW_DECL_WCSSTR _GL_WARN_ON_USE (wcsstr, "wcsstr is unportable - " "use gnulib module wcsstr for portability"); # endif #endif /* Divide WCS into tokens separated by characters in DELIM. */ #if @GNULIB_WCSTOK@ # if @REPLACE_WCSTOK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcstok # define wcstok rpl_wcstok # endif _GL_FUNCDECL_RPL (wcstok, wchar_t *, (wchar_t *restrict wcs, const wchar_t *restrict delim, wchar_t **restrict ptr)); _GL_CXXALIAS_RPL (wcstok, wchar_t *, (wchar_t *restrict wcs, const wchar_t *restrict delim, wchar_t **restrict ptr)); # else # if !@HAVE_WCSTOK@ _GL_FUNCDECL_SYS (wcstok, wchar_t *, (wchar_t *restrict wcs, const wchar_t *restrict delim, wchar_t **restrict ptr)); # endif _GL_CXXALIAS_SYS (wcstok, wchar_t *, (wchar_t *restrict wcs, const wchar_t *restrict delim, wchar_t **restrict ptr)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcstok); # endif #elif defined GNULIB_POSIXCHECK # undef wcstok # if HAVE_RAW_DECL_WCSTOK _GL_WARN_ON_USE (wcstok, "wcstok is unportable - " "use gnulib module wcstok for portability"); # endif #endif /* Determine number of column positions required for first N wide characters (or fewer if S ends before this) in S. */ #if @GNULIB_WCSWIDTH@ # if @REPLACE_WCSWIDTH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcswidth # define wcswidth rpl_wcswidth # endif _GL_FUNCDECL_RPL (wcswidth, int, (const wchar_t *s, size_t n) _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (wcswidth, int, (const wchar_t *s, size_t n)); # else # if !@HAVE_WCSWIDTH@ _GL_FUNCDECL_SYS (wcswidth, int, (const wchar_t *s, size_t n) _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wcswidth, int, (const wchar_t *s, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcswidth); # endif #elif defined GNULIB_POSIXCHECK # undef wcswidth # if HAVE_RAW_DECL_WCSWIDTH _GL_WARN_ON_USE (wcswidth, "wcswidth is unportable - " "use gnulib module wcswidth for portability"); # endif #endif /* Convert *TP to a date and time wide string. See . */ #if @GNULIB_WCSFTIME@ # if @REPLACE_WCSFTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wcsftime # define wcsftime rpl_wcsftime # endif _GL_FUNCDECL_RPL (wcsftime, size_t, (wchar_t *restrict __buf, size_t __bufsize, const wchar_t *restrict __fmt, const struct tm *restrict __tp) _GL_ARG_NONNULL ((1, 3, 4))); _GL_CXXALIAS_RPL (wcsftime, size_t, (wchar_t *restrict __buf, size_t __bufsize, const wchar_t *restrict __fmt, const struct tm *restrict __tp)); # else # if !@HAVE_WCSFTIME@ _GL_FUNCDECL_SYS (wcsftime, size_t, (wchar_t *restrict __buf, size_t __bufsize, const wchar_t *restrict __fmt, const struct tm *restrict __tp) _GL_ARG_NONNULL ((1, 3, 4))); # endif _GL_CXXALIAS_SYS (wcsftime, size_t, (wchar_t *restrict __buf, size_t __bufsize, const wchar_t *restrict __fmt, const struct tm *restrict __tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wcsftime); # endif #elif defined GNULIB_POSIXCHECK # undef wcsftime # if HAVE_RAW_DECL_WCSFTIME _GL_WARN_ON_USE (wcsftime, "wcsftime is unportable - " "use gnulib module wcsftime for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_WCHAR_H */ #endif /* _@GUARD_PREFIX@_WCHAR_H */ #endif shishi-1.0.3/lib/gl/sys_socket.c0000644000000000000000000000155514273615123013405 00000000000000/* Inline functions for . Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_SYS_SOCKET_INLINE _GL_EXTERN_INLINE #include "sys/socket.h" typedef int dummy; shishi-1.0.3/lib/gl/xmalloc.c0000644000000000000000000002031514273615123012651 00000000000000/* xmalloc.c -- malloc with out of memory checking Copyright (C) 1990-2000, 2002-2006, 2008-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include #define XALLOC_INLINE _GL_EXTERN_INLINE #include "xalloc.h" #include "ialloc.h" #include "intprops.h" #include "minmax.h" #include #include static void * _GL_ATTRIBUTE_PURE nonnull (void *p) { if (!p) xalloc_die (); return p; } /* Allocate S bytes of memory dynamically, with error checking. */ void * xmalloc (size_t s) { return nonnull (malloc (s)); } void * ximalloc (idx_t s) { return nonnull (imalloc (s)); } char * xcharalloc (size_t n) { return XNMALLOC (n, char); } /* Change the size of an allocated block of memory P to S bytes, with error checking. */ void * xrealloc (void *p, size_t s) { void *r = realloc (p, s); if (!r && (!p || s)) xalloc_die (); return r; } void * xirealloc (void *p, idx_t s) { return nonnull (irealloc (p, s)); } /* Change the size of an allocated block of memory P to an array of N objects each of S bytes, with error checking. */ void * xreallocarray (void *p, size_t n, size_t s) { void *r = reallocarray (p, n, s); if (!r && (!p || (n && s))) xalloc_die (); return r; } void * xireallocarray (void *p, idx_t n, idx_t s) { return nonnull (ireallocarray (p, n, s)); } /* Allocate an array of N objects, each with S bytes of memory, dynamically, with error checking. S must be nonzero. */ void * xnmalloc (size_t n, size_t s) { return xreallocarray (NULL, n, s); } void * xinmalloc (idx_t n, idx_t s) { return xireallocarray (NULL, n, s); } /* If P is null, allocate a block of at least *PS bytes; otherwise, reallocate P so that it contains more than *PS bytes. *PS must be nonzero unless P is null. Set *PS to the new block's size, and return the pointer to the new block. *PS is never set to zero, and the returned pointer is never null. */ void * x2realloc (void *p, size_t *ps) { return x2nrealloc (p, ps, 1); } /* If P is null, allocate a block of at least *PN such objects; otherwise, reallocate P so that it contains more than *PN objects each of S bytes. S must be nonzero. Set *PN to the new number of objects, and return the pointer to the new block. *PN is never set to zero, and the returned pointer is never null. Repeated reallocations are guaranteed to make progress, either by allocating an initial block with a nonzero size, or by allocating a larger block. In the following implementation, nonzero sizes are increased by a factor of approximately 1.5 so that repeated reallocations have O(N) overall cost rather than O(N**2) cost, but the specification for this function does not guarantee that rate. Here is an example of use: int *p = NULL; size_t used = 0; size_t allocated = 0; void append_int (int value) { if (used == allocated) p = x2nrealloc (p, &allocated, sizeof *p); p[used++] = value; } This causes x2nrealloc to allocate a block of some nonzero size the first time it is called. To have finer-grained control over the initial size, set *PN to a nonzero value before calling this function with P == NULL. For example: int *p = NULL; size_t used = 0; size_t allocated = 0; size_t allocated1 = 1000; void append_int (int value) { if (used == allocated) { p = x2nrealloc (p, &allocated1, sizeof *p); allocated = allocated1; } p[used++] = value; } */ void * x2nrealloc (void *p, size_t *pn, size_t s) { size_t n = *pn; if (! p) { if (! n) { /* The approximate size to use for initial small allocation requests, when the invoking code specifies an old size of zero. This is the largest "small" request for the GNU C library malloc. */ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }; n = DEFAULT_MXFAST / s; n += !n; } } else { /* Set N = floor (1.5 * N) + 1 to make progress even if N == 0. */ if (INT_ADD_WRAPV (n, (n >> 1) + 1, &n)) xalloc_die (); } p = xreallocarray (p, n, s); *pn = n; return p; } /* Grow PA, which points to an array of *PN items, and return the location of the reallocated array, updating *PN to reflect its new size. The new array will contain at least N_INCR_MIN more items, but will not contain more than N_MAX items total. S is the size of each item, in bytes. S and N_INCR_MIN must be positive. *PN must be nonnegative. If N_MAX is -1, it is treated as if it were infinity. If PA is null, then allocate a new array instead of reallocating the old one. Thus, to grow an array A without saving its old contents, do { free (A); A = xpalloc (NULL, &AITEMS, ...); }. */ void * xpalloc (void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s) { idx_t n0 = *pn; /* The approximate size to use for initial small allocation requests. This is the largest "small" request for the GNU C library malloc. */ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }; /* If the array is tiny, grow it to about (but no greater than) DEFAULT_MXFAST bytes. Otherwise, grow it by about 50%. Adjust the growth according to three constraints: N_INCR_MIN, N_MAX, and what the C language can represent safely. */ idx_t n; if (INT_ADD_WRAPV (n0, n0 >> 1, &n)) n = IDX_MAX; if (0 <= n_max && n_max < n) n = n_max; /* NBYTES is of a type suitable for holding the count of bytes in an object. This is typically idx_t, but it should be size_t on (theoretical?) platforms where SIZE_MAX < IDX_MAX so xpalloc does not pass values greater than SIZE_MAX to xrealloc. */ #if IDX_MAX <= SIZE_MAX idx_t nbytes; #else size_t nbytes; #endif idx_t adjusted_nbytes = (INT_MULTIPLY_WRAPV (n, s, &nbytes) ? MIN (IDX_MAX, SIZE_MAX) : nbytes < DEFAULT_MXFAST ? DEFAULT_MXFAST : 0); if (adjusted_nbytes) { n = adjusted_nbytes / s; nbytes = adjusted_nbytes - adjusted_nbytes % s; } if (! pa) *pn = 0; if (n - n0 < n_incr_min && (INT_ADD_WRAPV (n0, n_incr_min, &n) || (0 <= n_max && n_max < n) || INT_MULTIPLY_WRAPV (n, s, &nbytes))) xalloc_die (); pa = xrealloc (pa, nbytes); *pn = n; return pa; } /* Allocate S bytes of zeroed memory dynamically, with error checking. There's no need for xnzalloc (N, S), since it would be equivalent to xcalloc (N, S). */ void * xzalloc (size_t s) { return xcalloc (s, 1); } void * xizalloc (idx_t s) { return xicalloc (s, 1); } /* Allocate zeroed memory for N elements of S bytes, with error checking. S must be nonzero. */ void * xcalloc (size_t n, size_t s) { return nonnull (calloc (n, s)); } void * xicalloc (idx_t n, idx_t s) { return nonnull (icalloc (n, s)); } /* Clone an object P of size S, with error checking. There's no need for xnmemdup (P, N, S), since xmemdup (P, N * S) works without any need for an arithmetic overflow check. */ void * xmemdup (void const *p, size_t s) { return memcpy (xmalloc (s), p, s); } void * ximemdup (void const *p, idx_t s) { return memcpy (ximalloc (s), p, s); } /* Clone an object P of size S, with error checking. Append a terminating NUL byte. */ char * ximemdup0 (void const *p, idx_t s) { char *result = ximalloc (s + 1); result[s] = 0; return memcpy (result, p, s); } /* Clone STRING. */ char * xstrdup (char const *string) { return xmemdup (string, strlen (string) + 1); } shishi-1.0.3/lib/gl/fcntl.in.h0000644000000000000000000003133114273615122012731 00000000000000/* Like , but with non-working flags defined to 0. Copyright (C) 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Paul Eggert */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_fcntl_h /* Special invocation convention. */ /* Needed before . May also define off_t to a 64-bit type on native Windows. */ #include /* On some systems other than glibc, is a prerequisite of . On glibc systems, we would like to avoid namespace pollution. But on glibc systems, includes inside an extern "C" { ... } block, which leads to errors in C++ mode with the overridden from gnulib. These errors are known to be gone with g++ version >= 4.3. */ #if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))) # include #endif #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ /* Native Windows platforms declare open(), creat() in . */ #if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) # include #endif #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_FCNTL_H /* Needed before . May also define off_t to a 64-bit type on native Windows. */ #include /* On some systems other than glibc, is a prerequisite of . On glibc systems, we would like to avoid namespace pollution. But on glibc systems, includes inside an extern "C" { ... } block, which leads to errors in C++ mode with the overridden from gnulib. These errors are known to be gone with g++ version >= 4.3. */ #if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))) # include #endif /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ /* Native Windows platforms declare open(), creat() in . */ #if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) # include #endif #ifndef _@GUARD_PREFIX@_FCNTL_H #define _@GUARD_PREFIX@_FCNTL_H #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Declare overridden functions. */ #if @GNULIB_CREAT@ # if @REPLACE_CREAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat rpl_creat # endif _GL_FUNCDECL_RPL (creat, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (creat, int, (const char *filename, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat _creat # endif _GL_CXXALIAS_MDA (creat, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (creat); #elif defined GNULIB_POSIXCHECK # undef creat /* Assume creat is always declared. */ _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " "use gnulib module creat for portability"); #elif @GNULIB_MDA_CREAT@ /* On native Windows, map 'creat' to '_creat', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::creat always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat _creat # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (creat, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (creat); #endif #if @GNULIB_FCNTL@ # if @REPLACE_FCNTL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcntl # define fcntl rpl_fcntl # endif _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); # if !GNULIB_defined_rpl_fcntl # define GNULIB_defined_rpl_fcntl 1 # endif # else # if !@HAVE_FCNTL@ _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); # if !GNULIB_defined_fcntl # define GNULIB_defined_fcntl 1 # endif # endif _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); # endif _GL_CXXALIASWARN (fcntl); #elif defined GNULIB_POSIXCHECK # undef fcntl # if HAVE_RAW_DECL_FCNTL _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " "use gnulib module fcntl for portability"); # endif #endif #if @GNULIB_OPEN@ # if @REPLACE_OPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open rpl_open # endif _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open _open # endif _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); # else _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); # endif /* On HP-UX 11, in C++ mode, open() is defined as an inline function with a default argument. _GL_CXXALIASWARN does not work in this case. */ # if !defined __hpux _GL_CXXALIASWARN (open); # endif #elif defined GNULIB_POSIXCHECK # undef open /* Assume open is always declared. */ _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " "use gnulib module open for portability"); #elif @GNULIB_MDA_OPEN@ /* On native Windows, map 'open' to '_open', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::open always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open _open # endif _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); # else _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); # endif # if !defined __hpux _GL_CXXALIASWARN (open); # endif #endif #if @GNULIB_OPENAT@ # if @REPLACE_OPENAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef openat # define openat rpl_openat # endif _GL_FUNCDECL_RPL (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...)); # else # if !@HAVE_OPENAT@ _GL_FUNCDECL_SYS (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...)); # endif _GL_CXXALIASWARN (openat); #elif defined GNULIB_POSIXCHECK # undef openat # if HAVE_RAW_DECL_OPENAT _GL_WARN_ON_USE (openat, "openat is not portable - " "use gnulib module openat for portability"); # endif #endif /* Fix up the FD_* macros, only known to be missing on mingw. */ #ifndef FD_CLOEXEC # define FD_CLOEXEC 1 #endif /* Fix up the supported F_* macros. Intentionally leave other F_* macros undefined. Only known to be missing on mingw. */ #ifndef F_DUPFD_CLOEXEC # define F_DUPFD_CLOEXEC 0x40000000 /* Witness variable: 1 if gnulib defined F_DUPFD_CLOEXEC, 0 otherwise. */ # define GNULIB_defined_F_DUPFD_CLOEXEC 1 #else # define GNULIB_defined_F_DUPFD_CLOEXEC 0 #endif #ifndef F_DUPFD # define F_DUPFD 1 #endif #ifndef F_GETFD # define F_GETFD 2 #endif /* Fix up the O_* macros. */ /* AIX 7.1 with XL C 12.1 defines O_CLOEXEC, O_NOFOLLOW, and O_TTY_INIT to values outside 'int' range, so omit these misdefinitions. But avoid namespace pollution on non-AIX systems. */ #ifdef _AIX # include # if defined O_CLOEXEC && ! (INT_MIN <= O_CLOEXEC && O_CLOEXEC <= INT_MAX) # undef O_CLOEXEC # endif # if defined O_NOFOLLOW && ! (INT_MIN <= O_NOFOLLOW && O_NOFOLLOW <= INT_MAX) # undef O_NOFOLLOW # endif # if defined O_TTY_INIT && ! (INT_MIN <= O_TTY_INIT && O_TTY_INIT <= INT_MAX) # undef O_TTY_INIT # endif #endif #if !defined O_DIRECT && defined O_DIRECTIO /* Tru64 spells it 'O_DIRECTIO'. */ # define O_DIRECT O_DIRECTIO #endif #if !defined O_CLOEXEC && defined O_NOINHERIT /* Mingw spells it 'O_NOINHERIT'. */ # define O_CLOEXEC O_NOINHERIT #endif #ifndef O_CLOEXEC # define O_CLOEXEC 0x40000000 /* Try to not collide with system O_* flags. */ # define GNULIB_defined_O_CLOEXEC 1 #else # define GNULIB_defined_O_CLOEXEC 0 #endif #ifndef O_DIRECT # define O_DIRECT 0 #endif #ifndef O_DIRECTORY # define O_DIRECTORY 0 #endif #ifndef O_DSYNC # define O_DSYNC 0 #endif #ifndef O_EXEC # define O_EXEC O_RDONLY /* This is often close enough in older systems. */ #endif #ifndef O_IGNORE_CTTY # define O_IGNORE_CTTY 0 #endif #ifndef O_NDELAY # define O_NDELAY 0 #endif #ifndef O_NOATIME # define O_NOATIME 0 #endif #ifndef O_NONBLOCK # define O_NONBLOCK O_NDELAY #endif /* If the gnulib module 'nonblocking' is in use, guarantee a working non-zero value of O_NONBLOCK. Otherwise, O_NONBLOCK is defined (above) to O_NDELAY or to 0 as fallback. */ #if @GNULIB_NONBLOCKING@ # if O_NONBLOCK # define GNULIB_defined_O_NONBLOCK 0 # else # define GNULIB_defined_O_NONBLOCK 1 # undef O_NONBLOCK # define O_NONBLOCK 0x40000000 # endif #endif #ifndef O_NOCTTY # define O_NOCTTY 0 #endif #ifndef O_NOFOLLOW # define O_NOFOLLOW 0 #endif #ifndef O_NOLINK # define O_NOLINK 0 #endif #ifndef O_NOLINKS # define O_NOLINKS 0 #endif #ifndef O_NOTRANS # define O_NOTRANS 0 #endif #ifndef O_RSYNC # define O_RSYNC 0 #endif #ifndef O_SEARCH # define O_SEARCH O_RDONLY /* This is often close enough in older systems. */ #endif #ifndef O_SYNC # define O_SYNC 0 #endif #ifndef O_TTY_INIT # define O_TTY_INIT 0 #endif #if ~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH) # undef O_ACCMODE # define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in fcntl.h */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #if defined __BEOS__ || defined __HAIKU__ /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif #ifndef O_BINARY # define O_BINARY 0 # define O_TEXT 0 #endif /* Fix up the AT_* macros. */ /* Work around a bug in Solaris 9 and 10: AT_FDCWD is positive. Its value exceeds INT_MAX, so its use as an int doesn't conform to the C standard, and GCC and Sun C complain in some cases. If the bug is present, undef AT_FDCWD here, so it can be redefined below. */ #if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553 # undef AT_FDCWD #endif /* Use the same bit pattern as Solaris 9, but with the proper signedness. The bit pattern is important, in case this actually is Solaris with the above workaround. */ #ifndef AT_FDCWD # define AT_FDCWD (-3041965) #endif /* Use the same values as Solaris 9. This shouldn't matter, but there's no real reason to differ. */ #ifndef AT_SYMLINK_NOFOLLOW # define AT_SYMLINK_NOFOLLOW 4096 #endif #ifndef AT_REMOVEDIR # define AT_REMOVEDIR 1 #endif /* Solaris 9 lacks these two, so just pick unique values. */ #ifndef AT_SYMLINK_FOLLOW # define AT_SYMLINK_FOLLOW 2 #endif #ifndef AT_EACCESS # define AT_EACCESS 4 #endif /* Ignore this flag if not supported. */ #ifndef AT_NO_AUTOMOUNT # define AT_NO_AUTOMOUNT 0 #endif #endif /* _@GUARD_PREFIX@_FCNTL_H */ #endif /* _@GUARD_PREFIX@_FCNTL_H */ #endif shishi-1.0.3/lib/gl/shutdown.c0000644000000000000000000000236614273615123013073 00000000000000/* shutdown.c --- wrappers for Windows shutdown function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef shutdown int rpl_shutdown (int fd, int how) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int r = shutdown (sock, how); if (r < 0) set_winsock_errno (); return r; } } shishi-1.0.3/lib/gl/pathmax.h0000644000000000000000000000563014273615123012664 00000000000000/* Define PATH_MAX somehow. Requires sys/types.h. Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _PATHMAX_H # define _PATHMAX_H /* POSIX:2008 defines PATH_MAX to be the maximum number of bytes in a filename, including the terminating NUL byte. PATH_MAX is not defined on systems which have no limit on filename length, such as GNU/Hurd. This file does *not* define PATH_MAX always. Programs that use this file can handle the GNU/Hurd case in several ways: - Either with a package-wide handling, or with a per-file handling, - Either through a #ifdef PATH_MAX or through a fallback like #ifndef PATH_MAX # define PATH_MAX 8192 #endif or through a fallback like #ifndef PATH_MAX # define PATH_MAX pathconf ("/", _PC_PATH_MAX) #endif */ # include # include # ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 256 # endif /* Don't include sys/param.h if it already has been. */ # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include # endif # if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN # endif # ifdef __hpux /* On HP-UX, PATH_MAX designates the maximum number of bytes in a filename, *not* including the terminating NUL byte, and is set to 1023. Additionally, when _XOPEN_SOURCE is defined to 500 or more, PATH_MAX is not defined at all any more. */ # undef PATH_MAX # define PATH_MAX 1024 # endif # if defined _WIN32 && ! defined __CYGWIN__ /* The page "Naming Files, Paths, and Namespaces" on msdn.microsoft.com, section "Maximum Path Length Limitation", explains that the maximum size of a filename, including the terminating NUL byte, is 260 = 3 + 256 + 1. This is the same value as - FILENAME_MAX in , - _MAX_PATH in , - MAX_PATH in . Undefine the original value, because mingw's gets it wrong. */ # undef PATH_MAX # define PATH_MAX 260 # endif #endif /* _PATHMAX_H */ shishi-1.0.3/lib/gl/xalloc-oversized.h0000644000000000000000000000512014273615123014506 00000000000000/* xalloc-oversized.h -- memory allocation size checking Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef XALLOC_OVERSIZED_H_ #define XALLOC_OVERSIZED_H_ #include #include /* True if N * S does not fit into both ptrdiff_t and size_t. N and S should be nonnegative and free of side effects. This expands to a constant expression if N and S are both constants. By gnulib convention, SIZE_MAX represents overflow in size_t calculations, so the conservative size_t-based dividend to use here is SIZE_MAX - 1. */ #define __xalloc_oversized(n, s) \ ((s) != 0 \ && ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) \ < (n))) /* Return 1 if and only if an array of N objects, each of size S, cannot exist reliably because its total size in bytes would exceed MIN (PTRDIFF_MAX, SIZE_MAX - 1). N and S should be nonnegative and free of side effects. Warning: (xalloc_oversized (N, S) ? NULL : malloc (N * S)) can misbehave if N and S are both narrower than ptrdiff_t and size_t, and can be rewritten as (xalloc_oversized (N, S) ? NULL : malloc (N * (size_t) S)). This is a macro, not a function, so that it works even if an argument exceeds MAX (PTRDIFF_MAX, SIZE_MAX). */ #if 7 <= __GNUC__ && !defined __clang__ && PTRDIFF_MAX < SIZE_MAX # define xalloc_oversized(n, s) \ __builtin_mul_overflow_p (n, s, (ptrdiff_t) 1) #elif (5 <= __GNUC__ && !defined __ICC && !__STRICT_ANSI__ \ && PTRDIFF_MAX < SIZE_MAX) # define xalloc_oversized(n, s) \ (__builtin_constant_p (n) && __builtin_constant_p (s) \ ? __xalloc_oversized (n, s) \ : ({ ptrdiff_t __xalloc_count; \ __builtin_mul_overflow (n, s, &__xalloc_count); })) /* Other compilers use integer division; this may be slower but is more portable. */ #else # define xalloc_oversized(n, s) __xalloc_oversized (n, s) #endif #endif /* !XALLOC_OVERSIZED_H_ */ shishi-1.0.3/lib/gl/time_rz.c0000644000000000000000000002065214273615123012667 00000000000000/* Time zone functions such as tzalloc and localtime_rz Copyright 2015-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ /* Although this module is not thread-safe, any races should be fairly rare and reasonably benign. For complete thread-safety, use a C library with a working timezone_t type, so that this module is not needed. */ #include #include #include #include #include #include #include #include "flexmember.h" #include "idx.h" #include "time-internal.h" /* The approximate size to use for small allocation requests. This is the largest "small" request for the GNU C library malloc. */ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 }; /* Minimum size of the ABBRS member of struct tm_zone. ABBRS is larger only in the unlikely case where an abbreviation longer than this is used. */ enum { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) }; /* Magic cookie timezone_t value, for local time. It differs from NULL and from all other timezone_t values. Only the address matters; the pointer is never dereferenced. */ static timezone_t const local_tz = (timezone_t) 1; /* Copy to ABBRS the abbreviation at ABBR with size ABBR_SIZE (this includes its trailing null byte). Append an extra null byte to mark the end of ABBRS. */ static void extend_abbrs (char *abbrs, char const *abbr, size_t abbr_size) { memcpy (abbrs, abbr, abbr_size); abbrs[abbr_size] = '\0'; } /* Return a newly allocated time zone for NAME, or NULL on failure. A null NAME stands for wall clock time (which is like unset TZ). */ timezone_t tzalloc (char const *name) { size_t name_size = name ? strlen (name) + 1 : 0; size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1; timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size)); if (tz) { tz->next = NULL; #if HAVE_TZNAME && !HAVE_STRUCT_TM_TM_ZONE tz->tzname_copy[0] = tz->tzname_copy[1] = NULL; #endif tz->tz_is_set = !!name; tz->abbrs[0] = '\0'; if (name) extend_abbrs (tz->abbrs, name, name_size); } return tz; } /* Save into TZ any nontrivial time zone abbreviation used by TM, and update *TM (if HAVE_STRUCT_TM_TM_ZONE) or *TZ (if !HAVE_STRUCT_TM_TM_ZONE && HAVE_TZNAME) if they use the abbreviation. Return true if successful, false (setting errno) otherwise. */ static bool save_abbr (timezone_t tz, struct tm *tm) { #if HAVE_STRUCT_TM_TM_ZONE || HAVE_TZNAME char const *zone = NULL; char *zone_copy = (char *) ""; # if HAVE_TZNAME int tzname_index = -1; # endif # if HAVE_STRUCT_TM_TM_ZONE zone = tm->tm_zone; # endif # if HAVE_TZNAME if (! (zone && *zone) && 0 <= tm->tm_isdst) { tzname_index = tm->tm_isdst != 0; zone = tzname[tzname_index]; } # endif /* No need to replace null zones, or zones within the struct tm. */ if (!zone || ((char *) tm <= zone && zone < (char *) (tm + 1))) return true; if (*zone) { zone_copy = tz->abbrs; while (strcmp (zone_copy, zone) != 0) { if (! (*zone_copy || (zone_copy == tz->abbrs && tz->tz_is_set))) { idx_t zone_size = strlen (zone) + 1; if (zone_size < tz->abbrs + ABBR_SIZE_MIN - zone_copy) extend_abbrs (zone_copy, zone, zone_size); else { tz = tz->next = tzalloc (zone); if (!tz) return false; tz->tz_is_set = 0; zone_copy = tz->abbrs; } break; } zone_copy += strlen (zone_copy) + 1; if (!*zone_copy && tz->next) { tz = tz->next; zone_copy = tz->abbrs; } } } /* Replace the zone name so that its lifetime matches that of TZ. */ # if HAVE_STRUCT_TM_TM_ZONE tm->tm_zone = zone_copy; # else if (0 <= tzname_index) tz->tzname_copy[tzname_index] = zone_copy; # endif #endif return true; } /* Free a time zone. */ void tzfree (timezone_t tz) { if (tz != local_tz) while (tz) { timezone_t next = tz->next; free (tz); tz = next; } } /* Get and set the TZ environment variable. These functions can be overridden by programs like Emacs that manage their own environment. */ #ifndef getenv_TZ static char * getenv_TZ (void) { return getenv ("TZ"); } #endif #ifndef setenv_TZ static int setenv_TZ (char const *tz) { return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ"); } #endif /* Change the environment to match the specified timezone_t value. Return true if successful, false (setting errno) otherwise. */ static bool change_env (timezone_t tz) { if (setenv_TZ (tz->tz_is_set ? tz->abbrs : NULL) != 0) return false; tzset (); return true; } /* Temporarily set the time zone to TZ, which must not be null. Return LOCAL_TZ if the time zone setting is already correct. Otherwise return a newly allocated time zone representing the old setting, or NULL (setting errno) on failure. */ static timezone_t set_tz (timezone_t tz) { char *env_tz = getenv_TZ (); if (env_tz ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 : !tz->tz_is_set) return local_tz; else { timezone_t old_tz = tzalloc (env_tz); if (!old_tz) return old_tz; if (! change_env (tz)) { int saved_errno = errno; tzfree (old_tz); errno = saved_errno; return NULL; } return old_tz; } } /* Restore an old setting returned by set_tz. It must not be null. Return true (preserving errno) if successful, false (setting errno) otherwise. */ static bool revert_tz (timezone_t tz) { if (tz == local_tz) return true; else { int saved_errno = errno; bool ok = change_env (tz); if (!ok) saved_errno = errno; tzfree (tz); errno = saved_errno; return ok; } } /* Use time zone TZ to compute localtime_r (T, TM). */ struct tm * localtime_rz (timezone_t tz, time_t const *t, struct tm *tm) { #ifdef HAVE_LOCALTIME_INFLOOP_BUG /* The -67768038400665599 comes from: https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html On affected platforms the greatest POSIX-compatible time_t value that could return nonnull is 67768036191766798 (when TZ="XXX24:59:59" it resolves to the year 2**31 - 1 + 1900, on 12-31 at 23:59:59), so test for that too while we're in the neighborhood. */ if (! (-67768038400665599 <= *t && *t <= 67768036191766798)) { errno = EOVERFLOW; return NULL; } #endif if (!tz) return gmtime_r (t, tm); else { timezone_t old_tz = set_tz (tz); if (old_tz) { bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); if (revert_tz (old_tz) && abbr_saved) return tm; } return NULL; } } /* Use time zone TZ to compute mktime (TM). */ time_t mktime_z (timezone_t tz, struct tm *tm) { if (!tz) return timegm (tm); else { timezone_t old_tz = set_tz (tz); if (old_tz) { struct tm tm_1; tm_1.tm_sec = tm->tm_sec; tm_1.tm_min = tm->tm_min; tm_1.tm_hour = tm->tm_hour; tm_1.tm_mday = tm->tm_mday; tm_1.tm_mon = tm->tm_mon; tm_1.tm_year = tm->tm_year; tm_1.tm_yday = -1; tm_1.tm_isdst = tm->tm_isdst; time_t t = mktime (&tm_1); bool ok = 0 <= tm_1.tm_yday; #if HAVE_STRUCT_TM_TM_ZONE || HAVE_TZNAME ok = ok && save_abbr (tz, &tm_1); #endif if (revert_tz (old_tz) && ok) { *tm = tm_1; return t; } } return -1; } } shishi-1.0.3/lib/gl/gc.h0000644000000000000000000003132014273615122011605 00000000000000/* gc.h --- Header file for implementation agnostic crypto wrapper API. * Copyright (C) 2002-2005, 2007-2008, 2011-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ #ifndef _GL_GC_H # define _GL_GC_H /* Get size_t. */ # include enum Gc_rc { GC_OK = 0, GC_MALLOC_ERROR, GC_INIT_ERROR, GC_RANDOM_ERROR, GC_INVALID_CIPHER, GC_INVALID_HASH, GC_PKCS5_INVALID_ITERATION_COUNT, GC_PKCS5_INVALID_DERIVED_KEY_LENGTH, GC_PKCS5_DERIVED_KEY_TOO_LONG }; typedef enum Gc_rc Gc_rc; /* Hash types. */ enum Gc_hash { GC_MD4, GC_MD5, GC_SHA1, GC_MD2, GC_RMD160, GC_SHA256, GC_SHA384, GC_SHA512, GC_SHA224, GC_SM3 }; typedef enum Gc_hash Gc_hash; enum Gc_hash_mode { GC_NULL, GC_HMAC }; typedef enum Gc_hash_mode Gc_hash_mode; typedef void *gc_hash_handle; #define GC_MD2_DIGEST_SIZE 16 #define GC_MD4_DIGEST_SIZE 16 #define GC_MD5_DIGEST_SIZE 16 #define GC_RMD160_DIGEST_SIZE 20 #define GC_SHA1_DIGEST_SIZE 20 #define GC_SHA256_DIGEST_SIZE 32 #define GC_SHA384_DIGEST_SIZE 48 #define GC_SHA512_DIGEST_SIZE 64 #define GC_SHA224_DIGEST_SIZE 24 #define GC_SM3_DIGEST_SIZE 32 #define GC_MAX_DIGEST_SIZE 64 /* Cipher types. */ enum Gc_cipher { GC_AES128, GC_AES192, GC_AES256, GC_3DES, GC_DES, GC_ARCFOUR128, GC_ARCFOUR40, GC_ARCTWO40, GC_CAMELLIA128, GC_CAMELLIA256 }; typedef enum Gc_cipher Gc_cipher; enum Gc_cipher_mode { GC_ECB, GC_CBC, GC_STREAM }; typedef enum Gc_cipher_mode Gc_cipher_mode; typedef void *gc_cipher_handle; /* Call before respectively after any other functions. */ extern Gc_rc gc_init (void); extern void gc_done (void); /* Memory allocation (avoid). */ typedef void *(*gc_malloc_t) (size_t n); typedef int (*gc_secure_check_t) (const void *); typedef void *(*gc_realloc_t) (void *p, size_t n); typedef void (*gc_free_t) (void *); extern void gc_set_allocators (gc_malloc_t func_malloc, gc_malloc_t secure_malloc, gc_secure_check_t secure_check, gc_realloc_t func_realloc, gc_free_t func_free); /* Randomness. */ extern Gc_rc gc_nonce (char *data, size_t datalen); extern Gc_rc gc_pseudo_random (char *data, size_t datalen); extern Gc_rc gc_random (char *data, size_t datalen); /* Ciphers. */ extern Gc_rc gc_cipher_open (Gc_cipher cipher, Gc_cipher_mode mode, gc_cipher_handle *outhandle); extern Gc_rc gc_cipher_setkey (gc_cipher_handle handle, size_t keylen, const char *key); extern Gc_rc gc_cipher_setiv (gc_cipher_handle handle, size_t ivlen, const char *iv); extern Gc_rc gc_cipher_encrypt_inline (gc_cipher_handle handle, size_t len, char *data); extern Gc_rc gc_cipher_decrypt_inline (gc_cipher_handle handle, size_t len, char *data); extern Gc_rc gc_cipher_close (gc_cipher_handle handle); /* Hashes. */ extern Gc_rc gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle *outhandle); extern Gc_rc gc_hash_clone (gc_hash_handle handle, gc_hash_handle *outhandle); extern size_t gc_hash_digest_length (Gc_hash hash) _GL_ATTRIBUTE_CONST; extern void gc_hash_hmac_setkey (gc_hash_handle handle, size_t len, const char *key); extern void gc_hash_write (gc_hash_handle handle, size_t len, const char *data); extern const char *gc_hash_read (gc_hash_handle handle); extern void gc_hash_close (gc_hash_handle handle); /* Compute a hash value over buffer IN of INLEN bytes size using the algorithm HASH, placing the result in the pre-allocated buffer OUT. The required size of OUT depends on HASH, and is generally GC__DIGEST_SIZE. For example, for GC_MD5 the output buffer must be 16 bytes. The return value is 0 (GC_OK) on success, or another Gc_rc error code. */ extern Gc_rc gc_hash_buffer (Gc_hash hash, const void *in, size_t inlen, char *out); /* One-call interface. */ extern Gc_rc gc_md2 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_md4 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_md5 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_sha1 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_sha256 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_sha512 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_sm3 (const void *in, size_t inlen, void *resbuf); extern Gc_rc gc_hmac_md5 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf); extern Gc_rc gc_hmac_sha1 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf); extern Gc_rc gc_hmac_sha256 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf); extern Gc_rc gc_hmac_sha512 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf); /* Derive cryptographic keys using PKCS#5 PBKDF2 (RFC 2898) from a password P of length PLEN, with salt S of length SLEN, placing the result in pre-allocated buffer DK of length DKLEN. The PRF is hard coded to be HMAC with HASH. An iteration count is specified in C (> 0), where a larger value means this function take more time (typical iteration counts are 1000-20000). This function "stretches" the key to be exactly dkLen bytes long. GC_OK is returned on success, otherwise a Gc_rc error code is returned. */ extern Gc_rc gc_pbkdf2_hmac (Gc_hash hash, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, char *restrict DK, size_t dkLen); extern Gc_rc gc_pbkdf2_sha1 (const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, char *restrict DK, size_t dkLen); /* TODO: From: Simon Josefsson Subject: Re: generic crypto Newsgroups: gmane.comp.lib.gnulib.bugs Cc: bug-gnulib@gnu.org Date: Fri, 07 Oct 2005 12:50:57 +0200 Mail-Copies-To: nobody Paul Eggert writes: > Simon Josefsson writes: > >> * Perhaps the /dev/?random reading should be separated into a separate >> module? It might be useful outside of the gc layer too. > > Absolutely. I've been meaning to do that for months (for a "shuffle" > program I want to add to coreutils), but hadn't gotten around to it. > It would have to be generalized a bit. I'd like to have the file > descriptor cached, for example. I'll write a separate module for that part. I think we should even add a good PRNG that is re-seeded from /dev/?random frequently. GnuTLS can need a lot of random data on a big server, more than /dev/random can supply. And /dev/urandom might not be strong enough. Further, the security of /dev/?random can also be questionable. >> I'm also not sure about the names of those functions, they suggest >> a more higher-level API than what is really offered (i.e., the >> names "nonce" and "pseudo_random" and "random" imply certain >> cryptographic properties). > > Could you expand a bit more on that? What is the relationship between > nonce/pseudorandom/random and the /dev/ values you are using? There is none, that is the problem. Applications generally need different kind of "random" numbers. Sometimes they just need some random data and doesn't care whether it is possible for an attacker to compute the string (aka a "nonce"). Sometimes they need data that is very difficult to compute (i.e., computing it require inverting SHA1 or similar). Sometimes they need data that is not possible to compute, i.e., it wants real entropy collected over time on the system. Collecting the last kind of random data is very expensive, so it must not be used too often. The second kind of random data ("pseudo random") is typically generated by seeding a good PRNG with a couple of hundred bytes of real entropy from the "real random" data pool. The "nonce" is usually computed using the PRNG as well, because PRNGs are usually fast. Pseudo-random data is typically used for session keys. Strong random data is often used to generate long-term keys (e.g., private RSA keys). Of course, there are many subtleties. There are several different kind of nonce:s. Sometimes a nonce is just an ever-increasing integer, starting from 0. Sometimes it is assumed to be unlikely to be the same as previous nonces, but without a requirement that the nonce is possible to guess. MD5(system clock) would thus suffice, if it isn't called too often. You can guess what the next value will be, but it will always be different. The problem is that /dev/?random doesn't offer any kind of semantic guarantees. But applications need an API that make that promise. I think we should do this in several steps: 1) Write a module that can read from /dev/?random. 2) Add a module for a known-good PRNG suitable for random number generation, that can be continuously re-seeded. 3) Add a high-level module that provide various different randomness functions. One for nonces, perhaps even different kind of nonces, one for pseudo random data, and one for strong random data. It is not clear whether we can hope to achieve the last one in a portable way. Further, it would be useful to allow users to provide their own entropy source as a file, used to seed the PRNG or initialize the strong randomness pool. This is used on embedded platforms that doesn't have enough interrupts to hope to generate good random data. > For example, why not use OpenBSD's /dev/arandom? I don't trust ARC4. For example, recent cryptographic efforts indicate that you must throw away the first 512 bytes generated from the PRNG for it to be secure. I don't know whether OpenBSD do this. Further, I recall some eprint paper on RC4 security that didn't inspire confidence. While I trust the random devices in OpenBSD more than Solaris/AIX/HPUX/etc, I think that since we need something better on Solaris/AIX/HPUX we'd might as well use it on OpenBSD or even Linux too. > Here is one thought. The user could specify a desired quality level > range, and the implementation then would supply random data that is at > least as good as the lower bound of the range. I.e., ihe > implementation refuses to produce any random data if it can't generate > data that is at least as good as the lower end of the range. The > upper bound of the range is advice from the user not to be any more > expensive than that, but the implementation can ignore the advice if > it doesn't have anything cheaper. I'm not sure this is a good idea. Users can't really be expected to understand this. Further, applications need many different kind of random data. Selecting the randomness level for each by the user will be too complicated. I think it is better if the application decide, from its cryptographic requirement, what entropy quality it require, and call the proper API. Meeting the implied semantic properties should be the job for gnulib. >> Perhaps gc_dev_random and gc_dev_urandom? > > To some extent. I'd rather insulate the user from the details of > where the random numbers come from. On the other hand we need to > provide a way for applications to specify a file that contains > random bits, so that people can override the defaults. Agreed. This may require some thinking before it is finalized. Is it ok to install the GC module as-is meanwhile? Then I can continue to add the stuff that GnuTLS need, and then come back to re-working the randomness module. That way, we have two different projects that use the code. GnuTLS includes the same randomness code that was in GNU SASL and that is in the current gc module. I feel much more comfortable working in small steps at a time, rather then working on this for a long time in gnulib and only later integrate the stuff in GnuTLS. Thanks, Simon */ #endif /* _GL_GC_H */ shishi-1.0.3/lib/gl/setenv.c0000644000000000000000000002507714273615123012530 00000000000000/* Copyright (C) 1992, 1995-2003, 2005-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if !_LIBC /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc optimizes away the name == NULL test below. */ # define _GL_ARG_NONNULL(params) # define _GL_USE_STDLIB_ALLOC 1 # include #endif #include /* Specification. */ #include #include #ifndef __set_errno # define __set_errno(ev) ((errno) = (ev)) #endif #include #if _LIBC || HAVE_UNISTD_H # include #endif #if !_LIBC # include "malloca.h" #endif #if _LIBC || !HAVE_SETENV #if !_LIBC # define __environ environ #endif #if _LIBC /* This lock protects against simultaneous modifications of 'environ'. */ # include __libc_lock_define_initialized (static, envlock) # define LOCK __libc_lock_lock (envlock) # define UNLOCK __libc_lock_unlock (envlock) #else # define LOCK # define UNLOCK #endif /* In the GNU C library we must keep the namespace clean. */ #ifdef _LIBC # define setenv __setenv # define clearenv __clearenv # define tfind __tfind # define tsearch __tsearch #endif /* In the GNU C library implementation we try to be more clever and allow arbitrarily many changes of the environment given that the used values are from a small set. Outside glibc this will eat up all memory after a while. */ #if defined _LIBC || (defined HAVE_SEARCH_H && defined HAVE_TSEARCH \ && (defined __GNUC__ || defined __clang__)) # define USE_TSEARCH 1 # include typedef int (*compar_fn_t) (const void *, const void *); /* This is a pointer to the root of the search tree with the known values. */ static void *known_values; # define KNOWN_VALUE(Str) \ ({ \ void *value = tfind (Str, &known_values, (compar_fn_t) strcmp); \ value != NULL ? *(char **) value : NULL; \ }) # define STORE_VALUE(Str) \ tsearch (Str, &known_values, (compar_fn_t) strcmp) #else # undef USE_TSEARCH # define KNOWN_VALUE(Str) NULL # define STORE_VALUE(Str) do { } while (0) #endif /* If this variable is not a null pointer we allocated the current environment. */ static char **last_environ; /* This function is used by 'setenv' and 'putenv'. The difference between the two functions is that for the former must create a new string which is then placed in the environment, while the argument of 'putenv' must be used directly. This is all complicated by the fact that we try to reuse values once generated for a 'setenv' call since we can never free the strings. */ int __add_to_environ (const char *name, const char *value, const char *combined, int replace) { char **ep; size_t size; const size_t namelen = strlen (name); const size_t vallen = value != NULL ? strlen (value) + 1 : 0; LOCK; /* We have to get the pointer now that we have the lock and not earlier since another thread might have created a new environment. */ ep = __environ; size = 0; if (ep != NULL) { for (; *ep != NULL; ++ep) if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') break; else ++size; } if (ep == NULL || *ep == NULL) { char **new_environ; #ifdef USE_TSEARCH char *new_value; #endif /* We allocated this space; we can extend it. */ new_environ = (char **) (last_environ == NULL ? malloc ((size + 2) * sizeof (char *)) : realloc (last_environ, (size + 2) * sizeof (char *))); if (new_environ == NULL) { /* It's easier to set errno to ENOMEM than to rely on the 'malloc-posix' and 'realloc-posix' gnulib modules. */ __set_errno (ENOMEM); UNLOCK; return -1; } /* If the whole entry is given add it. */ if (combined != NULL) /* We must not add the string to the search tree since it belongs to the user. */ new_environ[size] = (char *) combined; else { /* See whether the value is already known. */ #ifdef USE_TSEARCH # ifdef _LIBC new_value = (char *) alloca (namelen + 1 + vallen); __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), value, vallen); # else new_value = (char *) malloca (namelen + 1 + vallen); if (new_value == NULL) { __set_errno (ENOMEM); UNLOCK; return -1; } memcpy (new_value, name, namelen); new_value[namelen] = '='; memcpy (&new_value[namelen + 1], value, vallen); # endif new_environ[size] = KNOWN_VALUE (new_value); if (new_environ[size] == NULL) #endif { new_environ[size] = (char *) malloc (namelen + 1 + vallen); if (new_environ[size] == NULL) { #if defined USE_TSEARCH && !defined _LIBC freea (new_value); #endif __set_errno (ENOMEM); UNLOCK; return -1; } #ifdef USE_TSEARCH memcpy (new_environ[size], new_value, namelen + 1 + vallen); #else memcpy (new_environ[size], name, namelen); new_environ[size][namelen] = '='; memcpy (&new_environ[size][namelen + 1], value, vallen); #endif /* And save the value now. We cannot do this when we remove the string since then we cannot decide whether it is a user string or not. */ STORE_VALUE (new_environ[size]); } #if defined USE_TSEARCH && !defined _LIBC freea (new_value); #endif } if (__environ != last_environ) memcpy ((char *) new_environ, (char *) __environ, size * sizeof (char *)); new_environ[size + 1] = NULL; last_environ = __environ = new_environ; } else if (replace) { char *np; /* Use the user string if given. */ if (combined != NULL) np = (char *) combined; else { #ifdef USE_TSEARCH char *new_value; # ifdef _LIBC new_value = alloca (namelen + 1 + vallen); __mempcpy (__mempcpy (__mempcpy (new_value, name, namelen), "=", 1), value, vallen); # else new_value = malloca (namelen + 1 + vallen); if (new_value == NULL) { __set_errno (ENOMEM); UNLOCK; return -1; } memcpy (new_value, name, namelen); new_value[namelen] = '='; memcpy (&new_value[namelen + 1], value, vallen); # endif np = KNOWN_VALUE (new_value); if (np == NULL) #endif { np = (char *) malloc (namelen + 1 + vallen); if (np == NULL) { #if defined USE_TSEARCH && !defined _LIBC freea (new_value); #endif __set_errno (ENOMEM); UNLOCK; return -1; } #ifdef USE_TSEARCH memcpy (np, new_value, namelen + 1 + vallen); #else memcpy (np, name, namelen); np[namelen] = '='; memcpy (&np[namelen + 1], value, vallen); #endif /* And remember the value. */ STORE_VALUE (np); } #if defined USE_TSEARCH && !defined _LIBC freea (new_value); #endif } *ep = np; } UNLOCK; return 0; } int setenv (const char *name, const char *value, int replace) { if (name == NULL || *name == '\0' || strchr (name, '=') != NULL) { __set_errno (EINVAL); return -1; } return __add_to_environ (name, value, NULL, replace); } /* The 'clearenv' was planned to be added to POSIX.1 but probably never made it. Nevertheless the POSIX.9 standard (POSIX bindings for Fortran 77) requires this function. */ int clearenv (void) { LOCK; if (__environ == last_environ && __environ != NULL) { /* We allocated this environment so we can free it. */ free (__environ); last_environ = NULL; } /* Clear the environment pointer removes the whole environment. */ __environ = NULL; UNLOCK; return 0; } #ifdef _LIBC static void free_mem (void) { /* Remove all traces. */ clearenv (); /* Now remove the search tree. */ __tdestroy (known_values, free); known_values = NULL; } text_set_element (__libc_subfreeres, free_mem); # undef setenv # undef clearenv weak_alias (__setenv, setenv) weak_alias (__clearenv, clearenv) #endif #endif /* _LIBC || !HAVE_SETENV */ /* The rest of this file is called into use when replacing an existing but buggy setenv. Known bugs include failure to diagnose invalid name, and consuming a leading '=' from value. */ #if HAVE_SETENV # undef setenv # if !HAVE_DECL_SETENV extern int setenv (const char *, const char *, int); # endif # define STREQ(a, b) (strcmp (a, b) == 0) int rpl_setenv (const char *name, const char *value, int replace) { int result; if (!name || !*name || strchr (name, '=')) { errno = EINVAL; return -1; } /* Call the real setenv even if replace is 0, in case implementation has underlying data to update, such as when environ changes. */ result = setenv (name, value, replace); if (result == 0 && replace && *value == '=') { char *tmp = getenv (name); if (!STREQ (tmp, value)) { int saved_errno; size_t len = strlen (value); tmp = malloca (len + 2); /* Since leading '=' is eaten, double it up. */ *tmp = '='; memcpy (tmp + 1, value, len + 1); result = setenv (name, tmp, replace); saved_errno = errno; freea (tmp); errno = saved_errno; } } return result; } #endif /* HAVE_SETENV */ shishi-1.0.3/lib/gl/getdtablesize.c0000644000000000000000000000656514273615122014052 00000000000000/* getdtablesize() function: Return maximum possible file descriptor value + 1. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if defined _WIN32 && ! defined __CYGWIN__ # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" # endif # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int _setmaxstdio_nothrow (int newmax) { int result; TRY_MSVC_INVAL { result = _setmaxstdio (newmax); } CATCH_MSVC_INVAL { result = -1; } DONE_MSVC_INVAL; return result; } # else # define _setmaxstdio_nothrow _setmaxstdio # endif /* Cache for the previous getdtablesize () result. Safe to cache because Windows also lacks setrlimit. */ static int dtablesize; int getdtablesize (void) { if (dtablesize == 0) { /* We are looking for the number N such that the valid file descriptors are 0..N-1. It can be obtained through a loop as follows: { int fd; for (fd = 3; fd < 65536; fd++) if (dup2 (0, fd) == -1) break; return fd; } On Windows XP, the result is 2048. The drawback of this loop is that it allocates memory for a libc internal array that is never freed. The number N can also be obtained as the upper bound for _getmaxstdio (). _getmaxstdio () returns the maximum number of open FILE objects. The sanity check in _setmaxstdio reveals the maximum number of file descriptors. This too allocates memory, but it is freed when we call _setmaxstdio with the original value. */ int orig_max_stdio = _getmaxstdio (); unsigned int bound; for (bound = 0x10000; _setmaxstdio_nothrow (bound) < 0; bound = bound / 2) ; _setmaxstdio_nothrow (orig_max_stdio); dtablesize = bound; } return dtablesize; } #else # include # include # ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY # endif # ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY # endif # ifdef __CYGWIN__ /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it hits the compile-time constant hard limit of 3200. We might as well just report the hard limit. */ # define rlim_cur rlim_max # endif int getdtablesize (void) { struct rlimit lim; if (getrlimit (RLIMIT_NOFILE, &lim) == 0 && 0 <= lim.rlim_cur && lim.rlim_cur <= INT_MAX && lim.rlim_cur != RLIM_INFINITY && lim.rlim_cur != RLIM_SAVED_CUR && lim.rlim_cur != RLIM_SAVED_MAX) return lim.rlim_cur; return INT_MAX; } #endif shishi-1.0.3/lib/gl/gai_strerror.c0000644000000000000000000000530514273615122013715 00000000000000/* Copyright (C) 1997, 2001-2002, 2004-2006, 2008-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Philip Blundell , 1997. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBC # include #endif #include #include #ifdef _LIBC # include #else # include "gettext.h" # define _(String) gettext (String) # define N_(String) String #endif #if HAVE_DECL_GAI_STRERROR # include # undef gai_strerror # if HAVE_DECL_GAI_STRERRORA # define gai_strerror gai_strerrorA # endif const char * rpl_gai_strerror (int code) { return gai_strerror (code); } #else /* !HAVE_DECL_GAI_STRERROR */ static struct { int code; const char *msg; } values[] = { { EAI_ADDRFAMILY, N_("Address family for hostname not supported") }, { EAI_AGAIN, N_("Temporary failure in name resolution") }, { EAI_BADFLAGS, N_("Bad value for ai_flags") }, { EAI_FAIL, N_("Non-recoverable failure in name resolution") }, { EAI_FAMILY, N_("ai_family not supported") }, { EAI_MEMORY, N_("Memory allocation failure") }, { EAI_NODATA, N_("No address associated with hostname") }, { EAI_NONAME, N_("Name or service not known") }, { EAI_SERVICE, N_("Servname not supported for ai_socktype") }, { EAI_SOCKTYPE, N_("ai_socktype not supported") }, { EAI_SYSTEM, N_("System error") }, { EAI_OVERFLOW, N_("Argument buffer too small") }, #ifdef EAI_INPROGRESS { EAI_INPROGRESS, N_("Processing request in progress") }, { EAI_CANCELED, N_("Request canceled") }, { EAI_NOTCANCELED, N_("Request not canceled") }, { EAI_ALLDONE, N_("All requests done") }, { EAI_INTR, N_("Interrupted by a signal") }, { EAI_IDN_ENCODE, N_("Parameter string not correctly encoded") } #endif }; const char * gai_strerror (int code) { size_t i; for (i = 0; i < sizeof (values) / sizeof (values[0]); ++i) if (values[i].code == code) return _(values[i].msg); return _("Unknown error"); } # ifdef _LIBC libc_hidden_def (gai_strerror) # endif #endif /* !HAVE_DECL_GAI_STRERROR */ shishi-1.0.3/lib/gl/hmac-md5.c0000644000000000000000000000164514273615122012611 00000000000000/* hmac-md5.c -- hashed message authentication codes Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include "hmac.h" #include "md5.h" #define GL_HMAC_NAME 5 #define GL_HMAC_BLOCKSIZE 64 #define GL_HMAC_HASHSIZE 16 #include "hmac.c" shishi-1.0.3/lib/gl/xvasprintf.c0000644000000000000000000000530714273615123013422 00000000000000/* vasprintf and asprintf with out-of-memory checking. Copyright (C) 1999, 2002-2004, 2006-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Specification. */ #include "xvasprintf.h" #include #include #include #include #include "xalloc.h" /* Checked size_t computations. */ #include "xsize.h" static char * xstrcat (size_t argcount, va_list args) { char *result; va_list ap; size_t totalsize; size_t i; char *p; /* Determine the total size. */ totalsize = 0; va_copy (ap, args); for (i = argcount; i > 0; i--) { const char *next = va_arg (ap, const char *); totalsize = xsum (totalsize, strlen (next)); } va_end (ap); /* Test for overflow in the summing pass above or in (totalsize + 1) below. Also, don't return a string longer than INT_MAX, for consistency with vasprintf(). */ if (totalsize == SIZE_MAX || totalsize > INT_MAX) { errno = EOVERFLOW; return NULL; } /* Allocate and fill the result string. */ result = XNMALLOC (totalsize + 1, char); p = result; for (i = argcount; i > 0; i--) { const char *next = va_arg (args, const char *); size_t len = strlen (next); memcpy (p, next, len); p += len; } *p = '\0'; return result; } char * xvasprintf (const char *format, va_list args) { char *result; /* Recognize the special case format = "%s...%s". It is a frequently used idiom for string concatenation and needs to be fast. We don't want to have a separate function xstrcat() for this purpose. */ { size_t argcount = 0; const char *f; for (f = format;;) { if (*f == '\0') /* Recognized the special case of string concatenation. */ return xstrcat (argcount, args); if (*f != '%') break; f++; if (*f != 's') break; f++; argcount++; } } if (vasprintf (&result, format, args) < 0) { if (errno == ENOMEM) xalloc_die (); return NULL; } return result; } shishi-1.0.3/lib/gl/fseek.c0000644000000000000000000000205714273615122012311 00000000000000/* An fseek() function that, together with fflush(), is POSIX compliant. Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Get off_t. */ #include int fseek (FILE *fp, long offset, int whence) { /* Use the replacement fseeko function with all its workarounds. */ return fseeko (fp, (off_t)offset, whence); } shishi-1.0.3/lib/gl/xstrndup.h0000644000000000000000000000211714273615123013106 00000000000000/* Duplicate a bounded initial segment of a string, with out-of-memory checking. Copyright (C) 2003, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Return a newly allocated copy of at most N bytes of STRING. In other words, return a copy of the initial segment of length N of STRING. */ extern char *xstrndup (const char *string, size_t n) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_RETURNS_NONNULL; shishi-1.0.3/lib/gl/printf-args.h0000644000000000000000000000740614273615123013461 00000000000000/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _PRINTF_ARGS_H #define _PRINTF_ARGS_H /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be declared. STATIC Set to 'static' to declare the function static. */ /* Default parameters. */ #ifndef PRINTF_FETCHARGS # define PRINTF_FETCHARGS printf_fetchargs #endif /* Get size_t. */ #include /* Get wchar_t. */ #if HAVE_WCHAR_T # include #endif /* Get wint_t. */ #if HAVE_WINT_T # include #endif /* Get va_list. */ #include /* Argument types */ typedef enum { TYPE_NONE, TYPE_SCHAR, TYPE_UCHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, TYPE_UINT, TYPE_LONGINT, TYPE_ULONGINT, TYPE_LONGLONGINT, TYPE_ULONGLONGINT, TYPE_DOUBLE, TYPE_LONGDOUBLE, TYPE_CHAR, #if HAVE_WINT_T TYPE_WIDE_CHAR, #endif TYPE_STRING, #if HAVE_WCHAR_T TYPE_WIDE_STRING, #endif TYPE_POINTER, TYPE_COUNT_SCHAR_POINTER, TYPE_COUNT_SHORT_POINTER, TYPE_COUNT_INT_POINTER, TYPE_COUNT_LONGINT_POINTER, TYPE_COUNT_LONGLONGINT_POINTER #if ENABLE_UNISTDIO /* The unistdio extensions. */ , TYPE_U8_STRING , TYPE_U16_STRING , TYPE_U32_STRING #endif } arg_type; /* Polymorphic argument */ typedef struct { arg_type type; union { signed char a_schar; unsigned char a_uchar; short a_short; unsigned short a_ushort; int a_int; unsigned int a_uint; long int a_longint; unsigned long int a_ulongint; long long int a_longlongint; unsigned long long int a_ulonglongint; float a_float; double a_double; long double a_longdouble; int a_char; #if HAVE_WINT_T wint_t a_wide_char; #endif const char* a_string; #if HAVE_WCHAR_T const wchar_t* a_wide_string; #endif void* a_pointer; signed char * a_count_schar_pointer; short * a_count_short_pointer; int * a_count_int_pointer; long int * a_count_longint_pointer; long long int * a_count_longlongint_pointer; #if ENABLE_UNISTDIO /* The unistdio extensions. */ const uint8_t * a_u8_string; const uint16_t * a_u16_string; const uint32_t * a_u32_string; #endif } a; } argument; /* Number of directly allocated arguments (no malloc() needed). */ #define N_DIRECT_ALLOC_ARGUMENTS 7 typedef struct { size_t count; argument *arg; argument direct_alloc_arg[N_DIRECT_ALLOC_ARGUMENTS]; } arguments; /* Fetch the arguments, putting them into a. */ #ifdef STATIC STATIC #else extern #endif int PRINTF_FETCHARGS (va_list args, arguments *a); #endif /* _PRINTF_ARGS_H */ shishi-1.0.3/lib/gl/ialloc.h0000644000000000000000000000446314273615122012467 00000000000000/* ialloc.h -- malloc with idx_t rather than size_t Copyright 2021-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef IALLOC_H_ #define IALLOC_H_ #include "idx.h" #include #include #include #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef IALLOC_INLINE # define IALLOC_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif IALLOC_INLINE void * _GL_ATTRIBUTE_COLD _gl_alloc_nomem (void) { errno = ENOMEM; return NULL; } IALLOC_INLINE _GL_ATTRIBUTE_MALLOC /*_GL_ATTRIBUTE_DEALLOC_FREE*/ void * imalloc (idx_t s) { return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem (); } IALLOC_INLINE /*_GL_ATTRIBUTE_DEALLOC_FREE*/ void * irealloc (void *p, idx_t s) { /* Work around GNU realloc glitch by treating a zero size as if it were 1, so that returning NULL is equivalent to failing. */ return s <= SIZE_MAX ? realloc (p, s | !s) : _gl_alloc_nomem (); } IALLOC_INLINE _GL_ATTRIBUTE_MALLOC /*_GL_ATTRIBUTE_DEALLOC_FREE*/ void * icalloc (idx_t n, idx_t s) { if (SIZE_MAX < n) { if (s != 0) return _gl_alloc_nomem (); n = 0; } if (SIZE_MAX < s) { if (n != 0) return _gl_alloc_nomem (); s = 0; } return calloc (n, s); } IALLOC_INLINE void * ireallocarray (void *p, idx_t n, idx_t s) { /* Work around GNU reallocarray glitch by treating a zero size as if it were 1, so that returning NULL is equivalent to failing. */ if (n == 0 || s == 0) n = s = 1; return (n <= SIZE_MAX && s <= SIZE_MAX ? reallocarray (p, n, s) : _gl_alloc_nomem ()); } #ifdef __cplusplus } #endif #endif shishi-1.0.3/lib/gl/sys_time.in.h0000644000000000000000000001745014273615123013466 00000000000000/* Provide a more complete sys/time.h. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #ifndef _@GUARD_PREFIX@_SYS_TIME_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* On Cygwin and on many BSDish systems, includes itself recursively via . Simply delegate to the system's header in this case; it is a no-op. Without this extra ifdef, the C++ gettimeofday declaration below would be a forward declaration in gnulib's nested . */ #if defined _CYGWIN_SYS_TIME_H || defined _SYS_TIME_H || defined _SYS_TIME_H_ # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ #else /* The include_next requires a split double-inclusion guard. */ #if @HAVE_SYS_TIME_H@ # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ #endif #ifndef _@GUARD_PREFIX@_SYS_TIME_H #define _@GUARD_PREFIX@_SYS_TIME_H #if ! @HAVE_SYS_TIME_H@ # include #endif /* On native Windows with MSVC, get the 'struct timeval' type. Also, on native Windows with a 64-bit time_t, where we are overriding the 'struct timeval' type, get all declarations of system functions whose signature contains 'struct timeval'. */ #if (defined _MSC_VER || @REPLACE_STRUCT_TIMEVAL@) && @HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H # define _GL_INCLUDING_WINSOCK2_H # include # undef _GL_INCLUDING_WINSOCK2_H #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ #ifdef __cplusplus extern "C" { #endif #if !@HAVE_STRUCT_TIMEVAL@ || @REPLACE_STRUCT_TIMEVAL@ # if @REPLACE_STRUCT_TIMEVAL@ # define timeval rpl_timeval # endif # if !GNULIB_defined_struct_timeval struct timeval { time_t tv_sec; long int tv_usec; }; # define GNULIB_defined_struct_timeval 1 # endif #endif #ifdef __cplusplus } #endif #if @GNULIB_GETTIMEOFDAY@ # if @REPLACE_GETTIMEOFDAY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gettimeofday # define gettimeofday rpl_gettimeofday # endif _GL_FUNCDECL_RPL (gettimeofday, int, (struct timeval *restrict, void *restrict) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (gettimeofday, int, (struct timeval *restrict, void *restrict)); # else # if !@HAVE_GETTIMEOFDAY@ _GL_FUNCDECL_SYS (gettimeofday, int, (struct timeval *restrict, void *restrict) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on glibc systems, by default, the second argument is struct timezone *. */ _GL_CXXALIAS_SYS_CAST (gettimeofday, int, (struct timeval *restrict, void *restrict)); # endif _GL_CXXALIASWARN (gettimeofday); # if defined __cplusplus && defined GNULIB_NAMESPACE namespace GNULIB_NAMESPACE { typedef ::timeval # undef timeval timeval; # if @REPLACE_STRUCT_TIMEVAL@ # define timeval rpl_timeval typedef ::timeval timeval; # endif } # endif #elif defined GNULIB_POSIXCHECK # undef gettimeofday # if HAVE_RAW_DECL_GETTIMEOFDAY _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " "use gnulib module gettimeofday for portability"); # endif #endif /* Hide some function declarations from . */ #if defined _MSC_VER && @HAVE_WINSOCK2_H@ # if !defined _@GUARD_PREFIX@_UNISTD_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef close # define close close_used_without_including_unistd_h # elif !defined __clang__ _GL_WARN_ON_USE (close, "close() used without including "); # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname gethostname_used_without_including_unistd_h # else _GL_WARN_ON_USE (gethostname, "gethostname() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef socket # define socket socket_used_without_including_sys_socket_h # undef connect # define connect connect_used_without_including_sys_socket_h # undef accept # define accept accept_used_without_including_sys_socket_h # undef bind # define bind bind_used_without_including_sys_socket_h # undef getpeername # define getpeername getpeername_used_without_including_sys_socket_h # undef getsockname # define getsockname getsockname_used_without_including_sys_socket_h # undef getsockopt # define getsockopt getsockopt_used_without_including_sys_socket_h # undef listen # define listen listen_used_without_including_sys_socket_h # undef recv # define recv recv_used_without_including_sys_socket_h # undef send # define send send_used_without_including_sys_socket_h # undef recvfrom # define recvfrom recvfrom_used_without_including_sys_socket_h # undef sendto # define sendto sendto_used_without_including_sys_socket_h # undef setsockopt # define setsockopt setsockopt_used_without_including_sys_socket_h # undef shutdown # define shutdown shutdown_used_without_including_sys_socket_h # else _GL_WARN_ON_USE (socket, "socket() used without including "); _GL_WARN_ON_USE (connect, "connect() used without including "); _GL_WARN_ON_USE (accept, "accept() used without including "); _GL_WARN_ON_USE (bind, "bind() used without including "); _GL_WARN_ON_USE (getpeername, "getpeername() used without including "); _GL_WARN_ON_USE (getsockname, "getsockname() used without including "); _GL_WARN_ON_USE (getsockopt, "getsockopt() used without including "); _GL_WARN_ON_USE (listen, "listen() used without including "); _GL_WARN_ON_USE (recv, "recv() used without including "); _GL_WARN_ON_USE (send, "send() used without including "); _GL_WARN_ON_USE (recvfrom, "recvfrom() used without including "); _GL_WARN_ON_USE (sendto, "sendto() used without including "); _GL_WARN_ON_USE (setsockopt, "setsockopt() used without including "); _GL_WARN_ON_USE (shutdown, "shutdown() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SELECT_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef select # define select select_used_without_including_sys_select_h # else _GL_WARN_ON_USE (select, "select() used without including "); # endif # endif #endif #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ #endif /* _CYGWIN_SYS_TIME_H */ #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ shishi-1.0.3/lib/gl/fstat.c0000644000000000000000000000515314273615122012335 00000000000000/* fstat() replacement. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_fstat doesn't recurse to rpl_fstat. */ #define __need_system_sys_stat_h #include /* Get the original definition of fstat. It might be defined as a macro. */ #include #include #undef __need_system_sys_stat_h #if defined _WIN32 && ! defined __CYGWIN__ # define WINDOWS_NATIVE #endif #if !defined WINDOWS_NATIVE static int orig_fstat (int fd, struct stat *buf) { return fstat (fd, buf); } #endif /* Specification. */ #ifdef __osf__ /* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ # include "sys/stat.h" #else # include #endif #include "stat-time.h" #include #include #ifdef WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif # include "stat-w32.h" #endif int rpl_fstat (int fd, struct stat *buf) { #if REPLACE_FCHDIR && REPLACE_OPEN_DIRECTORY /* Handle the case when rpl_open() used a dummy file descriptor to work around an open() that can't normally visit directories. */ const char *name = _gl_directory_name (fd); if (name != NULL) return stat (name, buf); #endif #ifdef WINDOWS_NATIVE /* Fill the fields ourselves, because the original fstat function returns values for st_atime, st_mtime, st_ctime that depend on the current time zone. See */ HANDLE h = (HANDLE) _get_osfhandle (fd); if (h == INVALID_HANDLE_VALUE) { errno = EBADF; return -1; } return _gl_fstat_by_handle (h, NULL, buf); #else return stat_time_normalize (orig_fstat (fd, buf), buf); #endif } shishi-1.0.3/lib/gl/msvc-nothrow.c0000644000000000000000000000255614273615123013667 00000000000000/* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "msvc-nothrow.h" /* Get declarations of the native Windows API functions. */ #define WIN32_LEAN_AND_MEAN #include #if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" #endif #undef _get_osfhandle #if HAVE_MSVC_INVALID_PARAMETER_HANDLER intptr_t _gl_nothrow_get_osfhandle (int fd) { intptr_t result; TRY_MSVC_INVAL { result = _get_osfhandle (fd); } CATCH_MSVC_INVAL { result = (intptr_t) INVALID_HANDLE_VALUE; } DONE_MSVC_INVAL; return result; } #endif shishi-1.0.3/lib/gl/gettext.h0000644000000000000000000002501514273615122012704 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option or through "#define ENABLE NLS 0" before including this file. */ #if defined ENABLE_NLS && ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include /* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by the gettext() and ngettext() macros. This is an alternative to calling textdomain(), and is useful for libraries. */ # ifdef DEFAULT_TEXT_DOMAIN # undef gettext # define gettext(Msgid) \ dgettext (DEFAULT_TEXT_DOMAIN, Msgid) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N) # endif #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Many header files from the libstdc++ coming with g++ 3.3 or newer include , which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. */ #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) # include # if (__GLIBC__ >= 2 && !defined __UCLIBC__) || _GLIBCXX_HAVE_LIBINTL_H # include # endif #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # undef gettext # define gettext(Msgid) ((const char *) (Msgid)) # undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) # undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) # undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) # undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) # undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) # undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) # undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) #endif /* Prefer gnulib's setlocale override over libintl's setlocale override. */ #ifdef GNULIB_defined_setlocale # undef setlocale # define setlocale rpl_setlocale #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String /* The separator between msgctxt and msgid in a .mo file. */ #define GETTEXT_CONTEXT_GLUE "\004" /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be short and rarely need to change. The letter 'p' stands for 'particular' or 'special'. */ #ifdef DEFAULT_TEXT_DOMAIN # define pgettext(Msgctxt, Msgid) \ pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #else # define pgettext(Msgctxt, Msgid) \ pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #endif #define dpgettext(Domainname, Msgctxt, Msgid) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category) #ifdef DEFAULT_TEXT_DOMAIN # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #else # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #endif #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) return msgid; else return translation; } #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); if (translation == msg_ctxt_id || translation == msgid_plural) return (n == 1 ? msgid : msgid_plural); else return translation; } /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID can be arbitrary expressions. But for string literals these macros are less efficient than those above. */ #include /* GNULIB_NO_VLA can be defined to disable use of VLAs even if supported. This relates to the -Wvla and -Wvla-larger-than warnings, enabled in the default GCC many warnings set. This allows programs to disable use of VLAs, which may be unintended, or may be awkward to support portably, or may have security implications due to non-deterministic stack usage. */ #if (!defined GNULIB_NO_VLA \ && defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__ \ && !defined __STDC_NO_VLA__) # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1 #else # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0 #endif #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include #endif #define pgettext_expr(Msgctxt, Msgid) \ dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES) #define dpgettext_expr(Domainname, Msgctxt, Msgid) \ dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { int found_translation; memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcgettext (domain, msg_ctxt_id, category); found_translation = (translation != msg_ctxt_id); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (found_translation) return translation; } return msgid; } #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { int found_translation; memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (found_translation) return translation; } return (n == 1 ? msgid : msgid_plural); } #endif /* _LIBGETTEXT_H */ shishi-1.0.3/lib/gl/lseek.c0000644000000000000000000000543114273615122012316 00000000000000/* An lseek() function that detects pipes. Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if defined _WIN32 && ! defined __CYGWIN__ /* Windows platforms. */ /* Get GetFileType. */ # include /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif #else # include #endif #include #undef lseek off_t rpl_lseek (int fd, off_t offset, int whence) { #if defined _WIN32 && ! defined __CYGWIN__ /* mingw lseek mistakenly succeeds on pipes, sockets, and terminals. */ HANDLE h = (HANDLE) _get_osfhandle (fd); if (h == INVALID_HANDLE_VALUE) { errno = EBADF; return -1; } if (GetFileType (h) != FILE_TYPE_DISK) { errno = ESPIPE; return -1; } #elif defined __APPLE__ && defined __MACH__ && defined SEEK_DATA if (whence == SEEK_DATA) { /* If OFFSET points to data, macOS lseek+SEEK_DATA returns the start S of the first data region that begins *after* OFFSET, where the region from OFFSET to S consists of possibly-empty data followed by a possibly-empty hole. To work around this portability glitch, check whether OFFSET is within data by using lseek+SEEK_HOLE, and if so return to OFFSET by using lseek+SEEK_SET. Also, contrary to the macOS documentation, lseek+SEEK_HOLE can fail with ENXIO if there are no holes on or after OFFSET. What a mess! */ off_t next_hole = lseek (fd, offset, SEEK_HOLE); if (next_hole < 0) return errno == ENXIO ? offset : next_hole; if (next_hole != offset) whence = SEEK_SET; } #else /* BeOS lseek mistakenly succeeds on pipes... */ struct stat statbuf; if (fstat (fd, &statbuf) < 0) return -1; if (!S_ISREG (statbuf.st_mode)) { errno = ESPIPE; return -1; } #endif #if _GL_WINDOWS_64_BIT_OFF_T || (defined __MINGW32__ && defined _FILE_OFFSET_BITS && (_FILE_OFFSET_BITS == 64)) return _lseeki64 (fd, offset, whence); #else return lseek (fd, offset, whence); #endif } shishi-1.0.3/lib/gl/nstrftime.c0000644000000000000000000014041014273615123013224 00000000000000/* Copyright (C) 1991-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifdef _LIBC # define USE_IN_EXTENDED_LOCALE_MODEL 1 # define HAVE_STRUCT_ERA_ENTRY 1 # define HAVE_TM_GMTOFF 1 # define HAVE_STRUCT_TM_TM_ZONE 1 # define HAVE_TZNAME 1 # include "../locale/localeinfo.h" #else # include # if FPRINTFTIME # include "fprintftime.h" # else # include "strftime.h" # endif # include "time-internal.h" #endif #include #include #include #if HAVE_TZNAME && !HAVE_DECL_TZNAME extern char *tzname[]; #endif /* Do multibyte processing if multibyte encodings are supported, unless multibyte sequences are safe in formats. Multibyte sequences are safe if they cannot contain byte sequences that look like format conversion specifications. The multibyte encodings used by the C library on the various platforms (UTF-8, GB2312, GBK, CP936, GB18030, EUC-TW, BIG5, BIG5-HKSCS, CP950, EUC-JP, EUC-KR, CP949, SHIFT_JIS, CP932, JOHAB) are safe for formats, because the byte '%' cannot occur in a multibyte character except in the first byte. The DEC-HANYU encoding used on OSF/1 is not safe for formats, but this encoding has never been seen in real-life use, so we ignore it. */ #if !(defined __osf__ && 0) # define MULTIBYTE_IS_FORMAT_SAFE 1 #endif #define DO_MULTIBYTE (! MULTIBYTE_IS_FORMAT_SAFE) #if DO_MULTIBYTE # include static const mbstate_t mbstate_zero; #endif #include #include #include #include #include #include "attribute.h" #include #ifdef COMPILE_WIDE # include # define CHAR_T wchar_t # define UCHAR_T unsigned int # define L_(Str) L##Str # define NLW(Sym) _NL_W##Sym # define MEMCPY(d, s, n) __wmemcpy (d, s, n) # define STRLEN(s) __wcslen (s) #else # define CHAR_T char # define UCHAR_T unsigned char # define L_(Str) Str # define NLW(Sym) Sym # define ABALTMON_1 _NL_ABALTMON_1 # define MEMCPY(d, s, n) memcpy (d, s, n) # define STRLEN(s) strlen (s) #endif /* Shift A right by B bits portably, by dividing A by 2**B and truncating towards minus infinity. A and B should be free of side effects, and B should be in the range 0 <= B <= INT_BITS - 2, where INT_BITS is the number of useful bits in an int. GNU code can assume that INT_BITS is at least 32. ISO C99 says that A >> B is implementation-defined if A < 0. Some implementations (e.g., UNICOS 9.0 on a Cray Y-MP EL) don't shift right in the usual way when A < 0, so SHR falls back on division if ordinary A >> B doesn't seem to be the usual signed shift. */ #define SHR(a, b) \ (-1 >> 1 == -1 \ ? (a) >> (b) \ : ((a) + ((a) < 0)) / (1 << (b)) - ((a) < 0)) #define TM_YEAR_BASE 1900 #ifndef __isleap /* Nonzero if YEAR is a leap year (every 4 years, except every 100th isn't, and every 400th is). */ # define __isleap(year) \ ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) #endif #ifdef _LIBC # define mktime_z(tz, tm) mktime (tm) # define tzname __tzname # define tzset __tzset #endif #ifndef FPRINTFTIME # define FPRINTFTIME 0 #endif #if FPRINTFTIME # define STREAM_OR_CHAR_T FILE # define STRFTIME_ARG(x) /* empty */ #else # define STREAM_OR_CHAR_T CHAR_T # define STRFTIME_ARG(x) x, #endif #if FPRINTFTIME # define memset_byte(P, Len, Byte) \ do { size_t _i; for (_i = 0; _i < Len; _i++) fputc (Byte, P); } while (0) # define memset_space(P, Len) memset_byte (P, Len, ' ') # define memset_zero(P, Len) memset_byte (P, Len, '0') #elif defined COMPILE_WIDE # define memset_space(P, Len) (wmemset (P, L' ', Len), (P) += (Len)) # define memset_zero(P, Len) (wmemset (P, L'0', Len), (P) += (Len)) #else # define memset_space(P, Len) (memset (P, ' ', Len), (P) += (Len)) # define memset_zero(P, Len) (memset (P, '0', Len), (P) += (Len)) #endif #if FPRINTFTIME # define advance(P, N) #else # define advance(P, N) ((P) += (N)) #endif #define add(n, f) width_add (width, n, f) #define width_add(width, n, f) \ do \ { \ size_t _n = (n); \ size_t _w = pad == L_('-') || width < 0 ? 0 : width; \ size_t _incr = _n < _w ? _w : _n; \ if (_incr >= maxsize - i) \ { \ errno = ERANGE; \ return 0; \ } \ if (p) \ { \ if (_n < _w) \ { \ size_t _delta = _w - _n; \ if (pad == L_('0') || pad == L_('+')) \ memset_zero (p, _delta); \ else \ memset_space (p, _delta); \ } \ f; \ advance (p, _n); \ } \ i += _incr; \ } while (0) #define add1(c) width_add1 (width, c) #if FPRINTFTIME # define width_add1(width, c) width_add (width, 1, fputc (c, p)) #else # define width_add1(width, c) width_add (width, 1, *p = c) #endif #define cpy(n, s) width_cpy (width, n, s) #if FPRINTFTIME # define width_cpy(width, n, s) \ width_add (width, n, \ do \ { \ if (to_lowcase) \ fwrite_lowcase (p, (s), _n); \ else if (to_uppcase) \ fwrite_uppcase (p, (s), _n); \ else \ { \ /* Ignore the value of fwrite. The caller can determine whether \ an error occurred by inspecting ferror (P). All known fwrite \ implementations set the stream's error indicator when they \ fail due to ENOMEM etc., even though C11 and POSIX.1-2008 do \ not require this. */ \ fwrite (s, _n, 1, p); \ } \ } \ while (0) \ ) #else # define width_cpy(width, n, s) \ width_add (width, n, \ if (to_lowcase) \ memcpy_lowcase (p, (s), _n LOCALE_ARG); \ else if (to_uppcase) \ memcpy_uppcase (p, (s), _n LOCALE_ARG); \ else \ MEMCPY ((void *) p, (void const *) (s), _n)) #endif #ifdef COMPILE_WIDE # ifndef USE_IN_EXTENDED_LOCALE_MODEL # undef __mbsrtowcs_l # define __mbsrtowcs_l(d, s, l, st, loc) __mbsrtowcs (d, s, l, st) # endif # define widen(os, ws, l) \ { \ mbstate_t __st; \ const char *__s = os; \ memset (&__st, '\0', sizeof (__st)); \ l = __mbsrtowcs_l (NULL, &__s, 0, &__st, loc); \ ws = (wchar_t *) alloca ((l + 1) * sizeof (wchar_t)); \ (void) __mbsrtowcs_l (ws, &__s, l, &__st, loc); \ } #endif #if defined _LIBC && defined USE_IN_EXTENDED_LOCALE_MODEL /* We use this code also for the extended locale handling where the function gets as an additional argument the locale which has to be used. To access the values we have to redefine the _NL_CURRENT macro. */ # define strftime __strftime_l # define wcsftime __wcsftime_l # undef _NL_CURRENT # define _NL_CURRENT(category, item) \ (current->values[_NL_ITEM_INDEX (item)].string) # define LOCALE_PARAM , locale_t loc # define LOCALE_ARG , loc # define HELPER_LOCALE_ARG , current #else # define LOCALE_PARAM # define LOCALE_ARG # ifdef _LIBC # define HELPER_LOCALE_ARG , _NL_CURRENT_DATA (LC_TIME) # else # define HELPER_LOCALE_ARG # endif #endif #ifdef COMPILE_WIDE # ifdef USE_IN_EXTENDED_LOCALE_MODEL # define TOUPPER(Ch, L) __towupper_l (Ch, L) # define TOLOWER(Ch, L) __towlower_l (Ch, L) # else # define TOUPPER(Ch, L) towupper (Ch) # define TOLOWER(Ch, L) towlower (Ch) # endif #else # ifdef USE_IN_EXTENDED_LOCALE_MODEL # define TOUPPER(Ch, L) __toupper_l (Ch, L) # define TOLOWER(Ch, L) __tolower_l (Ch, L) # else # define TOUPPER(Ch, L) toupper (Ch) # define TOLOWER(Ch, L) tolower (Ch) # endif #endif /* We don't use 'isdigit' here since the locale dependent interpretation is not what we want here. We only need to accept the arabic digits in the ASCII range. One day there is perhaps a more reliable way to accept other sets of digits. */ #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9) #if FPRINTFTIME static void fwrite_lowcase (FILE *fp, const CHAR_T *src, size_t len) { while (len-- > 0) { fputc (TOLOWER ((UCHAR_T) *src, loc), fp); ++src; } } static void fwrite_uppcase (FILE *fp, const CHAR_T *src, size_t len) { while (len-- > 0) { fputc (TOUPPER ((UCHAR_T) *src, loc), fp); ++src; } } #else static CHAR_T *memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM); static CHAR_T * memcpy_lowcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM) { while (len-- > 0) dest[len] = TOLOWER ((UCHAR_T) src[len], loc); return dest; } static CHAR_T *memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM); static CHAR_T * memcpy_uppcase (CHAR_T *dest, const CHAR_T *src, size_t len LOCALE_PARAM) { while (len-- > 0) dest[len] = TOUPPER ((UCHAR_T) src[len], loc); return dest; } #endif #if ! HAVE_TM_GMTOFF /* Yield the difference between *A and *B, measured in seconds, ignoring leap seconds. */ # define tm_diff ftime_tm_diff static int tm_diff (const struct tm *, const struct tm *); static int tm_diff (const struct tm *a, const struct tm *b) { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow in leap day calculations, but it's OK to assume that A and B are close to each other. */ int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (b->tm_year & 3); int a100 = (a4 + (a4 < 0)) / 25 - (a4 < 0); int b100 = (b4 + (b4 < 0)) / 25 - (b4 < 0); int a400 = SHR (a100, 2); int b400 = SHR (b100, 2); int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); int years = a->tm_year - b->tm_year; int days = (365 * years + intervening_leap_days + (a->tm_yday - b->tm_yday)); return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) + (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec)); } #endif /* ! HAVE_TM_GMTOFF */ /* The number of days from the first day of the first ISO week of this year to the year day YDAY with week day WDAY. ISO weeks start on Monday; the first ISO week has the year's first Thursday. YDAY may be as small as YDAY_MINIMUM. */ #define ISO_WEEK_START_WDAY 1 /* Monday */ #define ISO_WEEK1_WDAY 4 /* Thursday */ #define YDAY_MINIMUM (-366) static int iso_week_days (int, int); static __inline int iso_week_days (int yday, int wday) { /* Add enough to the first operand of % to make it nonnegative. */ int big_enough_multiple_of_7 = (-YDAY_MINIMUM / 7 + 2) * 7; return (yday - (yday - wday + ISO_WEEK1_WDAY + big_enough_multiple_of_7) % 7 + ISO_WEEK1_WDAY - ISO_WEEK_START_WDAY); } /* When compiling this file, GNU applications can #define my_strftime to a symbol (typically nstrftime) to get an extended strftime with extra arguments TZ and NS. */ #if FPRINTFTIME # undef my_strftime # define my_strftime fprintftime #endif #ifdef my_strftime # define extra_args , tz, ns # define extra_args_spec , timezone_t tz, int ns #else # if defined COMPILE_WIDE # define my_strftime wcsftime # define nl_get_alt_digit _nl_get_walt_digit # else # define my_strftime strftime # define nl_get_alt_digit _nl_get_alt_digit # endif # define extra_args # define extra_args_spec /* We don't have this information in general. */ # define tz 1 # define ns 0 #endif static size_t __strftime_internal (STREAM_OR_CHAR_T *, STRFTIME_ARG (size_t) const CHAR_T *, const struct tm *, bool, int, int, bool * extra_args_spec LOCALE_PARAM); /* Write information from TP into S according to the format string FORMAT, writing no more that MAXSIZE characters (including the terminating '\0') and returning number of characters written. If S is NULL, nothing will be written anywhere, so to determine how many characters would be written, use NULL for S and (size_t) -1 for MAXSIZE. */ size_t my_strftime (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize) const CHAR_T *format, const struct tm *tp extra_args_spec LOCALE_PARAM) { bool tzset_called = false; return __strftime_internal (s, STRFTIME_ARG (maxsize) format, tp, false, 0, -1, &tzset_called extra_args LOCALE_ARG); } libc_hidden_def (my_strftime) /* Just like my_strftime, above, but with more parameters. UPCASE indicates that the result should be converted to upper case. YR_SPEC and WIDTH specify the padding and width for the year. *TZSET_CALLED indicates whether tzset has been called here. */ static size_t __strftime_internal (STREAM_OR_CHAR_T *s, STRFTIME_ARG (size_t maxsize) const CHAR_T *format, const struct tm *tp, bool upcase, int yr_spec, int width, bool *tzset_called extra_args_spec LOCALE_PARAM) { #if defined _LIBC && defined USE_IN_EXTENDED_LOCALE_MODEL struct __locale_data *const current = loc->__locales[LC_TIME]; #endif #if FPRINTFTIME size_t maxsize = (size_t) -1; #endif int saved_errno = errno; int hour12 = tp->tm_hour; #ifdef _NL_CURRENT /* We cannot make the following values variables since we must delay the evaluation of these values until really needed since some expressions might not be valid in every situation. The 'struct tm' might be generated by a strptime() call that initialized only a few elements. Dereference the pointers only if the format requires this. Then it is ok to fail if the pointers are invalid. */ # define a_wkday \ ((const CHAR_T *) (tp->tm_wday < 0 || tp->tm_wday > 6 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(ABDAY_1) + tp->tm_wday))) # define f_wkday \ ((const CHAR_T *) (tp->tm_wday < 0 || tp->tm_wday > 6 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(DAY_1) + tp->tm_wday))) # define a_month \ ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(ABMON_1) + tp->tm_mon))) # define f_month \ ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(MON_1) + tp->tm_mon))) # define a_altmonth \ ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(ABALTMON_1) + tp->tm_mon))) # define f_altmonth \ ((const CHAR_T *) (tp->tm_mon < 0 || tp->tm_mon > 11 \ ? "?" : _NL_CURRENT (LC_TIME, NLW(ALTMON_1) + tp->tm_mon))) # define ampm \ ((const CHAR_T *) _NL_CURRENT (LC_TIME, tp->tm_hour > 11 \ ? NLW(PM_STR) : NLW(AM_STR))) # define aw_len STRLEN (a_wkday) # define am_len STRLEN (a_month) # define aam_len STRLEN (a_altmonth) # define ap_len STRLEN (ampm) #endif #if HAVE_TZNAME char **tzname_vec = tzname; #endif const char *zone; size_t i = 0; STREAM_OR_CHAR_T *p = s; const CHAR_T *f; #if DO_MULTIBYTE && !defined COMPILE_WIDE const char *format_end = NULL; #endif zone = NULL; #if HAVE_STRUCT_TM_TM_ZONE /* The POSIX test suite assumes that setting the environment variable TZ to a new value before calling strftime() will influence the result (the %Z format) even if the information in TP is computed with a totally different time zone. This is bogus: though POSIX allows bad behavior like this, POSIX does not require it. Do the right thing instead. */ zone = (const char *) tp->tm_zone; #endif #if HAVE_TZNAME if (!tz) { if (! (zone && *zone)) zone = "GMT"; } else { # if !HAVE_STRUCT_TM_TM_ZONE /* Infer the zone name from *TZ instead of from TZNAME. */ tzname_vec = tz->tzname_copy; # endif } /* The tzset() call might have changed the value. */ if (!(zone && *zone) && tp->tm_isdst >= 0) { /* POSIX.1 requires that local time zone information be used as though strftime called tzset. */ # ifndef my_strftime if (!*tzset_called) { tzset (); *tzset_called = true; } # endif zone = tzname_vec[tp->tm_isdst != 0]; } #endif if (! zone) zone = ""; if (hour12 > 12) hour12 -= 12; else if (hour12 == 0) hour12 = 12; for (f = format; *f != '\0'; width = -1, f++) { int pad = 0; /* Padding for number ('_', '-', '+', '0', or 0). */ int modifier; /* Field modifier ('E', 'O', or 0). */ int digits = 0; /* Max digits for numeric format. */ int number_value; /* Numeric value to be printed. */ unsigned int u_number_value; /* (unsigned int) number_value. */ bool negative_number; /* The number is negative. */ bool always_output_a_sign; /* +/- should always be output. */ int tz_colon_mask; /* Bitmask of where ':' should appear. */ const CHAR_T *subfmt; CHAR_T *bufp; CHAR_T buf[1 + 2 /* for the two colons in a %::z or %:::z time zone */ + (sizeof (int) < sizeof (time_t) ? INT_STRLEN_BOUND (time_t) : INT_STRLEN_BOUND (int))]; bool to_lowcase = false; bool to_uppcase = upcase; size_t colons; bool change_case = false; int format_char; int subwidth; #if DO_MULTIBYTE && !defined COMPILE_WIDE switch (*f) { case L_('%'): break; case L_('\b'): case L_('\t'): case L_('\n'): case L_('\v'): case L_('\f'): case L_('\r'): case L_(' '): case L_('!'): case L_('"'): case L_('#'): case L_('&'): case L_('\''): case L_('('): case L_(')'): case L_('*'): case L_('+'): case L_(','): case L_('-'): case L_('.'): case L_('/'): case L_('0'): case L_('1'): case L_('2'): case L_('3'): case L_('4'): case L_('5'): case L_('6'): case L_('7'): case L_('8'): case L_('9'): case L_(':'): case L_(';'): case L_('<'): case L_('='): case L_('>'): case L_('?'): case L_('A'): case L_('B'): case L_('C'): case L_('D'): case L_('E'): case L_('F'): case L_('G'): case L_('H'): case L_('I'): case L_('J'): case L_('K'): case L_('L'): case L_('M'): case L_('N'): case L_('O'): case L_('P'): case L_('Q'): case L_('R'): case L_('S'): case L_('T'): case L_('U'): case L_('V'): case L_('W'): case L_('X'): case L_('Y'): case L_('Z'): case L_('['): case L_('\\'): case L_(']'): case L_('^'): case L_('_'): case L_('a'): case L_('b'): case L_('c'): case L_('d'): case L_('e'): case L_('f'): case L_('g'): case L_('h'): case L_('i'): case L_('j'): case L_('k'): case L_('l'): case L_('m'): case L_('n'): case L_('o'): case L_('p'): case L_('q'): case L_('r'): case L_('s'): case L_('t'): case L_('u'): case L_('v'): case L_('w'): case L_('x'): case L_('y'): case L_('z'): case L_('{'): case L_('|'): case L_('}'): case L_('~'): /* The C Standard requires these 98 characters (plus '%') to be in the basic execution character set. None of these characters can start a multibyte sequence, so they need not be analyzed further. */ add1 (*f); continue; default: /* Copy this multibyte sequence until we reach its end, find an error, or come back to the initial shift state. */ { mbstate_t mbstate = mbstate_zero; size_t len = 0; size_t fsize; if (! format_end) format_end = f + strlen (f) + 1; fsize = format_end - f; do { size_t bytes = mbrlen (f + len, fsize - len, &mbstate); if (bytes == 0) break; if (bytes == (size_t) -2) { len += strlen (f + len); break; } if (bytes == (size_t) -1) { len++; break; } len += bytes; } while (! mbsinit (&mbstate)); cpy (len, f); f += len - 1; continue; } } #else /* ! DO_MULTIBYTE */ /* Either multibyte encodings are not supported, they are safe for formats, so any non-'%' byte can be copied through, or this is the wide character version. */ if (*f != L_('%')) { add1 (*f); continue; } #endif /* ! DO_MULTIBYTE */ char const *percent = f; /* Check for flags that can modify a format. */ while (1) { switch (*++f) { /* This influences the number formats. */ case L_('_'): case L_('-'): case L_('+'): case L_('0'): pad = *f; continue; /* This changes textual output. */ case L_('^'): to_uppcase = true; continue; case L_('#'): change_case = true; continue; default: break; } break; } if (ISDIGIT (*f)) { width = 0; do { if (INT_MULTIPLY_WRAPV (width, 10, &width) || INT_ADD_WRAPV (width, *f - L_('0'), &width)) width = INT_MAX; ++f; } while (ISDIGIT (*f)); } /* Check for modifiers. */ switch (*f) { case L_('E'): case L_('O'): modifier = *f++; break; default: modifier = 0; break; } /* Now do the specified format. */ format_char = *f; switch (format_char) { #define DO_NUMBER(d, v) \ do \ { \ digits = d; \ number_value = v; \ goto do_number; \ } \ while (0) #define DO_SIGNED_NUMBER(d, negative, v) \ DO_MAYBE_SIGNED_NUMBER (d, negative, v, do_signed_number) #define DO_YEARISH(d, negative, v) \ DO_MAYBE_SIGNED_NUMBER (d, negative, v, do_yearish) #define DO_MAYBE_SIGNED_NUMBER(d, negative, v, label) \ do \ { \ digits = d; \ negative_number = negative; \ u_number_value = v; \ goto label; \ } \ while (0) /* The mask is not what you might think. When the ordinal i'th bit is set, insert a colon before the i'th digit of the time zone representation. */ #define DO_TZ_OFFSET(d, mask, v) \ do \ { \ digits = d; \ tz_colon_mask = mask; \ u_number_value = v; \ goto do_tz_offset; \ } \ while (0) #define DO_NUMBER_SPACEPAD(d, v) \ do \ { \ digits = d; \ number_value = v; \ goto do_number_spacepad; \ } \ while (0) case L_('%'): if (f - 1 != percent) goto bad_percent; add1 (*f); break; case L_('a'): if (modifier != 0) goto bad_format; if (change_case) { to_uppcase = true; to_lowcase = false; } #ifdef _NL_CURRENT cpy (aw_len, a_wkday); break; #else goto underlying_strftime; #endif case 'A': if (modifier != 0) goto bad_format; if (change_case) { to_uppcase = true; to_lowcase = false; } #ifdef _NL_CURRENT cpy (STRLEN (f_wkday), f_wkday); break; #else goto underlying_strftime; #endif case L_('b'): case L_('h'): if (change_case) { to_uppcase = true; to_lowcase = false; } if (modifier == L_('E')) goto bad_format; #ifdef _NL_CURRENT if (modifier == L_('O')) cpy (aam_len, a_altmonth); else cpy (am_len, a_month); break; #else goto underlying_strftime; #endif case L_('B'): if (modifier == L_('E')) goto bad_format; if (change_case) { to_uppcase = true; to_lowcase = false; } #ifdef _NL_CURRENT if (modifier == L_('O')) cpy (STRLEN (f_altmonth), f_altmonth); else cpy (STRLEN (f_month), f_month); break; #else goto underlying_strftime; #endif case L_('c'): if (modifier == L_('O')) goto bad_format; #ifdef _NL_CURRENT if (! (modifier == L_('E') && (*(subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ERA_D_T_FMT))) != '\0'))) subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(D_T_FMT)); #else goto underlying_strftime; #endif subformat: subwidth = -1; subformat_width: { size_t len = __strftime_internal (NULL, STRFTIME_ARG ((size_t) -1) subfmt, tp, to_uppcase, pad, subwidth, tzset_called extra_args LOCALE_ARG); add (len, __strftime_internal (p, STRFTIME_ARG (maxsize - i) subfmt, tp, to_uppcase, pad, subwidth, tzset_called extra_args LOCALE_ARG)); } break; #if !(defined _NL_CURRENT && HAVE_STRUCT_ERA_ENTRY) underlying_strftime: { /* The relevant information is available only via the underlying strftime implementation, so use that. */ char ufmt[5]; char *u = ufmt; char ubuf[1024]; /* enough for any single format in practice */ size_t len; /* Make sure we're calling the actual underlying strftime. In some cases, config.h contains something like "#define strftime rpl_strftime". */ # ifdef strftime # undef strftime size_t strftime (); # endif /* The space helps distinguish strftime failure from empty output. */ *u++ = ' '; *u++ = '%'; if (modifier != 0) *u++ = modifier; *u++ = format_char; *u = '\0'; len = strftime (ubuf, sizeof ubuf, ufmt, tp); if (len != 0) cpy (len - 1, ubuf + 1); } break; #endif case L_('C'): if (modifier == L_('E')) { #if HAVE_STRUCT_ERA_ENTRY struct era_entry *era = _nl_get_era_entry (tp HELPER_LOCALE_ARG); if (era) { # ifdef COMPILE_WIDE size_t len = __wcslen (era->era_wname); cpy (len, era->era_wname); # else size_t len = strlen (era->era_name); cpy (len, era->era_name); # endif break; } #else goto underlying_strftime; #endif } { bool negative_year = tp->tm_year < - TM_YEAR_BASE; bool zero_thru_1899 = !negative_year & (tp->tm_year < 0); int century = ((tp->tm_year - 99 * zero_thru_1899) / 100 + TM_YEAR_BASE / 100); DO_YEARISH (2, negative_year, century); } case L_('x'): if (modifier == L_('O')) goto bad_format; #ifdef _NL_CURRENT if (! (modifier == L_('E') && (*(subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ERA_D_FMT))) != L_('\0')))) subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(D_FMT)); goto subformat; #else goto underlying_strftime; #endif case L_('D'): if (modifier != 0) goto bad_format; subfmt = L_("%m/%d/%y"); goto subformat; case L_('d'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, tp->tm_mday); case L_('e'): if (modifier == L_('E')) goto bad_format; DO_NUMBER_SPACEPAD (2, tp->tm_mday); /* All numeric formats set DIGITS and NUMBER_VALUE (or U_NUMBER_VALUE) and then jump to one of these labels. */ do_tz_offset: always_output_a_sign = true; goto do_number_body; do_yearish: if (pad == 0) pad = yr_spec; always_output_a_sign = (pad == L_('+') && ((digits == 2 ? 99 : 9999) < u_number_value || digits < width)); goto do_maybe_signed_number; do_number_spacepad: if (pad == 0) pad = L_('_'); do_number: /* Format NUMBER_VALUE according to the MODIFIER flag. */ negative_number = number_value < 0; u_number_value = number_value; do_signed_number: always_output_a_sign = false; do_maybe_signed_number: tz_colon_mask = 0; do_number_body: /* Format U_NUMBER_VALUE according to the MODIFIER flag. NEGATIVE_NUMBER is nonzero if the original number was negative; in this case it was converted directly to unsigned int (i.e., modulo (UINT_MAX + 1)) without negating it. */ if (modifier == L_('O') && !negative_number) { #ifdef _NL_CURRENT /* Get the locale specific alternate representation of the number. If none exist NULL is returned. */ const CHAR_T *cp = nl_get_alt_digit (u_number_value HELPER_LOCALE_ARG); if (cp != NULL) { size_t digitlen = STRLEN (cp); if (digitlen != 0) { cpy (digitlen, cp); break; } } #else goto underlying_strftime; #endif } bufp = buf + sizeof (buf) / sizeof (buf[0]); if (negative_number) u_number_value = - u_number_value; do { if (tz_colon_mask & 1) *--bufp = ':'; tz_colon_mask >>= 1; *--bufp = u_number_value % 10 + L_('0'); u_number_value /= 10; } while (u_number_value != 0 || tz_colon_mask != 0); do_number_sign_and_padding: if (pad == 0) pad = L_('0'); if (width < 0) width = digits; { CHAR_T sign_char = (negative_number ? L_('-') : always_output_a_sign ? L_('+') : 0); int numlen = buf + sizeof buf / sizeof buf[0] - bufp; int shortage = width - !!sign_char - numlen; int padding = pad == L_('-') || shortage <= 0 ? 0 : shortage; if (sign_char) { if (pad == L_('_')) { if (p) memset_space (p, padding); i += padding; width -= padding; } width_add1 (0, sign_char); width--; } cpy (numlen, bufp); } break; case L_('F'): if (modifier != 0) goto bad_format; if (pad == 0 && width < 0) { pad = L_('+'); subwidth = 4; } else { subwidth = width - 6; if (subwidth < 0) subwidth = 0; } subfmt = L_("%Y-%m-%d"); goto subformat_width; case L_('H'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, tp->tm_hour); case L_('I'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, hour12); case L_('k'): /* GNU extension. */ if (modifier == L_('E')) goto bad_format; DO_NUMBER_SPACEPAD (2, tp->tm_hour); case L_('l'): /* GNU extension. */ if (modifier == L_('E')) goto bad_format; DO_NUMBER_SPACEPAD (2, hour12); case L_('j'): if (modifier == L_('E')) goto bad_format; DO_SIGNED_NUMBER (3, tp->tm_yday < -1, tp->tm_yday + 1U); case L_('M'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, tp->tm_min); case L_('m'): if (modifier == L_('E')) goto bad_format; DO_SIGNED_NUMBER (2, tp->tm_mon < -1, tp->tm_mon + 1U); #ifndef _LIBC case L_('N'): /* GNU extension. */ if (modifier == L_('E')) goto bad_format; { int n = ns, ns_digits = 9; if (width <= 0) width = ns_digits; int ndigs = ns_digits; while (width < ndigs || (1 < ndigs && n % 10 == 0)) ndigs--, n /= 10; for (int j = ndigs; 0 < j; j--) buf[j - 1] = n % 10 + L_('0'), n /= 10; if (!pad) pad = L_('0'); width_cpy (0, ndigs, buf); width_add (width - ndigs, 0, (void) 0); } break; #endif case L_('n'): add1 (L_('\n')); break; case L_('P'): to_lowcase = true; #ifndef _NL_CURRENT format_char = L_('p'); #endif FALLTHROUGH; case L_('p'): if (change_case) { to_uppcase = false; to_lowcase = true; } #ifdef _NL_CURRENT cpy (ap_len, ampm); break; #else goto underlying_strftime; #endif case L_('q'): /* GNU extension. */ DO_SIGNED_NUMBER (1, false, ((tp->tm_mon * 11) >> 5) + 1); case L_('R'): subfmt = L_("%H:%M"); goto subformat; case L_('r'): #ifdef _NL_CURRENT if (*(subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(T_FMT_AMPM))) == L_('\0')) subfmt = L_("%I:%M:%S %p"); goto subformat; #else goto underlying_strftime; #endif case L_('S'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, tp->tm_sec); case L_('s'): /* GNU extension. */ { struct tm ltm; time_t t; ltm = *tp; ltm.tm_yday = -1; t = mktime_z (tz, <m); if (ltm.tm_yday < 0) { errno = EOVERFLOW; return 0; } /* Generate string value for T using time_t arithmetic; this works even if sizeof (long) < sizeof (time_t). */ bufp = buf + sizeof (buf) / sizeof (buf[0]); negative_number = t < 0; do { int d = t % 10; t /= 10; *--bufp = (negative_number ? -d : d) + L_('0'); } while (t != 0); digits = 1; always_output_a_sign = false; goto do_number_sign_and_padding; } case L_('X'): if (modifier == L_('O')) goto bad_format; #ifdef _NL_CURRENT if (! (modifier == L_('E') && (*(subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ERA_T_FMT))) != L_('\0')))) subfmt = (const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(T_FMT)); goto subformat; #else goto underlying_strftime; #endif case L_('T'): subfmt = L_("%H:%M:%S"); goto subformat; case L_('t'): add1 (L_('\t')); break; case L_('u'): DO_NUMBER (1, (tp->tm_wday - 1 + 7) % 7 + 1); case L_('U'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, (tp->tm_yday - tp->tm_wday + 7) / 7); case L_('V'): case L_('g'): case L_('G'): if (modifier == L_('E')) goto bad_format; { /* YEAR is a leap year if and only if (tp->tm_year + TM_YEAR_BASE) is a leap year, except that YEAR and YEAR - 1 both work correctly even when (tp->tm_year + TM_YEAR_BASE) would overflow. */ int year = (tp->tm_year + (tp->tm_year < 0 ? TM_YEAR_BASE % 400 : TM_YEAR_BASE % 400 - 400)); int year_adjust = 0; int days = iso_week_days (tp->tm_yday, tp->tm_wday); if (days < 0) { /* This ISO week belongs to the previous year. */ year_adjust = -1; days = iso_week_days (tp->tm_yday + (365 + __isleap (year - 1)), tp->tm_wday); } else { int d = iso_week_days (tp->tm_yday - (365 + __isleap (year)), tp->tm_wday); if (0 <= d) { /* This ISO week belongs to the next year. */ year_adjust = 1; days = d; } } switch (*f) { case L_('g'): { int yy = (tp->tm_year % 100 + year_adjust) % 100; DO_YEARISH (2, false, (0 <= yy ? yy : tp->tm_year < -TM_YEAR_BASE - year_adjust ? -yy : yy + 100)); } case L_('G'): DO_YEARISH (4, tp->tm_year < -TM_YEAR_BASE - year_adjust, (tp->tm_year + (unsigned int) TM_YEAR_BASE + year_adjust)); default: DO_NUMBER (2, days / 7 + 1); } } case L_('W'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (2, (tp->tm_yday - (tp->tm_wday - 1 + 7) % 7 + 7) / 7); case L_('w'): if (modifier == L_('E')) goto bad_format; DO_NUMBER (1, tp->tm_wday); case L_('Y'): if (modifier == L_('E')) { #if HAVE_STRUCT_ERA_ENTRY struct era_entry *era = _nl_get_era_entry (tp HELPER_LOCALE_ARG); if (era) { # ifdef COMPILE_WIDE subfmt = era->era_wformat; # else subfmt = era->era_format; # endif if (pad == 0) pad = yr_spec; goto subformat; } #else goto underlying_strftime; #endif } if (modifier == L_('O')) goto bad_format; DO_YEARISH (4, tp->tm_year < -TM_YEAR_BASE, tp->tm_year + (unsigned int) TM_YEAR_BASE); case L_('y'): if (modifier == L_('E')) { #if HAVE_STRUCT_ERA_ENTRY struct era_entry *era = _nl_get_era_entry (tp HELPER_LOCALE_ARG); if (era) { int delta = tp->tm_year - era->start_date[0]; if (pad == 0) pad = yr_spec; DO_NUMBER (2, (era->offset + delta * era->absolute_direction)); } #else goto underlying_strftime; #endif } { int yy = tp->tm_year % 100; if (yy < 0) yy = tp->tm_year < - TM_YEAR_BASE ? -yy : yy + 100; DO_YEARISH (2, false, yy); } case L_('Z'): if (change_case) { to_uppcase = false; to_lowcase = true; } #ifdef COMPILE_WIDE { /* The zone string is always given in multibyte form. We have to transform it first. */ wchar_t *wczone; size_t len; widen (zone, wczone, len); cpy (len, wczone); } #else cpy (strlen (zone), zone); #endif break; case L_(':'): /* :, ::, and ::: are valid only just before 'z'. :::: etc. are rejected later. */ for (colons = 1; f[colons] == L_(':'); colons++) continue; if (f[colons] != L_('z')) goto bad_format; f += colons; goto do_z_conversion; case L_('z'): colons = 0; do_z_conversion: if (tp->tm_isdst < 0) break; { int diff; int hour_diff; int min_diff; int sec_diff; #if HAVE_TM_GMTOFF diff = tp->tm_gmtoff; #else if (!tz) diff = 0; else { struct tm gtm; struct tm ltm; time_t lt; /* POSIX.1 requires that local time zone information be used as though strftime called tzset. */ # ifndef my_strftime if (!*tzset_called) { tzset (); *tzset_called = true; } # endif ltm = *tp; ltm.tm_wday = -1; lt = mktime_z (tz, <m); if (ltm.tm_wday < 0 || ! localtime_rz (0, <, >m)) break; diff = tm_diff (<m, >m); } #endif negative_number = diff < 0 || (diff == 0 && *zone == '-'); hour_diff = diff / 60 / 60; min_diff = diff / 60 % 60; sec_diff = diff % 60; switch (colons) { case 0: /* +hhmm */ DO_TZ_OFFSET (5, 0, hour_diff * 100 + min_diff); case 1: tz_hh_mm: /* +hh:mm */ DO_TZ_OFFSET (6, 04, hour_diff * 100 + min_diff); case 2: tz_hh_mm_ss: /* +hh:mm:ss */ DO_TZ_OFFSET (9, 024, hour_diff * 10000 + min_diff * 100 + sec_diff); case 3: /* +hh if possible, else +hh:mm, else +hh:mm:ss */ if (sec_diff != 0) goto tz_hh_mm_ss; if (min_diff != 0) goto tz_hh_mm; DO_TZ_OFFSET (3, 0, hour_diff); default: goto bad_format; } } case L_('\0'): /* GNU extension: % at end of format. */ bad_percent: --f; FALLTHROUGH; default: /* Unknown format; output the format, including the '%', since this is most likely the right thing to do if a multibyte string has been misparsed. */ bad_format: cpy (f - percent + 1, percent); break; } } #if ! FPRINTFTIME if (p && maxsize != 0) *p = L_('\0'); #endif errno = saved_errno; return i; } shishi-1.0.3/lib/gl/free.c0000644000000000000000000000277214273615122012141 00000000000000/* Make free() preserve errno. Copyright (C) 2003, 2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Paul Eggert */ #include /* Specification. */ #include /* A function definition is only needed if HAVE_FREE_POSIX is not defined. */ #if !HAVE_FREE_POSIX # include void rpl_free (void *p) # undef free { # if defined __GNUC__ && !defined __clang__ /* An invalid GCC optimization would optimize away the assignments in the code below, when link-time optimization (LTO) is enabled. Make the code more complicated, so that GCC does not grok how to optimize it. */ int err[2]; err[0] = errno; err[1] = errno; errno = 0; free (p); errno = err[errno == 0]; # else int err = errno; free (p); errno = err; # endif } #endif shishi-1.0.3/lib/gl/sys_uio.in.h0000644000000000000000000000323614273615123013321 00000000000000/* Substitute for . Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ # if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ # endif @PRAGMA_COLUMNS@ #ifndef _@GUARD_PREFIX@_SYS_UIO_H #if @HAVE_SYS_UIO_H@ /* On OpenBSD 4.4, assumes prior inclusion of . */ # include /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_SYS_UIO_H@ #endif #ifndef _@GUARD_PREFIX@_SYS_UIO_H #define _@GUARD_PREFIX@_SYS_UIO_H #if !@HAVE_SYS_UIO_H@ /* A platform that lacks . */ /* Get 'size_t' and 'ssize_t'. */ # include # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_struct_iovec /* All known platforms that lack also lack any declaration of struct iovec in any other header. */ struct iovec { void *iov_base; size_t iov_len; }; # define GNULIB_defined_struct_iovec 1 # endif # ifdef __cplusplus } # endif #endif #endif /* _@GUARD_PREFIX@_SYS_UIO_H */ #endif /* _@GUARD_PREFIX@_SYS_UIO_H */ shishi-1.0.3/lib/gl/stat-w32.h0000644000000000000000000000310714273615123012603 00000000000000/* Core of implementation of fstat and stat for native Windows. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _STAT_W32_H #define _STAT_W32_H 1 /* Converts a FILETIME to GMT time since 1970-01-01 00:00:00. */ #if _GL_WINDOWS_STAT_TIMESPEC extern struct timespec _gl_convert_FILETIME_to_timespec (const FILETIME *ft); #else extern time_t _gl_convert_FILETIME_to_POSIX (const FILETIME *ft); #endif /* Fill *BUF with information about the file designated by H. PATH is the file name, if known, otherwise NULL. Return 0 if successful, or -1 with errno set upon failure. */ extern int _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf); /* Bitmasks for st_mode. */ #define S_IREAD_UGO (_S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6)) #define S_IWRITE_UGO (_S_IWRITE | (_S_IWRITE >> 3) | (_S_IWRITE >> 6)) #define S_IEXEC_UGO (_S_IEXEC | (_S_IEXEC >> 3) | (_S_IEXEC >> 6)) #endif /* _STAT_W32_H */ shishi-1.0.3/lib/gl/strdup.c0000644000000000000000000000253214273615123012534 00000000000000/* Copyright (C) 1991, 1996-1998, 2002-2004, 2006-2007, 2009-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBC # include #endif /* Get specification. */ #include #include #undef __strdup #ifdef _LIBC # undef strdup #endif #ifndef weak_alias # define __strdup strdup #endif /* Duplicate S, returning an identical malloc'd string. */ char * __strdup (const char *s) { size_t len = strlen (s) + 1; void *new = malloc (len); if (new == NULL) return NULL; return (char *) memcpy (new, s, len); } #ifdef libc_hidden_def libc_hidden_def (__strdup) #endif #ifdef weak_alias weak_alias (__strdup, strdup) #endif shishi-1.0.3/lib/gl/read-file.h0000644000000000000000000000254414273615123013053 00000000000000/* read-file.h -- read file contents into a string Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef READ_FILE_H #define READ_FILE_H /* Get size_t, free(). */ #include /* Get FILE. */ #include /* Indicate that the file is treated as binary. */ #define RF_BINARY 0x1 /* Indicate that the file content contains sensitive information. */ #define RF_SENSITIVE 0x2 extern char *fread_file (FILE * stream, int flags, size_t * length) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; extern char *read_file (const char *filename, int flags, size_t * length) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; #endif /* READ_FILE_H */ shishi-1.0.3/lib/gl/Makefile.in0000644000000000000000000122314214273615655013131 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: # gnulib-tool --import --local-dir=lib/gl \ # --lib=libgnu \ # --source-base=lib/gl \ # --m4-base=lib/gl/m4 \ # --doc-base=doc \ # --tests-base=lib/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=libgl \ # --avoid=xalloc-die \ # areadlink \ # arpa_inet \ # base64 \ # bind \ # close \ # connect \ # crc \ # crypto/arcfour \ # crypto/gc-des \ # crypto/gc-hmac-md5 \ # crypto/gc-hmac-sha1 \ # crypto/gc-md4 \ # crypto/gc-md5 \ # crypto/gc-pbkdf2-sha1 \ # crypto/gc-random \ # fcntl \ # getaddrinfo \ # getline \ # getpass \ # getsubopt \ # minmax \ # netinet_in \ # parse-datetime \ # read-file \ # recvfrom \ # select \ # sendto \ # shutdown \ # signal \ # socket \ # sockets \ # socklen \ # stat \ # stdint \ # strcase \ # strerror \ # strndup \ # strtok_r \ # strverscmp \ # sys_select \ # sys_socket \ # sys_stat \ # sys_time \ # time \ # timegm \ # unistd \ # vasnprintf \ # vasprintf \ # xalloc \ # xgetdomainname \ # xgethostname \ # xstrndup \ # xvasprintf VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @GL_COND_OBJ_BIND_TRUE@am__append_1 = bind.c @GL_COND_OBJ_CLOSE_TRUE@am__append_2 = close.c @GL_COND_OBJ_CONNECT_TRUE@am__append_3 = connect.c @GL_COND_OBJ_GC_LIBGCRYPT_TRUE@am__append_4 = gc-libgcrypt.c @GL_COND_OBJ_GC_LIBGCRYPT_FALSE@am__append_5 = gc-gnulib.c @GL_COND_LIBTOOL_TRUE@am__append_6 = $(LTLIBGCRYPT) @GL_COND_OBJ_DUP2_TRUE@am__append_7 = dup2.c @GL_COND_OBJ_EXPLICIT_BZERO_TRUE@am__append_8 = explicit_bzero.c @GL_COND_OBJ_FCNTL_TRUE@am__append_9 = fcntl.c @GL_COND_OBJ_FFLUSH_TRUE@am__append_10 = fflush.c @GL_COND_OBJ_FLOAT_TRUE@am__append_11 = float.c @GL_COND_OBJ_ITOLD_TRUE@am__append_12 = itold.c @GL_COND_OBJ_FPURGE_TRUE@am__append_13 = fpurge.c @GL_COND_OBJ_FREE_TRUE@am__append_14 = free.c @GL_COND_OBJ_FSEEK_TRUE@am__append_15 = fseek.c @GL_COND_OBJ_FSEEKO_TRUE@am__append_16 = fseeko.c @GL_COND_OBJ_FSTAT_TRUE@am__append_17 = fstat.c @GL_COND_OBJ_FTELL_TRUE@am__append_18 = ftell.c @GL_COND_OBJ_FTELLO_TRUE@am__append_19 = ftello.c @GL_COND_OBJ_GETADDRINFO_TRUE@am__append_20 = getaddrinfo.c @GL_COND_OBJ_GAI_STRERROR_TRUE@am__append_21 = gai_strerror.c @GL_COND_OBJ_GETDELIM_TRUE@am__append_22 = getdelim.c @GL_COND_OBJ_GETDOMAINNAME_TRUE@am__append_23 = getdomainname.c @GL_COND_OBJ_GETDTABLESIZE_TRUE@am__append_24 = getdtablesize.c @GL_COND_OBJ_GETHOSTNAME_TRUE@am__append_25 = gethostname.c @GL_COND_OBJ_GETLINE_TRUE@am__append_26 = getline.c @GL_COND_OBJ_GETPEERNAME_TRUE@am__append_27 = getpeername.c @GL_COND_OBJ_GETRANDOM_TRUE@am__append_28 = getrandom.c @GL_COND_OBJ_GETSUBOPT_TRUE@am__append_29 = getsubopt.c @GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__append_30 = gettimeofday.c @GL_COND_OBJ_INET_NTOP_TRUE@am__append_31 = inet_ntop.c @GL_COND_OBJ_LSEEK_TRUE@am__append_32 = lseek.c @GL_COND_OBJ_MEMCHR_TRUE@am__append_33 = memchr.c @GL_COND_OBJ_MSVC_INVAL_TRUE@am__append_34 = msvc-inval.c @GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__append_35 = msvc-nothrow.c @GL_COND_OBJ_OPEN_TRUE@am__append_36 = open.c @GL_COND_OBJ_RAWMEMCHR_TRUE@am__append_37 = rawmemchr.c @GL_COND_OBJ_READLINK_TRUE@am__append_38 = readlink.c @GL_COND_OBJ_REALLOCARRAY_TRUE@am__append_39 = reallocarray.c @GL_COND_OBJ_RECVFROM_TRUE@am__append_40 = recvfrom.c @GL_COND_OBJ_SELECT_TRUE@am__append_41 = select.c @GL_COND_OBJ_SENDTO_TRUE@am__append_42 = sendto.c @GL_COND_OBJ_SETENV_TRUE@am__append_43 = setenv.c @GL_COND_OBJ_SHUTDOWN_TRUE@am__append_44 = shutdown.c @GL_COND_OBJ_SOCKET_TRUE@am__append_45 = socket.c @GL_COND_OBJ_STAT_TRUE@am__append_46 = stat.c @GL_COND_OBJ_STDIO_READ_TRUE@am__append_47 = stdio-read.c @GL_COND_OBJ_STDIO_WRITE_TRUE@am__append_48 = stdio-write.c @GL_COND_OBJ_STRCASECMP_TRUE@am__append_49 = strcasecmp.c @GL_COND_OBJ_STRNCASECMP_TRUE@am__append_50 = strncasecmp.c @GL_COND_OBJ_STRCHRNUL_TRUE@am__append_51 = strchrnul.c @GL_COND_OBJ_STRDUP_TRUE@am__append_52 = strdup.c @GL_COND_OBJ_STRERROR_TRUE@am__append_53 = strerror.c @GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__append_54 = strerror-override.c @GL_COND_OBJ_STRNDUP_TRUE@am__append_55 = strndup.c @GL_COND_OBJ_STRNLEN_TRUE@am__append_56 = strnlen.c @GL_COND_OBJ_STRTOK_R_TRUE@am__append_57 = strtok_r.c @GL_COND_OBJ_STRVERSCMP_TRUE@am__append_58 = strverscmp.c @GL_COND_OBJ_TIME_R_TRUE@am__append_59 = time_r.c @GL_COND_OBJ_TIME_RZ_TRUE@am__append_60 = time_rz.c @GL_COND_OBJ_TIMEGM_TRUE@am__append_61 = timegm.c @GL_COND_OBJ_TZSET_TRUE@am__append_62 = tzset.c @GL_COND_OBJ_UNSETENV_TRUE@am__append_63 = unsetenv.c subdir = lib/gl ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = am__libgnu_la_SOURCES_DIST = allocator.c areadlink.c base64.h base64.c \ bind.c c-ctype.h c-ctype.c careadlinkat.c cloexec.c close.c \ connect.c crc.c af_alg.c arcfour.c des.c gc-libgcrypt.c \ gc-gnulib.c md5.h gc-pbkdf2.c gc-pbkdf2-sha1.c hmac-md5.c \ hmac-sha1.c md4-stream.c md4.c md5-stream.c md5.c \ sha1-stream.c sha1.c dup2.c explicit_bzero.c fcntl.c fd-hook.c \ fflush.c float.c itold.c fpurge.c freading.c free.c fseek.c \ fseeko.c fstat.c ftell.c ftello.c getaddrinfo.c gai_strerror.c \ getdelim.c getdomainname.c getdtablesize.c gethostname.c \ getline.c getpeername.c getrandom.c getsubopt.c gettext.h \ gettime.c gettimeofday.c ialloc.c idx.h inet_ntop.c lseek.c \ malloca.c memchr.c memxor.c minmax.h msvc-inval.c \ msvc-nothrow.c nstrftime.c open.c parse-datetime.y rawmemchr.c \ read-file.c readlink.c reallocarray.c recvfrom.c select.c \ sendto.c setenv.c shutdown.c size_max.h socket.c sockets.h \ sockets.c stat.c stat-time.c stdio-read.c stdio-write.c \ strcasecmp.c strncasecmp.c strchrnul.c strdup.c strerror.c \ strerror-override.c strndup.c strnlen.c strtok_r.c \ strverscmp.c sys_socket.c time_r.c time_rz.c timegm.c \ timespec.c tzset.c unistd.c unsetenv.c xmalloc.c \ xgetdomainname.h xgetdomainname.c xgethostname.h \ xgethostname.c xsize.h xsize.c xstrndup.h xstrndup.c \ xvasprintf.h xvasprintf.c xasprintf.c @GL_COND_OBJ_BIND_TRUE@am__objects_1 = libgnu_la-bind.lo @GL_COND_OBJ_CLOSE_TRUE@am__objects_2 = libgnu_la-close.lo @GL_COND_OBJ_CONNECT_TRUE@am__objects_3 = libgnu_la-connect.lo @GL_COND_OBJ_GC_LIBGCRYPT_TRUE@am__objects_4 = \ @GL_COND_OBJ_GC_LIBGCRYPT_TRUE@ libgnu_la-gc-libgcrypt.lo @GL_COND_OBJ_GC_LIBGCRYPT_FALSE@am__objects_5 = \ @GL_COND_OBJ_GC_LIBGCRYPT_FALSE@ libgnu_la-gc-gnulib.lo @GL_COND_OBJ_DUP2_TRUE@am__objects_6 = libgnu_la-dup2.lo @GL_COND_OBJ_EXPLICIT_BZERO_TRUE@am__objects_7 = \ @GL_COND_OBJ_EXPLICIT_BZERO_TRUE@ libgnu_la-explicit_bzero.lo @GL_COND_OBJ_FCNTL_TRUE@am__objects_8 = libgnu_la-fcntl.lo @GL_COND_OBJ_FFLUSH_TRUE@am__objects_9 = libgnu_la-fflush.lo @GL_COND_OBJ_FLOAT_TRUE@am__objects_10 = libgnu_la-float.lo @GL_COND_OBJ_ITOLD_TRUE@am__objects_11 = libgnu_la-itold.lo @GL_COND_OBJ_FPURGE_TRUE@am__objects_12 = libgnu_la-fpurge.lo @GL_COND_OBJ_FREE_TRUE@am__objects_13 = libgnu_la-free.lo @GL_COND_OBJ_FSEEK_TRUE@am__objects_14 = libgnu_la-fseek.lo @GL_COND_OBJ_FSEEKO_TRUE@am__objects_15 = libgnu_la-fseeko.lo @GL_COND_OBJ_FSTAT_TRUE@am__objects_16 = libgnu_la-fstat.lo @GL_COND_OBJ_FTELL_TRUE@am__objects_17 = libgnu_la-ftell.lo @GL_COND_OBJ_FTELLO_TRUE@am__objects_18 = libgnu_la-ftello.lo @GL_COND_OBJ_GETADDRINFO_TRUE@am__objects_19 = \ @GL_COND_OBJ_GETADDRINFO_TRUE@ libgnu_la-getaddrinfo.lo @GL_COND_OBJ_GAI_STRERROR_TRUE@am__objects_20 = \ @GL_COND_OBJ_GAI_STRERROR_TRUE@ libgnu_la-gai_strerror.lo @GL_COND_OBJ_GETDELIM_TRUE@am__objects_21 = libgnu_la-getdelim.lo @GL_COND_OBJ_GETDOMAINNAME_TRUE@am__objects_22 = \ @GL_COND_OBJ_GETDOMAINNAME_TRUE@ libgnu_la-getdomainname.lo @GL_COND_OBJ_GETDTABLESIZE_TRUE@am__objects_23 = \ @GL_COND_OBJ_GETDTABLESIZE_TRUE@ libgnu_la-getdtablesize.lo @GL_COND_OBJ_GETHOSTNAME_TRUE@am__objects_24 = \ @GL_COND_OBJ_GETHOSTNAME_TRUE@ libgnu_la-gethostname.lo @GL_COND_OBJ_GETLINE_TRUE@am__objects_25 = libgnu_la-getline.lo @GL_COND_OBJ_GETPEERNAME_TRUE@am__objects_26 = \ @GL_COND_OBJ_GETPEERNAME_TRUE@ libgnu_la-getpeername.lo @GL_COND_OBJ_GETRANDOM_TRUE@am__objects_27 = libgnu_la-getrandom.lo @GL_COND_OBJ_GETSUBOPT_TRUE@am__objects_28 = libgnu_la-getsubopt.lo @GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__objects_29 = \ @GL_COND_OBJ_GETTIMEOFDAY_TRUE@ libgnu_la-gettimeofday.lo @GL_COND_OBJ_INET_NTOP_TRUE@am__objects_30 = libgnu_la-inet_ntop.lo @GL_COND_OBJ_LSEEK_TRUE@am__objects_31 = libgnu_la-lseek.lo @GL_COND_OBJ_MEMCHR_TRUE@am__objects_32 = libgnu_la-memchr.lo @GL_COND_OBJ_MSVC_INVAL_TRUE@am__objects_33 = libgnu_la-msvc-inval.lo @GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__objects_34 = \ @GL_COND_OBJ_MSVC_NOTHROW_TRUE@ libgnu_la-msvc-nothrow.lo @GL_COND_OBJ_OPEN_TRUE@am__objects_35 = libgnu_la-open.lo @GL_COND_OBJ_RAWMEMCHR_TRUE@am__objects_36 = libgnu_la-rawmemchr.lo @GL_COND_OBJ_READLINK_TRUE@am__objects_37 = libgnu_la-readlink.lo @GL_COND_OBJ_REALLOCARRAY_TRUE@am__objects_38 = \ @GL_COND_OBJ_REALLOCARRAY_TRUE@ libgnu_la-reallocarray.lo @GL_COND_OBJ_RECVFROM_TRUE@am__objects_39 = libgnu_la-recvfrom.lo @GL_COND_OBJ_SELECT_TRUE@am__objects_40 = libgnu_la-select.lo @GL_COND_OBJ_SENDTO_TRUE@am__objects_41 = libgnu_la-sendto.lo @GL_COND_OBJ_SETENV_TRUE@am__objects_42 = libgnu_la-setenv.lo @GL_COND_OBJ_SHUTDOWN_TRUE@am__objects_43 = libgnu_la-shutdown.lo @GL_COND_OBJ_SOCKET_TRUE@am__objects_44 = libgnu_la-socket.lo @GL_COND_OBJ_STAT_TRUE@am__objects_45 = libgnu_la-stat.lo @GL_COND_OBJ_STDIO_READ_TRUE@am__objects_46 = libgnu_la-stdio-read.lo @GL_COND_OBJ_STDIO_WRITE_TRUE@am__objects_47 = \ @GL_COND_OBJ_STDIO_WRITE_TRUE@ libgnu_la-stdio-write.lo @GL_COND_OBJ_STRCASECMP_TRUE@am__objects_48 = libgnu_la-strcasecmp.lo @GL_COND_OBJ_STRNCASECMP_TRUE@am__objects_49 = \ @GL_COND_OBJ_STRNCASECMP_TRUE@ libgnu_la-strncasecmp.lo @GL_COND_OBJ_STRCHRNUL_TRUE@am__objects_50 = libgnu_la-strchrnul.lo @GL_COND_OBJ_STRDUP_TRUE@am__objects_51 = libgnu_la-strdup.lo @GL_COND_OBJ_STRERROR_TRUE@am__objects_52 = libgnu_la-strerror.lo @GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__objects_53 = libgnu_la-strerror-override.lo @GL_COND_OBJ_STRNDUP_TRUE@am__objects_54 = libgnu_la-strndup.lo @GL_COND_OBJ_STRNLEN_TRUE@am__objects_55 = libgnu_la-strnlen.lo @GL_COND_OBJ_STRTOK_R_TRUE@am__objects_56 = libgnu_la-strtok_r.lo @GL_COND_OBJ_STRVERSCMP_TRUE@am__objects_57 = libgnu_la-strverscmp.lo @GL_COND_OBJ_TIME_R_TRUE@am__objects_58 = libgnu_la-time_r.lo @GL_COND_OBJ_TIME_RZ_TRUE@am__objects_59 = libgnu_la-time_rz.lo @GL_COND_OBJ_TIMEGM_TRUE@am__objects_60 = libgnu_la-timegm.lo @GL_COND_OBJ_TZSET_TRUE@am__objects_61 = libgnu_la-tzset.lo @GL_COND_OBJ_UNSETENV_TRUE@am__objects_62 = libgnu_la-unsetenv.lo am_libgnu_la_OBJECTS = libgnu_la-allocator.lo libgnu_la-areadlink.lo \ libgnu_la-base64.lo $(am__objects_1) libgnu_la-c-ctype.lo \ libgnu_la-careadlinkat.lo libgnu_la-cloexec.lo \ $(am__objects_2) $(am__objects_3) libgnu_la-crc.lo \ libgnu_la-af_alg.lo libgnu_la-arcfour.lo libgnu_la-des.lo \ $(am__objects_4) $(am__objects_5) libgnu_la-gc-pbkdf2.lo \ libgnu_la-gc-pbkdf2-sha1.lo libgnu_la-hmac-md5.lo \ libgnu_la-hmac-sha1.lo libgnu_la-md4-stream.lo \ libgnu_la-md4.lo libgnu_la-md5-stream.lo libgnu_la-md5.lo \ libgnu_la-sha1-stream.lo libgnu_la-sha1.lo $(am__objects_6) \ $(am__objects_7) $(am__objects_8) libgnu_la-fd-hook.lo \ $(am__objects_9) $(am__objects_10) $(am__objects_11) \ $(am__objects_12) libgnu_la-freading.lo $(am__objects_13) \ $(am__objects_14) $(am__objects_15) $(am__objects_16) \ $(am__objects_17) $(am__objects_18) $(am__objects_19) \ $(am__objects_20) $(am__objects_21) $(am__objects_22) \ $(am__objects_23) $(am__objects_24) $(am__objects_25) \ $(am__objects_26) $(am__objects_27) $(am__objects_28) \ libgnu_la-gettime.lo $(am__objects_29) libgnu_la-ialloc.lo \ $(am__objects_30) $(am__objects_31) libgnu_la-malloca.lo \ $(am__objects_32) libgnu_la-memxor.lo $(am__objects_33) \ $(am__objects_34) libgnu_la-nstrftime.lo $(am__objects_35) \ libgnu_la-parse-datetime.lo $(am__objects_36) \ libgnu_la-read-file.lo $(am__objects_37) $(am__objects_38) \ $(am__objects_39) $(am__objects_40) $(am__objects_41) \ $(am__objects_42) $(am__objects_43) $(am__objects_44) \ libgnu_la-sockets.lo $(am__objects_45) libgnu_la-stat-time.lo \ $(am__objects_46) $(am__objects_47) $(am__objects_48) \ $(am__objects_49) $(am__objects_50) $(am__objects_51) \ $(am__objects_52) $(am__objects_53) $(am__objects_54) \ $(am__objects_55) $(am__objects_56) $(am__objects_57) \ libgnu_la-sys_socket.lo $(am__objects_58) $(am__objects_59) \ $(am__objects_60) libgnu_la-timespec.lo $(am__objects_61) \ libgnu_la-unistd.lo $(am__objects_62) libgnu_la-xmalloc.lo \ libgnu_la-xgetdomainname.lo libgnu_la-xgethostname.lo \ libgnu_la-xsize.lo libgnu_la-xstrndup.lo \ libgnu_la-xvasprintf.lo libgnu_la-xasprintf.lo libgnu_la_OBJECTS = $(am_libgnu_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libgnu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libgnu_la_CFLAGS) \ $(CFLAGS) $(libgnu_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/alloca.Plo \ ./$(DEPDIR)/libgnu_la-af_alg.Plo \ ./$(DEPDIR)/libgnu_la-alloca.Plo \ ./$(DEPDIR)/libgnu_la-allocator.Plo \ ./$(DEPDIR)/libgnu_la-arcfour.Plo \ ./$(DEPDIR)/libgnu_la-areadlink.Plo \ ./$(DEPDIR)/libgnu_la-asnprintf.Plo \ ./$(DEPDIR)/libgnu_la-asprintf.Plo \ ./$(DEPDIR)/libgnu_la-base64.Plo \ ./$(DEPDIR)/libgnu_la-bind.Plo \ ./$(DEPDIR)/libgnu_la-c-ctype.Plo \ ./$(DEPDIR)/libgnu_la-calloc.Plo \ ./$(DEPDIR)/libgnu_la-careadlinkat.Plo \ ./$(DEPDIR)/libgnu_la-cloexec.Plo \ ./$(DEPDIR)/libgnu_la-close.Plo \ ./$(DEPDIR)/libgnu_la-connect.Plo \ ./$(DEPDIR)/libgnu_la-crc.Plo ./$(DEPDIR)/libgnu_la-des.Plo \ ./$(DEPDIR)/libgnu_la-dup2.Plo \ ./$(DEPDIR)/libgnu_la-explicit_bzero.Plo \ ./$(DEPDIR)/libgnu_la-fcntl.Plo \ ./$(DEPDIR)/libgnu_la-fd-hook.Plo \ ./$(DEPDIR)/libgnu_la-fflush.Plo \ ./$(DEPDIR)/libgnu_la-float.Plo \ ./$(DEPDIR)/libgnu_la-fopen.Plo \ ./$(DEPDIR)/libgnu_la-fpurge.Plo \ ./$(DEPDIR)/libgnu_la-freading.Plo \ ./$(DEPDIR)/libgnu_la-free.Plo ./$(DEPDIR)/libgnu_la-fseek.Plo \ ./$(DEPDIR)/libgnu_la-fseeko.Plo \ ./$(DEPDIR)/libgnu_la-fstat.Plo \ ./$(DEPDIR)/libgnu_la-ftell.Plo \ ./$(DEPDIR)/libgnu_la-ftello.Plo \ ./$(DEPDIR)/libgnu_la-gai_strerror.Plo \ ./$(DEPDIR)/libgnu_la-gc-gnulib.Plo \ ./$(DEPDIR)/libgnu_la-gc-libgcrypt.Plo \ ./$(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Plo \ ./$(DEPDIR)/libgnu_la-gc-pbkdf2.Plo \ ./$(DEPDIR)/libgnu_la-getaddrinfo.Plo \ ./$(DEPDIR)/libgnu_la-getdelim.Plo \ ./$(DEPDIR)/libgnu_la-getdomainname.Plo \ ./$(DEPDIR)/libgnu_la-getdtablesize.Plo \ ./$(DEPDIR)/libgnu_la-gethostname.Plo \ ./$(DEPDIR)/libgnu_la-getline.Plo \ ./$(DEPDIR)/libgnu_la-getpass.Plo \ ./$(DEPDIR)/libgnu_la-getpeername.Plo \ ./$(DEPDIR)/libgnu_la-getrandom.Plo \ ./$(DEPDIR)/libgnu_la-getsubopt.Plo \ ./$(DEPDIR)/libgnu_la-gettime.Plo \ ./$(DEPDIR)/libgnu_la-gettimeofday.Plo \ ./$(DEPDIR)/libgnu_la-hmac-md5.Plo \ ./$(DEPDIR)/libgnu_la-hmac-sha1.Plo \ ./$(DEPDIR)/libgnu_la-hmac.Plo \ ./$(DEPDIR)/libgnu_la-ialloc.Plo \ ./$(DEPDIR)/libgnu_la-inet_ntop.Plo \ ./$(DEPDIR)/libgnu_la-itold.Plo \ ./$(DEPDIR)/libgnu_la-lseek.Plo \ ./$(DEPDIR)/libgnu_la-malloc.Plo \ ./$(DEPDIR)/libgnu_la-malloca.Plo \ ./$(DEPDIR)/libgnu_la-md4-stream.Plo \ ./$(DEPDIR)/libgnu_la-md4.Plo \ ./$(DEPDIR)/libgnu_la-md5-stream.Plo \ ./$(DEPDIR)/libgnu_la-md5.Plo ./$(DEPDIR)/libgnu_la-memchr.Plo \ ./$(DEPDIR)/libgnu_la-memxor.Plo \ ./$(DEPDIR)/libgnu_la-mktime.Plo \ ./$(DEPDIR)/libgnu_la-msvc-inval.Plo \ ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo \ ./$(DEPDIR)/libgnu_la-nstrftime.Plo \ ./$(DEPDIR)/libgnu_la-open.Plo \ ./$(DEPDIR)/libgnu_la-parse-datetime.Plo \ ./$(DEPDIR)/libgnu_la-printf-args.Plo \ ./$(DEPDIR)/libgnu_la-printf-parse.Plo \ ./$(DEPDIR)/libgnu_la-rawmemchr.Plo \ ./$(DEPDIR)/libgnu_la-read-file.Plo \ ./$(DEPDIR)/libgnu_la-readlink.Plo \ ./$(DEPDIR)/libgnu_la-realloc.Plo \ ./$(DEPDIR)/libgnu_la-reallocarray.Plo \ ./$(DEPDIR)/libgnu_la-recvfrom.Plo \ ./$(DEPDIR)/libgnu_la-select.Plo \ ./$(DEPDIR)/libgnu_la-sendto.Plo \ ./$(DEPDIR)/libgnu_la-setenv.Plo \ ./$(DEPDIR)/libgnu_la-sha1-stream.Plo \ ./$(DEPDIR)/libgnu_la-sha1.Plo \ ./$(DEPDIR)/libgnu_la-shutdown.Plo \ ./$(DEPDIR)/libgnu_la-snprintf.Plo \ ./$(DEPDIR)/libgnu_la-socket.Plo \ ./$(DEPDIR)/libgnu_la-sockets.Plo \ ./$(DEPDIR)/libgnu_la-stat-time.Plo \ ./$(DEPDIR)/libgnu_la-stat-w32.Plo \ ./$(DEPDIR)/libgnu_la-stat.Plo \ ./$(DEPDIR)/libgnu_la-stdio-read.Plo \ ./$(DEPDIR)/libgnu_la-stdio-write.Plo \ ./$(DEPDIR)/libgnu_la-strcasecmp.Plo \ ./$(DEPDIR)/libgnu_la-strchrnul.Plo \ ./$(DEPDIR)/libgnu_la-strdup.Plo \ ./$(DEPDIR)/libgnu_la-strerror-override.Plo \ ./$(DEPDIR)/libgnu_la-strerror.Plo \ ./$(DEPDIR)/libgnu_la-strncasecmp.Plo \ ./$(DEPDIR)/libgnu_la-strndup.Plo \ ./$(DEPDIR)/libgnu_la-strnlen.Plo \ ./$(DEPDIR)/libgnu_la-strtok_r.Plo \ ./$(DEPDIR)/libgnu_la-strverscmp.Plo \ ./$(DEPDIR)/libgnu_la-sys_socket.Plo \ ./$(DEPDIR)/libgnu_la-time_r.Plo \ ./$(DEPDIR)/libgnu_la-time_rz.Plo \ ./$(DEPDIR)/libgnu_la-timegm.Plo \ ./$(DEPDIR)/libgnu_la-timespec.Plo \ ./$(DEPDIR)/libgnu_la-tzset.Plo \ ./$(DEPDIR)/libgnu_la-unistd.Plo \ ./$(DEPDIR)/libgnu_la-unsetenv.Plo \ ./$(DEPDIR)/libgnu_la-vasnprintf.Plo \ ./$(DEPDIR)/libgnu_la-vasprintf.Plo \ ./$(DEPDIR)/libgnu_la-xasprintf.Plo \ ./$(DEPDIR)/libgnu_la-xgetdomainname.Plo \ ./$(DEPDIR)/libgnu_la-xgethostname.Plo \ ./$(DEPDIR)/libgnu_la-xmalloc.Plo \ ./$(DEPDIR)/libgnu_la-xsize.Plo \ ./$(DEPDIR)/libgnu_la-xstrndup.Plo \ ./$(DEPDIR)/libgnu_la-xvasprintf.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \ -e s/c++$$/h++/ -e s/c$$/h/ YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) LTYACCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(YACC) $(AM_YFLAGS) $(YFLAGS) AM_V_YACC = $(am__v_YACC_@AM_V@) am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@) am__v_YACC_0 = @echo " YACC " $@; am__v_YACC_1 = YLWRAP = $(top_srcdir)/build-aux/ylwrap SOURCES = $(libgnu_la_SOURCES) $(EXTRA_libgnu_la_SOURCES) DIST_SOURCES = $(am__libgnu_la_SOURCES_DIST) \ $(EXTRA_libgnu_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp $(top_srcdir)/build-aux/ylwrap \ alloca.c parse-datetime.c DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.14 gnits SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = libgnu.la # No GNU Make output. EXTRA_DIST = m4/gnulib-cache.m4 alloca.c alloca.in.h allocator.h \ areadlink.h arpa_inet.in.h attribute.h w32sock.h byteswap.in.h \ calloc.c calloc.c careadlinkat.h cloexec.h w32sock.h crc.h \ af_alg.h sys-limits.h arcfour.h des.h gc.h hmac.c hmac.h \ hmac.c hmac.h md4.h gl_openssl.h md5.h gl_openssl.h sha1.h \ errno.in.h fcntl.in.h fd-hook.h stdio-impl.h filename.h \ flexmember.h float.in.h fopen.c fopen.c stdio-impl.h \ freading.h stdio-impl.h stdio-impl.h stat-w32.c stat-w32.h \ stdio-impl.h w32sock.h getpass.c getpass.h w32sock.h \ $(top_srcdir)/build-aux/config.rpath ialloc.h intprops.h \ inttypes.in.h cdefs.h libc-config.h limits.in.h malloc.c \ malloc.c malloca.h memchr.valgrind memxor.h mktime-internal.h \ mktime.c mktime-internal.h mktime.c msvc-inval.h \ msvc-nothrow.h netdb.in.h netinet_in.in.h strftime.h \ parse-datetime.c parse-datetime-gen.h parse-datetime.h \ pathmax.h rawmemchr.valgrind read-file.h realloc.c realloc.c \ w32sock.h w32sock.h w32sock.h signal.in.h _Noreturn.h \ arg-nonnull.h c++defs.h warn-on-use.h snprintf.c w32sock.h \ w32sock.h stat-w32.c stat-w32.h stat-time.h stdalign.in.h \ stdarg.in.h stdbool.in.h stddef.in.h stdint.in.h stdio.in.h \ stdlib.in.h strchrnul.valgrind strerror-override.h string.in.h \ strings.in.h sys_random.in.h sys_select.in.h sys_socket.in.h \ sys_stat.in.h sys_time.in.h sys_types.in.h sys_uio.in.h \ time.in.h time-internal.h mktime-internal.h timespec.h \ unistd.in.h asnprintf.c float+.h printf-args.c printf-args.h \ printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h \ asprintf.c vasprintf.c verify.h wchar.in.h xalloc.h \ xalloc-oversized.h xgetaname-impl.h xgetaname-impl.h xalloc.h # See the comments in bison.m4. BUILT_SOURCES = $(ALLOCA_H) arpa/inet.h $(BYTESWAP_H) $(ERRNO_H) \ fcntl.h $(FLOAT_H) inttypes.h $(LIMITS_H) netdb.h \ $(NETINET_IN_H) parse-datetime.c parse-datetime-gen.h signal.h \ $(STDALIGN_H) $(STDARG_H) $(STDBOOL_H) $(STDDEF_H) $(STDINT_H) \ stdio.h stdlib.h string.h strings.h sys/random.h sys/select.h \ sys/socket.h sys/stat.h sys/time.h sys/types.h sys/uio.h \ time.h unistd.h wchar.h SUFFIXES = MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t arpa/inet.h \ arpa/inet.h-t byteswap.h byteswap.h-t errno.h errno.h-t \ fcntl.h fcntl.h-t float.h float.h-t inttypes.h inttypes.h-t \ limits.h limits.h-t netdb.h netdb.h-t netinet/in.h \ netinet/in.h-t parse-datetime.tab.c parse-datetime.tab.h \ parse-datetime.c-tmp parse-datetime-gen.h-tmp signal.h \ signal.h-t stdalign.h stdalign.h-t stdarg.h stdarg.h-t \ stdbool.h stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t \ stdio.h stdio.h-t stdlib.h stdlib.h-t string.h string.h-t \ strings.h strings.h-t sys/random.h sys/random.h-t sys/select.h \ sys/select.h-t sys/socket.h sys/socket.h-t sys/stat.h \ sys/stat.h-t sys/time.h sys/time.h-t sys/types.h sys/types.h-t \ sys/uio.h sys/uio.h-t time.h time.h-t unistd.h unistd.h-t \ wchar.h wchar.h-t MOSTLYCLEANDIRS = arpa netinet sys sys sys sys sys CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = parse-datetime.c parse-datetime-gen.h AM_CPPFLAGS = AM_CFLAGS = libgnu_la_SOURCES = allocator.c areadlink.c base64.h base64.c \ $(am__append_1) c-ctype.h c-ctype.c careadlinkat.c cloexec.c \ $(am__append_2) $(am__append_3) crc.c af_alg.c arcfour.c des.c \ $(am__append_4) $(am__append_5) md5.h gc-pbkdf2.c \ gc-pbkdf2-sha1.c hmac-md5.c hmac-sha1.c md4-stream.c md4.c \ md5-stream.c md5.c sha1-stream.c sha1.c $(am__append_7) \ $(am__append_8) $(am__append_9) fd-hook.c $(am__append_10) \ $(am__append_11) $(am__append_12) $(am__append_13) freading.c \ $(am__append_14) $(am__append_15) $(am__append_16) \ $(am__append_17) $(am__append_18) $(am__append_19) \ $(am__append_20) $(am__append_21) $(am__append_22) \ $(am__append_23) $(am__append_24) $(am__append_25) \ $(am__append_26) $(am__append_27) $(am__append_28) \ $(am__append_29) gettext.h gettime.c $(am__append_30) ialloc.c \ idx.h $(am__append_31) $(am__append_32) malloca.c \ $(am__append_33) memxor.c minmax.h $(am__append_34) \ $(am__append_35) nstrftime.c $(am__append_36) parse-datetime.y \ $(am__append_37) read-file.c $(am__append_38) $(am__append_39) \ $(am__append_40) $(am__append_41) $(am__append_42) \ $(am__append_43) $(am__append_44) size_max.h $(am__append_45) \ sockets.h sockets.c $(am__append_46) stat-time.c \ $(am__append_47) $(am__append_48) $(am__append_49) \ $(am__append_50) $(am__append_51) $(am__append_52) \ $(am__append_53) $(am__append_54) $(am__append_55) \ $(am__append_56) $(am__append_57) $(am__append_58) \ sys_socket.c $(am__append_59) $(am__append_60) \ $(am__append_61) timespec.c $(am__append_62) unistd.c \ $(am__append_63) xmalloc.c xgetdomainname.h xgetdomainname.c \ xgethostname.h xgethostname.c xsize.h xsize.c xstrndup.h \ xstrndup.c xvasprintf.h xvasprintf.c xasprintf.c libgnu_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) libgnu_la_LIBADD = $(libgl_LTLIBOBJS) @LTALLOCA@ libgnu_la_DEPENDENCIES = $(libgl_LTLIBOBJS) @LTALLOCA@ EXTRA_libgnu_la_SOURCES = alloca.c calloc.c calloc.c hmac.c hmac.c \ fopen.c fopen.c stat-w32.c getpass.c malloc.c malloc.c \ mktime.c mktime.c realloc.c realloc.c snprintf.c stat-w32.c \ asnprintf.c printf-args.c printf-parse.c vasnprintf.c \ asprintf.c vasprintf.c libgnu_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(GETADDRINFO_LIB) \ $(GETHOSTNAME_LIB) $(HOSTENT_LIB) $(INET_NTOP_LIB) \ $(LIBSOCKET) $(LIB_CLOCK_GETTIME) $(LIB_CRYPTO) \ $(LIB_GETRANDOM) $(LIB_SELECT) $(LTLIBINTL) $(SERVENT_LIB) \ $(am__append_6) # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER) # In 'sed', replace the pattern space with a "DO NOT EDIT" comment. SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */, # '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT". SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G # '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading # "DO_NOT_EDIT". Although this could be done more simply via: # SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t # the -n and 'w' avoid a fork+exec, at least when GNU Make is used. SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t' # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that gl_V_at = $(AM_V_GEN) # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. _NORETURN_H = $(srcdir)/_Noreturn.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. ARG_NONNULL_H = $(srcdir)/arg-nonnull.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. CXXDEFS_H = $(srcdir)/c++defs.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. WARN_ON_USE_H = $(srcdir)/warn-on-use.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj .y $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits lib/gl/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnits lib/gl/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libgnu.la: $(libgnu_la_OBJECTS) $(libgnu_la_DEPENDENCIES) $(EXTRA_libgnu_la_DEPENDENCIES) $(AM_V_CCLD)$(libgnu_la_LINK) $(libgnu_la_OBJECTS) $(libgnu_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloca.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-af_alg.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-alloca.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-allocator.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-arcfour.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-areadlink.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-asnprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-asprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-base64.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-bind.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-c-ctype.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-calloc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-careadlinkat.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-cloexec.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-close.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-connect.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-crc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-des.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-dup2.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-explicit_bzero.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fcntl.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fd-hook.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fflush.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-float.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fopen.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fpurge.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-freading.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-free.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fseek.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fseeko.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fstat.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-ftell.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-ftello.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gai_strerror.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gc-gnulib.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gc-libgcrypt.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gc-pbkdf2.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getaddrinfo.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getdelim.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getdomainname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getdtablesize.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gethostname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getline.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getpass.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getpeername.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getrandom.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getsubopt.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gettime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-gettimeofday.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-hmac-md5.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-hmac-sha1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-hmac.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-ialloc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-inet_ntop.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-itold.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-lseek.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-malloc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-malloca.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-md4-stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-md4.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-md5-stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-md5.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-memchr.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-memxor.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-mktime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-msvc-inval.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-nstrftime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-open.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-parse-datetime.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-printf-args.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-printf-parse.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-rawmemchr.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-read-file.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-readlink.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-realloc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-reallocarray.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-recvfrom.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-select.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-sendto.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-setenv.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-sha1-stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-sha1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-shutdown.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-snprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-socket.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-sockets.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat-time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat-w32.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stdio-read.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stdio-write.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strcasecmp.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strchrnul.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strdup.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strerror-override.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strerror.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strncasecmp.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strndup.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strnlen.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strtok_r.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strverscmp.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-sys_socket.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-time_r.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-time_rz.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-timegm.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-timespec.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-tzset.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-unistd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-unsetenv.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-vasnprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-vasprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xasprintf.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xgetdomainname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xgethostname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xmalloc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xsize.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xstrndup.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-xvasprintf.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libgnu_la-allocator.lo: allocator.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-allocator.lo -MD -MP -MF $(DEPDIR)/libgnu_la-allocator.Tpo -c -o libgnu_la-allocator.lo `test -f 'allocator.c' || echo '$(srcdir)/'`allocator.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-allocator.Tpo $(DEPDIR)/libgnu_la-allocator.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='allocator.c' object='libgnu_la-allocator.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-allocator.lo `test -f 'allocator.c' || echo '$(srcdir)/'`allocator.c libgnu_la-areadlink.lo: areadlink.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-areadlink.lo -MD -MP -MF $(DEPDIR)/libgnu_la-areadlink.Tpo -c -o libgnu_la-areadlink.lo `test -f 'areadlink.c' || echo '$(srcdir)/'`areadlink.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-areadlink.Tpo $(DEPDIR)/libgnu_la-areadlink.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='areadlink.c' object='libgnu_la-areadlink.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-areadlink.lo `test -f 'areadlink.c' || echo '$(srcdir)/'`areadlink.c libgnu_la-base64.lo: base64.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-base64.lo -MD -MP -MF $(DEPDIR)/libgnu_la-base64.Tpo -c -o libgnu_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-base64.Tpo $(DEPDIR)/libgnu_la-base64.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='base64.c' object='libgnu_la-base64.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-base64.lo `test -f 'base64.c' || echo '$(srcdir)/'`base64.c libgnu_la-bind.lo: bind.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-bind.lo -MD -MP -MF $(DEPDIR)/libgnu_la-bind.Tpo -c -o libgnu_la-bind.lo `test -f 'bind.c' || echo '$(srcdir)/'`bind.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-bind.Tpo $(DEPDIR)/libgnu_la-bind.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bind.c' object='libgnu_la-bind.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-bind.lo `test -f 'bind.c' || echo '$(srcdir)/'`bind.c libgnu_la-c-ctype.lo: c-ctype.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-c-ctype.lo -MD -MP -MF $(DEPDIR)/libgnu_la-c-ctype.Tpo -c -o libgnu_la-c-ctype.lo `test -f 'c-ctype.c' || echo '$(srcdir)/'`c-ctype.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-c-ctype.Tpo $(DEPDIR)/libgnu_la-c-ctype.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='c-ctype.c' object='libgnu_la-c-ctype.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-c-ctype.lo `test -f 'c-ctype.c' || echo '$(srcdir)/'`c-ctype.c libgnu_la-careadlinkat.lo: careadlinkat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-careadlinkat.lo -MD -MP -MF $(DEPDIR)/libgnu_la-careadlinkat.Tpo -c -o libgnu_la-careadlinkat.lo `test -f 'careadlinkat.c' || echo '$(srcdir)/'`careadlinkat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-careadlinkat.Tpo $(DEPDIR)/libgnu_la-careadlinkat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='careadlinkat.c' object='libgnu_la-careadlinkat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-careadlinkat.lo `test -f 'careadlinkat.c' || echo '$(srcdir)/'`careadlinkat.c libgnu_la-cloexec.lo: cloexec.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-cloexec.lo -MD -MP -MF $(DEPDIR)/libgnu_la-cloexec.Tpo -c -o libgnu_la-cloexec.lo `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-cloexec.Tpo $(DEPDIR)/libgnu_la-cloexec.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cloexec.c' object='libgnu_la-cloexec.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-cloexec.lo `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c libgnu_la-close.lo: close.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-close.lo -MD -MP -MF $(DEPDIR)/libgnu_la-close.Tpo -c -o libgnu_la-close.lo `test -f 'close.c' || echo '$(srcdir)/'`close.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-close.Tpo $(DEPDIR)/libgnu_la-close.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='close.c' object='libgnu_la-close.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-close.lo `test -f 'close.c' || echo '$(srcdir)/'`close.c libgnu_la-connect.lo: connect.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-connect.lo -MD -MP -MF $(DEPDIR)/libgnu_la-connect.Tpo -c -o libgnu_la-connect.lo `test -f 'connect.c' || echo '$(srcdir)/'`connect.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-connect.Tpo $(DEPDIR)/libgnu_la-connect.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='connect.c' object='libgnu_la-connect.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-connect.lo `test -f 'connect.c' || echo '$(srcdir)/'`connect.c libgnu_la-crc.lo: crc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-crc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-crc.Tpo -c -o libgnu_la-crc.lo `test -f 'crc.c' || echo '$(srcdir)/'`crc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-crc.Tpo $(DEPDIR)/libgnu_la-crc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='crc.c' object='libgnu_la-crc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-crc.lo `test -f 'crc.c' || echo '$(srcdir)/'`crc.c libgnu_la-af_alg.lo: af_alg.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-af_alg.lo -MD -MP -MF $(DEPDIR)/libgnu_la-af_alg.Tpo -c -o libgnu_la-af_alg.lo `test -f 'af_alg.c' || echo '$(srcdir)/'`af_alg.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-af_alg.Tpo $(DEPDIR)/libgnu_la-af_alg.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='af_alg.c' object='libgnu_la-af_alg.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-af_alg.lo `test -f 'af_alg.c' || echo '$(srcdir)/'`af_alg.c libgnu_la-arcfour.lo: arcfour.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-arcfour.lo -MD -MP -MF $(DEPDIR)/libgnu_la-arcfour.Tpo -c -o libgnu_la-arcfour.lo `test -f 'arcfour.c' || echo '$(srcdir)/'`arcfour.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-arcfour.Tpo $(DEPDIR)/libgnu_la-arcfour.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='arcfour.c' object='libgnu_la-arcfour.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-arcfour.lo `test -f 'arcfour.c' || echo '$(srcdir)/'`arcfour.c libgnu_la-des.lo: des.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-des.lo -MD -MP -MF $(DEPDIR)/libgnu_la-des.Tpo -c -o libgnu_la-des.lo `test -f 'des.c' || echo '$(srcdir)/'`des.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-des.Tpo $(DEPDIR)/libgnu_la-des.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='des.c' object='libgnu_la-des.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-des.lo `test -f 'des.c' || echo '$(srcdir)/'`des.c libgnu_la-gc-libgcrypt.lo: gc-libgcrypt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gc-libgcrypt.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gc-libgcrypt.Tpo -c -o libgnu_la-gc-libgcrypt.lo `test -f 'gc-libgcrypt.c' || echo '$(srcdir)/'`gc-libgcrypt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gc-libgcrypt.Tpo $(DEPDIR)/libgnu_la-gc-libgcrypt.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gc-libgcrypt.c' object='libgnu_la-gc-libgcrypt.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gc-libgcrypt.lo `test -f 'gc-libgcrypt.c' || echo '$(srcdir)/'`gc-libgcrypt.c libgnu_la-gc-gnulib.lo: gc-gnulib.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gc-gnulib.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gc-gnulib.Tpo -c -o libgnu_la-gc-gnulib.lo `test -f 'gc-gnulib.c' || echo '$(srcdir)/'`gc-gnulib.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gc-gnulib.Tpo $(DEPDIR)/libgnu_la-gc-gnulib.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gc-gnulib.c' object='libgnu_la-gc-gnulib.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gc-gnulib.lo `test -f 'gc-gnulib.c' || echo '$(srcdir)/'`gc-gnulib.c libgnu_la-gc-pbkdf2.lo: gc-pbkdf2.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gc-pbkdf2.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gc-pbkdf2.Tpo -c -o libgnu_la-gc-pbkdf2.lo `test -f 'gc-pbkdf2.c' || echo '$(srcdir)/'`gc-pbkdf2.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gc-pbkdf2.Tpo $(DEPDIR)/libgnu_la-gc-pbkdf2.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gc-pbkdf2.c' object='libgnu_la-gc-pbkdf2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gc-pbkdf2.lo `test -f 'gc-pbkdf2.c' || echo '$(srcdir)/'`gc-pbkdf2.c libgnu_la-gc-pbkdf2-sha1.lo: gc-pbkdf2-sha1.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gc-pbkdf2-sha1.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Tpo -c -o libgnu_la-gc-pbkdf2-sha1.lo `test -f 'gc-pbkdf2-sha1.c' || echo '$(srcdir)/'`gc-pbkdf2-sha1.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Tpo $(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gc-pbkdf2-sha1.c' object='libgnu_la-gc-pbkdf2-sha1.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gc-pbkdf2-sha1.lo `test -f 'gc-pbkdf2-sha1.c' || echo '$(srcdir)/'`gc-pbkdf2-sha1.c libgnu_la-hmac-md5.lo: hmac-md5.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-hmac-md5.lo -MD -MP -MF $(DEPDIR)/libgnu_la-hmac-md5.Tpo -c -o libgnu_la-hmac-md5.lo `test -f 'hmac-md5.c' || echo '$(srcdir)/'`hmac-md5.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-hmac-md5.Tpo $(DEPDIR)/libgnu_la-hmac-md5.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hmac-md5.c' object='libgnu_la-hmac-md5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-hmac-md5.lo `test -f 'hmac-md5.c' || echo '$(srcdir)/'`hmac-md5.c libgnu_la-hmac-sha1.lo: hmac-sha1.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-hmac-sha1.lo -MD -MP -MF $(DEPDIR)/libgnu_la-hmac-sha1.Tpo -c -o libgnu_la-hmac-sha1.lo `test -f 'hmac-sha1.c' || echo '$(srcdir)/'`hmac-sha1.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-hmac-sha1.Tpo $(DEPDIR)/libgnu_la-hmac-sha1.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hmac-sha1.c' object='libgnu_la-hmac-sha1.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-hmac-sha1.lo `test -f 'hmac-sha1.c' || echo '$(srcdir)/'`hmac-sha1.c libgnu_la-md4-stream.lo: md4-stream.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-md4-stream.lo -MD -MP -MF $(DEPDIR)/libgnu_la-md4-stream.Tpo -c -o libgnu_la-md4-stream.lo `test -f 'md4-stream.c' || echo '$(srcdir)/'`md4-stream.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-md4-stream.Tpo $(DEPDIR)/libgnu_la-md4-stream.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md4-stream.c' object='libgnu_la-md4-stream.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-md4-stream.lo `test -f 'md4-stream.c' || echo '$(srcdir)/'`md4-stream.c libgnu_la-md4.lo: md4.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-md4.lo -MD -MP -MF $(DEPDIR)/libgnu_la-md4.Tpo -c -o libgnu_la-md4.lo `test -f 'md4.c' || echo '$(srcdir)/'`md4.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-md4.Tpo $(DEPDIR)/libgnu_la-md4.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md4.c' object='libgnu_la-md4.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-md4.lo `test -f 'md4.c' || echo '$(srcdir)/'`md4.c libgnu_la-md5-stream.lo: md5-stream.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-md5-stream.lo -MD -MP -MF $(DEPDIR)/libgnu_la-md5-stream.Tpo -c -o libgnu_la-md5-stream.lo `test -f 'md5-stream.c' || echo '$(srcdir)/'`md5-stream.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-md5-stream.Tpo $(DEPDIR)/libgnu_la-md5-stream.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md5-stream.c' object='libgnu_la-md5-stream.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-md5-stream.lo `test -f 'md5-stream.c' || echo '$(srcdir)/'`md5-stream.c libgnu_la-md5.lo: md5.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-md5.lo -MD -MP -MF $(DEPDIR)/libgnu_la-md5.Tpo -c -o libgnu_la-md5.lo `test -f 'md5.c' || echo '$(srcdir)/'`md5.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-md5.Tpo $(DEPDIR)/libgnu_la-md5.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='md5.c' object='libgnu_la-md5.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-md5.lo `test -f 'md5.c' || echo '$(srcdir)/'`md5.c libgnu_la-sha1-stream.lo: sha1-stream.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-sha1-stream.lo -MD -MP -MF $(DEPDIR)/libgnu_la-sha1-stream.Tpo -c -o libgnu_la-sha1-stream.lo `test -f 'sha1-stream.c' || echo '$(srcdir)/'`sha1-stream.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-sha1-stream.Tpo $(DEPDIR)/libgnu_la-sha1-stream.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sha1-stream.c' object='libgnu_la-sha1-stream.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-sha1-stream.lo `test -f 'sha1-stream.c' || echo '$(srcdir)/'`sha1-stream.c libgnu_la-sha1.lo: sha1.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-sha1.lo -MD -MP -MF $(DEPDIR)/libgnu_la-sha1.Tpo -c -o libgnu_la-sha1.lo `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-sha1.Tpo $(DEPDIR)/libgnu_la-sha1.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sha1.c' object='libgnu_la-sha1.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-sha1.lo `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c libgnu_la-dup2.lo: dup2.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-dup2.lo -MD -MP -MF $(DEPDIR)/libgnu_la-dup2.Tpo -c -o libgnu_la-dup2.lo `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-dup2.Tpo $(DEPDIR)/libgnu_la-dup2.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup2.c' object='libgnu_la-dup2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-dup2.lo `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c libgnu_la-explicit_bzero.lo: explicit_bzero.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-explicit_bzero.lo -MD -MP -MF $(DEPDIR)/libgnu_la-explicit_bzero.Tpo -c -o libgnu_la-explicit_bzero.lo `test -f 'explicit_bzero.c' || echo '$(srcdir)/'`explicit_bzero.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-explicit_bzero.Tpo $(DEPDIR)/libgnu_la-explicit_bzero.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='explicit_bzero.c' object='libgnu_la-explicit_bzero.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-explicit_bzero.lo `test -f 'explicit_bzero.c' || echo '$(srcdir)/'`explicit_bzero.c libgnu_la-fcntl.lo: fcntl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fcntl.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fcntl.Tpo -c -o libgnu_la-fcntl.lo `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fcntl.Tpo $(DEPDIR)/libgnu_la-fcntl.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fcntl.c' object='libgnu_la-fcntl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fcntl.lo `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c libgnu_la-fd-hook.lo: fd-hook.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fd-hook.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fd-hook.Tpo -c -o libgnu_la-fd-hook.lo `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fd-hook.Tpo $(DEPDIR)/libgnu_la-fd-hook.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-hook.c' object='libgnu_la-fd-hook.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fd-hook.lo `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c libgnu_la-fflush.lo: fflush.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fflush.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fflush.Tpo -c -o libgnu_la-fflush.lo `test -f 'fflush.c' || echo '$(srcdir)/'`fflush.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fflush.Tpo $(DEPDIR)/libgnu_la-fflush.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fflush.c' object='libgnu_la-fflush.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fflush.lo `test -f 'fflush.c' || echo '$(srcdir)/'`fflush.c libgnu_la-float.lo: float.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-float.lo -MD -MP -MF $(DEPDIR)/libgnu_la-float.Tpo -c -o libgnu_la-float.lo `test -f 'float.c' || echo '$(srcdir)/'`float.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-float.Tpo $(DEPDIR)/libgnu_la-float.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='float.c' object='libgnu_la-float.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-float.lo `test -f 'float.c' || echo '$(srcdir)/'`float.c libgnu_la-itold.lo: itold.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-itold.lo -MD -MP -MF $(DEPDIR)/libgnu_la-itold.Tpo -c -o libgnu_la-itold.lo `test -f 'itold.c' || echo '$(srcdir)/'`itold.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-itold.Tpo $(DEPDIR)/libgnu_la-itold.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='itold.c' object='libgnu_la-itold.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-itold.lo `test -f 'itold.c' || echo '$(srcdir)/'`itold.c libgnu_la-fpurge.lo: fpurge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fpurge.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fpurge.Tpo -c -o libgnu_la-fpurge.lo `test -f 'fpurge.c' || echo '$(srcdir)/'`fpurge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fpurge.Tpo $(DEPDIR)/libgnu_la-fpurge.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fpurge.c' object='libgnu_la-fpurge.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fpurge.lo `test -f 'fpurge.c' || echo '$(srcdir)/'`fpurge.c libgnu_la-freading.lo: freading.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-freading.lo -MD -MP -MF $(DEPDIR)/libgnu_la-freading.Tpo -c -o libgnu_la-freading.lo `test -f 'freading.c' || echo '$(srcdir)/'`freading.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-freading.Tpo $(DEPDIR)/libgnu_la-freading.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='freading.c' object='libgnu_la-freading.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-freading.lo `test -f 'freading.c' || echo '$(srcdir)/'`freading.c libgnu_la-free.lo: free.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-free.lo -MD -MP -MF $(DEPDIR)/libgnu_la-free.Tpo -c -o libgnu_la-free.lo `test -f 'free.c' || echo '$(srcdir)/'`free.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-free.Tpo $(DEPDIR)/libgnu_la-free.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='free.c' object='libgnu_la-free.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-free.lo `test -f 'free.c' || echo '$(srcdir)/'`free.c libgnu_la-fseek.lo: fseek.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fseek.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fseek.Tpo -c -o libgnu_la-fseek.lo `test -f 'fseek.c' || echo '$(srcdir)/'`fseek.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fseek.Tpo $(DEPDIR)/libgnu_la-fseek.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fseek.c' object='libgnu_la-fseek.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fseek.lo `test -f 'fseek.c' || echo '$(srcdir)/'`fseek.c libgnu_la-fseeko.lo: fseeko.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fseeko.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fseeko.Tpo -c -o libgnu_la-fseeko.lo `test -f 'fseeko.c' || echo '$(srcdir)/'`fseeko.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fseeko.Tpo $(DEPDIR)/libgnu_la-fseeko.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fseeko.c' object='libgnu_la-fseeko.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fseeko.lo `test -f 'fseeko.c' || echo '$(srcdir)/'`fseeko.c libgnu_la-fstat.lo: fstat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fstat.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fstat.Tpo -c -o libgnu_la-fstat.lo `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fstat.Tpo $(DEPDIR)/libgnu_la-fstat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstat.c' object='libgnu_la-fstat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fstat.lo `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c libgnu_la-ftell.lo: ftell.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-ftell.lo -MD -MP -MF $(DEPDIR)/libgnu_la-ftell.Tpo -c -o libgnu_la-ftell.lo `test -f 'ftell.c' || echo '$(srcdir)/'`ftell.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-ftell.Tpo $(DEPDIR)/libgnu_la-ftell.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ftell.c' object='libgnu_la-ftell.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-ftell.lo `test -f 'ftell.c' || echo '$(srcdir)/'`ftell.c libgnu_la-ftello.lo: ftello.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-ftello.lo -MD -MP -MF $(DEPDIR)/libgnu_la-ftello.Tpo -c -o libgnu_la-ftello.lo `test -f 'ftello.c' || echo '$(srcdir)/'`ftello.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-ftello.Tpo $(DEPDIR)/libgnu_la-ftello.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ftello.c' object='libgnu_la-ftello.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-ftello.lo `test -f 'ftello.c' || echo '$(srcdir)/'`ftello.c libgnu_la-getaddrinfo.lo: getaddrinfo.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getaddrinfo.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getaddrinfo.Tpo -c -o libgnu_la-getaddrinfo.lo `test -f 'getaddrinfo.c' || echo '$(srcdir)/'`getaddrinfo.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getaddrinfo.Tpo $(DEPDIR)/libgnu_la-getaddrinfo.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getaddrinfo.c' object='libgnu_la-getaddrinfo.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getaddrinfo.lo `test -f 'getaddrinfo.c' || echo '$(srcdir)/'`getaddrinfo.c libgnu_la-gai_strerror.lo: gai_strerror.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gai_strerror.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gai_strerror.Tpo -c -o libgnu_la-gai_strerror.lo `test -f 'gai_strerror.c' || echo '$(srcdir)/'`gai_strerror.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gai_strerror.Tpo $(DEPDIR)/libgnu_la-gai_strerror.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gai_strerror.c' object='libgnu_la-gai_strerror.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gai_strerror.lo `test -f 'gai_strerror.c' || echo '$(srcdir)/'`gai_strerror.c libgnu_la-getdelim.lo: getdelim.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getdelim.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getdelim.Tpo -c -o libgnu_la-getdelim.lo `test -f 'getdelim.c' || echo '$(srcdir)/'`getdelim.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getdelim.Tpo $(DEPDIR)/libgnu_la-getdelim.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdelim.c' object='libgnu_la-getdelim.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getdelim.lo `test -f 'getdelim.c' || echo '$(srcdir)/'`getdelim.c libgnu_la-getdomainname.lo: getdomainname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getdomainname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getdomainname.Tpo -c -o libgnu_la-getdomainname.lo `test -f 'getdomainname.c' || echo '$(srcdir)/'`getdomainname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getdomainname.Tpo $(DEPDIR)/libgnu_la-getdomainname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdomainname.c' object='libgnu_la-getdomainname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getdomainname.lo `test -f 'getdomainname.c' || echo '$(srcdir)/'`getdomainname.c libgnu_la-getdtablesize.lo: getdtablesize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getdtablesize.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getdtablesize.Tpo -c -o libgnu_la-getdtablesize.lo `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getdtablesize.Tpo $(DEPDIR)/libgnu_la-getdtablesize.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdtablesize.c' object='libgnu_la-getdtablesize.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getdtablesize.lo `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c libgnu_la-gethostname.lo: gethostname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gethostname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gethostname.Tpo -c -o libgnu_la-gethostname.lo `test -f 'gethostname.c' || echo '$(srcdir)/'`gethostname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gethostname.Tpo $(DEPDIR)/libgnu_la-gethostname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gethostname.c' object='libgnu_la-gethostname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gethostname.lo `test -f 'gethostname.c' || echo '$(srcdir)/'`gethostname.c libgnu_la-getline.lo: getline.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getline.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getline.Tpo -c -o libgnu_la-getline.lo `test -f 'getline.c' || echo '$(srcdir)/'`getline.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getline.Tpo $(DEPDIR)/libgnu_la-getline.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getline.c' object='libgnu_la-getline.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getline.lo `test -f 'getline.c' || echo '$(srcdir)/'`getline.c libgnu_la-getpeername.lo: getpeername.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getpeername.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getpeername.Tpo -c -o libgnu_la-getpeername.lo `test -f 'getpeername.c' || echo '$(srcdir)/'`getpeername.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getpeername.Tpo $(DEPDIR)/libgnu_la-getpeername.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getpeername.c' object='libgnu_la-getpeername.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getpeername.lo `test -f 'getpeername.c' || echo '$(srcdir)/'`getpeername.c libgnu_la-getrandom.lo: getrandom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getrandom.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getrandom.Tpo -c -o libgnu_la-getrandom.lo `test -f 'getrandom.c' || echo '$(srcdir)/'`getrandom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getrandom.Tpo $(DEPDIR)/libgnu_la-getrandom.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getrandom.c' object='libgnu_la-getrandom.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getrandom.lo `test -f 'getrandom.c' || echo '$(srcdir)/'`getrandom.c libgnu_la-getsubopt.lo: getsubopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getsubopt.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getsubopt.Tpo -c -o libgnu_la-getsubopt.lo `test -f 'getsubopt.c' || echo '$(srcdir)/'`getsubopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getsubopt.Tpo $(DEPDIR)/libgnu_la-getsubopt.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getsubopt.c' object='libgnu_la-getsubopt.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getsubopt.lo `test -f 'getsubopt.c' || echo '$(srcdir)/'`getsubopt.c libgnu_la-gettime.lo: gettime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gettime.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gettime.Tpo -c -o libgnu_la-gettime.lo `test -f 'gettime.c' || echo '$(srcdir)/'`gettime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gettime.Tpo $(DEPDIR)/libgnu_la-gettime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettime.c' object='libgnu_la-gettime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gettime.lo `test -f 'gettime.c' || echo '$(srcdir)/'`gettime.c libgnu_la-gettimeofday.lo: gettimeofday.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-gettimeofday.lo -MD -MP -MF $(DEPDIR)/libgnu_la-gettimeofday.Tpo -c -o libgnu_la-gettimeofday.lo `test -f 'gettimeofday.c' || echo '$(srcdir)/'`gettimeofday.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-gettimeofday.Tpo $(DEPDIR)/libgnu_la-gettimeofday.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettimeofday.c' object='libgnu_la-gettimeofday.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-gettimeofday.lo `test -f 'gettimeofday.c' || echo '$(srcdir)/'`gettimeofday.c libgnu_la-ialloc.lo: ialloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-ialloc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-ialloc.Tpo -c -o libgnu_la-ialloc.lo `test -f 'ialloc.c' || echo '$(srcdir)/'`ialloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-ialloc.Tpo $(DEPDIR)/libgnu_la-ialloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ialloc.c' object='libgnu_la-ialloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-ialloc.lo `test -f 'ialloc.c' || echo '$(srcdir)/'`ialloc.c libgnu_la-inet_ntop.lo: inet_ntop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-inet_ntop.lo -MD -MP -MF $(DEPDIR)/libgnu_la-inet_ntop.Tpo -c -o libgnu_la-inet_ntop.lo `test -f 'inet_ntop.c' || echo '$(srcdir)/'`inet_ntop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-inet_ntop.Tpo $(DEPDIR)/libgnu_la-inet_ntop.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='inet_ntop.c' object='libgnu_la-inet_ntop.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-inet_ntop.lo `test -f 'inet_ntop.c' || echo '$(srcdir)/'`inet_ntop.c libgnu_la-lseek.lo: lseek.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-lseek.lo -MD -MP -MF $(DEPDIR)/libgnu_la-lseek.Tpo -c -o libgnu_la-lseek.lo `test -f 'lseek.c' || echo '$(srcdir)/'`lseek.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-lseek.Tpo $(DEPDIR)/libgnu_la-lseek.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lseek.c' object='libgnu_la-lseek.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-lseek.lo `test -f 'lseek.c' || echo '$(srcdir)/'`lseek.c libgnu_la-malloca.lo: malloca.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-malloca.lo -MD -MP -MF $(DEPDIR)/libgnu_la-malloca.Tpo -c -o libgnu_la-malloca.lo `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-malloca.Tpo $(DEPDIR)/libgnu_la-malloca.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloca.c' object='libgnu_la-malloca.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-malloca.lo `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c libgnu_la-memchr.lo: memchr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-memchr.lo -MD -MP -MF $(DEPDIR)/libgnu_la-memchr.Tpo -c -o libgnu_la-memchr.lo `test -f 'memchr.c' || echo '$(srcdir)/'`memchr.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-memchr.Tpo $(DEPDIR)/libgnu_la-memchr.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memchr.c' object='libgnu_la-memchr.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-memchr.lo `test -f 'memchr.c' || echo '$(srcdir)/'`memchr.c libgnu_la-memxor.lo: memxor.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-memxor.lo -MD -MP -MF $(DEPDIR)/libgnu_la-memxor.Tpo -c -o libgnu_la-memxor.lo `test -f 'memxor.c' || echo '$(srcdir)/'`memxor.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-memxor.Tpo $(DEPDIR)/libgnu_la-memxor.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memxor.c' object='libgnu_la-memxor.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-memxor.lo `test -f 'memxor.c' || echo '$(srcdir)/'`memxor.c libgnu_la-msvc-inval.lo: msvc-inval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-msvc-inval.lo -MD -MP -MF $(DEPDIR)/libgnu_la-msvc-inval.Tpo -c -o libgnu_la-msvc-inval.lo `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-msvc-inval.Tpo $(DEPDIR)/libgnu_la-msvc-inval.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-inval.c' object='libgnu_la-msvc-inval.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-msvc-inval.lo `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c libgnu_la-msvc-nothrow.lo: msvc-nothrow.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-msvc-nothrow.lo -MD -MP -MF $(DEPDIR)/libgnu_la-msvc-nothrow.Tpo -c -o libgnu_la-msvc-nothrow.lo `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-msvc-nothrow.Tpo $(DEPDIR)/libgnu_la-msvc-nothrow.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-nothrow.c' object='libgnu_la-msvc-nothrow.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-msvc-nothrow.lo `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c libgnu_la-nstrftime.lo: nstrftime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-nstrftime.lo -MD -MP -MF $(DEPDIR)/libgnu_la-nstrftime.Tpo -c -o libgnu_la-nstrftime.lo `test -f 'nstrftime.c' || echo '$(srcdir)/'`nstrftime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-nstrftime.Tpo $(DEPDIR)/libgnu_la-nstrftime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='nstrftime.c' object='libgnu_la-nstrftime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-nstrftime.lo `test -f 'nstrftime.c' || echo '$(srcdir)/'`nstrftime.c libgnu_la-open.lo: open.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-open.lo -MD -MP -MF $(DEPDIR)/libgnu_la-open.Tpo -c -o libgnu_la-open.lo `test -f 'open.c' || echo '$(srcdir)/'`open.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-open.Tpo $(DEPDIR)/libgnu_la-open.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='open.c' object='libgnu_la-open.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-open.lo `test -f 'open.c' || echo '$(srcdir)/'`open.c libgnu_la-parse-datetime.lo: parse-datetime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-parse-datetime.lo -MD -MP -MF $(DEPDIR)/libgnu_la-parse-datetime.Tpo -c -o libgnu_la-parse-datetime.lo `test -f 'parse-datetime.c' || echo '$(srcdir)/'`parse-datetime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-parse-datetime.Tpo $(DEPDIR)/libgnu_la-parse-datetime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='parse-datetime.c' object='libgnu_la-parse-datetime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-parse-datetime.lo `test -f 'parse-datetime.c' || echo '$(srcdir)/'`parse-datetime.c libgnu_la-rawmemchr.lo: rawmemchr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-rawmemchr.lo -MD -MP -MF $(DEPDIR)/libgnu_la-rawmemchr.Tpo -c -o libgnu_la-rawmemchr.lo `test -f 'rawmemchr.c' || echo '$(srcdir)/'`rawmemchr.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-rawmemchr.Tpo $(DEPDIR)/libgnu_la-rawmemchr.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rawmemchr.c' object='libgnu_la-rawmemchr.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-rawmemchr.lo `test -f 'rawmemchr.c' || echo '$(srcdir)/'`rawmemchr.c libgnu_la-read-file.lo: read-file.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-read-file.lo -MD -MP -MF $(DEPDIR)/libgnu_la-read-file.Tpo -c -o libgnu_la-read-file.lo `test -f 'read-file.c' || echo '$(srcdir)/'`read-file.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-read-file.Tpo $(DEPDIR)/libgnu_la-read-file.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='read-file.c' object='libgnu_la-read-file.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-read-file.lo `test -f 'read-file.c' || echo '$(srcdir)/'`read-file.c libgnu_la-readlink.lo: readlink.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-readlink.lo -MD -MP -MF $(DEPDIR)/libgnu_la-readlink.Tpo -c -o libgnu_la-readlink.lo `test -f 'readlink.c' || echo '$(srcdir)/'`readlink.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-readlink.Tpo $(DEPDIR)/libgnu_la-readlink.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='readlink.c' object='libgnu_la-readlink.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-readlink.lo `test -f 'readlink.c' || echo '$(srcdir)/'`readlink.c libgnu_la-reallocarray.lo: reallocarray.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-reallocarray.lo -MD -MP -MF $(DEPDIR)/libgnu_la-reallocarray.Tpo -c -o libgnu_la-reallocarray.lo `test -f 'reallocarray.c' || echo '$(srcdir)/'`reallocarray.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-reallocarray.Tpo $(DEPDIR)/libgnu_la-reallocarray.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='reallocarray.c' object='libgnu_la-reallocarray.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-reallocarray.lo `test -f 'reallocarray.c' || echo '$(srcdir)/'`reallocarray.c libgnu_la-recvfrom.lo: recvfrom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-recvfrom.lo -MD -MP -MF $(DEPDIR)/libgnu_la-recvfrom.Tpo -c -o libgnu_la-recvfrom.lo `test -f 'recvfrom.c' || echo '$(srcdir)/'`recvfrom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-recvfrom.Tpo $(DEPDIR)/libgnu_la-recvfrom.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='recvfrom.c' object='libgnu_la-recvfrom.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-recvfrom.lo `test -f 'recvfrom.c' || echo '$(srcdir)/'`recvfrom.c libgnu_la-select.lo: select.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-select.lo -MD -MP -MF $(DEPDIR)/libgnu_la-select.Tpo -c -o libgnu_la-select.lo `test -f 'select.c' || echo '$(srcdir)/'`select.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-select.Tpo $(DEPDIR)/libgnu_la-select.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='select.c' object='libgnu_la-select.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-select.lo `test -f 'select.c' || echo '$(srcdir)/'`select.c libgnu_la-sendto.lo: sendto.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-sendto.lo -MD -MP -MF $(DEPDIR)/libgnu_la-sendto.Tpo -c -o libgnu_la-sendto.lo `test -f 'sendto.c' || echo '$(srcdir)/'`sendto.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-sendto.Tpo $(DEPDIR)/libgnu_la-sendto.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sendto.c' object='libgnu_la-sendto.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-sendto.lo `test -f 'sendto.c' || echo '$(srcdir)/'`sendto.c libgnu_la-setenv.lo: setenv.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-setenv.lo -MD -MP -MF $(DEPDIR)/libgnu_la-setenv.Tpo -c -o libgnu_la-setenv.lo `test -f 'setenv.c' || echo '$(srcdir)/'`setenv.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-setenv.Tpo $(DEPDIR)/libgnu_la-setenv.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setenv.c' object='libgnu_la-setenv.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-setenv.lo `test -f 'setenv.c' || echo '$(srcdir)/'`setenv.c libgnu_la-shutdown.lo: shutdown.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-shutdown.lo -MD -MP -MF $(DEPDIR)/libgnu_la-shutdown.Tpo -c -o libgnu_la-shutdown.lo `test -f 'shutdown.c' || echo '$(srcdir)/'`shutdown.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-shutdown.Tpo $(DEPDIR)/libgnu_la-shutdown.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shutdown.c' object='libgnu_la-shutdown.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-shutdown.lo `test -f 'shutdown.c' || echo '$(srcdir)/'`shutdown.c libgnu_la-socket.lo: socket.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-socket.lo -MD -MP -MF $(DEPDIR)/libgnu_la-socket.Tpo -c -o libgnu_la-socket.lo `test -f 'socket.c' || echo '$(srcdir)/'`socket.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-socket.Tpo $(DEPDIR)/libgnu_la-socket.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='socket.c' object='libgnu_la-socket.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-socket.lo `test -f 'socket.c' || echo '$(srcdir)/'`socket.c libgnu_la-sockets.lo: sockets.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-sockets.lo -MD -MP -MF $(DEPDIR)/libgnu_la-sockets.Tpo -c -o libgnu_la-sockets.lo `test -f 'sockets.c' || echo '$(srcdir)/'`sockets.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-sockets.Tpo $(DEPDIR)/libgnu_la-sockets.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sockets.c' object='libgnu_la-sockets.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-sockets.lo `test -f 'sockets.c' || echo '$(srcdir)/'`sockets.c libgnu_la-stat.lo: stat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat.Tpo -c -o libgnu_la-stat.lo `test -f 'stat.c' || echo '$(srcdir)/'`stat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat.Tpo $(DEPDIR)/libgnu_la-stat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat.c' object='libgnu_la-stat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat.lo `test -f 'stat.c' || echo '$(srcdir)/'`stat.c libgnu_la-stat-time.lo: stat-time.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat-time.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat-time.Tpo -c -o libgnu_la-stat-time.lo `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat-time.Tpo $(DEPDIR)/libgnu_la-stat-time.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-time.c' object='libgnu_la-stat-time.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat-time.lo `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c libgnu_la-stdio-read.lo: stdio-read.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stdio-read.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stdio-read.Tpo -c -o libgnu_la-stdio-read.lo `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stdio-read.Tpo $(DEPDIR)/libgnu_la-stdio-read.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-read.c' object='libgnu_la-stdio-read.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stdio-read.lo `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c libgnu_la-stdio-write.lo: stdio-write.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stdio-write.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stdio-write.Tpo -c -o libgnu_la-stdio-write.lo `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stdio-write.Tpo $(DEPDIR)/libgnu_la-stdio-write.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-write.c' object='libgnu_la-stdio-write.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stdio-write.lo `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c libgnu_la-strcasecmp.lo: strcasecmp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strcasecmp.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strcasecmp.Tpo -c -o libgnu_la-strcasecmp.lo `test -f 'strcasecmp.c' || echo '$(srcdir)/'`strcasecmp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strcasecmp.Tpo $(DEPDIR)/libgnu_la-strcasecmp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strcasecmp.c' object='libgnu_la-strcasecmp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strcasecmp.lo `test -f 'strcasecmp.c' || echo '$(srcdir)/'`strcasecmp.c libgnu_la-strncasecmp.lo: strncasecmp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strncasecmp.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strncasecmp.Tpo -c -o libgnu_la-strncasecmp.lo `test -f 'strncasecmp.c' || echo '$(srcdir)/'`strncasecmp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strncasecmp.Tpo $(DEPDIR)/libgnu_la-strncasecmp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strncasecmp.c' object='libgnu_la-strncasecmp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strncasecmp.lo `test -f 'strncasecmp.c' || echo '$(srcdir)/'`strncasecmp.c libgnu_la-strchrnul.lo: strchrnul.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strchrnul.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strchrnul.Tpo -c -o libgnu_la-strchrnul.lo `test -f 'strchrnul.c' || echo '$(srcdir)/'`strchrnul.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strchrnul.Tpo $(DEPDIR)/libgnu_la-strchrnul.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strchrnul.c' object='libgnu_la-strchrnul.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strchrnul.lo `test -f 'strchrnul.c' || echo '$(srcdir)/'`strchrnul.c libgnu_la-strdup.lo: strdup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strdup.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strdup.Tpo -c -o libgnu_la-strdup.lo `test -f 'strdup.c' || echo '$(srcdir)/'`strdup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strdup.Tpo $(DEPDIR)/libgnu_la-strdup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strdup.c' object='libgnu_la-strdup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strdup.lo `test -f 'strdup.c' || echo '$(srcdir)/'`strdup.c libgnu_la-strerror.lo: strerror.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strerror.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strerror.Tpo -c -o libgnu_la-strerror.lo `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strerror.Tpo $(DEPDIR)/libgnu_la-strerror.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror.c' object='libgnu_la-strerror.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strerror.lo `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c libgnu_la-strerror-override.lo: strerror-override.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strerror-override.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strerror-override.Tpo -c -o libgnu_la-strerror-override.lo `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strerror-override.Tpo $(DEPDIR)/libgnu_la-strerror-override.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror-override.c' object='libgnu_la-strerror-override.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strerror-override.lo `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c libgnu_la-strndup.lo: strndup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strndup.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strndup.Tpo -c -o libgnu_la-strndup.lo `test -f 'strndup.c' || echo '$(srcdir)/'`strndup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strndup.Tpo $(DEPDIR)/libgnu_la-strndup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strndup.c' object='libgnu_la-strndup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strndup.lo `test -f 'strndup.c' || echo '$(srcdir)/'`strndup.c libgnu_la-strnlen.lo: strnlen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strnlen.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strnlen.Tpo -c -o libgnu_la-strnlen.lo `test -f 'strnlen.c' || echo '$(srcdir)/'`strnlen.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strnlen.Tpo $(DEPDIR)/libgnu_la-strnlen.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strnlen.c' object='libgnu_la-strnlen.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strnlen.lo `test -f 'strnlen.c' || echo '$(srcdir)/'`strnlen.c libgnu_la-strtok_r.lo: strtok_r.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strtok_r.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strtok_r.Tpo -c -o libgnu_la-strtok_r.lo `test -f 'strtok_r.c' || echo '$(srcdir)/'`strtok_r.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strtok_r.Tpo $(DEPDIR)/libgnu_la-strtok_r.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strtok_r.c' object='libgnu_la-strtok_r.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strtok_r.lo `test -f 'strtok_r.c' || echo '$(srcdir)/'`strtok_r.c libgnu_la-strverscmp.lo: strverscmp.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strverscmp.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strverscmp.Tpo -c -o libgnu_la-strverscmp.lo `test -f 'strverscmp.c' || echo '$(srcdir)/'`strverscmp.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strverscmp.Tpo $(DEPDIR)/libgnu_la-strverscmp.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strverscmp.c' object='libgnu_la-strverscmp.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strverscmp.lo `test -f 'strverscmp.c' || echo '$(srcdir)/'`strverscmp.c libgnu_la-sys_socket.lo: sys_socket.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-sys_socket.lo -MD -MP -MF $(DEPDIR)/libgnu_la-sys_socket.Tpo -c -o libgnu_la-sys_socket.lo `test -f 'sys_socket.c' || echo '$(srcdir)/'`sys_socket.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-sys_socket.Tpo $(DEPDIR)/libgnu_la-sys_socket.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sys_socket.c' object='libgnu_la-sys_socket.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-sys_socket.lo `test -f 'sys_socket.c' || echo '$(srcdir)/'`sys_socket.c libgnu_la-time_r.lo: time_r.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-time_r.lo -MD -MP -MF $(DEPDIR)/libgnu_la-time_r.Tpo -c -o libgnu_la-time_r.lo `test -f 'time_r.c' || echo '$(srcdir)/'`time_r.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-time_r.Tpo $(DEPDIR)/libgnu_la-time_r.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='time_r.c' object='libgnu_la-time_r.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-time_r.lo `test -f 'time_r.c' || echo '$(srcdir)/'`time_r.c libgnu_la-time_rz.lo: time_rz.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-time_rz.lo -MD -MP -MF $(DEPDIR)/libgnu_la-time_rz.Tpo -c -o libgnu_la-time_rz.lo `test -f 'time_rz.c' || echo '$(srcdir)/'`time_rz.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-time_rz.Tpo $(DEPDIR)/libgnu_la-time_rz.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='time_rz.c' object='libgnu_la-time_rz.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-time_rz.lo `test -f 'time_rz.c' || echo '$(srcdir)/'`time_rz.c libgnu_la-timegm.lo: timegm.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-timegm.lo -MD -MP -MF $(DEPDIR)/libgnu_la-timegm.Tpo -c -o libgnu_la-timegm.lo `test -f 'timegm.c' || echo '$(srcdir)/'`timegm.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-timegm.Tpo $(DEPDIR)/libgnu_la-timegm.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timegm.c' object='libgnu_la-timegm.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-timegm.lo `test -f 'timegm.c' || echo '$(srcdir)/'`timegm.c libgnu_la-timespec.lo: timespec.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-timespec.lo -MD -MP -MF $(DEPDIR)/libgnu_la-timespec.Tpo -c -o libgnu_la-timespec.lo `test -f 'timespec.c' || echo '$(srcdir)/'`timespec.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-timespec.Tpo $(DEPDIR)/libgnu_la-timespec.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timespec.c' object='libgnu_la-timespec.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-timespec.lo `test -f 'timespec.c' || echo '$(srcdir)/'`timespec.c libgnu_la-tzset.lo: tzset.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-tzset.lo -MD -MP -MF $(DEPDIR)/libgnu_la-tzset.Tpo -c -o libgnu_la-tzset.lo `test -f 'tzset.c' || echo '$(srcdir)/'`tzset.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-tzset.Tpo $(DEPDIR)/libgnu_la-tzset.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tzset.c' object='libgnu_la-tzset.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-tzset.lo `test -f 'tzset.c' || echo '$(srcdir)/'`tzset.c libgnu_la-unistd.lo: unistd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-unistd.lo -MD -MP -MF $(DEPDIR)/libgnu_la-unistd.Tpo -c -o libgnu_la-unistd.lo `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-unistd.Tpo $(DEPDIR)/libgnu_la-unistd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unistd.c' object='libgnu_la-unistd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-unistd.lo `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c libgnu_la-unsetenv.lo: unsetenv.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-unsetenv.lo -MD -MP -MF $(DEPDIR)/libgnu_la-unsetenv.Tpo -c -o libgnu_la-unsetenv.lo `test -f 'unsetenv.c' || echo '$(srcdir)/'`unsetenv.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-unsetenv.Tpo $(DEPDIR)/libgnu_la-unsetenv.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unsetenv.c' object='libgnu_la-unsetenv.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-unsetenv.lo `test -f 'unsetenv.c' || echo '$(srcdir)/'`unsetenv.c libgnu_la-xmalloc.lo: xmalloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xmalloc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xmalloc.Tpo -c -o libgnu_la-xmalloc.lo `test -f 'xmalloc.c' || echo '$(srcdir)/'`xmalloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xmalloc.Tpo $(DEPDIR)/libgnu_la-xmalloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xmalloc.c' object='libgnu_la-xmalloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xmalloc.lo `test -f 'xmalloc.c' || echo '$(srcdir)/'`xmalloc.c libgnu_la-xgetdomainname.lo: xgetdomainname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xgetdomainname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xgetdomainname.Tpo -c -o libgnu_la-xgetdomainname.lo `test -f 'xgetdomainname.c' || echo '$(srcdir)/'`xgetdomainname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xgetdomainname.Tpo $(DEPDIR)/libgnu_la-xgetdomainname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xgetdomainname.c' object='libgnu_la-xgetdomainname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xgetdomainname.lo `test -f 'xgetdomainname.c' || echo '$(srcdir)/'`xgetdomainname.c libgnu_la-xgethostname.lo: xgethostname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xgethostname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xgethostname.Tpo -c -o libgnu_la-xgethostname.lo `test -f 'xgethostname.c' || echo '$(srcdir)/'`xgethostname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xgethostname.Tpo $(DEPDIR)/libgnu_la-xgethostname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xgethostname.c' object='libgnu_la-xgethostname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xgethostname.lo `test -f 'xgethostname.c' || echo '$(srcdir)/'`xgethostname.c libgnu_la-xsize.lo: xsize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xsize.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xsize.Tpo -c -o libgnu_la-xsize.lo `test -f 'xsize.c' || echo '$(srcdir)/'`xsize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xsize.Tpo $(DEPDIR)/libgnu_la-xsize.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xsize.c' object='libgnu_la-xsize.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xsize.lo `test -f 'xsize.c' || echo '$(srcdir)/'`xsize.c libgnu_la-xstrndup.lo: xstrndup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xstrndup.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xstrndup.Tpo -c -o libgnu_la-xstrndup.lo `test -f 'xstrndup.c' || echo '$(srcdir)/'`xstrndup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xstrndup.Tpo $(DEPDIR)/libgnu_la-xstrndup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xstrndup.c' object='libgnu_la-xstrndup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xstrndup.lo `test -f 'xstrndup.c' || echo '$(srcdir)/'`xstrndup.c libgnu_la-xvasprintf.lo: xvasprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xvasprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xvasprintf.Tpo -c -o libgnu_la-xvasprintf.lo `test -f 'xvasprintf.c' || echo '$(srcdir)/'`xvasprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xvasprintf.Tpo $(DEPDIR)/libgnu_la-xvasprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xvasprintf.c' object='libgnu_la-xvasprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xvasprintf.lo `test -f 'xvasprintf.c' || echo '$(srcdir)/'`xvasprintf.c libgnu_la-xasprintf.lo: xasprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-xasprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-xasprintf.Tpo -c -o libgnu_la-xasprintf.lo `test -f 'xasprintf.c' || echo '$(srcdir)/'`xasprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-xasprintf.Tpo $(DEPDIR)/libgnu_la-xasprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xasprintf.c' object='libgnu_la-xasprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-xasprintf.lo `test -f 'xasprintf.c' || echo '$(srcdir)/'`xasprintf.c libgnu_la-alloca.lo: alloca.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-alloca.lo -MD -MP -MF $(DEPDIR)/libgnu_la-alloca.Tpo -c -o libgnu_la-alloca.lo `test -f 'alloca.c' || echo '$(srcdir)/'`alloca.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-alloca.Tpo $(DEPDIR)/libgnu_la-alloca.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alloca.c' object='libgnu_la-alloca.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-alloca.lo `test -f 'alloca.c' || echo '$(srcdir)/'`alloca.c libgnu_la-calloc.lo: calloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-calloc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-calloc.Tpo -c -o libgnu_la-calloc.lo `test -f 'calloc.c' || echo '$(srcdir)/'`calloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-calloc.Tpo $(DEPDIR)/libgnu_la-calloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calloc.c' object='libgnu_la-calloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-calloc.lo `test -f 'calloc.c' || echo '$(srcdir)/'`calloc.c libgnu_la-hmac.lo: hmac.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-hmac.lo -MD -MP -MF $(DEPDIR)/libgnu_la-hmac.Tpo -c -o libgnu_la-hmac.lo `test -f 'hmac.c' || echo '$(srcdir)/'`hmac.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-hmac.Tpo $(DEPDIR)/libgnu_la-hmac.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hmac.c' object='libgnu_la-hmac.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-hmac.lo `test -f 'hmac.c' || echo '$(srcdir)/'`hmac.c libgnu_la-fopen.lo: fopen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fopen.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fopen.Tpo -c -o libgnu_la-fopen.lo `test -f 'fopen.c' || echo '$(srcdir)/'`fopen.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fopen.Tpo $(DEPDIR)/libgnu_la-fopen.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fopen.c' object='libgnu_la-fopen.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fopen.lo `test -f 'fopen.c' || echo '$(srcdir)/'`fopen.c libgnu_la-stat-w32.lo: stat-w32.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat-w32.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat-w32.Tpo -c -o libgnu_la-stat-w32.lo `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat-w32.Tpo $(DEPDIR)/libgnu_la-stat-w32.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-w32.c' object='libgnu_la-stat-w32.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat-w32.lo `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c libgnu_la-getpass.lo: getpass.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getpass.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getpass.Tpo -c -o libgnu_la-getpass.lo `test -f 'getpass.c' || echo '$(srcdir)/'`getpass.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getpass.Tpo $(DEPDIR)/libgnu_la-getpass.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getpass.c' object='libgnu_la-getpass.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getpass.lo `test -f 'getpass.c' || echo '$(srcdir)/'`getpass.c libgnu_la-malloc.lo: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-malloc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-malloc.Tpo -c -o libgnu_la-malloc.lo `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-malloc.Tpo $(DEPDIR)/libgnu_la-malloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='libgnu_la-malloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-malloc.lo `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c libgnu_la-mktime.lo: mktime.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-mktime.lo -MD -MP -MF $(DEPDIR)/libgnu_la-mktime.Tpo -c -o libgnu_la-mktime.lo `test -f 'mktime.c' || echo '$(srcdir)/'`mktime.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-mktime.Tpo $(DEPDIR)/libgnu_la-mktime.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mktime.c' object='libgnu_la-mktime.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-mktime.lo `test -f 'mktime.c' || echo '$(srcdir)/'`mktime.c libgnu_la-realloc.lo: realloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-realloc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-realloc.Tpo -c -o libgnu_la-realloc.lo `test -f 'realloc.c' || echo '$(srcdir)/'`realloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-realloc.Tpo $(DEPDIR)/libgnu_la-realloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='realloc.c' object='libgnu_la-realloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-realloc.lo `test -f 'realloc.c' || echo '$(srcdir)/'`realloc.c libgnu_la-snprintf.lo: snprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-snprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-snprintf.Tpo -c -o libgnu_la-snprintf.lo `test -f 'snprintf.c' || echo '$(srcdir)/'`snprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-snprintf.Tpo $(DEPDIR)/libgnu_la-snprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='snprintf.c' object='libgnu_la-snprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-snprintf.lo `test -f 'snprintf.c' || echo '$(srcdir)/'`snprintf.c libgnu_la-asnprintf.lo: asnprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-asnprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-asnprintf.Tpo -c -o libgnu_la-asnprintf.lo `test -f 'asnprintf.c' || echo '$(srcdir)/'`asnprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-asnprintf.Tpo $(DEPDIR)/libgnu_la-asnprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asnprintf.c' object='libgnu_la-asnprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-asnprintf.lo `test -f 'asnprintf.c' || echo '$(srcdir)/'`asnprintf.c libgnu_la-printf-args.lo: printf-args.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-printf-args.lo -MD -MP -MF $(DEPDIR)/libgnu_la-printf-args.Tpo -c -o libgnu_la-printf-args.lo `test -f 'printf-args.c' || echo '$(srcdir)/'`printf-args.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-printf-args.Tpo $(DEPDIR)/libgnu_la-printf-args.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-args.c' object='libgnu_la-printf-args.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-printf-args.lo `test -f 'printf-args.c' || echo '$(srcdir)/'`printf-args.c libgnu_la-printf-parse.lo: printf-parse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-printf-parse.lo -MD -MP -MF $(DEPDIR)/libgnu_la-printf-parse.Tpo -c -o libgnu_la-printf-parse.lo `test -f 'printf-parse.c' || echo '$(srcdir)/'`printf-parse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-printf-parse.Tpo $(DEPDIR)/libgnu_la-printf-parse.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-parse.c' object='libgnu_la-printf-parse.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-printf-parse.lo `test -f 'printf-parse.c' || echo '$(srcdir)/'`printf-parse.c libgnu_la-vasnprintf.lo: vasnprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-vasnprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-vasnprintf.Tpo -c -o libgnu_la-vasnprintf.lo `test -f 'vasnprintf.c' || echo '$(srcdir)/'`vasnprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-vasnprintf.Tpo $(DEPDIR)/libgnu_la-vasnprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasnprintf.c' object='libgnu_la-vasnprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-vasnprintf.lo `test -f 'vasnprintf.c' || echo '$(srcdir)/'`vasnprintf.c libgnu_la-asprintf.lo: asprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-asprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-asprintf.Tpo -c -o libgnu_la-asprintf.lo `test -f 'asprintf.c' || echo '$(srcdir)/'`asprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-asprintf.Tpo $(DEPDIR)/libgnu_la-asprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asprintf.c' object='libgnu_la-asprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-asprintf.lo `test -f 'asprintf.c' || echo '$(srcdir)/'`asprintf.c libgnu_la-vasprintf.lo: vasprintf.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-vasprintf.lo -MD -MP -MF $(DEPDIR)/libgnu_la-vasprintf.Tpo -c -o libgnu_la-vasprintf.lo `test -f 'vasprintf.c' || echo '$(srcdir)/'`vasprintf.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-vasprintf.Tpo $(DEPDIR)/libgnu_la-vasprintf.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasprintf.c' object='libgnu_la-vasprintf.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-vasprintf.lo `test -f 'vasprintf.c' || echo '$(srcdir)/'`vasprintf.c .y.c: $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f parse-datetime.c -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/alloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-af_alg.Plo -rm -f ./$(DEPDIR)/libgnu_la-alloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-allocator.Plo -rm -f ./$(DEPDIR)/libgnu_la-arcfour.Plo -rm -f ./$(DEPDIR)/libgnu_la-areadlink.Plo -rm -f ./$(DEPDIR)/libgnu_la-asnprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-asprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-base64.Plo -rm -f ./$(DEPDIR)/libgnu_la-bind.Plo -rm -f ./$(DEPDIR)/libgnu_la-c-ctype.Plo -rm -f ./$(DEPDIR)/libgnu_la-calloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-careadlinkat.Plo -rm -f ./$(DEPDIR)/libgnu_la-cloexec.Plo -rm -f ./$(DEPDIR)/libgnu_la-close.Plo -rm -f ./$(DEPDIR)/libgnu_la-connect.Plo -rm -f ./$(DEPDIR)/libgnu_la-crc.Plo -rm -f ./$(DEPDIR)/libgnu_la-des.Plo -rm -f ./$(DEPDIR)/libgnu_la-dup2.Plo -rm -f ./$(DEPDIR)/libgnu_la-explicit_bzero.Plo -rm -f ./$(DEPDIR)/libgnu_la-fcntl.Plo -rm -f ./$(DEPDIR)/libgnu_la-fd-hook.Plo -rm -f ./$(DEPDIR)/libgnu_la-fflush.Plo -rm -f ./$(DEPDIR)/libgnu_la-float.Plo -rm -f ./$(DEPDIR)/libgnu_la-fopen.Plo -rm -f ./$(DEPDIR)/libgnu_la-fpurge.Plo -rm -f ./$(DEPDIR)/libgnu_la-freading.Plo -rm -f ./$(DEPDIR)/libgnu_la-free.Plo -rm -f ./$(DEPDIR)/libgnu_la-fseek.Plo -rm -f ./$(DEPDIR)/libgnu_la-fseeko.Plo -rm -f ./$(DEPDIR)/libgnu_la-fstat.Plo -rm -f ./$(DEPDIR)/libgnu_la-ftell.Plo -rm -f ./$(DEPDIR)/libgnu_la-ftello.Plo -rm -f ./$(DEPDIR)/libgnu_la-gai_strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-gnulib.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-libgcrypt.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-pbkdf2.Plo -rm -f ./$(DEPDIR)/libgnu_la-getaddrinfo.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdelim.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdomainname.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdtablesize.Plo -rm -f ./$(DEPDIR)/libgnu_la-gethostname.Plo -rm -f ./$(DEPDIR)/libgnu_la-getline.Plo -rm -f ./$(DEPDIR)/libgnu_la-getpass.Plo -rm -f ./$(DEPDIR)/libgnu_la-getpeername.Plo -rm -f ./$(DEPDIR)/libgnu_la-getrandom.Plo -rm -f ./$(DEPDIR)/libgnu_la-getsubopt.Plo -rm -f ./$(DEPDIR)/libgnu_la-gettime.Plo -rm -f ./$(DEPDIR)/libgnu_la-gettimeofday.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac-md5.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac.Plo -rm -f ./$(DEPDIR)/libgnu_la-ialloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-inet_ntop.Plo -rm -f ./$(DEPDIR)/libgnu_la-itold.Plo -rm -f ./$(DEPDIR)/libgnu_la-lseek.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-md4-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-md4.Plo -rm -f ./$(DEPDIR)/libgnu_la-md5-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-md5.Plo -rm -f ./$(DEPDIR)/libgnu_la-memchr.Plo -rm -f ./$(DEPDIR)/libgnu_la-memxor.Plo -rm -f ./$(DEPDIR)/libgnu_la-mktime.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-inval.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo -rm -f ./$(DEPDIR)/libgnu_la-nstrftime.Plo -rm -f ./$(DEPDIR)/libgnu_la-open.Plo -rm -f ./$(DEPDIR)/libgnu_la-parse-datetime.Plo -rm -f ./$(DEPDIR)/libgnu_la-printf-args.Plo -rm -f ./$(DEPDIR)/libgnu_la-printf-parse.Plo -rm -f ./$(DEPDIR)/libgnu_la-rawmemchr.Plo -rm -f ./$(DEPDIR)/libgnu_la-read-file.Plo -rm -f ./$(DEPDIR)/libgnu_la-readlink.Plo -rm -f ./$(DEPDIR)/libgnu_la-realloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-reallocarray.Plo -rm -f ./$(DEPDIR)/libgnu_la-recvfrom.Plo -rm -f ./$(DEPDIR)/libgnu_la-select.Plo -rm -f ./$(DEPDIR)/libgnu_la-sendto.Plo -rm -f ./$(DEPDIR)/libgnu_la-setenv.Plo -rm -f ./$(DEPDIR)/libgnu_la-sha1-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-shutdown.Plo -rm -f ./$(DEPDIR)/libgnu_la-snprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-socket.Plo -rm -f ./$(DEPDIR)/libgnu_la-sockets.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-time.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-w32.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-read.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-write.Plo -rm -f ./$(DEPDIR)/libgnu_la-strcasecmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-strchrnul.Plo -rm -f ./$(DEPDIR)/libgnu_la-strdup.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror-override.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-strncasecmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-strndup.Plo -rm -f ./$(DEPDIR)/libgnu_la-strnlen.Plo -rm -f ./$(DEPDIR)/libgnu_la-strtok_r.Plo -rm -f ./$(DEPDIR)/libgnu_la-strverscmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-sys_socket.Plo -rm -f ./$(DEPDIR)/libgnu_la-time_r.Plo -rm -f ./$(DEPDIR)/libgnu_la-time_rz.Plo -rm -f ./$(DEPDIR)/libgnu_la-timegm.Plo -rm -f ./$(DEPDIR)/libgnu_la-timespec.Plo -rm -f ./$(DEPDIR)/libgnu_la-tzset.Plo -rm -f ./$(DEPDIR)/libgnu_la-unistd.Plo -rm -f ./$(DEPDIR)/libgnu_la-unsetenv.Plo -rm -f ./$(DEPDIR)/libgnu_la-vasnprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-vasprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-xasprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-xgetdomainname.Plo -rm -f ./$(DEPDIR)/libgnu_la-xgethostname.Plo -rm -f ./$(DEPDIR)/libgnu_la-xmalloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-xsize.Plo -rm -f ./$(DEPDIR)/libgnu_la-xstrndup.Plo -rm -f ./$(DEPDIR)/libgnu_la-xvasprintf.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f ./$(DEPDIR)/alloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-af_alg.Plo -rm -f ./$(DEPDIR)/libgnu_la-alloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-allocator.Plo -rm -f ./$(DEPDIR)/libgnu_la-arcfour.Plo -rm -f ./$(DEPDIR)/libgnu_la-areadlink.Plo -rm -f ./$(DEPDIR)/libgnu_la-asnprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-asprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-base64.Plo -rm -f ./$(DEPDIR)/libgnu_la-bind.Plo -rm -f ./$(DEPDIR)/libgnu_la-c-ctype.Plo -rm -f ./$(DEPDIR)/libgnu_la-calloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-careadlinkat.Plo -rm -f ./$(DEPDIR)/libgnu_la-cloexec.Plo -rm -f ./$(DEPDIR)/libgnu_la-close.Plo -rm -f ./$(DEPDIR)/libgnu_la-connect.Plo -rm -f ./$(DEPDIR)/libgnu_la-crc.Plo -rm -f ./$(DEPDIR)/libgnu_la-des.Plo -rm -f ./$(DEPDIR)/libgnu_la-dup2.Plo -rm -f ./$(DEPDIR)/libgnu_la-explicit_bzero.Plo -rm -f ./$(DEPDIR)/libgnu_la-fcntl.Plo -rm -f ./$(DEPDIR)/libgnu_la-fd-hook.Plo -rm -f ./$(DEPDIR)/libgnu_la-fflush.Plo -rm -f ./$(DEPDIR)/libgnu_la-float.Plo -rm -f ./$(DEPDIR)/libgnu_la-fopen.Plo -rm -f ./$(DEPDIR)/libgnu_la-fpurge.Plo -rm -f ./$(DEPDIR)/libgnu_la-freading.Plo -rm -f ./$(DEPDIR)/libgnu_la-free.Plo -rm -f ./$(DEPDIR)/libgnu_la-fseek.Plo -rm -f ./$(DEPDIR)/libgnu_la-fseeko.Plo -rm -f ./$(DEPDIR)/libgnu_la-fstat.Plo -rm -f ./$(DEPDIR)/libgnu_la-ftell.Plo -rm -f ./$(DEPDIR)/libgnu_la-ftello.Plo -rm -f ./$(DEPDIR)/libgnu_la-gai_strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-gnulib.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-libgcrypt.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-pbkdf2-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-gc-pbkdf2.Plo -rm -f ./$(DEPDIR)/libgnu_la-getaddrinfo.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdelim.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdomainname.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdtablesize.Plo -rm -f ./$(DEPDIR)/libgnu_la-gethostname.Plo -rm -f ./$(DEPDIR)/libgnu_la-getline.Plo -rm -f ./$(DEPDIR)/libgnu_la-getpass.Plo -rm -f ./$(DEPDIR)/libgnu_la-getpeername.Plo -rm -f ./$(DEPDIR)/libgnu_la-getrandom.Plo -rm -f ./$(DEPDIR)/libgnu_la-getsubopt.Plo -rm -f ./$(DEPDIR)/libgnu_la-gettime.Plo -rm -f ./$(DEPDIR)/libgnu_la-gettimeofday.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac-md5.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-hmac.Plo -rm -f ./$(DEPDIR)/libgnu_la-ialloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-inet_ntop.Plo -rm -f ./$(DEPDIR)/libgnu_la-itold.Plo -rm -f ./$(DEPDIR)/libgnu_la-lseek.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-md4-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-md4.Plo -rm -f ./$(DEPDIR)/libgnu_la-md5-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-md5.Plo -rm -f ./$(DEPDIR)/libgnu_la-memchr.Plo -rm -f ./$(DEPDIR)/libgnu_la-memxor.Plo -rm -f ./$(DEPDIR)/libgnu_la-mktime.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-inval.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo -rm -f ./$(DEPDIR)/libgnu_la-nstrftime.Plo -rm -f ./$(DEPDIR)/libgnu_la-open.Plo -rm -f ./$(DEPDIR)/libgnu_la-parse-datetime.Plo -rm -f ./$(DEPDIR)/libgnu_la-printf-args.Plo -rm -f ./$(DEPDIR)/libgnu_la-printf-parse.Plo -rm -f ./$(DEPDIR)/libgnu_la-rawmemchr.Plo -rm -f ./$(DEPDIR)/libgnu_la-read-file.Plo -rm -f ./$(DEPDIR)/libgnu_la-readlink.Plo -rm -f ./$(DEPDIR)/libgnu_la-realloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-reallocarray.Plo -rm -f ./$(DEPDIR)/libgnu_la-recvfrom.Plo -rm -f ./$(DEPDIR)/libgnu_la-select.Plo -rm -f ./$(DEPDIR)/libgnu_la-sendto.Plo -rm -f ./$(DEPDIR)/libgnu_la-setenv.Plo -rm -f ./$(DEPDIR)/libgnu_la-sha1-stream.Plo -rm -f ./$(DEPDIR)/libgnu_la-sha1.Plo -rm -f ./$(DEPDIR)/libgnu_la-shutdown.Plo -rm -f ./$(DEPDIR)/libgnu_la-snprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-socket.Plo -rm -f ./$(DEPDIR)/libgnu_la-sockets.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-time.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-w32.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-read.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-write.Plo -rm -f ./$(DEPDIR)/libgnu_la-strcasecmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-strchrnul.Plo -rm -f ./$(DEPDIR)/libgnu_la-strdup.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror-override.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-strncasecmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-strndup.Plo -rm -f ./$(DEPDIR)/libgnu_la-strnlen.Plo -rm -f ./$(DEPDIR)/libgnu_la-strtok_r.Plo -rm -f ./$(DEPDIR)/libgnu_la-strverscmp.Plo -rm -f ./$(DEPDIR)/libgnu_la-sys_socket.Plo -rm -f ./$(DEPDIR)/libgnu_la-time_r.Plo -rm -f ./$(DEPDIR)/libgnu_la-time_rz.Plo -rm -f ./$(DEPDIR)/libgnu_la-timegm.Plo -rm -f ./$(DEPDIR)/libgnu_la-timespec.Plo -rm -f ./$(DEPDIR)/libgnu_la-tzset.Plo -rm -f ./$(DEPDIR)/libgnu_la-unistd.Plo -rm -f ./$(DEPDIR)/libgnu_la-unsetenv.Plo -rm -f ./$(DEPDIR)/libgnu_la-vasnprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-vasprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-xasprintf.Plo -rm -f ./$(DEPDIR)/libgnu_la-xgetdomainname.Plo -rm -f ./$(DEPDIR)/libgnu_la-xgethostname.Plo -rm -f ./$(DEPDIR)/libgnu_la-xmalloc.Plo -rm -f ./$(DEPDIR)/libgnu_la-xsize.Plo -rm -f ./$(DEPDIR)/libgnu_la-xstrndup.Plo -rm -f ./$(DEPDIR)/libgnu_la-xvasprintf.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool mostlyclean-local pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all check install install-am \ install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES clean-noinstLTLIBRARIES cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_ALLOCA_H_TRUE@alloca.h: alloca.in.h $(top_builddir)/config.status @GL_GENERATE_ALLOCA_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_ALLOCA_H_TRUE@ -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \ @GL_GENERATE_ALLOCA_H_TRUE@ $(srcdir)/alloca.in.h > $@-t @GL_GENERATE_ALLOCA_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_ALLOCA_H_FALSE@alloca.h: $(top_builddir)/config.status @GL_GENERATE_ALLOCA_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one. arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(AM_V_GEN)$(MKDIR_P) 'arpa' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \ -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \ -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \ -e 's/@''GNULIB_INET_NTOP''@/$(GL_LIBGL_GNULIB_INET_NTOP)/g' \ -e 's/@''GNULIB_INET_PTON''@/$(GL_LIBGL_GNULIB_INET_PTON)/g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \ -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/arpa_inet.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one. @GL_GENERATE_BYTESWAP_H_TRUE@byteswap.h: byteswap.in.h $(top_builddir)/config.status @GL_GENERATE_BYTESWAP_H_TRUE@ $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/byteswap.in.h @GL_GENERATE_BYTESWAP_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_BYTESWAP_H_FALSE@byteswap.h: $(top_builddir)/config.status @GL_GENERATE_BYTESWAP_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that is POSIX compliant. @GL_GENERATE_ERRNO_H_TRUE@errno.h: errno.in.h $(top_builddir)/config.status @GL_GENERATE_ERRNO_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ $(srcdir)/errno.in.h > $@-t @GL_GENERATE_ERRNO_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_ERRNO_H_FALSE@errno.h: $(top_builddir)/config.status @GL_GENERATE_ERRNO_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ -e 's/@''GNULIB_CREAT''@/$(GL_LIBGL_GNULIB_CREAT)/g' \ -e 's/@''GNULIB_FCNTL''@/$(GL_LIBGL_GNULIB_FCNTL)/g' \ -e 's/@''GNULIB_NONBLOCKING''@/$(GL_LIBGL_GNULIB_NONBLOCKING)/g' \ -e 's/@''GNULIB_OPEN''@/$(GL_LIBGL_GNULIB_OPEN)/g' \ -e 's/@''GNULIB_OPENAT''@/$(GL_LIBGL_GNULIB_OPENAT)/g' \ -e 's/@''GNULIB_MDA_CREAT''@/$(GL_LIBGL_GNULIB_MDA_CREAT)/g' \ -e 's/@''GNULIB_MDA_OPEN''@/$(GL_LIBGL_GNULIB_MDA_OPEN)/g' \ -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/fcntl.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_FLOAT_H_TRUE@float.h: float.in.h $(top_builddir)/config.status @GL_GENERATE_FLOAT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \ @GL_GENERATE_FLOAT_H_TRUE@ $(srcdir)/float.in.h > $@-t @GL_GENERATE_FLOAT_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_FLOAT_H_FALSE@float.h: $(top_builddir)/config.status @GL_GENERATE_FLOAT_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ -e 's/@''GNULIB_IMAXABS''@/$(GL_LIBGL_GNULIB_IMAXABS)/g' \ -e 's/@''GNULIB_IMAXDIV''@/$(GL_LIBGL_GNULIB_IMAXDIV)/g' \ -e 's/@''GNULIB_STRTOIMAX''@/$(GL_LIBGL_GNULIB_STRTOIMAX)/g' \ -e 's/@''GNULIB_STRTOUMAX''@/$(GL_LIBGL_GNULIB_STRTOUMAX)/g' \ -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ -e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \ -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \ -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \ -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \ -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \ -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \ -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/inttypes.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that is compatible with GNU. @GL_GENERATE_LIMITS_H_TRUE@limits.h: limits.in.h $(top_builddir)/config.status @GL_GENERATE_LIMITS_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \ @GL_GENERATE_LIMITS_H_TRUE@ $(srcdir)/limits.in.h > $@-t @GL_GENERATE_LIMITS_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_LIMITS_H_FALSE@limits.h: $(top_builddir)/config.status @GL_GENERATE_LIMITS_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. netdb.h: netdb.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \ -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \ -e 's/@''GNULIB_GETADDRINFO''@/$(GL_LIBGL_GNULIB_GETADDRINFO)/g' \ -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \ -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \ -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \ -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \ -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \ -e 's|@''REPLACE_GAI_STRERROR''@|$(REPLACE_GAI_STRERROR)|g' \ -e 's|@''REPLACE_GETADDRINFO''@|$(REPLACE_GETADDRINFO)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/netdb.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one. @GL_GENERATE_NETINET_IN_H_TRUE@netinet/in.h: netinet_in.in.h $(top_builddir)/config.status @GL_GENERATE_NETINET_IN_H_TRUE@ $(AM_V_GEN)$(MKDIR_P) 'netinet' @GL_GENERATE_NETINET_IN_H_TRUE@ $(AM_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \ @GL_GENERATE_NETINET_IN_H_TRUE@ $(srcdir)/netinet_in.in.h > $@-t @GL_GENERATE_NETINET_IN_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_NETINET_IN_H_FALSE@netinet/in.h: $(top_builddir)/config.status @GL_GENERATE_NETINET_IN_H_FALSE@ rm -f $@ # The Automake generated .y.c rule is broken: When executed in a VPATH build, # - The .c file gets generated in the build directory. But since it requires # special tools to rebuild it, we need to distribute it in the tarballs, # and by the GNU Coding Standards # # the file should be generated in the source directory. # - The #line directives in the .c file refer to a nonexistent file once it # has been moved from the build directory to the source directory. This # leads to error if 'lcov' is used later. # Additionally, here we assume GNU Bison and therefore don't need the ylwrap # script. # Therefore we override this rule. # Since this is a rule that produces multiple files, we apply the idiom from # , so that # it works also in parallel 'make'. generate-parse-datetime: $(AM_V_YACC)$(PARSE_DATETIME_BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/parse-datetime.y \ && test ':' = '$(PARSE_DATETIME_BISON)' || { \ sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \ -e 's|"parse-datetime\.tab\.c"|"parse-datetime.c"|' \ -e 's|"parse-datetime\.tab\.h"|"parse-datetime-gen.h"|' \ < parse-datetime.tab.c > parse-datetime.c-tmp \ && sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \ -e 's|"parse-datetime\.tab\.h"|"parse-datetime-gen.h"|' \ < parse-datetime.tab.h > parse-datetime-gen.h-tmp \ && rm -f parse-datetime.tab.c parse-datetime.tab.h \ && mv parse-datetime.c-tmp $(srcdir)/parse-datetime.c \ && mv parse-datetime-gen.h-tmp $(srcdir)/parse-datetime-gen.h; \ } .PHONY: generate-parse-datetime # The above rule will generate files with time stamp order # parse-datetime.y <= parse-datetime.c <= parse-datetime-gen.h. parse-datetime.c: parse-datetime.y @{ test -f $(srcdir)/parse-datetime.c && test ! $(srcdir)/parse-datetime.c -ot $(srcdir)/parse-datetime.y; } || $(MAKE) generate-parse-datetime parse-datetime-gen.h: parse-datetime.c @{ test -f $(srcdir)/parse-datetime-gen.h && test ! $(srcdir)/parse-datetime-gen.h -ot $(srcdir)/parse-datetime.c; } || $(MAKE) generate-parse-datetime # We need the following in order to create when the system # doesn't have a complete one. signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GL_LIBGL_GNULIB_PTHREAD_SIGMASK)/g' \ -e 's/@''GNULIB_RAISE''@/$(GL_LIBGL_GNULIB_RAISE)/g' \ -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE)/g' \ -e 's/@''GNULIB_SIGPROCMASK''@/$(GL_LIBGL_GNULIB_SIGPROCMASK)/g' \ -e 's/@''GNULIB_SIGACTION''@/$(GL_LIBGL_GNULIB_SIGACTION)/g' \ -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \ -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \ -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \ -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \ -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/signal.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works. @GL_GENERATE_STDALIGN_H_TRUE@stdalign.h: stdalign.in.h $(top_builddir)/config.status @GL_GENERATE_STDALIGN_H_TRUE@ $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/stdalign.in.h @GL_GENERATE_STDALIGN_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDALIGN_H_FALSE@stdalign.h: $(top_builddir)/config.status @GL_GENERATE_STDALIGN_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDARG_H_TRUE@stdarg.h: stdarg.in.h $(top_builddir)/config.status @GL_GENERATE_STDARG_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ @GL_GENERATE_STDARG_H_TRUE@ $(srcdir)/stdarg.in.h > $@-t @GL_GENERATE_STDARG_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDARG_H_FALSE@stdarg.h: $(top_builddir)/config.status @GL_GENERATE_STDARG_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works. @GL_GENERATE_STDBOOL_H_TRUE@stdbool.h: stdbool.in.h $(top_builddir)/config.status @GL_GENERATE_STDBOOL_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDBOOL_H_TRUE@ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ @GL_GENERATE_STDBOOL_H_TRUE@ $(srcdir)/stdbool.in.h > $@-t @GL_GENERATE_STDBOOL_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDBOOL_H_FALSE@stdbool.h: $(top_builddir)/config.status @GL_GENERATE_STDBOOL_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDDEF_H_TRUE@stddef.h: stddef.in.h $(top_builddir)/config.status @GL_GENERATE_STDDEF_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ $(srcdir)/stddef.in.h > $@-t @GL_GENERATE_STDDEF_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDDEF_H_FALSE@stddef.h: $(top_builddir)/config.status @GL_GENERATE_STDDEF_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDINT_H_TRUE@stdint.h: stdint.in.h $(top_builddir)/config.status @GL_GENERATE_STDINT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_C99_STDINT_H''@/$(HAVE_C99_STDINT_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ $(srcdir)/stdint.in.h > $@-t @GL_GENERATE_STDINT_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDINT_H_FALSE@stdint.h: $(top_builddir)/config.status @GL_GENERATE_STDINT_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GL_LIBGL_GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GL_LIBGL_GNULIB_FCLOSE)/g' \ -e 's/@''GNULIB_FDOPEN''@/$(GL_LIBGL_GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GL_LIBGL_GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GL_LIBGL_GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GL_LIBGL_GNULIB_FGETS)/g' \ -e 's/@''GNULIB_FOPEN''@/$(GL_LIBGL_GNULIB_FOPEN)/g' \ -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_LIBGL_GNULIB_FOPEN_GNU)/g' \ -e 's/@''GNULIB_FPRINTF''@/$(GL_LIBGL_GNULIB_FPRINTF)/g' \ -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_FPRINTF_POSIX)/g' \ -e 's/@''GNULIB_FPURGE''@/$(GL_LIBGL_GNULIB_FPURGE)/g' \ -e 's/@''GNULIB_FPUTC''@/$(GL_LIBGL_GNULIB_FPUTC)/g' \ -e 's/@''GNULIB_FPUTS''@/$(GL_LIBGL_GNULIB_FPUTS)/g' \ -e 's/@''GNULIB_FREAD''@/$(GL_LIBGL_GNULIB_FREAD)/g' \ -e 's/@''GNULIB_FREOPEN''@/$(GL_LIBGL_GNULIB_FREOPEN)/g' \ -e 's/@''GNULIB_FSCANF''@/$(GL_LIBGL_GNULIB_FSCANF)/g' \ -e 's/@''GNULIB_FSEEK''@/$(GL_LIBGL_GNULIB_FSEEK)/g' \ -e 's/@''GNULIB_FSEEKO''@/$(GL_LIBGL_GNULIB_FSEEKO)/g' \ -e 's/@''GNULIB_FTELL''@/$(GL_LIBGL_GNULIB_FTELL)/g' \ -e 's/@''GNULIB_FTELLO''@/$(GL_LIBGL_GNULIB_FTELLO)/g' \ -e 's/@''GNULIB_FWRITE''@/$(GL_LIBGL_GNULIB_FWRITE)/g' \ -e 's/@''GNULIB_GETC''@/$(GL_LIBGL_GNULIB_GETC)/g' \ -e 's/@''GNULIB_GETCHAR''@/$(GL_LIBGL_GNULIB_GETCHAR)/g' \ -e 's/@''GNULIB_GETDELIM''@/$(GL_LIBGL_GNULIB_GETDELIM)/g' \ -e 's/@''GNULIB_GETLINE''@/$(GL_LIBGL_GNULIB_GETLINE)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_LIBGL_GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PCLOSE''@/$(GL_LIBGL_GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GL_LIBGL_GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GL_LIBGL_GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GL_LIBGL_GNULIB_PRINTF)/g' \ -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_LIBGL_GNULIB_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PUTC''@/$(GL_LIBGL_GNULIB_PUTC)/g' \ -e 's/@''GNULIB_PUTCHAR''@/$(GL_LIBGL_GNULIB_PUTCHAR)/g' \ -e 's/@''GNULIB_PUTS''@/$(GL_LIBGL_GNULIB_PUTS)/g' \ -e 's/@''GNULIB_REMOVE''@/$(GL_LIBGL_GNULIB_REMOVE)/g' \ -e 's/@''GNULIB_RENAME''@/$(GL_LIBGL_GNULIB_RENAME)/g' \ -e 's/@''GNULIB_RENAMEAT''@/$(GL_LIBGL_GNULIB_RENAMEAT)/g' \ -e 's/@''GNULIB_SCANF''@/$(GL_LIBGL_GNULIB_SCANF)/g' \ -e 's/@''GNULIB_SNPRINTF''@/$(GL_LIBGL_GNULIB_SNPRINTF)/g' \ -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_SPRINTF_POSIX)/g' \ -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_STDIO_H_SIGPIPE)/g' \ -e 's/@''GNULIB_TMPFILE''@/$(GL_LIBGL_GNULIB_TMPFILE)/g' \ -e 's/@''GNULIB_VASPRINTF''@/$(GL_LIBGL_GNULIB_VASPRINTF)/g' \ -e 's/@''GNULIB_VDPRINTF''@/$(GL_LIBGL_GNULIB_VDPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF''@/$(GL_LIBGL_GNULIB_VFPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VFPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VFSCANF''@/$(GL_LIBGL_GNULIB_VFSCANF)/g' \ -e 's/@''GNULIB_VSCANF''@/$(GL_LIBGL_GNULIB_VSCANF)/g' \ -e 's/@''GNULIB_VPRINTF''@/$(GL_LIBGL_GNULIB_VPRINTF)/g' \ -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VSNPRINTF''@/$(GL_LIBGL_GNULIB_VSNPRINTF)/g' \ -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VSPRINTF_POSIX)/g' \ -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_LIBGL_GNULIB_MDA_FCLOSEALL)/g' \ -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_LIBGL_GNULIB_MDA_FDOPEN)/g' \ -e 's/@''GNULIB_MDA_FILENO''@/$(GL_LIBGL_GNULIB_MDA_FILENO)/g' \ -e 's/@''GNULIB_MDA_GETW''@/$(GL_LIBGL_GNULIB_MDA_GETW)/g' \ -e 's/@''GNULIB_MDA_PUTW''@/$(GL_LIBGL_GNULIB_MDA_PUTW)/g' \ -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_LIBGL_GNULIB_MDA_TEMPNAM)/g' \ < $(srcdir)/stdio.in.h | \ sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \ -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \ -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's/@''GNULIB__EXIT''@/$(GL_LIBGL_GNULIB__EXIT)/g' \ -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_LIBGL_GNULIB_ALIGNED_ALLOC)/g' \ -e 's/@''GNULIB_ATOLL''@/$(GL_LIBGL_GNULIB_ATOLL)/g' \ -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_LIBGL_GNULIB_CALLOC_GNU)/g' \ -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_LIBGL_GNULIB_CALLOC_POSIX)/g' \ -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ -e 's/@''GNULIB_GETLOADAVG''@/$(GL_LIBGL_GNULIB_GETLOADAVG)/g' \ -e 's/@''GNULIB_GETSUBOPT''@/$(GL_LIBGL_GNULIB_GETSUBOPT)/g' \ -e 's/@''GNULIB_GRANTPT''@/$(GL_LIBGL_GNULIB_GRANTPT)/g' \ -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_LIBGL_GNULIB_MALLOC_GNU)/g' \ -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_LIBGL_GNULIB_MALLOC_POSIX)/g' \ -e 's/@''GNULIB_MBTOWC''@/$(GL_LIBGL_GNULIB_MBTOWC)/g' \ -e 's/@''GNULIB_MKDTEMP''@/$(GL_LIBGL_GNULIB_MKDTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMP''@/$(GL_LIBGL_GNULIB_MKOSTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_LIBGL_GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GL_LIBGL_GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GL_LIBGL_GNULIB_MKSTEMPS)/g' \ -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_LIBGL_GNULIB_POSIX_MEMALIGN)/g' \ -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_LIBGL_GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GL_LIBGL_GNULIB_PTSNAME)/g' \ -e 's/@''GNULIB_PTSNAME_R''@/$(GL_LIBGL_GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GL_LIBGL_GNULIB_PUTENV)/g' \ -e 's/@''GNULIB_QSORT_R''@/$(GL_LIBGL_GNULIB_QSORT_R)/g' \ -e 's/@''GNULIB_RANDOM''@/$(GL_LIBGL_GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GL_LIBGL_GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_LIBGL_GNULIB_REALLOC_GNU)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_LIBGL_GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_LIBGL_GNULIB_REALLOCARRAY)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GL_LIBGL_GNULIB_REALPATH)/g' \ -e 's/@''GNULIB_RPMATCH''@/$(GL_LIBGL_GNULIB_RPMATCH)/g' \ -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_LIBGL_GNULIB_SECURE_GETENV)/g' \ -e 's/@''GNULIB_SETENV''@/$(GL_LIBGL_GNULIB_SETENV)/g' \ -e 's/@''GNULIB_STRTOD''@/$(GL_LIBGL_GNULIB_STRTOD)/g' \ -e 's/@''GNULIB_STRTOL''@/$(GL_LIBGL_GNULIB_STRTOL)/g' \ -e 's/@''GNULIB_STRTOLD''@/$(GL_LIBGL_GNULIB_STRTOLD)/g' \ -e 's/@''GNULIB_STRTOLL''@/$(GL_LIBGL_GNULIB_STRTOLL)/g' \ -e 's/@''GNULIB_STRTOUL''@/$(GL_LIBGL_GNULIB_STRTOUL)/g' \ -e 's/@''GNULIB_STRTOULL''@/$(GL_LIBGL_GNULIB_STRTOULL)/g' \ -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_LIBGL_GNULIB_SYSTEM_POSIX)/g' \ -e 's/@''GNULIB_UNLOCKPT''@/$(GL_LIBGL_GNULIB_UNLOCKPT)/g' \ -e 's/@''GNULIB_UNSETENV''@/$(GL_LIBGL_GNULIB_UNSETENV)/g' \ -e 's/@''GNULIB_WCTOMB''@/$(GL_LIBGL_GNULIB_WCTOMB)/g' \ -e 's/@''GNULIB_MDA_ECVT''@/$(GL_LIBGL_GNULIB_MDA_ECVT)/g' \ -e 's/@''GNULIB_MDA_FCVT''@/$(GL_LIBGL_GNULIB_MDA_FCVT)/g' \ -e 's/@''GNULIB_MDA_GCVT''@/$(GL_LIBGL_GNULIB_MDA_GCVT)/g' \ -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_LIBGL_GNULIB_MDA_MKTEMP)/g' \ -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_LIBGL_GNULIB_MDA_PUTENV)/g' \ < $(srcdir)/stdlib.in.h | \ sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \ -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \ -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \ -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \ -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \ -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \ -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \ -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \ -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \ -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \ -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \ -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \ -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \ -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \ -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \ -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \ -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \ -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \ -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \ -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \ -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \ -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \ -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \ -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \ -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _Noreturn/r $(_NORETURN_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_LIBGL_GNULIB_EXPLICIT_BZERO)/g' \ -e 's/@''GNULIB_FFSL''@/$(GL_LIBGL_GNULIB_FFSL)/g' \ -e 's/@''GNULIB_FFSLL''@/$(GL_LIBGL_GNULIB_FFSLL)/g' \ -e 's/@''GNULIB_MBSLEN''@/$(GL_LIBGL_GNULIB_MBSLEN)/g' \ -e 's/@''GNULIB_MBSNLEN''@/$(GL_LIBGL_GNULIB_MBSNLEN)/g' \ -e 's/@''GNULIB_MBSCHR''@/$(GL_LIBGL_GNULIB_MBSCHR)/g' \ -e 's/@''GNULIB_MBSRCHR''@/$(GL_LIBGL_GNULIB_MBSRCHR)/g' \ -e 's/@''GNULIB_MBSSTR''@/$(GL_LIBGL_GNULIB_MBSSTR)/g' \ -e 's/@''GNULIB_MBSCASECMP''@/$(GL_LIBGL_GNULIB_MBSCASECMP)/g' \ -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_LIBGL_GNULIB_MBSNCASECMP)/g' \ -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_LIBGL_GNULIB_MBSPCASECMP)/g' \ -e 's/@''GNULIB_MBSCASESTR''@/$(GL_LIBGL_GNULIB_MBSCASESTR)/g' \ -e 's/@''GNULIB_MBSCSPN''@/$(GL_LIBGL_GNULIB_MBSCSPN)/g' \ -e 's/@''GNULIB_MBSPBRK''@/$(GL_LIBGL_GNULIB_MBSPBRK)/g' \ -e 's/@''GNULIB_MBSSPN''@/$(GL_LIBGL_GNULIB_MBSSPN)/g' \ -e 's/@''GNULIB_MBSSEP''@/$(GL_LIBGL_GNULIB_MBSSEP)/g' \ -e 's/@''GNULIB_MBSTOK_R''@/$(GL_LIBGL_GNULIB_MBSTOK_R)/g' \ -e 's/@''GNULIB_MEMCHR''@/$(GL_LIBGL_GNULIB_MEMCHR)/g' \ -e 's/@''GNULIB_MEMMEM''@/$(GL_LIBGL_GNULIB_MEMMEM)/g' \ -e 's/@''GNULIB_MEMPCPY''@/$(GL_LIBGL_GNULIB_MEMPCPY)/g' \ -e 's/@''GNULIB_MEMRCHR''@/$(GL_LIBGL_GNULIB_MEMRCHR)/g' \ -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_LIBGL_GNULIB_RAWMEMCHR)/g' \ -e 's/@''GNULIB_STPCPY''@/$(GL_LIBGL_GNULIB_STPCPY)/g' \ -e 's/@''GNULIB_STPNCPY''@/$(GL_LIBGL_GNULIB_STPNCPY)/g' \ -e 's/@''GNULIB_STRCHRNUL''@/$(GL_LIBGL_GNULIB_STRCHRNUL)/g' \ -e 's/@''GNULIB_STRDUP''@/$(GL_LIBGL_GNULIB_STRDUP)/g' \ -e 's/@''GNULIB_STRNCAT''@/$(GL_LIBGL_GNULIB_STRNCAT)/g' \ -e 's/@''GNULIB_STRNDUP''@/$(GL_LIBGL_GNULIB_STRNDUP)/g' \ -e 's/@''GNULIB_STRNLEN''@/$(GL_LIBGL_GNULIB_STRNLEN)/g' \ -e 's/@''GNULIB_STRPBRK''@/$(GL_LIBGL_GNULIB_STRPBRK)/g' \ -e 's/@''GNULIB_STRSEP''@/$(GL_LIBGL_GNULIB_STRSEP)/g' \ -e 's/@''GNULIB_STRSTR''@/$(GL_LIBGL_GNULIB_STRSTR)/g' \ -e 's/@''GNULIB_STRCASESTR''@/$(GL_LIBGL_GNULIB_STRCASESTR)/g' \ -e 's/@''GNULIB_STRTOK_R''@/$(GL_LIBGL_GNULIB_STRTOK_R)/g' \ -e 's/@''GNULIB_STRERROR''@/$(GL_LIBGL_GNULIB_STRERROR)/g' \ -e 's/@''GNULIB_STRERROR_R''@/$(GL_LIBGL_GNULIB_STRERROR_R)/g' \ -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_LIBGL_GNULIB_STRERRORNAME_NP)/g' \ -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_LIBGL_GNULIB_SIGABBREV_NP)/g' \ -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_LIBGL_GNULIB_SIGDESCR_NP)/g' \ -e 's/@''GNULIB_STRSIGNAL''@/$(GL_LIBGL_GNULIB_STRSIGNAL)/g' \ -e 's/@''GNULIB_STRVERSCMP''@/$(GL_LIBGL_GNULIB_STRVERSCMP)/g' \ -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_LIBGL_GNULIB_MDA_MEMCCPY)/g' \ -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_LIBGL_GNULIB_MDA_STRDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/string.in.h | \ sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \ -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \ -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \ -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \ -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \ -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \ -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \ -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \ -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \ -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \ -e 's/@''GNULIB_FFS''@/$(GL_LIBGL_GNULIB_FFS)/g' \ -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \ -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/strings.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one. sys/random.h: sys_random.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_RANDOM_H''@|$(NEXT_SYS_RANDOM_H)|g' \ -e 's|@''HAVE_SYS_RANDOM_H''@|$(HAVE_SYS_RANDOM_H)|g' \ -e 's/@''GNULIB_GETRANDOM''@/$(GL_LIBGL_GNULIB_GETRANDOM)/g' \ -e 's/@''HAVE_GETRANDOM''@/$(HAVE_GETRANDOM)/g' \ -e 's/@''REPLACE_GETRANDOM''@/$(REPLACE_GETRANDOM)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_random.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ -e 's/@''GNULIB_PSELECT''@/$(GL_LIBGL_GNULIB_PSELECT)/g' \ -e 's/@''GNULIB_SELECT''@/$(GL_LIBGL_GNULIB_SELECT)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \ -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \ -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_select.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \ -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_LIBGL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_SOCKET''@/$(GL_LIBGL_GNULIB_SOCKET)/g' \ -e 's/@''GNULIB_CONNECT''@/$(GL_LIBGL_GNULIB_CONNECT)/g' \ -e 's/@''GNULIB_ACCEPT''@/$(GL_LIBGL_GNULIB_ACCEPT)/g' \ -e 's/@''GNULIB_BIND''@/$(GL_LIBGL_GNULIB_BIND)/g' \ -e 's/@''GNULIB_GETPEERNAME''@/$(GL_LIBGL_GNULIB_GETPEERNAME)/g' \ -e 's/@''GNULIB_GETSOCKNAME''@/$(GL_LIBGL_GNULIB_GETSOCKNAME)/g' \ -e 's/@''GNULIB_GETSOCKOPT''@/$(GL_LIBGL_GNULIB_GETSOCKOPT)/g' \ -e 's/@''GNULIB_LISTEN''@/$(GL_LIBGL_GNULIB_LISTEN)/g' \ -e 's/@''GNULIB_RECV''@/$(GL_LIBGL_GNULIB_RECV)/g' \ -e 's/@''GNULIB_SEND''@/$(GL_LIBGL_GNULIB_SEND)/g' \ -e 's/@''GNULIB_RECVFROM''@/$(GL_LIBGL_GNULIB_RECVFROM)/g' \ -e 's/@''GNULIB_SENDTO''@/$(GL_LIBGL_GNULIB_SENDTO)/g' \ -e 's/@''GNULIB_SETSOCKOPT''@/$(GL_LIBGL_GNULIB_SETSOCKOPT)/g' \ -e 's/@''GNULIB_SHUTDOWN''@/$(GL_LIBGL_GNULIB_SHUTDOWN)/g' \ -e 's/@''GNULIB_ACCEPT4''@/$(GL_LIBGL_GNULIB_ACCEPT4)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \ -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \ -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_socket.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # has one that is incomplete. sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \ -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \ -e 's/@''GNULIB_CHMOD''@/$(GL_LIBGL_GNULIB_CHMOD)/g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GL_LIBGL_GNULIB_FCHMODAT)/g' \ -e 's/@''GNULIB_FSTAT''@/$(GL_LIBGL_GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GL_LIBGL_GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GL_LIBGL_GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_GETUMASK''@/$(GL_LIBGL_GNULIB_GETUMASK)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GL_LIBGL_GNULIB_LCHMOD)/g' \ -e 's/@''GNULIB_LSTAT''@/$(GL_LIBGL_GNULIB_LSTAT)/g' \ -e 's/@''GNULIB_MKDIR''@/$(GL_LIBGL_GNULIB_MKDIR)/g' \ -e 's/@''GNULIB_MKDIRAT''@/$(GL_LIBGL_GNULIB_MKDIRAT)/g' \ -e 's/@''GNULIB_MKFIFO''@/$(GL_LIBGL_GNULIB_MKFIFO)/g' \ -e 's/@''GNULIB_MKFIFOAT''@/$(GL_LIBGL_GNULIB_MKFIFOAT)/g' \ -e 's/@''GNULIB_MKNOD''@/$(GL_LIBGL_GNULIB_MKNOD)/g' \ -e 's/@''GNULIB_MKNODAT''@/$(GL_LIBGL_GNULIB_MKNODAT)/g' \ -e 's/@''GNULIB_STAT''@/$(GL_LIBGL_GNULIB_STAT)/g' \ -e 's/@''GNULIB_UTIMENSAT''@/$(GL_LIBGL_GNULIB_UTIMENSAT)/g' \ -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \ -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_LIBGL_GNULIB_MDA_CHMOD)/g' \ -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_LIBGL_GNULIB_MDA_MKDIR)/g' \ -e 's/@''GNULIB_MDA_UMASK''@/$(GL_LIBGL_GNULIB_MDA_UMASK)/g' \ -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \ -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \ -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \ -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \ -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \ -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_stat.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GL_LIBGL_GNULIB_GETTIMEOFDAY)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_time.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/types.h: sys_types.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \ $(srcdir)/sys_types.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/uio.h: sys_uio.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_UIO_H''@|$(NEXT_SYS_UIO_H)|g' \ -e 's|@''HAVE_SYS_UIO_H''@|$(HAVE_SYS_UIO_H)|g' \ $(srcdir)/sys_uio.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's/@''GNULIB_CTIME''@/$(GL_LIBGL_GNULIB_CTIME)/g' \ -e 's/@''GNULIB_LOCALTIME''@/$(GL_LIBGL_GNULIB_LOCALTIME)/g' \ -e 's/@''GNULIB_MKTIME''@/$(GL_LIBGL_GNULIB_MKTIME)/g' \ -e 's/@''GNULIB_NANOSLEEP''@/$(GL_LIBGL_GNULIB_NANOSLEEP)/g' \ -e 's/@''GNULIB_STRFTIME''@/$(GL_LIBGL_GNULIB_STRFTIME)/g' \ -e 's/@''GNULIB_STRPTIME''@/$(GL_LIBGL_GNULIB_STRPTIME)/g' \ -e 's/@''GNULIB_TIMEGM''@/$(GL_LIBGL_GNULIB_TIMEGM)/g' \ -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_LIBGL_GNULIB_TIMESPEC_GET)/g' \ -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_LIBGL_GNULIB_TIMESPEC_GETRES)/g' \ -e 's/@''GNULIB_TIME_R''@/$(GL_LIBGL_GNULIB_TIME_R)/g' \ -e 's/@''GNULIB_TIME_RZ''@/$(GL_LIBGL_GNULIB_TIME_RZ)/g' \ -e 's/@''GNULIB_TZSET''@/$(GL_LIBGL_GNULIB_TZSET)/g' \ -e 's/@''GNULIB_MDA_TZSET''@/$(GL_LIBGL_GNULIB_MDA_TZSET)/g' \ -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \ -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \ -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \ -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \ -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \ -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \ -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/time.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's/@''GNULIB_ACCESS''@/$(GL_LIBGL_GNULIB_ACCESS)/g' \ -e 's/@''GNULIB_CHDIR''@/$(GL_LIBGL_GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GL_LIBGL_GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_LIBGL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_LIBGL_GNULIB_COPY_FILE_RANGE)/g' \ -e 's/@''GNULIB_DUP''@/$(GL_LIBGL_GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GL_LIBGL_GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GL_LIBGL_GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GL_LIBGL_GNULIB_ENVIRON)/g' \ -e 's/@''GNULIB_EUIDACCESS''@/$(GL_LIBGL_GNULIB_EUIDACCESS)/g' \ -e 's/@''GNULIB_EXECL''@/$(GL_LIBGL_GNULIB_EXECL)/g' \ -e 's/@''GNULIB_EXECLE''@/$(GL_LIBGL_GNULIB_EXECLE)/g' \ -e 's/@''GNULIB_EXECLP''@/$(GL_LIBGL_GNULIB_EXECLP)/g' \ -e 's/@''GNULIB_EXECV''@/$(GL_LIBGL_GNULIB_EXECV)/g' \ -e 's/@''GNULIB_EXECVE''@/$(GL_LIBGL_GNULIB_EXECVE)/g' \ -e 's/@''GNULIB_EXECVP''@/$(GL_LIBGL_GNULIB_EXECVP)/g' \ -e 's/@''GNULIB_EXECVPE''@/$(GL_LIBGL_GNULIB_EXECVPE)/g' \ -e 's/@''GNULIB_FACCESSAT''@/$(GL_LIBGL_GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GL_LIBGL_GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GL_LIBGL_GNULIB_FCHOWNAT)/g' \ -e 's/@''GNULIB_FDATASYNC''@/$(GL_LIBGL_GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GL_LIBGL_GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GL_LIBGL_GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GL_LIBGL_GNULIB_GETCWD)/g' \ -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_LIBGL_GNULIB_GETDOMAINNAME)/g' \ -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_LIBGL_GNULIB_GETDTABLESIZE)/g' \ -e 's/@''GNULIB_GETENTROPY''@/$(GL_LIBGL_GNULIB_GETENTROPY)/g' \ -e 's/@''GNULIB_GETGROUPS''@/$(GL_LIBGL_GNULIB_GETGROUPS)/g' \ -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_LIBGL_GNULIB_GETHOSTNAME)/g' \ -e 's/@''GNULIB_GETLOGIN''@/$(GL_LIBGL_GNULIB_GETLOGIN)/g' \ -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_LIBGL_GNULIB_GETLOGIN_R)/g' \ -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_LIBGL_GNULIB_GETOPT_POSIX)/g' \ -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_LIBGL_GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETPASS''@/$(GL_LIBGL_GNULIB_GETPASS)/g' \ -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_LIBGL_GNULIB_GETPASS_GNU)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_LIBGL_GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_LIBGL_GNULIB_GROUP_MEMBER)/g' \ -e 's/@''GNULIB_ISATTY''@/$(GL_LIBGL_GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GL_LIBGL_GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GL_LIBGL_GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GL_LIBGL_GNULIB_LINKAT)/g' \ -e 's/@''GNULIB_LSEEK''@/$(GL_LIBGL_GNULIB_LSEEK)/g' \ -e 's/@''GNULIB_PIPE''@/$(GL_LIBGL_GNULIB_PIPE)/g' \ -e 's/@''GNULIB_PIPE2''@/$(GL_LIBGL_GNULIB_PIPE2)/g' \ -e 's/@''GNULIB_PREAD''@/$(GL_LIBGL_GNULIB_PREAD)/g' \ -e 's/@''GNULIB_PWRITE''@/$(GL_LIBGL_GNULIB_PWRITE)/g' \ -e 's/@''GNULIB_READ''@/$(GL_LIBGL_GNULIB_READ)/g' \ -e 's/@''GNULIB_READLINK''@/$(GL_LIBGL_GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GL_LIBGL_GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GL_LIBGL_GNULIB_RMDIR)/g' \ -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_LIBGL_GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GL_LIBGL_GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GL_LIBGL_GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GL_LIBGL_GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TRUNCATE''@/$(GL_LIBGL_GNULIB_TRUNCATE)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GL_LIBGL_GNULIB_TTYNAME_R)/g' \ -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_LIBGL_GNULIB_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GL_LIBGL_GNULIB_UNLINK)/g' \ -e 's/@''GNULIB_UNLINKAT''@/$(GL_LIBGL_GNULIB_UNLINKAT)/g' \ -e 's/@''GNULIB_USLEEP''@/$(GL_LIBGL_GNULIB_USLEEP)/g' \ -e 's/@''GNULIB_WRITE''@/$(GL_LIBGL_GNULIB_WRITE)/g' \ -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_LIBGL_GNULIB_MDA_ACCESS)/g' \ -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_LIBGL_GNULIB_MDA_CHDIR)/g' \ -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_LIBGL_GNULIB_MDA_CLOSE)/g' \ -e 's/@''GNULIB_MDA_DUP''@/$(GL_LIBGL_GNULIB_MDA_DUP)/g' \ -e 's/@''GNULIB_MDA_DUP2''@/$(GL_LIBGL_GNULIB_MDA_DUP2)/g' \ -e 's/@''GNULIB_MDA_EXECL''@/$(GL_LIBGL_GNULIB_MDA_EXECL)/g' \ -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_LIBGL_GNULIB_MDA_EXECLE)/g' \ -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_LIBGL_GNULIB_MDA_EXECLP)/g' \ -e 's/@''GNULIB_MDA_EXECV''@/$(GL_LIBGL_GNULIB_MDA_EXECV)/g' \ -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_LIBGL_GNULIB_MDA_EXECVE)/g' \ -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_LIBGL_GNULIB_MDA_EXECVP)/g' \ -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_LIBGL_GNULIB_MDA_EXECVPE)/g' \ -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_LIBGL_GNULIB_MDA_GETCWD)/g' \ -e 's/@''GNULIB_MDA_GETPID''@/$(GL_LIBGL_GNULIB_MDA_GETPID)/g' \ -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_LIBGL_GNULIB_MDA_ISATTY)/g' \ -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_LIBGL_GNULIB_MDA_LSEEK)/g' \ -e 's/@''GNULIB_MDA_READ''@/$(GL_LIBGL_GNULIB_MDA_READ)/g' \ -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_LIBGL_GNULIB_MDA_RMDIR)/g' \ -e 's/@''GNULIB_MDA_SWAB''@/$(GL_LIBGL_GNULIB_MDA_SWAB)/g' \ -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_LIBGL_GNULIB_MDA_UNLINK)/g' \ -e 's/@''GNULIB_MDA_WRITE''@/$(GL_LIBGL_GNULIB_MDA_WRITE)/g' \ < $(srcdir)/unistd.in.h | \ sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \ -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \ -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \ -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \ -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ | \ sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \ -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \ -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \ -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \ -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \ -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \ -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \ -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \ -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \ -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \ -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \ -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \ -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \ -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \ -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \ -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \ -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # version does not work standalone. wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ -e 's/@''GNULIB_BTOWC''@/$(GL_LIBGL_GNULIB_BTOWC)/g' \ -e 's/@''GNULIB_WCTOB''@/$(GL_LIBGL_GNULIB_WCTOB)/g' \ -e 's/@''GNULIB_MBSINIT''@/$(GL_LIBGL_GNULIB_MBSINIT)/g' \ -e 's/@''GNULIB_MBRTOWC''@/$(GL_LIBGL_GNULIB_MBRTOWC)/g' \ -e 's/@''GNULIB_MBRLEN''@/$(GL_LIBGL_GNULIB_MBRLEN)/g' \ -e 's/@''GNULIB_MBSRTOWCS''@/$(GL_LIBGL_GNULIB_MBSRTOWCS)/g' \ -e 's/@''GNULIB_MBSNRTOWCS''@/$(GL_LIBGL_GNULIB_MBSNRTOWCS)/g' \ -e 's/@''GNULIB_WCRTOMB''@/$(GL_LIBGL_GNULIB_WCRTOMB)/g' \ -e 's/@''GNULIB_WCSRTOMBS''@/$(GL_LIBGL_GNULIB_WCSRTOMBS)/g' \ -e 's/@''GNULIB_WCSNRTOMBS''@/$(GL_LIBGL_GNULIB_WCSNRTOMBS)/g' \ -e 's/@''GNULIB_WCWIDTH''@/$(GL_LIBGL_GNULIB_WCWIDTH)/g' \ -e 's/@''GNULIB_WMEMCHR''@/$(GL_LIBGL_GNULIB_WMEMCHR)/g' \ -e 's/@''GNULIB_WMEMCMP''@/$(GL_LIBGL_GNULIB_WMEMCMP)/g' \ -e 's/@''GNULIB_WMEMCPY''@/$(GL_LIBGL_GNULIB_WMEMCPY)/g' \ -e 's/@''GNULIB_WMEMMOVE''@/$(GL_LIBGL_GNULIB_WMEMMOVE)/g' \ -e 's/@''GNULIB_WMEMPCPY''@/$(GL_LIBGL_GNULIB_WMEMPCPY)/g' \ -e 's/@''GNULIB_WMEMSET''@/$(GL_LIBGL_GNULIB_WMEMSET)/g' \ -e 's/@''GNULIB_WCSLEN''@/$(GL_LIBGL_GNULIB_WCSLEN)/g' \ -e 's/@''GNULIB_WCSNLEN''@/$(GL_LIBGL_GNULIB_WCSNLEN)/g' \ -e 's/@''GNULIB_WCSCPY''@/$(GL_LIBGL_GNULIB_WCSCPY)/g' \ -e 's/@''GNULIB_WCPCPY''@/$(GL_LIBGL_GNULIB_WCPCPY)/g' \ -e 's/@''GNULIB_WCSNCPY''@/$(GL_LIBGL_GNULIB_WCSNCPY)/g' \ -e 's/@''GNULIB_WCPNCPY''@/$(GL_LIBGL_GNULIB_WCPNCPY)/g' \ -e 's/@''GNULIB_WCSCAT''@/$(GL_LIBGL_GNULIB_WCSCAT)/g' \ -e 's/@''GNULIB_WCSNCAT''@/$(GL_LIBGL_GNULIB_WCSNCAT)/g' \ -e 's/@''GNULIB_WCSCMP''@/$(GL_LIBGL_GNULIB_WCSCMP)/g' \ -e 's/@''GNULIB_WCSNCMP''@/$(GL_LIBGL_GNULIB_WCSNCMP)/g' \ -e 's/@''GNULIB_WCSCASECMP''@/$(GL_LIBGL_GNULIB_WCSCASECMP)/g' \ -e 's/@''GNULIB_WCSNCASECMP''@/$(GL_LIBGL_GNULIB_WCSNCASECMP)/g' \ -e 's/@''GNULIB_WCSCOLL''@/$(GL_LIBGL_GNULIB_WCSCOLL)/g' \ -e 's/@''GNULIB_WCSXFRM''@/$(GL_LIBGL_GNULIB_WCSXFRM)/g' \ -e 's/@''GNULIB_WCSDUP''@/$(GL_LIBGL_GNULIB_WCSDUP)/g' \ -e 's/@''GNULIB_WCSCHR''@/$(GL_LIBGL_GNULIB_WCSCHR)/g' \ -e 's/@''GNULIB_WCSRCHR''@/$(GL_LIBGL_GNULIB_WCSRCHR)/g' \ -e 's/@''GNULIB_WCSCSPN''@/$(GL_LIBGL_GNULIB_WCSCSPN)/g' \ -e 's/@''GNULIB_WCSSPN''@/$(GL_LIBGL_GNULIB_WCSSPN)/g' \ -e 's/@''GNULIB_WCSPBRK''@/$(GL_LIBGL_GNULIB_WCSPBRK)/g' \ -e 's/@''GNULIB_WCSSTR''@/$(GL_LIBGL_GNULIB_WCSSTR)/g' \ -e 's/@''GNULIB_WCSTOK''@/$(GL_LIBGL_GNULIB_WCSTOK)/g' \ -e 's/@''GNULIB_WCSWIDTH''@/$(GL_LIBGL_GNULIB_WCSWIDTH)/g' \ -e 's/@''GNULIB_WCSFTIME''@/$(GL_LIBGL_GNULIB_WCSFTIME)/g' \ -e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_LIBGL_GNULIB_MDA_WCSDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/wchar.in.h | \ sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ -e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \ -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \ -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \ -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \ -e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \ -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \ -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \ -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \ -e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \ -e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \ -e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \ -e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \ -e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \ -e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \ -e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \ -e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \ -e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \ -e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \ -e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \ -e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \ -e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \ -e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \ -e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \ -e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \ -e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \ -e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \ -e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \ -e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \ -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \ -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \ -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ | \ sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \ -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \ -e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : distclean-local: distclean-gnulib-libobjs distclean-gnulib-libobjs: -rm -f @libgl_LIBOBJDEPS@ maintainer-clean-local: distclean-gnulib-libobjs # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/lib/gl/netinet_in.in.h0000644000000000000000000000253614273615123013765 00000000000000/* Substitute for . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_NETINET_IN_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if @HAVE_NETINET_IN_H@ /* On many platforms, assumes prior inclusion of . */ # include /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_NETINET_IN_H@ #endif #ifndef _@GUARD_PREFIX@_NETINET_IN_H #define _@GUARD_PREFIX@_NETINET_IN_H #if !@HAVE_NETINET_IN_H@ /* A platform that lacks . */ # include #endif #endif /* _@GUARD_PREFIX@_NETINET_IN_H */ #endif /* _@GUARD_PREFIX@_NETINET_IN_H */ shishi-1.0.3/lib/gl/xgetaname-impl.h0000644000000000000000000000417114273615123014131 00000000000000/* xgetaname-impl.c -- common implementation of xgethostname and xgetdomainname Copyright (C) 1992, 1996, 2000-2001, 2003-2006, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* written by Jim Meyering and Paul Eggert */ #include #include #include #include #include "xalloc.h" /* Return the current host or domain name in malloc'd storage. If malloc fails, exit. Upon any other failure, return NULL and set errno. */ char * XGETANAME (void) { char buf[100]; idx_t size = sizeof buf; char *name = buf; char *alloc = NULL; while (1) { /* Use SIZE_1 here rather than SIZE to work around the bug in SunOS 5.5's gethostname whereby it NUL-terminates HOSTNAME even when the name is as long as the supplied buffer. */ idx_t size_1 = size - 1; name[size_1] = '\0'; errno = 0; if (GETANAME (name, size_1) == 0) { /* Check whether the name was possibly truncated; POSIX does not specify whether a truncated name is null-terminated. */ idx_t actual_size = strlen (name) + 1; if (actual_size < size_1) return alloc ? alloc : ximemdup (name, actual_size); errno = 0; } free (alloc); if (errno != 0 && errno != ENAMETOOLONG && errno != EINVAL /* macOS/Darwin does this when SIZE_1 is too small. */ && errno != ENOMEM) return NULL; name = alloc = xpalloc (NULL, &size, 1, -1, 1); } } shishi-1.0.3/lib/gl/filename.h0000644000000000000000000001110614273615122012774 00000000000000/* Basic filename support macros. Copyright (C) 2001-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ /* From Paul Eggert and Jim Meyering. */ #ifndef _FILENAME_H #define _FILENAME_H #include #ifdef __cplusplus extern "C" { #endif /* Filename support. ISSLASH(C) tests whether C is a directory separator character. HAS_DEVICE(Filename) tests whether Filename contains a device specification. FILE_SYSTEM_PREFIX_LEN(Filename) length of the device specification at the beginning of Filename, index of the part consisting of alternating components and slashes. FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1 when a non-empty device specification can be followed by an empty or relative part, 0 when a non-empty device specification must be followed by a slash, 0 when device specification don't exist. IS_ABSOLUTE_FILE_NAME(Filename) tests whether Filename is independent of any notion of "current directory". IS_RELATIVE_FILE_NAME(Filename) tests whether Filename may be concatenated to a directory filename. Note: On native Windows, OS/2, DOS, "c:" is neither an absolute nor a relative file name! IS_FILE_NAME_WITH_DIR(Filename) tests whether Filename contains a device or directory specification. */ #if defined _WIN32 || defined __CYGWIN__ \ || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__ /* Native Windows, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') /* Internal macro: Tests whether a character is a drive letter. */ # define _IS_DRIVE_LETTER(C) \ (((C) >= 'A' && (C) <= 'Z') || ((C) >= 'a' && (C) <= 'z')) /* Help the compiler optimizing it. This assumes ASCII. */ # undef _IS_DRIVE_LETTER # define _IS_DRIVE_LETTER(C) \ (((unsigned int) (C) | ('a' - 'A')) - 'a' <= 'z' - 'a') # define HAS_DEVICE(Filename) \ (_IS_DRIVE_LETTER ((Filename)[0]) && (Filename)[1] == ':') # define FILE_SYSTEM_PREFIX_LEN(Filename) (HAS_DEVICE (Filename) ? 2 : 0) # ifdef __CYGWIN__ # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0 # else /* On native Windows, OS/2, DOS, the system has the notion of a "current directory" on each drive. */ # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1 # endif # if FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE # define IS_ABSOLUTE_FILE_NAME(Filename) \ ISSLASH ((Filename)[FILE_SYSTEM_PREFIX_LEN (Filename)]) # else # define IS_ABSOLUTE_FILE_NAME(Filename) \ (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename)) # endif # define IS_RELATIVE_FILE_NAME(Filename) \ (! (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename))) # define IS_FILE_NAME_WITH_DIR(Filename) \ (strchr ((Filename), '/') != NULL || strchr ((Filename), '\\') != NULL \ || HAS_DEVICE (Filename)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define HAS_DEVICE(Filename) ((void) (Filename), 0) # define FILE_SYSTEM_PREFIX_LEN(Filename) ((void) (Filename), 0) # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0 # define IS_ABSOLUTE_FILE_NAME(Filename) ISSLASH ((Filename)[0]) # define IS_RELATIVE_FILE_NAME(Filename) (! ISSLASH ((Filename)[0])) # define IS_FILE_NAME_WITH_DIR(Filename) (strchr ((Filename), '/') != NULL) #endif /* Deprecated macros. For backward compatibility with old users of the 'filename' module. */ #define IS_ABSOLUTE_PATH IS_ABSOLUTE_FILE_NAME #define IS_PATH_WITH_DIR IS_FILE_NAME_WITH_DIR #ifdef __cplusplus } #endif #endif /* _FILENAME_H */ shishi-1.0.3/lib/gl/printf-args.c0000644000000000000000000001460014273615123013446 00000000000000/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be defined. STATIC Set to 'static' to declare the function static. */ #ifndef PRINTF_FETCHARGS # include #endif /* Specification. */ #ifndef PRINTF_FETCHARGS # include "printf-args.h" #endif #ifdef STATIC STATIC #endif int PRINTF_FETCHARGS (va_list args, arguments *a) { size_t i; argument *ap; for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) switch (ap->type) { case TYPE_SCHAR: ap->a.a_schar = va_arg (args, /*signed char*/ int); break; case TYPE_UCHAR: ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); break; case TYPE_SHORT: ap->a.a_short = va_arg (args, /*short*/ int); break; case TYPE_USHORT: ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); break; case TYPE_INT: ap->a.a_int = va_arg (args, int); break; case TYPE_UINT: ap->a.a_uint = va_arg (args, unsigned int); break; case TYPE_LONGINT: ap->a.a_longint = va_arg (args, long int); break; case TYPE_ULONGINT: ap->a.a_ulongint = va_arg (args, unsigned long int); break; case TYPE_LONGLONGINT: ap->a.a_longlongint = va_arg (args, long long int); break; case TYPE_ULONGLONGINT: ap->a.a_ulonglongint = va_arg (args, unsigned long long int); break; case TYPE_DOUBLE: ap->a.a_double = va_arg (args, double); break; case TYPE_LONGDOUBLE: ap->a.a_longdouble = va_arg (args, long double); break; case TYPE_CHAR: ap->a.a_char = va_arg (args, int); break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by default argument promotions", this is not the case in mingw32, where wint_t is 'unsigned short'. */ ap->a.a_wide_char = (sizeof (wint_t) < sizeof (int) ? (wint_t) va_arg (args, int) : va_arg (args, wint_t)); break; #endif case TYPE_STRING: ap->a.a_string = va_arg (args, const char *); /* A null pointer is an invalid argument for "%s", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_string == NULL) ap->a.a_string = "(NULL)"; break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: ap->a.a_wide_string = va_arg (args, const wchar_t *); /* A null pointer is an invalid argument for "%ls", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_wide_string == NULL) { static const wchar_t wide_null_string[] = { (wchar_t)'(', (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', (wchar_t)')', (wchar_t)0 }; ap->a.a_wide_string = wide_null_string; } break; #endif case TYPE_POINTER: ap->a.a_pointer = va_arg (args, void *); break; case TYPE_COUNT_SCHAR_POINTER: ap->a.a_count_schar_pointer = va_arg (args, signed char *); break; case TYPE_COUNT_SHORT_POINTER: ap->a.a_count_short_pointer = va_arg (args, short *); break; case TYPE_COUNT_INT_POINTER: ap->a.a_count_int_pointer = va_arg (args, int *); break; case TYPE_COUNT_LONGINT_POINTER: ap->a.a_count_longint_pointer = va_arg (args, long int *); break; case TYPE_COUNT_LONGLONGINT_POINTER: ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); break; #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: ap->a.a_u8_string = va_arg (args, const uint8_t *); /* A null pointer is an invalid argument for "%U", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u8_string == NULL) { static const uint8_t u8_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u8_string = u8_null_string; } break; case TYPE_U16_STRING: ap->a.a_u16_string = va_arg (args, const uint16_t *); /* A null pointer is an invalid argument for "%lU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u16_string == NULL) { static const uint16_t u16_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u16_string = u16_null_string; } break; case TYPE_U32_STRING: ap->a.a_u32_string = va_arg (args, const uint32_t *); /* A null pointer is an invalid argument for "%llU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u32_string == NULL) { static const uint32_t u32_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u32_string = u32_null_string; } break; #endif default: /* Unknown type. */ return -1; } return 0; } shishi-1.0.3/lib/gl/md5.h0000644000000000000000000001143014273615123011702 00000000000000/* Declaration of functions and data types used for MD5 sum computing library functions. Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MD5_H #define _MD5_H 1 #include #include # if HAVE_OPENSSL_MD5 # ifndef OPENSSL_API_COMPAT # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ # endif # include # endif #define MD5_DIGEST_SIZE 16 #define MD5_BLOCK_SIZE 64 #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_MINOR__ # define __GNUC_PREREQ(maj, min) \ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # else # define __GNUC_PREREQ(maj, min) 0 # endif #endif #ifndef __THROW # if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4) # define __THROW throw () # else # define __THROW # endif #endif #ifndef _LIBC # define __md5_buffer md5_buffer # define __md5_finish_ctx md5_finish_ctx # define __md5_init_ctx md5_init_ctx # define __md5_process_block md5_process_block # define __md5_process_bytes md5_process_bytes # define __md5_read_ctx md5_read_ctx # define __md5_stream md5_stream #endif # ifdef __cplusplus extern "C" { # endif # if HAVE_OPENSSL_MD5 # define GL_OPENSSL_NAME 5 # include "gl_openssl.h" # else /* Structure to save state of computation between the single steps. */ struct md5_ctx { uint32_t A; uint32_t B; uint32_t C; uint32_t D; uint32_t total[2]; uint32_t buflen; /* ≥ 0, ≤ 128 */ uint32_t buffer[32]; /* 128 bytes; the first buflen bytes are in use */ }; /* * The following three functions are build up the low level used in * the functions 'md5_stream' and 'md5_buffer'. */ /* Initialize structure containing state of computation. (RFC 1321, 3.3: Step 3) */ extern void __md5_init_ctx (struct md5_ctx *ctx) __THROW; /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is necessary that LEN is a multiple of 64!!! */ extern void __md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) __THROW; /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is NOT required that LEN is a multiple of 64. */ extern void __md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) __THROW; /* Process the remaining bytes in the buffer and put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *restrict resbuf) __THROW; /* Put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *restrict resbuf) __THROW; /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *__md5_buffer (const char *buffer, size_t len, void *restrict resblock) __THROW; # endif /* Compute MD5 message digest for bytes read from STREAM. STREAM is an open file stream. Regular files are handled more efficiently. The contents of STREAM from its current position to its end will be read. The case that the last operation on STREAM was an 'ungetc' is not supported. The resulting message digest number will be written into the 16 bytes beginning at RESBLOCK. */ extern int __md5_stream (FILE *stream, void *resblock) __THROW; # ifdef __cplusplus } # endif #endif /* md5.h */ /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/printf-parse.h0000644000000000000000000001222514273615123013632 00000000000000/* Parse printf format string. Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _PRINTF_PARSE_H #define _PRINTF_PARSE_H /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. STATIC Set to 'static' to declare the function static. */ #if HAVE_FEATURES_H # include /* for __GLIBC__, __UCLIBC__ */ #endif #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 #if __GLIBC__ >= 2 && !defined __UCLIBC__ # define FLAG_LOCALIZED 64 /* I flag, uses localized digits */ #endif /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* xxx_directive: A parsed directive. xxx_directives: A parsed format string. */ /* Number of directly allocated directives (no malloc() needed). */ #define N_DIRECT_ALLOC_DIRECTIVES 7 /* A parsed directive. */ typedef struct { const char* dir_start; const char* dir_end; int flags; const char* width_start; const char* width_end; size_t width_arg_index; const char* precision_start; const char* precision_end; size_t precision_arg_index; char conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ size_t arg_index; } char_directive; /* A parsed format string. */ typedef struct { size_t count; char_directive *dir; size_t max_width_length; size_t max_precision_length; char_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES]; } char_directives; #if ENABLE_UNISTDIO /* A parsed directive. */ typedef struct { const uint8_t* dir_start; const uint8_t* dir_end; int flags; const uint8_t* width_start; const uint8_t* width_end; size_t width_arg_index; const uint8_t* precision_start; const uint8_t* precision_end; size_t precision_arg_index; uint8_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ size_t arg_index; } u8_directive; /* A parsed format string. */ typedef struct { size_t count; u8_directive *dir; size_t max_width_length; size_t max_precision_length; u8_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES]; } u8_directives; /* A parsed directive. */ typedef struct { const uint16_t* dir_start; const uint16_t* dir_end; int flags; const uint16_t* width_start; const uint16_t* width_end; size_t width_arg_index; const uint16_t* precision_start; const uint16_t* precision_end; size_t precision_arg_index; uint16_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ size_t arg_index; } u16_directive; /* A parsed format string. */ typedef struct { size_t count; u16_directive *dir; size_t max_width_length; size_t max_precision_length; u16_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES]; } u16_directives; /* A parsed directive. */ typedef struct { const uint32_t* dir_start; const uint32_t* dir_end; int flags; const uint32_t* width_start; const uint32_t* width_end; size_t width_arg_index; const uint32_t* precision_start; const uint32_t* precision_end; size_t precision_arg_index; uint32_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */ size_t arg_index; } u32_directive; /* A parsed format string. */ typedef struct { size_t count; u32_directive *dir; size_t max_width_length; size_t max_precision_length; u32_directive direct_alloc_dir[N_DIRECT_ALLOC_DIRECTIVES]; } u32_directives; #endif /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #if ENABLE_UNISTDIO extern int ulc_printf_parse (const char *format, char_directives *d, arguments *a); extern int u8_printf_parse (const uint8_t *format, u8_directives *d, arguments *a); extern int u16_printf_parse (const uint16_t *format, u16_directives *d, arguments *a); extern int u32_printf_parse (const uint32_t *format, u32_directives *d, arguments *a); #else # ifdef STATIC STATIC # else extern # endif int printf_parse (const char *format, char_directives *d, arguments *a); #endif #endif /* _PRINTF_PARSE_H */ shishi-1.0.3/lib/gl/gc-gnulib.c0000644000000000000000000004373114273615122013067 00000000000000/* gc-gnulib.c --- Common gnulib internal crypto interface functions * Copyright (C) 2002-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Note: This file is only built if GC uses internal functions. */ #include /* Get prototype. */ #include "gc.h" #include #include /* For randomize. */ #if GNULIB_GC_RANDOM #include #include #include #endif /* Hashes. */ #if GNULIB_GC_MD2 # include "md2.h" #endif #if GNULIB_GC_MD4 # include "md4.h" #endif #if GNULIB_GC_MD5 # include "md5.h" #endif #if GNULIB_GC_SHA1 # include "sha1.h" #endif #if GNULIB_GC_SHA256 # include "sha256.h" #endif #if GNULIB_GC_SHA512 # include "sha512.h" #endif #if GNULIB_GC_SM3 # include "sm3.h" #endif #if GNULIB_GC_HMAC_MD5 || GNULIB_GC_HMAC_SHA1 || GNULIB_GC_HMAC_SHA256 || GNULIB_GC_HMAC_SHA512 # include "hmac.h" #endif /* Ciphers. */ #if GNULIB_GC_ARCFOUR # include "arcfour.h" #endif #if GNULIB_GC_ARCTWO # include "arctwo.h" #endif #if GNULIB_GC_DES # include "des.h" #endif #if GNULIB_GC_RIJNDAEL # include "rijndael-api-fst.h" #endif Gc_rc gc_init (void) { return GC_OK; } void gc_done (void) { return; } #if GNULIB_GC_RANDOM /* Overwrite BUFFER with random data, under the control of getrandom FLAGS. BUFFER contains LENGTH bytes. Inspired by getentropy, however LENGTH is not restricted to 256. Return 0 on success, -1 (setting errno) on failure. */ static int randomize (void *buffer, size_t length, unsigned int flags) { char *buf = buffer; for (;;) { ssize_t bytes; if (length == 0) return GC_OK; while ((bytes = getrandom (buf, length, flags)) < 0) if (errno != EINTR) return GC_RANDOM_ERROR; if (bytes == 0) break; buf += bytes; length -= bytes; } return GC_RANDOM_ERROR; } Gc_rc gc_nonce (char *data, size_t datalen) { return randomize (data, datalen, 0); } Gc_rc gc_pseudo_random (char *data, size_t datalen) { return randomize (data, datalen, 0); } Gc_rc gc_random (char *data, size_t datalen) { return randomize (data, datalen, GRND_RANDOM); } #endif /* Memory allocation. */ void gc_set_allocators (gc_malloc_t func_malloc, gc_malloc_t secure_malloc, gc_secure_check_t secure_check, gc_realloc_t func_realloc, gc_free_t func_free) { return; } /* Ciphers. */ typedef struct _gc_cipher_ctx { Gc_cipher alg; Gc_cipher_mode mode; #if GNULIB_GC_ARCTWO arctwo_context arctwoContext; char arctwoIV[ARCTWO_BLOCK_SIZE]; #endif #if GNULIB_GC_ARCFOUR arcfour_context arcfourContext; #endif #if GNULIB_GC_DES gl_des_ctx desContext; #endif #if GNULIB_GC_RIJNDAEL rijndaelKeyInstance aesEncKey; rijndaelKeyInstance aesDecKey; rijndaelCipherInstance aesContext; #endif } _gc_cipher_ctx; Gc_rc gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode, gc_cipher_handle * outhandle) { _gc_cipher_ctx *ctx; Gc_rc rc = GC_OK; ctx = calloc (sizeof (*ctx), 1); if (!ctx) return GC_MALLOC_ERROR; ctx->alg = alg; ctx->mode = mode; switch (alg) { #if GNULIB_GC_ARCTWO case GC_ARCTWO40: switch (mode) { case GC_ECB: case GC_CBC: break; default: rc = GC_INVALID_CIPHER; } break; #endif #if GNULIB_GC_ARCFOUR case GC_ARCFOUR128: case GC_ARCFOUR40: switch (mode) { case GC_STREAM: break; default: rc = GC_INVALID_CIPHER; } break; #endif #if GNULIB_GC_DES case GC_DES: switch (mode) { case GC_ECB: break; default: rc = GC_INVALID_CIPHER; } break; #endif #if GNULIB_GC_RIJNDAEL case GC_AES128: case GC_AES192: case GC_AES256: switch (mode) { case GC_ECB: case GC_CBC: break; default: rc = GC_INVALID_CIPHER; } break; #endif default: rc = GC_INVALID_CIPHER; } if (rc == GC_OK) *outhandle = ctx; else free (ctx); return rc; } Gc_rc gc_cipher_setkey (gc_cipher_handle handle, size_t keylen, const char *key) { _gc_cipher_ctx *ctx = handle; switch (ctx->alg) { #if GNULIB_GC_ARCTWO case GC_ARCTWO40: arctwo_setkey (&ctx->arctwoContext, keylen, key); break; #endif #if GNULIB_GC_ARCFOUR case GC_ARCFOUR128: case GC_ARCFOUR40: arcfour_setkey (&ctx->arcfourContext, key, keylen); break; #endif #if GNULIB_GC_DES case GC_DES: if (keylen != 8) return GC_INVALID_CIPHER; gl_des_setkey (&ctx->desContext, key); break; #endif #if GNULIB_GC_RIJNDAEL case GC_AES128: case GC_AES192: case GC_AES256: { rijndael_rc rc; size_t i; char keyMaterial[RIJNDAEL_MAX_KEY_SIZE + 1]; for (i = 0; i < keylen; i++) sprintf (&keyMaterial[2 * i], "%02x", key[i] & 0xFF); rc = rijndaelMakeKey (&ctx->aesEncKey, RIJNDAEL_DIR_ENCRYPT, keylen * 8, keyMaterial); if (rc < 0) return GC_INVALID_CIPHER; rc = rijndaelMakeKey (&ctx->aesDecKey, RIJNDAEL_DIR_DECRYPT, keylen * 8, keyMaterial); if (rc < 0) return GC_INVALID_CIPHER; rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_ECB, NULL); if (rc < 0) return GC_INVALID_CIPHER; } break; #endif default: return GC_INVALID_CIPHER; } return GC_OK; } Gc_rc gc_cipher_setiv (gc_cipher_handle handle, size_t ivlen, const char *iv) { _gc_cipher_ctx *ctx = handle; switch (ctx->alg) { #if GNULIB_GC_ARCTWO case GC_ARCTWO40: if (ivlen != ARCTWO_BLOCK_SIZE) return GC_INVALID_CIPHER; memcpy (ctx->arctwoIV, iv, ivlen); break; #endif #if GNULIB_GC_RIJNDAEL case GC_AES128: case GC_AES192: case GC_AES256: switch (ctx->mode) { case GC_ECB: /* Doesn't use IV. */ break; case GC_CBC: { rijndael_rc rc; size_t i; char ivMaterial[2 * RIJNDAEL_MAX_IV_SIZE + 1]; for (i = 0; i < ivlen; i++) sprintf (&ivMaterial[2 * i], "%02x", iv[i] & 0xFF); rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_CBC, ivMaterial); if (rc < 0) return GC_INVALID_CIPHER; } break; default: return GC_INVALID_CIPHER; } break; #endif default: return GC_INVALID_CIPHER; } return GC_OK; } Gc_rc gc_cipher_encrypt_inline (gc_cipher_handle handle, size_t len, char *data) { _gc_cipher_ctx *ctx = handle; switch (ctx->alg) { #if GNULIB_GC_ARCTWO case GC_ARCTWO40: switch (ctx->mode) { case GC_ECB: arctwo_encrypt (&ctx->arctwoContext, data, data, len); break; case GC_CBC: for (; len >= ARCTWO_BLOCK_SIZE; len -= ARCTWO_BLOCK_SIZE, data += ARCTWO_BLOCK_SIZE) { size_t i; for (i = 0; i < ARCTWO_BLOCK_SIZE; i++) data[i] ^= ctx->arctwoIV[i]; arctwo_encrypt (&ctx->arctwoContext, data, data, ARCTWO_BLOCK_SIZE); memcpy (ctx->arctwoIV, data, ARCTWO_BLOCK_SIZE); } break; default: return GC_INVALID_CIPHER; } break; #endif #if GNULIB_GC_ARCFOUR case GC_ARCFOUR128: case GC_ARCFOUR40: arcfour_stream (&ctx->arcfourContext, data, data, len); break; #endif #if GNULIB_GC_DES case GC_DES: for (; len >= 8; len -= 8, data += 8) gl_des_ecb_encrypt (&ctx->desContext, data, data); break; #endif #if GNULIB_GC_RIJNDAEL case GC_AES128: case GC_AES192: case GC_AES256: { int nblocks; nblocks = rijndaelBlockEncrypt (&ctx->aesContext, &ctx->aesEncKey, data, 8 * len, data); if (nblocks < 0) return GC_INVALID_CIPHER; } break; #endif default: return GC_INVALID_CIPHER; } return GC_OK; } Gc_rc gc_cipher_decrypt_inline (gc_cipher_handle handle, size_t len, char *data) { _gc_cipher_ctx *ctx = handle; switch (ctx->alg) { #if GNULIB_GC_ARCTWO case GC_ARCTWO40: switch (ctx->mode) { case GC_ECB: arctwo_decrypt (&ctx->arctwoContext, data, data, len); break; case GC_CBC: for (; len >= ARCTWO_BLOCK_SIZE; len -= ARCTWO_BLOCK_SIZE, data += ARCTWO_BLOCK_SIZE) { char tmpIV[ARCTWO_BLOCK_SIZE]; size_t i; memcpy (tmpIV, data, ARCTWO_BLOCK_SIZE); arctwo_decrypt (&ctx->arctwoContext, data, data, ARCTWO_BLOCK_SIZE); for (i = 0; i < ARCTWO_BLOCK_SIZE; i++) data[i] ^= ctx->arctwoIV[i]; memcpy (ctx->arctwoIV, tmpIV, ARCTWO_BLOCK_SIZE); } break; default: return GC_INVALID_CIPHER; } break; #endif #if GNULIB_GC_ARCFOUR case GC_ARCFOUR128: case GC_ARCFOUR40: arcfour_stream (&ctx->arcfourContext, data, data, len); break; #endif #if GNULIB_GC_DES case GC_DES: for (; len >= 8; len -= 8, data += 8) gl_des_ecb_decrypt (&ctx->desContext, data, data); break; #endif #if GNULIB_GC_RIJNDAEL case GC_AES128: case GC_AES192: case GC_AES256: { int nblocks; nblocks = rijndaelBlockDecrypt (&ctx->aesContext, &ctx->aesDecKey, data, 8 * len, data); if (nblocks < 0) return GC_INVALID_CIPHER; } break; #endif default: return GC_INVALID_CIPHER; } return GC_OK; } Gc_rc gc_cipher_close (gc_cipher_handle handle) { _gc_cipher_ctx *ctx = handle; free (ctx); return GC_OK; } /* Hashes. */ #define MAX_DIGEST_SIZE 64 typedef struct _gc_hash_ctx { Gc_hash alg; Gc_hash_mode mode; char hash[MAX_DIGEST_SIZE]; #if GNULIB_GC_MD2 struct md2_ctx md2Context; #endif #if GNULIB_GC_MD4 struct md4_ctx md4Context; #endif #if GNULIB_GC_MD5 struct md5_ctx md5Context; #endif #if GNULIB_GC_SHA1 struct sha1_ctx sha1Context; #endif #if GNULIB_GC_SHA256 struct sha256_ctx sha256Context; #endif #if GNULIB_GC_SHA512 struct sha512_ctx sha512Context; #endif #if GNULIB_GC_SM3 struct sm3_ctx sm3Context; #endif } _gc_hash_ctx; Gc_rc gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle * outhandle) { _gc_hash_ctx *ctx; Gc_rc rc = GC_OK; if (mode != 0) return GC_INVALID_HASH; ctx = calloc (sizeof (*ctx), 1); if (!ctx) return GC_MALLOC_ERROR; ctx->alg = hash; ctx->mode = mode; switch (hash) { #if GNULIB_GC_MD2 case GC_MD2: /* Not needed, because ctx is already zero-initialized. */ /*md2_init_ctx (&ctx->md2Context);*/ break; #endif #if GNULIB_GC_MD4 case GC_MD4: md4_init_ctx (&ctx->md4Context); break; #endif #if GNULIB_GC_MD5 case GC_MD5: md5_init_ctx (&ctx->md5Context); break; #endif #if GNULIB_GC_SHA1 case GC_SHA1: sha1_init_ctx (&ctx->sha1Context); break; #endif #if GNULIB_GC_SHA256 case GC_SHA256: sha256_init_ctx (&ctx->sha256Context); break; #endif #if GNULIB_GC_SHA512 case GC_SHA512: sha512_init_ctx (&ctx->sha512Context); break; #endif #if GNULIB_GC_SM3 case GC_SM3: sm3_init_ctx (&ctx->sm3Context); break; #endif default: rc = GC_INVALID_HASH; break; } if (rc == GC_OK) *outhandle = ctx; else free (ctx); return rc; } Gc_rc gc_hash_clone (gc_hash_handle handle, gc_hash_handle * outhandle) { _gc_hash_ctx *in = handle; _gc_hash_ctx *out; *outhandle = out = calloc (sizeof (*out), 1); if (!out) return GC_MALLOC_ERROR; memcpy (out, in, sizeof (*out)); return GC_OK; } size_t gc_hash_digest_length (Gc_hash hash) { size_t len; switch (hash) { case GC_MD2: len = GC_MD2_DIGEST_SIZE; break; case GC_MD4: len = GC_MD4_DIGEST_SIZE; break; case GC_MD5: len = GC_MD5_DIGEST_SIZE; break; case GC_RMD160: len = GC_RMD160_DIGEST_SIZE; break; case GC_SHA1: len = GC_SHA1_DIGEST_SIZE; break; case GC_SHA256: len = GC_SHA256_DIGEST_SIZE; break; case GC_SHA512: len = GC_SHA512_DIGEST_SIZE; break; case GC_SM3: len = GC_SM3_DIGEST_SIZE; break; default: return 0; } return len; } void gc_hash_write (gc_hash_handle handle, size_t len, const char *data) { _gc_hash_ctx *ctx = handle; switch (ctx->alg) { #if GNULIB_GC_MD2 case GC_MD2: md2_process_bytes (data, len, &ctx->md2Context); break; #endif #if GNULIB_GC_MD4 case GC_MD4: md4_process_bytes (data, len, &ctx->md4Context); break; #endif #if GNULIB_GC_MD5 case GC_MD5: md5_process_bytes (data, len, &ctx->md5Context); break; #endif #if GNULIB_GC_SHA1 case GC_SHA1: sha1_process_bytes (data, len, &ctx->sha1Context); break; #endif #if GNULIB_GC_SHA256 case GC_SHA256: sha256_process_bytes (data, len, &ctx->sha256Context); break; #endif #if GNULIB_GC_SHA512 case GC_SHA512: sha512_process_bytes (data, len, &ctx->sha512Context); break; #endif #if GNULIB_GC_SM3 case GC_SM3: sm3_process_bytes (data, len, &ctx->sm3Context); break; #endif default: break; } } const char * gc_hash_read (gc_hash_handle handle) { _gc_hash_ctx *ctx = handle; const char *ret = NULL; switch (ctx->alg) { #if GNULIB_GC_MD2 case GC_MD2: md2_finish_ctx (&ctx->md2Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_MD4 case GC_MD4: md4_finish_ctx (&ctx->md4Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_MD5 case GC_MD5: md5_finish_ctx (&ctx->md5Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_SHA1 case GC_SHA1: sha1_finish_ctx (&ctx->sha1Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_SHA256 case GC_SHA256: sha256_finish_ctx (&ctx->sha256Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_SHA512 case GC_SHA512: sha512_finish_ctx (&ctx->sha512Context, ctx->hash); ret = ctx->hash; break; #endif #if GNULIB_GC_SM3 case GC_SM3: sm3_finish_ctx (&ctx->sm3Context, ctx->hash); ret = ctx->hash; break; #endif default: return NULL; } return ret; } void gc_hash_close (gc_hash_handle handle) { _gc_hash_ctx *ctx = handle; free (ctx); } Gc_rc gc_hash_buffer (Gc_hash hash, const void *in, size_t inlen, char *resbuf) { switch (hash) { #if GNULIB_GC_MD2 case GC_MD2: md2_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_MD4 case GC_MD4: md4_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_MD5 case GC_MD5: md5_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_SHA1 case GC_SHA1: sha1_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_SHA256 case GC_SHA256: sha256_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_SHA512 case GC_SHA512: sha512_buffer (in, inlen, resbuf); break; #endif #if GNULIB_GC_SM3 case GC_SM3: sm3_buffer (in, inlen, resbuf); break; #endif default: return GC_INVALID_HASH; } return GC_OK; } #if GNULIB_GC_MD2 Gc_rc gc_md2 (const void *in, size_t inlen, void *resbuf) { md2_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_MD4 Gc_rc gc_md4 (const void *in, size_t inlen, void *resbuf) { md4_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_MD5 Gc_rc gc_md5 (const void *in, size_t inlen, void *resbuf) { md5_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_SHA1 Gc_rc gc_sha1 (const void *in, size_t inlen, void *resbuf) { sha1_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_SHA256 Gc_rc gc_sha256 (const void *in, size_t inlen, void *resbuf) { sha256_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_SHA512 Gc_rc gc_sha512 (const void *in, size_t inlen, void *resbuf) { sha512_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_SM3 Gc_rc gc_sm3 (const void *in, size_t inlen, void *resbuf) { sm3_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_HMAC_MD5 Gc_rc gc_hmac_md5 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { hmac_md5 (key, keylen, in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA1 Gc_rc gc_hmac_sha1 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { hmac_sha1 (key, keylen, in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA256 Gc_rc gc_hmac_sha256 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { hmac_sha256 (key, keylen, in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA512 Gc_rc gc_hmac_sha512 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { hmac_sha512 (key, keylen, in, inlen, resbuf); return GC_OK; } #endif shishi-1.0.3/lib/gl/strings.in.h0000644000000000000000000000772014273615123013322 00000000000000/* A substitute . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_STRINGS_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* Minix 3.1.8 has a bug: must be included before . But avoid namespace pollution on glibc systems. */ #if defined __minix && !defined __GLIBC__ # include #endif /* The include_next requires a split double-inclusion guard. */ #if @HAVE_STRINGS_H@ # @INCLUDE_NEXT@ @NEXT_STRINGS_H@ #endif #ifndef _@GUARD_PREFIX@_STRINGS_H #define _@GUARD_PREFIX@_STRINGS_H #if ! @HAVE_DECL_STRNCASECMP@ /* Get size_t. */ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ #ifdef __cplusplus extern "C" { #endif /* Find the index of the least-significant set bit. */ #if @GNULIB_FFS@ # if !@HAVE_FFS@ _GL_FUNCDECL_SYS (ffs, int, (int i)); # endif _GL_CXXALIAS_SYS (ffs, int, (int i)); _GL_CXXALIASWARN (ffs); #elif defined GNULIB_POSIXCHECK # undef ffs # if HAVE_RAW_DECL_FFS _GL_WARN_ON_USE (ffs, "ffs is not portable - use the ffs module"); # endif #endif /* Compare strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function does not work in multibyte locales. */ #if ! @HAVE_STRCASECMP@ extern int strcasecmp (char const *s1, char const *s2) _GL_ARG_NONNULL ((1, 2)); #endif #if defined GNULIB_POSIXCHECK /* strcasecmp() does not work with multibyte strings: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strcasecmp # if HAVE_RAW_DECL_STRCASECMP _GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character " "strings in multibyte locales - " "use mbscasecmp if you care about " "internationalization, or use c_strcasecmp , " "gnulib module c-strcase) if you want a locale " "independent function"); # endif #endif /* Compare no more than N bytes of strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function cannot work correctly in multibyte locales. */ #if ! @HAVE_DECL_STRNCASECMP@ extern int strncasecmp (char const *s1, char const *s2, size_t n) _GL_ARG_NONNULL ((1, 2)); #endif #if defined GNULIB_POSIXCHECK /* strncasecmp() does not work with multibyte strings: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strncasecmp # if HAVE_RAW_DECL_STRNCASECMP _GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character " "strings in multibyte locales - " "use mbsncasecmp or mbspcasecmp if you care about " "internationalization, or use c_strncasecmp , " "gnulib module c-strcase) if you want a locale " "independent function"); # endif #endif #ifdef __cplusplus } #endif #endif /* _@GUARD_PREFIX@_STRING_H */ #endif /* _@GUARD_PREFIX@_STRING_H */ shishi-1.0.3/lib/gl/xvasprintf.h0000644000000000000000000000340514273615123013424 00000000000000/* vasprintf and asprintf with out-of-memory checking. Copyright (C) 2002-2004, 2006-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef _XVASPRINTF_H #define _XVASPRINTF_H /* Get va_list. */ #include /* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD. */ #include /* Get 'free'. */ #include #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(), and return it. Upon [ENOMEM] memory allocation error, call xalloc_die. On some other error - [EOVERFLOW] resulting string length is > INT_MAX, - [EINVAL] invalid format string, - [EILSEQ] error during conversion between wide and multibyte characters, return NULL. */ extern char *xasprintf (const char *format, ...) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 1, 2)); extern char *xvasprintf (const char *format, va_list args) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 1, 0)); #ifdef __cplusplus } #endif #endif /* _XVASPRINTF_H */ shishi-1.0.3/lib/gl/alloca.c0000644000000000000000000001152414273615121012445 00000000000000/* alloca.c -- allocate automatically reclaimed memory This file is in the public domain. */ /* (Mostly) portable implementation -- D A Gwyn This implementation of the PWB library alloca function, which is used to allocate space off the run-time stack so that it is automatically reclaimed upon procedure exit, was inspired by discussions with J. Q. Johnson of Cornell. J.Otto Tennant contributed the Cray support. There are some preprocessor constants that can be defined when compiling for your specific system, for improved efficiency; however, the defaults should be okay. The general concept of this implementation is to keep track of all alloca-allocated blocks, and reclaim any that are found to be deeper in the stack than the current invocation. This heuristic does not reclaim storage as soon as it becomes invalid, but it will do so eventually. As a special case, alloca(0) reclaims storage without allocating any. It is a good idea to use alloca(0) in your main control loop, etc. to force garbage collection. */ #include #include #include #include /* If compiling with GCC or clang, this file is not needed. */ #if !(defined __GNUC__ || defined __clang__) /* If someone has defined alloca as a macro, there must be some other way alloca is supposed to work. */ # ifndef alloca /* Define STACK_DIRECTION if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ # ifndef STACK_DIRECTION # define STACK_DIRECTION 0 /* Direction unknown. */ # endif # if STACK_DIRECTION != 0 # define STACK_DIR STACK_DIRECTION /* Known at compile-time. */ # else /* STACK_DIRECTION == 0; need run-time code. */ static int stack_dir; /* 1 or -1 once known. */ # define STACK_DIR stack_dir static int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } # endif /* STACK_DIRECTION == 0 */ /* An "alloca header" is used to: (a) chain together all alloca'ed blocks; (b) keep track of stack depth. It is very important that sizeof(header) agree with malloc alignment chunk size. The following default should work okay. */ # ifndef ALIGN_SIZE # define ALIGN_SIZE sizeof(double) # endif typedef union hdr { char align[ALIGN_SIZE]; /* To force sizeof(header). */ struct { union hdr *next; /* For chaining headers. */ char *deep; /* For stack depth measure. */ } h; } header; static header *last_alloca_header = NULL; /* -> last alloca header. */ /* Return a pointer to at least SIZE bytes of storage, which will be automatically reclaimed upon exit from the procedure that called alloca. Originally, this space was supposed to be taken from the current stack frame of the caller, but that method cannot be made to work for some implementations of C, for example under Gould's UTX/32. */ void * alloca (size_t size) { auto char probe; /* Probes stack depth: */ register char *depth = &probe; # if STACK_DIRECTION == 0 if (STACK_DIR == 0) /* Unknown growth direction. */ STACK_DIR = find_stack_direction (NULL, (size & 1) + 20); # endif /* Reclaim garbage, defined as all alloca'd storage that was allocated from deeper in the stack than currently. */ { register header *hp; /* Traverses linked list. */ for (hp = last_alloca_header; hp != NULL;) if ((STACK_DIR > 0 && hp->h.deep > depth) || (STACK_DIR < 0 && hp->h.deep < depth)) { register header *np = hp->h.next; free (hp); /* Collect garbage. */ hp = np; /* -> next header. */ } else break; /* Rest are not deeper. */ last_alloca_header = hp; /* -> last valid storage. */ } if (size == 0) return NULL; /* No allocation required. */ /* Allocate combined header + user data storage. */ { /* Address of header. */ register header *new; size_t combined_size = sizeof (header) + size; if (combined_size < sizeof (header)) memory_full (); new = malloc (combined_size); if (! new) memory_full (); new->h.next = last_alloca_header; new->h.deep = depth; last_alloca_header = new; /* User storage begins just after header. */ return (void *) (new + 1); } } # endif /* no alloca */ #endif /* not GCC || clang */ shishi-1.0.3/lib/gl/float.c0000644000000000000000000000252614273615122012322 00000000000000/* Auxiliary definitions for . Copyright (C) 2011-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if (defined _ARCH_PPC || defined _POWER) && (defined _AIX || defined __linux__) && (LDBL_MANT_DIG == 106) && defined __GNUC__ const union gl_long_double_union gl_LDBL_MAX = { { DBL_MAX, DBL_MAX / (double)134217728UL / (double)134217728UL } }; #elif defined __i386__ const union gl_long_double_union gl_LDBL_MAX = { { 0xFFFFFFFF, 0xFFFFFFFF, 32766 } }; #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; #endif shishi-1.0.3/lib/gl/byteswap.in.h0000644000000000000000000000374514273615121013470 00000000000000/* byteswap.h - Byte swapping Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. Written by Oskar Liljeblad , 2005. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_BYTESWAP_H #define _GL_BYTESWAP_H /* Given an unsigned 16-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_16(x) ((((x) & 0x00FF) << 8) | \ (((x) & 0xFF00) >> 8)) /* Given an unsigned 32-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_32(x) ((((x) & 0x000000FF) << 24) | \ (((x) & 0x0000FF00) << 8) | \ (((x) & 0x00FF0000) >> 8) | \ (((x) & 0xFF000000) >> 24)) /* Given an unsigned 64-bit argument X, return the value corresponding to X with reversed byte order. */ #define bswap_64(x) ((((x) & 0x00000000000000FFULL) << 56) | \ (((x) & 0x000000000000FF00ULL) << 40) | \ (((x) & 0x0000000000FF0000ULL) << 24) | \ (((x) & 0x00000000FF000000ULL) << 8) | \ (((x) & 0x000000FF00000000ULL) >> 8) | \ (((x) & 0x0000FF0000000000ULL) >> 24) | \ (((x) & 0x00FF000000000000ULL) >> 40) | \ (((x) & 0xFF00000000000000ULL) >> 56)) #endif /* _GL_BYTESWAP_H */ shishi-1.0.3/lib/gl/timegm.c0000644000000000000000000000266414273615123012503 00000000000000/* Convert UTC calendar time to simple time. Like mktime but assumes UTC. Copyright (C) 1994-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _LIBC # include #endif #include #include #include "mktime-internal.h" __time64_t __timegm64 (struct tm *tmp) { static mktime_offset_t gmtime_offset; tmp->tm_isdst = 0; return __mktime_internal (tmp, __gmtime64_r, &gmtime_offset); } #if defined _LIBC && __TIMESIZE != 64 libc_hidden_def (__timegm64) time_t timegm (struct tm *tmp) { struct tm tm = *tmp; __time64_t t = __timegm64 (&tm); if (in_time_t_range (t)) { *tmp = tm; return t; } else { __set_errno (EOVERFLOW); return -1; } } #endif shishi-1.0.3/lib/gl/arg-nonnull.h0000644000000000000000000000235314273615121013453 00000000000000/* A C macro for declaring that specific arguments must not be NULL. Copyright (C) 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools that the values passed as arguments n, ..., m must be non-NULL pointers. n = 1 stands for the first argument, n = 2 for the second argument etc. */ #ifndef _GL_ARG_NONNULL # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || defined __clang__ # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) # else # define _GL_ARG_NONNULL(params) # endif #endif shishi-1.0.3/lib/gl/c-ctype.c0000644000000000000000000000151314273615121012553 00000000000000/* Character handling in C locale. Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define C_CTYPE_INLINE _GL_EXTERN_INLINE #include "c-ctype.h" shishi-1.0.3/lib/gl/md5-stream.c0000644000000000000000000000762514273615123013201 00000000000000/* Functions to compute MD5 message digest of files or memory blocks. according to the definition of MD5 in RFC 1321 from April 1992. Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Ulrich Drepper , 1995. */ #include /* Specification. */ #if HAVE_OPENSSL_MD5 # define GL_OPENSSL_INLINE _GL_EXTERN_INLINE #endif #include "md5.h" #include #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #include "af_alg.h" #ifdef _LIBC # include # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 # endif /* We need to keep the namespace clean so define the MD5 function protected using leading __ . */ # define md5_init_ctx __md5_init_ctx # define md5_process_block __md5_process_block # define md5_process_bytes __md5_process_bytes # define md5_finish_ctx __md5_finish_ctx # define md5_stream __md5_stream #endif #define BLOCKSIZE 32768 #if BLOCKSIZE % 64 != 0 # error "invalid BLOCKSIZE" #endif /* Compute MD5 message digest for bytes read from STREAM. The resulting message digest number will be written into the 16 bytes beginning at RESBLOCK. */ int md5_stream (FILE *stream, void *resblock) { switch (afalg_stream (stream, "md5", resblock, MD5_DIGEST_SIZE)) { case 0: return 0; case -EIO: return 1; } char *buffer = malloc (BLOCKSIZE + 72); if (!buffer) return 1; struct md5_ctx ctx; md5_init_ctx (&ctx); size_t sum; /* Iterate over full file contents. */ while (1) { /* We read the file in blocks of BLOCKSIZE bytes. One call of the computation function processes the whole buffer so that with the next round of the loop another block can be read. */ size_t n; sum = 0; /* Read block. Take care for partial reads. */ while (1) { /* Either process a partial fread() from this loop, or the fread() in afalg_stream may have gotten EOF. We need to avoid a subsequent fread() as EOF may not be sticky. For details of such systems, see: https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */ if (feof (stream)) goto process_partial_block; n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); sum += n; if (sum == BLOCKSIZE) break; if (n == 0) { /* Check for the error flag IFF N == 0, so that we don't exit the loop after a partial read due to e.g., EAGAIN or EWOULDBLOCK. */ if (ferror (stream)) { free (buffer); return 1; } goto process_partial_block; } } /* Process buffer with BLOCKSIZE bytes. Note that BLOCKSIZE % 64 == 0 */ md5_process_block (buffer, BLOCKSIZE, &ctx); } process_partial_block: /* Process any remaining bytes. */ if (sum > 0) md5_process_bytes (buffer, sum, &ctx); /* Construct result in desired memory. */ md5_finish_ctx (&ctx, resblock); free (buffer); return 0; } /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/sys_socket.in.h0000644000000000000000000005757214273615123014031 00000000000000/* Provide a sys/socket header file for systems lacking it (read: MinGW) and for systems where it is incomplete. Copyright (C) 2005-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* This file is supposed to be used on platforms that lack , on platforms where cannot be included standalone, and on platforms where does not provide all necessary definitions. It is intended to provide definitions and prototypes needed by an application. */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _GL_ALREADY_INCLUDING_SYS_SOCKET_H /* Special invocation convention: - On Cygwin 1.5.x we have a sequence of nested includes -> -> -> , and the latter includes . In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H #if @HAVE_SYS_SOCKET_H@ # define _GL_ALREADY_INCLUDING_SYS_SOCKET_H /* On many platforms, assumes prior inclusion of . */ # include /* On FreeBSD 6.4, defines some macros that assume that NULL is defined. */ # include /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_SYS_SOCKET_H@ # undef _GL_ALREADY_INCLUDING_SYS_SOCKET_H #endif #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H #define _@GUARD_PREFIX@_SYS_SOCKET_H #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_SYS_SOCKET_INLINE # define _GL_SYS_SOCKET_INLINE _GL_INLINE #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ #if !@HAVE_SA_FAMILY_T@ # if !GNULIB_defined_sa_family_t /* On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is defined. */ # if !defined __KLIBC__ || defined TCPV40HDRS typedef unsigned short sa_family_t; # else typedef unsigned char sa_family_t; # endif # define GNULIB_defined_sa_family_t 1 # endif #endif #if @HAVE_STRUCT_SOCKADDR_STORAGE@ /* Make the 'struct sockaddr_storage' field 'ss_family' visible on AIX 7.1. */ # if !@HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ # ifndef ss_family # define ss_family __ss_family # endif # endif #else # include /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on 2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */ # define __ss_aligntype unsigned long int # define _SS_SIZE 256 # define _SS_PADSIZE \ (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype) \ ? sizeof (sa_family_t) \ : alignof (__ss_aligntype)) \ + sizeof (__ss_aligntype))) # if !GNULIB_defined_struct_sockaddr_storage struct sockaddr_storage { sa_family_t ss_family; /* Address family, etc. */ __ss_aligntype __ss_align; /* Force desired alignment. */ char __ss_padding[_SS_PADSIZE]; }; # define GNULIB_defined_struct_sockaddr_storage 1 # endif #endif /* Get struct iovec. */ /* But avoid namespace pollution on glibc systems. */ #if ! defined __GLIBC__ # include #endif #if @HAVE_SYS_SOCKET_H@ /* A platform that has . */ /* For shutdown(). */ # if !defined SHUT_RD # define SHUT_RD 0 # endif # if !defined SHUT_WR # define SHUT_WR 1 # endif # if !defined SHUT_RDWR # define SHUT_RDWR 2 # endif # ifdef __VMS /* OpenVMS */ # ifndef CMSG_SPACE # define CMSG_SPACE(length) _CMSG_SPACE(length) # endif # ifndef CMSG_LEN # define CMSG_LEN(length) _CMSG_LEN(length) # endif # endif #else # ifdef __CYGWIN__ # error "Cygwin does have a sys/socket.h, doesn't it?!?" # endif /* A platform that lacks . Currently only MinGW is supported. See the gnulib manual regarding Windows sockets. MinGW has the header files winsock2.h and ws2tcpip.h that declare the sys/socket.h definitions we need. Note that you can influence which definitions you get by setting the WINVER symbol before including these two files. For example, getaddrinfo is only available if _WIN32_WINNT >= 0x0501 (that symbol is set indirectly through WINVER). You can set this by adding AC_DEFINE(WINVER, 0x0501) to configure.ac. Note that your code may not run on older Windows releases then. My Windows 2000 box was not able to run the code, for example. The situation is slightly confusing because suggests that getaddrinfo should be available on all Windows releases. */ # if @HAVE_WINSOCK2_H@ # include # endif # if @HAVE_WS2TCPIP_H@ # include # endif /* For shutdown(). */ # if !defined SHUT_RD && defined SD_RECEIVE # define SHUT_RD SD_RECEIVE # endif # if !defined SHUT_WR && defined SD_SEND # define SHUT_WR SD_SEND # endif # if !defined SHUT_RDWR && defined SD_BOTH # define SHUT_RDWR SD_BOTH # endif # if @HAVE_WINSOCK2_H@ /* Include headers needed by the emulation code. */ # include # include /* If these headers don't define socklen_t, does. */ # endif /* Rudimentary 'struct msghdr'; this works as long as you don't try to access msg_control or msg_controllen. */ struct msghdr { void *msg_name; socklen_t msg_namelen; struct iovec *msg_iov; int msg_iovlen; int msg_flags; }; #endif /* Ensure SO_REUSEPORT is defined. */ /* For the subtle differences between SO_REUSEPORT and SO_REUSEADDR, see https://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t and https://lwn.net/Articles/542629/ */ #ifndef SO_REUSEPORT # define SO_REUSEPORT SO_REUSEADDR #endif /* Fix some definitions from . */ #if @HAVE_WINSOCK2_H@ # if !GNULIB_defined_rpl_fd_isset /* Re-define FD_ISSET to avoid a WSA call while we are not using network sockets. */ _GL_SYS_SOCKET_INLINE int rpl_fd_isset (SOCKET fd, fd_set * set) { u_int i; if (set == NULL) return 0; for (i = 0; i < set->fd_count; i++) if (set->fd_array[i] == fd) return 1; return 0; } # define GNULIB_defined_rpl_fd_isset 1 # endif # undef FD_ISSET # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) #endif /* Hide some function declarations from . */ #if @HAVE_WINSOCK2_H@ # if !defined _@GUARD_PREFIX@_UNISTD_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef close # define close close_used_without_including_unistd_h # elif !defined __clang__ _GL_WARN_ON_USE (close, "close() used without including "); # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname gethostname_used_without_including_unistd_h # else _GL_WARN_ON_USE (gethostname, "gethostname() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SELECT_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef select # define select select_used_without_including_sys_select_h # else _GL_WARN_ON_USE (select, "select() used without including "); # endif # endif #endif /* Wrap everything else to use libc file descriptors for sockets. */ #if @GNULIB_SOCKET@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef socket # define socket rpl_socket # endif _GL_FUNCDECL_RPL (socket, int, (int domain, int type, int protocol)); _GL_CXXALIAS_RPL (socket, int, (int domain, int type, int protocol)); # else _GL_CXXALIAS_SYS (socket, int, (int domain, int type, int protocol)); # endif _GL_CXXALIASWARN (socket); #elif @HAVE_WINSOCK2_H@ # undef socket # define socket socket_used_without_requesting_gnulib_module_socket #elif defined GNULIB_POSIXCHECK # undef socket # if HAVE_RAW_DECL_SOCKET _GL_WARN_ON_USE (socket, "socket is not always POSIX compliant - " "use gnulib module socket for portability"); # endif #endif #if @GNULIB_CONNECT@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef connect # define connect rpl_connect # endif _GL_FUNCDECL_RPL (connect, int, (int fd, const struct sockaddr *addr, socklen_t addrlen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (connect, int, (int fd, const struct sockaddr *addr, socklen_t addrlen)); # else /* Need to cast, because on NonStop Kernel, the third parameter is size_t addrlen. */ _GL_CXXALIAS_SYS_CAST (connect, int, (int fd, const struct sockaddr *addr, socklen_t addrlen)); # endif _GL_CXXALIASWARN (connect); #elif @HAVE_WINSOCK2_H@ # undef connect # define connect socket_used_without_requesting_gnulib_module_connect #elif defined GNULIB_POSIXCHECK # undef connect # if HAVE_RAW_DECL_CONNECT _GL_WARN_ON_USE (connect, "connect is not always POSIX compliant - " "use gnulib module connect for portability"); # endif #endif #if @GNULIB_ACCEPT@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef accept # define accept rpl_accept # endif _GL_FUNCDECL_RPL (accept, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); _GL_CXXALIAS_RPL (accept, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # else /* Need to cast, because on Solaris 10 systems, the third parameter is void *addrlen. */ _GL_CXXALIAS_SYS_CAST (accept, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # endif _GL_CXXALIASWARN (accept); #elif @HAVE_WINSOCK2_H@ # undef accept # define accept accept_used_without_requesting_gnulib_module_accept #elif defined GNULIB_POSIXCHECK # undef accept # if HAVE_RAW_DECL_ACCEPT _GL_WARN_ON_USE (accept, "accept is not always POSIX compliant - " "use gnulib module accept for portability"); # endif #endif #if @GNULIB_BIND@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef bind # define bind rpl_bind # endif _GL_FUNCDECL_RPL (bind, int, (int fd, const struct sockaddr *addr, socklen_t addrlen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (bind, int, (int fd, const struct sockaddr *addr, socklen_t addrlen)); # else /* Need to cast, because on NonStop Kernel, the third parameter is size_t addrlen. */ _GL_CXXALIAS_SYS_CAST (bind, int, (int fd, const struct sockaddr *addr, socklen_t addrlen)); # endif _GL_CXXALIASWARN (bind); #elif @HAVE_WINSOCK2_H@ # undef bind # define bind bind_used_without_requesting_gnulib_module_bind #elif defined GNULIB_POSIXCHECK # undef bind # if HAVE_RAW_DECL_BIND _GL_WARN_ON_USE (bind, "bind is not always POSIX compliant - " "use gnulib module bind for portability"); # endif #endif #if @GNULIB_GETPEERNAME@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getpeername # define getpeername rpl_getpeername # endif _GL_FUNCDECL_RPL (getpeername, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (getpeername, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # else /* Need to cast, because on Solaris 10 systems, the third parameter is void *addrlen. */ _GL_CXXALIAS_SYS_CAST (getpeername, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # endif _GL_CXXALIASWARN (getpeername); #elif @HAVE_WINSOCK2_H@ # undef getpeername # define getpeername getpeername_used_without_requesting_gnulib_module_getpeername #elif defined GNULIB_POSIXCHECK # undef getpeername # if HAVE_RAW_DECL_GETPEERNAME _GL_WARN_ON_USE (getpeername, "getpeername is not always POSIX compliant - " "use gnulib module getpeername for portability"); # endif #endif #if @GNULIB_GETSOCKNAME@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getsockname # define getsockname rpl_getsockname # endif _GL_FUNCDECL_RPL (getsockname, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (getsockname, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # else /* Need to cast, because on Solaris 10 systems, the third parameter is void *addrlen. */ _GL_CXXALIAS_SYS_CAST (getsockname, int, (int fd, struct sockaddr *restrict addr, socklen_t *restrict addrlen)); # endif _GL_CXXALIASWARN (getsockname); #elif @HAVE_WINSOCK2_H@ # undef getsockname # define getsockname getsockname_used_without_requesting_gnulib_module_getsockname #elif defined GNULIB_POSIXCHECK # undef getsockname # if HAVE_RAW_DECL_GETSOCKNAME _GL_WARN_ON_USE (getsockname, "getsockname is not always POSIX compliant - " "use gnulib module getsockname for portability"); # endif #endif #if @GNULIB_GETSOCKOPT@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getsockopt # define getsockopt rpl_getsockopt # endif _GL_FUNCDECL_RPL (getsockopt, int, (int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen) _GL_ARG_NONNULL ((4, 5))); _GL_CXXALIAS_RPL (getsockopt, int, (int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen)); # else /* Need to cast, because on Solaris 10 systems, the fifth parameter is void *optlen. */ _GL_CXXALIAS_SYS_CAST (getsockopt, int, (int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen)); # endif _GL_CXXALIASWARN (getsockopt); #elif @HAVE_WINSOCK2_H@ # undef getsockopt # define getsockopt getsockopt_used_without_requesting_gnulib_module_getsockopt #elif defined GNULIB_POSIXCHECK # undef getsockopt # if HAVE_RAW_DECL_GETSOCKOPT _GL_WARN_ON_USE (getsockopt, "getsockopt is not always POSIX compliant - " "use gnulib module getsockopt for portability"); # endif #endif #if @GNULIB_LISTEN@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef listen # define listen rpl_listen # endif _GL_FUNCDECL_RPL (listen, int, (int fd, int backlog)); _GL_CXXALIAS_RPL (listen, int, (int fd, int backlog)); # else _GL_CXXALIAS_SYS (listen, int, (int fd, int backlog)); # endif _GL_CXXALIASWARN (listen); #elif @HAVE_WINSOCK2_H@ # undef listen # define listen listen_used_without_requesting_gnulib_module_listen #elif defined GNULIB_POSIXCHECK # undef listen # if HAVE_RAW_DECL_LISTEN _GL_WARN_ON_USE (listen, "listen is not always POSIX compliant - " "use gnulib module listen for portability"); # endif #endif #if @GNULIB_RECV@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef recv # define recv rpl_recv # endif _GL_FUNCDECL_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); # else /* Need to cast, because on HP-UX 11.31 the return type may be int, depending on compiler options. */ _GL_CXXALIAS_SYS_CAST (recv, ssize_t, (int fd, void *buf, size_t len, int flags)); # endif _GL_CXXALIASWARN (recv); #elif @HAVE_WINSOCK2_H@ # undef recv # define recv recv_used_without_requesting_gnulib_module_recv #elif defined GNULIB_POSIXCHECK # undef recv # if HAVE_RAW_DECL_RECV _GL_WARN_ON_USE (recv, "recv is not always POSIX compliant - " "use gnulib module recv for portability"); # endif #endif #if @GNULIB_SEND@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef send # define send rpl_send # endif _GL_FUNCDECL_RPL (send, ssize_t, (int fd, const void *buf, size_t len, int flags) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (send, ssize_t, (int fd, const void *buf, size_t len, int flags)); # else /* Need to cast, because on HP-UX 11.31 the return type may be int, depending on compiler options. */ _GL_CXXALIAS_SYS_CAST (send, ssize_t, (int fd, const void *buf, size_t len, int flags)); # endif _GL_CXXALIASWARN (send); #elif @HAVE_WINSOCK2_H@ # undef send # define send send_used_without_requesting_gnulib_module_send #elif defined GNULIB_POSIXCHECK # undef send # if HAVE_RAW_DECL_SEND _GL_WARN_ON_USE (send, "send is not always POSIX compliant - " "use gnulib module send for portability"); # endif #endif #if @GNULIB_RECVFROM@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef recvfrom # define recvfrom rpl_recvfrom # endif _GL_FUNCDECL_RPL (recvfrom, ssize_t, (int fd, void *restrict buf, size_t len, int flags, struct sockaddr *restrict from, socklen_t *restrict fromlen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (recvfrom, ssize_t, (int fd, void *restrict buf, size_t len, int flags, struct sockaddr *restrict from, socklen_t *restrict fromlen)); # else /* Need to cast, because on Solaris 10 systems, the sixth parameter is void *fromlen. */ _GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t, (int fd, void *restrict buf, size_t len, int flags, struct sockaddr *restrict from, socklen_t *restrict fromlen)); # endif _GL_CXXALIASWARN (recvfrom); #elif @HAVE_WINSOCK2_H@ # undef recvfrom # define recvfrom recvfrom_used_without_requesting_gnulib_module_recvfrom #elif defined GNULIB_POSIXCHECK # undef recvfrom # if HAVE_RAW_DECL_RECVFROM _GL_WARN_ON_USE (recvfrom, "recvfrom is not always POSIX compliant - " "use gnulib module recvfrom for portability"); # endif #endif #if @GNULIB_SENDTO@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef sendto # define sendto rpl_sendto # endif _GL_FUNCDECL_RPL (sendto, ssize_t, (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (sendto, ssize_t, (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)); # else /* Need to cast, because on NonStop Kernel, the sixth parameter is size_t tolen. */ _GL_CXXALIAS_SYS_CAST (sendto, ssize_t, (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)); # endif _GL_CXXALIASWARN (sendto); #elif @HAVE_WINSOCK2_H@ # undef sendto # define sendto sendto_used_without_requesting_gnulib_module_sendto #elif defined GNULIB_POSIXCHECK # undef sendto # if HAVE_RAW_DECL_SENDTO _GL_WARN_ON_USE (sendto, "sendto is not always POSIX compliant - " "use gnulib module sendto for portability"); # endif #endif #if @GNULIB_SETSOCKOPT@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setsockopt # define setsockopt rpl_setsockopt # endif _GL_FUNCDECL_RPL (setsockopt, int, (int fd, int level, int optname, const void * optval, socklen_t optlen) _GL_ARG_NONNULL ((4))); _GL_CXXALIAS_RPL (setsockopt, int, (int fd, int level, int optname, const void * optval, socklen_t optlen)); # else /* Need to cast, because on NonStop Kernel, the fifth parameter is size_t optlen. */ _GL_CXXALIAS_SYS_CAST (setsockopt, int, (int fd, int level, int optname, const void * optval, socklen_t optlen)); # endif _GL_CXXALIASWARN (setsockopt); #elif @HAVE_WINSOCK2_H@ # undef setsockopt # define setsockopt setsockopt_used_without_requesting_gnulib_module_setsockopt #elif defined GNULIB_POSIXCHECK # undef setsockopt # if HAVE_RAW_DECL_SETSOCKOPT _GL_WARN_ON_USE (setsockopt, "setsockopt is not always POSIX compliant - " "use gnulib module setsockopt for portability"); # endif #endif #if @GNULIB_SHUTDOWN@ # if @HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef shutdown # define shutdown rpl_shutdown # endif _GL_FUNCDECL_RPL (shutdown, int, (int fd, int how)); _GL_CXXALIAS_RPL (shutdown, int, (int fd, int how)); # else _GL_CXXALIAS_SYS (shutdown, int, (int fd, int how)); # endif _GL_CXXALIASWARN (shutdown); #elif @HAVE_WINSOCK2_H@ # undef shutdown # define shutdown shutdown_used_without_requesting_gnulib_module_shutdown #elif defined GNULIB_POSIXCHECK # undef shutdown # if HAVE_RAW_DECL_SHUTDOWN _GL_WARN_ON_USE (shutdown, "shutdown is not always POSIX compliant - " "use gnulib module shutdown for portability"); # endif #endif #if @GNULIB_ACCEPT4@ /* Accept a connection on a socket, with specific opening flags. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). See also the Linux man page at . */ # if @HAVE_ACCEPT4@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define accept4 rpl_accept4 # endif _GL_FUNCDECL_RPL (accept4, int, (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)); _GL_CXXALIAS_RPL (accept4, int, (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)); # else _GL_FUNCDECL_SYS (accept4, int, (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)); _GL_CXXALIAS_SYS (accept4, int, (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)); # endif _GL_CXXALIASWARN (accept4); #elif defined GNULIB_POSIXCHECK # undef accept4 # if HAVE_RAW_DECL_ACCEPT4 _GL_WARN_ON_USE (accept4, "accept4 is unportable - " "use gnulib module accept4 for portability"); # endif #endif _GL_INLINE_HEADER_END #endif /* _@GUARD_PREFIX@_SYS_SOCKET_H */ #endif /* _@GUARD_PREFIX@_SYS_SOCKET_H */ #endif shishi-1.0.3/lib/gl/allocator.c0000644000000000000000000000165014273615121013171 00000000000000/* Memory allocators such as malloc+free. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #define _GL_USE_STDLIB_ALLOC 1 #include #include "allocator.h" #include struct allocator const stdlib_allocator = { malloc, realloc, free, NULL }; shishi-1.0.3/lib/gl/msvc-inval.h0000644000000000000000000002122614273615123013300 00000000000000/* Invalid parameter handler for MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MSVC_INVAL_H #define _MSVC_INVAL_H /* With MSVC runtime libraries with the "invalid parameter handler" concept, functions like fprintf(), dup2(), or close() crash when the caller passes an invalid argument. But POSIX wants error codes (such as EINVAL or EBADF) instead. This file defines macros that turn such an invalid parameter notification into a non-local exit. An error code can then be produced at the target of this exit. You can thus write code like TRY_MSVC_INVAL { } CATCH_MSVC_INVAL { } DONE_MSVC_INVAL; This entire block expands to a single statement. The handling of invalid parameters can be done in three ways: * The default way, which is reasonable for programs (not libraries): AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [DEFAULT_HANDLING]) * The way for libraries that make "hairy" calls (like close(-1), or fclose(fp) where fileno(fp) is closed, or simply getdtablesize()): AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [HAIRY_LIBRARY_HANDLING]) * The way for libraries that make no "hairy" calls: AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [SANE_LIBRARY_HANDLING]) */ #define DEFAULT_HANDLING 0 #define HAIRY_LIBRARY_HANDLING 1 #define SANE_LIBRARY_HANDLING 2 #if HAVE_MSVC_INVALID_PARAMETER_HANDLER \ && !(MSVC_INVALID_PARAMETER_HANDLING == SANE_LIBRARY_HANDLING) /* A native Windows platform with the "invalid parameter handler" concept, and either DEFAULT_HANDLING or HAIRY_LIBRARY_HANDLING. */ # if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING /* Default handling. */ # ifdef __cplusplus extern "C" { # endif /* Ensure that the invalid parameter handler in installed that just returns. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ gl_msvc_inval_ensure_handler (); \ if (1) # define CATCH_MSVC_INVAL \ else # define DONE_MSVC_INVAL \ } \ while (0) # else /* Handling for hairy libraries. */ # include /* Gnulib can define its own status codes, as described in the page "Raising Software Exceptions" on microsoft.com . Our status codes are composed of - 0xE0000000, mandatory for all user-defined status codes, - 0x474E550, a API identifier ("GNU"), - 0, 1, 2, ..., used to distinguish different status codes from the same API. */ # define STATUS_GNULIB_INVALID_PARAMETER (0xE0000000 + 0x474E550 + 0) # if defined _MSC_VER /* A compiler that supports __try/__except, as described in the page "try-except statement" on microsoft.com . With __try/__except, we can use the multithread-safe exception handling. */ # ifdef __cplusplus extern "C" { # endif /* Ensure that the invalid parameter handler in installed that raises a software exception with code STATUS_GNULIB_INVALID_PARAMETER. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ gl_msvc_inval_ensure_handler (); \ __try # define CATCH_MSVC_INVAL \ __except (GetExceptionCode () == STATUS_GNULIB_INVALID_PARAMETER \ ? EXCEPTION_EXECUTE_HANDLER \ : EXCEPTION_CONTINUE_SEARCH) # define DONE_MSVC_INVAL \ } \ while (0) # else /* Any compiler. We can only use setjmp/longjmp. */ # include # ifdef __cplusplus extern "C" { # endif struct gl_msvc_inval_per_thread { /* The restart that will resume execution at the code between CATCH_MSVC_INVAL and DONE_MSVC_INVAL. It is enabled only between TRY_MSVC_INVAL and CATCH_MSVC_INVAL. */ jmp_buf restart; /* Tells whether the contents of restart is valid. */ int restart_valid; }; /* Ensure that the invalid parameter handler in installed that passes control to the gl_msvc_inval_restart if it is valid, or raises a software exception with code STATUS_GNULIB_INVALID_PARAMETER otherwise. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); /* Return a pointer to the per-thread data for the current thread. */ extern struct gl_msvc_inval_per_thread *gl_msvc_inval_current (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ struct gl_msvc_inval_per_thread *msvc_inval_current; \ gl_msvc_inval_ensure_handler (); \ msvc_inval_current = gl_msvc_inval_current (); \ /* First, initialize gl_msvc_inval_restart. */ \ if (setjmp (msvc_inval_current->restart) == 0) \ { \ /* Then, mark it as valid. */ \ msvc_inval_current->restart_valid = 1; # define CATCH_MSVC_INVAL \ /* Execution completed. \ Mark gl_msvc_inval_restart as invalid. */ \ msvc_inval_current->restart_valid = 0; \ } \ else \ { \ /* Execution triggered an invalid parameter notification. \ Mark gl_msvc_inval_restart as invalid. */ \ msvc_inval_current->restart_valid = 0; # define DONE_MSVC_INVAL \ } \ } \ while (0) # endif # endif #else /* A platform that does not need to the invalid parameter handler, or when SANE_LIBRARY_HANDLING is desired. */ /* The braces here avoid GCC warnings like "warning: suggest explicit braces to avoid ambiguous 'else'". */ # define TRY_MSVC_INVAL \ do \ { \ if (1) # define CATCH_MSVC_INVAL \ else # define DONE_MSVC_INVAL \ } \ while (0) #endif #endif /* _MSVC_INVAL_H */ shishi-1.0.3/lib/gl/fcntl.c0000644000000000000000000004462114273615122012325 00000000000000/* Provide file descriptor control. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake . */ #include /* Specification. */ #include #include #include #include #include #include #ifdef __KLIBC__ # define INCL_DOS # include #endif #if defined _WIN32 && ! defined __CYGWIN__ /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Upper bound on getdtablesize(). See lib/getdtablesize.c. */ # define OPEN_MAX_MAX 0x10000 /* Duplicate OLDFD into the first available slot of at least NEWFD, which must be positive, with FLAGS determining whether the duplicate will be inheritable. */ static int dupfd (int oldfd, int newfd, int flags) { /* Mingw has no way to create an arbitrary fd. Iterate until all file descriptors less than newfd are filled up. */ HANDLE curr_process = GetCurrentProcess (); HANDLE old_handle = (HANDLE) _get_osfhandle (oldfd); unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; unsigned int fds_to_close_bound = 0; int result; BOOL inherit = flags & O_CLOEXEC ? FALSE : TRUE; int mode; if (newfd < 0 || getdtablesize () <= newfd) { errno = EINVAL; return -1; } if (old_handle == INVALID_HANDLE_VALUE || (mode = _setmode (oldfd, O_BINARY)) == -1) { /* oldfd is not open, or is an unassigned standard file descriptor. */ errno = EBADF; return -1; } _setmode (oldfd, mode); flags |= mode; for (;;) { HANDLE new_handle; int duplicated_fd; unsigned int index; if (!DuplicateHandle (curr_process, /* SourceProcessHandle */ old_handle, /* SourceHandle */ curr_process, /* TargetProcessHandle */ (PHANDLE) &new_handle, /* TargetHandle */ (DWORD) 0, /* DesiredAccess */ inherit, /* InheritHandle */ DUPLICATE_SAME_ACCESS)) /* Options */ { switch (GetLastError ()) { case ERROR_TOO_MANY_OPEN_FILES: errno = EMFILE; break; case ERROR_INVALID_HANDLE: case ERROR_INVALID_TARGET_HANDLE: case ERROR_DIRECT_ACCESS_HANDLE: errno = EBADF; break; case ERROR_INVALID_PARAMETER: case ERROR_INVALID_FUNCTION: case ERROR_INVALID_ACCESS: errno = EINVAL; break; default: errno = EACCES; break; } result = -1; break; } duplicated_fd = _open_osfhandle ((intptr_t) new_handle, flags); if (duplicated_fd < 0) { CloseHandle (new_handle); result = -1; break; } if (newfd <= duplicated_fd) { result = duplicated_fd; break; } /* Set the bit duplicated_fd in fds_to_close[]. */ index = (unsigned int) duplicated_fd / CHAR_BIT; if (fds_to_close_bound <= index) { if (sizeof fds_to_close <= index) /* Need to increase OPEN_MAX_MAX. */ abort (); memset (fds_to_close + fds_to_close_bound, '\0', index + 1 - fds_to_close_bound); fds_to_close_bound = index + 1; } fds_to_close[index] |= 1 << ((unsigned int) duplicated_fd % CHAR_BIT); } /* Close the previous fds that turned out to be too small. */ { int saved_errno = errno; unsigned int duplicated_fd; for (duplicated_fd = 0; duplicated_fd < fds_to_close_bound * CHAR_BIT; duplicated_fd++) if ((fds_to_close[duplicated_fd / CHAR_BIT] >> (duplicated_fd % CHAR_BIT)) & 1) close (duplicated_fd); errno = saved_errno; } # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (oldfd, result); # endif return result; } #endif /* W32 */ /* Forward declarations, because we '#undef fcntl' in the middle of this compilation unit. */ /* Our implementation of fcntl (fd, F_DUPFD, target). */ static int rpl_fcntl_DUPFD (int fd, int target); /* Our implementation of fcntl (fd, F_DUPFD_CLOEXEC, target). */ static int rpl_fcntl_DUPFD_CLOEXEC (int fd, int target); #ifdef __KLIBC__ /* Adds support for fcntl on directories. */ static int klibc_fcntl (int fd, int action, /* arg */...); #endif /* Perform the specified ACTION on the file descriptor FD, possibly using the argument ARG further described below. This replacement handles the following actions, and forwards all others on to the native fcntl. An unrecognized ACTION returns -1 with errno set to EINVAL. F_DUPFD - duplicate FD, with int ARG being the minimum target fd. If successful, return the duplicate, which will be inheritable; otherwise return -1 and set errno. F_DUPFD_CLOEXEC - duplicate FD, with int ARG being the minimum target fd. If successful, return the duplicate, which will not be inheritable; otherwise return -1 and set errno. F_GETFD - ARG need not be present. If successful, return a non-negative value containing the descriptor flags of FD (only FD_CLOEXEC is portable, but other flags may be present); otherwise return -1 and set errno. */ int fcntl (int fd, int action, /* arg */...) #undef fcntl #ifdef __KLIBC__ # define fcntl klibc_fcntl #endif { va_list arg; int result = -1; va_start (arg, action); switch (action) { case F_DUPFD: { int target = va_arg (arg, int); result = rpl_fcntl_DUPFD (fd, target); break; } case F_DUPFD_CLOEXEC: { int target = va_arg (arg, int); result = rpl_fcntl_DUPFD_CLOEXEC (fd, target); break; } #if !HAVE_FCNTL case F_GETFD: { # if defined _WIN32 && ! defined __CYGWIN__ HANDLE handle = (HANDLE) _get_osfhandle (fd); DWORD flags; if (handle == INVALID_HANDLE_VALUE || GetHandleInformation (handle, &flags) == 0) errno = EBADF; else result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; # else /* !W32 */ /* Use dup2 to reject invalid file descriptors. No way to access this information, so punt. */ if (0 <= dup2 (fd, fd)) result = 0; # endif /* !W32 */ break; } /* F_GETFD */ #endif /* !HAVE_FCNTL */ /* Implementing F_SETFD on mingw is not trivial - there is no API for changing the O_NOINHERIT bit on an fd, and merely changing the HANDLE_FLAG_INHERIT bit on the underlying handle can lead to odd state. It may be possible by duplicating the handle, using _open_osfhandle with the right flags, then using dup2 to move the duplicate onto the original, but that is not supported for now. */ default: { #if HAVE_FCNTL switch (action) { #ifdef F_BARRIERFSYNC /* macOS */ case F_BARRIERFSYNC: #endif #ifdef F_CHKCLEAN /* macOS */ case F_CHKCLEAN: #endif #ifdef F_CLOSEM /* NetBSD, HP-UX */ case F_CLOSEM: #endif #ifdef F_FLUSH_DATA /* macOS */ case F_FLUSH_DATA: #endif #ifdef F_FREEZE_FS /* macOS */ case F_FREEZE_FS: #endif #ifdef F_FULLFSYNC /* macOS */ case F_FULLFSYNC: #endif #ifdef F_GETCONFINED /* macOS */ case F_GETCONFINED: #endif #ifdef F_GETDEFAULTPROTLEVEL /* macOS */ case F_GETDEFAULTPROTLEVEL: #endif #ifdef F_GETFD /* POSIX */ case F_GETFD: #endif #ifdef F_GETFL /* POSIX */ case F_GETFL: #endif #ifdef F_GETLEASE /* Linux */ case F_GETLEASE: #endif #ifdef F_GETNOSIGPIPE /* macOS */ case F_GETNOSIGPIPE: #endif #ifdef F_GETOWN /* POSIX */ case F_GETOWN: #endif #ifdef F_GETPIPE_SZ /* Linux */ case F_GETPIPE_SZ: #endif #ifdef F_GETPROTECTIONCLASS /* macOS */ case F_GETPROTECTIONCLASS: #endif #ifdef F_GETPROTECTIONLEVEL /* macOS */ case F_GETPROTECTIONLEVEL: #endif #ifdef F_GET_SEALS /* Linux */ case F_GET_SEALS: #endif #ifdef F_GETSIG /* Linux */ case F_GETSIG: #endif #ifdef F_MAXFD /* NetBSD */ case F_MAXFD: #endif #ifdef F_RECYCLE /* macOS */ case F_RECYCLE: #endif #ifdef F_SETFIFOENH /* HP-UX */ case F_SETFIFOENH: #endif #ifdef F_THAW_FS /* macOS */ case F_THAW_FS: #endif /* These actions take no argument. */ result = fcntl (fd, action); break; #ifdef F_ADD_SEALS /* Linux */ case F_ADD_SEALS: #endif #ifdef F_BADFD /* Solaris */ case F_BADFD: #endif #ifdef F_CHECK_OPENEVT /* macOS */ case F_CHECK_OPENEVT: #endif #ifdef F_DUP2FD /* FreeBSD, AIX, Solaris */ case F_DUP2FD: #endif #ifdef F_DUP2FD_CLOEXEC /* FreeBSD, Solaris */ case F_DUP2FD_CLOEXEC: #endif #ifdef F_DUP2FD_CLOFORK /* Solaris */ case F_DUP2FD_CLOFORK: #endif #ifdef F_DUPFD /* POSIX */ case F_DUPFD: #endif #ifdef F_DUPFD_CLOEXEC /* POSIX */ case F_DUPFD_CLOEXEC: #endif #ifdef F_DUPFD_CLOFORK /* Solaris */ case F_DUPFD_CLOFORK: #endif #ifdef F_GETXFL /* Solaris */ case F_GETXFL: #endif #ifdef F_GLOBAL_NOCACHE /* macOS */ case F_GLOBAL_NOCACHE: #endif #ifdef F_MAKECOMPRESSED /* macOS */ case F_MAKECOMPRESSED: #endif #ifdef F_MOVEDATAEXTENTS /* macOS */ case F_MOVEDATAEXTENTS: #endif #ifdef F_NOCACHE /* macOS */ case F_NOCACHE: #endif #ifdef F_NODIRECT /* macOS */ case F_NODIRECT: #endif #ifdef F_NOTIFY /* Linux */ case F_NOTIFY: #endif #ifdef F_OPLKACK /* IRIX */ case F_OPLKACK: #endif #ifdef F_OPLKREG /* IRIX */ case F_OPLKREG: #endif #ifdef F_RDAHEAD /* macOS */ case F_RDAHEAD: #endif #ifdef F_SETBACKINGSTORE /* macOS */ case F_SETBACKINGSTORE: #endif #ifdef F_SETCONFINED /* macOS */ case F_SETCONFINED: #endif #ifdef F_SETFD /* POSIX */ case F_SETFD: #endif #ifdef F_SETFL /* POSIX */ case F_SETFL: #endif #ifdef F_SETLEASE /* Linux */ case F_SETLEASE: #endif #ifdef F_SETNOSIGPIPE /* macOS */ case F_SETNOSIGPIPE: #endif #ifdef F_SETOWN /* POSIX */ case F_SETOWN: #endif #ifdef F_SETPIPE_SZ /* Linux */ case F_SETPIPE_SZ: #endif #ifdef F_SETPROTECTIONCLASS /* macOS */ case F_SETPROTECTIONCLASS: #endif #ifdef F_SETSIG /* Linux */ case F_SETSIG: #endif #ifdef F_SINGLE_WRITER /* macOS */ case F_SINGLE_WRITER: #endif /* These actions take an 'int' argument. */ { int x = va_arg (arg, int); result = fcntl (fd, action, x); } break; default: /* Other actions take a pointer argument. */ { void *p = va_arg (arg, void *); result = fcntl (fd, action, p); } break; } #else errno = EINVAL; #endif break; } } va_end (arg); return result; } static int rpl_fcntl_DUPFD (int fd, int target) { int result; #if !HAVE_FCNTL result = dupfd (fd, target, 0); #elif FCNTL_DUPFD_BUGGY || REPLACE_FCHDIR /* Detect invalid target; needed for cygwin 1.5.x. */ if (target < 0 || getdtablesize () <= target) { result = -1; errno = EINVAL; } else { /* Haiku alpha 2 loses fd flags on original. */ int flags = fcntl (fd, F_GETFD); if (flags < 0) result = -1; else { result = fcntl (fd, F_DUPFD, target); if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) { int saved_errno = errno; close (result); result = -1; errno = saved_errno; } # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (fd, result); # endif } } #else result = fcntl (fd, F_DUPFD, target); #endif return result; } static int rpl_fcntl_DUPFD_CLOEXEC (int fd, int target) { int result; #if !HAVE_FCNTL result = dupfd (fd, target, O_CLOEXEC); #else /* HAVE_FCNTL */ # if defined __NetBSD__ || defined __HAIKU__ /* On NetBSD 9.0, the system fcntl (fd, F_DUPFD_CLOEXEC, target) has only the same effect as fcntl (fd, F_DUPFD, target). */ /* On Haiku, the system fcntl (fd, F_DUPFD_CLOEXEC, target) sets the FD_CLOEXEC flag on fd, not on target. Therefore avoid the system fcntl in this case. */ # define have_dupfd_cloexec -1 # else /* Try the system call first, if the headers claim it exists (that is, if GNULIB_defined_F_DUPFD_CLOEXEC is 0), since we may be running with a glibc that has the macro but with an older kernel that does not support it. Cache the information on whether the system call really works, but avoid caching failure if the corresponding F_DUPFD fails for any reason. 0 = unknown, 1 = yes, -1 = no. */ static int have_dupfd_cloexec = GNULIB_defined_F_DUPFD_CLOEXEC ? -1 : 0; if (0 <= have_dupfd_cloexec) { result = fcntl (fd, F_DUPFD_CLOEXEC, target); if (0 <= result || errno != EINVAL) { have_dupfd_cloexec = 1; # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (fd, result); # endif } else { result = rpl_fcntl_DUPFD (fd, target); if (result >= 0) have_dupfd_cloexec = -1; } } else # endif result = rpl_fcntl_DUPFD (fd, target); if (0 <= result && have_dupfd_cloexec == -1) { int flags = fcntl (result, F_GETFD); if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) { int saved_errno = errno; close (result); errno = saved_errno; result = -1; } } #endif /* HAVE_FCNTL */ return result; } #undef fcntl #ifdef __KLIBC__ static int klibc_fcntl (int fd, int action, /* arg */...) { va_list arg_ptr; int arg; struct stat sbuf; int result; va_start (arg_ptr, action); arg = va_arg (arg_ptr, int); result = fcntl (fd, action, arg); /* EPERM for F_DUPFD, ENOTSUP for others */ if (result == -1 && (errno == EPERM || errno == ENOTSUP) && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) { ULONG ulMode; switch (action) { case F_DUPFD: /* Find available fd */ while (fcntl (arg, F_GETFL) != -1 || errno != EBADF) arg++; result = dup2 (fd, arg); break; /* Using underlying APIs is right ? */ case F_GETFD: if (DosQueryFHState (fd, &ulMode)) break; result = (ulMode & OPEN_FLAGS_NOINHERIT) ? FD_CLOEXEC : 0; break; case F_SETFD: if (arg & ~FD_CLOEXEC) break; if (DosQueryFHState (fd, &ulMode)) break; if (arg & FD_CLOEXEC) ulMode |= OPEN_FLAGS_NOINHERIT; else ulMode &= ~OPEN_FLAGS_NOINHERIT; /* Filter supported flags. */ ulMode &= (OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT); if (DosSetFHState (fd, ulMode)) break; result = 0; break; case F_GETFL: result = 0; break; case F_SETFL: if (arg != 0) break; result = 0; break; default: errno = EINVAL; break; } } va_end (arg_ptr); return result; } #endif shishi-1.0.3/lib/gl/xgetdomainname.c0000644000000000000000000000163314273615123014214 00000000000000/* Return the NIS domain name, without size limitations. Copyright (C) 1992-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Specification. */ #include "xgetdomainname.h" #define GETANAME getdomainname #define XGETANAME xgetdomainname #include "xgetaname-impl.h" shishi-1.0.3/lib/gl/gettime.c0000644000000000000000000000254614273615122012655 00000000000000/* gettime -- get the system clock Copyright (C) 2002, 2004-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #include #include "timespec.h" #include /* Get the system time into *TS. */ void gettime (struct timespec *ts) { #if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME clock_gettime (CLOCK_REALTIME, ts); #elif defined HAVE_TIMESPEC_GET timespec_get (ts, TIME_UTC); #else struct timeval tv; gettimeofday (&tv, NULL); ts->tv_sec = tv.tv_sec; ts->tv_nsec = tv.tv_usec * 1000; #endif } /* Return the current system time as a struct timespec. */ struct timespec current_timespec (void) { struct timespec ts; gettime (&ts); return ts; } shishi-1.0.3/lib/gl/strverscmp.c0000644000000000000000000000620114273615123013420 00000000000000/* Compare strings while treating digits characters numerically. Copyright (C) 1997-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jean-François Bignolles , 1997. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _LIBC # include # define __strverscmp strverscmp #endif #include #include #include /* states: S_N: normal, S_I: comparing integral part, S_F: comparing fractional parts, S_Z: idem but with leading Zeroes only */ #define S_N 0x0 #define S_I 0x3 #define S_F 0x6 #define S_Z 0x9 /* result_type: CMP: return diff; LEN: compare using len_diff/diff */ #define CMP 2 #define LEN 3 /* Compare S1 and S2 as strings holding indices/version numbers, returning less than, equal to or greater than zero if S1 is less than, equal to or greater than S2 (for more info, see the texinfo doc). */ int __strverscmp (const char *s1, const char *s2) { const unsigned char *p1 = (const unsigned char *) s1; const unsigned char *p2 = (const unsigned char *) s2; /* Symbol(s) 0 [1-9] others Transition (10) 0 (01) d (00) x */ static const uint_least8_t next_state[] = { /* state x d 0 */ /* S_N */ S_N, S_I, S_Z, /* S_I */ S_N, S_I, S_I, /* S_F */ S_N, S_F, S_F, /* S_Z */ S_N, S_F, S_Z }; static const int_least8_t result_type[] = { /* state x/x x/d x/0 d/x d/d d/0 0/x 0/d 0/0 */ /* S_N */ CMP, CMP, CMP, CMP, LEN, CMP, CMP, CMP, CMP, /* S_I */ CMP, -1, -1, +1, LEN, LEN, +1, LEN, LEN, /* S_F */ CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, /* S_Z */ CMP, +1, +1, -1, CMP, CMP, -1, CMP, CMP }; if (p1 == p2) return 0; unsigned char c1 = *p1++; unsigned char c2 = *p2++; /* Hint: '0' is a digit too. */ int state = S_N + ((c1 == '0') + (isdigit (c1) != 0)); int diff; while ((diff = c1 - c2) == 0) { if (c1 == '\0') return diff; state = next_state[state]; c1 = *p1++; c2 = *p2++; state += (c1 == '0') + (isdigit (c1) != 0); } state = result_type[state * 3 + (((c2 == '0') + (isdigit (c2) != 0)))]; switch (state) { case CMP: return diff; case LEN: while (isdigit (*p1++)) if (!isdigit (*p2++)) return 1; return isdigit (*p2) ? -1 : diff; default: return state; } } libc_hidden_def (__strverscmp) weak_alias (__strverscmp, strverscmp) shishi-1.0.3/lib/gl/snprintf.c0000644000000000000000000000356514273615123013065 00000000000000/* Formatted output to strings. Copyright (C) 2004, 2006-2022 Free Software Foundation, Inc. Written by Simon Josefsson and Paul Eggert. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #include #include #include #include "vasnprintf.h" /* Print formatted output to string STR. Similar to sprintf, but additional length SIZE limit how much is written into STR. Returns string length of formatted string (which may be larger than SIZE). STR may be NULL, in which case nothing will be written. On error, return a negative value. */ int snprintf (char *str, size_t size, const char *format, ...) { char *output; size_t len; size_t lenbuf = size; va_list args; va_start (args, format); output = vasnprintf (str, &lenbuf, format, args); len = lenbuf; va_end (args); if (!output) return -1; if (output != str) { if (size) { size_t pruned_len = (len < size ? len : size - 1); memcpy (str, output, pruned_len); str[pruned_len] = '\0'; } free (output); } if (INT_MAX < len) { errno = EOVERFLOW; return -1; } return len; } shishi-1.0.3/lib/gl/libc-config.h0000644000000000000000000001407614273615122013401 00000000000000/* System definitions for code taken from the GNU C Library Copyright 2017-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, see . */ /* Written by Paul Eggert. */ /* This is intended to be a good-enough substitute for glibc system macros like those defined in , so that Gnulib code shared with glibc can do this as the first #include: #ifndef _LIBC # include #endif When compiled as part of glibc this is a no-op; when compiled as part of Gnulib this includes Gnulib's and defines macros that glibc library code would normally assume. Note: This header file MUST NOT be included by public header files of Gnulib. */ #include /* On glibc this includes and and #defines _FEATURES_H, __WORDSIZE, and __set_errno. On FreeBSD 11 and DragonFlyBSD 5.9 it includes which defines __nonnull. Elsewhere it is harmless. */ #include /* From glibc . */ #ifndef __set_errno # define __set_errno(val) (errno = (val)) #endif /* From glibc . */ #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_MINOR__ # define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__)) # else # define __GNUC_PREREQ(maj, min) 0 # endif #endif #ifndef __glibc_clang_prereq # if defined __clang_major__ && defined __clang_minor__ # ifdef __apple_build_version__ /* Apple for some reason renumbers __clang_major__ and __clang_minor__. Gnulib code uses only __glibc_clang_prereq (3, 5); map it to 6000000 <= __apple_build_version__. Support for other calls to __glibc_clang_prereq can be added here as needed. */ # define __glibc_clang_prereq(maj, min) \ ((maj) == 3 && (min) == 5 ? 6000000 <= __apple_build_version__ : 0) # else # define __glibc_clang_prereq(maj, min) \ ((maj) < __clang_major__ + ((min) <= __clang_minor__)) # endif # else # define __glibc_clang_prereq(maj, min) 0 # endif #endif #ifndef __attribute_nonnull__ /* either does not exist, or is too old for Gnulib. Prepare to include , which is Gnulib's version of a more-recent glibc . */ /* Define _FEATURES_H so that does not include . */ # ifndef _FEATURES_H # define _FEATURES_H 1 # endif /* Define __GNULIB_CDEFS so that does not attempt to include nonexistent files. */ # define __GNULIB_CDEFS /* Undef the macros unconditionally defined by our copy of glibc , so that they do not clash with any system-defined versions. */ # undef _SYS_CDEFS_H # undef __ASMNAME # undef __ASMNAME2 # undef __BEGIN_DECLS # undef __CONCAT # undef __END_DECLS # undef __HAVE_GENERIC_SELECTION # undef __LDBL_COMPAT # undef __LDBL_REDIR # undef __LDBL_REDIR1 # undef __LDBL_REDIR1_DECL # undef __LDBL_REDIR1_NTH # undef __LDBL_REDIR2_DECL # undef __LDBL_REDIR_DECL # undef __LDBL_REDIR_NTH # undef __LEAF # undef __LEAF_ATTR # undef __NTH # undef __NTHNL # undef __REDIRECT # undef __REDIRECT_LDBL # undef __REDIRECT_NTH # undef __REDIRECT_NTHNL # undef __REDIRECT_NTH_LDBL # undef __STRING # undef __THROW # undef __THROWNL # undef __attr_access # undef __attr_access_none # undef __attr_dealloc # undef __attr_dealloc_free # undef __attribute__ # undef __attribute_alloc_align__ # undef __attribute_alloc_size__ # undef __attribute_artificial__ # undef __attribute_const__ # undef __attribute_deprecated__ # undef __attribute_deprecated_msg__ # undef __attribute_format_arg__ # undef __attribute_format_strfmon__ # undef __attribute_malloc__ # undef __attribute_maybe_unused__ # undef __attribute_noinline__ # undef __attribute_nonstring__ # undef __attribute_pure__ # undef __attribute_returns_twice__ # undef __attribute_used__ # undef __attribute_warn_unused_result__ # undef __bos # undef __bos0 # undef __errordecl # undef __extension__ # undef __extern_always_inline # undef __extern_inline # undef __flexarr # undef __fortified_attr_access # undef __fortify_function # undef __glibc_c99_flexarr_available # undef __glibc_fortify # undef __glibc_fortify_n # undef __glibc_has_attribute # undef __glibc_has_builtin # undef __glibc_has_extension # undef __glibc_likely # undef __glibc_macro_warning # undef __glibc_macro_warning1 # undef __glibc_objsize # undef __glibc_objsize0 # undef __glibc_safe_len_cond # undef __glibc_safe_or_unknown_len # undef __glibc_unlikely # undef __glibc_unsafe_len # undef __glibc_unsigned_or_positive # undef __inline # undef __ptr_t # undef __restrict # undef __restrict_arr # undef __va_arg_pack # undef __va_arg_pack_len # undef __warnattr # undef __wur /* Include our copy of glibc . */ # include /* __inline is too pessimistic for non-GCC. */ # undef __inline # ifndef HAVE___INLINE # if 199901 <= __STDC_VERSION__ || defined inline # define __inline inline # else # define __inline # endif # endif #endif /* defined __glibc_likely */ /* A substitute for glibc , good enough for Gnulib. */ #define attribute_hidden #define libc_hidden_proto(name) #define libc_hidden_def(name) #define libc_hidden_weak(name) #define libc_hidden_ver(local, name) #define strong_alias(name, aliasname) #define weak_alias(name, aliasname) /* A substitute for glibc , good enough for Gnulib. */ #define SHLIB_COMPAT(lib, introduced, obsoleted) 0 #define compat_symbol(lib, local, symbol, version) extern int dummy #define versioned_symbol(lib, local, symbol, version) extern int dummy shishi-1.0.3/lib/gl/stddef.in.h0000644000000000000000000001203414273615123013074 00000000000000/* A substitute for POSIX 2008 , for platforms that have issues. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake. */ /* * POSIX 2008 for platforms that have issues. * */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_wchar_t || defined __need_size_t \ || defined __need_ptrdiff_t || defined __need_NULL \ || defined __need_wint_t /* Special invocation convention inside gcc header files. In particular, gcc provides a version of that blindly redefines NULL even when __need_wint_t was defined, even though wint_t is not normally provided by . Hence, we must remember if special invocation has ever been used to obtain wint_t, in which case we need to clean up NULL yet again. */ # if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T) # ifdef __need_wint_t # define _GL_STDDEF_WINT_T # endif # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ /* On TinyCC, make sure that the macros that indicate the special invocation convention get undefined. */ # undef __need_wchar_t # undef __need_size_t # undef __need_ptrdiff_t # undef __need_NULL # undef __need_wint_t # endif #else /* Normal invocation convention. */ # ifndef _@GUARD_PREFIX@_STDDEF_H /* On AIX 7.2, with xlc in 64-bit mode, defines max_align_t to a type with alignment 4, but 'long' has alignment 8. */ # if defined _AIX && defined __LP64__ # if !GNULIB_defined_max_align_t # ifdef _MAX_ALIGN_T /* /usr/include/stddef.h has already defined max_align_t. Override it. */ typedef long rpl_max_align_t; # define max_align_t rpl_max_align_t # else /* Prevent /usr/include/stddef.h from defining max_align_t. */ typedef long max_align_t; # define _MAX_ALIGN_T # endif # define GNULIB_defined_max_align_t 1 # endif # endif /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ # if (@REPLACE_NULL@ \ && (!defined _@GUARD_PREFIX@_STDDEF_H || defined _GL_STDDEF_WINT_T)) # undef NULL # ifdef __cplusplus /* ISO C++ says that the macro NULL must expand to an integer constant expression, hence '((void *) 0)' is not allowed in C++. */ # if __GNUG__ >= 3 /* GNU C++ has a __null macro that behaves like an integer ('int' or 'long') but has the same size as a pointer. Use that, to avoid warnings. */ # define NULL __null # else # define NULL 0L # endif # else # define NULL ((void *) 0) # endif # endif # ifndef _@GUARD_PREFIX@_STDDEF_H # define _@GUARD_PREFIX@_STDDEF_H /* Some platforms lack wchar_t. */ #if !@HAVE_WCHAR_T@ # define wchar_t int #endif /* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is a hack in case the configure-time test was done with g++ even though we are currently compiling with gcc. On MSVC, max_align_t is defined only in C++ mode, after was included. Its definition is good since it has an alignment of 8 (on x86 and x86_64). Similarly on OS/2 kLIBC. */ #if (defined _MSC_VER || (defined __KLIBC__ && !defined __LIBCN__)) \ && defined __cplusplus # include #else # if ! (@HAVE_MAX_ALIGN_T@ || (defined _GCC_MAX_ALIGN_T && !defined __clang__)) # if !GNULIB_defined_max_align_t /* On the x86, the maximum storage alignment of double, long, etc. is 4, but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, and the C11 standard allows this. Work around this problem by using __alignof__ (which returns 8 for double) rather than _Alignof (which returns 4), and align each union member accordingly. */ # if defined __GNUC__ || (__clang_major__ >= 4) # define _GL_STDDEF_ALIGNAS(type) \ __attribute__ ((__aligned__ (__alignof__ (type)))) # else # define _GL_STDDEF_ALIGNAS(type) /* */ # endif typedef union { char *__p _GL_STDDEF_ALIGNAS (char *); double __d _GL_STDDEF_ALIGNAS (double); long double __ld _GL_STDDEF_ALIGNAS (long double); long int __i _GL_STDDEF_ALIGNAS (long int); } rpl_max_align_t; # define max_align_t rpl_max_align_t # define GNULIB_defined_max_align_t 1 # endif # endif #endif # endif /* _@GUARD_PREFIX@_STDDEF_H */ # endif /* _@GUARD_PREFIX@_STDDEF_H */ #endif /* __need_XXX */ shishi-1.0.3/lib/gl/msvc-inval.c0000644000000000000000000000755314273615123013302 00000000000000/* Invalid parameter handler for MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "msvc-inval.h" #if HAVE_MSVC_INVALID_PARAMETER_HANDLER \ && !(MSVC_INVALID_PARAMETER_HANDLING == SANE_LIBRARY_HANDLING) /* Get _invalid_parameter_handler type and _set_invalid_parameter_handler declaration. */ # include # if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { } # else /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include # if defined _MSC_VER static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { RaiseException (STATUS_GNULIB_INVALID_PARAMETER, 0, 0, NULL); } # else /* An index to thread-local storage. */ static DWORD tls_index; static int tls_initialized /* = 0 */; /* Used as a fallback only. */ static struct gl_msvc_inval_per_thread not_per_thread; struct gl_msvc_inval_per_thread * gl_msvc_inval_current (void) { if (!tls_initialized) { tls_index = TlsAlloc (); tls_initialized = 1; } if (tls_index == TLS_OUT_OF_INDEXES) /* TlsAlloc had failed. */ return ¬_per_thread; else { struct gl_msvc_inval_per_thread *pointer = (struct gl_msvc_inval_per_thread *) TlsGetValue (tls_index); if (pointer == NULL) { /* First call. Allocate a new 'struct gl_msvc_inval_per_thread'. */ pointer = (struct gl_msvc_inval_per_thread *) malloc (sizeof (struct gl_msvc_inval_per_thread)); if (pointer == NULL) /* Could not allocate memory. Use the global storage. */ pointer = ¬_per_thread; TlsSetValue (tls_index, pointer); } return pointer; } } static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { struct gl_msvc_inval_per_thread *current = gl_msvc_inval_current (); if (current->restart_valid) longjmp (current->restart, 1); else /* An invalid parameter notification from outside the gnulib code. Give the caller a chance to intervene. */ RaiseException (STATUS_GNULIB_INVALID_PARAMETER, 0, 0, NULL); } # endif # endif static int gl_msvc_inval_initialized /* = 0 */; void gl_msvc_inval_ensure_handler (void) { if (gl_msvc_inval_initialized == 0) { _set_invalid_parameter_handler (gl_msvc_invalid_parameter_handler); gl_msvc_inval_initialized = 1; } } #endif shishi-1.0.3/lib/gl/crc.h0000644000000000000000000000366714273615121011777 00000000000000/* crc.h -- cyclic redundancy checks Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #ifndef CRC_H # define CRC_H 1 #include #include /* Compute CRC-32 value of LEN bytes long BUF, and return it. */ extern uint32_t crc32 (const char *buf, size_t len); /* Incrementally update CRC-32 value CRC using LEN bytes long BUF. In the first call, use 0 as the value for CRC. Return the updated CRC-32 value. */ extern uint32_t crc32_update (uint32_t crc, const char *buf, size_t len); /* Compute modified-CRC-32 value of LEN bytes long BUF, and return it. The "modification" is to avoid the initial and final XOR operation. Due to historic implementation errors, this variant is sometimes used (i.e., in RFC 3961). */ extern uint32_t crc32_no_xor (const char *buf, size_t len); /* Incrementally update modified-CRC-32 value CRC using LEN bytes long BUF. In the first call, use 0 as the value for CRC. Return the updated modified-CRC-32 value. The "modification" is to avoid the initial and final XOR operation. Due to historic implementation errors, this variant is sometimes used (i.e., in RFC 3961). */ extern uint32_t crc32_update_no_xor (uint32_t crc, const char *buf, size_t len); #endif /* CRC_H */ shishi-1.0.3/lib/gl/careadlinkat.h0000644000000000000000000000501014273615121013632 00000000000000/* Read symbolic links into a buffer without size limitation, relative to fd. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ #ifndef _GL_CAREADLINKAT_H #define _GL_CAREADLINKAT_H #include #include struct allocator; /* Assuming the current directory is FD, get the symbolic link value of FILENAME as a null-terminated string and put it into a buffer. If FD is AT_FDCWD, FILENAME is interpreted relative to the current working directory, as in openat. If the link is small enough to fit into BUFFER put it there. BUFFER's size is BUFFER_SIZE, and BUFFER can be null if BUFFER_SIZE is zero. If the link is not small, put it into a dynamically allocated buffer managed by ALLOC. It is the caller's responsibility to free the returned value if it is nonnull and is not BUFFER. The PREADLINKAT function specifies how to read links. It operates like POSIX readlinkat() but can assume that its first argument is the same as FD. If successful, return the buffer address; otherwise return NULL and set errno. */ char *careadlinkat (int fd, char const *filename, char *restrict buffer, size_t buffer_size, struct allocator const *alloc, ssize_t (*preadlinkat) (int, char const *, char *, size_t)); /* Suitable value for careadlinkat's FD argument. */ #if HAVE_READLINKAT /* AT_FDCWD is declared in . */ #else /* Define AT_FDCWD independently, so that the careadlinkat module does not depend on the fcntl-h module. We might as well use the same value as fcntl-h. */ # ifndef AT_FDCWD # define AT_FDCWD (-3041965) # endif #endif #endif /* _GL_CAREADLINKAT_H */ shishi-1.0.3/lib/gl/stdarg.in.h0000644000000000000000000000222414273615123013107 00000000000000/* Substitute for and wrapper around . Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_STDARG_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDARG_H@ #ifndef _@GUARD_PREFIX@_STDARG_H #define _@GUARD_PREFIX@_STDARG_H #ifndef va_copy # define va_copy(a,b) ((a) = (b)) #endif #endif /* _@GUARD_PREFIX@_STDARG_H */ #endif /* _@GUARD_PREFIX@_STDARG_H */ shishi-1.0.3/lib/gl/des.c0000644000000000000000000007011714273615121011770 00000000000000/* des.c --- DES and Triple-DES encryption/decryption Algorithm * Copyright (C) 1998-1999, 2001-2007, 2009-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Adapted for gnulib by Simon Josefsson, based on Libgcrypt. */ /* * For a description of triple encryption, see: * Bruce Schneier: Applied Cryptography. Second Edition. * John Wiley & Sons, 1996. ISBN 0-471-12845-7. Pages 358 ff. * This implementation is according to the definition of DES in FIPS * PUB 46-2 from December 1993. * * Written by Michael Roth , September 1998 */ /* * U S A G E * =========== * * For DES or Triple-DES encryption/decryption you must initialize a proper * encryption context with a key. * * A DES key is 64bit wide but only 56bits of the key are used. The remaining * bits are parity bits and they will _not_ checked in this implementation, but * simply ignored. * * For Triple-DES you could use either two 64bit keys or three 64bit keys. * The parity bits will _not_ checked, too. * * After initializing a context with a key you could use this context to * encrypt or decrypt data in 64bit blocks in Electronic Codebook Mode. * * DES Example * ----------- * unsigned char key[8]; * unsigned char plaintext[8]; * unsigned char ciphertext[8]; * unsigned char recoverd[8]; * gl_des_ctx context; * * // Fill 'key' and 'plaintext' with some data * .... * * // Set up the DES encryption context * gl_des_setkey(&context, key); * * // Encrypt the plaintext * des_ecb_encrypt(&context, plaintext, ciphertext); * * // To recover the original plaintext from ciphertext use: * des_ecb_decrypt(&context, ciphertext, recoverd); * * * Triple-DES Example * ------------------ * unsigned char key1[8]; * unsigned char key2[8]; * unsigned char key3[8]; * unsigned char plaintext[8]; * unsigned char ciphertext[8]; * unsigned char recoverd[8]; * gl_3des_ctx context; * * // If you would like to use two 64bit keys, fill 'key1' and'key2' * // then setup the encryption context: * gl_3des_set2keys(&context, key1, key2); * * // To use three 64bit keys with Triple-DES use: * gl_3des_set3keys(&context, key1, key2, key3); * * // Encrypting plaintext with Triple-DES * gl_3des_ecb_encrypt(&context, plaintext, ciphertext); * * // Decrypting ciphertext to recover the plaintext with Triple-DES * gl_3des_ecb_decrypt(&context, ciphertext, recoverd); */ #include #include "des.h" #include #include /* memcpy, memcmp */ /* * The s-box values are permuted according to the 'primitive function P' * and are rotated one bit to the left. */ static const uint32_t sbox1[64] = { 0x01010400, 0x00000000, 0x00010000, 0x01010404, 0x01010004, 0x00010404, 0x00000004, 0x00010000, 0x00000400, 0x01010400, 0x01010404, 0x00000400, 0x01000404, 0x01010004, 0x01000000, 0x00000004, 0x00000404, 0x01000400, 0x01000400, 0x00010400, 0x00010400, 0x01010000, 0x01010000, 0x01000404, 0x00010004, 0x01000004, 0x01000004, 0x00010004, 0x00000000, 0x00000404, 0x00010404, 0x01000000, 0x00010000, 0x01010404, 0x00000004, 0x01010000, 0x01010400, 0x01000000, 0x01000000, 0x00000400, 0x01010004, 0x00010000, 0x00010400, 0x01000004, 0x00000400, 0x00000004, 0x01000404, 0x00010404, 0x01010404, 0x00010004, 0x01010000, 0x01000404, 0x01000004, 0x00000404, 0x00010404, 0x01010400, 0x00000404, 0x01000400, 0x01000400, 0x00000000, 0x00010004, 0x00010400, 0x00000000, 0x01010004 }; static const uint32_t sbox2[64] = { 0x80108020, 0x80008000, 0x00008000, 0x00108020, 0x00100000, 0x00000020, 0x80100020, 0x80008020, 0x80000020, 0x80108020, 0x80108000, 0x80000000, 0x80008000, 0x00100000, 0x00000020, 0x80100020, 0x00108000, 0x00100020, 0x80008020, 0x00000000, 0x80000000, 0x00008000, 0x00108020, 0x80100000, 0x00100020, 0x80000020, 0x00000000, 0x00108000, 0x00008020, 0x80108000, 0x80100000, 0x00008020, 0x00000000, 0x00108020, 0x80100020, 0x00100000, 0x80008020, 0x80100000, 0x80108000, 0x00008000, 0x80100000, 0x80008000, 0x00000020, 0x80108020, 0x00108020, 0x00000020, 0x00008000, 0x80000000, 0x00008020, 0x80108000, 0x00100000, 0x80000020, 0x00100020, 0x80008020, 0x80000020, 0x00100020, 0x00108000, 0x00000000, 0x80008000, 0x00008020, 0x80000000, 0x80100020, 0x80108020, 0x00108000 }; static const uint32_t sbox3[64] = { 0x00000208, 0x08020200, 0x00000000, 0x08020008, 0x08000200, 0x00000000, 0x00020208, 0x08000200, 0x00020008, 0x08000008, 0x08000008, 0x00020000, 0x08020208, 0x00020008, 0x08020000, 0x00000208, 0x08000000, 0x00000008, 0x08020200, 0x00000200, 0x00020200, 0x08020000, 0x08020008, 0x00020208, 0x08000208, 0x00020200, 0x00020000, 0x08000208, 0x00000008, 0x08020208, 0x00000200, 0x08000000, 0x08020200, 0x08000000, 0x00020008, 0x00000208, 0x00020000, 0x08020200, 0x08000200, 0x00000000, 0x00000200, 0x00020008, 0x08020208, 0x08000200, 0x08000008, 0x00000200, 0x00000000, 0x08020008, 0x08000208, 0x00020000, 0x08000000, 0x08020208, 0x00000008, 0x00020208, 0x00020200, 0x08000008, 0x08020000, 0x08000208, 0x00000208, 0x08020000, 0x00020208, 0x00000008, 0x08020008, 0x00020200 }; static const uint32_t sbox4[64] = { 0x00802001, 0x00002081, 0x00002081, 0x00000080, 0x00802080, 0x00800081, 0x00800001, 0x00002001, 0x00000000, 0x00802000, 0x00802000, 0x00802081, 0x00000081, 0x00000000, 0x00800080, 0x00800001, 0x00000001, 0x00002000, 0x00800000, 0x00802001, 0x00000080, 0x00800000, 0x00002001, 0x00002080, 0x00800081, 0x00000001, 0x00002080, 0x00800080, 0x00002000, 0x00802080, 0x00802081, 0x00000081, 0x00800080, 0x00800001, 0x00802000, 0x00802081, 0x00000081, 0x00000000, 0x00000000, 0x00802000, 0x00002080, 0x00800080, 0x00800081, 0x00000001, 0x00802001, 0x00002081, 0x00002081, 0x00000080, 0x00802081, 0x00000081, 0x00000001, 0x00002000, 0x00800001, 0x00002001, 0x00802080, 0x00800081, 0x00002001, 0x00002080, 0x00800000, 0x00802001, 0x00000080, 0x00800000, 0x00002000, 0x00802080 }; static const uint32_t sbox5[64] = { 0x00000100, 0x02080100, 0x02080000, 0x42000100, 0x00080000, 0x00000100, 0x40000000, 0x02080000, 0x40080100, 0x00080000, 0x02000100, 0x40080100, 0x42000100, 0x42080000, 0x00080100, 0x40000000, 0x02000000, 0x40080000, 0x40080000, 0x00000000, 0x40000100, 0x42080100, 0x42080100, 0x02000100, 0x42080000, 0x40000100, 0x00000000, 0x42000000, 0x02080100, 0x02000000, 0x42000000, 0x00080100, 0x00080000, 0x42000100, 0x00000100, 0x02000000, 0x40000000, 0x02080000, 0x42000100, 0x40080100, 0x02000100, 0x40000000, 0x42080000, 0x02080100, 0x40080100, 0x00000100, 0x02000000, 0x42080000, 0x42080100, 0x00080100, 0x42000000, 0x42080100, 0x02080000, 0x00000000, 0x40080000, 0x42000000, 0x00080100, 0x02000100, 0x40000100, 0x00080000, 0x00000000, 0x40080000, 0x02080100, 0x40000100 }; static const uint32_t sbox6[64] = { 0x20000010, 0x20400000, 0x00004000, 0x20404010, 0x20400000, 0x00000010, 0x20404010, 0x00400000, 0x20004000, 0x00404010, 0x00400000, 0x20000010, 0x00400010, 0x20004000, 0x20000000, 0x00004010, 0x00000000, 0x00400010, 0x20004010, 0x00004000, 0x00404000, 0x20004010, 0x00000010, 0x20400010, 0x20400010, 0x00000000, 0x00404010, 0x20404000, 0x00004010, 0x00404000, 0x20404000, 0x20000000, 0x20004000, 0x00000010, 0x20400010, 0x00404000, 0x20404010, 0x00400000, 0x00004010, 0x20000010, 0x00400000, 0x20004000, 0x20000000, 0x00004010, 0x20000010, 0x20404010, 0x00404000, 0x20400000, 0x00404010, 0x20404000, 0x00000000, 0x20400010, 0x00000010, 0x00004000, 0x20400000, 0x00404010, 0x00004000, 0x00400010, 0x20004010, 0x00000000, 0x20404000, 0x20000000, 0x00400010, 0x20004010 }; static const uint32_t sbox7[64] = { 0x00200000, 0x04200002, 0x04000802, 0x00000000, 0x00000800, 0x04000802, 0x00200802, 0x04200800, 0x04200802, 0x00200000, 0x00000000, 0x04000002, 0x00000002, 0x04000000, 0x04200002, 0x00000802, 0x04000800, 0x00200802, 0x00200002, 0x04000800, 0x04000002, 0x04200000, 0x04200800, 0x00200002, 0x04200000, 0x00000800, 0x00000802, 0x04200802, 0x00200800, 0x00000002, 0x04000000, 0x00200800, 0x04000000, 0x00200800, 0x00200000, 0x04000802, 0x04000802, 0x04200002, 0x04200002, 0x00000002, 0x00200002, 0x04000000, 0x04000800, 0x00200000, 0x04200800, 0x00000802, 0x00200802, 0x04200800, 0x00000802, 0x04000002, 0x04200802, 0x04200000, 0x00200800, 0x00000000, 0x00000002, 0x04200802, 0x00000000, 0x00200802, 0x04200000, 0x00000800, 0x04000002, 0x04000800, 0x00000800, 0x00200002 }; static const uint32_t sbox8[64] = { 0x10001040, 0x00001000, 0x00040000, 0x10041040, 0x10000000, 0x10001040, 0x00000040, 0x10000000, 0x00040040, 0x10040000, 0x10041040, 0x00041000, 0x10041000, 0x00041040, 0x00001000, 0x00000040, 0x10040000, 0x10000040, 0x10001000, 0x00001040, 0x00041000, 0x00040040, 0x10040040, 0x10041000, 0x00001040, 0x00000000, 0x00000000, 0x10040040, 0x10000040, 0x10001000, 0x00041040, 0x00040000, 0x00041040, 0x00040000, 0x10041000, 0x00001000, 0x00000040, 0x10040040, 0x00001000, 0x00041040, 0x10001000, 0x00000040, 0x10000040, 0x10040000, 0x10040040, 0x10000000, 0x00040000, 0x10001040, 0x00000000, 0x10041040, 0x00040040, 0x10000040, 0x10040000, 0x10001000, 0x10001040, 0x00000000, 0x10041040, 0x00041000, 0x00041000, 0x00001040, 0x00001040, 0x00040040, 0x10000000, 0x10041000 }; /* * These two tables are part of the 'permuted choice 1' function. * In this implementation several speed improvements are done. */ static const uint32_t leftkey_swap[16] = { 0x00000000, 0x00000001, 0x00000100, 0x00000101, 0x00010000, 0x00010001, 0x00010100, 0x00010101, 0x01000000, 0x01000001, 0x01000100, 0x01000101, 0x01010000, 0x01010001, 0x01010100, 0x01010101 }; static const uint32_t rightkey_swap[16] = { 0x00000000, 0x01000000, 0x00010000, 0x01010000, 0x00000100, 0x01000100, 0x00010100, 0x01010100, 0x00000001, 0x01000001, 0x00010001, 0x01010001, 0x00000101, 0x01000101, 0x00010101, 0x01010101, }; /* * Numbers of left shifts per round for encryption subkeys. To * calculate the decryption subkeys we just reverse the ordering of * the calculated encryption subkeys, so there is no need for a * decryption rotate tab. */ static const unsigned char encrypt_rotate_tab[16] = { 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 }; /* * Table with weak DES keys sorted in ascending order. In DES there * are 64 known keys which are weak. They are weak because they * produce only one, two or four different subkeys in the subkey * scheduling process. The keys in this table have all their parity * bits cleared. */ static const unsigned char weak_keys[64][8] = { {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /*w */ {0x00, 0x00, 0x1e, 0x1e, 0x00, 0x00, 0x0e, 0x0e}, {0x00, 0x00, 0xe0, 0xe0, 0x00, 0x00, 0xf0, 0xf0}, {0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, 0xfe, 0xfe}, {0x00, 0x1e, 0x00, 0x1e, 0x00, 0x0e, 0x00, 0x0e}, /*sw */ {0x00, 0x1e, 0x1e, 0x00, 0x00, 0x0e, 0x0e, 0x00}, {0x00, 0x1e, 0xe0, 0xfe, 0x00, 0x0e, 0xf0, 0xfe}, {0x00, 0x1e, 0xfe, 0xe0, 0x00, 0x0e, 0xfe, 0xf0}, {0x00, 0xe0, 0x00, 0xe0, 0x00, 0xf0, 0x00, 0xf0}, /*sw */ {0x00, 0xe0, 0x1e, 0xfe, 0x00, 0xf0, 0x0e, 0xfe}, {0x00, 0xe0, 0xe0, 0x00, 0x00, 0xf0, 0xf0, 0x00}, {0x00, 0xe0, 0xfe, 0x1e, 0x00, 0xf0, 0xfe, 0x0e}, {0x00, 0xfe, 0x00, 0xfe, 0x00, 0xfe, 0x00, 0xfe}, /*sw */ {0x00, 0xfe, 0x1e, 0xe0, 0x00, 0xfe, 0x0e, 0xf0}, {0x00, 0xfe, 0xe0, 0x1e, 0x00, 0xfe, 0xf0, 0x0e}, {0x00, 0xfe, 0xfe, 0x00, 0x00, 0xfe, 0xfe, 0x00}, {0x1e, 0x00, 0x00, 0x1e, 0x0e, 0x00, 0x00, 0x0e}, {0x1e, 0x00, 0x1e, 0x00, 0x0e, 0x00, 0x0e, 0x00}, /*sw */ {0x1e, 0x00, 0xe0, 0xfe, 0x0e, 0x00, 0xf0, 0xfe}, {0x1e, 0x00, 0xfe, 0xe0, 0x0e, 0x00, 0xfe, 0xf0}, {0x1e, 0x1e, 0x00, 0x00, 0x0e, 0x0e, 0x00, 0x00}, {0x1e, 0x1e, 0x1e, 0x1e, 0x0e, 0x0e, 0x0e, 0x0e}, /*w */ {0x1e, 0x1e, 0xe0, 0xe0, 0x0e, 0x0e, 0xf0, 0xf0}, {0x1e, 0x1e, 0xfe, 0xfe, 0x0e, 0x0e, 0xfe, 0xfe}, {0x1e, 0xe0, 0x00, 0xfe, 0x0e, 0xf0, 0x00, 0xfe}, {0x1e, 0xe0, 0x1e, 0xe0, 0x0e, 0xf0, 0x0e, 0xf0}, /*sw */ {0x1e, 0xe0, 0xe0, 0x1e, 0x0e, 0xf0, 0xf0, 0x0e}, {0x1e, 0xe0, 0xfe, 0x00, 0x0e, 0xf0, 0xfe, 0x00}, {0x1e, 0xfe, 0x00, 0xe0, 0x0e, 0xfe, 0x00, 0xf0}, {0x1e, 0xfe, 0x1e, 0xfe, 0x0e, 0xfe, 0x0e, 0xfe}, /*sw */ {0x1e, 0xfe, 0xe0, 0x00, 0x0e, 0xfe, 0xf0, 0x00}, {0x1e, 0xfe, 0xfe, 0x1e, 0x0e, 0xfe, 0xfe, 0x0e}, {0xe0, 0x00, 0x00, 0xe0, 0xf0, 0x00, 0x00, 0xf0}, {0xe0, 0x00, 0x1e, 0xfe, 0xf0, 0x00, 0x0e, 0xfe}, {0xe0, 0x00, 0xe0, 0x00, 0xf0, 0x00, 0xf0, 0x00}, /*sw */ {0xe0, 0x00, 0xfe, 0x1e, 0xf0, 0x00, 0xfe, 0x0e}, {0xe0, 0x1e, 0x00, 0xfe, 0xf0, 0x0e, 0x00, 0xfe}, {0xe0, 0x1e, 0x1e, 0xe0, 0xf0, 0x0e, 0x0e, 0xf0}, {0xe0, 0x1e, 0xe0, 0x1e, 0xf0, 0x0e, 0xf0, 0x0e}, /*sw */ {0xe0, 0x1e, 0xfe, 0x00, 0xf0, 0x0e, 0xfe, 0x00}, {0xe0, 0xe0, 0x00, 0x00, 0xf0, 0xf0, 0x00, 0x00}, {0xe0, 0xe0, 0x1e, 0x1e, 0xf0, 0xf0, 0x0e, 0x0e}, {0xe0, 0xe0, 0xe0, 0xe0, 0xf0, 0xf0, 0xf0, 0xf0}, /*w */ {0xe0, 0xe0, 0xfe, 0xfe, 0xf0, 0xf0, 0xfe, 0xfe}, {0xe0, 0xfe, 0x00, 0x1e, 0xf0, 0xfe, 0x00, 0x0e}, {0xe0, 0xfe, 0x1e, 0x00, 0xf0, 0xfe, 0x0e, 0x00}, {0xe0, 0xfe, 0xe0, 0xfe, 0xf0, 0xfe, 0xf0, 0xfe}, /*sw */ {0xe0, 0xfe, 0xfe, 0xe0, 0xf0, 0xfe, 0xfe, 0xf0}, {0xfe, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00, 0xfe}, {0xfe, 0x00, 0x1e, 0xe0, 0xfe, 0x00, 0x0e, 0xf0}, {0xfe, 0x00, 0xe0, 0x1e, 0xfe, 0x00, 0xf0, 0x0e}, {0xfe, 0x00, 0xfe, 0x00, 0xfe, 0x00, 0xfe, 0x00}, /*sw */ {0xfe, 0x1e, 0x00, 0xe0, 0xfe, 0x0e, 0x00, 0xf0}, {0xfe, 0x1e, 0x1e, 0xfe, 0xfe, 0x0e, 0x0e, 0xfe}, {0xfe, 0x1e, 0xe0, 0x00, 0xfe, 0x0e, 0xf0, 0x00}, {0xfe, 0x1e, 0xfe, 0x1e, 0xfe, 0x0e, 0xfe, 0x0e}, /*sw */ {0xfe, 0xe0, 0x00, 0x1e, 0xfe, 0xf0, 0x00, 0x0e}, {0xfe, 0xe0, 0x1e, 0x00, 0xfe, 0xf0, 0x0e, 0x00}, {0xfe, 0xe0, 0xe0, 0xfe, 0xfe, 0xf0, 0xf0, 0xfe}, {0xfe, 0xe0, 0xfe, 0xe0, 0xfe, 0xf0, 0xfe, 0xf0}, /*sw */ {0xfe, 0xfe, 0x00, 0x00, 0xfe, 0xfe, 0x00, 0x00}, {0xfe, 0xfe, 0x1e, 0x1e, 0xfe, 0xfe, 0x0e, 0x0e}, {0xfe, 0xfe, 0xe0, 0xe0, 0xfe, 0xfe, 0xf0, 0xf0}, {0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe} /*w */ }; bool gl_des_is_weak_key (const char * key) { char work[8]; int i, left, right, middle, cmp_result; /* clear parity bits */ for (i = 0; i < 8; ++i) work[i] = ((unsigned char)key[i]) & 0xfe; /* binary search in the weak key table */ left = 0; right = 63; while (left <= right) { middle = (left + right) / 2; if (!(cmp_result = memcmp (work, weak_keys[middle], 8))) return -1; if (cmp_result > 0) left = middle + 1; else right = middle - 1; } return 0; } /* * Macro to swap bits across two words. */ #define DO_PERMUTATION(a, temp, b, offset, mask) \ temp = ((a>>offset) ^ b) & mask; \ b ^= temp; \ a ^= temp<> 31); \ temp = (left ^ right) & 0xaaaaaaaa; \ right ^= temp; \ left ^= temp; \ left = (left << 1) | (left >> 31); /* * The 'inverse initial permutation'. */ #define FINAL_PERMUTATION(left, temp, right) \ left = (left << 31) | (left >> 1); \ temp = (left ^ right) & 0xaaaaaaaa; \ left ^= temp; \ right ^= temp; \ right = (right << 31) | (right >> 1); \ DO_PERMUTATION(right, temp, left, 8, 0x00ff00ff) \ DO_PERMUTATION(right, temp, left, 2, 0x33333333) \ DO_PERMUTATION(left, temp, right, 16, 0x0000ffff) \ DO_PERMUTATION(left, temp, right, 4, 0x0f0f0f0f) /* * A full DES round including 'expansion function', 'sbox substitution' * and 'primitive function P' but without swapping the left and right word. * Please note: The data in 'from' and 'to' is already rotated one bit to * the left, done in the initial permutation. */ #define DES_ROUND(from, to, work, subkey) \ work = from ^ *subkey++; \ to ^= sbox8[ work & 0x3f ]; \ to ^= sbox6[ (work>>8) & 0x3f ]; \ to ^= sbox4[ (work>>16) & 0x3f ]; \ to ^= sbox2[ (work>>24) & 0x3f ]; \ work = ((from << 28) | (from >> 4)) ^ *subkey++; \ to ^= sbox7[ work & 0x3f ]; \ to ^= sbox5[ (work>>8) & 0x3f ]; \ to ^= sbox3[ (work>>16) & 0x3f ]; \ to ^= sbox1[ (work>>24) & 0x3f ]; /* * Macros to convert 8 bytes from/to 32bit words. */ #define READ_64BIT_DATA(data, left, right) \ left = ((uint32_t) data[0] << 24) \ | ((uint32_t) data[1] << 16) \ | ((uint32_t) data[2] << 8) \ | (uint32_t) data[3]; \ right = ((uint32_t) data[4] << 24) \ | ((uint32_t) data[5] << 16) \ | ((uint32_t) data[6] << 8) \ | (uint32_t) data[7]; #define WRITE_64BIT_DATA(data, left, right) \ data[0] = (left >> 24) &0xff; data[1] = (left >> 16) &0xff; \ data[2] = (left >> 8) &0xff; data[3] = left &0xff; \ data[4] = (right >> 24) &0xff; data[5] = (right >> 16) &0xff; \ data[6] = (right >> 8) &0xff; data[7] = right &0xff; /* * des_key_schedule(): Calculate 16 subkeys pairs (even/odd) for * 16 encryption rounds. * To calculate subkeys for decryption the caller * have to reorder the generated subkeys. * * rawkey: 8 Bytes of key data * subkey: Array of at least 32 uint32_ts. Will be filled * with calculated subkeys. * */ static void des_key_schedule (const char * _rawkey, uint32_t * subkey) { const unsigned char *rawkey = (const unsigned char *) _rawkey; uint32_t left, right, work; int round; READ_64BIT_DATA (rawkey, left, right) DO_PERMUTATION (right, work, left, 4, 0x0f0f0f0f) DO_PERMUTATION (right, work, left, 0, 0x10101010) left = ((leftkey_swap[(left >> 0) & 0xf] << 3) | (leftkey_swap[(left >> 8) & 0xf] << 2) | (leftkey_swap[(left >> 16) & 0xf] << 1) | (leftkey_swap[(left >> 24) & 0xf]) | (leftkey_swap[(left >> 5) & 0xf] << 7) | (leftkey_swap[(left >> 13) & 0xf] << 6) | (leftkey_swap[(left >> 21) & 0xf] << 5) | (leftkey_swap[(left >> 29) & 0xf] << 4)); left &= 0x0fffffff; right = ((rightkey_swap[(right >> 1) & 0xf] << 3) | (rightkey_swap[(right >> 9) & 0xf] << 2) | (rightkey_swap[(right >> 17) & 0xf] << 1) | (rightkey_swap[(right >> 25) & 0xf]) | (rightkey_swap[(right >> 4) & 0xf] << 7) | (rightkey_swap[(right >> 12) & 0xf] << 6) | (rightkey_swap[(right >> 20) & 0xf] << 5) | (rightkey_swap[(right >> 28) & 0xf] << 4)); right &= 0x0fffffff; for (round = 0; round < 16; ++round) { left = ((left << encrypt_rotate_tab[round]) | (left >> (28 - encrypt_rotate_tab[round]))) & 0x0fffffff; right = ((right << encrypt_rotate_tab[round]) | (right >> (28 - encrypt_rotate_tab[round]))) & 0x0fffffff; *subkey++ = (((left << 4) & 0x24000000) | ((left << 28) & 0x10000000) | ((left << 14) & 0x08000000) | ((left << 18) & 0x02080000) | ((left << 6) & 0x01000000) | ((left << 9) & 0x00200000) | ((left >> 1) & 0x00100000) | ((left << 10) & 0x00040000) | ((left << 2) & 0x00020000) | ((left >> 10) & 0x00010000) | ((right >> 13) & 0x00002000) | ((right >> 4) & 0x00001000) | ((right << 6) & 0x00000800) | ((right >> 1) & 0x00000400) | ((right >> 14) & 0x00000200) | (right & 0x00000100) | ((right >> 5) & 0x00000020) | ((right >> 10) & 0x00000010) | ((right >> 3) & 0x00000008) | ((right >> 18) & 0x00000004) | ((right >> 26) & 0x00000002) | ((right >> 24) & 0x00000001)); *subkey++ = (((left << 15) & 0x20000000) | ((left << 17) & 0x10000000) | ((left << 10) & 0x08000000) | ((left << 22) & 0x04000000) | ((left >> 2) & 0x02000000) | ((left << 1) & 0x01000000) | ((left << 16) & 0x00200000) | ((left << 11) & 0x00100000) | ((left << 3) & 0x00080000) | ((left >> 6) & 0x00040000) | ((left << 15) & 0x00020000) | ((left >> 4) & 0x00010000) | ((right >> 2) & 0x00002000) | ((right << 8) & 0x00001000) | ((right >> 14) & 0x00000808) | ((right >> 9) & 0x00000400) | ((right) & 0x00000200) | ((right << 7) & 0x00000100) | ((right >> 7) & 0x00000020) | ((right >> 3) & 0x00000011) | ((right << 2) & 0x00000004) | ((right >> 21) & 0x00000002)); } } void gl_des_setkey (gl_des_ctx *ctx, const char * key) { int i; des_key_schedule (key, ctx->encrypt_subkeys); for (i = 0; i < 32; i += 2) { ctx->decrypt_subkeys[i] = ctx->encrypt_subkeys[30 - i]; ctx->decrypt_subkeys[i + 1] = ctx->encrypt_subkeys[31 - i]; } } bool gl_des_makekey (gl_des_ctx *ctx, const char * key, size_t keylen) { if (keylen != 8) return false; gl_des_setkey (ctx, key); return !gl_des_is_weak_key (key); } void gl_des_ecb_crypt (gl_des_ctx *ctx, const char * _from, char * _to, int mode) { const unsigned char *from = (const unsigned char *) _from; unsigned char *to = (unsigned char *) _to; uint32_t left, right, work; uint32_t *keys; keys = mode ? ctx->decrypt_subkeys : ctx->encrypt_subkeys; READ_64BIT_DATA (from, left, right) INITIAL_PERMUTATION (left, work, right) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) FINAL_PERMUTATION (right, work, left) WRITE_64BIT_DATA (to, right, left) } void gl_3des_set2keys (gl_3des_ctx *ctx, const char * key1, const char * key2) { int i; des_key_schedule (key1, ctx->encrypt_subkeys); des_key_schedule (key2, &(ctx->decrypt_subkeys[32])); for (i = 0; i < 32; i += 2) { ctx->decrypt_subkeys[i] = ctx->encrypt_subkeys[30 - i]; ctx->decrypt_subkeys[i + 1] = ctx->encrypt_subkeys[31 - i]; ctx->encrypt_subkeys[i + 32] = ctx->decrypt_subkeys[62 - i]; ctx->encrypt_subkeys[i + 33] = ctx->decrypt_subkeys[63 - i]; ctx->encrypt_subkeys[i + 64] = ctx->encrypt_subkeys[i]; ctx->encrypt_subkeys[i + 65] = ctx->encrypt_subkeys[i + 1]; ctx->decrypt_subkeys[i + 64] = ctx->decrypt_subkeys[i]; ctx->decrypt_subkeys[i + 65] = ctx->decrypt_subkeys[i + 1]; } } void gl_3des_set3keys (gl_3des_ctx *ctx, const char * key1, const char * key2, const char * key3) { int i; des_key_schedule (key1, ctx->encrypt_subkeys); des_key_schedule (key2, &(ctx->decrypt_subkeys[32])); des_key_schedule (key3, &(ctx->encrypt_subkeys[64])); for (i = 0; i < 32; i += 2) { ctx->decrypt_subkeys[i] = ctx->encrypt_subkeys[94 - i]; ctx->decrypt_subkeys[i + 1] = ctx->encrypt_subkeys[95 - i]; ctx->encrypt_subkeys[i + 32] = ctx->decrypt_subkeys[62 - i]; ctx->encrypt_subkeys[i + 33] = ctx->decrypt_subkeys[63 - i]; ctx->decrypt_subkeys[i + 64] = ctx->encrypt_subkeys[30 - i]; ctx->decrypt_subkeys[i + 65] = ctx->encrypt_subkeys[31 - i]; } } void gl_3des_ecb_crypt (gl_3des_ctx *ctx, const char * _from, char * _to, int mode) { const unsigned char *from = (const unsigned char *) _from; unsigned char *to = (unsigned char *) _to; uint32_t left, right, work; uint32_t *keys; keys = mode ? ctx->decrypt_subkeys : ctx->encrypt_subkeys; READ_64BIT_DATA (from, left, right) INITIAL_PERMUTATION (left, work, right) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) DES_ROUND (right, left, work, keys) DES_ROUND (left, right, work, keys) FINAL_PERMUTATION (right, work, left) WRITE_64BIT_DATA (to, right, left) } bool gl_3des_makekey (gl_3des_ctx *ctx, const char * key, size_t keylen) { if (keylen != 24) return false; gl_3des_set3keys (ctx, key, key + 8, key + 16); return !(gl_des_is_weak_key (key) || gl_des_is_weak_key (key + 8) || gl_des_is_weak_key (key + 16)); } shishi-1.0.3/lib/gl/dup2.c0000644000000000000000000000774214273615121012073 00000000000000/* Duplicate an open file descriptor to a specified file descriptor. Copyright (C) 1999, 2004-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Paul Eggert */ #include /* Specification. */ #include #include #include #undef dup2 #if defined _WIN32 && ! defined __CYGWIN__ /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" # endif /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int dup2_nothrow (int fd, int desired_fd) { int result; TRY_MSVC_INVAL { result = _dup2 (fd, desired_fd); } CATCH_MSVC_INVAL { errno = EBADF; result = -1; } DONE_MSVC_INVAL; return result; } # else # define dup2_nothrow _dup2 # endif static int ms_windows_dup2 (int fd, int desired_fd) { int result; /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, dup2 (fd, fd) returns 0, but all further attempts to use fd in future dup2 calls will hang. */ if (fd == desired_fd) { if ((HANDLE) _get_osfhandle (fd) == INVALID_HANDLE_VALUE) { errno = EBADF; return -1; } return fd; } /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: https://bugs.winehq.org/show_bug.cgi?id=21289 */ if (desired_fd < 0) { errno = EBADF; return -1; } result = dup2_nothrow (fd, desired_fd); if (result == 0) result = desired_fd; return result; } # define dup2 ms_windows_dup2 #elif defined __KLIBC__ # include static int klibc_dup2dirfd (int fd, int desired_fd) { int tempfd; int dupfd; tempfd = open ("NUL", O_RDONLY); if (tempfd == -1) return -1; if (tempfd == desired_fd) { close (tempfd); char path[_MAX_PATH]; if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) return -1; return open(path, O_RDONLY); } dupfd = klibc_dup2dirfd (fd, desired_fd); close (tempfd); return dupfd; } static int klibc_dup2 (int fd, int desired_fd) { int dupfd; struct stat sbuf; dupfd = dup2 (fd, desired_fd); if (dupfd == -1 && errno == ENOTSUP \ && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) { close (desired_fd); return klibc_dup2dirfd (fd, desired_fd); } return dupfd; } # define dup2 klibc_dup2 #endif int rpl_dup2 (int fd, int desired_fd) { int result; #ifdef F_GETFL /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. On Cygwin 1.5.x, dup2 (1, 1) returns 0. On Cygwin 1.7.17, dup2 (1, -1) dumps core. On Cygwin 1.7.25, dup2 (1, 256) can dump core. On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */ # if HAVE_SETDTABLESIZE setdtablesize (desired_fd + 1); # endif if (desired_fd < 0) fd = desired_fd; if (fd == desired_fd) return fcntl (fd, F_GETFL) == -1 ? -1 : fd; #endif result = dup2 (fd, desired_fd); /* Correct an errno value on FreeBSD 6.1 and Cygwin 1.5.x. */ if (result == -1 && errno == EMFILE) errno = EBADF; #if REPLACE_FCHDIR if (fd != desired_fd && result != -1) result = _gl_register_dup (fd, result); #endif return result; } shishi-1.0.3/lib/gl/ftello.c0000644000000000000000000001011414273615122012472 00000000000000/* An ftello() function that works around platform bugs. Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include "intprops.h" /* Get lseek. */ #include #include "stdio-impl.h" off_t ftello (FILE *fp) #undef ftello #if !HAVE_FTELLO # undef ftell # define ftello ftell #endif #if _GL_WINDOWS_64_BIT_OFF_T # undef ftello # if HAVE__FTELLI64 /* msvc, mingw64 */ # define ftello _ftelli64 # else /* mingw */ # define ftello ftello64 # endif #endif { #if FTELLO_BROKEN_AFTER_UNGETC /* macOS >= 10.15 */ /* The system's ftello() is completely broken, because it calls __sflush, which makes side effects on the stream. */ /* Handle non-seekable files first. */ if (fp->_file < 0 || fp->_seek == NULL) { errno = ESPIPE; return -1; } /* Determine the current offset, ignoring buffered and pushed-back bytes. */ off_t pos; if (fp->_flags & __SOFF) pos = fp->_offset; else { pos = fp->_seek (fp->_cookie, 0, SEEK_CUR); if (pos < 0) return -1; if (fp->_flags & __SOPT) { fp->_offset = pos; fp->_flags |= __SOFF; } } if (fp->_flags & __SRD) { /* Now consider buffered and pushed-back bytes from ungetc. */ if (fp->_ub._base != NULL) /* Considering the buffered bytes, we are at position pos - fp->_ur. Considering also the pushed-back bytes, we are at position pos - fp->_ur - fp->_r. */ pos = pos - fp->_ur - fp->_r; else /* Considering the buffered bytes, we are at position pos - fp->_r. */ pos = pos - fp->_r; if (pos < 0) { errno = EIO; return -1; } } else if ((fp->_flags & __SWR) && fp->_p != NULL) { /* Consider the buffered bytes. */ off_t buffered = fp->_p - fp->_bf._base; /* Compute pos + buffered, with overflow check. */ off_t sum; if (! INT_ADD_OK (pos, buffered, &sum)) { errno = EOVERFLOW; return -1; } pos = sum; } return pos; #else # if LSEEK_PIPE_BROKEN /* mingw gives bogus answers rather than failure on non-seekable files. */ if (lseek (fileno (fp), 0, SEEK_CUR) == -1) return -1; # endif # if FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE /* Solaris */ /* The Solaris stdio leaves the _IOREAD flag set after reading from a file reaches EOF and the program then starts writing to the file. ftello gets confused by this. */ if (fp_->_flag & _IOWRT) { off_t pos; /* Call ftello nevertheless, for the side effects that it does on fp. */ ftello (fp); /* Compute the file position ourselves. */ pos = lseek (fileno (fp), (off_t) 0, SEEK_CUR); if (pos >= 0) { if ((fp_->_flag & _IONBF) == 0 && fp_->_base != NULL) pos += fp_->_ptr - fp_->_base; } return pos; } # endif # if defined __SL64 && defined __SCLE /* Cygwin */ if ((fp->_flags & __SL64) == 0) { /* Cygwin 1.5.0 through 1.5.24 failed to open stdin in 64-bit mode; but has an ftello that requires 64-bit mode. */ FILE *tmp = fopen ("/dev/null", "r"); if (!tmp) return -1; fp->_flags |= __SL64; fp->_seek64 = tmp->_seek64; fclose (tmp); } # endif return ftello (fp); #endif } shishi-1.0.3/lib/gl/des.h0000644000000000000000000000727114273615121011776 00000000000000/* des.h --- DES cipher implementation. * Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Adapted for gnulib by Simon Josefsson, based on Libgcrypt. */ #ifndef DES_H # define DES_H #include #include #include /* * Encryption/Decryption context of DES */ typedef struct { uint32_t encrypt_subkeys[32]; uint32_t decrypt_subkeys[32]; } gl_des_ctx; /* * Encryption/Decryption context of Triple-DES */ typedef struct { uint32_t encrypt_subkeys[96]; uint32_t decrypt_subkeys[96]; } gl_3des_ctx; /* Check whether the 8 byte key is weak. Does not check the parity * bits of the key but simple ignore them. */ extern bool gl_des_is_weak_key (const char * key); /* * DES * --- */ /* Fill a DES context CTX with subkeys calculated from 64bit KEY. * Does not check parity bits, but simply ignore them. Does not check * for weak keys. */ extern void gl_des_setkey (gl_des_ctx *ctx, const char * key); /* Fill a DES context CTX with subkeys calculated from 64bit KEY, with * weak key checking. Does not check parity bits, but simply ignore * them. */ extern bool gl_des_makekey (gl_des_ctx *ctx, const char * key, size_t keylen); /* Electronic Codebook Mode DES encryption/decryption of data * according to 'mode'. */ extern void gl_des_ecb_crypt (gl_des_ctx *ctx, const char * from, char * to, int mode); #define gl_des_ecb_encrypt(ctx, from, to) gl_des_ecb_crypt(ctx, from, to, 0) #define gl_des_ecb_decrypt(ctx, from, to) gl_des_ecb_crypt(ctx, from, to, 1) /* Triple-DES * ---------- */ /* Fill a Triple-DES context CTX with subkeys calculated from two * 64bit keys in KEY1 and KEY2. Does not check the parity bits of the * keys, but simply ignore them. Does not check for weak keys. */ extern void gl_3des_set2keys (gl_3des_ctx *ctx, const char * key1, const char * key2); /* * Fill a Triple-DES context CTX with subkeys calculated from three * 64bit keys in KEY1, KEY2 and KEY3. Does not check the parity bits * of the keys, but simply ignore them. Does not check for weak * keys. */ extern void gl_3des_set3keys (gl_3des_ctx *ctx, const char * key1, const char * key2, const char * key3); /* Fill a Triple-DES context CTX with subkeys calculated from three * concatenated 64bit keys in KEY, with weak key checking. Does not * check the parity bits of the keys, but simply ignore them. */ extern bool gl_3des_makekey (gl_3des_ctx *ctx, const char * key, size_t keylen); /* Electronic Codebook Mode Triple-DES encryption/decryption of data * according to 'mode'. Sometimes this mode is named 'EDE' mode * (Encryption-Decryption-Encryption). */ extern void gl_3des_ecb_crypt (gl_3des_ctx *ctx, const char * from, char * to, int mode); #define gl_3des_ecb_encrypt(ctx, from, to) gl_3des_ecb_crypt(ctx,from,to,0) #define gl_3des_ecb_decrypt(ctx, from, to) gl_3des_ecb_crypt(ctx,from,to,1) #endif /* DES_H */ shishi-1.0.3/lib/gl/fflush.c0000644000000000000000000001730014273615122012500 00000000000000/* fflush.c -- allow flushing input streams Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake. */ #include /* Specification. */ #include #include #include #include "freading.h" #include "stdio-impl.h" #undef fflush #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ /* Clear the stream's ungetc buffer, preserving the value of ftello (fp). */ static void clear_ungetc_buffer_preserving_position (FILE *fp) { if (fp->_flags & _IO_IN_BACKUP) /* _IO_free_backup_area is a bit complicated. Simply call fseek. */ fseeko (fp, 0, SEEK_CUR); } #else /* Clear the stream's ungetc buffer. May modify the value of ftello (fp). */ static void clear_ungetc_buffer (FILE *fp) { # if defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ if (HASUB (fp)) { fp_->_p += fp_->_r; fp_->_r = 0; } # elif defined __EMX__ /* emx+gcc */ if (fp->_ungetc_count > 0) { fp->_ungetc_count = 0; fp->_rcount = - fp->_rcount; } # elif defined _IOERR /* Minix, AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ /* Nothing to do. */ # else /* other implementations */ fseeko (fp, 0, SEEK_CUR); # endif } #endif #if ! (defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1) /* GNU libc, BeOS, Haiku, Linux libc5 */ # if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && defined __SNPT /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ static int disable_seek_optimization (FILE *fp) { int saved_flags = fp_->_flags & (__SOPT | __SNPT); fp_->_flags = (fp_->_flags & ~__SOPT) | __SNPT; return saved_flags; } static void restore_seek_optimization (FILE *fp, int saved_flags) { fp_->_flags = (fp_->_flags & ~(__SOPT | __SNPT)) | saved_flags; } # else static void update_fpos_cache (_GL_ATTRIBUTE_MAYBE_UNUSED FILE *fp, _GL_ATTRIBUTE_MAYBE_UNUSED off_t pos) { # if defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ # if defined __CYGWIN__ /* fp_->_offset is typed as an integer. */ fp_->_offset = pos; # else /* fp_->_offset is an fpos_t. */ /* Use a union, since on NetBSD, the compilation flags determine whether fpos_t is typedef'd to off_t or a struct containing a single off_t member. */ union { fpos_t f; off_t o; } u; u.o = pos; fp_->_offset = u.f; # endif fp_->_flags |= __SOFF; # endif } # endif #endif /* Flush all pending data on STREAM according to POSIX rules. Both output and seekable input streams are supported. */ int rpl_fflush (FILE *stream) { /* When stream is NULL, POSIX and C99 only require flushing of "output streams and update streams in which the most recent operation was not input", and all implementations do this. When stream is "an output stream or an update stream in which the most recent operation was not input", POSIX and C99 requires that fflush writes out any buffered data, and all implementations do this. When stream is, however, an input stream or an update stream in which the most recent operation was input, C99 specifies nothing, and POSIX only specifies behavior if the stream is seekable. mingw, in particular, drops the input buffer, leaving the file descriptor positioned at the end of the input buffer. I.e. ftell (stream) is lost. We don't want to call the implementation's fflush in this case. We test ! freading (stream) here, rather than fwriting (stream), because what we need to know is whether the stream holds a "read buffer", and on mingw this is indicated by _IOREAD, regardless of _IOWRT. */ if (stream == NULL || ! freading (stream)) return fflush (stream); #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ clear_ungetc_buffer_preserving_position (stream); return fflush (stream); #else { /* What POSIX says: 1) About the file-position indicator (-> fseeko, ftello): The file position indicator is incremented by fgetc() and decremented by ungetc(): "... the fgetc() function shall ... advance the associated file position indicator for the stream ..." "The file-position indicator is decremented by each successful call to ungetc()..." 2) fflush discards bytes pushed back by ungetc: "...any characters pushed back onto the stream by ungetc() or ungetwc() that have not subsequently been read from the stream shall be discarded..." This implies implicitly: fflush does not change the file position indicator. 3) Effects on the file descriptor, if the file descriptor is capable of seeking: "...the file offset of the underlying open file description shall be set to the file position of the stream..." */ /* POSIX does not specify fflush behavior for non-seekable input streams. Some implementations purge unread data, some return EBADF, some do nothing. */ off_t pos = ftello (stream); if (pos == -1) { errno = EBADF; return EOF; } /* Clear the ungetc buffer. */ clear_ungetc_buffer (stream); /* To get here, we must be flushing a seekable input stream, so the semantics of fpurge are now appropriate to clear the buffer. To avoid losing data, the lseek is also necessary. */ { int result = fpurge (stream); if (result != 0) return result; } # if (defined __sferror || defined __DragonFly__ || defined __ANDROID__) && defined __SNPT /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ { /* Disable seek optimization for the next fseeko call. This tells the following fseeko call to seek to the desired position directly, rather than to seek to a block-aligned boundary. */ int saved_flags = disable_seek_optimization (stream); int result = fseeko (stream, pos, SEEK_SET); restore_seek_optimization (stream, saved_flags); return result; } # else pos = lseek (fileno (stream), pos, SEEK_SET); if (pos == -1) return EOF; /* After a successful lseek, update the file descriptor's position cache in the stream. */ update_fpos_cache (stream, pos); return 0; # endif } #endif } shishi-1.0.3/lib/gl/attribute.h0000644000000000000000000002137614273615121013230 00000000000000/* ATTRIBUTE_* macros for using attributes in GCC and similar compilers Copyright 2020-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ /* Provide public ATTRIBUTE_* names for the private _GL_ATTRIBUTE_* macros used within Gnulib. */ /* These attributes can be placed in two ways: - At the start of a declaration (i.e. even before storage-class specifiers!); then they apply to all entities that are declared by the declaration. - Immediately after the name of an entity being declared by the declaration; then they apply to that entity only. */ #ifndef _GL_ATTRIBUTE_H #define _GL_ATTRIBUTE_H /* This file defines two types of attributes: * C2x standard attributes. These have macro names that do not begin with 'ATTRIBUTE_'. * Selected GCC attributes; see: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html These names begin with 'ATTRIBUTE_' to avoid name clashes. */ /* =============== Attributes for specific kinds of functions =============== */ /* Attributes for functions that should not be used. */ /* Warn if the entity is used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: namespace, class, template specialization. */ #define DEPRECATED _GL_ATTRIBUTE_DEPRECATED /* If a function call is not optimized way, warn with MSG. */ /* Applies to: functions. */ #define ATTRIBUTE_WARNING(msg) _GL_ATTRIBUTE_WARNING (msg) /* If a function call is not optimized way, report an error with MSG. */ /* Applies to: functions. */ #define ATTRIBUTE_ERROR(msg) _GL_ATTRIBUTE_ERROR (msg) /* Attributes for memory-allocating functions. */ /* The function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #define ATTRIBUTE_MALLOC _GL_ATTRIBUTE_MALLOC /* ATTRIBUTE_ALLOC_SIZE ((N)) - The Nth argument of the function is the size of the returned memory block. ATTRIBUTE_ALLOC_SIZE ((M, N)) - Multiply the Mth and Nth arguments to determine the size of the returned memory block. */ /* Applies to: function, pointer to function, function types. */ #define ATTRIBUTE_ALLOC_SIZE(args) _GL_ATTRIBUTE_ALLOC_SIZE (args) /* ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #define ATTRIBUTE_DEALLOC(f, i) _GL_ATTRIBUTE_DEALLOC(f, i) #define ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC_FREE /* Attributes for variadic functions. */ /* The variadic function expects a trailing NULL argument. ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99). ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */ /* Applies to: functions. */ #define ATTRIBUTE_SENTINEL(pos) _GL_ATTRIBUTE_SENTINEL (pos) /* ================== Attributes for compiler diagnostics ================== */ /* Attributes that help the compiler diagnose programmer mistakes. Some of them may also help for some compiler optimizations. */ /* ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)) - The STRING-INDEXth function argument is a format string of style ARCHETYPE, which is one of: printf, gnu_printf scanf, gnu_scanf, strftime, gnu_strftime, strfmon, or the same thing prefixed and suffixed with '__'. If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK are suitable for the format string. */ /* Applies to: functions. */ #define ATTRIBUTE_FORMAT(spec) _GL_ATTRIBUTE_FORMAT (spec) /* ATTRIBUTE_NONNULL ((N1, N2,...)) - Arguments N1, N2,... must not be NULL. ATTRIBUTE_NONNULL () - All pointer arguments must not be null. */ /* Applies to: functions. */ #define ATTRIBUTE_NONNULL(args) _GL_ATTRIBUTE_NONNULL (args) /* The function's return value is a non-NULL pointer. */ /* Applies to: functions. */ #define ATTRIBUTE_RETURNS_NONNULL _GL_ATTRIBUTE_RETURNS_NONNULL /* Warn if the caller does not use the return value, unless the caller uses something like ignore_value. */ /* Applies to: function, enumeration, class. */ #define NODISCARD _GL_ATTRIBUTE_NODISCARD /* Attributes that disable false alarms when the compiler diagnoses programmer "mistakes". */ /* Do not warn if the entity is not used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: class. */ #define MAYBE_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED /* The contents of a character array is not meant to be NUL-terminated. */ /* Applies to: struct/union members and variables that are arrays of element type '[[un]signed] char'. */ #define ATTRIBUTE_NONSTRING _GL_ATTRIBUTE_NONSTRING /* Do not warn if control flow falls through to the immediately following 'case' or 'default' label. */ /* Applies to: Empty statement (;), inside a 'switch' statement. */ #define FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH /* ================== Attributes for debugging information ================== */ /* Attributes regarding debugging information emitted by the compiler. */ /* Omit the function from stack traces when debugging. */ /* Applies to: function. */ #define ATTRIBUTE_ARTIFICIAL _GL_ATTRIBUTE_ARTIFICIAL /* Make the entity visible to debuggers etc., even with '-fwhole-program'. */ /* Applies to: functions, variables. */ #define ATTRIBUTE_EXTERNALLY_VISIBLE _GL_ATTRIBUTE_EXTERNALLY_VISIBLE /* ========== Attributes that mainly direct compiler optimizations ========== */ /* The function does not throw exceptions. */ /* Applies to: functions. */ #define ATTRIBUTE_NOTHROW _GL_ATTRIBUTE_NOTHROW /* Do not inline the function. */ /* Applies to: functions. */ #define ATTRIBUTE_NOINLINE _GL_ATTRIBUTE_NOINLINE /* Always inline the function, and report an error if the compiler cannot inline. */ /* Applies to: function. */ #define ATTRIBUTE_ALWAYS_INLINE _GL_ATTRIBUTE_ALWAYS_INLINE /* It is OK for a compiler to omit duplicate calls with the same arguments. This attribute is safe for a function that neither depends on nor affects observable state, and always returns exactly once - e.g., does not loop forever, and does not call longjmp. (This attribute is stricter than ATTRIBUTE_PURE.) */ /* Applies to: functions. */ #define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST /* It is OK for a compiler to omit duplicate calls with the same arguments if observable state is not changed between calls. This attribute is safe for a function that does not affect observable state, and always returns exactly once. (This attribute is looser than ATTRIBUTE_CONST.) */ /* Applies to: functions. */ #define ATTRIBUTE_PURE _GL_ATTRIBUTE_PURE /* The function is rarely executed. */ /* Applies to: functions. */ #define ATTRIBUTE_COLD _GL_ATTRIBUTE_COLD /* If called from some other compilation unit, the function executes code from that unit only by return or by exception handling, letting the compiler optimize that unit more aggressively. */ /* Applies to: functions. */ #define ATTRIBUTE_LEAF _GL_ATTRIBUTE_LEAF /* For struct members: The member has the smallest possible alignment. For struct, union, class: All members have the smallest possible alignment, minimizing the memory required. */ /* Applies to: struct members, struct, union, in C++ also: class. */ #define ATTRIBUTE_PACKED _GL_ATTRIBUTE_PACKED /* ================ Attributes that make invalid code valid ================ */ /* Attributes that prevent fatal compiler optimizations for code that is not fully ISO C compliant. */ /* Pointers to the type may point to the same storage as pointers to other types, thus disabling strict aliasing optimization. */ /* Applies to: types. */ #define ATTRIBUTE_MAY_ALIAS _GL_ATTRIBUTE_MAY_ALIAS #endif /* _GL_ATTRIBUTE_H */ shishi-1.0.3/lib/gl/crc.c0000644000000000000000000001144114273615121011757 00000000000000/* crc.c -- cyclic redundancy checks Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #include #include "crc.h" /* Table of CRCs of all 8-bit messages. Generated by running code from RFC 1952 modified to print out the table. */ static const uint32_t crc32_table[256] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d }; /* * The following function was extracted from RFC 1952 by Simon * Josefsson. It was modified to avoid initial and final XOR, to use * size_t for the buffer length, and to use the const keyword. */ uint32_t crc32_update_no_xor (uint32_t crc, const char *buf, size_t len) { size_t n; for (n = 0; n < len; n++) crc = crc32_table[(crc ^ buf[n]) & 0xff] ^ (crc >> 8); return crc; } uint32_t crc32_no_xor (const char *buf, size_t len) { return crc32_update_no_xor (0L, buf, len); } uint32_t crc32_update (uint32_t crc, const char *buf, size_t len) { return crc32_update_no_xor (crc ^ 0xffffffff, buf, len) ^ 0xffffffff; } uint32_t crc32 (const char *buf, size_t len) { return crc32_update (0L, buf, len); } shishi-1.0.3/lib/gl/sha1.c0000644000000000000000000002641314273615123012053 00000000000000/* sha1.c - Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. Copyright (C) 2000-2001, 2003-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Scott G. Miller Credits: Robert Klep -- Expansion function fix */ #include /* Specification. */ #if HAVE_OPENSSL_SHA1 # define GL_OPENSSL_INLINE _GL_EXTERN_INLINE #endif #include "sha1.h" #include #include #include #include #ifdef WORDS_BIGENDIAN # define SWAP(n) (n) #else # define SWAP(n) bswap_32 (n) #endif #if ! HAVE_OPENSSL_SHA1 /* This array contains the bytes used to pad the buffer to the next 64-byte boundary. (RFC 1321, 3.1: Step 1) */ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; /* Take a pointer to a 160 bit block of data (five 32 bit ints) and initialize it to the start constants of the SHA1 algorithm. This must be called before using hash in the call to sha1_hash. */ void sha1_init_ctx (struct sha1_ctx *ctx) { ctx->A = 0x67452301; ctx->B = 0xefcdab89; ctx->C = 0x98badcfe; ctx->D = 0x10325476; ctx->E = 0xc3d2e1f0; ctx->total[0] = ctx->total[1] = 0; ctx->buflen = 0; } /* Copy the 4 byte value from v into the memory location pointed to by *cp, If your architecture allows unaligned access this is equivalent to * (uint32_t *) cp = v */ static void set_uint32 (char *cp, uint32_t v) { memcpy (cp, &v, sizeof v); } /* Put result from CTX in first 20 bytes following RESBUF. The result must be in little endian byte order. */ void * sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf) { char *r = resbuf; set_uint32 (r + 0 * sizeof ctx->A, SWAP (ctx->A)); set_uint32 (r + 1 * sizeof ctx->B, SWAP (ctx->B)); set_uint32 (r + 2 * sizeof ctx->C, SWAP (ctx->C)); set_uint32 (r + 3 * sizeof ctx->D, SWAP (ctx->D)); set_uint32 (r + 4 * sizeof ctx->E, SWAP (ctx->E)); return resbuf; } /* Process the remaining bytes in the internal buffer and the usual prolog according to the standard and write the result to RESBUF. */ void * sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf) { /* Take yet unprocessed bytes into account. */ uint32_t bytes = ctx->buflen; size_t size = (bytes < 56) ? 64 / 4 : 64 * 2 / 4; /* Now count remaining bytes. */ ctx->total[0] += bytes; if (ctx->total[0] < bytes) ++ctx->total[1]; /* Put the 64-bit file length in *bits* at the end of the buffer. */ ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); /* Process last bytes. */ sha1_process_block (ctx->buffer, size * 4, ctx); return sha1_read_ctx (ctx, resbuf); } /* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ void * sha1_buffer (const char *buffer, size_t len, void *resblock) { struct sha1_ctx ctx; /* Initialize the computation context. */ sha1_init_ctx (&ctx); /* Process whole buffer but last len % 64 bytes. */ sha1_process_bytes (buffer, len, &ctx); /* Put result in desired memory area. */ return sha1_finish_ctx (&ctx, resblock); } void sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx) { /* When we already have some bits in our internal buffer concatenate both inputs first. */ if (ctx->buflen != 0) { size_t left_over = ctx->buflen; size_t add = 128 - left_over > len ? len : 128 - left_over; memcpy (&((char *) ctx->buffer)[left_over], buffer, add); ctx->buflen += add; if (ctx->buflen > 64) { sha1_process_block (ctx->buffer, ctx->buflen & ~63, ctx); ctx->buflen &= 63; /* The regions in the following copy operation cannot overlap, because ctx->buflen < 64 ≤ (left_over + add) & ~63. */ memcpy (ctx->buffer, &((char *) ctx->buffer)[(left_over + add) & ~63], ctx->buflen); } buffer = (const char *) buffer + add; len -= add; } /* Process available complete blocks. */ if (len >= 64) { #if !(_STRING_ARCH_unaligned || _STRING_INLINE_unaligned) # define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0) if (UNALIGNED_P (buffer)) while (len > 64) { sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); buffer = (const char *) buffer + 64; len -= 64; } else #endif { sha1_process_block (buffer, len & ~63, ctx); buffer = (const char *) buffer + (len & ~63); len &= 63; } } /* Move remaining bytes in internal buffer. */ if (len > 0) { size_t left_over = ctx->buflen; memcpy (&((char *) ctx->buffer)[left_over], buffer, len); left_over += len; if (left_over >= 64) { sha1_process_block (ctx->buffer, 64, ctx); left_over -= 64; /* The regions in the following copy operation cannot overlap, because left_over ≤ 64. */ memcpy (ctx->buffer, &ctx->buffer[16], left_over); } ctx->buflen = left_over; } } /* --- Code below is the primary difference between md5.c and sha1.c --- */ /* SHA1 round constants */ #define K1 0x5a827999 #define K2 0x6ed9eba1 #define K3 0x8f1bbcdc #define K4 0xca62c1d6 /* Round functions. Note that F2 is the same as F4. */ #define F1(B,C,D) ( D ^ ( B & ( C ^ D ) ) ) #define F2(B,C,D) (B ^ C ^ D) #define F3(B,C,D) ( ( B & C ) | ( D & ( B | C ) ) ) #define F4(B,C,D) (B ^ C ^ D) /* Process LEN bytes of BUFFER, accumulating context into CTX. It is assumed that LEN % 64 == 0. Most of this code comes from GnuPG's cipher/sha1.c. */ void sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx) { const uint32_t *words = buffer; size_t nwords = len / sizeof (uint32_t); const uint32_t *endp = words + nwords; uint32_t x[16]; uint32_t a = ctx->A; uint32_t b = ctx->B; uint32_t c = ctx->C; uint32_t d = ctx->D; uint32_t e = ctx->E; uint32_t lolen = len; /* First increment the byte count. RFC 1321 specifies the possible length of the file up to 2^64 bits. Here we only compute the number of bytes. Do a double word increment. */ ctx->total[0] += lolen; ctx->total[1] += (len >> 31 >> 1) + (ctx->total[0] < lolen); #define rol(x, n) (((x) << (n)) | ((uint32_t) (x) >> (32 - (n)))) #define M(I) ( tm = x[I&0x0f] ^ x[(I-14)&0x0f] \ ^ x[(I-8)&0x0f] ^ x[(I-3)&0x0f] \ , (x[I&0x0f] = rol(tm, 1)) ) #define R(A,B,C,D,E,F,K,M) do { E += rol( A, 5 ) \ + F( B, C, D ) \ + K \ + M; \ B = rol( B, 30 ); \ } while(0) while (words < endp) { uint32_t tm; int t; for (t = 0; t < 16; t++) { x[t] = SWAP (*words); words++; } R( a, b, c, d, e, F1, K1, x[ 0] ); R( e, a, b, c, d, F1, K1, x[ 1] ); R( d, e, a, b, c, F1, K1, x[ 2] ); R( c, d, e, a, b, F1, K1, x[ 3] ); R( b, c, d, e, a, F1, K1, x[ 4] ); R( a, b, c, d, e, F1, K1, x[ 5] ); R( e, a, b, c, d, F1, K1, x[ 6] ); R( d, e, a, b, c, F1, K1, x[ 7] ); R( c, d, e, a, b, F1, K1, x[ 8] ); R( b, c, d, e, a, F1, K1, x[ 9] ); R( a, b, c, d, e, F1, K1, x[10] ); R( e, a, b, c, d, F1, K1, x[11] ); R( d, e, a, b, c, F1, K1, x[12] ); R( c, d, e, a, b, F1, K1, x[13] ); R( b, c, d, e, a, F1, K1, x[14] ); R( a, b, c, d, e, F1, K1, x[15] ); R( e, a, b, c, d, F1, K1, M(16) ); R( d, e, a, b, c, F1, K1, M(17) ); R( c, d, e, a, b, F1, K1, M(18) ); R( b, c, d, e, a, F1, K1, M(19) ); R( a, b, c, d, e, F2, K2, M(20) ); R( e, a, b, c, d, F2, K2, M(21) ); R( d, e, a, b, c, F2, K2, M(22) ); R( c, d, e, a, b, F2, K2, M(23) ); R( b, c, d, e, a, F2, K2, M(24) ); R( a, b, c, d, e, F2, K2, M(25) ); R( e, a, b, c, d, F2, K2, M(26) ); R( d, e, a, b, c, F2, K2, M(27) ); R( c, d, e, a, b, F2, K2, M(28) ); R( b, c, d, e, a, F2, K2, M(29) ); R( a, b, c, d, e, F2, K2, M(30) ); R( e, a, b, c, d, F2, K2, M(31) ); R( d, e, a, b, c, F2, K2, M(32) ); R( c, d, e, a, b, F2, K2, M(33) ); R( b, c, d, e, a, F2, K2, M(34) ); R( a, b, c, d, e, F2, K2, M(35) ); R( e, a, b, c, d, F2, K2, M(36) ); R( d, e, a, b, c, F2, K2, M(37) ); R( c, d, e, a, b, F2, K2, M(38) ); R( b, c, d, e, a, F2, K2, M(39) ); R( a, b, c, d, e, F3, K3, M(40) ); R( e, a, b, c, d, F3, K3, M(41) ); R( d, e, a, b, c, F3, K3, M(42) ); R( c, d, e, a, b, F3, K3, M(43) ); R( b, c, d, e, a, F3, K3, M(44) ); R( a, b, c, d, e, F3, K3, M(45) ); R( e, a, b, c, d, F3, K3, M(46) ); R( d, e, a, b, c, F3, K3, M(47) ); R( c, d, e, a, b, F3, K3, M(48) ); R( b, c, d, e, a, F3, K3, M(49) ); R( a, b, c, d, e, F3, K3, M(50) ); R( e, a, b, c, d, F3, K3, M(51) ); R( d, e, a, b, c, F3, K3, M(52) ); R( c, d, e, a, b, F3, K3, M(53) ); R( b, c, d, e, a, F3, K3, M(54) ); R( a, b, c, d, e, F3, K3, M(55) ); R( e, a, b, c, d, F3, K3, M(56) ); R( d, e, a, b, c, F3, K3, M(57) ); R( c, d, e, a, b, F3, K3, M(58) ); R( b, c, d, e, a, F3, K3, M(59) ); R( a, b, c, d, e, F4, K4, M(60) ); R( e, a, b, c, d, F4, K4, M(61) ); R( d, e, a, b, c, F4, K4, M(62) ); R( c, d, e, a, b, F4, K4, M(63) ); R( b, c, d, e, a, F4, K4, M(64) ); R( a, b, c, d, e, F4, K4, M(65) ); R( e, a, b, c, d, F4, K4, M(66) ); R( d, e, a, b, c, F4, K4, M(67) ); R( c, d, e, a, b, F4, K4, M(68) ); R( b, c, d, e, a, F4, K4, M(69) ); R( a, b, c, d, e, F4, K4, M(70) ); R( e, a, b, c, d, F4, K4, M(71) ); R( d, e, a, b, c, F4, K4, M(72) ); R( c, d, e, a, b, F4, K4, M(73) ); R( b, c, d, e, a, F4, K4, M(74) ); R( a, b, c, d, e, F4, K4, M(75) ); R( e, a, b, c, d, F4, K4, M(76) ); R( d, e, a, b, c, F4, K4, M(77) ); R( c, d, e, a, b, F4, K4, M(78) ); R( b, c, d, e, a, F4, K4, M(79) ); a = ctx->A += a; b = ctx->B += b; c = ctx->C += c; d = ctx->D += d; e = ctx->E += e; } } #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/calloc.c0000644000000000000000000000267214273615121012453 00000000000000/* calloc() function that is glibc compatible. This wrapper function is required at least on Tru64 UNIX 5.1 and mingw. Copyright (C) 2004-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Jim Meyering and Bruno Haible */ #include /* Specification. */ #include #include #include "xalloc-oversized.h" /* Call the system's calloc below. */ #undef calloc /* Allocate and zero-fill an NxS-byte block of memory from the heap, even if N or S is zero. */ void * rpl_calloc (size_t n, size_t s) { if (n == 0 || s == 0) n = s = 1; if (xalloc_oversized (n, s)) { errno = ENOMEM; return NULL; } void *result = calloc (n, s); #if !HAVE_MALLOC_POSIX if (result == NULL) errno = ENOMEM; #endif return result; } shishi-1.0.3/lib/gl/sendto.c0000644000000000000000000000253614273615123012513 00000000000000/* sendto.c --- wrappers for Windows sendto function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef sendto ssize_t rpl_sendto (int fd, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int r = sendto (sock, buf, len, flags, to, tolen); if (r < 0) set_winsock_errno (); return r; } } shishi-1.0.3/lib/gl/base64.c0000644000000000000000000004740314273615121012303 00000000000000/* base64.c -- Encode binary data using printable characters. Copyright (C) 1999-2001, 2004-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. Partially adapted from GNU MailUtils * (mailbox/filter_trans.c, as of 2004-11-28). Improved by review * from Paul Eggert, Bruno Haible, and Stepan Kasal. * * See also RFC 4648 . * * Be careful with error checking. Here is how you would typically * use these functions: * * bool ok = base64_decode_alloc (in, inlen, &out, &outlen); * if (!ok) * FAIL: input was not valid base64 * if (out == NULL) * FAIL: memory allocation error * OK: data in OUT/OUTLEN * * idx_t outlen = base64_encode_alloc (in, inlen, &out); * if (out == NULL && outlen == 0 && inlen != 0) * FAIL: input too long * if (out == NULL) * FAIL: memory allocation error * OK: data in OUT/OUTLEN. * */ #include /* Get prototype. */ #include "base64.h" /* Get imalloc. */ #include #include /* Get UCHAR_MAX. */ #include #include /* Convert 'char' to 'unsigned char' without casting. */ static unsigned char to_uchar (char ch) { return ch; } static const char b64c[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /* Base64 encode IN array of size INLEN into OUT array. OUT needs to be of length >= BASE64_LENGTH(INLEN), and INLEN needs to be a multiple of 3. */ static void base64_encode_fast (const char *restrict in, idx_t inlen, char *restrict out) { while (inlen) { *out++ = b64c[(to_uchar (in[0]) >> 2) & 0x3f]; *out++ = b64c[((to_uchar (in[0]) << 4) + (to_uchar (in[1]) >> 4)) & 0x3f]; *out++ = b64c[((to_uchar (in[1]) << 2) + (to_uchar (in[2]) >> 6)) & 0x3f]; *out++ = b64c[to_uchar (in[2]) & 0x3f]; inlen -= 3; in += 3; } } /* Base64 encode IN array of size INLEN into OUT array of size OUTLEN. If OUTLEN is less than BASE64_LENGTH(INLEN), write as many bytes as possible. If OUTLEN is larger than BASE64_LENGTH(INLEN), also zero terminate the output buffer. */ void base64_encode (const char *restrict in, idx_t inlen, char *restrict out, idx_t outlen) { /* Note this outlen constraint can be enforced at compile time. I.E. that the output buffer is exactly large enough to hold the encoded inlen bytes. The inlen constraints (of corresponding to outlen, and being a multiple of 3) can change at runtime at the end of input. However the common case when reading large inputs is to have both constraints satisfied, so we depend on both in base_encode_fast(). */ if (outlen % 4 == 0 && inlen == (outlen >> 2) * 3) { base64_encode_fast (in, inlen, out); return; } while (inlen && outlen) { *out++ = b64c[(to_uchar (in[0]) >> 2) & 0x3f]; if (!--outlen) break; *out++ = b64c[((to_uchar (in[0]) << 4) + (--inlen ? to_uchar (in[1]) >> 4 : 0)) & 0x3f]; if (!--outlen) break; *out++ = (inlen ? b64c[((to_uchar (in[1]) << 2) + (--inlen ? to_uchar (in[2]) >> 6 : 0)) & 0x3f] : '='); if (!--outlen) break; *out++ = inlen ? b64c[to_uchar (in[2]) & 0x3f] : '='; if (!--outlen) break; if (inlen) inlen--; if (inlen) in += 3; } if (outlen) *out = '\0'; } /* Allocate a buffer and store zero terminated base64 encoded data from array IN of size INLEN, returning BASE64_LENGTH(INLEN), i.e., the length of the encoded data, excluding the terminating zero. On return, the OUT variable will hold a pointer to newly allocated memory that must be deallocated by the caller. If output string length would overflow, 0 is returned and OUT is set to NULL. If memory allocation failed, OUT is set to NULL, and the return value indicates length of the requested memory block, i.e., BASE64_LENGTH(inlen) + 1. */ idx_t base64_encode_alloc (const char *in, idx_t inlen, char **out) { /* Check for overflow in outlen computation. Treat negative INLEN as overflow, for better compatibility with pre-2021-08-27 API, which used size_t. */ idx_t in_over_3 = inlen / 3 + (inlen % 3 != 0), outlen; if (! INT_MULTIPLY_OK (in_over_3, 4, &outlen) || inlen < 0) { *out = NULL; return 0; } outlen++; *out = imalloc (outlen); if (!*out) return outlen; base64_encode (in, inlen, *out, outlen); return outlen - 1; } /* With this approach this file works independent of the charset used (think EBCDIC). However, it does assume that the characters in the Base64 alphabet (A-Za-z0-9+/) are encoded in 0..255. POSIX 1003.1-2001 require that char and unsigned char are 8-bit quantities, though, taking care of that problem. But this may be a potential problem on non-POSIX C99 platforms. IBM C V6 for AIX mishandles "#define B64(x) ...'x'...", so use "_" as the formal parameter rather than "x". */ #define B64(_) \ ((_) == 'A' ? 0 \ : (_) == 'B' ? 1 \ : (_) == 'C' ? 2 \ : (_) == 'D' ? 3 \ : (_) == 'E' ? 4 \ : (_) == 'F' ? 5 \ : (_) == 'G' ? 6 \ : (_) == 'H' ? 7 \ : (_) == 'I' ? 8 \ : (_) == 'J' ? 9 \ : (_) == 'K' ? 10 \ : (_) == 'L' ? 11 \ : (_) == 'M' ? 12 \ : (_) == 'N' ? 13 \ : (_) == 'O' ? 14 \ : (_) == 'P' ? 15 \ : (_) == 'Q' ? 16 \ : (_) == 'R' ? 17 \ : (_) == 'S' ? 18 \ : (_) == 'T' ? 19 \ : (_) == 'U' ? 20 \ : (_) == 'V' ? 21 \ : (_) == 'W' ? 22 \ : (_) == 'X' ? 23 \ : (_) == 'Y' ? 24 \ : (_) == 'Z' ? 25 \ : (_) == 'a' ? 26 \ : (_) == 'b' ? 27 \ : (_) == 'c' ? 28 \ : (_) == 'd' ? 29 \ : (_) == 'e' ? 30 \ : (_) == 'f' ? 31 \ : (_) == 'g' ? 32 \ : (_) == 'h' ? 33 \ : (_) == 'i' ? 34 \ : (_) == 'j' ? 35 \ : (_) == 'k' ? 36 \ : (_) == 'l' ? 37 \ : (_) == 'm' ? 38 \ : (_) == 'n' ? 39 \ : (_) == 'o' ? 40 \ : (_) == 'p' ? 41 \ : (_) == 'q' ? 42 \ : (_) == 'r' ? 43 \ : (_) == 's' ? 44 \ : (_) == 't' ? 45 \ : (_) == 'u' ? 46 \ : (_) == 'v' ? 47 \ : (_) == 'w' ? 48 \ : (_) == 'x' ? 49 \ : (_) == 'y' ? 50 \ : (_) == 'z' ? 51 \ : (_) == '0' ? 52 \ : (_) == '1' ? 53 \ : (_) == '2' ? 54 \ : (_) == '3' ? 55 \ : (_) == '4' ? 56 \ : (_) == '5' ? 57 \ : (_) == '6' ? 58 \ : (_) == '7' ? 59 \ : (_) == '8' ? 60 \ : (_) == '9' ? 61 \ : (_) == '+' ? 62 \ : (_) == '/' ? 63 \ : -1) static const signed char b64[0x100] = { B64 (0), B64 (1), B64 (2), B64 (3), B64 (4), B64 (5), B64 (6), B64 (7), B64 (8), B64 (9), B64 (10), B64 (11), B64 (12), B64 (13), B64 (14), B64 (15), B64 (16), B64 (17), B64 (18), B64 (19), B64 (20), B64 (21), B64 (22), B64 (23), B64 (24), B64 (25), B64 (26), B64 (27), B64 (28), B64 (29), B64 (30), B64 (31), B64 (32), B64 (33), B64 (34), B64 (35), B64 (36), B64 (37), B64 (38), B64 (39), B64 (40), B64 (41), B64 (42), B64 (43), B64 (44), B64 (45), B64 (46), B64 (47), B64 (48), B64 (49), B64 (50), B64 (51), B64 (52), B64 (53), B64 (54), B64 (55), B64 (56), B64 (57), B64 (58), B64 (59), B64 (60), B64 (61), B64 (62), B64 (63), B64 (64), B64 (65), B64 (66), B64 (67), B64 (68), B64 (69), B64 (70), B64 (71), B64 (72), B64 (73), B64 (74), B64 (75), B64 (76), B64 (77), B64 (78), B64 (79), B64 (80), B64 (81), B64 (82), B64 (83), B64 (84), B64 (85), B64 (86), B64 (87), B64 (88), B64 (89), B64 (90), B64 (91), B64 (92), B64 (93), B64 (94), B64 (95), B64 (96), B64 (97), B64 (98), B64 (99), B64 (100), B64 (101), B64 (102), B64 (103), B64 (104), B64 (105), B64 (106), B64 (107), B64 (108), B64 (109), B64 (110), B64 (111), B64 (112), B64 (113), B64 (114), B64 (115), B64 (116), B64 (117), B64 (118), B64 (119), B64 (120), B64 (121), B64 (122), B64 (123), B64 (124), B64 (125), B64 (126), B64 (127), B64 (128), B64 (129), B64 (130), B64 (131), B64 (132), B64 (133), B64 (134), B64 (135), B64 (136), B64 (137), B64 (138), B64 (139), B64 (140), B64 (141), B64 (142), B64 (143), B64 (144), B64 (145), B64 (146), B64 (147), B64 (148), B64 (149), B64 (150), B64 (151), B64 (152), B64 (153), B64 (154), B64 (155), B64 (156), B64 (157), B64 (158), B64 (159), B64 (160), B64 (161), B64 (162), B64 (163), B64 (164), B64 (165), B64 (166), B64 (167), B64 (168), B64 (169), B64 (170), B64 (171), B64 (172), B64 (173), B64 (174), B64 (175), B64 (176), B64 (177), B64 (178), B64 (179), B64 (180), B64 (181), B64 (182), B64 (183), B64 (184), B64 (185), B64 (186), B64 (187), B64 (188), B64 (189), B64 (190), B64 (191), B64 (192), B64 (193), B64 (194), B64 (195), B64 (196), B64 (197), B64 (198), B64 (199), B64 (200), B64 (201), B64 (202), B64 (203), B64 (204), B64 (205), B64 (206), B64 (207), B64 (208), B64 (209), B64 (210), B64 (211), B64 (212), B64 (213), B64 (214), B64 (215), B64 (216), B64 (217), B64 (218), B64 (219), B64 (220), B64 (221), B64 (222), B64 (223), B64 (224), B64 (225), B64 (226), B64 (227), B64 (228), B64 (229), B64 (230), B64 (231), B64 (232), B64 (233), B64 (234), B64 (235), B64 (236), B64 (237), B64 (238), B64 (239), B64 (240), B64 (241), B64 (242), B64 (243), B64 (244), B64 (245), B64 (246), B64 (247), B64 (248), B64 (249), B64 (250), B64 (251), B64 (252), B64 (253), B64 (254), B64 (255) }; #if UCHAR_MAX == 255 # define uchar_in_range(c) true #else # define uchar_in_range(c) ((c) <= 255) #endif /* Return true if CH is a character from the Base64 alphabet, and false otherwise. Note that '=' is padding and not considered to be part of the alphabet. */ bool isbase64 (char ch) { return uchar_in_range (to_uchar (ch)) && 0 <= b64[to_uchar (ch)]; } /* Initialize decode-context buffer, CTX. */ void base64_decode_ctx_init (struct base64_decode_context *ctx) { ctx->i = 0; } /* If CTX->i is 0 or 4, there are four or more bytes in [*IN..IN_END), and none of those four is a newline, then return *IN. Otherwise, copy up to 4 - CTX->i non-newline bytes from that range into CTX->buf, starting at index CTX->i and setting CTX->i to reflect the number of bytes copied, and return CTX->buf. In either case, advance *IN to point to the byte after the last one processed, and set *N_NON_NEWLINE to the number of verified non-newline bytes accessible through the returned pointer. */ static char * get_4 (struct base64_decode_context *ctx, char const *restrict *in, char const *restrict in_end, idx_t *n_non_newline) { if (ctx->i == 4) ctx->i = 0; if (ctx->i == 0) { char const *t = *in; if (4 <= in_end - *in && memchr (t, '\n', 4) == NULL) { /* This is the common case: no newline. */ *in += 4; *n_non_newline = 4; return (char *) t; } } { /* Copy non-newline bytes into BUF. */ char const *p = *in; while (p < in_end) { char c = *p++; if (c != '\n') { ctx->buf[ctx->i++] = c; if (ctx->i == 4) break; } } *in = p; *n_non_newline = ctx->i; return ctx->buf; } } #define return_false \ do \ { \ *outp = out; \ return false; \ } \ while (false) /* Decode up to four bytes of base64-encoded data, IN, of length INLEN into the output buffer, *OUT, of size *OUTLEN bytes. Return true if decoding is successful, false otherwise. If *OUTLEN is too small, as many bytes as possible are written to *OUT. On return, advance *OUT to point to the byte after the last one written, and decrement *OUTLEN to reflect the number of bytes remaining in *OUT. */ static bool decode_4 (char const *restrict in, idx_t inlen, char *restrict *outp, idx_t *outleft) { char *out = *outp; if (inlen < 2) return false; if (!isbase64 (in[0]) || !isbase64 (in[1])) return false; if (*outleft) { *out++ = ((b64[to_uchar (in[0])] << 2) | (b64[to_uchar (in[1])] >> 4)); --*outleft; } if (inlen == 2) return_false; if (in[2] == '=') { if (inlen != 4) return_false; if (in[3] != '=') return_false; } else { if (!isbase64 (in[2])) return_false; if (*outleft) { *out++ = (((b64[to_uchar (in[1])] << 4) & 0xf0) | (b64[to_uchar (in[2])] >> 2)); --*outleft; } if (inlen == 3) return_false; if (in[3] == '=') { if (inlen != 4) return_false; } else { if (!isbase64 (in[3])) return_false; if (*outleft) { *out++ = (((b64[to_uchar (in[2])] << 6) & 0xc0) | b64[to_uchar (in[3])]); --*outleft; } } } *outp = out; return true; } /* Decode base64-encoded input array IN of length INLEN to output array OUT that can hold *OUTLEN bytes. The input data may be interspersed with newlines. Return true if decoding was successful, i.e. if the input was valid base64 data, false otherwise. If *OUTLEN is too small, as many bytes as possible will be written to OUT. On return, *OUTLEN holds the length of decoded bytes in OUT. Note that as soon as any non-alphabet, non-newline character is encountered, decoding is stopped and false is returned. If INLEN is zero, then process only whatever data is stored in CTX. Initially, CTX must have been initialized via base64_decode_ctx_init. Subsequent calls to this function must reuse whatever state is recorded in that buffer. It is necessary for when a quadruple of base64 input bytes spans two input buffers. If CTX is NULL then newlines are treated as garbage and the input buffer is processed as a unit. */ bool base64_decode_ctx (struct base64_decode_context *ctx, const char *restrict in, idx_t inlen, char *restrict out, idx_t *outlen) { idx_t outleft = *outlen; bool ignore_newlines = ctx != NULL; bool flush_ctx = false; unsigned int ctx_i = 0; if (ignore_newlines) { ctx_i = ctx->i; flush_ctx = inlen == 0; } while (true) { idx_t outleft_save = outleft; if (ctx_i == 0 && !flush_ctx) { while (true) { /* Save a copy of outleft, in case we need to re-parse this block of four bytes. */ outleft_save = outleft; if (!decode_4 (in, inlen, &out, &outleft)) break; in += 4; inlen -= 4; } } if (inlen == 0 && !flush_ctx) break; /* Handle the common case of 72-byte wrapped lines. This also handles any other multiple-of-4-byte wrapping. */ if (inlen && *in == '\n' && ignore_newlines) { ++in; --inlen; continue; } /* Restore OUT and OUTLEFT. */ out -= outleft_save - outleft; outleft = outleft_save; { char const *in_end = in + inlen; char const *non_nl; if (ignore_newlines) non_nl = get_4 (ctx, &in, in_end, &inlen); else non_nl = in; /* Might have nl in this case. */ /* If the input is empty or consists solely of newlines (0 non-newlines), then we're done. Likewise if there are fewer than 4 bytes when not flushing context and not treating newlines as garbage. */ if (inlen == 0 || (inlen < 4 && !flush_ctx && ignore_newlines)) { inlen = 0; break; } if (!decode_4 (non_nl, inlen, &out, &outleft)) break; inlen = in_end - in; } } *outlen -= outleft; return inlen == 0; } /* Allocate an output buffer in *OUT, and decode the base64 encoded data stored in IN of size INLEN to the *OUT buffer. On return, the size of the decoded data is stored in *OUTLEN. OUTLEN may be NULL, if the caller is not interested in the decoded length. *OUT may be NULL to indicate an out of memory error, in which case *OUTLEN contains the size of the memory block needed. The function returns true on successful decoding and memory allocation errors. (Use the *OUT and *OUTLEN parameters to differentiate between successful decoding and memory error.) The function returns false if the input was invalid, in which case *OUT is NULL and *OUTLEN is undefined. */ bool base64_decode_alloc_ctx (struct base64_decode_context *ctx, const char *in, idx_t inlen, char **out, idx_t *outlen) { /* This may allocate a few bytes too many, depending on input, but it's not worth the extra CPU time to compute the exact size. The exact size is 3 * (inlen + (ctx ? ctx->i : 0)) / 4, minus 1 if the input ends with "=" and minus another 1 if the input ends with "==". Shifting before multiplying avoids the possibility of overflow. */ idx_t needlen = 3 * ((inlen >> 2) + 1); *out = imalloc (needlen); if (!*out) return true; if (!base64_decode_ctx (ctx, in, inlen, *out, &needlen)) { free (*out); *out = NULL; return false; } if (outlen) *outlen = needlen; return true; } shishi-1.0.3/lib/gl/freading.h0000644000000000000000000000401614273615122012775 00000000000000/* Retrieve information about a FILE stream. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include /* Return true if the stream STREAM is opened read-only, or if the last operation on the stream was a read operation. Return false if the stream is opened write-only or append-only, or if it supports writing and there is no current read operation (such as fgetc). freading and fwriting will never both be true. If STREAM supports both reads and writes, then: - both freading and fwriting might be false when the stream is first opened, after read encounters EOF, or after fflush, - freading might be false or true and fwriting might be false after repositioning (such as fseek, fsetpos, or rewind), depending on the underlying implementation. STREAM must not be wide-character oriented. */ #if HAVE___FREADING && (!defined __GLIBC__ || defined __UCLIBC__ || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 7)) /* Solaris >= 7, UnixWare >= 7.1.4.MP4, Cygwin >= 1.7.34, Android API >= 29, not glibc >= 2.2, but glibc >= 2.7, or musl libc */ # if HAVE_STDIO_EXT_H # include # endif # define freading(stream) (__freading (stream) != 0) #else # ifdef __cplusplus extern "C" { # endif extern bool freading (FILE *stream) _GL_ATTRIBUTE_PURE; # ifdef __cplusplus } # endif #endif shishi-1.0.3/lib/gl/arcfour.h0000644000000000000000000000312414273615121012655 00000000000000/* arcfour.h --- The arcfour stream cipher * Copyright (C) 2000-2005, 2009-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Code from Libgcrypt adapted for gnulib by Simon Josefsson. */ #ifndef ARCFOUR_H # define ARCFOUR_H # include # include #define ARCFOUR_SBOX_SIZE 256 typedef struct { char sbox[ARCFOUR_SBOX_SIZE]; uint8_t idx_i, idx_j; } arcfour_context; /* Apply ARCFOUR stream to INBUF placing the result in OUTBUF, both of LENGTH size. CONTEXT must be initialized with arcfour_setkey before this function is called. */ extern void arcfour_stream (arcfour_context * context, const char *inbuf, char *restrict outbuf, size_t length); /* Initialize CONTEXT using encryption KEY of KEYLEN bytes. KEY should be 40 bits (5 bytes) or longer. The KEY cannot be zero length. */ extern void arcfour_setkey (arcfour_context * context, const char *key, size_t keylen); #endif /* ARCFOUR_H */ shishi-1.0.3/lib/gl/gc-pbkdf2-sha1.c0000644000000000000000000000221114273615122013575 00000000000000/* gc-pbkdf2-sha1.c --- Password-Based Key Derivation Function a'la PKCS#5 Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #include #include "gc.h" #include #include Gc_rc gc_pbkdf2_sha1 (const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, char *DK, size_t dkLen) { return gc_pbkdf2_hmac (GC_SHA1, P, Plen, S, Slen, c, DK, dkLen); } shishi-1.0.3/lib/gl/bind.c0000644000000000000000000000242314273615121012124 00000000000000/* bind.c --- wrappers for Windows bind function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef bind int rpl_bind (int fd, const struct sockaddr *sockaddr, socklen_t len) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int r = bind (sock, sockaddr, len); if (r < 0) set_winsock_errno (); return r; } } shishi-1.0.3/lib/gl/stdalign.in.h0000644000000000000000000001155714273615123013441 00000000000000/* A substitute for ISO C11 . Copyright 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert and Bruno Haible. */ #ifndef _GL_STDALIGN_H #define _GL_STDALIGN_H /* ISO C11 for platforms that lack it. References: ISO C11 (latest free draft ) sections 6.5.3.4, 6.7.5, 7.15. C++11 (latest free draft ) section 18.10. */ /* alignof (TYPE), also known as _Alignof (TYPE), yields the alignment requirement of a structure member (i.e., slot or field) that is of type TYPE, as an integer constant expression. This differs from GCC's and clang's __alignof__ operator, which can yield a better-performing alignment for an object of that type. For example, on x86 with GCC and on Linux/x86 with clang, __alignof__ (double) and __alignof__ (long long) are 8, whereas alignof (double) and alignof (long long) are 4 unless the option '-malign-double' is used. The result cannot be used as a value for an 'enum' constant, if you want to be portable to HP-UX 10.20 cc and AIX 3.2.5 xlc. Include for offsetof. */ #include /* FreeBSD 9.1 , included by and lots of other standard headers, defines conflicting implementations of _Alignas and _Alignof that are no better than ours; override them. */ #undef _Alignas #undef _Alignof /* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023 . clang versions < 8.0.0 have the same bug. */ #if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \ || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \ && !defined __clang__) \ || (defined __clang__ && __clang_major__ < 8)) # ifdef __cplusplus # if 201103 <= __cplusplus # define _Alignof(type) alignof (type) # else template struct __alignof_helper { char __a; __t __b; }; # define _Alignof(type) offsetof (__alignof_helper, __b) # endif # else # define _Alignof(type) offsetof (struct { char __a; type __b; }, __b) # endif #endif #if ! (defined __cplusplus && 201103 <= __cplusplus) # define alignof _Alignof #endif #define __alignof_is_defined 1 /* alignas (A), also known as _Alignas (A), aligns a variable or type to the alignment A, where A is an integer constant expression. For example: int alignas (8) foo; struct s { int a; int alignas (8) bar; }; aligns the address of FOO and the offset of BAR to be multiples of 8. A should be a power of two that is at least the type's alignment and at most the implementation's alignment limit. This limit is 2**28 on typical GNUish hosts, and 2**13 on MSVC. To be portable to MSVC through at least version 10.0, A should be an integer constant, as MSVC does not support expressions such as 1 << 3. To be portable to Sun C 5.11, do not align auto variables to anything stricter than their default alignment. The following C11 requirements are not supported here: - If A is zero, alignas has no effect. - alignas can be used multiple times; the strictest one wins. - alignas (TYPE) is equivalent to alignas (alignof (TYPE)). */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 # if defined __cplusplus && 201103 <= __cplusplus # define _Alignas(a) alignas (a) # elif (!defined __attribute__ \ && ((defined __APPLE__ && defined __MACH__ \ ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ : __GNUC__ && !defined __ibmxl__) \ || (4 <= __clang_major__) \ || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)) # define _Alignas(a) __attribute__ ((__aligned__ (a))) # elif 1300 <= _MSC_VER # define _Alignas(a) __declspec (align (a)) # endif #endif #if ((defined _Alignas && ! (defined __cplusplus && 201103 <= __cplusplus)) \ || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) # define alignas _Alignas #endif #if defined alignas || (defined __cplusplus && 201103 <= __cplusplus) # define __alignas_is_defined 1 #endif #endif /* _GL_STDALIGN_H */ shishi-1.0.3/lib/gl/stdio-read.c0000644000000000000000000001361414273615123013251 00000000000000/* POSIX compatible FILE stream read function. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Replace these functions only if module 'nonblocking' is requested. */ #if GNULIB_NONBLOCKING /* On native Windows platforms, when read() is called on a non-blocking pipe with an empty buffer, ReadFile() fails with error GetLastError() = ERROR_NO_DATA, and read() in consequence fails with error EINVAL. This read() function is at the basis of the function which fills the buffer of a FILE stream. */ # if defined _WIN32 && ! defined __CYGWIN__ # include # include # define WIN32_LEAN_AND_MEAN /* avoid including junk */ # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Don't assume that UNICODE is not defined. */ # undef GetNamedPipeHandleState # define GetNamedPipeHandleState GetNamedPipeHandleStateA # define CALL_WITH_ERRNO_FIX(RETTYPE, EXPRESSION, FAILED) \ if (ferror (stream)) \ return (EXPRESSION); \ else \ { \ RETTYPE ret; \ SetLastError (0); \ ret = (EXPRESSION); \ if (FAILED) \ { \ if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0) \ { \ HANDLE h = (HANDLE) _get_osfhandle (fd); \ if (GetFileType (h) == FILE_TYPE_PIPE) \ { \ /* h is a pipe or socket. */ \ DWORD state; \ if (GetNamedPipeHandleState (h, &state, NULL, NULL, \ NULL, NULL, 0) \ && (state & PIPE_NOWAIT) != 0) \ /* h is a pipe in non-blocking mode. \ Change errno from EINVAL to EAGAIN. */ \ errno = EAGAIN; \ } \ } \ } \ } \ return ret; \ } /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_SCANF int scanf (const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfscanf (stdin, format, args); va_end (args); return retval; } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_FSCANF int fscanf (FILE *stream, const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfscanf (stream, format, args); va_end (args); return retval; } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_VSCANF int vscanf (const char *format, va_list args) { return vfscanf (stdin, format, args); } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_VFSCANF int vfscanf (FILE *stream, const char *format, va_list args) #undef vfscanf { CALL_WITH_ERRNO_FIX (int, vfscanf (stream, format, args), ret == EOF) } # endif int getchar (void) { return fgetc (stdin); } int fgetc (FILE *stream) #undef fgetc { CALL_WITH_ERRNO_FIX (int, fgetc (stream), ret == EOF) } char * fgets (char *s, int n, FILE *stream) #undef fgets { CALL_WITH_ERRNO_FIX (char *, fgets (s, n, stream), ret == NULL) } /* We intentionally don't bother to fix gets. */ size_t fread (void *ptr, size_t s, size_t n, FILE *stream) #undef fread { CALL_WITH_ERRNO_FIX (size_t, fread (ptr, s, n, stream), ret < n) } # endif #endif shishi-1.0.3/lib/gl/strcasecmp.c0000644000000000000000000000345114273615123013360 00000000000000/* Case-insensitive string comparison function. Copyright (C) 1998-1999, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch)) /* Compare strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function does not work with multibyte strings! */ int strcasecmp (const char *s1, const char *s2) { const unsigned char *p1 = (const unsigned char *) s1; const unsigned char *p2 = (const unsigned char *) s2; unsigned char c1, c2; if (p1 == p2) return 0; do { c1 = TOLOWER (*p1); c2 = TOLOWER (*p2); if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); if (UCHAR_MAX <= INT_MAX) return c1 - c2; else /* On machines where 'char' and 'int' are types of the same size, the difference of two 'unsigned char' values - including the sign bit - doesn't fit in an 'int'. */ return _GL_CMP (c1, c2); } shishi-1.0.3/lib/gl/areadlink.h0000644000000000000000000000251714273615121013153 00000000000000/* Read symbolic links without size limitation. Copyright (C) 2001, 2003-2004, 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Jim Meyering */ #include extern char *areadlink (char const *filename) _GL_ATTRIBUTE_DEALLOC_FREE; extern char *areadlink_with_size (char const *filename, size_t size_hint) _GL_ATTRIBUTE_DEALLOC_FREE; #if GNULIB_AREADLINKAT extern char *areadlinkat (int fd, char const *filename) _GL_ATTRIBUTE_DEALLOC_FREE; #endif #if GNULIB_AREADLINKAT_WITH_SIZE extern char *areadlinkat_with_size (int fd, char const *filename, size_t size_hint) _GL_ATTRIBUTE_DEALLOC_FREE; #endif shishi-1.0.3/lib/gl/xgethostname.h0000644000000000000000000000152214273615123013724 00000000000000/* Return current hostname with unlimited length. Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include char *xgethostname (void) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE; shishi-1.0.3/lib/gl/allocator.h0000644000000000000000000000424414273615121013200 00000000000000/* Memory allocators such as malloc+free. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #ifndef _GL_ALLOCATOR_H #define _GL_ALLOCATOR_H #include /* An object describing a memory allocator family. */ struct allocator { /* Do not use GCC attributes such as __attribute__ ((malloc)) with the function types pointed at by these members, because these attributes do not work with pointers to functions. See . */ /* Call ALLOCATE to allocate memory, like 'malloc'. On failure ALLOCATE should return NULL, though not necessarily set errno. When given a zero size it may return NULL even if successful. */ void *(*allocate) (size_t); /* If nonnull, call REALLOCATE to reallocate memory, like 'realloc'. On failure REALLOCATE should return NULL, though not necessarily set errno. When given a zero size it may return NULL even if successful. */ void *(*reallocate) (void *, size_t); /* Call FREE to free memory, like 'free'. */ void (*free) (void *); /* If nonnull, call DIE (SIZE) if MALLOC (SIZE) or REALLOC (..., SIZE) fails. DIE should not return. SIZE should equal SIZE_MAX if size_t overflow was detected while calculating sizes to be passed to MALLOC or REALLOC. */ void (*die) (size_t); }; /* An allocator using the stdlib functions and a null DIE function. */ extern struct allocator const stdlib_allocator; #endif /* _GL_ALLOCATOR_H */ shishi-1.0.3/lib/gl/tzset.c0000644000000000000000000000543314273615123012367 00000000000000/* Provide tzset for systems that don't have it or for which it's broken. Copyright (C) 2001-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Jim Meyering */ #include /* Specification. */ #include #include #include void rpl_tzset (void) #undef tzset { #if defined _WIN32 && ! defined __CYGWIN__ /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. "Singapore". - Time zone names that contain explicit DST rules. Syntax: see The Microsoft CRT understands only the first kind. It produces incorrect results if the value of TZ is of the other kinds. But in a Cygwin environment, /etc/profile.d/tzset.sh sets TZ to a value of the second kind for most geographies, or of the first kind in a few other geographies. If it is of the second kind, neutralize it. For the Microsoft CRT, an absent or empty TZ means the time zone that the user has set in the Windows Control Panel. If the value of TZ is of the third or fourth kind -- Cygwin programs understand these syntaxes as well --, it does not matter whether we neutralize it or not, since these values occur only when a Cygwin user has set TZ explicitly; this case is 1. rare and 2. under the user's responsibility. */ const char *tz = getenv ("TZ"); if (tz != NULL && strchr (tz, '/') != NULL) _putenv ("TZ="); /* On native Windows, tzset() is deprecated. Use _tzset() instead. See */ _tzset (); #else tzset (); #endif } shishi-1.0.3/lib/gl/strftime.h0000644000000000000000000000264414273615123013061 00000000000000/* declarations for strftime.c Copyright (C) 2002, 2004, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #ifdef __cplusplus extern "C" { #endif /* Just like strftime, but with two more arguments: POSIX requires that strftime use the local timezone information. Use the timezone __TZ instead. Use __NS as the number of nanoseconds in the %N directive. On error, set errno and return 0. Otherwise, return the number of bytes generated (not counting the trailing NUL), preserving errno if the number is 0. This errno behavior is in draft POSIX 202x plus some requested changes to POSIX. */ size_t nstrftime (char *restrict, size_t, char const *, struct tm const *, timezone_t __tz, int __ns); #ifdef __cplusplus } #endif shishi-1.0.3/lib/gl/gettimeofday.c0000644000000000000000000001130414273615122013670 00000000000000/* Provide gettimeofday for systems that don't have it or for which it's broken. Copyright (C) 2001-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Jim Meyering */ #include /* Specification. */ #include #include #if defined _WIN32 && ! defined __CYGWIN__ # define WINDOWS_NATIVE # include #endif #ifdef WINDOWS_NATIVE /* Don't assume that UNICODE is not defined. */ # undef LoadLibrary # define LoadLibrary LoadLibraryA # if !(_WIN32_WINNT >= _WIN32_WINNT_WIN8) /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress /* GetSystemTimePreciseAsFileTime was introduced only in Windows 8. */ typedef void (WINAPI * GetSystemTimePreciseAsFileTimeFuncType) (FILETIME *lpTime); static GetSystemTimePreciseAsFileTimeFuncType GetSystemTimePreciseAsFileTimeFunc = NULL; static BOOL initialized = FALSE; static void initialize (void) { HMODULE kernel32 = LoadLibrary ("kernel32.dll"); if (kernel32 != NULL) { GetSystemTimePreciseAsFileTimeFunc = (GetSystemTimePreciseAsFileTimeFuncType) GetProcAddress (kernel32, "GetSystemTimePreciseAsFileTime"); } initialized = TRUE; } # else # define GetSystemTimePreciseAsFileTimeFunc GetSystemTimePreciseAsFileTime # endif #endif /* This is a wrapper for gettimeofday. It is used only on systems that lack this function, or whose implementation of this function causes problems. Work around the bug in some systems whereby gettimeofday clobbers the static buffer that localtime uses for its return value. The gettimeofday function from Mac OS X 10.0.4 (i.e., Darwin 1.3.7) has this problem. */ int gettimeofday (struct timeval *restrict tv, void *restrict tz) { #undef gettimeofday #ifdef WINDOWS_NATIVE /* On native Windows, there are two ways to get the current time: GetSystemTimeAsFileTime or GetSystemTimePreciseAsFileTime . GetSystemTimeAsFileTime produces values that jump by increments of 15.627 milliseconds (!) on average. Whereas GetSystemTimePreciseAsFileTime values usually jump by 1 or 2 microseconds. More discussion on this topic: . */ FILETIME current_time; # if !(_WIN32_WINNT >= _WIN32_WINNT_WIN8) if (!initialized) initialize (); # endif if (GetSystemTimePreciseAsFileTimeFunc != NULL) GetSystemTimePreciseAsFileTimeFunc (¤t_time); else GetSystemTimeAsFileTime (¤t_time); /* Convert from FILETIME to 'struct timeval'. */ /* FILETIME: */ ULONGLONG since_1601 = ((ULONGLONG) current_time.dwHighDateTime << 32) | (ULONGLONG) current_time.dwLowDateTime; /* Between 1601-01-01 and 1970-01-01 there were 280 normal years and 89 leap years, in total 134774 days. */ ULONGLONG since_1970 = since_1601 - (ULONGLONG) 134774 * (ULONGLONG) 86400 * (ULONGLONG) 10000000; ULONGLONG microseconds_since_1970 = since_1970 / (ULONGLONG) 10; tv->tv_sec = microseconds_since_1970 / (ULONGLONG) 1000000; tv->tv_usec = microseconds_since_1970 % (ULONGLONG) 1000000; return 0; #else # if HAVE_GETTIMEOFDAY # if defined timeval /* 'struct timeval' overridden by gnulib? */ # undef timeval struct timeval otv; int result = gettimeofday (&otv, (struct timezone *) tz); if (result == 0) { tv->tv_sec = otv.tv_sec; tv->tv_usec = otv.tv_usec; } # else int result = gettimeofday (tv, (struct timezone *) tz); # endif return result; # else # if !defined OK_TO_USE_1S_CLOCK # error "Only 1-second nominal clock resolution found. Is that intended?" \ "If so, compile with the -DOK_TO_USE_1S_CLOCK option." # endif tv->tv_sec = time (NULL); tv->tv_usec = 0; return 0; # endif #endif } shishi-1.0.3/lib/gl/sha1.h0000644000000000000000000000743414273615123012062 00000000000000/* Declarations of functions and data types used for SHA1 sum library functions. Copyright (C) 2000-2001, 2003, 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef SHA1_H # define SHA1_H 1 # include # include # if HAVE_OPENSSL_SHA1 # ifndef OPENSSL_API_COMPAT # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ # endif # include # endif # ifdef __cplusplus extern "C" { # endif # define SHA1_DIGEST_SIZE 20 # if HAVE_OPENSSL_SHA1 # define GL_OPENSSL_NAME 1 # include "gl_openssl.h" # else /* Structure to save state of computation between the single steps. */ struct sha1_ctx { uint32_t A; uint32_t B; uint32_t C; uint32_t D; uint32_t E; uint32_t total[2]; uint32_t buflen; /* ≥ 0, ≤ 128 */ uint32_t buffer[32]; /* 128 bytes; the first buflen bytes are in use */ }; /* Initialize structure containing state of computation. */ extern void sha1_init_ctx (struct sha1_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is necessary that LEN is a multiple of 64!!! */ extern void sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is NOT required that LEN is a multiple of 64. */ extern void sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx); /* Process the remaining bytes in the buffer and put result from CTX in first 20 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *restrict resbuf); /* Put result from CTX in first 20 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *restrict resbuf); /* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *sha1_buffer (const char *buffer, size_t len, void *restrict resblock); # endif /* Compute SHA1 message digest for bytes read from STREAM. STREAM is an open file stream. Regular files are handled more efficiently. The contents of STREAM from its current position to its end will be read. The case that the last operation on STREAM was an 'ungetc' is not supported. The resulting message digest number will be written into the 20 bytes beginning at RESBLOCK. */ extern int sha1_stream (FILE *stream, void *resblock); # ifdef __cplusplus } # endif #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/stat.c0000644000000000000000000003276514273615123012201 00000000000000/* Work around platform bugs in stat. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake and Bruno Haible. */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_stat doesn't recurse to rpl_stat. */ #define __need_system_sys_stat_h #include /* Get the original definition of stat. It might be defined as a macro. */ #include #include #undef __need_system_sys_stat_h #if defined _WIN32 && ! defined __CYGWIN__ # define WINDOWS_NATIVE #endif #if !defined WINDOWS_NATIVE static int orig_stat (const char *filename, struct stat *buf) { return stat (filename, buf); } #endif /* Specification. */ #ifdef __osf__ /* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ # include "sys/stat.h" #else # include #endif #include "stat-time.h" #include #include #include #include #include "filename.h" #include "malloca.h" #include "verify.h" #ifdef WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include # include "stat-w32.h" /* Don't assume that UNICODE is not defined. */ # undef WIN32_FIND_DATA # define WIN32_FIND_DATA WIN32_FIND_DATAA # undef CreateFile # define CreateFile CreateFileA # undef FindFirstFile # define FindFirstFile FindFirstFileA #endif #ifdef WINDOWS_NATIVE /* Return TRUE if the given file name denotes an UNC root. */ static BOOL is_unc_root (const char *rname) { /* Test whether it has the syntax '\\server\share'. */ if (ISSLASH (rname[0]) && ISSLASH (rname[1])) { /* It starts with two slashes. Find the next slash. */ const char *p = rname + 2; const char *q = p; while (*q != '\0' && !ISSLASH (*q)) q++; if (q > p && *q != '\0') { /* Found the next slash at q. */ q++; const char *r = q; while (*r != '\0' && !ISSLASH (*r)) r++; if (r > q && *r == '\0') return TRUE; } } return FALSE; } #endif /* Store information about NAME into ST. Work around bugs with trailing slashes. Mingw has other bugs (such as st_ino always being 0 on success) which this wrapper does not work around. But at least this implementation provides the ability to emulate fchdir correctly. */ int rpl_stat (char const *name, struct stat *buf) { #ifdef WINDOWS_NATIVE /* Fill the fields ourselves, because the original stat function returns values for st_atime, st_mtime, st_ctime that depend on the current time zone. See */ /* XXX Should we convert to wchar_t* and prepend '\\?\', in order to work around length limitations ? */ /* POSIX specifies: "More than two leading characters shall be treated as a single character." */ if (ISSLASH (name[0]) && ISSLASH (name[1]) && ISSLASH (name[2])) { name += 2; while (ISSLASH (name[1])) name++; } size_t len = strlen (name); size_t drive_prefix_len = (HAS_DEVICE (name) ? 2 : 0); /* Remove trailing slashes (except the very first one, at position drive_prefix_len), but remember their presence. */ size_t rlen; bool check_dir = false; rlen = len; while (rlen > drive_prefix_len && ISSLASH (name[rlen-1])) { check_dir = true; if (rlen == drive_prefix_len + 1) break; rlen--; } /* Handle '' and 'C:'. */ if (!check_dir && rlen == drive_prefix_len) { errno = ENOENT; return -1; } /* Handle '\\'. */ if (rlen == 1 && ISSLASH (name[0]) && len >= 2) { errno = ENOENT; return -1; } const char *rname; char *malloca_rname; if (rlen == len) { rname = name; malloca_rname = NULL; } else { malloca_rname = malloca (rlen + 1); if (malloca_rname == NULL) { errno = ENOMEM; return -1; } memcpy (malloca_rname, name, rlen); malloca_rname[rlen] = '\0'; rname = malloca_rname; } /* There are two ways to get at the requested information: - by scanning the parent directory and examining the relevant directory entry, - by opening the file directly. The first approach fails for root directories (e.g. 'C:\') and UNC root directories (e.g. '\\server\share'). The second approach fails for some system files (e.g. 'C:\pagefile.sys' and 'C:\hiberfil.sys'): ERROR_SHARING_VIOLATION. The second approach gives more information (in particular, correct st_dev, st_ino, st_nlink fields). So we use the second approach and, as a fallback except for root and UNC root directories, also the first approach. */ { int ret; { /* Approach based on the file. */ /* Open a handle to the file. CreateFile */ HANDLE h = CreateFile (rname, FILE_READ_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, /* FILE_FLAG_POSIX_SEMANTICS (treat file names that differ only in case as different) makes sense only when applied to *all* filesystem operations. */ FILE_FLAG_BACKUP_SEMANTICS /* | FILE_FLAG_POSIX_SEMANTICS */, NULL); if (h != INVALID_HANDLE_VALUE) { ret = _gl_fstat_by_handle (h, rname, buf); CloseHandle (h); goto done; } } /* Test for root and UNC root directories. */ if ((rlen == drive_prefix_len + 1 && ISSLASH (rname[drive_prefix_len])) || is_unc_root (rname)) goto failed; /* Fallback. */ { /* Approach based on the directory entry. */ if (strchr (rname, '?') != NULL || strchr (rname, '*') != NULL) { /* Other Windows API functions would fail with error ERROR_INVALID_NAME. */ if (malloca_rname != NULL) freea (malloca_rname); errno = ENOENT; return -1; } /* Get the details about the directory entry. This can be done through FindFirstFile or through FindFirstFileEx with argument FindExInfoBasic */ WIN32_FIND_DATA info; HANDLE h = FindFirstFile (rname, &info); if (h == INVALID_HANDLE_VALUE) goto failed; /* Test for error conditions before starting to fill *buf. */ if (sizeof (buf->st_size) <= 4 && info.nFileSizeHigh > 0) { FindClose (h); if (malloca_rname != NULL) freea (malloca_rname); errno = EOVERFLOW; return -1; } # if _GL_WINDOWS_STAT_INODES buf->st_dev = 0; # if _GL_WINDOWS_STAT_INODES == 2 buf->st_ino._gl_ino[0] = buf->st_ino._gl_ino[1] = 0; # else /* _GL_WINDOWS_STAT_INODES == 1 */ buf->st_ino = 0; # endif # else /* st_ino is not wide enough for identifying a file on a device. Without st_ino, st_dev is pointless. */ buf->st_dev = 0; buf->st_ino = 0; # endif /* st_mode. */ unsigned int mode = /* XXX How to handle FILE_ATTRIBUTE_REPARSE_POINT ? */ ((info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? _S_IFDIR | S_IEXEC_UGO : _S_IFREG) | S_IREAD_UGO | ((info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? 0 : S_IWRITE_UGO); if (!(info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { /* Determine whether the file is executable by looking at the file name suffix. */ if (info.nFileSizeHigh > 0 || info.nFileSizeLow > 0) { const char *last_dot = NULL; const char *p; for (p = info.cFileName; *p != '\0'; p++) if (*p == '.') last_dot = p; if (last_dot != NULL) { const char *suffix = last_dot + 1; if (_stricmp (suffix, "exe") == 0 || _stricmp (suffix, "bat") == 0 || _stricmp (suffix, "cmd") == 0 || _stricmp (suffix, "com") == 0) mode |= S_IEXEC_UGO; } } } buf->st_mode = mode; /* st_nlink. Ignore hard links here. */ buf->st_nlink = 1; /* There's no easy way to map the Windows SID concept to an integer. */ buf->st_uid = 0; buf->st_gid = 0; /* st_rdev is irrelevant for normal files and directories. */ buf->st_rdev = 0; /* st_size. */ if (sizeof (buf->st_size) <= 4) /* Range check already done above. */ buf->st_size = info.nFileSizeLow; else buf->st_size = ((long long) info.nFileSizeHigh << 32) | (long long) info.nFileSizeLow; /* st_atime, st_mtime, st_ctime. */ # if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim = _gl_convert_FILETIME_to_timespec (&info.ftLastAccessTime); buf->st_mtim = _gl_convert_FILETIME_to_timespec (&info.ftLastWriteTime); buf->st_ctim = _gl_convert_FILETIME_to_timespec (&info.ftCreationTime); # else buf->st_atime = _gl_convert_FILETIME_to_POSIX (&info.ftLastAccessTime); buf->st_mtime = _gl_convert_FILETIME_to_POSIX (&info.ftLastWriteTime); buf->st_ctime = _gl_convert_FILETIME_to_POSIX (&info.ftCreationTime); # endif FindClose (h); ret = 0; } done: if (ret >= 0 && check_dir && !S_ISDIR (buf->st_mode)) { errno = ENOTDIR; ret = -1; } if (malloca_rname != NULL) { int saved_errno = errno; freea (malloca_rname); errno = saved_errno; } return ret; } failed: { DWORD error = GetLastError (); #if 0 fprintf (stderr, "rpl_stat error 0x%x\n", (unsigned int) error); #endif if (malloca_rname != NULL) freea (malloca_rname); switch (error) { /* Some of these errors probably cannot happen with the specific flags that we pass to CreateFile. But who knows... */ case ERROR_FILE_NOT_FOUND: /* The last component of rname does not exist. */ case ERROR_PATH_NOT_FOUND: /* Some directory component in rname does not exist. */ case ERROR_BAD_PATHNAME: /* rname is such as '\\server'. */ case ERROR_BAD_NET_NAME: /* rname is such as '\\server\nonexistentshare'. */ case ERROR_INVALID_NAME: /* rname contains wildcards, misplaced colon, etc. */ case ERROR_DIRECTORY: errno = ENOENT; break; case ERROR_ACCESS_DENIED: /* rname is such as 'C:\System Volume Information\foo'. */ case ERROR_SHARING_VIOLATION: /* rname is such as 'C:\pagefile.sys' (second approach only). */ /* XXX map to EACCES or EPERM? */ errno = EACCES; break; case ERROR_OUTOFMEMORY: errno = ENOMEM; break; case ERROR_WRITE_PROTECT: errno = EROFS; break; case ERROR_WRITE_FAULT: case ERROR_READ_FAULT: case ERROR_GEN_FAILURE: errno = EIO; break; case ERROR_BUFFER_OVERFLOW: case ERROR_FILENAME_EXCED_RANGE: errno = ENAMETOOLONG; break; case ERROR_DELETE_PENDING: /* XXX map to EACCES or EPERM? */ errno = EPERM; break; default: errno = EINVAL; break; } return -1; } #else int result = orig_stat (name, buf); if (result == 0) { # if REPLACE_FUNC_STAT_FILE /* Solaris 9 mistakenly succeeds when given a non-directory with a trailing slash. */ if (!S_ISDIR (buf->st_mode)) { size_t len = strlen (name); if (ISSLASH (name[len - 1])) { errno = ENOTDIR; return -1; } } # endif /* REPLACE_FUNC_STAT_FILE */ result = stat_time_normalize (result, buf); } return result; #endif } shishi-1.0.3/lib/gl/arpa_inet.in.h0000644000000000000000000001213114273615121013561 00000000000000/* A GNU-like . Copyright (C) 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_ARPA_INET_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if @HAVE_FEATURES_H@ # include /* for __GLIBC__ */ #endif /* Gnulib's sys/socket.h is responsible for defining socklen_t (used below) and for pulling in winsock2.h etc. under MinGW. But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include #endif /* On NonStop Kernel, inet_ntop and inet_pton are declared in . But avoid namespace pollution on glibc systems. */ #if defined __TANDEM && !defined __GLIBC__ # include #endif #if @HAVE_ARPA_INET_H@ /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_ARPA_INET_H@ #endif #ifndef _@GUARD_PREFIX@_ARPA_INET_H #define _@GUARD_PREFIX@_ARPA_INET_H /* Get all possible declarations of inet_ntop() and inet_pton(). */ #if (@GNULIB_INET_NTOP@ || @GNULIB_INET_PTON@ || defined GNULIB_POSIXCHECK) \ && @HAVE_WS2TCPIP_H@ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ #if @GNULIB_INET_NTOP@ /* Converts an internet address from internal format to a printable, presentable format. AF is an internet address family, such as AF_INET or AF_INET6. SRC points to a 'struct in_addr' (for AF_INET) or 'struct in6_addr' (for AF_INET6). DST points to a buffer having room for CNT bytes. The printable representation of the address (in numeric form, not surrounded by [...], no reverse DNS is done) is placed in DST, and DST is returned. If an error occurs, the return value is NULL and errno is set. If CNT bytes are not sufficient to hold the result, the return value is NULL and errno is set to ENOSPC. A good value for CNT is 46. For more details, see the POSIX:2008 specification . */ # if @REPLACE_INET_NTOP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef inet_ntop # define inet_ntop rpl_inet_ntop # endif _GL_FUNCDECL_RPL (inet_ntop, const char *, (int af, const void *restrict src, char *restrict dst, socklen_t cnt) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (inet_ntop, const char *, (int af, const void *restrict src, char *restrict dst, socklen_t cnt)); # else # if !@HAVE_DECL_INET_NTOP@ _GL_FUNCDECL_SYS (inet_ntop, const char *, (int af, const void *restrict src, char *restrict dst, socklen_t cnt) _GL_ARG_NONNULL ((2, 3))); # endif /* Need to cast, because on NonStop Kernel, the fourth parameter is size_t cnt. */ _GL_CXXALIAS_SYS_CAST (inet_ntop, const char *, (int af, const void *restrict src, char *restrict dst, socklen_t cnt)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (inet_ntop); # endif #elif defined GNULIB_POSIXCHECK # undef inet_ntop # if HAVE_RAW_DECL_INET_NTOP _GL_WARN_ON_USE (inet_ntop, "inet_ntop is unportable - " "use gnulib module inet_ntop for portability"); # endif #endif #if @GNULIB_INET_PTON@ # if @REPLACE_INET_PTON@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef inet_pton # define inet_pton rpl_inet_pton # endif _GL_FUNCDECL_RPL (inet_pton, int, (int af, const char *restrict src, void *restrict dst) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (inet_pton, int, (int af, const char *restrict src, void *restrict dst)); # else # if !@HAVE_DECL_INET_PTON@ _GL_FUNCDECL_SYS (inet_pton, int, (int af, const char *restrict src, void *restrict dst) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (inet_pton, int, (int af, const char *restrict src, void *restrict dst)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (inet_pton); # endif #elif defined GNULIB_POSIXCHECK # undef inet_pton # if HAVE_RAW_DECL_INET_PTON _GL_WARN_ON_USE (inet_pton, "inet_pton is unportable - " "use gnulib module inet_pton for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_ARPA_INET_H */ #endif /* _@GUARD_PREFIX@_ARPA_INET_H */ shishi-1.0.3/lib/gl/parse-datetime-gen.h0000644000000000000000000000720214273615267014703 00000000000000/* A Bison parser, made by GNU Bison 3.7.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, especially those whose name start with YY_ or yy_. They are private implementation details that can be changed or removed. */ #ifndef YY_YY_PARSE_DATETIME_TAB_H_INCLUDED # define YY_YY_PARSE_DATETIME_TAB_H_INCLUDED /* Debug traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif #if YYDEBUG extern int yydebug; #endif /* Token kinds. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { YYEMPTY = -2, YYEOF = 0, /* "end of file" */ YYerror = 256, /* error */ YYUNDEF = 257, /* "invalid token" */ tAGO = 258, /* tAGO */ tDST = 259, /* tDST */ tYEAR_UNIT = 260, /* tYEAR_UNIT */ tMONTH_UNIT = 261, /* tMONTH_UNIT */ tHOUR_UNIT = 262, /* tHOUR_UNIT */ tMINUTE_UNIT = 263, /* tMINUTE_UNIT */ tSEC_UNIT = 264, /* tSEC_UNIT */ tDAY_UNIT = 265, /* tDAY_UNIT */ tDAY_SHIFT = 266, /* tDAY_SHIFT */ tDAY = 267, /* tDAY */ tDAYZONE = 268, /* tDAYZONE */ tLOCAL_ZONE = 269, /* tLOCAL_ZONE */ tMERIDIAN = 270, /* tMERIDIAN */ tMONTH = 271, /* tMONTH */ tORDINAL = 272, /* tORDINAL */ tZONE = 273, /* tZONE */ tSNUMBER = 274, /* tSNUMBER */ tUNUMBER = 275, /* tUNUMBER */ tSDECIMAL_NUMBER = 276, /* tSDECIMAL_NUMBER */ tUDECIMAL_NUMBER = 277 /* tUDECIMAL_NUMBER */ }; typedef enum yytokentype yytoken_kind_t; #endif /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED union YYSTYPE { #line 567 "parse-datetime.y" intmax_t intval; textint textintval; struct timespec timespec; relative_time rel; #line 93 "parse-datetime-gen.h" }; typedef union YYSTYPE YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif int yyparse (parser_control *pc); #endif /* !YY_YY_PARSE_DATETIME_TAB_H_INCLUDED */ shishi-1.0.3/lib/gl/xasprintf.c0000644000000000000000000000201414273615123013224 00000000000000/* vasprintf and asprintf with out-of-memory checking. Copyright (C) 1999, 2002-2004, 2006, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Specification. */ #include "xvasprintf.h" char * xasprintf (const char *format, ...) { va_list args; char *result; va_start (args, format); result = xvasprintf (format, args); va_end (args); return result; } shishi-1.0.3/lib/gl/connect.c0000644000000000000000000000303714273615121012643 00000000000000/* connect.c --- wrappers for Windows connect function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef connect int rpl_connect (int fd, const struct sockaddr *sockaddr, socklen_t len) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int r = connect (sock, sockaddr, len); if (r < 0) { /* EINPROGRESS is not returned by WinSock 2.0; for backwards compatibility, connect(2) uses EWOULDBLOCK. */ if (WSAGetLastError () == WSAEWOULDBLOCK) WSASetLastError (WSAEINPROGRESS); set_winsock_errno (); } return r; } } shishi-1.0.3/lib/gl/memchr.c0000644000000000000000000001345514273615123012474 00000000000000/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2022 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and commentary by Jim Blandy (jimb@ai.mit.edu); adaptation to memchr suggested by Dick Karpinski (dick@cca.ucsf.edu), and implemented by Roland McGrath (roland@ai.mit.edu). NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBC # include #endif #include #include #if defined _LIBC # include #else # define reg_char char #endif #include #if HAVE_BP_SYM_H || defined _LIBC # include #else # define BP_SYM(sym) sym #endif #undef __memchr #ifdef _LIBC # undef memchr #endif #ifndef weak_alias # define __memchr memchr #endif /* Search no more than N bytes of S for C. */ void * __memchr (void const *s, int c_in, size_t n) { /* On 32-bit hardware, choosing longword to be a 32-bit unsigned long instead of a 64-bit uintmax_t tends to give better performance. On 64-bit hardware, unsigned long is generally 64 bits already. Change this typedef to experiment with performance. */ typedef unsigned long int longword; const unsigned char *char_ptr; const longword *longword_ptr; longword repeated_one; longword repeated_c; unsigned reg_char c; c = (unsigned char) c_in; /* Handle the first few bytes by reading one byte at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; n > 0 && (size_t) char_ptr % sizeof (longword) != 0; --n, ++char_ptr) if (*char_ptr == c) return (void *) char_ptr; longword_ptr = (const longword *) char_ptr; /* All these elucidatory comments refer to 4-byte longwords, but the theory applies equally well to any size longwords. */ /* Compute auxiliary longword values: repeated_one is a value which has a 1 in every byte. repeated_c has c in every byte. */ repeated_one = 0x01010101; repeated_c = c | (c << 8); repeated_c |= repeated_c << 16; if (0xffffffffU < (longword) -1) { repeated_one |= repeated_one << 31 << 1; repeated_c |= repeated_c << 31 << 1; if (8 < sizeof (longword)) { size_t i; for (i = 64; i < sizeof (longword) * 8; i *= 2) { repeated_one |= repeated_one << i; repeated_c |= repeated_c << i; } } } /* Instead of the traditional loop which tests each byte, we will test a longword at a time. The tricky part is testing if *any of the four* bytes in the longword in question are equal to c. We first use an xor with repeated_c. This reduces the task to testing whether *any of the four* bytes in longword1 is zero. We compute tmp = ((longword1 - repeated_one) & ~longword1) & (repeated_one << 7). That is, we perform the following operations: 1. Subtract repeated_one. 2. & ~longword1. 3. & a mask consisting of 0x80 in every byte. Consider what happens in each byte: - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, and step 3 transforms it into 0x80. A carry can also be propagated to more significant bytes. - If a byte of longword1 is nonzero, let its lowest 1 bit be at position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, the byte ends in a single bit of value 0 and k bits of value 1. After step 2, the result is just k bits of value 1: 2^k - 1. After step 3, the result is 0. And no carry is produced. So, if longword1 has only non-zero bytes, tmp is zero. Whereas if longword1 has a zero byte, call j the position of the least significant zero byte. Then the result has a zero at positions 0, ..., j-1 and a 0x80 at position j. We cannot predict the result at the more significant bytes (positions j+1..3), but it does not matter since we already have a non-zero bit at position 8*j+7. So, the test whether any byte in longword1 is zero is equivalent to testing whether tmp is nonzero. */ while (n >= sizeof (longword)) { longword longword1 = *longword_ptr ^ repeated_c; if ((((longword1 - repeated_one) & ~longword1) & (repeated_one << 7)) != 0) break; longword_ptr++; n -= sizeof (longword); } char_ptr = (const unsigned char *) longword_ptr; /* At this point, we know that either n < sizeof (longword), or one of the sizeof (longword) bytes starting at char_ptr is == c. On little-endian machines, we could determine the first such byte without any further memory accesses, just by looking at the tmp result from the last loop iteration. But this does not work on big-endian machines. Choose code that works in both cases. */ for (; n > 0; --n, ++char_ptr) { if (*char_ptr == c) return (void *) char_ptr; } return NULL; } #ifdef weak_alias weak_alias (__memchr, BP_SYM (memchr)) #endif shishi-1.0.3/lib/gl/mktime-internal.h0000644000000000000000000000606114273615123014321 00000000000000/* Internals of mktime and related functions Copyright 2016-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert . The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _LIBC # include #endif /* mktime_offset_t is a signed type wide enough to hold a UTC offset in seconds, and used as part of the type of the offset-guess argument to mktime_internal. In Glibc, it is always long int. When in Gnulib, use time_t on platforms where time_t is signed, to be compatible with platforms like BeOS that export this implementation detail of mktime. On platforms where time_t is unsigned, GNU and POSIX code can assume 'int' is at least 32 bits which is wide enough for a UTC offset. */ #ifdef _LIBC typedef long int mktime_offset_t; #elif defined TIME_T_IS_SIGNED typedef time_t mktime_offset_t; #else typedef int mktime_offset_t; #endif /* The source code uses identifiers like __time64_t for glibc timestamps that can contain 64-bit values even when time_t is only 32 bits. These are just macros for the ordinary identifiers unless compiling within glibc when time_t is 32 bits. */ #if ! (defined _LIBC && __TIMESIZE != 64) # undef __time64_t # define __time64_t time_t # define __gmtime64_r __gmtime_r # define __localtime64_r __localtime_r # define __mktime64 mktime # define __timegm64 timegm #endif #ifndef _LIBC /* Although glibc source code uses leading underscores, Gnulib wants ordinary names. Portable standalone applications should supply a that declares a POSIX-compliant localtime_r, for the benefit of older implementations that lack localtime_r or have a nonstandard one. Similarly for gmtime_r. See the gnulib time_r module for one way to implement this. */ # undef __gmtime_r # undef __localtime_r # define __gmtime_r gmtime_r # define __localtime_r localtime_r # define __mktime_internal mktime_internal #endif /* Subroutine of mktime. Return the time_t representation of TP and normalize TP, given that a struct tm * maps to a time_t as performed by FUNC. Record next guess for localtime-gmtime offset in *OFFSET. */ extern __time64_t __mktime_internal (struct tm *tp, struct tm *(*func) (__time64_t const *, struct tm *), mktime_offset_t *offset) attribute_hidden; shishi-1.0.3/lib/gl/md5.c0000644000000000000000000003210014273615123011672 00000000000000/* Functions to compute MD5 message digest of files or memory blocks. according to the definition of MD5 in RFC 1321 from April 1992. Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Ulrich Drepper , 1995. */ #include /* Specification. */ #if HAVE_OPENSSL_MD5 # define GL_OPENSSL_INLINE _GL_EXTERN_INLINE #endif #include "md5.h" #include #include #include #include #ifdef _LIBC # include # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 # endif /* We need to keep the namespace clean so define the MD5 function protected using leading __ . */ # define md5_init_ctx __md5_init_ctx # define md5_process_block __md5_process_block # define md5_process_bytes __md5_process_bytes # define md5_finish_ctx __md5_finish_ctx # define md5_read_ctx __md5_read_ctx # define md5_buffer __md5_buffer #endif #include #ifdef WORDS_BIGENDIAN # define SWAP(n) bswap_32 (n) #else # define SWAP(n) (n) #endif #if ! HAVE_OPENSSL_MD5 /* This array contains the bytes used to pad the buffer to the next 64-byte boundary. (RFC 1321, 3.1: Step 1) */ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; /* Initialize structure containing state of computation. (RFC 1321, 3.3: Step 3) */ void md5_init_ctx (struct md5_ctx *ctx) { ctx->A = 0x67452301; ctx->B = 0xefcdab89; ctx->C = 0x98badcfe; ctx->D = 0x10325476; ctx->total[0] = ctx->total[1] = 0; ctx->buflen = 0; } /* Copy the 4 byte value from v into the memory location pointed to by *cp, If your architecture allows unaligned access this is equivalent to * (uint32_t *) cp = v */ static void set_uint32 (char *cp, uint32_t v) { memcpy (cp, &v, sizeof v); } /* Put result from CTX in first 16 bytes following RESBUF. The result must be in little endian byte order. */ void * md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) { char *r = resbuf; set_uint32 (r + 0 * sizeof ctx->A, SWAP (ctx->A)); set_uint32 (r + 1 * sizeof ctx->B, SWAP (ctx->B)); set_uint32 (r + 2 * sizeof ctx->C, SWAP (ctx->C)); set_uint32 (r + 3 * sizeof ctx->D, SWAP (ctx->D)); return resbuf; } /* Process the remaining bytes in the internal buffer and the usual prolog according to the standard and write the result to RESBUF. */ void * md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) { /* Take yet unprocessed bytes into account. */ uint32_t bytes = ctx->buflen; size_t size = (bytes < 56) ? 64 / 4 : 64 * 2 / 4; /* Now count remaining bytes. */ ctx->total[0] += bytes; if (ctx->total[0] < bytes) ++ctx->total[1]; /* Put the 64-bit file length in *bits* at the end of the buffer. */ ctx->buffer[size - 2] = SWAP (ctx->total[0] << 3); ctx->buffer[size - 1] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes); /* Process last bytes. */ md5_process_block (ctx->buffer, size * 4, ctx); return md5_read_ctx (ctx, resbuf); } /* Compute MD5 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ void * md5_buffer (const char *buffer, size_t len, void *resblock) { struct md5_ctx ctx; /* Initialize the computation context. */ md5_init_ctx (&ctx); /* Process whole buffer but last len % 64 bytes. */ md5_process_bytes (buffer, len, &ctx); /* Put result in desired memory area. */ return md5_finish_ctx (&ctx, resblock); } void md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) { /* When we already have some bits in our internal buffer concatenate both inputs first. */ if (ctx->buflen != 0) { size_t left_over = ctx->buflen; size_t add = 128 - left_over > len ? len : 128 - left_over; memcpy (&((char *) ctx->buffer)[left_over], buffer, add); ctx->buflen += add; if (ctx->buflen > 64) { md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx); ctx->buflen &= 63; /* The regions in the following copy operation cannot overlap, because ctx->buflen < 64 ≤ (left_over + add) & ~63. */ memcpy (ctx->buffer, &((char *) ctx->buffer)[(left_over + add) & ~63], ctx->buflen); } buffer = (const char *) buffer + add; len -= add; } /* Process available complete blocks. */ if (len >= 64) { #if !(_STRING_ARCH_unaligned || _STRING_INLINE_unaligned) # define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0) if (UNALIGNED_P (buffer)) while (len > 64) { md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); buffer = (const char *) buffer + 64; len -= 64; } else #endif { md5_process_block (buffer, len & ~63, ctx); buffer = (const char *) buffer + (len & ~63); len &= 63; } } /* Move remaining bytes in internal buffer. */ if (len > 0) { size_t left_over = ctx->buflen; memcpy (&((char *) ctx->buffer)[left_over], buffer, len); left_over += len; if (left_over >= 64) { md5_process_block (ctx->buffer, 64, ctx); left_over -= 64; /* The regions in the following copy operation cannot overlap, because left_over ≤ 64. */ memcpy (ctx->buffer, &ctx->buffer[16], left_over); } ctx->buflen = left_over; } } /* These are the four functions used in the four steps of the MD5 algorithm and defined in the RFC 1321. The first function is a little bit optimized (as found in Colin Plumbs public domain implementation). */ /* #define FF(b, c, d) ((b & c) | (~b & d)) */ #define FF(b, c, d) (d ^ (b & (c ^ d))) #define FG(b, c, d) FF (d, b, c) #define FH(b, c, d) (b ^ c ^ d) #define FI(b, c, d) (c ^ (b | ~d)) /* Process LEN bytes of BUFFER, accumulating context into CTX. It is assumed that LEN % 64 == 0. */ void md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx) { uint32_t correct_words[16]; const uint32_t *words = buffer; size_t nwords = len / sizeof (uint32_t); const uint32_t *endp = words + nwords; uint32_t A = ctx->A; uint32_t B = ctx->B; uint32_t C = ctx->C; uint32_t D = ctx->D; uint32_t lolen = len; /* First increment the byte count. RFC 1321 specifies the possible length of the file up to 2^64 bits. Here we only compute the number of bytes. Do a double word increment. */ ctx->total[0] += lolen; ctx->total[1] += (len >> 31 >> 1) + (ctx->total[0] < lolen); /* Process all bytes in the buffer with 64 bytes in each round of the loop. */ while (words < endp) { uint32_t *cwp = correct_words; uint32_t A_save = A; uint32_t B_save = B; uint32_t C_save = C; uint32_t D_save = D; /* First round: using the given function, the context and a constant the next context is computed. Because the algorithms processing unit is a 32-bit word and it is determined to work on words in little endian byte order we perhaps have to change the byte order before the computation. To reduce the work for the next steps we store the swapped words in the array CORRECT_WORDS. */ #define OP(a, b, c, d, s, T) \ do \ { \ a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ ++words; \ CYCLIC (a, s); \ a += b; \ } \ while (0) /* It is unfortunate that C does not provide an operator for cyclic rotation. Hope the C compiler is smart enough. */ #define CYCLIC(w, s) (w = (w << s) | (w >> (32 - s))) /* Before we start, one word to the strange constants. They are defined in RFC 1321 as T[i] = (int) (4294967296.0 * fabs (sin (i))), i=1..64 Here is an equivalent invocation using Perl: perl -e 'foreach(1..64){printf "0x%08x\n", int (4294967296 * abs (sin $_))}' */ /* Round 1. */ OP (A, B, C, D, 7, 0xd76aa478); OP (D, A, B, C, 12, 0xe8c7b756); OP (C, D, A, B, 17, 0x242070db); OP (B, C, D, A, 22, 0xc1bdceee); OP (A, B, C, D, 7, 0xf57c0faf); OP (D, A, B, C, 12, 0x4787c62a); OP (C, D, A, B, 17, 0xa8304613); OP (B, C, D, A, 22, 0xfd469501); OP (A, B, C, D, 7, 0x698098d8); OP (D, A, B, C, 12, 0x8b44f7af); OP (C, D, A, B, 17, 0xffff5bb1); OP (B, C, D, A, 22, 0x895cd7be); OP (A, B, C, D, 7, 0x6b901122); OP (D, A, B, C, 12, 0xfd987193); OP (C, D, A, B, 17, 0xa679438e); OP (B, C, D, A, 22, 0x49b40821); /* For the second to fourth round we have the possibly swapped words in CORRECT_WORDS. Redefine the macro to take an additional first argument specifying the function to use. */ #undef OP #define OP(f, a, b, c, d, k, s, T) \ do \ { \ a += f (b, c, d) + correct_words[k] + T; \ CYCLIC (a, s); \ a += b; \ } \ while (0) /* Round 2. */ OP (FG, A, B, C, D, 1, 5, 0xf61e2562); OP (FG, D, A, B, C, 6, 9, 0xc040b340); OP (FG, C, D, A, B, 11, 14, 0x265e5a51); OP (FG, B, C, D, A, 0, 20, 0xe9b6c7aa); OP (FG, A, B, C, D, 5, 5, 0xd62f105d); OP (FG, D, A, B, C, 10, 9, 0x02441453); OP (FG, C, D, A, B, 15, 14, 0xd8a1e681); OP (FG, B, C, D, A, 4, 20, 0xe7d3fbc8); OP (FG, A, B, C, D, 9, 5, 0x21e1cde6); OP (FG, D, A, B, C, 14, 9, 0xc33707d6); OP (FG, C, D, A, B, 3, 14, 0xf4d50d87); OP (FG, B, C, D, A, 8, 20, 0x455a14ed); OP (FG, A, B, C, D, 13, 5, 0xa9e3e905); OP (FG, D, A, B, C, 2, 9, 0xfcefa3f8); OP (FG, C, D, A, B, 7, 14, 0x676f02d9); OP (FG, B, C, D, A, 12, 20, 0x8d2a4c8a); /* Round 3. */ OP (FH, A, B, C, D, 5, 4, 0xfffa3942); OP (FH, D, A, B, C, 8, 11, 0x8771f681); OP (FH, C, D, A, B, 11, 16, 0x6d9d6122); OP (FH, B, C, D, A, 14, 23, 0xfde5380c); OP (FH, A, B, C, D, 1, 4, 0xa4beea44); OP (FH, D, A, B, C, 4, 11, 0x4bdecfa9); OP (FH, C, D, A, B, 7, 16, 0xf6bb4b60); OP (FH, B, C, D, A, 10, 23, 0xbebfbc70); OP (FH, A, B, C, D, 13, 4, 0x289b7ec6); OP (FH, D, A, B, C, 0, 11, 0xeaa127fa); OP (FH, C, D, A, B, 3, 16, 0xd4ef3085); OP (FH, B, C, D, A, 6, 23, 0x04881d05); OP (FH, A, B, C, D, 9, 4, 0xd9d4d039); OP (FH, D, A, B, C, 12, 11, 0xe6db99e5); OP (FH, C, D, A, B, 15, 16, 0x1fa27cf8); OP (FH, B, C, D, A, 2, 23, 0xc4ac5665); /* Round 4. */ OP (FI, A, B, C, D, 0, 6, 0xf4292244); OP (FI, D, A, B, C, 7, 10, 0x432aff97); OP (FI, C, D, A, B, 14, 15, 0xab9423a7); OP (FI, B, C, D, A, 5, 21, 0xfc93a039); OP (FI, A, B, C, D, 12, 6, 0x655b59c3); OP (FI, D, A, B, C, 3, 10, 0x8f0ccc92); OP (FI, C, D, A, B, 10, 15, 0xffeff47d); OP (FI, B, C, D, A, 1, 21, 0x85845dd1); OP (FI, A, B, C, D, 8, 6, 0x6fa87e4f); OP (FI, D, A, B, C, 15, 10, 0xfe2ce6e0); OP (FI, C, D, A, B, 6, 15, 0xa3014314); OP (FI, B, C, D, A, 13, 21, 0x4e0811a1); OP (FI, A, B, C, D, 4, 6, 0xf7537e82); OP (FI, D, A, B, C, 11, 10, 0xbd3af235); OP (FI, C, D, A, B, 2, 15, 0x2ad7d2bb); OP (FI, B, C, D, A, 9, 21, 0xeb86d391); /* Add the starting values of the context. */ A += A_save; B += B_save; C += C_save; D += D_save; } /* Put checksum in context given as argument. */ ctx->A = A; ctx->B = B; ctx->C = C; ctx->D = D; } #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/signal.in.h0000644000000000000000000003630314273615123013105 00000000000000/* A GNU-like . Copyright (C) 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_sig_atomic_t || defined __need_sigset_t || defined _GL_ALREADY_INCLUDING_SIGNAL_H || (defined _SIGNAL_H && !defined __SIZEOF_PTHREAD_MUTEX_T) /* Special invocation convention: - Inside glibc header files. - On glibc systems we have a sequence of nested includes -> -> . In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. - On glibc systems with GCC 4.3 we have a sequence of nested includes -> -> -> . In this situation, some of the functions are not yet declared, therefore we cannot provide the C++ aliases. */ # @INCLUDE_NEXT@ @NEXT_SIGNAL_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SIGNAL_H #define _GL_ALREADY_INCLUDING_SIGNAL_H /* Define pid_t, uid_t. Also, mingw defines sigset_t not in , but in . On Solaris 10, includes , which eventually includes us; so include now, before the second inclusion guard. */ #include /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_SIGNAL_H@ #undef _GL_ALREADY_INCLUDING_SIGNAL_H #ifndef _@GUARD_PREFIX@_SIGNAL_H #define _@GUARD_PREFIX@_SIGNAL_H /* Mac OS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6, Android, OS/2 kLIBC declare pthread_sigmask in , not in . But avoid namespace pollution on glibc systems.*/ #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \ && ((defined __APPLE__ && defined __MACH__) \ || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ \ || defined __sun || defined __ANDROID__ || defined __KLIBC__) \ && ! defined __GLIBC__ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* On AIX, sig_atomic_t already includes volatile. C99 requires that 'volatile sig_atomic_t' ignore the extra modifier, but C89 did not. Hence, redefine this to a non-volatile type as needed. */ #if ! @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ # if !GNULIB_defined_sig_atomic_t typedef int rpl_sig_atomic_t; # undef sig_atomic_t # define sig_atomic_t rpl_sig_atomic_t # define GNULIB_defined_sig_atomic_t 1 # endif #endif /* A set or mask of signals. */ #if !@HAVE_SIGSET_T@ # if !GNULIB_defined_sigset_t typedef unsigned int sigset_t; # define GNULIB_defined_sigset_t 1 # endif #endif /* Define sighandler_t, the type of signal handlers. A GNU extension. */ #if !@HAVE_SIGHANDLER_T@ # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_sighandler_t typedef void (*sighandler_t) (int); # define GNULIB_defined_sighandler_t 1 # endif # ifdef __cplusplus } # endif #endif #if @GNULIB_SIGNAL_H_SIGPIPE@ # ifndef SIGPIPE /* Define SIGPIPE to a value that does not overlap with other signals. */ # define SIGPIPE 13 # define GNULIB_defined_SIGPIPE 1 /* To actually use SIGPIPE, you also need the gnulib modules 'sigprocmask', 'write', 'stdio'. */ # endif #endif /* Maximum signal number + 1. */ #ifndef NSIG # if defined __TANDEM # define NSIG 32 # endif #endif #if @GNULIB_PTHREAD_SIGMASK@ # if @REPLACE_PTHREAD_SIGMASK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pthread_sigmask # define pthread_sigmask rpl_pthread_sigmask # endif _GL_FUNCDECL_RPL (pthread_sigmask, int, (int how, const sigset_t *restrict new_mask, sigset_t *restrict old_mask)); _GL_CXXALIAS_RPL (pthread_sigmask, int, (int how, const sigset_t *restrict new_mask, sigset_t *restrict old_mask)); # else # if !(@HAVE_PTHREAD_SIGMASK@ || defined pthread_sigmask) _GL_FUNCDECL_SYS (pthread_sigmask, int, (int how, const sigset_t *restrict new_mask, sigset_t *restrict old_mask)); # endif _GL_CXXALIAS_SYS (pthread_sigmask, int, (int how, const sigset_t *restrict new_mask, sigset_t *restrict old_mask)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (pthread_sigmask); # endif #elif defined GNULIB_POSIXCHECK # undef pthread_sigmask # if HAVE_RAW_DECL_PTHREAD_SIGMASK _GL_WARN_ON_USE (pthread_sigmask, "pthread_sigmask is not portable - " "use gnulib module pthread_sigmask for portability"); # endif #endif #if @GNULIB_RAISE@ # if @REPLACE_RAISE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef raise # define raise rpl_raise # endif _GL_FUNCDECL_RPL (raise, int, (int sig)); _GL_CXXALIAS_RPL (raise, int, (int sig)); # else # if !@HAVE_RAISE@ _GL_FUNCDECL_SYS (raise, int, (int sig)); # endif _GL_CXXALIAS_SYS (raise, int, (int sig)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (raise); # endif #elif defined GNULIB_POSIXCHECK # undef raise /* Assume raise is always declared. */ _GL_WARN_ON_USE (raise, "raise can crash on native Windows - " "use gnulib module raise for portability"); #endif #if @GNULIB_SIGPROCMASK@ # if !@HAVE_POSIX_SIGNALBLOCKING@ # ifndef GNULIB_defined_signal_blocking # define GNULIB_defined_signal_blocking 1 # endif /* Maximum signal number + 1. */ # ifndef NSIG # define NSIG 32 # endif /* This code supports only 32 signals. */ # if !GNULIB_defined_verify_NSIG_constraint typedef int verify_NSIG_constraint[NSIG <= 32 ? 1 : -1]; # define GNULIB_defined_verify_NSIG_constraint 1 # endif # endif /* When also using extern inline, suppress the use of static inline in standard headers of problematic Apple configurations, as Libc at least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., . Perhaps Apple will fix this some day. */ #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ && (defined __i386__ || defined __x86_64__)) # undef sigaddset # undef sigdelset # undef sigemptyset # undef sigfillset # undef sigismember #endif /* Test whether a given signal is contained in a signal set. */ # if @HAVE_POSIX_SIGNALBLOCKING@ /* This function is defined as a macro on Mac OS X. */ # if defined __cplusplus && defined GNULIB_NAMESPACE # undef sigismember # endif # else _GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig)); _GL_CXXALIASWARN (sigismember); /* Initialize a signal set to the empty set. */ # if @HAVE_POSIX_SIGNALBLOCKING@ /* This function is defined as a macro on Mac OS X. */ # if defined __cplusplus && defined GNULIB_NAMESPACE # undef sigemptyset # endif # else _GL_FUNCDECL_SYS (sigemptyset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigemptyset, int, (sigset_t *set)); _GL_CXXALIASWARN (sigemptyset); /* Add a signal to a signal set. */ # if @HAVE_POSIX_SIGNALBLOCKING@ /* This function is defined as a macro on Mac OS X. */ # if defined __cplusplus && defined GNULIB_NAMESPACE # undef sigaddset # endif # else _GL_FUNCDECL_SYS (sigaddset, int, (sigset_t *set, int sig) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigaddset, int, (sigset_t *set, int sig)); _GL_CXXALIASWARN (sigaddset); /* Remove a signal from a signal set. */ # if @HAVE_POSIX_SIGNALBLOCKING@ /* This function is defined as a macro on Mac OS X. */ # if defined __cplusplus && defined GNULIB_NAMESPACE # undef sigdelset # endif # else _GL_FUNCDECL_SYS (sigdelset, int, (sigset_t *set, int sig) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigdelset, int, (sigset_t *set, int sig)); _GL_CXXALIASWARN (sigdelset); /* Fill a signal set with all possible signals. */ # if @HAVE_POSIX_SIGNALBLOCKING@ /* This function is defined as a macro on Mac OS X. */ # if defined __cplusplus && defined GNULIB_NAMESPACE # undef sigfillset # endif # else _GL_FUNCDECL_SYS (sigfillset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigfillset, int, (sigset_t *set)); _GL_CXXALIASWARN (sigfillset); /* Return the set of those blocked signals that are pending. */ # if !@HAVE_POSIX_SIGNALBLOCKING@ _GL_FUNCDECL_SYS (sigpending, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (sigpending, int, (sigset_t *set)); _GL_CXXALIASWARN (sigpending); /* If OLD_SET is not NULL, put the current set of blocked signals in *OLD_SET. Then, if SET is not NULL, affect the current set of blocked signals by combining it with *SET as indicated in OPERATION. In this implementation, you are not allowed to change a signal handler while the signal is blocked. */ # if !@HAVE_POSIX_SIGNALBLOCKING@ # define SIG_BLOCK 0 /* blocked_set = blocked_set | *set; */ # define SIG_SETMASK 1 /* blocked_set = *set; */ # define SIG_UNBLOCK 2 /* blocked_set = blocked_set & ~*set; */ _GL_FUNCDECL_SYS (sigprocmask, int, (int operation, const sigset_t *restrict set, sigset_t *restrict old_set)); # endif _GL_CXXALIAS_SYS (sigprocmask, int, (int operation, const sigset_t *restrict set, sigset_t *restrict old_set)); _GL_CXXALIASWARN (sigprocmask); /* Install the handler FUNC for signal SIG, and return the previous handler. */ # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_function_taking_int_returning_void_t typedef void (*_gl_function_taking_int_returning_void_t) (int); # define GNULIB_defined_function_taking_int_returning_void_t 1 # endif # ifdef __cplusplus } # endif # if !@HAVE_POSIX_SIGNALBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define signal rpl_signal # endif _GL_FUNCDECL_RPL (signal, _gl_function_taking_int_returning_void_t, (int sig, _gl_function_taking_int_returning_void_t func)); _GL_CXXALIAS_RPL (signal, _gl_function_taking_int_returning_void_t, (int sig, _gl_function_taking_int_returning_void_t func)); # else /* On OpenBSD, the declaration of 'signal' may not be present at this point, because it occurs in , not directly. */ # if defined __OpenBSD__ _GL_FUNCDECL_SYS (signal, _gl_function_taking_int_returning_void_t, (int sig, _gl_function_taking_int_returning_void_t func)); # endif _GL_CXXALIAS_SYS (signal, _gl_function_taking_int_returning_void_t, (int sig, _gl_function_taking_int_returning_void_t func)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (signal); # endif # if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE /* Raise signal SIGPIPE. */ _GL_EXTERN_C int _gl_raise_SIGPIPE (void); # endif #elif defined GNULIB_POSIXCHECK # undef sigaddset # if HAVE_RAW_DECL_SIGADDSET _GL_WARN_ON_USE (sigaddset, "sigaddset is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigdelset # if HAVE_RAW_DECL_SIGDELSET _GL_WARN_ON_USE (sigdelset, "sigdelset is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigemptyset # if HAVE_RAW_DECL_SIGEMPTYSET _GL_WARN_ON_USE (sigemptyset, "sigemptyset is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigfillset # if HAVE_RAW_DECL_SIGFILLSET _GL_WARN_ON_USE (sigfillset, "sigfillset is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigismember # if HAVE_RAW_DECL_SIGISMEMBER _GL_WARN_ON_USE (sigismember, "sigismember is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigpending # if HAVE_RAW_DECL_SIGPENDING _GL_WARN_ON_USE (sigpending, "sigpending is unportable - " "use the gnulib module sigprocmask for portability"); # endif # undef sigprocmask # if HAVE_RAW_DECL_SIGPROCMASK _GL_WARN_ON_USE (sigprocmask, "sigprocmask is unportable - " "use the gnulib module sigprocmask for portability"); # endif #endif /* @GNULIB_SIGPROCMASK@ */ #if @GNULIB_SIGACTION@ # if !@HAVE_SIGACTION@ # if !@HAVE_SIGINFO_T@ # if !GNULIB_defined_siginfo_types /* Present to allow compilation, but unsupported by gnulib. */ union sigval { int sival_int; void *sival_ptr; }; /* Present to allow compilation, but unsupported by gnulib. */ struct siginfo_t { int si_signo; int si_code; int si_errno; pid_t si_pid; uid_t si_uid; void *si_addr; int si_status; long si_band; union sigval si_value; }; typedef struct siginfo_t siginfo_t; # define GNULIB_defined_siginfo_types 1 # endif # endif /* !@HAVE_SIGINFO_T@ */ /* We assume that platforms which lack the sigaction() function also lack the 'struct sigaction' type, and vice versa. */ # if !GNULIB_defined_struct_sigaction struct sigaction { union { void (*_sa_handler) (int); /* Present to allow compilation, but unsupported by gnulib. POSIX says that implementations may, but not must, make sa_sigaction overlap with sa_handler, but we know of no implementation where they do not overlap. */ void (*_sa_sigaction) (int, siginfo_t *, void *); } _sa_func; sigset_t sa_mask; /* Not all POSIX flags are supported. */ int sa_flags; }; # define sa_handler _sa_func._sa_handler # define sa_sigaction _sa_func._sa_sigaction /* Unsupported flags are not present. */ # define SA_RESETHAND 1 # define SA_NODEFER 2 # define SA_RESTART 4 # define GNULIB_defined_struct_sigaction 1 # endif _GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, struct sigaction *restrict)); # elif !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ # define sa_sigaction sa_handler # endif /* !@HAVE_SIGACTION@, !@HAVE_STRUCT_SIGACTION_SA_SIGACTION@ */ _GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict, struct sigaction *restrict)); _GL_CXXALIASWARN (sigaction); #elif defined GNULIB_POSIXCHECK # undef sigaction # if HAVE_RAW_DECL_SIGACTION _GL_WARN_ON_USE (sigaction, "sigaction is unportable - " "use the gnulib module sigaction for portability"); # endif #endif /* Some systems don't have SA_NODEFER. */ #ifndef SA_NODEFER # define SA_NODEFER 0 #endif #endif /* _@GUARD_PREFIX@_SIGNAL_H */ #endif /* _@GUARD_PREFIX@_SIGNAL_H */ #endif shishi-1.0.3/lib/gl/careadlinkat.c0000644000000000000000000001325314273615121013635 00000000000000/* Read symbolic links into a buffer without size limitation, relative to fd. Copyright (C) 2001, 2003-2004, 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ #include #include "careadlinkat.h" #include "idx.h" #include "minmax.h" #include #include #include #include /* Define this independently so that stdint.h is not a prerequisite. */ #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) #endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif #include "allocator.h" enum { STACK_BUF_SIZE = 1024 }; /* Act like careadlinkat (see below), with an additional argument STACK_BUF that can be used as temporary storage. If GCC_LINT is defined, do not inline this function with GCC 10.1 and later, to avoid creating a pointer to the stack that GCC -Wreturn-local-addr incorrectly complains about. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644 Although the noinline attribute can hurt performance a bit, no better way to pacify GCC is known; even an explicit #pragma does not pacify GCC. When the GCC bug is fixed this workaround should be limited to the broken GCC versions. */ #if _GL_GNUC_PREREQ (10, 1) # if defined GCC_LINT || defined lint __attribute__ ((__noinline__)) # elif __OPTIMIZE__ && !__NO_INLINE__ # define GCC_BOGUS_WRETURN_LOCAL_ADDR # endif #endif static char * readlink_stk (int fd, char const *filename, char *buffer, size_t buffer_size, struct allocator const *alloc, ssize_t (*preadlinkat) (int, char const *, char *, size_t), char stack_buf[STACK_BUF_SIZE]) { if (! alloc) alloc = &stdlib_allocator; if (!buffer) { buffer = stack_buf; buffer_size = STACK_BUF_SIZE; } char *buf = buffer; idx_t buf_size_max = MIN (IDX_MAX, MIN (SSIZE_MAX, SIZE_MAX)); idx_t buf_size = MIN (buffer_size, buf_size_max); while (buf) { /* Attempt to read the link into the current buffer. */ idx_t link_length = preadlinkat (fd, filename, buf, buf_size); if (link_length < 0) { if (buf != buffer) { int readlinkat_errno = errno; alloc->free (buf); errno = readlinkat_errno; } return NULL; } idx_t link_size = link_length; if (link_size < buf_size) { buf[link_size++] = '\0'; if (buf == stack_buf) { char *b = alloc->allocate (link_size); buf_size = link_size; if (! b) break; return memcpy (b, buf, link_size); } if (link_size < buf_size && buf != buffer && alloc->reallocate) { /* Shrink BUF before returning it. */ char *b = alloc->reallocate (buf, link_size); if (b) return b; } return buf; } if (buf != buffer) alloc->free (buf); if (buf_size_max / 2 <= buf_size) { errno = ENAMETOOLONG; return NULL; } buf_size = 2 * buf_size + 1; buf = alloc->allocate (buf_size); } if (alloc->die) alloc->die (buf_size); errno = ENOMEM; return NULL; } /* Assuming the current directory is FD, get the symbolic link value of FILENAME as a null-terminated string and put it into a buffer. If FD is AT_FDCWD, FILENAME is interpreted relative to the current working directory, as in openat. If the link is small enough to fit into BUFFER put it there. BUFFER's size is BUFFER_SIZE, and BUFFER can be null if BUFFER_SIZE is zero. If the link is not small, put it into a dynamically allocated buffer managed by ALLOC. It is the caller's responsibility to free the returned value if it is nonnull and is not BUFFER. A null ALLOC stands for the standard allocator. The PREADLINKAT function specifies how to read links. It operates like POSIX readlinkat() but can assume that its first argument is the same as FD. If successful, return the buffer address; otherwise return NULL and set errno. */ char * careadlinkat (int fd, char const *filename, char *buffer, size_t buffer_size, struct allocator const *alloc, ssize_t (*preadlinkat) (int, char const *, char *, size_t)) { /* Allocate the initial buffer on the stack. This way, in the common case of a symlink of small size, we get away with a single small malloc instead of a big malloc followed by a shrinking realloc. */ #ifdef GCC_BOGUS_WRETURN_LOCAL_ADDR #warning "GCC might issue a bogus -Wreturn-local-addr warning here." #warning "See ." #endif char stack_buf[STACK_BUF_SIZE]; return readlink_stk (fd, filename, buffer, buffer_size, alloc, preadlinkat, stack_buf); } shishi-1.0.3/lib/gl/stdio.in.h0000644000000000000000000017227214273615123012760 00000000000000/* A GNU-like . Copyright (C) 2004, 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H /* Special invocation convention: - Inside glibc header files. - On OSF/1 5.1 we have a sequence of nested includes -> -> -> -> -> -> -> . In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STDIO_H #define _GL_ALREADY_INCLUDING_STDIO_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ #undef _GL_ALREADY_INCLUDING_STDIO_H #ifndef _@GUARD_PREFIX@_STDIO_H #define _@GUARD_PREFIX@_STDIO_H /* Get va_list. Needed on many systems, including glibc 2.8. */ #include #include /* Get off_t and ssize_t. Needed on many systems, including glibc 2.8 and eglibc 2.11.2. May also define off_t to a 64-bit type on native Windows. */ #include /* Solaris 10 and NetBSD 7.0 declare renameat in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || defined __NetBSD__) \ && ! defined __GLIBC__ # include #endif /* Android 4.3 declares renameat in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ && ! defined __GLIBC__ # include #endif /* MSVC declares 'perror' in , not in . We must include it before we #define perror rpl_perror. */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) \ && ! defined __GLIBC__ # include #endif /* MSVC declares 'remove' in , not in . We must include it before we #define remove rpl_remove. */ /* MSVC declares 'rename' in , not in . We must include it before we #define rename rpl_rename. */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) \ && ! defined __GLIBC__ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The __-protected variants of the attributes 'format' and 'printf' are accepted by gcc versions 2.6.4 (effectively 2.7) and later. We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because gnulib and libintl do '#define printf __printf__' when they override the 'printf' function. */ #ifndef _GL_ATTRIBUTE_FORMAT # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || defined __clang__ # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) # else # define _GL_ATTRIBUTE_FORMAT(spec) /* empty */ # endif #endif /* An __attribute__ __format__ specifier for a function that takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD */ /* __gnu_printf__ is supported in GCC >= 4.4. */ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) # define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __gnu_printf__ #else # define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __printf__ #endif /* An __attribute__ __format__ specifier for a function that takes a format string and arguments, where the format string directives are the ones of the system printf(), rather than the ones standardized by ISO C99 and POSIX. _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM */ /* On mingw, Gnulib sets __USE_MINGW_ANSI_STDIO in order to get closer to the standards. The macro GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU indicates whether this change is effective. On older mingw, it is not. */ #if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU # define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD #else # define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM __printf__ #endif /* _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD indicates to GCC that the function takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, formatstring_parameter, first_argument)) /* _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD, except that it indicates to GCC that the supported format string directives are the ones of the system printf(), rather than the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, formatstring_parameter, first_argument)) /* _GL_ATTRIBUTE_FORMAT_SCANF indicates to GCC that the function takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. */ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__gnu_scanf__, formatstring_parameter, first_argument)) #else # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) #endif /* _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_SCANF, except that it indicates to GCC that the supported format string directives are the ones of the system scanf(), rather than the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Macros for stringification. */ #define _GL_STDIO_STRINGIZE(token) #token #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) /* When also using extern inline, suppress the use of static inline in standard headers of problematic Apple configurations, as Libc at least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., . Perhaps Apple will fix this some day. */ #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ && defined __GNUC__ && defined __STDC__) # undef putc_unlocked #endif #if @GNULIB_DPRINTF@ # if @REPLACE_DPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dprintf rpl_dprintf # endif _GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *restrict format, ...)); # else # if !@HAVE_DPRINTF@ _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...)); # endif _GL_CXXALIASWARN (dprintf); #elif defined GNULIB_POSIXCHECK # undef dprintf # if HAVE_RAW_DECL_DPRINTF _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " "use gnulib module dprintf for portability"); # endif #endif #if @GNULIB_FCLOSE@ /* Close STREAM and its underlying file descriptor. */ # if @REPLACE_FCLOSE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fclose rpl_fclose # endif _GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fclose); # endif #elif defined GNULIB_POSIXCHECK # undef fclose /* Assume fclose is always declared. */ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " "use gnulib module fclose for portable POSIX compliance"); #endif #if @GNULIB_MDA_FCLOSEALL@ /* On native Windows, map 'fcloseall' to '_fcloseall', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fcloseall on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcloseall # define fcloseall _fcloseall # endif _GL_CXXALIAS_MDA (fcloseall, int, (void)); # else # if @HAVE_DECL_FCLOSEALL@ # if defined __FreeBSD__ || defined __DragonFly__ _GL_CXXALIAS_SYS (fcloseall, void, (void)); # else _GL_CXXALIAS_SYS (fcloseall, int, (void)); # endif # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCLOSEALL@ _GL_CXXALIASWARN (fcloseall); # endif #endif #if @GNULIB_FDOPEN@ # if @REPLACE_FDOPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen rpl_fdopen # endif _GL_FUNCDECL_RPL (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen _fdopen # endif _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); # endif _GL_CXXALIASWARN (fdopen); #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fdopen /* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef fdopen /* Assume fdopen is always declared. */ _GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " "use gnulib module fdopen for portability"); # elif @GNULIB_MDA_FDOPEN@ /* On native Windows, map 'fdopen' to '_fdopen', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fdopen always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen _fdopen # endif _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); # else _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); # endif _GL_CXXALIASWARN (fdopen); # endif #endif #if @GNULIB_FFLUSH@ /* Flush all pending data on STREAM according to POSIX rules. Both output and seekable input streams are supported. Note! LOSS OF DATA can occur if fflush is applied on an input stream that is _not_seekable_ or on an update stream that is _not_seekable_ and in which the most recent operation was input. Seekability can be tested with lseek(fileno(fp),0,SEEK_CUR). */ # if @REPLACE_FFLUSH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fflush rpl_fflush # endif _GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); _GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); # else _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fflush); # endif #elif defined GNULIB_POSIXCHECK # undef fflush /* Assume fflush is always declared. */ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " "use gnulib module fflush for portable POSIX compliance"); #endif #if @GNULIB_FGETC@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fgetc # define fgetc rpl_fgetc # endif _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fgetc); # endif #endif #if @GNULIB_FGETS@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fgets # define fgets rpl_fgets # endif _GL_FUNCDECL_RPL (fgets, char *, (char *restrict s, int n, FILE *restrict stream) _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (fgets, char *, (char *restrict s, int n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fgets, char *, (char *restrict s, int n, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fgets); # endif #endif #if @GNULIB_MDA_FILENO@ /* On native Windows, map 'fileno' to '_fileno', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fileno always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fileno # define fileno _fileno # endif _GL_CXXALIAS_MDA (fileno, int, (FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fileno, int, (FILE *restrict stream)); # endif _GL_CXXALIASWARN (fileno); #endif #if @GNULIB_FOPEN@ # if (@GNULIB_FOPEN@ && @REPLACE_FOPEN@) \ || (@GNULIB_FOPEN_GNU@ && @REPLACE_FOPEN_FOR_FOPEN_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fopen # define fopen rpl_fopen # endif _GL_FUNCDECL_RPL (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (fopen, FILE *, (const char *restrict filename, const char *restrict mode)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fopen); # endif #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fopen /* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef fopen /* Assume fopen is always declared. */ _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " "use gnulib module fopen for portability"); # endif #endif #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ # if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fprintf rpl_fprintf # endif # define GNULIB_overrides_fprintf 1 # if @GNULIB_FPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # else _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fprintf); # endif #endif #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_fprintf # undef fprintf # endif /* Assume fprintf is always declared. */ _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " "use gnulib module fprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_FPURGE@ /* Discard all pending buffered I/O data on STREAM. STREAM must not be wide-character oriented. When discarding pending output, the file position is set back to where it was before the write calls. When discarding pending input, the file position is advanced to match the end of the previously read input. Return 0 if successful. Upon error, return -1 and set errno. */ # if @REPLACE_FPURGE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fpurge rpl_fpurge # endif _GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); # else # if !@HAVE_DECL_FPURGE@ _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); # endif _GL_CXXALIASWARN (fpurge); #elif defined GNULIB_POSIXCHECK # undef fpurge # if HAVE_RAW_DECL_FPURGE _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " "use gnulib module fpurge for portability"); # endif #endif #if @GNULIB_FPUTC@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fputc # define fputc rpl_fputc # endif _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); # else _GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fputc); # endif #endif #if @GNULIB_FPUTS@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fputs # define fputs rpl_fputs # endif _GL_FUNCDECL_RPL (fputs, int, (const char *restrict string, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (fputs, int, (const char *restrict string, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fputs, int, (const char *restrict string, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fputs); # endif #endif #if @GNULIB_FREAD@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fread # define fread rpl_fread # endif _GL_FUNCDECL_RPL (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream) _GL_ARG_NONNULL ((4))); _GL_CXXALIAS_RPL (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fread); # endif #endif #if @GNULIB_FREOPEN@ # if @REPLACE_FREOPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef freopen # define freopen rpl_freopen # endif _GL_FUNCDECL_RPL (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (freopen); # endif #elif defined GNULIB_POSIXCHECK # undef freopen /* Assume freopen is always declared. */ _GL_WARN_ON_USE (freopen, "freopen on native Windows platforms is not POSIX compliant - " "use gnulib module freopen for portability"); #endif #if @GNULIB_FSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fscanf # define fscanf rpl_fscanf # endif _GL_FUNCDECL_RPL (fscanf, int, (FILE *restrict stream, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (fscanf, int, (FILE *restrict stream, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (fscanf, int, (FILE *restrict stream, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fscanf); # endif #endif /* Set up the following warnings, based on which modules are in use. GNU Coding Standards discourage the use of fseek, since it imposes an arbitrary limitation on some 32-bit hosts. Remember that the fseek module depends on the fseeko module, so we only have three cases to consider: 1. The developer is not using either module. Issue a warning under GNULIB_POSIXCHECK for both functions, to remind them that both functions have bugs on some systems. _GL_NO_LARGE_FILES has no impact on this warning. 2. The developer is using both modules. They may be unaware of the arbitrary limitations of fseek, so issue a warning under GNULIB_POSIXCHECK. On the other hand, they may be using both modules intentionally, so the developer can define _GL_NO_LARGE_FILES in the compilation units where the use of fseek is safe, to silence the warning. 3. The developer is using the fseeko module, but not fseek. Gnulib guarantees that fseek will still work around platform bugs in that case, but we presume that the developer is aware of the pitfalls of fseek and was trying to avoid it, so issue a warning even when GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be defined to silence the warning in particular compilation units. In C++ compilations with GNULIB_NAMESPACE, in order to avoid that fseek gets defined as a macro, it is recommended that the developer uses the fseek module, even if he is not calling the fseek function. Most gnulib clients that perform stream operations should fall into category 3. */ #if @GNULIB_FSEEK@ # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES # define _GL_FSEEK_WARN /* Category 2, above. */ # undef fseek # endif # if @REPLACE_FSEEK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fseek # define fseek rpl_fseek # endif _GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); # else _GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fseek); # endif #endif #if @GNULIB_FSEEKO@ # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES # define _GL_FSEEK_WARN /* Category 3, above. */ # undef fseek # endif # if @REPLACE_FSEEKO@ /* Provide an fseeko function that is aware of a preceding fflush(), and which detects pipes. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fseeko # define fseeko rpl_fseeko # endif _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); # else # if ! @HAVE_DECL_FSEEKO@ _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); # endif _GL_CXXALIASWARN (fseeko); #elif defined GNULIB_POSIXCHECK # define _GL_FSEEK_WARN /* Category 1, above. */ # undef fseek # undef fseeko # if HAVE_RAW_DECL_FSEEKO _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " "use gnulib module fseeko for portability"); # endif #endif #ifdef _GL_FSEEK_WARN # undef _GL_FSEEK_WARN /* Here, either fseek is undefined (but C89 guarantees that it is declared), or it is defined as rpl_fseek (declared above). */ _GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " "on 32-bit platforms - " "use fseeko function for handling of large files"); #endif /* ftell, ftello. See the comments on fseek/fseeko. */ #if @GNULIB_FTELL@ # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES # define _GL_FTELL_WARN /* Category 2, above. */ # undef ftell # endif # if @REPLACE_FTELL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftell # define ftell rpl_ftell # endif _GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); # else _GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (ftell); # endif #endif #if @GNULIB_FTELLO@ # if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES # define _GL_FTELL_WARN /* Category 3, above. */ # undef ftell # endif # if @REPLACE_FTELLO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftello # define ftello rpl_ftello # endif _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); # else # if ! @HAVE_DECL_FTELLO@ _GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); # endif _GL_CXXALIASWARN (ftello); #elif defined GNULIB_POSIXCHECK # define _GL_FTELL_WARN /* Category 1, above. */ # undef ftell # undef ftello # if HAVE_RAW_DECL_FTELLO _GL_WARN_ON_USE (ftello, "ftello is unportable - " "use gnulib module ftello for portability"); # endif #endif #ifdef _GL_FTELL_WARN # undef _GL_FTELL_WARN /* Here, either ftell is undefined (but C89 guarantees that it is declared), or it is defined as rpl_ftell (declared above). */ _GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " "on 32-bit platforms - " "use ftello function for handling of large files"); #endif #if @GNULIB_FWRITE@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fwrite # define fwrite rpl_fwrite # endif _GL_FUNCDECL_RPL (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream) _GL_ARG_NONNULL ((1, 4))); _GL_CXXALIAS_RPL (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 , which sometimes causes an unwanted diagnostic for fwrite calls. This affects only function declaration attributes under certain versions of gcc and clang, and is not needed for C++. */ # if (0 < __USE_FORTIFY_LEVEL \ && __GLIBC__ == 2 && 4 <= __GLIBC_MINOR__ && __GLIBC_MINOR__ <= 15 \ && 3 < __GNUC__ + (4 <= __GNUC_MINOR__) \ && !defined __cplusplus) # undef fwrite # undef fwrite_unlocked extern size_t __REDIRECT (rpl_fwrite, (const void *__restrict, size_t, size_t, FILE *__restrict), fwrite); extern size_t __REDIRECT (rpl_fwrite_unlocked, (const void *__restrict, size_t, size_t, FILE *__restrict), fwrite_unlocked); # define fwrite rpl_fwrite # define fwrite_unlocked rpl_fwrite_unlocked # endif # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fwrite); # endif #endif #if @GNULIB_GETC@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getc # define getc rpl_fgetc # endif _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (getc); # endif #endif #if @GNULIB_GETCHAR@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getchar # define getchar rpl_getchar # endif _GL_FUNCDECL_RPL (getchar, int, (void)); _GL_CXXALIAS_RPL (getchar, int, (void)); # else _GL_CXXALIAS_SYS (getchar, int, (void)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (getchar); # endif #endif #if @GNULIB_GETDELIM@ /* Read input, up to (and including) the next occurrence of DELIMITER, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ # if @REPLACE_GETDELIM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdelim # define getdelim rpl_getdelim # endif _GL_FUNCDECL_RPL (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 4))); _GL_CXXALIAS_RPL (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream)); # else # if !@HAVE_DECL_GETDELIM@ _GL_FUNCDECL_SYS (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 4))); # endif _GL_CXXALIAS_SYS (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream)); # endif _GL_CXXALIASWARN (getdelim); #elif defined GNULIB_POSIXCHECK # undef getdelim # if HAVE_RAW_DECL_GETDELIM _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " "use gnulib module getdelim for portability"); # endif #endif #if @GNULIB_GETLINE@ /* Read a line, up to (and including) the next newline, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ # if @REPLACE_GETLINE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getline # define getline rpl_getline # endif _GL_FUNCDECL_RPL (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 3))); _GL_CXXALIAS_RPL (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream)); # else # if !@HAVE_DECL_GETLINE@ _GL_FUNCDECL_SYS (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream)); # endif # if @HAVE_DECL_GETLINE@ _GL_CXXALIASWARN (getline); # endif #elif defined GNULIB_POSIXCHECK # undef getline # if HAVE_RAW_DECL_GETLINE _GL_WARN_ON_USE (getline, "getline is unportable - " "use gnulib module getline for portability"); # endif #endif /* It is very rare that the developer ever has full control of stdin, so any use of gets warrants an unconditional warning; besides, C11 removed it. */ #undef gets #if HAVE_RAW_DECL_GETS && !defined __cplusplus _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); #endif #if @GNULIB_MDA_GETW@ /* On native Windows, map 'getw' to '_getw', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getw always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getw # define getw _getw # endif _GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream)); # else _GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream)); # endif _GL_CXXALIASWARN (getw); #endif #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ struct obstack; /* Grow an obstack with formatted output. Return the number of bytes added to OBS. No trailing nul byte is added, and the object should be closed with obstack_finish before use. Upon memory allocation error, call obstack_alloc_failed_handler. Upon other error, return -1. */ # if @REPLACE_OBSTACK_PRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define obstack_printf rpl_obstack_printf # endif _GL_FUNCDECL_RPL (obstack_printf, int, (struct obstack *obs, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (obstack_printf, int, (struct obstack *obs, const char *format, ...)); # else # if !@HAVE_DECL_OBSTACK_PRINTF@ _GL_FUNCDECL_SYS (obstack_printf, int, (struct obstack *obs, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (obstack_printf, int, (struct obstack *obs, const char *format, ...)); # endif _GL_CXXALIASWARN (obstack_printf); # if @REPLACE_OBSTACK_PRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define obstack_vprintf rpl_obstack_vprintf # endif _GL_FUNCDECL_RPL (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args)); # else # if !@HAVE_DECL_OBSTACK_PRINTF@ _GL_FUNCDECL_SYS (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args)); # endif _GL_CXXALIASWARN (obstack_vprintf); #endif #if @GNULIB_PCLOSE@ # if !@HAVE_PCLOSE@ _GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); _GL_CXXALIASWARN (pclose); #elif defined GNULIB_POSIXCHECK # undef pclose # if HAVE_RAW_DECL_PCLOSE _GL_WARN_ON_USE (pclose, "pclose is unportable - " "use gnulib module pclose for more portability"); # endif #endif #if @GNULIB_PERROR@ /* Print a message to standard error, describing the value of ERRNO, (if STRING is not NULL and not empty) prefixed with STRING and ": ", and terminated with a newline. */ # if @REPLACE_PERROR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define perror rpl_perror # endif _GL_FUNCDECL_RPL (perror, void, (const char *string)); _GL_CXXALIAS_RPL (perror, void, (const char *string)); # else _GL_CXXALIAS_SYS (perror, void, (const char *string)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (perror); # endif #elif defined GNULIB_POSIXCHECK # undef perror /* Assume perror is always declared. */ _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " "use gnulib module perror for portability"); #endif #if @GNULIB_POPEN@ # if @REPLACE_POPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef popen # define popen rpl_popen # endif _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); # else # if !@HAVE_POPEN@ || __GNUC__ >= 11 _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); # endif _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); # endif _GL_CXXALIASWARN (popen); #else # if @GNULIB_PCLOSE@ && __GNUC__ >= 11 && !defined popen /* For -Wmismatched-dealloc: Associate popen with pclose or rpl_pclose. */ _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef popen # if HAVE_RAW_DECL_POPEN _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " "use gnulib module popen or pipe for more portability"); # endif # endif #endif #if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if defined __GNUC__ || defined __clang__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) /* Don't break __attribute__((format(printf,M,N))). */ # define printf __printf__ # endif # if @GNULIB_PRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL_1 (__printf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2) _GL_ARG_NONNULL ((1))); # else _GL_FUNCDECL_RPL_1 (__printf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); # else # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define printf rpl_printf # endif _GL_FUNCDECL_RPL (printf, int, (const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (printf, int, (const char *restrict format, ...)); # endif # define GNULIB_overrides_printf 1 # else _GL_CXXALIAS_SYS (printf, int, (const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (printf); # endif #endif #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_printf # undef printf # endif /* Assume printf is always declared. */ _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " "use gnulib module printf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_PUTC@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putc # define putc rpl_fputc # endif _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); # else _GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (putc); # endif #endif #if @GNULIB_PUTCHAR@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putchar # define putchar rpl_putchar # endif _GL_FUNCDECL_RPL (putchar, int, (int c)); _GL_CXXALIAS_RPL (putchar, int, (int c)); # else _GL_CXXALIAS_SYS (putchar, int, (int c)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (putchar); # endif #endif #if @GNULIB_PUTS@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef puts # define puts rpl_puts # endif _GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (puts, int, (const char *string)); # else _GL_CXXALIAS_SYS (puts, int, (const char *string)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (puts); # endif #endif #if @GNULIB_MDA_PUTW@ /* On native Windows, map 'putw' to '_putw', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::putw always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putw # define putw _putw # endif _GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream)); # endif _GL_CXXALIASWARN (putw); #endif #if @GNULIB_REMOVE@ # if @REPLACE_REMOVE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef remove # define remove rpl_remove # endif _GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (remove, int, (const char *name)); # else _GL_CXXALIAS_SYS (remove, int, (const char *name)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (remove); # endif #elif defined GNULIB_POSIXCHECK # undef remove /* Assume remove is always declared. */ _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " "use gnulib module remove for more portability"); #endif #if @GNULIB_RENAME@ # if @REPLACE_RENAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rename # define rename rpl_rename # endif _GL_FUNCDECL_RPL (rename, int, (const char *old_filename, const char *new_filename) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (rename, int, (const char *old_filename, const char *new_filename)); # else _GL_CXXALIAS_SYS (rename, int, (const char *old_filename, const char *new_filename)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (rename); # endif #elif defined GNULIB_POSIXCHECK # undef rename /* Assume rename is always declared. */ _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " "use gnulib module rename for more portability"); #endif #if @GNULIB_RENAMEAT@ # if @REPLACE_RENAMEAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef renameat # define renameat rpl_renameat # endif _GL_FUNCDECL_RPL (renameat, int, (int fd1, char const *file1, int fd2, char const *file2) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (renameat, int, (int fd1, char const *file1, int fd2, char const *file2)); # else # if !@HAVE_RENAMEAT@ _GL_FUNCDECL_SYS (renameat, int, (int fd1, char const *file1, int fd2, char const *file2) _GL_ARG_NONNULL ((2, 4))); # endif _GL_CXXALIAS_SYS (renameat, int, (int fd1, char const *file1, int fd2, char const *file2)); # endif _GL_CXXALIASWARN (renameat); #elif defined GNULIB_POSIXCHECK # undef renameat # if HAVE_RAW_DECL_RENAMEAT _GL_WARN_ON_USE (renameat, "renameat is not portable - " "use gnulib module renameat for portability"); # endif #endif #if @GNULIB_SCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if defined __GNUC__ || defined __clang__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef scanf /* Don't break __attribute__((format(scanf,M,N))). */ # define scanf __scanf__ # endif _GL_FUNCDECL_RPL_1 (__scanf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_scanf)) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *restrict format, ...)); # else # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef scanf # define scanf rpl_scanf # endif _GL_FUNCDECL_RPL (scanf, int, (const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (scanf, int, (const char *restrict format, ...)); # endif # else _GL_CXXALIAS_SYS (scanf, int, (const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (scanf); # endif #endif #if @GNULIB_SNPRINTF@ # if @REPLACE_SNPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define snprintf rpl_snprintf # endif # define GNULIB_overrides_snprintf 1 _GL_FUNCDECL_RPL (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4) _GL_ARG_NONNULL ((3))); _GL_CXXALIAS_RPL (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...)); # else # if !@HAVE_DECL_SNPRINTF@ _GL_FUNCDECL_SYS (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4) _GL_ARG_NONNULL ((3))); # endif _GL_CXXALIAS_SYS (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (snprintf); # endif #elif defined GNULIB_POSIXCHECK # undef snprintf # if HAVE_RAW_DECL_SNPRINTF _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " "use gnulib module snprintf for portability"); # endif #endif /* Some people would argue that all sprintf uses should be warned about (for example, OpenBSD issues a link warning for it), since it can cause security holes due to buffer overruns. However, we believe that sprintf can be used safely, and is more efficient than snprintf in those safe cases; and as proof of our belief, we use sprintf in several gnulib modules. So this header intentionally avoids adding a warning to sprintf except when GNULIB_POSIXCHECK is defined. */ #if @GNULIB_SPRINTF_POSIX@ # if @REPLACE_SPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define sprintf rpl_sprintf # endif # define GNULIB_overrides_sprintf 1 _GL_FUNCDECL_RPL (sprintf, int, (char *restrict str, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (sprintf, int, (char *restrict str, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (sprintf, int, (char *restrict str, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (sprintf); # endif #elif defined GNULIB_POSIXCHECK # undef sprintf /* Assume sprintf is always declared. */ _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " "use gnulib module sprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_MDA_TEMPNAM@ /* On native Windows, map 'tempnam' to '_tempnam', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::tempnam always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tempnam # define tempnam _tempnam # endif _GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix)); # else _GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix)); # endif _GL_CXXALIASWARN (tempnam); #endif #if @GNULIB_TMPFILE@ # if @REPLACE_TMPFILE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define tmpfile rpl_tmpfile # endif _GL_FUNCDECL_RPL (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (tmpfile); # endif #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined tmpfile /* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef tmpfile # if HAVE_RAW_DECL_TMPFILE _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " "use gnulib module tmpfile for portability"); # endif # endif #endif #if @GNULIB_VASPRINTF@ /* Write formatted output to a string dynamically allocated with malloc(). If the memory allocation succeeds, store the address of the string in *RESULT and return the number of resulting bytes, excluding the trailing NUL. Upon memory allocation error, or some other error, return -1. */ # if @REPLACE_VASPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define asprintf rpl_asprintf # endif # define GNULIB_overrides_asprintf _GL_FUNCDECL_RPL (asprintf, int, (char **result, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (asprintf, int, (char **result, const char *format, ...)); # else # if !@HAVE_VASPRINTF@ _GL_FUNCDECL_SYS (asprintf, int, (char **result, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (asprintf, int, (char **result, const char *format, ...)); # endif _GL_CXXALIASWARN (asprintf); # if @REPLACE_VASPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vasprintf rpl_vasprintf # endif # define GNULIB_overrides_vasprintf 1 _GL_FUNCDECL_RPL (vasprintf, int, (char **result, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vasprintf, int, (char **result, const char *format, va_list args)); # else # if !@HAVE_VASPRINTF@ _GL_FUNCDECL_SYS (vasprintf, int, (char **result, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (vasprintf, int, (char **result, const char *format, va_list args)); # endif _GL_CXXALIASWARN (vasprintf); #endif #if @GNULIB_VDPRINTF@ # if @REPLACE_VDPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vdprintf rpl_vdprintf # endif _GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *restrict format, va_list args)); # else # if !@HAVE_VDPRINTF@ _GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((2))); # endif /* Need to cast, because on Solaris, the third parameter will likely be __va_list args. */ _GL_CXXALIAS_SYS_CAST (vdprintf, int, (int fd, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vdprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vdprintf # if HAVE_RAW_DECL_VDPRINTF _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " "use gnulib module vdprintf for portability"); # endif #endif #if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ # if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vfprintf rpl_vfprintf # endif # define GNULIB_overrides_vfprintf 1 # if @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # else _GL_FUNCDECL_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the third parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vfprintf); # endif #endif #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_vfprintf # undef vfprintf # endif /* Assume vfprintf is always declared. */ _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " "use gnulib module vfprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_VFSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef vfscanf # define vfscanf rpl_vfscanf # endif _GL_FUNCDECL_RPL (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args)); # else _GL_CXXALIAS_SYS (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vfscanf); # endif #endif #if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ # if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vprintf rpl_vprintf # endif # define GNULIB_overrides_vprintf 1 # if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 0) _GL_ARG_NONNULL ((1))); # else _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 0) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_RPL (vprintf, int, (const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the second parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vprintf); # endif #endif #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_vprintf # undef vprintf # endif /* Assume vprintf is always declared. */ _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " "use gnulib module vprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_VSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef vscanf # define vscanf rpl_vscanf # endif _GL_FUNCDECL_RPL (vscanf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 0) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (vscanf, int, (const char *restrict format, va_list args)); # else _GL_CXXALIAS_SYS (vscanf, int, (const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vscanf); # endif #endif #if @GNULIB_VSNPRINTF@ # if @REPLACE_VSNPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vsnprintf rpl_vsnprintf # endif # define GNULIB_overrides_vsnprintf 1 _GL_FUNCDECL_RPL (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3))); _GL_CXXALIAS_RPL (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args)); # else # if !@HAVE_DECL_VSNPRINTF@ _GL_FUNCDECL_SYS (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3))); # endif _GL_CXXALIAS_SYS (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vsnprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vsnprintf # if HAVE_RAW_DECL_VSNPRINTF _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " "use gnulib module vsnprintf for portability"); # endif #endif #if @GNULIB_VSPRINTF_POSIX@ # if @REPLACE_VSPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vsprintf rpl_vsprintf # endif # define GNULIB_overrides_vsprintf 1 _GL_FUNCDECL_RPL (vsprintf, int, (char *restrict str, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vsprintf, int, (char *restrict str, const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the third parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vsprintf, int, (char *restrict str, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vsprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vsprintf /* Assume vsprintf is always declared. */ _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " "use gnulib module vsprintf-posix for portable " "POSIX compliance"); #endif #endif /* _@GUARD_PREFIX@_STDIO_H */ #endif /* _@GUARD_PREFIX@_STDIO_H */ #endif shishi-1.0.3/lib/gl/asprintf.c0000644000000000000000000000214314273615121013035 00000000000000/* Formatted output to strings. Copyright (C) 1999, 2002, 2006-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #ifdef IN_LIBASPRINTF # include "vasprintf.h" #else # include #endif #include int asprintf (char **resultp, const char *format, ...) { va_list args; int result; va_start (args, format); result = vasprintf (resultp, format, args); va_end (args); return result; } shishi-1.0.3/lib/gl/md4.c0000644000000000000000000002114014273615123011673 00000000000000/* Functions to compute MD4 message digest of files or memory blocks. according to the definition of MD4 in RFC 1320 from April 1992. Copyright (C) 1995-1997, 1999-2003, 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Adapted by Simon Josefsson from gnulib md5.? and Libgcrypt cipher/md4.c . */ #include /* Specification. */ #include "md4.h" #include #include #include #include #include #ifdef WORDS_BIGENDIAN # define SWAP(n) bswap_32 (n) #else # define SWAP(n) (n) #endif /* This array contains the bytes used to pad the buffer to the next 64-byte boundary. (RFC 1320, 3.1: Step 1) */ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; /* Initialize structure containing state of computation. (RFC 1320, 3.3: Step 3) */ void md4_init_ctx (struct md4_ctx *ctx) { ctx->A = 0x67452301; ctx->B = 0xefcdab89; ctx->C = 0x98badcfe; ctx->D = 0x10325476; ctx->total[0] = ctx->total[1] = 0; ctx->buflen = 0; } /* Copy the 4 byte value from v into the memory location pointed to by *cp, If your architecture allows unaligned access this is equivalent to * (uint32_t *) cp = v */ static void set_uint32 (char *cp, uint32_t v) { memcpy (cp, &v, sizeof v); } /* Put result from CTX in first 16 bytes following RESBUF. The result must be in little endian byte order. */ void * md4_read_ctx (const struct md4_ctx *ctx, void *resbuf) { char *r = resbuf; set_uint32 (r + 0 * sizeof ctx->A, SWAP (ctx->A)); set_uint32 (r + 1 * sizeof ctx->B, SWAP (ctx->B)); set_uint32 (r + 2 * sizeof ctx->C, SWAP (ctx->C)); set_uint32 (r + 3 * sizeof ctx->D, SWAP (ctx->D)); return resbuf; } /* Process the remaining bytes in the internal buffer and the usual prolog according to the standard and write the result to RESBUF. */ void * md4_finish_ctx (struct md4_ctx *ctx, void *resbuf) { /* Take yet unprocessed bytes into account. */ uint32_t bytes = ctx->buflen; size_t pad; /* Now count remaining bytes. */ ctx->total[0] += bytes; if (ctx->total[0] < bytes) ++ctx->total[1]; pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes; memcpy (&((char*)ctx->buffer)[bytes], fillbuf, pad); /* Put the 64-bit file length in *bits* at the end of the buffer. */ ctx->buffer[(bytes + pad) / 4] = SWAP (ctx->total[0] << 3); ctx->buffer[(bytes + pad) / 4 + 1] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); /* Process last bytes. */ md4_process_block (ctx->buffer, bytes + pad + 8, ctx); return md4_read_ctx (ctx, resbuf); } /* Compute MD4 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ void * md4_buffer (const char *buffer, size_t len, void *resblock) { struct md4_ctx ctx; /* Initialize the computation context. */ md4_init_ctx (&ctx); /* Process whole buffer but last len % 64 bytes. */ md4_process_bytes (buffer, len, &ctx); /* Put result in desired memory area. */ return md4_finish_ctx (&ctx, resblock); } void md4_process_bytes (const void *buffer, size_t len, struct md4_ctx *ctx) { /* When we already have some bits in our internal buffer concatenate both inputs first. */ if (ctx->buflen != 0) { size_t left_over = ctx->buflen; size_t add = 128 - left_over > len ? len : 128 - left_over; memcpy (&((char*)ctx->buffer)[left_over], buffer, add); ctx->buflen += add; if (ctx->buflen > 64) { md4_process_block (ctx->buffer, ctx->buflen & ~63, ctx); ctx->buflen &= 63; /* The regions in the following copy operation cannot overlap. */ memcpy (ctx->buffer, &((char*)ctx->buffer)[(left_over + add) & ~63], ctx->buflen); } buffer = (const char *) buffer + add; len -= add; } /* Process available complete blocks. */ if (len >= 64) { #if !(_STRING_ARCH_unaligned || _STRING_INLINE_unaligned) # define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0) if (UNALIGNED_P (buffer)) while (len > 64) { md4_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); buffer = (const char *) buffer + 64; len -= 64; } else #endif { md4_process_block (buffer, len & ~63, ctx); buffer = (const char *) buffer + (len & ~63); len &= 63; } } /* Move remaining bytes in internal buffer. */ if (len > 0) { size_t left_over = ctx->buflen; memcpy (&((char*)ctx->buffer)[left_over], buffer, len); left_over += len; if (left_over >= 64) { md4_process_block (ctx->buffer, 64, ctx); left_over -= 64; memcpy (ctx->buffer, &ctx->buffer[16], left_over); } ctx->buflen = left_over; } } /* --- Code below is the primary difference between md5.c and md4.c --- */ /* MD4 round constants */ #define K1 0x5a827999 #define K2 0x6ed9eba1 /* Round functions. */ #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) #define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define rol(x, n) (((x) << (n)) | ((uint32_t) (x) >> (32 - (n)))) #define R1(a,b,c,d,k,s) a=rol(a+F(b,c,d)+x[k],s); #define R2(a,b,c,d,k,s) a=rol(a+G(b,c,d)+x[k]+K1,s); #define R3(a,b,c,d,k,s) a=rol(a+H(b,c,d)+x[k]+K2,s); /* Process LEN bytes of BUFFER, accumulating context into CTX. It is assumed that LEN % 64 == 0. */ void md4_process_block (const void *buffer, size_t len, struct md4_ctx *ctx) { const uint32_t *words = buffer; size_t nwords = len / sizeof (uint32_t); const uint32_t *endp = words + nwords; uint32_t x[16]; uint32_t A = ctx->A; uint32_t B = ctx->B; uint32_t C = ctx->C; uint32_t D = ctx->D; uint32_t lolen = len; /* First increment the byte count. RFC 1320 specifies the possible length of the file up to 2^64 bits. Here we only compute the number of bytes. Do a double word increment. */ ctx->total[0] += lolen; ctx->total[1] += (len >> 31 >> 1) + (ctx->total[0] < lolen); /* Process all bytes in the buffer with 64 bytes in each round of the loop. */ while (words < endp) { int t; for (t = 0; t < 16; t++) { x[t] = SWAP (*words); words++; } /* Round 1. */ R1 (A, B, C, D, 0, 3); R1 (D, A, B, C, 1, 7); R1 (C, D, A, B, 2, 11); R1 (B, C, D, A, 3, 19); R1 (A, B, C, D, 4, 3); R1 (D, A, B, C, 5, 7); R1 (C, D, A, B, 6, 11); R1 (B, C, D, A, 7, 19); R1 (A, B, C, D, 8, 3); R1 (D, A, B, C, 9, 7); R1 (C, D, A, B, 10, 11); R1 (B, C, D, A, 11, 19); R1 (A, B, C, D, 12, 3); R1 (D, A, B, C, 13, 7); R1 (C, D, A, B, 14, 11); R1 (B, C, D, A, 15, 19); /* Round 2. */ R2 (A, B, C, D, 0, 3); R2 (D, A, B, C, 4, 5); R2 (C, D, A, B, 8, 9); R2 (B, C, D, A, 12, 13); R2 (A, B, C, D, 1, 3); R2 (D, A, B, C, 5, 5); R2 (C, D, A, B, 9, 9); R2 (B, C, D, A, 13, 13); R2 (A, B, C, D, 2, 3); R2 (D, A, B, C, 6, 5); R2 (C, D, A, B, 10, 9); R2 (B, C, D, A, 14, 13); R2 (A, B, C, D, 3, 3); R2 (D, A, B, C, 7, 5); R2 (C, D, A, B, 11, 9); R2 (B, C, D, A, 15, 13); /* Round 3. */ R3 (A, B, C, D, 0, 3); R3 (D, A, B, C, 8, 9); R3 (C, D, A, B, 4, 11); R3 (B, C, D, A, 12, 15); R3 (A, B, C, D, 2, 3); R3 (D, A, B, C, 10, 9); R3 (C, D, A, B, 6, 11); R3 (B, C, D, A, 14, 15); R3 (A, B, C, D, 1, 3); R3 (D, A, B, C, 9, 9); R3 (C, D, A, B, 5, 11); R3 (B, C, D, A, 13, 15); R3 (A, B, C, D, 3, 3); R3 (D, A, B, C, 11, 9); R3 (C, D, A, B, 7, 11); R3 (B, C, D, A, 15, 15); A = ctx->A += A; B = ctx->B += B; C = ctx->C += C; D = ctx->D += D; } } shishi-1.0.3/lib/gl/md4.h0000644000000000000000000000616014273615123011705 00000000000000/* Declarations of functions and data types used for MD4 sum library functions. Copyright (C) 2000-2001, 2003, 2005, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef MD4_H # define MD4_H 1 # include # include # ifdef __cplusplus extern "C" { # endif # define MD4_DIGEST_SIZE 16 /* Structure to save state of computation between the single steps. */ struct md4_ctx { uint32_t A; uint32_t B; uint32_t C; uint32_t D; uint32_t total[2]; uint32_t buflen; uint32_t buffer[32]; }; /* Initialize structure containing state of computation. */ extern void md4_init_ctx (struct md4_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is necessary that LEN is a multiple of 64!!! */ extern void md4_process_block (const void *buffer, size_t len, struct md4_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is NOT required that LEN is a multiple of 64. */ extern void md4_process_bytes (const void *buffer, size_t len, struct md4_ctx *ctx); /* Process the remaining bytes in the buffer and put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *md4_finish_ctx (struct md4_ctx *ctx, void *restrict resbuf); /* Put result from CTX in first 16 bytes following RESBUF. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *md4_read_ctx (const struct md4_ctx *ctx, void *restrict resbuf); /* Compute MD4 message digest for LEN bytes beginning at BUFFER. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest. */ extern void *md4_buffer (const char *buffer, size_t len, void *restrict resblock); /* Compute MD4 message digest for bytes read from STREAM. The resulting message digest number will be written into the 16 bytes beginning at RESBLOCK. */ extern int md4_stream (FILE * stream, void *resblock); # ifdef __cplusplus } # endif #endif shishi-1.0.3/lib/gl/explicit_bzero.c0000644000000000000000000000474414273615121014242 00000000000000/* Erasure of sensitive data, generic implementation. Copyright (C) 2016-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ /* An assembler implementation of explicit_bzero can be created as an assembler alias of an optimized bzero implementation. Architecture-specific implementations also need to define __explicit_bzero_chk. */ #if !_LIBC # include #endif /* memset_s need this define */ #if HAVE_MEMSET_S # define __STDC_WANT_LIB_EXT1__ 1 #endif #include #if defined _WIN32 && !defined __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include #endif #if _LIBC /* glibc-internal users use __explicit_bzero_chk, and explicit_bzero redirects to that. */ # undef explicit_bzero #endif /* Set LEN bytes of S to 0. The compiler will not delete a call to this function, even if S is dead after the call. */ void explicit_bzero (void *s, size_t len) { #if defined _WIN32 && !defined __CYGWIN__ (void) SecureZeroMemory (s, len); #elif HAVE_EXPLICIT_MEMSET explicit_memset (s, '\0', len); #elif HAVE_MEMSET_S (void) memset_s (s, len, '\0', len); #elif defined __GNUC__ && !defined __clang__ memset (s, '\0', len); /* Compiler barrier. */ asm volatile ("" ::: "memory"); #elif defined __clang__ memset (s, '\0', len); /* Compiler barrier. */ /* With asm ("" ::: "memory") LLVM analyzes uses of 's' and finds that the whole thing is dead and eliminates it. Use 'g' to work around this problem. See . */ __asm__ volatile ("" : : "g"(s) : "memory"); #else /* Invoke memset through a volatile function pointer. This defeats compiler optimizations. */ void * (* const volatile volatile_memset) (void *, int, size_t) = memset; (void) volatile_memset (s, '\0', len); #endif } shishi-1.0.3/lib/gl/printf-parse.c0000644000000000000000000005247314273615123013636 00000000000000/* Formatted output to strings. Copyright (C) 1999-2000, 2002-2003, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* This file can be parametrized with the following macros: CHAR_T The element type of the format string. CHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. DIRECTIVE Structure denoting a format directive. Depends on CHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on CHAR_T. PRINTF_PARSE Function that parses a format string. Depends on CHAR_T. STATIC Set to 'static' to declare the function static. ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ #ifndef PRINTF_PARSE # include #endif /* Specification. */ #ifndef PRINTF_PARSE # include "printf-parse.h" #endif /* Default parameters. */ #ifndef PRINTF_PARSE # define PRINTF_PARSE printf_parse # define CHAR_T char # define DIRECTIVE char_directive # define DIRECTIVES char_directives #endif /* Get size_t, NULL. */ #include /* Get intmax_t. */ #include /* malloc(), realloc(), free(). */ #include /* memcpy(). */ #include /* errno. */ #include /* Checked size_t computations. */ #include "xsize.h" #if CHAR_T_ONLY_ASCII /* c_isascii(). */ # include "c-ctype.h" #endif #ifdef STATIC STATIC #endif int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { const CHAR_T *cp = format; /* pointer into format */ size_t arg_posn = 0; /* number of regular arguments consumed */ size_t d_allocated; /* allocated elements of d->dir */ size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; d->count = 0; d_allocated = N_DIRECT_ALLOC_DIRECTIVES; d->dir = d->direct_alloc_dir; a->count = 0; a_allocated = N_DIRECT_ALLOC_ARGUMENTS; a->arg = a->direct_alloc_arg; #define REGISTER_ARG(_index_,_type_) \ { \ size_t n = (_index_); \ if (n >= a_allocated) \ { \ size_t memory_size; \ argument *memory; \ \ a_allocated = xtimes (a_allocated, 2); \ if (a_allocated <= n) \ a_allocated = xsum (n, 1); \ memory_size = xtimes (a_allocated, sizeof (argument)); \ if (size_overflow_p (memory_size)) \ /* Overflow, would lead to out of memory. */ \ goto out_of_memory; \ memory = (argument *) (a->arg != a->direct_alloc_arg \ ? realloc (a->arg, memory_size) \ : malloc (memory_size)); \ if (memory == NULL) \ /* Out of memory. */ \ goto out_of_memory; \ if (a->arg == a->direct_alloc_arg) \ memcpy (memory, a->arg, a->count * sizeof (argument)); \ a->arg = memory; \ } \ while (a->count <= n) \ a->arg[a->count++].type = TYPE_NONE; \ if (a->arg[n].type == TYPE_NONE) \ a->arg[n].type = (_type_); \ else if (a->arg[n].type != (_type_)) \ /* Ambiguous type for positional argument. */ \ goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') { size_t arg_index = ARG_NONE; DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ /* Initialize the next directive. */ dp->dir_start = cp - 1; dp->flags = 0; dp->width_start = NULL; dp->width_end = NULL; dp->width_arg_index = ARG_NONE; dp->precision_start = NULL; dp->precision_end = NULL; dp->precision_arg_index = ARG_NONE; dp->arg_index = ARG_NONE; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; arg_index = n - 1; cp = np + 1; } } /* Read the flags. */ for (;;) { if (*cp == '\'') { dp->flags |= FLAG_GROUP; cp++; } else if (*cp == '-') { dp->flags |= FLAG_LEFT; cp++; } else if (*cp == '+') { dp->flags |= FLAG_SHOWSIGN; cp++; } else if (*cp == ' ') { dp->flags |= FLAG_SPACE; cp++; } else if (*cp == '#') { dp->flags |= FLAG_ALT; cp++; } else if (*cp == '0') { dp->flags |= FLAG_ZERO; cp++; } #if __GLIBC__ >= 2 && !defined __UCLIBC__ else if (*cp == 'I') { dp->flags |= FLAG_LOCALIZED; cp++; } #endif else break; } /* Parse the field width. */ if (*cp == '*') { dp->width_start = cp; cp++; dp->width_end = cp; if (max_width_length < 1) max_width_length = 1; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->width_arg_index = n - 1; cp = np + 1; } } if (dp->width_arg_index == ARG_NONE) { dp->width_arg_index = arg_posn++; if (dp->width_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->width_arg_index, TYPE_INT); } else if (*cp >= '0' && *cp <= '9') { size_t width_length; dp->width_start = cp; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->width_end = cp; width_length = dp->width_end - dp->width_start; if (max_width_length < width_length) max_width_length = width_length; } /* Parse the precision. */ if (*cp == '.') { cp++; if (*cp == '*') { dp->precision_start = cp - 1; cp++; dp->precision_end = cp; if (max_precision_length < 2) max_precision_length = 2; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->precision_arg_index = n - 1; cp = np + 1; } } if (dp->precision_arg_index == ARG_NONE) { dp->precision_arg_index = arg_posn++; if (dp->precision_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->precision_arg_index, TYPE_INT); } else { size_t precision_length; dp->precision_start = cp - 1; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->precision_end = cp; precision_length = dp->precision_end - dp->precision_start; if (max_precision_length < precision_length) max_precision_length = precision_length; } } { arg_type type; /* Parse argument type/size specifiers. */ { int flags = 0; for (;;) { if (*cp == 'h') { flags |= (1 << (flags & 1)); cp++; } else if (*cp == 'L') { flags |= 4; cp++; } else if (*cp == 'l') { flags += 8; cp++; } else if (*cp == 'j') { if (sizeof (intmax_t) > sizeof (long)) { /* intmax_t = long long */ flags += 16; } else if (sizeof (intmax_t) > sizeof (int)) { /* intmax_t = long */ flags += 8; } cp++; } else if (*cp == 'z' || *cp == 'Z') { /* 'z' is standardized in ISO C 99, but glibc uses 'Z' because the warning facility in gcc-2.95.2 understands only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ if (sizeof (size_t) > sizeof (long)) { /* size_t = long long */ flags += 16; } else if (sizeof (size_t) > sizeof (int)) { /* size_t = long */ flags += 8; } cp++; } else if (*cp == 't') { if (sizeof (ptrdiff_t) > sizeof (long)) { /* ptrdiff_t = long long */ flags += 16; } else if (sizeof (ptrdiff_t) > sizeof (int)) { /* ptrdiff_t = long */ flags += 8; } cp++; } #if defined __APPLE__ && defined __MACH__ /* On Mac OS X 10.3, PRIdMAX is defined as "qd". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'q') { if (64 / 8 > sizeof (long)) { /* int64_t = long long */ flags += 16; } else { /* int64_t = long */ flags += 8; } cp++; } #endif #if defined _WIN32 && ! defined __CYGWIN__ /* On native Windows, PRIdMAX is defined as "I64d". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') { if (64 / 8 > sizeof (long)) { /* __int64 = long long */ flags += 16; } else { /* __int64 = long */ flags += 8; } cp += 3; } #endif else break; } /* Read the conversion character. */ c = *cp++; switch (c) { case 'd': case 'i': /* If 'long long' is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_LONGLONGINT; else /* If 'long long' is the same as 'long', we parse "lld" into TYPE_LONGINT. */ if (flags >= 8) type = TYPE_LONGINT; else if (flags & 2) type = TYPE_SCHAR; else if (flags & 1) type = TYPE_SHORT; else type = TYPE_INT; break; case 'o': case 'u': case 'x': case 'X': /* If 'unsigned long long' is larger than 'unsigned long': */ if (flags >= 16 || (flags & 4)) type = TYPE_ULONGLONGINT; else /* If 'unsigned long long' is the same as 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ if (flags >= 8) type = TYPE_ULONGINT; else if (flags & 2) type = TYPE_UCHAR; else if (flags & 1) type = TYPE_USHORT; else type = TYPE_UINT; break; case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': if (flags >= 16 || (flags & 4)) type = TYPE_LONGDOUBLE; else type = TYPE_DOUBLE; break; case 'c': if (flags >= 8) #if HAVE_WINT_T type = TYPE_WIDE_CHAR; #else goto error; #endif else type = TYPE_CHAR; break; #if HAVE_WINT_T case 'C': type = TYPE_WIDE_CHAR; c = 'c'; break; #endif case 's': if (flags >= 8) #if HAVE_WCHAR_T type = TYPE_WIDE_STRING; #else goto error; #endif else type = TYPE_STRING; break; #if HAVE_WCHAR_T case 'S': type = TYPE_WIDE_STRING; c = 's'; break; #endif case 'p': type = TYPE_POINTER; break; case 'n': /* If 'long long' is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_COUNT_LONGLONGINT_POINTER; else /* If 'long long' is the same as 'long', we parse "lln" into TYPE_COUNT_LONGINT_POINTER. */ if (flags >= 8) type = TYPE_COUNT_LONGINT_POINTER; else if (flags & 2) type = TYPE_COUNT_SCHAR_POINTER; else if (flags & 1) type = TYPE_COUNT_SHORT_POINTER; else type = TYPE_COUNT_INT_POINTER; break; #if ENABLE_UNISTDIO /* The unistdio extensions. */ case 'U': if (flags >= 16) type = TYPE_U32_STRING; else if (flags >= 8) type = TYPE_U16_STRING; else type = TYPE_U8_STRING; break; #endif case '%': type = TYPE_NONE; break; default: /* Unknown conversion character. */ goto error; } } if (type != TYPE_NONE) { dp->arg_index = arg_index; if (dp->arg_index == ARG_NONE) { dp->arg_index = arg_posn++; if (dp->arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->arg_index, type); } dp->conversion = c; dp->dir_end = cp; } d->count++; if (d->count >= d_allocated) { size_t memory_size; DIRECTIVE *memory; d_allocated = xtimes (d_allocated, 2); memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); if (size_overflow_p (memory_size)) /* Overflow, would lead to out of memory. */ goto out_of_memory; memory = (DIRECTIVE *) (d->dir != d->direct_alloc_dir ? realloc (d->dir, memory_size) : malloc (memory_size)); if (memory == NULL) /* Out of memory. */ goto out_of_memory; if (d->dir == d->direct_alloc_dir) memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); d->dir = memory; } } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) { /* Non-ASCII character. Not supported. */ goto error; } #endif } d->dir[d->count].dir_start = cp; d->max_width_length = max_width_length; d->max_precision_length = max_precision_length; return 0; error: if (a->arg != a->direct_alloc_arg) free (a->arg); if (d->dir != d->direct_alloc_dir) free (d->dir); errno = EINVAL; return -1; out_of_memory: if (a->arg != a->direct_alloc_arg) free (a->arg); if (d->dir != d->direct_alloc_dir) free (d->dir); errno = ENOMEM; return -1; } #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef CHAR_T_ONLY_ASCII #undef CHAR_T shishi-1.0.3/lib/gl/cloexec.h0000644000000000000000000000275514273615121012647 00000000000000/* cloexec.c - set or clear the close-on-exec descriptor flag Copyright (C) 2004, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, or clear the flag if VALUE is false. Return 0 on success, or -1 on error with 'errno' set. Note that on MingW, this function does NOT protect DESC from being inherited into spawned children. Instead, either use dup_cloexec followed by closing the original DESC, or use interfaces such as open or pipe2 that accept flags like O_CLOEXEC to create DESC non-inheritable in the first place. */ int set_cloexec_flag (int desc, bool value); /* Duplicates a file handle FD, while marking the copy to be closed prior to exec or spawn. Returns -1 and sets errno if FD could not be duplicated. */ int dup_cloexec (int fd); shishi-1.0.3/lib/gl/getpeername.c0000644000000000000000000000246114273615122013507 00000000000000/* getpeername.c --- wrappers for Windows getpeername function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #undef getpeername int rpl_getpeername (int fd, struct sockaddr *addr, socklen_t *addrlen) { SOCKET sock = FD_TO_SOCKET (fd); if (sock == INVALID_SOCKET) { errno = EBADF; return -1; } else { int r = getpeername (sock, addr, addrlen); if (r < 0) set_winsock_errno (); return r; } } shishi-1.0.3/lib/gl/flexmember.h0000644000000000000000000000506514273615122013351 00000000000000/* Sizes of structs with flexible array members. Copyright 2016-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . Written by Paul Eggert. */ #include /* Nonzero multiple of alignment of TYPE, suitable for FLEXSIZEOF below. On older platforms without _Alignof, use a pessimistic bound that is safe in practice even if FLEXIBLE_ARRAY_MEMBER is 1. On newer platforms, use _Alignof to get a tighter bound. */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 # define FLEXALIGNOF(type) (sizeof (type) & ~ (sizeof (type) - 1)) #else # define FLEXALIGNOF(type) _Alignof (type) #endif /* Yield a properly aligned upper bound on the size of a struct of type TYPE with a flexible array member named MEMBER that is followed by N bytes of other data. The result is suitable as an argument to malloc. For example: struct s { int n; char d[FLEXIBLE_ARRAY_MEMBER]; }; struct s *p = malloc (FLEXSIZEOF (struct s, d, n * sizeof (char))); FLEXSIZEOF (TYPE, MEMBER, N) is not simply (sizeof (TYPE) + N), since FLEXIBLE_ARRAY_MEMBER may be 1 on pre-C11 platforms. Nor is it simply (offsetof (TYPE, MEMBER) + N), as that might yield a size that causes malloc to yield a pointer that is not properly aligned for TYPE; for example, if sizeof (int) == alignof (int) == 4, malloc (offsetof (struct s, d) + 3 * sizeof (char)) is equivalent to malloc (7) and might yield a pointer that is not a multiple of 4 (which means the pointer is not properly aligned for struct s), whereas malloc (FLEXSIZEOF (struct s, d, 3 * sizeof (char))) is equivalent to malloc (8) and must yield a pointer that is a multiple of 4. Yield a value less than N if and only if arithmetic overflow occurs. */ #define FLEXSIZEOF(type, member, n) \ ((offsetof (type, member) + FLEXALIGNOF (type) - 1 + (n)) \ & ~ (FLEXALIGNOF (type) - 1)) shishi-1.0.3/lib/gl/gethostname.c0000644000000000000000000000536414273615122013536 00000000000000/* gethostname emulation for SysV and POSIX.1. Copyright (C) 1992, 2003, 2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* David MacKenzie Windows port by Simon Josefsson */ #include #if !(defined _WIN32 && !defined __CYGWIN__) /* Unix API. */ /* Specification. */ #include #ifdef HAVE_UNAME # include #endif #include /* Put up to LEN chars of the host name into NAME. Null terminate it if the name is shorter than LEN. Return 0 if ok, -1 if error. */ #include int gethostname (char *name, size_t len) { #ifdef HAVE_UNAME struct utsname uts; if (uname (&uts) == -1) return -1; if (len > sizeof (uts.nodename)) { /* More space than we need is available. */ name[sizeof (uts.nodename)] = '\0'; len = sizeof (uts.nodename); } strncpy (name, uts.nodename, len); #else strcpy (name, ""); /* Hardcode your system name if you want. */ #endif return 0; } #else /* Native Windows API. Which primitive to choose? - gethostname() requires linking with -lws2_32. - GetComputerName() does not return the right kind of hostname. - GetComputerNameEx(ComputerNameDnsHostname,...) returns the right hostname, but it is hard to use portably: - It requires defining _WIN32_WINNT to at least 0x0500. - With mingw, it also requires "#define GetComputerNameEx GetComputerNameExA". - With older versions of mingw, none of the declarations are present at all, not even of the enum value ComputerNameDnsHostname. So we use gethostname(). Linking with -lws2_32 is the least evil. */ #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get INT_MAX. */ #include /* Get set_winsock_errno. */ #include "w32sock.h" #include "sockets.h" #undef gethostname int rpl_gethostname (char *name, size_t len) { int r; if (len > INT_MAX) len = INT_MAX; gl_sockets_startup (SOCKETS_1_1); r = gethostname (name, (int) len); if (r < 0) set_winsock_errno (); return r; } #endif shishi-1.0.3/lib/gl/stdint.in.h0000644000000000000000000005475414273615123013147 00000000000000/* Copyright (C) 2001-2002, 2004-2022 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* * ISO C 99 for platforms that lack it. * */ #ifndef _@GUARD_PREFIX@_STDINT_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* When including a system file that in turn includes , use the system , not our substitute. This avoids problems with (for example) VMS, whose includes . */ #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* On Android (Bionic libc), includes this file before having defined 'time_t'. Therefore in this case avoid including other system header files; just include the system's . Ideally we should test __BIONIC__ here, but it is only defined after has been included; hence test __ANDROID__ instead. */ #if defined __ANDROID__ && defined _GL_INCLUDING_SYS_TYPES_H # @INCLUDE_NEXT@ @NEXT_STDINT_H@ #else /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef signed char int8_t;" that will get messed up by our macro. Our macros should all be consistent with the system versions, except for the "fast" types and macros, which we recommend against using in public interfaces due to compiler differences. */ #if @HAVE_STDINT_H@ # if defined __sgi && ! defined __c99 /* Bypass IRIX's if in C89 mode, since it merely annoys users with "This header file is to be used only for c99 mode compilations" diagnostics. */ # define __STDINT_H__ # endif /* Some pre-C++11 implementations need this. */ # ifdef __cplusplus # ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS 1 # endif # ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 # endif # endif /* Other systems may have an incomplete or buggy . Include it before , since any "#include " in would reinclude us, skipping our contents because _@GUARD_PREFIX@_STDINT_H is defined. The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_STDINT_H@ #endif #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H #define _@GUARD_PREFIX@_STDINT_H /* Get SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, INT_MIN, INT_MAX, LONG_MIN, LONG_MAX, ULONG_MAX, _GL_INTEGER_WIDTH. */ #include /* Override WINT_MIN and WINT_MAX if gnulib's or overrides wint_t. */ #if @GNULIBHEADERS_OVERRIDE_WINT_T@ # undef WINT_MIN # undef WINT_MAX # define WINT_MIN 0x0U # define WINT_MAX 0xffffffffU #endif #if ! @HAVE_C99_STDINT_H@ /* defines some of the stdint.h types as well, on glibc, IRIX 6.5, and OpenBSD 3.8 (via ). AIX 5.2 isn't needed and causes troubles. Mac OS X 10.4.6 includes (which is us), but relies on the system definitions, so include after @NEXT_STDINT_H@. */ # if @HAVE_SYS_TYPES_H@ && ! defined _AIX # include # endif # if @HAVE_INTTYPES_H@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ # include # elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ # include # endif # if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__ /* Linux libc4 >= 4.6.7 and libc5 have a that defines int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is included by . */ # include # endif # undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* Minimum and maximum values for an integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify picky compilers. */ /* These are separate macros, because if you try to merge these macros into a single one, HP-UX cc rejects the resulting expression in constant expressions. */ # define _STDINT_UNSIGNED_MIN(bits, zero) \ (zero) # define _STDINT_SIGNED_MIN(bits, zero) \ (~ _STDINT_MAX (1, bits, zero)) # define _STDINT_MAX(signed, bits, zero) \ (((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) #if !GNULIB_defined_stdint_types /* 7.18.1.1. Exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ # undef int8_t # undef uint8_t typedef signed char gl_int8_t; typedef unsigned char gl_uint8_t; # define int8_t gl_int8_t # define uint8_t gl_uint8_t # undef int16_t # undef uint16_t typedef short int gl_int16_t; typedef unsigned short int gl_uint16_t; # define int16_t gl_int16_t # define uint16_t gl_uint16_t # undef int32_t # undef uint32_t typedef int gl_int32_t; typedef unsigned int gl_uint32_t; # define int32_t gl_int32_t # define uint32_t gl_uint32_t /* If the system defines INT64_MAX, assume int64_t works. That way, if the underlying platform defines int64_t to be a 64-bit long long int, the code below won't mistakenly define it to be a 64-bit long int, which would mess up C++ name mangling. We must use #ifdef rather than #if, to avoid an error with HP-UX 10.20 cc. */ # ifdef INT64_MAX # define GL_INT64_T # else /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ # if LONG_MAX >> 31 >> 31 == 1 # undef int64_t typedef long int gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # elif defined _MSC_VER # undef int64_t typedef __int64 gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # else # undef int64_t typedef long long int gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # endif # endif # ifdef UINT64_MAX # define GL_UINT64_T # else # if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t typedef unsigned long int gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # elif defined _MSC_VER # undef uint64_t typedef unsigned __int64 gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # else # undef uint64_t typedef unsigned long long int gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # endif # endif /* Avoid collision with Solaris 2.5.1 etc. */ # define _UINT8_T # define _UINT32_T # define _UINT64_T /* 7.18.1.2. Minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ # undef int_least8_t # undef uint_least8_t # undef int_least16_t # undef uint_least16_t # undef int_least32_t # undef uint_least32_t # undef int_least64_t # undef uint_least64_t # define int_least8_t int8_t # define uint_least8_t uint8_t # define int_least16_t int16_t # define uint_least16_t uint16_t # define int_least32_t int32_t # define uint_least32_t uint32_t # ifdef GL_INT64_T # define int_least64_t int64_t # endif # ifdef GL_UINT64_T # define uint_least64_t uint64_t # endif /* 7.18.1.3. Fastest minimum-width integer types */ /* Note: Other substitutes may define these types differently. It is not recommended to use these types in public header files. */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. The following code normally uses types consistent with glibc, as that lessens the chance of incompatibility with older GNU hosts. */ # undef int_fast8_t # undef uint_fast8_t # undef int_fast16_t # undef uint_fast16_t # undef int_fast32_t # undef uint_fast32_t # undef int_fast64_t # undef uint_fast64_t typedef signed char gl_int_fast8_t; typedef unsigned char gl_uint_fast8_t; # ifdef __sun /* Define types compatible with SunOS 5.10, so that code compiled under earlier SunOS versions works with code compiled under SunOS 5.10. */ typedef int gl_int_fast32_t; typedef unsigned int gl_uint_fast32_t; # else typedef long int gl_int_fast32_t; typedef unsigned long int gl_uint_fast32_t; # endif typedef gl_int_fast32_t gl_int_fast16_t; typedef gl_uint_fast32_t gl_uint_fast16_t; # define int_fast8_t gl_int_fast8_t # define uint_fast8_t gl_uint_fast8_t # define int_fast16_t gl_int_fast16_t # define uint_fast16_t gl_uint_fast16_t # define int_fast32_t gl_int_fast32_t # define uint_fast32_t gl_uint_fast32_t # ifdef GL_INT64_T # define int_fast64_t int64_t # endif # ifdef GL_UINT64_T # define uint_fast64_t uint64_t # endif /* 7.18.1.4. Integer types capable of holding object pointers */ /* kLIBC's defines _INTPTR_T_DECLARED and needs its own definitions of intptr_t and uintptr_t (which use int and unsigned) to avoid clashes with declarations of system functions like sbrk. Similarly, MinGW WSL-5.4.1 needs its own intptr_t and uintptr_t to avoid conflicting declarations of system functions like _findclose in . */ # if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \ || defined __MINGW32__) # undef intptr_t # undef uintptr_t # ifdef _WIN64 typedef long long int gl_intptr_t; typedef unsigned long long int gl_uintptr_t; # else typedef long int gl_intptr_t; typedef unsigned long int gl_uintptr_t; # endif # define intptr_t gl_intptr_t # define uintptr_t gl_uintptr_t # endif /* 7.18.1.5. Greatest-width integer types */ /* Note: These types are compiler dependent. It may be unwise to use them in public header files. */ /* If the system defines INTMAX_MAX, assume that intmax_t works, and similarly for UINTMAX_MAX and uintmax_t. This avoids problems with assuming one type where another is used by the system. */ # ifndef INTMAX_MAX # undef INTMAX_C # undef intmax_t # if LONG_MAX >> 30 == 1 typedef long long int gl_intmax_t; # define intmax_t gl_intmax_t # elif defined GL_INT64_T # define intmax_t int64_t # else typedef long int gl_intmax_t; # define intmax_t gl_intmax_t # endif # endif # ifndef UINTMAX_MAX # undef UINTMAX_C # undef uintmax_t # if ULONG_MAX >> 31 == 1 typedef unsigned long long int gl_uintmax_t; # define uintmax_t gl_uintmax_t # elif defined GL_UINT64_T # define uintmax_t uint64_t # else typedef unsigned long int gl_uintmax_t; # define uintmax_t gl_uintmax_t # endif # endif /* Verify that intmax_t and uintmax_t have the same size. Too much code breaks if this is not the case. If this check fails, the reason is likely to be found in the autoconf macros. */ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) ? 1 : -1]; # define GNULIB_defined_stdint_types 1 # endif /* !GNULIB_defined_stdint_types */ /* 7.18.2. Limits of specified-width integer types */ /* 7.18.2.1. Limits of exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ # undef INT8_MIN # undef INT8_MAX # undef UINT8_MAX # define INT8_MIN (~ INT8_MAX) # define INT8_MAX 127 # define UINT8_MAX 255 # undef INT16_MIN # undef INT16_MAX # undef UINT16_MAX # define INT16_MIN (~ INT16_MAX) # define INT16_MAX 32767 # define UINT16_MAX 65535 # undef INT32_MIN # undef INT32_MAX # undef UINT32_MAX # define INT32_MIN (~ INT32_MAX) # define INT32_MAX 2147483647 # define UINT32_MAX 4294967295U # if defined GL_INT64_T && ! defined INT64_MAX /* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0 evaluates the latter incorrectly in preprocessor expressions. */ # define INT64_MIN (- INTMAX_C (1) << 63) # define INT64_MAX INTMAX_C (9223372036854775807) # endif # if defined GL_UINT64_T && ! defined UINT64_MAX # define UINT64_MAX UINTMAX_C (18446744073709551615) # endif /* 7.18.2.2. Limits of minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ # undef INT_LEAST8_MIN # undef INT_LEAST8_MAX # undef UINT_LEAST8_MAX # define INT_LEAST8_MIN INT8_MIN # define INT_LEAST8_MAX INT8_MAX # define UINT_LEAST8_MAX UINT8_MAX # undef INT_LEAST16_MIN # undef INT_LEAST16_MAX # undef UINT_LEAST16_MAX # define INT_LEAST16_MIN INT16_MIN # define INT_LEAST16_MAX INT16_MAX # define UINT_LEAST16_MAX UINT16_MAX # undef INT_LEAST32_MIN # undef INT_LEAST32_MAX # undef UINT_LEAST32_MAX # define INT_LEAST32_MIN INT32_MIN # define INT_LEAST32_MAX INT32_MAX # define UINT_LEAST32_MAX UINT32_MAX # undef INT_LEAST64_MIN # undef INT_LEAST64_MAX # ifdef GL_INT64_T # define INT_LEAST64_MIN INT64_MIN # define INT_LEAST64_MAX INT64_MAX # endif # undef UINT_LEAST64_MAX # ifdef GL_UINT64_T # define UINT_LEAST64_MAX UINT64_MAX # endif /* 7.18.2.3. Limits of fastest minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. */ # undef INT_FAST8_MIN # undef INT_FAST8_MAX # undef UINT_FAST8_MAX # define INT_FAST8_MIN SCHAR_MIN # define INT_FAST8_MAX SCHAR_MAX # define UINT_FAST8_MAX UCHAR_MAX # undef INT_FAST16_MIN # undef INT_FAST16_MAX # undef UINT_FAST16_MAX # define INT_FAST16_MIN INT_FAST32_MIN # define INT_FAST16_MAX INT_FAST32_MAX # define UINT_FAST16_MAX UINT_FAST32_MAX # undef INT_FAST32_MIN # undef INT_FAST32_MAX # undef UINT_FAST32_MAX # ifdef __sun # define INT_FAST32_MIN INT_MIN # define INT_FAST32_MAX INT_MAX # define UINT_FAST32_MAX UINT_MAX # else # define INT_FAST32_MIN LONG_MIN # define INT_FAST32_MAX LONG_MAX # define UINT_FAST32_MAX ULONG_MAX # endif # undef INT_FAST64_MIN # undef INT_FAST64_MAX # ifdef GL_INT64_T # define INT_FAST64_MIN INT64_MIN # define INT_FAST64_MAX INT64_MAX # endif # undef UINT_FAST64_MAX # ifdef GL_UINT64_T # define UINT_FAST64_MAX UINT64_MAX # endif /* 7.18.2.4. Limits of integer types capable of holding object pointers */ # undef INTPTR_MIN # undef INTPTR_MAX # undef UINTPTR_MAX # ifdef _WIN64 # define INTPTR_MIN LLONG_MIN # define INTPTR_MAX LLONG_MAX # define UINTPTR_MAX ULLONG_MAX # else # define INTPTR_MIN LONG_MIN # define INTPTR_MAX LONG_MAX # define UINTPTR_MAX ULONG_MAX # endif /* 7.18.2.5. Limits of greatest-width integer types */ # ifndef INTMAX_MAX # undef INTMAX_MIN # ifdef INT64_MAX # define INTMAX_MIN INT64_MIN # define INTMAX_MAX INT64_MAX # else # define INTMAX_MIN INT32_MIN # define INTMAX_MAX INT32_MAX # endif # endif # ifndef UINTMAX_MAX # ifdef UINT64_MAX # define UINTMAX_MAX UINT64_MAX # else # define UINTMAX_MAX UINT32_MAX # endif # endif /* 7.18.3. Limits of other integer types */ /* ptrdiff_t limits */ # undef PTRDIFF_MIN # undef PTRDIFF_MAX # if @APPLE_UNIVERSAL_BUILD@ # ifdef _LP64 # define PTRDIFF_MIN _STDINT_SIGNED_MIN (64, 0l) # define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) # else # define PTRDIFF_MIN _STDINT_SIGNED_MIN (32, 0) # define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) # endif # else # define PTRDIFF_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) # define PTRDIFF_MAX \ _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) # endif /* sig_atomic_t limits */ # undef SIG_ATOMIC_MIN # undef SIG_ATOMIC_MAX # if @HAVE_SIGNED_SIG_ATOMIC_T@ # define SIG_ATOMIC_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_SIG_ATOMIC_T@, 0@SIG_ATOMIC_T_SUFFIX@) # else # define SIG_ATOMIC_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_SIG_ATOMIC_T@, 0@SIG_ATOMIC_T_SUFFIX@) # endif # define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ # undef SIZE_MAX # if @APPLE_UNIVERSAL_BUILD@ # ifdef _LP64 # define SIZE_MAX _STDINT_MAX (0, 64, 0ul) # else # define SIZE_MAX _STDINT_MAX (0, 32, 0ul) # endif # else # define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) # endif /* wchar_t limits */ /* Get WCHAR_MIN, WCHAR_MAX. This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested includes -> -> -> , and the latter includes and assumes its types are already defined. */ # if @HAVE_WCHAR_H@ && ! (defined WCHAR_MIN && defined WCHAR_MAX) # define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H # include # undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H # endif # undef WCHAR_MIN # undef WCHAR_MAX # if @HAVE_SIGNED_WCHAR_T@ # define WCHAR_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) # else # define WCHAR_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) # endif # define WCHAR_MAX \ _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) /* wint_t limits */ /* If gnulib's or overrides wint_t, @WINT_T_SUFFIX@ is not accurate, therefore use the definitions from above. */ # if !@GNULIBHEADERS_OVERRIDE_WINT_T@ # undef WINT_MIN # undef WINT_MAX # if @HAVE_SIGNED_WINT_T@ # define WINT_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # else # define WINT_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # endif # define WINT_MAX \ _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # endif /* 7.18.4. Macros for integer constants */ /* 7.18.4.1. Macros for minimum-width integer constants */ /* According to ISO C 99 Technical Corrigendum 1 */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits, and int is 32 bits. */ # undef INT8_C # undef UINT8_C # define INT8_C(x) x # define UINT8_C(x) x # undef INT16_C # undef UINT16_C # define INT16_C(x) x # define UINT16_C(x) x # undef INT32_C # undef UINT32_C # define INT32_C(x) x # define UINT32_C(x) x ## U # undef INT64_C # undef UINT64_C # if LONG_MAX >> 31 >> 31 == 1 # define INT64_C(x) x##L # elif defined _MSC_VER # define INT64_C(x) x##i64 # else # define INT64_C(x) x##LL # endif # if ULONG_MAX >> 31 >> 31 >> 1 == 1 # define UINT64_C(x) x##UL # elif defined _MSC_VER # define UINT64_C(x) x##ui64 # else # define UINT64_C(x) x##ULL # endif /* 7.18.4.2. Macros for greatest-width integer constants */ # ifndef INTMAX_C # if LONG_MAX >> 30 == 1 # define INTMAX_C(x) x##LL # elif defined GL_INT64_T # define INTMAX_C(x) INT64_C(x) # else # define INTMAX_C(x) x##L # endif # endif # ifndef UINTMAX_C # if ULONG_MAX >> 31 == 1 # define UINTMAX_C(x) x##ULL # elif defined GL_UINT64_T # define UINTMAX_C(x) UINT64_C(x) # else # define UINTMAX_C(x) x##UL # endif # endif #endif /* !@HAVE_C99_STDINT_H@ */ /* Macros specified by ISO/IEC TS 18661-1:2014. */ #if (!defined UINTMAX_WIDTH \ && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__)) # ifdef INT8_MAX # define INT8_WIDTH _GL_INTEGER_WIDTH (INT8_MIN, INT8_MAX) # endif # ifdef UINT8_MAX # define UINT8_WIDTH _GL_INTEGER_WIDTH (0, UINT8_MAX) # endif # ifdef INT16_MAX # define INT16_WIDTH _GL_INTEGER_WIDTH (INT16_MIN, INT16_MAX) # endif # ifdef UINT16_MAX # define UINT16_WIDTH _GL_INTEGER_WIDTH (0, UINT16_MAX) # endif # ifdef INT32_MAX # define INT32_WIDTH _GL_INTEGER_WIDTH (INT32_MIN, INT32_MAX) # endif # ifdef UINT32_MAX # define UINT32_WIDTH _GL_INTEGER_WIDTH (0, UINT32_MAX) # endif # ifdef INT64_MAX # define INT64_WIDTH _GL_INTEGER_WIDTH (INT64_MIN, INT64_MAX) # endif # ifdef UINT64_MAX # define UINT64_WIDTH _GL_INTEGER_WIDTH (0, UINT64_MAX) # endif # define INT_LEAST8_WIDTH _GL_INTEGER_WIDTH (INT_LEAST8_MIN, INT_LEAST8_MAX) # define UINT_LEAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST8_MAX) # define INT_LEAST16_WIDTH _GL_INTEGER_WIDTH (INT_LEAST16_MIN, INT_LEAST16_MAX) # define UINT_LEAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST16_MAX) # define INT_LEAST32_WIDTH _GL_INTEGER_WIDTH (INT_LEAST32_MIN, INT_LEAST32_MAX) # define UINT_LEAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST32_MAX) # define INT_LEAST64_WIDTH _GL_INTEGER_WIDTH (INT_LEAST64_MIN, INT_LEAST64_MAX) # define UINT_LEAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST64_MAX) # define INT_FAST8_WIDTH _GL_INTEGER_WIDTH (INT_FAST8_MIN, INT_FAST8_MAX) # define UINT_FAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST8_MAX) # define INT_FAST16_WIDTH _GL_INTEGER_WIDTH (INT_FAST16_MIN, INT_FAST16_MAX) # define UINT_FAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST16_MAX) # define INT_FAST32_WIDTH _GL_INTEGER_WIDTH (INT_FAST32_MIN, INT_FAST32_MAX) # define UINT_FAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST32_MAX) # define INT_FAST64_WIDTH _GL_INTEGER_WIDTH (INT_FAST64_MIN, INT_FAST64_MAX) # define UINT_FAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST64_MAX) # define INTPTR_WIDTH _GL_INTEGER_WIDTH (INTPTR_MIN, INTPTR_MAX) # define UINTPTR_WIDTH _GL_INTEGER_WIDTH (0, UINTPTR_MAX) # define INTMAX_WIDTH _GL_INTEGER_WIDTH (INTMAX_MIN, INTMAX_MAX) # define UINTMAX_WIDTH _GL_INTEGER_WIDTH (0, UINTMAX_MAX) # define PTRDIFF_WIDTH _GL_INTEGER_WIDTH (PTRDIFF_MIN, PTRDIFF_MAX) # define SIZE_WIDTH _GL_INTEGER_WIDTH (0, SIZE_MAX) # define WCHAR_WIDTH _GL_INTEGER_WIDTH (WCHAR_MIN, WCHAR_MAX) # ifdef WINT_MAX # define WINT_WIDTH _GL_INTEGER_WIDTH (WINT_MIN, WINT_MAX) # endif # ifdef SIG_ATOMIC_MAX # define SIG_ATOMIC_WIDTH _GL_INTEGER_WIDTH (SIG_ATOMIC_MIN, SIG_ATOMIC_MAX) # endif #endif /* !WINT_WIDTH && (_GNU_SOURCE || __STDC_WANT_IEC_60559_BFP_EXT__) */ #endif /* _@GUARD_PREFIX@_STDINT_H */ #endif /* !(defined __ANDROID__ && ...) */ #endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ shishi-1.0.3/lib/gl/verify.h0000644000000000000000000003070114273615123012523 00000000000000/* Compile-time assert-like macros. Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ #ifndef _GL_VERIFY_H #define _GL_VERIFY_H /* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert (R, DIAGNOSTIC) works as per C11. This is supported by GCC 4.6.0+ and by clang 4+. Define _GL_HAVE__STATIC_ASSERT1 to 1 if _Static_assert (R) works as per C2x. This is supported by GCC 9.1+. Support compilers claiming conformance to the relevant standard, and also support GCC when not pedantic. If we were willing to slow 'configure' down we could also use it with other compilers, but since this affects only the quality of diagnostics, why bother? */ #ifndef __cplusplus # if (201112L <= __STDC_VERSION__ \ || (!defined __STRICT_ANSI__ \ && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 5 <= __clang_major__))) # define _GL_HAVE__STATIC_ASSERT 1 # endif # if (202000L <= __STDC_VERSION__ \ || (!defined __STRICT_ANSI__ && 9 <= __GNUC__)) # define _GL_HAVE__STATIC_ASSERT1 1 # endif #endif /* FreeBSD 9.1 , included by and lots of other system headers, defines a conflicting _Static_assert that is no better than ours; override it. */ #ifndef _GL_HAVE__STATIC_ASSERT # include # undef _Static_assert #endif /* Each of these macros verifies that its argument R is nonzero. To be portable, R should be an integer constant expression. Unlike assert (R), there is no run-time overhead. If _Static_assert works, verify (R) uses it directly. Similarly, _GL_VERIFY_TRUE works by packaging a _Static_assert inside a struct that is an operand of sizeof. The code below uses several ideas for C++ compilers, and for C compilers that do not support _Static_assert: * The first step is ((R) ? 1 : -1). Given an expression R, of integral or boolean or floating-point type, this yields an expression of integral type, whose value is later verified to be constant and nonnegative. * Next this expression W is wrapped in a type struct _gl_verify_type { unsigned int _gl_verify_error_if_negative: W; }. If W is negative, this yields a compile-time error. No compiler can deal with a bit-field of negative size. One might think that an array size check would have the same effect, that is, that the type struct { unsigned int dummy[W]; } would work as well. However, inside a function, some compilers (such as C++ compilers and GNU C) allow local parameters and variables inside array size expressions. With these compilers, an array size check would not properly diagnose this misuse of the verify macro: void function (int n) { verify (n < 0); } * For the verify macro, the struct _gl_verify_type will need to somehow be embedded into a declaration. To be portable, this declaration must declare an object, a constant, a function, or a typedef name. If the declared entity uses the type directly, such as in struct dummy {...}; typedef struct {...} dummy; extern struct {...} *dummy; extern void dummy (struct {...} *); extern struct {...} *dummy (void); two uses of the verify macro would yield colliding declarations if the entity names are not disambiguated. A workaround is to attach the current line number to the entity name: #define _GL_CONCAT0(x, y) x##y #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) extern struct {...} * _GL_CONCAT (dummy, __LINE__); But this has the problem that two invocations of verify from within the same macro would collide, since the __LINE__ value would be the same for both invocations. (The GCC __COUNTER__ macro solves this problem, but is not portable.) A solution is to use the sizeof operator. It yields a number, getting rid of the identity of the type. Declarations like extern int dummy [sizeof (struct {...})]; extern void dummy (int [sizeof (struct {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; can be repeated. * Should the implementation use a named struct or an unnamed struct? Which of the following alternatives can be used? extern int dummy [sizeof (struct {...})]; extern int dummy [sizeof (struct _gl_verify_type {...})]; extern void dummy (int [sizeof (struct {...})]); extern void dummy (int [sizeof (struct _gl_verify_type {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; extern int (*dummy (void)) [sizeof (struct _gl_verify_type {...})]; In the second and sixth case, the struct type is exported to the outer scope; two such declarations therefore collide. GCC warns about the first, third, and fourth cases. So the only remaining possibility is the fifth case: extern int (*dummy (void)) [sizeof (struct {...})]; * GCC warns about duplicate declarations of the dummy function if -Wredundant-decls is used. GCC 4.3 and later have a builtin __COUNTER__ macro that can let us generate unique identifiers for each dummy function, to suppress this warning. * This implementation exploits the fact that older versions of GCC, which do not support _Static_assert, also do not warn about the last declaration mentioned above. * GCC warns if -Wnested-externs is enabled and 'verify' is used within a function body; but inside a function, you can always arrange to use verify_expr instead. * In C++, any struct definition inside sizeof is invalid. Use a template type to work around the problem. */ /* Concatenate two preprocessor tokens. */ #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) #define _GL_CONCAT0(x, y) x##y /* _GL_COUNTER is an integer, preferably one that changes each time we use it. Use __COUNTER__ if it works, falling back on __LINE__ otherwise. __LINE__ isn't perfect, but it's better than a constant. */ #if defined __COUNTER__ && __COUNTER__ != __COUNTER__ # define _GL_COUNTER __COUNTER__ #else # define _GL_COUNTER __LINE__ #endif /* Generate a symbol with the given prefix, making it unique if possible. */ #define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER) /* Verify requirement R at compile-time, as an integer constant expression that returns 1. If R is false, fail at compile-time, preferably with a diagnostic that includes the string-literal DIAGNOSTIC. */ #define _GL_VERIFY_TRUE(R, DIAGNOSTIC) \ (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) #ifdef __cplusplus # if !GNULIB_defined_struct__gl_verify_type template struct _gl_verify_type { unsigned int _gl_verify_error_if_negative: w; }; # define GNULIB_defined_struct__gl_verify_type 1 # endif # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ _gl_verify_type<(R) ? 1 : -1> #elif defined _GL_HAVE__STATIC_ASSERT # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ struct { \ _Static_assert (R, DIAGNOSTIC); \ int _gl_dummy; \ } #else # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ struct { unsigned int _gl_verify_error_if_negative: (R) ? 1 : -1; } #endif /* Verify requirement R at compile-time, as a declaration without a trailing ';'. If R is false, fail at compile-time. This macro requires three or more arguments but uses at most the first two, so that the _Static_assert macro optionally defined below supports both the C11 two-argument syntax and the C2x one-argument syntax. Unfortunately, unlike C11, this implementation must appear as an ordinary declaration, and cannot appear inside struct { ... }. */ #if 200410 <= __cpp_static_assert # define _GL_VERIFY(R, DIAGNOSTIC, ...) static_assert (R, DIAGNOSTIC) #elif defined _GL_HAVE__STATIC_ASSERT # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC) #else # define _GL_VERIFY(R, DIAGNOSTIC, ...) \ extern int (*_GL_GENSYM (_gl_verify_function) (void)) \ [_GL_VERIFY_TRUE (R, DIAGNOSTIC)] # if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) # pragma GCC diagnostic ignored "-Wnested-externs" # endif #endif /* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */ #ifdef _GL_STATIC_ASSERT_H # if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert # define _Static_assert(...) \ _GL_VERIFY (__VA_ARGS__, "static assertion failed", -) # endif # if __cpp_static_assert < 201411 && !defined static_assert # define static_assert _Static_assert /* C11 requires this #define. */ # endif #endif /* @assert.h omit start@ */ #if 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__)) # define _GL_HAS_BUILTIN_TRAP 1 #elif defined __has_builtin # define _GL_HAS_BUILTIN_TRAP __has_builtin (__builtin_trap) #else # define _GL_HAS_BUILTIN_TRAP 0 #endif #if 4 < __GNUC__ + (5 <= __GNUC_MINOR__) # define _GL_HAS_BUILTIN_UNREACHABLE 1 #elif defined __has_builtin # define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable) #else # define _GL_HAS_BUILTIN_UNREACHABLE 0 #endif /* Each of these macros verifies that its argument R is nonzero. To be portable, R should be an integer constant expression. Unlike assert (R), there is no run-time overhead. There are two macros, since no single macro can be used in all contexts in C. verify_expr (R, E) is for scalar contexts, including integer constant expression contexts. verify (R) is for declaration contexts, e.g., the top level. */ /* Verify requirement R at compile-time. Return the value of the expression E. */ #define verify_expr(R, E) \ (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E)) /* Verify requirement R at compile-time, as a declaration without a trailing ';'. verify (R) acts like static_assert (R) except that it is portable to C11/C++14 and earlier, it can issue better diagnostics, and its name is shorter and may be more convenient. */ #ifdef __PGI /* PGI barfs if R is long. */ # define verify(R) _GL_VERIFY (R, "verify (...)", -) #else # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -) #endif /* Assume that R always holds. Behavior is undefined if R is false, fails to evaluate, or has side effects. 'assume (R)' is a directive from the programmer telling the compiler that R is true so the compiler needn't generate code to test R. This is why 'assume' is in verify.h: it's related to static checking (in this case, static checking done by the programmer), not dynamic checking. 'assume (R)' can affect compilation of all the code, not just code that happens to be executed after the assume (R) is "executed". For example, if the code mistakenly does 'assert (R); assume (R);' the compiler is entitled to optimize away the 'assert (R)'. Although assuming R can help a compiler generate better code or diagnostics, performance can suffer if R uses hard-to-optimize features such as function calls not inlined by the compiler. Avoid Clang's __builtin_assume, as it breaks GNU Emacs master as of 2020-08-23T21:09:49Z!eggert@cs.ucla.edu; see . It's not known whether this breakage is a Clang bug or an Emacs bug; play it safe for now. */ #if _GL_HAS_BUILTIN_UNREACHABLE # define assume(R) ((R) ? (void) 0 : __builtin_unreachable ()) #elif 1200 <= _MSC_VER # define assume(R) __assume (R) #elif (defined GCC_LINT || defined lint) && _GL_HAS_BUILTIN_TRAP /* Doing it this way helps various packages when configured with --enable-gcc-warnings, which compiles with -Dlint. It's nicer when 'assume' silences warnings even with older GCCs. */ # define assume(R) ((R) ? (void) 0 : __builtin_trap ()) #else /* Some tools grok NOTREACHED, e.g., Oracle Studio 12.6. */ # define assume(R) ((R) ? (void) 0 : /*NOTREACHED*/ (void) 0) #endif /* @assert.h omit end@ */ #endif shishi-1.0.3/lib/gl/strerror-override.h0000644000000000000000000000405014273615123014714 00000000000000/* strerror-override.h --- POSIX compatible system error routine Copyright (C) 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_STRERROR_OVERRIDE_H # define _GL_STRERROR_OVERRIDE_H # include # include /* Reasonable buffer size that should never trigger ERANGE; if this proves too small, we intentionally abort(), to remind us to fix this value. */ # define STACKBUF_LEN 256 /* If ERRNUM maps to an errno value defined by gnulib, return a string describing the error. Otherwise return NULL. */ # if REPLACE_STRERROR_0 \ || GNULIB_defined_ESOCK \ || GNULIB_defined_ESTREAMS \ || GNULIB_defined_EWINSOCK \ || GNULIB_defined_ENOMSG \ || GNULIB_defined_EIDRM \ || GNULIB_defined_ENOLINK \ || GNULIB_defined_EPROTO \ || GNULIB_defined_EMULTIHOP \ || GNULIB_defined_EBADMSG \ || GNULIB_defined_EOVERFLOW \ || GNULIB_defined_ENOTSUP \ || GNULIB_defined_ENETRESET \ || GNULIB_defined_ECONNABORTED \ || GNULIB_defined_ESTALE \ || GNULIB_defined_EDQUOT \ || GNULIB_defined_ECANCELED \ || GNULIB_defined_EOWNERDEAD \ || GNULIB_defined_ENOTRECOVERABLE \ || GNULIB_defined_EILSEQ extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST; # else # define strerror_override(ignored) NULL # define GNULIB_defined_strerror_override_macro 1 # endif #endif /* _GL_STRERROR_OVERRIDE_H */ shishi-1.0.3/lib/gl/xsize.h0000644000000000000000000000675714273615123012377 00000000000000/* xsize.h -- Checked size_t computations. Copyright (C) 2003, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _XSIZE_H #define _XSIZE_H /* Get size_t. */ #include /* Get SIZE_MAX. */ #include #if HAVE_STDINT_H # include #endif /* Get ATTRIBUTE_PURE. */ #include "attribute.h" #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef XSIZE_INLINE # define XSIZE_INLINE _GL_INLINE #endif /* The size of memory objects is often computed through expressions of type size_t. Example: void* p = malloc (header_size + n * element_size). These computations can lead to overflow. When this happens, malloc() returns a piece of memory that is way too small, and the program then crashes while attempting to fill the memory. To avoid this, the functions and macros in this file check for overflow. The convention is that SIZE_MAX represents overflow. malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc implementation that uses mmap --, it's recommended to use size_overflow_p() or size_in_bounds_p() before invoking malloc(). The example thus becomes: size_t size = xsum (header_size, xtimes (n, element_size)); void *p = (size_in_bounds_p (size) ? malloc (size) : NULL); */ /* Convert an arbitrary value >= 0 to type size_t. */ #define xcast_size_t(N) \ ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) /* Sum of two sizes, with overflow check. */ XSIZE_INLINE size_t ATTRIBUTE_PURE xsum (size_t size1, size_t size2) { size_t sum = size1 + size2; return (sum >= size1 ? sum : SIZE_MAX); } /* Sum of three sizes, with overflow check. */ XSIZE_INLINE size_t ATTRIBUTE_PURE xsum3 (size_t size1, size_t size2, size_t size3) { return xsum (xsum (size1, size2), size3); } /* Sum of four sizes, with overflow check. */ XSIZE_INLINE size_t ATTRIBUTE_PURE xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) { return xsum (xsum (xsum (size1, size2), size3), size4); } /* Maximum of two sizes, with overflow check. */ XSIZE_INLINE size_t ATTRIBUTE_PURE xmax (size_t size1, size_t size2) { /* No explicit check is needed here, because for any n: max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */ return (size1 >= size2 ? size1 : size2); } /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not a function, so that it works correctly even when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) /* Check for overflow. */ #define size_overflow_p(SIZE) \ ((SIZE) == SIZE_MAX) /* Check against overflow. */ #define size_in_bounds_p(SIZE) \ ((SIZE) != SIZE_MAX) _GL_INLINE_HEADER_END #endif /* _XSIZE_H */ shishi-1.0.3/lib/gl/sys_types.in.h0000644000000000000000000000617114273615123013672 00000000000000/* Provide a more complete sys/types.h. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _WIN32 && !defined __CYGWIN__ \ && (defined __need_off_t || defined __need___off64_t \ || defined __need_ssize_t || defined __need_time_t) /* Special invocation convention inside mingw header files. */ #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SYS_TYPES_H /* The include_next requires a split double-inclusion guard. */ # define _GL_INCLUDING_SYS_TYPES_H #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ # undef _GL_INCLUDING_SYS_TYPES_H #ifndef _@GUARD_PREFIX@_SYS_TYPES_H #define _@GUARD_PREFIX@_SYS_TYPES_H /* Override off_t if Large File Support is requested on native Windows. */ #if @WINDOWS_64_BIT_OFF_T@ /* Same as int64_t in . */ # if defined _MSC_VER # define off_t __int64 # else # define off_t long long int # endif /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_64_BIT_OFF_T 1 #endif /* Override dev_t and ino_t if distinguishable inodes support is requested on native Windows. */ #if @WINDOWS_STAT_INODES@ # if @WINDOWS_STAT_INODES@ == 2 /* Experimental, not useful in Windows 10. */ /* Define dev_t to a 64-bit type. */ # if !defined GNULIB_defined_dev_t typedef unsigned long long int rpl_dev_t; # undef dev_t # define dev_t rpl_dev_t # define GNULIB_defined_dev_t 1 # endif /* Define ino_t to a 128-bit type. */ # if !defined GNULIB_defined_ino_t /* MSVC does not have a 128-bit integer type. GCC has a 128-bit integer type __int128, but only on 64-bit targets. */ typedef struct { unsigned long long int _gl_ino[2]; } rpl_ino_t; # undef ino_t # define ino_t rpl_ino_t # define GNULIB_defined_ino_t 1 # endif # else /* @WINDOWS_STAT_INODES@ == 1 */ /* Define ino_t to a 64-bit type. */ # if !defined GNULIB_defined_ino_t typedef unsigned long long int rpl_ino_t; # undef ino_t # define ino_t rpl_ino_t # define GNULIB_defined_ino_t 1 # endif # endif /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_STAT_INODES @WINDOWS_STAT_INODES@ #endif /* MSVC 9 defines size_t in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (defined _WIN32 && ! defined __CYGWIN__) && ! defined __GLIBC__ # include #endif #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */ #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */ #endif /* __need_XXX */ shishi-1.0.3/lib/gl/sys_select.in.h0000644000000000000000000003126614273615123014010 00000000000000/* Substitute for . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ # if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ # endif @PRAGMA_COLUMNS@ /* On OSF/1 and Solaris 2.6, and both include . On Cygwin and OpenBSD, includes . Simply delegate to the system's header in this case. */ #if (@HAVE_SYS_SELECT_H@ \ && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H \ && ((defined __osf__ && defined _SYS_TYPES_H_ \ && defined _OSF_SOURCE) \ || (defined __sun && defined _SYS_TYPES_H \ && (! (defined _XOPEN_SOURCE || defined _POSIX_C_SOURCE) \ || defined __EXTENSIONS__)))) # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ #elif (@HAVE_SYS_SELECT_H@ \ && (defined _CYGWIN_SYS_TIME_H \ || (!defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H \ && ((defined __osf__ && defined _SYS_TIME_H_ \ && defined _OSF_SOURCE) \ || (defined __OpenBSD__ && defined _SYS_TIME_H_) \ || (defined __sun && defined _SYS_TIME_H \ && (! (defined _XOPEN_SOURCE \ || defined _POSIX_C_SOURCE) \ || defined __EXTENSIONS__)))))) # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ /* On IRIX 6.5, includes , which includes , which includes . At this point we cannot include , because that includes , which gives a syntax error because has not been completely processed. Simply delegate to the system's header in this case. */ #elif @HAVE_SYS_SELECT_H@ && defined __sgi && (defined _SYS_BSD_TYPES_H && !defined _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H) # define _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_BSD_TYPES_H # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ /* On OpenBSD 5.0, includes , which includes . At this point we cannot include , because that includes gnulib's pthread.h override, which gives a syntax error because /usr/include/pthread.h has not been completely processed. Simply delegate to the system's header in this case. */ #elif @HAVE_SYS_SELECT_H@ && defined __OpenBSD__ && (defined _PTHREAD_H_ && !defined PTHREAD_MUTEX_INITIALIZER) # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ #else #ifndef _@GUARD_PREFIX@_SYS_SELECT_H /* On many platforms, assumes prior inclusion of . Also, mingw defines sigset_t there, instead of in where it belongs. */ #include #if @HAVE_SYS_SELECT_H@ /* On OSF/1 4.0, provides only a forward declaration of 'struct timeval', and no definition of this type. Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select() in . But avoid namespace pollution on glibc systems and "unknown type name" problems on Cygwin. */ # if !(defined __GLIBC__ || defined __CYGWIN__) # include # endif /* On AIX 7 and Solaris 10, provides an FD_ZERO implementation that relies on memset(), but without including . But in any case avoid namespace pollution on glibc systems. */ # if (defined __OpenBSD__ || defined _AIX || defined __sun || defined __osf__ || defined __BEOS__) \ && ! defined __GLIBC__ # include # endif /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ #endif /* Get definition of 'sigset_t'. But avoid namespace pollution on glibc systems and "unknown type name" problems on Cygwin. On OS/2 kLIBC, sigset_t is defined in , too. In addition, if is included, -> -> are included. Then -> are included by GNULIB. By the way, requires PAGE_SIZE defined in . However, has not been processed, yet. As a result, 'PAGE_SIZE' undeclared error occurs in . Do this after the include_next (for the sake of OpenBSD 5.0) but before the split double-inclusion guard (for the sake of Solaris). */ #if !((defined __GLIBC__ || defined __CYGWIN__ || defined __KLIBC__) \ && !defined __UCLIBC__) # include #endif #ifndef _@GUARD_PREFIX@_SYS_SELECT_H #define _@GUARD_PREFIX@_SYS_SELECT_H #if !@HAVE_SYS_SELECT_H@ /* A platform that lacks . */ /* Get the 'struct timeval' and 'fd_set' types and the FD_* macros on most platforms. */ # include /* On HP-UX 11, provides an FD_ZERO implementation that relies on memset(), but without including . */ # if defined __hpux # include # endif /* On native Windows platforms: Get the 'fd_set' type. Get the close() declaration before we override it. */ # if @HAVE_WINSOCK2_H@ # if !defined _GL_INCLUDING_WINSOCK2_H # define _GL_INCLUDING_WINSOCK2_H # include # undef _GL_INCLUDING_WINSOCK2_H # endif # include # endif #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Fix some definitions from . */ #if @HAVE_WINSOCK2_H@ # if !GNULIB_defined_rpl_fd_isset /* Re-define FD_ISSET to avoid a WSA call while we are not using network sockets. */ static int rpl_fd_isset (SOCKET fd, fd_set * set) { u_int i; if (set == NULL) return 0; for (i = 0; i < set->fd_count; i++) if (set->fd_array[i] == fd) return 1; return 0; } # define GNULIB_defined_rpl_fd_isset 1 # endif # undef FD_ISSET # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) #endif /* Hide some function declarations from . */ #if @HAVE_WINSOCK2_H@ # if !defined _@GUARD_PREFIX@_UNISTD_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef close # define close close_used_without_including_unistd_h # elif !defined __clang__ _GL_WARN_ON_USE (close, "close() used without including "); # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname gethostname_used_without_including_unistd_h # elif !defined __clang__ _GL_WARN_ON_USE (gethostname, "gethostname() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef socket # define socket socket_used_without_including_sys_socket_h # undef connect # define connect connect_used_without_including_sys_socket_h # undef accept # define accept accept_used_without_including_sys_socket_h # undef bind # define bind bind_used_without_including_sys_socket_h # undef getpeername # define getpeername getpeername_used_without_including_sys_socket_h # undef getsockname # define getsockname getsockname_used_without_including_sys_socket_h # undef getsockopt # define getsockopt getsockopt_used_without_including_sys_socket_h # undef listen # define listen listen_used_without_including_sys_socket_h # undef recv # define recv recv_used_without_including_sys_socket_h # undef send # define send send_used_without_including_sys_socket_h # undef recvfrom # define recvfrom recvfrom_used_without_including_sys_socket_h # undef sendto # define sendto sendto_used_without_including_sys_socket_h # undef setsockopt # define setsockopt setsockopt_used_without_including_sys_socket_h # undef shutdown # define shutdown shutdown_used_without_including_sys_socket_h # elif !defined __clang__ _GL_WARN_ON_USE (socket, "socket() used without including "); _GL_WARN_ON_USE (connect, "connect() used without including "); _GL_WARN_ON_USE (accept, "accept() used without including "); _GL_WARN_ON_USE (bind, "bind() used without including "); _GL_WARN_ON_USE (getpeername, "getpeername() used without including "); _GL_WARN_ON_USE (getsockname, "getsockname() used without including "); _GL_WARN_ON_USE (getsockopt, "getsockopt() used without including "); _GL_WARN_ON_USE (listen, "listen() used without including "); _GL_WARN_ON_USE (recv, "recv() used without including "); _GL_WARN_ON_USE (send, "send() used without including "); _GL_WARN_ON_USE (recvfrom, "recvfrom() used without including "); _GL_WARN_ON_USE (sendto, "sendto() used without including "); _GL_WARN_ON_USE (setsockopt, "setsockopt() used without including "); _GL_WARN_ON_USE (shutdown, "shutdown() used without including "); # endif # endif #endif #if @GNULIB_PSELECT@ # if @REPLACE_PSELECT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pselect # define pselect rpl_pselect # endif _GL_FUNCDECL_RPL (pselect, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timespec const *restrict, const sigset_t *restrict)); _GL_CXXALIAS_RPL (pselect, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timespec const *restrict, const sigset_t *restrict)); # else # if !@HAVE_PSELECT@ _GL_FUNCDECL_SYS (pselect, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timespec const *restrict, const sigset_t *restrict)); # endif /* Need to cast, because on AIX 7, the second, third, fourth argument may be void *restrict, void *restrict, void *restrict. */ _GL_CXXALIAS_SYS_CAST (pselect, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timespec const *restrict, const sigset_t *restrict)); # endif _GL_CXXALIASWARN (pselect); #elif defined GNULIB_POSIXCHECK # undef pselect # if HAVE_RAW_DECL_PSELECT _GL_WARN_ON_USE (pselect, "pselect is not portable - " "use gnulib module pselect for portability"); # endif #endif #if @GNULIB_SELECT@ # if @REPLACE_SELECT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef select # define select rpl_select # endif _GL_FUNCDECL_RPL (select, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, struct timeval *restrict)); _GL_CXXALIAS_RPL (select, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, timeval *restrict)); # else _GL_CXXALIAS_SYS (select, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, timeval *restrict)); # endif _GL_CXXALIASWARN (select); #elif @HAVE_WINSOCK2_H@ # undef select # define select select_used_without_requesting_gnulib_module_select #elif defined GNULIB_POSIXCHECK # undef select # if HAVE_RAW_DECL_SELECT _GL_WARN_ON_USE (select, "select is not always POSIX compliant - " "use gnulib module select for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_SYS_SELECT_H */ #endif /* _@GUARD_PREFIX@_SYS_SELECT_H */ #endif /* OSF/1 */ shishi-1.0.3/lib/gl/stat-w32.c0000644000000000000000000004422414273615123012603 00000000000000/* Core of implementation of fstat and stat for native Windows. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible. */ #include #if defined _WIN32 && ! defined __CYGWIN__ /* Attempt to make define FILE_ID_INFO. But ensure that the redefinition of _WIN32_WINNT does not make us assume Windows Vista or newer when building for an older version of Windows. */ #if HAVE_SDKDDKVER_H # include # if _WIN32_WINNT >= _WIN32_WINNT_VISTA # define WIN32_ASSUME_VISTA 1 # else # define WIN32_ASSUME_VISTA 0 # endif # if !defined _WIN32_WINNT || (_WIN32_WINNT < _WIN32_WINNT_WIN8) # undef _WIN32_WINNT # define _WIN32_WINNT _WIN32_WINNT_WIN8 # endif #else # define WIN32_ASSUME_VISTA (_WIN32_WINNT >= _WIN32_WINNT_VISTA) #endif #include #include #include #include #include #include #include /* Specification. */ #include "stat-w32.h" #include "pathmax.h" #include "verify.h" /* Don't assume that UNICODE is not defined. */ #undef LoadLibrary #define LoadLibrary LoadLibraryA #undef GetFinalPathNameByHandle #define GetFinalPathNameByHandle GetFinalPathNameByHandleA /* Older mingw headers do not define VOLUME_NAME_NONE. */ #ifndef VOLUME_NAME_NONE # define VOLUME_NAME_NONE 4 #endif #if !WIN32_ASSUME_VISTA /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress # if _GL_WINDOWS_STAT_INODES == 2 /* GetFileInformationByHandleEx was introduced only in Windows Vista. */ typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile, FILE_INFO_BY_HANDLE_CLASS fiClass, LPVOID lpBuffer, DWORD dwBufferSize); static GetFileInformationByHandleExFuncType GetFileInformationByHandleExFunc = NULL; # endif /* GetFinalPathNameByHandle was introduced only in Windows Vista. */ typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile, LPSTR lpFilePath, DWORD lenFilePath, DWORD dwFlags); static GetFinalPathNameByHandleFuncType GetFinalPathNameByHandleFunc = NULL; static BOOL initialized = FALSE; static void initialize (void) { HMODULE kernel32 = LoadLibrary ("kernel32.dll"); if (kernel32 != NULL) { # if _GL_WINDOWS_STAT_INODES == 2 GetFileInformationByHandleExFunc = (GetFileInformationByHandleExFuncType) GetProcAddress (kernel32, "GetFileInformationByHandleEx"); # endif GetFinalPathNameByHandleFunc = (GetFinalPathNameByHandleFuncType) GetProcAddress (kernel32, "GetFinalPathNameByHandleA"); } initialized = TRUE; } #else # define GetFileInformationByHandleExFunc GetFileInformationByHandleEx # define GetFinalPathNameByHandleFunc GetFinalPathNameByHandle #endif /* Converts a FILETIME to GMT time since 1970-01-01 00:00:00. */ #if _GL_WINDOWS_STAT_TIMESPEC struct timespec _gl_convert_FILETIME_to_timespec (const FILETIME *ft) { struct timespec result; /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; if (since_1601 == 0) { result.tv_sec = 0; result.tv_nsec = 0; } else { /* Between 1601-01-01 and 1970-01-01 there were 280 normal years and 89 leap years, in total 134774 days. */ unsigned long long since_1970 = since_1601 - (unsigned long long) 134774 * (unsigned long long) 86400 * (unsigned long long) 10000000; result.tv_sec = since_1970 / (unsigned long long) 10000000; result.tv_nsec = (unsigned long) (since_1970 % (unsigned long long) 10000000) * 100; } return result; } #else time_t _gl_convert_FILETIME_to_POSIX (const FILETIME *ft) { /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; if (since_1601 == 0) return 0; else { /* Between 1601-01-01 and 1970-01-01 there were 280 normal years and 89 leap years, in total 134774 days. */ unsigned long long since_1970 = since_1601 - (unsigned long long) 134774 * (unsigned long long) 86400 * (unsigned long long) 10000000; return since_1970 / (unsigned long long) 10000000; } } #endif /* Fill *BUF with information about the file designated by H. PATH is the file name, if known, otherwise NULL. Return 0 if successful, or -1 with errno set upon failure. */ int _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf) { /* GetFileType */ DWORD type = GetFileType (h); if (type == FILE_TYPE_DISK) { #if !WIN32_ASSUME_VISTA if (!initialized) initialize (); #endif /* st_mode can be determined through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileBasicInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ BY_HANDLE_FILE_INFORMATION info; if (! GetFileInformationByHandle (h, &info)) goto failed; /* Test for error conditions before starting to fill *buf. */ if (sizeof (buf->st_size) <= 4 && info.nFileSizeHigh > 0) { errno = EOVERFLOW; return -1; } #if _GL_WINDOWS_STAT_INODES /* st_ino can be determined through GetFileInformationByHandle as 64 bits, or through GetFileInformationByHandleEx with argument FileIdInfo as 128 bits. The latter requires -D_WIN32_WINNT=_WIN32_WINNT_WIN8 or higher. */ /* Experiments show that GetFileInformationByHandleEx does not provide much more information than GetFileInformationByHandle: * The dwVolumeSerialNumber from GetFileInformationByHandle is equal to the low 32 bits of the 64-bit VolumeSerialNumber from GetFileInformationByHandleEx, and is apparently sufficient for identifying the device. * The nFileIndex from GetFileInformationByHandle is equal to the low 64 bits of the 128-bit FileId from GetFileInformationByHandleEx, and the high 64 bits of this 128-bit FileId are zero. * On a FAT file system, GetFileInformationByHandleEx fails with error ERROR_INVALID_PARAMETER, whereas GetFileInformationByHandle succeeds. * On a CIFS/SMB file system, GetFileInformationByHandleEx fails with error ERROR_INVALID_LEVEL, whereas GetFileInformationByHandle succeeds. */ # if _GL_WINDOWS_STAT_INODES == 2 if (GetFileInformationByHandleExFunc != NULL) { FILE_ID_INFO id; if (GetFileInformationByHandleExFunc (h, FileIdInfo, &id, sizeof (id))) { buf->st_dev = id.VolumeSerialNumber; verify (sizeof (ino_t) == sizeof (id.FileId)); memcpy (&buf->st_ino, &id.FileId, sizeof (ino_t)); goto ino_done; } else { switch (GetLastError ()) { case ERROR_INVALID_PARAMETER: /* older Windows version, or FAT */ case ERROR_INVALID_LEVEL: /* CIFS/SMB file system */ goto fallback; default: goto failed; } } } fallback: ; /* Fallback for older Windows versions. */ buf->st_dev = info.dwVolumeSerialNumber; buf->st_ino._gl_ino[0] = ((ULONGLONG) info.nFileIndexHigh << 32) | (ULONGLONG) info.nFileIndexLow; buf->st_ino._gl_ino[1] = 0; ino_done: ; # else /* _GL_WINDOWS_STAT_INODES == 1 */ buf->st_dev = info.dwVolumeSerialNumber; buf->st_ino = ((ULONGLONG) info.nFileIndexHigh << 32) | (ULONGLONG) info.nFileIndexLow; # endif #else /* st_ino is not wide enough for identifying a file on a device. Without st_ino, st_dev is pointless. */ buf->st_dev = 0; buf->st_ino = 0; #endif /* st_mode. */ unsigned int mode = /* XXX How to handle FILE_ATTRIBUTE_REPARSE_POINT ? */ ((info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? _S_IFDIR | S_IEXEC_UGO : _S_IFREG) | S_IREAD_UGO | ((info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? 0 : S_IWRITE_UGO); if (!(info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { /* Determine whether the file is executable by looking at the file name suffix. If the file name is already known, use it. Otherwise, for non-empty files, it can be determined through GetFinalPathNameByHandle or through GetFileInformationByHandleEx with argument FileNameInfo Both require -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (info.nFileSizeHigh > 0 || info.nFileSizeLow > 0) { char fpath[PATH_MAX]; if (path != NULL || (GetFinalPathNameByHandleFunc != NULL && GetFinalPathNameByHandleFunc (h, fpath, sizeof (fpath), VOLUME_NAME_NONE) < sizeof (fpath) && (path = fpath, 1))) { const char *last_dot = NULL; const char *p; for (p = path; *p != '\0'; p++) if (*p == '.') last_dot = p; if (last_dot != NULL) { const char *suffix = last_dot + 1; if (_stricmp (suffix, "exe") == 0 || _stricmp (suffix, "bat") == 0 || _stricmp (suffix, "cmd") == 0 || _stricmp (suffix, "com") == 0) mode |= S_IEXEC_UGO; } } else /* Cannot determine file name. Pretend that it is executable. */ mode |= S_IEXEC_UGO; } } buf->st_mode = mode; /* st_nlink can be determined through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileStandardInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ buf->st_nlink = (info.nNumberOfLinks > SHRT_MAX ? SHRT_MAX : info.nNumberOfLinks); /* There's no easy way to map the Windows SID concept to an integer. */ buf->st_uid = 0; buf->st_gid = 0; /* st_rdev is irrelevant for normal files and directories. */ buf->st_rdev = 0; /* st_size can be determined through GetFileSizeEx or through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileStandardInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (sizeof (buf->st_size) <= 4) /* Range check already done above. */ buf->st_size = info.nFileSizeLow; else buf->st_size = ((long long) info.nFileSizeHigh << 32) | (long long) info.nFileSizeLow; /* st_atime, st_mtime, st_ctime can be determined through GetFileTime or through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileBasicInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ #if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim = _gl_convert_FILETIME_to_timespec (&info.ftLastAccessTime); buf->st_mtim = _gl_convert_FILETIME_to_timespec (&info.ftLastWriteTime); buf->st_ctim = _gl_convert_FILETIME_to_timespec (&info.ftCreationTime); #else buf->st_atime = _gl_convert_FILETIME_to_POSIX (&info.ftLastAccessTime); buf->st_mtime = _gl_convert_FILETIME_to_POSIX (&info.ftLastWriteTime); buf->st_ctime = _gl_convert_FILETIME_to_POSIX (&info.ftCreationTime); #endif return 0; } else if (type == FILE_TYPE_CHAR || type == FILE_TYPE_PIPE) { buf->st_dev = 0; #if _GL_WINDOWS_STAT_INODES == 2 buf->st_ino._gl_ino[0] = buf->st_ino._gl_ino[1] = 0; #else buf->st_ino = 0; #endif buf->st_mode = (type == FILE_TYPE_PIPE ? _S_IFIFO : _S_IFCHR); buf->st_nlink = 1; buf->st_uid = 0; buf->st_gid = 0; buf->st_rdev = 0; if (type == FILE_TYPE_PIPE) { /* PeekNamedPipe */ DWORD bytes_available; if (PeekNamedPipe (h, NULL, 0, NULL, &bytes_available, NULL)) buf->st_size = bytes_available; else buf->st_size = 0; } else buf->st_size = 0; #if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim.tv_sec = 0; buf->st_atim.tv_nsec = 0; buf->st_mtim.tv_sec = 0; buf->st_mtim.tv_nsec = 0; buf->st_ctim.tv_sec = 0; buf->st_ctim.tv_nsec = 0; #else buf->st_atime = 0; buf->st_mtime = 0; buf->st_ctime = 0; #endif return 0; } else { errno = ENOENT; return -1; } failed: { DWORD error = GetLastError (); #if 0 fprintf (stderr, "_gl_fstat_by_handle error 0x%x\n", (unsigned int) error); #endif switch (error) { case ERROR_ACCESS_DENIED: case ERROR_SHARING_VIOLATION: errno = EACCES; break; case ERROR_OUTOFMEMORY: errno = ENOMEM; break; case ERROR_WRITE_FAULT: case ERROR_READ_FAULT: case ERROR_GEN_FAILURE: errno = EIO; break; default: errno = EINVAL; break; } return -1; } } #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; #endif shishi-1.0.3/lib/gl/m4/0000755000000000000000000000000014273616162011451 500000000000000shishi-1.0.3/lib/gl/m4/ssize_t.m40000644000000000000000000000146314273615122013312 00000000000000# ssize_t.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2001-2003, 2006, 2010-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether ssize_t is defined. AC_DEFUN([gt_TYPE_SSIZE_T], [ AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x;]])], [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) if test $gt_cv_ssize_t = no; then AC_DEFINE([ssize_t], [int], [Define as a signed type of the same size as size_t.]) fi ]) shishi-1.0.3/lib/gl/m4/vasnprintf.m40000644000000000000000000002160414273615123014024 00000000000000# vasnprintf.m4 serial 38 dnl Copyright (C) 2002-2004, 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_VASNPRINTF], [ AC_CHECK_FUNCS_ONCE([vasnprintf]) if test $ac_cv_func_vasnprintf = no; then gl_REPLACE_VASNPRINTF fi ]) AC_DEFUN([gl_REPLACE_VASNPRINTF], [ AC_CHECK_FUNCS_ONCE([vasnprintf]) AC_LIBOBJ([vasnprintf]) AC_LIBOBJ([printf-args]) AC_LIBOBJ([printf-parse]) AC_LIBOBJ([asnprintf]) if test $ac_cv_func_vasnprintf = yes; then AC_DEFINE([REPLACE_VASNPRINTF], [1], [Define if vasnprintf exists but is overridden by gnulib.]) fi gl_PREREQ_PRINTF_ARGS gl_PREREQ_PRINTF_PARSE gl_PREREQ_VASNPRINTF gl_PREREQ_ASNPRINTF ]) # Prerequisites of lib/printf-args.h, lib/printf-args.c. AC_DEFUN([gl_PREREQ_PRINTF_ARGS], [ AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) ]) # Prerequisites of lib/printf-parse.h, lib/printf-parse.c. AC_DEFUN([gl_PREREQ_PRINTF_PARSE], [ AC_REQUIRE([gl_FEATURES_H]) AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) AC_REQUIRE([AC_TYPE_SIZE_T]) AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_REQUIRE([gt_AC_TYPE_INTMAX_T]) ]) # Prerequisites of lib/vasnprintf.c. AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF], [ AC_REQUIRE([AC_FUNC_ALLOCA]) AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). AC_CHECK_DECLS([_snprintf], , , [[#include ]]) dnl Knowing DBL_EXPBIT0_WORD and DBL_EXPBIT0_BIT enables an optimization dnl in the code for NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE. AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION]) dnl We can avoid a lot of code by assuming that snprintf's return value dnl conforms to ISO C99. So check that. AC_REQUIRE([gl_SNPRINTF_RETVAL_C99]) case "$gl_cv_func_snprintf_retval_c99" in *yes) AC_DEFINE([HAVE_SNPRINTF_RETVAL_C99], [1], [Define if the return value of the snprintf function is the number of of bytes (excluding the terminating NUL) that would have been produced if the buffer had been large enough.]) ;; esac dnl Additionally, the use of %n can be eliminated by assuming that snprintf dnl always produces NUL-terminated strings (no truncation). AC_REQUIRE([gl_SNPRINTF_TRUNCATION_C99]) case "$gl_cv_func_snprintf_truncation_c99" in *yes) AC_DEFINE([HAVE_SNPRINTF_TRUNCATION_C99], [1], [Define if the string produced by the snprintf function is always NUL terminated.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting 'long double' # arguments. AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], [ AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) case "$gl_cv_func_printf_long_double" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'double' # arguments. AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE], [ AC_REQUIRE([gl_PRINTF_INFINITE]) case "$gl_cv_func_printf_infinite" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for infinite 'double' arguments.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'long double' # arguments. AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE], [ AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE]) dnl There is no need to set NEED_PRINTF_INFINITE_LONG_DOUBLE if dnl NEED_PRINTF_LONG_DOUBLE is already set. AC_REQUIRE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE]) case "$gl_cv_func_printf_long_double" in *yes) case "$gl_cv_func_printf_infinite_long_double" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for infinite 'long double' arguments.]) ;; esac ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the 'a' directive. AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A], [ AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) case "$gl_cv_func_printf_directive_a" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], [1], [Define if the vasnprintf implementation needs special code for the 'a' and 'A' directives.]) AC_CHECK_FUNCS([nl_langinfo]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the 'F' directive. AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_F], [ AC_REQUIRE([gl_PRINTF_DIRECTIVE_F]) case "$gl_cv_func_printf_directive_f" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], [1], [Define if the vasnprintf implementation needs special code for the 'F' directive.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the 'ls' directive. AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_LS], [ AC_REQUIRE([gl_PRINTF_DIRECTIVE_LS]) case "$gl_cv_func_printf_directive_ls" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_DIRECTIVE_LS], [1], [Define if the vasnprintf implementation needs special code for the 'ls' directive.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the ' flag. AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING], [ AC_REQUIRE([gl_PRINTF_FLAG_GROUPING]) case "$gl_cv_func_printf_flag_grouping" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], [1], [Define if the vasnprintf implementation needs special code for the ' flag.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the '-' flag. AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST], [ AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST]) case "$gl_cv_func_printf_flag_leftadjust" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], [1], [Define if the vasnprintf implementation needs special code for the '-' flag.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag. AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO], [ AC_REQUIRE([gl_PRINTF_FLAG_ZERO]) case "$gl_cv_func_printf_flag_zero" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_FLAG_ZERO], [1], [Define if the vasnprintf implementation needs special code for the 0 flag.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for supporting large precisions. AC_DEFUN([gl_PREREQ_VASNPRINTF_PRECISION], [ AC_REQUIRE([gl_PRINTF_PRECISION]) case "$gl_cv_func_printf_precision" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], [1], [Define if the vasnprintf implementation needs special code for supporting large precisions without arbitrary bounds.]) AC_DEFINE([NEED_PRINTF_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'double' arguments.]) AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; esac ]) # Extra prerequisites of lib/vasnprintf.c for surviving out-of-memory # conditions. AC_DEFUN([gl_PREREQ_VASNPRINTF_ENOMEM], [ AC_REQUIRE([gl_PRINTF_ENOMEM]) case "$gl_cv_func_printf_enomem" in *yes) ;; *) AC_DEFINE([NEED_PRINTF_ENOMEM], [1], [Define if the vasnprintf implementation needs special code for surviving out-of-memory conditions.]) AC_DEFINE([NEED_PRINTF_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'double' arguments.]) AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], [1], [Define if the vasnprintf implementation needs special code for 'long double' arguments.]) ;; esac ]) # Prerequisites of lib/vasnprintf.c including all extras for POSIX compliance. AC_DEFUN([gl_PREREQ_VASNPRINTF_WITH_EXTRAS], [ AC_REQUIRE([gl_PREREQ_VASNPRINTF]) gl_PREREQ_VASNPRINTF_LONG_DOUBLE gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE gl_PREREQ_VASNPRINTF_DIRECTIVE_A gl_PREREQ_VASNPRINTF_DIRECTIVE_F gl_PREREQ_VASNPRINTF_DIRECTIVE_LS gl_PREREQ_VASNPRINTF_FLAG_GROUPING gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST gl_PREREQ_VASNPRINTF_FLAG_ZERO gl_PREREQ_VASNPRINTF_PRECISION gl_PREREQ_VASNPRINTF_ENOMEM ]) # Prerequisites of lib/asnprintf.c. AC_DEFUN([gl_PREREQ_ASNPRINTF], [ ]) shishi-1.0.3/lib/gl/m4/gettime.m40000644000000000000000000000116614273615122013270 00000000000000# gettime.m4 serial 11 dnl Copyright (C) 2002, 2004-2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GETTIME], [ dnl Prerequisites of lib/gettime.c. AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TIMESPEC]) AC_CHECK_FUNCS_ONCE([timespec_get]) ]) AC_DEFUN([gl_GETTIME_RES], [ dnl Prerequisites of lib/gettime-res.c. AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TIMESPEC]) AC_CHECK_FUNCS_ONCE([timespec_getres]) ]) shishi-1.0.3/lib/gl/m4/readlink.m40000644000000000000000000000773114273615122013427 00000000000000# readlink.m4 serial 16 dnl Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_READLINK], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_FUNCS_ONCE([readlink]) if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 else AC_CACHE_CHECK([whether readlink signature is correct], [gl_cv_decl_readlink_works], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include /* Cause compilation failure if original declaration has wrong type. */ ssize_t readlink (const char *, char *, size_t);]])], [gl_cv_decl_readlink_works=yes], [gl_cv_decl_readlink_works=no])]) dnl Solaris 9 ignores trailing slash. dnl FreeBSD 7.2 dereferences only one level of links with trailing slash. AC_CACHE_CHECK([whether readlink handles trailing slash correctly], [gl_cv_func_readlink_trailing_slash], [# We have readlink, so assume ln -s works. ln -s conftest.no-such conftest.link ln -s conftest.link conftest.lnk2 AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[char buf[20]; return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;]])], [gl_cv_func_readlink_trailing_slash=yes], [gl_cv_func_readlink_trailing_slash=no], [case "$host_os" in # Guess yes on Linux or glibc systems. linux-* | linux | *-gnu* | gnu*) gl_cv_func_readlink_trailing_slash="guessing yes" ;; # Guess no on AIX or HP-UX. aix* | hpux*) gl_cv_func_readlink_trailing_slash="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.link conftest.lnk2]) case "$gl_cv_func_readlink_trailing_slash" in *yes) if test "$gl_cv_decl_readlink_works" != yes; then REPLACE_READLINK=1 fi ;; *) AC_DEFINE([READLINK_TRAILING_SLASH_BUG], [1], [Define to 1 if readlink fails to recognize a trailing slash.]) REPLACE_READLINK=1 ;; esac AC_CACHE_CHECK([whether readlink truncates results correctly], [gl_cv_func_readlink_truncate], [# We have readlink, so assume ln -s works. ln -s ab conftest.link AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[char c; return readlink ("conftest.link", &c, 1) != 1;]])], [gl_cv_func_readlink_truncate=yes], [gl_cv_func_readlink_truncate=no], [case "$host_os" in # Guess yes on Linux or glibc systems. linux-* | linux | *-gnu* | gnu*) gl_cv_func_readlink_truncate="guessing yes" ;; # Guess no on AIX or HP-UX. aix* | hpux*) gl_cv_func_readlink_truncate="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.link conftest.lnk2]) case $gl_cv_func_readlink_truncate in *yes) if test "$gl_cv_decl_readlink_works" != yes; then REPLACE_READLINK=1 fi ;; *) AC_DEFINE([READLINK_TRUNCATE_BUG], [1], [Define to 1 if readlink sets errno instead of truncating a too-long link.]) REPLACE_READLINK=1 ;; esac fi ]) # Like gl_FUNC_READLINK, except prepare for separate compilation # (no REPLACE_READLINK, no AC_LIBOBJ). AC_DEFUN([gl_FUNC_READLINK_SEPARATE], [ AC_CHECK_FUNCS_ONCE([readlink]) gl_PREREQ_READLINK ]) # Prerequisites of lib/readlink.c. AC_DEFUN([gl_PREREQ_READLINK], [ : ]) shishi-1.0.3/lib/gl/m4/timespec.m40000644000000000000000000000051514273615123013441 00000000000000#serial 15 # Copyright (C) 2000-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl From Jim Meyering AC_DEFUN([gl_TIMESPEC], [:]) shishi-1.0.3/lib/gl/m4/float_h.m40000644000000000000000000000543514273615122013251 00000000000000# float_h.m4 serial 13 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FLOAT_H], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) GL_GENERATE_FLOAT_H=false REPLACE_FLOAT_LDBL=0 case "$host_os" in aix* | beos* | openbsd* | mirbsd* | irix*) GL_GENERATE_FLOAT_H=true ;; freebsd* | dragonfly*) case "$host_cpu" in changequote(,)dnl i[34567]86 ) changequote([,])dnl GL_GENERATE_FLOAT_H=true ;; x86_64 ) # On x86_64 systems, the C compiler may still be generating # 32-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ || defined __x86_64__ || defined __amd64__ int ok; #else error fail #endif ]])], [], [GL_GENERATE_FLOAT_H=true]) ;; esac ;; linux*) case "$host_cpu" in powerpc*) GL_GENERATE_FLOAT_H=true ;; esac ;; esac case "$host_os" in aix* | freebsd* | dragonfly* | linux*) if $GL_GENERATE_FLOAT_H; then REPLACE_FLOAT_LDBL=1 fi ;; esac dnl Test against glibc-2.7 Linux/SPARC64 bug. REPLACE_ITOLD=0 AC_CACHE_CHECK([whether conversion from 'int' to 'long double' works], [gl_cv_func_itold_works], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ int i = -1; volatile long double ld; int main () { ld += i * 1.0L; if (ld > 0) return 1; return 0; }]])], [gl_cv_func_itold_works=yes], [gl_cv_func_itold_works=no], [case "$host" in sparc*-*-linux*) AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ || defined __arch64__ int ok; #else error fail #endif ]])], [gl_cv_func_itold_works="guessing no"], [gl_cv_func_itold_works="guessing yes"]) ;; # Guess yes on native Windows. mingw*) gl_cv_func_itold_works="guessing yes" ;; *) gl_cv_func_itold_works="guessing yes" ;; esac ]) ]) case "$gl_cv_func_itold_works" in *no) REPLACE_ITOLD=1 dnl We add the workaround to but also to , dnl to increase the chances that the fix function gets pulled in. GL_GENERATE_FLOAT_H=true ;; esac if $GL_GENERATE_FLOAT_H; then gl_NEXT_HEADERS([float.h]) fi AC_SUBST([REPLACE_ITOLD]) ]) shishi-1.0.3/lib/gl/m4/hostent.m40000644000000000000000000000317014273615122013313 00000000000000# hostent.m4 serial 4 dnl Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_HOSTENT], [ dnl Where are gethostent(), sethostent(), endhostent(), gethostbyname(), dnl gethostbyaddr() defined? dnl - On Solaris < 11.4, they are in libnsl. Ignore libxnet. dnl - On Haiku, they are in libnetwork. dnl - On BeOS, they are in libnet. dnl - On native Windows, they are in ws2_32.dll. dnl - Otherwise they are in libc. AC_REQUIRE([gl_SYS_SOCKET_H])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H HOSTENT_LIB= gl_saved_libs="$LIBS" AC_SEARCH_LIBS([gethostbyname], [nsl network net], [if test "$ac_cv_search_gethostbyname" != "none required"; then HOSTENT_LIB="$ac_cv_search_gethostbyname" fi]) LIBS="$gl_saved_libs" if test -z "$HOSTENT_LIB"; then AC_CHECK_FUNCS([gethostbyname], , [ AC_CACHE_CHECK([for gethostbyname in winsock2.h and -lws2_32], [gl_cv_w32_gethostbyname], [gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #ifdef HAVE_WINSOCK2_H #include #endif #include ]], [[gethostbyname(NULL);]])], [gl_cv_w32_gethostbyname=yes]) LIBS="$gl_save_LIBS" ]) if test "$gl_cv_w32_gethostbyname" = "yes"; then HOSTENT_LIB="-lws2_32" fi ]) fi AC_SUBST([HOSTENT_LIB]) ]) shishi-1.0.3/lib/gl/m4/xstrndup.m40000644000000000000000000000063114273615123013516 00000000000000# xstrndup.m4 serial 2 dnl Copyright (C) 2003, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSTRNDUP], [ gl_PREREQ_XSTRNDUP ]) # Prerequisites of lib/xstrndup.c. AC_DEFUN([gl_PREREQ_XSTRNDUP], [ : ]) shishi-1.0.3/lib/gl/m4/realloc.m40000644000000000000000000000433514273615122013254 00000000000000# realloc.m4 serial 26 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # This is adapted with modifications from upstream Autoconf here: # https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/functions.m4?id=v2.70#n1455 AC_DEFUN([_AC_FUNC_REALLOC_IF], [ AC_REQUIRE([AC_CANONICAL_HOST])dnl for cross-compiles AC_CACHE_CHECK([whether realloc (0, 0) returns nonnull], [ac_cv_func_realloc_0_nonnull], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[void *p = realloc (0, 0); int result = !p; free (p); return result;]]) ], [ac_cv_func_realloc_0_nonnull=yes], [ac_cv_func_realloc_0_nonnull=no], [case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | gnu* | *-musl* | midnightbsd* \ | hpux* | solaris* | cygwin* | mingw* | msys* ) ac_cv_func_realloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; esac ]) ]) AS_CASE([$ac_cv_func_realloc_0_nonnull], [*yes], [$1], [$2]) ])# AC_FUNC_REALLOC # gl_FUNC_REALLOC_GNU # ------------------- # Replace realloc if it is not compatible with GNU libc. AC_DEFUN([gl_FUNC_REALLOC_GNU], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_REALLOC_POSIX]) if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC_FOR_REALLOC_GNU=1]) fi ])# gl_FUNC_REALLOC_GNU # gl_FUNC_REALLOC_POSIX # --------------------- # Test whether 'realloc' is POSIX compliant (sets errno to ENOMEM when it # fails, and doesn't mess up with ptrdiff_t overflow), # and replace realloc if it is not. AC_DEFUN([gl_FUNC_REALLOC_POSIX], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_REALLOC_FOR_REALLOC_POSIX=1 fi ]) shishi-1.0.3/lib/gl/m4/year2038.m40000644000000000000000000001143714273615123013112 00000000000000# year2038.m4 serial 7 dnl Copyright (C) 2017-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Attempt to ensure that 'time_t' can go past the year 2038 and that dnl the functions 'time', 'stat', etc. work with post-2038 timestamps. AC_DEFUN([gl_YEAR2038_EARLY], [ AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw*) AC_DEFINE([__MINGW_USE_VC2005_COMPAT], [1], [For 64-bit time_t on 32-bit mingw.]) ;; esac ]) # gl_YEAR2038_TEST_INCLUDES # ------------------------- AC_DEFUN([gl_YEAR2038_TEST_INCLUDES], [[ #include /* Check that time_t can represent 2**32 - 1 correctly. */ #define LARGE_TIME_T \\ ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 && LARGE_TIME_T % 65537 == 0) ? 1 : -1]; ]]) # gl_YEAR2038_BODY(REQUIRE-YEAR2038-SAFE) ----------------------------------------- AC_DEFUN([gl_YEAR2038_BODY], [ AC_ARG_ENABLE([year2038], [ --disable-year2038 omit support for timestamps past the year 2038]) AS_IF([test "$enable_year2038" != no], [ dnl On many systems, time_t is already a 64-bit type. dnl On those systems where time_t is still 32-bit, it requires kernel dnl and libc support to make it 64-bit. For glibc 2.34 and later on Linux, dnl defining _TIME_BITS=64 and _FILE_OFFSET_BITS=64 is needed on x86 and ARM. dnl dnl On native Windows, the system include files define types __time32_t dnl and __time64_t. By default, time_t is an alias of dnl - __time32_t on 32-bit mingw, dnl - __time64_t on 64-bit mingw and on MSVC (since MSVC 8). dnl But when compiling with -D__MINGW_USE_VC2005_COMPAT, time_t is an dnl alias of __time64_t. dnl And when compiling with -D_USE_32BIT_TIME_T, time_t is an alias of dnl __time32_t. AC_CACHE_CHECK([for time_t past the year 2038], [gl_cv_type_time_t_y2038], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE([gl_YEAR2038_TEST_INCLUDES])], [gl_cv_type_time_t_y2038=yes], [gl_cv_type_time_t_y2038=no]) ]) if test "$gl_cv_type_time_t_y2038" = no; then AC_CACHE_CHECK([for 64-bit time_t with _TIME_BITS=64], [gl_cv_type_time_t_bits_macro], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[#define _TIME_BITS 64 #define _FILE_OFFSET_BITS 64 ]gl_YEAR2038_TEST_INCLUDES])], [gl_cv_type_time_t_bits_macro=yes], [gl_cv_type_time_t_bits_macro=no]) ]) if test "$gl_cv_type_time_t_bits_macro" = yes; then AC_DEFINE([_TIME_BITS], [64], [Number of bits in a timestamp, on hosts where this is settable.]) dnl AC_SYS_LARGFILE also defines this; it's OK if we do too. AC_DEFINE([_FILE_OFFSET_BITS], [64], [Number of bits in a file offset, on hosts where this is settable.]) gl_cv_type_time_t_y2038=yes fi fi if test $gl_cv_type_time_t_y2038 = no; then AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef _USE_32BIT_TIME_T int ok; #else error fail #endif ]])], [AC_MSG_FAILURE( [The 'time_t' type stops working after January 2038. Remove _USE_32BIT_TIME_T from the compiler flags.])], [# If not cross-compiling and $1 says we should check, # and 'touch' works with a large timestamp, then evidently wider time_t # is desired and supported, so fail and ask the builder to fix the # problem. Otherwise, just warn the builder. m4_ifval([$1], [if test $cross_compiling = no \ && TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null; then case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in *'Feb 7 2106'* | *'Feb 7 17:10'*) AC_MSG_FAILURE( [The 'time_t' type stops working after January 2038, and your system appears to support a wider 'time_t'. Try configuring with 'CC="${CC} -m64"'. To build with a 32-bit time_t anyway (not recommended), configure with '--disable-year2038'.]);; esac rm -f conftest.time fi]) if test "$gl_warned_about_y2038" != yes; then AC_MSG_WARN( [The 'time_t' type stops working after January 2038, and this package needs a wider 'time_t' type if there is any way to access timestamps after that. Configure with 'CC="${CC} -m64"' perhaps?]) gl_warned_about_y2038=yes fi ]) fi]) ]) AC_DEFUN([gl_YEAR2038], [ gl_YEAR2038_BODY([require-year2038-safe]) ]) shishi-1.0.3/lib/gl/m4/unistd_h.m40000644000000000000000000003362414273615123013454 00000000000000# unistd_h.m4 serial 90 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Simon Josefsson, Bruno Haible. AC_DEFUN_ONCE([gl_UNISTD_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([unistd.h]) if test $ac_cv_header_unistd_h = yes; then HAVE_UNISTD_H=1 else HAVE_UNISTD_H=0 fi AC_SUBST([HAVE_UNISTD_H]) dnl Ensure the type pid_t gets defined. AC_REQUIRE([AC_TYPE_PID_T]) dnl Determine WINDOWS_64_BIT_OFF_T. AC_REQUIRE([gl_TYPE_OFF_T]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ #if HAVE_UNISTD_H # include #endif /* Some systems declare various items in the wrong headers. */ #if !(defined __GLIBC__ && !defined __UCLIBC__) # include # include # include # if defined _WIN32 && ! defined __CYGWIN__ # include # endif #endif ]], [access chdir chown copy_file_range dup dup2 dup3 environ euidaccess execl execle execlp execv execve execvp execvpe faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getentropy getgroups gethostname getlogin getlogin_r getpagesize getpass getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat truncate ttyname_r unlink unlinkat usleep]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_DECLS_ONCE([execvpe]) if test $ac_cv_have_decl_execvpe = no; then HAVE_DECL_EXECVPE=0 fi ]) # gl_UNISTD_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_UNISTD_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_UNISTD_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_UNISTD_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_UNISTD_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCESS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHDIR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHOWN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CLOSE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COPY_FILE_RANGE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP2]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP3]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ENVIRON]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EUIDACCESS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECLE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECLP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVPE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FACCESSAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHDIR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHOWNAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FDATASYNC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSYNC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTRUNCATE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETCWD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDOMAINNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDTABLESIZE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETENTROPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETGROUPS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETHOSTNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOGIN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOGIN_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETOPT_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPAGESIZE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS_GNU]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUSERSHELL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GROUP_MEMBER]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISATTY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LCHOWN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LINK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LINKAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LSEEK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PIPE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PIPE2]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PREAD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PWRITE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READ]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READLINK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READLINKAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RMDIR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETHOSTNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SLEEP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYMLINK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYMLINKAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TRUNCATE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TTYNAME_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_NONBLOCKING]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_SIGPIPE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLINK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLINKAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_USLEEP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WRITE]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ACCESS], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CHDIR], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CLOSE], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_DUP], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_DUP2], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECL], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECLE], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECLP], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECV], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVE], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVP], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVPE], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETCWD], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETPID], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ISATTY], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_LSEEK], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_READ], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_RMDIR], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_SWAB], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_UNLINK], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_WRITE], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_UNISTD_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) ]) AC_DEFUN([gl_UNISTD_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN]) HAVE_COPY_FILE_RANGE=1; AC_SUBST([HAVE_COPY_FILE_RANGE]) HAVE_DUP3=1; AC_SUBST([HAVE_DUP3]) HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS]) HAVE_EXECVPE=1; AC_SUBST([HAVE_EXECVPE]) HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC]) HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) HAVE_GETENTROPY=1; AC_SUBST([HAVE_GETENTROPY]) HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS]) HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS]) HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) HAVE_LINK=1; AC_SUBST([HAVE_LINK]) HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT]) HAVE_PIPE=1; AC_SUBST([HAVE_PIPE]) HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2]) HAVE_PREAD=1; AC_SUBST([HAVE_PREAD]) HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME]) HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT]) HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) HAVE_DECL_EXECVPE=1; AC_SUBST([HAVE_DECL_EXECVPE]) HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC]) HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN]) HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME]) HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE]) HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R]) HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) REPLACE_ACCESS=0; AC_SUBST([REPLACE_ACCESS]) REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN]) REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) REPLACE_COPY_FILE_RANGE=0; AC_SUBST([REPLACE_COPY_FILE_RANGE]) REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) REPLACE_EXECL=0; AC_SUBST([REPLACE_EXECL]) REPLACE_EXECLE=0; AC_SUBST([REPLACE_EXECLE]) REPLACE_EXECLP=0; AC_SUBST([REPLACE_EXECLP]) REPLACE_EXECV=0; AC_SUBST([REPLACE_EXECV]) REPLACE_EXECVE=0; AC_SUBST([REPLACE_EXECVE]) REPLACE_EXECVP=0; AC_SUBST([REPLACE_EXECVP]) REPLACE_EXECVPE=0; AC_SUBST([REPLACE_EXECVPE]) REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT]) REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE]) REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME]) REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE]) REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS]) REPLACE_GETPASS_FOR_GETPASS_GNU=0; AC_SUBST([REPLACE_GETPASS_FOR_GETPASS_GNU]) REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK]) REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD]) REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) REPLACE_READ=0; AC_SUBST([REPLACE_READ]) REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT]) REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT]) REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE]) REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP]) REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE]) UNISTD_H_HAVE_SYS_RANDOM_H=0; AC_SUBST([UNISTD_H_HAVE_SYS_RANDOM_H]) UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H]) UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS]) ]) shishi-1.0.3/lib/gl/m4/gnulib-common.m40000644000000000000000000012150014273615122014373 00000000000000# gnulib-common.m4 serial 73 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_PREREQ([2.62]) # gl_COMMON # is expanded unconditionally through gnulib-tool magic. AC_DEFUN([gl_COMMON], [ dnl Use AC_REQUIRE here, so that the code is expanded once only. AC_REQUIRE([gl_00GNULIB]) AC_REQUIRE([gl_COMMON_BODY]) AC_REQUIRE([gl_ZZGNULIB]) ]) AC_DEFUN([gl_COMMON_BODY], [ AH_VERBATIM([_GL_GNUC_PREREQ], [/* True if the compiler says it groks GNU C version MAJOR.MINOR. */ #if defined __GNUC__ && defined __GNUC_MINOR__ # define _GL_GNUC_PREREQ(major, minor) \ ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__)) #else # define _GL_GNUC_PREREQ(major, minor) 0 #endif ]) AH_VERBATIM([_Noreturn], [/* The _Noreturn keyword of C11. */ #ifndef _Noreturn # if (defined __cplusplus \ && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ || (defined _MSC_VER && 1900 <= _MSC_VER)) \ && 0) /* [[noreturn]] is not practically usable, because with it the syntax extern _Noreturn void func (...); would not be valid; such a declaration would only be valid with 'extern' and '_Noreturn' swapped, or without the 'extern' keyword. However, some AIX system header files and several gnulib header files use precisely this syntax with 'extern'. */ # define _Noreturn [[noreturn]] # elif ((!defined __cplusplus || defined __clang__) \ && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ || (!defined __STRICT_ANSI__ \ && (_GL_GNUC_PREREQ (4, 7) \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))))) /* _Noreturn works as-is. */ # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C # define _Noreturn __attribute__ ((__noreturn__)) # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) # define _Noreturn __declspec (noreturn) # else # define _Noreturn # endif #endif ]) AH_VERBATIM([isoc99_inline], [/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. __APPLE__ && __MACH__ test for Mac OS X. __APPLE_CC__ tests for the Apple compiler and its version. __STDC_VERSION__ tests for the C99 mode. */ #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ # define __GNUC_STDC_INLINE__ 1 #endif]) AH_VERBATIM([attribute], [/* Attributes. */ #if (defined __has_attribute \ && (!defined __clang_minor__ \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))) # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) #else # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2) # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95) # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1) # define _GL_ATTR_diagnose_if 0 # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1) # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0) # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6) # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0) # ifdef _ICC # define _GL_ATTR_may_alias 0 # else # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3) # endif # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1) # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3) # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0) # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3) # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96) # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9) # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0) # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4) #endif #ifdef __has_c_attribute # if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \ && _GL_GNUC_PREREQ (4, 6)) # pragma GCC diagnostic ignored "-Wpedantic" # endif # define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__) #else # define _GL_HAS_C_ATTRIBUTE(attr) 0 #endif ]dnl There is no _GL_ATTRIBUTE_ALIGNED; use stdalign's _Alignas instead. [ /* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function is the size of the returned memory block. _GL_ATTRIBUTE_ALLOC_SIZE ((M, N)) declares that the Mth argument multiplied by the Nth argument of the function is the size of the returned memory block. */ /* Applies to: function, pointer to function, function types. */ #if _GL_HAS_ATTRIBUTE (alloc_size) # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args)) #else # define _GL_ATTRIBUTE_ALLOC_SIZE(args) #endif /* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the function and report an error if it cannot do so. */ /* Applies to: function. */ #if _GL_HAS_ATTRIBUTE (always_inline) # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__)) #else # define _GL_ATTRIBUTE_ALWAYS_INLINE #endif /* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show in stack traces when debugging. The compiler should omit the function from stack traces. */ /* Applies to: function. */ #if _GL_HAS_ATTRIBUTE (artificial) # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__)) #else # define _GL_ATTRIBUTE_ARTIFICIAL #endif /* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */ /* Applies to: functions. */ /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at . Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */ #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__ # ifndef __SUNPRO_C # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__)) # else # define _GL_ATTRIBUTE_COLD __attribute__ ((cold)) # endif #else # define _GL_ATTRIBUTE_COLD #endif /* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate calls to the function with the same arguments. This attribute is safe for a function that neither depends on nor affects observable state, and always returns exactly once - e.g., does not loop forever, and does not call longjmp. (This attribute is stricter than _GL_ATTRIBUTE_PURE.) */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (const) # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) #else # define _GL_ATTRIBUTE_CONST #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #if _GL_GNUC_PREREQ (11, 0) # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) #else # define _GL_ATTRIBUTE_DEALLOC(f, i) #endif /* If gnulib's or has already defined this macro, continue to use this earlier definition, since may not have been included yet. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated. The compiler may warn if the entity is used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: namespace, class, template specialization. */ #if _GL_HAS_C_ATTRIBUTE (deprecated) # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]] #elif _GL_HAS_ATTRIBUTE (deprecated) # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) #else # define _GL_ATTRIBUTE_DEPRECATED #endif /* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and the function call is not optimized away. _GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and the function call is not optimized away. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (error) # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg))) # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg))) #elif _GL_HAS_ATTRIBUTE (diagnose_if) # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error"))) # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning"))) #else # define _GL_ATTRIBUTE_ERROR(msg) # define _GL_ATTRIBUTE_WARNING(msg) #endif /* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain visible to debuggers etc., even with '-fwhole-program'. */ /* Applies to: functions, variables. */ #if _GL_HAS_ATTRIBUTE (externally_visible) # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible)) #else # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE #endif /* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if the control flow falls through to the immediately following 'case' or 'default' label. The compiler should not warn in this case. */ /* Applies to: Empty statement (;), inside a 'switch' statement. */ /* Always expands to something. */ #if _GL_HAS_C_ATTRIBUTE (fallthrough) # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]] #elif _GL_HAS_ATTRIBUTE (fallthrough) # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) #else # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0) #endif /* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)) declares that the STRING-INDEXth function argument is a format string of style ARCHETYPE, which is one of: printf, gnu_printf scanf, gnu_scanf, strftime, gnu_strftime, strfmon, or the same thing prefixed and suffixed with '__'. If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK are suitable for the format string. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (format) # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) #else # define _GL_ATTRIBUTE_FORMAT(spec) #endif /* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other compilation unit, it executes code from that unit only by return or by exception handling. This declaration lets the compiler optimize that unit more aggressively. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (leaf) # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__)) #else # define _GL_ATTRIBUTE_LEAF #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (malloc) # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) #else # define _GL_ATTRIBUTE_MALLOC #endif /* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the same storage as pointers to other types. Thus this declaration disables strict aliasing optimization. */ /* Applies to: types. */ /* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */ #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) #else # define _GL_ATTRIBUTE_MAY_ALIAS #endif /* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if the entity is not used. The compiler should not warn if the entity is not used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: class. */ /* In C++ and C2x, this is spelled [[__maybe_unused__]]. GCC's syntax is __attribute__ ((__unused__)). clang supports both syntaxes. */ #if _GL_HAS_C_ATTRIBUTE (maybe_unused) # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]] #else # define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED #endif /* Alternative spelling of this macro, for convenience. */ #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED /* Earlier spellings of this macro. */ #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED /* _GL_ATTRIBUTE_NODISCARD declares that the caller of the function should not discard the return value. The compiler may warn if the caller does not use the return value, unless the caller uses something like ignore_value. */ /* Applies to: function, enumeration, class. */ #if _GL_HAS_C_ATTRIBUTE (nodiscard) # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]] #elif _GL_HAS_ATTRIBUTE (warn_unused_result) # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__)) #else # define _GL_ATTRIBUTE_NODISCARD #endif /* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the function. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (noinline) # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__)) #else # define _GL_ATTRIBUTE_NOINLINE #endif /* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,... must not be NULL. _GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be null. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (nonnull) # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args)) #else # define _GL_ATTRIBUTE_NONNULL(args) #endif /* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is not meant to be NUL-terminated. */ /* Applies to: struct/union members and variables that are arrays of element type '[[un]signed] char'. */ #if _GL_HAS_ATTRIBUTE (nonstring) # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__)) #else # define _GL_ATTRIBUTE_NONSTRING #endif /* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */ /* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) #else # define _GL_ATTRIBUTE_NOTHROW #endif /* _GL_ATTRIBUTE_PACKED declares: For struct members: The member has the smallest possible alignment. For struct, union, class: All members have the smallest possible alignment, minimizing the memory required. */ /* Applies to: struct members, struct, union, in C++ also: class. */ #if _GL_HAS_ATTRIBUTE (packed) # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__)) #else # define _GL_ATTRIBUTE_PACKED #endif /* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate calls to the function with the same arguments if observable state is not changed between calls. This attribute is safe for a function that does not affect observable state, and always returns exactly once. (This attribute is looser than _GL_ATTRIBUTE_CONST.) */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (pure) # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) #else # define _GL_ATTRIBUTE_PURE #endif /* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is a non-NULL pointer. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (returns_nonnull) # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) #else # define _GL_ATTRIBUTE_RETURNS_NONNULL #endif /* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a trailing NULL argument. _GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99). _GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (sentinel) # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos)) #else # define _GL_ATTRIBUTE_SENTINEL(pos) #endif /* A helper macro. Don't use it directly. */ #if _GL_HAS_ATTRIBUTE (unused) # define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else # define _GL_ATTRIBUTE_UNUSED #endif ]dnl There is no _GL_ATTRIBUTE_VISIBILITY; see m4/visibility.m4 instead. [ /* _GL_UNUSED_LABEL; declares that it is not a programming mistake if the immediately preceding label is not used. The compiler should not warn if the label is not used. */ /* Applies to: label (both in C and C++). */ /* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;' syntax. But clang does. */ #if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__ # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED #else # define _GL_UNUSED_LABEL #endif ]) AH_VERBATIM([async_safe], [/* The _GL_ASYNC_SAFE marker should be attached to functions that are signal handlers (for signals other than SIGABRT, SIGPIPE) or can be invoked from such signal handlers. Such functions have some restrictions: * All functions that it calls should be marked _GL_ASYNC_SAFE as well, or should be listed as async-signal-safe in POSIX section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in particular, are NOT async-signal-safe. * All memory locations (variables and struct fields) that these functions access must be marked 'volatile'. This holds for both read and write accesses. Otherwise the compiler might optimize away stores to and reads from such locations that occur in the program, depending on its data flow analysis. For example, when the program contains a loop that is intended to inspect a variable set from within a signal handler while (!signal_occurred) ; the compiler is allowed to transform this into an endless loop if the variable 'signal_occurred' is not declared 'volatile'. Additionally, recall that: * A signal handler should not modify errno (except if it is a handler for a fatal signal and ends by raising the same signal again, thus provoking the termination of the process). If it invokes a function that may clobber errno, it needs to save and restore the value of errno. */ #define _GL_ASYNC_SAFE ]) AH_VERBATIM([micro_optimizations], [/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where n1 and n2 are expressions without side effects, that evaluate to real numbers (excluding NaN). It returns 1 if n1 > n2 0 if n1 == n2 -1 if n1 < n2 The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional jump with nearly all GCC versions up to GCC 10. This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many GCC versions up to GCC 9. The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9 avoids conditional jumps in all GCC versions >= 3.4. */ #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2))) ]) dnl Hint which direction to take regarding cross-compilation guesses: dnl When a user installs a program on a platform they are not intimately dnl familiar with, --enable-cross-guesses=conservative is the appropriate dnl choice. It implements the "If we don't know, assume the worst" principle. dnl However, when an operating system developer (on a platform which is not dnl yet known to gnulib) builds packages for their platform, they want to dnl expose, not hide, possible platform bugs; in this case, dnl --enable-cross-guesses=risky is the appropriate choice. dnl Sets the variables dnl gl_cross_guess_normal (to be used when 'yes' is good and 'no' is bad), dnl gl_cross_guess_inverted (to be used when 'no' is good and 'yes' is bad). AC_ARG_ENABLE([cross-guesses], [AS_HELP_STRING([--enable-cross-guesses={conservative|risky}], [specify policy for cross-compilation guesses])], [if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then AC_MSG_WARN([invalid argument supplied to --enable-cross-guesses]) enableval=conservative fi gl_cross_guesses="$enableval"], [gl_cross_guesses=conservative]) if test $gl_cross_guesses = risky; then gl_cross_guess_normal="guessing yes" gl_cross_guess_inverted="guessing no" else gl_cross_guess_normal="guessing no" gl_cross_guess_inverted="guessing yes" fi dnl Preparation for running test programs: dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not dnl to /dev/tty, so they can be redirected to log files. Such diagnostics dnl arise e.g., in the macros gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N. LIBC_FATAL_STDERR_=1 export LIBC_FATAL_STDERR_ ]) # gl_MODULE_INDICATOR_INIT_VARIABLE([variablename]) # gl_MODULE_INDICATOR_INIT_VARIABLE([variablename], [initialvalue]) # initializes the shell variable that indicates the presence of the given module # as a C preprocessor expression. AC_DEFUN([gl_MODULE_INDICATOR_INIT_VARIABLE], [ GL_MODULE_INDICATOR_PREFIX[]_[$1]=m4_if([$2], , [0], [$2]) AC_SUBST(GL_MODULE_INDICATOR_PREFIX[]_[$1]) ]) # gl_MODULE_INDICATOR_CONDITION # expands to a C preprocessor expression that evaluates to 1 or 0, depending # whether a gnulib module that has been requested shall be considered present # or not. m4_define([gl_MODULE_INDICATOR_CONDITION], [1]) # gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) # sets the shell variable that indicates the presence of the given module to # a C preprocessor expression that will evaluate to 1. AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], [ gl_MODULE_INDICATOR_SET_VARIABLE_AUX( [GL_MODULE_INDICATOR_PREFIX[]_GNULIB_[]m4_translit([[$1]], [abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])], [gl_MODULE_INDICATOR_CONDITION]) ]) # gl_MODULE_INDICATOR_SET_VARIABLE_AUX([variable]) # modifies the shell variable to include the gl_MODULE_INDICATOR_CONDITION. # The shell variable's value is a C preprocessor expression that evaluates # to 0 or 1. AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE_AUX], [ m4_if(m4_defn([gl_MODULE_INDICATOR_CONDITION]), [1], [ dnl Simplify the expression VALUE || 1 to 1. $1=1 ], [gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR([$1], [gl_MODULE_INDICATOR_CONDITION])]) ]) # gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR([variable], [condition]) # modifies the shell variable to include the given condition. The shell # variable's value is a C preprocessor expression that evaluates to 0 or 1. AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR], [ dnl Simplify the expression 1 || CONDITION to 1. if test "$[]$1" != 1; then dnl Simplify the expression 0 || CONDITION to CONDITION. if test "$[]$1" = 0; then $1=$2 else $1="($[]$1 || $2)" fi fi ]) # gl_MODULE_INDICATOR([modulename]) # defines a C macro indicating the presence of the given module # in a location where it can be used. # | Value | Value | # | in lib/ | in tests/ | # --------------------------------------------+---------+-----------+ # Module present among main modules: | 1 | 1 | # --------------------------------------------+---------+-----------+ # Module present among tests-related modules: | 0 | 1 | # --------------------------------------------+---------+-----------+ # Module not present at all: | 0 | 0 | # --------------------------------------------+---------+-----------+ AC_DEFUN([gl_MODULE_INDICATOR], [ AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]], [abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [gl_MODULE_INDICATOR_CONDITION], [Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module $1 shall be considered present.]) ]) # gl_MODULE_INDICATOR_FOR_TESTS([modulename]) # defines a C macro indicating the presence of the given module # in lib or tests. This is useful to determine whether the module # should be tested. # | Value | Value | # | in lib/ | in tests/ | # --------------------------------------------+---------+-----------+ # Module present among main modules: | 1 | 1 | # --------------------------------------------+---------+-----------+ # Module present among tests-related modules: | 1 | 1 | # --------------------------------------------+---------+-----------+ # Module not present at all: | 0 | 0 | # --------------------------------------------+---------+-----------+ AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], [ AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]], [abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], [Define to 1 when the gnulib module $1 should be tested.]) ]) # gl_ASSERT_NO_GNULIB_POSIXCHECK # asserts that there will never be a need to #define GNULIB_POSIXCHECK. # and thereby enables an optimization of configure and config.h. # Used by Emacs. AC_DEFUN([gl_ASSERT_NO_GNULIB_POSIXCHECK], [ dnl Override gl_WARN_ON_USE_PREPARE. dnl But hide this definition from 'aclocal'. AC_DEFUN([gl_W][ARN_ON_USE_PREPARE], []) ]) # gl_ASSERT_NO_GNULIB_TESTS # asserts that there will be no gnulib tests in the scope of the configure.ac # and thereby enables an optimization of config.h. # Used by Emacs. AC_DEFUN([gl_ASSERT_NO_GNULIB_TESTS], [ dnl Override gl_MODULE_INDICATOR_FOR_TESTS. AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], []) ]) # Test whether exists. # Set HAVE_FEATURES_H. AC_DEFUN([gl_FEATURES_H], [ AC_CHECK_HEADERS_ONCE([features.h]) if test $ac_cv_header_features_h = yes; then HAVE_FEATURES_H=1 else HAVE_FEATURES_H=0 fi AC_SUBST([HAVE_FEATURES_H]) ]) # gl_PROG_CC_C99 # Modifies the value of the shell variable CC in an attempt to make $CC # understand ISO C99 source code. AC_DEFUN([gl_PROG_CC_C99], [ dnl Just use AC_PROG_CC_C99. dnl When AC_PROG_CC_C99 and AC_PROG_CC_STDC are used together, the substituted dnl value of CC will contain the C99 enabling options twice. But this is only dnl a cosmetic problem. dnl With Autoconf >= 2.70, use AC_PROG_CC since it implies AC_PROG_CC_C99; dnl this avoids a "warning: The macro `AC_PROG_CC_C99' is obsolete." m4_version_prereq([2.70], [AC_REQUIRE([AC_PROG_CC])], [AC_REQUIRE([AC_PROG_CC_C99])]) ]) # gl_PROG_AR_RANLIB # Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. # The user can set the variables AR, ARFLAGS, RANLIB if he wants to override # the values. AC_DEFUN([gl_PROG_AR_RANLIB], [ dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler dnl as "cc", and GCC as "gcc". They have different object file formats and dnl library formats. In particular, the GNU binutils programs ar and ranlib dnl produce libraries that work only with gcc, not with cc. AC_REQUIRE([AC_PROG_CC]) dnl The '][' hides this use from 'aclocal'. AC_BEFORE([$0], [A][M_PROG_AR]) AC_CACHE_CHECK([for Minix Amsterdam compiler], [gl_cv_c_amsterdam_compiler], [ AC_EGREP_CPP([Amsterdam], [ #ifdef __ACK__ Amsterdam #endif ], [gl_cv_c_amsterdam_compiler=yes], [gl_cv_c_amsterdam_compiler=no]) ]) dnl Don't compete with AM_PROG_AR's decision about AR/ARFLAGS if we are not dnl building with __ACK__. if test $gl_cv_c_amsterdam_compiler = yes; then if test -z "$AR"; then AR='cc -c.a' fi if test -z "$ARFLAGS"; then ARFLAGS='-o' fi else dnl AM_PROG_AR was added in automake v1.11.2. AM_PROG_AR does not AC_SUBST dnl ARFLAGS variable (it is filed into Makefile.in directly by automake dnl script on-demand, if not specified by ./configure of course). dnl Don't AC_REQUIRE the AM_PROG_AR otherwise the code for __ACK__ above dnl will be ignored. Also, pay attention to call AM_PROG_AR in else block dnl because AM_PROG_AR is written so it could re-set AR variable even for dnl __ACK__. It may seem like its easier to avoid calling the macro here, dnl but we need to AC_SUBST both AR/ARFLAGS (thus those must have some good dnl default value and automake should usually know them). dnl dnl The '][' hides this use from 'aclocal'. m4_ifdef([A][M_PROG_AR], [A][M_PROG_AR], [:]) fi dnl In case the code above has not helped with setting AR/ARFLAGS, use dnl Automake-documented default values for AR and ARFLAGS, but prefer dnl ${host}-ar over ar (useful for cross-compiling). AC_CHECK_TOOL([AR], [ar], [ar]) if test -z "$ARFLAGS"; then ARFLAGS='cr' fi AC_SUBST([AR]) AC_SUBST([ARFLAGS]) if test -z "$RANLIB"; then if test $gl_cv_c_amsterdam_compiler = yes; then RANLIB=':' else dnl Use the ranlib program if it is available. AC_PROG_RANLIB fi fi AC_SUBST([RANLIB]) ]) # AC_C_RESTRICT # This definition is copied from post-2.70 Autoconf and overrides the # AC_C_RESTRICT macro from autoconf 2.60..2.70. m4_version_prereq([2.70.1], [], [ AC_DEFUN([AC_C_RESTRICT], [AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], [ac_cv_c_restrict=no # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html # Put 'restrict' last, because C++ lacks it. for ac_kw in __restrict__ __restrict _Restrict restrict; do AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[typedef int *int_ptr; int foo (int_ptr $ac_kw ip) { return ip[0]; } int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ int bar (int ip[$ac_kw]) { return ip[0]; } ]], [[int s[1]; int *$ac_kw t = s; t[0] = 0; return foo (t) + bar (t); ]])], [ac_cv_c_restrict=$ac_kw]) test "$ac_cv_c_restrict" != no && break done ]) AH_VERBATIM([restrict], [/* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported only directly. */ #undef restrict /* Work around a bug in older versions of Sun C++, which did not #define __restrict__ or support _Restrict or __restrict__ even though the corresponding Sun C compiler ended up with "#define restrict _Restrict" or "#define restrict __restrict__" in the previous line. This workaround can be removed once we assume Oracle Developer Studio 12.5 (2016) or later. */ #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ # define _Restrict # define __restrict__ #endif]) case $ac_cv_c_restrict in restrict) ;; no) AC_DEFINE([restrict], []) ;; *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;; esac ])# AC_C_RESTRICT ]) # gl_BIGENDIAN # is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd. # Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some # macros invoke AC_C_BIGENDIAN with arguments. AC_DEFUN([gl_BIGENDIAN], [ AC_C_BIGENDIAN ]) # A temporary file descriptor. # Must be less than 10, because dash 0.5.8 does not support redirections # with multi-digit file descriptors. m4_define([GL_TMP_FD], 9) # gl_SILENT(command) # executes command, but without the normal configure output. # This is useful when you want to invoke AC_CACHE_CHECK (or AC_CHECK_FUNC etc.) # inside another AC_CACHE_CHECK. AC_DEFUN([gl_SILENT], [ exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null $1 exec AS_MESSAGE_FD>&GL_TMP_FD GL_TMP_FD>&- ]) # gl_CACHE_VAL_SILENT(cache-id, command-to-set-it) # is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not # output a spurious "(cached)" mark in the midst of other configure output. # This macro should be used instead of AC_CACHE_VAL when it is not surrounded # by an AC_MSG_CHECKING/AC_MSG_RESULT pair. AC_DEFUN([gl_CACHE_VAL_SILENT], [ gl_SILENT([ AC_CACHE_VAL([$1], [$2]) ]) ]) # gl_CONDITIONAL(conditional, condition) # is like AM_CONDITIONAL(conditional, condition), except that it does not # produce an error # configure: error: conditional "..." was never defined. # Usually this means the macro was only invoked conditionally. # when only invoked conditionally. Instead, in that case, both the _TRUE # and the _FALSE case are disabled. AC_DEFUN([gl_CONDITIONAL], [ pushdef([AC_CONFIG_COMMANDS_PRE], [:])dnl AM_CONDITIONAL([$1], [$2]) popdef([AC_CONFIG_COMMANDS_PRE])dnl if test -z "${[$1]_TRUE}" && test -z "${[$1]_FALSE}"; then [$1]_TRUE='#' [$1]_FALSE='#' fi ]) # gl_CC_ALLOW_WARNINGS # sets and substitutes a variable GL_CFLAG_ALLOW_WARNINGS, to a $(CC) option # that reverts a preceding '-Werror' option, if available. # This is expected to be '-Wno-error' on gcc, clang (except clang/MSVC), xlclang # and empty otherwise. AC_DEFUN([gl_CC_ALLOW_WARNINGS], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([for C compiler option to allow warnings], [gl_cv_cc_wallow], [rm -f conftest* echo 'int dummy;' > conftest.c AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err]) >/dev/null AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err]) >/dev/null dnl Test the number of error output lines, because AIX xlc accepts the dnl option '-Wno-error', just to produce a warning dnl "Option -Wno-error was incorrectly specified. The option will be ignored." dnl afterwards. if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then gl_cv_cc_wallow='-Wno-error' else gl_cv_cc_wallow=none fi rm -f conftest* ]) case "$gl_cv_cc_wallow" in none) GL_CFLAG_ALLOW_WARNINGS='' ;; *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;; esac AC_SUBST([GL_CFLAG_ALLOW_WARNINGS]) ]) # gl_CXX_ALLOW_WARNINGS # sets and substitutes a variable GL_CXXFLAG_ALLOW_WARNINGS, to a $(CC) option # that reverts a preceding '-Werror' option, if available. AC_DEFUN([gl_CXX_ALLOW_WARNINGS], [ dnl Requires AC_PROG_CXX or gl_PROG_ANSI_CXX. if test -n "$CXX" && test "$CXX" != no; then AC_CACHE_CHECK([for C++ compiler option to allow warnings], [gl_cv_cxx_wallow], [rm -f conftest* echo 'int dummy;' > conftest.cc AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err]) >/dev/null AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err]) >/dev/null dnl Test the number of error output lines, because AIX xlC accepts the dnl option '-Wno-error', just to produce a warning dnl "Option -Wno-error was incorrectly specified. The option will be ignored." dnl afterwards. if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then gl_cv_cxx_wallow='-Wno-error' else gl_cv_cxx_wallow=none fi rm -f conftest* ]) case "$gl_cv_cxx_wallow" in none) GL_CXXFLAG_ALLOW_WARNINGS='' ;; *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;; esac else GL_CXXFLAG_ALLOW_WARNINGS='' fi AC_SUBST([GL_CXXFLAG_ALLOW_WARNINGS]) ]) # gl_CC_GNULIB_WARNINGS # sets and substitutes a variable GL_CFLAG_GNULIB_WARNINGS, to a $(CC) option # set that enables or disables warnings as suitable for the Gnulib coding style. AC_DEFUN([gl_CC_GNULIB_WARNINGS], [ AC_REQUIRE([gl_CC_ALLOW_WARNINGS]) dnl Assume that the compiler supports -Wno-* options only if it also supports dnl -Wno-error. GL_CFLAG_GNULIB_WARNINGS='' if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then dnl Enable these warning options: dnl dnl GCC clang dnl -Wno-cast-qual >= 3 >= 3.9 dnl -Wno-conversion >= 3 >= 3.9 dnl -Wno-float-conversion >= 4.9 >= 3.9 dnl -Wno-float-equal >= 3 >= 3.9 dnl -Wimplicit-fallthrough >= 7 >= 3.9 dnl -Wno-pedantic >= 4.8 >= 3.9 dnl -Wno-sign-compare >= 3 >= 3.9 dnl -Wno-sign-conversion >= 4.3 >= 3.9 dnl -Wno-type-limits >= 4.3 >= 3.9 dnl -Wno-undef >= 3 >= 3.9 dnl -Wno-unsuffixed-float-constants >= 4.5 dnl -Wno-unused-function >= 3 >= 3.9 dnl -Wno-unused-parameter >= 3 >= 3.9 dnl cat > conftest.c <<\EOF #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter #endif #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-float-conversion #endif #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wimplicit-fallthrough #endif #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-pedantic #endif #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-sign-conversion -Wno-type-limits #endif #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 -Wno-unsuffixed-float-constants #endif EOF gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out" if AC_TRY_EVAL([gl_command]); then gl_options=`grep -v '#' conftest.out` for word in $gl_options; do GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word" done fi rm -f conftest.c conftest.out fi AC_SUBST([GL_CFLAG_GNULIB_WARNINGS]) ]) dnl gl_CONDITIONAL_HEADER([foo.h]) dnl takes a shell variable GL_GENERATE_FOO_H (with value true or false) as input dnl and produces dnl - an AC_SUBSTed variable FOO_H that is either a file name or empty, based dnl on whether GL_GENERATE_FOO_H is true or false, dnl - an Automake conditional GL_GENERATE_FOO_H that evaluates to the value of dnl the shell variable GL_GENERATE_FOO_H. AC_DEFUN([gl_CONDITIONAL_HEADER], [ m4_pushdef([gl_header_name], AS_TR_SH(m4_toupper($1))) m4_pushdef([gl_generate_var], [GL_GENERATE_]AS_TR_SH(m4_toupper($1))) m4_pushdef([gl_generate_cond], [GL_GENERATE_]AS_TR_SH(m4_toupper($1))) case "$gl_generate_var" in false) gl_header_name='' ;; true) dnl It is OK to use a .h file in lib/ from within tests/, but not vice dnl versa. if test -z "$gl_header_name"; then gl_header_name="${gl_source_base_prefix}$1" fi ;; *) echo "*** gl_generate_var is not set correctly" 1>&2; exit 1 ;; esac AC_SUBST(gl_header_name) gl_CONDITIONAL(gl_generate_cond, [$gl_generate_var]) m4_popdef([gl_generate_cond]) m4_popdef([gl_generate_var]) m4_popdef([gl_header_name]) ]) dnl Expands to some code for use in .c programs that, on native Windows, defines dnl the Microsoft deprecated alias function names to the underscore-prefixed dnl actual function names. With this macro, these function names are available dnl without linking with '-loldnames' and without generating warnings. dnl Usage: Use it after all system header files are included. dnl #include <...> dnl #include <...> dnl ]GL_MDA_DEFINES[ dnl ... AC_DEFUN([GL_MDA_DEFINES],[ AC_REQUIRE([_GL_MDA_DEFINES]) [$gl_mda_defines] ]) AC_DEFUN([_GL_MDA_DEFINES], [gl_mda_defines=' #if defined _WIN32 && !defined __CYGWIN__ #define access _access #define chdir _chdir #define chmod _chmod #define close _close #define creat _creat #define dup _dup #define dup2 _dup2 #define ecvt _ecvt #define execl _execl #define execle _execle #define execlp _execlp #define execv _execv #define execve _execve #define execvp _execvp #define execvpe _execvpe #define fcloseall _fcloseall #define fcvt _fcvt #define fdopen _fdopen #define fileno _fileno #define gcvt _gcvt #define getcwd _getcwd #define getpid _getpid #define getw _getw #define isatty _isatty #define j0 _j0 #define j1 _j1 #define jn _jn #define lfind _lfind #define lsearch _lsearch #define lseek _lseek #define memccpy _memccpy #define mkdir _mkdir #define mktemp _mktemp #define open _open #define putenv _putenv #define putw _putw #define read _read #define rmdir _rmdir #define strdup _strdup #define swab _swab #define tempnam _tempnam #define tzset _tzset #define umask _umask #define unlink _unlink #define utime _utime #define wcsdup _wcsdup #define write _write #define y0 _y0 #define y1 _y1 #define yn _yn #endif ' ]) shishi-1.0.3/lib/gl/m4/malloc.m40000644000000000000000000001352014273615122013076 00000000000000# malloc.m4 serial 28 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # This is adapted with modifications from upstream Autoconf here: # https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/functions.m4?id=v2.70#n949 AC_DEFUN([_AC_FUNC_MALLOC_IF], [ AC_REQUIRE([AC_CANONICAL_HOST])dnl for cross-compiles AC_CACHE_CHECK([whether malloc (0) returns nonnull], [ac_cv_func_malloc_0_nonnull], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[void *p = malloc (0); int result = !p; free (p); return result;]]) ], [ac_cv_func_malloc_0_nonnull=yes], [ac_cv_func_malloc_0_nonnull=no], [case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | gnu* | *-musl* | midnightbsd* \ | hpux* | solaris* | cygwin* | mingw* | msys* ) ac_cv_func_malloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; esac ]) ]) AS_CASE([$ac_cv_func_malloc_0_nonnull], [*yes], [$1], [$2]) ])# _AC_FUNC_MALLOC_IF # gl_FUNC_MALLOC_GNU # ------------------ # Replace malloc if it is not compatible with GNU libc. AC_DEFUN([gl_FUNC_MALLOC_GNU], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX" if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC_FOR_MALLOC_GNU=1]) fi ]) # gl_FUNC_MALLOC_PTRDIFF # ---------------------- # Test whether malloc (N) reliably fails when N exceeds PTRDIFF_MAX, # and replace malloc otherwise. AC_DEFUN([gl_FUNC_MALLOC_PTRDIFF], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF]) test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1 ]) # Test whether malloc, realloc, calloc refuse to create objects # larger than what can be expressed in ptrdiff_t. # Set gl_cv_func_malloc_gnu to yes or no accordingly. AC_DEFUN([gl_CHECK_MALLOC_PTRDIFF], [ AC_CACHE_CHECK([whether malloc is ptrdiff_t safe], [gl_cv_malloc_ptrdiff], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[/* 64-bit ptrdiff_t is so wide that no practical platform can exceed it. */ #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0) /* On rare machines where size_t fits in ptrdiff_t there is no problem. */ #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX) /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t bounds even on 32-bit platforms. We don't know which non-glibc systems are safe. */ #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__)) #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE return 0; #else #error "malloc might not be ptrdiff_t safe" syntax error #endif ]])], [gl_cv_malloc_ptrdiff=yes], [gl_cv_malloc_ptrdiff=no]) ]) ]) # gl_FUNC_MALLOC_POSIX # -------------------- # Test whether 'malloc' is POSIX compliant (sets errno to ENOMEM when it # fails, and doesn't mess up with ptrdiff_t overflow), and replace # malloc if it is not. AC_DEFUN([gl_FUNC_MALLOC_POSIX], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MALLOC_PTRDIFF]) AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) if test "$gl_cv_func_malloc_posix" = yes; then AC_DEFINE([HAVE_MALLOC_POSIX], [1], [Define if malloc, realloc, and calloc set errno on allocation failure.]) else REPLACE_MALLOC_FOR_MALLOC_POSIX=1 fi ]) # Test whether malloc, realloc, calloc set errno to ENOMEM on failure. # Set gl_cv_func_malloc_posix to yes or no accordingly. AC_DEFUN([gl_CHECK_MALLOC_POSIX], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether malloc, realloc, calloc set errno on failure], [gl_cv_func_malloc_posix], [ dnl It is too dangerous to try to allocate a large amount of memory: dnl some systems go to their knees when you do that. So assume that dnl all Unix implementations of the function set errno on failure, dnl except on those platforms where we have seen 'test-malloc-gnu', dnl 'test-realloc-gnu', 'test-calloc-gnu' fail. case "$host_os" in mingw*) gl_cv_func_malloc_posix=no ;; irix* | solaris*) dnl On IRIX 6.5, the three functions return NULL with errno unset dnl when the argument is larger than PTRDIFF_MAX. dnl On Solaris 11.3, the three functions return NULL with errno set dnl to EAGAIN, not ENOMEM, when the argument is larger than dnl PTRDIFF_MAX. dnl Here is a test program: m4_divert_push([KILL]) #include #include #include #define ptrdiff_t long #ifndef PTRDIFF_MAX # define PTRDIFF_MAX ((ptrdiff_t) ((1UL << (8 * sizeof (ptrdiff_t) - 1)) - 1)) #endif int main () { void *p; fprintf (stderr, "PTRDIFF_MAX = %lu\n", (unsigned long) PTRDIFF_MAX); errno = 0; p = malloc ((unsigned long) PTRDIFF_MAX + 1); fprintf (stderr, "p=%p errno=%d\n", p, errno); errno = 0; p = calloc (PTRDIFF_MAX / 2 + 1, 2); fprintf (stderr, "p=%p errno=%d\n", p, errno); errno = 0; p = realloc (NULL, (unsigned long) PTRDIFF_MAX + 1); fprintf (stderr, "p=%p errno=%d\n", p, errno); return 0; } m4_divert_pop([KILL]) gl_cv_func_malloc_posix=no ;; *) gl_cv_func_malloc_posix=yes ;; esac ]) ]) shishi-1.0.3/lib/gl/m4/getdelim.m40000644000000000000000000000543414273615122013426 00000000000000# getdelim.m4 serial 15 dnl Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc. dnl dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_PREREQ([2.59]) AC_DEFUN([gl_FUNC_GETDELIM], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Persuade glibc to declare getdelim(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS_ONCE([getdelim]) AC_CHECK_FUNCS_ONCE([getdelim]) if test $ac_cv_func_getdelim = yes; then HAVE_GETDELIM=1 dnl Found it in some library. Verify that it works. AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim], [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data AC_RUN_IFELSE([AC_LANG_SOURCE([[ # include # include # include int main () { FILE *in = fopen ("./conftest.data", "r"); if (!in) return 1; { /* Test result for a NULL buffer and a zero size. Based on a test program from Karl Heuer. */ char *line = NULL; size_t siz = 0; int len = getdelim (&line, &siz, '\n', in); if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) { free (line); fclose (in); return 2; } free (line); } { /* Test result for a NULL buffer and a non-zero size. This crashes on FreeBSD 8.0. */ char *line = NULL; size_t siz = (size_t)(~0) / 4; if (getdelim (&line, &siz, '\n', in) == -1) { fclose (in); return 3; } free (line); } fclose (in); return 0; } ]])], [gl_cv_func_working_getdelim=yes], [gl_cv_func_working_getdelim=no], [dnl We're cross compiling. dnl Guess it works on glibc2 systems and musl systems. AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif ], [gl_cv_func_working_getdelim="guessing yes"], [case "$host_os" in *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; esac ]) ]) ]) case "$gl_cv_func_working_getdelim" in *yes) ;; *) REPLACE_GETDELIM=1 ;; esac else HAVE_GETDELIM=0 fi if test $ac_cv_have_decl_getdelim = no; then HAVE_DECL_GETDELIM=0 fi ]) # Prerequisites of lib/getdelim.c. AC_DEFUN([gl_PREREQ_GETDELIM], [ AC_CHECK_FUNCS([flockfile funlockfile]) AC_CHECK_DECLS([getc_unlocked]) ]) shishi-1.0.3/lib/gl/m4/stdbool.m40000644000000000000000000000740314273615122013300 00000000000000# Check for stdbool.h that conforms to C99. dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. #serial 9 # Prepare for substituting if it is not supported. AC_DEFUN([gl_STDBOOL_H], [ AC_REQUIRE([AC_CHECK_HEADER_STDBOOL]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl On some platforms, does not exist or does not conform to C99. dnl On Solaris 10 with CC=cc CXX=CC, exists but is not usable dnl in C++ mode (and no exists). In this case, we use our dnl replacement, also in C mode (for binary compatibility between C and C++). if test "$ac_cv_header_stdbool_h" = yes; then case "$host_os" in solaris*) if test -z "$GCC"; then GL_GENERATE_STDBOOL_H=true else GL_GENERATE_STDBOOL_H=false fi ;; *) GL_GENERATE_STDBOOL_H=false ;; esac else GL_GENERATE_STDBOOL_H=true fi if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi AC_SUBST([HAVE__BOOL]) ]) # This version of the macro is needed in autoconf <= 2.68. AC_DEFUN([AC_CHECK_HEADER_STDBOOL], [AC_CACHE_CHECK([for stdbool.h that conforms to C99], [ac_cv_header_stdbool_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifdef __cplusplus typedef bool Bool; #else typedef _Bool Bool; #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; /* See body of main program for 'e'. */ char f[(Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html */ Bool q = true; Bool *pq = &q; bool *qq = &q; ]], [[ bool e = &s; *pq |= q; *pq |= ! q; *qq |= q; *qq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq + !qq); ]])], [ac_cv_header_stdbool_h=yes], [ac_cv_header_stdbool_h=no])]) AC_CHECK_TYPES([_Bool]) ]) shishi-1.0.3/lib/gl/m4/mmap-anon.m40000644000000000000000000000374714273615122013524 00000000000000# mmap-anon.m4 serial 12 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Detect how mmap can be used to create anonymous (not file-backed) memory # mappings. # - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS # and MAP_ANON exist and have the same value. # - On HP-UX, only MAP_ANONYMOUS exists. # - On Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, only MAP_ANON exists. # - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be # used. AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON], [ dnl Persuade glibc to define MAP_ANONYMOUS. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is # irrelevant for anonymous mappings. AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no]) # Try to allow MAP_ANONYMOUS. gl_have_mmap_anonymous=no if test $gl_have_mmap = yes; then AC_MSG_CHECKING([for MAP_ANONYMOUS]) AC_EGREP_CPP([I cannot identify this map], [ #include #ifdef MAP_ANONYMOUS I cannot identify this map #endif ], [gl_have_mmap_anonymous=yes]) if test $gl_have_mmap_anonymous != yes; then AC_EGREP_CPP([I cannot identify this map], [ #include #ifdef MAP_ANON I cannot identify this map #endif ], [AC_DEFINE([MAP_ANONYMOUS], [MAP_ANON], [Define to a substitute value for mmap()'s MAP_ANONYMOUS flag.]) gl_have_mmap_anonymous=yes]) fi AC_MSG_RESULT([$gl_have_mmap_anonymous]) if test $gl_have_mmap_anonymous = yes; then AC_DEFINE([HAVE_MAP_ANONYMOUS], [1], [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including config.h and .]) fi fi ]) shishi-1.0.3/lib/gl/m4/00gnulib.m40000644000000000000000000000701114273615122013245 00000000000000# 00gnulib.m4 serial 8 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl This file must be named something that sorts before all other dnl gnulib-provided .m4 files. It is needed until the clang fix has dnl been included in Autoconf. # The following definitions arrange to use a compiler option # -Werror=implicit-function-declaration in AC_CHECK_DECL, when the # compiler is clang. Without it, clang implicitly declares "known" # library functions in C mode, but not in C++ mode, which would cause # Gnulib to omit a declaration and thus later produce an error in C++ # mode. As of clang 9.0, these "known" functions are identified through # LIBBUILTIN invocations in the LLVM source file # llvm/tools/clang/include/clang/Basic/Builtins.def. # It's not possible to AC_REQUIRE the extra tests from AC_CHECK_DECL, # because AC_CHECK_DECL, like other Autoconf built-ins, is not supposed # to AC_REQUIRE anything: some configure.ac files have their first # AC_CHECK_DECL executed conditionally. Therefore append the extra tests # to AC_PROG_CC. AC_DEFUN([gl_COMPILER_CLANG], [ dnl AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether the compiler is clang], [gl_cv_compiler_clang], [dnl Use _AC_COMPILE_IFELSE instead of AC_EGREP_CPP, to avoid error dnl "circular dependency of AC_LANG_COMPILER(C)" if AC_PROG_CC has dnl not yet been invoked. _AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ #ifdef __clang__ barfbarf #endif ]],[[]]) ], [gl_cv_compiler_clang=no], [gl_cv_compiler_clang=yes]) ]) ]) AC_DEFUN([gl_COMPILER_PREPARE_CHECK_DECL], [ dnl AC_REQUIRE([AC_PROG_CC]) dnl AC_REQUIRE([gl_COMPILER_CLANG]) AC_CACHE_CHECK([for compiler option needed when checking for declarations], [gl_cv_compiler_check_decl_option], [if test $gl_cv_compiler_clang = yes; then dnl Test whether the compiler supports the option dnl '-Werror=implicit-function-declaration'. save_ac_compile="$ac_compile" ac_compile="$ac_compile -Werror=implicit-function-declaration" dnl Use _AC_COMPILE_IFELSE instead of AC_COMPILE_IFELSE, to avoid a dnl warning "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])], [gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'], [gl_cv_compiler_check_decl_option=none]) ac_compile="$save_ac_compile" else gl_cv_compiler_check_decl_option=none fi ]) if test "x$gl_cv_compiler_check_decl_option" != xnone; then ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" else ac_compile_for_check_decl="$ac_compile" fi ]) dnl Redefine _AC_CHECK_DECL_BODY so that it references ac_compile_for_check_decl dnl instead of ac_compile. If, for whatever reason, the override of AC_PROG_CC dnl in zzgnulib.m4 is inactive, use the original ac_compile. m4_define([_AC_CHECK_DECL_BODY], [ ac_save_ac_compile="$ac_compile" if test -n "$ac_compile_for_check_decl"; then ac_compile="$ac_compile_for_check_decl" fi] m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_save_ac_compile" ]) # gl_00GNULIB # ----------- # Witness macro that this file has been included. Needed to force # Automake to include this file prior to all other gnulib .m4 files. AC_DEFUN([gl_00GNULIB]) shishi-1.0.3/lib/gl/m4/stat-time.m40000644000000000000000000000605714273615122013545 00000000000000# Checks for stat-related time functions. # Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2022 Free Software # Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # st_atim.tv_nsec - Linux, Solaris, Cygwin # st_atimespec.tv_nsec - FreeBSD, NetBSD, if ! defined _POSIX_SOURCE # st_atimensec - FreeBSD, NetBSD, if defined _POSIX_SOURCE # st_atim.st__tim.tv_nsec - UnixWare (at least 2.1.2 through 7.1) # st_birthtimespec - FreeBSD, NetBSD (hidden on OpenBSD 3.9, anyway) # st_birthtim - Cygwin 1.7.0+ AC_DEFUN([gl_STAT_TIME], [ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_MEMBERS([struct stat.st_atim.tv_nsec], [AC_CACHE_CHECK([whether struct stat.st_atim is of type struct timespec], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[ #include #include #if HAVE_SYS_TIME_H # include #endif #include struct timespec ts; struct stat st; ]], [[ st.st_atim = ts; ]])], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes], [ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no])]) if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then AC_DEFINE([TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC], [1], [Define to 1 if the type of the st_atim member of a struct stat is struct timespec.]) fi], [AC_CHECK_MEMBERS([struct stat.st_atimespec.tv_nsec], [], [AC_CHECK_MEMBERS([struct stat.st_atimensec], [], [AC_CHECK_MEMBERS([struct stat.st_atim.st__tim.tv_nsec], [], [], [#include #include ])], [#include #include ])], [#include #include ])], [#include #include ]) ]) # Check for st_birthtime, a feature from UFS2 (FreeBSD, NetBSD, OpenBSD, etc.) # and NTFS (Cygwin). # There was a time when this field was named st_createtime (21 June # 2002 to 16 July 2002) But that window is very small and applied only # to development code, so systems still using that configuration are # not supported. See revisions 1.10 and 1.11 of FreeBSD's # src/sys/ufs/ufs/dinode.h. # AC_DEFUN([gl_STAT_BIRTHTIME], [ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_MEMBERS([struct stat.st_birthtimespec.tv_nsec], [], [AC_CHECK_MEMBERS([struct stat.st_birthtimensec], [], [AC_CHECK_MEMBERS([struct stat.st_birthtim.tv_nsec], [], [], [#include #include ])], [#include #include ])], [#include #include ]) ]) shishi-1.0.3/lib/gl/m4/wint_t.m40000644000000000000000000000343314273615123013136 00000000000000# wint_t.m4 serial 11 dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type and whether gnulib's dnl or would, if present, override 'wint_t'. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include wint_t foo = (wchar_t)'\0';]], [[]])], [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) dnl Determine whether gnulib's or would, if present, dnl override 'wint_t'. AC_CACHE_CHECK([whether wint_t is large enough], [gl_cv_type_wint_t_large_enough], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; ]])], [gl_cv_type_wint_t_large_enough=yes], [gl_cv_type_wint_t_large_enough=no])]) if test $gl_cv_type_wint_t_large_enough = no; then GNULIBHEADERS_OVERRIDE_WINT_T=1 else GNULIBHEADERS_OVERRIDE_WINT_T=0 fi else GNULIBHEADERS_OVERRIDE_WINT_T=0 fi AC_SUBST([GNULIBHEADERS_OVERRIDE_WINT_T]) ]) dnl Prerequisites of the 'wint_t' override. AC_DEFUN([gl_TYPE_WINT_T_PREREQ], [ AC_CHECK_HEADERS_ONCE([crtdefs.h]) if test $ac_cv_header_crtdefs_h = yes; then HAVE_CRTDEFS_H=1 else HAVE_CRTDEFS_H=0 fi AC_SUBST([HAVE_CRTDEFS_H]) ]) shishi-1.0.3/lib/gl/m4/fcntl.m40000644000000000000000000001217214273615122012737 00000000000000# fcntl.m4 serial 11 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # For now, this module ensures that fcntl() # - supports F_DUPFD correctly # - supports or emulates F_DUPFD_CLOEXEC # - supports F_GETFD # Still to be ported to mingw: # - F_SETFD # - F_GETFL, F_SETFL # - F_GETOWN, F_SETOWN # - F_GETLK, F_SETLK, F_SETLKW AC_DEFUN([gl_FUNC_FCNTL], [ dnl Persuade glibc to expose F_DUPFD_CLOEXEC. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_CHECK_FUNCS_ONCE([fcntl]) if test $ac_cv_func_fcntl = no; then gl_REPLACE_FCNTL else dnl cygwin 1.5.x F_DUPFD has wrong errno, and allows negative target dnl haiku alpha 2 F_DUPFD has wrong errno AC_CACHE_CHECK([whether fcntl handles F_DUPFD correctly], [gl_cv_func_fcntl_f_dupfd_works], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include #include #include ]GL_MDA_DEFINES[ #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif ]], [[int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; if (errno != EINVAL) result |= 2; if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; if (errno != EINVAL) result |= 8; /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ { int fd; fd = open (".", O_RDONLY); if (fd == -1) result |= 16; else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) result |= 32; close (fd); } return result;]])], [gl_cv_func_fcntl_f_dupfd_works=yes], [gl_cv_func_fcntl_f_dupfd_works=no], [case $host_os in aix* | cygwin* | haiku*) gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; esac])]) case $gl_cv_func_fcntl_f_dupfd_works in *yes) ;; *) gl_REPLACE_FCNTL AC_DEFINE([FCNTL_DUPFD_BUGGY], [1], [Define this to 1 if F_DUPFD behavior does not match POSIX]) ;; esac dnl Many systems lack F_DUPFD_CLOEXEC. dnl NetBSD 9.0 declares F_DUPFD_CLOEXEC but it works only like F_DUPFD. AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC], [gl_cv_func_fcntl_f_dupfd_cloexec], [AC_RUN_IFELSE( [AC_LANG_SOURCE( [[#include #include int main (int argc, char *argv[]) { if (argc == 1) /* parent process */ { if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) return 1; return execl ("./conftest", "./conftest", "child", NULL); } else /* child process */ return (fcntl (10, F_GETFL) < 0 ? 0 : 42); } ]]) ], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #ifdef __linux__ /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace it to support the semantics on older kernels that failed with EINVAL. */ choke me #endif ]])], [gl_cv_func_fcntl_f_dupfd_cloexec=yes], [gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"]) ], [gl_cv_func_fcntl_f_dupfd_cloexec=no], [case "$host_os" in # Guess no on NetBSD. netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_fcntl_f_dupfd_cloexec" in *yes) ;; *) gl_REPLACE_FCNTL dnl No witness macro needed for this bug. ;; esac fi dnl Replace fcntl() for supporting the gnulib-defined fchdir() function, dnl to keep fchdir's bookkeeping up-to-date. m4_ifdef([gl_FUNC_FCHDIR], [ gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then gl_REPLACE_FCNTL fi ]) ]) AC_DEFUN([gl_REPLACE_FCNTL], [ AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([fcntl]) if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi ]) shishi-1.0.3/lib/gl/m4/absolute-header.m40000644000000000000000000001015114273615122014670 00000000000000# absolute-header.m4 serial 17 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Derek Price. # gl_ABSOLUTE_HEADER(HEADER1 HEADER2 ...) # --------------------------------------- # Find the absolute name of a header file, testing first if the header exists. # If the header were sys/inttypes.h, this macro would define # ABSOLUTE_SYS_INTTYPES_H to the '""' quoted absolute name of sys/inttypes.h # in config.h # (e.g. '#define ABSOLUTE_SYS_INTTYPES_H "///usr/include/sys/inttypes.h"'). # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use '""', not '<>', so that the /// cannot be confused with a C99 comment. # Note: This macro assumes that the header file is not empty after # preprocessing, i.e. it does not only define preprocessor macros but also # provides some type/enum definitions or function/variable declarations. AC_DEFUN([gl_ABSOLUTE_HEADER], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_PREPROC_REQUIRE()dnl m4_foreach_w([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_absolute_header], [gl_cv_absolute_]m4_defn([gl_HEADER_NAME]))dnl AC_CACHE_CHECK([absolute name of <]m4_defn([gl_HEADER_NAME])[>], [gl_absolute_header], [AS_VAR_PUSHDEF([ac_header_exists], [ac_cv_header_]m4_defn([gl_HEADER_NAME]))dnl AC_CHECK_HEADERS_ONCE(m4_defn([gl_HEADER_NAME]))dnl if test AS_VAR_GET([ac_header_exists]) = yes; then gl_ABSOLUTE_HEADER_ONE(m4_defn([gl_HEADER_NAME])) fi AS_VAR_POPDEF([ac_header_exists])dnl ])dnl AC_DEFINE_UNQUOTED(AS_TR_CPP([ABSOLUTE_]m4_defn([gl_HEADER_NAME])), ["AS_VAR_GET([gl_absolute_header])"], [Define this to an absolute name of <]m4_defn([gl_HEADER_NAME])[>.]) AS_VAR_POPDEF([gl_absolute_header])dnl ])dnl ])# gl_ABSOLUTE_HEADER # gl_ABSOLUTE_HEADER_ONE(HEADER) # ------------------------------ # Like gl_ABSOLUTE_HEADER, except that: # - it assumes that the header exists, # - it uses the current CPPFLAGS, # - it does not cache the result, # - it is silent. AC_DEFUN([gl_ABSOLUTE_HEADER_ONE], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_CONFTEST([AC_LANG_SOURCE([[#include <]]m4_dquote([$1])[[>]])]) dnl AIX "xlc -E" and "cc -E" omit #line directives for header files dnl that contain only a #include of other header files and no dnl non-comment tokens of their own. This leads to a failure to dnl detect the absolute name of , , dnl and others. The workaround is to force preservation of comments dnl through option -C. This ensures all necessary #line directives dnl are present. GCC supports option -C as well. case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac changequote(,) case "$host_os" in mingw*) dnl For the sake of native Windows compilers (excluding gcc), dnl treat backslash as a directory separator, like /. dnl Actually, these compilers use a double-backslash as dnl directory separator, inside the dnl # line "filename" dnl directives. gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac dnl A sed expression that turns a string into a basic regular dnl expression, for use within "/.../". gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo '$1' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' changequote([,]) dnl eval is necessary to expand gl_absname_cpp. dnl Ultrix and Pyramid sh refuse to redirect output of eval, dnl so use subshell. AS_VAR_SET([gl_cv_absolute_]AS_TR_SH([[$1]]), [`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | sed -n "$gl_absolute_header_sed"`]) ]) shishi-1.0.3/lib/gl/m4/socklen.m40000644000000000000000000000615714273615122013275 00000000000000# socklen.m4 serial 11 dnl Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Albert Chin, Windows fixes from Simon Josefsson. dnl Check for socklen_t: historically on BSD it is an int, and in dnl POSIX 1g it is a type of its own, but some platforms use different dnl types for the argument to getsockopt, getpeername, etc.: dnl HP-UX 10.20, IRIX 6.5, OSF/1 4.0, Interix 3.5, BeOS. dnl So we have to test to find something that will work. AC_DEFUN([gl_TYPE_SOCKLEN_T], [AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])dnl AC_CHECK_TYPE([socklen_t], , [AC_CACHE_CHECK([for socklen_t equivalent], [gl_cv_socklen_t_equiv], [# Systems have either "struct sockaddr *" or # "void *" as the second argument to getpeername gl_cv_socklen_t_equiv= for arg2 in "struct sockaddr" void; do for t in int size_t "unsigned int" "long int" "unsigned long int"; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[#include #include int getpeername (int, $arg2 *, $t *);]], [[$t len; getpeername (0, 0, &len);]])], [gl_cv_socklen_t_equiv="$t"]) test "$gl_cv_socklen_t_equiv" != "" && break done test "$gl_cv_socklen_t_equiv" != "" && break done if test "$gl_cv_socklen_t_equiv" = ""; then AC_MSG_ERROR([Cannot find a type to use in place of socklen_t]) fi ]) AC_DEFINE_UNQUOTED([socklen_t], [$gl_cv_socklen_t_equiv], [type to use in place of socklen_t if not defined])], [gl_SOCKET_HEADERS])]) dnl On mingw32, socklen_t is in ws2tcpip.h ('int'), so we try to find dnl it there too. But on Cygwin, wc2tcpip.h must not be included. Users dnl of this module should use the same include pattern as gl_SOCKET_HEADERS. dnl When you change this macro, keep also in sync: dnl - gl_CHECK_SOCKET_HEADERS, dnl - the Include section of modules/socklen. AC_DEFUN([gl_SOCKET_HEADERS], [ /* is not needed according to POSIX, but the in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #if HAVE_SYS_SOCKET_H # include #elif HAVE_WS2TCPIP_H # include #endif ]) dnl Tests for the existence of the header for socket facilities. dnl Defines the C macros HAVE_SYS_SOCKET_H, HAVE_WS2TCPIP_H. dnl This macro must match gl_SOCKET_HEADERS. AC_DEFUN([gl_CHECK_SOCKET_HEADERS], [AC_CHECK_HEADERS_ONCE([sys/socket.h]) if test $ac_cv_header_sys_socket_h = no; then dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make dnl the check for those headers unconditional; yet cygwin reports dnl that the headers are present but cannot be compiled (since on dnl cygwin, all socket information should come from sys/socket.h). AC_CHECK_HEADERS([ws2tcpip.h]) fi ]) shishi-1.0.3/lib/gl/m4/parse-datetime.m40000644000000000000000000000424114273615122014533 00000000000000# parse-datetime.m4 serial 27 dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Define HAVE_COMPOUND_LITERALS if the C compiler supports compound literals dnl as in ISO C99. dnl Note that compound literals such as (struct s) { 3, 4 } can be used for dnl initialization of stack-allocated variables, but are not constant dnl expressions and therefore cannot be used as initializer for global or dnl static variables (even though gcc supports this in pre-C99 mode). AC_DEFUN([gl_C_COMPOUND_LITERALS], [ AC_CACHE_CHECK([for compound literals], [gl_cv_compound_literals], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[struct s { int i, j; };]], [[struct s t = (struct s) { 3, 4 }; if (t.i != 0) return 0;]]) ], [gl_cv_compound_literals=yes], [gl_cv_compound_literals=no]) ]) if test $gl_cv_compound_literals = yes; then AC_DEFINE([HAVE_COMPOUND_LITERALS], [1], [Define if you have compound literals.]) fi ]) AC_DEFUN([gl_PARSE_DATETIME], [ dnl parse-datetime.c is generated from parse-datetime.y. It requires bison, dnl because parse-datetime.y uses bison specific features. It requires at dnl least bison-2.4 for %define api.pure. dnl bison is only needed for the maintainer (who touches parse-datetime.y). dnl But in order to avoid separate Makefiles or --enable-maintainer-mode, dnl we put the rule in general Makefile. Now, some people carelessly touch dnl the files or have a broken "make" program, hence the parse-datetime.c dnl rule will sometimes fire. To avoid an error, defines PARSE_DATETIME_BISON dnl to ":" if it is not present or too old. gl_PROG_BISON([PARSE_DATETIME_BISON], [2.4]) dnl Prerequisites of lib/parse-datetime.h. AC_REQUIRE([gl_TIMESPEC]) AC_REQUIRE([AC_C_RESTRICT]) dnl Prerequisites of lib/parse-datetime.y. AC_REQUIRE([gl_BISON]) AC_REQUIRE([gl_C_COMPOUND_LITERALS]) AC_STRUCT_TIMEZONE AC_REQUIRE([gl_CLOCK_TIME]) AC_REQUIRE([gl_TM_GMTOFF]) ]) shishi-1.0.3/lib/gl/m4/inttypes.m40000644000000000000000000001377414273615122013521 00000000000000# inttypes.m4 serial 36 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Derek Price, Bruno Haible. dnl Test whether is supported or must be substituted. AC_DEFUN_ONCE([gl_INTTYPES_H], [ AC_REQUIRE([gl_INTTYPES_INCOMPLETE]) gl_INTTYPES_PRI_SCN ]) AC_DEFUN_ONCE([gl_INTTYPES_INCOMPLETE], [ AC_REQUIRE([gl_STDINT_H]) AC_CHECK_HEADERS_ONCE([inttypes.h]) dnl Override always, so that the portability warnings work. AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([inttypes.h]) AC_REQUIRE([gl_MULTIARCH]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include ]], [imaxabs imaxdiv strtoimax strtoumax]) AC_REQUIRE([AC_C_RESTRICT]) ]) # Ensure that the PRI* and SCN* macros are defined appropriately. AC_DEFUN([gl_INTTYPES_PRI_SCN], [ PRIPTR_PREFIX= if $GL_GENERATE_STDINT_H; then dnl Using the gnulib . It defines intptr_t to 'long' or dnl 'long long', depending on _WIN64. AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ #ifdef _WIN64 LLP64 #endif ]]) ], [PRIPTR_PREFIX='"l"'], [PRIPTR_PREFIX='"ll"']) else dnl Using the system's . for glpfx in '' l ll I64; do case $glpfx in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; I64) gltype1='__int64';; esac AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include extern intptr_t foo; extern $gltype1 foo;]])], [PRIPTR_PREFIX='"'$glpfx'"']) test -n "$PRIPTR_PREFIX" && break done fi AC_SUBST([PRIPTR_PREFIX]) gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION( [INT32_MAX_LT_INTMAX_MAX], [defined INT32_MAX && defined INTMAX_MAX], [INT32_MAX < INTMAX_MAX], [sizeof (int) < sizeof (long long int)]) if test $APPLE_UNIVERSAL_BUILD = 0; then gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION( [INT64_MAX_EQ_LONG_MAX], [defined INT64_MAX], [INT64_MAX == LONG_MAX], [sizeof (long long int) == sizeof (long int)]) else INT64_MAX_EQ_LONG_MAX=-1 fi gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION( [UINT32_MAX_LT_UINTMAX_MAX], [defined UINT32_MAX && defined UINTMAX_MAX], [UINT32_MAX < UINTMAX_MAX], [sizeof (unsigned int) < sizeof (unsigned long long int)]) if test $APPLE_UNIVERSAL_BUILD = 0; then gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION( [UINT64_MAX_EQ_ULONG_MAX], [defined UINT64_MAX], [UINT64_MAX == ULONG_MAX], [sizeof (unsigned long long int) == sizeof (unsigned long int)]) else UINT64_MAX_EQ_ULONG_MAX=-1 fi ]) # Define the symbol $1 to be 1 if the condition is true, 0 otherwise. # If $2 is true, the condition is $3; otherwise if long long int is supported # approximate the condition with $4; otherwise, assume the condition is false. # The condition should work on all C99 platforms; the approximations should be # good enough to work on all practical pre-C99 platforms. # $2 is evaluated by the C preprocessor, $3 and $4 as compile-time constants. AC_DEFUN([gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION], [ AC_CACHE_CHECK([whether $3], [gl_cv_test_$1], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[/* Work also in C++ mode. */ #define __STDC_LIMIT_MACROS 1 /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H #include #if HAVE_STDINT_H #include #endif #if $2 #define CONDITION ($3) #else #define CONDITION ($4) #endif int test[CONDITION ? 1 : -1];]])], [gl_cv_test_$1=yes], [gl_cv_test_$1=no])]) if test $gl_cv_test_$1 = yes; then $1=1; else $1=0; fi AC_SUBST([$1]) ]) # gl_INTTYPES_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_INTTYPES_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_INTTYPES_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_INTTYPES_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_INTTYPES_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_IMAXABS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_IMAXDIV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOIMAX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOUMAX]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_INTTYPES_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) ]) AC_DEFUN([gl_INTTYPES_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_IMAXABS=1; AC_SUBST([HAVE_DECL_IMAXABS]) HAVE_DECL_IMAXDIV=1; AC_SUBST([HAVE_DECL_IMAXDIV]) HAVE_DECL_STRTOIMAX=1; AC_SUBST([HAVE_DECL_STRTOIMAX]) HAVE_DECL_STRTOUMAX=1; AC_SUBST([HAVE_DECL_STRTOUMAX]) HAVE_IMAXDIV_T=1; AC_SUBST([HAVE_IMAXDIV_T]) REPLACE_STRTOIMAX=0; AC_SUBST([REPLACE_STRTOIMAX]) REPLACE_STRTOUMAX=0; AC_SUBST([REPLACE_STRTOUMAX]) INT32_MAX_LT_INTMAX_MAX=1; AC_SUBST([INT32_MAX_LT_INTMAX_MAX]) INT64_MAX_EQ_LONG_MAX='defined _LP64'; AC_SUBST([INT64_MAX_EQ_LONG_MAX]) PRIPTR_PREFIX=__PRIPTR_PREFIX; AC_SUBST([PRIPTR_PREFIX]) UINT32_MAX_LT_UINTMAX_MAX=1; AC_SUBST([UINT32_MAX_LT_UINTMAX_MAX]) UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; AC_SUBST([UINT64_MAX_EQ_ULONG_MAX]) ]) shishi-1.0.3/lib/gl/m4/gl-openssl.m40000644000000000000000000000613214273615122013713 00000000000000# gl-openssl.m4 serial 6 dnl Copyright (C) 2013-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_SET_CRYPTO_CHECK_DEFAULT], [ m4_define([gl_CRYPTO_CHECK_DEFAULT], [$1]) ]) gl_SET_CRYPTO_CHECK_DEFAULT([no]) AC_DEFUN([gl_CRYPTO_CHECK], [ dnl gnulib users set this before gl_INIT with gl_SET_CRYPTO_CHECK_DEFAULT() m4_divert_once([DEFAULTS], [with_openssl_default='gl_CRYPTO_CHECK_DEFAULT']) dnl Only clear once, so crypto routines can be checked for individually m4_divert_once([DEFAULTS], [LIB_CRYPTO=]) AC_ARG_WITH([openssl], [[ --with-openssl[=ARG] use libcrypto hash routines for the hash functions MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512. Valid ARGs are: 'yes', 'no', 'auto' => use if any version available, 'auto-gpl-compat' => use if GPL compatible version available, 'optional' => use if available and warn if not available; Default is ']gl_CRYPTO_CHECK_DEFAULT['.]m4_ifdef([gl_AF_ALG], [ Note also --with-linux-crypto, which will enable the use of Linux kernel crypto routines (if available), which has precedence for files.])], [], [with_openssl=$with_openssl_default]) AC_SUBST([LIB_CRYPTO]) if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then AC_CACHE_CHECK([whether openssl is GPL compatible], [gl_cv_openssl_gpl_compat], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif ]])], [gl_cv_openssl_gpl_compat=yes], [gl_cv_openssl_gpl_compat=no])]) fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then AC_CHECK_LIB([crypto], [$1], [AC_CHECK_HEADERS( m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]), [LIB_CRYPTO=-lcrypto AC_DEFINE([HAVE_OPENSSL_$1], [1], [Define to 1 if libcrypto is used for $1.])])]) fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for $1. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then AC_MSG_ERROR([$message]) elif test "x$with_openssl" = xoptional; then AC_MSG_WARN([$message]) fi fi fi ]) shishi-1.0.3/lib/gl/m4/memxor.m40000644000000000000000000000052214273615122013134 00000000000000# memxor.m4 serial 4 dnl Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MEMXOR], [ AC_REQUIRE([AC_C_RESTRICT]) ]) shishi-1.0.3/lib/gl/m4/stat.m40000644000000000000000000000545714273615122012614 00000000000000# serial 18 # Copyright (C) 2009-2022 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STAT], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([lstat]) case "$host_os" in mingw*) dnl On this platform, the original stat() returns st_atime, st_mtime, dnl st_ctime values that are affected by the time zone. REPLACE_STAT=1 ;; *) dnl AIX 7.1, Solaris 9, mingw64 mistakenly succeed on stat("file/"). dnl (For mingw, this is due to a broken stat() override in libmingwex.a.) dnl FreeBSD 7.2 mistakenly succeeds on stat("link-to-file/"). AC_CACHE_CHECK([whether stat handles trailing slashes on files], [gl_cv_func_stat_file_slash], [touch conftest.tmp # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then ln -s conftest.tmp conftest.lnk fi AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[int result = 0; struct stat st; if (!stat ("conftest.tmp/", &st)) result |= 1; #if HAVE_LSTAT if (!stat ("conftest.lnk/", &st)) result |= 2; #endif return result; ]])], [gl_cv_func_stat_file_slash=yes], [gl_cv_func_stat_file_slash=no], [case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.tmp conftest.lnk]) case $gl_cv_func_stat_file_slash in *no) REPLACE_STAT=1 AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs help when passed a file name with a trailing slash]);; esac case $host_os in dnl Solaris stat can return a negative tv_nsec. solaris*) REPLACE_FSTAT=1 ;; esac ;; esac ]) # Prerequisites of lib/stat.c and lib/stat-w32.c. AC_DEFUN([gl_PREREQ_STAT], [ AC_REQUIRE([gl_SYS_STAT_H]) AC_REQUIRE([gl_PREREQ_STAT_W32]) : ]) # Prerequisites of lib/stat-w32.c. AC_DEFUN([gl_PREREQ_STAT_W32], [ AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw*) AC_CHECK_HEADERS([sdkddkver.h]) ;; esac ]) shishi-1.0.3/lib/gl/m4/libgcrypt.m40000644000000000000000000001414214273615122013627 00000000000000# libgcrypt.m4 - Autoconf macros to detect libgcrypt # Copyright (C) 2002, 2003, 2004, 2011, 2014, 2018, 2020 g10 Code GmbH # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Last-changed: 2020-09-27 dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION, dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]]) dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS. dnl MINIMUM-VERSION is a string with the version number optionally prefixed dnl with the API version to also check the API compatibility. Example: dnl a MINIMUM-VERSION of 1:1.2.5 won't pass the test unless the installed dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using dnl this features allows to prevent build against newer versions of libgcrypt dnl with a changed API. dnl dnl If a prefix option is not used, the config script is first dnl searched in $SYSROOT/bin and then along $PATH. If the used dnl config script does not match the host specification the script dnl is added to the gpg_config_script_warn variable. dnl AC_DEFUN([AM_PATH_LIBGCRYPT], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_WITH(libgcrypt-prefix, AS_HELP_STRING([--with-libgcrypt-prefix=PFX], [prefix where LIBGCRYPT is installed (optional)]), libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="") if test x"${LIBGCRYPT_CONFIG}" = x ; then if test x"${libgcrypt_config_prefix}" != x ; then LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config" fi fi use_gpgrt_config="" if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then if $GPGRT_CONFIG libgcrypt --exists; then LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt" AC_MSG_NOTICE([Use gpgrt-config as libgcrypt-config]) use_gpgrt_config=yes fi fi if test -z "$use_gpgrt_config"; then if test x"${LIBGCRYPT_CONFIG}" = x ; then case "${SYSROOT}" in /*) if test -x "${SYSROOT}/bin/libgcrypt-config" ; then LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config" fi ;; '') ;; *) AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.]) ;; esac fi AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no) fi tmp=ifelse([$1], ,1:1.2.0,$1) if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` else req_libgcrypt_api=0 min_libgcrypt_version="$tmp" fi AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version) ok=no if test "$LIBGCRYPT_CONFIG" != "no" ; then req_major=`echo $min_libgcrypt_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` req_minor=`echo $min_libgcrypt_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` req_micro=`echo $min_libgcrypt_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` if test -z "$use_gpgrt_config"; then libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` else libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion` fi major=`echo $libgcrypt_config_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` minor=`echo $libgcrypt_config_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` micro=`echo $libgcrypt_config_version | \ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'` if test "$major" -gt "$req_major"; then ok=yes else if test "$major" -eq "$req_major"; then if test "$minor" -gt "$req_minor"; then ok=yes else if test "$minor" -eq "$req_minor"; then if test "$micro" -ge "$req_micro"; then ok=yes fi fi fi fi fi fi if test $ok = yes; then AC_MSG_RESULT([yes ($libgcrypt_config_version)]) else AC_MSG_RESULT(no) fi if test $ok = yes; then # If we have a recent libgcrypt, we should also check that the # API is compatible if test "$req_libgcrypt_api" -gt 0 ; then if test -z "$use_gpgrt_config"; then tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` else tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0` fi if test "$tmp" -gt 0 ; then AC_MSG_CHECKING([LIBGCRYPT API version]) if test "$req_libgcrypt_api" -eq "$tmp" ; then AC_MSG_RESULT([okay]) else ok=no AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp]) fi fi fi fi if test $ok = yes; then LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` ifelse([$2], , :, [$2]) if test -z "$use_gpgrt_config"; then libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` else libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` fi if test x"$libgcrypt_config_host" != xnone ; then if test x"$libgcrypt_config_host" != x"$host" ; then AC_MSG_WARN([[ *** *** The config script "$LIBGCRYPT_CONFIG" was *** built for $libgcrypt_config_host and thus may not match the *** used host $host. *** You may want to use the configure option --with-libgcrypt-prefix *** to specify a matching config script or use \$SYSROOT. ***]]) gpg_config_script_warn="$gpg_config_script_warn libgcrypt" fi fi else LIBGCRYPT_CFLAGS="" LIBGCRYPT_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(LIBGCRYPT_CFLAGS) AC_SUBST(LIBGCRYPT_LIBS) ]) shishi-1.0.3/lib/gl/m4/reallocarray.m40000644000000000000000000000136714273615122014315 00000000000000# reallocarray.m4 serial 3 dnl Copyright (C) 2017-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_REALLOCARRAY], [ dnl Persuade glibc to declare reallocarray. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF]) AC_CHECK_FUNCS([reallocarray]) if test "$ac_cv_func_reallocarray" = no; then HAVE_REALLOCARRAY=0 elif test "$gl_cv_malloc_ptrdiff" = no; then REPLACE_REALLOCARRAY=1 fi ]) # Prerequisites of lib/reallocarray.c. AC_DEFUN([gl_PREREQ_REALLOCARRAY], [:]) shishi-1.0.3/lib/gl/m4/sys_types_h.m40000644000000000000000000000436114273615123014204 00000000000000# sys_types_h.m4 serial 13 dnl Copyright (C) 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_SYS_TYPES_H], [ AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) dnl Use sane struct stat types in OpenVMS 8.2 and later. AC_DEFINE([_USE_STD_STAT], 1, [For standard stat data types on VMS.]) gl_NEXT_HEADERS([sys/types.h]) dnl Ensure the type pid_t gets defined. AC_REQUIRE([AC_TYPE_PID_T]) dnl Ensure the type mode_t gets defined. AC_REQUIRE([AC_TYPE_MODE_T]) dnl Whether to override the 'off_t' type. AC_REQUIRE([gl_TYPE_OFF_T]) dnl Whether to override the 'dev_t' and 'ino_t' types. m4_ifdef([gl_WINDOWS_STAT_INODES], [ AC_REQUIRE([gl_WINDOWS_STAT_INODES]) ], [ WINDOWS_STAT_INODES=0 ]) AC_SUBST([WINDOWS_STAT_INODES]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_TYPES_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS], [ ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS], [ ]) # This works around a buggy version in autoconf <= 2.69. # See # The 2.70 version isn't quoted properly, so override it too. m4_version_prereq([2.70.1], [], [ m4_undefine([AC_HEADER_MAJOR]) AC_DEFUN([AC_HEADER_MAJOR], [AC_CHECK_HEADERS_ONCE([sys/types.h]) AC_CHECK_HEADER([sys/mkdev.h], [AC_DEFINE([MAJOR_IN_MKDEV], [1], [Define to 1 if `major', `minor', and `makedev' are declared in .])]) if test $ac_cv_header_sys_mkdev_h = no; then AC_CHECK_HEADER([sys/sysmacros.h], [AC_DEFINE([MAJOR_IN_SYSMACROS], [1], [Define to 1 if `major', `minor', and `makedev' are declared in .])]) fi ])# AC_HEADER_MAJOR ]) shishi-1.0.3/lib/gl/m4/__inline.m40000644000000000000000000000142314273615122013402 00000000000000# Test for __inline keyword dnl Copyright 2017-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl___INLINE], [ AC_CACHE_CHECK([whether the compiler supports the __inline keyword], [gl_cv_c___inline], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[typedef int foo_t; static __inline foo_t foo (void) { return 0; }]], [[return foo ();]])], [gl_cv_c___inline=yes], [gl_cv_c___inline=no])]) if test $gl_cv_c___inline = yes; then AC_DEFINE([HAVE___INLINE], [1], [Define to 1 if the compiler supports the keyword '__inline'.]) fi ]) shishi-1.0.3/lib/gl/m4/msvc-nothrow.m40000644000000000000000000000053014273615122014272 00000000000000# msvc-nothrow.m4 serial 1 dnl Copyright (C) 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MSVC_NOTHROW], [ AC_REQUIRE([gl_MSVC_INVAL]) ]) shishi-1.0.3/lib/gl/m4/string_h.m40000644000000000000000000001604714273615122013453 00000000000000# Configure a GNU-like replacement for . # Copyright (C) 2007-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 34 # Written by Paul Eggert. AC_DEFUN_ONCE([gl_STRING_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_STRING_H_DEFAULTS]) gl_NEXT_HEADERS([string.h]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use, and which is not dnl guaranteed by C89. gl_WARN_ON_USE_PREPARE([[#include ]], [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strerrorname_np sigabbrev_np sigdescr_np strsignal strverscmp]) AC_REQUIRE([AC_C_RESTRICT]) ]) # gl_STRING_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_STRING_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_STRING_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_STRING_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STRING_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPLICIT_BZERO]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFSL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFSLL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMMEM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMPCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMRCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RAWMEMCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPNCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCHRNUL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRDUP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNDUP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPBRK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSEP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSTR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCASESTR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOK_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSRCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSTR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCASECMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNCASECMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSPCASECMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCASESTR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCSPN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSPBRK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSPN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSEP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSTOK_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERROR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERROR_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERRORNAME_NP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGABBREV_NP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGDESCR_NP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSIGNAL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRVERSCMP]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MEMCCPY], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_STRDUP], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STRING_H_MODULE_INDICATOR_DEFAULTS]) dnl Make sure the shell variable for GNULIB_FREE_POSIX is initialized. gl_STDLIB_H_REQUIRE_DEFAULTS AC_REQUIRE([gl_STRING_H_DEFAULTS]) ]) AC_DEFUN([gl_STRING_H_DEFAULTS], [ HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN]) dnl Assume proper GNU behavior unless another module says otherwise. HAVE_EXPLICIT_BZERO=1; AC_SUBST([HAVE_EXPLICIT_BZERO]) HAVE_FFSL=1; AC_SUBST([HAVE_FFSL]) HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL]) HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR]) HAVE_RAWMEMCHR=1; AC_SUBST([HAVE_RAWMEMCHR]) HAVE_STPCPY=1; AC_SUBST([HAVE_STPCPY]) HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) HAVE_STRSEP=1; AC_SUBST([HAVE_STRSEP]) HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR]) HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R]) HAVE_DECL_STRERROR_R=1; AC_SUBST([HAVE_DECL_STRERROR_R]) HAVE_STRERRORNAME_NP=1; AC_SUBST([HAVE_STRERRORNAME_NP]) HAVE_SIGABBREV_NP=1; AC_SUBST([HAVE_SIGABBREV_NP]) HAVE_SIGDESCR_NP=1; AC_SUBST([HAVE_SIGDESCR_NP]) HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL]) HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP]) REPLACE_FFSLL=0; AC_SUBST([REPLACE_FFSLL]) REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR]) REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM]) REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY]) REPLACE_STRCHRNUL=0; AC_SUBST([REPLACE_STRCHRNUL]) REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP]) REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT]) REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP]) REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN]) REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR]) REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR]) REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R]) REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) REPLACE_STRERROR_R=0; AC_SUBST([REPLACE_STRERROR_R]) REPLACE_STRERRORNAME_NP=0; AC_SUBST([REPLACE_STRERRORNAME_NP]) REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL]) UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R]) ]) shishi-1.0.3/lib/gl/m4/stddef_h.m40000644000000000000000000000710314273615122013407 00000000000000# stddef_h.m4 serial 12 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl A placeholder for , for platforms that have issues. AC_DEFUN_ONCE([gl_STDDEF_H], [ AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) AC_REQUIRE([gt_TYPE_WCHAR_T]) dnl Persuade OpenBSD to declare max_align_t. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) GL_GENERATE_STDDEF_H=false dnl Test whether the type max_align_t exists and whether its alignment dnl "is as great as is supported by the implementation in all contexts". AC_CACHE_CHECK([for good max_align_t], [gl_cv_type_max_align_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include unsigned int s = sizeof (max_align_t); #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; #endif typedef struct { char a; max_align_t b; } max_helper; typedef struct { char a; long b; } long_helper; typedef struct { char a; double b; } double_helper; typedef struct { char a; long double b; } long_double_helper; int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1]; int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1]; int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; ]])], [gl_cv_type_max_align_t=yes], [gl_cv_type_max_align_t=no]) ]) if test $gl_cv_type_max_align_t = no; then HAVE_MAX_ALIGN_T=0 GL_GENERATE_STDDEF_H=true fi if test $gt_cv_c_wchar_t = no; then HAVE_WCHAR_T=0 GL_GENERATE_STDDEF_H=true fi AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions], [gl_cv_decl_null_works], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include int test[2 * (sizeof NULL == sizeof (void *)) -1]; ]])], [gl_cv_decl_null_works=yes], [gl_cv_decl_null_works=no])]) if test $gl_cv_decl_null_works = no; then REPLACE_NULL=1 GL_GENERATE_STDDEF_H=true fi if $GL_GENERATE_STDDEF_H; then gl_NEXT_HEADERS([stddef.h]) fi ]) # gl_STDDEF_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_STDDEF_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_STDDEF_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_STDDEF_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDDEF_H_MODULE_INDICATOR_DEFAULTS], [ ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STDDEF_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_STDDEF_H_DEFAULTS]) ]) AC_DEFUN([gl_STDDEF_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. REPLACE_NULL=0; AC_SUBST([REPLACE_NULL]) HAVE_MAX_ALIGN_T=1; AC_SUBST([HAVE_MAX_ALIGN_T]) HAVE_WCHAR_T=1; AC_SUBST([HAVE_WCHAR_T]) ]) shishi-1.0.3/lib/gl/m4/sockpfaf.m40000644000000000000000000000476714273615122013440 00000000000000# sockpfaf.m4 serial 10 dnl Copyright (C) 2004, 2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Test for some common socket protocol families (PF_INET, PF_INET6, ...) dnl and some common address families (AF_INET, AF_INET6, ...). dnl This test assumes that a system supports an address family if and only if dnl it supports the corresponding protocol family. dnl From Bruno Haible. AC_DEFUN([gl_SOCKET_FAMILIES], [ AC_REQUIRE([gl_SYS_SOCKET_H]) AC_CHECK_HEADERS_ONCE([netinet/in.h]) AC_CACHE_CHECK([for IPv4 sockets], [gl_cv_socket_ipv4], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif]], [[int x = AF_INET; struct in_addr y; struct sockaddr_in z; if (&x && &y && &z) return 0;]])], gl_cv_socket_ipv4=yes, gl_cv_socket_ipv4=no)]) if test $gl_cv_socket_ipv4 = yes; then AC_DEFINE([HAVE_IPV4], [1], [Define to 1 if defines AF_INET.]) fi AC_CACHE_CHECK([for IPv6 sockets], [gl_cv_socket_ipv6], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif]], [[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0;]])], gl_cv_socket_ipv6=yes, gl_cv_socket_ipv6=no)]) if test $gl_cv_socket_ipv6 = yes; then AC_DEFINE([HAVE_IPV6], [1], [Define to 1 if defines AF_INET6.]) fi ]) AC_DEFUN([gl_SOCKET_FAMILY_UNIX], [ AC_REQUIRE([gl_SYS_SOCKET_H]) AC_CHECK_HEADERS_ONCE([sys/un.h]) AC_CACHE_CHECK([for UNIX domain sockets], [gl_cv_socket_unix], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_SYS_UN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif]], [[int x = AF_UNIX; struct sockaddr_un y; if (&x && &y) return 0;]])], gl_cv_socket_unix=yes, gl_cv_socket_unix=no)]) if test $gl_cv_socket_unix = yes; then AC_DEFINE([HAVE_UNIXSOCKET], [1], [Define to 1 if defines AF_UNIX.]) fi ]) shishi-1.0.3/lib/gl/m4/open-slash.m40000644000000000000000000000345514273615122013706 00000000000000# open-slash.m4 serial 2 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Tests whether open() and creat() recognize a trailing slash. dnl Sets gl_cv_func_open_slash. AC_DEFUN([gl_OPEN_TRAILING_SLASH_BUG], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl open("foo/") should not create a file when the file name has a dnl trailing slash. FreeBSD only has the problem on symlinks. AC_CHECK_FUNCS_ONCE([lstat]) AC_CACHE_CHECK([whether open recognizes a trailing slash], [gl_cv_func_open_slash], [# Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then touch conftest.tmp ln -s conftest.tmp conftest.lnk fi AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #if HAVE_UNISTD_H # include #endif ]GL_MDA_DEFINES[ int main () { int result = 0; #if HAVE_LSTAT if (open ("conftest.lnk/", O_RDONLY) != -1) result |= 1; #endif if (open ("conftest.sl/", O_CREAT, 0600) >= 0) result |= 2; return result; }]])], [gl_cv_func_open_slash=yes], [gl_cv_func_open_slash=no], [ changequote(,)dnl case "$host_os" in freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) gl_cv_func_open_slash="guessing no" ;; *) gl_cv_func_open_slash="guessing yes" ;; esac changequote([,])dnl ]) rm -f conftest.sl conftest.tmp conftest.lnk ]) case "$gl_cv_func_open_slash" in *no) AC_DEFINE([OPEN_TRAILING_SLASH_BUG], [1], [Define to 1 if open() fails to recognize a trailing slash.]) ;; esac ]) shishi-1.0.3/lib/gl/m4/open-cloexec.m40000644000000000000000000000132314273615122014206 00000000000000# Test whether O_CLOEXEC is defined. dnl Copyright 2017-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_PREPROC_O_CLOEXEC], [ AC_CACHE_CHECK([for O_CLOEXEC], [gl_cv_macro_O_CLOEXEC], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include #ifndef O_CLOEXEC choke me; #endif ]], [[return O_CLOEXEC;]])], [gl_cv_macro_O_CLOEXEC=yes], [gl_cv_macro_O_CLOEXEC=no])]) ]) shishi-1.0.3/lib/gl/m4/sockets.m40000644000000000000000000000070714273615122013305 00000000000000# sockets.m4 serial 7 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_SOCKETS], [ AC_REQUIRE([AC_C_INLINE]) AC_REQUIRE([gl_SOCKETLIB]) gl_PREREQ_SOCKETS ]) # Prerequisites of lib/sockets.c. AC_DEFUN([gl_PREREQ_SOCKETS], [ : ]) shishi-1.0.3/lib/gl/m4/mktime.m40000644000000000000000000002162214273615122013117 00000000000000# serial 37 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Jim Meyering. AC_DEFUN([gl_TIME_T_IS_SIGNED], [ AC_CACHE_CHECK([whether time_t is signed], [gl_cv_time_t_is_signed], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include char time_t_signed[(time_t) -1 < 0 ? 1 : -1];]])], [gl_cv_time_t_is_signed=yes], [gl_cv_time_t_is_signed=no])]) if test $gl_cv_time_t_is_signed = yes; then AC_DEFINE([TIME_T_IS_SIGNED], [1], [Define to 1 if time_t is signed.]) fi ]) dnl Test whether mktime works. Set gl_cv_func_working_mktime. AC_DEFUN([gl_FUNC_MKTIME_WORKS], [ AC_REQUIRE([gl_TIME_T_IS_SIGNED]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl We don't use AC_FUNC_MKTIME any more, because it is no longer maintained dnl in Autoconf and because it invokes AC_LIBOBJ. AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CHECK_DECLS_ONCE([alarm]) AC_REQUIRE([gl_MULTIARCH]) AC_CACHE_CHECK([for working mktime], [gl_cv_func_working_mktime], [if test $APPLE_UNIVERSAL_BUILD = 1; then # A universal build on Apple Mac OS X platforms. # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. # But we need a configuration result that is valid in both modes. gl_cv_func_working_mktime="guessing no" else AC_RUN_IFELSE( [AC_LANG_SOURCE( [[/* Test program from Paul Eggert and Tony Leneis. */ #include #include #include #ifdef HAVE_UNISTD_H # include #endif #if HAVE_DECL_ALARM # include #endif ]GL_MDA_DEFINES[ #ifndef TIME_T_IS_SIGNED # define TIME_T_IS_SIGNED 0 #endif static time_t time_t_max; static time_t time_t_min; /* Values we'll use to set the TZ environment variable. */ static char *tz_strings[] = { (char *) 0, "TZ=GMT0", "TZ=JST-9", "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) /* Return 0 if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static int spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test. */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0) return -1; tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; return mktime (&tm) != (time_t) -1; } static int mktime_test1 (time_t now) { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int mktime_test (time_t now) { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) && mktime_test1 ((time_t) (time_t_min + now))); } static int irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); return tm.tm_mon == 2 && tm.tm_mday == 31; } static int bigtime_test (int j) { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) return 0; } return 1; } static int year_2050_test () { /* The correct answer for 2050-02-01 00:00:00 in Pacific time, ignoring leap seconds. */ unsigned long int answer = 2527315200UL; struct tm tm; time_t t; tm.tm_year = 2050 - 1900; tm.tm_mon = 2 - 1; tm.tm_mday = 1; tm.tm_hour = tm.tm_min = tm.tm_sec = 0; tm.tm_isdst = -1; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0) return -1; t = mktime (&tm); /* Check that the result is either a failure, or close enough to the correct answer that we can assume the discrepancy is due to leap seconds. */ return (t == (time_t) -1 || (0 < t && answer - 120 <= t && t <= answer + 120)); } static int indiana_test () { if (putenv ("TZ=America/Indiana/Indianapolis") != 0) return -1; struct tm tm; tm.tm_year = 1986 - 1900; tm.tm_mon = 4 - 1; tm.tm_mday = 28; tm.tm_hour = 16; tm.tm_min = 24; tm.tm_sec = 50; tm.tm_isdst = 0; time_t std = mktime (&tm); if (! (std == 515107490 || std == 515107503)) return 1; /* This platform supports TZDB, either without or with leap seconds. Return true if GNU Bug#48085 is absent. */ tm.tm_isdst = 1; time_t dst = mktime (&tm); return std - dst == 60 * 60; } int main () { int result = 0; time_t t, delta; int i, j; int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; #if HAVE_DECL_ALARM /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ signal (SIGALRM, SIG_DFL); alarm (60); #endif time_t_max = (! TIME_T_IS_SIGNED ? (time_t) -1 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) * 2 + 1)); time_t_min = (! TIME_T_IS_SIGNED ? (time_t) 0 : time_t_signed_magnitude ? ~ (time_t) 0 : ~ time_t_max); delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta) if (! mktime_test (t)) result |= 1; if ((result & 2) == 0 && ! (mktime_test ((time_t) 1) && mktime_test ((time_t) (60 * 60)) && mktime_test ((time_t) (60 * 60 * 24)))) result |= 2; for (j = 1; (result & 4) == 0; j <<= 1) { if (! bigtime_test (j)) result |= 4; if (INT_MAX / 2 < j) break; } if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) result |= 8; } if (! irix_6_4_bug ()) result |= 16; if (! spring_forward_gap ()) result |= 32; if (! year_2050_test () || ! indiana_test ()) result |= 64; return result; }]])], [gl_cv_func_working_mktime=yes], [gl_cv_func_working_mktime=no], [case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_working_mktime="guessing no" ;; *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; esac ]) fi ]) ]) dnl Main macro of module 'mktime'. AC_DEFUN([gl_FUNC_MKTIME], [ AC_REQUIRE([gl_TIME_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) REPLACE_MKTIME=0 if test "$gl_cv_func_working_mktime" != yes; then REPLACE_MKTIME=1 AC_DEFINE([NEED_MKTIME_WORKING], [1], [Define if the compilation of mktime.c should define 'mktime' with the algorithmic workarounds.]) fi case "$host_os" in mingw*) REPLACE_MKTIME=1 AC_DEFINE([NEED_MKTIME_WINDOWS], [1], [Define if the compilation of mktime.c should define 'mktime' with the native Windows TZ workaround.]) ;; esac ]) dnl Main macro of module 'mktime-internal'. AC_DEFUN([gl_FUNC_MKTIME_INTERNAL], [ AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) WANT_MKTIME_INTERNAL=0 dnl BeOS has __mktime_internal in libc, but other platforms don't. AC_CHECK_FUNC([__mktime_internal], [AC_DEFINE([mktime_internal], [__mktime_internal], [Define to the real name of the mktime_internal function.]) ], [dnl mktime works but it doesn't export __mktime_internal, dnl so we need to substitute our own mktime implementation. WANT_MKTIME_INTERNAL=1 AC_DEFINE([NEED_MKTIME_INTERNAL], [1], [Define if the compilation of mktime.c should define 'mktime_internal'.]) ]) ]) # Prerequisites of lib/mktime.c. AC_DEFUN([gl_PREREQ_MKTIME], [:]) shishi-1.0.3/lib/gl/m4/strndup.m40000644000000000000000000000326514273615122013333 00000000000000# strndup.m4 serial 23 dnl Copyright (C) 2002-2003, 2005-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRNDUP], [ dnl Persuade glibc to declare strndup(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([strndup]) AC_CHECK_FUNCS_ONCE([strndup]) if test $ac_cv_have_decl_strndup = no; then HAVE_DECL_STRNDUP=0 fi if test $ac_cv_func_strndup = yes; then HAVE_STRNDUP=1 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. AC_CACHE_CHECK([for working strndup], [gl_cv_func_strndup_works], [AC_RUN_IFELSE([ AC_LANG_PROGRAM([[#include #include ]], [[ #if !HAVE_DECL_STRNDUP extern #ifdef __cplusplus "C" #endif char *strndup (const char *, size_t); #endif int result; char *s; s = strndup ("some longer string", 15); free (s); s = strndup ("shorter string", 13); result = s[13] != '\0'; free (s); return result;]])], [gl_cv_func_strndup_works=yes], [gl_cv_func_strndup_works=no], [ changequote(,)dnl case $host_os in aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; *) gl_cv_func_strndup_works="guessing yes";; esac changequote([,])dnl ])]) case $gl_cv_func_strndup_works in *no) REPLACE_STRNDUP=1 ;; esac else HAVE_STRNDUP=0 fi ]) shishi-1.0.3/lib/gl/m4/strings_h.m40000644000000000000000000000420214273615122013624 00000000000000# Configure a replacement for . # serial 9 # Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_STRINGS_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([strings.h]) if test $ac_cv_header_strings_h = yes; then HAVE_STRINGS_H=1 else HAVE_STRINGS_H=0 fi AC_SUBST([HAVE_STRINGS_H]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ /* Minix 3.1.8 has a bug: must be included before . */ #include #include ]], [ffs strcasecmp strncasecmp]) ]) # gl_STRINGS_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_STRINGS_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_STRINGS_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_STRINGS_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFS]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) ]) AC_DEFUN([gl_STRINGS_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_FFS=1; AC_SUBST([HAVE_FFS]) HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP]) HAVE_DECL_STRNCASECMP=1; AC_SUBST([HAVE_DECL_STRNCASECMP]) ]) shishi-1.0.3/lib/gl/m4/strnlen.m40000644000000000000000000000155214273615122013316 00000000000000# strnlen.m4 serial 14 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRNLEN], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) dnl Persuade glibc to declare strnlen(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS_ONCE([strnlen]) if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 else m4_pushdef([AC_LIBOBJ], [:]) dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). AC_FUNC_STRNLEN m4_popdef([AC_LIBOBJ]) if test $ac_cv_func_strnlen_working = no; then REPLACE_STRNLEN=1 fi fi ]) # Prerequisites of lib/strnlen.c. AC_DEFUN([gl_PREREQ_STRNLEN], [:]) shishi-1.0.3/lib/gl/m4/setenv.m40000644000000000000000000001157014273615122013136 00000000000000# setenv.m4 serial 30 dnl Copyright (C) 2001-2004, 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_SETENV], [ AC_REQUIRE([gl_FUNC_SETENV_SEPARATE]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles if test $ac_cv_func_setenv = no; then HAVE_SETENV=0 else AC_CACHE_CHECK([whether setenv validates arguments], [gl_cv_func_setenv_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include #include #include ]], [[ int result = 0; { if (setenv ("", "", 0) != -1) result |= 1; else if (errno != EINVAL) result |= 2; } { if (setenv ("a", "=", 1) != 0) result |= 4; else if (strcmp (getenv ("a"), "=") != 0) result |= 8; } return result; ]])], [gl_cv_func_setenv_works=yes], [gl_cv_func_setenv_works=no], [case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_setenv_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; esac ])]) case "$gl_cv_func_setenv_works" in *yes) ;; *) REPLACE_SETENV=1 ;; esac fi ]) # Like gl_FUNC_SETENV, except prepare for separate compilation # (no REPLACE_SETENV, no AC_LIBOBJ). AC_DEFUN([gl_FUNC_SETENV_SEPARATE], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([setenv]) if test $ac_cv_have_decl_setenv = no; then HAVE_DECL_SETENV=0 fi AC_CHECK_FUNCS_ONCE([setenv]) gl_PREREQ_SETENV ]) AC_DEFUN([gl_FUNC_UNSETENV], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_DECLS_ONCE([unsetenv]) if test $ac_cv_have_decl_unsetenv = no; then HAVE_DECL_UNSETENV=0 fi AC_CHECK_FUNCS([unsetenv]) if test $ac_cv_func_unsetenv = no; then HAVE_UNSETENV=0 else HAVE_UNSETENV=1 dnl Some BSDs return void, failing to do error checking. AC_CACHE_CHECK([for unsetenv() return type], [gt_cv_func_unsetenv_ret], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #undef _BSD #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 */ #include extern #ifdef __cplusplus "C" #endif int unsetenv (const char *name); ]], [[]])], [gt_cv_func_unsetenv_ret='int'], [gt_cv_func_unsetenv_ret='void'])]) if test $gt_cv_func_unsetenv_ret = 'void'; then AC_DEFINE([VOID_UNSETENV], [1], [Define to 1 if unsetenv returns void instead of int.]) REPLACE_UNSETENV=1 fi dnl Solaris 10 unsetenv does not remove all copies of a name. dnl Haiku alpha 2 unsetenv gets confused by assignment to environ. dnl OpenBSD 4.7 unsetenv("") does not fail. AC_CACHE_CHECK([whether unsetenv obeys POSIX], [gl_cv_func_unsetenv_works], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #include #include extern char **environ; ]GL_MDA_DEFINES], [[ char entry1[] = "a=1"; char entry2[] = "b=2"; char *env[] = { entry1, entry2, NULL }; if (putenv ((char *) "a=1")) return 1; if (putenv (entry2)) return 2; entry2[0] = 'a'; unsetenv ("a"); if (getenv ("a")) return 3; if (!unsetenv ("") || errno != EINVAL) return 4; entry2[0] = 'b'; environ = env; if (!getenv ("a")) return 5; entry2[0] = 'a'; unsetenv ("a"); if (getenv ("a")) return 6; ]])], [gl_cv_func_unsetenv_works=yes], [gl_cv_func_unsetenv_works=no], [case "$host_os" in # Guess yes on glibc systems. *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_unsetenv_works" in *yes) ;; *) REPLACE_UNSETENV=1 ;; esac fi ]) # Prerequisites of lib/setenv.c. AC_DEFUN([gl_PREREQ_SETENV], [ AC_REQUIRE([AC_FUNC_ALLOCA]) AC_REQUIRE([gl_ENVIRON]) AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CHECK_HEADERS([search.h]) AC_CHECK_FUNCS([tsearch]) ]) # Prerequisites of lib/unsetenv.c. AC_DEFUN([gl_PREREQ_UNSETENV], [ AC_REQUIRE([gl_ENVIRON]) AC_CHECK_HEADERS_ONCE([unistd.h]) ]) shishi-1.0.3/lib/gl/m4/sha1.m40000644000000000000000000000070214273615122012461 00000000000000# sha1.m4 serial 12 dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_SHA1], [ dnl Prerequisites of lib/sha1.c. AC_REQUIRE([gl_BIGENDIAN]) dnl Determine HAVE_OPENSSL_SHA1 and LIB_CRYPTO gl_CRYPTO_CHECK([SHA1]) ]) shishi-1.0.3/lib/gl/m4/base64.m40000644000000000000000000000066414273615122012720 00000000000000# base64.m4 serial 4 dnl Copyright (C) 2004, 2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_BASE64], [ gl_PREREQ_BASE64 ]) # Prerequisites of lib/base64.c. AC_DEFUN([gl_PREREQ_BASE64], [ AC_REQUIRE([AC_C_RESTRICT]) ]) shishi-1.0.3/lib/gl/m4/xalloc.m40000644000000000000000000000047214273615123013114 00000000000000# xalloc.m4 serial 18 dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XALLOC], [:]) shishi-1.0.3/lib/gl/m4/sys_stat_h.m40000644000000000000000000001223214273615122014006 00000000000000# sys_stat_h.m4 serial 42 -*- Autoconf -*- dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Eric Blake. dnl Provide a GNU-like . AC_DEFUN_ONCE([gl_SYS_STAT_H], [ AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) dnl Check for broken stat macros. AC_REQUIRE([AC_HEADER_STAT]) gl_CHECK_NEXT_HEADERS([sys/stat.h]) dnl Ensure the type mode_t gets defined. AC_REQUIRE([AC_TYPE_MODE_T]) dnl Whether to enable precise timestamps in 'struct stat'. m4_ifdef([gl_WINDOWS_STAT_TIMESPEC], [ AC_REQUIRE([gl_WINDOWS_STAT_TIMESPEC]) ], [ WINDOWS_STAT_TIMESPEC=0 ]) AC_SUBST([WINDOWS_STAT_TIMESPEC]) dnl Whether to ensure that struct stat.st_size is 64-bit wide. m4_ifdef([gl_LARGEFILE], [ AC_REQUIRE([gl_LARGEFILE]) ], [ WINDOWS_64_BIT_ST_SIZE=0 ]) AC_SUBST([WINDOWS_64_BIT_ST_SIZE]) dnl Define types that are supposed to be defined in or dnl . AC_CHECK_TYPE([nlink_t], [], [AC_DEFINE([nlink_t], [int], [Define to the type of st_nlink in struct stat, or a supertype.])], [#include #include ]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include ]], [chmod fchmodat fstat fstatat futimens getumask lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat]) AC_REQUIRE([AC_C_RESTRICT]) ]) # gl_SYS_STAT_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_STAT_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_STAT_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS], [ gl_UNISTD_H_REQUIRE_DEFAULTS dnl for REPLACE_FCHDIR gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHMOD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHMODAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTATAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FUTIMENS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUMASK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LCHMOD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LSTAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDIR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDIRAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKFIFO]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKFIFOAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKNOD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKNODAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UTIMENSAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OVERRIDES_STRUCT_STAT]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CHMOD], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MKDIR], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_UMASK], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_STAT_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT]) HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT]) HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS]) HAVE_GETUMASK=1; AC_SUBST([HAVE_GETUMASK]) HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD]) HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT]) HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT]) HAVE_MKFIFO=1; AC_SUBST([HAVE_MKFIFO]) HAVE_MKFIFOAT=1; AC_SUBST([HAVE_MKFIFOAT]) HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD]) HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT]) HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT]) REPLACE_CHMOD=0; AC_SUBST([REPLACE_CHMOD]) REPLACE_FCHMODAT=0; AC_SUBST([REPLACE_FCHMODAT]) REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS]) REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT]) REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR]) REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO]) REPLACE_MKFIFOAT=0; AC_SUBST([REPLACE_MKFIFOAT]) REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD]) REPLACE_MKNODAT=0; AC_SUBST([REPLACE_MKNODAT]) REPLACE_STAT=0; AC_SUBST([REPLACE_STAT]) REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT]) ]) shishi-1.0.3/lib/gl/m4/host-cpu-c-abi.m40000644000000000000000000005372014273615122014350 00000000000000# host-cpu-c-abi.m4 serial 15 dnl Copyright (C) 2002-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible and Sam Steingold. dnl Sets the HOST_CPU variable to the canonical name of the CPU. dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its dnl C language ABI (application binary interface). dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in dnl config.h. dnl dnl This canonical name can be used to select a particular assembly language dnl source file that will interoperate with C code on the given host. dnl dnl For example: dnl * 'i386' and 'sparc' are different canonical names, because code for i386 dnl will not run on SPARC CPUs and vice versa. They have different dnl instruction sets. dnl * 'sparc' and 'sparc64' are different canonical names, because code for dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit dnl mode, but not both. dnl * 'mips' and 'mipsn32' are different canonical names, because they use dnl different argument passing and return conventions for C functions, and dnl although the instruction set of 'mips' is a large subset of the dnl instruction set of 'mipsn32'. dnl * 'mipsn32' and 'mips64' are different canonical names, because they use dnl different sizes for the C types like 'int' and 'void *', and although dnl the instruction sets of 'mipsn32' and 'mips64' are the same. dnl * The same canonical name is used for different endiannesses. You can dnl determine the endianness through preprocessor symbols: dnl - 'arm': test __ARMEL__. dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. dnl * The same name 'i386' is used for CPUs of type i386, i486, i586 dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because dnl - Instructions that do not exist on all of these CPUs (cmpxchg, dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your dnl assembly language source files use such instructions, you will dnl need to make the distinction. dnl - Speed of execution of the common instruction set is reasonable across dnl the entire family of CPUs. If you have assembly language source files dnl that are optimized for particular CPU types (like GNU gmp has), you dnl will need to make the distinction. dnl See . AC_DEFUN([gl_HOST_CPU_C_ABI], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_C_ASM]) AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi], [case "$host_cpu" in changequote(,)dnl i[34567]86 ) changequote([,])dnl gl_cv_host_cpu_c_abi=i386 ;; x86_64 ) # On x86_64 systems, the C compiler may be generating code in one of # these ABIs: # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 # with native Windows (mingw, MSVC). # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if (defined __x86_64__ || defined __amd64__ \ || defined _M_X64 || defined _M_AMD64) int ok; #else error fail #endif ]])], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __ILP32__ || defined _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=x86_64-x32], [gl_cv_host_cpu_c_abi=x86_64])], [gl_cv_host_cpu_c_abi=i386]) ;; changequote(,)dnl alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) changequote([,])dnl gl_cv_host_cpu_c_abi=alpha ;; arm* | aarch64 ) # Assume arm with EABI. # On arm64 systems, the C compiler may be generating code in one of # these ABIs: # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef __aarch64__ int ok; #else error fail #endif ]])], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __ILP32__ || defined _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=arm64-ilp32], [gl_cv_host_cpu_c_abi=arm64])], [# Don't distinguish little-endian and big-endian arm, since they # don't require different machine code for simple operations and # since the user can distinguish them through the preprocessor # defines __ARMEL__ vs. __ARMEB__. # But distinguish arm which passes floating-point arguments and # return values in integer registers (r0, r1, ...) - this is # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which # passes them in float registers (s0, s1, ...) and double registers # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer # sets the preprocessor defines __ARM_PCS (for the first case) and # __ARM_PCS_VFP (for the second case), but older GCC does not. echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c # Look for a reference to the register d0 in the .s file. AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then gl_cv_host_cpu_c_abi=armhf else gl_cv_host_cpu_c_abi=arm fi rm -f conftest* ]) ;; hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) # On hppa, the C compiler may be generating 32-bit code or 64-bit # code. In the latter case, it defines _LP64 and __LP64__. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef __LP64__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=hppa64], [gl_cv_host_cpu_c_abi=hppa]) ;; ia64* ) # On ia64 on HP-UX, the C compiler may be generating 64-bit code or # 32-bit code. In the latter case, it defines _ILP32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifdef _ILP32 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=ia64-ilp32], [gl_cv_host_cpu_c_abi=ia64]) ;; mips* ) # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this # at 32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=mips64], [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but # may later get defined by ), and _MIPS_SIM == _ABIN32. # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but # may later get defined by ), and _MIPS_SIM == _ABIO32. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if (_MIPS_SIM == _ABIN32) int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=mipsn32], [gl_cv_host_cpu_c_abi=mips])]) ;; powerpc* ) # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. # No need to distinguish them here; the caller may distinguish # them based on the OS. # On powerpc64 systems, the C compiler may still be generating # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may # be generating 64-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __powerpc64__ || defined __LP64__ int ok; #else error fail #endif ]])], [# On powerpc64, there are two ABIs on Linux: The AIX compatible # one and the ELFv2 one. The latter defines _CALL_ELF=2. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined _CALL_ELF && _CALL_ELF == 2 int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=powerpc64-elfv2], [gl_cv_host_cpu_c_abi=powerpc64]) ], [gl_cv_host_cpu_c_abi=powerpc]) ;; rs6000 ) gl_cv_host_cpu_c_abi=powerpc ;; riscv32 | riscv64 ) # There are 2 architectures (with variants): rv32* and rv64*. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if __riscv_xlen == 64 int ok; #else error fail #endif ]])], [cpu=riscv64], [cpu=riscv32]) # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. # Size of 'long' and 'void *': AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ int ok; #else error fail #endif ]])], [main_abi=lp64], [main_abi=ilp32]) # Float ABIs: # __riscv_float_abi_double: # 'float' and 'double' are passed in floating-point registers. # __riscv_float_abi_single: # 'float' are passed in floating-point registers. # __riscv_float_abi_soft: # No values are passed in floating-point registers. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __riscv_float_abi_double int ok; #else error fail #endif ]])], [float_abi=d], [AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __riscv_float_abi_single int ok; #else error fail #endif ]])], [float_abi=f], [float_abi='']) ]) gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}" ;; s390* ) # On s390x, the C compiler may be generating 64-bit (= s390x) code # or 31-bit (= s390) code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __LP64__ || defined __s390x__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=s390x], [gl_cv_host_cpu_c_abi=s390]) ;; sparc | sparc64 ) # UltraSPARCs running Linux have `uname -m` = "sparc64", but the # C compiler still generates 32-bit code. AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif ]])], [gl_cv_host_cpu_c_abi=sparc64], [gl_cv_host_cpu_c_abi=sparc]) ;; *) gl_cv_host_cpu_c_abi="$host_cpu" ;; esac ]) dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same. HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" AC_SUBST([HOST_CPU]) AC_SUBST([HOST_CPU_C_ABI]) # This was # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) # earlier, but KAI C++ 3.2d doesn't like this. sed -e 's/-/_/g' >> confdefs.h < to declare getdomainname(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl Where is getdomainname() defined? dnl - On Solaris, it is in libnsl. But this function is not declared and dnl is discouraged, see dnl . dnl We need to avoid a collision with this function. dnl - Otherwise it is in libc. AC_CHECK_FUNCS([getdomainname], , [ AC_CACHE_CHECK([for getdomainname in -lnsl], [gl_cv_func_getdomainname_in_libnsl], [gl_cv_func_getdomainname_in_libnsl=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lnsl" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include extern #ifdef __cplusplus "C" #endif int getdomainname (char *, size_t); ]], [[getdomainname(NULL, 0);]])], [gl_cv_func_getdomainname_in_libnsl=yes]) LIBS="$gl_save_LIBS" ]) ]) dnl What about the declaration? dnl - It's int getdomainname(char *, size_t) on glibc, NetBSD, OpenBSD. dnl - It's int getdomainname(char *, int) on Mac OS X, FreeBSD, AIX, IRIX, dnl OSF/1. AC_CHECK_DECLS([getdomainname], , , [[#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include ]]) AC_CACHE_CHECK([for getdomainname's second argument type], [gl_cv_decl_getdomainname_argtype2], [if test $ac_cv_have_decl_getdomainname; then AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include extern #ifdef __cplusplus "C" #endif int getdomainname (char *, int); ]], [[]])], [gl_cv_decl_getdomainname_argtype2='int'], [gl_cv_decl_getdomainname_argtype2='size_t']) else gl_cv_decl_getdomainname_argtype2='int' fi ]) if test $ac_cv_have_decl_getdomainname = no; then HAVE_DECL_GETDOMAINNAME=0 fi if { test $ac_cv_func_getdomainname = yes \ && test $gl_cv_decl_getdomainname_argtype2 != size_t; \ } \ || test "$gl_cv_func_getdomainname_in_libnsl" = yes; then REPLACE_GETDOMAINNAME=1 fi ]) # Prerequisites of lib/getdomainname.c. AC_DEFUN([gl_PREREQ_GETDOMAINNAME], [ if test $ac_cv_func_getdomainname = yes; then AC_DEFINE([HAVE_GETDOMAINNAME], [1], [Define if the getdomainname() function is present and can be used.]) fi AC_CHECK_HEADERS([sys/systeminfo.h]) AC_CHECK_FUNCS([sysinfo]) ]) shishi-1.0.3/lib/gl/m4/free.m40000644000000000000000000000371014273615122012550 00000000000000# free.m4 serial 6 # Copyright (C) 2003-2005, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert and Bruno Haible. AC_DEFUN([gl_FUNC_FREE], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) dnl In the next release of POSIX, free must preserve errno. dnl https://www.austingroupbugs.net/view.php?id=385 dnl https://sourceware.org/bugzilla/show_bug.cgi?id=17924 dnl So far, we know of three platforms that do this: dnl * glibc >= 2.33, thanks to the fix for this bug: dnl dnl * OpenBSD >= 4.5, thanks to this commit: dnl dnl * Solaris, because its malloc() implementation is based on brk(), dnl not mmap(); hence its free() implementation makes no system calls. dnl For other platforms, you can only be sure if they state it in their dnl documentation, or by code inspection of the free() implementation in libc. AC_CACHE_CHECK([whether free is known to preserve errno], [gl_cv_func_free_preserves_errno], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__) #elif defined __OpenBSD__ #elif defined __sun #else #error "'free' is not known to preserve errno" #endif ]])], [gl_cv_func_free_preserves_errno=yes], [gl_cv_func_free_preserves_errno=no]) ]) case $gl_cv_func_free_preserves_errno in *yes) AC_DEFINE([HAVE_FREE_POSIX], [1], [Define if the 'free' function is guaranteed to preserve errno.]) ;; *) REPLACE_FREE=1 ;; esac ]) # Prerequisites of lib/free.c. AC_DEFUN([gl_PREREQ_FREE], [:]) shishi-1.0.3/lib/gl/m4/ftell.m40000644000000000000000000000100514273615122012730 00000000000000# ftell.m4 serial 3 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FTELL], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FTELLO]) dnl When ftello needs fixes, ftell needs them too. if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then REPLACE_FTELL=1 fi ]) shishi-1.0.3/lib/gl/m4/gc-md4.m40000644000000000000000000000061214273615122012700 00000000000000# gc-md4.m4 serial 2 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC_MD4], [ AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" != yes; then gl_MD4 fi ]) shishi-1.0.3/lib/gl/m4/netdb_h.m40000644000000000000000000000435614273615122013241 00000000000000# netdb_h.m4 serial 15 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_NETDB_H], [ AC_REQUIRE([gl_NETDB_H_DEFAULTS]) gl_CHECK_NEXT_HEADERS([netdb.h]) if test $ac_cv_header_netdb_h = yes; then HAVE_NETDB_H=1 else HAVE_NETDB_H=0 fi AC_SUBST([HAVE_NETDB_H]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include ]], [getaddrinfo freeaddrinfo gai_strerror getnameinfo]) ]) # gl_NETDB_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_NETDB_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_NETDB_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_NETDB_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_NETDB_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETADDRINFO]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_NETDB_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_NETDB_H_DEFAULTS]) ]) AC_DEFUN([gl_NETDB_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_STRUCT_ADDRINFO=1; AC_SUBST([HAVE_STRUCT_ADDRINFO]) HAVE_DECL_FREEADDRINFO=1; AC_SUBST([HAVE_DECL_FREEADDRINFO]) HAVE_DECL_GAI_STRERROR=1; AC_SUBST([HAVE_DECL_GAI_STRERROR]) HAVE_DECL_GETADDRINFO=1; AC_SUBST([HAVE_DECL_GETADDRINFO]) HAVE_DECL_GETNAMEINFO=1; AC_SUBST([HAVE_DECL_GETNAMEINFO]) REPLACE_GAI_STRERROR=0; AC_SUBST([REPLACE_GAI_STRERROR]) REPLACE_GETADDRINFO=0; AC_SUBST([REPLACE_GETADDRINFO]) ]) shishi-1.0.3/lib/gl/m4/strtok_r.m40000644000000000000000000000511414273615122013476 00000000000000# strtok_r.m4 serial 16 dnl Copyright (C) 2002-2004, 2006-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOK_R], [ dnl The strtok_r() declaration in lib/string.in.h uses 'restrict'. AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_FUNCS([strtok_r]) if test $ac_cv_func_strtok_r = yes; then HAVE_STRTOK_R=1 dnl glibc 2.7 has a bug in strtok_r that causes a segmentation fault dnl when the second argument to strtok_r is a constant string that has dnl exactly one byte and compiling with optimization. This bug is, for dnl example, present in the glibc 2.7-18 package in Debian "lenny". dnl See . AC_CACHE_CHECK([whether strtok_r works], [gl_cv_func_strtok_r_works], [AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ #ifndef __OPTIMIZE__ # define __OPTIMIZE__ 1 #endif #undef __OPTIMIZE_SIZE__ #undef __NO_INLINE__ #include #include ]], [[static const char dummy[] = "\177\01a"; char delimiters[] = "xxxxxxxx"; char *save_ptr = (char *) dummy; strtok_r (delimiters, "x", &save_ptr); strtok_r (NULL, "x", &save_ptr); return 0; ]]) ], [gl_cv_func_strtok_r_works=yes], [gl_cv_func_strtok_r_works=no], [case "$host_os" in # Guess no on glibc systems. *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_strtok_r_works="guessing yes" ;; *) gl_cv_func_strtok_r_works="guessing yes" ;; esac ]) ]) case "$gl_cv_func_strtok_r_works" in *no) dnl We could set REPLACE_STRTOK_R=1 here, but it's only the macro dnl version in which is wrong. The code compiled dnl into libc is fine. UNDEFINE_STRTOK_R=1 ;; esac else HAVE_STRTOK_R=0 fi AC_CHECK_DECLS_ONCE([strtok_r]) if test $ac_cv_have_decl_strtok_r = no; then HAVE_DECL_STRTOK_R=0 fi ]) # Prerequisites of lib/strtok_r.c. AC_DEFUN([gl_PREREQ_STRTOK_R], [ : ]) shishi-1.0.3/lib/gl/m4/wchar_h.m40000644000000000000000000002571214273615123013251 00000000000000dnl A placeholder for ISO C99 , for platforms that have issues. dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Eric Blake. # wchar_h.m4 serial 55 AC_DEFUN_ONCE([gl_WCHAR_H], [ AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) dnl Prepare for creating substitute . dnl Check for (missing in Linux uClibc when built without wide dnl character support). dnl is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([wchar.h]) if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi AC_SUBST([HAVE_WCHAR_H]) AC_REQUIRE([gl_FEATURES_H]) AC_REQUIRE([gt_TYPE_WINT_T]) if test $gt_cv_c_wint_t = yes; then HAVE_WINT_T=1 else HAVE_WINT_T=0 fi AC_SUBST([HAVE_WINT_T]) AC_REQUIRE([gl_TYPE_WINT_T_PREREQ]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ #include ]], [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmempcpy wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth wcsftime ]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_DECLS([wcsdup], [], [], [[ #include ]]) if test $ac_cv_have_decl_wcsdup = no; then HAVE_DECL_WCSDUP=0 fi ]) dnl Check whether is usable at all. AC_DEFUN([gl_WCHAR_H_INLINE_OK], [ dnl Test whether suffers due to the transition from '__inline' to dnl 'gnu_inline'. See dnl and . In summary, dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and dnl the option -std=c99 or -std=gnu99, leads to a broken . AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether uses 'inline' correctly], [gl_cv_header_wchar_h_correct_inline], [gl_cv_header_wchar_h_correct_inline=yes case "$host_os" in *-gnu* | gnu*) AC_LANG_CONFTEST([ AC_LANG_SOURCE([[ #define wcstod renamed_wcstod #include extern int zero (void); int main () { return zero(); } ]])]) dnl Do not rename the object file from conftest.$ac_objext to dnl conftest1.$ac_objext, as this will cause the link to fail on dnl z/OS when using the XPLINK object format (due to duplicate dnl CSECT names). Instead, temporarily redefine $ac_compile so dnl that the object file has the latter name from the start. save_ac_compile="$ac_compile" ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` if echo '#include "conftest.c"' >conftest1.c \ && AC_TRY_EVAL([ac_compile]); then AC_LANG_CONFTEST([ AC_LANG_SOURCE([[ #define wcstod renamed_wcstod #include int zero (void) { return 0; } ]])]) dnl See note above about renaming object files. ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` if echo '#include "conftest.c"' >conftest2.c \ && AC_TRY_EVAL([ac_compile]); then if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then : else gl_cv_header_wchar_h_correct_inline=no fi fi fi ac_compile="$save_ac_compile" rm -f conftest[12].c conftest[12].$ac_objext conftest$ac_exeext ;; esac ]) if test $gl_cv_header_wchar_h_correct_inline = no; then AC_MSG_ERROR([ cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in C99 mode. You have four options: - Add the flag -fgnu89-inline to CC and reconfigure, or - Fix your include files, using parts of , or - Use a gcc version older than 4.3, or - Don't use the flags -std=c99 or -std=gnu99. Configuration aborted.]) fi ]) # gl_WCHAR_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_WCHAR_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_WCHAR_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_BTOWC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCTOB]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSINIT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRTOWC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSRTOWCS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNRTOWCS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCRTOMB]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRTOMBS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNRTOMBS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCWIDTH]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMMOVE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMPCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMSET]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNLEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPNCPY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCASECMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCASECMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCOLL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSXFRM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSDUP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRCHR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCSPN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSPN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSPBRK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSTR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSTOK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSWIDTH]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSFTIME]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_WCSDUP], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS]) dnl Make sure the shell variable for GNULIB_FREE_POSIX is initialized. gl_STDLIB_H_REQUIRE_DEFAULTS AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) ]) AC_DEFUN([gl_WCHAR_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) HAVE_MBRTOWC=1; AC_SUBST([HAVE_MBRTOWC]) HAVE_MBRLEN=1; AC_SUBST([HAVE_MBRLEN]) HAVE_MBSRTOWCS=1; AC_SUBST([HAVE_MBSRTOWCS]) HAVE_MBSNRTOWCS=1; AC_SUBST([HAVE_MBSNRTOWCS]) HAVE_WCRTOMB=1; AC_SUBST([HAVE_WCRTOMB]) HAVE_WCSRTOMBS=1; AC_SUBST([HAVE_WCSRTOMBS]) HAVE_WCSNRTOMBS=1; AC_SUBST([HAVE_WCSNRTOMBS]) HAVE_WMEMCHR=1; AC_SUBST([HAVE_WMEMCHR]) HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP]) HAVE_WMEMCPY=1; AC_SUBST([HAVE_WMEMCPY]) HAVE_WMEMMOVE=1; AC_SUBST([HAVE_WMEMMOVE]) HAVE_WMEMPCPY=1; AC_SUBST([HAVE_WMEMPCPY]) HAVE_WMEMSET=1; AC_SUBST([HAVE_WMEMSET]) HAVE_WCSLEN=1; AC_SUBST([HAVE_WCSLEN]) HAVE_WCSNLEN=1; AC_SUBST([HAVE_WCSNLEN]) HAVE_WCSCPY=1; AC_SUBST([HAVE_WCSCPY]) HAVE_WCPCPY=1; AC_SUBST([HAVE_WCPCPY]) HAVE_WCSNCPY=1; AC_SUBST([HAVE_WCSNCPY]) HAVE_WCPNCPY=1; AC_SUBST([HAVE_WCPNCPY]) HAVE_WCSCAT=1; AC_SUBST([HAVE_WCSCAT]) HAVE_WCSNCAT=1; AC_SUBST([HAVE_WCSNCAT]) HAVE_WCSCMP=1; AC_SUBST([HAVE_WCSCMP]) HAVE_WCSNCMP=1; AC_SUBST([HAVE_WCSNCMP]) HAVE_WCSCASECMP=1; AC_SUBST([HAVE_WCSCASECMP]) HAVE_WCSNCASECMP=1; AC_SUBST([HAVE_WCSNCASECMP]) HAVE_WCSCOLL=1; AC_SUBST([HAVE_WCSCOLL]) HAVE_WCSXFRM=1; AC_SUBST([HAVE_WCSXFRM]) HAVE_WCSDUP=1; AC_SUBST([HAVE_WCSDUP]) HAVE_WCSCHR=1; AC_SUBST([HAVE_WCSCHR]) HAVE_WCSRCHR=1; AC_SUBST([HAVE_WCSRCHR]) HAVE_WCSCSPN=1; AC_SUBST([HAVE_WCSCSPN]) HAVE_WCSSPN=1; AC_SUBST([HAVE_WCSSPN]) HAVE_WCSPBRK=1; AC_SUBST([HAVE_WCSPBRK]) HAVE_WCSSTR=1; AC_SUBST([HAVE_WCSSTR]) HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK]) HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH]) HAVE_WCSFTIME=1; AC_SUBST([HAVE_WCSFTIME]) HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) HAVE_DECL_WCSDUP=1; AC_SUBST([HAVE_DECL_WCSDUP]) HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) REPLACE_WCTOB=0; AC_SUBST([REPLACE_WCTOB]) REPLACE_MBSINIT=0; AC_SUBST([REPLACE_MBSINIT]) REPLACE_MBRTOWC=0; AC_SUBST([REPLACE_MBRTOWC]) REPLACE_MBRLEN=0; AC_SUBST([REPLACE_MBRLEN]) REPLACE_MBSRTOWCS=0; AC_SUBST([REPLACE_MBSRTOWCS]) REPLACE_MBSNRTOWCS=0; AC_SUBST([REPLACE_MBSNRTOWCS]) REPLACE_WCRTOMB=0; AC_SUBST([REPLACE_WCRTOMB]) REPLACE_WCSRTOMBS=0; AC_SUBST([REPLACE_WCSRTOMBS]) REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS]) REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) REPLACE_WCSWIDTH=0; AC_SUBST([REPLACE_WCSWIDTH]) REPLACE_WCSFTIME=0; AC_SUBST([REPLACE_WCSFTIME]) REPLACE_WCSTOK=0; AC_SUBST([REPLACE_WCSTOK]) ]) shishi-1.0.3/lib/gl/m4/md4.m40000644000000000000000000000056414273615122012317 00000000000000# md4.m4 serial 7 dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Prerequisites of lib/md4.c. AC_DEFUN([gl_MD4], [ AC_REQUIRE([gl_BIGENDIAN]) : ]) shishi-1.0.3/lib/gl/m4/gethostname.m40000644000000000000000000000664314273615122014155 00000000000000# gethostname.m4 serial 15 dnl Copyright (C) 2002, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Ensure # - the gethostname() function, # - the HOST_NAME_MAX macro in . AC_DEFUN([gl_FUNC_GETHOSTNAME], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) gl_PREREQ_SYS_H_WINSOCK2 dnl Where is gethostname() defined? dnl - On native Windows, it is in ws2_32.dll. dnl - Otherwise it is in libc. GETHOSTNAME_LIB= AC_CHECK_FUNCS([gethostname], , [ AC_CACHE_CHECK([for gethostname in winsock2.h and -lws2_32], [gl_cv_w32_gethostname], [gl_cv_w32_gethostname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #ifdef HAVE_WINSOCK2_H #include #endif #include ]], [[gethostname(NULL, 0);]])], [gl_cv_w32_gethostname=yes]) LIBS="$gl_save_LIBS" ]) if test "$gl_cv_w32_gethostname" = "yes"; then GETHOSTNAME_LIB="-lws2_32" fi ]) AC_SUBST([GETHOSTNAME_LIB]) if test "$ac_cv_func_gethostname" = no; then HAVE_GETHOSTNAME=0 fi gl_PREREQ_HOST_NAME_MAX ]) # Provide HOST_NAME_MAX when lacks it. AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ dnl - On most Unix systems, use MAXHOSTNAMELEN from instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from instead. dnl - On mingw, use 256, because dnl says: dnl "if a buffer of 256 bytes is passed in the name parameter and dnl the namelen parameter is set to 256, the buffer size will always dnl be adequate." dnl With this, there is no need to use sysconf (_SC_HOST_NAME_MAX), which dnl is not a compile-time constant. dnl We cannot override using the usual technique, because dnl gl_CHECK_NEXT_HEADERS does not work for . Therefore retrieve dnl the value of HOST_NAME_MAX at configure time. AC_CHECK_HEADERS_ONCE([sys/param.h]) AC_CHECK_HEADERS_ONCE([sys/socket.h]) AC_CHECK_HEADERS_ONCE([netdb.h]) AC_CACHE_CHECK([for HOST_NAME_MAX], [gl_cv_decl_HOST_NAME_MAX], [ gl_cv_decl_HOST_NAME_MAX= AC_EGREP_CPP([lucky], [ #include #ifdef HOST_NAME_MAX lucky #endif ], [gl_cv_decl_HOST_NAME_MAX=yes]) if test -z "$gl_cv_decl_HOST_NAME_MAX"; then dnl It's not defined in . Substitute it. if test "$gl_cv_w32_gethostname" = yes; then dnl mingw. gl_cv_decl_HOST_NAME_MAX=256 else AC_COMPUTE_INT([gl_cv_decl_HOST_NAME_MAX], [MAXHOSTNAMELEN], [ #include #if HAVE_SYS_PARAM_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_NETDB_H # include #endif ], [dnl The system does not define MAXHOSTNAMELEN in any of the common dnl headers. Use a safe fallback. gl_cv_decl_HOST_NAME_MAX=256 ]) fi fi ]) if test "$gl_cv_decl_HOST_NAME_MAX" != yes; then AC_DEFINE_UNQUOTED([HOST_NAME_MAX], [$gl_cv_decl_HOST_NAME_MAX], [Define HOST_NAME_MAX when does not define it.]) fi ]) # Prerequisites of lib/gethostname.c. AC_DEFUN([gl_PREREQ_GETHOSTNAME], [ if test "$gl_cv_w32_gethostname" != "yes"; then AC_CHECK_FUNCS([uname]) fi ]) shishi-1.0.3/lib/gl/m4/warn-on-use.m40000644000000000000000000000423014273615123014001 00000000000000# warn-on-use.m4 serial 9 dnl Copyright (C) 2010-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # gl_WARN_ON_USE_PREPARE(INCLUDES, NAMES) # --------------------------------------- # If the module 'posixcheck' is in use: # # For each whitespace-separated element in the list of NAMES, define # HAVE_RAW_DECL_name if the function has a declaration among INCLUDES # even after being undefined as a macro. # # See warn-on-use.h for some hints on how to poison function names, as # well as ideas on poisoning global variables and macros. NAMES may # include global variables, but remember that only functions work with # _GL_WARN_ON_USE. Typically, INCLUDES only needs to list a single # header, but if the replacement header pulls in other headers because # some systems declare functions in the wrong header, then INCLUDES # should do likewise. # # It is generally safe to assume declarations for functions declared # in the intersection of C89 and C11 (such as printf) without # needing gl_WARN_ON_USE_PREPARE. AC_DEFUN([gl_WARN_ON_USE_PREPARE], [ m4_ifdef([gl_POSIXCHECK], [m4_foreach_w([gl_decl], [$2], [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])), [Define to 1 if ]m4_defn([gl_decl])[ is declared even after undefining macros.])])dnl for gl_func in m4_flatten([$2]); do AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl AC_CACHE_CHECK([whether $gl_func is declared without a macro], [gl_Symbol], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1], [[#undef $gl_func (void) $gl_func;]])], [AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])]) AS_VAR_IF([gl_Symbol], [yes], [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) dnl shortcut - if the raw declaration exists, then set a cache dnl variable to allow skipping any later AC_CHECK_DECL efforts eval ac_cv_have_decl_$gl_func=yes]) AS_VAR_POPDEF([gl_Symbol])dnl done ]) ]) shishi-1.0.3/lib/gl/m4/signal_h.m40000644000000000000000000000731514273615122013420 00000000000000# signal_h.m4 serial 22 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_SIGNAL_H], [ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T]) gl_NEXT_HEADERS([signal.h]) # AIX declares sig_atomic_t to already include volatile, and C89 compilers # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. AC_CHECK_TYPE([volatile sig_atomic_t], [], [HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0], [[ #include ]]) dnl Ensure the type pid_t gets defined. AC_REQUIRE([AC_TYPE_PID_T]) AC_REQUIRE([AC_TYPE_UID_T]) dnl Persuade glibc to define sighandler_t. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_TYPE([sighandler_t], [], [HAVE_SIGHANDLER_T=0], [[ #include ]]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include ]], [pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask]) AC_REQUIRE([AC_C_RESTRICT]) ]) AC_DEFUN([gl_CHECK_TYPE_SIGSET_T], [ AC_CHECK_TYPES([sigset_t], [gl_cv_type_sigset_t=yes], [gl_cv_type_sigset_t=no], [[ #include /* Mingw defines sigset_t not in , but in . */ #include ]]) if test $gl_cv_type_sigset_t != yes; then HAVE_SIGSET_T=0 fi ]) # gl_SIGNAL_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SIGNAL_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SIGNAL_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SIGNAL_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PTHREAD_SIGMASK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RAISE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGNAL_H_SIGPIPE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGPROCMASK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGACTION]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SIGNAL_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SIGNAL_H_DEFAULTS]) ]) AC_DEFUN([gl_SIGNAL_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING]) HAVE_PTHREAD_SIGMASK=1; AC_SUBST([HAVE_PTHREAD_SIGMASK]) HAVE_RAISE=1; AC_SUBST([HAVE_RAISE]) HAVE_SIGSET_T=1; AC_SUBST([HAVE_SIGSET_T]) HAVE_SIGINFO_T=1; AC_SUBST([HAVE_SIGINFO_T]) HAVE_SIGACTION=1; AC_SUBST([HAVE_SIGACTION]) HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION]) HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T]) HAVE_SIGHANDLER_T=1; AC_SUBST([HAVE_SIGHANDLER_T]) REPLACE_PTHREAD_SIGMASK=0; AC_SUBST([REPLACE_PTHREAD_SIGMASK]) REPLACE_RAISE=0; AC_SUBST([REPLACE_RAISE]) ]) shishi-1.0.3/lib/gl/m4/stdint.m40000644000000000000000000004273114273615122013142 00000000000000# stdint.m4 serial 61 dnl Copyright (C) 2001-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert and Bruno Haible. dnl Test whether is supported or must be substituted. AC_PREREQ([2.61]) AC_DEFUN_ONCE([gl_STDINT_H], [ AC_PREREQ([2.59])dnl AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_LIMITS_H]) AC_REQUIRE([gt_TYPE_WINT_T]) dnl For backward compatibility. Some packages may still be testing these dnl macros. AC_DEFINE([HAVE_LONG_LONG_INT], [1], [Define to 1 if the system has the type 'long long int'.]) AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], [Define to 1 if the system has the type 'unsigned long long int'.]) dnl Check for , in the same way as gl_WCHAR_H does. AC_CHECK_HEADERS_ONCE([wchar.h]) if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi AC_SUBST([HAVE_WCHAR_H]) dnl Check for . AC_CHECK_HEADERS_ONCE([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then HAVE_INTTYPES_H=1 else HAVE_INTTYPES_H=0 fi AC_SUBST([HAVE_INTTYPES_H]) dnl Check for . AC_CHECK_HEADERS_ONCE([sys/types.h]) if test $ac_cv_header_sys_types_h = yes; then HAVE_SYS_TYPES_H=1 else HAVE_SYS_TYPES_H=0 fi AC_SUBST([HAVE_SYS_TYPES_H]) gl_CHECK_NEXT_HEADERS([stdint.h]) if test $ac_cv_header_stdint_h = yes; then HAVE_STDINT_H=1 else HAVE_STDINT_H=0 fi AC_SUBST([HAVE_STDINT_H]) dnl Now see whether we need a substitute . if test $ac_cv_header_stdint_h = yes; then AC_CACHE_CHECK([whether stdint.h conforms to C99], [gl_cv_header_working_stdint_h], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #define __STDC_CONSTANT_MACROS 1 #define __STDC_LIMIT_MACROS 1 #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ #if !(defined WCHAR_MIN && defined WCHAR_MAX) #error "WCHAR_MIN, WCHAR_MAX not defined in " #endif ] gl_STDINT_INCLUDES [ #ifdef INT8_MAX int8_t a1 = INT8_MAX; int8_t a1min = INT8_MIN; #endif #ifdef INT16_MAX int16_t a2 = INT16_MAX; int16_t a2min = INT16_MIN; #endif #ifdef INT32_MAX int32_t a3 = INT32_MAX; int32_t a3min = INT32_MIN; #endif #ifdef INT64_MAX int64_t a4 = INT64_MAX; int64_t a4min = INT64_MIN; #endif #ifdef UINT8_MAX uint8_t b1 = UINT8_MAX; #else typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; #endif #ifdef UINT16_MAX uint16_t b2 = UINT16_MAX; #endif #ifdef UINT32_MAX uint32_t b3 = UINT32_MAX; #endif #ifdef UINT64_MAX uint64_t b4 = UINT64_MAX; #endif int_least8_t c1 = INT8_C (0x7f); int_least8_t c1max = INT_LEAST8_MAX; int_least8_t c1min = INT_LEAST8_MIN; int_least16_t c2 = INT16_C (0x7fff); int_least16_t c2max = INT_LEAST16_MAX; int_least16_t c2min = INT_LEAST16_MIN; int_least32_t c3 = INT32_C (0x7fffffff); int_least32_t c3max = INT_LEAST32_MAX; int_least32_t c3min = INT_LEAST32_MIN; int_least64_t c4 = INT64_C (0x7fffffffffffffff); int_least64_t c4max = INT_LEAST64_MAX; int_least64_t c4min = INT_LEAST64_MIN; uint_least8_t d1 = UINT8_C (0xff); uint_least8_t d1max = UINT_LEAST8_MAX; uint_least16_t d2 = UINT16_C (0xffff); uint_least16_t d2max = UINT_LEAST16_MAX; uint_least32_t d3 = UINT32_C (0xffffffff); uint_least32_t d3max = UINT_LEAST32_MAX; uint_least64_t d4 = UINT64_C (0xffffffffffffffff); uint_least64_t d4max = UINT_LEAST64_MAX; int_fast8_t e1 = INT_FAST8_MAX; int_fast8_t e1min = INT_FAST8_MIN; int_fast16_t e2 = INT_FAST16_MAX; int_fast16_t e2min = INT_FAST16_MIN; int_fast32_t e3 = INT_FAST32_MAX; int_fast32_t e3min = INT_FAST32_MIN; int_fast64_t e4 = INT_FAST64_MAX; int_fast64_t e4min = INT_FAST64_MIN; uint_fast8_t f1 = UINT_FAST8_MAX; uint_fast16_t f2 = UINT_FAST16_MAX; uint_fast32_t f3 = UINT_FAST32_MAX; uint_fast64_t f4 = UINT_FAST64_MAX; #ifdef INTPTR_MAX intptr_t g = INTPTR_MAX; intptr_t gmin = INTPTR_MIN; #endif #ifdef UINTPTR_MAX uintptr_t h = UINTPTR_MAX; #endif intmax_t i = INTMAX_MAX; uintmax_t j = UINTMAX_MAX; /* Check that SIZE_MAX has the correct type, if possible. */ #if 201112 <= __STDC_VERSION__ int k = _Generic (SIZE_MAX, size_t: 0); #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ || (0x5110 <= __SUNPRO_C && !__STDC__)) extern size_t k; extern __typeof__ (SIZE_MAX) k; #endif #include /* for CHAR_BIT */ #define TYPE_MINIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) #define TYPE_MAXIMUM(t) \ ((t) ((t) 0 < (t) -1 \ ? (t) -1 \ : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) struct s { int check_PTRDIFF: PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) ? 1 : -1; /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */ int check_SIG_ATOMIC: SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) ? 1 : -1; int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; int check_WCHAR: WCHAR_MIN == TYPE_MINIMUM (wchar_t) && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) ? 1 : -1; /* Detect bug in mingw. */ int check_WINT: WINT_MIN == TYPE_MINIMUM (wint_t) && WINT_MAX == TYPE_MAXIMUM (wint_t) ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; int check_UINT16_C: (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; /* Detect bugs in OpenBSD 3.9 stdint.h. */ #ifdef UINT8_MAX int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; #endif #ifdef UINT16_MAX int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; #endif #ifdef UINT32_MAX int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; #endif #ifdef UINT64_MAX int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; #endif int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; ]])], [dnl Determine whether the various *_MIN, *_MAX macros are usable dnl in preprocessor expression. We could do it by compiling a test dnl program for each of these macros. It is faster to run a program dnl that inspects the macro expansion. dnl This detects a bug on HP-UX 11.23/ia64. AC_RUN_IFELSE([ AC_LANG_PROGRAM([[ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #define __STDC_CONSTANT_MACROS 1 #define __STDC_LIMIT_MACROS 1 #include ] gl_STDINT_INCLUDES [ #include #include #define MVAL(macro) MVAL1(macro) #define MVAL1(expression) #expression static const char *macro_values[] = { #ifdef INT8_MAX MVAL (INT8_MAX), #endif #ifdef INT16_MAX MVAL (INT16_MAX), #endif #ifdef INT32_MAX MVAL (INT32_MAX), #endif #ifdef INT64_MAX MVAL (INT64_MAX), #endif #ifdef UINT8_MAX MVAL (UINT8_MAX), #endif #ifdef UINT16_MAX MVAL (UINT16_MAX), #endif #ifdef UINT32_MAX MVAL (UINT32_MAX), #endif #ifdef UINT64_MAX MVAL (UINT64_MAX), #endif NULL }; ]], [[ const char **mv; for (mv = macro_values; *mv != NULL; mv++) { const char *value = *mv; /* Test whether it looks like a cast expression. */ if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 || strncmp (value, "((int)"/*)*/, 6) == 0 || strncmp (value, "((signed short)"/*)*/, 15) == 0 || strncmp (value, "((signed char)"/*)*/, 14) == 0) return mv - macro_values + 1; } return 0; ]])], [gl_cv_header_working_stdint_h=yes], [], [case "$host_os" in # Guess yes on native Windows. mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; # In general, assume it works. *) gl_cv_header_working_stdint_h="guessing yes" ;; esac ]) ]) ]) fi HAVE_C99_STDINT_H=0 HAVE_SYS_BITYPES_H=0 HAVE_SYS_INTTYPES_H=0 GL_GENERATE_STDINT_H=true case "$gl_cv_header_working_stdint_h" in *yes) HAVE_C99_STDINT_H=1 dnl Now see whether the system works without dnl __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined. dnl If not, there would be problems when stdint.h is included from C++. AC_CACHE_CHECK([whether stdint.h works without ISO C predefines], [gl_cv_header_stdint_without_STDC_macros], [gl_cv_header_stdint_without_STDC_macros=no AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include ] gl_STDINT_INCLUDES [ intmax_t im = INTMAX_MAX; int32_t i32 = INT32_C (0x7fffffff); ]])], [gl_cv_header_stdint_without_STDC_macros=yes]) ]) if test $gl_cv_header_stdint_without_STDC_macros = no; then AC_DEFINE([__STDC_CONSTANT_MACROS], [1], [Define to 1 if the system predates C++11.]) AC_DEFINE([__STDC_LIMIT_MACROS], [1], [Define to 1 if the system predates C++11.]) fi AC_CACHE_CHECK([whether stdint.h has UINTMAX_WIDTH etc.], [gl_cv_header_stdint_width], [gl_cv_header_stdint_width=no AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #endif #include ]gl_STDINT_INCLUDES[ int iw = UINTMAX_WIDTH; ]])], [gl_cv_header_stdint_width=yes])]) if test "$gl_cv_header_stdint_width" = yes; then GL_GENERATE_STDINT_H=false fi ;; *) dnl Check for , and for dnl (used in Linux libc4 >= 4.6.7 and libc5). AC_CHECK_HEADERS([sys/inttypes.h sys/bitypes.h]) if test $ac_cv_header_sys_inttypes_h = yes; then HAVE_SYS_INTTYPES_H=1 fi if test $ac_cv_header_sys_bitypes_h = yes; then HAVE_SYS_BITYPES_H=1 fi gl_STDINT_TYPE_PROPERTIES ;; esac dnl The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH. gl_REPLACE_LIMITS_H AC_SUBST([HAVE_C99_STDINT_H]) AC_SUBST([HAVE_SYS_BITYPES_H]) AC_SUBST([HAVE_SYS_INTTYPES_H]) ]) dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) dnl Determine the size of each of the given types in bits. AC_DEFUN([gl_STDINT_BITSIZEOF], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. m4_foreach_w([gltype], [$1], [AH_TEMPLATE([BITSIZEOF_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to the number of bits in type ']gltype['.])]) for gltype in $1 ; do AC_CACHE_CHECK([for bit size of $gltype], [gl_cv_bitsizeof_${gltype}], [AC_COMPUTE_INT([result], [sizeof ($gltype) * CHAR_BIT], [$2 #include ], [result=unknown]) eval gl_cv_bitsizeof_${gltype}=\$result ]) eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then dnl Use a nonempty default, because some compilers, such as IRIX 5 cc, dnl do a syntax check even on unused #if conditions and give an error dnl on valid C code like this: dnl #if 0 dnl # if > 32 dnl # endif dnl #endif result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` AC_DEFINE_UNQUOTED([BITSIZEOF_${GLTYPE}], [$result]) eval BITSIZEOF_${GLTYPE}=\$result done m4_foreach_w([gltype], [$1], [AC_SUBST([BITSIZEOF_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) dnl gl_CHECK_TYPES_SIGNED(TYPES, INCLUDES) dnl Determine the signedness of each of the given types. dnl Define HAVE_SIGNED_TYPE if type is signed. AC_DEFUN([gl_CHECK_TYPES_SIGNED], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. m4_foreach_w([gltype], [$1], [AH_TEMPLATE([HAVE_SIGNED_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]), [Define to 1 if ']gltype[' is a signed integer type.])]) for gltype in $1 ; do AC_CACHE_CHECK([whether $gltype is signed], [gl_cv_type_${gltype}_signed], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([$2[ int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];]])], result=yes, result=no) eval gl_cv_type_${gltype}_signed=\$result ]) eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then AC_DEFINE_UNQUOTED([HAVE_SIGNED_${GLTYPE}], [1]) eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done m4_foreach_w([gltype], [$1], [AC_SUBST([HAVE_SIGNED_]m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]))]) ]) dnl gl_INTEGER_TYPE_SUFFIX(TYPES, INCLUDES) dnl Determine the suffix to use for integer constants of the given types. dnl Define t_SUFFIX for each such type. AC_DEFUN([gl_INTEGER_TYPE_SUFFIX], [ dnl Use a shell loop, to avoid bloating configure, and dnl - extra AH_TEMPLATE calls, so that autoheader knows what to put into dnl config.h.in, dnl - extra AC_SUBST calls, so that the right substitutions are made. m4_foreach_w([gltype], [$1], [AH_TEMPLATE(m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX], [Define to l, ll, u, ul, ull, etc., as suitable for constants of type ']gltype['.])]) for gltype in $1 ; do AC_CACHE_CHECK([for $gltype integer literal suffix], [gl_cv_type_${gltype}_suffix], [eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then glsufu= else glsufu=u fi for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; i64) gltype1='__int64';; u) gltype1='unsigned int';; ul) gltype1='unsigned long int';; ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([$2[ extern $gltype foo; extern $gltype1 foo;]])], [eval gl_cv_type_${gltype}_suffix=\$glsuf]) eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done]) GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result AC_DEFINE_UNQUOTED([${GLTYPE}_SUFFIX], [$result]) done m4_foreach_w([gltype], [$1], [AC_SUBST(m4_translit(gltype,[abcdefghijklmnopqrstuvwxyz ],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])[_SUFFIX])]) ]) dnl gl_STDINT_INCLUDES AC_DEFUN([gl_STDINT_INCLUDES], [[ #include #include #if HAVE_WCHAR_H # include #endif ]]) dnl gl_STDINT_TYPE_PROPERTIES dnl Compute HAVE_SIGNED_t, BITSIZEOF_t and t_SUFFIX, for all the types t dnl of interest to stdint.in.h. AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], [ AC_REQUIRE([gl_MULTIARCH]) if test $APPLE_UNIVERSAL_BUILD = 0; then gl_STDINT_BITSIZEOF([ptrdiff_t size_t], [gl_STDINT_INCLUDES]) fi gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no if test $APPLE_UNIVERSAL_BUILD = 0; then gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t], [gl_STDINT_INCLUDES]) fi gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) dnl If wint_t is smaller than 'int', it cannot satisfy the ISO C 99 dnl requirement that wint_t is "unchanged by default argument promotions". dnl In this case gnulib's and override wint_t. dnl Set the variable BITSIZEOF_WINT_T accordingly. if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then BITSIZEOF_WINT_T=32 fi ]) shishi-1.0.3/lib/gl/m4/stdarg.m40000644000000000000000000000523314273615122013115 00000000000000# stdarg.m4 serial 8 dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Provide a working va_copy in combination with . AC_DEFUN([gl_STDARG_H], [ GL_GENERATE_STDARG_H=false NEXT_STDARG_H='' AC_CACHE_CHECK([for va_copy], [gl_cv_func_va_copy], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[ #ifndef va_copy void (*func) (va_list, va_list) = va_copy; #endif ]])], [gl_cv_func_va_copy=yes], [gl_cv_func_va_copy=no]) ]) if test $gl_cv_func_va_copy = no; then dnl Provide a substitute. dnl Usually a simple definition in is enough. Not so on AIX 5 dnl with some versions of the /usr/vac/bin/cc compiler. It has an dnl which does '#undef va_copy', leading to a missing va_copy symbol. For dnl this platform, we use an substitute. But we cannot use this dnl approach on other platforms, because often defines only dnl preprocessor macros and gl_ABSOLUTE_HEADER, gl_CHECK_NEXT_HEADERS do dnl not work in this situation. AC_EGREP_CPP([vaccine], [#if defined _AIX && !defined __GNUC__ AIX vaccine #endif ], [gl_aixcc=yes], [gl_aixcc=no]) if test $gl_aixcc = yes; then dnl Provide a substitute file. GL_GENERATE_STDARG_H=true gl_NEXT_HEADERS([stdarg.h]) dnl Fallback for the case when contains only macro definitions. if test "$gl_cv_next_stdarg_h" = '""'; then gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' NEXT_STDARG_H="$gl_cv_next_stdarg_h" fi else dnl Provide a substitute in , either __va_copy or as a simple dnl assignment. gl_CACHE_VAL_SILENT([gl_cv_func___va_copy], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[ #ifndef __va_copy error, bail out #endif ]])], [gl_cv_func___va_copy=yes], [gl_cv_func___va_copy=no])]) if test $gl_cv_func___va_copy = yes; then AC_DEFINE([va_copy], [__va_copy], [Define as a macro for copying va_list variables.]) else AH_VERBATIM([gl_VA_COPY], [/* A replacement for va_copy, if needed. */ #define gl_va_copy(a,b) ((a) = (b))]) AC_DEFINE([va_copy], [gl_va_copy], [Define as a macro for copying va_list variables.]) fi fi fi AC_SUBST([NEXT_STDARG_H]) ]) shishi-1.0.3/lib/gl/m4/pathmax.m40000644000000000000000000000215514273615122013273 00000000000000# pathmax.m4 serial 11 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_PATHMAX], [ dnl Prerequisites of lib/pathmax.h. AC_CHECK_HEADERS_ONCE([sys/param.h]) ]) # Expands to a piece of C program that defines PATH_MAX in the same way as # "pathmax.h" will do. AC_DEFUN([gl_PATHMAX_SNIPPET], [[ /* Arrange to define PATH_MAX, like "pathmax.h" does. */ #if HAVE_UNISTD_H # include #endif #include #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include #endif #if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN #endif #ifdef __hpux # undef PATH_MAX # define PATH_MAX 1024 #endif #if defined _WIN32 && ! defined __CYGWIN__ # undef PATH_MAX # define PATH_MAX 260 #endif ]]) # Prerequisites of gl_PATHMAX_SNIPPET. AC_DEFUN([gl_PATHMAX_SNIPPET_PREREQ], [ AC_CHECK_HEADERS_ONCE([unistd.h sys/param.h]) ]) shishi-1.0.3/lib/gl/m4/off_t.m40000644000000000000000000000100614273615122012720 00000000000000# off_t.m4 serial 1 dnl Copyright (C) 2012-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Check whether to override the 'off_t' type. dnl Set WINDOWS_64_BIT_OFF_T. AC_DEFUN([gl_TYPE_OFF_T], [ m4_ifdef([gl_LARGEFILE], [ AC_REQUIRE([gl_LARGEFILE]) ], [ WINDOWS_64_BIT_OFF_T=0 ]) AC_SUBST([WINDOWS_64_BIT_OFF_T]) ]) shishi-1.0.3/lib/gl/m4/fcntl-o.m40000644000000000000000000001123614273615122013173 00000000000000# fcntl-o.m4 serial 7 dnl Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. AC_PREREQ([2.60]) # Test whether the flags O_NOATIME and O_NOFOLLOW actually work. # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise. # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise. AC_DEFUN([gl_FCNTL_O_FLAGS], [ dnl Persuade glibc to define O_NOATIME and O_NOFOLLOW. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CHECK_FUNCS_ONCE([symlink]) AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include # include # defined sleep(n) _sleep ((n) * 1000) #endif #include ]GL_MDA_DEFINES[ #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; ]], [[ int result = !constants; #if HAVE_SYMLINK { static char const sym[] = "conftest.sym"; if (symlink ("/dev/null", sym) != 0) result |= 2; else { int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); if (fd >= 0) { close (fd); result |= 4; } } if (unlink (sym) != 0 || symlink (".", sym) != 0) result |= 2; else { int fd = open (sym, O_RDONLY | O_NOFOLLOW); if (fd >= 0) { close (fd); result |= 4; } } unlink (sym); } #endif { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); if (fd < 0) result |= 8; else { struct stat st0; if (fstat (fd, &st0) != 0) result |= 16; else { char c; sleep (1); if (read (fd, &c, 1) != 1) result |= 24; else { if (close (fd) != 0) result |= 32; else { struct stat st1; if (stat (file, &st1) != 0) result |= 40; else if (st0.st_atime != st1.st_atime) result |= 64; } } } } } return result;]])], [gl_cv_header_working_fcntl_h=yes], [case $? in #( 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac], [case "$host_os" in # Guess 'no' on native Windows. mingw*) gl_cv_header_working_fcntl_h='no' ;; *) gl_cv_header_working_fcntl_h=cross-compiling ;; esac ]) ]) case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], [Define to 1 if O_NOATIME works.]) case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], [Define to 1 if O_NOFOLLOW works.]) ]) shishi-1.0.3/lib/gl/m4/lib-prefix.m40000644000000000000000000002764514273615122013705 00000000000000# lib-prefix.m4 serial 20 dnl Copyright (C) 2001-2005, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH([lib-prefix], [[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a function acl_is_expected_elfclass, that tests whether standard input dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI, dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing dnl the basename of the libdir to try in turn, either "lib" or "lib64" or dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar. AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib, lib32, and lib64. dnl On most glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib. dnl We determine the compiler's default mode by looking at the compiler's dnl library search path. If at least one of its elements ends in /lib64 or dnl points to a directory whose absolute pathname ends in /lib64, we use that dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default, dnl namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT]) AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], [AC_EGREP_CPP([Extensible Linking Format], [#if defined __ELF__ || (defined __linux__ && defined __EDG__) Extensible Linking Format #endif ], [gl_cv_elf=yes], [gl_cv_elf=no]) ]) if test $gl_cv_elf = yes; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then # Use POSIX od. func_elfclass () { od -A n -t d1 -j 4 -N 1 } else # Use BSD hexdump. func_elfclass () { dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' echo } fi # Use 'expr', not 'test', to compare the values of func_elfclass, because on # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, # not 1 or 2. changequote(,)dnl case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null } ;; *) # Unknown. acl_is_expected_elfclass () { : } ;; esac changequote([,])dnl else acl_is_expected_elfclass () { : } fi dnl Allow the user to override the result by setting acl_cv_libdirstems. AC_CACHE_CHECK([for the common suffixes of directories in the library search path], [acl_cv_libdirstems], [dnl Try 'lib' first, because that's the default for libdir in GNU, see dnl . acl_libdirstem=lib acl_libdirstem2= acl_libdirstem3= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. if test $HOST_CPU_C_ABI_32BIT = no; then acl_libdirstem2=lib/64 case "$host_cpu" in sparc*) acl_libdirstem3=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; esac fi ;; *) dnl If $CC generates code for a 32-bit ABI, the libraries are dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32. dnl Find the compiler's search path. However, non-system compilers dnl sometimes have odd library search paths. But we can't simply invoke dnl '/usr/bin/gcc -print-search-dirs' because that would not take into dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS. searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test $HOST_CPU_C_ABI_32BIT != no; then # 32-bit or unknown ABI. if test -d /usr/lib32; then acl_libdirstem2=lib32 fi fi if test $HOST_CPU_C_ABI_32BIT != yes; then # 64-bit or unknown ABI. if test -d /usr/lib64; then acl_libdirstem3=lib64 fi fi if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib32 ) acl_libdirstem2=lib32 ;; */lib64 ) acl_libdirstem3=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= fi if test $HOST_CPU_C_ABI_32BIT = no; then # 64-bit ABI. acl_libdirstem2= fi fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" ]) dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and dnl acl_libdirstem3. changequote(,)dnl acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` changequote([,])dnl ]) shishi-1.0.3/lib/gl/m4/gc-hmac-sha1.m40000644000000000000000000000064514273615122013764 00000000000000# gc-hmac-sha1.m4 serial 3 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC_HMAC_SHA1], [ AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" != yes; then gl_SHA1 gl_MEMXOR fi ]) shishi-1.0.3/lib/gl/m4/bison.m40000644000000000000000000000712014273615122012740 00000000000000# serial 10 # Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are two types of parser skeletons: # # * Those that can be used with any Yacc implementation, including bison. # For these, in the configure.ac, up to Autoconf 2.69, you could use # AC_PROG_YACC # In newer Autoconf versions, however, this macro is broken. See # https://lists.gnu.org/archive/html/autoconf-patches/2013-03/msg00000.html # https://lists.gnu.org/archive/html/bug-autoconf/2018-12/msg00001.html # In the Makefile.am you could use # $(SHELL) $(YLWRAP) $(srcdir)/foo.y \ # y.tab.c foo.c \ # y.tab.h foo.h \ # y.output foo.output \ # -- $(YACC) $(YFLAGS) $(AM_YFLAGS) # or similar. # # * Those that make use of Bison extensions. For example, # - %define api.pure requires bison 2.7 or newer, # - %precedence requires bison 3.0 or newer. # For these, in the configure.ac you will need an invocation of # gl_PROG_BISON([VARIABLE], [MIN_BISON_VERSION]) # Example: # gl_PROG_BISON([PARSE_DATETIME_BISON], [2.4]) # With this preparation, in the Makefile.am there are two ways to formulate # the invocation. Both are direct, without use of 'ylwrap'. # (a) You can invoke # $(VARIABLE) -d $(SOME_BISON_OPTIONS) --output foo.c $(srcdir)/foo.y # or similar. # (b) If you want the invocation to honor an YFLAGS=... parameter passed to # 'configure' or an YFLAGS environment variable present at 'configure' # time, add an invocation of gl_BISON to the configure.ac, and write # $(VARIABLE) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/foo.y # or similar. # This macro defines the autoconf variable VARIABLE to 'bison' if the specified # minimum version of bison is found in $PATH, or to ':' otherwise. AC_DEFUN([gl_PROG_BISON], [ AC_CHECK_PROGS([$1], [bison]) if test -z "$[$1]"; then ac_verc_fail=yes else cat >conftest.y <<_ACEOF %require "$2" %% exp: _ACEOF AC_MSG_CHECKING([for bison $2 or newer]) ac_prog_version=`$$1 --version 2>&1 | sed -n 's/^.*GNU Bison.* \([[0-9]]*\.[[0-9.]]*\).*$/\1/p'` : ${ac_prog_version:='v. ?.??'} if $$1 conftest.y -o conftest.c 2>/dev/null; then ac_prog_version="$ac_prog_version, ok" ac_verc_fail=no else ac_prog_version="$ac_prog_version, bad" ac_verc_fail=yes fi rm -f conftest.y conftest.c AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then [$1]=: fi AC_SUBST([$1]) ]) # This macro sets the autoconf variables YACC (for old-style yacc Makefile # rules) and YFLAGS (to allow options to be passed as 'configure' time). AC_DEFUN([gl_BISON], [ : ${YACC='bison -o y.tab.c'} dnl dnl Declaring YACC & YFLAGS precious will not be necessary after GNULIB dnl requires an Autoconf greater than 2.59c, but it will probably still be dnl useful to override the description of YACC in the --help output, re dnl parse-datetime.y assuming 'bison -o y.tab.c'. AC_ARG_VAR([YACC], [The "Yet Another C Compiler" implementation to use. Defaults to 'bison -o y.tab.c'. Values other than 'bison -o y.tab.c' will most likely break on most systems.])dnl AC_ARG_VAR([YFLAGS], [YFLAGS contains the list arguments that will be passed by default to Bison. This script will default YFLAGS to the empty string to avoid a default value of '-d' given by some make applications.])dnl ]) shishi-1.0.3/lib/gl/m4/read-file.m40000644000000000000000000000055214273615122013460 00000000000000# read-file.m4 serial 3 dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Prerequisites of lib/read-file.c. AC_DEFUN([gl_PREREQ_READ_FILE], [:]) shishi-1.0.3/lib/gl/m4/getpass.m40000644000000000000000000000622114273615122013275 00000000000000# getpass.m4 serial 17 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Provide a getpass() function if the system doesn't have it. AC_DEFUN_ONCE([gl_FUNC_GETPASS], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl Persuade Solaris and to declare getpass(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_FUNCS_ONCE([getpass]) if test $ac_cv_func_getpass = no; then HAVE_GETPASS=0 fi ]) # Provide the GNU getpass() implementation. It supports passwords of # arbitrary length (not just 8 bytes as on HP-UX). AC_DEFUN([gl_FUNC_GETPASS_GNU], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_GETPASS]) if test $ac_cv_func_getpass = yes; then AC_CACHE_CHECK([for getpass without length limitations], [gl_cv_func_getpass_good], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif ], [gl_cv_func_getpass_good=yes], [gl_cv_func_getpass_good=no]) ]) if test $gl_cv_func_getpass_good != yes; then REPLACE_GETPASS_FOR_GETPASS_GNU=1 fi fi ]) # Prerequisites of lib/getpass.c. AC_DEFUN([gl_PREREQ_GETPASS], [ AC_CHECK_HEADERS_ONCE([stdio_ext.h termios.h]) AC_CHECK_FUNCS_ONCE([__fsetlocking]) AC_CHECK_DECLS([__fsetlocking],,, [[#include #if HAVE_STDIO_EXT_H #include #endif]]) AC_CHECK_DECLS_ONCE([fflush_unlocked]) AC_CHECK_DECLS_ONCE([flockfile]) AC_CHECK_DECLS_ONCE([fputs_unlocked]) AC_CHECK_DECLS_ONCE([funlockfile]) AC_CHECK_DECLS_ONCE([putc_unlocked]) dnl We can't use AC_CHECK_FUNC here, because tcgetattr() is defined as a dnl static inline function when compiling for Android 4.4 or older. AC_CACHE_CHECK([for tcgetattr], [gl_cv_func_tcgetattr], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include struct termios x; ]], [[return tcgetattr(0,&x);]]) ], [gl_cv_func_tcgetattr=yes], [gl_cv_func_tcgetattr=no]) ]) if test $gl_cv_func_tcgetattr = yes; then HAVE_TCGETATTR=1 else HAVE_TCGETATTR=0 fi AC_DEFINE_UNQUOTED([HAVE_TCGETATTR], [$HAVE_TCGETATTR], [Define to 1 if the system has the 'tcgetattr' function.]) dnl We can't use AC_CHECK_FUNC here, because tcsetattr() is defined as a dnl static inline function when compiling for Android 4.4 or older. AC_CACHE_CHECK([for tcsetattr], [gl_cv_func_tcsetattr], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include struct termios x; ]], [[return tcsetattr(0,0,&x);]]) ], [gl_cv_func_tcsetattr=yes], [gl_cv_func_tcsetattr=no]) ]) if test $gl_cv_func_tcsetattr = yes; then HAVE_TCSETATTR=1 else HAVE_TCSETATTR=0 fi AC_DEFINE_UNQUOTED([HAVE_TCSETATTR], [$HAVE_TCSETATTR], [Define to 1 if the system has the 'tcsetattr' function.]) ]) shishi-1.0.3/lib/gl/m4/printf.m40000644000000000000000000021352714273615122013142 00000000000000# printf.m4 serial 73 dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Test whether the *printf family of functions supports the 'j', 'z', 't', dnl 'L' size specifiers. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_sizes_c99. AC_DEFUN([gl_PRINTF_SIZES_C99], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports size specifiers as in C99], [gl_cv_func_printf_sizes_c99], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include #include #if HAVE_STDINT_H_WITH_UINTMAX # include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX # include #endif static char buf[100]; int main () { int result = 0; #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX buf[0] = '\0'; if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0 || strcmp (buf, "12345671 33") != 0) result |= 1; #else result |= 1; #endif buf[0] = '\0'; if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0 || strcmp (buf, "12345672 33") != 0) result |= 2; buf[0] = '\0'; if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0 || strcmp (buf, "12345673 33") != 0) result |= 4; buf[0] = '\0'; if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0 || strcmp (buf, "1.5 33") != 0) result |= 8; return result; }]])], [gl_cv_func_printf_sizes_c99=yes], [gl_cv_func_printf_sizes_c99=no], [ case "$host_os" in changequote(,)dnl # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_printf_sizes_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";; midnightbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";; darwin*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on OpenBSD >= 3.9. openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) gl_cv_func_printf_sizes_c99="guessing no";; openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on Solaris >= 2.10. solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; solaris*) gl_cv_func_printf_sizes_c99="guessing no";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_printf_sizes_c99="guessing no";; netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_printf_sizes_c99="guessing yes";; changequote([,])dnl # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_printf_sizes_c99="guessing yes"], [gl_cv_func_printf_sizes_c99="guessing no"]) ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports 'long double' dnl arguments together with the 'L' size specifier. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_long_double. AC_DEFUN([gl_PRINTF_LONG_DOUBLE], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports 'long double' arguments], [gl_cv_func_printf_long_double], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[10000]; int main () { int result = 0; buf[0] = '\0'; if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0 || strcmp (buf, "1.750000 33") != 0) result |= 1; buf[0] = '\0'; if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0 || strcmp (buf, "1.750000e+00 33") != 0) result |= 2; buf[0] = '\0'; if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0 || strcmp (buf, "1.75 33") != 0) result |= 4; return result; }]])], [gl_cv_func_printf_long_double=yes], [gl_cv_func_printf_long_double=no], [case "$host_os" in # Guess no on BeOS. beos*) gl_cv_func_printf_long_double="guessing no";; # Guess yes on Android. linux*-android*) gl_cv_func_printf_long_double="guessing yes";; # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_printf_long_double="guessing yes"], [gl_cv_func_printf_long_double="guessing no"]) ;; *) gl_cv_func_printf_long_double="guessing yes";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports infinite and NaN dnl 'double' arguments and negative zero arguments in the %f, %e, %g dnl directives. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_infinite. AC_DEFUN([gl_PRINTF_INFINITE], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports infinite 'double' arguments], [gl_cv_func_printf_infinite], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static int strisnan (const char *string, size_t start_index, size_t end_index) { if (start_index < end_index) { if (string[start_index] == '-') start_index++; if (start_index + 3 <= end_index && memcmp (string + start_index, "nan", 3) == 0) { start_index += 3; if (start_index == end_index || (string[start_index] == '(' && string[end_index - 1] == ')')) return 1; } } return 0; } static int have_minus_zero () { static double plus_zero = 0.0; double minus_zero = - plus_zero; return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0; } static char buf[10000]; static double zero = 0.0; int main () { int result = 0; if (sprintf (buf, "%f", 1.0 / zero) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 1; if (sprintf (buf, "%f", -1.0 / zero) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 1; if (sprintf (buf, "%f", zero / zero) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; if (sprintf (buf, "%e", 1.0 / zero) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 4; if (sprintf (buf, "%e", -1.0 / zero) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 4; if (sprintf (buf, "%e", zero / zero) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 8; if (sprintf (buf, "%g", 1.0 / zero) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 16; if (sprintf (buf, "%g", -1.0 / zero) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 16; if (sprintf (buf, "%g", zero / zero) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 32; /* This test fails on HP-UX 10.20. */ if (have_minus_zero ()) if (sprintf (buf, "%g", - zero) < 0 || strcmp (buf, "-0") != 0) result |= 64; return result; }]])], [gl_cv_func_printf_infinite=yes], [gl_cv_func_printf_infinite=no], [ case "$host_os" in changequote(,)dnl # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";; midnightbsd*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";; darwin*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on HP-UX >= 11. hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";; hpux*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_printf_infinite="guessing no";; netbsd*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on OpenBSD >= 6.0. openbsd[1-5].*) gl_cv_func_printf_infinite="guessing no";; openbsd*) gl_cv_func_printf_infinite="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_printf_infinite="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_printf_infinite="guessing no";; changequote([,])dnl # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_printf_infinite="guessing yes"], [gl_cv_func_printf_infinite="guessing no"]) ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_infinite="$gl_cross_guess_normal";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports infinite and NaN dnl 'long double' arguments in the %f, %e, %g directives. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_infinite_long_double. AC_DEFUN([gl_PRINTF_INFINITE_LONG_DOUBLE], [ AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([gl_BIGENDIAN]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl The user can set or unset the variable gl_printf_safe to indicate dnl that he wishes a safe handling of non-IEEE-754 'long double' values. if test -n "$gl_printf_safe"; then AC_DEFINE([CHECK_PRINTF_SAFE], [1], [Define if you wish *printf() functions that have a safe handling of non-IEEE-754 'long double' values.]) fi case "$gl_cv_func_printf_long_double" in *yes) AC_CACHE_CHECK([whether printf supports infinite 'long double' arguments], [gl_cv_func_printf_infinite_long_double], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ ]GL_NOCRASH[ #include #include #include static int strisnan (const char *string, size_t start_index, size_t end_index) { if (start_index < end_index) { if (string[start_index] == '-') start_index++; if (start_index + 3 <= end_index && memcmp (string + start_index, "nan", 3) == 0) { start_index += 3; if (start_index == end_index || (string[start_index] == '(' && string[end_index - 1] == ')')) return 1; } } return 0; } static char buf[10000]; static long double zeroL = 0.0L; int main () { int result = 0; nocrash_init(); if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 1; if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 1; if (sprintf (buf, "%Lf", zeroL / zeroL) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 1; if (sprintf (buf, "%Le", 1.0L / zeroL) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 1; if (sprintf (buf, "%Le", -1.0L / zeroL) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 1; if (sprintf (buf, "%Le", zeroL / zeroL) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 1; if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) result |= 1; if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0)) result |= 1; if (sprintf (buf, "%Lg", zeroL / zeroL) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 1; #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE /* Representation of an 80-bit 'long double' as an initializer for a sequence of 'unsigned int' words. */ # ifdef WORDS_BIGENDIAN # define LDBL80_WORDS(exponent,manthi,mantlo) \ { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \ ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \ (unsigned int) (mantlo) << 16 \ } # else # define LDBL80_WORDS(exponent,manthi,mantlo) \ { mantlo, manthi, exponent } # endif { /* Quiet NaN. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; if (sprintf (buf, "%Le", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; if (sprintf (buf, "%Lg", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; } { /* Signalling NaN. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; if (sprintf (buf, "%Le", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; if (sprintf (buf, "%Lg", x.value) < 0 || !strisnan (buf, 0, strlen (buf))) result |= 2; } { /* Pseudo-NaN. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) <= 0) result |= 4; if (sprintf (buf, "%Le", x.value) <= 0) result |= 4; if (sprintf (buf, "%Lg", x.value) <= 0) result |= 4; } { /* Pseudo-Infinity. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) <= 0) result |= 8; if (sprintf (buf, "%Le", x.value) <= 0) result |= 8; if (sprintf (buf, "%Lg", x.value) <= 0) result |= 8; } { /* Pseudo-Zero. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) <= 0) result |= 16; if (sprintf (buf, "%Le", x.value) <= 0) result |= 16; if (sprintf (buf, "%Lg", x.value) <= 0) result |= 16; } { /* Unnormalized number. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) <= 0) result |= 32; if (sprintf (buf, "%Le", x.value) <= 0) result |= 32; if (sprintf (buf, "%Lg", x.value) <= 0) result |= 32; } { /* Pseudo-Denormal. */ static union { unsigned int word[4]; long double value; } x = { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) }; if (sprintf (buf, "%Lf", x.value) <= 0) result |= 64; if (sprintf (buf, "%Le", x.value) <= 0) result |= 64; if (sprintf (buf, "%Lg", x.value) <= 0) result |= 64; } #endif return result; }]])], [gl_cv_func_printf_infinite_long_double=yes], [gl_cv_func_printf_infinite_long_double=no], [case "$host_cpu" in # Guess no on ia64, x86_64, i386. ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";; *) case "$host_os" in changequote(,)dnl # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; midnightbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess yes on HP-UX >= 11. hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";; hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess yes on OpenBSD >= 6.0. openbsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";; openbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_printf_infinite_long_double="guessing no";; changequote([,])dnl # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_printf_infinite_long_double="guessing yes"], [gl_cv_func_printf_infinite_long_double="guessing no"]) ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";; esac ;; esac ]) ]) ;; *) gl_cv_func_printf_infinite_long_double="irrelevant" ;; esac ]) dnl Test whether the *printf family of functions supports the 'a' and 'A' dnl conversion specifier for hexadecimal output of floating-point numbers. dnl (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_directive_a. AC_DEFUN([gl_PRINTF_DIRECTIVE_A], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the 'a' and 'A' directives], [gl_cv_func_printf_directive_a], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[100]; static double zero = 0.0; int main () { int result = 0; if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0 || (strcmp (buf, "0x1.922p+1 33") != 0 && strcmp (buf, "0x3.244p+0 33") != 0 && strcmp (buf, "0x6.488p-1 33") != 0 && strcmp (buf, "0xc.91p-2 33") != 0)) result |= 1; if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0 || (strcmp (buf, "-0X1.922P+1 33") != 0 && strcmp (buf, "-0X3.244P+0 33") != 0 && strcmp (buf, "-0X6.488P-1 33") != 0 && strcmp (buf, "-0XC.91P-2 33") != 0)) result |= 2; /* This catches a FreeBSD 13.0 bug: it doesn't round. */ if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0 || (strcmp (buf, "0x1.83p+0 33") != 0 && strcmp (buf, "0x3.05p-1 33") != 0 && strcmp (buf, "0x6.0ap-2 33") != 0 && strcmp (buf, "0xc.14p-3 33") != 0)) result |= 4; /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round. */ if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0 || (strcmp (buf, "0x2p+0 33") != 0 && strcmp (buf, "0x3p-1 33") != 0 && strcmp (buf, "0x6p-2 33") != 0 && strcmp (buf, "0xcp-3 33") != 0)) result |= 4; /* This catches a FreeBSD 6.1 bug. See */ if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0 || buf[0] == '0') result |= 8; /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug. */ if (sprintf (buf, "%.1a", 1.999) < 0 || (strcmp (buf, "0x1.0p+1") != 0 && strcmp (buf, "0x2.0p+0") != 0 && strcmp (buf, "0x4.0p-1") != 0 && strcmp (buf, "0x8.0p-2") != 0)) result |= 16; /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a glibc 2.4 bug . */ if (sprintf (buf, "%.1La", 1.999L) < 0 || (strcmp (buf, "0x1.0p+1") != 0 && strcmp (buf, "0x2.0p+0") != 0 && strcmp (buf, "0x4.0p-1") != 0 && strcmp (buf, "0x8.0p-2") != 0)) result |= 32; return result; }]])], [gl_cv_func_printf_directive_a=yes], [gl_cv_func_printf_directive_a=no], [ case "$host_os" in # Guess yes on glibc >= 2.5 systems. *-gnu* | gnu*) AC_EGREP_CPP([BZ2908], [ #include #ifdef __GNU_LIBRARY__ #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__ BZ2908 #endif #endif ], [gl_cv_func_printf_directive_a="guessing yes"], [gl_cv_func_printf_directive_a="guessing no"]) ;; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_directive_a="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_printf_directive_a="guessing no";; # Guess no on native Windows. mingw*) gl_cv_func_printf_directive_a="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_directive_a="$gl_cross_guess_normal";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports the %F format dnl directive. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_directive_f. AC_DEFUN([gl_PRINTF_DIRECTIVE_F], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the 'F' directive], [gl_cv_func_printf_directive_f], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[100]; static double zero = 0.0; int main () { int result = 0; if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0 || strcmp (buf, "1234567.000000 33") != 0) result |= 1; if (sprintf (buf, "%F", 1.0 / zero) < 0 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0)) result |= 2; /* This catches a Cygwin 1.5.x bug. */ if (sprintf (buf, "%.F", 1234.0) < 0 || strcmp (buf, "1234") != 0) result |= 4; return result; }]])], [gl_cv_func_printf_directive_f=yes], [gl_cv_func_printf_directive_f=no], [ case "$host_os" in changequote(,)dnl # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on FreeBSD >= 6. freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; midnightbsd*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";; darwin*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on OpenBSD >= 6.0. openbsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";; openbsd*) gl_cv_func_printf_directive_f="guessing yes";; # Guess yes on Solaris >= 2.10. solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";; solaris*) gl_cv_func_printf_directive_f="guessing no";; # Guess no on Android. linux*-android*) gl_cv_func_printf_directive_f="guessing no";; changequote([,])dnl # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_printf_directive_f="guessing yes"], [gl_cv_func_printf_directive_f="guessing no"]) ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_directive_f="$gl_cross_guess_normal";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports the %n format dnl directive. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_printf_directive_n. AC_DEFUN([gl_PRINTF_DIRECTIVE_N], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the 'n' directive], [gl_cv_func_printf_directive_n], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include #ifdef _MSC_VER #include /* See page about "Parameter Validation" on msdn.microsoft.com. */ static void cdecl invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { exit (1); } #endif static char fmtstring[10]; static char buf[100]; int main () { int count = -1; #ifdef _MSC_VER _set_invalid_parameter_handler (invalid_parameter_handler); #endif /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) support %n in format strings in read-only memory but not in writable memory. */ strcpy (fmtstring, "%d %n"); if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0 || strcmp (buf, "123 ") != 0 || count != 4) return 1; return 0; }]])], [gl_cv_func_printf_directive_n=yes], [gl_cv_func_printf_directive_n=no], [case "$host_os" in # Guess no on glibc when _FORTIFY_SOURCE >= 2. *-gnu* | gnu*) AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if _FORTIFY_SOURCE >= 2 error fail #endif ]])], [gl_cv_func_printf_directive_n="guessing yes"], [gl_cv_func_printf_directive_n="guessing no"]) ;; # Guess no on Android. linux*-android*) gl_cv_func_printf_directive_n="guessing no";; # Guess no on native Windows. mingw*) gl_cv_func_printf_directive_n="guessing no";; *) gl_cv_func_printf_directive_n="guessing yes";; esac ]) ]) ]) dnl Test whether the *printf family of functions supports the %ls format dnl directive and in particular, when a precision is specified, whether dnl the functions stop converting the wide string argument when the number dnl of bytes that have been produced by this conversion equals or exceeds dnl the precision. dnl Result is gl_cv_func_printf_directive_ls. AC_DEFUN([gl_PRINTF_DIRECTIVE_LS], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the 'ls' directive], [gl_cv_func_printf_directive_ls], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include int main () { int result = 0; char buf[100]; /* Test whether %ls works at all. This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on Cygwin 1.5. */ { static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; buf[0] = '\0'; if (sprintf (buf, "%ls", wstring) < 0 || strcmp (buf, "abc") != 0) result |= 1; } /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an assertion failure inside libc), but not on OpenBSD 4.0. */ { static const wchar_t wstring[] = { 'a', 0 }; buf[0] = '\0'; if (sprintf (buf, "%ls", wstring) < 0 || strcmp (buf, "a") != 0) result |= 2; } /* Test whether precisions in %ls are supported as specified in ISO C 99 section 7.19.6.1: "If a precision is specified, no more than that many bytes are written (including shift sequences, if any), and the array shall contain a null wide character if, to equal the multibyte character sequence length given by the precision, the function would need to access a wide character one past the end of the array." This test fails on Solaris 10. */ { static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 }; buf[0] = '\0'; if (sprintf (buf, "%.2ls", wstring) < 0 || strcmp (buf, "ab") != 0) result |= 8; } return result; }]])], [gl_cv_func_printf_directive_ls=yes], [gl_cv_func_printf_directive_ls=no], [ changequote(,)dnl case "$host_os" in # Guess yes on OpenBSD >= 6.0. openbsd[1-5].*) gl_cv_func_printf_directive_ls="guessing no";; openbsd*) gl_cv_func_printf_directive_ls="guessing yes";; irix*) gl_cv_func_printf_directive_ls="guessing no";; solaris*) gl_cv_func_printf_directive_ls="guessing no";; cygwin*) gl_cv_func_printf_directive_ls="guessing no";; beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";; # Guess no on Android. linux*-android*) gl_cv_func_printf_directive_ls="guessing no";; # Guess yes on native Windows. mingw*) gl_cv_func_printf_directive_ls="guessing yes";; *) gl_cv_func_printf_directive_ls="guessing yes";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions supports POSIX/XSI format dnl strings with positions. (POSIX:2001) dnl Result is gl_cv_func_printf_positions. AC_DEFUN([gl_PRINTF_POSITIONS], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports POSIX/XSI format strings with positions], [gl_cv_func_printf_positions], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }]])], [gl_cv_func_printf_positions=yes], [gl_cv_func_printf_positions=no], [ changequote(,)dnl case "$host_os" in netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) gl_cv_func_printf_positions="guessing no";; beos*) gl_cv_func_printf_positions="guessing no";; # Guess yes on Android. linux*-android*) gl_cv_func_printf_positions="guessing yes";; # Guess no on native Windows. mingw* | pw*) gl_cv_func_printf_positions="guessing no";; *) gl_cv_func_printf_positions="guessing yes";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions supports POSIX/XSI format dnl strings with the ' flag for grouping of decimal digits. (POSIX:2001) dnl Result is gl_cv_func_printf_flag_grouping. AC_DEFUN([gl_PRINTF_FLAG_GROUPING], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the grouping flag], [gl_cv_func_printf_flag_grouping], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[100]; int main () { if (sprintf (buf, "%'d %d", 1234567, 99) < 0 || buf[strlen (buf) - 1] != '9') return 1; return 0; }]])], [gl_cv_func_printf_flag_grouping=yes], [gl_cv_func_printf_flag_grouping=no], [ changequote(,)dnl case "$host_os" in cygwin*) gl_cv_func_printf_flag_grouping="guessing no";; netbsd*) gl_cv_func_printf_flag_grouping="guessing no";; # Guess no on Android. linux*-android*) gl_cv_func_printf_flag_grouping="guessing no";; # Guess no on native Windows. mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";; *) gl_cv_func_printf_flag_grouping="guessing yes";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions supports the - flag correctly. dnl (ISO C99.) See dnl dnl Result is gl_cv_func_printf_flag_leftadjust. AC_DEFUN([gl_PRINTF_FLAG_LEFTADJUST], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the left-adjust flag correctly], [gl_cv_func_printf_flag_leftadjust], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[100]; int main () { /* Check that a '-' flag is not annihilated by a negative width. */ if (sprintf (buf, "a%-*sc", -3, "b") < 0 || strcmp (buf, "ab c") != 0) return 1; return 0; }]])], [gl_cv_func_printf_flag_leftadjust=yes], [gl_cv_func_printf_flag_leftadjust=no], [ changequote(,)dnl case "$host_os" in # Guess yes on HP-UX 11. hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";; # Guess no on HP-UX 10 and older. hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";; # Guess yes on Android. linux*-android*) gl_cv_func_printf_flag_leftadjust="guessing yes";; # Guess yes on native Windows. mingw*) gl_cv_func_printf_flag_leftadjust="guessing yes";; # Guess yes otherwise. *) gl_cv_func_printf_flag_leftadjust="guessing yes";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions supports padding of non-finite dnl values with the 0 flag correctly. (ISO C99 + TC1 + TC2.) See dnl dnl Result is gl_cv_func_printf_flag_zero. AC_DEFUN([gl_PRINTF_FLAG_ZERO], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports the zero flag correctly], [gl_cv_func_printf_flag_zero], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[100]; static double zero = 0.0; int main () { if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0 || (strcmp (buf, " inf") != 0 && strcmp (buf, " infinity") != 0)) return 1; return 0; }]])], [gl_cv_func_printf_flag_zero=yes], [gl_cv_func_printf_flag_zero=no], [ changequote(,)dnl case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_printf_flag_zero="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_printf_flag_zero="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_printf_flag_zero="guessing no";; # Guess no on native Windows. mingw*) gl_cv_func_printf_flag_zero="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions supports large precisions. dnl On mingw, precisions larger than 512 are treated like 512, in integer, dnl floating-point or pointer output. On Solaris 10/x86, precisions larger dnl than 510 in floating-point output crash the program. On Solaris 10/SPARC, dnl precisions larger than 510 in floating-point output yield wrong results. dnl On AIX 7.1, precisions larger than 998 in floating-point output yield dnl wrong results. On BeOS, precisions larger than 1044 crash the program. dnl Result is gl_cv_func_printf_precision. AC_DEFUN([gl_PRINTF_PRECISION], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf supports large precisions], [gl_cv_func_printf_precision], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static char buf[5000]; int main () { int result = 0; #ifdef __BEOS__ /* On BeOS, this would crash and show a dialog box. Avoid the crash. */ return 1; #endif if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3) result |= 1; if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5) result |= 2; if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5 || buf[0] != '1') result |= 4; if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5 || buf[0] != '1') result |= 4; return result; }]])], [gl_cv_func_printf_precision=yes], [gl_cv_func_printf_precision=no], [ changequote(,)dnl case "$host_os" in # Guess no only on Solaris, native Windows, and BeOS systems. solaris*) gl_cv_func_printf_precision="guessing no" ;; mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;; beos*) gl_cv_func_printf_precision="guessing no" ;; # Guess yes on Android. linux*-android*) gl_cv_func_printf_precision="guessing yes" ;; *) gl_cv_func_printf_precision="guessing yes" ;; esac changequote([,])dnl ]) ]) ]) dnl Test whether the *printf family of functions recovers gracefully in case dnl of an out-of-memory condition, or whether it crashes the entire program. dnl Result is gl_cv_func_printf_enomem. AC_DEFUN([gl_PRINTF_ENOMEM], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([gl_MULTIARCH]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether printf survives out-of-memory conditions], [gl_cv_func_printf_enomem], [ gl_cv_func_printf_enomem="guessing no" if test "$cross_compiling" = no; then if test $APPLE_UNIVERSAL_BUILD = 0; then AC_LANG_CONFTEST([AC_LANG_SOURCE([[ ]GL_NOCRASH[ #include #include #include #include #include int main() { struct rlimit limit; int ret; nocrash_init (); /* Some printf implementations allocate temporary space with malloc. */ /* On BSD systems, malloc() is limited by RLIMIT_DATA. */ #ifdef RLIMIT_DATA if (getrlimit (RLIMIT_DATA, &limit) < 0) return 77; if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) limit.rlim_max = 5000000; limit.rlim_cur = limit.rlim_max; if (setrlimit (RLIMIT_DATA, &limit) < 0) return 77; #endif /* On Linux systems, malloc() is limited by RLIMIT_AS. */ #ifdef RLIMIT_AS if (getrlimit (RLIMIT_AS, &limit) < 0) return 77; if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) limit.rlim_max = 5000000; limit.rlim_cur = limit.rlim_max; if (setrlimit (RLIMIT_AS, &limit) < 0) return 77; #endif /* Some printf implementations allocate temporary space on the stack. */ #ifdef RLIMIT_STACK if (getrlimit (RLIMIT_STACK, &limit) < 0) return 77; if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000) limit.rlim_max = 5000000; limit.rlim_cur = limit.rlim_max; if (setrlimit (RLIMIT_STACK, &limit) < 0) return 77; #endif ret = printf ("%.5000000f", 1.0); return !(ret == 5000002 || (ret < 0 && errno == ENOMEM)); } ]])]) if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then (./conftest 2>&AS_MESSAGE_LOG_FD result=$? _AS_ECHO_LOG([\$? = $result]) if test $result != 0 && test $result != 77; then result=1; fi exit $result ) >/dev/null 2>/dev/null case $? in 0) gl_cv_func_printf_enomem="yes" ;; 77) gl_cv_func_printf_enomem="guessing no" ;; *) gl_cv_func_printf_enomem="no" ;; esac else gl_cv_func_printf_enomem="guessing no" fi rm -fr conftest* else dnl A universal build on Apple Mac OS X platforms. dnl The result would be 'no' in 32-bit mode and 'yes' in 64-bit mode. dnl But we need a configuration result that is valid in both modes. gl_cv_func_printf_enomem="guessing no" fi fi if test "$gl_cv_func_printf_enomem" = "guessing no"; then changequote(,)dnl case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on Solaris. solaris*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on AIX. aix*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on HP-UX/hppa. hpux*) case "$host_cpu" in hppa*) gl_cv_func_printf_enomem="guessing yes";; *) gl_cv_func_printf_enomem="guessing no";; esac ;; # Guess yes on IRIX. irix*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on OSF/1. osf*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_printf_enomem="guessing yes";; # Guess yes on Haiku. haiku*) gl_cv_func_printf_enomem="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_printf_enomem="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_printf_enomem="$gl_cross_guess_normal";; esac changequote([,])dnl fi ]) ]) dnl Test whether the snprintf function exists. (ISO C99, POSIX:2001) dnl Result is ac_cv_func_snprintf. AC_DEFUN([gl_SNPRINTF_PRESENCE], [ AC_CHECK_FUNCS_ONCE([snprintf]) ]) dnl Test whether the string produced by the snprintf function is always NUL dnl terminated. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_snprintf_truncation_c99. AC_DEFUN_ONCE([gl_SNPRINTF_TRUNCATION_C99], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_SNPRINTF_PRESENCE]) AC_CACHE_CHECK([whether snprintf truncates the result as in C99], [gl_cv_func_snprintf_truncation_c99], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif static char buf[100]; int main () { strcpy (buf, "ABCDEF"); my_snprintf (buf, 3, "%d %d", 4567, 89); if (memcmp (buf, "45\0DEF", 6) != 0) return 1; return 0; }]])], [gl_cv_func_snprintf_truncation_c99=yes], [gl_cv_func_snprintf_truncation_c99=no], [ changequote(,)dnl case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on OpenBSD >= 3.9. openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) gl_cv_func_snprintf_truncation_c99="guessing no";; openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Solaris >= 2.6. solaris2.[0-5] | solaris2.[0-5].*) gl_cv_func_snprintf_truncation_c99="guessing no";; solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on HP-UX >= 11. hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on IRIX >= 6.5. irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on OSF/1 >= 5. osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_snprintf_truncation_c99="guessing no";; netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess no on native Windows. mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; esac changequote([,])dnl ]) ]) ]) dnl Test whether the return value of the snprintf function is the number dnl of bytes (excluding the terminating NUL) that would have been produced dnl if the buffer had been large enough. (ISO C99, POSIX:2001) dnl For example, this test program fails on IRIX 6.5: dnl --------------------------------------------------------------------- dnl #include dnl int main() dnl { dnl static char buf[8]; dnl int retval = snprintf (buf, 3, "%d", 12345); dnl return retval >= 0 && retval < 3; dnl } dnl --------------------------------------------------------------------- dnl Result is gl_cv_func_snprintf_retval_c99. AC_DEFUN_ONCE([gl_SNPRINTF_RETVAL_C99], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_SNPRINTF_PRESENCE]) AC_CACHE_CHECK([whether snprintf returns a byte count as in C99], [gl_cv_func_snprintf_retval_c99], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif static char buf[100]; int main () { strcpy (buf, "ABCDEF"); if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) return 1; if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) return 2; if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) return 3; return 0; }]])], [gl_cv_func_snprintf_retval_c99=yes], [gl_cv_func_snprintf_retval_c99=no], [case "$host_os" in changequote(,)dnl # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on OpenBSD >= 3.9. openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) gl_cv_func_snprintf_retval_c99="guessing no";; openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Solaris >= 2.10. solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; solaris*) gl_cv_func_printf_sizes_c99="guessing no";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_snprintf_retval_c99="guessing no";; netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";; changequote([,])dnl # Guess yes on MSVC, no on mingw. mingw*) AC_EGREP_CPP([Known], [ #ifdef _MSC_VER Known #endif ], [gl_cv_func_snprintf_retval_c99="guessing yes"], [gl_cv_func_snprintf_retval_c99="guessing no"]) ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; esac ]) ]) ]) dnl Test whether the snprintf function supports the %n format directive dnl also in truncated portions of the format string. (ISO C99, POSIX:2001) dnl Result is gl_cv_func_snprintf_directive_n. AC_DEFUN([gl_SNPRINTF_DIRECTIVE_N], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_SNPRINTF_PRESENCE]) AC_CACHE_CHECK([whether snprintf fully supports the 'n' directive], [gl_cv_func_snprintf_directive_n], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif static char fmtstring[10]; static char buf[100]; int main () { int count = -1; /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) support %n in format strings in read-only memory but not in writable memory. */ strcpy (fmtstring, "%d %n"); my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55); if (count != 6) return 1; return 0; }]])], [gl_cv_func_snprintf_directive_n=yes], [gl_cv_func_snprintf_directive_n=no], [ case "$host_os" in # Guess no on glibc when _FORTIFY_SOURCE >= 2. *-gnu* | gnu*) AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#if _FORTIFY_SOURCE >= 2 error fail #endif ]])], [gl_cv_func_snprintf_directive_n="guessing yes"], [gl_cv_func_snprintf_directive_n="guessing no"]) ;; changequote(,)dnl # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_directive_n="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";; midnightbsd*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_snprintf_directive_n="guessing no";; darwin*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on Solaris >= 2.6. solaris2.[0-5] | solaris2.[0-5].*) gl_cv_func_snprintf_directive_n="guessing no";; solaris*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_snprintf_directive_n="guessing no";; aix*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on IRIX >= 6.5. irix6.5) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on OSF/1 >= 5. osf[3-4]*) gl_cv_func_snprintf_directive_n="guessing no";; osf*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_snprintf_directive_n="guessing no";; netbsd*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_snprintf_directive_n="guessing yes";; # Guess no on Android. linux*-android*) gl_cv_func_snprintf_directive_n="guessing no";; # Guess no on native Windows. mingw*) gl_cv_func_snprintf_directive_n="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";; changequote([,])dnl esac ]) ]) ]) dnl Test whether the snprintf function, when passed a size = 1, writes any dnl output without bounds in this case, behaving like sprintf. This is the dnl case on Linux libc5. dnl Result is gl_cv_func_snprintf_size1. AC_DEFUN([gl_SNPRINTF_SIZE1], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_SNPRINTF_PRESENCE]) AC_CACHE_CHECK([whether snprintf respects a size of 1], [gl_cv_func_snprintf_size1], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif int main() { static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; my_snprintf (buf, 1, "%d", 12345); return buf[1] != 'E'; }]])], [gl_cv_func_snprintf_size1=yes], [gl_cv_func_snprintf_size1=no], [case "$host_os" in # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_snprintf_size1="guessing yes" ;; *) gl_cv_func_snprintf_size1="guessing yes" ;; esac ]) ]) ]) dnl Test whether the vsnprintf function, when passed a zero size, produces no dnl output. (ISO C99, POSIX:2001) dnl For example, snprintf nevertheless writes a NUL byte in this case dnl on OSF/1 5.1: dnl --------------------------------------------------------------------- dnl #include dnl int main() dnl { dnl static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; dnl snprintf (buf, 0, "%d", 12345); dnl return buf[0] != 'D'; dnl } dnl --------------------------------------------------------------------- dnl And vsnprintf writes any output without bounds in this case, behaving like dnl vsprintf, on HP-UX 11 and OSF/1 5.1: dnl --------------------------------------------------------------------- dnl #include dnl #include dnl static int my_snprintf (char *buf, int size, const char *format, ...) dnl { dnl va_list args; dnl int ret; dnl va_start (args, format); dnl ret = vsnprintf (buf, size, format, args); dnl va_end (args); dnl return ret; dnl } dnl int main() dnl { dnl static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; dnl my_snprintf (buf, 0, "%d", 12345); dnl return buf[0] != 'D'; dnl } dnl --------------------------------------------------------------------- dnl Result is gl_cv_func_vsnprintf_zerosize_c99. AC_DEFUN([gl_VSNPRINTF_ZEROSIZE_C99], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether vsnprintf respects a zero size as in C99], [gl_cv_func_vsnprintf_zerosize_c99], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } int main() { static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; my_snprintf (buf, 0, "%d", 12345); return buf[0] != 'D'; }]])], [gl_cv_func_vsnprintf_zerosize_c99=yes], [gl_cv_func_vsnprintf_zerosize_c99=no], [ changequote(,)dnl case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; midnightbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; darwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on Cygwin. cygwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on Solaris >= 2.6. solaris2.[0-5] | solaris2.[0-5].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; solaris*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; aix*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on IRIX >= 6.5. irix6.5) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; netbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # Guess yes on native Windows. mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";; esac changequote([,])dnl ]) ]) ]) dnl The results of these tests on various platforms are: dnl dnl 1 = gl_PRINTF_SIZES_C99 dnl 2 = gl_PRINTF_LONG_DOUBLE dnl 3 = gl_PRINTF_INFINITE dnl 4 = gl_PRINTF_INFINITE_LONG_DOUBLE dnl 5 = gl_PRINTF_DIRECTIVE_A dnl 6 = gl_PRINTF_DIRECTIVE_F dnl 7 = gl_PRINTF_DIRECTIVE_N dnl 8 = gl_PRINTF_DIRECTIVE_LS dnl 9 = gl_PRINTF_POSITIONS dnl 10 = gl_PRINTF_FLAG_GROUPING dnl 11 = gl_PRINTF_FLAG_LEFTADJUST dnl 12 = gl_PRINTF_FLAG_ZERO dnl 13 = gl_PRINTF_PRECISION dnl 14 = gl_PRINTF_ENOMEM dnl 15 = gl_SNPRINTF_PRESENCE dnl 16 = gl_SNPRINTF_TRUNCATION_C99 dnl 17 = gl_SNPRINTF_RETVAL_C99 dnl 18 = gl_SNPRINTF_DIRECTIVE_N dnl 19 = gl_SNPRINTF_SIZE1 dnl 20 = gl_VSNPRINTF_ZEROSIZE_C99 dnl dnl 1 = checking whether printf supports size specifiers as in C99... dnl 2 = checking whether printf supports 'long double' arguments... dnl 3 = checking whether printf supports infinite 'double' arguments... dnl 4 = checking whether printf supports infinite 'long double' arguments... dnl 5 = checking whether printf supports the 'a' and 'A' directives... dnl 6 = checking whether printf supports the 'F' directive... dnl 7 = checking whether printf supports the 'n' directive... dnl 8 = checking whether printf supports the 'ls' directive... dnl 9 = checking whether printf supports POSIX/XSI format strings with positions... dnl 10 = checking whether printf supports the grouping flag... dnl 11 = checking whether printf supports the left-adjust flag correctly... dnl 12 = checking whether printf supports the zero flag correctly... dnl 13 = checking whether printf supports large precisions... dnl 14 = checking whether printf survives out-of-memory conditions... dnl 15 = checking for snprintf... dnl 16 = checking whether snprintf truncates the result as in C99... dnl 17 = checking whether snprintf returns a byte count as in C99... dnl 18 = checking whether snprintf fully supports the 'n' directive... dnl 19 = checking whether snprintf respects a size of 1... dnl 20 = checking whether vsnprintf respects a zero size as in C99... dnl dnl . = yes, # = no. dnl dnl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 dnl glibc 2.5 . . . . . . . . . . . . . . . . . . . . dnl glibc 2.3.6 . . . . # . . . . . . . . . . . . . . . dnl FreeBSD 13.0 . . . . # . . . . . . . . # . . . . . . dnl FreeBSD 5.4, 6.1 . . . . # . . . . . . # . # . . . . . . dnl Mac OS X 10.13.5 . . . # # . # . . . . . . . . . . # . . dnl Mac OS X 10.5.8 . . . # # . . . . . . # . . . . . . . . dnl Mac OS X 10.3.9 . . . . # . . . . . . # . # . . . . . . dnl OpenBSD 6.0, 6.7 . . . . # . . . . . . . . # . . . . . . dnl OpenBSD 3.9, 4.0 . . # # # # . # . # . # . # . . . . . . dnl Cygwin 1.7.0 (2009) . . . # . . . ? . . . . . ? . . . . . . dnl Cygwin 1.5.25 (2008) . . . # # . . # . . . . . # . . . . . . dnl Cygwin 1.5.19 (2006) # . . # # # . # . # . # # # . . . . . . dnl Solaris 11.4 . . # # # . . # . . . # . . . . . . . . dnl Solaris 11.3 . . . . # . . # . . . . . . . . . . . . dnl Solaris 11.0 . . # # # . . # . . . # . . . . . . . . dnl Solaris 10 . . # # # . . # . . . # # . . . . . . . dnl Solaris 2.6 ... 9 # . # # # # . # . . . # # . . . # . . . dnl Solaris 2.5.1 # . # # # # . # . . . # . . # # # # # # dnl AIX 7.1 . . # # # . . . . . . # # . . . . . . . dnl AIX 5.2 . . # # # . . . . . . # . . . . . . . . dnl AIX 4.3.2, 5.1 # . # # # # . . . . . # . . . . # . . . dnl HP-UX 11.31 . . . . # . . . . . . # . . . . # # . . dnl HP-UX 11.{00,11,23} # . . . # # . . . . . # . . . . # # . # dnl HP-UX 10.20 # . # . # # . ? . . # # . . . . # # ? # dnl IRIX 6.5 # . # # # # . # . . . # . . . . # . . . dnl OSF/1 5.1 # . # # # # . . . . . # . . . . # . . # dnl OSF/1 4.0d # . # # # # . . . . . # . . # # # # # # dnl NetBSD 9.0 . . . . # . . . . . . . . . . . . . . . dnl NetBSD 5.0 . . . # # . . . . . . # . # . . . . . . dnl NetBSD 4.0 . ? ? ? ? ? . ? . ? ? ? ? ? . . . ? ? ? dnl NetBSD 3.0 . . . . # # . ? # # ? # . # . . . . . . dnl Haiku . . . # # # . # . . . . . ? . . ? . . . dnl BeOS # # . # # # . ? # . ? . # ? . . ? . . . dnl Android 4.3 . . # # # # # # . # . # . # . . . # . . dnl old mingw / msvcrt # # # # # # . . # # . # # ? . # # # . . dnl MSVC 9 # # # # # # # . # # . # # ? # # # # . . dnl mingw 2009-2011 . # . # . . . . # # . . . ? . . . . . . dnl mingw-w64 2011 # # # # # # . . # # . # # ? . # # # . . shishi-1.0.3/lib/gl/m4/calloc.m40000644000000000000000000000601414273615122013064 00000000000000# calloc.m4 serial 29 # Copyright (C) 2004-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Jim Meyering. # Determine whether calloc (N, S) returns non-NULL when N*S is zero, # and returns NULL when N*S overflows. # If so, define HAVE_CALLOC. Otherwise, define calloc to rpl_calloc # and arrange to use a calloc wrapper function that does work in that case. # _AC_FUNC_CALLOC_IF([IF-WORKS], [IF-NOT]) # ------------------------------------- # If calloc is compatible with GNU calloc, run IF-WORKS, otherwise, IF-NOT. AC_DEFUN([_AC_FUNC_CALLOC_IF], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether calloc (0, n) and calloc (n, 0) return nonnull], [ac_cv_func_calloc_0_nonnull], [if test $cross_compiling != yes; then ac_cv_func_calloc_0_nonnull=yes AC_RUN_IFELSE( [AC_LANG_PROGRAM( [AC_INCLUDES_DEFAULT], [[int result = 0; char * volatile p = calloc (0, 0); if (!p) result |= 1; free (p); return result; ]])], [], [ac_cv_func_calloc_0_nonnull=no]) else case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # Guess yes on musl systems. *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # Guess yes on native Windows. mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;; esac fi ]) AS_CASE([$ac_cv_func_calloc_0_nonnull], [*yes], [$1], [$2]) ]) # gl_FUNC_CALLOC_GNU # ------------------ # Replace calloc if it is not compatible with GNU libc. AC_DEFUN([gl_FUNC_CALLOC_GNU], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_CALLOC_POSIX]) REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX" if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC_FOR_CALLOC_GNU=1]) fi ])# gl_FUNC_CALLOC_GNU # gl_FUNC_CALLOC_POSIX # -------------------- # Test whether 'calloc' is POSIX compliant (sets errno to ENOMEM when it # fails, and doesn't mess up with ptrdiff_t or size_t overflow), # and replace calloc if it is not. AC_DEFUN([gl_FUNC_CALLOC_POSIX], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_CALLOC_FOR_CALLOC_POSIX=1 fi dnl Although in theory we should also test for size_t overflow, dnl in practice testing for ptrdiff_t overflow suffices dnl since PTRDIFF_MAX <= SIZE_MAX on all known Gnulib porting targets. dnl A separate size_t test would slow down 'configure'. ]) shishi-1.0.3/lib/gl/m4/sys_uio_h.m40000644000000000000000000000310214273615123013624 00000000000000# sys_uio_h.m4 serial 3 dnl Copyright (C) 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_SYS_UIO_H], [ AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) dnl is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([sys/uio.h]) if test $ac_cv_header_sys_uio_h = yes; then HAVE_SYS_UIO_H=1 else HAVE_SYS_UIO_H=0 fi AC_SUBST([HAVE_SYS_UIO_H]) ]) # gl_SYS_UIO_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_UIO_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_UIO_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_UIO_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS], [ ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_UIO_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_UIO_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_UIO_H_DEFAULTS], [ ]) shishi-1.0.3/lib/gl/m4/stdlib_h.m40000644000000000000000000002332214273615122013420 00000000000000# stdlib_h.m4 serial 66 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_STDLIB_H], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) gl_NEXT_HEADERS([stdlib.h]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use, and which is not dnl guaranteed by C89. gl_WARN_ON_USE_PREPARE([[#include #if HAVE_SYS_LOADAVG_H /* OpenIndiana has a bug: must be included before . */ # include # include #endif #if HAVE_RANDOM_H # include #endif ]], [_Exit aligned_alloc atoll canonicalize_file_name free getloadavg getsubopt grantpt initstate initstate_r mbtowc mkdtemp mkostemp mkostemps mkstemp mkstemps posix_memalign posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtol strtold strtoll strtoul strtoull unlockpt unsetenv]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_DECLS_ONCE([ecvt]) if test $ac_cv_have_decl_ecvt = no; then HAVE_DECL_ECVT=0 fi AC_CHECK_DECLS_ONCE([fcvt]) if test $ac_cv_have_decl_fcvt = no; then HAVE_DECL_FCVT=0 fi AC_CHECK_DECLS_ONCE([gcvt]) if test $ac_cv_have_decl_gcvt = no; then HAVE_DECL_GCVT=0 fi ]) # gl_STDLIB_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_STDLIB_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_STDLIB_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_STDLIB_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDLIB_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB__EXIT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ALIGNED_ALLOC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATOLL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_GNU]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CANONICALIZE_FILE_NAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREE_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOADAVG]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSUBOPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GRANTPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_GNU]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBTOWC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDTEMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKOSTEMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKOSTEMPS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKSTEMP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKSTEMPS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POSIX_MEMALIGN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POSIX_OPENPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PTSNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PTSNAME_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTENV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_QSORT_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOCARRAY]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_GNU]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALPATH]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RPMATCH]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SECURE_GETENV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETENV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOUL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOULL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYSTEM_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLOCKPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNSETENV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCTOMB]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ECVT], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCVT], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GCVT], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MKTEMP], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_PUTENV], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STDLIB_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) ]) AC_DEFUN([gl_STDLIB_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE__EXIT=1; AC_SUBST([HAVE__EXIT]) HAVE_ALIGNED_ALLOC=1; AC_SUBST([HAVE_ALIGNED_ALLOC]) HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL]) HAVE_CANONICALIZE_FILE_NAME=1; AC_SUBST([HAVE_CANONICALIZE_FILE_NAME]) HAVE_DECL_ECVT=1; AC_SUBST([HAVE_DECL_ECVT]) HAVE_DECL_FCVT=1; AC_SUBST([HAVE_DECL_FCVT]) HAVE_DECL_GCVT=1; AC_SUBST([HAVE_DECL_GCVT]) HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG]) HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT]) HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT]) HAVE_INITSTATE=1; AC_SUBST([HAVE_INITSTATE]) HAVE_DECL_INITSTATE=1; AC_SUBST([HAVE_DECL_INITSTATE]) HAVE_MBTOWC=1; AC_SUBST([HAVE_MBTOWC]) HAVE_MKDTEMP=1; AC_SUBST([HAVE_MKDTEMP]) HAVE_MKOSTEMP=1; AC_SUBST([HAVE_MKOSTEMP]) HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS]) HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP]) HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS]) HAVE_POSIX_MEMALIGN=1; AC_SUBST([HAVE_POSIX_MEMALIGN]) HAVE_POSIX_OPENPT=1; AC_SUBST([HAVE_POSIX_OPENPT]) HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME]) HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R]) HAVE_QSORT_R=1; AC_SUBST([HAVE_QSORT_R]) HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM]) HAVE_RANDOM_H=1; AC_SUBST([HAVE_RANDOM_H]) HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) HAVE_REALLOCARRAY=1; AC_SUBST([HAVE_REALLOCARRAY]) HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) HAVE_RPMATCH=1; AC_SUBST([HAVE_RPMATCH]) HAVE_SECURE_GETENV=1; AC_SUBST([HAVE_SECURE_GETENV]) HAVE_SETENV=1; AC_SUBST([HAVE_SETENV]) HAVE_DECL_SETENV=1; AC_SUBST([HAVE_DECL_SETENV]) HAVE_SETSTATE=1; AC_SUBST([HAVE_SETSTATE]) HAVE_DECL_SETSTATE=1; AC_SUBST([HAVE_DECL_SETSTATE]) HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD]) HAVE_STRTOL=1; AC_SUBST([HAVE_STRTOL]) HAVE_STRTOLD=1; AC_SUBST([HAVE_STRTOLD]) HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL]) HAVE_STRTOUL=1; AC_SUBST([HAVE_STRTOUL]) HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV]) REPLACE_ALIGNED_ALLOC=0; AC_SUBST([REPLACE_ALIGNED_ALLOC]) REPLACE_CALLOC_FOR_CALLOC_GNU=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_GNU]) REPLACE_CALLOC_FOR_CALLOC_POSIX=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_POSIX]) REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) REPLACE_FREE=0; AC_SUBST([REPLACE_FREE]) REPLACE_INITSTATE=0; AC_SUBST([REPLACE_INITSTATE]) REPLACE_MALLOC_FOR_MALLOC_GNU=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_GNU]) REPLACE_MALLOC_FOR_MALLOC_POSIX=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_POSIX]) REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC]) REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) REPLACE_POSIX_MEMALIGN=0; AC_SUBST([REPLACE_POSIX_MEMALIGN]) REPLACE_PTSNAME=0; AC_SUBST([REPLACE_PTSNAME]) REPLACE_PTSNAME_R=0; AC_SUBST([REPLACE_PTSNAME_R]) REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV]) REPLACE_QSORT_R=0; AC_SUBST([REPLACE_QSORT_R]) REPLACE_RANDOM=0; AC_SUBST([REPLACE_RANDOM]) REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R]) REPLACE_REALLOC_FOR_REALLOC_GNU=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_GNU]) REPLACE_REALLOC_FOR_REALLOC_POSIX=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_POSIX]) REPLACE_REALLOCARRAY=0; AC_SUBST([REPLACE_REALLOCARRAY]) REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) REPLACE_SETSTATE=0; AC_SUBST([REPLACE_SETSTATE]) REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD]) REPLACE_STRTOL=0; AC_SUBST([REPLACE_STRTOL]) REPLACE_STRTOLD=0; AC_SUBST([REPLACE_STRTOLD]) REPLACE_STRTOLL=0; AC_SUBST([REPLACE_STRTOLL]) REPLACE_STRTOUL=0; AC_SUBST([REPLACE_STRTOUL]) REPLACE_STRTOULL=0; AC_SUBST([REPLACE_STRTOULL]) REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV]) REPLACE_WCTOMB=0; AC_SUBST([REPLACE_WCTOMB]) ]) shishi-1.0.3/lib/gl/m4/ftello.m40000644000000000000000000001050214273615122013111 00000000000000# ftello.m4 serial 14 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FTELLO], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([gl_STDIN_LARGE_OFFSET]) AC_REQUIRE([gl_SYS_TYPES_H]) dnl Persuade glibc to declare ftello(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS_ONCE([ftello]) if test $ac_cv_have_decl_ftello = no; then HAVE_DECL_FTELLO=0 fi AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello], [ AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[ftello (stdin);]])], [gl_cv_func_ftello=yes], [gl_cv_func_ftello=no]) ]) if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FTELLO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FTELLO=1 fi if test $REPLACE_FTELLO = 0; then dnl Detect bug on Solaris. dnl ftell and ftello produce incorrect results after putc that followed a dnl getc call that reached EOF on Solaris. This is because the _IOREAD dnl flag does not get cleared in this case, even though _IOWRT gets set, dnl and ftell and ftello look whether the _IOREAD flag is set. AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether ftello works], [gl_cv_func_ftello_works], [ dnl Initial guess, used when cross-compiling or when /dev/tty cannot dnl be opened. changequote(,)dnl case "$host_os" in # Guess no on Solaris. solaris*) gl_cv_func_ftello_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_ftello_works="guessing yes" ;; # Guess yes otherwise. *) gl_cv_func_ftello_works="guessing yes" ;; esac changequote([,])dnl AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include #define TESTFILE "conftest.tmp" int main (void) { FILE *fp; /* Create a file with some contents. */ fp = fopen (TESTFILE, "w"); if (fp == NULL) return 70; if (fwrite ("foogarsh", 1, 8, fp) < 8) { fclose (fp); return 71; } if (fclose (fp)) return 72; /* The file's contents is now "foogarsh". */ /* Try writing after reading to EOF. */ fp = fopen (TESTFILE, "r+"); if (fp == NULL) return 73; if (fseek (fp, -1, SEEK_END)) { fclose (fp); return 74; } if (!(getc (fp) == 'h')) { fclose (fp); return 1; } if (!(getc (fp) == EOF)) { fclose (fp); return 2; } if (!(ftell (fp) == 8)) { fclose (fp); return 3; } if (!(ftell (fp) == 8)) { fclose (fp); return 4; } if (!(putc ('!', fp) == '!')) { fclose (fp); return 5; } if (!(ftell (fp) == 9)) { fclose (fp); return 6; } if (!(fclose (fp) == 0)) return 7; fp = fopen (TESTFILE, "r"); if (fp == NULL) return 75; { char buf[10]; if (!(fread (buf, 1, 10, fp) == 9)) { fclose (fp); return 10; } if (!(memcmp (buf, "foogarsh!", 9) == 0)) { fclose (fp); return 11; } } if (!(fclose (fp) == 0)) return 12; /* The file's contents is now "foogarsh!". */ return 0; }]])], [gl_cv_func_ftello_works=yes], [gl_cv_func_ftello_works=no], [:]) ]) case "$gl_cv_func_ftello_works" in *yes) ;; *) REPLACE_FTELLO=1 AC_DEFINE([FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE], [1], [Define to 1 if the system's ftello function has the Solaris bug.]) ;; esac fi if test $REPLACE_FTELLO = 0; then dnl Detect bug on macOS >= 10.15. gl_FUNC_UNGETC_WORKS if test $gl_ftello_broken_after_ungetc = yes; then REPLACE_FTELLO=1 AC_DEFINE([FTELLO_BROKEN_AFTER_UNGETC], [1], [Define to 1 if the system's ftello function has the macOS bug.]) fi fi fi ]) # Prerequisites of lib/ftello.c. AC_DEFUN([gl_PREREQ_FTELLO], [ dnl Native Windows has the function _ftelli64. mingw hides it, but mingw64 dnl makes it usable again. AC_CHECK_FUNCS([_ftelli64]) ]) shishi-1.0.3/lib/gl/m4/sys_select_h.m40000644000000000000000000001020614273615122014311 00000000000000# sys_select_h.m4 serial 23 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_SYS_SELECT_H], [ AC_REQUIRE([gl_SYS_SELECT_H_DEFAULTS]) AC_REQUIRE([AC_C_RESTRICT]) AC_CACHE_CHECK([whether is self-contained], [gl_cv_header_sys_select_h_selfcontained], [ dnl Test against two bugs: dnl 1. On many platforms, assumes prior inclusion of dnl . dnl 2. On OSF/1 4.0, provides only a forward declaration dnl of 'struct timeval', and no definition of this type. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[struct timeval b;]])], [gl_cv_header_sys_select_h_selfcontained=yes], [gl_cv_header_sys_select_h_selfcontained=no]) dnl Test against another bug: dnl 3. On Solaris 10, provides an FD_ZERO implementation dnl that relies on memset(), but without including . if test $gl_cv_header_sys_select_h_selfcontained = yes; then AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[int memset; int bzero;]]) ], [AC_LINK_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[ #undef memset #define memset nonexistent_memset extern #ifdef __cplusplus "C" #endif void *memset (void *, int, unsigned long); #undef bzero #define bzero nonexistent_bzero extern #ifdef __cplusplus "C" #endif void bzero (void *, unsigned long); fd_set fds; FD_ZERO (&fds); ]]) ], [], [gl_cv_header_sys_select_h_selfcontained=no]) ]) fi ]) dnl is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([sys/select.h]) if test $ac_cv_header_sys_select_h = yes; then HAVE_SYS_SELECT_H=1 else HAVE_SYS_SELECT_H=0 fi AC_SUBST([HAVE_SYS_SELECT_H]) gl_PREREQ_SYS_H_WINSOCK2 dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ /* Some systems require prerequisite headers. */ #include #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H # include #endif #include ]], [pselect select]) ]) # gl_SYS_SELECT_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_SELECT_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_SELECT_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_SELECT_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_SELECT_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PSELECT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SELECT]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_SELECT_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_SELECT_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_SELECT_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_PSELECT=1; AC_SUBST([HAVE_PSELECT]) REPLACE_PSELECT=0; AC_SUBST([REPLACE_PSELECT]) REPLACE_SELECT=0; AC_SUBST([REPLACE_SELECT]) ]) shishi-1.0.3/lib/gl/m4/af_alg.m40000644000000000000000000000403314273615122013037 00000000000000# af_alg.m4 serial 6 dnl Copyright 2018-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Matteo Croce. AC_DEFUN_ONCE([gl_AF_ALG], [ AC_REQUIRE([gl_SYS_SOCKET_H]) AC_REQUIRE([AC_C_INLINE]) dnl Check whether linux/if_alg.h has needed features. AC_CACHE_CHECK([whether linux/if_alg.h has struct sockaddr_alg.], [gl_cv_header_linux_if_alg_salg], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include #include struct sockaddr_alg salg = { .salg_family = AF_ALG, .salg_type = "hash", .salg_name = "sha1", };]])], [gl_cv_header_linux_if_alg_salg=yes], [gl_cv_header_linux_if_alg_salg=no])]) if test "$gl_cv_header_linux_if_alg_salg" = yes; then AC_DEFINE([HAVE_LINUX_IF_ALG_H], [1], [Define to 1 if you have 'struct sockaddr_alg' defined.]) fi dnl The default is to not use AF_ALG if available, dnl as it's system dependent as to whether the kernel dnl routines are faster than libcrypto for example. use_af_alg=no AC_ARG_WITH([linux-crypto], [AS_HELP_STRING([[--with-linux-crypto]], [use Linux kernel cryptographic API (if available) for the hash functions MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 on files])], [use_af_alg=$withval], [use_af_alg=no]) dnl We cannot use it if it is not available. if test "$gl_cv_header_linux_if_alg_salg" != yes; then if test "$use_af_alg" != no; then AC_MSG_WARN([Linux kernel cryptographic API not found]) fi use_af_alg=no fi if test "$use_af_alg" != no; then USE_AF_ALG=1 else USE_AF_ALG=0 fi AC_DEFINE_UNQUOTED([USE_LINUX_CRYPTO_API], [$USE_AF_ALG], [Define to 1 if you want to use the Linux kernel cryptographic API.]) ]) shishi-1.0.3/lib/gl/m4/include_next.m40000644000000000000000000002103414273615122014307 00000000000000# include_next.m4 serial 26 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert and Derek Price. dnl Sets INCLUDE_NEXT, INCLUDE_NEXT_AS_FIRST_DIRECTIVE, PRAGMA_SYSTEM_HEADER, dnl and PRAGMA_COLUMNS. dnl dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to dnl 'include' otherwise. dnl dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler dnl supports it in the special case that it is the first include directive in dnl the given file, or to 'include' otherwise. dnl dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next, dnl so as to avoid GCC warnings when the gcc option -pedantic is used. dnl '#pragma GCC system_header' has the same effect as if the file was found dnl through the include search path specified with '-isystem' options (as dnl opposed to the search path specified with '-I' options). Namely, gcc dnl does not warn about some things, and on some systems (Solaris and Interix) dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead dnl of plain '__STDC__'. dnl dnl PRAGMA_COLUMNS can be used in files that override system header files, so dnl as to avoid compilation errors on HP NonStop systems when the gnulib file dnl is included by a system header file that does a "#pragma COLUMNS 80" (which dnl has the effect of truncating the lines of that file and all files that it dnl includes to 80 columns) and the gnulib file has lines longer than 80 dnl columns. AC_DEFUN([gl_INCLUDE_NEXT], [ AC_LANG_PREPROC_REQUIRE() AC_CACHE_CHECK([whether the preprocessor supports include_next], [gl_cv_have_include_next], [rm -rf conftestd1a conftestd1b conftestd2 mkdir conftestd1a conftestd1b conftestd2 dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on dnl AIX 6.1 support include_next when used as first preprocessor directive dnl in a file, but not when preceded by another include directive. Check dnl for this bug by including . dnl Additionally, with this same compiler, include_next is a no-op when dnl used in a header file that was included by specifying its absolute dnl file name. Despite these two bugs, include_next is used in the dnl compiler's . By virtue of the second bug, we need to use dnl include_next as well in this case. cat < conftestd1a/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd1b/conftest.h #define DEFINED_IN_CONFTESTD1 #include #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" dnl We intentionally avoid using AC_LANG_SOURCE here. AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include ]], [gl_cv_have_include_next=yes], [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include ]], [gl_cv_have_include_next=buggy], [gl_cv_have_include_next=no]) ]) CPPFLAGS="$gl_save_CPPFLAGS" rm -rf conftestd1a conftestd1b conftestd2 ]) PRAGMA_SYSTEM_HEADER= if test $gl_cv_have_include_next = yes; then INCLUDE_NEXT=include_next INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next if test -n "$GCC"; then PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' fi else if test $gl_cv_have_include_next = buggy; then INCLUDE_NEXT=include INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next else INCLUDE_NEXT=include INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include fi fi AC_SUBST([INCLUDE_NEXT]) AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE]) AC_SUBST([PRAGMA_SYSTEM_HEADER]) dnl HP NonStop systems, which define __TANDEM, limit the line length dnl after including some system header files. AC_CACHE_CHECK([whether source code line length is unlimited], [gl_cv_source_line_length_unlimited], [AC_EGREP_CPP([choke me], [ #ifdef __TANDEM choke me #endif ], [gl_cv_source_line_length_unlimited=no], [gl_cv_source_line_length_unlimited=yes]) ]) if test $gl_cv_source_line_length_unlimited = no; then PRAGMA_COLUMNS="#pragma COLUMNS 10000" else PRAGMA_COLUMNS= fi AC_SUBST([PRAGMA_COLUMNS]) ]) # gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...) # ------------------------------------------ # For each arg foo.h, if #include_next works, define NEXT_FOO_H to be # ''; otherwise define it to be # '"///usr/include/foo.h"', or whatever other absolute file name is suitable. # Also, if #include_next works as first preprocessing directive in a file, # define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be ''; otherwise define it to # be # '"///usr/include/foo.h"', or whatever other absolute file name is suitable. # That way, a header file with the following line: # #@INCLUDE_NEXT@ @NEXT_FOO_H@ # or # #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@ # behaves (after sed substitution) as if it contained # #include_next # even if the compiler does not support include_next. # The three "///" are to pacify Sun C 5.8, which otherwise would say # "warning: #include of /usr/include/... may be non-portable". # Use '""', not '<>', so that the /// cannot be confused with a C99 comment. # Note: This macro assumes that the header file is not empty after # preprocessing, i.e. it does not only define preprocessor macros but also # provides some type/enum definitions or function/variable declarations. # # This macro also checks whether each header exists, by invoking # AC_CHECK_HEADERS_ONCE or AC_CHECK_HEADERS on each argument. AC_DEFUN([gl_CHECK_NEXT_HEADERS], [ gl_NEXT_HEADERS_INTERNAL([$1], [check]) ]) # gl_NEXT_HEADERS(HEADER1 HEADER2 ...) # ------------------------------------ # Like gl_CHECK_NEXT_HEADERS, except do not check whether the headers exist. # This is suitable for headers like that are standardized by C89 # and therefore can be assumed to exist. AC_DEFUN([gl_NEXT_HEADERS], [ gl_NEXT_HEADERS_INTERNAL([$1], [assume]) ]) # The guts of gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. AC_DEFUN([gl_NEXT_HEADERS_INTERNAL], [ AC_REQUIRE([gl_INCLUDE_NEXT]) AC_REQUIRE([AC_CANONICAL_HOST]) m4_if([$2], [check], [AC_CHECK_HEADERS_ONCE([$1]) ]) m4_foreach_w([gl_HEADER_NAME], [$1], [AS_VAR_PUSHDEF([gl_next_header], [gl_cv_next_]m4_defn([gl_HEADER_NAME])) if test $gl_cv_have_include_next = yes; then AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) else AC_CACHE_CHECK( [absolute name of <]m4_defn([gl_HEADER_NAME])[>], [gl_next_header], [m4_if([$2], [check], [AS_VAR_PUSHDEF([gl_header_exists], [ac_cv_header_]m4_defn([gl_HEADER_NAME])) if test AS_VAR_GET([gl_header_exists]) = yes; then AS_VAR_POPDEF([gl_header_exists]) ]) gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME) AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME)) AS_VAR_SET([gl_next_header], ['"'$gl_header'"']) m4_if([$2], [check], [else AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) fi ]) ]) fi AC_SUBST( AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), [AS_VAR_GET([gl_next_header])]) if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'gl_HEADER_NAME'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=AS_VAR_GET([gl_next_header]) fi AC_SUBST( AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])), [$gl_next_as_first_directive]) AS_VAR_POPDEF([gl_next_header])]) ]) # Autoconf 2.68 added warnings for our use of AC_COMPILE_IFELSE; # this fallback is safe for all earlier autoconf versions. m4_define_default([AC_LANG_DEFINES_PROVIDED]) shishi-1.0.3/lib/gl/m4/gc-md5.m40000644000000000000000000000061214273615122012701 00000000000000# gc-md5.m4 serial 2 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC_MD5], [ AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" != yes; then gl_MD5 fi ]) shishi-1.0.3/lib/gl/m4/inttypes_h.m40000644000000000000000000000177414273615122014025 00000000000000# inttypes_h.m4 serial 10 dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[uintmax_t i = (uintmax_t) -1; return !i;]])], [gl_cv_header_inttypes_h=yes], [gl_cv_header_inttypes_h=no])]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) shishi-1.0.3/lib/gl/m4/clock_time.m40000644000000000000000000000255514273615122013746 00000000000000# clock_time.m4 serial 11 dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Check for clock_getres, clock_gettime and clock_settime, # and set LIB_CLOCK_GETTIME. # For a program named, say foo, you should add a line like the following # in the corresponding Makefile.am file: # foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) AC_DEFUN([gl_CLOCK_TIME], [ dnl Persuade glibc and Solaris to declare these functions. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* # programs in the package would end up linked with that potentially-shared # library, inducing unnecessary run-time overhead. LIB_CLOCK_GETTIME= AC_SUBST([LIB_CLOCK_GETTIME]) gl_saved_libs=$LIBS AC_SEARCH_LIBS([clock_gettime], [rt posix4], [test "$ac_cv_search_clock_gettime" = "none required" || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) AC_CHECK_FUNCS([clock_getres clock_gettime clock_settime]) LIBS=$gl_saved_libs ]) shishi-1.0.3/lib/gl/m4/rawmemchr.m40000644000000000000000000000116314273615122013614 00000000000000# rawmemchr.m4 serial 3 dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_RAWMEMCHR], [ dnl Persuade glibc to declare rawmemchr(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_CHECK_FUNCS([rawmemchr]) if test $ac_cv_func_rawmemchr = no; then HAVE_RAWMEMCHR=0 fi ]) # Prerequisites of lib/strchrnul.c. AC_DEFUN([gl_PREREQ_RAWMEMCHR], [:]) shishi-1.0.3/lib/gl/m4/lseek.m40000644000000000000000000000457514273615122012744 00000000000000# lseek.m4 serial 12 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_LSEEK], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_CC]) AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CACHE_CHECK([whether lseek detects pipes], [gl_cv_func_lseek_pipe], [case "$host_os" in mingw*) dnl Native Windows. dnl The result of lseek (fd, (off_t)0, SEEK_CUR) or dnl SetFilePointer(handle, 0, NULL, FILE_CURRENT) dnl for a pipe depends on the environment: In a Cygwin 1.5 dnl environment it succeeds (wrong); in a Cygwin 1.7 environment dnl it fails with a wrong errno value. gl_cv_func_lseek_pipe=no ;; *) if test $cross_compiling = no; then AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include /* for off_t */ #include /* for SEEK_CUR */ #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif ]GL_MDA_DEFINES], [[ /* Exit with success only if stdin is seekable. */ return lseek (0, (off_t)0, SEEK_CUR) < 0; ]])], [if test -s conftest$ac_exeext \ && ./conftest$ac_exeext < conftest.$ac_ext \ && test 1 = "`echo hi \ | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then gl_cv_func_lseek_pipe=yes else gl_cv_func_lseek_pipe=no fi ], [gl_cv_func_lseek_pipe=no]) else AC_COMPILE_IFELSE( [AC_LANG_SOURCE([[ #if defined __BEOS__ /* BeOS mistakenly return 0 when trying to seek on pipes. */ Choke me. #endif]])], [gl_cv_func_lseek_pipe=yes], [gl_cv_func_lseek_pipe=no]) fi ;; esac ]) if test "$gl_cv_func_lseek_pipe" = no; then REPLACE_LSEEK=1 AC_DEFINE([LSEEK_PIPE_BROKEN], [1], [Define to 1 if lseek does not detect pipes.]) fi AC_REQUIRE([gl_SYS_TYPES_H]) if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_LSEEK=1 fi dnl macOS SEEK_DATA is incompatible with other platforms. case $host_os in darwin*) REPLACE_LSEEK=1;; esac ]) shishi-1.0.3/lib/gl/m4/getrandom.m40000644000000000000000000000412514273615122013610 00000000000000# getrandom.m4 serial 8 dnl Copyright 2020-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. AC_DEFUN([gl_FUNC_GETRANDOM], [ AC_REQUIRE([gl_SYS_RANDOM_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([getrandom]) if test "$ac_cv_func_getrandom" != yes; then HAVE_GETRANDOM=0 else dnl On Solaris 11.4 the return type is 'int', not 'ssize_t'. AC_CACHE_CHECK([whether getrandom is compatible with its GNU+BSD signature], [gl_cv_func_getrandom_ok], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[/* Additional includes are needed before on uClibc and Mac OS X. */ #include #include #include ssize_t getrandom (void *, size_t, unsigned int); ]], [[]]) ], [gl_cv_func_getrandom_ok=yes], [gl_cv_func_getrandom_ok=no]) ]) if test $gl_cv_func_getrandom_ok = no; then REPLACE_GETRANDOM=1 fi fi case "$host_os" in mingw*) AC_CHECK_HEADERS([bcrypt.h], [], [], [[#include ]]) AC_CACHE_CHECK([whether the bcrypt library is guaranteed to be present], [gl_cv_lib_assume_bcrypt], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[#if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7) cannot assume it #endif ]]) ], [gl_cv_lib_assume_bcrypt=yes], [gl_cv_lib_assume_bcrypt=no]) ]) if test $gl_cv_lib_assume_bcrypt = yes; then AC_DEFINE([HAVE_LIB_BCRYPT], [1], [Define to 1 if the bcrypt library is guaranteed to be present.]) LIB_GETRANDOM='-lbcrypt' else LIB_GETRANDOM='-ladvapi32' fi ;; *) LIB_GETRANDOM= ;; esac AC_SUBST([LIB_GETRANDOM]) ]) shishi-1.0.3/lib/gl/m4/vasprintf.m40000644000000000000000000000210014273615123013634 00000000000000# vasprintf.m4 serial 6 dnl Copyright (C) 2002-2003, 2006-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_VASPRINTF], [ AC_CHECK_FUNCS([vasprintf]) if test $ac_cv_func_vasprintf = no; then gl_REPLACE_VASPRINTF fi ]) AC_DEFUN([gl_REPLACE_VASPRINTF], [ AC_LIBOBJ([vasprintf]) AC_LIBOBJ([asprintf]) AC_REQUIRE([gl_STDIO_H_DEFAULTS]) if test $ac_cv_func_vasprintf = yes; then REPLACE_VASPRINTF=1 else HAVE_VASPRINTF=0 fi gl_PREREQ_VASPRINTF_H gl_PREREQ_VASPRINTF gl_PREREQ_ASPRINTF ]) # Prerequisites of the vasprintf portion of lib/stdio.h. AC_DEFUN([gl_PREREQ_VASPRINTF_H], [ dnl Persuade glibc to declare asprintf() and vasprintf(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) ]) # Prerequisites of lib/vasprintf.c. AC_DEFUN([gl_PREREQ_VASPRINTF], [ ]) # Prerequisites of lib/asprintf.c. AC_DEFUN([gl_PREREQ_ASPRINTF], [ ]) shishi-1.0.3/lib/gl/m4/getsubopt.m40000644000000000000000000000117614273615122013647 00000000000000# getsubopt.m4 serial 5 dnl Copyright (C) 2004, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_GETSUBOPT], [ dnl Persuade glibc to declare getsubopt(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) AC_CHECK_FUNCS_ONCE([getsubopt]) if test $ac_cv_func_getsubopt = no; then HAVE_GETSUBOPT=0 fi ]) # Prerequisites of lib/getsubopt.c. AC_DEFUN([gl_PREREQ_GETSUBOPT], [:]) shishi-1.0.3/lib/gl/m4/getline.m40000644000000000000000000000637414273615122013267 00000000000000# getline.m4 serial 30 dnl Copyright (C) 1998-2003, 2005-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_PREREQ([2.59]) dnl See if there's a working, system-supplied version of the getline function. dnl We can't just do AC_REPLACE_FUNCS([getline]) because some systems dnl have a function by that name in -linet that doesn't have anything dnl to do with the function we need. AC_DEFUN([gl_FUNC_GETLINE], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Persuade glibc to declare getline(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_DECLS_ONCE([getline]) gl_getline_needs_run_time_check=no AC_CHECK_FUNC([getline], [dnl Found it in some library. Verify that it works. gl_getline_needs_run_time_check=yes], [am_cv_func_working_getline=no]) if test $gl_getline_needs_run_time_check = yes; then AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline], [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data AC_RUN_IFELSE([AC_LANG_SOURCE([[ # include # include # include int main () { FILE *in = fopen ("./conftest.data", "r"); if (!in) return 1; { /* Test result for a NULL buffer and a zero size. Based on a test program from Karl Heuer. */ char *line = NULL; size_t siz = 0; int len = getline (&line, &siz, in); if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) { free (line); fclose (in); return 2; } free (line); } { /* Test result for a NULL buffer and a non-zero size. This crashes on FreeBSD 8.0. */ char *line = NULL; size_t siz = (size_t)(~0) / 4; if (getline (&line, &siz, in) == -1) { fclose (in); return 3; } free (line); } fclose (in); return 0; } ]])], [am_cv_func_working_getline=yes], [am_cv_func_working_getline=no], [dnl We're cross compiling. dnl Guess it works on glibc2 systems and musl systems. AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif ], [am_cv_func_working_getline="guessing yes"], [case "$host_os" in *-musl*) am_cv_func_working_getline="guessing yes" ;; *) am_cv_func_working_getline="$gl_cross_guess_normal" ;; esac ]) ]) ]) fi if test $ac_cv_have_decl_getline = no; then HAVE_DECL_GETLINE=0 fi case "$am_cv_func_working_getline" in *yes) ;; *) dnl Set REPLACE_GETLINE always: Even if we have not found the broken dnl getline function among $LIBS, it may exist in libinet and the dnl executable may be linked with -linet. REPLACE_GETLINE=1 ;; esac ]) # Prerequisites of lib/getline.c. AC_DEFUN([gl_PREREQ_GETLINE], [ : ]) shishi-1.0.3/lib/gl/m4/freading.m40000644000000000000000000000061014273615122013402 00000000000000# freading.m4 serial 2 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FREADING], [ AC_CHECK_HEADERS_ONCE([stdio_ext.h]) AC_CHECK_FUNCS_ONCE([__freading]) ]) shishi-1.0.3/lib/gl/m4/tm_gmtoff.m40000644000000000000000000000103514273615123013610 00000000000000# tm_gmtoff.m4 serial 3 dnl Copyright (C) 2002, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_TM_GMTOFF], [ AC_CHECK_MEMBER([struct tm.tm_gmtoff], [AC_DEFINE([HAVE_TM_GMTOFF], [1], [Define if struct tm has the tm_gmtoff member.])], , [#include ]) ]) shishi-1.0.3/lib/gl/m4/gettimeofday.m40000644000000000000000000000530214273615122014307 00000000000000# serial 29 # Copyright (C) 2001-2003, 2005, 2007, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl From Jim Meyering. AC_DEFUN([gl_FUNC_GETTIMEOFDAY], [ AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_SYS_TIME_H]) AC_CHECK_FUNCS_ONCE([gettimeofday]) gl_gettimeofday_timezone=void if test $ac_cv_func_gettimeofday != yes; then HAVE_GETTIMEOFDAY=0 else AC_CACHE_CHECK([for gettimeofday with POSIX signature], [gl_cv_func_gettimeofday_posix_signature], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include struct timeval c; int gettimeofday (struct timeval *restrict, void *restrict); ]], [[/* glibc uses struct timezone * rather than the POSIX void * if _GNU_SOURCE is defined. However, since the only portable use of gettimeofday uses NULL as the second parameter, and since the glibc definition is actually more typesafe, it is not worth wrapping this to get a compliant signature. */ int (*f) (struct timeval *restrict, void *restrict) = gettimeofday; int x = f (&c, 0); return !(x | c.tv_sec | c.tv_usec); ]])], [gl_cv_func_gettimeofday_posix_signature=yes], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include int gettimeofday (struct timeval *restrict, struct timezone *restrict); ]])], [gl_cv_func_gettimeofday_posix_signature=almost], [gl_cv_func_gettimeofday_posix_signature=no])])]) if test $gl_cv_func_gettimeofday_posix_signature = almost; then gl_gettimeofday_timezone='struct timezone' elif test $gl_cv_func_gettimeofday_posix_signature != yes; then REPLACE_GETTIMEOFDAY=1 fi dnl If we override 'struct timeval', we also have to override gettimeofday. if test $REPLACE_STRUCT_TIMEVAL = 1; then REPLACE_GETTIMEOFDAY=1 fi dnl On mingw, the original gettimeofday has only a precision of 15.6 dnl milliseconds. So override it. case "$host_os" in mingw*) REPLACE_GETTIMEOFDAY=1 ;; esac fi AC_DEFINE_UNQUOTED([GETTIMEOFDAY_TIMEZONE], [$gl_gettimeofday_timezone], [Define this to 'void' or 'struct timezone' to match the system's declaration of the second argument to gettimeofday.]) ]) # Prerequisites of lib/gettimeofday.c. AC_DEFUN([gl_PREREQ_GETTIMEOFDAY], [:]) shishi-1.0.3/lib/gl/m4/ungetc.m40000644000000000000000000000530714273615123013121 00000000000000# ungetc.m4 serial 10 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_FUNC_UNGETC_WORKS], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CACHE_CHECK([whether ungetc works on arbitrary bytes], [gl_cv_func_ungetc_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include ]], [[FILE *f; if (!(f = fopen ("conftest.tmp", "w+"))) return 1; if (fputs ("abc", f) < 0) { fclose (f); return 2; } rewind (f); if (fgetc (f) != 'a') { fclose (f); return 3; } if (fgetc (f) != 'b') { fclose (f); return 4; } if (ungetc ('d', f) != 'd') { fclose (f); return 5; } if (ftell (f) != 1) { fclose (f); return 6; } if (fgetc (f) != 'd') { fclose (f); return 7; } if (ftell (f) != 2) { fclose (f); return 8; } if (fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 9; } if (ftell (f) != 2) { fclose (f); return 10; } if (fgetc (f) != 'c') { fclose (f); return 11; } fclose (f); remove ("conftest.tmp"); ]])], [gl_cv_func_ungetc_works=yes], [gl_cv_func_ungetc_works=no], [case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on bionic systems. *-android*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_ungetc_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;; esac ]) ]) gl_ftello_broken_after_ungetc=no case "$gl_cv_func_ungetc_works" in *yes) ;; *) dnl On macOS >= 10.15, where the above program fails with exit code 6, dnl we fix it through an ftello override. case "$host_os" in darwin*) gl_ftello_broken_after_ungetc=yes ;; *) AC_DEFINE([FUNC_UNGETC_BROKEN], [1], [Define to 1 if ungetc is broken when used on arbitrary bytes.]) ;; esac ;; esac ]) shishi-1.0.3/lib/gl/m4/time_rz.m40000644000000000000000000000343614273615123013306 00000000000000dnl Time zone functions: tzalloc, localtime_rz, etc. dnl Copyright (C) 2015-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. AC_DEFUN([gl_TIME_RZ], [ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_TIME_H_DEFAULTS]) AC_REQUIRE([AC_STRUCT_TIMEZONE]) # On Mac OS X 10.6, localtime loops forever with some time_t values. # See Bug#27706, Bug#27736, and # https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html AC_CACHE_CHECK([whether localtime works even near extrema], [gl_cv_func_localtime_works], [gl_cv_func_localtime_works=yes AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include #include ]], [[ time_t t = -67768038400666600; struct tm *tm; char *tz = getenv ("TZ"); if (! (tz && strcmp (tz, "QQQ0") == 0)) return 0; alarm (2); tm = localtime (&t); /* Use TM and *TM to suppress over-optimization. */ return tm && tm->tm_isdst; ]])], [(TZ=QQQ0 ./conftest$EXEEXT) >/dev/null 2>&1 || gl_cv_func_localtime_works=no], [], [gl_cv_func_localtime_works="guessing yes"])]) if test "$gl_cv_func_localtime_works" = no; then AC_DEFINE([HAVE_LOCALTIME_INFLOOP_BUG], 1, [Define if localtime-like functions can loop forever on extreme arguments.]) fi AC_CHECK_TYPES([timezone_t], [], [], [[#include ]]) if test "$ac_cv_type_timezone_t" = yes; then HAVE_TIMEZONE_T=1 fi ]) shishi-1.0.3/lib/gl/m4/tzset.m40000644000000000000000000000075414273615123013006 00000000000000# serial 16 # Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert and Jim Meyering. AC_DEFUN([gl_FUNC_TZSET], [ AC_REQUIRE([gl_TIME_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) REPLACE_TZSET=0 case "$host_os" in mingw*) REPLACE_TZSET=1 ;; esac ]) shishi-1.0.3/lib/gl/m4/lib-ld.m40000644000000000000000000001237014273615122012774 00000000000000# lib-ld.m4 serial 10 dnl Copyright (C) 1996-2003, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid dnl collision with libtool.m4. dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 /dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi if test -n "$LD"; then AC_MSG_CHECKING([for ld]) elif test "$GCC" = yes; then AC_MSG_CHECKING([for ld used by $CC]) elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi if test -n "$LD"; then # Let the user override the test with a path. : else AC_CACHE_VAL([acl_cv_path_LD], [ acl_cv_path_LD= # Final result of this test ac_prog=ld # Program to search in $PATH if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) acl_output=`($CC -print-prog-name=ld) 2>&5` ;; esac case $acl_output in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` done # Got the pathname. No search in PATH is needed. acl_cv_path_LD="$acl_output" ac_prog= ;; "") # If it fails, then pretend we aren't using GCC. ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 #include int main () { FILE *fp = fopen ("conftest.sl/", "w"); int result = (fp != NULL); if (fp != NULL) fclose (fp); return result; }]])], [gl_cv_func_fopen_slash=yes], [gl_cv_func_fopen_slash=no], [ changequote(,)dnl case "$host_os" in aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) gl_cv_func_fopen_slash="guessing no" ;; *) gl_cv_func_fopen_slash="guessing yes" ;; esac changequote([,])dnl ]) rm -f conftest.sl ]) ;; esac case "$gl_cv_func_fopen_slash" in *no) AC_DEFINE([FOPEN_TRAILING_SLASH_BUG], [1], [Define to 1 if fopen() fails to recognize a trailing slash.]) REPLACE_FOPEN=1 ;; esac ]) AC_DEFUN([gl_FUNC_FOPEN_GNU], [ AC_REQUIRE([gl_FUNC_FOPEN]) AC_CACHE_CHECK([whether fopen supports the mode character 'x'], [gl_cv_func_fopen_mode_x], [rm -f conftest.x AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include int main () { FILE *fp; fp = fopen ("conftest.x", "w"); fclose (fp); fp = fopen ("conftest.x", "wx"); if (fp != NULL) /* 'x' ignored */ return 1; else if (errno == EEXIST) return 0; else /* 'x' rejected */ return 2; }]])], [gl_cv_func_fopen_mode_x=yes], [gl_cv_func_fopen_mode_x=no], [case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) gl_cv_func_fopen_mode_x="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.x ]) AC_CACHE_CHECK([whether fopen supports the mode character 'e'], [gl_cv_func_fopen_mode_e], [echo foo > conftest.x AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include ]GL_MDA_DEFINES[ int main () { FILE *fp = fopen ("conftest.x", "re"); if (fp != NULL) { if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC) return 0; else /* 'e' ignored */ return 1; } else /* 'e' rejected */ return 2; }]])], [gl_cv_func_fopen_mode_e=yes], [gl_cv_func_fopen_mode_e=no], [case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) gl_cv_func_fopen_mode_e="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_fopen_mode_e="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;; esac ]) rm -f conftest.x ]) REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN" case "$gl_cv_func_fopen_mode_x" in *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; esac case "$gl_cv_func_fopen_mode_e" in *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; esac ]) # Prerequisites of lib/fopen.c. AC_DEFUN([gl_PREREQ_FOPEN], [:]) shishi-1.0.3/lib/gl/m4/largefile.m40000644000000000000000000001520014273615122013556 00000000000000# Enable large files on systems where this is not the default. # Enable support for files on Linux file systems with 64-bit inode numbers. # Copyright 1992-1996, 1998-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # The following macro works around a problem in Autoconf's AC_FUNC_FSEEKO: # It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this # setting of _LARGEFILE_SOURCE is needed so that declares fseeko # and ftello in C++ mode as well. AC_DEFUN([gl_SET_LARGEFILE_SOURCE], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_FUNC_FSEEKO case "$host_os" in hpux*) AC_DEFINE([_LARGEFILE_SOURCE], [1], [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).]) ;; esac ]) # Work around a problem in Autoconf through at least 2.71 on glibc 2.34+ # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, # or configures them incorrectly in some cases. m4_version_prereq([2.70], [], [ # _AC_SYS_LARGEFILE_TEST_INCLUDES # ------------------------------- m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], [#include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]];[]dnl ]) ])# m4_version_prereq 2.70 # _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, # CACHE-VAR, # DESCRIPTION, # PROLOGUE, [FUNCTION-BODY]) # -------------------------------------------------------- m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE], [AC_CACHE_CHECK([for $1 value needed for large files], [$3], [while :; do m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( [AC_LANG_PROGRAM([$5], [$6])], [$3=no; break]) m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( [AC_LANG_PROGRAM([#undef $1 #define $1 $2 $5], [$6])], [$3=$2; break]) $3=unknown break done]) case $$3 in #( no | unknown) ;; *) AC_DEFINE_UNQUOTED([$1], [$$3], [$4]);; esac rm -rf conftest*[]dnl ])# _AC_SYS_LARGEFILE_MACRO_VALUE # AC_SYS_LARGEFILE # ---------------- # By default, many hosts won't let programs access large files; # one must use special compiler options to get large-file access to work. # For more details about this brain damage please see: # http://www.unix.org/version2/whatsnew/lfs20mar.html # Additionally, on Linux file systems with 64-bit inodes a file that happens # to have a 64-bit inode number cannot be accessed by 32-bit applications on # Linux x86/x86_64. This can occur with file systems such as XFS and NFS. AC_DEFUN([AC_SYS_LARGEFILE], [AC_ARG_ENABLE(largefile, [ --disable-largefile omit support for large files]) AS_IF([test "$enable_largefile" != no], [AC_CACHE_CHECK([for special C compiler options needed for large files], ac_cv_sys_largefile_CC, [ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) AC_COMPILE_IFELSE([], [break]) CC="$CC -n32" AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) break done CC=$ac_save_CC rm -f conftest.$ac_ext fi]) if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi _AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64, ac_cv_sys_file_offset_bits, [Number of bits in a file offset, on hosts where this is settable.], [_AC_SYS_LARGEFILE_TEST_INCLUDES]) AS_CASE([$ac_cv_sys_file_offset_bits], [unknown], [_AC_SYS_LARGEFILE_MACRO_VALUE([_LARGE_FILES], [1], [ac_cv_sys_large_files], [Define for large files, on AIX-style hosts.], [_AC_SYS_LARGEFILE_TEST_INCLUDES])], [64], [gl_YEAR2038_BODY([])])]) ])# AC_SYS_LARGEFILE # Enable large files on systems where this is implemented by Gnulib, not by the # system headers. # Set the variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE if Gnulib # overrides ensure that off_t or 'struct size.st_size' are 64-bit, respectively. AC_DEFUN([gl_LARGEFILE], [ AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in mingw*) dnl Native Windows. dnl mingw64 defines off_t to a 64-bit type already, if dnl _FILE_OFFSET_BITS=64, which is ensured by AC_SYS_LARGEFILE. AC_CACHE_CHECK([for 64-bit off_t], [gl_cv_type_off_t_64], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; ]], [[]])], [gl_cv_type_off_t_64=yes], [gl_cv_type_off_t_64=no]) ]) if test $gl_cv_type_off_t_64 = no; then WINDOWS_64_BIT_OFF_T=1 else WINDOWS_64_BIT_OFF_T=0 fi dnl Some mingw versions define, if _FILE_OFFSET_BITS=64, 'struct stat' dnl to 'struct _stat32i64' or 'struct _stat64' (depending on dnl _USE_32BIT_TIME_T), which has a 32-bit st_size member. AC_CACHE_CHECK([for 64-bit st_size], [gl_cv_member_st_size_64], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include struct stat buf; int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; ]], [[]])], [gl_cv_member_st_size_64=yes], [gl_cv_member_st_size_64=no]) ]) if test $gl_cv_member_st_size_64 = no; then WINDOWS_64_BIT_ST_SIZE=1 else WINDOWS_64_BIT_ST_SIZE=0 fi ;; *) dnl Nothing to do on gnulib's side. dnl A 64-bit off_t is dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX, dnl OSF/1, Cygwin, dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on dnl glibc, HP-UX, Solaris, dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX, dnl - impossible to achieve on Minix 3.1.8. WINDOWS_64_BIT_OFF_T=0 WINDOWS_64_BIT_ST_SIZE=0 ;; esac ]) shishi-1.0.3/lib/gl/m4/strverscmp.m40000644000000000000000000000117714273615122014044 00000000000000# strverscmp.m4 serial 9 dnl Copyright (C) 2002, 2005-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRVERSCMP], [ dnl Persuade glibc to declare strverscmp(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_CHECK_FUNCS([strverscmp]) if test $ac_cv_func_strverscmp = no; then HAVE_STRVERSCMP=0 fi ]) # Prerequisites of lib/strverscmp.c. AC_DEFUN([gl_PREREQ_STRVERSCMP], [ : ]) shishi-1.0.3/lib/gl/m4/netinet_in_h.m40000644000000000000000000000175314273615122014277 00000000000000# netinet_in_h.m4 serial 6 dnl Copyright (C) 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_HEADER_NETINET_IN], [ AC_CACHE_CHECK([whether is self-contained], [gl_cv_header_netinet_in_h_selfcontained], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], [gl_cv_header_netinet_in_h_selfcontained=yes], [gl_cv_header_netinet_in_h_selfcontained=no]) ]) if test $gl_cv_header_netinet_in_h_selfcontained = yes; then GL_GENERATE_NETINET_IN_H=false else GL_GENERATE_NETINET_IN_H=true AC_CHECK_HEADERS([netinet/in.h]) gl_CHECK_NEXT_HEADERS([netinet/in.h]) if test $ac_cv_header_netinet_in_h = yes; then HAVE_NETINET_IN_H=1 else HAVE_NETINET_IN_H=0 fi AC_SUBST([HAVE_NETINET_IN_H]) fi ]) shishi-1.0.3/lib/gl/m4/minmax.m40000644000000000000000000000245514273615122013125 00000000000000# minmax.m4 serial 4 dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_PREREQ([2.53]) AC_DEFUN([gl_MINMAX], [ AC_REQUIRE([gl_PREREQ_MINMAX]) ]) # Prerequisites of lib/minmax.h. AC_DEFUN([gl_PREREQ_MINMAX], [ gl_MINMAX_IN_HEADER([limits.h]) gl_MINMAX_IN_HEADER([sys/param.h]) ]) dnl gl_MINMAX_IN_HEADER(HEADER) dnl The parameter has to be a literal header name; it cannot be macro, dnl nor a shell variable. (Because autoheader collects only AC_DEFINE dnl invocations with a literal macro name.) AC_DEFUN([gl_MINMAX_IN_HEADER], [ m4_pushdef([header], AS_TR_SH([$1])) m4_pushdef([HEADER], AS_TR_CPP([$1])) AC_CACHE_CHECK([whether <$1> defines MIN and MAX], [gl_cv_minmax_in_]header, [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include <$1> int x = MIN (42, 17);]], [[]])], [gl_cv_minmax_in_]header[=yes], [gl_cv_minmax_in_]header[=no])]) if test $gl_cv_minmax_in_[]header = yes; then AC_DEFINE([HAVE_MINMAX_IN_]HEADER, 1, [Define to 1 if <$1> defines the MIN and MAX macros.]) fi m4_popdef([HEADER]) m4_popdef([header]) ]) shishi-1.0.3/lib/gl/m4/getdtablesize.m40000644000000000000000000000504514273615122014460 00000000000000# getdtablesize.m4 serial 8 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_GETDTABLESIZE], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_CHECK_FUNCS_ONCE([getdtablesize]) AC_CHECK_DECLS_ONCE([getdtablesize]) if test $ac_cv_func_getdtablesize = yes && test $ac_cv_have_decl_getdtablesize = yes; then AC_CACHE_CHECK([whether getdtablesize works], [gl_cv_func_getdtablesize_works], [dnl There are two concepts: the "maximum possible file descriptor value + 1" dnl and the "maximum number of open file descriptors in a process". dnl Per SUSv2 and POSIX, getdtablesize() should return the first one. dnl On most platforms, the first and the second concept are the same. dnl On OpenVMS, however, they are different and getdtablesize() returns dnl the second one; thus the test below fails. But we don't care dnl because there's no good way to write a replacement getdtablesize(). case "$host_os" in vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; *) dnl Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft dnl limit up to an unchangeable hard limit; all other platforms dnl correctly require setrlimit before getdtablesize() can report dnl a larger value. AC_RUN_IFELSE([ AC_LANG_PROGRAM( [[#include ] GL_MDA_DEFINES ], [[int size = getdtablesize(); if (dup2 (0, getdtablesize()) != -1) return 1; if (size != getdtablesize()) return 2; ]])], [gl_cv_func_getdtablesize_works=yes], [gl_cv_func_getdtablesize_works=no], [case "$host_os" in cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows gl_cv_func_getdtablesize_works="guessing no" ;; *) gl_cv_func_getdtablesize_works="guessing yes" ;; esac ]) ;; esac ]) case "$gl_cv_func_getdtablesize_works" in *yes | "no (limitation)") ;; *) REPLACE_GETDTABLESIZE=1 ;; esac else HAVE_GETDTABLESIZE=0 fi ]) # Prerequisites of lib/getdtablesize.c. AC_DEFUN([gl_PREREQ_GETDTABLESIZE], [:]) shishi-1.0.3/lib/gl/m4/multiarch.m40000644000000000000000000000422014273615122013614 00000000000000# multiarch.m4 serial 9 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Determine whether the compiler is or may be producing universal binaries. # # On Mac OS X 10.5 and later systems, the user can create libraries and # executables that work on multiple system types--known as "fat" or # "universal" binaries--by specifying multiple '-arch' options to the # compiler but only a single '-arch' option to the preprocessor. Like # this: # # ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ # CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ # CPP="gcc -E" CXXCPP="g++ -E" # # Detect this situation and set APPLE_UNIVERSAL_BUILD accordingly. AC_DEFUN_ONCE([gl_MULTIARCH], [ dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN. AC_CACHE_CHECK([whether the compiler produces multi-arch binaries], [gl_cv_c_multiarch], [gl_cv_c_multiarch=no AC_COMPILE_IFELSE( [AC_LANG_SOURCE( [[#ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; ]])], [ dnl Check for potential -arch flags. It is not universal unless dnl there are at least two -arch flags with different values. arch= prev= for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do if test -n "$prev"; then case $word in i?86 | x86_64 | ppc | ppc64 | arm | arm64) if test -z "$arch" || test "$arch" = "$word"; then arch="$word" else gl_cv_c_multiarch=yes fi ;; esac prev= else if test "x$word" = "x-arch"; then prev=arch fi fi done ]) ]) if test $gl_cv_c_multiarch = yes; then APPLE_UNIVERSAL_BUILD=1 else APPLE_UNIVERSAL_BUILD=0 fi AC_SUBST([APPLE_UNIVERSAL_BUILD]) ]) shishi-1.0.3/lib/gl/m4/fseeko.m40000644000000000000000000000454614273615122013113 00000000000000# fseeko.m4 serial 20 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FSEEKO], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([gl_STDIN_LARGE_OFFSET]) AC_REQUIRE([gl_SYS_TYPES_H]) AC_REQUIRE([AC_PROG_CC]) dnl Persuade glibc to declare fseeko(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko], [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[fseeko (stdin, 0, 0);]])], [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no]) ]) AC_CHECK_DECLS_ONCE([fseeko]) if test $ac_cv_have_decl_fseeko = no; then HAVE_DECL_FSEEKO=0 fi if test $gl_cv_func_fseeko = no; then HAVE_FSEEKO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FSEEKO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FSEEKO=1 fi m4_ifdef([gl_FUNC_FFLUSH_STDIN], [ gl_FUNC_FFLUSH_STDIN case "$gl_cv_func_fflush_stdin" in *yes) ;; *) REPLACE_FSEEKO=1 ;; esac ]) fi ]) dnl Code shared by fseeko and ftello. Determine if large files are supported, dnl but stdin does not start as a large file by default. AC_DEFUN([gl_STDIN_LARGE_OFFSET], [ AC_CACHE_CHECK([whether stdin defaults to large file offsets], [gl_cv_var_stdin_large_offset], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[#if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and it is easier to do a version check than building a runtime test. */ # include # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) choke me # endif #endif]])], [gl_cv_var_stdin_large_offset=yes], [gl_cv_var_stdin_large_offset=no])]) ]) # Prerequisites of lib/fseeko.c. AC_DEFUN([gl_PREREQ_FSEEKO], [ dnl Native Windows has the function _fseeki64. mingw hides it in some dnl circumstances, but mingw64 makes it usable again. AC_CHECK_FUNCS([_fseeki64]) if test $ac_cv_func__fseeki64 = yes; then AC_CHECK_DECLS([_fseeki64]) fi ]) shishi-1.0.3/lib/gl/m4/dup2.m40000644000000000000000000000723614273615122012510 00000000000000#serial 27 dnl Copyright (C) 2002, 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_DUP2], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works], [AC_RUN_IFELSE([ AC_LANG_PROGRAM( [[#include #include #include #include #include ]GL_MDA_DEFINES[ #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif ]], [[int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; #ifdef FD_CLOEXEC if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) result |= 1; #endif if (dup2 (1, 1) != 1) result |= 2; #ifdef FD_CLOEXEC if (fcntl (1, F_GETFD) != FD_CLOEXEC) result |= 4; #endif close (0); if (dup2 (0, 0) != -1) result |= 8; /* Many gnulib modules require POSIX conformance of EBADF. */ if (dup2 (2, bad_fd) == -1 && errno != EBADF) result |= 16; /* Flush out some cygwin core dumps. */ if (dup2 (2, -1) != -1 || errno != EBADF) result |= 32; dup2 (2, 255); dup2 (2, 256); /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ { int fd = open (".", O_RDONLY); if (fd == -1) result |= 64; else if (dup2 (fd, fd + 1) == -1) result |= 128; close (fd); } return result;]]) ], [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no], [case "$host_os" in mingw*) # on this platform, dup2 always returns 0 for success gl_cv_func_dup2_works="guessing no" ;; cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 gl_cv_func_dup2_works="guessing no" ;; aix* | freebsd*) # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, # not EBADF. gl_cv_func_dup2_works="guessing no" ;; haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. gl_cv_func_dup2_works="guessing no" ;; *-android*) # implemented using dup3(), which fails if oldfd == newfd gl_cv_func_dup2_works="guessing no" ;; os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac]) ]) case "$gl_cv_func_dup2_works" in *yes) ;; *) REPLACE_DUP2=1 AC_CHECK_FUNCS([setdtablesize]) ;; esac dnl Replace dup2() for supporting the gnulib-defined fchdir() function, dnl to keep fchdir's bookkeeping up-to-date. m4_ifdef([gl_FUNC_FCHDIR], [ gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then REPLACE_DUP2=1 fi ]) ]) # Prerequisites of lib/dup2.c. AC_DEFUN([gl_PREREQ_DUP2], []) shishi-1.0.3/lib/gl/m4/malloca.m40000644000000000000000000000103314273615122013233 00000000000000# malloca.m4 serial 2 dnl Copyright (C) 2003-2004, 2006-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MALLOCA], [ dnl Use the autoconf tests for alloca(), but not the AC_SUBSTed variables dnl @ALLOCA@ and @LTALLOCA@. dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies. AC_REQUIRE([gl_EEMALLOC]) ]) shishi-1.0.3/lib/gl/m4/sys_socket_h.m40000644000000000000000000001633314273615122014331 00000000000000# sys_socket_h.m4 serial 29 dnl Copyright (C) 2005-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson. AC_DEFUN_ONCE([gl_SYS_SOCKET_H], [ AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have dnl old-style declarations (with return type 'int' instead of 'ssize_t') dnl unless _POSIX_PII_SOCKET is defined. case "$host_os" in osf*) AC_DEFINE([_POSIX_PII_SOCKET], [1], [Define to 1 in order to get the POSIX compatible declarations of socket functions.]) ;; esac GL_GENERATE_SYS_SOCKET_H=false AC_CACHE_CHECK([whether is self-contained], [gl_cv_header_sys_socket_h_selfcontained], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[]])], [gl_cv_header_sys_socket_h_selfcontained=yes], [gl_cv_header_sys_socket_h_selfcontained=no]) ]) if test $gl_cv_header_sys_socket_h_selfcontained = yes; then dnl If the shutdown function exists, should define dnl SHUT_RD, SHUT_WR, SHUT_RDWR. AC_CHECK_FUNCS([shutdown]) if test $ac_cv_func_shutdown = yes; then AC_CACHE_CHECK([whether defines the SHUT_* macros], [gl_cv_header_sys_socket_h_shut], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };]])], [gl_cv_header_sys_socket_h_shut=yes], [gl_cv_header_sys_socket_h_shut=no]) ]) if test $gl_cv_header_sys_socket_h_shut = no; then GL_GENERATE_SYS_SOCKET_H=true fi fi fi # We need to check for ws2tcpip.h now. gl_PREREQ_SYS_H_SOCKET AC_CHECK_TYPES([struct sockaddr_storage, sa_family_t],,,[ /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif ]) if test $ac_cv_type_struct_sockaddr_storage = no; then HAVE_STRUCT_SOCKADDR_STORAGE=0 fi if test $ac_cv_type_sa_family_t = no; then HAVE_SA_FAMILY_T=0 fi if test $ac_cv_type_struct_sockaddr_storage != no; then AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family], [], [HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0], [#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif ]) fi if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then GL_GENERATE_SYS_SOCKET_H=true fi gl_PREREQ_SYS_H_WINSOCK2 dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ /* Some systems require prerequisite headers. */ #include #include ]], [socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4]) AC_REQUIRE([AC_C_RESTRICT]) ]) AC_DEFUN([gl_PREREQ_SYS_H_SOCKET], [ dnl Check prerequisites of the replacement. AC_REQUIRE([gl_CHECK_SOCKET_HEADERS]) gl_CHECK_NEXT_HEADERS([sys/socket.h]) if test $ac_cv_header_sys_socket_h = yes; then HAVE_SYS_SOCKET_H=1 else HAVE_SYS_SOCKET_H=0 fi AC_SUBST([HAVE_SYS_SOCKET_H]) gl_PREREQ_SYS_H_WS2TCPIP ]) # Common prerequisites of the replacement and of the # replacement. # Sets and substitutes HAVE_WINSOCK2_H. AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2], [ m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) AC_CHECK_HEADERS_ONCE([sys/socket.h]) if test $ac_cv_header_sys_socket_h != yes; then dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make dnl the check for those headers unconditional; yet cygwin reports dnl that the headers are present but cannot be compiled (since on dnl cygwin, all socket information should come from sys/socket.h). AC_CHECK_HEADERS([winsock2.h]) fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi AC_SUBST([HAVE_WINSOCK2_H]) ]) # Common prerequisites of the replacement and of the # replacement. # Sets and substitutes HAVE_WS2TCPIP_H. AC_DEFUN([gl_PREREQ_SYS_H_WS2TCPIP], [ AC_REQUIRE([gl_CHECK_SOCKET_HEADERS]) if test $ac_cv_header_sys_socket_h = yes; then HAVE_WS2TCPIP_H=0 else if test $ac_cv_header_ws2tcpip_h = yes; then HAVE_WS2TCPIP_H=1 else HAVE_WS2TCPIP_H=0 fi fi AC_SUBST([HAVE_WS2TCPIP_H]) ]) # gl_SYS_SOCKET_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_SOCKET_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_SOCKET_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_SOCKET_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SOCKET]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CONNECT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCEPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_BIND]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPEERNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSOCKNAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSOCKOPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LISTEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RECV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SEND]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RECVFROM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SENDTO]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETSOCKOPT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SHUTDOWN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCEPT4]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_SOCKET_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS], [ HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE]) HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY]) HAVE_SA_FAMILY_T=1; AC_SUBST([HAVE_SA_FAMILY_T]) HAVE_ACCEPT4=1; AC_SUBST([HAVE_ACCEPT4]) ]) shishi-1.0.3/lib/gl/m4/strerror.m40000644000000000000000000000720314273615122013512 00000000000000# strerror.m4 serial 23 dnl Copyright (C) 2002, 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRERROR], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_REQUIRE([gl_HEADER_ERRNO_H]) AC_REQUIRE([gl_FUNC_STRERROR_0]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [ AC_REQUIRE([gl_FUNC_STRERROR_R_WORKS]) ]) if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then AC_CACHE_CHECK([for working strerror function], [gl_cv_func_working_strerror], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[if (!*strerror (-2)) return 1;]])], [gl_cv_func_working_strerror=yes], [gl_cv_func_working_strerror=no], [case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_working_strerror="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_working_strerror" in *yes) ;; *) dnl The system's strerror() fails to return a string for out-of-range dnl integers. Replace it. REPLACE_STRERROR=1 ;; esac m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [ dnl If the system's strerror_r or __xpg_strerror_r clobbers strerror's dnl buffer, we must replace strerror. case "$gl_cv_func_strerror_r_works" in *no) REPLACE_STRERROR=1 ;; esac ]) else dnl The system's strerror() cannot know about the new errno values we add dnl to , or any fix for strerror(0). Replace it. REPLACE_STRERROR=1 fi ]) dnl Detect if strerror(0) passes (that is, does not set errno, and does not dnl return a string that matches strerror(-1)). AC_DEFUN([gl_FUNC_STRERROR_0], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles REPLACE_STRERROR_0=0 AC_CACHE_CHECK([whether strerror(0) succeeds], [gl_cv_func_strerror_0_works], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[int result = 0; char *str; errno = 0; str = strerror (0); if (!*str) result |= 1; if (errno) result |= 2; if (strstr (str, "nknown") || strstr (str, "ndefined")) result |= 4; return result;]])], [gl_cv_func_strerror_0_works=yes], [gl_cv_func_strerror_0_works=no], [case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_strerror_0_works" in *yes) ;; *) REPLACE_STRERROR_0=1 AC_DEFINE([REPLACE_STRERROR_0], [1], [Define to 1 if strerror(0) does not return a message implying success.]) ;; esac ]) shishi-1.0.3/lib/gl/m4/snprintf.m40000644000000000000000000000356714273615122013504 00000000000000# snprintf.m4 serial 7 dnl Copyright (C) 2002-2004, 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Libintl 0.17 will replace snprintf only if it does not support %1$s, dnl but defers to any gnulib snprintf replacements. Therefore, gnulib dnl must guarantee that the decision for replacing snprintf is a superset dnl of the reasons checked by libintl. AC_DEFUN([gl_FUNC_SNPRINTF], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) gl_cv_func_snprintf_usable=no AC_CHECK_FUNCS([snprintf]) if test $ac_cv_func_snprintf = yes; then gl_SNPRINTF_SIZE1 case "$gl_cv_func_snprintf_size1" in *yes) gl_SNPRINTF_RETVAL_C99 case "$gl_cv_func_snprintf_retval_c99" in *yes) gl_PRINTF_POSITIONS case "$gl_cv_func_printf_positions" in *yes) gl_cv_func_snprintf_usable=yes ;; esac ;; esac ;; esac fi if test $gl_cv_func_snprintf_usable = no; then gl_REPLACE_SNPRINTF fi AC_CHECK_DECLS_ONCE([snprintf]) if test $ac_cv_have_decl_snprintf = no; then HAVE_DECL_SNPRINTF=0 fi ]) AC_DEFUN([gl_REPLACE_SNPRINTF], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_LIBOBJ([snprintf]) if test $ac_cv_func_snprintf = yes; then REPLACE_SNPRINTF=1 else AC_CHECK_DECLS_ONCE([snprintf]) if test $ac_cv_have_decl_snprintf = yes; then dnl If the function is declared but does not appear to exist, it may be dnl defined as an inline function. In order to avoid a conflict, we have dnl to define rpl_snprintf, not snprintf. REPLACE_SNPRINTF=1 fi fi gl_PREREQ_SNPRINTF ]) # Prerequisites of lib/snprintf.c. AC_DEFUN([gl_PREREQ_SNPRINTF], [:]) shishi-1.0.3/lib/gl/m4/msvc-inval.m40000644000000000000000000000133414273615122013706 00000000000000# msvc-inval.m4 serial 1 dnl Copyright (C) 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MSVC_INVAL], [ AC_CHECK_FUNCS_ONCE([_set_invalid_parameter_handler]) if test $ac_cv_func__set_invalid_parameter_handler = yes; then HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 AC_DEFINE([HAVE_MSVC_INVALID_PARAMETER_HANDLER], [1], [Define to 1 on MSVC platforms that have the "invalid parameter handler" concept.]) else HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 fi AC_SUBST([HAVE_MSVC_INVALID_PARAMETER_HANDLER]) ]) shishi-1.0.3/lib/gl/m4/alloca.m40000644000000000000000000000731214273615122013064 00000000000000# alloca.m4 serial 21 dnl Copyright (C) 2002-2004, 2006-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_ALLOCA], [ AC_REQUIRE([AC_FUNC_ALLOCA]) if test $ac_cv_func_alloca_works = no; then gl_PREREQ_ALLOCA fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then AC_CACHE_CHECK([for alloca as a compiler built-in], [gl_cv_rpl_alloca], [ AC_EGREP_CPP([Need own alloca], [ #if defined __GNUC__ || defined _AIX || defined _MSC_VER Need own alloca #endif ], [gl_cv_rpl_alloca=yes], [gl_cv_rpl_alloca=no]) ]) if test $gl_cv_rpl_alloca = yes; then dnl OK, alloca can be implemented through a compiler built-in. AC_DEFINE([HAVE_ALLOCA], [1], [Define to 1 if you have 'alloca' after including , a header that may be supplied by this distribution.]) GL_GENERATE_ALLOCA_H=true else dnl alloca exists as a library function, i.e. it is slow and probably dnl a memory leak. Don't define HAVE_ALLOCA in this case. GL_GENERATE_ALLOCA_H=false fi else GL_GENERATE_ALLOCA_H=true fi if test $ac_cv_working_alloca_h = yes; then HAVE_ALLOCA_H=1 else HAVE_ALLOCA_H=0 fi AC_SUBST([HAVE_ALLOCA_H]) ]) # Prerequisites of lib/alloca.c. # STACK_DIRECTION is already handled by AC_FUNC_ALLOCA. AC_DEFUN([gl_PREREQ_ALLOCA], [:]) m4_version_prereq([2.70], [], [ # This works around a bug in autoconf <= 2.68 and has simplifications # from 2.70. See: # https://lists.gnu.org/r/bug-gnulib/2011-06/msg00277.html # https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=6cd9f12520b0d6f76d3230d7565feba1ecf29497 # https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=15edf7fd8094fd14a89d9891dd72a9624762597a # _AC_LIBOBJ_ALLOCA # ----------------- # Set up the LIBOBJ replacement of 'alloca'. Well, not exactly # AC_LIBOBJ since we actually set the output variable 'ALLOCA'. # Nevertheless, for Automake, AC_LIBSOURCES it. m4_define([_AC_LIBOBJ_ALLOCA], [# The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. AC_LIBSOURCES(alloca.c) AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.$ac_objext])dnl AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using 'alloca.c'.]) AC_CACHE_CHECK([stack direction for C alloca], [ac_cv_c_stack_direction], [AC_RUN_IFELSE([AC_LANG_SOURCE( [AC_INCLUDES_DEFAULT int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; }])], [ac_cv_c_stack_direction=1], [ac_cv_c_stack_direction=-1], [ac_cv_c_stack_direction=0])]) AH_VERBATIM([STACK_DIRECTION], [/* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION])dnl AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) ])# _AC_LIBOBJ_ALLOCA ]) shishi-1.0.3/lib/gl/m4/stdio_h.m40000644000000000000000000002540514273615122013265 00000000000000# stdio_h.m4 serial 59 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_STDIO_H], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AH_VERBATIM([MINGW_ANSI_STDIO], [/* Use GNU style printf and scanf. */ #ifndef __USE_MINGW_ANSI_STDIO # undef __USE_MINGW_ANSI_STDIO #endif ]) AC_DEFINE([__USE_MINGW_ANSI_STDIO]) gl_NEXT_HEADERS([stdio.h]) dnl Determine whether __USE_MINGW_ANSI_STDIO makes printf and dnl inttypes.h behave like gnu instead of system; we must give our dnl printf wrapper the right attribute to match. AC_CACHE_CHECK([which flavor of printf attribute matches inttypes macros], [gl_cv_func_printf_attribute_flavor], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #define __STDC_FORMAT_MACROS 1 #include #include /* For non-mingw systems, compilation will trivially succeed. For mingw, compilation will succeed for older mingw (system printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ #if (defined _WIN32 && ! defined __CYGWIN__) && \ (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; #endif ]])], [gl_cv_func_printf_attribute_flavor=system], [gl_cv_func_printf_attribute_flavor=gnu])]) if test "$gl_cv_func_printf_attribute_flavor" = gnu; then AC_DEFINE([GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU], [1], [Define to 1 if printf and friends should be labeled with attribute "__gnu_printf__" instead of "__printf__"]) fi dnl This ifdef is an optimization, to avoid performing a configure check whose dnl result is not used. But it does not make the test of dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant. m4_ifdef([gl_NONBLOCKING_IO], [ gl_NONBLOCKING_IO if test $gl_cv_have_nonblocking != yes; then REPLACE_STDIO_READ_FUNCS=1 fi ]) dnl This ifdef is an optimization, to avoid performing a configure check whose dnl result is not used. But it does not make the test of dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant. m4_ifdef([gl_SIGNAL_SIGPIPE], [ gl_SIGNAL_SIGPIPE if test $gl_cv_header_signal_h_SIGPIPE != yes; then REPLACE_STDIO_WRITE_FUNCS=1 fi ]) dnl This ifdef is an optimization, to avoid performing a configure check whose dnl result is not used. But it does not make the test of dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant. m4_ifdef([gl_NONBLOCKING_IO], [ gl_NONBLOCKING_IO if test $gl_cv_have_nonblocking != yes; then REPLACE_STDIO_WRITE_FUNCS=1 fi ]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use, and which is not dnl guaranteed by both C89 and C11. gl_WARN_ON_USE_PREPARE([[#include ]], [dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_DECLS_ONCE([fcloseall]) if test $ac_cv_have_decl_fcloseall = no; then HAVE_DECL_FCLOSEALL=0 fi ]) # gl_STDIO_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_STDIO_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_STDIO_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDIO_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCLOSE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FDOPEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFLUSH]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN_GNU]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPURGE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPUTC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPUTS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREAD]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREOPEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSCANF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSEEK]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSEEKO]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTELL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTELLO]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FWRITE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETCHAR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDELIM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLINE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PCLOSE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PERROR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POPEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTC]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTCHAR]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTS]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REMOVE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RENAME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RENAMEAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SCANF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SNPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SPRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_NONBLOCKING]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_SIGPIPE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TMPFILE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VASPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFSCANF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSCANF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VDPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFPRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF_POSIX]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSNPRINTF]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSPRINTF_POSIX]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCLOSEALL], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FDOPEN], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FILENO], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETW], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_PUTW], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TEMPNAM], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_STDIO_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_STDIO_H_DEFAULTS]) ]) AC_DEFUN([gl_STDIO_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_FCLOSEALL=1; AC_SUBST([HAVE_DECL_FCLOSEALL]) HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE]) HAVE_DECL_FSEEKO=1; AC_SUBST([HAVE_DECL_FSEEKO]) HAVE_DECL_FTELLO=1; AC_SUBST([HAVE_DECL_FTELLO]) HAVE_DECL_GETDELIM=1; AC_SUBST([HAVE_DECL_GETDELIM]) HAVE_DECL_GETLINE=1; AC_SUBST([HAVE_DECL_GETLINE]) HAVE_DECL_OBSTACK_PRINTF=1; AC_SUBST([HAVE_DECL_OBSTACK_PRINTF]) HAVE_DECL_SNPRINTF=1; AC_SUBST([HAVE_DECL_SNPRINTF]) HAVE_DECL_VSNPRINTF=1; AC_SUBST([HAVE_DECL_VSNPRINTF]) HAVE_DPRINTF=1; AC_SUBST([HAVE_DPRINTF]) HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) HAVE_PCLOSE=1; AC_SUBST([HAVE_PCLOSE]) HAVE_POPEN=1; AC_SUBST([HAVE_POPEN]) HAVE_RENAMEAT=1; AC_SUBST([HAVE_RENAMEAT]) HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) HAVE_VDPRINTF=1; AC_SUBST([HAVE_VDPRINTF]) REPLACE_DPRINTF=0; AC_SUBST([REPLACE_DPRINTF]) REPLACE_FCLOSE=0; AC_SUBST([REPLACE_FCLOSE]) REPLACE_FDOPEN=0; AC_SUBST([REPLACE_FDOPEN]) REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) REPLACE_FOPEN_FOR_FOPEN_GNU=0; AC_SUBST([REPLACE_FOPEN_FOR_FOPEN_GNU]) REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE]) REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) REPLACE_FTELL=0; AC_SUBST([REPLACE_FTELL]) REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) REPLACE_GETDELIM=0; AC_SUBST([REPLACE_GETDELIM]) REPLACE_GETLINE=0; AC_SUBST([REPLACE_GETLINE]) REPLACE_OBSTACK_PRINTF=0; AC_SUBST([REPLACE_OBSTACK_PRINTF]) REPLACE_PERROR=0; AC_SUBST([REPLACE_PERROR]) REPLACE_POPEN=0; AC_SUBST([REPLACE_POPEN]) REPLACE_PRINTF=0; AC_SUBST([REPLACE_PRINTF]) REPLACE_REMOVE=0; AC_SUBST([REPLACE_REMOVE]) REPLACE_RENAME=0; AC_SUBST([REPLACE_RENAME]) REPLACE_RENAMEAT=0; AC_SUBST([REPLACE_RENAMEAT]) REPLACE_SNPRINTF=0; AC_SUBST([REPLACE_SNPRINTF]) REPLACE_SPRINTF=0; AC_SUBST([REPLACE_SPRINTF]) REPLACE_STDIO_READ_FUNCS=0; AC_SUBST([REPLACE_STDIO_READ_FUNCS]) REPLACE_STDIO_WRITE_FUNCS=0; AC_SUBST([REPLACE_STDIO_WRITE_FUNCS]) REPLACE_TMPFILE=0; AC_SUBST([REPLACE_TMPFILE]) REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) REPLACE_VDPRINTF=0; AC_SUBST([REPLACE_VDPRINTF]) REPLACE_VFPRINTF=0; AC_SUBST([REPLACE_VFPRINTF]) REPLACE_VPRINTF=0; AC_SUBST([REPLACE_VPRINTF]) REPLACE_VSNPRINTF=0; AC_SUBST([REPLACE_VSNPRINTF]) REPLACE_VSPRINTF=0; AC_SUBST([REPLACE_VSPRINTF]) ]) shishi-1.0.3/lib/gl/m4/eealloc.m40000644000000000000000000000166714273615122013244 00000000000000# eealloc.m4 serial 3 dnl Copyright (C) 2003, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_EEALLOC], [ AC_REQUIRE([gl_EEMALLOC]) AC_REQUIRE([gl_EEREALLOC]) ]) AC_DEFUN([gl_EEMALLOC], [ _AC_FUNC_MALLOC_IF( [gl_cv_func_malloc_0_nonnull=1], [gl_cv_func_malloc_0_nonnull=0]) AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], [If malloc(0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) AC_DEFUN([gl_EEREALLOC], [ _AC_FUNC_REALLOC_IF( [gl_cv_func_realloc_0_nonnull=1], [gl_cv_func_realloc_0_nonnull=0]) AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this to 0.]) ]) shishi-1.0.3/lib/gl/m4/fflush.m40000644000000000000000000000632714273615122013125 00000000000000# fflush.m4 serial 18 # Copyright (C) 2007-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl From Eric Blake dnl Find out how to obey POSIX semantics of fflush(stdin) discarding dnl unread input on seekable streams, rather than C99 undefined semantics. AC_DEFUN([gl_FUNC_FFLUSH], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) gl_FUNC_FFLUSH_STDIN case "$gl_cv_func_fflush_stdin" in *yes) ;; *) REPLACE_FFLUSH=1 ;; esac ]) dnl Determine whether fflush works on input streams. dnl Sets gl_cv_func_fflush_stdin. AC_DEFUN([gl_FUNC_FFLUSH_STDIN], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_HEADERS_ONCE([unistd.h]) AC_CACHE_CHECK([whether fflush works on input streams], [gl_cv_func_fflush_stdin], [echo hello world > conftest.txt AC_RUN_IFELSE([AC_LANG_PROGRAM( [[ #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif ]GL_MDA_DEFINES], [[FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; int fd; int c; if (f == NULL) return 1; fd = fileno (f); if (fd < 0 || fread (buffer, 1, 5, f) != 5) { fclose (f); return 2; } /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) { fclose (f); return 3; } /* POSIX requires fflush-fseek to set file offset of fd. This fails on BSD systems and on mingw. */ if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 4; } if (lseek (fd, 0, SEEK_CUR) != 5) { fclose (f); return 5; } /* Verify behaviour of fflush after ungetc. See */ /* Verify behaviour of fflush after a backup ungetc. This fails on mingw. */ c = fgetc (f); ungetc (c, f); fflush (f); if (fgetc (f) != c) { fclose (f); return 6; } /* Verify behaviour of fflush after a non-backup ungetc. This fails on glibc 2.8 and on BSD systems. */ c = fgetc (f); ungetc ('@', f); fflush (f); if (fgetc (f) != c) { fclose (f); return 7; } fclose (f); return 0; ]])], [gl_cv_func_fflush_stdin=yes], [gl_cv_func_fflush_stdin=no], [case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac ]) rm conftest.txt ]) case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac AC_DEFINE_UNQUOTED([FUNC_FFLUSH_STDIN], [$gl_func_fflush_stdin], [Define to 1 if fflush is known to work on stdin as per POSIX.1-2008, 0 if fflush is known to not work, -1 if unknown.]) ]) # Prerequisites of lib/fflush.c. AC_DEFUN([gl_PREREQ_FFLUSH], [:]) shishi-1.0.3/lib/gl/m4/byteswap.m40000644000000000000000000000077114273615122013471 00000000000000# byteswap.m4 serial 5 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Oskar Liljeblad. AC_DEFUN([gl_BYTESWAP], [ dnl Prerequisites of lib/byteswap.in.h. AC_CHECK_HEADERS([byteswap.h], [ GL_GENERATE_BYTESWAP_H=false ], [ GL_GENERATE_BYTESWAP_H=true ]) ]) shishi-1.0.3/lib/gl/m4/stdalign.m40000644000000000000000000000444714273615122013444 00000000000000# Check for stdalign.h that conforms to C11. dnl Copyright 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Prepare for substituting if it is not supported. AC_DEFUN([gl_STDALIGN_H], [ AC_CACHE_CHECK([for working stdalign.h], [gl_cv_header_working_stdalign_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include /* Test that alignof yields a result consistent with offsetof. This catches GCC bug 52023 . */ #ifdef __cplusplus template struct alignof_helper { char a; t b; }; # define ao(type) offsetof (alignof_helper, b) #else # define ao(type) offsetof (struct { char a; type b; }, b) #endif char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; /* Test _Alignas only on platforms where gnulib can help. */ #if \ ((defined __cplusplus && 201103 <= __cplusplus) \ || (__TINYC__ && defined __attribute__) \ || (defined __APPLE__ && defined __MACH__ \ ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ : __GNUC__) \ || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ || 1300 <= _MSC_VER) struct alignas_test { char c; char alignas (8) alignas_8; }; char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 ? 1 : -1]; #endif ]])], [gl_cv_header_working_stdalign_h=yes], [gl_cv_header_working_stdalign_h=no])]) if test $gl_cv_header_working_stdalign_h = yes; then GL_GENERATE_STDALIGN_H=false else GL_GENERATE_STDALIGN_H=true fi ]) shishi-1.0.3/lib/gl/m4/gnulib-comp.m40000644000000000000000000011677314273615125014064 00000000000000# DO NOT EDIT! GENERATED AUTOMATICALLY! # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # # This file represents the compiled summary of the specification in # gnulib-cache.m4. It lists the computed macro invocations that need # to be invoked from configure.ac. # In projects that use version control, this file can be treated like # other built files. # This macro should be invoked from ./configure.ac, in the section # "Checks for programs", right after AC_PROG_CC, and certainly before # any checks for libraries, header files, types and library functions. AC_DEFUN([libgl_EARLY], [ m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace m4_pattern_allow([^gl_ES$])dnl a valid locale name m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable # Pre-early section. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_PROG_AR_RANLIB]) # Code from module absolute-header: # Code from module alloca: # Code from module alloca-opt: # Code from module allocator: # Code from module areadlink: # Code from module arpa_inet: # Code from module attribute: # Code from module base64: # Code from module bind: # Code from module bison: # Code from module byteswap: # Code from module c-ctype: # Code from module c99: # Code from module calloc-gnu: # Code from module calloc-posix: # Code from module careadlinkat: # Code from module clock-time: # Code from module cloexec: # Code from module close: # Code from module connect: # Code from module crc: # Code from module crypto/af_alg: # Code from module crypto/arcfour: # Code from module crypto/des: # Code from module crypto/gc: # Code from module crypto/gc-des: # Code from module crypto/gc-hmac-md5: # Code from module crypto/gc-hmac-sha1: # Code from module crypto/gc-md4: # Code from module crypto/gc-md5: # Code from module crypto/gc-pbkdf2: # Code from module crypto/gc-pbkdf2-sha1: # Code from module crypto/gc-random: # Code from module crypto/hmac-md5: # Code from module crypto/hmac-sha1: # Code from module crypto/md4: # Code from module crypto/md4-buffer: # Code from module crypto/md5: # Code from module crypto/md5-buffer: # Code from module crypto/sha1: # Code from module crypto/sha1-buffer: # Code from module dup2: # Code from module environ: # Code from module errno: # Code from module explicit_bzero: # Code from module extensions: # Code from module extern-inline: # Code from module fcntl: # Code from module fcntl-h: # Code from module fd-hook: # Code from module fflush: AC_REQUIRE([gl_SET_LARGEFILE_SOURCE]) # Code from module filename: # Code from module flexmember: # Code from module float: # Code from module fopen: # Code from module fopen-gnu: # Code from module fpurge: # Code from module freading: # Code from module free-posix: # Code from module fseek: # Code from module fseeko: AC_REQUIRE([gl_SET_LARGEFILE_SOURCE]) # Code from module fstat: # Code from module ftell: # Code from module ftello: AC_REQUIRE([gl_SET_LARGEFILE_SOURCE]) # Code from module gen-header: # Code from module getaddrinfo: # Code from module getdelim: # Code from module getdomainname: # Code from module getdtablesize: # Code from module gethostname: # Code from module getline: # Code from module getpass: # Code from module getpeername: # Code from module getrandom: # Code from module getsubopt: # Code from module gettext-h: # Code from module gettime: # Code from module gettimeofday: # Code from module havelib: # Code from module hostent: # Code from module ialloc: # Code from module idx: # Code from module include_next: # Code from module inet_ntop: # Code from module intprops: # Code from module inttypes: # Code from module inttypes-incomplete: # Code from module largefile: AC_REQUIRE([AC_SYS_LARGEFILE]) AC_REQUIRE([gl_YEAR2038_EARLY]) # Code from module libc-config: # Code from module limits-h: # Code from module lseek: # Code from module malloc-gnu: # Code from module malloc-posix: # Code from module malloca: # Code from module memchr: # Code from module memxor: # Code from module minmax: # Code from module mktime: # Code from module mktime-internal: # Code from module msvc-inval: # Code from module msvc-nothrow: # Code from module multiarch: # Code from module netdb: # Code from module netinet_in: # Code from module nstrftime: # Code from module open: # Code from module parse-datetime: # Code from module pathmax: # Code from module rawmemchr: # Code from module read-file: # Code from module readlink: # Code from module realloc-gnu: # Code from module realloc-posix: # Code from module reallocarray: # Code from module recvfrom: # Code from module select: # Code from module sendto: # Code from module servent: # Code from module setenv: # Code from module shutdown: # Code from module signal: # Code from module signal-h: # Code from module size_max: # Code from module snippet/_Noreturn: # Code from module snippet/arg-nonnull: # Code from module snippet/c++defs: # Code from module snippet/warn-on-use: # Code from module snprintf: # Code from module socket: # Code from module socketlib: # Code from module sockets: # Code from module socklen: # Code from module ssize_t: # Code from module stat: # Code from module stat-time: # Code from module std-gnu11: # Code from module stdalign: # Code from module stdarg: dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode dnl for the builtin va_copy to work. gl_PROG_CC_C99 arranges for this. gl_PROG_CC_C99 # Code from module stdbool: # Code from module stddef: # Code from module stdint: # Code from module stdio: # Code from module stdlib: # Code from module strcase: # Code from module strchrnul: # Code from module strdup-posix: # Code from module strerror: # Code from module strerror-override: # Code from module string: # Code from module strings: # Code from module strndup: # Code from module strnlen: # Code from module strtok_r: # Code from module strverscmp: # Code from module sys_random: # Code from module sys_select: # Code from module sys_socket: # Code from module sys_stat: # Code from module sys_time: # Code from module sys_types: # Code from module sys_uio: # Code from module time: # Code from module time_r: # Code from module time_rz: # Code from module timegm: # Code from module timespec: # Code from module tzset: # Code from module unistd: # Code from module unsetenv: # Code from module vararrays: # Code from module vasnprintf: # Code from module vasprintf: # Code from module verify: # Code from module wchar: # Code from module xalloc: # Code from module xalloc-oversized: # Code from module xgetdomainname: # Code from module xgethostname: # Code from module xsize: # Code from module xstrndup: # Code from module xvasprintf: ]) # This macro should be invoked from ./configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([libgl_INIT], [ AC_CONFIG_LIBOBJ_DIR([lib/gl]) AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) gl_cond_libtool=true gl_m4_base='lib/gl/m4' m4_pushdef([AC_LIBOBJ], m4_defn([libgl_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([libgl_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([libgl_LIBSOURCES])) m4_pushdef([libgl_LIBSOURCES_LIST], []) m4_pushdef([libgl_LIBSOURCES_DIR], []) m4_pushdef([GL_MACRO_PREFIX], [libgl]) m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL_LIBGL]) gl_COMMON gl_source_base='lib/gl' gl_source_base_prefix= changequote(,)dnl LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` changequote([, ])dnl AC_SUBST([LTALLOCA]) gl_FUNC_ALLOCA gl_CONDITIONAL_HEADER([alloca.h]) AC_PROG_MKDIR_P gl_ARPA_INET_H gl_ARPA_INET_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_BASE64 AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_BIND], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([bind]) # See the comments in bison.m4. gl_BYTESWAP gl_CONDITIONAL_HEADER([byteswap.h]) AC_PROG_MKDIR_P gl_FUNC_CALLOC_GNU if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then AC_LIBOBJ([calloc]) fi gl_STDLIB_MODULE_INDICATOR([calloc-gnu]) gl_FUNC_CALLOC_POSIX if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then AC_LIBOBJ([calloc]) fi gl_STDLIB_MODULE_INDICATOR([calloc-posix]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_FUNCS_ONCE([readlinkat]) gl_CLOCK_TIME gl_MODULE_INDICATOR_FOR_TESTS([cloexec]) gl_FUNC_CLOSE gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1]) gl_UNISTD_MODULE_INDICATOR([close]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_CONNECT], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([connect]) gl_AF_ALG AC_REQUIRE([AC_C_RESTRICT]) gl_GC gl_CONDITIONAL([GL_COND_OBJ_GC_LIBGCRYPT], [test "$ac_cv_libgcrypt" = yes]) if test $gl_cond_libtool = false; then gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT" gl_libdeps="$gl_libdeps $LIBGCRYPT" fi gl_GC_DES gl_MODULE_INDICATOR([gc-des]) gl_GC_HMAC_MD5 gl_MODULE_INDICATOR([gc-hmac-md5]) gl_GC_HMAC_SHA1 gl_MODULE_INDICATOR([gc-hmac-sha1]) gl_GC_MD4 gl_MODULE_INDICATOR([gc-md4]) gl_GC_MD5 gl_MODULE_INDICATOR([gc-md5]) gl_MODULE_INDICATOR([gc-random]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_C_RESTRICT]) gl_MD4 AC_REQUIRE([AC_C_RESTRICT]) gl_MD5 AC_REQUIRE([AC_C_RESTRICT]) gl_SHA1 gl_FUNC_DUP2 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1]) AM_COND_IF([GL_COND_OBJ_DUP2], [ gl_PREREQ_DUP2 ]) gl_UNISTD_MODULE_INDICATOR([dup2]) gl_ENVIRON gl_UNISTD_MODULE_INDICATOR([environ]) gl_HEADER_ERRNO_H gl_CONDITIONAL_HEADER([errno.h]) AC_PROG_MKDIR_P gl_FUNC_EXPLICIT_BZERO gl_CONDITIONAL([GL_COND_OBJ_EXPLICIT_BZERO], [test $HAVE_EXPLICIT_BZERO = 0]) AM_COND_IF([GL_COND_OBJ_EXPLICIT_BZERO], [ gl_PREREQ_EXPLICIT_BZERO ]) gl_STRING_MODULE_INDICATOR([explicit_bzero]) AC_REQUIRE([gl_EXTERN_INLINE]) gl_FUNC_FCNTL gl_CONDITIONAL([GL_COND_OBJ_FCNTL], [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]) gl_FCNTL_MODULE_INDICATOR([fcntl]) gl_FCNTL_H gl_FCNTL_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_FFLUSH gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1]) AM_COND_IF([GL_COND_OBJ_FFLUSH], [ gl_PREREQ_FFLUSH ]) gl_MODULE_INDICATOR([fflush]) gl_STDIO_MODULE_INDICATOR([fflush]) AC_C_FLEXIBLE_ARRAY_MEMBER gl_FLOAT_H gl_CONDITIONAL_HEADER([float.h]) AC_PROG_MKDIR_P gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1]) gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1]) gl_FUNC_FOPEN if test $REPLACE_FOPEN = 1; then AC_LIBOBJ([fopen]) gl_PREREQ_FOPEN fi gl_STDIO_MODULE_INDICATOR([fopen]) gl_FUNC_FOPEN_GNU if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then AC_LIBOBJ([fopen]) gl_PREREQ_FOPEN fi gl_MODULE_INDICATOR([fopen-gnu]) gl_STDIO_MODULE_INDICATOR([fopen-gnu]) gl_FUNC_FPURGE gl_CONDITIONAL([GL_COND_OBJ_FPURGE], [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1]) gl_STDIO_MODULE_INDICATOR([fpurge]) gl_FUNC_FREADING gl_FUNC_FREE gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1]) AM_COND_IF([GL_COND_OBJ_FREE], [ gl_PREREQ_FREE ]) gl_STDLIB_MODULE_INDICATOR([free-posix]) gl_FUNC_FSEEK gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1]) gl_STDIO_MODULE_INDICATOR([fseek]) gl_FUNC_FSEEKO gl_CONDITIONAL([GL_COND_OBJ_FSEEKO], [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1]) AM_COND_IF([GL_COND_OBJ_FSEEKO], [ gl_PREREQ_FSEEKO ]) gl_STDIO_MODULE_INDICATOR([fseeko]) gl_FUNC_FSTAT gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1]) AM_COND_IF([GL_COND_OBJ_FSTAT], [ case "$host_os" in mingw*) AC_LIBOBJ([stat-w32]) ;; esac gl_PREREQ_FSTAT ]) gl_SYS_STAT_MODULE_INDICATOR([fstat]) gl_FUNC_FTELL gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1]) gl_STDIO_MODULE_INDICATOR([ftell]) gl_FUNC_FTELLO gl_CONDITIONAL([GL_COND_OBJ_FTELLO], [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]) AM_COND_IF([GL_COND_OBJ_FTELLO], [ gl_PREREQ_FTELLO ]) gl_STDIO_MODULE_INDICATOR([ftello]) gl_GETADDRINFO gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO], [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1]) gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR], [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1]) gl_NETDB_MODULE_INDICATOR([getaddrinfo]) gl_FUNC_GETDELIM gl_CONDITIONAL([GL_COND_OBJ_GETDELIM], [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1]) AM_COND_IF([GL_COND_OBJ_GETDELIM], [ gl_PREREQ_GETDELIM ]) gl_STDIO_MODULE_INDICATOR([getdelim]) gl_FUNC_GETDOMAINNAME gl_CONDITIONAL([GL_COND_OBJ_GETDOMAINNAME], [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]) AM_COND_IF([GL_COND_OBJ_GETDOMAINNAME], [ gl_PREREQ_GETDOMAINNAME ]) gl_UNISTD_MODULE_INDICATOR([getdomainname]) gl_FUNC_GETDTABLESIZE gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE], [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1]) AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [ gl_PREREQ_GETDTABLESIZE ]) gl_UNISTD_MODULE_INDICATOR([getdtablesize]) gl_FUNC_GETHOSTNAME gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0]) AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [ gl_PREREQ_GETHOSTNAME ]) gl_UNISTD_MODULE_INDICATOR([gethostname]) gl_FUNC_GETLINE gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1]) AM_COND_IF([GL_COND_OBJ_GETLINE], [ gl_PREREQ_GETLINE ]) gl_STDIO_MODULE_INDICATOR([getline]) gl_FUNC_GETPASS if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then AC_LIBOBJ([getpass]) gl_PREREQ_GETPASS fi gl_UNISTD_MODULE_INDICATOR([getpass]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_GETPEERNAME], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([getpeername]) AC_REQUIRE([AC_CANONICAL_HOST]) gl_FUNC_GETRANDOM gl_CONDITIONAL([GL_COND_OBJ_GETRANDOM], [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]) gl_SYS_RANDOM_MODULE_INDICATOR([getrandom]) gl_FUNC_GETSUBOPT gl_CONDITIONAL([GL_COND_OBJ_GETSUBOPT], [test $HAVE_GETSUBOPT = 0]) AM_COND_IF([GL_COND_OBJ_GETSUBOPT], [ gl_PREREQ_GETSUBOPT ]) gl_STDLIB_MODULE_INDICATOR([getsubopt]) AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) gl_GETTIME gl_FUNC_GETTIMEOFDAY gl_CONDITIONAL([GL_COND_OBJ_GETTIMEOFDAY], [test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1]) AM_COND_IF([GL_COND_OBJ_GETTIMEOFDAY], [ gl_PREREQ_GETTIMEOFDAY ]) gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) AC_DEFUN([gl_HAVE_MODULE_HAVELIB]) gl_HOSTENT gl_FUNC_INET_NTOP gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP], [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]) AM_COND_IF([GL_COND_OBJ_INET_NTOP], [ gl_PREREQ_INET_NTOP ]) gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) gl_INTTYPES_H gl_INTTYPES_INCOMPLETE gl_INTTYPES_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P AC_REQUIRE([gl_LARGEFILE]) gl___INLINE gl_LIMITS_H gl_CONDITIONAL_HEADER([limits.h]) AC_PROG_MKDIR_P gl_FUNC_LSEEK gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1]) gl_UNISTD_MODULE_INDICATOR([lseek]) gl_FUNC_MALLOC_GNU if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then AC_LIBOBJ([malloc]) fi gl_STDLIB_MODULE_INDICATOR([malloc-gnu]) AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then AC_LIBOBJ([malloc]) fi gl_STDLIB_MODULE_INDICATOR([malloc-posix]) gl_MALLOCA gl_FUNC_MEMCHR gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1]) AM_COND_IF([GL_COND_OBJ_MEMCHR], [ gl_PREREQ_MEMCHR ]) gl_STRING_MODULE_INDICATOR([memchr]) gl_MEMXOR gl_MINMAX gl_FUNC_MKTIME if test $REPLACE_MKTIME = 1; then AC_LIBOBJ([mktime]) gl_PREREQ_MKTIME fi gl_TIME_MODULE_INDICATOR([mktime]) gl_FUNC_MKTIME_INTERNAL if test $WANT_MKTIME_INTERNAL = 1; then AC_LIBOBJ([mktime]) gl_PREREQ_MKTIME fi AC_REQUIRE([gl_MSVC_INVAL]) gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL], [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1]) AC_REQUIRE([gl_MSVC_NOTHROW]) gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW], [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1]) gl_MODULE_INDICATOR([msvc-nothrow]) gl_MULTIARCH gl_NETDB_H gl_NETDB_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_HEADER_NETINET_IN gl_CONDITIONAL_HEADER([netinet/in.h]) AC_PROG_MKDIR_P gl_FUNC_GNU_STRFTIME gl_FUNC_OPEN gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1]) AM_COND_IF([GL_COND_OBJ_OPEN], [ gl_PREREQ_OPEN ]) gl_FCNTL_MODULE_INDICATOR([open]) gl_PARSE_DATETIME gl_PATHMAX gl_FUNC_RAWMEMCHR gl_CONDITIONAL([GL_COND_OBJ_RAWMEMCHR], [test $HAVE_RAWMEMCHR = 0]) AM_COND_IF([GL_COND_OBJ_RAWMEMCHR], [ gl_PREREQ_RAWMEMCHR ]) gl_STRING_MODULE_INDICATOR([rawmemchr]) gl_PREREQ_READ_FILE gl_FUNC_READLINK gl_CONDITIONAL([GL_COND_OBJ_READLINK], [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1]) AM_COND_IF([GL_COND_OBJ_READLINK], [ gl_PREREQ_READLINK ]) gl_UNISTD_MODULE_INDICATOR([readlink]) gl_FUNC_REALLOC_GNU if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then AC_LIBOBJ([realloc]) fi gl_STDLIB_MODULE_INDICATOR([realloc-gnu]) gl_FUNC_REALLOC_POSIX if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then AC_LIBOBJ([realloc]) fi gl_STDLIB_MODULE_INDICATOR([realloc-posix]) gl_FUNC_REALLOCARRAY gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY], [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1]) AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [ gl_PREREQ_REALLOCARRAY ]) gl_MODULE_INDICATOR([reallocarray]) gl_STDLIB_MODULE_INDICATOR([reallocarray]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_RECVFROM], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom]) gl_FUNC_SELECT gl_CONDITIONAL([GL_COND_OBJ_SELECT], [test $REPLACE_SELECT = 1]) gl_SYS_SELECT_MODULE_INDICATOR([select]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_SENDTO], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([sendto]) gl_SERVENT gl_FUNC_SETENV gl_CONDITIONAL([GL_COND_OBJ_SETENV], [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1]) gl_STDLIB_MODULE_INDICATOR([setenv]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_SHUTDOWN], [test "$ac_cv_header_winsock2_h" = yes]) gl_SYS_SOCKET_MODULE_INDICATOR([shutdown]) gl_SIGNAL_H gl_SIGNAL_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SIZE_MAX gl_FUNC_SNPRINTF gl_STDIO_MODULE_INDICATOR([snprintf]) gl_MODULE_INDICATOR([snprintf]) AC_REQUIRE([gl_SYS_SOCKET_H]) gl_CONDITIONAL([GL_COND_OBJ_SOCKET], [test "$ac_cv_header_winsock2_h" = yes]) # When this module is used, sockets may actually occur as file descriptors, # hence it is worth warning if the modules 'close' and 'ioctl' are not used. m4_ifdef([gl_UNISTD_H_DEFAULTS], [gl_UNISTD_H_REQUIRE_DEFAULTS]) m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [gl_SYS_IOCTL_H_REQUIRE_DEFAULTS]) AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2]) if test "$ac_cv_header_winsock2_h" = yes; then UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 fi gl_SYS_SOCKET_MODULE_INDICATOR([socket]) AC_REQUIRE([gl_SOCKETLIB]) AC_REQUIRE([gl_SOCKETS]) gl_TYPE_SOCKLEN_T gt_TYPE_SSIZE_T gl_FUNC_STAT gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1]) AM_COND_IF([GL_COND_OBJ_STAT], [ case "$host_os" in mingw*) AC_LIBOBJ([stat-w32]) ;; esac gl_PREREQ_STAT ]) gl_SYS_STAT_MODULE_INDICATOR([stat]) gl_STAT_TIME gl_STAT_BIRTHTIME gl_STDALIGN_H gl_CONDITIONAL_HEADER([stdalign.h]) AC_PROG_MKDIR_P gl_STDARG_H gl_CONDITIONAL_HEADER([stdarg.h]) AC_PROG_MKDIR_P gl_STDBOOL_H gl_CONDITIONAL_HEADER([stdbool.h]) AC_PROG_MKDIR_P gl_STDDEF_H gl_STDDEF_H_REQUIRE_DEFAULTS gl_CONDITIONAL_HEADER([stddef.h]) AC_PROG_MKDIR_P gl_STDINT_H gl_CONDITIONAL_HEADER([stdint.h]) dnl Because of gl_REPLACE_LIMITS_H: gl_CONDITIONAL_HEADER([limits.h]) AC_PROG_MKDIR_P gl_STDIO_H gl_STDIO_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1]) gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1]) dnl No need to create extra modules for these functions. Everyone who uses dnl likely needs them. gl_STDIO_MODULE_INDICATOR([fscanf]) gl_MODULE_INDICATOR([fscanf]) gl_STDIO_MODULE_INDICATOR([scanf]) gl_MODULE_INDICATOR([scanf]) gl_STDIO_MODULE_INDICATOR([fgetc]) gl_STDIO_MODULE_INDICATOR([getc]) gl_STDIO_MODULE_INDICATOR([getchar]) gl_STDIO_MODULE_INDICATOR([fgets]) gl_STDIO_MODULE_INDICATOR([fread]) dnl No need to create extra modules for these functions. Everyone who uses dnl likely needs them. gl_STDIO_MODULE_INDICATOR([fprintf]) gl_STDIO_MODULE_INDICATOR([printf]) gl_STDIO_MODULE_INDICATOR([vfprintf]) gl_STDIO_MODULE_INDICATOR([vprintf]) gl_STDIO_MODULE_INDICATOR([fputc]) gl_STDIO_MODULE_INDICATOR([putc]) gl_STDIO_MODULE_INDICATOR([putchar]) gl_STDIO_MODULE_INDICATOR([fputs]) gl_STDIO_MODULE_INDICATOR([puts]) gl_STDIO_MODULE_INDICATOR([fwrite]) gl_STDLIB_H gl_STDLIB_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_STRCASE gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0]) AM_COND_IF([GL_COND_OBJ_STRCASECMP], [ gl_PREREQ_STRCASECMP ]) gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0]) AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [ gl_PREREQ_STRNCASECMP ]) gl_FUNC_STRCHRNUL gl_CONDITIONAL([GL_COND_OBJ_STRCHRNUL], [test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1]) AM_COND_IF([GL_COND_OBJ_STRCHRNUL], [ gl_PREREQ_STRCHRNUL ]) gl_STRING_MODULE_INDICATOR([strchrnul]) gl_FUNC_STRDUP_POSIX gl_CONDITIONAL([GL_COND_OBJ_STRDUP], [test $REPLACE_STRDUP = 1]) AM_COND_IF([GL_COND_OBJ_STRDUP], [ gl_PREREQ_STRDUP ]) gl_STRING_MODULE_INDICATOR([strdup]) gl_FUNC_STRERROR gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1]) gl_MODULE_INDICATOR([strerror]) gl_STRING_MODULE_INDICATOR([strerror]) AC_REQUIRE([gl_HEADER_ERRNO_H]) AC_REQUIRE([gl_FUNC_STRERROR_0]) gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE], [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1]) AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [ gl_PREREQ_SYS_H_WINSOCK2 ]) gl_STRING_H gl_STRING_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_STRINGS_H gl_STRINGS_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_STRNDUP gl_CONDITIONAL([GL_COND_OBJ_STRNDUP], [test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1]) gl_STRING_MODULE_INDICATOR([strndup]) gl_FUNC_STRNLEN gl_CONDITIONAL([GL_COND_OBJ_STRNLEN], [test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1]) AM_COND_IF([GL_COND_OBJ_STRNLEN], [ gl_PREREQ_STRNLEN ]) gl_STRING_MODULE_INDICATOR([strnlen]) gl_FUNC_STRTOK_R gl_CONDITIONAL([GL_COND_OBJ_STRTOK_R], [test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1]) AM_COND_IF([GL_COND_OBJ_STRTOK_R], [ gl_PREREQ_STRTOK_R ]) gl_STRING_MODULE_INDICATOR([strtok_r]) gl_FUNC_STRVERSCMP gl_CONDITIONAL([GL_COND_OBJ_STRVERSCMP], [test $HAVE_STRVERSCMP = 0]) AM_COND_IF([GL_COND_OBJ_STRVERSCMP], [ gl_PREREQ_STRVERSCMP ]) gl_STRING_MODULE_INDICATOR([strverscmp]) gl_SYS_RANDOM_H gl_SYS_RANDOM_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_SELECT_H gl_SYS_SELECT_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_SOCKET_H gl_SYS_SOCKET_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_STAT_H gl_SYS_STAT_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_TIME_H gl_SYS_TIME_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_TYPES_H gl_SYS_TYPES_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_UIO_H gl_SYS_UIO_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_TIME_H gl_TIME_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_TIME_R gl_CONDITIONAL([GL_COND_OBJ_TIME_R], [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1]) AM_COND_IF([GL_COND_OBJ_TIME_R], [ gl_PREREQ_TIME_R ]) gl_TIME_MODULE_INDICATOR([time_r]) gl_TIME_RZ gl_CONDITIONAL([GL_COND_OBJ_TIME_RZ], [test $HAVE_TIMEZONE_T = 0]) gl_TIME_MODULE_INDICATOR([time_rz]) gl_FUNC_TIMEGM gl_CONDITIONAL([GL_COND_OBJ_TIMEGM], [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1]) AM_COND_IF([GL_COND_OBJ_TIMEGM], [ gl_PREREQ_TIMEGM ]) gl_TIME_MODULE_INDICATOR([timegm]) gl_TIMESPEC gl_FUNC_TZSET gl_CONDITIONAL([GL_COND_OBJ_TZSET], [test $REPLACE_TZSET = 1]) gl_TIME_MODULE_INDICATOR([tzset]) gl_UNISTD_H gl_UNISTD_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_UNSETENV gl_CONDITIONAL([GL_COND_OBJ_UNSETENV], [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]) AM_COND_IF([GL_COND_OBJ_UNSETENV], [ gl_PREREQ_UNSETENV ]) gl_STDLIB_MODULE_INDICATOR([unsetenv]) AC_C_VARARRAYS AC_REQUIRE([AC_C_RESTRICT]) gl_FUNC_VASNPRINTF gl_FUNC_VASPRINTF gl_STDIO_MODULE_INDICATOR([vasprintf]) m4_ifdef([AM_XGETTEXT_OPTION], [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format]) AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) gl_WCHAR_H gl_WCHAR_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_XALLOC gl_MODULE_INDICATOR([xalloc]) gl_XSIZE gl_XSTRNDUP gl_XVASPRINTF m4_ifdef([AM_XGETTEXT_OPTION], [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])]) # End of code from modules m4_ifval(libgl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([libgl_LIBSOURCES_DIR])[ || for gl_file in ]libgl_LIBSOURCES_LIST[ ; do if test ! -r ]m4_defn([libgl_LIBSOURCES_DIR])[/$gl_file ; then echo "missing file ]m4_defn([libgl_LIBSOURCES_DIR])[/$gl_file" >&2 exit 1 fi done])dnl m4_if(m4_sysval, [0], [], [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) ]) m4_popdef([GL_MODULE_INDICATOR_PREFIX]) m4_popdef([GL_MACRO_PREFIX]) m4_popdef([libgl_LIBSOURCES_DIR]) m4_popdef([libgl_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) AC_CONFIG_COMMANDS_PRE([ libgl_libobjs= libgl_ltlibobjs= libgl_libobjdeps= if test -n "$libgl_LIBOBJS"; then # Remove the extension. changequote(,)dnl sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' changequote([, ])dnl for i in `for i in $libgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do libgl_libobjs="$libgl_libobjs $i.$ac_objext" libgl_ltlibobjs="$libgl_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` libgl_libobjdeps="$libgl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi AC_SUBST([libgl_LIBOBJS], [$libgl_libobjs]) AC_SUBST([libgl_LTLIBOBJS], [$libgl_ltlibobjs]) AC_SUBST([libgl_LIBOBJDEPS], [$libgl_libobjdeps]) ]) gltests_libdeps= gltests_ltlibdeps= m4_pushdef([AC_LIBOBJ], m4_defn([libgltests_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([libgltests_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([libgltests_LIBSOURCES])) m4_pushdef([libgltests_LIBSOURCES_LIST], []) m4_pushdef([libgltests_LIBSOURCES_DIR], []) m4_pushdef([GL_MACRO_PREFIX], [libgltests]) m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL_LIBGL]) gl_COMMON gl_source_base='lib/gl/tests' gl_source_base_prefix= changequote(,)dnl libgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS changequote([, ])dnl AC_SUBST([libgltests_WITNESS]) gl_module_indicator_condition=$libgltests_WITNESS m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) m4_popdef([gl_MODULE_INDICATOR_CONDITION]) m4_ifval(libgltests_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([libgltests_LIBSOURCES_DIR])[ || for gl_file in ]libgltests_LIBSOURCES_LIST[ ; do if test ! -r ]m4_defn([libgltests_LIBSOURCES_DIR])[/$gl_file ; then echo "missing file ]m4_defn([libgltests_LIBSOURCES_DIR])[/$gl_file" >&2 exit 1 fi done])dnl m4_if(m4_sysval, [0], [], [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) ]) m4_popdef([GL_MODULE_INDICATOR_PREFIX]) m4_popdef([GL_MACRO_PREFIX]) m4_popdef([libgltests_LIBSOURCES_DIR]) m4_popdef([libgltests_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) AC_CONFIG_COMMANDS_PRE([ libgltests_libobjs= libgltests_ltlibobjs= libgltests_libobjdeps= if test -n "$libgltests_LIBOBJS"; then # Remove the extension. changequote(,)dnl sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' changequote([, ])dnl for i in `for i in $libgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do libgltests_libobjs="$libgltests_libobjs $i.$ac_objext" libgltests_ltlibobjs="$libgltests_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` libgltests_libobjdeps="$libgltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi AC_SUBST([libgltests_LIBOBJS], [$libgltests_libobjs]) AC_SUBST([libgltests_LTLIBOBJS], [$libgltests_ltlibobjs]) AC_SUBST([libgltests_LIBOBJDEPS], [$libgltests_libobjdeps]) ]) AC_REQUIRE([gl_CC_GNULIB_WARNINGS]) ]) # Like AC_LIBOBJ, except that the module name goes # into libgl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([libgl_LIBOBJ], [ AS_LITERAL_IF([$1], [libgl_LIBSOURCES([$1.c])])dnl libgl_LIBOBJS="$libgl_LIBOBJS $1.$ac_objext" ]) # Like AC_REPLACE_FUNCS, except that the module name goes # into libgl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([libgl_REPLACE_FUNCS], [ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl AC_CHECK_FUNCS([$1], , [libgl_LIBOBJ($ac_func)]) ]) # Like AC_LIBSOURCES, except the directory where the source file is # expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([libgl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ m4_define([libgl_LIBSOURCES_DIR], [lib/gl]) m4_append([libgl_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) # Like AC_LIBOBJ, except that the module name goes # into libgltests_LIBOBJS instead of into LIBOBJS. AC_DEFUN([libgltests_LIBOBJ], [ AS_LITERAL_IF([$1], [libgltests_LIBSOURCES([$1.c])])dnl libgltests_LIBOBJS="$libgltests_LIBOBJS $1.$ac_objext" ]) # Like AC_REPLACE_FUNCS, except that the module name goes # into libgltests_LIBOBJS instead of into LIBOBJS. AC_DEFUN([libgltests_REPLACE_FUNCS], [ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl AC_CHECK_FUNCS([$1], , [libgltests_LIBOBJ($ac_func)]) ]) # Like AC_LIBSOURCES, except the directory where the source file is # expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([libgltests_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ m4_define([libgltests_LIBSOURCES_DIR], [lib/gl/tests]) m4_append([libgltests_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([libgl_FILE_LIST], [ build-aux/config.rpath doc/parse-datetime.texi lib/_Noreturn.h lib/af_alg.c lib/af_alg.h lib/alloca.c lib/alloca.in.h lib/allocator.c lib/allocator.h lib/arcfour.c lib/arcfour.h lib/areadlink.c lib/areadlink.h lib/arg-nonnull.h lib/arpa_inet.in.h lib/asnprintf.c lib/asprintf.c lib/attribute.h lib/base64.c lib/base64.h lib/bind.c lib/byteswap.in.h lib/c++defs.h lib/c-ctype.c lib/c-ctype.h lib/calloc.c lib/careadlinkat.c lib/careadlinkat.h lib/cdefs.h lib/cloexec.c lib/cloexec.h lib/close.c lib/connect.c lib/crc.c lib/crc.h lib/des.c lib/des.h lib/dup2.c lib/errno.in.h lib/explicit_bzero.c lib/fcntl.c lib/fcntl.in.h lib/fd-hook.c lib/fd-hook.h lib/fflush.c lib/filename.h lib/flexmember.h lib/float+.h lib/float.c lib/float.in.h lib/fopen.c lib/fpurge.c lib/freading.c lib/freading.h lib/free.c lib/fseek.c lib/fseeko.c lib/fstat.c lib/ftell.c lib/ftello.c lib/gai_strerror.c lib/gc-gnulib.c lib/gc-libgcrypt.c lib/gc-pbkdf2-sha1.c lib/gc-pbkdf2.c lib/gc.h lib/getaddrinfo.c lib/getdelim.c lib/getdomainname.c lib/getdtablesize.c lib/gethostname.c lib/getline.c lib/getpass.c lib/getpass.h lib/getpeername.c lib/getrandom.c lib/getsubopt.c lib/gettext.h lib/gettime.c lib/gettimeofday.c lib/gl_openssl.h lib/hmac-md5.c lib/hmac-sha1.c lib/hmac.c lib/hmac.h lib/ialloc.c lib/ialloc.h lib/idx.h lib/inet_ntop.c lib/intprops.h lib/inttypes.in.h lib/itold.c lib/libc-config.h lib/limits.in.h lib/lseek.c lib/malloc.c lib/malloca.c lib/malloca.h lib/md4-stream.c lib/md4.c lib/md4.h lib/md5-stream.c lib/md5.c lib/md5.h lib/memchr.c lib/memchr.valgrind lib/memxor.c lib/memxor.h lib/minmax.h lib/mktime-internal.h lib/mktime.c lib/msvc-inval.c lib/msvc-inval.h lib/msvc-nothrow.c lib/msvc-nothrow.h lib/netdb.in.h lib/netinet_in.in.h lib/nstrftime.c lib/open.c lib/parse-datetime.h lib/parse-datetime.y lib/pathmax.h lib/printf-args.c lib/printf-args.h lib/printf-parse.c lib/printf-parse.h lib/rawmemchr.c lib/rawmemchr.valgrind lib/read-file.c lib/read-file.h lib/readlink.c lib/realloc.c lib/reallocarray.c lib/recvfrom.c lib/select.c lib/sendto.c lib/setenv.c lib/sha1-stream.c lib/sha1.c lib/sha1.h lib/shutdown.c lib/signal.in.h lib/size_max.h lib/snprintf.c lib/socket.c lib/sockets.c lib/sockets.h lib/stat-time.c lib/stat-time.h lib/stat-w32.c lib/stat-w32.h lib/stat.c lib/stdalign.in.h lib/stdarg.in.h lib/stdbool.in.h lib/stddef.in.h lib/stdint.in.h lib/stdio-impl.h lib/stdio-read.c lib/stdio-write.c lib/stdio.in.h lib/stdlib.in.h lib/strcasecmp.c lib/strchrnul.c lib/strchrnul.valgrind lib/strdup.c lib/strerror-override.c lib/strerror-override.h lib/strerror.c lib/strftime.h lib/string.in.h lib/strings.in.h lib/strncasecmp.c lib/strndup.c lib/strnlen.c lib/strtok_r.c lib/strverscmp.c lib/sys-limits.h lib/sys_random.in.h lib/sys_select.in.h lib/sys_socket.c lib/sys_socket.in.h lib/sys_stat.in.h lib/sys_time.in.h lib/sys_types.in.h lib/sys_uio.in.h lib/time-internal.h lib/time.in.h lib/time_r.c lib/time_rz.c lib/timegm.c lib/timespec.c lib/timespec.h lib/tzset.c lib/unistd.c lib/unistd.in.h lib/unsetenv.c lib/vasnprintf.c lib/vasnprintf.h lib/vasprintf.c lib/verify.h lib/w32sock.h lib/warn-on-use.h lib/wchar.in.h lib/xalloc-oversized.h lib/xalloc.h lib/xasprintf.c lib/xgetaname-impl.h lib/xgetdomainname.c lib/xgetdomainname.h lib/xgethostname.c lib/xgethostname.h lib/xmalloc.c lib/xsize.c lib/xsize.h lib/xstrndup.c lib/xstrndup.h lib/xvasprintf.c lib/xvasprintf.h m4/00gnulib.m4 m4/__inline.m4 m4/absolute-header.m4 m4/af_alg.m4 m4/alloca.m4 m4/arpa_inet_h.m4 m4/base64.m4 m4/bison.m4 m4/byteswap.m4 m4/calloc.m4 m4/clock_time.m4 m4/close.m4 m4/dup2.m4 m4/eealloc.m4 m4/environ.m4 m4/errno_h.m4 m4/explicit_bzero.m4 m4/exponentd.m4 m4/extensions.m4 m4/extern-inline.m4 m4/fcntl-o.m4 m4/fcntl.m4 m4/fcntl_h.m4 m4/fflush.m4 m4/flexmember.m4 m4/float_h.m4 m4/fopen.m4 m4/fpurge.m4 m4/freading.m4 m4/free.m4 m4/fseek.m4 m4/fseeko.m4 m4/fstat.m4 m4/ftell.m4 m4/ftello.m4 m4/gc-des.m4 m4/gc-hmac-md5.m4 m4/gc-hmac-sha1.m4 m4/gc-md4.m4 m4/gc-md5.m4 m4/gc.m4 m4/getaddrinfo.m4 m4/getdelim.m4 m4/getdomainname.m4 m4/getdtablesize.m4 m4/gethostname.m4 m4/getline.m4 m4/getpass.m4 m4/getrandom.m4 m4/getsubopt.m4 m4/gettime.m4 m4/gettimeofday.m4 m4/gl-openssl.m4 m4/gnulib-common.m4 m4/host-cpu-c-abi.m4 m4/hostent.m4 m4/include_next.m4 m4/inet_ntop.m4 m4/intmax_t.m4 m4/inttypes.m4 m4/inttypes_h.m4 m4/largefile.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 m4/libgcrypt.m4 m4/limits-h.m4 m4/lseek.m4 m4/malloc.m4 m4/malloca.m4 m4/math_h.m4 m4/md4.m4 m4/md5.m4 m4/memchr.m4 m4/memxor.m4 m4/minmax.m4 m4/mktime.m4 m4/mmap-anon.m4 m4/mode_t.m4 m4/msvc-inval.m4 m4/msvc-nothrow.m4 m4/multiarch.m4 m4/netdb_h.m4 m4/netinet_in_h.m4 m4/nstrftime.m4 m4/off_t.m4 m4/open-cloexec.m4 m4/open-slash.m4 m4/open.m4 m4/parse-datetime.m4 m4/pathmax.m4 m4/pid_t.m4 m4/printf.m4 m4/rawmemchr.m4 m4/read-file.m4 m4/readlink.m4 m4/realloc.m4 m4/reallocarray.m4 m4/select.m4 m4/servent.m4 m4/setenv.m4 m4/sha1.m4 m4/signal_h.m4 m4/size_max.m4 m4/snprintf.m4 m4/socketlib.m4 m4/sockets.m4 m4/socklen.m4 m4/sockpfaf.m4 m4/ssize_t.m4 m4/stat-time.m4 m4/stat.m4 m4/std-gnu11.m4 m4/stdalign.m4 m4/stdarg.m4 m4/stdbool.m4 m4/stddef_h.m4 m4/stdint.m4 m4/stdint_h.m4 m4/stdio_h.m4 m4/stdlib_h.m4 m4/strcase.m4 m4/strchrnul.m4 m4/strdup.m4 m4/strerror.m4 m4/string_h.m4 m4/strings_h.m4 m4/strndup.m4 m4/strnlen.m4 m4/strtok_r.m4 m4/strverscmp.m4 m4/sys_random_h.m4 m4/sys_select_h.m4 m4/sys_socket_h.m4 m4/sys_stat_h.m4 m4/sys_time_h.m4 m4/sys_types_h.m4 m4/sys_uio_h.m4 m4/time_h.m4 m4/time_r.m4 m4/time_rz.m4 m4/timegm.m4 m4/timespec.m4 m4/tm_gmtoff.m4 m4/tzset.m4 m4/ungetc.m4 m4/unistd_h.m4 m4/vararrays.m4 m4/vasnprintf.m4 m4/vasprintf.m4 m4/warn-on-use.m4 m4/wchar_h.m4 m4/wchar_t.m4 m4/wint_t.m4 m4/xalloc.m4 m4/xsize.m4 m4/xstrndup.m4 m4/xvasprintf.m4 m4/year2038.m4 m4/zzgnulib.m4 ]) shishi-1.0.3/lib/gl/m4/gc-hmac-md5.m40000644000000000000000000000064214273615122013612 00000000000000# gc-hmac-md5.m4 serial 3 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC_HMAC_MD5], [ AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" != yes; then gl_MD5 gl_MEMXOR fi ]) shishi-1.0.3/lib/gl/m4/exponentd.m40000644000000000000000000000755214273615122013643 00000000000000# exponentd.m4 serial 3 dnl Copyright (C) 2007-2008, 2010-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_DOUBLE_EXPONENT_LOCATION], [ AC_CACHE_CHECK([where to find the exponent in a 'double'], [gl_cv_cc_double_expbit0], [ AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include #include #define NWORDS \ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) typedef union { double value; unsigned int word[NWORDS]; } memory_double; static unsigned int ored_words[NWORDS]; static unsigned int anded_words[NWORDS]; static void add_to_ored_words (double x) { memory_double m; size_t i; /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ memset (&m, 0, sizeof (memory_double)); m.value = x; for (i = 0; i < NWORDS; i++) { ored_words[i] |= m.word[i]; anded_words[i] &= m.word[i]; } } int main () { size_t j; FILE *fp = fopen ("conftest.out", "w"); if (fp == NULL) return 1; for (j = 0; j < NWORDS; j++) anded_words[j] = ~ (unsigned int) 0; add_to_ored_words (0.25); add_to_ored_words (0.5); add_to_ored_words (1.0); add_to_ored_words (2.0); add_to_ored_words (4.0); /* Remove bits that are common (e.g. if representation of the first mantissa bit is explicit). */ for (j = 0; j < NWORDS; j++) ored_words[j] &= ~anded_words[j]; /* Now find the nonzero word. */ for (j = 0; j < NWORDS; j++) if (ored_words[j] != 0) break; if (j < NWORDS) { size_t i; for (i = j + 1; i < NWORDS; i++) if (ored_words[i] != 0) { fprintf (fp, "unknown"); return (fclose (fp) != 0); } for (i = 0; ; i++) if ((ored_words[j] >> i) & 1) { fprintf (fp, "word %d bit %d", (int) j, (int) i); return (fclose (fp) != 0); } } fprintf (fp, "unknown"); return (fclose (fp) != 0); } ]])], [gl_cv_cc_double_expbit0=`cat conftest.out`], [gl_cv_cc_double_expbit0="unknown"], [ dnl On ARM, there are two 'double' floating-point formats, used by dnl different sets of instructions: The older FPA instructions assume dnl that they are stored in big-endian word order, while the words dnl (like integer types) are stored in little-endian byte order. dnl The newer VFP instructions assume little-endian order dnl consistently. AC_EGREP_CPP([mixed_endianness], [ #if defined arm || defined __arm || defined __arm__ mixed_endianness #endif ], [gl_cv_cc_double_expbit0="unknown"], [ pushdef([AC_MSG_CHECKING],[:])dnl pushdef([AC_MSG_RESULT],[:])dnl pushdef([AC_MSG_RESULT_UNQUOTED],[:])dnl AC_C_BIGENDIAN( [gl_cv_cc_double_expbit0="word 0 bit 20"], [gl_cv_cc_double_expbit0="word 1 bit 20"], [gl_cv_cc_double_expbit0="unknown"]) popdef([AC_MSG_RESULT_UNQUOTED])dnl popdef([AC_MSG_RESULT])dnl popdef([AC_MSG_CHECKING])dnl ]) ]) rm -f conftest.out ]) case "$gl_cv_cc_double_expbit0" in word*bit*) word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` AC_DEFINE_UNQUOTED([DBL_EXPBIT0_WORD], [$word], [Define as the word index where to find the exponent of 'double'.]) AC_DEFINE_UNQUOTED([DBL_EXPBIT0_BIT], [$bit], [Define as the bit index in the word where to find bit 0 of the exponent of 'double'.]) ;; esac ]) shishi-1.0.3/lib/gl/m4/environ.m40000644000000000000000000000260614273615122013312 00000000000000# environ.m4 serial 8 dnl Copyright (C) 2001-2004, 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_ENVIRON], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl Persuade glibc to declare environ. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_CHECK_HEADERS_ONCE([unistd.h]) gt_CHECK_VAR_DECL( [#if HAVE_UNISTD_H #include #endif /* mingw, BeOS, Haiku declare environ in , not in . */ #include ], [environ]) if test $gt_cv_var_environ_declaration != yes; then HAVE_DECL_ENVIRON=0 fi ]) # Check if a variable is properly declared. # gt_CHECK_VAR_DECL(includes,variable) AC_DEFUN([gt_CHECK_VAR_DECL], [ define([gt_cv_var], [gt_cv_var_]$2[_declaration]) AC_CACHE_CHECK([if $2 is properly declared], [gt_cv_var], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[$1 typedef struct { int foo; } foo_t; extern foo_t $2;]], [[$2.foo = 1;]])], [gt_cv_var=no], [gt_cv_var=yes])]) if test $gt_cv_var = yes; then AC_DEFINE([HAVE_]m4_translit($2, [a-z], [A-Z])[_DECL], 1, [Define if you have the declaration of $2.]) fi undefine([gt_cv_var]) ]) shishi-1.0.3/lib/gl/m4/servent.m40000644000000000000000000000336414273615122013322 00000000000000# servent.m4 serial 4 dnl Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_SERVENT], [ dnl Where are getservent(), setservent(), endservent(), getservbyname(), dnl getservbyport() defined? dnl Where are getprotoent(), setprotoent(), endprotoent(), getprotobyname(), dnl getprotobynumber() defined? dnl - On Solaris < 11.4, they are in libsocket. Ignore libxnet. dnl - On Haiku, they are in libnetwork. dnl - On BeOS, they are in libnet. dnl - On native Windows, they are in ws2_32.dll. dnl - Otherwise they are in libc. AC_REQUIRE([gl_SYS_SOCKET_H])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H SERVENT_LIB= gl_saved_libs="$LIBS" AC_SEARCH_LIBS([getservbyname], [socket network net], [if test "$ac_cv_search_getservbyname" != "none required"; then SERVENT_LIB="$ac_cv_search_getservbyname" fi]) LIBS="$gl_saved_libs" if test -z "$SERVENT_LIB"; then AC_CHECK_FUNCS([getservbyname], , [ AC_CACHE_CHECK([for getservbyname in winsock2.h and -lws2_32], [gl_cv_w32_getservbyname], [gl_cv_w32_getservbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #ifdef HAVE_WINSOCK2_H #include #endif #include ]], [[getservbyname(NULL,NULL);]])], [gl_cv_w32_getservbyname=yes]) LIBS="$gl_save_LIBS" ]) if test "$gl_cv_w32_getservbyname" = "yes"; then SERVENT_LIB="-lws2_32" fi ]) fi AC_SUBST([SERVENT_LIB]) ]) shishi-1.0.3/lib/gl/m4/fpurge.m40000644000000000000000000000475214273615122013126 00000000000000# fpurge.m4 serial 12 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FPURGE], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_CHECK_HEADERS_ONCE([stdio_ext.h]) AC_CHECK_FUNCS_ONCE([fpurge]) AC_CHECK_FUNCS_ONCE([__fpurge]) AC_CHECK_DECLS([fpurge], , , [[#include ]]) if test "x$ac_cv_func_fpurge" = xyes; then HAVE_FPURGE=1 # Detect BSD bug. Only cygwin 1.7 and musl are known to be immune. AC_CACHE_CHECK([whether fpurge works], [gl_cv_func_fpurge_works], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[FILE *f = fopen ("conftest.txt", "w+"); if (!f) return 1; if (fputc ('a', f) != 'a') { fclose (f); return 2; } rewind (f); if (fgetc (f) != 'a') { fclose (f); return 3; } if (fgetc (f) != EOF) { fclose (f); return 4; } if (fpurge (f) != 0) { fclose (f); return 5; } if (putc ('b', f) != 'b') { fclose (f); return 6; } if (fclose (f) != 0) return 7; if ((f = fopen ("conftest.txt", "r")) == NULL) return 8; if (fgetc (f) != 'a') { fclose (f); return 9; } if (fgetc (f) != 'b') { fclose (f); return 10; } if (fgetc (f) != EOF) { fclose (f); return 11; } if (fclose (f) != 0) return 12; if (remove ("conftest.txt") != 0) return 13; return 0; ]])], [gl_cv_func_fpurge_works=yes], [gl_cv_func_fpurge_works=no], [case "$host_os" in # Guess yes on musl systems. *-musl*) gl_cv_func_fpurge_works="guessing yes" ;; # Otherwise obey --enable-cross-guesses. *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_fpurge_works" in *yes) ;; *) REPLACE_FPURGE=1 ;; esac else HAVE_FPURGE=0 fi if test "x$ac_cv_have_decl_fpurge" = xno; then HAVE_DECL_FPURGE=0 fi ]) shishi-1.0.3/lib/gl/m4/strchrnul.m40000644000000000000000000000276014273615122013657 00000000000000# strchrnul.m4 serial 10 dnl Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRCHRNUL], [ dnl Persuade glibc to declare strchrnul(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_CHECK_FUNCS([strchrnul]) if test $ac_cv_func_strchrnul = no; then HAVE_STRCHRNUL=0 else AC_CACHE_CHECK([whether strchrnul works], [gl_cv_func_strchrnul_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include /* for strchrnul */ ]], [[const char *buf = "a"; return strchrnul (buf, 'b') != buf + 1; ]])], [gl_cv_func_strchrnul_works=yes], [gl_cv_func_strchrnul_works=no], [dnl Cygwin 1.7.9 introduced strchrnul, but it was broken until 1.7.10 AC_EGREP_CPP([Lucky user], [ #if defined __CYGWIN__ #include #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9) Lucky user #endif #else Lucky user #endif ], [gl_cv_func_strchrnul_works="guessing yes"], [gl_cv_func_strchrnul_works="guessing no"]) ]) ]) case "$gl_cv_func_strchrnul_works" in *yes) ;; *) REPLACE_STRCHRNUL=1 ;; esac fi ]) # Prerequisites of lib/strchrnul.c. AC_DEFUN([gl_PREREQ_STRCHRNUL], [:]) shishi-1.0.3/lib/gl/m4/zzgnulib.m40000644000000000000000000000152214273615123013473 00000000000000# zzgnulib.m4 serial 1 dnl Copyright (C) 2020-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl This file must be named something that sorts after all other dnl package- or gnulib-provided .m4 files - at least for those packages dnl that redefine AC_PROG_CC. dnl Redefine AC_PROG_CC so that it ends with invocations of gl_COMPILER_CLANG dnl and gl_COMPILER_PREPARE_CHECK_DECL. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[ gl_COMPILER_CLANG gl_COMPILER_PREPARE_CHECK_DECL ]) # gl_ZZGNULIB # ----------- # Witness macro that this file has been included. Needed to force # Automake to include this file after all other gnulib .m4 files. AC_DEFUN([gl_ZZGNULIB]) shishi-1.0.3/lib/gl/m4/limits-h.m40000644000000000000000000000227614273615122013363 00000000000000dnl Check whether limits.h has needed features. dnl Copyright 2016-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_DEFUN_ONCE([gl_LIMITS_H], [ gl_CHECK_NEXT_HEADERS([limits.h]) AC_CACHE_CHECK([whether limits.h has WORD_BIT, BOOL_WIDTH etc.], [gl_cv_header_limits_width], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #endif #include long long llm = LLONG_MAX; int wb = WORD_BIT; int ullw = ULLONG_WIDTH; int bw = BOOL_WIDTH; ]])], [gl_cv_header_limits_width=yes], [gl_cv_header_limits_width=no])]) if test "$gl_cv_header_limits_width" = yes; then GL_GENERATE_LIMITS_H=false else GL_GENERATE_LIMITS_H=true fi ]) dnl Unconditionally enables the replacement of . AC_DEFUN([gl_REPLACE_LIMITS_H], [ AC_REQUIRE([gl_LIMITS_H]) GL_GENERATE_LIMITS_H=true ]) shishi-1.0.3/lib/gl/m4/size_max.m40000644000000000000000000000547614273615122013461 00000000000000# size_max.m4 serial 12 dnl Copyright (C) 2003, 2005-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.61]) AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS([stdint.h]) dnl First test whether the system already has SIZE_MAX. AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ gl_cv_size_max=no AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], [gl_cv_size_max=yes]) if test $gl_cv_size_max != yes; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include #include ], [size_t_bits_minus_1=]) AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include ], [fits_in_uint=]) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include extern size_t foo; extern unsigned long foo; ]], [[]])], [fits_in_uint=0]) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... gl_cv_size_max='((size_t)~(size_t)0)' fi fi ]) if test "$gl_cv_size_max" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after dnl . Remember that the #undef in AH_VERBATIM gets replaced with dnl #define by AC_DEFINE_UNQUOTED. AH_VERBATIM([SIZE_MAX], [/* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif]) ]) shishi-1.0.3/lib/gl/m4/gc.m40000644000000000000000000000206214273615122012217 00000000000000# gc.m4 serial 13 dnl Copyright (C) 2005-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC], [ AC_ARG_WITH([libgcrypt], AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]), libgcrypt=$withval, libgcrypt=no) if test "$libgcrypt" != no; then # gc-libgcrypt.c will fail on startup if we don't have # version 1.4.4 or later, so test for it early. */ gl_good_gcrypt=no AM_PATH_LIBGCRYPT([1.4.4], [gl_good_gcrypt=yes], [AC_MSG_ERROR([libgcrypt is too old])]) if test "x$gl_good_gcrypt" != xno; then dnl Ignore the value of LIBGCRYPT_LIBS, because it does not include dnl '-lgpg-error'. AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include ]) LIB_CRYPTO="$LIBGCRYPT" else AC_MSG_ERROR([libgcrypt not found]) fi fi AC_SUBST([LIB_CRYPTO]) AC_REQUIRE([AC_C_RESTRICT]) ]) shishi-1.0.3/lib/gl/m4/memchr.m40000644000000000000000000000652014273615122013104 00000000000000# memchr.m4 serial 18 dnl Copyright (C) 2002-2004, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_FUNC_MEMCHR], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Check for prerequisites for memory fence checks. gl_FUNC_MMAP_ANON AC_CHECK_HEADERS_ONCE([sys/mman.h]) AC_CHECK_FUNCS_ONCE([mprotect]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) # Detect platform-specific bugs in some versions of glibc: # memchr should not dereference anything with length 0 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 # memchr should not dereference overestimated length after a match # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 # memchr should cast the second argument to 'unsigned char'. # This bug exists in Android 4.3. # Assume that memchr works on platforms that lack mprotect. AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include #if HAVE_SYS_MMAN_H # include # include # include # include # ifndef MAP_FILE # define MAP_FILE 0 # endif #endif ]], [[ int result = 0; char *fence = NULL; #if HAVE_SYS_MMAN_H && HAVE_MPROTECT # if HAVE_MAP_ANONYMOUS const int flags = MAP_ANONYMOUS | MAP_PRIVATE; const int fd = -1; # else /* !HAVE_MAP_ANONYMOUS */ const int flags = MAP_FILE | MAP_PRIVATE; int fd = open ("/dev/zero", O_RDONLY, 0666); if (fd >= 0) # endif { int pagesize = getpagesize (); char *two_pages = (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, flags, fd, 0); if (two_pages != (char *)(-1) && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) fence = two_pages + pagesize; } #endif if (fence) { /* Test against bugs on glibc systems. */ if (memchr (fence, 0, 0)) result |= 1; strcpy (fence - 9, "12345678"); if (memchr (fence - 9, 0, 79) != fence - 1) result |= 2; if (memchr (fence - 1, 0, 3) != fence - 1) result |= 4; /* Test against bug on AIX 7.2. */ if (memchr (fence - 4, '6', 16) != fence - 4) result |= 8; } /* Test against bug on Android 4.3. */ { char input[3]; input[0] = 'a'; input[1] = 'b'; input[2] = 'c'; if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) result |= 16; } return result; ]])], [gl_cv_func_memchr_works=yes], [gl_cv_func_memchr_works=no], [case "$host_os" in # Guess no on Android. linux*-android*) gl_cv_func_memchr_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_memchr_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; esac ]) ]) case "$gl_cv_func_memchr_works" in *yes) ;; *) REPLACE_MEMCHR=1 ;; esac ]) # Prerequisites of lib/memchr.c. AC_DEFUN([gl_PREREQ_MEMCHR], [ AC_CHECK_HEADERS([bp-sym.h]) ]) shishi-1.0.3/lib/gl/m4/time_r.m40000644000000000000000000000652514273615123013116 00000000000000dnl Reentrant time functions: localtime_r, gmtime_r. dnl Copyright (C) 2003, 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. AC_DEFUN([gl_TIME_R], [ dnl Persuade glibc and Solaris to declare localtime_r. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_TIME_H_DEFAULTS]) AC_REQUIRE([AC_C_RESTRICT]) dnl Some systems don't declare localtime_r() and gmtime_r() if _REENTRANT is dnl not defined. AC_CHECK_DECLS([localtime_r], [], [], [[/* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include ]]) if test $ac_cv_have_decl_localtime_r = no; then HAVE_DECL_LOCALTIME_R=0 fi AC_CHECK_FUNCS_ONCE([localtime_r]) if test $ac_cv_func_localtime_r = yes; then HAVE_LOCALTIME_R=1 AC_CACHE_CHECK([whether localtime_r is compatible with its POSIX signature], [gl_cv_time_r_posix], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[/* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include ]], [[/* We don't need to append 'restrict's to the argument types, even though the POSIX signature has the 'restrict's, since C99 says they can't affect type compatibility. */ struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; if (ptr) return 0; /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */ *localtime_r (0, 0);]]) ], [gl_cv_time_r_posix=yes], [gl_cv_time_r_posix=no]) ]) if test $gl_cv_time_r_posix = yes; then REPLACE_LOCALTIME_R=0 else REPLACE_LOCALTIME_R=1 fi else HAVE_LOCALTIME_R=0 dnl On mingw, localtime_r() is defined as an inline function; use through a dnl direct function call works but the use as a function pointer leads to a dnl link error. AC_CACHE_CHECK([whether localtime_r exists as an inline function], [gl_cv_func_localtime_r_inline], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[/* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include ]], [[time_t a; struct tm r; localtime_r (&a, &r); ]]) ], [gl_cv_func_localtime_r_inline=yes], [gl_cv_func_localtime_r_inline=no]) ]) if test $gl_cv_func_localtime_r_inline = yes; then REPLACE_LOCALTIME_R=1 fi fi ]) # Prerequisites of lib/time_r.c. AC_DEFUN([gl_PREREQ_TIME_R], [ : ]) shishi-1.0.3/lib/gl/m4/fstat.m40000644000000000000000000000211714273615122012750 00000000000000# fstat.m4 serial 8 dnl Copyright (C) 2011-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FSTAT], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS]) case "$host_os" in mingw* | solaris*) dnl On MinGW, the original stat() returns st_atime, st_mtime, dnl st_ctime values that are affected by the time zone. dnl Solaris stat can return a negative tv_nsec. REPLACE_FSTAT=1 ;; esac dnl Replace fstat() for supporting the gnulib-defined open() on directories. m4_ifdef([gl_FUNC_FCHDIR], [ gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then case "$gl_cv_func_open_directory_works" in *yes) ;; *) REPLACE_FSTAT=1 ;; esac fi ]) ]) # Prerequisites of lib/fstat.c and lib/stat-w32.c. AC_DEFUN([gl_PREREQ_FSTAT], [ AC_REQUIRE([gl_SYS_STAT_H]) AC_REQUIRE([gl_PREREQ_STAT_W32]) : ]) shishi-1.0.3/lib/gl/m4/extern-inline.m40000644000000000000000000001277414273615122014422 00000000000000dnl 'extern inline' a la ISO C99. dnl Copyright 2012-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_EXTERN_INLINE], [ AC_CACHE_CHECK([whether ctype.h defines __header_inline], [gl_cv_have___header_inline], [AC_PREPROC_IFELSE( [AC_LANG_SOURCE([[#include #ifndef __header_inline #error " does not define __header_inline" #endif ]])], [gl_cv_have___header_inline=yes], [gl_cv_have___header_inline=no])]) if test "$gl_cv_have___header_inline" = yes; then AC_DEFINE([HAVE___HEADER_INLINE], [1], [Define to 1 if ctype.h defines __header_inline.]) fi AH_VERBATIM([HAVE___HEADER_INLINE_1], [/* Please see the Gnulib manual for how to use these macros. Suppress extern inline with HP-UX cc, as it appears to be broken; see . Suppress extern inline with Sun C in standards-conformance mode, as it mishandles inline functions that call each other. E.g., for 'inline void f (void) { } inline void g (void) { f (); }', c99 incorrectly complains 'reference to static identifier "f" in extern inline function'. This bug was observed with Oracle Developer Studio 12.6 (Sun C 5.15 SunOS_sparc 2017/05/30). Suppress extern inline (with or without __attribute__ ((__gnu_inline__))) on configurations that mistakenly use 'static inline' to implement functions or macros in standard C headers like . For example, if isdigit is mistakenly implemented via a static inline function, a program containing an extern inline function that calls isdigit may not work since the C standard prohibits extern inline functions from calling static functions (ISO C 99 section 6.7.4.(3). This bug is known to occur on: OS X 10.8 and earlier; see: https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html DragonFly; see http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log FreeBSD; see: https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and for clang but remains for g++; see . Assume DragonFly and FreeBSD will be similar. GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 inline semantics, unless -fgnu89-inline is used. It defines a macro __GNUC_STDC_INLINE__ to indicate this situation or a macro __GNUC_GNU_INLINE__ to indicate the opposite situation. GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline semantics but warns, unless -fgnu89-inline is used: warning: C99 inline functions are not supported; using GNU89 warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute It defines a macro __GNUC_GNU_INLINE__ to indicate this situation. */ #if (((defined __APPLE__ && defined __MACH__) \ || defined __DragonFly__ || defined __FreeBSD__) \ && (defined HAVE___HEADER_INLINE \ ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ && ! defined __clang__) \ : ((! defined _DONT_USE_CTYPE_INLINE_ \ && (defined __GNUC__ || defined __cplusplus)) \ || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ && defined __GNUC__ && ! defined __cplusplus)))) # define _GL_EXTERN_INLINE_STDHEADER_BUG #endif #if ((__GNUC__ \ ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ : (199901L <= __STDC_VERSION__ \ && !defined __HP_cc \ && !defined __PGI \ && !(defined __SUNPRO_C && __STDC__))) \ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) # define _GL_INLINE inline # define _GL_EXTERN_INLINE extern inline # define _GL_EXTERN_INLINE_IN_USE #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) # else # define _GL_INLINE extern inline # endif # define _GL_EXTERN_INLINE extern # define _GL_EXTERN_INLINE_IN_USE #else # define _GL_INLINE _GL_UNUSED static # define _GL_EXTERN_INLINE _GL_UNUSED static #endif /* In GCC 4.6 (inclusive) to 5.1 (exclusive), suppress bogus "no previous prototype for 'FOO'" and "no previous declaration for 'FOO'" diagnostics, when FOO is an inline function in the header; see and . */ #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__ # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ # define _GL_INLINE_HEADER_CONST_PRAGMA # else # define _GL_INLINE_HEADER_CONST_PRAGMA \ _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") # endif # define _GL_INLINE_HEADER_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ _GL_INLINE_HEADER_CONST_PRAGMA # define _GL_INLINE_HEADER_END \ _Pragma ("GCC diagnostic pop") #else # define _GL_INLINE_HEADER_BEGIN # define _GL_INLINE_HEADER_END #endif]) ]) shishi-1.0.3/lib/gl/m4/explicit_bzero.m40000644000000000000000000000122514273615122014650 00000000000000dnl Copyright 2017-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_EXPLICIT_BZERO], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) dnl Persuade glibc to declare explicit_bzero. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CHECK_FUNCS_ONCE([explicit_bzero]) if test $ac_cv_func_explicit_bzero = no; then HAVE_EXPLICIT_BZERO=0 fi ]) AC_DEFUN([gl_PREREQ_EXPLICIT_BZERO], [ AC_CHECK_FUNCS([explicit_memset]) AC_CHECK_FUNCS_ONCE([memset_s]) ]) shishi-1.0.3/lib/gl/m4/stdint_h.m40000644000000000000000000000174314273615122013447 00000000000000# stdint_h.m4 serial 9 dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[uintmax_t i = (uintmax_t) -1; return !i;]])], [gl_cv_header_stdint_h=yes], [gl_cv_header_stdint_h=no])]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) shishi-1.0.3/lib/gl/m4/flexmember.m40000644000000000000000000000325414273615122013760 00000000000000# serial 5 # Check for flexible array member support. # Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert. AC_DEFUN([AC_C_FLEXIBLE_ARRAY_MEMBER], [ AC_CACHE_CHECK([for flexible array member], ac_cv_c_flexmember, [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include struct m { struct m *next, **list; char name[]; }; struct s { struct s *p; struct m *m; int n; double d[]; };]], [[int m = getchar (); size_t nbytes = offsetof (struct s, d) + m * sizeof (double); nbytes += sizeof (struct s) - 1; nbytes -= nbytes % sizeof (struct s); struct s *p = malloc (nbytes); p->p = p; p->m = NULL; p->d[0] = 0.0; return p->d != (double *) NULL;]])], [ac_cv_c_flexmember=yes], [ac_cv_c_flexmember=no])]) if test $ac_cv_c_flexmember = yes; then AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [], [Define to nothing if C supports flexible array members, and to 1 if it does not. That way, with a declaration like 'struct s { int n; short d@<:@FLEXIBLE_ARRAY_MEMBER@:>@; };', the struct hack can be used with pre-C99 compilers. Use 'FLEXSIZEOF (struct s, d, N * sizeof (short))' to calculate the size in bytes of such a struct containing an N-element array.]) else AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [1]) fi ]) shishi-1.0.3/lib/gl/m4/fcntl_h.m40000644000000000000000000000520614273615122013246 00000000000000# serial 20 # Configure fcntl.h. dnl Copyright (C) 2006-2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. AC_DEFUN_ONCE([gl_FCNTL_H], [ AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) AC_REQUIRE([gl_FCNTL_O_FLAGS]) gl_NEXT_HEADERS([fcntl.h]) dnl Ensure the type pid_t gets defined. AC_REQUIRE([AC_TYPE_PID_T]) dnl Ensure the type mode_t gets defined. AC_REQUIRE([AC_TYPE_MODE_T]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use, if it is not common dnl enough to be declared everywhere. gl_WARN_ON_USE_PREPARE([[#include ]], [fcntl openat]) ]) # gl_FCNTL_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_FCNTL_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_FCNTL_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_FCNTL_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_FCNTL_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CREAT]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCNTL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_FCNTL_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_FCNTL_H_DEFAULTS]) ]) AC_DEFUN([gl_FCNTL_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL]) HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT]) REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT]) REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL]) REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT]) ]) shishi-1.0.3/lib/gl/m4/arpa_inet_h.m40000644000000000000000000000503514273615122014102 00000000000000# arpa_inet_h.m4 serial 17 dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Simon Josefsson and Bruno Haible AC_DEFUN_ONCE([gl_ARPA_INET_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) AC_CHECK_HEADERS_ONCE([arpa/inet.h]) if test $ac_cv_header_arpa_inet_h = yes; then HAVE_ARPA_INET_H=1 else HAVE_ARPA_INET_H=0 fi AC_SUBST([HAVE_ARPA_INET_H]) dnl is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([arpa/inet.h]) AC_REQUIRE([gl_FEATURES_H]) gl_PREREQ_SYS_H_WS2TCPIP dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ /* On some systems, this header is not self-consistent. */ #if !(defined __GLIBC__ || defined __UCLIBC__) # include #endif #ifdef __TANDEM # include #endif #include ]], [inet_ntop inet_pton]) ]) # gl_ARPA_INET_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_ARPA_INET_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_ARPA_INET_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_ARPA_INET_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_INET_NTOP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_INET_PTON]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_ARPA_INET_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) ]) AC_DEFUN([gl_ARPA_INET_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_INET_NTOP=1; AC_SUBST([HAVE_DECL_INET_NTOP]) HAVE_DECL_INET_PTON=1; AC_SUBST([HAVE_DECL_INET_PTON]) REPLACE_INET_NTOP=0; AC_SUBST([REPLACE_INET_NTOP]) REPLACE_INET_PTON=0; AC_SUBST([REPLACE_INET_PTON]) ]) shishi-1.0.3/lib/gl/m4/gc-des.m40000644000000000000000000000052014273615122012765 00000000000000# gc-des.m4 serial 3 dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GC_DES], [ AC_REQUIRE([gl_GC]) ]) shishi-1.0.3/lib/gl/m4/strdup.m40000644000000000000000000000145514273615122013154 00000000000000# strdup.m4 serial 15 dnl Copyright (C) 2002-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRDUP], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_CHECK_DECLS_ONCE([strdup]) if test $ac_cv_have_decl_strdup = no; then HAVE_DECL_STRDUP=0 fi ]) AC_DEFUN([gl_FUNC_STRDUP_POSIX], [ AC_REQUIRE([gl_STRING_H_DEFAULTS]) AC_REQUIRE([gl_CHECK_MALLOC_POSIX]) if test $gl_cv_func_malloc_posix != yes; then REPLACE_STRDUP=1 fi AC_CHECK_DECLS_ONCE([strdup]) if test $ac_cv_have_decl_strdup = no; then HAVE_DECL_STRDUP=0 fi ]) # Prerequisites of lib/strdup.c. AC_DEFUN([gl_PREREQ_STRDUP], [:]) shishi-1.0.3/lib/gl/m4/socketlib.m40000644000000000000000000000607614273615122013616 00000000000000# socketlib.m4 serial 3 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl gl_SOCKETLIB dnl Determines the library to use for socket functions. dnl Sets and AC_SUBSTs LIBSOCKET. AC_DEFUN([gl_SOCKETLIB], [ gl_PREREQ_SYS_H_WINSOCK2 dnl for HAVE_WINSOCK2_H LIBSOCKET= if test $HAVE_WINSOCK2_H = 1; then dnl Native Windows API (not Cygwin). dnl If the function WSAStartup exists (declared in and dnl defined through -lws2_32), we need to call it. AC_CACHE_CHECK([for WSAStartup], [gl_cv_func_wsastartup], [ gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ #ifdef HAVE_WINSOCK2_H # include #endif]], [[ WORD wVersionRequested = MAKEWORD(1, 1); WSADATA wsaData; int err = WSAStartup(wVersionRequested, &wsaData); WSACleanup (); ]]) ], [gl_cv_func_wsastartup=yes], [gl_cv_func_wsastartup=no]) LIBS="$gl_save_LIBS" ]) if test "$gl_cv_func_wsastartup" = "yes"; then AC_DEFINE([WINDOWS_SOCKETS], [1], [Define if WSAStartup is needed.]) LIBSOCKET='-lws2_32' fi else dnl Unix API. dnl Solaris has most socket functions in libsocket. dnl Haiku has most socket functions in libnetwork. dnl BeOS has most socket functions in libnet. dnl On HP-UX, do NOT link with libxnet, because in 64-bit mode this would dnl break code (e.g. in libraries) that invokes accept(), getpeername(), dnl getsockname(), getsockopt(), or recvfrom() with a 32-bit addrlen. See dnl "man xopen_networking" for details. AC_CACHE_CHECK([for library containing setsockopt], [gl_cv_lib_socket], [ gl_cv_lib_socket= AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern #ifdef __cplusplus "C" #endif char setsockopt();]], [[setsockopt();]])], [], [gl_save_LIBS="$LIBS" LIBS="$gl_save_LIBS -lsocket" AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern #ifdef __cplusplus "C" #endif char setsockopt();]], [[setsockopt();]])], [gl_cv_lib_socket="-lsocket"]) if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnetwork" AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern #ifdef __cplusplus "C" #endif char setsockopt();]], [[setsockopt();]])], [gl_cv_lib_socket="-lnetwork"]) if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnet" AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern #ifdef __cplusplus "C" #endif char setsockopt();]], [[setsockopt();]])], [gl_cv_lib_socket="-lnet"]) fi fi LIBS="$gl_save_LIBS" ]) if test -z "$gl_cv_lib_socket"; then gl_cv_lib_socket="none needed" fi ]) if test "$gl_cv_lib_socket" != "none needed"; then LIBSOCKET="$gl_cv_lib_socket" fi fi AC_SUBST([LIBSOCKET]) ]) shishi-1.0.3/lib/gl/m4/sys_random_h.m40000644000000000000000000000454714273615122014325 00000000000000# sys_random_h.m4 serial 8 dnl Copyright (C) 2020-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_SYS_RANDOM_H], [ AC_REQUIRE([gl_SYS_RANDOM_H_DEFAULTS]) dnl is always overridden, because of GNULIB_POSIXCHECK. gl_CHECK_NEXT_HEADERS([sys/random.h]) if test $ac_cv_header_sys_random_h = yes; then HAVE_SYS_RANDOM_H=1 else HAVE_SYS_RANDOM_H=0 fi AC_SUBST([HAVE_SYS_RANDOM_H]) m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) if test $ac_cv_header_sys_random_h = yes; then UNISTD_H_HAVE_SYS_RANDOM_H=1 fi dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ #if HAVE_SYS_RANDOM_H /* Additional includes are needed before on uClibc and Mac OS X. */ # include # include # include #endif ]], [getrandom]) ]) # gl_SYS_RANDOM_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_RANDOM_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_RANDOM_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_RANDOM_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_RANDOM_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETRANDOM]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_RANDOM_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_RANDOM_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_RANDOM_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_GETRANDOM=1; AC_SUBST([HAVE_GETRANDOM]) REPLACE_GETRANDOM=0; AC_SUBST([REPLACE_GETRANDOM]) ]) shishi-1.0.3/lib/gl/m4/md5.m40000644000000000000000000000067514273615122012323 00000000000000# md5.m4 serial 14 dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MD5], [ dnl Prerequisites of lib/md5.c. AC_REQUIRE([gl_BIGENDIAN]) dnl Determine HAVE_OPENSSL_MD5 and LIB_CRYPTO gl_CRYPTO_CHECK([MD5]) ]) shishi-1.0.3/lib/gl/m4/intmax_t.m40000644000000000000000000000354414273615122013457 00000000000000# intmax_t.m4 serial 9 dnl Copyright (C) 1997-2004, 2006-2007, 2009-2022 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ([2.53]) # Define intmax_t to 'long' or 'long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_INTMAX_T], [ dnl For simplicity, we assume that a header file defines 'intmax_t' if and dnl only if it defines 'uintmax_t'. AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_DEFINE_UNQUOTED([intmax_t], [long long], [Define to long or long long if and don't define.]) else AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) dnl An alternative would be to explicitly test for 'intmax_t'. AC_DEFUN([gt_AC_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ]], [[intmax_t x = -1; return !x;]])], [gt_cv_c_intmax_t=yes], [gt_cv_c_intmax_t=no])]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) else AC_DEFINE_UNQUOTED([intmax_t], [long long], [Define to long or long long if and don't define.]) fi ]) shishi-1.0.3/lib/gl/m4/xsize.m40000644000000000000000000000062614273615123012775 00000000000000# xsize.m4 serial 5 dnl Copyright (C) 2003-2004, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_CHECK_HEADERS([stdint.h]) ]) shishi-1.0.3/lib/gl/m4/open.m40000644000000000000000000000276514273615122012601 00000000000000# open.m4 serial 15 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_OPEN], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([gl_PREPROC_O_CLOEXEC]) case "$host_os" in mingw* | pw*) REPLACE_OPEN=1 ;; *) dnl open("foo/") should not create a file when the file name has a dnl trailing slash. FreeBSD only has the problem on symlinks. AC_CHECK_FUNCS_ONCE([lstat]) if test "$gl_cv_macro_O_CLOEXEC" != yes; then REPLACE_OPEN=1 fi gl_OPEN_TRAILING_SLASH_BUG case "$gl_cv_func_open_slash" in *no) REPLACE_OPEN=1 ;; esac ;; esac dnl Replace open() for supporting the gnulib-defined fchdir() function, dnl to keep fchdir's bookkeeping up-to-date. m4_ifdef([gl_FUNC_FCHDIR], [ if test $REPLACE_OPEN = 0; then gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then REPLACE_OPEN=1 fi fi ]) dnl Replace open() for supporting the gnulib-defined O_NONBLOCK flag. m4_ifdef([gl_NONBLOCKING_IO], [ if test $REPLACE_OPEN = 0; then gl_NONBLOCKING_IO if test $gl_cv_have_open_O_NONBLOCK != yes; then REPLACE_OPEN=1 fi fi ]) ]) # Prerequisites of lib/open.c. AC_DEFUN([gl_PREREQ_OPEN], [ AC_REQUIRE([gl_PROMOTED_TYPE_MODE_T]) : ]) shishi-1.0.3/lib/gl/m4/sys_time_h.m40000644000000000000000000001042014273615123013767 00000000000000# Configure a replacement for . # serial 12 # Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert and Martin Lambers. AC_DEFUN_ONCE([gl_SYS_TIME_H], [ dnl Use AC_REQUIRE here, so that the REPLACE_GETTIMEOFDAY=0 statement dnl below is expanded once only, before all REPLACE_GETTIMEOFDAY=1 dnl statements that occur in other macros. AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS]) AC_REQUIRE([AC_C_RESTRICT]) AC_CHECK_HEADERS_ONCE([sys/time.h]) gl_CHECK_NEXT_HEADERS([sys/time.h]) if test $ac_cv_header_sys_time_h != yes; then HAVE_SYS_TIME_H=0 fi dnl On native Windows with MSVC, 'struct timeval' is defined in dnl only. So include that header in the list. gl_PREREQ_SYS_H_WINSOCK2 AC_CACHE_CHECK([for struct timeval], [gl_cv_sys_struct_timeval], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#if HAVE_SYS_TIME_H #include #endif #include #if HAVE_WINSOCK2_H # include #endif ]], [[static struct timeval x; x.tv_sec = x.tv_usec;]])], [gl_cv_sys_struct_timeval=yes], [gl_cv_sys_struct_timeval=no]) ]) if test $gl_cv_sys_struct_timeval != yes; then HAVE_STRUCT_TIMEVAL=0 else dnl On native Windows with a 64-bit 'time_t', 'struct timeval' is defined dnl (in and for mingw64, in only dnl for MSVC) with a tv_sec field of type 'long' (32-bit!), which is dnl smaller than the 'time_t' type mandated by POSIX. dnl On OpenBSD 5.1 amd64, tv_sec is 64 bits and time_t 32 bits, but dnl that is good enough. AC_CACHE_CHECK([for wide-enough struct timeval.tv_sec member], [gl_cv_sys_struct_timeval_tv_sec], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#if HAVE_SYS_TIME_H #include #endif #include #if HAVE_WINSOCK2_H # include #endif ]], [[static struct timeval x; typedef int verify_tv_sec_type[ sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 ]; ]])], [gl_cv_sys_struct_timeval_tv_sec=yes], [gl_cv_sys_struct_timeval_tv_sec=no]) ]) if test $gl_cv_sys_struct_timeval_tv_sec != yes; then REPLACE_STRUCT_TIMEVAL=1 fi fi dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[ #if HAVE_SYS_TIME_H # include #endif #include ]], [gettimeofday]) ]) # gl_SYS_TIME_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_SYS_TIME_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_SYS_TIME_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_SYS_TIME_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_TIME_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETTIMEOFDAY]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_TIME_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS]) ]) AC_DEFUN([gl_SYS_TIME_H_DEFAULTS], [ dnl Assume POSIX behavior unless another module says otherwise. HAVE_GETTIMEOFDAY=1; AC_SUBST([HAVE_GETTIMEOFDAY]) HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL]) HAVE_SYS_TIME_H=1; AC_SUBST([HAVE_SYS_TIME_H]) REPLACE_GETTIMEOFDAY=0; AC_SUBST([REPLACE_GETTIMEOFDAY]) REPLACE_STRUCT_TIMEVAL=0; AC_SUBST([REPLACE_STRUCT_TIMEVAL]) ]) shishi-1.0.3/lib/gl/m4/timegm.m40000644000000000000000000000132014273615123013105 00000000000000# timegm.m4 serial 13 dnl Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_TIMEGM], [ AC_REQUIRE([gl_TIME_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) REPLACE_TIMEGM=0 AC_CHECK_FUNCS_ONCE([timegm]) if test $ac_cv_func_timegm = yes; then if test "$gl_cv_func_working_mktime" != yes; then # Assume that timegm is buggy if mktime is. REPLACE_TIMEGM=1 fi else HAVE_TIMEGM=0 fi ]) # Prerequisites of lib/timegm.c. AC_DEFUN([gl_PREREQ_TIMEGM], [ : ]) shishi-1.0.3/lib/gl/m4/xvasprintf.m40000644000000000000000000000054314273615123014035 00000000000000# xvasprintf.m4 serial 2 dnl Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Prerequisites of lib/xvasprintf.c. AC_DEFUN([gl_XVASPRINTF], [:]) shishi-1.0.3/lib/gl/m4/wchar_t.m40000644000000000000000000000146214273615123013261 00000000000000# wchar_t.m4 serial 4 (gettext-0.18.2) dnl Copyright (C) 2002-2003, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include wchar_t foo = (wchar_t)'\0';]], [[]])], [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) fi ]) shishi-1.0.3/lib/gl/m4/close.m40000644000000000000000000000222114273615122012730 00000000000000# close.m4 serial 9 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_CLOSE], [ AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) m4_ifdef([gl_MSVC_INVAL], [ AC_REQUIRE([gl_MSVC_INVAL]) if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then REPLACE_CLOSE=1 fi ]) m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [ gl_PREREQ_SYS_H_WINSOCK2 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then dnl Even if the 'socket' module is not used here, another part of the dnl application may use it and pass file descriptors that refer to dnl sockets to the close() function. So enable the support for sockets. REPLACE_CLOSE=1 fi ]) dnl Replace close() for supporting the gnulib-defined fchdir() function, dnl to keep fchdir's bookkeeping up-to-date. m4_ifdef([gl_FUNC_FCHDIR], [ if test $REPLACE_CLOSE = 0; then gl_TEST_FCHDIR if test $HAVE_FCHDIR = 0; then REPLACE_CLOSE=1 fi fi ]) ]) shishi-1.0.3/lib/gl/m4/extensions.m40000644000000000000000000002033314273615122014026 00000000000000# serial 22 -*- Autoconf -*- # Enable extensions on systems that normally disable them. # Copyright (C) 2003, 2006-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+. m4_ifndef([AC_CHECK_INCLUDES_DEFAULT], [AC_DEFUN([AC_CHECK_INCLUDES_DEFAULT], [])]) # This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from git # Autoconf. Perhaps we can remove this once we can assume Autoconf # is recent-enough everywhere, but since Autoconf mutates rapidly # enough in this area it's likely we'll need to redefine # AC_USE_SYSTEM_EXTENSIONS for quite some time. # If autoconf reports a warning # warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS # or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS # the fix is # 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked # but always AC_REQUIREd, # 2) to ensure that for each occurrence of # AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) # or # AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) # the corresponding gnulib module description has 'extensions' among # its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS # invocation occurs in gl_EARLY, not in gl_INIT. m4_version_prereq([2.70.1], [], [ # AC_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. # We unconditionally define as many of the known feature-enabling # as possible, reserving conditional behavior for macros that are # known to cause problems on some platforms (such as __EXTENSIONS__). AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], [AC_BEFORE([$0], [AC_PREPROC_IFELSE])dnl AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl AC_BEFORE([$0], [AC_LINK_IFELSE])dnl AC_BEFORE([$0], [AC_RUN_IFELSE])dnl AC_BEFORE([$0], [AC_CHECK_INCLUDES_DEFAULT])dnl dnl #undef in AH_VERBATIM gets replaced with #define by AC_DEFINE. dnl Use a different key than __EXTENSIONS__, as that name broke existing dnl configure.ac when using autoheader 2.62. dnl The macros below are in alphabetical order ignoring leading _ or __ dnl prefixes. AH_VERBATIM([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable general extensions on macOS. */ #ifndef _DARWIN_C_SOURCE # undef _DARWIN_C_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable X/Open compliant socket functions that do not require linking with -lxnet on HP-UX 11.11. */ #ifndef _HPUX_ALT_XOPEN_SOCKET_API # undef _HPUX_ALT_XOPEN_SOCKET_API #endif /* Identify the host operating system as Minix. This macro does not affect the system headers' behavior. A future release of Autoconf may stop defining this macro. */ #ifndef _MINIX # undef _MINIX #endif /* Enable general extensions on NetBSD. Enable NetBSD compatibility extensions on Minix. */ #ifndef _NETBSD_SOURCE # undef _NETBSD_SOURCE #endif /* Enable OpenBSD compatibility extensions on NetBSD. Oddly enough, this does nothing on OpenBSD. */ #ifndef _OPENBSD_SOURCE # undef _OPENBSD_SOURCE #endif /* Define to 1 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_SOURCE # undef _POSIX_SOURCE #endif /* Define to 2 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_1_SOURCE # undef _POSIX_1_SOURCE #endif /* Enable POSIX-compatible threading on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ # undef __STDC_WANT_IEC_60559_BFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ #ifndef __STDC_WANT_LIB_EXT2__ # undef __STDC_WANT_LIB_EXT2__ #endif /* Enable extensions specified by ISO/IEC 24747:2009. */ #ifndef __STDC_WANT_MATH_SPEC_FUNCS__ # undef __STDC_WANT_MATH_SPEC_FUNCS__ #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable X/Open extensions. Define to 500 only if necessary to make mbstate_t available. */ #ifndef _XOPEN_SOURCE # undef _XOPEN_SOURCE #endif ])dnl AC_REQUIRE([AC_CHECK_INCLUDES_DEFAULT])dnl _AC_CHECK_HEADER_ONCE([wchar.h]) _AC_CHECK_HEADER_ONCE([minix/config.h]) dnl Defining __EXTENSIONS__ may break the system headers on some systems. dnl (FIXME: Which ones?) AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], [ac_cv_safe_to_define___extensions__], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ # define __EXTENSIONS__ 1 ]AC_INCLUDES_DEFAULT])], [ac_cv_safe_to_define___extensions__=yes], [ac_cv_safe_to_define___extensions__=no])]) dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to dnl 500, regardless of whether compiling with -Ae or -D_HPUX_SOURCE=1. dnl But defining _XOPEN_SOURCE may turn *off* extensions on platforms dnl not covered by turn-on-extensions macros (notably Dragonfly, Free, dnl and OpenBSD, which don't have any equivalent of _NETBSD_SOURCE) so dnl it should only be defined when necessary. AC_CACHE_CHECK([whether _XOPEN_SOURCE should be defined], [ac_cv_should_define__xopen_source], [ac_cv_should_define__xopen_source=no AS_IF([test $ac_cv_header_wchar_h = yes], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ #include mbstate_t x;]])], [], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[ #define _XOPEN_SOURCE 500 #include mbstate_t x;]])], [ac_cv_should_define__xopen_source=yes])])])]) AC_DEFINE([_ALL_SOURCE]) AC_DEFINE([_DARWIN_C_SOURCE]) AC_DEFINE([_GNU_SOURCE]) AC_DEFINE([_HPUX_ALT_XOPEN_SOCKET_API]) AC_DEFINE([_NETBSD_SOURCE]) AC_DEFINE([_OPENBSD_SOURCE]) AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) AC_DEFINE([__STDC_WANT_IEC_60559_ATTRIBS_EXT__]) AC_DEFINE([__STDC_WANT_IEC_60559_BFP_EXT__]) AC_DEFINE([__STDC_WANT_IEC_60559_DFP_EXT__]) AC_DEFINE([__STDC_WANT_IEC_60559_FUNCS_EXT__]) AC_DEFINE([__STDC_WANT_IEC_60559_TYPES_EXT__]) AC_DEFINE([__STDC_WANT_LIB_EXT2__]) AC_DEFINE([__STDC_WANT_MATH_SPEC_FUNCS__]) AC_DEFINE([_TANDEM_SOURCE]) AS_IF([test $ac_cv_header_minix_config_h = yes], [MINIX=yes AC_DEFINE([_MINIX]) AC_DEFINE([_POSIX_SOURCE]) AC_DEFINE([_POSIX_1_SOURCE], [2])], [MINIX=]) AS_IF([test $ac_cv_safe_to_define___extensions__ = yes], [AC_DEFINE([__EXTENSIONS__])]) AS_IF([test $ac_cv_should_define__xopen_source = yes], [AC_DEFINE([_XOPEN_SOURCE], [500])]) ])# AC_USE_SYSTEM_EXTENSIONS ]) # gl_USE_SYSTEM_EXTENSIONS # ------------------------ # Enable extensions on systems that normally disable them, # typically due to standards-conformance issues. AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], [ AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl On OpenBSD 6.8 with GCC, the include files contain a couple of dnl definitions that are only activated with an explicit -D_ISOC11_SOURCE. dnl That's because this version of GCC (4.2.1) supports the option dnl '-std=gnu99' but not the option '-std=gnu11'. AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in openbsd*) AC_DEFINE([_ISOC11_SOURCE], [1], [Define to enable the declarations of ISO C 11 types and functions.]) ;; esac ]) shishi-1.0.3/lib/gl/m4/strcase.m40000644000000000000000000000177414273615122013303 00000000000000# strcase.m4 serial 12 dnl Copyright (C) 2002, 2005-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_STRCASE], [ gl_FUNC_STRCASECMP gl_FUNC_STRNCASECMP ]) AC_DEFUN([gl_FUNC_STRCASECMP], [ AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) AC_CHECK_FUNCS([strcasecmp]) if test $ac_cv_func_strcasecmp = no; then HAVE_STRCASECMP=0 fi ]) AC_DEFUN([gl_FUNC_STRNCASECMP], [ AC_REQUIRE([gl_STRINGS_H_DEFAULTS]) AC_CHECK_FUNCS([strncasecmp]) if test $ac_cv_func_strncasecmp = yes; then HAVE_STRNCASECMP=1 else HAVE_STRNCASECMP=0 fi AC_CHECK_DECLS([strncasecmp]) if test $ac_cv_have_decl_strncasecmp = no; then HAVE_DECL_STRNCASECMP=0 fi ]) # Prerequisites of lib/strcasecmp.c. AC_DEFUN([gl_PREREQ_STRCASECMP], [ : ]) # Prerequisites of lib/strncasecmp.c. AC_DEFUN([gl_PREREQ_STRNCASECMP], [ : ]) shishi-1.0.3/lib/gl/m4/time_h.m40000644000000000000000000001623614273615123013104 00000000000000# Configure a more-standard replacement for . # Copyright (C) 2000-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc. # serial 19 # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Written by Paul Eggert and Jim Meyering. AC_DEFUN_ONCE([gl_TIME_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_TIME_H_DEFAULTS]) gl_NEXT_HEADERS([time.h]) AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) AC_REQUIRE([AC_C_RESTRICT]) AC_CACHE_CHECK([for TIME_UTC in ], [gl_cv_time_h_has_TIME_UTC], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static int x = TIME_UTC; x++;]])], [gl_cv_time_h_has_TIME_UTC=yes], [gl_cv_time_h_has_TIME_UTC=no])]) if test $gl_cv_time_h_has_TIME_UTC = yes; then TIME_H_DEFINES_TIME_UTC=1 else TIME_H_DEFINES_TIME_UTC=0 fi AC_SUBST([TIME_H_DEFINES_TIME_UTC]) ]) dnl Check whether 'struct timespec' is declared dnl in time.h, sys/time.h, pthread.h, or unistd.h. AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC], [ AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_time_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_time_h=yes], [gl_cv_sys_struct_timespec_in_time_h=no])]) TIME_H_DEFINES_STRUCT_TIMESPEC=0 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then TIME_H_DEFINES_STRUCT_TIMESPEC=1 else AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_sys_time_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_sys_time_h=yes], [gl_cv_sys_struct_timespec_in_sys_time_h=no])]) if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 else AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_pthread_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_pthread_h=yes], [gl_cv_sys_struct_timespec_in_pthread_h=no])]) if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 else AC_CACHE_CHECK([for struct timespec in ], [gl_cv_sys_struct_timespec_in_unistd_h], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[static struct timespec x; x.tv_sec = x.tv_nsec;]])], [gl_cv_sys_struct_timespec_in_unistd_h=yes], [gl_cv_sys_struct_timespec_in_unistd_h=no])]) if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 fi fi fi fi AC_SUBST([TIME_H_DEFINES_STRUCT_TIMESPEC]) AC_SUBST([SYS_TIME_H_DEFINES_STRUCT_TIMESPEC]) AC_SUBST([PTHREAD_H_DEFINES_STRUCT_TIMESPEC]) AC_SUBST([UNISTD_H_DEFINES_STRUCT_TIMESPEC]) ]) # gl_TIME_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_TIME_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_TIME_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_TIME_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CTIME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKTIME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOCALTIME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NANOSLEEP]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRFTIME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPTIME]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMEGM]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GET]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GETRES]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET]) dnl Support Microsoft deprecated alias function names by default. gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TZSET], [1]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_TIME_H_DEFAULTS]) ]) AC_DEFUN([gl_TIME_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_DECL_LOCALTIME_R=1; AC_SUBST([HAVE_DECL_LOCALTIME_R]) HAVE_NANOSLEEP=1; AC_SUBST([HAVE_NANOSLEEP]) HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME]) HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM]) HAVE_TIMESPEC_GET=1; AC_SUBST([HAVE_TIMESPEC_GET]) HAVE_TIMESPEC_GETRES=1; AC_SUBST([HAVE_TIMESPEC_GETRES]) dnl Even GNU libc does not have timezone_t yet. HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T]) dnl If another module says to replace or to not replace, do that. dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK; dnl this lets maintainers check for portability. REPLACE_CTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_CTIME]) REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; AC_SUBST([REPLACE_LOCALTIME_R]) REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME]) REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP]) REPLACE_STRFTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_STRFTIME]) REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM]) REPLACE_TZSET=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TZSET]) dnl Hack so that the time module doesn't depend on the sys_time module. dnl First, default GNULIB_GETTIMEOFDAY to 0 if sys_time is absent. : ${GNULIB_GETTIMEOFDAY=0}; AC_SUBST([GNULIB_GETTIMEOFDAY]) dnl Second, it's OK to not use GNULIB_PORTCHECK for REPLACE_GMTIME dnl and REPLACE_LOCALTIME, as portability to Solaris 2.6 and earlier dnl is no longer a big deal. REPLACE_GMTIME=0; AC_SUBST([REPLACE_GMTIME]) REPLACE_LOCALTIME=0; AC_SUBST([REPLACE_LOCALTIME]) ]) shishi-1.0.3/lib/gl/m4/lib-link.m40000644000000000000000000010561314273615122013335 00000000000000# lib-link.m4 serial 33 dnl Copyright (C) 2001-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.61]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_LINK_IFELSE( [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_libname_spec, dnl acl_library_names_spec, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Complain if config.rpath is missing. AC_REQUIRE_AUX_FILE([config.rpath]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) AC_ARG_WITH(PACK[-prefix], [[ --with-]]PACK[[-prefix[=DIR] search for ]]PACKLIBS[[ in DIR/include and DIR/lib --without-]]PACK[[-prefix don't search for ]]PACKLIBS[[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi ]) if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then dnl Really add $dependency_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then dnl Really add $dependency_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. dnl But on GNU systems, ignore -lc options, because dnl - linking with libc is the default anyway, dnl - linking with libc.a may produce an error dnl "/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/lib/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie" dnl or may produce an executable that always crashes, see dnl . dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2" \ && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2" \ && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) shishi-1.0.3/lib/gl/m4/mode_t.m40000644000000000000000000000234214273615122013076 00000000000000# mode_t.m4 serial 2 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # For using mode_t, it's sufficient to use AC_TYPE_MODE_T and # include . # Define PROMOTED_MODE_T to the type that is the result of "default argument # promotion" (ISO C 6.5.2.2.(6)) of the type mode_t. AC_DEFUN([gl_PROMOTED_TYPE_MODE_T], [ AC_REQUIRE([AC_TYPE_MODE_T]) AC_CACHE_CHECK([for promoted mode_t type], [gl_cv_promoted_mode_t], [ dnl Assume mode_t promotes to 'int' if and only if it is smaller than 'int', dnl and to itself otherwise. This assumption is not guaranteed by the ISO C dnl standard, but we don't know of any real-world counterexamples. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];]])], [gl_cv_promoted_mode_t='int'], [gl_cv_promoted_mode_t='mode_t']) ]) AC_DEFINE_UNQUOTED([PROMOTED_MODE_T], [$gl_cv_promoted_mode_t], [Define to the type that is the result of default argument promotions of type mode_t.]) ]) shishi-1.0.3/lib/gl/m4/errno_h.m40000644000000000000000000000564214273615122013271 00000000000000# errno_h.m4 serial 14 dnl Copyright (C) 2004, 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_PREREQ([2.61]) AC_DEFUN_ONCE([gl_HEADER_ERRNO_H], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([for complete errno.h], [gl_cv_header_errno_h_complete], [ AC_EGREP_CPP([booboo],[ #include #if !defined ETXTBSY booboo #endif #if !defined ENOMSG booboo #endif #if !defined EIDRM booboo #endif #if !defined ENOLINK booboo #endif #if !defined EPROTO booboo #endif #if !defined EMULTIHOP booboo #endif #if !defined EBADMSG booboo #endif #if !defined EOVERFLOW booboo #endif #if !defined ENOTSUP booboo #endif #if !defined ENETRESET booboo #endif #if !defined ECONNABORTED booboo #endif #if !defined ESTALE booboo #endif #if !defined EDQUOT booboo #endif #if !defined ECANCELED booboo #endif #if !defined EOWNERDEAD booboo #endif #if !defined ENOTRECOVERABLE booboo #endif #if !defined EILSEQ booboo #endif ], [gl_cv_header_errno_h_complete=no], [gl_cv_header_errno_h_complete=yes]) ]) if test $gl_cv_header_errno_h_complete = yes; then GL_GENERATE_ERRNO_H=false else gl_NEXT_HEADERS([errno.h]) GL_GENERATE_ERRNO_H=true fi gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) gl_REPLACE_ERRNO_VALUE([ENOLINK]) gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) ]) # Assuming $1 = EOVERFLOW. # The EOVERFLOW errno value ought to be defined in , according to # POSIX. But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and # some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. # Check for the value of EOVERFLOW. # Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. AC_DEFUN([gl_REPLACE_ERRNO_VALUE], [ if $GL_GENERATE_ERRNO_H; then AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ AC_EGREP_CPP([yes],[ #include #ifdef ]$1[ yes #endif ], [gl_cv_header_errno_h_]$1[=yes], [gl_cv_header_errno_h_]$1[=no]) if test $gl_cv_header_errno_h_]$1[ = no; then AC_EGREP_CPP([yes],[ #define _XOPEN_SOURCE_EXTENDED 1 #include #ifdef ]$1[ yes #endif ], [gl_cv_header_errno_h_]$1[=hidden]) if test $gl_cv_header_errno_h_]$1[ = hidden; then dnl The macro exists but is hidden. dnl Define it to the same value. AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [ #define _XOPEN_SOURCE_EXTENDED 1 #include /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include ]) fi fi ]) case $gl_cv_header_errno_h_]$1[ in yes | no) ]$1[_HIDDEN=0; ]$1[_VALUE= ;; *) ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1[" ;; esac AC_SUBST($1[_HIDDEN]) AC_SUBST($1[_VALUE]) fi ]) shishi-1.0.3/lib/gl/m4/select.m40000644000000000000000000000666314273615122013120 00000000000000# select.m4 serial 13 dnl Copyright (C) 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_SELECT], [ AC_REQUIRE([gl_SYS_SELECT_H]) AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([gl_SOCKETS]) if test "$ac_cv_header_winsock2_h" = yes; then REPLACE_SELECT=1 else dnl On Interix 3.5, select(0, NULL, NULL, NULL, timeout) fails with error dnl EFAULT. AC_CHECK_HEADERS_ONCE([sys/select.h]) AC_CACHE_CHECK([whether select supports a 0 argument], [gl_cv_func_select_supports0], [ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include #if HAVE_SYS_SELECT_H #include #endif int main () { struct timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 5; return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; }]])], [gl_cv_func_select_supports0=yes], [gl_cv_func_select_supports0=no], [ changequote(,)dnl case "$host_os" in # Guess no on Interix. interix*) gl_cv_func_select_supports0="guessing no";; # Guess yes otherwise. *) gl_cv_func_select_supports0="guessing yes";; esac changequote([,])dnl ]) ]) case "$gl_cv_func_select_supports0" in *yes) ;; *) REPLACE_SELECT=1 ;; esac dnl On FreeBSD 8.2, select() doesn't always reject bad fds. AC_CACHE_CHECK([whether select detects invalid fds], [gl_cv_func_select_detects_ebadf], [ AC_RUN_IFELSE([AC_LANG_PROGRAM([[ #include #include #if HAVE_SYS_SELECT_H # include #endif #include #include ]GL_MDA_DEFINES], [[ fd_set set; dup2(0, 16); FD_ZERO(&set); FD_SET(16, &set); close(16); struct timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 5; return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; ]])], [gl_cv_func_select_detects_ebadf=yes], [gl_cv_func_select_detects_ebadf=no], [ case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;; # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;; esac ]) ]) case $gl_cv_func_select_detects_ebadf in *yes) ;; *) REPLACE_SELECT=1 ;; esac fi dnl Determine the needed libraries. LIB_SELECT="$LIBSOCKET" if test $REPLACE_SELECT = 1; then case "$host_os" in mingw*) dnl On the MSVC platform, the function MsgWaitForMultipleObjects dnl (used in lib/select.c) requires linking with -luser32. On mingw, dnl it is implicit. AC_LINK_IFELSE( [AC_LANG_SOURCE([[ #define WIN32_LEAN_AND_MEAN #include int main () { MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); return 0; }]])], [], [LIB_SELECT="$LIB_SELECT -luser32"]) ;; esac fi AC_SUBST([LIB_SELECT]) ]) shishi-1.0.3/lib/gl/m4/fseek.m40000644000000000000000000000100514273615122012717 00000000000000# fseek.m4 serial 4 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FSEEK], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FSEEKO]) dnl When fseeko needs fixes, fseek needs them too. if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then REPLACE_FSEEK=1 fi ]) shishi-1.0.3/lib/gl/m4/getaddrinfo.m40000644000000000000000000001517014273615122014120 00000000000000# getaddrinfo.m4 serial 34 dnl Copyright (C) 2004-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_GETADDRINFO], [ AC_REQUIRE([gl_SYS_SOCKET_H])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H AC_REQUIRE([gl_NETDB_H])dnl for HAVE_NETDB_H GETADDRINFO_LIB= gai_saved_LIBS="$LIBS" dnl Where is getaddrinfo()? dnl - On Solaris, it is in libsocket. dnl - On Haiku, it is in libnetwork. dnl - On BeOS, it is in libnet. dnl - On native Windows, it is in ws2_32.dll. dnl - Otherwise it is in libc. AC_SEARCH_LIBS([getaddrinfo], [socket network net], [if test "$ac_cv_search_getaddrinfo" != "none required"; then GETADDRINFO_LIB="$ac_cv_search_getaddrinfo" fi]) LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" HAVE_GETADDRINFO=1 AC_CACHE_CHECK([for getaddrinfo], [gl_cv_func_getaddrinfo], [ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include ]], [[getaddrinfo("", "", NULL, NULL);]])], [gl_cv_func_getaddrinfo=yes], [gl_cv_func_getaddrinfo=no])]) if test $gl_cv_func_getaddrinfo = no; then AC_CACHE_CHECK([for getaddrinfo in ws2tcpip.h and -lws2_32], gl_cv_w32_getaddrinfo, [ gl_cv_w32_getaddrinfo=no am_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #ifdef HAVE_WS2TCPIP_H #include #endif #include ]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])], [gl_cv_w32_getaddrinfo=yes]) LIBS="$am_save_LIBS" ]) if test "$gl_cv_w32_getaddrinfo" = "yes"; then GETADDRINFO_LIB="-lws2_32" LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" dnl Check for correct signature, in particular for a cdecl-compatible dnl calling convention. AC_CACHE_CHECK([for getaddrinfo with POSIX signature], [gl_cv_func_getaddrinfo_posix_signature], [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include extern #ifdef __cplusplus "C" #endif int getaddrinfo (const char *, const char *, const struct addrinfo *, struct addrinfo **); ]])], [gl_cv_func_getaddrinfo_posix_signature=yes], [gl_cv_func_getaddrinfo_posix_signature=no]) ]) if test $gl_cv_func_getaddrinfo_posix_signature = no; then REPLACE_GETADDRINFO=1 fi else HAVE_GETADDRINFO=0 fi fi AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO], [$HAVE_GETADDRINFO], [Define to 1 if getaddrinfo exists, or to 0 otherwise.]) # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an # inline function declared in ws2tcpip.h, so we need to get that # header included somehow. AC_CHECK_DECLS([gai_strerror], [], [], [[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include ]]) if test $ac_cv_have_decl_gai_strerror = yes; then AC_CHECK_DECLS([gai_strerrorA], [], [], [[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include ]]) dnl check for correct signature AC_CACHE_CHECK([for gai_strerror with POSIX signature], [gl_cv_func_gai_strerror_posix_signature], [ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include extern #ifdef __cplusplus "C" #endif const char *gai_strerror(int);]])], [gl_cv_func_gai_strerror_posix_signature=yes], [gl_cv_func_gai_strerror_posix_signature=no])]) if test $gl_cv_func_gai_strerror_posix_signature = no; then REPLACE_GAI_STRERROR=1 fi fi LIBS="$gai_saved_LIBS" gl_PREREQ_GETADDRINFO AC_SUBST([GETADDRINFO_LIB]) ]) # Prerequisites of lib/netdb.in.h and lib/getaddrinfo.c. AC_DEFUN([gl_PREREQ_GETADDRINFO], [ AC_REQUIRE([gl_NETDB_H_DEFAULTS]) AC_REQUIRE([gl_SYS_SOCKET_H])dnl for HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H AC_REQUIRE([gl_HOSTENT]) dnl for HOSTENT_LIB AC_REQUIRE([gl_SERVENT]) dnl for SERVENT_LIB AC_REQUIRE([gl_FUNC_INET_NTOP]) dnl for INET_NTOP_LIB AC_REQUIRE([AC_C_RESTRICT]) AC_REQUIRE([gl_SOCKET_FAMILIES]) AC_REQUIRE([gl_SYS_SOCKET_H]) AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl Including sys/socket.h is wrong for Windows, but Windows does not dnl have sa_len so the result is correct anyway. AC_CHECK_MEMBERS([struct sockaddr.sa_len], , , [ #include #include ]) AC_CHECK_HEADERS_ONCE([netinet/in.h]) AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, getnameinfo],,,[[ /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif ]]) if test $ac_cv_have_decl_getaddrinfo = no; then HAVE_DECL_GETADDRINFO=0 fi if test $ac_cv_have_decl_freeaddrinfo = no; then HAVE_DECL_FREEADDRINFO=0 fi if test $ac_cv_have_decl_gai_strerror = no; then HAVE_DECL_GAI_STRERROR=0 fi if test $ac_cv_have_decl_getnameinfo = no; then HAVE_DECL_GETNAMEINFO=0 fi AC_CHECK_TYPES([struct addrinfo],,,[ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif ]) if test $ac_cv_type_struct_addrinfo = no; then HAVE_STRUCT_ADDRINFO=0 fi dnl Append $HOSTENT_LIB to GETADDRINFO_LIB, avoiding gratuitous duplicates. case " $GETADDRINFO_LIB " in *" $HOSTENT_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;; esac dnl Append $SERVENT_LIB to GETADDRINFO_LIB, avoiding gratuitous duplicates. case " $GETADDRINFO_LIB " in *" $SERVENT_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;; esac dnl Append $INET_NTOP_LIB to GETADDRINFO_LIB, avoiding gratuitous duplicates. case " $GETADDRINFO_LIB " in *" $INET_NTOP_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;; esac ]) shishi-1.0.3/lib/gl/m4/gnulib-cache.m40000644000000000000000000000644714273615123014163 00000000000000# Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # # This file represents the specification of how gnulib-tool is used. # It acts as a cache: It is written and read by gnulib-tool. # In projects that use version control, this file is meant to be put under # version control, like the configure.ac and various Makefile.am files. # Specification in the form of a command-line invocation: # gnulib-tool --import --local-dir=lib/gl \ # --lib=libgnu \ # --source-base=lib/gl \ # --m4-base=lib/gl/m4 \ # --doc-base=doc \ # --tests-base=lib/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=libgl \ # --avoid=xalloc-die \ # areadlink \ # arpa_inet \ # base64 \ # bind \ # close \ # connect \ # crc \ # crypto/arcfour \ # crypto/gc-des \ # crypto/gc-hmac-md5 \ # crypto/gc-hmac-sha1 \ # crypto/gc-md4 \ # crypto/gc-md5 \ # crypto/gc-pbkdf2-sha1 \ # crypto/gc-random \ # fcntl \ # getaddrinfo \ # getline \ # getpass \ # getsubopt \ # minmax \ # netinet_in \ # parse-datetime \ # read-file \ # recvfrom \ # select \ # sendto \ # shutdown \ # signal \ # socket \ # sockets \ # socklen \ # stat \ # stdint \ # strcase \ # strerror \ # strndup \ # strtok_r \ # strverscmp \ # sys_select \ # sys_socket \ # sys_stat \ # sys_time \ # time \ # timegm \ # unistd \ # vasnprintf \ # vasprintf \ # xalloc \ # xgetdomainname \ # xgethostname \ # xstrndup \ # xvasprintf # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([lib/gl]) gl_MODULES([ areadlink arpa_inet base64 bind close connect crc crypto/arcfour crypto/gc-des crypto/gc-hmac-md5 crypto/gc-hmac-sha1 crypto/gc-md4 crypto/gc-md5 crypto/gc-pbkdf2-sha1 crypto/gc-random fcntl getaddrinfo getline getpass getsubopt minmax netinet_in parse-datetime read-file recvfrom select sendto shutdown signal socket sockets socklen stat stdint strcase strerror strndup strtok_r strverscmp sys_select sys_socket sys_stat sys_time time timegm unistd vasnprintf vasprintf xalloc xgetdomainname xgethostname xstrndup xvasprintf ]) gl_AVOID([ xalloc-die]) gl_SOURCE_BASE([lib/gl]) gl_M4_BASE([lib/gl/m4]) gl_PO_BASE([]) gl_DOC_BASE([doc]) gl_TESTS_BASE([lib/gl/tests]) gl_LIB([libgnu]) gl_MAKEFILE_NAME([]) gl_LIBTOOL gl_MACRO_PREFIX([libgl]) gl_PO_DOMAIN([]) gl_WITNESS_C_MACRO([]) shishi-1.0.3/lib/gl/m4/inet_ntop.m40000644000000000000000000000446514273615122013636 00000000000000# inet_ntop.m4 serial 21 dnl Copyright (C) 2005-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_INET_NTOP], [ AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS]) dnl Persuade Solaris to declare inet_ntop. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_C_RESTRICT]) dnl Most platforms that provide inet_ntop define it in libc. dnl Solaris 8..10 provide inet_ntop in libnsl instead. dnl Solaris 2.6..7 provide inet_ntop in libresolv instead. dnl Haiku provides it in -lnetwork. dnl Native Windows provides it in -lws2_32 instead, with a declaration in dnl , and it uses stdcall calling convention, not cdecl dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). HAVE_INET_NTOP=1 INET_NTOP_LIB= gl_PREREQ_SYS_H_WINSOCK2 if test $HAVE_WINSOCK2_H = 1; then dnl It needs to be overridden, because the stdcall calling convention dnl is not compliant with POSIX. Set REPLACE_INET_NTOP in order to avoid dnl a name conflict at the linker level, even though the header file dnl declares inet_ntop only if _WIN32_WINNT >= 0x0600. REPLACE_INET_NTOP=1 AC_CHECK_DECLS([inet_ntop],,, [[#include ]]) if test $ac_cv_have_decl_inet_ntop = yes; then INET_NTOP_LIB="-lws2_32" else HAVE_DECL_INET_NTOP=0 fi else gl_save_LIBS=$LIBS AC_SEARCH_LIBS([inet_ntop], [nsl resolv network], [], [AC_CHECK_FUNCS([inet_ntop]) if test $ac_cv_func_inet_ntop = no; then HAVE_INET_NTOP=0 fi ]) LIBS=$gl_save_LIBS if test "$ac_cv_search_inet_ntop" != "no" \ && test "$ac_cv_search_inet_ntop" != "none required"; then INET_NTOP_LIB="$ac_cv_search_inet_ntop" fi AC_CHECK_HEADERS_ONCE([netdb.h]) AC_CHECK_DECLS([inet_ntop],,, [[#include #if HAVE_NETDB_H # include #endif ]]) if test $ac_cv_have_decl_inet_ntop = no; then HAVE_DECL_INET_NTOP=0 fi fi AC_SUBST([INET_NTOP_LIB]) ]) # Prerequisites of lib/inet_ntop.c. AC_DEFUN([gl_PREREQ_INET_NTOP], [ AC_REQUIRE([gl_SOCKET_FAMILIES]) ]) shishi-1.0.3/lib/gl/size_max.h0000644000000000000000000000225314273615123013037 00000000000000/* size_max.h -- declare SIZE_MAX through system headers Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef GNULIB_SIZE_MAX_H #define GNULIB_SIZE_MAX_H /* Get SIZE_MAX declaration on systems like Solaris 7/8/9. */ # include /* Get SIZE_MAX declaration on systems like glibc 2. */ # if HAVE_STDINT_H # include # endif /* On systems where these include files don't define it, SIZE_MAX is defined in config.h. */ #endif /* GNULIB_SIZE_MAX_H */ shishi-1.0.3/lib/gl/memxor.c0000644000000000000000000000215314273615123012521 00000000000000/* Binary exclusive OR operation of two memory blocks. -*- coding: utf-8 -*- Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. The interface was inspired by memxor in Niels Möller's Nettle. */ #include #include "memxor.h" void * memxor (void *restrict dest, const void *restrict src, size_t n) { char const *s = src; char *d = dest; for (; n > 0; n--) *d++ ^= *s++; return dest; } shishi-1.0.3/lib/gl/string.in.h0000644000000000000000000014024514273615123013137 00000000000000/* A GNU-like . Copyright (C) 1995-1996, 2001-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _GL_ALREADY_INCLUDING_STRING_H /* Special invocation convention: - On OS X/NetBSD we have a sequence of nested includes -> -> "string.h" In this situation system _chk variants due to -D_FORTIFY_SOURCE might be used after any replacements defined here. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STRING_H #define _GL_ALREADY_INCLUDING_STRING_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #undef _GL_ALREADY_INCLUDING_STRING_H #ifndef _@GUARD_PREFIX@_STRING_H #define _@GUARD_PREFIX@_STRING_H /* NetBSD 5.0 mis-defines NULL. */ #include /* MirBSD defines mbslen as a macro. */ #if @GNULIB_MBSLEN@ && defined __MirBSD__ # include #endif /* NetBSD 5.0 declares strsignal in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_STRSIGNAL@ || defined GNULIB_POSIXCHECK) && defined __NetBSD__ \ && ! defined __GLIBC__ # include #endif /* AIX 7.2 declares ffsl and ffsll in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \ && defined _AIX) \ && ! defined __GLIBC__ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #ifndef _GL_ATTRIBUTE_MALLOC # if __GNUC__ >= 3 || defined __clang__ # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define _GL_ATTRIBUTE_MALLOC # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The attribute __pure__ was added in gcc 2.96. */ #ifndef _GL_ATTRIBUTE_PURE # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define _GL_ATTRIBUTE_PURE /* empty */ # endif #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though may not have been included yet. */ #if @GNULIB_FREE_POSIX@ # if (@REPLACE_FREE@ && !defined free \ && !(defined __cplusplus && defined GNULIB_NAMESPACE)) /* We can't do '#define free rpl_free' here. */ _GL_EXTERN_C void rpl_free (void *); # undef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1) # else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif # endif #else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif #endif /* Clear a block of memory. The compiler will not delete a call to this function, even if the block is dead after the call. */ #if @GNULIB_EXPLICIT_BZERO@ # if ! @HAVE_EXPLICIT_BZERO@ _GL_FUNCDECL_SYS (explicit_bzero, void, (void *__dest, size_t __n) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (explicit_bzero, void, (void *__dest, size_t __n)); _GL_CXXALIASWARN (explicit_bzero); #elif defined GNULIB_POSIXCHECK # undef explicit_bzero # if HAVE_RAW_DECL_EXPLICIT_BZERO _GL_WARN_ON_USE (explicit_bzero, "explicit_bzero is unportable - " "use gnulib module explicit_bzero for portability"); # endif #endif /* Find the index of the least-significant set bit. */ #if @GNULIB_FFSL@ # if !@HAVE_FFSL@ _GL_FUNCDECL_SYS (ffsl, int, (long int i)); # endif _GL_CXXALIAS_SYS (ffsl, int, (long int i)); _GL_CXXALIASWARN (ffsl); #elif defined GNULIB_POSIXCHECK # undef ffsl # if HAVE_RAW_DECL_FFSL _GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module"); # endif #endif /* Find the index of the least-significant set bit. */ #if @GNULIB_FFSLL@ # if @REPLACE_FFSLL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define ffsll rpl_ffsll # endif _GL_FUNCDECL_RPL (ffsll, int, (long long int i)); _GL_CXXALIAS_RPL (ffsll, int, (long long int i)); # else # if !@HAVE_FFSLL@ _GL_FUNCDECL_SYS (ffsll, int, (long long int i)); # endif _GL_CXXALIAS_SYS (ffsll, int, (long long int i)); # endif _GL_CXXALIASWARN (ffsll); #elif defined GNULIB_POSIXCHECK # undef ffsll # if HAVE_RAW_DECL_FFSLL _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module"); # endif #endif #if @GNULIB_MDA_MEMCCPY@ /* On native Windows, map 'memccpy' to '_memccpy', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::memccpy always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef memccpy # define memccpy _memccpy # endif _GL_CXXALIAS_MDA (memccpy, void *, (void *dest, const void *src, int c, size_t n)); # else _GL_CXXALIAS_SYS (memccpy, void *, (void *dest, const void *src, int c, size_t n)); # endif _GL_CXXALIASWARN (memccpy); #endif /* Return the first instance of C within N bytes of S, or NULL. */ #if @GNULIB_MEMCHR@ # if @REPLACE_MEMCHR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef memchr # define memchr rpl_memchr # endif _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); # else /* On some systems, this function is defined as an overloaded function: extern "C" { const void * std::memchr (const void *, int, size_t); } extern "C++" { void * std::memchr (void *, int, size_t); } */ _GL_CXXALIAS_SYS_CAST2 (memchr, void *, (void const *__s, int __c, size_t __n), void const *, (void const *__s, int __c, size_t __n)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n) throw ()); _GL_CXXALIASWARN1 (memchr, void const *, (void const *__s, int __c, size_t __n) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (memchr); # endif #elif defined GNULIB_POSIXCHECK # undef memchr /* Assume memchr is always declared. */ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " "use gnulib module memchr for portability" ); #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ # if @REPLACE_MEMMEM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define memmem rpl_memmem # endif _GL_FUNCDECL_RPL (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len)); # else # if ! @HAVE_DECL_MEMMEM@ _GL_FUNCDECL_SYS (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 3))); # endif _GL_CXXALIAS_SYS (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len)); # endif _GL_CXXALIASWARN (memmem); #elif defined GNULIB_POSIXCHECK # undef memmem # if HAVE_RAW_DECL_MEMMEM _GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " "use gnulib module memmem-simple for portability, " "and module memmem for speed" ); # endif #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ _GL_FUNCDECL_SYS (mempcpy, void *, (void *restrict __dest, void const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (mempcpy, void *, (void *restrict __dest, void const *restrict __src, size_t __n)); _GL_CXXALIASWARN (mempcpy); #elif defined GNULIB_POSIXCHECK # undef mempcpy # if HAVE_RAW_DECL_MEMPCPY _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " "use gnulib module mempcpy for portability"); # endif #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ _GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const void * std::memrchr (const void *, int, size_t); } extern "C++" { void * std::memrchr (void *, int, size_t); } */ _GL_CXXALIAS_SYS_CAST2 (memrchr, void *, (void const *, int, size_t), void const *, (void const *, int, size_t)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t) throw ()); _GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t) throw ()); # else _GL_CXXALIASWARN (memrchr); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr # if HAVE_RAW_DECL_MEMRCHR _GL_WARN_ON_USE (memrchr, "memrchr is unportable - " "use gnulib module memrchr for portability"); # endif #endif /* Find the first occurrence of C in S. More efficient than memchr(S,C,N), at the expense of undefined behavior if C does not occur within N bytes. */ #if @GNULIB_RAWMEMCHR@ # if ! @HAVE_RAWMEMCHR@ _GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const void * std::rawmemchr (const void *, int); } extern "C++" { void * std::rawmemchr (void *, int); } */ _GL_CXXALIAS_SYS_CAST2 (rawmemchr, void *, (void const *__s, int __c_in), void const *, (void const *__s, int __c_in)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in) throw ()); _GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in) throw ()); # else _GL_CXXALIASWARN (rawmemchr); # endif #elif defined GNULIB_POSIXCHECK # undef rawmemchr # if HAVE_RAW_DECL_RAWMEMCHR _GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " "use gnulib module rawmemchr for portability"); # endif #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ _GL_FUNCDECL_SYS (stpcpy, char *, (char *restrict __dst, char const *restrict __src) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (stpcpy, char *, (char *restrict __dst, char const *restrict __src)); _GL_CXXALIASWARN (stpcpy); #elif defined GNULIB_POSIXCHECK # undef stpcpy # if HAVE_RAW_DECL_STPCPY _GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " "use gnulib module stpcpy for portability"); # endif #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ # if @REPLACE_STPNCPY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef stpncpy # define stpncpy rpl_stpncpy # endif _GL_FUNCDECL_RPL (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n)); # else # if ! @HAVE_STPNCPY@ _GL_FUNCDECL_SYS (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n)); # endif _GL_CXXALIASWARN (stpncpy); #elif defined GNULIB_POSIXCHECK # undef stpncpy # if HAVE_RAW_DECL_STPNCPY _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " "use gnulib module stpncpy for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr /* Assume strchr is always declared. */ _GL_WARN_ON_USE_CXX (strchr, const char *, char *, (const char *, int), "strchr cannot work correctly on character strings " "in some multibyte locales - " "use mbschr if you care about internationalization"); #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if @REPLACE_STRCHRNUL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strchrnul rpl_strchrnul # endif _GL_FUNCDECL_RPL (strchrnul, char *, (const char *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strchrnul, char *, (const char *str, int ch)); # else # if ! @HAVE_STRCHRNUL@ _GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * std::strchrnul (const char *, int); } extern "C++" { char * std::strchrnul (char *, int); } */ _GL_CXXALIAS_SYS_CAST2 (strchrnul, char *, (char const *__s, int __c_in), char const *, (char const *__s, int __c_in)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in) throw ()); _GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in) throw ()); # else _GL_CXXALIASWARN (strchrnul); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul # if HAVE_RAW_DECL_STRCHRNUL _GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " "use gnulib module strchrnul for portability"); # endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ # if @REPLACE_STRDUP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup rpl_strdup # endif _GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (strdup, char *, (char const *__s)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup _strdup # endif _GL_CXXALIAS_MDA (strdup, char *, (char const *__s)); # else # if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup /* strdup exists as a function and as a macro. Get rid of the macro. */ # undef strdup # endif # if (!@HAVE_DECL_STRDUP@ || __GNUC__ >= 11) && !defined strdup _GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif _GL_CXXALIASWARN (strdup); #else # if __GNUC__ >= 11 && !defined strdup /* For -Wmismatched-dealloc: Associate strdup with free or rpl_free. */ _GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef strdup # if HAVE_RAW_DECL_STRDUP _GL_WARN_ON_USE (strdup, "strdup is unportable - " "use gnulib module strdup for portability"); # endif # elif @GNULIB_MDA_STRDUP@ /* On native Windows, map 'creat' to '_creat', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::strdup always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup _strdup # endif _GL_CXXALIAS_MDA (strdup, char *, (char const *__s)); # else # if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup # undef strdup # endif _GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif _GL_CXXALIASWARN (strdup); # endif #endif /* Append no more than N characters from SRC onto DEST. */ #if @GNULIB_STRNCAT@ # if @REPLACE_STRNCAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strncat # define strncat rpl_strncat # endif _GL_FUNCDECL_RPL (strncat, char *, (char *restrict dest, const char *restrict src, size_t n) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strncat, char *, (char *restrict dest, const char *restrict src, size_t n)); # else _GL_CXXALIAS_SYS (strncat, char *, (char *restrict dest, const char *restrict src, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strncat); # endif #elif defined GNULIB_POSIXCHECK # undef strncat # if HAVE_RAW_DECL_STRNCAT _GL_WARN_ON_USE (strncat, "strncat is unportable - " "use gnulib module strncat for portability"); # endif #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ # if @REPLACE_STRNDUP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strndup # define strndup rpl_strndup # endif _GL_FUNCDECL_RPL (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (strndup, char *, (char const *__s, size_t __n)); # else # if !@HAVE_DECL_STRNDUP@ || (__GNUC__ >= 11 && !defined strndup) _GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (strndup, char *, (char const *__s, size_t __n)); # endif _GL_CXXALIASWARN (strndup); #else # if __GNUC__ >= 11 && !defined strndup /* For -Wmismatched-dealloc: Associate strndup with free or rpl_free. */ _GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef strndup # if HAVE_RAW_DECL_STRNDUP _GL_WARN_ON_USE (strndup, "strndup is unportable - " "use gnulib module strndup for portability"); # endif # endif #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ # if @REPLACE_STRNLEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strnlen # define strnlen rpl_strnlen # endif _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__s, size_t __maxlen) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__s, size_t __maxlen)); # else # if ! @HAVE_DECL_STRNLEN@ _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__s, size_t __maxlen) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__s, size_t __maxlen)); # endif _GL_CXXALIASWARN (strnlen); #elif defined GNULIB_POSIXCHECK # undef strnlen # if HAVE_RAW_DECL_STRNLEN _GL_WARN_ON_USE (strnlen, "strnlen is unportable - " "use gnulib module strnlen for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strcspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn /* Assume strcspn is always declared. */ _GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " "in multibyte locales - " "use mbscspn if you care about internationalization"); #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ _GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif /* On some systems, this function is defined as an overloaded function: extern "C" { const char * strpbrk (const char *, const char *); } extern "C++" { char * strpbrk (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strpbrk, char *, (char const *__s, char const *__accept), const char *, (char const *__s, char const *__accept)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept) throw ()); _GL_CXXALIASWARN1 (strpbrk, char const *, (char const *__s, char const *__accept) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (strpbrk); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk _GL_WARN_ON_USE_CXX (strpbrk, const char *, char *, (const char *, const char *), "strpbrk cannot work correctly on character strings " "in multibyte locales - " "use mbspbrk if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk # if HAVE_RAW_DECL_STRPBRK _GL_WARN_ON_USE_CXX (strpbrk, const char *, char *, (const char *, const char *), "strpbrk is unportable - " "use gnulib module strpbrk for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn /* Assume strspn is always declared. */ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " "in multibyte locales - " "use mbsspn if you care about internationalization"); #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr /* Assume strrchr is always declared. */ _GL_WARN_ON_USE_CXX (strrchr, const char *, char *, (const char *, int), "strrchr cannot work correctly on character strings " "in some multibyte locales - " "use mbsrchr if you care about internationalization"); #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next char after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of strtok() that is multithread-safe and supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ _GL_FUNCDECL_SYS (strsep, char *, (char **restrict __stringp, char const *restrict __delim) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (strsep, char *, (char **restrict __stringp, char const *restrict __delim)); _GL_CXXALIASWARN (strsep); # if defined GNULIB_POSIXCHECK # undef strsep _GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " "in multibyte locales - " "use mbssep if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strsep # if HAVE_RAW_DECL_STRSEP _GL_WARN_ON_USE (strsep, "strsep is unportable - " "use gnulib module strsep for portability"); # endif #endif #if @GNULIB_STRSTR@ # if @REPLACE_STRSTR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strstr rpl_strstr # endif _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); # else /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * strstr (const char *, const char *); } extern "C++" { char * strstr (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strstr, char *, (const char *haystack, const char *needle), const char *, (const char *haystack, const char *needle)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle) throw ()); _GL_CXXALIASWARN1 (strstr, const char *, (const char *haystack, const char *needle) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (strstr); # endif #elif defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr /* Assume strstr is always declared. */ _GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " "work correctly on character strings in most " "multibyte locales - " "use mbsstr if you care about internationalization, " "or use strstr if you care about speed"); #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ #if @GNULIB_STRCASESTR@ # if @REPLACE_STRCASESTR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strcasestr rpl_strcasestr # endif _GL_FUNCDECL_RPL (strcasestr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strcasestr, char *, (const char *haystack, const char *needle)); # else # if ! @HAVE_STRCASESTR@ _GL_FUNCDECL_SYS (strcasestr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * strcasestr (const char *, const char *); } extern "C++" { char * strcasestr (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strcasestr, char *, (const char *haystack, const char *needle), const char *, (const char *haystack, const char *needle)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle) throw ()); _GL_CXXALIASWARN1 (strcasestr, const char *, (const char *haystack, const char *needle) throw ()); # else _GL_CXXALIASWARN (strcasestr); # endif #elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr # if HAVE_RAW_DECL_STRCASESTR _GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " "strings in multibyte locales - " "use mbscasestr if you care about " "internationalization, or use c-strcasestr if you want " "a locale independent function"); # endif #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = strtok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. For the POSIX documentation for this function, see: https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtok.html Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strsep(). */ #if @GNULIB_STRTOK_R@ # if @REPLACE_STRTOK_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strtok_r # define strtok_r rpl_strtok_r # endif _GL_FUNCDECL_RPL (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr)); # else # if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK # undef strtok_r # endif # if ! @HAVE_DECL_STRTOK_R@ _GL_FUNCDECL_SYS (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr)); # endif _GL_CXXALIASWARN (strtok_r); # if defined GNULIB_POSIXCHECK _GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " "strings in multibyte locales - " "use mbstok_r if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r # if HAVE_RAW_DECL_STRTOK_R _GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " "use gnulib module strtok_r for portability"); # endif #endif /* The following functions are not specified by POSIX. They are gnulib extensions. */ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ # ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */ # undef mbslen # endif # if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbslen rpl_mbslen # endif _GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbslen, size_t, (const char *string)); # else _GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbslen, size_t, (const char *string)); # endif _GL_CXXALIASWARN (mbslen); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ _GL_EXTERN_C size_t mbsnlen (const char *string, size_t len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1)); #endif #if @GNULIB_MBSCHR@ /* Locate the first single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # if defined __hpux # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbschr rpl_mbschr /* avoid collision with HP-UX function */ # endif _GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c)); # else _GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c)); # endif _GL_CXXALIASWARN (mbschr); #endif #if @GNULIB_MBSRCHR@ /* Locate the last single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # if defined __hpux || defined __INTERIX # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbsrchr rpl_mbsrchr /* avoid collision with system function */ # endif _GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c)); # else _GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c)); # endif _GL_CXXALIASWARN (mbsrchr); #endif #if @GNULIB_MBSSTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ _GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASECMP@ /* Compare the character strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ _GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSNCASECMP@ /* Compare the initial segment of the character string S1 consisting of at most N characters with the initial segment of the character string S2 consisting of at most N characters, ignoring case, returning less than, equal to or greater than zero if the initial segment of S1 is lexicographically less than, equal to or greater than the initial segment of S2. Note: This function may, in multibyte locales, return 0 for initial segments of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ _GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPCASECMP@ /* Compare the initial segment of the character string STRING consisting of at most mbslen (PREFIX) characters with the character string PREFIX, ignoring case. If the two match, return a pointer to the first byte after this prefix in STRING. Otherwise, return NULL. Note: This function may, in multibyte locales, return non-NULL if STRING is of smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ _GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASESTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK, using case-insensitive comparison. Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ _GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCSPN@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ _GL_EXTERN_C size_t mbscspn (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPBRK@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ # if defined __hpux # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ # endif _GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept)); # else _GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept)); # endif _GL_CXXALIASWARN (mbspbrk); #endif #if @GNULIB_MBSSPN@ /* Find the first occurrence in the character string STRING of any character not in the character string REJECT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ _GL_EXTERN_C size_t mbsspn (const char *string, const char *reject) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSSEP@ /* Search the next delimiter (multibyte character listed in the character string DELIM) starting at the character string *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next multibyte character after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of mbstok_r() that supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ _GL_EXTERN_C char * mbssep (char **stringp, const char *delim) _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSTOK_R@ /* Parse the character string STRING into tokens separated by characters in the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = mbstok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ _GL_EXTERN_C char * mbstok_r (char *restrict string, const char *delim, char **save_ptr) _GL_ARG_NONNULL ((2, 3)); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerror # define strerror rpl_strerror # endif _GL_FUNCDECL_RPL (strerror, char *, (int)); _GL_CXXALIAS_RPL (strerror, char *, (int)); # else _GL_CXXALIAS_SYS (strerror, char *, (int)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strerror); # endif #elif defined GNULIB_POSIXCHECK # undef strerror /* Assume strerror is always declared. */ _GL_WARN_ON_USE (strerror, "strerror is unportable - " "use gnulib module strerror to guarantee non-NULL result"); #endif /* Map any int, typically from errno, into an error message. Multithread-safe. Uses the POSIX declaration, not the glibc declaration. */ #if @GNULIB_STRERROR_R@ # if @REPLACE_STRERROR_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerror_r # define strerror_r rpl_strerror_r # endif _GL_FUNCDECL_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen)); # else # if !@HAVE_DECL_STRERROR_R@ _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); # endif # if @HAVE_DECL_STRERROR_R@ _GL_CXXALIASWARN (strerror_r); # endif #elif defined GNULIB_POSIXCHECK # undef strerror_r # if HAVE_RAW_DECL_STRERROR_R _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - " "use gnulib module strerror_r-posix for portability"); # endif #endif /* Return the name of the system error code ERRNUM. */ #if @GNULIB_STRERRORNAME_NP@ # if @REPLACE_STRERRORNAME_NP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerrorname_np # define strerrorname_np rpl_strerrorname_np # endif _GL_FUNCDECL_RPL (strerrorname_np, const char *, (int errnum)); _GL_CXXALIAS_RPL (strerrorname_np, const char *, (int errnum)); # else # if !@HAVE_STRERRORNAME_NP@ _GL_FUNCDECL_SYS (strerrorname_np, const char *, (int errnum)); # endif _GL_CXXALIAS_SYS (strerrorname_np, const char *, (int errnum)); # endif _GL_CXXALIASWARN (strerrorname_np); #elif defined GNULIB_POSIXCHECK # undef strerrorname_np # if HAVE_RAW_DECL_STRERRORNAME_NP _GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - " "use gnulib module strerrorname_np for portability"); # endif #endif /* Return an abbreviation string for the signal number SIG. */ #if @GNULIB_SIGABBREV_NP@ # if ! @HAVE_SIGABBREV_NP@ _GL_FUNCDECL_SYS (sigabbrev_np, const char *, (int sig)); # endif _GL_CXXALIAS_SYS (sigabbrev_np, const char *, (int sig)); _GL_CXXALIASWARN (sigabbrev_np); #elif defined GNULIB_POSIXCHECK # undef sigabbrev_np # if HAVE_RAW_DECL_SIGABBREV_NP _GL_WARN_ON_USE (sigabbrev_np, "sigabbrev_np is unportable - " "use gnulib module sigabbrev_np for portability"); # endif #endif /* Return an English description string for the signal number SIG. */ #if @GNULIB_SIGDESCR_NP@ # if ! @HAVE_SIGDESCR_NP@ _GL_FUNCDECL_SYS (sigdescr_np, const char *, (int sig)); # endif _GL_CXXALIAS_SYS (sigdescr_np, const char *, (int sig)); _GL_CXXALIASWARN (sigdescr_np); #elif defined GNULIB_POSIXCHECK # undef sigdescr_np # if HAVE_RAW_DECL_SIGDESCR_NP _GL_WARN_ON_USE (sigdescr_np, "sigdescr_np is unportable - " "use gnulib module sigdescr_np for portability"); # endif #endif #if @GNULIB_STRSIGNAL@ # if @REPLACE_STRSIGNAL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strsignal rpl_strsignal # endif _GL_FUNCDECL_RPL (strsignal, char *, (int __sig)); _GL_CXXALIAS_RPL (strsignal, char *, (int __sig)); # else # if ! @HAVE_DECL_STRSIGNAL@ _GL_FUNCDECL_SYS (strsignal, char *, (int __sig)); # endif /* Need to cast, because on Cygwin 1.5.x systems, the return type is 'const char *'. */ _GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); # endif _GL_CXXALIASWARN (strsignal); #elif defined GNULIB_POSIXCHECK # undef strsignal # if HAVE_RAW_DECL_STRSIGNAL _GL_WARN_ON_USE (strsignal, "strsignal is unportable - " "use gnulib module strsignal for portability"); # endif #endif #if @GNULIB_STRVERSCMP@ # if !@HAVE_STRVERSCMP@ _GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); _GL_CXXALIASWARN (strverscmp); #elif defined GNULIB_POSIXCHECK # undef strverscmp # if HAVE_RAW_DECL_STRVERSCMP _GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " "use gnulib module strverscmp for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_STRING_H */ #endif /* _@GUARD_PREFIX@_STRING_H */ #endif shishi-1.0.3/lib/gl/strtok_r.c0000644000000000000000000000413614273615123013064 00000000000000/* Reentrant string tokenizer. Generic version. Copyright (C) 1991, 1996-1999, 2001, 2004, 2007, 2009-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifdef HAVE_CONFIG_H # include #endif #include #ifdef _LIBC # undef strtok_r # undef __strtok_r #else # define __strtok_r strtok_r # define __rawmemchr strchr #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = strtok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" */ char * __strtok_r (char *s, const char *delim, char **save_ptr) { char *token; if (s == NULL) s = *save_ptr; /* Scan leading delimiters. */ s += strspn (s, delim); if (*s == '\0') { *save_ptr = s; return NULL; } /* Find the end of the token. */ token = s; s = strpbrk (token, delim); if (s == NULL) /* This token finishes the string. */ *save_ptr = __rawmemchr (token, '\0'); else { /* Terminate the token and make *SAVE_PTR point past it. */ *s = '\0'; *save_ptr = s + 1; } return token; } #ifdef weak_alias libc_hidden_def (__strtok_r) weak_alias (__strtok_r, strtok_r) #endif shishi-1.0.3/lib/gl/reallocarray.c0000644000000000000000000000220114273615123013664 00000000000000/* reallocarray function that is glibc compatible. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Darshit Shah */ #include #include #include #include "intprops.h" void * reallocarray (void *ptr, size_t nmemb, size_t size) { size_t nbytes; if (INT_MULTIPLY_WRAPV (nmemb, size, &nbytes)) { errno = ENOMEM; return NULL; } /* Rely on the semantics of GNU realloc. */ return realloc (ptr, nbytes); } shishi-1.0.3/lib/gl/warn-on-use.h0000644000000000000000000001553214273615123013377 00000000000000/* A C macro for emitting warnings if a function is used. Copyright (C) 2010-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* _GL_WARN_ON_USE (function, "literal string") issues a declaration for FUNCTION which will then trigger a compiler warning containing the text of "literal string" anywhere that function is called, if supported by the compiler. If the compiler does not support this feature, the macro expands to an unused extern declaration. _GL_WARN_ON_USE_ATTRIBUTE ("literal string") expands to the attribute used in _GL_WARN_ON_USE. If the compiler does not support this feature, it expands to empty. These macros are useful for marking a function as a potential portability trap, with the intent that "literal string" include instructions on the replacement function that should be used instead. _GL_WARN_ON_USE is for functions with 'extern' linkage. _GL_WARN_ON_USE_ATTRIBUTE is for functions with 'static' or 'inline' linkage. However, one of the reasons that a function is a portability trap is if it has the wrong signature. Declaring FUNCTION with a different signature in C is a compilation error, so this macro must use the same type as any existing declaration so that programs that avoid the problematic FUNCTION do not fail to compile merely because they included a header that poisoned the function. But this implies that _GL_WARN_ON_USE is only safe to use if FUNCTION is known to already have a declaration. Use of this macro implies that there must not be any other macro hiding the declaration of FUNCTION; but undefining FUNCTION first is part of the poisoning process anyway (although for symbols that are provided only via a macro, the result is a compilation error rather than a warning containing "literal string"). Also note that in C++, it is only safe to use if FUNCTION has no overloads. For an example, it is possible to poison 'getline' by: - adding a call to gl_WARN_ON_USE_PREPARE([[#include ]], [getline]) in configure.ac, which potentially defines HAVE_RAW_DECL_GETLINE - adding this code to a header that wraps the system : #undef getline #if HAVE_RAW_DECL_GETLINE _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" "not universally present; use the gnulib module getline"); #endif It is not possible to directly poison global variables. But it is possible to write a wrapper accessor function, and poison that (less common usage, like &environ, will cause a compilation error rather than issue the nice warning, but the end result of informing the developer about their portability problem is still achieved): #if HAVE_RAW_DECL_ENVIRON static char *** rpl_environ (void) { return &environ; } _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); # undef environ # define environ (*rpl_environ ()) #endif or better (avoiding contradictory use of 'static' and 'extern'): #if HAVE_RAW_DECL_ENVIRON static char *** _GL_WARN_ON_USE_ATTRIBUTE ("environ is not always properly declared") rpl_environ (void) { return &environ; } # undef environ # define environ (*rpl_environ ()) #endif */ #ifndef _GL_WARN_ON_USE # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) /* A compiler attribute is available in gcc versions 4.3.0 and later. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function __attribute__ ((__warning__ (message))) # define _GL_WARN_ON_USE_ATTRIBUTE(message) \ __attribute__ ((__warning__ (message))) # elif __clang_major__ >= 4 /* Another compiler attribute is available in clang. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function \ __attribute__ ((__diagnose_if__ (1, message, "warning"))) # define _GL_WARN_ON_USE_ATTRIBUTE(message) \ __attribute__ ((__diagnose_if__ (1, message, "warning"))) # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING /* Verify the existence of the function. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function # define _GL_WARN_ON_USE_ATTRIBUTE(message) # else /* Unsupported. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C int _gl_warn_on_use # define _GL_WARN_ON_USE_ATTRIBUTE(message) # endif #endif /* _GL_WARN_ON_USE_CXX (function, rettype_gcc, rettype_clang, parameters_and_attributes, "message") is like _GL_WARN_ON_USE (function, "message"), except that in C++ mode the function is declared with the given prototype, consisting of return type, parameters, and attributes. This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does not work in this case. */ #ifndef _GL_WARN_ON_USE_CXX # if !defined __cplusplus # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ _GL_WARN_ON_USE (function, msg) # else # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) /* A compiler attribute is available in gcc versions 4.3.0 and later. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_gcc function parameters_and_attributes \ __attribute__ ((__warning__ (msg))) # elif __clang_major__ >= 4 /* Another compiler attribute is available in clang. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_clang function parameters_and_attributes \ __attribute__ ((__diagnose_if__ (1, msg, "warning"))) # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING /* Verify the existence of the function. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_gcc function parameters_and_attributes # else /* Unsupported. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ _GL_WARN_EXTERN_C int _gl_warn_on_use # endif # endif #endif /* _GL_WARN_EXTERN_C declaration; performs the declaration with C linkage. */ #ifndef _GL_WARN_EXTERN_C # if defined __cplusplus # define _GL_WARN_EXTERN_C extern "C" # else # define _GL_WARN_EXTERN_C extern # endif #endif shishi-1.0.3/lib/gl/socket.c0000644000000000000000000000274214273615123012506 00000000000000/* socket.c --- wrappers for Windows socket function Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paolo Bonzini */ #include #define WIN32_LEAN_AND_MEAN /* Get winsock2.h. */ #include /* Get set_winsock_errno, FD_TO_SOCKET etc. */ #include "w32sock.h" #include "sockets.h" /* Don't assume that UNICODE is defined. */ #undef WSASocket #define WSASocket WSASocketW int rpl_socket (int domain, int type, int protocol) { SOCKET fh; gl_sockets_startup (SOCKETS_1_1); /* We have to use WSASocket() to create non-overlapped IO sockets. Overlapped IO sockets cannot be used with read/write. */ fh = WSASocket (domain, type, protocol, NULL, 0, 0); if (fh == INVALID_SOCKET) { set_winsock_errno (); return -1; } else return SOCKET_TO_FD (fh); } shishi-1.0.3/lib/gl/timespec.c0000644000000000000000000000152214273615123013022 00000000000000/* Inline functions for . Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_TIMESPEC_INLINE _GL_EXTERN_INLINE #include "timespec.h" shishi-1.0.3/lib/gl/strncasecmp.c0000644000000000000000000000360114273615123013533 00000000000000/* strncasecmp.c -- case insensitive string comparator Copyright (C) 1998-1999, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #define TOLOWER(Ch) (isupper (Ch) ? tolower (Ch) : (Ch)) /* Compare no more than N bytes of strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function cannot work correctly in multibyte locales. */ int strncasecmp (const char *s1, const char *s2, size_t n) { register const unsigned char *p1 = (const unsigned char *) s1; register const unsigned char *p2 = (const unsigned char *) s2; unsigned char c1, c2; if (p1 == p2 || n == 0) return 0; do { c1 = TOLOWER (*p1); c2 = TOLOWER (*p2); if (--n == 0 || c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); if (UCHAR_MAX <= INT_MAX) return c1 - c2; else /* On machines where 'char' and 'int' are types of the same size, the difference of two 'unsigned char' values - including the sign bit - doesn't fit in an 'int'. */ return _GL_CMP (c1, c2); } shishi-1.0.3/lib/gl/stat-time.c0000644000000000000000000000152014273615123013116 00000000000000/* stat-related time functions. Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_STAT_TIME_INLINE _GL_EXTERN_INLINE #include "stat-time.h" shishi-1.0.3/lib/gl/getrandom.c0000644000000000000000000001321214273615122013167 00000000000000/* Obtain a series of random bytes. Copyright 2020-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #include #include #include #include #include #include #if defined _WIN32 && ! defined __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include # if HAVE_BCRYPT_H # include # else # define NTSTATUS LONG typedef void * BCRYPT_ALG_HANDLE; # define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002 # if HAVE_LIB_BCRYPT extern NTSTATUS WINAPI BCryptGenRandom (BCRYPT_ALG_HANDLE, UCHAR *, ULONG, ULONG); # endif # endif # if !HAVE_LIB_BCRYPT # include # ifndef CRYPT_VERIFY_CONTEXT # define CRYPT_VERIFY_CONTEXT 0xF0000000 # endif # endif #endif #include "minmax.h" #if defined _WIN32 && ! defined __CYGWIN__ /* Don't assume that UNICODE is not defined. */ # undef LoadLibrary # define LoadLibrary LoadLibraryA # undef CryptAcquireContext # define CryptAcquireContext CryptAcquireContextA # if !HAVE_LIB_BCRYPT /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress /* BCryptGenRandom with the BCRYPT_USE_SYSTEM_PREFERRED_RNG flag works only starting with Windows 7. */ typedef NTSTATUS (WINAPI * BCryptGenRandomFuncType) (BCRYPT_ALG_HANDLE, UCHAR *, ULONG, ULONG); static BCryptGenRandomFuncType BCryptGenRandomFunc = NULL; static BOOL initialized = FALSE; static void initialize (void) { HMODULE bcrypt = LoadLibrary ("bcrypt.dll"); if (bcrypt != NULL) { BCryptGenRandomFunc = (BCryptGenRandomFuncType) GetProcAddress (bcrypt, "BCryptGenRandom"); } initialized = TRUE; } # else # define BCryptGenRandomFunc BCryptGenRandom # endif #else /* These devices exist on all platforms except native Windows. */ /* Name of a device through which the kernel returns high quality random numbers, from an entropy pool. When the pool is empty, the call blocks until entropy sources have added enough bits of entropy. */ # ifndef NAME_OF_RANDOM_DEVICE # define NAME_OF_RANDOM_DEVICE "/dev/random" # endif /* Name of a device through which the kernel returns random or pseudo-random numbers. It uses an entropy pool, but, in order to avoid blocking, adds bits generated by a pseudo-random number generator, as needed. */ # ifndef NAME_OF_NONCE_DEVICE # define NAME_OF_NONCE_DEVICE "/dev/urandom" # endif #endif /* Set BUFFER (of size LENGTH) to random bytes under the control of FLAGS. Return the number of bytes written (> 0). Upon error, return -1 and set errno. */ ssize_t getrandom (void *buffer, size_t length, unsigned int flags) #undef getrandom { #if defined _WIN32 && ! defined __CYGWIN__ /* BCryptGenRandom, defined in with the BCRYPT_USE_SYSTEM_PREFERRED_RNG flag works in Windows 7 and newer. */ static int bcrypt_not_working /* = 0 */; if (!bcrypt_not_working) { # if !HAVE_LIB_BCRYPT if (!initialized) initialize (); # endif if (BCryptGenRandomFunc != NULL && BCryptGenRandomFunc (NULL, buffer, length, BCRYPT_USE_SYSTEM_PREFERRED_RNG) == 0 /*STATUS_SUCCESS*/) return length; bcrypt_not_working = 1; } # if !HAVE_LIB_BCRYPT /* CryptGenRandom, defined in works in older releases as well, but is now deprecated. CryptAcquireContext, defined in */ { static int crypt_initialized /* = 0 */; static HCRYPTPROV provider; if (!crypt_initialized) { if (CryptAcquireContext (&provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFY_CONTEXT)) crypt_initialized = 1; else crypt_initialized = -1; } if (crypt_initialized >= 0) { if (!CryptGenRandom (provider, length, buffer)) { errno = EIO; return -1; } return length; } } # endif errno = ENOSYS; return -1; #elif HAVE_GETRANDOM return getrandom (buffer, length, flags); #else static int randfd[2] = { -1, -1 }; bool devrandom = (flags & GRND_RANDOM) != 0; int fd = randfd[devrandom]; if (fd < 0) { static char const randdevice[][MAX (sizeof NAME_OF_NONCE_DEVICE, sizeof NAME_OF_RANDOM_DEVICE)] = { NAME_OF_NONCE_DEVICE, NAME_OF_RANDOM_DEVICE }; int oflags = (O_RDONLY + O_CLOEXEC + (flags & GRND_NONBLOCK ? O_NONBLOCK : 0)); fd = open (randdevice[devrandom], oflags); if (fd < 0) { if (errno == ENOENT || errno == ENOTDIR) errno = ENOSYS; return -1; } randfd[devrandom] = fd; } return read (fd, buffer, length); #endif } shishi-1.0.3/lib/gl/time_r.c0000644000000000000000000000233514273615123012473 00000000000000/* Reentrant time functions like localtime_r. Copyright (C) 2003, 2006-2007, 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #include #include static struct tm * copy_tm_result (struct tm *dest, struct tm const *src) { if (! src) return 0; *dest = *src; return dest; } struct tm * gmtime_r (time_t const * restrict t, struct tm * restrict tp) { return copy_tm_result (tp, gmtime (t)); } struct tm * localtime_r (time_t const * restrict t, struct tm * restrict tp) { return copy_tm_result (tp, localtime (t)); } shishi-1.0.3/lib/gl/stdio-impl.h0000644000000000000000000001755314273615123013312 00000000000000/* Implementation details of FILE streams. Copyright (C) 2007-2008, 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Many stdio implementations have the same logic and therefore can share the same implementation of stdio extension API, except that some fields have different naming conventions, or their access requires some casts. */ /* Glibc 2.28 made _IO_UNBUFFERED and _IO_IN_BACKUP private. For now, work around this problem by defining them ourselves. FIXME: Do not rely on glibc internals. */ #if defined _IO_EOF_SEEN # if !defined _IO_UNBUFFERED # define _IO_UNBUFFERED 0x2 # endif # if !defined _IO_IN_BACKUP # define _IO_IN_BACKUP 0x100 # endif #endif /* BSD stdio derived implementations. */ #if defined __NetBSD__ /* NetBSD */ /* Get __NetBSD_Version__. */ # include #endif #include /* For detecting Plan9. */ #if defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ # if defined __DragonFly__ /* DragonFly */ /* See . */ # define fp_ ((struct { struct __FILE_public pub; \ struct { unsigned char *_base; int _size; } _bf; \ void *cookie; \ void *_close; \ void *_read; \ void *_seek; \ void *_write; \ struct { unsigned char *_base; int _size; } _ub; \ int _ur; \ unsigned char _ubuf[3]; \ unsigned char _nbuf[1]; \ struct { unsigned char *_base; int _size; } _lb; \ int _blksize; \ fpos_t _offset; \ /* More fields, not relevant here. */ \ } *) fp) /* See . */ # define _p pub._p # define _flags pub._flags # define _r pub._r # define _w pub._w # elif defined __ANDROID__ /* Android */ # ifdef __LP64__ # define _gl_flags_file_t int # else # define _gl_flags_file_t short # endif /* Up to this commit from 2015-10-12 the innards of FILE were public, and fp_ub could be defined like for OpenBSD, see and . After this commit, the innards of FILE are hidden. */ # define fp_ ((struct { unsigned char *_p; \ int _r; \ int _w; \ _gl_flags_file_t _flags; \ _gl_flags_file_t _file; \ struct { unsigned char *_base; size_t _size; } _bf; \ int _lbfsize; \ void *_cookie; \ void *_close; \ void *_read; \ void *_seek; \ void *_write; \ struct { unsigned char *_base; size_t _size; } _ext; \ unsigned char *_up; \ int _ur; \ unsigned char _ubuf[3]; \ unsigned char _nbuf[1]; \ struct { unsigned char *_base; size_t _size; } _lb; \ int _blksize; \ fpos_t _offset; \ /* More fields, not relevant here. */ \ } *) fp) # else # define fp_ fp # endif # if (defined __NetBSD__ && __NetBSD_Version__ >= 105270000) || defined __OpenBSD__ || defined __minix /* NetBSD >= 1.5ZA, OpenBSD, Minix 3 */ /* See and and */ struct __sfileext { struct __sbuf _ub; /* ungetc buffer */ /* More fields, not relevant here. */ }; # define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub # elif defined __ANDROID__ /* Android */ struct __sfileext { struct { unsigned char *_base; size_t _size; } _ub; /* ungetc buffer */ /* More fields, not relevant here. */ }; # define fp_ub ((struct __sfileext *) fp_->_ext._base)->_ub # else /* FreeBSD, NetBSD <= 1.5Z, DragonFly, Mac OS X, Cygwin */ # define fp_ub fp_->_ub # endif # define HASUB(fp) (fp_ub._base != NULL) # if defined __ANDROID__ /* Android */ /* Needed after this commit from 2016-01-25 */ # ifndef __SEOF # define __SLBF 1 # define __SNBF 2 # define __SRD 4 # define __SWR 8 # define __SRW 0x10 # define __SEOF 0x20 # define __SERR 0x40 # endif # ifndef __SOFF # define __SOFF 0x1000 # endif # endif #endif /* SystemV derived implementations. */ #ifdef __TANDEM /* NonStop Kernel */ # ifndef _IOERR /* These values were determined by the program 'stdioext-flags' at . */ # define _IOERR 0x40 # define _IOREAD 0x80 # define _IOWRT 0x4 # define _IORW 0x100 # endif #endif #if defined _IOERR # if defined __sun && defined _LP64 /* Solaris/{SPARC,AMD64} 64-bit */ # define fp_ ((struct { unsigned char *_ptr; \ unsigned char *_base; \ unsigned char *_end; \ long _cnt; \ int _file; \ unsigned int _flag; \ } *) fp) # elif defined __VMS /* OpenVMS */ # define fp_ ((struct _iobuf *) fp) # else # define fp_ fp # endif # if defined _SCO_DS || (defined __SCO_VERSION__ || defined __sysv5__) /* OpenServer 5, OpenServer 6, UnixWare 7 */ # define _cnt __cnt # define _ptr __ptr # define _base __base # define _flag __flag # endif #elif defined _WIN32 && ! defined __CYGWIN__ /* newer Windows with MSVC */ /* does not define the innards of FILE any more. */ # define WINDOWS_OPAQUE_FILE struct _gl_real_FILE { /* Note: Compared to older Windows and to mingw, it has the fields _base and _cnt swapped. */ unsigned char *_ptr; unsigned char *_base; int _cnt; int _flag; int _file; int _charbuf; int _bufsiz; }; # define fp_ ((struct _gl_real_FILE *) fp) /* These values were determined by a program similar to the one at . */ # define _IOREAD 0x1 # define _IOWRT 0x2 # define _IORW 0x4 # define _IOEOF 0x8 # define _IOERR 0x10 #endif shishi-1.0.3/lib/gl/gl_openssl.h0000644000000000000000000000740514273615122013370 00000000000000/* Wrap openssl crypto hash routines in gnulib interface. -*- coding: utf-8 -*- Copyright (C) 2013-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Pádraig Brady */ #ifndef GL_OPENSSL_NAME # error "Please define GL_OPENSSL_NAME to 1,5,256 etc." #endif #ifndef _GL_INLINE_HEADER_BEGIN # error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef GL_OPENSSL_INLINE # define GL_OPENSSL_INLINE _GL_INLINE #endif /* Concatenate two preprocessor tokens. */ #define _GLCRYPTO_CONCAT_(prefix, suffix) prefix##suffix #define _GLCRYPTO_CONCAT(prefix, suffix) _GLCRYPTO_CONCAT_ (prefix, suffix) #if GL_OPENSSL_NAME == 5 # define OPENSSL_ALG md5 #else # define OPENSSL_ALG _GLCRYPTO_CONCAT (sha, GL_OPENSSL_NAME) #endif /* Context type mappings. */ #if BASE_OPENSSL_TYPE != GL_OPENSSL_NAME # undef BASE_OPENSSL_TYPE # if GL_OPENSSL_NAME == 224 # define BASE_OPENSSL_TYPE 256 # elif GL_OPENSSL_NAME == 384 # define BASE_OPENSSL_TYPE 512 # endif # define md5_CTX MD5_CTX # define sha1_CTX SHA_CTX # define sha224_CTX SHA256_CTX # define sha224_ctx sha256_ctx # define sha256_CTX SHA256_CTX # define sha384_CTX SHA512_CTX # define sha384_ctx sha512_ctx # define sha512_CTX SHA512_CTX # undef _gl_CTX # undef _gl_ctx # define _gl_CTX _GLCRYPTO_CONCAT (OPENSSL_ALG, _CTX) /* openssl type. */ # define _gl_ctx _GLCRYPTO_CONCAT (OPENSSL_ALG, _ctx) /* gnulib type. */ struct _gl_ctx { _gl_CTX CTX; }; #endif /* Function name mappings. */ #define md5_prefix MD5 #define sha1_prefix SHA1 #define sha224_prefix SHA224 #define sha256_prefix SHA256 #define sha384_prefix SHA384 #define sha512_prefix SHA512 #define _GLCRYPTO_PREFIX _GLCRYPTO_CONCAT (OPENSSL_ALG, _prefix) #define OPENSSL_FN(suffix) _GLCRYPTO_CONCAT (_GLCRYPTO_PREFIX, suffix) #define GL_CRYPTO_FN(suffix) _GLCRYPTO_CONCAT (OPENSSL_ALG, suffix) GL_OPENSSL_INLINE void GL_CRYPTO_FN (_init_ctx) (struct _gl_ctx *ctx) { (void) OPENSSL_FN (_Init) ((_gl_CTX *) ctx); } /* These were never exposed by gnulib. */ #if ! (GL_OPENSSL_NAME == 224 || GL_OPENSSL_NAME == 384) GL_OPENSSL_INLINE void GL_CRYPTO_FN (_process_bytes) (const void *buf, size_t len, struct _gl_ctx *ctx) { OPENSSL_FN (_Update) ((_gl_CTX *) ctx, buf, len); } GL_OPENSSL_INLINE void GL_CRYPTO_FN (_process_block) (const void *buf, size_t len, struct _gl_ctx *ctx) { GL_CRYPTO_FN (_process_bytes) (buf, len, ctx); } #endif GL_OPENSSL_INLINE void * GL_CRYPTO_FN (_finish_ctx) (struct _gl_ctx *ctx, void *restrict res) { OPENSSL_FN (_Final) ((unsigned char *) res, (_gl_CTX *) ctx); return res; } GL_OPENSSL_INLINE void * GL_CRYPTO_FN (_buffer) (const char *buf, size_t len, void *restrict res) { return OPENSSL_FN () ((const unsigned char *) buf, len, (unsigned char *) res); } GL_OPENSSL_INLINE void * GL_CRYPTO_FN (_read_ctx) (const struct _gl_ctx *ctx, void *restrict res) { /* Assume any unprocessed bytes in ctx are not to be ignored. */ _gl_CTX tmp_ctx = *(_gl_CTX *) ctx; OPENSSL_FN (_Final) ((unsigned char *) res, &tmp_ctx); return res; } /* Undef so we can include multiple times. */ #undef GL_CRYPTO_FN #undef OPENSSL_FN #undef _GLCRYPTO_PREFIX #undef OPENSSL_ALG #undef GL_OPENSSL_NAME _GL_INLINE_HEADER_END shishi-1.0.3/lib/gl/malloc.c0000644000000000000000000000243014273615123012457 00000000000000/* malloc() function that is glibc compatible. Copyright (C) 1997-1998, 2006-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Jim Meyering and Bruno Haible */ #define _GL_USE_STDLIB_ALLOC 1 #include #include #include #include "xalloc-oversized.h" /* Allocate an N-byte block of memory from the heap, even if N is 0. */ void * rpl_malloc (size_t n) { if (n == 0) n = 1; if (xalloc_oversized (n, 1)) { errno = ENOMEM; return NULL; } void *result = malloc (n); #if !HAVE_MALLOC_POSIX if (result == NULL) errno = ENOMEM; #endif return result; } shishi-1.0.3/lib/gl/ftell.c0000644000000000000000000000217714273615122012325 00000000000000/* An ftell() function that works around platform bugs. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include long ftell (FILE *fp) { /* Use the replacement ftello function with all its workarounds. */ off_t offset = ftello (fp); if (LONG_MIN <= offset && offset <= LONG_MAX) return /* (long) */ offset; else { errno = EOVERFLOW; return -1; } } shishi-1.0.3/lib/gl/md4-stream.c0000644000000000000000000000617314273615123013175 00000000000000/* Functions to compute MD4 message digest of files or memory blocks. according to the definition of MD4 in RFC 1320 from April 1992. Copyright (C) 1995-1997, 1999-2003, 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Adapted by Simon Josefsson from gnulib md5.? and Libgcrypt cipher/md4.c . */ #include /* Specification. */ #include "md4.h" #include #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #define BLOCKSIZE 32768 #if BLOCKSIZE % 64 != 0 # error "invalid BLOCKSIZE" #endif /* Compute MD4 message digest for bytes read from STREAM. The resulting message digest number will be written into the 16 bytes beginning at RESBLOCK. */ int md4_stream (FILE * stream, void *resblock) { struct md4_ctx ctx; size_t sum; char *buffer = malloc (BLOCKSIZE + 72); if (!buffer) return 1; /* Initialize the computation context. */ md4_init_ctx (&ctx); /* Iterate over full file contents. */ while (1) { /* We read the file in blocks of BLOCKSIZE bytes. One call of the computation function processes the whole buffer so that with the next round of the loop another block can be read. */ size_t n; sum = 0; /* Read block. Take care for partial reads. */ while (1) { n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); sum += n; if (sum == BLOCKSIZE) break; if (n == 0) { /* Check for the error flag IFF N == 0, so that we don't exit the loop after a partial read due to e.g., EAGAIN or EWOULDBLOCK. */ if (ferror (stream)) { free (buffer); return 1; } goto process_partial_block; } /* We've read at least one byte, so ignore errors. But always check for EOF, since feof may be true even though N > 0. Otherwise, we could end up calling fread after EOF. */ if (feof (stream)) goto process_partial_block; } /* Process buffer with BLOCKSIZE bytes. Note that BLOCKSIZE % 64 == 0 */ md4_process_block (buffer, BLOCKSIZE, &ctx); } process_partial_block:; /* Process any remaining bytes. */ if (sum > 0) md4_process_bytes (buffer, sum, &ctx); /* Construct result in desired memory. */ md4_finish_ctx (&ctx, resblock); free (buffer); return 0; } shishi-1.0.3/lib/gl/gc-pbkdf2.c0000644000000000000000000000640714273615122012756 00000000000000/* gc-pbkdf2.c --- Password-Based Key Derivation Function a'la PKCS#5 Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #include #include "gc.h" #include #include typedef Gc_rc (*gc_prf_func) (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf); static Gc_rc gc_pbkdf2_prf (gc_prf_func prf, size_t hLen, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, char *DK, size_t dkLen) { char U[GC_MAX_DIGEST_SIZE]; char T[GC_MAX_DIGEST_SIZE]; unsigned int u; unsigned int l; unsigned int r; unsigned int i; unsigned int k; int rc; char *tmp; size_t tmplen = Slen + 4; if (c == 0) return GC_PKCS5_INVALID_ITERATION_COUNT; if (dkLen == 0) return GC_PKCS5_INVALID_DERIVED_KEY_LENGTH; if (dkLen > 4294967295U) return GC_PKCS5_DERIVED_KEY_TOO_LONG; l = ((dkLen - 1) / hLen) + 1; r = dkLen - (l - 1) * hLen; tmp = malloc (tmplen); if (tmp == NULL) return GC_MALLOC_ERROR; memcpy (tmp, S, Slen); for (i = 1; i <= l; i++) { memset (T, 0, hLen); for (u = 1; u <= c; u++) { if (u == 1) { tmp[Slen + 0] = (i & 0xff000000) >> 24; tmp[Slen + 1] = (i & 0x00ff0000) >> 16; tmp[Slen + 2] = (i & 0x0000ff00) >> 8; tmp[Slen + 3] = (i & 0x000000ff) >> 0; rc = prf (P, Plen, tmp, tmplen, U); } else rc = prf (P, Plen, U, hLen, U); if (rc != GC_OK) { free (tmp); return rc; } for (k = 0; k < hLen; k++) T[k] ^= U[k]; } memcpy (DK + (i - 1) * hLen, T, i == l ? r : hLen); } free (tmp); return GC_OK; } Gc_rc gc_pbkdf2_hmac (Gc_hash hash, const char *P, size_t Plen, const char *S, size_t Slen, unsigned int c, char *DK, size_t dkLen) { gc_prf_func prf; size_t hLen; switch (hash) { #if GNULIB_GC_HMAC_SHA1 case GC_SHA1: prf = gc_hmac_sha1; hLen = GC_SHA1_DIGEST_SIZE; break; #endif #if GNULIB_GC_HMAC_SHA256 case GC_SHA256: prf = gc_hmac_sha256; hLen = GC_SHA256_DIGEST_SIZE; break; #endif #if GNULIB_GC_HMAC_SHA512 case GC_SHA512: prf = gc_hmac_sha512; hLen = GC_SHA512_DIGEST_SIZE; break; #endif default: return GC_INVALID_HASH; } return gc_pbkdf2_prf (prf, hLen, P, Plen, S, Slen, c, DK, dkLen); } shishi-1.0.3/lib/gl/unistd.in.h0000644000000000000000000023571714273615123013150 00000000000000/* Substitute for and wrapper around . Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_UNISTD_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if @HAVE_UNISTD_H@ && defined _GL_INCLUDING_UNISTD_H /* Special invocation convention: - On Mac OS X 10.3.9 we have a sequence of nested includes -> -> -> In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_UNISTD_H@ #else /* Normal invocation convention. */ /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # define _GL_INCLUDING_UNISTD_H # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ # undef _GL_INCLUDING_UNISTD_H #endif /* Get all possible declarations of gethostname(). */ #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ && !defined _GL_INCLUDING_WINSOCK2_H # define _GL_INCLUDING_WINSOCK2_H # include # undef _GL_INCLUDING_WINSOCK2_H #endif #if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H #define _@GUARD_PREFIX@_UNISTD_H /* NetBSD 5.0 mis-defines NULL. Also get size_t. */ /* But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include #endif /* mingw doesn't define the SEEK_* or *_FILENO macros in . */ /* MSVC declares 'unlink' in , not in . We must include it before we #define unlink rpl_unlink. */ /* Cygwin 1.7.1 declares symlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ || ((@GNULIB_UNLINK@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__)) \ || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \ && defined __CYGWIN__)) \ && ! defined __GLIBC__ # include #endif /* Cygwin 1.7.1 and Android 4.3 declare unlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) \ && (defined __CYGWIN__ || defined __ANDROID__) \ && ! defined __GLIBC__ # include #endif /* mingw fails to declare _exit in . */ /* mingw, MSVC, BeOS, Haiku declare environ in , not in . */ /* Solaris declares getcwd not only in but also in . */ /* OSF Tru64 Unix cannot see gnulib rpl_strtod when system is included here. */ /* But avoid namespace pollution on glibc systems. */ #if !defined __GLIBC__ && !defined __osf__ # define __need_system_stdlib_h # include # undef __need_system_stdlib_h #endif /* Native Windows platforms declare _chdir, _getcwd, _rmdir in and/or , not in . They also declare _access(), _chmod(), _close(), _dup(), _dup2(), _isatty(), _lseek(), _read(), _unlink(), _write() in . */ #if defined _WIN32 && !defined __CYGWIN__ # include # include #endif /* Native Windows platforms declare _execl*, _execv* in . */ #if defined _WIN32 && !defined __CYGWIN__ # include #endif /* AIX and OSF/1 5.1 declare getdomainname in , not in . NonStop Kernel declares gethostname in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \ || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \ && !defined __GLIBC__ # include #endif /* Mac OS X 10.13, Solaris 11.4, and Android 9.0 declare getentropy in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_GETENTROPY@ || defined GNULIB_POSIXCHECK) \ && ((defined __APPLE__ && defined __MACH__) || defined __sun \ || defined __ANDROID__) \ && @UNISTD_H_HAVE_SYS_RANDOM_H@ \ && !defined __GLIBC__ # include #endif /* Android 4.3 declares fchownat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_FCHOWNAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ && !defined __GLIBC__ # include #endif /* MSVC defines off_t in . May also define off_t to a 64-bit type on native Windows. */ /* Get off_t, ssize_t, mode_t. */ #include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Get getopt(), optarg, optind, opterr, optopt. */ #if @GNULIB_GETOPT_POSIX@ && @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT # include # include #endif #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_UNISTD_INLINE # define _GL_UNISTD_INLINE _GL_INLINE #endif /* Hide some function declarations from . */ #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef socket # define socket socket_used_without_including_sys_socket_h # undef connect # define connect connect_used_without_including_sys_socket_h # undef accept # define accept accept_used_without_including_sys_socket_h # undef bind # define bind bind_used_without_including_sys_socket_h # undef getpeername # define getpeername getpeername_used_without_including_sys_socket_h # undef getsockname # define getsockname getsockname_used_without_including_sys_socket_h # undef getsockopt # define getsockopt getsockopt_used_without_including_sys_socket_h # undef listen # define listen listen_used_without_including_sys_socket_h # undef recv # define recv recv_used_without_including_sys_socket_h # undef send # define send send_used_without_including_sys_socket_h # undef recvfrom # define recvfrom recvfrom_used_without_including_sys_socket_h # undef sendto # define sendto sendto_used_without_including_sys_socket_h # undef setsockopt # define setsockopt setsockopt_used_without_including_sys_socket_h # undef shutdown # define shutdown shutdown_used_without_including_sys_socket_h # else _GL_WARN_ON_USE (socket, "socket() used without including "); _GL_WARN_ON_USE (connect, "connect() used without including "); _GL_WARN_ON_USE (accept, "accept() used without including "); _GL_WARN_ON_USE (bind, "bind() used without including "); _GL_WARN_ON_USE (getpeername, "getpeername() used without including "); _GL_WARN_ON_USE (getsockname, "getsockname() used without including "); _GL_WARN_ON_USE (getsockopt, "getsockopt() used without including "); _GL_WARN_ON_USE (listen, "listen() used without including "); _GL_WARN_ON_USE (recv, "recv() used without including "); _GL_WARN_ON_USE (send, "send() used without including "); _GL_WARN_ON_USE (recvfrom, "recvfrom() used without including "); _GL_WARN_ON_USE (sendto, "sendto() used without including "); _GL_WARN_ON_USE (setsockopt, "setsockopt() used without including "); _GL_WARN_ON_USE (shutdown, "shutdown() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SELECT_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef select # define select select_used_without_including_sys_select_h # else _GL_WARN_ON_USE (select, "select() used without including "); # endif # endif #endif /* OS/2 EMX lacks these macros. */ #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO # define STDOUT_FILENO 1 #endif #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif /* Ensure *_OK macros exist. */ #ifndef F_OK # define F_OK 0 # define X_OK 1 # define W_OK 2 # define R_OK 4 #endif /* Declare overridden functions. */ #if @GNULIB_ACCESS@ # if @REPLACE_ACCESS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access rpl_access # endif _GL_FUNCDECL_RPL (access, int, (const char *file, int mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (access, int, (const char *file, int mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access _access # endif _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); # else _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); # endif _GL_CXXALIASWARN (access); #elif defined GNULIB_POSIXCHECK # undef access # if HAVE_RAW_DECL_ACCESS /* The access() function is a security risk. */ _GL_WARN_ON_USE (access, "access does not always support X_OK - " "use gnulib module access for portability; " "also, this function is a security risk - " "use the gnulib module faccessat instead"); # endif #elif @GNULIB_MDA_ACCESS@ /* On native Windows, map 'access' to '_access', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::access always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access _access # endif _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); # else _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); # endif _GL_CXXALIASWARN (access); #endif #if @GNULIB_CHDIR@ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chdir # define chdir _chdir # endif _GL_CXXALIAS_MDA (chdir, int, (const char *file)); # else _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIASWARN (chdir); #elif defined GNULIB_POSIXCHECK # undef chdir # if HAVE_RAW_DECL_CHDIR _GL_WARN_ON_USE (chown, "chdir is not always in - " "use gnulib module chdir for portability"); # endif #elif @GNULIB_MDA_CHDIR@ /* On native Windows, map 'chdir' to '_chdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::chdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chdir # define chdir _chdir # endif _GL_CXXALIAS_MDA (chdir, int, (const char *file)); # else _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIASWARN (chdir); #endif #if @GNULIB_CHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_DUP2@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dup2 rpl_dup2 # endif _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef dup2 # define dup2 _dup2 # endif _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); # else _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif _GL_CXXALIASWARN (dup2); #elif defined GNULIB_POSIXCHECK # undef dup2 # if HAVE_RAW_DECL_DUP2 _GL_WARN_ON_USE (dup2, "dup2 is unportable - " "use gnulib module dup2 for portability"); # endif #elif @GNULIB_MDA_DUP2@ /* On native Windows, map 'dup2' to '_dup2', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::dup2 always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef dup2 # define dup2 _dup2 # endif _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); # else _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif _GL_CXXALIASWARN (dup2); #endif #if @GNULIB_DUP3@ /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the specified flags. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). Close NEWFD first if it is open. Return newfd if successful, otherwise -1 and errno set. See the Linux man page at . */ # if @HAVE_DUP3@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dup3 rpl_dup3 # endif _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); # else _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); # endif _GL_CXXALIASWARN (dup3); #elif defined GNULIB_POSIXCHECK # undef dup3 # if HAVE_RAW_DECL_DUP3 _GL_WARN_ON_USE (dup3, "dup3 is unportable - " "use gnulib module dup3 for portability"); # endif #endif #if @GNULIB_ENVIRON@ # if defined __CYGWIN__ && !defined __i386__ /* The 'environ' variable is defined in a DLL. Therefore its declaration needs the '__declspec(dllimport)' attribute, but the system's lacks it. This leads to a link error on 64-bit Cygwin when the option -Wl,--disable-auto-import is in use. */ _GL_EXTERN_C __declspec(dllimport) char **environ; # endif # if !@HAVE_DECL_ENVIRON@ /* Set of environment variables and values. An array of strings of the form "VARIABLE=VALUE", terminated with a NULL. */ # if defined __APPLE__ && defined __MACH__ # include # if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR # define _GL_USE_CRT_EXTERNS # endif # endif # ifdef _GL_USE_CRT_EXTERNS # include # define environ (*_NSGetEnviron ()) # else # ifdef __cplusplus extern "C" { # endif extern char **environ; # ifdef __cplusplus } # endif # endif # endif #elif defined GNULIB_POSIXCHECK # if HAVE_RAW_DECL_ENVIRON _GL_UNISTD_INLINE char *** _GL_WARN_ON_USE_ATTRIBUTE ("environ is unportable - " "use gnulib module environ for portability") rpl_environ (void) { return &environ; } # undef environ # define environ (*rpl_environ ()) # endif #endif #if @GNULIB_EUIDACCESS@ /* Like access(), except that it uses the effective user id and group id of the current process. */ # if !@HAVE_EUIDACCESS@ _GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode)); _GL_CXXALIASWARN (euidaccess); # if defined GNULIB_POSIXCHECK /* Like access(), this function is a security risk. */ _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " "use the gnulib module faccessat instead"); # endif #elif defined GNULIB_POSIXCHECK # undef euidaccess # if HAVE_RAW_DECL_EUIDACCESS _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " "use gnulib module euidaccess for portability"); # endif #endif #if @GNULIB_EXECL@ # if @REPLACE_EXECL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execl # define execl rpl_execl # endif _GL_FUNCDECL_RPL (execl, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execl, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execl); #elif defined GNULIB_POSIXCHECK # undef execl # if HAVE_RAW_DECL_EXECL _GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - " "use gnulib module execl for portability"); # endif #elif @GNULIB_MDA_EXECL@ /* On native Windows, map 'execl' to '_execl', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execl always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execl # define execl _execl # endif _GL_CXXALIAS_MDA (execl, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execl); #endif #if @GNULIB_EXECLE@ # if @REPLACE_EXECLE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execle # define execle rpl_execle # endif _GL_FUNCDECL_RPL (execle, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execle, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execle); #elif defined GNULIB_POSIXCHECK # undef execle # if HAVE_RAW_DECL_EXECLE _GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - " "use gnulib module execle for portability"); # endif #elif @GNULIB_MDA_EXECLE@ /* On native Windows, map 'execle' to '_execle', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execle always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execle # define execle _execle # endif _GL_CXXALIAS_MDA (execle, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execle); #endif #if @GNULIB_EXECLP@ # if @REPLACE_EXECLP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execlp # define execlp rpl_execlp # endif _GL_FUNCDECL_RPL (execlp, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execlp, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execlp); #elif defined GNULIB_POSIXCHECK # undef execlp # if HAVE_RAW_DECL_EXECLP _GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - " "use gnulib module execlp for portability"); # endif #elif @GNULIB_MDA_EXECLP@ /* On native Windows, map 'execlp' to '_execlp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execlp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execlp # define execlp _execlp # endif _GL_CXXALIAS_MDA (execlp, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execlp); #endif #if @GNULIB_EXECV@ # if @REPLACE_EXECV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execv # define execv rpl_execv # endif _GL_FUNCDECL_RPL (execv, int, (const char *program, char * const *argv) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execv, int, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execv); #elif defined GNULIB_POSIXCHECK # undef execv # if HAVE_RAW_DECL_EXECV _GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - " "use gnulib module execv for portability"); # endif #elif @GNULIB_MDA_EXECV@ /* On native Windows, map 'execv' to '_execv', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execv always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execv # define execv _execv # endif _GL_CXXALIAS_MDA_CAST (execv, intptr_t, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execv); #endif #if @GNULIB_EXECVE@ # if @REPLACE_EXECVE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execve # define execve rpl_execve # endif _GL_FUNCDECL_RPL (execve, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execve, int, (const char *program, char * const *argv, char * const *env)); # else _GL_CXXALIAS_SYS (execve, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execve); #elif defined GNULIB_POSIXCHECK # undef execve # if HAVE_RAW_DECL_EXECVE _GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - " "use gnulib module execve for portability"); # endif #elif @GNULIB_MDA_EXECVE@ /* On native Windows, map 'execve' to '_execve', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execve always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execve # define execve _execve # endif _GL_CXXALIAS_MDA_CAST (execve, intptr_t, (const char *program, char * const *argv, char * const *env)); # else _GL_CXXALIAS_SYS (execve, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execve); #endif #if @GNULIB_EXECVP@ # if @REPLACE_EXECVP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvp # define execvp rpl_execvp # endif _GL_FUNCDECL_RPL (execvp, int, (const char *program, char * const *argv) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execvp, int, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execvp); #elif defined GNULIB_POSIXCHECK # undef execvp # if HAVE_RAW_DECL_EXECVP _GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - " "use gnulib module execvp for portability"); # endif #elif @GNULIB_MDA_EXECVP@ /* On native Windows, map 'execvp' to '_execvp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execvp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvp # define execvp _execvp # endif _GL_CXXALIAS_MDA_CAST (execvp, intptr_t, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execvp); #endif #if @GNULIB_EXECVPE@ # if @REPLACE_EXECVPE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvpe # define execvpe rpl_execvpe # endif _GL_FUNCDECL_RPL (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execvpe, int, (const char *program, char * const *argv, char * const *env)); # else # if !@HAVE_DECL_EXECVPE@ _GL_FUNCDECL_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execvpe); #elif defined GNULIB_POSIXCHECK # undef execvpe # if HAVE_RAW_DECL_EXECVPE _GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - " "use gnulib module execvpe for portability"); # endif #elif @GNULIB_MDA_EXECVPE@ /* On native Windows, map 'execvpe' to '_execvpe', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execvpe on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvpe # define execvpe _execvpe # endif _GL_CXXALIAS_MDA_CAST (execvpe, intptr_t, (const char *program, char * const *argv, char * const *env)); # elif @HAVE_EXECVPE@ # if !@HAVE_DECL_EXECVPE@ _GL_FUNCDECL_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env)); # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_EXECVPE@ _GL_CXXALIASWARN (execvpe); # endif #endif #if @GNULIB_FACCESSAT@ # if @REPLACE_FACCESSAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef faccessat # define faccessat rpl_faccessat # endif _GL_FUNCDECL_RPL (faccessat, int, (int fd, char const *name, int mode, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (faccessat, int, (int fd, char const *name, int mode, int flag)); # else # if !@HAVE_FACCESSAT@ _GL_FUNCDECL_SYS (faccessat, int, (int fd, char const *file, int mode, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (faccessat, int, (int fd, char const *file, int mode, int flag)); # endif _GL_CXXALIASWARN (faccessat); #elif defined GNULIB_POSIXCHECK # undef faccessat # if HAVE_RAW_DECL_FACCESSAT _GL_WARN_ON_USE (faccessat, "faccessat is not portable - " "use gnulib module faccessat for portability"); # endif #endif #if @GNULIB_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if ! @HAVE_FCHDIR@ _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); /* Gnulib internal hooks needed to maintain the fchdir metadata. */ _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) _GL_ARG_NONNULL ((2)); _GL_EXTERN_C void _gl_unregister_fd (int fd); _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); _GL_EXTERN_C const char *_gl_directory_name (int fd); # else # if !@HAVE_DECL_FCHDIR@ _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); # endif # endif _GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); _GL_CXXALIASWARN (fchdir); #elif defined GNULIB_POSIXCHECK # undef fchdir # if HAVE_RAW_DECL_FCHDIR _GL_WARN_ON_USE (fchdir, "fchdir is unportable - " "use gnulib module fchdir for portability"); # endif #endif #if @GNULIB_FCHOWNAT@ # if @REPLACE_FCHOWNAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fchownat # define fchownat rpl_fchownat # endif _GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag)); # else # if !@HAVE_FCHOWNAT@ _GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag)); # endif _GL_CXXALIASWARN (fchownat); #elif defined GNULIB_POSIXCHECK # undef fchownat # if HAVE_RAW_DECL_FCHOWNAT _GL_WARN_ON_USE (fchownat, "fchownat is not portable - " "use gnulib module fchownat for portability"); # endif #endif #if @GNULIB_FDATASYNC@ /* Synchronize changes to a file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@ _GL_FUNCDECL_SYS (fdatasync, int, (int fd)); # endif _GL_CXXALIAS_SYS (fdatasync, int, (int fd)); _GL_CXXALIASWARN (fdatasync); #elif defined GNULIB_POSIXCHECK # undef fdatasync # if HAVE_RAW_DECL_FDATASYNC _GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " "use gnulib module fdatasync for portability"); # endif #endif #if @GNULIB_FSYNC@ /* Synchronize changes, including metadata, to a file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if !@HAVE_FSYNC@ _GL_FUNCDECL_SYS (fsync, int, (int fd)); # endif _GL_CXXALIAS_SYS (fsync, int, (int fd)); _GL_CXXALIASWARN (fsync); #elif defined GNULIB_POSIXCHECK # undef fsync # if HAVE_RAW_DECL_FSYNC _GL_WARN_ON_USE (fsync, "fsync is unportable - " "use gnulib module fsync for portability"); # endif #endif #if @GNULIB_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_FTRUNCATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftruncate # define ftruncate rpl_ftruncate # endif _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); # else # if !@HAVE_FTRUNCATE@ _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); # endif _GL_CXXALIASWARN (ftruncate); #elif defined GNULIB_POSIXCHECK # undef ftruncate # if HAVE_RAW_DECL_FTRUNCATE _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " "use gnulib module ftruncate for portability"); # endif #endif #if @GNULIB_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined or SIZE was too small. See the POSIX:2008 specification . Additionally, the gnulib module 'getcwd' guarantees the following GNU extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ # if @REPLACE_GETCWD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getcwd rpl_getcwd # endif _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getcwd # define getcwd _getcwd # endif _GL_CXXALIAS_MDA (getcwd, char *, (char *buf, size_t size)); # else /* Need to cast, because on mingw, the second parameter is int size. */ _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif _GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK # undef getcwd # if HAVE_RAW_DECL_GETCWD _GL_WARN_ON_USE (getcwd, "getcwd is unportable - " "use gnulib module getcwd for portability"); # endif #elif @GNULIB_MDA_GETCWD@ /* On native Windows, map 'getcwd' to '_getcwd', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getcwd always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getcwd # define getcwd _getcwd # endif /* Need to cast, because on mingw, the second parameter is either 'int size' or 'size_t size'. */ _GL_CXXALIAS_MDA_CAST (getcwd, char *, (char *buf, size_t size)); # else _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif _GL_CXXALIASWARN (getcwd); #endif #if @GNULIB_GETDOMAINNAME@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. WARNING! The NIS domain name is usually the empty string or "(none)" when not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN. If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. Return 0 if successful, otherwise set errno and return -1. */ # if @REPLACE_GETDOMAINNAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdomainname # define getdomainname rpl_getdomainname # endif _GL_FUNCDECL_RPL (getdomainname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getdomainname, int, (char *name, size_t len)); # else # if !@HAVE_DECL_GETDOMAINNAME@ _GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len)); # endif _GL_CXXALIASWARN (getdomainname); #elif defined GNULIB_POSIXCHECK # undef getdomainname # if HAVE_RAW_DECL_GETDOMAINNAME _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " "use gnulib module getdomainname for portability"); # endif #endif #if @GNULIB_GETDTABLESIZE@ /* Return the maximum number of file descriptors in the current process. In POSIX, this is same as sysconf (_SC_OPEN_MAX). */ # if @REPLACE_GETDTABLESIZE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdtablesize # define getdtablesize rpl_getdtablesize # endif _GL_FUNCDECL_RPL (getdtablesize, int, (void)); _GL_CXXALIAS_RPL (getdtablesize, int, (void)); # else # if !@HAVE_GETDTABLESIZE@ _GL_FUNCDECL_SYS (getdtablesize, int, (void)); # endif /* Need to cast, because on AIX, the parameter list is (...). */ _GL_CXXALIAS_SYS_CAST (getdtablesize, int, (void)); # endif _GL_CXXALIASWARN (getdtablesize); #elif defined GNULIB_POSIXCHECK # undef getdtablesize # if HAVE_RAW_DECL_GETDTABLESIZE _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " "use gnulib module getdtablesize for portability"); # endif #endif #if @GNULIB_GETENTROPY@ /* Fill a buffer with random bytes. */ # if !@HAVE_GETENTROPY@ _GL_FUNCDECL_SYS (getentropy, int, (void *buffer, size_t length)); # endif _GL_CXXALIAS_SYS (getentropy, int, (void *buffer, size_t length)); _GL_CXXALIASWARN (getentropy); #elif defined GNULIB_POSIXCHECK # undef getentropy # if HAVE_RAW_DECL_GETENTROPY _GL_WARN_ON_USE (getentropy, "getentropy is unportable - " "use gnulib module getentropy for portability"); # endif #endif #if @GNULIB_GETGROUPS@ /* Return the supplemental groups that the current process belongs to. It is unspecified whether the effective group id is in the list. If N is 0, return the group count; otherwise, N describes how many entries are available in GROUPS. Return -1 and set errno if N is not 0 and not large enough. Fails with ENOSYS on some systems. */ # if @REPLACE_GETGROUPS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getgroups # define getgroups rpl_getgroups # endif _GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups)); _GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups)); # else # if !@HAVE_GETGROUPS@ _GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups)); # endif _GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups)); # endif _GL_CXXALIASWARN (getgroups); #elif defined GNULIB_POSIXCHECK # undef getgroups # if HAVE_RAW_DECL_GETGROUPS _GL_WARN_ON_USE (getgroups, "getgroups is unportable - " "use gnulib module getgroups for portability"); # endif #endif #if @GNULIB_GETHOSTNAME@ /* Return the standard host name of the machine. WARNING! The host name may or may not be fully qualified. Put up to LEN bytes of the host name into NAME. Null terminate it if the name is shorter than LEN. If the host name is longer than LEN, set errno = EINVAL and return -1. Return 0 if successful, otherwise set errno and return -1. */ # if @UNISTD_H_HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname rpl_gethostname # endif _GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); # else # if !@HAVE_GETHOSTNAME@ _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second parameter is int len. */ _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); # endif _GL_CXXALIASWARN (gethostname); #elif @UNISTD_H_HAVE_WINSOCK2_H@ # undef gethostname # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname #elif defined GNULIB_POSIXCHECK # undef gethostname # if HAVE_RAW_DECL_GETHOSTNAME _GL_WARN_ON_USE (gethostname, "gethostname is unportable - " "use gnulib module gethostname for portability"); # endif #endif #if @GNULIB_GETLOGIN@ /* Returns the user's login name, or NULL if it cannot be found. Upon error, returns NULL with errno set. See . Most programs don't need to use this function, because the information is available through environment variables: ${LOGNAME-$USER} on Unix platforms, $USERNAME on native Windows platforms. */ # if !@HAVE_DECL_GETLOGIN@ _GL_FUNCDECL_SYS (getlogin, char *, (void)); # endif _GL_CXXALIAS_SYS (getlogin, char *, (void)); _GL_CXXALIASWARN (getlogin); #elif defined GNULIB_POSIXCHECK # undef getlogin # if HAVE_RAW_DECL_GETLOGIN _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " "use gnulib module getlogin for portability"); # endif #endif #if @GNULIB_GETLOGIN_R@ /* Copies the user's login name to NAME. The array pointed to by NAME has room for SIZE bytes. Returns 0 if successful. Upon error, an error number is returned, or -1 in the case that the login name cannot be found but no specific error is provided (this case is hopefully rare but is left open by the POSIX spec). See . Most programs don't need to use this function, because the information is available through environment variables: ${LOGNAME-$USER} on Unix platforms, $USERNAME on native Windows platforms. */ # if @REPLACE_GETLOGIN_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getlogin_r rpl_getlogin_r # endif _GL_FUNCDECL_RPL (getlogin_r, int, (char *name, size_t size) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getlogin_r, int, (char *name, size_t size)); # else # if !@HAVE_DECL_GETLOGIN_R@ _GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 10 systems, the second argument is int size. */ _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); # endif _GL_CXXALIASWARN (getlogin_r); #elif defined GNULIB_POSIXCHECK # undef getlogin_r # if HAVE_RAW_DECL_GETLOGIN_R _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " "use gnulib module getlogin_r for portability"); # endif #endif #if @GNULIB_GETPAGESIZE@ # if @REPLACE_GETPAGESIZE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getpagesize rpl_getpagesize # endif _GL_FUNCDECL_RPL (getpagesize, int, (void)); _GL_CXXALIAS_RPL (getpagesize, int, (void)); # else /* On HP-UX, getpagesize exists, but it is not declared in even if the compiler options -D_HPUX_SOURCE -D_XOPEN_SOURCE=600 are used. */ # if defined __hpux _GL_FUNCDECL_SYS (getpagesize, int, (void)); # endif # if !@HAVE_GETPAGESIZE@ # if !defined getpagesize /* This is for POSIX systems. */ # if !defined _gl_getpagesize && defined _SC_PAGESIZE # if ! (defined __VMS && __VMS_VER < 70000000) # define _gl_getpagesize() sysconf (_SC_PAGESIZE) # endif # endif /* This is for older VMS. */ # if !defined _gl_getpagesize && defined __VMS # ifdef __ALPHA # define _gl_getpagesize() 8192 # else # define _gl_getpagesize() 512 # endif # endif /* This is for BeOS. */ # if !defined _gl_getpagesize && @HAVE_OS_H@ # include # if defined B_PAGE_SIZE # define _gl_getpagesize() B_PAGE_SIZE # endif # endif /* This is for AmigaOS4.0. */ # if !defined _gl_getpagesize && defined __amigaos4__ # define _gl_getpagesize() 2048 # endif /* This is for older Unix systems. */ # if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ # include # ifdef EXEC_PAGESIZE # define _gl_getpagesize() EXEC_PAGESIZE # else # ifdef NBPG # ifndef CLSIZE # define CLSIZE 1 # endif # define _gl_getpagesize() (NBPG * CLSIZE) # else # ifdef NBPC # define _gl_getpagesize() NBPC # endif # endif # endif # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getpagesize() _gl_getpagesize () # else # if !GNULIB_defined_getpagesize_function _GL_UNISTD_INLINE int getpagesize () { return _gl_getpagesize (); } # define GNULIB_defined_getpagesize_function 1 # endif # endif # endif # endif /* Need to cast, because on Cygwin 1.5.x systems, the return type is size_t. */ _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); # endif # if @HAVE_DECL_GETPAGESIZE@ _GL_CXXALIASWARN (getpagesize); # endif #elif defined GNULIB_POSIXCHECK # undef getpagesize # if HAVE_RAW_DECL_GETPAGESIZE _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " "use gnulib module getpagesize for portability"); # endif #endif #if @GNULIB_GETPASS@ /* Function getpass() from module 'getpass': Read a password from /dev/tty or stdin. Function getpass() from module 'getpass-gnu': Read a password of arbitrary length from /dev/tty or stdin. */ # if (@GNULIB_GETPASS@ && @REPLACE_GETPASS@) \ || (@GNULIB_GETPASS_GNU@ && @REPLACE_GETPASS_FOR_GETPASS_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getpass # define getpass rpl_getpass # endif _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); # else # if !@HAVE_GETPASS@ _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); # endif _GL_CXXALIASWARN (getpass); #elif defined GNULIB_POSIXCHECK # undef getpass # if HAVE_RAW_DECL_GETPASS _GL_WARN_ON_USE (getpass, "getpass is unportable - " "use gnulib module getpass or getpass-gnu for portability"); # endif #endif #if @GNULIB_MDA_GETPID@ /* On native Windows, map 'getpid' to '_getpid', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getpid always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getpid # define getpid _getpid # endif _GL_CXXALIAS_MDA (getpid, int, (void)); # else _GL_CXXALIAS_SYS (getpid, pid_t, (void)); # endif _GL_CXXALIASWARN (getpid); #endif #if @GNULIB_GETUSERSHELL@ /* Return the next valid login shell on the system, or NULL when the end of the list has been reached. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (getusershell, char *, (void)); # endif _GL_CXXALIAS_SYS (getusershell, char *, (void)); _GL_CXXALIASWARN (getusershell); #elif defined GNULIB_POSIXCHECK # undef getusershell # if HAVE_RAW_DECL_GETUSERSHELL _GL_WARN_ON_USE (getusershell, "getusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GETUSERSHELL@ /* Rewind to pointer that is advanced at each getusershell() call. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (setusershell, void, (void)); # endif _GL_CXXALIAS_SYS (setusershell, void, (void)); _GL_CXXALIASWARN (setusershell); #elif defined GNULIB_POSIXCHECK # undef setusershell # if HAVE_RAW_DECL_SETUSERSHELL _GL_WARN_ON_USE (setusershell, "setusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GETUSERSHELL@ /* Free the pointer that is advanced at each getusershell() call and associated resources. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (endusershell, void, (void)); # endif _GL_CXXALIAS_SYS (endusershell, void, (void)); _GL_CXXALIASWARN (endusershell); #elif defined GNULIB_POSIXCHECK # undef endusershell # if HAVE_RAW_DECL_ENDUSERSHELL _GL_WARN_ON_USE (endusershell, "endusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GROUP_MEMBER@ /* Determine whether group id is in calling user's group list. */ # if !@HAVE_GROUP_MEMBER@ _GL_FUNCDECL_SYS (group_member, int, (gid_t gid)); # endif _GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); _GL_CXXALIASWARN (group_member); #elif defined GNULIB_POSIXCHECK # undef group_member # if HAVE_RAW_DECL_GROUP_MEMBER _GL_WARN_ON_USE (group_member, "group_member is unportable - " "use gnulib module group-member for portability"); # endif #endif #if @GNULIB_ISATTY@ # if @REPLACE_ISATTY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty rpl_isatty # endif # define GNULIB_defined_isatty 1 _GL_FUNCDECL_RPL (isatty, int, (int fd)); _GL_CXXALIAS_RPL (isatty, int, (int fd)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty _isatty # endif _GL_CXXALIAS_MDA (isatty, int, (int fd)); # else _GL_CXXALIAS_SYS (isatty, int, (int fd)); # endif _GL_CXXALIASWARN (isatty); #elif defined GNULIB_POSIXCHECK # undef isatty # if HAVE_RAW_DECL_ISATTY _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " "use gnulib module isatty for portability"); # endif #elif @GNULIB_MDA_ISATTY@ /* On native Windows, map 'isatty' to '_isatty', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::isatty always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty _isatty # endif _GL_CXXALIAS_MDA (isatty, int, (int fd)); # else _GL_CXXALIAS_SYS (isatty, int, (int fd)); # endif _GL_CXXALIASWARN (isatty); #endif #if @GNULIB_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_LCHOWN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lchown # define lchown rpl_lchown # endif _GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)); # else # if !@HAVE_LCHOWN@ _GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); # endif _GL_CXXALIASWARN (lchown); #elif defined GNULIB_POSIXCHECK # undef lchown # if HAVE_RAW_DECL_LCHOWN _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " "use gnulib module lchown for portability"); # endif #endif #if @GNULIB_LINK@ /* Create a new hard link for an existing file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if @REPLACE_LINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define link rpl_link # endif _GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2)); # else # if !@HAVE_LINK@ _GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); # endif _GL_CXXALIASWARN (link); #elif defined GNULIB_POSIXCHECK # undef link # if HAVE_RAW_DECL_LINK _GL_WARN_ON_USE (link, "link is unportable - " "use gnulib module link for portability"); # endif #endif #if @GNULIB_LINKAT@ /* Create a new hard link for an existing file, relative to two directories. FLAG controls whether symlinks are followed. Return 0 if successful, otherwise -1 and errno set. */ # if @REPLACE_LINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef linkat # define linkat rpl_linkat # endif _GL_FUNCDECL_RPL (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag)); # else # if !@HAVE_LINKAT@ _GL_FUNCDECL_SYS (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag) _GL_ARG_NONNULL ((2, 4))); # endif _GL_CXXALIAS_SYS (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag)); # endif _GL_CXXALIASWARN (linkat); #elif defined GNULIB_POSIXCHECK # undef linkat # if HAVE_RAW_DECL_LINKAT _GL_WARN_ON_USE (linkat, "linkat is unportable - " "use gnulib module linkat for portability"); # endif #endif #if @GNULIB_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_LSEEK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lseek rpl_lseek # endif _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lseek # define lseek _lseek # endif _GL_CXXALIAS_MDA (lseek, off_t, (int fd, off_t offset, int whence)); # else _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif _GL_CXXALIASWARN (lseek); #elif defined GNULIB_POSIXCHECK # undef lseek # if HAVE_RAW_DECL_LSEEK _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " "systems - use gnulib module lseek for portability"); # endif #elif @GNULIB_MDA_LSEEK@ /* On native Windows, map 'lseek' to '_lseek', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::lseek always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lseek # define lseek _lseek # endif _GL_CXXALIAS_MDA (lseek, long, (int fd, long offset, int whence)); # else _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif _GL_CXXALIASWARN (lseek); #endif #if @GNULIB_PIPE@ /* Create a pipe, defaulting to O_BINARY mode. Store the read-end as fd[0] and the write-end as fd[1]. Return 0 upon success, or -1 with errno set upon failure. */ # if !@HAVE_PIPE@ _GL_FUNCDECL_SYS (pipe, int, (int fd[2]) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (pipe, int, (int fd[2])); _GL_CXXALIASWARN (pipe); #elif defined GNULIB_POSIXCHECK # undef pipe # if HAVE_RAW_DECL_PIPE _GL_WARN_ON_USE (pipe, "pipe is unportable - " "use gnulib module pipe-posix for portability"); # endif #endif #if @GNULIB_PIPE2@ /* Create a pipe, applying the given flags when opening the read-end of the pipe and the write-end of the pipe. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). Store the read-end as fd[0] and the write-end as fd[1]. Return 0 upon success, or -1 with errno set upon failure. See also the Linux man page at . */ # if @HAVE_PIPE2@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define pipe2 rpl_pipe2 # endif _GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); # else _GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); # endif _GL_CXXALIASWARN (pipe2); #elif defined GNULIB_POSIXCHECK # undef pipe2 # if HAVE_RAW_DECL_PIPE2 _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " "use gnulib module pipe2 for portability"); # endif #endif #if @GNULIB_PREAD@ /* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. Return the number of bytes placed into BUF if successful, otherwise set errno and return -1. 0 indicates EOF. See the POSIX:2008 specification . */ # if @REPLACE_PREAD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pread # define pread rpl_pread # endif _GL_FUNCDECL_RPL (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset)); # else # if !@HAVE_PREAD@ _GL_FUNCDECL_SYS (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset)); # endif _GL_CXXALIASWARN (pread); #elif defined GNULIB_POSIXCHECK # undef pread # if HAVE_RAW_DECL_PREAD _GL_WARN_ON_USE (pread, "pread is unportable - " "use gnulib module pread for portability"); # endif #endif #if @GNULIB_PWRITE@ /* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. Return the number of bytes written if successful, otherwise set errno and return -1. 0 indicates nothing written. See the POSIX:2008 specification . */ # if @REPLACE_PWRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pwrite # define pwrite rpl_pwrite # endif _GL_FUNCDECL_RPL (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset)); # else # if !@HAVE_PWRITE@ _GL_FUNCDECL_SYS (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset)); # endif _GL_CXXALIASWARN (pwrite); #elif defined GNULIB_POSIXCHECK # undef pwrite # if HAVE_RAW_DECL_PWRITE _GL_WARN_ON_USE (pwrite, "pwrite is unportable - " "use gnulib module pwrite for portability"); # endif #endif #if @GNULIB_READ@ /* Read up to COUNT bytes from file descriptor FD into the buffer starting at BUF. See the POSIX:2008 specification . */ # if @REPLACE_READ@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read rpl_read # endif _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read _read # endif _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count)); # else _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); # endif _GL_CXXALIASWARN (read); #elif @GNULIB_MDA_READ@ /* On native Windows, map 'read' to '_read', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::read always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read _read # endif # ifdef __MINGW32__ _GL_CXXALIAS_MDA (read, int, (int fd, void *buf, unsigned int count)); # else _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, unsigned int count)); # endif # else _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); # endif _GL_CXXALIASWARN (read); #endif #if @GNULIB_READLINK@ /* Read the contents of the symbolic link FILE and place the first BUFSIZE bytes of it into BUF. Return the number of bytes placed into BUF if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_READLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define readlink rpl_readlink # endif _GL_FUNCDECL_RPL (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize)); # else # if !@HAVE_READLINK@ _GL_FUNCDECL_SYS (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize)); # endif _GL_CXXALIASWARN (readlink); #elif defined GNULIB_POSIXCHECK # undef readlink # if HAVE_RAW_DECL_READLINK _GL_WARN_ON_USE (readlink, "readlink is unportable - " "use gnulib module readlink for portability"); # endif #endif #if @GNULIB_READLINKAT@ # if @REPLACE_READLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define readlinkat rpl_readlinkat # endif _GL_FUNCDECL_RPL (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len)); # else # if !@HAVE_READLINKAT@ _GL_FUNCDECL_SYS (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len)); # endif _GL_CXXALIASWARN (readlinkat); #elif defined GNULIB_POSIXCHECK # undef readlinkat # if HAVE_RAW_DECL_READLINKAT _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " "use gnulib module readlinkat for portability"); # endif #endif #if @GNULIB_RMDIR@ /* Remove the directory DIR. */ # if @REPLACE_RMDIR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define rmdir rpl_rmdir # endif _GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (rmdir, int, (char const *name)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rmdir # define rmdir _rmdir # endif _GL_CXXALIAS_MDA (rmdir, int, (char const *name)); # else _GL_CXXALIAS_SYS (rmdir, int, (char const *name)); # endif _GL_CXXALIASWARN (rmdir); #elif defined GNULIB_POSIXCHECK # undef rmdir # if HAVE_RAW_DECL_RMDIR _GL_WARN_ON_USE (rmdir, "rmdir is unportable - " "use gnulib module rmdir for portability"); # endif #elif @GNULIB_MDA_RMDIR@ /* On native Windows, map 'rmdir' to '_rmdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::rmdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rmdir # define rmdir _rmdir # endif _GL_CXXALIAS_MDA (rmdir, int, (char const *name)); # else _GL_CXXALIAS_SYS (rmdir, int, (char const *name)); # endif _GL_CXXALIASWARN (rmdir); #endif #if @GNULIB_SETHOSTNAME@ /* Set the host name of the machine. The host name may or may not be fully qualified. Put LEN bytes of NAME into the host name. Return 0 if successful, otherwise, set errno and return -1. Platforms with no ability to set the hostname return -1 and set errno = ENOSYS. */ # if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@ _GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5 and FreeBSD 6.4 the second parameter is int. On Solaris 11 2011-10, the first parameter is not const. */ _GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len)); _GL_CXXALIASWARN (sethostname); #elif defined GNULIB_POSIXCHECK # undef sethostname # if HAVE_RAW_DECL_SETHOSTNAME _GL_WARN_ON_USE (sethostname, "sethostname is unportable - " "use gnulib module sethostname for portability"); # endif #endif #if @GNULIB_SLEEP@ /* Pause the execution of the current thread for N seconds. Returns the number of seconds left to sleep. See the POSIX:2008 specification . */ # if @REPLACE_SLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef sleep # define sleep rpl_sleep # endif _GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n)); _GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n)); # else # if !@HAVE_SLEEP@ _GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n)); # endif _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); # endif _GL_CXXALIASWARN (sleep); #elif defined GNULIB_POSIXCHECK # undef sleep # if HAVE_RAW_DECL_SLEEP _GL_WARN_ON_USE (sleep, "sleep is unportable - " "use gnulib module sleep for portability"); # endif #endif #if @GNULIB_MDA_SWAB@ /* On native Windows, map 'swab' to '_swab', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::swab always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef swab # define swab _swab # endif /* Need to cast, because in old mingw the arguments are (const char *from, char *to, size_t n). */ _GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n)); # else # if defined __hpux /* HP-UX */ _GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n)); # elif defined __sun && !defined _XPG4 /* Solaris */ _GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n)); # else _GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n)); # endif # endif _GL_CXXALIASWARN (swab); #endif #if @GNULIB_SYMLINK@ # if @REPLACE_SYMLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef symlink # define symlink rpl_symlink # endif _GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file)); # else # if !@HAVE_SYMLINK@ _GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file)); # endif _GL_CXXALIASWARN (symlink); #elif defined GNULIB_POSIXCHECK # undef symlink # if HAVE_RAW_DECL_SYMLINK _GL_WARN_ON_USE (symlink, "symlink is not portable - " "use gnulib module symlink for portability"); # endif #endif #if @GNULIB_SYMLINKAT@ # if @REPLACE_SYMLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef symlinkat # define symlinkat rpl_symlinkat # endif _GL_FUNCDECL_RPL (symlinkat, int, (char const *contents, int fd, char const *file) _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (symlinkat, int, (char const *contents, int fd, char const *file)); # else # if !@HAVE_SYMLINKAT@ _GL_FUNCDECL_SYS (symlinkat, int, (char const *contents, int fd, char const *file) _GL_ARG_NONNULL ((1, 3))); # endif _GL_CXXALIAS_SYS (symlinkat, int, (char const *contents, int fd, char const *file)); # endif _GL_CXXALIASWARN (symlinkat); #elif defined GNULIB_POSIXCHECK # undef symlinkat # if HAVE_RAW_DECL_SYMLINKAT _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " "use gnulib module symlinkat for portability"); # endif #endif #if @GNULIB_TRUNCATE@ /* Change the size of the file designated by FILENAME to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_TRUNCATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef truncate # define truncate rpl_truncate # endif _GL_FUNCDECL_RPL (truncate, int, (const char *filename, off_t length) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (truncate, int, (const char *filename, off_t length)); # else # if !@HAVE_DECL_TRUNCATE@ _GL_FUNCDECL_SYS (truncate, int, (const char *filename, off_t length) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (truncate, int, (const char *filename, off_t length)); # endif _GL_CXXALIASWARN (truncate); #elif defined GNULIB_POSIXCHECK # undef truncate # if HAVE_RAW_DECL_TRUNCATE _GL_WARN_ON_USE (truncate, "truncate is unportable - " "use gnulib module truncate for portability"); # endif #endif #if @GNULIB_TTYNAME_R@ /* Store at most BUFLEN characters of the pathname of the terminal FD is open on in BUF. Return 0 on success, otherwise an error number. */ # if @REPLACE_TTYNAME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ttyname_r # define ttyname_r rpl_ttyname_r # endif _GL_FUNCDECL_RPL (ttyname_r, int, (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (ttyname_r, int, (int fd, char *buf, size_t buflen)); # else # if !@HAVE_DECL_TTYNAME_R@ _GL_FUNCDECL_SYS (ttyname_r, int, (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (ttyname_r, int, (int fd, char *buf, size_t buflen)); # endif _GL_CXXALIASWARN (ttyname_r); #elif defined GNULIB_POSIXCHECK # undef ttyname_r # if HAVE_RAW_DECL_TTYNAME_R _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " "use gnulib module ttyname_r for portability"); # endif #endif #if @GNULIB_UNLINK@ # if @REPLACE_UNLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink rpl_unlink # endif _GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (unlink, int, (char const *file)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink _unlink # endif _GL_CXXALIAS_MDA (unlink, int, (char const *file)); # else _GL_CXXALIAS_SYS (unlink, int, (char const *file)); # endif _GL_CXXALIASWARN (unlink); #elif defined GNULIB_POSIXCHECK # undef unlink # if HAVE_RAW_DECL_UNLINK _GL_WARN_ON_USE (unlink, "unlink is not portable - " "use gnulib module unlink for portability"); # endif #elif @GNULIB_MDA_UNLINK@ /* On native Windows, map 'unlink' to '_unlink', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::unlink always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink _unlink # endif _GL_CXXALIAS_MDA (unlink, int, (char const *file)); # else _GL_CXXALIAS_SYS (unlink, int, (char const *file)); # endif _GL_CXXALIASWARN (unlink); #endif #if @GNULIB_UNLINKAT@ # if @REPLACE_UNLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlinkat # define unlinkat rpl_unlinkat # endif _GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); # else # if !@HAVE_UNLINKAT@ _GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); # endif _GL_CXXALIASWARN (unlinkat); #elif defined GNULIB_POSIXCHECK # undef unlinkat # if HAVE_RAW_DECL_UNLINKAT _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " "use gnulib module unlinkat for portability"); # endif #endif #if @GNULIB_USLEEP@ /* Pause the execution of the current thread for N microseconds. Returns 0 on completion, or -1 on range error. See the POSIX:2001 specification . */ # if @REPLACE_USLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef usleep # define usleep rpl_usleep # endif _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); # else # if !@HAVE_USLEEP@ _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); # endif /* Need to cast, because on Haiku, the first parameter is unsigned int n. */ _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); # endif _GL_CXXALIASWARN (usleep); #elif defined GNULIB_POSIXCHECK # undef usleep # if HAVE_RAW_DECL_USLEEP _GL_WARN_ON_USE (usleep, "usleep is unportable - " "use gnulib module usleep for portability"); # endif #endif #if @GNULIB_WRITE@ /* Write up to COUNT bytes starting at BUF to file descriptor FD. See the POSIX:2008 specification . */ # if @REPLACE_WRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write rpl_write # endif _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write _write # endif _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, size_t count)); # else _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); # endif _GL_CXXALIASWARN (write); #elif @GNULIB_MDA_WRITE@ /* On native Windows, map 'write' to '_write', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::write always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write _write # endif # ifdef __MINGW32__ _GL_CXXALIAS_MDA (write, int, (int fd, const void *buf, unsigned int count)); # else _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, unsigned int count)); # endif # else _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); # endif _GL_CXXALIASWARN (write); #endif _GL_INLINE_HEADER_END #endif /* _@GUARD_PREFIX@_UNISTD_H */ #endif /* _GL_INCLUDING_UNISTD_H */ #endif /* _@GUARD_PREFIX@_UNISTD_H */ shishi-1.0.3/lib/gl/hmac.h0000644000000000000000000000434514273615122012133 00000000000000/* hmac.h -- hashed message authentication codes Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #ifndef HMAC_H # define HMAC_H 1 #include /* Compute Hashed Message Authentication Code with MD5, as described in RFC 2104, over BUFFER data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the output to pre-allocated 16 byte minimum RESBUF buffer. Return 0 on success. */ int hmac_md5 (const void *key, size_t keylen, const void *buffer, size_t buflen, void *restrict resbuf); /* Compute Hashed Message Authentication Code with SHA-1, over BUFFER data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the output to pre-allocated 20 byte minimum RESBUF buffer. Return 0 on success. */ int hmac_sha1 (const void *key, size_t keylen, const void *in, size_t inlen, void *restrict resbuf); /* Compute Hashed Message Authentication Code with SHA-256, over BUFFER data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the output to pre-allocated 32 byte minimum RESBUF buffer. Return 0 on success. */ int hmac_sha256 (const void *key, size_t keylen, const void *in, size_t inlen, void *restrict resbuf); /* Compute Hashed Message Authentication Code with SHA-512, over BUFFER data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the output to pre-allocated 64 byte minimum RESBUF buffer. Return 0 on success. */ int hmac_sha512 (const void *key, size_t keylen, const void *in, size_t inlen, void *restrict resbuf); #endif /* HMAC_H */ shishi-1.0.3/lib/gl/msvc-nothrow.h0000644000000000000000000000302314273615123013662 00000000000000/* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MSVC_NOTHROW_H #define _MSVC_NOTHROW_H /* With MSVC runtime libraries with the "invalid parameter handler" concept, functions like fprintf(), dup2(), or close() crash when the caller passes an invalid argument. But POSIX wants error codes (such as EINVAL or EBADF) instead. This file defines wrappers that turn such an invalid parameter notification into an error code. */ #if defined _WIN32 && ! defined __CYGWIN__ /* Get original declaration of _get_osfhandle. */ # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER /* Override _get_osfhandle. */ extern intptr_t _gl_nothrow_get_osfhandle (int fd); # define _get_osfhandle _gl_nothrow_get_osfhandle # endif #endif #endif /* _MSVC_NOTHROW_H */ shishi-1.0.3/lib/gl/sockets.h0000644000000000000000000000317414273615123012676 00000000000000/* sockets.h - wrappers for Windows socket functions Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson */ #ifndef SOCKETS_H #define SOCKETS_H 1 #define SOCKETS_1_0 0x0001 #define SOCKETS_1_1 0x0101 #define SOCKETS_2_0 0x0002 #define SOCKETS_2_1 0x0102 #define SOCKETS_2_2 0x0202 int gl_sockets_startup (int version) #ifndef WINDOWS_SOCKETS _GL_ATTRIBUTE_CONST #endif ; int gl_sockets_cleanup (void) #ifndef WINDOWS_SOCKETS _GL_ATTRIBUTE_CONST #endif ; /* This function is useful it you create a socket using gnulib's Winsock wrappers but needs to pass on the socket handle to some other library that only accepts sockets. */ #ifdef WINDOWS_SOCKETS # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif static inline SOCKET gl_fd_to_handle (int fd) { return _get_osfhandle (fd); } #else # define gl_fd_to_handle(x) (x) #endif /* WINDOWS_SOCKETS */ #endif /* SOCKETS_H */ shishi-1.0.3/lib/gl/hmac.c0000644000000000000000000000527714273615122012133 00000000000000/* hmac.c -- hashed message authentication codes Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include "memxor.h" #define IPAD 0x36 #define OPAD 0x5c /* Concatenate two preprocessor tokens. */ #define _GLHMAC_CONCAT_(prefix, suffix) prefix##suffix #define _GLHMAC_CONCAT(prefix, suffix) _GLHMAC_CONCAT_ (prefix, suffix) #if GL_HMAC_NAME == 5 # define HMAC_ALG md5 #else # define HMAC_ALG _GLHMAC_CONCAT (sha, GL_HMAC_NAME) #endif #define GL_HMAC_CTX _GLHMAC_CONCAT (HMAC_ALG, _ctx) #define GL_HMAC_FN _GLHMAC_CONCAT (hmac_, HMAC_ALG) #define GL_HMAC_FN_INIT _GLHMAC_CONCAT (HMAC_ALG, _init_ctx) #define GL_HMAC_FN_BLOC _GLHMAC_CONCAT (HMAC_ALG, _process_block) #define GL_HMAC_FN_PROC _GLHMAC_CONCAT (HMAC_ALG, _process_bytes) #define GL_HMAC_FN_FINI _GLHMAC_CONCAT (HMAC_ALG, _finish_ctx) static void hmac_hash (const void *key, size_t keylen, const void *in, size_t inlen, int pad, void *resbuf) { struct GL_HMAC_CTX hmac_ctx; char block[GL_HMAC_BLOCKSIZE]; memset (block, pad, sizeof block); memxor (block, key, keylen); GL_HMAC_FN_INIT (&hmac_ctx); GL_HMAC_FN_BLOC (block, sizeof block, &hmac_ctx); GL_HMAC_FN_PROC (in, inlen, &hmac_ctx); GL_HMAC_FN_FINI (&hmac_ctx, resbuf); } int GL_HMAC_FN (const void *key, size_t keylen, const void *in, size_t inlen, void *resbuf) { char optkeybuf[GL_HMAC_HASHSIZE]; char innerhash[GL_HMAC_HASHSIZE]; /* Ensure key size is <= block size. */ if (keylen > GL_HMAC_BLOCKSIZE) { struct GL_HMAC_CTX keyhash; GL_HMAC_FN_INIT (&keyhash); GL_HMAC_FN_PROC (key, keylen, &keyhash); GL_HMAC_FN_FINI (&keyhash, optkeybuf); key = optkeybuf; /* zero padding of the key to the block size is implicit in the memxor. */ keylen = sizeof optkeybuf; } /* Compute INNERHASH from KEY and IN. */ hmac_hash (key, keylen, in, inlen, IPAD, innerhash); /* Compute result from KEY and INNERHASH. */ hmac_hash (key, keylen, innerhash, sizeof innerhash, OPAD, resbuf); return 0; } shishi-1.0.3/lib/gl/c-ctype.h0000644000000000000000000002246714273615121012573 00000000000000/* Character handling in C locale. These functions work like the corresponding functions in , except that they have the C (POSIX) locale hardwired, whereas the functions' behaviour depends on the current locale set via setlocale. Copyright (C) 2000-2003, 2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef C_CTYPE_H #define C_CTYPE_H #include #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef C_CTYPE_INLINE # define C_CTYPE_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif /* The functions defined in this file assume the "C" locale and a character set without diacritics (ASCII-US or EBCDIC-US or something like that). Even if the "C" locale on a particular system is an extension of the ASCII character set (like on BeOS, where it is UTF-8, or on AmigaOS, where it is ISO-8859-1), the functions in this file recognize only the ASCII characters. */ #if (' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126) /* The character set is ASCII or one of its variants or extensions, not EBCDIC. Testing the value of '\n' and '\r' is not relevant. */ # define C_CTYPE_ASCII 1 #elif ! (' ' == '\x40' && '0' == '\xf0' \ && 'A' == '\xc1' && 'J' == '\xd1' && 'S' == '\xe2' \ && 'a' == '\x81' && 'j' == '\x91' && 's' == '\xa2') # error "Only ASCII and EBCDIC are supported" #endif #if 'A' < 0 # error "EBCDIC and char is signed -- not supported" #endif /* Cases for control characters. */ #define _C_CTYPE_CNTRL \ case '\a': case '\b': case '\f': case '\n': \ case '\r': case '\t': case '\v': \ _C_CTYPE_OTHER_CNTRL /* ASCII control characters other than those with \-letter escapes. */ #if C_CTYPE_ASCII # define _C_CTYPE_OTHER_CNTRL \ case '\x00': case '\x01': case '\x02': case '\x03': \ case '\x04': case '\x05': case '\x06': case '\x0e': \ case '\x0f': case '\x10': case '\x11': case '\x12': \ case '\x13': case '\x14': case '\x15': case '\x16': \ case '\x17': case '\x18': case '\x19': case '\x1a': \ case '\x1b': case '\x1c': case '\x1d': case '\x1e': \ case '\x1f': case '\x7f' #else /* Use EBCDIC code page 1047's assignments for ASCII control chars; assume all EBCDIC code pages agree about these assignments. */ # define _C_CTYPE_OTHER_CNTRL \ case '\x00': case '\x01': case '\x02': case '\x03': \ case '\x07': case '\x0e': case '\x0f': case '\x10': \ case '\x11': case '\x12': case '\x13': case '\x18': \ case '\x19': case '\x1c': case '\x1d': case '\x1e': \ case '\x1f': case '\x26': case '\x27': case '\x2d': \ case '\x2e': case '\x32': case '\x37': case '\x3c': \ case '\x3d': case '\x3f' #endif /* Cases for lowercase hex letters, and lowercase letters, all offset by N. */ #define _C_CTYPE_LOWER_A_THRU_F_N(N) \ case 'a' + (N): case 'b' + (N): case 'c' + (N): case 'd' + (N): \ case 'e' + (N): case 'f' + (N) #define _C_CTYPE_LOWER_N(N) \ _C_CTYPE_LOWER_A_THRU_F_N(N): \ case 'g' + (N): case 'h' + (N): case 'i' + (N): case 'j' + (N): \ case 'k' + (N): case 'l' + (N): case 'm' + (N): case 'n' + (N): \ case 'o' + (N): case 'p' + (N): case 'q' + (N): case 'r' + (N): \ case 's' + (N): case 't' + (N): case 'u' + (N): case 'v' + (N): \ case 'w' + (N): case 'x' + (N): case 'y' + (N): case 'z' + (N) /* Cases for hex letters, digits, lower, punct, and upper. */ #define _C_CTYPE_A_THRU_F \ _C_CTYPE_LOWER_A_THRU_F_N (0): \ _C_CTYPE_LOWER_A_THRU_F_N ('A' - 'a') #define _C_CTYPE_DIGIT \ case '0': case '1': case '2': case '3': \ case '4': case '5': case '6': case '7': \ case '8': case '9' #define _C_CTYPE_LOWER _C_CTYPE_LOWER_N (0) #define _C_CTYPE_PUNCT \ case '!': case '"': case '#': case '$': \ case '%': case '&': case '\'': case '(': \ case ')': case '*': case '+': case ',': \ case '-': case '.': case '/': case ':': \ case ';': case '<': case '=': case '>': \ case '?': case '@': case '[': case '\\': \ case ']': case '^': case '_': case '`': \ case '{': case '|': case '}': case '~' #define _C_CTYPE_UPPER _C_CTYPE_LOWER_N ('A' - 'a') /* Function definitions. */ /* Unlike the functions in , which require an argument in the range of the 'unsigned char' type, the functions here operate on values that are in the 'unsigned char' range or in the 'char' range. In other words, when you have a 'char' value, you need to cast it before using it as argument to a function: const char *s = ...; if (isalpha ((unsigned char) *s)) ... but you don't need to cast it for the functions defined in this file: const char *s = ...; if (c_isalpha (*s)) ... */ C_CTYPE_INLINE bool c_isalnum (int c) { switch (c) { _C_CTYPE_DIGIT: _C_CTYPE_LOWER: _C_CTYPE_UPPER: return true; default: return false; } } C_CTYPE_INLINE bool c_isalpha (int c) { switch (c) { _C_CTYPE_LOWER: _C_CTYPE_UPPER: return true; default: return false; } } /* The function isascii is not locale dependent. Its use in EBCDIC is questionable. */ C_CTYPE_INLINE bool c_isascii (int c) { switch (c) { case ' ': _C_CTYPE_CNTRL: _C_CTYPE_DIGIT: _C_CTYPE_LOWER: _C_CTYPE_PUNCT: _C_CTYPE_UPPER: return true; default: return false; } } C_CTYPE_INLINE bool c_isblank (int c) { return c == ' ' || c == '\t'; } C_CTYPE_INLINE bool c_iscntrl (int c) { switch (c) { _C_CTYPE_CNTRL: return true; default: return false; } } C_CTYPE_INLINE bool c_isdigit (int c) { switch (c) { _C_CTYPE_DIGIT: return true; default: return false; } } C_CTYPE_INLINE bool c_isgraph (int c) { switch (c) { _C_CTYPE_DIGIT: _C_CTYPE_LOWER: _C_CTYPE_PUNCT: _C_CTYPE_UPPER: return true; default: return false; } } C_CTYPE_INLINE bool c_islower (int c) { switch (c) { _C_CTYPE_LOWER: return true; default: return false; } } C_CTYPE_INLINE bool c_isprint (int c) { switch (c) { case ' ': _C_CTYPE_DIGIT: _C_CTYPE_LOWER: _C_CTYPE_PUNCT: _C_CTYPE_UPPER: return true; default: return false; } } C_CTYPE_INLINE bool c_ispunct (int c) { switch (c) { _C_CTYPE_PUNCT: return true; default: return false; } } C_CTYPE_INLINE bool c_isspace (int c) { switch (c) { case ' ': case '\t': case '\n': case '\v': case '\f': case '\r': return true; default: return false; } } C_CTYPE_INLINE bool c_isupper (int c) { switch (c) { _C_CTYPE_UPPER: return true; default: return false; } } C_CTYPE_INLINE bool c_isxdigit (int c) { switch (c) { _C_CTYPE_DIGIT: _C_CTYPE_A_THRU_F: return true; default: return false; } } C_CTYPE_INLINE int c_tolower (int c) { switch (c) { _C_CTYPE_UPPER: return c - 'A' + 'a'; default: return c; } } C_CTYPE_INLINE int c_toupper (int c) { switch (c) { _C_CTYPE_LOWER: return c - 'a' + 'A'; default: return c; } } #ifdef __cplusplus } #endif _GL_INLINE_HEADER_END #endif /* C_CTYPE_H */ shishi-1.0.3/lib/gl/sys_random.in.h0000644000000000000000000000607514273615123014011 00000000000000/* Substitute for . Copyright (C) 2020-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ # if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ # endif @PRAGMA_COLUMNS@ #ifndef _@GUARD_PREFIX@_SYS_RANDOM_H #if @HAVE_SYS_RANDOM_H@ /* On uClibc < 1.0.35, assumes prior inclusion of . Do not use __UCLIBC__ here, as it might not be defined yet. But avoid namespace pollution on glibc systems. */ # ifndef __GLIBC__ # include # endif /* On Mac OS X 10.5, assumes prior inclusion of . On Max OS X 10.13, assumes prior inclusion of a file that includes , such as or . */ # if defined __APPLE__ && defined __MACH__ /* Mac OS X */ # include # include # endif /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_SYS_RANDOM_H@ #endif #ifndef _@GUARD_PREFIX@_SYS_RANDOM_H #define _@GUARD_PREFIX@_SYS_RANDOM_H #include /* Define the GRND_* constants. */ #ifndef GRND_NONBLOCK # define GRND_NONBLOCK 1 # define GRND_RANDOM 2 #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Declare overridden functions. */ #if @GNULIB_GETRANDOM@ /* Fill a buffer with random bytes. */ # if @REPLACE_GETRANDOM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getrandom # define getrandom rpl_getrandom # endif _GL_FUNCDECL_RPL (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags)); # else # if !@HAVE_GETRANDOM@ _GL_FUNCDECL_SYS (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getrandom, ssize_t, (void *buffer, size_t length, unsigned int flags)); # endif _GL_CXXALIASWARN (getrandom); #elif defined GNULIB_POSIXCHECK # undef getrandom # if HAVE_RAW_DECL_GETRANDOM _GL_WARN_ON_USE (getrandom, "getrandom is unportable - " "use gnulib module getrandom for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_SYS_RANDOM_H */ #endif /* _@GUARD_PREFIX@_SYS_RANDOM_H */ shishi-1.0.3/lib/gl/fd-hook.h0000644000000000000000000001136414273615122012551 00000000000000/* Hook for making file descriptor functions close(), ioctl() extensible. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef FD_HOOK_H #define FD_HOOK_H #ifdef __cplusplus extern "C" { #endif /* Currently, this entire code is only needed for the handling of sockets on native Windows platforms. */ #if WINDOWS_SOCKETS /* Type of function that closes FD. */ typedef int (*gl_close_fn) (int fd); /* Type of function that applies a control request to FD. */ typedef int (*gl_ioctl_fn) (int fd, int request, void *arg); /* An element of the list of file descriptor hooks. In CLOS (Common Lisp Object System) speak, it consists of an "around" method for the close() function and an "around" method for the ioctl() function. The fields of this structure are considered private. */ struct fd_hook { /* Doubly linked list. */ struct fd_hook *private_next; struct fd_hook *private_prev; /* Function that treats the types of FD that it knows about and calls execute_close_hooks (REMAINING_LIST, PRIMARY, FD) as a fallback. */ int (*private_close_fn) (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Function that treats the types of FD that it knows about and calls execute_ioctl_hooks (REMAINING_LIST, PRIMARY, FD, REQUEST, ARG) as a fallback. */ int (*private_ioctl_fn) (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); }; /* This type of function closes FD, applying special knowledge for the FD types it knows about, and calls execute_close_hooks (REMAINING_LIST, PRIMARY, FD) for the other FD types. In CLOS speak, REMAINING_LIST is the remaining list of "around" methods, and PRIMARY is the "primary" method for close(). */ typedef int (*close_hook_fn) (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Execute the close hooks in REMAINING_LIST, with PRIMARY as "primary" method. Return 0 or -1, like close() would do. */ extern int execute_close_hooks (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Execute all close hooks, with PRIMARY as "primary" method. Return 0 or -1, like close() would do. */ extern int execute_all_close_hooks (gl_close_fn primary, int fd); /* This type of function applies a control request to FD, applying special knowledge for the FD types it knows about, and calls execute_ioctl_hooks (REMAINING_LIST, PRIMARY, FD, REQUEST, ARG) for the other FD types. In CLOS speak, REMAINING_LIST is the remaining list of "around" methods, and PRIMARY is the "primary" method for ioctl(). */ typedef int (*ioctl_hook_fn) (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); /* Execute the ioctl hooks in REMAINING_LIST, with PRIMARY as "primary" method. Return 0 or -1, like ioctl() would do. */ extern int execute_ioctl_hooks (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); /* Execute all ioctl hooks, with PRIMARY as "primary" method. Return 0 or -1, like ioctl() would do. */ extern int execute_all_ioctl_hooks (gl_ioctl_fn primary, int fd, int request, void *arg); /* Add a function pair to the list of file descriptor hooks. CLOSE_HOOK and IOCTL_HOOK may be NULL, indicating no change. The LINK variable points to a piece of memory which is guaranteed to be accessible until the corresponding call to unregister_fd_hook. */ extern void register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link); /* Removes a hook from the list of file descriptor hooks. */ extern void unregister_fd_hook (struct fd_hook *link); #endif #ifdef __cplusplus } #endif #endif /* FD_HOOK_H */ shishi-1.0.3/lib/gl/stdio-write.c0000644000000000000000000001670614273615123013475 00000000000000/* POSIX compatible FILE stream write function. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Replace these functions only if module 'nonblocking' or module 'sigpipe' is requested. */ #if GNULIB_NONBLOCKING || GNULIB_SIGPIPE /* On native Windows platforms, SIGPIPE does not exist. When write() is called on a pipe with no readers, WriteFile() fails with error GetLastError() = ERROR_NO_DATA, and write() in consequence fails with error EINVAL. This write() function is at the basis of the function which flushes the buffer of a FILE stream. */ # if defined _WIN32 && ! defined __CYGWIN__ # include # include # include # define WIN32_LEAN_AND_MEAN /* avoid including junk */ # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Don't assume that UNICODE is not defined. */ # undef GetNamedPipeHandleState # define GetNamedPipeHandleState GetNamedPipeHandleStateA # if GNULIB_NONBLOCKING # define CLEAR_ERRNO \ errno = 0; # define HANDLE_ENOSPC \ if (errno == ENOSPC && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0) \ { \ HANDLE h = (HANDLE) _get_osfhandle (fd); \ if (GetFileType (h) == FILE_TYPE_PIPE) \ { \ /* h is a pipe or socket. */ \ DWORD state; \ if (GetNamedPipeHandleState (h, &state, NULL, NULL, \ NULL, NULL, 0) \ && (state & PIPE_NOWAIT) != 0) \ /* h is a pipe in non-blocking mode. \ Change errno from ENOSPC to EAGAIN. */ \ errno = EAGAIN; \ } \ } \ } \ else # else # define CLEAR_ERRNO # define HANDLE_ENOSPC # endif # if GNULIB_SIGPIPE # define CLEAR_LastError \ SetLastError (0); # define HANDLE_ERROR_NO_DATA \ if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0 \ && GetFileType ((HANDLE) _get_osfhandle (fd)) \ == FILE_TYPE_PIPE) \ { \ /* Try to raise signal SIGPIPE. */ \ raise (SIGPIPE); \ /* If it is currently blocked or ignored, change errno from \ EINVAL to EPIPE. */ \ errno = EPIPE; \ } \ } \ else # else # define CLEAR_LastError # define HANDLE_ERROR_NO_DATA # endif # define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \ if (ferror (stream)) \ return (EXPRESSION); \ else \ { \ RETTYPE ret; \ CLEAR_ERRNO \ CLEAR_LastError \ ret = (EXPRESSION); \ if (FAILED) \ { \ HANDLE_ENOSPC \ HANDLE_ERROR_NO_DATA \ ; \ } \ return ret; \ } # if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */ int printf (const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfprintf (stdout, format, args); va_end (args); return retval; } # endif # if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */ int fprintf (FILE *stream, const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfprintf (stream, format, args); va_end (args); return retval; } # endif # if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */ int vprintf (const char *format, va_list args) { return vfprintf (stdout, format, args); } # endif # if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */ int vfprintf (FILE *stream, const char *format, va_list args) #undef vfprintf { CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) } # endif int putchar (int c) { return fputc (c, stdout); } int fputc (int c, FILE *stream) #undef fputc { CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF) } int fputs (const char *string, FILE *stream) #undef fputs { CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF) } int puts (const char *string) #undef puts { FILE *stream = stdout; CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF) } size_t fwrite (const void *ptr, size_t s, size_t n, FILE *stream) #undef fwrite { CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) } # endif #endif shishi-1.0.3/lib/gl/timespec.h0000644000000000000000000000543514273615123013036 00000000000000/* timespec -- System time interface Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if ! defined TIMESPEC_H #define TIMESPEC_H #include #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_TIMESPEC_INLINE # define _GL_TIMESPEC_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif #include "arg-nonnull.h" /* Inverse resolution of timespec timestamps (in units per second), and log base 10 of the inverse resolution. */ enum { TIMESPEC_HZ = 1000000000 }; enum { LOG10_TIMESPEC_HZ = 9 }; /* Obsolescent names for backward compatibility. They are misnomers, because TIMESPEC_RESOLUTION is not a resolution. */ enum { TIMESPEC_RESOLUTION = TIMESPEC_HZ }; enum { LOG10_TIMESPEC_RESOLUTION = LOG10_TIMESPEC_HZ }; /* Return a timespec with seconds S and nanoseconds NS. */ _GL_TIMESPEC_INLINE struct timespec make_timespec (time_t s, long int ns) { struct timespec r; r.tv_sec = s; r.tv_nsec = ns; return r; } /* Return negative, zero, positive if A < B, A == B, A > B, respectively. */ _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE timespec_cmp (struct timespec a, struct timespec b) { return 2 * _GL_CMP (a.tv_sec, b.tv_sec) + _GL_CMP (a.tv_nsec, b.tv_nsec); } /* Return -1, 0, 1, depending on the sign of A. A.tv_nsec must be nonnegative. */ _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE timespec_sign (struct timespec a) { return _GL_CMP (a.tv_sec, 0) + (!a.tv_sec & !!a.tv_nsec); } struct timespec timespec_add (struct timespec, struct timespec) _GL_ATTRIBUTE_CONST; struct timespec timespec_sub (struct timespec, struct timespec) _GL_ATTRIBUTE_CONST; struct timespec dtotimespec (double) _GL_ATTRIBUTE_CONST; /* Return an approximation to A, of type 'double'. */ _GL_TIMESPEC_INLINE double timespectod (struct timespec a) { return a.tv_sec + a.tv_nsec / 1e9; } long int gettime_res (void); struct timespec current_timespec (void); void gettime (struct timespec *) _GL_ARG_NONNULL ((1)); int settime (struct timespec const *) _GL_ARG_NONNULL ((1)); #ifdef __cplusplus } #endif _GL_INLINE_HEADER_END #endif shishi-1.0.3/lib/gl/hmac-sha1.c0000644000000000000000000000164714273615122012762 00000000000000/* hmac-sha1.c -- hashed message authentication codes Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include "hmac.h" #include "sha1.h" #define GL_HMAC_NAME 1 #define GL_HMAC_BLOCKSIZE 64 #define GL_HMAC_HASHSIZE 20 #include "hmac.c" shishi-1.0.3/lib/gl/vasnprintf.h0000644000000000000000000000503114273615123013407 00000000000000/* vsprintf with automatic memory allocation. Copyright (C) 2002-2004, 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _VASNPRINTF_H #define _VASNPRINTF_H /* Get va_list. */ #include /* Get size_t. */ #include /* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD. */ #include #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. When dynamic memory allocation occurs, the preallocated buffer is left alone (with possibly modified contents). This makes it possible to use a statically allocated or stack-allocated buffer, like this: char buf[100]; size_t len = sizeof (buf); char *output = vasnprintf (buf, &len, format, args); if (output == NULL) ... error handling ...; else { ... use the output string ...; if (output != buf) free (output); } */ #if REPLACE_VASNPRINTF # define asnprintf rpl_asnprintf # define vasnprintf rpl_vasnprintf #endif extern char * asnprintf (char *restrict resultbuf, size_t *lengthp, const char *format, ...) _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 4)); extern char * vasnprintf (char *restrict resultbuf, size_t *lengthp, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 0)); #ifdef __cplusplus } #endif #endif /* _VASNPRINTF_H */ shishi-1.0.3/lib/gl/unistd.c0000644000000000000000000000154114273615123012520 00000000000000/* Inline functions for . Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE #include "unistd.h" typedef int dummy; shishi-1.0.3/lib/gl/xsize.c0000644000000000000000000000150414273615123012353 00000000000000/* Checked size_t computations. Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define XSIZE_INLINE _GL_EXTERN_INLINE #include "xsize.h" shishi-1.0.3/lib/gl/sha1-stream.c0000644000000000000000000000677114273615123013351 00000000000000/* sha1.c - Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. Copyright (C) 2000-2001, 2003-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Scott G. Miller Credits: Robert Klep -- Expansion function fix */ #include /* Specification. */ #if HAVE_OPENSSL_SHA1 # define GL_OPENSSL_INLINE _GL_EXTERN_INLINE #endif #include "sha1.h" #include #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #include "af_alg.h" #define BLOCKSIZE 32768 #if BLOCKSIZE % 64 != 0 # error "invalid BLOCKSIZE" #endif /* Compute SHA1 message digest for bytes read from STREAM. The resulting message digest number will be written into the 20 bytes beginning at RESBLOCK. */ int sha1_stream (FILE *stream, void *resblock) { switch (afalg_stream (stream, "sha1", resblock, SHA1_DIGEST_SIZE)) { case 0: return 0; case -EIO: return 1; } char *buffer = malloc (BLOCKSIZE + 72); if (!buffer) return 1; struct sha1_ctx ctx; sha1_init_ctx (&ctx); size_t sum; /* Iterate over full file contents. */ while (1) { /* We read the file in blocks of BLOCKSIZE bytes. One call of the computation function processes the whole buffer so that with the next round of the loop another block can be read. */ size_t n; sum = 0; /* Read block. Take care for partial reads. */ while (1) { /* Either process a partial fread() from this loop, or the fread() in afalg_stream may have gotten EOF. We need to avoid a subsequent fread() as EOF may not be sticky. For details of such systems, see: https://sourceware.org/bugzilla/show_bug.cgi?id=1190 */ if (feof (stream)) goto process_partial_block; n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); sum += n; if (sum == BLOCKSIZE) break; if (n == 0) { /* Check for the error flag IFF N == 0, so that we don't exit the loop after a partial read due to e.g., EAGAIN or EWOULDBLOCK. */ if (ferror (stream)) { free (buffer); return 1; } goto process_partial_block; } } /* Process buffer with BLOCKSIZE bytes. Note that BLOCKSIZE % 64 == 0 */ sha1_process_block (buffer, BLOCKSIZE, &ctx); } process_partial_block:; /* Process any remaining bytes. */ if (sum > 0) sha1_process_bytes (buffer, sum, &ctx); /* Construct result in desired memory. */ sha1_finish_ctx (&ctx, resblock); free (buffer); return 0; } /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/lib/gl/freading.c0000644000000000000000000000616314273615122012775 00000000000000/* Retrieve information about a FILE stream. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "freading.h" #include "stdio-impl.h" /* Don't use glibc's __freading function in glibc < 2.7, see */ #if !(HAVE___FREADING && (!defined __GLIBC__ || defined __UCLIBC__ || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 7))) bool freading (FILE *fp) { /* Most systems provide FILE as a struct and the necessary bitmask in , because they need it for implementing getc() and putc() as fast macros. */ # if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ return ((fp->_flags & _IO_NO_WRITES) != 0 || ((fp->_flags & (_IO_NO_READS | _IO_CURRENTLY_PUTTING)) == 0 && fp->_IO_read_base != NULL)); # elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin < 1.7.34, Minix 3, Android */ return (fp_->_flags & __SRD) != 0; # elif defined __EMX__ /* emx+gcc */ return (fp->_flags & _IOREAD) != 0; # elif defined __minix /* Minix */ return (fp->_flags & _IOREADING) != 0; # elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ # if defined __sun /* Solaris */ return (fp_->_flag & _IOREAD) != 0 && (fp_->_flag & _IOWRT) == 0; # else return (fp_->_flag & _IOREAD) != 0; # endif # elif defined __UCLIBC__ /* uClibc */ return (fp->__modeflags & (__FLAG_READONLY | __FLAG_READING)) != 0; # elif defined __QNX__ /* QNX */ return ((fp->_Mode & 0x2 /* _MOPENW */) == 0 || (fp->_Mode & 0x1000 /* _MREAD */) != 0); # elif defined __MINT__ /* Atari FreeMiNT */ if (!fp->__mode.__write) return 1; if (!fp->__mode.__read) return 0; # ifdef _IO_CURRENTLY_GETTING /* Flag added on 2009-02-28 */ return (fp->__flags & _IO_CURRENTLY_GETTING) != 0; # else return (fp->__buffer < fp->__get_limit /*|| fp->__bufp == fp->__put_limit ??*/); # endif # elif defined EPLAN9 /* Plan9 */ if (fp->state == 0 /* CLOSED */ || fp->state == 4 /* WR */) return 0; return (fp->state == 3 /* RD */ && (fp->bufl == 0 || fp->rp < fp->wp)); # else # error "Please port gnulib freading.c to your platform!" # endif } #endif shishi-1.0.3/lib/gl/Makefile.am0000644000000000000000000031367214273615135013120 00000000000000## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: # gnulib-tool --import --local-dir=lib/gl \ # --lib=libgnu \ # --source-base=lib/gl \ # --m4-base=lib/gl/m4 \ # --doc-base=doc \ # --tests-base=lib/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=libgl \ # --avoid=xalloc-die \ # areadlink \ # arpa_inet \ # base64 \ # bind \ # close \ # connect \ # crc \ # crypto/arcfour \ # crypto/gc-des \ # crypto/gc-hmac-md5 \ # crypto/gc-hmac-sha1 \ # crypto/gc-md4 \ # crypto/gc-md5 \ # crypto/gc-pbkdf2-sha1 \ # crypto/gc-random \ # fcntl \ # getaddrinfo \ # getline \ # getpass \ # getsubopt \ # minmax \ # netinet_in \ # parse-datetime \ # read-file \ # recvfrom \ # select \ # sendto \ # shutdown \ # signal \ # socket \ # sockets \ # socklen \ # stat \ # stdint \ # strcase \ # strerror \ # strndup \ # strtok_r \ # strverscmp \ # sys_select \ # sys_socket \ # sys_stat \ # sys_time \ # time \ # timegm \ # unistd \ # vasnprintf \ # vasprintf \ # xalloc \ # xgetdomainname \ # xgethostname \ # xstrndup \ # xvasprintf AUTOMAKE_OPTIONS = 1.14 gnits SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = EXTRA_DIST = BUILT_SOURCES = SUFFIXES = MOSTLYCLEANFILES = core *.stackdump MOSTLYCLEANDIRS = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = # No GNU Make output. EXTRA_DIST += m4/gnulib-cache.m4 AM_CPPFLAGS = AM_CFLAGS = noinst_LTLIBRARIES += libgnu.la libgnu_la_SOURCES = libgnu_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) libgnu_la_LIBADD = $(libgl_LTLIBOBJS) libgnu_la_DEPENDENCIES = $(libgl_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = libgnu_la_LDFLAGS = $(AM_LDFLAGS) libgnu_la_LDFLAGS += -no-undefined libgnu_la_LDFLAGS += $(GETADDRINFO_LIB) libgnu_la_LDFLAGS += $(GETHOSTNAME_LIB) libgnu_la_LDFLAGS += $(HOSTENT_LIB) libgnu_la_LDFLAGS += $(INET_NTOP_LIB) libgnu_la_LDFLAGS += $(LIBSOCKET) libgnu_la_LDFLAGS += $(LIB_CLOCK_GETTIME) libgnu_la_LDFLAGS += $(LIB_CRYPTO) libgnu_la_LDFLAGS += $(LIB_GETRANDOM) libgnu_la_LDFLAGS += $(LIB_SELECT) libgnu_la_LDFLAGS += $(LTLIBINTL) libgnu_la_LDFLAGS += $(SERVENT_LIB) ## begin gnulib module absolute-header # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER) ## end gnulib module absolute-header ## begin gnulib module alloca libgnu_la_LIBADD += @LTALLOCA@ libgnu_la_DEPENDENCIES += @LTALLOCA@ EXTRA_DIST += alloca.c EXTRA_libgnu_la_SOURCES += alloca.c ## end gnulib module alloca ## begin gnulib module alloca-opt BUILT_SOURCES += $(ALLOCA_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_ALLOCA_H alloca.h: alloca.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \ $(srcdir)/alloca.in.h > $@-t $(AM_V_at)mv $@-t $@ else alloca.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += alloca.h alloca.h-t EXTRA_DIST += alloca.in.h ## end gnulib module alloca-opt ## begin gnulib module allocator libgnu_la_SOURCES += allocator.c EXTRA_DIST += allocator.h ## end gnulib module allocator ## begin gnulib module areadlink libgnu_la_SOURCES += areadlink.c EXTRA_DIST += areadlink.h ## end gnulib module areadlink ## begin gnulib module arpa_inet BUILT_SOURCES += arpa/inet.h # We need the following in order to create when the system # doesn't have one. arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/arpa' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \ -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \ -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \ -e 's/@''GNULIB_INET_NTOP''@/$(GL_LIBGL_GNULIB_INET_NTOP)/g' \ -e 's/@''GNULIB_INET_PTON''@/$(GL_LIBGL_GNULIB_INET_PTON)/g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \ -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \ -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \ -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/arpa_inet.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t MOSTLYCLEANDIRS += arpa EXTRA_DIST += arpa_inet.in.h ## end gnulib module arpa_inet ## begin gnulib module attribute EXTRA_DIST += attribute.h ## end gnulib module attribute ## begin gnulib module base64 libgnu_la_SOURCES += base64.h base64.c ## end gnulib module base64 ## begin gnulib module bind if GL_COND_OBJ_BIND libgnu_la_SOURCES += bind.c endif EXTRA_DIST += w32sock.h ## end gnulib module bind ## begin gnulib module bison # See the comments in bison.m4. ## end gnulib module bison ## begin gnulib module byteswap BUILT_SOURCES += $(BYTESWAP_H) # We need the following in order to create when the system # doesn't have one. if GL_GENERATE_BYTESWAP_H byteswap.h: byteswap.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/byteswap.in.h $(AM_V_at)mv $@-t $@ else byteswap.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += byteswap.h byteswap.h-t EXTRA_DIST += byteswap.in.h ## end gnulib module byteswap ## begin gnulib module c-ctype libgnu_la_SOURCES += c-ctype.h c-ctype.c ## end gnulib module c-ctype ## begin gnulib module calloc-gnu EXTRA_DIST += calloc.c EXTRA_libgnu_la_SOURCES += calloc.c ## end gnulib module calloc-gnu ## begin gnulib module calloc-posix EXTRA_DIST += calloc.c EXTRA_libgnu_la_SOURCES += calloc.c ## end gnulib module calloc-posix ## begin gnulib module careadlinkat libgnu_la_SOURCES += careadlinkat.c EXTRA_DIST += careadlinkat.h ## end gnulib module careadlinkat ## begin gnulib module cloexec libgnu_la_SOURCES += cloexec.c EXTRA_DIST += cloexec.h ## end gnulib module cloexec ## begin gnulib module close if GL_COND_OBJ_CLOSE libgnu_la_SOURCES += close.c endif ## end gnulib module close ## begin gnulib module connect if GL_COND_OBJ_CONNECT libgnu_la_SOURCES += connect.c endif EXTRA_DIST += w32sock.h ## end gnulib module connect ## begin gnulib module crc libgnu_la_SOURCES += crc.c EXTRA_DIST += crc.h ## end gnulib module crc ## begin gnulib module crypto/af_alg libgnu_la_SOURCES += af_alg.c EXTRA_DIST += af_alg.h sys-limits.h ## end gnulib module crypto/af_alg ## begin gnulib module crypto/arcfour libgnu_la_SOURCES += arcfour.c EXTRA_DIST += arcfour.h ## end gnulib module crypto/arcfour ## begin gnulib module crypto/des libgnu_la_SOURCES += des.c EXTRA_DIST += des.h ## end gnulib module crypto/des ## begin gnulib module crypto/gc if GL_COND_OBJ_GC_LIBGCRYPT libgnu_la_SOURCES += gc-libgcrypt.c else libgnu_la_SOURCES += gc-gnulib.c endif if GL_COND_LIBTOOL libgnu_la_LDFLAGS += $(LTLIBGCRYPT) endif EXTRA_DIST += gc.h ## end gnulib module crypto/gc ## begin gnulib module crypto/gc-md5 libgnu_la_SOURCES += md5.h ## end gnulib module crypto/gc-md5 ## begin gnulib module crypto/gc-pbkdf2 libgnu_la_SOURCES += gc-pbkdf2.c ## end gnulib module crypto/gc-pbkdf2 ## begin gnulib module crypto/gc-pbkdf2-sha1 libgnu_la_SOURCES += gc-pbkdf2-sha1.c ## end gnulib module crypto/gc-pbkdf2-sha1 ## begin gnulib module crypto/hmac-md5 libgnu_la_SOURCES += hmac-md5.c EXTRA_DIST += hmac.c hmac.h EXTRA_libgnu_la_SOURCES += hmac.c ## end gnulib module crypto/hmac-md5 ## begin gnulib module crypto/hmac-sha1 libgnu_la_SOURCES += hmac-sha1.c EXTRA_DIST += hmac.c hmac.h EXTRA_libgnu_la_SOURCES += hmac.c ## end gnulib module crypto/hmac-sha1 ## begin gnulib module crypto/md4 libgnu_la_SOURCES += md4-stream.c ## end gnulib module crypto/md4 ## begin gnulib module crypto/md4-buffer libgnu_la_SOURCES += md4.c EXTRA_DIST += md4.h ## end gnulib module crypto/md4-buffer ## begin gnulib module crypto/md5 libgnu_la_SOURCES += md5-stream.c ## end gnulib module crypto/md5 ## begin gnulib module crypto/md5-buffer libgnu_la_SOURCES += md5.c EXTRA_DIST += gl_openssl.h md5.h ## end gnulib module crypto/md5-buffer ## begin gnulib module crypto/sha1 libgnu_la_SOURCES += sha1-stream.c ## end gnulib module crypto/sha1 ## begin gnulib module crypto/sha1-buffer libgnu_la_SOURCES += sha1.c EXTRA_DIST += gl_openssl.h sha1.h ## end gnulib module crypto/sha1-buffer ## begin gnulib module dup2 if GL_COND_OBJ_DUP2 libgnu_la_SOURCES += dup2.c endif ## end gnulib module dup2 ## begin gnulib module errno BUILT_SOURCES += $(ERRNO_H) # We need the following in order to create when the system # doesn't have one that is POSIX compliant. if GL_GENERATE_ERRNO_H errno.h: errno.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ $(srcdir)/errno.in.h > $@-t $(AM_V_at)mv $@-t $@ else errno.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += errno.h errno.h-t EXTRA_DIST += errno.in.h ## end gnulib module errno ## begin gnulib module explicit_bzero if GL_COND_OBJ_EXPLICIT_BZERO libgnu_la_SOURCES += explicit_bzero.c endif ## end gnulib module explicit_bzero ## begin gnulib module fcntl if GL_COND_OBJ_FCNTL libgnu_la_SOURCES += fcntl.c endif ## end gnulib module fcntl ## begin gnulib module fcntl-h BUILT_SOURCES += fcntl.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ -e 's/@''GNULIB_CREAT''@/$(GL_LIBGL_GNULIB_CREAT)/g' \ -e 's/@''GNULIB_FCNTL''@/$(GL_LIBGL_GNULIB_FCNTL)/g' \ -e 's/@''GNULIB_NONBLOCKING''@/$(GL_LIBGL_GNULIB_NONBLOCKING)/g' \ -e 's/@''GNULIB_OPEN''@/$(GL_LIBGL_GNULIB_OPEN)/g' \ -e 's/@''GNULIB_OPENAT''@/$(GL_LIBGL_GNULIB_OPENAT)/g' \ -e 's/@''GNULIB_MDA_CREAT''@/$(GL_LIBGL_GNULIB_MDA_CREAT)/g' \ -e 's/@''GNULIB_MDA_OPEN''@/$(GL_LIBGL_GNULIB_MDA_OPEN)/g' \ -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/fcntl.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += fcntl.h fcntl.h-t EXTRA_DIST += fcntl.in.h ## end gnulib module fcntl-h ## begin gnulib module fd-hook libgnu_la_SOURCES += fd-hook.c EXTRA_DIST += fd-hook.h ## end gnulib module fd-hook ## begin gnulib module fflush if GL_COND_OBJ_FFLUSH libgnu_la_SOURCES += fflush.c endif EXTRA_DIST += stdio-impl.h ## end gnulib module fflush ## begin gnulib module filename EXTRA_DIST += filename.h ## end gnulib module filename ## begin gnulib module flexmember EXTRA_DIST += flexmember.h ## end gnulib module flexmember ## begin gnulib module float BUILT_SOURCES += $(FLOAT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_FLOAT_H float.h: float.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \ -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \ $(srcdir)/float.in.h > $@-t $(AM_V_at)mv $@-t $@ else float.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += float.h float.h-t if GL_COND_OBJ_FLOAT libgnu_la_SOURCES += float.c endif if GL_COND_OBJ_ITOLD libgnu_la_SOURCES += itold.c endif EXTRA_DIST += float.in.h ## end gnulib module float ## begin gnulib module fopen EXTRA_DIST += fopen.c EXTRA_libgnu_la_SOURCES += fopen.c ## end gnulib module fopen ## begin gnulib module fopen-gnu EXTRA_DIST += fopen.c EXTRA_libgnu_la_SOURCES += fopen.c ## end gnulib module fopen-gnu ## begin gnulib module fpurge if GL_COND_OBJ_FPURGE libgnu_la_SOURCES += fpurge.c endif EXTRA_DIST += stdio-impl.h ## end gnulib module fpurge ## begin gnulib module freading libgnu_la_SOURCES += freading.c EXTRA_DIST += freading.h stdio-impl.h ## end gnulib module freading ## begin gnulib module free-posix if GL_COND_OBJ_FREE libgnu_la_SOURCES += free.c endif ## end gnulib module free-posix ## begin gnulib module fseek if GL_COND_OBJ_FSEEK libgnu_la_SOURCES += fseek.c endif ## end gnulib module fseek ## begin gnulib module fseeko if GL_COND_OBJ_FSEEKO libgnu_la_SOURCES += fseeko.c endif EXTRA_DIST += stdio-impl.h ## end gnulib module fseeko ## begin gnulib module fstat if GL_COND_OBJ_FSTAT libgnu_la_SOURCES += fstat.c endif EXTRA_DIST += stat-w32.c stat-w32.h EXTRA_libgnu_la_SOURCES += stat-w32.c ## end gnulib module fstat ## begin gnulib module ftell if GL_COND_OBJ_FTELL libgnu_la_SOURCES += ftell.c endif ## end gnulib module ftell ## begin gnulib module ftello if GL_COND_OBJ_FTELLO libgnu_la_SOURCES += ftello.c endif EXTRA_DIST += stdio-impl.h ## end gnulib module ftello ## begin gnulib module gen-header # In 'sed', replace the pattern space with a "DO NOT EDIT" comment. SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */, # '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT". SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G # '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading # "DO_NOT_EDIT". Although this could be done more simply via: # SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t # the -n and 'w' avoid a fork+exec, at least when GNU Make is used. SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t' # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that gl_V_at = $(AM_V_GEN) ## end gnulib module gen-header ## begin gnulib module getaddrinfo if GL_COND_OBJ_GETADDRINFO libgnu_la_SOURCES += getaddrinfo.c endif if GL_COND_OBJ_GAI_STRERROR libgnu_la_SOURCES += gai_strerror.c endif ## end gnulib module getaddrinfo ## begin gnulib module getdelim if GL_COND_OBJ_GETDELIM libgnu_la_SOURCES += getdelim.c endif ## end gnulib module getdelim ## begin gnulib module getdomainname if GL_COND_OBJ_GETDOMAINNAME libgnu_la_SOURCES += getdomainname.c endif ## end gnulib module getdomainname ## begin gnulib module getdtablesize if GL_COND_OBJ_GETDTABLESIZE libgnu_la_SOURCES += getdtablesize.c endif ## end gnulib module getdtablesize ## begin gnulib module gethostname if GL_COND_OBJ_GETHOSTNAME libgnu_la_SOURCES += gethostname.c endif EXTRA_DIST += w32sock.h ## end gnulib module gethostname ## begin gnulib module getline if GL_COND_OBJ_GETLINE libgnu_la_SOURCES += getline.c endif ## end gnulib module getline ## begin gnulib module getpass EXTRA_DIST += getpass.c getpass.h EXTRA_libgnu_la_SOURCES += getpass.c ## end gnulib module getpass ## begin gnulib module getpeername if GL_COND_OBJ_GETPEERNAME libgnu_la_SOURCES += getpeername.c endif EXTRA_DIST += w32sock.h ## end gnulib module getpeername ## begin gnulib module getrandom if GL_COND_OBJ_GETRANDOM libgnu_la_SOURCES += getrandom.c endif ## end gnulib module getrandom ## begin gnulib module getsubopt if GL_COND_OBJ_GETSUBOPT libgnu_la_SOURCES += getsubopt.c endif ## end gnulib module getsubopt ## begin gnulib module gettext-h libgnu_la_SOURCES += gettext.h ## end gnulib module gettext-h ## begin gnulib module gettime libgnu_la_SOURCES += gettime.c ## end gnulib module gettime ## begin gnulib module gettimeofday if GL_COND_OBJ_GETTIMEOFDAY libgnu_la_SOURCES += gettimeofday.c endif ## end gnulib module gettimeofday ## begin gnulib module havelib EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath ## end gnulib module havelib ## begin gnulib module ialloc libgnu_la_SOURCES += ialloc.c EXTRA_DIST += ialloc.h ## end gnulib module ialloc ## begin gnulib module idx libgnu_la_SOURCES += idx.h ## end gnulib module idx ## begin gnulib module inet_ntop if GL_COND_OBJ_INET_NTOP libgnu_la_SOURCES += inet_ntop.c endif ## end gnulib module inet_ntop ## begin gnulib module intprops EXTRA_DIST += intprops.h ## end gnulib module intprops ## begin gnulib module inttypes-incomplete BUILT_SOURCES += inttypes.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ -e 's/@''GNULIB_IMAXABS''@/$(GL_LIBGL_GNULIB_IMAXABS)/g' \ -e 's/@''GNULIB_IMAXDIV''@/$(GL_LIBGL_GNULIB_IMAXDIV)/g' \ -e 's/@''GNULIB_STRTOIMAX''@/$(GL_LIBGL_GNULIB_STRTOIMAX)/g' \ -e 's/@''GNULIB_STRTOUMAX''@/$(GL_LIBGL_GNULIB_STRTOUMAX)/g' \ -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ -e 's/@''HAVE_IMAXDIV_T''@/$(HAVE_IMAXDIV_T)/g' \ -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \ -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \ -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \ -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \ -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \ -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/inttypes.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += inttypes.h inttypes.h-t EXTRA_DIST += inttypes.in.h ## end gnulib module inttypes-incomplete ## begin gnulib module libc-config EXTRA_DIST += cdefs.h libc-config.h ## end gnulib module libc-config ## begin gnulib module limits-h BUILT_SOURCES += $(LIMITS_H) # We need the following in order to create when the system # doesn't have one that is compatible with GNU. if GL_GENERATE_LIMITS_H limits.h: limits.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \ $(srcdir)/limits.in.h > $@-t $(AM_V_at)mv $@-t $@ else limits.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += limits.h limits.h-t EXTRA_DIST += limits.in.h ## end gnulib module limits-h ## begin gnulib module lseek if GL_COND_OBJ_LSEEK libgnu_la_SOURCES += lseek.c endif ## end gnulib module lseek ## begin gnulib module malloc-gnu EXTRA_DIST += malloc.c EXTRA_libgnu_la_SOURCES += malloc.c ## end gnulib module malloc-gnu ## begin gnulib module malloc-posix EXTRA_DIST += malloc.c EXTRA_libgnu_la_SOURCES += malloc.c ## end gnulib module malloc-posix ## begin gnulib module malloca libgnu_la_SOURCES += malloca.c EXTRA_DIST += malloca.h ## end gnulib module malloca ## begin gnulib module memchr if GL_COND_OBJ_MEMCHR libgnu_la_SOURCES += memchr.c endif EXTRA_DIST += memchr.valgrind ## end gnulib module memchr ## begin gnulib module memxor libgnu_la_SOURCES += memxor.c EXTRA_DIST += memxor.h ## end gnulib module memxor ## begin gnulib module minmax libgnu_la_SOURCES += minmax.h ## end gnulib module minmax ## begin gnulib module mktime EXTRA_DIST += mktime-internal.h mktime.c EXTRA_libgnu_la_SOURCES += mktime.c ## end gnulib module mktime ## begin gnulib module mktime-internal EXTRA_DIST += mktime-internal.h mktime.c EXTRA_libgnu_la_SOURCES += mktime.c ## end gnulib module mktime-internal ## begin gnulib module msvc-inval if GL_COND_OBJ_MSVC_INVAL libgnu_la_SOURCES += msvc-inval.c endif EXTRA_DIST += msvc-inval.h ## end gnulib module msvc-inval ## begin gnulib module msvc-nothrow if GL_COND_OBJ_MSVC_NOTHROW libgnu_la_SOURCES += msvc-nothrow.c endif EXTRA_DIST += msvc-nothrow.h ## end gnulib module msvc-nothrow ## begin gnulib module netdb BUILT_SOURCES += netdb.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. netdb.h: netdb.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \ -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \ -e 's/@''GNULIB_GETADDRINFO''@/$(GL_LIBGL_GNULIB_GETADDRINFO)/g' \ -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \ -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \ -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \ -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \ -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \ -e 's|@''REPLACE_GAI_STRERROR''@|$(REPLACE_GAI_STRERROR)|g' \ -e 's|@''REPLACE_GETADDRINFO''@|$(REPLACE_GETADDRINFO)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/netdb.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += netdb.h netdb.h-t EXTRA_DIST += netdb.in.h ## end gnulib module netdb ## begin gnulib module netinet_in BUILT_SOURCES += $(NETINET_IN_H) # We need the following in order to create when the system # doesn't have one. if GL_GENERATE_NETINET_IN_H netinet/in.h: netinet_in.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) '%reldir%/netinet' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \ -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \ $(srcdir)/netinet_in.in.h > $@-t $(AM_V_at)mv $@-t $@ else netinet/in.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t MOSTLYCLEANDIRS += netinet EXTRA_DIST += netinet_in.in.h ## end gnulib module netinet_in ## begin gnulib module nstrftime libgnu_la_SOURCES += nstrftime.c EXTRA_DIST += strftime.h ## end gnulib module nstrftime ## begin gnulib module open if GL_COND_OBJ_OPEN libgnu_la_SOURCES += open.c endif ## end gnulib module open ## begin gnulib module parse-datetime # The Automake generated .y.c rule is broken: When executed in a VPATH build, # - The .c file gets generated in the build directory. But since it requires # special tools to rebuild it, we need to distribute it in the tarballs, # and by the GNU Coding Standards # # the file should be generated in the source directory. # - The #line directives in the .c file refer to a nonexistent file once it # has been moved from the build directory to the source directory. This # leads to error if 'lcov' is used later. # Additionally, here we assume GNU Bison and therefore don't need the ylwrap # script. # Therefore we override this rule. # Since this is a rule that produces multiple files, we apply the idiom from # , so that # it works also in parallel 'make'. generate-parse-datetime: $(AM_V_YACC)$(PARSE_DATETIME_BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/parse-datetime.y \ && test ':' = '$(PARSE_DATETIME_BISON)' || { \ sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \ -e 's|"parse-datetime\.tab\.c"|"parse-datetime.c"|' \ -e 's|"parse-datetime\.tab\.h"|"parse-datetime-gen.h"|' \ < parse-datetime.tab.c > parse-datetime.c-tmp \ && sed -e 's|".*/parse-datetime\.y"|"parse-datetime.y"|' \ -e 's|"parse-datetime\.tab\.h"|"parse-datetime-gen.h"|' \ < parse-datetime.tab.h > parse-datetime-gen.h-tmp \ && rm -f parse-datetime.tab.c parse-datetime.tab.h \ && mv parse-datetime.c-tmp $(srcdir)/parse-datetime.c \ && mv parse-datetime-gen.h-tmp $(srcdir)/parse-datetime-gen.h; \ } .PHONY: generate-parse-datetime # The above rule will generate files with time stamp order # parse-datetime.y <= parse-datetime.c <= parse-datetime-gen.h. parse-datetime.c: parse-datetime.y @{ test -f $(srcdir)/parse-datetime.c && test ! $(srcdir)/parse-datetime.c -ot $(srcdir)/parse-datetime.y; } || $(MAKE) generate-parse-datetime parse-datetime-gen.h: parse-datetime.c @{ test -f $(srcdir)/parse-datetime-gen.h && test ! $(srcdir)/parse-datetime-gen.h -ot $(srcdir)/parse-datetime.c; } || $(MAKE) generate-parse-datetime libgnu_la_SOURCES += parse-datetime.y BUILT_SOURCES += parse-datetime.c parse-datetime-gen.h MOSTLYCLEANFILES += parse-datetime.tab.c parse-datetime.tab.h parse-datetime.c-tmp parse-datetime-gen.h-tmp MAINTAINERCLEANFILES += parse-datetime.c parse-datetime-gen.h EXTRA_DIST += parse-datetime.c parse-datetime-gen.h EXTRA_DIST += parse-datetime.h ## end gnulib module parse-datetime ## begin gnulib module pathmax EXTRA_DIST += pathmax.h ## end gnulib module pathmax ## begin gnulib module rawmemchr if GL_COND_OBJ_RAWMEMCHR libgnu_la_SOURCES += rawmemchr.c endif EXTRA_DIST += rawmemchr.valgrind ## end gnulib module rawmemchr ## begin gnulib module read-file libgnu_la_SOURCES += read-file.c EXTRA_DIST += read-file.h ## end gnulib module read-file ## begin gnulib module readlink if GL_COND_OBJ_READLINK libgnu_la_SOURCES += readlink.c endif ## end gnulib module readlink ## begin gnulib module realloc-gnu EXTRA_DIST += realloc.c EXTRA_libgnu_la_SOURCES += realloc.c ## end gnulib module realloc-gnu ## begin gnulib module realloc-posix EXTRA_DIST += realloc.c EXTRA_libgnu_la_SOURCES += realloc.c ## end gnulib module realloc-posix ## begin gnulib module reallocarray if GL_COND_OBJ_REALLOCARRAY libgnu_la_SOURCES += reallocarray.c endif ## end gnulib module reallocarray ## begin gnulib module recvfrom if GL_COND_OBJ_RECVFROM libgnu_la_SOURCES += recvfrom.c endif EXTRA_DIST += w32sock.h ## end gnulib module recvfrom ## begin gnulib module select if GL_COND_OBJ_SELECT libgnu_la_SOURCES += select.c endif ## end gnulib module select ## begin gnulib module sendto if GL_COND_OBJ_SENDTO libgnu_la_SOURCES += sendto.c endif EXTRA_DIST += w32sock.h ## end gnulib module sendto ## begin gnulib module setenv if GL_COND_OBJ_SETENV libgnu_la_SOURCES += setenv.c endif ## end gnulib module setenv ## begin gnulib module shutdown if GL_COND_OBJ_SHUTDOWN libgnu_la_SOURCES += shutdown.c endif EXTRA_DIST += w32sock.h ## end gnulib module shutdown ## begin gnulib module signal-h BUILT_SOURCES += signal.h # We need the following in order to create when the system # doesn't have a complete one. signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \ -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GL_LIBGL_GNULIB_PTHREAD_SIGMASK)/g' \ -e 's/@''GNULIB_RAISE''@/$(GL_LIBGL_GNULIB_RAISE)/g' \ -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE)/g' \ -e 's/@''GNULIB_SIGPROCMASK''@/$(GL_LIBGL_GNULIB_SIGPROCMASK)/g' \ -e 's/@''GNULIB_SIGACTION''@/$(GL_LIBGL_GNULIB_SIGACTION)/g' \ -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \ -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \ -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \ -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \ -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \ -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \ -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \ -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \ -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \ -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \ -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/signal.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += signal.h signal.h-t EXTRA_DIST += signal.in.h ## end gnulib module signal-h ## begin gnulib module size_max libgnu_la_SOURCES += size_max.h ## end gnulib module size_max ## begin gnulib module snippet/_Noreturn # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. _NORETURN_H=$(srcdir)/_Noreturn.h EXTRA_DIST += _Noreturn.h ## end gnulib module snippet/_Noreturn ## begin gnulib module snippet/arg-nonnull # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. ARG_NONNULL_H=$(srcdir)/arg-nonnull.h EXTRA_DIST += arg-nonnull.h ## end gnulib module snippet/arg-nonnull ## begin gnulib module snippet/c++defs # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. CXXDEFS_H=$(srcdir)/c++defs.h EXTRA_DIST += c++defs.h ## end gnulib module snippet/c++defs ## begin gnulib module snippet/warn-on-use # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. WARN_ON_USE_H=$(srcdir)/warn-on-use.h EXTRA_DIST += warn-on-use.h ## end gnulib module snippet/warn-on-use ## begin gnulib module snprintf EXTRA_DIST += snprintf.c EXTRA_libgnu_la_SOURCES += snprintf.c ## end gnulib module snprintf ## begin gnulib module socket if GL_COND_OBJ_SOCKET libgnu_la_SOURCES += socket.c endif EXTRA_DIST += w32sock.h ## end gnulib module socket ## begin gnulib module sockets libgnu_la_SOURCES += sockets.h sockets.c EXTRA_DIST += w32sock.h ## end gnulib module sockets ## begin gnulib module stat if GL_COND_OBJ_STAT libgnu_la_SOURCES += stat.c endif EXTRA_DIST += stat-w32.c stat-w32.h EXTRA_libgnu_la_SOURCES += stat-w32.c ## end gnulib module stat ## begin gnulib module stat-time libgnu_la_SOURCES += stat-time.c EXTRA_DIST += stat-time.h ## end gnulib module stat-time ## begin gnulib module stdalign BUILT_SOURCES += $(STDALIGN_H) # We need the following in order to create when the system # doesn't have one that works. if GL_GENERATE_STDALIGN_H stdalign.h: stdalign.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/stdalign.in.h $(AM_V_at)mv $@-t $@ else stdalign.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdalign.h stdalign.h-t EXTRA_DIST += stdalign.in.h ## end gnulib module stdalign ## begin gnulib module stdarg BUILT_SOURCES += $(STDARG_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDARG_H stdarg.h: stdarg.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ $(srcdir)/stdarg.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdarg.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdarg.h stdarg.h-t EXTRA_DIST += stdarg.in.h ## end gnulib module stdarg ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) # We need the following in order to create when the system # doesn't have one that works. if GL_GENERATE_STDBOOL_H stdbool.h: stdbool.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ $(srcdir)/stdbool.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdbool.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdbool.h stdbool.h-t EXTRA_DIST += stdbool.in.h ## end gnulib module stdbool ## begin gnulib module stddef BUILT_SOURCES += $(STDDEF_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDDEF_H stddef.h: stddef.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \ -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ $(srcdir)/stddef.in.h > $@-t $(AM_V_at)mv $@-t $@ else stddef.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stddef.h stddef.h-t EXTRA_DIST += stddef.in.h ## end gnulib module stddef ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDINT_H stdint.h: stdint.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_C99_STDINT_H''@/$(HAVE_C99_STDINT_H)/g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ $(srcdir)/stdint.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdint.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdint.h stdint.h-t EXTRA_DIST += stdint.in.h ## end gnulib module stdint ## begin gnulib module stdio BUILT_SOURCES += stdio.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GL_LIBGL_GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GL_LIBGL_GNULIB_FCLOSE)/g' \ -e 's/@''GNULIB_FDOPEN''@/$(GL_LIBGL_GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GL_LIBGL_GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GL_LIBGL_GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GL_LIBGL_GNULIB_FGETS)/g' \ -e 's/@''GNULIB_FOPEN''@/$(GL_LIBGL_GNULIB_FOPEN)/g' \ -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_LIBGL_GNULIB_FOPEN_GNU)/g' \ -e 's/@''GNULIB_FPRINTF''@/$(GL_LIBGL_GNULIB_FPRINTF)/g' \ -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_FPRINTF_POSIX)/g' \ -e 's/@''GNULIB_FPURGE''@/$(GL_LIBGL_GNULIB_FPURGE)/g' \ -e 's/@''GNULIB_FPUTC''@/$(GL_LIBGL_GNULIB_FPUTC)/g' \ -e 's/@''GNULIB_FPUTS''@/$(GL_LIBGL_GNULIB_FPUTS)/g' \ -e 's/@''GNULIB_FREAD''@/$(GL_LIBGL_GNULIB_FREAD)/g' \ -e 's/@''GNULIB_FREOPEN''@/$(GL_LIBGL_GNULIB_FREOPEN)/g' \ -e 's/@''GNULIB_FSCANF''@/$(GL_LIBGL_GNULIB_FSCANF)/g' \ -e 's/@''GNULIB_FSEEK''@/$(GL_LIBGL_GNULIB_FSEEK)/g' \ -e 's/@''GNULIB_FSEEKO''@/$(GL_LIBGL_GNULIB_FSEEKO)/g' \ -e 's/@''GNULIB_FTELL''@/$(GL_LIBGL_GNULIB_FTELL)/g' \ -e 's/@''GNULIB_FTELLO''@/$(GL_LIBGL_GNULIB_FTELLO)/g' \ -e 's/@''GNULIB_FWRITE''@/$(GL_LIBGL_GNULIB_FWRITE)/g' \ -e 's/@''GNULIB_GETC''@/$(GL_LIBGL_GNULIB_GETC)/g' \ -e 's/@''GNULIB_GETCHAR''@/$(GL_LIBGL_GNULIB_GETCHAR)/g' \ -e 's/@''GNULIB_GETDELIM''@/$(GL_LIBGL_GNULIB_GETDELIM)/g' \ -e 's/@''GNULIB_GETLINE''@/$(GL_LIBGL_GNULIB_GETLINE)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_LIBGL_GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PCLOSE''@/$(GL_LIBGL_GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GL_LIBGL_GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GL_LIBGL_GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GL_LIBGL_GNULIB_PRINTF)/g' \ -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_LIBGL_GNULIB_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PUTC''@/$(GL_LIBGL_GNULIB_PUTC)/g' \ -e 's/@''GNULIB_PUTCHAR''@/$(GL_LIBGL_GNULIB_PUTCHAR)/g' \ -e 's/@''GNULIB_PUTS''@/$(GL_LIBGL_GNULIB_PUTS)/g' \ -e 's/@''GNULIB_REMOVE''@/$(GL_LIBGL_GNULIB_REMOVE)/g' \ -e 's/@''GNULIB_RENAME''@/$(GL_LIBGL_GNULIB_RENAME)/g' \ -e 's/@''GNULIB_RENAMEAT''@/$(GL_LIBGL_GNULIB_RENAMEAT)/g' \ -e 's/@''GNULIB_SCANF''@/$(GL_LIBGL_GNULIB_SCANF)/g' \ -e 's/@''GNULIB_SNPRINTF''@/$(GL_LIBGL_GNULIB_SNPRINTF)/g' \ -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_SPRINTF_POSIX)/g' \ -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_STDIO_H_SIGPIPE)/g' \ -e 's/@''GNULIB_TMPFILE''@/$(GL_LIBGL_GNULIB_TMPFILE)/g' \ -e 's/@''GNULIB_VASPRINTF''@/$(GL_LIBGL_GNULIB_VASPRINTF)/g' \ -e 's/@''GNULIB_VDPRINTF''@/$(GL_LIBGL_GNULIB_VDPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF''@/$(GL_LIBGL_GNULIB_VFPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VFPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VFSCANF''@/$(GL_LIBGL_GNULIB_VFSCANF)/g' \ -e 's/@''GNULIB_VSCANF''@/$(GL_LIBGL_GNULIB_VSCANF)/g' \ -e 's/@''GNULIB_VPRINTF''@/$(GL_LIBGL_GNULIB_VPRINTF)/g' \ -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VSNPRINTF''@/$(GL_LIBGL_GNULIB_VSNPRINTF)/g' \ -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_LIBGL_GNULIB_VSPRINTF_POSIX)/g' \ -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_LIBGL_GNULIB_MDA_FCLOSEALL)/g' \ -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_LIBGL_GNULIB_MDA_FDOPEN)/g' \ -e 's/@''GNULIB_MDA_FILENO''@/$(GL_LIBGL_GNULIB_MDA_FILENO)/g' \ -e 's/@''GNULIB_MDA_GETW''@/$(GL_LIBGL_GNULIB_MDA_GETW)/g' \ -e 's/@''GNULIB_MDA_PUTW''@/$(GL_LIBGL_GNULIB_MDA_PUTW)/g' \ -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_LIBGL_GNULIB_MDA_TEMPNAM)/g' \ < $(srcdir)/stdio.in.h | \ sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \ -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \ -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += stdio.h stdio.h-t if GL_COND_OBJ_STDIO_READ libgnu_la_SOURCES += stdio-read.c endif if GL_COND_OBJ_STDIO_WRITE libgnu_la_SOURCES += stdio-write.c endif EXTRA_DIST += stdio.in.h ## end gnulib module stdio ## begin gnulib module stdlib BUILT_SOURCES += stdlib.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's/@''GNULIB__EXIT''@/$(GL_LIBGL_GNULIB__EXIT)/g' \ -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_LIBGL_GNULIB_ALIGNED_ALLOC)/g' \ -e 's/@''GNULIB_ATOLL''@/$(GL_LIBGL_GNULIB_ATOLL)/g' \ -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_LIBGL_GNULIB_CALLOC_GNU)/g' \ -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_LIBGL_GNULIB_CALLOC_POSIX)/g' \ -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ -e 's/@''GNULIB_GETLOADAVG''@/$(GL_LIBGL_GNULIB_GETLOADAVG)/g' \ -e 's/@''GNULIB_GETSUBOPT''@/$(GL_LIBGL_GNULIB_GETSUBOPT)/g' \ -e 's/@''GNULIB_GRANTPT''@/$(GL_LIBGL_GNULIB_GRANTPT)/g' \ -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_LIBGL_GNULIB_MALLOC_GNU)/g' \ -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_LIBGL_GNULIB_MALLOC_POSIX)/g' \ -e 's/@''GNULIB_MBTOWC''@/$(GL_LIBGL_GNULIB_MBTOWC)/g' \ -e 's/@''GNULIB_MKDTEMP''@/$(GL_LIBGL_GNULIB_MKDTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMP''@/$(GL_LIBGL_GNULIB_MKOSTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_LIBGL_GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GL_LIBGL_GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GL_LIBGL_GNULIB_MKSTEMPS)/g' \ -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_LIBGL_GNULIB_POSIX_MEMALIGN)/g' \ -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_LIBGL_GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GL_LIBGL_GNULIB_PTSNAME)/g' \ -e 's/@''GNULIB_PTSNAME_R''@/$(GL_LIBGL_GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GL_LIBGL_GNULIB_PUTENV)/g' \ -e 's/@''GNULIB_QSORT_R''@/$(GL_LIBGL_GNULIB_QSORT_R)/g' \ -e 's/@''GNULIB_RANDOM''@/$(GL_LIBGL_GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GL_LIBGL_GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_LIBGL_GNULIB_REALLOC_GNU)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_LIBGL_GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_LIBGL_GNULIB_REALLOCARRAY)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GL_LIBGL_GNULIB_REALPATH)/g' \ -e 's/@''GNULIB_RPMATCH''@/$(GL_LIBGL_GNULIB_RPMATCH)/g' \ -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_LIBGL_GNULIB_SECURE_GETENV)/g' \ -e 's/@''GNULIB_SETENV''@/$(GL_LIBGL_GNULIB_SETENV)/g' \ -e 's/@''GNULIB_STRTOD''@/$(GL_LIBGL_GNULIB_STRTOD)/g' \ -e 's/@''GNULIB_STRTOL''@/$(GL_LIBGL_GNULIB_STRTOL)/g' \ -e 's/@''GNULIB_STRTOLD''@/$(GL_LIBGL_GNULIB_STRTOLD)/g' \ -e 's/@''GNULIB_STRTOLL''@/$(GL_LIBGL_GNULIB_STRTOLL)/g' \ -e 's/@''GNULIB_STRTOUL''@/$(GL_LIBGL_GNULIB_STRTOUL)/g' \ -e 's/@''GNULIB_STRTOULL''@/$(GL_LIBGL_GNULIB_STRTOULL)/g' \ -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_LIBGL_GNULIB_SYSTEM_POSIX)/g' \ -e 's/@''GNULIB_UNLOCKPT''@/$(GL_LIBGL_GNULIB_UNLOCKPT)/g' \ -e 's/@''GNULIB_UNSETENV''@/$(GL_LIBGL_GNULIB_UNSETENV)/g' \ -e 's/@''GNULIB_WCTOMB''@/$(GL_LIBGL_GNULIB_WCTOMB)/g' \ -e 's/@''GNULIB_MDA_ECVT''@/$(GL_LIBGL_GNULIB_MDA_ECVT)/g' \ -e 's/@''GNULIB_MDA_FCVT''@/$(GL_LIBGL_GNULIB_MDA_FCVT)/g' \ -e 's/@''GNULIB_MDA_GCVT''@/$(GL_LIBGL_GNULIB_MDA_GCVT)/g' \ -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_LIBGL_GNULIB_MDA_MKTEMP)/g' \ -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_LIBGL_GNULIB_MDA_PUTENV)/g' \ < $(srcdir)/stdlib.in.h | \ sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \ -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \ -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \ -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \ -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \ -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \ -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \ -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \ -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \ -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \ -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \ -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \ -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \ -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \ -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \ -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \ -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \ -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \ -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \ -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \ -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \ -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \ -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \ -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \ -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _Noreturn/r $(_NORETURN_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t EXTRA_DIST += stdlib.in.h ## end gnulib module stdlib ## begin gnulib module strcase if GL_COND_OBJ_STRCASECMP libgnu_la_SOURCES += strcasecmp.c endif if GL_COND_OBJ_STRNCASECMP libgnu_la_SOURCES += strncasecmp.c endif ## end gnulib module strcase ## begin gnulib module strchrnul if GL_COND_OBJ_STRCHRNUL libgnu_la_SOURCES += strchrnul.c endif EXTRA_DIST += strchrnul.valgrind ## end gnulib module strchrnul ## begin gnulib module strdup-posix if GL_COND_OBJ_STRDUP libgnu_la_SOURCES += strdup.c endif ## end gnulib module strdup-posix ## begin gnulib module strerror if GL_COND_OBJ_STRERROR libgnu_la_SOURCES += strerror.c endif ## end gnulib module strerror ## begin gnulib module strerror-override if GL_COND_OBJ_STRERROR_OVERRIDE libgnu_la_SOURCES += strerror-override.c endif EXTRA_DIST += strerror-override.h ## end gnulib module strerror-override ## begin gnulib module string BUILT_SOURCES += string.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_LIBGL_GNULIB_EXPLICIT_BZERO)/g' \ -e 's/@''GNULIB_FFSL''@/$(GL_LIBGL_GNULIB_FFSL)/g' \ -e 's/@''GNULIB_FFSLL''@/$(GL_LIBGL_GNULIB_FFSLL)/g' \ -e 's/@''GNULIB_MBSLEN''@/$(GL_LIBGL_GNULIB_MBSLEN)/g' \ -e 's/@''GNULIB_MBSNLEN''@/$(GL_LIBGL_GNULIB_MBSNLEN)/g' \ -e 's/@''GNULIB_MBSCHR''@/$(GL_LIBGL_GNULIB_MBSCHR)/g' \ -e 's/@''GNULIB_MBSRCHR''@/$(GL_LIBGL_GNULIB_MBSRCHR)/g' \ -e 's/@''GNULIB_MBSSTR''@/$(GL_LIBGL_GNULIB_MBSSTR)/g' \ -e 's/@''GNULIB_MBSCASECMP''@/$(GL_LIBGL_GNULIB_MBSCASECMP)/g' \ -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_LIBGL_GNULIB_MBSNCASECMP)/g' \ -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_LIBGL_GNULIB_MBSPCASECMP)/g' \ -e 's/@''GNULIB_MBSCASESTR''@/$(GL_LIBGL_GNULIB_MBSCASESTR)/g' \ -e 's/@''GNULIB_MBSCSPN''@/$(GL_LIBGL_GNULIB_MBSCSPN)/g' \ -e 's/@''GNULIB_MBSPBRK''@/$(GL_LIBGL_GNULIB_MBSPBRK)/g' \ -e 's/@''GNULIB_MBSSPN''@/$(GL_LIBGL_GNULIB_MBSSPN)/g' \ -e 's/@''GNULIB_MBSSEP''@/$(GL_LIBGL_GNULIB_MBSSEP)/g' \ -e 's/@''GNULIB_MBSTOK_R''@/$(GL_LIBGL_GNULIB_MBSTOK_R)/g' \ -e 's/@''GNULIB_MEMCHR''@/$(GL_LIBGL_GNULIB_MEMCHR)/g' \ -e 's/@''GNULIB_MEMMEM''@/$(GL_LIBGL_GNULIB_MEMMEM)/g' \ -e 's/@''GNULIB_MEMPCPY''@/$(GL_LIBGL_GNULIB_MEMPCPY)/g' \ -e 's/@''GNULIB_MEMRCHR''@/$(GL_LIBGL_GNULIB_MEMRCHR)/g' \ -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_LIBGL_GNULIB_RAWMEMCHR)/g' \ -e 's/@''GNULIB_STPCPY''@/$(GL_LIBGL_GNULIB_STPCPY)/g' \ -e 's/@''GNULIB_STPNCPY''@/$(GL_LIBGL_GNULIB_STPNCPY)/g' \ -e 's/@''GNULIB_STRCHRNUL''@/$(GL_LIBGL_GNULIB_STRCHRNUL)/g' \ -e 's/@''GNULIB_STRDUP''@/$(GL_LIBGL_GNULIB_STRDUP)/g' \ -e 's/@''GNULIB_STRNCAT''@/$(GL_LIBGL_GNULIB_STRNCAT)/g' \ -e 's/@''GNULIB_STRNDUP''@/$(GL_LIBGL_GNULIB_STRNDUP)/g' \ -e 's/@''GNULIB_STRNLEN''@/$(GL_LIBGL_GNULIB_STRNLEN)/g' \ -e 's/@''GNULIB_STRPBRK''@/$(GL_LIBGL_GNULIB_STRPBRK)/g' \ -e 's/@''GNULIB_STRSEP''@/$(GL_LIBGL_GNULIB_STRSEP)/g' \ -e 's/@''GNULIB_STRSTR''@/$(GL_LIBGL_GNULIB_STRSTR)/g' \ -e 's/@''GNULIB_STRCASESTR''@/$(GL_LIBGL_GNULIB_STRCASESTR)/g' \ -e 's/@''GNULIB_STRTOK_R''@/$(GL_LIBGL_GNULIB_STRTOK_R)/g' \ -e 's/@''GNULIB_STRERROR''@/$(GL_LIBGL_GNULIB_STRERROR)/g' \ -e 's/@''GNULIB_STRERROR_R''@/$(GL_LIBGL_GNULIB_STRERROR_R)/g' \ -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_LIBGL_GNULIB_STRERRORNAME_NP)/g' \ -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_LIBGL_GNULIB_SIGABBREV_NP)/g' \ -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_LIBGL_GNULIB_SIGDESCR_NP)/g' \ -e 's/@''GNULIB_STRSIGNAL''@/$(GL_LIBGL_GNULIB_STRSIGNAL)/g' \ -e 's/@''GNULIB_STRVERSCMP''@/$(GL_LIBGL_GNULIB_STRVERSCMP)/g' \ -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_LIBGL_GNULIB_MDA_MEMCCPY)/g' \ -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_LIBGL_GNULIB_MDA_STRDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/string.in.h | \ sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \ -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \ -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \ -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \ -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \ -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \ -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \ -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \ -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \ -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t EXTRA_DIST += string.in.h ## end gnulib module string ## begin gnulib module strings BUILT_SOURCES += strings.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \ -e 's/@''GNULIB_FFS''@/$(GL_LIBGL_GNULIB_FFS)/g' \ -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \ -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \ -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/strings.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += strings.h strings.h-t EXTRA_DIST += strings.in.h ## end gnulib module strings ## begin gnulib module strndup if GL_COND_OBJ_STRNDUP libgnu_la_SOURCES += strndup.c endif ## end gnulib module strndup ## begin gnulib module strnlen if GL_COND_OBJ_STRNLEN libgnu_la_SOURCES += strnlen.c endif ## end gnulib module strnlen ## begin gnulib module strtok_r if GL_COND_OBJ_STRTOK_R libgnu_la_SOURCES += strtok_r.c endif ## end gnulib module strtok_r ## begin gnulib module strverscmp if GL_COND_OBJ_STRVERSCMP libgnu_la_SOURCES += strverscmp.c endif ## end gnulib module strverscmp ## begin gnulib module sys_random BUILT_SOURCES += sys/random.h # We need the following in order to create when the system # doesn't have one. sys/random.h: sys_random.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_RANDOM_H''@|$(NEXT_SYS_RANDOM_H)|g' \ -e 's|@''HAVE_SYS_RANDOM_H''@|$(HAVE_SYS_RANDOM_H)|g' \ -e 's/@''GNULIB_GETRANDOM''@/$(GL_LIBGL_GNULIB_GETRANDOM)/g' \ -e 's/@''HAVE_GETRANDOM''@/$(HAVE_GETRANDOM)/g' \ -e 's/@''REPLACE_GETRANDOM''@/$(REPLACE_GETRANDOM)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_random.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/random.h sys/random.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_random.in.h ## end gnulib module sys_random ## begin gnulib module sys_select BUILT_SOURCES += sys/select.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ -e 's/@''GNULIB_PSELECT''@/$(GL_LIBGL_GNULIB_PSELECT)/g' \ -e 's/@''GNULIB_SELECT''@/$(GL_LIBGL_GNULIB_SELECT)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \ -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \ -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_select.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_select.in.h ## end gnulib module sys_select ## begin gnulib module sys_socket BUILT_SOURCES += sys/socket.h libgnu_la_SOURCES += sys_socket.c # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \ -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_LIBGL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_SOCKET''@/$(GL_LIBGL_GNULIB_SOCKET)/g' \ -e 's/@''GNULIB_CONNECT''@/$(GL_LIBGL_GNULIB_CONNECT)/g' \ -e 's/@''GNULIB_ACCEPT''@/$(GL_LIBGL_GNULIB_ACCEPT)/g' \ -e 's/@''GNULIB_BIND''@/$(GL_LIBGL_GNULIB_BIND)/g' \ -e 's/@''GNULIB_GETPEERNAME''@/$(GL_LIBGL_GNULIB_GETPEERNAME)/g' \ -e 's/@''GNULIB_GETSOCKNAME''@/$(GL_LIBGL_GNULIB_GETSOCKNAME)/g' \ -e 's/@''GNULIB_GETSOCKOPT''@/$(GL_LIBGL_GNULIB_GETSOCKOPT)/g' \ -e 's/@''GNULIB_LISTEN''@/$(GL_LIBGL_GNULIB_LISTEN)/g' \ -e 's/@''GNULIB_RECV''@/$(GL_LIBGL_GNULIB_RECV)/g' \ -e 's/@''GNULIB_SEND''@/$(GL_LIBGL_GNULIB_SEND)/g' \ -e 's/@''GNULIB_RECVFROM''@/$(GL_LIBGL_GNULIB_RECVFROM)/g' \ -e 's/@''GNULIB_SENDTO''@/$(GL_LIBGL_GNULIB_SENDTO)/g' \ -e 's/@''GNULIB_SETSOCKOPT''@/$(GL_LIBGL_GNULIB_SETSOCKOPT)/g' \ -e 's/@''GNULIB_SHUTDOWN''@/$(GL_LIBGL_GNULIB_SHUTDOWN)/g' \ -e 's/@''GNULIB_ACCEPT4''@/$(GL_LIBGL_GNULIB_ACCEPT4)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \ -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \ -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_socket.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_socket.in.h ## end gnulib module sys_socket ## begin gnulib module sys_stat BUILT_SOURCES += sys/stat.h # We need the following in order to create when the system # has one that is incomplete. sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \ -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \ -e 's/@''GNULIB_CHMOD''@/$(GL_LIBGL_GNULIB_CHMOD)/g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GL_LIBGL_GNULIB_FCHMODAT)/g' \ -e 's/@''GNULIB_FSTAT''@/$(GL_LIBGL_GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GL_LIBGL_GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GL_LIBGL_GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_GETUMASK''@/$(GL_LIBGL_GNULIB_GETUMASK)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GL_LIBGL_GNULIB_LCHMOD)/g' \ -e 's/@''GNULIB_LSTAT''@/$(GL_LIBGL_GNULIB_LSTAT)/g' \ -e 's/@''GNULIB_MKDIR''@/$(GL_LIBGL_GNULIB_MKDIR)/g' \ -e 's/@''GNULIB_MKDIRAT''@/$(GL_LIBGL_GNULIB_MKDIRAT)/g' \ -e 's/@''GNULIB_MKFIFO''@/$(GL_LIBGL_GNULIB_MKFIFO)/g' \ -e 's/@''GNULIB_MKFIFOAT''@/$(GL_LIBGL_GNULIB_MKFIFOAT)/g' \ -e 's/@''GNULIB_MKNOD''@/$(GL_LIBGL_GNULIB_MKNOD)/g' \ -e 's/@''GNULIB_MKNODAT''@/$(GL_LIBGL_GNULIB_MKNODAT)/g' \ -e 's/@''GNULIB_STAT''@/$(GL_LIBGL_GNULIB_STAT)/g' \ -e 's/@''GNULIB_UTIMENSAT''@/$(GL_LIBGL_GNULIB_UTIMENSAT)/g' \ -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \ -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_LIBGL_GNULIB_MDA_CHMOD)/g' \ -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_LIBGL_GNULIB_MDA_MKDIR)/g' \ -e 's/@''GNULIB_MDA_UMASK''@/$(GL_LIBGL_GNULIB_MDA_UMASK)/g' \ -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \ -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \ -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \ -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \ -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \ -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_stat.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_stat.in.h ## end gnulib module sys_stat ## begin gnulib module sys_time BUILT_SOURCES += sys/time.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GL_LIBGL_GNULIB_GETTIMEOFDAY)/g' \ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \ -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_time.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/time.h sys/time.h-t EXTRA_DIST += sys_time.in.h ## end gnulib module sys_time ## begin gnulib module sys_types BUILT_SOURCES += sys/types.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/types.h: sys_types.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \ $(srcdir)/sys_types.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/types.h sys/types.h-t EXTRA_DIST += sys_types.in.h ## end gnulib module sys_types ## begin gnulib module sys_uio BUILT_SOURCES += sys/uio.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/uio.h: sys_uio.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_UIO_H''@|$(NEXT_SYS_UIO_H)|g' \ -e 's|@''HAVE_SYS_UIO_H''@|$(HAVE_SYS_UIO_H)|g' \ $(srcdir)/sys_uio.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/uio.h sys/uio.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_uio.in.h ## end gnulib module sys_uio ## begin gnulib module time BUILT_SOURCES += time.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's/@''GNULIB_CTIME''@/$(GL_LIBGL_GNULIB_CTIME)/g' \ -e 's/@''GNULIB_LOCALTIME''@/$(GL_LIBGL_GNULIB_LOCALTIME)/g' \ -e 's/@''GNULIB_MKTIME''@/$(GL_LIBGL_GNULIB_MKTIME)/g' \ -e 's/@''GNULIB_NANOSLEEP''@/$(GL_LIBGL_GNULIB_NANOSLEEP)/g' \ -e 's/@''GNULIB_STRFTIME''@/$(GL_LIBGL_GNULIB_STRFTIME)/g' \ -e 's/@''GNULIB_STRPTIME''@/$(GL_LIBGL_GNULIB_STRPTIME)/g' \ -e 's/@''GNULIB_TIMEGM''@/$(GL_LIBGL_GNULIB_TIMEGM)/g' \ -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_LIBGL_GNULIB_TIMESPEC_GET)/g' \ -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_LIBGL_GNULIB_TIMESPEC_GETRES)/g' \ -e 's/@''GNULIB_TIME_R''@/$(GL_LIBGL_GNULIB_TIME_R)/g' \ -e 's/@''GNULIB_TIME_RZ''@/$(GL_LIBGL_GNULIB_TIME_RZ)/g' \ -e 's/@''GNULIB_TZSET''@/$(GL_LIBGL_GNULIB_TZSET)/g' \ -e 's/@''GNULIB_MDA_TZSET''@/$(GL_LIBGL_GNULIB_MDA_TZSET)/g' \ -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \ -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \ -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \ -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \ -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \ -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \ -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/time.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += time.h time.h-t EXTRA_DIST += time.in.h ## end gnulib module time ## begin gnulib module time_r if GL_COND_OBJ_TIME_R libgnu_la_SOURCES += time_r.c endif ## end gnulib module time_r ## begin gnulib module time_rz if GL_COND_OBJ_TIME_RZ libgnu_la_SOURCES += time_rz.c endif EXTRA_DIST += time-internal.h ## end gnulib module time_rz ## begin gnulib module timegm if GL_COND_OBJ_TIMEGM libgnu_la_SOURCES += timegm.c endif EXTRA_DIST += mktime-internal.h ## end gnulib module timegm ## begin gnulib module timespec libgnu_la_SOURCES += timespec.c EXTRA_DIST += timespec.h ## end gnulib module timespec ## begin gnulib module tzset if GL_COND_OBJ_TZSET libgnu_la_SOURCES += tzset.c endif ## end gnulib module tzset ## begin gnulib module unistd BUILT_SOURCES += unistd.h libgnu_la_SOURCES += unistd.c # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's/@''GNULIB_ACCESS''@/$(GL_LIBGL_GNULIB_ACCESS)/g' \ -e 's/@''GNULIB_CHDIR''@/$(GL_LIBGL_GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GL_LIBGL_GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_LIBGL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_LIBGL_GNULIB_COPY_FILE_RANGE)/g' \ -e 's/@''GNULIB_DUP''@/$(GL_LIBGL_GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GL_LIBGL_GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GL_LIBGL_GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GL_LIBGL_GNULIB_ENVIRON)/g' \ -e 's/@''GNULIB_EUIDACCESS''@/$(GL_LIBGL_GNULIB_EUIDACCESS)/g' \ -e 's/@''GNULIB_EXECL''@/$(GL_LIBGL_GNULIB_EXECL)/g' \ -e 's/@''GNULIB_EXECLE''@/$(GL_LIBGL_GNULIB_EXECLE)/g' \ -e 's/@''GNULIB_EXECLP''@/$(GL_LIBGL_GNULIB_EXECLP)/g' \ -e 's/@''GNULIB_EXECV''@/$(GL_LIBGL_GNULIB_EXECV)/g' \ -e 's/@''GNULIB_EXECVE''@/$(GL_LIBGL_GNULIB_EXECVE)/g' \ -e 's/@''GNULIB_EXECVP''@/$(GL_LIBGL_GNULIB_EXECVP)/g' \ -e 's/@''GNULIB_EXECVPE''@/$(GL_LIBGL_GNULIB_EXECVPE)/g' \ -e 's/@''GNULIB_FACCESSAT''@/$(GL_LIBGL_GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GL_LIBGL_GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GL_LIBGL_GNULIB_FCHOWNAT)/g' \ -e 's/@''GNULIB_FDATASYNC''@/$(GL_LIBGL_GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GL_LIBGL_GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GL_LIBGL_GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GL_LIBGL_GNULIB_GETCWD)/g' \ -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_LIBGL_GNULIB_GETDOMAINNAME)/g' \ -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_LIBGL_GNULIB_GETDTABLESIZE)/g' \ -e 's/@''GNULIB_GETENTROPY''@/$(GL_LIBGL_GNULIB_GETENTROPY)/g' \ -e 's/@''GNULIB_GETGROUPS''@/$(GL_LIBGL_GNULIB_GETGROUPS)/g' \ -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_LIBGL_GNULIB_GETHOSTNAME)/g' \ -e 's/@''GNULIB_GETLOGIN''@/$(GL_LIBGL_GNULIB_GETLOGIN)/g' \ -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_LIBGL_GNULIB_GETLOGIN_R)/g' \ -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_LIBGL_GNULIB_GETOPT_POSIX)/g' \ -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_LIBGL_GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETPASS''@/$(GL_LIBGL_GNULIB_GETPASS)/g' \ -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_LIBGL_GNULIB_GETPASS_GNU)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_LIBGL_GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_LIBGL_GNULIB_GROUP_MEMBER)/g' \ -e 's/@''GNULIB_ISATTY''@/$(GL_LIBGL_GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GL_LIBGL_GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GL_LIBGL_GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GL_LIBGL_GNULIB_LINKAT)/g' \ -e 's/@''GNULIB_LSEEK''@/$(GL_LIBGL_GNULIB_LSEEK)/g' \ -e 's/@''GNULIB_PIPE''@/$(GL_LIBGL_GNULIB_PIPE)/g' \ -e 's/@''GNULIB_PIPE2''@/$(GL_LIBGL_GNULIB_PIPE2)/g' \ -e 's/@''GNULIB_PREAD''@/$(GL_LIBGL_GNULIB_PREAD)/g' \ -e 's/@''GNULIB_PWRITE''@/$(GL_LIBGL_GNULIB_PWRITE)/g' \ -e 's/@''GNULIB_READ''@/$(GL_LIBGL_GNULIB_READ)/g' \ -e 's/@''GNULIB_READLINK''@/$(GL_LIBGL_GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GL_LIBGL_GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GL_LIBGL_GNULIB_RMDIR)/g' \ -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_LIBGL_GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GL_LIBGL_GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GL_LIBGL_GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GL_LIBGL_GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TRUNCATE''@/$(GL_LIBGL_GNULIB_TRUNCATE)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GL_LIBGL_GNULIB_TTYNAME_R)/g' \ -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_LIBGL_GNULIB_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GL_LIBGL_GNULIB_UNLINK)/g' \ -e 's/@''GNULIB_UNLINKAT''@/$(GL_LIBGL_GNULIB_UNLINKAT)/g' \ -e 's/@''GNULIB_USLEEP''@/$(GL_LIBGL_GNULIB_USLEEP)/g' \ -e 's/@''GNULIB_WRITE''@/$(GL_LIBGL_GNULIB_WRITE)/g' \ -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_LIBGL_GNULIB_MDA_ACCESS)/g' \ -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_LIBGL_GNULIB_MDA_CHDIR)/g' \ -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_LIBGL_GNULIB_MDA_CLOSE)/g' \ -e 's/@''GNULIB_MDA_DUP''@/$(GL_LIBGL_GNULIB_MDA_DUP)/g' \ -e 's/@''GNULIB_MDA_DUP2''@/$(GL_LIBGL_GNULIB_MDA_DUP2)/g' \ -e 's/@''GNULIB_MDA_EXECL''@/$(GL_LIBGL_GNULIB_MDA_EXECL)/g' \ -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_LIBGL_GNULIB_MDA_EXECLE)/g' \ -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_LIBGL_GNULIB_MDA_EXECLP)/g' \ -e 's/@''GNULIB_MDA_EXECV''@/$(GL_LIBGL_GNULIB_MDA_EXECV)/g' \ -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_LIBGL_GNULIB_MDA_EXECVE)/g' \ -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_LIBGL_GNULIB_MDA_EXECVP)/g' \ -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_LIBGL_GNULIB_MDA_EXECVPE)/g' \ -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_LIBGL_GNULIB_MDA_GETCWD)/g' \ -e 's/@''GNULIB_MDA_GETPID''@/$(GL_LIBGL_GNULIB_MDA_GETPID)/g' \ -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_LIBGL_GNULIB_MDA_ISATTY)/g' \ -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_LIBGL_GNULIB_MDA_LSEEK)/g' \ -e 's/@''GNULIB_MDA_READ''@/$(GL_LIBGL_GNULIB_MDA_READ)/g' \ -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_LIBGL_GNULIB_MDA_RMDIR)/g' \ -e 's/@''GNULIB_MDA_SWAB''@/$(GL_LIBGL_GNULIB_MDA_SWAB)/g' \ -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_LIBGL_GNULIB_MDA_UNLINK)/g' \ -e 's/@''GNULIB_MDA_WRITE''@/$(GL_LIBGL_GNULIB_MDA_WRITE)/g' \ < $(srcdir)/unistd.in.h | \ sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \ -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \ -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \ -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \ -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ | \ sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \ -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \ -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \ -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \ -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \ -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \ -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \ -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \ -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \ -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \ -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \ -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \ -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \ -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \ -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \ -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \ -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t EXTRA_DIST += unistd.in.h ## end gnulib module unistd ## begin gnulib module unsetenv if GL_COND_OBJ_UNSETENV libgnu_la_SOURCES += unsetenv.c endif ## end gnulib module unsetenv ## begin gnulib module vasnprintf EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h EXTRA_libgnu_la_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c ## end gnulib module vasnprintf ## begin gnulib module vasprintf EXTRA_DIST += asprintf.c vasprintf.c EXTRA_libgnu_la_SOURCES += asprintf.c vasprintf.c ## end gnulib module vasprintf ## begin gnulib module verify EXTRA_DIST += verify.h ## end gnulib module verify ## begin gnulib module wchar BUILT_SOURCES += wchar.h # We need the following in order to create when the system # version does not work standalone. wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL_LIBGL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \ -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \ -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \ -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ -e 's/@''GNULIB_BTOWC''@/$(GL_LIBGL_GNULIB_BTOWC)/g' \ -e 's/@''GNULIB_WCTOB''@/$(GL_LIBGL_GNULIB_WCTOB)/g' \ -e 's/@''GNULIB_MBSINIT''@/$(GL_LIBGL_GNULIB_MBSINIT)/g' \ -e 's/@''GNULIB_MBRTOWC''@/$(GL_LIBGL_GNULIB_MBRTOWC)/g' \ -e 's/@''GNULIB_MBRLEN''@/$(GL_LIBGL_GNULIB_MBRLEN)/g' \ -e 's/@''GNULIB_MBSRTOWCS''@/$(GL_LIBGL_GNULIB_MBSRTOWCS)/g' \ -e 's/@''GNULIB_MBSNRTOWCS''@/$(GL_LIBGL_GNULIB_MBSNRTOWCS)/g' \ -e 's/@''GNULIB_WCRTOMB''@/$(GL_LIBGL_GNULIB_WCRTOMB)/g' \ -e 's/@''GNULIB_WCSRTOMBS''@/$(GL_LIBGL_GNULIB_WCSRTOMBS)/g' \ -e 's/@''GNULIB_WCSNRTOMBS''@/$(GL_LIBGL_GNULIB_WCSNRTOMBS)/g' \ -e 's/@''GNULIB_WCWIDTH''@/$(GL_LIBGL_GNULIB_WCWIDTH)/g' \ -e 's/@''GNULIB_WMEMCHR''@/$(GL_LIBGL_GNULIB_WMEMCHR)/g' \ -e 's/@''GNULIB_WMEMCMP''@/$(GL_LIBGL_GNULIB_WMEMCMP)/g' \ -e 's/@''GNULIB_WMEMCPY''@/$(GL_LIBGL_GNULIB_WMEMCPY)/g' \ -e 's/@''GNULIB_WMEMMOVE''@/$(GL_LIBGL_GNULIB_WMEMMOVE)/g' \ -e 's/@''GNULIB_WMEMPCPY''@/$(GL_LIBGL_GNULIB_WMEMPCPY)/g' \ -e 's/@''GNULIB_WMEMSET''@/$(GL_LIBGL_GNULIB_WMEMSET)/g' \ -e 's/@''GNULIB_WCSLEN''@/$(GL_LIBGL_GNULIB_WCSLEN)/g' \ -e 's/@''GNULIB_WCSNLEN''@/$(GL_LIBGL_GNULIB_WCSNLEN)/g' \ -e 's/@''GNULIB_WCSCPY''@/$(GL_LIBGL_GNULIB_WCSCPY)/g' \ -e 's/@''GNULIB_WCPCPY''@/$(GL_LIBGL_GNULIB_WCPCPY)/g' \ -e 's/@''GNULIB_WCSNCPY''@/$(GL_LIBGL_GNULIB_WCSNCPY)/g' \ -e 's/@''GNULIB_WCPNCPY''@/$(GL_LIBGL_GNULIB_WCPNCPY)/g' \ -e 's/@''GNULIB_WCSCAT''@/$(GL_LIBGL_GNULIB_WCSCAT)/g' \ -e 's/@''GNULIB_WCSNCAT''@/$(GL_LIBGL_GNULIB_WCSNCAT)/g' \ -e 's/@''GNULIB_WCSCMP''@/$(GL_LIBGL_GNULIB_WCSCMP)/g' \ -e 's/@''GNULIB_WCSNCMP''@/$(GL_LIBGL_GNULIB_WCSNCMP)/g' \ -e 's/@''GNULIB_WCSCASECMP''@/$(GL_LIBGL_GNULIB_WCSCASECMP)/g' \ -e 's/@''GNULIB_WCSNCASECMP''@/$(GL_LIBGL_GNULIB_WCSNCASECMP)/g' \ -e 's/@''GNULIB_WCSCOLL''@/$(GL_LIBGL_GNULIB_WCSCOLL)/g' \ -e 's/@''GNULIB_WCSXFRM''@/$(GL_LIBGL_GNULIB_WCSXFRM)/g' \ -e 's/@''GNULIB_WCSDUP''@/$(GL_LIBGL_GNULIB_WCSDUP)/g' \ -e 's/@''GNULIB_WCSCHR''@/$(GL_LIBGL_GNULIB_WCSCHR)/g' \ -e 's/@''GNULIB_WCSRCHR''@/$(GL_LIBGL_GNULIB_WCSRCHR)/g' \ -e 's/@''GNULIB_WCSCSPN''@/$(GL_LIBGL_GNULIB_WCSCSPN)/g' \ -e 's/@''GNULIB_WCSSPN''@/$(GL_LIBGL_GNULIB_WCSSPN)/g' \ -e 's/@''GNULIB_WCSPBRK''@/$(GL_LIBGL_GNULIB_WCSPBRK)/g' \ -e 's/@''GNULIB_WCSSTR''@/$(GL_LIBGL_GNULIB_WCSSTR)/g' \ -e 's/@''GNULIB_WCSTOK''@/$(GL_LIBGL_GNULIB_WCSTOK)/g' \ -e 's/@''GNULIB_WCSWIDTH''@/$(GL_LIBGL_GNULIB_WCSWIDTH)/g' \ -e 's/@''GNULIB_WCSFTIME''@/$(GL_LIBGL_GNULIB_WCSFTIME)/g' \ -e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_LIBGL_GNULIB_MDA_WCSDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_LIBGL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/wchar.in.h | \ sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \ -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \ -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \ -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \ -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \ -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \ -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \ -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \ -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \ -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \ -e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \ -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \ -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \ -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \ -e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \ -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \ -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \ -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \ -e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \ -e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \ -e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \ -e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \ -e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \ -e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \ -e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \ -e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \ -e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \ -e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \ -e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \ -e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \ -e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \ -e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \ -e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \ -e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \ -e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \ -e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \ -e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \ -e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \ -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \ -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \ -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \ -e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \ -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \ | \ sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \ -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \ -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \ -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \ -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \ -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \ -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \ -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \ -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \ -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \ -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \ -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \ -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \ -e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += wchar.h wchar.h-t EXTRA_DIST += wchar.in.h ## end gnulib module wchar ## begin gnulib module xalloc libgnu_la_SOURCES += xmalloc.c EXTRA_DIST += xalloc.h ## end gnulib module xalloc ## begin gnulib module xalloc-oversized EXTRA_DIST += xalloc-oversized.h ## end gnulib module xalloc-oversized ## begin gnulib module xgetdomainname libgnu_la_SOURCES += xgetdomainname.h xgetdomainname.c EXTRA_DIST += xgetaname-impl.h ## end gnulib module xgetdomainname ## begin gnulib module xgethostname libgnu_la_SOURCES += xgethostname.h xgethostname.c EXTRA_DIST += xgetaname-impl.h ## end gnulib module xgethostname ## begin gnulib module xsize libgnu_la_SOURCES += xsize.h xsize.c ## end gnulib module xsize ## begin gnulib module xstrndup libgnu_la_SOURCES += xstrndup.h xstrndup.c ## end gnulib module xstrndup ## begin gnulib module xvasprintf libgnu_la_SOURCES += xvasprintf.h xvasprintf.c xasprintf.c EXTRA_DIST += xalloc.h ## end gnulib module xvasprintf mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : distclean-local: distclean-gnulib-libobjs distclean-gnulib-libobjs: -rm -f @libgl_LIBOBJDEPS@ maintainer-clean-local: distclean-gnulib-libobjs shishi-1.0.3/lib/gl/c++defs.h0000644000000000000000000003557714273615121012447 00000000000000/* C++ compatible function declaration macros. Copyright (C) 2010-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_CXXDEFS_H #define _GL_CXXDEFS_H /* Begin/end the GNULIB_NAMESPACE namespace. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { # define _GL_END_NAMESPACE } #else # define _GL_BEGIN_NAMESPACE # define _GL_END_NAMESPACE #endif /* The three most frequent use cases of these macros are: * For providing a substitute for a function that is missing on some platforms, but is declared and works fine on the platforms on which it exists: #if @GNULIB_FOO@ # if !@HAVE_FOO@ _GL_FUNCDECL_SYS (foo, ...); # endif _GL_CXXALIAS_SYS (foo, ...); _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif * For providing a replacement for a function that exists on all platforms, but is broken/insufficient and needs to be replaced on some platforms: #if @GNULIB_FOO@ # if @REPLACE_FOO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef foo # define foo rpl_foo # endif _GL_FUNCDECL_RPL (foo, ...); _GL_CXXALIAS_RPL (foo, ...); # else _GL_CXXALIAS_SYS (foo, ...); # endif _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif * For providing a replacement for a function that exists on some platforms but is broken/insufficient and needs to be replaced on some of them and is additionally either missing or undeclared on some other platforms: #if @GNULIB_FOO@ # if @REPLACE_FOO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef foo # define foo rpl_foo # endif _GL_FUNCDECL_RPL (foo, ...); _GL_CXXALIAS_RPL (foo, ...); # else # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@ _GL_FUNCDECL_SYS (foo, ...); # endif _GL_CXXALIAS_SYS (foo, ...); # endif _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif */ /* _GL_EXTERN_C declaration; performs the declaration with C linkage. */ #if defined __cplusplus # define _GL_EXTERN_C extern "C" #else # define _GL_EXTERN_C extern #endif /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); declares a replacement function, named rpl_func, with the given prototype, consisting of return type, parameters, and attributes. Example: _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); */ #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ _GL_EXTERN_C rettype rpl_func parameters_and_attributes /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); declares the system function, named func, with the given prototype, consisting of return type, parameters, and attributes. Example: _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); */ #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ _GL_EXTERN_C rettype func parameters_and_attributes /* _GL_CXXALIAS_RPL (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that redirects to rpl_func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); Wrapping rpl_func in an object with an inline conversion operator avoids a reference to rpl_func unless GNULIB_NAMESPACE::func is actually used in the program. */ #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return ::rpl_func; \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_MDA (func, rettype, parameters); is to be used when func is a Microsoft deprecated alias, on native Windows. It declares a C++ alias called GNULIB_NAMESPACE::func that redirects to _func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); */ #define _GL_CXXALIAS_MDA(func,rettype,parameters) \ _GL_CXXALIAS_RPL_1 (func, _##func, rettype, parameters) /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); except that the C function rpl_func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast(::rpl_func); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_MDA_CAST (func, rettype, parameters); is like _GL_CXXALIAS_MDA (func, rettype, parameters); except that the C function func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #define _GL_CXXALIAS_MDA_CAST(func,rettype,parameters) \ _GL_CXXALIAS_RPL_CAST_1 (func, _##func, rettype, parameters) /* _GL_CXXALIAS_SYS (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that redirects to the system provided function func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); Wrapping func in an object with an inline conversion operator avoids a reference to func unless GNULIB_NAMESPACE::func is actually used in the program. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return ::func; \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters); is like _GL_CXXALIAS_SYS (func, rettype, parameters); except that the C function func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast(::func); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2); is like _GL_CXXALIAS_SYS (func, rettype, parameters); except that the C function is picked among a set of overloaded functions, namely the one with rettype2 and parameters2. Two consecutive casts are used to silence the "cannot find a match" and "invalid conversion" errors that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE /* The outer cast must be a reinterpret_cast. The inner cast: When the function is defined as a set of overloaded functions, it works as a static_cast<>, choosing the designated variant. When the function is defined as a single variant, it works as a reinterpret_cast<>. The parenthesized cast syntax works both ways. */ # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast((rettype2 (*) parameters2)(::func)); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIASWARN (func); causes a warning to be emitted when ::func is used but not when GNULIB_NAMESPACE::func is used. func must be defined without overloaded variants. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIASWARN(func) \ _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) # define _GL_CXXALIASWARN_1(func,namespace) \ _GL_CXXALIASWARN_2 (func, namespace) /* To work around GCC bug , we enable the warning only when not optimizing. */ # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) # define _GL_CXXALIASWARN_2(func,namespace) \ _GL_WARN_ON_USE (func, \ "The symbol ::" #func " refers to the system function. " \ "Use " #namespace "::" #func " instead.") # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING # define _GL_CXXALIASWARN_2(func,namespace) \ extern __typeof__ (func) func # else # define _GL_CXXALIASWARN_2(func,namespace) \ _GL_EXTERN_C int _gl_cxxalias_dummy # endif #else # define _GL_CXXALIASWARN(func) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes); causes a warning to be emitted when the given overloaded variant of ::func is used but not when GNULIB_NAMESPACE::func is used. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ GNULIB_NAMESPACE) # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) /* To work around GCC bug , we enable the warning only when not optimizing. */ # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ _GL_WARN_ON_USE_CXX (func, rettype, rettype, parameters_and_attributes, \ "The symbol ::" #func " refers to the system function. " \ "Use " #namespace "::" #func " instead.") # else # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ _GL_EXTERN_C int _gl_cxxalias_dummy # endif #else # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif #endif /* _GL_CXXDEFS_H */ shishi-1.0.3/lib/gl/realloc.c0000644000000000000000000000313114273615123012630 00000000000000/* realloc() function that is glibc compatible. Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Jim Meyering and Bruno Haible */ #include #include #include #include "xalloc-oversized.h" /* Call the system's realloc below. This file does not define _GL_USE_STDLIB_ALLOC because it needs Gnulib's malloc if present. */ #undef realloc /* Change the size of an allocated block of memory P to N bytes, with error checking. If P is NULL, use malloc. Otherwise if N is zero, free P and return NULL. */ void * rpl_realloc (void *p, size_t n) { if (p == NULL) return malloc (n); if (n == 0) { free (p); return NULL; } if (xalloc_oversized (n, 1)) { errno = ENOMEM; return NULL; } void *result = realloc (p, n); #if !HAVE_MALLOC_POSIX if (result == NULL) errno = ENOMEM; #endif return result; } shishi-1.0.3/lib/gl/open.c0000644000000000000000000001537714273615123012167 00000000000000/* Open a descriptor to a file. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2007. */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_open doesn't recurse to rpl_open. */ #define __need_system_fcntl_h #include /* Get the original definition of open. It might be defined as a macro. */ #include #include #undef __need_system_fcntl_h static int orig_open (const char *filename, int flags, mode_t mode) { #if defined _WIN32 && !defined __CYGWIN__ return _open (filename, flags, mode); #else return open (filename, flags, mode); #endif } /* Specification. */ /* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ #include "fcntl.h" #include "cloexec.h" #include #include #include #include #include #include #ifndef REPLACE_OPEN_DIRECTORY # define REPLACE_OPEN_DIRECTORY 0 #endif int open (const char *filename, int flags, ...) { /* 0 = unknown, 1 = yes, -1 = no. */ #if GNULIB_defined_O_CLOEXEC int have_cloexec = -1; #else static int have_cloexec; #endif mode_t mode; int fd; mode = 0; if (flags & O_CREAT) { va_list arg; va_start (arg, flags); /* We have to use PROMOTED_MODE_T instead of mode_t, otherwise GCC 4 creates crashing code when 'mode_t' is smaller than 'int'. */ mode = va_arg (arg, PROMOTED_MODE_T); va_end (arg); } #if GNULIB_defined_O_NONBLOCK /* The only known platform that lacks O_NONBLOCK is mingw, but it also lacks named pipes and Unix sockets, which are the only two file types that require non-blocking handling in open(). Therefore, it is safe to ignore O_NONBLOCK here. It is handy that mingw also lacks openat(), so that is also covered here. */ flags &= ~O_NONBLOCK; #endif #if defined _WIN32 && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; #endif #if OPEN_TRAILING_SLASH_BUG /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename ends in a slash, as POSIX says such a filename must name a directory : "A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be resolved successfully unless the last pathname component before the trailing characters names an existing directory" If the named file already exists as a directory, then - if O_CREAT is specified, open() must fail because of the semantics of O_CREAT, - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX says that it fails with errno = EISDIR in this case. If the named file does not exist or does not name a directory, then - if O_CREAT is specified, open() must fail since open() cannot create directories, - if O_WRONLY or O_RDWR is specified, open() must fail because the file does not contain a '.' directory. */ if ((flags & O_CREAT) || (flags & O_ACCMODE) == O_RDWR || (flags & O_ACCMODE) == O_WRONLY) { size_t len = strlen (filename); if (len > 0 && filename[len - 1] == '/') { errno = EISDIR; return -1; } } #endif fd = orig_open (filename, flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode); if (flags & O_CLOEXEC) { if (! have_cloexec) { if (0 <= fd) have_cloexec = 1; else if (errno == EINVAL) { fd = orig_open (filename, flags & ~O_CLOEXEC, mode); have_cloexec = -1; } } if (have_cloexec < 0 && 0 <= fd) set_cloexec_flag (fd, true); } #if REPLACE_FCHDIR /* Implementing fchdir and fdopendir requires the ability to open a directory file descriptor. If open doesn't support that (as on mingw), we use a dummy file that behaves the same as directories on Linux (ie. always reports EOF on attempts to read()), and override fstat() in fchdir.c to hide the fact that we have a dummy. */ if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES && ((flags & O_ACCMODE) == O_RDONLY || (O_SEARCH != O_RDONLY && (flags & O_ACCMODE) == O_SEARCH))) { struct stat statbuf; if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) { /* Maximum recursion depth of 1. */ fd = open ("/dev/null", flags, mode); if (0 <= fd) fd = _gl_register_fd (fd, filename); } else errno = EACCES; } #endif #if OPEN_TRAILING_SLASH_BUG /* If the filename ends in a slash and fd does not refer to a directory, then fail. Rationale: POSIX says such a filename must name a directory : "A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be resolved successfully unless the last pathname component before the trailing characters names an existing directory" If the named file without the slash is not a directory, open() must fail with ENOTDIR. */ if (fd >= 0) { /* We know len is positive, since open did not fail with ENOENT. */ size_t len = strlen (filename); if (filename[len - 1] == '/') { struct stat statbuf; if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) { close (fd); errno = ENOTDIR; return -1; } } } #endif #if REPLACE_FCHDIR if (!REPLACE_OPEN_DIRECTORY && 0 <= fd) fd = _gl_register_fd (fd, filename); #endif return fd; } shishi-1.0.3/lib/gl/inet_ntop.c0000644000000000000000000001541014273615122013210 00000000000000/* inet_ntop.c -- convert IPv4 and IPv6 addresses from binary to text form Copyright (C) 2005-2006, 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* * Copyright (c) 1996-1999 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. */ #include /* Specification. */ #include /* Use this to suppress gcc's "...may be used before initialized" warnings. Beware: The Code argument must not contain commas. */ #ifndef IF_LINT # if defined GCC_LINT || defined lint # define IF_LINT(Code) Code # else # define IF_LINT(Code) /* empty */ # endif #endif #if HAVE_DECL_INET_NTOP # undef inet_ntop const char * rpl_inet_ntop (int af, const void *restrict src, char *restrict dst, socklen_t cnt) { return inet_ntop (af, src, dst, cnt); } #else # include # include # include # define NS_IN6ADDRSZ 16 # define NS_INT16SZ 2 /* * WARNING: Don't even consider trying to compile this on a system where * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. */ typedef int verify_int_size[4 <= sizeof (int) ? 1 : -1]; static const char *inet_ntop4 (const unsigned char *src, char *dst, socklen_t size); # if HAVE_IPV6 static const char *inet_ntop6 (const unsigned char *src, char *dst, socklen_t size); # endif /* char * * inet_ntop(af, src, dst, size) * convert a network format address to presentation format. * return: * pointer to presentation format address ('dst'), or NULL (see errno). * author: * Paul Vixie, 1996. */ const char * inet_ntop (int af, const void *restrict src, char *restrict dst, socklen_t cnt) { switch (af) { # if HAVE_IPV4 case AF_INET: return (inet_ntop4 (src, dst, cnt)); # endif # if HAVE_IPV6 case AF_INET6: return (inet_ntop6 (src, dst, cnt)); # endif default: errno = EAFNOSUPPORT; return (NULL); } /* NOTREACHED */ } /* const char * * inet_ntop4(src, dst, size) * format an IPv4 address * return: * 'dst' (as a const) * notes: * (1) uses no statics * (2) takes a u_char* not an in_addr as input * author: * Paul Vixie, 1996. */ static const char * inet_ntop4 (const unsigned char *src, char *dst, socklen_t size) { char tmp[sizeof "255.255.255.255"]; int len; len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]); if (len < 0) return NULL; if (len > size) { errno = ENOSPC; return NULL; } return strcpy (dst, tmp); } # if HAVE_IPV6 /* const char * * inet_ntop6(src, dst, size) * convert IPv6 binary address into presentation (printable) format * author: * Paul Vixie, 1996. */ static const char * inet_ntop6 (const unsigned char *src, char *dst, socklen_t size) { /* * Note that int32_t and int16_t need only be "at least" large enough * to contain a value of the specified size. On some systems, like * Crays, there is no such thing as an integer variable with 16 bits. * Keep this in mind if you think this function should have been coded * to use pointer overlays. All the world's not a VAX. */ char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; struct { int base, len; } best, cur; unsigned int words[NS_IN6ADDRSZ / NS_INT16SZ]; int i; /* * Preprocess: * Copy the input (bytewise) array into a wordwise array. * Find the longest run of 0x00's in src[] for :: shorthanding. */ memset (words, '\0', sizeof words); for (i = 0; i < NS_IN6ADDRSZ; i += 2) words[i / 2] = (src[i] << 8) | src[i + 1]; best.base = -1; cur.base = -1; IF_LINT(best.len = 0); IF_LINT(cur.len = 0); for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { if (words[i] == 0) { if (cur.base == -1) cur.base = i, cur.len = 1; else cur.len++; } else { if (cur.base != -1) { if (best.base == -1 || cur.len > best.len) best = cur; cur.base = -1; } } } if (cur.base != -1) { if (best.base == -1 || cur.len > best.len) best = cur; } if (best.base != -1 && best.len < 2) best.base = -1; /* * Format the result. */ tp = tmp; for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { /* Are we inside the best run of 0x00's? */ if (best.base != -1 && i >= best.base && i < (best.base + best.len)) { if (i == best.base) *tp++ = ':'; continue; } /* Are we following an initial run of 0x00s or any real hex? */ if (i != 0) *tp++ = ':'; /* Is this address an encapsulated IPv4? */ if (i == 6 && best.base == 0 && (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { if (!inet_ntop4 (src + 12, tp, sizeof tmp - (tp - tmp))) return (NULL); tp += strlen (tp); break; } { int len = sprintf (tp, "%x", words[i]); if (len < 0) return NULL; tp += len; } } /* Was it a trailing run of 0x00's? */ if (best.base != -1 && (best.base + best.len) == (NS_IN6ADDRSZ / NS_INT16SZ)) *tp++ = ':'; *tp++ = '\0'; /* * Check for overflow, copy, and we're done. */ if ((socklen_t) (tp - tmp) > size) { errno = ENOSPC; return NULL; } return strcpy (dst, tmp); } # endif #endif shishi-1.0.3/lib/gl/_Noreturn.h0000644000000000000000000000414614273615121013174 00000000000000/* A C macro for declaring that a function does not return. Copyright (C) 2011-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _Noreturn # if (defined __cplusplus \ && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ || (defined _MSC_VER && 1900 <= _MSC_VER)) \ && 0) /* [[noreturn]] is not practically usable, because with it the syntax extern _Noreturn void func (...); would not be valid; such a declaration would only be valid with 'extern' and '_Noreturn' swapped, or without the 'extern' keyword. However, some AIX system header files and several gnulib header files use precisely this syntax with 'extern'. */ # define _Noreturn [[noreturn]] # elif ((!defined __cplusplus || defined __clang__) \ && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ || (!defined __STRICT_ANSI__ \ && (4 < __GNUC__ + (7 <= __GNUC_MINOR__) \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))))) /* _Noreturn works as-is. */ # elif (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \ || 0x5110 <= __SUNPRO_C) # define _Noreturn __attribute__ ((__noreturn__)) # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) # define _Noreturn __declspec (noreturn) # else # define _Noreturn # endif #endif shishi-1.0.3/lib/gl/ialloc.c0000644000000000000000000000151214273615122012452 00000000000000/* malloc with idx_t rather than size_t Copyright 2021-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define IALLOC_INLINE _GL_EXTERN_INLINE #include "ialloc.h" shishi-1.0.3/lib/gl/sys_stat.in.h0000644000000000000000000006453314273615123013507 00000000000000/* Provide a more complete sys/stat.h header file. Copyright (C) 2005-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake, Paul Eggert, and Jim Meyering. */ /* This file is supposed to be used on platforms where is incomplete. It is intended to provide definitions and prototypes needed by an application. Start with what the system provides. */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_sys_stat_h /* Special invocation convention. */ #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SYS_STAT_H /* Get nlink_t. May also define off_t to a 64-bit type on native Windows. */ #include /* Get struct timespec. */ #include /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ #ifndef _@GUARD_PREFIX@_SYS_STAT_H #define _@GUARD_PREFIX@_SYS_STAT_H /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Before doing "#define mknod rpl_mknod" below, we need to include all headers that may declare mknod(). OS/2 kLIBC declares mknod() in , not in . */ #ifdef __KLIBC__ # include #endif /* Before doing "#define mkdir rpl_mkdir" below, we need to include all headers that may declare mkdir(). Native Windows platforms declare mkdir in and/or , not in . */ #if defined _WIN32 && ! defined __CYGWIN__ # include /* mingw32, mingw64 */ # include /* mingw64, MSVC 9 */ #endif /* Native Windows platforms declare umask() in . */ #if 0 && (defined _WIN32 && ! defined __CYGWIN__) # include #endif /* Large File Support on native Windows. */ #if @WINDOWS_64_BIT_ST_SIZE@ # define stat _stati64 #endif /* Optionally, override 'struct stat' on native Windows. */ #if @GNULIB_OVERRIDES_STRUCT_STAT@ # undef stat # if @GNULIB_STAT@ # define stat rpl_stat # else /* Provoke a clear link error if stat() is used as a function and module 'stat' is not in use. */ # define stat stat_used_without_requesting_gnulib_module_stat # endif # if !GNULIB_defined_struct_stat struct stat { dev_t st_dev; ino_t st_ino; mode_t st_mode; nlink_t st_nlink; # if 0 uid_t st_uid; # else /* uid_t is not defined by default on native Windows. */ short st_uid; # endif # if 0 gid_t st_gid; # else /* gid_t is not defined by default on native Windows. */ short st_gid; # endif dev_t st_rdev; off_t st_size; # if 0 blksize_t st_blksize; blkcnt_t st_blocks; # endif # if @WINDOWS_STAT_TIMESPEC@ struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # else time_t st_atime; time_t st_mtime; time_t st_ctime; # endif }; # if @WINDOWS_STAT_TIMESPEC@ # define st_atime st_atim.tv_sec # define st_mtime st_mtim.tv_sec # define st_ctime st_ctim.tv_sec /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_STAT_TIMESPEC 1 # endif # define GNULIB_defined_struct_stat 1 # endif /* Other possible values of st_mode. */ # if 0 # define _S_IFBLK 0x6000 # endif # if 0 # define _S_IFLNK 0xA000 # endif # if 0 # define _S_IFSOCK 0xC000 # endif #endif #ifndef S_IFIFO # ifdef _S_IFIFO # define S_IFIFO _S_IFIFO # endif #endif #ifndef S_IFMT # define S_IFMT 0170000 #endif #if STAT_MACROS_BROKEN # undef S_ISBLK # undef S_ISCHR # undef S_ISDIR # undef S_ISFIFO # undef S_ISLNK # undef S_ISNAM # undef S_ISMPB # undef S_ISMPC # undef S_ISNWK # undef S_ISREG # undef S_ISSOCK #endif #ifndef S_ISBLK # ifdef S_IFBLK # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) # else # define S_ISBLK(m) 0 # endif #endif #ifndef S_ISCHR # ifdef S_IFCHR # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) # else # define S_ISCHR(m) 0 # endif #endif #ifndef S_ISDIR # ifdef S_IFDIR # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) # else # define S_ISDIR(m) 0 # endif #endif #ifndef S_ISDOOR /* Solaris 2.5 and up */ # define S_ISDOOR(m) 0 #endif #ifndef S_ISFIFO # ifdef S_IFIFO # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) # else # define S_ISFIFO(m) 0 # endif #endif #ifndef S_ISLNK # ifdef S_IFLNK # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) # else # define S_ISLNK(m) 0 # endif #endif #ifndef S_ISMPB /* V7 */ # ifdef S_IFMPB # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) # else # define S_ISMPB(m) 0 # define S_ISMPC(m) 0 # endif #endif #ifndef S_ISMPX /* AIX */ # define S_ISMPX(m) 0 #endif #ifndef S_ISNAM /* Xenix */ # ifdef S_IFNAM # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) # else # define S_ISNAM(m) 0 # endif #endif #ifndef S_ISNWK /* HP/UX */ # ifdef S_IFNWK # define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) # else # define S_ISNWK(m) 0 # endif #endif #ifndef S_ISPORT /* Solaris 10 and up */ # define S_ISPORT(m) 0 #endif #ifndef S_ISREG # ifdef S_IFREG # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) # else # define S_ISREG(m) 0 # endif #endif #ifndef S_ISSOCK # ifdef S_IFSOCK # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) # else # define S_ISSOCK(m) 0 # endif #endif #ifndef S_TYPEISMQ # define S_TYPEISMQ(p) 0 #endif #ifndef S_TYPEISTMO # define S_TYPEISTMO(p) 0 #endif #ifndef S_TYPEISSEM # ifdef S_INSEM # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) # else # define S_TYPEISSEM(p) 0 # endif #endif #ifndef S_TYPEISSHM # ifdef S_INSHD # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD) # else # define S_TYPEISSHM(p) 0 # endif #endif /* high performance ("contiguous data") */ #ifndef S_ISCTG # define S_ISCTG(p) 0 #endif /* Cray DMF (data migration facility): off line, with data */ #ifndef S_ISOFD # define S_ISOFD(p) 0 #endif /* Cray DMF (data migration facility): off line, with no data */ #ifndef S_ISOFL # define S_ISOFL(p) 0 #endif /* 4.4BSD whiteout */ #ifndef S_ISWHT # define S_ISWHT(m) 0 #endif /* If any of the following are undefined, define them to their de facto standard values. */ #if !S_ISUID # define S_ISUID 04000 #endif #if !S_ISGID # define S_ISGID 02000 #endif /* S_ISVTX is a common extension to POSIX. */ #ifndef S_ISVTX # define S_ISVTX 01000 #endif #if !S_IRUSR && S_IREAD # define S_IRUSR S_IREAD #endif #if !S_IRUSR # define S_IRUSR 00400 #endif #if !S_IRGRP # define S_IRGRP (S_IRUSR >> 3) #endif #if !S_IROTH # define S_IROTH (S_IRUSR >> 6) #endif #if !S_IWUSR && S_IWRITE # define S_IWUSR S_IWRITE #endif #if !S_IWUSR # define S_IWUSR 00200 #endif #if !S_IWGRP # define S_IWGRP (S_IWUSR >> 3) #endif #if !S_IWOTH # define S_IWOTH (S_IWUSR >> 6) #endif #if !S_IXUSR && S_IEXEC # define S_IXUSR S_IEXEC #endif #if !S_IXUSR # define S_IXUSR 00100 #endif #if !S_IXGRP # define S_IXGRP (S_IXUSR >> 3) #endif #if !S_IXOTH # define S_IXOTH (S_IXUSR >> 6) #endif #if !S_IRWXU # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) #endif #if !S_IRWXG # define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) #endif #if !S_IRWXO # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) #endif /* Although S_IXUGO and S_IRWXUGO are not specified by POSIX and are not implemented in GNU/Linux, some Gnulib-using apps use the macros. */ #if !S_IXUGO # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) #endif #ifndef S_IRWXUGO # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) #endif /* Macros for futimens and utimensat. */ #ifndef UTIME_NOW # define UTIME_NOW (-1) # define UTIME_OMIT (-2) #endif #if @GNULIB_CHMOD@ # if @REPLACE_CHMOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod rpl_chmod # endif _GL_FUNCDECL_RPL (chmod, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (chmod, int, (const char *filename, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod _chmod # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (chmod); #elif defined GNULIB_POSIXCHECK # undef chmod # if HAVE_RAW_DECL_CHMOD _GL_WARN_ON_USE (chmod, "chmod has portability problems - " "use gnulib module chmod for portability"); # endif #elif @GNULIB_MDA_CHMOD@ /* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::chmod always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod _chmod # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (chmod); #endif #if @GNULIB_FCHMODAT@ # if @REPLACE_FCHMODAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fchmodat # define fchmodat rpl_fchmodat # endif _GL_FUNCDECL_RPL (fchmodat, int, (int fd, char const *file, mode_t mode, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fchmodat, int, (int fd, char const *file, mode_t mode, int flag)); # else # if !@HAVE_FCHMODAT@ _GL_FUNCDECL_SYS (fchmodat, int, (int fd, char const *file, mode_t mode, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (fchmodat, int, (int fd, char const *file, mode_t mode, int flag)); # endif _GL_CXXALIASWARN (fchmodat); #elif defined GNULIB_POSIXCHECK # undef fchmodat # if HAVE_RAW_DECL_FCHMODAT _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_FSTAT@ # if @REPLACE_FSTAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fstat # define fstat rpl_fstat # endif _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); # else _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fstat); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef fstat # define fstat fstat_used_without_requesting_gnulib_module_fstat #elif @WINDOWS_64_BIT_ST_SIZE@ /* Above, we define stat to _stati64. */ # define fstat _fstati64 #elif defined GNULIB_POSIXCHECK # undef fstat # if HAVE_RAW_DECL_FSTAT _GL_WARN_ON_USE (fstat, "fstat has portability problems - " "use gnulib module fstat for portability"); # endif #endif #if @GNULIB_FSTATAT@ # if @REPLACE_FSTATAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fstatat # define fstatat rpl_fstatat # endif _GL_FUNCDECL_RPL (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags)); # else # if !@HAVE_FSTATAT@ _GL_FUNCDECL_SYS (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags)); # endif _GL_CXXALIASWARN (fstatat); #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef fstatat # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat #elif defined GNULIB_POSIXCHECK # undef fstatat # if HAVE_RAW_DECL_FSTATAT _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_FUTIMENS@ /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our futimens implementation relies on futimesat, which on Solaris 10 makes an invocation to futimens that is meant to invoke the libc's futimens(), not gnulib's futimens(). */ # if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef futimens # define futimens rpl_futimens # endif _GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); _GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); # else # if !@HAVE_FUTIMENS@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); # endif _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); # endif # if @HAVE_FUTIMENS@ _GL_CXXALIASWARN (futimens); # endif #elif defined GNULIB_POSIXCHECK # undef futimens # if HAVE_RAW_DECL_FUTIMENS _GL_WARN_ON_USE (futimens, "futimens is not portable - " "use gnulib module futimens for portability"); # endif #endif #if @GNULIB_GETUMASK@ # if !@HAVE_GETUMASK@ _GL_FUNCDECL_SYS (getumask, mode_t, (void)); # endif _GL_CXXALIAS_SYS (getumask, mode_t, (void)); # if @HAVE_GETUMASK@ _GL_CXXALIASWARN (getumask); # endif #elif defined GNULIB_POSIXCHECK # undef getumask # if HAVE_RAW_DECL_GETUMASK _GL_WARN_ON_USE (getumask, "getumask is not portable - " "use gnulib module getumask for portability"); # endif #endif #if @GNULIB_LCHMOD@ /* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME denotes a symbolic link. */ # if !@HAVE_LCHMOD@ || defined __hpux _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); _GL_CXXALIASWARN (lchmod); #elif defined GNULIB_POSIXCHECK # undef lchmod # if HAVE_RAW_DECL_LCHMOD _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " "use gnulib module lchmod for portability"); # endif #endif #if @GNULIB_LSTAT@ # if ! @HAVE_LSTAT@ /* mingw does not support symlinks, therefore it does not have lstat. But without links, stat does just fine. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lstat stat # endif _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *restrict name, struct stat *restrict buf)); # elif @REPLACE_LSTAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lstat # define lstat rpl_lstat # endif _GL_FUNCDECL_RPL (lstat, int, (const char *restrict name, struct stat *restrict buf) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (lstat, int, (const char *restrict name, struct stat *restrict buf)); # else _GL_CXXALIAS_SYS (lstat, int, (const char *restrict name, struct stat *restrict buf)); # endif # if @HAVE_LSTAT@ _GL_CXXALIASWARN (lstat); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef lstat # define lstat lstat_used_without_requesting_gnulib_module_lstat #elif defined GNULIB_POSIXCHECK # undef lstat # if HAVE_RAW_DECL_LSTAT _GL_WARN_ON_USE (lstat, "lstat is unportable - " "use gnulib module lstat for portability"); # endif #endif #if @GNULIB_MKDIR@ # if @REPLACE_MKDIR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. Additionally, it declares _mkdir (and depending on compile flags, an alias mkdir), only in the nonstandard includes and , which are included above. */ # if !GNULIB_defined_rpl_mkdir static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } # define GNULIB_defined_rpl_mkdir 1 # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # else _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); # endif _GL_CXXALIASWARN (mkdir); #elif defined GNULIB_POSIXCHECK # undef mkdir # if HAVE_RAW_DECL_MKDIR _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " "use gnulib module mkdir for portability"); # endif #elif @GNULIB_MDA_MKDIR@ /* On native Windows, map 'mkdir' to '_mkdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::mkdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !GNULIB_defined_rpl_mkdir static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } # define GNULIB_defined_rpl_mkdir 1 # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # else _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); # endif _GL_CXXALIASWARN (mkdir); #endif #if @GNULIB_MKDIRAT@ # if !@HAVE_MKDIRAT@ _GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); _GL_CXXALIASWARN (mkdirat); #elif defined GNULIB_POSIXCHECK # undef mkdirat # if HAVE_RAW_DECL_MKDIRAT _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_MKFIFO@ # if @REPLACE_MKFIFO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkfifo # define mkfifo rpl_mkfifo # endif _GL_FUNCDECL_RPL (mkfifo, int, (char const *file, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkfifo, int, (char const *file, mode_t mode)); # else # if !@HAVE_MKFIFO@ _GL_FUNCDECL_SYS (mkfifo, int, (char const *file, mode_t mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); # endif _GL_CXXALIASWARN (mkfifo); #elif defined GNULIB_POSIXCHECK # undef mkfifo # if HAVE_RAW_DECL_MKFIFO _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " "use gnulib module mkfifo for portability"); # endif #endif #if @GNULIB_MKFIFOAT@ # if @REPLACE_MKFIFOAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkfifoat # define mkfifoat rpl_mkfifoat # endif _GL_FUNCDECL_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode)); # else # if !@HAVE_MKFIFOAT@ _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); # endif _GL_CXXALIASWARN (mkfifoat); #elif defined GNULIB_POSIXCHECK # undef mkfifoat # if HAVE_RAW_DECL_MKFIFOAT _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " "use gnulib module mkfifoat for portability"); # endif #endif #if @GNULIB_MKNOD@ # if @REPLACE_MKNOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mknod # define mknod rpl_mknod # endif _GL_FUNCDECL_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); # else # if !@HAVE_MKNOD@ _GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on OSF/1 5.1, the third parameter is '...'. */ _GL_CXXALIAS_SYS_CAST (mknod, int, (char const *file, mode_t mode, dev_t dev)); # endif _GL_CXXALIASWARN (mknod); #elif defined GNULIB_POSIXCHECK # undef mknod # if HAVE_RAW_DECL_MKNOD _GL_WARN_ON_USE (mknod, "mknod is not portable - " "use gnulib module mknod for portability"); # endif #endif #if @GNULIB_MKNODAT@ # if @REPLACE_MKNODAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mknodat # define mknodat rpl_mknodat # endif _GL_FUNCDECL_RPL (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev)); # else # if !@HAVE_MKNODAT@ _GL_FUNCDECL_SYS (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev)); # endif _GL_CXXALIASWARN (mknodat); #elif defined GNULIB_POSIXCHECK # undef mknodat # if HAVE_RAW_DECL_MKNODAT _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " "use gnulib module mkfifoat for portability"); # endif #endif #if @GNULIB_STAT@ # if @REPLACE_STAT@ # if !@GNULIB_OVERRIDES_STRUCT_STAT@ /* We can't use the object-like #define stat rpl_stat, because of struct stat. This means that rpl_stat will not be used if the user does (stat)(a,b). Oh well. */ # if defined _AIX && defined stat && defined _LARGE_FILES /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, so we have to replace stat64() instead of stat(). */ # undef stat64 # define stat64(name, st) rpl_stat (name, st) # elif @WINDOWS_64_BIT_ST_SIZE@ /* Above, we define stat to _stati64. */ # if defined __MINGW32__ && defined _stati64 # ifndef _USE_32BIT_TIME_T /* The system headers define _stati64 to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # elif defined _MSC_VER && defined _stati64 # ifdef _USE_32BIT_TIME_T /* The system headers define _stati64 to _stat32i64. */ # undef _stat32i64 # define _stat32i64(name, st) rpl_stat (name, st) # else /* The system headers define _stati64 to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # else # undef _stati64 # define _stati64(name, st) rpl_stat (name, st) # endif # elif defined __MINGW32__ && defined stat # ifdef _USE_32BIT_TIME_T /* The system headers define stat to _stat32i64. */ # undef _stat32i64 # define _stat32i64(name, st) rpl_stat (name, st) # else /* The system headers define stat to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # elif defined _MSC_VER && defined stat # ifdef _USE_32BIT_TIME_T /* The system headers define stat to _stat32. */ # undef _stat32 # define _stat32(name, st) rpl_stat (name, st) # else /* The system headers define stat to _stat64i32. */ # undef _stat64i32 # define _stat64i32(name, st) rpl_stat (name, st) # endif # else /* !(_AIX || __MINGW32__ || _MSC_VER) */ # undef stat # define stat(name, st) rpl_stat (name, st) # endif /* !_LARGE_FILES */ # endif /* !@GNULIB_OVERRIDES_STRUCT_STAT@ */ _GL_EXTERN_C int stat (const char *restrict name, struct stat *restrict buf) _GL_ARG_NONNULL ((1, 2)); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ /* see above: #define stat stat_used_without_requesting_gnulib_module_stat */ #elif defined GNULIB_POSIXCHECK # undef stat # if HAVE_RAW_DECL_STAT _GL_WARN_ON_USE (stat, "stat is unportable - " "use gnulib module stat for portability"); # endif #endif #if @GNULIB_MDA_UMASK@ /* On native Windows, map 'umask' to '_umask', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::umask always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef umask # define umask _umask # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask)); # else _GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask)); # endif _GL_CXXALIASWARN (umask); #endif #if @GNULIB_UTIMENSAT@ /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat implementation relies on futimesat, which on Solaris 10 makes an invocation to utimensat that is meant to invoke the libc's utimensat(), not gnulib's utimensat(). */ # if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef utimensat # define utimensat rpl_utimensat # endif _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag)); # else # if !@HAVE_UTIMENSAT@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag)); # endif # if @HAVE_UTIMENSAT@ _GL_CXXALIASWARN (utimensat); # endif #elif defined GNULIB_POSIXCHECK # undef utimensat # if HAVE_RAW_DECL_UTIMENSAT _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " "use gnulib module utimensat for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ #endif shishi-1.0.3/lib/gl/float+.h0000644000000000000000000001300714273615122012376 00000000000000/* Supplemental information about the floating-point formats. Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _FLOATPLUS_H #define _FLOATPLUS_H #include #include /* Number of bits in the mantissa of a floating-point number, including the "hidden bit". */ #if FLT_RADIX == 2 # define FLT_MANT_BIT FLT_MANT_DIG # define DBL_MANT_BIT DBL_MANT_DIG # define LDBL_MANT_BIT LDBL_MANT_DIG #elif FLT_RADIX == 4 # define FLT_MANT_BIT (FLT_MANT_DIG * 2) # define DBL_MANT_BIT (DBL_MANT_DIG * 2) # define LDBL_MANT_BIT (LDBL_MANT_DIG * 2) #elif FLT_RADIX == 16 # define FLT_MANT_BIT (FLT_MANT_DIG * 4) # define DBL_MANT_BIT (DBL_MANT_DIG * 4) # define LDBL_MANT_BIT (LDBL_MANT_DIG * 4) #endif /* Bit mask that can be used to mask the exponent, as an unsigned number. */ #define FLT_EXP_MASK ((FLT_MAX_EXP - FLT_MIN_EXP) | 7) #define DBL_EXP_MASK ((DBL_MAX_EXP - DBL_MIN_EXP) | 7) #define LDBL_EXP_MASK ((LDBL_MAX_EXP - LDBL_MIN_EXP) | 7) /* Number of bits used for the exponent of a floating-point number, including the exponent's sign. */ #define FLT_EXP_BIT \ (FLT_EXP_MASK < 0x100 ? 8 : \ FLT_EXP_MASK < 0x200 ? 9 : \ FLT_EXP_MASK < 0x400 ? 10 : \ FLT_EXP_MASK < 0x800 ? 11 : \ FLT_EXP_MASK < 0x1000 ? 12 : \ FLT_EXP_MASK < 0x2000 ? 13 : \ FLT_EXP_MASK < 0x4000 ? 14 : \ FLT_EXP_MASK < 0x8000 ? 15 : \ FLT_EXP_MASK < 0x10000 ? 16 : \ FLT_EXP_MASK < 0x20000 ? 17 : \ FLT_EXP_MASK < 0x40000 ? 18 : \ FLT_EXP_MASK < 0x80000 ? 19 : \ FLT_EXP_MASK < 0x100000 ? 20 : \ FLT_EXP_MASK < 0x200000 ? 21 : \ FLT_EXP_MASK < 0x400000 ? 22 : \ FLT_EXP_MASK < 0x800000 ? 23 : \ FLT_EXP_MASK < 0x1000000 ? 24 : \ FLT_EXP_MASK < 0x2000000 ? 25 : \ FLT_EXP_MASK < 0x4000000 ? 26 : \ FLT_EXP_MASK < 0x8000000 ? 27 : \ FLT_EXP_MASK < 0x10000000 ? 28 : \ FLT_EXP_MASK < 0x20000000 ? 29 : \ FLT_EXP_MASK < 0x40000000 ? 30 : \ FLT_EXP_MASK <= 0x7fffffff ? 31 : \ 32) #define DBL_EXP_BIT \ (DBL_EXP_MASK < 0x100 ? 8 : \ DBL_EXP_MASK < 0x200 ? 9 : \ DBL_EXP_MASK < 0x400 ? 10 : \ DBL_EXP_MASK < 0x800 ? 11 : \ DBL_EXP_MASK < 0x1000 ? 12 : \ DBL_EXP_MASK < 0x2000 ? 13 : \ DBL_EXP_MASK < 0x4000 ? 14 : \ DBL_EXP_MASK < 0x8000 ? 15 : \ DBL_EXP_MASK < 0x10000 ? 16 : \ DBL_EXP_MASK < 0x20000 ? 17 : \ DBL_EXP_MASK < 0x40000 ? 18 : \ DBL_EXP_MASK < 0x80000 ? 19 : \ DBL_EXP_MASK < 0x100000 ? 20 : \ DBL_EXP_MASK < 0x200000 ? 21 : \ DBL_EXP_MASK < 0x400000 ? 22 : \ DBL_EXP_MASK < 0x800000 ? 23 : \ DBL_EXP_MASK < 0x1000000 ? 24 : \ DBL_EXP_MASK < 0x2000000 ? 25 : \ DBL_EXP_MASK < 0x4000000 ? 26 : \ DBL_EXP_MASK < 0x8000000 ? 27 : \ DBL_EXP_MASK < 0x10000000 ? 28 : \ DBL_EXP_MASK < 0x20000000 ? 29 : \ DBL_EXP_MASK < 0x40000000 ? 30 : \ DBL_EXP_MASK <= 0x7fffffff ? 31 : \ 32) #define LDBL_EXP_BIT \ (LDBL_EXP_MASK < 0x100 ? 8 : \ LDBL_EXP_MASK < 0x200 ? 9 : \ LDBL_EXP_MASK < 0x400 ? 10 : \ LDBL_EXP_MASK < 0x800 ? 11 : \ LDBL_EXP_MASK < 0x1000 ? 12 : \ LDBL_EXP_MASK < 0x2000 ? 13 : \ LDBL_EXP_MASK < 0x4000 ? 14 : \ LDBL_EXP_MASK < 0x8000 ? 15 : \ LDBL_EXP_MASK < 0x10000 ? 16 : \ LDBL_EXP_MASK < 0x20000 ? 17 : \ LDBL_EXP_MASK < 0x40000 ? 18 : \ LDBL_EXP_MASK < 0x80000 ? 19 : \ LDBL_EXP_MASK < 0x100000 ? 20 : \ LDBL_EXP_MASK < 0x200000 ? 21 : \ LDBL_EXP_MASK < 0x400000 ? 22 : \ LDBL_EXP_MASK < 0x800000 ? 23 : \ LDBL_EXP_MASK < 0x1000000 ? 24 : \ LDBL_EXP_MASK < 0x2000000 ? 25 : \ LDBL_EXP_MASK < 0x4000000 ? 26 : \ LDBL_EXP_MASK < 0x8000000 ? 27 : \ LDBL_EXP_MASK < 0x10000000 ? 28 : \ LDBL_EXP_MASK < 0x20000000 ? 29 : \ LDBL_EXP_MASK < 0x40000000 ? 30 : \ LDBL_EXP_MASK <= 0x7fffffff ? 31 : \ 32) /* Number of bits used for a floating-point number: the mantissa (not counting the "hidden bit", since it may or may not be explicit), the exponent, and the sign. */ #define FLT_TOTAL_BIT ((FLT_MANT_BIT - 1) + FLT_EXP_BIT + 1) #define DBL_TOTAL_BIT ((DBL_MANT_BIT - 1) + DBL_EXP_BIT + 1) #define LDBL_TOTAL_BIT ((LDBL_MANT_BIT - 1) + LDBL_EXP_BIT + 1) /* Number of bytes used for a floating-point number. This can be smaller than the 'sizeof'. For example, on i386 systems, 'long double' most often have LDBL_MANT_BIT = 64, LDBL_EXP_BIT = 16, hence LDBL_TOTAL_BIT = 80 bits, i.e. 10 bytes of consecutive memory, but sizeof (long double) = 12 or = 16. */ #define SIZEOF_FLT ((FLT_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) #define SIZEOF_DBL ((DBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) #define SIZEOF_LDBL ((LDBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT) /* Verify that SIZEOF_FLT <= sizeof (float) etc. */ typedef int verify_sizeof_flt[SIZEOF_FLT <= sizeof (float) ? 1 : -1]; typedef int verify_sizeof_dbl[SIZEOF_DBL <= sizeof (double) ? 1 : - 1]; typedef int verify_sizeof_ldbl[SIZEOF_LDBL <= sizeof (long double) ? 1 : - 1]; #endif /* _FLOATPLUS_H */ shishi-1.0.3/lib/gl/rawmemchr.valgrind0000644000000000000000000000171414273615123014565 00000000000000# Suppress a valgrind message about use of uninitialized memory in rawmemchr(). # Copyright (C) 2008-2022 Free Software Foundation, Inc. # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # This use is OK because it provides only a speedup. { rawmemchr-value4 Memcheck:Value4 fun:rawmemchr } { rawmemchr-value8 Memcheck:Value8 fun:rawmemchr } shishi-1.0.3/lib/gl/strerror-override.c0000644000000000000000000002164614273615123014721 00000000000000/* strerror-override.c --- POSIX compatible system error routine Copyright (C) 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2010. */ #include #include "strerror-override.h" #include #if GNULIB_defined_EWINSOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H # include # endif #endif #if !GNULIB_defined_strerror_override_macro /* If ERRNUM maps to an errno value defined by gnulib, return a string describing the error. Otherwise return NULL. */ const char * strerror_override (int errnum) { /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ switch (errnum) { # if REPLACE_STRERROR_0 case 0: return "Success"; # endif # if GNULIB_defined_ESOCK /* native Windows platforms with older */ case EINPROGRESS: return "Operation now in progress"; case EALREADY: return "Operation already in progress"; case ENOTSOCK: return "Socket operation on non-socket"; case EDESTADDRREQ: return "Destination address required"; case EMSGSIZE: return "Message too long"; case EPROTOTYPE: return "Protocol wrong type for socket"; case ENOPROTOOPT: return "Protocol not available"; case EPROTONOSUPPORT: return "Protocol not supported"; case EOPNOTSUPP: return "Operation not supported"; case EAFNOSUPPORT: return "Address family not supported by protocol"; case EADDRINUSE: return "Address already in use"; case EADDRNOTAVAIL: return "Cannot assign requested address"; case ENETDOWN: return "Network is down"; case ENETUNREACH: return "Network is unreachable"; case ECONNRESET: return "Connection reset by peer"; case ENOBUFS: return "No buffer space available"; case EISCONN: return "Transport endpoint is already connected"; case ENOTCONN: return "Transport endpoint is not connected"; case ETIMEDOUT: return "Connection timed out"; case ECONNREFUSED: return "Connection refused"; case ELOOP: return "Too many levels of symbolic links"; case EHOSTUNREACH: return "No route to host"; case EWOULDBLOCK: return "Operation would block"; # endif # if GNULIB_defined_ESTREAMS /* native Windows platforms with older */ case ETXTBSY: return "Text file busy"; case ENODATA: return "No data available"; case ENOSR: return "Out of streams resources"; case ENOSTR: return "Device not a stream"; case ETIME: return "Timer expired"; case EOTHER: return "Other error"; # endif # if GNULIB_defined_EWINSOCK /* native Windows platforms */ case ESOCKTNOSUPPORT: return "Socket type not supported"; case EPFNOSUPPORT: return "Protocol family not supported"; case ESHUTDOWN: return "Cannot send after transport endpoint shutdown"; case ETOOMANYREFS: return "Too many references: cannot splice"; case EHOSTDOWN: return "Host is down"; case EPROCLIM: return "Too many processes"; case EUSERS: return "Too many users"; case EDQUOT: return "Disk quota exceeded"; case ESTALE: return "Stale NFS file handle"; case EREMOTE: return "Object is remote"; # if HAVE_WINSOCK2_H /* WSA_INVALID_HANDLE maps to EBADF */ /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ /* WSA_INVALID_PARAMETER maps to EINVAL */ case WSA_OPERATION_ABORTED: return "Overlapped operation aborted"; case WSA_IO_INCOMPLETE: return "Overlapped I/O event object not in signaled state"; case WSA_IO_PENDING: return "Overlapped operations will complete later"; /* WSAEINTR maps to EINTR */ /* WSAEBADF maps to EBADF */ /* WSAEACCES maps to EACCES */ /* WSAEFAULT maps to EFAULT */ /* WSAEINVAL maps to EINVAL */ /* WSAEMFILE maps to EMFILE */ /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ /* WSAEINPROGRESS maps to EINPROGRESS */ /* WSAEALREADY maps to EALREADY */ /* WSAENOTSOCK maps to ENOTSOCK */ /* WSAEDESTADDRREQ maps to EDESTADDRREQ */ /* WSAEMSGSIZE maps to EMSGSIZE */ /* WSAEPROTOTYPE maps to EPROTOTYPE */ /* WSAENOPROTOOPT maps to ENOPROTOOPT */ /* WSAEPROTONOSUPPORT maps to EPROTONOSUPPORT */ /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ /* WSAEOPNOTSUPP maps to EOPNOTSUPP */ /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ /* WSAEAFNOSUPPORT maps to EAFNOSUPPORT */ /* WSAEADDRINUSE maps to EADDRINUSE */ /* WSAEADDRNOTAVAIL maps to EADDRNOTAVAIL */ /* WSAENETDOWN maps to ENETDOWN */ /* WSAENETUNREACH maps to ENETUNREACH */ /* WSAENETRESET maps to ENETRESET */ /* WSAECONNABORTED maps to ECONNABORTED */ /* WSAECONNRESET maps to ECONNRESET */ /* WSAENOBUFS maps to ENOBUFS */ /* WSAEISCONN maps to EISCONN */ /* WSAENOTCONN maps to ENOTCONN */ /* WSAESHUTDOWN is ESHUTDOWN */ /* WSAETOOMANYREFS is ETOOMANYREFS */ /* WSAETIMEDOUT maps to ETIMEDOUT */ /* WSAECONNREFUSED maps to ECONNREFUSED */ /* WSAELOOP maps to ELOOP */ /* WSAENAMETOOLONG maps to ENAMETOOLONG */ /* WSAEHOSTDOWN is EHOSTDOWN */ /* WSAEHOSTUNREACH maps to EHOSTUNREACH */ /* WSAENOTEMPTY maps to ENOTEMPTY */ /* WSAEPROCLIM is EPROCLIM */ /* WSAEUSERS is EUSERS */ /* WSAEDQUOT is EDQUOT */ /* WSAESTALE is ESTALE */ /* WSAEREMOTE is EREMOTE */ case WSASYSNOTREADY: return "Network subsystem is unavailable"; case WSAVERNOTSUPPORTED: return "Winsock.dll version out of range"; case WSANOTINITIALISED: return "Successful WSAStartup not yet performed"; case WSAEDISCON: return "Graceful shutdown in progress"; case WSAENOMORE: case WSA_E_NO_MORE: return "No more results"; case WSAECANCELLED: case WSA_E_CANCELLED: return "Call was canceled"; case WSAEINVALIDPROCTABLE: return "Procedure call table is invalid"; case WSAEINVALIDPROVIDER: return "Service provider is invalid"; case WSAEPROVIDERFAILEDINIT: return "Service provider failed to initialize"; case WSASYSCALLFAILURE: return "System call failure"; case WSASERVICE_NOT_FOUND: return "Service not found"; case WSATYPE_NOT_FOUND: return "Class type not found"; case WSAEREFUSED: return "Database query was refused"; case WSAHOST_NOT_FOUND: return "Host not found"; case WSATRY_AGAIN: return "Nonauthoritative host not found"; case WSANO_RECOVERY: return "Nonrecoverable error"; case WSANO_DATA: return "Valid name, no data record of requested type"; /* WSA_QOS_* omitted */ # endif # endif # if GNULIB_defined_ENOMSG case ENOMSG: return "No message of desired type"; # endif # if GNULIB_defined_EIDRM case EIDRM: return "Identifier removed"; # endif # if GNULIB_defined_ENOLINK case ENOLINK: return "Link has been severed"; # endif # if GNULIB_defined_EPROTO case EPROTO: return "Protocol error"; # endif # if GNULIB_defined_EMULTIHOP case EMULTIHOP: return "Multihop attempted"; # endif # if GNULIB_defined_EBADMSG case EBADMSG: return "Bad message"; # endif # if GNULIB_defined_EOVERFLOW case EOVERFLOW: return "Value too large for defined data type"; # endif # if GNULIB_defined_ENOTSUP case ENOTSUP: return "Not supported"; # endif # if GNULIB_defined_ENETRESET case ENETRESET: return "Network dropped connection on reset"; # endif # if GNULIB_defined_ECONNABORTED case ECONNABORTED: return "Software caused connection abort"; # endif # if GNULIB_defined_ESTALE case ESTALE: return "Stale NFS file handle"; # endif # if GNULIB_defined_EDQUOT case EDQUOT: return "Disk quota exceeded"; # endif # if GNULIB_defined_ECANCELED case ECANCELED: return "Operation canceled"; # endif # if GNULIB_defined_EOWNERDEAD case EOWNERDEAD: return "Owner died"; # endif # if GNULIB_defined_ENOTRECOVERABLE case ENOTRECOVERABLE: return "State not recoverable"; # endif # if GNULIB_defined_EILSEQ case EILSEQ: return "Invalid or incomplete multibyte or wide character"; # endif default: return NULL; } } #endif shishi-1.0.3/lib/gl/xgethostname.c0000644000000000000000000000177114273615123013725 00000000000000/* xgethostname.c -- return current hostname with unlimited length Copyright (C) 1992, 1996, 2000-2001, 2003-2006, 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* written by Jim Meyering and Paul Eggert */ #include /* Specification. */ #include "xgethostname.h" #define GETANAME gethostname #define XGETANAME xgethostname #include "xgetaname-impl.h" shishi-1.0.3/lib/gl/getdomainname.c0000644000000000000000000000526114273615122014024 00000000000000/* getdomainname emulation for systems that doesn't have it. Copyright (C) 2003, 2006, 2008, 2010-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #include /* Specification. */ #include #include #include #include #if HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H /* IRIX, OSF/1, Solaris */ # include #endif /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. WARNING! The NIS domain name is usually the empty string or "(none)" when not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN. If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. Return 0 if successful, otherwise set errno and return -1. */ int getdomainname (char *name, size_t len) #undef getdomainname { #if HAVE_GETDOMAINNAME /* Mac OS X, FreeBSD, AIX, IRIX, OSF/1 */ extern int getdomainname (char *, int); if (len > INT_MAX) len = INT_MAX; return getdomainname (name, (int) len); #elif HAVE_SYSINFO && HAVE_SYS_SYSTEMINFO_H && defined SI_SRPC_DOMAIN /* Solaris */ int ret; /* The third argument is a 'long', but the return value must fit in an 'int', therefore it's better to avoid arguments > INT_MAX. */ ret = sysinfo (SI_SRPC_DOMAIN, name, len > INT_MAX ? INT_MAX : len); if (ret < 0) /* errno is set here. */ return -1; if (ret > len) { errno = EINVAL; return -1; } return 0; #else /* HP-UX, Cygwin, mingw */ const char *result = ""; /* Hardcode your domain name if you want. */ size_t result_len = strlen (result); if (result_len > len) { errno = EINVAL; return -1; } memcpy (name, result, result_len); if (result_len < len) name[result_len] = '\0'; return 0; #endif } shishi-1.0.3/lib/gl/af_alg.c0000644000000000000000000001527614273615121012433 00000000000000/* af_alg.c - Compute message digests from file streams and buffers. Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Matteo Croce , 2018. */ #include #include "af_alg.h" #if USE_LINUX_CRYPTO_API #include #include #include #include #include #include #include #include #include "sys-limits.h" #define BLOCKSIZE 32768 /* Return a newly created socket for ALG. On error, return a negative error number. */ static int alg_socket (char const *alg) { struct sockaddr_alg salg = { .salg_family = AF_ALG, .salg_type = "hash", }; /* Copy alg into salg.salg_name, without calling strcpy nor strlen. */ for (size_t i = 0; (salg.salg_name[i] = alg[i]) != '\0'; i++) if (i == sizeof salg.salg_name - 1) /* alg is too long. */ return -EINVAL; int cfd = socket (AF_ALG, SOCK_SEQPACKET | SOCK_CLOEXEC, 0); if (cfd < 0) return -EAFNOSUPPORT; int ofd = (bind (cfd, (struct sockaddr *) &salg, sizeof salg) == 0 ? accept4 (cfd, NULL, 0, SOCK_CLOEXEC) : -1); close (cfd); return ofd < 0 ? -EAFNOSUPPORT : ofd; } int afalg_buffer (const char *buffer, size_t len, const char *alg, void *resblock, ssize_t hashlen) { /* On Linux < 4.9, the value for an empty stream is wrong (all zeroes). See . This was not fixed properly until November 2016, see . */ if (len == 0) return -EAFNOSUPPORT; int ofd = alg_socket (alg); if (ofd < 0) return ofd; int result; for (;;) { ssize_t size = (len > BLOCKSIZE ? BLOCKSIZE : len); if (send (ofd, buffer, size, MSG_MORE) != size) { result = -EAFNOSUPPORT; break; } buffer += size; len -= size; if (len == 0) { result = read (ofd, resblock, hashlen) == hashlen ? 0 : -EAFNOSUPPORT; break; } } close (ofd); return result; } int afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen) { int ofd = alg_socket (alg); if (ofd < 0) return ofd; /* If STREAM's size is known and nonzero and not too large, attempt sendfile to pipe the data. The nonzero restriction avoids issues with /proc files that pretend to be empty, and lets the classic read-write loop work around an empty-input bug noted below. */ int fd = fileno (stream); int result; struct stat st; off_t off = ftello (stream); if (0 <= off && fstat (fd, &st) == 0 && (S_ISREG (st.st_mode) || S_TYPEISSHM (&st) || S_TYPEISTMO (&st)) && off < st.st_size && st.st_size - off < SYS_BUFSIZE_MAX) { /* Make sure the offset of fileno (stream) reflects how many bytes have been read from stream before this function got invoked. Note: fflush on an input stream after ungetc does not work as expected on some platforms. Therefore this situation is not supported here. */ if (fflush (stream)) result = -EIO; else { off_t nbytes = st.st_size - off; if (sendfile (ofd, fd, &off, nbytes) == nbytes) { if (read (ofd, resblock, hashlen) == hashlen) { /* The input buffers of stream are no longer valid. */ if (lseek (fd, off, SEEK_SET) != (off_t)-1) result = 0; else /* The file position of fd has not changed. */ result = -EAFNOSUPPORT; } else /* The file position of fd has not changed. */ result = -EAFNOSUPPORT; } else /* The file position of fd has not changed. */ result = -EAFNOSUPPORT; } } else { /* sendfile not possible, do a classic read-write loop. */ /* Number of bytes to seek (backwards) in case of error. */ off_t nseek = 0; for (;;) { char buf[BLOCKSIZE]; /* When the stream is not seekable, start with a single-byte block, so that we can use ungetc() in the case that send() fails. */ size_t blocksize = (nseek == 0 && off < 0 ? 1 : BLOCKSIZE); ssize_t size = fread (buf, 1, blocksize, stream); if (size == 0) { /* On Linux < 4.9, the value for an empty stream is wrong (all 0). See . This was not fixed properly until November 2016, see . */ result = ferror (stream) ? -EIO : nseek == 0 ? -EAFNOSUPPORT : 0; break; } nseek -= size; if (send (ofd, buf, size, MSG_MORE) != size) { if (nseek == -1) { /* 1 byte of pushback buffer is guaranteed on stream, even if stream is not seekable. */ ungetc ((unsigned char) buf[0], stream); result = -EAFNOSUPPORT; } else if (fseeko (stream, nseek, SEEK_CUR) == 0) /* The position of stream has been restored. */ result = -EAFNOSUPPORT; else result = -EIO; break; } /* Don't assume that EOF is sticky. See: . */ if (feof (stream)) { result = 0; break; } } if (result == 0 && read (ofd, resblock, hashlen) != hashlen) { if (nseek == 0 || fseeko (stream, nseek, SEEK_CUR) == 0) /* The position of stream has been restored. */ result = -EAFNOSUPPORT; else result = -EIO; } } close (ofd); return result; } #endif shishi-1.0.3/lib/gl/rawmemchr.c0000644000000000000000000001152614273615123013203 00000000000000/* Searching in a string. Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */ #if !HAVE_RAWMEMCHR # include # include # include # include "verify.h" /* Find the first occurrence of C in S. */ void * rawmemchr (const void *s, int c_in) { /* Change this typedef to experiment with performance. */ typedef uintptr_t longword; /* If you change the "uintptr_t", you should change UINTPTR_WIDTH to match. This verifies that the type does not have padding bits. */ verify (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword)); const unsigned char *char_ptr; unsigned char c = c_in; /* Handle the first few bytes by reading one byte at a time. Do this until CHAR_PTR is aligned on a longword boundary. */ for (char_ptr = (const unsigned char *) s; (uintptr_t) char_ptr % alignof (longword) != 0; ++char_ptr) if (*char_ptr == c) return (void *) char_ptr; longword const *longword_ptr = s = char_ptr; /* Compute auxiliary longword values: repeated_one is a value which has a 1 in every byte. repeated_c has c in every byte. */ longword repeated_one = (longword) -1 / UCHAR_MAX; longword repeated_c = repeated_one * c; longword repeated_hibit = repeated_one * (UCHAR_MAX / 2 + 1); /* Instead of the traditional loop which tests each byte, we will test a longword at a time. The tricky part is testing if any of the bytes in the longword in question are equal to c. We first use an xor with repeated_c. This reduces the task to testing whether any of the bytes in longword1 is zero. (The following comments assume 8-bit bytes, as POSIX requires; the code's use of UCHAR_MAX should work even if bytes have more than 8 bits.) We compute tmp = ((longword1 - repeated_one) & ~longword1) & (repeated_one * 0x80). That is, we perform the following operations: 1. Subtract repeated_one. 2. & ~longword1. 3. & a mask consisting of 0x80 in every byte. Consider what happens in each byte: - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff, and step 3 transforms it into 0x80. A carry can also be propagated to more significant bytes. - If a byte of longword1 is nonzero, let its lowest 1 bit be at position k (0 <= k <= 7); so the lowest k bits are 0. After step 1, the byte ends in a single bit of value 0 and k bits of value 1. After step 2, the result is just k bits of value 1: 2^k - 1. After step 3, the result is 0. And no carry is produced. So, if longword1 has only non-zero bytes, tmp is zero. Whereas if longword1 has a zero byte, call j the position of the least significant zero byte. Then the result has a zero at positions 0, ..., j-1 and a 0x80 at position j. We cannot predict the result at the more significant bytes (positions j+1..3), but it does not matter since we already have a non-zero bit at position 8*j+7. The test whether any byte in longword1 is zero is equivalent to testing whether tmp is nonzero. This test can read beyond the end of a string, depending on where C_IN is encountered. However, this is considered safe since the initialization phase ensured that the read will be aligned, therefore, the read will not cross page boundaries and will not cause a fault. */ while (1) { longword longword1 = *longword_ptr ^ repeated_c; if ((((longword1 - repeated_one) & ~longword1) & repeated_hibit) != 0) break; longword_ptr++; } char_ptr = s = longword_ptr; /* At this point, we know that one of the sizeof (longword) bytes starting at char_ptr is == c. If we knew endianness, we could determine the first such byte without any further memory accesses, just by looking at the tmp result from the last loop iteration. However, the following simple and portable code does not attempt this potential optimization. */ while (*char_ptr != c) char_ptr++; return (void *) char_ptr; } #endif shishi-1.0.3/lib/gl/getdelim.c0000644000000000000000000000755314273615122013014 00000000000000/* getdelim.c --- Implementation of replacement getdelim function. Copyright (C) 1994, 1996-1998, 2001, 2003, 2005-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Ported from glibc by Simon Josefsson. */ /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc optimizes away the lineptr == NULL || n == NULL || fp == NULL tests below. */ #define _GL_ARG_NONNULL(params) #include #include #include #include #include #include #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif #if USE_UNLOCKED_IO # include "unlocked-io.h" # define getc_maybe_unlocked(fp) getc(fp) #elif !HAVE_FLOCKFILE || !HAVE_FUNLOCKFILE || !HAVE_DECL_GETC_UNLOCKED # undef flockfile # undef funlockfile # define flockfile(x) ((void) 0) # define funlockfile(x) ((void) 0) # define getc_maybe_unlocked(fp) getc(fp) #else # define getc_maybe_unlocked(fp) getc_unlocked(fp) #endif static void alloc_failed (void) { #if defined _WIN32 && ! defined __CYGWIN__ /* Avoid errno problem without using the realloc module; see: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00025.html */ errno = ENOMEM; #endif } /* Read up to (and including) a DELIMITER from FP into *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *N characters of space. It is realloc'ed as necessary. Returns the number of characters read (not including the null terminator), or -1 on error or EOF. */ ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) { ssize_t result; size_t cur_len = 0; if (lineptr == NULL || n == NULL || fp == NULL) { errno = EINVAL; return -1; } flockfile (fp); if (*lineptr == NULL || *n == 0) { char *new_lineptr; *n = 120; new_lineptr = (char *) realloc (*lineptr, *n); if (new_lineptr == NULL) { alloc_failed (); result = -1; goto unlock_return; } *lineptr = new_lineptr; } for (;;) { int i; i = getc_maybe_unlocked (fp); if (i == EOF) { result = -1; break; } /* Make enough space for len+1 (for final NUL) bytes. */ if (cur_len + 1 >= *n) { size_t needed_max = SSIZE_MAX < SIZE_MAX ? (size_t) SSIZE_MAX + 1 : SIZE_MAX; size_t needed = 2 * *n + 1; /* Be generous. */ char *new_lineptr; if (needed_max < needed) needed = needed_max; if (cur_len + 1 >= needed) { result = -1; errno = EOVERFLOW; goto unlock_return; } new_lineptr = (char *) realloc (*lineptr, needed); if (new_lineptr == NULL) { alloc_failed (); result = -1; goto unlock_return; } *lineptr = new_lineptr; *n = needed; } (*lineptr)[cur_len] = i; cur_len++; if (i == delimiter) break; } (*lineptr)[cur_len] = '\0'; result = cur_len ? cur_len : result; unlock_return: funlockfile (fp); /* doesn't set errno */ return result; } shishi-1.0.3/lib/gl/mktime.c0000644000000000000000000004534714273615123012514 00000000000000/* Convert a 'struct tm' to a time_t value. Copyright (C) 1993-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Paul Eggert . The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ /* The following macros influence what gets defined when this file is compiled: Macro/expression Which gnulib module This compilation unit should define _LIBC (glibc proper) mktime NEED_MKTIME_WORKING mktime rpl_mktime || NEED_MKTIME_WINDOWS NEED_MKTIME_INTERNAL mktime-internal mktime_internal */ #ifndef _LIBC # include #endif /* Assume that leap seconds are possible, unless told otherwise. If the host has a 'zic' command with a '-L leapsecondfilename' option, then it supports leap seconds; otherwise it probably doesn't. */ #ifndef LEAP_SECONDS_POSSIBLE # define LEAP_SECONDS_POSSIBLE 1 #endif #include #include #include #include #include #include #include #include #ifndef NEED_MKTIME_INTERNAL # define NEED_MKTIME_INTERNAL 0 #endif #ifndef NEED_MKTIME_WINDOWS # define NEED_MKTIME_WINDOWS 0 #endif #ifndef NEED_MKTIME_WORKING # define NEED_MKTIME_WORKING 0 #endif #include "mktime-internal.h" #if !defined _LIBC && (NEED_MKTIME_WORKING || NEED_MKTIME_WINDOWS) static void my_tzset (void) { # if NEED_MKTIME_WINDOWS /* Rectify the value of the environment variable TZ. There are four possible kinds of such values: - Traditional US time zone names, e.g. "PST8PDT". Syntax: see - Time zone names based on geography, that contain one or more slashes, e.g. "Europe/Moscow". - Time zone names based on geography, without slashes, e.g. "Singapore". - Time zone names that contain explicit DST rules. Syntax: see The Microsoft CRT understands only the first kind. It produces incorrect results if the value of TZ is of the other kinds. But in a Cygwin environment, /etc/profile.d/tzset.sh sets TZ to a value of the second kind for most geographies, or of the first kind in a few other geographies. If it is of the second kind, neutralize it. For the Microsoft CRT, an absent or empty TZ means the time zone that the user has set in the Windows Control Panel. If the value of TZ is of the third or fourth kind -- Cygwin programs understand these syntaxes as well --, it does not matter whether we neutralize it or not, since these values occur only when a Cygwin user has set TZ explicitly; this case is 1. rare and 2. under the user's responsibility. */ const char *tz = getenv ("TZ"); if (tz != NULL && strchr (tz, '/') != NULL) _putenv ("TZ="); # else tzset (); # endif } # undef __tzset # define __tzset() my_tzset () #endif #if defined _LIBC || NEED_MKTIME_WORKING || NEED_MKTIME_INTERNAL /* A signed type that can represent an integer number of years multiplied by four times the number of seconds in a year. It is needed when converting a tm_year value times the number of seconds in a year. The factor of four comes because these products need to be subtracted from each other, and sometimes with an offset added to them, and then with another timestamp added, without worrying about overflow. Much of the code uses long_int to represent __time64_t values, to lessen the hassle of dealing with platforms where __time64_t is unsigned, and because long_int should suffice to represent all __time64_t values that mktime can generate even on platforms where __time64_t is wider than the int components of struct tm. */ #if INT_MAX <= LONG_MAX / 4 / 366 / 24 / 60 / 60 typedef long int long_int; #else typedef long long int long_int; #endif verify (INT_MAX <= TYPE_MAXIMUM (long_int) / 4 / 366 / 24 / 60 / 60); /* Shift A right by B bits portably, by dividing A by 2**B and truncating towards minus infinity. B should be in the range 0 <= B <= LONG_INT_BITS - 2, where LONG_INT_BITS is the number of useful bits in a long_int. LONG_INT_BITS is at least 32. ISO C99 says that A >> B is implementation-defined if A < 0. Some implementations (e.g., UNICOS 9.0 on a Cray Y-MP EL) don't shift right in the usual way when A < 0, so SHR falls back on division if ordinary A >> B doesn't seem to be the usual signed shift. */ static long_int shr (long_int a, int b) { long_int one = 1; return (-one >> 1 == -1 ? a >> b : (a + (a < 0)) / (one << b) - (a < 0)); } /* Bounds for the intersection of __time64_t and long_int. */ static long_int const mktime_min = ((TYPE_SIGNED (__time64_t) && TYPE_MINIMUM (__time64_t) < TYPE_MINIMUM (long_int)) ? TYPE_MINIMUM (long_int) : TYPE_MINIMUM (__time64_t)); static long_int const mktime_max = (TYPE_MAXIMUM (long_int) < TYPE_MAXIMUM (__time64_t) ? TYPE_MAXIMUM (long_int) : TYPE_MAXIMUM (__time64_t)); #define EPOCH_YEAR 1970 #define TM_YEAR_BASE 1900 verify (TM_YEAR_BASE % 100 == 0); /* Is YEAR + TM_YEAR_BASE a leap year? */ static bool leapyear (long_int year) { /* Don't add YEAR to TM_YEAR_BASE, as that might overflow. Also, work even if YEAR is negative. */ return ((year & 3) == 0 && (year % 100 != 0 || ((year / 100) & 3) == (- (TM_YEAR_BASE / 100) & 3))); } /* How many days come before each month (0-12). */ #ifndef _LIBC static #endif const unsigned short int __mon_yday[2][13] = { /* Normal years. */ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, /* Leap years. */ { 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366 } }; /* Do the values A and B differ according to the rules for tm_isdst? A and B differ if one is zero and the other positive. */ static bool isdst_differ (int a, int b) { return (!a != !b) && (0 <= a) && (0 <= b); } /* Return an integer value measuring (YEAR1-YDAY1 HOUR1:MIN1:SEC1) - (YEAR0-YDAY0 HOUR0:MIN0:SEC0) in seconds, assuming that the clocks were not adjusted between the timestamps. The YEAR values uses the same numbering as TP->tm_year. Values need not be in the usual range. However, YEAR1 - YEAR0 must not overflow even when multiplied by three times the number of seconds in a year, and likewise for YDAY1 - YDAY0 and three times the number of seconds in a day. */ static long_int ydhms_diff (long_int year1, long_int yday1, int hour1, int min1, int sec1, int year0, int yday0, int hour0, int min0, int sec0) { verify (-1 / 2 == 0); /* Compute intervening leap days correctly even if year is negative. Take care to avoid integer overflow here. */ int a4 = shr (year1, 2) + shr (TM_YEAR_BASE, 2) - ! (year1 & 3); int b4 = shr (year0, 2) + shr (TM_YEAR_BASE, 2) - ! (year0 & 3); int a100 = (a4 + (a4 < 0)) / 25 - (a4 < 0); int b100 = (b4 + (b4 < 0)) / 25 - (b4 < 0); int a400 = shr (a100, 2); int b400 = shr (b100, 2); int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); /* Compute the desired time without overflowing. */ long_int years = year1 - year0; long_int days = 365 * years + yday1 - yday0 + intervening_leap_days; long_int hours = 24 * days + hour1 - hour0; long_int minutes = 60 * hours + min1 - min0; long_int seconds = 60 * minutes + sec1 - sec0; return seconds; } /* Return the average of A and B, even if A + B would overflow. Round toward positive infinity. */ static long_int long_int_avg (long_int a, long_int b) { return shr (a, 1) + shr (b, 1) + ((a | b) & 1); } /* Return a long_int value corresponding to (YEAR-YDAY HOUR:MIN:SEC) minus *TP seconds, assuming no clock adjustments occurred between the two timestamps. YEAR and YDAY must not be so large that multiplying them by three times the number of seconds in a year (or day, respectively) would overflow long_int. *TP should be in the usual range. */ static long_int tm_diff (long_int year, long_int yday, int hour, int min, int sec, struct tm const *tp) { return ydhms_diff (year, yday, hour, min, sec, tp->tm_year, tp->tm_yday, tp->tm_hour, tp->tm_min, tp->tm_sec); } /* Use CONVERT to convert T to a struct tm value in *TM. T must be in range for __time64_t. Return TM if successful, NULL (setting errno) on failure. */ static struct tm * convert_time (struct tm *(*convert) (const __time64_t *, struct tm *), long_int t, struct tm *tm) { __time64_t x = t; return convert (&x, tm); } /* Use CONVERT to convert *T to a broken down time in *TP. If *T is out of range for conversion, adjust it so that it is the nearest in-range value and then convert that. A value is in range if it fits in both __time64_t and long_int. Return TP on success, NULL (setting errno) on failure. */ static struct tm * ranged_convert (struct tm *(*convert) (const __time64_t *, struct tm *), long_int *t, struct tm *tp) { long_int t1 = (*t < mktime_min ? mktime_min : *t <= mktime_max ? *t : mktime_max); struct tm *r = convert_time (convert, t1, tp); if (r) { *t = t1; return r; } if (errno != EOVERFLOW) return NULL; long_int bad = t1; long_int ok = 0; struct tm oktm; oktm.tm_sec = -1; /* BAD is a known out-of-range value, and OK is a known in-range one. Use binary search to narrow the range between BAD and OK until they differ by 1. */ while (true) { long_int mid = long_int_avg (ok, bad); if (mid == ok || mid == bad) break; if (convert_time (convert, mid, tp)) ok = mid, oktm = *tp; else if (errno != EOVERFLOW) return NULL; else bad = mid; } if (oktm.tm_sec < 0) return NULL; *t = ok; *tp = oktm; return tp; } /* Convert *TP to a __time64_t value, inverting the monotonic and mostly-unit-linear conversion function CONVERT. Use *OFFSET to keep track of a guess at the offset of the result, compared to what the result would be for UTC without leap seconds. If *OFFSET's guess is correct, only one CONVERT call is needed. If successful, set *TP to the canonicalized struct tm; otherwise leave *TP alone, return ((time_t) -1) and set errno. This function is external because it is used also by timegm.c. */ __time64_t __mktime_internal (struct tm *tp, struct tm *(*convert) (const __time64_t *, struct tm *), mktime_offset_t *offset) { struct tm tm; /* The maximum number of probes (calls to CONVERT) should be enough to handle any combinations of time zone rule changes, solar time, leap seconds, and oscillations around a spring-forward gap. POSIX.1 prohibits leap seconds, but some hosts have them anyway. */ int remaining_probes = 6; /* Time requested. Copy it in case CONVERT modifies *TP; this can occur if TP is localtime's returned value and CONVERT is localtime. */ int sec = tp->tm_sec; int min = tp->tm_min; int hour = tp->tm_hour; int mday = tp->tm_mday; int mon = tp->tm_mon; int year_requested = tp->tm_year; int isdst = tp->tm_isdst; /* 1 if the previous probe was DST. */ int dst2 = 0; /* Ensure that mon is in range, and set year accordingly. */ int mon_remainder = mon % 12; int negative_mon_remainder = mon_remainder < 0; int mon_years = mon / 12 - negative_mon_remainder; long_int lyear_requested = year_requested; long_int year = lyear_requested + mon_years; /* The other values need not be in range: the remaining code handles overflows correctly. */ /* Calculate day of year from year, month, and day of month. The result need not be in range. */ int mon_yday = ((__mon_yday[leapyear (year)] [mon_remainder + 12 * negative_mon_remainder]) - 1); long_int lmday = mday; long_int yday = mon_yday + lmday; mktime_offset_t off = *offset; int negative_offset_guess; int sec_requested = sec; if (LEAP_SECONDS_POSSIBLE) { /* Handle out-of-range seconds specially, since ydhms_diff assumes every minute has 60 seconds. */ if (sec < 0) sec = 0; if (59 < sec) sec = 59; } /* Invert CONVERT by probing. First assume the same offset as last time. */ INT_SUBTRACT_WRAPV (0, off, &negative_offset_guess); long_int t0 = ydhms_diff (year, yday, hour, min, sec, EPOCH_YEAR - TM_YEAR_BASE, 0, 0, 0, negative_offset_guess); long_int t = t0, t1 = t0, t2 = t0; /* Repeatedly use the error to improve the guess. */ while (true) { if (! ranged_convert (convert, &t, &tm)) return -1; long_int dt = tm_diff (year, yday, hour, min, sec, &tm); if (dt == 0) break; if (t == t1 && t != t2 && (tm.tm_isdst < 0 || (isdst < 0 ? dst2 <= (tm.tm_isdst != 0) : (isdst != 0) != (tm.tm_isdst != 0)))) /* We can't possibly find a match, as we are oscillating between two values. The requested time probably falls within a spring-forward gap of size DT. Follow the common practice in this case, which is to return a time that is DT away from the requested time, preferring a time whose tm_isdst differs from the requested value. (If no tm_isdst was requested and only one of the two values has a nonzero tm_isdst, prefer that value.) In practice, this is more useful than returning -1. */ goto offset_found; remaining_probes--; if (remaining_probes == 0) { __set_errno (EOVERFLOW); return -1; } t1 = t2, t2 = t, t += dt, dst2 = tm.tm_isdst != 0; } /* We have a match. Check whether tm.tm_isdst has the requested value, if any. */ if (isdst_differ (isdst, tm.tm_isdst)) { /* tm.tm_isdst has the wrong value. Look for a neighboring time with the right value, and use its UTC offset. Heuristic: probe the adjacent timestamps in both directions, looking for the desired isdst. If none is found within a reasonable duration bound, assume a one-hour DST difference. This should work for all real time zone histories in the tz database. */ /* +1 if we wanted standard time but got DST, -1 if the reverse. */ int dst_difference = (isdst == 0) - (tm.tm_isdst == 0); /* Distance between probes when looking for a DST boundary. In tzdata2003a, the shortest period of DST is 601200 seconds (e.g., America/Recife starting 2000-10-08 01:00), and the shortest period of non-DST surrounded by DST is 694800 seconds (Africa/Tunis starting 1943-04-17 01:00). Use the minimum of these two values, so we don't miss these short periods when probing. */ int stride = 601200; /* In TZDB 2021e, the longest period of DST (or of non-DST), in which the DST (or adjacent DST) difference is not one hour, is 457243209 seconds: e.g., America/Cambridge_Bay with leap seconds, starting 1965-10-31 00:00 in a switch from double-daylight time (-05) to standard time (-07), and continuing to 1980-04-27 02:00 in a switch from standard time (-07) to daylight time (-06). */ int duration_max = 457243209; /* Search in both directions, so the maximum distance is half the duration; add the stride to avoid off-by-1 problems. */ int delta_bound = duration_max / 2 + stride; int delta, direction; for (delta = stride; delta < delta_bound; delta += stride) for (direction = -1; direction <= 1; direction += 2) { long_int ot; if (! INT_ADD_WRAPV (t, delta * direction, &ot)) { struct tm otm; if (! ranged_convert (convert, &ot, &otm)) return -1; if (! isdst_differ (isdst, otm.tm_isdst)) { /* We found the desired tm_isdst. Extrapolate back to the desired time. */ long_int gt = ot + tm_diff (year, yday, hour, min, sec, &otm); if (mktime_min <= gt && gt <= mktime_max) { if (convert_time (convert, gt, &tm)) { t = gt; goto offset_found; } if (errno != EOVERFLOW) return -1; } } } } /* No unusual DST offset was found nearby. Assume one-hour DST. */ t += 60 * 60 * dst_difference; if (mktime_min <= t && t <= mktime_max && convert_time (convert, t, &tm)) goto offset_found; __set_errno (EOVERFLOW); return -1; } offset_found: /* Set *OFFSET to the low-order bits of T - T0 - NEGATIVE_OFFSET_GUESS. This is just a heuristic to speed up the next mktime call, and correctness is unaffected if integer overflow occurs here. */ INT_SUBTRACT_WRAPV (t, t0, offset); INT_SUBTRACT_WRAPV (*offset, negative_offset_guess, offset); if (LEAP_SECONDS_POSSIBLE && sec_requested != tm.tm_sec) { /* Adjust time to reflect the tm_sec requested, not the normalized value. Also, repair any damage from a false match due to a leap second. */ long_int sec_adjustment = sec == 0 && tm.tm_sec == 60; sec_adjustment -= sec; sec_adjustment += sec_requested; if (INT_ADD_WRAPV (t, sec_adjustment, &t) || ! (mktime_min <= t && t <= mktime_max)) { __set_errno (EOVERFLOW); return -1; } if (! convert_time (convert, t, &tm)) return -1; } *tp = tm; return t; } #endif /* _LIBC || NEED_MKTIME_WORKING || NEED_MKTIME_INTERNAL */ #if defined _LIBC || NEED_MKTIME_WORKING || NEED_MKTIME_WINDOWS /* Convert *TP to a __time64_t value. */ __time64_t __mktime64 (struct tm *tp) { /* POSIX.1 8.1.1 requires that whenever mktime() is called, the time zone names contained in the external variable 'tzname' shall be set as if the tzset() function had been called. */ __tzset (); # if defined _LIBC || NEED_MKTIME_WORKING static mktime_offset_t localtime_offset; return __mktime_internal (tp, __localtime64_r, &localtime_offset); # else # undef mktime return mktime (tp); # endif } #endif /* _LIBC || NEED_MKTIME_WORKING || NEED_MKTIME_WINDOWS */ #if defined _LIBC && __TIMESIZE != 64 libc_hidden_def (__mktime64) time_t mktime (struct tm *tp) { struct tm tm = *tp; __time64_t t = __mktime64 (&tm); if (in_time_t_range (t)) { *tp = tm; return t; } else { __set_errno (EOVERFLOW); return -1; } } #endif weak_alias (mktime, timelocal) libc_hidden_def (mktime) libc_hidden_weak (timelocal) shishi-1.0.3/lib/gl/time.in.h0000644000000000000000000004066014273615123012567 00000000000000/* A more-standard . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* Don't get in the way of glibc when it includes time.h merely to declare a few standard symbols, rather than to declare all the symbols. (However, skip this for MinGW as it treats __need_time_t incompatibly.) Also, Solaris 8 eventually includes itself recursively; if that is happening, just include the system without adding our own declarations. */ #if (((defined __need_time_t || defined __need_clock_t \ || defined __need_timespec) \ && !defined __MINGW32__) \ || defined _@GUARD_PREFIX@_TIME_H) # @INCLUDE_NEXT@ @NEXT_TIME_H@ #else # define _@GUARD_PREFIX@_TIME_H /* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ # if defined __MINGW32__ # include # endif # @INCLUDE_NEXT@ @NEXT_TIME_H@ /* NetBSD 5.0 mis-defines NULL. */ # include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems don't define struct timespec (e.g., AIX 4.1). Or they define it with the wrong member names or define it in (e.g., FreeBSD circa 1997). Stock Mingw prior to 3.0 does not define it, but the pthreads-win32 library defines it in . */ # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ # include # elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ # include # elif @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ # include # else # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_struct_timespec # undef timespec # define timespec rpl_timespec struct timespec { time_t tv_sec; long int tv_nsec; }; # define GNULIB_defined_struct_timespec 1 # endif # ifdef __cplusplus } # endif # endif # endif # if !GNULIB_defined_struct_time_t_must_be_integral /* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html requires time_t to be an integer type, even though C99 permits floating point. We don't know of any implementation that uses floating point, and it is much easier to write code that doesn't have to worry about that corner case, so we force the issue. */ struct __time_t_must_be_integral { unsigned int __floating_time_t_unsupported : (time_t) 1; }; # define GNULIB_defined_struct_time_t_must_be_integral 1 # endif /* Define TIME_UTC, a positive integer constant used for timespec_get(). */ # if ! @TIME_H_DEFINES_TIME_UTC@ # if !GNULIB_defined_TIME_UTC # define TIME_UTC 1 # define GNULIB_defined_TIME_UTC 1 # endif # endif /* Set *TS to the current time, and return BASE. Upon failure, return 0. */ # if @GNULIB_TIMESPEC_GET@ # if ! @HAVE_TIMESPEC_GET@ _GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base)); _GL_CXXALIASWARN (timespec_get); # endif /* Set *TS to the current time resolution, and return BASE. Upon failure, return 0. */ # if @GNULIB_TIMESPEC_GETRES@ # if ! @HAVE_TIMESPEC_GETRES@ _GL_FUNCDECL_SYS (timespec_getres, int, (struct timespec *ts, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base)); _GL_CXXALIASWARN (timespec_getres); # endif /* Sleep for at least RQTP seconds unless interrupted, If interrupted, return -1 and store the remaining time into RMTP. See . */ # if @GNULIB_NANOSLEEP@ # if @REPLACE_NANOSLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define nanosleep rpl_nanosleep # endif _GL_FUNCDECL_RPL (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp)); # else # if ! @HAVE_NANOSLEEP@ _GL_FUNCDECL_SYS (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp)); # endif _GL_CXXALIASWARN (nanosleep); # endif /* Initialize time conversion information. */ # if @GNULIB_TZSET@ # if @REPLACE_TZSET@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset rpl_tzset # endif _GL_FUNCDECL_RPL (tzset, void, (void)); _GL_CXXALIAS_RPL (tzset, void, (void)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset _tzset # endif _GL_CXXALIAS_MDA (tzset, void, (void)); # else _GL_CXXALIAS_SYS (tzset, void, (void)); # endif _GL_CXXALIASWARN (tzset); # elif @GNULIB_MDA_TZSET@ /* On native Windows, map 'tzset' to '_tzset', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::tzset always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset _tzset # endif _GL_CXXALIAS_MDA (tzset, void, (void)); # else _GL_CXXALIAS_SYS (tzset, void, (void)); # endif _GL_CXXALIASWARN (tzset); # endif /* Return the 'time_t' representation of TP and normalize TP. */ # if @GNULIB_MKTIME@ # if @REPLACE_MKTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mktime rpl_mktime # endif _GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); # else _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mktime); # endif # endif /* Convert TIMER to RESULT, assuming local time and UTC respectively. See and . */ # if @GNULIB_TIME_R@ # if @REPLACE_LOCALTIME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef localtime_r # define localtime_r rpl_localtime_r # endif _GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # else # if ! @HAVE_DECL_LOCALTIME_R@ _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # endif # if @HAVE_DECL_LOCALTIME_R@ _GL_CXXALIASWARN (localtime_r); # endif # if @REPLACE_LOCALTIME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gmtime_r # define gmtime_r rpl_gmtime_r # endif _GL_FUNCDECL_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # else # if ! @HAVE_DECL_LOCALTIME_R@ _GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # endif # if @HAVE_DECL_LOCALTIME_R@ _GL_CXXALIASWARN (gmtime_r); # endif # endif /* Convert TIMER to RESULT, assuming local time and UTC respectively. See and . */ # if @GNULIB_LOCALTIME@ || @REPLACE_LOCALTIME@ # if @REPLACE_LOCALTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef localtime # define localtime rpl_localtime # endif _GL_FUNCDECL_RPL (localtime, struct tm *, (time_t const *__timer) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (localtime, struct tm *, (time_t const *__timer)); # else _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (localtime); # endif # endif # if 0 || @REPLACE_GMTIME@ # if @REPLACE_GMTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gmtime # define gmtime rpl_gmtime # endif _GL_FUNCDECL_RPL (gmtime, struct tm *, (time_t const *__timer) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (gmtime, struct tm *, (time_t const *__timer)); # else _GL_CXXALIAS_SYS (gmtime, struct tm *, (time_t const *__timer)); # endif _GL_CXXALIASWARN (gmtime); # endif /* Parse BUF as a timestamp, assuming FORMAT specifies its layout, and store the resulting broken-down time into TM. See . */ # if @GNULIB_STRPTIME@ # if ! @HAVE_STRPTIME@ _GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf, char const *restrict __format, struct tm *restrict __tm) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, char const *restrict __format, struct tm *restrict __tm)); _GL_CXXALIASWARN (strptime); # endif /* Convert *TP to a date and time string. See . */ # if @GNULIB_CTIME@ # if @REPLACE_CTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define ctime rpl_ctime # endif _GL_FUNCDECL_RPL (ctime, char *, (time_t const *__tp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ctime, char *, (time_t const *__tp)); # else _GL_CXXALIAS_SYS (ctime, char *, (time_t const *__tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (ctime); # endif # endif /* Convert *TP to a date and time string. See . */ # if @GNULIB_STRFTIME@ # if @REPLACE_STRFTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strftime rpl_strftime # endif _GL_FUNCDECL_RPL (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp) _GL_ARG_NONNULL ((1, 3, 4))); _GL_CXXALIAS_RPL (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp)); # else _GL_CXXALIAS_SYS (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strftime); # endif # endif # if defined _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@ /* Functions that use a first-class time zone data type, instead of relying on an implicit global time zone. Inspired by NetBSD. */ /* Represents a time zone. (timezone_t) NULL stands for UTC. */ typedef struct tm_zone *timezone_t; /* tzalloc (name) Returns a time zone object for the given time zone NAME. This object represents the time zone that other functions would use it the TZ environment variable was set to NAME. If NAME is NULL, the result represents the time zone that other functions would use it the TZ environment variable was unset. May return NULL if NAME is invalid (this is platform dependent) or upon memory allocation failure. */ _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); _GL_CXXALIAS_SYS (tzalloc, timezone_t, (char const *__name)); /* tzfree (tz) Frees a time zone object. The argument must have been returned by tzalloc(). */ _GL_FUNCDECL_SYS (tzfree, void, (timezone_t __tz)); _GL_CXXALIAS_SYS (tzfree, void, (timezone_t __tz)); /* localtime_rz (tz, &t, &result) Converts an absolute time T to a broken-down time RESULT, assuming the time zone TZ. This function is like 'localtime_r', but relies on the argument TZ instead of an implicit global time zone. */ _GL_FUNCDECL_SYS (localtime_rz, struct tm *, (timezone_t __tz, time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_SYS (localtime_rz, struct tm *, (timezone_t __tz, time_t const *restrict __timer, struct tm *restrict __result)); /* mktime_z (tz, &tm) Normalizes the broken-down time TM and converts it to an absolute time, assuming the time zone TZ. Returns the absolute time. This function is like 'mktime', but relies on the argument TZ instead of an implicit global time zone. */ _GL_FUNCDECL_SYS (mktime_z, time_t, (timezone_t __tz, struct tm *restrict __tm) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_SYS (mktime_z, time_t, (timezone_t __tz, struct tm *restrict __tm)); /* Time zone abbreviation strings (returned by 'localtime_rz' or 'mktime_z' in the 'tm_zone' member of 'struct tm') are valid as long as - the 'struct tm' argument is not destroyed or overwritten, and - the 'timezone_t' argument is not freed through tzfree(). */ # endif /* Convert TM to a time_t value, assuming UTC. */ # if @GNULIB_TIMEGM@ # if @REPLACE_TIMEGM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef timegm # define timegm rpl_timegm # endif _GL_FUNCDECL_RPL (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); # else # if ! @HAVE_TIMEGM@ _GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); # endif _GL_CXXALIASWARN (timegm); # endif /* Encourage applications to avoid unsafe functions that can overrun buffers when given outlandish struct tm values. Portable applications should use strftime (or even sprintf) instead. */ # if defined GNULIB_POSIXCHECK # undef asctime _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef asctime_r _GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef ctime _GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef ctime_r _GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif #endif shishi-1.0.3/lib/gl/alloca.in.h0000644000000000000000000000467414273615121013067 00000000000000/* Memory allocation on the stack. Copyright (C) 1995, 1999, 2001-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H means there is a real alloca function. */ #ifndef _GL_ALLOCA_H #define _GL_ALLOCA_H /* alloca (N) returns a pointer to N bytes of memory allocated on the stack, which will last until the function returns. Use of alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns, - for huge N (say, N >= 65536) - you never know how large (or small) the stack is, and when the stack cannot fulfill the memory allocation request, the program just crashes. */ #ifndef alloca /* Some version of mingw have an that causes trouble when included after 'alloca' gets defined as a macro. As a workaround, include this first and define 'alloca' as a macro afterwards if needed. */ # if defined __GNUC__ && (defined _WIN32 && ! defined __CYGWIN__) && @HAVE_ALLOCA_H@ # include_next # endif #endif #ifndef alloca # if defined __GNUC__ || (__clang_major__ >= 4) # define alloca __builtin_alloca # elif defined _AIX # define alloca __alloca # elif defined _MSC_VER # include # define alloca _alloca # elif defined __DECC && defined __VMS # define alloca __ALLOCA # elif defined __TANDEM && defined _TNS_E_TARGET # ifdef __cplusplus extern "C" # endif void *_alloca (unsigned short); # pragma intrinsic (_alloca) # define alloca _alloca # elif defined __MVS__ # include # else # include # ifdef __cplusplus extern "C" # endif void *alloca (size_t); # endif #endif #endif /* _GL_ALLOCA_H */ shishi-1.0.3/lib/gl/fseeko.c0000644000000000000000000001406014273615122012465 00000000000000/* An fseeko() function that, together with fflush(), is POSIX compliant. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Get off_t, lseek, _POSIX_VERSION. */ #include #include "stdio-impl.h" int fseeko (FILE *fp, off_t offset, int whence) #undef fseeko #if !HAVE_FSEEKO # undef fseek # define fseeko fseek #endif #if _GL_WINDOWS_64_BIT_OFF_T # undef fseeko # if HAVE__FSEEKI64 && HAVE_DECL__FSEEKI64 /* msvc, mingw since msvcrt8.0, mingw64 */ # define fseeko _fseeki64 # else /* mingw before msvcrt8.0 */ # define fseeko fseeko64 # endif #endif { #if LSEEK_PIPE_BROKEN /* mingw gives bogus answers rather than failure on non-seekable files. */ if (lseek (fileno (fp), 0, SEEK_CUR) == -1) return EOF; #endif /* These tests are based on fpurge.c. */ #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ if (fp->_IO_read_end == fp->_IO_read_ptr && fp->_IO_write_ptr == fp->_IO_write_base && fp->_IO_save_base == NULL) #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ # if defined __SL64 && defined __SCLE /* Cygwin */ if ((fp->_flags & __SL64) == 0) { /* Cygwin 1.5.0 through 1.5.24 failed to open stdin in 64-bit mode; but has an fseeko that requires 64-bit mode. */ FILE *tmp = fopen ("/dev/null", "r"); if (!tmp) return -1; fp->_flags |= __SL64; fp->_seek64 = tmp->_seek64; fclose (tmp); } # endif if (fp_->_p == fp_->_bf._base && fp_->_r == 0 && fp_->_w == ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */ ? fp_->_bf._size : 0) && fp_ub._base == NULL) #elif defined __EMX__ /* emx+gcc */ if (fp->_ptr == fp->_buffer && fp->_rcount == 0 && fp->_wcount == 0 && fp->_ungetc_count == 0) #elif defined __minix /* Minix */ if (fp_->_ptr == fp_->_buf && (fp_->_ptr == NULL || fp_->_count == 0)) #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ if (fp_->_ptr == fp_->_base && (fp_->_ptr == NULL || fp_->_cnt == 0)) #elif defined __UCLIBC__ /* uClibc */ if (((fp->__modeflags & __FLAG_WRITING) == 0 || fp->__bufpos == fp->__bufstart) && ((fp->__modeflags & (__FLAG_READONLY | __FLAG_READING)) == 0 || fp->__bufpos == fp->__bufread)) #elif defined __QNX__ /* QNX */ if ((fp->_Mode & 0x2000 /* _MWRITE */ ? fp->_Next == fp->_Buf : fp->_Next == fp->_Rend) && fp->_Rback == fp->_Back + sizeof (fp->_Back) && fp->_Rsave == NULL) #elif defined __MINT__ /* Atari FreeMiNT */ if (fp->__bufp == fp->__buffer && fp->__get_limit == fp->__bufp && fp->__put_limit == fp->__bufp && !fp->__pushed_back) #elif defined EPLAN9 /* Plan9 */ if (fp->rp == fp->buf && fp->wp == fp->buf) #elif FUNC_FFLUSH_STDIN < 0 && 200809 <= _POSIX_VERSION /* Cross-compiling to some other system advertising conformance to POSIX.1-2008 or later. Assume fseeko and fflush work as advertised. If this assumption is incorrect, please report the bug to bug-gnulib. */ if (0) #else #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib." #endif { /* We get here when an fflush() call immediately preceded this one (or if ftell() has created buffers but no I/O has occurred on a newly-opened stream). We know there are no buffers. */ off_t pos = lseek (fileno (fp), offset, whence); if (pos == -1) { #if defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ fp_->_flags &= ~__SOFF; #endif return -1; } #if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ fp->_flags &= ~_IO_EOF_SEEN; fp->_offset = pos; #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ # if defined __CYGWIN__ || (defined __NetBSD__ && __NetBSD_Version__ >= 600000000) || defined __minix /* fp_->_offset is typed as an integer. */ fp_->_offset = pos; # else /* fp_->_offset is an fpos_t. */ { /* Use a union, since on NetBSD, the compilation flags determine whether fpos_t is typedef'd to off_t or a struct containing a single off_t member. */ union { fpos_t f; off_t o; } u; u.o = pos; fp_->_offset = u.f; } # endif fp_->_flags |= __SOFF; fp_->_flags &= ~__SEOF; #elif defined __EMX__ /* emx+gcc */ fp->_flags &= ~_IOEOF; #elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_flag &= ~_IOEOF; #elif defined __MINT__ /* Atari FreeMiNT */ fp->__offset = pos; fp->__eof = 0; #endif return 0; } return fseeko (fp, offset, whence); } shishi-1.0.3/lib/gl/readlink.c0000644000000000000000000000622314273615123013005 00000000000000/* Read the contents of a symbolic link. Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #include #if !HAVE_READLINK /* readlink() substitute for systems that don't have a readlink() function, such as DJGPP 2.03 and mingw32. */ ssize_t readlink (char const *file, _GL_UNUSED char *buf, _GL_UNUSED size_t bufsize) { struct stat statbuf; /* In general we should use lstat() here, not stat(). But on platforms without symbolic links, lstat() - if it exists - would be equivalent to stat(), therefore we can use stat(). This saves us a configure check. */ if (stat (file, &statbuf) >= 0) errno = EINVAL; return -1; } #else /* HAVE_READLINK */ # undef readlink /* readlink() wrapper that uses correct types, for systems like cygwin 1.5.x where readlink returns int, and which rejects trailing slash, for Solaris 9. */ ssize_t rpl_readlink (char const *file, char *buf, size_t bufsize) { # if READLINK_TRAILING_SLASH_BUG size_t file_len = strlen (file); if (file_len && file[file_len - 1] == '/') { /* Even if FILE without the slash is a symlink to a directory, both lstat() and stat() must resolve the trailing slash to the directory rather than the symlink. We can therefore safely use stat() to distinguish between EINVAL and ENOTDIR/ENOENT, avoiding extra overhead of rpl_lstat(). */ struct stat st; if (stat (file, &st) == 0 || errno == EOVERFLOW) errno = EINVAL; return -1; } # endif /* READLINK_TRAILING_SLASH_BUG */ ssize_t r = readlink (file, buf, bufsize); # if READLINK_TRUNCATE_BUG if (r < 0 && errno == ERANGE) { /* Try again with a bigger buffer. This is just for test cases; real code invariably discards short reads. */ char stackbuf[4032]; r = readlink (file, stackbuf, sizeof stackbuf); if (r < 0) { if (errno == ERANGE) { /* Clear the buffer, which is good enough for real code. Thankfully, no test cases try short reads of enormous symlinks and what would be the point anyway? */ r = bufsize; memset (buf, 0, r); } } else { if (bufsize < r) r = bufsize; memcpy (buf, stackbuf, r); } } # endif return r; } #endif /* HAVE_READLINK */ shishi-1.0.3/lib/gl/vasprintf.c0000644000000000000000000000253414273615123013231 00000000000000/* Formatted output to strings. Copyright (C) 1999, 2002, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #ifdef IN_LIBASPRINTF # include "vasprintf.h" #else # include #endif #include #include #include #include "vasnprintf.h" int vasprintf (char **resultp, const char *format, va_list args) { size_t length; char *result = vasnprintf (NULL, &length, format, args); if (result == NULL) return -1; if (length > INT_MAX) { free (result); errno = EOVERFLOW; return -1; } *resultp = result; /* Return the number of resulting bytes, excluding the trailing NUL. */ return length; } shishi-1.0.3/lib/gl/strndup.c0000644000000000000000000000206614273615123012714 00000000000000/* A replacement function, for systems that lack strndup. Copyright (C) 1996-1998, 2001-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #include #include char * strndup (char const *s, size_t n) { size_t len = strnlen (s, n); char *new = malloc (len + 1); if (new == NULL) return NULL; new[len] = '\0'; return memcpy (new, s, len); } shishi-1.0.3/lib/gl/itold.c0000644000000000000000000000203214273615122012320 00000000000000/* Replacement for 'int' to 'long double' conversion routine. Copyright (C) 2011-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include void _Qp_itoq (long double *result, int a) { /* Convert from 'int' to 'double', then from 'double' to 'long double'. */ *result = (double) a; } shishi-1.0.3/lib/gl/fpurge.c0000644000000000000000000001213014273615122012475 00000000000000/* Flushing buffers of a FILE stream. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if HAVE___FPURGE /* glibc >= 2.2, Haiku, Solaris >= 7, UnixWare >= 7.1.4.MP4, Cygwin >= 1.7.10, Android API >= 23, musl libc */ # if HAVE_STDIO_EXT_H # include # endif #endif #include #include "stdio-impl.h" int fpurge (FILE *fp) { #if HAVE___FPURGE /* glibc >= 2.2, Haiku, Solaris >= 7, UnixWare >= 7.1.4.MP4, Cygwin >= 1.7.10, Android API >= 23, musl libc */ __fpurge (fp); /* The __fpurge function does not have a return value. */ return 0; #elif HAVE_FPURGE /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin >= 1.7 */ /* Call the system's fpurge function. */ # undef fpurge # if !HAVE_DECL_FPURGE extern int fpurge (FILE *); # endif int result = fpurge (fp); # if defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ if (result == 0) /* Correct the invariants that fpurge broke. on BSD systems says: "The following always hold: if _flags & __SRD, _w is 0." If this invariant is not fulfilled and the stream is read-write but currently reading, subsequent putc or fputc calls will write directly into the buffer, although they shouldn't be allowed to. */ if ((fp_->_flags & __SRD) != 0) fp_->_w = 0; # endif return result; #else /* Most systems provide FILE as a struct and the necessary bitmask in , because they need it for implementing getc() and putc() as fast macros. */ # if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ fp->_IO_read_end = fp->_IO_read_ptr; fp->_IO_write_ptr = fp->_IO_write_base; /* Avoid memory leak when there is an active ungetc buffer. */ if (fp->_IO_save_base != NULL) { free (fp->_IO_save_base); fp->_IO_save_base = NULL; } return 0; # elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */ fp_->_p = fp_->_bf._base; fp_->_r = 0; fp_->_w = ((fp_->_flags & (__SLBF | __SNBF | __SRD)) == 0 /* fully buffered and not currently reading? */ ? fp_->_bf._size : 0); /* Avoid memory leak when there is an active ungetc buffer. */ if (fp_ub._base != NULL) { if (fp_ub._base != fp_->_ubuf) free (fp_ub._base); fp_ub._base = NULL; } return 0; # elif defined __EMX__ /* emx+gcc */ fp->_ptr = fp->_buffer; fp->_rcount = 0; fp->_wcount = 0; fp->_ungetc_count = 0; return 0; # elif defined __minix /* Minix */ fp->_ptr = fp->_buf; if (fp->_ptr != NULL) fp->_count = 0; return 0; # elif defined _IOERR /* AIX, HP-UX, IRIX, OSF/1, Solaris, OpenServer, UnixWare, mingw, MSVC, NonStop Kernel, OpenVMS */ fp_->_ptr = fp_->_base; if (fp_->_ptr != NULL) fp_->_cnt = 0; return 0; # elif defined __UCLIBC__ /* uClibc */ # ifdef __STDIO_BUFFERS if (fp->__modeflags & __FLAG_WRITING) fp->__bufpos = fp->__bufstart; else if (fp->__modeflags & (__FLAG_READONLY | __FLAG_READING)) fp->__bufpos = fp->__bufread; # endif return 0; # elif defined __QNX__ /* QNX */ fp->_Rback = fp->_Back + sizeof (fp->_Back); fp->_Rsave = NULL; if (fp->_Mode & 0x2000 /* _MWRITE */) /* fp->_Buf <= fp->_Next <= fp->_Wend */ fp->_Next = fp->_Buf; else /* fp->_Buf <= fp->_Next <= fp->_Rend */ fp->_Rend = fp->_Next; return 0; # elif defined __MINT__ /* Atari FreeMiNT */ if (fp->__pushed_back) { fp->__bufp = fp->__pushback_bufp; fp->__pushed_back = 0; } /* Preserve the current file position. */ if (fp->__target != -1) fp->__target += fp->__bufp - fp->__buffer; fp->__bufp = fp->__buffer; /* Nothing in the buffer, next getc is nontrivial. */ fp->__get_limit = fp->__bufp; /* Nothing in the buffer, next putc is nontrivial. */ fp->__put_limit = fp->__buffer; return 0; # elif defined EPLAN9 /* Plan9 */ fp->rp = fp->wp = fp->lp = fp->buf; return 0; # else # error "Please port gnulib fpurge.c to your platform! Look at the definitions of fflush, setvbuf and ungetc on your system, then report this to bug-gnulib." # endif #endif } shishi-1.0.3/lib/gl/sys-limits.h0000644000000000000000000000322714273615123013337 00000000000000/* System call limits Copyright 2018-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_SYS_LIMITS_H #define _GL_SYS_LIMITS_H #include /* Maximum number of bytes to read or write in a single system call. This can be useful for system calls like sendfile on GNU/Linux, which do not handle more than MAX_RW_COUNT bytes correctly. The Linux kernel MAX_RW_COUNT is at least INT_MAX >> 20 << 20, where the 20 comes from the Hexagon port with 1 MiB pages; use that as an approximation, as the exact value may not be available to us. Using this also works around a serious Linux bug before 2.6.16; see . Using this also works around a Tru64 5.1 bug, where attempting to read INT_MAX bytes fails with errno == EINVAL. See . Using this is likely to work around similar bugs in other operating systems. */ enum { SYS_BUFSIZE_MAX = INT_MAX >> 20 << 20 }; #endif shishi-1.0.3/lib/gl/getpass.h0000644000000000000000000000155414273615122012670 00000000000000/* Read a password from /dec/tty. Copyright (C) 2004-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Obsolete; consider using unistd.h instead. */ /* Get getpass declaration, if available. */ #include shishi-1.0.3/lib/gl/errno.in.h0000644000000000000000000001644714273615121012762 00000000000000/* A POSIX-like . Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_ERRNO_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_ERRNO_H@ #ifndef _@GUARD_PREFIX@_ERRNO_H #define _@GUARD_PREFIX@_ERRNO_H /* On native Windows platforms, many macros are not defined. */ # if defined _WIN32 && ! defined __CYGWIN__ /* These are the same values as defined by MSVC 10, for interoperability. */ # ifndef ENOMSG # define ENOMSG 122 # define GNULIB_defined_ENOMSG 1 # endif # ifndef EIDRM # define EIDRM 111 # define GNULIB_defined_EIDRM 1 # endif # ifndef ENOLINK # define ENOLINK 121 # define GNULIB_defined_ENOLINK 1 # endif # ifndef EPROTO # define EPROTO 134 # define GNULIB_defined_EPROTO 1 # endif # ifndef EBADMSG # define EBADMSG 104 # define GNULIB_defined_EBADMSG 1 # endif # ifndef EOVERFLOW # define EOVERFLOW 132 # define GNULIB_defined_EOVERFLOW 1 # endif # ifndef ENOTSUP # define ENOTSUP 129 # define GNULIB_defined_ENOTSUP 1 # endif # ifndef ENETRESET # define ENETRESET 117 # define GNULIB_defined_ENETRESET 1 # endif # ifndef ECONNABORTED # define ECONNABORTED 106 # define GNULIB_defined_ECONNABORTED 1 # endif # ifndef ECANCELED # define ECANCELED 105 # define GNULIB_defined_ECANCELED 1 # endif # ifndef EOWNERDEAD # define EOWNERDEAD 133 # define GNULIB_defined_EOWNERDEAD 1 # endif # ifndef ENOTRECOVERABLE # define ENOTRECOVERABLE 127 # define GNULIB_defined_ENOTRECOVERABLE 1 # endif # ifndef EINPROGRESS # define EINPROGRESS 112 # define EALREADY 103 # define ENOTSOCK 128 # define EDESTADDRREQ 109 # define EMSGSIZE 115 # define EPROTOTYPE 136 # define ENOPROTOOPT 123 # define EPROTONOSUPPORT 135 # define EOPNOTSUPP 130 # define EAFNOSUPPORT 102 # define EADDRINUSE 100 # define EADDRNOTAVAIL 101 # define ENETDOWN 116 # define ENETUNREACH 118 # define ECONNRESET 108 # define ENOBUFS 119 # define EISCONN 113 # define ENOTCONN 126 # define ETIMEDOUT 138 # define ECONNREFUSED 107 # define ELOOP 114 # define EHOSTUNREACH 110 # define EWOULDBLOCK 140 # define GNULIB_defined_ESOCK 1 # endif # ifndef ETXTBSY # define ETXTBSY 139 # define ENODATA 120 /* not required by POSIX */ # define ENOSR 124 /* not required by POSIX */ # define ENOSTR 125 /* not required by POSIX */ # define ETIME 137 /* not required by POSIX */ # define EOTHER 131 /* not required by POSIX */ # define GNULIB_defined_ESTREAMS 1 # endif /* These are intentionally the same values as the WSA* error numbers, defined in . */ # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ # define EPFNOSUPPORT 10046 /* not required by POSIX */ # define ESHUTDOWN 10058 /* not required by POSIX */ # define ETOOMANYREFS 10059 /* not required by POSIX */ # define EHOSTDOWN 10064 /* not required by POSIX */ # define EPROCLIM 10067 /* not required by POSIX */ # define EUSERS 10068 /* not required by POSIX */ # define EDQUOT 10069 # define ESTALE 10070 # define EREMOTE 10071 /* not required by POSIX */ # define GNULIB_defined_EWINSOCK 1 # endif /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ # if @EMULTIHOP_HIDDEN@ # define EMULTIHOP @EMULTIHOP_VALUE@ # define GNULIB_defined_EMULTIHOP 1 # endif # if @ENOLINK_HIDDEN@ # define ENOLINK @ENOLINK_VALUE@ # define GNULIB_defined_ENOLINK 1 # endif # if @EOVERFLOW_HIDDEN@ # define EOVERFLOW @EOVERFLOW_VALUE@ # define GNULIB_defined_EOVERFLOW 1 # endif /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. Likewise, on NonStop Kernel, EDQUOT is not defined. Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. Note: When one of these systems defines some of these macros some day, binaries will have to be recompiled so that they recognizes the new errno values from the system. */ # ifndef ENOMSG # define ENOMSG 2000 # define GNULIB_defined_ENOMSG 1 # endif # ifndef EIDRM # define EIDRM 2001 # define GNULIB_defined_EIDRM 1 # endif # ifndef ENOLINK # define ENOLINK 2002 # define GNULIB_defined_ENOLINK 1 # endif # ifndef EPROTO # define EPROTO 2003 # define GNULIB_defined_EPROTO 1 # endif # ifndef EMULTIHOP # define EMULTIHOP 2004 # define GNULIB_defined_EMULTIHOP 1 # endif # ifndef EBADMSG # define EBADMSG 2005 # define GNULIB_defined_EBADMSG 1 # endif # ifndef EOVERFLOW # define EOVERFLOW 2006 # define GNULIB_defined_EOVERFLOW 1 # endif # ifndef ENOTSUP # define ENOTSUP 2007 # define GNULIB_defined_ENOTSUP 1 # endif # ifndef ENETRESET # define ENETRESET 2011 # define GNULIB_defined_ENETRESET 1 # endif # ifndef ECONNABORTED # define ECONNABORTED 2012 # define GNULIB_defined_ECONNABORTED 1 # endif # ifndef ESTALE # define ESTALE 2009 # define GNULIB_defined_ESTALE 1 # endif # ifndef EDQUOT # define EDQUOT 2010 # define GNULIB_defined_EDQUOT 1 # endif # ifndef ECANCELED # define ECANCELED 2008 # define GNULIB_defined_ECANCELED 1 # endif /* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not defined. */ # ifndef EOWNERDEAD # if defined __sun /* Use the same values as defined for Solaris >= 8, for interoperability. */ # define EOWNERDEAD 58 # define ENOTRECOVERABLE 59 # elif defined _WIN32 && ! defined __CYGWIN__ /* We have a conflict here: pthreads-win32 defines these values differently than MSVC 10. It's hairy to decide which one to use. */ # if defined __MINGW32__ && !defined USE_WINDOWS_THREADS /* Use the same values as defined by pthreads-win32, for interoperability. */ # define EOWNERDEAD 43 # define ENOTRECOVERABLE 44 # else /* Use the same values as defined by MSVC 10, for interoperability. */ # define EOWNERDEAD 133 # define ENOTRECOVERABLE 127 # endif # else # define EOWNERDEAD 2013 # define ENOTRECOVERABLE 2014 # endif # define GNULIB_defined_EOWNERDEAD 1 # define GNULIB_defined_ENOTRECOVERABLE 1 # endif # ifndef EILSEQ # define EILSEQ 2015 # define GNULIB_defined_EILSEQ 1 # endif #endif /* _@GUARD_PREFIX@_ERRNO_H */ #endif /* _@GUARD_PREFIX@_ERRNO_H */ shishi-1.0.3/lib/gl/base64.h0000644000000000000000000000426214273615121012304 00000000000000/* base64.h -- Encode binary data using printable characters. Copyright (C) 2004-2006, 2009-2022 Free Software Foundation, Inc. Written by Simon Josefsson. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef BASE64_H # define BASE64_H /* Get idx_t. */ # include /* Get bool. */ # include # ifdef __cplusplus extern "C" { # endif /* This uses that the expression (n+(k-1))/k means the smallest integer >= n/k, i.e., the ceiling of n/k. */ # define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4) struct base64_decode_context { int i; char buf[4]; }; extern bool isbase64 (char ch) _GL_ATTRIBUTE_CONST; extern void base64_encode (const char *restrict in, idx_t inlen, char *restrict out, idx_t outlen); extern idx_t base64_encode_alloc (const char *in, idx_t inlen, char **out); extern void base64_decode_ctx_init (struct base64_decode_context *ctx); extern bool base64_decode_ctx (struct base64_decode_context *ctx, const char *restrict in, idx_t inlen, char *restrict out, idx_t *outlen); extern bool base64_decode_alloc_ctx (struct base64_decode_context *ctx, const char *in, idx_t inlen, char **out, idx_t *outlen); #define base64_decode(in, inlen, out, outlen) \ base64_decode_ctx (NULL, in, inlen, out, outlen) #define base64_decode_alloc(in, inlen, out, outlen) \ base64_decode_alloc_ctx (NULL, in, inlen, out, outlen) # ifdef __cplusplus } # endif #endif /* BASE64_H */ shishi-1.0.3/lib/gl/time-internal.h0000644000000000000000000000362714273615123013776 00000000000000/* Time internal interface Copyright 2015-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ /* A time zone rule. */ struct tm_zone { /* More abbreviations, should they be needed. Their TZ_IS_SET members are zero. */ struct tm_zone *next; #if HAVE_TZNAME && !HAVE_STRUCT_TM_TM_ZONE /* Copies of recent strings taken from tzname[0] and tzname[1]. The copies are in ABBRS, so that they survive tzset. Null if unknown. */ char *tzname_copy[2]; #endif /* If nonzero, the rule represents the TZ environment variable set to the first "abbreviation" (this may be the empty string). Otherwise, it represents an unset TZ. */ char tz_is_set; /* A sequence of null-terminated strings packed next to each other. The strings are followed by an extra null byte. If TZ_IS_SET, there must be at least one string and the first string (which is actually a TZ environment value) may be empty. Otherwise all strings must be nonempty. Abbreviations are stored here because otherwise the values of tm_zone and/or tzname would be dead after changing TZ and calling tzset. Abbreviations never move once allocated, and are live until tzfree is called. */ char abbrs[FLEXIBLE_ARRAY_MEMBER]; }; shishi-1.0.3/lib/gl/intprops.h0000644000000000000000000007101014273615122013072 00000000000000/* intprops.h -- properties of integer types Copyright (C) 2001-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_INTPROPS_H #define _GL_INTPROPS_H #include /* Return a value with the common real type of E and V and the value of V. Do not evaluate E. */ #define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v)) /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see . */ #define _GL_INT_NEGATE_CONVERT(e, v) ((1 ? 0 : (e)) - (v)) /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ #define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if the real type T is signed. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* Return 1 if the real expression E, after promotion, has a signed or floating type. Do not evaluate E. */ #define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) /* Minimum and maximum values for integer types and expressions. */ /* The width in bits of the integer type or expression T. Do not evaluate T. T must not be a bit-field expression. Padding bits are not supported; this is checked at compile-time below. */ #define TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT) /* The maximum and minimum values for the integer type T. */ #define TYPE_MINIMUM(t) ((t) ~ TYPE_MAXIMUM (t)) #define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ ? (t) -1 \ : ((((t) 1 << (TYPE_WIDTH (t) - 2)) - 1) * 2 + 1))) /* The maximum and minimum values for the type of the expression E, after integer promotion. E is not evaluated. */ #define _GL_INT_MINIMUM(e) \ (EXPR_SIGNED (e) \ ? ~ _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_CONVERT (e, 0)) #define _GL_INT_MAXIMUM(e) \ (EXPR_SIGNED (e) \ ? _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_NEGATE_CONVERT (e, 1)) #define _GL_SIGNED_INT_MAXIMUM(e) \ (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1) /* Work around OpenVMS incompatibility with C99. */ #if !defined LLONG_MAX && defined __INT64_MAX # define LLONG_MAX __INT64_MAX # define LLONG_MIN __INT64_MIN #endif /* This include file assumes that signed types are two's complement without padding bits; the above macros have undefined behavior otherwise. If this is a problem for you, please let us know how to fix it for your host. This assumption is tested by the intprops-tests module. */ /* Does the __typeof__ keyword work? This could be done by 'configure', but for now it's easier to do it by hand. */ #if (2 <= __GNUC__ \ || (4 <= __clang_major__) \ || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \ || (0x5110 <= __SUNPRO_C && !__STDC__)) # define _GL_HAVE___TYPEOF__ 1 #else # define _GL_HAVE___TYPEOF__ 0 #endif /* Return 1 if the integer type or expression T might be signed. Return 0 if it is definitely unsigned. T must not be a bit-field expression. This macro does not evaluate its argument, and expands to an integer constant expression. */ #if _GL_HAVE___TYPEOF__ # define _GL_SIGNED_TYPE_OR_EXPR(t) TYPE_SIGNED (__typeof__ (t)) #else # define _GL_SIGNED_TYPE_OR_EXPR(t) 1 #endif /* Bound on length of the string representing an unsigned integer value representable in B bits. log10 (2.0) < 146/485. The smallest value of B where this bound is not tight is 2621. */ #define INT_BITS_STRLEN_BOUND(b) (((b) * 146 + 484) / 485) /* Bound on length of the string representing an integer type or expression T. T must not be a bit-field expression. Subtract 1 for the sign bit if T is signed, and then add 1 more for a minus sign if needed. Because _GL_SIGNED_TYPE_OR_EXPR sometimes returns 1 when its argument is unsigned, this macro may overestimate the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. */ #define INT_STRLEN_BOUND(t) \ (INT_BITS_STRLEN_BOUND (TYPE_WIDTH (t) - _GL_SIGNED_TYPE_OR_EXPR (t)) \ + _GL_SIGNED_TYPE_OR_EXPR (t)) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. T must not be a bit-field expression. */ #define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) /* Range overflow checks. The INT__RANGE_OVERFLOW macros return 1 if the corresponding C operators might not yield numerically correct answers due to arithmetic overflow. They do not rely on undefined or implementation-defined behavior. Their implementations are simple and straightforward, but they are harder to use and may be less efficient than the INT__WRAPV, INT__OK, and INT__OVERFLOW macros described below. Example usage: long int i = ...; long int j = ...; if (INT_MULTIPLY_RANGE_OVERFLOW (i, j, LONG_MIN, LONG_MAX)) printf ("multiply would overflow"); else printf ("product is %ld", i * j); Restrictions on *_RANGE_OVERFLOW macros: These macros do not check for all possible numerical problems or undefined or unspecified behavior: they do not check for division by zero, for bad shift counts, or for shifting negative numbers. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. The arithmetic arguments (including the MIN and MAX arguments) must be of the same integer type after the usual arithmetic conversions, and the type must have minimum value MIN and maximum MAX. Unsigned types should use a zero MIN of the proper type. Because all arguments are subject to integer promotions, these macros typically do not work on types narrower than 'int'. These macros are tuned for constant MIN and MAX. For commutative operations such as A + B, they are also tuned for constant B. */ /* Return 1 if A + B would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? (a) < (min) - (b) \ : (max) - (b) < (a)) /* Return 1 if A - B would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? (max) + (b) < (a) \ : (a) < (min) + (b)) /* Return 1 if - A would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ ((min) < 0 \ ? (a) < - (max) \ : 0 < (a)) /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Avoid && and || as they tickle bugs in Sun C 5.11 2010/08/13 and other compilers; see . */ #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? ((a) < 0 \ ? (a) < (max) / (b) \ : (b) == -1 \ ? 0 \ : (min) / (b) < (a)) \ : (b) == 0 \ ? 0 \ : ((a) < 0 \ ? (a) < (min) / (b) \ : (max) / (b) < (a))) /* Return 1 if A / B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Do not check for division by zero. */ #define INT_DIVIDE_RANGE_OVERFLOW(a, b, min, max) \ ((min) < 0 && (b) == -1 && (a) < - (max)) /* Return 1 if A % B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Do not check for division by zero. Mathematically, % should never overflow, but on x86-like hosts INT_MIN % -1 traps, and the C standard permits this, so treat this as an overflow too. */ #define INT_REMAINDER_RANGE_OVERFLOW(a, b, min, max) \ INT_DIVIDE_RANGE_OVERFLOW (a, b, min, max) /* Return 1 if A << B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Here, MIN and MAX are for A only, and B need not be of the same type as the other arguments. The C standard says that behavior is undefined for shifts unless 0 <= B < wordwidth, and that when A is negative then A << B has undefined behavior and A >> B has implementation-defined behavior, but do not check these other restrictions. */ #define INT_LEFT_SHIFT_RANGE_OVERFLOW(a, b, min, max) \ ((a) < 0 \ ? (a) < (min) >> (b) \ : (max) >> (b) < (a)) /* True if __builtin_add_overflow (A, B, P) and __builtin_sub_overflow (A, B, P) work when P is non-null. */ #ifdef __EDG__ /* EDG-based compilers like nvc 22.1 cannot add 64-bit signed to unsigned . */ # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 #elif defined __has_builtin # define _GL_HAS_BUILTIN_ADD_OVERFLOW __has_builtin (__builtin_add_overflow) /* __builtin_{add,sub}_overflow exists but is not reliable in GCC 5.x and 6.x, see . */ #elif 7 <= __GNUC__ # define _GL_HAS_BUILTIN_ADD_OVERFLOW 1 #else # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 #endif /* True if __builtin_mul_overflow (A, B, P) works when P is non-null. */ #if defined __clang_major__ && __clang_major__ < 14 /* Work around Clang bug . */ # define _GL_HAS_BUILTIN_MUL_OVERFLOW 0 #else # define _GL_HAS_BUILTIN_MUL_OVERFLOW _GL_HAS_BUILTIN_ADD_OVERFLOW #endif /* True if __builtin_add_overflow_p (A, B, C) works, and similarly for __builtin_sub_overflow_p and __builtin_mul_overflow_p. */ #ifdef __EDG__ /* In EDG-based compilers like ICC 2021.3 and earlier, __builtin_add_overflow_p etc. are not treated as integral constant expressions even when all arguments are. */ # define _GL_HAS_BUILTIN_OVERFLOW_P 0 #elif defined __has_builtin # define _GL_HAS_BUILTIN_OVERFLOW_P __has_builtin (__builtin_mul_overflow_p) #else # define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__) #endif /* The _GL*_OVERFLOW macros have the same restrictions as the *_RANGE_OVERFLOW macros, except that they do not assume that operands (e.g., A and B) have the same type as MIN and MAX. Instead, they assume that the result (e.g., A + B) has that type. */ #if _GL_HAS_BUILTIN_OVERFLOW_P # define _GL_ADD_OVERFLOW(a, b, min, max) \ __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0) # define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ __builtin_sub_overflow_p (a, b, (__typeof__ ((a) - (b))) 0) # define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ __builtin_mul_overflow_p (a, b, (__typeof__ ((a) * (b))) 0) #else # define _GL_ADD_OVERFLOW(a, b, min, max) \ ((min) < 0 ? INT_ADD_RANGE_OVERFLOW (a, b, min, max) \ : (a) < 0 ? (b) <= (a) + (b) \ : (b) < 0 ? (a) <= (a) + (b) \ : (a) + (b) < (b)) # define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ ((min) < 0 ? INT_SUBTRACT_RANGE_OVERFLOW (a, b, min, max) \ : (a) < 0 ? 1 \ : (b) < 0 ? (a) - (b) <= (a) \ : (a) < (b)) # define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ (((min) == 0 && (((a) < 0 && 0 < (b)) || ((b) < 0 && 0 < (a)))) \ || INT_MULTIPLY_RANGE_OVERFLOW (a, b, min, max)) #endif #define _GL_DIVIDE_OVERFLOW(a, b, min, max) \ ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ : (a) < 0 ? (b) <= (a) + (b) - 1 \ : (b) < 0 && (a) + (b) <= (a)) #define _GL_REMAINDER_OVERFLOW(a, b, min, max) \ ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ : (a) < 0 ? (a) % (b) != ((max) - (b) + 1) % (b) \ : (b) < 0 && ! _GL_UNSIGNED_NEG_MULTIPLE (a, b, max)) /* Return a nonzero value if A is a mathematical multiple of B, where A is unsigned, B is negative, and MAX is the maximum value of A's type. A's type must be the same as (A % B)'s type. Normally (A % -B == 0) suffices, but things get tricky if -B would overflow. */ #define _GL_UNSIGNED_NEG_MULTIPLE(a, b, max) \ (((b) < -_GL_SIGNED_INT_MAXIMUM (b) \ ? (_GL_SIGNED_INT_MAXIMUM (b) == (max) \ ? (a) \ : (a) % (_GL_INT_CONVERT (a, _GL_SIGNED_INT_MAXIMUM (b)) + 1)) \ : (a) % - (b)) \ == 0) /* Check for integer overflow, and report low order bits of answer. The INT__OVERFLOW macros return 1 if the corresponding C operators might not yield numerically correct answers due to arithmetic overflow. The INT__WRAPV macros compute the low-order bits of the sum, difference, and product of two C integers, and return 1 if these low-order bits are not numerically correct. These macros work correctly on all known practical hosts, and do not rely on undefined behavior due to signed arithmetic overflow. Example usage, assuming A and B are long int: if (INT_MULTIPLY_OVERFLOW (a, b)) printf ("result would overflow\n"); else printf ("result is %ld (no overflow)\n", a * b); Example usage with WRAPV flavor: long int result; bool overflow = INT_MULTIPLY_WRAPV (a, b, &result); printf ("result is %ld (%s)\n", result, overflow ? "after overflow" : "no overflow"); Restrictions on these macros: These macros do not check for all possible numerical problems or undefined or unspecified behavior: they do not check for division by zero, for bad shift counts, or for shifting negative numbers. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. The WRAPV macros are not constant expressions. They support only +, binary -, and *. Because the WRAPV macros convert the result, they report overflow in different circumstances than the OVERFLOW macros do. For example, in the typical case with 16-bit 'short' and 32-bit 'int', if A, B and R are all of type 'short' then INT_ADD_OVERFLOW (A, B) returns false because the addition cannot overflow after A and B are converted to 'int', whereas INT_ADD_WRAPV (A, B, &R) returns true or false depending on whether the sum fits into 'short'. These macros are tuned for their last input argument being a constant. Return 1 if the integer expressions A * B, A - B, -A, A * B, A / B, A % B, and A << B would overflow, respectively. */ #define INT_ADD_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_ADD_OVERFLOW) #define INT_SUBTRACT_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_SUBTRACT_OVERFLOW) #if _GL_HAS_BUILTIN_OVERFLOW_P # define INT_NEGATE_OVERFLOW(a) INT_SUBTRACT_OVERFLOW (0, a) #else # define INT_NEGATE_OVERFLOW(a) \ INT_NEGATE_RANGE_OVERFLOW (a, _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) #endif #define INT_MULTIPLY_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_MULTIPLY_OVERFLOW) #define INT_DIVIDE_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_DIVIDE_OVERFLOW) #define INT_REMAINDER_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_REMAINDER_OVERFLOW) #define INT_LEFT_SHIFT_OVERFLOW(a, b) \ INT_LEFT_SHIFT_RANGE_OVERFLOW (a, b, \ _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) /* Return 1 if the expression A B would overflow, where OP_RESULT_OVERFLOW (A, B, MIN, MAX) does the actual test, assuming MIN and MAX are the minimum and maximum for the result type. Arguments should be free of side effects. */ #define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ op_result_overflow (a, b, \ _GL_INT_MINIMUM (_GL_INT_CONVERT (a, b)), \ _GL_INT_MAXIMUM (_GL_INT_CONVERT (a, b))) /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. Return 1 if the result overflows. See above for restrictions. */ #if _GL_HAS_BUILTIN_ADD_OVERFLOW # define INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r) # define INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r) #else # define INT_ADD_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW) # define INT_SUBTRACT_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) #endif #if _GL_HAS_BUILTIN_MUL_OVERFLOW # if ((9 < __GNUC__ + (3 <= __GNUC_MINOR__) \ || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) \ && !defined __EDG__) # define INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r) # else /* Work around GCC bug 91450. */ # define INT_MULTIPLY_WRAPV(a, b, r) \ ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && EXPR_SIGNED (a) && EXPR_SIGNED (b) \ && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \ ? ((void) __builtin_mul_overflow (a, b, r), 1) \ : __builtin_mul_overflow (a, b, r)) # endif #else # define INT_MULTIPLY_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW) #endif /* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 https://llvm.org/bugs/show_bug.cgi?id=25390 For now, assume all versions of GCC-like compilers generate bogus warnings for _Generic. This matters only for compilers that lack relevant builtins. */ #if __GNUC__ || defined __clang__ # define _GL__GENERIC_BOGUS 1 #else # define _GL__GENERIC_BOGUS 0 #endif /* Store the low-order bits of A B into *R, where OP specifies the operation and OVERFLOW the overflow predicate. Return 1 if the result overflows. See above for restrictions. */ #if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ (_Generic \ (*(r), \ signed char: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ signed char, SCHAR_MIN, SCHAR_MAX), \ unsigned char: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned char, 0, UCHAR_MAX), \ short int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ short int, SHRT_MIN, SHRT_MAX), \ unsigned short int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned short int, 0, USHRT_MAX), \ int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ int, INT_MIN, INT_MAX), \ unsigned int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned int, 0, UINT_MAX), \ long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX), \ unsigned long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX), \ long long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ long long int, LLONG_MIN, LLONG_MAX), \ unsigned long long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ unsigned long long int, 0, ULLONG_MAX))) #else /* Store the low-order bits of A B into *R, where OP specifies the operation and OVERFLOW the overflow predicate. If *R is signed, its type is ST with bounds SMIN..SMAX; otherwise its type is UT with bounds U..UMAX. ST and UT are narrower than int. Return 1 if the result overflows. See above for restrictions. */ # if _GL_HAVE___TYPEOF__ # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ (TYPE_SIGNED (__typeof__ (*(r))) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax)) # else # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ (overflow (a, b, smin, smax) \ ? (overflow (a, b, 0, umax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \ : (overflow (a, b, 0, umax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0))) # endif # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ (sizeof *(r) == sizeof (signed char) \ ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ signed char, SCHAR_MIN, SCHAR_MAX, \ unsigned char, UCHAR_MAX) \ : sizeof *(r) == sizeof (short int) \ ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ short int, SHRT_MIN, SHRT_MAX, \ unsigned short int, USHRT_MAX) \ : sizeof *(r) == sizeof (int) \ ? (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ int, INT_MIN, INT_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned int, 0, UINT_MAX)) \ : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) # ifdef LLONG_MAX # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ (sizeof *(r) == sizeof (long int) \ ? (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX)) \ : (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ long long int, LLONG_MIN, LLONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ unsigned long long int, 0, ULLONG_MAX))) # else # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX)) # endif #endif /* Store the low-order bits of A B into *R, where the operation is given by OP. Use the unsigned type UT for calculation to avoid overflow problems. *R's type is T, with extrema TMIN and TMAX. T must be a signed integer type. Return 1 if the result overflows. */ #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ (overflow (a, b, tmin, tmax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0)) /* Return the low-order bits of A B, where the operation is given by OP. Use the unsigned type UT for calculation to avoid undefined behavior on signed integer overflow, and convert the result to type T. UT is at least as wide as T and is no narrower than unsigned int, T is two's complement, and there is no padding or trap representations. Assume that converting UT to T yields the low-order bits, as is done in all known two's-complement C compilers. E.g., see: https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html According to the C standard, converting UT to T yields an implementation-defined result or signal for values outside T's range. However, code that works around this theoretical problem runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: https://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html As the compiler bug is real, don't try to work around the theoretical problem. */ #define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \ ((t) ((ut) (a) op (ut) (b))) /* Return true if the numeric values A + B, A - B, A * B fall outside the range TMIN..TMAX. Arguments should be integer expressions without side effects. TMIN should be signed and nonpositive. TMAX should be positive, and should be signed unless TMIN is zero. */ #define _GL_INT_ADD_RANGE_OVERFLOW(a, b, tmin, tmax) \ ((b) < 0 \ ? (((tmin) \ ? ((EXPR_SIGNED (_GL_INT_CONVERT (a, (tmin) - (b))) || (b) < (tmin)) \ && (a) < (tmin) - (b)) \ : (a) <= -1 - (b)) \ || ((EXPR_SIGNED (a) ? 0 <= (a) : (tmax) < (a)) && (tmax) < (a) + (b))) \ : (a) < 0 \ ? (((tmin) \ ? ((EXPR_SIGNED (_GL_INT_CONVERT (b, (tmin) - (a))) || (a) < (tmin)) \ && (b) < (tmin) - (a)) \ : (b) <= -1 - (a)) \ || ((EXPR_SIGNED (_GL_INT_CONVERT (a, b)) || (tmax) < (b)) \ && (tmax) < (a) + (b))) \ : (tmax) < (b) || (tmax) - (b) < (a)) #define _GL_INT_SUBTRACT_RANGE_OVERFLOW(a, b, tmin, tmax) \ (((a) < 0) == ((b) < 0) \ ? ((a) < (b) \ ? !(tmin) || -1 - (tmin) < (b) - (a) - 1 \ : (tmax) < (a) - (b)) \ : (a) < 0 \ ? ((!EXPR_SIGNED (_GL_INT_CONVERT ((a) - (tmin), b)) && (a) - (tmin) < 0) \ || (a) - (tmin) < (b)) \ : ((! (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ && EXPR_SIGNED (_GL_INT_CONVERT ((tmax) + (b), a))) \ && (tmax) <= -1 - (b)) \ || (tmax) + (b) < (a))) #define _GL_INT_MULTIPLY_RANGE_OVERFLOW(a, b, tmin, tmax) \ ((b) < 0 \ ? ((a) < 0 \ ? (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ ? (a) < (tmax) / (b) \ : ((INT_NEGATE_OVERFLOW (b) \ ? _GL_INT_CONVERT (b, tmax) >> (TYPE_WIDTH (+ (b)) - 1) \ : (tmax) / -(b)) \ <= -1 - (a))) \ : INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (b, tmin)) && (b) == -1 \ ? (EXPR_SIGNED (a) \ ? 0 < (a) + (tmin) \ : 0 < (a) && -1 - (tmin) < (a) - 1) \ : (tmin) / (b) < (a)) \ : (b) == 0 \ ? 0 \ : ((a) < 0 \ ? (INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (a, tmin)) && (a) == -1 \ ? (EXPR_SIGNED (b) ? 0 < (b) + (tmin) : -1 - (tmin) < (b) - 1) \ : (tmin) / (a) < (b)) \ : (tmax) / (b) < (a))) /* The following macros compute A + B, A - B, and A * B, respectively. If no overflow occurs, they set *R to the result and return 1; otherwise, they return 0 and may modify *R. Example usage: long int result; if (INT_ADD_OK (a, b, &result)) printf ("result is %ld\n", result); else printf ("overflow\n"); A, B, and *R should be integers; they need not be the same type, and they need not be all signed or all unsigned. These macros work correctly on all known practical hosts, and do not rely on undefined behavior due to signed arithmetic overflow. These macros are not constant expressions. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. These macros are tuned for B being a constant. */ #define INT_ADD_OK(a, b, r) ! INT_ADD_WRAPV (a, b, r) #define INT_SUBTRACT_OK(a, b, r) ! INT_SUBTRACT_WRAPV (a, b, r) #define INT_MULTIPLY_OK(a, b, r) ! INT_MULTIPLY_WRAPV (a, b, r) #endif /* _GL_INTPROPS_H */ shishi-1.0.3/lib/gl/malloca.h0000644000000000000000000001077314273615123012636 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MALLOCA_H #define _MALLOCA_H #include #include #include #include #include "xalloc-oversized.h" #ifdef __cplusplus extern "C" { #endif /* safe_alloca(N) is equivalent to alloca(N) when it is safe to call alloca(N); otherwise it returns NULL. It either returns N bytes of memory allocated on the stack, that lasts until the function returns, or NULL. Use of safe_alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns. */ #if HAVE_ALLOCA /* The OS usually guarantees only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely allocate anything larger than 4096 bytes. Also care for the possibility of a few compiler-allocated temporary stack slots. This must be a macro, not a function. */ # define safe_alloca(N) ((N) < 4032 ? alloca (N) : NULL) #else # define safe_alloca(N) ((void) (N), NULL) #endif /* Free a block of memory allocated through malloca(). */ #if HAVE_ALLOCA extern void freea (void *p); #else # define freea free #endif /* malloca(N) is a safe variant of alloca(N). It allocates N bytes of memory allocated on the stack, that must be freed using freea() before the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ ((N) < 4032 - (2 * sa_alignment_max - 1) \ ? (void *) (((uintptr_t) (char *) alloca ((N) + 2 * sa_alignment_max - 1) \ + (2 * sa_alignment_max - 1)) \ & ~(uintptr_t)(2 * sa_alignment_max - 1)) \ : mmalloca (N)) #else # define malloca(N) \ mmalloca (N) #endif extern void *mmalloca (size_t n) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (freea, 1) _GL_ATTRIBUTE_ALLOC_SIZE ((1)); /* nmalloca(N,S) is an overflow-safe variant of malloca (N * S). It allocates an array of N objects, each with S bytes of memory, on the stack. N and S should be nonnegative and free of side effects. The array must be freed using freea() before the function returns. */ #define nmalloca(n, s) \ (xalloc_oversized (n, s) ? NULL : malloca ((n) * (size_t) (s))) #ifdef __cplusplus } #endif /* ------------------- Auxiliary, non-public definitions ------------------- */ /* Determine the alignment of a type at compile time. */ #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ # define sa_alignof __alignof__ #elif defined __cplusplus template struct sa_alignof_helper { char __slot1; type __slot2; }; # define sa_alignof(type) offsetof (sa_alignof_helper, __slot2) #elif defined __hpux /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #elif defined _AIX /* Work around an AIX 3.2.5 xlc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #else # define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; }, __slot2) #endif enum { /* The desired alignment of memory allocations is the maximum alignment among all elementary types. */ sa_alignment_long = sa_alignof (long), sa_alignment_double = sa_alignof (double), sa_alignment_longlong = sa_alignof (long long), sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) | (sa_alignment_longlong - 1) | (sa_alignment_longdouble - 1) ) + 1 }; #endif /* _MALLOCA_H */ shishi-1.0.3/lib/gl/vasnprintf.c0000644000000000000000000067676114273615123013432 00000000000000/* vsprintf with automatic memory allocation. Copyright (C) 1999, 2002-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* This file can be parametrized with the following macros: VASNPRINTF The name of the function being defined. FCHAR_T The element type of the format string. DCHAR_T The element type of the destination (result) string. FCHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. MUST be set if FCHAR_T and DCHAR_T are not the same type. DIRECTIVE Structure denoting a format directive. Depends on FCHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on FCHAR_T. PRINTF_PARSE Function that parses a format string. Depends on FCHAR_T. DCHAR_CPY memcpy like function for DCHAR_T[] arrays. DCHAR_SET memset like function for DCHAR_T[] arrays. DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays. SNPRINTF The system's snprintf (or similar) function. This may be either snprintf or swprintf. TCHAR_T The element type of the argument and result string of the said SNPRINTF function. This may be either char or wchar_t. The code exploits that sizeof (TCHAR_T) | sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type. DCHAR_CONV_FROM_ENCODING A function to convert from char[] to DCHAR[]. DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t. DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t. DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. ENABLE_WCHAR_FALLBACK Set to 1 to avoid EILSEQ during conversion of wide characters (wchar_t) and wide character strings (wchar_t[]) to multibyte sequences. The fallback is the hexadecimal escape syntax (\unnnn or \Unnnnnnnn) or, if wchar_t is not Unicode encoded, \wnnnn or \Wnnnnnnnn. */ /* Tell glibc's to provide a prototype for snprintf(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifndef VASNPRINTF # include #endif /* As of GCC 11.2.1, gcc -Wanalyzer-too-complex reports that main's use of CHECK macros expands to code that is too complicated for gcc -fanalyzer. Suppress the resulting bogus warnings. */ #if 10 <= __GNUC__ # pragma GCC diagnostic ignored "-Wanalyzer-null-argument" #endif #include /* Specification. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "vasnwprintf.h" # else # include "vasnprintf.h" # endif #endif #include /* localeconv() */ #include /* snprintf(), sprintf() */ #include /* abort(), malloc(), realloc(), free() */ #include /* memcpy(), strlen() */ #include /* errno */ #include /* CHAR_BIT */ #include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "wprintf-parse.h" # else # include "printf-parse.h" # endif #endif /* Checked size_t computations. */ #include "xsize.h" #include "attribute.h" #include "verify.h" #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "float+.h" #endif #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "fpucw.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" # include "printf-frexp.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "printf-frexpl.h" # include "fpucw.h" #endif /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # define VASNPRINTF vasnwprintf # define FCHAR_T wchar_t # define DCHAR_T wchar_t # define TCHAR_T wchar_t # define DCHAR_IS_TCHAR 1 # define DIRECTIVE wchar_t_directive # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy # define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char # define DCHAR_T char # define TCHAR_T char # define DCHAR_IS_TCHAR 1 # define DIRECTIVE char_directive # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy # define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION /* TCHAR_T is wchar_t. */ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than on Unix; we use the function _snwprintf() or - on mingw - snwprintf() instead. The mingw function snwprintf() has fewer bugs than the MSVCRT function _snwprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snwprintf # else # define SNPRINTF _snwprintf # define USE_MSVC__SNPRINTF 1 # endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the size argument is >= 0x3000000. Also don't use it on Linux libc5, since there snprintf with size = 1 writes any output without bounds, like sprintf. */ # if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT function _snprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # else /* MSVC versions < 14 did not have snprintf, only _snprintf. */ # define SNPRINTF _snprintf # define USE_MSVC__SNPRINTF 1 # endif # else /* Unix. */ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # endif #endif /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf /* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" warnings in this file. Use -Dlint to suppress them. */ #if defined GCC_LINT || defined lint # define IF_LINT(Code) Code #else # define IF_LINT(Code) /* empty */ #endif /* Avoid some warnings from "gcc -Wshadow". This file doesn't use the exp() and remainder() functions. */ #undef exp #define exp expo #undef remainder #define remainder rem #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF) && !WIDE_CHAR_VERSION # if (HAVE_STRNLEN && !defined _AIX) # define local_strnlen strnlen # else # ifndef local_strnlen_defined # define local_strnlen_defined 1 static size_t local_strnlen (const char *string, size_t maxlen) { const char *end = memchr (string, '\0', maxlen); return end ? (size_t) (end - string) : maxlen; } # endif # endif #endif #if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T # if HAVE_WCSLEN # define local_wcslen wcslen # else /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid a dependency towards this library, here is a local substitute. Define this substitute only once, even if this file is included twice in the same compilation unit. */ # ifndef local_wcslen_defined # define local_wcslen_defined 1 static size_t local_wcslen (const wchar_t *s) { const wchar_t *ptr; for (ptr = s; *ptr != (wchar_t) 0; ptr++) ; return ptr - s; } # endif # endif #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF) && HAVE_WCHAR_T && WIDE_CHAR_VERSION # if HAVE_WCSNLEN # define local_wcsnlen wcsnlen # else # ifndef local_wcsnlen_defined # define local_wcsnlen_defined 1 static size_t local_wcsnlen (const wchar_t *s, size_t maxlen) { const wchar_t *ptr; for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) ; return ptr - s; } # endif # endif #endif #if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL) || ENABLE_WCHAR_FALLBACK) && HAVE_WCHAR_T) || (ENABLE_WCHAR_FALLBACK && HAVE_WINT_T)) && !WIDE_CHAR_VERSION # if ENABLE_WCHAR_FALLBACK static size_t wctomb_fallback (char *s, wchar_t wc) { static char hex[16] = "0123456789ABCDEF"; s[0] = '\\'; if (sizeof (wchar_t) > 2 && wc > 0xffff) { # if __STDC_ISO_10646__ || (__GLIBC__ >= 2) || (defined _WIN32 || defined __CYGWIN__) s[1] = 'U'; # else s[1] = 'W'; # endif s[2] = hex[(wc & 0xf0000000U) >> 28]; s[3] = hex[(wc & 0xf000000U) >> 24]; s[4] = hex[(wc & 0xf00000U) >> 20]; s[5] = hex[(wc & 0xf0000U) >> 16]; s[6] = hex[(wc & 0xf000U) >> 12]; s[7] = hex[(wc & 0xf00U) >> 8]; s[8] = hex[(wc & 0xf0U) >> 4]; s[9] = hex[wc & 0xfU]; return 10; } else { # if __STDC_ISO_10646__ || (__GLIBC__ >= 2) || (defined _WIN32 || defined __CYGWIN__) s[1] = 'u'; # else s[1] = 'w'; # endif s[2] = hex[(wc & 0xf000U) >> 12]; s[3] = hex[(wc & 0xf00U) >> 8]; s[4] = hex[(wc & 0xf0U) >> 4]; s[5] = hex[wc & 0xfU]; return 6; } } # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t static size_t local_wcrtomb (char *s, wchar_t wc, mbstate_t *ps) { size_t count = wcrtomb (s, wc, ps); if (count == (size_t)(-1)) count = wctomb_fallback (s, wc); return count; } # else static int local_wctomb (char *s, wchar_t wc) { int count = wctomb (s, wc); if (count < 0) count = wctomb_fallback (s, wc); return count; } # define local_wcrtomb(S, WC, PS) local_wctomb ((S), (WC)) # endif # else # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t # define local_wcrtomb(S, WC, PS) wcrtomb ((S), (WC), (PS)) # else # define local_wcrtomb(S, WC, PS) wctomb ((S), (WC)) # endif # endif #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is multithread-safe on glibc systems and Mac OS X systems, but is not required to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. localeconv() is rarely multithread-safe. */ # if HAVE_NL_LANGINFO && (__GLIBC__ || defined __UCLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; sprintf (pointbuf, "%#.0f", 1.0); point = &pointbuf[1]; # else point = localeconv () -> decimal_point; # endif /* The decimal point is always a single byte: either '.' or ','. */ return (point[0] != '\0' ? point[0] : '.'); } # endif #endif #if NEED_PRINTF_INFINITE_DOUBLE && !NEED_PRINTF_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zero (double x) { return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zerol (long double x) { return isnanl (x) || x + x == x; } #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL /* Converting 'long double' to decimal without rare rounding bugs requires real bignums. We use the naming conventions of GNU gmp, but vastly simpler (and slower) algorithms. */ typedef unsigned int mp_limb_t; # define GMP_LIMB_BITS 32 verify (sizeof (mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS); typedef unsigned long long mp_twolimb_t; # define GMP_TWOLIMB_BITS 64 verify (sizeof (mp_twolimb_t) * CHAR_BIT == GMP_TWOLIMB_BITS); /* Representation of a bignum >= 0. */ typedef struct { size_t nlimbs; mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ } mpn_t; /* Compute the product of two bignums >= 0. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * multiply (mpn_t src1, mpn_t src2, mpn_t *dest) { const mp_limb_t *p1; const mp_limb_t *p2; size_t len1; size_t len2; if (src1.nlimbs <= src2.nlimbs) { len1 = src1.nlimbs; p1 = src1.limbs; len2 = src2.nlimbs; p2 = src2.limbs; } else { len1 = src2.nlimbs; p1 = src2.limbs; len2 = src1.nlimbs; p2 = src1.limbs; } /* Now 0 <= len1 <= len2. */ if (len1 == 0) { /* src1 or src2 is zero. */ dest->nlimbs = 0; dest->limbs = (mp_limb_t *) malloc (1); } else { /* Here 1 <= len1 <= len2. */ size_t dlen; mp_limb_t *dp; size_t k, i, j; dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) return NULL; for (k = len2; k > 0; ) dp[--k] = 0; for (i = 0; i < len1; i++) { mp_limb_t digit1 = p1[i]; mp_twolimb_t carry = 0; for (j = 0; j < len2; j++) { mp_limb_t digit2 = p2[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; carry += dp[i + j]; dp[i + j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } dp[i + len2] = (mp_limb_t) carry; } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) dlen--; dest->nlimbs = dlen; dest->limbs = dp; } return dest->limbs; } /* Compute the quotient of a bignum a >= 0 and a bignum b > 0. a is written as a = q * b + r with 0 <= r < b. q is the quotient, r the remainder. Finally, round-to-even is performed: If r > b/2 or if r = b/2 and q is odd, q is incremented. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * divide (mpn_t a, mpn_t b, mpn_t *q) { /* Algorithm: First normalise a and b: a=[a[m-1],...,a[0]], b=[b[n-1],...,b[0]] with m>=0 and n>0 (in base beta = 2^GMP_LIMB_BITS). If m=n=1, perform a single-precision division: r:=0, j:=m, while j>0 do {Here (q[m-1]*beta^(m-1)+...+q[j]*beta^j) * b[0] + r*beta^j = = a[m-1]*beta^(m-1)+...+a[j]*beta^j und 0<=r=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). s:=intDsize-1-(highest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} Compute q* : q* := floor((r[j+n]*beta+r[j+n-1])/b[n-1]). In case of overflow (q* >= beta) set q* := beta-1. Compute c2 := ((r[j+n]*beta+r[j+n-1]) - q* * b[n-1])*beta + r[j+n-2] and c3 := b[n-2] * q*. {We have 0 <= c2 < 2*beta^2, even 0 <= c2 < beta^2 if no overflow occurred. Furthermore 0 <= c3 < beta^2. If there was overflow and r[j+n]*beta+r[j+n-1] - q* * b[n-1] >= beta, i.e. c2 >= beta^2, the next test can be skipped.} While c3 > c2, {Here 0 <= c2 < c3 < beta^2} Put q* := q* - 1, c2 := c2 + b[n-1]*beta, c3 := c3 - b[n-2]. If q* > 0: Put r := r - b * q* * beta^j. In detail: [r[n+j],...,r[j]] := [r[n+j],...,r[j]] - q* * [b[n-1],...,b[0]]. hence: u:=0, for i:=0 to n-1 do u := u + q* * b[i], r[j+i]:=r[j+i]-(u mod beta) (+ beta, if carry), u:=u div beta (+ 1, if carry in subtraction) r[n+j]:=r[n+j]-u. {Since always u = (q* * [b[i-1],...,b[0]] div beta^i) + 1 < q* + 1 <= beta, the carry u does not overflow.} If a negative carry occurs, put q* := q* - 1 and [r[n+j],...,r[j]] := [r[n+j],...,r[j]] + [0,b[n-1],...,b[0]]. Set q[j] := q*. Normalise [q[m-n],..,q[0]]; this yields the quotient q. Shift [r[n-1],...,r[0]] right by s bits and normalise; this yields the rest r. The room for q[j] can be allocated at the memory location of r[n+j]. Finally, round-to-even: Shift r left by 1 bit. If r > b or if r = b and q[0] is odd, q := q+1. */ const mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; const mp_limb_t *b_ptr = b.limbs; size_t b_len = b.nlimbs; mp_limb_t *roomptr; mp_limb_t *tmp_roomptr = NULL; mp_limb_t *q_ptr; size_t q_len; mp_limb_t *r_ptr; size_t r_len; /* Allocate room for a_len+2 digits. (Need a_len+1 digits for the real division and 1 more digit for the final rounding of q.) */ roomptr = (mp_limb_t *) malloc ((a_len + 2) * sizeof (mp_limb_t)); if (roomptr == NULL) return NULL; /* Normalise a. */ while (a_len > 0 && a_ptr[a_len - 1] == 0) a_len--; /* Normalise b. */ for (;;) { if (b_len == 0) /* Division by zero. */ abort (); if (b_ptr[b_len - 1] == 0) b_len--; else break; } /* Here m = a_len >= 0 and n = b_len > 0. */ if (a_len < b_len) { /* m beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { mp_limb_t den = b_ptr[0]; mp_limb_t remainder = 0; const mp_limb_t *sourceptr = a_ptr + a_len; mp_limb_t *destptr = q_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; *--destptr = num / den; remainder = num % den; } /* Normalise and store r. */ if (remainder > 0) { r_ptr[0] = remainder; r_len = 1; } else r_len = 0; /* Normalise q. */ q_len = a_len; if (q_ptr[q_len - 1] == 0) q_len--; } } else { /* n>1: multiple precision division. beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ /* Determine s = GMP_LIMB_BITS - integer_length (msd). Code copied from gnulib's integer_length.c. */ # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) \ || (__clang_major__ >= 4) s = __builtin_clz (msd); # else # if defined DBL_EXPBIT0_WORD && defined DBL_EXPBIT0_BIT if (GMP_LIMB_BITS <= DBL_MANT_BIT) { /* Use 'double' operations. Assumes an IEEE 754 'double' implementation. */ # define DBL_EXP_MASK ((DBL_MAX_EXP - DBL_MIN_EXP) | 7) # define DBL_EXP_BIAS (DBL_EXP_MASK / 2 - 1) # define NWORDS \ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) union { double value; unsigned int word[NWORDS]; } m; /* Use a single integer to floating-point conversion. */ m.value = msd; s = GMP_LIMB_BITS - (((m.word[DBL_EXPBIT0_WORD] >> DBL_EXPBIT0_BIT) & DBL_EXP_MASK) - DBL_EXP_BIAS); } else # undef NWORDS # endif { s = 31; if (msd >= 0x10000) { msd = msd >> 16; s -= 16; } if (msd >= 0x100) { msd = msd >> 8; s -= 8; } if (msd >= 0x10) { msd = msd >> 4; s -= 4; } if (msd >= 0x4) { msd = msd >> 2; s -= 2; } if (msd >= 0x2) { msd = msd >> 1; s -= 1; } } # endif } /* 0 <= s < GMP_LIMB_BITS. Copy b, shifting it left by s bits. */ if (s > 0) { tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); if (tmp_roomptr == NULL) { free (roomptr); return NULL; } { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = tmp_roomptr; mp_twolimb_t accu = 0; size_t count; for (count = b_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } /* accu must be zero, since that was how s was determined. */ if (accu != 0) abort (); } b_ptr = tmp_roomptr; } /* Copy a, shifting it left by s bits, yields r. Memory layout: At the beginning: r = roomptr[0..a_len], at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) { memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); r_ptr[a_len] = 0; } else { const mp_limb_t *sourceptr = a_ptr; mp_limb_t *destptr = r_ptr; mp_twolimb_t accu = 0; size_t count; for (count = a_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } *destptr++ = (mp_limb_t) accu; } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { size_t j = a_len - b_len; /* m-n */ mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; /* Division loop, traversed m-n+1 times. j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ for (;;) { mp_limb_t q_star; mp_limb_t c1; if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ { /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ mp_twolimb_t num = ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) | r_ptr[j + b_len - 1]; q_star = num / b_msd; c1 = num % b_msd; } else { /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) {<= beta !}. If yes, jump directly to the subtraction loop. (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ if (r_ptr[j + b_len] > b_msd || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) /* r[j+n] >= b[n-1]+1 or r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a carry. */ goto subtract; } /* q_star = q*, c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 this can happen only twice. */ if (c3 > c2) { q_star = q_star - 1; /* q* := q* - 1 */ if (c3 - c2 > b_msdd) q_star = q_star - 1; /* q* := q* - 1 */ } } if (q_star > 0) subtract: { /* Subtract r := r - b * q* * beta^j. */ mp_limb_t cr; { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_twolimb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { /* Here 0 <= carry <= q*. */ carry = carry + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + (mp_limb_t) ~(*destptr); /* Here 0 <= carry <= beta*q* + beta-1. */ *destptr++ = ~(mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; /* <= q* */ } cr = (mp_limb_t) carry; } /* Subtract cr from r_ptr[j + b_len], then forget about r_ptr[j + b_len]. */ if (cr > r_ptr[j + b_len]) { /* Subtraction gave a carry. */ q_star = q_star - 1; /* q* := q* - 1 */ /* Add b back. */ { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_limb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { mp_limb_t source1 = *sourceptr++; mp_limb_t source2 = *destptr; *destptr++ = source1 + source2 + carry; carry = (carry ? source1 >= (mp_limb_t) ~source2 : source1 > (mp_limb_t) ~source2); } } /* Forget about the carry and about r[j+n]. */ } } /* q* is determined. Store it as q[j]. */ q_ptr[j] = q_star; if (j == 0) break; j--; } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) { mp_limb_t ptr = r_ptr + r_len; mp_twolimb_t accu = 0; size_t count; for (count = r_len; count > 0; count--) { accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); } } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) goto increment_q; { size_t i; for (i = b_len;;) { mp_limb_t r_i = (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) | (i < r_len ? r_ptr[i] << 1 : 0); mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); if (r_i > b_i) goto increment_q; if (r_i < b_i) goto keep_q; if (i == 0) break; i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) /* q is odd. */ increment_q: { size_t i; for (i = 0; i < q_len; i++) if (++(q_ptr[i]) != 0) goto keep_q; q_ptr[q_len++] = 1; } keep_q: free (tmp_roomptr); q->limbs = q_ptr; q->nlimbs = q_len; return roomptr; } /* Convert a bignum a >= 0, multiplied with 10^extra_zeroes, to decimal representation. Destroys the contents of a. Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * convert_to_decimal (mpn_t a, size_t extra_zeroes) { mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; /* 0.03345 is slightly larger than log(2)/(9*log(10)). */ size_t c_len = 9 * ((size_t)(a_len * (GMP_LIMB_BITS * 0.03345f)) + 1); /* We need extra_zeroes bytes for zeroes, followed by c_len bytes for the digits of a, followed by 1 byte for the terminating NUL. */ char *c_ptr = (char *) malloc (xsum (xsum (extra_zeroes, c_len), 1)); if (c_ptr != NULL) { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) *d_ptr++ = '0'; while (a_len > 0) { /* Divide a by 10^9, in-place. */ mp_limb_t remainder = 0; mp_limb_t *ptr = a_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; *ptr = num / 1000000000; remainder = num % 1000000000; } /* Store the remainder as 9 decimal digits. */ for (count = 9; count > 0; count--) { *d_ptr++ = '0' + (remainder % 10); remainder = remainder / 10; } /* Normalize a. */ if (a_ptr[a_len - 1] == 0) a_len--; } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } return c_ptr; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_long_double (long double x, int *ep, mpn_t *mp) { mpn_t m; int exp; long double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (LDBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); /* x = 2^exp * y = 2^(exp - LDBL_MANT_BIT) * (y * 2^LDBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * 2^LDBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'long double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'long double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (LDBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (LDBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = LDBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess precision. */ if (!(y == 0.0L)) abort (); # endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - LDBL_MANT_BIT; return m.limbs; } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_double (double x, int *ep, mpn_t *mp) { mpn_t m; int exp; double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (DBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); /* x = 2^exp * y = 2^(exp - DBL_MANT_BIT) * (y * 2^DBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * 2^DBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (DBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (DBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = DBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) abort (); /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - DBL_MANT_BIT; return m.limbs; } # endif /* Assuming x = 2^e * m is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_decoded (int e, mpn_t m, void *memory, int n) { int s; size_t extra_zeroes; unsigned int abs_n; unsigned int abs_s; mp_limb_t *pow5_ptr; size_t pow5_len; unsigned int s_limbs; unsigned int s_bits; mpn_t pow5; mpn_t z; void *z_memory; char *digits; if (memory == NULL) return NULL; /* x = 2^e * m, hence y = round (2^e * 10^n * m) = round (2^(e+n) * 5^n * m) = round (2^s * 5^n * m). */ s = e + n; extra_zeroes = 0; /* Factor out a common power of 10 if possible. */ if (s > 0 && n > 0) { extra_zeroes = (s < n ? s : n); s -= extra_zeroes; n -= extra_zeroes; } /* Here y = round (2^s * 5^n * m) * 10^extra_zeroes. Before converting to decimal, we need to compute z = round (2^s * 5^n * m). */ /* Compute 5^|n|, possibly shifted by |s| bits if n and s have the same sign. 2.322 is slightly larger than log(5)/log(2). */ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 + abs_s / GMP_LIMB_BITS + 1) * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); return NULL; } /* Initialize with 1. */ pow5_ptr[0] = 1; pow5_len = 1; /* Multiply with 5^|n|. */ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = { 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125 }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) { mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; size_t j; mp_twolimb_t carry = 0; for (j = 0; j < pow5_len; j++) { mp_limb_t digit2 = pow5_ptr[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; pow5_ptr[j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } if (carry > 0) pow5_ptr[pow5_len++] = (mp_limb_t) carry; } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; if (n >= 0 ? s >= 0 : s <= 0) { /* Multiply with 2^|s|. */ if (s_bits > 0) { mp_limb_t *ptr = pow5_ptr; mp_twolimb_t accu = 0; size_t count; for (count = pow5_len; count > 0; count--) { accu += (mp_twolimb_t) *ptr << s_bits; *ptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) { *ptr = (mp_limb_t) accu; pow5_len++; } } if (s_limbs > 0) { size_t count; for (count = pow5_len; count > 0;) { count--; pow5_ptr[s_limbs + count] = pow5_ptr[count]; } for (count = s_limbs; count > 0;) { count--; pow5_ptr[count] = 0; } pow5_len += s_limbs; } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* Multiply m with pow5. No division needed. */ z_memory = multiply (m, pow5, &z); } else { /* Divide m by pow5 and round. */ z_memory = divide (m, pow5, &z); } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* n >= 0, s < 0. Multiply m with pow5, then divide by 2^|s|. */ mpn_t numerator; mpn_t denominator; void *tmp_memory; tmp_memory = multiply (m, pow5, &numerator); if (tmp_memory == NULL) { free (pow5_ptr); free (memory); return NULL; } /* Construct 2^|s|. */ { mp_limb_t *ptr = pow5_ptr + pow5_len; size_t i; for (i = 0; i < s_limbs; i++) ptr[i] = 0; ptr[s_limbs] = (mp_limb_t) 1 << s_bits; denominator.limbs = ptr; denominator.nlimbs = s_limbs + 1; } z_memory = divide (numerator, denominator, &z); free (tmp_memory); } else { /* n < 0, s > 0. Multiply m with 2^s, then divide by pow5. */ mpn_t numerator; mp_limb_t *num_ptr; num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) * sizeof (mp_limb_t)); if (num_ptr == NULL) { free (pow5_ptr); free (memory); return NULL; } { mp_limb_t *destptr = num_ptr; { size_t i; for (i = 0; i < s_limbs; i++) *destptr++ = 0; } if (s_bits > 0) { const mp_limb_t *sourceptr = m.limbs; mp_twolimb_t accu = 0; size_t count; for (count = m.nlimbs; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s_bits; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) *destptr++ = (mp_limb_t) accu; } else { const mp_limb_t *sourceptr = m.limbs; size_t count; for (count = m.nlimbs; count > 0; count--) *destptr++ = *sourceptr++; } numerator.limbs = num_ptr; numerator.nlimbs = destptr - num_ptr; } z_memory = divide (numerator, pow5, &z); free (num_ptr); } } free (pow5_ptr); free (memory); /* Here y = round (x * 10^n) = z * 10^extra_zeroes. */ if (z_memory == NULL) return NULL; digits = convert_to_decimal (z, extra_zeroes); free (z_memory); return digits; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_long_double (long double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_double (double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10l (long double x) { int exp; long double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); if (y == 0.0L) return INT_MIN; if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0L / (1 << 16))) { y *= 1.0L * (1 << 16); exp -= 16; } if (y < (1.0L / (1 << 8))) { y *= 1.0L * (1 << 8); exp -= 8; } if (y < (1.0L / (1 << 4))) { y *= 1.0L * (1 << 4); exp -= 4; } if (y < (1.0L / (1 << 2))) { y *= 1.0L * (1 << 2); exp -= 2; } if (y < (1.0L / (1 << 1))) { y *= 1.0L * (1 << 1); exp -= 1; } } if (!(y >= 0.5L && y < 1.0L)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10 (double x) { int exp; double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); if (y == 0.0) return INT_MIN; if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0 / (1 << 16))) { y *= 1.0 * (1 << 16); exp -= 16; } if (y < (1.0 / (1 << 8))) { y *= 1.0 * (1 << 8); exp -= 8; } if (y < (1.0 / (1 << 4))) { y *= 1.0 * (1 << 4); exp -= 4; } if (y < (1.0 / (1 << 2))) { y *= 1.0 * (1 << 2); exp -= 2; } if (y < (1.0 / (1 << 1))) { y *= 1.0 * (1 << 1); exp -= 1; } } if (!(y >= 0.5 && y < 1.0)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif /* Tests whether a string of digits consists of exactly PRECISION zeroes and a single '1' digit. */ static int is_borderline (const char *digits, size_t precision) { for (; precision > 0; precision--, digits++) if (*digits != '0') return 0; if (*digits != '1') return 0; digits++; return *digits == '\0'; } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF /* Use a different function name, to make it possible that the 'wchar_t' parametrization and the 'char' parametrization get compiled in the same translation unit. */ # if WIDE_CHAR_VERSION # define MAX_ROOM_NEEDED wmax_room_needed # else # define MAX_ROOM_NEEDED max_room_needed # endif /* Returns the number of TCHAR_T units needed as temporary space for the result of sprintf or SNPRINTF of a single conversion directive. */ static size_t MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, arg_type type, int flags, size_t width, int has_precision, size_t precision, int pad_ourselves) { size_t tmp_length; switch (conversion) { case 'd': case 'i': case 'u': if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Multiply by 2, as an estimate for FLAG_GROUP. */ tmp_length = xsum (tmp_length, tmp_length); /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'o': if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'x': case 'X': if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 2, to account for a leading sign or alternate form. */ tmp_length = xsum (tmp_length, 2); break; case 'f': case 'F': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ else tmp_length = (unsigned int) (DBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ tmp_length = xsum (tmp_length, precision); break; case 'e': case 'E': case 'g': case 'G': tmp_length = 12; /* sign, decimal point, exponent etc. */ tmp_length = xsum (tmp_length, precision); break; case 'a': case 'A': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (DBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); break; case 'c': # if HAVE_WINT_T && !WIDE_CHAR_VERSION if (type == TYPE_WIDE_CHAR) { tmp_length = MB_CUR_MAX; # if ENABLE_WCHAR_FALLBACK if (tmp_length < (sizeof (wchar_t) > 2 ? 10 : 6)) tmp_length = (sizeof (wchar_t) > 2 ? 10 : 6); # endif } else # endif tmp_length = 1; break; case 's': # if HAVE_WCHAR_T if (type == TYPE_WIDE_STRING) { # if WIDE_CHAR_VERSION /* ISO C says about %ls in fwprintf: "If the precision is not specified or is greater than the size of the array, the array shall contain a null wide character." So if there is a precision, we must not use wcslen. */ const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; if (has_precision) tmp_length = local_wcsnlen (arg, precision); else tmp_length = local_wcslen (arg); # else /* ISO C says about %ls in fprintf: "If a precision is specified, no more than that many bytes are written (including shift sequences, if any), and the array shall contain a null wide character if, to equal the multibyte character sequence length given by the precision, the function would need to access a wide character one past the end of the array." So if there is a precision, we must not use wcslen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # endif } else # endif { # if WIDE_CHAR_VERSION /* ISO C says about %s in fwprintf: "If the precision is not specified or is greater than the size of the converted array, the converted array shall contain a null wide character." So if there is a precision, we must not use strlen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # else /* ISO C says about %s in fprintf: "If the precision is not specified or greater than the size of the array, the array shall contain a null character." So if there is a precision, we must not use strlen. */ const char *arg = ap->arg[arg_index].a.a_string; if (has_precision) tmp_length = local_strnlen (arg, precision); else tmp_length = strlen (arg); # endif } break; case 'p': tmp_length = (unsigned int) (sizeof (void *) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1 /* turn floor into ceil */ + 2; /* account for leading 0x */ break; default: abort (); } if (!pad_ourselves) { # if ENABLE_UNISTDIO /* Padding considers the number of characters, therefore the number of elements after padding may be > max (tmp_length, width) but is certainly <= tmp_length + width. */ tmp_length = xsum (tmp_length, width); # else /* Padding considers the number of elements, says POSIX. */ if (tmp_length < width) tmp_length = width; # endif } tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ return tmp_length; } #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; if (PRINTF_PARSE (format, &d, &a) < 0) /* errno is already set. */ return NULL; /* Frees the memory allocated by this function. Preserves errno. */ #define CLEANUP() \ if (d.dir != d.direct_alloc_dir) \ free (d.dir); \ if (a.arg != a.direct_alloc_arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) goto fail_1_with_EINVAL; { size_t buf_neededlength; TCHAR_T *buf; TCHAR_T *buf_malloced; const FCHAR_T *cp; size_t i; DIRECTIVE *dp; /* Output string accumulator. */ DCHAR_T *result; size_t allocated; size_t length; /* Allocate a small buffer that will hold a directive passed to sprintf or snprintf. */ buf_neededlength = xsum4 (7, d.max_width_length, d.max_precision_length, 6); #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); buf_malloced = NULL; } else #endif { size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); if (size_overflow_p (buf_memsize)) goto out_of_memory_1; buf = (TCHAR_T *) malloc (buf_memsize); if (buf == NULL) goto out_of_memory_1; buf_malloced = buf; } result = resultbuf; allocated = (resultbuf != NULL ? *lengthp : 0); length = 0; /* Invariants: result is either == resultbuf or malloc-allocated. If result == NULL, resultbuf is == NULL as well. If length > 0, then result != NULL. */ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION_ELSE(needed, oom_statement) \ if ((needed) > allocated) \ { \ size_t memory_size; \ DCHAR_T *memory; \ \ allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ if ((needed) > allocated) \ allocated = (needed); \ memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ if (size_overflow_p (memory_size)) \ oom_statement \ if (result == resultbuf) \ memory = (DCHAR_T *) malloc (memory_size); \ else \ memory = (DCHAR_T *) realloc (result, memory_size); \ if (memory == NULL) \ oom_statement \ if (result == resultbuf && length > 0) \ DCHAR_CPY (memory, result, length); \ result = memory; \ } #define ENSURE_ALLOCATION(needed) \ ENSURE_ALLOCATION_ELSE((needed), goto out_of_memory; ) for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { if (cp != dp->dir_start) { size_t n = dp->dir_start - cp; size_t augmented_length = xsum (length, n); ENSURE_ALLOCATION (augmented_length); /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we need that the format string contains only ASCII characters if FCHAR_T and DCHAR_T are not the same type. */ if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) { DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); length = augmented_length; } else { do result[length++] = *cp++; while (--n > 0); } } if (i == d.count) break; /* Execute a single directive. */ if (dp->conversion == '%') { size_t augmented_length; if (!(dp->arg_index == ARG_NONE)) abort (); augmented_length = xsum (length, 1); ENSURE_ALLOCATION (augmented_length); result[length] = '%'; length = augmented_length; } else { if (!(dp->arg_index != ARG_NONE)) abort (); if (dp->conversion == 'n') { switch (a.arg[dp->arg_index].type) { case TYPE_COUNT_SCHAR_POINTER: *a.arg[dp->arg_index].a.a_count_schar_pointer = length; break; case TYPE_COUNT_SHORT_POINTER: *a.arg[dp->arg_index].a.a_count_short_pointer = length; break; case TYPE_COUNT_INT_POINTER: *a.arg[dp->arg_index].a.a_count_int_pointer = length; break; case TYPE_COUNT_LONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longint_pointer = length; break; case TYPE_COUNT_LONGLONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; break; default: abort (); } } #if ENABLE_UNISTDIO /* The unistdio extensions. */ else if (dp->conversion == 'U') { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } switch (type) { case TYPE_U8_STRING: { const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; const uint8_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u8_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (characters < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT8_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-8 to locale encoding. */ converted = u8_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-8 to UTF-16/UTF-32. */ converted = U8_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) goto fail_with_errno; if (converted != result + length) { ENSURE_ALLOCATION_ELSE (xsum (length, converted_len), { free (converted); goto out_of_memory; }); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (characters < width && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U16_STRING: { const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; const uint16_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u16_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (characters < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT16_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-16 to locale encoding. */ converted = u16_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-16 to UTF-8/UTF-32. */ converted = U16_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) goto fail_with_errno; if (converted != result + length) { ENSURE_ALLOCATION_ELSE (xsum (length, converted_len), { free (converted); goto out_of_memory; }); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (characters < width && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U32_STRING: { const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; const uint32_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) goto fail_with_EILSEQ; arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u32_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (characters < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT32_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-32 to locale encoding. */ converted = u32_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-32 to UTF-8/UTF-16. */ converted = U32_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) goto fail_with_errno; if (converted != result + length) { ENSURE_ALLOCATION_ELSE (xsum (length, converted_len), { free (converted); goto out_of_memory; }); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (characters < width && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; default: abort (); } } #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL) || ENABLE_WCHAR_FALLBACK) && HAVE_WCHAR_T else if (dp->conversion == 's' # if WIDE_CHAR_VERSION && a.arg[dp->arg_index].type != TYPE_WIDE_STRING # else && a.arg[dp->arg_index].type == TYPE_WIDE_STRING # endif ) { /* The normal handling of the 's' directive below requires allocating a temporary buffer. The determination of its length (tmp_length), in the case when a precision is specified, below requires a conversion between a char[] string and a wchar_t[] wide string. It could be done, but we have no guarantee that the implementation of sprintf will use the exactly same algorithm. Without this guarantee, it is possible to have buffer overrun bugs. In order to avoid such bugs, we implement the entire processing of the 's' directive ourselves. */ int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } # if WIDE_CHAR_VERSION /* %s in vasnwprintf. See the specification of fwprintf. */ { const char *arg = a.arg[dp->arg_index].a.a_string; const char *arg_end; size_t characters; if (has_precision) { /* Use only as many bytes as needed to produce PRECISION wide characters, from the left. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) /* Invalid or incomplete multibyte character. */ goto fail_with_EILSEQ; arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of wide characters. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) /* Invalid or incomplete multibyte character. */ goto fail_with_EILSEQ; arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (characters < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } if (has_precision || has_width) { /* We know the number of wide characters in advance. */ size_t remaining; # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; remaining--) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); result[length++] = wc; arg += count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); ENSURE_ALLOCATION (xsum (length, 1)); result[length++] = wc; arg += count; } } if (characters < width && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # else /* %ls in vasnprintf. See the specification of fprintf. */ { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; const wchar_t *arg_end; size_t characters; # if !DCHAR_IS_TCHAR /* This code assumes that TCHAR_T is 'char'. */ verify (sizeof (TCHAR_T) == 1); TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; # endif size_t w; if (has_precision) { /* Use only as many wide characters as needed to produce at most PRECISION bytes, from the left. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; while (precision > 0) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; count = local_wcrtomb (cbuf, *arg_end, &state); if (count < 0) /* Cannot convert. */ goto fail_with_EILSEQ; if (precision < (unsigned int) count) break; arg_end++; characters += count; precision -= count; } } # if DCHAR_IS_TCHAR else if (has_width) # else else # endif { /* Use the entire string, and count the number of bytes. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; count = local_wcrtomb (cbuf, *arg_end, &state); if (count < 0) /* Cannot convert. */ goto fail_with_EILSEQ; arg_end++; characters += count; } } # if DCHAR_IS_TCHAR else { /* Use the entire string. */ arg_end = arg + local_wcslen (arg); /* The number of bytes doesn't matter. */ characters = 0; } # endif # if !DCHAR_IS_TCHAR /* Convert the string into a piece of temporary memory. */ tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); if (tmpsrc == NULL) goto out_of_memory; { TCHAR_T *tmpptr = tmpsrc; size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); count = local_wcrtomb (cbuf, *arg, &state); if (count <= 0) /* Inconsistency. */ abort (); memcpy (tmpptr, cbuf, count); tmpptr += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } /* Convert from TCHAR_T[] to DCHAR_T[]. */ tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, characters, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) { free (tmpsrc); goto fail_with_errno; } free (tmpsrc); # endif if (has_width) { # if ENABLE_UNISTDIO /* Outside POSIX, it's preferable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, characters); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = characters; # endif } else /* w doesn't matter. */ w = 0; if (w < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_TCHAR if (has_precision || has_width) { /* We know the number of bytes in advance. */ size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); count = local_wcrtomb (cbuf, *arg, &state); if (count <= 0) /* Inconsistency. */ abort (); memcpy (result + length, cbuf, count); length += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); count = local_wcrtomb (cbuf, *arg, &state); if (count <= 0) /* Cannot convert. */ goto fail_with_EILSEQ; ENSURE_ALLOCATION (xsum (length, count)); memcpy (result + length, cbuf, count); length += count; arg++; } } # else ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len), { free (tmpdst); goto out_of_memory; }); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); length += tmpdst_len; # endif if (w < width && (dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # endif } #endif #if ENABLE_WCHAR_FALLBACK && HAVE_WINT_T && !WIDE_CHAR_VERSION else if (dp->conversion == 'c' && a.arg[dp->arg_index].type == TYPE_WIDE_CHAR) { /* Implement the 'lc' directive ourselves, in order to provide the fallback that avoids EILSEQ. */ int flags = dp->flags; int has_width; size_t width; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } /* %lc in vasnprintf. See the specification of fprintf. */ { wchar_t arg = (wchar_t) a.arg[dp->arg_index].a.a_wide_char; size_t characters; # if !DCHAR_IS_TCHAR /* This code assumes that TCHAR_T is 'char'. */ verify (sizeof (TCHAR_T) == 1); TCHAR_T tmpsrc[64]; /* Assume MB_CUR_MAX <= 64. */ DCHAR_T *tmpdst; size_t tmpdst_len; # endif size_t w; # if DCHAR_IS_TCHAR if (has_width) # endif { /* Count the number of bytes. */ characters = 0; if (arg != 0) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif count = local_wcrtomb (cbuf, arg, &state); if (count < 0) /* Inconsistency. */ abort (); characters = count; } } # if DCHAR_IS_TCHAR else { /* The number of bytes doesn't matter. */ characters = 0; } # endif # if !DCHAR_IS_TCHAR /* Convert the string into a piece of temporary memory. */ if (characters > 0) /* implies arg != 0 */ { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif count = local_wcrtomb (cbuf, arg, &state); if (count <= 0) /* Inconsistency. */ abort (); memcpy (tmpsrc, cbuf, count); } /* Convert from TCHAR_T[] to DCHAR_T[]. */ tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, characters, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) goto fail_with_errno; # endif if (has_width) { # if ENABLE_UNISTDIO /* Outside POSIX, it's preferable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, characters); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = characters; # endif } else /* w doesn't matter. */ w = 0; if (w < width && !(dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_TCHAR if (has_width) { /* We know the number of bytes in advance. */ ENSURE_ALLOCATION (xsum (length, characters)); if (characters > 0) /* implies arg != 0 */ { int count; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif count = local_wcrtomb (result + length, arg, &state); if (count <= 0) /* Inconsistency. */ abort (); length += count; } } else { if (arg != 0) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif count = local_wcrtomb (cbuf, arg, &state); if (count <= 0) /* Inconsistency. */ abort (); ENSURE_ALLOCATION (xsum (length, count)); memcpy (result + length, cbuf, count); length += count; } } # else ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len), { free (tmpdst); goto out_of_memory; }); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); length += tmpdst_len; # endif if (w < width && (dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif ) # endif ) { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; size_t width; int has_precision; size_t precision; size_t tmp_length; size_t count; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* Allocate a temporary buffer of sufficient size. */ if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) ((LDBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) ((DBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; if (type == TYPE_LONGDOUBLE) { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; long double mantissa; if (arg > 0.0L) mantissa = printf_frexpl (arg, &exponent); else { exponent = 0; mantissa = 0.0L; } if (has_precision && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ long double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5L : tail > 0.5L) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0L; } if (tail != 0.0L) for (q = precision; q > 0; q--) tail *= 0.0625L; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0L || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0L) { mantissa *= 16.0L; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } END_LONG_DOUBLE_ROUNDING (); } # else abort (); # endif } else { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; double mantissa; if (arg > 0.0) mantissa = printf_frexp (arg, &exponent); else { exponent = 0; mantissa = 0.0; } if (has_precision && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5 : tail > 0.5) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0; } if (tail != 0.0) for (q = precision; q > 0; q--) tail *= 0.0625; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0 || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0) { mantissa *= 16.0; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } } # else abort (); # endif } /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ count = p - tmp; if (count < width) { size_t pad = width - count; DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'f' || dp->conversion == 'F' || dp->conversion == 'e' || dp->conversion == 'E' || dp->conversion == 'g' || dp->conversion == 'G' || dp->conversion == 'a' || dp->conversion == 'A') && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE || (a.arg[dp->arg_index].type == TYPE_DOUBLE /* The systems (mingw) which produce wrong output for Inf, -Inf, and NaN also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE /* Some systems produce wrong output for Inf, -Inf, and NaN. Some systems in this category (IRIX 5.3) also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif )) { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) arg_type type = a.arg[dp->arg_index].type; # endif int flags = dp->flags; size_t width; size_t count; int has_precision; size_t precision; size_t tmp_length; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* POSIX specifies the default precision to be 6 for %f, %F, %e, %E, but not for %g, %G. Implementations appear to use the same default precision also for %g, %G. But for %a, %A, the default precision is 0. */ if (!has_precision) if (!(dp->conversion == 'a' || dp->conversion == 'A')) precision = 6; /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE tmp_length = DBL_DIG + 1; # else tmp_length = 0; # endif if (tmp_length < precision) tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (!(isnanl (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10l (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE if (type == TYPE_DOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { double arg = a.arg[dp->arg_index].a.a_double; if (!(isnand (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10 (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_LONG_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_long_double (arg, precision); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0L) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0L. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)precision - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0L) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0L. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t ecount = exponent + 1; /* Note: count <= precision = ndigits. */ for (; ecount > 0; ecount--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t ecount = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; ecount > 0; ecount--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0L)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else if (dp->conversion == 'a' || dp->conversion == 'A') { *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion - 'A' + 'P'; *p++ = '+'; *p++ = '0'; } else abort (); # endif } END_LONG_DOUBLE_ROUNDING (); } } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE { double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_double (arg, precision); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)precision - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if defined _WIN32 && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if defined _WIN32 && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t ecount = exponent + 1; /* Note: ecount <= precision = ndigits. */ for (; ecount > 0; ecount--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t ecount = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; ecount > 0; ecount--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if defined _WIN32 && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if defined _WIN32 && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; /* Produce the same number of exponent digits as the native printf implementation. */ # if defined _WIN32 && ! defined __CYGWIN__ *p++ = '0'; # endif *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else abort (); # endif } } } # endif /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ count = p - tmp; if (count < width) { size_t pad = width - count; DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } #endif else { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int has_width; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION size_t width; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION int has_precision; size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION int prec_ourselves; #else # define prec_ourselves 0 #endif #if NEED_PRINTF_FLAG_LEFTADJUST # define pad_ourselves 1 #elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int pad_ourselves; #else # define pad_ourselves 0 #endif TCHAR_T *fbp; unsigned int prefix_count; int prefixes[2] IF_LINT (= { 0 }); int orig_errno; #if !USE_SNPRINTF size_t tmp_length; TCHAR_T tmpbuf[700]; TCHAR_T *tmp; #endif #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION has_width = 0; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; width = arg; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = -width; } } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION has_width = 1; #endif } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || NEED_PRINTF_UNBOUNDED_PRECISION has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } #endif /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION switch (dp->conversion) { case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': prec_ourselves = has_precision && (precision > 0); break; default: prec_ourselves = 0; break; } #endif /* Decide whether to perform the padding ourselves. */ #if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) switch (dp->conversion) { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need to perform the padding after this conversion. Functions with unistdio extensions perform the padding based on character count rather than element count. */ case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': # endif pad_ourselves = 1; break; default: pad_ourselves = prec_ourselves; break; } #endif #if !USE_SNPRINTF /* Allocate a temporary buffer of sufficient size for calling sprintf. */ tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (TCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } #endif /* Construct the format string for calling snprintf or sprintf. */ fbp = buf; *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING /* The underlying implementation doesn't support the ' flag. Produce no grouping characters in this case; this is acceptable because the grouping is locale dependent. */ #else if (flags & FLAG_GROUP) *fbp++ = '\''; #endif if (flags & FLAG_LEFT) *fbp++ = '-'; if (flags & FLAG_SHOWSIGN) *fbp++ = '+'; if (flags & FLAG_SPACE) *fbp++ = ' '; if (flags & FLAG_ALT) *fbp++ = '#'; #if __GLIBC__ >= 2 && !defined __UCLIBC__ if (flags & FLAG_LOCALIZED) *fbp++ = 'I'; #endif if (!pad_ourselves) { if (flags & FLAG_ZERO) *fbp++ = '0'; if (dp->width_start != dp->width_end) { size_t n = dp->width_end - dp->width_start; /* The width specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->width_start; do *fbp++ = *mp++; while (--n > 0); } } } if (!prec_ourselves) { if (dp->precision_start != dp->precision_end) { size_t n = dp->precision_end - dp->precision_start; /* The precision specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->precision_start; do *fbp++ = *mp++; while (--n > 0); } } } switch (type) { case TYPE_LONGLONGINT: case TYPE_ULONGLONGINT: #if defined _WIN32 && ! defined __CYGWIN__ *fbp++ = 'I'; *fbp++ = '6'; *fbp++ = '4'; break; #else *fbp++ = 'l'; #endif FALLTHROUGH; case TYPE_LONGINT: case TYPE_ULONGINT: #if HAVE_WINT_T case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T case TYPE_WIDE_STRING: #endif *fbp++ = 'l'; break; case TYPE_LONGDOUBLE: *fbp++ = 'L'; break; default: break; } #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') *fbp = 'f'; else #endif *fbp = dp->conversion; #if USE_SNPRINTF # if ((HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99) \ || ((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \ && !defined __UCLIBC__) \ || (defined __APPLE__ && defined __MACH__) \ || defined __ANDROID__ \ || (defined _WIN32 && ! defined __CYGWIN__)) /* On systems where we know that snprintf's return value conforms to ISO C 99 (HAVE_SNPRINTF_RETVAL_C99) and that snprintf always produces NUL-terminated strings (HAVE_SNPRINTF_TRUNCATION_C99), it is possible to avoid using %n. And it is desirable to do so, because more and more platforms no longer support %n, for "security reasons". In particular, the following platforms: - On glibc2 systems from 2004-10-18 or newer, the use of %n in format strings in writable memory may crash the program (if compiled with _FORTIFY_SOURCE=2). - On Mac OS X 10.13 or newer, the use of %n in format strings in writable memory by default crashes the program. - On Android, starting on 2018-03-07, the use of %n in format strings produces a fatal error (see ). On these platforms, HAVE_SNPRINTF_RETVAL_C99 and HAVE_SNPRINTF_TRUNCATION_C99 are 1. We have listed them explicitly in the condition above, in case of cross- compilation (just to be sure). */ /* On native Windows systems (such as mingw), we can avoid using %n because: - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, snprintf does not write more than the specified number of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes '4', '5', '6' into buf, not '4', '5', '\0'.) - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf allows us to recognize the case of an insufficient buffer size: it returns -1 in this case. On native Windows systems (such as mingw) where the OS is Windows Vista, the use of %n in format strings by default crashes the program. See and So we should avoid %n in this situation. */ fbp[1] = '\0'; # else /* AIX <= 5.1, HP-UX, IRIX, OSF/1, Solaris <= 9, BeOS */ fbp[1] = '%'; fbp[2] = 'n'; fbp[3] = '\0'; # endif #else fbp[1] = '\0'; #endif /* Construct the arguments for calling snprintf or sprintf. */ prefix_count = 0; if (!pad_ourselves && dp->width_arg_index != ARG_NONE) { if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; } if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) { if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; } #if USE_SNPRINTF /* The SNPRINTF result is appended after result[0..length]. The latter is an array of DCHAR_T; SNPRINTF appends an array of TCHAR_T to it. This is possible because sizeof (TCHAR_T) divides sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) /* Ensure that maxlen below will be >= 2. Needed on BeOS, where an snprintf() with maxlen==1 acts like sprintf(). */ ENSURE_ALLOCATION (xsum (length, (2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR)); /* Prepare checking whether snprintf returns the count via %n. */ *(TCHAR_T *) (result + length) = '\0'; #endif orig_errno = errno; for (;;) { int count = -1; #if USE_SNPRINTF int retcount = 0; size_t maxlen = allocated - length; /* SNPRINTF can fail if its second argument is > INT_MAX. */ if (maxlen > INT_MAX / TCHARS_PER_DCHAR) maxlen = INT_MAX / TCHARS_PER_DCHAR; maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ arg, &count); \ break; \ case 1: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], arg, &count); \ break; \ case 2: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], prefixes[1], arg, \ &count); \ break; \ default: \ abort (); \ } #else # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ count = sprintf (tmp, buf, arg); \ break; \ case 1: \ count = sprintf (tmp, buf, prefixes[0], arg); \ break; \ case 2: \ count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ arg); \ break; \ default: \ abort (); \ } #endif errno = 0; switch (type) { case TYPE_SCHAR: { int arg = a.arg[dp->arg_index].a.a_schar; SNPRINTF_BUF (arg); } break; case TYPE_UCHAR: { unsigned int arg = a.arg[dp->arg_index].a.a_uchar; SNPRINTF_BUF (arg); } break; case TYPE_SHORT: { int arg = a.arg[dp->arg_index].a.a_short; SNPRINTF_BUF (arg); } break; case TYPE_USHORT: { unsigned int arg = a.arg[dp->arg_index].a.a_ushort; SNPRINTF_BUF (arg); } break; case TYPE_INT: { int arg = a.arg[dp->arg_index].a.a_int; SNPRINTF_BUF (arg); } break; case TYPE_UINT: { unsigned int arg = a.arg[dp->arg_index].a.a_uint; SNPRINTF_BUF (arg); } break; case TYPE_LONGINT: { long int arg = a.arg[dp->arg_index].a.a_longint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGINT: { unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; SNPRINTF_BUF (arg); } break; case TYPE_LONGLONGINT: { long long int arg = a.arg[dp->arg_index].a.a_longlongint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGLONGINT: { unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; SNPRINTF_BUF (arg); } break; case TYPE_DOUBLE: { double arg = a.arg[dp->arg_index].a.a_double; SNPRINTF_BUF (arg); } break; case TYPE_LONGDOUBLE: { long double arg = a.arg[dp->arg_index].a.a_longdouble; SNPRINTF_BUF (arg); } break; case TYPE_CHAR: { int arg = a.arg[dp->arg_index].a.a_char; SNPRINTF_BUF (arg); } break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: { wint_t arg = a.arg[dp->arg_index].a.a_wide_char; SNPRINTF_BUF (arg); } break; #endif case TYPE_STRING: { const char *arg = a.arg[dp->arg_index].a.a_string; SNPRINTF_BUF (arg); } break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; SNPRINTF_BUF (arg); } break; #endif case TYPE_POINTER: { void *arg = a.arg[dp->arg_index].a.a_pointer; SNPRINTF_BUF (arg); } break; default: abort (); } #if USE_SNPRINTF /* Portability: Not all implementations of snprintf() are ISO C 99 compliant. Determine the number of bytes that snprintf() has produced or would have produced. */ if (count >= 0) { /* Verify that snprintf() has NUL-terminated its result. */ if ((unsigned int) count < maxlen && ((TCHAR_T *) (result + length)) [count] != '\0') abort (); /* Portability hack. */ if (retcount > count) count = retcount; } else { /* snprintf() doesn't understand the '%n' directive. */ if (fbp[1] != '\0') { /* Don't use the '%n' directive; instead, look at the snprintf() return value. */ fbp[1] = '\0'; continue; } else { /* Look at the snprintf() return value. */ if (retcount < 0) { # if !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF /* HP-UX 10.20 snprintf() is doubly deficient: It doesn't understand the '%n' directive, *and* it returns -1 (rather than the length that would have been required) when the buffer is too small. But a failure at this point can also come from other reasons than a too small buffer, such as an invalid wide string argument to the %ls directive, or possibly an invalid floating-point argument. */ size_t tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (maxlen < tmp_length) { /* Make more room. But try to do through this reallocation only once. */ size_t bigger_need = xsum (length, xsum (tmp_length, TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); /* And always grow proportionally. (There may be several arguments, each needing a little more room than the previous one.) */ size_t bigger_need2 = xsum (xtimes (allocated, 2), 12); if (bigger_need < bigger_need2) bigger_need = bigger_need2; ENSURE_ALLOCATION (bigger_need); continue; } # endif } else count = retcount; } } #endif /* Attempt to handle failure. */ if (count < 0) { /* SNPRINTF or sprintf failed. Use the errno that it has set, if any. */ if (errno == 0) { if (dp->conversion == 'c' || dp->conversion == 's') errno = EILSEQ; else errno = EINVAL; } goto fail_with_errno; } #if USE_SNPRINTF /* Handle overflow of the allocated buffer. If such an overflow occurs, a C99 compliant snprintf() returns a count >= maxlen. However, a non-compliant snprintf() function returns only count = maxlen - 1. To cover both cases, test whether count >= maxlen - 1. */ if ((unsigned int) count + 1 >= maxlen) { /* If maxlen already has attained its allowed maximum, allocating more memory will not increase maxlen. Instead of looping, bail out. */ if (maxlen == INT_MAX / TCHARS_PER_DCHAR) goto overflow; else { /* Need at least (count + 1) * sizeof (TCHAR_T) bytes. (The +1 is for the trailing NUL.) But ask for (count + 2) * sizeof (TCHAR_T) bytes, so that in the next round, we likely get maxlen > (unsigned int) count + 1 and so we don't get here again. And allocate proportionally, to avoid looping eternally if snprintf() reports a too small count. */ size_t n = xmax (xsum (length, ((unsigned int) count + 2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); continue; } } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION if (prec_ourselves) { /* Handle the precision. */ TCHAR_T *prec_ptr = # if USE_SNPRINTF (TCHAR_T *) (result + length); # else tmp; # endif size_t prefix_count; size_t move; prefix_count = 0; /* Put the additional zeroes after the sign. */ if (count >= 1 && (*prec_ptr == '-' || *prec_ptr == '+' || *prec_ptr == ' ')) prefix_count = 1; /* Put the additional zeroes after the 0x prefix if (flags & FLAG_ALT) || (dp->conversion == 'p'). */ else if (count >= 2 && prec_ptr[0] == '0' && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) prefix_count = 2; move = count - prefix_count; if (precision > move) { /* Insert zeroes. */ size_t insert = precision - move; TCHAR_T *prec_end; # if USE_SNPRINTF size_t n = xsum (length, (count + insert + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; ENSURE_ALLOCATION (n); length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; prec_ptr = (TCHAR_T *) (result + length); # endif prec_end = prec_ptr + count; prec_ptr += prefix_count; while (prec_end > prec_ptr) { prec_end--; prec_end[insert] = prec_end[0]; } prec_end += insert; do *--prec_end = '0'; while (prec_end > prec_ptr); count += insert; } } #endif #if !USE_SNPRINTF if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); #endif #if !DCHAR_IS_TCHAR /* Convert from TCHAR_T[] to DCHAR_T[]. */ if (dp->conversion == 'c' || dp->conversion == 's') { /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING TYPE_WIDE_STRING. The result string is not certainly ASCII. */ const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; /* This code assumes that TCHAR_T is 'char'. */ verify (sizeof (TCHAR_T) == 1); # if USE_SNPRINTF tmpsrc = (TCHAR_T *) (result + length); # else tmpsrc = tmp; # endif tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, count, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) goto fail_with_errno; ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len), { free (tmpdst); goto out_of_memory; }); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); count = tmpdst_len; } else { /* The result string is ASCII. Simple 1:1 conversion. */ # if USE_SNPRINTF /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a no-op conversion, in-place on the array starting at (result + length). */ if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) # endif { const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t n; # if USE_SNPRINTF if (result == resultbuf) { tmpsrc = (TCHAR_T *) (result + length); /* ENSURE_ALLOCATION will not move tmpsrc (because it's part of resultbuf). */ ENSURE_ALLOCATION (xsum (length, count)); } else { /* ENSURE_ALLOCATION will move the array (because it uses realloc(). */ ENSURE_ALLOCATION (xsum (length, count)); tmpsrc = (TCHAR_T *) (result + length); } # else tmpsrc = tmp; ENSURE_ALLOCATION (xsum (length, count)); # endif tmpdst = result + length; /* Copy backwards, because of overlapping. */ tmpsrc += count; tmpdst += count; for (n = count; n > 0; n--) *--tmpdst = *--tmpsrc; } } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF /* Make room for the result. */ if (count > allocated - length) { /* Need at least count elements. But allocate proportionally. */ size_t n = xmax (xsum (length, count), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); } #endif /* Here count <= allocated - length. */ /* Perform padding. */ #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION if (pad_ourselves && has_width) { size_t w; # if ENABLE_UNISTDIO /* Outside POSIX, it's preferable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, count); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = count; # endif if (w < width) { size_t pad = width - w; /* Make room for the result. */ if (xsum (count, pad) > allocated - length) { /* Need at least count + pad elements. But allocate proportionally. */ size_t n = xmax (xsum3 (length, count, pad), xtimes (allocated, 2)); # if USE_SNPRINTF length += count; ENSURE_ALLOCATION (n); length -= count; # else ENSURE_ALLOCATION (n); # endif } /* Here count + pad <= allocated - length. */ { # if !DCHAR_IS_TCHAR || USE_SNPRINTF DCHAR_T * const rp = result + length; # else DCHAR_T * const rp = tmp; # endif DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */ pad_ptr = NULL; else # endif { pad_ptr = (*rp == '-' ? rp + 1 : rp); /* No zero-padding of "inf" and "nan". */ if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) pad_ptr = NULL; } /* The generated string now extends from rp to p, with the zero padding insertion point being at pad_ptr. */ count = count + pad; /* = end - rp */ if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > rp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } } } } #endif /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF /* The snprintf() result did fit. */ #else /* Append the sprintf() result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF if (tmp != tmpbuf) free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') { /* Convert the %f result to upper case for %F. */ DCHAR_T *rp = result + length; size_t rc; for (rc = count; rc > 0; rc--, rp++) if (*rp >= 'a' && *rp <= 'z') *rp = *rp - 'a' + 'A'; } #endif length += count; break; } errno = orig_errno; #undef pad_ourselves #undef prec_ourselves } } } /* Add the final NUL. */ ENSURE_ALLOCATION (xsum (length, 1)); result[length] = '\0'; if (result != resultbuf && length + 1 < allocated) { /* Shrink the allocated memory if possible. */ DCHAR_T *memory; memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); if (memory != NULL) result = memory; } if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); *lengthp = length; /* Note that we can produce a big string of a length > INT_MAX. POSIX says that snprintf() fails with errno = EOVERFLOW in this case, but that's only because snprintf() returns an 'int'. This function does not have this limitation. */ return result; #if USE_SNPRINTF overflow: errno = EOVERFLOW; goto fail_with_errno; #endif out_of_memory: errno = ENOMEM; goto fail_with_errno; #if ENABLE_UNISTDIO || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL) || ENABLE_WCHAR_FALLBACK) && HAVE_WCHAR_T) fail_with_EILSEQ: errno = EILSEQ; goto fail_with_errno; #endif fail_with_errno: if (result != resultbuf) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); return NULL; } out_of_memory_1: errno = ENOMEM; goto fail_1_with_errno; fail_1_with_EINVAL: errno = EINVAL; goto fail_1_with_errno; fail_1_with_errno: CLEANUP (); return NULL; } #undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF #undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef DCHAR_IS_TCHAR #undef TCHAR_T #undef DCHAR_T #undef FCHAR_T #undef VASNPRINTF shishi-1.0.3/lib/gl/gc-libgcrypt.c0000644000000000000000000004360514273615122013606 00000000000000/* gc-libgcrypt.c --- Crypto wrappers around Libgcrypt for GC. * Copyright (C) 2002-2022 Free Software Foundation, Inc. * * This file is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * */ /* Note: This file is only built if GC uses Libgcrypt. */ #include /* Get prototype. */ #include "gc.h" #include #include /* Get libgcrypt API. */ #include #if GNULIB_GC_MD2 /* libgcrypt declares GCRY_MD_MD2 but does not actually implement the MD2 algorithm. Therefore take the implementation from gnulib. */ # include "md2.h" #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 # include "sm3.h" #endif #include #ifndef MIN_GCRYPT_VERSION # define MIN_GCRYPT_VERSION "1.4.4" #endif /* Initialization. */ Gc_rc gc_init (void) { gcry_error_t err; err = gcry_control (GCRYCTL_ANY_INITIALIZATION_P); if (err == GPG_ERR_NO_ERROR) { if (gcry_control (GCRYCTL_DISABLE_SECMEM, NULL, 0)) return GC_INIT_ERROR; if (gcry_check_version (MIN_GCRYPT_VERSION) == NULL) return GC_INIT_ERROR; err = gcry_control (GCRYCTL_INITIALIZATION_FINISHED, NULL, 0); if (err != GPG_ERR_NO_ERROR) return GC_INIT_ERROR; } return GC_OK; } void gc_done (void) { return; } #if GNULIB_GC_RANDOM /* Randomness. */ Gc_rc gc_nonce (char *data, size_t datalen) { gcry_create_nonce ((unsigned char *) data, datalen); return GC_OK; } Gc_rc gc_pseudo_random (char *data, size_t datalen) { gcry_randomize ((unsigned char *) data, datalen, GCRY_STRONG_RANDOM); return GC_OK; } Gc_rc gc_random (char *data, size_t datalen) { gcry_randomize ((unsigned char *) data, datalen, GCRY_VERY_STRONG_RANDOM); return GC_OK; } #endif /* Memory allocation. */ void gc_set_allocators (gc_malloc_t func_malloc, gc_malloc_t secure_malloc, gc_secure_check_t secure_check, gc_realloc_t func_realloc, gc_free_t func_free) { gcry_set_allocation_handler (func_malloc, secure_malloc, secure_check, func_realloc, func_free); } /* Ciphers. */ Gc_rc gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode, gc_cipher_handle * outhandle) { int gcryalg, gcrymode; gcry_error_t err; switch (alg) { case GC_AES128: gcryalg = GCRY_CIPHER_RIJNDAEL; break; case GC_AES192: gcryalg = GCRY_CIPHER_RIJNDAEL; break; case GC_AES256: gcryalg = GCRY_CIPHER_RIJNDAEL256; break; case GC_3DES: gcryalg = GCRY_CIPHER_3DES; break; case GC_DES: gcryalg = GCRY_CIPHER_DES; break; case GC_ARCFOUR128: case GC_ARCFOUR40: gcryalg = GCRY_CIPHER_ARCFOUR; break; case GC_ARCTWO40: gcryalg = GCRY_CIPHER_RFC2268_40; break; #ifdef HAVE_CAMELLIA case GC_CAMELLIA128: gcryalg = GCRY_CIPHER_CAMELLIA128; break; case GC_CAMELLIA256: gcryalg = GCRY_CIPHER_CAMELLIA256; break; #endif default: return GC_INVALID_CIPHER; } switch (mode) { case GC_ECB: gcrymode = GCRY_CIPHER_MODE_ECB; break; case GC_CBC: gcrymode = GCRY_CIPHER_MODE_CBC; break; case GC_STREAM: gcrymode = GCRY_CIPHER_MODE_STREAM; break; default: return GC_INVALID_CIPHER; } err = gcry_cipher_open ((gcry_cipher_hd_t *) outhandle, gcryalg, gcrymode, 0); if (gcry_err_code (err)) return GC_INVALID_CIPHER; return GC_OK; } Gc_rc gc_cipher_setkey (gc_cipher_handle handle, size_t keylen, const char *key) { gcry_error_t err; err = gcry_cipher_setkey ((gcry_cipher_hd_t) handle, key, keylen); if (gcry_err_code (err)) return GC_INVALID_CIPHER; return GC_OK; } Gc_rc gc_cipher_setiv (gc_cipher_handle handle, size_t ivlen, const char *iv) { gcry_error_t err; err = gcry_cipher_setiv ((gcry_cipher_hd_t) handle, iv, ivlen); if (gcry_err_code (err)) return GC_INVALID_CIPHER; return GC_OK; } Gc_rc gc_cipher_encrypt_inline (gc_cipher_handle handle, size_t len, char *data) { if (gcry_cipher_encrypt ((gcry_cipher_hd_t) handle, data, len, NULL, len) != 0) return GC_INVALID_CIPHER; return GC_OK; } Gc_rc gc_cipher_decrypt_inline (gc_cipher_handle handle, size_t len, char *data) { if (gcry_cipher_decrypt ((gcry_cipher_hd_t) handle, data, len, NULL, len) != 0) return GC_INVALID_CIPHER; return GC_OK; } Gc_rc gc_cipher_close (gc_cipher_handle handle) { gcry_cipher_close (handle); return GC_OK; } /* Hashes. */ /* Maximum of GC_MD2_DIGEST_SIZE and GC_SM3_DIGEST_SIZE. */ #define MAX_DIGEST_SIZE 32 typedef struct _gc_hash_ctx { Gc_hash alg; Gc_hash_mode mode; gcry_md_hd_t gch; #if GNULIB_GC_MD2 || (GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3) char hash[MAX_DIGEST_SIZE]; #endif #if GNULIB_GC_MD2 struct md2_ctx md2Context; #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 struct sm3_ctx sm3Context; #endif } _gc_hash_ctx; Gc_rc gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle * outhandle) { _gc_hash_ctx *ctx; int gcryalg = 0, gcrymode = 0; gcry_error_t err; Gc_rc rc = GC_OK; ctx = calloc (sizeof (*ctx), 1); if (!ctx) return GC_MALLOC_ERROR; ctx->alg = hash; ctx->mode = mode; switch (hash) { #if GNULIB_GC_MD2 case GC_MD2: /* Not needed, because ctx is already zero-initialized. */ /*md2_init_ctx (&ctx->md2Context);*/ gcryalg = GCRY_MD_NONE; break; #endif case GC_MD4: gcryalg = GCRY_MD_MD4; break; case GC_MD5: gcryalg = GCRY_MD_MD5; break; case GC_SHA1: gcryalg = GCRY_MD_SHA1; break; case GC_SHA256: gcryalg = GCRY_MD_SHA256; break; case GC_SHA384: gcryalg = GCRY_MD_SHA384; break; case GC_SHA512: gcryalg = GCRY_MD_SHA512; break; case GC_SHA224: gcryalg = GCRY_MD_SHA224; break; case GC_RMD160: gcryalg = GCRY_MD_RMD160; break; #if GNULIB_GC_SM3 case GC_SM3: # if LIBGCRYPT_HAS_MD_SM3 gcryalg = GCRY_MD_SM3; # else sm3_init_ctx (&ctx->sm3Context); gcryalg = GCRY_MD_NONE; # endif break; #endif default: rc = GC_INVALID_HASH; } switch (mode) { case GC_NULL: gcrymode = 0; break; case GC_HMAC: gcrymode = GCRY_MD_FLAG_HMAC; break; default: rc = GC_INVALID_HASH; } if (rc == GC_OK && gcryalg != GCRY_MD_NONE) { err = gcry_md_open (&ctx->gch, gcryalg, gcrymode); if (gcry_err_code (err)) rc = GC_INVALID_HASH; } if (rc == GC_OK) *outhandle = ctx; else free (ctx); return rc; } Gc_rc gc_hash_clone (gc_hash_handle handle, gc_hash_handle * outhandle) { _gc_hash_ctx *in = handle; _gc_hash_ctx *out; int err; *outhandle = out = calloc (sizeof (*out), 1); if (!out) return GC_MALLOC_ERROR; memcpy (out, in, sizeof (*out)); err = gcry_md_copy (&out->gch, in->gch); if (err) { free (out); return GC_INVALID_HASH; } return GC_OK; } size_t gc_hash_digest_length (Gc_hash hash) { size_t len; switch (hash) { case GC_MD2: len = GC_MD2_DIGEST_SIZE; break; case GC_MD4: len = GC_MD4_DIGEST_SIZE; break; case GC_MD5: len = GC_MD5_DIGEST_SIZE; break; case GC_RMD160: len = GC_RMD160_DIGEST_SIZE; break; case GC_SHA1: len = GC_SHA1_DIGEST_SIZE; break; case GC_SHA256: len = GC_SHA256_DIGEST_SIZE; break; case GC_SHA384: len = GC_SHA384_DIGEST_SIZE; break; case GC_SHA512: len = GC_SHA512_DIGEST_SIZE; break; case GC_SHA224: len = GC_SHA224_DIGEST_SIZE; break; case GC_SM3: len = GC_SM3_DIGEST_SIZE; break; default: return 0; } return len; } void gc_hash_hmac_setkey (gc_hash_handle handle, size_t len, const char *key) { _gc_hash_ctx *ctx = handle; #if GNULIB_GC_MD2 if (ctx->alg != GC_MD2) #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 if (ctx->alg != GC_SM3) #endif gcry_md_setkey (ctx->gch, key, len); } void gc_hash_write (gc_hash_handle handle, size_t len, const char *data) { _gc_hash_ctx *ctx = handle; #if GNULIB_GC_MD2 if (ctx->alg == GC_MD2) md2_process_bytes (data, len, &ctx->md2Context); else #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 if (ctx->alg == GC_SM3) sm3_process_bytes (data, len, &ctx->sm3Context); else #endif gcry_md_write (ctx->gch, data, len); } const char * gc_hash_read (gc_hash_handle handle) { _gc_hash_ctx *ctx = handle; const char *digest; #if GNULIB_GC_MD2 if (ctx->alg == GC_MD2) { md2_finish_ctx (&ctx->md2Context, ctx->hash); digest = ctx->hash; } else #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 if (ctx->alg == GC_SM3) { sm3_finish_ctx (&ctx->sm3Context, ctx->hash); digest = ctx->hash; } else #endif { gcry_md_final (ctx->gch); digest = (const char *) gcry_md_read (ctx->gch, 0); } return digest; } void gc_hash_close (gc_hash_handle handle) { _gc_hash_ctx *ctx = handle; #if GNULIB_GC_MD2 if (ctx->alg != GC_MD2) #endif #if GNULIB_GC_SM3 && !LIBGCRYPT_HAS_MD_SM3 if (ctx->alg != GC_SM3) #endif gcry_md_close (ctx->gch); free (ctx); } Gc_rc gc_hash_buffer (Gc_hash hash, const void *in, size_t inlen, char *resbuf) { int gcryalg; switch (hash) { #if GNULIB_GC_MD2 case GC_MD2: md2_buffer (in, inlen, resbuf); return GC_OK; #endif #if GNULIB_GC_MD4 case GC_MD4: gcryalg = GCRY_MD_MD4; break; #endif #if GNULIB_GC_MD5 case GC_MD5: gcryalg = GCRY_MD_MD5; break; #endif #if GNULIB_GC_SHA1 case GC_SHA1: gcryalg = GCRY_MD_SHA1; break; #endif #if GNULIB_GC_SHA256 case GC_SHA256: gcryalg = GCRY_MD_SHA256; break; #endif #if GNULIB_GC_SHA384 case GC_SHA384: gcryalg = GCRY_MD_SHA384; break; #endif #if GNULIB_GC_SHA512 case GC_SHA512: gcryalg = GCRY_MD_SHA512; break; #endif #if GNULIB_GC_SHA224 case GC_SHA224: gcryalg = GCRY_MD_SHA224; break; #endif #if GNULIB_GC_RMD160 case GC_RMD160: gcryalg = GCRY_MD_RMD160; break; #endif #if GNULIB_GC_SM3 case GC_SM3: # if !LIBGCRYPT_HAS_MD_SM3 sm3_buffer (in, inlen, resbuf); return GC_OK; # else gcryalg = GCRY_MD_SM3; break; # endif #endif default: return GC_INVALID_HASH; } gcry_md_hash_buffer (gcryalg, resbuf, in, inlen); return GC_OK; } /* One-call interface. */ #if GNULIB_GC_MD2 Gc_rc gc_md2 (const void *in, size_t inlen, void *resbuf) { md2_buffer (in, inlen, resbuf); return GC_OK; } #endif #if GNULIB_GC_MD4 Gc_rc gc_md4 (const void *in, size_t inlen, void *resbuf) { size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_MD4); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_MD4_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_MD4, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_MD4); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; } #endif #if GNULIB_GC_MD5 Gc_rc gc_md5 (const void *in, size_t inlen, void *resbuf) { size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_MD5); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_MD5_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_MD5, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_MD5); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; } #endif #if GNULIB_GC_SHA1 Gc_rc gc_sha1 (const void *in, size_t inlen, void *resbuf) { size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_SHA1); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_SHA1_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_SHA1, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_SHA1); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; } #endif #if GNULIB_GC_SHA256 Gc_rc gc_sha256 (const void *in, size_t inlen, void *resbuf) { size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_SHA256); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_SHA256_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_SHA256, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_SHA256); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; } #endif #if GNULIB_GC_SHA512 Gc_rc gc_sha512 (const void *in, size_t inlen, void *resbuf) { size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_SHA512); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_SHA512_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_SHA512, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_SHA512); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; } #endif #if GNULIB_GC_SM3 Gc_rc gc_sm3 (const void *in, size_t inlen, void *resbuf) { # if !LIBGCRYPT_HAS_MD_SM3 sm3_buffer (in, inlen, resbuf); return GC_OK; # else size_t outlen = gcry_md_get_algo_dlen (GCRY_MD_SM3); gcry_md_hd_t hd; gpg_error_t err; unsigned char *p; assert (outlen == GC_SM3_DIGEST_SIZE); err = gcry_md_open (&hd, GCRY_MD_SM3, 0); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; gcry_md_write (hd, in, inlen); p = gcry_md_read (hd, GCRY_MD_SM3); if (p == NULL) { gcry_md_close (hd); return GC_INVALID_HASH; } memcpy (resbuf, p, outlen); gcry_md_close (hd); return GC_OK; # endif } #endif #if GNULIB_GC_HMAC_MD5 Gc_rc gc_hmac_md5 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { size_t hlen = gcry_md_get_algo_dlen (GCRY_MD_MD5); gcry_md_hd_t mdh; unsigned char *hash; gpg_error_t err; assert (hlen == GC_MD5_DIGEST_SIZE); err = gcry_md_open (&mdh, GCRY_MD_MD5, GCRY_MD_FLAG_HMAC); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; err = gcry_md_setkey (mdh, key, keylen); if (err != GPG_ERR_NO_ERROR) { gcry_md_close (mdh); return GC_INVALID_HASH; } gcry_md_write (mdh, in, inlen); hash = gcry_md_read (mdh, GCRY_MD_MD5); if (hash == NULL) { gcry_md_close (mdh); return GC_INVALID_HASH; } memcpy (resbuf, hash, hlen); gcry_md_close (mdh); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA1 Gc_rc gc_hmac_sha1 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { size_t hlen = gcry_md_get_algo_dlen (GCRY_MD_SHA1); gcry_md_hd_t mdh; unsigned char *hash; gpg_error_t err; assert (hlen == GC_SHA1_DIGEST_SIZE); err = gcry_md_open (&mdh, GCRY_MD_SHA1, GCRY_MD_FLAG_HMAC); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; err = gcry_md_setkey (mdh, key, keylen); if (err != GPG_ERR_NO_ERROR) { gcry_md_close (mdh); return GC_INVALID_HASH; } gcry_md_write (mdh, in, inlen); hash = gcry_md_read (mdh, GCRY_MD_SHA1); if (hash == NULL) { gcry_md_close (mdh); return GC_INVALID_HASH; } memcpy (resbuf, hash, hlen); gcry_md_close (mdh); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA256 Gc_rc gc_hmac_sha256 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { size_t hlen = gcry_md_get_algo_dlen (GCRY_MD_SHA256); gcry_md_hd_t mdh; unsigned char *hash; gpg_error_t err; assert (hlen == GC_SHA256_DIGEST_SIZE); err = gcry_md_open (&mdh, GCRY_MD_SHA256, GCRY_MD_FLAG_HMAC); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; err = gcry_md_setkey (mdh, key, keylen); if (err != GPG_ERR_NO_ERROR) { gcry_md_close (mdh); return GC_INVALID_HASH; } gcry_md_write (mdh, in, inlen); hash = gcry_md_read (mdh, GCRY_MD_SHA256); if (hash == NULL) { gcry_md_close (mdh); return GC_INVALID_HASH; } memcpy (resbuf, hash, hlen); gcry_md_close (mdh); return GC_OK; } #endif #if GNULIB_GC_HMAC_SHA512 Gc_rc gc_hmac_sha512 (const void *key, size_t keylen, const void *in, size_t inlen, char *resbuf) { size_t hlen = gcry_md_get_algo_dlen (GCRY_MD_SHA512); gcry_md_hd_t mdh; unsigned char *hash; gpg_error_t err; assert (hlen == GC_SHA512_DIGEST_SIZE); err = gcry_md_open (&mdh, GCRY_MD_SHA512, GCRY_MD_FLAG_HMAC); if (err != GPG_ERR_NO_ERROR) return GC_INVALID_HASH; err = gcry_md_setkey (mdh, key, keylen); if (err != GPG_ERR_NO_ERROR) { gcry_md_close (mdh); return GC_INVALID_HASH; } gcry_md_write (mdh, in, inlen); hash = gcry_md_read (mdh, GCRY_MD_SHA512); if (hash == NULL) { gcry_md_close (mdh); return GC_INVALID_HASH; } memcpy (resbuf, hash, hlen); gcry_md_close (mdh); return GC_OK; } #endif shishi-1.0.3/lib/gl/af_alg.h0000644000000000000000000000670414273615121012434 00000000000000/* af_alg.h - Compute message digests from file streams and buffers. Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Matteo Croce , 2018. Documentation by Bruno Haible , 2018. */ /* Declare specific functions for computing message digests using the Linux kernel crypto API, if available. This kernel API gives access to specialized crypto instructions (that would also be available in user space) or to crypto devices (not directly available in user space). For a more complete set of facilities that use the Linux kernel crypto API, look at libkcapi. */ #ifndef AF_ALG_H # define AF_ALG_H 1 # include # include # ifdef __cplusplus extern "C" { # endif # if USE_LINUX_CRYPTO_API /* Compute a message digest of a memory region. The memory region starts at BUFFER and is LEN bytes long. ALG is the message digest algorithm; see the file /proc/crypto. RESBLOCK points to a block of HASHLEN bytes, for the result. HASHLEN must be the length of the message digest, in bytes, in particular: alg | hashlen -------+-------- md5 | 16 sha1 | 20 sha224 | 28 sha256 | 32 sha384 | 48 sha512 | 64 If successful, fill RESBLOCK and return 0. Upon failure, return a negated error number. */ int afalg_buffer (const char *buffer, size_t len, const char *alg, void *resblock, ssize_t hashlen); /* Compute a message digest of data read from STREAM. STREAM is an open file stream. The last operation on STREAM should not be 'ungetc', and if STREAM is also open for writing it should have been fflushed since its last write. Read from the current position to the end of STREAM. Handle regular files efficiently. ALG is the message digest algorithm; see the file /proc/crypto. RESBLOCK points to a block of HASHLEN bytes, for the result. HASHLEN must be the length of the message digest, in bytes, in particular: alg | hashlen -------+-------- md5 | 16 sha1 | 20 sha224 | 28 sha256 | 32 sha384 | 48 sha512 | 64 If successful, fill RESBLOCK and return 0. Upon failure, return a negated error number. Unless returning 0 or -EIO, restore STREAM's file position so that the caller can fall back on some other method. */ int afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen); # else static inline int afalg_buffer (const char *buffer, size_t len, const char *alg, void *resblock, ssize_t hashlen) { return -EAFNOSUPPORT; } static inline int afalg_stream (FILE *stream, const char *alg, void *resblock, ssize_t hashlen) { return -EAFNOSUPPORT; } # endif # ifdef __cplusplus } # endif #endif /* AF_ALG_H */ shishi-1.0.3/lib/gl/stdbool.in.h0000644000000000000000000001201114273615123013264 00000000000000/* Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_STDBOOL_H #define _GL_STDBOOL_H /* ISO C 99 for platforms that lack it. */ /* Usage suggestions: Programs that use should be aware of some limitations and standards compliance issues. Standards compliance: - must be #included before 'bool', 'false', 'true' can be used. - You cannot assume that sizeof (bool) == 1. - Programs should not undefine the macros bool, true, and false, as C99 lists that as an "obsolescent feature". Limitations of this substitute, when used in a C89 environment: - must be #included before the '_Bool' type can be used. - You cannot assume that _Bool is a typedef; it might be a macro. - Bit-fields of type 'bool' are not supported. Portable code should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'. - In C99, casts and automatic conversions to '_Bool' or 'bool' are performed in such a way that every nonzero value gets converted to 'true', and zero gets converted to 'false'. This doesn't work with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. - C99 allows the use of (_Bool)0.0 in constant expressions, but this substitute cannot always provide this property. Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ /* 7.16. Boolean type and values */ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ #if defined __BEOS__ && !defined __HAIKU__ # include /* defines bool but not _Bool */ # undef false # undef true #endif #ifdef __cplusplus # define _Bool bool # define bool bool #else # if defined __BEOS__ && !defined __HAIKU__ /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ # if !@HAVE__BOOL@ typedef bool _Bool; # endif # else # if !defined __GNUC__ /* If @HAVE__BOOL@: Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when the built-in _Bool type is used. See https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html https://lists.gnu.org/r/bug-coreutils/2005-10/msg00086.html Similar bugs are likely with other compilers as well; this file wouldn't be used if was working. So we override the _Bool type. If !@HAVE__BOOL@: Need to define _Bool ourselves. As 'signed char' or as an enum type? Use of a typedef, with SunPRO C, leads to a stupid "warning: _Bool is a keyword in ISO C99". Use of an enum type, with IRIX cc, leads to a stupid "warning(1185): enumerated type mixed with another type". Even the existence of an enum type, without a typedef, "Invalid enumerator. (badenum)" with HP-UX cc on Tru64. The only benefit of the enum, debuggability, is not important with these compilers. So use 'signed char' and no enum. */ # define _Bool signed char # else /* With this compiler, trust the _Bool type if the compiler has it. */ # if !@HAVE__BOOL@ /* For the sake of symbolic names in gdb, define true and false as enum constants, not only as macros. It is tempting to write typedef enum { false = 0, true = 1 } _Bool; so that gdb prints values of type 'bool' symbolically. But then values of type '_Bool' might promote to 'int' or 'unsigned int' (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; # endif # endif # endif # define bool _Bool #endif /* The other macros must be usable in preprocessor directives. */ #ifdef __cplusplus # define false false # define true true #else # define false 0 # define true 1 #endif #define __bool_true_false_are_defined 1 #endif /* _GL_STDBOOL_H */ shishi-1.0.3/lib/gl/select.c0000644000000000000000000004071014273615123012472 00000000000000/* Emulation for select(2) Contributed by Paolo Bonzini. Copyright 2008-2022 Free Software Foundation, Inc. This file is part of gnulib. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if defined _WIN32 && ! defined __CYGWIN__ /* Native Windows. */ #include #include #include #include #include #include #include #include #include #include #include /* Get the overridden 'struct timeval'. */ #include #if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" #else # include #endif #undef select /* Don't assume that UNICODE is not defined. */ #undef GetModuleHandle #define GetModuleHandle GetModuleHandleA #undef PeekConsoleInput #define PeekConsoleInput PeekConsoleInputA #undef CreateEvent #define CreateEvent CreateEventA #undef PeekMessage #define PeekMessage PeekMessageA #undef DispatchMessage #define DispatchMessage DispatchMessageA /* Avoid warnings from gcc -Wcast-function-type. */ #define GetProcAddress \ (void *) GetProcAddress struct bitset { unsigned char in[FD_SETSIZE / CHAR_BIT]; unsigned char out[FD_SETSIZE / CHAR_BIT]; }; /* Declare data structures for ntdll functions. */ typedef struct _FILE_PIPE_LOCAL_INFORMATION { ULONG NamedPipeType; ULONG NamedPipeConfiguration; ULONG MaximumInstances; ULONG CurrentInstances; ULONG InboundQuota; ULONG ReadDataAvailable; ULONG OutboundQuota; ULONG WriteQuotaAvailable; ULONG NamedPipeState; ULONG NamedPipeEnd; } FILE_PIPE_LOCAL_INFORMATION, *PFILE_PIPE_LOCAL_INFORMATION; typedef struct _IO_STATUS_BLOCK { union { DWORD Status; PVOID Pointer; } u; ULONG_PTR Information; } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK; typedef enum _FILE_INFORMATION_CLASS { FilePipeLocalInformation = 24 } FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS; typedef DWORD (WINAPI *PNtQueryInformationFile) (HANDLE, IO_STATUS_BLOCK *, VOID *, ULONG, FILE_INFORMATION_CLASS); #ifndef PIPE_BUF #define PIPE_BUF 512 #endif static BOOL IsConsoleHandle (HANDLE h) { DWORD mode; return GetConsoleMode (h, &mode) != 0; } static BOOL IsSocketHandle (HANDLE h) { WSANETWORKEVENTS ev; if (IsConsoleHandle (h)) return FALSE; /* Under Wine, it seems that getsockopt returns 0 for pipes too. WSAEnumNetworkEvents instead distinguishes the two correctly. */ ev.lNetworkEvents = 0xDEADBEEF; WSAEnumNetworkEvents ((SOCKET) h, NULL, &ev); return ev.lNetworkEvents != 0xDEADBEEF; } /* Compute output fd_sets for libc descriptor FD (whose Windows handle is H). */ static int windows_poll_handle (HANDLE h, int fd, struct bitset *rbits, struct bitset *wbits, struct bitset *xbits) { BOOL read, write, except; int i, ret; INPUT_RECORD *irbuffer; DWORD avail, nbuffer; BOOL bRet; IO_STATUS_BLOCK iosb; FILE_PIPE_LOCAL_INFORMATION fpli; static PNtQueryInformationFile NtQueryInformationFile; static BOOL once_only; read = write = except = FALSE; switch (GetFileType (h)) { case FILE_TYPE_DISK: read = TRUE; write = TRUE; break; case FILE_TYPE_PIPE: if (!once_only) { NtQueryInformationFile = (PNtQueryInformationFile) GetProcAddress (GetModuleHandle ("ntdll.dll"), "NtQueryInformationFile"); once_only = TRUE; } if (PeekNamedPipe (h, NULL, 0, NULL, &avail, NULL) != 0) { if (avail) read = TRUE; } else if (GetLastError () == ERROR_BROKEN_PIPE) ; else { /* It was the write-end of the pipe. Check if it is writable. If NtQueryInformationFile fails, optimistically assume the pipe is writable. This could happen on Windows 9x, where NtQueryInformationFile is not available, or if we inherit a pipe that doesn't permit FILE_READ_ATTRIBUTES access on the write end (I think this should not happen since Windows XP SP2; WINE seems fine too). Otherwise, ensure that enough space is available for atomic writes. */ memset (&iosb, 0, sizeof (iosb)); memset (&fpli, 0, sizeof (fpli)); if (!NtQueryInformationFile || NtQueryInformationFile (h, &iosb, &fpli, sizeof (fpli), FilePipeLocalInformation) || fpli.WriteQuotaAvailable >= PIPE_BUF || (fpli.OutboundQuota < PIPE_BUF && fpli.WriteQuotaAvailable == fpli.OutboundQuota)) write = TRUE; } break; case FILE_TYPE_CHAR: write = TRUE; if (!(rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) break; ret = WaitForSingleObject (h, 0); if (ret == WAIT_OBJECT_0) { if (!IsConsoleHandle (h)) { read = TRUE; break; } nbuffer = avail = 0; bRet = GetNumberOfConsoleInputEvents (h, &nbuffer); /* Screen buffers handles are filtered earlier. */ assert (bRet); if (nbuffer == 0) { except = TRUE; break; } irbuffer = (INPUT_RECORD *) alloca (nbuffer * sizeof (INPUT_RECORD)); bRet = PeekConsoleInput (h, irbuffer, nbuffer, &avail); if (!bRet || avail == 0) { except = TRUE; break; } for (i = 0; i < avail; i++) if (irbuffer[i].EventType == KEY_EVENT) read = TRUE; } break; default: ret = WaitForSingleObject (h, 0); write = TRUE; if (ret == WAIT_OBJECT_0) read = TRUE; break; } ret = 0; if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) { rbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); ret++; } if (write && (wbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) { wbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); ret++; } if (except && (xbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) { xbits->out[fd / CHAR_BIT] |= (1 << (fd & (CHAR_BIT - 1))); ret++; } return ret; } int rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, struct timeval *timeout) #undef timeval { static struct timeval tv0; static HANDLE hEvent; HANDLE h, handle_array[FD_SETSIZE + 2]; fd_set handle_rfds, handle_wfds, handle_xfds; struct bitset rbits, wbits, xbits; unsigned char anyfds_in[FD_SETSIZE / CHAR_BIT]; DWORD ret, wait_timeout, nhandles, nsock, nbuffer; MSG msg; int i, fd, rc; clock_t tend; if (nfds > FD_SETSIZE) nfds = FD_SETSIZE; if (!timeout) wait_timeout = INFINITE; else { wait_timeout = timeout->tv_sec * 1000 + timeout->tv_usec / 1000; /* select is also used as a portable usleep. */ if (!rfds && !wfds && !xfds) { Sleep (wait_timeout); return 0; } } if (!hEvent) hEvent = CreateEvent (NULL, FALSE, FALSE, NULL); handle_array[0] = hEvent; nhandles = 1; nsock = 0; /* Copy descriptors to bitsets. At the same time, eliminate bits in the "wrong" direction for console input buffers and screen buffers, because screen buffers are waitable and they will block until a character is available. */ memset (&rbits, 0, sizeof (rbits)); memset (&wbits, 0, sizeof (wbits)); memset (&xbits, 0, sizeof (xbits)); memset (anyfds_in, 0, sizeof (anyfds_in)); if (rfds) for (i = 0; i < rfds->fd_count; i++) { fd = rfds->fd_array[i]; h = (HANDLE) _get_osfhandle (fd); if (IsConsoleHandle (h) && !GetNumberOfConsoleInputEvents (h, &nbuffer)) continue; rbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); } else rfds = (fd_set *) alloca (sizeof (fd_set)); if (wfds) for (i = 0; i < wfds->fd_count; i++) { fd = wfds->fd_array[i]; h = (HANDLE) _get_osfhandle (fd); if (IsConsoleHandle (h) && GetNumberOfConsoleInputEvents (h, &nbuffer)) continue; wbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); } else wfds = (fd_set *) alloca (sizeof (fd_set)); if (xfds) for (i = 0; i < xfds->fd_count; i++) { fd = xfds->fd_array[i]; xbits.in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); anyfds_in[fd / CHAR_BIT] |= 1 << (fd & (CHAR_BIT - 1)); } else xfds = (fd_set *) alloca (sizeof (fd_set)); /* Zero all the fd_sets, including the application's. */ FD_ZERO (rfds); FD_ZERO (wfds); FD_ZERO (xfds); FD_ZERO (&handle_rfds); FD_ZERO (&handle_wfds); FD_ZERO (&handle_xfds); /* Classify handles. Create fd sets for sockets, poll the others. */ for (i = 0; i < nfds; i++) { if ((anyfds_in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) == 0) continue; h = (HANDLE) _get_osfhandle (i); if (!h) { errno = EBADF; return -1; } if (IsSocketHandle (h)) { int requested = FD_CLOSE; /* See above; socket handles are mapped onto select, but we need to map descriptors to handles. */ if (rbits.in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) { requested |= FD_READ | FD_ACCEPT; FD_SET ((SOCKET) h, rfds); FD_SET ((SOCKET) h, &handle_rfds); } if (wbits.in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) { requested |= FD_WRITE | FD_CONNECT; FD_SET ((SOCKET) h, wfds); FD_SET ((SOCKET) h, &handle_wfds); } if (xbits.in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) { requested |= FD_OOB; FD_SET ((SOCKET) h, xfds); FD_SET ((SOCKET) h, &handle_xfds); } WSAEventSelect ((SOCKET) h, hEvent, requested); nsock++; } else { handle_array[nhandles++] = h; /* Poll now. If we get an event, do not wait below. */ if (wait_timeout != 0 && windows_poll_handle (h, i, &rbits, &wbits, &xbits)) wait_timeout = 0; } } /* Place a sentinel at the end of the array. */ handle_array[nhandles] = NULL; /* When will the waiting period expire? */ if (wait_timeout != INFINITE) tend = clock () + wait_timeout; restart: if (wait_timeout == 0 || nsock == 0) rc = 0; else { /* See if we need to wait in the loop below. If any select is ready, do MsgWaitForMultipleObjects anyway to dispatch messages, but no need to call select again. */ rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); if (rc == 0) { /* Restore the fd_sets for the other select we do below. */ memcpy (&handle_rfds, rfds, sizeof (fd_set)); memcpy (&handle_wfds, wfds, sizeof (fd_set)); memcpy (&handle_xfds, xfds, sizeof (fd_set)); } else wait_timeout = 0; } /* How much is left to wait? */ if (wait_timeout != INFINITE) { clock_t tnow = clock (); if (tend >= tnow) wait_timeout = tend - tnow; else wait_timeout = 0; } for (;;) { ret = MsgWaitForMultipleObjects (nhandles, handle_array, FALSE, wait_timeout, QS_ALLINPUT); if (ret == WAIT_OBJECT_0 + nhandles) { /* new input of some other kind */ BOOL bRet; while ((bRet = PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) != 0) { TranslateMessage (&msg); DispatchMessage (&msg); } } else break; } /* If we haven't done it yet, check the status of the sockets. */ if (rc == 0 && nsock > 0) rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); if (nhandles > 1) { /* Count results that are not counted in the return value of select. */ nhandles = 1; for (i = 0; i < nfds; i++) { if ((anyfds_in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) == 0) continue; h = (HANDLE) _get_osfhandle (i); if (h == handle_array[nhandles]) { /* Not a socket. */ nhandles++; windows_poll_handle (h, i, &rbits, &wbits, &xbits); if (rbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1))) || wbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1))) || xbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) rc++; } } if (rc == 0 && (wait_timeout == INFINITE /* If NHANDLES > 1, but no bits are set, it means we've been told incorrectly that some handle was signaled. This happens with anonymous pipes, which always cause MsgWaitForMultipleObjects to exit immediately, but no data is found ready to be read by windows_poll_handle. To avoid a total failure (whereby we return zero and don't wait at all), let's poll in a more busy loop. */ || (wait_timeout != 0 && nhandles > 1))) { /* Sleep 1 millisecond to avoid busy wait and retry with the original fd_sets. */ memcpy (&handle_rfds, rfds, sizeof (fd_set)); memcpy (&handle_wfds, wfds, sizeof (fd_set)); memcpy (&handle_xfds, xfds, sizeof (fd_set)); SleepEx (1, TRUE); goto restart; } if (timeout && wait_timeout == 0 && rc == 0) timeout->tv_sec = timeout->tv_usec = 0; } /* Now fill in the results. */ FD_ZERO (rfds); FD_ZERO (wfds); FD_ZERO (xfds); nhandles = 1; for (i = 0; i < nfds; i++) { if ((anyfds_in[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) == 0) continue; h = (HANDLE) _get_osfhandle (i); if (h != handle_array[nhandles]) { /* Perform handle->descriptor mapping. */ SOCKET s = (SOCKET) h; WSAEventSelect (s, NULL, 0); if (FD_ISSET (s, &handle_rfds)) FD_SET (i, rfds); if (FD_ISSET (s, &handle_wfds)) FD_SET (i, wfds); if (FD_ISSET (s, &handle_xfds)) FD_SET (i, xfds); } else { /* Not a socket. */ nhandles++; if (rbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) FD_SET (i, rfds); if (wbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) FD_SET (i, wfds); if (xbits.out[i / CHAR_BIT] & (1 << (i & (CHAR_BIT - 1)))) FD_SET (i, xfds); } } return rc; } #else /* ! Native Windows. */ #include /* NULL */ #include #include #undef select int rpl_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, struct timeval *timeout) { int i; /* FreeBSD 8.2 has a bug: it does not always detect invalid fds. */ if (nfds < 0 || nfds > FD_SETSIZE) { errno = EINVAL; return -1; } for (i = 0; i < nfds; i++) { if (((rfds && FD_ISSET (i, rfds)) || (wfds && FD_ISSET (i, wfds)) || (xfds && FD_ISSET (i, xfds))) && dup2 (i, i) != i) return -1; } /* Interix 3.5 has a bug: it does not support nfds == 0. */ if (nfds == 0) { nfds = 1; rfds = NULL; wfds = NULL; xfds = NULL; } return select (nfds, rfds, wfds, xfds, timeout); } #endif shishi-1.0.3/lib/gl/stat-time.h0000644000000000000000000001702414273615123013131 00000000000000/* stat-related time functions. Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #ifndef STAT_TIME_H #define STAT_TIME_H 1 #include "intprops.h" #include #include #include #include #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_STAT_TIME_INLINE # define _GL_STAT_TIME_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif /* STAT_TIMESPEC (ST, ST_XTIM) is the ST_XTIM member for *ST of type struct timespec, if available. If not, then STAT_TIMESPEC_NS (ST, ST_XTIM) is the nanosecond component of the ST_XTIM member for *ST, if available. ST_XTIM can be st_atim, st_ctim, st_mtim, or st_birthtim for access, status change, data modification, or birth (creation) time respectively. These macros are private to stat-time.h. */ #if _GL_WINDOWS_STAT_TIMESPEC || defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC # if _GL_WINDOWS_STAT_TIMESPEC || defined TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim) # else # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.tv_nsec) # endif #elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim##espec) #elif defined HAVE_STRUCT_STAT_ST_ATIMENSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim##ensec) #elif defined HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.st__tim.tv_nsec) #endif /* Return the nanosecond component of *ST's access time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_atime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_atim); # else return 0; # endif } /* Return the nanosecond component of *ST's status change time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_ctime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_ctim); # else return 0; # endif } /* Return the nanosecond component of *ST's data modification time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_mtime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_mtim); # else return 0; # endif } /* Return the nanosecond component of *ST's birth time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_birthtime_ns (_GL_UNUSED struct stat const *st) { # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC return STAT_TIMESPEC (st, st_birthtim).tv_nsec; # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC return STAT_TIMESPEC_NS (st, st_birthtim); # else return 0; # endif } /* Return *ST's access time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_atime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim); #else struct timespec t; t.tv_sec = st->st_atime; t.tv_nsec = get_stat_atime_ns (st); return t; #endif } /* Return *ST's status change time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_ctime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim); #else struct timespec t; t.tv_sec = st->st_ctime; t.tv_nsec = get_stat_ctime_ns (st); return t; #endif } /* Return *ST's data modification time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_mtime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim); #else struct timespec t; t.tv_sec = st->st_mtime; t.tv_nsec = get_stat_mtime_ns (st); return t; #endif } /* Return *ST's birth time, if available; otherwise return a value with tv_sec and tv_nsec both equal to -1. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_birthtime (_GL_UNUSED struct stat const *st) { struct timespec t; #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC) t = STAT_TIMESPEC (st, st_birthtim); #elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC t.tv_sec = st->st_birthtime; t.tv_nsec = st->st_birthtimensec; #elif defined _WIN32 && ! defined __CYGWIN__ /* Native Windows platforms (but not Cygwin) put the "file creation time" in st_ctime (!). See . */ # if _GL_WINDOWS_STAT_TIMESPEC t = st->st_ctim; # else t.tv_sec = st->st_ctime; t.tv_nsec = 0; # endif #else /* Birth time is not supported. */ t.tv_sec = -1; t.tv_nsec = -1; #endif #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC) /* FreeBSD and NetBSD sometimes signal the absence of knowledge by using zero. Attempt to work around this problem. Alas, this can report failure even for valid timestamps. Also, NetBSD sometimes returns junk in the birth time fields; work around this bug if it is detected. */ if (! (t.tv_sec && 0 <= t.tv_nsec && t.tv_nsec < 1000000000)) { t.tv_sec = -1; t.tv_nsec = -1; } #endif return t; } /* If a stat-like function returned RESULT, normalize the timestamps in *ST, in case this platform suffers from the Solaris 11 bug where tv_nsec might be negative. Return the adjusted RESULT, setting errno to EOVERFLOW if normalization overflowed. This function is intended to be private to this .h file. */ _GL_STAT_TIME_INLINE int stat_time_normalize (int result, _GL_UNUSED struct stat *st) { #if defined __sun && defined STAT_TIMESPEC if (result == 0) { long int timespec_hz = 1000000000; short int const ts_off[] = { offsetof (struct stat, st_atim), offsetof (struct stat, st_mtim), offsetof (struct stat, st_ctim) }; int i; for (i = 0; i < sizeof ts_off / sizeof *ts_off; i++) { struct timespec *ts = (struct timespec *) ((char *) st + ts_off[i]); long int q = ts->tv_nsec / timespec_hz; long int r = ts->tv_nsec % timespec_hz; if (r < 0) { r += timespec_hz; q--; } ts->tv_nsec = r; /* Overflow is possible, as Solaris 11 stat can yield tv_sec == TYPE_MINIMUM (time_t) && tv_nsec == -1000000000. INT_ADD_WRAPV is OK, since time_t is signed on Solaris. */ if (INT_ADD_WRAPV (q, ts->tv_sec, &ts->tv_sec)) { errno = EOVERFLOW; return -1; } } } #endif return result; } #ifdef __cplusplus } #endif _GL_INLINE_HEADER_END #endif shishi-1.0.3/lib/gl/parse-datetime.c0000644000000000000000000040253114273615267014133 00000000000000/* A Bison parser, made by GNU Bison 3.7.5. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual, especially those whose name start with YY_ or yy_. They are private implementation details that can be changed or removed. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output, and Bison version. */ #define YYBISON 30705 /* Bison version string. */ #define YYBISON_VERSION "3.7.5" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 1 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* First part of user prologue. */ #line 1 "parse-datetime.y" /* Parse a string into an internal timestamp. Copyright (C) 1999-2000, 2002-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* Originally written by Steven M. Bellovin while at the University of North Carolina at Chapel Hill. Later tweaked by a couple of people on Usenet. Completely overhauled by Rich $alz and Jim Berets in August, 1990. Modified by Assaf Gordon in 2016 to add debug output. Modified by Paul Eggert in 1999 to do the right thing about local DST. Also modified by Paul Eggert in 2004 to support nanosecond-resolution timestamps, in 2004 to support TZ strings in dates, and in 2017 and 2020 to check for integer overflow and to support longer-than-'long' 'time_t' and 'tv_nsec'. */ #include #include "parse-datetime.h" #include "idx.h" #include "intprops.h" #include "timespec.h" #include "verify.h" #include "strftime.h" /* There's no need to extend the stack, so there's no need to involve alloca. */ #define YYSTACK_USE_ALLOCA 0 /* Tell Bison how much stack space is needed. 20 should be plenty for this grammar, which is not right recursive. Beware setting it too high, since that might cause problems on machines whose implementations have lame stack-overflow checking. */ #define YYMAXDEPTH 20 #define YYINITDEPTH YYMAXDEPTH #include #include #include #include #include #include #include "gettext.h" #define _(str) gettext (str) /* Bison's skeleton tests _STDLIB_H, while some stdlib.h headers use _STDLIB_H_ as witness. Map the latter to the one bison uses. */ /* FIXME: this is temporary. Remove when we have a mechanism to ensure that the version we're using is fixed, too. */ #ifdef _STDLIB_H_ # undef _STDLIB_H # define _STDLIB_H 1 #endif /* Shift A right by B bits portably, by dividing A by 2**B and truncating towards minus infinity. A and B should be free of side effects, and B should be in the range 0 <= B <= INT_BITS - 2, where INT_BITS is the number of useful bits in an int. GNU code can assume that INT_BITS is at least 32. ISO C99 says that A >> B is implementation-defined if A < 0. Some implementations (e.g., UNICOS 9.0 on a Cray Y-MP EL) don't shift right in the usual way when A < 0, so SHR falls back on division if ordinary A >> B doesn't seem to be the usual signed shift. */ #define SHR(a, b) \ (-1 >> 1 == -1 \ ? (a) >> (b) \ : (a) / (1 << (b)) - ((a) % (1 << (b)) < 0)) #define HOUR(x) (60 * 60 * (x)) #define STREQ(a, b) (strcmp (a, b) == 0) /* Verify that time_t is an integer as POSIX requires, and that every time_t value fits in intmax_t. Please file a bug report if these assumptions are false on your platform. */ verify (TYPE_IS_INTEGER (time_t)); verify (!TYPE_SIGNED (time_t) || INTMAX_MIN <= TYPE_MINIMUM (time_t)); verify (TYPE_MAXIMUM (time_t) <= INTMAX_MAX); /* True if N is out of range for time_t. */ static bool time_overflow (intmax_t n) { return ! ((TYPE_SIGNED (time_t) ? TYPE_MINIMUM (time_t) <= n : 0 <= n) && n <= TYPE_MAXIMUM (time_t)); } /* Convert a possibly-signed character to an unsigned character. This is a bit safer than casting to unsigned char, since it catches some type errors that the cast doesn't. */ static unsigned char to_uchar (char ch) { return ch; } static void _GL_ATTRIBUTE_FORMAT ((__printf__, 1, 2)) dbg_printf (char const *msg, ...) { va_list args; /* TODO: use gnulib's 'program_name' instead? */ fputs ("date: ", stderr); va_start (args, msg); vfprintf (stderr, msg, args); va_end (args); } /* An integer value, and the number of digits in its textual representation. */ typedef struct { bool negative; intmax_t value; idx_t digits; } textint; /* An entry in the lexical lookup table. */ typedef struct { char const *name; int type; int value; } table; /* Meridian: am, pm, or 24-hour style. */ enum { MERam, MERpm, MER24 }; /* A reasonable upper bound for the buffer used in debug output. */ enum { DBGBUFSIZE = 100 }; enum { BILLION = 1000000000, LOG10_BILLION = 9 }; /* Relative times. */ typedef struct { /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ intmax_t year; intmax_t month; intmax_t day; intmax_t hour; intmax_t minutes; intmax_t seconds; int ns; } relative_time; #if HAVE_COMPOUND_LITERALS # define RELATIVE_TIME_0 ((relative_time) { 0, 0, 0, 0, 0, 0, 0 }) #else static relative_time const RELATIVE_TIME_0; #endif /* Information passed to and from the parser. */ typedef struct { /* The input string remaining to be parsed. */ const char *input; /* N, if this is the Nth Tuesday. */ intmax_t day_ordinal; /* Day of week; Sunday is 0. */ int day_number; /* tm_isdst flag for the local zone. */ int local_isdst; /* Time zone, in seconds east of UT. */ int time_zone; /* Style used for time. */ int meridian; /* Gregorian year, month, day, hour, minutes, seconds, and nanoseconds. */ textint year; intmax_t month; intmax_t day; intmax_t hour; intmax_t minutes; struct timespec seconds; /* includes nanoseconds */ /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ relative_time rel; /* Presence or counts of nonterminals of various flavors parsed so far. */ bool timespec_seen; bool rels_seen; idx_t dates_seen; idx_t days_seen; idx_t J_zones_seen; idx_t local_zones_seen; idx_t dsts_seen; idx_t times_seen; idx_t zones_seen; bool year_seen; #ifdef GNULIB_PARSE_DATETIME2 /* Print debugging output to stderr. */ bool parse_datetime_debug; #endif /* Which of the 'seen' parts have been printed when debugging. */ bool debug_dates_seen; bool debug_days_seen; bool debug_local_zones_seen; bool debug_times_seen; bool debug_zones_seen; bool debug_year_seen; /* The user specified explicit ordinal day value. */ bool debug_ordinal_day_seen; /* Table of local time zone abbreviations, terminated by a null entry. */ table local_time_zone_table[3]; } parser_control; static bool debugging (parser_control const *pc) { #ifdef GNULIB_PARSE_DATETIME2 return pc->parse_datetime_debug; #else return false; #endif } union YYSTYPE; static int yylex (union YYSTYPE *, parser_control *); static int yyerror (parser_control const *, char const *); static bool time_zone_hhmm (parser_control *, textint, intmax_t); /* Extract into *PC any date and time info from a string of digits of the form e.g., YYYYMMDD, YYMMDD, HHMM, HH (and sometimes YYY, YYYY, ...). */ static void digits_to_date_time (parser_control *pc, textint text_int) { if (pc->dates_seen && ! pc->year.digits && ! pc->rels_seen && (pc->times_seen || 2 < text_int.digits)) { pc->year_seen = true; pc->year = text_int; } else { if (4 < text_int.digits) { pc->dates_seen++; pc->day = text_int.value % 100; pc->month = (text_int.value / 100) % 100; pc->year.value = text_int.value / 10000; pc->year.digits = text_int.digits - 4; } else { pc->times_seen++; if (text_int.digits <= 2) { pc->hour = text_int.value; pc->minutes = 0; } else { pc->hour = text_int.value / 100; pc->minutes = text_int.value % 100; } pc->seconds.tv_sec = 0; pc->seconds.tv_nsec = 0; pc->meridian = MER24; } } } /* Increment PC->rel by FACTOR * REL (FACTOR is 1 or -1). Return true if successful, false if an overflow occurred. */ static bool apply_relative_time (parser_control *pc, relative_time rel, int factor) { if (factor < 0 ? (INT_SUBTRACT_WRAPV (pc->rel.ns, rel.ns, &pc->rel.ns) | INT_SUBTRACT_WRAPV (pc->rel.seconds, rel.seconds, &pc->rel.seconds) | INT_SUBTRACT_WRAPV (pc->rel.minutes, rel.minutes, &pc->rel.minutes) | INT_SUBTRACT_WRAPV (pc->rel.hour, rel.hour, &pc->rel.hour) | INT_SUBTRACT_WRAPV (pc->rel.day, rel.day, &pc->rel.day) | INT_SUBTRACT_WRAPV (pc->rel.month, rel.month, &pc->rel.month) | INT_SUBTRACT_WRAPV (pc->rel.year, rel.year, &pc->rel.year)) : (INT_ADD_WRAPV (pc->rel.ns, rel.ns, &pc->rel.ns) | INT_ADD_WRAPV (pc->rel.seconds, rel.seconds, &pc->rel.seconds) | INT_ADD_WRAPV (pc->rel.minutes, rel.minutes, &pc->rel.minutes) | INT_ADD_WRAPV (pc->rel.hour, rel.hour, &pc->rel.hour) | INT_ADD_WRAPV (pc->rel.day, rel.day, &pc->rel.day) | INT_ADD_WRAPV (pc->rel.month, rel.month, &pc->rel.month) | INT_ADD_WRAPV (pc->rel.year, rel.year, &pc->rel.year))) return false; pc->rels_seen = true; return true; } /* Set PC-> hour, minutes, seconds and nanoseconds members from arguments. */ static void set_hhmmss (parser_control *pc, intmax_t hour, intmax_t minutes, time_t sec, int nsec) { pc->hour = hour; pc->minutes = minutes; pc->seconds.tv_sec = sec; pc->seconds.tv_nsec = nsec; } /* Return a textual representation of the day ordinal/number values in the parser_control struct (e.g., "last wed", "this tues", "thu"). */ static const char * str_days (parser_control *pc, char *buffer, int n) { /* TODO: use relative_time_table for reverse lookup. */ static char const ordinal_values[][11] = { "last", "this", "next/first", "(SECOND)", /* SECOND is commented out in relative_time_table. */ "third", "fourth", "fifth", "sixth", "seventh", "eight", "ninth", "tenth", "eleventh", "twelfth" }; static char const days_values[][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; int len; /* Don't add an ordinal prefix if the user didn't specify it (e.g., "this wed" vs "wed"). */ if (pc->debug_ordinal_day_seen) { /* Use word description if possible (e.g., -1 = last, 3 = third). */ len = (-1 <= pc->day_ordinal && pc->day_ordinal <= 12 ? snprintf (buffer, n, "%s", ordinal_values[pc->day_ordinal + 1]) : snprintf (buffer, n, "%"PRIdMAX, pc->day_ordinal)); } else { buffer[0] = '\0'; len = 0; } /* Add the day name */ if (0 <= pc->day_number && pc->day_number <= 6 && 0 <= len && len < n) snprintf (buffer + len, n - len, &" %s"[len == 0], days_values[pc->day_number]); else { /* invalid day_number value - should never happen */ } return buffer; } /* Convert a time zone to its string representation. */ enum { TIME_ZONE_BUFSIZE = INT_STRLEN_BOUND (intmax_t) + sizeof ":MM:SS" } ; static char const * time_zone_str (int time_zone, char time_zone_buf[TIME_ZONE_BUFSIZE]) { char *p = time_zone_buf; char sign = time_zone < 0 ? '-' : '+'; int hour = abs (time_zone / (60 * 60)); p += sprintf (time_zone_buf, "%c%02d", sign, hour); int offset_from_hour = abs (time_zone % (60 * 60)); if (offset_from_hour != 0) { int mm = offset_from_hour / 60; int ss = offset_from_hour % 60; *p++ = ':'; *p++ = '0' + mm / 10; *p++ = '0' + mm % 10; if (ss) { *p++ = ':'; *p++ = '0' + ss / 10; *p++ = '0' + ss % 10; } *p = '\0'; } return time_zone_buf; } /* debugging: print the current time in the parser_control structure. The parser will increment "*_seen" members for those which were parsed. This function will print only newly seen parts. */ static void debug_print_current_time (char const *item, parser_control *pc) { bool space = false; if (!debugging (pc)) return; /* no newline, more items printed below */ dbg_printf (_("parsed %s part: "), item); if (pc->dates_seen && !pc->debug_dates_seen) { /*TODO: use pc->year.negative? */ fprintf (stderr, "(Y-M-D) %04"PRIdMAX"-%02"PRIdMAX"-%02"PRIdMAX, pc->year.value, pc->month, pc->day); pc->debug_dates_seen = true; space = true; } if (pc->year_seen != pc->debug_year_seen) { if (space) fputc (' ', stderr); fprintf (stderr, _("year: %04"PRIdMAX), pc->year.value); pc->debug_year_seen = pc->year_seen; space = true; } if (pc->times_seen && !pc->debug_times_seen) { intmax_t sec = pc->seconds.tv_sec; fprintf (stderr, &" %02"PRIdMAX":%02"PRIdMAX":%02"PRIdMAX[!space], pc->hour, pc->minutes, sec); if (pc->seconds.tv_nsec != 0) { int nsec = pc->seconds.tv_nsec; fprintf (stderr, ".%09d", nsec); } if (pc->meridian == MERpm) fputs ("pm", stderr); pc->debug_times_seen = true; space = true; } if (pc->days_seen && !pc->debug_days_seen) { if (space) fputc (' ', stderr); char tmp[DBGBUFSIZE]; fprintf (stderr, _("%s (day ordinal=%"PRIdMAX" number=%d)"), str_days (pc, tmp, sizeof tmp), pc->day_ordinal, pc->day_number); pc->debug_days_seen = true; space = true; } /* local zone strings only change the DST settings, not the timezone value. If seen, inform about the DST. */ if (pc->local_zones_seen && !pc->debug_local_zones_seen) { fprintf (stderr, &" isdst=%d%s"[!space], pc->local_isdst, pc->dsts_seen ? " DST" : ""); pc->debug_local_zones_seen = true; space = true; } if (pc->zones_seen && !pc->debug_zones_seen) { char time_zone_buf[TIME_ZONE_BUFSIZE]; fprintf (stderr, &" UTC%s"[!space], time_zone_str (pc->time_zone, time_zone_buf)); pc->debug_zones_seen = true; space = true; } if (pc->timespec_seen) { intmax_t sec = pc->seconds.tv_sec; if (space) fputc (' ', stderr); fprintf (stderr, _("number of seconds: %"PRIdMAX), sec); } fputc ('\n', stderr); } /* Debugging: print the current relative values. */ static bool print_rel_part (bool space, intmax_t val, char const *name) { if (val == 0) return space; fprintf (stderr, &" %+"PRIdMAX" %s"[!space], val, name); return true; } static void debug_print_relative_time (char const *item, parser_control const *pc) { bool space = false; if (!debugging (pc)) return; /* no newline, more items printed below */ dbg_printf (_("parsed %s part: "), item); if (pc->rel.year == 0 && pc->rel.month == 0 && pc->rel.day == 0 && pc->rel.hour == 0 && pc->rel.minutes == 0 && pc->rel.seconds == 0 && pc->rel.ns == 0) { /* Special case: relative time of this/today/now */ fputs (_("today/this/now\n"), stderr); return; } space = print_rel_part (space, pc->rel.year, "year(s)"); space = print_rel_part (space, pc->rel.month, "month(s)"); space = print_rel_part (space, pc->rel.day, "day(s)"); space = print_rel_part (space, pc->rel.hour, "hour(s)"); space = print_rel_part (space, pc->rel.minutes, "minutes"); space = print_rel_part (space, pc->rel.seconds, "seconds"); print_rel_part (space, pc->rel.ns, "nanoseconds"); fputc ('\n', stderr); } #line 627 "parse-datetime.c" # ifndef YY_CAST # ifdef __cplusplus # define YY_CAST(Type, Val) static_cast (Val) # define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast (Val) # else # define YY_CAST(Type, Val) ((Type) (Val)) # define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) # endif # endif # ifndef YY_NULLPTR # if defined __cplusplus # if 201103L <= __cplusplus # define YY_NULLPTR nullptr # else # define YY_NULLPTR 0 # endif # else # define YY_NULLPTR ((void*)0) # endif # endif #include "parse-datetime-gen.h" /* Symbol kind. */ enum yysymbol_kind_t { YYSYMBOL_YYEMPTY = -2, YYSYMBOL_YYEOF = 0, /* "end of file" */ YYSYMBOL_YYerror = 1, /* error */ YYSYMBOL_YYUNDEF = 2, /* "invalid token" */ YYSYMBOL_tAGO = 3, /* tAGO */ YYSYMBOL_tDST = 4, /* tDST */ YYSYMBOL_tYEAR_UNIT = 5, /* tYEAR_UNIT */ YYSYMBOL_tMONTH_UNIT = 6, /* tMONTH_UNIT */ YYSYMBOL_tHOUR_UNIT = 7, /* tHOUR_UNIT */ YYSYMBOL_tMINUTE_UNIT = 8, /* tMINUTE_UNIT */ YYSYMBOL_tSEC_UNIT = 9, /* tSEC_UNIT */ YYSYMBOL_tDAY_UNIT = 10, /* tDAY_UNIT */ YYSYMBOL_tDAY_SHIFT = 11, /* tDAY_SHIFT */ YYSYMBOL_tDAY = 12, /* tDAY */ YYSYMBOL_tDAYZONE = 13, /* tDAYZONE */ YYSYMBOL_tLOCAL_ZONE = 14, /* tLOCAL_ZONE */ YYSYMBOL_tMERIDIAN = 15, /* tMERIDIAN */ YYSYMBOL_tMONTH = 16, /* tMONTH */ YYSYMBOL_tORDINAL = 17, /* tORDINAL */ YYSYMBOL_tZONE = 18, /* tZONE */ YYSYMBOL_tSNUMBER = 19, /* tSNUMBER */ YYSYMBOL_tUNUMBER = 20, /* tUNUMBER */ YYSYMBOL_tSDECIMAL_NUMBER = 21, /* tSDECIMAL_NUMBER */ YYSYMBOL_tUDECIMAL_NUMBER = 22, /* tUDECIMAL_NUMBER */ YYSYMBOL_23_ = 23, /* '@' */ YYSYMBOL_24_J_ = 24, /* 'J' */ YYSYMBOL_25_T_ = 25, /* 'T' */ YYSYMBOL_26_ = 26, /* ':' */ YYSYMBOL_27_ = 27, /* ',' */ YYSYMBOL_28_ = 28, /* '/' */ YYSYMBOL_YYACCEPT = 29, /* $accept */ YYSYMBOL_spec = 30, /* spec */ YYSYMBOL_timespec = 31, /* timespec */ YYSYMBOL_items = 32, /* items */ YYSYMBOL_item = 33, /* item */ YYSYMBOL_datetime = 34, /* datetime */ YYSYMBOL_iso_8601_datetime = 35, /* iso_8601_datetime */ YYSYMBOL_time = 36, /* time */ YYSYMBOL_iso_8601_time = 37, /* iso_8601_time */ YYSYMBOL_o_zone_offset = 38, /* o_zone_offset */ YYSYMBOL_zone_offset = 39, /* zone_offset */ YYSYMBOL_local_zone = 40, /* local_zone */ YYSYMBOL_zone = 41, /* zone */ YYSYMBOL_day = 42, /* day */ YYSYMBOL_date = 43, /* date */ YYSYMBOL_iso_8601_date = 44, /* iso_8601_date */ YYSYMBOL_rel = 45, /* rel */ YYSYMBOL_relunit = 46, /* relunit */ YYSYMBOL_relunit_snumber = 47, /* relunit_snumber */ YYSYMBOL_dayshift = 48, /* dayshift */ YYSYMBOL_seconds = 49, /* seconds */ YYSYMBOL_signed_seconds = 50, /* signed_seconds */ YYSYMBOL_unsigned_seconds = 51, /* unsigned_seconds */ YYSYMBOL_number = 52, /* number */ YYSYMBOL_hybrid = 53, /* hybrid */ YYSYMBOL_o_colon_minutes = 54 /* o_colon_minutes */ }; typedef enum yysymbol_kind_t yysymbol_kind_t; #ifdef short # undef short #endif /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure and (if available) are included so that the code can choose integer types of a good width. */ #ifndef __PTRDIFF_MAX__ # include /* INFRINGES ON USER NAME SPACE */ # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YY_STDINT_H # endif #endif /* Narrow types that promote to a signed type and that can represent a signed or unsigned integer of at least N bits. In tables they can save space and decrease cache pressure. Promoting to a signed type helps avoid bugs in integer arithmetic. */ #ifdef __INT_LEAST8_MAX__ typedef __INT_LEAST8_TYPE__ yytype_int8; #elif defined YY_STDINT_H typedef int_least8_t yytype_int8; #else typedef signed char yytype_int8; #endif #ifdef __INT_LEAST16_MAX__ typedef __INT_LEAST16_TYPE__ yytype_int16; #elif defined YY_STDINT_H typedef int_least16_t yytype_int16; #else typedef short yytype_int16; #endif /* Work around bug in HP-UX 11.23, which defines these macros incorrectly for preprocessor constants. This workaround can likely be removed in 2023, as HPE has promised support for HP-UX 11.23 (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of . */ #ifdef __hpux # undef UINT_LEAST8_MAX # undef UINT_LEAST16_MAX # define UINT_LEAST8_MAX 255 # define UINT_LEAST16_MAX 65535 #endif #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ typedef __UINT_LEAST8_TYPE__ yytype_uint8; #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ && UINT_LEAST8_MAX <= INT_MAX) typedef uint_least8_t yytype_uint8; #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX typedef unsigned char yytype_uint8; #else typedef short yytype_uint8; #endif #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__ typedef __UINT_LEAST16_TYPE__ yytype_uint16; #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \ && UINT_LEAST16_MAX <= INT_MAX) typedef uint_least16_t yytype_uint16; #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX typedef unsigned short yytype_uint16; #else typedef int yytype_uint16; #endif #ifndef YYPTRDIFF_T # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__ # define YYPTRDIFF_T __PTRDIFF_TYPE__ # define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__ # elif defined PTRDIFF_MAX # ifndef ptrdiff_t # include /* INFRINGES ON USER NAME SPACE */ # endif # define YYPTRDIFF_T ptrdiff_t # define YYPTRDIFF_MAXIMUM PTRDIFF_MAX # else # define YYPTRDIFF_T long # define YYPTRDIFF_MAXIMUM LONG_MAX # endif #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__ # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned # endif #endif #define YYSIZE_MAXIMUM \ YY_CAST (YYPTRDIFF_T, \ (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \ ? YYPTRDIFF_MAXIMUM \ : YY_CAST (YYSIZE_T, -1))) #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) /* Stored state numbers (used for stacks). */ typedef yytype_int8 yy_state_t; /* State numbers in computations. */ typedef int yy_state_fast_t; #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ # define YY_(Msgid) Msgid # endif #endif #ifndef YY_ATTRIBUTE_PURE # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__) # define YY_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define YY_ATTRIBUTE_PURE # endif #endif #ifndef YY_ATTRIBUTE_UNUSED # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__) # define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) # else # define YY_ATTRIBUTE_UNUSED # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YY_USE(E) ((void) (E)) #else # define YY_USE(E) /* empty */ #endif #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__ # define YY_IGNORE_USELESS_CAST_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"") # define YY_IGNORE_USELESS_CAST_END \ _Pragma ("GCC diagnostic pop") #endif #ifndef YY_IGNORE_USELESS_CAST_BEGIN # define YY_IGNORE_USELESS_CAST_BEGIN # define YY_IGNORE_USELESS_CAST_END #endif #define YY_ASSERT(E) ((void) (0 && (E))) #if !defined yyoverflow /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include /* INFRINGES ON USER NAME SPACE */ /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's 'empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* !defined yyoverflow */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yy_state_t yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYPTRDIFF_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / YYSIZEOF (*yyptr); \ } \ while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ YYPTRDIFF_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ while (0) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 12 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 114 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 29 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 26 /* YYNRULES -- Number of rules. */ #define YYNRULES 92 /* YYNSTATES -- Number of states. */ #define YYNSTATES 115 /* YYMAXUTOK -- Last valid token kind. */ #define YYMAXUTOK 277 /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ #define YYTRANSLATE(YYX) \ (0 <= (YYX) && (YYX) <= YYMAXUTOK \ ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \ : YYSYMBOL_YYUNDEF) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ static const yytype_int8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 27, 2, 2, 28, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 26, 2, 2, 2, 2, 2, 23, 2, 2, 2, 2, 2, 2, 2, 2, 2, 24, 2, 2, 2, 2, 2, 2, 2, 2, 2, 25, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 }; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_int16 yyrline[] = { 0, 594, 594, 595, 599, 607, 609, 613, 618, 623, 628, 633, 638, 643, 648, 652, 656, 663, 667, 671, 676, 681, 686, 690, 695, 700, 707, 709, 713, 738, 740, 750, 752, 754, 759, 764, 767, 769, 774, 779, 784, 790, 799, 804, 837, 845, 853, 858, 864, 869, 875, 879, 889, 891, 893, 898, 900, 902, 904, 906, 908, 910, 913, 916, 918, 920, 922, 924, 926, 928, 930, 932, 934, 936, 938, 940, 944, 946, 948, 951, 953, 955, 960, 964, 964, 967, 968, 974, 975, 981, 986, 997, 998 }; #endif /** Accessing symbol of state STATE. */ #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State]) #if YYDEBUG || 0 /* The user-facing name of the symbol whose (internal) number is YYSYMBOL. No bounds checking. */ static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED; /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "\"end of file\"", "error", "\"invalid token\"", "tAGO", "tDST", "tYEAR_UNIT", "tMONTH_UNIT", "tHOUR_UNIT", "tMINUTE_UNIT", "tSEC_UNIT", "tDAY_UNIT", "tDAY_SHIFT", "tDAY", "tDAYZONE", "tLOCAL_ZONE", "tMERIDIAN", "tMONTH", "tORDINAL", "tZONE", "tSNUMBER", "tUNUMBER", "tSDECIMAL_NUMBER", "tUDECIMAL_NUMBER", "'@'", "'J'", "'T'", "':'", "','", "'/'", "$accept", "spec", "timespec", "items", "item", "datetime", "iso_8601_datetime", "time", "iso_8601_time", "o_zone_offset", "zone_offset", "local_zone", "zone", "day", "date", "iso_8601_date", "rel", "relunit", "relunit_snumber", "dayshift", "seconds", "signed_seconds", "unsigned_seconds", "number", "hybrid", "o_colon_minutes", YY_NULLPTR }; static const char * yysymbol_name (yysymbol_kind_t yysymbol) { return yytname[yysymbol]; } #endif #ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ static const yytype_int16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 64, 74, 84, 58, 44, 47 }; #endif #define YYPACT_NINF (-91) #define yypact_value_is_default(Yyn) \ ((Yyn) == YYPACT_NINF) #define YYTABLE_NINF (-1) #define yytable_value_is_error(Yyn) \ 0 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ static const yytype_int8 yypact[] = { -14, 7, 39, -91, 37, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, 14, -91, 64, 47, 67, 6, 82, -4, 74, 75, -91, 76, -91, -91, -91, -91, -91, -91, -91, -91, -91, 69, -91, 93, -91, -91, -91, -91, -91, -91, 79, 72, -91, -91, -91, -91, -91, -91, -91, -91, 26, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, 62, 11, 80, 81, -91, -91, -91, -91, -91, 83, -91, -91, 84, 85, -91, -91, -91, -91, -91, 45, 86, -12, -91, -91, -91, -91, 87, 18, -91, -91, 88, 89, 78, -91, 59, -91, -91, 18, 91 }; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ static const yytype_int8 yydefact[] = { 5, 0, 0, 2, 3, 86, 88, 85, 87, 4, 83, 84, 1, 57, 60, 66, 69, 74, 63, 82, 38, 36, 29, 0, 0, 31, 0, 89, 0, 0, 10, 32, 6, 7, 17, 8, 22, 9, 11, 13, 12, 50, 14, 53, 75, 54, 15, 16, 39, 30, 0, 46, 55, 58, 64, 67, 70, 61, 40, 37, 91, 33, 76, 77, 79, 80, 81, 78, 56, 59, 65, 68, 71, 62, 41, 19, 48, 91, 0, 0, 23, 90, 72, 73, 34, 0, 52, 45, 0, 0, 35, 44, 49, 51, 28, 26, 42, 0, 18, 47, 92, 20, 91, 0, 24, 27, 0, 0, 26, 43, 26, 21, 25, 0, 26 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -91, -91, -91, -91, -91, -91, -91, -91, 17, -28, -27, -91, -91, -91, -91, -91, -91, -91, 38, -91, -91, -91, -90, -91, -91, 46 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { 0, 2, 3, 4, 32, 33, 34, 35, 36, 104, 105, 37, 38, 39, 40, 41, 42, 43, 44, 45, 9, 10, 11, 46, 47, 94 }; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int8 yytable[] = { 80, 68, 69, 70, 71, 72, 73, 102, 74, 1, 59, 75, 76, 108, 107, 77, 62, 63, 64, 65, 66, 67, 78, 114, 79, 60, 5, 6, 7, 8, 93, 62, 63, 64, 65, 66, 67, 89, 6, 12, 8, 48, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 89, 23, 24, 25, 26, 27, 28, 29, 101, 30, 31, 61, 102, 81, 50, 51, 49, 84, 80, 103, 52, 53, 54, 55, 56, 57, 102, 58, 112, 91, 92, 82, 83, 113, 112, 62, 63, 64, 65, 66, 67, 111, 85, 26, 86, 102, 87, 88, 95, 96, 98, 97, 99, 100, 90, 0, 109, 110, 102, 0, 0, 89, 106 }; static const yytype_int8 yycheck[] = { 27, 5, 6, 7, 8, 9, 10, 19, 12, 23, 4, 15, 16, 103, 26, 19, 5, 6, 7, 8, 9, 10, 26, 113, 28, 19, 19, 20, 21, 22, 19, 5, 6, 7, 8, 9, 10, 26, 20, 0, 22, 27, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 26, 16, 17, 18, 19, 20, 21, 22, 15, 24, 25, 25, 19, 27, 19, 20, 4, 31, 97, 26, 5, 6, 7, 8, 9, 10, 19, 12, 108, 19, 20, 9, 9, 26, 114, 5, 6, 7, 8, 9, 10, 15, 25, 19, 3, 19, 19, 27, 20, 20, 85, 20, 20, 20, 60, -1, 20, 20, 19, -1, -1, 26, 28 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_int8 yystos[] = { 0, 23, 30, 31, 32, 19, 20, 21, 22, 49, 50, 51, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 24, 25, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 52, 53, 27, 4, 19, 20, 5, 6, 7, 8, 9, 10, 12, 4, 19, 47, 5, 6, 7, 8, 9, 10, 5, 6, 7, 8, 9, 10, 12, 15, 16, 19, 26, 28, 39, 47, 9, 9, 47, 25, 3, 19, 27, 26, 54, 19, 20, 19, 54, 20, 20, 20, 37, 20, 20, 15, 19, 26, 38, 39, 28, 26, 51, 20, 20, 15, 38, 26, 51 }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_int8 yyr1[] = { 0, 29, 30, 30, 31, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 35, 36, 36, 36, 36, 37, 37, 37, 38, 38, 39, 40, 40, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 48, 49, 49, 50, 50, 51, 51, 52, 53, 54, 54 }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ static const yytype_int8 yyr2[] = { 0, 2, 1, 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 4, 6, 1, 2, 4, 6, 0, 1, 2, 1, 2, 1, 1, 2, 2, 3, 1, 2, 1, 2, 2, 2, 3, 5, 3, 3, 2, 4, 2, 3, 1, 3, 2, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, 2 }; enum { YYENOMEM = -2 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (yylen); \ yystate = *yyssp; \ goto yybackup; \ } \ else \ { \ yyerror (pc, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (0) /* Backward compatibility with an undocumented macro. Use YYerror or YYUNDEF. */ #define YYERRCODE YYUNDEF /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* This macro is provided for backward compatibility. */ # ifndef YY_LOCATION_PRINT # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Kind, Value, pc); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*-----------------------------------. | Print this symbol's value on YYO. | `-----------------------------------*/ static void yy_symbol_value_print (FILE *yyo, yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, parser_control *pc) { FILE *yyoutput = yyo; YY_USE (yyoutput); YY_USE (pc); if (!yyvaluep) return; # ifdef YYPRINT if (yykind < YYNTOKENS) YYPRINT (yyo, yytoknum[yykind], *yyvaluep); # endif YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_USE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ static void yy_symbol_print (FILE *yyo, yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, parser_control *pc) { YYFPRINTF (yyo, "%s %s (", yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind)); yy_symbol_value_print (yyo, yykind, yyvaluep, pc); YYFPRINTF (yyo, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ static void yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule, parser_control *pc) { int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]), &yyvsp[(yyi + 1) - (yynrhs)], pc); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyssp, yyvsp, Rule, pc); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) ((void) 0) # define YY_SYMBOL_PRINT(Title, Kind, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void yydestruct (const char *yymsg, yysymbol_kind_t yykind, YYSTYPE *yyvaluep, parser_control *pc) { YY_USE (yyvaluep); YY_USE (pc); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YY_USE (yykind); YY_IGNORE_MAYBE_UNINITIALIZED_END } /*----------. | yyparse. | `----------*/ int yyparse (parser_control *pc) { /* Lookahead token kind. */ int yychar; /* The semantic value of the lookahead symbol. */ /* Default value used for initialization, for pacifying older GCCs or non-GCC compilers. */ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ int yynerrs = 0; yy_state_fast_t yystate = 0; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus = 0; /* Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* Their size. */ YYPTRDIFF_T yystacksize = YYINITDEPTH; /* The state stack: array, bottom, top. */ yy_state_t yyssa[YYINITDEPTH]; yy_state_t *yyss = yyssa; yy_state_t *yyssp = yyss; /* The semantic value stack: array, bottom, top. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp = yyvs; int yyn; /* The return value of yyparse. */ int yyresult; /* Lookahead symbol kind. */ yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; /*------------------------------------------------------------. | yynewstate -- push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; /*--------------------------------------------------------------------. | yysetstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: YYDPRINTF ((stderr, "Entering state %d\n", yystate)); YY_ASSERT (0 <= yystate && yystate < YYNSTATES); YY_IGNORE_USELESS_CAST_BEGIN *yyssp = YY_CAST (yy_state_t, yystate); YY_IGNORE_USELESS_CAST_END YY_STACK_PRINT (yyss, yyssp); if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE goto yyexhaustedlab; #else { /* Get the current used size of the three stacks, in elements. */ YYPTRDIFF_T yysize = yyssp - yyss + 1; # if defined yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ yy_state_t *yyss1 = yyss; YYSTYPE *yyvs1 = yyvs; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * YYSIZEOF (*yyssp), &yyvs1, yysize * YYSIZEOF (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } # else /* defined YYSTACK_RELOCATE */ /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yy_state_t *yyss1 = yyss; union yyalloc *yyptr = YY_CAST (union yyalloc *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize)))); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YY_IGNORE_USELESS_CAST_BEGIN YYDPRINTF ((stderr, "Stack size increased to %ld\n", YY_CAST (long, yystacksize))); YY_IGNORE_USELESS_CAST_END if (yyss + yystacksize - 1 <= yyssp) YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either empty, or end-of-input, or a valid lookahead. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token\n")); yychar = yylex (&yylval, pc); } if (yychar <= YYEOF) { yychar = YYEOF; yytoken = YYSYMBOL_YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else if (yychar == YYerror) { /* The scanner already issued an error message, process directly to error recovery. But do not keep the error token as lookahead, it is too special and may lead us to an endless loop in error recovery. */ yychar = YYUNDEF; yytoken = YYSYMBOL_YYerror; goto yyerrlab1; } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END /* Discard the shifted token. */ yychar = YYEMPTY; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 4: /* timespec: '@' seconds */ #line 600 "parse-datetime.y" { pc->seconds = (yyvsp[0].timespec); pc->timespec_seen = true; debug_print_current_time (_("number of seconds"), pc); } #line 1772 "parse-datetime.c" break; case 7: /* item: datetime */ #line 614 "parse-datetime.y" { pc->times_seen++; pc->dates_seen++; debug_print_current_time (_("datetime"), pc); } #line 1781 "parse-datetime.c" break; case 8: /* item: time */ #line 619 "parse-datetime.y" { pc->times_seen++; debug_print_current_time (_("time"), pc); } #line 1790 "parse-datetime.c" break; case 9: /* item: local_zone */ #line 624 "parse-datetime.y" { pc->local_zones_seen++; debug_print_current_time (_("local_zone"), pc); } #line 1799 "parse-datetime.c" break; case 10: /* item: 'J' */ #line 629 "parse-datetime.y" { pc->J_zones_seen++; debug_print_current_time ("J", pc); } #line 1808 "parse-datetime.c" break; case 11: /* item: zone */ #line 634 "parse-datetime.y" { pc->zones_seen++; debug_print_current_time (_("zone"), pc); } #line 1817 "parse-datetime.c" break; case 12: /* item: date */ #line 639 "parse-datetime.y" { pc->dates_seen++; debug_print_current_time (_("date"), pc); } #line 1826 "parse-datetime.c" break; case 13: /* item: day */ #line 644 "parse-datetime.y" { pc->days_seen++; debug_print_current_time (_("day"), pc); } #line 1835 "parse-datetime.c" break; case 14: /* item: rel */ #line 649 "parse-datetime.y" { debug_print_relative_time (_("relative"), pc); } #line 1843 "parse-datetime.c" break; case 15: /* item: number */ #line 653 "parse-datetime.y" { debug_print_current_time (_("number"), pc); } #line 1851 "parse-datetime.c" break; case 16: /* item: hybrid */ #line 657 "parse-datetime.y" { debug_print_relative_time (_("hybrid"), pc); } #line 1859 "parse-datetime.c" break; case 19: /* time: tUNUMBER tMERIDIAN */ #line 672 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-1].textintval).value, 0, 0, 0); pc->meridian = (yyvsp[0].intval); } #line 1868 "parse-datetime.c" break; case 20: /* time: tUNUMBER ':' tUNUMBER tMERIDIAN */ #line 677 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-3].textintval).value, (yyvsp[-1].textintval).value, 0, 0); pc->meridian = (yyvsp[0].intval); } #line 1877 "parse-datetime.c" break; case 21: /* time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds tMERIDIAN */ #line 682 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-5].textintval).value, (yyvsp[-3].textintval).value, (yyvsp[-1].timespec).tv_sec, (yyvsp[-1].timespec).tv_nsec); pc->meridian = (yyvsp[0].intval); } #line 1886 "parse-datetime.c" break; case 23: /* iso_8601_time: tUNUMBER zone_offset */ #line 691 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-1].textintval).value, 0, 0, 0); pc->meridian = MER24; } #line 1895 "parse-datetime.c" break; case 24: /* iso_8601_time: tUNUMBER ':' tUNUMBER o_zone_offset */ #line 696 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-3].textintval).value, (yyvsp[-1].textintval).value, 0, 0); pc->meridian = MER24; } #line 1904 "parse-datetime.c" break; case 25: /* iso_8601_time: tUNUMBER ':' tUNUMBER ':' unsigned_seconds o_zone_offset */ #line 701 "parse-datetime.y" { set_hhmmss (pc, (yyvsp[-5].textintval).value, (yyvsp[-3].textintval).value, (yyvsp[-1].timespec).tv_sec, (yyvsp[-1].timespec).tv_nsec); pc->meridian = MER24; } #line 1913 "parse-datetime.c" break; case 28: /* zone_offset: tSNUMBER o_colon_minutes */ #line 714 "parse-datetime.y" { pc->zones_seen++; if (! time_zone_hhmm (pc, (yyvsp[-1].textintval), (yyvsp[0].intval))) YYABORT; } #line 1922 "parse-datetime.c" break; case 29: /* local_zone: tLOCAL_ZONE */ #line 739 "parse-datetime.y" { pc->local_isdst = (yyvsp[0].intval); } #line 1928 "parse-datetime.c" break; case 30: /* local_zone: tLOCAL_ZONE tDST */ #line 741 "parse-datetime.y" { pc->local_isdst = 1; pc->dsts_seen++; } #line 1937 "parse-datetime.c" break; case 31: /* zone: tZONE */ #line 751 "parse-datetime.y" { pc->time_zone = (yyvsp[0].intval); } #line 1943 "parse-datetime.c" break; case 32: /* zone: 'T' */ #line 753 "parse-datetime.y" { pc->time_zone = -HOUR (7); } #line 1949 "parse-datetime.c" break; case 33: /* zone: tZONE relunit_snumber */ #line 755 "parse-datetime.y" { pc->time_zone = (yyvsp[-1].intval); if (! apply_relative_time (pc, (yyvsp[0].rel), 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } #line 1958 "parse-datetime.c" break; case 34: /* zone: 'T' relunit_snumber */ #line 760 "parse-datetime.y" { pc->time_zone = -HOUR (7); if (! apply_relative_time (pc, (yyvsp[0].rel), 1)) YYABORT; debug_print_relative_time (_("relative"), pc); } #line 1967 "parse-datetime.c" break; case 35: /* zone: tZONE tSNUMBER o_colon_minutes */ #line 765 "parse-datetime.y" { if (! time_zone_hhmm (pc, (yyvsp[-1].textintval), (yyvsp[0].intval))) YYABORT; if (INT_ADD_WRAPV (pc->time_zone, (yyvsp[-2].intval), &pc->time_zone)) YYABORT; } #line 1974 "parse-datetime.c" break; case 36: /* zone: tDAYZONE */ #line 768 "parse-datetime.y" { pc->time_zone = (yyvsp[0].intval) + 60 * 60; } #line 1980 "parse-datetime.c" break; case 37: /* zone: tZONE tDST */ #line 770 "parse-datetime.y" { pc->time_zone = (yyvsp[-1].intval) + 60 * 60; } #line 1986 "parse-datetime.c" break; case 38: /* day: tDAY */ #line 775 "parse-datetime.y" { pc->day_ordinal = 0; pc->day_number = (yyvsp[0].intval); } #line 1995 "parse-datetime.c" break; case 39: /* day: tDAY ',' */ #line 780 "parse-datetime.y" { pc->day_ordinal = 0; pc->day_number = (yyvsp[-1].intval); } #line 2004 "parse-datetime.c" break; case 40: /* day: tORDINAL tDAY */ #line 785 "parse-datetime.y" { pc->day_ordinal = (yyvsp[-1].intval); pc->day_number = (yyvsp[0].intval); pc->debug_ordinal_day_seen = true; } #line 2014 "parse-datetime.c" break; case 41: /* day: tUNUMBER tDAY */ #line 791 "parse-datetime.y" { pc->day_ordinal = (yyvsp[-1].textintval).value; pc->day_number = (yyvsp[0].intval); pc->debug_ordinal_day_seen = true; } #line 2024 "parse-datetime.c" break; case 42: /* date: tUNUMBER '/' tUNUMBER */ #line 800 "parse-datetime.y" { pc->month = (yyvsp[-2].textintval).value; pc->day = (yyvsp[0].textintval).value; } #line 2033 "parse-datetime.c" break; case 43: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER */ #line 805 "parse-datetime.y" { /* Interpret as YYYY/MM/DD if the first value has 4 or more digits, otherwise as MM/DD/YY. The goal in recognizing YYYY/MM/DD is solely to support legacy machine-generated dates like those in an RCS log listing. If you want portability, use the ISO 8601 format. */ if (4 <= (yyvsp[-4].textintval).digits) { if (debugging (pc)) { intmax_t digits = (yyvsp[-4].textintval).digits; dbg_printf (_("warning: value %"PRIdMAX" has %"PRIdMAX" digits. " "Assuming YYYY/MM/DD\n"), (yyvsp[-4].textintval).value, digits); } pc->year = (yyvsp[-4].textintval); pc->month = (yyvsp[-2].textintval).value; pc->day = (yyvsp[0].textintval).value; } else { if (debugging (pc)) dbg_printf (_("warning: value %"PRIdMAX" has less than 4 digits. " "Assuming MM/DD/YY[YY]\n"), (yyvsp[-4].textintval).value); pc->month = (yyvsp[-4].textintval).value; pc->day = (yyvsp[-2].textintval).value; pc->year = (yyvsp[0].textintval); } } #line 2070 "parse-datetime.c" break; case 44: /* date: tUNUMBER tMONTH tSNUMBER */ #line 838 "parse-datetime.y" { /* E.g., 17-JUN-1992. */ pc->day = (yyvsp[-2].textintval).value; pc->month = (yyvsp[-1].intval); if (INT_SUBTRACT_WRAPV (0, (yyvsp[0].textintval).value, &pc->year.value)) YYABORT; pc->year.digits = (yyvsp[0].textintval).digits; } #line 2082 "parse-datetime.c" break; case 45: /* date: tMONTH tSNUMBER tSNUMBER */ #line 846 "parse-datetime.y" { /* E.g., JUN-17-1992. */ pc->month = (yyvsp[-2].intval); if (INT_SUBTRACT_WRAPV (0, (yyvsp[-1].textintval).value, &pc->day)) YYABORT; if (INT_SUBTRACT_WRAPV (0, (yyvsp[0].textintval).value, &pc->year.value)) YYABORT; pc->year.digits = (yyvsp[0].textintval).digits; } #line 2094 "parse-datetime.c" break; case 46: /* date: tMONTH tUNUMBER */ #line 854 "parse-datetime.y" { pc->month = (yyvsp[-1].intval); pc->day = (yyvsp[0].textintval).value; } #line 2103 "parse-datetime.c" break; case 47: /* date: tMONTH tUNUMBER ',' tUNUMBER */ #line 859 "parse-datetime.y" { pc->month = (yyvsp[-3].intval); pc->day = (yyvsp[-2].textintval).value; pc->year = (yyvsp[0].textintval); } #line 2113 "parse-datetime.c" break; case 48: /* date: tUNUMBER tMONTH */ #line 865 "parse-datetime.y" { pc->day = (yyvsp[-1].textintval).value; pc->month = (yyvsp[0].intval); } #line 2122 "parse-datetime.c" break; case 49: /* date: tUNUMBER tMONTH tUNUMBER */ #line 870 "parse-datetime.y" { pc->day = (yyvsp[-2].textintval).value; pc->month = (yyvsp[-1].intval); pc->year = (yyvsp[0].textintval); } #line 2132 "parse-datetime.c" break; case 51: /* iso_8601_date: tUNUMBER tSNUMBER tSNUMBER */ #line 880 "parse-datetime.y" { /* ISO 8601 format. YYYY-MM-DD. */ pc->year = (yyvsp[-2].textintval); if (INT_SUBTRACT_WRAPV (0, (yyvsp[-1].textintval).value, &pc->month)) YYABORT; if (INT_SUBTRACT_WRAPV (0, (yyvsp[0].textintval).value, &pc->day)) YYABORT; } #line 2143 "parse-datetime.c" break; case 52: /* rel: relunit tAGO */ #line 890 "parse-datetime.y" { if (! apply_relative_time (pc, (yyvsp[-1].rel), (yyvsp[0].intval))) YYABORT; } #line 2149 "parse-datetime.c" break; case 53: /* rel: relunit */ #line 892 "parse-datetime.y" { if (! apply_relative_time (pc, (yyvsp[0].rel), 1)) YYABORT; } #line 2155 "parse-datetime.c" break; case 54: /* rel: dayshift */ #line 894 "parse-datetime.y" { if (! apply_relative_time (pc, (yyvsp[0].rel), 1)) YYABORT; } #line 2161 "parse-datetime.c" break; case 55: /* relunit: tORDINAL tYEAR_UNIT */ #line 899 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).year = (yyvsp[-1].intval); } #line 2167 "parse-datetime.c" break; case 56: /* relunit: tUNUMBER tYEAR_UNIT */ #line 901 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).year = (yyvsp[-1].textintval).value; } #line 2173 "parse-datetime.c" break; case 57: /* relunit: tYEAR_UNIT */ #line 903 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).year = 1; } #line 2179 "parse-datetime.c" break; case 58: /* relunit: tORDINAL tMONTH_UNIT */ #line 905 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).month = (yyvsp[-1].intval); } #line 2185 "parse-datetime.c" break; case 59: /* relunit: tUNUMBER tMONTH_UNIT */ #line 907 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).month = (yyvsp[-1].textintval).value; } #line 2191 "parse-datetime.c" break; case 60: /* relunit: tMONTH_UNIT */ #line 909 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).month = 1; } #line 2197 "parse-datetime.c" break; case 61: /* relunit: tORDINAL tDAY_UNIT */ #line 911 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ((yyvsp[-1].intval), (yyvsp[0].intval), &(yyval.rel).day)) YYABORT; } #line 2204 "parse-datetime.c" break; case 62: /* relunit: tUNUMBER tDAY_UNIT */ #line 914 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ((yyvsp[-1].textintval).value, (yyvsp[0].intval), &(yyval.rel).day)) YYABORT; } #line 2211 "parse-datetime.c" break; case 63: /* relunit: tDAY_UNIT */ #line 917 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).day = (yyvsp[0].intval); } #line 2217 "parse-datetime.c" break; case 64: /* relunit: tORDINAL tHOUR_UNIT */ #line 919 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).hour = (yyvsp[-1].intval); } #line 2223 "parse-datetime.c" break; case 65: /* relunit: tUNUMBER tHOUR_UNIT */ #line 921 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).hour = (yyvsp[-1].textintval).value; } #line 2229 "parse-datetime.c" break; case 66: /* relunit: tHOUR_UNIT */ #line 923 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).hour = 1; } #line 2235 "parse-datetime.c" break; case 67: /* relunit: tORDINAL tMINUTE_UNIT */ #line 925 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).minutes = (yyvsp[-1].intval); } #line 2241 "parse-datetime.c" break; case 68: /* relunit: tUNUMBER tMINUTE_UNIT */ #line 927 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).minutes = (yyvsp[-1].textintval).value; } #line 2247 "parse-datetime.c" break; case 69: /* relunit: tMINUTE_UNIT */ #line 929 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).minutes = 1; } #line 2253 "parse-datetime.c" break; case 70: /* relunit: tORDINAL tSEC_UNIT */ #line 931 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = (yyvsp[-1].intval); } #line 2259 "parse-datetime.c" break; case 71: /* relunit: tUNUMBER tSEC_UNIT */ #line 933 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = (yyvsp[-1].textintval).value; } #line 2265 "parse-datetime.c" break; case 72: /* relunit: tSDECIMAL_NUMBER tSEC_UNIT */ #line 935 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = (yyvsp[-1].timespec).tv_sec; (yyval.rel).ns = (yyvsp[-1].timespec).tv_nsec; } #line 2271 "parse-datetime.c" break; case 73: /* relunit: tUDECIMAL_NUMBER tSEC_UNIT */ #line 937 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = (yyvsp[-1].timespec).tv_sec; (yyval.rel).ns = (yyvsp[-1].timespec).tv_nsec; } #line 2277 "parse-datetime.c" break; case 74: /* relunit: tSEC_UNIT */ #line 939 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = 1; } #line 2283 "parse-datetime.c" break; case 76: /* relunit_snumber: tSNUMBER tYEAR_UNIT */ #line 945 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).year = (yyvsp[-1].textintval).value; } #line 2289 "parse-datetime.c" break; case 77: /* relunit_snumber: tSNUMBER tMONTH_UNIT */ #line 947 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).month = (yyvsp[-1].textintval).value; } #line 2295 "parse-datetime.c" break; case 78: /* relunit_snumber: tSNUMBER tDAY_UNIT */ #line 949 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; if (INT_MULTIPLY_WRAPV ((yyvsp[-1].textintval).value, (yyvsp[0].intval), &(yyval.rel).day)) YYABORT; } #line 2302 "parse-datetime.c" break; case 79: /* relunit_snumber: tSNUMBER tHOUR_UNIT */ #line 952 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).hour = (yyvsp[-1].textintval).value; } #line 2308 "parse-datetime.c" break; case 80: /* relunit_snumber: tSNUMBER tMINUTE_UNIT */ #line 954 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).minutes = (yyvsp[-1].textintval).value; } #line 2314 "parse-datetime.c" break; case 81: /* relunit_snumber: tSNUMBER tSEC_UNIT */ #line 956 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).seconds = (yyvsp[-1].textintval).value; } #line 2320 "parse-datetime.c" break; case 82: /* dayshift: tDAY_SHIFT */ #line 961 "parse-datetime.y" { (yyval.rel) = RELATIVE_TIME_0; (yyval.rel).day = (yyvsp[0].intval); } #line 2326 "parse-datetime.c" break; case 86: /* signed_seconds: tSNUMBER */ #line 969 "parse-datetime.y" { if (time_overflow ((yyvsp[0].textintval).value)) YYABORT; (yyval.timespec).tv_sec = (yyvsp[0].textintval).value; (yyval.timespec).tv_nsec = 0; } #line 2333 "parse-datetime.c" break; case 88: /* unsigned_seconds: tUNUMBER */ #line 976 "parse-datetime.y" { if (time_overflow ((yyvsp[0].textintval).value)) YYABORT; (yyval.timespec).tv_sec = (yyvsp[0].textintval).value; (yyval.timespec).tv_nsec = 0; } #line 2340 "parse-datetime.c" break; case 89: /* number: tUNUMBER */ #line 982 "parse-datetime.y" { digits_to_date_time (pc, (yyvsp[0].textintval)); } #line 2346 "parse-datetime.c" break; case 90: /* hybrid: tUNUMBER relunit_snumber */ #line 987 "parse-datetime.y" { /* Hybrid all-digit and relative offset, so that we accept e.g., "YYYYMMDD +N days" as well as "YYYYMMDD N days". */ digits_to_date_time (pc, (yyvsp[-1].textintval)); if (! apply_relative_time (pc, (yyvsp[0].rel), 1)) YYABORT; } #line 2357 "parse-datetime.c" break; case 91: /* o_colon_minutes: %empty */ #line 997 "parse-datetime.y" { (yyval.intval) = -1; } #line 2363 "parse-datetime.c" break; case 92: /* o_colon_minutes: ':' tUNUMBER */ #line 999 "parse-datetime.y" { (yyval.intval) = (yyvsp[0].textintval).value; } #line 2369 "parse-datetime.c" break; #line 2373 "parse-datetime.c" default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; *++yyvsp = yyval; /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ { const int yylhs = yyr1[yyn] - YYNTOKENS; const int yyi = yypgoto[yylhs] + *yyssp; yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); } goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; yyerror (pc, YY_("syntax error")); } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval, pc); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (0) YYERROR; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ /* Pop stack until we find a state that shifts the error token. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYSYMBOL_YYerror; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", YY_ACCESSING_SYMBOL (yystate), yyvsp, pc); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (pc, YY_("memory exhausted")); yyresult = 2; goto yyreturn; #endif /*-------------------------------------------------------. | yyreturn -- parsing is finished, clean up and return. | `-------------------------------------------------------*/ yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval, pc); } /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, pc); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 1002 "parse-datetime.y" static table const meridian_table[] = { { "AM", tMERIDIAN, MERam }, { "A.M.", tMERIDIAN, MERam }, { "PM", tMERIDIAN, MERpm }, { "P.M.", tMERIDIAN, MERpm }, { NULL, 0, 0 } }; static table const dst_table[] = { { "DST", tDST, 0 } }; static table const month_and_day_table[] = { { "JANUARY", tMONTH, 1 }, { "FEBRUARY", tMONTH, 2 }, { "MARCH", tMONTH, 3 }, { "APRIL", tMONTH, 4 }, { "MAY", tMONTH, 5 }, { "JUNE", tMONTH, 6 }, { "JULY", tMONTH, 7 }, { "AUGUST", tMONTH, 8 }, { "SEPTEMBER",tMONTH, 9 }, { "SEPT", tMONTH, 9 }, { "OCTOBER", tMONTH, 10 }, { "NOVEMBER", tMONTH, 11 }, { "DECEMBER", tMONTH, 12 }, { "SUNDAY", tDAY, 0 }, { "MONDAY", tDAY, 1 }, { "TUESDAY", tDAY, 2 }, { "TUES", tDAY, 2 }, { "WEDNESDAY",tDAY, 3 }, { "WEDNES", tDAY, 3 }, { "THURSDAY", tDAY, 4 }, { "THUR", tDAY, 4 }, { "THURS", tDAY, 4 }, { "FRIDAY", tDAY, 5 }, { "SATURDAY", tDAY, 6 }, { NULL, 0, 0 } }; static table const time_units_table[] = { { "YEAR", tYEAR_UNIT, 1 }, { "MONTH", tMONTH_UNIT, 1 }, { "FORTNIGHT",tDAY_UNIT, 14 }, { "WEEK", tDAY_UNIT, 7 }, { "DAY", tDAY_UNIT, 1 }, { "HOUR", tHOUR_UNIT, 1 }, { "MINUTE", tMINUTE_UNIT, 1 }, { "MIN", tMINUTE_UNIT, 1 }, { "SECOND", tSEC_UNIT, 1 }, { "SEC", tSEC_UNIT, 1 }, { NULL, 0, 0 } }; /* Assorted relative-time words. */ static table const relative_time_table[] = { { "TOMORROW", tDAY_SHIFT, 1 }, { "YESTERDAY",tDAY_SHIFT, -1 }, { "TODAY", tDAY_SHIFT, 0 }, { "NOW", tDAY_SHIFT, 0 }, { "LAST", tORDINAL, -1 }, { "THIS", tORDINAL, 0 }, { "NEXT", tORDINAL, 1 }, { "FIRST", tORDINAL, 1 }, /*{ "SECOND", tORDINAL, 2 }, */ { "THIRD", tORDINAL, 3 }, { "FOURTH", tORDINAL, 4 }, { "FIFTH", tORDINAL, 5 }, { "SIXTH", tORDINAL, 6 }, { "SEVENTH", tORDINAL, 7 }, { "EIGHTH", tORDINAL, 8 }, { "NINTH", tORDINAL, 9 }, { "TENTH", tORDINAL, 10 }, { "ELEVENTH", tORDINAL, 11 }, { "TWELFTH", tORDINAL, 12 }, { "AGO", tAGO, -1 }, { "HENCE", tAGO, 1 }, { NULL, 0, 0 } }; /* The universal time zone table. These labels can be used even for timestamps that would not otherwise be valid, e.g., GMT timestamps oin London during summer. */ static table const universal_time_zone_table[] = { { "GMT", tZONE, HOUR ( 0) }, /* Greenwich Mean */ { "UT", tZONE, HOUR ( 0) }, /* Universal (Coordinated) */ { "UTC", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* The time zone table. This table is necessarily incomplete, as time zone abbreviations are ambiguous; e.g., Australians interpret "EST" as Eastern time in Australia, not as US Eastern Standard Time. You cannot rely on parse_datetime to handle arbitrary time zone abbreviations; use numeric abbreviations like "-0500" instead. */ static table const time_zone_table[] = { { "WET", tZONE, HOUR ( 0) }, /* Western European */ { "WEST", tDAYZONE, HOUR ( 0) }, /* Western European Summer */ { "BST", tDAYZONE, HOUR ( 0) }, /* British Summer */ { "ART", tZONE, -HOUR ( 3) }, /* Argentina */ { "BRT", tZONE, -HOUR ( 3) }, /* Brazil */ { "BRST", tDAYZONE, -HOUR ( 3) }, /* Brazil Summer */ { "NST", tZONE, -(HOUR ( 3) + 30 * 60) }, /* Newfoundland Standard */ { "NDT", tDAYZONE,-(HOUR ( 3) + 30 * 60) }, /* Newfoundland Daylight */ { "AST", tZONE, -HOUR ( 4) }, /* Atlantic Standard */ { "ADT", tDAYZONE, -HOUR ( 4) }, /* Atlantic Daylight */ { "CLT", tZONE, -HOUR ( 4) }, /* Chile */ { "CLST", tDAYZONE, -HOUR ( 4) }, /* Chile Summer */ { "EST", tZONE, -HOUR ( 5) }, /* Eastern Standard */ { "EDT", tDAYZONE, -HOUR ( 5) }, /* Eastern Daylight */ { "CST", tZONE, -HOUR ( 6) }, /* Central Standard */ { "CDT", tDAYZONE, -HOUR ( 6) }, /* Central Daylight */ { "MST", tZONE, -HOUR ( 7) }, /* Mountain Standard */ { "MDT", tDAYZONE, -HOUR ( 7) }, /* Mountain Daylight */ { "PST", tZONE, -HOUR ( 8) }, /* Pacific Standard */ { "PDT", tDAYZONE, -HOUR ( 8) }, /* Pacific Daylight */ { "AKST", tZONE, -HOUR ( 9) }, /* Alaska Standard */ { "AKDT", tDAYZONE, -HOUR ( 9) }, /* Alaska Daylight */ { "HST", tZONE, -HOUR (10) }, /* Hawaii Standard */ { "HAST", tZONE, -HOUR (10) }, /* Hawaii-Aleutian Standard */ { "HADT", tDAYZONE, -HOUR (10) }, /* Hawaii-Aleutian Daylight */ { "SST", tZONE, -HOUR (12) }, /* Samoa Standard */ { "WAT", tZONE, HOUR ( 1) }, /* West Africa */ { "CET", tZONE, HOUR ( 1) }, /* Central European */ { "CEST", tDAYZONE, HOUR ( 1) }, /* Central European Summer */ { "MET", tZONE, HOUR ( 1) }, /* Middle European */ { "MEZ", tZONE, HOUR ( 1) }, /* Middle European */ { "MEST", tDAYZONE, HOUR ( 1) }, /* Middle European Summer */ { "MESZ", tDAYZONE, HOUR ( 1) }, /* Middle European Summer */ { "EET", tZONE, HOUR ( 2) }, /* Eastern European */ { "EEST", tDAYZONE, HOUR ( 2) }, /* Eastern European Summer */ { "CAT", tZONE, HOUR ( 2) }, /* Central Africa */ { "SAST", tZONE, HOUR ( 2) }, /* South Africa Standard */ { "EAT", tZONE, HOUR ( 3) }, /* East Africa */ { "MSK", tZONE, HOUR ( 3) }, /* Moscow */ { "MSD", tDAYZONE, HOUR ( 3) }, /* Moscow Daylight */ { "IST", tZONE, (HOUR ( 5) + 30 * 60) }, /* India Standard */ { "SGT", tZONE, HOUR ( 8) }, /* Singapore */ { "KST", tZONE, HOUR ( 9) }, /* Korea Standard */ { "JST", tZONE, HOUR ( 9) }, /* Japan Standard */ { "GST", tZONE, HOUR (10) }, /* Guam Standard */ { "NZST", tZONE, HOUR (12) }, /* New Zealand Standard */ { "NZDT", tDAYZONE, HOUR (12) }, /* New Zealand Daylight */ { NULL, 0, 0 } }; /* Military time zone table. RFC 822 got these backwards, but RFC 5322 makes the incorrect treatment optional, so do them the right way here. 'J' is special, as it is local time. 'T' is also special, as it is the separator in ISO 8601 date and time of day representation. */ static table const military_table[] = { { "A", tZONE, HOUR ( 1) }, { "B", tZONE, HOUR ( 2) }, { "C", tZONE, HOUR ( 3) }, { "D", tZONE, HOUR ( 4) }, { "E", tZONE, HOUR ( 5) }, { "F", tZONE, HOUR ( 6) }, { "G", tZONE, HOUR ( 7) }, { "H", tZONE, HOUR ( 8) }, { "I", tZONE, HOUR ( 9) }, { "J", 'J', 0 }, { "K", tZONE, HOUR (10) }, { "L", tZONE, HOUR (11) }, { "M", tZONE, HOUR (12) }, { "N", tZONE, -HOUR ( 1) }, { "O", tZONE, -HOUR ( 2) }, { "P", tZONE, -HOUR ( 3) }, { "Q", tZONE, -HOUR ( 4) }, { "R", tZONE, -HOUR ( 5) }, { "S", tZONE, -HOUR ( 6) }, { "T", 'T', 0 }, { "U", tZONE, -HOUR ( 8) }, { "V", tZONE, -HOUR ( 9) }, { "W", tZONE, -HOUR (10) }, { "X", tZONE, -HOUR (11) }, { "Y", tZONE, -HOUR (12) }, { "Z", tZONE, HOUR ( 0) }, { NULL, 0, 0 } }; /* Convert a time zone expressed as HH:MM into an integer count of seconds. If MM is negative, then S is of the form HHMM and needs to be picked apart; otherwise, S is of the form HH. As specified in https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03, allow only valid TZ range, and consider first two digits as hours, if no minutes specified. Return true if successful. */ static bool time_zone_hhmm (parser_control *pc, textint s, intmax_t mm) { intmax_t n_minutes; bool overflow = false; /* If the length of S is 1 or 2 and no minutes are specified, interpret it as a number of hours. */ if (s.digits <= 2 && mm < 0) s.value *= 100; if (mm < 0) n_minutes = (s.value / 100) * 60 + s.value % 100; else { overflow |= INT_MULTIPLY_WRAPV (s.value, 60, &n_minutes); overflow |= (s.negative ? INT_SUBTRACT_WRAPV (n_minutes, mm, &n_minutes) : INT_ADD_WRAPV (n_minutes, mm, &n_minutes)); } if (overflow || ! (-24 * 60 <= n_minutes && n_minutes <= 24 * 60)) return false; pc->time_zone = n_minutes * 60; return true; } static int to_hour (intmax_t hours, int meridian) { switch (meridian) { default: /* Pacify GCC. */ case MER24: return 0 <= hours && hours < 24 ? hours : -1; case MERam: return 0 < hours && hours < 12 ? hours : hours == 12 ? 0 : -1; case MERpm: return 0 < hours && hours < 12 ? hours + 12 : hours == 12 ? 12 : -1; } } enum { TM_YEAR_BASE = 1900 }; enum { TM_YEAR_BUFSIZE = INT_BUFSIZE_BOUND (int) + 1 }; /* Convert TM_YEAR, a year minus 1900, to a string that is numerically correct even if subtracting 1900 would overflow. */ static char const * tm_year_str (int tm_year, char buf[TM_YEAR_BUFSIZE]) { verify (TM_YEAR_BASE % 100 == 0); sprintf (buf, &"-%02d%02d"[-TM_YEAR_BASE <= tm_year], abs (tm_year / 100 + TM_YEAR_BASE / 100), abs (tm_year % 100)); return buf; } /* Convert a text year number to a year minus 1900, working correctly even if the input is in the range INT_MAX .. INT_MAX + 1900 - 1. */ static bool to_tm_year (textint textyear, bool debug, int *tm_year) { intmax_t year = textyear.value; /* XPG4 suggests that years 00-68 map to 2000-2068, and years 69-99 map to 1969-1999. */ if (0 <= year && textyear.digits == 2) { year += year < 69 ? 2000 : 1900; if (debug) dbg_printf (_("warning: adjusting year value %"PRIdMAX " to %"PRIdMAX"\n"), textyear.value, year); } if (year < 0 ? INT_SUBTRACT_WRAPV (-TM_YEAR_BASE, year, tm_year) : INT_SUBTRACT_WRAPV (year, TM_YEAR_BASE, tm_year)) { if (debug) dbg_printf (_("error: out-of-range year %"PRIdMAX"\n"), year); return false; } return true; } static table const * _GL_ATTRIBUTE_PURE lookup_zone (parser_control const *pc, char const *name) { table const *tp; for (tp = universal_time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; /* Try local zone abbreviations before those in time_zone_table, as the local ones are more likely to be right. */ for (tp = pc->local_time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; for (tp = time_zone_table; tp->name; tp++) if (strcmp (name, tp->name) == 0) return tp; return NULL; } #if ! HAVE_TM_GMTOFF /* Yield the difference between *A and *B, measured in seconds, ignoring leap seconds. The body of this function is taken directly from the GNU C Library; see strftime.c. */ static int tm_diff (const struct tm *a, const struct tm *b) { /* Compute intervening leap days correctly even if year is negative. Take care to avoid int overflow in leap day calculations, but it's OK to assume that A and B are close to each other. */ int a4 = SHR (a->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (a->tm_year & 3); int b4 = SHR (b->tm_year, 2) + SHR (TM_YEAR_BASE, 2) - ! (b->tm_year & 3); int a100 = a4 / 25 - (a4 % 25 < 0); int b100 = b4 / 25 - (b4 % 25 < 0); int a400 = SHR (a100, 2); int b400 = SHR (b100, 2); int intervening_leap_days = (a4 - b4) - (a100 - b100) + (a400 - b400); int years = a->tm_year - b->tm_year; int days = (365 * years + intervening_leap_days + (a->tm_yday - b->tm_yday)); return (60 * (60 * (24 * days + (a->tm_hour - b->tm_hour)) + (a->tm_min - b->tm_min)) + (a->tm_sec - b->tm_sec)); } #endif /* ! HAVE_TM_GMTOFF */ static table const * lookup_word (parser_control const *pc, char *word) { char *p; char *q; idx_t wordlen; table const *tp; bool period_found; bool abbrev; /* Make it uppercase. */ for (p = word; *p; p++) *p = c_toupper (to_uchar (*p)); for (tp = meridian_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* See if we have an abbreviation for a month. */ wordlen = strlen (word); abbrev = wordlen == 3 || (wordlen == 4 && word[3] == '.'); for (tp = month_and_day_table; tp->name; tp++) if ((abbrev ? strncmp (word, tp->name, 3) : strcmp (word, tp->name)) == 0) return tp; if ((tp = lookup_zone (pc, word))) return tp; if (strcmp (word, dst_table[0].name) == 0) return dst_table; for (tp = time_units_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* Strip off any plural and try the units table again. */ if (word[wordlen - 1] == 'S') { word[wordlen - 1] = '\0'; for (tp = time_units_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; word[wordlen - 1] = 'S'; /* For "this" in relative_time_table. */ } for (tp = relative_time_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) return tp; /* Military time zones. */ if (wordlen == 1) for (tp = military_table; tp->name; tp++) if (word[0] == tp->name[0]) return tp; /* Drop out any periods and try the time zone table again. */ for (period_found = false, p = q = word; (*p = *q); q++) if (*q == '.') period_found = true; else p++; if (period_found && (tp = lookup_zone (pc, word))) return tp; return NULL; } static int yylex (union YYSTYPE *lvalp, parser_control *pc) { unsigned char c; for (;;) { while (c = *pc->input, c_isspace (c)) pc->input++; if (c_isdigit (c) || c == '-' || c == '+') { char const *p = pc->input; int sign; if (c == '-' || c == '+') { sign = c == '-' ? -1 : 1; while (c = *(pc->input = ++p), c_isspace (c)) continue; if (! c_isdigit (c)) /* skip the '-' sign */ continue; } else sign = 0; time_t value = 0; do { if (INT_MULTIPLY_WRAPV (value, 10, &value)) return '?'; if (INT_ADD_WRAPV (value, sign < 0 ? '0' - c : c - '0', &value)) return '?'; c = *++p; } while (c_isdigit (c)); if ((c == '.' || c == ',') && c_isdigit (p[1])) { time_t s = value; int digits; /* Accumulate fraction, to ns precision. */ p++; int ns = *p++ - '0'; for (digits = 2; digits <= LOG10_BILLION; digits++) { ns *= 10; if (c_isdigit (*p)) ns += *p++ - '0'; } /* Skip excess digits, truncating toward -Infinity. */ if (sign < 0) for (; c_isdigit (*p); p++) if (*p != '0') { ns++; break; } while (c_isdigit (*p)) p++; /* Adjust to the timespec convention, which is that tv_nsec is always a positive offset even if tv_sec is negative. */ if (sign < 0 && ns) { if (INT_SUBTRACT_WRAPV (s, 1, &s)) return '?'; ns = BILLION - ns; } lvalp->timespec.tv_sec = s; lvalp->timespec.tv_nsec = ns; pc->input = p; return sign ? tSDECIMAL_NUMBER : tUDECIMAL_NUMBER; } else { lvalp->textintval.negative = sign < 0; lvalp->textintval.value = value; lvalp->textintval.digits = p - pc->input; pc->input = p; return sign ? tSNUMBER : tUNUMBER; } } if (c_isalpha (c)) { char buff[20]; char *p = buff; table const *tp; do { if (p < buff + sizeof buff - 1) *p++ = c; c = *++pc->input; } while (c_isalpha (c) || c == '.'); *p = '\0'; tp = lookup_word (pc, buff); if (! tp) { if (debugging (pc)) dbg_printf (_("error: unknown word '%s'\n"), buff); return '?'; } lvalp->intval = tp->value; return tp->type; } if (c != '(') return to_uchar (*pc->input++); idx_t count = 0; do { c = *pc->input++; if (c == '\0') return c; if (c == '(') count++; else if (c == ')') count--; } while (count != 0); } } /* Do nothing if the parser reports an error. */ static int yyerror (_GL_UNUSED parser_control const *pc, _GL_UNUSED char const *s) { return 0; } /* If *TM0 is the old and *TM1 is the new value of a struct tm after passing it to mktime_z, return true if it's OK. It's not OK if mktime failed or if *TM0 has out-of-range mainline members. The caller should set TM1->tm_wday to -1 before calling mktime, as a negative tm_wday is how mktime failure is inferred. */ static bool mktime_ok (struct tm const *tm0, struct tm const *tm1) { if (tm1->tm_wday < 0) return false; return ! ((tm0->tm_sec ^ tm1->tm_sec) | (tm0->tm_min ^ tm1->tm_min) | (tm0->tm_hour ^ tm1->tm_hour) | (tm0->tm_mday ^ tm1->tm_mday) | (tm0->tm_mon ^ tm1->tm_mon) | (tm0->tm_year ^ tm1->tm_year)); } /* Debugging: format a 'struct tm' into a buffer, taking the parser's timezone information into account (if pc != NULL). */ static char const * debug_strfdatetime (struct tm const *tm, parser_control const *pc, char *buf, int n) { /* TODO: 1. find an optimal way to print date string in a clear and unambiguous format. Currently, always add '(Y-M-D)' prefix. Consider '2016y01m10d' or 'year(2016) month(01) day(10)'. If the user needs debug printing, it means he/she already having issues with the parsing - better to avoid formats that could be mis-interpreted (e.g., just YYYY-MM-DD). 2. Can strftime be used instead? depends if it is portable and can print invalid dates on all systems. 3. Print timezone information ? 4. Print DST information ? 5. Print nanosecond information ? NOTE: Printed date/time values might not be valid, e.g., '2016-02-31' or '2016-19-2016' . These are the values as parsed from the user string, before validation. */ int m = nstrftime (buf, n, "(Y-M-D) %Y-%m-%d %H:%M:%S", tm, 0, 0); /* If parser_control information was provided (for timezone), and there's enough space in the buffer, add timezone info. */ if (pc && m < n && pc->zones_seen) { int tz = pc->time_zone; /* Account for DST if tLOCAL_ZONE was seen. */ if (pc->local_zones_seen && !pc->zones_seen && 0 < pc->local_isdst) tz += 60 * 60; char time_zone_buf[TIME_ZONE_BUFSIZE]; snprintf (&buf[m], n - m, " TZ=%s", time_zone_str (tz, time_zone_buf)); } return buf; } static char const * debug_strfdate (struct tm const *tm, char *buf, int n) { char tm_year_buf[TM_YEAR_BUFSIZE]; snprintf (buf, n, "(Y-M-D) %s-%02d-%02d", tm_year_str (tm->tm_year, tm_year_buf), tm->tm_mon + 1, tm->tm_mday); return buf; } static char const * debug_strftime (struct tm const *tm, char *buf, int n) { snprintf (buf, n, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); return buf; } /* If mktime_ok failed, display the failed time values, and provide possible hints. Example output: date: error: invalid date/time value: date: user provided time: '(Y-M-D) 2006-04-02 02:45:00' date: normalized time: '(Y-M-D) 2006-04-02 03:45:00' date: __ date: possible reasons: date: non-existing due to daylight-saving time; date: numeric values overflow; date: missing timezone; */ static void debug_mktime_not_ok (struct tm const *tm0, struct tm const *tm1, parser_control const *pc, bool time_zone_seen) { /* TODO: handle t == -1 (as in 'mktime_ok'). */ char tmp[DBGBUFSIZE]; int i; const bool eq_sec = (tm0->tm_sec == tm1->tm_sec); const bool eq_min = (tm0->tm_min == tm1->tm_min); const bool eq_hour = (tm0->tm_hour == tm1->tm_hour); const bool eq_mday = (tm0->tm_mday == tm1->tm_mday); const bool eq_month = (tm0->tm_mon == tm1->tm_mon); const bool eq_year = (tm0->tm_year == tm1->tm_year); const bool dst_shift = eq_sec && eq_min && !eq_hour && eq_mday && eq_month && eq_year; if (!debugging (pc)) return; dbg_printf (_("error: invalid date/time value:\n")); dbg_printf (_(" user provided time: '%s'\n"), debug_strfdatetime (tm0, pc, tmp, sizeof tmp)); dbg_printf (_(" normalized time: '%s'\n"), debug_strfdatetime (tm1, pc, tmp, sizeof tmp)); /* The format must be aligned with debug_strfdatetime and the two DEBUG statements above. This string is not translated. */ i = snprintf (tmp, sizeof tmp, " %4s %2s %2s %2s %2s %2s", eq_year ? "" : "----", eq_month ? "" : "--", eq_mday ? "" : "--", eq_hour ? "" : "--", eq_min ? "" : "--", eq_sec ? "" : "--"); /* Trim trailing whitespace. */ if (0 <= i) { if (sizeof tmp - 1 < i) i = sizeof tmp - 1; while (0 < i && tmp[i - 1] == ' ') --i; tmp[i] = '\0'; } dbg_printf ("%s\n", tmp); dbg_printf (_(" possible reasons:\n")); if (dst_shift) dbg_printf (_(" non-existing due to daylight-saving time;\n")); if (!eq_mday && !eq_month) dbg_printf (_(" invalid day/month combination;\n")); dbg_printf (_(" numeric values overflow;\n")); dbg_printf (" %s\n", (time_zone_seen ? _("incorrect timezone") : _("missing timezone"))); } /* Parse a date/time string, storing the resulting time value into *RESULT. The string itself is pointed to by P. Return true if successful. P can be an incomplete or relative time specification; if so, use *NOW as the basis for the returned time. Default to timezone TZDEFAULT, which corresponds to tzalloc (TZSTRING). */ static bool parse_datetime_body (struct timespec *result, char const *p, struct timespec const *now, unsigned int flags, timezone_t tzdefault, char const *tzstring) { struct tm tm; struct tm tm0; char time_zone_buf[TIME_ZONE_BUFSIZE]; char dbg_tm[DBGBUFSIZE]; bool ok = false; char const *input_sentinel = p + strlen (p); char *tz1alloc = NULL; /* A reasonable upper bound for the size of ordinary TZ strings. Use heap allocation if TZ's length exceeds this. */ enum { TZBUFSIZE = 100 }; char tz1buf[TZBUFSIZE]; struct timespec gettime_buffer; if (! now) { gettime (&gettime_buffer); now = &gettime_buffer; } time_t Start = now->tv_sec; int Start_ns = now->tv_nsec; unsigned char c; while (c = *p, c_isspace (c)) p++; timezone_t tz = tzdefault; /* Store a local copy prior to first "goto". Without this, a prior use below of RELATIVE_TIME_0 on the RHS might translate to an assignment- to-temporary, which would trigger a -Wjump-misses-init warning. */ const relative_time rel_time_0 = RELATIVE_TIME_0; if (strncmp (p, "TZ=\"", 4) == 0) { char const *tzbase = p + 4; idx_t tzsize = 1; char const *s; for (s = tzbase; *s; s++, tzsize++) if (*s == '\\') { s++; if (! (*s == '\\' || *s == '"')) break; } else if (*s == '"') { timezone_t tz1; char *tz1string = tz1buf; char *z; if (TZBUFSIZE < tzsize) { tz1alloc = malloc (tzsize); if (!tz1alloc) goto fail; tz1string = tz1alloc; } z = tz1string; for (s = tzbase; *s != '"'; s++) *z++ = *(s += *s == '\\'); *z = '\0'; tz1 = tzalloc (tz1string); if (!tz1) goto fail; tz = tz1; tzstring = tz1string; p = s + 1; while (c = *p, c_isspace (c)) p++; break; } } struct tm tmp; if (! localtime_rz (tz, &now->tv_sec, &tmp)) goto fail; /* As documented, be careful to treat the empty string just like a date string of "0". Without this, an empty string would be declared invalid when parsed during a DST transition. */ if (*p == '\0') p = "0"; parser_control pc; pc.input = p; #ifdef GNULIB_PARSE_DATETIME2 pc.parse_datetime_debug = (flags & PARSE_DATETIME_DEBUG) != 0; #endif if (INT_ADD_WRAPV (tmp.tm_year, TM_YEAR_BASE, &pc.year.value)) { if (debugging (&pc)) dbg_printf (_("error: initial year out of range\n")); goto fail; } pc.year.digits = 0; pc.month = tmp.tm_mon + 1; pc.day = tmp.tm_mday; pc.hour = tmp.tm_hour; pc.minutes = tmp.tm_min; pc.seconds.tv_sec = tmp.tm_sec; pc.seconds.tv_nsec = Start_ns; tm.tm_isdst = tmp.tm_isdst; pc.meridian = MER24; pc.rel = rel_time_0; pc.timespec_seen = false; pc.rels_seen = false; pc.dates_seen = 0; pc.days_seen = 0; pc.times_seen = 0; pc.J_zones_seen = 0; pc.local_zones_seen = 0; pc.dsts_seen = 0; pc.zones_seen = 0; pc.year_seen = false; pc.debug_dates_seen = false; pc.debug_days_seen = false; pc.debug_times_seen = false; pc.debug_local_zones_seen = false; pc.debug_zones_seen = false; pc.debug_year_seen = false; pc.debug_ordinal_day_seen = false; #if HAVE_STRUCT_TM_TM_ZONE pc.local_time_zone_table[0].name = tmp.tm_zone; pc.local_time_zone_table[0].type = tLOCAL_ZONE; pc.local_time_zone_table[0].value = tmp.tm_isdst; pc.local_time_zone_table[1].name = NULL; /* Probe the names used in the next three calendar quarters, looking for a tm_isdst different from the one we already have. */ { int quarter; for (quarter = 1; quarter <= 3; quarter++) { time_t probe; if (INT_ADD_WRAPV (Start, quarter * (90 * 24 * 60 * 60), &probe)) break; struct tm probe_tm; if (localtime_rz (tz, &probe, &probe_tm) && probe_tm.tm_zone && probe_tm.tm_isdst != pc.local_time_zone_table[0].value) { { pc.local_time_zone_table[1].name = probe_tm.tm_zone; pc.local_time_zone_table[1].type = tLOCAL_ZONE; pc.local_time_zone_table[1].value = probe_tm.tm_isdst; pc.local_time_zone_table[2].name = NULL; } break; } } } #else #if HAVE_TZNAME { # if !HAVE_DECL_TZNAME extern char *tzname[]; # endif int i; for (i = 0; i < 2; i++) { pc.local_time_zone_table[i].name = tzname[i]; pc.local_time_zone_table[i].type = tLOCAL_ZONE; pc.local_time_zone_table[i].value = i; } pc.local_time_zone_table[i].name = NULL; } #else pc.local_time_zone_table[0].name = NULL; #endif #endif if (pc.local_time_zone_table[0].name && pc.local_time_zone_table[1].name && ! strcmp (pc.local_time_zone_table[0].name, pc.local_time_zone_table[1].name)) { /* This locale uses the same abbreviation for standard and daylight times. So if we see that abbreviation, we don't know whether it's daylight time. */ pc.local_time_zone_table[0].value = -1; pc.local_time_zone_table[1].name = NULL; } if (yyparse (&pc) != 0) { if (debugging (&pc)) dbg_printf ((input_sentinel <= pc.input ? _("error: parsing failed\n") : _("error: parsing failed, stopped at '%s'\n")), pc.input); goto fail; } /* Determine effective timezone source. */ if (debugging (&pc)) { dbg_printf (_("input timezone: ")); if (pc.timespec_seen) fprintf (stderr, _("'@timespec' - always UTC")); else if (pc.zones_seen) fprintf (stderr, _("parsed date/time string")); else if (tzstring) { if (tz != tzdefault) fprintf (stderr, _("TZ=\"%s\" in date string"), tzstring); else if (STREQ (tzstring, "UTC0")) { /* Special case: 'date -u' sets TZ="UTC0". */ fprintf (stderr, _("TZ=\"UTC0\" environment value or -u")); } else fprintf (stderr, _("TZ=\"%s\" environment value"), tzstring); } else fprintf (stderr, _("system default")); /* Account for DST changes if tLOCAL_ZONE was seen. local timezone only changes DST and is relative to the default timezone.*/ if (pc.local_zones_seen && !pc.zones_seen && 0 < pc.local_isdst) fprintf (stderr, ", dst"); if (pc.zones_seen) fprintf (stderr, " (%s)", time_zone_str (pc.time_zone, time_zone_buf)); fputc ('\n', stderr); } if (pc.timespec_seen) *result = pc.seconds; else { if (1 < (pc.times_seen | pc.dates_seen | pc.days_seen | pc.dsts_seen | (pc.J_zones_seen + pc.local_zones_seen + pc.zones_seen))) { if (debugging (&pc)) { if (pc.times_seen > 1) dbg_printf ("error: seen multiple time parts\n"); if (pc.dates_seen > 1) dbg_printf ("error: seen multiple date parts\n"); if (pc.days_seen > 1) dbg_printf ("error: seen multiple days parts\n"); if (pc.dsts_seen > 1) dbg_printf ("error: seen multiple daylight-saving parts\n"); if ((pc.J_zones_seen + pc.local_zones_seen + pc.zones_seen) > 1) dbg_printf ("error: seen multiple time-zone parts\n"); } goto fail; } if (! to_tm_year (pc.year, debugging (&pc), &tm.tm_year) || INT_ADD_WRAPV (pc.month, -1, &tm.tm_mon) || INT_ADD_WRAPV (pc.day, 0, &tm.tm_mday)) { if (debugging (&pc)) dbg_printf (_("error: year, month, or day overflow\n")); goto fail; } if (pc.times_seen || (pc.rels_seen && ! pc.dates_seen && ! pc.days_seen)) { tm.tm_hour = to_hour (pc.hour, pc.meridian); if (tm.tm_hour < 0) { char const *mrd = (pc.meridian == MERam ? "am" : pc.meridian == MERpm ?"pm" : ""); if (debugging (&pc)) dbg_printf (_("error: invalid hour %"PRIdMAX"%s\n"), pc.hour, mrd); goto fail; } tm.tm_min = pc.minutes; tm.tm_sec = pc.seconds.tv_sec; if (debugging (&pc)) dbg_printf ((pc.times_seen ? _("using specified time as starting value: '%s'\n") : _("using current time as starting value: '%s'\n")), debug_strftime (&tm, dbg_tm, sizeof dbg_tm)); } else { tm.tm_hour = tm.tm_min = tm.tm_sec = 0; pc.seconds.tv_nsec = 0; if (debugging (&pc)) dbg_printf ("warning: using midnight as starting time: 00:00:00\n"); } /* Let mktime deduce tm_isdst if we have an absolute timestamp. */ if (pc.dates_seen | pc.days_seen | pc.times_seen) tm.tm_isdst = -1; /* But if the input explicitly specifies local time with or without DST, give mktime that information. */ if (pc.local_zones_seen) tm.tm_isdst = pc.local_isdst; tm0.tm_sec = tm.tm_sec; tm0.tm_min = tm.tm_min; tm0.tm_hour = tm.tm_hour; tm0.tm_mday = tm.tm_mday; tm0.tm_mon = tm.tm_mon; tm0.tm_year = tm.tm_year; tm0.tm_isdst = tm.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz, &tm); if (! mktime_ok (&tm0, &tm)) { bool repaired = false; bool time_zone_seen = pc.zones_seen != 0; if (time_zone_seen) { /* Guard against falsely reporting errors near the time_t boundaries when parsing times in other time zones. For example, suppose the input string "1969-12-31 23:00:00 -0100", the current time zone is 8 hours ahead of UTC, and the min time_t value is 1970-01-01 00:00:00 UTC. Then the min localtime value is 1970-01-01 08:00:00, and mktime will therefore fail on 1969-12-31 23:00:00. To work around the problem, set the time zone to 1 hour behind UTC temporarily by setting TZ="XXX1:00" and try mktime again. */ char tz2buf[sizeof "XXX" - 1 + TIME_ZONE_BUFSIZE]; tz2buf[0] = tz2buf[1] = tz2buf[2] = 'X'; time_zone_str (pc.time_zone, &tz2buf[3]); timezone_t tz2 = tzalloc (tz2buf); if (!tz2) { if (debugging (&pc)) dbg_printf (_("error: tzalloc (\"%s\") failed\n"), tz2buf); goto fail; } tm.tm_sec = tm0.tm_sec; tm.tm_min = tm0.tm_min; tm.tm_hour = tm0.tm_hour; tm.tm_mday = tm0.tm_mday; tm.tm_mon = tm0.tm_mon; tm.tm_year = tm0.tm_year; tm.tm_isdst = tm0.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz2, &tm); repaired = mktime_ok (&tm0, &tm); tzfree (tz2); } if (! repaired) { debug_mktime_not_ok (&tm0, &tm, &pc, time_zone_seen); goto fail; } } char dbg_ord[DBGBUFSIZE]; if (pc.days_seen && ! pc.dates_seen) { intmax_t dayincr; tm.tm_yday = -1; if (! (INT_MULTIPLY_WRAPV ((pc.day_ordinal - (0 < pc.day_ordinal && tm.tm_wday != pc.day_number)), 7, &dayincr) || INT_ADD_WRAPV ((pc.day_number - tm.tm_wday + 7) % 7, dayincr, &dayincr) || INT_ADD_WRAPV (dayincr, tm.tm_mday, &tm.tm_mday))) { tm.tm_isdst = -1; Start = mktime_z (tz, &tm); } if (tm.tm_yday < 0) { if (debugging (&pc)) dbg_printf (_("error: day '%s' " "(day ordinal=%"PRIdMAX" number=%d) " "resulted in an invalid date: '%s'\n"), str_days (&pc, dbg_ord, sizeof dbg_ord), pc.day_ordinal, pc.day_number, debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); goto fail; } if (debugging (&pc)) dbg_printf (_("new start date: '%s' is '%s'\n"), str_days (&pc, dbg_ord, sizeof dbg_ord), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); } if (debugging (&pc)) { if (!pc.dates_seen && !pc.days_seen) dbg_printf (_("using current date as starting value: '%s'\n"), debug_strfdate (&tm, dbg_tm, sizeof dbg_tm)); if (pc.days_seen && pc.dates_seen) dbg_printf (_("warning: day (%s) ignored when explicit dates " "are given\n"), str_days (&pc, dbg_ord, sizeof dbg_ord)); dbg_printf (_("starting date/time: '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); } /* Add relative date. */ if (pc.rel.year | pc.rel.month | pc.rel.day) { if (debugging (&pc)) { if ((pc.rel.year != 0 || pc.rel.month != 0) && tm.tm_mday != 15) dbg_printf (_("warning: when adding relative months/years, " "it is recommended to specify the 15th of the " "months\n")); if (pc.rel.day != 0 && tm.tm_hour != 12) dbg_printf (_("warning: when adding relative days, " "it is recommended to specify noon\n")); } int year, month, day; if (INT_ADD_WRAPV (tm.tm_year, pc.rel.year, &year) || INT_ADD_WRAPV (tm.tm_mon, pc.rel.month, &month) || INT_ADD_WRAPV (tm.tm_mday, pc.rel.day, &day)) { if (debugging (&pc)) dbg_printf (_("error: %s:%d\n"), __FILE__, __LINE__); goto fail; } tm.tm_year = year; tm.tm_mon = month; tm.tm_mday = day; tm.tm_hour = tm0.tm_hour; tm.tm_min = tm0.tm_min; tm.tm_sec = tm0.tm_sec; tm.tm_isdst = tm0.tm_isdst; tm.tm_wday = -1; Start = mktime_z (tz, &tm); if (tm.tm_wday < 0) { if (debugging (&pc)) dbg_printf (_("error: adding relative date resulted " "in an invalid date: '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); goto fail; } if (debugging (&pc)) { dbg_printf (_("after date adjustment " "(%+"PRIdMAX" years, %+"PRIdMAX" months, " "%+"PRIdMAX" days),\n"), pc.rel.year, pc.rel.month, pc.rel.day); dbg_printf (_(" new date/time = '%s'\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm)); /* Warn about crossing DST due to time adjustment. Example: https://bugs.gnu.org/8357 env TZ=Europe/Helsinki \ date --debug \ -d 'Mon Mar 28 00:36:07 2011 EEST 1 day ago' This case is different than DST changes due to time adjustment, i.e., "1 day ago" vs "24 hours ago" are calculated in different places. 'tm0.tm_isdst' contains the DST of the input date, 'tm.tm_isdst' is the normalized result after calling mktime (&tm). */ if (tm0.tm_isdst != -1 && tm.tm_isdst != tm0.tm_isdst) dbg_printf (_("warning: daylight saving time changed after " "date adjustment\n")); /* Warn if the user did not ask to adjust days but mday changed, or user did not ask to adjust months/days but the month changed. Example for first case: 2016-05-31 + 1 month => 2016-06-31 => 2016-07-01. User asked to adjust month, but the day changed from 31 to 01. Example for second case: 2016-02-29 + 1 year => 2017-02-29 => 2017-03-01. User asked to adjust year, but the month changed from 02 to 03. */ if (pc.rel.day == 0 && (tm.tm_mday != day || (pc.rel.month == 0 && tm.tm_mon != month))) { dbg_printf (_("warning: month/year adjustment resulted in " "shifted dates:\n")); char tm_year_buf[TM_YEAR_BUFSIZE]; dbg_printf (_(" adjusted Y M D: %s %02d %02d\n"), tm_year_str (year, tm_year_buf), month + 1, day); dbg_printf (_(" normalized Y M D: %s %02d %02d\n"), tm_year_str (tm.tm_year, tm_year_buf), tm.tm_mon + 1, tm.tm_mday); } } } /* The only "output" of this if-block is an updated Start value, so this block must follow others that clobber Start. */ if (pc.zones_seen) { bool overflow = false; #ifdef HAVE_TM_GMTOFF long int utcoff = tm.tm_gmtoff; #else time_t t = Start; struct tm gmt; int utcoff = (gmtime_r (&t, &gmt) ? tm_diff (&tm, &gmt) : (overflow = true, 0)); #endif intmax_t delta; overflow |= INT_SUBTRACT_WRAPV (pc.time_zone, utcoff, &delta); time_t t1; overflow |= INT_SUBTRACT_WRAPV (Start, delta, &t1); if (overflow) { if (debugging (&pc)) dbg_printf (_("error: timezone %d caused time_t overflow\n"), pc.time_zone); goto fail; } Start = t1; } if (debugging (&pc)) { intmax_t Starti = Start; dbg_printf (_("'%s' = %"PRIdMAX" epoch-seconds\n"), debug_strfdatetime (&tm, &pc, dbg_tm, sizeof dbg_tm), Starti); } /* Add relative hours, minutes, and seconds. On hosts that support leap seconds, ignore the possibility of leap seconds; e.g., "+ 10 minutes" adds 600 seconds, even if one of them is a leap second. Typically this is not what the user wants, but it's too hard to do it the other way, because the time zone indicator must be applied before relative times, and if mktime is applied again the time zone will be lost. */ { intmax_t orig_ns = pc.seconds.tv_nsec; intmax_t sum_ns = orig_ns + pc.rel.ns; int normalized_ns = (sum_ns % BILLION + BILLION) % BILLION; int d4 = (sum_ns - normalized_ns) / BILLION; intmax_t d1, t1, d2, t2, t3; time_t t4; if (INT_MULTIPLY_WRAPV (pc.rel.hour, 60 * 60, &d1) || INT_ADD_WRAPV (Start, d1, &t1) || INT_MULTIPLY_WRAPV (pc.rel.minutes, 60, &d2) || INT_ADD_WRAPV (t1, d2, &t2) || INT_ADD_WRAPV (t2, pc.rel.seconds, &t3) || INT_ADD_WRAPV (t3, d4, &t4)) { if (debugging (&pc)) dbg_printf (_("error: adding relative time caused an " "overflow\n")); goto fail; } result->tv_sec = t4; result->tv_nsec = normalized_ns; if (debugging (&pc) && (pc.rel.hour | pc.rel.minutes | pc.rel.seconds | pc.rel.ns)) { dbg_printf (_("after time adjustment (%+"PRIdMAX" hours, " "%+"PRIdMAX" minutes, " "%+"PRIdMAX" seconds, %+d ns),\n"), pc.rel.hour, pc.rel.minutes, pc.rel.seconds, pc.rel.ns); intmax_t t4i = t4; dbg_printf (_(" new time = %"PRIdMAX" epoch-seconds\n"), t4i); /* Warn about crossing DST due to time adjustment. Example: https://bugs.gnu.org/8357 env TZ=Europe/Helsinki \ date --debug \ -d 'Mon Mar 28 00:36:07 2011 EEST 24 hours ago' This case is different than DST changes due to days adjustment, i.e., "1 day ago" vs "24 hours ago" are calculated in different places. 'tm.tm_isdst' contains the date after date adjustment. */ struct tm lmt; if (tm.tm_isdst != -1 && localtime_rz (tz, &result->tv_sec, &lmt) && tm.tm_isdst != lmt.tm_isdst) dbg_printf (_("warning: daylight saving time changed after " "time adjustment\n")); } } } if (debugging (&pc)) { /* Special case: using 'date -u' simply set TZ=UTC0 */ if (! tzstring) dbg_printf (_("timezone: system default\n")); else if (STREQ (tzstring, "UTC0")) dbg_printf (_("timezone: Universal Time\n")); else dbg_printf (_("timezone: TZ=\"%s\" environment value\n"), tzstring); intmax_t sec = result->tv_sec; int nsec = result->tv_nsec; dbg_printf (_("final: %"PRIdMAX".%09d (epoch-seconds)\n"), sec, nsec); struct tm gmt, lmt; bool got_utc = !!gmtime_r (&result->tv_sec, &gmt); if (got_utc) dbg_printf (_("final: %s (UTC)\n"), debug_strfdatetime (&gmt, NULL, dbg_tm, sizeof dbg_tm)); if (localtime_rz (tz, &result->tv_sec, &lmt)) { #ifdef HAVE_TM_GMTOFF bool got_utcoff = true; long int utcoff = lmt.tm_gmtoff; #else bool got_utcoff = got_utc; int utcoff; if (got_utcoff) utcoff = tm_diff (&lmt, &gmt); #endif if (got_utcoff) dbg_printf (_("final: %s (UTC%s)\n"), debug_strfdatetime (&lmt, NULL, dbg_tm, sizeof dbg_tm), time_zone_str (utcoff, time_zone_buf)); else dbg_printf (_("final: %s (unknown time zone offset)\n"), debug_strfdatetime (&lmt, NULL, dbg_tm, sizeof dbg_tm)); } } ok = true; fail: if (tz != tzdefault) tzfree (tz); free (tz1alloc); return ok; } #ifdef GNULIB_PARSE_DATETIME2 /* Parse a date/time string, storing the resulting time value into *RESULT. The string itself is pointed to by P. Return true if successful. P can be an incomplete or relative time specification; if so, use *NOW as the basis for the returned time. Default to timezone TZDEFAULT, which corresponds to tzalloc (TZSTRING). */ bool parse_datetime2 (struct timespec *result, char const *p, struct timespec const *now, unsigned int flags, timezone_t tzdefault, char const *tzstring) { return parse_datetime_body (result, p, now, flags, tzdefault, tzstring); } #endif /* The plain interface: run with debug=false and the default timezone. */ bool parse_datetime (struct timespec *result, char const *p, struct timespec const *now) { char const *tzstring = getenv ("TZ"); timezone_t tz = tzalloc (tzstring); if (!tz) return false; bool ok = parse_datetime_body (result, p, now, 0, tz, tzstring); tzfree (tz); return ok; } #if TEST int main (int ac, char **av) { char buff[BUFSIZ]; printf ("Enter date, or blank line to exit.\n\t> "); fflush (stdout); buff[BUFSIZ - 1] = '\0'; while (fgets (buff, BUFSIZ - 1, stdin) && buff[0]) { struct timespec d; struct tm const *tm; if (! parse_datetime (&d, buff, NULL)) printf ("Bad format - couldn't convert.\n"); else if (! (tm = localtime (&d.tv_sec))) { intmax_t sec = d.tv_sec; printf ("localtime (%"PRIdMAX") failed\n", sec); } else { int ns = d.tv_nsec; char tm_year_buf[TM_YEAR_BUFSIZE]; printf ("%s-%02d-%02d %02d:%02d:%02d.%09d\n", tm_year_str (tm->tm_year, tm_year_buf), tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, ns); } printf ("\t> "); fflush (stdout); } return 0; } #endif /* TEST */ shishi-1.0.3/lib/gl/getsubopt.c0000644000000000000000000000505114273615122013225 00000000000000/* Parse comma separated list into words. Copyright (C) 1996-1997, 1999, 2004, 2007, 2009-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if !_LIBC # include #endif #include #include #if !_LIBC /* This code is written for inclusion in gnu-libc, and uses names in the namespace reserved for libc. If we're compiling in gnulib, define those names to be the normal ones instead. */ # undef __strchrnul # define __strchrnul strchrnul #endif /* Parse comma separated suboption from *OPTIONP and match against strings in TOKENS. If found return index and set *VALUEP to optional value introduced by an equal sign. If the suboption is not part of TOKENS return in *VALUEP beginning of unknown suboption. On exit *OPTIONP is set to the beginning of the next token or at the terminating NUL character. */ int getsubopt (char **optionp, char *const *tokens, char **valuep) { char *endp, *vstart; int cnt; if (**optionp == '\0') return -1; /* Find end of next token. */ endp = __strchrnul (*optionp, ','); /* Find start of value. */ vstart = memchr (*optionp, '=', endp - *optionp); if (vstart == NULL) vstart = endp; /* Try to match the characters between *OPTIONP and VSTART against one of the TOKENS. */ for (cnt = 0; tokens[cnt] != NULL; ++cnt) if (strncmp (*optionp, tokens[cnt], vstart - *optionp) == 0 && tokens[cnt][vstart - *optionp] == '\0') { /* We found the current option in TOKENS. */ *valuep = vstart != endp ? vstart + 1 : NULL; if (*endp != '\0') *endp++ = '\0'; *optionp = endp; return cnt; } /* The current suboption does not match any option. */ *valuep = *optionp; if (*endp != '\0') *endp++ = '\0'; *optionp = endp; return -1; } shishi-1.0.3/lib/gl/getpass.c0000644000000000000000000001252314273615122012661 00000000000000/* Copyright (C) 1992-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBC /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc warns for the null checks on 'prompt' below. */ # define _GL_ARG_NONNULL(params) # include #endif #include "getpass.h" #include #if !(defined _WIN32 && !defined __CYGWIN__) # include # if HAVE_DECL___FSETLOCKING && HAVE___FSETLOCKING # if HAVE_STDIO_EXT_H # include # endif # else # define __fsetlocking(stream, type) /* empty */ # endif # if HAVE_TERMIOS_H # include # endif # if USE_UNLOCKED_IO # include "unlocked-io.h" # else # if !HAVE_DECL_FFLUSH_UNLOCKED # undef fflush_unlocked # define fflush_unlocked(x) fflush (x) # endif # if !HAVE_DECL_FLOCKFILE # undef flockfile # define flockfile(x) ((void) 0) # endif # if !HAVE_DECL_FUNLOCKFILE # undef funlockfile # define funlockfile(x) ((void) 0) # endif # if !HAVE_DECL_FPUTS_UNLOCKED # undef fputs_unlocked # define fputs_unlocked(str,stream) fputs (str, stream) # endif # if !HAVE_DECL_PUTC_UNLOCKED # undef putc_unlocked # define putc_unlocked(c,stream) putc (c, stream) # endif # endif /* It is desirable to use this bit on systems that have it. The only bit of terminal state we want to twiddle is echoing, which is done in software; there is no need to change the state of the terminal hardware. */ # ifndef TCSASOFT # define TCSASOFT 0 # endif static void call_fclose (void *arg) { if (arg != NULL) fclose (arg); } char * getpass (const char *prompt) { FILE *tty; FILE *in, *out; # if HAVE_TCGETATTR struct termios s, t; # endif bool tty_changed = false; static char *buf; static size_t bufsize; ssize_t nread; /* Try to write to and read from the terminal if we can. If we can't open the terminal, use stderr and stdin. */ tty = fopen ("/dev/tty", "w+e"); if (tty == NULL) { in = stdin; out = stderr; } else { /* We do the locking ourselves. */ __fsetlocking (tty, FSETLOCKING_BYCALLER); out = in = tty; } flockfile (out); /* Turn echoing off if it is on now. */ # if HAVE_TCGETATTR if (tcgetattr (fileno (in), &t) == 0) { /* Save the old one. */ s = t; /* Tricky, tricky. */ t.c_lflag &= ~(ECHO | ISIG); tty_changed = (tcsetattr (fileno (in), TCSAFLUSH | TCSASOFT, &t) == 0); } # endif if (prompt) { /* Write the prompt. */ fputs_unlocked (prompt, out); fflush_unlocked (out); } /* Read the password. */ nread = getline (&buf, &bufsize, in); /* According to the C standard, input may not be followed by output on the same stream without an intervening call to a file positioning function. Suppose in == out; then without this fseek call, on Solaris, HP-UX, AIX, OSF/1, the previous input gets echoed, whereas on IRIX, the following newline is not output as it should be. POSIX imposes similar restrictions if fileno (in) == fileno (out). The POSIX restrictions are tricky and change from POSIX version to POSIX version, so play it safe and invoke fseek even if in != out. */ fseeko (out, 0, SEEK_CUR); if (buf != NULL) { if (nread < 0) buf[0] = '\0'; else if (buf[nread - 1] == '\n') { /* Remove the newline. */ buf[nread - 1] = '\0'; if (tty_changed) { /* Write the newline that was not echoed. */ putc_unlocked ('\n', out); } } } /* Restore the original setting. */ # if HAVE_TCSETATTR if (tty_changed) tcsetattr (fileno (in), TCSAFLUSH | TCSASOFT, &s); # endif funlockfile (out); call_fclose (tty); return buf; } #else /* W32 native */ /* Windows implementation by Martin Lambers , improved by Simon Josefsson. */ /* For PASS_MAX. */ # include /* For _getch(). */ # include /* For strdup(). */ # include # ifndef PASS_MAX # define PASS_MAX 512 # endif char * getpass (const char *prompt) { char getpassbuf[PASS_MAX + 1]; size_t i = 0; int c; if (prompt) { fputs (prompt, stderr); fflush (stderr); } for (;;) { c = _getch (); if (c == '\r') { getpassbuf[i] = '\0'; break; } else if (i < PASS_MAX) { getpassbuf[i++] = c; } if (i >= PASS_MAX) { getpassbuf[i] = '\0'; break; } } if (prompt) { fputs ("\r\n", stderr); fflush (stderr); } return strdup (getpassbuf); } #endif shishi-1.0.3/lib/gl/inttypes.in.h0000644000000000000000000005123214273615122013504 00000000000000/* Copyright (C) 2006-2022 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Derek Price. This file is part of gnulib. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* * ISO C 99 for platforms that lack it. * */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* Include the original if it exists, and if this file has not been included yet or if this file includes gnulib stdint.h which in turn includes this file. The include_next requires a split double-inclusion guard. */ #if ! defined INTTYPES_H || defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # if @HAVE_INTTYPES_H@ /* Some pre-C++11 implementations need this. */ # if defined __cplusplus && ! defined __STDC_FORMAT_MACROS # define __STDC_FORMAT_MACROS 1 # endif # @INCLUDE_NEXT@ @NEXT_INTTYPES_H@ # define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H # endif #endif #if ! defined INTTYPES_H && ! defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H #define INTTYPES_H /* Include or the gnulib replacement. But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include #endif /* Get CHAR_BIT, INT_MAX, LONG_MAX, etc. */ #include /* On mingw, __USE_MINGW_ANSI_STDIO only works if is also included */ #if defined _WIN32 && ! defined __CYGWIN__ # include #endif #if !(INT_MAX == 0x7fffffff && INT_MIN + INT_MAX == -1) # error "This file assumes that 'int' is 32-bit two's complement. Please report your platform and compiler to ." #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* 7.8.1 Macros for format specifiers */ #if defined _TNS_R_TARGET /* Tandem NonStop R series and compatible platforms released before July 2005 support %Ld but not %lld. */ # define _LONG_LONG_FORMAT_PREFIX "L" #else # define _LONG_LONG_FORMAT_PREFIX "ll" #endif #if !defined PRId8 # ifdef INT8_MAX # define PRId8 "d" # endif #endif #if !defined PRIi8 # ifdef INT8_MAX # define PRIi8 "i" # endif #endif #if !defined PRIo8 # ifdef UINT8_MAX # define PRIo8 "o" # endif #endif #if !defined PRIu8 # ifdef UINT8_MAX # define PRIu8 "u" # endif #endif #if !defined PRIx8 # ifdef UINT8_MAX # define PRIx8 "x" # endif #endif #if !defined PRIX8 # ifdef UINT8_MAX # define PRIX8 "X" # endif #endif #if !defined PRId16 # ifdef INT16_MAX # define PRId16 "d" # endif #endif #if !defined PRIi16 # ifdef INT16_MAX # define PRIi16 "i" # endif #endif #if !defined PRIo16 # ifdef UINT16_MAX # define PRIo16 "o" # endif #endif #if !defined PRIu16 # ifdef UINT16_MAX # define PRIu16 "u" # endif #endif #if !defined PRIx16 # ifdef UINT16_MAX # define PRIx16 "x" # endif #endif #if !defined PRIX16 # ifdef UINT16_MAX # define PRIX16 "X" # endif #endif #if !defined PRId32 # ifdef INT32_MAX # define PRId32 "d" # endif #endif #if !defined PRIi32 # ifdef INT32_MAX # define PRIi32 "i" # endif #endif #if !defined PRIo32 # ifdef UINT32_MAX # define PRIo32 "o" # endif #endif #if !defined PRIu32 # ifdef UINT32_MAX # define PRIu32 "u" # endif #endif #if !defined PRIx32 # ifdef UINT32_MAX # define PRIx32 "x" # endif #endif #if !defined PRIX32 # ifdef UINT32_MAX # define PRIX32 "X" # endif #endif #ifdef INT64_MAX # if (@APPLE_UNIVERSAL_BUILD@ ? defined _LP64 : @INT64_MAX_EQ_LONG_MAX@) # define _PRI64_PREFIX "l" # elif defined _MSC_VER || defined __MINGW32__ # define _PRI64_PREFIX "I64" # elif LONG_MAX >> 30 == 1 # define _PRI64_PREFIX _LONG_LONG_FORMAT_PREFIX # endif # if !defined PRId64 # define PRId64 _PRI64_PREFIX "d" # endif # if !defined PRIi64 # define PRIi64 _PRI64_PREFIX "i" # endif #endif #ifdef UINT64_MAX # if (@APPLE_UNIVERSAL_BUILD@ ? defined _LP64 : @UINT64_MAX_EQ_ULONG_MAX@) # define _PRIu64_PREFIX "l" # elif defined _MSC_VER || defined __MINGW32__ # define _PRIu64_PREFIX "I64" # elif ULONG_MAX >> 31 == 1 # define _PRIu64_PREFIX _LONG_LONG_FORMAT_PREFIX # endif # if !defined PRIo64 # define PRIo64 _PRIu64_PREFIX "o" # endif # if !defined PRIu64 # define PRIu64 _PRIu64_PREFIX "u" # endif # if !defined PRIx64 # define PRIx64 _PRIu64_PREFIX "x" # endif # if !defined PRIX64 # define PRIX64 _PRIu64_PREFIX "X" # endif #endif #if !defined PRIdLEAST8 # define PRIdLEAST8 "d" #endif #if !defined PRIiLEAST8 # define PRIiLEAST8 "i" #endif #if !defined PRIoLEAST8 # define PRIoLEAST8 "o" #endif #if !defined PRIuLEAST8 # define PRIuLEAST8 "u" #endif #if !defined PRIxLEAST8 # define PRIxLEAST8 "x" #endif #if !defined PRIXLEAST8 # define PRIXLEAST8 "X" #endif #if !defined PRIdLEAST16 # define PRIdLEAST16 "d" #endif #if !defined PRIiLEAST16 # define PRIiLEAST16 "i" #endif #if !defined PRIoLEAST16 # define PRIoLEAST16 "o" #endif #if !defined PRIuLEAST16 # define PRIuLEAST16 "u" #endif #if !defined PRIxLEAST16 # define PRIxLEAST16 "x" #endif #if !defined PRIXLEAST16 # define PRIXLEAST16 "X" #endif #if !defined PRIdLEAST32 # define PRIdLEAST32 "d" #endif #if !defined PRIiLEAST32 # define PRIiLEAST32 "i" #endif #if !defined PRIoLEAST32 # define PRIoLEAST32 "o" #endif #if !defined PRIuLEAST32 # define PRIuLEAST32 "u" #endif #if !defined PRIxLEAST32 # define PRIxLEAST32 "x" #endif #if !defined PRIXLEAST32 # define PRIXLEAST32 "X" #endif #ifdef INT64_MAX # if !defined PRIdLEAST64 # define PRIdLEAST64 PRId64 # endif # if !defined PRIiLEAST64 # define PRIiLEAST64 PRIi64 # endif #endif #ifdef UINT64_MAX # if !defined PRIoLEAST64 # define PRIoLEAST64 PRIo64 # endif # if !defined PRIuLEAST64 # define PRIuLEAST64 PRIu64 # endif # if !defined PRIxLEAST64 # define PRIxLEAST64 PRIx64 # endif # if !defined PRIXLEAST64 # define PRIXLEAST64 PRIX64 # endif #endif #if !defined PRIdFAST8 # if INT_FAST8_MAX > INT32_MAX # define PRIdFAST8 PRId64 # else # define PRIdFAST8 "d" # endif #endif #if !defined PRIiFAST8 # if INT_FAST8_MAX > INT32_MAX # define PRIiFAST8 PRIi64 # else # define PRIiFAST8 "i" # endif #endif #if !defined PRIoFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define PRIoFAST8 PRIo64 # else # define PRIoFAST8 "o" # endif #endif #if !defined PRIuFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define PRIuFAST8 PRIu64 # else # define PRIuFAST8 "u" # endif #endif #if !defined PRIxFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define PRIxFAST8 PRIx64 # else # define PRIxFAST8 "x" # endif #endif #if !defined PRIXFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define PRIXFAST8 PRIX64 # else # define PRIXFAST8 "X" # endif #endif #if !defined PRIdFAST16 # if INT_FAST16_MAX > INT32_MAX # define PRIdFAST16 PRId64 # else # define PRIdFAST16 "d" # endif #endif #if !defined PRIiFAST16 # if INT_FAST16_MAX > INT32_MAX # define PRIiFAST16 PRIi64 # else # define PRIiFAST16 "i" # endif #endif #if !defined PRIoFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define PRIoFAST16 PRIo64 # else # define PRIoFAST16 "o" # endif #endif #if !defined PRIuFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define PRIuFAST16 PRIu64 # else # define PRIuFAST16 "u" # endif #endif #if !defined PRIxFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define PRIxFAST16 PRIx64 # else # define PRIxFAST16 "x" # endif #endif #if !defined PRIXFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define PRIXFAST16 PRIX64 # else # define PRIXFAST16 "X" # endif #endif #if !defined PRIdFAST32 # if INT_FAST32_MAX > INT32_MAX # define PRIdFAST32 PRId64 # else # define PRIdFAST32 "d" # endif #endif #if !defined PRIiFAST32 # if INT_FAST32_MAX > INT32_MAX # define PRIiFAST32 PRIi64 # else # define PRIiFAST32 "i" # endif #endif #if !defined PRIoFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define PRIoFAST32 PRIo64 # else # define PRIoFAST32 "o" # endif #endif #if !defined PRIuFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define PRIuFAST32 PRIu64 # else # define PRIuFAST32 "u" # endif #endif #if !defined PRIxFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define PRIxFAST32 PRIx64 # else # define PRIxFAST32 "x" # endif #endif #if !defined PRIXFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define PRIXFAST32 PRIX64 # else # define PRIXFAST32 "X" # endif #endif #ifdef INT64_MAX # if !defined PRIdFAST64 # define PRIdFAST64 PRId64 # endif # if !defined PRIiFAST64 # define PRIiFAST64 PRIi64 # endif #endif #ifdef UINT64_MAX # if !defined PRIoFAST64 # define PRIoFAST64 PRIo64 # endif # if !defined PRIuFAST64 # define PRIuFAST64 PRIu64 # endif # if !defined PRIxFAST64 # define PRIxFAST64 PRIx64 # endif # if !defined PRIXFAST64 # define PRIXFAST64 PRIX64 # endif #endif #if !defined PRIdMAX # if @INT32_MAX_LT_INTMAX_MAX@ # define PRIdMAX PRId64 # else # define PRIdMAX "ld" # endif #endif #if !defined PRIiMAX # if @INT32_MAX_LT_INTMAX_MAX@ # define PRIiMAX PRIi64 # else # define PRIiMAX "li" # endif #endif #if !defined PRIoMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define PRIoMAX PRIo64 # else # define PRIoMAX "lo" # endif #endif #if !defined PRIuMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define PRIuMAX PRIu64 # else # define PRIuMAX "lu" # endif #endif #if !defined PRIxMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define PRIxMAX PRIx64 # else # define PRIxMAX "lx" # endif #endif #if !defined PRIXMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define PRIXMAX PRIX64 # else # define PRIXMAX "lX" # endif #endif #if !defined PRIdPTR # ifdef INTPTR_MAX # define PRIdPTR @PRIPTR_PREFIX@ "d" # endif #endif #if !defined PRIiPTR # ifdef INTPTR_MAX # define PRIiPTR @PRIPTR_PREFIX@ "i" # endif #endif #if !defined PRIoPTR # ifdef UINTPTR_MAX # define PRIoPTR @PRIPTR_PREFIX@ "o" # endif #endif #if !defined PRIuPTR # ifdef UINTPTR_MAX # define PRIuPTR @PRIPTR_PREFIX@ "u" # endif #endif #if !defined PRIxPTR # ifdef UINTPTR_MAX # define PRIxPTR @PRIPTR_PREFIX@ "x" # endif #endif #if !defined PRIXPTR # ifdef UINTPTR_MAX # define PRIXPTR @PRIPTR_PREFIX@ "X" # endif #endif #if !defined SCNd8 # ifdef INT8_MAX # define SCNd8 "hhd" # endif #endif #if !defined SCNi8 # ifdef INT8_MAX # define SCNi8 "hhi" # endif #endif #if !defined SCNo8 # ifdef UINT8_MAX # define SCNo8 "hho" # endif #endif #if !defined SCNu8 # ifdef UINT8_MAX # define SCNu8 "hhu" # endif #endif #if !defined SCNx8 # ifdef UINT8_MAX # define SCNx8 "hhx" # endif #endif #if !defined SCNd16 # ifdef INT16_MAX # define SCNd16 "hd" # endif #endif #if !defined SCNi16 # ifdef INT16_MAX # define SCNi16 "hi" # endif #endif #if !defined SCNo16 # ifdef UINT16_MAX # define SCNo16 "ho" # endif #endif #if !defined SCNu16 # ifdef UINT16_MAX # define SCNu16 "hu" # endif #endif #if !defined SCNx16 # ifdef UINT16_MAX # define SCNx16 "hx" # endif #endif #if !defined SCNd32 # ifdef INT32_MAX # define SCNd32 "d" # endif #endif #if !defined SCNi32 # ifdef INT32_MAX # define SCNi32 "i" # endif #endif #if !defined SCNo32 # ifdef UINT32_MAX # define SCNo32 "o" # endif #endif #if !defined SCNu32 # ifdef UINT32_MAX # define SCNu32 "u" # endif #endif #if !defined SCNx32 # ifdef UINT32_MAX # define SCNx32 "x" # endif #endif #ifdef INT64_MAX # if (@APPLE_UNIVERSAL_BUILD@ ? defined _LP64 : @INT64_MAX_EQ_LONG_MAX@) # define _SCN64_PREFIX "l" # elif defined _MSC_VER || defined __MINGW32__ # define _SCN64_PREFIX "I64" # elif LONG_MAX >> 30 == 1 # define _SCN64_PREFIX _LONG_LONG_FORMAT_PREFIX # endif # if !defined SCNd64 # define SCNd64 _SCN64_PREFIX "d" # endif # if !defined SCNi64 # define SCNi64 _SCN64_PREFIX "i" # endif #endif #ifdef UINT64_MAX # if (@APPLE_UNIVERSAL_BUILD@ ? defined _LP64 : @UINT64_MAX_EQ_ULONG_MAX@) # define _SCNu64_PREFIX "l" # elif defined _MSC_VER || defined __MINGW32__ # define _SCNu64_PREFIX "I64" # elif ULONG_MAX >> 31 == 1 # define _SCNu64_PREFIX _LONG_LONG_FORMAT_PREFIX # endif # if !defined SCNo64 # define SCNo64 _SCNu64_PREFIX "o" # endif # if !defined SCNu64 # define SCNu64 _SCNu64_PREFIX "u" # endif # if !defined SCNx64 # define SCNx64 _SCNu64_PREFIX "x" # endif #endif #if !defined SCNdLEAST8 # define SCNdLEAST8 "hhd" #endif #if !defined SCNiLEAST8 # define SCNiLEAST8 "hhi" #endif #if !defined SCNoLEAST8 # define SCNoLEAST8 "hho" #endif #if !defined SCNuLEAST8 # define SCNuLEAST8 "hhu" #endif #if !defined SCNxLEAST8 # define SCNxLEAST8 "hhx" #endif #if !defined SCNdLEAST16 # define SCNdLEAST16 "hd" #endif #if !defined SCNiLEAST16 # define SCNiLEAST16 "hi" #endif #if !defined SCNoLEAST16 # define SCNoLEAST16 "ho" #endif #if !defined SCNuLEAST16 # define SCNuLEAST16 "hu" #endif #if !defined SCNxLEAST16 # define SCNxLEAST16 "hx" #endif #if !defined SCNdLEAST32 # define SCNdLEAST32 "d" #endif #if !defined SCNiLEAST32 # define SCNiLEAST32 "i" #endif #if !defined SCNoLEAST32 # define SCNoLEAST32 "o" #endif #if !defined SCNuLEAST32 # define SCNuLEAST32 "u" #endif #if !defined SCNxLEAST32 # define SCNxLEAST32 "x" #endif #ifdef INT64_MAX # if !defined SCNdLEAST64 # define SCNdLEAST64 SCNd64 # endif # if !defined SCNiLEAST64 # define SCNiLEAST64 SCNi64 # endif #endif #ifdef UINT64_MAX # if !defined SCNoLEAST64 # define SCNoLEAST64 SCNo64 # endif # if !defined SCNuLEAST64 # define SCNuLEAST64 SCNu64 # endif # if !defined SCNxLEAST64 # define SCNxLEAST64 SCNx64 # endif #endif #if !defined SCNdFAST8 # if INT_FAST8_MAX > INT32_MAX # define SCNdFAST8 SCNd64 # elif INT_FAST8_MAX == 0x7fff # define SCNdFAST8 "hd" # elif INT_FAST8_MAX == 0x7f # define SCNdFAST8 "hhd" # else # define SCNdFAST8 "d" # endif #endif #if !defined SCNiFAST8 # if INT_FAST8_MAX > INT32_MAX # define SCNiFAST8 SCNi64 # elif INT_FAST8_MAX == 0x7fff # define SCNiFAST8 "hi" # elif INT_FAST8_MAX == 0x7f # define SCNiFAST8 "hhi" # else # define SCNiFAST8 "i" # endif #endif #if !defined SCNoFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define SCNoFAST8 SCNo64 # elif UINT_FAST8_MAX == 0xffff # define SCNoFAST8 "ho" # elif UINT_FAST8_MAX == 0xff # define SCNoFAST8 "hho" # else # define SCNoFAST8 "o" # endif #endif #if !defined SCNuFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define SCNuFAST8 SCNu64 # elif UINT_FAST8_MAX == 0xffff # define SCNuFAST8 "hu" # elif UINT_FAST8_MAX == 0xff # define SCNuFAST8 "hhu" # else # define SCNuFAST8 "u" # endif #endif #if !defined SCNxFAST8 # if UINT_FAST8_MAX > UINT32_MAX # define SCNxFAST8 SCNx64 # elif UINT_FAST8_MAX == 0xffff # define SCNxFAST8 "hx" # elif UINT_FAST8_MAX == 0xff # define SCNxFAST8 "hhx" # else # define SCNxFAST8 "x" # endif #endif #if !defined SCNdFAST16 # if INT_FAST16_MAX > INT32_MAX # define SCNdFAST16 SCNd64 # elif INT_FAST16_MAX == 0x7fff # define SCNdFAST16 "hd" # else # define SCNdFAST16 "d" # endif #endif #if !defined SCNiFAST16 # if INT_FAST16_MAX > INT32_MAX # define SCNiFAST16 SCNi64 # elif INT_FAST16_MAX == 0x7fff # define SCNiFAST16 "hi" # else # define SCNiFAST16 "i" # endif #endif #if !defined SCNoFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define SCNoFAST16 SCNo64 # elif UINT_FAST16_MAX == 0xffff # define SCNoFAST16 "ho" # else # define SCNoFAST16 "o" # endif #endif #if !defined SCNuFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define SCNuFAST16 SCNu64 # elif UINT_FAST16_MAX == 0xffff # define SCNuFAST16 "hu" # else # define SCNuFAST16 "u" # endif #endif #if !defined SCNxFAST16 # if UINT_FAST16_MAX > UINT32_MAX # define SCNxFAST16 SCNx64 # elif UINT_FAST16_MAX == 0xffff # define SCNxFAST16 "hx" # else # define SCNxFAST16 "x" # endif #endif #if !defined SCNdFAST32 # if INT_FAST32_MAX > INT32_MAX # define SCNdFAST32 SCNd64 # else # define SCNdFAST32 "d" # endif #endif #if !defined SCNiFAST32 # if INT_FAST32_MAX > INT32_MAX # define SCNiFAST32 SCNi64 # else # define SCNiFAST32 "i" # endif #endif #if !defined SCNoFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define SCNoFAST32 SCNo64 # else # define SCNoFAST32 "o" # endif #endif #if !defined SCNuFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define SCNuFAST32 SCNu64 # else # define SCNuFAST32 "u" # endif #endif #if !defined SCNxFAST32 # if UINT_FAST32_MAX > UINT32_MAX # define SCNxFAST32 SCNx64 # else # define SCNxFAST32 "x" # endif #endif #ifdef INT64_MAX # if !defined SCNdFAST64 # define SCNdFAST64 SCNd64 # endif # if !defined SCNiFAST64 # define SCNiFAST64 SCNi64 # endif #endif #ifdef UINT64_MAX # if !defined SCNoFAST64 # define SCNoFAST64 SCNo64 # endif # if !defined SCNuFAST64 # define SCNuFAST64 SCNu64 # endif # if !defined SCNxFAST64 # define SCNxFAST64 SCNx64 # endif #endif #if !defined SCNdMAX # if @INT32_MAX_LT_INTMAX_MAX@ # define SCNdMAX SCNd64 # else # define SCNdMAX "ld" # endif #endif #if !defined SCNiMAX # if @INT32_MAX_LT_INTMAX_MAX@ # define SCNiMAX SCNi64 # else # define SCNiMAX "li" # endif #endif #if !defined SCNoMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define SCNoMAX SCNo64 # else # define SCNoMAX "lo" # endif #endif #if !defined SCNuMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define SCNuMAX SCNu64 # else # define SCNuMAX "lu" # endif #endif #if !defined SCNxMAX # if @UINT32_MAX_LT_UINTMAX_MAX@ # define SCNxMAX SCNx64 # else # define SCNxMAX "lx" # endif #endif #if !defined SCNdPTR # ifdef INTPTR_MAX # define SCNdPTR @PRIPTR_PREFIX@ "d" # endif #endif #if !defined SCNiPTR # ifdef INTPTR_MAX # define SCNiPTR @PRIPTR_PREFIX@ "i" # endif #endif #if !defined SCNoPTR # ifdef UINTPTR_MAX # define SCNoPTR @PRIPTR_PREFIX@ "o" # endif #endif #if !defined SCNuPTR # ifdef UINTPTR_MAX # define SCNuPTR @PRIPTR_PREFIX@ "u" # endif #endif #if !defined SCNxPTR # ifdef UINTPTR_MAX # define SCNxPTR @PRIPTR_PREFIX@ "x" # endif #endif /* 7.8.2 Functions for greatest-width integer types */ #ifdef __cplusplus extern "C" { #endif #if @GNULIB_IMAXABS@ # if !@HAVE_DECL_IMAXABS@ extern intmax_t imaxabs (intmax_t); # endif #elif defined GNULIB_POSIXCHECK # undef imaxabs # if HAVE_RAW_DECL_IMAXABS _GL_WARN_ON_USE (imaxabs, "imaxabs is unportable - " "use gnulib module imaxabs for portability"); # endif #endif #if @GNULIB_IMAXDIV@ # if !@HAVE_IMAXDIV_T@ # if !GNULIB_defined_imaxdiv_t typedef struct { intmax_t quot; intmax_t rem; } imaxdiv_t; # define GNULIB_defined_imaxdiv_t 1 # endif # endif # if !@HAVE_DECL_IMAXDIV@ extern imaxdiv_t imaxdiv (intmax_t, intmax_t); # endif #elif defined GNULIB_POSIXCHECK # undef imaxdiv # if HAVE_RAW_DECL_IMAXDIV _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - " "use gnulib module imaxdiv for portability"); # endif #endif #if @GNULIB_STRTOIMAX@ # if @REPLACE_STRTOIMAX@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strtoimax # define strtoimax rpl_strtoimax # endif _GL_FUNCDECL_RPL (strtoimax, intmax_t, (const char *restrict, char **restrict, int) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoimax, intmax_t, (const char *restrict, char **restrict, int)); # else # if !@HAVE_DECL_STRTOIMAX@ # undef strtoimax _GL_FUNCDECL_SYS (strtoimax, intmax_t, (const char *restrict, char **restrict, int) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoimax, intmax_t, (const char *restrict, char **restrict, int)); # endif _GL_CXXALIASWARN (strtoimax); #elif defined GNULIB_POSIXCHECK # undef strtoimax # if HAVE_RAW_DECL_STRTOIMAX _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - " "use gnulib module strtoimax for portability"); # endif #endif #if @GNULIB_STRTOUMAX@ # if @REPLACE_STRTOUMAX@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strtoumax # define strtoumax rpl_strtoumax # endif _GL_FUNCDECL_RPL (strtoumax, uintmax_t, (const char *restrict, char **restrict, int) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoumax, uintmax_t, (const char *restrict, char **restrict, int)); # else # if !@HAVE_DECL_STRTOUMAX@ # undef strtoumax _GL_FUNCDECL_SYS (strtoumax, uintmax_t, (const char *restrict, char **restrict, int) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoumax, uintmax_t, (const char *restrict, char **restrict, int)); # endif _GL_CXXALIASWARN (strtoumax); #elif defined GNULIB_POSIXCHECK # undef strtoumax # if HAVE_RAW_DECL_STRTOUMAX _GL_WARN_ON_USE (strtoumax, "strtoumax is unportable - " "use gnulib module strtoumax for portability"); # endif #endif /* Don't bother defining or declaring wcstoimax and wcstoumax, since wide-character functions like this are hardly ever useful. */ #ifdef __cplusplus } #endif #endif /* !defined INTTYPES_H && !defined _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H */ shishi-1.0.3/lib/gl/getline.c0000644000000000000000000000173014273615122012640 00000000000000/* getline.c --- Implementation of replacement getline function. Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Simon Josefsson. */ #include #include ssize_t getline (char **lineptr, size_t *n, FILE *stream) { return getdelim (lineptr, n, '\n', stream); } shishi-1.0.3/lib/gl/stdlib.in.h0000644000000000000000000015312514273615123013113 00000000000000/* A GNU-like . Copyright (C) 1995, 2001-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_stdlib_h || defined __need_malloc_and_calloc /* Special invocation conventions inside some gnulib header files, and inside some glibc header files, respectively. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STDLIB_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #ifndef _@GUARD_PREFIX@_STDLIB_H #define _@GUARD_PREFIX@_STDLIB_H /* NetBSD 5.0 mis-defines NULL. */ #include /* MirBSD 10 defines WEXITSTATUS in , not in . */ #if @GNULIB_SYSTEM_POSIX@ && !defined WEXITSTATUS # include #endif /* Solaris declares getloadavg() in . */ #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ /* OpenIndiana has a bug: must be included before . */ # include # include #endif /* Native Windows platforms declare _mktemp() in . */ #if defined _WIN32 && !defined __CYGWIN__ # include #endif #if @GNULIB_RANDOM_R@ /* OSF/1 5.1 declares 'struct random_data' in , which is included from if _REENTRANT is defined. Include it whenever we need 'struct random_data'. */ # if @HAVE_RANDOM_H@ # include # endif # if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@ # include # endif # if !@HAVE_STRUCT_RANDOM_DATA@ /* Define 'struct random_data'. But allow multiple gnulib generated replacements to coexist. */ # if !GNULIB_defined_struct_random_data struct random_data { int32_t *fptr; /* Front pointer. */ int32_t *rptr; /* Rear pointer. */ int32_t *state; /* Array of state values. */ int rand_type; /* Type of random number generator. */ int rand_deg; /* Degree of random number generator. */ int rand_sep; /* Distance between front and rear. */ int32_t *end_ptr; /* Pointer behind state table. */ }; # define GNULIB_defined_struct_random_data 1 # endif # endif #endif #if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_MKOSTEMP@ || @GNULIB_MKOSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !(defined _WIN32 && ! defined __CYGWIN__) /* On Mac OS X 10.3, only declares mkstemp. */ /* On Mac OS X 10.5, only declares mkstemps. */ /* On Mac OS X 10.13, only declares mkostemp and mkostemps. */ /* On Cygwin 1.7.1, only declares getsubopt. */ /* But avoid namespace pollution on glibc systems and native Windows. */ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #ifndef _GL_ATTRIBUTE_MALLOC # if __GNUC__ >= 3 || defined __clang__ # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define _GL_ATTRIBUTE_MALLOC # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The attribute __pure__ was added in gcc 2.96. */ #ifndef _GL_ATTRIBUTE_PURE # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define _GL_ATTRIBUTE_PURE /* empty */ # endif #endif /* The definition of _Noreturn is copied here. */ /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif /* Tandem/NSK and other platforms that define EXIT_FAILURE as -1 interfere with proper operation of xargs. */ #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #elif EXIT_FAILURE != 1 # undef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #if @GNULIB__EXIT@ /* Terminate the current process with the given return code, without running the 'atexit' handlers. */ # if !@HAVE__EXIT@ _GL_FUNCDECL_SYS (_Exit, _Noreturn void, (int status)); # endif _GL_CXXALIAS_SYS (_Exit, void, (int status)); _GL_CXXALIASWARN (_Exit); #elif defined GNULIB_POSIXCHECK # undef _Exit # if HAVE_RAW_DECL__EXIT _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " "use gnulib module _Exit for portability"); # endif #endif #if @GNULIB_FREE_POSIX@ # if @REPLACE_FREE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef free # define free rpl_free # endif # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_FUNCDECL_RPL (free, void, (void *ptr) throw ()); # else _GL_FUNCDECL_RPL (free, void, (void *ptr)); # endif _GL_CXXALIAS_RPL (free, void, (void *ptr)); # else _GL_CXXALIAS_SYS (free, void, (void *ptr)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (free); # endif #elif defined GNULIB_POSIXCHECK # undef free /* Assume free is always declared. */ _GL_WARN_ON_USE (free, "free is not future POSIX compliant everywhere - " "use gnulib module free for portability"); #endif /* Allocate memory with indefinite extent and specified alignment. */ #if @GNULIB_ALIGNED_ALLOC@ # if @REPLACE_ALIGNED_ALLOC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef aligned_alloc # define aligned_alloc rpl_aligned_alloc # endif _GL_FUNCDECL_RPL (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (aligned_alloc, void *, (size_t alignment, size_t size)); # else # if @HAVE_ALIGNED_ALLOC@ # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */ _GL_FUNCDECL_SYS (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (aligned_alloc, void *, (size_t alignment, size_t size)); # endif # endif # if @HAVE_ALIGNED_ALLOC@ _GL_CXXALIASWARN (aligned_alloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined aligned_alloc /* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */ _GL_FUNCDECL_SYS (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef aligned_alloc # if HAVE_RAW_DECL_ALIGNED_ALLOC _GL_WARN_ON_USE (aligned_alloc, "aligned_alloc is not portable - " "use gnulib module aligned_alloc for portability"); # endif # endif #endif #if @GNULIB_ATOLL@ /* Parse a signed decimal integer. Returns the value of the integer. Errors are not detected. */ # if !@HAVE_ATOLL@ _GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (atoll, long long, (const char *string)); _GL_CXXALIASWARN (atoll); #elif defined GNULIB_POSIXCHECK # undef atoll # if HAVE_RAW_DECL_ATOLL _GL_WARN_ON_USE (atoll, "atoll is unportable - " "use gnulib module atoll for portability"); # endif #endif #if @GNULIB_CALLOC_POSIX@ # if (@GNULIB_CALLOC_POSIX@ && @REPLACE_CALLOC_FOR_CALLOC_POSIX@) \ || (@GNULIB_CALLOC_GNU@ && @REPLACE_CALLOC_FOR_CALLOC_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef calloc # define calloc rpl_calloc # endif _GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */ _GL_FUNCDECL_SYS (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (calloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined calloc /* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */ _GL_FUNCDECL_SYS (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef calloc /* Assume calloc is always declared. */ _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " "use gnulib module calloc-posix for portability"); # endif #endif #if @GNULIB_CANONICALIZE_FILE_NAME@ # if @REPLACE_CANONICALIZE_FILE_NAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define canonicalize_file_name rpl_canonicalize_file_name # endif _GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name)); # else # if !@HAVE_CANONICALIZE_FILE_NAME@ || __GNUC__ >= 11 _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif # ifndef GNULIB_defined_canonicalize_file_name # define GNULIB_defined_canonicalize_file_name \ (!@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@) # endif _GL_CXXALIASWARN (canonicalize_file_name); #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined canonicalize_file_name /* For -Wmismatched-dealloc: Associate canonicalize_file_name with free or rpl_free. */ _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef canonicalize_file_name # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME _GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - " "use gnulib module canonicalize-lgpl for portability"); # endif # endif #endif #if @GNULIB_MDA_ECVT@ /* On native Windows, map 'ecvt' to '_ecvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::ecvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ecvt # define ecvt _ecvt # endif _GL_CXXALIAS_MDA (ecvt, char *, (double number, int ndigits, int *decptp, int *signp)); # else # if @HAVE_DECL_ECVT@ _GL_CXXALIAS_SYS (ecvt, char *, (double number, int ndigits, int *decptp, int *signp)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_ECVT@ _GL_CXXALIASWARN (ecvt); # endif #endif #if @GNULIB_MDA_FCVT@ /* On native Windows, map 'fcvt' to '_fcvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fcvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcvt # define fcvt _fcvt # endif _GL_CXXALIAS_MDA (fcvt, char *, (double number, int ndigits, int *decptp, int *signp)); # else # if @HAVE_DECL_FCVT@ _GL_CXXALIAS_SYS (fcvt, char *, (double number, int ndigits, int *decptp, int *signp)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCVT@ _GL_CXXALIASWARN (fcvt); # endif #endif #if @GNULIB_MDA_GCVT@ /* On native Windows, map 'gcvt' to '_gcvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::gcvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gcvt # define gcvt _gcvt # endif _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf)); # else # if @HAVE_DECL_GCVT@ _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_GCVT@ _GL_CXXALIASWARN (gcvt); # endif #endif #if @GNULIB_GETLOADAVG@ /* Store max(NELEM,3) load average numbers in LOADAVG[]. The three numbers are the load average of the last 1 minute, the last 5 minutes, and the last 15 minutes, respectively. LOADAVG is an array of NELEM numbers. */ # if !@HAVE_DECL_GETLOADAVG@ _GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); _GL_CXXALIASWARN (getloadavg); #elif defined GNULIB_POSIXCHECK # undef getloadavg # if HAVE_RAW_DECL_GETLOADAVG _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " "use gnulib module getloadavg for portability"); # endif #endif #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. If the first element refers to a "token" that is member of the given NULL-terminated array of tokens: - It replaces the comma with a NUL byte, updates *OPTIONP to point past the first option and the comma, sets *VALUEP to the value of the element (or NULL if it doesn't contain an "=" sign), - It returns the index of the "token" in the given array of tokens. Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined. For more details see the POSIX specification. https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsubopt.html */ # if !@HAVE_GETSUBOPT@ _GL_FUNCDECL_SYS (getsubopt, int, (char **optionp, char *const *tokens, char **valuep) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (getsubopt, int, (char **optionp, char *const *tokens, char **valuep)); _GL_CXXALIASWARN (getsubopt); #elif defined GNULIB_POSIXCHECK # undef getsubopt # if HAVE_RAW_DECL_GETSUBOPT _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " "use gnulib module getsubopt for portability"); # endif #endif #if @GNULIB_GRANTPT@ /* Change the ownership and access permission of the slave side of the pseudo-terminal whose master side is specified by FD. */ # if !@HAVE_GRANTPT@ _GL_FUNCDECL_SYS (grantpt, int, (int fd)); # endif _GL_CXXALIAS_SYS (grantpt, int, (int fd)); _GL_CXXALIASWARN (grantpt); #elif defined GNULIB_POSIXCHECK # undef grantpt # if HAVE_RAW_DECL_GRANTPT _GL_WARN_ON_USE (grantpt, "grantpt is not portable - " "use gnulib module grantpt for portability"); # endif #endif /* If _GL_USE_STDLIB_ALLOC is nonzero, the including module does not rely on GNU or POSIX semantics for malloc and realloc (for example, by never specifying a zero size), so it does not need malloc or realloc to be redefined. */ #if @GNULIB_MALLOC_POSIX@ # if (@GNULIB_MALLOC_POSIX@ && @REPLACE_MALLOC_FOR_MALLOC_POSIX@) \ || (@GNULIB_MALLOC_GNU@ && @REPLACE_MALLOC_FOR_MALLOC_GNU@) # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ || _GL_USE_STDLIB_ALLOC) # undef malloc # define malloc rpl_malloc # endif _GL_FUNCDECL_RPL (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (malloc, void *, (size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */ _GL_FUNCDECL_SYS (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (malloc, void *, (size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (malloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined malloc /* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */ _GL_FUNCDECL_SYS (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC # undef malloc /* Assume malloc is always declared. */ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " "use gnulib module malloc-posix for portability"); # endif #endif /* Convert a multibyte character to a wide character. */ #if @GNULIB_MBTOWC@ # if @REPLACE_MBTOWC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbtowc # define mbtowc rpl_mbtowc # endif _GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); _GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # else # if !@HAVE_MBTOWC@ _GL_FUNCDECL_SYS (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # endif _GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbtowc); # endif #elif defined GNULIB_POSIXCHECK # undef mbtowc # if HAVE_RAW_DECL_MBTOWC _GL_WARN_ON_USE (mbtowc, "mbtowc is not portable - " "use gnulib module mbtowc for portability"); # endif #endif #if @GNULIB_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ # if !@HAVE_MKDTEMP@ _GL_FUNCDECL_SYS (mkdtemp, char *, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); _GL_CXXALIASWARN (mkdtemp); #elif defined GNULIB_POSIXCHECK # undef mkdtemp # if HAVE_RAW_DECL_MKDTEMP _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " "use gnulib module mkdtemp for portability"); # endif #endif #if @GNULIB_MKOSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). The file is then created, with the specified flags, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKOSTEMP@ _GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); _GL_CXXALIASWARN (mkostemp); #elif defined GNULIB_POSIXCHECK # undef mkostemp # if HAVE_RAW_DECL_MKOSTEMP _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " "use gnulib module mkostemp for portability"); # endif #endif #if @GNULIB_MKOSTEMPS@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE before a suffix of length SUFFIXLEN must be "XXXXXX"; they are replaced with a string that makes the file name unique. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). The file is then created, with the specified flags, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKOSTEMPS@ _GL_FUNCDECL_SYS (mkostemps, int, (char * /*template*/, int /*suffixlen*/, int /*flags*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkostemps, int, (char * /*template*/, int /*suffixlen*/, int /*flags*/)); _GL_CXXALIASWARN (mkostemps); #elif defined GNULIB_POSIXCHECK # undef mkostemps # if HAVE_RAW_DECL_MKOSTEMPS _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " "use gnulib module mkostemps for portability"); # endif #endif #if @GNULIB_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. The file is then created, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if @REPLACE_MKSTEMP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mkstemp rpl_mkstemp # endif _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); # else # if ! @HAVE_MKSTEMP@ _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); # endif _GL_CXXALIASWARN (mkstemp); #elif defined GNULIB_POSIXCHECK # undef mkstemp # if HAVE_RAW_DECL_MKSTEMP _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " "use gnulib module mkstemp for portability"); # endif #endif #if @GNULIB_MKSTEMPS@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE prior to a suffix of length SUFFIXLEN must be "XXXXXX"; they are replaced with a string that makes the file name unique. The file is then created, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKSTEMPS@ _GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); _GL_CXXALIASWARN (mkstemps); #elif defined GNULIB_POSIXCHECK # undef mkstemps # if HAVE_RAW_DECL_MKSTEMPS _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " "use gnulib module mkstemps for portability"); # endif #endif #if @GNULIB_MDA_MKTEMP@ /* On native Windows, map 'mktemp' to '_mktemp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::mktemp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mktemp # define mktemp _mktemp # endif _GL_CXXALIAS_MDA (mktemp, char *, (char * /*template*/)); # else _GL_CXXALIAS_SYS (mktemp, char *, (char * /*template*/)); # endif _GL_CXXALIASWARN (mktemp); #endif /* Allocate memory with indefinite extent and specified alignment. */ #if @GNULIB_POSIX_MEMALIGN@ # if @REPLACE_POSIX_MEMALIGN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef posix_memalign # define posix_memalign rpl_posix_memalign # endif _GL_FUNCDECL_RPL (posix_memalign, int, (void **memptr, size_t alignment, size_t size) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (posix_memalign, int, (void **memptr, size_t alignment, size_t size)); # else # if @HAVE_POSIX_MEMALIGN@ _GL_CXXALIAS_SYS (posix_memalign, int, (void **memptr, size_t alignment, size_t size)); # endif # endif # if @HAVE_POSIX_MEMALIGN@ _GL_CXXALIASWARN (posix_memalign); # endif #elif defined GNULIB_POSIXCHECK # undef posix_memalign # if HAVE_RAW_DECL_POSIX_MEMALIGN _GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - " "use gnulib module posix_memalign for portability"); # endif #endif #if @GNULIB_POSIX_OPENPT@ /* Return an FD open to the master side of a pseudo-terminal. Flags should include O_RDWR, and may also include O_NOCTTY. */ # if !@HAVE_POSIX_OPENPT@ _GL_FUNCDECL_SYS (posix_openpt, int, (int flags)); # endif _GL_CXXALIAS_SYS (posix_openpt, int, (int flags)); _GL_CXXALIASWARN (posix_openpt); #elif defined GNULIB_POSIXCHECK # undef posix_openpt # if HAVE_RAW_DECL_POSIX_OPENPT _GL_WARN_ON_USE (posix_openpt, "posix_openpt is not portable - " "use gnulib module posix_openpt for portability"); # endif #endif #if @GNULIB_PTSNAME@ /* Return the pathname of the pseudo-terminal slave associated with the master FD is open on, or NULL on errors. */ # if @REPLACE_PTSNAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ptsname # define ptsname rpl_ptsname # endif _GL_FUNCDECL_RPL (ptsname, char *, (int fd)); _GL_CXXALIAS_RPL (ptsname, char *, (int fd)); # else # if !@HAVE_PTSNAME@ _GL_FUNCDECL_SYS (ptsname, char *, (int fd)); # endif _GL_CXXALIAS_SYS (ptsname, char *, (int fd)); # endif _GL_CXXALIASWARN (ptsname); #elif defined GNULIB_POSIXCHECK # undef ptsname # if HAVE_RAW_DECL_PTSNAME _GL_WARN_ON_USE (ptsname, "ptsname is not portable - " "use gnulib module ptsname for portability"); # endif #endif #if @GNULIB_PTSNAME_R@ /* Set the pathname of the pseudo-terminal slave associated with the master FD is open on and return 0, or set errno and return non-zero on errors. */ # if @REPLACE_PTSNAME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ptsname_r # define ptsname_r rpl_ptsname_r # endif _GL_FUNCDECL_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); _GL_CXXALIAS_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); # else # if !@HAVE_PTSNAME_R@ _GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); # endif _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); # endif # ifndef GNULIB_defined_ptsname_r # define GNULIB_defined_ptsname_r (!@HAVE_PTSNAME_R@ || @REPLACE_PTSNAME_R@) # endif _GL_CXXALIASWARN (ptsname_r); #elif defined GNULIB_POSIXCHECK # undef ptsname_r # if HAVE_RAW_DECL_PTSNAME_R _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " "use gnulib module ptsname_r for portability"); # endif #endif #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv rpl_putenv # endif _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (putenv, int, (char *string)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv _putenv # endif _GL_CXXALIAS_MDA (putenv, int, (char *string)); # else _GL_CXXALIAS_SYS (putenv, int, (char *string)); # endif _GL_CXXALIASWARN (putenv); #elif @GNULIB_MDA_PUTENV@ /* On native Windows, map 'putenv' to '_putenv', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::putenv always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv _putenv # endif /* Need to cast, because on mingw, the parameter is either 'const char *string' or 'char *string'. */ _GL_CXXALIAS_MDA_CAST (putenv, int, (char *string)); # else _GL_CXXALIAS_SYS (putenv, int, (char *string)); # endif _GL_CXXALIASWARN (putenv); #endif #if @GNULIB_QSORT_R@ /* Sort an array of NMEMB elements, starting at address BASE, each element occupying SIZE bytes, in ascending order according to the comparison function COMPARE. */ # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_qsort_r_fn_types typedef int (*_gl_qsort_r_compar_fn) (void const *, void const *, void *); # define GNULIB_defined_qsort_r_fn_types 1 # endif # ifdef __cplusplus } # endif # if @REPLACE_QSORT_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef qsort_r # define qsort_r rpl_qsort_r # endif _GL_FUNCDECL_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg) _GL_ARG_NONNULL ((1, 4))); _GL_CXXALIAS_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg)); # else # if !@HAVE_QSORT_R@ _GL_FUNCDECL_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg) _GL_ARG_NONNULL ((1, 4))); # endif _GL_CXXALIAS_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg)); # endif _GL_CXXALIASWARN (qsort_r); #elif defined GNULIB_POSIXCHECK # undef qsort_r # if HAVE_RAW_DECL_QSORT_R _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - " "use gnulib module qsort_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if !@HAVE_RANDOM_R@ # ifndef RAND_MAX # define RAND_MAX 2147483647 # endif # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_RANDOM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef random # define random rpl_random # endif _GL_FUNCDECL_RPL (random, long, (void)); _GL_CXXALIAS_RPL (random, long, (void)); # else # if !@HAVE_RANDOM@ _GL_FUNCDECL_SYS (random, long, (void)); # endif /* Need to cast, because on Haiku, the return type is int. */ _GL_CXXALIAS_SYS_CAST (random, long, (void)); # endif _GL_CXXALIASWARN (random); #elif defined GNULIB_POSIXCHECK # undef random # if HAVE_RAW_DECL_RANDOM _GL_WARN_ON_USE (random, "random is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_RANDOM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef srandom # define srandom rpl_srandom # endif _GL_FUNCDECL_RPL (srandom, void, (unsigned int seed)); _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); # else # if !@HAVE_RANDOM@ _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); # endif /* Need to cast, because on FreeBSD, the first parameter is unsigned long seed. */ _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); # endif _GL_CXXALIASWARN (srandom); #elif defined GNULIB_POSIXCHECK # undef srandom # if HAVE_RAW_DECL_SRANDOM _GL_WARN_ON_USE (srandom, "srandom is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_INITSTATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef initstate # define initstate rpl_initstate # endif _GL_FUNCDECL_RPL (initstate, char *, (unsigned int seed, char *buf, size_t buf_size) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (initstate, char *, (unsigned int seed, char *buf, size_t buf_size)); # else # if !@HAVE_INITSTATE@ || !@HAVE_DECL_INITSTATE@ _GL_FUNCDECL_SYS (initstate, char *, (unsigned int seed, char *buf, size_t buf_size) _GL_ARG_NONNULL ((2))); # endif /* Need to cast, because on FreeBSD, the first parameter is unsigned long seed. */ _GL_CXXALIAS_SYS_CAST (initstate, char *, (unsigned int seed, char *buf, size_t buf_size)); # endif _GL_CXXALIASWARN (initstate); #elif defined GNULIB_POSIXCHECK # undef initstate # if HAVE_RAW_DECL_INITSTATE _GL_WARN_ON_USE (initstate, "initstate is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_SETSTATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setstate # define setstate rpl_setstate # endif _GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); # else # if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@ _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Mac OS X 10.13, HP-UX, Solaris the first parameter is const char *arg_state. */ _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); # endif _GL_CXXALIASWARN (setstate); #elif defined GNULIB_POSIXCHECK # undef setstate # if HAVE_RAW_DECL_SETSTATE _GL_WARN_ON_USE (setstate, "setstate is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef random_r # define random_r rpl_random_r # endif _GL_FUNCDECL_RPL (random_r, int, (struct random_data *buf, int32_t *result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (random_r, int, (struct random_data *buf, int32_t *result)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); # endif _GL_CXXALIASWARN (random_r); #elif defined GNULIB_POSIXCHECK # undef random_r # if HAVE_RAW_DECL_RANDOM_R _GL_WARN_ON_USE (random_r, "random_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef srandom_r # define srandom_r rpl_srandom_r # endif _GL_FUNCDECL_RPL (srandom_r, int, (unsigned int seed, struct random_data *rand_state) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (srandom_r, int, (unsigned int seed, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (srandom_r); #elif defined GNULIB_POSIXCHECK # undef srandom_r # if HAVE_RAW_DECL_SRANDOM_R _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef initstate_r # define initstate_r rpl_initstate_r # endif _GL_FUNCDECL_RPL (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state) _GL_ARG_NONNULL ((2, 4))); # endif /* Need to cast, because on Haiku, the third parameter is unsigned long buf_size. */ _GL_CXXALIAS_SYS_CAST (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (initstate_r); #elif defined GNULIB_POSIXCHECK # undef initstate_r # if HAVE_RAW_DECL_INITSTATE_R _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setstate_r # define setstate_r rpl_setstate_r # endif _GL_FUNCDECL_RPL (setstate_r, int, (char *arg_state, struct random_data *rand_state) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (setstate_r, int, (char *arg_state, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (setstate_r, int, (char *arg_state, struct random_data *rand_state) _GL_ARG_NONNULL ((1, 2))); # endif /* Need to cast, because on Haiku, the first parameter is void *arg_state. */ _GL_CXXALIAS_SYS_CAST (setstate_r, int, (char *arg_state, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (setstate_r); #elif defined GNULIB_POSIXCHECK # undef setstate_r # if HAVE_RAW_DECL_SETSTATE_R _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_REALLOC_POSIX@ # if (@GNULIB_REALLOC_POSIX@ && @REPLACE_REALLOC_FOR_REALLOC_POSIX@) \ || (@GNULIB_REALLOC_GNU@ && @REPLACE_REALLOC_FOR_REALLOC_GNU@) # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ || _GL_USE_STDLIB_ALLOC) # undef realloc # define realloc rpl_realloc # endif _GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */ _GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (realloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined realloc /* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */ _GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC # undef realloc /* Assume realloc is always declared. */ _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " "use gnulib module realloc-posix for portability"); # endif #endif #if @GNULIB_REALLOCARRAY@ # if @REPLACE_REALLOCARRAY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef reallocarray # define reallocarray rpl_reallocarray # endif _GL_FUNCDECL_RPL (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); _GL_CXXALIAS_RPL (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # else # if ! @HAVE_REALLOCARRAY@ _GL_FUNCDECL_SYS (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # endif _GL_CXXALIAS_SYS (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # endif _GL_CXXALIASWARN (reallocarray); #elif defined GNULIB_POSIXCHECK # undef reallocarray # if HAVE_RAW_DECL_REALLOCARRAY _GL_WARN_ON_USE (reallocarray, "reallocarray is not portable - " "use gnulib module reallocarray for portability"); # endif #endif #if @GNULIB_REALPATH@ # if @REPLACE_REALPATH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define realpath rpl_realpath # endif _GL_FUNCDECL_RPL (realpath, char *, (const char *restrict name, char *restrict resolved) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (realpath, char *, (const char *restrict name, char *restrict resolved)); # else # if !@HAVE_REALPATH@ _GL_FUNCDECL_SYS (realpath, char *, (const char *restrict name, char *restrict resolved) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (realpath, char *, (const char *restrict name, char *restrict resolved)); # endif _GL_CXXALIASWARN (realpath); #elif defined GNULIB_POSIXCHECK # undef realpath # if HAVE_RAW_DECL_REALPATH _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " "canonicalize or canonicalize-lgpl for portability"); # endif #endif #if @GNULIB_RPMATCH@ /* Test a user response to a question. Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */ # if !@HAVE_RPMATCH@ _GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); _GL_CXXALIASWARN (rpmatch); #elif defined GNULIB_POSIXCHECK # undef rpmatch # if HAVE_RAW_DECL_RPMATCH _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " "use gnulib module rpmatch for portability"); # endif #endif #if @GNULIB_SECURE_GETENV@ /* Look up NAME in the environment, returning 0 in insecure situations. */ # if !@HAVE_SECURE_GETENV@ _GL_FUNCDECL_SYS (secure_getenv, char *, (char const *name) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (secure_getenv, char *, (char const *name)); _GL_CXXALIASWARN (secure_getenv); #elif defined GNULIB_POSIXCHECK # undef secure_getenv # if HAVE_RAW_DECL_SECURE_GETENV _GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " "use gnulib module secure_getenv for portability"); # endif #endif #if @GNULIB_SETENV@ /* Set NAME to VALUE in the environment. If REPLACE is nonzero, overwrite an existing value. */ # if @REPLACE_SETENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setenv # define setenv rpl_setenv # endif _GL_FUNCDECL_RPL (setenv, int, (const char *name, const char *value, int replace) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (setenv, int, (const char *name, const char *value, int replace)); # else # if !@HAVE_DECL_SETENV@ _GL_FUNCDECL_SYS (setenv, int, (const char *name, const char *value, int replace) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (setenv, int, (const char *name, const char *value, int replace)); # endif # if !(@REPLACE_SETENV@ && !@HAVE_DECL_SETENV@) _GL_CXXALIASWARN (setenv); # endif #elif defined GNULIB_POSIXCHECK # undef setenv # if HAVE_RAW_DECL_SETENV _GL_WARN_ON_USE (setenv, "setenv is unportable - " "use gnulib module setenv for portability"); # endif #endif #if @GNULIB_STRTOD@ /* Parse a double from STRING, updating ENDP if appropriate. */ # if @REPLACE_STRTOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtod rpl_strtod # endif # define GNULIB_defined_strtod_function 1 _GL_FUNCDECL_RPL (strtod, double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtod, double, (const char *restrict str, char **restrict endp)); # else # if !@HAVE_STRTOD@ _GL_FUNCDECL_SYS (strtod, double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtod, double, (const char *restrict str, char **restrict endp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strtod); # endif #elif defined GNULIB_POSIXCHECK # undef strtod # if HAVE_RAW_DECL_STRTOD _GL_WARN_ON_USE (strtod, "strtod is unportable - " "use gnulib module strtod for portability"); # endif #endif #if @GNULIB_STRTOLD@ /* Parse a 'long double' from STRING, updating ENDP if appropriate. */ # if @REPLACE_STRTOLD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtold rpl_strtold # endif # define GNULIB_defined_strtold_function 1 _GL_FUNCDECL_RPL (strtold, long double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtold, long double, (const char *restrict str, char **restrict endp)); # else # if !@HAVE_STRTOLD@ _GL_FUNCDECL_SYS (strtold, long double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtold, long double, (const char *restrict str, char **restrict endp)); # endif _GL_CXXALIASWARN (strtold); #elif defined GNULIB_POSIXCHECK # undef strtold # if HAVE_RAW_DECL_STRTOLD _GL_WARN_ON_USE (strtold, "strtold is unportable - " "use gnulib module strtold for portability"); # endif #endif #if @GNULIB_STRTOL@ /* Parse a signed integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is LONG_MAX or LONG_MIN, and errno is set to ERANGE. */ # if @REPLACE_STRTOL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtol rpl_strtol # endif # define GNULIB_defined_strtol_function 1 _GL_FUNCDECL_RPL (strtol, long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtol, long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOL@ _GL_FUNCDECL_SYS (strtol, long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtol, long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtol); #elif defined GNULIB_POSIXCHECK # undef strtol # if HAVE_RAW_DECL_STRTOL _GL_WARN_ON_USE (strtol, "strtol is unportable - " "use gnulib module strtol for portability"); # endif #endif #if @GNULIB_STRTOLL@ /* Parse a signed integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set to ERANGE. */ # if @REPLACE_STRTOLL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoll rpl_strtoll # endif # define GNULIB_defined_strtoll_function 1 _GL_FUNCDECL_RPL (strtoll, long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoll, long long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOLL@ _GL_FUNCDECL_SYS (strtoll, long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoll, long long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoll); #elif defined GNULIB_POSIXCHECK # undef strtoll # if HAVE_RAW_DECL_STRTOLL _GL_WARN_ON_USE (strtoll, "strtoll is unportable - " "use gnulib module strtoll for portability"); # endif #endif #if @GNULIB_STRTOUL@ /* Parse an unsigned integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is ULONG_MAX, and errno is set to ERANGE. */ # if @REPLACE_STRTOUL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoul rpl_strtoul # endif # define GNULIB_defined_strtoul_function 1 _GL_FUNCDECL_RPL (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOUL@ _GL_FUNCDECL_SYS (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoul); #elif defined GNULIB_POSIXCHECK # undef strtoul # if HAVE_RAW_DECL_STRTOUL _GL_WARN_ON_USE (strtoul, "strtoul is unportable - " "use gnulib module strtoul for portability"); # endif #endif #if @GNULIB_STRTOULL@ /* Parse an unsigned integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is ULLONG_MAX, and errno is set to ERANGE. */ # if @REPLACE_STRTOULL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoull rpl_strtoull # endif # define GNULIB_defined_strtoull_function 1 _GL_FUNCDECL_RPL (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOULL@ _GL_FUNCDECL_SYS (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoull); #elif defined GNULIB_POSIXCHECK # undef strtoull # if HAVE_RAW_DECL_STRTOULL _GL_WARN_ON_USE (strtoull, "strtoull is unportable - " "use gnulib module strtoull for portability"); # endif #endif #if @GNULIB_UNLOCKPT@ /* Unlock the slave side of the pseudo-terminal whose master side is specified by FD, so that it can be opened. */ # if !@HAVE_UNLOCKPT@ _GL_FUNCDECL_SYS (unlockpt, int, (int fd)); # endif _GL_CXXALIAS_SYS (unlockpt, int, (int fd)); _GL_CXXALIASWARN (unlockpt); #elif defined GNULIB_POSIXCHECK # undef unlockpt # if HAVE_RAW_DECL_UNLOCKPT _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - " "use gnulib module unlockpt for portability"); # endif #endif #if @GNULIB_UNSETENV@ /* Remove the variable NAME from the environment. */ # if @REPLACE_UNSETENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unsetenv # define unsetenv rpl_unsetenv # endif _GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (unsetenv, int, (const char *name)); # else # if !@HAVE_DECL_UNSETENV@ _GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); # endif # if !(@REPLACE_UNSETENV@ && !@HAVE_DECL_UNSETENV@) _GL_CXXALIASWARN (unsetenv); # endif #elif defined GNULIB_POSIXCHECK # undef unsetenv # if HAVE_RAW_DECL_UNSETENV _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " "use gnulib module unsetenv for portability"); # endif #endif /* Convert a wide character to a multibyte character. */ #if @GNULIB_WCTOMB@ # if @REPLACE_WCTOMB@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wctomb # define wctomb rpl_wctomb # endif _GL_FUNCDECL_RPL (wctomb, int, (char *s, wchar_t wc)); _GL_CXXALIAS_RPL (wctomb, int, (char *s, wchar_t wc)); # else _GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wctomb); # endif #endif #endif /* _@GUARD_PREFIX@_STDLIB_H */ #endif /* _@GUARD_PREFIX@_STDLIB_H */ #endif shishi-1.0.3/lib/ap.c0000644000000000000000000011275514273601533011222 00000000000000/* ap.c --- AP functions * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" struct Shishi_ap { Shishi *handle; Shishi_tkt *tkt; Shishi_key *key; Shishi_asn1 authenticator; Shishi_asn1 apreq; Shishi_asn1 aprep; Shishi_asn1 encapreppart; /* Key usage for encryption entire Authenticator ASN.1 blob, stored in AP-REQ. */ int authenticatorkeyusage; /* Key usage for computing checksum of authenticatorcksumdata in the Authenticator, in AP-REQ. */ int authenticatorcksumkeyusage; /* Sets the checksum algorithm type in Authenticator, in AP-REQ. If there is data in authenticatorcksumdata to compute a checksum on, this also indicate the algorithm to use for this computation. */ int32_t authenticatorcksumtype; /* Auxilliary application data to compute checksum on and store in Authenticator, in AP-REQ. Note that data is not stored in AP-REQ, only a checksum of it. */ char *authenticatorcksumdata; size_t authenticatorcksumdatalen; /* Raw checksum data to store in Authenticator, in AP-REQ. Normally, this is the output of the checksum algorithm computed on the data in authenticatorcksumdata, but some applications (e.g., GSS-API) put something weird in the checksum field. */ char *authenticatorcksumraw; size_t authenticatorcksumrawlen; }; /** * shishi_ap: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * * Create a new AP exchange with a random subkey of the default * encryption type from configuration. Note that there is no * guarantee that the receiver will understand that key type, you * should probably use shishi_ap_etype() or shishi_ap_nosubkey() * instead. In the future, this function will likely behave as * shishi_ap_nosubkey() and shishi_ap_nosubkey() will be removed. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap (Shishi * handle, Shishi_ap ** ap) { int res; res = shishi_ap_nosubkey (handle, ap); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not create Authenticator: %s\n", shishi_error (handle)); return res; } res = shishi_authenticator_add_random_subkey (handle, (*ap)->authenticator); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not add random subkey in AP: %s\n", shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_ap_etype: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @etype: encryption type of newly generated random subkey. * * Create a new AP exchange with a random subkey of indicated * encryption type. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_etype (Shishi * handle, Shishi_ap ** ap, int etype) { int res; res = shishi_ap_nosubkey (handle, ap); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not create Authenticator: %s\n", shishi_error (handle)); return res; } res = shishi_authenticator_add_random_subkey_etype (handle, (*ap)->authenticator, etype); if (res != SHISHI_OK) { shishi_error_printf (handle, "Could not add random subkey in AP: %s\n", shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_ap_nosubkey: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * * Create a new AP exchange without subkey in authenticator. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_nosubkey (Shishi * handle, Shishi_ap ** ap) { Shishi_ap *lap; *ap = xcalloc (1, sizeof (**ap)); lap = *ap; lap->handle = handle; lap->authenticatorcksumtype = SHISHI_NO_CKSUMTYPE; lap->authenticatorcksumkeyusage = SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR_CKSUM; lap->authenticatorkeyusage = SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR; lap->authenticator = shishi_authenticator (handle); if (lap->authenticator == NULL) { shishi_error_printf (handle, "Could not create Authenticator: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } lap->apreq = shishi_apreq (handle); if (lap->apreq == NULL) { shishi_error_printf (handle, "Could not create AP-REQ: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } lap->aprep = shishi_aprep (handle); if (lap->aprep == NULL) { shishi_error_printf (handle, "Could not create AP-REP: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } lap->encapreppart = shishi_encapreppart (handle); if (lap->encapreppart == NULL) { shishi_error_printf (handle, "Could not create EncAPRepPart: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } return SHISHI_OK; } /** * shishi_ap_done: * @ap: structure that holds information about AP exchange * * Deallocate resources associated with AP exchange. This should be * called by the application when it no longer need to utilize the AP * exchange handle. **/ void shishi_ap_done (Shishi_ap * ap) { free (ap->authenticatorcksumdata); free (ap->authenticatorcksumraw); shishi_asn1_done (ap->handle, ap->authenticator); shishi_asn1_done (ap->handle, ap->apreq); shishi_asn1_done (ap->handle, ap->aprep); shishi_asn1_done (ap->handle, ap->encapreppart); free (ap); } /** * shishi_ap_set_tktoptions: * @ap: structure that holds information about AP exchange * @tkt: ticket to set in AP. * @options: AP-REQ options to set in AP. * * Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ * apoptions (see shishi_apreq_options_set()). * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_set_tktoptions (Shishi_ap * ap, Shishi_tkt * tkt, int options) { int rc; shishi_ap_tkt_set (ap, tkt); rc = shishi_apreq_options_set (ap->handle, shishi_ap_req (ap), options); if (rc != SHISHI_OK) { printf ("Could not set AP-Options: %s", shishi_strerror (rc)); return rc; } return SHISHI_OK; } /** * shishi_ap_set_tktoptionsdata: * @ap: structure that holds information about AP exchange * @tkt: ticket to set in AP. * @options: AP-REQ options to set in AP. * @data: input array with data to checksum in Authenticator. * @len: length of input array with data to checksum in Authenticator. * * Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ * apoptions (see shishi_apreq_options_set()) and set the * Authenticator checksum data. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_set_tktoptionsdata (Shishi_ap * ap, Shishi_tkt * tkt, int options, const char *data, size_t len) { int rc; shishi_ap_tkt_set (ap, tkt); rc = shishi_apreq_options_set (ap->handle, shishi_ap_req (ap), options); if (rc != SHISHI_OK) { printf ("Could not set AP-Options: %s", shishi_strerror (rc)); return rc; } shishi_ap_authenticator_cksumdata_set (ap, data, len); return SHISHI_OK; } /** * shishi_ap_set_tktoptionsraw: * @ap: structure that holds information about AP exchange * @tkt: ticket to set in AP. * @options: AP-REQ options to set in AP. * @cksumtype: authenticator checksum type to set in AP. * @data: input array with data to store in checksum field in Authenticator. * @len: length of input array with data to store in checksum field in * Authenticator. * * Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ * apoptions (see shishi_apreq_options_set()) and set the raw * Authenticator checksum data. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_set_tktoptionsraw (Shishi_ap * ap, Shishi_tkt * tkt, int options, int32_t cksumtype, const char *data, size_t len) { int rc; shishi_ap_tkt_set (ap, tkt); rc = shishi_apreq_options_set (ap->handle, shishi_ap_req (ap), options); if (rc != SHISHI_OK) { printf ("Could not set AP-Options: %s", shishi_strerror (rc)); return rc; } shishi_ap_authenticator_cksumraw_set (ap, cksumtype, data, len); return SHISHI_OK; } /** * shishi_ap_set_tktoptionsasn1usage: * @ap: structure that holds information about AP exchange * @tkt: ticket to set in AP. * @options: AP-REQ options to set in AP. * @node: input ASN.1 structure to store as authenticator checksum data. * @field: field in ASN.1 structure to use. * @authenticatorcksumkeyusage: key usage for checksum in authenticator. * @authenticatorkeyusage: key usage for authenticator. * * Set ticket, options and authenticator checksum data using * shishi_ap_set_tktoptionsdata(). The authenticator checksum data is * the DER encoding of the ASN.1 field provided. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_set_tktoptionsasn1usage (Shishi_ap * ap, Shishi_tkt * tkt, int options, Shishi_asn1 node, const char *field, int authenticatorcksumkeyusage, int authenticatorkeyusage) { char *buf; size_t buflen; int res; res = shishi_asn1_to_der_field (ap->handle, node, field, &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_ap_set_tktoptionsdata (ap, tkt, options, buf, buflen); if (res != SHISHI_OK) return res; ap->authenticatorcksumkeyusage = authenticatorcksumkeyusage; ap->authenticatorkeyusage = authenticatorkeyusage; return SHISHI_OK; } /** * shishi_ap_tktoptions: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @tkt: ticket to set in newly created AP. * @options: AP-REQ options to set in newly created AP. * * Create a new AP exchange using shishi_ap(), and set the ticket and * AP-REQ apoptions using shishi_ap_set_tktoptions(). A random * session key is added to the authenticator, using the same keytype * as the ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_tktoptions (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options) { int rc; rc = shishi_ap_etype (handle, ap, shishi_tkt_keytype_fast (tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_ap_set_tktoptions (*ap, tkt, options); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_tktoptionsdata: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @tkt: ticket to set in newly created AP. * @options: AP-REQ options to set in newly created AP. * @data: input array with data to checksum in Authenticator. * @len: length of input array with data to checksum in Authenticator. * * Create a new AP exchange using shishi_ap(), and set the ticket, * AP-REQ apoptions and the Authenticator checksum data using * shishi_ap_set_tktoptionsdata(). A random session key is added to * the authenticator, using the same keytype as the ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_tktoptionsdata (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, const char *data, size_t len) { int rc; rc = shishi_ap_etype (handle, ap, shishi_tkt_keytype_fast (tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_ap_set_tktoptionsdata (*ap, tkt, options, data, len); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_tktoptionsraw: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @tkt: ticket to set in newly created AP. * @options: AP-REQ options to set in newly created AP. * @cksumtype: authenticator checksum type to set in AP. * @data: input array with data to store in checksum field in Authenticator. * @len: length of input array with data to store in checksum field in * Authenticator. * * Create a new AP exchange using shishi_ap(), and set the ticket, * AP-REQ apoptions and the raw Authenticator checksum data field * using shishi_ap_set_tktoptionsraw(). A random session key is added * to the authenticator, using the same keytype as the ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_tktoptionsraw (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, int32_t cksumtype, const char *data, size_t len) { int rc; rc = shishi_ap_etype (handle, ap, shishi_tkt_keytype_fast (tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_ap_set_tktoptionsraw (*ap, tkt, options, cksumtype, data, len); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_etype_tktoptionsdata: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @etype: encryption type of newly generated random subkey. * @tkt: ticket to set in newly created AP. * @options: AP-REQ options to set in newly created AP. * @data: input array with data to checksum in Authenticator. * @len: length of input array with data to checksum in Authenticator. * * Create a new AP exchange using shishi_ap(), and set the ticket, * AP-REQ apoptions and the Authenticator checksum data using * shishi_ap_set_tktoptionsdata(). A random session key is added to * the authenticator, using the same keytype as the ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_etype_tktoptionsdata (Shishi * handle, Shishi_ap ** ap, int32_t etype, Shishi_tkt * tkt, int options, const char *data, size_t len) { int rc; rc = shishi_ap_etype (handle, ap, etype); if (rc != SHISHI_OK) return rc; rc = shishi_ap_set_tktoptionsdata (*ap, tkt, options, data, len); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_tktoptionsasn1usage: * @handle: shishi handle as allocated by shishi_init(). * @ap: pointer to new structure that holds information about AP exchange * @tkt: ticket to set in newly created AP. * @options: AP-REQ options to set in newly created AP. * @node: input ASN.1 structure to store as authenticator checksum data. * @field: field in ASN.1 structure to use. * @authenticatorcksumkeyusage: key usage for checksum in authenticator. * @authenticatorkeyusage: key usage for authenticator. * * Create a new AP exchange using shishi_ap(), and set ticket, options * and authenticator checksum data from the DER encoding of the ASN.1 * field using shishi_ap_set_tktoptionsasn1usage(). A random session * key is added to the authenticator, using the same keytype as the * ticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_tktoptionsasn1usage (Shishi * handle, Shishi_ap ** ap, Shishi_tkt * tkt, int options, Shishi_asn1 node, const char *field, int authenticatorcksumkeyusage, int authenticatorkeyusage) { int rc; rc = shishi_ap_etype (handle, ap, shishi_tkt_keytype_fast (tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_ap_set_tktoptionsasn1usage (*ap, tkt, options, node, field, authenticatorcksumkeyusage, authenticatorkeyusage); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_tkt: * @ap: structure that holds information about AP exchange * * Get Ticket from AP exchange. * * Return value: Returns the ticket from the AP exchange, or NULL if * not yet set or an error occured. **/ Shishi_tkt * shishi_ap_tkt (Shishi_ap * ap) { return ap->tkt; } /** * shishi_ap_tkt_set: * @ap: structure that holds information about AP exchange * @tkt: ticket to store in AP. * * Set the Ticket in the AP exchange. **/ void shishi_ap_tkt_set (Shishi_ap * ap, Shishi_tkt * tkt) { ap->tkt = tkt; } /** * shishi_ap_authenticator_cksumdata: * @ap: structure that holds information about AP exchange * @out: output array that holds authenticator checksum data. * @len: on input, maximum length of output array that holds * authenticator checksum data, on output actual length of * output array that holds authenticator checksum data. * * Get checksum data from Authenticator. * * Return value: Returns %SHISHI_OK if successful, or * %SHISHI_TOO_SMALL_BUFFER if buffer provided was too small (then @len * will hold necessary buffer size). **/ int shishi_ap_authenticator_cksumdata (Shishi_ap * ap, char *out, size_t *len) { if (*len < ap->authenticatorcksumdatalen) { *len = ap->authenticatorcksumdatalen; return SHISHI_TOO_SMALL_BUFFER; } if (out && ap->authenticatorcksumdata) memcpy (out, ap->authenticatorcksumdata, ap->authenticatorcksumdatalen); *len = ap->authenticatorcksumdatalen; return SHISHI_OK; } /** * shishi_ap_authenticator_cksumdata_set: * @ap: structure that holds information about AP exchange * @authenticatorcksumdata: input array with data to compute checksum * on and store in Authenticator in AP-REQ. * @authenticatorcksumdatalen: length of input array with data to * compute checksum on and store in Authenticator in AP-REQ. * * Set the Authenticator Checksum Data in the AP exchange. This is * the data that will be checksumed, and the checksum placed in the * checksum field. It is not the actual checksum field. See also * shishi_ap_authenticator_cksumraw_set. **/ void shishi_ap_authenticator_cksumdata_set (Shishi_ap * ap, const char *authenticatorcksumdata, size_t authenticatorcksumdatalen) { ap->authenticatorcksumdata = xmemdup (authenticatorcksumdata, authenticatorcksumdatalen); ap->authenticatorcksumdatalen = authenticatorcksumdatalen; } /** * shishi_ap_authenticator_cksumraw_set: * @ap: structure that holds information about AP exchange * @authenticatorcksumtype: authenticator checksum type to set in AP. * @authenticatorcksumraw: input array with authenticator checksum * field value to set in Authenticator in AP-REQ. * @authenticatorcksumrawlen: length of input array with * authenticator checksum field value to set in Authenticator in AP-REQ. * * Set the Authenticator Checksum Data in the AP exchange. This is * the actual checksum field, not data to compute checksum on and then * store in the checksum field. See also * shishi_ap_authenticator_cksumdata_set. **/ void shishi_ap_authenticator_cksumraw_set (Shishi_ap * ap, int32_t authenticatorcksumtype, const char *authenticatorcksumraw, size_t authenticatorcksumrawlen) { shishi_ap_authenticator_cksumtype_set (ap, authenticatorcksumtype); ap->authenticatorcksumraw = xmemdup (authenticatorcksumraw, authenticatorcksumrawlen); ap->authenticatorcksumrawlen = authenticatorcksumrawlen; } /** * shishi_ap_authenticator_cksumtype: * @ap: structure that holds information about AP exchange * * Get the Authenticator Checksum Type in the AP exchange. * * Return value: Return the authenticator checksum type. **/ int32_t shishi_ap_authenticator_cksumtype (Shishi_ap * ap) { return ap->authenticatorcksumtype; } /** * shishi_ap_authenticator_cksumtype_set: * @ap: structure that holds information about AP exchange * @cksumtype: authenticator checksum type to set in AP. * * Set the Authenticator Checksum Type in the AP exchange. **/ void shishi_ap_authenticator_cksumtype_set (Shishi_ap * ap, int32_t cksumtype) { ap->authenticatorcksumtype = cksumtype; } /** * shishi_ap_authenticator: * @ap: structure that holds information about AP exchange * * Get ASN.1 Authenticator structure from AP exchange. * * Return value: Returns the Authenticator from the AP exchange, or * NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_ap_authenticator (Shishi_ap * ap) { return ap->authenticator; } /** * shishi_ap_authenticator_set: * @ap: structure that holds information about AP exchange * @authenticator: authenticator to store in AP. * * Set the Authenticator in the AP exchange. **/ void shishi_ap_authenticator_set (Shishi_ap * ap, Shishi_asn1 authenticator) { if (ap->authenticator) shishi_asn1_done (ap->handle, ap->authenticator); ap->authenticator = authenticator; } /** * shishi_ap_req: * @ap: structure that holds information about AP exchange * * Get ASN.1 AP-REQ structure from AP exchange. * * Return value: Returns the AP-REQ from the AP exchange, or NULL if * not yet set or an error occured. **/ Shishi_asn1 shishi_ap_req (Shishi_ap * ap) { return ap->apreq; } /** * shishi_ap_req_set: * @ap: structure that holds information about AP exchange * @apreq: apreq to store in AP. * * Set the AP-REQ in the AP exchange. **/ void shishi_ap_req_set (Shishi_ap * ap, Shishi_asn1 apreq) { if (ap->apreq) shishi_asn1_done (ap->handle, ap->apreq); ap->apreq = apreq; } /** * shishi_ap_req_der: * @ap: structure that holds information about AP exchange * @out: pointer to output array with der encoding of AP-REQ. * @outlen: pointer to length of output array with der encoding of AP-REQ. * * Build AP-REQ using shishi_ap_req_build() and DER encode it. @out * is allocated by this function, and it is the responsibility of * caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_der (Shishi_ap * ap, char **out, size_t *outlen) { int rc; rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_to_der (ap->handle, ap->apreq, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_req_der_set: * @ap: structure that holds information about AP exchange * @der: input array with DER encoded AP-REQ. * @derlen: length of input array with DER encoded AP-REQ. * * DER decode AP-REQ and set it AP exchange. If decoding fails, the * AP-REQ in the AP exchange is lost. * * Return value: Returns SHISHI_OK. **/ int shishi_ap_req_der_set (Shishi_ap * ap, char *der, size_t derlen) { ap->apreq = shishi_der2asn1_apreq (ap->handle, der, derlen); if (ap->apreq) return SHISHI_OK; else return SHISHI_ASN1_ERROR; } /** * shishi_ap_req_build: * @ap: structure that holds information about AP exchange * * Checksum data in authenticator and add ticket and authenticator to * AP-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_build (Shishi_ap * ap) { int res; int cksumtype; if (VERBOSE (ap->handle)) printf ("Building AP-REQ...\n"); if (VERBOSEASN1 (ap->handle)) { shishi_ticket_print (ap->handle, stdout, shishi_tkt_ticket (ap->tkt)); shishi_key_print (ap->handle, stdout, shishi_tkt_key (ap->tkt)); } res = shishi_apreq_set_ticket (ap->handle, ap->apreq, shishi_tkt_ticket (ap->tkt)); if (res != SHISHI_OK) { shishi_error_printf (ap->handle, "Could not set ticket in AP-REQ: %s\n", shishi_error (ap->handle)); return res; } cksumtype = shishi_ap_authenticator_cksumtype (ap); if (ap->authenticatorcksumraw && ap->authenticatorcksumrawlen > 0) res = shishi_authenticator_set_cksum (ap->handle, ap->authenticator, cksumtype, ap->authenticatorcksumraw, ap->authenticatorcksumrawlen); else if (cksumtype == SHISHI_NO_CKSUMTYPE) res = shishi_authenticator_add_cksum (ap->handle, ap->authenticator, shishi_tkt_key (ap->tkt), ap->authenticatorcksumkeyusage, ap->authenticatorcksumdata, ap->authenticatorcksumdatalen); else res = shishi_authenticator_add_cksum_type (ap->handle, ap->authenticator, shishi_tkt_key (ap->tkt), ap->authenticatorcksumkeyusage, cksumtype, ap->authenticatorcksumdata, ap->authenticatorcksumdatalen); if (res != SHISHI_OK) { shishi_error_printf (ap->handle, "Could not add checksum to authenticator: %s\n", shishi_error (ap->handle)); return res; } if (VERBOSE (ap->handle)) printf ("Got Authenticator...\n"); if (VERBOSEASN1 (ap->handle)) shishi_authenticator_print (ap->handle, stdout, ap->authenticator); res = shishi_apreq_add_authenticator (ap->handle, ap->apreq, shishi_tkt_key (ap->tkt), ap->authenticatorkeyusage, ap->authenticator); if (res != SHISHI_OK) { shishi_error_printf (ap->handle, "Could not set authenticator: %s\n", shishi_error (ap->handle)); return res; } if (VERBOSEASN1 (ap->handle)) shishi_apreq_print (ap->handle, stdout, ap->apreq); return SHISHI_OK; } /** * shishi_ap_req_decode: * @ap: structure that holds information about AP exchange * * Decode ticket in AP-REQ and set the Ticket fields in the AP * exchange. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_decode (Shishi_ap * ap) { Shishi_asn1 ticket; int rc; if (VERBOSEASN1 (ap->handle)) shishi_apreq_print (ap->handle, stdout, ap->apreq); rc = shishi_apreq_get_ticket (ap->handle, ap->apreq, &ticket); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Could not extract ticket from AP-REQ: %s\n", shishi_strerror (rc)); return rc; } if (VERBOSEASN1 (ap->handle)) shishi_ticket_print (ap->handle, stdout, ticket); rc = shishi_tkt (ap->handle, &ap->tkt); if (rc != SHISHI_OK) return rc; shishi_tkt_ticket_set (ap->tkt, ticket); return SHISHI_OK; } /** * shishi_ap_req_process_keyusage: * @ap: structure that holds information about AP exchange * @key: cryptographic key used to decrypt ticket in AP-REQ. * @keyusage: key usage to use during decryption, for normal * AP-REQ's this is normally SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR, * for AP-REQ's part of TGS-REQ's, this is normally * SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR. * * Decrypt ticket in AP-REQ using supplied key and decrypt * Authenticator in AP-REQ using key in decrypted ticket, and on * success set the Ticket and Authenticator fields in the AP exchange. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_process_keyusage (Shishi_ap * ap, Shishi_key * key, int32_t keyusage) { Shishi_asn1 authenticator; Shishi_key *tktkey; int rc; rc = shishi_ap_req_decode (ap); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Error decoding ticket: %s\n", shishi_strerror (rc)); return rc; } rc = shishi_tkt_decrypt (ap->tkt, key); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Error decrypting ticket: %s\n", shishi_strerror (rc)); return rc; } rc = shishi_encticketpart_get_key (ap->handle, shishi_tkt_encticketpart (ap->tkt), &tktkey); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Could not get key from ticket: %s\n", shishi_strerror (rc)); return rc; } if (VERBOSEASN1 (ap->handle)) shishi_encticketpart_print (ap->handle, stdout, shishi_tkt_encticketpart (ap->tkt)); rc = shishi_apreq_decrypt (ap->handle, ap->apreq, tktkey, keyusage, &authenticator); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Error decrypting apreq: %s\n", shishi_strerror (rc)); return rc; } /* XXX? verify checksum in authenticator. */ if (VERBOSEASN1 (ap->handle)) shishi_authenticator_print (ap->handle, stdout, authenticator); free (ap->authenticatorcksumdata); rc = shishi_authenticator_cksum (ap->handle, authenticator, &ap->authenticatorcksumtype, &ap->authenticatorcksumdata, &ap->authenticatorcksumdatalen); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Error extracting authenticator checksum: %s\n", shishi_strerror (rc)); return rc; } ap->authenticator = authenticator; return SHISHI_OK; } /** * shishi_ap_req_process: * @ap: structure that holds information about AP exchange * @key: cryptographic key used to decrypt ticket in AP-REQ. * * Decrypt ticket in AP-REQ using supplied key and decrypt * Authenticator in AP-REQ using key in decrypted ticket, and on * success set the Ticket and Authenticator fields in the AP exchange. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_process (Shishi_ap * ap, Shishi_key * key) { return shishi_ap_req_process_keyusage (ap, key, SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR); } /** * shishi_ap_req_asn1: * @ap: structure that holds information about AP exchange * @apreq: output AP-REQ variable. * * Build AP-REQ using shishi_ap_req_build() and return it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_req_asn1 (Shishi_ap * ap, Shishi_asn1 * apreq) { int rc; rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) return rc; *apreq = ap->apreq; return SHISHI_OK; } /** * shishi_ap_key: * @ap: structure that holds information about AP exchange * * Extract the application key from AP. If subkeys are used, it is * taken from the Authenticator, otherwise the session key is used. * * Return value: Return application key from AP. **/ Shishi_key * shishi_ap_key (Shishi_ap * ap) { int rc; /* XXX do real check if subkey is present, don't just assume error means no subkey */ rc = shishi_authenticator_get_subkey (ap->handle, ap->authenticator, &ap->key); if (rc != SHISHI_OK) ap->key = shishi_tkt_key (ap->tkt); return ap->key; } /** * shishi_ap_rep: * @ap: structure that holds information about AP exchange * * Get ASN.1 AP-REP structure from AP exchange. * * Return value: Returns the AP-REP from the AP exchange, or NULL if * not yet set or an error occured. **/ Shishi_asn1 shishi_ap_rep (Shishi_ap * ap) { return ap->aprep; } /** * shishi_ap_rep_set: * @ap: structure that holds information about AP exchange * @aprep: aprep to store in AP. * * Set the AP-REP in the AP exchange. **/ void shishi_ap_rep_set (Shishi_ap * ap, Shishi_asn1 aprep) { if (ap->aprep) shishi_asn1_done (ap->handle, ap->aprep); ap->aprep = aprep; } /** * shishi_ap_rep_der: * @ap: structure that holds information about AP exchange * @out: output array with newly allocated DER encoding of AP-REP. * @outlen: length of output array with DER encoding of AP-REP. * * Build AP-REP using shishi_ap_rep_build() and DER encode it. @out * is allocated by this function, and it is the responsibility of * caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_rep_der (Shishi_ap * ap, char **out, size_t *outlen) { int rc; rc = shishi_ap_rep_build (ap); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_to_der (ap->handle, ap->aprep, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_ap_rep_der_set: * @ap: structure that holds information about AP exchange * @der: input array with DER encoded AP-REP. * @derlen: length of input array with DER encoded AP-REP. * * DER decode AP-REP and set it AP exchange. If decoding fails, the * AP-REP in the AP exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_ap_rep_der_set (Shishi_ap * ap, char *der, size_t derlen) { Shishi_asn1 aprep; aprep = shishi_der2asn1_aprep (ap->handle, der, derlen); if (!aprep) return SHISHI_ASN1_ERROR; ap->aprep = aprep; return SHISHI_OK; } /** * shishi_ap_rep_build: * @ap: structure that holds information about AP exchange * * Checksum data in authenticator and add ticket and authenticator to * AP-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_rep_build (Shishi_ap * ap) { Shishi_asn1 aprep; int rc; if (VERBOSE (ap->handle)) printf ("Building AP-REP...\n"); aprep = shishi_aprep (ap->handle); rc = shishi_aprep_enc_part_make (ap->handle, aprep, ap->encapreppart, ap->authenticator, shishi_tkt_encticketpart (ap->tkt)); if (rc != SHISHI_OK) { shishi_error_printf (ap->handle, "Error creating AP-REP: %s\n", shishi_strerror (rc)); return rc; } if (VERBOSEASN1 (ap->handle)) shishi_aprep_print (ap->handle, stdout, aprep); shishi_ap_rep_set (ap, aprep); return SHISHI_OK; } /** * shishi_ap_rep_asn1: * @ap: structure that holds information about AP exchange * @aprep: output AP-REP variable. * * Build AP-REP using shishi_ap_rep_build() and return it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_ap_rep_asn1 (Shishi_ap * ap, Shishi_asn1 * aprep) { int rc; rc = shishi_ap_rep_build (ap); if (rc != SHISHI_OK) return rc; *aprep = ap->aprep; return SHISHI_OK; } /** * shishi_ap_rep_verify: * @ap: structure that holds information about AP exchange * * Verify AP-REP compared to Authenticator. * * Return value: Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an * error. **/ int shishi_ap_rep_verify (Shishi_ap * ap) { int res; if (VERBOSE (ap->handle)) printf ("Decrypting AP-REP...\n"); if (VERBOSEASN1 (ap->handle)) shishi_aprep_print (ap->handle, stdout, ap->aprep); res = shishi_aprep_decrypt (ap->handle, ap->aprep, shishi_tkt_key (ap->tkt), SHISHI_KEYUSAGE_ENCAPREPPART, &ap->encapreppart); if (res != SHISHI_OK) return res; if (VERBOSEASN1 (ap->handle)) shishi_encapreppart_print (ap->handle, stdout, ap->encapreppart); res = shishi_aprep_verify (ap->handle, ap->authenticator, ap->encapreppart); if (res != SHISHI_OK) return res; if (VERBOSE (ap->handle)) printf ("Verified AP-REP successfully...\n"); return SHISHI_OK; } /** * shishi_ap_rep_verify_der: * @ap: structure that holds information about AP exchange * @der: input array with DER encoded AP-REP. * @derlen: length of input array with DER encoded AP-REP. * * DER decode AP-REP and set it in AP exchange using * shishi_ap_rep_der_set() and verify it using shishi_ap_rep_verify(). * * Return value: Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an * error. **/ int shishi_ap_rep_verify_der (Shishi_ap * ap, char *der, size_t derlen) { int res; res = shishi_ap_rep_der_set (ap, der, derlen); if (res != SHISHI_OK) return res; res = shishi_ap_rep_verify (ap); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_ap_rep_verify_asn1: * @ap: structure that holds information about AP exchange * @aprep: input AP-REP. * * Set the AP-REP in the AP exchange using shishi_ap_rep_set() and * verify it using shishi_ap_rep_verify(). * * Return value: Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an * error. **/ int shishi_ap_rep_verify_asn1 (Shishi_ap * ap, Shishi_asn1 aprep) { int res; shishi_ap_rep_set (ap, aprep); res = shishi_ap_rep_verify (ap); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_ap_encapreppart: * @ap: structure that holds information about AP exchange * * Get ASN.1 EncAPRepPart structure from AP exchange. * * Return value: Returns the EncAPREPPart from the AP exchange, or * NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_ap_encapreppart (Shishi_ap * ap) { return ap->encapreppart; } /** * shishi_ap_encapreppart_set: * @ap: structure that holds information about AP exchange * @encapreppart: EncAPRepPart to store in AP. * * Set the EncAPRepPart in the AP exchange. **/ void shishi_ap_encapreppart_set (Shishi_ap * ap, Shishi_asn1 encapreppart) { if (ap->encapreppart) shishi_asn1_done (ap->handle, ap->encapreppart); ap->encapreppart = encapreppart; } #define APOPTION_RESERVED "reserved" #define APOPTION_USE_SESSION_KEY "use-session-key" #define APOPTION_MUTUAL_REQUIRED "mutual-required" #define APOPTION_UNKNOWN "unknown" /** * shishi_ap_option2string: * @option: enumerated AP-Option type, see Shishi_apoptions. * * Convert AP-Option type to AP-Option name string. Note that @option * must be just one of the AP-Option types, it cannot be an binary * ORed indicating several AP-Options. * * Return value: Returns static string with name of AP-Option that * must not be deallocated, or "unknown" if AP-Option was not understood. **/ const char * shishi_ap_option2string (Shishi_apoptions option) { const char *str; switch (option) { case SHISHI_APOPTIONS_RESERVED: str = APOPTION_RESERVED; break; case SHISHI_APOPTIONS_USE_SESSION_KEY: str = APOPTION_USE_SESSION_KEY; break; case SHISHI_APOPTIONS_MUTUAL_REQUIRED: str = APOPTION_MUTUAL_REQUIRED; break; default: str = APOPTION_UNKNOWN; break; } return str; } /** * shishi_ap_string2option: * @str: zero terminated character array with name of AP-Option, * e.g. "use-session-key". * * Convert AP-Option name to AP-Option type. * * Return value: Returns enumerated type member corresponding to AP-Option, * or 0 if string was not understood. **/ Shishi_apoptions shishi_ap_string2option (const char *str) { int option; if (strcasecmp (str, APOPTION_RESERVED) == 0) option = SHISHI_APOPTIONS_RESERVED; else if (strcasecmp (str, APOPTION_USE_SESSION_KEY) == 0) option = SHISHI_APOPTIONS_USE_SESSION_KEY; else if (strcasecmp (str, APOPTION_MUTUAL_REQUIRED) == 0) option = SHISHI_APOPTIONS_MUTUAL_REQUIRED; else option = strtol (str, (char **) NULL, 0); return option; } shishi-1.0.3/lib/encticketpart.c0000644000000000000000000002462214273601533013455 00000000000000/* encticketpart.c --- Encrypted ticket part handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" Shishi_asn1 shishi_encticketpart (Shishi * handle) { Shishi_asn1 node; int res; node = shishi_asn1_encticketpart (handle); res = shishi_asn1_write (handle, node, "starttime", NULL, 0); if (res != SHISHI_OK) { shishi_asn1_done (handle, node); return NULL; } res = shishi_asn1_write (handle, node, "renew-till", NULL, 0); if (res != SHISHI_OK) { shishi_asn1_done (handle, node); return NULL; } res = shishi_asn1_write (handle, node, "caddr", NULL, 0); if (res != SHISHI_OK) { shishi_asn1_done (handle, node); return NULL; } res = shishi_asn1_write (handle, node, "authorization-data", NULL, 0); if (res != SHISHI_OK) { shishi_asn1_done (handle, node); return NULL; } res = shishi_encticketpart_flags_set (handle, node, 0); if (res != SHISHI_OK) { shishi_asn1_done (handle, node); return NULL; } return node; } /** * shishi_encticketpart_get_key: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @key: newly allocated key. * * Extract the session key in the Ticket. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_get_key (Shishi * handle, Shishi_asn1 encticketpart, Shishi_key ** key) { int res; char *buf; size_t buflen; int32_t keytype; res = shishi_asn1_read_int32 (handle, encticketpart, "key.keytype", &keytype); if (res != SHISHI_OK) return res; res = shishi_asn1_read (handle, encticketpart, "key.keyvalue", &buf, &buflen); if (res != SHISHI_OK) return res; res = shishi_key_from_value (handle, keytype, buf, key); free (buf); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encticketpart_key_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @key: key handle with information to store in encticketpart. * * Set the EncTicketPart.key field to key type and value of supplied * key. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_key_set (Shishi * handle, Shishi_asn1 encticketpart, Shishi_key * key) { int res; int keytype; keytype = shishi_key_type (key); res = shishi_asn1_write_uint32 (handle, encticketpart, "key.keytype", keytype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, encticketpart, "key.keyvalue", shishi_key_value (key), shishi_key_length (key)); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encticketpart_flags_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @flags: flags to set in encticketpart. * * Set the EncTicketPart.flags to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_flags_set (Shishi * handle, Shishi_asn1 encticketpart, int flags) { int res; res = shishi_asn1_write_bitstring (handle, encticketpart, "flags", flags); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_encticketpart_crealm (Shishi * handle, Shishi_asn1 encticketpart, char **crealm, size_t *crealmlen) { return shishi_asn1_read (handle, encticketpart, "crealm", crealm, crealmlen); } /** * shishi_encticketpart_crealm_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @realm: input array with name of realm. * * Set the realm field in the KDC-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encticketpart_crealm_set (Shishi * handle, Shishi_asn1 encticketpart, const char *realm) { int res; res = shishi_asn1_write (handle, encticketpart, "crealm", realm, 0); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encticketpart_cname_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @name_type: type of principial, see Shishi_name_type, usually * SHISHI_NT_UNKNOWN. * @principal: input array with principal name. * * Set the client name field in the EncTicketPart. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encticketpart_cname_set (Shishi * handle, Shishi_asn1 encticketpart, Shishi_name_type name_type, const char *principal) { int res; res = shishi_principal_set (handle, encticketpart, "cname", principal); if (res != SHISHI_OK) return res; res = shishi_asn1_write_uint32 (handle, encticketpart, "cname.name-type", name_type); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encticketpart_transited_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @trtype: transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS. * @trdata: actual transited realm data. * @trdatalen: length of actual transited realm data. * * Set the EncTicketPart.transited field to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_transited_set (Shishi * handle, Shishi_asn1 encticketpart, int32_t trtype, const char *trdata, size_t trdatalen) { int res; res = shishi_asn1_write_int32 (handle, encticketpart, "transited.tr-type", trtype); if (res != SHISHI_OK) return res; res = shishi_asn1_write (handle, encticketpart, "transited.contents", trdata, trdatalen); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_encticketpart_authtime_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @authtime: character buffer containing a generalized time string. * * Set the EncTicketPart.authtime to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_authtime_set (Shishi * handle, Shishi_asn1 encticketpart, const char *authtime) { int res; res = shishi_asn1_write (handle, encticketpart, "authtime", authtime, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return SHISHI_ASN1_ERROR; return SHISHI_OK; } /** * shishi_encticketpart_endtime_set: * @handle: shishi handle as allocated by shishi_init(). * @encticketpart: input EncTicketPart variable. * @endtime: character buffer containing a generalized time string. * * Set the EncTicketPart.endtime to supplied value. * * Return value: Returns %SHISHI_OK iff successful. **/ int shishi_encticketpart_endtime_set (Shishi * handle, Shishi_asn1 encticketpart, const char *endtime) { int res; res = shishi_asn1_write (handle, encticketpart, "endtime", endtime, SHISHI_GENERALIZEDTIME_LENGTH); if (res != SHISHI_OK) return res; return SHISHI_OK; } int shishi_encticketpart_authtime (Shishi * handle, Shishi_asn1 encticketpart, char *authtime, size_t *authtimelen) { return shishi_asn1_read_inline (handle, encticketpart, "authtime", authtime, authtimelen); } time_t shishi_encticketpart_authctime (Shishi * handle, Shishi_asn1 encticketpart) { char authtime[SHISHI_GENERALIZEDTIME_LENGTH + 1]; size_t authtimelen; time_t t; int res; authtimelen = sizeof (authtime); res = shishi_encticketpart_authtime (handle, encticketpart, authtime, &authtimelen); if (res != SHISHI_OK) return (time_t) - 1; authtime[SHISHI_GENERALIZEDTIME_LENGTH] = '\0'; t = shishi_generalize_ctime (handle, authtime); return t; } /** * shishi_encticketpart_client: * @handle: Shishi library handle create by shishi_init(). * @encticketpart: EncTicketPart variable to get client name from. * @client: pointer to newly allocated zero terminated string containing * principal name. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Represent client principal name in EncTicketPart as zero-terminated * string. The string is allocate by this function, and it is the * responsibility of the caller to deallocate it. Note that the * output length @clientlen does not include the terminating zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encticketpart_client (Shishi * handle, Shishi_asn1 encticketpart, char **client, size_t *clientlen) { return shishi_principal_name (handle, encticketpart, "cname", client, clientlen); } /** * shishi_encticketpart_clientrealm: * @handle: Shishi library handle create by shishi_init(). * @encticketpart: EncTicketPart variable to get client name and realm from. * @client: pointer to newly allocated zero terminated string containing * principal name and realm. May be %NULL (to only populate @clientlen). * @clientlen: pointer to length of @client on output, excluding terminating * zero. May be %NULL (to only populate @client). * * Convert cname and realm fields from EncTicketPart to printable * principal name format. The string is allocate by this function, * and it is the responsibility of the caller to deallocate it. Note * that the output length @clientlen does not include the terminating * zero. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_encticketpart_clientrealm (Shishi * handle, Shishi_asn1 encticketpart, char **client, size_t *clientlen) { return shishi_principal_name_realm (handle, encticketpart, "cname", encticketpart, "crealm", client, clientlen); } shishi-1.0.3/lib/crypto-aes.c0000644000000000000000000001474714273601533012712 00000000000000/* crypto-aes.c --- AES crypto functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "crypto.h" /* Get _shishi_escapeprint, etc. */ #include "utils.h" static int aes128_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_encrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int aes128_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_decrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int aes256_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_encrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int aes256_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_decrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int aes_string_to_key (Shishi * handle, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { char key[256 / 8]; int keylen = shishi_key_length (outkey); Shishi_key *tmpkey; unsigned iterations = 0x00001000; int res; if (parameter) { iterations = (parameter[0] & 0xFF) << 24; iterations |= (parameter[1] & 0xFF) << 16; iterations |= (parameter[2] & 0xFF) << 8; iterations |= parameter[3] & 0xFF; } if (VERBOSECRYPTO (handle)) { printf ("aes_string_to_key (password, salt)\n"); printf ("\t ;; Password:\n"); _shishi_escapeprint (password, passwordlen); _shishi_hexprint (password, passwordlen); printf ("\t ;; Salt:\n"); _shishi_escapeprint (salt, saltlen); _shishi_hexprint (salt, saltlen); printf ("\t ;; Iteration count %u (%08x):\n", iterations, iterations); } /* tkey = random2key(PBKDF2(passphrase, salt, iter_count, keylength)) */ res = shishi_pbkdf2_sha1 (handle, password, passwordlen, salt, saltlen, iterations, keylen, key); if (res != SHISHI_OK) return res; res = shishi_key_from_value (handle, shishi_key_type (outkey), key, &tmpkey); if (res != SHISHI_OK) return res; /* key = DK(tkey, Constant) */ res = shishi_dk (handle, tmpkey, SHISHI_DK_CONSTANT, strlen (SHISHI_DK_CONSTANT), outkey); shishi_key_done (tmpkey); if (res != SHISHI_OK) return res; if (VERBOSECRYPTO (handle)) { printf ("aes_string_to_key (password, salt)\n"); printf ("\t ;; Key:\n"); _shishi_hexprint (shishi_key_value (outkey), shishi_key_length (outkey)); _shishi_binprint (shishi_key_value (outkey), shishi_key_length (outkey)); } return SHISHI_OK; } static int aes128_string_to_key (Shishi * handle, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { return aes_string_to_key (handle, password, passwordlen, salt, saltlen, parameter, outkey); } static int aes256_string_to_key (Shishi * handle, const char *password, size_t passwordlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { return aes_string_to_key (handle, password, passwordlen, salt, saltlen, parameter, outkey); } static int aes128_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { if (rndlen < shishi_key_length (outkey)) return SHISHI_CRYPTO_ERROR; shishi_key_value_set (outkey, rnd); return SHISHI_OK; } static int aes256_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { if (rndlen < shishi_key_length (outkey)) return SHISHI_CRYPTO_ERROR; shishi_key_value_set (outkey, rnd); return SHISHI_OK; } static int aes128_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen); } static int aes256_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { return _shishi_simplified_checksum (handle, key, keyusage, cksumtype, in, inlen, out, outlen); } cipherinfo aes128_cts_hmac_sha1_96_info = { SHISHI_AES128_CTS_HMAC_SHA1_96, "aes128-cts-hmac-sha1-96", 16, 16, 128 / 8, 128 / 8, SHISHI_HMAC_SHA1_96_AES128, aes128_random_to_key, aes128_string_to_key, aes128_encrypt, aes128_decrypt }; cipherinfo aes256_cts_hmac_sha1_96_info = { SHISHI_AES256_CTS_HMAC_SHA1_96, "aes256-cts-hmac-sha1-96", 16, 16, 256 / 8, 256 / 8, SHISHI_HMAC_SHA1_96_AES256, aes256_random_to_key, aes256_string_to_key, aes256_encrypt, aes256_decrypt }; checksuminfo hmac_sha1_96_aes128_info = { SHISHI_HMAC_SHA1_96_AES128, "hmac-sha1-96-aes128", 96 / 8, aes128_checksum, NULL }; checksuminfo hmac_sha1_96_aes256_info = { SHISHI_HMAC_SHA1_96_AES256, "hmac-sha1-96-aes256", 96 / 8, aes256_checksum, NULL }; shishi-1.0.3/lib/Makefile.am0000644000000000000000000000567114273603356012515 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SUBDIRS = gl AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY) AM_CPPFLAGS = $(LIBTASN1_CFLAGS) -I$(srcdir)/gl -I$(builddir)/gl AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shishi.conf\" \ -DSKELCFGFILE=\"$(SKELDIR)/shishi.skel\" \ -DHOSTKEYSFILE=\"$(KEYDIR)/shishi.keys\" BUILT_SOURCES = kerberos5.c MAINTAINERCLEANFILES = kerberos5.c include_HEADERS = shishi.h shishi-version.h lib_LTLIBRARIES = libshishi.la libshishi_la_SOURCES = libshishi.map \ shishi.h internal.h \ init.c cfg.c cfg.h realm.c principal.c error.c krberror.c \ gztime.c diskio.c diskio.h authorize.c pki.c \ authenticator.c \ kdc.c kdcreq.c kdcrep.c enckdcreppart.c as.c tgs.c \ ap.c apreq.c aprep.c encapreppart.c \ safe.c priv.c \ ticket.c encticketpart.c tkt.c tkts.c tktccache.c \ ccache.c ccache.h \ netio.c \ key.c keys.c keytab.c hostkeys.c \ crypto.c crypto.h crypto-ctx.c \ asn1.c asn1.h kerberos5.c \ version.c password.c \ utils.c utils.h resolv.c \ kerberos5.asn1 \ low-crypto.c low-crypto.h if NULL libshishi_la_SOURCES += crypto-null.c endif if MD libshishi_la_SOURCES += crypto-md.c endif if DES libshishi_la_SOURCES += crypto-des.c endif if DES3 libshishi_la_SOURCES += crypto-3des.c endif if AES libshishi_la_SOURCES += crypto-aes.c endif if ARCFOUR libshishi_la_SOURCES += crypto-rc4.c endif if STARTTLS libshishi_la_SOURCES += starttls.c starttls.h endif libshishi_la_LIBADD = gl/libgnu.la $(LIB_CLOCK_GETTIME) \ $(LTLIBTASN1) $(LTLIBGNUTLS) $(LTLIBGCRYPT) $(LTLIBIDN) \ $(LTLIBINTL) $(LTLIBRESOLV) $(LIBSOCKET) libshishi_la_LDFLAGS = -no-undefined \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) if HAVE_LD_VERSION_SCRIPT libshishi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libshishi.map else libshishi_la_LDFLAGS += -export-symbols-regex '^shishi.*' endif if HAVE_LD_OUTPUT_DEF libshishi_la_LDFLAGS += -Wl,--output-def,libshishi-$(SOVERSION).def defexecdir = $(bindir) defexec_DATA = libshishi-$(SOVERSION).def DISTCLEANFILES = $(defexec_DATA) endif kerberos5.c: $(srcdir)/kerberos5.asn1 $(AM_V_GEN)$(ASN1PARSER) -o $@ -n shishi_asn1_tab $(srcdir)/kerberos5.asn1 shishi-1.0.3/lib/kerberos5.asn10000644000000000000000000003547714273600463013151 00000000000000-- kerberos.asn1 - Kerberos ASN.1 schema -- Copyright (C) 2002-2022 Simon Josefsson -- -- This file is part of Shishi. -- Shishi is free software; you can redistribute it and/or modify it -- under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- Shishi is distributed in the hope that it will be useful, but -- WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- General Public License for more details. -- You should have received a copy of the GNU General Public License -- along with Shishi; if not, see http://www.gnu.org/licenses or write -- to the Free Software Foundation, Inc., 51 Franklin Street, Fifth -- Floor, Boston, MA 02110-1301, USA -- This rest of this file is taken from appendix A of RFC 4120, -- http://www.ietf.org/rfc/rfc4120.txt (MD5 -- f95332f70f18eb9252756c7e2accc141), with two minor modifications -- marked with "libtasn1 bug" below. RFC 4120 exhibit the ISOC -- copyright, althought it does not cover the ASN.1 schema, see -- discussions in the IETF IPR WG. I have acquired permission to use -- the ASN.1 schema from RFC 4120 under the MIT/X11 license from all -- authors but Tom Yu (as of April 2006). For prudence, asking the -- Kerberos WG whether anyone else contributed significantly to the -- ASN.1 schema also remains. Further, it seems the IETF IPR WG tend -- to believe that code extracted from RFCs was intended to be -- modifiable under RFC 3978, which would be sufficient for an ASN.1 -- schema such as this file, compare ipr-rules-update-07 and -- <50E312B117033946BA23AA102C8134C62AB176@SDCPEXCCL2MX.wilmerhale.com>. -- The IETF lawyer Jorge Contreras has said the following on this -- topic: "Under RFC 3978, it is currently OK to modify code extracts -- from RFCs.", see <44A91390.2030908@dial.pipex.com>. KerberosV5Spec2 { iso(1) identified-organization(3) dod(6) internet(1) security(5) kerberosV5(2) modules(4) krb5spec2(2) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- OID arc for KerberosV5 -- -- This OID may be used to identify Kerberos protocol messages -- encapsulated in other protocols. -- -- This OID also designates the OID arc for KerberosV5-related OIDs. -- -- NOTE: RFC 1510 had an incorrect value (5) for "dod" in its OID. id-krb5 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6) internet(1) security(5) kerberosV5(2) } Int32 ::= INTEGER -- libtasn1 bug: (-2147483648..2147483647) -- signed values representable in 32 bits UInt32 ::= INTEGER (0..4294967295) -- unsigned 32 bit values Microseconds ::= INTEGER (0..999999) -- microseconds KerberosString ::= GeneralString -- libtasn1 bug: (IA5String) Realm ::= KerberosString PrincipalName ::= SEQUENCE { name-type [0] Int32, name-string [1] SEQUENCE OF KerberosString } KerberosTime ::= GeneralizedTime -- with no fractional seconds HostAddress ::= SEQUENCE { addr-type [0] Int32, address [1] OCTET STRING } -- NOTE: HostAddresses is always used as an OPTIONAL field and -- should not be empty. HostAddresses -- NOTE: subtly different from rfc1510, -- but has a value mapping and encodes the same ::= SEQUENCE OF HostAddress -- NOTE: AuthorizationData is always used as an OPTIONAL field and -- should not be empty. AuthorizationData ::= SEQUENCE OF SEQUENCE { ad-type [0] Int32, ad-data [1] OCTET STRING } PA-DATA ::= SEQUENCE { -- NOTE: first tag is [1], not [0] padata-type [1] Int32, padata-value [2] OCTET STRING -- might be encoded AP-REQ } KerberosFlags ::= BIT STRING (SIZE (32..MAX)) -- minimum number of bits shall be sent, -- but no fewer than 32 EncryptedData ::= SEQUENCE { etype [0] Int32 -- EncryptionType --, kvno [1] UInt32 OPTIONAL, cipher [2] OCTET STRING -- ciphertext } EncryptionKey ::= SEQUENCE { keytype [0] Int32 -- actually encryption type --, keyvalue [1] OCTET STRING } Checksum ::= SEQUENCE { cksumtype [0] Int32, checksum [1] OCTET STRING } Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno [0] INTEGER (5), realm [1] Realm, sname [2] PrincipalName, enc-part [3] EncryptedData -- EncTicketPart } -- Encrypted part of ticket EncTicketPart ::= [APPLICATION 3] SEQUENCE { flags [0] TicketFlags, key [1] EncryptionKey, crealm [2] Realm, cname [3] PrincipalName, transited [4] TransitedEncoding, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, caddr [9] HostAddresses OPTIONAL, authorization-data [10] AuthorizationData OPTIONAL } -- encoded Transited field TransitedEncoding ::= SEQUENCE { tr-type [0] Int32 -- must be registered --, contents [1] OCTET STRING } TicketFlags ::= KerberosFlags -- reserved(0), -- forwardable(1), -- forwarded(2), -- proxiable(3), -- proxy(4), -- may-postdate(5), -- postdated(6), -- invalid(7), -- renewable(8), -- initial(9), -- pre-authent(10), -- hw-authent(11), -- the following are new since 1510 -- transited-policy-checked(12), -- ok-as-delegate(13) AS-REQ ::= [APPLICATION 10] KDC-REQ TGS-REQ ::= [APPLICATION 12] KDC-REQ KDC-REQ ::= SEQUENCE { -- NOTE: first tag is [1], not [0] pvno [1] INTEGER (5) , msg-type [2] INTEGER (10 -- AS -- | 12 -- TGS --), padata [3] SEQUENCE OF PA-DATA OPTIONAL -- NOTE: not empty --, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData OPTIONAL -- AuthorizationData --, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL -- NOTE: not empty } KDCOptions ::= KerberosFlags -- reserved(0), -- forwardable(1), -- forwarded(2), -- proxiable(3), -- proxy(4), -- allow-postdate(5), -- postdated(6), -- unused7(7), -- renewable(8), -- unused9(9), -- unused10(10), -- opt-hardware-auth(11), -- unused12(12), -- unused13(13), -- 15 is reserved for canonicalize -- unused15(15), -- 26 was unused in 1510 -- disable-transited-check(26), -- -- renewable-ok(27), -- enc-tkt-in-skey(28), -- renew(30), -- validate(31) AS-REP ::= [APPLICATION 11] KDC-REP TGS-REP ::= [APPLICATION 13] KDC-REP KDC-REP ::= SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (11 -- AS -- | 13 -- TGS --), padata [2] SEQUENCE OF PA-DATA OPTIONAL -- NOTE: not empty --, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData -- EncASRepPart or EncTGSRepPart, -- as appropriate } EncASRepPart ::= [APPLICATION 25] EncKDCRepPart EncTGSRepPart ::= [APPLICATION 26] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } LastReq ::= SEQUENCE OF SEQUENCE { lr-type [0] Int32, lr-value [1] KerberosTime } AP-REQ ::= [APPLICATION 14] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (14), ap-options [2] APOptions, ticket [3] Ticket, authenticator [4] EncryptedData -- Authenticator } APOptions ::= KerberosFlags -- reserved(0), -- use-session-key(1), -- mutual-required(2) -- Unencrypted authenticator Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno [0] INTEGER (5), crealm [1] Realm, cname [2] PrincipalName, cksum [3] Checksum OPTIONAL, cusec [4] Microseconds, ctime [5] KerberosTime, subkey [6] EncryptionKey OPTIONAL, seq-number [7] UInt32 OPTIONAL, authorization-data [8] AuthorizationData OPTIONAL } AP-REP ::= [APPLICATION 15] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (15), enc-part [2] EncryptedData -- EncAPRepPart } EncAPRepPart ::= [APPLICATION 27] SEQUENCE { ctime [0] KerberosTime, cusec [1] Microseconds, subkey [2] EncryptionKey OPTIONAL, seq-number [3] UInt32 OPTIONAL } KRB-SAFE ::= [APPLICATION 20] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (20), safe-body [2] KRB-SAFE-BODY, cksum [3] Checksum } KRB-SAFE-BODY ::= SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress, r-address [5] HostAddress OPTIONAL } KRB-PRIV ::= [APPLICATION 21] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (21), -- NOTE: there is no [2] tag enc-part [3] EncryptedData -- EncKrbPrivPart } EncKrbPrivPart ::= [APPLICATION 28] SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress -- sender's addr --, r-address [5] HostAddress OPTIONAL -- recip's addr } KRB-CRED ::= [APPLICATION 22] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (22), tickets [2] SEQUENCE OF Ticket, enc-part [3] EncryptedData -- EncKrbCredPart } EncKrbCredPart ::= [APPLICATION 29] SEQUENCE { ticket-info [0] SEQUENCE OF KrbCredInfo, nonce [1] UInt32 OPTIONAL, timestamp [2] KerberosTime OPTIONAL, usec [3] Microseconds OPTIONAL, s-address [4] HostAddress OPTIONAL, r-address [5] HostAddress OPTIONAL } KrbCredInfo ::= SEQUENCE { key [0] EncryptionKey, prealm [1] Realm OPTIONAL, pname [2] PrincipalName OPTIONAL, flags [3] TicketFlags OPTIONAL, authtime [4] KerberosTime OPTIONAL, starttime [5] KerberosTime OPTIONAL, endtime [6] KerberosTime OPTIONAL, renew-till [7] KerberosTime OPTIONAL, srealm [8] Realm OPTIONAL, sname [9] PrincipalName OPTIONAL, caddr [10] HostAddresses OPTIONAL } KRB-ERROR ::= [APPLICATION 30] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (30), ctime [2] KerberosTime OPTIONAL, cusec [3] Microseconds OPTIONAL, stime [4] KerberosTime, susec [5] Microseconds, error-code [6] Int32, crealm [7] Realm OPTIONAL, cname [8] PrincipalName OPTIONAL, realm [9] Realm -- service realm --, sname [10] PrincipalName -- service name --, e-text [11] KerberosString OPTIONAL, e-data [12] OCTET STRING OPTIONAL } METHOD-DATA ::= SEQUENCE OF PA-DATA TYPED-DATA ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE { data-type [0] Int32, data-value [1] OCTET STRING OPTIONAL } -- preauth stuff follows PA-ENC-TIMESTAMP ::= EncryptedData -- PA-ENC-TS-ENC PA-ENC-TS-ENC ::= SEQUENCE { patimestamp [0] KerberosTime -- client's time --, pausec [1] Microseconds OPTIONAL } ETYPE-INFO-ENTRY ::= SEQUENCE { etype [0] Int32, salt [1] OCTET STRING OPTIONAL } ETYPE-INFO ::= SEQUENCE OF ETYPE-INFO-ENTRY ETYPE-INFO2-ENTRY ::= SEQUENCE { etype [0] Int32, salt [1] KerberosString OPTIONAL, s2kparams [2] OCTET STRING OPTIONAL } ETYPE-INFO2 ::= SEQUENCE SIZE (1..MAX) OF ETYPE-INFO2-ENTRY AD-IF-RELEVANT ::= AuthorizationData AD-KDCIssued ::= SEQUENCE { ad-checksum [0] Checksum, i-realm [1] Realm OPTIONAL, i-sname [2] PrincipalName OPTIONAL, elements [3] AuthorizationData } AD-AND-OR ::= SEQUENCE { condition-count [0] Int32, elements [1] AuthorizationData } AD-MANDATORY-FOR-KDC ::= AuthorizationData END shishi-1.0.3/lib/crypto-rc4.c0000644000000000000000000003153214273601533012621 00000000000000/* crypto-rc4.c --- draft-brezak-win2k-krb-rc4-hmac-04 crypto functions. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" /* Get prototypes. */ #include "crypto.h" /* Get _shishi_escapeprint, etc. */ #include "utils.h" static int arcfour_keyusage (int keyusage) { /* From draft-brezak-win2k-krb-rc4-hmac-04.txt: * * 1. AS-REQ PA-ENC-TIMESTAMP padata timestamp, encrypted with * the client key (T=1) * 2. AS-REP Ticket and TGS-REP Ticket (includes TGS session key * or application session key), encrypted with the service key * (T=2) * 3. AS-REP encrypted part (includes TGS session key or * application session key), encrypted with the client key (T=8) * 4. TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the * TGS session key (T=4) * 5. TGS-REQ KDC-REQ-BODY AuthorizationData, encrypted with the * TGS authenticator subkey (T=5) * 6. TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator cksum, keyed * with the TGS session key (T=6) * 7. TGS-REQ PA-TGS-REQ padata AP-REQ Authenticator (includes * TGS authenticator subkey), encrypted with the TGS session key * (T=7) * 8. TGS-REP encrypted part (includes application session key), * encrypted with the TGS session key (T=8) * 9. TGS-REP encrypted part (includes application session key), * encrypted with the TGS authenticator subkey (T=8) * 10. AP-REQ Authenticator cksum, keyed with the application * session key (T=10) * 11. AP-REQ Authenticator (includes application authenticator * subkey), encrypted with the application session key (T=11) * 12. AP-REP encrypted part (includes application session * subkey), encrypted with the application session key (T=12) * 13. KRB-PRIV encrypted part, encrypted with a key chosen by * the application. Also for data encrypted with GSS Wrap (T=13) * 14. KRB-CRED encrypted part, encrypted with a key chosen by * the application (T=14) * 15. KRB-SAFE cksum, keyed with a key chosen by the * application. Also for data signed in GSS MIC (T=15) */ if (keyusage == SHISHI_KEYUSAGE_ENCASREPPART) return SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY; else if (keyusage == SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY) return SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY; /* Continued, this probably refer to the non-standard 3DES GSSAPI * keyusages; RFC 1964 does not discuss key uses at all. When this * comment was written, GSSLib did not support ARCFOUR though. * * Relative to RFC-1964 key uses: * * T = 0 in the generation of sequence number for the MIC token * T = 0 in the generation of sequence number for the WRAP token * T = 0 in the generation of encrypted data for the WRAPPED token * */ if (keyusage == SHISHI_KEYUSAGE_GSS_R1 || keyusage == SHISHI_KEYUSAGE_GSS_R2 || keyusage == SHISHI_KEYUSAGE_GSS_R3) return 0; return keyusage; } static int arcfour_hmac_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { int export = shishi_key_type (key) == SHISHI_ARCFOUR_HMAC_EXP; int arcfourkeyusage = arcfour_keyusage (keyusage); char L40[14] = "fortybits"; uint8_t T[4]; char *K1 = NULL; char K2[16]; char *K3 = NULL; char *pt = NULL; size_t ptlen; char *ct = NULL; char *cksum = NULL; int offset; int err; T[0] = arcfourkeyusage & 0xFF; T[1] = (arcfourkeyusage >> 8) & 0xFF; T[2] = (arcfourkeyusage >> 16) & 0xFF; T[3] = (arcfourkeyusage >> 24) & 0xFF; memcpy (L40 + 10, T, 4); if (export) offset = 0; else offset = 10; if (VERBOSECRYPTONOISE (handle)) { puts ("k1pt"); _shishi_hexprint (L40 + offset, 14 - offset); } err = shishi_hmac_md5 (handle, shishi_key_value (key), shishi_key_length (key), L40 + offset, 14 - offset, &K1); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("k1"); _shishi_hexprint (K1, 16); } memcpy (K2, K1, 16); if (export) memset (K1 + 7, 0xAB, 9); if (VERBOSECRYPTONOISE (handle)) { puts ("k1"); _shishi_hexprint (K1, 16); puts ("k2"); _shishi_hexprint (K2, 16); } /* Note that in ENCRYPT of draft-brezak-win2k-krb-rc4-hmac-04.txt change: * * edata.Checksum = HMAC (K2, edata); * * into * * edata.Checksum = HMAC (K2, concat(edata.Confounder, edata.Data)); * * otherwise it will not work. Compare DECRYPT where the later is * taken from. Another interpretation would be to HMAC a zeroized * checksum field, like certain other cipher suites do, but that * does not interoperate. * */ ptlen = 8 + inlen; pt = xmalloc (ptlen); err = shishi_randomize (handle, 0, pt, 8); if (err) goto done; memcpy (pt + 8, in, inlen); if (VERBOSECRYPTONOISE (handle)) { puts ("random"); _shishi_hexprint (pt, 8); } err = shishi_hmac_md5 (handle, K2, 16, pt, ptlen, &cksum); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("cksum"); _shishi_hexprint (cksum, 16); } err = shishi_hmac_md5 (handle, K1, 16, cksum, 16, &K3); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("k3"); _shishi_hexprint (K3, 16); } err = shishi_arcfour (handle, 0, K3, 16, iv, ivout, pt, ptlen, &ct); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("ct"); _shishi_hexprint (ct, ptlen); } *outlen = 16 + ptlen; *out = xmalloc (*outlen); memcpy (*out, cksum, 16); memcpy (*out + 16, ct, ptlen); if (ivoutlen) /* size = sbox[256] + int8_t i + int8_t j */ *ivoutlen = 256 + 2 * 8; err = SHISHI_OK; done: free (cksum); free (K3); free (pt); free (ct); free (K1); return err; } static int arcfour_hmac_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { int export = shishi_key_type (key) == SHISHI_ARCFOUR_HMAC_EXP; int arcfourkeyusage = arcfour_keyusage (keyusage); char L40[14] = "fortybits"; uint8_t T[4]; char *K1 = NULL; char K2[16]; char *K3 = NULL; char *cksum = NULL; char *pt = NULL; int offset; int err; T[0] = arcfourkeyusage & 0xFF; T[1] = (arcfourkeyusage >> 8) & 0xFF; T[2] = (arcfourkeyusage >> 16) & 0xFF; T[3] = (arcfourkeyusage >> 24) & 0xFF; memcpy (L40 + 10, T, 4); if (export) offset = 0; else offset = 10; if (VERBOSECRYPTONOISE (handle)) { puts ("k1pt"); _shishi_hexprint (L40 + offset, 14 - offset); } err = shishi_hmac_md5 (handle, shishi_key_value (key), shishi_key_length (key), L40 + offset, 14 - offset, &K1); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("k1"); _shishi_hexprint (K1, 16); } memcpy (K2, K1, 16); if (export) memset (K1 + 7, 0xAB, 9); if (VERBOSECRYPTONOISE (handle)) { puts ("k1"); _shishi_hexprint (K1, 16); puts ("k2"); _shishi_hexprint (K2, 16); } err = shishi_hmac_md5 (handle, K1, 16, in, 16, &K3); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("k3"); _shishi_hexprint (K3, 16); } err = shishi_arcfour (handle, 1, K3, 16, iv, ivout, in + 16, inlen - 16, &pt); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("cksum pt"); _shishi_hexprint (pt, inlen - 16); } err = shishi_hmac_md5 (handle, K2, 16, pt, inlen - 16, &cksum); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("cksum"); _shishi_hexprint (cksum, 16); puts ("cksumin"); _shishi_hexprint (in, 16); } if (memcmp (cksum, in, 16) != 0) { err = SHISHI_CRYPTO_ERROR; goto done; } *outlen = inlen - 16 - 8; *out = xmalloc (*outlen); memcpy (*out, pt + 8, inlen - 16 - 8); if (ivoutlen) /* size = sbox[256] + int8_t i + int8_t j */ *ivoutlen = 256 + 2 * 8; err = SHISHI_OK; done: free (cksum); free (K3); free (K1); free (pt); return err; } static int arcfour_hmac_exp_encrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return arcfour_hmac_encrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } static int arcfour_hmac_exp_decrypt (Shishi * handle, Shishi_key * key, int keyusage, const char *iv, size_t ivlen, char **ivout, size_t *ivoutlen, const char *in, size_t inlen, char **out, size_t *outlen) { return arcfour_hmac_decrypt (handle, key, keyusage, iv, ivlen, ivout, ivoutlen, in, inlen, out, outlen); } #define ARCFOUR_HMAC_CKSUM_KEY_DERIVE_CONSTANT "signaturekey" static int arcfour_hmac_md5_checksum (Shishi * handle, Shishi_key * key, int keyusage, int cksumtype, const char *in, size_t inlen, char **out, size_t *outlen) { int arcfourkeyusage = arcfour_keyusage (keyusage); char *Ksign = NULL; char *pt = NULL; size_t ptlen; char *tmp = NULL; char T[4]; int err; T[0] = arcfourkeyusage & 0xFF; T[1] = (arcfourkeyusage >> 8) & 0xFF; T[2] = (arcfourkeyusage >> 16) & 0xFF; T[3] = (arcfourkeyusage >> 24) & 0xFF; err = shishi_hmac_md5 (handle, shishi_key_value (key), shishi_key_length (key), ARCFOUR_HMAC_CKSUM_KEY_DERIVE_CONSTANT, strlen (ARCFOUR_HMAC_CKSUM_KEY_DERIVE_CONSTANT) + 1, &Ksign); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("Ksign"); _shishi_hexprint (Ksign, 16); } ptlen = 4 + inlen; pt = xmalloc (ptlen); memcpy (pt, T, 4); memcpy (pt + 4, in, inlen); if (VERBOSECRYPTONOISE (handle)) { puts ("pt"); _shishi_hexprint (pt, ptlen); } err = shishi_md5 (handle, pt, ptlen, &tmp); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("md"); _shishi_hexprint (tmp, 16); } *outlen = 16; err = shishi_hmac_md5 (handle, Ksign, 16, tmp, 16, out); if (err) goto done; if (VERBOSECRYPTONOISE (handle)) { puts ("hmac"); _shishi_hexprint (*out, 16); } err = SHISHI_OK; done: free (Ksign); free (pt); free (tmp); return err; } static int arcfour_hmac_random_to_key (Shishi * handle, const char *rnd, size_t rndlen, Shishi_key * outkey) { if (rndlen != shishi_key_length (outkey)) { shishi_error_printf (handle, "ARCFOUR random to key caller error"); return SHISHI_CRYPTO_ERROR; } shishi_key_value_set (outkey, rnd); return SHISHI_OK; } static int arcfour_hmac_string_to_key (Shishi * handle, const char *string, size_t stringlen, const char *salt, size_t saltlen, const char *parameter, Shishi_key * outkey) { char *tmp, *md; size_t tmplen, i; int rc; tmplen = 2 * stringlen; tmp = xmalloc (tmplen); for (i = 0; i < stringlen; i++) { tmp[2 * i] = string[i]; tmp[2 * i + 1] = '\x0'; } rc = shishi_md4 (handle, tmp, tmplen, &md); free (tmp); if (rc != SHISHI_OK) return rc; shishi_key_value_set (outkey, md); free (md); return SHISHI_OK; } cipherinfo arcfour_hmac_info = { SHISHI_ARCFOUR_HMAC, "arcfour-hmac", 1, 16, 16, 16, SHISHI_ARCFOUR_HMAC_MD5, arcfour_hmac_random_to_key, arcfour_hmac_string_to_key, arcfour_hmac_encrypt, arcfour_hmac_decrypt }; cipherinfo arcfour_hmac_exp_info = { SHISHI_ARCFOUR_HMAC_EXP, "arcfour-hmac-exp", 1, 16, 16, 16, SHISHI_ARCFOUR_HMAC_MD5, arcfour_hmac_random_to_key, arcfour_hmac_string_to_key, arcfour_hmac_exp_encrypt, arcfour_hmac_exp_decrypt }; checksuminfo arcfour_hmac_md5_info = { SHISHI_ARCFOUR_HMAC_MD5, "arcfour-hmac-md5", 16, arcfour_hmac_md5_checksum, NULL }; shishi-1.0.3/lib/resolv.c0000644000000000000000000001526514273601533012132 00000000000000/* resolv.c --- Resolver glue. * Copyright (C) 2003-2022 Simon Josefsson * Copyright (C) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* This file is based on resolver.h from jabberd - Jabber Open Source * Server, licensed under GPL. See: * * http://www.jabberstudio.org/cgi-bin/viewcvs.cgi/jabberd2/resolver/ */ #include "internal.h" #ifdef HAVE_RES_QUERY # include # ifdef HAVE_ARPA_NAMESER_H # include # endif # ifdef HAVE_RESOLV_H # include # endif /* the largest packet we'll send and receive */ # if PACKETSZ > 1024 # define MAX_PACKET PACKETSZ # else # define MAX_PACKET (1024) # endif typedef union { HEADER hdr; unsigned char buf[MAX_PACKET]; } dns_packet_t; static void * txt_rr (dns_packet_t packet, unsigned char *eom, unsigned char **scan) { size_t len = (size_t) **scan; char *p; p = xmalloc (len + 1); memcpy (p, *scan + 1, len); p[len] = '\0'; *scan += (unsigned char) (len + 1); return p; } static void * srv_rr (dns_packet_t packet, unsigned char *eom, unsigned char **scan) { unsigned int priority, weight, port; int len; char host[256]; Shishi_dns_srv srv; GETSHORT (priority, *scan); GETSHORT (weight, *scan); GETSHORT (port, *scan); len = dn_expand (packet.buf, eom, *scan, host, 256); if (len < 0) return NULL; *scan = (unsigned char *) (*scan + len); srv = xmalloc (sizeof (*srv)); srv->priority = priority; srv->weight = weight; srv->port = port; strcpy (srv->name, host); return (void *) srv; } /* compare two srv structures, order by priority then by randomised weight */ static int srv_compare (const void *a, const void *b) { Shishi_dns_srv aa, bb; if (a == NULL) return 1; if (b == NULL) return -1; aa = (*((Shishi_dns *) a))->rr; bb = (*((Shishi_dns *) b))->rr; if (aa->priority > bb->priority) return 1; if (aa->priority < bb->priority) return -1; if (aa->weight > bb->weight) return -1; if (aa->weight < bb->weight) return 1; return 0; } /** * shishi_resolv: * @zone: Domain name of authentication zone, e.g. "EXAMPLE.ORG" * @querytype: Type of domain data to query for. * * Queries the DNS resolver for data of type @querytype about * the domain name @zone. Currently, the types %SHISHI_DNS_TXT * and %SHISHI_DNS_SRV are the only supported kinds. * * After its use, the returned list should be deallocated by * a call to shishi_resolv_free(). * * Return value: Returns a linked list of DNS resource records, * or %NULL if the query failed. **/ Shishi_dns shishi_resolv (const char *zone, uint16_t querytype) { char host[256]; dns_packet_t packet; int len, qdcount, ancount, an, n; unsigned char *eom, *scan; Shishi_dns *reply, first; uint16_t type, class, ttl; if (zone == NULL || *zone == '\0') return NULL; switch (querytype) { case SHISHI_DNS_TXT: case SHISHI_DNS_SRV: break; default: return NULL; } /* do the actual query */ if ((len = res_query (zone, C_IN, querytype, packet.buf, MAX_PACKET)) < 0 || len < (int) sizeof (HEADER)) return NULL; /* we got a valid result, containing two types of records - packet * and answer .. we have to skip over the packet records */ /* no. of packets, no. of answers */ qdcount = ntohs (packet.hdr.qdcount); ancount = ntohs (packet.hdr.ancount); /* end of the returned message */ eom = (unsigned char *) (packet.buf + len); /* our current location */ scan = (unsigned char *) (packet.buf + sizeof (HEADER)); /* skip over the packet records */ while (qdcount > 0 && scan < eom) { qdcount--; if ((len = dn_expand (packet.buf, eom, scan, host, 256)) < 0) return NULL; scan = (unsigned char *) (scan + len + QFIXEDSZ); } /* create an array to store the replies in */ reply = xcalloc (ancount, sizeof (Shishi_dns)); an = 0; /* loop through the answer buffer and extract SRV records */ while (ancount > 0 && scan < eom) { ancount--; len = dn_expand (packet.buf, eom, scan, host, 256); if (len < 0) { for (n = 0; n < an; n++) free (reply[n]); free (reply); return NULL; } scan += len; /* extract the various parts of the record */ GETSHORT (type, scan); GETSHORT (class, scan); GETLONG (ttl, scan); GETSHORT (len, scan); /* skip records we're not interested in */ if (type != querytype) { scan = (unsigned char *) (scan + len); continue; } /* create a new reply structure to save it in */ reply[an] = xmalloc (sizeof (*reply[0])); reply[an]->type = type; reply[an]->class = class; reply[an]->ttl = ttl; reply[an]->next = NULL; /* type-specific processing */ switch (type) { case SHISHI_DNS_TXT: reply[an]->rr = txt_rr (packet, eom, &scan); break; case SHISHI_DNS_SRV: reply[an]->rr = srv_rr (packet, eom, &scan); break; default: scan = (unsigned char *) (scan + len); continue; } /* fell short, we're done */ if (reply[an]->rr == NULL) { free (reply[an]); reply[an] = NULL; break; } /* on to the next one */ an++; } /* sort srv records them */ if (querytype == SHISHI_DNS_SRV) qsort (reply, an, sizeof (Shishi_dns), srv_compare); /* build a linked list out of the array elements */ for (n = 0; n < an - 1; n++) reply[n]->next = reply[n + 1]; first = reply[0]; free (reply); return first; } #else /* !HAVE_RES_QUERY */ Shishi_dns shishi_resolv (const char *zone, uint16_t querytype) { return NULL; } #endif /** * shishi_resolv_free: * @rrs: List of DNS RRs as returned by shishi_resolv(). * * Deallocates a list of DNS resource records returned by * a call to shishi_resolv(). **/ void shishi_resolv_free (Shishi_dns rrs) { Shishi_dns next; while (rrs != NULL) { next = rrs->next; free (rrs->rr); free (rrs); rrs = next; } } shishi-1.0.3/lib/shishi-version.h0000644000000000000000000000512514273615661013600 00000000000000/* shishi-version.h --- Header file with Shishi version. -*- c -*- * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef SHISHI_VERSION_H # define SHISHI_VERSION_H /** * SECTION:shishi-version * @title: shishi-version.h * @short_description: version symbols * * The shishi-version.h file contains version symbols. It should * not be included directly, only via shishi.h. */ /** * SHISHI_VERSION * * Pre-processor symbol with a string that describe the header file * version number. Used together with shishi_check_version() to * verify header file and run-time library consistency. */ # define SHISHI_VERSION "1.0.3" /** * SHISHI_VERSION_MAJOR * * Pre-processor symbol with a decimal value that describe the major * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 1. * * Since: 1.0.3 */ # define SHISHI_VERSION_MAJOR 1 /** * SHISHI_VERSION_MINOR * * Pre-processor symbol with a decimal value that describe the minor * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 2. * * Since: 1.0.3 */ # define SHISHI_VERSION_MINOR 0 /** * SHISHI_VERSION_PATCH * * Pre-processor symbol with a decimal value that describe the patch * level of the header file version number. For example, when the * header version is 1.2.3 this symbol will be 3. * * Since: 1.0.3 */ # define SHISHI_VERSION_PATCH 3 /** * SHISHI_VERSION_NUMBER * * Pre-processor symbol with a hexadecimal value describing the * header file version number. For example, when the header version * is 1.2.3 this symbol will have the value 0x010203. * * Since: 1.0.3 */ # define SHISHI_VERSION_NUMBER 0x010003 #endif /* SHISHI_VERSION_H */ shishi-1.0.3/lib/pki.c0000644000000000000000000001441014273601533011372 00000000000000/* pki.c --- Public Key Infrastructure support functions for Shishi. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #define X509CA_FILE "client.ca" #define X509KEY_FILE "client.key" #define X509CERT_FILE "client.certs" /** * shishi_x509ca_default_file_guess: * @handle: Shishi library handle create by shishi_init(). * * Guesses the default X.509 CA certificate filename; it is * $HOME/.shishi/client.ca. * * Return value: Returns default X.509 client certificate filename as * a string that has to be deallocated with free() by the caller. **/ char * shishi_x509ca_default_file_guess (Shishi * handle) { return shishi_cfg_userdirectory_file (handle, X509CA_FILE); } /** * shishi_x509ca_default_file_set: * @handle: Shishi library handle create by shishi_init(). * @x509cafile: string with new default x509 client certificate file name, * or NULL to reset to default. * * Set the default X.509 CA certificate filename used in the library. * The certificate is used during TLS connections with the KDC to * authenticate the KDC. The string is copied into the library, so * you can dispose of the variable immediately after calling this * function. **/ void shishi_x509ca_default_file_set (Shishi * handle, const char *x509cafile) { free (handle->x509cafile); if (x509cafile) handle->x509cafile = xstrdup (x509cafile); else handle->x509cafile = shishi_x509ca_default_file_guess (handle); } /** * shishi_x509ca_default_file: * @handle: Shishi library handle create by shishi_init(). * * Get filename for default X.509 CA certificate. * * Return value: Returns the default X.509 CA certificate filename * used in the library. The certificate is used during TLS * connections with the KDC to authenticate the KDC. The string is * not a copy, so don't modify or deallocate it. **/ const char * shishi_x509ca_default_file (Shishi * handle) { if (!handle->x509cafile) shishi_x509ca_default_file_set (handle, NULL); return handle->x509cafile; } /** * shishi_x509cert_default_file_guess: * @handle: Shishi library handle create by shishi_init(). * * Guesses the default X.509 client certificate filename; it is * $HOME/.shishi/client.certs. * * Return value: Returns default X.509 client certificate filename as * a string that has to be deallocated with free() by the caller. **/ char * shishi_x509cert_default_file_guess (Shishi * handle) { return shishi_cfg_userdirectory_file (handle, X509CERT_FILE); } /** * shishi_x509cert_default_file_set: * @handle: Shishi library handle create by shishi_init(). * @x509certfile: string with new default x509 client certificate file name, * or NULL to reset to default. * * Set the default X.509 client certificate filename used in the * library. The certificate is used during TLS connections with the * KDC to authenticate the client. The string is copied into the * library, so you can dispose of the variable immediately after * calling this function. **/ void shishi_x509cert_default_file_set (Shishi * handle, const char *x509certfile) { free (handle->x509certfile); if (x509certfile) handle->x509certfile = xstrdup (x509certfile); else handle->x509certfile = shishi_x509cert_default_file_guess (handle); } /** * shishi_x509cert_default_file: * @handle: Shishi library handle create by shishi_init(). * * Get filename for default X.509 certificate. * * Return value: Returns the default X.509 client certificate filename * used in the library. The certificate is used during TLS * connections with the KDC to authenticate the client. The string is * not a copy, so don't modify or deallocate it. **/ const char * shishi_x509cert_default_file (Shishi * handle) { if (!handle->x509certfile) shishi_x509cert_default_file_set (handle, NULL); return handle->x509certfile; } /** * shishi_x509key_default_file_guess: * @handle: Shishi library handle create by shishi_init(). * * Guesses the default X.509 client key filename; it is * $HOME/.shishi/client.key. * * Return value: Returns default X.509 client key filename as * a string that has to be deallocated with free() by the caller. **/ char * shishi_x509key_default_file_guess (Shishi * handle) { return shishi_cfg_userdirectory_file (handle, X509KEY_FILE); } /** * shishi_x509key_default_file_set: * @handle: Shishi library handle create by shishi_init(). * @x509keyfile: string with new default x509 client key file name, or * NULL to reset to default. * * Set the default X.509 client key filename used in the library. The * key is used during TLS connections with the KDC to authenticate the * client. The string is copied into the library, so you can dispose * of the variable immediately after calling this function. **/ void shishi_x509key_default_file_set (Shishi * handle, const char *x509keyfile) { free (handle->x509keyfile); if (x509keyfile) handle->x509keyfile = xstrdup (x509keyfile); else handle->x509keyfile = shishi_x509key_default_file_guess (handle); } /** * shishi_x509key_default_file: * @handle: Shishi library handle create by shishi_init(). * * Get filename for default X.509 key. * * Return value: Returns the default X.509 client key filename * used in the library. The key is used during TLS * connections with the KDC to authenticate the client. The string is * not a copy, so don't modify or deallocate it. **/ const char * shishi_x509key_default_file (Shishi * handle) { if (!handle->x509keyfile) shishi_x509key_default_file_set (handle, NULL); return handle->x509keyfile; } shishi-1.0.3/lib/cfg.h0000644000000000000000000000214714273601533011357 00000000000000/* cfg.h --- Configuration file prototypes. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ extern struct Shishi_realminfo *_shishi_realminfo (Shishi * handle, const char *realm); extern struct Shishi_realminfo *_shishi_realminfo_new (Shishi * handle, char *realm); extern const char *_shishi_transport2string (int transport); shishi-1.0.3/lib/tgs.c0000644000000000000000000004212114273601533011404 00000000000000/* tgs.c --- High level client TGS functions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* TODO: make shishi_tgs_realmsname() take real sname pointer array. */ #include "internal.h" struct Shishi_tgs { Shishi *handle; Shishi_asn1 tgsreq; Shishi_tkt *tgtkt; Shishi_ap *ap; Shishi_asn1 tgsrep; Shishi_asn1 krberror; Shishi_tkt *tkt; }; /** * shishi_tgs: * @handle: shishi handle as allocated by shishi_init(). * @tgs: holds pointer to newly allocate Shishi_tgs structure. * * Allocate a new TGS exchange variable. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs (Shishi * handle, Shishi_tgs ** tgs) { Shishi_tgs *ltgs; int res; *tgs = xcalloc (1, sizeof (**tgs)); ltgs = *tgs; ltgs->handle = handle; ltgs->tgsreq = shishi_tgsreq (handle); if (ltgs->tgsreq == NULL) { shishi_error_printf (handle, "Could not create TGS-REQ: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } ltgs->tgsrep = shishi_tgsrep (handle); if (ltgs->tgsreq == NULL) { shishi_error_printf (handle, "Could not create TGS-REP: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } ltgs->krberror = shishi_krberror (handle); if (ltgs->krberror == NULL) { shishi_error_printf (handle, "Could not create KRB-ERROR: %s\n", shishi_error (handle)); return SHISHI_ASN1_ERROR; } res = shishi_ap_nosubkey (handle, <gs->ap); if (res != SHISHI_OK) return res; res = shishi_authenticator_remove_subkey (handle, shishi_ap_authenticator (ltgs->ap)); if (res != SHISHI_OK) return res; res = shishi_tkt (handle, <gs->tkt); if (res != SHISHI_OK) return res; return SHISHI_OK; } /** * shishi_tgs_done: * @tgs: structure that holds information about AS exchange * * Deallocate resources associated with TGS exchange. This should be * called by the application when it no longer need to utilize the TGS * exchange handle. **/ void shishi_tgs_done (Shishi_tgs * tgs) { shishi_asn1_done (tgs->handle, tgs->tgsreq); shishi_asn1_done (tgs->handle, tgs->tgsrep); shishi_asn1_done (tgs->handle, tgs->krberror); shishi_ap_done (tgs->ap); shishi_tkt_done (tgs->tkt); free (tgs); } /** * shishi_tgs_tgtkt: * @tgs: structure that holds information about TGS exchange * * Get Ticket-granting-ticket from TGS exchange. * * Return value: Returns the ticket-granting-ticket used in the TGS * exchange, or NULL if not yet set or an error occured. **/ Shishi_tkt * shishi_tgs_tgtkt (Shishi_tgs * tgs) { return tgs->tgtkt; } /** * shishi_tgs_tgtkt_set: * @tgs: structure that holds information about TGS exchange * @tgtkt: ticket granting ticket to store in TGS. * * Set the Ticket in the TGS exchange. **/ void shishi_tgs_tgtkt_set (Shishi_tgs * tgs, Shishi_tkt * tgtkt) { tgs->tgtkt = tgtkt; } /** * shishi_tgs_ap: * @tgs: structure that holds information about TGS exchange * * Get the AP from TGS exchange. * * Return value: Returns the AP exchange (part of TGS-REQ) from the * TGS exchange, or NULL if not yet set or an error * occured. **/ Shishi_ap * shishi_tgs_ap (Shishi_tgs * tgs) { return tgs->ap; } /** * shishi_tgs_req: * @tgs: structure that holds information about TGS exchange * * Get the TGS-REQ from TGS exchange. * * Return value: Returns the generated TGS-REQ from the TGS exchange, * or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_tgs_req (Shishi_tgs * tgs) { return tgs->tgsreq; } /** * shishi_tgs_req_set: * @tgs: structure that holds information about TGS exchange * @tgsreq: tgsreq to store in TGS. * * Set the TGS-REQ in the TGS exchange. **/ void shishi_tgs_req_set (Shishi_tgs * tgs, Shishi_asn1 tgsreq) { if (tgs->tgsreq) shishi_asn1_done (tgs->handle, tgs->tgsreq); tgs->tgsreq = tgsreq; } /** * shishi_tgs_req_der: * @tgs: structure that holds information about TGS exchange * @out: output array with newly allocated DER encoding of TGS-REQ. * @outlen: length of output array with DER encoding of TGS-REQ. * * DER encode TGS-REQ. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_req_der (Shishi_tgs * tgs, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (tgs->handle, tgs->tgsreq, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_tgs_req_der_set: * @tgs: structure that holds information about TGS exchange * @der: input array with DER encoded AP-REQ. * @derlen: length of input array with DER encoded AP-REQ. * * DER decode TGS-REQ and set it TGS exchange. If decoding fails, the * TGS-REQ in the TGS exchange remains. * * Return value: Returns SHISHI_OK. **/ int shishi_tgs_req_der_set (Shishi_tgs * tgs, char *der, size_t derlen) { Shishi_asn1 tgsreq; tgsreq = shishi_der2asn1_tgsreq (tgs->handle, der, derlen); if (tgsreq == NULL) return SHISHI_ASN1_ERROR; tgs->tgsreq = tgsreq; return SHISHI_OK; } /** * shishi_tgs_req_process: * @tgs: structure that holds information about TGS exchange * * Process new TGS-REQ and set ticket. The key to decrypt the TGS-REQ * is taken from the EncKDCReqPart of the TGS tgticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_req_process (Shishi_tgs * tgs) { Shishi_asn1 apreq; int rc; if (VERBOSE (tgs->handle)) printf ("Processing TGS-REQ...\n"); rc = shishi_kdcreq_get_padata_tgs (tgs->handle, tgs->tgsreq, &apreq); if (rc != SHISHI_OK) return rc; shishi_ap_req_set (tgs->ap, apreq); rc = shishi_ap_req_decode (tgs->ap); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_tgs_req_build: * @tgs: structure that holds information about TGS exchange * * Checksum data in authenticator and add ticket and authenticator to * TGS-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_req_build (Shishi_tgs * tgs) { uint32_t apoptions; int res; if (VERBOSE (tgs->handle)) printf ("Building TGS-REQ...\n"); res = shishi_kdcreq_build (tgs->handle, tgs->tgsreq); if (res != SHISHI_OK) return res; res = shishi_apreq_options (tgs->handle, shishi_ap_req (tgs->ap), &apoptions); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not get AP-REQ AP-Options: %s\n", shishi_strerror (res)); return res; } res = shishi_ap_set_tktoptionsasn1usage (tgs->ap, tgs->tgtkt, apoptions, tgs->tgsreq, "req-body", SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR_CKSUM, SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR); if (res == SHISHI_OK) res = shishi_ap_req_build (tgs->ap); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not make AP-REQ: %s\n", shishi_strerror (res)); return res; } if (VERBOSE (tgs->handle)) printf ("Got AP-REQ...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_apreq_print (tgs->handle, stdout, shishi_ap_req (tgs->ap)); res = shishi_kdcreq_add_padata_tgs (tgs->handle, tgs->tgsreq, shishi_ap_req (tgs->ap)); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not add AP-REQ to TGS: %s\n", shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_tgs_rep: * @tgs: structure that holds information about TGS exchange * * Get TGS-REP from TGS exchange. * * Return value: Returns the received TGS-REP from the TGS exchange, * or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_tgs_rep (Shishi_tgs * tgs) { return tgs->tgsrep; } /** * shishi_tgs_rep_der: * @tgs: structure that holds information about TGS exchange * @out: output array with newly allocated DER encoding of TGS-REP. * @outlen: length of output array with DER encoding of TGS-REP. * * DER encode TGS-REP. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_rep_der (Shishi_tgs * tgs, char **out, size_t *outlen) { int rc; rc = shishi_asn1_to_der (tgs->handle, tgs->tgsrep, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_tgs_rep_process: * @tgs: structure that holds information about TGS exchange * * Process new TGS-REP and set ticket. The key to decrypt the TGS-REP * is taken from the EncKDCRepPart of the TGS tgticket. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_rep_process (Shishi_tgs * tgs) { Shishi_asn1 kdcreppart, ticket; int res; if (VERBOSE (tgs->handle)) printf ("Processing TGS-REQ and TGS-REP...\n"); res = shishi_tgs_process (tgs->handle, tgs->tgsreq, tgs->tgsrep, shishi_ap_authenticator (tgs->ap), shishi_tkt_enckdcreppart (tgs->tgtkt), &kdcreppart); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not process TGS: %s", shishi_strerror (res)); return res; } if (VERBOSE (tgs->handle)) printf ("Got EncKDCRepPart...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_enckdcreppart_print (tgs->handle, stdout, kdcreppart); res = shishi_kdcrep_get_ticket (tgs->handle, tgs->tgsrep, &ticket); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not extract ticket from TGS-REP: %s", shishi_strerror (res)); return res; } if (VERBOSE (tgs->handle)) printf ("Got Ticket...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_ticket_print (tgs->handle, stdout, ticket); /* XXX */ tgs->tkt = shishi_tkt2 (tgs->handle, ticket, kdcreppart, tgs->tgsrep); return SHISHI_OK; } /** * shishi_tgs_rep_build: * @tgs: structure that holds information about TGS exchange * @keyusage: keyusage integer. * @key: user's key, used to encrypt the encrypted part of the TGS-REP. * * Build TGS-REP. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_rep_build (Shishi_tgs * tgs, int keyusage, Shishi_key * key) { int rc; /* XXX there are reasons for having padata in TGS-REP */ rc = shishi_kdcrep_clear_padata (tgs->handle, tgs->tgsrep); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_populate_encticketpart (tgs->handle, shishi_tkt_enckdcreppart (tgs->tkt), shishi_tkt_encticketpart (tgs->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_nonce (tgs->handle, tgs->tgsreq, shishi_tkt_enckdcreppart (tgs->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_add_enc_part (tgs->handle, tgs->tgsrep, key, keyusage, shishi_tkt_enckdcreppart (tgs->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_set_ticket (tgs->handle, tgs->tgsrep, shishi_tkt_ticket (tgs->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_crealm (tgs->handle, tgs->tgsrep, shishi_tkt_encticketpart (tgs->tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdc_copy_cname (tgs->handle, tgs->tgsrep, shishi_tkt_encticketpart (tgs->tkt)); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_tgs_krberror: * @tgs: structure that holds information about TGS exchange * * Get KRB-ERROR from TGS exchange. * * Return value: Returns the received TGS-REP from the TGS exchange, * or NULL if not yet set or an error occured. **/ Shishi_asn1 shishi_tgs_krberror (Shishi_tgs * tgs) { return tgs->krberror; } /** * shishi_tgs_krberror_der: * @tgs: structure that holds information about TGS exchange * @out: output array with newly allocated DER encoding of KRB-ERROR. * @outlen: length of output array with DER encoding of KRB-ERROR. * * DER encode KRB-ERROR. @out is allocated by this function, and it is * the responsibility of caller to deallocate it. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_krberror_der (Shishi_tgs * tgs, char **out, size_t *outlen) { int rc; rc = shishi_krberror_der (tgs->handle, tgs->krberror, out, outlen); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /** * shishi_tgs_krberror_set: * @tgs: structure that holds information about TGS exchange * @krberror: krberror to store in TGS. * * Set the KRB-ERROR in the TGS exchange. **/ void shishi_tgs_krberror_set (Shishi_tgs * tgs, Shishi_asn1 krberror) { if (tgs->krberror) shishi_asn1_done (tgs->handle, tgs->krberror); tgs->krberror = krberror; } /** * shishi_tgs_tkt: * @tgs: structure that holds information about TGS exchange * * Get Ticket from TGS exchange. * * Return value: Returns the newly acquired ticket from the TGS * exchange, or NULL if not yet set or an error occured. **/ Shishi_tkt * shishi_tgs_tkt (Shishi_tgs * tgs) { return tgs->tkt; } /** * shishi_tgs_tkt_set: * @tgs: structure that holds information about TGS exchange * @tkt: ticket to store in TGS. * * Set the Ticket in the TGS exchange. **/ void shishi_tgs_tkt_set (Shishi_tgs * tgs, Shishi_tkt * tkt) { tgs->tkt = tkt; } /** * shishi_tgs_sendrecv_hint: * @tgs: structure that holds information about TGS exchange * @hint: additional parameters that modify connection behaviour, or %NULL. * * Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the * subsequent authentication, usually used to acquire server tickets. * The @hint structure can be used to set, e.g., parameters for TLS * authentication. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_sendrecv_hint (Shishi_tgs * tgs, Shishi_tkts_hint * hint) { int res; if (VERBOSE (tgs->handle)) printf ("Sending TGS-REQ...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_kdcreq_print (tgs->handle, stdout, tgs->tgsreq); res = shishi_kdcreq_sendrecv_hint (tgs->handle, tgs->tgsreq, &tgs->tgsrep, hint); if (res == SHISHI_GOT_KRBERROR) { tgs->krberror = tgs->tgsrep; tgs->tgsrep = NULL; if (VERBOSE (tgs->handle)) printf ("Received KRB-ERROR...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_krberror_print (tgs->handle, stdout, tgs->krberror); } if (res != SHISHI_OK) return res; if (VERBOSE (tgs->handle)) printf ("Received TGS-REP...\n"); if (VERBOSEASN1 (tgs->handle)) shishi_kdcrep_print (tgs->handle, stdout, tgs->tgsrep); return SHISHI_OK; } /** * shishi_tgs_sendrecv: * @tgs: structure that holds information about TGS exchange * * Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the * subsequent authentication, usually used to acquire server tickets. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_sendrecv (Shishi_tgs * tgs) { return shishi_tgs_sendrecv_hint (tgs, NULL); } /** * shishi_tgs_set_server: * @tgs: structure that holds information about TGS exchange * @server: indicates the server to acquire ticket for. * * Set the server in the TGS-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_set_server (Shishi_tgs * tgs, const char *server) { int res; res = shishi_kdcreq_set_server (tgs->handle, tgs->tgsreq, server); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not set server in KDC-REQ: %s\n", shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_tgs_set_realm: * @tgs: structure that holds information about TGS exchange * @realm: indicates the realm to acquire ticket for. * * Set the server in the TGS-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_set_realm (Shishi_tgs * tgs, const char *realm) { int res; res = shishi_kdcreq_set_realm (tgs->handle, tgs->tgsreq, realm); if (res != SHISHI_OK) { shishi_error_printf (tgs->handle, "Could not set realm in KDC-REQ: %s\n", shishi_strerror (res)); return res; } return SHISHI_OK; } /** * shishi_tgs_set_realmserver: * @tgs: structure that holds information about TGS exchange * @realm: indicates the realm to acquire ticket for. * @server: indicates the server to acquire ticket for. * * Set the realm and server in the TGS-REQ. * * Return value: Returns SHISHI_OK iff successful. **/ int shishi_tgs_set_realmserver (Shishi_tgs * tgs, const char *realm, const char *server) { int res; res = shishi_tgs_set_server (tgs, server); if (res != SHISHI_OK) return res; res = shishi_tgs_set_realm (tgs, realm); if (res != SHISHI_OK) return res; return SHISHI_OK; } shishi-1.0.3/lib/diskio.h0000644000000000000000000000402614273601533012100 00000000000000/* diskio.h --- Read and write data structures from disk. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ extern int _shishi_print_armored_data (Shishi * handle, FILE * fh, Shishi_asn1 asn1, const char *asn1type, char *headers); extern int _shishi_save_data (Shishi * handle, FILE * fh, Shishi_asn1 asn1, const char *asn1type); extern int _shishi_authenticator_input (Shishi * handle, FILE * fh, Shishi_asn1 * authenticator, int type); extern int _shishi_apreq_input (Shishi * handle, FILE * fh, Shishi_asn1 * apreq, int type); extern int _shishi_aprep_input (Shishi * handle, FILE * fh, Shishi_asn1 * aprep, int type); extern int _shishi_kdcreq_input (Shishi * handle, FILE * fh, Shishi_asn1 * asreq, int type); extern int _shishi_kdcrep_input (Shishi * handle, FILE * fh, Shishi_asn1 * asrep, int type); extern int _shishi_krberror_input (Shishi * handle, FILE * fh, Shishi_asn1 * krberror, int type); extern int _shishi_encapreppart_input (Shishi * handle, FILE * fh, Shishi_asn1 * encapreppart, int type); extern int _shishi_safe_input (Shishi * handle, FILE * fh, Shishi_asn1 * safe, int type); extern int _shishi_priv_input (Shishi * handle, FILE * fh, Shishi_asn1 * priv, int type); shishi-1.0.3/lib/tktccache.c0000644000000000000000000003625014273601533012546 00000000000000/* ccache.c --- Credential Cache compatibility ticket set handling. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "internal.h" #include "ccache.h" #include "utils.h" /** * shishi_tkts_default_ccache_guess: * @handle: Shishi library handle create by shishi_init(). * * Guesses the default ccache ticket filename; it is the contents of * the environment variable KRB5CCNAME or /tmp/krb5cc_UID where UID is * the user's identity in decimal, as returned by getuid(). * * Return value: Returns default ccache filename as a string that has * to be deallocated with free() by the caller. **/ char * shishi_tkts_default_ccache_guess (Shishi * handle) { char *envfile; envfile = getenv ("KRB5CCNAME"); if (envfile) return xstrdup (envfile); #if HAVE_GETUID return xasprintf ("/tmp/krb5cc_%lu", (unsigned long) getuid ()); #else return xasprintf ("/tmp/krb5cc_0"); #endif } /** * shishi_tkts_default_ccache: * @handle: Shishi library handle create by shishi_init(). * * Get filename of default ccache filename. * * Return value: Returns the default ccache filename used in the * library. The string is not a copy, so don't modify or deallocate * it. **/ const char * shishi_tkts_default_ccache (Shishi * handle) { if (!handle->ccachedefault) { char *p; p = shishi_tkts_default_ccache_guess (handle); shishi_tkts_default_ccache_set (handle, p); free (p); } return handle->ccachedefault; } /** * shishi_tkts_default_ccache_set: * @handle: Shishi library handle create by shishi_init(). * @ccache: string with new default ccache filename, or * NULL to reset to default. * * Set the default ccache filename used in the library. The string is * copied into the library, so you can dispose of the variable * immediately after calling this function. **/ void shishi_tkts_default_ccache_set (Shishi * handle, const char *ccache) { free (handle->ccachedefault); if (ccache) handle->ccachedefault = xstrdup (ccache); else handle->ccachedefault = NULL; } /** * shishi_tkts_add_ccache_mem: * @handle: shishi handle as allocated by shishi_init(). * @data: constant memory buffer with ccache of @len size. * @len: size of memory buffer with ccache data. * @tkts: allocated key set to store tickets in. * * Read tickets from a ccache data structure, and add them to the * ticket set. * * The ccache format is proprietary, and this function support (at * least) the 0x0504 format. See the section The Credential Cache * Binary File Format in the Shishi manual for a description of the * file format. * * Returns: Returns %SHISHI_CCACHE_ERROR if the data does not * represent a valid ccache structure, and %SHISHI_OK on success. **/ int shishi_tkts_add_ccache_mem (Shishi * handle, const char *data, size_t len, Shishi_tkts * tkts) { int rc = SHISHI_OK; struct ccache ccache; if (VERBOSENOISE (handle)) { printf ("ccache len %zu (0x%zx)\n", len, len); _shishi_hexprint (data, len); } rc = ccache_parse (data, len, &ccache); if (rc < 0) return SHISHI_CCACHE_ERROR; if (VERBOSENOISE (handle)) ccache_print (&ccache); while (ccache.credentialslen) { struct ccache_credential cred; Shishi_tkt *tkt; Shishi_asn1 ticket; size_t n; rc = ccache_parse_credential (ccache.credentials, ccache.credentialslen, &cred, &n); if (rc < 0) return SHISHI_CCACHE_ERROR; if (VERBOSENOISE (handle)) ccache_print_credential (&cred); /* Sanity check credential first. */ if (shishi_cipher_keylen (cred.key.keytype) != cred.key.keylen) continue; ticket = shishi_der2asn1_ticket (handle, cred.ticket.data, cred.ticket.length); if (!ticket) continue; /* Let's create a new ticket... */ rc = shishi_tkt (handle, &tkt); if (rc != SHISHI_OK) return rc; shishi_tkt_ticket_set (tkt, ticket); { const char *cname[CCACHE_MAX_COMPONENTS + 1]; size_t i; for (i = 0; i < cred.client.num_components && i < CCACHE_MAX_COMPONENTS; i++) cname[i] = cred.client.components[i].data; cname[i] = NULL; rc = shishi_kdcrep_crealm_set (handle, shishi_tkt_kdcrep (tkt), cred.client.realm.data); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_cname_set (handle, shishi_tkt_kdcrep (tkt), cred.client.name_type, cname); if (rc != SHISHI_OK) return rc; } { char *sname[CCACHE_MAX_COMPONENTS + 1]; size_t i; for (i = 0; i < cred.server.num_components && i < CCACHE_MAX_COMPONENTS; i++) sname[i] = cred.server.components[i].data; sname[i] = NULL; rc = shishi_enckdcreppart_srealm_set (handle, shishi_tkt_enckdcreppart (tkt), cred.server.realm.data); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_sname_set (handle, shishi_tkt_enckdcreppart (tkt), cred.server.name_type, sname); if (rc != SHISHI_OK) return rc; } rc = shishi_tkt_flags_set (tkt, cred.tktflags); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_authtime_set (handle, shishi_tkt_enckdcreppart (tkt), shishi_generalize_time (handle, cred.authtime)); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_starttime_set (handle, shishi_tkt_enckdcreppart (tkt), cred.starttime ? shishi_generalize_time (handle, cred.starttime) : NULL); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_endtime_set (handle, shishi_tkt_enckdcreppart (tkt), shishi_generalize_time (handle, cred.endtime)); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_renew_till_set (handle, shishi_tkt_enckdcreppart (tkt), cred.renew_till ? shishi_generalize_time (handle, cred.renew_till) : NULL); if (rc != SHISHI_OK) return rc; { uint32_t nonce = 0; rc = shishi_enckdcreppart_nonce_set (handle, shishi_tkt_enckdcreppart (tkt), nonce); if (rc != SHISHI_OK) return rc; } rc = shishi_kdcrep_set_ticket (handle, shishi_tkt_kdcrep (tkt), shishi_tkt_ticket (tkt)); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_set_enc_part (handle, shishi_tkt_kdcrep (tkt), 0, 0, "", 0); if (rc != SHISHI_OK) return rc; /* Add key. */ { Shishi_key *key; rc = shishi_key (handle, &key); if (rc != SHISHI_OK) return rc; shishi_key_type_set (key, cred.key.keytype); shishi_key_value_set (key, cred.key.keyvalue); rc = shishi_tkt_key_set (tkt, key); if (rc != SHISHI_OK) return rc; shishi_key_done (key); } /* Add new ticket to the set... */ rc = shishi_tkts_add (tkts, tkt); if (rc != SHISHI_OK) return rc; ccache.credentials += n; ccache.credentialslen -= n; } #if 0 { char *data; size_t len; rc = shishi_tkts_to_ccache_mem (handle, tkts, &data, &len); printf ("gaah res %d\n", rc); } #endif return rc; } /** * shishi_tkts_add_ccache_file: * @handle: shishi handle as allocated by shishi_init(). * @filename: name of file to read. * @tkts: allocated ticket set to store tickets in. * * Read tickets from a ccache data structure, and add them to the * ticket set. * * The ccache format is proprietary, and this function support (at * least) the 0x0504 format. See the section The Credential Cache * Binary File Format in the Shishi manual for a description of the * file format. * * Returns: Returns %SHISHI_IO_ERROR if the file cannot be read, * %SHISHI_CCACHE_ERROR if the data cannot be parsed as a valid ccache * structure, and %SHISHI_OK on success. **/ int shishi_tkts_add_ccache_file (Shishi * handle, const char *filename, Shishi_tkts * tkts) { size_t len; char *ccache = read_file (filename, RF_BINARY, &len); int rc; if (!ccache) return SHISHI_IO_ERROR; rc = shishi_tkts_add_ccache_mem (handle, ccache, len, tkts); free (ccache); return rc; } /** * shishi_tkts_from_ccache_mem: * @handle: shishi handle as allocated by shishi_init(). * @data: constant memory buffer with ccache of @len size. * @len: size of memory buffer with ccache data. * @outtkts: pointer to ticket set that will be allocated and populated, * must be deallocated by caller on succes. * * Read tickets from a ccache data structure, and add them to the * ticket set. * * The ccache format is proprietary, and this function support (at * least) the 0x0504 format. See the section The Credential Cache * Binary File Format in the Shishi manual for a description of the * file format. * * Returns: Returns %SHISHI_CCACHE_ERROR if the data does not * represent a valid ccache structure, and %SHISHI_OK on success. **/ int shishi_tkts_from_ccache_mem (Shishi * handle, const char *data, size_t len, Shishi_tkts ** outtkts) { int rc; rc = shishi_tkts (handle, outtkts); if (rc != SHISHI_OK) return rc; rc = shishi_tkts_add_ccache_mem (handle, data, len, *outtkts); if (rc != SHISHI_OK) { shishi_tkts_done (outtkts); return rc; } return SHISHI_OK; } /** * shishi_tkts_from_ccache_file: * @handle: shishi handle as allocated by shishi_init(). * @filename: name of file to read. * @outtkts: pointer to ticket set that will be allocated and populated, * must be deallocated by caller on succes. * * Read tickets from a ccache data structure, and add them to the * ticket set. * * The ccache format is proprietary, and this function support (at * least) the 0x0504 format. See the section The Credential Cache * Binary File Format in the Shishi manual for a description of the * file format. * * Returns: Returns %SHISHI_IO_ERROR if the file cannot be read, * %SHISHI_CCACHE_ERROR if the data cannot be parsed as a valid ccache * structure, and %SHISHI_OK on success. **/ int shishi_tkts_from_ccache_file (Shishi * handle, const char *filename, Shishi_tkts ** outtkts) { int rc; rc = shishi_tkts (handle, outtkts); if (rc != SHISHI_OK) return rc; rc = shishi_tkts_add_ccache_file (handle, filename, *outtkts); if (rc != SHISHI_OK) { shishi_tkts_done (outtkts); return rc; } return SHISHI_OK; } extern int shishi_tkt_to_ccache_mem (Shishi * handle, Shishi_tkt * tkt, char **data, size_t *len); int shishi_tkt_to_ccache_mem (Shishi * handle, Shishi_tkt * tkt, char **data, size_t *len) { #if 0 struct ccache_credential cred; char tmp[1024]; size_t i; int rc; memset (&cred, 0, sizeof (cred)); rc = shishi_asn1_to_der (handle, shishi_tkt_ticket (tkt), &cred.ticket.data, &cred.ticket.length); if (rc != SHISHI_OK) return rc; /* Sanity check credential first. */ if (shishi_key_length (shishi_tkt_key (tkt)) > CCACHE_MAX_KEYLEN) return SHISHI_CCACHE_ERROR; rc = shishi_asn1_read (handle, shishi_tkt_kdcrep (tkt), "crealm", &cred.client.realm.data, &cred.client.realm.length); if (rc != SHISHI_OK) return rc; rc = shishi_asn1_read (handle, shishi_tkt_enckdcreppart (tkt), "srealm", &cred.server.realm.data, &cred.server.realm.length); if (rc != SHISHI_OK) return rc; return SHISHI_OK; # if 0 { char *cname[CCACHE_MAX_COMPONENTS + 1]; size_t i; for (i = 0; i < cred.client.num_components && i < CCACHE_MAX_COMPONENTS; i++) cname[i] = cred.client.components[i].data; cname[i] = NULL; rc = shishi_kdcrep_crealm_set (handle, shishi_tkt_kdcrep (tkt), cred.client.realm.data); if (rc != SHISHI_OK) return rc; rc = shishi_kdcrep_cname_set (handle, shishi_tkt_kdcrep (tkt), cred.client.name_type, cname); if (rc != SHISHI_OK) return rc; } { char *sname[CCACHE_MAX_COMPONENTS + 1]; size_t i; for (i = 0; i < cred.server.num_components && i < CCACHE_MAX_COMPONENTS; i++) sname[i] = cred.server.components[i].data; sname[i] = NULL; rc = shishi_enckdcreppart_srealm_set (handle, shishi_tkt_enckdcreppart (tkt), cred.server.realm.data); if (rc != SHISHI_OK) return rc; rc = shishi_enckdcreppart_sname_set (handle, shishi_tkt_enckdcreppart (tkt), cred.server.name_type, sname); if (rc != SHISHI_OK) return rc; } # endif rc = shishi_tkt_flags (tkt, &cred.tktflags); if (rc != SHISHI_OK) return rc; { time_t t; rc = shishi_ctime (handle, shishi_tkt_enckdcreppart (tkt), "authtime", &t); if (rc != SHISHI_OK) return rc; cred.authtime = t; } { time_t t; rc = shishi_ctime (handle, shishi_tkt_enckdcreppart (tkt), "starttime", &t); if (rc == SHISHI_ASN1_NO_ELEMENT) cred.starttime = 0; else if (rc != SHISHI_OK) return rc; cred.starttime = t; } { time_t t; rc = shishi_ctime (handle, shishi_tkt_enckdcreppart (tkt), "endtime", &t); if (rc != SHISHI_OK) return rc; cred.endtime = t; } { time_t t; rc = shishi_ctime (handle, shishi_tkt_enckdcreppart (tkt), "renew-till", &t); if (rc == SHISHI_ASN1_NO_ELEMENT) cred.renew_till = 0; else if (rc != SHISHI_OK) return rc; cred.renew_till = t; } cred.key.keylen = shishi_key_length (shishi_tkt_key (tkt)); cred.key.keytype = shishi_key_type (shishi_tkt_key (tkt)); memcpy (cred.key.storage, shishi_key_value (shishi_tkt_key (tkt)), shishi_key_length (shishi_tkt_key (tkt))); cred.key.keyvalue = &cred.key.storage[0]; i = 1024; rc = ccache_pack_credential (&cred, tmp, &i); printf ("rc %d len %d\n", rc, i); { struct ccache_credential foo; size_t n; rc = ccache_parse_credential (tmp, i, &foo, &n); if (rc < 0) return SHISHI_CCACHE_ERROR; printf ("packed:"); ccache_print_credential (&foo); } _shishi_escapeprint (tmp, i); #endif return SHISHI_CCACHE_ERROR; } extern int shishi_tkts_to_ccache_mem (Shishi * handle, Shishi_tkts * tkts, char **data, size_t *len); int shishi_tkts_to_ccache_mem (Shishi * handle, Shishi_tkts * tkts, char **data, size_t *len) { return SHISHI_CCACHE_ERROR; #if 0 struct ccache info; int rc = SHISHI_OK; size_t i; for (i = 0; i < shishi_tkts_size (tkts); i++) { Shishi_tkt *tkt = shishi_tkts_nth (tkts, i); struct ccache_credential cred; printf ("ccache %d\n", i); if (!tkt) return SHISHI_INVALID_TKTS; rc = shishi_tkt_to_ccache_mem (handle, tkt, data, len); printf ("f %d\n", rc); } memset (&info, 0, sizeof (info)); rc = ccache_pack (&info, *data, *len); printf ("pack res %d len %d\n", rc, *len); return rc; #endif } shishi-1.0.3/GNUmakefile0000644000000000000000000001074114273615074011757 00000000000000# Having a separate GNUmakefile lets me 'include' the dynamically # generated rules created via cfg.mk (package-local configuration) # as well as maint.mk (generic maintainer rules). # This makefile is used only if you run GNU Make. # It is necessary if you want to build targets usually of interest # only to the maintainer. # Copyright (C) 2001, 2003, 2006-2022 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # If the user runs GNU make but has not yet run ./configure, # give them a diagnostic. _gl-Makefile := $(wildcard [M]akefile) ifneq ($(_gl-Makefile),) # Make tar archive easier to reproduce. export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner # Allow the user to add to this in the Makefile. ALL_RECURSIVE_TARGETS = include Makefile # Some projects override e.g., _autoreconf here. -include $(srcdir)/cfg.mk # Allow cfg.mk to override these. _build-aux ?= build-aux _autoreconf ?= autoreconf -v include $(srcdir)/maint.mk # Ensure that $(VERSION) is up to date for dist-related targets, but not # for others: rerunning autoreconf and recompiling everything isn't cheap. _have-git-version-gen := \ $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes) ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL)) _is-dist-target ?= $(filter-out %clean, \ $(filter maintainer-% dist% alpha beta stable,$(MAKECMDGOALS))) _is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS))) ifneq (,$(_is-dist-target)$(_is-install-target)) _curr-ver := $(shell cd $(srcdir) \ && $(_build-aux)/git-version-gen \ .tarball-version \ $(git-version-gen-tag-sed-script)) ifneq ($(_curr-ver),$(VERSION)) ifeq ($(_curr-ver),UNKNOWN) $(info WARNING: unable to verify if $(VERSION) is the correct version) else ifneq (,$(_is-install-target)) # GNU Coding Standards state that 'make install' should not cause # recompilation after 'make all'. But as long as changing the version # string alters config.h, the cost of having 'make all' always have an # up-to-date version is prohibitive. So, as a compromise, we merely # warn when installing a version string that is out of date; the user # should run 'autoreconf' (or something like 'make distcheck') to # fix the version, 'make all' to propagate it, then 'make install'. $(info WARNING: version string $(VERSION) is out of date;) $(info run '$(MAKE) _version' to fix it) else $(info INFO: running autoreconf for new version string: $(_curr-ver)) GNUmakefile: _version touch GNUmakefile endif endif endif endif endif .PHONY: _version _version: cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf) $(MAKE) $(AM_MAKEFLAGS) Makefile else .DEFAULT_GOAL := abort-due-to-no-makefile srcdir = . # The package can override .DEFAULT_GOAL to run actions like autoreconf. -include ./cfg.mk # Allow cfg.mk to override these. _build-aux ?= build-aux _autoreconf ?= autoreconf -v include ./maint.mk ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile) $(MAKECMDGOALS): abort-due-to-no-makefile endif abort-due-to-no-makefile: @echo There seems to be no Makefile in this directory. 1>&2 @echo "You must run ./configure before running '$(MAKE)'." 1>&2 @exit 1 endif # Tell version 3.79 and up of GNU make to not build goals in this # directory in parallel, in case someone tries to build multiple # targets, and one of them can cause a recursive target to be invoked. # Only set this if Automake doesn't provide it. AM_RECURSIVE_TARGETS ?= $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) \ dist distcheck tags ctags ALL_RECURSIVE_TARGETS += $(AM_RECURSIVE_TARGETS) ifneq ($(word 2, $(MAKECMDGOALS)), ) ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), ) .NOTPARALLEL: endif endif shishi-1.0.3/shishi.conf.in0000644000000000000000000001257414273600463012452 00000000000000# System configuration file for Shishi @VERSION@ # Copyright 2002-2022 Simon Josefsson # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Unless you you specify which system configuration file to use (with the # commandline option "--system-configuration-file filename"), Shishi uses the # file @sysconfdir@/shishi.conf by default. # # An option file can contain all long options which are # available in Shishi. If the first non white space character of # a line is a '#', this line is ignored. Empty lines are also # ignored. # # See the manual for a list of options. # Read MIT or Heimdal configuration file for the following parameters: # default-realm # realm-kdc # server-realm # kdc-timeout # kdc-retries # You can override these values by specifying alternate values below. # Not implemented yet. #read-krb5conf=/etc/krb5.conf # Specify the default realm, by default the hostname of the host is used. #default-realm JOSEFSSON.ORG # Specify the default principal, by default the login username is used. #default-principal jas # Specify which encryption types client asks server to respond in # during AS/TGS exchanges. List valid encryption types, in preference # order. Supported algorithms include aes256-cts-hmac-sha1-96, # aes128-cts-hmac-sha1-96, des3-cbc-sha1-kd, des-cbc-md5, des-cbc-md4, # des-cbc-crc and null. This option also indicates which encryption # types are accepted by the client when receiving the response. Note # that the preference order is not cryptographically protected, so a # man in the middle can modify the order without being detected. # Thus, only specify encryption types you trust completely here. The # default only includes aes256-cts-hmac-sha1-96, as suggested by # RFC1510bis. #client-kdc-etypes=aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 # Enable verbose library messages. #verbose #verbose-asn1 #verbose-noise #verbose-crypto #verbose-crypto-noise # Specify KDC addresses for realms. # Value is REALM,KDCADDRESS[/TRANSPORT][,KDCADDRESS[/TRANSPORT]...] # KDCADDRESS is the hostname or IP address of KDC. # Optional TRANSPORT is "udp" for UDP, "tcp" for TCP, and "tls" for TLS # connections. By default UDP is tried first, and TCP used as a # fallback if the KRB_ERR_RESPONSE_TOO_BIG error is received. If not # specified, Shishi tries to locate the KDC using SRV RRs, which is # recommended. This option should normally only be used during # experiments, to access badly maintained realms, or to make sure # you are not vulnerable to DNS redirection attacks. #realm-kdc=JOSEFSSON.ORG,ristretto.josefsson.org # Specify realm for servers. # Value is REALM,SERVERREGEXP[,SERVERREGEXP...] # SERVERREGEXP is a pattern used to establish membership in the # given realm. The pattern is either the exact name of a server, # or a trailing domain part expected in a qualified server name, # whenever the pattern commences with a period. The first match # found will be used in library calls. #server-realm=JOSEFSSON.ORG,.josefsson.org # How long shishi waits for a response from a KDC before continuing # to next KDC for realm. The default is 5 seconds. #kdc-timeout=5 # How many times shishi sends a request to a KDC before giving up. # The default is 3 times. #kdc-retries=3 # How username and passwords entered from the terminal, or taken # from the command line, are processed. # "none": no processing is used. # "stringprep": convert from locale charset to UTF-8 and process using # experimental RFC 1510 stringprep profile. # It can also be a string indicating a character set supported by # iconv() via libstringprep, in which case data is converted from # locale charset into the indicated character set. E.g., UTF-8, # ISO-8859-1, KOI-8, EBCDIC-IS-FRISS are supported on GNU systems. # On some systems you can use "locale -m" to list available character # sets. By default, the "none" setting is used which is consistent # with RFC 1510 that is silent on the issue. In practice, however, # converting to UTF-8 improves interoperability. stringprocess=UTF-8 # Specify default ticket life time. # The string can be in almost any common format. It can contain month # names, time zones, `am' and `pm', `yesterday', `ago', `next', etc. # Refer to the "Date input formats" in the GNU CoreUtils package for # entire story. As an extra feature, if the resulting string you # specify has expired within the last 24 hours, an extra day is added # to it. This allows you to specify "17:00" to always mean the next # 17:00, even if your system clock happens to be 17:30. # The default is 8 hours. # Examples: #ticket-life=8 hours #ticket-life=1 day #ticket-life=17:00 # Specify how long a renewable ticket should remain renewable. # See ticket-life for the syntax. The extra feature that handles # negative values within the last 2 hours is not active here. # The default is 7 days. # Examples: #renew-life=1 week #renew-life=friday 17:00 #renew-life=sunday # Setup libgcrypt to use quicker entropy generation. If you want to # use /dev/random instead of /dev/urandom, uncomment this. quick-random # System configuration file ends here shishi-1.0.3/AUTHORS0000644000000000000000000007435314273600463010762 00000000000000Shishi AUTHORS -- Information about the authors. Copyright (C) 2002-2022 Simon Josefsson See the end for copying conditions. Simon Josefsson Designed and implemented Shishi. Nicolas Pouvesle Authorization system, crypto bugfixes, error handling, and more. -----BEGIN PGP PUBLIC KEY BLOCK----- URL: http://josefsson.org/key.txt Comment: This 0xB565716F key is used to sign releases of Shishi. mKsEPNUHKwEFALqJSBHn6Qk5ex138kwymxA3idCFoTi5Q6mVooEVVaYVfeDG+5uV T5rhTFDfDcT9SO0eIlfKOraSRnVEHyDDH2PAgJFxyneFELcmLUQ66D+m8z+ziGro 6bcDSBBDMRkHIX6/kH/vnevjqivIld+j8WTcVX+SArcKyzgQ58uMTrfQdLqzh6D9 sE/838+ZPZkabmKKWMVWccoaUbWGYOcNwO0ABim0JVNpbW9uIEpvc2Vmc3NvbiA8 c2ltb25Aam9zZWZzc29uLm9yZz6I+wQTAQIARQIbAwQLBwMCAxUCAwMWAgECHgEC F4AiGGRuczpzaW1vbi5qb3NlZnNzb24ub3JnP3R5cGU9Q0VSVAUCSaEuAAUJDq1a TgAKCRDtoh6UtWVxb4pUBP9f7+9yeYZCJTvILOWlsYIvl7J2P0em2qYn3NbDUS1y q+BUO8udTYNWwyxX9zGT5obhX9bhcWgms/UbGMsvlZcOT+e438P0t1q5q8u+FOgZ tfkgZvyacCFvT4Fnd00B+RaaGZ2atnodvhN8qpzHIf8GVrhzULEtdA55BRw+x5f6 ORdSD14IFWirQ4WWKaXTURx5LIRxs6twYJawkumU6m4KiEYEExECAAYFAj1Y8sIA CgkQV5Mp08AbKiJmNwCgkgjjuS5TcZq4rVBWNYu1VwQlJWYAoJZf+pBNBvzT9xOg Hcs1cAMwT4FHiEwEExECAAwFAj1esHUFgwFXijYACgkQvLvElXGKklZXlwCfTWSl L2/3q5Od3zBVMKVHgpTo4asAnAtw7vVEIwp9pPuy1oKjTB/obqltiEYEExECAAYF AkEAyoIACgkQntdYP8FOsoK0XQCfRN1QBVk7/eu4YbFQBqH463dcHx4AoMp2QurM RXFDImswJ1Wi9K65dq66iEYEExECAAYFAkD/P4YACgkQlv+ZxCXA7Au9KACfYKMn MPmlbZDi5/Le4mcLCUlQ+SsAn2qOQ14l/ellraqWXbvacCJkOyNpiEwEEhECAAwF AkDgVz0FgwCTtOwACgkQyIHdR0rnq0csrwCgtL27/ndpjew28bGVYU9tBmIg2GUA oKFFKKHvJB2pVjRkRL4DjohSdIrkiEYEExECAAYFAkJJAYsACgkQj8NyXz1o1joW fwCgtb8mtlI8rg52vT5DRU+Ct3NuDfEAoL7IX823ezbe7HVegheirf3q7zmKiKIE EAECAAwFAkJG+cEFgwDmsQ4ACgkQv9buWFf3fwmuCwQAtAopBWKTnll1t4lFnR+C mvXdqui6g/MhMVjGlnGaxzKfdlXIDT3i6VEMQk639rCLUxNB5YiQZZm7aABg1dwt f10mFQUkm9dt4d852cu6ytmljXLJ4NIQFrhZQUrxvh8s8j41oN/hcwyLaX+FLI0G 6Jehz0m0nPlEQf0sJ/4oCuqITAQTEQIADAUCQklECgWDABPOSgAKCRBmvnH/Z0ho g9kYAJ0QKz8Gt/kc7Q9Y/Ahh/wZO6vaQ9QCggcgpRYoJ6g1QXYWdTO/Hxve4Lu+I TAQQEQIADAUCQk2CtQWDAOAoGgAKCRA7jqQfgvYSQDh8AJ43bDTlK1p/aLXxJ2/1 pFrHWFvncACgvVli4V9P6pVhP9p+H3APtQ+URVSJASIEEwECAAwFAkJhOZ0FgwDM cTIACgkQC3gy83PWLUFxowf/YLAopAmpU94kKSC4ECFsLXDivJ4LCOxgqZ0u7Fgi QgwWK1miJJnW9gME5vE/jMHlsjGwUKJDC3SfbgjOJj31ivrGIh4od8+zU0bwlwoJ ppDF/5cbzBheUiCsz+BVBZs8ii4OahnoELUzXbyVZITkMztmn/2+7DYXqqf1tCTy wIR/hQzFp6W7GNT/I73Ksz/cKop4jzxE5whkl+5NMBk9VYhfa2X49/S65nwXg4ii BPQN0UrhN0ZvrF+uKX6oVlOX+30CrPyT8FkcRk1AOhUpqblk2M2DblOebgxfF1ZV jXNNN/0fZhy4iTbYSggndO5PIybKMkMogVtO07F/8lvtC4hMBBMRAgAMBQJC2LCN BYMAVPpCAAoJEBhZ0B9ne6Hs7fEAn145gLDePrbxrfwN2dG5+IuvpvtYAJ4oRmRy hxwpwahGE+5281z2VTrQ9YhMBBMRAgAMBQJC2LCxBYMAVPoeAAoJEIHC9+viE7aS 7sAAnRYuXokAy66xi04YD1ODtssYFw7nAJ4lqshFVn7NR5yznu0tioYLFwyc54hM BBMRAgAMBQJC2LDRBYMAVPn+AAoJEGtw7Nldw/Rz2iEAoJFrzoYjkR5ANZYbeX/o zQecQCmAAJwNCoPySmaxrwO6BiUd11bO80bPxYkCIgQTAQIADAUCQtiw8QWDAFT5 3gAKCRCq4+bOZqFEaF90D/9xV8ua/ezhWOu5ADgHE1yeWMWQsecIx9TA5QVQg8pp jA3E2REe/lJbCweVhwfvSmuvuymRQw71cIdmqF1dz9R8mb62N1r07DcPxibhtHi4 poENxIHqvEbtOR17Y6Ql4DW4PjK1ut9y2y58HK6XTiqCtbg43jEcbXk1r9qLJl2L gopYJQ1KJCwfn+DCVadRA2FgVclMGUGIdiiTwp12+E/70oYoMzLwm+7MUgbJUpRL ytsc5frhT91iX2lPoeylAHAQ0681WiawvexlqtAPto9Gjbtnw32oSOqIJcbbMhN8 G87pkvBhk5wXfVM7kyutBFhIHcQFGeuGkZpgeXt40NcUJffn+KOfeXzgdQwmwNlo 9K0arxNpIukgugvVeNtsKj1gtW7IkYcLmvlDyShz/cytguNEU+1W0ZeG73Tjphs8 mCSlCKVcNWcy2l7z/DvB3VPibac525/Sw1ZIq7DShRHHv8x02/658LEW7gSvvZ4j 3yuZSNgL2lgPzaYoQo+8ysHK9dqViVBXAHIwVZTmXptb5zxQcHtFUnR51IDSAfBG d7gjU5NJNfKKngLjDJy56nmJGMw/+13F5XFcjGPC9t6ZKoQud712K8TRIczWgGMn gkahyTl4KIwPxVzWnUN0IkcsO/5yO3JudWzzYB6r1QomCSAAA+uirstJwVtBWsCA 54hGBBARAgAGBQJC8krrAAoJEG74r8KGV0rKoI4An0CQA/3wPCxskfqLhvN69ViN c9GhAJwMR5Nl4q7Y4c5j9BOG+9Yxaom2OYhMBBMRAgAMBQJC8cBwBYMAO+pfAAoJ ECmqKFIzPnwjCzsAmgIwd1uJC2Ka3bIgTCJukFjCcdWRAJ47P2tLKEcvatuPnnPT yWYuXGTBqIhGBBARAgAGBQJD+NOYAAoJEOFd2FexXDfRRVoAnj+kNh2yJiIAI9JE Vccgdv8cdElgAJ9jZHFa4KIdIsdGQZ5G4qS0YkHwKojYBBMBAgAiAhsDBAsHAwID FQIDAxYCAQIeAQIXgAUCPr1HRAUJAtWOGQAKCRDtoh6UtWVxb3F2BP9Whe+ArZn6 WlbpHF+37Rqr+KmXL2fLI0b+phneaieRvACsOmPD3jDpvxz/xVf8s49SJ2+a23Ia iCA8Boyws9sBxn5N+yWhdYYjfDbH3JUOQz7BKN/9o8EAYuU8pmQtEN0q4+QiNsU0 a8qLAV3qmEOwLfkB4z4H+aDZxe/p7vIYP4QmzTn3ZQ0mYR5mxpc52pF82KVyNWWJ vmcirPwKSckEiNgEEwECACICGwMECwcDAgMVAgMDFgIBAh4BAheABQI/pCtUBQkD vHImAAoJEO2iHpS1ZXFvPREE/j3fX+cLxCCZNTjMhThGFujiT7ty4x1jVc91J6QO A+Jp+78NIIeyg3JTeR3WIv7/WFNzLKJXJEEcga+0ViPjoLfvGsHMAnwXqPYAxu1c DY4jId0bCYgoVlnfF9gwOWxebtotLpCiuXGL/168zEAXWJpPg6r2MfPhAKUJ9G8q 52OOWJW3cObxoZ2gyXjuWOFtygZ1vUAqP/8UGeZNdajHD5uI2AQTAQIAIgIbAwQL BwMCAxUCAwMWAgECHgECF4AFAkCGvikFCQSfBP4ACgkQ7aIelLVlcW9oqwT/a2nW kFFy1q16WURE8vp+Tqu6i4r5mTdyHjbhQeZh5Pub5DEJiFuWXxE73JVrnNozacQb Vbsnn54B4Xv6tuEDMxaTXSjreDY6D08urM8A0gnUHCAOwxtmepm9wxk/l3WAXWwz QoQaqZ2PSPFGW4Epk8+JwWKoLv1O2i9NbycGEccF9rr6I12319Vzk+P4P3FOgCwa dAQHSGS3Y6hlLm/RGIjYBBMBAgAiAhsDBAsHAwIDFQIDAxYCAQIeAQIXgAUCQW/E VgUJBYgLKQAKCRDtoh6UtWVxb8gUBP9Oiapzi+7qCcpj8Yy55jQvgpXkhe9g5DuT lRiHYjP5vTvXJNF7pDOOPj1pSUxumC3viv/pxUaWKp3tSOjsT0ZVgy4ah6rUdjyy bLAOAiPmAP3ryStzURF5/RnQbbzrSGZJRfeQIxY2871hWg241/wslRtNpsxYSPCI PHMVB4SSFYzzbKRgUU7SXsVQYBAlRU644UE+dB+b17slv1xvagOUiNgEEwECACIF Aj0lzz0CGwMFCQHhM4AECwcDAgMVAgMDFgIBAh4BAheAAAoJEO2iHpS1ZXFvt3ME /ijwFJCSNoY1AfCEm3AX6vRKUbjiy0MdemsqajXF6awcbIaeCwk3wVr9JOs1usu2 /AQQDvz0sf/hEv6c3sMTYspD6+QzrRMUVbLm0fp+pRZKyaW1tO+/JIoOl8qsOwod kXPQ7CYFvSZhhkxdUwVOa6UtL6kOdCjQAy7DDQTzdcC/GxHQNVUNF5KcBWC7LMN6 iAt0dAFEMaQz4t37CHq+DCyI+wQTAQIARQIbAwQLBwMCAxUCAwMWAgECHgECF4Ai GGRuczpzaW1vbi5qb3NlZnNzb24ub3JnP3R5cGU9Q0VSVAUCQkBc0AUJBlijpAAK CRDtoh6UtWVxb9EIBP4pk/ztQF+XV5L4krXEmbjAsGb9C+I+4OoRUY/mWDvNAjGp pkhFD+8Q3oQvg+1dcPsJ5rQHSXgA2w1bOsTknK9DamyY35LHd9T0ZSllXOUX9q3Q eKiDBYc2KB35ZtxKNIA4Lt5qDgYbSgtlERxDY94BCSy4YApdwATei3O32t5IoR+B roeIr+w+zn9mVulkn3pRXByYDX/scxcTtWwRL+UNiPsEEwECAEUCGwMECwcDAgMV AgMDFgIBAh4BAheAIhhkbnM6c2ltb24uam9zZWZzc29uLm9yZz90eXBlPUNFUlQF AkMVrNEFCQcvRSYACgkQ7aIelLVlcW+ahgUAnWORH5p6Cdk/zhen4sUwwnzsFyAO Z7vaVPrQPq58Czl2FymLm5kJgsGXH8b6KLxVMo8hjTZnsm+zO6XTLXsnnK7nXk70 gBJ0AAM0XGlG53qDvvQmq3RkfFMHuSmxL+zL8pXTmnywIlEpgDHPVKbPKF3c508H FEPKFnDjuyRwPgq3q2mhC/qYYBRvw9hjjeRCqDTdC5wHuWLzs5MCLeG+3YhGBBAR AgAGBQJEc4b8AAoJEAixI47drUe278gAn15puEaeLjlpaTndlvxT+LAH/951AJ9b 0Hlo7Py6F9c1liLsMNWNDnyvZ4j7BBMBAgBFAhsDBAsHAwIDFQIDAxYCAQIeAQIX gCIYZG5zOnNpbW9uLmpvc2Vmc3Nvbi5vcmc/dHlwZT1DRVJUBQJD8ykBBQkIC2/U AAoJEO2iHpS1ZXFvrF0FAJLVqSWQ2fYNGCvBH4xRS4n2LruzdubmzNuCIZrc75M+ RfTvYeHwCNDY8H+PggYuXMT8armHvFvyL7jln864M9LTX4TwROrqKlkNgOkfxdSg Oz4QE9RHxxooF1GMl1yhxCoumixYE5w0z0LGYRKy/Xzd3+VMcUaFXvEqY6Q+cnQo qChCvKRmsIFhF4b4SAqzRePdx6U3PBpC4FbIlkQkpbaIRgQQEQIABgUCRYwLkgAK CRApqihSMz58I53iAJ47ZGEOrZrMqV6WKmfKa8+5907zeQCeI9LFETr1SK3IHx/7 S7RlQhoqAzeI+wQTAQIARQIbAwQLBwMCAxUCAwMWAgECHgECF4AiGGRuczpzaW1v bi5qb3NlZnNzb24ub3JnP3R5cGU9Q0VSVAUCRObocwUJCP8vSAAKCRDtoh6UtWVx b9fhBQCRE0dBfP855Vv2fPCzIxnu1I0GM9BjmAC4uMNdW6o7I4yQMXNYpP8RdxDz PTon1JYQZqQW77EdqtwjFeguScudF8+85I2FtKDmzl0NNubmX6ckxdCbuUmOk2Vu H0IQ8O0f1htk0h4dQB97YA8zu9AtqyASkdCDbRC7RgoaeUaV7N7v8RM3KpEJm6pc eQT1DLqOQIFAp/cDa76xXK2Xrd4IiGsEEBECACsFAkXhdvUFgwKHjGMeGmh0dHA6 Ly93d3cuY2FjZXJ0Lm9yZy9jcHMucGhwAAoJENK7DQFl0P1YbgMAnj34VvAwJhWn Z79fbgSY9O7CIBJFAKCJEs0DbASutepLJhiysH3J61b5D4hGBBARAgAGBQJF4sLA AAoJEKrPs4YhG27v90UAoKBHaY3RXOkwk5YL58jSYoOWltJ/AKDTwdKSURBZ3RTe GkriWGZRy2sfd4kCHAQQAQIABgUCReGU9AAKCRAmSeYoxdNNBWHAD/4+/J4V7cM1 dMrr6rpaggfgRa7d121f4n+KVn69fmxBr6vMkGP+8Aor4xMGvkL6HYJvOMRK752H wXij7TM0HdGqU0S6cisOXiS/LOPQOayz6HuvliIhJeyDF4wfI358ZH8gVTKTn+1l tqWmggd8KVbU2pEvNte+lD0VIxK0wrUT0nFEYoJsDlTUVpnmM4PxP8TwoIRwo/h9 NnL8zeh+5sj0D5tZW4DsTC1AVPH1WYUN4aY2lv49twDh63oXbzXZQ+xKWJeiByao DeEOFtouwTb7RbmDBB1i0aeb7gWCryUiHD4p2zf+R+4ikcwcG0LzR7DC3WFdlPnb NII/G31ZDacpPqkk5S3LL2jIXKhpD15ilbXGjkqsBAkOJpO7rehVbxEGUfGh+2TZ cCvLHeh9ckgjimFlZywk230H/tkQJpnHaTOmhNbBbowUkIdCjTBLkqyW99sM2heD kmkYh9jJTj2BLVED4HrgyMp+dXGeDM7nVGDCPfbaFTTz6It+ODndAC2Q0d0N59Sz x2Xb8LYfngezdhV0q0GgGXl+vh9zvZnpHV7Bef6ABTq0IOQri83IZv3HlyBeK6KP JTx+ll32ByQ8JcMuAAaVqWXI914J/fD9bvsTzJNQsPEa8yBta22Ww+jcnHBBhAbU Kfw5FKNDrqYr4VGY9+am80YmnIRQIt7Fu4hGBBARAgAGBQJF4fboAAoJEE1EwCDF wFuuzREAn11W3gtaynmEAcxw/WxLdndmL0mmAKCsf55yO8kTmKoohRXpfo+jn4HB XYhGBBARAgAGBQJF4gz4AAoJEFUVYHaRYekRxxwAmwVy1T7YQQtP7xXNdM+EVUxL nteTAJ9AzaxlVV4dO/OZTG9QDbqztagH54hGBBARAgAGBQJF4grQAAoJEMfZMCWd /6rUv38An3mkvCWcxGKhN6/PgQ2+W4zpFQPDAKCxweB0Xh/TQDjQ/dSaoj/BccNK LIhGBBARAgAGBQJF4hFCAAoJEOVE3gebfDKNJ4sAn3owtLwwEWtpw9VQxTc66cmd oFqPAJ4r2z3VgRa/Ns/uWMxV0Zlee/f2M4hGBBARAgAGBQJF4i3gAAoJEHZJQAVJ ruv2v54AoJCl4M0ClZrwxyTkOXJs7xeQjtDtAJ485636UH2u71nZdIyGTMqQkszm BohGBBARAgAGBQJF4sNEAAoJEH5OpU/Qq0B1NE8AoOJY9VXq8PPDDPjRPaJLahjO ykz+AKDN3jXgHvqD26euQ1ksEBc8Vn6zF4hMBBARAgAMBQJF4sR8BYMChj7cAAoJ EHMcr9NTwaMv9/EAn35hATWBiY7ra8Z2bjy+GZ4eSLQmAKDX1GfInkT57/rzmpkx n+IQlikCMIhGBBARAgAGBQJF4s6iAAoJENoZYjcCOz9PA5IAoIZucQg6PaqLETbG ch/y2UM6BhZ2AJ92fj8dOvoKNxn9Rh4UcTSSiPXNDohGBBARAgAGBQJF4eL3AAoJ EHhn1Tx0eTXduhcAn2LWbAgZcRRU7PJtIO3zqsIm6keDAKCeZgrQaUd1GSNW4AzZ LuT/XXiWW4kCHAQQAQIABgUCReLO2gAKCRBSIlPD1yc5gYUMD/0ah8KqI6rjyi7p WqPPcPKy9ZCnPJv2JJllu1wx4dqRZnUVA3rmHAUpzQp7HsfMXWLgjxOnUEvzjZkP PamYnczdE65l5M8zah1WNjfR8Vk4/XaeolVXe3a5R8Vxj27QRa+T5yEHprb5hPo4 uFWkPlJgJd+qcXCIc28135QngN5uRRQK4NnM/oTtv2nv15L4M4qiH6V+We5IW+Tj t74O0mSEekg1bB/XKlF/XcgyO8rEZgqwufZ4cHbzWYXw3C+CKkhDSDItGUw9HesO u1FS+Mf/Js4+/kFjW8ZJPFO+A2z3gYTDzaXGq2zlvbqw1gYId5pbukVM6PRqQrlq tI2Kza7/CY85b+DVU9Zwe/Hr+yYnEJdG+eWkshmB0mIXgQlSaf/sglsAncrmxA/g m5IxaE3TIRW/mtizuCUwq+gigIUEANAsNwR5a/RAekc8aNaO1cSj8izlGqrl6cuQ 5jyizUJB5AcOV4CUDiazITOasbt4+xx9MTsciqWIkMLYRloVuqXgsoKOTxTT6Zq+ lPEGRyYds7OEdaXHWPO0OJ2ZPCagb3OvqxJc123Xf7XXySGkGXzZgoA6D4BwIB0b 5WQFq8722b0tJPktH2a5clKJio3SMir1bpPT6b/CM/Mrk3kIFKJpmvEBYrKTCfhJ nDI2GJ4Z/f6rUDhiyQ5yj5Rop2zot4hGBBARAgAGBQJF4vk5AAoJEItKxIGsHnFe eYYAnRbZnnFoSrbo5E908zFdUPwfVfUoAJ9Dgo1WuGHPD+89PSqsyMshK1qavIhG BBARAgAGBQJF4y0kAAoJELOx+BoCeHiA9a0An0E0Zyjequ/iRSSB+YolhRqc87tp AJ9PeRbv8Ce1TY6qCoyIO76zYScX5YhGBBARAgAGBQJF40D2AAoJEDiaVjzCcqEm vrkAnimr8D1OTH8O8+E3A2VOoxLhG8PTAJ93AR9hPTBxVBY+TqzapQz12ROtjohG BBARAgAGBQJF40DdAAoJEB9/MmoS7vYqmnUAnjcrUSIjc8jjfdxLhJES9yDBTP/g AJ9ZSpKAG4kvVjZqcSBhudGIw2NkQokBHAQQAQIABgUCReM6egAKCRDo4GL2DcsE MZKUB/9bQd/kyhettf5FPhSPgtVgZanF2kI0WnDWUGXbbn8vLs7GNGsb6eyuUDEM kL/f6xtVHNPC44HarRbawhph/m0P25KQlaHX4120gdYzPR7mnUMk9g7P2ycNrcND 730oJMS3f8FBhe9fnt4adPU8mp5fgU2zTsdVHpa2zUVZHNh84iuEoxoZJEWEyHHJ ke/avbbc/G6JmMD+8vOV8nKHbuzNOAfA09kPJWAPcfR/grCpEMZ8SkB9F4FvPEjU 2HxeFKx1vWNTamkr6ygUVlX7bBwLCe9p+7ue1rMeKOMsJF7UnAkOthEC2IeyhPn1 gyErrjYzQOX+3+YPCSO73fBxSG6liEYEEBECAAYFAkXjS5cACgkQKJz/wOY81tb5 TwCeLd//hOBTT9hnSkZFuxLso9J3cToAoKnsSW/csdFyRJLh024CqSzu3/QXiEYE ExECAAYFAkXjRMAACgkQjCXuDw3At9aUHQCglgCi6nNiupwbEfwEsvd4MRYVzGsA niDj36LSv47TIbmUQJlR/qiNJ+phiEYEEBECAAYFAkXjVQEACgkQmEvTgKxfcAxE EACgmX4IGrSutcvAs9Pfr6JYEE3hdsYAn1yLt/tyLO9laWWhLKhNH7MPHc0xiEYE EBECAAYFAkXjT0YACgkQIae1O4AJae8N+ACfXCp09XmUQQ/xvA4LipoTAoyqX+oA n3aZHFSOKENXaHthrpt0FFaPVNEJiEYEEBECAAYFAkXjfaMACgkQzxI0fJaL1Yct 2gCdEw43ra6oy0cwLX+zwRzTXazKQn0An0FuDnGs6J5+x6hlK3MFjyfRYZc5iEYE EBECAAYFAkXkGvoACgkQZDZDYQnzQCR0eACfWdtadQLH9Bbi/YPOcheMmavmCrUA n1fBKs46WOq7jppufBXwcncegfxHiEYEEBECAAYFAkXlgbQACgkQeQ6MlGH/2qvD yQCffMAMRUHCPKIbbz59BVNmgpyvSmYAnRMspmLYF0gk0xfHoIFaS3nwt3DgiQIc BBABAgAGBQJF6Vo/AAoJEFeTDasLhrBnakQP/1Z460aR3KyxrCrEcDJ/Vzf7vsbq 1DQnmoRuIgpKmR87N3qRLb2p94ffRYYxlWcFj1jiYT3Wq2bxjHyCZPgcAM2bQuuJ MFxQo2xgwobyNqesIafgdbMjdUEAVy+NTyJfdmM3I57lkrleGz6lk9ojMLoIDa/t R1C+uoLuSWMj0Xk/nCT+WnN3/xqZyPIa+i6MN8fuI6Nsa/C1jiNw2FnZy721hl+P 1Bhx+i9aiXCR0qz/3AOAOz25F0OXNKKdzOgdo5mCkelbUaey4gPpvb2oZ30rh6VT elOOlGU6WbEO3DQBuOGAxJ1Ux801przITs1923bZU8EPyfDZyZWINkpl7M4En4bq GKQkjTIfE8GrSSCp9rsLg1siK38yMYodegSzSJ7ZWWGlyuKvrim1eQw8svSzRphs ujaDJG8Oy3Dlc3qBbA/CGx1OtyML5G/w5C5b2Wz/BkMgHnOfOJSVjGlJJrxGyydR qThibZ88yRcZ8130COubR4Rr2I+TD+FZLhGtzQGia4gDQ9QG5td6LS5yLPc3Y52N cwWsbMHWzLTQ2k3O7PcsetRPLpduiq1eZUZZveY0MSjH+uH3xzp6qfj9I4FDtK6e pHQ0F9Dw8kK9qBAhiqrKxsUUbalx5Pup0gIkzNe1vzjByS2P/j2VMhbinhG5FZl0 O2mPcIXHeHlAJdGCiEYEEBECAAYFAkXt5LkACgkQMGnpIbeahxy4RwCggxD0dEmG z7ipFrmwbIGTxuxIS+IAoKfxzxjiT2m3AEvfkL/xNuqgenPViEYEEBECAAYFAkXk wVwACgkQcLIDITr1nRa4rQCfZvrXaoYQ8TeX/lhuJfmsPb7kIRcAniKy+cTGNExR mZutFX/OcnatDZExiEYEEBECAAYFAkXqoaAACgkQL5UVCKrmAi7oEwCgu/2cheN4 mU+yFFIG6HmLrbeIc5IAoI2I4eLWJdmLpJleOYgF7CtTGIKxiEYEEBECAAYFAkX/ bGMACgkQOpD/wRQI1/HBUwCglcM0b6fl1oP8iofWeovuhSk4+5sAmQHrgf2pbqFW 1oTBNS60dNQjA7VdiEYEEBECAAYFAka12CoACgkQXeJJllsDWKIizACgqk7R3Bhn GgzraKbcP9qSMhbYBr8An2Xah3bURySnK2QBDx4GzNM/vCTqiEYEEBECAAYFAkdZ tOwACgkQcgQ2cL3l8e4/XACg2opaihfpMLeOKb2bNSD7cLpI3N0An2A2r+PcOgUD t3qIIZ8i24HAhBnSiEYEEBECAAYFAkdZt8kACgkQ4Q56CecvefrAfgCfU/NbkK4w CiFMyviXo/F8tOEGyqkAnAgNaSmDzLkYZxHlM0SXosfHfV9diEYEExECAAYFAkda cyUACgkQaGtW3WCKJJsOKwCeLKhorr01GCKnXR8QaGvImLVOm98AoJpyR9WMJ0cs X+CuEdzGJDTlD8pxiEYEEBECAAYFAkddIIAACgkQt5wosOl/hW0OtwCgposF7nuk dTQ1nsQd1AGHb0CkQzYAn06bBOKMXsPcN2VvMiO2hiv9FLhniHoEExECADoFAkdc k2IzGmh0dHA6Ly93d3cuaGVucmlrbm9yZHN0cm9tLm5ldC9zaWduLXBvbGljeS0y MDA2LTEwAAoJEOdekMA5zDPbZ9IAnRTxxJl2Rtv1ZbnGsOuPJ6musP+5AJ9b8b3Y 9BL7PRHzWgQjzALVVXRrdIhGBBARAgAGBQJHXR/KAAoJEPG6TB7RyLqP7nYAn048 cLE/iNKJFxl/RwkY9VcRedkrAJ9+Y6u67OnG6HneUhzqGvMDbaGmAohGBBARAgAG BQJHXYVBAAoJEIUGW1nVLdGnUJ0AnjF43FY5SwhcW2JmuPVu1YnWfrwwAJ990zkv mIQtRCrxMzMgThz4jVaoEIhGBBARAgAGBQJHXAvSAAoJEO2/HhEm8iS4g2YAoMWb nnF/sbeM8+WToKO0nnoJrXVAAJ9iX3wXtSwAqrK+3X5imRfXGTxh8ohGBBMRAgAG BQJHXuTeAAoJEIXCJ+WlVzjy4fQAoKz8piSTCDPkv0qeNq0bdoDs9mOxAJ4lO8Hp GDqjYheaAvKG7tFZ1fsZjIj7BBMBAgBFAhsDBAsHAwIDFQIDAxYCAQIeAQIXgCIY ZG5zOnNpbW9uLmpvc2Vmc3Nvbi5vcmc/dHlwZT1DRVJUBQJF1dVYBQkLk/wtAAoJ EO2iHpS1ZXFvjEQE/1HviHOOSHv0ZuOd+H6SVlkwnhmx4g6fpyeeOa49lywggMBL 8zddB/928PMYFQQ+pvYmECkOK+O6sVO2NkubopZwE/hUjt5sc0XTYQ9Lvxp40N/K UR8fSR5FvLQSWYGYRDXkK3t3Cta83ZeJk2IK43DpgVoFWMN6x69DlRGTyRWbB2Vd RvSZz3ZKp86p5cnwMT++K+pNxq+eY0UJorLRj+SIRgQQEQIABgUCSES5dgAKCRBQ LE8plp8qHbO7AKCPmi7Ri8FKIY/Wf9Ksa2NFDxUnRwCcCdAwwG67ZmplFNtZlVDW wFEcvT+IRgQSEQIABgUCSFlvKwAKCRAk0yv5qpXDSUwfAJ0TPD78S3J8UvoziG+b TCLTlPz1XwCgnWlV3PBKvOxuGSAdm/DOMlY1ogKJAaAEEAECAAYFAkkGvzkACgkQ Ke5YuZaGUXFYtgwgx9yOo8cCR2a0d/0J8Ux8wAnjLI8m68BCiKW6HmAzXx/mNX2e zicSEyqcvv4q5XdpvSrcA2kmlREBpu7mmnyerUuWWsTLMbi9clXaKRZ6yQJQBbrR YwrXtzdFziHqFjw+hC19uVXlPhXYa/8YL6aCO4JUlzWWgVF8xHupfRTIeXuGLkC+ sWww2VmSm8Fg0FBG9jpIt4wYxNMI77so4szE/hoFQSdRtY1lC18jjluNiygGNQQP n7r5OKwrK9hX1gGZA2tGYVX0ZoYASRPZcUUzaYPH5cZ86SAg15zzroVD4etmk/2i I4sdzR9PyKr0zUp5FNSAFRey6avPAhaTNsyVDRiKmK3PnZF9H9HaRLJJnQEcvevN 04Vg10VW/O3zCFMFi8zuxUP6ygoDdWZT9jR4wbzVEyFY7AUwXnStDd39p3oamTb9 XtlngTJjmVBZIOlap4vmKsm0t2xviaxto6uR+656Ya49+SoXp+u5+dGDT2o0kFlN aC5r9zovItqdDYUHtn7DsIhGBBARAgAGBQJJZyWPAAoJEEc46iFldJl61+EAn1jp iTpjqq/l1oKwJQYDB0WsqGd+AKDEiDHvrN46b58gzQKdVbs472bFS7QhU2ltb24g Sm9zZWZzc29uIDxqYXNAZXh0dW5kby5jb20+iPsEEwECAEUCGwMECwcDAgMVAgMD FgIBAh4BAheAIhhkbnM6c2ltb24uam9zZWZzc29uLm9yZz90eXBlPUNFUlQFAkmh LgAFCQ6tWk4ACgkQ7aIelLVlcW/pRAT/X8oFdC6KZMRTukipZfy2cp2zQWmYs93T 5Itr5VrqU4kGzIyeGpYlIS+7jD1/jILjK3DYQLXpwNOf3ABwulLYYTeX5SmHk5KJ hi/UW059X6tOZ6lppW24fRL93OzX6gVBHGpj4qfirLzM7eq+VyJf93he8znYOWJ/ vy3mXa/QdMLmIL1eC+Z2AysulpDAOeIDzQbQNqbPMoNrmcO6VnZyHYhGBBMRAgAG BQI9WPK/AAoJEFeTKdPAGyoiF/cAn0dqzIl3Ss2QfeWnAOWEkODC0MsoAJ9Tb+zN +kgKH0f+91o6pT6VQEPn0YhMBBMRAgAMBQI9XrB1BYMBV4o2AAoJELy7xJVxipJW GZ0AnjlyM5hKGecjlTcoKYWJlMDjf0vCAJ99oFg8mkzKasg3CREHi3Y3Fu26EohG BBMRAgAGBQJBAMp9AAoJEJ7XWD/BTrKC96AAn1wDNEETZX6vDoCYdUGpV8NUiyWV AKCgKBgAABm+xdRzvY2ytKMCCPLLHohGBBMRAgAGBQJA/z93AAoJEJb/mcQlwOwL W7EAoLqAEMsXFUj3ScAXDYcvQaR+5lN7AKDPPs/9tixtWkuHbW9SPuaUfDizQYhM BBIRAgAMBQJA4Fc9BYMAk7TsAAoJEMiB3UdK56tHYAgAoKntYOktDGj5H5u9hfIq E9YIayhHAJ9PdLPDyKM6C01fd002zQe/eapsj4hGBBMRAgAGBQJCSQGQAAoJEI/D cl89aNY667EAoKu5aEpTLn2dplFPPc7+ojRJc+vVAKDcmOrKUKjImZWIh+Y/vJLw OHYi84hMBBIRAgAMBQJCHfAjBYMAPyIxAAoJEBgoK2tFOUoBYsoAnjEtckRH/Rlp C18blWLwEYDTSgw7AKClQUzPgy9KNf3j7/MsP/Emrl4+SIiiBBABAgAMBQJCRvnB BYMA5rEOAAoJEL/W7lhX938JlPID/iBCDWspuyuxVL2VrgpHSXB7IQhlQZUzqiPW AdQk2PCzXUR6fI60VwWRWTgzwM4h/9WaIkkI7IE4PPAVKcSy0oCR2TqobjzFpS8G ulrMrShk5LhQp2fppJhynuy1Z40iq/Dqz+8uToRbXVam+XYIvUiHitmrLNV6PvRF mW3KPr/ziEwEExECAAwFAkJJRAoFgwATzkoACgkQZr5x/2dIaIODCwCfeOCIoJAc Eve7QmdisnrXOunbns8An1paC2kNbYfcWeO4XOnHeglPVw5HiEwEEBECAAwFAkJN grUFgwDgKBoACgkQO46kH4L2EkAE0gCgz5vROEPqn8VQJZ3D6dFhXQISjaoAoL5B pboL6ZlwUEUjHoB8bJGQTxIQiQEiBBMBAgAMBQJCYTmdBYMAzHEyAAoJEAt4MvNz 1i1B9gYH/RhzAgmG9+PZuuvOeRMj5CZpVURiOUIupt+640ZrwIy/mgUhWKAGMlCn n08r907CfJfmwELKGkVOsG5+7nPy8KCVEwclxY+6zzqCE8cekmt1T9Z2HV4wrWqy po80E2FNXFsHylGxAN30oLOIKXfNNZegttRfg20pj/AmzrRm+tjb9VMdQl4lp9q/ FVMuQFVmdFQ+Kr8cSBhp+fEdLy8SguYBhYnbPSXTISXdUh0NJhZGafzaTTp28NgN LX4WhbKXUAKAxIzh06/X7NDwFAa7eWHD9lvojWfSj3zdnO9O6f97xK0j8UGQqFwZ pzdiwOcHjSFVmZyriT1HskORcB/aKz6ITAQTEQIADAUCQtiwjQWDAFT6QgAKCRAY WdAfZ3uh7EFLAJ9i5//07JhKiC/23C7bfFc/NpaowgCfWuU2y7lDqePoeNxdgiY6 1AS+wiuITAQTEQIADAUCQtiwsQWDAFT6HgAKCRCBwvfr4hO2krnFAJ9HH3oo/o/H Y1Oowz5v7a0By+fyqACeMkgMrMlUPFN32fjmN132Clz31SiITAQTEQIADAUCQtiw 0QWDAFT5/gAKCRBrcOzZXcP0c2EfAJ9Yy1Y0/98TlNF3fU1dTjd/asSXrQCg+hqH o0R2g1ztigaEJ6xlYKfcFVCJAiIEEwECAAwFAkLYsPEFgwBU+d4ACgkQquPmzmah RGijYQ/5AQ2INhVisCJEjJc9CmVqABcKDvblFqq2xe8/IMGSpThlvYL3BdDj2KMr 8tPeF63anbRvCNiain2IKWj6+4xVN1YmmNTK/MED6sX3JripbAn2Yw8SmmB8eFSk 4guSFyeILjHk5as208d6502S5tEnsnoZkA3yD02nFXokgDNFixxM9HzyOcGCASu6 A2UMkiLZUUgjiZiKuUxBlRG/QeeyKXs1uDtFsEahOocPE05+6bjBx3U6yPD0snaD wMEkZlMVfKdhC+GWIE01K7c79Jk3huz3c1PWHNkxdzlycBE9aGpHtDzS4a4msg6n VZb7NYdhdShCAKLbjCl0XfAolESpZ2oY+3lrbdyFYq/D3aAc0QLU9/iZvBEt9sf0 3V0PCg7dcD7P9HpCzHCM8gCEluoFYvurrVKU71FzEP4P7EGV49mK0U0owTRT+lph OIT3NYdybiZtAW8FwdHPIxOtGBBndAB0iYDznb62vQHjbzFOnZ+nNE7NW6FdN+Q7 02YU7VAG/ZAHP0+aLjQ8JvILKKG+xNNlBUX4TCKNGao+QZ9pgtEAp0m/T/C9Qumw G2RBV3v1K5x/niga/mDGKYUyFlmfwkmYScAWlQxQi86q/WfzoqxC0hCSgnBtFcsa IoEHx5h+gkYzPSuCJidq+a6+BSk98PPBrrcbPcqWVulxIUPU49mIRgQQEQIABgUC QvJK7gAKCRBu+K/ChldKysP9AJ495oiNOr+Yzim0SbesMCyDQOzekQCfaXXwvuCW fkjKtMPXDtzShhLCddqITAQTEQIADAUCQvHAcAWDADvqXwAKCRApqihSMz58I3+f AKCKbs82jshhd4NisvXVfb6hAgTbNQCeI0VNu2cKL8v4c5yEfavqPnriI6CIRgQQ EQIABgUCQ/jTlgAKCRDhXdhXsVw30bs2AJ9o4wcGaqejXyEWTPnD0BVqLGpzCACf YGRrmV6jhnERw2KNVcFCuyoPGp2IRgQQEQIABgUCQ/jTmAAKCRDhXdhXsVw30UVa AJ4/pDYdsiYiACPSRFXHIHb/HHRJYACfY2RxWuCiHSLHRkGeRuKktGJB8CqI2AQT AQIAIgIbAwQLBwMCAxUCAwMWAgECHgECF4AFAj69R0YFCQLVjhkACgkQ7aIelLVl cW8Y2QT+PjSaIJj37ijex+wJ/HBLkyydqWYVZhuTPTVMLst6DQModRBj3Xi7UYlg g7lJ6tRxarVuF/eYW6Zv4jx5FePxKLBeAG+H4FRQH+ogIXeBlDx41X7L25wjSxxP hQ4CwBNMmSKckD84LdQiPrygbX8JQLsJ08XuTzDG7740d0RotqxizGhYP0QJTD67 VvffoQ0gLtB5chw7Pc9osT1+j4yizojYBBMBAgAiAhsDBAsHAwIDFQIDAxYCAQIe AQIXgAUCP6QrUQUJA7xyJgAKCRDtoh6UtWVxbwueBP4uh9ZEOuSjt2n5OpfuAabl srRzhlgPfluBMfjHNynEFsGjn81l81TCqStRln7wDUj95ZufSi3YvoYSFG1jffGM k/k2trgINtT3kxaGkfns6dykBuV7Ki2wWqdJkTe1ibyai+RCqt+J1ldSUuHdfQZ5 wALPJQRb4Hqi7M29azFHcfxbMLf3yGYyBuKC7eBVNVaR58UTFK6r0CX3T7eGuk8b iNgEEwECACICGwMECwcDAgMVAgMDFgIBAh4BAheABQJAhr4rBQkEnwT+AAoJEO2i HpS1ZXFvkxgE/2ZfCBqYKIe3SDM0tOVNrIeSZuVNUyn2xoqRKK4VomvTI1eMShfG a0twPVlBB5xXHt06yRbwjobJykmDc/Hmteel+FVWOcehnXq8T22gLENlEM0CUZel losNwFwdnWGOHGZs/B4BVCh2pzsCra6di7MKCznZDOHX3TBLoqVHjWzCldxtwc6Y 7fAsEtrLVos4+0JvjQoYYgHQyril5ywHYs+I2AQTAQIAIgIbAwQLBwMCAxUCAwMW AgECHgECF4AFAkFvxFQFCQWICykACgkQ7aIelLVlcW/xbgT8CO3clOxFv4L9gsJt xe6lRUISlvmjoiQigmw8PIQwGfTCRYA5oK4Mja47+1PzbqzY1AlEi3JyFpIQMDCp RhkhfHGjOVH2vap3aGXxSFr8JGM0SO1Z5+88uNo9N7RAi4koaykIy+GYKypoyF9U LGj5QL/bUYgzLLG8etNasmE/Dl88mEXhY3wuPwaeIEbcv/HDHBymbv7VplP/3Vht ANfOz4jYBBMBAgAiBQI81QcrAhsDBQkB4TOABAsHAwIDFQIDAxYCAQIeAQIXgAAK CRDtoh6UtWVxb4jyBP0arTNzMTakDhO8BCE03d0iru6sCFJ2qQeh4UAFXy8KZ5yb tWJxFT/Q7xn0uXKujJ99cXhuy7icDR13wWkRKG20IjKiNv9yzQaNR36+m58mjZu1 UDnGVm2PT9bELYmKTVoumi44QWgU5lgq5KZfWhsA5BQEqS5tp9k4CBBg36JCwjYx HfnWxymA1hSyMKPmgmPm6aFd+Lv9d3h5oTVs9TBOiPsEEwECAEUCGwMECwcDAgMV AgMDFgIBAh4BAheAIhhkbnM6c2ltb24uam9zZWZzc29uLm9yZz90eXBlPUNFUlQF AkJAXM8FCQZYo6QACgkQ7aIelLVlcW8t8wT5AdyhUlQzcWoLN/934mFm8zk7TC1n moHE7v3euwTumyABwdUh7l/ztBk20Ontmaue6DIGELrsfYWtAqvyWqwi8ptpLOOu jzJShC2zBVJ5/86uGpKASqzTwCJ9rrqyjBPVlY7XzWbgEILtqg1Gi/Hwe7LQ/5jV nZu08D667pS9kuHaIqow/73nOWg0c0dlaigblMcVCXRF0Im3JvIOYumf64j7BBMB AgBFAhsDBAsHAwIDFQIDAxYCAQIeAQIXgCIYZG5zOnNpbW9uLmpvc2Vmc3Nvbi5v cmc/dHlwZT1DRVJUBQJDFazSBQkHL0UmAAoJEO2iHpS1ZXFv+CkE/iKshcx+BSBC 2d5EK24Dww6sBDPNF4P5mqLCMfa2VbGeWZffVQlGgJeLfTt2mtIAGRoCyaUazWjj 206K41Of7G0ZVFeCyfPyjBtKFlwNLrjMWz7kAGtLtXF/bKns4Mr3lB8KXJKiOTj5 uFI9m+b5emAMDXJyQG3Dna/WRcegpI+urrnR0PdZhYBvYPPY6ggctLsXtfL3E/be s1XLsyLWzSOIRgQQEQIABgUCRHOG/AAKCRAIsSOO3a1Htu/IAJ9eabhGni45aWk5 3Zb8U/iwB//edQCfW9B5aOz8uhfXNZYi7DDVjQ58r2eIRgQQEQIABgUCRHOHAAAK CRAIsSOO3a1Htl+5AJ9kk3l8sdO9tAL/pGpaMuwwXG0PTwCgnh7vrRtASYmhSeT5 RS/c+2E3+iqI+wQTAQIARQIbAwQLBwMCAxUCAwMWAgECHgECF4AiGGRuczpzaW1v bi5qb3NlZnNzb24ub3JnP3R5cGU9Q0VSVAUCQ/Mo/wUJCAtv1AAKCRDtoh6UtWVx b5wvBP9pt+ced/OUwn6QQVC28XSEj+Q2XE5TPTt9C/l2Z59ZRVQBQ0HrO2bSyX0L RlGM0j6ANddBu3JKvGJizeOofvrVdXBHVDQv/qavmfoW/sBk3Vy/c9nBmFx+GMlE zxWIKgL3oBRKVEG9gKT/bTn5zZQLt4Lu+BlATeADNUlUjncggKSXXp3uYQghWqZQ HrEs3tk0NwzBxYPW97DmtYcjSNaQiEYEEBECAAYFAkWMC44ACgkQKaooUjM+fCOM QwCfU8bBrk75aSt+Pw/6RRus0NtDieMAnA0cD0TCoCFX+K6cYyR5erJhHgRKiPsE EwECAEUCGwMECwcDAgMVAgMDFgIBAh4BAheAIhhkbnM6c2ltb24uam9zZWZzc29u Lm9yZz90eXBlPUNFUlQFAkTm6HUFCQj/L0gACgkQ7aIelLVlcW+BZAT/bQQwknXn Ub9eaIXx+aSbAeoO5gcowyFzlgcinaUyHu6J/1ogOwilkoQPsxhgRE6A/unk3Zac kvBrzpN2mw9YnVGRC+Nc9queRWKFhBfKNUFwMCcpVIy1IjCR/fAz1xlV4kpJ5QQX 5bPe8TYUqfKRS6hfWRvBZd0SUuC1s15IyqgKq9RZEQnq7GOzyQvMbSBeRkrb4Guv ZIdwdbR+qD2PmYhrBBARAgArBQJF4Xb1BYMCh4xjHhpodHRwOi8vd3d3LmNhY2Vy dC5vcmcvY3BzLnBocAAKCRDSuw0BZdD9WCItAKCI+or/qR6qhFzWBjh7ONW2Fwt1 ugCeMPkV8gI+AYho8zb7scqP8WtxIkeIRgQQEQIABgUCReLCxgAKCRCqz7OGIRtu 72ivAKDtzjXOLx6LXja+Cdbjv7GiP77jAwCg+BUnbBlNA3DFM2cCMfh0++FHMUaJ AhwEEAECAAYFAkXhlPkACgkQJknmKMXTTQWJcA//VxD2KKHU+4JCnMHMAtLQx36/ MlBwqGGjVX4+ZAgj9zz3dtOP9oYeH+U5XQCW0byVbqnyYdDW0w5uUctpKtxOtRS3 jCRmzPD2avfpW2jneg7ylfjeIQnn3Elkt1sxu3QiSfvFxFgw4GfJGIs0/nfhO54q OGX5+oMitavJiNC60hGJ7g+ToEZOmNXkWS1s93Szf88Oby5u6xtRoqYOxLnj6kA5 iPYSl10yz+opirrlCmxh9swjv73F8uuiebCOiJMuMNnQNg/+gkBlP5TUDCq7HCin iNn10PCO1BTxqJg4rDtZca8+UEPs9Vcep3CObuYqzYxxRWD5bKu7ReCYMlV9ebE6 bABzAQCV4ZBPX/AtWMbLTSpz/RdCbXM6iuGxRdW1aGhOR9CKfDjS33aAXprPUJeg YLxskDPeJ+q02FZ5YcsfTzvSy4RfJFPwaZT3APPnDzZAddMbiuPMzPKr60qIQf0B 1KOOh99ydj3THRY2TOCqs7TiQtg7DzhPC+lmQTAnLzF3kzk3aCj5nEbXjwChfms1 B1jnnKQJF0iiux8ycGVsja0Fo1xIuaeVoxLlBhQYBZhpW84uwC2Cyo84xwxbwQ52 9nWVsy7bMD3Sv3RDHKFZb2VEI6WNAM4RLjujRUOsYnBzM/et5r2rNbhVYZpXXI09 tn9buCCkvvqcxDJSleqIRgQQEQIABgUCReH26AAKCRBNRMAgxcBbrpgLAKCrw3g0 BerwcZrA0A0QMml9oWc/NQCdHxDZHRXDlJKb3rWsk1rIj1KvZsSIRgQQEQIABgUC ReIM+gAKCRBVFWB2kWHpEaBgAKC5Hgg9nq2Mc2yUo4mtYn55TZ0mzwCfUuZjRjp5 i0wGMRjlSQIAFwLWbcSIRgQQEQIABgUCReIK1AAKCRDH2TAlnf+q1ICMAJwKvons J370KWFzEUD0BxUNUOKCFgCgm1I9hRBVJVOnBc5z6iDJ1M3NgM+IRgQQEQIABgUC ReIRQwAKCRDlRN4Hm3wyjd+9AJ9f4xN5fLgv1M67WOBPBcwdaWr48ACeLBOOMDGv AYncekiZ8tqSxWMYnGeIRgQQEQIABgUCReIt4gAKCRB2SUAFSa7r9u8/AKC9UtDG VMlgcW9Ki3UAbWg5zhA8AwCgxXoak8y2uBiNVwVpzO/ub63ist6IRgQQEQIABgUC ReJbVQAKCRBbk8AvnkqcneUJAJ9CJwzNxH++BgxHoBCYvQslevEaMwCeOwpQrG+K +1hgmCaKZbBR77xnVhqIRgQQEQIABgUCReLDRgAKCRB+TqVP0KtAdYQiAJ96HcY6 xRsnPcfCgmngWFz3DOJzeACg3O1etKwnXm24bRYRM3cPLsNkx9+ITAQQEQIADAUC ReLEfAWDAoY+3AAKCRBzHK/TU8GjLyPGAKDH0Z5QNF9UMFgUhXvGR18mV+IQMACg kM+uL0ZjSu/vXGwM6RQqLWsPoYuIRgQQEQIABgUCReHi+gAKCRB4Z9U8dHk13TUW AKDRPfQWIu8+rVajQ56tvufZsfMUqgCfd6bVey/0wlxFH3BuKaB4maUoMzuIRgQQ EQIABgUCReLOogAKCRDaGWI3Ajs/Ty+8AJ9hnkGZ3J5dGL1ITHm67C5zuphwmACe PnZ5O5xlhXIeI+D8+z1JGpEmr02JAhwEEAECAAYFAkXizuIACgkQUiJTw9cnOYFl Vw//aP6Sev9OcDLXyyja3Ml3q/EXe0deIgZxLunLJcv9irSnrbg/fh2yZxognbSL BMdBURA2QK123awXUej7Jughn1SnULvi2/OqI5+prBV4Qx0rU9BomwEQE+vWHS/0 qFmc0w+IzooBC0PXhVI9tTvPq/vKMrbSLiBlxqw6EkysfcRgHIIexpPNB9kMD4Yb oTvTHXOSxpthY3h0ehOhnReiw67CQG30CMQXdPp01uvH8656F3CA5LGhTv+T+rGA cJ8SFiShjF+cXWOlI7DtCFfjhL/D9S9Ug2SWMigoz4YE+at01SGzs0ahijF/cjfW 68TG/mBxBXF5uY3rRU07f929ks2oMy+l9npVPwcDvKsYHwNovtN4M5wS5UWpgX6k I4ZPPV+nnan2FUqNCcZI9+pUsyOvEIjsdZkGXLgyL5WaN31DhZNz9yMWGJOaNHlR pdDm8dPXpnPPoXFKm7O3hyamSW1mjKaMPG2PMigClH1KfnK5kY2D/G+z1fk5kM5E s+H+zPySxDMsp3IvwE+kdAIFlqla/Y+6IQ2mbAbaRzzzOrB12+YpNfkCbPmpQZMP 3cu1YIgdJ/Z+urdE0nSepHf+ygL7Wus6afUP5GWFFNe2BSJR/6Fcd2r+PV7DU/uh hbAu6yqEQJU3/X4GDwwzvxxQyR79C+JYpeog5/gAzdWa+2mIRgQQEQIABgUCReL5 OwAKCRCLSsSBrB5xXsftAJ4meBeaphMXBIfSN9x/4hrUOUChqQCePhSTUe3w9oQm xG/m81i3weQ1Pu+IRgQQEQIABgUCReMiqAAKCRDTo3AErk0c1Ck2AKCXjF9YJz1S n4yr3Ahdlzjha4ZWlACg32/5EOg2CP9Is9qqM7Nmp2OHABOIRgQQEQIABgUCReMt KgAKCRCzsfgaAnh4gFQBAJwIWxxZqJ0YaHcHuhUmpO0jw3hcSgCeMO97CZ/WW9+k to47ZzmIJq34CyiIRgQQEQIABgUCReNA9wAKCRA4mlY8wnKhJl9sAJ4vjcPCWTFt o3R8bmFfdhMjbzF2dACglEwOiSd/ZglLVxKUoActs5QKY8qIRgQQEQIABgUCReNA 3QAKCRAffzJqEu72KqXCAKCsQKKlQ/u95XZE5laDGvEhoEXM2QCeJMg7cxbPm7MV PO6q9UJwGyQuO72JARwEEAECAAYFAkXjOnoACgkQ6OBi9g3LBDHt7Qf+O59RTNft jDuxfaIVU3iwIgVs8nXeSb/vn5brc1EfpaEGdNrXPWHvDy/u6ARZ386G5F4dz3Eb 4kugaA+/P4p0pPImRmeiRRgcyvpATdEF+/Y787dhkl/fVs6/ojLx7Bq5LpOxHs9S ZIjhxXkdPzS06T0dpzV2iDVbGUz1mZL8uyQF0em1zldoiswzF08go4koWeErXtZA y0Khu5up8sDISaUWnm2VDHrFLdr8PFzpUv8Z34e+XNiiVoP989dE6Gx2qgBhmR/p rxY54JCxMh/esvTRLjf9cze3t1PI80mK/kmp2zsVIsd1SIdw+fjzYd4ZzDi4gA8n 64Tlv5gldGn5DIhGBBARAgAGBQJF40uXAAoJECic/8DmPNbWs4IAn0vpU3ALdg8y T0aq4qQJdX1oVi5bAJ9EVqkfOkE6WqPIaA5pnodCaTIddIhGBBMRAgAGBQJF40TI AAoJEIwl7g8NwLfW7wgAnjB0msHMLIjZvK8oSH0kWpPxmiCGAKDKaUqkSvY0y87I izLQYijodqQvDIhGBBARAgAGBQJF41UFAAoJEJhL04CsX3AMMy8AoNI1odP+fQA6 h4CLWjaEK1qndHhlAKDNY25jsLzqCcJn0JqQaNN3gkvNx4hGBBARAgAGBQJF409I AAoJECGntTuACWnvwD8An2FF/JEayVKOL++9YbNLXpBVeRxaAJ44hot3GOOSS2OI ZZ9L/nw4ZRiHWohGBBARAgAGBQJF432jAAoJEM8SNHyWi9WHevAAn2TcTFyH84jO pejOmDSTrK30xQx1AJ46kGnM5mgIVuqSDrl/1R4PmrYN44hGBBARAgAGBQJF5Br+ AAoJEGQ2Q2EJ80AkeQwAniuGytBx5JvGcFJV5NBliOGfxhs0AJ0be5jI/yWjK/bn 88x2wmNp3mcA44kCHAQQAQIABgUCRelaTgAKCRBXkw2rC4awZ/WXD/0dhSb4vKuX 0H6Z3EyvlehYrjZUKjv8tT+B0OWmvexuUEC6VtaPGdV0bHIWIi7AjijTgtwRDsT6 qLg+N8wfAzfGloCKz7BAiF2Ugap/X0JwbEXq0OgSzJ0LU5fsHBMj9Bb2pHVmZVqy lJppuhMSnQ4paEctfq3Ls0UJslNhGtflAE6iIassIpZqI8aZfBtC6AWHk7AsUl/M Q4GlxkmNmVNJoBQt8h7DEK02AOqwBLYrHNSyqBlmjz90Cd3q8Mnsh1d702+NJZF2 IuGjqSAv5E2aWNCZQ2zkoMhOGTlqPslEzIhb7G/a0I222px8DtAzYX8pKA0zLV+4 W06pLOrbqiPEOBCPE4wt8t/jNrt0bVg3hrL6Sf+3AYpgDG3LXErhGbEcPTsORUeQ MWcGtaLfKCs29Bln5WBVgeiJADv3t7w4EMFBj5gVlHauNbDzip4q9+i3B4Wjmbqk 7HOpfmxliOKEIX6aKE9SfecJXta7A1potO8pg0LlezufjN72y3PSUIa0VnqdMAVy YXMYUPuvATlFr0qWfzwql5d/J7zNigFzXCW0iBlv5gqTpoqJ+byZr2RUdtC/Q2ym WP4/cAcScFrR4anDnfiOqBeOGQBy7ceYd4DWd38PBU+fn4Z9rn8HfIRlJ3y2Ci7n Lswbbp38GLgYYwq2tjNoxuGr/4+vb8c3y4hGBBARAgAGBQJF5YG2AAoJEHkOjJRh /9qrW5QAniwa6vfWlEt1H8oeUOjJCyp7Ad4GAJ44QWVps5BWoeNpJWcS3m4cIFYE XYhGBBARAgAGBQJF7eS5AAoJEDBp6SG3moccZusAnRbuB1slbRLAebBjUhTlyvgS dsibAJ0V/NfekMsvwX6e6my5KBTFY4WyuohGBBARAgAGBQJF5MFdAAoJEHCyAyE6 9Z0W5t8AoLgQz3ZhGe/hzwQ2bBTMeV12AyzhAJ0QWg/BHvHseBde5/14a+V8pt0S XYhGBBARAgAGBQJF6qGjAAoJEC+VFQiq5gIukCUAn2UXazhZrEHLvZH0c56N2LdN HYI6AJ4zZnN8vY09pgpA6p7+YGQfnjuyBohGBBARAgAGBQJF/2xwAAoJEDqQ/8EU CNfxSUEAoIDQQMHKQdtsKlcQKL3du2kBeaj+AJ0WEKNgRh8NgrcnppW2TpOygvQq M4hGBBARAgAGBQJGtdgxAAoJEF3iSZZbA1iisQsAoJ4LWFLNtSwDA4bNi+qIAHIV kEsbAKCW86SWOi3QcT/cZ+edMZdqTTXeRohGBBARAgAGBQJHWbTuAAoJEHIENnC9 5fHuRb8An2E3kaGysE5hsrKBfkIBlco2Sb2IAJ91er1Yq2k8VOpUsBie/dysvgsY h4hGBBARAgAGBQJHWbfMAAoJEOEOegnnL3n6TYwAn2rA+SuEU9y0LUzxr55/wc6a yG+MAJ0TsyBrQBwA5tj9xg27dqvkZy+RYohGBBMRAgAGBQJHWnMlAAoJEGhrVt1g iiSbLcoAnRgf744XS2aZvXzXpdkvqJo8QDZ1AJ0aBMP918C88Tf5Nd1sEIg+t39h dohGBBARAgAGBQJHXSCAAAoJELecKLDpf4VtzC4AoNG5vj9Xz/ivXays7uOd6aqh apRBAKCMpQuXSYePOXDCEkiGG+YDtoe5mYh6BBMRAgA6BQJHXJNiMxpodHRwOi8v d3d3LmhlbnJpa25vcmRzdHJvbS5uZXQvc2lnbi1wb2xpY3ktMjAwNi0xMAAKCRDn XpDAOcwz24k0AJ9w0cJxnrwcMg54QvEMBVRyzo6F7QCdFuoMj3ByIWu9jc0GFN/l mtaunTmIRgQQEQIABgUCR10fzgAKCRDxukwe0ci6jyVQAJ9HJNsQX1RMDlyAL2H4 qLUwAMwLBQCgoJh3gK9IlKwumCAmrFEaHnFaCYGIRgQQEQIABgUCR12FRAAKCRCF BltZ1S3Rp+JpAKCVJ804T2GWfoudSI5lwDU6q+8rNQCfaQ5ZQTVuknSdPx/3yt6P THWvz6uIRgQQEQIABgUCR1wL0gAKCRDtvx4RJvIkuBPaAJoCJkH84G+jEOHa1esT tRaxpD9oOACgrPWwsOEz4bI7qFSy8JzoMxOvhD2IRgQTEQIABgUCR17k3gAKCRCF wiflpVc48tQkAJ9da/TKCdBij+Pm93rPUpp2Rslq9wCgpxkJ5YNrYCawocyfaQPe xsHZKLKI+wQTAQIARQIbAwQLBwMCAxUCAwMWAgECHgECF4AiGGRuczpzaW1vbi5q b3NlZnNzb24ub3JnP3R5cGU9Q0VSVAUCRdXVWAUJC5P8LQAKCRDtoh6UtWVxb+g0 BPsGdj6i1tbGnqe5fZopOeeZdWxVdLUNYVcs+mUbACnpvat2Wubyl2PUGxev0niY tME90aZwmrti3tKvD2j8tveP0upxlgEhA/XTyhQw5CgMCDGDGWf0RLQK5xEBsWuu N4gV5n1Yzdx6ijieZwNJfE4dOLOM4OCPkaaE29Ji0TVX/BnESBPWz3W/R00FjDdc /l14eBO5OlmyQV/zAKT+R0tBiEYEEBECAAYFAkhEuXgACgkQUCxPKZafKh3VQACf Z4TvFfZObRwlO4YzzrL8NOBgRY4AnAtBNv5Ga2Ou5KluhzgdD4cc/hP2iEYEEhEC AAYFAkhZbysACgkQJNMr+aqVw0kuhgCeNPeCzZhmsiNdL5etbxUZzVbTXe4AoKim F9wyQGMYF0eQNQ1a8Nx7q4YmiQGgBBABAgAGBQJJBr85AAoJECnuWLmWhlFxEi8M IKg/RbKdVmffG2ZlujO/WqRbQ7ZaMN1HkrGze2LfW8rkehV/5DKKLRT0BH84nbpF yOPVM4FHv3vm82fh0yDDnx6ewFlGgGc7ovmLjHDltI78OytEFmKt/O7SM3vjytz1 //Xt9rtlaWDrhA2tnMEQ39xA7ArxtypRywhc5103Fun+51ZUSgGGzJlkUKam8/kA 8b6D0U+x3ZwZcBzLfBW+P6gnec2vZEogPxxukYPrtLbRE2ZrUG0U1RubUXu76fn4 turIB3aZ4vFdCY3al/xBIkg6J5lW1dzRc+vY8Tf9pn3/gKxygE61Im07/b8pAKLJ BEcuomzIn+lWS4np3O4h6HrVOFSQW//4xK55iU7F9nVmpQAwmj291Sl7Kswp0sf4 NDJ5zuo4iDFoRUKjvtecG7s1dRBT10Damkqvq1PICsQN650oThQaDw+VDimL1hVR wOUdzUIz+AkK5SRzP6De3nhuYxMpSbxpxCOQuYGP5bUhB23RjgJwWeqr24RIZGqb END9otGIRQQQEQIABgUCSWcljwAKCRBHOOohZXSZeiUYAJdfCtm1Aij3dVLTBpyI S1lk5iYrAJ4qXN9eQAJwFC28VZguU+VVCPg2z7irBDzVB3sBBQDY9NqhPxE2QUOV ftQI4H29pEXGtf503uXpA747QyDt1V2Mi0SdppiQn6vgtd5wjjseiCxQYTFF0NgZ PQOrtpnwaQLhQo9dzerYpZDeJvfCPeqcIabchf8jbj3J1gsDNDJaoxbT3AsHm/GE +LjKN63gVMZaa1hSUbMNvv7pVmKVhFO3LS+EUXhxVeU7ZH6+A/EUy9RzujxYYOdD eLJYCLORAAYpiMUEGAECAA8CGwwFAkhh+S0FCQ0Yc7IACgkQ7aIelLVlcW9LSAUA nPC0ji8ajhdj4yW3ZRChT+H7hxPdp3id0Xzhuem/DiWT3a6eeQeSadpByGF1H0Ta mT7buYfQgLsa9YkxRIf95jNPWCJkrg8lOaKfAO0+piehqCFly1jvHJ4nZ2hcdhtQ q5C/JRPygfPJoUhcnbEfR09WekY/HXhC5XF5s2+PRK+RvFtqhpxCO+0hbCCTQZum 0QlrJUwh5bu/cJ003Dza17iOBEQcLesBBADmhtD1sFupeGfp1H+G37V8mngf47Bs BS93RI+3mZjNdq9Mx4+yYUCWvW12SLD2EbaBiKColY2e0K9qG8LS8kEZfyPSy+K/ vBUW28YbQhe4Dn3g7T/Q18JrNNyWPk9vVhOlnQQ9trXTW2xYCAHPXGVgHs4fDwz9 AaymqwCu36twBQAgzc7kYYjFBBgBAgAPAhsgBQJGin6LBQkDXUaFAAoJEO2iHpS1 ZXFvaq0FAKnvHI9bxEJtNFmWwq7gBDGXv9TrioNx3wCETQ6n6V8JIO4vV8XydmA1 ujPSHY/7Ptw99+SZ25NQqGBuE98STKODH6EVyXGAvha66dzJTYHQDCG0EO+esDzO fvrISFa37JfFl0Ju9SaHqnwTxrYxvo/Sd3alC8vJARd7IzuZoSZXZNBYz9RPbC8o bTsEEmR1IcrP2IPtOXX7sViW37sU/w64jgREHC7SAQQArB4IoJfse8rCqRNkVzYm btxvzzrtyl3LrluNgS7N4rTOLgCQeUJ8lgqEr2h3KEZ8PjGBWNYww3rj/MnX64jv /Ybq9XxJc/vkFBRYT1ISqGszeFc3P0KTXnVahF5xG4MaQ6mhy4PgMq3/NETdPH+T J+I3OL//KOa0MpGjwmtnGrsAILXz8IeJAZIEGAECAA8CGwIFAkaKfpsFCQNdRZ4A 18ALIAQZAQIANAUCRPM4Ey0UgAAAAAAVAA9wa2EtYWRkcmVzc0BnbnVwZy5vcmdq YXNAZXh0dW5kby5jb20ACgkQpycTyKq7H3t8KAP/YWnPIkW4kfAWU5E93P/0R9DH a1ly7zP3JWbpm7Lxe+2ESOJwPn3GWSn3h+Ty+3UhOIsqIEM0ISQ+SPAG/ltaghcT /XUWnUtolcb6YUVBcjQt58wpxRWZwEfwQR58aTfJHBDDHXWTq58N9YoalwTCFSvi F/UzyHAysp3dBje77/AJEO2iHpS1ZXFvxkgE/3SuuiloOcwou8I1zZ/5n4T7Bx0l BZ8Q42Ct1t99+U4zhC4WJ83ESQPdvAhk7Y2urmuINQYn+tFN+NzVfNPT2hiFNflq 1+AzkZwO3lqh3OakC+LVeFSEmPxrgyXBisELaB8W4Kk90tklUcmI6DS5NCVSHk/W 2l/cMJurV9JuZ/ILLZmjWS01ruDRD6gze8EnpFUZ7In5jgDM/YRLIphINq+4jgRE HC8JAQQAxCLemYxwWqGwXBUqMX74GTQULkvtSc82sXWixyrhPNyaxYKuAvlKO0nk XGEAwS/YMC4m+gJ7iTiskG9iWPfoXPK5S81AjRX7NA8B34BAb5rJbW2eHypOLQ99 MUUBYzuNLLqpwBZTeumoaz7DgoIHNpMpD4x/Irw1mX83xNhQ6F8AIKatOU2IxQQY AQIADwIbDAUCRop+pAUJA11FZwAKCRDtoh6UtWVxbzeQBP9/43ouNUZ9/pT8lKzv d15XHdZ2Kp9Brx2SmerUdDTZbETd3T/eSHAQxJcrwRXeCJg/O//8ZmTg2G/+hf9S jD/OfCkZKVVe1sm1T7nErj9jWlO8+OuWryWE5eCLJb5W3Yk7WDdoeUcj3pKtFyml DFlI0Sq4scHvyb6LPLxXzbb4ViyjXTH0eIh7rQ1SlWOF0fwQzb0Sk+LPRDJ8VX+Q YY0j =o98p -----END PGP PUBLIC KEY BLOCK----- ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. shishi-1.0.3/examples/0000755000000000000000000000000014273616165011602 500000000000000shishi-1.0.3/examples/client-cksum.c0000644000000000000000000001312714273601533014261 00000000000000/* client-cksum.c --- Sample Shishi authenticated client, with checksum data. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #define SERVICE "sample" /* XXX remove this */ const char *program_name = "client"; static int doit (Shishi * handle, Shishi_ap * ap, int verbose) { char line[BUFSIZ]; #if 0 /* XXX Unfinished application-level security */ res = shishi_safe (handle, &safe); if (res != SHISHI_OK) { printf ("Could not build SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_set_user_data (handle, shishi_safe_safe (safe), "foo", 0); if (res != SHISHI_OK) { printf ("Could not set application data in SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_build (safe, key); if (res != SHISHI_OK) { printf ("Could not build SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_print (handle, stdout, shishi_safe_safe (safe)); if (res != SHISHI_OK) { printf ("Could not print SAFE: %s\n", shishi_strerror (res)); return res; } #endif printf ("Application exchange start. Press ^D to finish.\n"); while (fgets (line, sizeof (line), stdin)) { printf ("read: %s", line); } if (ferror (stdin)) { printf ("error reading stdin\n"); return 1; } return 0; } static Shishi_ap * auth (Shishi * h, int verbose, const char *cname, const char *sname) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return NULL; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return NULL; } /* Add checksum of some application data to the AP. * * Note that only a pointer to this memory area is stored in the AP, * so you MUST keep it allocated, at least until * shishi_ap_req_build(ap) is finished. This might be changed in * the future, probably by copying the data into the AP. */ shishi_ap_authenticator_cksumdata_set (ap, "attack at dawn", strlen ("attack at dawn")); /* Build Authentication request */ rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* Authentication ourself to server */ shishi_apreq_print (h, stdout, shishi_ap_req (ap)); /* Note: to get the binary blob to send, use: * * char *out; int outlen; * ... * rc = shishi_ap_req_der (ap, &out, &outlen); * ... * write(fd, out, outlen); */ /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { Shishi_asn1 aprep; printf ("Waiting for server to authenticate itself...\n"); rc = shishi_aprep_parse (h, stdin, &aprep); if (rc != SHISHI_OK) { printf ("Cannot parse AP-REP from server: %s\n", shishi_strerror (rc)); return NULL; } rc = shishi_ap_rep_verify_asn1 (ap, aprep); if (rc == SHISHI_OK) printf ("AP-REP verification OK...\n"); else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return NULL; } /* The server is authenticated. */ printf ("Server authenticated.\n"); } /* We are now authenticated. */ printf ("User authenticated.\n"); return ap; } int main (int argc, char *argv[]) { Shishi *h; Shishi_ap *ap; char *sname; int rc; printf ("sample-client (shishi " SHISHI_VERSION ")\n"); if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } if (argc > 1) sname = argv[1]; else sname = shishi_server_for_local_service (h, SERVICE); ap = auth (h, 1, shishi_principal_default (h), sname); if (ap) rc = doit (h, ap, 1); else rc = 1; shishi_done (h); return rc; } shishi-1.0.3/examples/Makefile.in0000644000000000000000000024432214273615654013600 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = client$(EXEEXT) client-cksum$(EXEEXT) \ client-safe$(EXEEXT) client-priv$(EXEEXT) server$(EXEEXT) subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) client_SOURCES = client.c client_OBJECTS = client.$(OBJEXT) client_LDADD = $(LDADD) am__DEPENDENCIES_1 = client_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = client_cksum_SOURCES = client-cksum.c client_cksum_OBJECTS = client-cksum.$(OBJEXT) client_cksum_LDADD = $(LDADD) client_cksum_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) client_priv_SOURCES = client-priv.c client_priv_OBJECTS = client-priv.$(OBJEXT) client_priv_LDADD = $(LDADD) client_priv_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) client_safe_SOURCES = client-safe.c client_safe_OBJECTS = client-safe.$(OBJEXT) client_safe_LDADD = $(LDADD) client_safe_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) server_SOURCES = server.c server_OBJECTS = server.$(OBJEXT) server_LDADD = $(LDADD) server_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/client-cksum.Po \ ./$(DEPDIR)/client-priv.Po ./$(DEPDIR)/client-safe.Po \ ./$(DEPDIR)/client.Po ./$(DEPDIR)/server.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = client.c client-cksum.c client-priv.c client-safe.c server.c DIST_SOURCES = client.c client-cksum.c client-priv.c client-safe.c \ server.c am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib LDADD = ../lib/gl/libgnu.la ../lib/libshishi.la $(LTLIBINTL) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list client$(EXEEXT): $(client_OBJECTS) $(client_DEPENDENCIES) $(EXTRA_client_DEPENDENCIES) @rm -f client$(EXEEXT) $(AM_V_CCLD)$(LINK) $(client_OBJECTS) $(client_LDADD) $(LIBS) client-cksum$(EXEEXT): $(client_cksum_OBJECTS) $(client_cksum_DEPENDENCIES) $(EXTRA_client_cksum_DEPENDENCIES) @rm -f client-cksum$(EXEEXT) $(AM_V_CCLD)$(LINK) $(client_cksum_OBJECTS) $(client_cksum_LDADD) $(LIBS) client-priv$(EXEEXT): $(client_priv_OBJECTS) $(client_priv_DEPENDENCIES) $(EXTRA_client_priv_DEPENDENCIES) @rm -f client-priv$(EXEEXT) $(AM_V_CCLD)$(LINK) $(client_priv_OBJECTS) $(client_priv_LDADD) $(LIBS) client-safe$(EXEEXT): $(client_safe_OBJECTS) $(client_safe_DEPENDENCIES) $(EXTRA_client_safe_DEPENDENCIES) @rm -f client-safe$(EXEEXT) $(AM_V_CCLD)$(LINK) $(client_safe_OBJECTS) $(client_safe_LDADD) $(LIBS) server$(EXEEXT): $(server_OBJECTS) $(server_DEPENDENCIES) $(EXTRA_server_DEPENDENCIES) @rm -f server$(EXEEXT) $(AM_V_CCLD)$(LINK) $(server_OBJECTS) $(server_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client-cksum.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client-priv.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client-safe.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/client-cksum.Po -rm -f ./$(DEPDIR)/client-priv.Po -rm -f ./$(DEPDIR)/client-safe.Po -rm -f ./$(DEPDIR)/client.Po -rm -f ./$(DEPDIR)/server.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/client-cksum.Po -rm -f ./$(DEPDIR)/client-priv.Po -rm -f ./$(DEPDIR)/client-safe.Po -rm -f ./$(DEPDIR)/client.Po -rm -f ./$(DEPDIR)/server.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/examples/client-priv.c0000644000000000000000000001244514273601533014121 00000000000000/* client-priv.c --- Sample Shishi authenticated client, with privacy * protected application data exchange. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #define SERVICE "sample" /* XXX remove this */ const char *program_name = "client"; static int doit (Shishi * handle, Shishi_ap * ap, int verbose) { char line[BUFSIZ]; int res; printf ("Application exchange start. Press ^D to finish.\n"); while (fgets (line, sizeof (line), stdin)) { Shishi_priv *priv; line[strlen (line) - 1] = '\0'; printf ("read: %s\n", line); res = shishi_priv (handle, &priv); if (res != SHISHI_OK) { printf ("Could not build PRIV: %s\n", shishi_strerror (res)); return res; } res = shishi_encprivpart_set_user_data (handle, shishi_priv_encprivpart (priv), line, strlen (line)); if (res != SHISHI_OK) { printf ("Could not set application data in PRIV: %s\n", shishi_strerror (res)); return res; } res = shishi_priv_build (priv, shishi_ap_key (ap)); if (res != SHISHI_OK) { printf ("Could not build PRIV: %s\n", shishi_strerror (res)); return res; } res = shishi_priv_print (handle, stdout, shishi_priv_priv (priv)); if (res != SHISHI_OK) { printf ("Could not print PRIV: %s\n", shishi_strerror (res)); return res; } } if (ferror (stdin)) { printf ("error reading stdin\n"); return 1; } return 0; } static Shishi_ap * auth (Shishi * h, int verbose, const char *cname, const char *sname) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return NULL; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return NULL; } /* Build Authentication request */ rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* Authentication ourself to server */ shishi_apreq_print (h, stdout, shishi_ap_req (ap)); /* Note: to get the binary blob to send, use: * * char *out; int outlen; * ... * rc = shishi_ap_req_der (ap, &out, &outlen); * ... * write(fd, out, outlen); */ /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { Shishi_asn1 aprep; printf ("Waiting for server to authenticate itself...\n"); rc = shishi_aprep_parse (h, stdin, &aprep); if (rc != SHISHI_OK) { printf ("Cannot parse AP-REP from server: %s\n", shishi_strerror (rc)); return NULL; } rc = shishi_ap_rep_verify_asn1 (ap, aprep); if (rc == SHISHI_OK) printf ("AP-REP verification OK...\n"); else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return NULL; } /* The server is authenticated. */ printf ("Server authenticated.\n"); } /* We are now authenticated. */ printf ("User authenticated.\n"); return ap; } int main (int argc, char *argv[]) { Shishi *h; Shishi_ap *ap; char *sname; int rc; printf ("sample-client (shishi " SHISHI_VERSION ")\n"); if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } if (argc > 1) sname = argv[1]; else sname = shishi_server_for_local_service (h, SERVICE); ap = auth (h, 1, shishi_principal_default (h), sname); if (ap) rc = doit (h, ap, 1); else rc = 1; shishi_done (h); return rc; } shishi-1.0.3/examples/client.c0000644000000000000000000001011214273601533013130 00000000000000/* client.c --- Sample client with authentication using Shishi. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #define SERVICE "sample" /* XXX remove this */ const char *program_name = "client"; static Shishi_ap * auth (Shishi * h, int verbose, const char *cname, const char *sname) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return NULL; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return NULL; } /* Build Authentication request */ rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* Authentication ourself to server */ shishi_apreq_print (h, stdout, shishi_ap_req (ap)); /* Note: to get the binary blob to send, use: * * char *out; int outlen; * ... * rc = shishi_ap_req_der (ap, &out, &outlen); * ... * write(fd, out, outlen); */ /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { Shishi_asn1 aprep; printf ("Cut'n'paste AP-REP from server...\n"); rc = shishi_aprep_parse (h, stdin, &aprep); if (rc != SHISHI_OK) { printf ("Cannot parse AP-REP from server: %s\n", shishi_strerror (rc)); return NULL; } rc = shishi_ap_rep_verify_asn1 (ap, aprep); if (rc == SHISHI_OK) printf ("AP-REP verification OK...\n"); else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return NULL; } /* The server is authenticated. */ printf ("Server authenticated.\n"); } /* We are now authenticated. */ printf ("User authenticated.\n"); return ap; } int main (int argc, char *argv[]) { Shishi *h; Shishi_ap *ap; char *sname; int rc; printf ("sample-client (shishi " SHISHI_VERSION ")\n"); if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } if (argc > 1) sname = argv[1]; else sname = shishi_server_for_local_service (h, SERVICE); ap = auth (h, 1, shishi_principal_default (h), sname); if (ap) { printf ("Authentication done...\n"); rc = 0; } else rc = 1; shishi_done (h); return rc; } shishi-1.0.3/examples/server.c0000644000000000000000000001310514273601533013165 00000000000000/* server.c --- Sample server with authentication using Shishi. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #define SERVICE "sample" /* XXX remove this */ const char *program_name = "client"; static int doit (Shishi * h, Shishi_ap * ap, int verbose) { Shishi_asn1 asn1safe; Shishi_safe *safe; char *userdata; size_t userdatalen; int res; printf ("Application exchange start. Press ^D to finish.\n"); while ((res = shishi_safe_parse (h, stdin, &asn1safe)) == SHISHI_OK) { if (res != SHISHI_OK) { fprintf (stderr, "Could not read SAFE:\n%s\n%s\n", shishi_strerror (res), shishi_error (h)); return 1; } res = shishi_safe (h, &safe); if (res != SHISHI_OK) { fprintf (stderr, "Could not create SAFE:\n%s\n%s\n", shishi_strerror (res), shishi_error (h)); return 1; } shishi_safe_safe_set (safe, asn1safe); res = shishi_safe_verify (safe, shishi_ap_key (ap)); if (res != SHISHI_OK) { fprintf (stderr, "Could not verify SAFE:\n%s\n%s\n", shishi_strerror (res), shishi_error (h)); return 1; } printf ("Verified SAFE successfully...\n"); res = shishi_safe_user_data (h, asn1safe, &userdata, &userdatalen); if (res != SHISHI_OK) { fprintf (stderr, "Could not extract user data:\n%s\n%s\n", shishi_strerror (res), shishi_error (h)); return 1; } userdata[userdatalen] = '\0'; printf ("user data: `%s'\n", userdata); } if (ferror (stdin)) { printf ("error reading stdin\n"); return 1; } return 0; } static Shishi_ap * auth (Shishi * h, int verbose, const char *cname, const char *sname) { Shishi_key *key; Shishi_ap *ap; Shishi_asn1 apreq; char *buf; size_t buflen; int rc; printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); /* Get key for the server. */ key = shishi_hostkeys_for_server (h, sname); if (!key) { printf ("could not find key: %s\n", shishi_error (h)); return NULL; } if (verbose) shishi_key_print (h, stderr, key); /* Read Authentication request from client */ printf ("Waiting for client to authenticate itself...\n"); rc = shishi_apreq_parse (h, stdin, &apreq); if (rc != SHISHI_OK) { printf ("could not read AP-REQ: %s\n", shishi_strerror (rc)); return NULL; } /* Create Authentication context */ rc = shishi_ap (h, &ap); if (rc != SHISHI_OK) { printf ("Could not create AP: %s\n", shishi_strerror (rc)); return NULL; } /* Store request in context */ shishi_ap_req_set (ap, apreq); /* Process authentication request */ rc = shishi_ap_req_process (ap, key); if (rc != SHISHI_OK) { printf ("Could not process AP-REQ: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); rc = shishi_authenticator_client (h, shishi_ap_authenticator (ap), &buf, &buflen); printf ("Client name (from authenticator): %.*s\n", (int) buflen, buf); free (buf); rc = shishi_encticketpart_clientrealm (h, shishi_tkt_encticketpart (shishi_ap_tkt (ap)), &buf, &buflen); printf ("Client name (from encticketpart): %.*s\n", (int) buflen, buf); free (buf); rc = shishi_ticket_server (h, shishi_tkt_ticket (shishi_ap_tkt (ap)), &buf, &buflen); printf ("Server name (from ticket): %.*s\n", (int) buflen, buf); free (buf); /* User is authenticated. */ printf ("User authenticated.\n"); /* Authenticate ourself to client, if request */ if (shishi_apreq_mutual_required_p (h, apreq)) { Shishi_asn1 aprep; printf ("Mutual authentication required.\n"); rc = shishi_ap_rep_asn1 (ap, &aprep); if (rc != SHISHI_OK) { printf ("Error creating AP-REP: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_encapreppart_print (h, stderr, shishi_ap_encapreppart (ap)); shishi_aprep_print (h, stdout, aprep); /* We are authenticated to client */ } return ap; } int main (int argc, char *argv[]) { Shishi *h; Shishi_ap *ap; char *sname; int rc; printf ("sample-server (shishi " SHISHI_VERSION ")\n"); if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init_server (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } if (argc > 1) sname = argv[1]; else sname = shishi_server_for_local_service (h, SERVICE); ap = auth (h, 1, shishi_principal_default (h), sname); if (ap) rc = doit (h, ap, 1); else rc = 1; shishi_done (h); return rc; } shishi-1.0.3/examples/Makefile.am0000644000000000000000000000217014273602721013547 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib LDADD = ../lib/gl/libgnu.la ../lib/libshishi.la $(LTLIBINTL) noinst_PROGRAMS = client client-cksum client-safe client-priv server shishi-1.0.3/examples/client-safe.c0000644000000000000000000001241514273601533014054 00000000000000/* client-safe.c --- Sample Shishi authenticated client with integrity * protected application data exchange. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #define SERVICE "sample" /* XXX remove this */ const char *program_name = "client"; static int doit (Shishi * handle, Shishi_ap * ap, int verbose) { char line[BUFSIZ]; int res; printf ("Application exchange start. Press ^D to finish.\n"); while (fgets (line, sizeof (line), stdin)) { Shishi_safe *safe; line[strlen (line) - 1] = '\0'; printf ("read: %s\n", line); res = shishi_safe (handle, &safe); if (res != SHISHI_OK) { printf ("Could not build SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_set_user_data (handle, shishi_safe_safe (safe), line, strlen (line)); if (res != SHISHI_OK) { printf ("Could not set application data in SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_build (safe, shishi_ap_key (ap)); if (res != SHISHI_OK) { printf ("Could not build SAFE: %s\n", shishi_strerror (res)); return res; } res = shishi_safe_print (handle, stdout, shishi_safe_safe (safe)); if (res != SHISHI_OK) { printf ("Could not print SAFE: %s\n", shishi_strerror (res)); return res; } } if (ferror (stdin)) { printf ("error reading stdin\n"); return 1; } return 0; } static Shishi_ap * auth (Shishi * h, int verbose, const char *cname, const char *sname) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return NULL; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return NULL; } /* Build Authentication request */ rc = shishi_ap_req_build (ap); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return NULL; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* Authentication ourself to server */ shishi_apreq_print (h, stdout, shishi_ap_req (ap)); /* Note: to get the binary blob to send, use: * * char *out; int outlen; * ... * rc = shishi_ap_req_der (ap, &out, &outlen); * ... * write(fd, out, outlen); */ /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { Shishi_asn1 aprep; printf ("Waiting for server to authenticate itself...\n"); rc = shishi_aprep_parse (h, stdin, &aprep); if (rc != SHISHI_OK) { printf ("Cannot parse AP-REP from server: %s\n", shishi_strerror (rc)); return NULL; } rc = shishi_ap_rep_verify_asn1 (ap, aprep); if (rc == SHISHI_OK) printf ("AP-REP verification OK...\n"); else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return NULL; } /* The server is authenticated. */ printf ("Server authenticated.\n"); } /* We are now authenticated. */ printf ("User authenticated.\n"); return ap; } int main (int argc, char *argv[]) { Shishi *h; Shishi_ap *ap; char *sname; int rc; printf ("sample-client (shishi " SHISHI_VERSION ")\n"); if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } if (argc > 1) sname = argv[1]; else sname = shishi_server_for_local_service (h, SERVICE); ap = auth (h, 1, shishi_principal_default (h), sname); if (ap) rc = doit (h, ap, 1); else rc = 1; shishi_done (h); return rc; } shishi-1.0.3/Makefile.in0000644000000000000000000027451014273615653011763 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = shisa.conf shishi.conf shishi.pc shishi.skel CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(confdir)" "$(DESTDIR)$(pkgconfigdir)" \ "$(DESTDIR)$(skeldir)" DATA = $(conf_DATA) $(pkgconfig_DATA) $(skel_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \ config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/shisa.conf.in $(srcdir)/shishi.conf.in \ $(srcdir)/shishi.pc.in $(srcdir)/shishi.skel.in \ $(top_srcdir)/build-aux/ar-lib $(top_srcdir)/build-aux/compile \ $(top_srcdir)/build-aux/config.guess \ $(top_srcdir)/build-aux/config.rpath \ $(top_srcdir)/build-aux/config.sub \ $(top_srcdir)/build-aux/install-sh \ $(top_srcdir)/build-aux/ltmain.sh \ $(top_srcdir)/build-aux/missing ABOUT-NLS AUTHORS COPYING \ ChangeLog INSTALL NEWS README THANKS build-aux/ar-lib \ build-aux/compile build-aux/config.guess \ build-aux/config.rpath build-aux/config.sub build-aux/depcomp \ build-aux/install-sh build-aux/ltmain.sh build-aux/mdate-sh \ build-aux/missing build-aux/texinfo.tex build-aux/ylwrap DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --without-libgcrypt # git-version-gen EXTRA_DIST = cfg.mk maint.mk $(top_srcdir)/.version SUBDIRS = po lib db src tests doc extra examples ACLOCAL_AMFLAGS = -I m4 -I lib/gl/m4 -I src/gl/m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = shishi.pc confdir = $(CONFDIR) conf_DATA = shishi.conf shisa.conf skeldir = $(SKELDIR) skel_DATA = shishi.skel BUILT_SOURCES = $(top_srcdir)/.version distuninstallcheck_listfiles = find . -type f -print | grep -v -e shishi.keys -e 0.key all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 shisa.conf: $(top_builddir)/config.status $(srcdir)/shisa.conf.in cd $(top_builddir) && $(SHELL) ./config.status $@ shishi.conf: $(top_builddir)/config.status $(srcdir)/shishi.conf.in cd $(top_builddir) && $(SHELL) ./config.status $@ shishi.pc: $(top_builddir)/config.status $(srcdir)/shishi.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ shishi.skel: $(top_builddir)/config.status $(srcdir)/shishi.skel.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-confDATA: $(conf_DATA) @$(NORMAL_INSTALL) @list='$(conf_DATA)'; test -n "$(confdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(confdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(confdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(confdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(confdir)" || exit $$?; \ done uninstall-confDATA: @$(NORMAL_UNINSTALL) @list='$(conf_DATA)'; test -n "$(confdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(confdir)'; $(am__uninstall_files_from_dir) install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) install-skelDATA: $(skel_DATA) @$(NORMAL_INSTALL) @list='$(skel_DATA)'; test -n "$(skeldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(skeldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(skeldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(skeldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(skeldir)" || exit $$?; \ done uninstall-skelDATA: @$(NORMAL_UNINSTALL) @list='$(skel_DATA)'; test -n "$(skeldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(skeldir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(confdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(skeldir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-confDATA install-pkgconfigDATA \ install-skelDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-confDATA uninstall-pkgconfigDATA \ uninstall-skelDATA .MAKE: $(am__recursive_targets) all check install install-am \ install-data-am install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-confDATA install-data install-data-am \ install-data-hook install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgconfigDATA install-ps install-ps-am \ install-skelDATA install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-confDATA uninstall-pkgconfigDATA \ uninstall-skelDATA .PRECIOUS: Makefile $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ dist-hook: gen-ChangeLog echo $(VERSION) > $(distdir)/.tarball-version .PHONY: gen-ChangeLog gen-ChangeLog: $(AM_V_GEN)if test -d .git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog > \ $(distdir)/cl-t && \ { rm -f $(distdir)/ChangeLog && \ mv $(distdir)/cl-t $(distdir)/ChangeLog; } \ fi install-data-hook: @echo Initializing database and creating host key... if test ! -d $(DESTDIR)$(DBDIR); then \ if mkdir -m 0700 -p $(DESTDIR)$(DBDIR); then \ if test ! -f $(DESTDIR)$(KEYDIR)/shishi.keys; then \ if $(DESTDIR)$(bindir)/shisa$(EXEEXT) -a > \ $(DESTDIR)$(KEYDIR)/shishi.keys; then \ echo Successfully created database and host key.; \ else \ echo Unable to create database, see $(DESTDIR)$(KEYDIR)/shishi.keys.; \ fi; \ else \ echo Key file $(DESTDIR)$(KEYDIR)/shishi.keys already exist.; \ fi; \ else \ echo Could not create directory root$(DESTDIR)$(DBDIR).; \ fi; \ else \ echo Database root $(DESTDIR)$(DBDIR) already exist.; \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/ChangeLog0000644000000000000000000035656314273616165011500 000000000000002022-08-07 Simon Josefsson version 1.0.3 * NEWS: Record release date. Modernize project. 2021-01-09 Simon Josefsson Restore valgrind fix. Ignore more. Fix build errors with new gnulib. Bump required automake/gettext versions and update libtool usage. Update gnulib files. Run autoupdate. Need AC_PREREQ for gnulib. Fix manual copyright years. Update copyright years. Fix sc_prohibit_double_semicolon. 2021-01-08 Simon Josefsson Update GTK-DOC macros. 2015-09-25 Mats Erik Andersson Update Winsocks interface files. Fetch files from Gnulib to initialize Winsocks. Upstream followed the suggestions as reported to us in the message: http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html Update gcrypt detection with m4-macro from gnulib. Building with libgcrypt of version 1.6.0 or later fails without this updated probing. 2014-09-14 Mats Erik Andersson Two more test cases with ARCFOUR. Test correctness of decryption using shishi_arcfour(). 2014-09-06 Simon Josefsson Update copyright years. Add. Sync with TP. Fix warning flags. Ignore more. Update gnulib files. Ignore more. Generated. 2014-09-02 Mats Erik Andersson Examine every use of syslog(). Redirect many messages using an explicit LOG_DAEMON, messages that clearly are of no security concern. Also change some priorities for better transparence and easier suppression of debugging traces. 2014-07-25 Mats Erik Andersson API documentation crypto: defaultcksumtype is signed integer type. The Redmond fraction enforces upon us a negative value for SHISHI_ARCFOUR_HMAC_MD5 in the Kerberos standard. Adapt to this fact, thus silencing a compiler warning. gdoc: Let texinfo mode detect environment. Let the dollar sign signify an environment variable in TexInfo mode. This influences all documentation, since our typeset formats are derived off TexInfo. 2014-07-12 Mats Erik Andersson Documentation update. API documentation. 2014-07-11 Mats Erik Andersson gdoc: Render principal strings in all modes. An identifier like "me@EX.ORG" was never captured correctly, since it was parsed as a parameter identifier. 2014-07-10 Mats Erik Andersson gdoc: Fine tuning of text and texinfo mode. Indent text mode paragraphs. In texinfo mode, prevent line breaks in parameter phrase; avoid blank lines between parameter descriptions. Coding style: avoid eval, prefer hash referencing. 2014-07-06 Mats Erik Andersson Function documentation. 2014-07-05 Mats Erik Andersson gdoc: Tune the LaTeX output. Now that blank line detection works reliably, emit the macro '\newline' when called for. Also emit '\pagebreak' of low weight at the end of each function. Integer types on 64-bit systems. Aurelien Jarno uncovered an issue in the Debian package of version 1.0.2 when libtasn1 expects an integer pointer. Use a variation and add another integer size fix. Adapt to libgnutls28. Avoid depreciated typedefs used by older versions of libgnutls. Add elliptic key exchange ANON-ECDH to the priority list. 2014-07-04 Mats Erik Andersson gdoc: No blank line without previous content. Make sure some text has been accepted before applying a blank line replacement. Suppress warnings in function listing mode. While answering a mode query, reply with a bare name list for easy scripting. gdoc: Informational output. Count lines in each file, not the processed total. Include name of file in warnings and infos. gdoc: Strictures and warnings. Code checked and modified to apply strictures. 2014-06-27 Mats Erik Andersson gdoc: Missing semicolon. gdoc: Improved coverage in LaTeX mode. In particular, the libshisa documentation compiles without errors under LaTeX. 2014-06-26 Mats Erik Andersson Updated API docs, mainly for shisa. Also suppress empty argument section in man pages. 2014-06-25 Mats Erik Andersson gdoc: Refine HTML mode to validate. gdoc: An additional warning condition. Add a simple checker of Docbook formatted output. gdoc: Positioning of brackets for arrays. Print the brackets, a characteristic of an array parameter, after the name, not before. gdoc: Improved mode selector. gdoc: Mend variadic parameters and arrays. The parser broke down on variadic parameters. Handle arrays of finite length identical to those of indefinite length. In texinfo mode, quote parameters using '@var', and always print the section title. In text mode, pass all para- meter descriptions through the highlighter. Strip '$' from the name of environmental variables. gdoc: Validating Docbook mode. Make an empty parameter set equal to `void'. No interpolation after text parsing. Beware of slashes in replacement pattern. Refine Docbook formatter to give valid output. gdoc: Document this tool using POD. gdoc: Common corner cases with HTML and SGML. Insertion of XML marks introduces recurring problems during HTML and DOCBOOK production. In addition, ampersands must be escaped. gdoc: Handle options with Getopt::Long. 2014-06-14 Mats Erik Andersson gdoc chokes on hash key order. In texinfo mode recursive change of @ is corruptive. Documentation now builds on Debian with perl v5.18.2. Sync gdoc with libidn. 2013-09-26 Mats Erik Andersson pmccabe2html: Update from gnulib. Our changes were accepted. Now `cyclo-shishi.html' cleanly passes a test executed with Xmllint. 2013-09-18 Mats Erik Andersson Mention PAM in configuration summary. pmccabe2html: Portability issue. Replace systime() and strftime() with command pipes, assigning one variable for each purpose. The functions are only available in gawk. Fix also two mistakes in HTML tags, thus again producing a renderable page. 2013-09-15 Mats Erik Andersson tests: Shell assignment syntax. Malformed assignment for specifying test environment. Was written with white space. 2013-05-22 Mats Erik Andersson More formatting of size_t. Replace format directive "%ld" by "%zu" for size_t. Uncovered on 32-bit systems. 2013-05-21 Mats Erik Andersson Format string directives for size_t. Many format string warnings on 64-bit systems are mended. Most of them have "%d" replaced by "%zu". A few other conversions are made. tests: Small fixes. Setting LD_LIBRARY_PATH in TESTS_ENVIRONMENT avoids false negatives on NetBSD. Fix multiple format strings to use "%zu" when printing type size_t. 2013-05-15 Mats Erik Andersson Parse timestamp in keytab conversion. 2013-05-08 Mats Erik Andersson Protect against null dereferencing. Verbose timestamp info. Better format string when verbosely reporting on timestamps in a keytab. 2013-04-19 Mats Erik Andersson shishid: Redirect debug logging. Do not pollute the facility LOG_AUTH with messages of severity LOG_DEBUG stating traffic size or socket properties. Send it to LOG_DAEMON instead. Doc fix. 2013-04-12 Mats Erik Andersson pam_shishi: Three module options. Implement options 'debug', 'realm=', and 'principal=' for service control in authentication facility. Add minimal syslog trace for Linux-PAM and OpenPAM. Use $(MAKE) for portability. 2013-04-11 Mats Erik Andersson pam_shishi: Portability changes. Leave the so-called static module set-up to the system specific headers. In particular, do not set PAM_STATIC, and set PAM_EXTERN to empty at most. Builds in Solaris. 2013-04-05 Mats Erik Andersson Build examples portably. Replacement headers from recent Gnulib need definitions in for portable building. Dist builds out-of-tree. 2013-04-03 Simon Josefsson Update for 1.0.2. Update for 1.0.1. Bump versions. Fix web manual. Generated. Version 1.0.2. Copy devhelp2 file. Drop AC_COPYRIGHT, it is just one more place to keep updated. Drop internal minitasn1 copy. Add libtool -shared when building pam_shishi. Suggested by Russ Allbery . Generated. 2013-04-03 Mats Erik Andersson Locate res_query and libresolv. For portability res_query must be searched in libc, and in libresolv. The latter need not even exist on systems such as BSD. 2013-04-03 Simon Josefsson Ignore more. 2013-04-03 Mats Erik Andersson Documentation update. Inclusion paths for out-of-tree. 2013-04-03 Simon Josefsson Don't use deprecated libtasn1 features. Require automake 1.11 or later. Drop automake -Werror. 2013-04-03 Mats Erik Andersson Port to recent automake. 2013-04-03 Simon Josefsson Sync with TP. Fix syntax-check nits. Bump copyright years. Update gnulib files. 2012-09-06 Simon Josefsson Add. Fix warning. 2012-09-06 Mats Erik Andersson shishid: Use single stacked AF_INET6 sockets. On dual stacked hosts, running an AF_INET6 wildcard socket blocks AF_INET wildcards. Make it single stacked using IPV6_V6ONLY instead. Configuration parsing of suboptions. The library call getsubopt() is not portable enough to rely on a catch all case `-1'. In particular, FreeBSD was not able to parse `kdc-realm=EX.ORG,localhost' at all. 2012-08-24 Mats Erik Andersson Portability issues for BSD make. 2012-08-18 Simon Josefsson Add. 2012-08-17 Simon Josefsson Use LOG_AUTH instead of LOG_AUTHPRIV. 2012-08-16 Simon Josefsson Use LOG_AUTHPRIV for shishid. Doc fix. Fix salt derivation, reported by Mats. Test shishi_derive_default_salt more, to catch regression. 2012-08-15 Simon Josefsson Doc fix. Fix encticketpart cname encoding bug, reported by Mats. Check regression for encticketpart cname encoding bug. Doc fix. Only use LOG_PERROR when verbose. Drop useless syslog messages, based on report from Mats. Improve error messages. Improve error messages, from Mats. Improve error messages, suggested by Mats. Doc fix from Mats Erik Andersson . 2012-08-10 Simon Josefsson Improve res_query detection. Reported by Eray Aslan . 2012-08-08 Mats Erik Andersson Issues with libresolv. Some BSD variants must use before including . Additionally, res_query() is present in libc on most BSD systems. shishi.texi: Grammar and spelling. Support LOGNAME in guessing principals. Segfault in config list parsing. Authentication type k5login. Repair the completely broken k5login type for authentication of user access. 2012-06-11 Simon Josefsson Add. Silence compiler warnings. Update gnulib files. Bump versions. Libtasn1 2.13. 2012-03-12 Simon Josefsson Generated. Version 1.0.1. Use libtasn1 2.11. 2012-02-08 Simon Josefsson Mention fixes. Disable strict valgrind mem leak testing. Fix memory leaks. Don't use obsolete GnuTLS interfaces. Sync file from gnulib. Update copyright headers. Update gnulib files. 2011-11-22 Simon Josefsson Fix compiler warning. Remove specifications that are widely available. Mention make. Fix links in cyclo output. Update GTK-DOC infrastructure. Update gnulib files and fix usage. 2010-11-16 Simon Josefsson Rename getdate.texi. Add gtk-doc.make. Add, to avoid syntax-check warnings. Fix getdate.texi filename. Add. Sync with TP. Update gnulib files. 2010-05-27 Simon Josefsson Doc fix. 2010-05-20 Simon Josefsson Update announce.txt for v1.0.0. Bump version. Fix cyclo web rule. Generated. Make it build. Version 1.0.0. Fix. Add cyclomatic code complexity chart. Update GTK-DOC files to enable PDF manual. Update gnulib files, use valgrind-tests module. 2010-04-29 Simon Josefsson Update gnulib files. 2010-04-25 Simon Josefsson Update gnulib files. 2010-04-22 Simon Josefsson Ignore more. Use valgrind -q. Fix syntax-check nit. minitasn1: Internal copy upgraded to GNU Libtasn1 v2.6. Indent code. Update gnulib files. 2010-04-14 Simon Josefsson Doc typo fixes. Add. Doc typo fixes. Indent code. Update gnulib files. 2010-04-13 Simon Josefsson Update gnulib files. Fix syntax-check warnings. Fix building with --disable-starttls. Reported by Johan van Selst in . 2010-03-30 Simon Josefsson Prepare for non-alpha upload. Bump versions. Update. Generated. Version 0.0.43. Update gnulib files. 2010-03-23 Simon Josefsson Fix. Need to do SO_REUSEADDR before bind. Improve debug output. Upgrade TCP extension logic. Use RFC 5021 starttls negotiation. Don't verify cert if we don't have a CA. shishid: Add --no-tls parameter to disable TLS support. shishid: Improve server listening logic. Print proper addresses. 2010-03-22 Simon Josefsson Remove failed listeners from list properly. Fix lintian typo. Fix lintian typo. Add. Generated. Add $(LIBSOCKET), for MinGW. Update gnulib files. Add. Update gnulib files. Ignore more. shishid: Support IPv6 by using getaddrinfo. Add error explanation. Build fixes. Improve retry counter and error codes. Add. Rewrite network handling to supprt IPv6 and delay name resolution. Reduce unnecessary noise. Const'ify shishi_kdc_sendrecv*. Iterate through all KDC addresses for direct sends. Only attempt to use IPv6 if local system has IPv6. Add. Update gnulib files. 2010-03-18 Simon Josefsson Mention gengetopt. 2010-03-17 Simon Josefsson Avoid printing garbage message for UDP and reduce noice for TCP. 2010-03-15 Simon Josefsson Fix lintian typos. Bump versions. Add. Generated. Version 0.0.42. Upgrade libtasn1 to v2.5. Fix last commit. Add. Add review-diff target. Add index to GTK-DOC manual. Generated. 2010-03-10 Simon Josefsson (shishi_ap_authenticator_cksumdata): Also check @out. (shishi_ap_authenticator_cksumdata): Return requested size. Add. libshishi: Fix bug where '3des' is parsed as 'des'. 2010-03-08 Simon Josefsson Add shishi_keys_from_file and keytab2shishi -R parameter. libshishi: Add APIs to save keys on keytab format. 2010-03-03 Simon Josefsson Work around strict aliasing warning. Update gnulib files. 2010-02-03 Simon Josefsson link libshisa with -lrt for clock_gettime in libshishi. Don't use gettime where gettimeofday will do. Update gnulib files. 2010-01-26 Simon Josefsson Update gnulib files. 2010-01-19 Simon Josefsson Bump versions. Generated. Version 0.0.41. 2010-01-18 Simon Josefsson Fix copyright years. Fix license. Fix syntax-check rule. Use libtasn1 2.4. Update gnulib files. 2010-01-12 Simon Josefsson Make it build. Update gnulib files. Update gnulib files. Fix dup2. Add. Update gnulib files. Add a quick-random configuration keyword. Add. Fix syntax-check stuff. Fix syntax-check stuff. Upgrade libtasn1 to version 2.3. Update gnulib files. 2009-12-29 Simon Josefsson Update gnulib files. Update gnulib files. Update gnulib files. 2009-08-18 Simon Josefsson Bump version. 2009-07-29 Simon Josefsson Typo. 2009-07-23 Simon Josefsson Update gnulib files. 2009-06-17 Simon Josefsson Typo. 2009-05-20 Simon Josefsson Bump versions. Fix -Werror. Use output-def from gnulib. Fix git usage. Update gnulib files. 2009-05-08 Simon Josefsson Fix -Werror handling. 2009-05-06 Simon Josefsson Fix build failure on Ubuntu 8.04. Add. 2009-04-03 Simon Josefsson Generated. Version 0.0.40. Need #include. Need WSAStartup. Fix -I's. Need to link with -lws2_32. Fix libgcrypt test. Revert gethostname patch. Fix. 2009-03-31 Simon Josefsson Update gnulib files. Add. libshisa needs to link to libshishi for xalloc_die etc (sigh!). The libcmd* libraries need gl/libgnu for getopt. Add socket gnulib modules, for mingw. Need strerror in lib/. Fix. Bump version. 2009-03-30 Simon Josefsson Bump versions. Fix typo that prevented shisa from working. Use gnulib for address report. More version printing. Generated. Version 0.0.39. Add code coverage rules. Fix bug address. Need ltlibtasn1 before ltlibgnutls because the latter drags in old libtasn1. Only warn when using gcc. Don't use wildcards. Update gnulib files. Fix. More debug output. Update gnulib files. 2009-03-04 Simon Josefsson Fix. Fix. Use symbol map for libshisa. Another typo. Fix typo. Use CFLAG_VISIBILITY. Update gnulib files. Fix version script filename. Use libtool -export-symbols-regex as fallback. Update gnulib files. 2009-02-26 Simon Josefsson Fix warning. Bump version. Fix. Add. Maintain ABIs even though functions aren't implemented properly yet. Bump versions. Generated. Version 0.0.38. Revert ABI change. Update PGP key. Modernize release targets. Bump copyright years. Clarify license version. Update to libtasn1 v1.8. 2009-02-25 Simon Josefsson Add. Update gnulib files. Limit amount of exported symbols. 2008-12-12 Simon Josefsson Fix css. 2008-12-11 Simon Josefsson String.h is included via internal.h. Update PGP key. Add. Need headers. Enable warnings in db/. Fix warnings. Compile examples with warning flags. Add file. Getsubopt is a cast mess. Fix more warnings. Slight ABI change on 64 platforms. Disable warning. Fix warning. Fix warnings. Add print attributes. Add low-crypto.h. Update gnulib files. Update gnulib files. Use manywarning module. Fix warnings. Update gnulib files. Remove code coverage, now in maint.mk. Update gnulib files. 2008-11-26 Simon Josefsson Don't use @@ substitutions. 2008-11-18 Simon Josefsson Fix gtk-doc bug. Fix gtk-doc bug. Upgrade libtasn1 to v1.7. Fix warnings. Fix warnings. 2008-11-12 Simon Josefsson Fix automake warnings. Use shared checks. Don't substitute in shishi.h. Fix warnings. Add -Wall. Use warnings module. Neatify. 2008-11-11 Simon Josefsson Update license. Use GFDL 1.3. Fix license and redoce code duplication. Fix --output-def test. Fix release targets. Modernize gtk-doc usage. Use modern check for --enable-ld-version-script. Add. Update from upstream. Modernize gnulib usage. Update gnulib files. Update gnulib files. 2008-10-15 Simon Josefsson Drop sys/poll.h, check not used. 2008-10-08 Simon Josefsson Remove. 2008-10-02 Simon Josefsson Fix Nicolas' description. 2008-09-10 Simon Josefsson Update gnulib files. 2008-08-21 Simon Josefsson Update gnulib usage. Update gnulib files. 2008-08-20 Simon Josefsson Don't copy archive to www dir. Use autobuild from gnulib. Update gnulib files. Fix URLs. 2008-08-06 Simon Josefsson Update gnulib files. 2008-06-30 Simon Josefsson Update gnulib files. 2008-06-24 Simon Josefsson Fix. Fix ypo. Bump versions. Reorder uploads. Generated. Version 0.0.37. Fix typo. Fix. Fix. Typos. Fix typos and remove obsolete stuff. Doc fix. Update gnulib files. 2008-06-19 Simon Josefsson Fix building examples. Add. Use new API. Generated. Doc fix. New functions to set a password prompt callback. You register the callback using shishi_prompt_password_callback_set and can retrieve the current callback using shishi_prompt_password_callback_get. The callback function should follow the shishi_prompt_password_func function prototype. The shishi_prompt_password function has been updated to call the callbacks, if registered. Inspired by discussion with Graham Shaw . libshishi: New ticketset hint flag SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE. When this flag is passed to ticketset functions, it will never query the user for a password. Inspired by discussion with Graham Shaw . Update gnulib files. 2008-06-02 Simon Josefsson Update gnulib files. 2008-05-20 Simon Josefsson Update gnulib files. 2008-05-11 Simon Josefsson Fix warnings. Fix warnings. Fix warnings. Fix warnings. Regenerated. Pull in config.h. Generated. Drop obsolete _SHISHI_HAS_LIBTASN1_H. Reorder. Cleanup libtasn1.h dependency in diskio.c. 2008-05-05 Simon Josefsson Regenerated. Simplify man page creating to allow easier diff review. Dist more files. Rename .cvscopying to .clcopying. Update gnulib files. 2008-04-24 Simon Josefsson Add. Add. Dist gdoc-error. Reported by Graham Shaw . 2008-04-23 Simon Josefsson Add. Add. Avoid *.po merge conflicts and --no-location. Add. Update to libtasn1 v1.4. Update gnulib files. (do_preauth): Don't ask for password if we already have it. Reported by Graham Shaw in . 2008-04-02 Simon Josefsson Drop defines.h, not used any more. 2008-04-01 Simon Josefsson Update gnulib files. 2008-03-25 Simon Josefsson Fix config.rpath hack. Update gnulib files. 2008-03-10 Simon Josefsson Update gnulib files. 2008-02-25 Simon Josefsson Bump versions. Update libtasn1 version. Update gnulib files. 2008-02-14 Simon Josefsson Generated. Version 0.0.36. Add. Bump versions. Update gnulib files. Doc fix. Doc fix. 2008-02-07 Simon Josefsson Generated. Version 0.0.35. Add. Add. Sync with TP. 2008-02-06 Simon Josefsson Add. Brace expansion is not POSIX portable. Update gnulib files. 2008-01-31 Simon Josefsson Fix debug output for direct sends. 2008-01-17 Simon Josefsson Fix messages when creating ~/.shishi. Add. (shishi_cfg_from_file): Don't print warning (done by init.c). Update gnulib files. 2008-01-16 Simon Josefsson Bump versions. Remove unused variables. Silence warnings. Generated. Fix git-tag invocation. Remove. Version 0.0.34. Add. Use read_binary_file to read keytabs. Need utils.h for hexprint. Need larger buffers, BUFSIZ is 512 on MinGW. Fix debug message. Specify our own buffer size, BUFSIZ is 512 bytes on MinGW and we need more. Fix error messages. Need prototypes for hexprint. Need config.h for getline prototype. Check line length when removing CRLFetc. Don't print d3 as ffffffd3. Update gnulib files. When reading data, ignore trailing CR, LF, TAB and SPC. This fixes a problem on MinGW because the CR and LF tests were reversed in the old code. Fix crash. Need gnulib's getaddrinfo.h for prototypes. Update gnulib files. Add. Only build shishid if we need to. Add automake conditional for disabling shishid when there is no syslog. Update gnulib files. Fix. Add. Avoid crash. Simplify #include's. Better input parameter validation. (shishi_tkts_size): Don't crash on NULL parameter. Test to remove broken tzname declaration. Fixes MinGW. 2008-01-15 Simon Josefsson Don't use getuid unless we have it. Check for getuid. Nedd minmax.h. Avoid T_SRV and T_TXT defines, we have our own anyway. Drop T_SRV, not used. Drop pwd.h, only needed in authorize.c. Check for getpwnam. Protect against missing getpwnam, for MinGW. Don't use arpa/nameserv.h stuff, for MinGW. Don't use syslog if we don't have it. Add. Don't use arpa/nameserv.h stuff, for MinGW. Add SHISHI_DNS_IN. Update gnulib files. More --version fixes. More --version fixes. Drop DISTCLEANFILES. Try without unnecessary libraries. Need gl/libgnu.la. Need -Igl/ too. Add db/gl/ to build infrastructure. Cleanup. Cleanup. Cleanup. Add db/gl/ to build infrastructure. Add db/gl/ to build infrastructure. Use areadlink instead of xreadlink. Move gnulib stuff needed only by libshisa to db/gl/. Fix. Move getopt module to src/gl. Move progname module to src/gl. Move progname module to src/gl. Don't duplicate stuff. Move locale module to src/gl. Don't duplicate stuff. Move error module to src/gl. Simplify. Fix typo. Don't duplicate stuff. Don't duplicate stuff. Use version-etc module. Create new gnulib directory for non-library stuff. Improve project name. Update gnulib files. Clarify GPL version. Update update-po target. Simplify copyright years in man pages. Line wrap. Simplify locale.h handling via gnulib. Update #include's. Simplify time.h handling via gnulib. Simplify signal.h handling via gnulib. Simplify arpa/inet.h handling via gnulib. Simplify netinet/in.h handling via gnulib. Simplify sys/time.h handling via gnulib. Create libshishi-XX.def for MinGW. Update gnulib files. 2007-12-19 Simon Josefsson Update gnulib files. 2007-12-11 Simon Josefsson Need timespec.h for gettime. Update gnulib files. Remove config.rpath hack. Use gettext 0.17. Bump versions. Add. 2007-10-15 Simon Josefsson Add. 2007-10-13 Simon Josefsson Add. 2007-10-08 Simon Josefsson Update gnulib files. Remove .cvsignore's. 2007-09-25 Simon Josefsson Add. Add. 2007-09-14 Simon Josefsson Generated. Version 0.0.33. Update gnulib files. 2007-09-13 Simon Josefsson Add. Add. Store password for subsequent PAM modules that use try_first_pass. Reported by Jack Bates . Add. Don't echo password to console (untested patch). Reported by Jack Bates . 2007-09-03 Simon Josefsson Revert. Remove. Fix. Add. Sync with TP. Add. Don't include built manuals in source archive (they are available online). 2007-08-31 Simon Josefsson Drop gnits mode. 2007-08-24 Simon Josefsson No need for getline.h. No need for getline.h. Update gnulib files. 2007-08-18 Simon Josefsson Bump versions. Use gpl-3.0 gnulib module. Update gnulib files. 2007-08-13 Simon Josefsson Add. 2007-07-20 Simon Josefsson Add. 2007-07-12 Simon Josefsson Add. Add. 2007-06-29 Simon Josefsson Generated. Version 0.0.32. Add. Add GPLv3. Bump copyright year. Update gnulib files. Sync with TP. Sync with TP. Add 2007 copyright year. Add. Update gnulib files. Add GPLv3, since automake installs GPLv2. 2007-06-27 Simon Josefsson Typos. No need for inetutils.diff. Change GPLv2+ to GPLv3+. Change GPLv2+ to GPLv3+. Change GPLv2+ to GPLv3+. Change GPLv2+ to GPLv3+. Remove, not needed anymore. Fix. Change GPLv2+ to GPLv3+. Change GPLv2+ to GPLv3+. Add. Change GPLv2+ to GPLv3+. Bump versions. Update PGP key. Use GPL license (as in emacs). 2007-06-12 Simon Josefsson Reorder configuration file reading. Now the system config file is read first, then user configuration, then ticket file. Print debug info, not warning if ticket file doesn't exist. Absent ticket isn't critical during initialization. Reported by Josh Triplett , Debian#423944. 2007-06-11 Simon Josefsson Generated. Version 0.0.31. Add. Add *.po files too. Sync with TP. Sync with TP. Add. Update. Try again to work around line numbers in *.po. 2007-06-08 Simon Josefsson iUpdate. Revert --no-location change, it made distcheck fail. Change cvs commands to git commands. 2007-06-07 Simon Josefsson Sync with TP. Revert one --no-location. Try to fix *.po conflicts. 2007-05-23 Simon Josefsson Update. 2007-05-02 Simon Josefsson Add. 2007-04-16 Simon Josefsson Update. Update. Update. 2007-04-11 Simon Josefsson (_shishi_crypto_init): Call gc_init. Need --with-libgcrypt. 2007-03-13 Simon Josefsson *** empty log message *** Bump gettext version. Update. Use new xreadlink interface. *** empty log message *** Remove unneeded gnulib headers. Reinstall config.rpath. Use build-aux/. Update. Update Bump versions. Use build-aux/. 2007-03-09 Simon Josefsson Add. 2007-03-07 Simon Josefsson Add. Add. 2007-03-06 Simon Josefsson Add. 2007-02-28 Simon Josefsson Add. 2007-02-25 Simon Josefsson Add. 2007-02-21 Simon Josefsson Add. 2007-01-19 Simon Josefsson *** empty log message *** Update. Update. Add. Add old stuff. 2007-01-12 Simon Josefsson Make it compile. Add x509cafile variable. Verify CA in client, suggested by Alberto Fondi . 2006-12-26 Simon Josefsson Add. 2006-11-17 Simon Josefsson Update. Bump versions. 2006-11-11 Simon Josefsson Add. 2006-11-06 Simon Josefsson Clarify protocol strings ("tcp", "udp", "tls"), reported by Alberto Fondi . (shishi_cfg): Use strcasecmp for protocol strings, reported by Alberto Fondi . 2006-11-01 Simon Josefsson *** empty log message *** Bump versions, for 0.0.30. Version 0.0.30. Add. Send TCP length octet for TLS packets too. Fix length field. Fix length field. More krb5starttls -02 fixes. Implement the -02 protocol. Send 4-octet length field for TLS connections too. Upgrade to modern STARTTLS drafts. (shishi_enckdcreppart_nonce_set): Use shishi_asn1_write_uint32 to write the nonce. *** empty log message *** Fix. Add. Add nonce. Add, to detect uint32 reading regression. Fix last commit. Add. (shishi_asn1_read_int32): Convert buffer to integer correctly, to fix reading nonces, reported by Alberto Fondi . *** empty log message *** (shishi_tkts_default_ccache_set): Doc fix. Generated. Version 0.0.29. *** empty log message *** Add. Bump versions. Build ccache2shishi.1. *** empty log message *** Version 0.0.28. Sync with TP. 2006-10-31 Simon Josefsson Doc fix. Nicolas assigned his copyright to the FSF, see AUTHORS. Dist ccache.h. Update. Mention ccache2shishi. 2006-10-26 Simon Josefsson Add. 2006-10-25 Simon Josefsson Add. Update. 2006-10-23 Simon Josefsson Add. 2006-10-20 Simon Josefsson Update. Update. Add. 2006-10-17 Simon Josefsson Add. 2006-10-14 Simon Josefsson Add. 2006-10-10 Simon Josefsson Doc fix. Don't use variable name "constant", since gtk-doc warns about it. Update. 2006-10-04 Simon Josefsson Add. 2006-10-03 Simon Josefsson Further copyright discussions. More license discussions. 2006-09-29 Simon Josefsson Update. Fix warnings. Add. New field ccachedefault for default ccache filenames, used by tktccache.c. Add shishi_tkts_default_ccache_guess, shishi_tkts_default_ccache, shishi_tkts_default_ccache_set. Add work in progress, shishi_tkts_to_ccache_mem and shishi_tkt_to_ccache_mem. (shishi_tkts_add_ccache_mem): Set more fields, to make converted tickets work. Fix. Add. 2006-09-28 Simon Josefsson Add. *** empty log message *** Add ccache2shishi. Add. Update. 2006-09-27 Simon Josefsson Fix copyright years. 2006-09-26 Simon Josefsson Fix. Fix typos. (shishi_ctime): Add. Add ccache_pack. Don't mention Shishi in license template. Doc fix. Add storage for key data (optional). Use 'char*' instead of 'void*' for data. 2006-09-25 Simon Josefsson Add ccache_pack_credential. Use char* instead of void* for data buffers. Add ccache_pack_credential, and related helper functions. Use char* instead of void* for data buffers. Fix NUL checks, and their comments. 2006-09-23 Simon Josefsson Add ccache APIs. Doc fix. Ignore ccache.h. Update. Update from gnutls CVS. Update from libgcrypt. Update. Bump versions. *** empty log message *** Add ccache reader APIs. Add. Add. Update. Ticket flags are stored bit-swapped?! Fix typo. Save ticket pointers. 2006-09-21 Simon Josefsson Simplify valgrind. Test for valgrind. 2006-09-20 Simon Josefsson Update. Add. Change field name. 2006-09-18 Simon Josefsson Fix last commit. More debugging output for --debug. Fix comment. Separate out keytab stuff from keys.c to keytab.c. 2006-09-15 Simon Josefsson *** empty log message *** Generated. Version 0.0.27. Move keytab2shishi to sbin/. Update. Update. Update. *** empty log message *** Add keytab2shishi.1. Add. Update PGP key. Update. 2006-09-14 Simon Josefsson Use gnulib's gnupload. Add. Fix shishi-int.h for C99 platforms. Add. Update. 2006-09-13 Simon Josefsson Add. Dist ccache.txt. Add. Update. Fix GPL cross reference. Add. Bump required autoconf version to 2.60. Update. Add GPL. Move concept index last. 2006-08-19 Simon Josefsson Add. Fix. Update. 2006-08-11 Simon Josefsson Add. 2006-07-28 Simon Josefsson Add. 2006-07-14 Simon Josefsson Add. Use short program name in syslog. Simplify header checks. Simplify. Use gnulib unistd.h replacer. Fix. Use gnulib sys/* replacers. Use gnulib stdint. Update. 2006-07-11 Simon Josefsson Update. 2006-07-10 Simon Josefsson *** empty log message *** Add. Fix dia invocation. Update. Add. 2006-07-01 Simon Josefsson Add. 2006-06-29 Simon Josefsson Add. 2006-06-27 Simon Josefsson Use GNU-style warnings. Sync with gnutls. Add. 2006-06-26 Simon Josefsson Update to 0.3.5. Update. 2006-06-22 Simon Josefsson Make portable to mingw. 2006-06-21 Simon Josefsson Add. Fix. Update. 2006-06-20 Simon Josefsson Update dia call. Fix. 2006-06-13 Simon Josefsson Add. 2006-06-08 Simon Josefsson Add. 2006-06-06 Simon Josefsson Add. 2006-06-01 Simon Josefsson Use shishi_verbose. Fix. Fix. Fix. Add shishi_verbose. Add. Rewrite slightly. Update. 2006-05-31 Simon Josefsson Fix strfile->read-file. Update. 2006-05-30 Simon Josefsson Sync with TP. Dist keytab1.bin too. More debug. *** empty log message *** Add self test of keytab functions. *** empty log message *** Add keytab2shishi tool. Fix. Fix. Fix. Add. Fix. Fix principal name. Add. Add. Add. Fix. Fix. Read MIT keytab's. Fix mem leak. Add. 2006-05-28 Simon Josefsson Add SHISHI_KEYTAB_ERROR. Add. 2006-05-26 Simon Josefsson Typo. Add Shishi_keys. Add. Typo. Reset old tkts in shishi_tkts_done(). Deep-copy the tkt->key, so we can safely deallocate it. Fix mem leaks. Simplify. Fix logic in matching hostkeys, reported by Elrond. 2006-05-23 Simon Josefsson Fix mem leak, reported by Elrond. 2006-05-18 Simon Josefsson Update. Fix mem leak, from Elrond. 2006-05-17 Simon Josefsson Bump versions. Simplify, from Elrond. 2006-05-15 Simon Josefsson *** empty log message *** Generated. Version 0.0.26. 2006-05-12 Simon Josefsson Fix valgrind call. 2006-05-11 Simon Josefsson Add. Update. Fix. *** empty log message *** Add (not finished). Add. Use PAMDIR. Fix. Don't infrecurse PAMDIR definition. Update. Add --with-pam-dir. Remove unused indent target. Put things in $prefix/lib/security. Add -avoid-version for libtool. Update. 2006-05-10 Simon Josefsson Sync with TP. Add. Update.gl Add. 2006-05-06 Simon Josefsson Add. Add keytab.txt. Update. 2006-05-04 Simon Josefsson Update. Update. Simplify valgrind invocation. Getpwnam is POSIX, don't test for it. Don't check for getpwuid. Doc fix. Fix. shishi_principal_default_guess: Don't use getpwuid, use USER instead. Fix mem leaks. Fix mem leak. Fix mem leak. Fix mem leaks. Fix mem leak. Fix names. Fix mem leaks. Add shishi.supp, valgrind suppressions. Add. Fix mem leaks. Fix mem leaks. Fix mem leaks. Fix mem leak. Add. Fix mem leaks. Fix. Typo. Fix mem leak. Doc fix. Fix. Fix mem leak. Typo. Run tests under valgrind if present. Fix mem leak. Update. Add. Don't use a sub-session key in TGS to fix problems with w2k3 and bugs in heimdal, debugged by Elrond. Typo. Add. Sync with TP. 2006-05-03 Simon Josefsson FIx. Don't build rsh-redone, for now. (Fails gnits tests.) Dist extra/. Add. 2006-05-02 Simon Josefsson Bump versions. Make in extra/ too. 2006-04-27 Simon Josefsson *** empty log message *** Version 0.0.25. Update. Update. Fix copyright. Convert - to \- in man pages, from lintian. Update. Replace size_max with stdint.h. Fix. Need size_max.h. Always have unistd.h. Add. Add. Remove XXX, thanks to Elrond for investigating. Work around bug in libtasn1: /* XXX when encoding a field inside a SEQUENCE, libtasn1 appear to include the tag from the SEQUENCE in the encoding of a particular field. This appear wrong, so we frob it here. This typically happens when encoding req-body in KDC-REQ for TGS checksums. */ 2006-04-26 Simon Josefsson Update. 2006-04-25 Simon Josefsson Fix. Add. Fix. More debug. Fix. Fix. Fix. More debug. Doc fox. Fix. Rename version to kvno. Fix. 2006-04-23 Simon Josefsson Translate. 2006-04-22 Simon Josefsson Fix. Remove unused variable. Bump versions. *** empty log message *** Version 0.0.24. Update. Update. Fix. Don't select failed sockets. Fix. Typo. More debug info. Fix mem leak. More debug. Fix printf format. 2006-04-21 Simon Josefsson Fix. Fix. Add. Add. Fix mem leak, reported by Elrond. Fix crash, reported by Elrond. Fix. Fix. Support ETYPE-INFO too. Add. 2006-04-20 Simon Josefsson Remove unused. Update. Fix. Update. Less debug. Fix. Add. Fix salt/s2kparams. Cleanup. Fix. Fix. Fix. Pre-auth fixes. Fix crash. Add. Fix message. Check errors. Improve preauth. Add more hints. Add. Add. Fix. Add. Debug more. Fix. Add. Remove preauth. Remove preauth option. Add shishi_krberror_methoddata. Fix. Fix. 2006-04-19 Simon Josefsson Fix. Sync with TP. Support preauth (XXX). Add. Generated. Add. Fix. Fix. Add update-po. 2006-04-18 Simon Josefsson Only clear padata in AS-REQ. Add preauth config option. Add. Add. Add. Update. 2006-03-30 Simon Josefsson Don't always clear padata. Clear padata if not set. Print which pre-auth types were requested by server. Add PA/METHOD-DATA stuff. Add shishi_asn1_padata. 2006-03-27 Simon Josefsson Remove unused variable. Need getline.h. Re-order direntry's, for broken install-info. 2006-03-25 Simon Josefsson Bump versions. Fix gnupload command. Version 0.0.23. *** empty log message *** Add. Generated. Use proper gpg key. Use gnupload. Update. 2006-03-24 Simon Josefsson Fix mem leak, reported by Elrond. 2006-03-23 Simon Josefsson Fix mem leak, use const, from Elrond. Update. Add. Fix. Fix mem leak. Use new salt API. Fix. Fix. Add shishi_derive_default_salt. Typo. Fix. Translate. Remove some, for now. Translate. Translate. Fix. Add. Fix. Fix typo, from Russ. 2006-03-22 Simon Josefsson Further fixes, from Elrond. Fix mem leak, from Elrond. Avoid unsigned char's. Use shishi_key_from_name API. Fix check. Remove nettle, we don't use it now. Add. Add shishi_key_from_name(), suggested by Elrond. Avoid unsigned char's. Avoid unsigned char's. Don't require -v. Rewrite shishi_check_version(). Fix. Don't require -v. 2006-03-16 Simon Josefsson Add. No invariant sections. 2006-03-13 Simon Josefsson Fix. Fix. Add. Fix -libtasn1. Fix libtasn1 -l's. Fix libtasn1 test. Update. Update. Update. Fix. 2006-03-12 Simon Josefsson Remove. 2006-03-11 Simon Josefsson Libtasn1 update. Update. 2006-03-08 Simon Josefsson Add. 2006-03-07 Simon Josefsson Add -no-undefined, required to produce DLLs on mingw32. Add. 2006-03-04 Simon Josefsson Add. 2006-02-16 Simon Josefsson Fix. Update. 2006-02-15 Simon Josefsson Typo. 2006-02-14 Simon Josefsson Rename. Remove. Add maintainer-makefile module. Add. 2006-02-09 Simon Josefsson Add. Bump libtasn1 version. Update. 2006-02-07 Simon Josefsson *** empty log message *** Fix gettimeofday() usage. Fix gettimeofday() usage. Fix gettimeofday usage. Add SHISHI_GETTIMEOFDAY_ERROR. Don't free getpwnam return. Test for getpwname, for mingw32. Avoid use of timezone. Check return value. Fix getpwuid call, for mingw32. Check for getpwuid, for mingw32. Remove xgettimeofday. Always has sys/socket.h now. We always have sys/socket.h now. gettime fix for mingw32. Mingw32 fix. Add. Fix GnuTLS test. Update. 2006-01-30 Simon Josefsson Update. Add. 2006-01-19 Simon Josefsson Update. 2006-01-13 Simon Josefsson Fix gnutls check. Fix gnutls check. Enable gcrypt if present, for now. Fix gnutls check. Fix libs. 2006-01-12 Simon Josefsson Add. Update. Fix copyright years in man page. 2005-12-28 Simon Josefsson Add. 2005-12-24 Simon Josefsson Update. 2005-12-21 Simon Josefsson *** empty log message *** 2005-12-20 Simon Josefsson Fix. Fix. Initial attempt. 2005-12-15 Simon Josefsson Update. 2005-12-13 Simon Josefsson Update. 2005-12-02 Simon Josefsson Add. 2005-10-27 Simon Josefsson Add. 2005-10-25 Simon Josefsson Add. 2005-10-23 Simon Josefsson Update PGP key. Bump versions. Add. Add. Update. Fix compiler warning. Fix. Simplify IPv6 test, using gnulib. Update. 2005-10-22 Simon Josefsson Use pbkdf2-sha1 from gc. Replace internal ARCFOUR implementation with the one from gnulib. Update. Remove nettle stuff. Generated. Use low-crypto.c, to interface with gc. Don't default to libgcrypt. Update. Update. Remove crypto. Enable libgcrypt by default. Remove crypto. Remove crypto/. Remove crypto. Remove (uses gnulib now). Remove nettle/libgcrypt code. Update. 2005-10-21 Simon Josefsson Add. 2005-10-19 Simon Josefsson Add. Add. 2005-10-12 Simon Josefsson Add. 2005-10-11 Simon Josefsson Add. 2005-09-20 Simon Josefsson Revert local changes. Link with realtime clock library, for gnulib. Update. Update. 2005-09-19 Simon Josefsson Add. *** empty log message *** Fix. Update. Socklen_t is handled by gnulib now. Add. Update. Update. Add. Add. Add. 2005-09-14 Simon Josefsson Add. 2005-08-31 Simon Josefsson Avoid EXTRA_DIST. Link with idn. Remove -export-symbols-regex, handled by version script. Use new CPP symbol. Use version script. Add. Add --enable-ld-version-script. 2005-08-30 Simon Josefsson Update. Fix libidn test. 2005-08-12 Simon Josefsson Update. 2005-08-11 Simon Josefsson Avoid gnulib module xalloc-die. Update. 2005-08-10 Simon Josefsson *** empty log message *** Generated. Version 0.0.22. Add -I's for GnuTLS too. Update. Fix compile error. Add. Update license. Add. Update libtasn1 to 0.2.14. Remove (not used). Mention help-shishi. Fix. Add. Add. Update. Update. Update. 2005-07-24 Simon Josefsson Add. Add. 2005-07-16 Simon Josefsson Simplify. 2005-07-12 Simon Josefsson Add. 2005-07-11 Simon Josefsson Add. 2005-06-15 Simon Josefsson Update gnulib files. 2005-05-27 Simon Josefsson Add. Add. 2005-05-26 Simon Josefsson Update license with new FSF address. Update. 2005-05-24 Simon Josefsson Add. 2005-04-29 Simon Josefsson Add. 2005-04-01 Simon Josefsson Add. 2005-03-21 Simon Josefsson Gnulib sync. Fix. 2005-03-19 Simon Josefsson Fix. 2005-03-14 Simon Josefsson Add. Add. Sync gnulib. Add strnlen. Avoid strnlen (only used once). Doc fix. 2005-03-13 Simon Josefsson Gnulib need -I$(top_builddir)/gl as well, reported by Dave Love . Add. Add, suggested by Dave Love . 2005-02-22 Simon Josefsson Add. 2005-02-21 Simon Josefsson Add. 2005-02-15 Simon Josefsson Add. 2005-02-10 Simon Josefsson Add. 2005-02-01 Simon Josefsson Add. 2005-01-31 Simon Josefsson Add. 2005-01-29 Simon Josefsson *** empty log message *** Update. 2005-01-26 Simon Josefsson Add. 2005-01-17 Simon Josefsson Add. 2005-01-02 Simon Josefsson Add. Update. 2004-12-29 Simon Josefsson Add. 2004-12-24 Simon Josefsson Update. 2004-12-19 Simon Josefsson Update. 2004-12-18 Simon Josefsson Remove. Update. 2004-12-17 Simon Josefsson Bump versions. Add. *** empty log message *** Generated. Version 0.0.21. Fix. Add. Update. Bump versions. Add. Reorder. Fix srcdir != objdir, tiny patch from Mike Castle . 2004-12-16 Simon Josefsson Update. Add. 2004-12-07 Simon Josefsson Add. 2004-12-03 Simon Josefsson Use constant. Fix mem leak. Don't hard code constant. Add. 2004-12-02 Simon Josefsson Use new b64 API. Fix. Remove. Cleanups. Add. Rename SHISHI_FCLOSE_ERROR to SHISHI_IO_ERROR, and alter semantics slightly. Use new b64 API. *** empty log message *** For old b64 API. Use new base64 API. Add. Add base64 gnulib module. 2004-11-29 Simon Josefsson Update. 2004-11-22 Simon Josefsson Add. Fix, from Jakub Bogusz . 2004-11-21 Simon Josefsson *** empty log message *** Generated. Version 0.0.20. Make sure all man pages follow 'foo -- purpose of foo' format, even if there is no purpose description available. Add. Improve man pages, from libidn. Update. 2004-11-19 Simon Josefsson Update. Update. Fix. 2004-11-15 Simon Josefsson Add. 2004-11-12 Simon Josefsson Fix. Bump versions. Fix progname usage. Update. *** empty log message *** Generated. Fix make distcheck. Generated. Version 0.0.19. Fix mem leak. Fix warning. Update. 2004-11-11 Simon Josefsson Update. Update. Include strtok_r.h. Add strtok_r. Need strtok_r, for Mac OS X. Update. Update. Don't use gettext if it doesn't have ngettext. Add. 2004-11-10 Simon Josefsson Add. Add. Add. Add. Update. 2004-11-09 Simon Josefsson Generated. Fix. Add. Fix namespace of xalloc_die. Use -export-symbols-regex, but export xalloc_die until I figure it out. Build components.png earlier. We won't be using gdbm, remove. *** empty log message *** *** empty log message *** Add. Build here before reference/. Fix dia invocation, see . Add. Doc fix. Remove. Doc fix. Doc fix. Doc fix. Sync upstream. Fix release target. *** empty log message *** Fix. Doc fix. Fixes. Update. Fix. Rewrite, to align with up-stream examples. Add getdate.texi. Add getaddrinfo. Need getaddrinfo too. 2004-11-08 Simon Josefsson Fix. Update. 2004-11-07 Simon Josefsson Fix. Fix PGP key. 2004-10-29 Simon Josefsson Doc fix. 2004-10-28 Simon Josefsson Add. Sync with libidn. 2004-10-27 Simon Josefsson Add. 2004-10-25 Simon Josefsson Add. 2004-10-24 Simon Josefsson Add. 2004-10-16 Simon Josefsson Bump versions. 2004-10-15 Simon Josefsson Update. *** empty log message *** Generated. Version 0.0.18. Add. Fix. Add. Add. Indent. 2004-10-14 Simon Josefsson Add. (shishi_hostkeys_default_file): Fix mem leak. Perhaps too slow now? Could be optimized. Fix mem leak. Add. (shishi_aprep_enc_part_make): Don't create new EncAPRepPart, use existing. Sync. Update. 2004-10-05 Simon Josefsson Fix. Remove. Gnulib update. Fix callers. 2004-09-17 Simon Josefsson Move. Sanitize. Fix. Fix. Update. Fix. Add. Doc fix. Add. Fix. Make resolver API public. Cleanup resolver. Remove. Fix. Remove A record parsing, to avoid xinet/inet_r. Remove comment. Doc fix. Doc fix. Fix. (shishi_krberror_cname): Removed. (shishi_krberror_client): Add. (shishi_krberror_sname): Removed. (shishi_krberror_server): Add. Add. (shishi_principal_name_get): Remove. (shishi_krberror_cname): (shishi_krberror_sname): Allocate output. (shishi_principal_name_realm_get): Remove. Fix. (shishi_tkt_client): Allocate output. (shishi_tkt_cnamerealm): Remove. (shishi_tkt_clientrealm): Add. Remove. (shishi_encticketpart_cnamerealm_get): (shishi_encticketpart_cname_get): Remove. (shishi_encticketpart_clientrealm): Add. Use new API. Fix. (shishi_authenticator_cname_get): (shishi_authenticator_cnamerealm_get): Remove. (shishi_authenticator_client): (shishi_authenticator_clientrealm): Add. (shishi_asreq_cnamerealm_get): Remove. (shishi_asreq_clientrealm): Add. Remove. Remove. Fix. (shishi_principal_name_realm): Add. Remove. Update. Use xinet. Add. Update. 2004-09-14 Simon Josefsson (clean-local): Add style.css. 2004-09-10 Simon Josefsson Update. Fix. Don't generate *.texi for each function. Fix. Add. Typo. Add. Add. Add. Indent. Cleanup ASN.1. Fix crash. Fix. SHISHI_GENERALIZEDTIME_LENGTH: New public definition. Use new API. (shishi_authenticator_authorizationdata): Allocate output. (shishi_encapreppart_get_key): Return Shishi_key instead of raw key data. Update. ASN.1 cleanup. Generated 2004-09-09 Simon Josefsson Sync. 2004-09-08 Simon Josefsson Consistency. Check version. Fix use after free on init errors. Fix. Update. Add. Add. *** empty log message *** Add. Fix. Doc fix. Update examples. Fix progname. Use short progname in syslog. Add. 2004-09-06 Simon Josefsson Bug fix, based on patch from Nicolas Pouvesle . 2004-09-02 Simon Josefsson Sanitize. Doc fix. Use getpass. Add getpass. 2004-08-31 Simon Josefsson Fix gdoc stuff. 2004-08-25 Simon Josefsson Update. 2004-08-23 Simon Josefsson Update. 2004-08-18 Simon Josefsson Fix. Update. Bump versions. 2004-08-17 Simon Josefsson Add. 2004-08-16 Simon Josefsson Update. 2004-08-11 Simon Josefsson Add. 2004-08-10 Simon Josefsson add. Update. Need xalloc-die too. 2004-08-08 Simon Josefsson Add. *** empty log message *** Generated. Version 0.0.17. *** empty log message *** Add. 2004-08-07 Simon Josefsson Use new gnulib stuff. Fix. Fix. Rename libfoo to libgnu. Rename. Rename libfoo to libgnu. Fix. Fix. Update. Generated by gnulib-tool. Add. Use new gnulib stuff. Update. 2004-08-06 Simon Josefsson Bump version. 2004-08-02 Simon Josefsson Fix. Fix last commit. Add getsubopt. 2004-08-01 Simon Josefsson Fix warning. Fix warning. Sync. Bump version. Doc fix. Doc fix. *** empty log message *** Generated. Version 0.0.16. Fix. Add. Use Autobuild. Fix. Fix. Add. Sync. 2004-07-26 Simon Josefsson Add. Add. 2004-07-16 Simon Josefsson Add. 2004-07-13 Simon Josefsson Add. 2004-07-11 Simon Josefsson (shishi_key_done): Free more. Add. Support SHISHI_KEYS. Add. Don't read out of bounds. Set endtime for TGS-REQ. (shishi_kdcreq_tillc): Add. (set_tgtflags_based_on_hint): Propagate endtime. Listen to endtime in AS-REQ (no policy checks). Add. (shishi_enckdcreppart_endtime_set): Add. *kdcrep* fixes. (maybe_install_usercfg): Don't create anything if non-standard home is used. 2004-07-08 Simon Josefsson More debugging. 2004-07-02 Simon Josefsson Add -I../gl. Fix. Fix. Fix. Default to Nettle. *** empty log message *** Add. Improve IPv6 test (uClibc doesn't have in6addr_any). Fix. Fix API. Gnulib update. Mainly for getopt that work on uClibc. 2004-07-01 Simon Josefsson Add. Add. 2004-05-21 Simon Josefsson Update to 0.2.10. 2004-04-22 Simon Josefsson Add. Fix. Fix. Fix. Fix. Fix. 2004-04-21 Simon Josefsson Update PGP key. Write tickets before shutting down TLS library. Fix. Add. Remove. Fix. (shishi_tkts_default_file_guess): Use SHISHI_TICKETS. Use shishi_cfg_userdirectory_file. Add SHISHI_HOME and SHISHI_TICKETS. Typo. (shishi_cfg_default_userfile): Use shishi_cfg_userdirectory_file. (shishi_cfg_default_userdirectory): Use SHISHI_HOME. Add SHISHI_USER. Typo. (shishi_principal_default): Add SHISHI_USER. Typo. Fix. Add. Mention SHISHI_CONFIG. Doc fix. (shishi_cfg_default_systemfile): Look for SHISHI_CONFIG env.var. Bug workaround. Fix printf templates. Add shishi_kdcreq_nonce_set. Use it. Update. 2004-04-20 Simon Josefsson Remove HMAC-MD4 (why was it added?). Include md4.h directly (not via hmac.h). 2004-04-19 Simon Josefsson Fix error messages, suggested by Nicolas Pouvesle . 2004-04-18 Simon Josefsson Drop -R libs flag. *** empty log message *** (shishi_cfg): Clear newly allocated realminfos, reported by Nicolas Pouvesle . Require modern autoconf/automake/gettext. Bump versions. *** empty log message *** Generated. Version 0.0.15. Sync. Sync Use const. Fix warnings. Use const. Fix copyright years on man pages. Fix warnings. Fix warnings. Indent. Fix. Disable alloca use in nettle (we don't include alloca.h early enough, as the Nettle configure.ac hacks make sure). Try to get alloca.h included early. Gnulib sync. Replace get_date with shishi_get_date. Fix. Use shishi_get_date. (shishi_get_date): Add. Add utils.c and shishi_get_date. *** empty log message *** Include alloca.h, if needed and present. Likewise. Don't allow the possibility of a trailing \ and an empty next line. Add fetchmail.*. Remove 'indent' target. Fix. Fix ChangeLog target. Use socklen_t. Fix warning. Fix warnings. Use 'static' keyword on functions. Don't use variable name "error". Fix warning. Fix warnings. Fix warnings. Fix warnings. Allocate output. Use const. Fix int/int32_t. Fix warning. Fix warning. Read cusec as uint32. Fix int/uint32_t. Don't shadow variable. Fix int/uint32_t. Fix int/uint32_t. Fix warnings. Use const. Fix warnings. Fix warnings. (shishi_as_derive_salt): Allocate output. (shishi_asn1_read2): Handle zero length asn.1 fields. (shishi_as_derive_salt): Allocate output. Add. Fix warnings. Fix warnings. Fix warnings. Make usec's uint32_t. Fix warnings. Fix warnings. Really apply last changes. Don't use variable name "stime". Don't use variable "time" either (sigh..). Don't use variable name "ctime". (shishi_asn1_number_of_elements): Don't use bogus cast. More debugging. Fix int/size_t. (shishi_authenticator_authorizationdata): Fix int/int32_t/size_t types. (shishi_authenticator_add_authorizationdata): Likewise. Add workaround for buggy _asn1_convert_integer. Fix. Style changes on my files, to align with CVS Nettle. Sync with Nettle CVS (after s/nettle-types.h/shishi-int.h/g). Add aes_cts(16) test. Fix aes_cts(25) test. More debugging. Fix int/size_t. (shishi_asn1_write_uint32): Use %ul instead of broken %ud. Fix int/size_t. Sync with 0.2.8. 2004-04-17 Simon Josefsson Fix size_t/int. Fix int/size_t. Fix messages. (shishi_encapreppart_seqnumber_remove): Add. (shishi_encapreppart_seqnumber_set): Likewise. (shishi_encapreppart): Use it. Don't use 0 seqnr. (shishi_encapreppart_seqnumber_remove): (shishi_encapreppart_seqnumber_set): Add. Fix noise typo. Add verbose-crypto-noise. Fix. Test sequence numbers. Fix comments. (shishi_authenticator_seqnumber_remove): Add. (shishi_authenticator_seqnumber_set): Add. (shishi_authenticator): Use it. (shishi_authenticator_seqnumber_remove) (shishi_authenticator_seqnumber_set): Add. Add. Add. Fix. Typo fix of verbose-noise. Mention verbose-crypto-noise. Mention verbose-crypto-noise. Typo fix for verbose-noise. Add. Add. 2004-04-12 Simon Josefsson Add. 2004-04-05 Simon Josefsson Change output-IV to be last output from encryption primitive F. Revert bad next-IV update. (libgcrypt_dencrypt): Only apply special CBC-CTS handling for CBC-CTS. (libgcrypt_dencrypt): Fix IV output to match updated document, instead of MIT's original implementation. Fix IVOUT test vectors. Add rijndael. *** empty log message *** Remove debugging code. Add, test vectors from -06. Add. 2004-03-05 Simon Josefsson *** empty log message *** 2004-03-01 Simon Josefsson Add. 2004-02-29 Simon Josefsson Add Polish translation, from Jakub Bogusz . 2004-02-17 Simon Josefsson Add. 2004-02-16 Simon Josefsson Add. 2004-02-11 Simon Josefsson Add. Add. 2004-02-10 Simon Josefsson Add. 2004-02-03 Simon Josefsson Fix multiple -v's. Support multiple -v's. Support mutliple -v's. Typo. 2004-01-25 Simon Josefsson Add. (shishi_encapreppart): Use random seq-number. Fix. (shishi_authenticator_seqnumber_get): Add. Add. (shishi_authenticator): Use random seq-number, instead of removing the field. (shishi_randomize): Use void*. 2004-01-23 Simon Josefsson Use FDL 1.2. 2004-01-22 Simon Josefsson Doc fix. Bump versions. *** empty log message *** Version 0.0.14. Update. Add. Fix release target. Generated. *** empty log message *** Remove. Sync. Add. Fix API. Fix API. Clone cksum buffers. Add. Add raw checksum API. Doc fix. 2004-01-21 Simon Josefsson (shishi_ap_req_process_keyusage): Extract authenticator checksum data. (shishi_authenticator_cksum): Allocate result. 2004-01-15 Simon Josefsson Disable. Reported by Adrian Bunk . Fix warnings. Don't use //. Bump versions. *** empty log message *** Version 0.0.13. (release): Use CSS. Sync upstream. (release): Use binary PGP. Add ftp-upload.gnu.org stuff. Use gendocs.sh. Generated. Add. (read_key): Handle leading whitespace in key material. (But not for old style keys.) Add. Typo. Fix salt computation for --password. Add. 2004-01-14 Simon Josefsson (main): Make sure apply_options receive realm/principal. (kdc_listen): Improve error logic to fix segfault. Revert (for now). (shishi_tkt_pretty_print): Use const. Update AX_CREATE_STDINT_H. 2004-01-10 Simon Josefsson Add key=ivec links. Add rlogin security links. Add Key=Ivec text. Dist texinfo.css. Sync with Texinfo. Remove unused DocBook stuff. Fix title. Change title to include GNU. Fix header. Rename shishi.css to texinfo.css. Use CSS for HTML. Add. Only remove man pages on maintainerclean. Make man pages depend on ../configure.ac, for version number. Fix man page dependencies, reported by Adrian Bunk . 2004-01-03 Simon Josefsson Assume recent gengetopt. Add. Add. Add. Don't use closelog. Use syslog in kdc_unlisten. Bump versions. *** empty log message *** 2004-01-02 Simon Josefsson Version 0.0.12. Fix TLS. Remove shisa.sh for now. Generated. (SHISHI_KRB5_GSSAPI_CKSUM): Add. 2003-12-31 Simon Josefsson Fix. Add TLS resume. Log fix. Add TLS resume support. Add. 2003-12-28 Simon Josefsson Fix. Add. Add. Set flags. Add. Fix flags. (shishi_ticket): Add, update callers. Fix. 2003-12-27 Simon Josefsson Fix. Fix. Doc fix. Fix. Fix. Fix. Fix. Fix. Add. Cleanup TGS. Fix. (shishi_tkt_server): Fix, and update callers. Fix. Add. Fix. Cleanup. Cleanup. Improve logging for AS-REQ. Add. Improve logging and error handling. (shishi_as_krberror_der): Use shishi_krberror_der. Add priority field to dbkey. 2003-12-26 Simon Josefsson Fix. Fixes for building from CVS on Fedora. Fix. Add. Fix. Fix. Add. Add. Doc fixes. Make Shisa gdoc files. Typo. Rename files to work around gdoc limitation. Sync. Dist shisa.sh. Add. Indent. Fix keys_find and key_remove. Fix. Fix. Fix keys_find. Add key_remove. Use new API. Fixes. Add. Use new API. Key API fixes. Parse db statements. Fail on cfg errors. 2003-12-21 Simon Josefsson Add. Indent. Separate internal.h somewhat. Add. Use ASCII. Fix. We need gnutls 1.0.0 or higher. Bump versions. *** empty log message *** Version 0.0.11. Doc fix. Fix. Fix shishid --help. Add X.509 guide. Fix. Log client certificate verification status. Log client certificate details to syslog. Add. Add pki.c, tracks client certificates in library. Send client certificates in TLS exchange. Add. Fix warnings. Dist kdc.h. Replace linebuffer with getline. Remove memset, memmove, strerror (we assume C89). Replace memdup with xclone. 2003-12-20 Simon Josefsson Support X.509 authentication in shishid. Add. Move TLS negotiation to starttls.c. Use program_name for syslog. 2003-12-19 Simon Josefsson Fix. Fix. Fix warnings. Fix warnings. Add. Fix. Fix return code. Cleanup, handle errors better. Fix warning. Move TLS initialization to init.c. Fix warnings. Fix prototype. Fix prototype. 2003-12-18 Simon Josefsson STARTTLS fixes. Cleanup. Fixes. Remove unused listenspecs. Cleanup. Cleanup. Move session specific KDC functions to server.c. Cleanups. Fix. Fix. Move AS/TGS functionality from shishid.c to kdc.c. Cleanup. More of the same. TLS fixes. Network I/O cleanup. GNUTLS cleanups. 2003-12-16 Simon Josefsson Bump versions. Fix release target. *** empty log message *** Generated. Version 0.0.10. Typo. Add. Fix. Add. Update --help's. Fix. Fix. *** empty log message *** Remove argp. Add shishid.1. Fix shishi.1. Fix. Rewrite shishi.c to use gengetopt instead of argp. *** empty log message *** Add. Move low-level crypto stuff from shishi to foo. Deinitialize gnutls on quit. Typo. Add DNS SRV. Add TLS shishid. Add TLS for STARTTLS protocol. Fix GNUTLS server. Use error before listening stage, syslog later. 2003-12-13 Simon Josefsson (shishi_ap_etype_tktoptionsdata): Add. (act_hint_on_kdcreq): Set hint->etype in KDC-REQ. 2003-12-12 Simon Josefsson Fix. Bump versions. *** empty log message *** Version 0.0.9. Generated. Add. Fix. Fix. Write shishid manual. Add. Fix. Support port numbers in realm-kdc. Fix etype. Fix --dump. Fix --keys. Change --keys. 2003-12-11 Simon Josefsson Add des(3)-none. Fix. Fix crypto discussion. Reference additions. Admin fixes. Add todo items. Use @final to remove black hboxes. Fix. Fix. Fix. Only use GTK-DOC when enabled. Typo. Fix exit codes. Workaround nettle AES problem. Add. Fix. Setup realm and host key during installation. Have sole '-a' initialize a realm. Remove. Add. Nits. Fix. Cleanup. (shishi_encticketpart_crealm, shishi_ticket_server): Add. TGS-REQ works via Shisa (well). (shishi_encticketpart_client): Add. AS-REQ via Shisa works (well). Need -I for shishi-int.h. Use asprintf. Send 4 length bytes for TCP. Fix. Cleanup. Need string.h. Dist internal.h. Dist db/. *** empty log message *** Cleanup. Gengetopt files are generated by maintainer. Fix. Use missing for gengetopt. Use gengetopt for shishid. Some cleanups. 2003-12-10 Simon Josefsson Use progname. Don't generate key when adding realms. Set realm and principal in keys. Use m4_include stuff in automake 1.8. Add progname gnulib module. Remove m4 Makefile's. Fix reading keys. Fix adding keys. (shishi_principal_name): New. (shishi_asn1_read2_optional): New. (shishi_kdcreq_client, shishi_kdcreq_realm, shishi_kdcreq_server): New. (shishi_principal_name): New. (shishi_kdcreq_client, shishi_kdcreq_realm, shishi_kdcreq_server): New. (shishi_asn1_read2): Support NULL data/datalen. (shishi_asn1_read2): Zero terminate data (but do not include it in datalen). (shishi_asn1_read2_optional): New. Fix. Fix. Fix. Prepare Shisa-fication of Shishid. Escape '/' etc in filenames. (apply_options): Pass on password. Remove (nothing to do with Kerberos?). Add. Fix. Add. Fix. Fix. Add. 2003-12-09 Simon Josefsson Add ack. Fix STARTTLS. Fixes after reading it. Rewrite Administration Manual for Shisa. Add Shisa to Reference Manual. Fix error message. Typo. Typo. Fix errors. Add. Fix. Really remove files. (delete_principal): Support --force. (main): Improve errors. (shisa_cfg): Make it work. Fix. Fix. Make cfg/skel/key/db directories configurable. 2003-12-07 Simon Josefsson Support password read from stdin (requires gengetopt beta). 2003-12-04 Simon Josefsson Add/remove principal, including key, now works. 2003-12-02 Simon Josefsson Sync. (shishi_cfg_clientkdcetype_fast): Add. Gengetopt fixes. Add. Fix license templates. Fix. *** empty log message *** Add shisa.1. Fix. 2003-12-01 Simon Josefsson Fix. Sync. Fix. 2003-11-30 Simon Josefsson Fix. Fix indent target. Fix. FIx. Fix. Move file.c utilities into fileutil.c. Fix. Gnulib sync. Add. Fix default path, use $localstatedir/shishi (e.g., /usr/local/var/shishi). 2003-11-29 Simon Josefsson Add. Sync. Add. Fix. Fix error. Sync. Add. Fix. 2003-11-28 Simon Josefsson Fix. Sync commit. Use gengetopt for shisa. Use gengetopt. Add. *** empty log message *** Sync commit. Add. Add. Add shisa database admin tool. *** empty log message *** Add. Set up database library, it will be called Shisa. *** empty log message *** 2003-11-27 Simon Josefsson Add. (shishi_ap): Docfix. (shishi_ap_etype): New. (shishi_ap_tktoptions): Use shishi_ap_etype. (shishi_ap_tktoptionsdata): Likewise. (shishi_ap_tktoptionsasn1usage): Likewise. (shishi_authenticator_add_random_subkey_etype): New. (shishi_authenticator_add_random_subkey): Use it. Docfix. (shishi_tkt_keytype_fast): New. (shishi_authenticator_add_subkey): Remove unused code. Fix. 2003-11-26 Simon Josefsson Add. Mention commercial support. Add. (shishi_tkts_expire): Use shishi_tkt_expired_p. (shishi_tkt_expired_p): Add. (shishi_tkt_expired_p): Add. (shishi_tkt_pretty_print): Separate EXPIRED into NOT YET VALID and EXPIRED. Revert last commit. Add EXTRA_DIST. Sync with texinfo. Remove DocBook template. Remove DocBook stuff (too unstable). *** empty log message *** Use my own GTK-DOC Makefile instead of buggy upstream version. Disable fortran etc libtool tests. Remove dmalloc stuff. Move ANNOUNCE text to manual. Don't EXTRA_DIST stuff. Add upstream README as README. Upstream sync. 2003-11-24 Simon Josefsson Add. Remove pkg.m4 (not used). 2003-11-22 Simon Josefsson Use AC_CONFIG_HEADERS. Remove pre-C89 junk. Update. 2003-11-21 Simon Josefsson Autoupdate fixes. Sync commit (half-finished old work). *** empty log message *** 2003-11-07 Simon Josefsson Official telnet encryption type assigned. 2003-11-02 Simon Josefsson *** empty log message *** Add DocBook targets. Use gtk-doc.m4 for GTK-DOC stuff. Add DocBook checks. Sync with libidn. Add (from texinfo). 2003-11-01 Simon Josefsson Add, from fencepost. New expiry date on PGP key. Rebuild Makefile after modifying Makefile.gdoc. Set GDOC_MAN_EXTRA_ARGS. Add GDOC_TEXI_EXTRA_ARGS, GDOC_MAN_EXTRA_ARGS. Add gdoc bug workaround. *** empty log message *** Add gdoc framework. Use it from Makefile.am Update @include paths in manual. Don't build doc/man/Makefile (replace by gdoc framework). *** empty log message *** Remove (replaced by gdoc framework). Sync with libidn. 2003-10-28 Simon Josefsson Add. Add. 2003-10-27 Simon Josefsson Add. Add. 2003-10-25 Simon Josefsson Add. Fix for recent libtool breakage. Generated. (This should be autogenerated instead of put in CVS...) 2003-10-20 Simon Josefsson *** empty log message *** Add. Fix. Fix whitespace. (cbc_cts_decrypt): Fix real bug. (cbc_cts_decrypt): Use last blocksize bytes. (Incorrect?) Fix IV (now it uses last blocksize bytes, same as libgcrypt, but perhaps using the next-to-last block is the correct way?). Add. (_shishi_simplified_dencrypt): Fix (3)DES-CBC-NONE. Remove minpadsize (not used). Fix DES_CBC_NONE. (shishi_time): Better length check. Don't write out of bounds. Fix. (shishi_arcfour): Rewrite to use nettle arcfour, to make IVOUT work. Don't free(NULL). (shishi_key_from_value, shishi_key_from_base64): Mark parameter as 'const'. (shishi_key_from_random): Likewise. Simplify test harness. Indent. (cbc_cts_encrypt): Fix IV, from Nicolas Pouvesle . 2003-10-16 Simon Josefsson Bump versions. *** empty log message *** Version 0.0.8. Fix DIST_SUBDIRS. Only dist examples and extra, don't build them. Generated. Include getline.h. Gnulib update. Update. Doc fix. Add. 2003-10-15 Simon Josefsson Use CONDITIONALs instead of @...@ subsitution for SUBDIRS. Remove LIBIDN_LIBS. Fix libtool -l usage. 2003-10-12 Simon Josefsson Add. 2003-10-11 Simon Josefsson Add. 2003-10-10 Simon Josefsson Revert typo. Fix so version comment (matches libtool manual). Fix indent target. Add. Add. Change KRBprep to SASLprep (the former supposedly deprecated). Enhance authorization system, from Nicolas Pouvesle . Add. 2003-10-09 Simon Josefsson Official version. Add. 2003-10-07 Simon Josefsson Put AC_CHECK_SIZEOF test early; it doesn't use libtool so if any libtool library was added using AC_CHECK_LIB (e.g., libidn) configure aborts due to linker failure (need -L/foo/bar/lib etc). 2003-10-04 Simon Josefsson Add libgcrypt.m4, suggested by Nicolas Pouvesle . 2003-10-03 Simon Josefsson Sync with my proposed glibc patches. Fix info hierarchy. 2003-10-01 Simon Josefsson Generalize clean hook. 2003-09-30 Simon Josefsson Add. 2003-09-29 Simon Josefsson Upstream sync. Cosmetic fixes. 2003-09-29 npo Fix. 2003-09-29 Simon Josefsson Revert. Revert. Indent. Fix indent target. Add keyusage, from Nicolas Pouvesle . 2003-09-29 npo Add. 2003-09-28 Simon Josefsson Add. Generated. (shishi_authorized_p): Add. 2003-09-27 Simon Josefsson Add. Add. 2003-09-24 Simon Josefsson Fix. Fix non-GNUTLS build, from Nicolas Pouvesle . (shishi_crypto): Handle NULL iv, from Nicolas Pouvesle . Use xgetdomainname. Add getdomainname and xgetdomainname. Use xgethostname(). Add xgethostname. Simplify include mess. Add crypto-ctx. Generated. Fix API. Doc fix. Fix API. Add context encryption API (for repeated encryptions with updated IV). Fix. Upstream sync. (shishi_cfg_from_file): Replace fgets with readlinebuffer, to support unrestricted line lengths. Fix bug. 2003-09-23 Simon Josefsson Add. Cleanup STARTTLS stuff. Fix STARTTLS test. Add. Add experimental STARTTLS support. 2003-09-21 Simon Josefsson Bump versions. *** empty log message *** Version 0.0.7. Generated. Support encryption type name aliases. (shishi_arcfour): Add. API fix. API fix. Doc fix. Support ARCFOUR "iv", from Nicolas Pouvesle . 2003-09-20 Simon Josefsson Generated. Doc fix. Add "verbose-crypto-noice" cfg token, and use it where appropriate. (_shishi_simplified_dencrypt): Add zero pad for (3)DES ciphers, to make des_checksum work for CRC. Fix CRC32 checksum, from Nicolas Pouvesle . Fix, from Nicolas Pouvesle . Add. Fix ARCFOUR. Fix des-cbc-crc. 2003-09-19 Simon Josefsson Only require libgcrypt 1.1.43 or later. Revert. Fix. ARCFOUR fixes. Fix and enable ARCFOUR. Fix ARCFOUR. Fix AES checksum length, from Nicolas Pouvesle . (aes_string_to_key): Use 0x00001000 as default iteration count (sync with -05 draft). From Nicolas Pouvesle . Fix. (shishi_hmac_sha1): Fix prototype, from Nicolas Pouvesle . Upstream sync (parses constraints). Sync with draft, now only 3 modifications are made. Requires latest libtasn1. 2003-09-18 Simon Josefsson (shishi_randomize): Add 'strong' parameter. Fix callers. Add. 2003-09-15 Simon Josefsson Typo. Add. 2003-09-14 Simon Josefsson Upstream sync. Fix API. Bump versions. *** empty log message *** Version 0.0.6. Don't rebuild doc/man/Makefile.am automatically. Generated. Fix. Fix. Fix @cartouche. Add. Add. Add. Distclean man pages, for 'distcheck'. Use nettle and minitasn1 for 'distcheck'. (shishi_arcfour): Use proper Nettle API. (_shishi_crypto_init): Fix prototype, from Nicolas Pouvesle . ARCFOUR additions (unfinished). Fix ARCFOUR. Doc fixes. Fix. 2003-09-13 Simon Josefsson Add. Add HMAC-MD5. Cleanup. Fix. (shishi_der_msgtype, shishi_asn1_msgtype, shishi_der2asn1): New. Fix packet parsing and error handling. Fix standalone libtasn1. Improve libtasn1 test. Warn for old libtasn1. Don't always -I../asn1. Add LIBTASN1_CFLAGS. Fix. Fix _shishi_*_init(). Don't use pkg-config for libidn. Simplify LIBS. Remove LIBIDN_*. Remove LIBIDN_LIBS. Use system's libtasn1 and libgcrypt by default. Add. 2003-09-12 Simon Josefsson Generalize a bit. 2003-09-11 Simon Josefsson Add. (shishi_tgs_rep_build): Add keyusage. Use proper keyusage for building TGS-REP. Fix. Fix LDADD. Clear listenspec. Fix. Use ISO-8859-1, as UTF-8 is not supported by texinfo. Support multiple -v's. 2003-09-10 Simon Josefsson Optimize. Fix crash, from Nicolas Pouvesle . Add. Fix. Fix. Fix. Add. Cleanup. Doc fix. (shishi_server): Add. 2003-09-09 Simon Josefsson Log to stderr/syslog/none in shishi_{warn,info}, from Nicolas Pouvesle . Fix LDADD. Mention man pages. *** empty log message *** Move shishi.1 to doc/man/. Generate API man pages. Add -listfunc. Doc fix. Add doc/man/. Doc fix. Improve man pages, unfortunately somewhat Shishi specific for the moment. Remove leading SPC in paragraphs. Doc fix. Remove gettext.h Upstream sync. Fix. Fix. Doc fix. Fix ignored headers. Remove (already in ../gl/). Check if algorithm is used before testing it. Don't assume DES. Disable RC4. Fix. Add --enable-null, --enable-md, --enable-des, --enable-3des, --enable-aes, and --enable-arcfour. Fix. Split up crypto.c somewhat. Cleanup debug messages. 2003-09-08 Simon Josefsson Don't use alloca. Doc fix. Fix. Doc fix. Document proxy/forwarded tickets. Sync --help. Doc fix. Fix. Fix messages. (shishi_tkt_match_p): Compare tktflags. (shishi_tkts_get_tgt, shishi_tkts_get_tgs): Add. (shishi_tkts_get): Use them. Add --proxy, --forwardable, and --forwarded. Fix. Disable building tests unconditionally. (shishi_asn1_write_bitstring): Fix. Fix. Fix bitstrings. Fix debug messages. Fix. Add. Support getting proxiable tickets. Fix renewable API. Add proxiable hint flag. Replace renewable hint field with renewable hint flag. Support proxiable tickets. Use flags for renewable ticket instead of field in hints struct. Upstream sync. 2003-09-07 Simon Josefsson Fix. (Tested with 1.1.44-cvs.) Fix API. Fix. Fix API. Doc fix. Cleanup. Fix. Fix. Typo. Doc fix. Doc fix. Cleanup. Fix API. Add nettle. Doc fix. Doc fix. Fix. Fix. Fix. Add md4 verify. Cleanup. Move low-level crypto interface to nettle.c or libgcrypt.c. Fix APIs and update callers. Fix. Isolate crypto library (unfinished). Don't use () when talking about functions. Fix. Bump versions. *** empty log message *** Move. Version 0.0.5. Sync upstream. Fix. Include gnulib headers. 2003-09-06 Simon Josefsson Generated. Include PRIV stuff. Add PRIV. Mention PRIV. *** empty log message *** Fix. Add PRIV stuff. Add PRIV self test. Add PRIV example. Fix. Add PRIV stuff. Indent. Add. Fix. Fix. Fix. Fix. Don't crash. Fix. Add. Doc fix. Fix. Use size_t for length variables. Fix API. Use new API. Use shishi_time. Add. Use size_t for length variables. Generated. Use size_t for length variables. Fix API. Dist crypto-{md,rc4}.c. Fix prototypes. *** empty log message *** Add ticketset. Replace die() with fail(). Init n to size of buffer, for shishi_a2d. Test SAFE stuff. Fix copying conditions. Dist README. Dist README. Fix copying conditions. Upstream sync. Fix comments. Add. Upstream sync. Add. Rewrite. Unused. Fix error API. Fix. Fix prototypes. Fix API. Fix. (Shishi_krberror): Renamed to Shishi_krb_error to avoid GTK-DOC mixup with shishi_krberror(). Fix. Fix. (shishi_info, shishi_warn): Move to error.c, for better documentation. Fix done.c. (shishi_done): Move to init.c, remove done.c. (Improves generated documentation.) Fix API. Add or fix shishi_*_done. *** empty log message *** 2003-09-05 Simon Josefsson Doc fix, from Nicolas Pouvesle . Fix. 2003-09-04 Simon Josefsson Remove safe stuff. Add. Fix. 2003-09-03 Simon Josefsson Fix SAFE. Add des_md5_verify (assumes nettle). (shishi_safe_verify): Use shishi_verify. Fix checksum. Add verify. Add. Fix KDC bug workaround. Add. Unfinished. Doc fix. Support draft-brezak-win2k-krb-rc4-hmac-04.txt. Add RC4 str2key test. Don't hardcode etypes. Fix. Fix. Fix. Add etype/cksumtype discussion. Fix. Doc fix. Fix header. (shishi_ap_authenticator_cksumtype): Fix prototype. Fix callers. Fix. (shishi_authenticator_add_cksum): Use shishi_authenticator_add_cksum_type. Fix, from Nicolas Pouvesle . Add md4/md5 cksum. Support non-default checksum type in authenticator/AP. From Nicolas Pouvesle . Comment fix. 2003-09-02 Simon Josefsson Doc fix. Add. Debug output fix, from Nicolas Pouvesle . Doc fix, from Nicolas Pouvesle . 2003-09-01 Simon Josefsson Fix gmtime_r. Fix. New. Fix. Fix. Fix. Fix. Fix. Fix. Add download&install. Add autoconf tests. Add hacking section. Fix. Use xstrdup. Typo. Use xrealloc, xstrdup. Use xcalloc. Doc fix. Use xmalloc. Use xstrdup. Use xmalloc. Use xcalloc. Revert. Add. Remove kdc. Add server-realm (unfinished). Use memdup. Add. Fix. Fix AES cksumtype, from Nicolas Pouvesle . 2003-08-31 Simon Josefsson Update. Fix. Fix crash. Fix. Add. Doc fix. Support host->realm mapping via DNS. Zero terminate TXT's. Support TXT. Fix memory allocation. Bump versions. Fix markup. Fix. Add reference manual. *** empty log message *** Version 0.0.4. Fix. Generated. Move timegm() to gnulib. 2003-08-30 Simon Josefsson Fix. Fix. Fix. Don't build examples by default. Cleanup header checks. Reorder #include's. Generated. Dist man pages. Has to 'make extra' to make in extra/. Fix. Fix. Fix. Fix. Add unfinished TLS support. Don't include gnutls by default. Add gnutls flags. Fix TCP. Check for gnutls. Add. TCP support. Fix. Support ADDRESS/PROTOCOL in realm-kdc. Add. Doc fix. Fix. Revert bogus patch. Remove, replaced by automake Makefile.am. *** empty log message *** Add. Add extra/rsh-redone. Mention rsh. Make '-xs' work. Shishi port. Add rsh-redone, upstream. Doc fix. Doc fix. From Nicolas Pouvesle . Removed. (Moved to GSSLib.) 2003-08-29 Simon Josefsson Official version. Add. Fix. Add. Fix shishi_decrypt_ivupdate, from Nicolas Pouvesle . 2003-08-28 Simon Josefsson Fix. Fix --help. Remove things from --help. Fix warnings. Fix. Fix warnings. Indent. Fix warnings. Fix warnings. Fix. Fix last commit. Fall back to session key instead of sub-session key for decrypting KDC-REP in TGS, but warn about buggy KDC. Fix. Use subkey in TGS. Temporary fix to make TGS work against MIT/Heimdal KDC. Add. Fix. Use authenticator from parameter, don't decrypt AP-REQ. Remove session key junk, not relevant. Hand authenticator over to shishi_tgs_process. Disable subkey usage for now, doesn't seem to work with MIT/Heimdal KDC. Set APOption for session key too. Add. Doc fix. Fix error. Fix crash. Fix. Fix shishi_authenticator_add_subkey. Use allocating API. Fix. Add. Fix. Doc fix. Add FIXMEs. Cleanup subkey. Add krberror_build. Add various krberror retrieval functions. Add new NO_VALUE asn.1 error. Improve krberror pretty print. Simplify krberror. Cleanup subkey. Typo. Remove subkey (so memcmp() against static strings work). Mention subkeys. We support subkeys now. Cleanup. Support for subkeys in Authenticators, from Nicolas Pouvesle . 2003-08-27 Simon Josefsson Fix utils.c stuff. Fix. Fix. Support keyusage for AP-REQ decryption. Remove debug code. Cleanup. TGS works. TGS works (with some hard coded strings). Use new API. Add. New server parameter. Use new base64 API. *** empty log message *** Move base64 from lib/ to gl/, and updated callers. Move examples from src/ into examples/ Fix APIs to allocate output. Typo. Use table driven approach. Fix APIs to allocate output. Fix AS key. Add non-working TGS stuff. Add shishi_kdcreq_get_padata*. Add some KDC TGS related functions. Doc fix. Doc fix. Verbose message fix. Fix. Typo. Sync enums. Better error handling. Improve KDC KRB-ERROR handling. Build utils.c. Fix msgtype detection. Fix Shishi_msgtype. Add copying conditions. 2003-08-26 Simon Josefsson Add. Fix. Add administration manual. Make password argument to --string-to-key optional (for, e.g., --random). Make --string-to-key work. Fixes. Define KDCKEYFILE. Add --crypto. Use keyfile for AS-REQ. Fix. Add. We are a GNU project. Add. Doc fix, suggested by Nicolas Pouvesle. Not used. 2003-08-25 Simon Josefsson Fix cut'n'paste bug. Indent. Doc fix. Fix nettle IV handling. Improve encryption/decryption API: Support updated IVs. Mention PA-TGS-REP. 2003-08-24 Simon Josefsson Fix. Add. *** empty log message *** Set IV for libgcrypt too. Update IV in shishi_*crypt_iv*. Tiny patch from Nicolas Pouvesle . (shishi_encrypt_iv): Pass on iv parameter. 2003-08-23 Simon Josefsson Add comment. Add --fsf. Gnulib sync. Bump versions. Fix release target. Move to proper place. *** empty log message *** Version 0.0.3. 2003-08-22 Simon Josefsson Fix. Add. libc sync Remove unused things. Look for libsocket, libnsl, libsyslog. libc sync libc sync libc sync fix libc sync libc sync add strndup.h generated libc sync libc sync libc sync libc sync libc sync move lockfile stuff to argp-namefrob.h libc sync. Libc sync. Gnulib sync. Fix ticket messages. Commit unfinished --renew code for later. 2003-08-20 Simon Josefsson Fix warnings. Fix -Wall warnings. *** empty log message *** Typo. More ASN.1 API fixes (to get rid of BUFSIZ buffers on stack). ASN.1 API fixes. Use new netio API. Allocate buffer, no inline copy. Add. Build client-cksum. Add. GTK-DOC fixes. 2003-08-17 Simon Josefsson Fix. Add. Add. Typo. Update --help. Bump versions. *** empty log message *** Version 0.0.2. Add. Fix release target. Separate authentication from application data exchange. Fix netbsd crash. Fix. (shishi_asn1_read_uint32, shishi_asn1_read_integer): Propagate return code. Generated. Set program_name for gl/error.c. Add. 2003-08-16 Simon Josefsson Add. Sync with shishi.conf.in. Add ticket-life, renew-life. Add "ticket-life" and "renew-life" configuration terms. Add ticketlife, renewlife. (shishi): Set ticketlife, renewlife. Typo. (shishi_tgs_req_build): Use shishi_kdcreq_build. (shishi_as_req_build): Use shishi_kdcreq_build. (shishi_kdcreq_build): Add. (_shishi_kdcreq): Don't clear from. Use ticketlife. (shishi_kdcreq_build): New function. (shishi_tkts_get): Support starttime, endtime, renew_till. Argp fixes. Support starttime, endtime, renew_till and renewable tickets. (Shishi_tkts_hint): Add. (shishi_as_req_build): Add. (shishi_kdcreq_options*, shishi_kdcreq_renewable_p): Add. (shishi_asn1_empty_field): Add. (shishi_tkts_get): Honor renewable. Call shishi_as_req_build. (_shishi_kdcreq): Don't clear rtime. (shishi_kdcreq_options*, shishi_kdcreq_renewable_p): Add. (shishi_asn1_empty_field): Add. (shishi_as_req_build): New function; clear rtime if necessary. (shishi_tgs_req_build): Clear rtime if necessary. (shishi_asn1_write_bitstring): Fix. Add. Fix doc. Fix. Add. Add. 2003-08-15 Simon Josefsson (shishi_error_printf): Handle when argument contains shishi_strerror_details(). Based on report and tiny patch from Nicolas Pouvesle . Typo. Upstream sync. Fix. Generated. Sync user manual with reality. Fix. Fix. Shishid is not i18n. Add. (shishi_tkts_get_for_localservicepasswd): Use shishi_server_for_local_service. (shishi_server_for_local_service): Add. Remove. Cleanup. Fix warnings. Move data.h here. Remove data.h. Simplify argv handling. Move crypto.c here. Remove authp.c, crypto.c Fix typo. Set up client and server for stand-alone compilation. *** empty log message *** Update. Make AS/TGS/KDC into one GET command. Remove CLIENT/SERVER commands. Now a separate program. Add error codes. Add shishi_parse_name(). (shishi_parse_name): New function. Add. Place it in the correct directory. 2003-08-14 Simon Josefsson Abort if no DNS info. Based on report by Nicolas Pouvesle . Add. 2003-08-13 Simon Josefsson Add xstrndup. Build xstrndup. Add. Bump versions. *** empty log message *** Add getdate. 2003-08-12 Simon Josefsson Add getdate stuff. Remove checks for unused programs. Add. 2003-08-10 Simon Josefsson Fix. Fix. Fix. Indent. Add. Add. Fix. Built hostkeys. Some hostkeys functions renamed. Use new key set API. Fix gdoc-error invocation. Add hostkeys again. Add hostkeys.c. Rename from *_hostkeys_* to *_keys_*. Re-added, as a wrapper around keys.c, with hard coded filename. Rename "hostkeys" to "keys" (for "key set", a'la "tkts"), since key sets can be used for more than just host keys. Fix debug info. Work. Fix typo. Also try to send directly to realm. Removed. Fix. *** empty log message *** Version 0.0.1. 2003-08-09 Simon Josefsson Fix. Fix typo. Fix. Dist mailutils.diff. Mention mailutils.diff. Add. Update. Add inetutils instructions. Make md4/md5 checksum work. Typo. Add ad-hoc GSS type. Clean up ad-hoc GSS checksum type. Fix copyright. Add hmac-md4. Fix md4/md5. Fix. Add md4. Add nettle fallback for DES ciphers. Remove asn1 junk. Add CBC-MAC. Fix. Fix -Icrypto. Fix. Fix USE_GCRYPT usage. Fix. Only test des for libgcrypt . Support nettle as well as libgcrypt. Move pkcs5/PBKDF2 stuff into Shishi namespace. Use new pkcs5 API. Replace libgcrypt/libgpg-error stuff with "mininettle" in crypto/. Check for fcntl.h. Remove errcrypto. Remove crypto/m4 from aclocal flags. Add (from nettle). Remove (libgcrypt is being replaced by a mini-nettle). 2003-08-08 Simon Josefsson Prefer minitasn1 over libtasn1. *** empty log message *** Upstream sync. Upstream sync. Upstream sync. Add. Fix acks. Update. Fix. Disable tests. Upstream sync. Upstream sync. Include time.h for time_t. 2003-08-07 Simon Josefsson Revert to upstream. Readd depends. Really fix check target. Remove obsolete idn CFLAGS. Remove obsolete intl and idn CFLAGS. Link gnulib. Remove tests (random stuff hang on too many platforms). Dist shishi.{ps,pdf,html}. Disable dependencies (to speed things up). Reorder resolv.h. Revert. Libtool fix. *** empty log message *** Fix typo. Use libtool. Fix includes. Fix gettext stuff. Distcheck fails on gtk-doc, disable it. Add -I's. Add. Ignore shishi-int.h. Remove distcheck flag hack. *** empty log message *** Create shishi-int.h and use it, for uint32_t etc. Upstream sync. Fix. Bump gcrypt version. Sync upstream. Fix. Add. Add. *** empty log message *** Libtasn1 fixes. *** empty log message *** Add (lib/minitasn1 from gnutls). Remove (to be replaced by minitasn1). Fix. Cleanup and fix. Fix. Mention SRV. Slight cleanup. Look for SRV RRs if KDC address not known. Add. Change user cfg file to $HOME/.shishi/shishi.conf from $HOME/.shishi/config. Add _shishi_maybe_install_usercfg, shishi_info. Fix warnings. Add. Add shishi_cfg_default_userdirectory. Don't dump cfg every time a cfg file is read. Fix warnings. 2003-08-05 Simon Josefsson Check for locale.h. Use external gettext. Fix. Use new ASN.1 module, and remove the old ones. Copied from rfc1510bis.asn1, with modifications. Fix bad sync. Remove. Sync upstream. Remove ps/pdf targets (modern automake include them). Fix help2man program name. Make libidn optional. Heimdal telnetd doesn't crash any more. Add. 2003-07-31 Simon Josefsson Add. 2003-07-10 Simon Josefsson Generated. Add -I to libidn. Link with gettext, for gnulib. Add program_name (for gnulib). Really disable ld script in libgcrypt. Dist inetutils.diff. Remove asn1 -I, add gnulib -I. *** empty log message *** Remove (we will use text files for shishid). Add. Indent. Fix warnings. Cleanup. Remove unused stuff. Fix libtool warning. Add. Remove inetutils. Remove (we support this by sending patches instead). Update. Revert part of last patch. Add. Add libidn -I's. Remove unused die(). Define program_name (for gnulib). Use gnulib's error() instead of ad-hoc die(). Use LOG_DAEMON instead of LOG_AUTHPRIV (make this configurable?). Fix typo. Try to be more portable. Don't ship with inetutils (too much portability problems). Add strchrnul.h. Add mempcpy.h. Add -I../intl for libintl.h in gettext.h. Fix gnulib. Disable libgcrypt ld script (requires too modern ld). Upstream update. Remove GNU Make specific idiom. Add. Update from draft (plus syntax hacks for libtasn1's parser). Check for sys/types.h earlier. Add Gnulib tests. Update. 2003-07-08 Simon Josefsson Add. Fix. Cleanup DES crypto (at last!). Fix typo. Better errors. Fix mem leak. Fixes. Indent. Cleanup. Crypto functions now allocate output buffers. Fix callers. Waste less stack. 2003-07-07 Simon Josefsson Sync. Fixes. 2003-07-06 Simon Josefsson Fix includes. Make distcheck works under debian now. Build gl/m4/Makefile. Recurse into m4/. Dist fixes. Update upstream. Fix. Add. Add shishi_asn1_write_bitstring (broken). Fix ASN.1 writing. Fix crash. 2003-07-05 Simon Josefsson More EXTRA_DIST's. *** empty log message *** Update release target. Add. Bump version. Fix EXTRA_DIST's. Fix bug. *** empty log message *** Fix includes. Build errcrypto. Configure errcrypto. Quick hack to get paths to libgpg-error into Makefile's. Add (libgcrypt requires this...). Sync with upstream. Add generic ASN.1 bitstring, and use it. Fix the AP-REQ ap-options. (shishi_ap_req_process): Be verbose. Fix typo. Waste less stack. Waste less stack. Memory leak fix. Use proper API. Use proper API. Revert last change (no new API for asn1_field(), sigh). Include gnulib stuff. Use new API. Really remove old AC_LIBOBJ stuff. Remove debugging code. Define strchrnul, f{,un}lockfile if not defined. (Perhaps not the right thing, check and forward patch to libc/gnulib later.) Fixes for gnulib. Compile with libgcrypt 1.1.13. Gnulib fixes. More gnulib fixes. Obsolete some AC_LIBOBJ with gnulib. Replace ARGP stuff with gnulib. *** empty log message *** 2003-07-04 Simon Josefsson Reorder to avoid warnings. Add gnulib compatibility functions. Remove argp (replaced by gnulib argp module). (shishi_tkt_key): Retrieve key from encticketpart too. 2003-06-27 Simon Josefsson Check for asn1 error. 2003-06-25 Simon Josefsson Add. 2003-06-24 Simon Josefsson Add. 2003-06-21 Simon Josefsson Add. Add. 2003-06-12 Simon Josefsson Add. Add. 2003-06-02 Simon Josefsson *** empty log message *** Remove ticketset for now. Version 0.0.0. Add release target. Add DES encrypt/decrypt without checksum. Add dummy checksum. Add DES encrypt/decrypt without checksum. Fix NONE ciphers. 2003-05-27 Simon Josefsson Add encapreppart functions to AP section. Fix a2d. Add shishi_encapreppart_seqnumber_get. Add 3des-none. Add encrypt/decrypt with specific etype. 2003-05-25 Simon Josefsson Add shishi_{en,de}crypt_iv(). Fix typo. Add GSS keyusage constants. 2003-05-18 Simon Josefsson Fix. 2003-05-11 Simon Josefsson Add shishi_ap_req_der_new. 2003-05-08 Simon Josefsson Fix asn1Parser. Remove GSS stuff. Check for asn1Parser. Add. Fix doc. 2003-05-07 Simon Josefsson Add. 2003-05-01 Simon Josefsson Remove GSS stuff (moved to separate project). Remove GSS stuff. Add. Add. Add shishi-gss.pc*. Build shishi-gss.pc. Add. Escape { and }. Fix. Warn obsolete applications. Fix. Indent. *** empty log message *** Add. Indent in gss/. Add. Fix. Add. Prototype fixes (RFC is buggy). Add. Prototype fixes (RFC is buggy). *** empty log message *** Add gss/. Fix. Add framework for GSS-API support. Move include of shishi.h from utils.c to each file. Typo. Add copying conditions. Add * to minor_status in prototypes (RFC is buggy). Last commit was corrupt. Never use xom.h. Define gss_ctx_id_t, gss_cred_id_t, gss_name_t, and gss_uint32. Fix routine errors. Verbatim from RFC 2744. Add. 2003-04-18 Simon Josefsson Fix info dir entry. 2003-04-16 Simon Josefsson Mention devices it runs on. 2003-04-15 Simon Josefsson Use new cvs2cl. 2003-03-29 Simon Josefsson Use new allocating a2d. 2003-03-26 Simon Josefsson Add comment. Add new allocating a2d functions and use them. Use new libgcrypt CBC-MAC interface. Upstream sync. 2003-03-20 Simon Josefsson Add. 2003-03-14 Simon Josefsson Fix debug output, spotted by Marcus Watts . 2003-03-07 Simon Josefsson Add. 2003-02-24 Simon Josefsson New. 2003-02-19 Simon Josefsson Upstream update. 2003-02-12 Simon Josefsson Upstream update. Make it work. Use new ASN.1 API. Use new ASN.1 and principal APIs. Use new principal API. Add *_set(). Doc fixes. Use new ASN.1 APIs. Fix integer functions. Indent. Add authenticator and gztime. Remove asn1 CFLAGS. *** empty log message *** Fix prototypes. Add. Cleanups. 2003-02-11 Simon Josefsson Add. Make it work again. Fix prototypes. Add. Fix prototypes. Fix title. Fix. Add. Add. Fix. Allow use of external libtasn1. Allow use of external libtasn1. Remove *_BUILD_* junk for pkg-config. CFLAGS for libgcrypt not needed to use shishi. Let libtool handle library dependencies. We need libgcrypt >1.1.13. *** empty log message *** Upstream update. Use new libtasn1 API. Use new libtasn1 API. *** empty log message *** Upstream update. Upstream update. Generated. Add. Update. Fix SAFE. 2003-02-10 Simon Josefsson Add. Add KRB-SAFE. Add KRB-SAFE. Move utility functions. *** empty log message *** (Cryptographic Overview): Improve wording. Fix. Doc fix. Make KRB-SAFE work. Doc fix. Ditto. Fix ChangeLog generation. Fix. 2003-02-08 Simon Josefsson Fix. Add. Fix. Fix. Fix. Fix. Fix. Fix. Fix. Add. Fix. Fix. Fix. Fix warnings. Declare getsubopt(). Add. Add. Fix. Add. Add. Add. Include arpa/inet.h. Add XXX. Fix init. Don't use DNS canonicalized hostname for display (security fix!). Add. Fix. New find/get API. Add. Fix. 2003-02-05 Simon Josefsson Fix API. Check arpa/inet.h. Fix. Add. Fix API. Fix. Fix. (shishi_principal_name_get, shishi_principal_name_realm_get): Move from asn1.c to principal.c Fix. Fix header. Fix gcrypt init. Use Shishi_asn1 instead of ASN1_TYPE. Fix. Add. Cleanup. Fix. Cleanup. Cleanup. Cleanup. Cleanup. Cleanup. Add. Fix. Use Shishi_asn1 instead of ASN1_TYPE. Use Shishi_asn1 instead of ASN1_TYPE. Cleanup. Add. Use Shishi_asn1 instead of ASN1_TYPE. Check syslog.h. Fixes. Copyright fix. Fix krberror. Doc fix. Syslog. Setuid. Fix. 2003-02-03 Simon Josefsson Doc fix. Re-order to improve manual. AS exchange works (with hardcoded credentials). Fix. What to do about this file? Abandon? Fix. Fix. Add. Fix return codes. Add. Fix debug. Add. Clear pdata in AS-REQ. Rename ticketset.c to tkts.c. Add, code from ticket.c. Fix. Remove autogenerated stuff. Improve maintainer-clean (somewhat shishi specific). *** empty log message *** Rename shishi_ticketset_* to shishi_tkts_*. Separate ASN.1 ticket functions into shishi_ticket_* and high-level ticket functions into shishi_tkt_*. 2003-02-02 Simon Josefsson Add. Fix typo. (shishi_ticket_key_set): Set key in EncKDCRepPart too. (shishi_ticket2): Set transited, authtime, endtime. Add. Add. Initialize ticket in AS. Add. Add. Add AuthorizationData. Typo. Add. (shishi_as_process): Print derived user key. Print hex key for noice verbose. Print debug info. Print debug info. 2003-02-01 Simon Josefsson Add shishi_asn1_integer2_field. Indent. Indent. Add debug code. Add shishi_enckdcreppart_key_set, shishi_enckdcreppart_nonce_set, shishi_enckdcreppart_populate_encticketpart, shishi_enckdcreppart_srealm_set, shishi_enckdcreppart_sname_set, shishi_enckdcreppart_server_set, shishi_enckdcreppart_srealmserver_set, shishi_encasreppart. Indent. Add shishi_kdcrep_crealm_set, shishi_kdcrep_cname_set, shishi_kdcrep_client_set, shishi_kdcrep_crealmserver_set, shishi_kdcrep_set_enc_part, shishi_kdcrep_add_enc_part. (shishi_kdcrep_get_ticket): Don't lose on (some) optional fields. Add shishi_kdcreq_nonce, shishi_kdcreq_cname_get. Indent. Add shishi_as_rep_der_set. (shishi_apreq_get_ticket, shishi_apreq_set_ticket): Don't lose on optional fields (some still left though). Indent. Indent. (shishi_ap_rep_der_set): Don't lose previous AP-REP. (shishi_ap_rep_der): New. 2003-01-31 Simon Josefsson Add. Fix key usage enum member name. Add functions to set things. Fix. Add. Add shishi_encticketpart. Add shishi_init_server. Add shishi_key_random. Use strong random data. 2003-01-26 Simon Josefsson Generated. 2003-01-22 Simon Josefsson New. Fix. Add some text. Add uninstall target. Fix distcheck. Use libgcrypt for CRC. Fix libstringprep vs libidn. 2003-01-21 Simon Josefsson Fix libstringprep vs libidn. Don't dist gdbm (for now). Fix libstringprep vs libidn. Fix cvs2cl and gtk-dock for distcheck. Don't check crc (gcrypt used now). 2002-12-15 Simon Josefsson Unfinished SAFE support. Fix. Fix. Fix. Fix. *** empty log message *** 2002-12-14 Simon Josefsson Add GTK-DOC stuff. Fix warnings from GTK-DOC. Generate HTML/SGML API documentation using GTK-DOC. Fix. EXTRA_DIST ANNOUNCE: Add. Define PAM_STATIC for static builds. Solaris PAM fixes. Make sure ChangeLog is regenerated. 2002-12-13 Simon Josefsson Fix. Copying condition changes. Fix warnings. Fix ports. Add --disable-pam configure option. *** empty log message *** Don't hardcode server name. Revert earlier changes that broke simplified encryption profile. PAM fixes. Add PAM. Initial PAM module. 2002-12-12 Simon Josefsson Fixes. Add. *** empty log message *** Fix warnings. Use new interfaces. Use new ASN.1 interface. Cleanup ASN.1 stuff. Expire tickets. 2002-12-11 Simon Josefsson Test file read/write. Mem fixes. Separate ticket expiring on write. Use new ticketset API. Fixes. Use new ticketset interface. s/ticketset_init/ticketset/g Add ticketset self tests. Fix for new API. Fixes discovered while writing ticketset selftests. Fix. Use new key API. Add. Don't define ngettext. Fix. Add. Fix keyusage. Use new AP interface. Add crypto key file. Use AP interface. Use new key API. Improve AP interface. Key API fixes. Fix (make TGS work again). *** empty log message *** Portability stuff. Hostkeys. Dmalloc. Fix copying conditions. Use new key API. -Wall fixes. Cleanup key API. Add hostkey API starting point. Fixes. 2002-12-09 Simon Josefsson Removed text now in README-alpha. Add. Improve verbose messages. Use TGS interface. Cleanup TGS interface. 2002-12-08 Simon Josefsson Install as shishi-telnetd. Telnetd works. Fix. Use cipher_randomlen(). Add cipher_randomlen(). Fix. s/service/server/g. Print EncKDCRepPart when printing ticket. Store KDC-REP in ticket file too (for the cname, crealm, and keytype protection etype fields, and possibly other uses in the future). Remove most of shishi_last_*(). Remove debug output. Use new ticketset API. Print etype key is protected under. Cleanup ticketset API. Don't hardcode all tickets belonging to jas@JOSEFSSON.ORG. kdc.c is broken for now. Print last-req too. Fix. Add find/get_ticket etype. Fix ticket flags. Add last-req. Remove old AP-REQ API. Fix doc. Fix. 2002-12-07 Simon Josefsson Gnits. Add. Use GPL instead of LGPL. Use GPL instead of LGPL. Use new AS interface. Clean up AS interface. Fix. Use new AP interface. Use new AP interface for TGS. Use new AP interface. Clean up AP interface. Update AP. Fix crash in get_ticket. Zeroterminate server string. Fix AP-REP parsing. Set servername. Use new AP functions. Don't crash if ap==NULL. Add SuSE. Add -I's. Add cleanup. Use new get_ticket API. Fixes. Add ticketset_get_ticket_*(). Save ticketset. Use shishi_warn(). 2002-12-06 Simon Josefsson Try harder to find socklen_t before falling back to size_t. Fix warnings. Don't gethostbyname(NULL). *** empty log message *** Workaround gettext+libtool distcheck bug. Fixes. Workaround gettext+libtool distcheck bug. Handle ngettext() from autoconf instead. Print cusec in hex. Don't corrupt data in _shishi_asn1_integer_field (this caused the spurious AP-REP verification failures). Fix. Fix. Add entire GNU Inetutils, although most of it is disabled by Shishi's configure.ac. LTLIBINTL is included via libshishi. 2002-12-05 Simon Josefsson s/putc_unlocked/putc/g for freebsd on alpha Fix copying conditions. Fix copying conditions. Make it less shishi specific. 2002-12-04 Simon Josefsson Add XXX about not running gethostbyname() during startup. Add realm/principal API doc. Harmonise realm, principal and ticketset filename API. Fix --help. Fix destroy --server-name. Add ticket destroy command. Use default ticketset in src/. Add as.c/tgs.c prototypes. 2002-12-03 Simon Josefsson Fix dependencies. Doc fixes. Exclude libstringprep from ChangeLog. Portability fixes. Typographic fixes. *** empty log message *** Generate error label documentation. New API. Improve crypto documentation. 2002-12-02 Simon Josefsson Fix stringprep variables. Define socklen_t to size_t if it doesn't exist (Tru64 without _XOPEN_SOURCE=500). Fix libstringprep variables. *** empty log message *** Move some private structures to where they belong. Fixes. Shishi_key fixes. Create new Shishi_key structure to hide key details. Add new key data type. Use new ticket API. Don't take handle parameter in ticket accessor functions. Add --verbose-library. Fix return code. Fix. Remove unused stuff. 2002-12-01 Simon Josefsson Include argp. Fix includes. Fix prototype. Add. Fix includes. Fix includes. Export key usage values. regenerated Enhance key handling in crypto. Fixes. Fix. Add. Fix. Add. Add key output functions. Always specify rand2key and str2key functions. Allow randomize to return 0 "random" bytes. Fixes. More debugging output. Fix. Fixes. Add stringprocess. Only support AES256 by default, as per RFC1510bis. Fix. Fixes. 2002-11-30 Simon Josefsson Fix typo. Cleanup. Print KRB-ERROR in AS/TGS. Improve error handling. Replaced DEBUG* and SILENT with VERBOSE. Added KRB-ERROR handling. Improve errors. Use new password API. Character set handling for passwords, subject to new "stringprocess" configuration verb. Remove argp (now added to LIBS). Add AC_LIBOBJ's to EXTRA_DIST. From gnulib, a AC_LIBOBJ. Add libstringprep. Clean up a little. From gnulib, a AC_LIBOBJ. 2002-11-29 Simon Josefsson use aes256, aes128, des3 by default indent caused regeneration indent new version add indent these are regenerated by autoreconf always include stdarg, never varargs add intl *** empty log message *** add my patches add libtasn1 from CVS as of 2002-11-29 add libgcrypt from CVS, version 1.1.0 plus md4 and cts fix cipher_name generated updates fixes endian fixes for keytype as + kdc + telnet now works on solaris fix when cipher_name fails fix TZ variable for solaris remove shortnonce stuff fix add unsetenv LIBOBJ fix typo remove alloca and malloc LIBOBJs compile fixes solaris has sockaddr_storage, but using it doesn't work?! improved setenv LIBOBJs from Bruno. endian fixes 2002-11-28 Simon Josefsson copy from glibc that actually works libtool obsoletes ranlib nonces are 4 bytes, remove shortnonce stuff. 2002-11-27 Simon Josefsson fix fix msg need more includes print warnings make dist work add prototype fix asn1 dir fixes 2002-11-26 Simon Josefsson extradist arpa/telnet.h don't hardcode SHELL remove gdbm temporarily add ngettext check add setenv replacement new file, for system's that lack setenv() extradist setenv.c fix ngettext needs asn1 includes _N is defined on solaris need asn1 includes fix add CFLAGS to cmd line history fixes. small fixes 2002-11-25 Simon Josefsson remove krb5 stuff from inetutils remove ugly stuff configure.ac Rename telnetd shishi-telnetd. *** empty log message *** call it shishi-telnet instead of telnet. update for shishi Upstream files. extra/ *** empty log message *** *** empty log message *** Now it works. Add inetutils in extra/. Initial stripped down GNU Inetutils import. *** empty log message *** *** empty log message *** remove debug code EXTRA_DIST crypt-*.c todo's *** empty log message *** *** empty log message *** *** empty log message *** add copyright *** empty log message *** Move platforms to doc/shishi.texi *** empty log message *** Add user manual, reporting bugs, supported platforms. 2002-11-23 Simon Josefsson *** empty log message *** fixes. fixes remove junk remove md4 junk use autoreconf Gettext version for autoreconf. User/Administration Manual sections. 2002-11-22 Simon Josefsson Add high-level AP functions. *** empty log message *** "kerberos" is a dirty word. Remove keytype from some functions. Add crypto overview. Fixes. Cleanup. remove junk. 3DES TGS works. Don't link with libtasn1. Fixes. Add stringprep. test/ renamed to tests/ (repository mv). *** empty log message *** Add server-realm. Move gcrypt after shishi. Read CFG in library. Add TGS client/server name. Don't link with libtasn. Crypto updates. Add --client-name and --server-name for TGS. Read cfg and create ticketset within library. Inline call. Free some more. remove errorDescription from shishi_d2a_apprep Str2key parameter. Map server to realm. Handle library default ticketset. Crypto key usage fixes. Fix keyusage enum. Add cfg and ticketset. Read config files and ticketset in shishi_init(). Add shishi_cfg_default_*. Cleanup cksum type selection a little. Crypto keyusage. Encrypt with key usage. Cleanups shishi_asprintf(). Add vasprintf, pkcs5. Link asn1 stuff directly. *** empty log message *** Split crypto files more. AES works. Add AES test vectors. 2002-11-20 Simon Josefsson *** empty log message *** Check libgcrypt return codes. Split crypto file. Some initial AES stuff. Maybe other things. 2002-11-14 Simon Josefsson *** empty log message *** Removed junk (automatically generated). 2002-11-08 Simon Josefsson Fix bug. Add PKCS5 PBKDF2 implementation. *** empty log message *** 2002-11-07 Simon Josefsson Add -R. 2002-11-05 Simon Josefsson Make it compile with buggy libtasn1. 2002-11-04 Simon Josefsson Add kdc-timeout and kdc-retries configuration file settings. Manual improvements. Added MOD-CRC32 and test vectors. Added MD4 (to be replaced by my patch to libgcrypt). Added Shishi_as and Shishi_tgs structures for high-level KDC exchanges. Separated KDC command into high-level AS, TGS and low-level KDC. 2002-11-02 Simon Josefsson Reworked silent/verbose/debug handling in library. Handles more than one KDC. 2002-10-31 Simon Josefsson Improve daemon. 2002-10-30 Simon Josefsson EXTRA_DIST gdbm until it has automake. Remove dependency on GNET Add GDBM Add dummy distdir and distcheck targets. Add gdbm-1.8.3 2002-10-28 Simon Josefsson des3-cbc-hmac-sha1-kd AS works. 2002-10-26 Simon Josefsson Add client-kdc-etypes configuration option. *** empty log message *** gettextize want these Moved development into CVS. 2002-10-19 Simon Josefsson *** empty log message *** These should not be in CVS. 2002-10-07 Simon Josefsson *** empty log message *** Initial release, version 0.0.0. shishi-1.0.3/ABOUT-NLS0000644000000000000000000026747414273615065011155 000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this 'ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU 'gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU 'gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU 'gettext'. Other packages have their own ways to internationalization, predating GNU 'gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU 'gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU 'gettext' installed on your system and run configure without an option for your new package, 'configure' will probably detect the previously built and installed 'libintl' library and will decide to use it. If not, you may have to to use the '--with-libintl-prefix' option to tell 'configure' where to look for it. Internationalized packages usually have many 'po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at 'configure' time by using the '--disable-nls' switch, all available translations are installed together with the package. However, the environment variable 'LINGUAS' may be set, prior to configuration, to limit the installed set. 'LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the 'LANG' environment variable to the appropriate 'LL_CC' combination. If you happen to have the 'LC_ALL' or some other 'LC_xxx' environment variables set, you should unset them before setting 'LANG', otherwise the setting of 'LANG' will not have the desired effect. Here 'LL' is an ISO 639 two-letter language code, and 'CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute 'setenv LANG de_DE' (in 'csh'), 'export LANG; LANG=de_DE' (in 'sh') or 'export LANG=de_DE' (in 'bash'). This can be done from your '.login' or '.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, 'de_AT' is used for Austria, and 'pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of 'LL_CC', with 'LL' denoting the language and 'CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as 'LL' or 'LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command 'locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called 'LANGUAGE'. GNU 'gettext' gives preference to 'LANGUAGE' over 'LANG' for the purpose of message handling, but you still need to have 'LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set 'LANGUAGE' to 'sv:de' while leaving 'LANG' to 'sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from 'no' to 'nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under 'nb' and some older ones under 'no', it's recommended for Norwegian users to set 'LANGUAGE' to 'nb:no' so that both newer and older translations are used. In the 'LANGUAGE' environment variable, but not in the 'LANG' environment variable, 'LL_CC' combinations can be abbreviated as 'LL' to denote the language's main dialect. For example, 'de' is equivalent to 'de_DE' (German as spoken in Germany), and 'pt' to 'pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, 'http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has '-request' appended. For example, speakers of Swedish can send a message to 'sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to 'coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of Jun 2014. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be bg bn bn_IN bs ca crh cs +---------------------------------------------------+ a2ps | [] [] [] | aegis | | anubis | | aspell | [] [] [] | bash | [] [] [] | bfd | | binutils | [] | bison | | bison-runtime | [] | buzztrax | [] | ccd2cue | | ccide | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | [] | datamash | | denemo | [] [] | dfarc | [] | dialog | [] [] [] | dico | | diffutils | [] | dink | [] | direvent | | doodle | [] | dos2unix | | dos2unix-man | | e2fsprogs | [] [] | enscript | [] | exif | [] | fetchmail | [] [] | findutils | [] | flex | [] | freedink | [] [] | fusionforge | | gas | | gawk | [] | gcal | [] | gcc | | gdbm | | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gjay | | glunarclock | [] [] [] | gnubiff | [] | gnubik | [] | gnucash | () () [] | gnuchess | | gnulib | [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] | gprof | [] | gramadoir | | grep | [] [] [] | grub | [] | gsasl | | gss | | gst-plugins-bad | [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] | gst-plugins-ugly | [] [] [] | gstreamer | [] [] [] [] | gtick | [] | gtkam | [] [] | gtkspell | [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] | hello | [] | help2man | | help2man-texi | | hylafax | | idutils | | iso_15924 | [] | iso_3166 | [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | iso_639_5 | | jwhois | | kbd | [] | klavaro | [] [] [] [] [] | ld | [] | leafpad | [] [] [] [] | libc | [] [] [] | libexif | () | libextractor | | libgnutls | [] | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | | libiconv | [] [] | libidn | [] | liferea | [] [] [] [] | lilypond | [] [] | lordsawar | [] | lprng | | lynx | [] [] | m4 | [] | mailfromd | | mailutils | | make | [] | man-db | [] [] | man-db-manpages | | midi-instruments | [] [] [] | minicom | [] | mkisofs | [] | myserver | [] | nano | [] [] [] | opcodes | | parted | [] | pies | | pnmixer | | popt | [] | procps-ng | | procps-ng-man | | psmisc | [] | pspp | [] | pushover | [] | pwdutils | | pyspread | | radius | [] | recode | [] [] [] | recutils | | rpm | | rush | | sarg | | sed | [] [] [] [] | sharutils | [] | shishi | | skribilo | | solfege | [] [] | solfege-manual | | spotmachine | | sudo | [] [] | sudoers | [] [] | sysstat | [] | tar | [] [] [] | texinfo | [] [] | texinfo_document | [] [] | tigervnc | [] | tin | | tin-man | | tracgoogleappsa... | | trader | | util-linux | [] | ve | | vice | | vmm | | vorbis-tools | [] | wastesedge | | wcd | | wcd-man | | wdiff | [] [] | wget | [] | wyslij-po | | xboard | | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ af am an ar as ast az be bg bn bn_IN bs ca crh cs 4 0 2 5 3 11 0 8 25 3 3 1 55 4 74 da de el en en_GB en_ZA eo es et eu fa fi fr +--------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] [] | aegis | [] [] [] [] | anubis | [] [] [] [] [] | aspell | [] [] [] [] [] [] [] | bash | [] [] [] | bfd | [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] [] [] [] [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | [] [] [] [] | ccd2cue | [] [] [] [] | ccide | [] [] [] [] [] [] | cflow | [] [] [] [] [] | clisp | [] [] [] [] [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] [] | cppi | [] [] [] [] [] | cpplib | [] [] [] [] [] [] | cryptsetup | [] [] [] [] [] | datamash | [] [] [] [] | denemo | [] | dfarc | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] [] [] | dico | [] [] [] [] | diffutils | [] [] [] [] [] [] | dink | [] [] [] [] [] [] | direvent | [] [] [] [] | doodle | [] [] [] [] | dos2unix | [] [] [] [] [] | dos2unix-man | [] [] [] | e2fsprogs | [] [] [] [] [] | enscript | [] [] [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] () [] [] [] [] [] | findutils | [] [] [] [] [] [] [] [] | flex | [] [] [] [] [] [] | freedink | [] [] [] [] [] [] [] [] | fusionforge | [] [] [] | gas | [] [] [] | gawk | [] [] [] [] [] | gcal | [] [] [] [] | gcc | [] | gdbm | [] [] [] [] [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] | gjay | [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | () [] [] () | gnubik | [] [] [] [] [] | gnucash | [] () () () () () () | gnuchess | [] [] [] [] | gnulib | [] [] [] [] [] [] [] | gnunet | [] | gnunet-gtk | [] | gold | [] [] [] | gphoto2 | [] () [] [] | gprof | [] [] [] [] [] [] | gramadoir | [] [] [] [] [] | grep | [] [] [] [] [] [] [] | grub | [] [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] () [] [] [] | gtkam | [] () [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] | guix | [] [] | guix-packages | | gutenprint | [] [] [] [] | hello | [] [] [] [] [] [] [] [] | help2man | [] [] [] [] [] [] [] | help2man-texi | [] [] [] | hylafax | [] [] | idutils | [] [] [] [] [] | iso_15924 | [] () [] [] () [] () | iso_3166 | [] () [] [] [] [] () [] () | iso_3166_2 | [] () () () | iso_4217 | [] () [] [] [] () [] () | iso_639 | [] () [] [] () [] () | iso_639_3 | () () () | iso_639_5 | () () () | jwhois | [] [] [] [] [] | kbd | [] [] [] [] [] [] | klavaro | [] [] [] [] [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] [] () [] [] | libextractor | [] | libgnutls | [] [] [] [] | libgphoto2 | [] () [] | libgphoto2_port | [] () [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] [] | libidn | [] [] [] [] [] | liferea | [] () [] [] [] [] [] | lilypond | [] [] [] [] [] [] | lordsawar | [] [] | lprng | | lynx | [] [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | [] | mailutils | [] [] [] [] | make | [] [] [] [] [] | man-db | [] [] [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] [] [] [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] | myserver | [] [] [] [] | nano | [] [] [] [] [] [] [] | opcodes | [] [] [] [] [] | parted | [] [] [] | pies | [] | pnmixer | [] [] | popt | [] [] [] [] [] [] | procps-ng | [] [] | procps-ng-man | [] [] | psmisc | [] [] [] [] [] [] [] | pspp | [] [] [] | pushover | () [] [] [] | pwdutils | [] [] [] | pyspread | [] [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] | recutils | [] [] [] [] | rpm | [] [] [] [] [] | rush | [] [] [] | sarg | [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] [] [] | skribilo | [] [] [] | solfege | [] [] [] [] [] [] [] [] | solfege-manual | [] [] [] [] [] | spotmachine | [] [] [] [] [] | sudo | [] [] [] [] [] [] | sudoers | [] [] [] [] [] [] | sysstat | [] [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] [] | texinfo_document | [] [] [] [] | tigervnc | [] [] [] [] [] [] | tin | [] [] [] [] | tin-man | [] | tracgoogleappsa... | [] [] [] [] [] | trader | [] [] [] [] [] [] | util-linux | [] [] [] [] | ve | [] [] [] [] [] | vice | () () () | vmm | [] [] | vorbis-tools | [] [] [] [] | wastesedge | [] | wcd | [] [] [] [] | wcd-man | [] | wdiff | [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] | wyslij-po | [] [] [] [] | xboard | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] [] | +--------------------------------------------------+ da de el en en_GB en_ZA eo es et eu fa fi fr 119 131 32 1 6 0 94 95 22 13 4 102 139 ga gd gl gu he hi hr hu hy ia id is it ja ka kk +-------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] | anubis | [] [] [] [] | aspell | [] [] [] [] [] | bash | [] [] [] [] | bfd | [] [] | binutils | [] [] [] | bison | [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | | ccd2cue | [] | ccide | [] [] | cflow | [] [] [] | clisp | | coreutils | [] [] | cpio | [] [] [] [] [] [] | cppi | [] [] [] [] [] | cpplib | [] [] | cryptsetup | [] | datamash | | denemo | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] | dink | [] | direvent | [] | doodle | [] [] | dos2unix | [] [] | dos2unix-man | | e2fsprogs | [] [] | enscript | [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] | findutils | [] [] [] [] [] [] [] | flex | [] | freedink | [] [] [] [] | fusionforge | | gas | [] | gawk | [] () [] | gcal | | gcc | | gdbm | | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] | gettext-tools | [] [] [] | gjay | [] | glunarclock | [] [] [] [] [] [] | gnubiff | [] [] () | gnubik | [] [] [] | gnucash | () () () () () | gnuchess | | gnulib | [] [] [] [] [] | gnunet | | gnunet-gtk | | gold | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] [] | grep | [] [] [] [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] [] | hello | [] [] [] [] [] | help2man | [] [] [] | help2man-texi | | hylafax | [] | idutils | [] [] | iso_15924 | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] | iso_4217 | [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | iso_639_5 | | jwhois | [] [] [] [] | kbd | [] [] [] | klavaro | [] [] [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] [] [] | libidn | [] [] [] [] | liferea | [] [] [] [] [] | lilypond | [] | lordsawar | | lprng | [] | lynx | [] [] [] [] | m4 | [] [] [] [] [] | mailfromd | | mailutils | | make | [] [] [] [] | man-db | [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] [] [] [] | minicom | [] [] [] | mkisofs | [] [] | myserver | [] | nano | [] [] [] [] [] [] | opcodes | [] [] [] | parted | [] [] [] [] [] | pies | | pnmixer | [] [] | popt | [] [] [] [] [] [] [] [] [] [] | procps-ng | | procps-ng-man | | psmisc | [] [] [] [] | pspp | [] [] | pushover | [] | pwdutils | [] | pyspread | | radius | [] | recode | [] [] [] [] [] [] [] | recutils | | rpm | [] | rush | [] | sarg | | sed | [] [] [] [] [] [] [] | sharutils | | shishi | | skribilo | [] | solfege | [] [] | solfege-manual | | spotmachine | | sudo | [] [] [] [] | sudoers | [] [] [] | sysstat | [] [] [] [] | tar | [] [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] [] [] | tigervnc | | tin | | tin-man | | tracgoogleappsa... | [] [] [] [] | trader | [] [] | util-linux | [] | ve | [] | vice | () () | vmm | | vorbis-tools | [] [] | wastesedge | [] | wcd | | wcd-man | | wdiff | [] [] [] | wget | [] [] [] [] | wyslij-po | [] [] [] | xboard | | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ ga gd gl gu he hi hr hu hy ia id is it ja ka kk 35 2 47 4 8 2 60 71 2 6 81 11 87 57 0 3 kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl +--------------------------------------------------+ a2ps | [] [] | aegis | [] | anubis | [] [] [] | aspell | [] [] | bash | [] [] | bfd | | binutils | | bison | [] | bison-runtime | [] [] [] [] [] [] | buzztrax | | ccd2cue | | ccide | [] [] | cflow | [] | clisp | [] | coreutils | [] [] | cpio | [] | cppi | | cpplib | [] | cryptsetup | [] | datamash | [] [] | denemo | | dfarc | [] [] | dialog | [] [] [] [] [] [] | dico | | diffutils | [] [] [] | dink | [] | direvent | [] | doodle | [] | dos2unix | [] [] | dos2unix-man | [] | e2fsprogs | [] | enscript | [] | exif | [] [] [] | fetchmail | [] | findutils | [] [] | flex | [] | freedink | [] [] | fusionforge | | gas | | gawk | [] | gcal | | gcc | | gdbm | | gettext-examples | [] [] [] [] [] [] | gettext-runtime | [] [] [] | gettext-tools | [] | gjay | | glunarclock | [] [] | gnubiff | [] | gnubik | [] [] | gnucash | () () () () () () () [] | gnuchess | [] [] | gnulib | [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] | gprof | [] [] | gramadoir | [] | grep | [] [] | grub | [] [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | [] [] [] | gtick | [] | gtkam | [] [] | gtkspell | [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] | hello | [] [] [] | help2man | [] | help2man-texi | | hylafax | [] | idutils | [] | iso_15924 | () [] [] | iso_3166 | [] [] [] () [] [] [] [] [] [] | iso_3166_2 | () [] | iso_4217 | () [] [] [] | iso_639 | [] [] () [] [] [] [] | iso_639_3 | [] () [] | iso_639_5 | () | jwhois | [] [] | kbd | [] | klavaro | [] [] | ld | | leafpad | [] [] [] [] [] | libc | [] [] | libexif | [] | libextractor | [] | libgnutls | [] [] | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | [] | libiconv | [] [] | libidn | [] | liferea | [] [] [] | lilypond | [] | lordsawar | | lprng | | lynx | [] | m4 | [] | mailfromd | | mailutils | | make | [] [] | man-db | [] | man-db-manpages | [] | midi-instruments | [] [] [] [] [] [] [] | minicom | [] | mkisofs | [] | myserver | | nano | [] [] [] | opcodes | [] | parted | [] [] | pies | | pnmixer | [] | popt | [] [] [] [] [] | procps-ng | | procps-ng-man | | psmisc | [] | pspp | [] [] | pushover | | pwdutils | [] | pyspread | | radius | [] | recode | [] [] | recutils | [] | rpm | [] | rush | [] | sarg | | sed | [] [] | sharutils | [] | shishi | | skribilo | | solfege | [] [] | solfege-manual | [] | spotmachine | [] | sudo | [] [] [] | sudoers | [] [] [] | sysstat | [] [] | tar | [] [] [] | texinfo | [] | texinfo_document | [] | tigervnc | [] | tin | | tin-man | | tracgoogleappsa... | [] [] [] | trader | [] | util-linux | [] | ve | [] | vice | [] | vmm | [] | vorbis-tools | [] | wastesedge | [] | wcd | [] | wcd-man | [] | wdiff | [] | wget | [] [] | wyslij-po | [] | xboard | [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +--------------------------------------------------+ kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl 5 15 4 6 0 13 23 3 3 3 4 11 2 42 1 125 nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] [] [] | bash | [] [] [] [] [] [] | bfd | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | [] | ccd2cue | [] [] | ccide | [] [] [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] | cpio | [] [] [] | cppi | [] [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | datamash | [] [] | denemo | | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | [] | diffutils | [] [] [] | dink | | direvent | [] [] [] | doodle | [] [] | dos2unix | [] [] [] [] | dos2unix-man | [] [] | e2fsprogs | [] | enscript | [] [] [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] [] [] [] | fusionforge | | gas | | gawk | [] | gcal | | gcc | | gdbm | [] [] [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gjay | [] | glunarclock | [] [] [] [] [] [] | gnubiff | [] | gnubik | [] [] [] [] | gnucash | () () () () () [] | gnuchess | [] [] | gnulib | [] [] [] [] [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] | grep | [] [] [] [] [] [] | grub | [] [] [] [] [] | gsasl | [] [] [] | gss | [] [] [] [] | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] | hello | [] [] [] [] [] [] | help2man | [] [] [] [] | help2man-texi | [] | hylafax | | idutils | [] [] [] | iso_15924 | [] () [] [] [] [] | iso_3166 | [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] () [] | iso_4217 | [] [] () [] [] [] [] [] | iso_639 | [] [] [] () [] [] [] [] [] [] | iso_639_3 | [] () | iso_639_5 | () [] | jwhois | [] [] [] [] | kbd | [] [] | klavaro | [] [] [] [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] | libc | [] [] [] | libexif | [] () [] | libextractor | [] | libgnutls | [] | libgphoto2 | [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] [] | liferea | [] [] [] [] () [] [] | lilypond | | lordsawar | | lprng | [] | lynx | [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | midi-instruments | [] [] [] [] [] [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | [] [] | nano | [] [] [] [] [] [] | opcodes | | parted | [] [] [] [] [] [] | pies | [] | pnmixer | [] | popt | [] [] [] [] [] [] | procps-ng | [] | procps-ng-man | [] | psmisc | [] [] [] [] | pspp | [] [] | pushover | | pwdutils | [] | pyspread | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | recutils | [] [] | rpm | [] | rush | [] [] [] | sarg | [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] | shishi | [] [] | skribilo | [] | solfege | [] [] [] | solfege-manual | [] [] | spotmachine | [] [] | sudo | [] [] [] [] [] [] | sudoers | [] [] [] [] | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] [] | tigervnc | [] [] [] | tin | [] | tin-man | | tracgoogleappsa... | [] [] [] [] | trader | [] [] | util-linux | [] [] | ve | [] [] [] | vice | | vmm | | vorbis-tools | [] [] [] | wastesedge | | wcd | | wcd-man | | wdiff | [] [] [] [] [] | wget | [] [] [] [] [] | wyslij-po | [] [] [] [] | xboard | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | +------------------------------------------------+ nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 7 3 6 114 1 12 88 32 82 3 40 45 7 101 sv sw ta te tg th tr uk ur vi wa wo zh_CN +----------------------------------------------+ a2ps | [] [] [] [] [] | aegis | [] | anubis | [] [] [] [] | aspell | [] [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | buzztrax | [] [] [] | ccd2cue | [] [] [] | ccide | [] [] [] [] | cflow | [] [] [] [] | clisp | | coreutils | [] [] [] | cpio | [] [] [] [] [] | cppi | [] [] [] [] | cpplib | [] [] [] [] [] | cryptsetup | [] [] [] | datamash | [] [] [] | denemo | [] | dfarc | [] [] | dialog | [] [] [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] | dink | [] | direvent | [] [] | doodle | [] [] | dos2unix | [] [] [] [] | dos2unix-man | [] [] [] | e2fsprogs | [] [] [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] | freedink | [] [] [] | fusionforge | | gas | [] | gawk | [] [] [] | gcal | [] [] [] | gcc | [] | gdbm | [] [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] [] [] [] | gjay | [] [] [] | glunarclock | [] [] [] [] | gnubiff | [] [] | gnubik | [] [] [] [] | gnucash | () () () () [] | gnuchess | [] [] [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gold | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] [] | grep | [] [] [] [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] [] [] | hello | [] [] [] [] [] [] | help2man | [] [] [] | help2man-texi | [] | hylafax | [] | idutils | [] [] [] | iso_15924 | [] () [] [] () [] | iso_3166 | [] [] () [] [] () [] [] | iso_3166_2 | () [] [] () [] | iso_4217 | [] () [] [] () [] | iso_639 | [] [] [] () [] [] () [] [] | iso_639_3 | [] () [] [] () | iso_639_5 | () [] () | jwhois | [] [] [] [] | kbd | [] [] [] [] | klavaro | [] [] [] [] [] [] | ld | [] [] [] [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] [] () | libextractor | [] [] | libgnutls | [] [] [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] | libidn | () [] [] [] | liferea | [] [] [] [] [] | lilypond | [] | lordsawar | | lprng | [] | lynx | [] [] [] [] | m4 | [] [] [] | mailfromd | [] [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] | minicom | [] [] | mkisofs | [] [] [] | myserver | [] | nano | [] [] [] [] | opcodes | [] [] [] | parted | [] [] [] [] [] | pies | [] [] | pnmixer | [] [] [] | popt | [] [] [] [] [] [] [] | procps-ng | [] [] | procps-ng-man | [] | psmisc | [] [] [] [] | pspp | [] [] [] | pushover | [] | pwdutils | [] [] | pyspread | [] | radius | [] [] | recode | [] [] [] [] | recutils | [] [] [] | rpm | [] [] [] [] | rush | [] [] | sarg | | sed | [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] [] | skribilo | [] [] | solfege | [] [] [] [] | solfege-manual | [] | spotmachine | [] [] [] | sudo | [] [] [] [] [] | sudoers | [] [] [] [] | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] | tigervnc | [] [] [] | tin | [] | tin-man | | tracgoogleappsa... | [] [] [] [] [] | trader | [] | util-linux | [] [] [] [] | ve | [] [] [] [] | vice | () () | vmm | | vorbis-tools | [] [] | wastesedge | | wcd | [] [] [] | wcd-man | [] | wdiff | [] [] [] [] | wget | [] [] [] | wyslij-po | [] [] | xboard | [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | +----------------------------------------------+ sv sw ta te tg th tr uk ur vi wa wo zh_CN 106 1 4 3 0 13 51 115 1 125 7 1 100 zh_HK zh_TW +-------------+ a2ps | | 30 aegis | | 9 anubis | | 19 aspell | | 29 bash | [] | 23 bfd | | 11 binutils | | 12 bison | [] | 18 bison-runtime | [] | 38 buzztrax | | 9 ccd2cue | | 10 ccide | | 17 cflow | | 16 clisp | | 10 coreutils | | 18 cpio | | 20 cppi | | 17 cpplib | [] | 19 cryptsetup | | 14 datamash | | 11 denemo | | 5 dfarc | | 17 dialog | [] | 42 dico | | 6 diffutils | | 22 dink | | 10 direvent | | 11 doodle | | 12 dos2unix | [] | 18 dos2unix-man | | 9 e2fsprogs | | 15 enscript | | 21 exif | | 27 fetchmail | | 19 findutils | | 29 flex | [] | 19 freedink | | 24 fusionforge | | 3 gas | | 5 gawk | | 13 gcal | | 8 gcc | | 2 gdbm | | 10 gettext-examples | [] [] | 40 gettext-runtime | [] [] | 35 gettext-tools | [] | 24 gjay | | 9 glunarclock | [] | 27 gnubiff | | 9 gnubik | | 19 gnucash | () | 6 gnuchess | | 11 gnulib | | 23 gnunet | | 1 gnunet-gtk | | 1 gold | | 7 gphoto2 | [] | 19 gprof | | 21 gramadoir | | 14 grep | [] | 31 grub | | 21 gsasl | [] | 19 gss | | 17 gst-plugins-bad | | 21 gst-plugins-base | | 27 gst-plugins-good | | 32 gst-plugins-ugly | | 34 gstreamer | [] | 32 gtick | | 19 gtkam | | 24 gtkspell | [] [] | 48 guix | | 2 guix-packages | | 0 gutenprint | | 15 hello | [] | 30 help2man | | 18 help2man-texi | | 5 hylafax | | 5 idutils | | 14 iso_15924 | [] | 23 iso_3166 | [] [] | 58 iso_3166_2 | | 9 iso_4217 | [] [] | 28 iso_639 | [] [] | 46 iso_639_3 | | 10 iso_639_5 | | 2 jwhois | [] | 20 kbd | | 17 klavaro | | 30 ld | [] | 15 leafpad | [] | 39 libc | [] | 24 libexif | | 10 libextractor | | 5 libgnutls | | 13 libgphoto2 | | 10 libgphoto2_port | [] | 19 libgsasl | | 18 libiconv | [] | 29 libidn | | 17 liferea | | 29 lilypond | | 11 lordsawar | | 3 lprng | | 3 lynx | | 19 m4 | [] | 22 mailfromd | | 4 mailutils | | 6 make | | 19 man-db | | 15 man-db-manpages | | 10 midi-instruments | [] | 43 minicom | [] | 17 mkisofs | | 13 myserver | | 9 nano | [] | 30 opcodes | | 12 parted | [] | 23 pies | | 4 pnmixer | | 9 popt | [] | 36 procps-ng | | 5 procps-ng-man | | 4 psmisc | [] | 22 pspp | | 13 pushover | | 6 pwdutils | | 8 pyspread | | 6 radius | | 9 recode | | 31 recutils | | 10 rpm | [] | 13 rush | | 10 sarg | | 4 sed | [] | 35 sharutils | | 13 shishi | | 7 skribilo | | 7 solfege | | 21 solfege-manual | | 9 spotmachine | | 11 sudo | | 26 sudoers | | 22 sysstat | | 23 tar | [] | 30 texinfo | | 17 texinfo_document | | 13 tigervnc | | 14 tin | [] | 7 tin-man | | 1 tracgoogleappsa... | [] | 22 trader | | 12 util-linux | | 13 ve | | 14 vice | | 1 vmm | | 3 vorbis-tools | | 13 wastesedge | | 3 wcd | | 8 wcd-man | | 3 wdiff | [] | 23 wget | | 21 wyslij-po | | 14 xboard | | 10 xdg-user-dirs | [] [] | 68 xkeyboard-config | [] | 28 +-------------+ 89 teams zh_HK zh_TW 166 domains 7 42 2809 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If Jun 2014 seems to be old, you may fetch a more recent copy of this 'ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at 'http://translationproject.org/extra/matrix.html'. 1.5 Using 'gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU 'gettext' in your package. Of course you have to respect the GNU Lesser General Public License which covers the use of the GNU 'gettext' library. This means in particular that even non-free programs can use 'libintl' as a shared library, whereas only free software can use 'libintl' as a static library or use modified versions of 'libintl'. Once the sources are changed appropriately and the setup can handle the use of 'gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact 'coordinator@translationproject.org' to make the '.pot' files available to the translation teams. shishi-1.0.3/.version0000644000000000000000000000000614273615666011373 000000000000001.0.3 shishi-1.0.3/INSTALL0000644000000000000000000003662614273524057010750 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2022 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell command './configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the 'README' file for instructions specific to this package. Some packages provide this 'INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The 'configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a 'Makefile' in each directory of the package. It may also create one or more '.h' files containing system-dependent definitions. Finally, it creates a shell script 'config.status' that you can run in the future to recreate the current configuration, and a file 'config.log' containing compiler output (useful mainly for debugging 'configure'). It can also use an optional file (typically called 'config.cache' and enabled with '--cache-file=config.cache' or simply '-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how 'configure' could check whether to do them, and mail diffs or instructions to the address given in the 'README' so they can be considered for the next release. If you are using the cache, and at some point 'config.cache' contains results you don't want to keep, you may remove or edit it. The file 'configure.ac' (or 'configure.in') is used to create 'configure' by a program called 'autoconf'. You need 'configure.ac' if you want to change it or regenerate 'configure' using a newer version of 'autoconf'. The simplest way to compile this package is: 1. 'cd' to the directory containing the package's source code and type './configure' to configure the package for your system. Running 'configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type 'make' to compile the package. 3. Optionally, type 'make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type 'make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the 'make install' phase executed with root privileges. 5. Optionally, type 'make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior 'make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing 'make clean'. To also remove the files that 'configure' created (so you can compile the package for a different kind of computer), type 'make distclean'. There is also a 'make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type 'make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide 'make distcheck', which can by used by developers to test that all other targets like 'make install' and 'make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the 'configure' script does not know about. Run './configure --help' for details on some of the pertinent environment variables. You can give 'configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU 'make'. 'cd' to the directory where you want the object files and executables to go and run the 'configure' script. 'configure' automatically checks for the source code in the directory that 'configure' is in and in '..'. This is known as a "VPATH" build. With a non-GNU 'make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use 'make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple '-arch' options to the compiler but only a single '-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the 'lipo' tool if you have problems. Installation Names ================== By default, 'make install' installs the package's commands under '/usr/local/bin', include files under '/usr/local/include', etc. You can specify an installation prefix other than '/usr/local' by giving 'configure' the option '--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option '--exec-prefix=PREFIX' to 'configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like '--bindir=DIR' to specify different values for particular kinds of files. Run 'configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of '${prefix}', so that specifying just '--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to 'configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the 'make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, 'make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of '${prefix}'. Any directories that were specified during 'configure', but not in terms of '${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the 'DESTDIR' variable. For example, 'make install DESTDIR=/alternate/directory' will prepend '/alternate/directory' before all installation names. The approach of 'DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of '${prefix}' at 'configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving 'configure' the option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'. Some packages pay attention to '--enable-FEATURE' options to 'configure', where FEATURE indicates an optional part of the package. They may also pay attention to '--with-PACKAGE' options, where PACKAGE is something like 'gnu-as' or 'x' (for the X Window System). The 'README' should mention any '--enable-' and '--with-' options that the package recognizes. For packages that use the X Window System, 'configure' can usually find the X include and library files automatically, but if it doesn't, you can use the 'configure' options '--x-includes=DIR' and '--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of 'make' will be. For these packages, running './configure --enable-silent-rules' sets the default to minimal output, which can be overridden with 'make V=1'; while running './configure --disable-silent-rules' sets the default to verbose, which can be overridden with 'make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX 'make' updates targets which have the same timestamps as their prerequisites, which makes it generally unusable when shipped generated files such as 'configure' are involved. Use GNU 'make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its '' header file. The option '-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put '/usr/ucb' early in your 'PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in '/usr/bin'. So, if you need '/usr/ucb' in your 'PATH', put it _after_ '/usr/bin'. On Haiku, software installed for all users goes in '/boot/common', not '/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features 'configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, 'configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the '--build=TYPE' option. TYPE can either be a short name for the system type, such as 'sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file 'config.sub' for the possible values of each field. If 'config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option '--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with '--host=TYPE'. Sharing Defaults ================ If you want to set default values for 'configure' scripts to share, you can create a site shell script called 'config.site' that gives default values for variables like 'CC', 'cache_file', and 'prefix'. 'configure' looks for 'PREFIX/share/config.site' if it exists, then 'PREFIX/etc/config.site' if it exists. Or, you can set the 'CONFIG_SITE' environment variable to the location of the site script. A warning: not all 'configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to 'configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the 'configure' command line, using 'VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified 'gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash 'configure' Invocation ====================== 'configure' recognizes the following options to control how it operates. '--help' '-h' Print a summary of all of the options to 'configure', and exit. '--help=short' '--help=recursive' Print a summary of the options unique to this package's 'configure', and exit. The 'short' variant lists options used only in the top level, while the 'recursive' variant lists options also present in any nested packages. '--version' '-V' Print the version of Autoconf used to generate the 'configure' script, and exit. '--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally 'config.cache'. FILE defaults to '/dev/null' to disable caching. '--config-cache' '-C' Alias for '--cache-file=config.cache'. '--quiet' '--silent' '-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to '/dev/null' (any error messages will still be shown). '--srcdir=DIR' Look for the package's source code in directory DIR. Usually 'configure' can determine that directory automatically. '--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. '--no-create' '-n' Run the configure checks, but stop before creating any output files. 'configure' also accepts some other, not widely useful, options. Run 'configure --help' for more details. shishi-1.0.3/cfg.mk0000644000000000000000000000563114273615024010772 00000000000000# Copyright (C) 2006-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. manual_title = Kerberos for the GNU system old_NEWS_hash = dff4e9e65254c85bf2485d1a9c3a8378 bootstrap-tools = autoconf,automake,libtoolize,gnulib,makeinfo,help2man,gengetopt,gtkdocize,tar,gzip,bison local-checks-to-skip = \ sc_error_message_uppercase \ sc_prohibit_atoi_atof \ sc_prohibit_gnu_make_extensions \ sc_prohibit_have_config_h \ sc_prohibit_strcmp \ sc_require_config_h \ sc_require_config_h_first \ exclude_file_name_regexp--sc_bindtextdomain = ^examples/|extra/|lib/ccache.c|tests/utils.c exclude_file_name_regexp--sc_prohibit_doubled_word = ^doc/shishi.texi|lib/ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^doc/components.dia|doc/components.png|tests/ccache1.bin|tests/keytab1.bin exclude_file_name_regexp--sc_cast_of_argument_to_free = ^lib/keys.c|lib/tkts.c|extra/pam_shishi/pam_shishi.c exclude_file_name_regexp--sc_program_name = ^examples/|extra/|lib/|tests/ exclude_file_name_regexp--sc_prohibit_cvs_keyword = ^extra/rsh-redone/ exclude_file_name_regexp--sc_prohibit_magic_number_exit = ^extra/rsh-redone/ exclude_file_name_regexp--sc_space_tab = ^doc/components.dia|extra/rsh-redone/ exclude_file_name_regexp--sc_trailing_blank = ^doc/components.png|doc/shishi.texi|extra/fetchmail.diff|extra/rsh-redone/ exclude_file_name_regexp--sc_two_space_separator_in_usage = ^doc/shishi.texi exclude_file_name_regexp--sc_unmarked_diagnostics = ^extra/rsh-redone/|src/shisa.c|src/shishi.c|src/shishid.c exclude_file_name_regexp--sc_useless_cpp_parens = ^extra/rsh-redone/ exclude_file_name_regexp--sc_prohibit_strncpy =^lib/error.c|src/shishid.c VC_LIST_ALWAYS_EXCLUDE_REGEX = ^GNUmakefile|maint.mk|gtk-doc.make|build-aux/|doc/keytab.txt|doc/fdl-1.3.texi|doc/gdoc|doc/parse-datetime.texi|doc/specifications/.*|extra/.*\.[1ch]|m4/pkg.m4|po/.*.po.in|lib/gl/.*|src/gl/.*$$ update-copyright-env = UPDATE_COPYRIGHT_HOLDER="Simon Josefsson" UPDATE_COPYRIGHT_USE_INTERVALS=2 review-diff: git diff `git describe --abbrev=0`.. \ | grep -v -e ^index -e '^diff --git' \ | filterdiff -p 1 -x 'build-aux/*' -x 'gl/*' -x 'db/gl/*' -x 'src/gl/*' -x 'po/*' -x 'maint.mk' -x '.gitignore' -x '.x-sc*' -x ChangeLog -x GNUmakefile \ | less shishi-1.0.3/extra/0000755000000000000000000000000014273616165011107 500000000000000shishi-1.0.3/extra/rsh-redone/0000755000000000000000000000000014273616165013155 500000000000000shishi-1.0.3/extra/rsh-redone/rlogin.10000644000000000000000000000232414273523166014450 00000000000000.Dd Sun, 13 Apr 2003 00:24:32 +0200 .Dt RLOGIN 1 .Sh NAME .Nm rlogin .Nd remote login .Sh SYNOPSIS .Nm .Op Fl 46 .Op Fl l Ar user .Op Fl p Ar port .Op Ar user Ns Li @ Ns .Ar host .Op Ar command .Sh DESCRIPTION .Nm makes a connection to the remote login daemon running on .Ar host . After the connection is made the user can log in. All input is transmitted to the remote machine and all output on the remote machine is sent back to the .Nm client on the local machine, the user has a full controlling terminal on the remote host. .Pp Without a .Ar command , the users login shell will be presented. If a .Ar command is present, it will be passed on to the .Nm rlogind on the remote host. It will be executed in the same way as with .Nm rsh . This is a non-standard extension that may not work with other versions of .Nm rlogind ! .Sh OPTIONS .Bl -tag -width flag .It Fl 4 Use only IPv4 to connect to the remote host. .It Fl 6 Use only IPv6 to connect to the remote host. .It Fl l Ar user Connect to the remote machine as a different user than on the local machine. .It Fl p Ar port Connect to a different port than the default one for .Nm . .El .Sh SEE ALSO .Xr rsh 1 , .Xr rshd 8 , .Xr rlogind 8 , .Xr rcp 1 , .Xr rhosts 5 , RFC 1282. shishi-1.0.3/extra/rsh-redone/rlogin.c0000644000000000000000000005174114273523166014541 00000000000000/* rlogin.c - remote login client Copyright (C) 2003 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef SHISHI #include #define SERVICE "host" #define AUTH_OK 0 #endif #define BUFLEN 0x10000 char *argv0; #ifdef SHISHI void usage (void) { fprintf (stderr, "Usage: rlogin [-46vsx] [-l user] [-p port] [user@]host\n"); } #else void usage (void) { fprintf (stderr, "Usage: rlogin [-46v] [-l user] [-p port] [user@]host\n"); } #endif /* Make sure everything gets written */ ssize_t safewrite (int fd, const void *buf, size_t count) { int written = 0, result; while (count) { result = write (fd, buf, count); if (result == -1) { if (errno == EINTR) continue; else return result; } written += result; buf += result; count -= result; } return written; } /* Safe and fast string building */ void safecpy (char **dest, int *len, char *source, bool terminate) { while (*source && *len) { *(*dest)++ = *source++; (*len)--; } if (terminate && *len) { *(*dest)++ = 0; (*len)--; } } /* Convert termios speed to a string */ char * termspeed (speed_t speed) { switch (speed) { case B0: return "0"; case B50: return "50"; case B75: return "75"; case B110: return "110"; case B134: return "134"; case B150: return "150"; case B200: return "200"; case B300: return "300"; case B600: return "600"; case B1200: return "1200"; case B1800: return "1800"; case B2400: return "2400"; case B4800: return "4800"; case B9600: return "9600"; case B19200: return "19200"; case B38400: return "38400"; case B57600: return "57600"; case B115200: return "115200"; case B230400: return "230400"; case B460800: return "460800"; case B500000: return "500000"; case B576000: return "576000"; case B921600: return "921600"; case B1000000: return "1000000"; case B1152000: return "1152000"; case B1500000: return "1500000"; case B2000000: return "2000000"; case B2500000: return "2500000"; case B3000000: return "3000000"; case B3500000: return "3500000"; case B4000000: return "4000000"; default: return "9600"; } } #ifdef SHISHI /* read encrypted data on socket */ int readenc (Shishi * h, int sock, char *buf, int *len, char *iv, int *ivlen, Shishi_key * enckey) { char *out; char *outbis; char *iv2; int rc; int val; int outlen; int dlen = 0, blocksize, enctype, hashsize; /* read size of message */ read (sock, &dlen, sizeof (int)); dlen = ntohl (dlen); /* if 0 put read size to 0 */ if (!dlen) { *len = dlen; return SHISHI_OK; } /* convert size to encryption size */ enctype = shishi_key_type (enckey); blocksize = shishi_cipher_blocksize (enctype); hashsize = shishi_checksum_cksumlen (shishi_cipher_defaultcksumtype (enctype)); dlen += blocksize - 1 + 4; if (shishi_key_type (enckey) != SHISHI_DES3_CBC_HMAC_SHA1_KD) dlen += hashsize; else dlen += blocksize; dlen /= blocksize; dlen *= blocksize; if (shishi_key_type (enckey) == SHISHI_DES3_CBC_HMAC_SHA1_KD) dlen += hashsize; /* read encrypted data */ outbis = malloc (dlen); if (outbis == NULL) { printf ("Malloc error!\n"); return 1; } rc = read (sock, outbis, dlen); if (rc != dlen) { printf ("Error during read socket\n"); return 1; } /* decrypt it */ rc = shishi_decrypt_ivupdate (h, enckey, 1026, iv, *ivlen, &iv2, ivlen, outbis, dlen, &out, &outlen); if (rc != SHISHI_OK) { printf ("decryption error\n"); return 1; } /* len = first 4 bytes of decrypted data */ *len = ntohl (*((int *) out)); /* update iv */ memcpy (iv, iv2, *ivlen); /* Temp patch to remove 5 unidentified bytes data from server */ memset (buf, 0, BUFLEN); if ((unsigned char) out[4] == 255) val = 5 + sizeof (int); else val = sizeof (int); /* copy decrypted data to output */ memcpy (buf, out + val, strlen (out + val)); free (out); free (outbis); return SHISHI_OK; } /* write encrypted data to socket */ int writeenc (Shishi * h, int sock, char *buf, int wlen, int *len, char *iv, int *ivlen, Shishi_key * enckey) { char *out; char *bufbis; char *iv2; int rc; int dlen, outlen; dlen = wlen; dlen = htonl (dlen); /* data to encrypt = size + data */ bufbis = malloc (wlen + sizeof (int)); memcpy (bufbis, (char *) &dlen, sizeof (int)); memcpy (bufbis + sizeof (int), buf, wlen); /* encrypt it */ rc = shishi_encrypt_ivupdate (h, enckey, 1026, iv, *ivlen, &iv2, ivlen, bufbis, wlen + sizeof (int), &out, &outlen); if (rc != SHISHI_OK) { printf ("decryption error\n"); return 1; } free (bufbis); /* data to send = original size + encrypted data */ bufbis = malloc (outlen + sizeof (int)); if (bufbis == NULL) { printf ("Malloc error!\n"); return 1; } memcpy (bufbis, (char *) &dlen, sizeof (int)); memcpy (bufbis + sizeof (int), out, outlen); /* send it */ write (sock, bufbis, outlen + sizeof (int)); *len = wlen; /* update iv */ memcpy (iv, iv2, *ivlen); free (bufbis); free (out); return SHISHI_OK; } /* shishi authentication */ int auth (Shishi * h, int verbose, const char *cname, const char *sname, int sock, char *cmd, char *port, Shishi_key ** enckey, Shishi_key * deckey) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; char *out; int outlen; int krb5len, msglen; char auth; /* KERBEROS 5 SENDAUTH MESSAGE */ char krb5sendauth[] = "KRB5_SENDAUTH_V1.0"; /* PROTOCOL VERSION */ char krb5sendclient[] = "KCMDV0.2"; /* to store error msg sent by server */ char errormsg[101]; char cksumdata[101]; /* size of KRB5 auth message */ krb5len = strlen (krb5sendauth) + 1; msglen = htonl (krb5len); safewrite (sock, &msglen, sizeof (int)); /* KRB5 authentication message */ safewrite (sock, krb5sendauth, krb5len); /* size of client message */ krb5len = strlen (krb5sendclient) + 1; msglen = htonl (krb5len); safewrite (sock, &msglen, sizeof (int)); /* KRB5 client message */ safewrite (sock, krb5sendclient, krb5len); /* get answer from server 0 = ok, 1 = error with message */ read (sock, &auth, 1); if (auth) { read (sock, errormsg, 100); errormsg[100] = '\0'; printf ("Error during server authentication : %s\n", errormsg); return 1; } if (verbose) { printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); } /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return 1; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return 1; } /* checksum = port: terminal name */ snprintf (cksumdata, 100, "%s:%s%s", port, cmd, cname); /* add checksum to authenticator */ shishi_ap_authenticator_cksumdata_set (ap, cksumdata, strlen (cksumdata)); /* To be compatible with MIT rlogind */ shishi_ap_authenticator_cksumtype_set (ap, SHISHI_RSA_MD5); /* create der encoded AP-REQ */ rc = shishi_ap_req_der (ap, &out, &outlen); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return 1; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* extract subkey if present from ap exchange for secure connection */ shishi_authenticator_get_subkey (h, shishi_ap_authenticator (ap), enckey); /* send size of AP-REQ to the server */ msglen = htonl (outlen); safewrite (sock, (char *) &msglen, sizeof (int)); /* send AP-REQ to the server */ safewrite (sock, out, outlen); /* read a respond from server - what ? */ read (sock, &auth, sizeof (int)); /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { if (verbose) printf ("Waiting for server to authenticate itself...\n"); /* read size of the AP-REP */ read (sock, (char *) &outlen, sizeof (int)); /* read AP-REP */ outlen = ntohl (outlen); outlen = read (sock, out, outlen); rc = shishi_ap_rep_verify_der (ap, out, outlen); if (rc == SHISHI_OK) { if (verbose) printf ("AP-REP verification OK...\n"); } else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return 1; } /* The server is authenticated. */ if (verbose) printf ("Server authenticated.\n"); } /* We are now authenticated. */ if (verbose) printf ("User authenticated.\n"); return AUTH_OK; } #endif int main (int argc, char **argv) { char *user = NULL; char *luser = NULL; char *host = NULL; char *port = "login"; char *p; char lport[5]; struct passwd *pw; int af = AF_UNSPEC; struct addrinfo hint, *ai, *aip, *lai; int err, i; int opt; bool verbose = false; int sock = -1; bool winchsupport = false; char hostaddr[NI_MAXHOST]; char portnr[NI_MAXSERV]; struct termios tios, oldtios; char *term, *speed; char buf[2][BUFLEN], *bufp[2]; int len[2], wlen; fd_set infd, outfd, infdset, outfdset, exfd, exfdset; int maxfd; int flags; int oldmask; #ifdef SHISHI Shishi *h; Shishi_key *enckey = NULL, *deckey = NULL; int rc; char *sname = NULL; int shishi = 0; int encryption = 0; int auth2 = 0; char cmd[BUFLEN]; int hostlen; struct hostent *hostdata; char *iv = NULL; char *iv2 = NULL; int ivlen; int ivlen2; #endif argv0 = argv[0]; /* Lookup local username */ if (!(pw = getpwuid (getuid ()))) { fprintf (stderr, "%s: Could not lookup username: %s\n", argv0, strerror (errno)); return 1; } /* Process options */ #ifdef SHISHI while ((opt = getopt (argc, argv, "+l:p:46vsx")) != -1) #else while ((opt = getopt (argc, argv, "+l:p:46v")) != -1) #endif { switch (opt) { case 'l': user = optarg; break; case 'p': port = optarg; break; case '4': af = AF_INET; break; case '6': af = AF_INET6; break; case 'v': verbose = true; break; #ifdef SHISHI case 's': shishi = 1; if (!encryption) port = "543"; break; case 'x': encryption = 1; port = "2105"; break; #endif default: fprintf (stderr, "%s: Unknown option!\n", argv0); usage (); return 1; } } if (optind == argc) { fprintf (stderr, "%s: No host specified!\n", argv0); usage (); return 1; } #ifdef SHISHI if (!shishi) { luser = pw->pw_name; if (!user) user = luser; } #endif host = argv[optind++]; if ((p = strchr (host, '@'))) { user = host; *p = '\0'; host = p + 1; } /* Resolve hostname and try to make a connection */ memset (&hint, '\0', sizeof (hint)); hint.ai_family = af; hint.ai_socktype = SOCK_STREAM; err = getaddrinfo (host, port, &hint, &ai); if (err) { fprintf (stderr, "%s: Error looking up host: %s\n", argv0, gai_strerror (err)); return 1; } hint.ai_flags = AI_PASSIVE; for (aip = ai; aip; aip = aip->ai_next) { if (getnameinfo (aip->ai_addr, aip->ai_addrlen, hostaddr, sizeof (hostaddr), portnr, sizeof (portnr), NI_NUMERICHOST | NI_NUMERICSERV)) { fprintf (stderr, "%s: Error resolving address: %s\n", argv0, strerror (errno)); return 1; } if (verbose) fprintf (stderr, "Trying %s port %s...", hostaddr, portnr); if ((sock = socket (aip->ai_family, aip->ai_socktype, aip->ai_protocol)) == -1) { if (verbose) fprintf (stderr, " Could not open socket: %s\n", strerror (errno)); continue; } hint.ai_family = aip->ai_family; /* Bind to a privileged port */ for (i = 1023; i >= 512; i--) { snprintf (lport, sizeof (lport), "%d", i); err = getaddrinfo (NULL, lport, &hint, &lai); if (err) { fprintf (stderr, " Error looking up localhost: %s\n", gai_strerror (err)); return 1; } err = bind (sock, lai->ai_addr, lai->ai_addrlen); freeaddrinfo (lai); if (err) continue; else break; } if (err) { if (verbose) fprintf (stderr, " Could not bind to privileged port: %s\n", strerror (errno)); continue; } if (connect (sock, aip->ai_addr, aip->ai_addrlen) == -1) { if (verbose) fprintf (stderr, " Connection failed: %s\n", strerror (errno)); continue; } if (verbose) fprintf (stderr, " Connected.\n"); break; } if (!aip) { fprintf (stderr, "%s: Could not make a connection.\n", argv0); return 1; } freeaddrinfo (ai); /* Drop privileges */ if (setuid (getuid ())) { fprintf (stderr, "%s: Unable to drop privileges: %s\n", argv0, strerror (errno)); return 1; } /* Send required information to the server */ term = getenv ("TERM") ? : "network"; if (tcgetattr (0, &tios)) { fprintf (stderr, "%s: Unable to get terminal attributes: %s\n", argv0, strerror (errno)); return 1; } speed = termspeed (cfgetispeed (&tios)); bufp[0] = buf[0]; len[0] = sizeof (buf[0]); #ifdef SHISHI if (shishi) { if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } hostdata = gethostbyname (host); hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; sname = malloc (hostlen); snprintf (sname, hostlen, "%s/%s", SERVICE, hostdata->h_name); snprintf (cmd, BUFLEN, "%s/%s", term, speed); if (!user) user = (char *) shishi_principal_default (h); safewrite (sock, "", 1); if (auth (h, 0, user, sname, sock, cmd, port, &enckey, deckey) != AUTH_OK) return 1; } else { safecpy (&bufp[0], &len[0], "", 1); safecpy (&bufp[0], &len[0], luser, 1); } #else safecpy (&bufp[0], &len[0], "", 1); safecpy (&bufp[0], &len[0], luser, 1); #endif safecpy (&bufp[0], &len[0], user, 1); safecpy (&bufp[0], &len[0], term, 0); safecpy (&bufp[0], &len[0], "/", 0); safecpy (&bufp[0], &len[0], speed, 0); for (; optind < argc; optind++) { safecpy (&bufp[0], &len[0], "/", 0); safecpy (&bufp[0], &len[0], argv[optind], 0); } #ifdef SHISHI if (shishi) { safecpy (&bufp[0], &len[0], "", 1); safecpy (&bufp[0], &len[0], user, 1); } else #endif safecpy (&bufp[0], &len[0], "", 1); if (!len[0]) { fprintf (stderr, "%s: Arguments too long!\n", argv0); return 1; } if (safewrite (sock, buf[0], bufp[0] - buf[0]) == -1) { fprintf (stderr, "%s: Unable to send required information: %s\n", argv0, strerror (errno)); return 1; } #ifdef SHISHI if (shishi) { safewrite (sock, &auth2, sizeof (int)); } #endif /* Wait for acknowledgement from server */ errno = 0; if (read (sock, buf[0], 1) != 1 || *buf[0]) { fprintf (stderr, "%s: Didn't receive NULL byte from server: %s\n", argv0, strerror (errno)); return 1; } #ifdef SHISHI if (!encryption) /* unidentified bytes */ read (sock, cmd, 5); else { ivlen = ivlen2 = shishi_key_length (enckey); iv = malloc (ivlen); memset (iv, 1, ivlen); iv2 = malloc (ivlen2); memset (iv2, 0, ivlen2); } #endif /* Set up terminal on the client */ oldtios = tios; tios.c_oflag &= ~(ONLCR | OCRNL); tios.c_lflag &= ~(ECHO | ICANON | ISIG); tios.c_iflag &= ~(ICRNL | ISTRIP | IXON); tios.c_cc[VTIME] = 1; tios.c_cc[VMIN] = 1; /* How much of the stuff below is really needed? tios.c_cc[VSUSP] = 255; tios.c_cc[VEOL] = 255; tios.c_cc[VREPRINT] = 255; tios.c_cc[VDISCARD] = 255; tios.c_cc[VWERASE] = 255; tios.c_cc[VLNEXT] = 255; tios.c_cc[VEOL2] = 255; */ tcsetattr (0, TCSADRAIN, &tios); /* Process input/output */ flags = fcntl (sock, F_GETFL); fcntl (sock, F_SETFL, flags | O_NONBLOCK); bufp[0] = buf[0]; bufp[1] = buf[1]; maxfd = sock + 1; FD_ZERO (&infdset); FD_ZERO (&outfdset); FD_ZERO (&exfdset); FD_SET (0, &infdset); FD_SET (sock, &infdset); FD_SET (sock, &exfdset); /* Handle SIGWINCH */ void sigwinch_h (int signal) { char wbuf[12]; struct winsize winsize; if (winchsupport) { wbuf[0] = wbuf[1] = (char) 0xFF; wbuf[2] = wbuf[3] = 's'; ioctl (0, TIOCGWINSZ, &winsize); *(uint16_t *) (wbuf + 4) = htons (winsize.ws_row); *(uint16_t *) (wbuf + 6) = htons (winsize.ws_col); *(uint16_t *) (wbuf + 8) = htons (winsize.ws_xpixel); *(uint16_t *) (wbuf + 10) = htons (winsize.ws_ypixel); if (bufp[0] == buf[0]) len[0] = 0; memcpy (bufp[0] + len[0], wbuf, 12); len[0] += 12; FD_SET (sock, &outfdset); FD_CLR (0, &infdset); FD_CLR (0, &infd); } } if (signal (SIGWINCH, sigwinch_h) == SIG_ERR) { fprintf (stderr, "%s: signal() failed: %s\n", argv0, strerror (errno)); return 1; } for (;;) { errno = 0; infd = infdset; outfd = outfdset; exfd = exfdset; if (select (maxfd, &infd, &outfd, &exfd, NULL) <= 0) { if (errno == EINTR) continue; else break; } oldmask = sigblock (sigmask (SIGWINCH)); if (FD_ISSET (sock, &exfd)) { len[1] = recv (sock, buf[1], 1, MSG_OOB); if (len[1] <= 0) { break; } else { if (*buf[1] == (char) 0x80) { winchsupport = true; sigwinch_h (SIGWINCH); } } } if (FD_ISSET (sock, &infd)) { #ifdef SHISHI if (encryption) { rc = readenc (h, sock, buf[1], &len[1], iv, &ivlen, enckey); if (rc != SHISHI_OK) break; } else #endif len[1] = read (sock, buf[1], BUFLEN); if (len[1] <= 0) { if (errno != EINTR) break; } else { FD_SET (1, &outfdset); FD_CLR (sock, &infdset); } } if (FD_ISSET (1, &outfd)) { wlen = write (1, bufp[1], len[1]); if (wlen <= 0) { if (errno != EINTR) break; } else { len[1] -= wlen; bufp[1] += wlen; if (!len[1]) { FD_CLR (1, &outfdset); FD_SET (sock, &infdset); bufp[1] = buf[1]; } } } if (FD_ISSET (0, &infd)) { len[0] = read (0, buf[0], BUFLEN); if (len[0] <= 0) { if (errno != EINTR) { FD_CLR (0, &infdset); shutdown (sock, SHUT_WR); } } else { FD_SET (sock, &outfdset); FD_CLR (0, &infdset); } } if (FD_ISSET (sock, &outfd)) { #ifdef SHISHI if (encryption) { rc = writeenc (h, sock, bufp[0], len[0], &wlen, iv2, &ivlen2, enckey); if (rc != SHISHI_OK) break; } else #endif wlen = write (sock, bufp[0], len[0]); if (wlen <= 0) { if (errno != EINTR) break; } else { len[0] -= wlen; bufp[0] += wlen; if (!len[0]) { FD_CLR (sock, &outfdset); FD_SET (0, &infdset); bufp[0] = buf[0]; } } } sigsetmask (oldmask); } /* Clean up */ if (errno) fprintf (stderr, "%s: %s\n", argv0, strerror (errno)); tcsetattr (0, TCSADRAIN, &oldtios); #ifdef SHISHI if (shishi) { shishi_done (h); if (encryption) { free (iv); free (iv2); } } #endif close (sock); return 0; } shishi-1.0.3/extra/rsh-redone/Makefile.in0000644000000000000000000025171214273615655015155 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2003-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = rlogin$(EXEEXT) rsh$(EXEEXT) subdir = extra/rsh-redone ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" PROGRAMS = $(bin_PROGRAMS) am_rlogin_OBJECTS = rlogin.$(OBJEXT) rlogin_OBJECTS = $(am_rlogin_OBJECTS) rlogin_LDADD = $(LDADD) rlogin_DEPENDENCIES = ../../lib/libshishi.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = am_rsh_OBJECTS = rsh.$(OBJEXT) rsh_OBJECTS = $(am_rsh_OBJECTS) rsh_LDADD = $(LDADD) rsh_DEPENDENCIES = ../../lib/libshishi.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/rlogin.Po ./$(DEPDIR)/rsh.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(rlogin_SOURCES) $(rsh_SOURCES) DIST_SOURCES = $(rlogin_SOURCES) $(rsh_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib -DSHISHI EXTRA_DIST = $(man_MANS) LDADD = ../../lib/libshishi.la rlogin_SOURCES = rlogin.c rsh_SOURCES = rsh.c man_MANS = rlogin.1 rsh.1 all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extra/rsh-redone/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu extra/rsh-redone/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list rlogin$(EXEEXT): $(rlogin_OBJECTS) $(rlogin_DEPENDENCIES) $(EXTRA_rlogin_DEPENDENCIES) @rm -f rlogin$(EXEEXT) $(AM_V_CCLD)$(LINK) $(rlogin_OBJECTS) $(rlogin_LDADD) $(LIBS) rsh$(EXEEXT): $(rsh_OBJECTS) $(rsh_DEPENDENCIES) $(EXTRA_rsh_DEPENDENCIES) @rm -f rsh$(EXEEXT) $(AM_V_CCLD)$(LINK) $(rsh_OBJECTS) $(rsh_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rlogin.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rsh.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(MANS) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/rlogin.Po -rm -f ./$(DEPDIR)/rsh.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/rlogin.Po -rm -f ./$(DEPDIR)/rsh.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-man uninstall-man1 .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/extra/rsh-redone/Makefile.am0000644000000000000000000000211314273600463015120 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2003-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib AM_CPPFLAGS += -DSHISHI EXTRA_DIST = $(man_MANS) LDADD = ../../lib/libshishi.la bin_PROGRAMS = rlogin rsh rlogin_SOURCES = rlogin.c rsh_SOURCES = rsh.c man_MANS = rlogin.1 rsh.1 shishi-1.0.3/extra/rsh-redone/rsh.10000644000000000000000000000153414273523166013754 00000000000000.Dd Sun, 13 Apr 2003 00:24:32 +0200 .Dt RSH 1 .Sh NAME .Nm rsh .Nd remote shell .Sh SYNOPSIS .Nm .Op Fl 46 .Op Fl l Ar user .Op Fl p Ar port .Op Ar user Ns Li @ Ns .Ar host .Ar command .Sh DESCRIPTION .Nm makes a connection to the remote shell daemon running on .Ar host and starts .Ar command on the remote machine. All input is transmitted to the remote machine and all output on the remote machine is sent back to the .Nm client on the local machine. .Sh OPTIONS .Bl -tag -width flag .It Fl 4 Use only IPv4 to connect to the remote host. .It Fl 6 Use only IPv6 to connect to the remote host. .It Fl l Ar user Connect to the remote host as a different user than on the local machine. .It Fl p Ar port Connect to a different port than the default one for .Nm . .El .Sh SEE ALSO .Xr rshd 8 , .Xr rlogin 1 , .Xr rlogind 8 , .Xr rcp 1 , .Xr rhosts 5 , RFC 1282. shishi-1.0.3/extra/rsh-redone/rsh.c0000644000000000000000000005220614273523166014040 00000000000000/* rsh.c - remote shell client Copyright (C) 2003 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include #include #include #include #include #include #include #include #include #include #include #ifdef SHISHI #include #include #define SERVICE "host" #define AUTH_OK 0 #endif #define BUFLEN 0x10000 char *argv0; #ifdef SHISHI void usage (void) { fprintf (stderr, "Usage: %s [-46vsx] [-l user] [-p port] [user@]host command...\n", argv0); } #else void usage (void) { fprintf (stderr, "Usage: %s [-46v] [-l user] [-p port] [user@]host command...\n", argv0); } #endif /* Make sure everything gets written */ ssize_t safewrite (int fd, const void *buf, size_t count) { int written = 0, result; while (count) { result = write (fd, buf, count); if (result == -1) { if (errno == EINTR) continue; else return result; } written += result; buf += result; count -= result; } return written; } /* Safe and fast string building */ void safecpy (char **dest, int *len, char *source, bool terminate) { while (*source && *len) { *(*dest)++ = *source++; (*len)--; } if (terminate && *len) { *(*dest)++ = 0; (*len)--; } } #ifdef SHISHI /* read encrypted data on socket */ int readenc (Shishi * h, int sock, char *buf, int *len, char *iv, int *ivlen, Shishi_key * enckey) { char *out; char *outbis; char *iv2; int rc; int val; int outlen; int dlen = 0, blocksize, enctype, hashsize; /* read size of message */ read (sock, &dlen, sizeof (int)); dlen = ntohl (dlen); /* if 0 put read size to 0 */ if (!dlen) { *len = dlen; return SHISHI_OK; } /* convert size to encryption size */ enctype = shishi_key_type (enckey); blocksize = shishi_cipher_blocksize (enctype); hashsize = shishi_checksum_cksumlen (shishi_cipher_defaultcksumtype (enctype)); dlen += blocksize - 1 + 4; if (shishi_key_type (enckey) != SHISHI_DES3_CBC_HMAC_SHA1_KD) dlen += hashsize; else dlen += blocksize; dlen /= blocksize; dlen *= blocksize; if (shishi_key_type (enckey) == SHISHI_DES3_CBC_HMAC_SHA1_KD) dlen += hashsize; /* read encrypted data */ outbis = malloc (dlen); if (outbis == NULL) { printf ("Malloc error!\n"); return 1; } rc = read (sock, outbis, dlen); if (rc != dlen) { printf ("Error during read socket\n"); return 1; } /* decrypt it */ rc = shishi_decrypt_ivupdate (h, enckey, 1026, iv, *ivlen, &iv2, ivlen, outbis, dlen, &out, &outlen); if (rc != SHISHI_OK) { printf ("decryption error\n"); return 1; } /* len = first 4 bytes of decrypted data */ *len = ntohl (*((int *) out)); /* update iv */ memcpy (iv, iv2, *ivlen); /* Temp patch to remove 5 unidentified bytes data from server */ memset (buf, 0, BUFLEN); if ((unsigned char) out[4] == 255) val = 5 + sizeof (int); else val = sizeof (int); /* copy decrypted data to output */ memcpy (buf, out + val, strlen (out + val)); free (out); free (outbis); return SHISHI_OK; } /* write encrypted data to socket */ int writeenc (Shishi * h, int sock, char *buf, int wlen, int *len, char *iv, int *ivlen, Shishi_key * enckey) { char *out; char *bufbis; char *iv2; int rc; int dlen, outlen; dlen = wlen; dlen = htonl (dlen); /* data to encrypt = size + data */ bufbis = malloc (wlen + sizeof (int)); memcpy (bufbis, (char *) &dlen, sizeof (int)); memcpy (bufbis + sizeof (int), buf, wlen); /* encrypt it */ rc = shishi_encrypt_ivupdate (h, enckey, 1026, iv, *ivlen, &iv2, ivlen, bufbis, wlen + sizeof (int), &out, &outlen); if (rc != SHISHI_OK) { printf ("decryption error\n"); return 1; } free (bufbis); /* data to send = original size + encrypted data */ bufbis = malloc (outlen + sizeof (int)); if (bufbis == NULL) { printf ("Malloc error!\n"); return 1; } memcpy (bufbis, (char *) &dlen, sizeof (int)); memcpy (bufbis + sizeof (int), out, outlen); /* send it */ write (sock, bufbis, outlen + sizeof (int)); *len = wlen; /* update iv */ memcpy (iv, iv2, *ivlen); free (bufbis); free (out); return SHISHI_OK; } /* shishi authentication */ int auth (Shishi * h, int verbose, const char *cname, const char *sname, int sock, char *cmd, char *port, Shishi_key ** enckey, Shishi_key * deckey) { Shishi_ap *ap; Shishi_tkt *tkt; Shishi_tkts_hint hint; int rc; char *out; int outlen; int krb5len, msglen; char auth; /* KERBEROS 5 SENDAUTH MESSAGE */ char krb5sendauth[] = "KRB5_SENDAUTH_V1.0"; /* PROTOCOL VERSION */ char krb5sendclient[] = "KCMDV0.2"; /* to store error msg sent by server */ char errormsg[101]; char cksumdata[101]; /* size of KRB5 auth message */ krb5len = strlen (krb5sendauth) + 1; msglen = htonl (krb5len); safewrite (sock, &msglen, sizeof (int)); /* KRB5 authentication message */ safewrite (sock, krb5sendauth, krb5len); /* size of client message */ krb5len = strlen (krb5sendclient) + 1; msglen = htonl (krb5len); safewrite (sock, &msglen, sizeof (int)); /* KRB5 client message */ safewrite (sock, krb5sendclient, krb5len); /* get answer from server 0 = ok, 1 = error with message */ read (sock, &auth, 1); if (auth) { read (sock, errormsg, 100); errormsg[100] = '\0'; printf ("Error during server authentication : %s\n", errormsg); return 1; } if (verbose) { printf ("Client: %s\n", cname); printf ("Server: %s\n", sname); } /* Get a ticket for the server. */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) cname; hint.server = (char *) sname; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (!tkt) { printf ("cannot find ticket for \"%s\"\n", sname); return 1; } if (verbose) shishi_tkt_pretty_print (tkt, stderr); /* Create Authentication context */ rc = shishi_ap_tktoptions (h, &ap, tkt, SHISHI_APOPTIONS_MUTUAL_REQUIRED); if (rc != SHISHI_OK) { printf ("cannot create authentication context\n"); return 1; } /* checksum = port: terminal name */ snprintf (cksumdata, 100, "%s:%s%s", port, cmd, cname); /* add checksum to authenticator */ shishi_ap_authenticator_cksumdata_set (ap, cksumdata, strlen (cksumdata)); /* To be compatible with MIT rlogind */ shishi_ap_authenticator_cksumtype_set (ap, SHISHI_RSA_MD5); /* create der encoded AP-REQ */ rc = shishi_ap_req_der (ap, &out, &outlen); if (rc != SHISHI_OK) { printf ("cannot build authentication request: %s\n", shishi_strerror (rc)); return 1; } if (verbose) shishi_authenticator_print (h, stderr, shishi_ap_authenticator (ap)); /* extract subkey if present from ap exchange for secure connection */ shishi_authenticator_get_subkey (h, shishi_ap_authenticator (ap), enckey); /* send size of AP-REQ to the server */ msglen = htonl (outlen); safewrite (sock, (char *) &msglen, sizeof (int)); /* send AP-REQ to the server */ safewrite (sock, out, outlen); /* read a respond from server - what ? */ read (sock, &auth, sizeof (int)); /* For mutual authentication, wait for server reply. */ if (shishi_apreq_mutual_required_p (h, shishi_ap_req (ap))) { if (verbose) printf ("Waiting for server to authenticate itself...\n"); /* read size of the AP-REP */ read (sock, (char *) &outlen, sizeof (int)); /* read AP-REP */ outlen = ntohl (outlen); outlen = read (sock, out, outlen); rc = shishi_ap_rep_verify_der (ap, out, outlen); if (rc == SHISHI_OK) { if (verbose) printf ("AP-REP verification OK...\n"); } else { if (rc == SHISHI_APREP_VERIFY_FAILED) printf ("AP-REP verification failed...\n"); else printf ("AP-REP verification error: %s\n", shishi_strerror (rc)); return 1; } /* The server is authenticated. */ if (verbose) printf ("Server authenticated.\n"); } /* We are now authenticated. */ if (verbose) printf ("User authenticated.\n"); return AUTH_OK; } #endif int main (int argc, char **argv) { char *user = NULL; char *luser = NULL; char *host = NULL; char *port = "shell"; char *p; char lport[5]; struct passwd *pw; int af = AF_UNSPEC; struct addrinfo hint, *ai, *aip, *lai; struct sockaddr raddr; int raddrlen; int err, sock = -1, lsock = -1, esock = -1, i; int opt; bool verbose = false; char hostaddr[NI_MAXHOST]; char portnr[NI_MAXSERV]; char buf[3][BUFLEN], *bufp[3]; int len[3], wlen; fd_set infd, outfd, infdset, outfdset, errfd; int maxfd; int flags; #ifdef SHISHI Shishi *h; Shishi_key *enckey = NULL, *deckey = NULL; int rc; char *sname = NULL; int shishi = 0; int encryption = 0; int auth2 = 0; char *cmd, *tcmd; int hostlen, cmdlen; struct hostent *hostdata; char *iv = NULL; char *iv2 = NULL; char *iv3 = NULL; int ivlen; int ivlen2; int ivlen3; #endif argv0 = argv[0]; /* Lookup local username */ if (!(pw = getpwuid (getuid ()))) { fprintf (stderr, "%s: Could not lookup username: %s\n", argv0, strerror (errno)); return 1; } /* Process options */ #ifdef SHISHI while ((opt = getopt (argc, argv, "+l:p:46vsx")) != -1) #else while ((opt = getopt (argc, argv, "+l:p:46v")) != -1) #endif { switch (opt) { case 'l': user = optarg; break; case 'p': port = optarg; break; case '4': af = AF_INET; break; case '6': af = AF_INET6; break; case 'v': verbose = true; break; #ifdef SHISHI case 's': shishi = 1; port = "544"; break; case 'x': shishi = 1; encryption = 1; port = "544"; break; #endif default: fprintf (stderr, "%s: Unknown option!\n", argv0); usage (); return 1; } } if (optind == argc) { fprintf (stderr, "%s: No host specified!\n", argv0); usage (); return 1; } #ifdef SHISHI if (!shishi) { luser = pw->pw_name; if (!user) user = luser; } #endif host = argv[optind++]; if ((p = strchr (host, '@'))) { user = host; *p = '\0'; host = p + 1; } /* Resolve hostname and try to make a connection */ memset (&hint, '\0', sizeof (hint)); hint.ai_family = af; hint.ai_socktype = SOCK_STREAM; err = getaddrinfo (host, port, &hint, &ai); if (err) { fprintf (stderr, "%s: Error looking up host: %s\n", argv0, gai_strerror (err)); return 1; } hint.ai_flags = AI_PASSIVE; for (aip = ai; aip; aip = aip->ai_next) { if (getnameinfo (aip->ai_addr, aip->ai_addrlen, hostaddr, sizeof (hostaddr), portnr, sizeof (portnr), NI_NUMERICHOST | NI_NUMERICSERV)) { fprintf (stderr, "%s: Error resolving address: %s\n", argv0, strerror (errno)); return 1; } if (verbose) fprintf (stderr, "Trying %s port %s...", hostaddr, portnr); if ((sock = socket (aip->ai_family, aip->ai_socktype, aip->ai_protocol)) == -1) { if (verbose) fprintf (stderr, " Could not open socket: %s\n", strerror (errno)); continue; } hint.ai_family = aip->ai_family; /* Bind to a privileged port */ for (i = 1023; i >= 512; i--) { snprintf (lport, sizeof (lport), "%d", i); err = getaddrinfo (NULL, lport, &hint, &lai); if (err) { fprintf (stderr, " Error looking up localhost: %s\n", gai_strerror (err)); return 1; } err = bind (sock, lai->ai_addr, lai->ai_addrlen); freeaddrinfo (lai); if (err) continue; else break; } if (err) { if (verbose) fprintf (stderr, " Could not bind to privileged port: %s\n", strerror (errno)); continue; } if (connect (sock, aip->ai_addr, aip->ai_addrlen) == -1) { if (verbose) fprintf (stderr, " Connection failed: %s\n", strerror (errno)); continue; } if (verbose) fprintf (stderr, " Connected.\n"); break; } if (!aip) { fprintf (stderr, "%s: Could not make a connection.\n", argv0); return 1; } /* Create a socket for the incoming connection for stderr output */ if ((lsock = socket (aip->ai_family, aip->ai_socktype, aip->ai_protocol)) == -1) { fprintf (stderr, "%s: Could not open socket: %s\n", argv0, strerror (errno)); return 1; } hint.ai_family = aip->ai_family; freeaddrinfo (ai); for (i--; i >= 512; i--) { snprintf (lport, sizeof (lport), "%d", i); err = getaddrinfo (NULL, lport, &hint, &lai); if (err) { fprintf (stderr, "%s: Error looking up localhost: %s\n", argv0, gai_strerror (err)); return 1; } err = bind (lsock, lai->ai_addr, lai->ai_addrlen); freeaddrinfo (lai); if (err) continue; else break; } if (err) { fprintf (stderr, "%s: Could not bind to privileged port: %s\n", argv0, strerror (errno)); return 1; } if (listen (lsock, 1)) { fprintf (stderr, "%s: Could not listen: %s\n", argv0, strerror (errno)); return 1; } /* Drop privileges */ if (setuid (getuid ())) { fprintf (stderr, "%s: Unable to drop privileges: %s\n", argv0, strerror (errno)); return 1; } /* Send required information to the server */ bufp[0] = buf[0]; len[0] = sizeof (buf[0]); #ifdef SHISHI if (shishi) { if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version() failed:\n" "Header file incompatible with shared library.\n"); return 1; } rc = shishi_init (&h); if (rc != SHISHI_OK) { printf ("error initializing shishi: %s\n", shishi_strerror (rc)); return 1; } hostdata = gethostbyname (host); hostlen = strlen (hostdata->h_name) + strlen (SERVICE) + 2; sname = malloc (hostlen); snprintf (sname, hostlen, "%s/%s", SERVICE, hostdata->h_name); rc = optind; cmdlen = BUFLEN; cmd = malloc (cmdlen); tcmd = cmd; if (encryption) safecpy (&tcmd, &cmdlen, "-x ", 0); for (; optind < argc; optind++) { safecpy (&tcmd, &cmdlen, argv[optind], 0); if (optind < argc - 1) safecpy (&tcmd, &cmdlen, " ", 0); } safecpy (&tcmd, &cmdlen, "", 1); optind = rc; if (!user) user = (char *) shishi_principal_default (h); safewrite (sock, lport, strlen (lport) + 1); /* Wait for incoming connection from server */ if ((esock = accept (lsock, &raddr, &raddrlen)) == -1) { fprintf (stderr, "%s: Could not accept stderr connection: %s\n", argv0, strerror (errno)); return 1; } close (lsock); if (auth (h, 0, user, sname, sock, cmd, port, &enckey, deckey) != AUTH_OK) return 1; free (cmd); } else { safecpy (&bufp[0], &len[0], lport, 1); safecpy (&bufp[0], &len[0], luser, 1); } #else safecpy (&bufp[0], &len[0], lport, 1); safecpy (&bufp[0], &len[0], luser, 1); #endif safecpy (&bufp[0], &len[0], user, 1); #ifdef SHISHI if (encryption) safecpy (&bufp[0], &len[0], "-x ", 0); #endif for (; optind < argc; optind++) { safecpy (&bufp[0], &len[0], argv[optind], 0); if (optind < argc - 1) safecpy (&bufp[0], &len[0], " ", 0); } #ifdef SHISHI if (shishi) { safecpy (&bufp[0], &len[0], "", 1); safecpy (&bufp[0], &len[0], user, 1); } else #endif safecpy (&bufp[0], &len[0], "", 1); if (!len[0]) { fprintf (stderr, "%s: Arguments too long!\n", argv0); return 1; } if (safewrite (sock, buf[0], bufp[0] - buf[0]) == -1) { fprintf (stderr, "%s: Unable to send required information: %s\n", argv0, strerror (errno)); return 1; } #ifdef SHISHI if (shishi) { safewrite (sock, &auth2, sizeof (int)); } #endif /* Wait for acknowledgement from server */ errno = 0; if (read (sock, buf[0], 1) != 1 || *buf[0]) { fprintf (stderr, "%s: Didn't receive NULL byte from server: %s\n", argv0, strerror (errno)); return 1; } #ifdef SHISHI if (encryption) { ivlen = ivlen2 = ivlen3 = shishi_key_length (enckey); iv = malloc (ivlen); memset (iv, 1, ivlen); iv2 = malloc (ivlen2); memset (iv2, 3, ivlen2); iv3 = malloc (ivlen3); memset (iv3, 0, ivlen3); } if (!shishi) { /* Wait for incoming connection from server */ if ((esock = accept (lsock, &raddr, &raddrlen)) == -1) { fprintf (stderr, "%s: Could not accept stderr connection: %s\n", argv0, strerror (errno)); return 1; } close (lsock); } #else /* Wait for incoming connection from server */ if ((esock = accept (lsock, &raddr, &raddrlen)) == -1) { fprintf (stderr, "%s: Could not accept stderr connection: %s\n", argv0, strerror (errno)); return 1; } close (lsock); #endif /* Process input/output */ flags = fcntl (sock, F_GETFL); fcntl (sock, F_SETFL, flags | O_NONBLOCK); flags = fcntl (esock, F_GETFL); fcntl (esock, F_SETFL, flags | O_NONBLOCK); bufp[0] = buf[0]; bufp[1] = buf[1]; bufp[2] = buf[2]; FD_ZERO (&infdset); FD_ZERO (&outfdset); FD_SET (0, &infdset); FD_SET (sock, &infdset); FD_SET (esock, &infdset); maxfd = (sock > esock ? sock : esock) + 1; for (;;) { errno = 0; infd = infdset; outfd = outfdset; errfd = infdset; if (select (maxfd, &infd, &outfd, &errfd, NULL) <= 0) { if (errno == EINTR) continue; else break; } if (FD_ISSET (esock, &infd)) { #ifdef SHISHI if (encryption) { rc = readenc (h, esock, buf[2], &len[2], iv2, &ivlen2, enckey); if (rc != SHISHI_OK) break; } else #endif len[2] = read (esock, buf[2], BUFLEN); if (len[2] <= 0) { if (errno != EINTR) { if (FD_ISSET (sock, &infdset) || FD_ISSET (1, &outfdset)) FD_CLR (esock, &infdset); else break; } } else { FD_SET (2, &outfdset); FD_CLR (esock, &infdset); } } if (FD_ISSET (2, &outfd)) { wlen = write (2, bufp[2], len[2]); if (wlen <= 0) { if (errno != EINTR) { if (FD_ISSET (sock, &infdset) || FD_ISSET (1, &outfdset)) FD_CLR (esock, &infdset); else break; } } else { len[2] -= wlen; bufp[2] += wlen; if (!len[2]) { FD_CLR (2, &outfdset); FD_SET (esock, &infdset); bufp[2] = buf[2]; } } } if (FD_ISSET (sock, &infd)) { #ifdef SHISHI if (encryption) { rc = readenc (h, sock, buf[1], &len[1], iv, &ivlen, enckey); if (rc != SHISHI_OK) break; } else #endif len[1] = read (sock, buf[1], BUFLEN); if (len[1] <= 0) { if (errno != EINTR) { if (FD_ISSET (esock, &infdset) || FD_ISSET (2, &outfdset)) FD_CLR (sock, &infdset); else break; } } else { FD_SET (1, &outfdset); FD_CLR (sock, &infdset); } } if (FD_ISSET (1, &outfd)) { wlen = write (1, bufp[1], len[1]); if (wlen <= 0) { if (errno != EINTR) { if (FD_ISSET (esock, &infdset) || FD_ISSET (2, &outfdset)) FD_CLR (sock, &infdset); else break; } } else { len[1] -= wlen; bufp[1] += wlen; if (!len[1]) { FD_CLR (1, &outfdset); FD_SET (sock, &infdset); bufp[1] = buf[1]; } } } if (FD_ISSET (0, &infd)) { len[0] = read (0, buf[0], BUFLEN); if (len[0] <= 0) { if (errno != EINTR) { FD_CLR (0, &infdset); shutdown (sock, SHUT_WR); } } else { FD_SET (sock, &outfdset); FD_CLR (0, &infdset); } } if (FD_ISSET (sock, &outfd)) { #ifdef SHISHI if (encryption) { rc = writeenc (h, sock, bufp[0], len[0], &wlen, iv3, &ivlen3, enckey); if (rc != SHISHI_OK) break; } else #endif wlen = write (sock, bufp[0], len[0]); if (wlen <= 0) { if (errno != EINTR) break; } else { len[0] -= wlen; bufp[0] += wlen; if (!len[0]) { FD_CLR (sock, &outfdset); FD_SET (0, &infdset); bufp[0] = buf[0]; } } } } if (errno) { fprintf (stderr, "%s: %s\n", argv0, strerror (errno)); return 1; } close (sock); close (esock); #ifdef SHISHI if (shishi) { shishi_done (h); if (encryption) { free (iv); free (iv2); free (iv3); } } #endif return 0; } shishi-1.0.3/extra/fetchmail.mail0000644000000000000000000000424414273523166013631 00000000000000From: Simon Josefsson -*- mail -*- Subject: [PATCH] Fetchmail support for a new GSS-API library To: Eric S. Raymond Hello, I'm implementing Kerberos 5 and GSS-API, and thought it might be a good idea to test how well it works by making fetchmail use my library instead of Heimdal/MIT. As it turned out, I didn't have to make many modifications. My ego credit my own projects for that, but I guess fetchmail deserve some credit for being nicely written... take your pick. :-) Anyway, here is a patch (against fetchmail 6.2.5) to detect and use GSS when it is installed. I perceived the intention with the current configure.in snippet with regards to selecting Heimdal vs MIT was to use the least common implementation, if it is installed. I think that is a wise policy, as it probably leads to least surprises for users: with the current fetchmail logic, if users have both Heimdal and MIT installed, Heimdal is used. So the logic, with this patch, is for users with all of GSS, Heimdal and MIT installed, is to use GSS. Of course, in all cases, if a user only have one implementation installed, that one is used. The patch is made with --ignore-all-space to simplify review. You might want to re-indent the if-case after applying it. I couldn't find any ChangeLog file (or equivalent), and I don't know if you prefer to have patches accompanied with NEWS entries, but here is a proposed NEWS entry in any case: * The GSSAPI support can now use the GNU Generic Security library as well. I hope you find the time to look at the patch, and to hopefully even add it to the standard distribution. If there is anything I can do to improve the patch, I'll be happy to. FWIW, before I applied the patch I used fetchmail linked to MIT Kerberos to talk with a Cyrus IMAP server at my University, which uses Heimdal. After the patch I use fetchmail, linked to Shishi/GSS instead of MIT, against Heimdal at the University. I have only tried 3DES Kerberos keys. Thanks, Simon [1] , [[see file fetchmail.diff for the attached patch]] shishi-1.0.3/extra/Makefile.in0000644000000000000000000024041114273615654013100 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = extra ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in README DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = fetchmail.diff fetchmail.mail DIST_SUBDIRS = pam_shishi rsh-redone SUBDIRS = $(PAM_SHISHI) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extra/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu extra/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/extra/README0000644000000000000000000000214114273600463011677 00000000000000Shishi extra/README -- Notes for the extra/ subdirectory. Copyright (C) 2002-2022 Simon Josefsson See the end for copying conditions. The pam_shishi/ sub-directory contains a PAM module that uses Shishi for authenticating users. The rsh-redone/ sub-directory contains a Shishi port, by Nicolas Pouvesle , of the rewrite of rsh/rlogin called rsh-redone, by Guus Sliepen . The fetchmail.* files contains a mail and associated patch for Eric Raymond's Fetchmail to add support for GNU GSS/Shishi. Apply the patch, and build Fetchmail with GSSAPI as normal with --with-gssapi. The inetutils.diff file has been removed, as up-stream GNU InetUtils now has incorporated support for GNU Shishi. Thank you! The file mailutils.diff has been removed, as up-stream GNU MailUtils now has incorporated support for GNU GSS/Shishi. Thank you! ---------------------------------------------------------------------- Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. shishi-1.0.3/extra/Makefile.am0000644000000000000000000000170714273600463013062 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. EXTRA_DIST = fetchmail.diff fetchmail.mail DIST_SUBDIRS = pam_shishi rsh-redone SUBDIRS = $(PAM_SHISHI) shishi-1.0.3/extra/fetchmail.diff0000644000000000000000000000344614273523166013622 00000000000000diff --exclude fetchmail.pot --exclude configure --exclude aclocal.m4 -urw t/fetchmail-6.2.5/configure.in fetchmail-6.2.5/configure.in --- t/fetchmail-6.2.5/configure.in 2003-10-10 10:36:57.000000000 +0200 +++ fetchmail-6.2.5/configure.in 2003-12-31 22:38:47.000000000 +0100 @@ -704,6 +704,9 @@ LDFLAGS="$LDFLAGS -L$with_gssapi/lib" fi + AC_CHECK_LIB(gss, gss_check_version, LIBS="$LIBS -lgss", nogss=t) + if test -n "$nogss" + then if test -f "$with_gssapi/include/roken.h" then LIBS="$LIBS -lkrb5 -lasn1 -ldes -lroken -ldb -ldl" @@ -714,10 +717,11 @@ AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context,LIBS="$LIBS -lgssapi_krb5", AC_MSG_ERROR([could not find libgssapi_krb5 which is needed for GSSAPI support]), -lkrb5) fi + fi AC_DEFINE(GSSAPI) save_CPPFLAGS=$CPPFLAGS CPPFLAGS="-I$with_gssapi/include" - AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h) + AC_CHECK_HEADERS(gss.h gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h) if test "$ac_cv_header_gssapi_h" = "yes"; then AC_EGREP_HEADER(GSS_C_NT_HOSTBASED_SERVICE, gssapi.h, AC_DEFINE(HAVE_GSS_C_NT_HOSTBASED_SERVICE)) else diff --exclude fetchmail.pot --exclude configure --exclude aclocal.m4 -urw t/fetchmail-6.2.5/gssapi.c fetchmail-6.2.5/gssapi.c --- t/fetchmail-6.2.5/gssapi.c 2003-07-17 03:03:22.000000000 +0200 +++ fetchmail-6.2.5/gssapi.c 2003-12-31 22:38:39.000000000 +0100 @@ -21,6 +21,9 @@ #include /* for htonl/ntohl */ #ifdef GSSAPI +# ifdef HAVE_GSS_H +# include +# else # ifdef HAVE_GSSAPI_H # include # endif @@ -33,6 +36,7 @@ # ifndef HAVE_GSS_C_NT_HOSTBASED_SERVICE # define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name # endif +# endif #define GSSAUTH_P_NONE 1 #define GSSAUTH_P_INTEGRITY 2 shishi-1.0.3/extra/pam_shishi/0000755000000000000000000000000014273616165013233 500000000000000shishi-1.0.3/extra/pam_shishi/Makefile.in0000644000000000000000000024471614273615654015240 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = extra/pam_shishi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) pam_shishi_la_DEPENDENCIES = ../../lib/libshishi.la am_pam_shishi_la_OBJECTS = pam_shishi.lo pam_shishi_la_OBJECTS = $(am_pam_shishi_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = pam_shishi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(pam_shishi_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/pam_shishi.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(pam_shishi_la_SOURCES) DIST_SOURCES = $(pam_shishi_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PAMDIR) libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib lib_LTLIBRARIES = pam_shishi.la pam_shishi_la_SOURCES = pam_shishi.c pam_shishi_la_LIBADD = ../../lib/libshishi.la # XXX add -Wl,-x too? PAM documentation suggests it. pam_shishi_la_LDFLAGS = -module -shared -avoid-version all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu extra/pam_shishi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu extra/pam_shishi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } pam_shishi.la: $(pam_shishi_la_OBJECTS) $(pam_shishi_la_DEPENDENCIES) $(EXTRA_pam_shishi_la_DEPENDENCIES) $(AM_V_CCLD)$(pam_shishi_la_LINK) -rpath $(libdir) $(pam_shishi_la_OBJECTS) $(pam_shishi_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pam_shishi.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/pam_shishi.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/pam_shishi.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/extra/pam_shishi/pam_shishi.c0000644000000000000000000002302014273600463015432 00000000000000/* pam_shishi.c PAM module using Shishi. * Copyright (C) 2002-2021 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #ifdef STDC_HEADERS # include # include # include # include # include #endif #include /* These #defines must be present according to PAM documentation. */ #define PAM_SM_AUTH #define PAM_SM_ACCOUNT #define PAM_SM_SESSION #define PAM_SM_PASSWORD #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SECURITY_PAM_APPL_H # include #endif #ifdef HAVE_SECURITY_PAM_MODULES_H # include #endif #ifdef HAVE_SECURITY_PAM_EXT_H # include # include # define SHISHI_LINUXPAM_LOGGING 1 #endif #ifdef HAVE_SECURITY_OPENPAM_H # include # define SHISHI_OPENPAM_LOGGING 1 #endif #if defined DEBUG_PAM && defined HAVE_SECURITY__PAM_MACROS_H # define DEBUG # include #else # define D(x) /* nothing */ #endif /* Rely on * for settings in general, as PAM_EXTERN * is not universal among PAM implementations. */ #ifndef PAM_EXTERN # define PAM_EXTERN #endif /* !PAM_EXTERN */ /* Flagging of options. */ static int opt_debug; static const char *opt_principal = NULL; static const char *opt_realm = NULL; static char *servername = NULL; static char *principal = NULL; void parse_argv (int argc, const char **argv) { int i; for (i = 0; i < argc; i++) { if (!strcmp ("debug", argv[i])) opt_debug++; else if (!strncmp ("principal=", argv[i], strlen ("principal="))) opt_principal = argv[i] + strlen ("principal="); else if (!strncmp ("realm=", argv[i], strlen ("realm="))) opt_realm = argv[i] + strlen ("realm="); } } PAM_EXTERN int pam_sm_authenticate (pam_handle_t * pamh, int flags, int argc, const char **argv) { Shishi *h = NULL; Shishi_key *key = NULL; Shishi_tkt *tkt = NULL; Shishi_tkts_hint hint; int retval, rc; const char *user = NULL; const char *password = NULL; char *realm = NULL; int i; struct pam_conv *conv; struct pam_message *pmsg[1], msg[1]; struct pam_response *resp; int nargs = 1; D (("called.")); D (("flags %d argc %d", flags, argc)); for (i = 0; i < argc; i++) D (("argv[%d]=%s", i, argv[i])); parse_argv (argc, argv); rc = shishi_init (&h); if (rc != SHISHI_OK) { h = NULL; D (("shishi_init() failed: %s", shishi_strerror (retval))); retval = PAM_AUTHINFO_UNAVAIL; goto done; } /* Extract overriding realm setting. */ if (opt_realm && *opt_realm) shishi_realm_default_set (h, opt_realm); /* Extract overriding host principal name. */ if (opt_principal && *opt_principal) { rc = shishi_parse_name (h, opt_principal, &principal, &realm); if (rc != SHISHI_OK) { D (("Could not parse name: %s\n", shishi_strerror (rc))); retval = PAM_AUTHINFO_UNAVAIL; goto done; } /* The present REALM is allowed to override OPT_REALM. * PRINCIPAL is available for later use in the ticket. */ if (realm && *realm) shishi_realm_default_set (h, realm); } /* Detect the calling user client. */ retval = pam_get_user (pamh, &user, NULL); if (retval != PAM_SUCCESS) { D (("get user returned error: %s", pam_strerror (pamh, retval))); goto done; } D (("get user returned: %s", user)); shishi_principal_default_set (h, user); if (opt_debug) { #if defined SHISHI_LINUXPAM_LOGGING pam_syslog (pamh, LOG_INFO, "Request from `%s@%s'.", shishi_principal_default (h), shishi_realm_default (h)); #elif defined SHISHI_OPENPAM_LOGGING openpam_log (PAM_LOG_VERBOSE, "Request from `%s@%s'.", shishi_principal_default (h), shishi_realm_default (h)); #endif } retval = pam_get_item (pamh, PAM_AUTHTOK, (const void **) &password); if (retval != PAM_SUCCESS) { D (("get password returned error: %s", pam_strerror (pamh, retval))); goto done; } D (("get password returned: %s", password)); if (password == NULL) { retval = pam_get_item (pamh, PAM_CONV, (const void **) &conv); if (retval != PAM_SUCCESS) { D (("get conv returned error: %s", pam_strerror (pamh, retval))); goto done; } pmsg[0] = &msg[0]; asprintf ((char **) &msg[0].msg, "Password for `%s@%s': ", shishi_principal_default (h), shishi_realm_default (h)); msg[0].msg_style = PAM_PROMPT_ECHO_OFF; resp = NULL; retval = conv->conv (nargs, (const struct pam_message **) pmsg, &resp, conv->appdata_ptr); free ((char *) msg[0].msg); if (retval != PAM_SUCCESS) { D (("conv returned error: %s", pam_strerror (pamh, retval))); goto done; } D (("conv returned: %s", resp->resp)); password = resp->resp; retval = pam_set_item (pamh, PAM_AUTHTOK, password); if (retval != PAM_SUCCESS) { D (("set_item returned error: %s", pam_strerror (pamh, retval))); goto done; } } /* Is the service name "host" being overridden? */ if (principal && *principal && strchr (principal, '/')) { servername = strdup (principal); if (!servername) { retval = PAM_BUF_ERR; D (("failed at duplicating name: %s", principal)); goto done; } } if (!servername) servername= shishi_server_for_local_service (h, "host"); memset (&hint, 0, sizeof (hint)); hint.client = (char *) shishi_principal_default (h); hint.server = servername; hint.passwd = (char *) password; tkt = shishi_tkts_get (shishi_tkts_default (h), &hint); if (tkt == NULL) { free (servername); D (("TGS exchange failed: %s\n", shishi_error (h))); retval = PAM_AUTHINFO_UNAVAIL; goto done; } key = shishi_hostkeys_for_serverrealm (h, servername, shishi_realm_default (h)); if (key == NULL) { free (servername); D (("Key not found: %s\n", shishi_error (h))); retval = PAM_AUTHINFO_UNAVAIL; goto done; } if (opt_debug) { #if defined SHISHI_LINUXPAM_LOGGING pam_syslog (pamh, LOG_INFO, "Requested server `%s@%s'.", servername, shishi_realm_default (h)); #elif defined SHISHI_OPENPAM_LOGGING openpam_log (PAM_LOG_VERBOSE, "Requested server `%s@%s'.", servername, shishi_realm_default (h)); #endif } free (servername); rc = shishi_tkt_decrypt (tkt, key); if (rc != SHISHI_OK) { D (("Could not decrypt ticket: %s\n", shishi_strerror (rc))); retval = PAM_AUTHINFO_UNAVAIL; goto done; } retval = PAM_SUCCESS; done: if (h) shishi_done (h); pam_set_data (pamh, "shishi_setcred_return", (void *) (intptr_t) retval, NULL); D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } PAM_EXTERN int pam_sm_setcred (pam_handle_t * pamh, int flags, int argc, const char **argv) { int retval; int auth_retval; D (("called.")); retval = pam_get_data (pamh, "shishi_setcred_return", (const void **) &auth_retval); if (retval != PAM_SUCCESS) return PAM_CRED_UNAVAIL; /* XXX save ticket in user's file here XXX support CRED_EXPIRED */ switch (auth_retval) { case PAM_SUCCESS: retval = PAM_SUCCESS; break; case PAM_USER_UNKNOWN: retval = PAM_USER_UNKNOWN; break; case PAM_AUTH_ERR: default: retval = PAM_CRED_ERR; break; } D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } PAM_EXTERN int pam_sm_acct_mgmt (pam_handle_t * pamh, int flags, int argc, const char **argv) { int retval; D (("called.")); /* TODO: check if password expired? */ retval = PAM_SUCCESS; D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } PAM_EXTERN int pam_sm_open_session (pam_handle_t * pamh, int flags, int argc, const char **argv) { int retval; D (("called.")); /* TODO: afslog()? */ retval = PAM_SUCCESS; D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } PAM_EXTERN int pam_sm_close_session (pam_handle_t * pamh, int flags, int argc, const char **argv) { int retval; D (("called.")); /* TODO: destroy tickets? destroy AFS tokens? */ retval = PAM_SUCCESS; D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } PAM_EXTERN int pam_sm_chauthtok (pam_handle_t * pamh, int flags, int argc, const char **argv) { int retval; D (("called.")); /* TODO: Change password */ retval = PAM_SUCCESS; D (("done. [%s]", pam_strerror (pamh, retval))); return retval; } /* Linux-PAM. */ #ifdef PAM_STATIC struct pam_module _pam_shishi_modstruct = { "pam_shishi", pam_sm_authenticate, pam_sm_setcred, pam_sm_acct_mgmt, pam_sm_open_session, pam_sm_close_session, pam_sm_chauthtok }; #endif /* PAM_STATIC */ /* OpenPAM */ #ifdef PAM_MODULE_ENTRY PAM_MODULE_ENTRY("pam_shishi"); #endif /* PAM_MODULE_ENTRY */ shishi-1.0.3/extra/pam_shishi/Makefile.am0000644000000000000000000000227614273600463015210 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib libdir = $(PAMDIR) lib_LTLIBRARIES = pam_shishi.la pam_shishi_la_SOURCES = pam_shishi.c pam_shishi_la_LIBADD = ../../lib/libshishi.la # XXX add -Wl,-x too? PAM documentation suggests it. pam_shishi_la_LDFLAGS = -module -shared -avoid-version shishi-1.0.3/po/0000755000000000000000000000000014273616162010377 500000000000000shishi-1.0.3/po/quot.sed0000644000000000000000000000023114273615066012002 00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g shishi-1.0.3/po/zh_CN.po0000644000000000000000000007753014273615266011700 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) 2015 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # Tianze Wang , 2015. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2015-11-13 19:48+0800\n" "Last-Translator: Tianze Wang \n" "Language-Team: Chinese (simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 1.8.5\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa è¿è¡ŒæˆåŠŸ" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "无法åˆå§‹åŒ– Shisa。" #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Shisha é…置文件ä¸å­˜åœ¨ã€‚" #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "Shissa é…置文件输入/输出错误。" #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Shisha é…ç½®å£ä»¤ä¸­æœ‰è¯­æ³•错误。" #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "无法打开 Shisha æ•°æ®åº“。" #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "枚举数æ®åº“中的领域时出错。" #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "枚举数æ®åº“中的主体时出错。" #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "枚举数æ®åº“中的密钥时出错。" #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "æä¾›çš„领域ä¸å­˜åœ¨ã€‚" #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "æä¾›çš„主体ä¸å­˜åœ¨ã€‚" #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "主体未与任何匹é…的密钥相关è”。" #: db/err.c:57 msgid "Error finding principal." msgstr "查找主体出错。" #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "试图添加一个已ç»å­˜åœ¨çš„领域。" #: db/err.c:61 msgid "Error adding realm to database." msgstr "添加领域到数æ®åº“时出错。" #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "试图移除一个éžç©ºçš„领域。" #: db/err.c:65 msgid "Error removing realm from database." msgstr "从数æ®åº“中移除领域时出错。" #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "试图添加一个已ç»å­˜åœ¨çš„主体。" #: db/err.c:69 msgid "Error adding principal to database." msgstr "添加主体到数æ®åº“时出错。" #: db/err.c:71 msgid "Error removing principal from database." msgstr "从数æ®åº“中移除主体时出错。" #: db/err.c:73 msgid "Error adding key to principal." msgstr "添加密钥到主体时出错。" #: db/err.c:75 msgid "Error removing key from principal." msgstr "从主体中移除密钥时出错。" #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "æœ‰å¤šä¸ªå¯†é’¥åŒ¹é…æœç´¢æ¡ä»¶ã€‚" #: db/err.c:100 msgid "Unknown Shisa error" msgstr "未知 Shisa 错误" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa:%s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi è¿è¡ŒæˆåŠŸ" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "ASN.1 å‡½æ•°å¤±è´¥ï¼ˆæ•°æ®æŸå?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "无法打开文件" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "文件输入/输出错误" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "shishi 库中出现内存分é…错误" #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Base64ç¼–ç æˆ–è§£ç å¤±è´¥ã€‚å¯èƒ½æ˜¯æ•°æ®æŸå?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "请求和回å¤ä¸­çš„客户端领域值ä¸åŒã€‚" #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "请求和回å¤ä¸­çš„客户端å称值ä¸åŒã€‚" #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "请求和回å¤ä¸­çš„å›žæ”¾ä¿æŠ¤å€¼ï¼ˆå½“å‰ï¼‰ä¸åŒã€‚" #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "TGS 回å¤ä¸­ä½¿ç”¨çš„密钥类型错误。" #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "KDC 回å¤ä¸­ä½¿ç”¨çš„密钥类型错误。" #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "KDC 回å¤ä¸­ä½¿ç”¨çš„密钥类型错误。" #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "éªŒè¯ AP 回å¤å¤±è´¥ã€‚" #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "AP 请求中使用的密钥类型错误。" #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "æä¾›çš„缓冲区太å°ã€‚" #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "è¡ç”Ÿå¯†é’¥ææ–™è¿‡çŸ­ï¼Œæ— æ³•被应用。" #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "密钥太大,无法使用。" #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "底层加密原语失败。这通常æ„味ç€å¯†ç æœ‰é”™æˆ–æ•°æ®æŸå。" #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "低等级加密程åºä¸­å‡ºçŽ°å†…éƒ¨é”™è¯¯ã€‚" #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "sockey() 系统调用失败。这通常æ„味ç€ä½ çš„ç³»ç»Ÿä¸æ”¯æŒè¯¥socket类型。" #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "bind() 系统调用失败。这通常æ„å‘³ç€æƒé™ä¸è¶³ã€‚" #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "sendto() 系统调用失败。" #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "接收æœåŠ¡å™¨æ•°æ®å‡ºé”™" #: lib/error.c:82 msgid "The system call close() failed." msgstr "close() 系统调用失败。" #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "与 KDC 通讯超时。这通常æ„味ç€ç½‘络或 KDC åœ°å€æœ‰é—®é¢˜ã€‚" #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "无法确定所给领域的 KDC。" #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "未为进程指定 TTY。" #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "æœåŠ¡å™¨æ”¶åˆ°è¯·æ±‚åŽè¿”回了一个错误消æ¯ã€‚" #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "ä½¿ç”¨å¥æŸ„å¤±è´¥ã€‚ç¼ºå°‘å¥æŸ„,或é…置错误。" #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "凭æ®é›†ï¼ˆticket set)未åˆå§‹åŒ–。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚" #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "用于加密凭æ®çš„密钥属性与所æä¾›çš„密钥ä¸ç¬¦ã€‚这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚" #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "引用了无效的加密密钥。" #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "无法使用所给的密钥解密 AP-REQ。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚" #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "无法使用所给的密钥解密凭æ®ï¼ˆticket)。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚" #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "ä¼ é€’ç»™è°ƒç”¨å‡½æ•°çš„å‡­æ®æ— æ•ˆã€‚" #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "傿•°è¶…过有效范围。" #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "ASN.1 结构体ä¸åŒ…嫿Œ‡å®šçš„元素。" #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "å°è¯•访问ä¸å­˜åœ¨çš„密钥类型。" #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "åŒæ–¹éªŒè¯å¤±è´¥ã€‚" #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "PKCS5 æè¿°ç¬¦æ— æ•ˆã€‚" #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "PKCS5 æè¿°ç¬¦ä¸­çš„迭代计数申明无效。" #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr " PKCS5 æè¿°ç¬¦çš„å¯¼å‡ºå¯†é’¥é•¿åº¦ä¸æ­£ç¡®ã€‚" #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr " PKCS5 æè¿°ç¬¦çš„导出密钥太长。" #: lib/error.c:127 msgid "Principal name syntax error." msgstr "主体å语法错误。" #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "è°ƒç”¨å‚æ•°æ— æ•ˆï¼šå€¼é”™è¯¯æˆ–未知。" #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "所指的 ASN.1 元素ä¸å«æœ‰å€¼ã€‚" #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "å°è¯•链接失败。请é‡è¯•,或检查å¯ç”¨æ€§ã€‚" #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "ç§é’¥ä½¿ç”¨äº†ä¸å…¼å®¹çš„类型。" #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "无法访问首选文件。请检查æƒé™ã€‚" #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "å½“å‰ AP å›žå¤æŒ‡å®šäº†ä¸€ä¸ªä¸å…许的密钥类型。" #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "获å–当剿—¶é—´å¤±è´¥ã€‚这一数值通常仅用于内部处ç†ï¼Œä½†å¯¹äºŽæˆ‘们æ¥è¯´æ˜¯å¿…ä¸å¯å°‘的。" #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "è§£æžå¯†é’¥è¡¨æ–‡ä»¶å¤±è´¥" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "è§£æžè¯ä¹¦ç¼“存文件失败" #: lib/error.c:165 msgid "Unknown error" msgstr "未知错误" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "没有错误" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi:信æ¯ï¼š%s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi:信æ¯ï¼š%s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi:警告:%s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi:警告:%s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "æ•°æ®åº“中的客户端数æ®å·²è¿‡æœŸ" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "æ•°æ®åº“中的æœåŠ¡å™¨æ•°æ®å·²è¿‡æœŸ" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "䏿”¯æŒè¯·æ±‚çš„å议版本å·" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "客户端密钥使用旧的主密钥加密" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "æœåŠ¡å™¨å¯†é’¥ä½¿ç”¨æ—§çš„ä¸»å¯†é’¥åŠ å¯†" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "æ•°æ®åº“中找ä¸åˆ°è¯¥å®¢æˆ·ç«¯" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "æ•°æ®åº“中找ä¸åˆ°è¯¥æœåС噍" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "æ•°æ®åº“中有多个主体项" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "客户端或æœåŠ¡å™¨æœ‰ç©ºå¯†é’¥" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "å‡­æ®æ— æ³•用于延期" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "è¯·æ±‚çš„èµ·å§‹æ—¶é—´æ™šäºŽç»“æŸæ—¶é—´" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "KDC 策略拒ç»äº†è¯·æ±‚" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC 无法适é…请求选项" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC 䏿”¯æŒåР坆选项" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC 䏿”¯æŒæ ¡éªŒç±»åž‹" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC 䏿”¯æŒ padata 类型" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC 䏿”¯æŒè¿‡æ¸¡ç±»åž‹" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "客户端è¯ä¹¦å·²è¢«åŠé”€" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "æœåС噍è¯ä¹¦å·²è¢«åŠé”€" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT 已被åŠé”€" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "å®¢æˆ·ç«¯å°šæœªå¤„äºŽæœ‰æ•ˆçŠ¶æ€ - 请ç¨åŽé‡è¯•" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "æœåŠ¡å™¨å°šæœªå¤„äºŽæœ‰æ•ˆçŠ¶æ€ - 请ç¨åŽé‡è¯•" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "密ç å·²è¿‡æœŸ" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "预认è¯ä¿¡æ¯æ— æ•ˆ" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "需è¦è¿›è¡Œé™„加预认è¯" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "请求的æœåŠ¡å™¨å’Œå‡­æ®ä¸ç¬¦" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "æœåС噍䏻体仅坹 user2user 有效" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "KDC 策略拒ç»äº†è¿‡æ¸¡è·¯å¾„" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "æŸé¡¹æœåŠ¡ä¸å¯ç”¨" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "解密字段的完整性检查失败" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "凭æ®å¤±æ•ˆ" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "凭æ®å°šæœªå¤„于有效状æ€" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "é‡å¤è¯·æ±‚" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "凭æ®ä¸Žæˆ‘们无关" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "凭æ®å’Œè®¤è¯è€…ä¸ç¬¦" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "æ—¶é’Ÿå差太大" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "网络地å€é”™è¯¯" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "å议版本ä¸åŒ¹é…" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "msg 类型无效" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "æ¶ˆæ¯æµè¢«æ›´æ”¹" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "消æ¯é¡ºåºé”™è¯¯" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "指定的密钥版本ä¸å¯ç”¨" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "æœåС坆钥ä¸å¯ç”¨" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "åŒå‘认è¯å¤±è´¥" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "æ¶ˆæ¯æ–¹å‘䏿­£ç¡®" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "éœ€è¦æŒ‡å®šå¯é€‰çš„è®¤è¯æ–¹å¼" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "消æ¯ä¸­çš„åºå·é”™è¯¯" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "消æ¯ä¸­çš„æ ¡éªŒå’Œç±»åž‹ä¸æ­£ç¡®" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "策略拒ç»äº†è¿‡æ¸¡è·¯å¾„" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "请求对于 UDP æ¥è¯´è¿‡å¤§ï¼Œæ”¹ç”¨ TCP é‡è¯•" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "一般错误(以 e-text æè¿°ï¼‰" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "字段对于该实现æ¥è¯´å¤ªé•¿" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(user-to-user)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "未知的 KRB-ERROR é”™è¯¯ç  %d。" #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "无法解æžå®¢æˆ·ç«¯ä¸»ä½““%sâ€ï¼š%s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "å°† KRB-ERROR 写入 %s...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "以 %s æ ¼å¼å†™å…¥ KRB-ERROR ...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "å°† KRB-ERROR 写入 %s...完æˆ\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "以 %s æ ¼å¼è¯»å– KRB-ERROR ...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "从 %s ä¸­è¯»å– KRB-ERROR...完æˆ\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "无法列出凭æ®ï¼š%s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "上一次åˆå§‹è¯·æ±‚于" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "å°è¯•使用“%s --helpâ€ä»¥èŽ·å–æ›´å¤šä¿¡æ¯ã€‚\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "傿•°å¤ªå¤š" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "é•¿é€‰é¡¹ä¸­çš„å¿…é€‰å‚æ•°å¯¹äºŽçŸ­é€‰é¡¹æ¥è¯´ä¹Ÿæ˜¯å¿…选的。\n" "\n" "请将 bug 报告给 <%s>。\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "无法åˆå§‹åŒ–shishi" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "没有移除任何凭æ®ã€‚\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "移除了 %d 个 凭æ®ã€‚\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" #: src/shisa.c:144 msgid "Account is" msgstr "账户为" #: src/shisa.c:145 msgid "DISABLED" msgstr "ç¦ç”¨" #: src/shisa.c:145 msgid "enabled" msgstr "å¯ç”¨" #: src/shisa.c:146 msgid "Current key version" msgstr "当å‰å¯†é’¥ç‰ˆæœ¬" #: src/shisa.c:148 msgid "Account not valid before" msgstr "账户在此之å‰ä¸å¯ç”¨" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "上一次åˆå§‹ TGT 请求于" #: src/shisa.c:152 msgid "Last initial request at" msgstr "上一次åˆå§‹è¯·æ±‚于" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "上一次 TGT 请求于" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "凭æ®ä¸Šä¸€æ¬¡æ›´æ–°äºŽ" #: src/shisa.c:158 msgid "Password expire on" msgstr "密ç å¤±æ•ˆäºŽ" #: src/shisa.c:160 msgid "Account expire on" msgstr "账户失效于" #: src/shisa.c:173 msgid "Key" msgstr "密钥" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tEtype" #: src/shisa.c:178 msgid "\tPriority" msgstr "\t优先级" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tç›å€¼" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tS2K 傿•°" #: src/shisa.c:187 msgid "\tPassword" msgstr "\t密ç " #: src/shisa.c:190 msgid "\tKey is" msgstr "\t密钥为" #: src/shisa.c:190 msgid "MISSING" msgstr "丢失" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "添加领域“%sâ€...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "添加主体“%s@%sâ€...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "添加领域“%sâ€...完æˆ\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "添加主体“%s@%sâ€...完æˆ\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "移除领域“%sâ€...完æˆ\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "移除主体“%s@%sâ€...完æˆ\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "移除领域“%sâ€...完æˆ\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "移除主体“%s@%sâ€...完æˆ\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "“%s@%sâ€çš„密ç ï¼š" #: src/shisa.c:376 msgid "Password: " msgstr "密ç ï¼š" #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "无法读å–密ç " #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "无法创建密钥(%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "é•¿é€‰é¡¹ä¸­çš„å¿…é€‰å‚æ•°å¯¹äºŽçŸ­é€‰é¡¹æ¥è¯´ä¹Ÿæ˜¯å¿…选的。\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "åˆå§‹åŒ–失败:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "无法读å–库选项“%sâ€ï¼š\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "åˆå§‹åŒ– Shishi 失败:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "无法设置加密类型“%sâ€ï¼š\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "傿•°å¤ªå°‘" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "添加默认领域“%sâ€...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "修改主体“%s@%sâ€...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "修改主体“%s@%sâ€...完æˆ\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "将密钥添加到“%s@%sâ€...\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "将密钥添加到“%s@%sâ€...完æˆ\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "从“%s@%sâ€ç§»é™¤å¯†é’¥...\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "从“%s@%sâ€ç§»é™¤å¯†é’¥...完æˆ\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "无法设置加密类型:%s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "无法解æžå®¢æˆ·ç«¯ä¸»ä½““%sâ€ï¼š%s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "æ— æ³•è§£æžæœåŠ¡å™¨ä¸»ä½“â€œ%sâ€ï¼š%s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "无法读å–库选项:%s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "--starttime 日期“%sâ€æ— æ•ˆ" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "--endtime 日期“%sâ€æ— æ•ˆ" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "--renew-till 日期“%sâ€æ— æ•ˆ" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "“%sâ€ä¸­çš„凭æ®ï¼š\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "无法列出凭æ®ï¼š%s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "移除凭æ®ï¼š\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "无法销æ¯å‡­æ® %d:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "没有移除任何凭æ®ã€‚\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "移除了 %d 个 凭æ®ã€‚\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "无法为“%2$sâ€èŽ·å–“%1$sâ€çš„凭æ®" shishi-1.0.3/po/Makefile.in.in0000644000000000000000000004225114273615065012776 00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. This file is offered as-is, # without any warranty. # # Origin: gettext-0.19.8 GETTEXT_MACRO_VERSION = 0.19 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SED = @SED@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ # When building gettext-tools, we prefer to use the built programs # rather than installed programs. However, we can't do that when we # are cross compiling. CROSS_COMPILING = @CROSS_COMPILING@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot POFILESDEPS_yes = $(POFILESDEPS_) POFILESDEPS_no = POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) DISTFILESDEPS_ = update-po DISTFILESDEPS_yes = $(DISTFILESDEPS_) DISTFILESDEPS_no = DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. CHECK_MACRO_VERSION = \ test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot @$(CHECK_MACRO_VERSION) test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. # The determination of whether the package xyz is a GNU one is based on the # heuristic whether some file in the top level directory mentions "GNU xyz". # If GNU 'find' is available, we avoid grepping through monster files. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed package_gnu="$(PACKAGE_GNU)"; \ test -n "$$package_gnu" || { \ if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f \ -size -10000000c -exec grep 'GNU @PACKAGE@' \ /dev/null '{}' ';' 2>/dev/null; \ else \ LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ fi; \ } | grep -v 'libtool:' >/dev/null; then \ package_gnu=yes; \ else \ package_gnu=no; \ fi; \ }; \ if test "$$package_gnu" = "yes"; then \ package_prefix='GNU '; \ else \ package_prefix=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_prefix}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot-header; then \ sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \ cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \ rm -f $(DOMAIN).1po; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(POFILESDEPS) @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/po/sr.po0000644000000000000000000012214714273615266011316 00000000000000# Serbian translation for shishi. # Copyright (C) 2012 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # МироÑлав Ðиколић , 2012, 2013. msgid "" msgstr "" "Project-Id-Version: shishi-1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2013-10-17 20:05+0200\n" "Last-Translator: МироÑлав Ðиколић \n" "Language-Team: Serbian <(nothing)>\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: db/err.c:33 msgid "Shisa success" msgstr "УÑпех Шизе" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Шиза не може бити покренут." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Датотека подешавања Шизе не поÑтоји." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "У/И грешка датотеке за датотеку подешавања Шизе." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Грешка Ñадржаја у елементу подешавања Шизе." # мало аориÑта ;-) #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "База података Шизе не може бити отворена." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Грешка нумериÑања подручја у бази података." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Грешка нумериÑања главника у бази података." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Грешка нумериÑања кључева у бази података." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "ДоÑтављено подручје не поÑтоји." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "ДоÑтављени главник не поÑтоји." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Главник није придружен ниједном одговарајућем кључу." #: db/err.c:57 msgid "Error finding principal." msgstr "Грешка проналажења главника." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Покушах да додам подручје које већ поÑтоји." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Грешка додавања подручја у базу података." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Покушах да уклоним не-празно подручје." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Грешка уклањања подручја из базе података." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Покушах да додам главника који већ поÑтоји." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Грешка додавања главника у базу података." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Грешка уклањања главника из базе података." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Грешка додавања кључа главнику." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Грешка уклањања кључа из главника." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Више од једног кључа одговарају датом уÑлову претраге." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Ðепозната грешка Шизе" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "шиза: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "УÑпех Шишија" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Грешка у ÐСÐ.1 функцији (оштећени подаци?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Ðе могу да отворим датотеку" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Улазно/излазна грешка датотеке" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Грешка доделе меморије у шиши библиотеци." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Шифровање или дешифровање оÑнове 64 није уÑпело. Оштећени подаци?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "ВредноÑÑ‚ подручја клијента Ñе разликује између захтева и одговора." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "ВредноÑÑ‚ назива клијента Ñе разликује између захтева и одговора." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" "ВредноÑÑ‚ заштите одговора (nonce) Ñе разликује између захтева и одговора." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "Ðетачна врÑта кључа коришћеног у ТГС одговору." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Ðетачна врÑта кључа коришћеног у одговору Ñа КДЦ-а." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "Ðетачна врÑта кључа коришћеног у ÐП одговору." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Ðије уÑпела провера ÐП одговора." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "Ðетачна врÑта кључа коришћеног у ÐП захтеву." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Обезбеђена међумеморија беше премала." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Материјал произашлог кључа је прекратак да би био примењив." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Кључ је превелик да би био употребљив." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Криптографија ниÑког нивоа није уÑпела. Ово обично указује на лошу лозинку " "или на оштећене податке." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Унутрашња грешка у рутини шифровања ниÑког нивоа." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "СиÑтемÑки позив „socket()“ није уÑпео. Ово обично указује на то да ваш " "ÑиÑтем не подржава врÑту прикључнице." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "СиÑтемÑки позив „bind()“ није уÑпео. Ово обично указује на недовољна " "овлашћења." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "СиÑтемÑки позив „sendto()“ није уÑпео." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Грешка у примању података Ñа Ñервера" #: lib/error.c:82 msgid "The system call close() failed." msgstr "СиÑтемÑки позив „close()“ није уÑпео." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "ИÑтекло је време за разговор Ñа КДЦ-ом. Ово обично указује на проблеме Ñа " "мрежом или КДЦ адреÑом." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Ðиједан КДЦ није познат за подручје." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Ðиједан ТТУ није придружен процеÑу." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Сервер је одговорио поруком грешке на захтев." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "ÐеуÑпех коришћења ручице. Ручица недоÑтаје, или је лоше подешена." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Ðије покренут Ñкуп картица. Ово обично указује на унутрашњу грешку програма." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Ð’Ñ€Ñта кључа коришћеног за шифровање карте не одговара доÑтављеном кључу. Ово " "обично указује на унутрашњу грешку програма." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Упута на неиÑправан кључ шифровања." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "Ðе могу да дешифрујем ÐП-ЗÐÐ¥ кориÑтећи доÑтављени кључ. Ово обично указује " "на унутрашњу грешку програма." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Ðе могу да дешифрујем Карту кориÑтећи доÑтављени кључ. Ово обично указује на " "унутрашњу грешку програма." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "ÐеиÑправна картица је проÑлеђена у позиву." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Ðргумент лежи ван иÑправног опÑега." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "ÐСÐ.1 Ñтруктура не Ñадржи назначени елемент." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Покушан је приÑтуп непоÑтојећој врÑти кључа." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Провера није уÑпела на обе Ñтране." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "ÐеиÑправан ПКЦС5 опиÑник." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "ÐеиÑправна тврдња броја опетовања у ПКЦС5 опиÑнику." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Дужина произашлог кључа је нетачна за ПКЦС5 опиÑника." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Дужина произашлог кључа је предуга за ПКЦС5 опиÑника." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Грешка ÑинтакÑе назива главника." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "" "ÐеиÑправан аргумент је проÑлеђен у позиву. Погрешна или непозната вредноÑÑ‚." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Ðазначени ÐСÐ.1 елемент не ноÑи вредноÑÑ‚." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" "Покушај повезивања није уÑпео. Покушајте поново, или проверите доÑтупноÑÑ‚." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "Лични кључ кориÑти неÑаглаÑну врÑту шифровања." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Жељеном документу Ñе не може приÑтупити. Проверите дозволе." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "ПриÑутни ÐП одговор наводи недозвољиву врÑту кључа." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Захтев за Ñадашњим временом дана није уÑпео. Ово је уобичајено унутрашње, " "али је иÑправно време за Ð½Ð°Ñ Ð¸Ð¼Ð¿ÐµÑ€Ð°Ñ‚Ð¸Ð²." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "ÐиÑам уÑпео да обрадим датотеку табеле кључа" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "ÐиÑам уÑпео да обрадим датотеку оÑтаве уверења" #: lib/error.c:165 msgid "Unknown error" msgstr "Ðепозната грешка" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Ðема грешке" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "либшиши: подаци: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "либшиши: подаци: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "либшиши: упозорење: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "либшиши: упозорење: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Ð£Ð½Ð¾Ñ ÐºÐ»Ð¸Ñ˜ÐµÐ½Ñ‚Ð° у бази података је иÑтекао" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Ð£Ð½Ð¾Ñ Ñервера у бази података је иÑтекао" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Број издања захтеваног протокола није подржан" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Кључ клијента је шифрован у Ñтаром главном кључу" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Кључ Ñервера је шифрован у Ñтаром главном кључу" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Клијент није пронађен у бази података" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Сервер није пронађен у бази података" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Више уноÑа главника у бази података" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Клијент или Ñервер има ништаван кључ" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Картица није подеÑна за каÑнију употребу" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Захтевано почетно време је каÑније од времена завршетка" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "КДЦ политика одбацује захтев" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "КДЦ не може да обухвати захтевану могућноÑÑ‚" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "КДЦ не поÑедује подршку за врÑту шифровања" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "КДЦ не поÑедује подршку за врÑту провера Ñуме" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "КДЦ не поÑедује подршку за врÑту паралелних података" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "КДЦ не поÑедује подршку за врÑту пренешених" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Уверења клијената Ñу опозвана" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Уверење за Ñервер је опозвано" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "ТГТ је опозван" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Клијент није још увек иÑправан — покушајте каÑније" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Сервер није још увек иÑправан — покушајте каÑније" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Лозинка је иÑтекла " #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Податак за ранију проверу идентитета је био неиÑправан" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Потребна је додатна ранија провера идентитета" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Захтевани Ñервер и картица Ñе не подударају" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Главник Ñервера је иÑправан Ñамо од кориÑника-до-кориÑника" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "КДЦ политика одбија пренешену путању" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "УÑлуга није доÑтупна" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Провера целовитоÑти на дешифрованом пољу није уÑпела" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Картица је иÑтекла" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Картица још није иÑправна" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Захтев је одговор" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Картица није за употребу" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Картица и потврђивач идентитета Ñе не поклапају" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Сат Ñе нагнуо ка већем" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Ðетачна адреÑа мреже" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Издања протокола Ñе не подударају" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "ÐеиÑправна врÑта поруке" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Измењен је ток поруке" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Порука је ван поретка" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Ðаведено издање кључа није доÑтупно" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Кључ уÑлуге није доÑтупан" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "МеђуÑобно потврђивање идентитета није уÑпело" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Ðетачан Ñмер поруке" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Потребан је резервни начин потврђивања идентитета" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Ðетачан број низа у поруци" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Ðеодговарајућа врÑта провере Ñуме у поруци" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Политика одбија пренешену путању" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Одговор је превелик за УДП, пробајте Ñа ТЦП" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Општа грешка (Ð¾Ð¿Ð¸Ñ Ñƒ е-текÑту)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Поље је предуго за ову примену" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(кориÑник-кориÑнику)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Ðепознат код гређке %d КРБ-ГРЕШКЕ." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Ðе могу да обрадим главника клијента „%s“: %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у „%s“...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Читам КРБ-ГРЕШКУ у „%s“...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Читам КРБ-ГРЕШКУ у формату „%s“...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Читање КРБ-ГРЕШКЕ у „%s“...обављено\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Ðе могу да прегледам карте: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "ПоÑледњи почетни захтев" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Пробајте „%s --help“ за више података.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "превише аргумената" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Обавезни аргументи за дуге опције Ñу обавезни и за кратке опције такође.\n" "\n" "Грешке пријавите на <%s>.\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "не могу да покренем либшиши" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Ðиједна картица није уклоњена.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "Укоњена је %d картица.\n" msgstr[1] "Укоњене Ñу %d картице.\n" msgstr[2] "Укоњено је %d картица.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/shisa.c:144 msgid "Account is" msgstr "Ðалог је" #: src/shisa.c:145 msgid "DISABLED" msgstr "ИСКЉУЧЕÐ" #: src/shisa.c:145 msgid "enabled" msgstr "укључен" #: src/shisa.c:146 msgid "Current key version" msgstr "Тренутно издање кључа" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Ðалог није иÑправан пре" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "ПоÑледњи почетни ТГТ захтев" #: src/shisa.c:152 msgid "Last initial request at" msgstr "ПоÑледњи почетни захтев" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "ПоÑледњи ТГТ захтев" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "ПоÑледња обнова карте" #: src/shisa.c:158 msgid "Password expire on" msgstr "Лозинка иÑтиче" #: src/shisa.c:160 msgid "Account expire on" msgstr "Ðалог иÑтиче" #: src/shisa.c:173 msgid "Key" msgstr "Кључ" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tЕ-врÑта" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tВажноÑÑ‚" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tСалт" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tС2К параметри" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tЛозинка" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tКључ" #: src/shisa.c:190 msgid "MISSING" msgstr "ÐЕДОСТÐЈЕ" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Додајем подручје „%s“...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Додајем главника „%s@%s“...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Додајем подручје „%s“...готово\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Додајем главника „%s@%s“...готово\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Уклањам подручје „%s“...\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Уклањам главника „%s@%s“...\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Уклањам подручје „%s“...готово\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Уклањам главника „%s@%s“...готово\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Лозинка за „%s@%s“: " #: src/shisa.c:376 msgid "Password: " msgstr "Лозинка: " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Ðе могу да прочитам лозинку" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Ðе могу да направим кључ (%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Обавезни аргументи за дуге опције Ñу обавезни и за кратке опције такође.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Ðије уÑпело покретање:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Ðе могу да прочитам могућноÑти библиотеке „%s“:\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Ðије уÑпело покретање Шишија:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Ðе могу да подеÑим врÑту шифровања „%s“:\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "премало аргумената" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Додајем оÑновно подручје „%s“...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Мењам главника „%s@%s“...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Мењам главника „%s@%s“...готово\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Додајем кључ у „%s@%s“...\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Додајем кључ у „%s@%s“...готово\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Уклањам кључ из „%s@%s“...\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Уклањам кључ из „%s@%s“...готово\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Ðе могу да подеÑим врÑте шифровања: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Ðе могу да обрадим главника клијента „%s“: %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Ðе могу да обрадим главника Ñервера „%s“: %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Ðе могу да прочитам могућноÑти библиотеке: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "ÐеиÑправан податак почетног времена (--starttime) „%s“" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "ÐеиÑправан податак крајњег времена (--endtime) „%s“" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "ÐеиÑправан податак обнављања (--renew-till) „%s“" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Карте у „%s“:\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Ðе могу да прегледам карте: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Уклањам карту:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Ðе могу да уништим карту %d:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Ðиједна картица није уклоњена.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "Укоњена је %d картица.\n" msgstr[1] "Укоњене Ñу %d картице.\n" msgstr[2] "Укоњено је %d картица.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "не могу да добавим картицу као „%s“ за „%s“" shishi-1.0.3/po/en@boldquot.header0000644000000000000000000000247114273615065013752 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # shishi-1.0.3/po/boldquot.sed0000644000000000000000000000033114273615065012643 00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g shishi-1.0.3/po/remove-potcdate.sin0000644000000000000000000000066014273615066014134 00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } shishi-1.0.3/po/fi.po0000644000000000000000000013732214273615266011271 00000000000000# Finnish messages for shishi. # Copyright © 2010, 2013 Free Software Foundation, Inc. # Copyright © 2007, 2010 Simon Josefsson # This file is distributed under the same license as the shishi package. # Jorma Karvonen , 2010, 2013. # msgid "" msgstr "" "Project-Id-Version: shishi-1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2013-04-04 11:26+0300\n" "Last-Translator: Jorma Karvonen \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: KBabel 1.11.2\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa onnistui" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Shisa-alustus epäonnistui." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Shisa-asetustiedostoa ei ole olemassa." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "Tiedostosiirräntävirhe Shisa-asetustiedostolle." # Token-sanan tässä merkkijono [jossa ei ole tyhjemerkkejä (välilyöntejä)] #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Syntaksivirhe Shisa-asetusmerkkijonossa." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "Shisa-tietokannan avaus epäonnistui." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Virhe muunnettaessa alueita luetelluiksi tyypeiksi tietokannassa." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Virhe muunnettaessa pääosapuolia luetelluiksi tyypeiksi tietokannassa" #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Virhe muunnettaessa avaimia luetelluiksi tyypeiksi tietokannassa" #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Tarjottu alue ei ollut olemassa." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "Tarjottua pääosapuolta ei ole olemassa." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Pääosapuoli ei ole liitetty mihinkään täsmäävään avaimeen." #: db/err.c:57 msgid "Error finding principal." msgstr "Virhe etsittäessä pääosapuolta." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Yritettiin lisätä alue, joka on jo olemassa." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Virhe lisättäessä aluetta tietokantaan." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Yritettiin poistaa ei-tyhjä alue." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Virhe poistettaessa alue tietokannasta." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Yritettiin lisätä pääosapuoli, joka on jo olemassa." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Virhe lisättäessä pääosapuolta tietokantaan." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Virhe poistettaessa pääosapuolta tietokannasta." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Virhe lisättäessä avainta pääosapuoleen." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Virhe poistettaessa avainta pääosapuolesta." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Useampi kuin yksi avain täsmää annettuun hakukriteeriin." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Tuntematon Shisa-virhe" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi onnistui" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Virhe ASN.1-funktiossa (tiedot vaurioituneet?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Tiedoston avaus epäonnistui" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Tiedoston siirräntävirhe" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Muistinvarausvirhe shishi-kirjastossa" #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Base64-koodaus tai -dekoodaus epäonnistui. Tiedot vaurioituneet?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Asiakasalue eroaa pyynnön ja vastauksen välillä." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "Asiakasnimi eroaa pyynnön ja vastauksen välillä." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" "Toista suoja-arvon (vain kerran esiintyvä numero tai bittimerkkijono) ero " "pyynnön ja vastauksen välillä." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "TGS-vastauksessa käytetty virheellistä avaintyyppiä." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Vastauksessa KDC:stä käytetty virheellistä avaintyyppiä." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "AP-vastauksessa käytetty virheellistä avaintyyppiä." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "AP-vastauksen todentaminen epäonnistui." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "AP-pyynnössä käytetty virheellistä avaintyyppiä." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Tarjottu puskuri oli liian pieni." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Periytynyt avainmateriaali oli liian lyhyt ollakseen käyttökelpoinen." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Avain on liian suuri käytettäväksi." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Alemman tason salausprimitiivi epäonnistui. Tämä tavallisesti viittaa " "väärään salasanaan tai tietojen vaurioitumiseen." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Sisäinen virhe alemman tason salausrutiineissa." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "Järjestelmäkutsu socket() epäonnistui. Tämä tavallisesti viittaa siihen, " "että järjestelmäsi ei tue pistoketyyppiä." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "Järjestelmäkutsu bind() epäonnistui. Tämä on tavallisesti merkkinä " "riittämättömistä käyttöoikeuksista." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "Järjestelmäkutsu sendto() epäonnistui." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Virhe vastaanotettaessa tietoja palvelimelta" #: lib/error.c:82 msgid "The system call close() failed." msgstr "Järjestelmäkutsu close() epäonnistui." # KDC on Kerberoksen käyttämä "Key Distribution Center" #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "KDC-keskustelun aikavalvontakatkaisu. Tämä viittaa tavallisesti verkon tai " "KDC-osoitteen pulmiin." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Ei tunneta KDC:tä annetulle alueelle." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Prosessiin ei ole liitetty TTY:tä" #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Palvelin vastasi pyyntöön virheilmoituksella." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "Häiriö kahvan käytössä. Kahva puuttuu tai on väärinasetettu." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Pääsylippujoukkoa ei ole alustettu. Tämä viittaa tavallisesti sisäiseen " "sovellusvirheeseen." # Kerberos indentity or ticket #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Avaintyyppi, jota käytettiin pääsylipun salaukseen, ei täsmää tarjotun " "avaimen kanssa. Tämä viittaa tavallisesti sisäiseen sovellusvirheeseen." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Viite virheellisen salausavaimeen." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "AP-REQ-salauksen purkaminen käyttäen tarjottua avainta epäonnistui. Tämä " "viittaa tavallisesti sisäiseen sovellusvirheeseen." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Pääsylipun salauksen purkaminen käyttäen tarjottua avainta epäonnistui. Tämä " "viittaa tavallisesti sisäiseen sovellusvirheeseen." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "Kutsussa välitetty virheellinen pääsylippu." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Argumentti on sallitun lukualueen ulkopuolella." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "ASN.1-rakenne ei sisällä osoitettua elementtiä." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Yritettiin kutsua ei-olemassaolevaa avaintyyppiä." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Todennus epäonnistui molemmilla puolilla." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Virheellinen PKCS5-määrittelijä." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "Virheellinen iteraatiolaskinvaatimus PKCS5-määrittelijässä." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Periytynyt avainpituus on virheellinen PKCS5-määrittelijälle." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Periytynyt avain on liian pitkä PKCS5-määrittelijälle." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Pääosapuolen nimisyntaksivirhe." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "Kutsussa välitetty virheellinen argumenti. Väärä tai tuntematon arvo." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Virheellinen ASN.1-elementti ei sisällä arvoa." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "Yhteysyritys epäonnistui. Yritä uudelleen tai tarkista saatavuus." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "Yksityinen avain käyttää yhteensopimatonta salaustyyppiä." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Halutun tiedoston haku epäonnistui. Tarkista käyttöoikeudet." # It should be impermissible #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "Nykyinen AP-vastaus määrittelee luvattoman avaintyypin." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Pyyntö päivän nykyisestä hetkestä epäonnistui. Tämä on tavallisesti " "sisäinen, mutta kelvollinen aika on meille välttämätön." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Keytab-tiedoston jäsentäminen epäonnistui" # Kerberos-palvelimen asiakkaalle lähettämän Credentials-valtakirjan sisällä on ticket ja session key. Se on salattu asiakkaan salaisella avaimella ja sisältää väliaikaisen salausavaimen. Valtakirja on mielestäni parempi suomennos kuin ATK-sanakirjan valtuustieto. #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Valtakirjavälimuistitiedoston jäsentäminen epäonnistui" #: lib/error.c:165 msgid "Unknown error" msgstr "Tuntematon virhe" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Ei virhettä" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: tiedot: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: tiedot: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: varoitus: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: varoitus: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Asiakkaan tiedot tietokannassa ovat vanhentuneet" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Palvelimen tiedot tietokannassa ovat vanhentuneet" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Pyydettyä yhteyskäytäntöversionumeroa ei tueta" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Asiakkaan avain salattu vanhassa pääavaimessa" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Palvelimen avain salattu vanhassa pääavaimessa" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Asiakasta ei löytynyt tietokannasta" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Palvelinta ei löytynyt tietokannasta" # Principal on Kerberos-tietokannan tietue, joka sisältää tiedot joko työaseman käyttäjästä tai kerberos-verkoon sisältyvästä palvelimesta (ei siis kerberos-palvelimesta). Sanakirjan mukaan yksi principal-sanan määrittelyjä on "chief participant in a transaction". #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Useita pääosapuolitietueita tietokannassa" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Asiakkaalla tai palvelimella on null-avain" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Pääsylippu ei ole sopiva jälkiajoitukselle" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Pyydetty aloitusaika on myöhäisempi kuin lopettamisaika" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "KDC-toimintaperiaate kieltää pyynnön" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC ei voi mukautua pyydettyyn valitsimeen" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC ei tue salaustyyppiä" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC ei tue tarkistussummatyyppiä" # Historiallisesti padata on tarkoittanut esitodennettua dataa, mutta nykyisin sen merkitys on laajempi. #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC ei tue padata-tyyppiä" # Tämä viittaa ehkä "transited encoding types"-käsitteeseen. #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC ei tue transited-tyyppiä" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Asiakkaan valtakirja on peruutettu" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Valtakirjat palvelimelle on peruutettu" # TGT tarkoittaa Ticket-Granting-Ticket eli pääsylippua, joka myöntää pääsylipun. #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT on peruutettu" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Asiakas ei ole vielä kelvollinen - yritä myöhemmin uudelleen" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Palvelin ei ole vielä kelvollinen - yritä myöhemmin uudelleen" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Salasana on vanhentunut" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Esitodennustiedot olivat virheelliset" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Lisäesitodennusta tarvittu" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Pyydetty palvelin ja pääsylippu eivät täsmää" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Palvelinpääosapuoli on kelvollinen vain käyttäjä-käyttäjä -viestintään" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "KDC-toimintaperiaate kieltää siirretyn polun" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "Palvelu ei ole käytettävissä" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Salauspuretun tiedoston eheystarkistus epäonnistui" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Pääsylippu on vanhentunut" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Pääsylippu ei ole vielä kelvollinen" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Pyyntö on toisto" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Pääsylippu ei ole meille" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Pääsylippu ja todentaja eivät täsmää" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Aikavääristymä on liian suuri" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Väärä verkko-osoite" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Yhteyskäytäntöversion täsmäämättömyys" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "Virheellinen viestityyppi" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Viestivirta muutettu" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Viesti on rikki" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Avaimen määritelty versio ei ole käytettävissä" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Palveluavain ei ollut käytettävissä" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "Molemminpuolinen todennus epäonnistui" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Virheellinen viestisuunta" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Vaihtoehtoinen todennusmenetelmä vaadittiin" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Virheellinen sekvenssinumero viestissä" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Sanomassa oli sopimaton tarkistussummatyyppi" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Toimintaperiaate kieltää siirretyn polun" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Vastaus on liian suuri UDP:lle, yritetään uudelleen TCP:nä" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Yleinen virhe (kuvaus e-text -tekstissä)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Kenttä on liian pitkä tälle toteutukselle" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(käyttäjältä-käyttäjälle)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Tuntematon KRB-ERROR-virhekoodi %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Asiakaspääosapuolen â€%s†jäsentäminen epäonnistui: %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon n %s...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "Kirjoitetaan KRB-ERROR %s-muodossa...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "Kirjoitetaan KRB-ERROR tiedostoon %s...valmis\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Luetaan KRB-ERROR %s-muodossa...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Luetaan KRB-ERROR tiedostosta %s...valmis\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Pääsylippujen luetteleminen epäonnistui: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Viimeinen alustuspyyntö pääosapuolessa" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Lisätietoja komennolla â€%s --helpâ€.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "liian monia argumentteja" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Pakolliset argumentit pitkille valitsimille ovat pakollisia myös lyhyille " "valitsimille.\n" "\n" "Ilmoita virheistä (englanniksi) osoitteeseen <%s>.\n" "Ilmoita käännösvirheistä osoitteeseen .\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "kirjaston libshishi alustaminen epäonnistui" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Pääsylippuja ei ole poistettu.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "%d pääsylippu poistettu.\n" msgstr[1] "%d pääsylippua poistettu.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" #: src/shisa.c:144 msgid "Account is" msgstr "Tili on" #: src/shisa.c:145 msgid "DISABLED" msgstr "POISTETTU KÄYTÖSTÄ" #: src/shisa.c:145 msgid "enabled" msgstr "otettu käyttöön" #: src/shisa.c:146 msgid "Current key version" msgstr "Nykyinen avainversio" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Tili ei ole kelvollinen ennen" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Viimeinen alustus-TGT -pyyntö pääosapuolessa" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Viimeinen alustuspyyntö pääosapuolessa" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Viimeinen TGT-pyyntö pääosapuolessa" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Viimeinen pääsylippu-uudistaminen pääosapuolessa" # Shisa_principal.passwordexpire #: src/shisa.c:158 msgid "Password expire on" msgstr "Salasana vanheni pääosapuolessa" # Shisa_principal.accountexpire #: src/shisa.c:160 msgid "Account expire on" msgstr "Tili vanheni pääosapuolessa" #: src/shisa.c:173 msgid "Key" msgstr "Avain" # Shishi_cipher_name (keys[i]->etype), etype on lyhennys termistä "Encryption Type" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tSalaustyyppi" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tPrioriteetti" # keys[i]->salt, string2key()-funktion valinnainen argumentti, yleensä "principal@realm" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tSalt-argumentti" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tS2K-parametrit" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tSalasana" # Muodostaa taulukoidun lauseen (ilman välilyöntiä) seuraavan MISSING-sanan kanssa #: src/shisa.c:190 msgid "\tKey is" msgstr "\tAvain" #: src/shisa.c:190 msgid "MISSING" msgstr "PUUTTUU" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Lisätään alue â€%sâ€...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Lisätään pääosapuoli â€%s@%sâ€...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Lisätään alue â€%sâ€...valmis\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Lisätään pääosapuoli â€%s@%sâ€...valmis\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Poistetaan alue â€%sâ€...\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Poistetaan pääosapuoli â€%s@%sâ€...\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Poistetaan alue â€%sâ€...valmis\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Poistetaan pääosapuoli â€%s@%sâ€...valmis\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Salasana käyttäjälle â€%s@%sâ€: " #: src/shisa.c:376 msgid "Password: " msgstr "Salasana: " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Salasanan lukeminen epäonnistui" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Avaimen (%d) luominen epäonnistui:\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Pakolliset argumentit pitkille valitsimille ovat pakollisia myös lyhyille " "valitsimille.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Alustus epäonnistui:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Kirjastovalitsimien â€%s†lukeminen epäonnistui:\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Shishi-alustus epäonnistui:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Salaustyypin â€%s†asettaminen epäonnistui:\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "liian vähän argumentteja" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Lisätään oletusalue â€%sâ€...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Muokataan pääosapuolta â€%s@%sâ€...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Muokataan pääosapuolta â€%s@%sâ€...valmis\n" # principal@realm #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Lisätään avain pääosapuoleen â€%s@%sâ€...\n" # principal@realm #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Lisätään avain pääosapuoleen â€%s@%sâ€...valmis\n" # principal@realm #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Poistetaan avain pääosapuolesta â€%s@%sâ€...\n" # principal@realm #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Poistetaan avain pääosapuolesta â€%s@%sâ€...valmis\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Salaustyyppien asettaminen epäonnistui: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Asiakaspääosapuolen â€%s†jäsentäminen epäonnistui: %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Palvelinpääosapuolen â€%s†jäsentäminen epäonnistui: %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Kirjastovalitsimien lukeminen epäonnistui: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "Virheellinen --starttime -päivämäärä â€%sâ€" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "Virheellinen --endtime -päivämäärä â€%sâ€" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "Virheellinen --renew-till -päivämäärä â€%sâ€" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Pääsyliput oletustiedostossa â€%sâ€:\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Pääsylippujen luetteleminen epäonnistui: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Poistetaan pääsylippu:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Pääsylipun %d tuhoaminen epäonnistui:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Pääsylippuja ei ole poistettu.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "%d pääsylippu poistettu.\n" msgstr[1] "%d pääsylippua poistettu.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "pääsylipun hakeminen pääosapuolena â€%s†palvelimelle â€%s†epäonnistui." #~ msgid "Report bugs to <%s>.\n" #~ msgstr "" #~ "Ilmoita virheistä (englanniksi) osoitteeseen <%s>.\n" #~ "Ilmoita käännösvirheistä osoitteeseen .\n" #~ msgid "" #~ "Shishi command line client. If no command is given, Shishi\n" #~ "acquire or list a valid ticket for you, identified by CLIENT (if\n" #~ "empty, default username in default realm), for the service SERVER (if\n" #~ "empty, ticket granting ticket for client realm)." #~ msgstr "" #~ "Shishi-komentoriviasiakas. Jos komento annetaan, Shishi\n" #~ "hankkii tai luettelee sinulle ASIAKKAAN tunnistaman kelvollisen " #~ "pääsylipun (jos\n" #~ "tyhjä, käytetään oletuskäyttäjänimeä oletusalueessa), SERVER-palvelulle " #~ "(jos\n" #~ "tyhjä, pääsylipun-myöntämis-pääsylippu asiakasalueelle)." #~ msgid "Usage: shishi [OPTIONS]... [CLIENT [SERVER]]..." #~ msgstr "Käyttö: shishi [VALITSIMET]... [ASIAKAS [PALVELIN]]..." #~ msgid " -h, --help Print help and exit" #~ msgstr " -h, --help Tulosta opaste ja poistu" #~ msgid " -V, --version Print version and exit" #~ msgstr " -V, --version Tulosta versio ja poistu" #~ msgid "" #~ "\n" #~ "Commands:" #~ msgstr "" #~ "\n" #~ "Komennot:" #~ msgid "" #~ " -d, --destroy Destroy tickets in local cache, limited " #~ "by any \n" #~ " --client-name or --server-name. \n" #~ " (default=off)" #~ msgstr "" #~ " -d, --destroy Tuhoa pääsyliput paikallisessa " #~ "välimuistissa, valitsimen \n" #~ " --client-name tai --server-name " #~ "rajoittamana. \n" #~ " (oletus=off)" #~ msgid "" #~ " -l, --list List tickets in local cache, limited by " #~ "any \n" #~ " --client-name and --server-name. \n" #~ " (default=off)" #~ msgstr "" #~ " -l, --list Luettele pääsyliput paikallisessa " #~ "välimuistissa, valitsimen \n" #~ " --client-name ja/tai --server-name " #~ "rajoittamana. \n" #~ " (oletus=off)" #~ msgid "" #~ " -r, --renew Renew ticket. Use --server-name to " #~ "specify \n" #~ " ticket, default is the most recent " #~ "renewable \n" #~ " ticket granting ticket for the default " #~ "realm. \n" #~ " (default=off)" #~ msgstr "" #~ " -r, --renew Uudista pääsylippu. Käytä valitsinta --" #~ "server-name \n" #~ " määrittämään pääsylippu, oletus on " #~ "viimeisin uudistettava \n" #~ " pääsylipun-myöntämis-pääsylippu (TGT) " #~ "oletusalueelle. \n" #~ " (oletus=off)" #~ msgid "" #~ "\n" #~ "Flags:" #~ msgstr "" #~ "\n" #~ "Liput:" #~ msgid "" #~ " --forwardable Get a forwardable ticket, i.e., one that " #~ "can be \n" #~ " used to get forwarded tickets. " #~ "(default=off)" #~ msgstr "" #~ " --forwardable Hae eteenpäinvälitettävä pääsylippu, ts., " #~ "sellainen, joka \n" #~ " voidaan käyttää eteenpäinvälitettävien " #~ "pääsylippujen \n" #~ " hakemiseen. (oletus=off)" #~ msgid "" #~ " --forwarded Get a forwarded ticket. (default=off)" #~ msgstr "" #~ " --forwarded Hae eteenpäinvälitetty pääsylippu. " #~ "(oletus=off)" #~ msgid "" #~ " --proxiable Get a proxiable ticket, i.e., one that " #~ "can be \n" #~ " used to get proxy tickets. " #~ "(default=off)" #~ msgstr "" #~ " --proxiable Hae välityspalvelinkelpoinen pääsylippu, " #~ "ts. sellainen, \n" #~ " jota voidaan käyttää hakemaan \n" #~ " välityspalvelinpääsylippuja. " #~ "(oletus=off)" #~ msgid " --proxy Get a proxy ticket. (default=off)" #~ msgstr "" #~ " --proxy Hae välityspalvelinpääsylippu. " #~ "(oletus=off)" #~ msgid "" #~ " --renewable Get a renewable ticket. (default=off)" #~ msgstr "" #~ " --renewable Hae uusintakelpoinen pääsylippu. " #~ "(oletus=off)" #~ msgid "" #~ "\n" #~ "Options:" #~ msgstr "" #~ "\n" #~ "Valitsimet:" #~ msgid "" #~ " --client-name=NAME Client name. Default is login username." #~ msgstr "" #~ " --client-name=NIMI Asiakkaan nimi. Oletus on " #~ "kirjautumiskäyttäjänimi." #~ msgid "" #~ " -E, --encryption-type=ETYPE,[ETYPE...]\n" #~ " Encryption types to use. ETYPE is " #~ "either \n" #~ " registered name or integer. Valid " #~ "values \n" #~ " include 'aes128', 'aes256', 'aes' (same " #~ "as \n" #~ " 'aes256'), '3des', 'des-md5', 'des-" #~ "md4', \n" #~ " 'des-crc', 'des' (same as 'des-md5'), " #~ "and \n" #~ " 'arcfour'." #~ msgstr "" #~ " -E, --encryption-type=ETYPE,[ETYPE...]\n" #~ " Käytettävät salaustyypit. ETYPE on " #~ "joko \n" #~ " rekisteröity nimi tai kokonaisluku. " #~ "Kelvollisiin \n" #~ " arvoihin sisältyvät ’aes128’, ’aes256’, " #~ "’aes’ \n" #~ " (sama kuin ’aes256’), ’3des’, ’des-" #~ "md5’, ’des-md4’, \n" #~ " ’des-crc’, ’des’ (sama kuin ’des-md5’), " #~ "ja \n" #~ " ’arcfour’." #~ msgid "" #~ " -e, --endtime=STRING Specify when ticket validity should " #~ "expire. \n" #~ " The time syntax may be relative (to the " #~ "start \n" #~ " time), such as '20 hours', or absolute, " #~ "such \n" #~ " as '2001-02-03 04:05:06 CET'. The " #~ "default is \n" #~ " 8 hours after the start time." #~ msgstr "" #~ " -e, --endtime=MERKKIJONO Määrittää, milloin pääsylippuen " #~ "kelpoisuusaika vanhenee. \n" #~ " Aikasyntaksi saattaa olla suhteellinen " #~ "(aloitusajasta), \n" #~ " sellaisia kuin ’20 hours’, tai " #~ "absoluuttinen, sellaisia \n" #~ " kuin ’2001-02-03 04:05:06 CET’. Oletus " #~ "on \n" #~ " 8 tuntia aloitusajan jälkeen." #~ msgid " --realm=STRING Set default realm." #~ msgstr " --realm=MERKKIJONO Aseta oletusalue." #~ msgid "" #~ " --renew-till=STRING Specify renewable life of ticket. " #~ "Implies \n" #~ " --renewable. Accepts same time syntax " #~ "as \n" #~ " --endtime. If --renewable is " #~ "specified, the \n" #~ " default is 1 week after the start time." #~ msgstr "" #~ " --renew-till=MERKKIJONO Määritä pääsylipun eliniän uusittavuus. " #~ "Käyttää \n" #~ " valitsinta --renewable. Hyväksyy saman " #~ "aikasyntaksin \n" #~ " kuin valitsin --endtime. Jos valitsin " #~ "--renewable on \n" #~ " määritelty, oletus on 1 viikko " #~ "aloitusajan jälkeen." #~ msgid "" #~ " --server-name=NAME Server name. Default is 'krbtgt/REALM' " #~ "where \n" #~ " REALM is client realm." #~ msgstr "" #~ " --server-name=NIMI Palvelinnimi. Oletus on ’krbtgt/REALM’ " #~ "missä \n" #~ " REALM on asiakkaan alue." #~ msgid "" #~ " -s, --starttime=STRING Specify when ticket should start to be " #~ "valid. \n" #~ " Accepts same time syntax as --endtime. " #~ "The \n" #~ " default is to become valid immediately." #~ msgstr "" #~ " -s, --starttime=MERKKIJONO Määrittää milloin pääsylipun kelpoisuus " #~ "alkaa. \n" #~ " Hyväksyy saman aikasyntaksin kuin " #~ "valitsin --endtime. \n" #~ " Oletus on, että tulee kelvolliseksi " #~ "välittömästi." #~ msgid "" #~ " --ticket-granter=NAME Service name in ticket to use for \n" #~ " authenticating request. Only for TGS. \n" #~ " Defaults to 'krbtgt/REALM@REALM' where " #~ "REALM \n" #~ " is client realm." #~ msgstr "" #~ " --ticket-granter=NIMI Palvelunimi pääsylipussa käytettäväksi \n" #~ " todennuspyynnölle. Ainoastaan TGS:" #~ "lle. \n" #~ " Oletus on ’krbtgt/REALM@REALM’ missä " #~ "REALM \n" #~ " on asiakkaan alue." #~ msgid "" #~ "\n" #~ "Other options:" #~ msgstr "" #~ "\n" #~ "Muut valitsimet:" #~ msgid " --configuration-file=FILE Read user configuration from FILE." #~ msgstr "" #~ " --configuration-file=FILE Lue käyttäjäasetukset tiedostosta FILE." #~ msgid " -c, --ticket-file=FILE Read tickets from FILE." #~ msgstr " -c, --ticket-file=TIEDOSTO Lue pääsyliput TIEDOSTOsta." #~ msgid "" #~ " -o, --library-options=STRING Parse STRING as a configuration file " #~ "statement." #~ msgstr "" #~ " -o, --library-options=STRING Jäsennä STRING-merkkijono " #~ "asetustiedostokäskynä." #~ msgid "" #~ " -q, --quiet Don't produce any diagnostic output.\n" #~ " (default=off)" #~ msgstr "" #~ " -q, --quiet Älä tuota mitään diagnostoivaa " #~ "tulostetta.\n" #~ " (oletus=off)" #~ msgid "" #~ " --system-configuration-file=FILE\n" #~ " Read system configuration from FILE." #~ msgstr "" #~ " --system-configuration-file=TIEDOSTO\n" #~ " Lue järjestelmäasetukset TIEDOSTOsta." #~ msgid "" #~ " --ticket-write-file=FILE Write tickets from FILE. Default is to " #~ "write \n" #~ " them back to where they were read from." #~ msgstr "" #~ " --ticket-write-file=FILE Kirjoita pääsyliput tiedostosta FILE. " #~ "Oletus \n" #~ " on kirjoittaa ne takaisin sinne mistä " #~ "ne luettiin." #~ msgid "" #~ " -v, --verbose Produce verbose output.\n" #~ " Use multiple times to increase amount " #~ "of \n" #~ " information." #~ msgstr "" #~ " -v, --verbose Tuota lavea tuloste.\n" #~ " Käytä useita kertoja tietojen määrän \n" #~ " kasvattamiseen." shishi-1.0.3/po/Rules-quot0000644000000000000000000000423314273615065012325 00000000000000# This file, Rules-quot, can be copied and used freely without restrictions. # Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \ | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \ { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \ $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \ ;; \ *) \ $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \ ;; \ esac } 2>/dev/null > $$tmpdir/$$lang.new.po \ ; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header shishi-1.0.3/po/pl.po0000644000000000000000000010475014273615266011305 00000000000000# Polish translation for shishi. # Copyright (C) 2004, 2006, 2007, 2008, 2010, 2013 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # Jakub Bogusz , 2004-2013. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2013-04-04 17:02+0200\n" "Last-Translator: Jakub Bogusz \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: db/err.c:33 msgid "Shisa success" msgstr "Sukces Shisy" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Nie udaÅ‚o siÄ™ zainicjować Shisy." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Plik konfiguracyjny Shisy nie istnieje." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "Błąd we/wy pliku dla pliku konfiguracyjnego Shisy." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Błąd skÅ‚adni w tokenie konfiguracyjnym Shisy." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "Nie można otworzyć bazy danych Shisy." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Błąd w numeracji dziedzin w bazie danych." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Błąd w numeracji zarzÄ…dców w bazie danych." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Błąd w numeracji kluczy w bazie danych." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Podana dziedzina nie istnieje." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "Podany zarzÄ…dca nie istnieje." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "ZarzÄ…dca nie jest zwiÄ…zany z żadnym pasujÄ…cym kluczem." #: db/err.c:57 msgid "Error finding principal." msgstr "Błąd przy szukaniu zarzÄ…dcy." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Próbowano dodać już istniejÄ…cÄ… dziedzinÄ™." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Błąd przy dodawaniu dziedziny do bazy danych." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Próbowano usunąć niepustÄ… dziedzinÄ™." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Błąd przy usuwaniu dziedziny z bazy danych." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Próbowano dodać już istniejÄ…cego zarzÄ…dcÄ™." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Błąd przy dodawaniu zarzÄ…dcy do bazy danych." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Błąd przy usuwaniu zarzÄ…dcy z bazy danych." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Błąd przy dodawaniu klucza do zarzÄ…dcy." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Błąd przy usuwaniu klucza z zarzÄ…dcy." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "WiÄ™cej niż jeden klucz pasuje do podanego kryterium wyszukiwania." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Nieznany błąd Shisy" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Sukces Shishi" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Błąd w funkcji ASN.1 (uszkodzone dane?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Nie udaÅ‚o siÄ™ otworzyć pliku" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Błąd wejÅ›cia/wyjÅ›cia pliku" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Błąd przydzielania pamiÄ™ci w bibliotece shishi." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Kodowanie lub dekodowanie base64 nie powiodÅ‚o siÄ™. Uszkodzone dane?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Wartość dziedziny klienta różni siÄ™ miÄ™dzy żądaniem a odpowiedziÄ…." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "Wartość nazwy klienta różni siÄ™ miÄ™dzy żądaniem a odpowiedziÄ…." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" "Wartość zabezpieczenia odtworzenia (nonce) różni siÄ™ miÄ™dzy żądaniem a " "odpowiedziÄ…." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "NieprawidÅ‚owy typ klucza użyty w odpowiedzi TGS." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "NieprawidÅ‚owy typ klucza użyty w odpowiedzi z KDC." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "NieprawidÅ‚owy typ klucza użyty w odpowiedzi AP." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Weryfikacja odpowiedzi AP nie powiodÅ‚a siÄ™." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "NieprawidÅ‚owy typ klucza użyty w żądaniu AP." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Dostarczony bufor byÅ‚ zbyt maÅ‚y." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Dane klucza pochodnego sÄ… zbyt krótkie, żeby daÅ‚y siÄ™ użyć." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Klucz jest zbyt duży, żeby daÅ‚ siÄ™ użyć." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Niskopoziomowa operacja kryptograficzna nie powiodÅ‚a siÄ™. Zwykle oznacza to " "zÅ‚e hasÅ‚o lub uszkodzenie danych." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Błąd wewnÄ™trzny w niskopoziomowych funkcjach kryptograficznych." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "WywoÅ‚anie systemowe socket() nie powiodÅ‚o siÄ™. Zwykle oznacza to, że system " "nie obsÅ‚uguje danego rodzaju gniazdo." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "WywoÅ‚anie systemowe bind() nie powiodÅ‚o siÄ™. Zwykle oznacza to " "niewystarczajÄ…ce uprawnienia." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "WywoÅ‚anie systemowe sendto() nie powiodÅ‚o siÄ™." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Błąd podczas odbierania danych z serwera" #: lib/error.c:82 msgid "The system call close() failed." msgstr "WywoÅ‚anie systemowe close() nie powiodÅ‚o siÄ™." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "UpÅ‚ynÄ…Å‚ limit czasu przy komunikacji z KDC. Zwykle oznacza to problem z " "sieciÄ… lub adresem KDC." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Nie ma znanego KDC dla tej dziedziny." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Brak TTY przypisanego do procesu." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Serwer odpowiedziaÅ‚ na żądanie komunikatem błędu." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "Nie udaÅ‚o siÄ™ użyć uchwytu. Brak uchwytu lub źle skonfigurowany." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Zbiór biletów nie zainicjowany. Zwykle oznacza to błąd wewnÄ™trzny aplikacji." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Typ klucza użyty do zaszyfrowania biletu nie pasuje do dostarczonego klucza. " "Zwykle oznacza to błąd wewnÄ™trzny aplikacji." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "OdwoÅ‚anie do błędnego klucza szyfrujÄ…cego." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "Nie udaÅ‚o siÄ™ odszyfrować AP-REQ przy użyciu dostarczonego klucza. Zwykle " "oznacza to błąd wewnÄ™trzny aplikacji." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Nie udaÅ‚o siÄ™ odszyfrować biletu przy użyciu dostarczonego klucza. Zwykle " "oznacza to błąd wewnÄ™trzny aplikacji." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "W wywoÅ‚aniu przekazano błędny bilet." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Argument znajduje siÄ™ poza poprawnym zakresem." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "Struktura ASN.1 nie zawiera wskazanego elementu." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Próba dostÄ™pu do nie istniejÄ…cego typu klucza." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Weryfikacja nie powiodÅ‚a siÄ™ po dowolnej stronie." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Błędny deskryptor PKCS5." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "Błędne zawÅ‚aszczenie licznika iteracji w deskryptorze PKCS5." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "DÅ‚ugość klucza pochodnego jest niepoprawna dla deskryptora PKCS5." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Klucz pochodny jest zbyt dÅ‚ugi dla deskryptora PKCS5." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Błąd skÅ‚adni nazwy zarzÄ…dcy." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "" "W wywoÅ‚aniu przekazano błędny argument - niewÅ‚aÅ›ciwa lub nieznana wartość." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Wskazany element ASN.1 nie zawiera wartoÅ›ci." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" "Próba połączenia nie powiodÅ‚a siÄ™. ProszÄ™ spróbować ponownie lub sprawdzić " "dostÄ™pność." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "Klucz prowatny używa niezgodnego rodzaju szyfrowania." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Brak dostÄ™pu do żądanego pliku. ProszÄ™ sprawdzić uprawnienia." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "Obecna odpowiedź AP okreÅ›la niedozwolony typ klucza." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Żądanie czasu bieżącego nie powiodÅ‚o siÄ™. Zwykle jest to wewnÄ™trzne, ale " "poprawny czas jest niezbÄ™dny." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Nie udaÅ‚o siÄ™ przeanalizować pliku keytab" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Nie udaÅ‚o siÄ™ przeanalizować pliku cache'a danych uwierzytelniajÄ…cych" #: lib/error.c:165 msgid "Unknown error" msgstr "Nieznany błąd" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Brak błędu" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: info: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: info: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: uwaga: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: uwaga: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Wpis klienta w bazie danych wygasÅ‚" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Wpis serwera w bazie danych wygasÅ‚" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Żądana wersja protokoÅ‚u nie jest obsÅ‚ugiwana" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Klucz klienta zaszyfrowany w starym kluczu głównym" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Klucz serwera zaszyfrowany w starym kluczu głównym" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Nie znaleziono klienta w bazie danych" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Nie znaleziono serwera w bazie danych" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Wiele wpisów zarzÄ…dcy w bazie danych" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Klient lub serwer ma pusty klucz" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Bilet nie nadaje siÄ™ do postdatowania" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Żądany czas poczÄ…tkowy jest późniejszy niż koÅ„cowy" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "Żądanie odrzucone przez politykÄ™ KDC" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC nie zgadza siÄ™ na żądanÄ… opcjÄ™" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC nie obsÅ‚uguje tego rodzaju szyfru" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC nie obsÅ‚uguje tego rodzaju sumy kontrolnej" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC nie obsÅ‚uguje tego rodzaju padata" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC nie obsÅ‚uguje tego rodzaju transmisji" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Dane uwierzytelniejÄ…ce klientów zostaÅ‚y anulowane" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Dane uwierzytelniajÄ…ce dla serwera zostaÅ‚y anulowane" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT zostaÅ‚o anulowane" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Klient jeszcze nie jest ważny - proszÄ™ spróbować później" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Serwer jeszcze nie jest ważny - proszÄ™ spróbować później" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "HasÅ‚o wygasÅ‚o" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Informacje wczesnego uwierzytelnienia byÅ‚y nieprawidÅ‚owe" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Wymagane dodatkowe wczesne uwierzytelnienie" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Żądany serwer i bilet nie zgadzajÄ… siÄ™" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "ZarzÄ…dca serwera ważny tylko dla user2user" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "Polityka KDC odrzuca Å›cieżkÄ™ tranzytowÄ…" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "UsÅ‚uga niedostÄ™pna" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Kontrola poprawnoÅ›ci odszyfrowanego pola nie powiodÅ‚a siÄ™" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Bilet wygasÅ‚" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Bilet jeszcze nieważny" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Żądanie jest powtórkÄ…" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Bilet nie jest dla nas" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Bilet i uwierzytelnienie nie zgadzajÄ… siÄ™" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Zbyt duże przesuniÄ™cie zegara" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Niepoprawny adres sieci" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Niezgodność wersji protokoÅ‚u" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "NieprawidÅ‚owy rodzaj komunikatu" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Zmodyfikowany strumieÅ„ komunikatu" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Komunikat spoza kolejnoÅ›ci" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Podana wersja klucza nie jest dostÄ™pna" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Klucz usÅ‚ugi niedostÄ™pny" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "Wzajemne uwierzytelnienie nie powiodÅ‚o siÄ™" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Niepoprawny kierunek komunikatu" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Wymagana alternatywna metoda uwierzytelnienia" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Niepoprawny numer sekwencji w komunikacie" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "NiewÅ‚aÅ›ciwy rodzaj sumy kontrolnej w komunikacie" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Polityka odrzuca Å›cieżkÄ™ tranzytowÄ…" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Odpowiedź zbyt duża dla UDP, proszÄ™ spróbować TCP" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Błąd ogólny (opis w e-tekÅ›cie)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Pole zbyt dÅ‚ugie dla tej implementacji" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(user-to-user)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Nieznany kod błędu KRB-ERROR %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Nie udaÅ‚o siÄ™ przeanalizować zarzÄ…dcy klienta \"%s\": %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "Zapisywanie KRB-ERROR do %s...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "Zapisywanie KRB-ERROR w formacie %s...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "Zapisywanie KRB-ERROR do %s... zakoÅ„czone\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Odczytywanie KRB-ERROR z %s...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Odczytywanie KRB-ERROR w formacie %s...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Odczytywanie KRB-ERROR z %s... zakoÅ„czone\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Nie udaÅ‚o siÄ™ wylistować biletów: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Ostatnie poczÄ…tkowe żądanie" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "`%s --help' poda wiÄ™cej informacji.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "zbyt wiele argumentów" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Argumenty obowiÄ…zkowe dla opcji dÅ‚ugich sÄ… obowiÄ…zkowe także dla opcji " "krótkich.\n" "\n" "Prosimy zgÅ‚aszać błędy na adres <%s>.\n" "Błędy w tÅ‚umaczeniu prosimy zgÅ‚aszać na adres .\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "nie można zainicjować libshishi" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Nie usuniÄ™to żadnego biletu.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "UsuniÄ™to %d bilet.\n" msgstr[1] "UsuniÄ™to %d bilety.\n" msgstr[2] "UsuniÄ™to %d biletów.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: src/shisa.c:144 msgid "Account is" msgstr "Konto jest" #: src/shisa.c:145 msgid "DISABLED" msgstr "WYÅÄ„CZONE" #: src/shisa.c:145 msgid "enabled" msgstr "włączone" #: src/shisa.c:146 msgid "Current key version" msgstr "Bieżąca wersja klucza" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Konto nieważne przed" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Ostatnie poczÄ…tkowe żądanie TGT" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Ostatnie poczÄ…tkowe żądanie" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Ostatnie żądanie TGT" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Ostatnie odnowienie biletu" #: src/shisa.c:158 msgid "Password expire on" msgstr "HasÅ‚o wygasa" #: src/shisa.c:160 msgid "Account expire on" msgstr "Konto wygasa" #: src/shisa.c:173 msgid "Key" msgstr "Klucz" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tEtype" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tPriorytet" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tZarodek" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tParametry S2K" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tHasÅ‚o" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tKlucz jest" #: src/shisa.c:190 msgid "MISSING" msgstr "BRAKUJÄ„CY" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Dodawanie dziedziny `%s'...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Dodawanie zarzÄ…dcy `%s@%s'...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Dodawanie dziedziny `%s'... zakoÅ„czone\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Dodawanie zarzÄ…dcy `%s@%s'... zakoÅ„czone\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Usuwanie dziedziny `%s'...\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Usuwanie zarzÄ…dcy `%s@%s'...\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Usuwanie dziedziny `%s'... zakoÅ„czone\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Usuwanie zarzÄ…dcy `%s@%s'... zakoÅ„czone\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "HasÅ‚o dla `%s@%s': " #: src/shisa.c:376 msgid "Password: " msgstr "HasÅ‚o: " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Nie udaÅ‚o siÄ™ odczytać hasÅ‚a" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Nie udaÅ‚o siÄ™ utworzyć klucza (%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Argumenty obowiÄ…zkowe dla opcji dÅ‚ugich sÄ… obowiÄ…zkowe także dla opcji " "krótkich.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Inicjalizacja nie powiodÅ‚a siÄ™:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Nie udaÅ‚o siÄ™ odczytać opcji biblioteki `%s':\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Inicjalizacja Shishi nie powiodÅ‚a siÄ™:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Nie udaÅ‚o siÄ™ ustawić rodzaju szyfrowania `%s':\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "zbyt maÅ‚o argumentów" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Dodawanie domyÅ›lnej dziedziny `%s'...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Modyfikowanie zarzÄ…dcy `%s@%s'...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Modyfikowanie zarzÄ…dcy `%s@%s'... zakoÅ„czone\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Dodawanie klucza do `%s@%s'...\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Dodawanie klucza do `%s@%s'... zakoÅ„czone\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Usuwanie klucza z `%s@%s'...\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Usuwanie klucza z `%s@%s'... zakoÅ„czone\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Nie udaÅ‚o siÄ™ ustawić rodzajów szyfrowania: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Nie udaÅ‚o siÄ™ przeanalizować zarzÄ…dcy klienta \"%s\": %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Nie udaÅ‚o siÄ™ przeanalizować zarzÄ…dcy serwera \"%s\": %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Nie udaÅ‚o siÄ™ odczytać opcji biblioteki: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "NieprawidÅ‚owa data --starttime `%s'" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "NieprawidÅ‚owa data --endtime `%s'" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "NieprawidÅ‚owa data --renew-till `%s'" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Bilety w `%s':\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Nie udaÅ‚o siÄ™ wylistować biletów: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Usuwanie biletu:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Nie udaÅ‚o siÄ™ zniszczyć biletu %d:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Nie usuniÄ™to żadnego biletu.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "UsuniÄ™to %d bilet.\n" msgstr[1] "UsuniÄ™to %d bilety.\n" msgstr[2] "UsuniÄ™to %d biletów.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "nie udaÅ‚o siÄ™ pobrać biletu jako `%s' dla `%s'" shishi-1.0.3/po/sv.po0000644000000000000000000010244614273615266011322 00000000000000# Swedish translations for shishi. # Copyright (C) 2017, 2018 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # Sebastian Rasmussen , 2017, 2018. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2018-07-24 23:31+0800\n" "Last-Translator: Sebastian Rasmussen \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.0.9\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa lyckades" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Shisa kunde inte initialiseras." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Konfigurationsfilen för Shisa existerar inte." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "In-/utmatningsfel för konfigurationsfil för Shisa." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Syntaxfel i konfigurationssymbol för Shisa." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "Databas för Shisa kunde inte öppnas." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Fel vid uppräkning av domäner i databas." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Fel vid uppräkning av huvudnamn i databas." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Fel vid uppräkning av nycklar i databas." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Angiven domän existerar inte." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "Angivet huvudnamn existerar inte." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Huvudnamn är inte associerat med nÃ¥gon matchande nyckel." #: db/err.c:57 msgid "Error finding principal." msgstr "Kunde inte hitta huvudnamn." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Försökte att lägga till en domän som redan existerar." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Fel vid tillägg av domän till databas." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Försökte att ta bort en icke-tom domän." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Fel vid borttagning av domän frÃ¥n databas." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Försökte att lägga till ett huvudnamn som redan existerar." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Fel vid tillägg av huvudnamn till databas." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Fel vid borttagning av huvudnamn frÃ¥n databas." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Fel vid tillägg av nyckel till huvudnamn." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Fel vid borttagning av nyckel frÃ¥n huvudnamn." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Mer än en nyckel matchar angivna sökkriterier." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Okänt Shisa-fel" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi lyckades" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Fel i ASN.1-funktion (korrumperad data?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Kunde inte öppna fil" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Inmatnings/utmatningsfel för fil" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Minnesallokeringsfel i shishi-bibliotek." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Base64-kodning/-avkodning misslyckades. Korrumperad data?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Värde för klientdomän skiljer sig mellan förfrÃ¥gan och svar." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "Värde för klientnamn skiljer sig mellan förfrÃ¥gan och svar." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "Värde för svarsskydd (nonce) skiljer sig mellan förfrÃ¥gan och svar." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "Felaktig nyckeltyp använd i TGS-svar." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Felaktig nyckeltyp använd i svar frÃ¥n KDC." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "Felaktig nyckeltyp används i AP-svar." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Misslyckades med att verifiera AP-svar." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "Felaktig nyckeltyp i AP-förfrÃ¥gan." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Angiven buffert för liten." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Härlett nyckelmaterial är för kort för att vara tillämpligt." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Nyckel är för stor för att vara användbar." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Kryptografisk lÃ¥gnivÃ¥primitiv misslyckades. Detta indikerar vanligtvis ett " "felaktigt lösenord eller korrumperad data." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Internt fel i kryptografiska lÃ¥gnivÃ¥rutiner." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "Misslyckades med systemanropet socket(). Detta indikerar vanligtvis att ditt " "system inte har stöd för uttagstypen." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "Misslyckades med systemanropet bind(). Detta indikerar vanligtvis " "otillräckliga rättigheter." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "Misslyckades med systemanropet sendto()." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Fel vid mottagning av data frÃ¥n server" #: lib/error.c:82 msgid "The system call close() failed." msgstr "Misslyckades med systemanropet close()." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "Tidsgräns överstegs vid samtal med KDC. Detta indikerar vanligtvis ett " "nätverks- eller KDC-adressproblem." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Ingen KDC känd för given domän." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Ingen TTY tilldelad till process." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Server svarade pÃ¥ förfrÃ¥gan med ett felmeddelande." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "" "Misslyckades med att använda handtag. Handtag saknas eller är " "felkonfigurerat." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Biljettuppsättning inte initierad. Detta indikerar vanligtvis ett internt " "programfel." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Nyckeltyp använd för att kryptera biljett matchar inte angiven nyckel. Detta " "indikerar vanligtvis ett internt programfel." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Referens till ogiltig krypteringsnyckel." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "Kunde inte dekryptera AP-REQ med angiven nyckel. Detta indikerar vanligtvis " "ett internt programfel." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Kunde inte dekryptera biljett med angiven nyckel. Detta indikerar vanligtvis " "ett internt programfel." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "Ogiltig biljett angiven i anrop." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Argument ligger utanför giltigt intervall." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "ASN.1-strukturen innehÃ¥ller inte det indikerade elementet." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Försök att komma Ã¥t icke-existerande nyckeltyp." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Verifikation misslyckades pÃ¥ endera sidan." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Ogiltig PKCS5-deskriptor." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "Ogiltigt ansprÃ¥k pÃ¥ iterationsräknare i PKCS5-deskriptor." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Härledd nyckellängd är felaktig för PKCS5-deskriptor." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Härledd nyckellängd är för lÃ¥ng för PKCS5-deskriptor." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Syntaxfel i huvudnamn." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "Ogiltigt argument angivet i anrop. Felaktigt eller okänt värde." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Det indikerade ASN.1-elementet bär inget värde." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" "Anslutningsförsök misslyckades. Försök igen eller kontrollera tillgänglighet." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "Den privata nyckeln använder en inkompatibel krypteringstyp." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Den önskade filen kunde inte nÃ¥s. Kontrollera rättigheter." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "Det aktuella AP-svaret anger en otillÃ¥ten nyckeltyp." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "En begäran om aktuell tid har misslyckats. Detta är vanligtvis internt, men " "en giltig tid är nödvändig för oss." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Misslyckades med att tolka keytab-fil" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Misslyckades med att tolka cachefil med uppgifter" #: lib/error.c:165 msgid "Unknown error" msgstr "Okänt fel" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Inget fel" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: info: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: info: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: varning: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: varning: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Klientens post i databasen har gÃ¥tt ut" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Serverns post i databasen har gÃ¥tt ut" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Begärt protokollversionsnummer stöds inte" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Klientens nyckel krypterad i gammal huvudnyckel" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Serverns nyckel krypterad i gammal huvudnyckel" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Klient kan inte hittas i databasen" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Servern kan inte hittas i databasen" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Flera huvudnamnsposter i databasen" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Klienten eller servern har en nyckel som är null" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Biljett inte berättigad till efterdatering" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Begärd starttid är senare än sluttiden" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "KDC-policy avböjer begäran" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC kan inte tillmötesgÃ¥ begärt alternativ" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC har inte stöd för krypteringstyp" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC har inte stöd för denna typ av kontrollsumma" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC har inte stöd för padata-typ" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC har inte stöd för befordranstyp" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Klientuppgifter har Ã¥terkallats" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Uppgifter för server har Ã¥terkallats" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT har Ã¥terkallats" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Klient inte giltig än - försök senare" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Server inte giltig än - försök senare" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Lösenord har gÃ¥tt ut " #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Förautentiseringsinformation är inte giltig" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Ytterligare förautentiseringsinformation krävs" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Begärd server och biljett matchar inte" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Huvudnamn för server enbart giltigt för användare-till-användare" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "KDC-policy avböjer befordransväg" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "En service är inte tillgänglig" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Integritetskontroll av dekrypterat fält misslyckades" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Biljett har gÃ¥tt ut" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Biljett ännu inte giltig" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Begäran är ett svar" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Biljetten är inte vÃ¥r" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Biljett och autentiserare matchar inte" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Klockavvikelse för stor" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Felaktig nätadress" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Protokollversion matchar inte" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "Ogiltig msg-typ" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Meddelandeström modifierad" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Meddelande i fel ordning" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Angiven version av nyckel är inte tillgänglig" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Servicenyckel inte tillgänglig" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "Samtidig autentisering misslyckades" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Felaktig meddelanderiktning" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Alternativ autentiseringsmetod begärd" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Felaktigt sekvensnummer i meddelande" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Olämplig typ av kontrollsumma i meddelande" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Policy avböjer befordransväg" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Svar för stort för UDP, försök med TCP" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Allmänt fel (beskrivning i e-text)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Fält är för stort för denna implementation" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(användare-till-användare)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Okänd KRB-FEL-kod %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Kunde inte tolka huvudnamn för klient â€%sâ€: %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "Skriver KRB-FEL till %s…\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "Skriver KRB-FEL i %s-format…\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "Skriver KRB-FEL till %s…klart\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Läser KRB-FEL frÃ¥n %s…\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Läser KRB-FEL i %s-format…\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Läser KRB-FEL frÃ¥n %s…klart\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Kunde inte lista biljetter: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Senaste inledande begäran vid" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Prova â€%s --help†för vidare information.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "för mÃ¥nga argument" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Nödvändiga argument till lÃ¥nga flaggor är ocksÃ¥ nödvändiga för korta " "flaggor.\n" "\n" "Rapportera fel till <%s>.\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "kan inte initiera libshishi" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Inga biljetter borttagna.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "%d biljett borttagen.\n" msgstr[1] "%d biljetter borttagna.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" #: src/shisa.c:144 msgid "Account is" msgstr "Konto är" #: src/shisa.c:145 msgid "DISABLED" msgstr "INAKTIVERAT" #: src/shisa.c:145 msgid "enabled" msgstr "aktiverat" #: src/shisa.c:146 msgid "Current key version" msgstr "Aktuell nyckelversion" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Konto inte giltigt innan" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Senaste inledande TGT-begäran vid" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Senaste inledande begäran vid" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Senaste TGT-begäran vid" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Senaste biljettförnyelse vid" #: src/shisa.c:158 msgid "Password expire on" msgstr "Lösenord gÃ¥r ut" #: src/shisa.c:160 msgid "Account expire on" msgstr "Konto gÃ¥r ut" #: src/shisa.c:173 msgid "Key" msgstr "Nyckel" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tEtyp" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tPrioritet" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tSalt" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tS2K-parametrar" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tLösenord" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tNyckeln är" #: src/shisa.c:190 msgid "MISSING" msgstr "SAKNAS" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Lägger till domän â€%sâ€â€¦\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Lägger till huvudnamn â€%s@%sâ€â€¦\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Lägger till domän â€%sâ€â€¦klart\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Lägger till huvudnamn â€%s@%sâ€â€¦klart\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Tar bort domän â€%sâ€â€¦\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Tar bort huvudnamn â€%s@%sâ€â€¦\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Tar bort domän â€%sâ€â€¦klart\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Tar bort huvudnamn â€%s@%sâ€â€¦klart\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Lösenord för â€%s@%sâ€: " #: src/shisa.c:376 msgid "Password: " msgstr "Lösenord: " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Kunde inte läsa lösenord" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Kunde inte skapa nyckel (%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Nödvändiga argument till lÃ¥nga flaggor är ocksÃ¥ nödvändiga för korta " "flaggor.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Initialisering misslyckades:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Kunde inte läsa biblioteksflaggor â€%sâ€:\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Shishi-initiering misslyckades:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Kunde inte ställa in krypteringstyp â€%sâ€:\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "för fÃ¥ argument" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Lägger till standarddomän â€%sâ€â€¦\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Modifierar huvudnamn â€%s@%sâ€â€¦\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Modifierar huvudnamn â€%s@%sâ€â€¦klart\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Lägger till nyckel till â€%s@%sâ€â€¦\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Lägger till nyckel till â€%s@%sâ€â€¦klart\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Tar bort nyckel frÃ¥n â€%s@%sâ€â€¦\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Tar bort nyckel frÃ¥n â€%s@%sâ€â€¦klart\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Kunde inte ställa in krypteringstyper: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Kunde inte tolka huvudnamn för klient â€%sâ€: %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Kunde inte tolka huvudnamn för server â€%sâ€: %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Kunde inte läsa biblioteksflaggor: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "Ogiltigt datum för --starttime â€%sâ€" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "Ogiltigt datum för --endtime â€%sâ€" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "Ogiltigt datum för --renew-till â€%sâ€" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Biljetter i â€%sâ€:\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Kunde inte lista biljetter: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Tar bort biljett:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Kunde inte förstöra biljett %d:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Inga biljetter borttagna.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "%d biljett borttagen.\n" msgstr[1] "%d biljetter borttagna.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "kunde inte hämta biljett som â€%s†för â€%sâ€" shishi-1.0.3/po/de.po0000644000000000000000000010744414273615266011265 00000000000000# German translation of shishi. # Copyright (C) 2014 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # Mario Blättermann , 2014. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2014-04-22 21:42+0100\n" "Last-Translator: Mario Blättermann \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.5.4\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa-Erfolg" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Shisa konnte nicht initialisiert werden." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Die Shisa-Konfigurationsdatei existiert nicht." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "E/A-Fehler für Shisa-Konfigurationsdatei." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Syntaxfehler im Shisa-Konfigurations-Token." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "Shisha-Datenbank konnte nicht geöffnet werden." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Fehler bei der Aufzählung der Realms in der Datenbank" #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Fehler bei der Aufzählung der Principals in der Datenbank." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Fehler bei der Aufzählung der Schlüssel in der Datenbank." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Angegebener Realm existiert nicht." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "Angegebener Principal existiert nicht." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Principal ist keinem passenden Schlüssel zugeordnet." #: db/err.c:57 msgid "Error finding principal." msgstr "Fehler beim Finden des Principals." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Es wurde versucht, einen bereits existierenden Realm zu hinzuzufügen." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Fehler beim Hinzufügen des Realms zur Datenbank." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Es wurde versucht, einen nicht-leeren Realm zu entfernen." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Fehler beim Entfernen des Realms aus der Datenbank." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Versuch, einen bereits existierenden Principal hinzuzufügen." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Fehler beim Hinzufügen des Pricipals zur Datenbank." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Fehler beim Entfernen des Principals aus der Datenbank." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Fehler beim Hinzufügen des Schlüssels zum Principal." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Fehler beim Entfernen des Schlüssels aus dem Principal." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Mehr als ein Schlüssel entspricht den angegebenen Suchkriterien." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Unbekannter Shisa-Fehler" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi-Erfolg" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Fehler in ASN.1-Funktion (beschädigte Daten?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Datei konnte nicht geöffnet werden" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Datei-Eingabe-/Ausgabe-Fehler" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Fehler bei der Speicherzuweisung in der shishi-Bibliothek." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Base64-Kodierung oder -Dekodierung fehlgeschlagen. Daten beschädigt?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Realm-Werte für Client in Anfrage und Antwort sind unterschiedlich." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "Name-Werte für Client in Anfrage und Antwort sind unterschiedlich." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" "Wert für Antwortschutz (nonce) ist für Anfrage und Antwort unterschiedlich." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "Inkorrekter Schlüsseltyp in TGS-Antwort verwendet." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Inkorrekter Schlüsseltyp in Antwort von KDC verwendet." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "Inkorrekter Schlüsseltyp in AP-Antwort verwendet." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Fehler bei der Verifizierung der AP-Antwort." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "Inkorrekter Schlüsseltyp in AP-Anfrage verwendet." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Bereitgestellter Puffer war zu klein." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Erhaltenes Schlüsselmaterial war zu klein, um verwendbar zu sein." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Der Schlüssel ist zu groß, um verwendbar zu sein." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Low-Level Verschlüsselungs-Primitive fehlgeschlagen. Dies weist " "üblicherweise auf ein falsches Passwort oder beschädigte Daten hin." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Interner Fehler in Low-Level-Verschlüsselungsroutinen." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "Der Systemaufruf socket() ist fehlgeschlagen. Dies weist üblicherweise " "darauf hin, dass Ihr System den Socket-Typ nicht unterstützt." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "Der Systemaufruf bind() ist fehlgeschlagen. Dies weist üblicherweise auf " "unzureichende Zugriffsrechte hin." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "Der Systemaufruf sendto() ist fehlgeschlagen." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Fehler beim Empfangen der Daten vom Server." #: lib/error.c:82 msgid "The system call close() failed." msgstr "Der Systemaufruf close() ist fehlgeschlagen." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "Zeitüberschreitung bei der Kommunikation mit KDC. Dies weist üblicherweise " "auf ein Netzwerk- oder KDC-Adressproblem hin." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Für den angegebenen Realm ist kein KDC bekannt." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Kein TTY ist dem Prozess zugeordnet." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Server antwortete auf die Anfrage mit einer Fehlermeldung." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "" "Verarbeitung nicht möglich. Verarbeitungsfunktion fehlt oder falsch " "konfiguriert." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Der Ticket-Satz ist nicht initialisiert. Dies weist üblicherweise auf einen " "internen Anwendungsfehler hin." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Der Typ des zum Verschlüsseln des Tickets verwendeten Schlüssel entspricht " "nicht dem bereitgestellten Schlüssel. Dies weist üblicherweise auf einen " "internen Anwendungsfehler hin." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Referenz auf einen ungültigen Schlüssel zum Verschlüsseln." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "AP-REQ konnte mit dem bereitgestellten Schlüssel nicht entschlüsselt werden. " "Dies weist üblicherweise auf einen internen Anwendungsfehler hin." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Ticket konnte mit dem bereitgestellten Schlüssel nicht entschlüsselt werden. " "Dies weist üblicherweise auf einen internen Anwendungsfehler hin." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "Ungültiges Ticket im Aufruf übergeben." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Argument ist außerhalb des gültigen Bereichs." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "Die ASN.1-Struktur enthält das bezeichnete Element nicht." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Versuch, auf einen nicht existierenden Schlüsseltyp zuzugreifen." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Überprüfung ist auf einer der Seiten fehlgeschlagen." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Ungültiger PKCS5-Bezeichner." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "Ungültige Angabe der Anzahl der Durchläufe im PKCS5-Bezeichner." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Erhaltene Schlüssellänge ist inkorrekt für den PKCS5-Bezeichner." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Erhaltener Schlüssel ist zu lang für den PKCS5-Bezeichner." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Syntaxfehler im Principal-Namen." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "" "Ungültiges Argument im Aufruf übergeben. Falscher oder unbekannter Wert." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Das angegebene ASN.1-Element beinhaltet keinen Wert." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" "Verbindungsversuch ist fehlgeschlagen. Versuchen Sie es erneut oder " "überprüfen Sie die Verfügbarkeit." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "" "Der geheime Schlüssel verwendet einen inkompatiblen Verschlüsselungstyp." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "" "Auf die gewünschte Datei konnte nicht zugegriffen werden. Überprüfen Sie die " "Zugriffsrechte." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "" "Die aktuelle AP-Antwort gibt einen Schlüsseltyp an, auf den nicht " "zugegriffen werden kann." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Eine Anfrage für die aktuelle Tageszeit ist fehlgeschlagen. Dies ist " "üblicherweise intern, aber eine gültige Zeit ist für uns notwendig." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Lesen der keytab-Datei ist fehlgeschlagen" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Zwischenspeicherdatei der Anmeldedaten konnte nicht gelesen werden" #: lib/error.c:165 msgid "Unknown error" msgstr "Unbekannter Fehler" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Kein Fehler" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: Info: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: Info: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: Warnung: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: Warnung: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Eintrag des Clients in der Datenbank ist abgelaufen" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Eintrag des Servers in der Datenbank ist abgelaufen" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Angefragte Nummer der Protokollversion wird nicht unterstützt" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Schlüssel des Clients ist in altem Master-Schlüssel verschüsselt" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Schlüssel des Servers ist in altem Master-Schlüssel verschüsselt" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Client nicht in Datenbank gefunden" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Server nicht in Datenbank gefunden" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Mehrere Pricipal-Einträge in der Datenbank" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Der Client oder Server hat einen Null-Schlüssel" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Ticket ist für Nachdatierung nicht geeignet" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Angefragte Startzeit liegt hinter der Endzeit" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "KDC-Regel weist die Anfrage zurück" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC kann die angeforderte Option nicht verarbeiten" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC verfügt über keine Unterstützung für den Verschlüsselungstyp" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC verfügt über keine Unterstützung für den Prüfsummentyp" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC verfügt über keine Unterstützung für den Parallelverarbeitungstyp" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC verfügt nicht über Unterstützung für den Übergangstyp" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Anmeldedaten des Clients wurden abgewiesen" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Anmeldedaten des Servers wurden abgewiesen" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT wurde widerrufen" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Client ist noch nicht gültig – bitte später erneut versuchen" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Server ist noch nicht gültig – bitte später erneut versuchen" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Passwort ist abgelaufen" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Information zur Vor-Authentifizierung war ungültig" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Zusätzliche Vor-Authentifizierung ist erforderlich" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Angeforderter Server und Ticket passen nicht zueinander" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Server-Principal ist nur für user2user gültig" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "KDC-Regel weist den Übergangspfad zurück" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "Ein Dienst ist nicht verfügbar" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Integritätsüberprüfung des entschlüsselten Feldes ist fehlgeschlagen" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Ticket ist abgelaufen" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Ticket ist noch nicht gültig" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Anfrage ist eine Antwort" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Das Ticket ist nicht für uns." #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Ticket und Authentifizierer passen nicht zueinander" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Zeitabweichung ist zu groß" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Inkorrekte Netzwerkadresse" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Protokollversionen stimmen nicht überein" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "Ungültiger Meldungstyp." #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Meldungs-Datenstrom wurde verändert" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Meldung ist nicht in Ordnung" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Angegebene Version des Schlüssels ist nicht verfügbar" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Service-Schlüssel ist nicht verfügbar" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "Gegenseitige Authentifizierung ist fehlgeschlagen" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Inkorrekte Meldungsrichtung" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Alternative Authentifizierungsmethode ist erforderlich" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Inkorrekte Sequenznummer in Meldung" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Ungeeigneter Prüfsummentyp in der Meldung" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Regel weist den Übergangspfad zurück" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Antwort ist zu umfangreich für UDP, versuchen Sie es mit TCP" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Allgemeiner Fehler (Beschreibung im e-text)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Feld ist zu lang für diese Implementation" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(Benutzer-zu-Benutzer)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Unbekannter KRB-ERROR-Fehlercode %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Client-Principal »%s« konnte nicht verarbeitet werden: %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "KRB-ERROR wird nach %s geschrieben … \n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "KRB-ERROR im %s-Format wird geschrieben …\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "KRB-ERROR wird nach %s geschrieben … abgeschlossen.\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "KRB-ERROR wird aus %s gelesen … \n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "KRB-ERROR im %s-Format wird gelesen …\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "KRB-ERROR wird aus %s gelesen … abgeschlossen.\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Tickets konnten nicht aufgelistet werden: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Letzte initiale Anfrage am" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Versuchen Sie »%s --help« für mehr Informationen.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "zu viele Argumente" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Notwendige Argumente für Optionen in Langform sind auch für die Kurzform\n" "notwendig.\n" "\n" "Melden Sie Fehler an <%s>.\n" "Fehler in der Übersetzung melden Sie bitte an:\n" "\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "libshishi kann nicht initialisiert werden" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Keine Tickets entfernt.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "%d Ticket entfernt.\n" msgstr[1] "%d Tickets entfernt.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" #: src/shisa.c:144 msgid "Account is" msgstr "Konto ist" #: src/shisa.c:145 msgid "DISABLED" msgstr "DEAKTIVIERT" #: src/shisa.c:145 msgid "enabled" msgstr "aktiviert" #: src/shisa.c:146 msgid "Current key version" msgstr "Aktuelle Schlüsselversion" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Konto ist nicht gültig vor" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Letzte initiale TGT-Anfrage am" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Letzte initiale Anfrage am" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Letzte TGT-Anfrage am" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Letzte Ticket-Erneuerung am" #: src/shisa.c:158 msgid "Password expire on" msgstr "Passwort läuft ab am" #: src/shisa.c:160 msgid "Account expire on" msgstr "Konto läuft ab am" #: src/shisa.c:173 msgid "Key" msgstr "Schlüssel" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tEtyp" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tPriorität" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tSalt" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tS2K-Parameter" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tPasswort" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tSchlüssel ist" #: src/shisa.c:190 msgid "MISSING" msgstr "FEHLT" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Realm »%s« wird hinzugefügt … \n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Principal »%s@%s« wird hinzugefügt … \n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Realm »%s« wird hinzugefügt … abgeschlossen\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Principal »%s@%s« wird hinzugefügt … abgeschlossen\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Realm »%s« wird entfernt … \n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Principal »%s@%s« wird entfernt …\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Realm »%s« wird entfernt … abgeschlossen\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Principal »%s@%s« wird entfernt … abgeschlossen\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Passwort für »%s@%s«: " #: src/shisa.c:376 msgid "Password: " msgstr "Passwort: " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Passwort konnte nicht gelesen werden" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Schlüssel konnte nicht erzeugt werden (%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Notwendige Argumente für Optionen in Langform sind auch für die Kurzform\n" "notwendig.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Initialisierung gescheitert:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Bibliotheksoptionen »%s« konnten nicht gelesen werden:\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Shishi-Initialisierung fehlgeschlagen:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Verschlüsselungstyp »%s« konnte nicht gesetzt werden:\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "zu wenige Argumente" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Standard-Realm »%s« wird hinzugefügt … abgeschlossen\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Principal »%s@%s« wird geändert …\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Principal »%s@%s« wird geändert … abgeschlossen\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Schlüssel wird zu »%s@%s« hinzugefügt …\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Schlüssel wird zu »%s@%s« hinzugefügt … abgeschlossen\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Schlüssel wird aus »%s@%s« entfernt …\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Schlüssel wird aus »%s@%s« entfernt … abgeschlossen\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Verschlüsselungstypen konnten nicht gesetzt werden: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Client-Principal »%s« konnte nicht verarbeitet werden: %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Server-Principal »%s« konnte nicht verarbeitet werden: %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Bibliotheksoptionen konnten nicht gelesen werden: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "Ungültiges --starttime-Datum »%s«" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "Ungültiges --endtime-Datum »%s«" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "Ungültiges --renew-till-Datum »%s«" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Tickets in »%s«:\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Tickets konnten nicht aufgelistet werden: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Ticket wird entfernt:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Ticket %d konnte nicht zerstört werden:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Keine Tickets entfernt.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "%d Ticket entfernt.\n" msgstr[1] "%d Tickets entfernt.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "Ticket als »%s« für »%s« konnte nicht erhalten werden" shishi-1.0.3/po/de.gmo0000644000000000000000000005214714273615266011430 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,ã…,i.o. . ‰.•.¤.Wª.Ï/*Ò/ý/0Œ0ª0Ê0 Ý0ç0:1.>1<m1+ª18Ö1$21423f26š2/Ñ2A3EC3C‰3"Í3@ð3D143v4Cª4*î45h55/ž5‘Î5‘`6+ò6,7;K7;‡7;Ã74ÿ7$48;Y87•8*Í8ø8 9<9C\9B 96ã94:1O:;:;½:6ù:"0;8S;7Œ;3Ä;,ø;R%<*x<*£<+Î<*ú<2%=2X=3‹=7¿=÷=>#.>R>Hr>7»>"ó>%?$}A#¼A àA¶ëA¢B¸B×BòB†C•C:›CÖC$óC'D5@DAvD+¸D1äD0E$GE lExE‘E§EÁE ÙE&äE3 F5?F uF)–F%ÀF#æF1 G(2I7qI-©I=×I"J@8J/yJ:©J3äJCK'\K(„K/­K ÝK)êK7L&LL"sL+–LÂL:×L.M0AM_rM4ÒM3N[;NJ—NkâN,NO-{O†©O0P3OPƒP,™PÆPkäPPQ=dQF¢Q9éQ5#R$YR~R—R6ªR,áR(S67S)nS:˜S ÓSÝSñSTT 5T@TTTŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2014-04-22 21:42+0100 Last-Translator: Mario Blättermann Language-Team: German Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Poedit 1.5.4 Etyp Schlüssel ist Passwort Priorität S2K-Parameter Salt Notwendige Argumente für Optionen in Langform sind auch für die Kurzform notwendig. Notwendige Argumente für Optionen in Langform sind auch für die Kurzform notwendig. Melden Sie Fehler an <%s>. Fehler in der Übersetzung melden Sie bitte an: %d Ticket entfernt. %d Tickets entfernt. (pkinit)(Benutzer-zu-Benutzer)Eine Anfrage für die aktuelle Tageszeit ist fehlgeschlagen. Dies ist üblicherweise intern, aber eine gültige Zeit ist für uns notwendig.Ein Dienst ist nicht verfügbarKonto läuft ab amKonto istKonto ist nicht gültig vorStandard-Realm »%s« wird hinzugefügt … abgeschlossen Schlüssel wird zu »%s@%s« hinzugefügt … Schlüssel wird zu »%s@%s« hinzugefügt … abgeschlossen Principal »%s@%s« wird hinzugefügt … Principal »%s@%s« wird hinzugefügt … abgeschlossen Realm »%s« wird hinzugefügt … Realm »%s« wird hinzugefügt … abgeschlossen Zusätzliche Vor-Authentifizierung ist erforderlichAlternative Authentifizierungsmethode ist erforderlichArgument ist außerhalb des gültigen Bereichs.Versuch, auf einen nicht existierenden Schlüsseltyp zuzugreifen.Base64-Kodierung oder -Dekodierung fehlgeschlagen. Daten beschädigt?Name-Werte für Client in Anfrage und Antwort sind unterschiedlich.Client nicht in Datenbank gefundenClient ist noch nicht gültig – bitte später erneut versuchenRealm-Werte für Client in Anfrage und Antwort sind unterschiedlich.Eintrag des Clients in der Datenbank ist abgelaufenSchlüssel des Clients ist in altem Master-Schlüssel verschüsseltAnmeldedaten des Clients wurden abgewiesenZeitabweichung ist zu großVerbindungsversuch ist fehlgeschlagen. Versuchen Sie es erneut oder überprüfen Sie die Verfügbarkeit.Schlüssel konnte nicht erzeugt werden (%d): %sAP-REQ konnte mit dem bereitgestellten Schlüssel nicht entschlüsselt werden. Dies weist üblicherweise auf einen internen Anwendungsfehler hin.Ticket konnte mit dem bereitgestellten Schlüssel nicht entschlüsselt werden. Dies weist üblicherweise auf einen internen Anwendungsfehler hin.Ticket %d konnte nicht zerstört werden: %sTickets konnten nicht aufgelistet werden: %sClient-Principal »%s« konnte nicht verarbeitet werden: %sServer-Principal »%s« konnte nicht verarbeitet werden: %sBibliotheksoptionen »%s« konnten nicht gelesen werden: %sBibliotheksoptionen konnten nicht gelesen werden: %sPasswort konnte nicht gelesen werdenVerschlüsselungstyp »%s« konnte nicht gesetzt werden: %sVerschlüsselungstypen konnten nicht gesetzt werden: %sAnmeldedaten des Servers wurden abgewiesenAktuelle SchlüsselversionDEAKTIVIERTErhaltener Schlüssel ist zu lang für den PKCS5-Bezeichner.Erhaltene Schlüssellänge ist inkorrekt für den PKCS5-Bezeichner.Erhaltenes Schlüsselmaterial war zu klein, um verwendbar zu sein.Fehler beim Hinzufügen des Schlüssels zum Principal.Fehler beim Hinzufügen des Pricipals zur Datenbank.Fehler beim Hinzufügen des Realms zur Datenbank.Fehler bei der Aufzählung der Schlüssel in der Datenbank.Fehler bei der Aufzählung der Principals in der Datenbank.Fehler bei der Aufzählung der Realms in der DatenbankFehler beim Finden des Principals.Fehler beim Entfernen des Schlüssels aus dem Principal.Fehler beim Entfernen des Principals aus der Datenbank.Fehler beim Entfernen des Realms aus der Datenbank.Fehler bei der Verifizierung der AP-Antwort.Verarbeitung nicht möglich. Verarbeitungsfunktion fehlt oder falsch konfiguriert.Feld ist zu lang für diese ImplementationE/A-Fehler für Shisa-Konfigurationsdatei.Allgemeiner Fehler (Beschreibung im e-text)Ungeeigneter Prüfsummentyp in der MeldungInkorrekter Schlüsseltyp in AP-Antwort verwendet.Inkorrekter Schlüsseltyp in AP-Anfrage verwendet.Inkorrekter Schlüsseltyp in TGS-Antwort verwendet.Inkorrekter Schlüsseltyp in Antwort von KDC verwendet.Inkorrekte MeldungsrichtungInkorrekte NetzwerkadresseInkorrekte Sequenznummer in MeldungInitialisierung gescheitert: %sIntegritätsüberprüfung des entschlüsselten Feldes ist fehlgeschlagenInterner Fehler in Low-Level-Verschlüsselungsroutinen.Ungültiges --endtime-Datum »%s«Ungültiges --renew-till-Datum »%s«Ungültiges --starttime-Datum »%s«Ungültiger PKCS5-Bezeichner.Ungültiges Argument im Aufruf übergeben. Falscher oder unbekannter Wert.Ungültige Angabe der Anzahl der Durchläufe im PKCS5-Bezeichner.Ungültiger Meldungstyp.Ungültiges Ticket im Aufruf übergeben.KDC-Regel weist den Übergangspfad zurückKDC kann die angeforderte Option nicht verarbeitenKDC verfügt über keine Unterstützung für den PrüfsummentypKDC verfügt über keine Unterstützung für den VerschlüsselungstypKDC verfügt über keine Unterstützung für den ParallelverarbeitungstypKDC verfügt nicht über Unterstützung für den ÜbergangstypKDC-Regel weist die Anfrage zurückSchlüsselDer Typ des zum Verschlüsseln des Tickets verwendeten Schlüssel entspricht nicht dem bereitgestellten Schlüssel. Dies weist üblicherweise auf einen internen Anwendungsfehler hin.Letzte TGT-Anfrage amLetzte initiale TGT-Anfrage amLetzte initiale Anfrage amLetzte Ticket-Erneuerung amLow-Level Verschlüsselungs-Primitive fehlgeschlagen. Dies weist üblicherweise auf ein falsches Passwort oder beschädigte Daten hin.FEHLTFehler bei der Speicherzuweisung in der shishi-Bibliothek.Meldung ist nicht in OrdnungMeldungs-Datenstrom wurde verändertPrincipal »%s@%s« wird geändert … Principal »%s@%s« wird geändert … abgeschlossen Mehr als ein Schlüssel entspricht den angegebenen Suchkriterien.Mehrere Pricipal-Einträge in der DatenbankGegenseitige Authentifizierung ist fehlgeschlagenFür den angegebenen Realm ist kein KDC bekannt.Kein TTY ist dem Prozess zugeordnet.Kein FehlerKeine Tickets entfernt. Passwort läuft ab amPasswort für »%s@%s«: Passwort ist abgelaufenPasswort: Regel weist den Übergangspfad zurückInformation zur Vor-Authentifizierung war ungültigPrincipal ist keinem passenden Schlüssel zugeordnet.Syntaxfehler im Principal-Namen.Protokollversionen stimmen nicht übereinBereitgestellter Puffer war zu klein.KRB-ERROR wird aus %s gelesen … KRB-ERROR wird aus %s gelesen … abgeschlossen. KRB-ERROR im %s-Format wird gelesen … Referenz auf einen ungültigen Schlüssel zum Verschlüsseln.Schlüssel wird aus »%s@%s« entfernt … Schlüssel wird aus »%s@%s« entfernt … abgeschlossen Principal »%s@%s« wird entfernt … Principal »%s@%s« wird entfernt … abgeschlossen Realm »%s« wird entfernt … Realm »%s« wird entfernt … abgeschlossen Ticket wird entfernt: Wert für Antwortschutz (nonce) ist für Anfrage und Antwort unterschiedlich.Anfrage ist eine AntwortAngefragte Nummer der Protokollversion wird nicht unterstütztAngeforderter Server und Ticket passen nicht zueinanderAngefragte Startzeit liegt hinter der EndzeitAntwort ist zu umfangreich für UDP, versuchen Sie es mit TCPServer nicht in Datenbank gefundenServer ist noch nicht gültig – bitte später erneut versuchenServer-Principal ist nur für user2user gültigServer antwortete auf die Anfrage mit einer Fehlermeldung.Eintrag des Servers in der Datenbank ist abgelaufenSchlüssel des Servers ist in altem Master-Schlüssel verschüsseltService-Schlüssel ist nicht verfügbarShisa konnte nicht initialisiert werden.Shisha-Datenbank konnte nicht geöffnet werden.Shisa-ErfolgShishi-Initialisierung fehlgeschlagen: %sAngegebene Version des Schlüssels ist nicht verfügbarAngegebener Principal existiert nicht.Angegebener Realm existiert nicht.Syntaxfehler im Shisa-Konfigurations-Token.TGT wurde widerrufenDie ASN.1-Struktur enthält das bezeichnete Element nicht.Die Shisa-Konfigurationsdatei existiert nicht.Der Client oder Server hat einen Null-SchlüsselAuf die gewünschte Datei konnte nicht zugegriffen werden. Überprüfen Sie die Zugriffsrechte.Das angegebene ASN.1-Element beinhaltet keinen Wert.Der Schlüssel ist zu groß, um verwendbar zu sein.Die aktuelle AP-Antwort gibt einen Schlüsseltyp an, auf den nicht zugegriffen werden kann.Der geheime Schlüssel verwendet einen inkompatiblen Verschlüsselungstyp.Der Systemaufruf bind() ist fehlgeschlagen. Dies weist üblicherweise auf unzureichende Zugriffsrechte hin.Der Systemaufruf close() ist fehlgeschlagen.Der Systemaufruf sendto() ist fehlgeschlagen.Der Systemaufruf socket() ist fehlgeschlagen. Dies weist üblicherweise darauf hin, dass Ihr System den Socket-Typ nicht unterstützt.Das Ticket ist nicht für uns.Ticket und Authentifizierer passen nicht zueinanderTicket ist abgelaufenTicket ist für Nachdatierung nicht geeignetTicket ist noch nicht gültigDer Ticket-Satz ist nicht initialisiert. Dies weist üblicherweise auf einen internen Anwendungsfehler hin.Tickets in »%s«: Versuch, einen bereits existierenden Principal hinzuzufügen.Es wurde versucht, einen bereits existierenden Realm zu hinzuzufügen.Es wurde versucht, einen nicht-leeren Realm zu entfernen.Versuchen Sie »%s --help« für mehr Informationen. Unbekannter KRB-ERROR-Fehlercode %d.Unbekannter Shisa-FehlerUnbekannter FehlerÜberprüfung ist auf einer der Seiten fehlgeschlagen.KRB-ERROR im %s-Format wird geschrieben … KRB-ERROR wird nach %s geschrieben … KRB-ERROR wird nach %s geschrieben … abgeschlossen. libshishi kann nicht initialisiert werdenTicket als »%s« für »%s« konnte nicht erhalten werdenaktiviertlibshishi: Info: %slibshishi: Info: %s libshishi: Warnung: %slibshishi: Warnung: %s shisa: %s zu wenige Argumentezu viele Argumenteshishi-1.0.3/po/POTFILES.in0000644000000000000000000000063214273600463012072 00000000000000# List of source files containing translatable strings for shishi. # Copyright (c) 2002-2022 Simon Josefsson db/err.c lib/aprep.c lib/apreq.c lib/authenticator.c lib/diskio.c lib/encapreppart.c lib/error.c lib/kdcrep.c lib/kdcreq.c lib/keys.c lib/krberror.c lib/principal.c lib/priv.c lib/safe.c lib/ticket.c lib/tkt.c lib/utils.c src/ccache2shishi.c src/keytab2shishi.c src/shisa.c src/shishi.c src/shishid.c shishi-1.0.3/po/shishi.pot0000644000000000000000000005544614273615266012354 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Simon Josefsson # This file is distributed under the same license as the shishi package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: shishi 1.0.3\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: db/err.c:33 msgid "Shisa success" msgstr "" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "" #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "" #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "" #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "" #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "" #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "" #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "" #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "" #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "" #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "" #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "" #: db/err.c:57 msgid "Error finding principal." msgstr "" #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "" #: db/err.c:61 msgid "Error adding realm to database." msgstr "" #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "" #: db/err.c:65 msgid "Error removing realm from database." msgstr "" #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "" #: db/err.c:69 msgid "Error adding principal to database." msgstr "" #: db/err.c:71 msgid "Error removing principal from database." msgstr "" #: db/err.c:73 msgid "Error adding key to principal." msgstr "" #: db/err.c:75 msgid "Error removing key from principal." msgstr "" #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "" #: db/err.c:100 msgid "Unknown Shisa error" msgstr "" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "" #: lib/aprep.c:149 #, c-format msgid "Writing AP-REP to %s...\n" msgstr "" #: lib/aprep.c:156 #, c-format msgid "Writing AP-REP in %s format...\n" msgstr "" #: lib/aprep.c:171 #, c-format msgid "Writing AP-REP to %s...done\n" msgstr "" #: lib/aprep.c:229 #, c-format msgid "Reading AP-REP from %s...\n" msgstr "" #: lib/aprep.c:236 #, c-format msgid "Reading AP-REP in %s format...\n" msgstr "" #: lib/aprep.c:251 #, c-format msgid "Reading AP-REP from %s...done\n" msgstr "" #: lib/apreq.c:211 #, c-format msgid "Writing AP-REQ to %s...\n" msgstr "" #: lib/apreq.c:218 #, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "" #: lib/apreq.c:233 #, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "" #: lib/apreq.c:291 #, c-format msgid "Reading AP-REQ from %s...\n" msgstr "" #: lib/apreq.c:298 #, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "" #: lib/apreq.c:313 #, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "" #: lib/authenticator.c:197 #, c-format msgid "Writing Authenticator to %s...\n" msgstr "" #: lib/authenticator.c:204 #, c-format msgid "Writing Authenticator in %s format...\n" msgstr "" #: lib/authenticator.c:219 #, c-format msgid "Writing Authenticator to %s...done\n" msgstr "" #: lib/authenticator.c:280 #, c-format msgid "Reading Authenticator from %s...\n" msgstr "" #: lib/authenticator.c:287 #, c-format msgid "Reading Authenticator in %s format...\n" msgstr "" #: lib/authenticator.c:302 #, c-format msgid "Reading Authenticator from %s...done\n" msgstr "" #: lib/diskio.c:1078 #, c-format msgid "Writing KEY to %s...\n" msgstr "" #: lib/diskio.c:1093 #, c-format msgid "Writing KEY to %s...done\n" msgstr "" #: lib/encapreppart.c:155 #, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "" #: lib/encapreppart.c:162 #, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "" #: lib/encapreppart.c:177 #, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "" #: lib/encapreppart.c:237 #, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "" #: lib/encapreppart.c:244 #, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "" #: lib/encapreppart.c:259 #, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "" #: lib/error.c:33 msgid "Shishi success." msgstr "" #: lib/error.c:35 msgid "Error in ASN.1 function. (corrupt data?)" msgstr "" #: lib/error.c:37 msgid "Could not open file." msgstr "" #: lib/error.c:39 msgid "File input/output error." msgstr "" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "" #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "" #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "" #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "" #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "" #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "" #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "" #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "" #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "" #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "" #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "" #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "" #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "" #: lib/error.c:80 msgid "Error receiving data from server." msgstr "" #: lib/error.c:82 msgid "The system call close() failed." msgstr "" #: lib/error.c:84 msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "" #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "" #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "" #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "" #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "" #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "" #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "" #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "" #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "" #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "" #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "" #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "" #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "" #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "" #: lib/error.c:127 msgid "Principal name syntax error." msgstr "" #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "" #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "" #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "" #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "" #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "" #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" #: lib/error.c:146 msgid "Failed to parse keytab file." msgstr "" #: lib/error.c:148 msgid "Failed to parse credential cache file." msgstr "" #: lib/error.c:165 msgid "Unknown error" msgstr "" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "" #: lib/kdcrep.c:156 #, c-format msgid "Writing KDC-REP to %s...\n" msgstr "" #: lib/kdcrep.c:163 #, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "" #: lib/kdcrep.c:178 #, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "" #: lib/kdcrep.c:236 #, c-format msgid "Reading KDC-REP from %s...\n" msgstr "" #: lib/kdcrep.c:243 #, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "" #: lib/kdcrep.c:258 #, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "" #: lib/kdcreq.c:225 #, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "" #: lib/kdcreq.c:232 #, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "" #: lib/kdcreq.c:247 #, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "" #: lib/kdcreq.c:305 #, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "" #: lib/kdcreq.c:312 #, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "" #: lib/kdcreq.c:327 #, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "" #: lib/keys.c:216 #, c-format msgid "Writing KEYS to %s...\n" msgstr "" #: lib/keys.c:231 #, c-format msgid "Writing KEYS to %s...done\n" msgstr "" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "" #: lib/principal.c:429 #, c-format msgid "Could not set principal name: %s\n" msgstr "" #: lib/priv.c:376 #, c-format msgid "Writing PRIV to %s...\n" msgstr "" #: lib/priv.c:383 #, c-format msgid "Writing PRIV in %s format...\n" msgstr "" #: lib/priv.c:398 #, c-format msgid "Writing PRIV to %s...done\n" msgstr "" #: lib/priv.c:456 #, c-format msgid "Reading PRIV from %s...\n" msgstr "" #: lib/priv.c:463 #, c-format msgid "Reading PRIV in %s format...\n" msgstr "" #: lib/priv.c:478 #, c-format msgid "Reading PRIV from %s...done\n" msgstr "" #: lib/safe.c:286 #, c-format msgid "Writing SAFE to %s...\n" msgstr "" #: lib/safe.c:293 #, c-format msgid "Writing SAFE in %s format...\n" msgstr "" #: lib/safe.c:308 #, c-format msgid "Writing SAFE to %s...done\n" msgstr "" #: lib/safe.c:366 #, c-format msgid "Reading SAFE from %s...\n" msgstr "" #: lib/safe.c:373 #, c-format msgid "Reading SAFE in %s format...\n" msgstr "" #: lib/safe.c:388 #, c-format msgid "Reading SAFE from %s...done\n" msgstr "" #: lib/ticket.c:197 #, c-format msgid "Could not set sname: %s\n" msgstr "" #: lib/tkt.c:1339 #, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "" #: src/ccache2shishi.c:136 #, c-format msgid "No tickets written.\n" msgstr "" #: src/ccache2shishi.c:138 #, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "" msgstr[1] "" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" #: src/shisa.c:144 msgid "Account is" msgstr "" #: src/shisa.c:145 msgid "DISABLED" msgstr "" #: src/shisa.c:145 msgid "enabled" msgstr "" #: src/shisa.c:146 msgid "Current key version" msgstr "" #: src/shisa.c:148 msgid "Account not valid before" msgstr "" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "" #: src/shisa.c:152 msgid "Last initial request at" msgstr "" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "" #: src/shisa.c:158 msgid "Password expire on" msgstr "" #: src/shisa.c:160 msgid "Account expire on" msgstr "" #: src/shisa.c:173 msgid "Key" msgstr "" #: src/shisa.c:175 msgid "\tEtype" msgstr "" #: src/shisa.c:178 msgid "\tPriority" msgstr "" #: src/shisa.c:182 msgid "\tSalt" msgstr "" #: src/shisa.c:184 msgid "\tS2K params" msgstr "" #: src/shisa.c:187 msgid "\tPassword" msgstr "" #: src/shisa.c:190 msgid "\tKey is" msgstr "" #: src/shisa.c:190 msgid "MISSING" msgstr "" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "" #: src/shisa.c:376 msgid "Password: " msgstr "" #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "" msgstr[1] "" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "" shishi-1.0.3/po/en@quot.header0000644000000000000000000000226314273615065013110 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # shishi-1.0.3/po/LINGUAS0000644000000000000000000000003314273615062011336 00000000000000de fi fr pl sr sv vi zh_CN shishi-1.0.3/po/fr.po0000644000000000000000000010565714273615266011310 00000000000000# French translations for shishi package. # Copyright (C) 2006 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # # Daniel Dehennin , 2006. # Stéphane Aulery , 2015. # # Réencodage ISO-8859-1 => UTF-8 et typos, S. Aulery, 2015. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2015-12-23 22:59+0100\n" "Last-Translator: Stéphane Aulery \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa a réussi" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Shisa n'a pas pu être initialisé." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Le fichier de configuration de Shisa n'existe pas." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "Erreur d'entrée/sortie sur le fichier de configuration de Shisa." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Erreur de syntaxe dans le paramètre de configuration de Shisa." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "La base de données Shisa n'a pas pu être ouverte." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Erreur lors de l'énumération des domaines dans la base de données." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Erreur lors de l'énumération des identifiants dans la base de données." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Erreur lors de l'énumération des clefs dans la base de données." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Le domaine fourni n'existe pas." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "L'identifiant fourni n'existe pas." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Le principal n'est associé avec aucune clef correspondante." #: db/err.c:57 msgid "Error finding principal." msgstr "Erreur pour trouver l'identifiant." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Essai d'ajout d'un domaine déjà existant." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Erreur lors de l'ajout du domaine dans la base de données." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Essai de suppression de domaine non vide." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Erreur lors de la suppression du domaine de la base de données." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Essai d'ajout d'un identifiant déjà existant." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Erreur lors de l'ajout de l'identifiant dans la base de données." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Erreur lors de la suppression de l'identifiant de la base de données." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Erreur lors de l'ajout de la clef à l'identifiant." #: db/err.c:75 msgid "Error removing key from principal." msgstr "Erreur lors de la suppression de la clef de l'identifiant." #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Plus d'une clef correspondent aux critères de recherche." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Erreur de Shisa inconnue" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi a réussi" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Erreur dans la fonction ASN.1 (donnée corrompue ?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Ne peut pas ouvrir le fichier" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Erreur d'entrée/sortie sur le fichier" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Erreur d'allocation mémoire dans la bibliothèque shishi." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "L'encodage ou le décodage en base64 a échoué. Donnée corrompue ?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Le domaine du client diffère entre la requête et la réponse." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "La valeur du nom du client diffère entre la requête et la réponse." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "" "La valeur de protection contre le rejeu (nonce) diffère entre la requête et " "la réponse." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "Utilisation d’une clef de type incorrect dans le réponse TGS." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Utilisation d’une clef de type incorrect dans le réponse de KDC." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "Utilisation d’une clef de type incorrect dans le réponse AP." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Échec de la vérification de la réponse AP." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "Utilisation d’une clef de type incorrect dans le requête AP." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Le buffer fournit est trop petit." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Le matériel de clef dérivée est trop petit pour être applicable." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Le clef est trop grande pour être utilisable." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Échec de la primitive cryptographique de bas-niveau. Cela révèle " "généralement un mauvais mot de passe ou une donnée corrompue." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Erreur interne dans les routines cryptographiques de bas-niveau." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "L'appel système socket() a échoué. Cela révèle généralement le non support " "du type de socket par votre système." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "L'appel système bind() a échoué. Cela révèle généralement des droits " "insuffisants." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "L'appel système sendto() a échoué." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Erreur lors de la réception de données du serveur" #: lib/error.c:82 msgid "The system call close() failed." msgstr "L'appel système close() a échoué." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "Délais d'attente de la demande dépassé lors de la communication avec le KDC. " "Cela révèle généralement un problème de réseau ou d'adresse de KDC." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Aucun KDC connu pour le domaine indiqué." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Aucune console assignée au processus." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Le serveur a répondu au client avec un message d'erreur." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "Impossible d’utiliser le handle. Handle manquant ou mal configuré." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "" "Le cache de ticket n'est pas initialisé. Cela révèle généralement une erreur " "interne de l'application." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Le type de clef utilisée pour chiffrer le ticket ne correspond pas à la clef " "fournie. Cela révèle généralement une erreur interne de l'application." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Référence à une clef de chiffrement invalide." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "Ne peut pas déchiffrer AP-REQ avec la clef fournie. Cela révèle généralement " "une erreur interne de l'application." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Ne peut déchiffrer le Ticket avec la clef fournie. Cela révèle généralement " "une erreur interne de l'application." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "Ticket invalide passé à l’appelant." #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "L’argument est en dehors de la plage valide." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "La structure ASN.1 ne contient pas l’élément indiqué." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Essai d’accès à un type de clef inexistant." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Échec de la vérification par l’autre partie." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Descripteur PKCS5 invalide." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "" "Revendication invalide du nombre d'itérations dans un descripteur PKCS5." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Longueur de clef dérivée incorrecte pour un descripteur PKCS5." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "La clef dérivée est trop longue pour un descripteur PKCS5." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "Erreur de syntaxe du nom principal." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "Argument invalide passé à l’appelant. Valeur fausse ou inconnue." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "L’élément ASN.1 indiqué n’a pas de valeur." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "" "La connexion initiée a échoué. Essayez encore ou vérifiez la disponibilité." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "La clef privée utilise un type de chiffrement incompatible." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Le fichier désiré ne peut pas être lu. Vérifiez les permissions." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "Cette réponse AP spécifie un type de clef non permis." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Une demande pour cette journée a échoué. Cela est généralement interne, mais " "une heure valide est impérative." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Échec de lecture du fichier keytab" #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Échec de lecture du ficher de cache des mots de passe" #: lib/error.c:165 msgid "Unknown error" msgstr "Erreur inconnue" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Pas d'erreur" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: info: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: info: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: attention: %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: attention: %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "L'entrée du client dans la base de donnée a expirée" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "L'entrée du serveur dans la base de donnée a expirée" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "La version de protocole demandée n'est pas supportée" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Clef du client chiffrée avec l'ancienne clef maître" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Clef du serveur chiffrée avec l'ancienne clef maître" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Client non trouvé dans la base de données" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Serveur non trouvé dans la base de données" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "Multiple entrées de principal dans la base de données" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Le client ou le serveur a une clef nulle" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Le ticket n'est pas éligible pour le post-datage" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "La date de départ demandée est postérieure à la date de fin" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "La politique du KDC rejete la requête" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "Le KDC ne peut pas adapter l'option demandée" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "Le KDC ne supporte pas le type de chiffrement" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "Le KDC ne supporte pas le type de somme de contrôle" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "Le KDC ne supporte pas le type padata" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC ne supporte pas le type transité" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "L'information d'authentification du client a été révoquée" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "L'information d'authentification pour le serveur a été révoquée" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "Le TGT a été révoqué" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Client encore invalide - essayez plus tard" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Serveur encore invalide - essayez plus tard" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Le mot de passe a expiré" #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "L'information de pré-authentification était invalide" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Pre-authentification supplémentaire requise" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Le serveur et le ticket demandés ne correspondent pas" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Identificant du serveur valide uniquement d'utilisateur à utilisateur" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "La politique du KDC rejette les chemins transités" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "Un service n'est pas disponible" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "La vérification de l'intégrité d'un champ déchiffré a échouée" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Le ticket a expiré" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Le ticket n'est pas encore valide" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "La requête est un rejeu" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Le ticket n'est pas pour nous" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Le ticket et l'authentifiant ne correspondent pas" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Le décalage d'horloge est trop grand" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Adresse réseau incorrecte" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "La version de protocole ne correspond pas" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "Type de message invalide" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Flux du message modifié" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Message hors service" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "La version de clef spécifiée est indisponible" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Le service de clef n'est pas disponible" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "L'authentification mutuelle a échoué" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Direction de message incorrecte" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Méthode d'authentification alternative requise" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Numéro de séquence incorrect dans le message" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Type de somme de contrôle inapproprié dans le message" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "La politique rejette les chemins transités" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Réponse trop grande pour UDP, réessayez avec TCP" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Erreur générique (description dans e-text)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Le champ est trop long pour cette implémentation" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(utilisateur-à-utilisateur)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Code d'erreur KRB-ERROR inconnu %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Ne peut lire l'identifiant du client \"%s\" : %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "Écriture de KRB-ERROR sur %s...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "Écriture de KRB-ERROR dans le format %s...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "Écriture de KRB-ERROR sur %s... ok\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Lecture de KRB-ERROR depuis %s...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Lecture de KRB-ERROR dans le format %s...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Lecture de KRB-ERROR depuis %s... ok\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Ne peut lister les tickets : %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Dernière requête initiale à" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Essayez « %s --help » pour plus d'informations.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "Trop d'arguments" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Les arguments obligatoires au options longues sont aussi obligatoires pour\n" "les options courtes.\n" "\n" "Rapportez les anomalies à <%s>.\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "impossible d’initialiser libshishi" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Aucun ticket supprimé.\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "%d ticket supprimé.\n" msgstr[1] "%d tickets supprimés.\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" msgstr[1] "" #: src/shisa.c:144 msgid "Account is" msgstr "Le compte est" #: src/shisa.c:145 msgid "DISABLED" msgstr "DÉSACTIVÉ" #: src/shisa.c:145 msgid "enabled" msgstr "activé" #: src/shisa.c:146 msgid "Current key version" msgstr "Version actuelle de clef" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Compte invalide avant" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Dernière requête initiale TGT à" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Dernière requête initiale à" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Dernière requête TGT à" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Dernier renouvellement de ticket à" #: src/shisa.c:158 msgid "Password expire on" msgstr "Le mot de passe expire à" #: src/shisa.c:160 msgid "Account expire on" msgstr "Le compte expire à" #: src/shisa.c:173 msgid "Key" msgstr "Clef" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tEtype" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tPriorité" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tSel" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tParamètres S2K" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tMot de passe" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tLa clef est" #: src/shisa.c:190 msgid "MISSING" msgstr "MANQUANTE" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Ajout du domaine '%s'...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Ajout de l'identifiant '%s@%s'...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Ajout du domaine '%s'...ok\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Ajout de l'identifiant '%s@%s'...ok\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Suppression du domaine '%s'...\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Suppression de l'identifiant '%s@%s'...\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Suppression du domaine '%s'...ok\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Suppression de l'identifiant '%s@%s'...ok\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Mot de passe pour '%s@%s' : " #: src/shisa.c:376 msgid "Password: " msgstr "Mot de passe : " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Ne peut lire le mot de passe" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Ne peut créer la clef (%d) :\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Les arguments obligatoires pour les options longues le sont aussi pour les\n" "options courtes.\n" "\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "L'initialisation a échoué :\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Ne peut lire les options de bibliothèque '%s' :\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "L'initialisation de Shishi a échoué :\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Ne peut définir le type de chiffrement '%s' :\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "Trop peu d'arguments" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Ajout du domaine par défaut '%s'...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Modification de l'identifiant '%s@%s'...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Modification de l'identifiant '%s@%s'...ok\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Ajout de la clef pour '%s@%s'...\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Ajout de la clef pour '%s@%s'...ok\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Suppression de la clef pour '%s@%s'...\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Suppression de la clef pour '%s@%s'...ok\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Ne peut définir le type de chiffrement : %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Ne peut lire l'identifiant du client \"%s\" : %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Ne peut lire l'identifiant du serveur \"%s\" : %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Ne peut lire les options de bibliothèques : %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "Date pour --starttime invalide '%s'" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "Date pour --endtime invalide '%s'" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "Date pour --renew-till invalide '%s'" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Tickets dans '%s' :\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Ne peut lister les tickets : %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Suppression du ticket :\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Ne peut détruire le ticket %d :\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Aucun ticket supprimé.\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "%d ticket supprimé.\n" msgstr[1] "%d tickets supprimés.\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "Ne peut obtenir de ticket en tant que '%s' pour '%s'." shishi-1.0.3/po/pl.gmo0000644000000000000000000005007414273615266011450 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,õ…,{. ‚.Ž. –.¡.°.X¹.ã/Bö/90B0nQ0À0 Õ0 â0í0'1+1+K1w1+—1Ã1(à1+ 2-52/c21“2EÅ2G 3%S3>y3K¸3#44(44]4’4b²4)5v?5v¶5(-6(V6:6:º63õ6.)7 X75y72¯76â78 186=8Dt8B¹8*ü8/'9/W9)‡9.±9+à9 :(,:-U:-ƒ:-±:Eß:'%;4M;"‚;2¥;1Ø;0 <2;<4n<£<Ã<)Û<$=<*=Bg="ª=%Í=$ó=>Q3>?…> Å>'æ>+?':?/b?&’?&¹?*à?' @3@}9@·@"Î@ñ@Aq+A A2¨AÛA"÷A#B/>BCnB&²B,ÙB%C!,C NC[C {C‰CžC®C'·C:ßC:D UDvD"–D¹D+ÙD(E..E]E){E¥E*ÄEïE' F3F\EF¢F0¼F*íF9G6RG%‰G>¯G,îG6H#RH4vH«H#ÆH'êH I+I'KIsI’I0±IâI0ùI'*J RJBsJ-¶J.äJ6K6JK`K0âK1LvEL¼L+ÓL ÿL& M4MQLMžM0®M/ßM)N%9N"_N‚N˜N3¨N'ÜNO+$O!PO1rO ¤O¯OÃOØOíO PP%PŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2013-04-04 17:02+0200 Last-Translator: Jakub Bogusz Language-Team: Polish Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Etype Klucz jest HasÅ‚o Priorytet Parametry S2K Zarodek Argumenty obowiÄ…zkowe dla opcji dÅ‚ugich sÄ… obowiÄ…zkowe także dla opcji krótkich. Argumenty obowiÄ…zkowe dla opcji dÅ‚ugich sÄ… obowiÄ…zkowe także dla opcji krótkich. Prosimy zgÅ‚aszać błędy na adres <%s>. Błędy w tÅ‚umaczeniu prosimy zgÅ‚aszać na adres . UsuniÄ™to %d bilet. UsuniÄ™to %d bilety. UsuniÄ™to %d biletów. (pkinit)(user-to-user)Żądanie czasu bieżącego nie powiodÅ‚o siÄ™. Zwykle jest to wewnÄ™trzne, ale poprawny czas jest niezbÄ™dny.UsÅ‚uga niedostÄ™pnaKonto wygasaKonto jestKonto nieważne przedDodawanie domyÅ›lnej dziedziny `%s'... Dodawanie klucza do `%s@%s'... Dodawanie klucza do `%s@%s'... zakoÅ„czone Dodawanie zarzÄ…dcy `%s@%s'... Dodawanie zarzÄ…dcy `%s@%s'... zakoÅ„czone Dodawanie dziedziny `%s'... Dodawanie dziedziny `%s'... zakoÅ„czone Wymagane dodatkowe wczesne uwierzytelnienieWymagana alternatywna metoda uwierzytelnieniaArgument znajduje siÄ™ poza poprawnym zakresem.Próba dostÄ™pu do nie istniejÄ…cego typu klucza.Kodowanie lub dekodowanie base64 nie powiodÅ‚o siÄ™. Uszkodzone dane?Wartość nazwy klienta różni siÄ™ miÄ™dzy żądaniem a odpowiedziÄ….Nie znaleziono klienta w bazie danychKlient jeszcze nie jest ważny - proszÄ™ spróbować późniejWartość dziedziny klienta różni siÄ™ miÄ™dzy żądaniem a odpowiedziÄ….Wpis klienta w bazie danych wygasÅ‚Klucz klienta zaszyfrowany w starym kluczu głównymDane uwierzytelniejÄ…ce klientów zostaÅ‚y anulowaneZbyt duże przesuniÄ™cie zegaraPróba połączenia nie powiodÅ‚a siÄ™. ProszÄ™ spróbować ponownie lub sprawdzić dostÄ™pność.Nie udaÅ‚o siÄ™ utworzyć klucza (%d): %sNie udaÅ‚o siÄ™ odszyfrować AP-REQ przy użyciu dostarczonego klucza. Zwykle oznacza to błąd wewnÄ™trzny aplikacji.Nie udaÅ‚o siÄ™ odszyfrować biletu przy użyciu dostarczonego klucza. Zwykle oznacza to błąd wewnÄ™trzny aplikacji.Nie udaÅ‚o siÄ™ zniszczyć biletu %d: %sNie udaÅ‚o siÄ™ wylistować biletów: %sNie udaÅ‚o siÄ™ przeanalizować zarzÄ…dcy klienta "%s": %sNie udaÅ‚o siÄ™ przeanalizować zarzÄ…dcy serwera "%s": %sNie udaÅ‚o siÄ™ odczytać opcji biblioteki `%s': %sNie udaÅ‚o siÄ™ odczytać opcji biblioteki: %sNie udaÅ‚o siÄ™ odczytać hasÅ‚aNie udaÅ‚o siÄ™ ustawić rodzaju szyfrowania `%s': %sNie udaÅ‚o siÄ™ ustawić rodzajów szyfrowania: %sDane uwierzytelniajÄ…ce dla serwera zostaÅ‚y anulowaneBieżąca wersja kluczaWYÅÄ„CZONEKlucz pochodny jest zbyt dÅ‚ugi dla deskryptora PKCS5.DÅ‚ugość klucza pochodnego jest niepoprawna dla deskryptora PKCS5.Dane klucza pochodnego sÄ… zbyt krótkie, żeby daÅ‚y siÄ™ użyć.Błąd przy dodawaniu klucza do zarzÄ…dcy.Błąd przy dodawaniu zarzÄ…dcy do bazy danych.Błąd przy dodawaniu dziedziny do bazy danych.Błąd w numeracji kluczy w bazie danych.Błąd w numeracji zarzÄ…dców w bazie danych.Błąd w numeracji dziedzin w bazie danych.Błąd przy szukaniu zarzÄ…dcy.Błąd przy usuwaniu klucza z zarzÄ…dcy.Błąd przy usuwaniu zarzÄ…dcy z bazy danych.Błąd przy usuwaniu dziedziny z bazy danych.Weryfikacja odpowiedzi AP nie powiodÅ‚a siÄ™.Nie udaÅ‚o siÄ™ użyć uchwytu. Brak uchwytu lub źle skonfigurowany.Pole zbyt dÅ‚ugie dla tej implementacjiBłąd we/wy pliku dla pliku konfiguracyjnego Shisy.Błąd ogólny (opis w e-tekÅ›cie)NiewÅ‚aÅ›ciwy rodzaj sumy kontrolnej w komunikacieNieprawidÅ‚owy typ klucza użyty w odpowiedzi AP.NieprawidÅ‚owy typ klucza użyty w żądaniu AP.NieprawidÅ‚owy typ klucza użyty w odpowiedzi TGS.NieprawidÅ‚owy typ klucza użyty w odpowiedzi z KDC.Niepoprawny kierunek komunikatuNiepoprawny adres sieciNiepoprawny numer sekwencji w komunikacieInicjalizacja nie powiodÅ‚a siÄ™: %sKontrola poprawnoÅ›ci odszyfrowanego pola nie powiodÅ‚a siÄ™Błąd wewnÄ™trzny w niskopoziomowych funkcjach kryptograficznych.NieprawidÅ‚owa data --endtime `%s'NieprawidÅ‚owa data --renew-till `%s'NieprawidÅ‚owa data --starttime `%s'Błędny deskryptor PKCS5.W wywoÅ‚aniu przekazano błędny argument - niewÅ‚aÅ›ciwa lub nieznana wartość.Błędne zawÅ‚aszczenie licznika iteracji w deskryptorze PKCS5.NieprawidÅ‚owy rodzaj komunikatuW wywoÅ‚aniu przekazano błędny bilet.Polityka KDC odrzuca Å›cieżkÄ™ tranzytowÄ…KDC nie zgadza siÄ™ na żądanÄ… opcjÄ™KDC nie obsÅ‚uguje tego rodzaju sumy kontrolnejKDC nie obsÅ‚uguje tego rodzaju szyfruKDC nie obsÅ‚uguje tego rodzaju padataKDC nie obsÅ‚uguje tego rodzaju transmisjiŻądanie odrzucone przez politykÄ™ KDCKluczTyp klucza użyty do zaszyfrowania biletu nie pasuje do dostarczonego klucza. Zwykle oznacza to błąd wewnÄ™trzny aplikacji.Ostatnie żądanie TGTOstatnie poczÄ…tkowe żądanie TGTOstatnie poczÄ…tkowe żądanieOstatnie odnowienie biletuNiskopoziomowa operacja kryptograficzna nie powiodÅ‚a siÄ™. Zwykle oznacza to zÅ‚e hasÅ‚o lub uszkodzenie danych.BRAKUJÄ„CYBłąd przydzielania pamiÄ™ci w bibliotece shishi.Komunikat spoza kolejnoÅ›ciZmodyfikowany strumieÅ„ komunikatuModyfikowanie zarzÄ…dcy `%s@%s'... Modyfikowanie zarzÄ…dcy `%s@%s'... zakoÅ„czone WiÄ™cej niż jeden klucz pasuje do podanego kryterium wyszukiwania.Wiele wpisów zarzÄ…dcy w bazie danychWzajemne uwierzytelnienie nie powiodÅ‚o siÄ™Nie ma znanego KDC dla tej dziedziny.Brak TTY przypisanego do procesu.Brak błęduNie usuniÄ™to żadnego biletu. HasÅ‚o wygasaHasÅ‚o dla `%s@%s': HasÅ‚o wygasÅ‚oHasÅ‚o: Polityka odrzuca Å›cieżkÄ™ tranzytowÄ…Informacje wczesnego uwierzytelnienia byÅ‚y nieprawidÅ‚oweZarzÄ…dca nie jest zwiÄ…zany z żadnym pasujÄ…cym kluczem.Błąd skÅ‚adni nazwy zarzÄ…dcy.Niezgodność wersji protokoÅ‚uDostarczony bufor byÅ‚ zbyt maÅ‚y.Odczytywanie KRB-ERROR z %s... Odczytywanie KRB-ERROR z %s... zakoÅ„czone Odczytywanie KRB-ERROR w formacie %s... OdwoÅ‚anie do błędnego klucza szyfrujÄ…cego.Usuwanie klucza z `%s@%s'... Usuwanie klucza z `%s@%s'... zakoÅ„czone Usuwanie zarzÄ…dcy `%s@%s'... Usuwanie zarzÄ…dcy `%s@%s'... zakoÅ„czone Usuwanie dziedziny `%s'... Usuwanie dziedziny `%s'... zakoÅ„czone Usuwanie biletu: Wartość zabezpieczenia odtworzenia (nonce) różni siÄ™ miÄ™dzy żądaniem a odpowiedziÄ….Żądanie jest powtórkąŻądana wersja protokoÅ‚u nie jest obsÅ‚ugiwanaŻądany serwer i bilet nie zgadzajÄ… si꯹dany czas poczÄ…tkowy jest późniejszy niż koÅ„cowyOdpowiedź zbyt duża dla UDP, proszÄ™ spróbować TCPNie znaleziono serwera w bazie danychSerwer jeszcze nie jest ważny - proszÄ™ spróbować późniejZarzÄ…dca serwera ważny tylko dla user2userSerwer odpowiedziaÅ‚ na żądanie komunikatem błędu.Wpis serwera w bazie danych wygasÅ‚Klucz serwera zaszyfrowany w starym kluczu głównymKlucz usÅ‚ugi niedostÄ™pnyNie udaÅ‚o siÄ™ zainicjować Shisy.Nie można otworzyć bazy danych Shisy.Sukces ShisyInicjalizacja Shishi nie powiodÅ‚a siÄ™: %sPodana wersja klucza nie jest dostÄ™pnaPodany zarzÄ…dca nie istnieje.Podana dziedzina nie istnieje.Błąd skÅ‚adni w tokenie konfiguracyjnym Shisy.TGT zostaÅ‚o anulowaneStruktura ASN.1 nie zawiera wskazanego elementu.Plik konfiguracyjny Shisy nie istnieje.Klient lub serwer ma pusty kluczBrak dostÄ™pu do żądanego pliku. ProszÄ™ sprawdzić uprawnienia.Wskazany element ASN.1 nie zawiera wartoÅ›ci.Klucz jest zbyt duży, żeby daÅ‚ siÄ™ użyć.Obecna odpowiedź AP okreÅ›la niedozwolony typ klucza.Klucz prowatny używa niezgodnego rodzaju szyfrowania.WywoÅ‚anie systemowe bind() nie powiodÅ‚o siÄ™. Zwykle oznacza to niewystarczajÄ…ce uprawnienia.WywoÅ‚anie systemowe close() nie powiodÅ‚o siÄ™.WywoÅ‚anie systemowe sendto() nie powiodÅ‚o siÄ™.WywoÅ‚anie systemowe socket() nie powiodÅ‚o siÄ™. Zwykle oznacza to, że system nie obsÅ‚uguje danego rodzaju gniazdo.Bilet nie jest dla nasBilet i uwierzytelnienie nie zgadzajÄ… siÄ™Bilet wygasÅ‚Bilet nie nadaje siÄ™ do postdatowaniaBilet jeszcze nieważnyZbiór biletów nie zainicjowany. Zwykle oznacza to błąd wewnÄ™trzny aplikacji.Bilety w `%s': Próbowano dodać już istniejÄ…cego zarzÄ…dcÄ™.Próbowano dodać już istniejÄ…cÄ… dziedzinÄ™.Próbowano usunąć niepustÄ… dziedzinÄ™.`%s --help' poda wiÄ™cej informacji. Nieznany kod błędu KRB-ERROR %d.Nieznany błąd ShisyNieznany błądWeryfikacja nie powiodÅ‚a siÄ™ po dowolnej stronie.Zapisywanie KRB-ERROR w formacie %s... Zapisywanie KRB-ERROR do %s... Zapisywanie KRB-ERROR do %s... zakoÅ„czone nie można zainicjować libshishinie udaÅ‚o siÄ™ pobrać biletu jako `%s' dla `%s'włączonelibshishi: info: %slibshishi: info: %s libshishi: uwaga: %slibshishi: uwaga: %s shisa: %s zbyt maÅ‚o argumentówzbyt wiele argumentówshishi-1.0.3/po/sv.gmo0000644000000000000000000004665014273615266011472 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,Å…,K. Q. ^. i.t.„.WŠ.râ./U/…/Ž/u«/ !0 B0 P0Z0(s0(œ0-Å0&ó0+1 F1%g101&¾1+å1229D2?~2"¾2(á2A 3'L3/t3 ¤3Å3RÞ3 14cR4d¶4$5@53_53“5/Ç5&÷56196*k6&–6½6 Ó6;ß697AU7*—7+Â7(î7)8+A8*m8˜8.´8/ã8,9'@9Ph9.¹94è9#:+A:&m:$”:&¹:,à: ;);$=;b;5‚;.¸;&ç;)<(8<a<A{<<½<ú< ="+=-N=2|=&¯="Ö=%ù=><>{C>¿>"Ø>û>?x8?±?(¸?á?ú?$@);@0e@"–@#¹@"Ý@!A "A,AGAYAvA ŽAšA-¹A:çA"B9BWBsB B°B(ÏB%øB*C"IC'lC”C!±CÓCGæC.D+DD'pD)˜D*ÂD#íD(ED:E5E&µE.ÜE F+F&KFrF"F/¤F!ÔFöF,GBG;WG.“G1ÂG=ôG12H.dH5“H=ÉH^I'fI(ŽIt·I,J&DJkJ+€J¬JVÆJK=4K9rK*¬K/×KLL /L+:LfL†L ¢LÃL4ßL MM2MGM^M vMM“MŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2018-07-24 23:31+0800 Last-Translator: Sebastian Rasmussen Language-Team: Swedish Language: sv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Poedit 2.0.9 Etyp Nyckeln är Lösenord Prioritet S2K-parametrar Salt Nödvändiga argument till lÃ¥nga flaggor är ocksÃ¥ nödvändiga för korta flaggor. Nödvändiga argument till lÃ¥nga flaggor är ocksÃ¥ nödvändiga för korta flaggor. Rapportera fel till <%s>. %d biljett borttagen. %d biljetter borttagna. (pkinit)(användare-till-användare)En begäran om aktuell tid har misslyckats. Detta är vanligtvis internt, men en giltig tid är nödvändig för oss.En service är inte tillgängligKonto gÃ¥r utKonto ärKonto inte giltigt innanLägger till standarddomän â€%sâ€â€¦ Lägger till nyckel till â€%s@%sâ€â€¦ Lägger till nyckel till â€%s@%sâ€â€¦klart Lägger till huvudnamn â€%s@%sâ€â€¦ Lägger till huvudnamn â€%s@%sâ€â€¦klart Lägger till domän â€%sâ€â€¦ Lägger till domän â€%sâ€â€¦klart Ytterligare förautentiseringsinformation krävsAlternativ autentiseringsmetod begärdArgument ligger utanför giltigt intervall.Försök att komma Ã¥t icke-existerande nyckeltyp.Base64-kodning/-avkodning misslyckades. Korrumperad data?Värde för klientnamn skiljer sig mellan förfrÃ¥gan och svar.Klient kan inte hittas i databasenKlient inte giltig än - försök senareVärde för klientdomän skiljer sig mellan förfrÃ¥gan och svar.Klientens post i databasen har gÃ¥tt utKlientens nyckel krypterad i gammal huvudnyckelKlientuppgifter har Ã¥terkallatsKlockavvikelse för storAnslutningsförsök misslyckades. Försök igen eller kontrollera tillgänglighet.Kunde inte skapa nyckel (%d): %sKunde inte dekryptera AP-REQ med angiven nyckel. Detta indikerar vanligtvis ett internt programfel.Kunde inte dekryptera biljett med angiven nyckel. Detta indikerar vanligtvis ett internt programfel.Kunde inte förstöra biljett %d: %sKunde inte lista biljetter: %sKunde inte tolka huvudnamn för klient â€%sâ€: %sKunde inte tolka huvudnamn för server â€%sâ€: %sKunde inte läsa biblioteksflaggor â€%sâ€: %sKunde inte läsa biblioteksflaggor: %sKunde inte läsa lösenordKunde inte ställa in krypteringstyp â€%sâ€: %sKunde inte ställa in krypteringstyper: %sUppgifter för server har Ã¥terkallatsAktuell nyckelversionINAKTIVERATHärledd nyckellängd är för lÃ¥ng för PKCS5-deskriptor.Härledd nyckellängd är felaktig för PKCS5-deskriptor.Härlett nyckelmaterial är för kort för att vara tillämpligt.Fel vid tillägg av nyckel till huvudnamn.Fel vid tillägg av huvudnamn till databas.Fel vid tillägg av domän till databas.Fel vid uppräkning av nycklar i databas.Fel vid uppräkning av huvudnamn i databas.Fel vid uppräkning av domäner i databas.Kunde inte hitta huvudnamn.Fel vid borttagning av nyckel frÃ¥n huvudnamn.Fel vid borttagning av huvudnamn frÃ¥n databas.Fel vid borttagning av domän frÃ¥n databas.Misslyckades med att verifiera AP-svar.Misslyckades med att använda handtag. Handtag saknas eller är felkonfigurerat.Fält är för stort för denna implementationIn-/utmatningsfel för konfigurationsfil för Shisa.Allmänt fel (beskrivning i e-text)Olämplig typ av kontrollsumma i meddelandeFelaktig nyckeltyp används i AP-svar.Felaktig nyckeltyp i AP-förfrÃ¥gan.Felaktig nyckeltyp använd i TGS-svar.Felaktig nyckeltyp använd i svar frÃ¥n KDC.Felaktig meddelanderiktningFelaktig nätadressFelaktigt sekvensnummer i meddelandeInitialisering misslyckades: %sIntegritetskontroll av dekrypterat fält misslyckadesInternt fel i kryptografiska lÃ¥gnivÃ¥rutiner.Ogiltigt datum för --endtime â€%sâ€Ogiltigt datum för --renew-till â€%sâ€Ogiltigt datum för --starttime â€%sâ€Ogiltig PKCS5-deskriptor.Ogiltigt argument angivet i anrop. Felaktigt eller okänt värde.Ogiltigt ansprÃ¥k pÃ¥ iterationsräknare i PKCS5-deskriptor.Ogiltig msg-typOgiltig biljett angiven i anrop.KDC-policy avböjer befordransvägKDC kan inte tillmötesgÃ¥ begärt alternativKDC har inte stöd för denna typ av kontrollsummaKDC har inte stöd för krypteringstypKDC har inte stöd för padata-typKDC har inte stöd för befordranstypKDC-policy avböjer begäranNyckelNyckeltyp använd för att kryptera biljett matchar inte angiven nyckel. Detta indikerar vanligtvis ett internt programfel.Senaste TGT-begäran vidSenaste inledande TGT-begäran vidSenaste inledande begäran vidSenaste biljettförnyelse vidKryptografisk lÃ¥gnivÃ¥primitiv misslyckades. Detta indikerar vanligtvis ett felaktigt lösenord eller korrumperad data.SAKNASMinnesallokeringsfel i shishi-bibliotek.Meddelande i fel ordningMeddelandeström modifieradModifierar huvudnamn â€%s@%sâ€â€¦ Modifierar huvudnamn â€%s@%sâ€â€¦klart Mer än en nyckel matchar angivna sökkriterier.Flera huvudnamnsposter i databasenSamtidig autentisering misslyckadesIngen KDC känd för given domän.Ingen TTY tilldelad till process.Inget felInga biljetter borttagna. Lösenord gÃ¥r utLösenord för â€%s@%sâ€: Lösenord har gÃ¥tt ut Lösenord: Policy avböjer befordransvägFörautentiseringsinformation är inte giltigHuvudnamn är inte associerat med nÃ¥gon matchande nyckel.Syntaxfel i huvudnamn.Protokollversion matchar inteAngiven buffert för liten.Läser KRB-FEL frÃ¥n %s… Läser KRB-FEL frÃ¥n %s…klart Läser KRB-FEL i %s-format… Referens till ogiltig krypteringsnyckel.Tar bort nyckel frÃ¥n â€%s@%sâ€â€¦ Tar bort nyckel frÃ¥n â€%s@%sâ€â€¦klart Tar bort huvudnamn â€%s@%sâ€â€¦ Tar bort huvudnamn â€%s@%sâ€â€¦klart Tar bort domän â€%sâ€â€¦ Tar bort domän â€%sâ€â€¦klart Tar bort biljett: Värde för svarsskydd (nonce) skiljer sig mellan förfrÃ¥gan och svar.Begäran är ett svarBegärt protokollversionsnummer stöds inteBegärd server och biljett matchar inteBegärd starttid är senare än sluttidenSvar för stort för UDP, försök med TCPServern kan inte hittas i databasenServer inte giltig än - försök senareHuvudnamn för server enbart giltigt för användare-till-användareServer svarade pÃ¥ förfrÃ¥gan med ett felmeddelande.Serverns post i databasen har gÃ¥tt utServerns nyckel krypterad i gammal huvudnyckelServicenyckel inte tillgängligShisa kunde inte initialiseras.Databas för Shisa kunde inte öppnas.Shisa lyckadesShishi-initiering misslyckades: %sAngiven version av nyckel är inte tillgängligAngivet huvudnamn existerar inte.Angiven domän existerar inte.Syntaxfel i konfigurationssymbol för Shisa.TGT har Ã¥terkallatsASN.1-strukturen innehÃ¥ller inte det indikerade elementet.Konfigurationsfilen för Shisa existerar inte.Klienten eller servern har en nyckel som är nullDen önskade filen kunde inte nÃ¥s. Kontrollera rättigheter.Det indikerade ASN.1-elementet bär inget värde.Nyckel är för stor för att vara användbar.Det aktuella AP-svaret anger en otillÃ¥ten nyckeltyp.Den privata nyckeln använder en inkompatibel krypteringstyp.Misslyckades med systemanropet bind(). Detta indikerar vanligtvis otillräckliga rättigheter.Misslyckades med systemanropet close().Misslyckades med systemanropet sendto().Misslyckades med systemanropet socket(). Detta indikerar vanligtvis att ditt system inte har stöd för uttagstypen.Biljetten är inte vÃ¥rBiljett och autentiserare matchar inteBiljett har gÃ¥tt utBiljett inte berättigad till efterdateringBiljett ännu inte giltigBiljettuppsättning inte initierad. Detta indikerar vanligtvis ett internt programfel.Biljetter i â€%sâ€: Försökte att lägga till ett huvudnamn som redan existerar.Försökte att lägga till en domän som redan existerar.Försökte att ta bort en icke-tom domän.Prova â€%s --help†för vidare information. Okänd KRB-FEL-kod %d.Okänt Shisa-felOkänt felVerifikation misslyckades pÃ¥ endera sidan.Skriver KRB-FEL i %s-format… Skriver KRB-FEL till %s… Skriver KRB-FEL till %s…klart kan inte initiera libshishikunde inte hämta biljett som â€%s†för â€%sâ€aktiveratlibshishi: info: %slibshishi: info: %s libshishi: varning: %slibshishi: varning: %s shisa: %s för fÃ¥ argumentför mÃ¥nga argumentshishi-1.0.3/po/vi.gmo0000644000000000000000000005326114273615266011454 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,þ…, „.Ž. •. £.®.½.wÅ.ë=/)0A0&J0Âq041S1q1'‚13ª1&Þ122(824a2%–21¼2%î213.F32u3;¨3Fä3;+42g4Nš4Eé4>/5?n5$®5TÓ5!(6nJ6k¹6%7$C7Fh7K¯7Bû7:>8 y80š8,Ë8Dø8 =9 ^9Ki9Oµ9S:-Y:=‡:=Å:=;DA;D†;"Ë;3î;C"<Cf<*ª<RÕ</(=4X=4==Â=?>>@>@>EÀ>?"?-:?h???8¿?Kø?MD@N’@&á@iAQrA'ÄA8ìA9%B5_B/•B+ÅB4ñB)&C'PCxC‹~C D'%D#MDqDu‹D E6E%EE(kE/”E;ÄE<F7=FuF5’F.ÈF÷F$G-GKGjG‰G5™G.ÏG3þG2H&OH'vH(žH3ÇH7ûH53I,iI8–I,ÏI8üI)5J5_J•JY«JKF"KAiK>«K:êK@%L7fLYžLHøLJAMCŒM$ÐM õM-NDNWN5tN0ªN0ÛN: OGO8`O/™O=ÉO[PEcP'©PGÑP?QnYQ5ÈQ9þQ‚8R,»R&èRS5%S[SLpS½S,ÒS,ÿS5,TJbT­TÊTáT*òT4U%RU0xU#©U1ÍU ÿU V$V?V[V xVƒV˜VŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2013-04-05 13:44+0700 Last-Translator: Trần Ngá»c Quân Language-Team: Vietnamese Language: vi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=1; plural=0; X-Generator: LocFactoryEditor 1.8 X-Poedit-SourceCharset: UTF-8 Kiểu E Khoá Mật khẩu Ưu tiên Tham số S2K Muối Má»i đối số bắt buá»™c phải sá»­ dụng vá»›i tùy chá»n dài cÅ©ng bắt buá»™c vá»›i tùy chá»n ngắn. Má»i đối số bắt buá»™c phải sá»­ dụng vá»›i tùy chá»n dài cÅ©ng bắt buá»™c vá»›i tùy chá»n ngắn. Hãy thông báo lá»—i nào cho <%s>. Hãy thông báo lá»—i dịch cho translation-team-vi@lists.sourceforge.net. %d vé bị gỡ bá». (pkinit)(ngưá»i dùng-đến-ngưá»i dùng)Má»™t yêu cầu thá»i gian hiện tại cá»§a ngày gặp lá»—i. Nguyên nhân thưá»ng là do bản thân phần má»m, nhưng má»™t thá»i gian hợp lệ là cần thiết vá»›i chúng ta.Dịch vụ không sẵn sàngTài khoản hết hạn vàoTài khoản làTài khoản không hợp lệ trướcÄang thêm địa hạt mặc định “%sâ€... Äang thêm khoá vào “%s@%sâ€... Äang thêm khoá vào “%s@%sâ€... hoàn tất Äang thêm mục chính “%s@%sâ€... Äang thêm mục chính “%s@%sâ€... hoàn tất Äang thêm địa hạt “%sâ€... Äang thêm địa hạt “%sâ€... hoàn tất Cần thiết xác thá»±c sẵn thêmCần thiết phương pháp xác thá»±c xen kẽÄối số nằm ngoài phạm vi hợp lệ.Äã cố truy cập má»™t kiểu khóa chưa-có.Lá»—i mã hoá/giải mã base64. Dữ liệu bị há»ng ?Giá trị tên khách khác biệt giữa yêu cầu và đáp ứng.Không tìm thấy trình khách trong cÆ¡ sở dữ liệuTrình khách chưa hợp lệ — thá»­ lại sauGiá trị địa hạt khách khác biệt giữa yêu cầu và đáp ứng.Mục cá»§a trình khách trong cÆ¡ sở dữ liệu đã hết hạnKhoá cá»§a trình khách đã mật mã trong khoá chá»§ cÅ©Thông tin xác thá»±c cá»§a trình khách đã bị há»§y bá»Äá»™ lệch đồng hồ quá lá»›nKhông thể kết nối. Hãy thá»­ lại, hay kiểm tra lại tính khả dụng.Không thể tạo khoá (%d): %sKhông thể giải mã AP-REQ bằng khoá đã cung cấp. Thưá»ng ngụ ý lá»—i ứng dụng ná»™i bá»™.Không thể giải mã Vé bằng khoá đã cung cấp. Thưá»ng ngụ ý lá»—i ứng dụng ná»™i bá»™.Không thể há»§y vé %d: %sKhông thể liệt kê các vé: %sKhông thể phân tách mục chính cá»§a trình khách “%sâ€: %sKhông thể phân tách mục chính cá»§a trình phục vụ “%sâ€: %sKhông thể Ä‘á»c các tùy chá»n vá» thư viện “%sâ€: %sKhông thể Ä‘á»c các tùy chá»n cá»§a thư viện: %sKhông thể Ä‘á»c mật khẩuKhông thể đặt kiểu mã hóa “%sâ€: %sKhông thể đặt các kiểu mã hóa: %sThông tin xác thá»±c cá»§a trình phục vụ đã bị há»§y bá»Phiên bản khoá hiện thá»iBỊ TẮTChiá»u dài khóa nhận được là quá dài vá»›i bá»™ mô tả PKCS5.Chiá»u dài khóa nhận được là không đúng vá»›i bá»™ mô tả PKCS5.Chất liệu khóa nhận được là quá ngắn để có thể dùng được.Gặp lá»—i khi thêm khoá vào mục chínhGặp lá»—i khi thêm mục chính vào cÆ¡ sở dữ liệu.Gặp lá»—i khi thêm địa hạt vào cÆ¡ sở dữ liệu.Gặp lá»—i khi đếm các khoá trong cÆ¡ sở dữ liệu.Gặp lá»—i khi đếm các mục chính trong cÆ¡ sở dữ liệu.Gặp lá»—i khi đếm các địa hạt trong cÆ¡ sở dữ liệu.Gặp lá»—i khi tìm mục chính.Gặp lá»—i khi gỡ bá» khoá khá»i mục chínhGặp lá»—i khi gỡ bá» mục chính khá»i cÆ¡ sở dữ liệu.Gặp lá»—i khi gỡ bỠđịa hạt khá»i cÆ¡ sở dữ liệu.Gặp lá»—i khi thẩm tra trả lá»i AP.Gặp lá»—i khi dùng tiếp hợp. Thiếu tiếp hợp, hay thiếu cấu hình.Trưá»ng quá dài cho sá»± thá»±c hiện nàyLá»—i V/R tập tin cho tập tin cấu hình Shisa.Lá»—i chung (mô tả trong văn bản Ä‘iện tá»­)Kiểu tổng kiểm không thích hợp trong thông Ä‘iệpKiểu khóa không đúng được dùng trong trả lá»i AP.Kiểu khóa không đúng được dùng trong yêu cầu AP.Kiểu khóa không đúng được dùng trong trả lá»i TGS.Kiểu khóa không đúng được dùng trong trả lá»i từ KDC.Sai hướng thông Ä‘iệpSai địa chỉ MạngSai số thứ tá»± dãy trong thông Ä‘iệpLá»—i khởi tạo: %sLá»—i thá»­ tính nguyên vẹn trên trưá»ng đã giải mãLá»—i ná»™i bá»™ trong các hàm mật mã cấp thấp.Ngày tháng “--endtime†(giá» kết thúc) không hợp lệ “%sâ€Ngày tháng “--renew-till†(gia hạn đến) không hợp lệ “%sâ€Ngày tháng “--starttime†(giá» bắt đầu) không hợp lệ “%sâ€Bá»™ mô tả PKCS5 không hợp lệ.Äối số không hợp lệ được chuyển qua trong cuá»™c gá»i. Giá trị sai hay không hiểu.Yêu cầu không hợp lệ cá»§a số lượng lặp trong bá»™ mô tả PKCS5.Kiểu thông Ä‘iệp không hợp lệVé được chuyển qua cuá»™c gá»i không hợp lệChính sách KDC từ chối đưá»ng dẫn đã Ä‘i quaKDC không thể xá»­ lý tùy chá»n đã yêu cầuKDC không há»— trợ kiểu tổng kiểm nàyKDC không há»— trợ kiểu mật mã nàyKDC không há»— trợ kiểu dữ liệu padata nàyKDC không há»— trợ kiểu đã Ä‘i quaChính sách KDC từ chối yêu cầuKhóaKiểu khoá dùng để mã hoá vé không khá»›p vá»›i khoá đã cung cấp. Nguyên nhân thưá»ng là lá»—i ứng dụng ná»™i bá»™.Yêu cầu TGT cuối vàoYêu cầu TGT đầu tiên cuối vàoYêu cầu đầu tiên cuối vàoGia hạn vé cuối vàoÄiá»u có sẵn mật mã cấp thấp bị lá»—i. Thưá»ng ngụ ý mật khẩu sai hay dữ liệu bị há»ng.BỊ THIẾULá»—i cấp phát bá»™ nhá»› trong thư viện shishi.Thông Ä‘iệp không theo thứ tá»±Luồng thông Ä‘iệp bị sá»­a đổiÄang sá»­a đổi mục chính “%s@%sâ€... Äang sá»­a đổi mục chính “%s@%sâ€... hoàn tất Nhiá»u khoá tương ứng vá»›i tiêu chuẩn tìm kiếm.CÆ¡ sở dữ liệu chứa nhiá»u mục nhập chínhLá»—i xác thá»±c lẫn nhauKhông có KDC đã biết cho địa hạt đã cho.Chưa có TTY được gán cho tiến trình.Không có lá»—iKhông có vé nào bị gỡ bá». Mật khẩu hết hạn vàoMật khẩu cho “%s@%sâ€: Mật khẩu đã hết hạn Mật khẩu : Chính sách từ chối đưá»ng dẫn đã Ä‘i quaThông tin xác thá»±c sẵn không hợp lệMục chính không liên quan đến khoá khá»›p.lá»—i cú pháp tên chính.Phiên bản giao thức không khá»›pBá»™ đệm đã cung cấp quá nhá».Äang Ä‘á»c lá»—i KRB-ERROR từ %s... Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s... Tham chiếu đến khóa mã hóa không hợp lệ.Äang gỡ bá» khoá khá»i “%s@%sâ€... Äang gỡ bá» khoá khá»i “%s@%sâ€... hoàn tất Äang gỡ bá» mục chính “%s@%sâ€... Äang gỡ bá» mục chính “%s@%sâ€... hoàn tất Äang gỡ bỠđịa hạt “%sâ€... Äang gỡ bỠđịa hạt “%sâ€... hoàn tất Äang gỡ bá» vé: Giá trị bảo vệ phát lại (nonce) khác biệt giữa yêu cầu và đáp ứng.Yêu cầu cÅ©ng phát lạiKhông há»— trợ số hiệu phiên bản giao thức đã yêu cầuTrình phục vụ đã yêu cầu không tương ứng vá»›i véGiá» bắt đầu đã yêu cầu nằm sau giá» kết thúcÄáp ứng quá lá»›n cho UDP, hãy thá»­ lại vá»›i TCPKhông tìm thấy trình phục vụ trong cÆ¡ sở dữ liệuTrình phục vụ chưa hợp lệ — thá»­ lại sauMục chính trình phục vụ chỉ hợp lệ cho ngưá»i-dùng-đến-ngưá»i-dùngMáy chá»§ nhận được trả lá»i vá»›i vá»›i thông Ä‘iệp lá»—i.Mục cá»§a trình phục vụ trong cÆ¡ sở dữ liệu đã hết hạnKhoá cá»§a trình phục vụ đã mật mã trong khoá chá»§ cÅ©Khoá dịch vụ không sẵn sàngKhông thể khởi tạo Shisa.Không thể mở cÆ¡ sở dữ liệu Shisa.Shisa thành côngLá»—i khởi tạo Shisi: %sKhông có sẵn phiên bản khoá đã xác địnhMục chính đã cung cấp không tồn tại.Äịa hạt đã cung cấp không tồn tại.Gặp lá»—i cú pháp trong hiệu bài cấu hình Shisa.TGT đã bị há»§y bá»Cấu trúc ASN.1 không chứa phần tá»­ chỉ thị.Tập tin cấu hình Shisa không tồn tại.Trình khách hay trình phục vụ có khoá vô giá trịTập tin nhận được không thể truy cập. Hãy kiểm tra phân quyá»n cá»§a nó.Phần tá»­ ASN.1 đã chỉ thị không phải là giá trị mang.Khóa quá lá»›n để có thể dùng.Trả lá»i AP hiện tại đã cho là má»™t kiểu khóa bị cấm.Khóa riêng dùng má»™t kiểu mã hóa không tương thích.Lá»i gá»i hệ thống bind() (đóng kết) bị lá»—i. Thưá»ng ngụ ý không đủ quyá»n truy cập.Lá»i gá»i hệ thống close() (đóng) bị lá»—i.Lá»i gá»i hệ thống sendto() (gá»­i cho) bị lá»—i.Lá»i gá»i hệ thống socket() (ổ cắm) bị lá»—i. Thưá»ng ngụ ý hệ thống không há»— trợ kiểu ổ cắm đó.Vé này không thích hợp vá»›i chúng taVé và bá»™ xác thá»±c không khá»›pVé quá thá»i hạnVé không thích hợp để đặt ngày tháng sauVé chưa hợp lệVé chưa được khởi tạo. Thưá»ng do lá»—i ứng dụng ná»™i bá»™.Vé trong “%sâ€: Äã cố thêm má»™t mục chính đã có.Äã cố thêm má»™t địa hạt đã có.Äã cố gỡ bá» má»™t địa hạt không rá»—ng.Hãy thá»­ lệnh trợ giúp “%s --help†để xem thêm thông tin. Mã lá»—i KRB-ERROR lạ %d.Lá»—i Shisa không rõLá»—i không rõXác thá»±c gặp lá»—i trên má»™t mặt.Äang ghi lá»—i KRB-ERROR theo định dạng %s... Äang ghi lá»—i KRB-ERROR vào %s... Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất không thể khởi tạo libshishikhông thể lấy vé như “%s†cho “%sâ€Ä‘ã bậtlibshishi: thông tin: %slibshishi: thông tin: %s libshishi: cảnh báo : %slibshishi: cảnh báo : %s shisa: %s quá ít đối sốquá nhiá»u đối sốshishi-1.0.3/po/sr.gmo0000644000000000000000000006222714273615266011464 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,…,‰. ˜.¢.².Â. Ü.†æ.²m/w 0˜0%¡0ÎÇ0&–1½1Õ1+å1;2*M26x2/¯2;ß2,38H3U3]×3A54Rw4vÊ4wA5E¹5^ÿ5{^6JÚ6Y%777(·7Šà75k8¿¡8¾a93 :4T:P‰:NÚ:Z);Q„;2Ö;L <CV<6š<(Ñ<ú<a =am=mÏ=:=>Lx>LÅ>N?Pa?P²?5@?9@Ny@NÈ@;AxSA7ÌAXB5]BO“BSãBQ7CU‰C]ßC$=D&bD0‰D,ºDbçD[JEV¦ENýEZLF.§FŒÖF^cG,ÂGNïGD>HPƒHSÔHN(IawIPÙI5*J`JàiJ$JK3oK,£K(ÐK·ùK±LLÄL'M'9M+aM7MdÅMA*NTlNBÁNAOFO9\O–O!²O#ÔOøO= PeGPb­P<Q>MQFŒQ.ÓQ@R=CRAR,ÃR8ðR/)S;YS,•S8ÂSûST ™TUºTPUgaUNÉUCV\\Vl¹VS&WHzWWÃW/X1KXK}XÉX9ÝXBY8ZY:“YPÎYZP:ZC‹ZCÏZn[J‚[EÍ[_\Vs\Ê\@Z]A›]ÁÝ]-Ÿ^XÍ^"&_KI_/•_Å_S`Ol`O¼`F aASa<•a(Òaûa>bCZb6žbHÕb2cNQc c ¯c!Ðc&òc'd Ad#Od#sdŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi-1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2013-10-17 20:05+0200 Last-Translator: МироÑлав Ðиколић Language-Team: Serbian <(nothing)> Language: sr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); Е-врÑта Кључ Лозинка ВажноÑÑ‚ С2К параметри Салт Обавезни аргументи за дуге опције Ñу обавезни и за кратке опције такође. Обавезни аргументи за дуге опције Ñу обавезни и за кратке опције такође. Грешке пријавите на <%s>. Укоњена је %d картица. Укоњене Ñу %d картице. Укоњено је %d картица. (pkinit)(кориÑник-кориÑнику)Захтев за Ñадашњим временом дана није уÑпео. Ово је уобичајено унутрашње, али је иÑправно време за Ð½Ð°Ñ Ð¸Ð¼Ð¿ÐµÑ€Ð°Ñ‚Ð¸Ð².УÑлуга није доÑтупнаÐалог иÑтичеÐалог јеÐалог није иÑправан преДодајем оÑновно подручје „%s“... Додајем кључ у „%s@%s“... Додајем кључ у „%s@%s“...готово Додајем главника „%s@%s“... Додајем главника „%s@%s“...готово Додајем подручје „%s“... Додајем подручје „%s“...готово Потребна је додатна ранија провера идентитетаПотребан је резервни начин потврђивања идентитетаÐргумент лежи ван иÑправног опÑега.Покушан је приÑтуп непоÑтојећој врÑти кључа.Шифровање или дешифровање оÑнове 64 није уÑпело. Оштећени подаци?ВредноÑÑ‚ назива клијента Ñе разликује између захтева и одговора.Клијент није пронађен у бази податакаКлијент није још увек иÑправан — покушајте каÑнијеВредноÑÑ‚ подручја клијента Ñе разликује између захтева и одговора.Ð£Ð½Ð¾Ñ ÐºÐ»Ð¸Ñ˜ÐµÐ½Ñ‚Ð° у бази података је иÑтекаоКључ клијента је шифрован у Ñтаром главном кључуУверења клијената Ñу опозванаСат Ñе нагнуо ка већемПокушај повезивања није уÑпео. Покушајте поново, или проверите доÑтупноÑÑ‚.Ðе могу да направим кључ (%d): %sÐе могу да дешифрујем ÐП-ЗÐÐ¥ кориÑтећи доÑтављени кључ. Ово обично указује на унутрашњу грешку програма.Ðе могу да дешифрујем Карту кориÑтећи доÑтављени кључ. Ово обично указује на унутрашњу грешку програма.Ðе могу да уништим карту %d: %sÐе могу да прегледам карте: %sÐе могу да обрадим главника клијента „%s“: %sÐе могу да обрадим главника Ñервера „%s“: %sÐе могу да прочитам могућноÑти библиотеке „%s“: %sÐе могу да прочитам могућноÑти библиотеке: %sÐе могу да прочитам лозинкуÐе могу да подеÑим врÑту шифровања „%s“: %sÐе могу да подеÑим врÑте шифровања: %sУверење за Ñервер је опозваноТренутно издање кључаИСКЉУЧЕÐДужина произашлог кључа је предуга за ПКЦС5 опиÑника.Дужина произашлог кључа је нетачна за ПКЦС5 опиÑника.Материјал произашлог кључа је прекратак да би био примењив.Грешка додавања кључа главнику.Грешка додавања главника у базу података.Грешка додавања подручја у базу података.Грешка нумериÑања кључева у бази података.Грешка нумериÑања главника у бази података.Грешка нумериÑања подручја у бази података.Грешка проналажења главника.Грешка уклањања кључа из главника.Грешка уклањања главника из базе података.Грешка уклањања подручја из базе података.Ðије уÑпела провера ÐП одговора.ÐеуÑпех коришћења ручице. Ручица недоÑтаје, или је лоше подешена.Поље је предуго за ову применуУ/И грешка датотеке за датотеку подешавања Шизе.Општа грешка (Ð¾Ð¿Ð¸Ñ Ñƒ е-текÑту)Ðеодговарајућа врÑта провере Ñуме у поруциÐетачна врÑта кључа коришћеног у ÐП одговору.Ðетачна врÑта кључа коришћеног у ÐП захтеву.Ðетачна врÑта кључа коришћеног у ТГС одговору.Ðетачна врÑта кључа коришћеног у одговору Ñа КДЦ-а.Ðетачан Ñмер порукеÐетачна адреÑа мрежеÐетачан број низа у поруциÐије уÑпело покретање: %sПровера целовитоÑти на дешифрованом пољу није уÑпелаУнутрашња грешка у рутини шифровања ниÑког нивоа.ÐеиÑправан податак крајњег времена (--endtime) „%s“ÐеиÑправан податак обнављања (--renew-till) „%s“ÐеиÑправан податак почетног времена (--starttime) „%s“ÐеиÑправан ПКЦС5 опиÑник.ÐеиÑправан аргумент је проÑлеђен у позиву. Погрешна или непозната вредноÑÑ‚.ÐеиÑправна тврдња броја опетовања у ПКЦС5 опиÑнику.ÐеиÑправна врÑта порукеÐеиÑправна картица је проÑлеђена у позиву.КДЦ политика одбија пренешену путањуКДЦ не може да обухвати захтевану могућноÑтКДЦ не поÑедује подршку за врÑту провера ÑумеКДЦ не поÑедује подршку за врÑту шифровањаКДЦ не поÑедује подршку за врÑту паралелних податакаКДЦ не поÑедује подршку за врÑту пренешенихКДЦ политика одбацује захтевКључВрÑта кључа коришћеног за шифровање карте не одговара доÑтављеном кључу. Ово обично указује на унутрашњу грешку програма.ПоÑледњи ТГТ захтевПоÑледњи почетни ТГТ захтевПоÑледњи почетни захтевПоÑледња обнова картеКриптографија ниÑког нивоа није уÑпела. Ово обично указује на лошу лозинку или на оштећене податке.ÐЕДОСТÐЈЕГрешка доделе меморије у шиши библиотеци.Порука је ван пореткаИзмењен је ток порукеМењам главника „%s@%s“... Мењам главника „%s@%s“...готово Више од једног кључа одговарају датом уÑлову претраге.Више уноÑа главника у бази податакаМеђуÑобно потврђивање идентитета није уÑпелоÐиједан КДЦ није познат за подручје.Ðиједан ТТУ није придружен процеÑу.Ðема грешкеÐиједна картица није уклоњена. Лозинка иÑтичеЛозинка за „%s@%s“: Лозинка је иÑтекла Лозинка: Политика одбија пренешену путањуПодатак за ранију проверу идентитета је био неиÑправанГлавник није придружен ниједном одговарајућем кључу.Грешка ÑинтакÑе назива главника.Издања протокола Ñе не подударајуОбезбеђена међумеморија беше премала.Читам КРБ-ГРЕШКУ у „%s“... Читање КРБ-ГРЕШКЕ у „%s“...обављено Читам КРБ-ГРЕШКУ у формату „%s“... Упута на неиÑправан кључ шифровања.Уклањам кључ из „%s@%s“... Уклањам кључ из „%s@%s“...готово Уклањам главника „%s@%s“... Уклањам главника „%s@%s“...готово Уклањам подручје „%s“... Уклањам подручје „%s“...готово Уклањам карту: ВредноÑÑ‚ заштите одговора (nonce) Ñе разликује између захтева и одговора.Захтев је одговорБрој издања захтеваног протокола није подржанЗахтевани Ñервер и картица Ñе не подударајуЗахтевано почетно време је каÑније од времена завршеткаОдговор је превелик за УДП, пробајте Ñа ТЦПСервер није пронађен у бази податакаСервер није још увек иÑправан — покушајте каÑнијеГлавник Ñервера је иÑправан Ñамо од кориÑника-до-кориÑникаСервер је одговорио поруком грешке на захтев.Ð£Ð½Ð¾Ñ Ñервера у бази података је иÑтекаоКључ Ñервера је шифрован у Ñтаром главном кључуКључ уÑлуге није доÑтупанШиза не може бити покренут.База података Шизе не може бити отворена.УÑпех ШизеÐије уÑпело покретање Шишија: %sÐаведено издање кључа није доÑтупноДоÑтављени главник не поÑтоји.ДоÑтављено подручје не поÑтоји.Грешка Ñадржаја у елементу подешавања Шизе.ТГТ је опозванÐСÐ.1 Ñтруктура не Ñадржи назначени елемент.Датотека подешавања Шизе не поÑтоји.Клијент или Ñервер има ништаван кључЖељеном документу Ñе не може приÑтупити. Проверите дозволе.Ðазначени ÐСÐ.1 елемент не ноÑи вредноÑÑ‚.Кључ је превелик да би био употребљив.ПриÑутни ÐП одговор наводи недозвољиву врÑту кључа.Лични кључ кориÑти неÑаглаÑну врÑту шифровања.СиÑтемÑки позив „bind()“ није уÑпео. Ово обично указује на недовољна овлашћења.СиÑтемÑки позив „close()“ није уÑпео.СиÑтемÑки позив „sendto()“ није уÑпео.СиÑтемÑки позив „socket()“ није уÑпео. Ово обично указује на то да ваш ÑиÑтем не подржава врÑту прикључнице.Картица није за употребуКартица и потврђивач идентитета Ñе не поклапајуКартица је иÑтеклаКартица није подеÑна за каÑнију употребуКартица још није иÑправнаÐије покренут Ñкуп картица. Ово обично указује на унутрашњу грешку програма.Карте у „%s“: Покушах да додам главника који већ поÑтоји.Покушах да додам подручје које већ поÑтоји.Покушах да уклоним не-празно подручје.Пробајте „%s --help“ за више података. Ðепознат код гређке %d КРБ-ГРЕШКЕ.Ðепозната грешка ШизеÐепозната грешкаПровера није уÑпела на обе Ñтране.ЗапиÑујем КРБ-ГРЕШКУ у формат „%s“... ЗапиÑујем КРБ-ГРЕШКУ у „%s“... ЗапиÑивање КРБ-ГРЕШКЕ у „%s“...обављено не могу да покренем либшишине могу да добавим картицу као „%s“ за „%s“укљученлибшиши: подаци: %sлибшиши: подаци: %s либшиши: упозорење: %sлибшиши: упозорење: %s шиза: %s премало аргуменатапревише аргуменатаshishi-1.0.3/po/vi.po0000644000000000000000000011075214273615266011307 00000000000000# Vietnamese translation for Shishi. # Copyright © 2013 Free Software Foundation, Inc. # This file is distributed under the same license as the shishi package. # Clytie Siddall , 2007-2010. # Trần Ngá»c Quân , 2013. # msgid "" msgstr "" "Project-Id-Version: shishi 1.0.2\n" "Report-Msgid-Bugs-To: bug-shishi@gnu.org\n" "POT-Creation-Date: 2022-08-07 03:51+0200\n" "PO-Revision-Date: 2013-04-05 13:44+0700\n" "Last-Translator: Trần Ngá»c Quân \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Bugs: Report translation errors to the Language-Team address.\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.8\n" "X-Poedit-SourceCharset: UTF-8\n" #: db/err.c:33 msgid "Shisa success" msgstr "Shisa thành công" #: db/err.c:35 msgid "Shisa could not be initialized." msgstr "Không thể khởi tạo Shisa." #: db/err.c:37 msgid "The Shisa configuration file does not exist." msgstr "Tập tin cấu hình Shisa không tồn tại." #: db/err.c:39 msgid "File I/O error for Shisa configuration file." msgstr "Lá»—i V/R tập tin cho tập tin cấu hình Shisa." #: db/err.c:41 msgid "Syntax error in Shisa configuration token." msgstr "Gặp lá»—i cú pháp trong hiệu bài cấu hình Shisa." #: db/err.c:43 msgid "Shisa database could not be opened." msgstr "Không thể mở cÆ¡ sở dữ liệu Shisa." #: db/err.c:45 msgid "Error enumerating realms in database." msgstr "Gặp lá»—i khi đếm các địa hạt trong cÆ¡ sở dữ liệu." #: db/err.c:47 msgid "Error enumerating principals in database." msgstr "Gặp lá»—i khi đếm các mục chính trong cÆ¡ sở dữ liệu." #: db/err.c:49 msgid "Error enumerating keys in database." msgstr "Gặp lá»—i khi đếm các khoá trong cÆ¡ sở dữ liệu." #: db/err.c:51 msgid "Supplied realm does not exist." msgstr "Äịa hạt đã cung cấp không tồn tại." #: db/err.c:53 msgid "Supplied principal does not exist." msgstr "Mục chính đã cung cấp không tồn tại." #: db/err.c:55 msgid "Principal is not associated with any matching key." msgstr "Mục chính không liên quan đến khoá khá»›p." #: db/err.c:57 msgid "Error finding principal." msgstr "Gặp lá»—i khi tìm mục chính." #: db/err.c:59 msgid "Tried to add a realm that already exist." msgstr "Äã cố thêm má»™t địa hạt đã có." #: db/err.c:61 msgid "Error adding realm to database." msgstr "Gặp lá»—i khi thêm địa hạt vào cÆ¡ sở dữ liệu." #: db/err.c:63 msgid "Tried to remove a non-empty realm." msgstr "Äã cố gỡ bá» má»™t địa hạt không rá»—ng." #: db/err.c:65 msgid "Error removing realm from database." msgstr "Gặp lá»—i khi gỡ bỠđịa hạt khá»i cÆ¡ sở dữ liệu." #: db/err.c:67 msgid "Tried to add a principal that already exist." msgstr "Äã cố thêm má»™t mục chính đã có." #: db/err.c:69 msgid "Error adding principal to database." msgstr "Gặp lá»—i khi thêm mục chính vào cÆ¡ sở dữ liệu." #: db/err.c:71 msgid "Error removing principal from database." msgstr "Gặp lá»—i khi gỡ bá» mục chính khá»i cÆ¡ sở dữ liệu." #: db/err.c:73 msgid "Error adding key to principal." msgstr "Gặp lá»—i khi thêm khoá vào mục chính" #: db/err.c:75 msgid "Error removing key from principal." msgstr "Gặp lá»—i khi gỡ bá» khoá khá»i mục chính" #: db/err.c:77 msgid "More than one key match given search criteria." msgstr "Nhiá»u khoá tương ứng vá»›i tiêu chuẩn tìm kiếm." #: db/err.c:100 msgid "Unknown Shisa error" msgstr "Lá»—i Shisa không rõ" #: db/err.c:121 #, c-format msgid "shisa: %s\n" msgstr "shisa: %s\n" #: lib/aprep.c:149 #, fuzzy, c-format msgid "Writing AP-REP to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/aprep.c:156 #, fuzzy, c-format msgid "Writing AP-REP in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/aprep.c:171 #, fuzzy, c-format msgid "Writing AP-REP to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/aprep.c:229 #, fuzzy, c-format msgid "Reading AP-REP from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/aprep.c:236 #, fuzzy, c-format msgid "Reading AP-REP in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/aprep.c:251 #, fuzzy, c-format msgid "Reading AP-REP from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/apreq.c:211 #, fuzzy, c-format msgid "Writing AP-REQ to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/apreq.c:218 #, fuzzy, c-format msgid "Writing AP-REQ in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/apreq.c:233 #, fuzzy, c-format msgid "Writing AP-REQ to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/apreq.c:291 #, fuzzy, c-format msgid "Reading AP-REQ from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/apreq.c:298 #, fuzzy, c-format msgid "Reading AP-REQ in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/apreq.c:313 #, fuzzy, c-format msgid "Reading AP-REQ from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/authenticator.c:197 #, fuzzy, c-format msgid "Writing Authenticator to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/authenticator.c:204 #, fuzzy, c-format msgid "Writing Authenticator in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/authenticator.c:219 #, fuzzy, c-format msgid "Writing Authenticator to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/authenticator.c:280 #, fuzzy, c-format msgid "Reading Authenticator from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/authenticator.c:287 #, fuzzy, c-format msgid "Reading Authenticator in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/authenticator.c:302 #, fuzzy, c-format msgid "Reading Authenticator from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/diskio.c:1078 #, fuzzy, c-format msgid "Writing KEY to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/diskio.c:1093 #, fuzzy, c-format msgid "Writing KEY to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/encapreppart.c:155 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/encapreppart.c:162 #, fuzzy, c-format msgid "Writing EncAPRepPart in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/encapreppart.c:177 #, fuzzy, c-format msgid "Writing EncAPRepPart to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/encapreppart.c:237 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/encapreppart.c:244 #, fuzzy, c-format msgid "Reading EncAPRepPart in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/encapreppart.c:259 #, fuzzy, c-format msgid "Reading EncAPRepPart from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/error.c:33 #, fuzzy msgid "Shishi success." msgstr "Shishi thành công" #: lib/error.c:35 #, fuzzy msgid "Error in ASN.1 function. (corrupt data?)" msgstr "Gặp lá»—i trong hàm ASN.1 (dữ liệu bị há»ng?)" #: lib/error.c:37 #, fuzzy msgid "Could not open file." msgstr "Không thể mở tập tin" #: lib/error.c:39 #, fuzzy msgid "File input/output error." msgstr "Lá»—i vào/ra tập tin" #: lib/error.c:41 msgid "Memory allocation error in shishi library." msgstr "Lá»—i cấp phát bá»™ nhá»› trong thư viện shishi." #: lib/error.c:43 msgid "Base64 encoding or decoding failed. Data corrupt?" msgstr "Lá»—i mã hoá/giải mã base64. Dữ liệu bị há»ng ?" #: lib/error.c:45 msgid "Client realm value differ between request and reply." msgstr "Giá trị địa hạt khách khác biệt giữa yêu cầu và đáp ứng." #: lib/error.c:47 msgid "Client name value differ between request and reply." msgstr "Giá trị tên khách khác biệt giữa yêu cầu và đáp ứng." #: lib/error.c:49 msgid "Replay protection value (nonce) differ between request and reply." msgstr "Giá trị bảo vệ phát lại (nonce) khác biệt giữa yêu cầu và đáp ứng." #: lib/error.c:51 msgid "Incorrect key type used in TGS reply." msgstr "Kiểu khóa không đúng được dùng trong trả lá»i TGS." #: lib/error.c:53 msgid "Incorrect key type used in reply from KDC." msgstr "Kiểu khóa không đúng được dùng trong trả lá»i từ KDC." #: lib/error.c:55 msgid "Incorrect key type used in AP reply." msgstr "Kiểu khóa không đúng được dùng trong trả lá»i AP." #: lib/error.c:57 msgid "Failed verification of AP reply." msgstr "Gặp lá»—i khi thẩm tra trả lá»i AP." #: lib/error.c:59 msgid "Incorrect key type used in AP request." msgstr "Kiểu khóa không đúng được dùng trong yêu cầu AP." #: lib/error.c:61 msgid "Provided buffer was too small." msgstr "Bá»™ đệm đã cung cấp quá nhá»." #: lib/error.c:63 msgid "Derived key material is too short to be applicable." msgstr "Chất liệu khóa nhận được là quá ngắn để có thể dùng được." #: lib/error.c:65 msgid "The key is too large to be usable." msgstr "Khóa quá lá»›n để có thể dùng." #: lib/error.c:67 msgid "" "Low-level cryptographic primitive failed. This usually indicates bad " "password or data corruption." msgstr "" "Äiá»u có sẵn mật mã cấp thấp bị lá»—i. Thưá»ng ngụ ý mật khẩu sai hay dữ liệu bị " "há»ng." #: lib/error.c:70 msgid "Internal error in low-level crypto routines." msgstr "Lá»—i ná»™i bá»™ trong các hàm mật mã cấp thấp." #: lib/error.c:72 msgid "" "The system call socket() failed. This usually indicates that your system " "does not support the socket type." msgstr "" "Lá»i gá»i hệ thống socket() (ổ cắm) bị lá»—i. Thưá»ng ngụ ý hệ thống không há»— trợ " "kiểu ổ cắm đó." #: lib/error.c:75 msgid "" "The system call bind() failed. This usually indicates insufficient " "permissions." msgstr "" "Lá»i gá»i hệ thống bind() (đóng kết) bị lá»—i. Thưá»ng ngụ ý không đủ quyá»n truy " "cập." #: lib/error.c:78 msgid "The system call sendto() failed." msgstr "Lá»i gá»i hệ thống sendto() (gá»­i cho) bị lá»—i." #: lib/error.c:80 #, fuzzy msgid "Error receiving data from server." msgstr "Gặp lá»—i khi nhận dữ liệu từ máy phục vụ" #: lib/error.c:82 msgid "The system call close() failed." msgstr "Lá»i gá»i hệ thống close() (đóng) bị lá»—i." #: lib/error.c:84 #, fuzzy msgid "" "Timed out talking to KDC. This usually indicates a network or KDC address " "problem." msgstr "" "Chá» quá lâu khi liên lạc vá»›i KDC. Lá»—i thưá»ng là có vấn đỠvá» mạng hoặc địa " "chỉ KDC." #: lib/error.c:87 msgid "No KDC known for given realm." msgstr "Không có KDC đã biết cho địa hạt đã cho." #: lib/error.c:89 msgid "No TTY assigned to process." msgstr "Chưa có TTY được gán cho tiến trình." #: lib/error.c:91 msgid "Server replied to the request with an error message." msgstr "Máy chá»§ nhận được trả lá»i vá»›i vá»›i thông Ä‘iệp lá»—i." #: lib/error.c:93 msgid "Failure to use handle. Missing handle, or misconfigured." msgstr "Gặp lá»—i khi dùng tiếp hợp. Thiếu tiếp hợp, hay thiếu cấu hình." #: lib/error.c:95 msgid "" "Ticket set not initialized. This usually indicates an internal application " "error." msgstr "Vé chưa được khởi tạo. Thưá»ng do lá»—i ứng dụng ná»™i bá»™." #: lib/error.c:98 msgid "" "Key type used to encrypt ticket doesn't match provided key. This usually " "indicates an internal application error." msgstr "" "Kiểu khoá dùng để mã hoá vé không khá»›p vá»›i khoá đã cung cấp. Nguyên nhân " "thưá»ng là lá»—i ứng dụng ná»™i bá»™." #: lib/error.c:101 msgid "Reference to invalid encryption key." msgstr "Tham chiếu đến khóa mã hóa không hợp lệ." #: lib/error.c:103 msgid "" "Could not decrypt AP-REQ using provided key. This usually indicates an " "internal application error." msgstr "" "Không thể giải mã AP-REQ bằng khoá đã cung cấp. Thưá»ng ngụ ý lá»—i ứng dụng " "ná»™i bá»™." #: lib/error.c:106 msgid "" "Could not decrypt Ticket using provided key. This usually indicates an " "internal application error." msgstr "" "Không thể giải mã Vé bằng khoá đã cung cấp. Thưá»ng ngụ ý lá»—i ứng dụng ná»™i bá»™." #: lib/error.c:109 msgid "Invalid ticked passed in call." msgstr "Vé được chuyển qua cuá»™c gá»i không hợp lệ" #: lib/error.c:111 msgid "Argument lies outside of valid range." msgstr "Äối số nằm ngoài phạm vi hợp lệ." #: lib/error.c:113 msgid "The ASN.1 structure does not contain the indicated element." msgstr "Cấu trúc ASN.1 không chứa phần tá»­ chỉ thị." #: lib/error.c:115 msgid "Attempted access to non-existent key type." msgstr "Äã cố truy cập má»™t kiểu khóa chưa-có." #: lib/error.c:117 lib/error.c:135 msgid "Verification failed on either side." msgstr "Xác thá»±c gặp lá»—i trên má»™t mặt." #: lib/error.c:119 msgid "Invalid PKCS5 descriptor." msgstr "Bá»™ mô tả PKCS5 không hợp lệ." #: lib/error.c:121 msgid "Invalid claim of iteration count in PKCS5 descriptor." msgstr "Yêu cầu không hợp lệ cá»§a số lượng lặp trong bá»™ mô tả PKCS5." #: lib/error.c:123 msgid "Derived key length is incorrect for PKCS5 descriptor." msgstr "Chiá»u dài khóa nhận được là không đúng vá»›i bá»™ mô tả PKCS5." #: lib/error.c:125 msgid "Derived key is too long for PKCS5 descriptor." msgstr "Chiá»u dài khóa nhận được là quá dài vá»›i bá»™ mô tả PKCS5." #: lib/error.c:127 msgid "Principal name syntax error." msgstr "lá»—i cú pháp tên chính." #: lib/error.c:129 msgid "Invalid argument passed in call. Wrong or unknown value." msgstr "" "Äối số không hợp lệ được chuyển qua trong cuá»™c gá»i. Giá trị sai hay không " "hiểu." #: lib/error.c:131 msgid "The indicated ASN.1 element does not carry a value." msgstr "Phần tá»­ ASN.1 đã chỉ thị không phải là giá trị mang." #: lib/error.c:133 msgid "Connection attempt failed. Try again, or check availability." msgstr "Không thể kết nối. Hãy thá»­ lại, hay kiểm tra lại tính khả dụng." #: lib/error.c:137 msgid "The private key uses an incompatible encryption type." msgstr "Khóa riêng dùng má»™t kiểu mã hóa không tương thích." #: lib/error.c:139 msgid "The desired file could not be accessed. Check permissions." msgstr "Tập tin nhận được không thể truy cập. Hãy kiểm tra phân quyá»n cá»§a nó." #: lib/error.c:141 msgid "The present AP reply specifies an inpermissible key type." msgstr "Trả lá»i AP hiện tại đã cho là má»™t kiểu khóa bị cấm." #: lib/error.c:143 msgid "" "A request for present time of day has failed. This is usually internal, but " "a valid time is imperative for us." msgstr "" "Má»™t yêu cầu thá»i gian hiện tại cá»§a ngày gặp lá»—i. Nguyên nhân thưá»ng là do " "bản thân phần má»m, nhưng má»™t thá»i gian hợp lệ là cần thiết vá»›i chúng ta." #: lib/error.c:146 #, fuzzy msgid "Failed to parse keytab file." msgstr "Lá»—i phân tách tập tin keytab." #: lib/error.c:148 #, fuzzy msgid "Failed to parse credential cache file." msgstr "Lá»—i phân tách tập tin nhá»› đệm thông tin xác thá»±c" #: lib/error.c:165 msgid "Unknown error" msgstr "Lá»—i không rõ" #: lib/error.c:196 lib/krberror.c:1259 msgid "No error" msgstr "Không có lá»—i" #: lib/error.c:336 #, c-format msgid "libshishi: info: %s" msgstr "libshishi: thông tin: %s" #: lib/error.c:340 #, c-format msgid "libshishi: info: %s\n" msgstr "libshishi: thông tin: %s\n" #: lib/error.c:376 #, c-format msgid "libshishi: warning: %s" msgstr "libshishi: cảnh báo : %s" #: lib/error.c:380 #, c-format msgid "libshishi: warning: %s\n" msgstr "libshishi: cảnh báo : %s\n" #: lib/kdcrep.c:156 #, fuzzy, c-format msgid "Writing KDC-REP to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/kdcrep.c:163 #, fuzzy, c-format msgid "Writing KDC-REP in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/kdcrep.c:178 #, fuzzy, c-format msgid "Writing KDC-REP to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/kdcrep.c:236 #, fuzzy, c-format msgid "Reading KDC-REP from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/kdcrep.c:243 #, fuzzy, c-format msgid "Reading KDC-REP in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/kdcrep.c:258 #, fuzzy, c-format msgid "Reading KDC-REP from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/kdcreq.c:225 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/kdcreq.c:232 #, fuzzy, c-format msgid "Writing KDC-REQ in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/kdcreq.c:247 #, fuzzy, c-format msgid "Writing KDC-REQ to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/kdcreq.c:305 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/kdcreq.c:312 #, fuzzy, c-format msgid "Reading KDC-REQ in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/kdcreq.c:327 #, fuzzy, c-format msgid "Reading KDC-REQ from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/keys.c:216 #, fuzzy, c-format msgid "Writing KEYS to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/keys.c:231 #, fuzzy, c-format msgid "Writing KEYS to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/krberror.c:137 #, c-format msgid "Writing KRB-ERROR to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/krberror.c:144 #, c-format msgid "Writing KRB-ERROR in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/krberror.c:159 #, c-format msgid "Writing KRB-ERROR to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/krberror.c:217 #, c-format msgid "Reading KRB-ERROR from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/krberror.c:224 #, c-format msgid "Reading KRB-ERROR in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/krberror.c:239 #, c-format msgid "Reading KRB-ERROR from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/krberror.c:1261 msgid "Client's entry in database has expired" msgstr "Mục cá»§a trình khách trong cÆ¡ sở dữ liệu đã hết hạn" #: lib/krberror.c:1263 msgid "Server's entry in database has expired" msgstr "Mục cá»§a trình phục vụ trong cÆ¡ sở dữ liệu đã hết hạn" #: lib/krberror.c:1265 msgid "Requested protocol version number not supported" msgstr "Không há»— trợ số hiệu phiên bản giao thức đã yêu cầu" #: lib/krberror.c:1267 msgid "Client's key encrypted in old master key" msgstr "Khoá cá»§a trình khách đã mật mã trong khoá chá»§ cÅ©" #: lib/krberror.c:1269 msgid "Server's key encrypted in old master key" msgstr "Khoá cá»§a trình phục vụ đã mật mã trong khoá chá»§ cÅ©" #: lib/krberror.c:1271 msgid "Client not found in database" msgstr "Không tìm thấy trình khách trong cÆ¡ sở dữ liệu" #: lib/krberror.c:1273 msgid "Server not found in database" msgstr "Không tìm thấy trình phục vụ trong cÆ¡ sở dữ liệu" #: lib/krberror.c:1275 msgid "Multiple principal entries in database" msgstr "CÆ¡ sở dữ liệu chứa nhiá»u mục nhập chính" #: lib/krberror.c:1277 msgid "The client or server has a null key" msgstr "Trình khách hay trình phục vụ có khoá vô giá trị" #: lib/krberror.c:1279 msgid "Ticket not eligible for postdating" msgstr "Vé không thích hợp để đặt ngày tháng sau" #: lib/krberror.c:1281 msgid "Requested start time is later than end time" msgstr "Giá» bắt đầu đã yêu cầu nằm sau giá» kết thúc" #: lib/krberror.c:1283 msgid "KDC policy rejects request" msgstr "Chính sách KDC từ chối yêu cầu" #: lib/krberror.c:1285 msgid "KDC cannot accommodate requested option" msgstr "KDC không thể xá»­ lý tùy chá»n đã yêu cầu" #: lib/krberror.c:1287 msgid "KDC has no support for encryption type" msgstr "KDC không há»— trợ kiểu mật mã này" #: lib/krberror.c:1289 msgid "KDC has no support for checksum type" msgstr "KDC không há»— trợ kiểu tổng kiểm này" #: lib/krberror.c:1291 msgid "KDC has no support for padata type" msgstr "KDC không há»— trợ kiểu dữ liệu padata này" #: lib/krberror.c:1293 msgid "KDC has no support for transited type" msgstr "KDC không há»— trợ kiểu đã Ä‘i qua" #: lib/krberror.c:1295 msgid "Clients credentials have been revoked" msgstr "Thông tin xác thá»±c cá»§a trình khách đã bị há»§y bá»" #: lib/krberror.c:1297 msgid "Credentials for server have been revoked" msgstr "Thông tin xác thá»±c cá»§a trình phục vụ đã bị há»§y bá»" #: lib/krberror.c:1299 msgid "TGT has been revoked" msgstr "TGT đã bị há»§y bá»" #: lib/krberror.c:1301 msgid "Client not yet valid - try again later" msgstr "Trình khách chưa hợp lệ — thá»­ lại sau" #: lib/krberror.c:1303 msgid "Server not yet valid - try again later" msgstr "Trình phục vụ chưa hợp lệ — thá»­ lại sau" #: lib/krberror.c:1305 msgid "Password has expired " msgstr "Mật khẩu đã hết hạn " #: lib/krberror.c:1307 msgid "Pre-authentication information was invalid" msgstr "Thông tin xác thá»±c sẵn không hợp lệ" #: lib/krberror.c:1309 msgid "Additional pre-authentication required" msgstr "Cần thiết xác thá»±c sẵn thêm" #: lib/krberror.c:1311 msgid "Requested server and ticket don't match" msgstr "Trình phục vụ đã yêu cầu không tương ứng vá»›i vé" #: lib/krberror.c:1313 msgid "Server principal valid for user2user only" msgstr "Mục chính trình phục vụ chỉ hợp lệ cho ngưá»i-dùng-đến-ngưá»i-dùng" #: lib/krberror.c:1315 msgid "KDC Policy rejects transited path" msgstr "Chính sách KDC từ chối đưá»ng dẫn đã Ä‘i qua" #: lib/krberror.c:1317 msgid "A service is not available" msgstr "Dịch vụ không sẵn sàng" #: lib/krberror.c:1319 msgid "Integrity check on decrypted field failed" msgstr "Lá»—i thá»­ tính nguyên vẹn trên trưá»ng đã giải mã" #: lib/krberror.c:1321 msgid "Ticket expired" msgstr "Vé quá thá»i hạn" #: lib/krberror.c:1323 msgid "Ticket not yet valid" msgstr "Vé chưa hợp lệ" #: lib/krberror.c:1325 msgid "Request is a replay" msgstr "Yêu cầu cÅ©ng phát lại" #: lib/krberror.c:1327 msgid "The ticket isn't for us" msgstr "Vé này không thích hợp vá»›i chúng ta" #: lib/krberror.c:1329 msgid "Ticket and authenticator don't match" msgstr "Vé và bá»™ xác thá»±c không khá»›p" #: lib/krberror.c:1331 msgid "Clock skew too great" msgstr "Äá»™ lệch đồng hồ quá lá»›n" #: lib/krberror.c:1333 msgid "Incorrect net address" msgstr "Sai địa chỉ Mạng" #: lib/krberror.c:1335 msgid "Protocol version mismatch" msgstr "Phiên bản giao thức không khá»›p" #: lib/krberror.c:1337 msgid "Invalid msg type" msgstr "Kiểu thông Ä‘iệp không hợp lệ" #: lib/krberror.c:1339 msgid "Message stream modified" msgstr "Luồng thông Ä‘iệp bị sá»­a đổi" #: lib/krberror.c:1341 msgid "Message out of order" msgstr "Thông Ä‘iệp không theo thứ tá»±" #: lib/krberror.c:1343 msgid "Specified version of key is not available" msgstr "Không có sẵn phiên bản khoá đã xác định" #: lib/krberror.c:1345 msgid "Service key not available" msgstr "Khoá dịch vụ không sẵn sàng" #: lib/krberror.c:1347 msgid "Mutual authentication failed" msgstr "Lá»—i xác thá»±c lẫn nhau" #: lib/krberror.c:1349 msgid "Incorrect message direction" msgstr "Sai hướng thông Ä‘iệp" #: lib/krberror.c:1351 msgid "Alternative authentication method required" msgstr "Cần thiết phương pháp xác thá»±c xen kẽ" #: lib/krberror.c:1353 msgid "Incorrect sequence number in message" msgstr "Sai số thứ tá»± dãy trong thông Ä‘iệp" #: lib/krberror.c:1355 msgid "Inappropriate type of checksum in message" msgstr "Kiểu tổng kiểm không thích hợp trong thông Ä‘iệp" #: lib/krberror.c:1357 msgid "Policy rejects transited path" msgstr "Chính sách từ chối đưá»ng dẫn đã Ä‘i qua" #: lib/krberror.c:1359 msgid "Response too big for UDP, retry with TCP" msgstr "Äáp ứng quá lá»›n cho UDP, hãy thá»­ lại vá»›i TCP" #: lib/krberror.c:1361 msgid "Generic error (description in e-text)" msgstr "Lá»—i chung (mô tả trong văn bản Ä‘iện tá»­)" #: lib/krberror.c:1363 msgid "Field is too long for this implementation" msgstr "Trưá»ng quá dài cho sá»± thá»±c hiện này" #: lib/krberror.c:1365 lib/krberror.c:1367 lib/krberror.c:1369 #: lib/krberror.c:1371 lib/krberror.c:1373 lib/krberror.c:1381 #: lib/krberror.c:1383 lib/krberror.c:1385 lib/krberror.c:1387 #: lib/krberror.c:1389 lib/krberror.c:1391 lib/krberror.c:1393 msgid "(pkinit)" msgstr "(pkinit)" #: lib/krberror.c:1375 lib/krberror.c:1377 lib/krberror.c:1379 msgid "(user-to-user)" msgstr "(ngưá»i dùng-đến-ngưá»i dùng)" #: lib/krberror.c:1420 #, c-format msgid "Unknown KRB-ERROR error code %d." msgstr "Mã lá»—i KRB-ERROR lạ %d." #: lib/principal.c:429 #, fuzzy, c-format msgid "Could not set principal name: %s\n" msgstr "Không thể phân tách mục chính cá»§a trình khách “%sâ€: %s" #: lib/priv.c:376 #, fuzzy, c-format msgid "Writing PRIV to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/priv.c:383 #, fuzzy, c-format msgid "Writing PRIV in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/priv.c:398 #, fuzzy, c-format msgid "Writing PRIV to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/priv.c:456 #, fuzzy, c-format msgid "Reading PRIV from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/priv.c:463 #, fuzzy, c-format msgid "Reading PRIV in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/priv.c:478 #, fuzzy, c-format msgid "Reading PRIV from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/safe.c:286 #, fuzzy, c-format msgid "Writing SAFE to %s...\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...\n" #: lib/safe.c:293 #, fuzzy, c-format msgid "Writing SAFE in %s format...\n" msgstr "Äang ghi lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/safe.c:308 #, fuzzy, c-format msgid "Writing SAFE to %s...done\n" msgstr "Äang ghi lá»—i KRB-ERROR vào %s...hoàn tất\n" #: lib/safe.c:366 #, fuzzy, c-format msgid "Reading SAFE from %s...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...\n" #: lib/safe.c:373 #, fuzzy, c-format msgid "Reading SAFE in %s format...\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR theo định dạng %s...\n" #: lib/safe.c:388 #, fuzzy, c-format msgid "Reading SAFE from %s...done\n" msgstr "Äang Ä‘á»c lá»—i KRB-ERROR từ %s...hoàn tất\n" #: lib/ticket.c:197 #, fuzzy, c-format msgid "Could not set sname: %s\n" msgstr "Không thể liệt kê các vé: %s" #: lib/tkt.c:1339 #, fuzzy, c-format msgid "Time of last initial request for a TGT:\t%s" msgstr "Yêu cầu đầu tiên cuối vào" #: lib/tkt.c:1390 #, c-format msgid "Authtime:\t%s" msgstr "" #: lib/tkt.c:1397 #, c-format msgid "Starttime:\t%s" msgstr "" #: lib/tkt.c:1408 #, c-format msgid "Endtime:\t%s" msgstr "" #: lib/tkt.c:1416 #, c-format msgid "Renewable till:\t%s" msgstr "" #: lib/tkt.c:1424 #, c-format msgid "Server:\t\t%s key %s (%d)\n" msgstr "" #: lib/tkt.c:1433 #, c-format msgid "Ticket key:\t%s (%d) protected by %s (%d)\n" msgstr "" #: lib/tkt.c:1440 #, c-format msgid "Ticket flags:\t" msgstr "" #: lib/utils.c:152 #, c-format msgid "%s: Memory allocation failed\n" msgstr "" #: src/ccache2shishi.c:69 src/ccache2shishi.c:83 src/keytab2shishi.c:65 #: src/keytab2shishi.c:79 src/shisa.c:424 src/shishi.c:59 src/shishid.c:495 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Hãy thá»­ lệnh trợ giúp “%s --help†để xem thêm thông tin.\n" #: src/ccache2shishi.c:82 src/keytab2shishi.c:78 src/shisa.c:469 #: src/shishi.c:100 #, c-format msgid "too many arguments" msgstr "quá nhiá»u đối số" #. TRANSLATORS: The placeholder indicates the bug-reporting address #. for this package. Please add _another line_ saying #. "Report translation bugs to <...>\n" with the address for translation #. bugs (typically your translation team's web or email address). #: src/ccache2shishi.c:91 src/keytab2shishi.c:87 src/shishid.c:504 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" "\n" "Report bugs to <%s>.\n" msgstr "" "\n" "Má»i đối số bắt buá»™c phải sá»­ dụng vá»›i tùy chá»n dài cÅ©ng bắt buá»™c vá»›i tùy chá»n " "ngắn.\n" "\n" "Hãy thông báo lá»—i nào cho <%s>.\n" "Hãy thông báo lá»—i dịch cho translation-team-vi@lists.sourceforge.net.\n" #: src/ccache2shishi.c:99 src/keytab2shishi.c:95 src/shishi.c:111 #, c-format msgid "cannot initialize libshishi" msgstr "không thể khởi tạo libshishi" #: src/ccache2shishi.c:136 #, fuzzy, c-format msgid "No tickets written.\n" msgstr "Không có vé nào bị gỡ bá».\n" #: src/ccache2shishi.c:138 #, fuzzy, c-format msgid "%zu ticket written.\n" msgid_plural "%zu tickets written.\n" msgstr[0] "%d vé bị gỡ bá».\n" #: src/keytab2shishi.c:137 src/keytab2shishi.c:170 #, c-format msgid "No keys written.\n" msgstr "" #: src/keytab2shishi.c:139 src/keytab2shishi.c:172 #, c-format msgid "%zu key written.\n" msgid_plural "%zu keys written.\n" msgstr[0] "" #: src/shisa.c:144 msgid "Account is" msgstr "Tài khoản là" #: src/shisa.c:145 msgid "DISABLED" msgstr "BỊ TẮT" #: src/shisa.c:145 msgid "enabled" msgstr "đã bật" #: src/shisa.c:146 msgid "Current key version" msgstr "Phiên bản khoá hiện thá»i" #: src/shisa.c:148 msgid "Account not valid before" msgstr "Tài khoản không hợp lệ trước" #: src/shisa.c:150 msgid "Last initial TGT request at" msgstr "Yêu cầu TGT đầu tiên cuối vào" #: src/shisa.c:152 msgid "Last initial request at" msgstr "Yêu cầu đầu tiên cuối vào" #: src/shisa.c:154 msgid "Last TGT request at" msgstr "Yêu cầu TGT cuối vào" #: src/shisa.c:156 msgid "Last ticket renewal at" msgstr "Gia hạn vé cuối vào" #: src/shisa.c:158 msgid "Password expire on" msgstr "Mật khẩu hết hạn vào" #: src/shisa.c:160 msgid "Account expire on" msgstr "Tài khoản hết hạn vào" #: src/shisa.c:173 msgid "Key" msgstr "Khóa" #: src/shisa.c:175 msgid "\tEtype" msgstr "\tKiểu E" #: src/shisa.c:178 msgid "\tPriority" msgstr "\tƯu tiên" #: src/shisa.c:182 msgid "\tSalt" msgstr "\tMuối" #: src/shisa.c:184 msgid "\tS2K params" msgstr "\tTham số S2K" #: src/shisa.c:187 msgid "\tPassword" msgstr "\tMật khẩu" #: src/shisa.c:190 msgid "\tKey is" msgstr "\tKhoá" #: src/shisa.c:190 msgid "MISSING" msgstr "BỊ THIẾU" #: src/shisa.c:268 #, c-format msgid "Adding realm `%s'...\n" msgstr "Äang thêm địa hạt “%sâ€...\n" #: src/shisa.c:270 #, c-format msgid "Adding principal `%s@%s'...\n" msgstr "Äang thêm mục chính “%s@%sâ€...\n" #: src/shisa.c:281 #, c-format msgid "Adding realm `%s'...done\n" msgstr "Äang thêm địa hạt “%sâ€... hoàn tất\n" #: src/shisa.c:283 #, c-format msgid "Adding principal `%s@%s'...done\n" msgstr "Äang thêm mục chính “%s@%sâ€... hoàn tất\n" #: src/shisa.c:314 #, c-format msgid "Removing realm `%s'...\n" msgstr "Äang gỡ bỠđịa hạt “%sâ€...\n" #: src/shisa.c:316 #, c-format msgid "Removing principal `%s@%s'...\n" msgstr "Äang gỡ bá» mục chính “%s@%sâ€...\n" #: src/shisa.c:324 #, c-format msgid "Removing realm `%s'...done\n" msgstr "Äang gỡ bỠđịa hạt “%sâ€... hoàn tất\n" #: src/shisa.c:326 #, c-format msgid "Removing principal `%s@%s'...done\n" msgstr "Äang gỡ bá» mục chính “%s@%sâ€... hoàn tất\n" #: src/shisa.c:373 #, c-format msgid "Password for `%s@%s': " msgstr "Mật khẩu cho “%s@%sâ€: " #: src/shisa.c:376 msgid "Password: " msgstr "Mật khẩu : " #: src/shisa.c:378 #, c-format msgid "Could not read password" msgstr "Không thể Ä‘á»c mật khẩu" #: src/shisa.c:390 #, c-format msgid "" "Could not create key (%d):\n" "%s" msgstr "" "Không thể tạo khoá (%d):\n" "%s" #: src/shisa.c:429 src/shishi.c:64 #, c-format msgid "" "\n" "Mandatory arguments to long options are mandatory for short options too.\n" msgstr "" "\n" "Má»i đối số bắt buá»™c phải sá»­ dụng vá»›i tùy chá»n dài cÅ©ng bắt buá»™c vá»›i tùy chá»n " "ngắn.\n" #: src/shisa.c:478 #, c-format msgid "" "Initialization failed:\n" "%s" msgstr "" "Lá»—i khởi tạo:\n" "%s" #: src/shisa.c:483 #, c-format msgid "" "Could not read library options `%s':\n" "%s" msgstr "" "Không thể Ä‘á»c các tùy chá»n vá» thư viện “%sâ€:\n" "%s" #: src/shisa.c:488 #, c-format msgid "" "Shishi initialization failed:\n" "%s" msgstr "" "Lá»—i khởi tạo Shisi:\n" "%s" #: src/shisa.c:493 #, c-format msgid "" "Could not set encryption type `%s':\n" "%s" msgstr "" "Không thể đặt kiểu mã hóa “%sâ€:\n" "%s" #: src/shisa.c:501 #, c-format msgid "too few arguments" msgstr "quá ít đối số" #: src/shisa.c:532 #, c-format msgid "Adding default realm `%s'...\n" msgstr "Äang thêm địa hạt mặc định “%sâ€...\n" #: src/shisa.c:552 #, c-format msgid "Modifying principal `%s@%s'...\n" msgstr "Äang sá»­a đổi mục chính “%s@%sâ€...\n" #: src/shisa.c:559 #, c-format msgid "Modifying principal `%s@%s'...done\n" msgstr "Äang sá»­a đổi mục chính “%s@%sâ€... hoàn tất\n" #: src/shisa.c:563 #, c-format msgid "Adding key to `%s@%s'...\n" msgstr "Äang thêm khoá vào “%s@%sâ€...\n" #: src/shisa.c:573 #, c-format msgid "Adding key to `%s@%s'...done\n" msgstr "Äang thêm khoá vào “%s@%sâ€... hoàn tất\n" #: src/shisa.c:577 #, c-format msgid "Removing key from `%s@%s'...\n" msgstr "Äang gỡ bá» khoá khá»i “%s@%sâ€...\n" #: src/shisa.c:590 #, c-format msgid "Removing key from `%s@%s'...done\n" msgstr "Äang gỡ bá» khoá khá»i “%s@%sâ€... hoàn tất\n" #: src/shishi.c:115 #, c-format msgid "Could not set encryption types: %s" msgstr "Không thể đặt các kiểu mã hóa: %s" #: src/shishi.c:127 #, c-format msgid "Could not parse client principal \"%s\": %s" msgstr "Không thể phân tách mục chính cá»§a trình khách “%sâ€: %s" #: src/shishi.c:140 #, c-format msgid "Could not parse server principal \"%s\": %s" msgstr "Không thể phân tách mục chính cá»§a trình phục vụ “%sâ€: %s" #: src/shishi.c:146 #, c-format msgid "Could not read library options: %s" msgstr "Không thể Ä‘á»c các tùy chá»n cá»§a thư viện: %s" #: src/shishi.c:164 #, c-format msgid "Invalid --starttime date `%s'" msgstr "Ngày tháng “--starttime†(giá» bắt đầu) không hợp lệ “%sâ€" #: src/shishi.c:174 #, c-format msgid "Invalid --endtime date `%s'" msgstr "Ngày tháng “--endtime†(giá» kết thúc) không hợp lệ “%sâ€" #: src/shishi.c:184 #, c-format msgid "Invalid --renew-till date `%s'" msgstr "Ngày tháng “--renew-till†(gia hạn đến) không hợp lệ “%sâ€" #: src/shishi.c:203 #, c-format msgid "Tickets in `%s':\n" msgstr "Vé trong “%sâ€:\n" #: src/shishi.c:208 #, c-format msgid "Could not list tickets: %s" msgstr "Không thể liệt kê các vé: %s" #: src/shishi.c:225 #, c-format msgid "Removing ticket:\n" msgstr "Äang gỡ bá» vé:\n" #: src/shishi.c:232 #, c-format msgid "" "Could not destroy ticket %d:\n" "%s" msgstr "" "Không thể há»§y vé %d:\n" "%s" #: src/shishi.c:242 #, c-format msgid "No tickets removed.\n" msgstr "Không có vé nào bị gỡ bá».\n" #: src/shishi.c:244 #, c-format msgid "%d ticket removed.\n" msgid_plural "%d tickets removed.\n" msgstr[0] "%d vé bị gỡ bá».\n" #: src/shishi.c:277 #, c-format msgid "could not get ticket as `%s' for `%s'" msgstr "không thể lấy vé như “%s†cho “%sâ€" shishi-1.0.3/po/insert-header.sin0000644000000000000000000000124014273615066013563 00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } shishi-1.0.3/po/zh_CN.gmo0000644000000000000000000004414114273615266012034 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,É…,O. V.a. i. t.€.Dˆ.bÍ.0/ L/Y/ol/Ü/ò/ 0 0(0!G0'i0‘0!­0Ï0è01!#1E1'a16‰10À1!ñ1320G2'x2* 2Ë2ç26ú2 13XR3c«34+4(C4(l4#•4¹4Ô4&ç45,5H5[5(b51‹5-½5!ë5$ 6$26'W6'6'§6Ï6$å6' 7'27Z76t7!«7)Í7#÷7$8+@8*l8+—8+Ã8ï89919$G9-l9š9!¹9 Û9ü9*:0@:q:'‚:ª:Ê:ç:;;7;Q;k;lr;ß;÷;<.<KG<“<%š<À<Ó<æ<!=$$=I=h="{=ž= ¸=Å=â=ò= > >$>@>-V>„>>³>Ï>$î>"?!6?X?$w?!œ?!¾?à?ÿ?@9/@ i@!v@!˜@'º@1â@!A36A&jA6‘A'ÈA*ðAB1B JBkB~BœB»B×B(óBC*-CXC!xC-šC%ÈCîC: D$HD=mD«DÉDWèD@EVE oE|E•EU´E F*#F*NF$yF4žF#ÓF÷F GG".GQG!mGG,¥GÒGÙGñG H"H ;H GH THŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2015-11-13 19:48+0800 Last-Translator: Tianze Wang Language-Team: Chinese (simplified) Language: zh_CN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=1; plural=0; X-Generator: Poedit 1.8.5 Etype 密钥为 å¯†ç  ä¼˜å…ˆçº§ S2K 傿•° ç›å€¼ é•¿é€‰é¡¹ä¸­çš„å¿…é€‰å‚æ•°å¯¹äºŽçŸ­é€‰é¡¹æ¥è¯´ä¹Ÿæ˜¯å¿…选的。 é•¿é€‰é¡¹ä¸­çš„å¿…é€‰å‚æ•°å¯¹äºŽçŸ­é€‰é¡¹æ¥è¯´ä¹Ÿæ˜¯å¿…选的。 请将 bug 报告给 <%s>。 移除了 %d 个 凭æ®ã€‚ (pkinit)(user-to-user)获å–当剿—¶é—´å¤±è´¥ã€‚这一数值通常仅用于内部处ç†ï¼Œä½†å¯¹äºŽæˆ‘们æ¥è¯´æ˜¯å¿…ä¸å¯å°‘的。æŸé¡¹æœåŠ¡ä¸å¯ç”¨è´¦æˆ·å¤±æ•ˆäºŽè´¦æˆ·ä¸ºè´¦æˆ·åœ¨æ­¤ä¹‹å‰ä¸å¯ç”¨æ·»åŠ é»˜è®¤é¢†åŸŸâ€œ%sâ€... 将密钥添加到“%s@%sâ€... 将密钥添加到“%s@%sâ€...å®Œæˆ æ·»åŠ ä¸»ä½“â€œ%s@%sâ€... 添加主体“%s@%sâ€...å®Œæˆ æ·»åŠ é¢†åŸŸâ€œ%sâ€... 添加领域“%sâ€...å®Œæˆ éœ€è¦è¿›è¡Œé™„加预认è¯éœ€è¦æŒ‡å®šå¯é€‰çš„è®¤è¯æ–¹å¼å‚数超过有效范围。å°è¯•访问ä¸å­˜åœ¨çš„密钥类型。Base64ç¼–ç æˆ–è§£ç å¤±è´¥ã€‚å¯èƒ½æ˜¯æ•°æ®æŸå?请求和回å¤ä¸­çš„客户端å称值ä¸åŒã€‚æ•°æ®åº“中找ä¸åˆ°è¯¥å®¢æˆ·ç«¯å®¢æˆ·ç«¯å°šæœªå¤„äºŽæœ‰æ•ˆçŠ¶æ€ - 请ç¨åŽé‡è¯•请求和回å¤ä¸­çš„客户端领域值ä¸åŒã€‚æ•°æ®åº“中的客户端数æ®å·²è¿‡æœŸå®¢æˆ·ç«¯å¯†é’¥ä½¿ç”¨æ—§çš„主密钥加密客户端è¯ä¹¦å·²è¢«åŠé”€æ—¶é’Ÿå差太大å°è¯•链接失败。请é‡è¯•,或检查å¯ç”¨æ€§ã€‚无法创建密钥(%d): %s无法使用所给的密钥解密 AP-REQ。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚无法使用所给的密钥解密凭æ®ï¼ˆticket)。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚无法销æ¯å‡­æ® %d: %s无法列出凭æ®ï¼š%s无法解æžå®¢æˆ·ç«¯ä¸»ä½““%sâ€ï¼š%sæ— æ³•è§£æžæœåŠ¡å™¨ä¸»ä½“â€œ%sâ€ï¼š%s无法读å–库选项“%sâ€ï¼š %s无法读å–库选项:%s无法读å–å¯†ç æ— æ³•设置加密类型“%sâ€ï¼š %s无法设置加密类型:%sæœåС噍è¯ä¹¦å·²è¢«åŠé”€å½“å‰å¯†é’¥ç‰ˆæœ¬ç¦ç”¨ PKCS5 æè¿°ç¬¦çš„导出密钥太长。 PKCS5 æè¿°ç¬¦çš„å¯¼å‡ºå¯†é’¥é•¿åº¦ä¸æ­£ç¡®ã€‚è¡ç”Ÿå¯†é’¥ææ–™è¿‡çŸ­ï¼Œæ— æ³•被应用。添加密钥到主体时出错。添加主体到数æ®åº“时出错。添加领域到数æ®åº“时出错。枚举数æ®åº“中的密钥时出错。枚举数æ®åº“中的主体时出错。枚举数æ®åº“中的领域时出错。查找主体出错。从主体中移除密钥时出错。从数æ®åº“中移除主体时出错。从数æ®åº“ä¸­ç§»é™¤é¢†åŸŸæ—¶å‡ºé”™ã€‚éªŒè¯ AP 回å¤å¤±è´¥ã€‚ä½¿ç”¨å¥æŸ„å¤±è´¥ã€‚ç¼ºå°‘å¥æŸ„,或é…置错误。字段对于该实现æ¥è¯´å¤ªé•¿Shissa é…置文件输入/输出错误。一般错误(以 e-text æè¿°ï¼‰æ¶ˆæ¯ä¸­çš„æ ¡éªŒå’Œç±»åž‹ä¸æ­£ç¡®KDC 回å¤ä¸­ä½¿ç”¨çš„密钥类型错误。AP 请求中使用的密钥类型错误。TGS 回å¤ä¸­ä½¿ç”¨çš„密钥类型错误。KDC 回å¤ä¸­ä½¿ç”¨çš„å¯†é’¥ç±»åž‹é”™è¯¯ã€‚æ¶ˆæ¯æ–¹å‘䏿­£ç¡®ç½‘络地å€é”™è¯¯æ¶ˆæ¯ä¸­çš„åºå·é”™è¯¯åˆå§‹åŒ–失败: %s解密字段的完整性检查失败低等级加密程åºä¸­å‡ºçŽ°å†…éƒ¨é”™è¯¯ã€‚--endtime 日期“%sâ€æ— æ•ˆ--renew-till 日期“%sâ€æ— æ•ˆ--starttime 日期“%sâ€æ— æ•ˆPKCS5 æè¿°ç¬¦æ— æ•ˆã€‚è°ƒç”¨å‚æ•°æ— æ•ˆï¼šå€¼é”™è¯¯æˆ–未知。PKCS5 æè¿°ç¬¦ä¸­çš„迭代计数申明无效。msg ç±»åž‹æ— æ•ˆä¼ é€’ç»™è°ƒç”¨å‡½æ•°çš„å‡­æ®æ— æ•ˆã€‚KDC 策略拒ç»äº†è¿‡æ¸¡è·¯å¾„KDC 无法适é…请求选项KDC 䏿”¯æŒæ ¡éªŒç±»åž‹KDC 䏿”¯æŒåР坆选项KDC 䏿”¯æŒ padata 类型KDC 䏿”¯æŒè¿‡æ¸¡ç±»åž‹KDC 策略拒ç»äº†è¯·æ±‚密钥用于加密凭æ®çš„密钥属性与所æä¾›çš„密钥ä¸ç¬¦ã€‚这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚上一次 TGT 请求于上一次åˆå§‹ TGT 请求于上一次åˆå§‹è¯·æ±‚于凭æ®ä¸Šä¸€æ¬¡æ›´æ–°äºŽåº•层加密原语失败。这通常æ„味ç€å¯†ç æœ‰é”™æˆ–æ•°æ®æŸå。丢失shishi 库中出现内存分é…错误消æ¯é¡ºåºé”™è¯¯æ¶ˆæ¯æµè¢«æ›´æ”¹ä¿®æ”¹ä¸»ä½““%s@%sâ€... 修改主体“%s@%sâ€...å®Œæˆ æœ‰å¤šä¸ªå¯†é’¥åŒ¹é…æœç´¢æ¡ä»¶ã€‚æ•°æ®åº“中有多个主体项åŒå‘认è¯å¤±è´¥æ— æ³•确定所给领域的 KDC。未为进程指定 TTY。没有错误没有移除任何凭æ®ã€‚ 密ç å¤±æ•ˆäºŽâ€œ%s@%sâ€çš„密ç ï¼šå¯†ç å·²è¿‡æœŸå¯†ç ï¼šç­–略拒ç»äº†è¿‡æ¸¡è·¯å¾„预认è¯ä¿¡æ¯æ— æ•ˆä¸»ä½“未与任何匹é…的密钥相关è”。主体å语法错误。å议版本ä¸åŒ¹é…æä¾›çš„缓冲区太å°ã€‚从 %s ä¸­è¯»å– KRB-ERROR... 从 %s ä¸­è¯»å– KRB-ERROR...å®Œæˆ ä»¥ %s æ ¼å¼è¯»å– KRB-ERROR ... 引用了无效的加密密钥。从“%s@%sâ€ç§»é™¤å¯†é’¥... 从“%s@%sâ€ç§»é™¤å¯†é’¥...å®Œæˆ ç§»é™¤ä¸»ä½“â€œ%s@%sâ€...å®Œæˆ ç§»é™¤ä¸»ä½“â€œ%s@%sâ€...å®Œæˆ ç§»é™¤é¢†åŸŸâ€œ%sâ€...å®Œæˆ ç§»é™¤é¢†åŸŸâ€œ%sâ€...å®Œæˆ ç§»é™¤å‡­æ®ï¼š 请求和回å¤ä¸­çš„å›žæ”¾ä¿æŠ¤å€¼ï¼ˆå½“å‰ï¼‰ä¸åŒã€‚é‡å¤è¯·æ±‚䏿”¯æŒè¯·æ±‚çš„å议版本å·è¯·æ±‚çš„æœåŠ¡å™¨å’Œå‡­æ®ä¸ç¬¦è¯·æ±‚çš„èµ·å§‹æ—¶é—´æ™šäºŽç»“æŸæ—¶é—´è¯·æ±‚对于 UDP æ¥è¯´è¿‡å¤§ï¼Œæ”¹ç”¨ TCP é‡è¯•æ•°æ®åº“中找ä¸åˆ°è¯¥æœåС噍æœåŠ¡å™¨å°šæœªå¤„äºŽæœ‰æ•ˆçŠ¶æ€ - 请ç¨åŽé‡è¯•æœåС噍䏻体仅坹 user2user 有效æœåŠ¡å™¨æ”¶åˆ°è¯·æ±‚åŽè¿”回了一个错误消æ¯ã€‚æ•°æ®åº“中的æœåŠ¡å™¨æ•°æ®å·²è¿‡æœŸæœåŠ¡å™¨å¯†é’¥ä½¿ç”¨æ—§çš„ä¸»å¯†é’¥åŠ å¯†æœåС坆钥ä¸å¯ç”¨æ— æ³•åˆå§‹åŒ– Shisa。无法打开 Shisha æ•°æ®åº“。Shisa è¿è¡ŒæˆåŠŸåˆå§‹åŒ– Shishi 失败: %s指定的密钥版本ä¸å¯ç”¨æä¾›çš„主体ä¸å­˜åœ¨ã€‚æä¾›çš„领域ä¸å­˜åœ¨ã€‚Shisha é…ç½®å£ä»¤ä¸­æœ‰è¯­æ³•错误。TGT 已被åŠé”€ASN.1 结构体ä¸åŒ…嫿Œ‡å®šçš„元素。Shisha é…置文件ä¸å­˜åœ¨ã€‚客户端或æœåŠ¡å™¨æœ‰ç©ºå¯†é’¥æ— æ³•è®¿é—®é¦–é€‰æ–‡ä»¶ã€‚è¯·æ£€æŸ¥æƒé™ã€‚所指的 ASN.1 元素ä¸å«æœ‰å€¼ã€‚å¯†é’¥å¤ªå¤§ï¼Œæ— æ³•ä½¿ç”¨ã€‚å½“å‰ AP å›žå¤æŒ‡å®šäº†ä¸€ä¸ªä¸å…许的密钥类型。ç§é’¥ä½¿ç”¨äº†ä¸å…¼å®¹çš„类型。bind() 系统调用失败。这通常æ„å‘³ç€æƒé™ä¸è¶³ã€‚close() 系统调用失败。sendto() 系统调用失败。sockey() 系统调用失败。这通常æ„味ç€ä½ çš„ç³»ç»Ÿä¸æ”¯æŒè¯¥socket类型。凭æ®ä¸Žæˆ‘们无关凭æ®å’Œè®¤è¯è€…ä¸ç¬¦å‡­æ®å¤±æ•ˆå‡­æ®æ— æ³•用于延期凭æ®å°šæœªå¤„于有效状æ€å‡­æ®é›†ï¼ˆticket set)未åˆå§‹åŒ–。这通常æ„味ç€å†…部应用程åºé”™è¯¯ã€‚“%sâ€ä¸­çš„凭æ®ï¼š 试图添加一个已ç»å­˜åœ¨çš„主体。试图添加一个已ç»å­˜åœ¨çš„领域。试图移除一个éžç©ºçš„领域。å°è¯•使用“%s --helpâ€ä»¥èŽ·å–æ›´å¤šä¿¡æ¯ã€‚ 未知的 KRB-ERROR é”™è¯¯ç  %d。未知 Shisa é”™è¯¯æœªçŸ¥é”™è¯¯åŒæ–¹éªŒè¯å¤±è´¥ã€‚以 %s æ ¼å¼å†™å…¥ KRB-ERROR ... å°† KRB-ERROR 写入 %s... å°† KRB-ERROR 写入 %s...å®Œæˆ æ— æ³•åˆå§‹åŒ–shishi无法为“%2$sâ€èŽ·å–“%1$sâ€çš„凭æ®å¯ç”¨libshishi:信æ¯ï¼š%slibshishi:信æ¯ï¼š%s libshishi:警告:%slibshishi:警告:%s shisa:%s 傿•°å¤ªå°‘傿•°å¤ªå¤šshishi-1.0.3/po/Makevars0000644000000000000000000000716614273615176012031 00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ \ \ --flag=_:1:pass-c-format\ --flag=N_:1:pass-c-format\ --flag=error:3:c-format --flag=error_at_line:5:c-format\ \ --from-code=UTF-8\ --flag=asprintf:2:c-format --flag=vasprintf:2:c-format\ --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format\ --flag=wrapf:1:c-format\ $${end_of_xgettext_options+} # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Simon Josefsson # This tells whether or not to prepend "GNU " prefix to the package # name that gets inserted into the header of the $(DOMAIN).pot file. # Possible values are "yes", "no", or empty. If it is empty, try to # detect it automatically by scanning the files in $(top_srcdir) for # "GNU packagename" string. PACKAGE_GNU = # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = bug-shishi@gnu.org # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' # context. Possible values are "yes" and "no". Set this to yes if the # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no # These options get passed to msgmerge. # Useful options are in particular: # --previous to keep previous msgids of translated messages, # --quiet to reduce the verbosity. MSGMERGE_OPTIONS = # These options get passed to msginit. # If you want to disable line wrapping when writing PO files, add # --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and # MSGINIT_OPTIONS. MSGINIT_OPTIONS = # This tells whether or not to regenerate a PO file when $(DOMAIN).pot # has changed. Possible values are "yes" and "no". Set this to no if # the POT file is checked in the repository and the version control # program ignores timestamps. PO_DEPENDS_ON_POT = yes # This tells whether or not to forcibly update $(DOMAIN).pot and # regenerate PO files on "make dist". Possible values are "yes" and # "no". Set this to no if the POT file and PO files are maintained # externally. DIST_DEPENDS_ON_UPDATE_PO = yes shishi-1.0.3/po/fi.gmo0000644000000000000000000005102614273615266011431 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,Ý…, c.q. x. ‚.. .Z±.æ /8ó/,0 50ˆV0ß0ÿ01%1#C11g17™1)Ñ1/û1+2#I2m2,‰2/¶22æ2A33[3$3?´33ô30(4/Y4"‰4 ¬4CÍ4&585‡º5+B6.n6>6?Ü677.T7 ƒ72¤7+×7&8*8?8:U8@8GÑ8-91G9*y9@¤9Gå9A-:#o:-“:1Á:'ó:(;CD;,ˆ;1µ;)ç;,<6><5u<7«<<ã< =:='Q=y=3’=0Æ=0÷=3(>2\>#>I³>?ý>=?.W?.†?*µ?!à?@@7@'U@}@—ƒ@&A/BA)rA4œA}ÑAOB%WB}BB(¢B.ËB;úB+6C&bC&‰C"°C ÓC!àC!D%$DJD bD*mD%˜DC¾D!E-$E!RE$tE*™E!ÄE"æE1 F7;F(sF.œFËF"èF Gl%G’G2¤G2×G9 H=DH%‚H@¨HPéH/:I1jI0œI&ÍIôI%J6JEJ3eJ)™J ÃJ(äJ K2K&RK*yK?¤K0äK&L9]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi-1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2013-04-04 11:26+0300 Last-Translator: Jorma Karvonen Language-Team: Finnish Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: KBabel 1.11.2 Salaustyyppi Avain Salasana Prioriteetti S2K-parametrit Salt-argumentti Pakolliset argumentit pitkille valitsimille ovat pakollisia myös lyhyille valitsimille. Pakolliset argumentit pitkille valitsimille ovat pakollisia myös lyhyille valitsimille. Ilmoita virheistä (englanniksi) osoitteeseen <%s>. Ilmoita käännösvirheistä osoitteeseen . %d pääsylippu poistettu. %d pääsylippua poistettu. (pkinit)(käyttäjältä-käyttäjälle)Pyyntö päivän nykyisestä hetkestä epäonnistui. Tämä on tavallisesti sisäinen, mutta kelvollinen aika on meille välttämätön.Palvelu ei ole käytettävissäTili vanheni pääosapuolessaTili onTili ei ole kelvollinen ennenLisätään oletusalue â€%sâ€... Lisätään avain pääosapuoleen â€%s@%sâ€... Lisätään avain pääosapuoleen â€%s@%sâ€...valmis Lisätään pääosapuoli â€%s@%sâ€... Lisätään pääosapuoli â€%s@%sâ€...valmis Lisätään alue â€%sâ€... Lisätään alue â€%sâ€...valmis Lisäesitodennusta tarvittuVaihtoehtoinen todennusmenetelmä vaadittiinArgumentti on sallitun lukualueen ulkopuolella.Yritettiin kutsua ei-olemassaolevaa avaintyyppiä.Base64-koodaus tai -dekoodaus epäonnistui. Tiedot vaurioituneet?Asiakasnimi eroaa pyynnön ja vastauksen välillä.Asiakasta ei löytynyt tietokannastaAsiakas ei ole vielä kelvollinen - yritä myöhemmin uudelleenAsiakasalue eroaa pyynnön ja vastauksen välillä.Asiakkaan tiedot tietokannassa ovat vanhentuneetAsiakkaan avain salattu vanhassa pääavaimessaAsiakkaan valtakirja on peruutettuAikavääristymä on liian suuriYhteysyritys epäonnistui. Yritä uudelleen tai tarkista saatavuus.Avaimen (%d) luominen epäonnistui: %sAP-REQ-salauksen purkaminen käyttäen tarjottua avainta epäonnistui. Tämä viittaa tavallisesti sisäiseen sovellusvirheeseen.Pääsylipun salauksen purkaminen käyttäen tarjottua avainta epäonnistui. Tämä viittaa tavallisesti sisäiseen sovellusvirheeseen.Pääsylipun %d tuhoaminen epäonnistui: %sPääsylippujen luetteleminen epäonnistui: %sAsiakaspääosapuolen â€%s†jäsentäminen epäonnistui: %sPalvelinpääosapuolen â€%s†jäsentäminen epäonnistui: %sKirjastovalitsimien â€%s†lukeminen epäonnistui: %sKirjastovalitsimien lukeminen epäonnistui: %sSalasanan lukeminen epäonnistuiSalaustyypin â€%s†asettaminen epäonnistui: %sSalaustyyppien asettaminen epäonnistui: %sValtakirjat palvelimelle on peruutettuNykyinen avainversioPOISTETTU KÄYTÖSTÄPeriytynyt avain on liian pitkä PKCS5-määrittelijälle.Periytynyt avainpituus on virheellinen PKCS5-määrittelijälle.Periytynyt avainmateriaali oli liian lyhyt ollakseen käyttökelpoinen.Virhe lisättäessä avainta pääosapuoleen.Virhe lisättäessä pääosapuolta tietokantaan.Virhe lisättäessä aluetta tietokantaan.Virhe muunnettaessa avaimia luetelluiksi tyypeiksi tietokannassaVirhe muunnettaessa pääosapuolia luetelluiksi tyypeiksi tietokannassaVirhe muunnettaessa alueita luetelluiksi tyypeiksi tietokannassa.Virhe etsittäessä pääosapuolta.Virhe poistettaessa avainta pääosapuolesta.Virhe poistettaessa pääosapuolta tietokannasta.Virhe poistettaessa alue tietokannasta.AP-vastauksen todentaminen epäonnistui.Häiriö kahvan käytössä. Kahva puuttuu tai on väärinasetettu.Kenttä on liian pitkä tälle toteutukselleTiedostosiirräntävirhe Shisa-asetustiedostolle.Yleinen virhe (kuvaus e-text -tekstissä)Sanomassa oli sopimaton tarkistussummatyyppiAP-vastauksessa käytetty virheellistä avaintyyppiä.AP-pyynnössä käytetty virheellistä avaintyyppiä.TGS-vastauksessa käytetty virheellistä avaintyyppiä.Vastauksessa KDC:stä käytetty virheellistä avaintyyppiä.Virheellinen viestisuuntaVäärä verkko-osoiteVirheellinen sekvenssinumero viestissäAlustus epäonnistui: %sSalauspuretun tiedoston eheystarkistus epäonnistuiSisäinen virhe alemman tason salausrutiineissa.Virheellinen --endtime -päivämäärä â€%sâ€Virheellinen --renew-till -päivämäärä â€%sâ€Virheellinen --starttime -päivämäärä â€%sâ€Virheellinen PKCS5-määrittelijä.Kutsussa välitetty virheellinen argumenti. Väärä tai tuntematon arvo.Virheellinen iteraatiolaskinvaatimus PKCS5-määrittelijässä.Virheellinen viestityyppiKutsussa välitetty virheellinen pääsylippu.KDC-toimintaperiaate kieltää siirretyn polunKDC ei voi mukautua pyydettyyn valitsimeenKDC ei tue tarkistussummatyyppiäKDC ei tue salaustyyppiäKDC ei tue padata-tyyppiäKDC ei tue transited-tyyppiäKDC-toimintaperiaate kieltää pyynnönAvainAvaintyyppi, jota käytettiin pääsylipun salaukseen, ei täsmää tarjotun avaimen kanssa. Tämä viittaa tavallisesti sisäiseen sovellusvirheeseen.Viimeinen TGT-pyyntö pääosapuolessaViimeinen alustus-TGT -pyyntö pääosapuolessaViimeinen alustuspyyntö pääosapuolessaViimeinen pääsylippu-uudistaminen pääosapuolessaAlemman tason salausprimitiivi epäonnistui. Tämä tavallisesti viittaa väärään salasanaan tai tietojen vaurioitumiseen.PUUTTUUMuistinvarausvirhe shishi-kirjastossaViesti on rikkiViestivirta muutettuMuokataan pääosapuolta â€%s@%sâ€... Muokataan pääosapuolta â€%s@%sâ€...valmis Useampi kuin yksi avain täsmää annettuun hakukriteeriin.Useita pääosapuolitietueita tietokannassaMolemminpuolinen todennus epäonnistuiEi tunneta KDC:tä annetulle alueelle.Prosessiin ei ole liitetty TTY:täEi virhettäPääsylippuja ei ole poistettu. Salasana vanheni pääosapuolessaSalasana käyttäjälle â€%s@%sâ€: Salasana on vanhentunutSalasana: Toimintaperiaate kieltää siirretyn polunEsitodennustiedot olivat virheellisetPääosapuoli ei ole liitetty mihinkään täsmäävään avaimeen.Pääosapuolen nimisyntaksivirhe.Yhteyskäytäntöversion täsmäämättömyysTarjottu puskuri oli liian pieni.Luetaan KRB-ERROR tiedostosta %s... Luetaan KRB-ERROR tiedostosta %s...valmis Luetaan KRB-ERROR %s-muodossa... Viite virheellisen salausavaimeen.Poistetaan avain pääosapuolesta â€%s@%sâ€... Poistetaan avain pääosapuolesta â€%s@%sâ€...valmis Poistetaan pääosapuoli â€%s@%sâ€... Poistetaan pääosapuoli â€%s@%sâ€...valmis Poistetaan alue â€%sâ€... Poistetaan alue â€%sâ€...valmis Poistetaan pääsylippu: Toista suoja-arvon (vain kerran esiintyvä numero tai bittimerkkijono) ero pyynnön ja vastauksen välillä.Pyyntö on toistoPyydettyä yhteyskäytäntöversionumeroa ei tuetaPyydetty palvelin ja pääsylippu eivät täsmääPyydetty aloitusaika on myöhäisempi kuin lopettamisaikaVastaus on liian suuri UDP:lle, yritetään uudelleen TCP:näPalvelinta ei löytynyt tietokannastaPalvelin ei ole vielä kelvollinen - yritä myöhemmin uudelleenPalvelinpääosapuoli on kelvollinen vain käyttäjä-käyttäjä -viestintäänPalvelin vastasi pyyntöön virheilmoituksella.Palvelimen tiedot tietokannassa ovat vanhentuneetPalvelimen avain salattu vanhassa pääavaimessaPalveluavain ei ollut käytettävissäShisa-alustus epäonnistui.Shisa-tietokannan avaus epäonnistui.Shisa onnistuiShishi-alustus epäonnistui: %sAvaimen määritelty versio ei ole käytettävissäTarjottua pääosapuolta ei ole olemassa.Tarjottu alue ei ollut olemassa.Syntaksivirhe Shisa-asetusmerkkijonossa.TGT on peruutettuASN.1-rakenne ei sisällä osoitettua elementtiä.Shisa-asetustiedostoa ei ole olemassa.Asiakkaalla tai palvelimella on null-avainHalutun tiedoston haku epäonnistui. Tarkista käyttöoikeudet.Virheellinen ASN.1-elementti ei sisällä arvoa.Avain on liian suuri käytettäväksi.Nykyinen AP-vastaus määrittelee luvattoman avaintyypin.Yksityinen avain käyttää yhteensopimatonta salaustyyppiä.Järjestelmäkutsu bind() epäonnistui. Tämä on tavallisesti merkkinä riittämättömistä käyttöoikeuksista.Järjestelmäkutsu close() epäonnistui.Järjestelmäkutsu sendto() epäonnistui.Järjestelmäkutsu socket() epäonnistui. Tämä tavallisesti viittaa siihen, että järjestelmäsi ei tue pistoketyyppiä.Pääsylippu ei ole meillePääsylippu ja todentaja eivät täsmääPääsylippu on vanhentunutPääsylippu ei ole sopiva jälkiajoituksellePääsylippu ei ole vielä kelvollinenPääsylippujoukkoa ei ole alustettu. Tämä viittaa tavallisesti sisäiseen sovellusvirheeseen.Pääsyliput oletustiedostossa â€%sâ€: Yritettiin lisätä pääosapuoli, joka on jo olemassa.Yritettiin lisätä alue, joka on jo olemassa.Yritettiin poistaa ei-tyhjä alue.Lisätietoja komennolla â€%s --helpâ€. Tuntematon KRB-ERROR-virhekoodi %d.Tuntematon Shisa-virheTuntematon virheTodennus epäonnistui molemmilla puolilla.Kirjoitetaan KRB-ERROR %s-muodossa... Kirjoitetaan KRB-ERROR tiedostoon n %s... Kirjoitetaan KRB-ERROR tiedostoon %s...valmis kirjaston libshishi alustaminen epäonnistuipääsylipun hakeminen pääosapuolena â€%s†palvelimelle â€%s†epäonnistui.otettu käyttöönlibshishi: tiedot: %slibshishi: tiedot: %s libshishi: varoitus: %slibshishi: varoitus: %s shisa: %s liian vähän argumenttejaliian monia argumenttejashishi-1.0.3/po/stamp-po0000644000000000000000000000001214273615266011777 00000000000000timestamp shishi-1.0.3/po/fr.gmo0000644000000000000000000005073414273615266011447 00000000000000Þ•È\ œ ÐÑØ à ê ôJ`Q(²Ûänób} š³Ñë  &G]&w*ž%É*ï13L€&4Ä&ù( %Io=„ÂbàbC¦Æ)á) '5"]€&˜"¿(â -(5V3ŒÀ#ß##)G%q—"°'Ó#û 9@)z,¤%Ñ)÷$!&F%m*“¾Ú$ð)/,Y†¢Áß9ù53iz!™'»$ã&"/%Rx“q— 9QbhË*Óþ + #K .o &ž Å â !!%!:!M!d! z!…!*£!2Î!""8"W"!u""—"$º"ß"!ý"#">#a#y#•#A§#é#/ý#'-$+U$($ª$&Ç$)î$4%&M%(t%%·%#×% û% &)*&"T&w&*–&Á&;Ö&,'#?';c'3Ÿ'"Ó'9ö'50(Pf(·( ×(kø(d)$|)¡)"°)Ó)Rè);*,M*(z*"£*&Æ* í*+ "+#0+"T+w+“+³+%Ï+õ+ý+,&,=, U,`,r,Ÿ…,%. ,. 9. G.R.c.^h.ƒÇ.-K/y/‚/sŸ/030 G0U0%k0!‘0#³0"×0$ú0191,U1/‚1.²1/á1E2EW2+2*É2?ô26435k3=¡3%ß3P4!V4vx4uï4$e5 Š5/«50Û54 60A6r626-Â6Cð647 M7<Y7@–7D×738AP8;’8BÎ8I9E[9"¡9:Ä9Fÿ9@F:-‡:Eµ:1û:A-;,o;7œ;?Ô;?<@T<C•<Ù<ù<.=!C=De=@ª=!ë=$ >#2>V>Dr>I·>?'?2B?-u?4£?-Ø?%@%,@&R@y@™~@A"2AUA#tA„˜A B:'BbBwB)B+ºB9æB7 C&XC)C&©C ÐCÝCöCD.DHD+YD6…D<¼D#ùD)E!GE"iE%ŒE*²E0ÝE'F)6F(`F*‰F´F!ÔFöFZGkG6„G6»G?òG22H,eH+’HF¾H9I7?I6wI'®I#ÖI3úI.J+>J/jJ"šJ½J?ÝJK:6K2qK(¤KDÍK1L.DL7sL<«LYèL$BM%gMwMN1#NUN1iN!›Nk½N)O/?O+oO)›O4ÅO#úOP7P0GP,xP!¥P$ÇP$ìP5QGQOQcQxQ‘Q «Q¶QËQŠœMn‹FK‡6°ª}2`ÈÄ#%ƒ{lm|”chš‰G™¾Oa[Ƨ@¥d- <0Œ!vtjŸ9)޲Å“›RVQ¹3kiU¯–;·g¨YW¤ Â.uS&ž ‘…®1fˆ¢¿,7 ½À£z~D(BPÁ$­©N5_†eµ˜³¼ÃoAx¬„+¸ =4¦X¡J:T‚8HÇLw^'y Ib?º/"•Z€>]Eqr\»«’±C¶sp´* — Etype Key is Password Priority S2K params Salt Mandatory arguments to long options are mandatory for short options too. Mandatory arguments to long options are mandatory for short options too. Report bugs to <%s>. %d ticket removed. %d tickets removed. (pkinit)(user-to-user)A request for present time of day has failed. This is usually internal, but a valid time is imperative for us.A service is not availableAccount expire onAccount isAccount not valid beforeAdding default realm `%s'... Adding key to `%s@%s'... Adding key to `%s@%s'...done Adding principal `%s@%s'... Adding principal `%s@%s'...done Adding realm `%s'... Adding realm `%s'...done Additional pre-authentication requiredAlternative authentication method requiredArgument lies outside of valid range.Attempted access to non-existent key type.Base64 encoding or decoding failed. Data corrupt?Client name value differ between request and reply.Client not found in databaseClient not yet valid - try again laterClient realm value differ between request and reply.Client's entry in database has expiredClient's key encrypted in old master keyClients credentials have been revokedClock skew too greatConnection attempt failed. Try again, or check availability.Could not create key (%d): %sCould not decrypt AP-REQ using provided key. This usually indicates an internal application error.Could not decrypt Ticket using provided key. This usually indicates an internal application error.Could not destroy ticket %d: %sCould not list tickets: %sCould not parse client principal "%s": %sCould not parse server principal "%s": %sCould not read library options `%s': %sCould not read library options: %sCould not read passwordCould not set encryption type `%s': %sCould not set encryption types: %sCredentials for server have been revokedCurrent key versionDISABLEDDerived key is too long for PKCS5 descriptor.Derived key length is incorrect for PKCS5 descriptor.Derived key material is too short to be applicable.Error adding key to principal.Error adding principal to database.Error adding realm to database.Error enumerating keys in database.Error enumerating principals in database.Error enumerating realms in database.Error finding principal.Error removing key from principal.Error removing principal from database.Error removing realm from database.Failed verification of AP reply.Failure to use handle. Missing handle, or misconfigured.Field is too long for this implementationFile I/O error for Shisa configuration file.Generic error (description in e-text)Inappropriate type of checksum in messageIncorrect key type used in AP reply.Incorrect key type used in AP request.Incorrect key type used in TGS reply.Incorrect key type used in reply from KDC.Incorrect message directionIncorrect net addressIncorrect sequence number in messageInitialization failed: %sIntegrity check on decrypted field failedInternal error in low-level crypto routines.Invalid --endtime date `%s'Invalid --renew-till date `%s'Invalid --starttime date `%s'Invalid PKCS5 descriptor.Invalid argument passed in call. Wrong or unknown value.Invalid claim of iteration count in PKCS5 descriptor.Invalid msg typeInvalid ticked passed in call.KDC Policy rejects transited pathKDC cannot accommodate requested optionKDC has no support for checksum typeKDC has no support for encryption typeKDC has no support for padata typeKDC has no support for transited typeKDC policy rejects requestKeyKey type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error.Last TGT request atLast initial TGT request atLast initial request atLast ticket renewal atLow-level cryptographic primitive failed. This usually indicates bad password or data corruption.MISSINGMemory allocation error in shishi library.Message out of orderMessage stream modifiedModifying principal `%s@%s'... Modifying principal `%s@%s'...done More than one key match given search criteria.Multiple principal entries in databaseMutual authentication failedNo KDC known for given realm.No TTY assigned to process.No errorNo tickets removed. Password expire onPassword for `%s@%s': Password has expired Password: Policy rejects transited pathPre-authentication information was invalidPrincipal is not associated with any matching key.Principal name syntax error.Protocol version mismatchProvided buffer was too small.Reading KRB-ERROR from %s... Reading KRB-ERROR from %s...done Reading KRB-ERROR in %s format... Reference to invalid encryption key.Removing key from `%s@%s'... Removing key from `%s@%s'...done Removing principal `%s@%s'... Removing principal `%s@%s'...done Removing realm `%s'... Removing realm `%s'...done Removing ticket: Replay protection value (nonce) differ between request and reply.Request is a replayRequested protocol version number not supportedRequested server and ticket don't matchRequested start time is later than end timeResponse too big for UDP, retry with TCPServer not found in databaseServer not yet valid - try again laterServer principal valid for user2user onlyServer replied to the request with an error message.Server's entry in database has expiredServer's key encrypted in old master keyService key not availableShisa could not be initialized.Shisa database could not be opened.Shisa successShishi initialization failed: %sSpecified version of key is not availableSupplied principal does not exist.Supplied realm does not exist.Syntax error in Shisa configuration token.TGT has been revokedThe ASN.1 structure does not contain the indicated element.The Shisa configuration file does not exist.The client or server has a null keyThe desired file could not be accessed. Check permissions.The indicated ASN.1 element does not carry a value.The key is too large to be usable.The present AP reply specifies an inpermissible key type.The private key uses an incompatible encryption type.The system call bind() failed. This usually indicates insufficient permissions.The system call close() failed.The system call sendto() failed.The system call socket() failed. This usually indicates that your system does not support the socket type.The ticket isn't for usTicket and authenticator don't matchTicket expiredTicket not eligible for postdatingTicket not yet validTicket set not initialized. This usually indicates an internal application error.Tickets in `%s': Tried to add a principal that already exist.Tried to add a realm that already exist.Tried to remove a non-empty realm.Try `%s --help' for more information. Unknown KRB-ERROR error code %d.Unknown Shisa errorUnknown errorVerification failed on either side.Writing KRB-ERROR in %s format... Writing KRB-ERROR to %s... Writing KRB-ERROR to %s...done cannot initialize libshishicould not get ticket as `%s' for `%s'enabledlibshishi: info: %slibshishi: info: %s libshishi: warning: %slibshishi: warning: %s shisa: %s too few argumentstoo many argumentsProject-Id-Version: shishi 1.0.2 Report-Msgid-Bugs-To: bug-shishi@gnu.org PO-Revision-Date: 2015-12-23 22:59+0100 Last-Translator: Stéphane Aulery Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bugs: Report translation errors to the Language-Team address. Plural-Forms: nplurals=2; plural=(n > 1); Etype La clef est Mot de passe Priorité Paramètres S2K Sel Les arguments obligatoires pour les options longues le sont aussi pour les options courtes. Les arguments obligatoires au options longues sont aussi obligatoires pour les options courtes. Rapportez les anomalies à <%s>. %d ticket supprimé. %d tickets supprimés. (pkinit)(utilisateur-à-utilisateur)Une demande pour cette journée a échoué. Cela est généralement interne, mais une heure valide est impérative.Un service n'est pas disponibleLe compte expire àLe compte estCompte invalide avantAjout du domaine par défaut '%s'... Ajout de la clef pour '%s@%s'... Ajout de la clef pour '%s@%s'...ok Ajout de l'identifiant '%s@%s'... Ajout de l'identifiant '%s@%s'...ok Ajout du domaine '%s'... Ajout du domaine '%s'...ok Pre-authentification supplémentaire requiseMéthode d'authentification alternative requiseL’argument est en dehors de la plage valide.Essai d’accès à un type de clef inexistant.L'encodage ou le décodage en base64 a échoué. Donnée corrompue ?La valeur du nom du client diffère entre la requête et la réponse.Client non trouvé dans la base de donnéesClient encore invalide - essayez plus tardLe domaine du client diffère entre la requête et la réponse.L'entrée du client dans la base de donnée a expiréeClef du client chiffrée avec l'ancienne clef maîtreL'information d'authentification du client a été révoquéeLe décalage d'horloge est trop grandLa connexion initiée a échoué. Essayez encore ou vérifiez la disponibilité.Ne peut créer la clef (%d) : %sNe peut pas déchiffrer AP-REQ avec la clef fournie. Cela révèle généralement une erreur interne de l'application.Ne peut déchiffrer le Ticket avec la clef fournie. Cela révèle généralement une erreur interne de l'application.Ne peut détruire le ticket %d : %sNe peut lister les tickets : %sNe peut lire l'identifiant du client "%s" : %sNe peut lire l'identifiant du serveur "%s" : %sNe peut lire les options de bibliothèque '%s' : %sNe peut lire les options de bibliothèques : %sNe peut lire le mot de passeNe peut définir le type de chiffrement '%s' : %sNe peut définir le type de chiffrement : %sL'information d'authentification pour le serveur a été révoquéeVersion actuelle de clefDÉSACTIVÉLa clef dérivée est trop longue pour un descripteur PKCS5.Longueur de clef dérivée incorrecte pour un descripteur PKCS5.Le matériel de clef dérivée est trop petit pour être applicable.Erreur lors de l'ajout de la clef à l'identifiant.Erreur lors de l'ajout de l'identifiant dans la base de données.Erreur lors de l'ajout du domaine dans la base de données.Erreur lors de l'énumération des clefs dans la base de données.Erreur lors de l'énumération des identifiants dans la base de données.Erreur lors de l'énumération des domaines dans la base de données.Erreur pour trouver l'identifiant.Erreur lors de la suppression de la clef de l'identifiant.Erreur lors de la suppression de l'identifiant de la base de données.Erreur lors de la suppression du domaine de la base de données.Échec de la vérification de la réponse AP.Impossible d’utiliser le handle. Handle manquant ou mal configuré.Le champ est trop long pour cette implémentationErreur d'entrée/sortie sur le fichier de configuration de Shisa.Erreur générique (description dans e-text)Type de somme de contrôle inapproprié dans le messageUtilisation d’une clef de type incorrect dans le réponse AP.Utilisation d’une clef de type incorrect dans le requête AP.Utilisation d’une clef de type incorrect dans le réponse TGS.Utilisation d’une clef de type incorrect dans le réponse de KDC.Direction de message incorrecteAdresse réseau incorrecteNuméro de séquence incorrect dans le messageL'initialisation a échoué : %sLa vérification de l'intégrité d'un champ déchiffré a échouéeErreur interne dans les routines cryptographiques de bas-niveau.Date pour --endtime invalide '%s'Date pour --renew-till invalide '%s'Date pour --starttime invalide '%s'Descripteur PKCS5 invalide.Argument invalide passé à l’appelant. Valeur fausse ou inconnue.Revendication invalide du nombre d'itérations dans un descripteur PKCS5.Type de message invalideTicket invalide passé à l’appelant.La politique du KDC rejette les chemins transitésLe KDC ne peut pas adapter l'option demandéeLe KDC ne supporte pas le type de somme de contrôleLe KDC ne supporte pas le type de chiffrementLe KDC ne supporte pas le type padataKDC ne supporte pas le type transitéLa politique du KDC rejete la requêteClefLe type de clef utilisée pour chiffrer le ticket ne correspond pas à la clef fournie. Cela révèle généralement une erreur interne de l'application.Dernière requête TGT àDernière requête initiale TGT àDernière requête initiale àDernier renouvellement de ticket àÉchec de la primitive cryptographique de bas-niveau. Cela révèle généralement un mauvais mot de passe ou une donnée corrompue.MANQUANTEErreur d'allocation mémoire dans la bibliothèque shishi.Message hors serviceFlux du message modifiéModification de l'identifiant '%s@%s'... Modification de l'identifiant '%s@%s'...ok Plus d'une clef correspondent aux critères de recherche.Multiple entrées de principal dans la base de donnéesL'authentification mutuelle a échouéAucun KDC connu pour le domaine indiqué.Aucune console assignée au processus.Pas d'erreurAucun ticket supprimé. Le mot de passe expire àMot de passe pour '%s@%s' : Le mot de passe a expiréMot de passe : La politique rejette les chemins transitésL'information de pré-authentification était invalideLe principal n'est associé avec aucune clef correspondante.Erreur de syntaxe du nom principal.La version de protocole ne correspond pasLe buffer fournit est trop petit.Lecture de KRB-ERROR depuis %s... Lecture de KRB-ERROR depuis %s... ok Lecture de KRB-ERROR dans le format %s... Référence à une clef de chiffrement invalide.Suppression de la clef pour '%s@%s'... Suppression de la clef pour '%s@%s'...ok Suppression de l'identifiant '%s@%s'... Suppression de l'identifiant '%s@%s'...ok Suppression du domaine '%s'... Suppression du domaine '%s'...ok Suppression du ticket : La valeur de protection contre le rejeu (nonce) diffère entre la requête et la réponse.La requête est un rejeuLa version de protocole demandée n'est pas supportéeLe serveur et le ticket demandés ne correspondent pasLa date de départ demandée est postérieure à la date de finRéponse trop grande pour UDP, réessayez avec TCPServeur non trouvé dans la base de donnéesServeur encore invalide - essayez plus tardIdentificant du serveur valide uniquement d'utilisateur à utilisateurLe serveur a répondu au client avec un message d'erreur.L'entrée du serveur dans la base de donnée a expiréeClef du serveur chiffrée avec l'ancienne clef maîtreLe service de clef n'est pas disponibleShisa n'a pas pu être initialisé.La base de données Shisa n'a pas pu être ouverte.Shisa a réussiL'initialisation de Shishi a échoué : %sLa version de clef spécifiée est indisponibleL'identifiant fourni n'existe pas.Le domaine fourni n'existe pas.Erreur de syntaxe dans le paramètre de configuration de Shisa.Le TGT a été révoquéLa structure ASN.1 ne contient pas l’élément indiqué.Le fichier de configuration de Shisa n'existe pas.Le client ou le serveur a une clef nulleLe fichier désiré ne peut pas être lu. Vérifiez les permissions.L’élément ASN.1 indiqué n’a pas de valeur.Le clef est trop grande pour être utilisable.Cette réponse AP spécifie un type de clef non permis.La clef privée utilise un type de chiffrement incompatible.L'appel système bind() a échoué. Cela révèle généralement des droits insuffisants.L'appel système close() a échoué.L'appel système sendto() a échoué.L'appel système socket() a échoué. Cela révèle généralement le non support du type de socket par votre système.Le ticket n'est pas pour nousLe ticket et l'authentifiant ne correspondent pasLe ticket a expiréLe ticket n'est pas éligible pour le post-datageLe ticket n'est pas encore valideLe cache de ticket n'est pas initialisé. Cela révèle généralement une erreur interne de l'application.Tickets dans '%s' : Essai d'ajout d'un identifiant déjà existant.Essai d'ajout d'un domaine déjà existant.Essai de suppression de domaine non vide.Essayez « %s --help » pour plus d'informations. Code d'erreur KRB-ERROR inconnu %d.Erreur de Shisa inconnueErreur inconnueÉchec de la vérification par l’autre partie.Écriture de KRB-ERROR dans le format %s... Écriture de KRB-ERROR sur %s... Écriture de KRB-ERROR sur %s... ok impossible d’initialiser libshishiNe peut obtenir de ticket en tant que '%s' pour '%s'.activélibshishi: info: %slibshishi: info: %s libshishi: attention: %slibshishi: attention: %s shisa: %s Trop peu d'argumentsTrop d'argumentsshishi-1.0.3/config.h.in0000644000000000000000000020725414273615667011747 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define to the number of bits in type 'ptrdiff_t'. */ #undef BITSIZEOF_PTRDIFF_T /* Define to the number of bits in type 'sig_atomic_t'. */ #undef BITSIZEOF_SIG_ATOMIC_T /* Define to the number of bits in type 'size_t'. */ #undef BITSIZEOF_SIZE_T /* Define to the number of bits in type 'wchar_t'. */ #undef BITSIZEOF_WCHAR_T /* Define to the number of bits in type 'wint_t'. */ #undef BITSIZEOF_WINT_T /* Define to 1 if using 'alloca.c'. */ #undef C_ALLOCA /* Define as the bit index in the word where to find bit 0 of the exponent of 'double'. */ #undef DBL_EXPBIT0_BIT /* Define as the word index where to find the exponent of 'double'. */ #undef DBL_EXPBIT0_WORD /* Define to 1 if // is a file system root distinct from /. */ #undef DOUBLE_SLASH_IS_DISTINCT_ROOT /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define this to 1 if F_DUPFD behavior does not match POSIX */ #undef FCNTL_DUPFD_BUGGY /* Define to nothing if C supports flexible array members, and to 1 if it does not. That way, with a declaration like 'struct s { int n; short d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99 compilers. Use 'FLEXSIZEOF (struct s, d, N * sizeof (short))' to calculate the size in bytes of such a struct containing an N-element array. */ #undef FLEXIBLE_ARRAY_MEMBER /* Define to 1 if fopen() fails to recognize a trailing slash. */ #undef FOPEN_TRAILING_SLASH_BUG /* Define to 1 if the system's ftello function has the Solaris bug. */ #undef FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE /* Define to 1 if the system's ftello function has the macOS bug. */ #undef FTELLO_BROKEN_AFTER_UNGETC /* Define to 1 if fflush is known to work on stdin as per POSIX.1-2008, 0 if fflush is known to not work, -1 if unknown. */ #undef FUNC_FFLUSH_STDIN /* Define to 1 if ungetc is broken when used on arbitrary bytes. */ #undef FUNC_UNGETC_BROKEN /* Define this to 'void' or 'struct timezone' to match the system's declaration of the second argument to gettimeofday. */ #undef GETTIMEOFDAY_TIMEZONE /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module fflush shall be considered present. */ #undef GNULIB_FFLUSH /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module fopen-gnu shall be considered present. */ #undef GNULIB_FOPEN_GNU /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module fscanf shall be considered present. */ #undef GNULIB_FSCANF /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-des shall be considered present. */ #undef GNULIB_GC_DES /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-hmac-md5 shall be considered present. */ #undef GNULIB_GC_HMAC_MD5 /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-hmac-sha1 shall be considered present. */ #undef GNULIB_GC_HMAC_SHA1 /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-md4 shall be considered present. */ #undef GNULIB_GC_MD4 /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-md5 shall be considered present. */ #undef GNULIB_GC_MD5 /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module gc-random shall be considered present. */ #undef GNULIB_GC_RANDOM /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module msvc-nothrow shall be considered present. */ #undef GNULIB_MSVC_NOTHROW /* Disable VLA usage in gettext.h. */ #undef GNULIB_NO_VLA /* Define to 1 if printf and friends should be labeled with attribute "__gnu_printf__" instead of "__printf__" */ #undef GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module reallocarray shall be considered present. */ #undef GNULIB_REALLOCARRAY /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module scanf shall be considered present. */ #undef GNULIB_SCANF /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module snprintf shall be considered present. */ #undef GNULIB_SNPRINTF /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module strerror shall be considered present. */ #undef GNULIB_STRERROR /* Define to 1 when the gnulib module bind should be tested. */ #undef GNULIB_TEST_BIND /* Define to 1 when the gnulib module calloc-gnu should be tested. */ #undef GNULIB_TEST_CALLOC_GNU /* Define to 1 when the gnulib module calloc-posix should be tested. */ #undef GNULIB_TEST_CALLOC_POSIX /* Define to 1 when the gnulib module cloexec should be tested. */ #undef GNULIB_TEST_CLOEXEC /* Define to 1 when the gnulib module close should be tested. */ #undef GNULIB_TEST_CLOSE /* Define to 1 when the gnulib module connect should be tested. */ #undef GNULIB_TEST_CONNECT /* Define to 1 when the gnulib module dup2 should be tested. */ #undef GNULIB_TEST_DUP2 /* Define to 1 when the gnulib module environ should be tested. */ #undef GNULIB_TEST_ENVIRON /* Define to 1 when the gnulib module explicit_bzero should be tested. */ #undef GNULIB_TEST_EXPLICIT_BZERO /* Define to 1 when the gnulib module fcntl should be tested. */ #undef GNULIB_TEST_FCNTL /* Define to 1 when the gnulib module fflush should be tested. */ #undef GNULIB_TEST_FFLUSH /* Define to 1 when the gnulib module fgetc should be tested. */ #undef GNULIB_TEST_FGETC /* Define to 1 when the gnulib module fgets should be tested. */ #undef GNULIB_TEST_FGETS /* Define to 1 when the gnulib module fopen should be tested. */ #undef GNULIB_TEST_FOPEN /* Define to 1 when the gnulib module fopen-gnu should be tested. */ #undef GNULIB_TEST_FOPEN_GNU /* Define to 1 when the gnulib module fprintf should be tested. */ #undef GNULIB_TEST_FPRINTF /* Define to 1 when the gnulib module fpurge should be tested. */ #undef GNULIB_TEST_FPURGE /* Define to 1 when the gnulib module fputc should be tested. */ #undef GNULIB_TEST_FPUTC /* Define to 1 when the gnulib module fputs should be tested. */ #undef GNULIB_TEST_FPUTS /* Define to 1 when the gnulib module fread should be tested. */ #undef GNULIB_TEST_FREAD /* Define to 1 when the gnulib module free-posix should be tested. */ #undef GNULIB_TEST_FREE_POSIX /* Define to 1 when the gnulib module fscanf should be tested. */ #undef GNULIB_TEST_FSCANF /* Define to 1 when the gnulib module fseek should be tested. */ #undef GNULIB_TEST_FSEEK /* Define to 1 when the gnulib module fseeko should be tested. */ #undef GNULIB_TEST_FSEEKO /* Define to 1 when the gnulib module fstat should be tested. */ #undef GNULIB_TEST_FSTAT /* Define to 1 when the gnulib module ftell should be tested. */ #undef GNULIB_TEST_FTELL /* Define to 1 when the gnulib module ftello should be tested. */ #undef GNULIB_TEST_FTELLO /* Define to 1 when the gnulib module fwrite should be tested. */ #undef GNULIB_TEST_FWRITE /* Define to 1 when the gnulib module getaddrinfo should be tested. */ #undef GNULIB_TEST_GETADDRINFO /* Define to 1 when the gnulib module getc should be tested. */ #undef GNULIB_TEST_GETC /* Define to 1 when the gnulib module getchar should be tested. */ #undef GNULIB_TEST_GETCHAR /* Define to 1 when the gnulib module getdelim should be tested. */ #undef GNULIB_TEST_GETDELIM /* Define to 1 when the gnulib module getdomainname should be tested. */ #undef GNULIB_TEST_GETDOMAINNAME /* Define to 1 when the gnulib module getdtablesize should be tested. */ #undef GNULIB_TEST_GETDTABLESIZE /* Define to 1 when the gnulib module gethostname should be tested. */ #undef GNULIB_TEST_GETHOSTNAME /* Define to 1 when the gnulib module getline should be tested. */ #undef GNULIB_TEST_GETLINE /* Define to 1 when the gnulib module getopt-posix should be tested. */ #undef GNULIB_TEST_GETOPT_POSIX /* Define to 1 when the gnulib module getpass should be tested. */ #undef GNULIB_TEST_GETPASS /* Define to 1 when the gnulib module getpeername should be tested. */ #undef GNULIB_TEST_GETPEERNAME /* Define to 1 when the gnulib module getrandom should be tested. */ #undef GNULIB_TEST_GETRANDOM /* Define to 1 when the gnulib module getsubopt should be tested. */ #undef GNULIB_TEST_GETSUBOPT /* Define to 1 when the gnulib module gettimeofday should be tested. */ #undef GNULIB_TEST_GETTIMEOFDAY /* Define to 1 when the gnulib module lseek should be tested. */ #undef GNULIB_TEST_LSEEK /* Define to 1 when the gnulib module malloc-gnu should be tested. */ #undef GNULIB_TEST_MALLOC_GNU /* Define to 1 when the gnulib module malloc-posix should be tested. */ #undef GNULIB_TEST_MALLOC_POSIX /* Define to 1 when the gnulib module memchr should be tested. */ #undef GNULIB_TEST_MEMCHR /* Define to 1 when the gnulib module mktime should be tested. */ #undef GNULIB_TEST_MKTIME /* Define to 1 when the gnulib module open should be tested. */ #undef GNULIB_TEST_OPEN /* Define to 1 when the gnulib module printf should be tested. */ #undef GNULIB_TEST_PRINTF /* Define to 1 when the gnulib module putc should be tested. */ #undef GNULIB_TEST_PUTC /* Define to 1 when the gnulib module putchar should be tested. */ #undef GNULIB_TEST_PUTCHAR /* Define to 1 when the gnulib module puts should be tested. */ #undef GNULIB_TEST_PUTS /* Define to 1 when the gnulib module rawmemchr should be tested. */ #undef GNULIB_TEST_RAWMEMCHR /* Define to 1 when the gnulib module readlink should be tested. */ #undef GNULIB_TEST_READLINK /* Define to 1 when the gnulib module reallocarray should be tested. */ #undef GNULIB_TEST_REALLOCARRAY /* Define to 1 when the gnulib module realloc-gnu should be tested. */ #undef GNULIB_TEST_REALLOC_GNU /* Define to 1 when the gnulib module realloc-posix should be tested. */ #undef GNULIB_TEST_REALLOC_POSIX /* Define to 1 when the gnulib module recvfrom should be tested. */ #undef GNULIB_TEST_RECVFROM /* Define to 1 when the gnulib module scanf should be tested. */ #undef GNULIB_TEST_SCANF /* Define to 1 when the gnulib module select should be tested. */ #undef GNULIB_TEST_SELECT /* Define to 1 when the gnulib module sendto should be tested. */ #undef GNULIB_TEST_SENDTO /* Define to 1 when the gnulib module setenv should be tested. */ #undef GNULIB_TEST_SETENV /* Define to 1 when the gnulib module shutdown should be tested. */ #undef GNULIB_TEST_SHUTDOWN /* Define to 1 when the gnulib module snprintf should be tested. */ #undef GNULIB_TEST_SNPRINTF /* Define to 1 when the gnulib module socket should be tested. */ #undef GNULIB_TEST_SOCKET /* Define to 1 when the gnulib module stat should be tested. */ #undef GNULIB_TEST_STAT /* Define to 1 when the gnulib module strchrnul should be tested. */ #undef GNULIB_TEST_STRCHRNUL /* Define to 1 when the gnulib module strdup should be tested. */ #undef GNULIB_TEST_STRDUP /* Define to 1 when the gnulib module strerror should be tested. */ #undef GNULIB_TEST_STRERROR /* Define to 1 when the gnulib module strndup should be tested. */ #undef GNULIB_TEST_STRNDUP /* Define to 1 when the gnulib module strnlen should be tested. */ #undef GNULIB_TEST_STRNLEN /* Define to 1 when the gnulib module strtok_r should be tested. */ #undef GNULIB_TEST_STRTOK_R /* Define to 1 when the gnulib module strverscmp should be tested. */ #undef GNULIB_TEST_STRVERSCMP /* Define to 1 when the gnulib module timegm should be tested. */ #undef GNULIB_TEST_TIMEGM /* Define to 1 when the gnulib module time_r should be tested. */ #undef GNULIB_TEST_TIME_R /* Define to 1 when the gnulib module time_rz should be tested. */ #undef GNULIB_TEST_TIME_RZ /* Define to 1 when the gnulib module tzset should be tested. */ #undef GNULIB_TEST_TZSET /* Define to 1 when the gnulib module unsetenv should be tested. */ #undef GNULIB_TEST_UNSETENV /* Define to 1 when the gnulib module vasprintf should be tested. */ #undef GNULIB_TEST_VASPRINTF /* Define to 1 when the gnulib module vfprintf should be tested. */ #undef GNULIB_TEST_VFPRINTF /* Define to 1 when the gnulib module vprintf should be tested. */ #undef GNULIB_TEST_VPRINTF /* Define to a C preprocessor expression that evaluates to 1 or 0, depending whether the gnulib module xalloc shall be considered present. */ #undef GNULIB_XALLOC /* Make xalloc.h declare prototype for xalloc_die. */ #undef GNULIB_XALLOC_DIE /* Define to 1 if you have 'alloca' after including , a header that may be supplied by this distribution. */ #undef HAVE_ALLOCA /* Define to 1 if works. */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_NAMESER_H /* Define to 1 if you have the header file. */ #undef HAVE_BCRYPT_H /* Define to 1 if you have the header file. */ #undef HAVE_BP_SYM_H /* Define to 1 if you have the header file. */ #undef HAVE_BYTESWAP_H /* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if you have the `clock_getres' function. */ #undef HAVE_CLOCK_GETRES /* Define to 1 if you have the `clock_gettime' function. */ #undef HAVE_CLOCK_GETTIME /* Define to 1 if you have the `clock_settime' function. */ #undef HAVE_CLOCK_SETTIME /* Define if you have compound literals. */ #undef HAVE_COMPOUND_LITERALS /* Define to 1 if you have the header file. */ #undef HAVE_CRTDEFS_H /* Define to 1 if C supports variable-length arrays. */ #undef HAVE_C_VARARRAYS /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `alarm', and to 0 if you don't. */ #undef HAVE_DECL_ALARM /* Define to 1 if you have the declaration of `ecvt', and to 0 if you don't. */ #undef HAVE_DECL_ECVT /* Define to 1 if you have the declaration of `execvpe', and to 0 if you don't. */ #undef HAVE_DECL_EXECVPE /* Define to 1 if you have the declaration of `fcloseall', and to 0 if you don't. */ #undef HAVE_DECL_FCLOSEALL /* Define to 1 if you have the declaration of `fcvt', and to 0 if you don't. */ #undef HAVE_DECL_FCVT /* Define to 1 if you have the declaration of `fflush_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FFLUSH_UNLOCKED /* Define to 1 if you have the declaration of `flockfile', and to 0 if you don't. */ #undef HAVE_DECL_FLOCKFILE /* Define to 1 if you have the declaration of `fpurge', and to 0 if you don't. */ #undef HAVE_DECL_FPURGE /* Define to 1 if you have the declaration of `fputs_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FPUTS_UNLOCKED /* Define to 1 if you have the declaration of `freeaddrinfo', and to 0 if you don't. */ #undef HAVE_DECL_FREEADDRINFO /* Define to 1 if you have the declaration of `fseeko', and to 0 if you don't. */ #undef HAVE_DECL_FSEEKO /* Define to 1 if you have the declaration of `ftello', and to 0 if you don't. */ #undef HAVE_DECL_FTELLO /* Define to 1 if you have the declaration of `funlockfile', and to 0 if you don't. */ #undef HAVE_DECL_FUNLOCKFILE /* Define to 1 if you have the declaration of `gai_strerror', and to 0 if you don't. */ #undef HAVE_DECL_GAI_STRERROR /* Define to 1 if you have the declaration of `gai_strerrorA', and to 0 if you don't. */ #undef HAVE_DECL_GAI_STRERRORA /* Define to 1 if you have the declaration of `gcvt', and to 0 if you don't. */ #undef HAVE_DECL_GCVT /* Define to 1 if you have the declaration of `getaddrinfo', and to 0 if you don't. */ #undef HAVE_DECL_GETADDRINFO /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_GETC_UNLOCKED /* Define to 1 if you have the declaration of `getdelim', and to 0 if you don't. */ #undef HAVE_DECL_GETDELIM /* Define to 1 if you have the declaration of `getdomainname', and to 0 if you don't. */ #undef HAVE_DECL_GETDOMAINNAME /* Define to 1 if you have the declaration of `getdtablesize', and to 0 if you don't. */ #undef HAVE_DECL_GETDTABLESIZE /* Define to 1 if you have the declaration of `getline', and to 0 if you don't. */ #undef HAVE_DECL_GETLINE /* Define to 1 if you have the declaration of `getnameinfo', and to 0 if you don't. */ #undef HAVE_DECL_GETNAMEINFO /* Define to 1 if you have the declaration of `h_errno', and to 0 if you don't. */ #undef HAVE_DECL_H_ERRNO /* Define to 1 if you have the declaration of `inet_ntop', and to 0 if you don't. */ #undef HAVE_DECL_INET_NTOP /* Define to 1 if you have the declaration of `localtime_r', and to 0 if you don't. */ #undef HAVE_DECL_LOCALTIME_R /* Define to 1 if you have the declaration of `program_invocation_name', and to 0 if you don't. */ #undef HAVE_DECL_PROGRAM_INVOCATION_NAME /* Define to 1 if you have the declaration of `program_invocation_short_name', and to 0 if you don't. */ #undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME /* Define to 1 if you have the declaration of `putc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_PUTC_UNLOCKED /* Define to 1 if you have the declaration of `setenv', and to 0 if you don't. */ #undef HAVE_DECL_SETENV /* Define to 1 if you have the declaration of `snprintf', and to 0 if you don't. */ #undef HAVE_DECL_SNPRINTF /* Define to 1 if you have the declaration of `strdup', and to 0 if you don't. */ #undef HAVE_DECL_STRDUP /* Define to 1 if you have the declaration of `strerror_r', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR_R /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you don't. */ #undef HAVE_DECL_STRNCASECMP /* Define to 1 if you have the declaration of `strndup', and to 0 if you don't. */ #undef HAVE_DECL_STRNDUP /* Define to 1 if you have the declaration of `strnlen', and to 0 if you don't. */ #undef HAVE_DECL_STRNLEN /* Define to 1 if you have the declaration of `strtok_r', and to 0 if you don't. */ #undef HAVE_DECL_STRTOK_R /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. */ #undef HAVE_DECL_TZNAME /* Define to 1 if you have the declaration of `unsetenv', and to 0 if you don't. */ #undef HAVE_DECL_UNSETENV /* Define to 1 if you have the declaration of `wcsdup', and to 0 if you don't. */ #undef HAVE_DECL_WCSDUP /* Define to 1 if you have the declaration of `_fseeki64', and to 0 if you don't. */ #undef HAVE_DECL__FSEEKI64 /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNPRINTF /* Define to 1 if you have the declaration of `__argv', and to 0 if you don't. */ #undef HAVE_DECL___ARGV /* Define to 1 if you have the declaration of `__fsetlocking', and to 0 if you don't. */ #undef HAVE_DECL___FSETLOCKING /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define if you have the declaration of environ. */ #undef HAVE_ENVIRON_DECL /* Define to 1 if you have the `explicit_bzero' function. */ #undef HAVE_EXPLICIT_BZERO /* Define to 1 if you have the `explicit_memset' function. */ #undef HAVE_EXPLICIT_MEMSET /* Define to 1 if you have the `fcntl' function. */ #undef HAVE_FCNTL /* Define to 1 if you have the header file. */ #undef HAVE_FEATURES_H /* Define to 1 if you have the `flockfile' function. */ #undef HAVE_FLOCKFILE /* Define to 1 if you have the `fpurge' function. */ #undef HAVE_FPURGE /* Define if the 'free' function is guaranteed to preserve errno. */ #undef HAVE_FREE_POSIX /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO /* Define to 1 if you have the `funlockfile' function. */ #undef HAVE_FUNLOCKFILE /* Define to 1 if getaddrinfo exists, or to 0 otherwise. */ #undef HAVE_GETADDRINFO /* Define to 1 if you have the `getdelim' function. */ #undef HAVE_GETDELIM /* Define if the getdomainname() function is present and can be used. */ #undef HAVE_GETDOMAINNAME /* Define to 1 if you have the `getdtablesize' function. */ #undef HAVE_GETDTABLESIZE /* Define to 1 if you have the `getexecname' function. */ #undef HAVE_GETEXECNAME /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `gethostname' function. */ #undef HAVE_GETHOSTNAME /* Define to 1 if you have the header file. */ #undef HAVE_GETOPT_H /* Define to 1 if you have the `getopt_long_only' function. */ #undef HAVE_GETOPT_LONG_ONLY /* Define to 1 if you have the `getpass' function. */ #undef HAVE_GETPASS /* Define to 1 if you have the `getprogname' function. */ #undef HAVE_GETPROGNAME /* Define to 1 if you have the `getpwnam' function. */ #undef HAVE_GETPWNAM /* Define to 1 if you have the `getrandom' function. */ #undef HAVE_GETRANDOM /* Define to 1 if you have the `getservbyname' function. */ #undef HAVE_GETSERVBYNAME /* Define to 1 if you have the `getsubopt' function. */ #undef HAVE_GETSUBOPT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the `inet_ntop' function. */ #undef HAVE_INET_NTOP /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX /* Define to 1 if defines AF_INET. */ #undef HAVE_IPV4 /* Define to 1 if defines AF_INET6. */ #undef HAVE_IPV6 /* Define if you have the libgcrypt library. */ #undef HAVE_LIBGCRYPT /* Define if you have the libgnutls library. */ #undef HAVE_LIBGNUTLS /* Define if you have the libidn library. */ #undef HAVE_LIBIDN /* Define if you have the libresolv library. */ #undef HAVE_LIBRESOLV /* Define if you have the libtasn1 library. */ #undef HAVE_LIBTASN1 /* Define to 1 if the bcrypt library is guaranteed to be present. */ #undef HAVE_LIB_BCRYPT /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have 'struct sockaddr_alg' defined. */ #undef HAVE_LINUX_IF_ALG_H /* Define if localtime-like functions can loop forever on extreme arguments. */ #undef HAVE_LOCALTIME_INFLOOP_BUG /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R /* Define to 1 if the system has the type 'long long int'. */ #undef HAVE_LONG_LONG_INT /* Define to 1 if you have the `lstat' function. */ #undef HAVE_LSTAT /* Define if malloc, realloc, and calloc set errno on allocation failure. */ #undef HAVE_MALLOC_POSIX /* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including config.h and . */ #undef HAVE_MAP_ANONYMOUS /* Define to 1 if you have the `mbrtowc' function. */ #undef HAVE_MBRTOWC /* Define to 1 if you have the `memset_s' function. */ #undef HAVE_MEMSET_S /* Define to 1 if you have the header file. */ #undef HAVE_MINIX_CONFIG_H /* Define to 1 if defines the MIN and MAX macros. */ #undef HAVE_MINMAX_IN_LIMITS_H /* Define to 1 if defines the MIN and MAX macros. */ #undef HAVE_MINMAX_IN_SYS_PARAM_H /* Define to 1 if you have the `mprotect' function. */ #undef HAVE_MPROTECT /* Define to 1 on MSVC platforms that have the "invalid parameter handler" concept. */ #undef HAVE_MSVC_INVALID_PARAMETER_HANDLER /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN6_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `ngettext' function. */ #undef HAVE_NGETTEXT /* Define to 1 if libcrypto is used for MD5. */ #undef HAVE_OPENSSL_MD5 /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_MD5_H /* Define to 1 if libcrypto is used for SHA1. */ #undef HAVE_OPENSSL_SHA1 /* Define to 1 if you have the header file. */ #undef HAVE_OPENSSL_SHA_H /* Define to 1 if you have the header file. */ #undef HAVE_PWD_H /* Define to 1 if you have the `rawmemchr' function. */ #undef HAVE_RAWMEMCHR /* Define to 1 if you have the `readlink' function. */ #undef HAVE_READLINK /* Define to 1 if you have the `readlinkat' function. */ #undef HAVE_READLINKAT /* Define to 1 if you have the `reallocarray' function. */ #undef HAVE_REALLOCARRAY /* Define to 1 if you have the header file. */ #undef HAVE_RESOLV_H /* Define to 1 if you have the res_query function. */ #undef HAVE_RES_QUERY /* Define to 1 if the system has the type `sa_family_t'. */ #undef HAVE_SA_FAMILY_T /* Define to 1 if you have the header file. */ #undef HAVE_SDKDDKVER_H /* Define to 1 if you have the header file. */ #undef HAVE_SEARCH_H /* Define to 1 if you have the header file. */ #undef HAVE_SECURITY_OPENPAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SECURITY_PAM_APPL_H /* Define to 1 if you have the header file. */ #undef HAVE_SECURITY_PAM_EXT_H /* Define to 1 if you have the header file. */ #undef HAVE_SECURITY_PAM_MODULES_H /* Define to 1 if you have the header file. */ #undef HAVE_SECURITY__PAM_MACROS_H /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `setdtablesize' function. */ #undef HAVE_SETDTABLESIZE /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV /* Define to 1 if you have the `shutdown' function. */ #undef HAVE_SHUTDOWN /* Define to 1 if you have the `signal' function. */ #undef HAVE_SIGNAL /* Define to 1 if 'sig_atomic_t' is a signed integer type. */ #undef HAVE_SIGNED_SIG_ATOMIC_T /* Define to 1 if 'wchar_t' is a signed integer type. */ #undef HAVE_SIGNED_WCHAR_T /* Define to 1 if 'wint_t' is a signed integer type. */ #undef HAVE_SIGNED_WINT_T /* Define to 1 if the system has the type `sigset_t'. */ #undef HAVE_SIGSET_T /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define if the return value of the snprintf function is the number of of bytes (excluding the terminating NUL) that would have been produced if the buffer had been large enough. */ #undef HAVE_SNPRINTF_RETVAL_C99 /* Define if the string produced by the snprintf function is always NUL terminated. */ #undef HAVE_SNPRINTF_TRUNCATION_C99 /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_STDINT_H_WITH_UINTMAX /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_EXT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchrnul' function. */ #undef HAVE_STRCHRNUL /* Define if you have `strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the `strndup' function. */ #undef HAVE_STRNDUP /* Define to 1 if you have the `strnlen' function. */ #undef HAVE_STRNLEN /* Define to 1 if you have the `strtok_r' function. */ #undef HAVE_STRTOK_R /* Define to 1 if the system has the type `struct addrinfo'. */ #undef HAVE_STRUCT_ADDRINFO /* Define to 1 if `sa_len' is a member of `struct sockaddr'. */ #undef HAVE_STRUCT_SOCKADDR_SA_LEN /* Define to 1 if the system has the type `struct sockaddr_storage'. */ #undef HAVE_STRUCT_SOCKADDR_STORAGE /* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */ #undef HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY /* Define to 1 if `st_atimensec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIMENSEC /* Define to 1 if `st_atimespec.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC /* Define to 1 if `st_atim.st__tim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC /* Define to 1 if `st_atim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC /* Define to 1 if `st_birthtimensec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC /* Define to 1 if `st_birthtimespec.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC /* Define to 1 if `st_birthtim.tv_nsec' is a member of `struct stat'. */ #undef HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC /* Define to 1 if `tm_zone' is a member of `struct tm'. */ #undef HAVE_STRUCT_TM_TM_ZONE /* Define to 1 if you have the `strverscmp' function. */ #undef HAVE_STRVERSCMP /* Define to 1 if you have the `symlink' function. */ #undef HAVE_SYMLINK /* Define to 1 if you have the `sysinfo' function. */ #undef HAVE_SYSINFO /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_BITYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_CDEFS_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_MMAN_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_RANDOM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SYSTEMINFO_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UIO_H /* Define to 1 if the system has the 'tcgetattr' function. */ #undef HAVE_TCGETATTR /* Define to 1 if the system has the 'tcsetattr' function. */ #undef HAVE_TCSETATTR /* Define to 1 if you have the header file. */ #undef HAVE_TERMIOS_H /* Define to 1 if you have the `timegm' function. */ #undef HAVE_TIMEGM /* Define to 1 if you have the `timespec_get' function. */ #undef HAVE_TIMESPEC_GET /* Define to 1 if the system has the type `timezone_t'. */ #undef HAVE_TIMEZONE_T /* Define if struct tm has the tm_gmtoff member. */ #undef HAVE_TM_GMTOFF /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use `HAVE_STRUCT_TM_TM_ZONE' instead. */ #undef HAVE_TM_ZONE /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH /* Define to 1 if you don't have `tm_zone' but do have the external array `tzname'. */ #undef HAVE_TZNAME /* Define to 1 if you have the `uname' function. */ #undef HAVE_UNAME /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `unsetenv' function. */ #undef HAVE_UNSETENV /* Define to 1 if the system has the type 'unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT /* Define if you have a global __progname variable */ #undef HAVE_VAR___PROGNAME /* Define to 1 if you have the `vasnprintf' function. */ #undef HAVE_VASNPRINTF /* Define to 1 if you have the `vasprintf' function. */ #undef HAVE_VASPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T /* Define to 1 if you have the `wcrtomb' function. */ #undef HAVE_WCRTOMB /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN /* Define to 1 if you have the `wcsnlen' function. */ #undef HAVE_WCSNLEN /* Define to 1 if you have the header file. */ #undef HAVE_WINSOCK2_H /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T /* Define to 1 if O_NOATIME works. */ #undef HAVE_WORKING_O_NOATIME /* Define to 1 if O_NOFOLLOW works. */ #undef HAVE_WORKING_O_NOFOLLOW /* Define to 1 if you have the header file. */ #undef HAVE_WS2TCPIP_H /* Define to 1 if you have the header file. */ #undef HAVE_XLOCALE_H /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to 1 if you have the `_fseeki64' function. */ #undef HAVE__FSEEKI64 /* Define to 1 if you have the `_ftelli64' function. */ #undef HAVE__FTELLI64 /* Define to 1 if you have the `_set_invalid_parameter_handler' function. */ #undef HAVE__SET_INVALID_PARAMETER_HANDLER /* Define to 1 if you have the `__fpurge' function. */ #undef HAVE___FPURGE /* Define to 1 if you have the `__freading' function. */ #undef HAVE___FREADING /* Define to 1 if you have the `__fsetlocking' function. */ #undef HAVE___FSETLOCKING /* Define to 1 if ctype.h defines __header_inline. */ #undef HAVE___HEADER_INLINE /* Please see the Gnulib manual for how to use these macros. Suppress extern inline with HP-UX cc, as it appears to be broken; see . Suppress extern inline with Sun C in standards-conformance mode, as it mishandles inline functions that call each other. E.g., for 'inline void f (void) { } inline void g (void) { f (); }', c99 incorrectly complains 'reference to static identifier "f" in extern inline function'. This bug was observed with Oracle Developer Studio 12.6 (Sun C 5.15 SunOS_sparc 2017/05/30). Suppress extern inline (with or without __attribute__ ((__gnu_inline__))) on configurations that mistakenly use 'static inline' to implement functions or macros in standard C headers like . For example, if isdigit is mistakenly implemented via a static inline function, a program containing an extern inline function that calls isdigit may not work since the C standard prohibits extern inline functions from calling static functions (ISO C 99 section 6.7.4.(3). This bug is known to occur on: OS X 10.8 and earlier; see: https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html DragonFly; see http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log FreeBSD; see: https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and for clang but remains for g++; see . Assume DragonFly and FreeBSD will be similar. GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 inline semantics, unless -fgnu89-inline is used. It defines a macro __GNUC_STDC_INLINE__ to indicate this situation or a macro __GNUC_GNU_INLINE__ to indicate the opposite situation. GCC 4.2 with -std=c99 or -std=gnu99 implements the GNU C inline semantics but warns, unless -fgnu89-inline is used: warning: C99 inline functions are not supported; using GNU89 warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute It defines a macro __GNUC_GNU_INLINE__ to indicate this situation. */ #if (((defined __APPLE__ && defined __MACH__) \ || defined __DragonFly__ || defined __FreeBSD__) \ && (defined HAVE___HEADER_INLINE \ ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ && ! defined __clang__) \ : ((! defined _DONT_USE_CTYPE_INLINE_ \ && (defined __GNUC__ || defined __cplusplus)) \ || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \ && defined __GNUC__ && ! defined __cplusplus)))) # define _GL_EXTERN_INLINE_STDHEADER_BUG #endif #if ((__GNUC__ \ ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \ : (199901L <= __STDC_VERSION__ \ && !defined __HP_cc \ && !defined __PGI \ && !(defined __SUNPRO_C && __STDC__))) \ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) # define _GL_INLINE inline # define _GL_EXTERN_INLINE extern inline # define _GL_EXTERN_INLINE_IN_USE #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ && !defined _GL_EXTERN_INLINE_STDHEADER_BUG) # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__ /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) # else # define _GL_INLINE extern inline # endif # define _GL_EXTERN_INLINE extern # define _GL_EXTERN_INLINE_IN_USE #else # define _GL_INLINE _GL_UNUSED static # define _GL_EXTERN_INLINE _GL_UNUSED static #endif /* In GCC 4.6 (inclusive) to 5.1 (exclusive), suppress bogus "no previous prototype for 'FOO'" and "no previous declaration for 'FOO'" diagnostics, when FOO is an inline function in the header; see and . */ #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__ # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ # define _GL_INLINE_HEADER_CONST_PRAGMA # else # define _GL_INLINE_HEADER_CONST_PRAGMA \ _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"") # endif # define _GL_INLINE_HEADER_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \ _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \ _GL_INLINE_HEADER_CONST_PRAGMA # define _GL_INLINE_HEADER_END \ _Pragma ("GCC diagnostic pop") #else # define _GL_INLINE_HEADER_BEGIN # define _GL_INLINE_HEADER_END #endif /* Define to 1 if the compiler supports the keyword '__inline'. */ #undef HAVE___INLINE /* Define HOST_NAME_MAX when does not define it. */ #undef HOST_NAME_MAX /* Define to 1 if lseek does not detect pipes. */ #undef LSEEK_PIPE_BROKEN /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* If malloc(0) is != NULL, define this to 1. Otherwise define this to 0. */ #undef MALLOC_0_IS_NONNULL /* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */ #undef MAP_ANONYMOUS /* Use GNU style printf and scanf. */ #ifndef __USE_MINGW_ANSI_STDIO # undef __USE_MINGW_ANSI_STDIO #endif /* Define if the compilation of mktime.c should define 'mktime_internal'. */ #undef NEED_MKTIME_INTERNAL /* Define if the compilation of mktime.c should define 'mktime' with the native Windows TZ workaround. */ #undef NEED_MKTIME_WINDOWS /* Define if the compilation of mktime.c should define 'mktime' with the algorithmic workarounds. */ #undef NEED_MKTIME_WORKING /* Define to 1 to make gettime work. */ #undef OK_TO_USE_1S_CLOCK /* Define to 1 if open() fails to recognize a trailing slash. */ #undef OPEN_TRAILING_SLASH_BUG /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* String identifying the packager of this software */ #undef PACKAGE_PACKAGER /* Packager info for bug reports (URL/e-mail/...) */ #undef PACKAGE_PACKAGER_BUG_REPORTS /* Packager-specific version information */ #undef PACKAGE_PACKAGER_VERSION /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to the type that is the result of default argument promotions of type mode_t. */ #undef PROMOTED_MODE_T /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'ptrdiff_t'. */ #undef PTRDIFF_T_SUFFIX /* Define to 1 if readlink fails to recognize a trailing slash. */ #undef READLINK_TRAILING_SLASH_BUG /* Define to 1 if readlink sets errno instead of truncating a too-long link. */ #undef READLINK_TRUNCATE_BUG /* Define to 1 if stat needs help when passed a file name with a trailing slash */ #undef REPLACE_FUNC_STAT_FILE /* Define to 1 if strerror(0) does not return a message implying success. */ #undef REPLACE_STRERROR_0 /* Define if vasnprintf exists but is overridden by gnulib. */ #undef REPLACE_VASNPRINTF /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'sig_atomic_t'. */ #undef SIG_ATOMIC_T_SUFFIX /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'size_t'. */ #undef SIZE_T_SUFFIX /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if the `S_IS*' macros in do not work properly. */ #undef STAT_MACROS_BROKEN /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P /* Define to 1 if time_t is signed. */ #undef TIME_T_IS_SIGNED /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Define to 1 if the type of the st_atim member of a struct stat is struct timespec. */ #undef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC /* Define to 1 if you want to use the Linux kernel cryptographic API. */ #undef USE_LINUX_CRYPTO_API /* Define to 1 if you want STARTTLS. */ #undef USE_STARTTLS /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable general extensions on macOS. */ #ifndef _DARWIN_C_SOURCE # undef _DARWIN_C_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable X/Open compliant socket functions that do not require linking with -lxnet on HP-UX 11.11. */ #ifndef _HPUX_ALT_XOPEN_SOCKET_API # undef _HPUX_ALT_XOPEN_SOCKET_API #endif /* Identify the host operating system as Minix. This macro does not affect the system headers' behavior. A future release of Autoconf may stop defining this macro. */ #ifndef _MINIX # undef _MINIX #endif /* Enable general extensions on NetBSD. Enable NetBSD compatibility extensions on Minix. */ #ifndef _NETBSD_SOURCE # undef _NETBSD_SOURCE #endif /* Enable OpenBSD compatibility extensions on NetBSD. Oddly enough, this does nothing on OpenBSD. */ #ifndef _OPENBSD_SOURCE # undef _OPENBSD_SOURCE #endif /* Define to 1 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_SOURCE # undef _POSIX_SOURCE #endif /* Define to 2 if needed for POSIX-compatible behavior. */ #ifndef _POSIX_1_SOURCE # undef _POSIX_1_SOURCE #endif /* Enable POSIX-compatible threading on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ # undef __STDC_WANT_IEC_60559_BFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ #ifndef __STDC_WANT_LIB_EXT2__ # undef __STDC_WANT_LIB_EXT2__ #endif /* Enable extensions specified by ISO/IEC 24747:2009. */ #ifndef __STDC_WANT_MATH_SPEC_FUNCS__ # undef __STDC_WANT_MATH_SPEC_FUNCS__ #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable X/Open extensions. Define to 500 only if necessary to make mbstate_t available. */ #ifndef _XOPEN_SOURCE # undef _XOPEN_SOURCE #endif /* Version number of package */ #undef VERSION /* Define to 1 if unsetenv returns void instead of int. */ #undef VOID_UNSETENV /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'wchar_t'. */ #undef WCHAR_T_SUFFIX /* Define if WSAStartup is needed. */ #undef WINDOWS_SOCKETS /* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 'wint_t'. */ #undef WINT_T_SUFFIX /* Define to 1 if you want 3DES {e,cksum}type. */ #undef WITH_3DES /* Define to 1 if you want AES {e,cksum}types. */ #undef WITH_AES /* Define to 1 if you want ARCFOUR {e,cksum}type. */ #undef WITH_ARCFOUR /* Define to 1 if you want DES {e,cksum}types. */ #undef WITH_DES /* Define to 1 if you want IPv6. */ #undef WITH_IPV6 /* Define to 1 if you want MD cksumtypes. */ #undef WITH_MD /* Define to 1 if you want NULL {e,cksum}type. */ #undef WITH_NULL /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* True if the compiler says it groks GNU C version MAJOR.MINOR. */ #if defined __GNUC__ && defined __GNUC_MINOR__ # define _GL_GNUC_PREREQ(major, minor) \ ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__)) #else # define _GL_GNUC_PREREQ(major, minor) 0 #endif /* Define to enable the declarations of ISO C 11 types and functions. */ #undef _ISOC11_SOURCE /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ #undef _LARGEFILE_SOURCE /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to 1 on Solaris. */ #undef _LCONV_C99 /* The _Noreturn keyword of C11. */ #ifndef _Noreturn # if (defined __cplusplus \ && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ || (defined _MSC_VER && 1900 <= _MSC_VER)) \ && 0) /* [[noreturn]] is not practically usable, because with it the syntax extern _Noreturn void func (...); would not be valid; such a declaration would only be valid with 'extern' and '_Noreturn' swapped, or without the 'extern' keyword. However, some AIX system header files and several gnulib header files use precisely this syntax with 'extern'. */ # define _Noreturn [[noreturn]] # elif ((!defined __cplusplus || defined __clang__) \ && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ || (!defined __STRICT_ANSI__ \ && (_GL_GNUC_PREREQ (4, 7) \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))))) /* _Noreturn works as-is. */ # elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C # define _Noreturn __attribute__ ((__noreturn__)) # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) # define _Noreturn __declspec (noreturn) # else # define _Noreturn # endif #endif /* Define to 1 in order to get the POSIX compatible declarations of socket functions. */ #undef _POSIX_PII_SOCKET /* Number of bits in a timestamp, on hosts where this is settable. */ #undef _TIME_BITS /* For standard stat data types on VMS. */ #undef _USE_STD_STAT /* Define to rpl_ if the getopt replacement functions and variables should be used. */ #undef __GETOPT_PREFIX /* For 64-bit time_t on 32-bit mingw. */ #undef __MINGW_USE_VC2005_COMPAT /* Define to 1 if the system predates C++11. */ #undef __STDC_CONSTANT_MACROS /* Define to 1 if the system predates C++11. */ #undef __STDC_LIMIT_MACROS /* Define to 1 if C does not support variable-length arrays, and if the compiler does not already define this. */ #undef __STDC_NO_VLA__ /* The _GL_ASYNC_SAFE marker should be attached to functions that are signal handlers (for signals other than SIGABRT, SIGPIPE) or can be invoked from such signal handlers. Such functions have some restrictions: * All functions that it calls should be marked _GL_ASYNC_SAFE as well, or should be listed as async-signal-safe in POSIX section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in particular, are NOT async-signal-safe. * All memory locations (variables and struct fields) that these functions access must be marked 'volatile'. This holds for both read and write accesses. Otherwise the compiler might optimize away stores to and reads from such locations that occur in the program, depending on its data flow analysis. For example, when the program contains a loop that is intended to inspect a variable set from within a signal handler while (!signal_occurred) ; the compiler is allowed to transform this into an endless loop if the variable 'signal_occurred' is not declared 'volatile'. Additionally, recall that: * A signal handler should not modify errno (except if it is a handler for a fatal signal and ends by raising the same signal again, thus provoking the termination of the process). If it invokes a function that may clobber errno, it needs to save and restore the value of errno. */ #define _GL_ASYNC_SAFE /* Attributes. */ #if (defined __has_attribute \ && (!defined __clang_minor__ \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))) # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) #else # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr # define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2) # define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95) # define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1) # define _GL_ATTR_diagnose_if 0 # define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3) # define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1) # define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0) # define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6) # define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0) # ifdef _ICC # define _GL_ATTR_may_alias 0 # else # define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3) # endif # define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1) # define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3) # define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0) # define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3) # define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96) # define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9) # define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0) # define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7) # define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4) #endif #ifdef __has_c_attribute # if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \ && _GL_GNUC_PREREQ (4, 6)) # pragma GCC diagnostic ignored "-Wpedantic" # endif # define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__) #else # define _GL_HAS_C_ATTRIBUTE(attr) 0 #endif /* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function is the size of the returned memory block. _GL_ATTRIBUTE_ALLOC_SIZE ((M, N)) declares that the Mth argument multiplied by the Nth argument of the function is the size of the returned memory block. */ /* Applies to: function, pointer to function, function types. */ #if _GL_HAS_ATTRIBUTE (alloc_size) # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args)) #else # define _GL_ATTRIBUTE_ALLOC_SIZE(args) #endif /* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the function and report an error if it cannot do so. */ /* Applies to: function. */ #if _GL_HAS_ATTRIBUTE (always_inline) # define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__)) #else # define _GL_ATTRIBUTE_ALWAYS_INLINE #endif /* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show in stack traces when debugging. The compiler should omit the function from stack traces. */ /* Applies to: function. */ #if _GL_HAS_ATTRIBUTE (artificial) # define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__)) #else # define _GL_ATTRIBUTE_ARTIFICIAL #endif /* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */ /* Applies to: functions. */ /* Avoid __attribute__ ((cold)) on MinGW; see thread starting at . Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */ #if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__ # ifndef __SUNPRO_C # define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__)) # else # define _GL_ATTRIBUTE_COLD __attribute__ ((cold)) # endif #else # define _GL_ATTRIBUTE_COLD #endif /* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate calls to the function with the same arguments. This attribute is safe for a function that neither depends on nor affects observable state, and always returns exactly once - e.g., does not loop forever, and does not call longjmp. (This attribute is stricter than _GL_ATTRIBUTE_PURE.) */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (const) # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) #else # define _GL_ATTRIBUTE_CONST #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #if _GL_GNUC_PREREQ (11, 0) # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) #else # define _GL_ATTRIBUTE_DEALLOC(f, i) #endif /* If gnulib's or has already defined this macro, continue to use this earlier definition, since may not have been included yet. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated. The compiler may warn if the entity is used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: namespace, class, template specialization. */ #if _GL_HAS_C_ATTRIBUTE (deprecated) # define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]] #elif _GL_HAS_ATTRIBUTE (deprecated) # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) #else # define _GL_ATTRIBUTE_DEPRECATED #endif /* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and the function call is not optimized away. _GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and the function call is not optimized away. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (error) # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg))) # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg))) #elif _GL_HAS_ATTRIBUTE (diagnose_if) # define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error"))) # define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning"))) #else # define _GL_ATTRIBUTE_ERROR(msg) # define _GL_ATTRIBUTE_WARNING(msg) #endif /* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain visible to debuggers etc., even with '-fwhole-program'. */ /* Applies to: functions, variables. */ #if _GL_HAS_ATTRIBUTE (externally_visible) # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible)) #else # define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE #endif /* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if the control flow falls through to the immediately following 'case' or 'default' label. The compiler should not warn in this case. */ /* Applies to: Empty statement (;), inside a 'switch' statement. */ /* Always expands to something. */ #if _GL_HAS_C_ATTRIBUTE (fallthrough) # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]] #elif _GL_HAS_ATTRIBUTE (fallthrough) # define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__)) #else # define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0) #endif /* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK)) declares that the STRING-INDEXth function argument is a format string of style ARCHETYPE, which is one of: printf, gnu_printf scanf, gnu_scanf, strftime, gnu_strftime, strfmon, or the same thing prefixed and suffixed with '__'. If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK are suitable for the format string. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (format) # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) #else # define _GL_ATTRIBUTE_FORMAT(spec) #endif /* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other compilation unit, it executes code from that unit only by return or by exception handling. This declaration lets the compiler optimize that unit more aggressively. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (leaf) # define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__)) #else # define _GL_ATTRIBUTE_LEAF #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (malloc) # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) #else # define _GL_ATTRIBUTE_MALLOC #endif /* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the same storage as pointers to other types. Thus this declaration disables strict aliasing optimization. */ /* Applies to: types. */ /* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */ #if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C # define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__)) #else # define _GL_ATTRIBUTE_MAY_ALIAS #endif /* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if the entity is not used. The compiler should not warn if the entity is not used. */ /* Applies to: - function, variable, - struct, union, struct/union member, - enumeration, enumeration item, - typedef, in C++ also: class. */ /* In C++ and C2x, this is spelled [[__maybe_unused__]]. GCC's syntax is __attribute__ ((__unused__)). clang supports both syntaxes. */ #if _GL_HAS_C_ATTRIBUTE (maybe_unused) # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]] #else # define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED #endif /* Alternative spelling of this macro, for convenience. */ #define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED /* Earlier spellings of this macro. */ #define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED /* _GL_ATTRIBUTE_NODISCARD declares that the caller of the function should not discard the return value. The compiler may warn if the caller does not use the return value, unless the caller uses something like ignore_value. */ /* Applies to: function, enumeration, class. */ #if _GL_HAS_C_ATTRIBUTE (nodiscard) # define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]] #elif _GL_HAS_ATTRIBUTE (warn_unused_result) # define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__)) #else # define _GL_ATTRIBUTE_NODISCARD #endif /* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the function. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (noinline) # define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__)) #else # define _GL_ATTRIBUTE_NOINLINE #endif /* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,... must not be NULL. _GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be null. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (nonnull) # define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args)) #else # define _GL_ATTRIBUTE_NONNULL(args) #endif /* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is not meant to be NUL-terminated. */ /* Applies to: struct/union members and variables that are arrays of element type '[[un]signed] char'. */ #if _GL_HAS_ATTRIBUTE (nonstring) # define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__)) #else # define _GL_ATTRIBUTE_NONSTRING #endif /* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */ /* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus # define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__)) #else # define _GL_ATTRIBUTE_NOTHROW #endif /* _GL_ATTRIBUTE_PACKED declares: For struct members: The member has the smallest possible alignment. For struct, union, class: All members have the smallest possible alignment, minimizing the memory required. */ /* Applies to: struct members, struct, union, in C++ also: class. */ #if _GL_HAS_ATTRIBUTE (packed) # define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__)) #else # define _GL_ATTRIBUTE_PACKED #endif /* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate calls to the function with the same arguments if observable state is not changed between calls. This attribute is safe for a function that does not affect observable state, and always returns exactly once. (This attribute is looser than _GL_ATTRIBUTE_CONST.) */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (pure) # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) #else # define _GL_ATTRIBUTE_PURE #endif /* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is a non-NULL pointer. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (returns_nonnull) # define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__)) #else # define _GL_ATTRIBUTE_RETURNS_NONNULL #endif /* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a trailing NULL argument. _GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99). _GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */ /* Applies to: functions. */ #if _GL_HAS_ATTRIBUTE (sentinel) # define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos)) #else # define _GL_ATTRIBUTE_SENTINEL(pos) #endif /* A helper macro. Don't use it directly. */ #if _GL_HAS_ATTRIBUTE (unused) # define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #else # define _GL_ATTRIBUTE_UNUSED #endif /* _GL_UNUSED_LABEL; declares that it is not a programming mistake if the immediately preceding label is not used. The compiler should not warn if the label is not used. */ /* Applies to: label (both in C and C++). */ /* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;' syntax. But clang does. */ #if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__ # define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED #else # define _GL_UNUSED_LABEL #endif /* Define to `int' if doesn't define. */ #undef gid_t /* A replacement for va_copy, if needed. */ #define gl_va_copy(a,b) ((a) = (b)) /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to long or long long if and don't define. */ #undef intmax_t /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of earlier versions), but does not display it by setting __GNUC_STDC_INLINE__. __APPLE__ && __MACH__ test for Mac OS X. __APPLE_CC__ tests for the Apple compiler and its version. __STDC_VERSION__ tests for the C99 mode. */ #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__ # define __GNUC_STDC_INLINE__ 1 #endif /* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where n1 and n2 are expressions without side effects, that evaluate to real numbers (excluding NaN). It returns 1 if n1 > n2 0 if n1 == n2 -1 if n1 < n2 The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional jump with nearly all GCC versions up to GCC 10. This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many GCC versions up to GCC 9. The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9 avoids conditional jumps in all GCC versions >= 3.4. */ #define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2))) /* Define to the real name of the mktime_internal function. */ #undef mktime_internal /* Define to `int' if does not define. */ #undef mode_t /* Define to the name of the strftime replacement function. */ #undef my_strftime /* Define to the type of st_nlink in struct stat, or a supertype. */ #undef nlink_t /* Define as a signed integer type capable of holding a process identifier. */ #undef pid_t /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported only directly. */ #undef restrict /* Work around a bug in older versions of Sun C++, which did not #define __restrict__ or support _Restrict or __restrict__ even though the corresponding Sun C compiler ended up with "#define restrict _Restrict" or "#define restrict __restrict__" in the previous line. This workaround can be removed once we assume Oracle Developer Studio 12.5 (2016) or later. */ #if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__ # define _Restrict # define __restrict__ #endif /* Define to `unsigned int' if does not define. */ #undef size_t /* type to use in place of socklen_t if not defined */ #undef socklen_t /* Define as a signed type of the same size as size_t. */ #undef ssize_t /* Define to `int' if doesn't define. */ #undef uid_t /* Define as a macro for copying va_list variables. */ #undef va_copy /* Fix namespace of xalloc_die. */ #undef xalloc_die shishi-1.0.3/configure0000755000000000000000000521706014273615652011626 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for GNU Shishi 1.0.3. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="as_nop=: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes else $as_nop as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$as_shell as_have_required=yes if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null then : break 2 fi fi done;; esac as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes fi fi if test "x$CONFIG_SHELL" != x then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno then : printf "%s\n" "$0: This script requires a shell more modern than all" printf "%s\n" "$0: the shells that I found on your system." if test ${ZSH_VERSION+y} ; then printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-shishi@gnu.org $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_nop # --------- # Do nothing but, unlike ":", preserve the value of $?. as_fn_nop () { return $? } as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='GNU Shishi' PACKAGE_TARNAME='shishi' PACKAGE_VERSION='1.0.3' PACKAGE_STRING='GNU Shishi 1.0.3' PACKAGE_BUGREPORT='bug-shishi@gnu.org' PACKAGE_URL='https://www.gnu.org/software/shishi/' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_STDIO_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_c_list= gt_needs= ac_func_c_list= gl_getopt_required=POSIX ac_config_libobj_dir=lib/gl with_openssl_default='no' LIB_CRYPTO= ac_subst_vars='libgltests_LIBOBJDEPS libgltests_LTLIBOBJS libgltests_LIBOBJS libgl_LIBOBJDEPS libgl_LTLIBOBJS libgl_LIBOBJS gltests_LIBOBJDEPS gltests_LTLIBOBJS gltests_LIBOBJS gl_LIBOBJDEPS gl_LTLIBOBJS gl_LIBOBJS CONFIG_INCLUDE am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS WARN_CFLAGS WERROR_CFLAGS DBDIR KEYDIR SKELDIR CONFDIR ARCFOUR_FALSE ARCFOUR_TRUE NULL_FALSE NULL_TRUE MD_FALSE MD_TRUE AES_FALSE AES_TRUE DES3_FALSE DES3_TRUE DES_FALSE DES_TRUE STARTTLS_FALSE STARTTLS_TRUE LIBGNUTLS_PREFIX LTLIBGNUTLS LIBGNUTLS HAVE_LIBGNUTLS LIBTASN1_PREFIX LTLIBTASN1 LIBTASN1 HAVE_LIBTASN1 LIBIDN_PREFIX LTLIBIDN LIBIDN HAVE_LIBIDN PAMDIR PAM_SHISHI ENABLE_SHISHID_FALSE ENABLE_SHISHID_TRUE LIBRESOLV_PREFIX LTLIBRESOLV LIBRESOLV HAVE_LIBRESOLV libgltests_WITNESS GL_LIBGL_GNULIB_MDA_WCSDUP GL_LIBGL_GNULIB_WCSFTIME GL_LIBGL_GNULIB_WCSWIDTH GL_LIBGL_GNULIB_WCSTOK GL_LIBGL_GNULIB_WCSSTR GL_LIBGL_GNULIB_WCSPBRK GL_LIBGL_GNULIB_WCSSPN GL_LIBGL_GNULIB_WCSCSPN GL_LIBGL_GNULIB_WCSRCHR GL_LIBGL_GNULIB_WCSCHR GL_LIBGL_GNULIB_WCSDUP GL_LIBGL_GNULIB_WCSXFRM GL_LIBGL_GNULIB_WCSCOLL GL_LIBGL_GNULIB_WCSNCASECMP GL_LIBGL_GNULIB_WCSCASECMP GL_LIBGL_GNULIB_WCSNCMP GL_LIBGL_GNULIB_WCSCMP GL_LIBGL_GNULIB_WCSNCAT GL_LIBGL_GNULIB_WCSCAT GL_LIBGL_GNULIB_WCPNCPY GL_LIBGL_GNULIB_WCSNCPY GL_LIBGL_GNULIB_WCPCPY GL_LIBGL_GNULIB_WCSCPY GL_LIBGL_GNULIB_WCSNLEN GL_LIBGL_GNULIB_WCSLEN GL_LIBGL_GNULIB_WMEMSET GL_LIBGL_GNULIB_WMEMPCPY GL_LIBGL_GNULIB_WMEMMOVE GL_LIBGL_GNULIB_WMEMCPY GL_LIBGL_GNULIB_WMEMCMP GL_LIBGL_GNULIB_WMEMCHR GL_LIBGL_GNULIB_WCWIDTH GL_LIBGL_GNULIB_WCSNRTOMBS GL_LIBGL_GNULIB_WCSRTOMBS GL_LIBGL_GNULIB_WCRTOMB GL_LIBGL_GNULIB_MBSNRTOWCS GL_LIBGL_GNULIB_MBSRTOWCS GL_LIBGL_GNULIB_MBRLEN GL_LIBGL_GNULIB_MBRTOWC GL_LIBGL_GNULIB_MBSINIT GL_LIBGL_GNULIB_WCTOB GL_LIBGL_GNULIB_BTOWC HAVE_CRTDEFS_H HAVE_WINT_T NEXT_AS_FIRST_DIRECTIVE_WCHAR_H NEXT_WCHAR_H REPLACE_WCSTOK REPLACE_WCSFTIME REPLACE_WCSWIDTH REPLACE_WCWIDTH REPLACE_WCSNRTOMBS REPLACE_WCSRTOMBS REPLACE_WCRTOMB REPLACE_MBSNRTOWCS REPLACE_MBSRTOWCS REPLACE_MBRLEN REPLACE_MBRTOWC REPLACE_MBSINIT REPLACE_WCTOB REPLACE_BTOWC REPLACE_MBSTATE_T HAVE_DECL_WCWIDTH HAVE_DECL_WCSDUP HAVE_DECL_WCTOB HAVE_WCSFTIME HAVE_WCSWIDTH HAVE_WCSTOK HAVE_WCSSTR HAVE_WCSPBRK HAVE_WCSSPN HAVE_WCSCSPN HAVE_WCSRCHR HAVE_WCSCHR HAVE_WCSDUP HAVE_WCSXFRM HAVE_WCSCOLL HAVE_WCSNCASECMP HAVE_WCSCASECMP HAVE_WCSNCMP HAVE_WCSCMP HAVE_WCSNCAT HAVE_WCSCAT HAVE_WCPNCPY HAVE_WCSNCPY HAVE_WCPCPY HAVE_WCSCPY HAVE_WCSNLEN HAVE_WCSLEN HAVE_WMEMSET HAVE_WMEMPCPY HAVE_WMEMMOVE HAVE_WMEMCPY HAVE_WMEMCMP HAVE_WMEMCHR HAVE_WCSNRTOMBS HAVE_WCSRTOMBS HAVE_WCRTOMB HAVE_MBSNRTOWCS HAVE_MBSRTOWCS HAVE_MBRLEN HAVE_MBRTOWC HAVE_MBSINIT HAVE_BTOWC GL_COND_OBJ_UNSETENV_FALSE GL_COND_OBJ_UNSETENV_TRUE GL_COND_OBJ_TZSET_FALSE GL_COND_OBJ_TZSET_TRUE GL_COND_OBJ_TIMEGM_FALSE GL_COND_OBJ_TIMEGM_TRUE GL_COND_OBJ_TIME_RZ_FALSE GL_COND_OBJ_TIME_RZ_TRUE GL_COND_OBJ_TIME_R_FALSE GL_COND_OBJ_TIME_R_TRUE HAVE_SYS_UIO_H NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H NEXT_SYS_UIO_H HAVE_SYS_RANDOM_H NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H NEXT_SYS_RANDOM_H GL_COND_OBJ_STRVERSCMP_FALSE GL_COND_OBJ_STRVERSCMP_TRUE GL_COND_OBJ_STRTOK_R_FALSE GL_COND_OBJ_STRTOK_R_TRUE GL_COND_OBJ_STRNLEN_FALSE GL_COND_OBJ_STRNLEN_TRUE GL_COND_OBJ_STRNDUP_FALSE GL_COND_OBJ_STRNDUP_TRUE GL_LIBGL_GNULIB_FFS HAVE_STRINGS_H NEXT_AS_FIRST_DIRECTIVE_STRINGS_H NEXT_STRINGS_H GL_COND_OBJ_STRDUP_FALSE GL_COND_OBJ_STRDUP_TRUE GL_COND_OBJ_STRCHRNUL_FALSE GL_COND_OBJ_STRCHRNUL_TRUE GL_COND_OBJ_STRNCASECMP_FALSE GL_COND_OBJ_STRNCASECMP_TRUE GL_COND_OBJ_STRCASECMP_FALSE GL_COND_OBJ_STRCASECMP_TRUE HAVE_DECL_STRNCASECMP HAVE_STRCASECMP HAVE_FFS GL_GENERATE_STDALIGN_H_FALSE GL_GENERATE_STDALIGN_H_TRUE STDALIGN_H GL_COND_OBJ_SOCKET_FALSE GL_COND_OBJ_SOCKET_TRUE GL_LIBGL_GNULIB_SIGACTION GL_LIBGL_GNULIB_SIGPROCMASK GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE GL_LIBGL_GNULIB_RAISE GL_LIBGL_GNULIB_PTHREAD_SIGMASK NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H NEXT_SIGNAL_H REPLACE_RAISE REPLACE_PTHREAD_SIGMASK HAVE_SIGHANDLER_T HAVE_TYPE_VOLATILE_SIG_ATOMIC_T HAVE_STRUCT_SIGACTION_SA_SIGACTION HAVE_SIGACTION HAVE_SIGINFO_T HAVE_SIGSET_T HAVE_RAISE HAVE_PTHREAD_SIGMASK HAVE_POSIX_SIGNALBLOCKING GL_COND_OBJ_SHUTDOWN_FALSE GL_COND_OBJ_SHUTDOWN_TRUE GL_COND_OBJ_SETENV_FALSE GL_COND_OBJ_SETENV_TRUE GL_COND_OBJ_SENDTO_FALSE GL_COND_OBJ_SENDTO_TRUE GL_LIBGL_GNULIB_SELECT GL_LIBGL_GNULIB_PSELECT GL_COND_OBJ_SELECT_FALSE GL_COND_OBJ_SELECT_TRUE LIB_SELECT LIBSOCKET HAVE_SYS_SELECT_H NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H NEXT_SYS_SELECT_H REPLACE_SELECT REPLACE_PSELECT HAVE_PSELECT GL_COND_OBJ_RECVFROM_FALSE GL_COND_OBJ_RECVFROM_TRUE GL_COND_OBJ_REALLOCARRAY_FALSE GL_COND_OBJ_REALLOCARRAY_TRUE GL_COND_OBJ_READLINK_FALSE GL_COND_OBJ_READLINK_TRUE GL_COND_OBJ_RAWMEMCHR_FALSE GL_COND_OBJ_RAWMEMCHR_TRUE YFLAGS YACC PARSE_DATETIME_BISON GL_GENERATE_NETINET_IN_H_FALSE GL_GENERATE_NETINET_IN_H_TRUE NETINET_IN_H HAVE_NETINET_IN_H NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H NEXT_NETINET_IN_H GL_LIBGL_GNULIB_MDA_TZSET GL_LIBGL_GNULIB_TZSET GL_LIBGL_GNULIB_TIME_RZ GL_LIBGL_GNULIB_TIME_R GL_LIBGL_GNULIB_TIMESPEC_GETRES GL_LIBGL_GNULIB_TIMESPEC_GET GL_LIBGL_GNULIB_TIMEGM GL_LIBGL_GNULIB_STRPTIME GL_LIBGL_GNULIB_STRFTIME GL_LIBGL_GNULIB_NANOSLEEP GL_LIBGL_GNULIB_LOCALTIME GL_LIBGL_GNULIB_MKTIME GL_LIBGL_GNULIB_CTIME GL_COND_OBJ_MEMCHR_FALSE GL_COND_OBJ_MEMCHR_TRUE GL_COND_OBJ_LSEEK_FALSE GL_COND_OBJ_LSEEK_TRUE GL_LIBGL_GNULIB_STRTOUMAX GL_LIBGL_GNULIB_STRTOIMAX GL_LIBGL_GNULIB_IMAXDIV GL_LIBGL_GNULIB_IMAXABS NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H NEXT_INTTYPES_H UINT64_MAX_EQ_ULONG_MAX UINT32_MAX_LT_UINTMAX_MAX PRIPTR_PREFIX INT64_MAX_EQ_LONG_MAX INT32_MAX_LT_INTMAX_MAX REPLACE_STRTOUMAX REPLACE_STRTOIMAX HAVE_IMAXDIV_T HAVE_DECL_STRTOUMAX HAVE_DECL_STRTOIMAX HAVE_DECL_IMAXDIV HAVE_DECL_IMAXABS GL_COND_OBJ_INET_NTOP_FALSE GL_COND_OBJ_INET_NTOP_TRUE GL_LIBGL_GNULIB_GETTIMEOFDAY GL_COND_OBJ_GETTIMEOFDAY_FALSE GL_COND_OBJ_GETTIMEOFDAY_TRUE NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H NEXT_SYS_TIME_H REPLACE_STRUCT_TIMEVAL REPLACE_GETTIMEOFDAY HAVE_SYS_TIME_H HAVE_STRUCT_TIMEVAL HAVE_GETTIMEOFDAY GL_COND_OBJ_GETSUBOPT_FALSE GL_COND_OBJ_GETSUBOPT_TRUE GL_LIBGL_GNULIB_GETRANDOM GL_COND_OBJ_GETRANDOM_FALSE GL_COND_OBJ_GETRANDOM_TRUE LIB_GETRANDOM REPLACE_GETRANDOM HAVE_GETRANDOM GL_COND_OBJ_GETPEERNAME_FALSE GL_COND_OBJ_GETPEERNAME_TRUE GL_COND_OBJ_GETLINE_FALSE GL_COND_OBJ_GETLINE_TRUE GL_COND_OBJ_GETHOSTNAME_FALSE GL_COND_OBJ_GETHOSTNAME_TRUE GETHOSTNAME_LIB GL_COND_OBJ_GETDOMAINNAME_FALSE GL_COND_OBJ_GETDOMAINNAME_TRUE GL_COND_OBJ_GETDELIM_FALSE GL_COND_OBJ_GETDELIM_TRUE GL_LIBGL_GNULIB_GETADDRINFO GL_COND_OBJ_GAI_STRERROR_FALSE GL_COND_OBJ_GAI_STRERROR_TRUE GL_COND_OBJ_GETADDRINFO_FALSE GL_COND_OBJ_GETADDRINFO_TRUE GETADDRINFO_LIB INET_NTOP_LIB SERVENT_LIB HOSTENT_LIB HAVE_NETDB_H NEXT_AS_FIRST_DIRECTIVE_NETDB_H NEXT_NETDB_H REPLACE_GETADDRINFO REPLACE_GAI_STRERROR HAVE_DECL_GETNAMEINFO HAVE_DECL_GETADDRINFO HAVE_DECL_GAI_STRERROR HAVE_DECL_FREEADDRINFO HAVE_STRUCT_ADDRINFO GL_COND_OBJ_FTELLO_FALSE GL_COND_OBJ_FTELLO_TRUE GL_COND_OBJ_FTELL_FALSE GL_COND_OBJ_FTELL_TRUE GL_LIBGL_GNULIB_MDA_UMASK GL_LIBGL_GNULIB_MDA_MKDIR GL_LIBGL_GNULIB_MDA_CHMOD GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT GL_LIBGL_GNULIB_UTIMENSAT GL_LIBGL_GNULIB_STAT GL_LIBGL_GNULIB_MKNODAT GL_LIBGL_GNULIB_MKNOD GL_LIBGL_GNULIB_MKFIFOAT GL_LIBGL_GNULIB_MKFIFO GL_LIBGL_GNULIB_MKDIRAT GL_LIBGL_GNULIB_MKDIR GL_LIBGL_GNULIB_LSTAT GL_LIBGL_GNULIB_LCHMOD GL_LIBGL_GNULIB_GETUMASK GL_LIBGL_GNULIB_FUTIMENS GL_LIBGL_GNULIB_FSTATAT GL_LIBGL_GNULIB_FSTAT GL_LIBGL_GNULIB_FCHMODAT GL_LIBGL_GNULIB_CHMOD GL_COND_OBJ_FSEEKO_FALSE GL_COND_OBJ_FSEEKO_TRUE GL_COND_OBJ_FSEEK_FALSE GL_COND_OBJ_FSEEK_TRUE GL_COND_OBJ_FREE_FALSE GL_COND_OBJ_FREE_TRUE GL_COND_OBJ_FPURGE_FALSE GL_COND_OBJ_FPURGE_TRUE GL_COND_OBJ_ITOLD_FALSE GL_COND_OBJ_ITOLD_TRUE GL_COND_OBJ_FLOAT_FALSE GL_COND_OBJ_FLOAT_TRUE GL_GENERATE_FLOAT_H_FALSE GL_GENERATE_FLOAT_H_TRUE FLOAT_H REPLACE_ITOLD NEXT_AS_FIRST_DIRECTIVE_FLOAT_H NEXT_FLOAT_H GL_LIBGL_GNULIB_MDA_TEMPNAM GL_LIBGL_GNULIB_MDA_PUTW GL_LIBGL_GNULIB_MDA_GETW GL_LIBGL_GNULIB_MDA_FILENO GL_LIBGL_GNULIB_MDA_FDOPEN GL_LIBGL_GNULIB_MDA_FCLOSEALL GL_LIBGL_GNULIB_VSPRINTF_POSIX GL_LIBGL_GNULIB_VSNPRINTF GL_LIBGL_GNULIB_VPRINTF_POSIX GL_LIBGL_GNULIB_VPRINTF GL_LIBGL_GNULIB_VFPRINTF_POSIX GL_LIBGL_GNULIB_VFPRINTF GL_LIBGL_GNULIB_VDPRINTF GL_LIBGL_GNULIB_VSCANF GL_LIBGL_GNULIB_VFSCANF GL_LIBGL_GNULIB_VASPRINTF GL_LIBGL_GNULIB_TMPFILE GL_LIBGL_GNULIB_STDIO_H_SIGPIPE GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING GL_LIBGL_GNULIB_SPRINTF_POSIX GL_LIBGL_GNULIB_SNPRINTF GL_LIBGL_GNULIB_SCANF GL_LIBGL_GNULIB_RENAMEAT GL_LIBGL_GNULIB_RENAME GL_LIBGL_GNULIB_REMOVE GL_LIBGL_GNULIB_PUTS GL_LIBGL_GNULIB_PUTCHAR GL_LIBGL_GNULIB_PUTC GL_LIBGL_GNULIB_PRINTF_POSIX GL_LIBGL_GNULIB_PRINTF GL_LIBGL_GNULIB_POPEN GL_LIBGL_GNULIB_PERROR GL_LIBGL_GNULIB_PCLOSE GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX GL_LIBGL_GNULIB_OBSTACK_PRINTF GL_LIBGL_GNULIB_GETLINE GL_LIBGL_GNULIB_GETDELIM GL_LIBGL_GNULIB_GETCHAR GL_LIBGL_GNULIB_GETC GL_LIBGL_GNULIB_FWRITE GL_LIBGL_GNULIB_FTELLO GL_LIBGL_GNULIB_FTELL GL_LIBGL_GNULIB_FSEEKO GL_LIBGL_GNULIB_FSEEK GL_LIBGL_GNULIB_FSCANF GL_LIBGL_GNULIB_FREOPEN GL_LIBGL_GNULIB_FREAD GL_LIBGL_GNULIB_FPUTS GL_LIBGL_GNULIB_FPUTC GL_LIBGL_GNULIB_FPURGE GL_LIBGL_GNULIB_FPRINTF_POSIX GL_LIBGL_GNULIB_FPRINTF GL_LIBGL_GNULIB_FOPEN_GNU GL_LIBGL_GNULIB_FOPEN GL_LIBGL_GNULIB_FGETS GL_LIBGL_GNULIB_FGETC GL_LIBGL_GNULIB_FFLUSH GL_LIBGL_GNULIB_FDOPEN GL_LIBGL_GNULIB_FCLOSE GL_LIBGL_GNULIB_DPRINTF GL_COND_OBJ_FFLUSH_FALSE GL_COND_OBJ_FFLUSH_TRUE GL_LIBGL_GNULIB_MDA_OPEN GL_LIBGL_GNULIB_MDA_CREAT GL_LIBGL_GNULIB_OPENAT GL_LIBGL_GNULIB_OPEN GL_LIBGL_GNULIB_NONBLOCKING GL_LIBGL_GNULIB_FCNTL GL_LIBGL_GNULIB_CREAT GL_LIBGL_GNULIB_MDA_STRDUP GL_LIBGL_GNULIB_MDA_MEMCCPY GL_LIBGL_GNULIB_STRVERSCMP GL_LIBGL_GNULIB_STRSIGNAL GL_LIBGL_GNULIB_SIGDESCR_NP GL_LIBGL_GNULIB_SIGABBREV_NP GL_LIBGL_GNULIB_STRERRORNAME_NP GL_LIBGL_GNULIB_STRERROR_R GL_LIBGL_GNULIB_STRERROR GL_LIBGL_GNULIB_MBSTOK_R GL_LIBGL_GNULIB_MBSSEP GL_LIBGL_GNULIB_MBSSPN GL_LIBGL_GNULIB_MBSPBRK GL_LIBGL_GNULIB_MBSCSPN GL_LIBGL_GNULIB_MBSCASESTR GL_LIBGL_GNULIB_MBSPCASECMP GL_LIBGL_GNULIB_MBSNCASECMP GL_LIBGL_GNULIB_MBSCASECMP GL_LIBGL_GNULIB_MBSSTR GL_LIBGL_GNULIB_MBSRCHR GL_LIBGL_GNULIB_MBSCHR GL_LIBGL_GNULIB_MBSNLEN GL_LIBGL_GNULIB_MBSLEN GL_LIBGL_GNULIB_STRTOK_R GL_LIBGL_GNULIB_STRCASESTR GL_LIBGL_GNULIB_STRSTR GL_LIBGL_GNULIB_STRSEP GL_LIBGL_GNULIB_STRPBRK GL_LIBGL_GNULIB_STRNLEN GL_LIBGL_GNULIB_STRNDUP GL_LIBGL_GNULIB_STRNCAT GL_LIBGL_GNULIB_STRDUP GL_LIBGL_GNULIB_STRCHRNUL GL_LIBGL_GNULIB_STPNCPY GL_LIBGL_GNULIB_STPCPY GL_LIBGL_GNULIB_RAWMEMCHR GL_LIBGL_GNULIB_MEMRCHR GL_LIBGL_GNULIB_MEMPCPY GL_LIBGL_GNULIB_MEMMEM GL_LIBGL_GNULIB_MEMCHR GL_LIBGL_GNULIB_FFSLL GL_LIBGL_GNULIB_FFSL GL_LIBGL_GNULIB_EXPLICIT_BZERO GL_COND_OBJ_EXPLICIT_BZERO_FALSE GL_COND_OBJ_EXPLICIT_BZERO_TRUE GL_COND_OBJ_GC_LIBGCRYPT_FALSE GL_COND_OBJ_GC_LIBGCRYPT_TRUE LIB_CRYPTO LIBGCRYPT_PREFIX LTLIBGCRYPT LIBGCRYPT HAVE_LIBGCRYPT LIBGCRYPT_LIBS LIBGCRYPT_CFLAGS LIBGCRYPT_CONFIG GL_COND_OBJ_CONNECT_FALSE GL_COND_OBJ_CONNECT_TRUE GL_LIBGL_GNULIB_MDA_WRITE GL_LIBGL_GNULIB_MDA_UNLINK GL_LIBGL_GNULIB_MDA_SWAB GL_LIBGL_GNULIB_MDA_RMDIR GL_LIBGL_GNULIB_MDA_READ GL_LIBGL_GNULIB_MDA_LSEEK GL_LIBGL_GNULIB_MDA_ISATTY GL_LIBGL_GNULIB_MDA_GETPID GL_LIBGL_GNULIB_MDA_GETCWD GL_LIBGL_GNULIB_MDA_EXECVPE GL_LIBGL_GNULIB_MDA_EXECVP GL_LIBGL_GNULIB_MDA_EXECVE GL_LIBGL_GNULIB_MDA_EXECV GL_LIBGL_GNULIB_MDA_EXECLP GL_LIBGL_GNULIB_MDA_EXECLE GL_LIBGL_GNULIB_MDA_EXECL GL_LIBGL_GNULIB_MDA_DUP2 GL_LIBGL_GNULIB_MDA_DUP GL_LIBGL_GNULIB_MDA_CLOSE GL_LIBGL_GNULIB_MDA_CHDIR GL_LIBGL_GNULIB_MDA_ACCESS GL_LIBGL_GNULIB_WRITE GL_LIBGL_GNULIB_USLEEP GL_LIBGL_GNULIB_UNLINKAT GL_LIBGL_GNULIB_UNLINK GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING GL_LIBGL_GNULIB_UNISTD_H_GETOPT GL_LIBGL_GNULIB_TTYNAME_R GL_LIBGL_GNULIB_TRUNCATE GL_LIBGL_GNULIB_SYMLINKAT GL_LIBGL_GNULIB_SYMLINK GL_LIBGL_GNULIB_SLEEP GL_LIBGL_GNULIB_SETHOSTNAME GL_LIBGL_GNULIB_RMDIR GL_LIBGL_GNULIB_READLINKAT GL_LIBGL_GNULIB_READLINK GL_LIBGL_GNULIB_READ GL_LIBGL_GNULIB_PWRITE GL_LIBGL_GNULIB_PREAD GL_LIBGL_GNULIB_PIPE2 GL_LIBGL_GNULIB_PIPE GL_LIBGL_GNULIB_LSEEK GL_LIBGL_GNULIB_LINKAT GL_LIBGL_GNULIB_LINK GL_LIBGL_GNULIB_LCHOWN GL_LIBGL_GNULIB_ISATTY GL_LIBGL_GNULIB_GROUP_MEMBER GL_LIBGL_GNULIB_GETUSERSHELL GL_LIBGL_GNULIB_GETPASS_GNU GL_LIBGL_GNULIB_GETPASS GL_LIBGL_GNULIB_GETPAGESIZE GL_LIBGL_GNULIB_GETOPT_POSIX GL_LIBGL_GNULIB_GETLOGIN_R GL_LIBGL_GNULIB_GETLOGIN GL_LIBGL_GNULIB_GETHOSTNAME GL_LIBGL_GNULIB_GETGROUPS GL_LIBGL_GNULIB_GETENTROPY GL_LIBGL_GNULIB_GETDTABLESIZE GL_LIBGL_GNULIB_GETDOMAINNAME GL_LIBGL_GNULIB_GETCWD GL_LIBGL_GNULIB_FTRUNCATE GL_LIBGL_GNULIB_FSYNC GL_LIBGL_GNULIB_FDATASYNC GL_LIBGL_GNULIB_FCHOWNAT GL_LIBGL_GNULIB_FCHDIR GL_LIBGL_GNULIB_FACCESSAT GL_LIBGL_GNULIB_EXECVPE GL_LIBGL_GNULIB_EXECVP GL_LIBGL_GNULIB_EXECVE GL_LIBGL_GNULIB_EXECV GL_LIBGL_GNULIB_EXECLP GL_LIBGL_GNULIB_EXECLE GL_LIBGL_GNULIB_EXECL GL_LIBGL_GNULIB_EUIDACCESS GL_LIBGL_GNULIB_ENVIRON GL_LIBGL_GNULIB_DUP3 GL_LIBGL_GNULIB_DUP2 GL_LIBGL_GNULIB_DUP GL_LIBGL_GNULIB_COPY_FILE_RANGE GL_LIBGL_GNULIB_CLOSE GL_LIBGL_GNULIB_CHOWN GL_LIBGL_GNULIB_CHDIR GL_LIBGL_GNULIB_ACCESS LIB_CLOCK_GETTIME GL_LIBGL_GNULIB_MDA_PUTENV GL_LIBGL_GNULIB_MDA_MKTEMP GL_LIBGL_GNULIB_MDA_GCVT GL_LIBGL_GNULIB_MDA_FCVT GL_LIBGL_GNULIB_MDA_ECVT GL_LIBGL_GNULIB_WCTOMB GL_LIBGL_GNULIB_UNSETENV GL_LIBGL_GNULIB_UNLOCKPT GL_LIBGL_GNULIB_SYSTEM_POSIX GL_LIBGL_GNULIB_STRTOULL GL_LIBGL_GNULIB_STRTOUL GL_LIBGL_GNULIB_STRTOLL GL_LIBGL_GNULIB_STRTOLD GL_LIBGL_GNULIB_STRTOL GL_LIBGL_GNULIB_STRTOD GL_LIBGL_GNULIB_SETENV GL_LIBGL_GNULIB_SECURE_GETENV GL_LIBGL_GNULIB_RPMATCH GL_LIBGL_GNULIB_REALPATH GL_LIBGL_GNULIB_REALLOC_POSIX GL_LIBGL_GNULIB_REALLOC_GNU GL_LIBGL_GNULIB_REALLOCARRAY GL_LIBGL_GNULIB_RANDOM_R GL_LIBGL_GNULIB_RANDOM GL_LIBGL_GNULIB_QSORT_R GL_LIBGL_GNULIB_PUTENV GL_LIBGL_GNULIB_PTSNAME_R GL_LIBGL_GNULIB_PTSNAME GL_LIBGL_GNULIB_POSIX_OPENPT GL_LIBGL_GNULIB_POSIX_MEMALIGN GL_LIBGL_GNULIB_MKSTEMPS GL_LIBGL_GNULIB_MKSTEMP GL_LIBGL_GNULIB_MKOSTEMPS GL_LIBGL_GNULIB_MKOSTEMP GL_LIBGL_GNULIB_MKDTEMP GL_LIBGL_GNULIB_MBTOWC GL_LIBGL_GNULIB_MALLOC_POSIX GL_LIBGL_GNULIB_MALLOC_GNU GL_LIBGL_GNULIB_GRANTPT GL_LIBGL_GNULIB_GETSUBOPT GL_LIBGL_GNULIB_GETLOADAVG GL_LIBGL_GNULIB_FREE_POSIX GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME GL_LIBGL_GNULIB_CALLOC_POSIX GL_LIBGL_GNULIB_CALLOC_GNU GL_LIBGL_GNULIB_ATOLL GL_LIBGL_GNULIB_ALIGNED_ALLOC GL_LIBGL_GNULIB__EXIT GL_GENERATE_BYTESWAP_H_FALSE GL_GENERATE_BYTESWAP_H_TRUE BYTESWAP_H GL_LIBGL_GNULIB_ACCEPT4 GL_LIBGL_GNULIB_SHUTDOWN GL_LIBGL_GNULIB_SETSOCKOPT GL_LIBGL_GNULIB_SENDTO GL_LIBGL_GNULIB_RECVFROM GL_LIBGL_GNULIB_SEND GL_LIBGL_GNULIB_RECV GL_LIBGL_GNULIB_LISTEN GL_LIBGL_GNULIB_GETSOCKOPT GL_LIBGL_GNULIB_GETSOCKNAME GL_LIBGL_GNULIB_GETPEERNAME GL_LIBGL_GNULIB_BIND GL_LIBGL_GNULIB_ACCEPT GL_LIBGL_GNULIB_CONNECT GL_LIBGL_GNULIB_SOCKET GL_COND_OBJ_BIND_FALSE GL_COND_OBJ_BIND_TRUE HAVE_SYS_SOCKET_H NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H NEXT_SYS_SOCKET_H HAVE_ACCEPT4 HAVE_SA_FAMILY_T HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY HAVE_STRUCT_SOCKADDR_STORAGE GL_LIBGL_GNULIB_INET_PTON GL_LIBGL_GNULIB_INET_NTOP HAVE_WS2TCPIP_H HAVE_FEATURES_H NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H NEXT_ARPA_INET_H HAVE_ARPA_INET_H REPLACE_INET_PTON REPLACE_INET_NTOP HAVE_DECL_INET_PTON HAVE_DECL_INET_NTOP LTALLOCA LIBTESTS_LIBDEPS GL_CFLAG_GNULIB_WARNINGS gltests_WITNESS GL_CXXFLAG_ALLOW_WARNINGS GL_CFLAG_ALLOW_WARNINGS LOG_VALGRIND AM_VALGRINDFLAGS VALGRINDFLAGS DEFAULT_VALGRINDFLAGS VALGRIND_PROGRAM VALGRIND HAVE_UNISTD_H NEXT_AS_FIRST_DIRECTIVE_UNISTD_H NEXT_UNISTD_H GL_GNULIB_MDA_TZSET GL_GNULIB_TZSET GL_GNULIB_TIME_RZ GL_GNULIB_TIME_R GL_GNULIB_TIMESPEC_GETRES GL_GNULIB_TIMESPEC_GET GL_GNULIB_TIMEGM GL_GNULIB_STRPTIME GL_GNULIB_STRFTIME GL_GNULIB_NANOSLEEP GL_GNULIB_LOCALTIME GL_GNULIB_MKTIME GL_GNULIB_CTIME TIME_H_DEFINES_TIME_UTC UNISTD_H_DEFINES_STRUCT_TIMESPEC PTHREAD_H_DEFINES_STRUCT_TIMESPEC SYS_TIME_H_DEFINES_STRUCT_TIMESPEC TIME_H_DEFINES_STRUCT_TIMESPEC NEXT_AS_FIRST_DIRECTIVE_TIME_H NEXT_TIME_H REPLACE_LOCALTIME REPLACE_GMTIME GNULIB_GETTIMEOFDAY REPLACE_TZSET REPLACE_TIMEGM REPLACE_STRFTIME REPLACE_NANOSLEEP REPLACE_MKTIME REPLACE_LOCALTIME_R REPLACE_CTIME HAVE_TIMEZONE_T HAVE_TIMESPEC_GETRES HAVE_TIMESPEC_GET HAVE_TIMEGM HAVE_STRPTIME HAVE_NANOSLEEP HAVE_DECL_LOCALTIME_R WINDOWS_STAT_INODES WINDOWS_64_BIT_OFF_T NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H NEXT_SYS_TYPES_H NEXT_AS_FIRST_DIRECTIVE_STRING_H NEXT_STRING_H GL_COND_OBJ_STRERROR_OVERRIDE_FALSE GL_COND_OBJ_STRERROR_OVERRIDE_TRUE GL_GNULIB_MDA_STRDUP GL_GNULIB_MDA_MEMCCPY GL_GNULIB_STRVERSCMP GL_GNULIB_STRSIGNAL GL_GNULIB_SIGDESCR_NP GL_GNULIB_SIGABBREV_NP GL_GNULIB_STRERRORNAME_NP GL_GNULIB_STRERROR_R GL_GNULIB_STRERROR GL_GNULIB_MBSTOK_R GL_GNULIB_MBSSEP GL_GNULIB_MBSSPN GL_GNULIB_MBSPBRK GL_GNULIB_MBSCSPN GL_GNULIB_MBSCASESTR GL_GNULIB_MBSPCASECMP GL_GNULIB_MBSNCASECMP GL_GNULIB_MBSCASECMP GL_GNULIB_MBSSTR GL_GNULIB_MBSRCHR GL_GNULIB_MBSCHR GL_GNULIB_MBSNLEN GL_GNULIB_MBSLEN GL_GNULIB_STRTOK_R GL_GNULIB_STRCASESTR GL_GNULIB_STRSTR GL_GNULIB_STRSEP GL_GNULIB_STRPBRK GL_GNULIB_STRNLEN GL_GNULIB_STRNDUP GL_GNULIB_STRNCAT GL_GNULIB_STRDUP GL_GNULIB_STRCHRNUL GL_GNULIB_STPNCPY GL_GNULIB_STPCPY GL_GNULIB_RAWMEMCHR GL_GNULIB_MEMRCHR GL_GNULIB_MEMPCPY GL_GNULIB_MEMMEM GL_GNULIB_MEMCHR GL_GNULIB_FFSLL GL_GNULIB_FFSL GL_GNULIB_EXPLICIT_BZERO GL_COND_OBJ_STRERROR_FALSE GL_COND_OBJ_STRERROR_TRUE UNDEFINE_STRTOK_R REPLACE_STRSIGNAL REPLACE_STRERRORNAME_NP REPLACE_STRERROR_R REPLACE_STRERROR REPLACE_STRTOK_R REPLACE_STRCASESTR REPLACE_STRSTR REPLACE_STRNLEN REPLACE_STRNDUP REPLACE_STRNCAT REPLACE_STRDUP REPLACE_STRCHRNUL REPLACE_STPNCPY REPLACE_MEMMEM REPLACE_MEMCHR REPLACE_FFSLL HAVE_STRVERSCMP HAVE_DECL_STRSIGNAL HAVE_SIGDESCR_NP HAVE_SIGABBREV_NP HAVE_STRERRORNAME_NP HAVE_DECL_STRERROR_R HAVE_DECL_STRTOK_R HAVE_STRCASESTR HAVE_STRSEP HAVE_STRPBRK HAVE_DECL_STRNLEN HAVE_DECL_STRNDUP HAVE_DECL_STRDUP HAVE_STRCHRNUL HAVE_STPNCPY HAVE_STPCPY HAVE_RAWMEMCHR HAVE_DECL_MEMRCHR HAVE_MEMPCPY HAVE_DECL_MEMMEM HAVE_FFSLL HAVE_FFSL HAVE_EXPLICIT_BZERO HAVE_MBSLEN GL_GNULIB_MDA_PUTENV GL_GNULIB_MDA_MKTEMP GL_GNULIB_MDA_GCVT GL_GNULIB_MDA_FCVT GL_GNULIB_MDA_ECVT GL_GNULIB_WCTOMB GL_GNULIB_UNSETENV GL_GNULIB_UNLOCKPT GL_GNULIB_SYSTEM_POSIX GL_GNULIB_STRTOULL GL_GNULIB_STRTOUL GL_GNULIB_STRTOLL GL_GNULIB_STRTOLD GL_GNULIB_STRTOL GL_GNULIB_STRTOD GL_GNULIB_SETENV GL_GNULIB_SECURE_GETENV GL_GNULIB_RPMATCH GL_GNULIB_REALPATH GL_GNULIB_REALLOC_POSIX GL_GNULIB_REALLOC_GNU GL_GNULIB_REALLOCARRAY GL_GNULIB_RANDOM_R GL_GNULIB_RANDOM GL_GNULIB_QSORT_R GL_GNULIB_PUTENV GL_GNULIB_PTSNAME_R GL_GNULIB_PTSNAME GL_GNULIB_POSIX_OPENPT GL_GNULIB_POSIX_MEMALIGN GL_GNULIB_MKSTEMPS GL_GNULIB_MKSTEMP GL_GNULIB_MKOSTEMPS GL_GNULIB_MKOSTEMP GL_GNULIB_MKDTEMP GL_GNULIB_MBTOWC GL_GNULIB_MALLOC_POSIX GL_GNULIB_MALLOC_GNU GL_GNULIB_GRANTPT GL_GNULIB_GETSUBOPT GL_GNULIB_GETLOADAVG GL_GNULIB_FREE_POSIX GL_GNULIB_CANONICALIZE_FILE_NAME GL_GNULIB_CALLOC_POSIX GL_GNULIB_CALLOC_GNU GL_GNULIB_ATOLL GL_GNULIB_ALIGNED_ALLOC GL_GNULIB__EXIT NEXT_AS_FIRST_DIRECTIVE_STDLIB_H NEXT_STDLIB_H REPLACE_WCTOMB REPLACE_UNSETENV REPLACE_STRTOULL REPLACE_STRTOUL REPLACE_STRTOLL REPLACE_STRTOLD REPLACE_STRTOL REPLACE_STRTOD REPLACE_SETSTATE REPLACE_SETENV REPLACE_REALPATH REPLACE_REALLOCARRAY REPLACE_REALLOC_FOR_REALLOC_POSIX REPLACE_REALLOC_FOR_REALLOC_GNU REPLACE_RANDOM_R REPLACE_RANDOM REPLACE_QSORT_R REPLACE_PUTENV REPLACE_PTSNAME_R REPLACE_PTSNAME REPLACE_POSIX_MEMALIGN REPLACE_MKSTEMP REPLACE_MBTOWC REPLACE_MALLOC_FOR_MALLOC_POSIX REPLACE_MALLOC_FOR_MALLOC_GNU REPLACE_INITSTATE REPLACE_FREE REPLACE_CANONICALIZE_FILE_NAME REPLACE_CALLOC_FOR_CALLOC_POSIX REPLACE_CALLOC_FOR_CALLOC_GNU REPLACE_ALIGNED_ALLOC HAVE_DECL_UNSETENV HAVE_UNLOCKPT HAVE_SYS_LOADAVG_H HAVE_STRUCT_RANDOM_DATA HAVE_STRTOULL HAVE_STRTOUL HAVE_STRTOLL HAVE_STRTOLD HAVE_STRTOL HAVE_STRTOD HAVE_DECL_SETSTATE HAVE_SETSTATE HAVE_DECL_SETENV HAVE_SETENV HAVE_SECURE_GETENV HAVE_RPMATCH HAVE_REALPATH HAVE_REALLOCARRAY HAVE_RANDOM_R HAVE_RANDOM_H HAVE_RANDOM HAVE_QSORT_R HAVE_PTSNAME_R HAVE_PTSNAME HAVE_POSIX_OPENPT HAVE_POSIX_MEMALIGN HAVE_MKSTEMPS HAVE_MKSTEMP HAVE_MKOSTEMPS HAVE_MKOSTEMP HAVE_MKDTEMP HAVE_MBTOWC HAVE_DECL_INITSTATE HAVE_INITSTATE HAVE_GRANTPT HAVE_GETSUBOPT HAVE_DECL_GETLOADAVG HAVE_DECL_GCVT HAVE_DECL_FCVT HAVE_DECL_ECVT HAVE_CANONICALIZE_FILE_NAME HAVE_ATOLL HAVE_ALIGNED_ALLOC HAVE__EXIT GL_COND_OBJ_STDIO_WRITE_FALSE GL_COND_OBJ_STDIO_WRITE_TRUE GL_COND_OBJ_STDIO_READ_FALSE GL_COND_OBJ_STDIO_READ_TRUE GL_GNULIB_MDA_TEMPNAM GL_GNULIB_MDA_PUTW GL_GNULIB_MDA_GETW GL_GNULIB_MDA_FILENO GL_GNULIB_MDA_FDOPEN GL_GNULIB_MDA_FCLOSEALL GL_GNULIB_VSPRINTF_POSIX GL_GNULIB_VSNPRINTF GL_GNULIB_VPRINTF_POSIX GL_GNULIB_VPRINTF GL_GNULIB_VFPRINTF_POSIX GL_GNULIB_VFPRINTF GL_GNULIB_VDPRINTF GL_GNULIB_VSCANF GL_GNULIB_VFSCANF GL_GNULIB_VASPRINTF GL_GNULIB_TMPFILE GL_GNULIB_STDIO_H_SIGPIPE GL_GNULIB_STDIO_H_NONBLOCKING GL_GNULIB_SPRINTF_POSIX GL_GNULIB_SNPRINTF GL_GNULIB_SCANF GL_GNULIB_RENAMEAT GL_GNULIB_RENAME GL_GNULIB_REMOVE GL_GNULIB_PUTS GL_GNULIB_PUTCHAR GL_GNULIB_PUTC GL_GNULIB_PRINTF_POSIX GL_GNULIB_PRINTF GL_GNULIB_POPEN GL_GNULIB_PERROR GL_GNULIB_PCLOSE GL_GNULIB_OBSTACK_PRINTF_POSIX GL_GNULIB_OBSTACK_PRINTF GL_GNULIB_GETLINE GL_GNULIB_GETDELIM GL_GNULIB_GETCHAR GL_GNULIB_GETC GL_GNULIB_FWRITE GL_GNULIB_FTELLO GL_GNULIB_FTELL GL_GNULIB_FSEEKO GL_GNULIB_FSEEK GL_GNULIB_FSCANF GL_GNULIB_FREOPEN GL_GNULIB_FREAD GL_GNULIB_FPUTS GL_GNULIB_FPUTC GL_GNULIB_FPURGE GL_GNULIB_FPRINTF_POSIX GL_GNULIB_FPRINTF GL_GNULIB_FOPEN_GNU GL_GNULIB_FOPEN GL_GNULIB_FGETS GL_GNULIB_FGETC GL_GNULIB_FFLUSH GL_GNULIB_FDOPEN GL_GNULIB_FCLOSE GL_GNULIB_DPRINTF NEXT_AS_FIRST_DIRECTIVE_STDIO_H NEXT_STDIO_H REPLACE_VSPRINTF REPLACE_VSNPRINTF REPLACE_VPRINTF REPLACE_VFPRINTF REPLACE_VDPRINTF REPLACE_VASPRINTF REPLACE_TMPFILE REPLACE_STDIO_WRITE_FUNCS REPLACE_STDIO_READ_FUNCS REPLACE_SPRINTF REPLACE_SNPRINTF REPLACE_RENAMEAT REPLACE_RENAME REPLACE_REMOVE REPLACE_PRINTF REPLACE_POPEN REPLACE_PERROR REPLACE_OBSTACK_PRINTF REPLACE_GETLINE REPLACE_GETDELIM REPLACE_FTELLO REPLACE_FTELL REPLACE_FSEEKO REPLACE_FSEEK REPLACE_FREOPEN REPLACE_FPURGE REPLACE_FPRINTF REPLACE_FOPEN_FOR_FOPEN_GNU REPLACE_FOPEN REPLACE_FFLUSH REPLACE_FDOPEN REPLACE_FCLOSE REPLACE_DPRINTF HAVE_VDPRINTF HAVE_VASPRINTF HAVE_RENAMEAT HAVE_POPEN HAVE_PCLOSE HAVE_FTELLO HAVE_FSEEKO HAVE_DPRINTF HAVE_DECL_VSNPRINTF HAVE_DECL_SNPRINTF HAVE_DECL_OBSTACK_PRINTF HAVE_DECL_GETLINE HAVE_DECL_GETDELIM HAVE_DECL_FTELLO HAVE_DECL_FSEEKO HAVE_DECL_FPURGE HAVE_DECL_FCLOSEALL GL_GENERATE_STDINT_H_FALSE GL_GENERATE_STDINT_H_TRUE STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H HAVE_C99_STDINT_H WINT_T_SUFFIX WCHAR_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX PTRDIFF_T_SUFFIX HAVE_SIGNED_WINT_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_SIG_ATOMIC_T BITSIZEOF_WINT_T BITSIZEOF_WCHAR_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_PTRDIFF_T HAVE_STDINT_H NEXT_AS_FIRST_DIRECTIVE_STDINT_H NEXT_STDINT_H HAVE_SYS_TYPES_H HAVE_INTTYPES_H HAVE_WCHAR_H GNULIBHEADERS_OVERRIDE_WINT_T GL_GENERATE_STDDEF_H_FALSE GL_GENERATE_STDDEF_H_TRUE STDDEF_H GL_GENERATE_STDBOOL_H_FALSE GL_GENERATE_STDBOOL_H_TRUE STDBOOL_H HAVE__BOOL GL_GENERATE_STDARG_H_FALSE GL_GENERATE_STDARG_H_TRUE STDARG_H NEXT_AS_FIRST_DIRECTIVE_STDARG_H NEXT_STDARG_H GL_COND_OBJ_STAT_FALSE GL_COND_OBJ_STAT_TRUE PMCCABE GL_COND_OBJ_OPEN_FALSE GL_COND_OBJ_OPEN_TRUE APPLE_UNIVERSAL_BUILD GL_COND_OBJ_MSVC_NOTHROW_FALSE GL_COND_OBJ_MSVC_NOTHROW_TRUE GL_COND_OBJ_MSVC_INVAL_FALSE GL_COND_OBJ_MSVC_INVAL_TRUE GL_GNULIB_LOCALENAME GL_GNULIB_DUPLOCALE GL_GNULIB_SETLOCALE_NULL GL_GNULIB_SETLOCALE GL_GNULIB_LOCALECONV NEXT_AS_FIRST_DIRECTIVE_LOCALE_H NEXT_LOCALE_H HAVE_XLOCALE_H NEXT_AS_FIRST_DIRECTIVE_STDDEF_H NEXT_STDDEF_H HAVE_WCHAR_T HAVE_MAX_ALIGN_T REPLACE_NULL LOCALENAME_ENHANCE_LOCALE_FUNCS REPLACE_STRUCT_LCONV REPLACE_FREELOCALE REPLACE_DUPLOCALE REPLACE_NEWLOCALE REPLACE_SETLOCALE REPLACE_LOCALECONV HAVE_FREELOCALE HAVE_DUPLOCALE HAVE_NEWLOCALE GL_GENERATE_LIMITS_H_FALSE GL_GENERATE_LIMITS_H_TRUE LIMITS_H NEXT_AS_FIRST_DIRECTIVE_LIMITS_H NEXT_LIMITS_H HAVE_LD_VERSION_SCRIPT_FALSE HAVE_LD_VERSION_SCRIPT_TRUE HAVE_LD_OUTPUT_DEF_FALSE HAVE_LD_OUTPUT_DEF_TRUE GL_COND_OBJ_GETOPT_FALSE GL_COND_OBJ_GETOPT_TRUE GL_GENERATE_GETOPT_CDEFS_H_FALSE GL_GENERATE_GETOPT_CDEFS_H_TRUE GETOPT_CDEFS_H GL_GENERATE_GETOPT_H_FALSE GL_GENERATE_GETOPT_H_TRUE GETOPT_H HAVE_SYS_CDEFS_H HAVE_GETOPT_H NEXT_AS_FIRST_DIRECTIVE_GETOPT_H NEXT_GETOPT_H GL_COND_OBJ_GETDTABLESIZE_FALSE GL_COND_OBJ_GETDTABLESIZE_TRUE GL_GNULIB_MDA_UMASK GL_GNULIB_MDA_MKDIR GL_GNULIB_MDA_CHMOD GL_GNULIB_OVERRIDES_STRUCT_STAT GL_GNULIB_UTIMENSAT GL_GNULIB_STAT GL_GNULIB_MKNODAT GL_GNULIB_MKNOD GL_GNULIB_MKFIFOAT GL_GNULIB_MKFIFO GL_GNULIB_MKDIRAT GL_GNULIB_MKDIR GL_GNULIB_LSTAT GL_GNULIB_LCHMOD GL_GNULIB_GETUMASK GL_GNULIB_FUTIMENS GL_GNULIB_FSTATAT GL_GNULIB_FSTAT GL_GNULIB_FCHMODAT GL_GNULIB_CHMOD WINDOWS_64_BIT_ST_SIZE WINDOWS_STAT_TIMESPEC NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H NEXT_SYS_STAT_H GL_COND_OBJ_FSTAT_FALSE GL_COND_OBJ_FSTAT_TRUE REPLACE_UTIMENSAT REPLACE_STAT REPLACE_MKNODAT REPLACE_MKNOD REPLACE_MKFIFOAT REPLACE_MKFIFO REPLACE_MKDIR REPLACE_LSTAT REPLACE_FUTIMENS REPLACE_FSTATAT REPLACE_FSTAT REPLACE_FCHMODAT REPLACE_CHMOD HAVE_UTIMENSAT HAVE_MKNODAT HAVE_MKNOD HAVE_MKFIFOAT HAVE_MKFIFO HAVE_MKDIRAT HAVE_LSTAT HAVE_LCHMOD HAVE_GETUMASK HAVE_FUTIMENS HAVE_FSTATAT HAVE_FCHMODAT NEXT_AS_FIRST_DIRECTIVE_FCNTL_H NEXT_FCNTL_H GL_GNULIB_MDA_OPEN GL_GNULIB_MDA_CREAT GL_GNULIB_OPENAT GL_GNULIB_OPEN GL_GNULIB_NONBLOCKING GL_GNULIB_FCNTL GL_GNULIB_CREAT GL_COND_OBJ_FCNTL_FALSE GL_COND_OBJ_FCNTL_TRUE REPLACE_OPENAT REPLACE_OPEN REPLACE_FCNTL REPLACE_CREAT HAVE_OPENAT HAVE_FCNTL GL_COND_OBJ_ERROR_FALSE GL_COND_OBJ_ERROR_TRUE GL_GENERATE_ERRNO_H_FALSE GL_GENERATE_ERRNO_H_TRUE ERRNO_H EOVERFLOW_VALUE EOVERFLOW_HIDDEN ENOLINK_VALUE ENOLINK_HIDDEN EMULTIHOP_VALUE EMULTIHOP_HIDDEN NEXT_AS_FIRST_DIRECTIVE_ERRNO_H NEXT_ERRNO_H PRAGMA_COLUMNS PRAGMA_SYSTEM_HEADER INCLUDE_NEXT_AS_FIRST_DIRECTIVE INCLUDE_NEXT GL_COND_OBJ_DUP2_FALSE GL_COND_OBJ_DUP2_TRUE GL_GNULIB_MDA_WRITE GL_GNULIB_MDA_UNLINK GL_GNULIB_MDA_SWAB GL_GNULIB_MDA_RMDIR GL_GNULIB_MDA_READ GL_GNULIB_MDA_LSEEK GL_GNULIB_MDA_ISATTY GL_GNULIB_MDA_GETPID GL_GNULIB_MDA_GETCWD GL_GNULIB_MDA_EXECVPE GL_GNULIB_MDA_EXECVP GL_GNULIB_MDA_EXECVE GL_GNULIB_MDA_EXECV GL_GNULIB_MDA_EXECLP GL_GNULIB_MDA_EXECLE GL_GNULIB_MDA_EXECL GL_GNULIB_MDA_DUP2 GL_GNULIB_MDA_DUP GL_GNULIB_MDA_CLOSE GL_GNULIB_MDA_CHDIR GL_GNULIB_MDA_ACCESS GL_GNULIB_WRITE GL_GNULIB_USLEEP GL_GNULIB_UNLINKAT GL_GNULIB_UNLINK GL_GNULIB_UNISTD_H_SIGPIPE GL_GNULIB_UNISTD_H_NONBLOCKING GL_GNULIB_UNISTD_H_GETOPT GL_GNULIB_TTYNAME_R GL_GNULIB_TRUNCATE GL_GNULIB_SYMLINKAT GL_GNULIB_SYMLINK GL_GNULIB_SLEEP GL_GNULIB_SETHOSTNAME GL_GNULIB_RMDIR GL_GNULIB_READLINKAT GL_GNULIB_READLINK GL_GNULIB_READ GL_GNULIB_PWRITE GL_GNULIB_PREAD GL_GNULIB_PIPE2 GL_GNULIB_PIPE GL_GNULIB_LSEEK GL_GNULIB_LINKAT GL_GNULIB_LINK GL_GNULIB_LCHOWN GL_GNULIB_ISATTY GL_GNULIB_GROUP_MEMBER GL_GNULIB_GETUSERSHELL GL_GNULIB_GETPASS_GNU GL_GNULIB_GETPASS GL_GNULIB_GETPAGESIZE GL_GNULIB_GETOPT_POSIX GL_GNULIB_GETLOGIN_R GL_GNULIB_GETLOGIN GL_GNULIB_GETHOSTNAME GL_GNULIB_GETGROUPS GL_GNULIB_GETENTROPY GL_GNULIB_GETDTABLESIZE GL_GNULIB_GETDOMAINNAME GL_GNULIB_GETCWD GL_GNULIB_FTRUNCATE GL_GNULIB_FSYNC GL_GNULIB_FDATASYNC GL_GNULIB_FCHOWNAT GL_GNULIB_FCHDIR GL_GNULIB_FACCESSAT GL_GNULIB_EXECVPE GL_GNULIB_EXECVP GL_GNULIB_EXECVE GL_GNULIB_EXECV GL_GNULIB_EXECLP GL_GNULIB_EXECLE GL_GNULIB_EXECL GL_GNULIB_EUIDACCESS GL_GNULIB_ENVIRON GL_GNULIB_DUP3 GL_GNULIB_DUP2 GL_GNULIB_DUP GL_GNULIB_COPY_FILE_RANGE GL_GNULIB_CLOSE GL_GNULIB_CHOWN GL_GNULIB_CHDIR GL_GNULIB_ACCESS GL_COND_OBJ_CLOSE_FALSE GL_COND_OBJ_CLOSE_TRUE HAVE_WINSOCK2_H HAVE_MSVC_INVALID_PARAMETER_HANDLER UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS UNISTD_H_HAVE_WINSOCK2_H UNISTD_H_HAVE_SYS_RANDOM_H REPLACE_WRITE REPLACE_USLEEP REPLACE_UNLINKAT REPLACE_UNLINK REPLACE_TTYNAME_R REPLACE_TRUNCATE REPLACE_SYMLINKAT REPLACE_SYMLINK REPLACE_SLEEP REPLACE_RMDIR REPLACE_READLINKAT REPLACE_READLINK REPLACE_READ REPLACE_PWRITE REPLACE_PREAD REPLACE_LSEEK REPLACE_LINKAT REPLACE_LINK REPLACE_LCHOWN REPLACE_ISATTY REPLACE_GETPASS_FOR_GETPASS_GNU REPLACE_GETPASS REPLACE_GETPAGESIZE REPLACE_GETGROUPS REPLACE_GETLOGIN_R REPLACE_GETDTABLESIZE REPLACE_GETDOMAINNAME REPLACE_GETCWD REPLACE_FTRUNCATE REPLACE_FCHOWNAT REPLACE_FACCESSAT REPLACE_EXECVPE REPLACE_EXECVP REPLACE_EXECVE REPLACE_EXECV REPLACE_EXECLP REPLACE_EXECLE REPLACE_EXECL REPLACE_DUP2 REPLACE_DUP REPLACE_COPY_FILE_RANGE REPLACE_CLOSE REPLACE_CHOWN REPLACE_ACCESS HAVE_SYS_PARAM_H HAVE_OS_H HAVE_DECL_TTYNAME_R HAVE_DECL_TRUNCATE HAVE_DECL_SETHOSTNAME HAVE_DECL_GETUSERSHELL HAVE_DECL_GETPAGESIZE HAVE_DECL_GETLOGIN_R HAVE_DECL_GETLOGIN HAVE_DECL_GETDOMAINNAME HAVE_DECL_FDATASYNC HAVE_DECL_FCHDIR HAVE_DECL_EXECVPE HAVE_DECL_ENVIRON HAVE_USLEEP HAVE_UNLINKAT HAVE_SYMLINKAT HAVE_SYMLINK HAVE_SLEEP HAVE_SETHOSTNAME HAVE_READLINKAT HAVE_READLINK HAVE_PWRITE HAVE_PREAD HAVE_PIPE2 HAVE_PIPE HAVE_LINKAT HAVE_LINK HAVE_LCHOWN HAVE_GROUP_MEMBER HAVE_GETPASS HAVE_GETPAGESIZE HAVE_GETLOGIN HAVE_GETHOSTNAME HAVE_GETGROUPS HAVE_GETENTROPY HAVE_GETDTABLESIZE HAVE_FTRUNCATE HAVE_FSYNC HAVE_FDATASYNC HAVE_FCHOWNAT HAVE_FCHDIR HAVE_FACCESSAT HAVE_EXECVPE HAVE_EUIDACCESS HAVE_DUP3 HAVE_COPY_FILE_RANGE HAVE_CHOWN GL_GENERATE_ALLOCA_H_FALSE GL_GENERATE_ALLOCA_H_TRUE ALLOCA_H HAVE_ALLOCA_H ALLOCA GL_COND_LIBTOOL_FALSE GL_COND_LIBTOOL_TRUE GTK_DOC_USE_REBASE_FALSE GTK_DOC_USE_REBASE_TRUE GTK_DOC_USE_LIBTOOL_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_BUILD_PDF_FALSE GTK_DOC_BUILD_PDF_TRUE GTK_DOC_BUILD_HTML_FALSE GTK_DOC_BUILD_HTML_TRUE ENABLE_GTK_DOC_FALSE ENABLE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC_TRUE GTKDOC_DEPS_LIBS GTKDOC_DEPS_CFLAGS HTML_DIR GTKDOC_MKPDF GTKDOC_REBASE GTKDOC_CHECK_PATH GTKDOC_CHECK PKG_CONFIG POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS DIA GENGETOPT ASN1PARSER HELP2MAN PERL LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL OBJDUMP DLLTOOL AS RANLIB ARFLAGS ac_ct_AR AR EGREP GREP CPP host_os host_vendor host_cpu host build_os build_vendor build_cpu build am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V CSCOPE ETAGS CTAGS am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM NUMBER_VERSION PATCH_VERSION MINOR_VERSION MAJOR_VERSION SOVERSION LT_AGE LT_REVISION LT_CURRENT target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_largefile enable_year2038 enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_nls enable_rpath with_libiconv_prefix with_libintl_prefix with_html_dir enable_gtk_doc enable_gtk_doc_html enable_gtk_doc_pdf enable_cross_guesses enable_ld_version_script enable_valgrind_tests with_packager with_packager_version with_packager_bug_reports with_linux_crypto with_libgcrypt with_libgcrypt_prefix with_openssl with_libresolv_prefix enable_pam with_pam_dir enable_ipv6 with_stringprep with_libidn_prefix with_libtasn1_prefix enable_starttls with_libgnutls_prefix enable_des enable_3des enable_aes enable_md enable_null enable_arcfour with_conf_dir with_skel_dir with_key_dir with_db_dir enable_gcc_warnings ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP LT_SYS_LIBRARY_PATH PKG_CONFIG GTKDOC_DEPS_CFLAGS GTKDOC_DEPS_LIBS VALGRINDFLAGS YACC YFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures GNU Shishi 1.0.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/shishi] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of GNU Shishi 1.0.3:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-largefile omit support for large files --disable-year2038 omit support for timestamps past the year 2038 --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --enable-gtk-doc use gtk-doc to build documentation [[default=no]] --enable-gtk-doc-html build documentation in html format [[default=yes]] --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] --enable-cross-guesses={conservative|risky} specify policy for cross-compilation guesses --enable-ld-version-script enable linker version script (default is enabled when possible) --disable-valgrind-tests don't try to run self tests under valgrind --disable-pam Don't use PAM even if available --disable-ipv6 Don't use IPv6 even if available --disable-starttls disable non-standard STARTTLS --disable-des disable DES related encryption/checksum types --disable-3des disable 3DES encryption/checksum type --disable-aes disable AES encryption/checksum types --disable-md disable unkeyed MD4/MD5 checksum types --disable-null disable dummy NULL encryption/checksum type --disable-arcfour disable ARCFOUR encryption/checksum type --enable-gcc-warnings turn on lots of GCC warnings (for developers) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-html-dir=PATH path to installed docs --with-packager String identifying the packager of this software --with-packager-version Packager-specific version information --with-packager-bug-reports Packager info for bug reports (URL/e-mail/...) --with-linux-crypto use Linux kernel cryptographic API (if available) for the hash functions MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 on files --with-libgcrypt use libgcrypt for low-level crypto --with-libgcrypt-prefix=PFX prefix where LIBGCRYPT is installed (optional) --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir --with-openssl[=ARG] use libcrypto hash routines for the hash functions MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512. Valid ARGs are: 'yes', 'no', 'auto' => use if any version available, 'auto-gpl-compat' => use if GPL compatible version available, 'optional' => use if available and warn if not available; Default is 'no'. Note also --with-linux-crypto, which will enable the use of Linux kernel crypto routines (if available), which has precedence for files. --with-libresolv-prefix[=DIR] search for libresolv in DIR/include and DIR/lib --without-libresolv-prefix don't search for libresolv in includedir and libdir --with-pam-dir=DIR Where to install PAM module [[PREFIX/lib/security]] --without-stringprep don't use libidn for string processing even if available --with-libidn-prefix[=DIR] search for libidn in DIR/include and DIR/lib --without-libidn-prefix don't search for libidn in includedir and libdir --with-libtasn1-prefix[=DIR] search for libtasn1 in DIR/include and DIR/lib --without-libtasn1-prefix don't search for libtasn1 in includedir and libdir --with-libgnutls-prefix[=DIR] search for libgnutls in DIR/include and DIR/lib --without-libgnutls-prefix don't search for libgnutls in includedir and libdir --with-conf-dir=DIR store configuration in DIR [[PREFIX/etc/shishi]] --with-skel-dir=DIR store template cfg in DIR [[PREFIX/etc/shishi]] --with-key-dir=DIR store host keys in DIR [[PREFIX/etc/shishi]] --with-db-dir=DIR Shisa database in DIR [[PREFIX/var/shishi]]) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor LT_SYS_LIBRARY_PATH User-defined run-time library search path. PKG_CONFIG path to pkg-config utility GTKDOC_DEPS_CFLAGS C compiler flags for GTKDOC_DEPS, overriding pkg-config GTKDOC_DEPS_LIBS linker flags for GTKDOC_DEPS, overriding pkg-config VALGRINDFLAGS Additional flags for Valgrind YACC The "Yet Another C Compiler" implementation to use. Defaults to 'bison -o y.tab.c'. Values other than 'bison -o y.tab.c' will most likely break on most systems. YFLAGS YFLAGS contains the list arguments that will be passed by default to Bison. This script will default YFLAGS to the empty string to avoid a default value of '-d' given by some make applications. Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . GNU Shishi home page: . General help using GNU software: . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for configure.gnu first; this name is used for a wrapper for # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF GNU Shishi configure 1.0.3 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. */ #include #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main (void) { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else $as_nop printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR # ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. ac_fn_check_decl () { ac_save_ac_compile="$ac_compile" if test -n "$ac_compile_for_check_decl"; then ac_compile="$ac_compile_for_check_decl" fi as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" else $as_nop eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno ac_compile="$ac_save_ac_compile" } # ac_fn_check_decl # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid; break else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_lo=$ac_mid; break else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done else $as_nop ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_hi=$ac_mid else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval (void) { return $2; } static unsigned long int ulongval (void) { return $2; } #include #include int main (void) { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : echo >>conftest.val; read $3 &5 printf %s "checking for $2.$3... " >&6; } if eval test \${$4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main (void) { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$4=yes" else $as_nop eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$4 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member ac_configure_args_raw= for ac_arg do case $ac_arg in *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_configure_args_raw " '$ac_arg'" done case $ac_configure_args_raw in *$as_nl*) ac_safe_unquote= ;; *) ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. ac_unsafe_a="$ac_unsafe_z#~" ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; esac cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU Shishi $as_me 1.0.3, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && printf "%s\n" "$as_me: caught signal $ac_signal" printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi for ac_site_file in $ac_site_files do case $ac_site_file in #( */*) : ;; #( *) : ac_site_file=./$ac_site_file ;; esac if test -f "$ac_site_file" && test -r "$ac_site_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Test code for whether the C compiler supports C89 (global declarations) ac_c_conftest_c89_globals=' /* Does the compiler advertise C89 conformance? Do not test the value of __STDC__, because some compilers set it to 0 while being otherwise adequately conformant. */ #if !defined __STDC__ # error "Compiler does not advertise C89 conformance" #endif #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated as an "x". The following induces an error, until -std is added to get proper ANSI mode. Curiously \x00 != x always comes out true, for an array size at least. It is necessary to write \x00 == 0 to get something that is true only with -std. */ int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) '\''x'\'' int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), int, int);' # Test code for whether the C compiler supports C89 (body of main). ac_c_conftest_c89_main=' ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); ' # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' // Does the compiler advertise C99 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare // FILE and stderr. #define debug(...) dprintf (2, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK #error "your preprocessor is broken" #endif #if BIG_OK #else #error "your preprocessor is broken" #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) continue; return 0; } // Check varargs and va_copy. static bool test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str = ""; int number = 0; float fnumber = 0; while (*format) { switch (*format++) { case '\''s'\'': // string str = va_arg (args_copy, const char *); break; case '\''d'\'': // int number = va_arg (args_copy, int); break; case '\''f'\'': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); return *str && number && fnumber; } ' # Test code for whether the C compiler supports C99 (body of main). ac_c_conftest_c99_main=' // Check bool. _Bool success = false; success |= (argc != 0); // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[0] = argv[0][0]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' || dynamic_array[ni.number - 1] != 543); ' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' // Does the compiler advertise C11 conformance? #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif // Check _Alignas. char _Alignas (double) aligned_as_double; char _Alignas (0) no_special_alignment; extern char aligned_as_int; char _Alignas (0) _Alignas (int) aligned_as_int; // Check _Alignof. enum { int_alignment = _Alignof (int), int_array_alignment = _Alignof (int[100]), char_alignment = _Alignof (char) }; _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); // Check _Noreturn. int _Noreturn does_not_return (void) { for (;;) continue; } // Check _Static_assert. struct test_static_assert { int x; _Static_assert (sizeof (int) <= sizeof (long int), "_Static_assert does not work in struct"); long int y; }; // Check UTF-8 literals. #define u8 syntax error! char const utf8_literal[] = u8"happens to be ASCII" "another string"; // Check duplicate typedefs. typedef long *long_ptr; typedef long int *long_ptr; typedef long_ptr long_ptr; // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. struct anonymous { union { struct { int i; int j; }; struct { int k; long int l; } w; }; int m; } v1; ' # Test code for whether the C compiler supports C11 (body of main). ac_c_conftest_c11_main=' _Static_assert ((offsetof (struct anonymous, i) == offsetof (struct anonymous, w.k)), "Anonymous union alignment botch"); v1.i = 2; v1.w.k = 5; ok |= v1.i != 5; ' # Test code for whether the C compiler supports C11 (complete). ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} ${ac_c_conftest_c11_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} ${ac_c_conftest_c11_main} return ok; } " # Test code for whether the C compiler supports C99 (complete). ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} ${ac_c_conftest_c99_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} ${ac_c_conftest_c99_main} return ok; } " # Test code for whether the C compiler supports C89 (complete). ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} int main (int argc, char **argv) { int ok = 0; ${ac_c_conftest_c89_main} return ok; } " as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" gt_needs="$gt_needs need-ngettext" as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" as_fn_append ac_func_c_list " fcntl HAVE_FCNTL" as_fn_append ac_func_c_list " symlink HAVE_SYMLINK" as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" gl_getopt_required=GNU as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H" as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME" as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME" as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H" as_fn_append ac_func_c_list " lstat HAVE_LSTAT" as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H" as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H" as_fn_append ac_func_c_list " readlinkat HAVE_READLINKAT" as_fn_append ac_func_c_list " explicit_bzero HAVE_EXPLICIT_BZERO" as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S" as_fn_append ac_header_c_list " stdio_ext.h stdio_ext_h HAVE_STDIO_EXT_H" as_fn_append ac_func_c_list " fpurge HAVE_FPURGE" as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE" as_fn_append ac_func_c_list " __freading HAVE___FREADING" as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H" as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H" as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM" as_fn_append ac_func_c_list " getpass HAVE_GETPASS" as_fn_append ac_header_c_list " termios.h termios_h HAVE_TERMIOS_H" as_fn_append ac_func_c_list " __fsetlocking HAVE___FSETLOCKING" as_fn_append ac_func_c_list " getrandom HAVE_GETRANDOM" as_fn_append ac_func_c_list " getsubopt HAVE_GETSUBOPT" as_fn_append ac_func_c_list " timespec_get HAVE_TIMESPEC_GET" as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY" as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT" as_fn_append ac_func_c_list " readlink HAVE_READLINK" as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" as_fn_append ac_func_c_list " setenv HAVE_SETENV" as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF" as_fn_append ac_func_c_list " strndup HAVE_STRNDUP" as_fn_append ac_header_c_list " sys/random.h sys_random_h HAVE_SYS_RANDOM_H" as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H" as_fn_append ac_func_c_list " localtime_r HAVE_LOCALTIME_R" as_fn_append ac_func_c_list " timegm HAVE_TIMEGM" as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF" as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" # Auxiliary files required by this configure script. ac_aux_files="config.rpath ltmain.sh ar-lib config.guess config.sub compile missing install-sh" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" # Search for a directory containing all of the required auxiliary files, # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. # If we don't find one directory that contains all the files we need, # we report the set of missing files from the *first* directory in # $ac_aux_dir_candidates and give up. ac_missing_aux_files="" ac_first_candidate=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac as_found=: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 ac_aux_dir_found=yes ac_install_sh= for ac_aux in $ac_aux_files do # As a special case, if "install-sh" is required, that requirement # can be satisfied by any of "install-sh", "install.sh", or "shtool", # and $ac_install_sh is set appropriately for whichever one is found. if test x"$ac_aux" = x"install-sh" then if test -f "${as_dir}install-sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 ac_install_sh="${as_dir}install-sh -c" elif test -f "${as_dir}install.sh"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 ac_install_sh="${as_dir}install.sh -c" elif test -f "${as_dir}shtool"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 ac_install_sh="${as_dir}shtool install -c" else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} install-sh" else break fi fi else if test -f "${as_dir}${ac_aux}"; then printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 else ac_aux_dir_found=no if $ac_first_candidate; then ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" else break fi fi fi done if test "$ac_aux_dir_found" = yes; then ac_aux_dir="$as_dir" break fi ac_first_candidate=false as_found=false done IFS=$as_save_IFS if $as_found then : else $as_nop as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. if test -f "${ac_aux_dir}config.guess"; then ac_config_guess="$SHELL ${ac_aux_dir}config.guess" fi if test -f "${ac_aux_dir}config.sub"; then ac_config_sub="$SHELL ${ac_aux_dir}config.sub" fi if test -f "$ac_aux_dir/configure"; then ac_configure="$SHELL ${ac_aux_dir}configure" fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Library code modified: REVISION++ # Interfaces changed/added/removed: CURRENT++ REVISION=0 # Interfaces added: AGE++ # Interfaces removed: AGE=0 LT_CURRENT=1 LT_REVISION=3 LT_AGE=1 # Used when creating libshishi-XX.def. SOVERSION=`expr ${LT_CURRENT} - ${LT_AGE}` MAJOR_VERSION=`echo $PACKAGE_VERSION|cut -d. -f1` MINOR_VERSION=`echo $PACKAGE_VERSION|cut -d. -f2` PATCH_VERSION=`echo $PACKAGE_VERSION.0|cut -d. -f3|cut -d- -f1` NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION 2>/dev/null` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&5 printf "%s\n" "$as_me: $PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION" >&6;} am__api_version='1.16' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 printf %s "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac # Account for fact that we put trailing slashes in our PATH walk. case $as_dir in #(( ./ | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 printf "%s\n" "$AWK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 else $as_nop cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } SET_MAKE= else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='shishi' VERSION='1.0.3' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Check whether --enable-silent-rules was given. if test ${enable_silent_rules+y} then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 else $as_nop if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' ac_config_headers="$ac_config_headers config.h" # Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. set dummy ${ac_tool_prefix}clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 printf "%s\n" "$CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "clang", so it can be a program name with args. set dummy clang; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="clang" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 printf "%s\n" "$ac_ct_CC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi fi test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 printf %s "checking whether the C compiler works... " >&6; } ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else $as_nop ac_file='' fi if test -z "$ac_file" then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_nop printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes else $as_nop ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } ac_compiler_gnu=$ac_cv_c_compiler_gnu if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi ac_prog_cc_stdc=no if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c11_program _ACEOF for ac_arg in '' -std=gnu11 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c11=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } CC="$CC $ac_cv_prog_cc_c11" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 ac_prog_cc_stdc=c11 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c99_program _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } CC="$CC $ac_cv_prog_cc_c99" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 ac_prog_cc_stdc=c99 fi fi if test x$ac_prog_cc_stdc = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_c_conftest_c89_program _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } else $as_nop if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } CC="$CC $ac_cv_prog_cc_c89" fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 ac_prog_cc_stdc=c89 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 printf %s "checking whether the compiler is clang... " >&6; } if test ${gl_cv_compiler_clang+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __clang__ barfbarf #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_compiler_clang=no else $as_nop gl_cv_compiler_clang=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 printf "%s\n" "$gl_cv_compiler_clang" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 printf %s "checking for compiler option needed when checking for declarations... " >&6; } if test ${gl_cv_compiler_check_decl_option+y} then : printf %s "(cached) " >&6 else $as_nop if test $gl_cv_compiler_clang = yes; then save_ac_compile="$ac_compile" ac_compile="$ac_compile -Werror=implicit-function-declaration" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' else $as_nop gl_cv_compiler_check_decl_option=none fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_compile="$save_ac_compile" else gl_cv_compiler_check_decl_option=none fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } if test "x$gl_cv_compiler_check_decl_option" != xnone; then ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" else ac_compile_for_check_decl="$ac_compile" fi DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test ${enable_dependency_tracking+y} then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_header= ac_cache= for ac_item in $ac_header_c_list do if test $ac_cache; then ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then printf "%s\n" "#define $ac_item 1" >> confdefs.h fi ac_header= ac_cache= elif test $ac_header; then ac_cache=$ac_item else ac_header=$ac_item fi done if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes else $as_nop ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include mbstate_t x; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 #include mbstate_t x; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h if test $ac_cv_header_minix_config_h = yes then : MINIX=yes printf "%s\n" "#define _MINIX 1" >>confdefs.h printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h else $as_nop MINIX= fi if test $ac_cv_safe_to_define___extensions__ = yes then : printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h fi if test $ac_cv_should_define__xopen_source = yes then : printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h fi # Make sure we can run config.sub. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac case "$host_os" in openbsd*) printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test ${ac_cv_prog_CPP+y} then : printf %s "(cached) " >&6 else $as_nop # Double quotes because $CC needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO" then : else $as_nop # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO" then : # Broken: success on invalid input. continue else $as_nop # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok then : else $as_nop { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 printf %s "checking for grep that handles long lines and -e... " >&6; } if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 printf %s "checking for egrep... " >&6; } if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 printf %s "checking for Minix Amsterdam compiler... " >&6; } if test ${gl_cv_c_amsterdam_compiler+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ACK__ Amsterdam #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Amsterdam" >/dev/null 2>&1 then : gl_cv_c_amsterdam_compiler=yes else $as_nop gl_cv_c_amsterdam_compiler=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } if test $gl_cv_c_amsterdam_compiler = yes; then if test -z "$AR"; then AR='cc -c.a' fi if test -z "$ARFLAGS"; then ARFLAGS='-o' fi else if test -n "$ac_tool_prefix"; then for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am_cv_ar_interface=ar cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int some_variable = 0; _ACEOF if ac_fn_c_try_compile "$LINENO" then : am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=ar else am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=lib else am_cv_ar_interface=unknown fi fi rm -f conftest.lib libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } case $am_cv_ar_interface in ar) ;; lib) # Microsoft lib, so override with the ar-lib wrapper script. # FIXME: It is wrong to rewrite AR. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__AR in this case, # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something # similar. AR="$am_aux_dir/ar-lib $AR" ;; unknown) as_fn_error $? "could not determine $AR interface" "$LINENO" 5 ;; esac fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="${ac_tool_prefix}ar" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="ar" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="ar" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -z "$ARFLAGS"; then ARFLAGS='cr' fi if test -z "$RANLIB"; then if test $gl_cv_c_amsterdam_compiler = yes; then RANLIB=':' else if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi fi fi # Check whether --enable-largefile was given. if test ${enable_largefile+y} then : enableval=$enable_largefile; fi if test "$enable_largefile" != no then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 printf %s "checking for special C compiler options needed for large files... " >&6; } if test ${ac_cv_sys_largefile_CC+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : break fi rm -f core conftest.err conftest.$ac_objext conftest.beam CC="$CC -n32" if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_largefile_CC=' -n32'; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } if test ${ac_cv_sys_file_offset_bits+y} then : printf %s "(cached) " >&6 else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_file_offset_bits=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_file_offset_bits=64; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h ;; esac rm -rf conftest* case $ac_cv_sys_file_offset_bits in #( unknown) : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } if test ${ac_cv_sys_large_files+y} then : printf %s "(cached) " >&6 else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_large_files=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #undef _LARGE_FILES #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_sys_large_files=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 printf "%s\n" "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h ;; esac rm -rf conftest* ;; #( 64) : # Check whether --enable-year2038 was given. if test ${enable_year2038+y} then : enableval=$enable_year2038; fi if test "$enable_year2038" != no then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5 printf %s "checking for time_t past the year 2038... " >&6; } if test ${gl_cv_type_time_t_y2038+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check that time_t can represent 2**32 - 1 correctly. */ #define LARGE_TIME_T \\ ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 && LARGE_TIME_T % 65537 == 0) ? 1 : -1]; _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_type_time_t_y2038=yes else $as_nop gl_cv_type_time_t_y2038=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; } if test "$gl_cv_type_time_t_y2038" = no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; } if test ${gl_cv_type_time_t_bits_macro+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _TIME_BITS 64 #define _FILE_OFFSET_BITS 64 #include /* Check that time_t can represent 2**32 - 1 correctly. */ #define LARGE_TIME_T \\ ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 && LARGE_TIME_T % 65537 == 0) ? 1 : -1]; _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_type_time_t_bits_macro=yes else $as_nop gl_cv_type_time_t_bits_macro=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; } if test "$gl_cv_type_time_t_bits_macro" = yes; then printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h gl_cv_type_time_t_y2038=yes fi fi if test $gl_cv_type_time_t_y2038 = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _USE_32BIT_TIME_T int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The 'time_t' type stops working after January 2038. Remove _USE_32BIT_TIME_T from the compiler flags. See \`config.log' for more details" "$LINENO" 5; } else $as_nop # If not cross-compiling and says we should check, # and 'touch' works with a large timestamp, then evidently wider time_t # is desired and supported, so fail and ask the builder to fix the # problem. Otherwise, just warn the builder. if test "$gl_warned_about_y2038" != yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038, and this package needs a wider 'time_t' type if there is any way to access timestamps after that. Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038, and this package needs a wider 'time_t' type if there is any way to access timestamps after that. Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;} gl_warned_about_y2038=yes fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi ;; #( *) : ;; esac fi case "$host_os" in mingw*) printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h ;; esac # Pre-early section. # Code from module absolute-header: # Code from module alloca-opt: # Code from module announce-gen: # Code from module autobuild: if test -z "$AB_PACKAGE"; then AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5 printf "%s\n" "$as_me: autobuild project... $AB_PACKAGE" >&6;} if test -z "$AB_VERSION"; then AB_VERSION=${PACKAGE_VERSION:-$VERSION} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5 printf "%s\n" "$as_me: autobuild revision... $AB_VERSION" >&6;} hostname=`hostname` if test "$hostname"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;} fi date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` if test "$?" != 0; then date=`date` fi if test "$date"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;} fi # Code from module basename-lgpl: # Code from module c99: # Code from module cloexec: # Code from module close: # Code from module do-release-commit-and-tag: # Code from module double-slash-root: # Code from module dup2: # Code from module errno: # Code from module error: # Code from module extensions: # Code from module extern-inline: # Code from module fcntl: # Code from module fcntl-h: # Code from module fd-hook: # Code from module filename: # Code from module fstat: # Code from module gen-header: # Code from module gendocs: # Code from module getdtablesize: # Code from module getopt-gnu: # Code from module getopt-posix: # Code from module getprogname: # Code from module gettext-h: # Code from module git-version-gen: # Code from module gitlog-to-changelog: # Code from module gnu-web-doc-update: # Code from module gnumakefile: # Code from module gnupload: # Code from module idx: # Code from module include_next: # Code from module intprops: # Code from module largefile: # Code from module lib-msvc-compat: # Code from module lib-symbol-versions: # Code from module limits-h: # Code from module locale: # Code from module maintainer-makefile: # Code from module malloca: # Code from module manywarnings: # Code from module msvc-inval: # Code from module msvc-nothrow: # Code from module multiarch: # Code from module nocrash: # Code from module open: # Code from module pathmax: # Code from module pmccabe2html: # Code from module progname: # Code from module readme-release: # Code from module snippet/_Noreturn: # Code from module snippet/arg-nonnull: # Code from module snippet/c++defs: # Code from module snippet/warn-on-use: # Code from module ssize_t: # Code from module stat: # Code from module stat-time: # Code from module std-gnu11: # Code from module stdarg: # Code from module stdbool: # Code from module stddef: # Code from module stdint: # Code from module stdio: # Code from module stdlib: # Code from module strerror: # Code from module strerror-override: # Code from module string: # Code from module sys_stat: # Code from module sys_types: # Code from module time: # Code from module unistd: # Code from module update-copyright: # Code from module useless-if-before-free: # Code from module valgrind-tests: # Code from module vararrays: # Code from module vc-list-files: # Code from module verify: # Code from module version-etc: # Code from module warnings: # Code from module xalloc-oversized: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } if test ${ac_cv_sys_largefile_source+y} then : printf %s "(cached) " >&6 else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* for off_t */ #include int main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_sys_largefile_source=no; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #undef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE 1 #include /* for off_t */ #include int main (void) { int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_sys_largefile_source=1; break fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_cv_sys_largefile_source=unknown break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } case $ac_cv_sys_largefile_source in #( no | unknown) ;; *) printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h ;; esac rm -rf conftest* # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug # in glibc 2.1.3, but that breaks too many other things. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. if test $ac_cv_sys_largefile_source != unknown; then printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h fi case "$host_os" in hpux*) printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h ;; esac # Pre-early section. # Code from module absolute-header: # Code from module alloca: # Code from module alloca-opt: # Code from module allocator: # Code from module areadlink: # Code from module arpa_inet: # Code from module attribute: # Code from module base64: # Code from module bind: # Code from module bison: # Code from module byteswap: # Code from module c-ctype: # Code from module c99: # Code from module calloc-gnu: # Code from module calloc-posix: # Code from module careadlinkat: # Code from module clock-time: # Code from module cloexec: # Code from module close: # Code from module connect: # Code from module crc: # Code from module crypto/af_alg: # Code from module crypto/arcfour: # Code from module crypto/des: # Code from module crypto/gc: # Code from module crypto/gc-des: # Code from module crypto/gc-hmac-md5: # Code from module crypto/gc-hmac-sha1: # Code from module crypto/gc-md4: # Code from module crypto/gc-md5: # Code from module crypto/gc-pbkdf2: # Code from module crypto/gc-pbkdf2-sha1: # Code from module crypto/gc-random: # Code from module crypto/hmac-md5: # Code from module crypto/hmac-sha1: # Code from module crypto/md4: # Code from module crypto/md4-buffer: # Code from module crypto/md5: # Code from module crypto/md5-buffer: # Code from module crypto/sha1: # Code from module crypto/sha1-buffer: # Code from module dup2: # Code from module environ: # Code from module errno: # Code from module explicit_bzero: # Code from module extensions: # Code from module extern-inline: # Code from module fcntl: # Code from module fcntl-h: # Code from module fd-hook: # Code from module fflush: # Code from module filename: # Code from module flexmember: # Code from module float: # Code from module fopen: # Code from module fopen-gnu: # Code from module fpurge: # Code from module freading: # Code from module free-posix: # Code from module fseek: # Code from module fseeko: # Code from module fstat: # Code from module ftell: # Code from module ftello: # Code from module gen-header: # Code from module getaddrinfo: # Code from module getdelim: # Code from module getdomainname: # Code from module getdtablesize: # Code from module gethostname: # Code from module getline: # Code from module getpass: # Code from module getpeername: # Code from module getrandom: # Code from module getsubopt: # Code from module gettext-h: # Code from module gettime: # Code from module gettimeofday: # Code from module havelib: # Code from module hostent: # Code from module ialloc: # Code from module idx: # Code from module include_next: # Code from module inet_ntop: # Code from module intprops: # Code from module inttypes: # Code from module inttypes-incomplete: # Code from module largefile: # Code from module libc-config: # Code from module limits-h: # Code from module lseek: # Code from module malloc-gnu: # Code from module malloc-posix: # Code from module malloca: # Code from module memchr: # Code from module memxor: # Code from module minmax: # Code from module mktime: # Code from module mktime-internal: # Code from module msvc-inval: # Code from module msvc-nothrow: # Code from module multiarch: # Code from module netdb: # Code from module netinet_in: # Code from module nstrftime: # Code from module open: # Code from module parse-datetime: # Code from module pathmax: # Code from module rawmemchr: # Code from module read-file: # Code from module readlink: # Code from module realloc-gnu: # Code from module realloc-posix: # Code from module reallocarray: # Code from module recvfrom: # Code from module select: # Code from module sendto: # Code from module servent: # Code from module setenv: # Code from module shutdown: # Code from module signal: # Code from module signal-h: # Code from module size_max: # Code from module snippet/_Noreturn: # Code from module snippet/arg-nonnull: # Code from module snippet/c++defs: # Code from module snippet/warn-on-use: # Code from module snprintf: # Code from module socket: # Code from module socketlib: # Code from module sockets: # Code from module socklen: # Code from module ssize_t: # Code from module stat: # Code from module stat-time: # Code from module std-gnu11: # Code from module stdalign: # Code from module stdarg: # Code from module stdbool: # Code from module stddef: # Code from module stdint: # Code from module stdio: # Code from module stdlib: # Code from module strcase: # Code from module strchrnul: # Code from module strdup-posix: # Code from module strerror: # Code from module strerror-override: # Code from module string: # Code from module strings: # Code from module strndup: # Code from module strnlen: # Code from module strtok_r: # Code from module strverscmp: # Code from module sys_random: # Code from module sys_select: # Code from module sys_socket: # Code from module sys_stat: # Code from module sys_time: # Code from module sys_types: # Code from module sys_uio: # Code from module time: # Code from module time_r: # Code from module time_rz: # Code from module timegm: # Code from module timespec: # Code from module tzset: # Code from module unistd: # Code from module unsetenv: # Code from module vararrays: # Code from module vasnprintf: # Code from module vasprintf: # Code from module verify: # Code from module wchar: # Code from module xalloc: # Code from module xalloc-oversized: # Code from module xgetdomainname: # Code from module xgethostname: # Code from module xsize: # Code from module xstrndup: # Code from module xvasprintf: if test -n "$ac_tool_prefix"; then for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am_cv_ar_interface=ar cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int some_variable = 0; _ACEOF if ac_fn_c_try_compile "$LINENO" then : am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=ar else am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=lib else am_cv_ar_interface=unknown fi fi rm -f conftest.lib libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } case $am_cv_ar_interface in ar) ;; lib) # Microsoft lib, so override with the ar-lib wrapper script. # FIXME: It is wrong to rewrite AR. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__AR in this case, # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something # similar. AR="$am_aux_dir/ar-lib $AR" ;; unknown) as_fn_error $? "could not determine $AR interface" "$LINENO" 5 ;; esac ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" if test "x$ac_cv_header_termios_h" = xyes then : printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" if test "x$ac_cv_header_pwd_h" = xyes then : printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" if test "x$ac_cv_header_syslog_h" = xyes then : printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" if test "x$ac_cv_header_arpa_nameser_h" = xyes then : printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default" if test "x$ac_cv_header_netinet_in6_h" = xyes then : printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include #include #ifdef HAVE_ARPA_NAMESER_H # include #endif " if test "x$ac_cv_header_resolv_h" = xyes then : printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h fi # Checks for programs. case `pwd` in *\ * | *\ *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 printf "%s\n" "printf" >&6; } ;; print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 printf "%s\n" "print -r" >&6; } ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 printf "%s\n" "cat" >&6; } ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in sed gsed do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in fgrep do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 printf "%s\n" "$DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 else $as_nop i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 printf %s "checking how to convert $build file names to toolchain format... " >&6; } if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_reload_flag='-r' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 printf "%s\n" "$AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 printf "%s\n" "$ac_ct_AR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cr} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 printf "%s\n" "$STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 printf "%s\n" "$ac_ct_STRIP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 printf "%s\n" "$RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 printf "%s\n" "$ac_ct_RANLIB" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 printf %s "checking command to parse $NM output from $compiler object... " >&6; } if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 printf "%s\n" "failed" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 printf "%s\n" "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test ${with_sysroot+y} then : withval=$with_sysroot; else $as_nop with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 printf "%s\n" "${lt_sysroot:-no}" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_prog in dd do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test ${enable_libtool_lock+y} then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes else $as_nop lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 printf "%s\n" "$MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 printf "%s\n" "$DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 printf "%s\n" "$NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 printf "%s\n" "$ac_ct_NMEDIT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 printf "%s\n" "$LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 printf "%s\n" "$ac_ct_LIPO" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 printf "%s\n" "$OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 printf "%s\n" "$ac_ct_OTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 printf "%s\n" "$OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 printf "%s\n" "$ac_ct_OTOOL64" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes else $as_nop lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cr libconftest.a conftest.o" >&5 $AR cr libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[912]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*|11.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes then : printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi # Set options enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AS+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AS="${ac_tool_prefix}as" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 printf "%s\n" "$AS" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AS+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AS="as" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 printf "%s\n" "$ac_ct_AS" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 printf "%s\n" "$DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 printf "%s\n" "$OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump enable_dlopen=no # Check whether --enable-shared was given. if test ${enable_shared+y} then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else $as_nop enable_shared=yes fi # Check whether --enable-static was given. if test ${enable_static+y} then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else $as_nop enable_static=yes fi # Check whether --with-pic was given. if test ${with_pic+y} then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else $as_nop pic_mode=default fi # Check whether --enable-fast-install was given. if test ${enable_fast_install+y} then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else $as_nop enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test ${with_aix_soname+y} then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else $as_nop if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 printf "%s\n" "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 printf "%s\n" "$MAGIC_CMD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 else $as_nop save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes else $as_nop lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi link_all_deplibs=no else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 printf "%s\n" "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 printf %s "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 printf "%s\n" "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else $as_nop lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char shl_load (); int main (void) { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes else $as_nop ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes else $as_nop ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dlopen (); int main (void) { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes else $as_nop ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char dld_link (); int main (void) { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes else $as_nop ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } ;; esac fi # Report what library types will actually be built { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 printf %s "checking if libtool supports shared libraries... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 printf "%s\n" "$can_build_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 printf "%s\n" "$enable_shared" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 printf "%s\n" "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC ac_config_commands="$ac_config_commands libtool" # Only expand once: PERL=${PERL-"${am_missing_run}perl"} HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} ASN1PARSER=${ASN1PARSER-"${am_missing_run}asn1Parser"} GENGETOPT=${GENGETOPT-"${am_missing_run}gengetopt"} DIA=${DIA-"${am_missing_run}dia"} # Internationalization. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 printf %s "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test ${enable_nls+y} then : enableval=$enable_nls; USE_NLS=$enableval else $as_nop USE_NLS=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 printf "%s\n" "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.19 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MSGFMT+y} then : printf %s "(cached) " >&6 else $as_nop case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 printf "%s\n" "$MSGFMT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GMSGFMT+y} then : printf %s "(cached) " >&6 else $as_nop case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 printf "%s\n" "$GMSGFMT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_XGETTEXT+y} then : printf %s "(cached) " >&6 else $as_nop case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 printf "%s\n" "$XGETTEXT" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_MSGMERGE+y} then : printf %s "(cached) " >&6 else $as_nop case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 printf "%s\n" "$MSGMERGE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else $as_nop with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi if test -n "$LD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 printf %s "checking for ld... " >&6; } elif test "$GCC" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 printf %s "checking for ld used by $CC... " >&6; } elif test "$with_gnu_ld" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 printf %s "checking for GNU ld... " >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 printf %s "checking for non-GNU ld... " >&6; } fi if test -n "$LD"; then # Let the user override the test with a path. : else if test ${acl_cv_path_LD+y} then : printf %s "(cached) " >&6 else $as_nop acl_cv_path_LD= # Final result of this test ac_prog=ld # Program to search in $PATH if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) acl_output=`($CC -print-prog-name=ld) 2>&5` ;; esac case $acl_output in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` done # Got the pathname. No search in PATH is needed. acl_cv_path_LD="$acl_output" ac_prog= ;; "") # If it fails, then pretend we aren't using GCC. ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac fi if test -n "$ac_prog"; then # Search for $ac_prog in $PATH. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 conftest.$ac_ext /* end confdefs.h. */ #if defined __powerpc64__ || defined __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : # The compiler produces 64-bit code. Add option '-b64' so that the # linker groks 64-bit object files. case "$acl_cv_path_LD " in *" -b64 "*) ;; *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; sparc64-*-netbsd*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop # The compiler produces 32-bit code. Add option '-m elf32_sparc' # so that the linker groks 32-bit object files. case "$acl_cv_path_LD " in *" -m elf32_sparc "*) ;; *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi LD="$acl_cv_path_LD" fi if test -n "$LD"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 printf "%s\n" "$LD" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${acl_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 printf %s "checking for shared library run path origin... " >&6; } if test ${acl_cv_rpath+y} then : printf %s "(cached) " >&6 else $as_nop CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 printf "%s\n" "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test ${enable_rpath+y} then : enableval=$enable_rpath; : else $as_nop enable_rpath=yes fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 printf %s "checking 32-bit host C ABI... " >&6; } if test ${gl_cv_host_cpu_c_abi_32bit+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$gl_cv_host_cpu_c_abi"; then case "$gl_cv_host_cpu_c_abi" in i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) gl_cv_host_cpu_c_abi_32bit=yes ;; x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) gl_cv_host_cpu_c_abi_32bit=no ;; *) gl_cv_host_cpu_c_abi_32bit=unknown ;; esac else case "$host_cpu" in # CPUs that only support a 32-bit ABI. arc \ | bfin \ | cris* \ | csky \ | epiphany \ | ft32 \ | h8300 \ | m68k \ | microblaze | microblazeel \ | nds32 | nds32le | nds32be \ | nios2 | nios2eb | nios2el \ | or1k* \ | or32 \ | sh | sh1234 | sh1234elb \ | tic6x \ | xtensa* ) gl_cv_host_cpu_c_abi_32bit=yes ;; # CPUs that only support a 64-bit ABI. alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | mmix ) gl_cv_host_cpu_c_abi_32bit=no ;; i[34567]86 ) gl_cv_host_cpu_c_abi_32bit=yes ;; x86_64 ) # On x86_64 systems, the C compiler may be generating code in one of # these ABIs: # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 # with native Windows (mingw, MSVC). # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (defined __x86_64__ || defined __amd64__ \ || defined _M_X64 || defined _M_AMD64) \ && !(defined __ILP32__ || defined _ILP32) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; arm* | aarch64 ) # Assume arm with EABI. # On arm64 systems, the C compiler may be generating code in one of # these ABIs: # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) # On hppa, the C compiler may be generating 32-bit code or 64-bit # code. In the latter case, it defines _LP64 and __LP64__. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; ia64* ) # On ia64 on HP-UX, the C compiler may be generating 64-bit code or # 32-bit code. In the latter case, it defines _ILP32. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _ILP32 int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=yes else $as_nop gl_cv_host_cpu_c_abi_32bit=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; mips* ) # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this # at 32. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; powerpc* ) # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. # No need to distinguish them here; the caller may distinguish # them based on the OS. # On powerpc64 systems, the C compiler may still be generating # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may # be generating 64-bit code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __powerpc64__ || defined __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; rs6000 ) gl_cv_host_cpu_c_abi_32bit=yes ;; riscv32 | riscv64 ) # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. # Size of 'long' and 'void *': cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; s390* ) # On s390x, the C compiler may be generating 64-bit (= s390x) code # or 31-bit (= s390) code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ || defined __s390x__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; sparc | sparc64 ) # UltraSPARCs running Linux have `uname -m` = "sparc64", but the # C compiler still generates 32-bit code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __sparcv9 || defined __arch64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_host_cpu_c_abi_32bit=no else $as_nop gl_cv_host_cpu_c_abi_32bit=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; *) gl_cv_host_cpu_c_abi_32bit=unknown ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 printf %s "checking for ELF binary format... " >&6; } if test ${gl_cv_elf+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __ELF__ || (defined __linux__ && defined __EDG__) Extensible Linking Format #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 then : gl_cv_elf=yes else $as_nop gl_cv_elf=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 printf "%s\n" "$gl_cv_elf" >&6; } if test $gl_cv_elf = yes; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then # Use POSIX od. func_elfclass () { od -A n -t d1 -j 4 -N 1 } else # Use BSD hexdump. func_elfclass () { dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' echo } fi # Use 'expr', not 'test', to compare the values of func_elfclass, because on # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, # not 1 or 2. case $HOST_CPU_C_ABI_32BIT in yes) # 32-bit ABI. acl_is_expected_elfclass () { expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null } ;; no) # 64-bit ABI. acl_is_expected_elfclass () { expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null } ;; *) # Unknown. acl_is_expected_elfclass () { : } ;; esac else acl_is_expected_elfclass () { : } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 printf %s "checking for the common suffixes of directories in the library search path... " >&6; } if test ${acl_cv_libdirstems+y} then : printf %s "(cached) " >&6 else $as_nop acl_libdirstem=lib acl_libdirstem2= acl_libdirstem3= case "$host_os" in solaris*) if test $HOST_CPU_C_ABI_32BIT = no; then acl_libdirstem2=lib/64 case "$host_cpu" in sparc*) acl_libdirstem3=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test $HOST_CPU_C_ABI_32BIT != no; then # 32-bit or unknown ABI. if test -d /usr/lib32; then acl_libdirstem2=lib32 fi fi if test $HOST_CPU_C_ABI_32BIT != yes; then # 64-bit or unknown ABI. if test -d /usr/lib64; then acl_libdirstem3=lib64 fi fi if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib32 ) acl_libdirstem2=lib32 ;; */lib64 ) acl_libdirstem3=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" if test $HOST_CPU_C_ABI_32BIT = yes; then # 32-bit ABI. acl_libdirstem3= fi if test $HOST_CPU_C_ABI_32BIT = no; then # 64-bit ABI. acl_libdirstem2= fi fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 printf "%s\n" "$acl_cv_libdirstems" >&6; } acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test ${with_libiconv_prefix+y} then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 printf %s "checking for CFPreferencesCopyAppValue... " >&6; } if test ${gt_cv_func_CFPreferencesCopyAppValue+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gt_cv_func_CFPreferencesCopyAppValue=yes else $as_nop gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 printf %s "checking for CFLocaleCopyCurrent... " >&6; } if test ${gt_cv_func_CFLocaleCopyCurrent+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gt_cv_func_CFLocaleCopyCurrent=yes else $as_nop gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 printf %s "checking for GNU gettext in libc... " >&6; } if eval test \${$gt_func_gnugettext_libc+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$gt_func_gnugettext_libc=yes" else $as_nop eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 printf %s "checking for iconv... " >&6; } if test ${am_cv_func_iconv+y} then : printf %s "(cached) " >&6 else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 printf %s "checking for working iconv... " >&6; } if test ${am_cv_func_iconv_works+y} then : printf %s "(cached) " >&6 else $as_nop am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do if test "$cross_compiling" = yes then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif int main (void) { int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) result |= 16; return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : am_cv_func_iconv_works=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 printf "%s\n" "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 printf %s "checking how to link with libiconv... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 printf "%s\n" "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test ${with_libintl_prefix+y} then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 printf %s "checking for GNU gettext in libintl... " >&6; } if eval test \${$gt_func_gnugettext_libintl+y} then : printf %s "(cached) " >&6 else $as_nop gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$gt_func_gnugettext_libintl=yes" else $as_nop eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code int main (void) { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 printf %s "checking whether to use NLS... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 printf "%s\n" "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 printf %s "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 printf "%s\n" "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 printf %s "checking how to link with libintl... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 printf "%s\n" "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" # https://developer.gnome.org/gtk-doc-manual/stable/settingup_autoconf.html.en if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 printf "%s\n" "$PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } PKG_CONFIG="" fi fi gtk_doc_requires="gtk-doc >= 1.14" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 printf %s "checking for gtk-doc... " >&6; } if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then have_gtk_doc=yes else have_gtk_doc=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 printf "%s\n" "$have_gtk_doc" >&6; } if test "$have_gtk_doc" = "no"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You will not be able to create source packages with 'make dist' because $gtk_doc_requires is not found." >&5 printf "%s\n" "$as_me: WARNING: You will not be able to create source packages with 'make dist' because $gtk_doc_requires is not found." >&2;} fi # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_GTKDOC_CHECK+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$GTKDOC_CHECK"; then ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK if test -n "$GTKDOC_CHECK"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 printf "%s\n" "$GTKDOC_CHECK" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GTKDOC_CHECK_PATH+y} then : printf %s "(cached) " >&6 else $as_nop case $GTKDOC_CHECK_PATH in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH if test -n "$GTKDOC_CHECK_PATH"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi for ac_prog in gtkdoc-rebase do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GTKDOC_REBASE+y} then : printf %s "(cached) " >&6 else $as_nop case $GTKDOC_REBASE in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE if test -n "$GTKDOC_REBASE"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 printf "%s\n" "$GTKDOC_REBASE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$GTKDOC_REBASE" && break done test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. set dummy gtkdoc-mkpdf; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GTKDOC_MKPDF+y} then : printf %s "(cached) " >&6 else $as_nop case $GTKDOC_MKPDF in [\\/]* | ?:[\\/]*) ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF if test -n "$GTKDOC_MKPDF"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 printf "%s\n" "$GTKDOC_MKPDF" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi # Check whether --with-html-dir was given. if test ${with_html_dir+y} then : withval=$with_html_dir; else $as_nop with_html_dir='${datadir}/gtk-doc/html' fi HTML_DIR="$with_html_dir" # Check whether --enable-gtk-doc was given. if test ${enable_gtk_doc+y} then : enableval=$enable_gtk_doc; else $as_nop enable_gtk_doc=no fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 printf %s "checking whether to build gtk-doc documentation... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 printf "%s\n" "$enable_gtk_doc" >&6; } if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then as_fn_error $? " You must have $gtk_doc_requires installed to build documentation for $PACKAGE_NAME. Please install gtk-doc or disable building the documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 fi if test "x$PACKAGE_NAME" != "xglib"; then pkg_failed=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 printf %s "checking for GTKDOC_DEPS... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTKDOC_DEPS_CFLAGS"; then pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTKDOC_DEPS_LIBS"; then pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" else if test -n "$PKG_CONFIG" && \ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` else GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` fi # Put the nasty error message in config.log where it belongs echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } : elif test $pkg_failed = untried; then : else GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } : fi fi # Check whether --enable-gtk-doc-html was given. if test ${enable_gtk_doc_html+y} then : enableval=$enable_gtk_doc_html; else $as_nop enable_gtk_doc_html=yes fi # Check whether --enable-gtk-doc-pdf was given. if test ${enable_gtk_doc_pdf+y} then : enableval=$enable_gtk_doc_pdf; else $as_nop enable_gtk_doc_pdf=no fi if test -z "$GTKDOC_MKPDF"; then enable_gtk_doc_pdf=no fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi if test x$have_gtk_doc = xyes; then HAVE_GTK_DOC_TRUE= HAVE_GTK_DOC_FALSE='#' else HAVE_GTK_DOC_TRUE='#' HAVE_GTK_DOC_FALSE= fi if test x$enable_gtk_doc = xyes; then ENABLE_GTK_DOC_TRUE= ENABLE_GTK_DOC_FALSE='#' else ENABLE_GTK_DOC_TRUE='#' ENABLE_GTK_DOC_FALSE= fi if test x$enable_gtk_doc_html = xyes; then GTK_DOC_BUILD_HTML_TRUE= GTK_DOC_BUILD_HTML_FALSE='#' else GTK_DOC_BUILD_HTML_TRUE='#' GTK_DOC_BUILD_HTML_FALSE= fi if test x$enable_gtk_doc_pdf = xyes; then GTK_DOC_BUILD_PDF_TRUE= GTK_DOC_BUILD_PDF_FALSE='#' else GTK_DOC_BUILD_PDF_TRUE='#' GTK_DOC_BUILD_PDF_FALSE= fi if test -n "$LIBTOOL"; then GTK_DOC_USE_LIBTOOL_TRUE= GTK_DOC_USE_LIBTOOL_FALSE='#' else GTK_DOC_USE_LIBTOOL_TRUE='#' GTK_DOC_USE_LIBTOOL_FALSE= fi if test -n "$GTKDOC_REBASE"; then GTK_DOC_USE_REBASE_TRUE= GTK_DOC_USE_REBASE_FALSE='#' else GTK_DOC_USE_REBASE_TRUE='#' GTK_DOC_USE_REBASE_FALSE= fi # Checks for typedefs, structures, and compiler characteristics. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 printf %s "checking for uid_t in sys/types.h... " >&6; } if test ${ac_cv_type_uid_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1 then : ac_cv_type_uid_t=yes else $as_nop ac_cv_type_uid_t=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 printf "%s\n" "$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then printf "%s\n" "#define uid_t int" >>confdefs.h printf "%s\n" "#define gid_t int" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_CFLAGS=$CFLAGS ac_cv_c_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" # This test program should *not* compile successfully. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { (void) strchr; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the # off chance that they somehow elicit warnings. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include extern void ac_decl (int, char *); int main (void) { (void) ac_decl (0, (char *) 0); (void) ac_decl; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if test x"$ac_arg" = x then : ac_cv_c_undeclared_builtin_options='none needed' else $as_nop ac_cv_c_undeclared_builtin_options=$ac_arg fi break fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext done CFLAGS=$ac_save_CFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } case $ac_cv_c_undeclared_builtin_options in #( 'cannot detect') : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot make $CC report undeclared builtins See \`config.log' for more details" "$LINENO" 5; } ;; #( 'none needed') : ac_c_undeclared_builtin_options='' ;; #( *) : ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; esac ac_fn_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_h_errno" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_H_ERRNO $ac_have_decl" >>confdefs.h # For gnulib stuff in gl/. with_libgcrypt=yes printf "%s\n" "#define OK_TO_USE_1S_CLOCK 1" >>confdefs.h # Check whether --enable-cross-guesses was given. if test ${enable_cross_guesses+y} then : enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} enableval=conservative fi gl_cross_guesses="$enableval" else $as_nop gl_cross_guesses=conservative fi if test $gl_cross_guesses = risky; then gl_cross_guess_normal="guessing yes" gl_cross_guess_inverted="guessing no" else gl_cross_guess_normal="guessing no" gl_cross_guess_inverted="guessing yes" fi LIBC_FATAL_STDERR_=1 export LIBC_FATAL_STDERR_ ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : else $as_nop printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 printf %s "checking for working alloca.h... " >&6; } if test ${ac_cv_working_alloca_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_working_alloca_h=yes else $as_nop ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 printf "%s\n" "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 printf %s "checking for alloca... " >&6; } if test ${ac_cv_func_alloca_works+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_working_alloca_h = yes; then ac_cv_func_alloca_works=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef alloca # ifdef __GNUC__ # define alloca __builtin_alloca # elif defined _MSC_VER # include # define alloca _alloca # else # ifdef __cplusplus extern "C" # endif void *alloca (size_t); # endif #endif int main (void) { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_func_alloca_works=yes else $as_nop ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 printf "%s\n" "$ac_cv_func_alloca_works" >&6; } fi if test $ac_cv_func_alloca_works = yes; then printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 printf %s "checking stack direction for C alloca... " >&6; } if test ${ac_cv_c_stack_direction+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : ac_cv_c_stack_direction=0 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_c_stack_direction=1 else $as_nop ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 printf "%s\n" "$ac_cv_c_stack_direction" >&6; } printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h fi HAVE_CHOWN=1; HAVE_COPY_FILE_RANGE=1; HAVE_DUP3=1; HAVE_EUIDACCESS=1; HAVE_EXECVPE=1; HAVE_FACCESSAT=1; HAVE_FCHDIR=1; HAVE_FCHOWNAT=1; HAVE_FDATASYNC=1; HAVE_FSYNC=1; HAVE_FTRUNCATE=1; HAVE_GETDTABLESIZE=1; HAVE_GETENTROPY=1; HAVE_GETGROUPS=1; HAVE_GETHOSTNAME=1; HAVE_GETLOGIN=1; HAVE_GETPAGESIZE=1; HAVE_GETPASS=1; HAVE_GROUP_MEMBER=1; HAVE_LCHOWN=1; HAVE_LINK=1; HAVE_LINKAT=1; HAVE_PIPE=1; HAVE_PIPE2=1; HAVE_PREAD=1; HAVE_PWRITE=1; HAVE_READLINK=1; HAVE_READLINKAT=1; HAVE_SETHOSTNAME=1; HAVE_SLEEP=1; HAVE_SYMLINK=1; HAVE_SYMLINKAT=1; HAVE_UNLINKAT=1; HAVE_USLEEP=1; HAVE_DECL_ENVIRON=1; HAVE_DECL_EXECVPE=1; HAVE_DECL_FCHDIR=1; HAVE_DECL_FDATASYNC=1; HAVE_DECL_GETDOMAINNAME=1; HAVE_DECL_GETLOGIN=1; HAVE_DECL_GETLOGIN_R=1; HAVE_DECL_GETPAGESIZE=1; HAVE_DECL_GETUSERSHELL=1; HAVE_DECL_SETHOSTNAME=1; HAVE_DECL_TRUNCATE=1; HAVE_DECL_TTYNAME_R=1; HAVE_OS_H=0; HAVE_SYS_PARAM_H=0; REPLACE_ACCESS=0; REPLACE_CHOWN=0; REPLACE_CLOSE=0; REPLACE_COPY_FILE_RANGE=0; REPLACE_DUP=0; REPLACE_DUP2=0; REPLACE_EXECL=0; REPLACE_EXECLE=0; REPLACE_EXECLP=0; REPLACE_EXECV=0; REPLACE_EXECVE=0; REPLACE_EXECVP=0; REPLACE_EXECVPE=0; REPLACE_FACCESSAT=0; REPLACE_FCHOWNAT=0; REPLACE_FTRUNCATE=0; REPLACE_GETCWD=0; REPLACE_GETDOMAINNAME=0; REPLACE_GETDTABLESIZE=0; REPLACE_GETLOGIN_R=0; REPLACE_GETGROUPS=0; REPLACE_GETPAGESIZE=0; REPLACE_GETPASS=0; REPLACE_GETPASS_FOR_GETPASS_GNU=0; REPLACE_ISATTY=0; REPLACE_LCHOWN=0; REPLACE_LINK=0; REPLACE_LINKAT=0; REPLACE_LSEEK=0; REPLACE_PREAD=0; REPLACE_PWRITE=0; REPLACE_READ=0; REPLACE_READLINK=0; REPLACE_READLINKAT=0; REPLACE_RMDIR=0; REPLACE_SLEEP=0; REPLACE_SYMLINK=0; REPLACE_SYMLINKAT=0; REPLACE_TRUNCATE=0; REPLACE_TTYNAME_R=0; REPLACE_UNLINK=0; REPLACE_UNLINKAT=0; REPLACE_USLEEP=0; REPLACE_WRITE=0; UNISTD_H_HAVE_SYS_RANDOM_H=0; UNISTD_H_HAVE_WINSOCK2_H=0; UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; ac_func= for ac_item in $ac_func_c_list do if test $ac_func; then ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then echo "#define $ac_item 1" >> confdefs.h fi ac_func= else ac_func=$ac_item fi done if test $ac_cv_func__set_invalid_parameter_handler = yes; then HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h else HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 fi GL_GNULIB_ACCESS=0 GL_GNULIB_CHDIR=0 GL_GNULIB_CHOWN=0 GL_GNULIB_CLOSE=0 GL_GNULIB_COPY_FILE_RANGE=0 GL_GNULIB_DUP=0 GL_GNULIB_DUP2=0 GL_GNULIB_DUP3=0 GL_GNULIB_ENVIRON=0 GL_GNULIB_EUIDACCESS=0 GL_GNULIB_EXECL=0 GL_GNULIB_EXECLE=0 GL_GNULIB_EXECLP=0 GL_GNULIB_EXECV=0 GL_GNULIB_EXECVE=0 GL_GNULIB_EXECVP=0 GL_GNULIB_EXECVPE=0 GL_GNULIB_FACCESSAT=0 GL_GNULIB_FCHDIR=0 GL_GNULIB_FCHOWNAT=0 GL_GNULIB_FDATASYNC=0 GL_GNULIB_FSYNC=0 GL_GNULIB_FTRUNCATE=0 GL_GNULIB_GETCWD=0 GL_GNULIB_GETDOMAINNAME=0 GL_GNULIB_GETDTABLESIZE=0 GL_GNULIB_GETENTROPY=0 GL_GNULIB_GETGROUPS=0 GL_GNULIB_GETHOSTNAME=0 GL_GNULIB_GETLOGIN=0 GL_GNULIB_GETLOGIN_R=0 GL_GNULIB_GETOPT_POSIX=0 GL_GNULIB_GETPAGESIZE=0 GL_GNULIB_GETPASS=0 GL_GNULIB_GETPASS_GNU=0 GL_GNULIB_GETUSERSHELL=0 GL_GNULIB_GROUP_MEMBER=0 GL_GNULIB_ISATTY=0 GL_GNULIB_LCHOWN=0 GL_GNULIB_LINK=0 GL_GNULIB_LINKAT=0 GL_GNULIB_LSEEK=0 GL_GNULIB_PIPE=0 GL_GNULIB_PIPE2=0 GL_GNULIB_PREAD=0 GL_GNULIB_PWRITE=0 GL_GNULIB_READ=0 GL_GNULIB_READLINK=0 GL_GNULIB_READLINKAT=0 GL_GNULIB_RMDIR=0 GL_GNULIB_SETHOSTNAME=0 GL_GNULIB_SLEEP=0 GL_GNULIB_SYMLINK=0 GL_GNULIB_SYMLINKAT=0 GL_GNULIB_TRUNCATE=0 GL_GNULIB_TTYNAME_R=0 GL_GNULIB_UNISTD_H_GETOPT=0 GL_GNULIB_UNISTD_H_NONBLOCKING=0 GL_GNULIB_UNISTD_H_SIGPIPE=0 GL_GNULIB_UNLINK=0 GL_GNULIB_UNLINKAT=0 GL_GNULIB_USLEEP=0 GL_GNULIB_WRITE=0 GL_GNULIB_MDA_ACCESS=1 GL_GNULIB_MDA_CHDIR=1 GL_GNULIB_MDA_CLOSE=1 GL_GNULIB_MDA_DUP=1 GL_GNULIB_MDA_DUP2=1 GL_GNULIB_MDA_EXECL=1 GL_GNULIB_MDA_EXECLE=1 GL_GNULIB_MDA_EXECLP=1 GL_GNULIB_MDA_EXECV=1 GL_GNULIB_MDA_EXECVE=1 GL_GNULIB_MDA_EXECVP=1 GL_GNULIB_MDA_EXECVPE=1 GL_GNULIB_MDA_GETCWD=1 GL_GNULIB_MDA_GETPID=1 GL_GNULIB_MDA_ISATTY=1 GL_GNULIB_MDA_LSEEK=1 GL_GNULIB_MDA_READ=1 GL_GNULIB_MDA_RMDIR=1 GL_GNULIB_MDA_SWAB=1 GL_GNULIB_MDA_UNLINK=1 GL_GNULIB_MDA_WRITE=1 gl_mda_defines=' #if defined _WIN32 && !defined __CYGWIN__ #define access _access #define chdir _chdir #define chmod _chmod #define close _close #define creat _creat #define dup _dup #define dup2 _dup2 #define ecvt _ecvt #define execl _execl #define execle _execle #define execlp _execlp #define execv _execv #define execve _execve #define execvp _execvp #define execvpe _execvpe #define fcloseall _fcloseall #define fcvt _fcvt #define fdopen _fdopen #define fileno _fileno #define gcvt _gcvt #define getcwd _getcwd #define getpid _getpid #define getw _getw #define isatty _isatty #define j0 _j0 #define j1 _j1 #define jn _jn #define lfind _lfind #define lsearch _lsearch #define lseek _lseek #define memccpy _memccpy #define mkdir _mkdir #define mktemp _mktemp #define open _open #define putenv _putenv #define putw _putw #define read _read #define rmdir _rmdir #define strdup _strdup #define swab _swab #define tempnam _tempnam #define tzset _tzset #define umask _umask #define unlink _unlink #define utime _utime #define wcsdup _wcsdup #define write _write #define y0 _y0 #define y1 _y1 #define yn _yn #endif ' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 printf %s "checking whether the preprocessor supports include_next... " >&6; } if test ${gl_cv_have_include_next+y} then : printf %s "(cached) " >&6 else $as_nop rm -rf conftestd1a conftestd1b conftestd2 mkdir conftestd1a conftestd1b conftestd2 cat < conftestd1a/conftest.h #define DEFINED_IN_CONFTESTD1 #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd1b/conftest.h #define DEFINED_IN_CONFTESTD1 #include #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; #else #error "include_next doesn't work" #endif EOF cat < conftestd2/conftest.h #ifndef DEFINED_IN_CONFTESTD1 #error "include_next test doesn't work" #endif #define DEFINED_IN_CONFTESTD2 EOF gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_have_include_next=yes else $as_nop CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_have_include_next=buggy else $as_nop gl_cv_have_include_next=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CPPFLAGS="$gl_save_CPPFLAGS" rm -rf conftestd1a conftestd1b conftestd2 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 printf "%s\n" "$gl_cv_have_include_next" >&6; } PRAGMA_SYSTEM_HEADER= if test $gl_cv_have_include_next = yes; then INCLUDE_NEXT=include_next INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next if test -n "$GCC"; then PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' fi else if test $gl_cv_have_include_next = buggy; then INCLUDE_NEXT=include INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next else INCLUDE_NEXT=include INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 printf %s "checking whether source code line length is unlimited... " >&6; } if test ${gl_cv_source_line_length_unlimited+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __TANDEM choke me #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "choke me" >/dev/null 2>&1 then : gl_cv_source_line_length_unlimited=no else $as_nop gl_cv_source_line_length_unlimited=yes fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } if test $gl_cv_source_line_length_unlimited = no; then PRAGMA_COLUMNS="#pragma COLUMNS 10000" else PRAGMA_COLUMNS= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 printf %s "checking for complete errno.h... " >&6; } if test ${gl_cv_header_errno_h_complete+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !defined ETXTBSY booboo #endif #if !defined ENOMSG booboo #endif #if !defined EIDRM booboo #endif #if !defined ENOLINK booboo #endif #if !defined EPROTO booboo #endif #if !defined EMULTIHOP booboo #endif #if !defined EBADMSG booboo #endif #if !defined EOVERFLOW booboo #endif #if !defined ENOTSUP booboo #endif #if !defined ENETRESET booboo #endif #if !defined ECONNABORTED booboo #endif #if !defined ESTALE booboo #endif #if !defined EDQUOT booboo #endif #if !defined ECANCELED booboo #endif #if !defined EOWNERDEAD booboo #endif #if !defined ENOTRECOVERABLE booboo #endif #if !defined EILSEQ booboo #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "booboo" >/dev/null 2>&1 then : gl_cv_header_errno_h_complete=no else $as_nop gl_cv_header_errno_h_complete=yes fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; } if test $gl_cv_header_errno_h_complete = yes; then GL_GENERATE_ERRNO_H=false else if test $gl_cv_have_include_next = yes; then gl_cv_next_errno_h='<'errno.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_errno_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'errno.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_errno_h gl_cv_next_errno_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 printf "%s\n" "$gl_cv_next_errno_h" >&6; } fi NEXT_ERRNO_H=$gl_cv_next_errno_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'errno.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_errno_h fi NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive GL_GENERATE_ERRNO_H=true fi if $GL_GENERATE_ERRNO_H; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 printf %s "checking for EMULTIHOP value... " >&6; } if test ${gl_cv_header_errno_h_EMULTIHOP+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef EMULTIHOP yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_EMULTIHOP=yes else $as_nop gl_cv_header_errno_h_EMULTIHOP=no fi rm -rf conftest* if test $gl_cv_header_errno_h_EMULTIHOP = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE_EXTENDED 1 #include #ifdef EMULTIHOP yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_EMULTIHOP=hidden fi rm -rf conftest* if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " #define _XOPEN_SOURCE_EXTENDED 1 #include /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include " then : fi fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } case $gl_cv_header_errno_h_EMULTIHOP in yes | no) EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= ;; *) EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" ;; esac fi if $GL_GENERATE_ERRNO_H; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 printf %s "checking for ENOLINK value... " >&6; } if test ${gl_cv_header_errno_h_ENOLINK+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef ENOLINK yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_ENOLINK=yes else $as_nop gl_cv_header_errno_h_ENOLINK=no fi rm -rf conftest* if test $gl_cv_header_errno_h_ENOLINK = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE_EXTENDED 1 #include #ifdef ENOLINK yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_ENOLINK=hidden fi rm -rf conftest* if test $gl_cv_header_errno_h_ENOLINK = hidden; then if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " #define _XOPEN_SOURCE_EXTENDED 1 #include /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include " then : fi fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } case $gl_cv_header_errno_h_ENOLINK in yes | no) ENOLINK_HIDDEN=0; ENOLINK_VALUE= ;; *) ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" ;; esac fi if $GL_GENERATE_ERRNO_H; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 printf %s "checking for EOVERFLOW value... " >&6; } if test ${gl_cv_header_errno_h_EOVERFLOW+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef EOVERFLOW yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_EOVERFLOW=yes else $as_nop gl_cv_header_errno_h_EOVERFLOW=no fi rm -rf conftest* if test $gl_cv_header_errno_h_EOVERFLOW = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE_EXTENDED 1 #include #ifdef EOVERFLOW yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "yes" >/dev/null 2>&1 then : gl_cv_header_errno_h_EOVERFLOW=hidden fi rm -rf conftest* if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " #define _XOPEN_SOURCE_EXTENDED 1 #include /* The following two lines are a workaround against an autoconf-2.52 bug. */ #include #include " then : fi fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } case $gl_cv_header_errno_h_EOVERFLOW in yes | no) EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= ;; *) EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" ;; esac fi ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strerror_r" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_strerror_r = yes; then # For backward compatibility's sake, define HAVE_STRERROR_R. # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well # as AC_CHECK_DECLS_ONCE.) printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 printf %s "checking whether strerror_r returns char *... " >&6; } if test ${ac_cv_func_strerror_r_char_p+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); char *p = strerror_r (0, buf, sizeof buf); return !p || x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_func_strerror_r_char_p=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi XGETTEXT_EXTRA_OPTIONS= { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5 printf %s "checking whether ctype.h defines __header_inline... " >&6; } if test ${gl_cv_have___header_inline+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef __header_inline #error " does not define __header_inline" #endif _ACEOF if ac_fn_c_try_cpp "$LINENO" then : gl_cv_have___header_inline=yes else $as_nop gl_cv_have___header_inline=no fi rm -f conftest.err conftest.i conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5 printf "%s\n" "$gl_cv_have___header_inline" >&6; } if test "$gl_cv_have___header_inline" = yes; then printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h fi HAVE_FCNTL=1; HAVE_OPENAT=1; REPLACE_CREAT=0; REPLACE_FCNTL=0; REPLACE_OPEN=0; REPLACE_OPENAT=0; GL_GNULIB_CREAT=0 GL_GNULIB_FCNTL=0 GL_GNULIB_NONBLOCKING=0 GL_GNULIB_OPEN=0 GL_GNULIB_OPENAT=0 GL_GNULIB_MDA_CREAT=1 GL_GNULIB_MDA_OPEN=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 printf %s "checking for working fcntl.h... " >&6; } if test ${gl_cv_header_working_fcntl_h+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess 'no' on native Windows. mingw*) gl_cv_header_working_fcntl_h='no' ;; *) gl_cv_header_working_fcntl_h=cross-compiling ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include # include # defined sleep(n) _sleep ((n) * 1000) #endif #include $gl_mda_defines #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; int main (void) { int result = !constants; #if HAVE_SYMLINK { static char const sym[] = "conftest.sym"; if (symlink ("/dev/null", sym) != 0) result |= 2; else { int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); if (fd >= 0) { close (fd); result |= 4; } } if (unlink (sym) != 0 || symlink (".", sym) != 0) result |= 2; else { int fd = open (sym, O_RDONLY | O_NOFOLLOW); if (fd >= 0) { close (fd); result |= 4; } } unlink (sym); } #endif { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); if (fd < 0) result |= 8; else { struct stat st0; if (fstat (fd, &st0) != 0) result |= 16; else { char c; sleep (1); if (read (fd, &c, 1) != 1) result |= 24; else { if (close (fd) != 0) result |= 32; else { struct stat st1; if (stat (file, &st1) != 0) result |= 40; else if (st0.st_atime != st1.st_atime) result |= 64; } } } } } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_header_working_fcntl_h=yes else $as_nop case $? in #( 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default " if test "x$ac_cv_type_pid_t" = xyes then : else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _WIN64 && !defined __CYGWIN__ LLP64 #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_pid_type='int' else $as_nop ac_pid_type='__int64' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" if test "x$ac_cv_type_mode_t" = xyes then : else $as_nop printf "%s\n" "#define mode_t int" >>confdefs.h fi if test $gl_cv_have_include_next = yes; then gl_cv_next_fcntl_h='<'fcntl.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_fcntl_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'fcntl.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_fcntl_h gl_cv_next_fcntl_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; } fi NEXT_FCNTL_H=$gl_cv_next_fcntl_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'fcntl.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_fcntl_h fi NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive HAVE_FCHMODAT=1; HAVE_FSTATAT=1; HAVE_FUTIMENS=1; HAVE_GETUMASK=1; HAVE_LCHMOD=1; HAVE_LSTAT=1; HAVE_MKDIRAT=1; HAVE_MKFIFO=1; HAVE_MKFIFOAT=1; HAVE_MKNOD=1; HAVE_MKNODAT=1; HAVE_UTIMENSAT=1; REPLACE_CHMOD=0; REPLACE_FCHMODAT=0; REPLACE_FSTAT=0; REPLACE_FSTATAT=0; REPLACE_FUTIMENS=0; REPLACE_LSTAT=0; REPLACE_MKDIR=0; REPLACE_MKFIFO=0; REPLACE_MKFIFOAT=0; REPLACE_MKNOD=0; REPLACE_MKNODAT=0; REPLACE_STAT=0; REPLACE_UTIMENSAT=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 printf %s "checking whether stat file-mode macros are broken... " >&6; } if test ${ac_cv_header_stat_broken+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if defined S_ISBLK && defined S_IFDIR extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; #endif #if defined S_ISBLK && defined S_IFCHR extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; #endif #if defined S_ISLNK && defined S_IFREG extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; #endif #if defined S_ISSOCK && defined S_IFREG extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_header_stat_broken=no else $as_nop ac_cv_header_stat_broken=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 printf "%s\n" "$ac_cv_header_stat_broken" >&6; } if test $ac_cv_header_stat_broken = yes; then printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h fi case "$host_os" in mingw*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 printf %s "checking for 64-bit off_t... " >&6; } if test ${gl_cv_type_off_t_64+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_type_off_t_64=yes else $as_nop gl_cv_type_off_t_64=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 printf "%s\n" "$gl_cv_type_off_t_64" >&6; } if test $gl_cv_type_off_t_64 = no; then WINDOWS_64_BIT_OFF_T=1 else WINDOWS_64_BIT_OFF_T=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 printf %s "checking for 64-bit st_size... " >&6; } if test ${gl_cv_member_st_size_64+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct stat buf; int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_member_st_size_64=yes else $as_nop gl_cv_member_st_size_64=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 printf "%s\n" "$gl_cv_member_st_size_64" >&6; } if test $gl_cv_member_st_size_64 = no; then WINDOWS_64_BIT_ST_SIZE=1 else WINDOWS_64_BIT_ST_SIZE=0 fi ;; *) WINDOWS_64_BIT_OFF_T=0 WINDOWS_64_BIT_ST_SIZE=0 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 printf %s "checking for C/C++ restrict keyword... " >&6; } if test ${ac_cv_c_restrict+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_c_restrict=no # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html # Put 'restrict' last, because C++ lacks it. for ac_kw in __restrict__ __restrict _Restrict restrict; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int *int_ptr; int foo (int_ptr $ac_kw ip) { return ip[0]; } int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ int bar (int ip[$ac_kw]) { return ip[0]; } int main (void) { int s[1]; int *$ac_kw t = s; t[0] = 0; return foo (t) + bar (t); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_restrict=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 printf "%s\n" "$ac_cv_c_restrict" >&6; } case $ac_cv_c_restrict in restrict) ;; no) printf "%s\n" "#define restrict /**/" >>confdefs.h ;; *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h ;; esac if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_stat_h='<'sys/stat.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_stat_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_stat_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/stat.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_stat_h gl_cv_next_sys_stat_h='"'$gl_header'"' else gl_cv_next_sys_stat_h='<'sys/stat.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } fi NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/stat.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_stat_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive WINDOWS_STAT_TIMESPEC=0 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include #include " if test "x$ac_cv_type_nlink_t" = xyes then : else $as_nop printf "%s\n" "#define nlink_t int" >>confdefs.h fi case "$host_os" in mingw*) ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" if test "x$ac_cv_header_sdkddkver_h" = xyes then : printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h fi ;; esac GL_GNULIB_CHMOD=0 GL_GNULIB_FCHMODAT=0 GL_GNULIB_FSTAT=0 GL_GNULIB_FSTATAT=0 GL_GNULIB_FUTIMENS=0 GL_GNULIB_GETUMASK=0 GL_GNULIB_LCHMOD=0 GL_GNULIB_LSTAT=0 GL_GNULIB_MKDIR=0 GL_GNULIB_MKDIRAT=0 GL_GNULIB_MKFIFO=0 GL_GNULIB_MKFIFOAT=0 GL_GNULIB_MKNOD=0 GL_GNULIB_MKNODAT=0 GL_GNULIB_STAT=0 GL_GNULIB_UTIMENSAT=0 GL_GNULIB_OVERRIDES_STRUCT_STAT=0 GL_GNULIB_MDA_CHMOD=1 GL_GNULIB_MDA_MKDIR=1 GL_GNULIB_MDA_UMASK=1 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getdtablesize" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_getopt_h='<'getopt.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_getopt_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_getopt_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'getopt.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_getopt_h gl_cv_next_getopt_h='"'$gl_header'"' else gl_cv_next_getopt_h='<'getopt.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 printf "%s\n" "$gl_cv_next_getopt_h" >&6; } fi NEXT_GETOPT_H=$gl_cv_next_getopt_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'getopt.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_getopt_h fi NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive if test $ac_cv_header_getopt_h = yes; then HAVE_GETOPT_H=1 else HAVE_GETOPT_H=0 fi gl_replace_getopt= if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then for ac_header in getopt.h do : ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" if test "x$ac_cv_header_getopt_h" = xyes then : printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h else $as_nop gl_replace_getopt=yes fi done fi if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then for ac_func in getopt_long_only do : ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" if test "x$ac_cv_func_getopt_long_only" = xyes then : printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h else $as_nop gl_replace_getopt=yes fi done fi if test -z "$gl_replace_getopt"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 printf %s "checking whether getopt is POSIX compatible... " >&6; } if test ${gl_cv_func_getopt_posix+y} then : printf %s "(cached) " >&6 else $as_nop if test $cross_compiling = no; then if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { static char program[] = "program"; static char a[] = "-a"; static char foo[] = "foo"; static char bar[] = "bar"; char *argv[] = { program, a, foo, bar, NULL }; int c; c = getopt (4, argv, "ab"); if (!(c == 'a')) return 1; c = getopt (4, argv, "ab"); if (!(c == -1)) return 2; if (!(optind == 2)) return 3; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getopt_posix=maybe else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $gl_cv_func_getopt_posix = maybe; then if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { static char program[] = "program"; static char donald[] = "donald"; static char p[] = "-p"; static char billy[] = "billy"; static char duck[] = "duck"; static char a[] = "-a"; static char bar[] = "bar"; char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; int c; c = getopt (7, argv, "+abp:q:"); if (!(c == -1)) return 4; if (!(strcmp (argv[0], "program") == 0)) return 5; if (!(strcmp (argv[1], "donald") == 0)) return 6; if (!(strcmp (argv[2], "-p") == 0)) return 7; if (!(strcmp (argv[3], "billy") == 0)) return 8; if (!(strcmp (argv[4], "duck") == 0)) return 9; if (!(strcmp (argv[5], "-a") == 0)) return 10; if (!(strcmp (argv[6], "bar") == 0)) return 11; if (!(optind == 1)) return 12; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getopt_posix=maybe else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi if test $gl_cv_func_getopt_posix = maybe; then if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { static char program[] = "program"; static char ab[] = "-ab"; char *argv[3] = { program, ab, NULL }; if (getopt (2, argv, "ab:") != 'a') return 13; if (getopt (2, argv, "ab:") != '?') return 14; if (optopt != 'b') return 15; if (optind != 2) return 16; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getopt_posix=yes else $as_nop gl_cv_func_getopt_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi else case "$host_os" in darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; *) gl_cv_func_getopt_posix="guessing yes";; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; } case "$gl_cv_func_getopt_posix" in *no) gl_replace_getopt=yes ;; esac fi if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 printf %s "checking for working GNU getopt function... " >&6; } if test ${gl_cv_func_getopt_gnu+y} then : printf %s "(cached) " >&6 else $as_nop # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the # optstring is necessary for programs like m4 that have POSIX-mandated # semantics for supporting options interspersed with files. # Also, since getopt_long is a GNU extension, we require optind=0. # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; # so take care to revert to the correct (non-)export state. gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #if defined __MACH__ && defined __APPLE__ /* Avoid a crash on Mac OS X. */ #include #include #include #include #include #include /* The exception port on which our thread listens. */ static mach_port_t our_exception_port; /* The main function of the thread listening for exceptions of type EXC_BAD_ACCESS. */ static void * mach_exception_thread (void *arg) { /* Buffer for a message to be received. */ struct { mach_msg_header_t head; mach_msg_body_t msgh_body; char data[1024]; } msg; mach_msg_return_t retval; /* Wait for a message on the exception port. */ retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); if (retval != MACH_MSG_SUCCESS) abort (); exit (1); } static void nocrash_init (void) { mach_port_t self = mach_task_self (); /* Allocate a port on which the thread shall listen for exceptions. */ if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) == KERN_SUCCESS) { /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ if (mach_port_insert_right (self, our_exception_port, our_exception_port, MACH_MSG_TYPE_MAKE_SEND) == KERN_SUCCESS) { /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting for us. */ exception_mask_t mask = EXC_MASK_BAD_ACCESS; /* Create the thread listening on the exception port. */ pthread_attr_t attr; pthread_t thread; if (pthread_attr_init (&attr) == 0 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { pthread_attr_destroy (&attr); /* Replace the exception port info for these exceptions with our own. Note that we replace the exception port for the entire task, not only for a particular thread. This has the effect that when our exception port gets the message, the thread specific exception port has already been asked, and we don't need to bother about it. See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ task_set_exception_ports (self, mask, our_exception_port, EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); } } } } #elif defined _WIN32 && ! defined __CYGWIN__ /* Avoid a crash on native Windows. */ #define WIN32_LEAN_AND_MEAN #include #include static LONG WINAPI exception_filter (EXCEPTION_POINTERS *ExceptionInfo) { switch (ExceptionInfo->ExceptionRecord->ExceptionCode) { case EXCEPTION_ACCESS_VIOLATION: case EXCEPTION_IN_PAGE_ERROR: case EXCEPTION_STACK_OVERFLOW: case EXCEPTION_GUARD_PAGE: case EXCEPTION_PRIV_INSTRUCTION: case EXCEPTION_ILLEGAL_INSTRUCTION: case EXCEPTION_DATATYPE_MISALIGNMENT: case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: case EXCEPTION_NONCONTINUABLE_EXCEPTION: exit (1); } return EXCEPTION_CONTINUE_SEARCH; } static void nocrash_init (void) { SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); } #else /* Avoid a crash on POSIX systems. */ #include #include /* A POSIX signal handler. */ static void exception_handler (int sig) { _exit (1); } static void nocrash_init (void) { #ifdef SIGSEGV signal (SIGSEGV, exception_handler); #endif #ifdef SIGBUS signal (SIGBUS, exception_handler); #endif } #endif int main (void) { int result = 0; nocrash_init(); /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10. */ { static char conftest[] = "conftest"; static char plus[] = "-+"; char *argv[3] = { conftest, plus, NULL }; opterr = 0; if (getopt (2, argv, "+a") != '?') result |= 1; } /* This code succeeds on glibc 2.8, mingw, and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ { static char program[] = "program"; static char p[] = "-p"; static char foo[] = "foo"; static char bar[] = "bar"; char *argv[] = { program, p, foo, bar, NULL }; optind = 1; if (getopt (4, argv, "p::") != 'p') result |= 2; else if (optarg != NULL) result |= 4; else if (getopt (4, argv, "p::") != -1) result |= 6; else if (optind != 2) result |= 8; } /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ { static char program[] = "program"; static char foo[] = "foo"; static char p[] = "-p"; char *argv[] = { program, foo, p, NULL }; optind = 0; if (getopt (3, argv, "-p") != 1) result |= 16; else if (getopt (3, argv, "-p") != 'p') result |= 16; } /* This code fails on glibc 2.11. */ { static char program[] = "program"; static char b[] = "-b"; static char a[] = "-a"; char *argv[] = { program, b, a, NULL }; optind = opterr = 0; if (getopt (3, argv, "+:a:b") != 'b') result |= 32; else if (getopt (3, argv, "+:a:b") != ':') result |= 32; } /* This code dumps core on glibc 2.14. */ { static char program[] = "program"; static char w[] = "-W"; static char dummy[] = "dummy"; char *argv[] = { program, w, dummy, NULL }; optind = opterr = 1; if (getopt (3, argv, "W;") != 'W') result |= 64; } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getopt_gnu=yes else $as_nop gl_cv_func_getopt_gnu=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi case $gl_had_POSIXLY_CORRECT in exported) ;; yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; } if test "$gl_cv_func_getopt_gnu" != yes; then gl_replace_getopt=yes else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 printf %s "checking for working GNU getopt_long function... " >&6; } if test ${gl_cv_func_getopt_long_gnu+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; *) gl_cv_func_getopt_long_gnu="guessing yes";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { static const struct option long_options[] = { { "xtremely-",no_argument, NULL, 1003 }, { "xtra", no_argument, NULL, 1001 }, { "xtreme", no_argument, NULL, 1002 }, { "xtremely", no_argument, NULL, 1003 }, { NULL, 0, NULL, 0 } }; /* This code fails on OpenBSD 5.0. */ { static char program[] = "program"; static char xtremel[] = "--xtremel"; char *argv[] = { program, xtremel, NULL }; int option_index; optind = 1; opterr = 0; if (getopt_long (2, argv, "", long_options, &option_index) != 1003) return 1; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getopt_long_gnu=yes else $as_nop gl_cv_func_getopt_long_gnu=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; } case "$gl_cv_func_getopt_long_gnu" in *yes) ;; *) gl_replace_getopt=yes ;; esac fi fi if test $gl_cv_have_include_next = yes; then gl_cv_next_limits_h='<'limits.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_limits_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_limits_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'limits.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_limits_h gl_cv_next_limits_h='"'$gl_header'"' else gl_cv_next_limits_h='<'limits.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 printf "%s\n" "$gl_cv_next_limits_h" >&6; } fi NEXT_LIMITS_H=$gl_cv_next_limits_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'limits.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_limits_h fi NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; } if test ${gl_cv_header_limits_width+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #endif #include long long llm = LLONG_MAX; int wb = WORD_BIT; int ullw = ULLONG_WIDTH; int bw = BOOL_WIDTH; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_limits_width=yes else $as_nop gl_cv_header_limits_width=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 printf "%s\n" "$gl_cv_header_limits_width" >&6; } if test "$gl_cv_header_limits_width" = yes; then GL_GENERATE_LIMITS_H=false else GL_GENERATE_LIMITS_H=true fi HAVE_NEWLOCALE=1; HAVE_DUPLOCALE=1; HAVE_FREELOCALE=1; REPLACE_LOCALECONV=0; REPLACE_SETLOCALE=0; REPLACE_NEWLOCALE=0; REPLACE_DUPLOCALE=0; REPLACE_FREELOCALE=0; REPLACE_STRUCT_LCONV=0; LOCALENAME_ENHANCE_LOCALE_FUNCS=0; REPLACE_NULL=0; HAVE_MAX_ALIGN_T=1; HAVE_WCHAR_T=1; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 printf %s "checking for wchar_t... " >&6; } if test ${gt_cv_c_wchar_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_c_wchar_t=yes else $as_nop gt_cv_c_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 printf "%s\n" "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h fi GL_GENERATE_STDDEF_H=false { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 printf %s "checking for good max_align_t... " >&6; } if test ${gl_cv_type_max_align_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include unsigned int s = sizeof (max_align_t); #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; #endif typedef struct { char a; max_align_t b; } max_helper; typedef struct { char a; long b; } long_helper; typedef struct { char a; double b; } double_helper; typedef struct { char a; long double b; } long_double_helper; int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1]; int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1]; int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_type_max_align_t=yes else $as_nop gl_cv_type_max_align_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 printf "%s\n" "$gl_cv_type_max_align_t" >&6; } if test $gl_cv_type_max_align_t = no; then HAVE_MAX_ALIGN_T=0 GL_GENERATE_STDDEF_H=true fi if test $gt_cv_c_wchar_t = no; then HAVE_WCHAR_T=0 GL_GENERATE_STDDEF_H=true fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } if test ${gl_cv_decl_null_works+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int test[2 * (sizeof NULL == sizeof (void *)) -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_decl_null_works=yes else $as_nop gl_cv_decl_null_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 printf "%s\n" "$gl_cv_decl_null_works" >&6; } if test $gl_cv_decl_null_works = no; then REPLACE_NULL=1 GL_GENERATE_STDDEF_H=true fi if $GL_GENERATE_STDDEF_H; then if test $gl_cv_have_include_next = yes; then gl_cv_next_stddef_h='<'stddef.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stddef_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stddef.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stddef_h gl_cv_next_stddef_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 printf "%s\n" "$gl_cv_next_stddef_h" >&6; } fi NEXT_STDDEF_H=$gl_cv_next_stddef_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stddef.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stddef_h fi NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 printf %s "checking whether locale.h defines locale_t... " >&6; } if test ${gl_cv_header_locale_has_locale_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include locale_t x; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_locale_has_locale_t=yes else $as_nop gl_cv_header_locale_has_locale_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; } if test $ac_cv_header_xlocale_h = yes; then HAVE_XLOCALE_H=1 if test $gl_cv_header_locale_has_locale_t = yes; then gl_cv_header_locale_h_needs_xlocale_h=no else gl_cv_header_locale_h_needs_xlocale_h=yes fi HAVE_LOCALE_T=1 else HAVE_XLOCALE_H=0 gl_cv_header_locale_h_needs_xlocale_h=no if test $gl_cv_header_locale_has_locale_t = yes; then HAVE_LOCALE_T=1 else HAVE_LOCALE_T=0 fi fi case "$host_os" in solaris*) printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; } if test ${gl_cv_header_locale_h_posix2001+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = LC_MESSAGES; int y = sizeof (((struct lconv *) 0)->decimal_point); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_locale_h_posix2001=yes else $as_nop gl_cv_header_locale_h_posix2001=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 printf %s "checking whether struct lconv is properly defined... " >&6; } if test ${gl_cv_sys_struct_lconv_ok+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct lconv l; int x = sizeof (l.decimal_point); int y = sizeof (l.int_p_cs_precedes); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_lconv_ok=yes else $as_nop gl_cv_sys_struct_lconv_ok=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; } if test $gl_cv_sys_struct_lconv_ok = no; then case "$host_os" in mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _MSC_VER Special #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Special" >/dev/null 2>&1 then : else $as_nop REPLACE_STRUCT_LCONV=1 fi rm -rf conftest* ;; *) REPLACE_STRUCT_LCONV=1 ;; esac fi if test $gl_cv_have_include_next = yes; then gl_cv_next_locale_h='<'locale.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_locale_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'locale.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_locale_h gl_cv_next_locale_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 printf "%s\n" "$gl_cv_next_locale_h" >&6; } fi NEXT_LOCALE_H=$gl_cv_next_locale_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'locale.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_locale_h fi NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive GL_GNULIB_LOCALECONV=0 GL_GNULIB_SETLOCALE=0 GL_GNULIB_SETLOCALE_NULL=0 GL_GNULIB_DUPLOCALE=0 GL_GNULIB_LOCALENAME=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 printf %s "checking whether malloc (0) returns nonnull... " >&6; } if test ${ac_cv_func_malloc_0_nonnull+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | gnu* | *-musl* | midnightbsd* \ | hpux* | solaris* | cygwin* | mingw* | msys* ) ac_cv_func_malloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { void *p = malloc (0); int result = !p; free (p); return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_func_malloc_0_nonnull=yes else $as_nop ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } case $ac_cv_func_malloc_0_nonnull in #( *yes) : gl_cv_func_malloc_0_nonnull=1 ;; #( *) : gl_cv_func_malloc_0_nonnull=0 ;; esac printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; } if test ${gl_cv_c_multiarch+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_c_multiarch=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO" then : arch= prev= for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do if test -n "$prev"; then case $word in i?86 | x86_64 | ppc | ppc64 | arm | arm64) if test -z "$arch" || test "$arch" = "$word"; then arch="$word" else gl_cv_c_multiarch=yes fi ;; esac prev= else if test "x$word" = "x-arch"; then prev=arch fi fi done fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 printf "%s\n" "$gl_cv_c_multiarch" >&6; } if test $gl_cv_c_multiarch = yes; then APPLE_UNIVERSAL_BUILD=1 else APPLE_UNIVERSAL_BUILD=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 printf %s "checking for O_CLOEXEC... " >&6; } if test ${gl_cv_macro_O_CLOEXEC+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef O_CLOEXEC choke me; #endif int main (void) { return O_CLOEXEC; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_macro_O_CLOEXEC=yes else $as_nop gl_cv_macro_O_CLOEXEC=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 printf %s "checking for promoted mode_t type... " >&6; } if test ${gl_cv_promoted_mode_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_promoted_mode_t='int' else $as_nop gl_cv_promoted_mode_t='mode_t' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 printf %s "checking for stdbool.h that conforms to C99... " >&6; } if test ${ac_cv_header_stdbool_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __cplusplus typedef bool Bool; #else typedef _Bool Bool; #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; /* See body of main program for 'e'. */ char f[(Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html */ Bool q = true; Bool *pq = &q; bool *qq = &q; int main (void) { bool e = &s; *pq |= q; *pq |= ! q; *qq |= q; *qq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq + !qq); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_header_stdbool_h=yes else $as_nop ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes then : printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 printf %s "checking for wint_t... " >&6; } if test ${gt_cv_c_wint_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wint_t foo = (wchar_t)'\0'; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_c_wint_t=yes else $as_nop gt_cv_c_wint_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 printf "%s\n" "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 printf %s "checking whether wint_t is large enough... " >&6; } if test ${gl_cv_type_wint_t_large_enough+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_type_wint_t_large_enough=yes else $as_nop gl_cv_type_wint_t_large_enough=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } if test $gl_cv_type_wint_t_large_enough = no; then GNULIBHEADERS_OVERRIDE_WINT_T=1 else GNULIBHEADERS_OVERRIDE_WINT_T=0 fi else GNULIBHEADERS_OVERRIDE_WINT_T=0 fi printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi if test $ac_cv_header_inttypes_h = yes; then HAVE_INTTYPES_H=1 else HAVE_INTTYPES_H=0 fi if test $ac_cv_header_sys_types_h = yes; then HAVE_SYS_TYPES_H=1 else HAVE_SYS_TYPES_H=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_stdint_h='<'stdint.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stdint_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_stdint_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stdint.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stdint_h gl_cv_next_stdint_h='"'$gl_header'"' else gl_cv_next_stdint_h='<'stdint.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 printf "%s\n" "$gl_cv_next_stdint_h" >&6; } fi NEXT_STDINT_H=$gl_cv_next_stdint_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stdint.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stdint_h fi NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive if test $ac_cv_header_stdint_h = yes; then HAVE_STDINT_H=1 else HAVE_STDINT_H=0 fi if test $ac_cv_header_stdint_h = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 printf %s "checking whether stdint.h conforms to C99... " >&6; } if test ${gl_cv_header_working_stdint_h+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_header_working_stdint_h=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #define __STDC_CONSTANT_MACROS 1 #define __STDC_LIMIT_MACROS 1 #include /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in . */ #if !(defined WCHAR_MIN && defined WCHAR_MAX) #error "WCHAR_MIN, WCHAR_MAX not defined in " #endif #include #include #if HAVE_WCHAR_H # include #endif #ifdef INT8_MAX int8_t a1 = INT8_MAX; int8_t a1min = INT8_MIN; #endif #ifdef INT16_MAX int16_t a2 = INT16_MAX; int16_t a2min = INT16_MIN; #endif #ifdef INT32_MAX int32_t a3 = INT32_MAX; int32_t a3min = INT32_MIN; #endif #ifdef INT64_MAX int64_t a4 = INT64_MAX; int64_t a4min = INT64_MIN; #endif #ifdef UINT8_MAX uint8_t b1 = UINT8_MAX; #else typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; #endif #ifdef UINT16_MAX uint16_t b2 = UINT16_MAX; #endif #ifdef UINT32_MAX uint32_t b3 = UINT32_MAX; #endif #ifdef UINT64_MAX uint64_t b4 = UINT64_MAX; #endif int_least8_t c1 = INT8_C (0x7f); int_least8_t c1max = INT_LEAST8_MAX; int_least8_t c1min = INT_LEAST8_MIN; int_least16_t c2 = INT16_C (0x7fff); int_least16_t c2max = INT_LEAST16_MAX; int_least16_t c2min = INT_LEAST16_MIN; int_least32_t c3 = INT32_C (0x7fffffff); int_least32_t c3max = INT_LEAST32_MAX; int_least32_t c3min = INT_LEAST32_MIN; int_least64_t c4 = INT64_C (0x7fffffffffffffff); int_least64_t c4max = INT_LEAST64_MAX; int_least64_t c4min = INT_LEAST64_MIN; uint_least8_t d1 = UINT8_C (0xff); uint_least8_t d1max = UINT_LEAST8_MAX; uint_least16_t d2 = UINT16_C (0xffff); uint_least16_t d2max = UINT_LEAST16_MAX; uint_least32_t d3 = UINT32_C (0xffffffff); uint_least32_t d3max = UINT_LEAST32_MAX; uint_least64_t d4 = UINT64_C (0xffffffffffffffff); uint_least64_t d4max = UINT_LEAST64_MAX; int_fast8_t e1 = INT_FAST8_MAX; int_fast8_t e1min = INT_FAST8_MIN; int_fast16_t e2 = INT_FAST16_MAX; int_fast16_t e2min = INT_FAST16_MIN; int_fast32_t e3 = INT_FAST32_MAX; int_fast32_t e3min = INT_FAST32_MIN; int_fast64_t e4 = INT_FAST64_MAX; int_fast64_t e4min = INT_FAST64_MIN; uint_fast8_t f1 = UINT_FAST8_MAX; uint_fast16_t f2 = UINT_FAST16_MAX; uint_fast32_t f3 = UINT_FAST32_MAX; uint_fast64_t f4 = UINT_FAST64_MAX; #ifdef INTPTR_MAX intptr_t g = INTPTR_MAX; intptr_t gmin = INTPTR_MIN; #endif #ifdef UINTPTR_MAX uintptr_t h = UINTPTR_MAX; #endif intmax_t i = INTMAX_MAX; uintmax_t j = UINTMAX_MAX; /* Check that SIZE_MAX has the correct type, if possible. */ #if 201112 <= __STDC_VERSION__ int k = _Generic (SIZE_MAX, size_t: 0); #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ || (0x5110 <= __SUNPRO_C && !__STDC__)) extern size_t k; extern __typeof__ (SIZE_MAX) k; #endif #include /* for CHAR_BIT */ #define TYPE_MINIMUM(t) \ ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) #define TYPE_MAXIMUM(t) \ ((t) ((t) 0 < (t) -1 \ ? (t) -1 \ : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) struct s { int check_PTRDIFF: PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) ? 1 : -1; /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */ int check_SIG_ATOMIC: SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) ? 1 : -1; int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; int check_WCHAR: WCHAR_MIN == TYPE_MINIMUM (wchar_t) && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) ? 1 : -1; /* Detect bug in mingw. */ int check_WINT: WINT_MIN == TYPE_MINIMUM (wint_t) && WINT_MAX == TYPE_MAXIMUM (wint_t) ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; int check_UINT16_C: (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; /* Detect bugs in OpenBSD 3.9 stdint.h. */ #ifdef UINT8_MAX int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; #endif #ifdef UINT16_MAX int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; #endif #ifdef UINT32_MAX int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; #endif #ifdef UINT64_MAX int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; #endif int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; }; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on native Windows. mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; # In general, assume it works. *) gl_cv_header_working_stdint_h="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #define __STDC_CONSTANT_MACROS 1 #define __STDC_LIMIT_MACROS 1 #include #include #include #if HAVE_WCHAR_H # include #endif #include #include #define MVAL(macro) MVAL1(macro) #define MVAL1(expression) #expression static const char *macro_values[] = { #ifdef INT8_MAX MVAL (INT8_MAX), #endif #ifdef INT16_MAX MVAL (INT16_MAX), #endif #ifdef INT32_MAX MVAL (INT32_MAX), #endif #ifdef INT64_MAX MVAL (INT64_MAX), #endif #ifdef UINT8_MAX MVAL (UINT8_MAX), #endif #ifdef UINT16_MAX MVAL (UINT16_MAX), #endif #ifdef UINT32_MAX MVAL (UINT32_MAX), #endif #ifdef UINT64_MAX MVAL (UINT64_MAX), #endif NULL }; int main (void) { const char **mv; for (mv = macro_values; *mv != NULL; mv++) { const char *value = *mv; /* Test whether it looks like a cast expression. */ if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 || strncmp (value, "((int)"/*)*/, 6) == 0 || strncmp (value, "((signed short)"/*)*/, 15) == 0 || strncmp (value, "((signed char)"/*)*/, 14) == 0) return mv - macro_values + 1; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_header_working_stdint_h=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; } fi HAVE_C99_STDINT_H=0 HAVE_SYS_BITYPES_H=0 HAVE_SYS_INTTYPES_H=0 GL_GENERATE_STDINT_H=true case "$gl_cv_header_working_stdint_h" in *yes) HAVE_C99_STDINT_H=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; } if test ${gl_cv_header_stdint_without_STDC_macros+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_header_stdint_without_STDC_macros=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include #include #include #if HAVE_WCHAR_H # include #endif intmax_t im = INTMAX_MAX; int32_t i32 = INT32_C (0x7fffffff); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_stdint_without_STDC_macros=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } if test $gl_cv_header_stdint_without_STDC_macros = no; then printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } if test ${gl_cv_header_stdint_width+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_header_stdint_width=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #endif #include #include #include #if HAVE_WCHAR_H # include #endif int iw = UINTMAX_WIDTH; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_stdint_width=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 printf "%s\n" "$gl_cv_header_stdint_width" >&6; } if test "$gl_cv_header_stdint_width" = yes; then GL_GENERATE_STDINT_H=false fi ;; *) ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" if test "x$ac_cv_header_sys_inttypes_h" = xyes then : printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" if test "x$ac_cv_header_sys_bitypes_h" = xyes then : printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h fi if test $ac_cv_header_sys_inttypes_h = yes; then HAVE_SYS_INTTYPES_H=1 fi if test $ac_cv_header_sys_bitypes_h = yes; then HAVE_SYS_BITYPES_H=1 fi if test $APPLE_UNIVERSAL_BUILD = 0; then for gltype in ptrdiff_t size_t ; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 printf %s "checking for bit size of $gltype... " >&6; } if eval test \${gl_cv_bitsizeof_${gltype}+y} then : printf %s "(cached) " >&6 else $as_nop if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " #include #include #if HAVE_WCHAR_H # include #endif #include " then : else $as_nop result=unknown fi eval gl_cv_bitsizeof_${gltype}=\$result fi eval ac_res=\$gl_cv_bitsizeof_${gltype} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h eval BITSIZEOF_${GLTYPE}=\$result done fi for gltype in sig_atomic_t wchar_t wint_t ; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 printf %s "checking for bit size of $gltype... " >&6; } if eval test \${gl_cv_bitsizeof_${gltype}+y} then : printf %s "(cached) " >&6 else $as_nop if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " #include #include #if HAVE_WCHAR_H # include #endif #include " then : else $as_nop result=unknown fi eval gl_cv_bitsizeof_${gltype}=\$result fi eval ac_res=\$gl_cv_bitsizeof_${gltype} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_bitsizeof_${gltype} if test $result = unknown; then result=0 fi GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h eval BITSIZEOF_${GLTYPE}=\$result done for gltype in sig_atomic_t wchar_t wint_t ; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 printf %s "checking whether $gltype is signed... " >&6; } if eval test \${gl_cv_type_${gltype}_signed+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_WCHAR_H # include #endif int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : result=yes else $as_nop result=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval gl_cv_type_${gltype}_signed=\$result fi eval ac_res=\$gl_cv_type_${gltype}_signed { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } eval result=\$gl_cv_type_${gltype}_signed GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` if test "$result" = yes; then printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h eval HAVE_SIGNED_${GLTYPE}=1 else eval HAVE_SIGNED_${GLTYPE}=0 fi done gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no if test $APPLE_UNIVERSAL_BUILD = 0; then for gltype in ptrdiff_t size_t ; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 printf %s "checking for $gltype integer literal suffix... " >&6; } if eval test \${gl_cv_type_${gltype}_suffix+y} then : printf %s "(cached) " >&6 else $as_nop eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then glsufu= else glsufu=u fi for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; i64) gltype1='__int64';; u) gltype1='unsigned int';; ul) gltype1='unsigned long int';; ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_WCHAR_H # include #endif extern $gltype foo; extern $gltype1 foo; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval gl_cv_type_${gltype}_suffix=\$glsuf fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done fi eval ac_res=\$gl_cv_type_${gltype}_suffix { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h done fi for gltype in sig_atomic_t wchar_t wint_t ; do { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 printf %s "checking for $gltype integer literal suffix... " >&6; } if eval test \${gl_cv_type_${gltype}_suffix+y} then : printf %s "(cached) " >&6 else $as_nop eval gl_cv_type_${gltype}_suffix=no eval result=\$gl_cv_type_${gltype}_signed if test "$result" = yes; then glsufu= else glsufu=u fi for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do case $glsuf in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; i64) gltype1='__int64';; u) gltype1='unsigned int';; ul) gltype1='unsigned long int';; ull) gltype1='unsigned long long int';; ui64)gltype1='unsigned __int64';; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_WCHAR_H # include #endif extern $gltype foo; extern $gltype1 foo; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval gl_cv_type_${gltype}_suffix=\$glsuf fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval result=\$gl_cv_type_${gltype}_suffix test "$result" != no && break done fi eval ac_res=\$gl_cv_type_${gltype}_suffix { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` eval result=\$gl_cv_type_${gltype}_suffix test "$result" = no && result= eval ${GLTYPE}_SUFFIX=\$result printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h done if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then BITSIZEOF_WINT_T=32 fi ;; esac GL_GENERATE_LIMITS_H=true HAVE_DECL_FCLOSEALL=1; HAVE_DECL_FPURGE=1; HAVE_DECL_FSEEKO=1; HAVE_DECL_FTELLO=1; HAVE_DECL_GETDELIM=1; HAVE_DECL_GETLINE=1; HAVE_DECL_OBSTACK_PRINTF=1; HAVE_DECL_SNPRINTF=1; HAVE_DECL_VSNPRINTF=1; HAVE_DPRINTF=1; HAVE_FSEEKO=1; HAVE_FTELLO=1; HAVE_PCLOSE=1; HAVE_POPEN=1; HAVE_RENAMEAT=1; HAVE_VASPRINTF=1; HAVE_VDPRINTF=1; REPLACE_DPRINTF=0; REPLACE_FCLOSE=0; REPLACE_FDOPEN=0; REPLACE_FFLUSH=0; REPLACE_FOPEN=0; REPLACE_FOPEN_FOR_FOPEN_GNU=0; REPLACE_FPRINTF=0; REPLACE_FPURGE=0; REPLACE_FREOPEN=0; REPLACE_FSEEK=0; REPLACE_FSEEKO=0; REPLACE_FTELL=0; REPLACE_FTELLO=0; REPLACE_GETDELIM=0; REPLACE_GETLINE=0; REPLACE_OBSTACK_PRINTF=0; REPLACE_PERROR=0; REPLACE_POPEN=0; REPLACE_PRINTF=0; REPLACE_REMOVE=0; REPLACE_RENAME=0; REPLACE_RENAMEAT=0; REPLACE_SNPRINTF=0; REPLACE_SPRINTF=0; REPLACE_STDIO_READ_FUNCS=0; REPLACE_STDIO_WRITE_FUNCS=0; REPLACE_TMPFILE=0; REPLACE_VASPRINTF=0; REPLACE_VDPRINTF=0; REPLACE_VFPRINTF=0; REPLACE_VPRINTF=0; REPLACE_VSNPRINTF=0; REPLACE_VSPRINTF=0; ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fcloseall" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_stdio_h='<'stdio.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stdio_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stdio.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stdio_h gl_cv_next_stdio_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 printf "%s\n" "$gl_cv_next_stdio_h" >&6; } fi NEXT_STDIO_H=$gl_cv_next_stdio_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stdio.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stdio_h fi NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } if test ${gl_cv_func_printf_attribute_flavor+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define __STDC_FORMAT_MACROS 1 #include #include /* For non-mingw systems, compilation will trivially succeed. For mingw, compilation will succeed for older mingw (system printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ #if (defined _WIN32 && ! defined __CYGWIN__) && \ (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_printf_attribute_flavor=system else $as_nop gl_cv_func_printf_attribute_flavor=gnu fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } if test "$gl_cv_func_printf_attribute_flavor" = gnu; then printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h fi if test $ac_cv_have_decl_fcloseall = no; then HAVE_DECL_FCLOSEALL=0 fi GL_GNULIB_DPRINTF=0 GL_GNULIB_FCLOSE=0 GL_GNULIB_FDOPEN=0 GL_GNULIB_FFLUSH=0 GL_GNULIB_FGETC=0 GL_GNULIB_FGETS=0 GL_GNULIB_FOPEN=0 GL_GNULIB_FOPEN_GNU=0 GL_GNULIB_FPRINTF=0 GL_GNULIB_FPRINTF_POSIX=0 GL_GNULIB_FPURGE=0 GL_GNULIB_FPUTC=0 GL_GNULIB_FPUTS=0 GL_GNULIB_FREAD=0 GL_GNULIB_FREOPEN=0 GL_GNULIB_FSCANF=0 GL_GNULIB_FSEEK=0 GL_GNULIB_FSEEKO=0 GL_GNULIB_FTELL=0 GL_GNULIB_FTELLO=0 GL_GNULIB_FWRITE=0 GL_GNULIB_GETC=0 GL_GNULIB_GETCHAR=0 GL_GNULIB_GETDELIM=0 GL_GNULIB_GETLINE=0 GL_GNULIB_OBSTACK_PRINTF=0 GL_GNULIB_OBSTACK_PRINTF_POSIX=0 GL_GNULIB_PCLOSE=0 GL_GNULIB_PERROR=0 GL_GNULIB_POPEN=0 GL_GNULIB_PRINTF=0 GL_GNULIB_PRINTF_POSIX=0 GL_GNULIB_PUTC=0 GL_GNULIB_PUTCHAR=0 GL_GNULIB_PUTS=0 GL_GNULIB_REMOVE=0 GL_GNULIB_RENAME=0 GL_GNULIB_RENAMEAT=0 GL_GNULIB_SCANF=0 GL_GNULIB_SNPRINTF=0 GL_GNULIB_SPRINTF_POSIX=0 GL_GNULIB_STDIO_H_NONBLOCKING=0 GL_GNULIB_STDIO_H_SIGPIPE=0 GL_GNULIB_TMPFILE=0 GL_GNULIB_VASPRINTF=0 GL_GNULIB_VFSCANF=0 GL_GNULIB_VSCANF=0 GL_GNULIB_VDPRINTF=0 GL_GNULIB_VFPRINTF=0 GL_GNULIB_VFPRINTF_POSIX=0 GL_GNULIB_VPRINTF=0 GL_GNULIB_VPRINTF_POSIX=0 GL_GNULIB_VSNPRINTF=0 GL_GNULIB_VSPRINTF_POSIX=0 GL_GNULIB_MDA_FCLOSEALL=1 GL_GNULIB_MDA_FDOPEN=1 GL_GNULIB_MDA_FILENO=1 GL_GNULIB_MDA_GETW=1 GL_GNULIB_MDA_PUTW=1 GL_GNULIB_MDA_TEMPNAM=1 HAVE__EXIT=1; HAVE_ALIGNED_ALLOC=1; HAVE_ATOLL=1; HAVE_CANONICALIZE_FILE_NAME=1; HAVE_DECL_ECVT=1; HAVE_DECL_FCVT=1; HAVE_DECL_GCVT=1; HAVE_DECL_GETLOADAVG=1; HAVE_GETSUBOPT=1; HAVE_GRANTPT=1; HAVE_INITSTATE=1; HAVE_DECL_INITSTATE=1; HAVE_MBTOWC=1; HAVE_MKDTEMP=1; HAVE_MKOSTEMP=1; HAVE_MKOSTEMPS=1; HAVE_MKSTEMP=1; HAVE_MKSTEMPS=1; HAVE_POSIX_MEMALIGN=1; HAVE_POSIX_OPENPT=1; HAVE_PTSNAME=1; HAVE_PTSNAME_R=1; HAVE_QSORT_R=1; HAVE_RANDOM=1; HAVE_RANDOM_H=1; HAVE_RANDOM_R=1; HAVE_REALLOCARRAY=1; HAVE_REALPATH=1; HAVE_RPMATCH=1; HAVE_SECURE_GETENV=1; HAVE_SETENV=1; HAVE_DECL_SETENV=1; HAVE_SETSTATE=1; HAVE_DECL_SETSTATE=1; HAVE_STRTOD=1; HAVE_STRTOL=1; HAVE_STRTOLD=1; HAVE_STRTOLL=1; HAVE_STRTOUL=1; HAVE_STRTOULL=1; HAVE_STRUCT_RANDOM_DATA=1; HAVE_SYS_LOADAVG_H=0; HAVE_UNLOCKPT=1; HAVE_DECL_UNSETENV=1; REPLACE_ALIGNED_ALLOC=0; REPLACE_CALLOC_FOR_CALLOC_GNU=0; REPLACE_CALLOC_FOR_CALLOC_POSIX=0; REPLACE_CANONICALIZE_FILE_NAME=0; REPLACE_FREE=0; REPLACE_INITSTATE=0; REPLACE_MALLOC_FOR_MALLOC_GNU=0; REPLACE_MALLOC_FOR_MALLOC_POSIX=0; REPLACE_MBTOWC=0; REPLACE_MKSTEMP=0; REPLACE_POSIX_MEMALIGN=0; REPLACE_PTSNAME=0; REPLACE_PTSNAME_R=0; REPLACE_PUTENV=0; REPLACE_QSORT_R=0; REPLACE_RANDOM=0; REPLACE_RANDOM_R=0; REPLACE_REALLOC_FOR_REALLOC_GNU=0; REPLACE_REALLOC_FOR_REALLOC_POSIX=0; REPLACE_REALLOCARRAY=0; REPLACE_REALPATH=0; REPLACE_SETENV=0; REPLACE_SETSTATE=0; REPLACE_STRTOD=0; REPLACE_STRTOL=0; REPLACE_STRTOLD=0; REPLACE_STRTOLL=0; REPLACE_STRTOUL=0; REPLACE_STRTOULL=0; REPLACE_UNSETENV=0; REPLACE_WCTOMB=0; ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_ecvt" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fcvt" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_gcvt" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_stdlib_h='<'stdlib.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stdlib_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stdlib.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stdlib_h gl_cv_next_stdlib_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; } fi NEXT_STDLIB_H=$gl_cv_next_stdlib_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stdlib.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stdlib_h fi NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive if test $ac_cv_have_decl_ecvt = no; then HAVE_DECL_ECVT=0 fi if test $ac_cv_have_decl_fcvt = no; then HAVE_DECL_FCVT=0 fi if test $ac_cv_have_decl_gcvt = no; then HAVE_DECL_GCVT=0 fi GL_GNULIB__EXIT=0 GL_GNULIB_ALIGNED_ALLOC=0 GL_GNULIB_ATOLL=0 GL_GNULIB_CALLOC_GNU=0 GL_GNULIB_CALLOC_POSIX=0 GL_GNULIB_CANONICALIZE_FILE_NAME=0 GL_GNULIB_FREE_POSIX=0 GL_GNULIB_GETLOADAVG=0 GL_GNULIB_GETSUBOPT=0 GL_GNULIB_GRANTPT=0 GL_GNULIB_MALLOC_GNU=0 GL_GNULIB_MALLOC_POSIX=0 GL_GNULIB_MBTOWC=0 GL_GNULIB_MKDTEMP=0 GL_GNULIB_MKOSTEMP=0 GL_GNULIB_MKOSTEMPS=0 GL_GNULIB_MKSTEMP=0 GL_GNULIB_MKSTEMPS=0 GL_GNULIB_POSIX_MEMALIGN=0 GL_GNULIB_POSIX_OPENPT=0 GL_GNULIB_PTSNAME=0 GL_GNULIB_PTSNAME_R=0 GL_GNULIB_PUTENV=0 GL_GNULIB_QSORT_R=0 GL_GNULIB_RANDOM=0 GL_GNULIB_RANDOM_R=0 GL_GNULIB_REALLOCARRAY=0 GL_GNULIB_REALLOC_GNU=0 GL_GNULIB_REALLOC_POSIX=0 GL_GNULIB_REALPATH=0 GL_GNULIB_RPMATCH=0 GL_GNULIB_SECURE_GETENV=0 GL_GNULIB_SETENV=0 GL_GNULIB_STRTOD=0 GL_GNULIB_STRTOL=0 GL_GNULIB_STRTOLD=0 GL_GNULIB_STRTOLL=0 GL_GNULIB_STRTOUL=0 GL_GNULIB_STRTOULL=0 GL_GNULIB_SYSTEM_POSIX=0 GL_GNULIB_UNLOCKPT=0 GL_GNULIB_UNSETENV=0 GL_GNULIB_WCTOMB=0 GL_GNULIB_MDA_ECVT=1 GL_GNULIB_MDA_FCVT=1 GL_GNULIB_MDA_GCVT=1 GL_GNULIB_MDA_MKTEMP=1 GL_GNULIB_MDA_PUTENV=1 HAVE_MBSLEN=0; HAVE_EXPLICIT_BZERO=1; HAVE_FFSL=1; HAVE_FFSLL=1; HAVE_DECL_MEMMEM=1; HAVE_MEMPCPY=1; HAVE_DECL_MEMRCHR=1; HAVE_RAWMEMCHR=1; HAVE_STPCPY=1; HAVE_STPNCPY=1; HAVE_STRCHRNUL=1; HAVE_DECL_STRDUP=1; HAVE_DECL_STRNDUP=1; HAVE_DECL_STRNLEN=1; HAVE_STRPBRK=1; HAVE_STRSEP=1; HAVE_STRCASESTR=1; HAVE_DECL_STRTOK_R=1; HAVE_DECL_STRERROR_R=1; HAVE_STRERRORNAME_NP=1; HAVE_SIGABBREV_NP=1; HAVE_SIGDESCR_NP=1; HAVE_DECL_STRSIGNAL=1; HAVE_STRVERSCMP=1; REPLACE_FFSLL=0; REPLACE_MEMCHR=0; REPLACE_MEMMEM=0; REPLACE_STPNCPY=0; REPLACE_STRCHRNUL=0; REPLACE_STRDUP=0; REPLACE_STRNCAT=0; REPLACE_STRNDUP=0; REPLACE_STRNLEN=0; REPLACE_STRSTR=0; REPLACE_STRCASESTR=0; REPLACE_STRTOK_R=0; REPLACE_STRERROR=0; REPLACE_STRERROR_R=0; REPLACE_STRERRORNAME_NP=0; REPLACE_STRSIGNAL=0; UNDEFINE_STRTOK_R=0; REPLACE_STRERROR_0=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 printf %s "checking whether strerror(0) succeeds... " >&6; } if test ${gl_cv_func_strerror_0_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { int result = 0; char *str; errno = 0; str = strerror (0); if (!*str) result |= 1; if (errno) result |= 2; if (strstr (str, "nknown") || strstr (str, "ndefined")) result |= 4; return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_strerror_0_works=yes else $as_nop gl_cv_func_strerror_0_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; } case "$gl_cv_func_strerror_0_works" in *yes) ;; *) REPLACE_STRERROR_0=1 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h ;; esac GL_GNULIB_EXPLICIT_BZERO=0 GL_GNULIB_FFSL=0 GL_GNULIB_FFSLL=0 GL_GNULIB_MEMCHR=0 GL_GNULIB_MEMMEM=0 GL_GNULIB_MEMPCPY=0 GL_GNULIB_MEMRCHR=0 GL_GNULIB_RAWMEMCHR=0 GL_GNULIB_STPCPY=0 GL_GNULIB_STPNCPY=0 GL_GNULIB_STRCHRNUL=0 GL_GNULIB_STRDUP=0 GL_GNULIB_STRNCAT=0 GL_GNULIB_STRNDUP=0 GL_GNULIB_STRNLEN=0 GL_GNULIB_STRPBRK=0 GL_GNULIB_STRSEP=0 GL_GNULIB_STRSTR=0 GL_GNULIB_STRCASESTR=0 GL_GNULIB_STRTOK_R=0 GL_GNULIB_MBSLEN=0 GL_GNULIB_MBSNLEN=0 GL_GNULIB_MBSCHR=0 GL_GNULIB_MBSRCHR=0 GL_GNULIB_MBSSTR=0 GL_GNULIB_MBSCASECMP=0 GL_GNULIB_MBSNCASECMP=0 GL_GNULIB_MBSPCASECMP=0 GL_GNULIB_MBSCASESTR=0 GL_GNULIB_MBSCSPN=0 GL_GNULIB_MBSPBRK=0 GL_GNULIB_MBSSPN=0 GL_GNULIB_MBSSEP=0 GL_GNULIB_MBSTOK_R=0 GL_GNULIB_STRERROR=0 GL_GNULIB_STRERROR_R=0 GL_GNULIB_STRERRORNAME_NP=0 GL_GNULIB_SIGABBREV_NP=0 GL_GNULIB_SIGDESCR_NP=0 GL_GNULIB_STRSIGNAL=0 GL_GNULIB_STRVERSCMP=0 GL_GNULIB_MDA_MEMCCPY=1 GL_GNULIB_MDA_STRDUP=1 if test $gl_cv_have_include_next = yes; then gl_cv_next_string_h='<'string.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_string_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'string.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_string_h gl_cv_next_string_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 printf "%s\n" "$gl_cv_next_string_h" >&6; } fi NEXT_STRING_H=$gl_cv_next_string_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'string.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_string_h fi NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_types_h='<'sys/types.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_types_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/types.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_types_h gl_cv_next_sys_types_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; } fi NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/types.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_types_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive WINDOWS_STAT_INODES=0 HAVE_DECL_LOCALTIME_R=1; HAVE_NANOSLEEP=1; HAVE_STRPTIME=1; HAVE_TIMEGM=1; HAVE_TIMESPEC_GET=1; HAVE_TIMESPEC_GETRES=1; HAVE_TIMEZONE_T=0; REPLACE_CTIME=GNULIB_PORTCHECK; REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; REPLACE_MKTIME=GNULIB_PORTCHECK; REPLACE_NANOSLEEP=GNULIB_PORTCHECK; REPLACE_STRFTIME=GNULIB_PORTCHECK; REPLACE_TIMEGM=GNULIB_PORTCHECK; REPLACE_TZSET=GNULIB_PORTCHECK; : ${GNULIB_GETTIMEOFDAY=0}; REPLACE_GMTIME=0; REPLACE_LOCALTIME=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 printf %s "checking for struct timespec in ... " >&6; } if test ${gl_cv_sys_struct_timespec_in_time_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timespec_in_time_h=yes else $as_nop gl_cv_sys_struct_timespec_in_time_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } TIME_H_DEFINES_STRUCT_TIMESPEC=0 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then TIME_H_DEFINES_STRUCT_TIMESPEC=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 printf %s "checking for struct timespec in ... " >&6; } if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timespec_in_sys_time_h=yes else $as_nop gl_cv_sys_struct_timespec_in_sys_time_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 printf %s "checking for struct timespec in ... " >&6; } if test ${gl_cv_sys_struct_timespec_in_pthread_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timespec_in_pthread_h=yes else $as_nop gl_cv_sys_struct_timespec_in_pthread_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in " >&5 printf %s "checking for struct timespec in ... " >&6; } if test ${gl_cv_sys_struct_timespec_in_unistd_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { static struct timespec x; x.tv_sec = x.tv_nsec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timespec_in_unistd_h=yes else $as_nop gl_cv_sys_struct_timespec_in_unistd_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 fi fi fi fi if test $gl_cv_have_include_next = yes; then gl_cv_next_time_h='<'time.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_time_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'time.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_time_h gl_cv_next_time_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 printf "%s\n" "$gl_cv_next_time_h" >&6; } fi NEXT_TIME_H=$gl_cv_next_time_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'time.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_time_h fi NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in " >&5 printf %s "checking for TIME_UTC in ... " >&6; } if test ${gl_cv_time_h_has_TIME_UTC+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { static int x = TIME_UTC; x++; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_time_h_has_TIME_UTC=yes else $as_nop gl_cv_time_h_has_TIME_UTC=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; } if test $gl_cv_time_h_has_TIME_UTC = yes; then TIME_H_DEFINES_TIME_UTC=1 else TIME_H_DEFINES_TIME_UTC=0 fi GL_GNULIB_CTIME=0 GL_GNULIB_MKTIME=0 GL_GNULIB_LOCALTIME=0 GL_GNULIB_NANOSLEEP=0 GL_GNULIB_STRFTIME=0 GL_GNULIB_STRPTIME=0 GL_GNULIB_TIMEGM=0 GL_GNULIB_TIMESPEC_GET=0 GL_GNULIB_TIMESPEC_GETRES=0 GL_GNULIB_TIME_R=0 GL_GNULIB_TIME_RZ=0 GL_GNULIB_TZSET=0 GL_GNULIB_MDA_TZSET=1 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_execvpe" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_unistd_h='<'unistd.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_unistd_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_unistd_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'unistd.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_unistd_h gl_cv_next_unistd_h='"'$gl_header'"' else gl_cv_next_unistd_h='<'unistd.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 printf "%s\n" "$gl_cv_next_unistd_h" >&6; } fi NEXT_UNISTD_H=$gl_cv_next_unistd_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'unistd.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_unistd_h fi NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive if test $ac_cv_header_unistd_h = yes; then HAVE_UNISTD_H=1 else HAVE_UNISTD_H=0 fi if test $ac_cv_have_decl_execvpe = no; then HAVE_DECL_EXECVPE=0 fi # Check whether --enable-valgrind-tests was given. if test ${enable_valgrind_tests+y} then : enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval else $as_nop opt_valgrind_tests=${gl_valgrind_tests_default:-yes} fi # Run self-tests under valgrind? if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then for ac_prog in valgrind do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_VALGRIND+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$VALGRIND"; then ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_VALGRIND="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi VALGRIND=$ac_cv_prog_VALGRIND if test -n "$VALGRIND"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 printf "%s\n" "$VALGRIND" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$VALGRIND" && break done # VALGRIND_PROGRAM contains the tool found by AC_CHECK_PROGS. For # backwards compatibility, the VALGRIND variable is later modified # to also include all enabled options. However the new variable # LOG_VALGRIND needs to be able to refer to the valgrind tool # without options, hence it uses this variable. VALGRIND_PROGRAM=$VALGRIND if test -z "$DEFAULT_VALGRINDFLAGS"; then DEFAULT_VALGRINDFLAGS="-q --error-exitcode=1 --leak-check=no" fi if test -n "$VALGRIND"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 printf %s "checking for valgrind options for tests... " >&6; } if test ${gl_cv_opt_valgrind_tests+y} then : printf %s "(cached) " >&6 else $as_nop if $VALGRIND $DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS true then : gl_cv_opt_valgrind_tests="$DEFAULT_VALGRINDFLAGS $VALGRINDFLAGS" else $as_nop gl_cv_opt_valgrind_tests=no fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 printf "%s\n" "$gl_cv_opt_valgrind_tests" >&6; } if test "$gl_cv_opt_valgrind_tests" != no; then VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" fi fi if test -n "$VALGRIND"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether valgrind works on executables produced by the compiler" >&5 printf %s "checking whether valgrind works on executables produced by the compiler... " >&6; } if test ${gl_cv_prog_valgrind_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : $VALGRIND $gl_cv_opt_valgrind_tests ./conftest$ac_exeext 2>/dev/null if test $? = 0; then gl_cv_prog_valgrind_works=yes else gl_cv_prog_valgrind_works=no fi else $as_nop gl_cv_prog_valgrind_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_valgrind_works" >&5 printf "%s\n" "$gl_cv_prog_valgrind_works" >&6; } fi LOG_VALGRIND="\$(VALGRIND_PROGRAM) \$(DEFAULT_VALGRINDFLAGS) \$(VALGRINDFLAGS) \$(AM_VALGRINDFLAGS)" if test "$gl_cv_prog_valgrind_works" != yes; then DEFAULT_VALGRINDFLAGS= LOG_VALGRIND= VALGRIND= VALGRINDFLAGS= VALGRIND_PROGRAM= fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5 printf %s "checking for C compiler option to allow warnings... " >&6; } if test ${gl_cv_cc_wallow+y} then : printf %s "(cached) " >&6 else $as_nop rm -f conftest* echo 'int dummy;' > conftest.c { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then gl_cv_cc_wallow='-Wno-error' else gl_cv_cc_wallow=none fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5 printf "%s\n" "$gl_cv_cc_wallow" >&6; } case "$gl_cv_cc_wallow" in none) GL_CFLAG_ALLOW_WARNINGS='' ;; *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;; esac if test -n "$CXX" && test "$CXX" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler option to allow warnings" >&5 printf %s "checking for C++ compiler option to allow warnings... " >&6; } if test ${gl_cv_cxx_wallow+y} then : printf %s "(cached) " >&6 else $as_nop rm -f conftest* echo 'int dummy;' > conftest.cc { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } >/dev/null if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then gl_cv_cxx_wallow='-Wno-error' else gl_cv_cxx_wallow=none fi rm -f conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cxx_wallow" >&5 printf "%s\n" "$gl_cv_cxx_wallow" >&6; } case "$gl_cv_cxx_wallow" in none) GL_CXXFLAG_ALLOW_WARNINGS='' ;; *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;; esac else GL_CXXFLAG_ALLOW_WARNINGS='' fi GL_CFLAG_GNULIB_WARNINGS='' if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then cat > conftest.c <<\EOF #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter #endif #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-float-conversion #endif #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wimplicit-fallthrough #endif #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-pedantic #endif #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) -Wno-sign-conversion -Wno-type-limits #endif #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 -Wno-unsuffixed-float-constants #endif EOF gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5 (eval $gl_command) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then gl_options=`grep -v '#' conftest.out` for word in $gl_options; do GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word" done fi rm -f conftest.c conftest.out fi if true; then GL_COND_LIBTOOL_TRUE= GL_COND_LIBTOOL_FALSE='#' else GL_COND_LIBTOOL_TRUE='#' GL_COND_LIBTOOL_FALSE= fi gl_cond_libtool=true gl_m4_base='src/gl/m4' gl_source_base='src/gl' gl_source_base_prefix= if test $ac_cv_func_alloca_works = no; then : fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 printf %s "checking for alloca as a compiler built-in... " >&6; } if test ${gl_cv_rpl_alloca+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __GNUC__ || defined _AIX || defined _MSC_VER Need own alloca #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Need own alloca" >/dev/null 2>&1 then : gl_cv_rpl_alloca=yes else $as_nop gl_cv_rpl_alloca=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 printf "%s\n" "$gl_cv_rpl_alloca" >&6; } if test $gl_cv_rpl_alloca = yes; then printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h GL_GENERATE_ALLOCA_H=true else GL_GENERATE_ALLOCA_H=false fi else GL_GENERATE_ALLOCA_H=true fi if test $ac_cv_working_alloca_h = yes; then HAVE_ALLOCA_H=1 else HAVE_ALLOCA_H=0 fi case "$GL_GENERATE_ALLOCA_H" in false) ALLOCA_H='' ;; true) if test -z "$ALLOCA_H"; then ALLOCA_H="${gl_source_base_prefix}alloca.h" fi ;; *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_ALLOCA_H; then GL_GENERATE_ALLOCA_H_TRUE= GL_GENERATE_ALLOCA_H_FALSE='#' else GL_GENERATE_ALLOCA_H_TRUE='#' GL_GENERATE_ALLOCA_H_FALSE= fi : if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then GL_GENERATE_ALLOCA_H_TRUE='#' GL_GENERATE_ALLOCA_H_FALSE='#' fi printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then REPLACE_CLOSE=1 fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then REPLACE_CLOSE=1 fi if test $REPLACE_CLOSE = 1; then GL_COND_OBJ_CLOSE_TRUE= GL_COND_OBJ_CLOSE_FALSE='#' else GL_COND_OBJ_CLOSE_TRUE='#' GL_COND_OBJ_CLOSE_FALSE= fi : if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then GL_COND_OBJ_CLOSE_TRUE='#' GL_COND_OBJ_CLOSE_FALSE='#' fi GL_GNULIB_CLOSE=1 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 printf %s "checking whether // is distinct from /... " >&6; } if test ${gl_cv_double_slash_root+y} then : printf %s "(cached) " >&6 else $as_nop if test x"$cross_compiling" = xyes ; then # When cross-compiling, there is no way to tell whether // is special # short of a list of hosts. However, the only known hosts to date # that have a distinct // are Apollo DomainOS (too old to port to), # Cygwin, and z/OS. If anyone knows of another system for which // has # special semantics and is distinct from /, please report it to # . case $host in *-cygwin | i370-ibm-openedition) gl_cv_double_slash_root=yes ;; *) # Be optimistic and assume that / and // are the same when we # don't know. gl_cv_double_slash_root='unknown, assuming no' ;; esac else set x `ls -di / // 2>/dev/null` if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then gl_cv_double_slash_root=no else gl_cv_double_slash_root=yes fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 printf "%s\n" "$gl_cv_double_slash_root" >&6; } if test "$gl_cv_double_slash_root" = yes; then printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 printf %s "checking whether dup2 works... " >&6; } if test ${gl_cv_func_dup2_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in mingw*) # on this platform, dup2 always returns 0 for success gl_cv_func_dup2_works="guessing no" ;; cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 gl_cv_func_dup2_works="guessing no" ;; aix* | freebsd*) # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, # not EBADF. gl_cv_func_dup2_works="guessing no" ;; haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. gl_cv_func_dup2_works="guessing no" ;; *-android*) # implemented using dup3(), which fails if oldfd == newfd gl_cv_func_dup2_works="guessing no" ;; os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include $gl_mda_defines #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif int main (void) { int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; #ifdef FD_CLOEXEC if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) result |= 1; #endif if (dup2 (1, 1) != 1) result |= 2; #ifdef FD_CLOEXEC if (fcntl (1, F_GETFD) != FD_CLOEXEC) result |= 4; #endif close (0); if (dup2 (0, 0) != -1) result |= 8; /* Many gnulib modules require POSIX conformance of EBADF. */ if (dup2 (2, bad_fd) == -1 && errno != EBADF) result |= 16; /* Flush out some cygwin core dumps. */ if (dup2 (2, -1) != -1 || errno != EBADF) result |= 32; dup2 (2, 255); dup2 (2, 256); /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ { int fd = open (".", O_RDONLY); if (fd == -1) result |= 64; else if (dup2 (fd, fd + 1) == -1) result |= 128; close (fd); } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_dup2_works=yes else $as_nop gl_cv_func_dup2_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 printf "%s\n" "$gl_cv_func_dup2_works" >&6; } case "$gl_cv_func_dup2_works" in *yes) ;; *) REPLACE_DUP2=1 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" if test "x$ac_cv_func_setdtablesize" = xyes then : printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h fi ;; esac if test $REPLACE_DUP2 = 1; then GL_COND_OBJ_DUP2_TRUE= GL_COND_OBJ_DUP2_FALSE='#' else GL_COND_OBJ_DUP2_TRUE='#' GL_COND_OBJ_DUP2_FALSE= fi : if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then GL_COND_OBJ_DUP2_TRUE='#' GL_COND_OBJ_DUP2_FALSE='#' fi if test -z "$GL_COND_OBJ_DUP2_TRUE"; then : fi GL_GNULIB_DUP2=1 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h case "$GL_GENERATE_ERRNO_H" in false) ERRNO_H='' ;; true) if test -z "$ERRNO_H"; then ERRNO_H="${gl_source_base_prefix}errno.h" fi ;; *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_ERRNO_H; then GL_GENERATE_ERRNO_H_TRUE= GL_GENERATE_ERRNO_H_FALSE='#' else GL_GENERATE_ERRNO_H_TRUE='#' GL_GENERATE_ERRNO_H_FALSE= fi : if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then GL_GENERATE_ERRNO_H_TRUE='#' GL_GENERATE_ERRNO_H_FALSE='#' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 printf %s "checking for error_at_line... " >&6; } if test ${ac_cv_lib_error_at_line+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { error_at_line (0, 0, "", 0, "an error occurred"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_error_at_line=yes else $as_nop ac_cv_lib_error_at_line=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } if test "$ac_cv_lib_error_at_line" = no; then GL_COND_OBJ_ERROR_TRUE= GL_COND_OBJ_ERROR_FALSE='#' else GL_COND_OBJ_ERROR_TRUE='#' GL_COND_OBJ_ERROR_FALSE= fi : if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then GL_COND_OBJ_ERROR_TRUE='#' GL_COND_OBJ_ERROR_FALSE='#' fi if test -z "$GL_COND_OBJ_ERROR_TRUE"; then : : fi XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } if test ${gl_cv_func_fcntl_f_dupfd_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case $host_os in aix* | cygwin* | haiku*) gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include $gl_mda_defines #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif int main (void) { int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; if (errno != EINVAL) result |= 2; if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; if (errno != EINVAL) result |= 8; /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ { int fd; fd = open (".", O_RDONLY); if (fd == -1) result |= 16; else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) result |= 32; close (fd); } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fcntl_f_dupfd_works=yes else $as_nop gl_cv_func_fcntl_f_dupfd_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } case $gl_cv_func_fcntl_f_dupfd_works in *yes) ;; *) if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on NetBSD. netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (int argc, char *argv[]) { if (argc == 1) /* parent process */ { if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) return 1; return execl ("./conftest", "./conftest", "child", NULL); } else /* child process */ return (fcntl (10, F_GETFL) < 0 ? 0 : 42); } _ACEOF if ac_fn_c_try_run "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __linux__ /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace it to support the semantics on older kernels that failed with EINVAL. */ choke me #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_fcntl_f_dupfd_cloexec=yes else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } case "$gl_cv_func_fcntl_f_dupfd_cloexec" in *yes) ;; *) if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi ;; esac fi if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then GL_COND_OBJ_FCNTL_TRUE= GL_COND_OBJ_FCNTL_FALSE='#' else GL_COND_OBJ_FCNTL_TRUE='#' GL_COND_OBJ_FCNTL_FALSE= fi : if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then GL_COND_OBJ_FCNTL_TRUE='#' GL_COND_OBJ_FCNTL_FALSE='#' fi GL_GNULIB_FCNTL=1 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h case "$host_os" in mingw* | solaris*) REPLACE_FSTAT=1 ;; esac if test $REPLACE_FSTAT = 1; then GL_COND_OBJ_FSTAT_TRUE= GL_COND_OBJ_FSTAT_FALSE='#' else GL_COND_OBJ_FSTAT_TRUE='#' GL_COND_OBJ_FSTAT_FALSE= fi : if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then GL_COND_OBJ_FSTAT_TRUE='#' GL_COND_OBJ_FSTAT_FALSE='#' fi if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then : case "$host_os" in mingw*) gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" ;; esac : fi GL_GNULIB_FSTAT=1 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h if test $ac_cv_func_getdtablesize = yes && test $ac_cv_have_decl_getdtablesize = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 printf %s "checking whether getdtablesize works... " >&6; } if test ${gl_cv_func_getdtablesize_works+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; *) if test "$cross_compiling" = yes then : case "$host_os" in cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows gl_cv_func_getdtablesize_works="guessing no" ;; *) gl_cv_func_getdtablesize_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gl_mda_defines int main (void) { int size = getdtablesize(); if (dup2 (0, getdtablesize()) != -1) return 1; if (size != getdtablesize()) return 2; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getdtablesize_works=yes else $as_nop gl_cv_func_getdtablesize_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } case "$gl_cv_func_getdtablesize_works" in *yes | "no (limitation)") ;; *) REPLACE_GETDTABLESIZE=1 ;; esac else HAVE_GETDTABLESIZE=0 fi if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then GL_COND_OBJ_GETDTABLESIZE_TRUE= GL_COND_OBJ_GETDTABLESIZE_FALSE='#' else GL_COND_OBJ_GETDTABLESIZE_TRUE='#' GL_COND_OBJ_GETDTABLESIZE_FALSE= fi : if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then GL_COND_OBJ_GETDTABLESIZE_TRUE='#' GL_COND_OBJ_GETDTABLESIZE_FALSE='#' fi if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then : : fi GL_GNULIB_GETDTABLESIZE=1 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h REPLACE_GETOPT=0 if test -n "$gl_replace_getopt"; then REPLACE_GETOPT=1 fi GL_GENERATE_GETOPT_H=false GL_GENERATE_GETOPT_CDEFS_H=false if test $REPLACE_GETOPT = 1; then if test $ac_cv_header_sys_cdefs_h = yes; then HAVE_SYS_CDEFS_H=1 else HAVE_SYS_CDEFS_H=0 fi printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h GL_GENERATE_GETOPT_H=true GL_GENERATE_GETOPT_CDEFS_H=true fi case "$GL_GENERATE_GETOPT_H" in false) GETOPT_H='' ;; true) if test -z "$GETOPT_H"; then GETOPT_H="${gl_source_base_prefix}getopt.h" fi ;; *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_GETOPT_H; then GL_GENERATE_GETOPT_H_TRUE= GL_GENERATE_GETOPT_H_FALSE='#' else GL_GENERATE_GETOPT_H_TRUE='#' GL_GENERATE_GETOPT_H_FALSE= fi : if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then GL_GENERATE_GETOPT_H_TRUE='#' GL_GENERATE_GETOPT_H_FALSE='#' fi case "$GL_GENERATE_GETOPT_CDEFS_H" in false) GETOPT_CDEFS_H='' ;; true) if test -z "$GETOPT_CDEFS_H"; then GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h" fi ;; *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_GETOPT_CDEFS_H; then GL_GENERATE_GETOPT_CDEFS_H_TRUE= GL_GENERATE_GETOPT_CDEFS_H_FALSE='#' else GL_GENERATE_GETOPT_CDEFS_H_TRUE='#' GL_GENERATE_GETOPT_CDEFS_H_FALSE= fi : if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then GL_GENERATE_GETOPT_CDEFS_H_TRUE='#' GL_GENERATE_GETOPT_CDEFS_H_FALSE='#' fi if test $REPLACE_GETOPT = 1; then GL_COND_OBJ_GETOPT_TRUE= GL_COND_OBJ_GETOPT_FALSE='#' else GL_COND_OBJ_GETOPT_TRUE='#' GL_COND_OBJ_GETOPT_FALSE= fi : if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then GL_COND_OBJ_GETOPT_TRUE='#' GL_COND_OBJ_GETOPT_FALSE='#' fi if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then : GL_GNULIB_UNISTD_H_GETOPT=1 fi GL_GNULIB_GETOPT_POSIX=1 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h ac_found=0 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_program_invocation_name" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h if test $ac_have_decl = 1 then : ac_found=1 fi ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h if test $ac_have_decl = 1 then : ac_found=1 fi ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl___argv" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h if test $ac_have_decl = 1 then : ac_found=1 fi # Incur the cost of this test only if none of the above worked. if test $ac_found = 0; then # On OpenBSD 5.1, using the global __progname variable appears to be # the only way to implement getprogname. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 printf %s "checking whether __progname is defined in default libraries... " >&6; } if test ${gl_cv_var___progname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_var___progname= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern char *__progname; int main (void) { return *__progname; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_var___progname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 printf "%s\n" "$gl_cv_var___progname" >&6; } if test "$gl_cv_var___progname" = yes; then printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h fi fi # Autoconf 2.61a.99 and earlier don't support linking a file only # in VPATH builds. But since GNUmakefile is for maintainer use # only, it does not matter if we skip the link with older autoconf. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH # builds, so use a shell variable to bypass this. GNUmakefile=GNUmakefile ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5 printf %s "checking if gcc/ld supports -Wl,--output-def... " >&6; } if test ${gl_cv_ld_output_def+y} then : printf %s "(cached) " >&6 else $as_nop if test "$enable_shared" = no; then gl_cv_ld_output_def="not needed, shared libraries are disabled" else gl_ldflags_save=$LDFLAGS LDFLAGS="-Wl,--output-def,conftest.def" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_ld_output_def=yes else $as_nop gl_cv_ld_output_def=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext rm -f conftest.def LDFLAGS="$gl_ldflags_save" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5 printf "%s\n" "$gl_cv_ld_output_def" >&6; } if test "x$gl_cv_ld_output_def" = "xyes"; then HAVE_LD_OUTPUT_DEF_TRUE= HAVE_LD_OUTPUT_DEF_FALSE='#' else HAVE_LD_OUTPUT_DEF_TRUE='#' HAVE_LD_OUTPUT_DEF_FALSE= fi # Check whether --enable-ld-version-script was given. if test ${enable_ld_version_script+y} then : enableval=$enable_ld_version_script; have_ld_version_script=$enableval else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 printf %s "checking if LD -Wl,--version-script works... " >&6; } if test ${gl_cv_sys_ld_version_script+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_sys_ld_version_script=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" echo foo >conftest.map cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : else $as_nop cat > conftest.map <conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_sys_ld_version_script=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext rm -f conftest.map LDFLAGS=$save_LDFLAGS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5 printf "%s\n" "$gl_cv_sys_ld_version_script" >&6; } have_ld_version_script=$gl_cv_sys_ld_version_script fi if test "$have_ld_version_script" = yes; then HAVE_LD_VERSION_SCRIPT_TRUE= HAVE_LD_VERSION_SCRIPT_FALSE='#' else HAVE_LD_VERSION_SCRIPT_TRUE='#' HAVE_LD_VERSION_SCRIPT_FALSE= fi case "$GL_GENERATE_LIMITS_H" in false) LIMITS_H='' ;; true) if test -z "$LIMITS_H"; then LIMITS_H="${gl_source_base_prefix}limits.h" fi ;; *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_LIMITS_H; then GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_FALSE='#' else GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE= fi : if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE='#' fi if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then GL_COND_OBJ_MSVC_INVAL_TRUE= GL_COND_OBJ_MSVC_INVAL_FALSE='#' else GL_COND_OBJ_MSVC_INVAL_TRUE='#' GL_COND_OBJ_MSVC_INVAL_FALSE= fi : if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then GL_COND_OBJ_MSVC_INVAL_TRUE='#' GL_COND_OBJ_MSVC_INVAL_FALSE='#' fi if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then GL_COND_OBJ_MSVC_NOTHROW_TRUE= GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' else GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' GL_COND_OBJ_MSVC_NOTHROW_FALSE= fi : if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' fi printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h case "$host_os" in mingw* | pw*) REPLACE_OPEN=1 ;; *) if test "$gl_cv_macro_O_CLOEXEC" != yes; then REPLACE_OPEN=1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 printf %s "checking whether open recognizes a trailing slash... " >&6; } if test ${gl_cv_func_open_slash+y} then : printf %s "(cached) " >&6 else $as_nop # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then touch conftest.tmp ln -s conftest.tmp conftest.lnk fi if test "$cross_compiling" = yes then : case "$host_os" in freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) gl_cv_func_open_slash="guessing no" ;; *) gl_cv_func_open_slash="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_UNISTD_H # include #endif $gl_mda_defines int main () { int result = 0; #if HAVE_LSTAT if (open ("conftest.lnk/", O_RDONLY) != -1) result |= 1; #endif if (open ("conftest.sl/", O_CREAT, 0600) >= 0) result |= 2; return result; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_open_slash=yes else $as_nop gl_cv_func_open_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.sl conftest.tmp conftest.lnk fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 printf "%s\n" "$gl_cv_func_open_slash" >&6; } case "$gl_cv_func_open_slash" in *no) printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h ;; esac case "$gl_cv_func_open_slash" in *no) REPLACE_OPEN=1 ;; esac ;; esac if test $REPLACE_OPEN = 1; then GL_COND_OBJ_OPEN_TRUE= GL_COND_OBJ_OPEN_FALSE='#' else GL_COND_OBJ_OPEN_TRUE='#' GL_COND_OBJ_OPEN_FALSE= fi : if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then GL_COND_OBJ_OPEN_TRUE='#' GL_COND_OBJ_OPEN_FALSE='#' fi if test -z "$GL_COND_OBJ_OPEN_TRUE"; then : : fi GL_GNULIB_OPEN=1 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h # Extract the first word of "pmccabe", so it can be a program name with args. set dummy pmccabe; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PMCCABE+y} then : printf %s "(cached) " >&6 else $as_nop case $PMCCABE in [\\/]* | ?:[\\/]*) ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_PMCCABE="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false" ;; esac fi PMCCABE=$ac_cv_path_PMCCABE if test -n "$PMCCABE"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5 printf "%s\n" "$PMCCABE" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_program_invocation_name" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 printf %s "checking for ssize_t... " >&6; } if test ${gt_cv_ssize_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_ssize_t=yes else $as_nop gt_cv_ssize_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 printf "%s\n" "$gt_cv_ssize_t" >&6; } if test $gt_cv_ssize_t = no; then printf "%s\n" "#define ssize_t int" >>confdefs.h fi case "$host_os" in mingw*) REPLACE_STAT=1 ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 printf %s "checking whether stat handles trailing slashes on files... " >&6; } if test ${gl_cv_func_stat_file_slash+y} then : printf %s "(cached) " >&6 else $as_nop touch conftest.tmp # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then ln -s conftest.tmp conftest.lnk fi if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int result = 0; struct stat st; if (!stat ("conftest.tmp/", &st)) result |= 1; #if HAVE_LSTAT if (!stat ("conftest.lnk/", &st)) result |= 2; #endif return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_stat_file_slash=yes else $as_nop gl_cv_func_stat_file_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.tmp conftest.lnk fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } case $gl_cv_func_stat_file_slash in *no) REPLACE_STAT=1 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h ;; esac case $host_os in solaris*) REPLACE_FSTAT=1 ;; esac ;; esac if test $REPLACE_STAT = 1; then GL_COND_OBJ_STAT_TRUE= GL_COND_OBJ_STAT_FALSE='#' else GL_COND_OBJ_STAT_TRUE='#' GL_COND_OBJ_STAT_FALSE= fi : if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then GL_COND_OBJ_STAT_TRUE='#' GL_COND_OBJ_STAT_FALSE='#' fi if test -z "$GL_COND_OBJ_STAT_TRUE"; then : case "$host_os" in mingw*) gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" ;; esac : fi GL_GNULIB_STAT=1 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SYS_TIME_H # include #endif #include struct timespec ts; struct stat st; int main (void) { st.st_atim = ts; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes else $as_nop ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h fi else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h fi fi fi fi ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h fi fi fi GL_GENERATE_STDARG_H=false NEXT_STDARG_H='' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 printf %s "checking for va_copy... " >&6; } if test ${gl_cv_func_va_copy+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef va_copy void (*func) (va_list, va_list) = va_copy; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_va_copy=yes else $as_nop gl_cv_func_va_copy=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 printf "%s\n" "$gl_cv_func_va_copy" >&6; } if test $gl_cv_func_va_copy = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _AIX && !defined __GNUC__ AIX vaccine #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "vaccine" >/dev/null 2>&1 then : gl_aixcc=yes else $as_nop gl_aixcc=no fi rm -rf conftest* if test $gl_aixcc = yes; then GL_GENERATE_STDARG_H=true if test $gl_cv_have_include_next = yes; then gl_cv_next_stdarg_h='<'stdarg.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stdarg_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stdarg.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stdarg_h gl_cv_next_stdarg_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; } fi NEXT_STDARG_H=$gl_cv_next_stdarg_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stdarg.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stdarg_h fi NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive if test "$gl_cv_next_stdarg_h" = '""'; then gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' NEXT_STDARG_H="$gl_cv_next_stdarg_h" fi else exec 9>&6 6>/dev/null if test ${gl_cv_func___va_copy+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef __va_copy error, bail out #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func___va_copy=yes else $as_nop gl_cv_func___va_copy=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi exec 6>&9 9>&- if test $gl_cv_func___va_copy = yes; then printf "%s\n" "#define va_copy __va_copy" >>confdefs.h else printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h fi fi fi case "$GL_GENERATE_STDARG_H" in false) STDARG_H='' ;; true) if test -z "$STDARG_H"; then STDARG_H="${gl_source_base_prefix}stdarg.h" fi ;; *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDARG_H; then GL_GENERATE_STDARG_H_TRUE= GL_GENERATE_STDARG_H_FALSE='#' else GL_GENERATE_STDARG_H_TRUE='#' GL_GENERATE_STDARG_H_FALSE= fi : if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then GL_GENERATE_STDARG_H_TRUE='#' GL_GENERATE_STDARG_H_FALSE='#' fi if test "$ac_cv_header_stdbool_h" = yes; then case "$host_os" in solaris*) if test -z "$GCC"; then GL_GENERATE_STDBOOL_H=true else GL_GENERATE_STDBOOL_H=false fi ;; *) GL_GENERATE_STDBOOL_H=false ;; esac else GL_GENERATE_STDBOOL_H=true fi if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi case "$GL_GENERATE_STDBOOL_H" in false) STDBOOL_H='' ;; true) if test -z "$STDBOOL_H"; then STDBOOL_H="${gl_source_base_prefix}stdbool.h" fi ;; *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDBOOL_H; then GL_GENERATE_STDBOOL_H_TRUE= GL_GENERATE_STDBOOL_H_FALSE='#' else GL_GENERATE_STDBOOL_H_TRUE='#' GL_GENERATE_STDBOOL_H_FALSE= fi : if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then GL_GENERATE_STDBOOL_H_TRUE='#' GL_GENERATE_STDBOOL_H_FALSE='#' fi case "$GL_GENERATE_STDDEF_H" in false) STDDEF_H='' ;; true) if test -z "$STDDEF_H"; then STDDEF_H="${gl_source_base_prefix}stddef.h" fi ;; *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDDEF_H; then GL_GENERATE_STDDEF_H_TRUE= GL_GENERATE_STDDEF_H_FALSE='#' else GL_GENERATE_STDDEF_H_TRUE='#' GL_GENERATE_STDDEF_H_FALSE= fi : if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then GL_GENERATE_STDDEF_H_TRUE='#' GL_GENERATE_STDDEF_H_FALSE='#' fi case "$GL_GENERATE_STDINT_H" in false) STDINT_H='' ;; true) if test -z "$STDINT_H"; then STDINT_H="${gl_source_base_prefix}stdint.h" fi ;; *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDINT_H; then GL_GENERATE_STDINT_H_TRUE= GL_GENERATE_STDINT_H_FALSE='#' else GL_GENERATE_STDINT_H_TRUE='#' GL_GENERATE_STDINT_H_FALSE= fi : if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then GL_GENERATE_STDINT_H_TRUE='#' GL_GENERATE_STDINT_H_FALSE='#' fi case "$GL_GENERATE_LIMITS_H" in false) LIMITS_H='' ;; true) if test -z "$LIMITS_H"; then LIMITS_H="${gl_source_base_prefix}limits.h" fi ;; *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_LIMITS_H; then GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_FALSE='#' else GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE= fi : if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE='#' fi if test $REPLACE_STDIO_READ_FUNCS = 1; then GL_COND_OBJ_STDIO_READ_TRUE= GL_COND_OBJ_STDIO_READ_FALSE='#' else GL_COND_OBJ_STDIO_READ_TRUE='#' GL_COND_OBJ_STDIO_READ_FALSE= fi : if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then GL_COND_OBJ_STDIO_READ_TRUE='#' GL_COND_OBJ_STDIO_READ_FALSE='#' fi if test $REPLACE_STDIO_WRITE_FUNCS = 1; then GL_COND_OBJ_STDIO_WRITE_TRUE= GL_COND_OBJ_STDIO_WRITE_FALSE='#' else GL_COND_OBJ_STDIO_WRITE_TRUE='#' GL_COND_OBJ_STDIO_WRITE_FALSE= fi : if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then GL_COND_OBJ_STDIO_WRITE_TRUE='#' GL_COND_OBJ_STDIO_WRITE_FALSE='#' fi GL_GNULIB_FSCANF=1 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h GL_GNULIB_SCANF=1 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h GL_GNULIB_FGETC=1 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h GL_GNULIB_GETC=1 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h GL_GNULIB_GETCHAR=1 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h GL_GNULIB_FGETS=1 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h GL_GNULIB_FREAD=1 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h GL_GNULIB_FPRINTF=1 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h GL_GNULIB_PRINTF=1 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h GL_GNULIB_VFPRINTF=1 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h GL_GNULIB_VPRINTF=1 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h GL_GNULIB_FPUTC=1 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h GL_GNULIB_PUTC=1 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h GL_GNULIB_PUTCHAR=1 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h GL_GNULIB_FPUTS=1 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h GL_GNULIB_PUTS=1 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h GL_GNULIB_FWRITE=1 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 printf %s "checking for working strerror function... " >&6; } if test ${gl_cv_func_working_strerror+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_working_strerror="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { if (!*strerror (-2)) return 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_working_strerror=yes else $as_nop gl_cv_func_working_strerror=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 printf "%s\n" "$gl_cv_func_working_strerror" >&6; } case "$gl_cv_func_working_strerror" in *yes) ;; *) REPLACE_STRERROR=1 ;; esac else REPLACE_STRERROR=1 fi if test $REPLACE_STRERROR = 1; then GL_COND_OBJ_STRERROR_TRUE= GL_COND_OBJ_STRERROR_FALSE='#' else GL_COND_OBJ_STRERROR_TRUE='#' GL_COND_OBJ_STRERROR_FALSE= fi : if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then GL_COND_OBJ_STRERROR_TRUE='#' GL_COND_OBJ_STRERROR_FALSE='#' fi printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h GL_GNULIB_STRERROR=1 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then GL_COND_OBJ_STRERROR_OVERRIDE_TRUE= GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' else GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' GL_COND_OBJ_STRERROR_OVERRIDE_FALSE= fi : if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' fi if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then : if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 printf %s "checking for variable-length arrays... " >&6; } if test ${ac_cv_c_vararrays+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC_NO_VLA__ defined #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "defined" >/dev/null 2>&1 then : ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test for VLA support. This test is partly inspired from examples in the C standard. Use at least two VLA functions to detect the GCC 3.4.3 bug described in: https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html */ #ifdef __STDC_NO_VLA__ syntax error; #else extern int n; int B[100]; int fvla (int m, int C[m][m]); int simple (int count, int all[static count]) { return all[count - 1]; } int fvla (int m, int C[m][m]) { typedef int VLA[m][m]; VLA x; int D[m]; static int (*q)[m] = &B; int (*s)[n] = q; return C && &x[0][0] == &D[0] && &D[0] == s[0]; } #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_vararrays=yes else $as_nop ac_cv_c_vararrays=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 printf "%s\n" "$ac_cv_c_vararrays" >&6; } if test "$ac_cv_c_vararrays" = yes; then printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h elif test "$ac_cv_c_vararrays" = no; then printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h fi # Check whether --with-packager was given. if test ${with_packager+y} then : withval=$with_packager; case $withval in yes|no) ;; *) printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h ;; esac fi # Check whether --with-packager-version was given. if test ${with_packager_version+y} then : withval=$with_packager_version; case $withval in yes|no) ;; *) printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h ;; esac fi # Check whether --with-packager-bug-reports was given. if test ${with_packager_bug_reports+y} then : withval=$with_packager_bug_reports; case $withval in yes|no) ;; *) printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h ;; esac fi if test "X$with_packager" = "X" && \ test "X$with_packager_version$with_packager_bug_reports" != "X" then as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5 fi # End of code from modules gltests_libdeps= gltests_ltlibdeps= gl_source_base='src/gl/tests' gl_source_base_prefix= gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS gl_module_indicator_condition=$gltests_WITNESS LIBTESTS_LIBDEPS="$gltests_libdeps" HAVE_DECL_INET_NTOP=1; HAVE_DECL_INET_PTON=1; REPLACE_INET_NTOP=0; REPLACE_INET_PTON=0; if test $ac_cv_header_features_h = yes; then HAVE_FEATURES_H=1 else HAVE_FEATURES_H=0 fi if test $ac_cv_header_sys_socket_h = no; then ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" if test "x$ac_cv_header_ws2tcpip_h" = xyes then : printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h fi fi if test $ac_cv_header_arpa_inet_h = yes; then HAVE_ARPA_INET_H=1 else HAVE_ARPA_INET_H=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_arpa_inet_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_arpa_inet_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'arpa/inet.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_arpa_inet_h gl_cv_next_arpa_inet_h='"'$gl_header'"' else gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; } fi NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'arpa/inet.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_arpa_inet_h fi NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive if test $ac_cv_header_sys_socket_h = yes; then HAVE_WS2TCPIP_H=0 else if test $ac_cv_header_ws2tcpip_h = yes; then HAVE_WS2TCPIP_H=1 else HAVE_WS2TCPIP_H=0 fi fi GL_LIBGL_GNULIB_INET_NTOP=0 GL_LIBGL_GNULIB_INET_PTON=0 HAVE_STRUCT_SOCKADDR_STORAGE=1; HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; HAVE_SA_FAMILY_T=1; HAVE_ACCEPT4=1; case "$host_os" in osf*) printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h ;; esac GL_GENERATE_SYS_SOCKET_H=false { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 printf %s "checking whether is self-contained... " >&6; } if test ${gl_cv_header_sys_socket_h_selfcontained+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_sys_socket_h_selfcontained=yes else $as_nop gl_cv_header_sys_socket_h_selfcontained=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; } if test $gl_cv_header_sys_socket_h_selfcontained = yes; then ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" if test "x$ac_cv_func_shutdown" = xyes then : printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h fi if test $ac_cv_func_shutdown = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines the SHUT_* macros" >&5 printf %s "checking whether defines the SHUT_* macros... " >&6; } if test ${gl_cv_header_sys_socket_h_shut+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_sys_socket_h_shut=yes else $as_nop gl_cv_header_sys_socket_h_shut=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; } if test $gl_cv_header_sys_socket_h_shut = no; then GL_GENERATE_SYS_SOCKET_H=true fi fi fi # We need to check for ws2tcpip.h now. if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_socket_h='<'sys/socket.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_socket_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_socket_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/socket.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_socket_h gl_cv_next_sys_socket_h='"'$gl_header'"' else gl_cv_next_sys_socket_h='<'sys/socket.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; } fi NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/socket.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_socket_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive if test $ac_cv_header_sys_socket_h = yes; then HAVE_SYS_SOCKET_H=1 else HAVE_SYS_SOCKET_H=0 fi if test $ac_cv_header_sys_socket_h = yes; then HAVE_WS2TCPIP_H=0 else if test $ac_cv_header_ws2tcpip_h = yes; then HAVE_WS2TCPIP_H=1 else HAVE_WS2TCPIP_H=0 fi fi ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " if test "x$ac_cv_type_struct_sockaddr_storage" = xyes then : printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " if test "x$ac_cv_type_sa_family_t" = xyes then : printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h fi if test $ac_cv_type_struct_sockaddr_storage = no; then HAVE_STRUCT_SOCKADDR_STORAGE=0 fi if test $ac_cv_type_sa_family_t = no; then HAVE_SA_FAMILY_T=0 fi if test $ac_cv_type_struct_sockaddr_storage != no; then ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes then : printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h else $as_nop HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 fi fi if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then GL_GENERATE_SYS_SOCKET_H=true fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi GL_LIBGL_GNULIB_SOCKET=0 GL_LIBGL_GNULIB_CONNECT=0 GL_LIBGL_GNULIB_ACCEPT=0 GL_LIBGL_GNULIB_BIND=0 GL_LIBGL_GNULIB_GETPEERNAME=0 GL_LIBGL_GNULIB_GETSOCKNAME=0 GL_LIBGL_GNULIB_GETSOCKOPT=0 GL_LIBGL_GNULIB_LISTEN=0 GL_LIBGL_GNULIB_RECV=0 GL_LIBGL_GNULIB_SEND=0 GL_LIBGL_GNULIB_RECVFROM=0 GL_LIBGL_GNULIB_SENDTO=0 GL_LIBGL_GNULIB_SETSOCKOPT=0 GL_LIBGL_GNULIB_SHUTDOWN=0 GL_LIBGL_GNULIB_ACCEPT4=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; } if test ${gl_cv_malloc_ptrdiff+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { /* 64-bit ptrdiff_t is so wide that no practical platform can exceed it. */ #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0) /* On rare machines where size_t fits in ptrdiff_t there is no problem. */ #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX) /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t bounds even on 32-bit platforms. We don't know which non-glibc systems are safe. */ #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__)) #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE return 0; #else #error "malloc might not be ptrdiff_t safe" syntax error #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_malloc_ptrdiff=yes else $as_nop gl_cv_malloc_ptrdiff=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; } test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; } if test ${gl_cv_func_malloc_posix+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in mingw*) gl_cv_func_malloc_posix=no ;; irix* | solaris*) gl_cv_func_malloc_posix=no ;; *) gl_cv_func_malloc_posix=yes ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; } if test "$gl_cv_func_malloc_posix" = yes; then printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h else REPLACE_MALLOC_FOR_MALLOC_POSIX=1 fi if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_CALLOC_FOR_CALLOC_POSIX=1 fi GL_LIBGL_GNULIB__EXIT=0 GL_LIBGL_GNULIB_ALIGNED_ALLOC=0 GL_LIBGL_GNULIB_ATOLL=0 GL_LIBGL_GNULIB_CALLOC_GNU=0 GL_LIBGL_GNULIB_CALLOC_POSIX=0 GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME=0 GL_LIBGL_GNULIB_FREE_POSIX=0 GL_LIBGL_GNULIB_GETLOADAVG=0 GL_LIBGL_GNULIB_GETSUBOPT=0 GL_LIBGL_GNULIB_GRANTPT=0 GL_LIBGL_GNULIB_MALLOC_GNU=0 GL_LIBGL_GNULIB_MALLOC_POSIX=0 GL_LIBGL_GNULIB_MBTOWC=0 GL_LIBGL_GNULIB_MKDTEMP=0 GL_LIBGL_GNULIB_MKOSTEMP=0 GL_LIBGL_GNULIB_MKOSTEMPS=0 GL_LIBGL_GNULIB_MKSTEMP=0 GL_LIBGL_GNULIB_MKSTEMPS=0 GL_LIBGL_GNULIB_POSIX_MEMALIGN=0 GL_LIBGL_GNULIB_POSIX_OPENPT=0 GL_LIBGL_GNULIB_PTSNAME=0 GL_LIBGL_GNULIB_PTSNAME_R=0 GL_LIBGL_GNULIB_PUTENV=0 GL_LIBGL_GNULIB_QSORT_R=0 GL_LIBGL_GNULIB_RANDOM=0 GL_LIBGL_GNULIB_RANDOM_R=0 GL_LIBGL_GNULIB_REALLOCARRAY=0 GL_LIBGL_GNULIB_REALLOC_GNU=0 GL_LIBGL_GNULIB_REALLOC_POSIX=0 GL_LIBGL_GNULIB_REALPATH=0 GL_LIBGL_GNULIB_RPMATCH=0 GL_LIBGL_GNULIB_SECURE_GETENV=0 GL_LIBGL_GNULIB_SETENV=0 GL_LIBGL_GNULIB_STRTOD=0 GL_LIBGL_GNULIB_STRTOL=0 GL_LIBGL_GNULIB_STRTOLD=0 GL_LIBGL_GNULIB_STRTOLL=0 GL_LIBGL_GNULIB_STRTOUL=0 GL_LIBGL_GNULIB_STRTOULL=0 GL_LIBGL_GNULIB_SYSTEM_POSIX=0 GL_LIBGL_GNULIB_UNLOCKPT=0 GL_LIBGL_GNULIB_UNSETENV=0 GL_LIBGL_GNULIB_WCTOMB=0 GL_LIBGL_GNULIB_MDA_ECVT=1 GL_LIBGL_GNULIB_MDA_FCVT=1 GL_LIBGL_GNULIB_MDA_GCVT=1 GL_LIBGL_GNULIB_MDA_MKTEMP=1 GL_LIBGL_GNULIB_MDA_PUTENV=1 GL_LIBGL_GNULIB_ACCESS=0 GL_LIBGL_GNULIB_CHDIR=0 GL_LIBGL_GNULIB_CHOWN=0 GL_LIBGL_GNULIB_CLOSE=0 GL_LIBGL_GNULIB_COPY_FILE_RANGE=0 GL_LIBGL_GNULIB_DUP=0 GL_LIBGL_GNULIB_DUP2=0 GL_LIBGL_GNULIB_DUP3=0 GL_LIBGL_GNULIB_ENVIRON=0 GL_LIBGL_GNULIB_EUIDACCESS=0 GL_LIBGL_GNULIB_EXECL=0 GL_LIBGL_GNULIB_EXECLE=0 GL_LIBGL_GNULIB_EXECLP=0 GL_LIBGL_GNULIB_EXECV=0 GL_LIBGL_GNULIB_EXECVE=0 GL_LIBGL_GNULIB_EXECVP=0 GL_LIBGL_GNULIB_EXECVPE=0 GL_LIBGL_GNULIB_FACCESSAT=0 GL_LIBGL_GNULIB_FCHDIR=0 GL_LIBGL_GNULIB_FCHOWNAT=0 GL_LIBGL_GNULIB_FDATASYNC=0 GL_LIBGL_GNULIB_FSYNC=0 GL_LIBGL_GNULIB_FTRUNCATE=0 GL_LIBGL_GNULIB_GETCWD=0 GL_LIBGL_GNULIB_GETDOMAINNAME=0 GL_LIBGL_GNULIB_GETDTABLESIZE=0 GL_LIBGL_GNULIB_GETENTROPY=0 GL_LIBGL_GNULIB_GETGROUPS=0 GL_LIBGL_GNULIB_GETHOSTNAME=0 GL_LIBGL_GNULIB_GETLOGIN=0 GL_LIBGL_GNULIB_GETLOGIN_R=0 GL_LIBGL_GNULIB_GETOPT_POSIX=0 GL_LIBGL_GNULIB_GETPAGESIZE=0 GL_LIBGL_GNULIB_GETPASS=0 GL_LIBGL_GNULIB_GETPASS_GNU=0 GL_LIBGL_GNULIB_GETUSERSHELL=0 GL_LIBGL_GNULIB_GROUP_MEMBER=0 GL_LIBGL_GNULIB_ISATTY=0 GL_LIBGL_GNULIB_LCHOWN=0 GL_LIBGL_GNULIB_LINK=0 GL_LIBGL_GNULIB_LINKAT=0 GL_LIBGL_GNULIB_LSEEK=0 GL_LIBGL_GNULIB_PIPE=0 GL_LIBGL_GNULIB_PIPE2=0 GL_LIBGL_GNULIB_PREAD=0 GL_LIBGL_GNULIB_PWRITE=0 GL_LIBGL_GNULIB_READ=0 GL_LIBGL_GNULIB_READLINK=0 GL_LIBGL_GNULIB_READLINKAT=0 GL_LIBGL_GNULIB_RMDIR=0 GL_LIBGL_GNULIB_SETHOSTNAME=0 GL_LIBGL_GNULIB_SLEEP=0 GL_LIBGL_GNULIB_SYMLINK=0 GL_LIBGL_GNULIB_SYMLINKAT=0 GL_LIBGL_GNULIB_TRUNCATE=0 GL_LIBGL_GNULIB_TTYNAME_R=0 GL_LIBGL_GNULIB_UNISTD_H_GETOPT=0 GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING=0 GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE=0 GL_LIBGL_GNULIB_UNLINK=0 GL_LIBGL_GNULIB_UNLINKAT=0 GL_LIBGL_GNULIB_USLEEP=0 GL_LIBGL_GNULIB_WRITE=0 GL_LIBGL_GNULIB_MDA_ACCESS=1 GL_LIBGL_GNULIB_MDA_CHDIR=1 GL_LIBGL_GNULIB_MDA_CLOSE=1 GL_LIBGL_GNULIB_MDA_DUP=1 GL_LIBGL_GNULIB_MDA_DUP2=1 GL_LIBGL_GNULIB_MDA_EXECL=1 GL_LIBGL_GNULIB_MDA_EXECLE=1 GL_LIBGL_GNULIB_MDA_EXECLP=1 GL_LIBGL_GNULIB_MDA_EXECV=1 GL_LIBGL_GNULIB_MDA_EXECVE=1 GL_LIBGL_GNULIB_MDA_EXECVP=1 GL_LIBGL_GNULIB_MDA_EXECVPE=1 GL_LIBGL_GNULIB_MDA_GETCWD=1 GL_LIBGL_GNULIB_MDA_GETPID=1 GL_LIBGL_GNULIB_MDA_ISATTY=1 GL_LIBGL_GNULIB_MDA_LSEEK=1 GL_LIBGL_GNULIB_MDA_READ=1 GL_LIBGL_GNULIB_MDA_RMDIR=1 GL_LIBGL_GNULIB_MDA_SWAB=1 GL_LIBGL_GNULIB_MDA_UNLINK=1 GL_LIBGL_GNULIB_MDA_WRITE=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 printf %s "checking for inline... " >&6; } if test ${ac_cv_c_inline+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo (void) {return 0; } $ac_kw foo_t foo (void) {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether linux/if_alg.h has struct sockaddr_alg." >&5 printf %s "checking whether linux/if_alg.h has struct sockaddr_alg.... " >&6; } if test ${gl_cv_header_linux_if_alg_salg+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct sockaddr_alg salg = { .salg_family = AF_ALG, .salg_type = "hash", .salg_name = "sha1", }; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_linux_if_alg_salg=yes else $as_nop gl_cv_header_linux_if_alg_salg=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_linux_if_alg_salg" >&5 printf "%s\n" "$gl_cv_header_linux_if_alg_salg" >&6; } if test "$gl_cv_header_linux_if_alg_salg" = yes; then printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h fi use_af_alg=no # Check whether --with-linux-crypto was given. if test ${with_linux_crypto+y} then : withval=$with_linux_crypto; use_af_alg=$withval else $as_nop use_af_alg=no fi if test "$gl_cv_header_linux_if_alg_salg" != yes; then if test "$use_af_alg" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Linux kernel cryptographic API not found" >&5 printf "%s\n" "$as_me: WARNING: Linux kernel cryptographic API not found" >&2;} fi use_af_alg=no fi if test "$use_af_alg" != no; then USE_AF_ALG=1 else USE_AF_ALG=0 fi printf "%s\n" "#define USE_LINUX_CRYPTO_API $USE_AF_ALG" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 printf %s "checking whether byte ordering is bigendian... " >&6; } if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO" then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else $as_nop ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else $as_nop ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main (void) { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_c_bigendian=no else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 printf "%s\n" "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 printf %s "checking if environ is properly declared... " >&6; } if test ${gt_cv_var_environ_declaration+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_UNISTD_H #include #endif /* mingw, BeOS, Haiku declare environ in , not in . */ #include typedef struct { int foo; } foo_t; extern foo_t environ; int main (void) { environ.foo = 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_var_environ_declaration=no else $as_nop gt_cv_var_environ_declaration=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 printf "%s\n" "$gt_cv_var_environ_declaration" >&6; } if test $gt_cv_var_environ_declaration = yes; then printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h fi if test $gt_cv_var_environ_declaration != yes; then HAVE_DECL_ENVIRON=0 fi GL_LIBGL_GNULIB_EXPLICIT_BZERO=0 GL_LIBGL_GNULIB_FFSL=0 GL_LIBGL_GNULIB_FFSLL=0 GL_LIBGL_GNULIB_MEMCHR=0 GL_LIBGL_GNULIB_MEMMEM=0 GL_LIBGL_GNULIB_MEMPCPY=0 GL_LIBGL_GNULIB_MEMRCHR=0 GL_LIBGL_GNULIB_RAWMEMCHR=0 GL_LIBGL_GNULIB_STPCPY=0 GL_LIBGL_GNULIB_STPNCPY=0 GL_LIBGL_GNULIB_STRCHRNUL=0 GL_LIBGL_GNULIB_STRDUP=0 GL_LIBGL_GNULIB_STRNCAT=0 GL_LIBGL_GNULIB_STRNDUP=0 GL_LIBGL_GNULIB_STRNLEN=0 GL_LIBGL_GNULIB_STRPBRK=0 GL_LIBGL_GNULIB_STRSEP=0 GL_LIBGL_GNULIB_STRSTR=0 GL_LIBGL_GNULIB_STRCASESTR=0 GL_LIBGL_GNULIB_STRTOK_R=0 GL_LIBGL_GNULIB_MBSLEN=0 GL_LIBGL_GNULIB_MBSNLEN=0 GL_LIBGL_GNULIB_MBSCHR=0 GL_LIBGL_GNULIB_MBSRCHR=0 GL_LIBGL_GNULIB_MBSSTR=0 GL_LIBGL_GNULIB_MBSCASECMP=0 GL_LIBGL_GNULIB_MBSNCASECMP=0 GL_LIBGL_GNULIB_MBSPCASECMP=0 GL_LIBGL_GNULIB_MBSCASESTR=0 GL_LIBGL_GNULIB_MBSCSPN=0 GL_LIBGL_GNULIB_MBSPBRK=0 GL_LIBGL_GNULIB_MBSSPN=0 GL_LIBGL_GNULIB_MBSSEP=0 GL_LIBGL_GNULIB_MBSTOK_R=0 GL_LIBGL_GNULIB_STRERROR=0 GL_LIBGL_GNULIB_STRERROR_R=0 GL_LIBGL_GNULIB_STRERRORNAME_NP=0 GL_LIBGL_GNULIB_SIGABBREV_NP=0 GL_LIBGL_GNULIB_SIGDESCR_NP=0 GL_LIBGL_GNULIB_STRSIGNAL=0 GL_LIBGL_GNULIB_STRVERSCMP=0 GL_LIBGL_GNULIB_MDA_MEMCCPY=1 GL_LIBGL_GNULIB_MDA_STRDUP=1 GL_LIBGL_GNULIB_CREAT=0 GL_LIBGL_GNULIB_FCNTL=0 GL_LIBGL_GNULIB_NONBLOCKING=0 GL_LIBGL_GNULIB_OPEN=0 GL_LIBGL_GNULIB_OPENAT=0 GL_LIBGL_GNULIB_MDA_CREAT=1 GL_LIBGL_GNULIB_MDA_OPEN=1 GL_LIBGL_GNULIB_DPRINTF=0 GL_LIBGL_GNULIB_FCLOSE=0 GL_LIBGL_GNULIB_FDOPEN=0 GL_LIBGL_GNULIB_FFLUSH=0 GL_LIBGL_GNULIB_FGETC=0 GL_LIBGL_GNULIB_FGETS=0 GL_LIBGL_GNULIB_FOPEN=0 GL_LIBGL_GNULIB_FOPEN_GNU=0 GL_LIBGL_GNULIB_FPRINTF=0 GL_LIBGL_GNULIB_FPRINTF_POSIX=0 GL_LIBGL_GNULIB_FPURGE=0 GL_LIBGL_GNULIB_FPUTC=0 GL_LIBGL_GNULIB_FPUTS=0 GL_LIBGL_GNULIB_FREAD=0 GL_LIBGL_GNULIB_FREOPEN=0 GL_LIBGL_GNULIB_FSCANF=0 GL_LIBGL_GNULIB_FSEEK=0 GL_LIBGL_GNULIB_FSEEKO=0 GL_LIBGL_GNULIB_FTELL=0 GL_LIBGL_GNULIB_FTELLO=0 GL_LIBGL_GNULIB_FWRITE=0 GL_LIBGL_GNULIB_GETC=0 GL_LIBGL_GNULIB_GETCHAR=0 GL_LIBGL_GNULIB_GETDELIM=0 GL_LIBGL_GNULIB_GETLINE=0 GL_LIBGL_GNULIB_OBSTACK_PRINTF=0 GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX=0 GL_LIBGL_GNULIB_PCLOSE=0 GL_LIBGL_GNULIB_PERROR=0 GL_LIBGL_GNULIB_POPEN=0 GL_LIBGL_GNULIB_PRINTF=0 GL_LIBGL_GNULIB_PRINTF_POSIX=0 GL_LIBGL_GNULIB_PUTC=0 GL_LIBGL_GNULIB_PUTCHAR=0 GL_LIBGL_GNULIB_PUTS=0 GL_LIBGL_GNULIB_REMOVE=0 GL_LIBGL_GNULIB_RENAME=0 GL_LIBGL_GNULIB_RENAMEAT=0 GL_LIBGL_GNULIB_SCANF=0 GL_LIBGL_GNULIB_SNPRINTF=0 GL_LIBGL_GNULIB_SPRINTF_POSIX=0 GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING=0 GL_LIBGL_GNULIB_STDIO_H_SIGPIPE=0 GL_LIBGL_GNULIB_TMPFILE=0 GL_LIBGL_GNULIB_VASPRINTF=0 GL_LIBGL_GNULIB_VFSCANF=0 GL_LIBGL_GNULIB_VSCANF=0 GL_LIBGL_GNULIB_VDPRINTF=0 GL_LIBGL_GNULIB_VFPRINTF=0 GL_LIBGL_GNULIB_VFPRINTF_POSIX=0 GL_LIBGL_GNULIB_VPRINTF=0 GL_LIBGL_GNULIB_VPRINTF_POSIX=0 GL_LIBGL_GNULIB_VSNPRINTF=0 GL_LIBGL_GNULIB_VSPRINTF_POSIX=0 GL_LIBGL_GNULIB_MDA_FCLOSEALL=1 GL_LIBGL_GNULIB_MDA_FDOPEN=1 GL_LIBGL_GNULIB_MDA_FILENO=1 GL_LIBGL_GNULIB_MDA_GETW=1 GL_LIBGL_GNULIB_MDA_PUTW=1 GL_LIBGL_GNULIB_MDA_TEMPNAM=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 printf %s "checking whether stdin defaults to large file offsets... " >&6; } if test ${gl_cv_var_stdin_large_offset+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and it is easier to do a version check than building a runtime test. */ # include # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) choke me # endif #endif ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_var_stdin_large_offset=yes else $as_nop gl_cv_var_stdin_large_offset=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; } ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fseeko" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 printf %s "checking for fseeko... " >&6; } if test ${gl_cv_func_fseeko+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { fseeko (stdin, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_fseeko=yes else $as_nop gl_cv_func_fseeko=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 printf "%s\n" "$gl_cv_func_fseeko" >&6; } if test $ac_cv_have_decl_fseeko = no; then HAVE_DECL_FSEEKO=0 fi if test $gl_cv_func_fseeko = no; then HAVE_FSEEKO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FSEEKO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FSEEKO=1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 printf %s "checking whether fflush works on input streams... " >&6; } if test ${gl_cv_func_fflush_stdin+y} then : printf %s "(cached) " >&6 else $as_nop echo hello world > conftest.txt if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif $gl_mda_defines int main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; int fd; int c; if (f == NULL) return 1; fd = fileno (f); if (fd < 0 || fread (buffer, 1, 5, f) != 5) { fclose (f); return 2; } /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) { fclose (f); return 3; } /* POSIX requires fflush-fseek to set file offset of fd. This fails on BSD systems and on mingw. */ if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 4; } if (lseek (fd, 0, SEEK_CUR) != 5) { fclose (f); return 5; } /* Verify behaviour of fflush after ungetc. See */ /* Verify behaviour of fflush after a backup ungetc. This fails on mingw. */ c = fgetc (f); ungetc (c, f); fflush (f); if (fgetc (f) != c) { fclose (f); return 6; } /* Verify behaviour of fflush after a non-backup ungetc. This fails on glibc 2.8 and on BSD systems. */ c = fgetc (f); ungetc ('@', f); fflush (f); if (fgetc (f) != c) { fclose (f); return 7; } fclose (f); return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fflush_stdin=yes else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm conftest.txt fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in *yes) ;; *) REPLACE_FSEEKO=1 ;; esac fi GL_LIBGL_GNULIB_CHMOD=0 GL_LIBGL_GNULIB_FCHMODAT=0 GL_LIBGL_GNULIB_FSTAT=0 GL_LIBGL_GNULIB_FSTATAT=0 GL_LIBGL_GNULIB_FUTIMENS=0 GL_LIBGL_GNULIB_GETUMASK=0 GL_LIBGL_GNULIB_LCHMOD=0 GL_LIBGL_GNULIB_LSTAT=0 GL_LIBGL_GNULIB_MKDIR=0 GL_LIBGL_GNULIB_MKDIRAT=0 GL_LIBGL_GNULIB_MKFIFO=0 GL_LIBGL_GNULIB_MKFIFOAT=0 GL_LIBGL_GNULIB_MKNOD=0 GL_LIBGL_GNULIB_MKNODAT=0 GL_LIBGL_GNULIB_STAT=0 GL_LIBGL_GNULIB_UTIMENSAT=0 GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT=0 GL_LIBGL_GNULIB_MDA_CHMOD=1 GL_LIBGL_GNULIB_MDA_MKDIR=1 GL_LIBGL_GNULIB_MDA_UMASK=1 ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_ftello" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 printf %s "checking whether ungetc works on arbitrary bytes... " >&6; } if test ${gl_cv_func_ungetc_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on bionic systems. *-android*) gl_cv_func_ungetc_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_ungetc_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f; if (!(f = fopen ("conftest.tmp", "w+"))) return 1; if (fputs ("abc", f) < 0) { fclose (f); return 2; } rewind (f); if (fgetc (f) != 'a') { fclose (f); return 3; } if (fgetc (f) != 'b') { fclose (f); return 4; } if (ungetc ('d', f) != 'd') { fclose (f); return 5; } if (ftell (f) != 1) { fclose (f); return 6; } if (fgetc (f) != 'd') { fclose (f); return 7; } if (ftell (f) != 2) { fclose (f); return 8; } if (fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 9; } if (ftell (f) != 2) { fclose (f); return 10; } if (fgetc (f) != 'c') { fclose (f); return 11; } fclose (f); remove ("conftest.tmp"); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_ungetc_works=yes else $as_nop gl_cv_func_ungetc_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 printf "%s\n" "$gl_cv_func_ungetc_works" >&6; } gl_ftello_broken_after_ungetc=no case "$gl_cv_func_ungetc_works" in *yes) ;; *) case "$host_os" in darwin*) gl_ftello_broken_after_ungetc=yes ;; *) printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h ;; esac ;; esac if test $ac_cv_have_decl_ftello = no; then HAVE_DECL_FTELLO=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 printf %s "checking for ftello... " >&6; } if test ${gl_cv_func_ftello+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ftello (stdin); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_ftello=yes else $as_nop gl_cv_func_ftello=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 printf "%s\n" "$gl_cv_func_ftello" >&6; } if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FTELLO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FTELLO=1 fi if test $REPLACE_FTELLO = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 printf %s "checking whether ftello works... " >&6; } if test ${gl_cv_func_ftello_works+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in # Guess no on Solaris. solaris*) gl_cv_func_ftello_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_ftello_works="guessing yes" ;; # Guess yes otherwise. *) gl_cv_func_ftello_works="guessing yes" ;; esac if test "$cross_compiling" = yes then : : else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #define TESTFILE "conftest.tmp" int main (void) { FILE *fp; /* Create a file with some contents. */ fp = fopen (TESTFILE, "w"); if (fp == NULL) return 70; if (fwrite ("foogarsh", 1, 8, fp) < 8) { fclose (fp); return 71; } if (fclose (fp)) return 72; /* The file's contents is now "foogarsh". */ /* Try writing after reading to EOF. */ fp = fopen (TESTFILE, "r+"); if (fp == NULL) return 73; if (fseek (fp, -1, SEEK_END)) { fclose (fp); return 74; } if (!(getc (fp) == 'h')) { fclose (fp); return 1; } if (!(getc (fp) == EOF)) { fclose (fp); return 2; } if (!(ftell (fp) == 8)) { fclose (fp); return 3; } if (!(ftell (fp) == 8)) { fclose (fp); return 4; } if (!(putc ('!', fp) == '!')) { fclose (fp); return 5; } if (!(ftell (fp) == 9)) { fclose (fp); return 6; } if (!(fclose (fp) == 0)) return 7; fp = fopen (TESTFILE, "r"); if (fp == NULL) return 75; { char buf[10]; if (!(fread (buf, 1, 10, fp) == 9)) { fclose (fp); return 10; } if (!(memcmp (buf, "foogarsh!", 9) == 0)) { fclose (fp); return 11; } } if (!(fclose (fp) == 0)) return 12; /* The file's contents is now "foogarsh!". */ return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_ftello_works=yes else $as_nop gl_cv_func_ftello_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 printf "%s\n" "$gl_cv_func_ftello_works" >&6; } case "$gl_cv_func_ftello_works" in *yes) ;; *) REPLACE_FTELLO=1 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h ;; esac fi if test $REPLACE_FTELLO = 0; then if test $gl_ftello_broken_after_ungetc = yes; then REPLACE_FTELLO=1 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h fi fi fi HAVE_STRUCT_ADDRINFO=1; HAVE_DECL_FREEADDRINFO=1; HAVE_DECL_GAI_STRERROR=1; HAVE_DECL_GETADDRINFO=1; HAVE_DECL_GETNAMEINFO=1; REPLACE_GAI_STRERROR=0; REPLACE_GETADDRINFO=0; if test $gl_cv_have_include_next = yes; then gl_cv_next_netdb_h='<'netdb.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_netdb_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_netdb_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'netdb.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_netdb_h gl_cv_next_netdb_h='"'$gl_header'"' else gl_cv_next_netdb_h='<'netdb.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5 printf "%s\n" "$gl_cv_next_netdb_h" >&6; } fi NEXT_NETDB_H=$gl_cv_next_netdb_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'netdb.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_netdb_h fi NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive if test $ac_cv_header_netdb_h = yes; then HAVE_NETDB_H=1 else HAVE_NETDB_H=0 fi HOSTENT_LIB= gl_saved_libs="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 printf %s "checking for library containing gethostbyname... " >&6; } if test ${ac_cv_search_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gethostbyname (); int main (void) { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl network net do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_gethostbyname+y} then : break fi done if test ${ac_cv_search_gethostbyname+y} then : else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_gethostbyname" != "none required"; then HOSTENT_LIB="$ac_cv_search_gethostbyname" fi fi LIBS="$gl_saved_libs" if test -z "$HOSTENT_LIB"; then for ac_func in gethostbyname do : ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes then : printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } if test ${gl_cv_w32_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H #include #endif #include int main (void) { gethostbyname(NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_gethostbyname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } if test "$gl_cv_w32_gethostbyname" = "yes"; then HOSTENT_LIB="-lws2_32" fi fi done fi SERVENT_LIB= gl_saved_libs="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 printf %s "checking for library containing getservbyname... " >&6; } if test ${ac_cv_search_getservbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getservbyname (); int main (void) { return getservbyname (); ; return 0; } _ACEOF for ac_lib in '' socket network net do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getservbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getservbyname+y} then : break fi done if test ${ac_cv_search_getservbyname+y} then : else $as_nop ac_cv_search_getservbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 printf "%s\n" "$ac_cv_search_getservbyname" >&6; } ac_res=$ac_cv_search_getservbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getservbyname" != "none required"; then SERVENT_LIB="$ac_cv_search_getservbyname" fi fi LIBS="$gl_saved_libs" if test -z "$SERVENT_LIB"; then for ac_func in getservbyname do : ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" if test "x$ac_cv_func_getservbyname" = xyes then : printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } if test ${gl_cv_w32_getservbyname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_getservbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H #include #endif #include int main (void) { getservbyname(NULL,NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_getservbyname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } if test "$gl_cv_w32_getservbyname" = "yes"; then SERVENT_LIB="-lws2_32" fi fi done fi HAVE_INET_NTOP=1 INET_NTOP_LIB= if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi if test $HAVE_WINSOCK2_H = 1; then REPLACE_INET_NTOP=1 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_inet_ntop" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = yes; then INET_NTOP_LIB="-lws2_32" else HAVE_DECL_INET_NTOP=0 fi else gl_save_LIBS=$LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 printf %s "checking for library containing inet_ntop... " >&6; } if test ${ac_cv_search_inet_ntop+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char inet_ntop (); int main (void) { return inet_ntop (); ; return 0; } _ACEOF for ac_lib in '' nsl resolv network do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_inet_ntop=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_inet_ntop+y} then : break fi done if test ${ac_cv_search_inet_ntop+y} then : else $as_nop ac_cv_search_inet_ntop=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } ac_res=$ac_cv_search_inet_ntop if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else $as_nop ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" if test "x$ac_cv_func_inet_ntop" = xyes then : printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h fi if test $ac_cv_func_inet_ntop = no; then HAVE_INET_NTOP=0 fi fi LIBS=$gl_save_LIBS if test "$ac_cv_search_inet_ntop" != "no" \ && test "$ac_cv_search_inet_ntop" != "none required"; then INET_NTOP_LIB="$ac_cv_search_inet_ntop" fi ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include #if HAVE_NETDB_H # include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_inet_ntop" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = no; then HAVE_DECL_INET_NTOP=0 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 printf %s "checking for IPv4 sockets... " >&6; } if test ${gl_cv_socket_ipv4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif int main (void) { int x = AF_INET; struct in_addr y; struct sockaddr_in z; if (&x && &y && &z) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_socket_ipv4=yes else $as_nop gl_cv_socket_ipv4=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 printf "%s\n" "$gl_cv_socket_ipv4" >&6; } if test $gl_cv_socket_ipv4 = yes; then printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 printf %s "checking for IPv6 sockets... " >&6; } if test ${gl_cv_socket_ipv6+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif int main (void) { int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_socket_ipv6=yes else $as_nop gl_cv_socket_ipv6=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 printf "%s\n" "$gl_cv_socket_ipv6" >&6; } if test $gl_cv_socket_ipv6 = yes; then printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h fi GL_LIBGL_GNULIB_GETADDRINFO=0 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getdelim" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getline" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h if test $ac_cv_func_getpass = no; then HAVE_GETPASS=0 fi ac_fn_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fflush_unlocked" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_flockfile" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FLOCKFILE $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fputs_unlocked" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_funlockfile" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FUNLOCKFILE $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_putc_unlocked" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h HAVE_GETRANDOM=1; REPLACE_GETRANDOM=0; GL_LIBGL_GNULIB_GETRANDOM=0 : HAVE_GETTIMEOFDAY=1; HAVE_STRUCT_TIMEVAL=1; HAVE_SYS_TIME_H=1; REPLACE_GETTIMEOFDAY=0; REPLACE_STRUCT_TIMEVAL=0; if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_time_h='<'sys/time.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_time_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_time_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/time.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_time_h gl_cv_next_sys_time_h='"'$gl_header'"' else gl_cv_next_sys_time_h='<'sys/time.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; } fi NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/time.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_time_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive if test $ac_cv_header_sys_time_h != yes; then HAVE_SYS_TIME_H=0 fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 printf %s "checking for struct timeval... " >&6; } if test ${gl_cv_sys_struct_timeval+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_SYS_TIME_H #include #endif #include #if HAVE_WINSOCK2_H # include #endif int main (void) { static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timeval=yes else $as_nop gl_cv_sys_struct_timeval=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; } if test $gl_cv_sys_struct_timeval != yes; then HAVE_STRUCT_TIMEVAL=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; } if test ${gl_cv_sys_struct_timeval_tv_sec+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_SYS_TIME_H #include #endif #include #if HAVE_WINSOCK2_H # include #endif int main (void) { static struct timeval x; typedef int verify_tv_sec_type[ sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 ]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_sys_struct_timeval_tv_sec=yes else $as_nop gl_cv_sys_struct_timeval_tv_sec=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; } if test $gl_cv_sys_struct_timeval_tv_sec != yes; then REPLACE_STRUCT_TIMEVAL=1 fi fi GL_LIBGL_GNULIB_GETTIMEOFDAY=0 HAVE_DECL_IMAXABS=1; HAVE_DECL_IMAXDIV=1; HAVE_DECL_STRTOIMAX=1; HAVE_DECL_STRTOUMAX=1; HAVE_IMAXDIV_T=1; REPLACE_STRTOIMAX=0; REPLACE_STRTOUMAX=0; INT32_MAX_LT_INTMAX_MAX=1; INT64_MAX_EQ_LONG_MAX='defined _LP64'; PRIPTR_PREFIX=__PRIPTR_PREFIX; UINT32_MAX_LT_UINTMAX_MAX=1; UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; if test $gl_cv_have_include_next = yes; then gl_cv_next_inttypes_h='<'inttypes.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_inttypes_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_inttypes_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'inttypes.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_inttypes_h gl_cv_next_inttypes_h='"'$gl_header'"' else gl_cv_next_inttypes_h='<'inttypes.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; } fi NEXT_INTTYPES_H=$gl_cv_next_inttypes_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'inttypes.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_inttypes_h fi NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive PRIPTR_PREFIX= if $GL_GENERATE_STDINT_H; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _WIN64 LLP64 #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : PRIPTR_PREFIX='"l"' else $as_nop PRIPTR_PREFIX='"ll"' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else for glpfx in '' l ll I64; do case $glpfx in '') gltype1='int';; l) gltype1='long int';; ll) gltype1='long long int';; I64) gltype1='__int64';; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern intptr_t foo; extern $gltype1 foo; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : PRIPTR_PREFIX='"'$glpfx'"' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test -n "$PRIPTR_PREFIX" && break done fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 printf %s "checking whether INT32_MAX < INTMAX_MAX... " >&6; } if test ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Work also in C++ mode. */ #define __STDC_LIMIT_MACROS 1 /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H #include #if HAVE_STDINT_H #include #endif #if defined INT32_MAX && defined INTMAX_MAX #define CONDITION (INT32_MAX < INTMAX_MAX) #else #define CONDITION (sizeof (int) < sizeof (long long int)) #endif int test[CONDITION ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes else $as_nop gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 printf "%s\n" "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then INT32_MAX_LT_INTMAX_MAX=1; else INT32_MAX_LT_INTMAX_MAX=0; fi if test $APPLE_UNIVERSAL_BUILD = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 printf %s "checking whether INT64_MAX == LONG_MAX... " >&6; } if test ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Work also in C++ mode. */ #define __STDC_LIMIT_MACROS 1 /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H #include #if HAVE_STDINT_H #include #endif #if defined INT64_MAX #define CONDITION (INT64_MAX == LONG_MAX) #else #define CONDITION (sizeof (long long int) == sizeof (long int)) #endif int test[CONDITION ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes else $as_nop gl_cv_test_INT64_MAX_EQ_LONG_MAX=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 printf "%s\n" "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then INT64_MAX_EQ_LONG_MAX=1; else INT64_MAX_EQ_LONG_MAX=0; fi else INT64_MAX_EQ_LONG_MAX=-1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 printf %s "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } if test ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Work also in C++ mode. */ #define __STDC_LIMIT_MACROS 1 /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H #include #if HAVE_STDINT_H #include #endif #if defined UINT32_MAX && defined UINTMAX_MAX #define CONDITION (UINT32_MAX < UINTMAX_MAX) #else #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) #endif int test[CONDITION ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes else $as_nop gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 printf "%s\n" "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then UINT32_MAX_LT_UINTMAX_MAX=1; else UINT32_MAX_LT_UINTMAX_MAX=0; fi if test $APPLE_UNIVERSAL_BUILD = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 printf %s "checking whether UINT64_MAX == ULONG_MAX... " >&6; } if test ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Work also in C++ mode. */ #define __STDC_LIMIT_MACROS 1 /* Work if build is not clean. */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H #include #if HAVE_STDINT_H #include #endif #if defined UINT64_MAX #define CONDITION (UINT64_MAX == ULONG_MAX) #else #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) #endif int test[CONDITION ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes else $as_nop gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 printf "%s\n" "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then UINT64_MAX_EQ_ULONG_MAX=1; else UINT64_MAX_EQ_ULONG_MAX=0; fi else UINT64_MAX_EQ_ULONG_MAX=-1 fi GL_LIBGL_GNULIB_IMAXABS=0 GL_LIBGL_GNULIB_IMAXDIV=0 GL_LIBGL_GNULIB_STRTOIMAX=0 GL_LIBGL_GNULIB_STRTOUMAX=0 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is # irrelevant for anonymous mappings. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" if test "x$ac_cv_func_mmap" = xyes then : gl_have_mmap=yes else $as_nop gl_have_mmap=no fi # Try to allow MAP_ANONYMOUS. gl_have_mmap_anonymous=no if test $gl_have_mmap = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 printf %s "checking for MAP_ANONYMOUS... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef MAP_ANONYMOUS I cannot identify this map #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "I cannot identify this map" >/dev/null 2>&1 then : gl_have_mmap_anonymous=yes fi rm -rf conftest* if test $gl_have_mmap_anonymous != yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef MAP_ANON I cannot identify this map #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "I cannot identify this map" >/dev/null 2>&1 then : printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h gl_have_mmap_anonymous=yes fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 printf "%s\n" "$gl_have_mmap_anonymous" >&6; } if test $gl_have_mmap_anonymous = yes; then printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h fi fi # Detect platform-specific bugs in some versions of glibc: # memchr should not dereference anything with length 0 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 # memchr should not dereference overestimated length after a match # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 # memchr should cast the second argument to 'unsigned char'. # This bug exists in Android 4.3. # Assume that memchr works on platforms that lack mprotect. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 printf %s "checking whether memchr works... " >&6; } if test ${gl_cv_func_memchr_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on Android. linux*-android*) gl_cv_func_memchr_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_memchr_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_SYS_MMAN_H # include # include # include # include # ifndef MAP_FILE # define MAP_FILE 0 # endif #endif int main (void) { int result = 0; char *fence = NULL; #if HAVE_SYS_MMAN_H && HAVE_MPROTECT # if HAVE_MAP_ANONYMOUS const int flags = MAP_ANONYMOUS | MAP_PRIVATE; const int fd = -1; # else /* !HAVE_MAP_ANONYMOUS */ const int flags = MAP_FILE | MAP_PRIVATE; int fd = open ("/dev/zero", O_RDONLY, 0666); if (fd >= 0) # endif { int pagesize = getpagesize (); char *two_pages = (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, flags, fd, 0); if (two_pages != (char *)(-1) && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) fence = two_pages + pagesize; } #endif if (fence) { /* Test against bugs on glibc systems. */ if (memchr (fence, 0, 0)) result |= 1; strcpy (fence - 9, "12345678"); if (memchr (fence - 9, 0, 79) != fence - 1) result |= 2; if (memchr (fence - 1, 0, 3) != fence - 1) result |= 4; /* Test against bug on AIX 7.2. */ if (memchr (fence - 4, '6', 16) != fence - 4) result |= 8; } /* Test against bug on Android 4.3. */ { char input[3]; input[0] = 'a'; input[1] = 'b'; input[2] = 'c'; if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) result |= 16; } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_memchr_works=yes else $as_nop gl_cv_func_memchr_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 printf "%s\n" "$gl_cv_func_memchr_works" >&6; } case "$gl_cv_func_memchr_works" in *yes) ;; *) REPLACE_MEMCHR=1 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 printf %s "checking whether defines MIN and MAX... " >&6; } if test ${gl_cv_minmax_in_limits_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = MIN (42, 17); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_minmax_in_limits_h=yes else $as_nop gl_cv_minmax_in_limits_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; } if test $gl_cv_minmax_in_limits_h = yes; then printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines MIN and MAX" >&5 printf %s "checking whether defines MIN and MAX... " >&6; } if test ${gl_cv_minmax_in_sys_param_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int x = MIN (42, 17); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_minmax_in_sys_param_h=yes else $as_nop gl_cv_minmax_in_sys_param_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; } if test $gl_cv_minmax_in_sys_param_h = yes; then printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5 printf %s "checking whether time_t is signed... " >&6; } if test ${gl_cv_time_t_is_signed+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include char time_t_signed[(time_t) -1 < 0 ? 1 : -1]; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_time_t_is_signed=yes else $as_nop gl_cv_time_t_is_signed=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_t_is_signed" >&5 printf "%s\n" "$gl_cv_time_t_is_signed" >&6; } if test $gl_cv_time_t_is_signed = yes; then printf "%s\n" "#define TIME_T_IS_SIGNED 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_alarm" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 printf %s "checking for working mktime... " >&6; } if test ${gl_cv_func_working_mktime+y} then : printf %s "(cached) " >&6 else $as_nop if test $APPLE_UNIVERSAL_BUILD = 1; then # A universal build on Apple Mac OS X platforms. # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. # But we need a configuration result that is valid in both modes. gl_cv_func_working_mktime="guessing no" else if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_working_mktime="guessing no" ;; *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test program from Paul Eggert and Tony Leneis. */ #include #include #include #ifdef HAVE_UNISTD_H # include #endif #if HAVE_DECL_ALARM # include #endif $gl_mda_defines #ifndef TIME_T_IS_SIGNED # define TIME_T_IS_SIGNED 0 #endif static time_t time_t_max; static time_t time_t_min; /* Values we'll use to set the TZ environment variable. */ static char *tz_strings[] = { (char *) 0, "TZ=GMT0", "TZ=JST-9", "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" }; #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) /* Return 0 if mktime fails to convert a date in the spring-forward gap. Based on a problem report from Andreas Jaeger. */ static int spring_forward_gap () { /* glibc (up to about 1998-10-07) failed this test. */ struct tm tm; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0) return -1; tm.tm_year = 98; tm.tm_mon = 3; tm.tm_mday = 5; tm.tm_hour = 2; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; return mktime (&tm) != (time_t) -1; } static int mktime_test1 (time_t now) { struct tm *lt; return ! (lt = localtime (&now)) || mktime (lt) == now; } static int mktime_test (time_t now) { return (mktime_test1 (now) && mktime_test1 ((time_t) (time_t_max - now)) && mktime_test1 ((time_t) (time_t_min + now))); } static int irix_6_4_bug () { /* Based on code from Ariel Faigon. */ struct tm tm; tm.tm_year = 96; tm.tm_mon = 3; tm.tm_mday = 0; tm.tm_hour = 0; tm.tm_min = 0; tm.tm_sec = 0; tm.tm_isdst = -1; mktime (&tm); return tm.tm_mon == 2 && tm.tm_mday == 31; } static int bigtime_test (int j) { struct tm tm; time_t now; tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; now = mktime (&tm); if (now != (time_t) -1) { struct tm *lt = localtime (&now); if (! (lt && lt->tm_year == tm.tm_year && lt->tm_mon == tm.tm_mon && lt->tm_mday == tm.tm_mday && lt->tm_hour == tm.tm_hour && lt->tm_min == tm.tm_min && lt->tm_sec == tm.tm_sec && lt->tm_yday == tm.tm_yday && lt->tm_wday == tm.tm_wday && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) return 0; } return 1; } static int year_2050_test () { /* The correct answer for 2050-02-01 00:00:00 in Pacific time, ignoring leap seconds. */ unsigned long int answer = 2527315200UL; struct tm tm; time_t t; tm.tm_year = 2050 - 1900; tm.tm_mon = 2 - 1; tm.tm_mday = 1; tm.tm_hour = tm.tm_min = tm.tm_sec = 0; tm.tm_isdst = -1; /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" instead of "TZ=America/Vancouver" in order to detect the bug even on systems that don't support the Olson extension, or don't have the full zoneinfo tables installed. */ if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0) return -1; t = mktime (&tm); /* Check that the result is either a failure, or close enough to the correct answer that we can assume the discrepancy is due to leap seconds. */ return (t == (time_t) -1 || (0 < t && answer - 120 <= t && t <= answer + 120)); } static int indiana_test () { if (putenv ("TZ=America/Indiana/Indianapolis") != 0) return -1; struct tm tm; tm.tm_year = 1986 - 1900; tm.tm_mon = 4 - 1; tm.tm_mday = 28; tm.tm_hour = 16; tm.tm_min = 24; tm.tm_sec = 50; tm.tm_isdst = 0; time_t std = mktime (&tm); if (! (std == 515107490 || std == 515107503)) return 1; /* This platform supports TZDB, either without or with leap seconds. Return true if GNU Bug#48085 is absent. */ tm.tm_isdst = 1; time_t dst = mktime (&tm); return std - dst == 60 * 60; } int main () { int result = 0; time_t t, delta; int i, j; int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; #if HAVE_DECL_ALARM /* This test makes some buggy mktime implementations loop. Give up after 60 seconds; a mktime slower than that isn't worth using anyway. */ signal (SIGALRM, SIG_DFL); alarm (60); #endif time_t_max = (! TIME_T_IS_SIGNED ? (time_t) -1 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) * 2 + 1)); time_t_min = (! TIME_T_IS_SIGNED ? (time_t) 0 : time_t_signed_magnitude ? ~ (time_t) 0 : ~ time_t_max); delta = time_t_max / 997; /* a suitable prime number */ for (i = 0; i < N_STRINGS; i++) { if (tz_strings[i]) putenv (tz_strings[i]); for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta) if (! mktime_test (t)) result |= 1; if ((result & 2) == 0 && ! (mktime_test ((time_t) 1) && mktime_test ((time_t) (60 * 60)) && mktime_test ((time_t) (60 * 60 * 24)))) result |= 2; for (j = 1; (result & 4) == 0; j <<= 1) { if (! bigtime_test (j)) result |= 4; if (INT_MAX / 2 < j) break; } if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) result |= 8; } if (! irix_6_4_bug ()) result |= 16; if (! spring_forward_gap ()) result |= 32; if (! year_2050_test () || ! indiana_test ()) result |= 64; return result; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_working_mktime=yes else $as_nop gl_cv_func_working_mktime=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5 printf "%s\n" "$gl_cv_func_working_mktime" >&6; } GL_LIBGL_GNULIB_CTIME=0 GL_LIBGL_GNULIB_MKTIME=0 GL_LIBGL_GNULIB_LOCALTIME=0 GL_LIBGL_GNULIB_NANOSLEEP=0 GL_LIBGL_GNULIB_STRFTIME=0 GL_LIBGL_GNULIB_STRPTIME=0 GL_LIBGL_GNULIB_TIMEGM=0 GL_LIBGL_GNULIB_TIMESPEC_GET=0 GL_LIBGL_GNULIB_TIMESPEC_GETRES=0 GL_LIBGL_GNULIB_TIME_R=0 GL_LIBGL_GNULIB_TIME_RZ=0 GL_LIBGL_GNULIB_TZSET=0 GL_LIBGL_GNULIB_MDA_TZSET=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } if test ${ac_cv_struct_tm+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_struct_tm=time.h else $as_nop ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 printf "%s\n" "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include #include <$ac_cv_struct_tm> " if test "x$ac_cv_member_struct_tm_tm_zone" = xyes then : printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h fi if test "$ac_cv_member_struct_tm_tm_zone" = yes; then printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h else ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_tzname" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 printf %s "checking for tzname... " >&6; } if test ${ac_cv_var_tzname+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME extern char *tzname[]; #endif int main (void) { return tzname[0][0]; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_var_tzname=yes else $as_nop ac_cv_var_tzname=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 printf "%s\n" "$ac_cv_var_tzname" >&6; } if test $ac_cv_var_tzname = yes; then printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h fi fi ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include " if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes then : printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h fi : ${YACC='bison -o y.tab.c'} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5 printf %s "checking for compound literals... " >&6; } if test ${gl_cv_compound_literals+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct s { int i, j; }; int main (void) { struct s t = (struct s) { 3, 4 }; if (t.i != 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_compound_literals=yes else $as_nop gl_cv_compound_literals=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5 printf "%s\n" "$gl_cv_compound_literals" >&6; } if test $gl_cv_compound_literals = yes; then printf "%s\n" "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h fi if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_REALLOC_FOR_REALLOC_POSIX=1 fi HAVE_PSELECT=1; REPLACE_PSELECT=0; REPLACE_SELECT=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 printf %s "checking whether is self-contained... " >&6; } if test ${gl_cv_header_sys_select_h_selfcontained+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { struct timeval b; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_sys_select_h_selfcontained=yes else $as_nop gl_cv_header_sys_select_h_selfcontained=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $gl_cv_header_sys_select_h_selfcontained = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int memset; int bzero; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #undef memset #define memset nonexistent_memset extern #ifdef __cplusplus "C" #endif void *memset (void *, int, unsigned long); #undef bzero #define bzero nonexistent_bzero extern #ifdef __cplusplus "C" #endif void bzero (void *, unsigned long); fd_set fds; FD_ZERO (&fds); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : else $as_nop gl_cv_header_sys_select_h_selfcontained=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; } if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_select_h='<'sys/select.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_select_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_select_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/select.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_select_h gl_cv_next_sys_select_h='"'$gl_header'"' else gl_cv_next_sys_select_h='<'sys/select.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 printf "%s\n" "$gl_cv_next_sys_select_h" >&6; } fi NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/select.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_select_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive if test $ac_cv_header_sys_select_h = yes; then HAVE_SYS_SELECT_H=1 else HAVE_SYS_SELECT_H=0 fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi LIBSOCKET= if test $HAVE_WINSOCK2_H = 1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5 printf %s "checking for WSAStartup... " >&6; } if test ${gl_cv_func_wsastartup+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H # include #endif int main (void) { WORD wVersionRequested = MAKEWORD(1, 1); WSADATA wsaData; int err = WSAStartup(wVersionRequested, &wsaData); WSACleanup (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_wsastartup=yes else $as_nop gl_cv_func_wsastartup=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 printf "%s\n" "$gl_cv_func_wsastartup" >&6; } if test "$gl_cv_func_wsastartup" = "yes"; then printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h LIBSOCKET='-lws2_32' fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 printf %s "checking for library containing setsockopt... " >&6; } if test ${gl_cv_lib_socket+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_lib_socket= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern #ifdef __cplusplus "C" #endif char setsockopt(); int main (void) { setsockopt(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : else $as_nop gl_save_LIBS="$LIBS" LIBS="$gl_save_LIBS -lsocket" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern #ifdef __cplusplus "C" #endif char setsockopt(); int main (void) { setsockopt(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_lib_socket="-lsocket" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnetwork" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern #ifdef __cplusplus "C" #endif char setsockopt(); int main (void) { setsockopt(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_lib_socket="-lnetwork" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then LIBS="$gl_save_LIBS -lnet" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern #ifdef __cplusplus "C" #endif char setsockopt(); int main (void) { setsockopt(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_lib_socket="-lnet" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi fi LIBS="$gl_save_LIBS" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$gl_cv_lib_socket"; then gl_cv_lib_socket="none needed" fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 printf "%s\n" "$gl_cv_lib_socket" >&6; } if test "$gl_cv_lib_socket" != "none needed"; then LIBSOCKET="$gl_cv_lib_socket" fi fi : GL_LIBGL_GNULIB_PSELECT=0 GL_LIBGL_GNULIB_SELECT=0 ac_fn_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_setenv" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_setenv = no; then HAVE_DECL_SETENV=0 fi ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" if test "x$ac_cv_header_search_h" = xyes then : printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" if test "x$ac_cv_func_tsearch" = xyes then : printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h fi HAVE_POSIX_SIGNALBLOCKING=1; HAVE_PTHREAD_SIGMASK=1; HAVE_RAISE=1; HAVE_SIGSET_T=1; HAVE_SIGINFO_T=1; HAVE_SIGACTION=1; HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; HAVE_SIGHANDLER_T=1; REPLACE_PTHREAD_SIGMASK=0; REPLACE_RAISE=0; ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " #include /* Mingw defines sigset_t not in , but in . */ #include " if test "x$ac_cv_type_sigset_t" = xyes then : printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h gl_cv_type_sigset_t=yes else $as_nop gl_cv_type_sigset_t=no fi if test $gl_cv_type_sigset_t != yes; then HAVE_SIGSET_T=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_signal_h='<'signal.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_signal_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'signal.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_signal_h gl_cv_next_signal_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 printf "%s\n" "$gl_cv_next_signal_h" >&6; } fi NEXT_SIGNAL_H=$gl_cv_next_signal_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'signal.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_signal_h fi NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive # AIX declares sig_atomic_t to already include volatile, and C89 compilers # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " #include " if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes then : else $as_nop HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 fi ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " #include " if test "x$ac_cv_type_sighandler_t" = xyes then : else $as_nop HAVE_SIGHANDLER_T=0 fi GL_LIBGL_GNULIB_PTHREAD_SIGMASK=0 GL_LIBGL_GNULIB_RAISE=0 GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE=0 GL_LIBGL_GNULIB_SIGPROCMASK=0 GL_LIBGL_GNULIB_SIGACTION=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; } if test ${gl_cv_func_snprintf_retval_c99+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on OpenBSD >= 3.9. openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) gl_cv_func_snprintf_retval_c99="guessing no";; openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Solaris >= 2.10. solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; solaris*) gl_cv_func_printf_sizes_c99="guessing no";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_snprintf_retval_c99="guessing no";; netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";; # Guess yes on MSVC, no on mingw. mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _MSC_VER Known #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Known" >/dev/null 2>&1 then : gl_cv_func_snprintf_retval_c99="guessing yes" else $as_nop gl_cv_func_snprintf_retval_c99="guessing no" fi rm -rf conftest* ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif static char buf[100]; int main () { strcpy (buf, "ABCDEF"); if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) return 1; if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) return 2; if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) return 3; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_snprintf_retval_c99=yes else $as_nop gl_cv_func_snprintf_retval_c99=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; } ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_snprintf" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h HAVE_FFS=1; HAVE_STRCASECMP=1; HAVE_DECL_STRNCASECMP=1; ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strdup" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_strings_h='<'strings.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_strings_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_strings_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'strings.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_strings_h gl_cv_next_strings_h='"'$gl_header'"' else gl_cv_next_strings_h='<'strings.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5 printf "%s\n" "$gl_cv_next_strings_h" >&6; } fi NEXT_STRINGS_H=$gl_cv_next_strings_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'strings.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_strings_h fi NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive if test $ac_cv_header_strings_h = yes; then HAVE_STRINGS_H=1 else HAVE_STRINGS_H=0 fi GL_LIBGL_GNULIB_FFS=0 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strndup" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strnlen" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strtok_r" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRTOK_R $ac_have_decl" >>confdefs.h if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_random_h='<'sys/random.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_random_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_random_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/random.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_random_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_random_h gl_cv_next_sys_random_h='"'$gl_header'"' else gl_cv_next_sys_random_h='<'sys/random.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5 printf "%s\n" "$gl_cv_next_sys_random_h" >&6; } fi NEXT_SYS_RANDOM_H=$gl_cv_next_sys_random_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/random.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_random_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H=$gl_next_as_first_directive if test $ac_cv_header_sys_random_h = yes; then HAVE_SYS_RANDOM_H=1 else HAVE_SYS_RANDOM_H=0 fi if test $ac_cv_header_sys_random_h = yes; then UNISTD_H_HAVE_SYS_RANDOM_H=1 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_sys_uio_h='<'sys/uio.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_sys_uio_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_sys_uio_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'sys/uio.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_sys_uio_h gl_cv_next_sys_uio_h='"'$gl_header'"' else gl_cv_next_sys_uio_h='<'sys/uio.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; } fi NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'sys/uio.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_sys_uio_h fi NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive if test $ac_cv_header_sys_uio_h = yes; then HAVE_SYS_UIO_H=1 else HAVE_SYS_UIO_H=0 fi ac_fn_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_unsetenv" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 printf %s "checking for inttypes.h... " >&6; } if test ${gl_cv_header_inttypes_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_inttypes_h=yes else $as_nop gl_cv_header_inttypes_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 printf %s "checking for stdint.h... " >&6; } if test ${gl_cv_header_stdint_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_stdint_h=yes else $as_nop gl_cv_header_stdint_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 printf "%s\n" "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 printf %s "checking for intmax_t... " >&6; } if test ${gt_cv_c_intmax_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif int main (void) { intmax_t x = -1; return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_c_intmax_t=yes else $as_nop gt_cv_c_intmax_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 printf "%s\n" "$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h else printf "%s\n" "#define intmax_t long long" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 printf %s "checking where to find the exponent in a 'double'... " >&6; } if test ${gl_cv_cc_double_expbit0+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined arm || defined __arm || defined __arm__ mixed_endianness #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "mixed_endianness" >/dev/null 2>&1 then : gl_cv_cc_double_expbit0="unknown" else $as_nop : if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 else $as_nop ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO" then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else $as_nop ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes else $as_nop ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; unsigned short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } unsigned short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; unsigned short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main (void) { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_c_bigendian=no else $as_nop ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi : case $ac_cv_c_bigendian in #( yes) gl_cv_cc_double_expbit0="word 0 bit 20";; #( no) gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( universal) printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) gl_cv_cc_double_expbit0="unknown" ;; esac fi rm -rf conftest* else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #define NWORDS \ ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) typedef union { double value; unsigned int word[NWORDS]; } memory_double; static unsigned int ored_words[NWORDS]; static unsigned int anded_words[NWORDS]; static void add_to_ored_words (double x) { memory_double m; size_t i; /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ memset (&m, 0, sizeof (memory_double)); m.value = x; for (i = 0; i < NWORDS; i++) { ored_words[i] |= m.word[i]; anded_words[i] &= m.word[i]; } } int main () { size_t j; FILE *fp = fopen ("conftest.out", "w"); if (fp == NULL) return 1; for (j = 0; j < NWORDS; j++) anded_words[j] = ~ (unsigned int) 0; add_to_ored_words (0.25); add_to_ored_words (0.5); add_to_ored_words (1.0); add_to_ored_words (2.0); add_to_ored_words (4.0); /* Remove bits that are common (e.g. if representation of the first mantissa bit is explicit). */ for (j = 0; j < NWORDS; j++) ored_words[j] &= ~anded_words[j]; /* Now find the nonzero word. */ for (j = 0; j < NWORDS; j++) if (ored_words[j] != 0) break; if (j < NWORDS) { size_t i; for (i = j + 1; i < NWORDS; i++) if (ored_words[i] != 0) { fprintf (fp, "unknown"); return (fclose (fp) != 0); } for (i = 0; ; i++) if ((ored_words[j] >> i) & 1) { fprintf (fp, "word %d bit %d", (int) j, (int) i); return (fclose (fp) != 0); } } fprintf (fp, "unknown"); return (fclose (fp) != 0); } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_cc_double_expbit0=`cat conftest.out` else $as_nop gl_cv_cc_double_expbit0="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.out fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; } case "$gl_cv_cc_double_expbit0" in word*bit*) word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 printf %s "checking whether snprintf truncates the result as in C99... " >&6; } if test ${gl_cv_func_snprintf_truncation_c99+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on musl systems. *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on FreeBSD >= 5. freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Mac OS X >= 10.3. darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on OpenBSD >= 3.9. openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) gl_cv_func_snprintf_truncation_c99="guessing no";; openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Solaris >= 2.6. solaris2.[0-5] | solaris2.[0-5].*) gl_cv_func_snprintf_truncation_c99="guessing no";; solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on AIX >= 4. aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on HP-UX >= 11. hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on IRIX >= 6.5. irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on OSF/1 >= 5. osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on NetBSD >= 3. netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) gl_cv_func_snprintf_truncation_c99="guessing no";; netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on BeOS. beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";; # Guess no on native Windows. mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif static char buf[100]; int main () { strcpy (buf, "ABCDEF"); my_snprintf (buf, 3, "%d %d", 4567, 89); if (memcmp (buf, "45\0DEF", 6) != 0) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_snprintf_truncation_c99=yes else $as_nop gl_cv_func_snprintf_truncation_c99=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; } ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes then : printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" if test "x$ac_cv_func_strnlen" = xyes then : printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" if test "x$ac_cv_func_wcslen" = xyes then : printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen" if test "x$ac_cv_func_wcsnlen" = xyes then : printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" if test "x$ac_cv_func_mbrtowc" = xyes then : printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" if test "x$ac_cv_func_wcrtomb" = xyes then : printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl__snprintf" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h case "$gl_cv_func_snprintf_retval_c99" in *yes) printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h ;; esac case "$gl_cv_func_snprintf_truncation_c99" in *yes) printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h ;; esac HAVE_BTOWC=1; HAVE_MBSINIT=1; HAVE_MBRTOWC=1; HAVE_MBRLEN=1; HAVE_MBSRTOWCS=1; HAVE_MBSNRTOWCS=1; HAVE_WCRTOMB=1; HAVE_WCSRTOMBS=1; HAVE_WCSNRTOMBS=1; HAVE_WMEMCHR=1; HAVE_WMEMCMP=1; HAVE_WMEMCPY=1; HAVE_WMEMMOVE=1; HAVE_WMEMPCPY=1; HAVE_WMEMSET=1; HAVE_WCSLEN=1; HAVE_WCSNLEN=1; HAVE_WCSCPY=1; HAVE_WCPCPY=1; HAVE_WCSNCPY=1; HAVE_WCPNCPY=1; HAVE_WCSCAT=1; HAVE_WCSNCAT=1; HAVE_WCSCMP=1; HAVE_WCSNCMP=1; HAVE_WCSCASECMP=1; HAVE_WCSNCASECMP=1; HAVE_WCSCOLL=1; HAVE_WCSXFRM=1; HAVE_WCSDUP=1; HAVE_WCSCHR=1; HAVE_WCSRCHR=1; HAVE_WCSCSPN=1; HAVE_WCSSPN=1; HAVE_WCSPBRK=1; HAVE_WCSSTR=1; HAVE_WCSTOK=1; HAVE_WCSWIDTH=1; HAVE_WCSFTIME=1; HAVE_DECL_WCTOB=1; HAVE_DECL_WCSDUP=1; HAVE_DECL_WCWIDTH=1; REPLACE_MBSTATE_T=0; REPLACE_BTOWC=0; REPLACE_WCTOB=0; REPLACE_MBSINIT=0; REPLACE_MBRTOWC=0; REPLACE_MBRLEN=0; REPLACE_MBSRTOWCS=0; REPLACE_MBSNRTOWCS=0; REPLACE_WCRTOMB=0; REPLACE_WCSRTOMBS=0; REPLACE_WCSNRTOMBS=0; REPLACE_WCWIDTH=0; REPLACE_WCSWIDTH=0; REPLACE_WCSFTIME=0; REPLACE_WCSTOK=0; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uses 'inline' correctly" >&5 printf %s "checking whether uses 'inline' correctly... " >&6; } if test ${gl_cv_header_wchar_h_correct_inline+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_header_wchar_h_correct_inline=yes case "$host_os" in *-gnu* | gnu*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define wcstod renamed_wcstod #include extern int zero (void); int main () { return zero(); } _ACEOF save_ac_compile="$ac_compile" ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` if echo '#include "conftest.c"' >conftest1.c \ && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define wcstod renamed_wcstod #include int zero (void) { return 0; } _ACEOF ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` if echo '#include "conftest.c"' >conftest2.c \ && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then : else gl_cv_header_wchar_h_correct_inline=no fi fi fi ac_compile="$save_ac_compile" rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } if test $gl_cv_header_wchar_h_correct_inline = no; then as_fn_error $? " cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in C99 mode. You have four options: - Add the flag -fgnu89-inline to CC and reconfigure, or - Fix your include files, using parts of , or - Use a gcc version older than 4.3, or - Don't use the flags -std=c99 or -std=gnu99. Configuration aborted." "$LINENO" 5 fi if test $ac_cv_header_crtdefs_h = yes; then HAVE_CRTDEFS_H=1 else HAVE_CRTDEFS_H=0 fi if test $gl_cv_have_include_next = yes; then gl_cv_next_wchar_h='<'wchar.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_wchar_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_wchar_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'wchar.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_wchar_h gl_cv_next_wchar_h='"'$gl_header'"' else gl_cv_next_wchar_h='<'wchar.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 printf "%s\n" "$gl_cv_next_wchar_h" >&6; } fi NEXT_WCHAR_H=$gl_cv_next_wchar_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'wchar.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_wchar_h fi NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive if test $ac_cv_header_wchar_h = yes; then HAVE_WCHAR_H=1 else HAVE_WCHAR_H=0 fi if test $gt_cv_c_wint_t = yes; then HAVE_WINT_T=1 else HAVE_WINT_T=0 fi ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_wcsdup" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_wcsdup = no; then HAVE_DECL_WCSDUP=0 fi GL_LIBGL_GNULIB_BTOWC=0 GL_LIBGL_GNULIB_WCTOB=0 GL_LIBGL_GNULIB_MBSINIT=0 GL_LIBGL_GNULIB_MBRTOWC=0 GL_LIBGL_GNULIB_MBRLEN=0 GL_LIBGL_GNULIB_MBSRTOWCS=0 GL_LIBGL_GNULIB_MBSNRTOWCS=0 GL_LIBGL_GNULIB_WCRTOMB=0 GL_LIBGL_GNULIB_WCSRTOMBS=0 GL_LIBGL_GNULIB_WCSNRTOMBS=0 GL_LIBGL_GNULIB_WCWIDTH=0 GL_LIBGL_GNULIB_WMEMCHR=0 GL_LIBGL_GNULIB_WMEMCMP=0 GL_LIBGL_GNULIB_WMEMCPY=0 GL_LIBGL_GNULIB_WMEMMOVE=0 GL_LIBGL_GNULIB_WMEMPCPY=0 GL_LIBGL_GNULIB_WMEMSET=0 GL_LIBGL_GNULIB_WCSLEN=0 GL_LIBGL_GNULIB_WCSNLEN=0 GL_LIBGL_GNULIB_WCSCPY=0 GL_LIBGL_GNULIB_WCPCPY=0 GL_LIBGL_GNULIB_WCSNCPY=0 GL_LIBGL_GNULIB_WCPNCPY=0 GL_LIBGL_GNULIB_WCSCAT=0 GL_LIBGL_GNULIB_WCSNCAT=0 GL_LIBGL_GNULIB_WCSCMP=0 GL_LIBGL_GNULIB_WCSNCMP=0 GL_LIBGL_GNULIB_WCSCASECMP=0 GL_LIBGL_GNULIB_WCSNCASECMP=0 GL_LIBGL_GNULIB_WCSCOLL=0 GL_LIBGL_GNULIB_WCSXFRM=0 GL_LIBGL_GNULIB_WCSDUP=0 GL_LIBGL_GNULIB_WCSCHR=0 GL_LIBGL_GNULIB_WCSRCHR=0 GL_LIBGL_GNULIB_WCSCSPN=0 GL_LIBGL_GNULIB_WCSSPN=0 GL_LIBGL_GNULIB_WCSPBRK=0 GL_LIBGL_GNULIB_WCSSTR=0 GL_LIBGL_GNULIB_WCSTOK=0 GL_LIBGL_GNULIB_WCSWIDTH=0 GL_LIBGL_GNULIB_WCSFTIME=0 GL_LIBGL_GNULIB_MDA_WCSDUP=1 if true; then GL_COND_LIBTOOL_TRUE= GL_COND_LIBTOOL_FALSE='#' else GL_COND_LIBTOOL_TRUE='#' GL_COND_LIBTOOL_FALSE= fi gl_cond_libtool=true gl_m4_base='lib/gl/m4' gl_source_base='lib/gl' gl_source_base_prefix= LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` if test $ac_cv_func_alloca_works = no; then : fi # Define an additional variable used in the Makefile substitution. if test $ac_cv_working_alloca_h = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 printf %s "checking for alloca as a compiler built-in... " >&6; } if test ${gl_cv_rpl_alloca+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __GNUC__ || defined _AIX || defined _MSC_VER Need own alloca #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Need own alloca" >/dev/null 2>&1 then : gl_cv_rpl_alloca=yes else $as_nop gl_cv_rpl_alloca=no fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 printf "%s\n" "$gl_cv_rpl_alloca" >&6; } if test $gl_cv_rpl_alloca = yes; then printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h GL_GENERATE_ALLOCA_H=true else GL_GENERATE_ALLOCA_H=false fi else GL_GENERATE_ALLOCA_H=true fi if test $ac_cv_working_alloca_h = yes; then HAVE_ALLOCA_H=1 else HAVE_ALLOCA_H=0 fi case "$GL_GENERATE_ALLOCA_H" in false) ALLOCA_H='' ;; true) if test -z "$ALLOCA_H"; then ALLOCA_H="${gl_source_base_prefix}alloca.h" fi ;; *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_ALLOCA_H; then GL_GENERATE_ALLOCA_H_TRUE= GL_GENERATE_ALLOCA_H_FALSE='#' else GL_GENERATE_ALLOCA_H_TRUE='#' GL_GENERATE_ALLOCA_H_FALSE= fi : if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then GL_GENERATE_ALLOCA_H_TRUE='#' GL_GENERATE_ALLOCA_H_FALSE='#' fi if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_BIND_TRUE= GL_COND_OBJ_BIND_FALSE='#' else GL_COND_OBJ_BIND_TRUE='#' GL_COND_OBJ_BIND_FALSE= fi : if test -z "${GL_COND_OBJ_BIND_TRUE}" && test -z "${GL_COND_OBJ_BIND_FALSE}"; then GL_COND_OBJ_BIND_TRUE='#' GL_COND_OBJ_BIND_FALSE='#' fi GL_LIBGL_GNULIB_BIND=1 printf "%s\n" "#define GNULIB_TEST_BIND 1" >>confdefs.h # See the comments in bison.m4. for ac_header in byteswap.h do : ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" if test "x$ac_cv_header_byteswap_h" = xyes then : printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h GL_GENERATE_BYTESWAP_H=false else $as_nop GL_GENERATE_BYTESWAP_H=true fi done case "$GL_GENERATE_BYTESWAP_H" in false) BYTESWAP_H='' ;; true) if test -z "$BYTESWAP_H"; then BYTESWAP_H="${gl_source_base_prefix}byteswap.h" fi ;; *) echo "*** GL_GENERATE_BYTESWAP_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_BYTESWAP_H; then GL_GENERATE_BYTESWAP_H_TRUE= GL_GENERATE_BYTESWAP_H_FALSE='#' else GL_GENERATE_BYTESWAP_H_TRUE='#' GL_GENERATE_BYTESWAP_H_FALSE= fi : if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then GL_GENERATE_BYTESWAP_H_TRUE='#' GL_GENERATE_BYTESWAP_H_FALSE='#' fi REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX" if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; } if test ${ac_cv_func_calloc_0_nonnull+y} then : printf %s "(cached) " >&6 else $as_nop if test $cross_compiling != yes; then ac_cv_func_calloc_0_nonnull=yes if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { int result = 0; char * volatile p = calloc (0, 0); if (!p) result |= 1; free (p); return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : else $as_nop ac_cv_func_calloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # Guess yes on musl systems. *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # Guess yes on native Windows. mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;; esac fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; } case $ac_cv_func_calloc_0_nonnull in #( *yes) : ;; #( *) : REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;; esac fi if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then libgl_LIBOBJS="$libgl_LIBOBJS calloc.$ac_objext" fi GL_LIBGL_GNULIB_CALLOC_GNU=1 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_CALLOC_FOR_CALLOC_POSIX=1 fi if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then libgl_LIBOBJS="$libgl_LIBOBJS calloc.$ac_objext" fi GL_LIBGL_GNULIB_CALLOC_POSIX=1 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* # programs in the package would end up linked with that potentially-shared # library, inducing unnecessary run-time overhead. LIB_CLOCK_GETTIME= gl_saved_libs=$LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 printf %s "checking for library containing clock_gettime... " >&6; } if test ${ac_cv_search_clock_gettime+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char clock_gettime (); int main (void) { return clock_gettime (); ; return 0; } _ACEOF for ac_lib in '' rt posix4 do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_clock_gettime=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_clock_gettime+y} then : break fi done if test ${ac_cv_search_clock_gettime+y} then : else $as_nop ac_cv_search_clock_gettime=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } ac_res=$ac_cv_search_clock_gettime if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" test "$ac_cv_search_clock_gettime" = "none required" || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime fi ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" if test "x$ac_cv_func_clock_getres" = xyes then : printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" if test "x$ac_cv_func_clock_gettime" = xyes then : printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" if test "x$ac_cv_func_clock_settime" = xyes then : printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h fi LIBS=$gl_saved_libs printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then REPLACE_CLOSE=1 fi if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then REPLACE_CLOSE=1 fi if test $REPLACE_CLOSE = 1; then GL_COND_OBJ_CLOSE_TRUE= GL_COND_OBJ_CLOSE_FALSE='#' else GL_COND_OBJ_CLOSE_TRUE='#' GL_COND_OBJ_CLOSE_FALSE= fi : if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then GL_COND_OBJ_CLOSE_TRUE='#' GL_COND_OBJ_CLOSE_FALSE='#' fi GL_LIBGL_GNULIB_CLOSE=1 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_CONNECT_TRUE= GL_COND_OBJ_CONNECT_FALSE='#' else GL_COND_OBJ_CONNECT_TRUE='#' GL_COND_OBJ_CONNECT_FALSE= fi : if test -z "${GL_COND_OBJ_CONNECT_TRUE}" && test -z "${GL_COND_OBJ_CONNECT_FALSE}"; then GL_COND_OBJ_CONNECT_TRUE='#' GL_COND_OBJ_CONNECT_FALSE='#' fi GL_LIBGL_GNULIB_CONNECT=1 printf "%s\n" "#define GNULIB_TEST_CONNECT 1" >>confdefs.h # Check whether --with-libgcrypt was given. if test ${with_libgcrypt+y} then : withval=$with_libgcrypt; libgcrypt=$withval else $as_nop libgcrypt=no fi if test "$libgcrypt" != no; then # gc-libgcrypt.c will fail on startup if we don't have # version 1.4.4 or later, so test for it early. */ gl_good_gcrypt=no # Check whether --with-libgcrypt-prefix was given. if test ${with_libgcrypt_prefix+y} then : withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" else $as_nop libgcrypt_config_prefix="" fi if test x"${LIBGCRYPT_CONFIG}" = x ; then if test x"${libgcrypt_config_prefix}" != x ; then LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config" fi fi use_gpgrt_config="" if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then if $GPGRT_CONFIG libgcrypt --exists; then LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;} use_gpgrt_config=yes fi fi if test -z "$use_gpgrt_config"; then if test x"${LIBGCRYPT_CONFIG}" = x ; then case "${SYSROOT}" in /*) if test -x "${SYSROOT}/bin/libgcrypt-config" ; then LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config" fi ;; '') ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;} ;; esac fi # Extract the first word of "libgcrypt-config", so it can be a program name with args. set dummy libgcrypt-config; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_LIBGCRYPT_CONFIG+y} then : printf %s "(cached) " >&6 else $as_nop case $LIBGCRYPT_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" ;; esac fi LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG if test -n "$LIBGCRYPT_CONFIG"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi tmp=1.4.4 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` else req_libgcrypt_api=0 min_libgcrypt_version="$tmp" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } ok=no if test "$LIBGCRYPT_CONFIG" != "no" ; then req_major=`echo $min_libgcrypt_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` req_minor=`echo $min_libgcrypt_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` req_micro=`echo $min_libgcrypt_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` if test -z "$use_gpgrt_config"; then libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` else libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion` fi major=`echo $libgcrypt_config_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` minor=`echo $libgcrypt_config_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` micro=`echo $libgcrypt_config_version | \ sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` if test "$major" -gt "$req_major"; then ok=yes else if test "$major" -eq "$req_major"; then if test "$minor" -gt "$req_minor"; then ok=yes else if test "$minor" -eq "$req_minor"; then if test "$micro" -ge "$req_micro"; then ok=yes fi fi fi fi fi fi if test $ok = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi if test $ok = yes; then # If we have a recent libgcrypt, we should also check that the # API is compatible if test "$req_libgcrypt_api" -gt 0 ; then if test -z "$use_gpgrt_config"; then tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` else tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0` fi if test "$tmp" -gt 0 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 printf %s "checking LIBGCRYPT API version... " >&6; } if test "$req_libgcrypt_api" -eq "$tmp" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5 printf "%s\n" "okay" >&6; } else ok=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } fi fi fi fi if test $ok = yes; then LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` gl_good_gcrypt=yes if test -z "$use_gpgrt_config"; then libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` else libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` fi if test x"$libgcrypt_config_host" != xnone ; then if test x"$libgcrypt_config_host" != x"$host" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** *** The config script \"$LIBGCRYPT_CONFIG\" was *** built for $libgcrypt_config_host and thus may not match the *** used host $host. *** You may want to use the configure option --with-libgcrypt-prefix *** to specify a matching config script or use \$SYSROOT. ***" >&5 printf "%s\n" "$as_me: WARNING: *** *** The config script \"$LIBGCRYPT_CONFIG\" was *** built for $libgcrypt_config_host and thus may not match the *** used host $host. *** You may want to use the configure option --with-libgcrypt-prefix *** to specify a matching config script or use \$SYSROOT. ***" >&2;} gpg_config_script_warn="$gpg_config_script_warn libgcrypt" fi fi else LIBGCRYPT_CFLAGS="" LIBGCRYPT_LIBS="" as_fn_error $? "libgcrypt is too old" "$LINENO" 5 fi if test "x$gl_good_gcrypt" != xno; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libgcrypt-prefix was given. if test ${with_libgcrypt_prefix+y} then : withval=$with_libgcrypt_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBGCRYPT= LTLIBGCRYPT= INCGCRYPT= LIBGCRYPT_PREFIX= HAVE_LIBGCRYPT= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='gcrypt gpg-error' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBGCRYPT; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBGCRYPT; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so" else LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a" else LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'gcrypt'; then LIBGCRYPT_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'gcrypt'; then LIBGCRYPT_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'gcrypt'; then LIBGCRYPT_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCGCRYPT; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBGCRYPT; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBGCRYPT; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep" LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep" ;; esac done fi else LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name" LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir" done fi ac_save_CPPFLAGS="$CPPFLAGS" for element in $INCGCRYPT; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5 printf %s "checking for libgcrypt... " >&6; } if test ${ac_cv_libgcrypt+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_LIBS="$LIBS" case " $LIBGCRYPT" in *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;; *) LIBS="$LIBGCRYPT $LIBS" ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_libgcrypt=yes else $as_nop ac_cv_libgcrypt='no' fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5 printf "%s\n" "$ac_cv_libgcrypt" >&6; } if test "$ac_cv_libgcrypt" = yes; then HAVE_LIBGCRYPT=yes printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5 printf %s "checking how to link with libgcrypt... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5 printf "%s\n" "$LIBGCRYPT" >&6; } else HAVE_LIBGCRYPT=no CPPFLAGS="$ac_save_CPPFLAGS" LIBGCRYPT= LTLIBGCRYPT= LIBGCRYPT_PREFIX= fi LIB_CRYPTO="$LIBGCRYPT" else as_fn_error $? "libgcrypt not found" "$LINENO" 5 fi fi if test "$ac_cv_libgcrypt" = yes; then GL_COND_OBJ_GC_LIBGCRYPT_TRUE= GL_COND_OBJ_GC_LIBGCRYPT_FALSE='#' else GL_COND_OBJ_GC_LIBGCRYPT_TRUE='#' GL_COND_OBJ_GC_LIBGCRYPT_FALSE= fi : if test -z "${GL_COND_OBJ_GC_LIBGCRYPT_TRUE}" && test -z "${GL_COND_OBJ_GC_LIBGCRYPT_FALSE}"; then GL_COND_OBJ_GC_LIBGCRYPT_TRUE='#' GL_COND_OBJ_GC_LIBGCRYPT_FALSE='#' fi if test $gl_cond_libtool = false; then gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT" gl_libdeps="$gl_libdeps $LIBGCRYPT" fi printf "%s\n" "#define GNULIB_GC_DES 1" >>confdefs.h if test "$ac_cv_libgcrypt" != yes; then # Check whether --with-openssl was given. if test ${with_openssl+y} then : withval=$with_openssl; else $as_nop with_openssl=$with_openssl_default fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 printf %s "checking whether openssl is GPL compatible... " >&6; } if test ${gl_cv_openssl_gpl_compat+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_openssl_gpl_compat=yes else $as_nop gl_cv_openssl_gpl_compat=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5 printf %s "checking for MD5 in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_MD5+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char MD5 (); int main (void) { return MD5 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_MD5=yes else $as_nop ac_cv_lib_crypto_MD5=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5 printf "%s\n" "$ac_cv_lib_crypto_MD5" >&6; } if test "x$ac_cv_lib_crypto_MD5" = xyes then : for ac_header in openssl/md5.h do : ac_fn_c_check_header_compile "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_md5_h" = xyes then : printf "%s\n" "#define HAVE_OPENSSL_MD5_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto printf "%s\n" "#define HAVE_OPENSSL_MD5 1" >>confdefs.h fi done fi fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for MD5. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi fi printf "%s\n" "#define GNULIB_GC_HMAC_MD5 1" >>confdefs.h if test "$ac_cv_libgcrypt" != yes; then # Check whether --with-openssl was given. if test ${with_openssl+y} then : withval=$with_openssl; else $as_nop with_openssl=$with_openssl_default fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 printf %s "checking whether openssl is GPL compatible... " >&6; } if test ${gl_cv_openssl_gpl_compat+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_openssl_gpl_compat=yes else $as_nop gl_cv_openssl_gpl_compat=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5 printf %s "checking for SHA1 in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_SHA1+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char SHA1 (); int main (void) { return SHA1 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_SHA1=yes else $as_nop ac_cv_lib_crypto_SHA1=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5 printf "%s\n" "$ac_cv_lib_crypto_SHA1" >&6; } if test "x$ac_cv_lib_crypto_SHA1" = xyes then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_compile "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes then : printf "%s\n" "#define HAVE_OPENSSL_SHA_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto printf "%s\n" "#define HAVE_OPENSSL_SHA1 1" >>confdefs.h fi done fi fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for SHA1. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi fi printf "%s\n" "#define GNULIB_GC_HMAC_SHA1 1" >>confdefs.h if test "$ac_cv_libgcrypt" != yes; then : fi printf "%s\n" "#define GNULIB_GC_MD4 1" >>confdefs.h if test "$ac_cv_libgcrypt" != yes; then # Check whether --with-openssl was given. if test ${with_openssl+y} then : withval=$with_openssl; else $as_nop with_openssl=$with_openssl_default fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 printf %s "checking whether openssl is GPL compatible... " >&6; } if test ${gl_cv_openssl_gpl_compat+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_openssl_gpl_compat=yes else $as_nop gl_cv_openssl_gpl_compat=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5 printf %s "checking for MD5 in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_MD5+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char MD5 (); int main (void) { return MD5 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_MD5=yes else $as_nop ac_cv_lib_crypto_MD5=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5 printf "%s\n" "$ac_cv_lib_crypto_MD5" >&6; } if test "x$ac_cv_lib_crypto_MD5" = xyes then : for ac_header in openssl/md5.h do : ac_fn_c_check_header_compile "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_md5_h" = xyes then : printf "%s\n" "#define HAVE_OPENSSL_MD5_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto printf "%s\n" "#define HAVE_OPENSSL_MD5 1" >>confdefs.h fi done fi fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for MD5. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi fi printf "%s\n" "#define GNULIB_GC_MD5 1" >>confdefs.h printf "%s\n" "#define GNULIB_GC_RANDOM 1" >>confdefs.h : # Check whether --with-openssl was given. if test ${with_openssl+y} then : withval=$with_openssl; else $as_nop with_openssl=$with_openssl_default fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 printf %s "checking whether openssl is GPL compatible... " >&6; } if test ${gl_cv_openssl_gpl_compat+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_openssl_gpl_compat=yes else $as_nop gl_cv_openssl_gpl_compat=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5 in -lcrypto" >&5 printf %s "checking for MD5 in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_MD5+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char MD5 (); int main (void) { return MD5 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_MD5=yes else $as_nop ac_cv_lib_crypto_MD5=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5" >&5 printf "%s\n" "$ac_cv_lib_crypto_MD5" >&6; } if test "x$ac_cv_lib_crypto_MD5" = xyes then : for ac_header in openssl/md5.h do : ac_fn_c_check_header_compile "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_md5_h" = xyes then : printf "%s\n" "#define HAVE_OPENSSL_MD5_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto printf "%s\n" "#define HAVE_OPENSSL_MD5 1" >>confdefs.h fi done fi fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for MD5. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi # Check whether --with-openssl was given. if test ${with_openssl+y} then : withval=$with_openssl; else $as_nop with_openssl=$with_openssl_default fi if test "x$with_openssl" != xno; then if test "x$with_openssl" = xauto-gpl-compat; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether openssl is GPL compatible" >&5 printf %s "checking whether openssl is GPL compatible... " >&6; } if test ${gl_cv_openssl_gpl_compat+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if OPENSSL_VERSION_MAJOR < 3 #error "openssl >= version 3 not found" #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_openssl_gpl_compat=yes else $as_nop gl_cv_openssl_gpl_compat=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_openssl_gpl_compat" >&5 printf "%s\n" "$gl_cv_openssl_gpl_compat" >&6; } fi if test "x$with_openssl" != xauto-gpl-compat || test "x$gl_cv_openssl_gpl_compat" = xyes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5 printf %s "checking for SHA1 in -lcrypto... " >&6; } if test ${ac_cv_lib_crypto_SHA1+y} then : printf %s "(cached) " >&6 else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char SHA1 (); int main (void) { return SHA1 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_crypto_SHA1=yes else $as_nop ac_cv_lib_crypto_SHA1=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5 printf "%s\n" "$ac_cv_lib_crypto_SHA1" >&6; } if test "x$ac_cv_lib_crypto_SHA1" = xyes then : for ac_header in openssl/sha.h do : ac_fn_c_check_header_compile "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" if test "x$ac_cv_header_openssl_sha_h" = xyes then : printf "%s\n" "#define HAVE_OPENSSL_SHA_H 1" >>confdefs.h LIB_CRYPTO=-lcrypto printf "%s\n" "#define HAVE_OPENSSL_SHA1 1" >>confdefs.h fi done fi fi if test "x$LIB_CRYPTO" = x; then message='openssl development library not found for SHA1. If you want to install it, first find the pre-built package name: - On Debian and Debian-based systems: libssl-dev, - On Red Hat distributions: openssl-devel. - Other: https://repology.org/project/openssl/versions' if test "x$with_openssl" = xyes; then as_fn_error $? "$message" "$LINENO" 5 elif test "x$with_openssl" = xoptional; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $message" >&5 printf "%s\n" "$as_me: WARNING: $message" >&2;} fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 printf %s "checking whether dup2 works... " >&6; } if test ${gl_cv_func_dup2_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in mingw*) # on this platform, dup2 always returns 0 for success gl_cv_func_dup2_works="guessing no" ;; cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 gl_cv_func_dup2_works="guessing no" ;; aix* | freebsd*) # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, # not EBADF. gl_cv_func_dup2_works="guessing no" ;; haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. gl_cv_func_dup2_works="guessing no" ;; *-android*) # implemented using dup3(), which fails if oldfd == newfd gl_cv_func_dup2_works="guessing no" ;; os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. gl_cv_func_dup2_works="guessing no" ;; *) gl_cv_func_dup2_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include $gl_mda_defines #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif int main (void) { int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; #ifdef FD_CLOEXEC if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) result |= 1; #endif if (dup2 (1, 1) != 1) result |= 2; #ifdef FD_CLOEXEC if (fcntl (1, F_GETFD) != FD_CLOEXEC) result |= 4; #endif close (0); if (dup2 (0, 0) != -1) result |= 8; /* Many gnulib modules require POSIX conformance of EBADF. */ if (dup2 (2, bad_fd) == -1 && errno != EBADF) result |= 16; /* Flush out some cygwin core dumps. */ if (dup2 (2, -1) != -1 || errno != EBADF) result |= 32; dup2 (2, 255); dup2 (2, 256); /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ { int fd = open (".", O_RDONLY); if (fd == -1) result |= 64; else if (dup2 (fd, fd + 1) == -1) result |= 128; close (fd); } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_dup2_works=yes else $as_nop gl_cv_func_dup2_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 printf "%s\n" "$gl_cv_func_dup2_works" >&6; } case "$gl_cv_func_dup2_works" in *yes) ;; *) REPLACE_DUP2=1 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" if test "x$ac_cv_func_setdtablesize" = xyes then : printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h fi ;; esac if test $REPLACE_DUP2 = 1; then GL_COND_OBJ_DUP2_TRUE= GL_COND_OBJ_DUP2_FALSE='#' else GL_COND_OBJ_DUP2_TRUE='#' GL_COND_OBJ_DUP2_FALSE= fi : if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then GL_COND_OBJ_DUP2_TRUE='#' GL_COND_OBJ_DUP2_FALSE='#' fi if test -z "$GL_COND_OBJ_DUP2_TRUE"; then : fi GL_LIBGL_GNULIB_DUP2=1 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h GL_LIBGL_GNULIB_ENVIRON=1 printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h case "$GL_GENERATE_ERRNO_H" in false) ERRNO_H='' ;; true) if test -z "$ERRNO_H"; then ERRNO_H="${gl_source_base_prefix}errno.h" fi ;; *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_ERRNO_H; then GL_GENERATE_ERRNO_H_TRUE= GL_GENERATE_ERRNO_H_FALSE='#' else GL_GENERATE_ERRNO_H_TRUE='#' GL_GENERATE_ERRNO_H_FALSE= fi : if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then GL_GENERATE_ERRNO_H_TRUE='#' GL_GENERATE_ERRNO_H_FALSE='#' fi if test $ac_cv_func_explicit_bzero = no; then HAVE_EXPLICIT_BZERO=0 fi if test $HAVE_EXPLICIT_BZERO = 0; then GL_COND_OBJ_EXPLICIT_BZERO_TRUE= GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#' else GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#' GL_COND_OBJ_EXPLICIT_BZERO_FALSE= fi : if test -z "${GL_COND_OBJ_EXPLICIT_BZERO_TRUE}" && test -z "${GL_COND_OBJ_EXPLICIT_BZERO_FALSE}"; then GL_COND_OBJ_EXPLICIT_BZERO_TRUE='#' GL_COND_OBJ_EXPLICIT_BZERO_FALSE='#' fi if test -z "$GL_COND_OBJ_EXPLICIT_BZERO_TRUE"; then : ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" if test "x$ac_cv_func_explicit_memset" = xyes then : printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h fi fi GL_LIBGL_GNULIB_EXPLICIT_BZERO=1 printf "%s\n" "#define GNULIB_TEST_EXPLICIT_BZERO 1" >>confdefs.h if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } if test ${gl_cv_func_fcntl_f_dupfd_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case $host_os in aix* | cygwin* | haiku*) gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include $gl_mda_defines #ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY #endif #ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY #endif int main (void) { int result = 0; int bad_fd = INT_MAX; struct rlimit rlim; if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX && rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur != RLIM_SAVED_MAX && rlim.rlim_cur != RLIM_SAVED_CUR) bad_fd = rlim.rlim_cur; if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; if (errno != EINVAL) result |= 2; if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; if (errno != EINVAL) result |= 8; /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ { int fd; fd = open (".", O_RDONLY); if (fd == -1) result |= 16; else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) result |= 32; close (fd); } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fcntl_f_dupfd_works=yes else $as_nop gl_cv_func_fcntl_f_dupfd_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } case $gl_cv_func_fcntl_f_dupfd_works in *yes) ;; *) if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on NetBSD. netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (int argc, char *argv[]) { if (argc == 1) /* parent process */ { if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) return 1; return execl ("./conftest", "./conftest", "child", NULL); } else /* child process */ return (fcntl (10, F_GETFL) < 0 ? 0 : 42); } _ACEOF if ac_fn_c_try_run "$LINENO" then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __linux__ /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace it to support the semantics on older kernels that failed with EINVAL. */ choke me #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_fcntl_f_dupfd_cloexec=yes else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else $as_nop gl_cv_func_fcntl_f_dupfd_cloexec=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } case "$gl_cv_func_fcntl_f_dupfd_cloexec" in *yes) ;; *) if test $ac_cv_func_fcntl = no; then HAVE_FCNTL=0 else REPLACE_FCNTL=1 fi ;; esac fi if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then GL_COND_OBJ_FCNTL_TRUE= GL_COND_OBJ_FCNTL_FALSE='#' else GL_COND_OBJ_FCNTL_TRUE='#' GL_COND_OBJ_FCNTL_FALSE= fi : if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then GL_COND_OBJ_FCNTL_TRUE='#' GL_COND_OBJ_FCNTL_FALSE='#' fi GL_LIBGL_GNULIB_FCNTL=1 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 printf %s "checking whether fflush works on input streams... " >&6; } if test ${gl_cv_func_fflush_stdin+y} then : printf %s "(cached) " >&6 else $as_nop echo hello world > conftest.txt if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif $gl_mda_defines int main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; int fd; int c; if (f == NULL) return 1; fd = fileno (f); if (fd < 0 || fread (buffer, 1, 5, f) != 5) { fclose (f); return 2; } /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) { fclose (f); return 3; } /* POSIX requires fflush-fseek to set file offset of fd. This fails on BSD systems and on mingw. */ if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 4; } if (lseek (fd, 0, SEEK_CUR) != 5) { fclose (f); return 5; } /* Verify behaviour of fflush after ungetc. See */ /* Verify behaviour of fflush after a backup ungetc. This fails on mingw. */ c = fgetc (f); ungetc (c, f); fflush (f); if (fgetc (f) != c) { fclose (f); return 6; } /* Verify behaviour of fflush after a non-backup ungetc. This fails on glibc 2.8 and on BSD systems. */ c = fgetc (f); ungetc ('@', f); fflush (f); if (fgetc (f) != c) { fclose (f); return 7; } fclose (f); return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fflush_stdin=yes else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm conftest.txt fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in *yes) ;; *) REPLACE_FFLUSH=1 ;; esac if test $REPLACE_FFLUSH = 1; then GL_COND_OBJ_FFLUSH_TRUE= GL_COND_OBJ_FFLUSH_FALSE='#' else GL_COND_OBJ_FFLUSH_TRUE='#' GL_COND_OBJ_FFLUSH_FALSE= fi : if test -z "${GL_COND_OBJ_FFLUSH_TRUE}" && test -z "${GL_COND_OBJ_FFLUSH_FALSE}"; then GL_COND_OBJ_FFLUSH_TRUE='#' GL_COND_OBJ_FFLUSH_FALSE='#' fi if test -z "$GL_COND_OBJ_FFLUSH_TRUE"; then : : fi printf "%s\n" "#define GNULIB_FFLUSH 1" >>confdefs.h GL_LIBGL_GNULIB_FFLUSH=1 printf "%s\n" "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 printf %s "checking for flexible array member... " >&6; } if test ${ac_cv_c_flexmember+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include struct m { struct m *next, **list; char name[]; }; struct s { struct s *p; struct m *m; int n; double d[]; }; int main (void) { int m = getchar (); size_t nbytes = offsetof (struct s, d) + m * sizeof (double); nbytes += sizeof (struct s) - 1; nbytes -= nbytes % sizeof (struct s); struct s *p = malloc (nbytes); p->p = p; p->m = NULL; p->d[0] = 0.0; return p->d != (double *) NULL; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_flexmember=yes else $as_nop ac_cv_c_flexmember=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 printf "%s\n" "$ac_cv_c_flexmember" >&6; } if test $ac_cv_c_flexmember = yes; then printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h else printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h fi GL_GENERATE_FLOAT_H=false REPLACE_FLOAT_LDBL=0 case "$host_os" in aix* | beos* | openbsd* | mirbsd* | irix*) GL_GENERATE_FLOAT_H=true ;; freebsd* | dragonfly*) case "$host_cpu" in i[34567]86 ) GL_GENERATE_FLOAT_H=true ;; x86_64 ) # On x86_64 systems, the C compiler may still be generating # 32-bit code. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ || defined __x86_64__ || defined __amd64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : else $as_nop GL_GENERATE_FLOAT_H=true fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac ;; linux*) case "$host_cpu" in powerpc*) GL_GENERATE_FLOAT_H=true ;; esac ;; esac case "$host_os" in aix* | freebsd* | dragonfly* | linux*) if $GL_GENERATE_FLOAT_H; then REPLACE_FLOAT_LDBL=1 fi ;; esac REPLACE_ITOLD=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; } if test ${gl_cv_func_itold_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host" in sparc*-*-linux*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __LP64__ || defined __arch64__ int ok; #else error fail #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_itold_works="guessing no" else $as_nop gl_cv_func_itold_works="guessing yes" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; # Guess yes on native Windows. mingw*) gl_cv_func_itold_works="guessing yes" ;; *) gl_cv_func_itold_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int i = -1; volatile long double ld; int main () { ld += i * 1.0L; if (ld > 0) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_itold_works=yes else $as_nop gl_cv_func_itold_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 printf "%s\n" "$gl_cv_func_itold_works" >&6; } case "$gl_cv_func_itold_works" in *no) REPLACE_ITOLD=1 GL_GENERATE_FLOAT_H=true ;; esac if $GL_GENERATE_FLOAT_H; then if test $gl_cv_have_include_next = yes; then gl_cv_next_float_h='<'float.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_float_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'float.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_float_h gl_cv_next_float_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 printf "%s\n" "$gl_cv_next_float_h" >&6; } fi NEXT_FLOAT_H=$gl_cv_next_float_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'float.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_float_h fi NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive fi case "$GL_GENERATE_FLOAT_H" in false) FLOAT_H='' ;; true) if test -z "$FLOAT_H"; then FLOAT_H="${gl_source_base_prefix}float.h" fi ;; *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_FLOAT_H; then GL_GENERATE_FLOAT_H_TRUE= GL_GENERATE_FLOAT_H_FALSE='#' else GL_GENERATE_FLOAT_H_TRUE='#' GL_GENERATE_FLOAT_H_FALSE= fi : if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then GL_GENERATE_FLOAT_H_TRUE='#' GL_GENERATE_FLOAT_H_FALSE='#' fi if test $REPLACE_FLOAT_LDBL = 1; then GL_COND_OBJ_FLOAT_TRUE= GL_COND_OBJ_FLOAT_FALSE='#' else GL_COND_OBJ_FLOAT_TRUE='#' GL_COND_OBJ_FLOAT_FALSE= fi : if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then GL_COND_OBJ_FLOAT_TRUE='#' GL_COND_OBJ_FLOAT_FALSE='#' fi if test $REPLACE_ITOLD = 1; then GL_COND_OBJ_ITOLD_TRUE= GL_COND_OBJ_ITOLD_FALSE='#' else GL_COND_OBJ_ITOLD_TRUE='#' GL_COND_OBJ_ITOLD_FALSE= fi : if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then GL_COND_OBJ_ITOLD_TRUE='#' GL_COND_OBJ_ITOLD_FALSE='#' fi case "$host_os" in mingw* | pw*) REPLACE_FOPEN=1 gl_cv_func_fopen_slash="guessing no" ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 printf %s "checking whether fopen recognizes a trailing slash... " >&6; } if test ${gl_cv_func_fopen_slash+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) gl_cv_func_fopen_slash="guessing no" ;; *) gl_cv_func_fopen_slash="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { FILE *fp = fopen ("conftest.sl/", "w"); int result = (fp != NULL); if (fp != NULL) fclose (fp); return result; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fopen_slash=yes else $as_nop gl_cv_func_fopen_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.sl fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 printf "%s\n" "$gl_cv_func_fopen_slash" >&6; } ;; esac case "$gl_cv_func_fopen_slash" in *no) printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h REPLACE_FOPEN=1 ;; esac if test $REPLACE_FOPEN = 1; then libgl_LIBOBJS="$libgl_LIBOBJS fopen.$ac_objext" : fi GL_LIBGL_GNULIB_FOPEN=1 printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5 printf %s "checking whether fopen supports the mode character 'x'... " >&6; } if test ${gl_cv_func_fopen_mode_x+y} then : printf %s "(cached) " >&6 else $as_nop rm -f conftest.x if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) gl_cv_func_fopen_mode_x="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { FILE *fp; fp = fopen ("conftest.x", "w"); fclose (fp); fp = fopen ("conftest.x", "wx"); if (fp != NULL) /* 'x' ignored */ return 1; else if (errno == EEXIST) return 0; else /* 'x' rejected */ return 2; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fopen_mode_x=yes else $as_nop gl_cv_func_fopen_mode_x=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.x fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5 printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5 printf %s "checking whether fopen supports the mode character 'e'... " >&6; } if test ${gl_cv_func_fopen_mode_e+y} then : printf %s "(cached) " >&6 else $as_nop echo foo > conftest.x if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc and musl systems. linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) gl_cv_func_fopen_mode_e="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_fopen_mode_e="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include $gl_mda_defines int main () { FILE *fp = fopen ("conftest.x", "re"); if (fp != NULL) { if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC) return 0; else /* 'e' ignored */ return 1; } else /* 'e' rejected */ return 2; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fopen_mode_e=yes else $as_nop gl_cv_func_fopen_mode_e=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.x fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5 printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; } REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN" case "$gl_cv_func_fopen_mode_x" in *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; esac case "$gl_cv_func_fopen_mode_e" in *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;; esac if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then libgl_LIBOBJS="$libgl_LIBOBJS fopen.$ac_objext" : fi printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h GL_LIBGL_GNULIB_FOPEN_GNU=1 printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h ac_fn_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_fpurge" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h if test "x$ac_cv_func_fpurge" = xyes; then HAVE_FPURGE=1 # Detect BSD bug. Only cygwin 1.7 and musl are known to be immune. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5 printf %s "checking whether fpurge works... " >&6; } if test ${gl_cv_func_fpurge_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on musl systems. *-musl*) gl_cv_func_fpurge_works="guessing yes" ;; # Otherwise obey --enable-cross-guesses. *) gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { FILE *f = fopen ("conftest.txt", "w+"); if (!f) return 1; if (fputc ('a', f) != 'a') { fclose (f); return 2; } rewind (f); if (fgetc (f) != 'a') { fclose (f); return 3; } if (fgetc (f) != EOF) { fclose (f); return 4; } if (fpurge (f) != 0) { fclose (f); return 5; } if (putc ('b', f) != 'b') { fclose (f); return 6; } if (fclose (f) != 0) return 7; if ((f = fopen ("conftest.txt", "r")) == NULL) return 8; if (fgetc (f) != 'a') { fclose (f); return 9; } if (fgetc (f) != 'b') { fclose (f); return 10; } if (fgetc (f) != EOF) { fclose (f); return 11; } if (fclose (f) != 0) return 12; if (remove ("conftest.txt") != 0) return 13; return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fpurge_works=yes else $as_nop gl_cv_func_fpurge_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5 printf "%s\n" "$gl_cv_func_fpurge_works" >&6; } case "$gl_cv_func_fpurge_works" in *yes) ;; *) REPLACE_FPURGE=1 ;; esac else HAVE_FPURGE=0 fi if test "x$ac_cv_have_decl_fpurge" = xno; then HAVE_DECL_FPURGE=0 fi if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then GL_COND_OBJ_FPURGE_TRUE= GL_COND_OBJ_FPURGE_FALSE='#' else GL_COND_OBJ_FPURGE_TRUE='#' GL_COND_OBJ_FPURGE_FALSE= fi : if test -z "${GL_COND_OBJ_FPURGE_TRUE}" && test -z "${GL_COND_OBJ_FPURGE_FALSE}"; then GL_COND_OBJ_FPURGE_TRUE='#' GL_COND_OBJ_FPURGE_FALSE='#' fi GL_LIBGL_GNULIB_FPURGE=1 printf "%s\n" "#define GNULIB_TEST_FPURGE 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5 printf %s "checking whether free is known to preserve errno... " >&6; } if test ${gl_cv_func_free_preserves_errno+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__) #elif defined __OpenBSD__ #elif defined __sun #else #error "'free' is not known to preserve errno" #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_free_preserves_errno=yes else $as_nop gl_cv_func_free_preserves_errno=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; } case $gl_cv_func_free_preserves_errno in *yes) printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h ;; *) REPLACE_FREE=1 ;; esac if test $REPLACE_FREE = 1; then GL_COND_OBJ_FREE_TRUE= GL_COND_OBJ_FREE_FALSE='#' else GL_COND_OBJ_FREE_TRUE='#' GL_COND_OBJ_FREE_FALSE= fi : if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then GL_COND_OBJ_FREE_TRUE='#' GL_COND_OBJ_FREE_FALSE='#' fi if test -z "$GL_COND_OBJ_FREE_TRUE"; then : : fi GL_LIBGL_GNULIB_FREE_POSIX=1 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then REPLACE_FSEEK=1 fi if test $REPLACE_FSEEK = 1; then GL_COND_OBJ_FSEEK_TRUE= GL_COND_OBJ_FSEEK_FALSE='#' else GL_COND_OBJ_FSEEK_TRUE='#' GL_COND_OBJ_FSEEK_FALSE= fi : if test -z "${GL_COND_OBJ_FSEEK_TRUE}" && test -z "${GL_COND_OBJ_FSEEK_FALSE}"; then GL_COND_OBJ_FSEEK_TRUE='#' GL_COND_OBJ_FSEEK_FALSE='#' fi GL_LIBGL_GNULIB_FSEEK=1 printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 printf %s "checking for fseeko... " >&6; } if test ${gl_cv_func_fseeko+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { fseeko (stdin, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_fseeko=yes else $as_nop gl_cv_func_fseeko=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 printf "%s\n" "$gl_cv_func_fseeko" >&6; } if test $ac_cv_have_decl_fseeko = no; then HAVE_DECL_FSEEKO=0 fi if test $gl_cv_func_fseeko = no; then HAVE_FSEEKO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FSEEKO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FSEEKO=1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5 printf %s "checking whether fflush works on input streams... " >&6; } if test ${gl_cv_func_fflush_stdin+y} then : printf %s "(cached) " >&6 else $as_nop echo hello world > conftest.txt if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on native Windows. mingw*) gl_cv_func_fflush_stdin="guessing no" ;; *) gl_cv_func_fflush_stdin=cross ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif $gl_mda_defines int main (void) { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; int fd; int c; if (f == NULL) return 1; fd = fileno (f); if (fd < 0 || fread (buffer, 1, 5, f) != 5) { fclose (f); return 2; } /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) { fclose (f); return 3; } /* POSIX requires fflush-fseek to set file offset of fd. This fails on BSD systems and on mingw. */ if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 4; } if (lseek (fd, 0, SEEK_CUR) != 5) { fclose (f); return 5; } /* Verify behaviour of fflush after ungetc. See */ /* Verify behaviour of fflush after a backup ungetc. This fails on mingw. */ c = fgetc (f); ungetc (c, f); fflush (f); if (fgetc (f) != c) { fclose (f); return 6; } /* Verify behaviour of fflush after a non-backup ungetc. This fails on glibc 2.8 and on BSD systems. */ c = fgetc (f); ungetc ('@', f); fflush (f); if (fgetc (f) != c) { fclose (f); return 7; } fclose (f); return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_fflush_stdin=yes else $as_nop gl_cv_func_fflush_stdin=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm conftest.txt fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; } case "$gl_cv_func_fflush_stdin" in *yes) gl_func_fflush_stdin=1 ;; *no) gl_func_fflush_stdin=0 ;; *) gl_func_fflush_stdin='(-1)' ;; esac printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h case "$gl_cv_func_fflush_stdin" in *yes) ;; *) REPLACE_FSEEKO=1 ;; esac fi if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then GL_COND_OBJ_FSEEKO_TRUE= GL_COND_OBJ_FSEEKO_FALSE='#' else GL_COND_OBJ_FSEEKO_TRUE='#' GL_COND_OBJ_FSEEKO_FALSE= fi : if test -z "${GL_COND_OBJ_FSEEKO_TRUE}" && test -z "${GL_COND_OBJ_FSEEKO_FALSE}"; then GL_COND_OBJ_FSEEKO_TRUE='#' GL_COND_OBJ_FSEEKO_FALSE='#' fi if test -z "$GL_COND_OBJ_FSEEKO_TRUE"; then : ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" if test "x$ac_cv_func__fseeki64" = xyes then : printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h fi if test $ac_cv_func__fseeki64 = yes; then ac_fn_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl__fseeki64" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h fi fi GL_LIBGL_GNULIB_FSEEKO=1 printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h case "$host_os" in mingw* | solaris*) REPLACE_FSTAT=1 ;; esac if test $REPLACE_FSTAT = 1; then GL_COND_OBJ_FSTAT_TRUE= GL_COND_OBJ_FSTAT_FALSE='#' else GL_COND_OBJ_FSTAT_TRUE='#' GL_COND_OBJ_FSTAT_FALSE= fi : if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then GL_COND_OBJ_FSTAT_TRUE='#' GL_COND_OBJ_FSTAT_FALSE='#' fi if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then : case "$host_os" in mingw*) libgl_LIBOBJS="$libgl_LIBOBJS stat-w32.$ac_objext" ;; esac : fi GL_LIBGL_GNULIB_FSTAT=1 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then REPLACE_FTELL=1 fi if test $REPLACE_FTELL = 1; then GL_COND_OBJ_FTELL_TRUE= GL_COND_OBJ_FTELL_FALSE='#' else GL_COND_OBJ_FTELL_TRUE='#' GL_COND_OBJ_FTELL_FALSE= fi : if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then GL_COND_OBJ_FTELL_TRUE='#' GL_COND_OBJ_FTELL_FALSE='#' fi GL_LIBGL_GNULIB_FTELL=1 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h if test $ac_cv_have_decl_ftello = no; then HAVE_DECL_FTELLO=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5 printf %s "checking for ftello... " >&6; } if test ${gl_cv_func_ftello+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ftello (stdin); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_ftello=yes else $as_nop gl_cv_func_ftello=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5 printf "%s\n" "$gl_cv_func_ftello" >&6; } if test $gl_cv_func_ftello = no; then HAVE_FTELLO=0 else if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_FTELLO=1 fi if test $gl_cv_var_stdin_large_offset = no; then REPLACE_FTELLO=1 fi if test $REPLACE_FTELLO = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5 printf %s "checking whether ftello works... " >&6; } if test ${gl_cv_func_ftello_works+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in # Guess no on Solaris. solaris*) gl_cv_func_ftello_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_ftello_works="guessing yes" ;; # Guess yes otherwise. *) gl_cv_func_ftello_works="guessing yes" ;; esac if test "$cross_compiling" = yes then : : else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #define TESTFILE "conftest.tmp" int main (void) { FILE *fp; /* Create a file with some contents. */ fp = fopen (TESTFILE, "w"); if (fp == NULL) return 70; if (fwrite ("foogarsh", 1, 8, fp) < 8) { fclose (fp); return 71; } if (fclose (fp)) return 72; /* The file's contents is now "foogarsh". */ /* Try writing after reading to EOF. */ fp = fopen (TESTFILE, "r+"); if (fp == NULL) return 73; if (fseek (fp, -1, SEEK_END)) { fclose (fp); return 74; } if (!(getc (fp) == 'h')) { fclose (fp); return 1; } if (!(getc (fp) == EOF)) { fclose (fp); return 2; } if (!(ftell (fp) == 8)) { fclose (fp); return 3; } if (!(ftell (fp) == 8)) { fclose (fp); return 4; } if (!(putc ('!', fp) == '!')) { fclose (fp); return 5; } if (!(ftell (fp) == 9)) { fclose (fp); return 6; } if (!(fclose (fp) == 0)) return 7; fp = fopen (TESTFILE, "r"); if (fp == NULL) return 75; { char buf[10]; if (!(fread (buf, 1, 10, fp) == 9)) { fclose (fp); return 10; } if (!(memcmp (buf, "foogarsh!", 9) == 0)) { fclose (fp); return 11; } } if (!(fclose (fp) == 0)) return 12; /* The file's contents is now "foogarsh!". */ return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_ftello_works=yes else $as_nop gl_cv_func_ftello_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5 printf "%s\n" "$gl_cv_func_ftello_works" >&6; } case "$gl_cv_func_ftello_works" in *yes) ;; *) REPLACE_FTELLO=1 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h ;; esac fi if test $REPLACE_FTELLO = 0; then if test $gl_ftello_broken_after_ungetc = yes; then REPLACE_FTELLO=1 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h fi fi fi if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then GL_COND_OBJ_FTELLO_TRUE= GL_COND_OBJ_FTELLO_FALSE='#' else GL_COND_OBJ_FTELLO_TRUE='#' GL_COND_OBJ_FTELLO_FALSE= fi : if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then GL_COND_OBJ_FTELLO_TRUE='#' GL_COND_OBJ_FTELLO_FALSE='#' fi if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then : ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64" if test "x$ac_cv_func__ftelli64" = xyes then : printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h fi fi GL_LIBGL_GNULIB_FTELLO=1 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h GETADDRINFO_LIB= gai_saved_LIBS="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 printf %s "checking for library containing getaddrinfo... " >&6; } if test ${ac_cv_search_getaddrinfo+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getaddrinfo (); int main (void) { return getaddrinfo (); ; return 0; } _ACEOF for ac_lib in '' socket network net do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getaddrinfo=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getaddrinfo+y} then : break fi done if test ${ac_cv_search_getaddrinfo+y} then : else $as_nop ac_cv_search_getaddrinfo=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } ac_res=$ac_cv_search_getaddrinfo if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getaddrinfo" != "none required"; then GETADDRINFO_LIB="$ac_cv_search_getaddrinfo" fi fi LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" HAVE_GETADDRINFO=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 printf %s "checking for getaddrinfo... " >&6; } if test ${gl_cv_func_getaddrinfo+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include int main (void) { getaddrinfo("", "", NULL, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_getaddrinfo=yes else $as_nop gl_cv_func_getaddrinfo=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5 printf "%s\n" "$gl_cv_func_getaddrinfo" >&6; } if test $gl_cv_func_getaddrinfo = no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5 printf %s "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; } if test ${gl_cv_w32_getaddrinfo+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_getaddrinfo=no am_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WS2TCPIP_H #include #endif #include int main (void) { getaddrinfo(NULL, NULL, NULL, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_getaddrinfo=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5 printf "%s\n" "$gl_cv_w32_getaddrinfo" >&6; } if test "$gl_cv_w32_getaddrinfo" = "yes"; then GETADDRINFO_LIB="-lws2_32" LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo with POSIX signature" >&5 printf %s "checking for getaddrinfo with POSIX signature... " >&6; } if test ${gl_cv_func_getaddrinfo_posix_signature+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include extern #ifdef __cplusplus "C" #endif int getaddrinfo (const char *, const char *, const struct addrinfo *, struct addrinfo **); _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_getaddrinfo_posix_signature=yes else $as_nop gl_cv_func_getaddrinfo_posix_signature=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo_posix_signature" >&5 printf "%s\n" "$gl_cv_func_getaddrinfo_posix_signature" >&6; } if test $gl_cv_func_getaddrinfo_posix_signature = no; then REPLACE_GETADDRINFO=1 fi else HAVE_GETADDRINFO=0 fi fi printf "%s\n" "#define HAVE_GETADDRINFO $HAVE_GETADDRINFO" >>confdefs.h # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an # inline function declared in ws2tcpip.h, so we need to get that # header included somehow. ac_fn_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" " #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_gai_strerror" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GAI_STRERROR $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_gai_strerror = yes; then ac_fn_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" " #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_gai_strerrorA" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GAI_STRERRORA $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5 printf %s "checking for gai_strerror with POSIX signature... " >&6; } if test ${gl_cv_func_gai_strerror_posix_signature+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif #include extern #ifdef __cplusplus "C" #endif const char *gai_strerror(int); _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_gai_strerror_posix_signature=yes else $as_nop gl_cv_func_gai_strerror_posix_signature=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5 printf "%s\n" "$gl_cv_func_gai_strerror_posix_signature" >&6; } if test $gl_cv_func_gai_strerror_posix_signature = no; then REPLACE_GAI_STRERROR=1 fi fi LIBS="$gai_saved_LIBS" ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include #include " if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes then : printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getaddrinfo" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETADDRINFO $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_freeaddrinfo" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_FREEADDRINFO $ac_have_decl" >>confdefs.h ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" " /* sys/types.h is not needed according to POSIX, but the sys/socket.h in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getnameinfo" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETNAMEINFO $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_getaddrinfo = no; then HAVE_DECL_GETADDRINFO=0 fi if test $ac_cv_have_decl_freeaddrinfo = no; then HAVE_DECL_FREEADDRINFO=0 fi if test $ac_cv_have_decl_gai_strerror = no; then HAVE_DECL_GAI_STRERROR=0 fi if test $ac_cv_have_decl_getnameinfo = no; then HAVE_DECL_GETNAMEINFO=0 fi ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" " #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif " if test "x$ac_cv_type_struct_addrinfo" = xyes then : printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h fi if test $ac_cv_type_struct_addrinfo = no; then HAVE_STRUCT_ADDRINFO=0 fi case " $GETADDRINFO_LIB " in *" $HOSTENT_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;; esac case " $GETADDRINFO_LIB " in *" $SERVENT_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;; esac case " $GETADDRINFO_LIB " in *" $INET_NTOP_LIB "*) ;; *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;; esac if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then GL_COND_OBJ_GETADDRINFO_TRUE= GL_COND_OBJ_GETADDRINFO_FALSE='#' else GL_COND_OBJ_GETADDRINFO_TRUE='#' GL_COND_OBJ_GETADDRINFO_FALSE= fi : if test -z "${GL_COND_OBJ_GETADDRINFO_TRUE}" && test -z "${GL_COND_OBJ_GETADDRINFO_FALSE}"; then GL_COND_OBJ_GETADDRINFO_TRUE='#' GL_COND_OBJ_GETADDRINFO_FALSE='#' fi if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then GL_COND_OBJ_GAI_STRERROR_TRUE= GL_COND_OBJ_GAI_STRERROR_FALSE='#' else GL_COND_OBJ_GAI_STRERROR_TRUE='#' GL_COND_OBJ_GAI_STRERROR_FALSE= fi : if test -z "${GL_COND_OBJ_GAI_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_GAI_STRERROR_FALSE}"; then GL_COND_OBJ_GAI_STRERROR_TRUE='#' GL_COND_OBJ_GAI_STRERROR_FALSE='#' fi GL_LIBGL_GNULIB_GETADDRINFO=1 printf "%s\n" "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h if test $ac_cv_func_getdelim = yes; then HAVE_GETDELIM=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 printf %s "checking for working getdelim function... " >&6; } if test ${gl_cv_func_working_getdelim+y} then : printf %s "(cached) " >&6 else $as_nop echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data if test "$cross_compiling" = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1 then : gl_cv_func_working_getdelim="guessing yes" else $as_nop case "$host_os" in *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; esac fi rm -rf conftest* else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # include # include # include int main () { FILE *in = fopen ("./conftest.data", "r"); if (!in) return 1; { /* Test result for a NULL buffer and a zero size. Based on a test program from Karl Heuer. */ char *line = NULL; size_t siz = 0; int len = getdelim (&line, &siz, '\n', in); if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) { free (line); fclose (in); return 2; } free (line); } { /* Test result for a NULL buffer and a non-zero size. This crashes on FreeBSD 8.0. */ char *line = NULL; size_t siz = (size_t)(~0) / 4; if (getdelim (&line, &siz, '\n', in) == -1) { fclose (in); return 3; } free (line); } fclose (in); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_working_getdelim=yes else $as_nop gl_cv_func_working_getdelim=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 printf "%s\n" "$gl_cv_func_working_getdelim" >&6; } case "$gl_cv_func_working_getdelim" in *yes) ;; *) REPLACE_GETDELIM=1 ;; esac else HAVE_GETDELIM=0 fi if test $ac_cv_have_decl_getdelim = no; then HAVE_DECL_GETDELIM=0 fi if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then GL_COND_OBJ_GETDELIM_TRUE= GL_COND_OBJ_GETDELIM_FALSE='#' else GL_COND_OBJ_GETDELIM_TRUE='#' GL_COND_OBJ_GETDELIM_FALSE= fi : if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then GL_COND_OBJ_GETDELIM_TRUE='#' GL_COND_OBJ_GETDELIM_FALSE='#' fi if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then : ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" if test "x$ac_cv_func_flockfile" = xyes then : printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile" if test "x$ac_cv_func_funlockfile" = xyes then : printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getc_unlocked" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h fi GL_LIBGL_GNULIB_GETDELIM=1 printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h for ac_func in getdomainname do : ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname" if test "x$ac_cv_func_getdomainname" = xyes then : printf "%s\n" "#define HAVE_GETDOMAINNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getdomainname in -lnsl" >&5 printf %s "checking for getdomainname in -lnsl... " >&6; } if test ${gl_cv_func_getdomainname_in_libnsl+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_func_getdomainname_in_libnsl=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lnsl" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern #ifdef __cplusplus "C" #endif int getdomainname (char *, size_t); int main (void) { getdomainname(NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_getdomainname_in_libnsl=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdomainname_in_libnsl" >&5 printf "%s\n" "$gl_cv_func_getdomainname_in_libnsl" >&6; } fi done ac_fn_check_decl "$LINENO" "getdomainname" "ac_cv_have_decl_getdomainname" "#include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_getdomainname" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_GETDOMAINNAME $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getdomainname's second argument type" >&5 printf %s "checking for getdomainname's second argument type... " >&6; } if test ${gl_cv_decl_getdomainname_argtype2+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_have_decl_getdomainname; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETDB_H #include #endif #include extern #ifdef __cplusplus "C" #endif int getdomainname (char *, int); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_decl_getdomainname_argtype2='int' else $as_nop gl_cv_decl_getdomainname_argtype2='size_t' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext else gl_cv_decl_getdomainname_argtype2='int' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_getdomainname_argtype2" >&5 printf "%s\n" "$gl_cv_decl_getdomainname_argtype2" >&6; } if test $ac_cv_have_decl_getdomainname = no; then HAVE_DECL_GETDOMAINNAME=0 fi if { test $ac_cv_func_getdomainname = yes \ && test $gl_cv_decl_getdomainname_argtype2 != size_t; \ } \ || test "$gl_cv_func_getdomainname_in_libnsl" = yes; then REPLACE_GETDOMAINNAME=1 fi if test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1; then GL_COND_OBJ_GETDOMAINNAME_TRUE= GL_COND_OBJ_GETDOMAINNAME_FALSE='#' else GL_COND_OBJ_GETDOMAINNAME_TRUE='#' GL_COND_OBJ_GETDOMAINNAME_FALSE= fi : if test -z "${GL_COND_OBJ_GETDOMAINNAME_TRUE}" && test -z "${GL_COND_OBJ_GETDOMAINNAME_FALSE}"; then GL_COND_OBJ_GETDOMAINNAME_TRUE='#' GL_COND_OBJ_GETDOMAINNAME_FALSE='#' fi if test -z "$GL_COND_OBJ_GETDOMAINNAME_TRUE"; then : if test $ac_cv_func_getdomainname = yes; then printf "%s\n" "#define HAVE_GETDOMAINNAME 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" if test "x$ac_cv_header_sys_systeminfo_h" = xyes then : printf "%s\n" "#define HAVE_SYS_SYSTEMINFO_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" if test "x$ac_cv_func_sysinfo" = xyes then : printf "%s\n" "#define HAVE_SYSINFO 1" >>confdefs.h fi fi GL_LIBGL_GNULIB_GETDOMAINNAME=1 printf "%s\n" "#define GNULIB_TEST_GETDOMAINNAME 1" >>confdefs.h if test $ac_cv_func_getdtablesize = yes && test $ac_cv_have_decl_getdtablesize = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 printf %s "checking whether getdtablesize works... " >&6; } if test ${gl_cv_func_getdtablesize_works+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; *) if test "$cross_compiling" = yes then : case "$host_os" in cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows gl_cv_func_getdtablesize_works="guessing no" ;; *) gl_cv_func_getdtablesize_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gl_mda_defines int main (void) { int size = getdtablesize(); if (dup2 (0, getdtablesize()) != -1) return 1; if (size != getdtablesize()) return 2; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_getdtablesize_works=yes else $as_nop gl_cv_func_getdtablesize_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } case "$gl_cv_func_getdtablesize_works" in *yes | "no (limitation)") ;; *) REPLACE_GETDTABLESIZE=1 ;; esac else HAVE_GETDTABLESIZE=0 fi if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then GL_COND_OBJ_GETDTABLESIZE_TRUE= GL_COND_OBJ_GETDTABLESIZE_FALSE='#' else GL_COND_OBJ_GETDTABLESIZE_TRUE='#' GL_COND_OBJ_GETDTABLESIZE_FALSE= fi : if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then GL_COND_OBJ_GETDTABLESIZE_TRUE='#' GL_COND_OBJ_GETDTABLESIZE_FALSE='#' fi if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then : : fi GL_LIBGL_GNULIB_GETDTABLESIZE=1 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi GETHOSTNAME_LIB= for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes then : printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in winsock2.h and -lws2_32" >&5 printf %s "checking for gethostname in winsock2.h and -lws2_32... " >&6; } if test ${gl_cv_w32_gethostname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_gethostname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H #include #endif #include int main (void) { gethostname(NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostname" >&5 printf "%s\n" "$gl_cv_w32_gethostname" >&6; } if test "$gl_cv_w32_gethostname" = "yes"; then GETHOSTNAME_LIB="-lws2_32" fi fi done if test "$ac_cv_func_gethostname" = no; then HAVE_GETHOSTNAME=0 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HOST_NAME_MAX" >&5 printf %s "checking for HOST_NAME_MAX... " >&6; } if test ${gl_cv_decl_HOST_NAME_MAX+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_decl_HOST_NAME_MAX= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HOST_NAME_MAX lucky #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "lucky" >/dev/null 2>&1 then : gl_cv_decl_HOST_NAME_MAX=yes fi rm -rf conftest* if test -z "$gl_cv_decl_HOST_NAME_MAX"; then if test "$gl_cv_w32_gethostname" = yes; then gl_cv_decl_HOST_NAME_MAX=256 else if ac_fn_c_compute_int "$LINENO" "MAXHOSTNAMELEN" "gl_cv_decl_HOST_NAME_MAX" " #include #if HAVE_SYS_PARAM_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_NETDB_H # include #endif " then : else $as_nop gl_cv_decl_HOST_NAME_MAX=256 fi fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_HOST_NAME_MAX" >&5 printf "%s\n" "$gl_cv_decl_HOST_NAME_MAX" >&6; } if test "$gl_cv_decl_HOST_NAME_MAX" != yes; then printf "%s\n" "#define HOST_NAME_MAX $gl_cv_decl_HOST_NAME_MAX" >>confdefs.h fi if test $HAVE_GETHOSTNAME = 0; then GL_COND_OBJ_GETHOSTNAME_TRUE= GL_COND_OBJ_GETHOSTNAME_FALSE='#' else GL_COND_OBJ_GETHOSTNAME_TRUE='#' GL_COND_OBJ_GETHOSTNAME_FALSE= fi : if test -z "${GL_COND_OBJ_GETHOSTNAME_TRUE}" && test -z "${GL_COND_OBJ_GETHOSTNAME_FALSE}"; then GL_COND_OBJ_GETHOSTNAME_TRUE='#' GL_COND_OBJ_GETHOSTNAME_FALSE='#' fi if test -z "$GL_COND_OBJ_GETHOSTNAME_TRUE"; then : if test "$gl_cv_w32_gethostname" != "yes"; then ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" if test "x$ac_cv_func_uname" = xyes then : printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h fi fi fi GL_LIBGL_GNULIB_GETHOSTNAME=1 printf "%s\n" "#define GNULIB_TEST_GETHOSTNAME 1" >>confdefs.h gl_getline_needs_run_time_check=no ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" if test "x$ac_cv_func_getline" = xyes then : gl_getline_needs_run_time_check=yes else $as_nop am_cv_func_working_getline=no fi if test $gl_getline_needs_run_time_check = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 printf %s "checking for working getline function... " >&6; } if test ${am_cv_func_working_getline+y} then : printf %s "(cached) " >&6 else $as_nop echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data if test "$cross_compiling" = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) && !defined __UCLIBC__ Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1 then : am_cv_func_working_getline="guessing yes" else $as_nop case "$host_os" in *-musl*) am_cv_func_working_getline="guessing yes" ;; *) am_cv_func_working_getline="$gl_cross_guess_normal" ;; esac fi rm -rf conftest* else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # include # include # include int main () { FILE *in = fopen ("./conftest.data", "r"); if (!in) return 1; { /* Test result for a NULL buffer and a zero size. Based on a test program from Karl Heuer. */ char *line = NULL; size_t siz = 0; int len = getline (&line, &siz, in); if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) { free (line); fclose (in); return 2; } free (line); } { /* Test result for a NULL buffer and a non-zero size. This crashes on FreeBSD 8.0. */ char *line = NULL; size_t siz = (size_t)(~0) / 4; if (getline (&line, &siz, in) == -1) { fclose (in); return 3; } free (line); } fclose (in); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : am_cv_func_working_getline=yes else $as_nop am_cv_func_working_getline=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 printf "%s\n" "$am_cv_func_working_getline" >&6; } fi if test $ac_cv_have_decl_getline = no; then HAVE_DECL_GETLINE=0 fi case "$am_cv_func_working_getline" in *yes) ;; *) REPLACE_GETLINE=1 ;; esac if test $REPLACE_GETLINE = 1; then GL_COND_OBJ_GETLINE_TRUE= GL_COND_OBJ_GETLINE_FALSE='#' else GL_COND_OBJ_GETLINE_TRUE='#' GL_COND_OBJ_GETLINE_FALSE= fi : if test -z "${GL_COND_OBJ_GETLINE_TRUE}" && test -z "${GL_COND_OBJ_GETLINE_FALSE}"; then GL_COND_OBJ_GETLINE_TRUE='#' GL_COND_OBJ_GETLINE_FALSE='#' fi if test -z "$GL_COND_OBJ_GETLINE_TRUE"; then : : fi GL_LIBGL_GNULIB_GETLINE=1 printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then libgl_LIBOBJS="$libgl_LIBOBJS getpass.$ac_objext" ac_fn_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include #if HAVE_STDIO_EXT_H #include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl___fsetlocking" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL___FSETLOCKING $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcgetattr" >&5 printf %s "checking for tcgetattr... " >&6; } if test ${gl_cv_func_tcgetattr+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct termios x; int main (void) { return tcgetattr(0,&x); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_tcgetattr=yes else $as_nop gl_cv_func_tcgetattr=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcgetattr" >&5 printf "%s\n" "$gl_cv_func_tcgetattr" >&6; } if test $gl_cv_func_tcgetattr = yes; then HAVE_TCGETATTR=1 else HAVE_TCGETATTR=0 fi printf "%s\n" "#define HAVE_TCGETATTR $HAVE_TCGETATTR" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcsetattr" >&5 printf %s "checking for tcsetattr... " >&6; } if test ${gl_cv_func_tcsetattr+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct termios x; int main (void) { return tcsetattr(0,0,&x); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_tcsetattr=yes else $as_nop gl_cv_func_tcsetattr=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcsetattr" >&5 printf "%s\n" "$gl_cv_func_tcsetattr" >&6; } if test $gl_cv_func_tcsetattr = yes; then HAVE_TCSETATTR=1 else HAVE_TCSETATTR=0 fi printf "%s\n" "#define HAVE_TCSETATTR $HAVE_TCSETATTR" >>confdefs.h fi GL_LIBGL_GNULIB_GETPASS=1 printf "%s\n" "#define GNULIB_TEST_GETPASS 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_GETPEERNAME_TRUE= GL_COND_OBJ_GETPEERNAME_FALSE='#' else GL_COND_OBJ_GETPEERNAME_TRUE='#' GL_COND_OBJ_GETPEERNAME_FALSE= fi : if test -z "${GL_COND_OBJ_GETPEERNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPEERNAME_FALSE}"; then GL_COND_OBJ_GETPEERNAME_TRUE='#' GL_COND_OBJ_GETPEERNAME_FALSE='#' fi GL_LIBGL_GNULIB_GETPEERNAME=1 printf "%s\n" "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h if test "$ac_cv_func_getrandom" != yes; then HAVE_GETRANDOM=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5 printf %s "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; } if test ${gl_cv_func_getrandom_ok+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Additional includes are needed before on uClibc and Mac OS X. */ #include #include #include ssize_t getrandom (void *, size_t, unsigned int); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_getrandom_ok=yes else $as_nop gl_cv_func_getrandom_ok=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5 printf "%s\n" "$gl_cv_func_getrandom_ok" >&6; } if test $gl_cv_func_getrandom_ok = no; then REPLACE_GETRANDOM=1 fi fi case "$host_os" in mingw*) ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include " if test "x$ac_cv_header_bcrypt_h" = xyes then : printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5 printf %s "checking whether the bcrypt library is guaranteed to be present... " >&6; } if test ${gl_cv_lib_assume_bcrypt+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7) cannot assume it #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_lib_assume_bcrypt=yes else $as_nop gl_cv_lib_assume_bcrypt=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5 printf "%s\n" "$gl_cv_lib_assume_bcrypt" >&6; } if test $gl_cv_lib_assume_bcrypt = yes; then printf "%s\n" "#define HAVE_LIB_BCRYPT 1" >>confdefs.h LIB_GETRANDOM='-lbcrypt' else LIB_GETRANDOM='-ladvapi32' fi ;; *) LIB_GETRANDOM= ;; esac if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then GL_COND_OBJ_GETRANDOM_TRUE= GL_COND_OBJ_GETRANDOM_FALSE='#' else GL_COND_OBJ_GETRANDOM_TRUE='#' GL_COND_OBJ_GETRANDOM_FALSE= fi : if test -z "${GL_COND_OBJ_GETRANDOM_TRUE}" && test -z "${GL_COND_OBJ_GETRANDOM_FALSE}"; then GL_COND_OBJ_GETRANDOM_TRUE='#' GL_COND_OBJ_GETRANDOM_FALSE='#' fi GL_LIBGL_GNULIB_GETRANDOM=1 printf "%s\n" "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h if test $ac_cv_func_getsubopt = no; then HAVE_GETSUBOPT=0 fi if test $HAVE_GETSUBOPT = 0; then GL_COND_OBJ_GETSUBOPT_TRUE= GL_COND_OBJ_GETSUBOPT_FALSE='#' else GL_COND_OBJ_GETSUBOPT_TRUE='#' GL_COND_OBJ_GETSUBOPT_FALSE= fi : if test -z "${GL_COND_OBJ_GETSUBOPT_TRUE}" && test -z "${GL_COND_OBJ_GETSUBOPT_FALSE}"; then GL_COND_OBJ_GETSUBOPT_TRUE='#' GL_COND_OBJ_GETSUBOPT_FALSE='#' fi if test -z "$GL_COND_OBJ_GETSUBOPT_TRUE"; then : : fi GL_LIBGL_GNULIB_GETSUBOPT=1 printf "%s\n" "#define GNULIB_TEST_GETSUBOPT 1" >>confdefs.h gl_gettimeofday_timezone=void if test $ac_cv_func_gettimeofday != yes; then HAVE_GETTIMEOFDAY=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 printf %s "checking for gettimeofday with POSIX signature... " >&6; } if test ${gl_cv_func_gettimeofday_posix_signature+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include struct timeval c; int gettimeofday (struct timeval *restrict, void *restrict); int main (void) { /* glibc uses struct timezone * rather than the POSIX void * if _GNU_SOURCE is defined. However, since the only portable use of gettimeofday uses NULL as the second parameter, and since the glibc definition is actually more typesafe, it is not worth wrapping this to get a compliant signature. */ int (*f) (struct timeval *restrict, void *restrict) = gettimeofday; int x = f (&c, 0); return !(x | c.tv_sec | c.tv_usec); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_gettimeofday_posix_signature=yes else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int gettimeofday (struct timeval *restrict, struct timezone *restrict); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_gettimeofday_posix_signature=almost else $as_nop gl_cv_func_gettimeofday_posix_signature=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; } if test $gl_cv_func_gettimeofday_posix_signature = almost; then gl_gettimeofday_timezone='struct timezone' elif test $gl_cv_func_gettimeofday_posix_signature != yes; then REPLACE_GETTIMEOFDAY=1 fi if test $REPLACE_STRUCT_TIMEVAL = 1; then REPLACE_GETTIMEOFDAY=1 fi case "$host_os" in mingw*) REPLACE_GETTIMEOFDAY=1 ;; esac fi printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then GL_COND_OBJ_GETTIMEOFDAY_TRUE= GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' else GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' GL_COND_OBJ_GETTIMEOFDAY_FALSE= fi : if test -z "${GL_COND_OBJ_GETTIMEOFDAY_TRUE}" && test -z "${GL_COND_OBJ_GETTIMEOFDAY_FALSE}"; then GL_COND_OBJ_GETTIMEOFDAY_TRUE='#' GL_COND_OBJ_GETTIMEOFDAY_FALSE='#' fi if test -z "$GL_COND_OBJ_GETTIMEOFDAY_TRUE"; then : : fi GL_LIBGL_GNULIB_GETTIMEOFDAY=1 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h HOSTENT_LIB= gl_saved_libs="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 printf %s "checking for library containing gethostbyname... " >&6; } if test ${ac_cv_search_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gethostbyname (); int main (void) { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl network net do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_gethostbyname+y} then : break fi done if test ${ac_cv_search_gethostbyname+y} then : else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_gethostbyname" != "none required"; then HOSTENT_LIB="$ac_cv_search_gethostbyname" fi fi LIBS="$gl_saved_libs" if test -z "$HOSTENT_LIB"; then for ac_func in gethostbyname do : ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes then : printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } if test ${gl_cv_w32_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_gethostbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H #include #endif #include int main (void) { gethostbyname(NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_gethostbyname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } if test "$gl_cv_w32_gethostbyname" = "yes"; then HOSTENT_LIB="-lws2_32" fi fi done fi HAVE_INET_NTOP=1 INET_NTOP_LIB= if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi if test $HAVE_WINSOCK2_H = 1; then REPLACE_INET_NTOP=1 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_inet_ntop" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = yes; then INET_NTOP_LIB="-lws2_32" else HAVE_DECL_INET_NTOP=0 fi else gl_save_LIBS=$LIBS { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 printf %s "checking for library containing inet_ntop... " >&6; } if test ${ac_cv_search_inet_ntop+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char inet_ntop (); int main (void) { return inet_ntop (); ; return 0; } _ACEOF for ac_lib in '' nsl resolv network do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_inet_ntop=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_inet_ntop+y} then : break fi done if test ${ac_cv_search_inet_ntop+y} then : else $as_nop ac_cv_search_inet_ntop=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } ac_res=$ac_cv_search_inet_ntop if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else $as_nop ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" if test "x$ac_cv_func_inet_ntop" = xyes then : printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h fi if test $ac_cv_func_inet_ntop = no; then HAVE_INET_NTOP=0 fi fi LIBS=$gl_save_LIBS if test "$ac_cv_search_inet_ntop" != "no" \ && test "$ac_cv_search_inet_ntop" != "none required"; then INET_NTOP_LIB="$ac_cv_search_inet_ntop" fi ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include #if HAVE_NETDB_H # include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_inet_ntop" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_inet_ntop = no; then HAVE_DECL_INET_NTOP=0 fi fi if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then GL_COND_OBJ_INET_NTOP_TRUE= GL_COND_OBJ_INET_NTOP_FALSE='#' else GL_COND_OBJ_INET_NTOP_TRUE='#' GL_COND_OBJ_INET_NTOP_FALSE= fi : if test -z "${GL_COND_OBJ_INET_NTOP_TRUE}" && test -z "${GL_COND_OBJ_INET_NTOP_FALSE}"; then GL_COND_OBJ_INET_NTOP_TRUE='#' GL_COND_OBJ_INET_NTOP_FALSE='#' fi if test -z "$GL_COND_OBJ_INET_NTOP_TRUE"; then : fi GL_LIBGL_GNULIB_INET_NTOP=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 printf %s "checking whether the compiler supports the __inline keyword... " >&6; } if test ${gl_cv_c___inline+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int foo_t; static __inline foo_t foo (void) { return 0; } int main (void) { return foo (); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_c___inline=yes else $as_nop gl_cv_c___inline=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 printf "%s\n" "$gl_cv_c___inline" >&6; } if test $gl_cv_c___inline = yes; then printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h fi case "$GL_GENERATE_LIMITS_H" in false) LIMITS_H='' ;; true) if test -z "$LIMITS_H"; then LIMITS_H="${gl_source_base_prefix}limits.h" fi ;; *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_LIMITS_H; then GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_FALSE='#' else GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE= fi : if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE='#' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 printf %s "checking whether lseek detects pipes... " >&6; } if test ${gl_cv_func_lseek_pipe+y} then : printf %s "(cached) " >&6 else $as_nop case "$host_os" in mingw*) gl_cv_func_lseek_pipe=no ;; *) if test $cross_compiling = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* for off_t */ #include /* for SEEK_CUR */ #if HAVE_UNISTD_H # include #else /* on Windows with MSVC */ # include #endif $gl_mda_defines int main (void) { /* Exit with success only if stdin is seekable. */ return lseek (0, (off_t)0, SEEK_CUR) < 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : if test -s conftest$ac_exeext \ && ./conftest$ac_exeext < conftest.$ac_ext \ && test 1 = "`echo hi \ | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then gl_cv_func_lseek_pipe=yes else gl_cv_func_lseek_pipe=no fi else $as_nop gl_cv_func_lseek_pipe=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __BEOS__ /* BeOS mistakenly return 0 when trying to seek on pipes. */ Choke me. #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_lseek_pipe=yes else $as_nop gl_cv_func_lseek_pipe=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; } if test "$gl_cv_func_lseek_pipe" = no; then REPLACE_LSEEK=1 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h fi if test $WINDOWS_64_BIT_OFF_T = 1; then REPLACE_LSEEK=1 fi case $host_os in darwin*) REPLACE_LSEEK=1;; esac if test $REPLACE_LSEEK = 1; then GL_COND_OBJ_LSEEK_TRUE= GL_COND_OBJ_LSEEK_FALSE='#' else GL_COND_OBJ_LSEEK_TRUE='#' GL_COND_OBJ_LSEEK_FALSE= fi : if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then GL_COND_OBJ_LSEEK_TRUE='#' GL_COND_OBJ_LSEEK_FALSE='#' fi GL_LIBGL_GNULIB_LSEEK=1 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX" if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5 printf %s "checking whether malloc (0) returns nonnull... " >&6; } if test ${ac_cv_func_malloc_0_nonnull+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | gnu* | *-musl* | midnightbsd* \ | hpux* | solaris* | cygwin* | mingw* | msys* ) ac_cv_func_malloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { void *p = malloc (0); int result = !p; free (p); return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_func_malloc_0_nonnull=yes else $as_nop ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } case $ac_cv_func_malloc_0_nonnull in #( *yes) : ;; #( *) : REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;; esac fi if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then libgl_LIBOBJS="$libgl_LIBOBJS malloc.$ac_objext" fi GL_LIBGL_GNULIB_MALLOC_GNU=1 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then libgl_LIBOBJS="$libgl_LIBOBJS malloc.$ac_objext" fi GL_LIBGL_GNULIB_MALLOC_POSIX=1 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h if test $REPLACE_MEMCHR = 1; then GL_COND_OBJ_MEMCHR_TRUE= GL_COND_OBJ_MEMCHR_FALSE='#' else GL_COND_OBJ_MEMCHR_TRUE='#' GL_COND_OBJ_MEMCHR_FALSE= fi : if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then GL_COND_OBJ_MEMCHR_TRUE='#' GL_COND_OBJ_MEMCHR_FALSE='#' fi if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then : ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" if test "x$ac_cv_header_bp_sym_h" = xyes then : printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h fi fi GL_LIBGL_GNULIB_MEMCHR=1 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h REPLACE_MKTIME=0 if test "$gl_cv_func_working_mktime" != yes; then REPLACE_MKTIME=1 printf "%s\n" "#define NEED_MKTIME_WORKING 1" >>confdefs.h fi case "$host_os" in mingw*) REPLACE_MKTIME=1 printf "%s\n" "#define NEED_MKTIME_WINDOWS 1" >>confdefs.h ;; esac if test $REPLACE_MKTIME = 1; then libgl_LIBOBJS="$libgl_LIBOBJS mktime.$ac_objext" : fi GL_LIBGL_GNULIB_MKTIME=1 printf "%s\n" "#define GNULIB_TEST_MKTIME 1" >>confdefs.h WANT_MKTIME_INTERNAL=0 ac_fn_c_check_func "$LINENO" "__mktime_internal" "ac_cv_func___mktime_internal" if test "x$ac_cv_func___mktime_internal" = xyes then : printf "%s\n" "#define mktime_internal __mktime_internal" >>confdefs.h else $as_nop WANT_MKTIME_INTERNAL=1 printf "%s\n" "#define NEED_MKTIME_INTERNAL 1" >>confdefs.h fi if test $WANT_MKTIME_INTERNAL = 1; then libgl_LIBOBJS="$libgl_LIBOBJS mktime.$ac_objext" : fi if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then GL_COND_OBJ_MSVC_INVAL_TRUE= GL_COND_OBJ_MSVC_INVAL_FALSE='#' else GL_COND_OBJ_MSVC_INVAL_TRUE='#' GL_COND_OBJ_MSVC_INVAL_FALSE= fi : if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then GL_COND_OBJ_MSVC_INVAL_TRUE='#' GL_COND_OBJ_MSVC_INVAL_FALSE='#' fi if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then GL_COND_OBJ_MSVC_NOTHROW_TRUE= GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' else GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' GL_COND_OBJ_MSVC_NOTHROW_FALSE= fi : if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then GL_COND_OBJ_MSVC_NOTHROW_TRUE='#' GL_COND_OBJ_MSVC_NOTHROW_FALSE='#' fi printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether is self-contained" >&5 printf %s "checking whether is self-contained... " >&6; } if test ${gl_cv_header_netinet_in_h_selfcontained+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_netinet_in_h_selfcontained=yes else $as_nop gl_cv_header_netinet_in_h_selfcontained=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; } if test $gl_cv_header_netinet_in_h_selfcontained = yes; then GL_GENERATE_NETINET_IN_H=false else GL_GENERATE_NETINET_IN_H=true ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" if test "x$ac_cv_header_netinet_in_h" = xyes then : printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h fi if test $gl_cv_have_include_next = yes; then gl_cv_next_netinet_in_h='<'netinet/in.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_netinet_in_h+y} then : printf %s "(cached) " >&6 else $as_nop if test $ac_cv_header_netinet_in_h = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'netinet/in.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_netinet_in_h gl_cv_next_netinet_in_h='"'$gl_header'"' else gl_cv_next_netinet_in_h='<'netinet/in.h'>' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; } fi NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'netinet/in.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_netinet_in_h fi NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive if test $ac_cv_header_netinet_in_h = yes; then HAVE_NETINET_IN_H=1 else HAVE_NETINET_IN_H=0 fi fi case "$GL_GENERATE_NETINET_IN_H" in false) NETINET_IN_H='' ;; true) if test -z "$NETINET_IN_H"; then NETINET_IN_H="${gl_source_base_prefix}netinet/in.h" fi ;; *) echo "*** GL_GENERATE_NETINET_IN_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_NETINET_IN_H; then GL_GENERATE_NETINET_IN_H_TRUE= GL_GENERATE_NETINET_IN_H_FALSE='#' else GL_GENERATE_NETINET_IN_H_TRUE='#' GL_GENERATE_NETINET_IN_H_FALSE= fi : if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then GL_GENERATE_NETINET_IN_H_TRUE='#' GL_GENERATE_NETINET_IN_H_FALSE='#' fi # This defines (or not) HAVE_TZNAME and HAVE_STRUCT_TM_TM_ZONE. printf "%s\n" "#define my_strftime nstrftime" >>confdefs.h case "$host_os" in mingw* | pw*) REPLACE_OPEN=1 ;; *) if test "$gl_cv_macro_O_CLOEXEC" != yes; then REPLACE_OPEN=1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 printf %s "checking whether open recognizes a trailing slash... " >&6; } if test ${gl_cv_func_open_slash+y} then : printf %s "(cached) " >&6 else $as_nop # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then touch conftest.tmp ln -s conftest.tmp conftest.lnk fi if test "$cross_compiling" = yes then : case "$host_os" in freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) gl_cv_func_open_slash="guessing no" ;; *) gl_cv_func_open_slash="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_UNISTD_H # include #endif $gl_mda_defines int main () { int result = 0; #if HAVE_LSTAT if (open ("conftest.lnk/", O_RDONLY) != -1) result |= 1; #endif if (open ("conftest.sl/", O_CREAT, 0600) >= 0) result |= 2; return result; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_open_slash=yes else $as_nop gl_cv_func_open_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.sl conftest.tmp conftest.lnk fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 printf "%s\n" "$gl_cv_func_open_slash" >&6; } case "$gl_cv_func_open_slash" in *no) printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h ;; esac case "$gl_cv_func_open_slash" in *no) REPLACE_OPEN=1 ;; esac ;; esac if test $REPLACE_OPEN = 1; then GL_COND_OBJ_OPEN_TRUE= GL_COND_OBJ_OPEN_FALSE='#' else GL_COND_OBJ_OPEN_TRUE='#' GL_COND_OBJ_OPEN_FALSE= fi : if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then GL_COND_OBJ_OPEN_TRUE='#' GL_COND_OBJ_OPEN_FALSE='#' fi if test -z "$GL_COND_OBJ_OPEN_TRUE"; then : : fi GL_LIBGL_GNULIB_OPEN=1 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PARSE_DATETIME_BISON+y} then : printf %s "(cached) " >&6 else $as_nop if test -n "$PARSE_DATETIME_BISON"; then ac_cv_prog_PARSE_DATETIME_BISON="$PARSE_DATETIME_BISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_PARSE_DATETIME_BISON="$ac_prog" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PARSE_DATETIME_BISON=$ac_cv_prog_PARSE_DATETIME_BISON if test -n "$PARSE_DATETIME_BISON"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PARSE_DATETIME_BISON" >&5 printf "%s\n" "$PARSE_DATETIME_BISON" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi test -n "$PARSE_DATETIME_BISON" && break done if test -z "$PARSE_DATETIME_BISON"; then ac_verc_fail=yes else cat >conftest.y <<_ACEOF %require "2.4" %% exp: _ACEOF { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bison 2.4 or newer" >&5 printf %s "checking for bison 2.4 or newer... " >&6; } ac_prog_version=`$PARSE_DATETIME_BISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` : ${ac_prog_version:='v. ?.??'} if $PARSE_DATETIME_BISON conftest.y -o conftest.c 2>/dev/null; then ac_prog_version="$ac_prog_version, ok" ac_verc_fail=no else ac_prog_version="$ac_prog_version, bad" ac_verc_fail=yes fi rm -f conftest.y conftest.c { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 printf "%s\n" "$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then PARSE_DATETIME_BISON=: fi ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include #include <$ac_cv_struct_tm> " if test "x$ac_cv_member_struct_tm_tm_zone" = xyes then : printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h fi if test "$ac_cv_member_struct_tm_tm_zone" = yes; then printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h else ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_tzname" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 printf %s "checking for tzname... " >&6; } if test ${ac_cv_var_tzname+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if !HAVE_DECL_TZNAME extern char *tzname[]; #endif int main (void) { return tzname[0][0]; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_var_tzname=yes else $as_nop ac_cv_var_tzname=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 printf "%s\n" "$ac_cv_var_tzname" >&6; } if test $ac_cv_var_tzname = yes; then printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h fi fi ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr" if test "x$ac_cv_func_rawmemchr" = xyes then : printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h fi if test $ac_cv_func_rawmemchr = no; then HAVE_RAWMEMCHR=0 fi if test $HAVE_RAWMEMCHR = 0; then GL_COND_OBJ_RAWMEMCHR_TRUE= GL_COND_OBJ_RAWMEMCHR_FALSE='#' else GL_COND_OBJ_RAWMEMCHR_TRUE='#' GL_COND_OBJ_RAWMEMCHR_FALSE= fi : if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then GL_COND_OBJ_RAWMEMCHR_TRUE='#' GL_COND_OBJ_RAWMEMCHR_FALSE='#' fi if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then : : fi GL_LIBGL_GNULIB_RAWMEMCHR=1 printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h : if test $ac_cv_func_readlink = no; then HAVE_READLINK=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 printf %s "checking whether readlink signature is correct... " >&6; } if test ${gl_cv_decl_readlink_works+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Cause compilation failure if original declaration has wrong type. */ ssize_t readlink (const char *, char *, size_t); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_decl_readlink_works=yes else $as_nop gl_cv_decl_readlink_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 printf "%s\n" "$gl_cv_decl_readlink_works" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 printf %s "checking whether readlink handles trailing slash correctly... " >&6; } if test ${gl_cv_func_readlink_trailing_slash+y} then : printf %s "(cached) " >&6 else $as_nop # We have readlink, so assume ln -s works. ln -s conftest.no-such conftest.link ln -s conftest.link conftest.lnk2 if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Linux or glibc systems. linux-* | linux | *-gnu* | gnu*) gl_cv_func_readlink_trailing_slash="guessing yes" ;; # Guess no on AIX or HP-UX. aix* | hpux*) gl_cv_func_readlink_trailing_slash="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { char buf[20]; return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_readlink_trailing_slash=yes else $as_nop gl_cv_func_readlink_trailing_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.link conftest.lnk2 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5 printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; } case "$gl_cv_func_readlink_trailing_slash" in *yes) if test "$gl_cv_decl_readlink_works" != yes; then REPLACE_READLINK=1 fi ;; *) printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h REPLACE_READLINK=1 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5 printf %s "checking whether readlink truncates results correctly... " >&6; } if test ${gl_cv_func_readlink_truncate+y} then : printf %s "(cached) " >&6 else $as_nop # We have readlink, so assume ln -s works. ln -s ab conftest.link if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Linux or glibc systems. linux-* | linux | *-gnu* | gnu*) gl_cv_func_readlink_truncate="guessing yes" ;; # Guess no on AIX or HP-UX. aix* | hpux*) gl_cv_func_readlink_truncate="guessing no" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { char c; return readlink ("conftest.link", &c, 1) != 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_readlink_truncate=yes else $as_nop gl_cv_func_readlink_truncate=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.link conftest.lnk2 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5 printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; } case $gl_cv_func_readlink_truncate in *yes) if test "$gl_cv_decl_readlink_works" != yes; then REPLACE_READLINK=1 fi ;; *) printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h REPLACE_READLINK=1 ;; esac fi if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then GL_COND_OBJ_READLINK_TRUE= GL_COND_OBJ_READLINK_FALSE='#' else GL_COND_OBJ_READLINK_TRUE='#' GL_COND_OBJ_READLINK_FALSE= fi : if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then GL_COND_OBJ_READLINK_TRUE='#' GL_COND_OBJ_READLINK_FALSE='#' fi if test -z "$GL_COND_OBJ_READLINK_TRUE"; then : : fi GL_LIBGL_GNULIB_READLINK=1 printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; } if test ${ac_cv_func_realloc_0_nonnull+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on platforms where we know the result. *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | gnu* | *-musl* | midnightbsd* \ | hpux* | solaris* | cygwin* | mingw* | msys* ) ac_cv_func_realloc_0_nonnull="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { void *p = realloc (0, 0); int result = !p; free (p); return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_func_realloc_0_nonnull=yes else $as_nop ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } case $ac_cv_func_realloc_0_nonnull in #( *yes) : ;; #( *) : REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;; esac fi if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then libgl_LIBOBJS="$libgl_LIBOBJS realloc.$ac_objext" fi GL_LIBGL_GNULIB_REALLOC_GNU=1 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then REPLACE_REALLOC_FOR_REALLOC_POSIX=1 fi if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then libgl_LIBOBJS="$libgl_LIBOBJS realloc.$ac_objext" fi GL_LIBGL_GNULIB_REALLOC_POSIX=1 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" if test "x$ac_cv_func_reallocarray" = xyes then : printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h fi if test "$ac_cv_func_reallocarray" = no; then HAVE_REALLOCARRAY=0 elif test "$gl_cv_malloc_ptrdiff" = no; then REPLACE_REALLOCARRAY=1 fi if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then GL_COND_OBJ_REALLOCARRAY_TRUE= GL_COND_OBJ_REALLOCARRAY_FALSE='#' else GL_COND_OBJ_REALLOCARRAY_TRUE='#' GL_COND_OBJ_REALLOCARRAY_FALSE= fi : if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then GL_COND_OBJ_REALLOCARRAY_TRUE='#' GL_COND_OBJ_REALLOCARRAY_FALSE='#' fi if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then : : fi printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h GL_LIBGL_GNULIB_REALLOCARRAY=1 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_RECVFROM_TRUE= GL_COND_OBJ_RECVFROM_FALSE='#' else GL_COND_OBJ_RECVFROM_TRUE='#' GL_COND_OBJ_RECVFROM_FALSE= fi : if test -z "${GL_COND_OBJ_RECVFROM_TRUE}" && test -z "${GL_COND_OBJ_RECVFROM_FALSE}"; then GL_COND_OBJ_RECVFROM_TRUE='#' GL_COND_OBJ_RECVFROM_FALSE='#' fi GL_LIBGL_GNULIB_RECVFROM=1 printf "%s\n" "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then REPLACE_SELECT=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 printf %s "checking whether select supports a 0 argument... " >&6; } if test ${gl_cv_func_select_supports0+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on Interix. interix*) gl_cv_func_select_supports0="guessing no";; # Guess yes otherwise. *) gl_cv_func_select_supports0="guessing yes";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SYS_SELECT_H #include #endif int main () { struct timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 5; return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_select_supports0=yes else $as_nop gl_cv_func_select_supports0=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5 printf "%s\n" "$gl_cv_func_select_supports0" >&6; } case "$gl_cv_func_select_supports0" in *yes) ;; *) REPLACE_SELECT=1 ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 printf %s "checking whether select detects invalid fds... " >&6; } if test ${gl_cv_func_select_detects_ebadf+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;; # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SYS_SELECT_H # include #endif #include #include $gl_mda_defines int main (void) { fd_set set; dup2(0, 16); FD_ZERO(&set); FD_SET(16, &set); close(16); struct timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 5; return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_select_detects_ebadf=yes else $as_nop gl_cv_func_select_detects_ebadf=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5 printf "%s\n" "$gl_cv_func_select_detects_ebadf" >&6; } case $gl_cv_func_select_detects_ebadf in *yes) ;; *) REPLACE_SELECT=1 ;; esac fi LIB_SELECT="$LIBSOCKET" if test $REPLACE_SELECT = 1; then case "$host_os" in mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define WIN32_LEAN_AND_MEAN #include int main () { MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : else $as_nop LIB_SELECT="$LIB_SELECT -luser32" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi if test $REPLACE_SELECT = 1; then GL_COND_OBJ_SELECT_TRUE= GL_COND_OBJ_SELECT_FALSE='#' else GL_COND_OBJ_SELECT_TRUE='#' GL_COND_OBJ_SELECT_FALSE= fi : if test -z "${GL_COND_OBJ_SELECT_TRUE}" && test -z "${GL_COND_OBJ_SELECT_FALSE}"; then GL_COND_OBJ_SELECT_TRUE='#' GL_COND_OBJ_SELECT_FALSE='#' fi GL_LIBGL_GNULIB_SELECT=1 printf "%s\n" "#define GNULIB_TEST_SELECT 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_SENDTO_TRUE= GL_COND_OBJ_SENDTO_FALSE='#' else GL_COND_OBJ_SENDTO_TRUE='#' GL_COND_OBJ_SENDTO_FALSE= fi : if test -z "${GL_COND_OBJ_SENDTO_TRUE}" && test -z "${GL_COND_OBJ_SENDTO_FALSE}"; then GL_COND_OBJ_SENDTO_TRUE='#' GL_COND_OBJ_SENDTO_FALSE='#' fi GL_LIBGL_GNULIB_SENDTO=1 printf "%s\n" "#define GNULIB_TEST_SENDTO 1" >>confdefs.h SERVENT_LIB= gl_saved_libs="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 printf %s "checking for library containing getservbyname... " >&6; } if test ${ac_cv_search_getservbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char getservbyname (); int main (void) { return getservbyname (); ; return 0; } _ACEOF for ac_lib in '' socket network net do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_getservbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_getservbyname+y} then : break fi done if test ${ac_cv_search_getservbyname+y} then : else $as_nop ac_cv_search_getservbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 printf "%s\n" "$ac_cv_search_getservbyname" >&6; } ac_res=$ac_cv_search_getservbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" if test "$ac_cv_search_getservbyname" != "none required"; then SERVENT_LIB="$ac_cv_search_getservbyname" fi fi LIBS="$gl_saved_libs" if test -z "$SERVENT_LIB"; then for ac_func in getservbyname do : ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" if test "x$ac_cv_func_getservbyname" = xyes then : printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } if test ${gl_cv_w32_getservbyname+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_w32_getservbyname=no gl_save_LIBS="$LIBS" LIBS="$LIBS -lws2_32" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_WINSOCK2_H #include #endif #include int main (void) { getservbyname(NULL,NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_w32_getservbyname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } if test "$gl_cv_w32_getservbyname" = "yes"; then SERVENT_LIB="-lws2_32" fi fi done fi if test $ac_cv_func_setenv = no; then HAVE_SETENV=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 printf %s "checking whether setenv validates arguments... " >&6; } if test ${gl_cv_func_setenv_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_setenv_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { int result = 0; { if (setenv ("", "", 0) != -1) result |= 1; else if (errno != EINVAL) result |= 2; } { if (setenv ("a", "=", 1) != 0) result |= 4; else if (strcmp (getenv ("a"), "=") != 0) result |= 8; } return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_setenv_works=yes else $as_nop gl_cv_func_setenv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 printf "%s\n" "$gl_cv_func_setenv_works" >&6; } case "$gl_cv_func_setenv_works" in *yes) ;; *) REPLACE_SETENV=1 ;; esac fi if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then GL_COND_OBJ_SETENV_TRUE= GL_COND_OBJ_SETENV_FALSE='#' else GL_COND_OBJ_SETENV_TRUE='#' GL_COND_OBJ_SETENV_FALSE= fi : if test -z "${GL_COND_OBJ_SETENV_TRUE}" && test -z "${GL_COND_OBJ_SETENV_FALSE}"; then GL_COND_OBJ_SETENV_TRUE='#' GL_COND_OBJ_SETENV_FALSE='#' fi GL_LIBGL_GNULIB_SETENV=1 printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_SHUTDOWN_TRUE= GL_COND_OBJ_SHUTDOWN_FALSE='#' else GL_COND_OBJ_SHUTDOWN_TRUE='#' GL_COND_OBJ_SHUTDOWN_FALSE= fi : if test -z "${GL_COND_OBJ_SHUTDOWN_TRUE}" && test -z "${GL_COND_OBJ_SHUTDOWN_FALSE}"; then GL_COND_OBJ_SHUTDOWN_TRUE='#' GL_COND_OBJ_SHUTDOWN_FALSE='#' fi GL_LIBGL_GNULIB_SHUTDOWN=1 printf "%s\n" "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes then : printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 printf %s "checking for SIZE_MAX... " >&6; } if test ${gl_cv_size_max+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_size_max=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Found it" >/dev/null 2>&1 then : gl_cv_size_max=yes fi rm -rf conftest* if test $gl_cv_size_max != yes; then if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include #include " then : else $as_nop size_t_bits_minus_1= fi if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include " then : else $as_nop fits_in_uint= fi if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern size_t foo; extern unsigned long foo; int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : fits_in_uint=0 fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else gl_cv_size_max='((size_t)~(size_t)0)' fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 printf "%s\n" "$gl_cv_size_max" >&6; } if test "$gl_cv_size_max" != yes; then printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h fi gl_cv_func_snprintf_usable=no ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes then : printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h fi if test $ac_cv_func_snprintf = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 printf %s "checking whether snprintf respects a size of 1... " >&6; } if test ${gl_cv_func_snprintf_size1+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Android. linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_snprintf_size1="guessing yes" ;; *) gl_cv_func_snprintf_size1="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_SNPRINTF # define my_snprintf snprintf #else # include static int my_snprintf (char *buf, int size, const char *format, ...) { va_list args; int ret; va_start (args, format); ret = vsnprintf (buf, size, format, args); va_end (args); return ret; } #endif int main() { static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; my_snprintf (buf, 1, "%d", 12345); return buf[1] != 'E'; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_snprintf_size1=yes else $as_nop gl_cv_func_snprintf_size1=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; } case "$gl_cv_func_snprintf_size1" in *yes) case "$gl_cv_func_snprintf_retval_c99" in *yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } if test ${gl_cv_func_printf_positions+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) gl_cv_func_printf_positions="guessing no";; beos*) gl_cv_func_printf_positions="guessing no";; # Guess yes on Android. linux*-android*) gl_cv_func_printf_positions="guessing yes";; # Guess no on native Windows. mingw* | pw*) gl_cv_func_printf_positions="guessing no";; *) gl_cv_func_printf_positions="guessing yes";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_printf_positions=yes else $as_nop gl_cv_func_printf_positions=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 printf "%s\n" "$gl_cv_func_printf_positions" >&6; } case "$gl_cv_func_printf_positions" in *yes) gl_cv_func_snprintf_usable=yes ;; esac ;; esac ;; esac fi if test $gl_cv_func_snprintf_usable = no; then libgl_LIBOBJS="$libgl_LIBOBJS snprintf.$ac_objext" if test $ac_cv_func_snprintf = yes; then REPLACE_SNPRINTF=1 else if test $ac_cv_have_decl_snprintf = yes; then REPLACE_SNPRINTF=1 fi fi : fi if test $ac_cv_have_decl_snprintf = no; then HAVE_DECL_SNPRINTF=0 fi GL_LIBGL_GNULIB_SNPRINTF=1 printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h if test "$ac_cv_header_winsock2_h" = yes; then GL_COND_OBJ_SOCKET_TRUE= GL_COND_OBJ_SOCKET_FALSE='#' else GL_COND_OBJ_SOCKET_TRUE='#' GL_COND_OBJ_SOCKET_FALSE= fi : if test -z "${GL_COND_OBJ_SOCKET_TRUE}" && test -z "${GL_COND_OBJ_SOCKET_FALSE}"; then GL_COND_OBJ_SOCKET_TRUE='#' GL_COND_OBJ_SOCKET_FALSE='#' fi # When this module is used, sockets may actually occur as file descriptors, # hence it is worth warning if the modules 'close' and 'ioctl' are not used. if test "$ac_cv_header_winsock2_h" = yes; then UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 fi GL_LIBGL_GNULIB_SOCKET=1 printf "%s\n" "#define GNULIB_TEST_SOCKET 1" >>confdefs.h ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " /* is not needed according to POSIX, but the in i386-unknown-freebsd4.10 and powerpc-apple-darwin5.5 required it. */ #include #if HAVE_SYS_SOCKET_H # include #elif HAVE_WS2TCPIP_H # include #endif " if test "x$ac_cv_type_socklen_t" = xyes then : else $as_nop { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 printf %s "checking for socklen_t equivalent... " >&6; } if test ${gl_cv_socklen_t_equiv+y} then : printf %s "(cached) " >&6 else $as_nop # Systems have either "struct sockaddr *" or # "void *" as the second argument to getpeername gl_cv_socklen_t_equiv= for arg2 in "struct sockaddr" void; do for t in int size_t "unsigned int" "long int" "unsigned long int"; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int getpeername (int, $arg2 *, $t *); int main (void) { $t len; getpeername (0, 0, &len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_socklen_t_equiv="$t" fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$gl_cv_socklen_t_equiv" != "" && break done test "$gl_cv_socklen_t_equiv" != "" && break done if test "$gl_cv_socklen_t_equiv" = ""; then as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; } printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 printf %s "checking for ssize_t... " >&6; } if test ${gt_cv_ssize_t+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int x = sizeof (ssize_t *) + sizeof (ssize_t); return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_ssize_t=yes else $as_nop gt_cv_ssize_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 printf "%s\n" "$gt_cv_ssize_t" >&6; } if test $gt_cv_ssize_t = no; then printf "%s\n" "#define ssize_t int" >>confdefs.h fi case "$host_os" in mingw*) REPLACE_STAT=1 ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 printf %s "checking whether stat handles trailing slashes on files... " >&6; } if test ${gl_cv_func_stat_file_slash+y} then : printf %s "(cached) " >&6 else $as_nop touch conftest.tmp # Assume that if we have lstat, we can also check symlinks. if test $ac_cv_func_lstat = yes; then ln -s conftest.tmp conftest.lnk fi if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on Linux systems. linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int result = 0; struct stat st; if (!stat ("conftest.tmp/", &st)) result |= 1; #if HAVE_LSTAT if (!stat ("conftest.lnk/", &st)) result |= 2; #endif return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_stat_file_slash=yes else $as_nop gl_cv_func_stat_file_slash=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.tmp conftest.lnk fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } case $gl_cv_func_stat_file_slash in *no) REPLACE_STAT=1 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h ;; esac case $host_os in solaris*) REPLACE_FSTAT=1 ;; esac ;; esac if test $REPLACE_STAT = 1; then GL_COND_OBJ_STAT_TRUE= GL_COND_OBJ_STAT_FALSE='#' else GL_COND_OBJ_STAT_TRUE='#' GL_COND_OBJ_STAT_FALSE= fi : if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then GL_COND_OBJ_STAT_TRUE='#' GL_COND_OBJ_STAT_FALSE='#' fi if test -z "$GL_COND_OBJ_STAT_TRUE"; then : case "$host_os" in mingw*) libgl_LIBOBJS="$libgl_LIBOBJS stat-w32.$ac_objext" ;; esac : fi GL_LIBGL_GNULIB_STAT=1 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_SYS_TIME_H # include #endif #include struct timespec ts; struct stat st; int main (void) { st.st_atim = ts; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes else $as_nop ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h fi else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h fi fi fi fi ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h else $as_nop ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include #include " if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes then : printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 printf %s "checking for working stdalign.h... " >&6; } if test ${gl_cv_header_working_stdalign_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include /* Test that alignof yields a result consistent with offsetof. This catches GCC bug 52023 . */ #ifdef __cplusplus template struct alignof_helper { char a; t b; }; # define ao(type) offsetof (alignof_helper, b) #else # define ao(type) offsetof (struct { char a; type b; }, b) #endif char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; /* Test _Alignas only on platforms where gnulib can help. */ #if \ ((defined __cplusplus && 201103 <= __cplusplus) \ || (__TINYC__ && defined __attribute__) \ || (defined __APPLE__ && defined __MACH__ \ ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ : __GNUC__) \ || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ || 1300 <= _MSC_VER) struct alignas_test { char c; char alignas (8) alignas_8; }; char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 ? 1 : -1]; #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_header_working_stdalign_h=yes else $as_nop gl_cv_header_working_stdalign_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; } if test $gl_cv_header_working_stdalign_h = yes; then GL_GENERATE_STDALIGN_H=false else GL_GENERATE_STDALIGN_H=true fi case "$GL_GENERATE_STDALIGN_H" in false) STDALIGN_H='' ;; true) if test -z "$STDALIGN_H"; then STDALIGN_H="${gl_source_base_prefix}stdalign.h" fi ;; *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDALIGN_H; then GL_GENERATE_STDALIGN_H_TRUE= GL_GENERATE_STDALIGN_H_FALSE='#' else GL_GENERATE_STDALIGN_H_TRUE='#' GL_GENERATE_STDALIGN_H_FALSE= fi : if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then GL_GENERATE_STDALIGN_H_TRUE='#' GL_GENERATE_STDALIGN_H_FALSE='#' fi GL_GENERATE_STDARG_H=false NEXT_STDARG_H='' { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 printf %s "checking for va_copy... " >&6; } if test ${gl_cv_func_va_copy+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef va_copy void (*func) (va_list, va_list) = va_copy; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func_va_copy=yes else $as_nop gl_cv_func_va_copy=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 printf "%s\n" "$gl_cv_func_va_copy" >&6; } if test $gl_cv_func_va_copy = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _AIX && !defined __GNUC__ AIX vaccine #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "vaccine" >/dev/null 2>&1 then : gl_aixcc=yes else $as_nop gl_aixcc=no fi rm -rf conftest* if test $gl_aixcc = yes; then GL_GENERATE_STDARG_H=true if test $gl_cv_have_include_next = yes; then gl_cv_next_stdarg_h='<'stdarg.h'>' else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of " >&5 printf %s "checking absolute name of ... " >&6; } if test ${gl_cv_next_stdarg_h+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF case "$host_os" in aix*) gl_absname_cpp="$ac_cpp -C" ;; *) gl_absname_cpp="$ac_cpp" ;; esac case "$host_os" in mingw*) gl_dirsep_regex='[/\\]' ;; *) gl_dirsep_regex='\/' ;; esac gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' gl_header_literal_regex=`echo 'stdarg.h' \ | sed -e "$gl_make_literal_regex_sed"` gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ s|^/[^/]|//&| p q }' gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | sed -n "$gl_absolute_header_sed"` gl_header=$gl_cv_absolute_stdarg_h gl_cv_next_stdarg_h='"'$gl_header'"' fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; } fi NEXT_STDARG_H=$gl_cv_next_stdarg_h if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' gl_next_as_first_directive='<'stdarg.h'>' else # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' gl_next_as_first_directive=$gl_cv_next_stdarg_h fi NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive if test "$gl_cv_next_stdarg_h" = '""'; then gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' NEXT_STDARG_H="$gl_cv_next_stdarg_h" fi else exec 9>&6 6>/dev/null if test ${gl_cv_func___va_copy+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { #ifndef __va_copy error, bail out #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_func___va_copy=yes else $as_nop gl_cv_func___va_copy=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi exec 6>&9 9>&- if test $gl_cv_func___va_copy = yes; then printf "%s\n" "#define va_copy __va_copy" >>confdefs.h else printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h fi fi fi case "$GL_GENERATE_STDARG_H" in false) STDARG_H='' ;; true) if test -z "$STDARG_H"; then STDARG_H="${gl_source_base_prefix}stdarg.h" fi ;; *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDARG_H; then GL_GENERATE_STDARG_H_TRUE= GL_GENERATE_STDARG_H_FALSE='#' else GL_GENERATE_STDARG_H_TRUE='#' GL_GENERATE_STDARG_H_FALSE= fi : if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then GL_GENERATE_STDARG_H_TRUE='#' GL_GENERATE_STDARG_H_FALSE='#' fi if test "$ac_cv_header_stdbool_h" = yes; then case "$host_os" in solaris*) if test -z "$GCC"; then GL_GENERATE_STDBOOL_H=true else GL_GENERATE_STDBOOL_H=false fi ;; *) GL_GENERATE_STDBOOL_H=false ;; esac else GL_GENERATE_STDBOOL_H=true fi if test "$ac_cv_type__Bool" = yes; then HAVE__BOOL=1 else HAVE__BOOL=0 fi case "$GL_GENERATE_STDBOOL_H" in false) STDBOOL_H='' ;; true) if test -z "$STDBOOL_H"; then STDBOOL_H="${gl_source_base_prefix}stdbool.h" fi ;; *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDBOOL_H; then GL_GENERATE_STDBOOL_H_TRUE= GL_GENERATE_STDBOOL_H_FALSE='#' else GL_GENERATE_STDBOOL_H_TRUE='#' GL_GENERATE_STDBOOL_H_FALSE= fi : if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then GL_GENERATE_STDBOOL_H_TRUE='#' GL_GENERATE_STDBOOL_H_FALSE='#' fi case "$GL_GENERATE_STDDEF_H" in false) STDDEF_H='' ;; true) if test -z "$STDDEF_H"; then STDDEF_H="${gl_source_base_prefix}stddef.h" fi ;; *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDDEF_H; then GL_GENERATE_STDDEF_H_TRUE= GL_GENERATE_STDDEF_H_FALSE='#' else GL_GENERATE_STDDEF_H_TRUE='#' GL_GENERATE_STDDEF_H_FALSE= fi : if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then GL_GENERATE_STDDEF_H_TRUE='#' GL_GENERATE_STDDEF_H_FALSE='#' fi case "$GL_GENERATE_STDINT_H" in false) STDINT_H='' ;; true) if test -z "$STDINT_H"; then STDINT_H="${gl_source_base_prefix}stdint.h" fi ;; *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_STDINT_H; then GL_GENERATE_STDINT_H_TRUE= GL_GENERATE_STDINT_H_FALSE='#' else GL_GENERATE_STDINT_H_TRUE='#' GL_GENERATE_STDINT_H_FALSE= fi : if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then GL_GENERATE_STDINT_H_TRUE='#' GL_GENERATE_STDINT_H_FALSE='#' fi case "$GL_GENERATE_LIMITS_H" in false) LIMITS_H='' ;; true) if test -z "$LIMITS_H"; then LIMITS_H="${gl_source_base_prefix}limits.h" fi ;; *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;; esac if $GL_GENERATE_LIMITS_H; then GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_FALSE='#' else GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE= fi : if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_FALSE='#' fi if test $REPLACE_STDIO_READ_FUNCS = 1; then GL_COND_OBJ_STDIO_READ_TRUE= GL_COND_OBJ_STDIO_READ_FALSE='#' else GL_COND_OBJ_STDIO_READ_TRUE='#' GL_COND_OBJ_STDIO_READ_FALSE= fi : if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then GL_COND_OBJ_STDIO_READ_TRUE='#' GL_COND_OBJ_STDIO_READ_FALSE='#' fi if test $REPLACE_STDIO_WRITE_FUNCS = 1; then GL_COND_OBJ_STDIO_WRITE_TRUE= GL_COND_OBJ_STDIO_WRITE_FALSE='#' else GL_COND_OBJ_STDIO_WRITE_TRUE='#' GL_COND_OBJ_STDIO_WRITE_FALSE= fi : if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then GL_COND_OBJ_STDIO_WRITE_TRUE='#' GL_COND_OBJ_STDIO_WRITE_FALSE='#' fi GL_LIBGL_GNULIB_FSCANF=1 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h GL_LIBGL_GNULIB_SCANF=1 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h GL_LIBGL_GNULIB_FGETC=1 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h GL_LIBGL_GNULIB_GETC=1 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h GL_LIBGL_GNULIB_GETCHAR=1 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h GL_LIBGL_GNULIB_FGETS=1 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h GL_LIBGL_GNULIB_FREAD=1 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h GL_LIBGL_GNULIB_FPRINTF=1 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h GL_LIBGL_GNULIB_PRINTF=1 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h GL_LIBGL_GNULIB_VFPRINTF=1 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h GL_LIBGL_GNULIB_VPRINTF=1 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h GL_LIBGL_GNULIB_FPUTC=1 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h GL_LIBGL_GNULIB_PUTC=1 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h GL_LIBGL_GNULIB_PUTCHAR=1 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h GL_LIBGL_GNULIB_FPUTS=1 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h GL_LIBGL_GNULIB_PUTS=1 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h GL_LIBGL_GNULIB_FWRITE=1 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" if test "x$ac_cv_func_strcasecmp" = xyes then : printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h fi if test $ac_cv_func_strcasecmp = no; then HAVE_STRCASECMP=0 fi ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes then : printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h fi if test $ac_cv_func_strncasecmp = yes; then HAVE_STRNCASECMP=1 else HAVE_STRNCASECMP=0 fi ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strncasecmp" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_strncasecmp = no; then HAVE_DECL_STRNCASECMP=0 fi if test $HAVE_STRCASECMP = 0; then GL_COND_OBJ_STRCASECMP_TRUE= GL_COND_OBJ_STRCASECMP_FALSE='#' else GL_COND_OBJ_STRCASECMP_TRUE='#' GL_COND_OBJ_STRCASECMP_FALSE= fi : if test -z "${GL_COND_OBJ_STRCASECMP_TRUE}" && test -z "${GL_COND_OBJ_STRCASECMP_FALSE}"; then GL_COND_OBJ_STRCASECMP_TRUE='#' GL_COND_OBJ_STRCASECMP_FALSE='#' fi if test -z "$GL_COND_OBJ_STRCASECMP_TRUE"; then : : fi if test $HAVE_STRNCASECMP = 0; then GL_COND_OBJ_STRNCASECMP_TRUE= GL_COND_OBJ_STRNCASECMP_FALSE='#' else GL_COND_OBJ_STRNCASECMP_TRUE='#' GL_COND_OBJ_STRNCASECMP_FALSE= fi : if test -z "${GL_COND_OBJ_STRNCASECMP_TRUE}" && test -z "${GL_COND_OBJ_STRNCASECMP_FALSE}"; then GL_COND_OBJ_STRNCASECMP_TRUE='#' GL_COND_OBJ_STRNCASECMP_FALSE='#' fi if test -z "$GL_COND_OBJ_STRNCASECMP_TRUE"; then : : fi ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" if test "x$ac_cv_func_strchrnul" = xyes then : printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h fi if test $ac_cv_func_strchrnul = no; then HAVE_STRCHRNUL=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5 printf %s "checking whether strchrnul works... " >&6; } if test ${gl_cv_func_strchrnul_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __CYGWIN__ #include #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9) Lucky user #endif #else Lucky user #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky user" >/dev/null 2>&1 then : gl_cv_func_strchrnul_works="guessing yes" else $as_nop gl_cv_func_strchrnul_works="guessing no" fi rm -rf conftest* else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* for strchrnul */ int main (void) { const char *buf = "a"; return strchrnul (buf, 'b') != buf + 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_strchrnul_works=yes else $as_nop gl_cv_func_strchrnul_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5 printf "%s\n" "$gl_cv_func_strchrnul_works" >&6; } case "$gl_cv_func_strchrnul_works" in *yes) ;; *) REPLACE_STRCHRNUL=1 ;; esac fi if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then GL_COND_OBJ_STRCHRNUL_TRUE= GL_COND_OBJ_STRCHRNUL_FALSE='#' else GL_COND_OBJ_STRCHRNUL_TRUE='#' GL_COND_OBJ_STRCHRNUL_FALSE= fi : if test -z "${GL_COND_OBJ_STRCHRNUL_TRUE}" && test -z "${GL_COND_OBJ_STRCHRNUL_FALSE}"; then GL_COND_OBJ_STRCHRNUL_TRUE='#' GL_COND_OBJ_STRCHRNUL_FALSE='#' fi if test -z "$GL_COND_OBJ_STRCHRNUL_TRUE"; then : : fi GL_LIBGL_GNULIB_STRCHRNUL=1 printf "%s\n" "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h if test $gl_cv_func_malloc_posix != yes; then REPLACE_STRDUP=1 fi if test $ac_cv_have_decl_strdup = no; then HAVE_DECL_STRDUP=0 fi if test $REPLACE_STRDUP = 1; then GL_COND_OBJ_STRDUP_TRUE= GL_COND_OBJ_STRDUP_FALSE='#' else GL_COND_OBJ_STRDUP_TRUE='#' GL_COND_OBJ_STRDUP_FALSE= fi : if test -z "${GL_COND_OBJ_STRDUP_TRUE}" && test -z "${GL_COND_OBJ_STRDUP_FALSE}"; then GL_COND_OBJ_STRDUP_TRUE='#' GL_COND_OBJ_STRDUP_FALSE='#' fi if test -z "$GL_COND_OBJ_STRDUP_TRUE"; then : : fi GL_LIBGL_GNULIB_STRDUP=1 printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 printf %s "checking for working strerror function... " >&6; } if test ${gl_cv_func_working_strerror+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; # Guess yes on musl systems. *-musl*) gl_cv_func_working_strerror="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { if (!*strerror (-2)) return 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_working_strerror=yes else $as_nop gl_cv_func_working_strerror=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 printf "%s\n" "$gl_cv_func_working_strerror" >&6; } case "$gl_cv_func_working_strerror" in *yes) ;; *) REPLACE_STRERROR=1 ;; esac else REPLACE_STRERROR=1 fi if test $REPLACE_STRERROR = 1; then GL_COND_OBJ_STRERROR_TRUE= GL_COND_OBJ_STRERROR_FALSE='#' else GL_COND_OBJ_STRERROR_TRUE='#' GL_COND_OBJ_STRERROR_FALSE= fi : if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then GL_COND_OBJ_STRERROR_TRUE='#' GL_COND_OBJ_STRERROR_FALSE='#' fi printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h GL_LIBGL_GNULIB_STRERROR=1 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then GL_COND_OBJ_STRERROR_OVERRIDE_TRUE= GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' else GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' GL_COND_OBJ_STRERROR_OVERRIDE_FALSE= fi : if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#' GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#' fi if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then : if test $ac_cv_header_sys_socket_h != yes; then ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" if test "x$ac_cv_header_winsock2_h" = xyes then : printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h fi fi if test "$ac_cv_header_winsock2_h" = yes; then HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 else HAVE_WINSOCK2_H=0 fi fi if test $ac_cv_have_decl_strndup = no; then HAVE_DECL_STRNDUP=0 fi if test $ac_cv_func_strndup = yes; then HAVE_STRNDUP=1 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 printf %s "checking for working strndup... " >&6; } if test ${gl_cv_func_strndup_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case $host_os in aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";; *) gl_cv_func_strndup_works="guessing yes";; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { #if !HAVE_DECL_STRNDUP extern #ifdef __cplusplus "C" #endif char *strndup (const char *, size_t); #endif int result; char *s; s = strndup ("some longer string", 15); free (s); s = strndup ("shorter string", 13); result = s[13] != '\0'; free (s); return result; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_strndup_works=yes else $as_nop gl_cv_func_strndup_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5 printf "%s\n" "$gl_cv_func_strndup_works" >&6; } case $gl_cv_func_strndup_works in *no) REPLACE_STRNDUP=1 ;; esac else HAVE_STRNDUP=0 fi if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then GL_COND_OBJ_STRNDUP_TRUE= GL_COND_OBJ_STRNDUP_FALSE='#' else GL_COND_OBJ_STRNDUP_TRUE='#' GL_COND_OBJ_STRNDUP_FALSE= fi : if test -z "${GL_COND_OBJ_STRNDUP_TRUE}" && test -z "${GL_COND_OBJ_STRNDUP_FALSE}"; then GL_COND_OBJ_STRNDUP_TRUE='#' GL_COND_OBJ_STRNDUP_FALSE='#' fi GL_LIBGL_GNULIB_STRNDUP=1 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h if test $ac_cv_have_decl_strnlen = no; then HAVE_DECL_STRNLEN=0 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 printf %s "checking for working strnlen... " >&6; } if test ${ac_cv_func_strnlen_working+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : # Guess no on AIX systems, yes otherwise. case "$host_os" in aix*) ac_cv_func_strnlen_working=no;; *) ac_cv_func_strnlen_working=yes;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main (void) { #define S "foobar" #define S_LEN (sizeof S - 1) /* At least one implementation is buggy: that of AIX 4.3 would give strnlen (S, 1) == 3. */ int i; for (i = 0; i < S_LEN + 1; ++i) { int expected = i <= S_LEN ? i : S_LEN; if (strnlen (S, i) != expected) return 1; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_func_strnlen_working=yes else $as_nop ac_cv_func_strnlen_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; } test $ac_cv_func_strnlen_working = no && : if test $ac_cv_func_strnlen_working = no; then REPLACE_STRNLEN=1 fi fi if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then GL_COND_OBJ_STRNLEN_TRUE= GL_COND_OBJ_STRNLEN_FALSE='#' else GL_COND_OBJ_STRNLEN_TRUE='#' GL_COND_OBJ_STRNLEN_FALSE= fi : if test -z "${GL_COND_OBJ_STRNLEN_TRUE}" && test -z "${GL_COND_OBJ_STRNLEN_FALSE}"; then GL_COND_OBJ_STRNLEN_TRUE='#' GL_COND_OBJ_STRNLEN_FALSE='#' fi if test -z "$GL_COND_OBJ_STRNLEN_TRUE"; then : : fi GL_LIBGL_GNULIB_STRNLEN=1 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" if test "x$ac_cv_func_strtok_r" = xyes then : printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h fi if test $ac_cv_func_strtok_r = yes; then HAVE_STRTOK_R=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5 printf %s "checking whether strtok_r works... " >&6; } if test ${gl_cv_func_strtok_r_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess no on glibc systems. *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;; # Guess yes on native Windows. mingw*) gl_cv_func_strtok_r_works="guessing yes" ;; *) gl_cv_func_strtok_r_works="guessing yes" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __OPTIMIZE__ # define __OPTIMIZE__ 1 #endif #undef __OPTIMIZE_SIZE__ #undef __NO_INLINE__ #include #include int main (void) { static const char dummy[] = "\177\01a"; char delimiters[] = "xxxxxxxx"; char *save_ptr = (char *) dummy; strtok_r (delimiters, "x", &save_ptr); strtok_r (NULL, "x", &save_ptr); return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_strtok_r_works=yes else $as_nop gl_cv_func_strtok_r_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5 printf "%s\n" "$gl_cv_func_strtok_r_works" >&6; } case "$gl_cv_func_strtok_r_works" in *no) UNDEFINE_STRTOK_R=1 ;; esac else HAVE_STRTOK_R=0 fi if test $ac_cv_have_decl_strtok_r = no; then HAVE_DECL_STRTOK_R=0 fi if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then GL_COND_OBJ_STRTOK_R_TRUE= GL_COND_OBJ_STRTOK_R_FALSE='#' else GL_COND_OBJ_STRTOK_R_TRUE='#' GL_COND_OBJ_STRTOK_R_FALSE= fi : if test -z "${GL_COND_OBJ_STRTOK_R_TRUE}" && test -z "${GL_COND_OBJ_STRTOK_R_FALSE}"; then GL_COND_OBJ_STRTOK_R_TRUE='#' GL_COND_OBJ_STRTOK_R_FALSE='#' fi if test -z "$GL_COND_OBJ_STRTOK_R_TRUE"; then : : fi GL_LIBGL_GNULIB_STRTOK_R=1 printf "%s\n" "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" if test "x$ac_cv_func_strverscmp" = xyes then : printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h fi if test $ac_cv_func_strverscmp = no; then HAVE_STRVERSCMP=0 fi if test $HAVE_STRVERSCMP = 0; then GL_COND_OBJ_STRVERSCMP_TRUE= GL_COND_OBJ_STRVERSCMP_FALSE='#' else GL_COND_OBJ_STRVERSCMP_TRUE='#' GL_COND_OBJ_STRVERSCMP_FALSE= fi : if test -z "${GL_COND_OBJ_STRVERSCMP_TRUE}" && test -z "${GL_COND_OBJ_STRVERSCMP_FALSE}"; then GL_COND_OBJ_STRVERSCMP_TRUE='#' GL_COND_OBJ_STRVERSCMP_FALSE='#' fi if test -z "$GL_COND_OBJ_STRVERSCMP_TRUE"; then : : fi GL_LIBGL_GNULIB_STRVERSCMP=1 printf "%s\n" "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h ac_fn_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_localtime_r" = xyes then : ac_have_decl=1 else $as_nop ac_have_decl=0 fi printf "%s\n" "#define HAVE_DECL_LOCALTIME_R $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_localtime_r = no; then HAVE_DECL_LOCALTIME_R=0 fi if test $ac_cv_func_localtime_r = yes; then HAVE_LOCALTIME_R=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 printf %s "checking whether localtime_r is compatible with its POSIX signature... " >&6; } if test ${gl_cv_time_r_posix+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include int main (void) { /* We don't need to append 'restrict's to the argument types, even though the POSIX signature has the 'restrict's, since C99 says they can't affect type compatibility. */ struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; if (ptr) return 0; /* Check the return type is a pointer. On HP-UX 10 it is 'int'. */ *localtime_r (0, 0); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_time_r_posix=yes else $as_nop gl_cv_time_r_posix=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 printf "%s\n" "$gl_cv_time_r_posix" >&6; } if test $gl_cv_time_r_posix = yes; then REPLACE_LOCALTIME_R=0 else REPLACE_LOCALTIME_R=1 fi else HAVE_LOCALTIME_R=0 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5 printf %s "checking whether localtime_r exists as an inline function... " >&6; } if test ${gl_cv_func_localtime_r_inline+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ #if defined __MINGW32__ # include #endif #include int main (void) { time_t a; struct tm r; localtime_r (&a, &r); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_func_localtime_r_inline=yes else $as_nop gl_cv_func_localtime_r_inline=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5 printf "%s\n" "$gl_cv_func_localtime_r_inline" >&6; } if test $gl_cv_func_localtime_r_inline = yes; then REPLACE_LOCALTIME_R=1 fi fi if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then GL_COND_OBJ_TIME_R_TRUE= GL_COND_OBJ_TIME_R_FALSE='#' else GL_COND_OBJ_TIME_R_TRUE='#' GL_COND_OBJ_TIME_R_FALSE= fi : if test -z "${GL_COND_OBJ_TIME_R_TRUE}" && test -z "${GL_COND_OBJ_TIME_R_FALSE}"; then GL_COND_OBJ_TIME_R_TRUE='#' GL_COND_OBJ_TIME_R_FALSE='#' fi if test -z "$GL_COND_OBJ_TIME_R_TRUE"; then : : fi GL_LIBGL_GNULIB_TIME_R=1 printf "%s\n" "#define GNULIB_TEST_TIME_R 1" >>confdefs.h # On Mac OS X 10.6, localtime loops forever with some time_t values. # See Bug#27706, Bug#27736, and # https://lists.gnu.org/r/bug-gnulib/2017-07/msg00142.html { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether localtime works even near extrema" >&5 printf %s "checking whether localtime works even near extrema... " >&6; } if test ${gl_cv_func_localtime_works+y} then : printf %s "(cached) " >&6 else $as_nop gl_cv_func_localtime_works=yes if test "$cross_compiling" = yes then : gl_cv_func_localtime_works="guessing yes" else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main (void) { time_t t = -67768038400666600; struct tm *tm; char *tz = getenv ("TZ"); if (! (tz && strcmp (tz, "QQQ0") == 0)) return 0; alarm (2); tm = localtime (&t); /* Use TM and *TM to suppress over-optimization. */ return tm && tm->tm_isdst; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : (TZ=QQQ0 ./conftest$EXEEXT) >/dev/null 2>&1 || gl_cv_func_localtime_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_works" >&5 printf "%s\n" "$gl_cv_func_localtime_works" >&6; } if test "$gl_cv_func_localtime_works" = no; then printf "%s\n" "#define HAVE_LOCALTIME_INFLOOP_BUG 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "timezone_t" "ac_cv_type_timezone_t" "#include " if test "x$ac_cv_type_timezone_t" = xyes then : printf "%s\n" "#define HAVE_TIMEZONE_T 1" >>confdefs.h fi if test "$ac_cv_type_timezone_t" = yes; then HAVE_TIMEZONE_T=1 fi if test $HAVE_TIMEZONE_T = 0; then GL_COND_OBJ_TIME_RZ_TRUE= GL_COND_OBJ_TIME_RZ_FALSE='#' else GL_COND_OBJ_TIME_RZ_TRUE='#' GL_COND_OBJ_TIME_RZ_FALSE= fi : if test -z "${GL_COND_OBJ_TIME_RZ_TRUE}" && test -z "${GL_COND_OBJ_TIME_RZ_FALSE}"; then GL_COND_OBJ_TIME_RZ_TRUE='#' GL_COND_OBJ_TIME_RZ_FALSE='#' fi GL_LIBGL_GNULIB_TIME_RZ=1 printf "%s\n" "#define GNULIB_TEST_TIME_RZ 1" >>confdefs.h REPLACE_TIMEGM=0 if test $ac_cv_func_timegm = yes; then if test "$gl_cv_func_working_mktime" != yes; then # Assume that timegm is buggy if mktime is. REPLACE_TIMEGM=1 fi else HAVE_TIMEGM=0 fi if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then GL_COND_OBJ_TIMEGM_TRUE= GL_COND_OBJ_TIMEGM_FALSE='#' else GL_COND_OBJ_TIMEGM_TRUE='#' GL_COND_OBJ_TIMEGM_FALSE= fi : if test -z "${GL_COND_OBJ_TIMEGM_TRUE}" && test -z "${GL_COND_OBJ_TIMEGM_FALSE}"; then GL_COND_OBJ_TIMEGM_TRUE='#' GL_COND_OBJ_TIMEGM_FALSE='#' fi if test -z "$GL_COND_OBJ_TIMEGM_TRUE"; then : : fi GL_LIBGL_GNULIB_TIMEGM=1 printf "%s\n" "#define GNULIB_TEST_TIMEGM 1" >>confdefs.h : REPLACE_TZSET=0 case "$host_os" in mingw*) REPLACE_TZSET=1 ;; esac if test $REPLACE_TZSET = 1; then GL_COND_OBJ_TZSET_TRUE= GL_COND_OBJ_TZSET_FALSE='#' else GL_COND_OBJ_TZSET_TRUE='#' GL_COND_OBJ_TZSET_FALSE= fi : if test -z "${GL_COND_OBJ_TZSET_TRUE}" && test -z "${GL_COND_OBJ_TZSET_FALSE}"; then GL_COND_OBJ_TZSET_TRUE='#' GL_COND_OBJ_TZSET_FALSE='#' fi GL_LIBGL_GNULIB_TZSET=1 printf "%s\n" "#define GNULIB_TEST_TZSET 1" >>confdefs.h if test $ac_cv_have_decl_unsetenv = no; then HAVE_DECL_UNSETENV=0 fi ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" if test "x$ac_cv_func_unsetenv" = xyes then : printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h fi if test $ac_cv_func_unsetenv = no; then HAVE_UNSETENV=0 else HAVE_UNSETENV=1 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 printf %s "checking for unsetenv() return type... " >&6; } if test ${gt_cv_func_unsetenv_ret+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #undef _BSD #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 */ #include extern #ifdef __cplusplus "C" #endif int unsetenv (const char *name); int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gt_cv_func_unsetenv_ret='int' else $as_nop gt_cv_func_unsetenv_ret='void' fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; } if test $gt_cv_func_unsetenv_ret = 'void'; then printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h REPLACE_UNSETENV=1 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 printf %s "checking whether unsetenv obeys POSIX... " >&6; } if test ${gl_cv_func_unsetenv_works+y} then : printf %s "(cached) " >&6 else $as_nop if test "$cross_compiling" = yes then : case "$host_os" in # Guess yes on glibc systems. *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;; esac else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include extern char **environ; $gl_mda_defines int main (void) { char entry1[] = "a=1"; char entry2[] = "b=2"; char *env[] = { entry1, entry2, NULL }; if (putenv ((char *) "a=1")) return 1; if (putenv (entry2)) return 2; entry2[0] = 'a'; unsetenv ("a"); if (getenv ("a")) return 3; if (!unsetenv ("") || errno != EINVAL) return 4; entry2[0] = 'b'; environ = env; if (!getenv ("a")) return 5; entry2[0] = 'a'; unsetenv ("a"); if (getenv ("a")) return 6; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : gl_cv_func_unsetenv_works=yes else $as_nop gl_cv_func_unsetenv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; } case "$gl_cv_func_unsetenv_works" in *yes) ;; *) REPLACE_UNSETENV=1 ;; esac fi if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then GL_COND_OBJ_UNSETENV_TRUE= GL_COND_OBJ_UNSETENV_FALSE='#' else GL_COND_OBJ_UNSETENV_TRUE='#' GL_COND_OBJ_UNSETENV_FALSE= fi : if test -z "${GL_COND_OBJ_UNSETENV_TRUE}" && test -z "${GL_COND_OBJ_UNSETENV_FALSE}"; then GL_COND_OBJ_UNSETENV_TRUE='#' GL_COND_OBJ_UNSETENV_FALSE='#' fi if test -z "$GL_COND_OBJ_UNSETENV_TRUE"; then : fi GL_LIBGL_GNULIB_UNSETENV=1 printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 printf %s "checking for variable-length arrays... " >&6; } if test ${ac_cv_c_vararrays+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC_NO_VLA__ defined #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "defined" >/dev/null 2>&1 then : ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Test for VLA support. This test is partly inspired from examples in the C standard. Use at least two VLA functions to detect the GCC 3.4.3 bug described in: https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html */ #ifdef __STDC_NO_VLA__ syntax error; #else extern int n; int B[100]; int fvla (int m, int C[m][m]); int simple (int count, int all[static count]) { return all[count - 1]; } int fvla (int m, int C[m][m]) { typedef int VLA[m][m]; VLA x; int D[m]; static int (*q)[m] = &B; int (*s)[n] = q; return C && &x[0][0] == &D[0] && &D[0] == s[0]; } #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_vararrays=yes else $as_nop ac_cv_c_vararrays=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -rf conftest* fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 printf "%s\n" "$ac_cv_c_vararrays" >&6; } if test "$ac_cv_c_vararrays" = yes; then printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h elif test "$ac_cv_c_vararrays" = no; then printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h fi if test $ac_cv_func_vasnprintf = no; then libgl_LIBOBJS="$libgl_LIBOBJS vasnprintf.$ac_objext" libgl_LIBOBJS="$libgl_LIBOBJS printf-args.$ac_objext" libgl_LIBOBJS="$libgl_LIBOBJS printf-parse.$ac_objext" libgl_LIBOBJS="$libgl_LIBOBJS asnprintf.$ac_objext" if test $ac_cv_func_vasnprintf = yes; then printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" if test "x$ac_cv_type_ptrdiff_t" = xyes then : else $as_nop printf "%s\n" "#define ptrdiff_t long" >>confdefs.h fi fi ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" if test "x$ac_cv_func_vasprintf" = xyes then : printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h fi if test $ac_cv_func_vasprintf = no; then libgl_LIBOBJS="$libgl_LIBOBJS vasprintf.$ac_objext" libgl_LIBOBJS="$libgl_LIBOBJS asprintf.$ac_objext" if test $ac_cv_func_vasprintf = yes; then REPLACE_VASPRINTF=1 else HAVE_VASPRINTF=0 fi fi GL_LIBGL_GNULIB_VASPRINTF=1 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" : printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes then : printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h fi : : XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format" # End of code from modules gltests_libdeps= gltests_ltlibdeps= gl_source_base='lib/gl/tests' gl_source_base_prefix= libgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS gl_module_indicator_condition=$libgltests_WITNESS printf "%s\n" "#define GNULIB_NO_VLA 1" >>confdefs.h if test "$ac_cv_libgcrypt" != yes; then as_fn_error $? "Cannot find libgcrypt" "$LINENO" 5 fi # Checks for library functions. ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" if test "x$ac_cv_func_signal" = xyes then : printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" if test "x$ac_cv_func_select" = xyes then : printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext" if test "x$ac_cv_func_ngettext" = xyes then : printf "%s\n" "#define HAVE_NGETTEXT 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes then : printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" if test "x$ac_cv_func_getpwnam" = xyes then : printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" if test "x$ac_cv_func_getuid" = xyes then : printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "res_query" "ac_cv_func_res_query" if test "x$ac_cv_func_res_query" = xyes then : printf "%s\n" "#define HAVE_RES_QUERY 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 printf %s "checking for library containing socket... " >&6; } if test ${ac_cv_search_socket+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char socket (); int main (void) { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_socket+y} then : break fi done if test ${ac_cv_search_socket+y} then : else $as_nop ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 printf "%s\n" "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 printf %s "checking for library containing gethostbyname... " >&6; } if test ${ac_cv_search_gethostbyname+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char gethostbyname (); int main (void) { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_gethostbyname+y} then : break fi done if test ${ac_cv_search_gethostbyname+y} then : else $as_nop ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # BSD systems deliver res_query in libc. # Most of them do not even offer libresolv. if test "$ac_cv_func_res_query" != yes; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libresolv-prefix was given. if test ${with_libresolv_prefix+y} then : withval=$with_libresolv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBRESOLV= LTLIBRESOLV= INCRESOLV= LIBRESOLV_PREFIX= HAVE_LIBRESOLV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='resolv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBRESOLV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBRESOLV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$found_so" else LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$found_a" else LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'resolv'; then LIBRESOLV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'resolv'; then LIBRESOLV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'resolv'; then LIBRESOLV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCRESOLV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCRESOLV="${INCRESOLV}${INCRESOLV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBRESOLV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBRESOLV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$dep" LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }$dep" ;; esac done fi else LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }-l$name" LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBRESOLV="${LIBRESOLV}${LIBRESOLV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBRESOLV="${LTLIBRESOLV}${LTLIBRESOLV:+ }-R$found_dir" done fi ac_save_CPPFLAGS="$CPPFLAGS" for element in $INCRESOLV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libresolv" >&5 printf %s "checking for libresolv... " >&6; } if test ${ac_cv_libresolv+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_LIBS="$LIBS" case " $LIBRESOLV" in *" -l"*) LIBS="$LIBS $LIBRESOLV" ;; *) LIBS="$LIBRESOLV $LIBS" ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { res_query (0, 0, 0, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_libresolv=yes else $as_nop ac_cv_libresolv='no' fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libresolv" >&5 printf "%s\n" "$ac_cv_libresolv" >&6; } if test "$ac_cv_libresolv" = yes; then HAVE_LIBRESOLV=yes printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libresolv" >&5 printf %s "checking how to link with libresolv... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRESOLV" >&5 printf "%s\n" "$LIBRESOLV" >&6; } else HAVE_LIBRESOLV=no CPPFLAGS="$ac_save_CPPFLAGS" LIBRESOLV= LTLIBRESOLV= LIBRESOLV_PREFIX= fi # Check again, with newly acquired knowledge. if test "$ac_cv_libresolv" = yes; then printf "%s\n" "#define HAVE_RES_QUERY 1" >>confdefs.h fi fi # Shishid needs a logging mechanism, and right now there is no # alternative to syslog. A 'fprintf(stderr,...)' mechanism may be # useful. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing syslog" >&5 printf %s "checking for library containing syslog... " >&6; } if test ${ac_cv_search_syslog+y} then : printf %s "(cached) " >&6 else $as_nop ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ char syslog (); int main (void) { return syslog (); ; return 0; } _ACEOF for ac_lib in '' syslog do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_syslog=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_syslog+y} then : break fi done if test ${ac_cv_search_syslog+y} then : else $as_nop ac_cv_search_syslog=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_syslog" >&5 printf "%s\n" "$ac_cv_search_syslog" >&6; } ac_res=$ac_cv_search_syslog if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi if test "$ac_cv_search_syslog" != "no"; then ENABLE_SHISHID_TRUE= ENABLE_SHISHID_FALSE='#' else ENABLE_SHISHID_TRUE='#' ENABLE_SHISHID_FALSE= fi # Check for PAM # Check whether --enable-pam was given. if test ${enable_pam+y} then : enableval=$enable_pam; fi if test "$enable_pam" != "no"; then ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" if test "x$ac_cv_header_security_pam_appl_h" = xyes then : printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default" if test "x$ac_cv_header_security_pam_ext_h" = xyes then : printf "%s\n" "#define HAVE_SECURITY_PAM_EXT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "security/pam_modules.h" "ac_cv_header_security_pam_modules_h" " #include #if HAVE_SECURITY_PAM_APPL_H #include #endif " if test "x$ac_cv_header_security_pam_modules_h" = xyes then : printf "%s\n" "#define HAVE_SECURITY_PAM_MODULES_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "security/openpam.h" "ac_cv_header_security_openpam_h" " #include #if HAVE_SECURITY_PAM_APPL_H #include #endif " if test "x$ac_cv_header_security_openpam_h" = xyes then : printf "%s\n" "#define HAVE_SECURITY_OPENPAM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "security/_pam_macros.h" "ac_cv_header_security__pam_macros_h" "$ac_includes_default" if test "x$ac_cv_header_security__pam_macros_h" = xyes then : printf "%s\n" "#define HAVE_SECURITY__PAM_MACROS_H 1" >>confdefs.h fi enable_pam=$ac_cv_header_security_pam_modules_h fi if test "$enable_pam" != "no"; then PAM_SHISHI=pam_shishi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The Shishi PAM module will not be built." >&5 printf "%s\n" "$as_me: WARNING: The Shishi PAM module will not be built." >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PAM should be used" >&5 printf %s "checking if PAM should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pam" >&5 printf "%s\n" "$enable_pam" >&6; } PAMDIR="\$(exec_prefix)/lib/security" # Check whether --with-pam-dir was given. if test ${with_pam_dir+y} then : withval=$with_pam_dir; case "${withval}" in /*) PAMDIR="${withval}";; ./*|../*) as_fn_error $? "Bad value for --with-pam-dir" "$LINENO" 5;; *) PAMDIR="\$(exec_prefix)/lib/${withval}";; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PAM installation path $PAMDIR" >&5 printf "%s\n" "$as_me: PAM installation path $PAMDIR" >&6;} # Check for IPv6 # Check whether --enable-ipv6 was given. if test ${enable_ipv6+y} then : enableval=$enable_ipv6; fi if test "$enable_ipv6" != "no"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 printf %s "checking for IPv4 sockets... " >&6; } if test ${gl_cv_socket_ipv4+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif int main (void) { int x = AF_INET; struct in_addr y; struct sockaddr_in z; if (&x && &y && &z) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_socket_ipv4=yes else $as_nop gl_cv_socket_ipv4=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 printf "%s\n" "$gl_cv_socket_ipv4" >&6; } if test $gl_cv_socket_ipv4 = yes; then printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 printf %s "checking for IPv6 sockets... " >&6; } if test ${gl_cv_socket_ipv6+y} then : printf %s "(cached) " >&6 else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #ifdef HAVE_NETINET_IN_H #include #endif #ifdef HAVE_WINSOCK2_H #include #endif #ifdef HAVE_WS2TCPIP_H #include #endif int main (void) { int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; if (&x && &y && &z) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_socket_ipv6=yes else $as_nop gl_cv_socket_ipv6=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 printf "%s\n" "$gl_cv_socket_ipv6" >&6; } if test $gl_cv_socket_ipv6 = yes; then printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h fi enable_ipv6=$gl_cv_socket_ipv6 fi if test "$enable_ipv6" != "no"; then printf "%s\n" "#define WITH_IPV6 1" >>confdefs.h else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support is disabled." >&5 printf "%s\n" "$as_me: WARNING: IPv6 support is disabled." >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 should be used" >&5 printf %s "checking if IPv6 should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ipv6" >&5 printf "%s\n" "$enable_ipv6" >&6; } # Check for idn # Check whether --with-stringprep was given. if test ${with_stringprep+y} then : withval=$with_stringprep; stringprep=$withval else $as_nop stringprep=yes fi if test "$stringprep" != "no"; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libidn-prefix was given. if test ${with_libidn_prefix+y} then : withval=$with_libidn_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBIDN= LTLIBIDN= INCIDN= LIBIDN_PREFIX= HAVE_LIBIDN= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='idn ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBIDN="${LIBIDN}${LIBIDN:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBIDN; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBIDN; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so" else LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBIDN="${LIBIDN}${LIBIDN:+ }$found_a" else LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'idn'; then LIBIDN_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'idn'; then LIBIDN_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'idn'; then LIBIDN_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCIDN; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCIDN="${INCIDN}${INCIDN:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBIDN; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBIDN="${LIBIDN}${LIBIDN:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBIDN; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBIDN="${LIBIDN}${LIBIDN:+ }$dep" LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$dep" ;; esac done fi else LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name" LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBIDN="${LIBIDN}${LIBIDN:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBIDN="${LIBIDN}${LIBIDN:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-R$found_dir" done fi ac_save_CPPFLAGS="$CPPFLAGS" for element in $INCIDN; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn" >&5 printf %s "checking for libidn... " >&6; } if test ${ac_cv_libidn+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_LIBS="$LIBS" case " $LIBIDN" in *" -l"*) LIBS="$LIBS $LIBIDN" ;; *) LIBS="$LIBIDN $LIBS" ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { stringprep_check_version (0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_libidn=yes else $as_nop ac_cv_libidn='no' fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libidn" >&5 printf "%s\n" "$ac_cv_libidn" >&6; } if test "$ac_cv_libidn" = yes; then HAVE_LIBIDN=yes printf "%s\n" "#define HAVE_LIBIDN 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libidn" >&5 printf %s "checking how to link with libidn... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBIDN" >&5 printf "%s\n" "$LIBIDN" >&6; } else HAVE_LIBIDN=no CPPFLAGS="$ac_save_CPPFLAGS" LIBIDN= LTLIBIDN= LIBIDN_PREFIX= fi fi if test "$ac_cv_libidn" != yes; then stringprep=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found. String process disabled." >&5 printf "%s\n" "$as_me: WARNING: Libidn not found. String process disabled." >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if String processing support via Libidn should be built" >&5 printf %s "checking if String processing support via Libidn should be built... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $stringprep" >&5 printf "%s\n" "$stringprep" >&6; } # Check for libtasn1 use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libtasn1-prefix was given. if test ${with_libtasn1_prefix+y} then : withval=$with_libtasn1_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBTASN1= LTLIBTASN1= INCTASN1= LIBTASN1_PREFIX= HAVE_LIBTASN1= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='tasn1 ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBTASN1; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBTASN1; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_so" else LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$found_a" else LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'tasn1'; then LIBTASN1_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'tasn1'; then LIBTASN1_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'tasn1'; then LIBTASN1_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCTASN1; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCTASN1="${INCTASN1}${INCTASN1:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBTASN1; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBTASN1; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$dep" LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }$dep" ;; esac done fi else LIBTASN1="${LIBTASN1}${LIBTASN1:+ }-l$name" LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBTASN1="${LIBTASN1}${LIBTASN1:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBTASN1="${LTLIBTASN1}${LTLIBTASN1:+ }-R$found_dir" done fi ac_save_CPPFLAGS="$CPPFLAGS" for element in $INCTASN1; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5 printf %s "checking for libtasn1... " >&6; } if test ${ac_cv_libtasn1+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_LIBS="$LIBS" case " $LIBTASN1" in *" -l"*) LIBS="$LIBS $LIBTASN1" ;; *) LIBS="$LIBTASN1 $LIBS" ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { asn1_strerror (0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_libtasn1=yes else $as_nop ac_cv_libtasn1='no' fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libtasn1" >&5 printf "%s\n" "$ac_cv_libtasn1" >&6; } if test "$ac_cv_libtasn1" = yes; then HAVE_LIBTASN1=yes printf "%s\n" "#define HAVE_LIBTASN1 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libtasn1" >&5 printf %s "checking how to link with libtasn1... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBTASN1" >&5 printf "%s\n" "$LIBTASN1" >&6; } else HAVE_LIBTASN1=no CPPFLAGS="$ac_save_CPPFLAGS" LIBTASN1= LTLIBTASN1= LIBTASN1_PREFIX= fi if test "$ac_cv_libtasn1" != "yes"; then as_fn_error $? "Libtasn1 not found." "$LINENO" 5 fi # Check for gnutls. # Check whether --enable-starttls was given. if test ${enable_starttls+y} then : enableval=$enable_starttls; starttls=$enableval else $as_nop starttls=yes fi if test "$starttls" != "no"; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libgnutls-prefix was given. if test ${with_libgnutls_prefix+y} then : withval=$with_libgnutls_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" additional_libdir2="$withval/$acl_libdirstem2" additional_libdir3="$withval/$acl_libdirstem3" fi fi fi if test "X$additional_libdir2" = "X$additional_libdir"; then additional_libdir2= fi if test "X$additional_libdir3" = "X$additional_libdir"; then additional_libdir3= fi LIBGNUTLS= LTLIBGNUTLS= INCGNUTLS= LIBGNUTLS_PREFIX= HAVE_LIBGNUTLS= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='gnutls ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do if test "X$found_dir" = "X"; then eval dir=\$$additional_libdir_variable if test -n "$dir"; then if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi fi done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBGNUTLS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBGNUTLS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" else LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a" else LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'gnutls'; then LIBGNUTLS_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'gnutls'; then LIBGNUTLS_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem3 | */$acl_libdirstem3/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` if test "$name" = 'gnutls'; then LIBGNUTLS_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCGNUTLS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBGNUTLS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBGNUTLS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$dependency_libdir"; then LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$dependency_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dep=`echo "X$dep" | sed -e 's/^X-l//'` if test "X$dep" != Xc \ || case $host_os in linux* | gnu* | k*bsd*-gnu) false ;; *) true ;; esac; then names_next_round="$names_next_round $dep" fi ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep" LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep" ;; esac done fi else LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name" LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir" done fi ac_save_CPPFLAGS="$CPPFLAGS" for element in $INCGNUTLS; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgnutls" >&5 printf %s "checking for libgnutls... " >&6; } if test ${ac_cv_libgnutls+y} then : printf %s "(cached) " >&6 else $as_nop ac_save_LIBS="$LIBS" case " $LIBGNUTLS" in *" -l"*) LIBS="$LIBS $LIBGNUTLS" ;; *) LIBS="$LIBGNUTLS $LIBS" ;; esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { gnutls_check_version (0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_libgnutls=yes else $as_nop ac_cv_libgnutls='no' fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgnutls" >&5 printf "%s\n" "$ac_cv_libgnutls" >&6; } if test "$ac_cv_libgnutls" = yes; then HAVE_LIBGNUTLS=yes printf "%s\n" "#define HAVE_LIBGNUTLS 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libgnutls" >&5 printf %s "checking how to link with libgnutls... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS" >&5 printf "%s\n" "$LIBGNUTLS" >&6; } else HAVE_LIBGNUTLS=no CPPFLAGS="$ac_save_CPPFLAGS" LIBGNUTLS= LTLIBGNUTLS= LIBGNUTLS_PREFIX= fi if test "$ac_cv_libgnutls" != yes; then starttls=no { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GnuTLS not found. STARTTLS disabled." >&5 printf "%s\n" "$as_me: WARNING: GnuTLS not found. STARTTLS disabled." >&2;} else starttls=yes fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if non-standard STARTTLS support should be enabled" >&5 printf %s "checking if non-standard STARTTLS support should be enabled... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $starttls" >&5 printf "%s\n" "$starttls" >&6; } if test "$starttls" != "no"; then printf "%s\n" "#define USE_STARTTLS 1" >>confdefs.h fi if test "$starttls" != "no"; then STARTTLS_TRUE= STARTTLS_FALSE='#' else STARTTLS_TRUE='#' STARTTLS_FALSE= fi # Let people enable/disable various encryption/checksum types. # DES # Check whether --enable-des was given. if test ${enable_des+y} then : enableval=$enable_des; enable_des=$enableval else $as_nop enable_des=yes fi if test "$enable_des" != "no"; then DES_TRUE= DES_FALSE='#' else DES_TRUE='#' DES_FALSE= fi if test "$enable_des" != "no"; then printf "%s\n" "#define WITH_DES 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DES related encryption/checksum types should be used" >&5 printf %s "checking if DES related encryption/checksum types should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_des" >&5 printf "%s\n" "$enable_des" >&6; } # 3DES # Check whether --enable-3des was given. if test ${enable_3des+y} then : enableval=$enable_3des; enable_3des=$enableval else $as_nop enable_3des=yes fi if test "$enable_3des" != "no"; then DES3_TRUE= DES3_FALSE='#' else DES3_TRUE='#' DES3_FALSE= fi if test "$enable_3des" != "no"; then printf "%s\n" "#define WITH_3DES 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 3DES encryption/checksum type should be used" >&5 printf %s "checking if 3DES encryption/checksum type should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_3des" >&5 printf "%s\n" "$enable_3des" >&6; } # AES # Check whether --enable-aes was given. if test ${enable_aes+y} then : enableval=$enable_aes; enable_aes=$enableval else $as_nop enable_aes=yes fi if test "$enable_aes" != "no"; then AES_TRUE= AES_FALSE='#' else AES_TRUE='#' AES_FALSE= fi if test "$enable_aes" != "no"; then printf "%s\n" "#define WITH_AES 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if AES encryption/checksum types should be used" >&5 printf %s "checking if AES encryption/checksum types should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_aes" >&5 printf "%s\n" "$enable_aes" >&6; } # MD: MD4/MD5 # Check whether --enable-md was given. if test ${enable_md+y} then : enableval=$enable_md; enable_md=$enableval else $as_nop enable_md=yes fi if test "$enable_md" != "no"; then MD_TRUE= MD_FALSE='#' else MD_TRUE='#' MD_FALSE= fi if test "$enable_md" != "no"; then printf "%s\n" "#define WITH_MD 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if unkeyed MD checksum types should be used" >&5 printf %s "checking if unkeyed MD checksum types should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_md" >&5 printf "%s\n" "$enable_md" >&6; } # NULL-encryption # Check whether --enable-null was given. if test ${enable_null+y} then : enableval=$enable_null; enable_null=$enableval else $as_nop enable_null=yes fi if test "$enable_null" != "no"; then NULL_TRUE= NULL_FALSE='#' else NULL_TRUE='#' NULL_FALSE= fi if test "$enable_null" != "no"; then printf "%s\n" "#define WITH_NULL 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if dummy NULL encryption/checksum type should be used" >&5 printf %s "checking if dummy NULL encryption/checksum type should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_null" >&5 printf "%s\n" "$enable_null" >&6; } # ARCFOUR # Check whether --enable-arcfour was given. if test ${enable_arcfour+y} then : enableval=$enable_arcfour; enable_arcfour=$enableval else $as_nop enable_arcfour=yes fi if test "$enable_arcfour" != "no"; then ARCFOUR_TRUE= ARCFOUR_FALSE='#' else ARCFOUR_TRUE='#' ARCFOUR_FALSE= fi if test "$enable_arcfour" != "no"; then printf "%s\n" "#define WITH_ARCFOUR 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ARCFOUR encryption/checksum type should be used" >&5 printf %s "checking if ARCFOUR encryption/checksum type should be used... " >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_arcfour" >&5 printf "%s\n" "$enable_arcfour" >&6; } # Location of configuration directory. CONFDIR="\$(sysconfdir)/\$(PACKAGE)" # Check whether --with-conf-dir was given. if test ${with_conf_dir+y} then : withval=$with_conf_dir; case "${withval}" in /*) CONFDIR="${withval}";; ./*|../*) as_fn_error $? "Bad value for --with-conf-dir" "$LINENO" 5;; *) CONFDIR="\$(sysconfdir)/${withval}";; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuration files will be stored in $CONFDIR" >&5 printf "%s\n" "$as_me: configuration files will be stored in $CONFDIR" >&6;} # Location of skeleton directory. SKELDIR="\$(sysconfdir)/\$(PACKAGE)" # Check whether --with-skel-dir was given. if test ${with_skel_dir+y} then : withval=$with_skel_dir; case "${withval}" in /*) SKELDIR="${withval}";; ./*|../*) as_fn_error $? "Bad value for --with-skel-dir" "$LINENO" 5;; *) SKELDIR="\$(sysconfdir)/${withval}";; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: user template configuration file in $SKELDIR" >&5 printf "%s\n" "$as_me: user template configuration file in $SKELDIR" >&6;} # Location of host key lookup file. KEYDIR="\$(sysconfdir)/\$(PACKAGE)" # Check whether --with-key-dir was given. if test ${with_key_dir+y} then : withval=$with_key_dir; case "${withval}" in /*) KEYDIR="${withval}";; ./*|../*) as_fn_error $? "Bad value for --with-key-dir" "$LINENO" 5;; *) KEYDIR="\$(sysconfdir)/${withval}";; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: host keys will be stored in $KEYDIR" >&5 printf "%s\n" "$as_me: host keys will be stored in $KEYDIR" >&6;} # Location of Shisa database. DBDIR="\$(localstatedir)/\$(PACKAGE)" # Check whether --with-db-dir was given. if test ${with_db_dir+y} then : withval=$with_db_dir; case "${withval}" in /*) DBDIR="${withval}";; ./*|../*) as_fn_error $? "Bad value for --with-db-dir" "$LINENO" 5;; *) DBDIR="\$(localstatedir)/${withval}";; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: user database root path $DBDIR" >&5 printf "%s\n" "$as_me: user database root path $DBDIR" >&6;} # Some select fixes. printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h printf "%s\n" "#define xalloc_die shishi_xalloc_die" >>confdefs.h # Activation of additional compiler warnings. # Check whether --enable-gcc-warnings was given. if test ${enable_gcc_warnings+y} then : enableval=$enable_gcc_warnings; case $enableval in yes|no) ;; *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; esac gl_gcc_warnings=$enableval else $as_nop gl_gcc_warnings=no fi if test "$gl_gcc_warnings" = yes; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_warn_c__Werror__Wunknown_warning_option=yes else $as_nop gl_cv_warn_c__Werror__Wunknown_warning_option=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes then : gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' else $as_nop gl_unknown_warnings_are_errors= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles " >&5 printf %s "checking whether C compiler handles ... " >&6; } if test ${gl_cv_warn_c_+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_warn_c_=yes else $as_nop gl_cv_warn_c_=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c_" >&5 printf "%s\n" "$gl_cv_warn_c_" >&6; } if test "x$gl_cv_warn_c_" = xyes then : as_fn_append WERROR_CFLAGS " " fi # Put -Werror here, via cfg.mk. nw="$nw -Wsystem-headers" # Ignore errors in system headers nw="$nw -Wlogical-op" # Too many false positives nw="$nw -Wunsafe-loop-optimizations" # Too many warnings for now nw="$nw -Wstrict-overflow" # Don't know how to avoid nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=format" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=malloc" # Is it worth using attributes? ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$GCC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; } if test ${gl_cv_cc_nomfi_supported+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_cc_nomfi_supported=yes else $as_nop gl_cv_cc_nomfi_supported=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; } if test "$gl_cv_cc_nomfi_supported" = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; } if test ${gl_cv_cc_nomfi_needed+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wextra -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f (void) { typedef struct { int a; int b; } s_t; s_t s1 = { 0, }; return s1.b; } int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_cc_nomfi_needed=no else $as_nop gl_cv_cc_nomfi_needed=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 printf %s "checking whether -Wuninitialized is supported... " >&6; } if test ${gl_cv_cc_uninitialized_supported+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror -Wuninitialized" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : gl_cv_cc_uninitialized_supported=yes else $as_nop gl_cv_cc_uninitialized_supported=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; } fi # List all gcc warning categories. # To compare this list to your installed GCC's, run this Bash command: # # comm -3 \ # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \ # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \ # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort) ws= for gl_manywarn_item in -fanalyzer -fno-common \ -Wall \ -Warith-conversion \ -Wbad-function-cast \ -Wcast-align=strict \ -Wdate-time \ -Wdisabled-optimization \ -Wdouble-promotion \ -Wduplicated-branches \ -Wduplicated-cond \ -Wextra \ -Wformat-signedness \ -Winit-self \ -Winline \ -Winvalid-pch \ -Wlogical-op \ -Wmissing-declarations \ -Wmissing-include-dirs \ -Wmissing-prototypes \ -Wnested-externs \ -Wnull-dereference \ -Wold-style-definition \ -Wopenmp-simd \ -Woverlength-strings \ -Wpacked \ -Wpointer-arith \ -Wshadow \ -Wstack-protector \ -Wstrict-overflow \ -Wstrict-prototypes \ -Wsuggest-attribute=cold \ -Wsuggest-attribute=const \ -Wsuggest-attribute=format \ -Wsuggest-attribute=malloc \ -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=pure \ -Wsuggest-final-methods \ -Wsuggest-final-types \ -Wsync-nand \ -Wsystem-headers \ -Wtrampolines \ -Wuninitialized \ -Wunknown-pragmas \ -Wunsafe-loop-optimizations \ -Wunused-macros \ -Wvariadic-macros \ -Wvector-operation-performance \ -Wvla \ -Wwrite-strings \ \ ; do as_fn_append ws " $gl_manywarn_item" done # gcc --help=warnings outputs an unusual form for these options; list # them here so that the above 'comm' command doesn't report a false match. as_fn_append ws ' -Warray-bounds=2' as_fn_append ws ' -Wattribute-alias=2' as_fn_append ws ' -Wbidi-chars=any,ucn' as_fn_append ws ' -Wformat-overflow=2' as_fn_append ws ' -Wformat=2' as_fn_append ws ' -Wformat-truncation=2' as_fn_append ws ' -Wimplicit-fallthrough=5' as_fn_append ws ' -Wshift-overflow=2' as_fn_append ws ' -Wuse-after-free=3' as_fn_append ws ' -Wunused-const-variable=2' as_fn_append ws ' -Wvla-larger-than=4031' # These are needed for older GCC versions. if test -n "$GCC"; then case `($CC --version) 2>/dev/null` in 'gcc (GCC) '[0-3].* | \ 'gcc (GCC) '4.[0-7].*) as_fn_append ws ' -fdiagnostics-show-option' as_fn_append ws ' -funit-at-a-time' ;; esac fi # Disable specific options as needed. if test "$gl_cv_cc_nomfi_needed" = yes; then as_fn_append ws ' -Wno-missing-field-initializers' fi if test "$gl_cv_cc_uninitialized_supported" = no; then as_fn_append ws ' -Wno-uninitialized' fi # This warning have too many false alarms in GCC 11.2.1. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713 as_fn_append ws ' -Wno-analyzer-malloc-leak' ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu gl_warn_set= set x $ws; shift for gl_warn_item do case " $nw " in *" $gl_warn_item "*) ;; *) as_fn_append gl_warn_set " $gl_warn_item" ;; esac done ws=$gl_warn_set for w in $ws; do as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh` gl_positive="$w" case $gl_positive in -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; esac { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 printf %s "checking whether C compiler handles $w... " >&6; } if eval test \${$as_gl_Warn+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$as_gl_Warn=yes" else $as_nop eval "$as_gl_Warn=no" fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi eval ac_res=\$$as_gl_Warn { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 printf "%s\n" "$ac_res" >&6; } if eval test \"x\$"$as_gl_Warn"\" = x"yes" then : as_fn_append WARN_CFLAGS " $w" fi done # Disable some, but evaluate these as the project moves on. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5 printf %s "checking whether C compiler handles -Wno-unused-parameter... " >&6; } if test ${gl_cv_warn_c__Wno_unused_parameter+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_warn_c__Wno_unused_parameter=yes else $as_nop gl_cv_warn_c__Wno_unused_parameter=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5 printf "%s\n" "$gl_cv_warn_c__Wno_unused_parameter" >&6; } if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes then : as_fn_append WARN_CFLAGS " -Wno-unused-parameter" fi # Too many warnings for now { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-implicit-fallthrough" >&5 printf %s "checking whether C compiler handles -Wno-implicit-fallthrough... " >&6; } if test ${gl_cv_warn_c__Wno_implicit_fallthrough+y} then : printf %s "(cached) " >&6 else $as_nop gl_save_compiler_FLAGS="$CFLAGS" as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wimplicit-fallthrough" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : gl_cv_warn_c__Wno_implicit_fallthrough=yes else $as_nop gl_cv_warn_c__Wno_implicit_fallthrough=no fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$gl_save_compiler_FLAGS" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_implicit_fallthrough" >&5 printf "%s\n" "$gl_cv_warn_c__Wno_implicit_fallthrough" >&6; } if test "x$gl_cv_warn_c__Wno_implicit_fallthrough" = xyes then : as_fn_append WARN_CFLAGS " -Wno-implicit-fallthrough" fi # Too useful not to use fi ac_config_files="$ac_config_files Makefile db/Makefile doc/Makefile doc/cyclo/Makefile doc/reference/Makefile examples/Makefile extra/Makefile extra/pam_shishi/Makefile extra/rsh-redone/Makefile lib/Makefile lib/gl/Makefile lib/shishi-version.h po/Makefile.in shisa.conf shishi.conf shishi.pc shishi.skel src/Makefile src/gl/Makefile tests/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi CONFIG_INCLUDE=config.h gl_libobjs= gl_ltlibobjs= gl_libobjdeps= if test -n "$gl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi gl_LIBOBJS=$gl_libobjs gl_LTLIBOBJS=$gl_ltlibobjs gl_LIBOBJDEPS=$gl_libobjdeps gltests_libobjs= gltests_ltlibobjs= gltests_libobjdeps= if test -n "$gltests_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gltests_libobjs="$gltests_libobjs $i.$ac_objext" gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi gltests_LIBOBJS=$gltests_libobjs gltests_LTLIBOBJS=$gltests_ltlibobjs gltests_LIBOBJDEPS=$gltests_libobjdeps if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi libgl_libobjs= libgl_ltlibobjs= libgl_libobjdeps= if test -n "$libgl_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' for i in `for i in $libgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do libgl_libobjs="$libgl_libobjs $i.$ac_objext" libgl_ltlibobjs="$libgl_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` libgl_libobjdeps="$libgl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi libgl_LIBOBJS=$libgl_libobjs libgl_LTLIBOBJS=$libgl_ltlibobjs libgl_LIBOBJDEPS=$libgl_libobjdeps libgltests_libobjs= libgltests_ltlibobjs= libgltests_libobjdeps= if test -n "$libgltests_LIBOBJS"; then # Remove the extension. sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' for i in `for i in $libgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do libgltests_libobjs="$libgltests_libobjs $i.$ac_objext" libgltests_ltlibobjs="$libgltests_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` libgltests_libobjdeps="$libgltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi libgltests_LIBOBJS=$libgltests_libobjs libgltests_LTLIBOBJS=$libgltests_ltlibobjs libgltests_LIBOBJDEPS=$libgltests_libobjdeps if test -z "${ENABLE_SHISHID_TRUE}" && test -z "${ENABLE_SHISHID_FALSE}"; then as_fn_error $? "conditional \"ENABLE_SHISHID\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${STARTTLS_TRUE}" && test -z "${STARTTLS_FALSE}"; then as_fn_error $? "conditional \"STARTTLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DES_TRUE}" && test -z "${DES_FALSE}"; then as_fn_error $? "conditional \"DES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DES3_TRUE}" && test -z "${DES3_FALSE}"; then as_fn_error $? "conditional \"DES3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AES_TRUE}" && test -z "${AES_FALSE}"; then as_fn_error $? "conditional \"AES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${MD_TRUE}" && test -z "${MD_FALSE}"; then as_fn_error $? "conditional \"MD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${NULL_TRUE}" && test -z "${NULL_FALSE}"; then as_fn_error $? "conditional \"NULL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ARCFOUR_TRUE}" && test -z "${ARCFOUR_FALSE}"; then as_fn_error $? "conditional \"ARCFOUR\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi # Reset variables that may have inherited troublesome values from # the environment. # IFS needs to be set, to space, tab, and newline, in precisely that order. # (If _AS_PATH_WALK were called with IFS unset, it would have the # side effect of setting IFS to empty, thus disabling word splitting.) # Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl IFS=" "" $as_nl" PS1='$ ' PS2='> ' PS4='+ ' # Ensure predictable behavior from utilities with locale-dependent output. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # We cannot yet rely on "unset" to work, but we need these variables # to be unset--not just set to an empty or harmless value--now, to # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct # also avoids known problems related to "unset" and subshell syntax # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH do eval test \${$as_var+y} \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done # Ensure that fds 0, 1, and 2 are open. if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null then : eval 'as_fn_append () { eval $1+=\$2 }' else $as_nop as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null then : eval 'as_fn_arith () { as_val=$(( $* )) }' else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # Determine whether it's possible to make 'echo' print without a newline. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed # for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac # For backward compatibility with old third-party macros, we provide # the shell variables $as_echo and $as_echo_n. New code should use # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. as_echo='printf %s\n' as_echo_n='printf %s' rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by GNU Shishi $as_me 1.0.3, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_links="$ac_config_links" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration links: $config_links Configuration commands: $config_commands Report bugs to . GNU Shishi home page: . General help using GNU software: ." _ACEOF ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ GNU Shishi config.status 1.0.3 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX printf "%s\n" "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" GNUmakefile=$GNUmakefile _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "db/Makefile") CONFIG_FILES="$CONFIG_FILES db/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;; "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; "extra/pam_shishi/Makefile") CONFIG_FILES="$CONFIG_FILES extra/pam_shishi/Makefile" ;; "extra/rsh-redone/Makefile") CONFIG_FILES="$CONFIG_FILES extra/rsh-redone/Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;; "lib/shishi-version.h") CONFIG_FILES="$CONFIG_FILES lib/shishi-version.h" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "shisa.conf") CONFIG_FILES="$CONFIG_FILES shisa.conf" ;; "shishi.conf") CONFIG_FILES="$CONFIG_FILES shishi.conf" ;; "shishi.pc") CONFIG_FILES="$CONFIG_FILES shishi.pc" ;; "shishi.skel") CONFIG_FILES="$CONFIG_FILES shishi.skel" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :L) # # CONFIG_LINK # if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then : else # Prefer the file from the source tree if names are identical. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then ac_source=$srcdir/$ac_source fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} if test ! -r "$ac_source"; then as_fn_error $? "$ac_source: file not found" "$LINENO" 5 fi rm -f "$ac_file" # Try a relative symlink, then a hard link, then a copy. case $ac_source in [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; *) ac_rel_source=$ac_top_build_prefix$ac_source ;; esac ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || ln "$ac_source" "$ac_file" 2>/dev/null || cp -p "$ac_source" "$ac_file" || as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 fi ;; :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options: Version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE Host type: ${host} Install prefix: ${prefix} Compiler: ${CC} Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS} Library types: Shared=${enable_shared}, Static=${enable_static} PAM module: ${enable_pam} Valgrind: ${VALGRIND:-no} Version script: $have_ld_version_script " >&5 printf "%s\n" "$as_me: summary of build options: Version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE Host type: ${host} Install prefix: ${prefix} Compiler: ${CC} Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS} Library types: Shared=${enable_shared}, Static=${enable_static} PAM module: ${enable_pam} Valgrind: ${VALGRIND:-no} Version script: $have_ld_version_script " >&6;} shishi-1.0.3/tests/0000755000000000000000000000000014273616163011124 500000000000000shishi-1.0.3/tests/priv.c0000644000000000000000000001147614273601533012174 00000000000000/* priv.c --- Shishi PRIV self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { Shishi_priv *priv; Shishi_key *key; Shishi_asn1 asn1priv; Shishi_asn1 asn1encprivpart; char *p, *q; size_t l, m; int32_t t; int res; if (debug) shishi_cfg (handle, strdup ("verbose-crypto")); /* shishi_priv() */ res = shishi_priv (handle, &priv); if (debug) printf ("shishi_priv () => `%p'.\n", priv); if (res == SHISHI_OK) success ("shishi_priv() OK\n"); else fail ("shishi_priv() failed\n"); /* shishi_priv_key */ key = shishi_priv_key (priv); if (key) success ("shishi_priv_key() OK\n"); else fail ("shishi_priv_key() failed\n"); /* shishi_priv_priv */ asn1priv = shishi_priv_priv (priv); if (asn1priv) success ("shishi_priv_priv() OK\n"); else fail ("shishi_priv_priv() failed\n"); /* shishi_priv_encprivpart */ asn1encprivpart = shishi_priv_encprivpart (priv); if (asn1encprivpart) success ("shishi_priv_encprivpart() OK\n"); else fail ("shishi_priv_encprivpart() failed\n"); /* shishi_encprivpart_set_user_data */ res = shishi_encprivpart_set_user_data (handle, asn1encprivpart, "foo", 3); if (res == SHISHI_OK) success ("shishi_encprivpart_set_user_data() OK\n"); else fail ("shishi_encprivpart_set_user_data() failed (%d)\n", res); /* shishi_encprivpart_user_data */ res = shishi_encprivpart_user_data (handle, asn1encprivpart, &p, &l); if (debug) escapeprint (p, l); if (res == SHISHI_OK && l == 3 && memcmp (p, "foo", 3) == 0) success ("shishi_encprivpart_user_data() OK\n"); else fail ("shishi_encprivpart_user_data() failed (%d)\n", res); free (p); /* shishi_priv_set_cksum */ res = shishi_priv_set_enc_part (handle, asn1priv, 42, "bar", 3); if (res == SHISHI_OK) success ("shishi_priv_set_enc_part() OK\n"); else fail ("shishi_priv_set_enc_part() failed (%d)\n", res); /* shishi_priv_enc_part_etype */ res = shishi_priv_enc_part_etype (handle, asn1priv, &t); if (debug) printf ("type=%d\n", t); if (res == SHISHI_OK && t == 42) success ("shishi_priv_enc_part_etype() OK\n"); else fail ("shishi_priv_enc_part_etype() failed (%d)\n", res); /* shishi_priv_process */ res = shishi_priv_process (priv, key); if (res == SHISHI_PRIV_BAD_KEYTYPE) /* t==42 unsupported etype */ success ("shishi_priv_proces() OK\n"); else fail ("shishi_priv_process() failed (%d)\n", res); /* shishi_priv_priv_der() */ res = shishi_priv_priv_der (priv, &p, &l); if (res == SHISHI_OK) success ("shishi_priv_priv_der() OK\n"); else fail ("shishi_priv_priv_der() failed\n"); /* shishi_priv_to_file() */ res = shishi_priv_to_file (handle, asn1priv, SHISHI_FILETYPE_TEXT, "priv.tmp"); if (res == SHISHI_OK) success ("shishi_priv_to_file() OK\n"); else fail ("shishi_priv_to_file() failed\n"); /* shishi_priv_done() */ shishi_priv_done (priv); success ("shishi_priv_done() OK\n"); /* shishi_authenticator_from_file() */ asn1priv = NULL; res = shishi_priv_from_file (handle, &asn1priv, SHISHI_FILETYPE_TEXT, "priv.tmp"); if (res == SHISHI_OK) success ("shishi_priv_from_file() OK\n"); else fail ("shishi_priv_from_file() failed\n"); if (debug) { /* shishi_priv_print() */ res = shishi_priv_print (handle, stdout, asn1priv); if (res == SHISHI_OK) success ("shishi_priv_print() OK\n"); else fail ("shishi_priv_print() failed\n"); } /* shishi_asn1_to_der() */ res = shishi_asn1_to_der (handle, asn1priv, &q, &m); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else fail ("shishi_asn1_to_der() failed\n"); shishi_asn1_done (handle, asn1priv); /* Compare DER encodings of authenticators */ if (l > 0 && m > 0 && l == m && memcmp (p, q, l) == 0) success ("DER comparison OK\n"); else fail ("DER comparison failed\n"); free (q); free (p); /* unlink() */ res = unlink ("priv.tmp"); if (res == 0) success ("unlink() OK\n"); else fail ("unlink() failed\n"); } shishi-1.0.3/tests/version.c0000644000000000000000000000402114273601530012662 00000000000000/* version.c --- Shishi version handling self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { char *out = NULL; int i, j; int res; success ("Header version %s library version %s\n", SHISHI_VERSION, shishi_check_version (NULL)); if (!shishi_check_version (SHISHI_VERSION)) fail ("shishi_check_version failure"); if (!shishi_check_version ("1.0.1")) fail ("gsasl_check_version(1.0.1) failure"); if (strcmp (SHISHI_VERSION, shishi_check_version (NULL)) != 0) fail ("header version mismatch library version\n"); i = SHISHI_VERSION_MAJOR * 256 * 256 + SHISHI_VERSION_MINOR * 256 + SHISHI_VERSION_PATCH; j = asprintf (&out, "%d.%d.%d", SHISHI_VERSION_MAJOR, SHISHI_VERSION_MINOR, SHISHI_VERSION_PATCH); if (j <= 0) fail ("asprintf failure: %d", j); success ("Header version %s number %x derived %x out %s\n", out, (unsigned) SHISHI_VERSION_NUMBER, (unsigned) i, out); if (SHISHI_VERSION_NUMBER != i) fail ("header version number mismatch\n"); if (!shishi_check_version (out)) fail ("gsasl_check_version(%s) failure\n", out); if (strncmp (SHISHI_VERSION, out, strlen (out)) != 0) fail ("header version numbers mismatch library version\n"); free (out); } shishi-1.0.3/tests/check_docbook.sh0000755000000000000000000000317214273600463014157 00000000000000#!/bin/sh # # Check whether Docbook mode allows gdoc to produce # valid XML as output. # # Copyright (C) 2014 Mats Erik Andersson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. set -eu GDOC=${GDOC:-gdoc} XMLLINT=${XMLLINT:-xmllint} XSLTPROC=${XSLTPROC:-xsltproc} if test -z "$(command -v $XMLLINT)"; then echo >&2 'Not able to access xmllint.' exit 77 fi #if test -z "$(command -v $XSLTPROC)"; then # echo >&2 'Not able to access xsltproc.' # exit 77 #fi if test -z "$(command -v $GDOC)"; then GDOC=./doc/gdoc if test ! -x $GDOC; then GDOC=../doc/gdoc if test ! -x $GDOC; then echo >&2 'Not able to find an executable gdoc.' exit 77 fi fi fi while test $# -gt 0; do file=$1 shift printf "%-20s" ">>> $file" FLIST=$($GDOC -listfunc $file 2>/dev/null) for funcname in $FLIST; do $GDOC -docbook -dtd -function $funcname $file | $XMLLINT -noout -valid - done && echo ' OK' done shishi-1.0.3/tests/multiname.c0000644000000000000000000000444514273601533013205 00000000000000/* encticketpart.c --- Shishi encticketpart self tests. * Copyright (C) 2012-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Check that principals are encoded properly in encticketpart. http://permalink.gmane.org/gmane.comp.gnu.shishi.general/711 */ #include "utils.c" void test (Shishi * handle) { Shishi_asn1 encticketpart; char *client; size_t clientlen; uint32_t i; int res; encticketpart = shishi_encticketpart (handle); if (encticketpart) success ("shishi_encticketpart() OK\n"); else fail ("shishi_encticketpart() failed\n"); res = shishi_encticketpart_cname_set (handle, encticketpart, 42, "foo/bar"); if (debug) { res = shishi_encticketpart_print (handle, stdout, encticketpart); if (res == SHISHI_OK) success ("shishi_encticketpart_print() OK\n"); else fail ("shishi_encticketpart_print() failed\n"); } res = shishi_encticketpart_client (handle, encticketpart, &client, &clientlen); if (res == SHISHI_OK) success ("shishi_encticketpart_client() OK\n"); else fail ("shishi_encticketpart_client() failed\n"); if (clientlen == strlen ("foo/bar") && memcmp ("foo/bar", client, clientlen) == 0) success ("encticketpart encoding OK\n"); else fail ("encticketpart encoding failed\n"); res = shishi_asn1_read_uint32 (handle, encticketpart, "cname.name-type", &i); if (res == SHISHI_OK) success ("shishi_asn1_read_uint32() OK\n"); else fail ("shishi_asn1_read_uint32() failed\n"); if (i != 42) fail ("encticketpart name-type failed (%u)\n", i); } shishi-1.0.3/tests/ccache.c0000644000000000000000000000331214273601533012410 00000000000000/* ccache.c --- Self test MIT ccache file readers. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" #define EXPECT 2 void test (Shishi * handle) { Shishi_tkts *tkts; const char *ccache = getenv ("CCACHE1"); int rc; if (!ccache) ccache = "ccache1.bin"; rc = shishi_tkts_from_ccache_file (handle, ccache, &tkts); if (rc != SHISHI_OK) fail ("shishi_tkts_from_ccache_file() failed (%d)\n", rc); if (shishi_tkts_size (tkts) != EXPECT) fail ("shishi_tkts_size() failed (%d!=%d)\n", shishi_tkts_size (tkts), EXPECT); rc = shishi_tkts_write (tkts, stdout); if (rc != SHISHI_OK) fail ("shishi_tkts_write() failed (%d)\n", rc); rc = shishi_tkts_print (tkts, stdout); if (rc != SHISHI_OK) fail ("shishi_tkts_print() failed (%d)\n", rc); { Shishi_tkt *tkt; size_t i = 0; while ((tkt = shishi_tkts_nth (tkts, i++)) != NULL) shishi_tkt_done (tkt); } shishi_tkts_done (&tkts); } shishi-1.0.3/tests/crypto-ctx.c0000644000000000000000000001055614273601533013326 00000000000000/* crypto-ctx.c --- Shishi crypto context self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" static const char rnd[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123456789"; static const char iv[] = "0123456789abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const char *in = "abcdefghijklmnopqrstuvwxyz01234567890123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; struct tv { int etype; size_t start; size_t step; size_t len; }; const struct tv tv[] = { {SHISHI_DES_CBC_CRC, 4, 8, 68}, {SHISHI_DES_CBC_MD4, 0, 8, 72}, {SHISHI_DES_CBC_MD5, 0, 8, 72}, {SHISHI_DES_CBC_NONE, 8, 8, 72}, {SHISHI_DES3_CBC_NONE, 8, 8, 72}, /* XXX following three doesn't use start=0 because of a weird realloc(0,0) problem */ {SHISHI_DES3_CBC_HMAC_SHA1_KD, 8, 8, 72}, {SHISHI_AES128_CTS_HMAC_SHA1_96, 1, 1, 72}, {SHISHI_AES256_CTS_HMAC_SHA1_96, 1, 1, 72}, {SHISHI_ARCFOUR_HMAC, 0, 1, 72}, {SHISHI_ARCFOUR_HMAC_EXP, 0, 1, 72}, {0, 0, 0, 0} }; void test (Shishi * handle) { Shishi_crypto *ctx, *ctx2; Shishi_key *key; char *out, *out2; size_t i, j; size_t len, len2; const struct tv *tvp; int err; if (debug) shishi_cfg (handle, strdup ("verbose-crypto")); for (i = 0; tvp = &tv[i], tvp->etype; i++) { len = shishi_cipher_randomlen (tvp->etype); if (len == (size_t) -1) { fail ("shishi_cipher_randomlen(%d) failed: %zu\n", tvp->etype, len); continue; } err = shishi_key_from_random (handle, tvp->etype, rnd, len, &key); if (err) { fail ("shishi_key_from_random(%d) failed (%d)\n", tvp->etype, err); continue; } len = shishi_cipher_blocksize (tvp->etype); if (len == (size_t) -1) { fail ("shishi_cipher_blocksize (%d) failed: %zu\n", tvp->etype, len); continue; } if (tvp->etype == SHISHI_ARCFOUR_HMAC || tvp->etype == SHISHI_ARCFOUR_HMAC_EXP) { /* For ARCFOUR, IV is internal S-BOX, not of blocksize length. We probably should clean this up somehow... */ ctx = shishi_crypto (handle, key, SHISHI_KEYUSAGE_ENCASREPPART, tvp->etype, NULL, 0); ctx2 = shishi_crypto (handle, key, SHISHI_KEYUSAGE_ENCASREPPART, tvp->etype, NULL, 0); } else { ctx = shishi_crypto (handle, key, SHISHI_KEYUSAGE_ENCASREPPART, tvp->etype, iv, len); ctx2 = shishi_crypto (handle, key, SHISHI_KEYUSAGE_ENCASREPPART, tvp->etype, iv, len); } if (!ctx) { fail ("shishi_crypto(%d) failed\n", tvp->etype); continue; } if (!ctx2) { fail ("shishi_crypto(%d) failed (2)\n", tvp->etype); continue; } for (j = tvp->start; j < tvp->len; j += tvp->step) { int ok; err = shishi_crypto_encrypt (ctx, in, j, &out, &len); if (err) { fail ("shishi_crypto_encrypt(etype=%d, len=%zu) failed (%d)\n", tvp->etype, j, err); continue; } err = shishi_crypto_decrypt (ctx2, out, len, &out2, &len2); if (err) { fail ("shishi_crypto_decrypt(etype=%d, len=%zu) failed (%d)\n", tvp->etype, j, err); continue; } free (out); ok = len2 != j || memcmp (out2, in, len2) != 0; free (out2); if (ok) { puts ("expected"); hexprint (in, j); puts ("computed"); hexprint (out2, len2); fail ("shishi_crypto_encrypt (in1, %d) failed\n", tvp->etype); continue; } success ("shishi_crypto_encrypt/decrypt(etype=%d, len=%zu) OK\n", tvp->etype, j); } shishi_crypto_close (ctx); shishi_crypto_close (ctx2); shishi_key_done (key); success ("shishi_crypto_encrypt/decrypt(etype=%d) OK\n", tvp->etype); } } shishi-1.0.3/tests/Makefile.in0000644000000000000000000033110014273615656013115 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = $(am__EXEEXT_1) TESTS = $(am__EXEEXT_1) subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__EXEEXT_1 = authenticator$(EXEEXT) crypto$(EXEEXT) gztime$(EXEEXT) \ priv$(EXEEXT) safe$(EXEEXT) ticketset$(EXEEXT) \ crypto-ctx$(EXEEXT) low-crypto$(EXEEXT) rijndael$(EXEEXT) \ key$(EXEEXT) keytab$(EXEEXT) ccache$(EXEEXT) nonce$(EXEEXT) \ passwdpromptcb$(EXEEXT) multiname$(EXEEXT) version$(EXEEXT) LTLIBRARIES = $(noinst_LTLIBRARIES) libutils_la_LIBADD = am_libutils_la_OBJECTS = utils.lo libutils_la_OBJECTS = $(am_libutils_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = authenticator_SOURCES = authenticator.c authenticator_OBJECTS = authenticator.$(OBJEXT) authenticator_LDADD = $(LDADD) am__DEPENDENCIES_1 = authenticator_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la ccache_SOURCES = ccache.c ccache_OBJECTS = ccache.$(OBJEXT) ccache_LDADD = $(LDADD) ccache_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la crypto_SOURCES = crypto.c crypto_OBJECTS = crypto.$(OBJEXT) crypto_LDADD = $(LDADD) crypto_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la crypto_ctx_SOURCES = crypto-ctx.c crypto_ctx_OBJECTS = crypto-ctx.$(OBJEXT) crypto_ctx_LDADD = $(LDADD) crypto_ctx_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la gztime_SOURCES = gztime.c gztime_OBJECTS = gztime.$(OBJEXT) gztime_LDADD = $(LDADD) gztime_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la key_SOURCES = key.c key_OBJECTS = key.$(OBJEXT) key_LDADD = $(LDADD) key_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la keytab_SOURCES = keytab.c keytab_OBJECTS = keytab.$(OBJEXT) keytab_LDADD = $(LDADD) keytab_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la low_crypto_SOURCES = low-crypto.c low_crypto_OBJECTS = low-crypto.$(OBJEXT) low_crypto_LDADD = $(LDADD) low_crypto_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la multiname_SOURCES = multiname.c multiname_OBJECTS = multiname.$(OBJEXT) multiname_LDADD = $(LDADD) multiname_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la nonce_SOURCES = nonce.c nonce_OBJECTS = nonce.$(OBJEXT) nonce_LDADD = $(LDADD) nonce_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la passwdpromptcb_SOURCES = passwdpromptcb.c passwdpromptcb_OBJECTS = passwdpromptcb.$(OBJEXT) passwdpromptcb_LDADD = $(LDADD) passwdpromptcb_DEPENDENCIES = $(am__DEPENDENCIES_1) \ ../lib/gl/libgnu.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) ../lib/libshishi.la libutils.la priv_SOURCES = priv.c priv_OBJECTS = priv.$(OBJEXT) priv_LDADD = $(LDADD) priv_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la rijndael_SOURCES = rijndael.c rijndael_OBJECTS = rijndael.$(OBJEXT) rijndael_LDADD = $(LDADD) rijndael_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la safe_SOURCES = safe.c safe_OBJECTS = safe.$(OBJEXT) safe_LDADD = $(LDADD) safe_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la ticketset_SOURCES = ticketset.c ticketset_OBJECTS = ticketset.$(OBJEXT) ticketset_LDADD = $(LDADD) ticketset_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la version_SOURCES = version.c version_OBJECTS = version.$(OBJEXT) version_LDADD = $(LDADD) version_DEPENDENCIES = $(am__DEPENDENCIES_1) ../lib/gl/libgnu.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../lib/libshishi.la libutils.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/authenticator.Po \ ./$(DEPDIR)/ccache.Po ./$(DEPDIR)/crypto-ctx.Po \ ./$(DEPDIR)/crypto.Po ./$(DEPDIR)/gztime.Po ./$(DEPDIR)/key.Po \ ./$(DEPDIR)/keytab.Po ./$(DEPDIR)/low-crypto.Po \ ./$(DEPDIR)/multiname.Po ./$(DEPDIR)/nonce.Po \ ./$(DEPDIR)/passwdpromptcb.Po ./$(DEPDIR)/priv.Po \ ./$(DEPDIR)/rijndael.Po ./$(DEPDIR)/safe.Po \ ./$(DEPDIR)/ticketset.Po ./$(DEPDIR)/utils.Plo \ ./$(DEPDIR)/version.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libutils_la_SOURCES) authenticator.c ccache.c crypto.c \ crypto-ctx.c gztime.c key.c keytab.c low-crypto.c multiname.c \ nonce.c passwdpromptcb.c priv.c rijndael.c safe.c ticketset.c \ version.c DIST_SOURCES = $(libutils_la_SOURCES) authenticator.c ccache.c \ crypto.c crypto-ctx.c gztime.c key.c keytab.c low-crypto.c \ multiname.c nonce.c passwdpromptcb.c priv.c rijndael.c safe.c \ ticketset.c version.c am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp \ $(top_srcdir)/build-aux/test-driver DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = shisa.sh shishi.supp keytab1.bin ccache1.bin \ check_docbook.sh AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib AM_LDFLAGS = -no-install LDADD = $(LTLIBINTL) ../lib/gl/libgnu.la $(LTLIBTASN1) $(LTLIBGNUTLS) \ ../lib/libshishi.la libutils.la noinst_LTLIBRARIES = libutils.la libutils_la_SOURCES = utils.h utils.c AM_TESTS_ENVIRONMENT = \ KEYTAB1=$(srcdir)/keytab1.bin \ CCACHE1=$(srcdir)/ccache1.bin; \ export KEYTAB1 CCACHE1; LOG_COMPILER = $(VALGRIND) ctests = authenticator crypto gztime priv safe ticketset \ crypto-ctx low-crypto rijndael key keytab ccache nonce \ passwdpromptcb multiname version all: all-am .SUFFIXES: .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libutils.la: $(libutils_la_OBJECTS) $(libutils_la_DEPENDENCIES) $(EXTRA_libutils_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libutils_la_OBJECTS) $(libutils_la_LIBADD) $(LIBS) authenticator$(EXEEXT): $(authenticator_OBJECTS) $(authenticator_DEPENDENCIES) $(EXTRA_authenticator_DEPENDENCIES) @rm -f authenticator$(EXEEXT) $(AM_V_CCLD)$(LINK) $(authenticator_OBJECTS) $(authenticator_LDADD) $(LIBS) ccache$(EXEEXT): $(ccache_OBJECTS) $(ccache_DEPENDENCIES) $(EXTRA_ccache_DEPENDENCIES) @rm -f ccache$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ccache_OBJECTS) $(ccache_LDADD) $(LIBS) crypto$(EXEEXT): $(crypto_OBJECTS) $(crypto_DEPENDENCIES) $(EXTRA_crypto_DEPENDENCIES) @rm -f crypto$(EXEEXT) $(AM_V_CCLD)$(LINK) $(crypto_OBJECTS) $(crypto_LDADD) $(LIBS) crypto-ctx$(EXEEXT): $(crypto_ctx_OBJECTS) $(crypto_ctx_DEPENDENCIES) $(EXTRA_crypto_ctx_DEPENDENCIES) @rm -f crypto-ctx$(EXEEXT) $(AM_V_CCLD)$(LINK) $(crypto_ctx_OBJECTS) $(crypto_ctx_LDADD) $(LIBS) gztime$(EXEEXT): $(gztime_OBJECTS) $(gztime_DEPENDENCIES) $(EXTRA_gztime_DEPENDENCIES) @rm -f gztime$(EXEEXT) $(AM_V_CCLD)$(LINK) $(gztime_OBJECTS) $(gztime_LDADD) $(LIBS) key$(EXEEXT): $(key_OBJECTS) $(key_DEPENDENCIES) $(EXTRA_key_DEPENDENCIES) @rm -f key$(EXEEXT) $(AM_V_CCLD)$(LINK) $(key_OBJECTS) $(key_LDADD) $(LIBS) keytab$(EXEEXT): $(keytab_OBJECTS) $(keytab_DEPENDENCIES) $(EXTRA_keytab_DEPENDENCIES) @rm -f keytab$(EXEEXT) $(AM_V_CCLD)$(LINK) $(keytab_OBJECTS) $(keytab_LDADD) $(LIBS) low-crypto$(EXEEXT): $(low_crypto_OBJECTS) $(low_crypto_DEPENDENCIES) $(EXTRA_low_crypto_DEPENDENCIES) @rm -f low-crypto$(EXEEXT) $(AM_V_CCLD)$(LINK) $(low_crypto_OBJECTS) $(low_crypto_LDADD) $(LIBS) multiname$(EXEEXT): $(multiname_OBJECTS) $(multiname_DEPENDENCIES) $(EXTRA_multiname_DEPENDENCIES) @rm -f multiname$(EXEEXT) $(AM_V_CCLD)$(LINK) $(multiname_OBJECTS) $(multiname_LDADD) $(LIBS) nonce$(EXEEXT): $(nonce_OBJECTS) $(nonce_DEPENDENCIES) $(EXTRA_nonce_DEPENDENCIES) @rm -f nonce$(EXEEXT) $(AM_V_CCLD)$(LINK) $(nonce_OBJECTS) $(nonce_LDADD) $(LIBS) passwdpromptcb$(EXEEXT): $(passwdpromptcb_OBJECTS) $(passwdpromptcb_DEPENDENCIES) $(EXTRA_passwdpromptcb_DEPENDENCIES) @rm -f passwdpromptcb$(EXEEXT) $(AM_V_CCLD)$(LINK) $(passwdpromptcb_OBJECTS) $(passwdpromptcb_LDADD) $(LIBS) priv$(EXEEXT): $(priv_OBJECTS) $(priv_DEPENDENCIES) $(EXTRA_priv_DEPENDENCIES) @rm -f priv$(EXEEXT) $(AM_V_CCLD)$(LINK) $(priv_OBJECTS) $(priv_LDADD) $(LIBS) rijndael$(EXEEXT): $(rijndael_OBJECTS) $(rijndael_DEPENDENCIES) $(EXTRA_rijndael_DEPENDENCIES) @rm -f rijndael$(EXEEXT) $(AM_V_CCLD)$(LINK) $(rijndael_OBJECTS) $(rijndael_LDADD) $(LIBS) safe$(EXEEXT): $(safe_OBJECTS) $(safe_DEPENDENCIES) $(EXTRA_safe_DEPENDENCIES) @rm -f safe$(EXEEXT) $(AM_V_CCLD)$(LINK) $(safe_OBJECTS) $(safe_LDADD) $(LIBS) ticketset$(EXEEXT): $(ticketset_OBJECTS) $(ticketset_DEPENDENCIES) $(EXTRA_ticketset_DEPENDENCIES) @rm -f ticketset$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ticketset_OBJECTS) $(ticketset_LDADD) $(LIBS) version$(EXEEXT): $(version_OBJECTS) $(version_DEPENDENCIES) $(EXTRA_version_DEPENDENCIES) @rm -f version$(EXEEXT) $(AM_V_CCLD)$(LINK) $(version_OBJECTS) $(version_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/authenticator.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ccache.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto-ctx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crypto.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gztime.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/key.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keytab.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/low-crypto.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multiname.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nonce.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/passwdpromptcb.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/priv.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rijndael.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/safe.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ticketset.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: $(check_PROGRAMS) @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all $(check_PROGRAMS) @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? authenticator.log: authenticator$(EXEEXT) @p='authenticator$(EXEEXT)'; \ b='authenticator'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) crypto.log: crypto$(EXEEXT) @p='crypto$(EXEEXT)'; \ b='crypto'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) gztime.log: gztime$(EXEEXT) @p='gztime$(EXEEXT)'; \ b='gztime'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) priv.log: priv$(EXEEXT) @p='priv$(EXEEXT)'; \ b='priv'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) safe.log: safe$(EXEEXT) @p='safe$(EXEEXT)'; \ b='safe'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) ticketset.log: ticketset$(EXEEXT) @p='ticketset$(EXEEXT)'; \ b='ticketset'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) crypto-ctx.log: crypto-ctx$(EXEEXT) @p='crypto-ctx$(EXEEXT)'; \ b='crypto-ctx'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) low-crypto.log: low-crypto$(EXEEXT) @p='low-crypto$(EXEEXT)'; \ b='low-crypto'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) rijndael.log: rijndael$(EXEEXT) @p='rijndael$(EXEEXT)'; \ b='rijndael'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) key.log: key$(EXEEXT) @p='key$(EXEEXT)'; \ b='key'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) keytab.log: keytab$(EXEEXT) @p='keytab$(EXEEXT)'; \ b='keytab'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) ccache.log: ccache$(EXEEXT) @p='ccache$(EXEEXT)'; \ b='ccache'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) nonce.log: nonce$(EXEEXT) @p='nonce$(EXEEXT)'; \ b='nonce'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) passwdpromptcb.log: passwdpromptcb$(EXEEXT) @p='passwdpromptcb$(EXEEXT)'; \ b='passwdpromptcb'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) multiname.log: multiname$(EXEEXT) @p='multiname$(EXEEXT)'; \ b='multiname'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) version.log: version$(EXEEXT) @p='version$(EXEEXT)'; \ b='version'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/authenticator.Po -rm -f ./$(DEPDIR)/ccache.Po -rm -f ./$(DEPDIR)/crypto-ctx.Po -rm -f ./$(DEPDIR)/crypto.Po -rm -f ./$(DEPDIR)/gztime.Po -rm -f ./$(DEPDIR)/key.Po -rm -f ./$(DEPDIR)/keytab.Po -rm -f ./$(DEPDIR)/low-crypto.Po -rm -f ./$(DEPDIR)/multiname.Po -rm -f ./$(DEPDIR)/nonce.Po -rm -f ./$(DEPDIR)/passwdpromptcb.Po -rm -f ./$(DEPDIR)/priv.Po -rm -f ./$(DEPDIR)/rijndael.Po -rm -f ./$(DEPDIR)/safe.Po -rm -f ./$(DEPDIR)/ticketset.Po -rm -f ./$(DEPDIR)/utils.Plo -rm -f ./$(DEPDIR)/version.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/authenticator.Po -rm -f ./$(DEPDIR)/ccache.Po -rm -f ./$(DEPDIR)/crypto-ctx.Po -rm -f ./$(DEPDIR)/crypto.Po -rm -f ./$(DEPDIR)/gztime.Po -rm -f ./$(DEPDIR)/key.Po -rm -f ./$(DEPDIR)/keytab.Po -rm -f ./$(DEPDIR)/low-crypto.Po -rm -f ./$(DEPDIR)/multiname.Po -rm -f ./$(DEPDIR)/nonce.Po -rm -f ./$(DEPDIR)/passwdpromptcb.Po -rm -f ./$(DEPDIR)/priv.Po -rm -f ./$(DEPDIR)/rijndael.Po -rm -f ./$(DEPDIR)/safe.Po -rm -f ./$(DEPDIR)/ticketset.Po -rm -f ./$(DEPDIR)/utils.Plo -rm -f ./$(DEPDIR)/version.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \ check-am clean clean-checkPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am recheck tags tags-am uninstall \ uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/tests/shishi.supp0000644000000000000000000001251214273600463013241 00000000000000# shishi.supp -- Valgrind suppresion file for Shishi. # Copyright (C) 2006-2022 Simon Josefsson # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. { known libgcrypt mem leak Memcheck:Leak fun:malloc obj:/usr/lib/libgcrypt.so.11.2.1 obj:/usr/lib/libgcrypt.so.11.2.1 fun:gcry_malloc obj:/usr/lib/libgcrypt.so.11.2.1 obj:/usr/lib/libgcrypt.so.11.2.1 obj:/usr/lib/libgcrypt.so.11.2.1 obj:/usr/lib/libgcrypt.so.11.2.1 fun:gcry_check_version fun:gnutls_global_init fun:_shishi_tls_init } { known libgcrypt mem leak Memcheck:Leak fun:malloc obj:/usr/lib/libgcrypt.so.11.2.1 fun:gcry_malloc fun:gcry_xmalloc fun:gcry_xcalloc obj:/usr/lib/libgcrypt.so.11.2.1 fun:gcry_randomize fun:gc_pseudo_random fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:_asn1_set_value fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:_asn1_add_node_only fun:_asn1_expand_object_id fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:strdup fun:_asn1_set_name fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:_asn1_add_node fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:_asn1_set_value fun:_asn1_change_integer_value fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:_asn1_set_value fun:_asn1_expand_object_id fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:calloc fun:_asn1_add_node fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:malloc fun:strdup fun:_asn1_set_name fun:_asn1_expand_object_id fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:calloc fun:_asn1_add_node_only fun:_asn1_expand_object_id fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { known gnutls mem leak Memcheck:Leak fun:calloc fun:_asn1_add_node fun:asn1_array2tree fun:gnutls_global_init fun:_shishi_tls_init } { gnutls leak Memcheck:Leak fun:malloc fun:gnutls_system_mutex_init fun:wrap_nettle_rnd_init fun:_gnutls_rnd_init fun:gnutls_global_init fun:_shishi_tls_init } { p11 leak Memcheck:Leak fun:malloc fun:hash_create fun:init_globals_unlocked fun:_p11_kit_initialize_registered_unlocked_reentrant fun:p11_kit_initialize_registered fun:gnutls_pkcs11_init fun:gnutls_global_init fun:_shishi_tls_init } { p11 leak Memcheck:Leak fun:malloc fun:hash_create fun:_p11_conf_parse_file fun:_p11_conf_load_globals fun:_p11_kit_initialize_registered_unlocked_reentrant fun:p11_kit_initialize_registered fun:gnutls_pkcs11_init fun:gnutls_global_init fun:_shishi_tls_init } { p11 leak Memcheck:Leak fun:calloc fun:hash_create fun:init_globals_unlocked fun:_p11_kit_initialize_registered_unlocked_reentrant fun:p11_kit_initialize_registered fun:gnutls_pkcs11_init fun:gnutls_global_init fun:_shishi_tls_init } { p11 leak Memcheck:Leak fun:calloc fun:hash_create fun:_p11_conf_parse_file fun:_p11_conf_load_globals fun:_p11_kit_initialize_registered_unlocked_reentrant fun:p11_kit_initialize_registered fun:gnutls_pkcs11_init fun:gnutls_global_init fun:_shishi_tls_init } { gcrypt leak Memcheck:Leak fun:malloc fun:do_malloc fun:_gcry_malloc fun:_gcry_module_add fun:pk_register_default fun:_gcry_pk_init fun:global_init fun:_gcry_vcontrol fun:gcry_control fun:gc_init fun:_shishi_crypto_init } { gnutls leak? Memcheck:Leak fun:realloc fun:_gnutls_ext_register fun:gnutls_global_init fun:_shishi_tls_init } { gcrypt leak Memcheck:Leak fun:malloc fun:do_malloc fun:_gcry_malloc fun:_gcry_module_add fun:md_register_default fun:_gcry_md_init fun:global_init fun:_gcry_vcontrol fun:gcry_control fun:gc_init fun:_shishi_crypto_init } { gcrypt leak? Memcheck:Leak fun:malloc fun:do_malloc fun:_gcry_malloc fun:_gcry_xmalloc fun:_gcry_xcalloc fun:initialize fun:_gcry_rngcsprng_randomize fun:gc_pseudo_random fun:shishi_randomize fun:shishi_authenticator } { gcrypt leak? Memcheck:Leak fun:malloc fun:do_malloc fun:_gcry_malloc fun:_gcry_xmalloc fun:_gcry_xcalloc fun:initialize fun:_gcry_rngcsprng_randomize fun:gc_pseudo_random fun:shishi_randomize fun:shishi_authenticator } { gcrypt leak? Memcheck:Leak fun:malloc fun:do_malloc fun:_gcry_malloc fun:_gcry_module_add fun:cipher_register_default fun:_gcry_cipher_init fun:global_init fun:_gcry_vcontrol fun:gcry_control fun:gc_init fun:_shishi_crypto_init } shishi-1.0.3/tests/ticketset.c0000644000000000000000000004620114273601533013205 00000000000000/* ticketset.c --- Shishi ticketset self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" static const char tkt1kdcrepb64[] = "a4ICITCCAh2gAwIBBaEDAgELow8bDUpPU0VGU1NPTi5PUkekEDAOoAMCAQGhBzAF" "GwNqYXOlggECYYH/MIH8oAMCAQWhDxsNSk9TRUZTU09OLk9SR6IiMCCgAwIBAaEZ" "MBcbBmtyYnRndBsNSk9TRUZTU09OLk9SR6OBvzCBvKADAgEQoQMCAQGiga8Egayq" "ttjMpRNM2iVVR5RjtMNH3i75hjnUiXQ7UeT7DMShJ5IxiBr09dggaZzTAHrBAvV8" "5xON3p39rMpmCg9utizrxzT1JXruoGF/+ofuT7lEDfRr437QJD5WuOtlfmkM2i5s" "2bGYZlHNdBonapJCcMeUSS45HEoM5iy0dK2JeaOliOVKTDpX9gOayKSIFYnuzIb+" "cg1ATHm29ahK5AY+LU9E4v8Yj1/02srRuERApoHnMIHkoAMCARChAwIBBaKB1wSB" "1AiMSoSQrE5FSE2CYpTOdLgVWRw/k1cqBtswVKRTdgj2As6WG6mhFczy7RF62GVM" "6gJGNQRx1mAg0d5C7pNKRCgAZ2oQdJIGW6CLTy2L0LxM104HA0XrZ+zfFLKlZTOV" "T85LIoSneI/yKNh3iYeVQwp6AdMRw6562fHMie22I4sy22wNVz1toTrKixILvoMy" "eoD7ET43Y1eo0SeXj8LPmZyqLARBknl2ZvNcDpjWpI57QycHV28BhcvVPu72kObJ" "/68tCNEJ8J+vHArpFA5V9BDsFcGs"; static const char tkt1enckdcreppartb64[] = "eYGyMIGvoCMwIaADAgEQoRoEGPF/LFgc3IYq3+AZofutur+wsK5i6vSbN6EcMBow" "GKADAgEAoREYDzE5NzAwMTAxMDAwMDAwWqIGAgTl7iQgpAcDBQAAQAAApREYDzIw" "MDIxMjExMTM0MDU0WqcRGA8yMDAyMTIxMTEzNTczNFqpDxsNSk9TRUZTU09OLk9S" "R6oiMCCgAwIBAaEZMBcbBmtyYnRndBsNSk9TRUZTU09OLk9SRw=="; static const char tkt1ticketb64[] = "YYH/MIH8oAMCAQWhDxsNSk9TRUZTU09OLk9SR6IiMCCgAwIBAaEZMBcbBmtyYnRn" "dBsNSk9TRUZTU09OLk9SR6OBvzCBvKADAgEQoQMCAQGiga8EgayqttjMpRNM2iVV" "R5RjtMNH3i75hjnUiXQ7UeT7DMShJ5IxiBr09dggaZzTAHrBAvV85xON3p39rMpm" "Cg9utizrxzT1JXruoGF/+ofuT7lEDfRr437QJD5WuOtlfmkM2i5s2bGYZlHNdBon" "apJCcMeUSS45HEoM5iy0dK2JeaOliOVKTDpX9gOayKSIFYnuzIb+cg1ATHm29ahK" "5AY+LU9E4v8Yj1/02srRuERA"; static const char tkt2kdcrepb64[] = "bYICSjCCAkagAwIBBaEDAgENow8bDUpPU0VGU1NPTi5PUkekEDAOoAMCAQGhBzAF" "GwNqYXOlggEYYYIBFDCCARCgAwIBBaEPGw1KT1NFRlNTT04uT1JHoiYwJKADAgEB" "oR0wGxsEaG9zdBsTbGF0dGUuam9zZWZzc29uLm9yZ6OBzzCBzKADAgEQoQMCAQKi" "gb8EgbzEU6KFfSSQg4xxSxJBp2QBtaNGyzawROAGFsztZcY+gl5K2ki6xDT10kCY" "yfORXXXraoYIcwJl6EW8RGl4KKsZlZmNWuw0/mO4Gglga6sM06vQDs2TcSc8hWDJ" "4I1vU6/WlKtwzNj0Cw+6fqyDJIt6PmRpUe/yGZe6hSQkrqgQuBhpAHZF4/aoWqOm" "NufTdGa+5gHzqcEmQerWD8YhImeD+Xe5citg92XTPx2nHiNMBMmwgWJHf1Tjddiw" "saaB+jCB96ADAgEQooHvBIHsmctkNNI2jJwUEdTe9o5WeHyTCWMSO9AA0luxjX2D" "CR5kNOZuPx5YfHWHwKlqrOtwo1E0Cb7bpKHPUOWhhIGUXcV0z1ETSEOX8Ho3iIOc" "8LSNVq8UqVf/wBnndLiljZveTbbu+YcFNbF7g+q2VDYffKgXsUi6HV2Ue7OGawvY" "DxU7KDVpPWgitPGrNItdaJ1QVfVH+cXLdiqEV7RR+JOsFc8jkBxNOq/rx60Ga73F" "urdXCqM1tz5T2QHgoI6y0HjGuEbjymFQfCt1hclIvu7EzWn29p2oZJUj1Vv7vpNz" "tDy+gjC3uMYj7JGdoTg="; static const char tkt2enckdcreppartb64[] = "eoHJMIHGoCMwIaADAgEQoRoEGFS29KeMuXZDeqcEud/gWHln/db7bje26aEcMBow" "GKADAgEAoREYDzE5NzAwMTAxMDAwMDAwWqIGAgScLHDdpAcDBQAAAAAApREYDzIw" "MDIxMjExMTM0MDU0WqYRGA8yMDAyMTIxMTEzNDEwNFqnERgPMjAwMjEyMTExMzU3" "MzRaqQ8bDUpPU0VGU1NPTi5PUkeqJjAkoAMCAQGhHTAbGwRob3N0GxNsYXR0ZS5q" "b3NlZnNzb24ub3Jn"; static const char tkt2ticketb64[] = "YYIBFDCCARCgAwIBBaEPGw1KT1NFRlNTT04uT1JHoiYwJKADAgEBoR0wGxsEaG9z" "dBsTbGF0dGUuam9zZWZzc29uLm9yZ6OBzzCBzKADAgEQoQMCAQKigb8EgbzEU6KF" "fSSQg4xxSxJBp2QBtaNGyzawROAGFsztZcY+gl5K2ki6xDT10kCYyfORXXXraoYI" "cwJl6EW8RGl4KKsZlZmNWuw0/mO4Gglga6sM06vQDs2TcSc8hWDJ4I1vU6/WlKtw" "zNj0Cw+6fqyDJIt6PmRpUe/yGZe6hSQkrqgQuBhpAHZF4/aoWqOmNufTdGa+5gHz" "qcEmQerWD8YhImeD+Xe5citg92XTPx2nHiNMBMmwgWJHf1TjddiwsQ=="; #define BUFSIZE 5000 void test (Shishi * handle) { Shishi_tkts *tktset; Shishi_tkts_hint hint; Shishi_tkt *t1, *t2, *t3; Shishi_asn1 tkt1asn1, tkt1asn2, tkt1asn3; Shishi_asn1 tkt2asn1, tkt2asn2, tkt2asn3; char buffer[BUFSIZE]; char buffer2[BUFSIZE]; char *buf; char *p, *q; size_t n; int res; /* shishi_tkts_default_file() */ p = strdup (shishi_tkts_default_file (handle)); if (debug) printf ("shishi_tkts_default_file () => `%s'.\n", p ? p : ""); if (p) success ("shishi_tkts_default_file() OK\n"); else fail ("shishi_tkts_default_file() failed\n"); /* shishi_tkts_default_file_set() */ shishi_tkts_default_file_set (handle, "foo"); q = strdup (shishi_tkts_default_file (handle)); if (debug) printf ("shishi_tkts_default_file () => `%s'.\n", q ? q : ""); if (q && strcmp (q, "foo") == 0) success ("shishi_tkts_default_file_set() OK\n"); else fail ("shishi_tkts_default_file_set() failed\n"); free (q); /* shishi_tkts_default_file_set() */ shishi_tkts_default_file_set (handle, NULL); q = strdup (shishi_tkts_default_file (handle)); if (debug) printf ("shishi_tkts_default_file () => `%s'.\n", q ? q : ""); if (p && q && strcmp (p, q) == 0) success ("shishi_tkts_default_file_set() OK\n"); else fail ("shishi_tkts_default_file_set() failed\n"); free (q); free (p); /* shishi_tkts () */ res = shishi_tkts (handle, &tktset); if (res == SHISHI_OK) success ("shishi_tkts() OK\n"); else fail ("shishi_tkts() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 0) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_nth () */ t1 = shishi_tkts_nth (tktset, 0); if (t1 == NULL) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_nth () */ t1 = shishi_tkts_nth (tktset, 42); if (t1 == NULL) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_add () */ res = shishi_tkts_add (tktset, NULL); if (res == SHISHI_INVALID_TICKET) success ("shishi_tkts_add() OK\n"); else fail ("shishi_tkts_add() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 0); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 42); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (NULL, 0); if (res == SHISHI_INVALID_TKTS) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* create ticket */ n = BUFSIZE; if (!base64_decode (tkt1ticketb64, strlen (tkt1ticketb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt1asn1 = shishi_der2asn1_ticket (handle, buffer, n); if (!tkt1asn1) fail ("shishi_der2asn1_ticket() failed\n"); n = BUFSIZE; if (!base64_decode (tkt1enckdcreppartb64, strlen (tkt1enckdcreppartb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt1asn2 = shishi_der2asn1_encasreppart (handle, buffer, n); if (!tkt1asn2) fail ("shishi_der2asn1_encasreppart() failed\n"); n = BUFSIZE; if (!base64_decode (tkt1kdcrepb64, strlen (tkt1kdcrepb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt1asn3 = shishi_der2asn1_asrep (handle, buffer, n); if (!tkt1asn3) fail ("shishi_der2asn1_asrep() failed\n"); /* shishi_tkts_new() */ res = shishi_tkts_new (tktset, tkt1asn1, tkt1asn2, tkt1asn3); if (res == SHISHI_OK) success ("shishi_tkts_new() OK\n"); else fail ("shishi_tkts_new() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 1) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_nth () */ t1 = shishi_tkts_nth (tktset, 0); if (debug) { shishi_tkt_pretty_print (t1, stdout); printf ("t1=%p\n", t1); } if (t1) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 0); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 0) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_nth () */ t2 = shishi_tkts_nth (tktset, 0); if (t2 == NULL) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_add () */ res = shishi_tkts_add (tktset, t1); if (res == SHISHI_OK) success ("shishi_tkts_add() OK\n"); else fail ("shishi_tkts_add() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 1) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* create ticket */ n = BUFSIZE; if (!base64_decode (tkt2ticketb64, strlen (tkt2ticketb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt2asn1 = shishi_der2asn1_ticket (handle, buffer, n); if (!tkt2asn1) fail ("shishi_der2asn1_ticket() failed\n"); n = BUFSIZE; if (!base64_decode (tkt2enckdcreppartb64, strlen (tkt2enckdcreppartb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt2asn2 = shishi_der2asn1_enctgsreppart (handle, buffer, n); if (!tkt2asn2) fail ("shishi_der2asn1_enctgsreppart() failed\n"); n = BUFSIZE; if (!base64_decode (tkt2kdcrepb64, strlen (tkt2kdcrepb64), buffer, &n)) fail ("base64_decode() failed\n"); tkt2asn3 = shishi_der2asn1_tgsrep (handle, buffer, n); if (!tkt2asn3) fail ("shishi_der2asn1_kdcrep() failed\n"); /* shishi_tkts_new() */ res = shishi_tkts_new (tktset, tkt2asn1, tkt2asn2, tkt2asn3); if (res == SHISHI_OK) success ("shishi_tkts_new() OK\n"); else fail ("shishi_tkts_new() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 2) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_nth () */ t2 = shishi_tkts_nth (tktset, 1); if (debug) { shishi_tkt_pretty_print (t2, stdout); printf ("t2=%p\n", t2); } if (t2) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_find () */ memset (&hint, 0, sizeof (hint)); hint.server = (char *) "host/latte.josefsson.org"; hint.flags = SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED; t3 = shishi_tkts_find (tktset, &hint); if (debug) printf ("t3=%p\n", t3); if (t3 == t2) success ("shishi_tkts_find() for server OK\n"); else fail ("shishi_tkts_find() for server failed\n"); /* shishi_tkts_find () */ memset (&hint, 0, sizeof (hint)); hint.server = (char *) "krbtgt/JOSEFSSON.ORG"; hint.flags = SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED; t3 = shishi_tkts_find (tktset, &hint); if (t3 == t1) success ("shishi_tkts_find() for server OK\n"); else fail ("shishi_tkts_find() for server failed\n"); /* shishi_tkts_find () */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) "jas"; hint.flags = SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED; t3 = shishi_tkts_find (tktset, &hint); if (debug) printf ("t3=%p\n", t3); if (t3 == t1) success ("shishi_tkts_find() for client OK\n"); else fail ("shishi_tkts_find() for client failed\n"); /* shishi_tkts_find () */ memset (&hint, 0, sizeof (hint)); hint.client = (char *) "jas"; t3 = shishi_tkts_find (tktset, &hint); if (debug) printf ("t3=%p\n", t3); if (t3 == NULL) success ("shishi_tkts_find() for client2 OK\n"); else fail ("shishi_tkts_find() for client2 failed\n"); res = shishi_tkts_to_file (tktset, "tktset.tmp"); if (res == SHISHI_OK) success ("shishi_tkts_to_file() OK\n"); else fail ("shishi_tkts_to_file() failed\n"); /* shishi_tkts_add () */ res = shishi_tkts_add (tktset, t2); if (res == SHISHI_OK) success ("shishi_tkts_add() OK\n"); else fail ("shishi_tkts_add() failed\n"); /* shishi_tkts_add () */ res = shishi_tkts_add (tktset, t1); if (res == SHISHI_OK) success ("shishi_tkts_add() OK\n"); else fail ("shishi_tkts_add() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 1); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 1); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); memset (&hint, 0, sizeof (hint)); hint.server = (char *) "host/latte.josefsson.org"; hint.flags = SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED; t3 = shishi_tkts_find (tktset, &hint); if (t3 == NULL) success ("shishi_tkts_find() for server OK\n"); else fail ("shishi_tkts_find() for server failed\n"); memset (&hint, 0, sizeof (hint)); hint.server = (char *) "krbtgt/JOSEFSSON.ORG"; hint.flags = SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED; t3 = shishi_tkts_find (tktset, &hint); if (t3 == t1) success ("shishi_tkts_find() for server OK\n"); else fail ("shishi_tkts_find() for server failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 0); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_remove () */ res = shishi_tkts_remove (tktset, 0); if (res == SHISHI_OK) success ("shishi_tkts_remove() OK\n"); else fail ("shishi_tkts_remove() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 0) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_done () */ shishi_tkts_done (&tktset); success ("shishi_tkts_done() OK\n"); shishi_tkt_done (t1); success ("shishi_tkt_done (t1) OK\n"); shishi_tkt_done (t2); success ("shishi_tkt_done (t2) OK\n"); /* shishi_tkts_done () */ shishi_tkts_done (NULL); success ("shishi_tkts_done() OK\n"); /* shishi_tkts () */ res = shishi_tkts (handle, &tktset); if (res == SHISHI_OK) success ("shishi_tkts() OK\n"); else fail ("shishi_tkts() failed\n"); /* shishi_tkts_from_file () */ res = shishi_tkts_from_file (tktset, "tktset.tmp"); if (res == SHISHI_OK) success ("shishi_tkts_from_file() OK\n"); else fail ("shishi_tkts_from_file() failed\n"); /* shishi_tkts_size () */ n = shishi_tkts_size (tktset); if (debug) printf ("shishi_tkts_size () => `%zu'.\n", n); if (n == 2) success ("shishi_tkts_size() OK\n"); else fail ("shishi_tkts_size() failed\n"); /* shishi_tkts_nth () */ t1 = shishi_tkts_nth (tktset, 0); if (debug) shishi_tkt_pretty_print (t1, stdout); if (t1) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* shishi_tkts_nth () */ t2 = shishi_tkts_nth (tktset, 1); if (debug) shishi_tkt_pretty_print (t2, stdout); if (t2) success ("shishi_tkts_nth() OK\n"); else fail ("shishi_tkts_nth() failed\n"); /* DER encode and compare tkt1 ticket */ res = shishi_asn1_to_der (handle, shishi_tkt_ticket (t1), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt1ticketb64) && memcmp (buffer2, tkt1ticketb64, strlen (tkt1ticketb64)) == 0) success ("Ticket read OK\n"); else fail ("Ticket read failed\n"); /* DER encode and compare tkt1 enckdcreppart */ res = shishi_asn1_to_der (handle, shishi_tkt_enckdcreppart (t1), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt1enckdcreppartb64) && memcmp (buffer2, tkt1enckdcreppartb64, strlen (tkt1enckdcreppartb64)) == 0) success ("EncKDCRepPart read OK\n"); else fail ("EncKDCRepPart read failed\n"); /* DER encode and compare tkt1 kdcrep */ res = shishi_asn1_to_der (handle, shishi_tkt_kdcrep (t1), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt1kdcrepb64) && memcmp (buffer2, tkt1kdcrepb64, strlen (tkt1kdcrepb64)) == 0) success ("KDC-REP read OK\n"); else fail ("KDC-REP read failed\n"); /* DER encode and compare tkt2 ticket */ res = shishi_asn1_to_der (handle, shishi_tkt_ticket (t2), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt2ticketb64) && memcmp (buffer2, tkt2ticketb64, strlen (tkt2ticketb64)) == 0) success ("Ticket 2 read OK\n"); else fail ("Ticket 2 read failed\n"); /* DER encode and compare tkt2 enckdcreppart */ res = shishi_asn1_to_der (handle, shishi_tkt_enckdcreppart (t2), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt2enckdcreppartb64) && memcmp (buffer2, tkt2enckdcreppartb64, strlen (tkt2enckdcreppartb64)) == 0) success ("EncKDCRepPart 2 read OK\n"); else fail ("EncKDCRepPart 2 read failed\n"); /* DER encode and compare tkt2 kdcrep */ res = shishi_asn1_to_der (handle, shishi_tkt_kdcrep (t2), &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); base64_encode (buf, n, buffer2, BUFSIZE); free (buf); if (strlen (buffer2) == strlen (tkt2kdcrepb64) && memcmp (buffer2, tkt2kdcrepb64, strlen (tkt2kdcrepb64)) == 0) success ("KDC-REP 2 read OK\n"); else fail ("KDC-REP 2 read failed\n"); res = unlink ("tktset.tmp"); if (res == 0) success ("unlink() OK\n"); else fail ("unlink() failed\n"); shishi_tkt_done (t1); success ("shishi_tkt_done (t1) OK\n"); shishi_tkt_done (t2); success ("shishi_tkt_done (t2) OK\n"); /* shishi_tkts_done () */ shishi_tkts_done (&tktset); success ("shishi_tkts_done() OK\n"); shishi_asn1_done (handle, tkt1asn1); shishi_asn1_done (handle, tkt1asn2); shishi_asn1_done (handle, tkt1asn3); shishi_asn1_done (handle, tkt2asn1); shishi_asn1_done (handle, tkt2asn2); shishi_asn1_done (handle, tkt2asn3); } shishi-1.0.3/tests/utils.c0000644000000000000000000000772614273601533012357 00000000000000/* utils.c --- Shishi self tests utilities. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include "utils.h" const char *program_name = PACKAGE; int debug = 0; int error_count = 0; int break_on_error = 0; void fail (const char *format, ...) { va_list arg_ptr; va_start (arg_ptr, format); vfprintf (stderr, format, arg_ptr); va_end (arg_ptr); error_count++; if (break_on_error) exit (EXIT_FAILURE); } void success (const char *format, ...) { va_list arg_ptr; va_start (arg_ptr, format); if (debug) vfprintf (stdout, format, arg_ptr); va_end (arg_ptr); } void escapeprint (const char *str, size_t len) { size_t i; printf (" (length %zu bytes):\n\t", len); for (i = 0; i < len; i++) { if (((str[i] & 0xFF) >= 'A' && (str[i] & 0xFF) <= 'Z') || ((str[i] & 0xFF) >= 'a' && (str[i] & 0xFF) <= 'z') || ((str[i] & 0xFF) >= '0' && (str[i] & 0xFF) <= '9') || (str[i] & 0xFF) == ' ' || (str[i] & 0xFF) == '.') printf ("%c", (str[i] & 0xFF)); else printf ("\\x%02X", (unsigned) (str[i] & 0xFF)); if ((i + 1) % 16 == 0 && (i + 1) < len) printf ("'\n\t'"); } printf ("\n"); } void hexprint (const char *str, size_t len) { size_t i; printf ("\t;; "); for (i = 0; i < len; i++) { printf ("%02x ", (unsigned) (str[i] & 0xFF)); if ((i + 1) % 8 == 0) printf (" "); if ((i + 1) % 16 == 0 && i + 1 < len) printf ("\n\t;; "); } printf ("\n"); } void binprint (const char *str, size_t len) { size_t i; printf ("\t;; "); for (i = 0; i < len; i++) { printf ("%d%d%d%d%d%d%d%d ", (str[i] & 0xFF) & 0x80 ? 1 : 0, (str[i] & 0xFF) & 0x40 ? 1 : 0, (str[i] & 0xFF) & 0x20 ? 1 : 0, (str[i] & 0xFF) & 0x10 ? 1 : 0, (str[i] & 0xFF) & 0x08 ? 1 : 0, (str[i] & 0xFF) & 0x04 ? 1 : 0, (str[i] & 0xFF) & 0x02 ? 1 : 0, (str[i] & 0xFF) & 0x01 ? 1 : 0); if ((i + 1) % 3 == 0) printf (" "); if ((i + 1) % 6 == 0 && i + 1 < len) printf ("\n\t;; "); } printf ("\n"); } int main (int argc, char *argv[]) { Shishi *handle; do if (strcmp (argv[argc - 1], "-v") == 0 || strcmp (argv[argc - 1], "--verbose") == 0) debug = 1; else if (strcmp (argv[argc - 1], "-b") == 0 || strcmp (argv[argc - 1], "--break-on-error") == 0) break_on_error = 1; else if (strcmp (argv[argc - 1], "-h") == 0 || strcmp (argv[argc - 1], "-?") == 0 || strcmp (argv[argc - 1], "--help") == 0) { printf ("Usage: %s [-vbh?] [--verbose] [--break-on-error] [--help]\n", argv[0]); return 1; } while (argc-- > 1); handle = shishi (); if (handle == NULL) { fail ("Could not initialize shishi\n"); return 1; } if (debug) { shishi_cfg (handle, strdup ("verbose")); shishi_cfg (handle, strdup ("verbose-noise")); shishi_cfg (handle, strdup ("verbose-asn1")); shishi_cfg (handle, strdup ("verbose-crypto")); shishi_cfg (handle, strdup ("verbose-crypto-noise")); } test (handle); shishi_done (handle); if (debug) printf ("Self test `%s' finished with %d errors\n", argv[0], error_count); return error_count ? 1 : 0; } shishi-1.0.3/tests/utils.h0000644000000000000000000000334014273601533012350 00000000000000/* utils.h --- Prototypes for self test utilities. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef UTILS_H # define UTILS_H # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include "base64.h" extern int debug; extern int error_count; extern int break_on_error; extern void fail (const char *format, ...) __attribute__((format (printf, 1, 2))); extern void success (const char *format, ...) __attribute__((format (printf, 1, 2))); extern void escapeprint (const char *str, size_t len); extern void hexprint (const char *str, size_t len); extern void binprint (const char *str, size_t len); /* This must be implemented elsewhere. */ extern void test (Shishi * handle); #endif /* UTILS_H */ shishi-1.0.3/tests/safe.c0000644000000000000000000001172714273601533012131 00000000000000/* safe.c --- Shishi SAFE self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { Shishi_safe *safe; Shishi_key *key; Shishi_asn1 asn1safe; char *p, *q; size_t l, m; int32_t t; int res; /* shishi_safe() */ res = shishi_safe (handle, &safe); if (debug) printf ("shishi_safe () => `%p'.\n", safe); if (res == SHISHI_OK) success ("shishi_safe() OK\n"); else fail ("shishi_safe() failed\n"); /* shishi_safe_key */ key = shishi_safe_key (safe); if (key) success ("shishi_safe_key() OK\n"); else fail ("shishi_safe_key() failed\n"); /* shishi_safe_safe */ asn1safe = shishi_safe_safe (safe); if (asn1safe) success ("shishi_safe_safe() OK\n"); else fail ("shishi_safe_safe() failed\n"); /* shishi_safe_set_user_data */ res = shishi_safe_set_user_data (handle, asn1safe, "foo", 3); if (res == SHISHI_OK) success ("shishi_safe_set_user_data() OK\n"); else fail ("shishi_safe_set_user_data() failed (%d)\n", res); /* shishi_safe_user_data */ res = shishi_safe_user_data (handle, asn1safe, &p, &l); if (debug) escapeprint (p, l); if (res == SHISHI_OK && l == 3 && memcmp (p, "foo", 3) == 0) success ("shishi_safe_user_data() OK\n"); else fail ("shishi_safe_user_data() failed (%d)\n", res); free (p); /* shishi_safe_set_cksum */ res = shishi_safe_set_cksum (handle, asn1safe, 42, "bar", 3); if (res == SHISHI_OK) success ("shishi_safe_set_cksum() OK\n"); else fail ("shishi_safe_set_cksum() failed (%d)\n", res); /* shishi_safe_cksum */ res = shishi_safe_cksum (handle, asn1safe, &t, &q, &m); if (debug) { printf ("type=%d\n", t); escapeprint (q, m); } if (res == SHISHI_OK && t == 42 && m == 3 && memcmp (q, "bar", 3) == 0) success ("shishi_safe_cksum() OK\n"); else fail ("shishi_safe_cksum() failed (%d)\n", res); free (q); /* shishi_safe_verify */ res = shishi_safe_verify (safe, key); if (res == SHISHI_CRYPTO_ERROR) /* t==42 unsupported cksumtype */ success ("shishi_safe_verify() OK\n"); else fail ("shishi_safe_verify() failed (%d)\n", res); #if WITH_DES /* shishi_safe_set_cksum */ res = shishi_safe_set_cksum (handle, asn1safe, SHISHI_RSA_MD5_DES, "bar", 3); if (res == SHISHI_OK) success ("shishi_safe_set_cksum() OK\n"); else fail ("shishi_safe_set_cksum() failed (%d)\n", res); /* shishi_safe_verify */ res = shishi_safe_verify (safe, key); if (res == SHISHI_VERIFY_FAILED) success ("shishi_safe_verify() OK\n"); else fail ("shishi_safe_verify() failed (%d)\n", res); #endif /* shishi_safe_safe_der() */ res = shishi_safe_safe_der (safe, &p, &l); if (res == SHISHI_OK) success ("shishi_safe_safe_der() OK\n"); else fail ("shishi_safe_safe_der() failed\n"); /* shishi_safe_to_file() */ res = shishi_safe_to_file (handle, asn1safe, SHISHI_FILETYPE_TEXT, "safe.tmp"); if (res == SHISHI_OK) success ("shishi_safe_to_file() OK\n"); else fail ("shishi_safe_to_file() failed\n"); /* shishi_safe_done() */ shishi_safe_done (safe); success ("shishi_safe_done() OK\n"); /* shishi_authenticator_from_file() */ asn1safe = NULL; res = shishi_safe_from_file (handle, &asn1safe, SHISHI_FILETYPE_TEXT, "safe.tmp"); if (res == SHISHI_OK) success ("shishi_safe_from_file() OK\n"); else fail ("shishi_safe_from_file() failed\n"); if (debug) { /* shishi_safe_print() */ res = shishi_safe_print (handle, stdout, asn1safe); if (res == SHISHI_OK) success ("shishi_safe_print() OK\n"); else fail ("shishi_safe_print() failed\n"); } /* shishi_asn1_to_der() */ res = shishi_asn1_to_der (handle, asn1safe, &q, &m); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else fail ("shishi_asn1_to_der() failed\n"); /* Compare DER encodings of authenticators */ if (l > 0 && m > 0 && l == m && memcmp (p, q, l) == 0) success ("DER comparison OK\n"); else fail ("DER comparison failed\n"); shishi_asn1_done (handle, asn1safe); free (q); free (p); /* unlink() */ res = unlink ("safe.tmp"); if (res == 0) success ("unlink() OK\n"); else fail ("unlink() failed\n"); } shishi-1.0.3/tests/gztime.c0000644000000000000000000000275614273601533012514 00000000000000/* gztime.c --- Shishi generalized time self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { const char *p; int n; /* shishi_authenticator_ctime_set() */ p = shishi_generalize_time (handle, (time_t) 4711); if (debug) escapeprint (p, 15); if (p && memcmp (p, "19700101011831Z", 15) == 0) success ("shishi_generalize_time() OK\n"); else fail ("shishi_generalize_time() failed\n"); /* shishi_generalize_ctime() */ n = (int) shishi_generalize_ctime (handle, p); if (debug) printf ("shishi_generalize_ctime () => `%d'.\n", n); if (n == 4711) success ("shishi_generalize_ctime() OK\n"); else fail ("shishi_generalize_ctime() failed\n"); } shishi-1.0.3/tests/shisa.sh0000755000000000000000000003311514273602542012511 00000000000000#!/bin/sh # Copyright (C) 2003-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SHISA=$PWD/../src/shisa DBDIR=shisa.db.tmp.$$ OUT=$DBDIR/out ERR=$DBDIR/err CONF=$DBDIR/conf if test -n "$VERBOSE"; then set -x fi mkdir $DBDIR if test ! -d $DBDIR; then echo Cannot create $DBDIR exit 1 fi trap "rm -rf $DBDIR" EXIT echo "db file $DBDIR" > $CONF if test ! -f $CONF; then echo Cannot create $CONF exit 1 fi if test ! -f $SHISA; then echo Cannot find $SHISA exit 1 fi echo Dump empty database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add realm. out=`$SHISA -c $CONF -a TESTREALM` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding realm \`TESTREALM'... Adding realm \`TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo List database. out=`$SHISA -c $CONF -l` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add realm. out=`$SHISA -c $CONF -a TESTREALM2` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding realm \`TESTREALM2'... Adding realm \`TESTREALM2'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM TESTREALM2" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove realm. out=`$SHISA -c $CONF -r TESTREALM2` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing realm \`TESTREALM2'... Removing realm \`TESTREALM2'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add principal. out=`$SHISA -c $CONF -a TESTREALM test/principal` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding principal \`test/principal@TESTREALM'... Adding principal \`test/principal@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add second principal. out=`$SHISA -c $CONF -a TESTREALM test/principal2` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding principal \`test/principal2@TESTREALM'... Adding principal \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add third principal. out=`$SHISA -c $CONF -a TESTREALM test/principal3` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding principal \`test/principal3@TESTREALM'... Adding principal \`test/principal3@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add third principal again. out=`$SHISA -c $CONF -a TESTREALM test/principal3 2>&1` if test $? != 1; then echo rc $? exit 1 fi echo Remove second principal. out=`$SHISA -c $CONF -r TESTREALM test/principal2` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing principal \`test/principal2@TESTREALM'... Removing principal \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal3 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Tring to remove entire realm. out=`$SHISA -c $CONF -r TESTREALM 2>&1` if test $? != 1; then echo rc $? exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal3 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add principal with des key and password. out=`$SHISA -c $CONF -a TESTREALM test/principal2 -E des --password=foo --keys` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding principal \`test/principal2@TESTREALM'... -----BEGIN SHISHI KEY----- Keytype: 3 (des-cbc-md5) Principal: test/principal2 Realm: TESTREALM s3WXrcITWPE= -----END SHISHI KEY----- Adding principal \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add aes key with password to principal. out=`$SHISA -c $CONF -n TESTREALM test/principal2 -E aes --password=foo --keys` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding key to \`test/principal2@TESTREALM'... -----BEGIN SHISHI KEY----- Keytype: 18 (aes256-cts-hmac-sha1-96) Principal: test/principal2 Realm: TESTREALM 3XpVlkzCS2gGYbaShDQktrmYVkcqvMIMuJKLxq9a6oU= -----END SHISHI KEY----- Adding key to \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des-cbc-md5 (0x3, 3). Key 1 (0x1). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal3 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add 3des key with password to principal. out=`$SHISA -c $CONF -n TESTREALM test/principal2 -E des3 --password=foo --keys` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding key to \`test/principal2@TESTREALM'... -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: test/principal2 Realm: TESTREALM nXV/NLyMwgSunRZATGitesFP466wyGfZ -----END SHISHI KEY----- Adding key to \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des-cbc-md5 (0x3, 3). Key 1 (0x1). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Key 2 (0x2). Etype des3-cbc-sha1-kd (0x10, 16). test/principal3 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove first principal. out=`$SHISA -c $CONF -r TESTREALM test/principal` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing principal \`test/principal@TESTREALM'... Removing principal \`test/principal@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove third principal. out=`$SHISA -c $CONF -r TESTREALM test/principal3` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing principal \`test/principal3@TESTREALM'... Removing principal \`test/principal3@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove aes key on second principal. out=`$SHISA -c $CONF --key-remove TESTREALM test/principal2 -E aes` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing key from \`test/principal2@TESTREALM'... Removing key from \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des-cbc-md5 (0x3, 3). Key 1 (0x1). Etype des3-cbc-sha1-kd (0x10, 16)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Add 3des key with password to principal. out=`$SHISA -c $CONF -n TESTREALM test/principal2 -E des3 --password=bar --keys` if test $? != 0; then echo rc $? exit 1 fi expectout="Adding key to \`test/principal2@TESTREALM'... -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: test/principal2 Realm: TESTREALM wb9SbVsgCEmttWiFikwvGQLj5YZ2NFja -----END SHISHI KEY----- Adding key to \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d --keys` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des-cbc-md5 (0x3, 3). -----BEGIN SHISHI KEY----- Keytype: 3 (des-cbc-md5) Principal: test/principal2 Realm: TESTREALM s3WXrcITWPE= -----END SHISHI KEY----- Password foo. Key 1 (0x1). Etype des3-cbc-sha1-kd (0x10, 16). -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: test/principal2 Realm: TESTREALM wb9SbVsgCEmttWiFikwvGQLj5YZ2NFja -----END SHISHI KEY----- Password bar. Key 2 (0x2). Etype des3-cbc-sha1-kd (0x10, 16). -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: test/principal2 Realm: TESTREALM nXV/NLyMwgSunRZATGitesFP466wyGfZ -----END SHISHI KEY----- Password foo." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove 3des key with password 'bar' on second principal. out=`$SHISA -c $CONF --key-remove TESTREALM test/principal2 -E des3 --password=bar` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing key from \`test/principal2@TESTREALM'... Removing key from \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Remove 3des key with password 'foo' on second principal. out=`$SHISA -c $CONF --key-remove TESTREALM test/principal2 -E des3 --password=foo` if test $? != 0; then echo rc $? exit 1 fi expectout="Removing key from \`test/principal2@TESTREALM'... Removing key from \`test/principal2@TESTREALM'...done" if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Dump database. out=`$SHISA -c $CONF -d` if test $? != 0; then echo rc $? exit 1 fi expectout="TESTREALM test/principal2 Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des-cbc-md5 (0x3, 3)." if test "$out" != "$expectout"; then echo expected: $expectout >&2 echo -----got: $out >&2 exit 1 fi echo Tests finished exit 0 shishi-1.0.3/tests/authenticator.c0000644000000000000000000002673014273601533014065 00000000000000/* authenticator.c --- Shishi authenticator self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" static const char authenticator[] = { '\x62', '\x4b', '\x30', '\x49', '\xa0', '\x03', '\x02', '\x01', '\x05', '\xa1', '\x05', '\x1b', '\x03', '\x62', '\x61', '\x72', '\xa2', '\x10', '\x30', '\x0e', '\xa0', '\x03', '\x02', '\x01', '\x00', '\xa1', '\x07', '\x30', '\x05', '\x1b', '\x03', '\x66', '\x6f', '\x6f', '\xa4', '\x04', '\x02', '\x02', '\x12', '\x67', '\xa5', '\x11', '\x18', '\x0f', '\x31', '\x39', '\x37', '\x30', '\x30', '\x31', '\x30', '\x31', '\x30', '\x31', '\x31', '\x38', '\x33', '\x31', '\x5a', '\xa8', '\x10', '\x30', '\x0e', '\x30', '\x0c', '\xa0', '\x03', '\x02', '\x01', '\x2a', '\xa1', '\x05', '\x04', '\x03', '\x62', '\x61', '\x7a' }; static const char authenticator2[] = { '\x62', '\x39', '\x30', '\x37', '\xa0', '\x03', '\x02', '\x01', '\x05', '\xa1', '\x05', '\x1b', '\x03', '\x62', '\x61', '\x72', '\xa2', '\x10', '\x30', '\x0e', '\xa0', '\x03', '\x02', '\x01', '\x00', '\xa1', '\x07', '\x30', '\x05', '\x1b', '\x03', '\x66', '\x6f', '\x6f', '\xa4', '\x04', '\x02', '\x02', '\x12', '\x67', '\xa5', '\x11', '\x18', '\x0f', '\x31', '\x39', '\x37', '\x30', '\x30', '\x31', '\x30', '\x31', '\x30', '\x31', '\x31', '\x38', '\x33', '\x31', '\x5a' }; #define AUTHENTICATOR_LEN 77 #define AUTHENTICATOR2_LEN 59 void test (Shishi * handle) { Shishi_asn1 a; char *p, *buf, *buf2; int res; size_t n, m; int32_t t; uint32_t s; /* shishi_authenticator */ a = shishi_authenticator (handle); if (debug) printf ("shishi_authenticator () => `%p'.\n", a); if (a) success ("shishi_authenticator() OK\n"); else fail ("shishi_authenticator() failed\n"); if (debug) shishi_authenticator_print (handle, stdout, a); res = shishi_authenticator_remove_subkey (handle, a); if (res == SHISHI_OK) success ("shishi_authenticator_remove_subkey() OK\n"); else fail ("shishi_authenticator_remove_subkey() failed\n"); /* shishi_authenticator_seqnumber_get */ res = shishi_authenticator_seqnumber_get (handle, a, &s); if (res == SHISHI_OK) success ("shishi_authenticator_seqnumber_get() OK\n"); else fail ("shishi_authenticator_seqnumber_get() failed\n"); /* shishi_authenticator_seqnumber_set */ res = shishi_authenticator_seqnumber_set (handle, a, 42); if (res == SHISHI_OK) success ("shishi_authenticator_seqnumber_set() OK\n"); else fail ("shishi_authenticator_seqnumber_set() failed\n"); /* shishi_authenticator_seqnumber_get */ res = shishi_authenticator_seqnumber_get (handle, a, &s); if (res == SHISHI_OK && s == 42) success ("shishi_authenticator_seqnumber_get() OK\n"); else fail ("shishi_authenticator_seqnumber_get() failed\n"); /* shishi_authenticator_seqnumber_remove */ res = shishi_authenticator_seqnumber_remove (handle, a); if (res == SHISHI_OK) success ("shishi_authenticator_seqnumber_remove() OK\n"); else fail ("shishi_authenticator_seqnumber_remove() failed\n"); /* shishi_authenticator_set_crealm */ res = shishi_authenticator_set_crealm (handle, a, "foo"); if (res == SHISHI_OK) success ("shishi_authenticator_set_crealm() OK\n"); else fail ("shishi_authenticator_set_crealm() failed\n"); /* shishi_authenticator_client_set */ res = shishi_authenticator_client_set (handle, a, "foo/bar/baz"); if (res == SHISHI_OK) success ("shishi_authenticator_client_set() OK\n"); else fail ("shishi_authenticator_client_set() failed\n"); /* shishi_authenticator_client */ res = shishi_authenticator_client (handle, a, &buf, &n); if (debug) escapeprint (buf, n); if (res == SHISHI_OK && n == strlen ("foo/bar/baz") && memcmp (buf, "foo/bar/baz", n) == 0) success ("shishi_authenticator_client() OK\n"); else fail ("shishi_authenticator_client() failed\n"); if (res == SHISHI_OK) free (buf); /* shishi_authenticator_client_set */ res = shishi_authenticator_client_set (handle, a, "foo"); if (res == SHISHI_OK) success ("shishi_authenticator_client_set() OK\n"); else fail ("shishi_authenticator_client_set() failed\n"); /* shishi_authenticator_client */ res = shishi_authenticator_client (handle, a, &buf, &n); if (debug) escapeprint (buf, n); if (res == SHISHI_OK && n == strlen ("foo") && memcmp (buf, "foo", n) == 0) success ("shishi_authenticator_client() OK\n"); else fail ("shishi_authenticator_client() failed\n"); if (res == SHISHI_OK) free (buf); /* shishi_authenticator_set_crealm */ res = shishi_authenticator_set_crealm (handle, a, "bar"); if (res == SHISHI_OK) success ("shishi_authenticator_set_crealm() OK\n"); else fail ("shishi_authenticator_set_crealm() failed\n"); /* shishi_authenticator_clientrealm */ res = shishi_authenticator_clientrealm (handle, a, &buf, &n); if (debug) escapeprint (buf, n); if (res == SHISHI_OK && n == strlen ("foo@bar") && memcmp (buf, "foo@bar", n) == 0) success ("shishi_authenticator_clientrealm() OK\n"); else fail ("shishi_authenticator_clientrealm() failed\n"); if (res == SHISHI_OK) free (buf); /* shishi_authenticator_add_authorizationdata */ res = shishi_authenticator_add_authorizationdata (handle, a, 42, "baz", 3); if (res == SHISHI_OK) success ("shishi_authenticator_add_authorizationdata() OK\n"); else fail ("shishi_authenticator_add_authorizationdata() failed\n"); /* shishi_authenticator_authorizationdata */ res = shishi_authenticator_authorizationdata (handle, a, &t, &buf, &m, 1); if (debug) escapeprint (buf, m); if (res == SHISHI_OK && t == 42 && m == 3 && memcmp (buf, "baz", 3) == 0) success ("shishi_authenticator_authorizationdata() OK\n"); else fail ("shishi_authenticator_authorizationdata() failed\n"); if (res == SHISHI_OK) free (buf); /* shishi_authenticator_authorizationdata */ res = shishi_authenticator_authorizationdata (handle, a, &t, &buf, &m, 2); if (res == SHISHI_OK) free (buf); if (res == SHISHI_OUT_OF_RANGE) success ("shishi_authenticator_authorizationdata() OK\n"); else fail ("shishi_authenticator_authorizationdata() failed\n"); /* shishi_authenticator_remove_cksum */ res = shishi_authenticator_remove_cksum (handle, a); if (res == SHISHI_OK) success ("shishi_authenticator_remove_cksum() OK\n"); else fail ("shishi_authenticator_remove_cksum() failed\n"); /* shishi_asn1_to_der */ res = shishi_asn1_to_der (handle, a, &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); /* shishi_authenticator_to_file */ res = shishi_authenticator_to_file (handle, a, SHISHI_FILETYPE_TEXT, "authenticator.tmp"); if (res == SHISHI_OK) success ("shishi_authenticator_to_file() OK\n"); else fail ("shishi_authenticator_to_file() failed\n"); /* shishi_asn1_done */ shishi_asn1_done (handle, a); success ("shishi_asn1_done() OK\n"); a = NULL; /* shishi_authenticator_from_file */ res = shishi_authenticator_from_file (handle, &a, SHISHI_FILETYPE_TEXT, "authenticator.tmp"); if (res == SHISHI_OK) success ("shishi_authenticator_from_file() OK\n"); else fail ("shishi_authenticator_from_file() failed\n"); if (debug) { /* shishi_authenticator_print */ res = shishi_authenticator_print (handle, stdout, a); if (res == SHISHI_OK) success ("shishi_authenticator_print() OK\n"); else fail ("shishi_authenticator_print() failed\n"); } /* shishi_asn1_to_der */ res = shishi_asn1_to_der (handle, a, &buf2, &m); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); /* Compare DER encodings of authenticators */ if (n > 0 && m > 0 && n == m && memcmp (buf, buf2, n) == 0) success ("DER comparison OK\n"); else fail ("DER comparison failed\n"); free (buf); free (buf2); /* shishi_authenticator_cusec_set */ res = shishi_authenticator_cusec_set (handle, a, 4711); if (res == SHISHI_OK) success ("shishi_authenticator_cusec_set() OK\n"); else fail ("shishi_authenticator_cusec_set() failed\n"); /* shishi_authenticator_cusec_get */ res = shishi_authenticator_cusec_get (handle, a, &s); if (debug) printf ("shishi_authenticator_cusec_get () => `%d'.\n", t); if (res == SHISHI_OK && s == 4711) success ("shishi_authenticator_cusec_get() OK\n"); else fail ("shishi_authenticator_cusec_get() failed\n"); /* shishi_authenticator_ctime_set */ res = shishi_authenticator_ctime_set (handle, a, "19700101011831Z"); if (res == SHISHI_OK) success ("shishi_authenticator_ctime_set() OK\n"); else fail ("shishi_authenticator_ctime_set() failed\n"); /* shishi_authenticator_ctime */ res = shishi_authenticator_ctime (handle, a, &p); if (debug) escapeprint (p, strlen (p)); if (res == SHISHI_OK && memcmp (p, "19700101011831Z", 15) == 0) success ("shishi_authenticator_ctime() OK\n"); else fail ("shishi_authenticator_ctime() failed\n"); if (res == SHISHI_OK) free (p); /* shishi_asn1_to_der */ res = shishi_asn1_to_der (handle, a, &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); if (debug) { shishi_authenticator_print (handle, stdout, a); hexprint (buf, n); puts (""); hexprint (authenticator, sizeof (authenticator)); puts (""); } if (n == sizeof (authenticator) && n == AUTHENTICATOR_LEN && memcmp (authenticator, buf, n) == 0) success ("DER comparison OK\n"); else fail ("DER comparison failed\n"); free (buf); /* shishi_authenticator_clear_authorizationdata */ res = shishi_authenticator_clear_authorizationdata (handle, a); if (res == SHISHI_OK) success ("shishi_authenticator_clear_authorizationdata() OK\n"); else fail ("shishi_authenticator_clear_authorizationdata() failed\n"); /* shishi_asn1_to_der */ res = shishi_asn1_to_der (handle, a, &buf, &n); if (res == SHISHI_OK) success ("shishi_asn1_to_der() OK\n"); else n = 0, fail ("shishi_asn1_to_der() failed\n"); if (debug) { shishi_authenticator_print (handle, stdout, a); hexprint (buf, n); puts (""); hexprint (authenticator2, sizeof (authenticator2)); puts (""); } if (n == sizeof (authenticator2) && n == AUTHENTICATOR2_LEN && memcmp (authenticator2, buf, n) == 0) success ("DER comparison OK\n"); else fail ("DER comparison failed\n"); free (buf); /* unlink */ res = unlink ("authenticator.tmp"); if (res == 0) success ("unlink() OK\n"); else fail ("unlink() failed\n"); /* shishi_asn1_done */ shishi_asn1_done (handle, a); success ("shishi_asn1_done() OK\n"); } shishi-1.0.3/tests/keytab1.bin0000644000000000000000000000067014273523166013101 00000000000000=DOPIO.JOSEFSSON.ORGhostlatteDw¥h;h,Jb=DOPIO.JOSEFSSON.ORGhostlatteDw¥h;h,Jb=DOPIO.JOSEFSSON.ORGhostlatteDw¥h;h,JbUDOPIO.JOSEFSSON.ORGhostlatteDw¥ O3¡Òœü—«{fÜ&ƶ´ý˜ÿùOD±5hy÷È>½ñMDOPIO.JOSEFSSON.ORGhostlatteDw¥1^›¶Eì”ÎÍ«RæÂ|ž&RãaþÙÙEDOPIO.JOSEFSSON.ORGhostlatteDw¥J‰ŒkäÉea½œw…ÿ!shishi-1.0.3/tests/low-crypto.c0000644000000000000000000003100614273601533013322 00000000000000/* low-crypto.c --- Shishi crypto primitives self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { char *out, *ivout; int err; if (debug) shishi_cfg (handle, strdup ("verbose-crypto")); err = shishi_crc (handle, "abcdefgh", 8, &out); if (err) fail ("shishi_crc() failed: %d\n", err); else { if (memcmp (out, "\x39\xf5\xcd\xcb", 4) == 0) success ("shishi_crc() OK\n"); else { hexprint (out, 4); fail ("shishi_crc() failure\n"); } free (out); } err = shishi_md4 (handle, "abcdefgh", 8, &out); if (err) fail ("shishi_md4() failed: %d\n", err); else { if (memcmp (out, "\xad\x9d\xaf\x8d\x49\xd8\x19\x88" "\x59\x0a\x6f\x0e\x74\x5d\x15\xdd", 16) == 0) success ("shishi_md4() OK\n"); else { hexprint (out, 16); fail ("shishi_md4() failure\n"); } free (out); } err = shishi_md5 (handle, "abcdefgh", 8, &out); if (err) fail ("shishi_md5() failed: %d\n", err); else { if (memcmp (out, "\xe8\xdc\x40\x81\xb1\x34\x34\xb4" "\x51\x89\xa7\x20\xb7\x7b\x68\x18", 16) == 0) success ("shishi_md5() OK\n"); else { hexprint (out, 16); fail ("shishi_md5() failure\n"); } free (out); } err = shishi_hmac_md5 (handle, "keykeykey", 9, "abcdefgh", 8, &out); if (err) fail ("shishi_hmac_md5() failed: %d\n", err); else { if (memcmp (out, "\x3c\xb0\x9d\x83\x28\x01\xef\xc0" "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) success ("shishi_hmac_md5() OK\n"); else { hexprint (out, 16); fail ("shishi_hmac_md5() failure\n"); } free (out); } err = shishi_hmac_sha1 (handle, "keykeykey", 9, "abcdefgh", 8, &out); if (err) fail ("shishi_hmac_sha1() failed: %d\n", err); else { if (memcmp (out, "\x58\x93\x7a\x58\xfe\xea\x82\xf8" "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa", 20) == 0) success ("shishi_hmac_sha1() OK\n"); else { hexprint (out, 20); fail ("shishi_hmac_sha1() failure\n"); } free (out); } err = shishi_des_cbc_mac (handle, "kdykdykd", NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_des_cbc_mac() failed: %d\n", err); else { if (memcmp (out, "\xb9\xf1\x38\x36\x37\x7a\x6f\x4c", 8) == 0) success ("shishi_des_cbc_mac() OK\n"); else { hexprint (out, 8); fail ("shishi_des_cbc_mac() failure\n"); } free (out); } err = shishi_des_cbc_mac (handle, "kdykdykd", "iviviviv", "abcdefgh", 8, &out); if (err) fail ("shishi_des_cbc_mac() failed: %d\n", err); else { if (memcmp (out, "\x7b\x66\x2d\x4d\x54\xc9\xc1\x01", 8) == 0) success ("shishi_des_cbc_mac() OK\n"); else { hexprint (out, 8); fail ("shishi_des_cbc_mac() failure\n"); } free (out); } err = shishi_arcfour (handle, 0, "keykeykey", 9, NULL, NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { if (memcmp (out, "\x6a\x0e\x57\x89\x41\xe9\x1c\x22", 8) == 0) success ("shishi_arcfour() OK\n"); else { hexprint (out, 8); fail ("shishi_arcfour() failure\n"); } free (out); } /* Decryption of previous case. */ err = shishi_arcfour (handle, 1 /* ignored! */ , "keykeykey", 9, NULL, NULL, "\x6a\x0e\x57\x89\x41\xe9\x1c\x22", 8, &out); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { if (memcmp (out, "abcdefgh", 8) == 0) success ("shishi_arcfour() OK decrypt\n"); else { hexprint (out, 8); fail ("shishi_arcfour() failure\n"); } free (out); } err = shishi_arcfour (handle, 0, "keykeyke", 8, NULL, &ivout, "abcdefghi", 9, &out); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { if (memcmp (out, "\x17\x52\xf3\xd8\x61\x14\xe6\x76", 8) == 0) success ("shishi_arcfour() OK\n"); else { hexprint (out, 8); fail ("shishi_arcfour() failure\n"); } if (memcmp (ivout, "\x6b\xdf\xca\xe7\x4c\xe8\x79\x53" "\xd0\x4e\xe2\x37\xc9\x52\xc6\x3c" "\x24\xf2\x9e\x5b\x32\x50\x07\x2e" "\xee\x0f\xc2\x38\x86\x89\x4b\x21" "\xd2\xc0\xa2\x7a\xb7\xae\xf1\xcb" "\x03\x19\x78\x41\x9f\x74\xab\x35" "\x12\x30\xe9\x04\x1c\x05\x66\x58" "\x25\x62\x77\xa5\x42\x44\xd6\x6d" "\x85\xc8\x43\x94\xcf\xfb\x06\x0b" "\xde\x7f\x15\xa1\x8e\xaa\x70\x1b" "\x98\xb0\x13\x27\x73\x4f\x2a\x3d" "\x81\x29\x83\xd8\x99\x36\xd3\x54" "\x4a\x31\xf0\xbe\x18\xe1\x6f\x28" "\x3a\x64\x6a\x68\xef\x59\x22\xbc" "\xb5\x47\x76\x63\xec\x48\x3b\x71" "\x10\xc4\x87\x5f\xea\xc1\xf6\x5d" "\xc5\x8b\xda\xac\xe0\xa9\x8a\xa6" "\x11\x09\x0c\x72\xad\xb3\x46\xe5" "\x9b\x91\x16\x93\x51\x49\xe6\xbf" "\x95\xf5\xd1\x20\xe3\x90\x5a\x39" "\x7b\x7e\x7c\xb9\x40\xbd\x08\x9a" "\x45\xb4\xd7\x1f\x2c\x61\xb8\xcc" "\xb6\x33\x92\x0e\xf9\x0a\xba\x55" "\x75\x14\x5e\xb1\x26\xf8\x84\xed" "\xa4\x1e\x7d\x60\xe4\xdd\x2b\xff" "\xeb\xfe\xd4\x57\x8c\xa0\x88\x8d" "\xdc\x00\x34\x23\xc7\xfd\x0d\x97" "\x56\x96\xaf\xcd\x3f\xf7\xc3\xa7" "\x6c\x65\xbb\xf3\x3e\xdb\x4d\xd9" "\x1d\xa3\x9d\xf4\x17\x69\x6e\x82" "\x02\xa8\x2d\x9c\xce\x1a\xb2\xfc" "\xfa\x5c\x67\x2f\x8f\x01\x80\xd5" "\x09\xa2", 258) == 0) success ("shishi_arcfour() OK IV\n"); else { hexprint (ivout, 258); fail ("shishi_arcfour() failure IV\n"); } free (out); free (ivout); } err = shishi_arcfour (handle, 0, "keykeyk", 8, NULL, &ivout, "Chr Dedekind", 13, &out); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { /* We have a valid seed in IVOUT. */ free (out); err = shishi_arcfour (handle, 0, "keykeyk", 8, ivout, NULL, "Johann Jeep", 12, &out); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { char *out2; err = shishi_arcfour (handle, 1, "keykeyk", 8, ivout, NULL, out, 12, &out2); if (err) fail ("shishi_arcfour() failed: %d\n", err); else { if (memcmp (out2, "Johann Jeep", 12) == 0) success ("shishi_arcfour() OK IV decrypt\n"); else { hexprint (out2, 12); fail ("shishi_arcfour() failure\n"); } free (out2); } } free (out); free (ivout); } err = shishi_des (handle, 0, "kdykdykd", NULL, NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_des() failed: %d\n", err); else { if (memcmp (out, "\xb9\xf1\x38\x36\x37\x7a\x6f\x4c", 8) == 0) success ("shishi_des() OK\n"); else { hexprint (out, 8); fail ("shishi_des() failure\n"); } free (out); } err = shishi_des (handle, 0, "kdykdykd", "iviviviv", NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_des() failed: %d\n", err); else { if (memcmp (out, "\x7b\x66\x2d\x4d\x54\xc9\xc1\x01", 8) == 0) success ("shishi_des() OK\n"); else { hexprint (out, 8); fail ("shishi_des() failure\n"); } free (out); } err = shishi_des (handle, 0, "kdykdykd", "iviviviv", &ivout, "abcdefgh", 8, &out); if (err) fail ("shishi_des() failed: %d\n", err); else { if (memcmp (out, "\x7b\x66\x2d\x4d\x54\xc9\xc1\x01", 8) == 0) success ("shishi_des() OK\n"); else { hexprint (out, 8); fail ("shishi_des() failure\n"); } if (memcmp (ivout, "\x7b\x66\x2d\x4d\x54\xc9\xc1\x01", 8) == 0) success ("shishi_des() OK IV\n"); else { hexprint (ivout, 8); fail ("shishi_des() failure IV\n"); } free (out); free (ivout); } err = shishi_3des (handle, 0, "kdykdykdykdykdykdykdykdy", NULL, NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_3des() failed: %d\n", err); else { if (memcmp (out, "\xd9\x4a\xd9\xa4\x92\xb1\x70\x60", 8) == 0) success ("shishi_3des() OK\n"); else { hexprint (out, 8); fail ("shishi_3des() failure\n"); } free (out); } err = shishi_3des (handle, 0, "kdykdykdykdykdykdykdykdy", "iviviviviviviviviviviviv", NULL, "abcdefgh", 8, &out); if (err) fail ("shishi_3des() failed: %d\n", err); else { if (memcmp (out, "\x45\xba\x34\xb4\xda\xd7\x53\x6f", 8) == 0) success ("shishi_3des() OK\n"); else { hexprint (out, 8); fail ("shishi_3des() failure\n"); } free (out); } err = shishi_3des (handle, 0, "kdykdykdykdykdykdykdykdy", "iviviviviviviviviviviviv", &ivout, "abcdefghijklmnopqrstuvxy", 24, &out); if (err) fail ("shishi_3des() failed: %d\n", err); else { if (memcmp (out, "\x45\xba\x34\xb4\xda\xd7\x53\x6f" "\x4e\x4b\xe8\x14\x44\x25\xf2\x19" "\x46\x57\x6b\x16\xd9\x5d\xf2\x38", 24) == 0) success ("shishi_3des() OK\n"); else { hexprint (out, 24); fail ("shishi_3des() failure\n"); } if (memcmp (ivout, "\x46\x57\x6b\x16\xd9\x5d\xf2\x38", 8) == 0) success ("shishi_3des() OK IV\n"); else { hexprint (ivout, 8); fail ("shishi_3des() failure IV\n"); } free (out); free (ivout); } err = shishi_aes_cts (handle, 0, "keykeykeykeykeyk", 16, "iviviviviviviviv", &ivout, "abcdefghijklmnop", 16, &out); if (err) fail ("shishi_aes_cts(16) failed: %d\n", err); else { if (memcmp (out, "\x89\xee\x53\x33\x54\xa8\xb0\xb7" "\xb6\x36\xbf\x80\xb0\xba\x6a\x4a", 16) == 0) success ("shishi_aes_cts(16) OK\n"); else { hexprint (out, 16); fail ("shishi_aes_cts(16) failure\n"); } if (memcmp (ivout, "\x89\xee\x53\x33\x54\xa8\xb0\xb7" "\xb6\x36\xbf\x80\xb0\xba\x6a\x4a", 16) == 0) success ("shishi_aes_cts(16) OK IV\n"); else { hexprint (ivout, 16); fail ("shishi_aes_cts(16) failure IV\n"); } free (out); free (ivout); } err = shishi_aes_cts (handle, 0, "keykeykeykeykeyk", 16, "iviviviviviviviv", &ivout, "abcdefghijklmnopqrstuvxy", 24, &out); if (err) fail ("shishi_aes_cts(24) failed: %d\n", err); else { if (memcmp (out, "\x22\x8f\x1a\xc5\xd4\x74\xd2\x74" "\x96\x4d\x2d\xcd\x0b\xa3\x0d\x8f" "\x89\xee\x53\x33\x54\xa8\xb0\xb7", 24) == 0) success ("shishi_aes_cts(24) OK\n"); else { hexprint (out, 24); fail ("shishi_aes_cts(24) failure\n"); } if (memcmp (ivout, "\x22\x8f\x1a\xc5\xd4\x74\xd2\x74" "\x96\x4d\x2d\xcd\x0b\xa3\x0d\x8f", 16) == 0) success ("shishi_aes_cts(24) OK IV\n"); else { hexprint (ivout, 16); fail ("shishi_aes_cts(24) failure IV\n"); } free (out); free (ivout); } err = shishi_aes_cts (handle, 0, "keykeykeykeykeyk", 16, "iviviviviviviviv", &ivout, "abcdefghijklmnopqrstuvx", 23, &out); if (err) fail ("shishi_aes_cts(23) failed: %d\n", err); else { if (memcmp (out, "\x45\x23\x5a\x0c\x6b\x8a\x0c\xad" "\xe6\x50\xff\xe1\x08\x17\x9a\x6d" "\x89\xee\x53\x33\x54\xa8\xb0", 23) == 0) success ("shishi_aes_cts(23) OK\n"); else { hexprint (out, 23); fail ("shishi_aes_cts(23) failure\n"); } if (memcmp (ivout, "\x45\x23\x5a\x0c\x6b\x8a\x0c\xad" "\xe6\x50\xff\xe1\x08\x17\x9a\x6d", 16) == 0) success ("shishi_aes_cts(23) OK IV\n"); else { hexprint (ivout, 16); fail ("shishi_aes_cts(23) failure IV\n"); } free (out); free (ivout); } err = shishi_aes_cts (handle, 0, "keykeykeykeykeyk", 16, "iviviviviviviviv", &ivout, "abcdefghijklmnopqrstuvxyz", 25, &out); if (err) fail ("shishi_aes_cts(25) failed: %d\n", err); else { if (memcmp (out, "\xa9\x50\xdd\xcb\xa8\x5b\x5c\xb6" "\x84\x7d\x38\x65\x4a\xc1\x63\xd7" "\x89\xee\x53\x33\x54\xa8\xb0\xb7\xb6", 25) == 0) success ("shishi_aes_cts(25) OK\n"); else { hexprint (out, 25); fail ("shishi_aes_cts(25) failure\n"); } if (memcmp (ivout, "\xa9\x50\xdd\xcb\xa8\x5b\x5c\xb6" "\x84\x7d\x38\x65\x4a\xc1\x63\xd7", 16) == 0) success ("shishi_aes_cts(25) OK IV\n"); else { hexprint (ivout, 16); fail ("shishi_aes_cts(25) failure IV\n"); } free (out); free (ivout); } } shishi-1.0.3/tests/key.c0000644000000000000000000000301714273601533011774 00000000000000/* key.c --- Shishi KEY self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" void test (Shishi * handle) { Shishi_key *key; const char *p; int res; res = shishi_key_from_base64 (handle, SHISHI_AES128_CTS_HMAC_SHA1_96, "Zm5vcmRmbm9yZGZub3JkZg==", &key); if (debug) printf ("shishi_key_from_base64 => `%p'.\n", key); if (res == SHISHI_OK) success ("shishi_key_from_base64 OK\n"); else fail ("shishi_key_from_base64 failed\n"); p = shishi_key_value (key); if (!p) fail ("shishi_key_value failed\n"); else { if (memcmp (p, "fnordfnordfnordf", shishi_key_length (key)) == 0) success ("shishi_key_value OK\n"); else fail ("shishi_key_value mismatch\n"); } shishi_key_done (key); } shishi-1.0.3/tests/ccache1.bin0000644000000000000000000000157214273523166013032 00000000000000 ÿýûDOPIO.JOSEFSSON.ORGjasDOPIO.JOSEFSSON.ORGjasDOPIO.JOSEFSSON.ORGkrbtgtDOPIO.JOSEFSSON.ORG Ï{é·¤oËö£  »,ÎPÃí?°©e–"Œñ„:SaEYEYE_ØP`a‚0‚ ¡DOPIO.JOSEFSSON.ORG¢(0& ¡0krbtgtDOPIO.JOSEFSSON.ORG£Ç0Ä ¡¢·´#ɤ Lh“·3–,ø®mœ"„GÙ?;Ú>ùÑ—æ·g’ƒ½&Ëüðrªrø}?˜ÎÜ:8a€§¿NyOH8|^„m„xGÜo|§;¿Û¬ÑÐëÄ|zK–9†–¤‹Py ¡äÙtš©óÃíà£UÖˆê©5’Rÿ ÔLÞ“6‘fò‡†=`Ɖ¢?wÖ>^M·¼ÒJÈ6„+Ù6¿ÝT† ‘ Pö&ˆ¶ PDOPIO.JOSEFSSON.ORGjasDOPIO.JOSEFSSON.ORGhostdopioL’å÷¶Jh¹EYEiE_ØP(òaï0ì ¡DOPIO.JOSEFSSON.ORG¢0 ¡0 hostdopio£³0° ¡¢£ Á ÁÍ[}Q‰^…1/^ô­—bÀAðÁA‹Á`~"ÜyNZÖø[Zçr6p>LÈ-iúXWjÌê,ÁlÃÙ®(Y¸šÑ£æºk$~]¥Í™Û—¼ –?Êd×)1 ½ñR¡—÷X~¡cSnÈó€"r§<:†,9ª.Âìܨ±¹)º2GÃbÛØ%?F}™¦L]shishi-1.0.3/tests/rijndael.c0000644000000000000000000001022614273601533012774 00000000000000/* rijndael.c --- Shishi AES crypto self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" #define IVLEN 16 #define KEY "chicken teriyaki" #define IN "I would like the General Gau's Chicken, please, and wonton soup." #define ZERO "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" static struct { const char *key; size_t keylen; const char *iv; const char *in; size_t inlen; const char *out; size_t outlen; const char *nextiv; } tv[] = { { KEY, 16, ZERO, IN, 17, "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4\xd8\xa5\x80\x36\x2d\xa7\xff\x7f\x97", 17, "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"}, { KEY, 16, ZERO, IN, 31, "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1\xd4\x45\xd4\xc8\xef\xf7\xed\x22" "\x97\x68\x72\x68\xd6\xec\xcc\xc0\xc0\x7b\x25\xe2\x5e\xcf\xe5", 31, "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1\xd4\x45\xd4\xc8\xef\xf7\xed\x22"}, { KEY, 16, ZERO, IN, 32, "\x39\x31\x25\x23\xa7\x86\x62\xd5\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" "\x97\x68\x72\x68\xd6\xec\xcc\xc0\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", 32, "\x39\x31\x25\x23\xa7\x86\x62\xd5\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"}, { KEY, 16, ZERO, IN, 47, "\x97\x68\x72\x68\xd6\xec\xcc\xc0\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c\x1b\x55\x49\xd2\xf8\x38\x02\x9e" "\x39\x31\x25\x23\xa7\x86\x62\xd5\xbe\x7f\xcb\xcc\x98\xeb\xf5", 47, "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c\x1b\x55\x49\xd2\xf8\x38\x02\x9e"}, { KEY, 16, ZERO, IN, 48, "\x97\x68\x72\x68\xd6\xec\xcc\xc0\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" "\x39\x31\x25\x23\xa7\x86\x62\xd5\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", 48, "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"}, { KEY, 16, ZERO, IN, 64, "\x97\x68\x72\x68\xd6\xec\xcc\xc0\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" "\x39\x31\x25\x23\xa7\x86\x62\xd5\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" "\x48\x07\xef\xe8\x36\xee\x89\xa5\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", 64, "\x48\x07\xef\xe8\x36\xee\x89\xa5\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"} }; void test (Shishi * handle) { char *out, *ivout; size_t i; int err; if (debug) shishi_cfg (handle, strdup ("verbose-crypto")); for (i = 0; i < sizeof (tv) / sizeof (tv[0]); i++) { err = shishi_aes_cts (handle, 0, tv[i].key, tv[i].keylen, tv[i].iv, &ivout, tv[i].in, tv[i].inlen, &out); if (debug) { printf ("input:\n"); hexprint (tv[i].in, tv[i].inlen); printf ("output:\n"); hexprint (out, tv[i].inlen); if (memcmp (out, tv[i].out, tv[i].outlen) != 0) { printf ("expected output:\n"); hexprint (tv[i].out, tv[i].outlen); } printf ("iv out:\n"); hexprint (ivout, IVLEN); if (memcmp (ivout, tv[i].nextiv, IVLEN) != 0) { printf ("expected iv out:\n"); hexprint (tv[i].nextiv, IVLEN); } } if (err) fail ("shishi_aes_cts(%zu) failed: %d\n", i, err); else { if (memcmp (out, tv[i].out, tv[i].outlen) == 0) success ("shishi_aes_cts(%zu) OK\n", i); else fail ("shishi_aes_cts(%zu) failure\n", i); if (memcmp (ivout, tv[i].nextiv, IVLEN) == 0) success ("shishi_aes_cts(%zu) IV OK\n", i); else fail ("shishi_aes_cts(%zu) failure IV\n", i); free (out); free (ivout); } } } shishi-1.0.3/tests/keytab.c0000644000000000000000000000400114273601533012455 00000000000000/* keytab.c --- Self test MIT keytab file readers. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" #include "read-file.h" void test (Shishi * handle) { Shishi_keys *keys; const Shishi_key *key; const char *keytab = getenv ("KEYTAB1"); char *data, *data2; size_t len, len2; int rc; int keyno = 0; if (!keytab) keytab = "keytab1.bin"; data = read_file (keytab, RF_BINARY, &len); if (data == NULL) fail ("cannot read keytab file %s", keytab); rc = shishi_keys_from_keytab_mem (handle, data, len, &keys); if (rc != SHISHI_OK) fail ("shishi_keys_from_keytab_mem() failed (%d)\n", rc); if (shishi_keys_size (keys) != 6) fail ("shishi_keys_size() failed (%d)\n", shishi_keys_size (keys)); if (debug) { while ((key = shishi_keys_nth (keys, keyno++)) != NULL) { rc = shishi_key_print (handle, stdout, key); if (rc != SHISHI_OK) fail ("shishi_key_print() failed (%d)\n", rc); } } rc = shishi_keys_to_keytab_mem (handle, keys, &data2, &len2); if (rc != SHISHI_OK) fail ("shishi_keys_to_keytab_mem() failed (%d)\n", rc); if (len != len2 || memcmp (data, data2, len) != 0) fail ("memory comparison failed\n"); shishi_keys_done (&keys); free (data); free (data2); } shishi-1.0.3/tests/crypto.c0000644000000000000000000005341414273601533012532 00000000000000/* crypto.c --- Shishi crypto self tests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" struct drdk { int type; const char *key; int nusage; const char *usage; const char *dr; const char *dk; }; const struct drdk drdk[] = { #if WITH_3DES {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\xd3\xf8\x29\x8c\xcb\x16\x64\x38\xdc\xb9\xb9\x3e" "\xe5\xa7\x62\x92\x86\xa4\x91\xf8\x38\xf8\x02\xfb", 8, "kerberos", "\x22\x70\xdb\x56\x5d\x2a\x3d\x64\xcf\xbf" "\xdc\x53\x05\xd4\xf7\x78\xa6\xde\x42\xd9\xda", "\x23\x70\xda\x57\x5d\x2a\x3d\xa8\x64\xce\xbf\xdc" "\x52\x04\xd5\x6d\xf7\x79\xa7\xdf\x43\xd9\xda\x43"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\xdc\xe0\x6b\x1f\x64\xc8\x57\xa1\x1c\x3d\xb5\x7c" "\x51\x89\x9b\x2c\xc1\x79\x10\x08\xce\x97\x3b\x92", 5, "\x00\x00\x00\x01\x55", "\x93\x50\x79\xd1\x44\x90\xa7\x5c\x30\x93" "\xc4\xa6\xe8\xc3\xb0\x49\xc7\x1e\x6e\xe7\x05", "\x92\x51\x79\xd0\x45\x91\xa7\x9b\x5d\x31\x92\xc4" "\xa7\xe9\xc2\x89\xb0\x49\xc7\x1f\x6e\xe6\x04\xcd"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x5e\x13\xd3\x1c\x70\xef\x76\x57\x46\x57\x85\x31" "\xcb\x51\xc1\x5b\xf1\x1c\xa8\x2c\x97\xce\xe9\xf2", 5, "\x00\x00\x00\x01\xaa", "\x9f\x58\xe5\xa0\x47\xd8\x94\x10\x1c\x46" "\x98\x45\xd6\x7a\xe3\xc5\x24\x9e\xd8\x12\xf2", "\x9e\x58\xe5\xa1\x46\xd9\x94\x2a\x10\x1c\x46\x98" "\x45\xd6\x7a\x20\xe3\xc4\x25\x9e\xd9\x13\xf2\x07"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x98\xe6\xfd\x8a\x04\xa4\xb6\x85\x9b\x75\xa1\x76" "\x54\x0b\x97\x52\xba\xd3\xec\xd6\x10\xa2\x52\xbc", 5, "\x00\x00\x00\x01\x55", "\x12\xff\xf9\x0c\x77\x3f\x95\x6d\x13\xfc" "\x2c\xa0\xd0\x84\x03\x49\xdb\xd3\x99\x08\xeb", "\x13\xfe\xf8\x0d\x76\x3e\x94\xec\x6d\x13\xfd\x2c" "\xa1\xd0\x85\x07\x02\x49\xda\xd3\x98\x08\xea\xbf"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x62\x2a\xec\x25\xa2\xfe\x2c\xad\x70\x94\x68\x0b" "\x7c\x64\x94\x02\x80\x08\x4c\x1a\x7c\xec\x92\xb5", 5, "\x00\x00\x00\x01\xaa", "\xf8\xde\xbf\x05\xb0\x97\xe7\xdc\x06\x03" "\x68\x6a\xca\x35\xd9\x1f\xd9\xa5\x51\x6a\x70", "\xf8\xdf\xbf\x04\xb0\x97\xe6\xd9\xdc\x07\x02\x68" "\x6b\xcb\x34\x89\xd9\x1f\xd9\xa4\x51\x6b\x70\x3e"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\xc1\x08\x16\x49\xad\xa7\x43\x62\xe6\xa1\x45\x9d" "\x01\xdf\xd3\x0d\x67\xc2\x23\x4c\x94\x07\x04\xda", 5, "\x00\x00\x00\x01\x55", "\x34\x80\x56\xec\x98\xfc\xc5\x17\x17\x1d" "\x2b\x4d\x7a\x94\x93\xaf\x48\x2d\x99\x91\x75", "\x34\x80\x57\xec\x98\xfd\xc4\x80\x16\x16\x1c\x2a" "\x4c\x7a\x94\x3e\x92\xae\x49\x2c\x98\x91\x75\xf7"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x5d\x15\x4a\xf2\x38\xf4\x67\x13\x15\x57\x19\xd5" "\x5e\x2f\x1f\x79\x0d\xd6\x61\xf2\x79\xa7\x91\x7c", 5, "\x00\x00\x00\x01\xaa", "\xa8\x81\x8b\xc3\x67\xda\xda\xcb\xe9\xa6" "\xc8\x46\x27\xfb\x60\xc2\x94\xb0\x12\x15\xe5", "\xa8\x80\x8a\xc2\x67\xda\xda\x3d\xcb\xe9\xa7\xc8" "\x46\x26\xfb\xc7\x61\xc2\x94\xb0\x13\x15\xe5\xc1"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x79\x85\x62\xe0\x49\x85\x2f\x57\xdc\x8c\x34\x3b" "\xa1\x7f\x2c\xa1\xd9\x73\x94\xef\xc8\xad\xc4\x43", 5, "\x00\x00\x00\x01\x55", "\xc8\x13\xf8\x8b\x3b\xe2\xb2\xf7\x54\x24" "\xce\x91\x75\xfb\xc8\x48\x3b\x88\xc8\x71\x3a", "\xc8\x13\xf8\x8a\x3b\xe3\xb3\x34\xf7\x54\x25\xce" "\x91\x75\xfb\xe3\xc8\x49\x3b\x89\xc8\x70\x3b\x49"}, {SHISHI_DES3_CBC_HMAC_SHA1_KD, "\x26\xdc\xe3\x34\xb5\x45\x29\x2f\x2f\xea\xb9\xa8" "\x70\x1a\x89\xa4\xb9\x9e\xb9\x94\x2c\xec\xd0\x16", 5, "\x00\x00\x00\x01\xaa", "\xf5\x8e\xfc\x6f\x83\xf9\x3e\x55\xe6\x95" "\xfd\x25\x2c\xf8\xfe\x59\xf7\xd5\xba\x37\xec", "\xf4\x8f\xfd\x6e\x83\xf8\x3e\x73\x54\xe6\x94\xfd" "\x25\x2c\xf8\x3b\xfe\x58\xf7\xd5\xba\x37\xec\x5d"} #endif }; struct nfold { int n; const char *in; const char *out; }; const struct nfold nfold[] = { {64, "012345", "\xBE\x07\x26\x31\x27\x6B\x19\x55"}, {56, "password", "\x78\xA0\x7B\x6C\xAF\x85\xFA"}, {64, "Rough Consensus, and Running Code", "\xBB\x6E\xD3\x08\x70\xB7\xF0\xE0"}, {168, "password", "\x59\xE4\xA8\xCA\x7C\x03\x85\xC3\xC3\x7B" "\x3F\x6D\x20\x00\x24\x7C\xB6\xE6\xBD\x5B\x3E"}, {192, "MASSACHVSETTS INSTITVTE OF TECHNOLOGY", "\xDB\x3B\x0D\x8F\x0B\x06\x1E\x60\x32\x82\xB3\x08" "\xA5\x08\x41\x22\x9A\xD7\x98\xFA\xB9\x54\x0C\x1B"}, {64, "kerberos", "\x6b\x65\x72\x62\x65\x72\x6f\x73"}, {128, "kerberos", "\x6b\x65\x72\x62\x65\x72\x6f\x73\x7b\x9b\x5b\x2b\x93\x13\x2b\x93"}, {168, "kerberos", "\x83\x72\xc2\x36\x34\x4e\x5f\x15\x50\xcd" "\x07\x47\xe1\x5d\x62\xca\x7a\x5a\x3b\xce\xa4"}, {256, "kerberos", "\x6b\x65\x72\x62\x65\x72\x6f\x73\x7b\x9b\x5b\x2b\x93\x13\x2b\x93" "\x5c\x9b\xdc\xda\xd9\x5c\x98\x99\xc4\xca\xe4\xde\xe6\xd6\xca\xe4"}, {168, "Q", "\x51\x8a\x54\xa2\x15\xa8\x45\x2a\x51\x8a" "\x54\xa2\x15\xa8\x45\x2a\x51\x8a\x54\xa2\x15"}, {192, "Q", "\x51\x8a\x54\xa2\x15\xa8\x45\x2a\x51\x8a\x54\xa2" "\x15\xa8\x45\x2a\x51\x8a\x54\xa2\x15\xa8\x45\x2a"}, {168, "ab", "\xba\x24\xcf\x29\x7f\x49\xf5\x4b\xab\x62" "\x5d\x12\xe7\x94\x3f\xa4\xfb\x25\xd5\x31\xae"}, {192, "ab", "\x61\x62\x0b\x13\x58\x98\xc4\xc2\x26\x16\x30\xb1" "\x85\x89\x2c\x4c\x62\x61\x13\x0b\x98\x58\xc2\xc4"} }; struct str2key { const char *password; const char *salt; const char *key; int etype; const char *parameters; }; const struct str2key str2key[] = { #define ESZETT "\xC3\x9F" #define S_CARON "\xC5\xA1" #define C_ACUTE "\xC4\x87" #define G_CLEF "\xF0\x9D\x84\x9E" #if WITH_DES {"password", "ATHENA.MIT.EDUraeburn", "\xCB\xC2\x2F\xAE\x23\x52\x98\xE3", SHISHI_DES_CBC_MD5, NULL}, {"potatoe", "WHITEHOUSE.GOVdanny", "\xDF\x3D\x32\xA7\x4F\xD9\x2A\x01", SHISHI_DES_CBC_MD5, NULL}, {"\xF0\x9D\x84\x9E", "EXAMPLE.COMpianist", "\x4F\xFB\x26\xBA\xB0\xCD\x94\x13", SHISHI_DES_CBC_MD5, NULL}, {ESZETT, "ATHENA.MIT.EDUJuri" S_CARON "i" C_ACUTE, "\x62\xC8\x1A\x52\x32\xB5\xE6\x9D", SHISHI_DES_CBC_MD5, NULL}, {"11119999", "AAAAAAAA", "\x98\x40\x54\xD0\xF1\xA7\x3E\x31", SHISHI_DES_CBC_MD5, NULL}, {"NNNN6666", "FFFFAAAA", "\xC4\xBF\x6B\x25\xAD\xF7\xA4\xF8", SHISHI_DES_CBC_MD5, NULL}, #endif #if WITH_3DES {"password", "ATHENA.MIT.EDUraeburn", "\x85\x0b\xb5\x13\x58\x54\x8c\xd0\x5e\x86\x76\x8c" "\x31\x3e\x3b\xfe\xf7\x51\x19\x37\xdc\xf7\x2c\x3e", SHISHI_DES3_CBC_HMAC_SHA1_KD, NULL}, {"potatoe", "WHITEHOUSE.GOVdanny", "\xdf\xcd\x23\x3d\xd0\xa4\x32\x04\xea\x6d\xc4\x37" "\xfb\x15\xe0\x61\xb0\x29\x79\xc1\xf7\x4f\x37\x7a", SHISHI_DES3_CBC_HMAC_SHA1_KD, NULL}, {"penny", "EXAMPLE.COMbuckaroo", "\x6d\x2f\xcd\xf2\xd6\xfb\xbc\x3d\xdc\xad\xb5\xda" "\x57\x10\xa2\x34\x89\xb0\xd3\xb6\x9d\x5d\x9d\x4a", SHISHI_DES3_CBC_HMAC_SHA1_KD, NULL}, {ESZETT, "ATHENA.MIT.EDUJuri" S_CARON "i" C_ACUTE, "\x16\xd5\xa4\x0e\x1c\xe3\xba\xcb\x61\xb9\xdc\xe0" "\x04\x70\x32\x4c\x83\x19\x73\xa7\xb9\x52\xfe\xb0", SHISHI_DES3_CBC_HMAC_SHA1_KD, NULL}, {G_CLEF, "EXAMPLE.COMpianist", "\x85\x76\x37\x26\x58\x5d\xbc\x1c\xce\x6e\xc4\x3e" "\x1f\x75\x1f\x07\xf1\xc4\xcb\xb0\x98\xf4\x0b\x19", SHISHI_DES3_CBC_HMAC_SHA1_KD, NULL}, #endif #if WITH_AES {"password", "ATHENA.MIT.EDUraeburn", "\x42\x26\x3c\x6e\x89\xf4\xfc\x28\xb8\xdf\x68\xee\x09\x79\x9f\x15", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x00\x01"}, {"password", "ATHENA.MIT.EDUraeburn", "\xfe\x69\x7b\x52\xbc\x0d\x3c\xe1\x44\x32\xba\x03\x6a\x92\xe6\x5b" "\xbb\x52\x28\x09\x90\xa2\xfa\x27\x88\x39\x98\xd7\x2a\xf3\x01\x61", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x00\x01"}, {"password", "ATHENA.MIT.EDUraeburn", "\xc6\x51\xbf\x29\xe2\x30\x0a\xc2\x7f\xa4\x69\xd6\x93\xbd\xda\x13", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x00\x02"}, {"password", "ATHENA.MIT.EDUraeburn", "\xa2\xe1\x6d\x16\xb3\x60\x69\xc1\x35\xd5\xe9\xd2\xe2\x5f\x89\x61" "\x02\x68\x56\x18\xb9\x59\x14\xb4\x67\xc6\x76\x22\x22\x58\x24\xff", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x00\x02"}, {"password", "ATHENA.MIT.EDUraeburn", "\x4c\x01\xcd\x46\xd6\x32\xd0\x1e\x6d\xbe\x23\x0a\x01\xed\x64\x2a", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {"password", "ATHENA.MIT.EDUraeburn", "\x55\xa6\xac\x74\x0a\xd1\x7b\x48\x46\x94\x10\x51\xe1\xe8\xb0\xa7" "\x54\x8d\x93\xb0\xab\x30\xa8\xbc\x3f\xf1\x62\x80\x38\x2b\x8c\x2a", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {"password", "\x12\x34\x56\x78\x78\x56\x34\x12", "\xe9\xb2\x3d\x52\x27\x37\x47\xdd\x5c\x35\xcb\x55\xbe\x61\x9d\x8e", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x00\x05"}, {"password", "\x12\x34\x56\x78\x78\x56\x34\x12", "\x97\xa4\xe7\x86\xbe\x20\xd8\x1a\x38\x2d\x5e\xbc\x96\xd5\x90\x9c" "\xab\xcd\xad\xc8\x7c\xa4\x8f\x57\x45\x04\x15\x9f\x16\xc3\x6e\x31", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x00\x05"}, {"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase equals block size", "\x59\xd1\xbb\x78\x9a\x82\x8b\x1a\xa5\x4e\xf9\xc2\x88\x3f\x69\xed", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase equals block size", "\x89\xad\xee\x36\x08\xdb\x8b\xc7\x1f\x1b\xfb\xfe\x45\x94\x86\xb0" "\x56\x18\xb7\x0c\xba\xe2\x20\x92\x53\x4e\x56\xc5\x53\xba\x4b\x34", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase exceeds block size", "\xcb\x80\x05\xdc\x5f\x90\x17\x9a\x7f\x02\x10\x4c\x00\x18\x75\x1d", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase exceeds block size", "\xd7\x8c\x5c\x9c\xb8\x72\xa8\xc9\xda\xd4\x69\x7f\x0b\xb5\xb2\xd2" "\x14\x96\xc8\x2b\xeb\x2c\xae\xda\x21\x12\xfc\xee\xa0\x57\x40\x1b", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x04\xB0"}, {G_CLEF, "EXAMPLE.COMpianist", "\xf1\x49\xc1\xf2\xe1\x54\xa7\x34\x52\xd4\x3e\x7f\xe6\x2a\x56\xe5", SHISHI_AES128_CTS_HMAC_SHA1_96, "\x00\x00\x00\x32"}, {G_CLEF, "EXAMPLE.COMpianist", "\x4b\x6d\x98\x39\xf8\x44\x06\xdf\x1f\x09\xcc\x16\x6d\xb4\xb8\x3c" "\x57\x18\x48\xb7\x84\xa3\xd6\xbd\xc3\x46\x58\x9a\x3e\x39\x3f\x9e", SHISHI_AES256_CTS_HMAC_SHA1_96, "\x00\x00\x00\x32"}, #endif #if WITH_ARCFOUR {"foo", "", "\xac\x8e\x65\x7f\x83\xdf\x82\xbe\xea\x5d\x43\xbd\xaf\x78\x00\xcc", SHISHI_ARCFOUR_HMAC, NULL} #endif }; struct pkcs5 { int iterations; const char *password; const char *salt; int dklen; const char *expected; }; const struct pkcs5 pkcs5[] = { {1, "password", "ATHENA.MIT.EDUraeburn", 16, "\xCD\xED\xB5\x28\x1B\xB2\xF8\x01\x56\x5A\x11\x22\xB2\x56\x35\x15"}, {2, "password", "ATHENA.MIT.EDUraeburn", 16, "\x01\xdb\xee\x7f\x4a\x9e\x24\x3e\x98\x8b\x62\xc7\x3c\xda\x93\x5d"}, {2, "password", "ATHENA.MIT.EDUraeburn", 32, "\x01\xdb\xee\x7f\x4a\x9e\x24\x3e\x98\x8b\x62\xc7\x3c\xda\x93\x5d" "\xa0\x53\x78\xb9\x32\x44\xec\x8f\x48\xa9\x9e\x61\xad\x79\x9d\x86"}, {1200, "password", "ATHENA.MIT.EDUraeburn", 16, "\x5c\x08\xeb\x61\xfd\xf7\x1e\x4e\x4e\xc3\xcf\x6b\xa1\xf5\x51\x2b"}, {1200, "password", "ATHENA.MIT.EDUraeburn", 32, "\x5c\x08\xeb\x61\xfd\xf7\x1e\x4e\x4e\xc3\xcf\x6b\xa1\xf5\x51\x2b" "\xa7\xe5\x2d\xdb\xc5\xe5\x14\x2f\x70\x8a\x31\xe2\xe6\x2b\x1e\x13"}, {5, "password", "\x12\x34\x56\x78\x78\x56\x34\x12\x00", 16, "\xd1\xda\xa7\x86\x15\xf2\x87\xe6\xa1\xc8\xb1\x20\xd7\x06\x2a\x49"}, {5, "password", "\x12\x34\x56\x78\x78\x56\x34\x12\x00", 32, "\xd1\xda\xa7\x86\x15\xf2\x87\xe6\xa1\xc8\xb1\x20\xd7\x06\x2a\x49" "\x3f\x98\xd2\x03\xe6\xbe\x49\xa6\xad\xf4\xfa\x57\x4b\x6e\x64\xee"}, {1200, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase equals block size", 16, "\x13\x9c\x30\xc0\x96\x6b\xc3\x2b\xa5\x5f\xdb\xf2\x12\x53\x0a\xc9"}, {1200, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase equals block size", 32, "\x13\x9c\x30\xc0\x96\x6b\xc3\x2b\xa5\x5f\xdb\xf2\x12\x53\x0a\xc9" "\xc5\xec\x59\xf1\xa4\x52\xf5\xcc\x9a\xd9\x40\xfe\xa0\x59\x8e\xd1"}, {1200, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase exceeds block size", 16, "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5\x1b\x10\xe6\xa6\x87\x21\xbe\x61"}, {1200, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "pass phrase exceeds block size", 32, "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5\x1b\x10\xe6\xa6\x87\x21\xbe\x61" "\x1a\x8b\x4d\x28\x26\x01\xdb\x3b\x36\xbe\x92\x46\x91\x5e\xc8\x2a"}, {50, G_CLEF "\x00", "EXAMPLE.COMpianist", 16, "\x6b\x9c\xf2\x6d\x45\x45\x5a\x43\xa5\xb8\xbb\x27\x6a\x40\x3b\x39"}, {50, G_CLEF "\x00", "EXAMPLE.COMpianist", 32, "\x6b\x9c\xf2\x6d\x45\x45\x5a\x43\xa5\xb8\xbb\x27\x6a\x40\x3b\x39" "\xe7\xfe\x37\xa0\xc4\x1e\x02\xc2\x81\xff\x30\x69\xe1\xe9\x4f\x52"}, {500, "All n-entities must communicate with other n-entities via n-1 " "entiteeheehees", "\x12\x34\x56\x78\x78\x56\x34\x12\x00", 16, "\x6A\x89\x70\xBF\x68\xC9\x2C\xAE\xA8\x4A\x8D\xF2\x85\x10\x85\x86"} }; void test (Shishi * handle) { Shishi_key *key, *key2; char out[BUFSIZ]; size_t i; int res; char *salt; if (debug) shishi_cfg (handle, strdup ("verbose-crypto,verbose-crypto-noise")); res = shishi_cipher_parse ("3des"); if (res != SHISHI_DES3_CBC_HMAC_SHA1_KD) fail ("shishi_cipher_parse (\"3des\") == %d\n", res); res = shishi_derive_default_salt (handle, "foo@BAR", &salt); if (res != SHISHI_OK) fail ("shishi_derive_default_salt failed %d\n", res); if (strcmp (salt, "BARfoo") != 0) fail ("shishi_derive_default_salt comparison failed %s\n", salt); res = shishi_derive_default_salt (handle, "foo/bar@BAR", &salt); if (res != SHISHI_OK) fail ("shishi_derive_default_salt failed %d\n", res); if (strcmp (salt, "BARfoobar") != 0) fail ("shishi_derive_default_salt comparison failed %s\n", salt); for (i = 0; i < sizeof (drdk) / sizeof (drdk[0]); i++) { if (debug) printf ("DR entry %zu\n", i); res = shishi_key_from_value (handle, drdk[i].type, drdk[i].key, &key); if (res == SHISHI_OK) res = shishi_dr (handle, key, drdk[i].usage, drdk[i].nusage, out, strlen (drdk[i].dr)); shishi_key_done (key); if (res != SHISHI_OK) { fail ("shishi_dr() entry %zu failed (%s)\n", i, shishi_error (handle)); continue; } if (debug) { printf ("DR(%s, key, usage)\n", shishi_cipher_name (drdk[i].type)); printf ("key:\n"); escapeprint (drdk[i].key, strlen (drdk[i].key)); hexprint (drdk[i].key, strlen (drdk[i].key)); puts (""); binprint (drdk[i].key, strlen (drdk[i].key)); puts (""); printf ("usage:\n"); escapeprint (drdk[i].usage, drdk[i].nusage); hexprint (drdk[i].usage, drdk[i].nusage); puts (""); binprint (drdk[i].usage, drdk[i].nusage); puts (""); printf ("computed DR:\n"); escapeprint (out, strlen (drdk[i].dr)); hexprint (out, strlen (drdk[i].dr)); puts (""); binprint (out, strlen (drdk[i].dr)); puts (""); printf ("expected DR:\n"); escapeprint (drdk[i].dr, strlen (drdk[i].dr)); hexprint (drdk[i].dr, strlen (drdk[i].dr)); puts (""); binprint (drdk[i].dr, strlen (drdk[i].dr)); puts (""); } if (memcmp (drdk[i].dr, out, strlen (drdk[i].dr)) != 0) { fail ("shishi_dr() entry %zu failed\n", i); if (debug) printf ("ERROR\n"); } else if (debug) success ("OK\n"); res = shishi_key_from_value (handle, drdk[i].type, drdk[i].key, &key); if (res == SHISHI_OK) res = shishi_key_from_value (handle, drdk[i].type, NULL, &key2); if (res == SHISHI_OK) res = shishi_dk (handle, key, drdk[i].usage, drdk[i].nusage, key2); shishi_key_done (key); if (res != SHISHI_OK) { fail ("shishi_dk() entry %zu failed (%s)\n", i, shishi_error (handle)); continue; } if (debug) { printf ("DK(%s, key, usage)\n", shishi_cipher_name (drdk[i].type)); printf ("key:\n"); escapeprint (drdk[i].key, strlen (drdk[i].key)); hexprint (drdk[i].key, strlen (drdk[i].key)); puts (""); binprint (drdk[i].key, strlen (drdk[i].key)); puts (""); printf ("usage:\n"); escapeprint (drdk[i].usage, drdk[i].nusage); hexprint (drdk[i].usage, drdk[i].nusage); puts (""); binprint (drdk[i].usage, drdk[i].nusage); puts (""); printf ("computed DK:\n"); escapeprint (shishi_key_value (key2), shishi_key_length (key2)); hexprint (shishi_key_value (key2), shishi_key_length (key2)); puts (""); binprint (shishi_key_value (key2), shishi_key_length (key2)); puts (""); printf ("expected DK:\n"); escapeprint (drdk[i].dk, strlen (drdk[i].dk)); hexprint (drdk[i].dk, strlen (drdk[i].dk)); puts (""); binprint (drdk[i].dk, strlen (drdk[i].dk)); puts (""); } if (!(shishi_key_length (key2) == strlen (drdk[i].dk) && memcmp (drdk[i].dk, shishi_key_value (key2), strlen (drdk[i].dk)) == 0)) { fail ("shishi_dk() entry %zu failed\n", i); if (debug) printf ("ERROR\n"); } else if (debug) success ("OK\n"); shishi_key_done (key2); } for (i = 0; i < sizeof (nfold) / sizeof (nfold[0]); i++) { if (debug) printf ("N-FOLD entry %zu\n", i); res = shishi_n_fold (handle, nfold[i].in, strlen (nfold[i].in), out, nfold[i].n / 8); if (res != SHISHI_OK) { fail ("shishi_n_fold() entry %zu failed (%s)\n", i, shishi_error (handle)); continue; } if (debug) { printf ("in:\n"); escapeprint (nfold[i].in, strlen (nfold[i].in)); hexprint (nfold[i].in, strlen (nfold[i].in)); puts (""); binprint (nfold[i].in, strlen (nfold[i].in)); puts (""); printf ("out:\n"); escapeprint (out, nfold[i].n / 8); hexprint (out, nfold[i].n / 8); puts (""); binprint (out, nfold[i].n / 8); puts (""); printf ("expected out:\n"); escapeprint (nfold[i].out, nfold[i].n / 8); hexprint (nfold[i].out, nfold[i].n / 8); puts (""); binprint (nfold[i].out, nfold[i].n / 8); puts (""); } if (memcmp (nfold[i].out, out, nfold[i].n / 8) != 0) { fail ("shishi_n_fold() entry %zu failed\n", i); if (debug) printf ("ERROR\n"); } else if (debug) success ("OK\n"); } for (i = 0; i < sizeof (str2key) / sizeof (str2key[0]); i++) { int n_password = strlen (str2key[i].password); int saltlen = strlen (str2key[i].salt); int keylen = sizeof (key); const char *name = shishi_cipher_name (str2key[i].etype); if (debug) printf ("STRING-TO-KEY entry %zu (key type %s)\n", i, name ? name : "NO NAME"); res = shishi_key_from_string (handle, str2key[i].etype, str2key[i].password, n_password, str2key[i].salt, saltlen, str2key[i].parameters, &key); if (res != SHISHI_OK) { fail ("shishi_string_to_key() entry %zu failed (%s)\n", i, shishi_error (handle)); continue; } if (debug) { printf ("password:\n"); escapeprint (str2key[i].password, n_password); hexprint (str2key[i].password, n_password); puts (""); binprint (str2key[i].password, n_password); puts (""); printf ("salt:\n"); escapeprint (str2key[i].salt, saltlen); hexprint (str2key[i].salt, saltlen); puts (""); binprint (str2key[i].salt, saltlen); puts (""); printf ("computed key:\n"); escapeprint (shishi_key_value (key), shishi_key_length (key)); hexprint (shishi_key_value (key), shishi_key_length (key)); puts (""); binprint (shishi_key_value (key), shishi_key_length (key)); puts (""); printf ("expected key:\n"); escapeprint (str2key[i].key, strlen (str2key[i].key)); hexprint (str2key[i].key, strlen (str2key[i].key)); puts (""); binprint (str2key[i].key, strlen (str2key[i].key)); puts (""); } if (memcmp (str2key[i].key, shishi_key_value (key), keylen) != 0) { fail ("shishi_string_to_key() entry %zu failed\n", i); if (debug) printf ("ERROR\n"); } else if (debug) success ("OK\n"); shishi_key_done (key); } for (i = 0; i < sizeof (pkcs5) / sizeof (pkcs5[0]); i++) { if (debug) printf ("PKCS5 entry %zu\n", i); res = shishi_pbkdf2_sha1 (handle, pkcs5[i].password, strlen (pkcs5[i].password), pkcs5[i].salt, strlen (pkcs5[i].salt), pkcs5[i].iterations, pkcs5[i].dklen, out); if (res != SHISHI_OK) { fail ("PKCS5 entry %zu failed fatally: %d\n", i, res); continue; } if (debug) { printf ("password:\n"); escapeprint (pkcs5[i].password, strlen (pkcs5[i].password)); hexprint (pkcs5[i].password, strlen (pkcs5[i].password)); puts (""); binprint (pkcs5[i].password, strlen (pkcs5[i].password)); puts (""); printf ("salt:\n"); escapeprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); hexprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); puts (""); binprint (pkcs5[i].salt, strlen (pkcs5[i].salt)); puts (""); printf ("computed key:\n"); escapeprint (out, pkcs5[i].dklen); hexprint (out, pkcs5[i].dklen); puts (""); binprint (out, pkcs5[i].dklen); puts (""); printf ("expected key:\n"); escapeprint (pkcs5[i].expected, pkcs5[i].dklen); hexprint (pkcs5[i].expected, pkcs5[i].dklen); puts (""); binprint (pkcs5[i].expected, pkcs5[i].dklen); puts (""); } if (memcmp (pkcs5[i].expected, out, pkcs5[i].dklen) != 0) { fail ("PKCS5 entry %zu failed\n", i); if (debug) printf ("ERROR\n"); } else if (debug) success ("OK\n"); } } shishi-1.0.3/tests/nonce.c0000644000000000000000000000623414273601533012312 00000000000000/* nonce.c --- Shishi nonce handling regression self tests. * Copyright (C) 2006-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ const char *asreq = "aoGQMIGNoQMCAQWiAwIBCqSBgDB+oAcDBQAAAAAAoRAwDqADAgEAoQcwBRsDamFzog8bDUpPU0VGU1NPTi5PUkejIjAgoAMCAQGhGTAXGwZrcmJ0Z3QbDUpPU0VGU1NPTi5PUkelERgPMjAwNjExMDEyMDMwMDVapwYCBAlXUoOoETAPAgESAgEQAgEDAgECAgEB"; const char *asreppart = "eYGYMIGVoCMwIaADAgEQoRoEGPSJH0z06kWoouBUejc+L566tgEBAQEZDqECMACiBgIEf////6QHAwUAAEAAAKURGA8yMDA2MTEwMTEyMDkyNVqnERgPMjAwNjExMDEyMDA5MjVaqQ8bDUpPU0VGU1NPTi5PUkeqIjAgoAMCAQGhGTAXGwZrcmJ0Z3QbDUpPU0VGU1NPTi5PUkc="; #include "utils.c" #include void test (Shishi * handle) { Shishi_asn1 req, rep; char *reqder, *repder; size_t reqderlen, repderlen; int rc; uint32_t nonce; if (!base64_decode_alloc (asreq, strlen (asreq), &reqder, &reqderlen)) fail ("base64 req\n"); if (!base64_decode_alloc (asreppart, strlen (asreppart), &repder, &repderlen)) fail ("base64 rep\n"); req = shishi_der2asn1_asreq (handle, reqder, reqderlen); if (!req) fail ("der2asn1 req\n"); rep = shishi_der2asn1_encasreppart (handle, repder, repderlen); if (!rep) fail ("der2asn1 rep\n"); if (debug) { shishi_kdcreq_print (handle, stdout, req); shishi_enckdcreppart_print (handle, stdout, rep); } /* Read and check req */ rc = shishi_asn1_read_uint32 (handle, req, "req-body.nonce", &nonce); if (rc) fail ("shishi_asn1_read_uint32\n"); printf ("req nonce: %x\n", nonce); if (nonce != 0x09575283) fail ("nonce mismatch low\n"); rc = shishi_kdcreq_nonce (handle, req, &nonce); if (rc) fail ("shishi_kdcreq_nonce\n"); printf ("req nonce: %x\n", nonce); if (nonce != 0x09575283) fail ("nonce mismatch high"); /* Read and check rep */ rc = shishi_asn1_read_uint32 (handle, rep, "nonce", &nonce); if (rc) fail ("read rep uint32"); printf ("old rep nonce: %x\n", nonce); if (nonce != 0x7fffffff) fail ("nonce mismatch high"); /* Copy nonce. */ rc = shishi_kdc_copy_nonce (handle, req, rep); if (rc) fail ("shishi_kdc_copy_nonce\n"); /* Read and check rep */ rc = shishi_asn1_read_uint32 (handle, rep, "nonce", &nonce); if (rc) fail ("read rep uint32"); printf ("new rep nonce: %x\n", nonce); if (nonce != 0x09575283) fail ("nonce mismatch high"); free (reqder); free (repder); shishi_asn1_done (handle, req); shishi_asn1_done (handle, rep); } shishi-1.0.3/tests/Makefile.am0000644000000000000000000000315014273602610013067 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. EXTRA_DIST = shisa.sh shishi.supp keytab1.bin ccache1.bin \ check_docbook.sh AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib -I$(top_builddir)/lib AM_LDFLAGS = -no-install LDADD = $(LTLIBINTL) ../lib/gl/libgnu.la $(LTLIBTASN1) $(LTLIBGNUTLS) \ ../lib/libshishi.la libutils.la noinst_LTLIBRARIES = libutils.la libutils_la_SOURCES = utils.h utils.c AM_TESTS_ENVIRONMENT = \ KEYTAB1=$(srcdir)/keytab1.bin \ CCACHE1=$(srcdir)/ccache1.bin; \ export KEYTAB1 CCACHE1; LOG_COMPILER=$(VALGRIND) ctests = authenticator crypto gztime priv safe ticketset \ crypto-ctx low-crypto rijndael key keytab ccache nonce \ passwdpromptcb multiname version check_PROGRAMS = $(ctests) TESTS = $(ctests) shishi-1.0.3/tests/passwdpromptcb.c0000644000000000000000000000464414273601533014263 00000000000000/* passwdpromptcb.c --- Self test the password prompt callback stuff. * Copyright (C) 2008-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "utils.c" int cb_ret = 0; static int prompt_password (Shishi * handle, char **s, const char *format, va_list ap) { if (cb_ret == 0) *s = strdup ("pencil"); return cb_ret; } void test (Shishi * handle) { shishi_prompt_password_func cb; char *passwd, *save; int ret; cb = shishi_prompt_password_callback_get (handle); if (cb) fail ("callback not null: %p\n", cb); else success ("callback is null.\n"); shishi_prompt_password_callback_set (handle, prompt_password); cb = shishi_prompt_password_callback_get (handle); if (cb != prompt_password) fail ("callback not equal: %p != %p\n", cb, prompt_password); else success ("callback equal to our function.\n"); cb_ret = SHISHI_CRYPTO_ERROR; save = passwd = strdup ("foo"); ret = shishi_prompt_password (handle, &passwd, "Enter %s: ", "password"); if (ret != cb_ret) fail ("callback return mismatch: %d != %d\n", ret, cb_ret); else success ("invoke callback successfully with non-zero return\n"); if (passwd != save) fail ("callback messed with password: %s != %s\n", passwd, save); free (save); cb_ret = 0; ret = shishi_prompt_password (handle, &passwd, "Enter %s: ", "password"); if (ret != cb_ret) fail ("callback return mismatch: %d != %d\n", ret, cb_ret); else success ("invoke callback successfully with zero return code\n"); if (strcmp (passwd, "pencil") != 0) fail ("callback returned bad password: %s\n", passwd); else success ("callback returned correct password: %s\n", passwd); free (passwd); } shishi-1.0.3/m4/0000755000000000000000000000000014273616161010300 500000000000000shishi-1.0.3/m4/lt~obsolete.m40000644000000000000000000001377414273615066013053 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software # Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) shishi-1.0.3/m4/intlmacosx.m40000644000000000000000000000474514273615065012657 00000000000000# intlmacosx.m4 serial 5 (gettext-0.18.2) dnl Copyright (C) 2004-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Checks for special options needed on Mac OS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in Mac OS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFPreferencesCopyAppValue(NULL, NULL)]])], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in Mac OS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFLocaleCopyCurrent();]])], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) shishi-1.0.3/m4/gettext.m40000644000000000000000000003676314273615065012167 00000000000000# gettext.m4 serial 68 (gettext-0.19.8) dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) shishi-1.0.3/m4/progtest.m40000644000000000000000000000602414273615065012335 00000000000000# progtest.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1996-2003, 2005, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) shishi-1.0.3/m4/gtk-doc.m40000644000000000000000000001066014273615155012017 00000000000000# -*- mode: autoconf -*- # # gtk-doc.m4 - configure macro to check for gtk-doc # Copyright (C) 2003 James Henstridge # 2007-2017 Stefan Sauer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # As a special exception, the above copyright owner gives unlimited # permission to copy, distribute and modify the configure scripts that # are the output of Autoconf when processing the Macro. You need not # follow the terms of the GNU General Public License when using or # distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # serial 2 dnl Usage: dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) AC_DEFUN([GTK_DOC_CHECK], [ AC_REQUIRE([PKG_PROG_PKG_CONFIG]) AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"]) AC_MSG_CHECKING([for gtk-doc]) PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no]) AC_MSG_RESULT($have_gtk_doc) if test "$have_gtk_doc" = "no"; then AC_MSG_WARN([ You will not be able to create source packages with 'make dist' because $gtk_doc_requires is not found.]) fi dnl check for tools we added during development dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that dnl may not be writable by the user. Currently, automake requires that the dnl test name must end in '.test'. dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638 AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test]) AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check]) AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) dnl for overriding the documentation installation directory AC_ARG_WITH([html-dir], AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, [with_html_dir='${datadir}/gtk-doc/html']) HTML_DIR="$with_html_dir" AC_SUBST([HTML_DIR]) dnl enable/disable documentation building AC_ARG_ENABLE([gtk-doc], AS_HELP_STRING([--enable-gtk-doc], [use gtk-doc to build documentation [[default=no]]]),, [enable_gtk_doc=no]) AC_MSG_CHECKING([whether to build gtk-doc documentation]) AC_MSG_RESULT($enable_gtk_doc) if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then AC_MSG_ERROR([ You must have $gtk_doc_requires installed to build documentation for $PACKAGE_NAME. Please install gtk-doc or disable building the documentation by adding '--disable-gtk-doc' to '[$]0'.]) fi dnl don't check for glib if we build glib if test "x$PACKAGE_NAME" != "xglib"; then dnl don't fail if someone does not have glib PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:]) fi dnl enable/disable output formats AC_ARG_ENABLE([gtk-doc-html], AS_HELP_STRING([--enable-gtk-doc-html], [build documentation in html format [[default=yes]]]),, [enable_gtk_doc_html=yes]) AC_ARG_ENABLE([gtk-doc-pdf], AS_HELP_STRING([--enable-gtk-doc-pdf], [build documentation in pdf format [[default=no]]]),, [enable_gtk_doc_pdf=no]) if test -z "$GTKDOC_MKPDF"; then enable_gtk_doc_pdf=no fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi AC_SUBST([AM_DEFAULT_VERBOSITY]) AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes]) AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) ]) shishi-1.0.3/m4/ltsugar.m40000644000000000000000000001044014273615066012145 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) shishi-1.0.3/m4/iconv.m40000644000000000000000000002207214273615065011605 00000000000000# iconv.m4 serial 19 (gettext-0.18.2) dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[ #include #include #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif ]], [[int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) result |= 16; return result; ]])], [am_cv_func_iconv_works=yes], , [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [m4_ifdef([gl_00GNULIB], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ]], [[]])], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated . m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) fi ]) shishi-1.0.3/m4/po.m40000644000000000000000000004503114273615065011105 00000000000000# po.m4 serial 24 (gettext-0.19) dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.60]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_SED])dnl AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.19]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" tab=`printf '\t'` if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) shishi-1.0.3/m4/libtool.m40000644000000000000000000112677114273615066012150 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[912]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*|11.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cr} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # flang / f18. f95 an alias for gfortran or flang on Debian flang* | f18* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi _LT_TAGVAR(link_all_deplibs, $1)=no else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS shishi-1.0.3/m4/ltoptions.m40000644000000000000000000003426214273615066012527 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) shishi-1.0.3/m4/ltversion.m40000644000000000000000000000127314273615066012515 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) shishi-1.0.3/m4/pkg.m40000644000000000000000000001214514273523166011250 00000000000000# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES shishi-1.0.3/build-aux/0000755000000000000000000000000014273616163011654 500000000000000shishi-1.0.3/build-aux/ar-lib0000755000000000000000000001336314273615173012676 00000000000000#! /bin/sh # Wrapper for Microsoft lib.exe me=ar-lib scriptversion=2019-07-04.01; # UTC # Copyright (C) 2010-2021 Free Software Foundation, Inc. # Written by Peter Rosin . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # func_error message func_error () { echo "$me: $1" 1>&2 exit 1 } file_conv= # func_file_conv build_file # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv in mingw) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin | msys) file=`cygpath -m "$file" || echo "$file"` ;; wine) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_at_file at_file operation archive # Iterate over all members in AT_FILE performing OPERATION on ARCHIVE # for each of them. # When interpreting the content of the @FILE, do NOT use func_file_conv, # since the user would need to supply preconverted file names to # binutils ar, at least for MinGW. func_at_file () { operation=$2 archive=$3 at_file_contents=`cat "$1"` eval set x "$at_file_contents" shift for member do $AR -NOLOGO $operation:"$member" "$archive" || exit $? done } case $1 in '') func_error "no command. Try '$0 --help' for more information." ;; -h | --h*) cat <. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/mdate-sh0000755000000000000000000001373214273524057013232 00000000000000#!/bin/sh # Get modification time of a file or directory and pretty-print it. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1995-2022 Free Software Foundation, Inc. # written by Ulrich Drepper , June 1995 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST fi case $1 in '') echo "$0: No file. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: mdate-sh [--help] [--version] FILE Pretty-print the modification day of FILE, in the format: 1 January 1970 Report bugs to . EOF exit $? ;; -v | --v*) echo "mdate-sh $scriptversion" exit $? ;; esac error () { echo "$0: $1" >&2 exit 1 } # Prevent date giving response in another language. LANG=C export LANG LC_ALL=C export LC_ALL LC_TIME=C export LC_TIME # Use UTC to get reproducible result. TZ=UTC0 export TZ # GNU ls changes its time format in response to the TIME_STYLE # variable. Since we cannot assume 'unset' works, revert this # variable to its documented default. if test "${TIME_STYLE+set}" = set; then TIME_STYLE=posix-long-iso export TIME_STYLE fi save_arg1=$1 # Find out how to get the extended ls output of a file or directory. if ls -L /dev/null 1>/dev/null 2>&1; then ls_command='ls -L -l -d' else ls_command='ls -l -d' fi # Avoid user/group names that might have spaces, when possible. if ls -n /dev/null 1>/dev/null 2>&1; then ls_command="$ls_command -n" fi # A 'ls -l' line looks as follows on OS/2. # drwxrwx--- 0 Aug 11 2001 foo # This differs from Unix, which adds ownership information. # drwxrwx--- 2 root root 4096 Aug 11 2001 foo # # To find the date, we split the line on spaces and iterate on words # until we find a month. This cannot work with files whose owner is a # user named "Jan", or "Feb", etc. However, it's unlikely that '/' # will be owned by a user whose name is a month. So we first look at # the extended ls output of the root directory to decide how many # words should be skipped to get the date. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below. set x`$ls_command /` # Find which argument is the month. month= command= until test $month do test $# -gt 0 || error "failed parsing '$ls_command /' output" shift # Add another shift to the command. command="$command shift;" case $1 in Jan) month=January; nummonth=1;; Feb) month=February; nummonth=2;; Mar) month=March; nummonth=3;; Apr) month=April; nummonth=4;; May) month=May; nummonth=5;; Jun) month=June; nummonth=6;; Jul) month=July; nummonth=7;; Aug) month=August; nummonth=8;; Sep) month=September; nummonth=9;; Oct) month=October; nummonth=10;; Nov) month=November; nummonth=11;; Dec) month=December; nummonth=12;; esac done test -n "$month" || error "failed parsing '$ls_command /' output" # Get the extended ls output of the file or directory. set dummy x`eval "$ls_command \"\\\$save_arg1\""` # Remove all preceding arguments eval $command # Because of the dummy argument above, month is in $2. # # On a POSIX system, we should have # # $# = 5 # $1 = file size # $2 = month # $3 = day # $4 = year or time # $5 = filename # # On Darwin 7.7.0 and 7.6.0, we have # # $# = 4 # $1 = day # $2 = month # $3 = year or time # $4 = filename # Get the month. case $2 in Jan) month=January; nummonth=1;; Feb) month=February; nummonth=2;; Mar) month=March; nummonth=3;; Apr) month=April; nummonth=4;; May) month=May; nummonth=5;; Jun) month=June; nummonth=6;; Jul) month=July; nummonth=7;; Aug) month=August; nummonth=8;; Sep) month=September; nummonth=9;; Oct) month=October; nummonth=10;; Nov) month=November; nummonth=11;; Dec) month=December; nummonth=12;; esac case $3 in ???*) day=$1;; *) day=$3; shift;; esac # Here we have to deal with the problem that the ls output gives either # the time of day or the year. case $3 in *:*) set `date`; eval year=\$$# case $2 in Jan) nummonthtod=1;; Feb) nummonthtod=2;; Mar) nummonthtod=3;; Apr) nummonthtod=4;; May) nummonthtod=5;; Jun) nummonthtod=6;; Jul) nummonthtod=7;; Aug) nummonthtod=8;; Sep) nummonthtod=9;; Oct) nummonthtod=10;; Nov) nummonthtod=11;; Dec) nummonthtod=12;; esac # For the first six month of the year the time notation can also # be used for files modified in the last year. if (expr $nummonth \> $nummonthtod) > /dev/null; then year=`expr $year - 1` fi;; *) year=$3;; esac # The result. echo $day $month $year # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/compile0000755000000000000000000001635014273615173013157 00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/gnupload0000755000000000000000000003266614273615074013350 00000000000000#!/bin/sh # Sign files and upload them. scriptversion=2022-01-27.18; # UTC # Copyright (C) 2004-2022 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Originally written by Alexandre Duret-Lutz . # The master copy of this file is maintained in the gnulib Git repository. # Please send bug reports and feature requests to bug-gnulib@gnu.org. set -e GPG=gpg # Choose the proper version of gpg, so as to avoid a # "gpg-agent is not available in this session" error # when gpg-agent is version 2 but gpg is still version 1. # FIXME-2020: remove, once all major distros ship gpg version 2 as /usr/bin/gpg gpg_agent_version=`(gpg-agent --version) 2>/dev/null | sed -e '2,$d' -e 's/^[^0-9]*//'` case "$gpg_agent_version" in 2.*) gpg_version=`(gpg --version) 2>/dev/null | sed -e '2,$d' -e 's/^[^0-9]*//'` case "$gpg_version" in 1.*) if (type gpg2) >/dev/null 2>/dev/null; then # gpg2 is present. GPG=gpg2 else # gpg2 is missing. Ubuntu users should install the package 'gnupg2'. echo "WARNING: Using 'gpg', which is too old. You should install 'gpg2'." 1>&2 fi ;; esac ;; esac GPG="${GPG} --batch --no-tty" conffile=.gnuploadrc to= dry_run=false replace= symlink_files= delete_files= delete_symlinks= collect_var= dbg= nl=' ' usage="Usage: $0 [OPTION]... [CMD] FILE... [[CMD] FILE...] Sign all FILES, and process them at the destinations specified with --to. If CMD is not given, it defaults to uploading. See examples below. Commands: --delete delete FILES from destination --symlink create symbolic links --rmsymlink remove symbolic links -- treat the remaining arguments as files to upload Options: --to DEST specify a destination DEST for FILES (multiple --to options are allowed) --user NAME sign with key NAME --replace allow replacements of existing files --symlink-regex[=EXPR] use sed script EXPR to compute symbolic link names -n, --dry-run do nothing, show what would have been done (including the constructed directive file) --version output version information and exit -h, --help print this help text and exit If --symlink-regex is given without EXPR, then the link target name is created by replacing the version information with '-latest', e.g.: foo-1.3.4.tar.gz -> foo-latest.tar.gz Recognized destinations are: alpha.gnu.org:DIRECTORY savannah.gnu.org:DIRECTORY savannah.nongnu.org:DIRECTORY ftp.gnu.org:DIRECTORY build directive files and upload files by FTP download.gnu.org.ua:{alpha|ftp}/DIRECTORY build directive files and upload files by SFTP [user@]host:DIRECTORY upload files with scp Options and commands are applied in order. If the file $conffile exists in the current working directory, its contents are prepended to the actual command line options. Use this to keep your defaults. Comments (#) and empty lines in $conffile are allowed. gives some further background. Examples: 1. Upload foobar-1.0.tar.gz to ftp.gnu.org: gnupload --to ftp.gnu.org:foobar foobar-1.0.tar.gz 2. Upload foobar-1.0.tar.gz and foobar-1.0.tar.xz to ftp.gnu.org: gnupload --to ftp.gnu.org:foobar foobar-1.0.tar.gz foobar-1.0.tar.xz 3. Same as above, and also create symbolic links to foobar-latest.tar.*: gnupload --to ftp.gnu.org:foobar \\ --symlink-regex \\ foobar-1.0.tar.gz foobar-1.0.tar.xz 4. Create a symbolic link foobar-latest.tar.gz -> foobar-1.0.tar.gz and likewise for the corresponding .sig file: gnupload --to ftp.gnu.org:foobar \\ --symlink foobar-1.0.tar.gz foobar-latest.tar.gz \\ foobar-1.0.tar.gz.sig foobar-latest.tar.gz.sig or (equivalent): gnupload --to ftp.gnu.org:foobar \\ --symlink foobar-1.0.tar.gz foobar-latest.tar.gz \\ --symlink foobar-1.0.tar.gz.sig foobar-latest.tar.gz.sig 5. Upload foobar-0.9.90.tar.gz to two sites: gnupload --to alpha.gnu.org:foobar \\ --to sources.redhat.com:~ftp/pub/foobar \\ foobar-0.9.90.tar.gz 6. Delete oopsbar-0.9.91.tar.gz and upload foobar-0.9.91.tar.gz (the -- terminates the list of files to delete): gnupload --to alpha.gnu.org:foobar \\ --to sources.redhat.com:~ftp/pub/foobar \\ --delete oopsbar-0.9.91.tar.gz \\ -- foobar-0.9.91.tar.gz gnupload executes a program ncftpput to do the transfers; if you don't happen to have an ncftp package installed, the ncftpput-ftp script in the build-aux/ directory of the gnulib package (https://savannah.gnu.org/projects/gnulib) may serve as a replacement. Send patches and bug reports to ." copyright_year=`echo "$scriptversion" | sed -e 's/[^0-9].*//'` copyright="Copyright (C) ${copyright_year} Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." # Read local configuration file if test -r "$conffile"; then echo "$0: Reading configuration file $conffile" conf=`sed 's/#.*$//;/^$/d' "$conffile" | tr "\015$nl" ' '` eval set x "$conf \"\$@\"" shift fi while test -n "$1"; do case $1 in -*) collect_var= case $1 in -h | --help) echo "$usage" exit $? ;; --to) if test -z "$2"; then echo "$0: Missing argument for --to" 1>&2 exit 1 elif echo "$2" | grep 'ftp-upload\.gnu\.org' >/dev/null; then echo "$0: Use ftp.gnu.org:PKGNAME or alpha.gnu.org:PKGNAME" >&2 echo "$0: for the destination, not ftp-upload.gnu.org (which" >&2 echo "$0: is used for direct ftp uploads, not with gnupload)." >&2 echo "$0: See --help and its examples if need be." >&2 exit 1 else to="$to $2" shift fi ;; --user) if test -z "$2"; then echo "$0: Missing argument for --user" 1>&2 exit 1 else GPG="$GPG --local-user $2" shift fi ;; --delete) collect_var=delete_files ;; --replace) replace="replace: true" ;; --rmsymlink) collect_var=delete_symlinks ;; --symlink-regex=*) symlink_expr=`expr "$1" : '[^=]*=\(.*\)'` ;; --symlink-regex) symlink_expr='s|-[0-9][0-9\.]*\(-[0-9][0-9]*\)\{0,1\}\.|-latest.|' ;; --symlink) collect_var=symlink_files ;; -n | --dry-run) dry_run=: ;; --version) echo "gnupload $scriptversion" echo "$copyright" exit 0 ;; --) shift break ;; -*) echo "$0: Unknown option '$1', try '$0 --help'" 1>&2 exit 1 ;; esac ;; *) if test -z "$collect_var"; then break else eval "$collect_var=\"\$$collect_var $1\"" fi ;; esac shift done dprint() { echo "Running $* ..." } if $dry_run; then dbg=dprint fi if test -z "$to"; then echo "$0: Missing destination sites" >&2 exit 1 fi if test -n "$symlink_files"; then x=`echo "$symlink_files" | sed 's/[^ ]//g;s/ //g'` if test -n "$x"; then echo "$0: Odd number of symlink arguments" >&2 exit 1 fi fi if test $# = 0; then if test -z "${symlink_files}${delete_files}${delete_symlinks}"; then echo "$0: No file to upload" 1>&2 exit 1 fi else # Make sure all files exist. We don't want to ask # for the passphrase if the script will fail. for file do if test ! -f $file; then echo "$0: Cannot find '$file'" 1>&2 exit 1 elif test -n "$symlink_expr"; then linkname=`echo $file | sed "$symlink_expr"` if test -z "$linkname"; then echo "$0: symlink expression produces empty results" >&2 exit 1 elif test "$linkname" = $file; then echo "$0: symlink expression does not alter file name" >&2 exit 1 fi fi done fi # Make sure passphrase is not exported in the environment. unset passphrase unset passphrase_fd_0 GNUPGHOME=${GNUPGHOME:-$HOME/.gnupg} # Reset PATH to be sure that echo is a built-in. We will later use # 'echo $passphrase' to output the passphrase, so it is important that # it is a built-in (third-party programs tend to appear in 'ps' # listings with their arguments...). # Remember this script runs with 'set -e', so if echo is not built-in # it will exit now. if $dry_run || grep -q "^use-agent" $GNUPGHOME/gpg.conf; then :; else PATH=/empty echo -n "Enter GPG passphrase: " stty -echo read -r passphrase stty echo echo passphrase_fd_0="--passphrase-fd 0" fi if test $# -ne 0; then for file do echo "Signing $file ..." rm -f $file.sig echo "$passphrase" | $dbg $GPG $passphrase_fd_0 -ba -o $file.sig $file done fi # mkdirective DESTDIR BASE FILE STMT # Arguments: See upload, below mkdirective () { stmt="$4" if test -n "$3"; then stmt=" filename: $3$stmt" fi cat >${2}.directive<&2 fi $dbg ncftpput savannah.gnu.org /incoming/savannah/$destdir $files ;; savannah.nongnu.org:*) if test -z "$files"; then echo "$0: warning: standalone directives not applicable for $dest" >&2 fi $dbg ncftpput savannah.nongnu.org /incoming/savannah/$destdir $files ;; download.gnu.org.ua:alpha/*|download.gnu.org.ua:ftp/*) destdir_p1=`echo "$destdir" | sed 's,^[^/]*/,,'` destdir_topdir=`echo "$destdir" | sed 's,/.*,,'` mkdirective "$destdir_p1" "$base" "$file" "$stmt" echo "$passphrase" | $dbg $GPG $passphrase_fd_0 --clearsign $base.directive for f in $files $base.directive.asc do echo put $f done | $dbg sftp -b - puszcza.gnu.org.ua:/incoming/$destdir_topdir ;; /*) dest_host=`echo "$dest" | sed 's,:.*,,'` mkdirective "$destdir" "$base" "$file" "$stmt" echo "$passphrase" | $dbg $GPG $passphrase_fd_0 --clearsign $base.directive $dbg cp $files $base.directive.asc $dest_host ;; *) if test -z "$files"; then echo "$0: warning: standalone directives not applicable for $dest" >&2 fi $dbg scp $files $dest ;; esac rm -f $base.directive $base.directive.asc } ##### # Process any standalone directives stmt= if test -n "$symlink_files"; then stmt="$stmt `mksymlink $symlink_files`" fi for file in $delete_files do stmt="$stmt archive: $file" done for file in $delete_symlinks do stmt="$stmt rmsymlink: $file" done if test -n "$stmt"; then for dest in $to do destdir=`echo $dest | sed 's/[^:]*://'` upload "$dest" "$destdir" "`hostname`-$$" "" "$stmt" done fi # Process actual uploads for dest in $to do for file do echo "Uploading $file to $dest ..." stmt= # # allowing file replacement is all or nothing. if test -n "$replace"; then stmt="$stmt $replace" fi # files="$file $file.sig" destdir=`echo $dest | sed 's/[^:]*://'` if test -n "$symlink_expr"; then linkname=`echo $file | sed "$symlink_expr"` stmt="$stmt symlink: $file $linkname symlink: $file.sig $linkname.sig" fi upload "$dest" "$destdir" "$file" "$file" "$stmt" "$files" done done exit 0 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/pmccabe.css0000644000000000000000000000607514273615074013710 00000000000000/* Styling for cyclomatic code complexity charts. Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ body { font-family: Helvetica, sans-serif; } .page_title { font: 18pt Georgia, serif; color: darkred; } .section_title { font: 14pt Georgia, serif; color: darkred; } .report_timestamp { color: darkred; font-weight: bold; } .function_src { text-align: left; background: white; } .resume_table { } .resume_header_entry { color: black; } .resume_number_entry { color: darkred; font-weight: bold; text-align: right; } .ranges_table { border-spacing: 0px; border-bottom: solid 2px black; border-top: solid 2px black; border-left: solid 2px black; border-right: solid 2px black; } .ranges_header_entry { padding: 5px; border-bottom: solid 1px black; font-size: 1em; font-weight: bold; color: darkred; text-align: left; } .ranges_entry { } .ranges_entry_simple { background: #87ff75; } .ranges_entry_moderate { background: #fffc60; } .ranges_entry_high { background: #ff5a5d; } .ranges_entry_untestable { background: #993300 } .function_table { border-spacing: 0px; border-bottom: solid 2px black; border-top: solid 2px black; border-left: solid 2px black; border-right: solid 2px black; } .function_table_caption { font-size: 1.1em; font-weight: bold; color: black; padding: 5px; } .function_table_header { } .function_table_header_entry { padding: 5px; border-bottom: solid 1px black; font-size: 1em; font-weight: bold; color: darkred; text-align: left; } .function_entry { } .function_entry_simple { background: #87ff75; } .function_entry_moderate { background: #fffc60; } .function_entry_high { background: #ff5a5d; } .function_entry_untestable { background: #993300 } .function_entry_name { font-size: 1em; text-align: left; font-weight: bold; text-valign: top; border-top: solid 1px black; padding: 3px; } .function_entry_cyclo { font-size: 1em; text-align: right; text-valign: top; border-top: solid 1px black; padding: 3px; } .function_entry_number { font-size: 1em; text-align: right; text-valign: top; border-top: solid 1px black; padding: 3px; } .function_entry_filename { font-size: 1em; text-align: left; text-valign: top; border-top: solid 1px black; padding: 3px; } shishi-1.0.3/build-aux/config.rpath0000755000000000000000000004425414273615121014106 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2022 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; nagfor*) wl='-Wl,-Wl,,' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; xl* | bgxl* | bgf* | mpixl*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) wl= ;; *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; newsos6) ;; *nto* | *qnx*) ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) wl='-Qoption ld ' ;; *) wl='-Wl,' ;; esac ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; haiku*) ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly* | midnightbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) case "$host_cpu" in powerpc*) library_names_spec='$libname$shrext' ;; m68k) library_names_spec='$libname.a' ;; esac ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd[23].*) library_names_spec='$libname$shrext$versuffix' ;; freebsd* | dragonfly* | midnightbsd*) library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' ;; haiku*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; tpf*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <"$log_file" "$@" >>"$log_file" 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>"$log_file" # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/announce-gen0000755000000000000000000004424314273615074014106 00000000000000#!/bin/sh #! -*-perl-*- # Generate a release announcement message. # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Written by Jim Meyering # This is a prologue that allows to run a perl script as an executable # on systems that are compliant to a POSIX version before POSIX:2017. # On such systems, the usual invocation of an executable through execlp() # or execvp() fails with ENOEXEC if it is a script that does not start # with a #! line. The script interpreter mentioned in the #! line has # to be /bin/sh, because on GuixSD systems that is the only program that # has a fixed file name. The second line is essential for perl and is # also useful for editing this file in Emacs. The next two lines below # are valid code in both sh and perl. When executed by sh, they re-execute # the script through the perl program found in $PATH. The '-x' option # is essential as well; without it, perl would re-execute the script # through /bin/sh. When executed by perl, the next two lines are a no-op. eval 'exec perl -wSx "$0" "$@"' if 0; my $VERSION = '2022-07-10 01:47'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. my $copyright_year = '2022'; use strict; use Getopt::Long; use POSIX qw(strftime); (my $ME = $0) =~ s|.*/||; my %valid_release_types = map {$_ => 1} qw (alpha beta stable); my @archive_suffixes = qw (tar.gz tar.bz2 tar.lz tar.lzma tar.xz); my $srcdir = '.'; sub usage ($) { my ($exit_code) = @_; my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); if ($exit_code != 0) { print $STREAM "Try '$ME --help' for more information.\n"; } else { my @types = sort keys %valid_release_types; print $STREAM < = C Compute the sizes of the C<@file> and return them as a hash. Return C if one of the computation failed. =cut sub sizes (@) { my (@file) = @_; my $fail = 0; my %res; foreach my $f (@file) { my $cmd = "du -h $f"; my $t = `$cmd`; # FIXME-someday: give a better diagnostic, a la $PROCESS_STATUS $@ and (warn "command failed: '$cmd'\n"), $fail = 1; chomp $t; $t =~ s/^\s*([\d.]+[MkK]).*/${1}B/; $res{$f} = $t; } return $fail ? undef : %res; } =item C dedicated to the list of <@file>, which sizes are stored in C<%size>, and which are available from the C<@url>. =cut sub print_locations ($\@\%@) { my ($title, $url, $size, @file) = @_; print "Here are the $title:\n"; foreach my $url (@{$url}) { for my $file (@file) { print " $url/$file"; print " (", $$size{$file}, ")" if exists $$size{$file}; print "\n"; } } print "\n"; } =item C. =cut sub print_checksums (@) { my (@file) = @_; print "Here are the SHA1 and SHA256 checksums:\n"; print "\n"; use Digest::file qw(digest_file_hex digest_file_base64); foreach my $f (@file) { print digest_file_hex($f, "SHA-1"), " $f\n"; print digest_file_base64($f, "SHA-256"), " $f\n"; } print "\nThe SHA256 checksum is base64 encoded, instead of the\n"; print "hexadecimal encoding that most checksum tools default to.\n\n"; } =item C addressing changes between versions C<$prev_version> and C<$curr_version>. =cut sub print_news_deltas ($$$) { my ($news_file, $prev_version, $curr_version) = @_; my $news_name = $news_file; $news_name =~ s|^\Q$srcdir\E/||; print "\n$news_name\n\n"; # Print all lines from $news_file, starting with the first one # that mentions $curr_version up to but not including # the first occurrence of $prev_version. my $in_items; my $re_prefix = qr/(?:\* )?(?:Noteworthy c|Major c|C)(?i:hanges)/; my $found_news; open NEWS, '<', $news_file or die "$ME: $news_file: cannot open for reading: $!\n"; while (defined (my $line = )) { if ( ! $in_items) { # Match lines like these: # * Major changes in release 5.0.1: # * Noteworthy changes in release 6.6 (2006-11-22) [stable] $line =~ /^$re_prefix.*(?:[^\d.]|$)\Q$curr_version\E(?:[^\d.]|$)/o or next; $in_items = 1; print $line; } else { # This regexp must not match version numbers in NEWS items. # For example, they might well say "introduced in 4.5.5", # and we don't want that to match. $line =~ /^$re_prefix.*(?:[^\d.]|$)\Q$prev_version\E(?:[^\d.]|$)/o and last; print $line; $line =~ /\S/ and $found_news = 1; } } close NEWS; $in_items or die "$ME: $news_file: no matching lines for '$curr_version'\n"; $found_news or die "$ME: $news_file: no news item found for '$curr_version'\n"; } sub print_changelog_deltas ($$) { my ($package_name, $prev_version) = @_; # Print new ChangeLog entries. # First find all CVS-controlled ChangeLog files. use File::Find; my @changelog; find ({wanted => sub {$_ eq 'ChangeLog' && -d 'CVS' and push @changelog, $File::Find::name}}, '.'); # If there are no ChangeLog files, we're done. @changelog or return; my %changelog = map {$_ => 1} @changelog; # Reorder the list of files so that if there are ChangeLog # files in the specified directories, they're listed first, # in this order: my @dir = qw ( . src lib m4 config doc ); # A typical @changelog array might look like this: # ./ChangeLog # ./po/ChangeLog # ./m4/ChangeLog # ./lib/ChangeLog # ./doc/ChangeLog # ./config/ChangeLog my @reordered; foreach my $d (@dir) { my $dot_slash = $d eq '.' ? $d : "./$d"; my $target = "$dot_slash/ChangeLog"; delete $changelog{$target} and push @reordered, $target; } # Append any remaining ChangeLog files. push @reordered, sort keys %changelog; # Remove leading './'. @reordered = map { s!^\./!!; $_ } @reordered; print "\nChangeLog entries:\n\n"; # print join ("\n", @reordered), "\n"; $prev_version =~ s/\./_/g; my $prev_cvs_tag = "\U$package_name\E-$prev_version"; my $cmd = "cvs -n diff -u -r$prev_cvs_tag -rHEAD @reordered"; open DIFF, '-|', $cmd or die "$ME: cannot run '$cmd': $!\n"; # Print two types of lines, making minor changes: # Lines starting with '+++ ', e.g., # +++ ChangeLog 22 Feb 2003 16:52:51 -0000 1.247 # and those starting with '+'. # Don't print the others. my $prev_printed_line_empty = 1; while (defined (my $line = )) { if ($line =~ /^\+\+\+ /) { my $separator = "*"x70 ."\n"; $line =~ s///; $line =~ s/\s.*//; $prev_printed_line_empty or print "\n"; print $separator, $line, $separator; } elsif ($line =~ /^\+/) { $line =~ s///; print $line; $prev_printed_line_empty = ($line =~ /^$/); } } close DIFF; # The exit code should be 1. # Allow in case there are no modified ChangeLog entries. $? == 256 || $? == 128 or warn "warning: '$cmd' had unexpected exit code or signal ($?)\n"; } sub get_tool_versions ($$) { my ($tool_list, $gnulib_version) = @_; @$tool_list or return (); my $fail; my @tool_version_pair; foreach my $t (@$tool_list) { if ($t eq 'gnulib') { push @tool_version_pair, ucfirst $t . ' ' . $gnulib_version; next; } # Assume that the last "word" on the first line of # 'tool --version' output is the version string. my ($first_line, undef) = split ("\n", `$t --version`); if ($first_line =~ /.* (\d[\w.-]+)$/) { $t = ucfirst $t; push @tool_version_pair, "$t $1"; } else { defined $first_line and $first_line = ''; warn "$t: unexpected --version output\n:$first_line"; $fail = 1; } } $fail and exit 1; return @tool_version_pair; } { # Use the C locale so that, for instance, "du" does not # print "1,2" instead of "1.2", which would confuse our regexps. $ENV{LC_ALL} = "C"; my $mail_headers; my $release_type; my $package_name; my $prev_version; my $curr_version; my $gpg_key_id; my @url_dir_list; my @news_file; my $bootstrap_tools; my $gnulib_version; my $print_checksums_p = 1; my $gpg_key_email; my $gpg_keyring_url; # Reformat the warnings before displaying them. local $SIG{__WARN__} = sub { my ($msg) = @_; # Warnings from GetOptions. $msg =~ s/Option (\w)/option --$1/; warn "$ME: $msg"; }; GetOptions ( 'mail-headers=s' => \$mail_headers, 'release-type=s' => \$release_type, 'package-name=s' => \$package_name, 'previous-version=s' => \$prev_version, 'current-version=s' => \$curr_version, 'gpg-key-id=s' => \$gpg_key_id, 'gpg-key-email=s' => \$gpg_key_email, 'gpg-keyring-url=s' => \$gpg_keyring_url, 'url-directory=s' => \@url_dir_list, 'news=s' => \@news_file, 'srcdir=s' => \$srcdir, 'bootstrap-tools=s' => \$bootstrap_tools, 'gnulib-version=s' => \$gnulib_version, 'print-checksums!' => \$print_checksums_p, 'archive-suffix=s' => \@archive_suffixes, help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; print "Copyright (C) $copyright_year Free Software Foundation, Inc.\n"; print "License GPLv3+: GNU GPL version 3 or later .\n" . "This is free software: you are free to change and redistribute it.\n" . "There is NO WARRANTY, to the extent permitted by law.\n"; print "\n"; my $author = "Jim Meyering"; print "Written by $author.\n"; exit }, ) or usage 1; my $fail = 0; # Ensure that each required option is specified. $release_type or (warn "release type not specified\n"), $fail = 1; $package_name or (warn "package name not specified\n"), $fail = 1; $prev_version or (warn "previous version string not specified\n"), $fail = 1; $curr_version or (warn "current version string not specified\n"), $fail = 1; $gpg_key_id or (warn "GnuPG key ID not specified\n"), $fail = 1; @url_dir_list or (warn "URL directory name(s) not specified\n"), $fail = 1; my @tool_list = split ',', $bootstrap_tools if $bootstrap_tools; grep (/^gnulib$/, @tool_list) && ! defined $gnulib_version and (warn "when specifying gnulib as a tool, you must also specify\n" . "--gnulib-version=V, where V is the result of running git describe\n" . "in the gnulib source directory.\n"), $fail = 1; ! grep (/^gnulib$/, @tool_list) && defined $gnulib_version and (warn "with --gnulib-version=V you must use --bootstrap-tools=...\n" . "including gnulib in that list"), $fail = 1; !$release_type || exists $valid_release_types{$release_type} or (warn "'$release_type': invalid release type\n"), $fail = 1; @ARGV and (warn "too many arguments:\n", join ("\n", @ARGV), "\n"), $fail = 1; $fail and usage 1; my $my_distdir = "$package_name-$curr_version"; my $xd = "$package_name-$prev_version-$curr_version.xdelta"; my @candidates = map { "$my_distdir.$_" } @archive_suffixes; my @tarballs = grep {-f $_} @candidates; @tarballs or die "$ME: none of " . join(', ', @candidates) . " were found\n"; my @sizable = @tarballs; -f $xd and push @sizable, $xd; my %size = sizes (@sizable); %size or exit 1; my $headers = ''; if (defined $mail_headers) { ($headers = $mail_headers) =~ s/\s+(\S+:)/\n$1/g; $headers .= "\n"; } # The markup is escaped as <\# so that when this script is sent by # mail (or part of a diff), Gnus is not triggered. print < FIXME: put comments here EOF if (@url_dir_list == 1 && @tarballs == 1) { # When there's only one tarball and one URL, use a more concise form. my $m = "$url_dir_list[0]/$tarballs[0]"; print "Here are the compressed sources and a GPG detached signature:\n" . " $m\n" . " $m.sig\n\n"; } else { print_locations ("compressed sources", @url_dir_list, %size, @tarballs); -f $xd and print_locations ("xdelta diffs (useful? if so, " . "please tell bug-gnulib\@gnu.org)", @url_dir_list, %size, $xd); my @sig_files = map { "$_.sig" } @tarballs; print_locations ("GPG detached signatures", @url_dir_list, %size, @sig_files); } if ($url_dir_list[0] =~ "gnu\.org") { print "Use a mirror for higher download bandwidth:\n"; if (@tarballs == 1 && $url_dir_list[0] =~ m!https://ftp\.gnu\.org/gnu/!) { (my $m = "$url_dir_list[0]/$tarballs[0]") =~ s!https://ftp\.gnu\.org/gnu/!https://ftpmirror\.gnu\.org/!; print " $m\n" . " $m.sig\n\n"; } else { print " https://www.gnu.org/order/ftp.html\n\n"; } } $print_checksums_p and print_checksums (@sizable); print <&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -p) cpprog="$cpprog -p";; -s) stripcmd=$stripprog;; -S) backupsuffix="$2" shift;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? # Don't chown directories that already exist. if test $dstdir_status = 0; then chowncmd="" fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false # The $RANDOM variable is not portable (e.g., dash). Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap ' ret=$? rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null exit $ret ' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p'. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && { test -z "$stripcmd" || { # Create $dsttmp read-write so that cp doesn't create it read-only, # which would cause strip to fail. if test -z "$doit"; then : >"$dsttmp" # No need to fork-exec 'touch'. else $doit touch "$dsttmp" fi } } && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # If $backupsuffix is set, and the file being installed # already exists, attempt a backup. Don't worry if it fails, # e.g., if mv doesn't support -f. if test -n "$backupsuffix" && test -f "$dst"; then $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null fi # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/gnu-web-doc-update0000755000000000000000000001410314273615074015110 00000000000000#!/bin/sh # Run this after each non-alpha release, to update the web documentation at # https://www.gnu.org/software/$pkg/manual/ VERSION=2022-01-27.18; # UTC # Copyright (C) 2009-2022 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . ME=$(basename "$0") warn() { printf '%s: %s\n' "$ME" "$*" >&2; } die() { warn "$*"; exit 1; } help() { cat <. EOF exit } version() { year=$(echo "$VERSION" | sed 's/[^0-9].*//') cat < This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. EOF exit } # find_tool ENVVAR NAMES... # ------------------------- # Search for a required program. Use the value of ENVVAR, if set, # otherwise find the first of the NAMES that can be run (i.e., # supports --version). If found, set ENVVAR to the program name, # die otherwise. # # FIXME: code duplication, see also bootstrap. find_tool () { find_tool_envvar=$1 shift find_tool_names=$@ eval "find_tool_res=\$$find_tool_envvar" if test x"$find_tool_res" = x; then for i do if ($i --version /dev/null 2>&1; then find_tool_res=$i break fi done else find_tool_error_prefix="\$$find_tool_envvar: " fi test x"$find_tool_res" != x \ || die "one of these is required: $find_tool_names" ($find_tool_res --version /dev/null 2>&1 \ || die "${find_tool_error_prefix}cannot run $find_tool_res --version" eval "$find_tool_envvar=\$find_tool_res" eval "export $find_tool_envvar" } ## ------ ## ## Main. ## ## ------ ## # Requirements: everything required to bootstrap your package, plus # these. find_tool CVS cvs find_tool GIT git find_tool RSYNC rsync find_tool XARGS gxargs xargs builddir=. dryrun= rm_stale='echo' cvs_user="$USER" while test $# != 0 do # Handle --option=value by splitting apart and putting back on argv. case $1 in --*=*) opt=$(echo "$1" | sed -e 's/=.*//') val=$(echo "$1" | sed -e 's/[^=]*=//') shift set dummy "$opt" "$val" "$@"; shift ;; esac case $1 in --help|--version) ${1#--};; -C|--builddir) shift; builddir=$1; shift ;; -n|--dry-run) dryrun=echo; shift;; -m|--mirror) rm_stale=''; shift;; -u|--user) shift; cvs_user=$1; shift ;; --*) die "unrecognized option: $1";; *) break;; esac done test $# = 0 \ || die "too many arguments" prev=.prev-version version=$(cat $prev) || die "no $prev file?" pkg=$(sed -n 's/^PACKAGE = \(.*\)/\1/p' $builddir/Makefile) \ || die "no Makefile?" tmp_branch=web-doc-$version-$$ current_branch=$($GIT branch | sed -ne '/^\* /{s///;p;q;}') cleanup() { __st=$? $dryrun rm -rf "$tmp" $GIT checkout "$current_branch" $GIT submodule update --recursive $GIT branch -d $tmp_branch exit $__st } trap cleanup 0 trap 'exit $?' 1 2 13 15 # We must build using sources for which --version reports the # just-released version number, not some string like 7.6.18-20761. # That version string propagates into all documentation. set -e $GIT checkout -b $tmp_branch v$version $GIT submodule update --recursive ./bootstrap srcdir=$(pwd) cd "$builddir" builddir=$(pwd) ./config.status --recheck ./config.status make make web-manual cd "$srcdir" set +e tmp=$(mktemp -d web-doc-update.XXXXXX) || exit 1 ( cd $tmp \ && $CVS -d $cvs_user@cvs.sv.gnu.org:/webcvs/$pkg co $pkg ) $RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/manual ( cd $tmp/$pkg/manual # Add all the files. This is simpler than trying to add only the # new ones because of new directories # First add non empty dirs individually find . -name CVS -prune -o -type d \! -empty -print \ | $XARGS -n1 --no-run-if-empty -- $dryrun $CVS add -ko # Now add all files find . -name CVS -prune -o -type f -print \ | $XARGS --no-run-if-empty -- $dryrun $CVS add -ko # Report/Remove stale files # excluding doc server specific files like CVS/* and .symlinks if test -n "$rm_stale"; then echo 'Consider the --mirror option if all of the manual is generated,' >&2 echo 'which will run `cvs remove` to remove stale files.' >&2 fi { find . \( -name CVS -o -type f -name '.*' \) -prune -o -type f -print (cd "$builddir"/doc/manual/ && find . -type f -print | sed p) } | sort | uniq -u \ | $XARGS --no-run-if-empty -- ${rm_stale:-$dryrun} $CVS remove -f $dryrun $CVS ci -m $version ) # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "VERSION=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/git-version-gen0000755000000000000000000001764014273615074014547 00000000000000#!/bin/sh # Print a version string. scriptversion=2022-07-09.08; # UTC # Copyright (C) 2007-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # This script is derived from GIT-VERSION-GEN from GIT: https://git-scm.com/. # It may be run two ways: # - from a git repository in which the "git describe" command below # produces useful output (thus requiring at least one signed tag) # - from a non-git-repo directory containing a .tarball-version file, which # presumes this script is invoked like "./git-version-gen .tarball-version". # In order to use intra-version strings in your project, you will need two # separate generated version string files: # # .tarball-version - present only in a distribution tarball, and not in # a checked-out repository. Created with contents that were learned at # the last time autoconf was run, and used by git-version-gen. Must not # be present in either $(srcdir) or $(builddir) for git-version-gen to # give accurate answers during normal development with a checked out tree, # but must be present in a tarball when there is no version control system. # Therefore, it cannot be used in any dependencies. GNUmakefile has # hooks to force a reconfigure at distribution time to get the value # correct, without penalizing normal development with extra reconfigures. # # .version - present in a checked-out repository and in a distribution # tarball. Usable in dependencies, particularly for files that don't # want to depend on config.h but do want to track version changes. # Delete this file prior to any autoconf run where you want to rebuild # files to pick up a version string change; and leave it stale to # minimize rebuild time after unrelated changes to configure sources. # # As with any generated file in a VC'd directory, you should add # /.version to .gitignore, so that you don't accidentally commit it. # .tarball-version is never generated in a VC'd directory, so needn't # be listed there. # # Use the following line in your configure.ac, so that $(VERSION) will # automatically be up-to-date each time configure is run (and note that # since configure.ac no longer includes a version string, Makefile rules # should not depend on configure.ac for version updates). # # AC_INIT([GNU project], # m4_esyscmd([build-aux/git-version-gen .tarball-version]), # [bug-project@example]) # # Then use the following lines in your Makefile.am, so that .version # will be present for dependencies, and so that .version and # .tarball-version will exist in distribution tarballs. # # EXTRA_DIST = $(top_srcdir)/.version # BUILT_SOURCES = $(top_srcdir)/.version # $(top_srcdir)/.version: # echo '$(VERSION)' > $@-t # mv $@-t $@ # dist-hook: # echo '$(VERSION)' > $(distdir)/.tarball-version me=$0 year=`expr "$scriptversion" : '\([^-]*\)'` version="git-version-gen $scriptversion Copyright (C) ${year} Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law." usage="\ Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT] Print a version string. Options: --prefix PREFIX prefix of git tags (default 'v') --fallback VERSION fallback version to use if \"git --version\" fails --help display this help and exit --version output version information and exit Send patches and bug reports to ." prefix=v fallback= while test $# -gt 0; do case $1 in --help) echo "$usage"; exit 0;; --version) echo "$version"; exit 0;; --prefix) shift; prefix=${1?};; --fallback) shift; fallback=${1?};; -*) echo "$0: Unknown option '$1'." >&2 echo "$0: Try '--help' for more information." >&2 exit 1;; *) if test "x$tarball_version_file" = x; then tarball_version_file="$1" elif test "x$tag_sed_script" = x; then tag_sed_script="$1" else echo "$0: extra non-option argument '$1'." >&2 exit 1 fi;; esac shift done if test "x$tarball_version_file" = x; then echo "$usage" exit 1 fi tag_sed_script="${tag_sed_script:-s/x/x/}" nl=' ' # Avoid meddling by environment variable of the same name. v= v_from_git= # First see if there is a tarball-only version file. # then try "git describe", then default. if test -f $tarball_version_file then v=`cat $tarball_version_file` || v= case $v in *$nl*) v= ;; # reject multi-line output esac test "x$v" = x \ && echo "$0: WARNING: $tarball_version_file is damaged" 1>&2 fi if test "x$v" != x then : # use $v # Otherwise, if there is at least one git commit involving the working # directory, and "git describe" output looks sensible, use that to # derive a version string. elif test "`git log -1 --pretty=format:x . 2>&1`" = x \ && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \ || git describe --abbrev=4 HEAD 2>/dev/null` \ && v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \ && case $v in $prefix[0-9]*) ;; *) (exit 1) ;; esac then # Is this a new git that lists number of commits since the last # tag or the previous older version that did not? # Newer: v6.10-77-g0f8faeb # Older: v6.10-g0f8faeb vprefix=`expr "X$v" : 'X\(.*\)-g[^-]*$'` || vprefix=$v case $vprefix in *-*) : git describe is probably okay three part flavor ;; *) : git describe is older two part flavor # Recreate the number of commits and rewrite such that the # result is the same as if we were using the newer version # of git describe. vtag=`echo "$v" | sed 's/-.*//'` commit_list=`git rev-list "$vtag"..HEAD 2>/dev/null` \ || { commit_list=failed; echo "$0: WARNING: git rev-list failed" 1>&2; } numcommits=`echo "$commit_list" | wc -l` v=`echo "$v" | sed "s/\(.*\)-\(.*\)/\1-$numcommits-\2/"`; test "$commit_list" = failed && v=UNKNOWN ;; esac # Change the penultimate "-" to ".", for version-comparing tools. # Remove the "g" to save a byte. v=`echo "$v" | sed 's/-\([^-]*\)-g\([^-]*\)$/.\1-\2/'`; v_from_git=1 elif test "x$fallback" = x || git --version >/dev/null 2>&1; then v=UNKNOWN else v=$fallback fi v=`echo "$v" |sed "s/^$prefix//"` # Test whether to append the "-dirty" suffix only if the version # string we're using came from git. I.e., skip the test if it's "UNKNOWN" # or if it came from .tarball-version. if test "x$v_from_git" != x; then # Don't declare a version "dirty" merely because a timestamp has changed. git update-index --refresh > /dev/null 2>&1 dirty=`exec 2>/dev/null;git diff-index --name-only HEAD` || dirty= case "$dirty" in '') ;; *) # Append the suffix only if there isn't one already. case $v in *-dirty) ;; *) v="$v-dirty" ;; esac ;; esac fi # Omit the trailing newline, so that m4_esyscmd can use the result directly. printf %s "$v" # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/ltmain.sh0000755000000000000000000117716714273615066013444 00000000000000#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.6 Debian-2.4.6-15" package_revision=2.4.6 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # As a special exception to the GNU General Public License, if you distribute # this file as part of a program or library that is built using GNU Libtool, # you may include this file under the same distribution terms that you use # for the rest of that program. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # Set a version string for this script. scriptversion=2015-10-07.11; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# warranty; '. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # to the main code. A hook is just a named list of of function, that can # be run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd _G_rc_run_hooks=false case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do if eval $_G_hook '"$@"'; then # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift _G_rc_run_hooks=: fi done $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, you may remove/edit # any options that you action, and then pass back the remaining unprocessed # options in '_result', escaped suitably for # 'eval'. In this case you also must return $EXIT_SUCCESS to let the # hook's caller know that it should pay attention to # '_result'. Returning $EXIT_FAILURE signalizes that # arguments are left untouched by the hook and therefore caller will ignore the # result variable. # # Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # No change in '$@' (ignored completely by this hook). There is # # no need to do the equivalent (but slower) action: # # func_quote_for_eval ${1+"$@"} # # my_options_prep_result=$func_quote_for_eval_result # false # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # args_changed=false # # # Note that for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: # args_changed=: # ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # args_changed=: # ;; # *) # Make sure the first unrecognised option "$_G_opt" # # is added back to "$@", we could need that later # # if $args_changed is true. # set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # # if $args_changed; then # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # fi # # $args_changed # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # # false # } # func_add_hook func_validate_options my_option_validation # # You'll also need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options_finish [ARG]... # ---------------------------- # Finishing the option parse loop (call 'func_options' hooks ATM). func_options_finish () { $debug_cmd _G_func_options_finish_exit=false if func_run_hooks func_options ${1+"$@"}; then func_options_finish_result=$func_run_hooks_result _G_func_options_finish_exit=: fi $_G_func_options_finish_exit } # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd _G_rc_options=false for my_func in options_prep parse_options validate_options options_finish do if eval func_$my_func '${1+"$@"}'; then eval _G_res_var='$'"func_${my_func}_result" eval set dummy "$_G_res_var" ; shift _G_rc_options=: fi done # Save modified positional parameters for caller. As a top-level # options-parser function we always need to set the 'func_options_result' # variable (regardless the $_G_rc_options value). if $_G_rc_options; then func_options_result=$_G_res_var else func_quote_for_eval ${1+"$@"} func_options_result=$func_quote_for_eval_result fi $_G_rc_options } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propagate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned). func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= _G_rc_options_prep=false if func_run_hooks func_options_prep ${1+"$@"}; then _G_rc_options_prep=: # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result fi $_G_rc_options_prep } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= _G_rc_parse_options=false # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. if func_run_hooks func_parse_options ${1+"$@"}; then eval set dummy "$func_run_hooks_result"; shift _G_rc_parse_options=: fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) if test $# = 0 && func_missing_arg $_G_opt; then _G_rc_parse_options=: break fi case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) _G_rc_parse_options=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift _G_match_parse_options=false break ;; esac $_G_match_parse_options && _G_rc_parse_options=: done if $_G_rc_parse_options; then # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result fi $_G_rc_parse_options } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd _G_rc_validate_options=false # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" if func_run_hooks func_validate_options ${1+"$@"}; then # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result _G_rc_validate_options=: fi # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE $_G_rc_validate_options } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables after # splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname $scriptversion Debian-2.4.6-15 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func__fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= _G_rc_lt_options_prep=: # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; *) _G_rc_lt_options_prep=false ;; esac if $_G_rc_lt_options_prep; then # Pass back the list of options. func_quote_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result fi $_G_rc_lt_options_prep } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd _G_rc_lt_parse_options=false # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_match_lt_parse_options=: _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"} ; shift _G_match_lt_parse_options=false break ;; esac $_G_match_lt_parse_options && _G_rc_lt_parse_options=: done if $_G_rc_lt_parse_options; then # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result fi $_G_rc_lt_parse_options } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer # -fuse-ld=* Linker select flags for GCC # -static-* direct GCC to link specific libraries statically # -fcilkplus Cilk Plus language extension features for C/C++ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type '$version_type'" ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: shishi-1.0.3/build-aux/do-release-commit-and-tag0000755000000000000000000001234614273615074016347 00000000000000#!/bin/sh # In a git/autoconf/automake-enabled project with a NEWS file and a version- # controlled .prev-version file, automate the procedure by which we record # the date, release-type and version string in the NEWS file. That commit # will serve to identify the release, so apply a signed tag to it as well. VERSION=2018-03-07.03 # UTC # Note: this is a bash script (could be zsh or dash) # Copyright (C) 2009-2022 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Written by Jim Meyering ME=$(basename "$0") warn() { printf '%s: %s\n' "$ME" "$*" >&2; } die() { warn "$*"; exit 1; } help() { cat <. EOF exit } version() { year=$(echo "$VERSION" | sed 's/[^0-9].*//') cat < This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. EOF exit } ## ------ ## ## Main. ## ## ------ ## # Constants. noteworthy='* Noteworthy changes in release' noteworthy_stub="$noteworthy ?.? (????-??-??) [?]" # Variables. branch=$(git branch | sed -ne '/^\* /{s///;p;q;}') builddir=. while test $# != 0 do # Handle --option=value by splitting apart and putting back on argv. case $1 in --*=*) opt=$(echo "$1" | sed -e 's/=.*//') val=$(echo "$1" | sed -e 's/[^=]*=//') shift set dummy "$opt" "$val" "$@"; shift ;; esac case $1 in --help|--version) ${1#--};; --branch) shift; branch=$1; shift ;; -C|--builddir) shift; builddir=$1; shift ;; --*) die "unrecognized option: $1";; *) break;; esac done test $# = 2 \ || die "Usage: $ME [OPTION...] VERSION TYPE" ver=$1 type=$2 ## ---------------------- ## ## First, sanity checks. ## ## ---------------------- ## # Verify that $ver looks like a version number, and... echo "$ver"|grep -E '^[0-9][0-9.]*[0-9]$' > /dev/null \ || die "invalid version: $ver" prev_ver=$(cat .prev-version) \ || die 'failed to determine previous version number from .prev-version' # Verify that $ver is sensible (> .prev-version). case $(printf "%s\n%s\n" "$prev_ver" "$ver"|sort -V -u|tr '\n' ':') in "$prev_ver:$ver:") ;; *) die "invalid version: $ver (<= $prev_ver)";; esac case $type in alpha|beta|stable) ;; *) die "invalid release type: $type";; esac # No local modifications allowed. case $(git diff-index --name-only HEAD) in '') ;; *) die 'this tree is dirty; commit your changes first';; esac # Ensure the current branch name is correct: curr_br=$(git rev-parse --symbolic-full-name HEAD) test "$curr_br" = "refs/heads/$branch" || die not on branch $branch # Extract package name from Makefile. Makefile=$builddir/Makefile pkg=$(sed -n 's/^PACKAGE = \(.*\)/\1/p' "$Makefile") \ || die "failed to determine package name from $Makefile" # Check that line 3 of NEWS is the stub line about to be replaced. test "$(sed -n 3p NEWS)" = "$noteworthy_stub" \ || die "line 3 of NEWS must be exactly '$noteworthy_stub'" ## --------------- ## ## Then, changes. ## ## --------------- ## # Update NEWS to have today's date, plus desired version number and $type. perl -MPOSIX -ni -e 'my $today = strftime "%F", localtime time;' \ -e 'my ($type, $ver) = qw('"$type $ver"');' \ -e 'my $pfx = "'"$noteworthy"'";' \ -e 'print $.==3 ? "$pfx $ver ($today) [$type]\n" : $_' \ NEWS || die 'failed to update NEWS' printf "version %s\n\n* NEWS: Record release date.\n" "$ver" \ | git commit -F - -a || die 'git commit failed' git tag -s -m "$pkg $ver" v$ver HEAD || die 'git tag failed' # Local variables: # indent-tabs-mode: nil # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "VERSION=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: " # UTC" # End: shishi-1.0.3/build-aux/update-copyright0000755000000000000000000002513514273615074015020 00000000000000#!/bin/sh #! -*-perl-*- # Update an FSF copyright year list to include the current year. # Copyright (C) 2009-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Written by Jim Meyering and Joel E. Denny # This script updates an FSF copyright year list to include the current year. # Usage: update-copyright [FILE...] # # The arguments to this script should be names of files that contain # copyright statements to be updated. The copyright holder's name # defaults to "Free Software Foundation, Inc." but may be changed to # any other name by using the "UPDATE_COPYRIGHT_HOLDER" environment # variable. # # For example, you might wish to use the update-copyright target rule # in maint.mk from gnulib's maintainer-makefile module. # # Iff a copyright statement is recognized in a file and the final # year is not the current year, then the statement is updated for the # new year and it is reformatted to: # # 1. Fit within 72 columns. # 2. Convert 2-digit years to 4-digit years by prepending "19". # 3. Expand copyright year intervals. (See "Environment variables" # below.) # # A warning is printed for every file for which no copyright # statement is recognized. # # Each file's copyright statement must be formatted correctly in # order to be recognized. For example, each of these is fine: # # Copyright @copyright{} 1990-2005, 2007-2009 Free Software # Foundation, Inc. # # # Copyright (C) 1990-2005, 2007-2009 Free Software # # Foundation, Inc. # # /* # * Copyright © 90,2005,2007-2009 # * Free Software Foundation, Inc. # */ # # However, the following format is not recognized because the line # prefix changes after the first line: # # ## Copyright (C) 1990-2005, 2007-2009 Free Software # # Foundation, Inc. # # However, any correctly formatted copyright statement following # a non-matching copyright statements would be recognized. # # The exact conditions that a file's copyright statement must meet # to be recognized are: # # 1. It is the first copyright statement that meets all of the # following conditions. Subsequent copyright statements are # ignored. # 2. Its format is "Copyright (C)", then a list of copyright years, # and then the name of the copyright holder. # 3. The "(C)" takes one of the following forms or is omitted # entirely: # # A. (C) # B. (c) # C. @copyright{} # D. © # E. © # # 4. The "Copyright" appears at the beginning of a line, except that it # may be prefixed by any sequence (e.g., a comment) of no more than # 5 characters -- including white space. # 5. Iff such a prefix is present, the same prefix appears at the # beginning of each remaining line within the FSF copyright # statement. There is one exception in order to support C-style # comments: if the first line's prefix contains nothing but # whitespace surrounding a "/*", then the prefix for all subsequent # lines is the same as the first line's prefix except with each of # "/" and possibly "*" replaced by a " ". The replacement of "*" # by " " is consistent throughout all subsequent lines. # 6. Blank lines, even if preceded by the prefix, do not appear # within the FSF copyright statement. # 7. Each copyright year is 2 or 4 digits, and years are separated by # commas, "-", or "--". Whitespace may appear after commas. # # Environment variables: # # 1. If UPDATE_COPYRIGHT_FORCE=1, a recognized FSF copyright statement # is reformatted even if it does not need updating for the new # year. If unset or set to 0, only updated FSF copyright # statements are reformatted. # 2. If UPDATE_COPYRIGHT_USE_INTERVALS=1, every series of consecutive # copyright years (such as 90, 1991, 1992-2007, 2008) in a # reformatted FSF copyright statement is collapsed to a single # interval (such as 1990-2008). If unset or set to 0, all existing # copyright year intervals in a reformatted FSF copyright statement # are expanded instead. # If UPDATE_COPYRIGHT_USE_INTERVALS=2, convert a sequence with gaps # to the minimal containing range. For example, convert # 2000, 2004-2007, 2009 to 2000-2009. # 3. For testing purposes, you can set the assumed current year in # UPDATE_COPYRIGHT_YEAR. # 4. The default maximum line length for a copyright line is 72. # Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH to use a different length. # 5. Set UPDATE_COPYRIGHT_HOLDER if the copyright holder is other # than "Free Software Foundation, Inc.". # This is a prologue that allows to run a perl script as an executable # on systems that are compliant to a POSIX version before POSIX:2017. # On such systems, the usual invocation of an executable through execlp() # or execvp() fails with ENOEXEC if it is a script that does not start # with a #! line. The script interpreter mentioned in the #! line has # to be /bin/sh, because on GuixSD systems that is the only program that # has a fixed file name. The second line is essential for perl and is # also useful for editing this file in Emacs. The next two lines below # are valid code in both sh and perl. When executed by sh, they re-execute # the script through the perl program found in $PATH. The '-x' option # is essential as well; without it, perl would re-execute the script # through /bin/sh. When executed by perl, the next two lines are a no-op. eval 'exec perl -wSx -0777 -pi "$0" "$@"' if 0; my $VERSION = '2020-04-04.15:07'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. use strict; use warnings; my $copyright_re = 'Copyright'; my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)'; my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER}; $holder ||= 'Free Software Foundation, Inc.'; my $prefix_max = 5; my $margin = $ENV{UPDATE_COPYRIGHT_MAX_LINE_LENGTH}; !$margin || $margin !~ m/^\d+$/ and $margin = 72; my $tab_width = 8; my $this_year = $ENV{UPDATE_COPYRIGHT_YEAR}; if (!$this_year || $this_year !~ m/^\d{4}$/) { my ($sec, $min, $hour, $mday, $month, $year) = localtime (time ()); $this_year = $year + 1900; } # Unless the file consistently uses "\r\n" as the EOL, use "\n" instead. my $eol = /(?:^|[^\r])\n/ ? "\n" : "\r\n"; my $leading; my $prefix; my $ws_re; my $stmt_re; while (/(^|\n)(.{0,$prefix_max})$copyright_re/g) { $leading = "$1$2"; $prefix = $2; if ($prefix =~ /^(\s*\/)\*(\s*)$/) { $prefix =~ s,/, ,; my $prefix_ws = $prefix; $prefix_ws =~ s/\*/ /; # Only whitespace. if (/\G(?:[^*\n]|\*[^\/\n])*\*?\n$prefix_ws/) { $prefix = $prefix_ws; } } $ws_re = '[ \t\r\f]'; # \s without \n $ws_re = "(?:$ws_re*(?:$ws_re|\\n" . quotemeta($prefix) . ")$ws_re*)"; my $holder_re = $holder; $holder_re =~ s/\s/$ws_re/g; my $stmt_remainder_re = "(?:$ws_re$circle_c_re)?" . "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|--?))*" . "((?:\\d\\d)?\\d\\d)$ws_re$holder_re"; if (/\G$stmt_remainder_re/) { $stmt_re = quotemeta($leading) . "($copyright_re$stmt_remainder_re)"; last; } } if (defined $stmt_re) { /$stmt_re/ or die; # Should never die. my $stmt = $1; my $final_year_orig = $2; # Handle two-digit year numbers like "98" and "99". my $final_year = $final_year_orig; $final_year <= 99 and $final_year += 1900; if ($final_year != $this_year) { # Update the year. $stmt =~ s/\b$final_year_orig\b/$final_year, $this_year/; } if ($final_year != $this_year || $ENV{'UPDATE_COPYRIGHT_FORCE'}) { # Normalize all whitespace including newline-prefix sequences. $stmt =~ s/$ws_re/ /g; # Put spaces after commas. $stmt =~ s/, ?/, /g; # Convert 2-digit to 4-digit years. $stmt =~ s/(\b\d\d\b)/19$1/g; # Make the use of intervals consistent. if (!$ENV{UPDATE_COPYRIGHT_USE_INTERVALS}) { $stmt =~ s/(\d{4})--?(\d{4})/join(', ', $1..$2)/eg; } else { my $ndash = $ARGV =~ /\.tex(i(nfo)?)?$/ ? "--" : "-"; $stmt =~ s/ (\d{4}) (?: (,\ |--?) ((??{ if ($2 ne ', ') { '\d{4}'; } elsif (!$3) { $1 + 1; } else { $3 + 1; } })) )+ /$1$ndash$3/gx; # When it's 2, emit a single range encompassing all year numbers. $ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2 and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1$ndash$2/; } # Format within margin. my $stmt_wrapped; my $text_margin = $margin - length($prefix); if ($prefix =~ /^(\t+)/) { $text_margin -= length($1) * ($tab_width - 1); } while (length $stmt) { if (($stmt =~ s/^(.{1,$text_margin})(?: |$)//) || ($stmt =~ s/^([\S]+)(?: |$)//)) { my $line = $1; $stmt_wrapped .= $stmt_wrapped ? "$eol$prefix" : $leading; $stmt_wrapped .= $line; } else { # Should be unreachable, but we don't want an infinite # loop if it can be reached. die; } } # Replace the old copyright statement. s/$stmt_re/$stmt_wrapped/; } } else { print STDERR "$ARGV: warning: copyright statement not found\n"; } # Hey Emacs! # Local variables: # coding: utf-8 # mode: perl # indent-tabs-mode: nil # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-line-limit: 200 # time-stamp-start: "my $VERSION = '" # time-stamp-format: "%:y-%02m-%02d.%02H:%02M" # time-stamp-time-zone: "UTC0" # time-stamp-end: "'; # UTC" # End: shishi-1.0.3/build-aux/texinfo.tex0000644000000000000000000133160614273524057014004 00000000000000% texinfo.tex -- TeX macros to handle Texinfo files. % % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % \def\texinfoversion{2022-04-09.08} % % Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc. % % This texinfo.tex file is free software: you can redistribute it and/or % modify it under the terms of the GNU General Public License as % published by the Free Software Foundation, either version 3 of the % License, or (at your option) any later version. % % This texinfo.tex file is distributed in the hope that it will be % useful, but WITHOUT ANY WARRANTY; without even the implied warranty % of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU % General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program. If not, see . % % As a special exception, when this file is read by TeX when processing % a Texinfo source document, you may use the result without % restriction. This Exception is an additional permission under section 7 % of the GNU General Public License, version 3 ("GPLv3"). % % Please try the latest version of texinfo.tex before submitting bug % reports; you can get the latest version from: % https://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or % https://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or % https://www.gnu.org/software/texinfo/ (the Texinfo home page) % The texinfo.tex in any given distribution could well be out % of date, so if that's what you're using, please check. % % Send bug reports to bug-texinfo@gnu.org. Please include a % complete document in each bug report with which we can reproduce the % problem. Patches are, of course, greatly appreciated. % % To process a Texinfo manual with TeX, it's most reliable to use the % texi2dvi shell script that comes with the distribution. For a simple % manual foo.texi, however, you can get away with this: % tex foo.texi % texindex foo.?? % tex foo.texi % tex foo.texi % dvips foo.dvi -o # or whatever; this makes foo.ps. % The extra TeX runs get the cross-reference information correct. % Sometimes one run after texindex suffices, and sometimes you need more % than two; texi2dvi does it as many times as necessary. % % It is possible to adapt texinfo.tex for other languages, to some % extent. You can get the existing language-specific files from the % full Texinfo distribution. % % The GNU Texinfo home page is https://www.gnu.org/software/texinfo. \message{Loading texinfo [version \texinfoversion]:} % If in a .fmt file, print the version number % and turn on active characters that we couldn't do earlier because % they might have appeared in the input file name. \everyjob{\message{[Texinfo version \texinfoversion]}% \catcode`+=\active \catcode`\_=\active} % LaTeX's \typeout. This ensures that the messages it is used for % are identical in format to the corresponding ones from latex/pdflatex. \def\typeout{\immediate\write17}% \chardef\other=12 % We never want plain's \outer definition of \+ in Texinfo. % For @tex, we can use \tabalign. \let\+ = \relax % Save some plain tex macros whose names we will redefine. \let\ptexb=\b \let\ptexbullet=\bullet \let\ptexc=\c \let\ptexcomma=\, \let\ptexdot=\. \let\ptexdots=\dots \let\ptexend=\end \let\ptexequiv=\equiv \let\ptexexclam=\! \let\ptexfootnote=\footnote \let\ptexgtr=> \let\ptexhat=^ \let\ptexi=\i \let\ptexindent=\indent \let\ptexinsert=\insert \let\ptexlbrace=\{ \let\ptexless=< \let\ptexnewwrite\newwrite \let\ptexnoindent=\noindent \let\ptexplus=+ \let\ptexraggedright=\raggedright \let\ptexrbrace=\} \let\ptexslash=\/ \let\ptexsp=\sp \let\ptexstar=\* \let\ptexsup=\sup \let\ptext=\t \let\ptextop=\top {\catcode`\'=\active \global\let\ptexquoteright'}% active in plain's math mode % If this character appears in an error message or help string, it % starts a new line in the output. \newlinechar = `^^J % Use TeX 3.0's \inputlineno to get the line number, for better error % messages, but if we're using an old version of TeX, don't do anything. % \ifx\inputlineno\thisisundefined \let\linenumber = \empty % Pre-3.0. \else \def\linenumber{l.\the\inputlineno:\space} \fi % Set up fixed words for English if not already set. \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi \ifx\putworderror\undefined \gdef\putworderror{error}\fi \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi \ifx\putwordin\undefined \gdef\putwordin{in}\fi \ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi \ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi \ifx\putwordNoTitle\undefined \gdef\putwordNoTitle{No Title}\fi \ifx\putwordof\undefined \gdef\putwordof{of}\fi \ifx\putwordon\undefined \gdef\putwordon{on}\fi \ifx\putwordpage\undefined \gdef\putwordpage{page}\fi \ifx\putwordsection\undefined \gdef\putwordsection{section}\fi \ifx\putwordSection\undefined \gdef\putwordSection{Section}\fi \ifx\putwordsee\undefined \gdef\putwordsee{see}\fi \ifx\putwordSee\undefined \gdef\putwordSee{See}\fi \ifx\putwordShortTOC\undefined \gdef\putwordShortTOC{Short Contents}\fi \ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi % \ifx\putwordMJan\undefined \gdef\putwordMJan{January}\fi \ifx\putwordMFeb\undefined \gdef\putwordMFeb{February}\fi \ifx\putwordMMar\undefined \gdef\putwordMMar{March}\fi \ifx\putwordMApr\undefined \gdef\putwordMApr{April}\fi \ifx\putwordMMay\undefined \gdef\putwordMMay{May}\fi \ifx\putwordMJun\undefined \gdef\putwordMJun{June}\fi \ifx\putwordMJul\undefined \gdef\putwordMJul{July}\fi \ifx\putwordMAug\undefined \gdef\putwordMAug{August}\fi \ifx\putwordMSep\undefined \gdef\putwordMSep{September}\fi \ifx\putwordMOct\undefined \gdef\putwordMOct{October}\fi \ifx\putwordMNov\undefined \gdef\putwordMNov{November}\fi \ifx\putwordMDec\undefined \gdef\putwordMDec{December}\fi % \ifx\putwordDefmac\undefined \gdef\putwordDefmac{Macro}\fi \ifx\putwordDefspec\undefined \gdef\putwordDefspec{Special Form}\fi \ifx\putwordDefvar\undefined \gdef\putwordDefvar{Variable}\fi \ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi \ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi % Give the space character the catcode for a space. \def\spaceisspace{\catcode`\ =10\relax} % Likewise for ^^M, the end of line character. \def\endlineisspace{\catcode13=10\relax} \chardef\dashChar = `\- \chardef\slashChar = `\/ \chardef\underChar = `\_ % Ignore a token. % \def\gobble#1{} % The following is used inside several \edef's. \def\makecsname#1{\expandafter\noexpand\csname#1\endcsname} % Hyphenation fixes. \hyphenation{ Flor-i-da Ghost-script Ghost-view Mac-OS Post-Script ap-pen-dix bit-map bit-maps data-base data-bases eshell fall-ing half-way long-est man-u-script man-u-scripts mini-buf-fer mini-buf-fers over-view par-a-digm par-a-digms rath-er rec-tan-gu-lar ro-bot-ics se-vere-ly set-up spa-ces spell-ing spell-ings stand-alone strong-est time-stamp time-stamps which-ever white-space wide-spread wrap-around } % Sometimes it is convenient to have everything in the transcript file % and nothing on the terminal. We don't just call \tracingall here, % since that produces some useless output on the terminal. We also make % some effort to order the tracing commands to reduce output in the log % file; cf. trace.sty in LaTeX. % \def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}% \def\loggingall{% \tracingstats2 \tracingpages1 \tracinglostchars2 % 2 gives us more in etex \tracingparagraphs1 \tracingoutput1 \tracingmacros2 \tracingrestores1 \showboxbreadth\maxdimen \showboxdepth\maxdimen \ifx\eTeXversion\thisisundefined\else % etex gives us more logging \tracingscantokens1 \tracingifs1 \tracinggroups1 \tracingnesting2 \tracingassigns1 \fi \tracingcommands3 % 3 gives us more in etex \errorcontextlines16 }% % @errormsg{MSG}. Do the index-like expansions on MSG, but if things % aren't perfect, it's not the end of the world, being an error message, % after all. % \def\errormsg{\begingroup \indexnofonts \doerrormsg} \def\doerrormsg#1{\errmessage{#1}} % add check for \lastpenalty to plain's definitions. If the last thing % we did was a \nobreak, we don't want to insert more space. % \def\smallbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\smallskipamount \removelastskip\penalty-50\smallskip\fi\fi} \def\medbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\medskipamount \removelastskip\penalty-100\medskip\fi\fi} \def\bigbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\bigskipamount \removelastskip\penalty-200\bigskip\fi\fi} % Output routine % % For a final copy, take out the rectangles % that mark overfull boxes (in case you have decided % that the text looks ok even though it passes the margin). % \def\finalout{\overfullrule=0pt } \newdimen\outerhsize \newdimen\outervsize % set by the paper size routines \newdimen\topandbottommargin \topandbottommargin=.75in % Output a mark which sets \thischapter, \thissection and \thiscolor. % We dump everything together because we only have one kind of mark. % This works because we only use \botmark / \topmark, not \firstmark. % % A mark contains a subexpression of the \ifcase ... \fi construct. % \get*marks macros below extract the needed part using \ifcase. % % Another complication is to let the user choose whether \thischapter % (\thissection) refers to the chapter (section) in effect at the top % of a page, or that at the bottom of a page. % \domark is called twice inside \chapmacro, to add one % mark before the section break, and one after. % In the second call \prevchapterdefs is the same as \currentchapterdefs, % and \prevsectiondefs is the same as \currentsectiondefs. % Then if the page is not broken at the mark, some of the previous % section appears on the page, and we can get the name of this section % from \firstmark for @everyheadingmarks top. % @everyheadingmarks bottom uses \botmark. % % See page 260 of The TeXbook. \def\domark{% \toks0=\expandafter{\currentchapterdefs}% \toks2=\expandafter{\currentsectiondefs}% \toks4=\expandafter{\prevchapterdefs}% \toks6=\expandafter{\prevsectiondefs}% \toks8=\expandafter{\currentcolordefs}% \mark{% \the\toks0 \the\toks2 % 0: marks for @everyheadingmarks top \noexpand\or \the\toks4 \the\toks6 % 1: for @everyheadingmarks bottom \noexpand\else \the\toks8 % 2: color marks }% } % \gettopheadingmarks, \getbottomheadingmarks, % \getcolormarks - extract needed part of mark. % % \topmark doesn't work for the very first chapter (after the title % page or the contents), so we use \firstmark there -- this gets us % the mark with the chapter defs, unless the user sneaks in, e.g., % @setcolor (or @url, or @link, etc.) between @contents and the very % first @chapter. \def\gettopheadingmarks{% \ifcase0\the\savedtopmark\fi \ifx\thischapter\empty \ifcase0\firstmark\fi \fi } \def\getbottomheadingmarks{\ifcase1\botmark\fi} \def\getcolormarks{\ifcase2\the\savedtopmark\fi} % Avoid "undefined control sequence" errors. \def\currentchapterdefs{} \def\currentsectiondefs{} \def\currentsection{} \def\prevchapterdefs{} \def\prevsectiondefs{} \def\currentcolordefs{} % Margin to add to right of even pages, to left of odd pages. \newdimen\bindingoffset \newdimen\normaloffset \newdimen\txipagewidth \newdimen\txipageheight % Main output routine. % \chardef\PAGE = 255 \newtoks\defaultoutput \defaultoutput = {\savetopmark\onepageout{\pagecontents\PAGE}} \output=\expandafter{\the\defaultoutput} \newbox\headlinebox \newbox\footlinebox % When outputting the double column layout for indices, an output routine % is run several times, which hides the original value of \topmark. This % can lead to a page heading being output and duplicating the chapter heading % of the index. Hence, save the contents of \topmark at the beginning of % the output routine. The saved contents are valid until we actually % \shipout a page. % % (We used to run a short output routine to actually set \topmark and % \firstmark to the right values, but if this was called with an empty page % containing whatsits for writing index entries, the whatsits would be thrown % away and the index auxiliary file would remain empty.) % \newtoks\savedtopmark \newif\iftopmarksaved \topmarksavedtrue \def\savetopmark{% \iftopmarksaved\else \global\savedtopmark=\expandafter{\topmark}% \global\topmarksavedtrue \fi } % \onepageout takes a vbox as an argument. % \shipout a vbox for a single page, adding an optional header, footer % and footnote. This also causes index entries for this page to be written % to the auxiliary files. % \def\onepageout#1{% \hoffset=\normaloffset % \ifodd\pageno \advance\hoffset by \bindingoffset \else \advance\hoffset by -\bindingoffset\fi % \checkchapterpage % % Retrieve the information for the headings from the marks in the page, % and call Plain TeX's \makeheadline and \makefootline, which use the % values in \headline and \footline. % % Common context changes for both heading and footing. % Do this outside of the \shipout so @code etc. will be expanded in % the headline as they should be, not taken literally (outputting ''code). \def\commonheadfootline{\let\hsize=\txipagewidth \texinfochars} % \ifodd\pageno \getoddheadingmarks \else \getevenheadingmarks \fi \global\setbox\headlinebox = \vbox{\commonheadfootline \makeheadline}% \ifodd\pageno \getoddfootingmarks \else \getevenfootingmarks \fi \global\setbox\footlinebox = \vbox{\commonheadfootline \makefootline}% % {% % Set context for writing to auxiliary files like index files. % Have to do this stuff outside the \shipout because we want it to % take effect in \write's, yet the group defined by the \vbox ends % before the \shipout runs. % \atdummies % don't expand commands in the output. \turnoffactive \shipout\vbox{% % Do this early so pdf references go to the beginning of the page. \ifpdfmakepagedest \pdfdest name{\the\pageno} xyz\fi % \unvbox\headlinebox \pagebody{#1}% \ifdim\ht\footlinebox > 0pt % Only leave this space if the footline is nonempty. % (We lessened \vsize for it in \oddfootingyyy.) % The \baselineskip=24pt in plain's \makefootline has no effect. \vskip 24pt \unvbox\footlinebox \fi % }% }% \global\topmarksavedfalse \advancepageno \ifnum\outputpenalty>-20000 \else\dosupereject\fi } \newinsert\margin \dimen\margin=\maxdimen % Main part of page, including any footnotes \def\pagebody#1{\vbox to\txipageheight{\boxmaxdepth=\maxdepth #1}} {\catcode`\@ =11 \gdef\pagecontents#1{\ifvoid\topins\else\unvbox\topins\fi % marginal hacks, juha@viisa.uucp (Juha Takala) \ifvoid\margin\else % marginal info is present \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi \dimen@=\dp#1\relax \unvbox#1\relax \ifvoid\footins\else\vskip\skip\footins\footnoterule \unvbox\footins\fi \ifr@ggedbottom \kern-\dimen@ \vfil \fi} } % Check if we are on the first page of a chapter. Used for printing headings. \newif\ifchapterpage \def\checkchapterpage{% % Get the chapter that was current at the end of the last page \ifcase1\the\savedtopmark\fi \let\prevchaptername\thischaptername % \ifodd\pageno \getoddheadingmarks \else \getevenheadingmarks \fi \let\curchaptername\thischaptername % \ifx\curchaptername\prevchaptername \chapterpagefalse \else \chapterpagetrue \fi } % Argument parsing % Parse an argument, then pass it to #1. The argument is the rest of % the input line (except we remove a trailing comment). #1 should be a % macro which expects an ordinary undelimited TeX argument. % For example, \def\foo{\parsearg\fooxxx}. % \def\parsearg{\parseargusing{}} \def\parseargusing#1#2{% \def\argtorun{#2}% \begingroup \obeylines \spaceisspace #1% \parseargline\empty% Insert the \empty token, see \finishparsearg below. } {\obeylines % \gdef\parseargline#1^^M{% \endgroup % End of the group started in \parsearg. \argremovecomment #1\comment\ArgTerm% }% } % First remove any @comment, then any @c comment. Pass the result on to % \argcheckspaces. \def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm} \def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm} % Each occurrence of `\^^M' or `\^^M' is replaced by a single space. % % \argremovec might leave us with trailing space, e.g., % @end itemize @c foo % This space token undergoes the same procedure and is eventually removed % by \finishparsearg. % \def\argcheckspaces#1\^^M{\argcheckspacesX#1\^^M \^^M} \def\argcheckspacesX#1 \^^M{\argcheckspacesY#1\^^M} \def\argcheckspacesY#1\^^M#2\^^M#3\ArgTerm{% \def\temp{#3}% \ifx\temp\empty % Do not use \next, perhaps the caller of \parsearg uses it; reuse \temp: \let\temp\finishparsearg \else \let\temp\argcheckspaces \fi % Put the space token in: \temp#1 #3\ArgTerm } % If a _delimited_ argument is enclosed in braces, they get stripped; so % to get _exactly_ the rest of the line, we had to prevent such situation. % We prepended an \empty token at the very beginning and we expand it now, % just before passing the control to \argtorun. % (Similarly, we have to think about #3 of \argcheckspacesY above: it is % either the null string, or it ends with \^^M---thus there is no danger % that a pair of braces would be stripped. % % But first, we have to remove the trailing space token. % \def\finishparsearg#1 \ArgTerm{\expandafter\argtorun\expandafter{#1}} % \parseargdef - define a command taking an argument on the line % % \parseargdef\foo{...} % is roughly equivalent to % \def\foo{\parsearg\Xfoo} % \def\Xfoo#1{...} \def\parseargdef#1{% \expandafter \doparseargdef \csname\string#1\endcsname #1% } \def\doparseargdef#1#2{% \def#2{\parsearg#1}% \def#1##1% } % Several utility definitions with active space: { \obeyspaces \gdef\obeyedspace{ } % Make each space character in the input produce a normal interword % space in the output. Don't allow a line break at this space, as this % is used only in environments like @example, where each line of input % should produce a line of output anyway. % \gdef\sepspaces{\obeyspaces\let =\tie} % If an index command is used in an @example environment, any spaces % therein should become regular spaces in the raw index file, not the % expansion of \tie (\leavevmode \penalty \@M \ ). \gdef\unsepspaces{\let =\space} } \def\flushcr{\ifx\par\lisppar \def\next##1{}\else \let\next=\relax \fi \next} % Define the framework for environments in texinfo.tex. It's used like this: % % \envdef\foo{...} % \def\Efoo{...} % % It's the responsibility of \envdef to insert \begingroup before the % actual body; @end closes the group after calling \Efoo. \envdef also % defines \thisenv, so the current environment is known; @end checks % whether the environment name matches. The \checkenv macro can also be % used to check whether the current environment is the one expected. % % Non-false conditionals (@iftex, @ifset) don't fit into this, so they % are not treated as environments; they don't open a group. (The % implementation of @end takes care not to call \endgroup in this % special case.) % At run-time, environments start with this: \def\startenvironment#1{\begingroup\def\thisenv{#1}} % initialize \let\thisenv\empty % ... but they get defined via ``\envdef\foo{...}'': \long\def\envdef#1#2{\def#1{\startenvironment#1#2}} \def\envparseargdef#1#2{\parseargdef#1{\startenvironment#1#2}} % Check whether we're in the right environment: \def\checkenv#1{% \def\temp{#1}% \ifx\thisenv\temp \else \badenverr \fi } % Environment mismatch, #1 expected: \def\badenverr{% \errhelp = \EMsimple \errmessage{This command can appear only \inenvironment\temp, not \inenvironment\thisenv}% } \def\inenvironment#1{% \ifx#1\empty outside of any environment% \else in environment \expandafter\string#1% \fi } % @end foo calls \checkenv and executes the definition of \Efoo. \parseargdef\end{% \if 1\csname iscond.#1\endcsname \else % The general wording of \badenverr may not be ideal. \expandafter\checkenv\csname#1\endcsname \csname E#1\endcsname \endgroup \fi } \newhelp\EMsimple{Press RETURN to continue.} % Be sure we're in horizontal mode when doing a tie, since we make space % equivalent to this in @example-like environments. Otherwise, a space % at the beginning of a line will start with \penalty -- and % since \penalty is valid in vertical mode, we'd end up putting the % penalty on the vertical list instead of in the new paragraph. {\catcode`@ = 11 % Avoid using \@M directly, because that causes trouble % if the definition is written into an index file. \global\let\tiepenalty = \@M \gdef\tie{\leavevmode\penalty\tiepenalty\ } } % @: forces normal size whitespace following. \def\:{\spacefactor=1000 } % @* forces a line break. \def\*{\unskip\hfil\break\hbox{}\ignorespaces} % @/ allows a line break. \let\/=\allowbreak % @. is an end-of-sentence period. \def\.{.\spacefactor=\endofsentencespacefactor\space} % @! is an end-of-sentence bang. \def\!{!\spacefactor=\endofsentencespacefactor\space} % @? is an end-of-sentence query. \def\?{?\spacefactor=\endofsentencespacefactor\space} % @frenchspacing on|off says whether to put extra space after punctuation. % \def\onword{on} \def\offword{off} % \parseargdef\frenchspacing{% \def\temp{#1}% \ifx\temp\onword \plainfrenchspacing \else\ifx\temp\offword \plainnonfrenchspacing \else \errhelp = \EMsimple \errmessage{Unknown @frenchspacing option `\temp', must be on|off}% \fi\fi } % @w prevents a word break. Without the \leavevmode, @w at the % beginning of a paragraph, when TeX is still in vertical mode, would % produce a whole line of output instead of starting the paragraph. \def\w#1{\leavevmode\hbox{#1}} % @group ... @end group forces ... to be all on one page, by enclosing % it in a TeX vbox. We use \vtop instead of \vbox to construct the box % to keep its height that of a normal line. According to the rules for % \topskip (p.114 of the TeXbook), the glue inserted is % max (\topskip - \ht (first item), 0). If that height is large, % therefore, no glue is inserted, and the space between the headline and % the text is small, which looks bad. % % Another complication is that the group might be very large. This can % cause the glue on the previous page to be unduly stretched, because it % does not have much material. In this case, it's better to add an % explicit \vfill so that the extra space is at the bottom. The % threshold for doing this is if the group is more than \vfilllimit % percent of a page (\vfilllimit can be changed inside of @tex). % \newbox\groupbox \def\vfilllimit{0.7} % \envdef\group{% \ifnum\catcode`\^^M=\active \else \errhelp = \groupinvalidhelp \errmessage{@group invalid in context where filling is enabled}% \fi \startsavinginserts % \setbox\groupbox = \vtop\bgroup % Do @comment since we are called inside an environment such as % @example, where each end-of-line in the input causes an % end-of-line in the output. We don't want the end-of-line after % the `@group' to put extra space in the output. Since @group % should appear on a line by itself (according to the Texinfo % manual), we don't worry about eating any user text. \comment } % % The \vtop produces a box with normal height and large depth; thus, TeX puts % \baselineskip glue before it, and (when the next line of text is done) % \lineskip glue after it. Thus, space below is not quite equal to space % above. But it's pretty close. \def\Egroup{% % To get correct interline space between the last line of the group % and the first line afterwards, we have to propagate \prevdepth. \endgraf % Not \par, as it may have been set to \lisppar. \global\dimen1 = \prevdepth \egroup % End the \vtop. \addgroupbox \prevdepth = \dimen1 \checkinserts } \def\addgroupbox{ % \dimen0 is the vertical size of the group's box. \dimen0 = \ht\groupbox \advance\dimen0 by \dp\groupbox % \dimen2 is how much space is left on the page (more or less). \dimen2 = \txipageheight \advance\dimen2 by -\pagetotal % if the group doesn't fit on the current page, and it's a big big % group, force a page break. \ifdim \dimen0 > \dimen2 \ifdim \pagetotal < \vfilllimit\txipageheight \page \fi \fi \box\groupbox } % % TeX puts in an \escapechar (i.e., `@') at the beginning of the help % message, so this ends up printing `@group can only ...'. % \newhelp\groupinvalidhelp{% group can only be used in environments such as @example,^^J% where each line of input produces a line of output.} % @need space-in-mils % forces a page break if there is not space-in-mils remaining. \newdimen\mil \mil=0.001in \parseargdef\need{% % Ensure vertical mode, so we don't make a big box in the middle of a % paragraph. \par % % If the @need value is less than one line space, it's useless. \dimen0 = #1\mil \dimen2 = \ht\strutbox \advance\dimen2 by \dp\strutbox \ifdim\dimen0 > \dimen2 % % Do a \strut just to make the height of this box be normal, so the % normal leading is inserted relative to the preceding line. % And a page break here is fine. \vtop to #1\mil{\strut\vfil}% % % TeX does not even consider page breaks if a penalty added to the % main vertical list is 10000 or more. But in order to see if the % empty box we just added fits on the page, we must make it consider % page breaks. On the other hand, we don't want to actually break the % page after the empty box. So we use a penalty of 9999. % % There is an extremely small chance that TeX will actually break the % page at this \penalty, if there are no other feasible breakpoints in % sight. (If the user is using lots of big @group commands, which % almost-but-not-quite fill up a page, TeX will have a hard time doing % good page breaking, for example.) However, I could not construct an % example where a page broke at this \penalty; if it happens in a real % document, then we can reconsider our strategy. \penalty9999 % % Back up by the size of the box, whether we did a page break or not. \kern -#1\mil % % Do not allow a page break right after this kern. \nobreak \fi } % @br forces paragraph break (and is undocumented). \let\br = \par % @page forces the start of a new page. % \def\page{\par\vfill\supereject} % @exdent text.... % outputs text on separate line in roman font, starting at standard page margin % This records the amount of indent in the innermost environment. % That's how much \exdent should take out. \newskip\exdentamount % This defn is used inside fill environments such as @defun. \parseargdef\exdent{\hfil\break\hbox{\kern -\exdentamount{\rm#1}}\hfil\break} % This defn is used inside nofill environments such as @example. \parseargdef\nofillexdent{{\advance \leftskip by -\exdentamount \leftline{\hskip\leftskip{\rm#1}}}} % @inmargin{WHICH}{TEXT} puts TEXT in the WHICH margin next to the current % paragraph. For more general purposes, use the \margin insertion % class. WHICH is `l' or `r'. Not documented, written for gawk manual. % \newskip\inmarginspacing \inmarginspacing=1cm \def\strutdepth{\dp\strutbox} % \def\doinmargin#1#2{\strut\vadjust{% \nobreak \kern-\strutdepth \vtop to \strutdepth{% \baselineskip=\strutdepth \vss % if you have multiple lines of stuff to put here, you'll need to % make the vbox yourself of the appropriate size. \ifx#1l% \llap{\ignorespaces #2\hskip\inmarginspacing}% \else \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}% \fi \null }% }} \def\inleftmargin{\doinmargin l} \def\inrightmargin{\doinmargin r} % % @inmargin{TEXT [, RIGHT-TEXT]} % (if RIGHT-TEXT is given, use TEXT for left page, RIGHT-TEXT for right; % else use TEXT for both). % \def\inmargin#1{\parseinmargin #1,,\finish} \def\parseinmargin#1,#2,#3\finish{% not perfect, but better than nothing. \setbox0 = \hbox{\ignorespaces #2}% \ifdim\wd0 > 0pt \def\lefttext{#1}% have both texts \def\righttext{#2}% \else \def\lefttext{#1}% have only one text \def\righttext{#1}% \fi % \ifodd\pageno \def\temp{\inrightmargin\righttext}% odd page -> outside is right margin \else \def\temp{\inleftmargin\lefttext}% \fi \temp } % @include FILE -- \input text of FILE. % \def\include{\parseargusing\filenamecatcodes\includezzz} \def\includezzz#1{% \pushthisfilestack \def\thisfile{#1}% {% \makevalueexpandable % we want to expand any @value in FILE. \turnoffactive % and allow special characters in the expansion \indexnofonts % Allow `@@' and other weird things in file names. \wlog{texinfo.tex: doing @include of #1^^J}% \edef\temp{\noexpand\input #1 }% % % This trickery is to read FILE outside of a group, in case it makes % definitions, etc. \expandafter }\temp \popthisfilestack } \def\filenamecatcodes{% \catcode`\\=\other \catcode`~=\other \catcode`^=\other \catcode`_=\other \catcode`|=\other \catcode`<=\other \catcode`>=\other \catcode`+=\other \catcode`-=\other \catcode`\`=\other \catcode`\'=\other } \def\pushthisfilestack{% \expandafter\pushthisfilestackX\popthisfilestack\StackTerm } \def\pushthisfilestackX{% \expandafter\pushthisfilestackY\thisfile\StackTerm } \def\pushthisfilestackY #1\StackTerm #2\StackTerm {% \gdef\popthisfilestack{\gdef\thisfile{#1}\gdef\popthisfilestack{#2}}% } \def\popthisfilestack{\errthisfilestackempty} \def\errthisfilestackempty{\errmessage{Internal error: the stack of filenames is empty.}} % \def\thisfile{} % @center line % outputs that line, centered. % \parseargdef\center{% \ifhmode \let\centersub\centerH \else \let\centersub\centerV \fi \centersub{\hfil \ignorespaces#1\unskip \hfil}% \let\centersub\relax % don't let the definition persist, just in case } \def\centerH#1{{% \hfil\break \advance\hsize by -\leftskip \advance\hsize by -\rightskip \line{#1}% \break }} % \newcount\centerpenalty \def\centerV#1{% % The idea here is the same as in \startdefun, \cartouche, etc.: if % @center is the first thing after a section heading, we need to wipe % out the negative parskip inserted by \sectionheading, but still % prevent a page break here. \centerpenalty = \lastpenalty \ifnum\centerpenalty>10000 \vskip\parskip \fi \ifnum\centerpenalty>9999 \penalty\centerpenalty \fi \line{\kern\leftskip #1\kern\rightskip}% } % @sp n outputs n lines of vertical space % \parseargdef\sp{\vskip #1\baselineskip} % @comment ...line which is ignored... % @c is the same as @comment % @ignore ... @end ignore is another way to write a comment \def\c{\begingroup \catcode`\^^M=\active% \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other% \cxxx} {\catcode`\^^M=\active \gdef\cxxx#1^^M{\endgroup}} % \let\comment\c % @paragraphindent NCHARS % We'll use ems for NCHARS, close enough. % NCHARS can also be the word `asis' or `none'. % We cannot feasibly implement @paragraphindent asis, though. % \def\asisword{asis} % no translation, these are keywords \def\noneword{none} % \parseargdef\paragraphindent{% \def\temp{#1}% \ifx\temp\asisword \else \ifx\temp\noneword \defaultparindent = 0pt \else \defaultparindent = #1em \fi \fi \parindent = \defaultparindent } % @exampleindent NCHARS % We'll use ems for NCHARS like @paragraphindent. % It seems @exampleindent asis isn't necessary, but % I preserve it to make it similar to @paragraphindent. \parseargdef\exampleindent{% \def\temp{#1}% \ifx\temp\asisword \else \ifx\temp\noneword \lispnarrowing = 0pt \else \lispnarrowing = #1em \fi \fi } % @firstparagraphindent WORD % If WORD is `none', then suppress indentation of the first paragraph % after a section heading. If WORD is `insert', then do indent at such % paragraphs. % % The paragraph indentation is suppressed or not by calling % \suppressfirstparagraphindent, which the sectioning commands do. % We switch the definition of this back and forth according to WORD. % By default, we suppress indentation. % \def\suppressfirstparagraphindent{\dosuppressfirstparagraphindent} \def\insertword{insert} % \parseargdef\firstparagraphindent{% \def\temp{#1}% \ifx\temp\noneword \let\suppressfirstparagraphindent = \dosuppressfirstparagraphindent \else\ifx\temp\insertword \let\suppressfirstparagraphindent = \relax \else \errhelp = \EMsimple \errmessage{Unknown @firstparagraphindent option `\temp'}% \fi\fi } % Here is how we actually suppress indentation. Redefine \everypar to % \kern backwards by \parindent, and then reset itself to empty. % % We also make \indent itself not actually do anything until the next % paragraph. % \gdef\dosuppressfirstparagraphindent{% \gdef\indent {\restorefirstparagraphindent \indent}% \gdef\noindent{\restorefirstparagraphindent \noindent}% \global\everypar = {\kern -\parindent \restorefirstparagraphindent}% } % \gdef\restorefirstparagraphindent{% \global\let\indent = \ptexindent \global\let\noindent = \ptexnoindent \global\everypar = {}% } % leave vertical mode without cancelling any first paragraph indent \gdef\imageindent{% \toks0=\everypar \everypar={}% \ptexnoindent \global\everypar=\toks0 } % @refill is a no-op. \let\refill=\relax % @setfilename INFO-FILENAME - ignored \let\setfilename=\comment % @bye. \outer\def\bye{\chappager\pagelabels\tracingstats=1\ptexend} \message{pdf,} % adobe `portable' document format \newcount\tempnum \newcount\lnkcount \newtoks\filename \newcount\filenamelength \newcount\pgn \newtoks\toksA \newtoks\toksB \newtoks\toksC \newtoks\toksD \newbox\boxA \newbox\boxB \newcount\countA \newif\ifpdf \newif\ifpdfmakepagedest % % For LuaTeX % \newif\iftxiuseunicodedestname \txiuseunicodedestnamefalse % For pdfTeX etc. \ifx\luatexversion\thisisundefined \else % Use Unicode destination names \txiuseunicodedestnametrue % Escape PDF strings with converting UTF-16 from UTF-8 \begingroup \catcode`\%=12 \directlua{ function UTF16oct(str) tex.sprint(string.char(0x5c) .. '376' .. string.char(0x5c) .. '377') for c in string.utfvalues(str) do if c < 0x10000 then tex.sprint( string.format(string.char(0x5c) .. string.char(0x25) .. '03o' .. string.char(0x5c) .. string.char(0x25) .. '03o', math.floor(c / 256), math.floor(c % 256))) else c = c - 0x10000 local c_hi = c / 1024 + 0xd800 local c_lo = c % 1024 + 0xdc00 tex.sprint( string.format(string.char(0x5c) .. string.char(0x25) .. '03o' .. string.char(0x5c) .. string.char(0x25) .. '03o' .. string.char(0x5c) .. string.char(0x25) .. '03o' .. string.char(0x5c) .. string.char(0x25) .. '03o', math.floor(c_hi / 256), math.floor(c_hi % 256), math.floor(c_lo / 256), math.floor(c_lo % 256))) end end end } \endgroup \def\pdfescapestrutfsixteen#1{\directlua{UTF16oct('\luaescapestring{#1}')}} % Escape PDF strings without converting \begingroup \directlua{ function PDFescstr(str) for c in string.bytes(str) do if c <= 0x20 or c >= 0x80 or c == 0x28 or c == 0x29 or c == 0x5c then tex.sprint(-2, string.format(string.char(0x5c) .. string.char(0x25) .. '03o', c)) else tex.sprint(-2, string.char(c)) end end end } % The -2 in the arguments here gives all the input to TeX catcode 12 % (other) or 10 (space), preventing undefined control sequence errors. See % https://lists.gnu.org/archive/html/bug-texinfo/2019-08/msg00031.html % \endgroup \def\pdfescapestring#1{\directlua{PDFescstr('\luaescapestring{#1}')}} \ifnum\luatexversion>84 % For LuaTeX >= 0.85 \def\pdfdest{\pdfextension dest} \let\pdfoutput\outputmode \def\pdfliteral{\pdfextension literal} \def\pdfcatalog{\pdfextension catalog} \def\pdftexversion{\numexpr\pdffeedback version\relax} \let\pdfximage\saveimageresource \let\pdfrefximage\useimageresource \let\pdflastximage\lastsavedimageresourceindex \def\pdfendlink{\pdfextension endlink\relax} \def\pdfoutline{\pdfextension outline} \def\pdfstartlink{\pdfextension startlink} \def\pdffontattr{\pdfextension fontattr} \def\pdfobj{\pdfextension obj} \def\pdflastobj{\numexpr\pdffeedback lastobj\relax} \let\pdfpagewidth\pagewidth \let\pdfpageheight\pageheight \edef\pdfhorigin{\pdfvariable horigin} \edef\pdfvorigin{\pdfvariable vorigin} \fi \fi % when pdftex is run in dvi mode, \pdfoutput is defined (so \pdfoutput=1 % can be set). So we test for \relax and 0 as well as being undefined. \ifx\pdfoutput\thisisundefined \else \ifx\pdfoutput\relax \else \ifcase\pdfoutput \else \pdftrue \fi \fi \fi \newif\ifpdforxetex \pdforxetexfalse \ifpdf \pdforxetextrue \fi \ifx\XeTeXrevision\thisisundefined\else \pdforxetextrue \fi % Output page labels information. % See PDF reference v.1.7 p.594, section 8.3.1. \ifpdf \def\pagelabels{% \def\title{0 << /P (T-) /S /D >>}% \edef\roman{\the\romancount << /S /r >>}% \edef\arabic{\the\arabiccount << /S /D >>}% % % Page label ranges must be increasing. Remove any duplicates. % (There is a slight chance of this being wrong if e.g. there is % a @contents but no @titlepage, etc.) % \ifnum\romancount=0 \def\roman{}\fi \ifnum\arabiccount=0 \def\title{}% \else \ifnum\romancount=\arabiccount \def\roman{}\fi \fi % \ifnum\romancount<\arabiccount \pdfcatalog{/PageLabels << /Nums [\title \roman \arabic ] >> }\relax \else \pdfcatalog{/PageLabels << /Nums [\title \arabic \roman ] >> }\relax \fi } \else \let\pagelabels\relax \fi \newcount\pagecount \pagecount=0 \newcount\romancount \romancount=0 \newcount\arabiccount \arabiccount=0 \ifpdf \let\ptxadvancepageno\advancepageno \def\advancepageno{% \ptxadvancepageno\global\advance\pagecount by 1 } \fi % PDF uses PostScript string constants for the names of xref targets, % for display in the outlines, and in other places. Thus, we have to % double any backslashes. Otherwise, a name like "\node" will be % interpreted as a newline (\n), followed by o, d, e. Not good. % % See http://www.ntg.nl/pipermail/ntg-pdftex/2004-July/000654.html and % related messages. The final outcome is that it is up to the TeX user % to double the backslashes and otherwise make the string valid, so % that's what we do. pdftex 1.30.0 (ca.2005) introduced a primitive to % do this reliably, so we use it. % #1 is a control sequence in which to do the replacements, % which we \xdef. \def\txiescapepdf#1{% \ifx\pdfescapestring\thisisundefined % No primitive available; should we give a warning or log? % Many times it won't matter. \xdef#1{#1}% \else % The expandable \pdfescapestring primitive escapes parentheses, % backslashes, and other special chars. \xdef#1{\pdfescapestring{#1}}% \fi } \def\txiescapepdfutfsixteen#1{% \ifx\pdfescapestrutfsixteen\thisisundefined % No UTF-16 converting macro available. \txiescapepdf{#1}% \else \xdef#1{\pdfescapestrutfsixteen{#1}}% \fi } \newhelp\nopdfimagehelp{Texinfo supports .png, .jpg, .jpeg, and .pdf images with PDF output, and none of those formats could be found. (.eps cannot be supported due to the design of the PDF format; use regular TeX (DVI output) for that.)} \ifpdf % % Color manipulation macros using ideas from pdfcolor.tex, % except using rgb instead of cmyk; the latter is said to render as a % very dark gray on-screen and a very dark halftone in print, instead % of actual black. The dark red here is dark enough to print on paper as % nearly black, but still distinguishable for online viewing. We use % black by default, though. \def\rgbDarkRed{0.50 0.09 0.12} \def\rgbBlack{0 0 0} % % rg sets the color for filling (usual text, etc.); % RG sets the color for stroking (thin rules, e.g., normal _'s). \def\pdfsetcolor#1{\pdfliteral{#1 rg #1 RG}} % % Set color, and create a mark which defines \thiscolor accordingly, % so that \makeheadline knows which color to restore. \def\setcolor#1{% \xdef\currentcolordefs{\gdef\noexpand\thiscolor{#1}}% \domark \pdfsetcolor{#1}% } % \def\maincolor{\rgbBlack} \pdfsetcolor{\maincolor} \edef\thiscolor{\maincolor} \def\currentcolordefs{} % \def\makefootline{% \baselineskip24pt \line{\pdfsetcolor{\maincolor}\the\footline}% } % \def\makeheadline{% \vbox to 0pt{% \vskip-22.5pt \line{% \vbox to8.5pt{}% % Extract \thiscolor definition from the marks. \getcolormarks % Typeset the headline with \maincolor, then restore the color. \pdfsetcolor{\maincolor}\the\headline\pdfsetcolor{\thiscolor}% }% \vss }% \nointerlineskip } % % \pdfcatalog{/PageMode /UseOutlines} % % #1 is image name, #2 width (might be empty/whitespace), #3 height (ditto). \def\dopdfimage#1#2#3{% \def\pdfimagewidth{#2}\setbox0 = \hbox{\ignorespaces #2}% \def\pdfimageheight{#3}\setbox2 = \hbox{\ignorespaces #3}% % % pdftex (and the PDF format) support .pdf, .png, .jpg (among % others). Let's try in that order, PDF first since if % someone has a scalable image, presumably better to use that than a % bitmap. \let\pdfimgext=\empty \begingroup \openin 1 #1.pdf \ifeof 1 \openin 1 #1.PDF \ifeof 1 \openin 1 #1.png \ifeof 1 \openin 1 #1.jpg \ifeof 1 \openin 1 #1.jpeg \ifeof 1 \openin 1 #1.JPG \ifeof 1 \errhelp = \nopdfimagehelp \errmessage{Could not find image file #1 for pdf}% \else \gdef\pdfimgext{JPG}% \fi \else \gdef\pdfimgext{jpeg}% \fi \else \gdef\pdfimgext{jpg}% \fi \else \gdef\pdfimgext{png}% \fi \else \gdef\pdfimgext{PDF}% \fi \else \gdef\pdfimgext{pdf}% \fi \closein 1 \endgroup % % without \immediate, ancient pdftex seg faults when the same image is % included twice. (Version 3.14159-pre-1.0-unofficial-20010704.) \ifnum\pdftexversion < 14 \immediate\pdfimage \else \immediate\pdfximage \fi \ifdim \wd0 >0pt width \pdfimagewidth \fi \ifdim \wd2 >0pt height \pdfimageheight \fi \ifnum\pdftexversion<13 #1.\pdfimgext \else {#1.\pdfimgext}% \fi \ifnum\pdftexversion < 14 \else \pdfrefximage \pdflastximage \fi} % \def\setpdfdestname#1{{% % We have to set dummies so commands such as @code, and characters % such as \, aren't expanded when present in a section title. \indexnofonts \makevalueexpandable \turnoffactive \iftxiuseunicodedestname \ifx \declaredencoding \latone % Pass through Latin-1 characters. % LuaTeX with byte wise I/O converts Latin-1 characters to Unicode. \else \ifx \declaredencoding \utfeight % Pass through Unicode characters. \else % Use ASCII approximations in destination names. \passthroughcharsfalse \fi \fi \else % Use ASCII approximations in destination names. \passthroughcharsfalse \fi \def\pdfdestname{#1}% \txiescapepdf\pdfdestname }} % \def\setpdfoutlinetext#1{{% \indexnofonts \makevalueexpandable \turnoffactive \ifx \declaredencoding \latone % The PDF format can use an extended form of Latin-1 in bookmark % strings. See Appendix D of the PDF Reference, Sixth Edition, for % the "PDFDocEncoding". \passthroughcharstrue % Pass through Latin-1 characters. % LuaTeX: Convert to Unicode % pdfTeX: Use Latin-1 as PDFDocEncoding \def\pdfoutlinetext{#1}% \else \ifx \declaredencoding \utfeight \ifx\luatexversion\thisisundefined % For pdfTeX with UTF-8. % TODO: the PDF format can use UTF-16 in bookmark strings, % but the code for this isn't done yet. % Use ASCII approximations. \passthroughcharsfalse \def\pdfoutlinetext{#1}% \else % For LuaTeX with UTF-8. % Pass through Unicode characters for title texts. \passthroughcharstrue \def\pdfoutlinetext{#1}% \fi \else % For non-Latin-1 or non-UTF-8 encodings. % Use ASCII approximations. \passthroughcharsfalse \def\pdfoutlinetext{#1}% \fi \fi % LuaTeX: Convert to UTF-16 % pdfTeX: Use Latin-1 as PDFDocEncoding \txiescapepdfutfsixteen\pdfoutlinetext }} % \def\pdfmkdest#1{% \setpdfdestname{#1}% \safewhatsit{\pdfdest name{\pdfdestname} xyz}% } % % used to mark target names; must be expandable. \def\pdfmkpgn#1{#1} % % by default, use black for everything. \def\urlcolor{\rgbBlack} \def\linkcolor{\rgbBlack} \def\endlink{\setcolor{\maincolor}\pdfendlink} % % Adding outlines to PDF; macros for calculating structure of outlines % come from Petr Olsak \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0% \else \csname#1\endcsname \fi} \def\advancenumber#1{\tempnum=\expnumber{#1}\relax \advance\tempnum by 1 \expandafter\xdef\csname#1\endcsname{\the\tempnum}} % % #1 is the section text, which is what will be displayed in the % outline by the pdf viewer. #2 is the pdf expression for the number % of subentries (or empty, for subsubsections). #3 is the node text, % which might be empty if this toc entry had no corresponding node. % #4 is the page number % \def\dopdfoutline#1#2#3#4{% % Generate a link to the node text if that exists; else, use the % page number. We could generate a destination for the section % text in the case where a section has no node, but it doesn't % seem worth the trouble, since most documents are normally structured. \setpdfoutlinetext{#1} \setpdfdestname{#3} \ifx\pdfdestname\empty \def\pdfdestname{#4}% \fi % \pdfoutline goto name{\pdfmkpgn{\pdfdestname}}#2{\pdfoutlinetext}% } % \def\pdfmakeoutlines{% \begingroup % Read toc silently, to get counts of subentries for \pdfoutline. \def\partentry##1##2##3##4{}% ignore parts in the outlines \def\numchapentry##1##2##3##4{% \def\thischapnum{##2}% \def\thissecnum{0}% \def\thissubsecnum{0}% }% \def\numsecentry##1##2##3##4{% \advancenumber{chap\thischapnum}% \def\thissecnum{##2}% \def\thissubsecnum{0}% }% \def\numsubsecentry##1##2##3##4{% \advancenumber{sec\thissecnum}% \def\thissubsecnum{##2}% }% \def\numsubsubsecentry##1##2##3##4{% \advancenumber{subsec\thissubsecnum}% }% \def\thischapnum{0}% \def\thissecnum{0}% \def\thissubsecnum{0}% % % use \def rather than \let here because we redefine \chapentry et % al. a second time, below. \def\appentry{\numchapentry}% \def\appsecentry{\numsecentry}% \def\appsubsecentry{\numsubsecentry}% \def\appsubsubsecentry{\numsubsubsecentry}% \def\unnchapentry{\numchapentry}% \def\unnsecentry{\numsecentry}% \def\unnsubsecentry{\numsubsecentry}% \def\unnsubsubsecentry{\numsubsubsecentry}% \readdatafile{toc}% % % Read toc second time, this time actually producing the outlines. % The `-' means take the \expnumber as the absolute number of % subentries, which we calculated on our first read of the .toc above. % % We use the node names as the destinations. % % Currently we prefix the section name with the section number % for chapter and appendix headings only in order to avoid too much % horizontal space being required in the PDF viewer. \def\numchapentry##1##2##3##4{% \dopdfoutline{##2 ##1}{count-\expnumber{chap##2}}{##3}{##4}}% \def\unnchapentry##1##2##3##4{% \dopdfoutline{##1}{count-\expnumber{chap##2}}{##3}{##4}}% \def\numsecentry##1##2##3##4{% \dopdfoutline{##1}{count-\expnumber{sec##2}}{##3}{##4}}% \def\numsubsecentry##1##2##3##4{% \dopdfoutline{##1}{count-\expnumber{subsec##2}}{##3}{##4}}% \def\numsubsubsecentry##1##2##3##4{% count is always zero \dopdfoutline{##1}{}{##3}{##4}}% % % PDF outlines are displayed using system fonts, instead of % document fonts. Therefore we cannot use special characters, % since the encoding is unknown. For example, the eogonek from % Latin 2 (0xea) gets translated to a | character. Info from % Staszek Wawrykiewicz, 19 Jan 2004 04:09:24 +0100. % % TODO this right, we have to translate 8-bit characters to % their "best" equivalent, based on the @documentencoding. Too % much work for too little return. Just use the ASCII equivalents % we use for the index sort strings. % \indexnofonts \setupdatafile % We can have normal brace characters in the PDF outlines, unlike % Texinfo index files. So set that up. \def\{{\lbracecharliteral}% \def\}{\rbracecharliteral}% \catcode`\\=\active \otherbackslash \input \tocreadfilename \endgroup } {\catcode`[=1 \catcode`]=2 \catcode`{=\other \catcode`}=\other \gdef\lbracecharliteral[{]% \gdef\rbracecharliteral[}]% ] % \def\skipspaces#1{\def\PP{#1}\def\D{|}% \ifx\PP\D\let\nextsp\relax \else\let\nextsp\skipspaces \addtokens{\filename}{\PP}% \advance\filenamelength by 1 \fi \nextsp} \def\getfilename#1{% \filenamelength=0 % If we don't expand the argument now, \skipspaces will get % snagged on things like "@value{foo}". \edef\temp{#1}% \expandafter\skipspaces\temp|\relax } \ifnum\pdftexversion < 14 \let \startlink \pdfannotlink \else \let \startlink \pdfstartlink \fi % make a live url in pdf output. \def\pdfurl#1{% \begingroup % it seems we really need yet another set of dummies; have not % tried to figure out what each command should do in the context % of @url. for now, just make @/ a no-op, that's the only one % people have actually reported a problem with. % \normalturnoffactive \def\@{@}% \let\/=\empty \makevalueexpandable % do we want to go so far as to use \indexnofonts instead of just % special-casing \var here? \def\var##1{##1}% % \leavevmode\setcolor{\urlcolor}% \startlink attr{/Border [0 0 0]}% user{/Subtype /Link /A << /S /URI /URI (#1) >>}% \endgroup} % \pdfgettoks - Surround page numbers in #1 with @pdflink. #1 may % be a simple number, or a list of numbers in the case of an index % entry. \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}} \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks} \def\poptoks#1#2|ENDTOKS|{\let\first=#1\toksD={#1}\toksA={#2}} \def\maketoks{% \expandafter\poptoks\the\toksA|ENDTOKS|\relax \ifx\first0\adn0 \else\ifx\first1\adn1 \else\ifx\first2\adn2 \else\ifx\first3\adn3 \else\ifx\first4\adn4 \else\ifx\first5\adn5 \else\ifx\first6\adn6 \else\ifx\first7\adn7 \else\ifx\first8\adn8 \else\ifx\first9\adn9 \else \ifnum0=\countA\else\makelink\fi \ifx\first.\let\next=\done\else \let\next=\maketoks \addtokens{\toksB}{\the\toksD} \ifx\first,\addtokens{\toksB}{\space}\fi \fi \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \next} \def\makelink{\addtokens{\toksB}% {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0} \def\pdflink#1{% \startlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{#1}} \setcolor{\linkcolor}#1\endlink} \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st} \else % non-pdf mode \let\pdfmkdest = \gobble \let\pdfurl = \gobble \let\endlink = \relax \let\setcolor = \gobble \let\pdfsetcolor = \gobble \let\pdfmakeoutlines = \relax \fi % \ifx\pdfoutput % % For XeTeX % \ifx\XeTeXrevision\thisisundefined \else % % XeTeX version check % \ifnum\strcmp{\the\XeTeXversion\XeTeXrevision}{0.99996}>-1 % TeX Live 2016 contains XeTeX 0.99996 and xdvipdfmx 20160307. % It can use the `dvipdfmx:config' special (from TeX Live SVN r40941). % For avoiding PDF destination name replacement, we use this special % instead of xdvipdfmx's command line option `-C 0x0010'. \special{dvipdfmx:config C 0x0010} % XeTeX 0.99995+ comes with xdvipdfmx 20160307+. % It can handle Unicode destination names for PDF. \txiuseunicodedestnametrue \else % XeTeX < 0.99996 (TeX Live < 2016) cannot use the % `dvipdfmx:config' special. % So for avoiding PDF destination name replacement, % xdvipdfmx's command line option `-C 0x0010' is necessary. % % XeTeX < 0.99995 can not handle Unicode destination names for PDF % because xdvipdfmx 20150315 has a UTF-16 conversion issue. % It is fixed by xdvipdfmx 20160106 (TeX Live SVN r39753). \txiuseunicodedestnamefalse \fi % % Color support % \def\rgbDarkRed{0.50 0.09 0.12} \def\rgbBlack{0 0 0} % \def\pdfsetcolor#1{\special{pdf:scolor [#1]}} % % Set color, and create a mark which defines \thiscolor accordingly, % so that \makeheadline knows which color to restore. \def\setcolor#1{% \xdef\currentcolordefs{\gdef\noexpand\thiscolor{#1}}% \domark \pdfsetcolor{#1}% } % \def\maincolor{\rgbBlack} \pdfsetcolor{\maincolor} \edef\thiscolor{\maincolor} \def\currentcolordefs{} % \def\makefootline{% \baselineskip24pt \line{\pdfsetcolor{\maincolor}\the\footline}% } % \def\makeheadline{% \vbox to 0pt{% \vskip-22.5pt \line{% \vbox to8.5pt{}% % Extract \thiscolor definition from the marks. \getcolormarks % Typeset the headline with \maincolor, then restore the color. \pdfsetcolor{\maincolor}\the\headline\pdfsetcolor{\thiscolor}% }% \vss }% \nointerlineskip } % % PDF outline support % % Emulate pdfTeX primitive \def\pdfdest name#1 xyz{% \special{pdf:dest (#1) [@thispage /XYZ @xpos @ypos null]}% } % \def\setpdfdestname#1{{% % We have to set dummies so commands such as @code, and characters % such as \, aren't expanded when present in a section title. \indexnofonts \makevalueexpandable \turnoffactive \iftxiuseunicodedestname % Pass through Unicode characters. \else % Use ASCII approximations in destination names. \passthroughcharsfalse \fi \def\pdfdestname{#1}% \txiescapepdf\pdfdestname }} % \def\setpdfoutlinetext#1{{% \turnoffactive % Always use Unicode characters in title texts. \def\pdfoutlinetext{#1}% % For XeTeX, xdvipdfmx converts to UTF-16. % So we do not convert. \txiescapepdf\pdfoutlinetext }} % \def\pdfmkdest#1{% \setpdfdestname{#1}% \safewhatsit{\pdfdest name{\pdfdestname} xyz}% } % % by default, use black for everything. \def\urlcolor{\rgbBlack} \def\linkcolor{\rgbBlack} \def\endlink{\setcolor{\maincolor}\pdfendlink} % \def\dopdfoutline#1#2#3#4{% \setpdfoutlinetext{#1} \setpdfdestname{#3} \ifx\pdfdestname\empty \def\pdfdestname{#4}% \fi % \special{pdf:out [-] #2 << /Title (\pdfoutlinetext) /A << /S /GoTo /D (\pdfdestname) >> >> }% } % \def\pdfmakeoutlines{% \begingroup % % For XeTeX, counts of subentries are not necessary. % Therefore, we read toc only once. % % We use node names as destinations. % % Currently we prefix the section name with the section number % for chapter and appendix headings only in order to avoid too much % horizontal space being required in the PDF viewer. \def\partentry##1##2##3##4{}% ignore parts in the outlines \def\numchapentry##1##2##3##4{% \dopdfoutline{##2 ##1}{1}{##3}{##4}}% \def\numsecentry##1##2##3##4{% \dopdfoutline{##1}{2}{##3}{##4}}% \def\numsubsecentry##1##2##3##4{% \dopdfoutline{##1}{3}{##3}{##4}}% \def\numsubsubsecentry##1##2##3##4{% \dopdfoutline{##1}{4}{##3}{##4}}% % \let\appentry\numchapentry% \let\appsecentry\numsecentry% \let\appsubsecentry\numsubsecentry% \let\appsubsubsecentry\numsubsubsecentry% \def\unnchapentry##1##2##3##4{% \dopdfoutline{##1}{1}{##3}{##4}}% \let\unnsecentry\numsecentry% \let\unnsubsecentry\numsubsecentry% \let\unnsubsubsecentry\numsubsubsecentry% % % For XeTeX, xdvipdfmx converts strings to UTF-16. % Therefore, the encoding and the language may not be considered. % \indexnofonts \setupdatafile % We can have normal brace characters in the PDF outlines, unlike % Texinfo index files. So set that up. \def\{{\lbracecharliteral}% \def\}{\rbracecharliteral}% \catcode`\\=\active \otherbackslash \input \tocreadfilename \endgroup } {\catcode`[=1 \catcode`]=2 \catcode`{=\other \catcode`}=\other \gdef\lbracecharliteral[{]% \gdef\rbracecharliteral[}]% ] \special{pdf:docview << /PageMode /UseOutlines >> } % ``\special{pdf:tounicode ...}'' is not necessary % because xdvipdfmx converts strings from UTF-8 to UTF-16 without it. % However, due to a UTF-16 conversion issue of xdvipdfmx 20150315, % ``\special{pdf:dest ...}'' cannot handle non-ASCII strings. % It is fixed by xdvipdfmx 20160106 (TeX Live SVN r39753). % \def\skipspaces#1{\def\PP{#1}\def\D{|}% \ifx\PP\D\let\nextsp\relax \else\let\nextsp\skipspaces \addtokens{\filename}{\PP}% \advance\filenamelength by 1 \fi \nextsp} \def\getfilename#1{% \filenamelength=0 % If we don't expand the argument now, \skipspaces will get % snagged on things like "@value{foo}". \edef\temp{#1}% \expandafter\skipspaces\temp|\relax } % make a live url in pdf output. \def\pdfurl#1{% \begingroup % it seems we really need yet another set of dummies; have not % tried to figure out what each command should do in the context % of @url. for now, just make @/ a no-op, that's the only one % people have actually reported a problem with. % \normalturnoffactive \def\@{@}% \let\/=\empty \makevalueexpandable % do we want to go so far as to use \indexnofonts instead of just % special-casing \var here? \def\var##1{##1}% % \leavevmode\setcolor{\urlcolor}% \special{pdf:bann << /Border [0 0 0] /Subtype /Link /A << /S /URI /URI (#1) >> >>}% \endgroup} \def\endlink{\setcolor{\maincolor}\special{pdf:eann}} \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}} \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks} \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks} \def\poptoks#1#2|ENDTOKS|{\let\first=#1\toksD={#1}\toksA={#2}} \def\maketoks{% \expandafter\poptoks\the\toksA|ENDTOKS|\relax \ifx\first0\adn0 \else\ifx\first1\adn1 \else\ifx\first2\adn2 \else\ifx\first3\adn3 \else\ifx\first4\adn4 \else\ifx\first5\adn5 \else\ifx\first6\adn6 \else\ifx\first7\adn7 \else\ifx\first8\adn8 \else\ifx\first9\adn9 \else \ifnum0=\countA\else\makelink\fi \ifx\first.\let\next=\done\else \let\next=\maketoks \addtokens{\toksB}{\the\toksD} \ifx\first,\addtokens{\toksB}{\space}\fi \fi \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \next} \def\makelink{\addtokens{\toksB}% {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0} \def\pdflink#1{% \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A << /S /GoTo /D (#1) >> >>}% \setcolor{\linkcolor}#1\endlink} \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st} % % % @image support % % #1 is image name, #2 width (might be empty/whitespace), #3 height (ditto). \def\doxeteximage#1#2#3{% \def\xeteximagewidth{#2}\setbox0 = \hbox{\ignorespaces #2}% \def\xeteximageheight{#3}\setbox2 = \hbox{\ignorespaces #3}% % % XeTeX (and the PDF format) supports .pdf, .png, .jpg (among % others). Let's try in that order, PDF first since if % someone has a scalable image, presumably better to use that than a % bitmap. \let\xeteximgext=\empty \begingroup \openin 1 #1.pdf \ifeof 1 \openin 1 #1.PDF \ifeof 1 \openin 1 #1.png \ifeof 1 \openin 1 #1.jpg \ifeof 1 \openin 1 #1.jpeg \ifeof 1 \openin 1 #1.JPG \ifeof 1 \errmessage{Could not find image file #1 for XeTeX}% \else \gdef\xeteximgext{JPG}% \fi \else \gdef\xeteximgext{jpeg}% \fi \else \gdef\xeteximgext{jpg}% \fi \else \gdef\xeteximgext{png}% \fi \else \gdef\xeteximgext{PDF}% \fi \else \gdef\xeteximgext{pdf}% \fi \closein 1 \endgroup % % Putting an \hbox around the image can prevent an over-long line % after the image. \hbox\bgroup \def\xetexpdfext{pdf}% \ifx\xeteximgext\xetexpdfext \XeTeXpdffile "#1".\xeteximgext "" \else \def\xetexpdfext{PDF}% \ifx\xeteximgext\xetexpdfext \XeTeXpdffile "#1".\xeteximgext "" \else \XeTeXpicfile "#1".\xeteximgext "" \fi \fi \ifdim \wd0 >0pt width \xeteximagewidth \fi \ifdim \wd2 >0pt height \xeteximageheight \fi \relax \egroup } \fi % \message{fonts,} % Set the baselineskip to #1, and the lineskip and strut size % correspondingly. There is no deep meaning behind these magic numbers % used as factors; they just match (closely enough) what Knuth defined. % \def\lineskipfactor{.08333} \def\strutheightpercent{.70833} \def\strutdepthpercent {.29167} % % can get a sort of poor man's double spacing by redefining this. \def\baselinefactor{1} % \newdimen\textleading \def\setleading#1{% \dimen0 = #1\relax \normalbaselineskip = \baselinefactor\dimen0 \normallineskip = \lineskipfactor\normalbaselineskip \normalbaselines \setbox\strutbox =\hbox{% \vrule width0pt height\strutheightpercent\baselineskip depth \strutdepthpercent \baselineskip }% } % PDF CMaps. See also LaTeX's t1.cmap. % % do nothing with this by default. \expandafter\let\csname cmapOT1\endcsname\gobble \expandafter\let\csname cmapOT1IT\endcsname\gobble \expandafter\let\csname cmapOT1TT\endcsname\gobble % if we are producing pdf, and we have \pdffontattr, then define cmaps. % (\pdffontattr was introduced many years ago, but people still run % older pdftex's; it's easy to conditionalize, so we do.) \ifpdf \ifx\pdffontattr\thisisundefined \else \begingroup \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char. \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%IncludeResource: ProcSet (CIDInit) %%BeginResource: CMap (TeX-OT1-0) %%Title: (TeX-OT1-0 TeX OT1 0) %%Version: 1.000 %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (OT1) /Supplement 0 >> def /CMapName /TeX-OT1-0 def /CMapType 2 def 1 begincodespacerange <00> <7F> endcodespacerange 8 beginbfrange <00> <01> <0393> <09> <0A> <03A8> <23> <26> <0023> <28> <3B> <0028> <3F> <5B> <003F> <5D> <5E> <005D> <61> <7A> <0061> <7B> <7C> <2013> endbfrange 40 beginbfchar <02> <0398> <03> <039B> <04> <039E> <05> <03A0> <06> <03A3> <07> <03D2> <08> <03A6> <0B> <00660066> <0C> <00660069> <0D> <0066006C> <0E> <006600660069> <0F> <00660066006C> <10> <0131> <11> <0237> <12> <0060> <13> <00B4> <14> <02C7> <15> <02D8> <16> <00AF> <17> <02DA> <18> <00B8> <19> <00DF> <1A> <00E6> <1B> <0153> <1C> <00F8> <1D> <00C6> <1E> <0152> <1F> <00D8> <21> <0021> <22> <201D> <27> <2019> <3C> <00A1> <3D> <003D> <3E> <00BF> <5C> <201C> <5F> <02D9> <60> <2018> <7D> <02DD> <7E> <007E> <7F> <00A8> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF }\endgroup \expandafter\edef\csname cmapOT1\endcsname#1{% \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}% }% % % \cmapOT1IT \begingroup \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char. \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%IncludeResource: ProcSet (CIDInit) %%BeginResource: CMap (TeX-OT1IT-0) %%Title: (TeX-OT1IT-0 TeX OT1IT 0) %%Version: 1.000 %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (OT1IT) /Supplement 0 >> def /CMapName /TeX-OT1IT-0 def /CMapType 2 def 1 begincodespacerange <00> <7F> endcodespacerange 8 beginbfrange <00> <01> <0393> <09> <0A> <03A8> <25> <26> <0025> <28> <3B> <0028> <3F> <5B> <003F> <5D> <5E> <005D> <61> <7A> <0061> <7B> <7C> <2013> endbfrange 42 beginbfchar <02> <0398> <03> <039B> <04> <039E> <05> <03A0> <06> <03A3> <07> <03D2> <08> <03A6> <0B> <00660066> <0C> <00660069> <0D> <0066006C> <0E> <006600660069> <0F> <00660066006C> <10> <0131> <11> <0237> <12> <0060> <13> <00B4> <14> <02C7> <15> <02D8> <16> <00AF> <17> <02DA> <18> <00B8> <19> <00DF> <1A> <00E6> <1B> <0153> <1C> <00F8> <1D> <00C6> <1E> <0152> <1F> <00D8> <21> <0021> <22> <201D> <23> <0023> <24> <00A3> <27> <2019> <3C> <00A1> <3D> <003D> <3E> <00BF> <5C> <201C> <5F> <02D9> <60> <2018> <7D> <02DD> <7E> <007E> <7F> <00A8> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF }\endgroup \expandafter\edef\csname cmapOT1IT\endcsname#1{% \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}% }% % % \cmapOT1TT \begingroup \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char. \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%IncludeResource: ProcSet (CIDInit) %%BeginResource: CMap (TeX-OT1TT-0) %%Title: (TeX-OT1TT-0 TeX OT1TT 0) %%Version: 1.000 %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (OT1TT) /Supplement 0 >> def /CMapName /TeX-OT1TT-0 def /CMapType 2 def 1 begincodespacerange <00> <7F> endcodespacerange 5 beginbfrange <00> <01> <0393> <09> <0A> <03A8> <21> <26> <0021> <28> <5F> <0028> <61> <7E> <0061> endbfrange 32 beginbfchar <02> <0398> <03> <039B> <04> <039E> <05> <03A0> <06> <03A3> <07> <03D2> <08> <03A6> <0B> <2191> <0C> <2193> <0D> <0027> <0E> <00A1> <0F> <00BF> <10> <0131> <11> <0237> <12> <0060> <13> <00B4> <14> <02C7> <15> <02D8> <16> <00AF> <17> <02DA> <18> <00B8> <19> <00DF> <1A> <00E6> <1B> <0153> <1C> <00F8> <1D> <00C6> <1E> <0152> <1F> <00D8> <20> <2423> <27> <2019> <60> <2018> <7F> <00A8> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF }\endgroup \expandafter\edef\csname cmapOT1TT\endcsname#1{% \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}% }% \fi\fi % Set the font macro #1 to the font named \fontprefix#2. % #3 is the font's design size, #4 is a scale factor, #5 is the CMap % encoding (only OT1, OT1IT and OT1TT are allowed, or empty to omit). % Example: % #1 = \textrm % #2 = \rmshape % #3 = 10 % #4 = \mainmagstep % #5 = OT1 % \def\setfont#1#2#3#4#5{% \font#1=\fontprefix#2#3 scaled #4 \csname cmap#5\endcsname#1% } % This is what gets called when #5 of \setfont is empty. \let\cmap\gobble % % (end of cmaps) % Use cm as the default font prefix. % To specify the font prefix, you must define \fontprefix % before you read in texinfo.tex. \ifx\fontprefix\thisisundefined \def\fontprefix{cm} \fi % Support font families that don't use the same naming scheme as CM. \def\rmshape{r} \def\rmbshape{bx} % where the normal face is bold \def\bfshape{b} \def\bxshape{bx} \def\ttshape{tt} \def\ttbshape{tt} \def\ttslshape{sltt} \def\itshape{ti} \def\itbshape{bxti} \def\slshape{sl} \def\slbshape{bxsl} \def\sfshape{ss} \def\sfbshape{ss} \def\scshape{csc} \def\scbshape{csc} % Definitions for a main text size of 11pt. (The default in Texinfo.) % \def\definetextfontsizexi{% % Text fonts (11.2pt, magstep1). \def\textnominalsize{11pt} \edef\mainmagstep{\magstephalf} \setfont\textrm\rmshape{10}{\mainmagstep}{OT1} \setfont\texttt\ttshape{10}{\mainmagstep}{OT1TT} \setfont\textbf\bfshape{10}{\mainmagstep}{OT1} \setfont\textit\itshape{10}{\mainmagstep}{OT1IT} \setfont\textsl\slshape{10}{\mainmagstep}{OT1} \setfont\textsf\sfshape{10}{\mainmagstep}{OT1} \setfont\textsc\scshape{10}{\mainmagstep}{OT1} \setfont\textttsl\ttslshape{10}{\mainmagstep}{OT1TT} \font\texti=cmmi10 scaled \mainmagstep \font\textsy=cmsy10 scaled \mainmagstep \def\textecsize{1095} % A few fonts for @defun names and args. \setfont\defbf\bfshape{10}{\magstep1}{OT1} \setfont\deftt\ttshape{10}{\magstep1}{OT1TT} \setfont\defsl\slshape{10}{\magstep1}{OT1} \setfont\defttsl\ttslshape{10}{\magstep1}{OT1TT} \def\df{\let\ttfont=\deftt \let\bffont = \defbf \let\ttslfont=\defttsl \let\slfont=\defsl \bf} % Fonts for indices, footnotes, small examples (9pt). \def\smallnominalsize{9pt} \setfont\smallrm\rmshape{9}{1000}{OT1} \setfont\smalltt\ttshape{9}{1000}{OT1TT} \setfont\smallbf\bfshape{10}{900}{OT1} \setfont\smallit\itshape{9}{1000}{OT1IT} \setfont\smallsl\slshape{9}{1000}{OT1} \setfont\smallsf\sfshape{9}{1000}{OT1} \setfont\smallsc\scshape{10}{900}{OT1} \setfont\smallttsl\ttslshape{10}{900}{OT1TT} \font\smalli=cmmi9 \font\smallsy=cmsy9 \def\smallecsize{0900} % Fonts for small examples (8pt). \def\smallernominalsize{8pt} \setfont\smallerrm\rmshape{8}{1000}{OT1} \setfont\smallertt\ttshape{8}{1000}{OT1TT} \setfont\smallerbf\bfshape{10}{800}{OT1} \setfont\smallerit\itshape{8}{1000}{OT1IT} \setfont\smallersl\slshape{8}{1000}{OT1} \setfont\smallersf\sfshape{8}{1000}{OT1} \setfont\smallersc\scshape{10}{800}{OT1} \setfont\smallerttsl\ttslshape{10}{800}{OT1TT} \font\smalleri=cmmi8 \font\smallersy=cmsy8 \def\smallerecsize{0800} % Fonts for math mode superscripts (7pt). \def\sevennominalsize{7pt} \setfont\sevenrm\rmshape{7}{1000}{OT1} \setfont\seventt\ttshape{10}{700}{OT1TT} \setfont\sevenbf\bfshape{10}{700}{OT1} \setfont\sevenit\itshape{7}{1000}{OT1IT} \setfont\sevensl\slshape{10}{700}{OT1} \setfont\sevensf\sfshape{10}{700}{OT1} \setfont\sevensc\scshape{10}{700}{OT1} \setfont\seventtsl\ttslshape{10}{700}{OT1TT} \font\seveni=cmmi7 \font\sevensy=cmsy7 \def\sevenecsize{0700} % Fonts for title page (20.4pt): \def\titlenominalsize{20pt} \setfont\titlerm\rmbshape{12}{\magstep3}{OT1} \setfont\titleit\itbshape{10}{\magstep4}{OT1IT} \setfont\titlesl\slbshape{10}{\magstep4}{OT1} \setfont\titlett\ttbshape{12}{\magstep3}{OT1TT} \setfont\titlettsl\ttslshape{10}{\magstep4}{OT1TT} \setfont\titlesf\sfbshape{17}{\magstep1}{OT1} \let\titlebf=\titlerm \setfont\titlesc\scbshape{10}{\magstep4}{OT1} \font\titlei=cmmi12 scaled \magstep3 \font\titlesy=cmsy10 scaled \magstep4 \def\titleecsize{2074} % Chapter (and unnumbered) fonts (17.28pt). \def\chapnominalsize{17pt} \setfont\chaprm\rmbshape{12}{\magstep2}{OT1} \setfont\chapit\itbshape{10}{\magstep3}{OT1IT} \setfont\chapsl\slbshape{10}{\magstep3}{OT1} \setfont\chaptt\ttbshape{12}{\magstep2}{OT1TT} \setfont\chapttsl\ttslshape{10}{\magstep3}{OT1TT} \setfont\chapsf\sfbshape{17}{1000}{OT1} \let\chapbf=\chaprm \setfont\chapsc\scbshape{10}{\magstep3}{OT1} \font\chapi=cmmi12 scaled \magstep2 \font\chapsy=cmsy10 scaled \magstep3 \def\chapecsize{1728} % Section fonts (14.4pt). \def\secnominalsize{14pt} \setfont\secrm\rmbshape{12}{\magstep1}{OT1} \setfont\secrmnotbold\rmshape{12}{\magstep1}{OT1} \setfont\secit\itbshape{10}{\magstep2}{OT1IT} \setfont\secsl\slbshape{10}{\magstep2}{OT1} \setfont\sectt\ttbshape{12}{\magstep1}{OT1TT} \setfont\secttsl\ttslshape{10}{\magstep2}{OT1TT} \setfont\secsf\sfbshape{12}{\magstep1}{OT1} \let\secbf\secrm \setfont\secsc\scbshape{10}{\magstep2}{OT1} \font\seci=cmmi12 scaled \magstep1 \font\secsy=cmsy10 scaled \magstep2 \def\sececsize{1440} % Subsection fonts (13.15pt). \def\ssecnominalsize{13pt} \setfont\ssecrm\rmbshape{12}{\magstephalf}{OT1} \setfont\ssecit\itbshape{10}{1315}{OT1IT} \setfont\ssecsl\slbshape{10}{1315}{OT1} \setfont\ssectt\ttbshape{12}{\magstephalf}{OT1TT} \setfont\ssecttsl\ttslshape{10}{1315}{OT1TT} \setfont\ssecsf\sfbshape{12}{\magstephalf}{OT1} \let\ssecbf\ssecrm \setfont\ssecsc\scbshape{10}{1315}{OT1} \font\sseci=cmmi12 scaled \magstephalf \font\ssecsy=cmsy10 scaled 1315 \def\ssececsize{1200} % Reduced fonts for @acronym in text (10pt). \def\reducednominalsize{10pt} \setfont\reducedrm\rmshape{10}{1000}{OT1} \setfont\reducedtt\ttshape{10}{1000}{OT1TT} \setfont\reducedbf\bfshape{10}{1000}{OT1} \setfont\reducedit\itshape{10}{1000}{OT1IT} \setfont\reducedsl\slshape{10}{1000}{OT1} \setfont\reducedsf\sfshape{10}{1000}{OT1} \setfont\reducedsc\scshape{10}{1000}{OT1} \setfont\reducedttsl\ttslshape{10}{1000}{OT1TT} \font\reducedi=cmmi10 \font\reducedsy=cmsy10 \def\reducedecsize{1000} \textleading = 13.2pt % line spacing for 11pt CM \textfonts % reset the current fonts \rm } % end of 11pt text font size definitions, \definetextfontsizexi % Definitions to make the main text be 10pt Computer Modern, with % section, chapter, etc., sizes following suit. This is for the GNU % Press printing of the Emacs 22 manual. Maybe other manuals in the % future. Used with @smallbook, which sets the leading to 12pt. % \def\definetextfontsizex{% % Text fonts (10pt). \def\textnominalsize{10pt} \edef\mainmagstep{1000} \setfont\textrm\rmshape{10}{\mainmagstep}{OT1} \setfont\texttt\ttshape{10}{\mainmagstep}{OT1TT} \setfont\textbf\bfshape{10}{\mainmagstep}{OT1} \setfont\textit\itshape{10}{\mainmagstep}{OT1IT} \setfont\textsl\slshape{10}{\mainmagstep}{OT1} \setfont\textsf\sfshape{10}{\mainmagstep}{OT1} \setfont\textsc\scshape{10}{\mainmagstep}{OT1} \setfont\textttsl\ttslshape{10}{\mainmagstep}{OT1TT} \font\texti=cmmi10 scaled \mainmagstep \font\textsy=cmsy10 scaled \mainmagstep \def\textecsize{1000} % A few fonts for @defun names and args. \setfont\defbf\bfshape{10}{\magstephalf}{OT1} \setfont\deftt\ttshape{10}{\magstephalf}{OT1TT} \setfont\defsl\slshape{10}{\magstephalf}{OT1} \setfont\defttsl\ttslshape{10}{\magstephalf}{OT1TT} \def\df{\let\ttfont=\deftt \let\bffont = \defbf \let\slfont=\defsl \let\ttslfont=\defttsl \bf} % Fonts for indices, footnotes, small examples (9pt). \def\smallnominalsize{9pt} \setfont\smallrm\rmshape{9}{1000}{OT1} \setfont\smalltt\ttshape{9}{1000}{OT1TT} \setfont\smallbf\bfshape{10}{900}{OT1} \setfont\smallit\itshape{9}{1000}{OT1IT} \setfont\smallsl\slshape{9}{1000}{OT1} \setfont\smallsf\sfshape{9}{1000}{OT1} \setfont\smallsc\scshape{10}{900}{OT1} \setfont\smallttsl\ttslshape{10}{900}{OT1TT} \font\smalli=cmmi9 \font\smallsy=cmsy9 \def\smallecsize{0900} % Fonts for small examples (8pt). \def\smallernominalsize{8pt} \setfont\smallerrm\rmshape{8}{1000}{OT1} \setfont\smallertt\ttshape{8}{1000}{OT1TT} \setfont\smallerbf\bfshape{10}{800}{OT1} \setfont\smallerit\itshape{8}{1000}{OT1IT} \setfont\smallersl\slshape{8}{1000}{OT1} \setfont\smallersf\sfshape{8}{1000}{OT1} \setfont\smallersc\scshape{10}{800}{OT1} \setfont\smallerttsl\ttslshape{10}{800}{OT1TT} \font\smalleri=cmmi8 \font\smallersy=cmsy8 \def\smallerecsize{0800} % Fonts for math mode superscripts (7pt). \def\sevennominalsize{7pt} \setfont\sevenrm\rmshape{7}{1000}{OT1} \setfont\seventt\ttshape{10}{700}{OT1TT} \setfont\sevenbf\bfshape{10}{700}{OT1} \setfont\sevenit\itshape{7}{1000}{OT1IT} \setfont\sevensl\slshape{10}{700}{OT1} \setfont\sevensf\sfshape{10}{700}{OT1} \setfont\sevensc\scshape{10}{700}{OT1} \setfont\seventtsl\ttslshape{10}{700}{OT1TT} \font\seveni=cmmi7 \font\sevensy=cmsy7 \def\sevenecsize{0700} % Fonts for title page (20.4pt): \def\titlenominalsize{20pt} \setfont\titlerm\rmbshape{12}{\magstep3}{OT1} \setfont\titleit\itbshape{10}{\magstep4}{OT1IT} \setfont\titlesl\slbshape{10}{\magstep4}{OT1} \setfont\titlett\ttbshape{12}{\magstep3}{OT1TT} \setfont\titlettsl\ttslshape{10}{\magstep4}{OT1TT} \setfont\titlesf\sfbshape{17}{\magstep1}{OT1} \let\titlebf=\titlerm \setfont\titlesc\scbshape{10}{\magstep4}{OT1} \font\titlei=cmmi12 scaled \magstep3 \font\titlesy=cmsy10 scaled \magstep4 \def\titleecsize{2074} % Chapter fonts (14.4pt). \def\chapnominalsize{14pt} \setfont\chaprm\rmbshape{12}{\magstep1}{OT1} \setfont\chapit\itbshape{10}{\magstep2}{OT1IT} \setfont\chapsl\slbshape{10}{\magstep2}{OT1} \setfont\chaptt\ttbshape{12}{\magstep1}{OT1TT} \setfont\chapttsl\ttslshape{10}{\magstep2}{OT1TT} \setfont\chapsf\sfbshape{12}{\magstep1}{OT1} \let\chapbf\chaprm \setfont\chapsc\scbshape{10}{\magstep2}{OT1} \font\chapi=cmmi12 scaled \magstep1 \font\chapsy=cmsy10 scaled \magstep2 \def\chapecsize{1440} % Section fonts (12pt). \def\secnominalsize{12pt} \setfont\secrm\rmbshape{12}{1000}{OT1} \setfont\secit\itbshape{10}{\magstep1}{OT1IT} \setfont\secsl\slbshape{10}{\magstep1}{OT1} \setfont\sectt\ttbshape{12}{1000}{OT1TT} \setfont\secttsl\ttslshape{10}{\magstep1}{OT1TT} \setfont\secsf\sfbshape{12}{1000}{OT1} \let\secbf\secrm \setfont\secsc\scbshape{10}{\magstep1}{OT1} \font\seci=cmmi12 \font\secsy=cmsy10 scaled \magstep1 \def\sececsize{1200} % Subsection fonts (10pt). \def\ssecnominalsize{10pt} \setfont\ssecrm\rmbshape{10}{1000}{OT1} \setfont\ssecit\itbshape{10}{1000}{OT1IT} \setfont\ssecsl\slbshape{10}{1000}{OT1} \setfont\ssectt\ttbshape{10}{1000}{OT1TT} \setfont\ssecttsl\ttslshape{10}{1000}{OT1TT} \setfont\ssecsf\sfbshape{10}{1000}{OT1} \let\ssecbf\ssecrm \setfont\ssecsc\scbshape{10}{1000}{OT1} \font\sseci=cmmi10 \font\ssecsy=cmsy10 \def\ssececsize{1000} % Reduced fonts for @acronym in text (9pt). \def\reducednominalsize{9pt} \setfont\reducedrm\rmshape{9}{1000}{OT1} \setfont\reducedtt\ttshape{9}{1000}{OT1TT} \setfont\reducedbf\bfshape{10}{900}{OT1} \setfont\reducedit\itshape{9}{1000}{OT1IT} \setfont\reducedsl\slshape{9}{1000}{OT1} \setfont\reducedsf\sfshape{9}{1000}{OT1} \setfont\reducedsc\scshape{10}{900}{OT1} \setfont\reducedttsl\ttslshape{10}{900}{OT1TT} \font\reducedi=cmmi9 \font\reducedsy=cmsy9 \def\reducedecsize{0900} \divide\parskip by 2 % reduce space between paragraphs \textleading = 12pt % line spacing for 10pt CM \textfonts % reset the current fonts \rm } % end of 10pt text font size definitions, \definetextfontsizex % Fonts for short table of contents. \setfont\shortcontrm\rmshape{12}{1000}{OT1} \setfont\shortcontbf\bfshape{10}{\magstep1}{OT1} % no cmb12 \setfont\shortcontsl\slshape{12}{1000}{OT1} \setfont\shortconttt\ttshape{12}{1000}{OT1TT} % We provide the user-level command % @fonttextsize 10 % (or 11) to redefine the text font size. pt is assumed. % \def\xiword{11} \def\xword{10} \def\xwordpt{10pt} % \parseargdef\fonttextsize{% \def\textsizearg{#1}% %\wlog{doing @fonttextsize \textsizearg}% % % Set \globaldefs so that documents can use this inside @tex, since % makeinfo 4.8 does not support it, but we need it nonetheless. % \begingroup \globaldefs=1 \ifx\textsizearg\xword \definetextfontsizex \else \ifx\textsizearg\xiword \definetextfontsizexi \else \errhelp=\EMsimple \errmessage{@fonttextsize only supports `10' or `11', not `\textsizearg'} \fi\fi \endgroup } % % Change the current font style to #1, remembering it in \curfontstyle. % For now, we do not accumulate font styles: @b{@i{foo}} prints foo in % italics, not bold italics. % \def\setfontstyle#1{% \def\curfontstyle{#1}% not as a control sequence, because we are \edef'd. \csname #1font\endcsname % change the current font } \def\rm{\fam=0 \setfontstyle{rm}} \def\it{\fam=\itfam \setfontstyle{it}} \def\sl{\fam=\slfam \setfontstyle{sl}} \def\bf{\fam=\bffam \setfontstyle{bf}}\def\bfstylename{bf} \def\tt{\fam=\ttfam \setfontstyle{tt}}\def\ttstylename{tt} % Texinfo sort of supports the sans serif font style, which plain TeX does not. % So we set up a \sf. \newfam\sffam \def\sf{\fam=\sffam \setfontstyle{sf}} % We don't need math for this font style. \def\ttsl{\setfontstyle{ttsl}} % In order for the font changes to affect most math symbols and letters, % we have to define the \textfont of the standard families. % We don't bother to reset \scriptscriptfont; awaiting user need. % \def\resetmathfonts{% \textfont0=\rmfont \textfont1=\ifont \textfont2=\syfont \textfont\itfam=\itfont \textfont\slfam=\slfont \textfont\bffam=\bffont \textfont\ttfam=\ttfont \textfont\sffam=\sffont % % Fonts for superscript. Note that the 7pt fonts are used regardless % of the current font size. \scriptfont0=\sevenrm \scriptfont1=\seveni \scriptfont2=\sevensy \scriptfont\itfam=\sevenit \scriptfont\slfam=\sevensl \scriptfont\bffam=\sevenbf \scriptfont\ttfam=\seventt \scriptfont\sffam=\sevensf } % % The font-changing commands (all called \...fonts) redefine the meanings % of \STYLEfont, instead of just \STYLE. We do this because \STYLE needs % to also set the current \fam for math mode. Our \STYLE (e.g., \rm) % commands hardwire \STYLEfont to set the current font. % % The fonts used for \ifont are for "math italics" (\itfont is for italics % in regular text). \syfont is also used in math mode only. % % Each font-changing command also sets the names \lsize (one size lower) % and \lllsize (three sizes lower). These relative commands are used % in, e.g., the LaTeX logo and acronyms. % % This all needs generalizing, badly. % \def\assignfonts#1{% \expandafter\let\expandafter\rmfont\csname #1rm\endcsname \expandafter\let\expandafter\itfont\csname #1it\endcsname \expandafter\let\expandafter\slfont\csname #1sl\endcsname \expandafter\let\expandafter\bffont\csname #1bf\endcsname \expandafter\let\expandafter\ttfont\csname #1tt\endcsname \expandafter\let\expandafter\smallcaps\csname #1sc\endcsname \expandafter\let\expandafter\sffont \csname #1sf\endcsname \expandafter\let\expandafter\ifont \csname #1i\endcsname \expandafter\let\expandafter\syfont \csname #1sy\endcsname \expandafter\let\expandafter\ttslfont\csname #1ttsl\endcsname } \newif\ifrmisbold % Select smaller font size with the current style. Used to change font size % in, e.g., the LaTeX logo and acronyms. If we are using bold fonts for % normal roman text, also use bold fonts for roman text in the smaller size. \def\switchtolllsize{% \expandafter\assignfonts\expandafter{\lllsize}% \ifrmisbold \let\rmfont\bffont \fi \csname\curfontstyle\endcsname }% \def\switchtolsize{% \expandafter\assignfonts\expandafter{\lsize}% \ifrmisbold \let\rmfont\bffont \fi \csname\curfontstyle\endcsname }% \def\definefontsetatsize#1#2#3#4#5{% \expandafter\def\csname #1fonts\endcsname{% \def\curfontsize{#1}% \def\lsize{#2}\def\lllsize{#3}% \csname rmisbold#5\endcsname \assignfonts{#1}% \resetmathfonts \setleading{#4}% }} \definefontsetatsize{text} {reduced}{smaller}{\textleading}{false} \definefontsetatsize{title} {chap} {subsec} {27pt} {true} \definefontsetatsize{chap} {sec} {text} {19pt} {true} \definefontsetatsize{sec} {subsec} {reduced}{17pt} {true} \definefontsetatsize{ssec} {text} {small} {15pt} {true} \definefontsetatsize{reduced}{small} {smaller}{10.5pt}{false} \definefontsetatsize{small} {smaller}{smaller}{10.5pt}{false} \definefontsetatsize{smaller}{smaller}{smaller}{9.5pt} {false} \def\titlefont#1{{\titlefonts\rm #1}} \let\subsecfonts = \ssecfonts \let\subsubsecfonts = \ssecfonts % Define these just so they can be easily changed for other fonts. \def\angleleft{$\langle$} \def\angleright{$\rangle$} % Set the fonts to use with the @small... environments. \let\smallexamplefonts = \smallfonts % About \smallexamplefonts. If we use \smallfonts (9pt), @smallexample % can fit this many characters: % 8.5x11=86 smallbook=72 a4=90 a5=69 % If we use \scriptfonts (8pt), then we can fit this many characters: % 8.5x11=90+ smallbook=80 a4=90+ a5=77 % For me, subjectively, the few extra characters that fit aren't worth % the additional smallness of 8pt. So I'm making the default 9pt. % % By the way, for comparison, here's what fits with @example (10pt): % 8.5x11=71 smallbook=60 a4=75 a5=58 % --karl, 24jan03. % Set up the default fonts, so we can use them for creating boxes. % \definetextfontsizexi % Check if we are currently using a typewriter font. Since all the % Computer Modern typewriter fonts have zero interword stretch (and % shrink), and it is reasonable to expect all typewriter fonts to have % this property, we can check that font parameter. % \def\ifmonospace{\ifdim\fontdimen3\font=0pt } { \catcode`\'=\active \catcode`\`=\active \gdef\setcodequotes{\let`\codequoteleft \let'\codequoteright} \gdef\setregularquotes{\let`\lq \let'\rq} } % Allow an option to not use regular directed right quote/apostrophe % (char 0x27), but instead the undirected quote from cmtt (char 0x0d). % The undirected quote is ugly, so don't make it the default, but it % works for pasting with more pdf viewers (at least evince), the % lilypond developers report. xpdf does work with the regular 0x27. % \def\codequoteright{% \ifmonospace \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax '% \else \char'15 \fi \else \char'15 \fi \else '% \fi } % % and a similar option for the left quote char vs. a grave accent. % Modern fonts display ASCII 0x60 as a grave accent, so some people like % the code environments to do likewise. % \def\codequoteleft{% \ifmonospace \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax % [Knuth] pp. 380,381,391 % \relax disables Spanish ligatures ?` and !` of \tt font. \relax`% \else \char'22 \fi \else \char'22 \fi \else \relax`% \fi } % Commands to set the quote options. % \parseargdef\codequoteundirected{% \def\temp{#1}% \ifx\temp\onword \expandafter\let\csname SETtxicodequoteundirected\endcsname = t% \else\ifx\temp\offword \expandafter\let\csname SETtxicodequoteundirected\endcsname = \relax \else \errhelp = \EMsimple \errmessage{Unknown @codequoteundirected value `\temp', must be on|off}% \fi\fi } % \parseargdef\codequotebacktick{% \def\temp{#1}% \ifx\temp\onword \expandafter\let\csname SETtxicodequotebacktick\endcsname = t% \else\ifx\temp\offword \expandafter\let\csname SETtxicodequotebacktick\endcsname = \relax \else \errhelp = \EMsimple \errmessage{Unknown @codequotebacktick value `\temp', must be on|off}% \fi\fi } % [Knuth] pp. 380,381,391, disable Spanish ligatures ?` and !` of \tt font. \def\noligaturesquoteleft{\relax\lq} % Count depth in font-changes, for error checks \newcount\fontdepth \fontdepth=0 % Font commands. % #1 is the font command (\sl or \it), #2 is the text to slant. % If we are in a monospaced environment, however, 1) always use \ttsl, % and 2) do not add an italic correction. \def\dosmartslant#1#2{% \ifusingtt {{\ttsl #2}\let\next=\relax}% {\def\next{{#1#2}\futurelet\next\smartitaliccorrection}}% \next } \def\smartslanted{\dosmartslant\sl} \def\smartitalic{\dosmartslant\it} % Output an italic correction unless \next (presumed to be the following % character) is such as not to need one. \def\smartitaliccorrection{% \ifx\next,% \else\ifx\next-% \else\ifx\next.% \else\ifx\next\.% \else\ifx\next\comma% \else\ptexslash \fi\fi\fi\fi\fi \aftersmartic } % Unconditional use \ttsl, and no ic. @var is set to this for defuns. \def\ttslanted#1{{\ttsl #1}} % @cite is like \smartslanted except unconditionally use \sl. We never want % ttsl for book titles, do we? \def\cite#1{{\sl #1}\futurelet\next\smartitaliccorrection} \def\aftersmartic{} \def\var#1{% \let\saveaftersmartic = \aftersmartic \def\aftersmartic{\null\let\aftersmartic=\saveaftersmartic}% \smartslanted{#1}% } \let\i=\smartitalic \let\slanted=\smartslanted \let\dfn=\smartslanted \let\emph=\smartitalic % Explicit font changes: @r, @sc, undocumented @ii. \def\r#1{{\rm #1}} % roman font \def\sc#1{{\smallcaps#1}} % smallcaps font \def\ii#1{{\it #1}} % italic font % @b, explicit bold. Also @strong. \def\b#1{{\bf #1}} \let\strong=\b % @sansserif, explicit sans. \def\sansserif#1{{\sf #1}} % We can't just use \exhyphenpenalty, because that only has effect at % the end of a paragraph. Restore normal hyphenation at the end of the % group within which \nohyphenation is presumably called. % \def\nohyphenation{\hyphenchar\font = -1 \aftergroup\restorehyphenation} \def\restorehyphenation{\hyphenchar\font = `- } % Set sfcode to normal for the chars that usually have another value. % Can't use plain's \frenchspacing because it uses the `\x notation, and % sometimes \x has an active definition that messes things up. % \catcode`@=11 \def\plainfrenchspacing{% \sfcode`\.=\@m \sfcode`\?=\@m \sfcode`\!=\@m \sfcode`\:=\@m \sfcode`\;=\@m \sfcode`\,=\@m \def\endofsentencespacefactor{1000}% for @. and friends } \def\plainnonfrenchspacing{% \sfcode`\.3000\sfcode`\?3000\sfcode`\!3000 \sfcode`\:2000\sfcode`\;1500\sfcode`\,1250 \def\endofsentencespacefactor{3000}% for @. and friends } \catcode`@=\other \def\endofsentencespacefactor{3000}% default % @t, explicit typewriter. \def\t#1{% {\tt \plainfrenchspacing #1}% \null } % @samp. \def\samp#1{{\setcodequotes\lq\tclose{#1}\rq\null}} % @indicateurl is \samp, that is, with quotes. \let\indicateurl=\samp % @code (and similar) prints in typewriter, but with spaces the same % size as normal in the surrounding text, without hyphenation, etc. % This is a subroutine for that. \def\tclose#1{% {% % Change normal interword space to be same as for the current font. \spaceskip = \fontdimen2\font % % Switch to typewriter. \tt % % But `\ ' produces the large typewriter interword space. \def\ {{\spaceskip = 0pt{} }}% % % Turn off hyphenation. \nohyphenation % \plainfrenchspacing #1% }% \null % reset spacefactor to 1000 } % We *must* turn on hyphenation at `-' and `_' in @code. % (But see \codedashfinish below.) % Otherwise, it is too hard to avoid overfull hboxes % in the Emacs manual, the Library manual, etc. % % Unfortunately, TeX uses one parameter (\hyphenchar) to control % both hyphenation at - and hyphenation within words. % We must therefore turn them both off (\tclose does that) % and arrange explicitly to hyphenate at a dash. -- rms. { \catcode`\-=\active \catcode`\_=\active \catcode`\'=\active \catcode`\`=\active \global\let'=\rq \global\let`=\lq % default definitions % \global\def\code{\begingroup \setcodequotes \catcode\dashChar=\active \catcode\underChar=\active \ifallowcodebreaks \let-\codedash \let_\codeunder \else \let-\normaldash \let_\realunder \fi % Given -foo (with a single dash), we do not want to allow a break % after the hyphen. \global\let\codedashprev=\codedash % \codex } % \gdef\codedash{\futurelet\next\codedashfinish} \gdef\codedashfinish{% \normaldash % always output the dash character itself. % % Now, output a discretionary to allow a line break, unless % (a) the next character is a -, or % (b) the preceding character is a -. % E.g., given --posix, we do not want to allow a break after either -. % Given --foo-bar, we do want to allow a break between the - and the b. \ifx\next\codedash \else \ifx\codedashprev\codedash \else \discretionary{}{}{}\fi \fi % we need the space after the = for the case when \next itself is a % space token; it would get swallowed otherwise. As in @code{- a}. \global\let\codedashprev= \next } } \def\normaldash{-} % \def\codex #1{\tclose{#1}\endgroup} \def\codeunder{% % this is all so @math{@code{var_name}+1} can work. In math mode, _ % is "active" (mathcode"8000) and \normalunderscore (or \char95, etc.) % will therefore expand the active definition of _, which is us % (inside @code that is), therefore an endless loop. \ifusingtt{\ifmmode \mathchar"075F % class 0=ordinary, family 7=ttfam, pos 0x5F=_. \else\normalunderscore \fi \discretionary{}{}{}}% {\_}% } % An additional complication: the above will allow breaks after, e.g., % each of the four underscores in __typeof__. This is bad. % @allowcodebreaks provides a document-level way to turn breaking at - % and _ on and off. % \newif\ifallowcodebreaks \allowcodebreakstrue \def\keywordtrue{true} \def\keywordfalse{false} \parseargdef\allowcodebreaks{% \def\txiarg{#1}% \ifx\txiarg\keywordtrue \allowcodebreakstrue \else\ifx\txiarg\keywordfalse \allowcodebreaksfalse \else \errhelp = \EMsimple \errmessage{Unknown @allowcodebreaks option `\txiarg', must be true|false}% \fi\fi } % For @command, @env, @file, @option quotes seem unnecessary, % so use \code rather than \samp. \let\command=\code \let\env=\code \let\file=\code \let\option=\code % @uref (abbreviation for `urlref') aka @url takes an optional % (comma-separated) second argument specifying the text to display and % an optional third arg as text to display instead of (rather than in % addition to) the url itself. First (mandatory) arg is the url. % TeX-only option to allow changing PDF output to show only the second % arg (if given), and not the url (which is then just the link target). \newif\ifurefurlonlylink % The default \pretolerance setting stops the penalty inserted in % \urefallowbreak being a discouragement to line breaking. Set it to % a negative value for this paragraph only. Hopefully this does not % conflict with redefinitions of \par done elsewhere. \def\nopretolerance{% \pretolerance=-1 \def\par{\endgraf\pretolerance=100 \let\par\endgraf}% } % The main macro is \urefbreak, which allows breaking at expected % places within the url. \def\urefbreak{\nopretolerance \begingroup \urefcatcodes \dourefbreak} \let\uref=\urefbreak % \def\dourefbreak#1{\urefbreakfinish #1,,,\finish} \def\urefbreakfinish#1,#2,#3,#4\finish{% doesn't work in @example \unsepspaces \pdfurl{#1}% \setbox0 = \hbox{\ignorespaces #3}% \ifdim\wd0 > 0pt \unhbox0 % third arg given, show only that \else \setbox0 = \hbox{\ignorespaces #2}% look for second arg \ifdim\wd0 > 0pt \ifpdf % For pdfTeX and LuaTeX \ifurefurlonlylink % PDF plus option to not display url, show just arg \unhbox0 \else % PDF, normally display both arg and url for consistency, % visibility, if the pdf is eventually used to print, etc. \unhbox0\ (\urefcode{#1})% \fi \else \ifx\XeTeXrevision\thisisundefined \unhbox0\ (\urefcode{#1})% DVI, always show arg and url \else % For XeTeX \ifurefurlonlylink % PDF plus option to not display url, show just arg \unhbox0 \else % PDF, normally display both arg and url for consistency, % visibility, if the pdf is eventually used to print, etc. \unhbox0\ (\urefcode{#1})% \fi \fi \fi \else \urefcode{#1}% only url given, so show it \fi \fi \endlink \endgroup} % Allow line breaks around only a few characters (only). \def\urefcatcodes{% \catcode`\&=\active \catcode`\.=\active \catcode`\#=\active \catcode`\?=\active \catcode`\/=\active } { \urefcatcodes % \global\def\urefcode{\begingroup \setcodequotes \urefcatcodes \let&\urefcodeamp \let.\urefcodedot \let#\urefcodehash \let?\urefcodequest \let/\urefcodeslash \codex } % % By default, they are just regular characters. \global\def&{\normalamp} \global\def.{\normaldot} \global\def#{\normalhash} \global\def?{\normalquest} \global\def/{\normalslash} } \def\urefcodeamp{\urefprebreak \&\urefpostbreak} \def\urefcodedot{\urefprebreak .\urefpostbreak} \def\urefcodehash{\urefprebreak \#\urefpostbreak} \def\urefcodequest{\urefprebreak ?\urefpostbreak} \def\urefcodeslash{\futurelet\next\urefcodeslashfinish} { \catcode`\/=\active \global\def\urefcodeslashfinish{% \urefprebreak \slashChar % Allow line break only after the final / in a sequence of % slashes, to avoid line break between the slashes in http://. \ifx\next/\else \urefpostbreak \fi } } % By default we'll break after the special characters, but some people like to % break before the special chars, so allow that. Also allow no breaking at % all, for manual control. % \parseargdef\urefbreakstyle{% \def\txiarg{#1}% \ifx\txiarg\wordnone \def\urefprebreak{\nobreak}\def\urefpostbreak{\nobreak} \else\ifx\txiarg\wordbefore \def\urefprebreak{\urefallowbreak}\def\urefpostbreak{\nobreak} \else\ifx\txiarg\wordafter \def\urefprebreak{\nobreak}\def\urefpostbreak{\urefallowbreak} \else \errhelp = \EMsimple \errmessage{Unknown @urefbreakstyle setting `\txiarg'}% \fi\fi\fi } \def\wordafter{after} \def\wordbefore{before} \def\wordnone{none} % Allow a ragged right output to aid breaking long URL's. There can % be a break at the \allowbreak with no extra glue (if the existing stretch in % the line is sufficient), a break at the \penalty with extra glue added % at the end of the line, or no break at all here. % Changing the value of the penalty and/or the amount of stretch affects how % preferable one choice is over the other. \def\urefallowbreak{% \penalty0\relax \hskip 0pt plus 2 em\relax \penalty1000\relax \hskip 0pt plus -2 em\relax } \urefbreakstyle after % @url synonym for @uref, since that's how everyone uses it. % \let\url=\uref % rms does not like angle brackets --karl, 17may97. % So now @email is just like @uref, unless we are pdf. % %\def\email#1{\angleleft{\tt #1}\angleright} \ifpdforxetex \def\email#1{\doemail#1,,\finish} \def\doemail#1,#2,#3\finish{\begingroup \unsepspaces \pdfurl{mailto:#1}% \setbox0 = \hbox{\ignorespaces #2}% \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi \endlink \endgroup} \else \let\email=\uref \fi % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), % `example' (@kbd uses ttsl only inside of @example and friends), % or `code' (@kbd uses normal tty font always). \parseargdef\kbdinputstyle{% \def\txiarg{#1}% \ifx\txiarg\worddistinct \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% \else\ifx\txiarg\wordexample \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% \else\ifx\txiarg\wordcode \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% \else \errhelp = \EMsimple \errmessage{Unknown @kbdinputstyle setting `\txiarg'}% \fi\fi\fi } \def\worddistinct{distinct} \def\wordexample{example} \def\wordcode{code} % Default is `distinct'. \kbdinputstyle distinct \def\kbd#1{% \tclose{\kbdfont\setcodequotes#1}% } % definition of @key that produces a lozenge. Doesn't adjust to text size. %\setfont\keyrm\rmshape{8}{1000}{OT1} %\font\keysy=cmsy9 %\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{% % \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{% % \vbox{\hrule\kern-0.4pt % \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}% % \kern-0.4pt\hrule}% % \kern-.06em\raise0.4pt\hbox{\angleright}}}} % definition of @key with no lozenge. % \def\key#1{{\setregularquotes \nohyphenation \tt #1}\null} % @clicksequence{File @click{} Open ...} \def\clicksequence#1{\begingroup #1\endgroup} % @clickstyle @arrow (by default) \parseargdef\clickstyle{\def\click{#1}} \def\click{\arrow} % Typeset a dimension, e.g., `in' or `pt'. The only reason for the % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. % \def\dmn#1{\thinspace #1} % @acronym for "FBI", "NATO", and the like. % We print this one point size smaller, since it's intended for % all-uppercase. % \def\acronym#1{\doacronym #1,,\finish} \def\doacronym#1,#2,#3\finish{% {\switchtolsize #1}% \def\temp{#2}% \ifx\temp\empty \else \space ({\unsepspaces \ignorespaces \temp \unskip})% \fi \null % reset \spacefactor=1000 } % @abbr for "Comput. J." and the like. % No font change, but don't do end-of-sentence spacing. % \def\abbr#1{\doabbr #1,,\finish} \def\doabbr#1,#2,#3\finish{% {\plainfrenchspacing #1}% \def\temp{#2}% \ifx\temp\empty \else \space ({\unsepspaces \ignorespaces \temp \unskip})% \fi \null % reset \spacefactor=1000 } % @asis just yields its argument. Used with @table, for example. % \def\asis#1{#1} % @math outputs its argument in math mode. % % One complication: _ usually means subscripts, but it could also mean % an actual _ character, as in @math{@var{some_variable} + 1}. So make % _ active, and distinguish by seeing if the current family is \slfam, % which is what @var uses. { \catcode`\_ = \active \gdef\mathunderscore{% \catcode`\_=\active \def_{\ifnum\fam=\slfam \_\else\sb\fi}% } } % Another complication: we want \\ (and @\) to output a math (or tt) \. % FYI, plain.tex uses \\ as a temporary control sequence (for no % particular reason), but this is not advertised and we don't care. % % The \mathchar is class=0=ordinary, family=7=ttfam, position=5C=\. \def\mathbackslash{\ifnum\fam=\ttfam \mathchar"075C \else\backslash \fi} % \def\math{% \ifmmode\else % only go into math if not in math mode already \tex \mathunderscore \let\\ = \mathbackslash \mathactive % make the texinfo accent commands work in math mode \let\"=\ddot \let\'=\acute \let\==\bar \let\^=\hat \let\`=\grave \let\u=\breve \let\v=\check \let\~=\tilde \let\dotaccent=\dot % have to provide another name for sup operator \let\mathopsup=\sup $\expandafter\finishmath\fi } \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex. % Some active characters (such as <) are spaced differently in math. % We have to reset their definitions in case the @math was an argument % to a command which sets the catcodes (such as @item or @section). % { \catcode`^ = \active \catcode`< = \active \catcode`> = \active \catcode`+ = \active \catcode`' = \active \gdef\mathactive{% \let^ = \ptexhat \let< = \ptexless \let> = \ptexgtr \let+ = \ptexplus \let' = \ptexquoteright } } % for @sub and @sup, if in math mode, just do a normal sub/superscript. % If in text, use math to place as sub/superscript, but switch % into text mode, with smaller fonts. This is a different font than the % one used for real math sub/superscripts (8pt vs. 7pt), but let's not % fix it (significant additions to font machinery) until someone notices. % \def\sub{\ifmmode \expandafter\sb \else \expandafter\finishsub\fi} \def\finishsub#1{$\sb{\hbox{\switchtolllsize #1}}$}% % \def\sup{\ifmmode \expandafter\ptexsp \else \expandafter\finishsup\fi} \def\finishsup#1{$\ptexsp{\hbox{\switchtolllsize #1}}$}% % provide this command from LaTeX as it is very common \def\frac#1#2{{{#1}\over{#2}}} % @displaymath. % \globaldefs is needed to recognize the end lines in \tex and % \end tex. Set \thisenv as @end displaymath is seen before @end tex. {\obeylines \globaldefs=1 \envdef\displaymath{% \tex% \def\thisenv{\displaymath}% \begingroup\let\end\displaymathend% $$% } \def\displaymathend{$$\endgroup\end}% \def\Edisplaymath{% \def\thisenv{\tex}% \end tex }} % @inlinefmt{FMTNAME,PROCESSED-TEXT} and @inlineraw{FMTNAME,RAW-TEXT}. % Ignore unless FMTNAME == tex; then it is like @iftex and @tex, % except specified as a normal braced arg, so no newlines to worry about. % \def\outfmtnametex{tex} % \long\def\inlinefmt#1{\doinlinefmt #1,\finish} \long\def\doinlinefmt#1,#2,\finish{% \def\inlinefmtname{#1}% \ifx\inlinefmtname\outfmtnametex \ignorespaces #2\fi } % % @inlinefmtifelse{FMTNAME,THEN-TEXT,ELSE-TEXT} expands THEN-TEXT if % FMTNAME is tex, else ELSE-TEXT. \long\def\inlinefmtifelse#1{\doinlinefmtifelse #1,,,\finish} \long\def\doinlinefmtifelse#1,#2,#3,#4,\finish{% \def\inlinefmtname{#1}% \ifx\inlinefmtname\outfmtnametex \ignorespaces #2\else \ignorespaces #3\fi } % % For raw, must switch into @tex before parsing the argument, to avoid % setting catcodes prematurely. Doing it this way means that, for % example, @inlineraw{html, foo{bar} gets a parse error instead of being % ignored. But this isn't important because if people want a literal % *right* brace they would have to use a command anyway, so they may as % well use a command to get a left brace too. We could re-use the % delimiter character idea from \verb, but it seems like overkill. % \long\def\inlineraw{\tex \doinlineraw} \long\def\doinlineraw#1{\doinlinerawtwo #1,\finish} \def\doinlinerawtwo#1,#2,\finish{% \def\inlinerawname{#1}% \ifx\inlinerawname\outfmtnametex \ignorespaces #2\fi \endgroup % close group opened by \tex. } % @inlineifset{VAR, TEXT} expands TEXT if VAR is @set. % \long\def\inlineifset#1{\doinlineifset #1,\finish} \long\def\doinlineifset#1,#2,\finish{% \def\inlinevarname{#1}% \expandafter\ifx\csname SET\inlinevarname\endcsname\relax \else\ignorespaces#2\fi } % @inlineifclear{VAR, TEXT} expands TEXT if VAR is not @set. % \long\def\inlineifclear#1{\doinlineifclear #1,\finish} \long\def\doinlineifclear#1,#2,\finish{% \def\inlinevarname{#1}% \expandafter\ifx\csname SET\inlinevarname\endcsname\relax \ignorespaces#2\fi } \message{glyphs,} % and logos. % @@ prints an @, as does @atchar{}. \def\@{\char64 } \let\atchar=\@ % @{ @} @lbracechar{} @rbracechar{} all generate brace characters. \def\lbracechar{{\ifmonospace\char123\else\ensuremath\lbrace\fi}} \def\rbracechar{{\ifmonospace\char125\else\ensuremath\rbrace\fi}} \let\{=\lbracechar \let\}=\rbracechar % @comma{} to avoid , parsing problems. \let\comma = , % Accents: @, @dotaccent @ringaccent @ubaraccent @udotaccent % Others are defined by plain TeX: @` @' @" @^ @~ @= @u @v @H. \let\, = \ptexc \let\dotaccent = \ptexdot \def\ringaccent#1{{\accent23 #1}} \let\tieaccent = \ptext \let\ubaraccent = \ptexb \let\udotaccent = \d % Other special characters: @questiondown @exclamdown @ordf @ordm % Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss. \def\questiondown{?`} \def\exclamdown{!`} \def\ordf{\leavevmode\raise1ex\hbox{\switchtolllsize \underbar{a}}} \def\ordm{\leavevmode\raise1ex\hbox{\switchtolllsize \underbar{o}}} % Dotless i and dotless j, used for accents. \def\imacro{i} \def\jmacro{j} \def\dotless#1{% \def\temp{#1}% \ifx\temp\imacro \ifmmode\imath \else\ptexi \fi \else\ifx\temp\jmacro \ifmmode\jmath \else\j \fi \else \errmessage{@dotless can be used only with i or j}% \fi\fi } % The \TeX{} logo, as in plain, but resetting the spacing so that a % period following counts as ending a sentence. (Idea found in latex.) % \edef\TeX{\TeX \spacefactor=1000 } % @LaTeX{} logo. Not quite the same results as the definition in % latex.ltx, since we use a different font for the raised A; it's most % convenient for us to use an explicitly smaller font, rather than using % the \scriptstyle font (since we don't reset \scriptstyle and % \scriptscriptstyle). % \def\LaTeX{% L\kern-.36em {\setbox0=\hbox{T}% \vbox to \ht0{\hbox{% \ifx\textnominalsize\xwordpt % for 10pt running text, lllsize (8pt) is too small for the A in LaTeX. % Revert to plain's \scriptsize, which is 7pt. \count255=\the\fam $\fam\count255 \scriptstyle A$% \else % For 11pt, we can use our lllsize. \switchtolllsize A% \fi }% \vss }}% \kern-.15em \TeX } % Some math mode symbols. Define \ensuremath to switch into math mode % unless we are already there. Expansion tricks may not be needed here, % but safer, and can't hurt. \def\ensuremath{\ifmmode \expandafter\asis \else\expandafter\ensuredmath \fi} \def\ensuredmath#1{$\relax#1$} % \def\bullet{\ensuremath\ptexbullet} \def\geq{\ensuremath\ge} \def\leq{\ensuremath\le} \def\minus{\ensuremath-} % @dots{} outputs an ellipsis using the current font. % We do .5em per period so that it has the same spacing in the cm % typewriter fonts as three actual period characters; on the other hand, % in other typewriter fonts three periods are wider than 1.5em. So do % whichever is larger. % \def\dots{% \leavevmode \setbox0=\hbox{...}% get width of three periods \ifdim\wd0 > 1.5em \dimen0 = \wd0 \else \dimen0 = 1.5em \fi \hbox to \dimen0{% \hskip 0pt plus.25fil .\hskip 0pt plus1fil .\hskip 0pt plus1fil .\hskip 0pt plus.5fil }% } % @enddots{} is an end-of-sentence ellipsis. % \def\enddots{% \dots \spacefactor=\endofsentencespacefactor } % @point{}, @result{}, @expansion{}, @print{}, @equiv{}. % % Since these characters are used in examples, they should be an even number of % \tt widths. Each \tt character is 1en, so two makes it 1em. % \def\point{$\star$} \def\arrow{\leavevmode\raise.05ex\hbox to 1em{\hfil$\rightarrow$\hfil}} \def\result{\leavevmode\raise.05ex\hbox to 1em{\hfil$\Rightarrow$\hfil}} \def\expansion{\leavevmode\hbox to 1em{\hfil$\mapsto$\hfil}} \def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}} \def\equiv{\leavevmode\hbox to 1em{\hfil$\ptexequiv$\hfil}} % The @error{} command. % Adapted from the TeXbook's \boxit. % \newbox\errorbox % {\ttfont \global\dimen0 = 3em}% Width of the box. \dimen2 = .55pt % Thickness of rules % The text. (`r' is open on the right, `e' somewhat less so on the left.) \setbox0 = \hbox{\kern-.75pt \reducedsf \putworderror\kern-1.5pt} % \setbox\errorbox=\hbox to \dimen0{\hfil \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right. \advance\hsize by -2\dimen2 % Rules. \vbox{% \hrule height\dimen2 \hbox{\vrule width\dimen2 \kern3pt % Space to left of text. \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below. \kern3pt\vrule width\dimen2}% Space to right. \hrule height\dimen2} \hfil} % \def\error{\leavevmode\lower.7ex\copy\errorbox} % @pounds{} is a sterling sign, which Knuth put in the CM italic font. % \def\pounds{\ifmonospace{\ecfont\char"BF}\else{\it\$}\fi} % @euro{} comes from a separate font, depending on the current style. % We use the free feym* fonts from the eurosym package by Henrik % Theiling, which support regular, slanted, bold and bold slanted (and % "outlined" (blackboard board, sort of) versions, which we don't need). % It is available from http://www.ctan.org/tex-archive/fonts/eurosym. % % Although only regular is the truly official Euro symbol, we ignore % that. The Euro is designed to be slightly taller than the regular % font height. % % feymr - regular % feymo - slanted % feybr - bold % feybo - bold slanted % % There is no good (free) typewriter version, to my knowledge. % A feymr10 euro is ~7.3pt wide, while a normal cmtt10 char is ~5.25pt wide. % Hmm. % % Also doesn't work in math. Do we need to do math with euro symbols? % Hope not. % % \def\euro{{\eurofont e}} \def\eurofont{% % We set the font at each command, rather than predefining it in % \textfonts and the other font-switching commands, so that % installations which never need the symbol don't have to have the % font installed. % % There is only one designed size (nominal 10pt), so we always scale % that to the current nominal size. % % By the way, simply using "at 1em" works for cmr10 and the like, but % does not work for cmbx10 and other extended/shrunken fonts. % \def\eurosize{\csname\curfontsize nominalsize\endcsname}% % \ifx\curfontstyle\bfstylename % bold: \font\thiseurofont = \ifusingit{feybo10}{feybr10} at \eurosize \else % regular: \font\thiseurofont = \ifusingit{feymo10}{feymr10} at \eurosize \fi \thiseurofont } % Glyphs from the EC fonts. We don't use \let for the aliases, because % sometimes we redefine the original macro, and the alias should reflect % the redefinition. % % Use LaTeX names for the Icelandic letters. \def\DH{{\ecfont \char"D0}} % Eth \def\dh{{\ecfont \char"F0}} % eth \def\TH{{\ecfont \char"DE}} % Thorn \def\th{{\ecfont \char"FE}} % thorn % \def\guillemetleft{{\ecfont \char"13}} \def\guillemotleft{\guillemetleft} \def\guillemetright{{\ecfont \char"14}} \def\guillemotright{\guillemetright} \def\guilsinglleft{{\ecfont \char"0E}} \def\guilsinglright{{\ecfont \char"0F}} \def\quotedblbase{{\ecfont \char"12}} \def\quotesinglbase{{\ecfont \char"0D}} % \def\L{{\ecfont \char"8A}} % L with stroke \def\l{{\ecfont \char"AA}} % l with stroke % % This positioning is not perfect (see the ogonek LaTeX package), but % we have the precomposed glyphs for the most common cases. We put the % tests to use those glyphs in the single \ogonek macro so we have fewer % dummy definitions to worry about for index entries, etc. % % ogonek is also used with other letters in Lithuanian (IOU), but using % the precomposed glyphs for those is not so easy since they aren't in % the same EC font. \def\ogonek#1{{% \def\temp{#1}% \ifx\temp\macrocharA\Aogonek \else\ifx\temp\macrochara\aogonek \else\ifx\temp\macrocharE\Eogonek \else\ifx\temp\macrochare\eogonek \else \ecfont \setbox0=\hbox{#1}% \ifdim\ht0=1ex\accent"0C #1% \else\ooalign{\unhbox0\crcr\hidewidth\char"0C \hidewidth}% \fi \fi\fi\fi\fi }% } \def\Aogonek{{\ecfont \char"81}}\def\macrocharA{A} \def\aogonek{{\ecfont \char"A1}}\def\macrochara{a} \def\Eogonek{{\ecfont \char"86}}\def\macrocharE{E} \def\eogonek{{\ecfont \char"A6}}\def\macrochare{e} % % Use the European Computer Modern fonts (cm-super in outline format) % for non-CM glyphs. That is ec* for regular text and tc* for the text % companion symbols (LaTeX TS1 encoding). Both are part of the ec % package and follow the same conventions. % \def\ecfont{\etcfont{e}} \def\tcfont{\etcfont{t}} % \def\etcfont#1{% % We can't distinguish serif/sans and italic/slanted, but this % is used for crude hacks anyway (like adding French and German % quotes to documents typeset with CM, where we lose kerning), so % hopefully nobody will notice/care. \edef\ecsize{\csname\curfontsize ecsize\endcsname}% \edef\nominalsize{\csname\curfontsize nominalsize\endcsname}% \ifmonospace % typewriter: \font\thisecfont = #1ctt\ecsize \space at \nominalsize \else \ifx\curfontstyle\bfstylename % bold: \font\thisecfont = #1cb\ifusingit{i}{x}\ecsize \space at \nominalsize \else % regular: \font\thisecfont = #1c\ifusingit{ti}{rm}\ecsize \space at \nominalsize \fi \fi \thisecfont } % @registeredsymbol - R in a circle. The font for the R should really % be smaller yet, but lllsize is the best we can do for now. % Adapted from the plain.tex definition of \copyright. % \def\registeredsymbol{% $^{{\ooalign{\hfil\raise.07ex\hbox{\switchtolllsize R}% \hfil\crcr\Orb}}% }$% } % @textdegree - the normal degrees sign. % \def\textdegree{$^\circ$} % Laurent Siebenmann reports \Orb undefined with: % Textures 1.7.7 (preloaded format=plain 93.10.14) (68K) 16 APR 2004 02:38 % so we'll define it if necessary. % \ifx\Orb\thisisundefined \def\Orb{\mathhexbox20D} \fi % Quotes. \chardef\quoteleft=`\` \chardef\quoteright=`\' % only change font for tt for correct kerning and to avoid using % \ecfont unless necessary. \def\quotedblleft{% \ifmonospace{\ecfont\char"10}\else{\char"5C}\fi } \def\quotedblright{% \ifmonospace{\ecfont\char"11}\else{\char`\"}\fi } \message{page headings,} \newskip\titlepagetopglue \titlepagetopglue = 1.5in \newskip\titlepagebottomglue \titlepagebottomglue = 2pc % First the title page. Must do @settitle before @titlepage. \newif\ifseenauthor \newif\iffinishedtitlepage % @setcontentsaftertitlepage used to do an implicit @contents or % @shortcontents after @end titlepage, but it is now obsolete. \def\setcontentsaftertitlepage{% \errmessage{@setcontentsaftertitlepage has been removed as a Texinfo command; move your @contents command if you want the contents after the title page.}}% \def\setshortcontentsaftertitlepage{% \errmessage{@setshortcontentsaftertitlepage has been removed as a Texinfo command; move your @shortcontents and @contents commands if you want the contents after the title page.}}% \parseargdef\shorttitlepage{% \begingroup \hbox{}\vskip 1.5in \chaprm \centerline{#1}% \endgroup\page\hbox{}\page} \envdef\titlepage{% % Open one extra group, as we want to close it in the middle of \Etitlepage. \begingroup \parindent=0pt \textfonts % Leave some space at the very top of the page. \vglue\titlepagetopglue % No rule at page bottom unless we print one at the top with @title. \finishedtitlepagetrue % % Most title ``pages'' are actually two pages long, with space % at the top of the second. We don't want the ragged left on the second. \let\oldpage = \page \def\page{% \iffinishedtitlepage\else \finishtitlepage \fi \let\page = \oldpage \page \null }% } \def\Etitlepage{% \iffinishedtitlepage\else \finishtitlepage \fi % It is important to do the page break before ending the group, % because the headline and footline are only empty inside the group. % If we use the new definition of \page, we always get a blank page % after the title page, which we certainly don't want. \oldpage \endgroup % % Need this before the \...aftertitlepage checks so that if they are % in effect the toc pages will come out with page numbers. \HEADINGSon } \def\finishtitlepage{% \vskip4pt \hrule height 2pt width \hsize \vskip\titlepagebottomglue \finishedtitlepagetrue } % Settings used for typesetting titles: no hyphenation, no indentation, % don't worry much about spacing, ragged right. This should be used % inside a \vbox, and fonts need to be set appropriately first. \par should % be specified before the end of the \vbox, since a vbox is a group. % \def\raggedtitlesettings{% \rm \hyphenpenalty=10000 \parindent=0pt \tolerance=5000 \ptexraggedright } % Macros to be used within @titlepage: \let\subtitlerm=\rmfont \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines} \parseargdef\title{% \checkenv\titlepage \vbox{\titlefonts \raggedtitlesettings #1\par}% % print a rule at the page bottom also. \finishedtitlepagefalse \vskip4pt \hrule height 4pt width \hsize \vskip4pt } \parseargdef\subtitle{% \checkenv\titlepage {\subtitlefont \rightline{#1}}% } % @author should come last, but may come many times. % It can also be used inside @quotation. % \parseargdef\author{% \def\temp{\quotation}% \ifx\thisenv\temp \def\quotationauthor{#1}% printed in \Equotation. \else \checkenv\titlepage \ifseenauthor\else \vskip 0pt plus 1filll \seenauthortrue \fi {\secfonts\rm \leftline{#1}}% \fi } % Set up page headings and footings. \let\thispage=\folio \newtoks\evenheadline % headline on even pages \newtoks\oddheadline % headline on odd pages \newtoks\evenchapheadline% headline on even pages with a new chapter \newtoks\oddchapheadline % headline on odd pages with a new chapter \newtoks\evenfootline % footline on even pages \newtoks\oddfootline % footline on odd pages % Now make \makeheadline and \makefootline in Plain TeX use those variables \headline={{\textfonts\rm \ifchapterpage \ifodd\pageno\the\oddchapheadline\else\the\evenchapheadline\fi \else \ifodd\pageno\the\oddheadline\else\the\evenheadline\fi \fi}} \footline={{\textfonts\rm \ifodd\pageno \the\oddfootline \else \the\evenfootline \fi}\HEADINGShook} \let\HEADINGShook=\relax % Commands to set those variables. % For example, this is what @headings on does % @evenheading @thistitle|@thispage|@thischapter % @oddheading @thischapter|@thispage|@thistitle % @evenfooting @thisfile|| % @oddfooting ||@thisfile \def\evenheading{\parsearg\evenheadingxxx} \def\evenheadingxxx #1{\evenheadingyyy #1\|\|\|\|\finish} \def\evenheadingyyy #1\|#2\|#3\|#4\finish{% \global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}} \global\evenchapheadline=\evenheadline} \def\oddheading{\parsearg\oddheadingxxx} \def\oddheadingxxx #1{\oddheadingyyy #1\|\|\|\|\finish} \def\oddheadingyyy #1\|#2\|#3\|#4\finish{% \global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}% \global\oddchapheadline=\oddheadline} \parseargdef\everyheading{\oddheadingxxx{#1}\evenheadingxxx{#1}}% \def\evenfooting{\parsearg\evenfootingxxx} \def\evenfootingxxx #1{\evenfootingyyy #1\|\|\|\|\finish} \def\evenfootingyyy #1\|#2\|#3\|#4\finish{% \global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}} \def\oddfooting{\parsearg\oddfootingxxx} \def\oddfootingxxx #1{\oddfootingyyy #1\|\|\|\|\finish} \def\oddfootingyyy #1\|#2\|#3\|#4\finish{% \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}% % % Leave some space for the footline. Hopefully ok to assume % @evenfooting will not be used by itself. \global\advance\txipageheight by -12pt \global\advance\vsize by -12pt } \parseargdef\everyfooting{\oddfootingxxx{#1}\evenfootingxxx{#1}} % @evenheadingmarks top \thischapter <- chapter at the top of a page % @evenheadingmarks bottom \thischapter <- chapter at the bottom of a page % % The same set of arguments for: % % @oddheadingmarks % @evenfootingmarks % @oddfootingmarks % @everyheadingmarks % @everyfootingmarks % These define \getoddheadingmarks, \getevenheadingmarks, % \getoddfootingmarks, and \getevenfootingmarks, each to one of % \gettopheadingmarks, \getbottomheadingmarks. % \def\evenheadingmarks{\headingmarks{even}{heading}} \def\oddheadingmarks{\headingmarks{odd}{heading}} \def\evenfootingmarks{\headingmarks{even}{footing}} \def\oddfootingmarks{\headingmarks{odd}{footing}} \parseargdef\everyheadingmarks{\headingmarks{even}{heading}{#1} \headingmarks{odd}{heading}{#1} } \parseargdef\everyfootingmarks{\headingmarks{even}{footing}{#1} \headingmarks{odd}{footing}{#1} } % #1 = even/odd, #2 = heading/footing, #3 = top/bottom. \def\headingmarks#1#2#3 {% \expandafter\let\expandafter\temp \csname get#3headingmarks\endcsname \global\expandafter\let\csname get#1#2marks\endcsname \temp } \everyheadingmarks bottom \everyfootingmarks bottom % @headings double turns headings on for double-sided printing. % @headings single turns headings on for single-sided printing. % @headings off turns them off. % @headings on same as @headings double, retained for compatibility. % @headings after turns on double-sided headings after this page. % @headings doubleafter turns on double-sided headings after this page. % @headings singleafter turns on single-sided headings after this page. % By default, they are off at the start of a document, % and turned `on' after @end titlepage. \parseargdef\headings{\csname HEADINGS#1\endcsname} \def\headingsoff{% non-global headings elimination \evenheadline={\hfil}\evenfootline={\hfil}\evenchapheadline={\hfil}% \oddheadline={\hfil}\oddfootline={\hfil}\oddchapheadline={\hfil}% } \def\HEADINGSoff{{\globaldefs=1 \headingsoff}} % global setting \HEADINGSoff % it's the default % When we turn headings on, set the page number to 1. \def\pageone{ \global\pageno=1 \global\arabiccount = \pagecount } % For double-sided printing, put current file name in lower left corner, % chapter name on inside top of right hand pages, document % title on inside top of left hand pages, and page numbers on outside top % edge of all pages. \def\HEADINGSdouble{% \pageone \HEADINGSdoublex } \let\contentsalignmacro = \chappager % For single-sided printing, chapter title goes across top left of page, % page number on top right. \def\HEADINGSsingle{% \pageone \HEADINGSsinglex } \def\HEADINGSon{\HEADINGSdouble} \def\HEADINGSafter{\let\HEADINGShook=\HEADINGSdoublex} \let\HEADINGSdoubleafter=\HEADINGSafter \def\HEADINGSdoublex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\folio\hfil\thistitle}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\evenchapheadline={\line{\folio\hfil}} \global\oddchapheadline={\line{\hfil\folio}} \global\let\contentsalignmacro = \chapoddpage } \def\HEADINGSsingleafter{\let\HEADINGShook=\HEADINGSsinglex} \def\HEADINGSsinglex{% \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\evenchapheadline={\line{\hfil\folio}} \global\oddchapheadline={\line{\hfil\folio}} \global\let\contentsalignmacro = \chappager } % for @setchapternewpage off \def\HEADINGSsinglechapoff{% \pageone \global\evenfootline={\hfil} \global\oddfootline={\hfil} \global\evenheadline={\line{\thischapter\hfil\folio}} \global\oddheadline={\line{\thischapter\hfil\folio}} \global\evenchapheadline=\evenheadline \global\oddchapheadline=\oddheadline \global\let\contentsalignmacro = \chappager } % Subroutines used in generating headings % This produces Day Month Year style of output. % Only define if not already defined, in case a txi-??.tex file has set % up a different format (e.g., txi-cs.tex does this). \ifx\today\thisisundefined \def\today{% \number\day\space \ifcase\month \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec \fi \space\number\year} \fi % @settitle line... specifies the title of the document, for headings. % It generates no output of its own. \def\thistitle{\putwordNoTitle} \def\settitle{\parsearg{\gdef\thistitle}} \message{tables,} % Tables -- @table, @ftable, @vtable, @item(x). % default indentation of table text \newdimen\tableindent \tableindent=.8in % default indentation of @itemize and @enumerate text \newdimen\itemindent \itemindent=.3in % margin between end of table item and start of table text. \newdimen\itemmargin \itemmargin=.1in % used internally for \itemindent minus \itemmargin \newdimen\itemmax % Note @table, @ftable, and @vtable define @item, @itemx, etc., with % these defs. % They also define \itemindex % to index the item name in whatever manner is desired (perhaps none). \newif\ifitemxneedsnegativevskip \def\itemxpar{\par\ifitemxneedsnegativevskip\nobreak\vskip-\parskip\nobreak\fi} \def\internalBitem{\smallbreak \parsearg\itemzzz} \def\internalBitemx{\itemxpar \parsearg\itemzzz} \def\itemzzz #1{\begingroup % \advance\hsize by -\rightskip \advance\hsize by -\tableindent \setbox0=\hbox{\itemindicate{#1}}% \itemindex{#1}% \nobreak % This prevents a break before @itemx. % % If the item text does not fit in the space we have, put it on a line % by itself, and do not allow a page break either before or after that % line. We do not start a paragraph here because then if the next % command is, e.g., @kindex, the whatsit would get put into the % horizontal list on a line by itself, resulting in extra blank space. \ifdim \wd0>\itemmax % % Make this a paragraph so we get the \parskip glue and wrapping, % but leave it ragged-right. \begingroup \advance\leftskip by-\tableindent \advance\hsize by\tableindent \advance\rightskip by0pt plus1fil\relax \leavevmode\unhbox0\par \endgroup % % We're going to be starting a paragraph, but we don't want the % \parskip glue -- logically it's part of the @item we just started. \nobreak \vskip-\parskip % % Stop a page break at the \parskip glue coming up. However, if % what follows is an environment such as @example, there will be no % \parskip glue; then the negative vskip we just inserted would % cause the example and the item to crash together. So we use this % bizarre value of 10001 as a signal to \aboveenvbreak to insert % \parskip glue after all. Section titles are handled this way also. % \penalty 10001 \endgroup \itemxneedsnegativevskipfalse \else % The item text fits into the space. Start a paragraph, so that the % following text (if any) will end up on the same line. \noindent % Do this with kerns and \unhbox so that if there is a footnote in % the item text, it can migrate to the main vertical list and % eventually be printed. \nobreak\kern-\tableindent \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0 \unhbox0 \nobreak\kern\dimen0 \endgroup \itemxneedsnegativevskiptrue \fi } \def\item{\errmessage{@item while not in a list environment}} \def\itemx{\errmessage{@itemx while not in a list environment}} % @table, @ftable, @vtable. \envdef\table{% \let\itemindex\gobble \tablecheck{table}% } \envdef\ftable{% \def\itemindex ##1{\doind {fn}{\code{##1}}}% \tablecheck{ftable}% } \envdef\vtable{% \def\itemindex ##1{\doind {vr}{\code{##1}}}% \tablecheck{vtable}% } \def\tablecheck#1{% \ifnum \the\catcode`\^^M=\active \endgroup \errmessage{This command won't work in this context; perhaps the problem is that we are \inenvironment\thisenv}% \def\next{\doignore{#1}}% \else \let\next\tablex \fi \next } \def\tablex#1{% \def\itemindicate{#1}% \parsearg\tabley } \def\tabley#1{% {% \makevalueexpandable \edef\temp{\noexpand\tablez #1\space\space\space}% \expandafter }\temp \endtablez } \def\tablez #1 #2 #3 #4\endtablez{% \aboveenvbreak \ifnum 0#1>0 \advance \leftskip by #1\mil \fi \ifnum 0#2>0 \tableindent=#2\mil \fi \ifnum 0#3>0 \advance \rightskip by #3\mil \fi \itemmax=\tableindent \advance \itemmax by -\itemmargin \advance \leftskip by \tableindent \exdentamount=\tableindent \parindent = 0pt \parskip = \smallskipamount \ifdim \parskip=0pt \parskip=2pt \fi \let\item = \internalBitem \let\itemx = \internalBitemx } \def\Etable{\endgraf\afterenvbreak} \let\Eftable\Etable \let\Evtable\Etable \let\Eitemize\Etable \let\Eenumerate\Etable % This is the counter used by @enumerate, which is really @itemize \newcount \itemno \envdef\itemize{\parsearg\doitemize} \def\doitemize#1{% \aboveenvbreak \itemmax=\itemindent \advance\itemmax by -\itemmargin \advance\leftskip by \itemindent \exdentamount=\itemindent \parindent=0pt \parskip=\smallskipamount \ifdim\parskip=0pt \parskip=2pt \fi % % Try typesetting the item mark so that if the document erroneously says % something like @itemize @samp (intending @table), there's an error % right away at the @itemize. It's not the best error message in the % world, but it's better than leaving it to the @item. This means if % the user wants an empty mark, they have to say @w{} not just @w. \def\itemcontents{#1}% \setbox0 = \hbox{\itemcontents}% % % @itemize with no arg is equivalent to @itemize @bullet. \ifx\itemcontents\empty\def\itemcontents{\bullet}\fi % \let\item=\itemizeitem } % Definition of @item while inside @itemize and @enumerate. % \def\itemizeitem{% \advance\itemno by 1 % for enumerations {\let\par=\endgraf \smallbreak}% reasonable place to break {% % If the document has an @itemize directly after a section title, a % \nobreak will be last on the list, and \sectionheading will have % done a \vskip-\parskip. In that case, we don't want to zero % parskip, or the item text will crash with the heading. On the % other hand, when there is normal text preceding the item (as there % usually is), we do want to zero parskip, or there would be too much % space. In that case, we won't have a \nobreak before. At least % that's the theory. \ifnum\lastpenalty<10000 \parskip=0in \fi \noindent \hbox to 0pt{\hss \itemcontents \kern\itemmargin}% % \ifinner\else \vadjust{\penalty 1200}% not good to break after first line of item. \fi % We can be in inner vertical mode in a footnote, although an % @itemize looks awful there. }% \flushcr } % \splitoff TOKENS\endmark defines \first to be the first token in % TOKENS, and \rest to be the remainder. % \def\splitoff#1#2\endmark{\def\first{#1}\def\rest{#2}}% % Allow an optional argument of an uppercase letter, lowercase letter, % or number, to specify the first label in the enumerated list. No % argument is the same as `1'. % \envparseargdef\enumerate{\enumeratey #1 \endenumeratey} \def\enumeratey #1 #2\endenumeratey{% % If we were given no argument, pretend we were given `1'. \def\thearg{#1}% \ifx\thearg\empty \def\thearg{1}\fi % % Detect if the argument is a single token. If so, it might be a % letter. Otherwise, the only valid thing it can be is a number. % (We will always have one token, because of the test we just made. % This is a good thing, since \splitoff doesn't work given nothing at % all -- the first parameter is undelimited.) \expandafter\splitoff\thearg\endmark \ifx\rest\empty % Only one token in the argument. It could still be anything. % A ``lowercase letter'' is one whose \lccode is nonzero. % An ``uppercase letter'' is one whose \lccode is both nonzero, and % not equal to itself. % Otherwise, we assume it's a number. % % We need the \relax at the end of the \ifnum lines to stop TeX from % continuing to look for a . % \ifnum\lccode\expandafter`\thearg=0\relax \numericenumerate % a number (we hope) \else % It's a letter. \ifnum\lccode\expandafter`\thearg=\expandafter`\thearg\relax \lowercaseenumerate % lowercase letter \else \uppercaseenumerate % uppercase letter \fi \fi \else % Multiple tokens in the argument. We hope it's a number. \numericenumerate \fi } % An @enumerate whose labels are integers. The starting integer is % given in \thearg. % \def\numericenumerate{% \itemno = \thearg \startenumeration{\the\itemno}% } % The starting (lowercase) letter is in \thearg. \def\lowercaseenumerate{% \itemno = \expandafter`\thearg \startenumeration{% % Be sure we're not beyond the end of the alphabet. \ifnum\itemno=0 \errmessage{No more lowercase letters in @enumerate; get a bigger alphabet}% \fi \char\lccode\itemno }% } % The starting (uppercase) letter is in \thearg. \def\uppercaseenumerate{% \itemno = \expandafter`\thearg \startenumeration{% % Be sure we're not beyond the end of the alphabet. \ifnum\itemno=0 \errmessage{No more uppercase letters in @enumerate; get a bigger alphabet} \fi \char\uccode\itemno }% } % Call \doitemize, adding a period to the first argument and supplying the % common last two arguments. Also subtract one from the initial value in % \itemno, since @item increments \itemno. % \def\startenumeration#1{% \advance\itemno by -1 \doitemize{#1.}\flushcr } % @multitable macros % Macros used to set up halign preamble: % \let\endsetuptable\relax \def\xendsetuptable{\endsetuptable} \let\columnfractions\relax \def\xcolumnfractions{\columnfractions} \newif\ifsetpercent % #1 is the @columnfraction, usually a decimal number like .5, but might % be just 1. We just use it, whatever it is. % \def\pickupwholefraction#1 {% \global\advance\colcount by 1 \expandafter\xdef\csname col\the\colcount\endcsname{#1\hsize}% \setuptable } \newcount\colcount \def\setuptable#1{% \def\firstarg{#1}% \ifx\firstarg\xendsetuptable \let\go = \relax \else \ifx\firstarg\xcolumnfractions \global\setpercenttrue \else \ifsetpercent \let\go\pickupwholefraction \else \global\advance\colcount by 1 \setbox0=\hbox{#1\unskip\space}% Add a normal word space as a % separator; typically that is always in the input, anyway. \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}% \fi \fi \ifx\go\pickupwholefraction % Put the argument back for the \pickupwholefraction call, so % we'll always have a period there to be parsed. \def\go{\pickupwholefraction#1}% \else \let\go = \setuptable \fi% \fi \go } % @headitem starts a heading row, which we typeset in bold. Assignments % have to be global since we are inside the implicit group of an % alignment entry. \everycr below resets \everytab so we don't have to % undo it ourselves. \def\headitemfont{\b}% for people to use in the template row; not changeable \def\headitem{% \checkenv\multitable \crcr \gdef\headitemcrhook{\nobreak}% attempt to avoid page break after headings \global\everytab={\bf}% can't use \headitemfont since the parsing differs \the\everytab % for the first item }% % % default for tables with no headings. \let\headitemcrhook=\relax % \def\tab{\checkenv\multitable &\the\everytab}% \newtoks\everytab % insert after every tab. % \envdef\multitable{% \vskip\parskip \startsavinginserts % % @item within a multitable starts a normal row. % We use \def instead of \let so that if one of the multitable entries % contains an @itemize, we don't choke on the \item (seen as \crcr aka % \endtemplate) expanding \doitemize. \def\item{\crcr}% % \tolerance=9500 \hbadness=9500 \parskip=0pt \parindent=6pt \overfullrule=0pt \global\colcount=0 % \everycr = {% \noalign{% \global\everytab={}% Reset from possible headitem. \global\colcount=0 % Reset the column counter. % % Check for saved footnotes, etc.: \checkinserts % % Perhaps a \nobreak, then reset: \headitemcrhook \global\let\headitemcrhook=\relax }% }% % \parsearg\domultitable } \def\domultitable#1{% % To parse everything between @multitable and @item: \setuptable#1 \endsetuptable % % This preamble sets up a generic column definition, which will % be used as many times as user calls for columns. % \vtop will set a single line and will also let text wrap and % continue for many paragraphs if desired. \halign\bgroup &% \global\advance\colcount by 1 \strut \vtop{% \advance\hsize by -1\leftskip % Find the correct column width \hsize=\expandafter\csname col\the\colcount\endcsname % \advance\rightskip by -1\rightskip % Zero leaving only any stretch \ifnum\colcount=1 \advance\hsize by\leftskip % Add indent of surrounding text \else % In order to keep entries from bumping into each other. \leftskip=12pt \ifsetpercent \else % If a template has been used \advance\hsize by \leftskip \fi \fi \noindent\ignorespaces##\unskip\strut }\cr } \def\Emultitable{% \crcr \egroup % end the \halign \global\setpercentfalse } \message{conditionals,} % @iftex, @ifnotdocbook, @ifnothtml, @ifnotinfo, @ifnotplaintext, % @ifnotxml always succeed. They currently do nothing; we don't % attempt to check whether the conditionals are properly nested. But we % have to remember that they are conditionals, so that @end doesn't % attempt to close an environment group. % \def\makecond#1{% \expandafter\let\csname #1\endcsname = \relax \expandafter\let\csname iscond.#1\endcsname = 1 } \makecond{iftex} \makecond{ifnotdocbook} \makecond{ifnothtml} \makecond{ifnotinfo} \makecond{ifnotplaintext} \makecond{ifnotxml} % Ignore @ignore, @ifhtml, @ifinfo, and the like. % \def\direntry{\doignore{direntry}} \def\documentdescription{\doignore{documentdescription}} \def\docbook{\doignore{docbook}} \def\html{\doignore{html}} \def\ifdocbook{\doignore{ifdocbook}} \def\ifhtml{\doignore{ifhtml}} \def\ifinfo{\doignore{ifinfo}} \def\ifnottex{\doignore{ifnottex}} \def\ifplaintext{\doignore{ifplaintext}} \def\ifxml{\doignore{ifxml}} \def\ignore{\doignore{ignore}} \def\menu{\doignore{menu}} \def\xml{\doignore{xml}} % Ignore text until a line `@end #1', keeping track of nested conditionals. % % A count to remember the depth of nesting. \newcount\doignorecount \def\doignore#1{\begingroup % Scan in ``verbatim'' mode: \obeylines \catcode`\@ = \other \catcode`\{ = \other \catcode`\} = \other % % Make sure that spaces turn into tokens that match what \doignoretext wants. \spaceisspace % % Count number of #1's that we've seen. \doignorecount = 0 % % Swallow text until we reach the matching `@end #1'. \dodoignore{#1}% } { \catcode`_=11 % We want to use \_STOP_ which cannot appear in texinfo source. \obeylines % % \gdef\dodoignore#1{% % #1 contains the command name as a string, e.g., `ifinfo'. % % Define a command to find the next `@end #1'. \long\def\doignoretext##1^^M@end #1{% \doignoretextyyy##1^^M@#1\_STOP_}% % % And this command to find another #1 command, at the beginning of a % line. (Otherwise, we would consider a line `@c @ifset', for % example, to count as an @ifset for nesting.) \long\def\doignoretextyyy##1^^M@#1##2\_STOP_{\doignoreyyy{##2}\_STOP_}% % % And now expand that command. \doignoretext ^^M% }% } \def\doignoreyyy#1{% \def\temp{#1}% \ifx\temp\empty % Nothing found. \let\next\doignoretextzzz \else % Found a nested condition, ... \advance\doignorecount by 1 \let\next\doignoretextyyy % ..., look for another. % If we're here, #1 ends with ^^M\ifinfo (for example). \fi \next #1% the token \_STOP_ is present just after this macro. } % We have to swallow the remaining "\_STOP_". % \def\doignoretextzzz#1{% \ifnum\doignorecount = 0 % We have just found the outermost @end. \let\next\enddoignore \else % Still inside a nested condition. \advance\doignorecount by -1 \let\next\doignoretext % Look for the next @end. \fi \next } % Finish off ignored text. { \obeylines% % Ignore anything after the last `@end #1'; this matters in verbatim % environments, where otherwise the newline after an ignored conditional % would result in a blank line in the output. \gdef\enddoignore#1^^M{\endgroup\ignorespaces}% } % @set VAR sets the variable VAR to an empty value. % @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE. % % Since we want to separate VAR from REST-OF-LINE (which might be % empty), we can't just use \parsearg; we have to insert a space of our % own to delimit the rest of the line, and then take it out again if we % didn't need it. % We rely on the fact that \parsearg sets \catcode`\ =10. % \parseargdef\set{\setyyy#1 \endsetyyy} \def\setyyy#1 #2\endsetyyy{% {% \makevalueexpandable \def\temp{#2}% \edef\next{\gdef\makecsname{SET#1}}% \ifx\temp\empty \next{}% \else \setzzz#2\endsetzzz \fi }% } % Remove the trailing space \setxxx inserted. \def\setzzz#1 \endsetzzz{\next{#1}} % @clear VAR clears (i.e., unsets) the variable VAR. % \parseargdef\clear{% {% \makevalueexpandable \global\expandafter\let\csname SET#1\endcsname=\relax }% } % @value{foo} gets the text saved in variable foo. \def\value{\begingroup\makevalueexpandable\valuexxx} \def\valuexxx#1{\expandablevalue{#1}\endgroup} { \catcode`\-=\active \catcode`\_=\active % \gdef\makevalueexpandable{% \let\value = \expandablevalue % We don't want these characters active, ... \catcode`\-=\other \catcode`\_=\other % ..., but we might end up with active ones in the argument if % we're called from @code, as @code{@value{foo-bar_}}, though. % So \let them to their normal equivalents. \let-\normaldash \let_\normalunderscore } } \def\expandablevalue#1{% \expandafter\ifx\csname SET#1\endcsname\relax {[No value for ``#1'']}% \message{Variable `#1', used in @value, is not set.}% \else \csname SET#1\endcsname \fi } % Like \expandablevalue, but completely expandable (the \message in the % definition above operates at the execution level of TeX). Used when % writing to auxiliary files, due to the expansion that \write does. % If flag is undefined, pass through an unexpanded @value command: maybe it % will be set by the time it is read back in. % % NB flag names containing - or _ may not work here. \def\dummyvalue#1{% \expandafter\ifx\csname SET#1\endcsname\relax \string\value{#1}% \else \csname SET#1\endcsname \fi } % Used for @value's in index entries to form the sort key: expand the @value % if possible, otherwise sort late. \def\indexnofontsvalue#1{% \expandafter\ifx\csname SET#1\endcsname\relax ZZZZZZZ% \else \csname SET#1\endcsname \fi } % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined % with @set. % % To get the special treatment we need for `@end ifset,' we call % \makecond and then redefine. % \makecond{ifset} \def\ifset{\parsearg{\doifset{\let\next=\ifsetfail}}} \def\doifset#1#2{% {% \makevalueexpandable \let\next=\empty \expandafter\ifx\csname SET#2\endcsname\relax #1% If not set, redefine \next. \fi \expandafter }\next } \def\ifsetfail{\doignore{ifset}} % @ifclear VAR ... @end executes the `...' iff VAR has never been % defined with @set, or has been undefined with @clear. % % The `\else' inside the `\doifset' parameter is a trick to reuse the % above code: if the variable is not set, do nothing, if it is set, % then redefine \next to \ifclearfail. % \makecond{ifclear} \def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}} \def\ifclearfail{\doignore{ifclear}} % @ifcommandisdefined CMD ... @end executes the `...' if CMD (written % without the @) is in fact defined. We can only feasibly check at the % TeX level, so something like `mathcode' is going to considered % defined even though it is not a Texinfo command. % \makecond{ifcommanddefined} \def\ifcommanddefined{\parsearg{\doifcmddefined{\let\next=\ifcmddefinedfail}}} % \def\doifcmddefined#1#2{{% \makevalueexpandable \let\next=\empty \expandafter\ifx\csname #2\endcsname\relax #1% If not defined, \let\next as above. \fi \expandafter }\next } \def\ifcmddefinedfail{\doignore{ifcommanddefined}} % @ifcommandnotdefined CMD ... handled similar to @ifclear above. \makecond{ifcommandnotdefined} \def\ifcommandnotdefined{% \parsearg{\doifcmddefined{\else \let\next=\ifcmdnotdefinedfail}}} \def\ifcmdnotdefinedfail{\doignore{ifcommandnotdefined}} % Set the `txicommandconditionals' variable, so documents have a way to % test if the @ifcommand...defined conditionals are available. \set txicommandconditionals % @dircategory CATEGORY -- specify a category of the dir file % which this file should belong to. Ignore this in TeX. \let\dircategory=\comment % @defininfoenclose. \let\definfoenclose=\comment \message{indexing,} % Index generation facilities % Define \newwrite to be identical to plain tex's \newwrite % except not \outer, so it can be used within macros and \if's. \edef\newwrite{\makecsname{ptexnewwrite}} % \newindex {foo} defines an index named IX. % It automatically defines \IXindex such that % \IXindex ...rest of line... puts an entry in the index IX. % It also defines \IXindfile to be the number of the output channel for % the file that accumulates this index. The file's extension is IX. % The name of an index should be no more than 2 characters long % for the sake of vms. % \def\newindex#1{% \expandafter\chardef\csname#1indfile\endcsname=0 \expandafter\xdef\csname#1index\endcsname{% % Define @#1index \noexpand\doindex{#1}} } % @defindex foo == \newindex{foo} % \def\defindex{\parsearg\newindex} % Define @defcodeindex, like @defindex except put all entries in @code. % \def\defcodeindex{\parsearg\newcodeindex} % \def\newcodeindex#1{% \expandafter\chardef\csname#1indfile\endcsname=0 \expandafter\xdef\csname#1index\endcsname{% \noexpand\docodeindex{#1}}% } % The default indices: \newindex{cp}% concepts, \newcodeindex{fn}% functions, \newcodeindex{vr}% variables, \newcodeindex{tp}% types, \newcodeindex{ky}% keys \newcodeindex{pg}% and programs. % @synindex foo bar makes index foo feed into index bar. % Do this instead of @defindex foo if you don't want it as a separate index. % % @syncodeindex foo bar similar, but put all entries made for index foo % inside @code. % \def\synindex#1 #2 {\dosynindex\doindex{#1}{#2}} \def\syncodeindex#1 #2 {\dosynindex\docodeindex{#1}{#2}} % #1 is \doindex or \docodeindex, #2 the index getting redefined (foo), % #3 the target index (bar). \def\dosynindex#1#2#3{% \requireopenindexfile{#3}% % redefine \fooindfile: \expandafter\let\expandafter\temp\expandafter=\csname#3indfile\endcsname \expandafter\let\csname#2indfile\endcsname=\temp % redefine \fooindex: \expandafter\xdef\csname#2index\endcsname{\noexpand#1{#3}}% } % Define \doindex, the driver for all index macros. % Argument #1 is generated by the calling \fooindex macro, % and it is the two-letter name of the index. \def\doindex#1{\edef\indexname{#1}\parsearg\doindexxxx} \def\doindexxxx #1{\doind{\indexname}{#1}} % like the previous two, but they put @code around the argument. \def\docodeindex#1{\edef\indexname{#1}\parsearg\docodeindexxxx} \def\docodeindexxxx #1{\docind{\indexname}{#1}} % Used for the aux, toc and index files to prevent expansion of Texinfo % commands. % \def\atdummies{% \definedummyletter\@% \definedummyletter\ % \definedummyletter\{% \definedummyletter\}% \definedummyletter\&% % % Do the redefinitions. \definedummies \otherbackslash } % \definedummyword defines \#1 as \string\#1\space, thus effectively % preventing its expansion. This is used only for control words, % not control letters, because the \space would be incorrect for % control characters, but is needed to separate the control word % from whatever follows. % % These can be used both for control words that take an argument and % those that do not. If it is followed by {arg} in the input, then % that will dutifully get written to the index (or wherever). % % For control letters, we have \definedummyletter, which omits the % space. % \def\definedummyword #1{\def#1{\string#1\space}}% \def\definedummyletter#1{\def#1{\string#1}}% \let\definedummyaccent\definedummyletter % Called from \atdummies to prevent the expansion of commands. % \def\definedummies{% % \let\commondummyword\definedummyword \let\commondummyletter\definedummyletter \let\commondummyaccent\definedummyaccent \commondummiesnofonts % \definedummyletter\_% \definedummyletter\-% % % Non-English letters. \definedummyword\AA \definedummyword\AE \definedummyword\DH \definedummyword\L \definedummyword\O \definedummyword\OE \definedummyword\TH \definedummyword\aa \definedummyword\ae \definedummyword\dh \definedummyword\exclamdown \definedummyword\l \definedummyword\o \definedummyword\oe \definedummyword\ordf \definedummyword\ordm \definedummyword\questiondown \definedummyword\ss \definedummyword\th % % Although these internal commands shouldn't show up, sometimes they do. \definedummyword\bf \definedummyword\gtr \definedummyword\hat \definedummyword\less \definedummyword\sf \definedummyword\sl \definedummyword\tclose \definedummyword\tt % \definedummyword\LaTeX \definedummyword\TeX % % Assorted special characters. \definedummyword\ampchar \definedummyword\atchar \definedummyword\arrow \definedummyword\backslashchar \definedummyword\bullet \definedummyword\comma \definedummyword\copyright \definedummyword\registeredsymbol \definedummyword\dots \definedummyword\enddots \definedummyword\entrybreak \definedummyword\equiv \definedummyword\error \definedummyword\euro \definedummyword\expansion \definedummyword\geq \definedummyword\guillemetleft \definedummyword\guillemetright \definedummyword\guilsinglleft \definedummyword\guilsinglright \definedummyword\lbracechar \definedummyword\leq \definedummyword\mathopsup \definedummyword\minus \definedummyword\ogonek \definedummyword\pounds \definedummyword\point \definedummyword\print \definedummyword\quotedblbase \definedummyword\quotedblleft \definedummyword\quotedblright \definedummyword\quoteleft \definedummyword\quoteright \definedummyword\quotesinglbase \definedummyword\rbracechar \definedummyword\result \definedummyword\sub \definedummyword\sup \definedummyword\textdegree % \definedummyword\subentry % % We want to disable all macros so that they are not expanded by \write. \macrolist \let\value\dummyvalue % \normalturnoffactive } % \commondummiesnofonts: common to \definedummies and \indexnofonts. % Define \commondummyletter, \commondummyaccent and \commondummyword before % using. Used for accents, font commands, and various control letters. % \def\commondummiesnofonts{% % Control letters and accents. \commondummyletter\!% \commondummyaccent\"% \commondummyaccent\'% \commondummyletter\*% \commondummyaccent\,% \commondummyletter\.% \commondummyletter\/% \commondummyletter\:% \commondummyaccent\=% \commondummyletter\?% \commondummyaccent\^% \commondummyaccent\`% \commondummyaccent\~% \commondummyword\u \commondummyword\v \commondummyword\H \commondummyword\dotaccent \commondummyword\ogonek \commondummyword\ringaccent \commondummyword\tieaccent \commondummyword\ubaraccent \commondummyword\udotaccent \commondummyword\dotless % % Texinfo font commands. \commondummyword\b \commondummyword\i \commondummyword\r \commondummyword\sansserif \commondummyword\sc \commondummyword\slanted \commondummyword\t % % Commands that take arguments. \commondummyword\abbr \commondummyword\acronym \commondummyword\anchor \commondummyword\cite \commondummyword\code \commondummyword\command \commondummyword\dfn \commondummyword\dmn \commondummyword\email \commondummyword\emph \commondummyword\env \commondummyword\file \commondummyword\image \commondummyword\indicateurl \commondummyword\inforef \commondummyword\kbd \commondummyword\key \commondummyword\math \commondummyword\option \commondummyword\pxref \commondummyword\ref \commondummyword\samp \commondummyword\strong \commondummyword\tie \commondummyword\U \commondummyword\uref \commondummyword\url \commondummyword\var \commondummyword\verb \commondummyword\w \commondummyword\xref } \let\indexlbrace\relax \let\indexrbrace\relax \let\indexatchar\relax \let\indexbackslash\relax {\catcode`\@=0 \catcode`\\=13 @gdef@backslashdisappear{@def\{}} } { \catcode`\<=13 \catcode`\-=13 \catcode`\`=13 \gdef\indexnonalnumdisappear{% \expandafter\ifx\csname SETtxiindexlquoteignore\endcsname\relax\else % @set txiindexlquoteignore makes us ignore left quotes in the sort term. % (Introduced for FSFS 2nd ed.) \let`=\empty \fi % \expandafter\ifx\csname SETtxiindexbackslashignore\endcsname\relax\else \backslashdisappear \fi % \expandafter\ifx\csname SETtxiindexhyphenignore\endcsname\relax\else \def-{}% \fi \expandafter\ifx\csname SETtxiindexlessthanignore\endcsname\relax\else \def<{}% \fi \expandafter\ifx\csname SETtxiindexatsignignore\endcsname\relax\else \def\@{}% \fi } \gdef\indexnonalnumreappear{% \let-\normaldash \let<\normalless } } % \indexnofonts is used when outputting the strings to sort the index % by, and when constructing control sequence names. It eliminates all % control sequences and just writes whatever the best ASCII sort string % would be for a given command (usually its argument). % \def\indexnofonts{% % Accent commands should become @asis. \def\commondummyaccent##1{\let##1\asis}% % We can just ignore other control letters. \def\commondummyletter##1{\let##1\empty}% % All control words become @asis by default; overrides below. \let\commondummyword\commondummyaccent \commondummiesnofonts % % Don't no-op \tt, since it isn't a user-level command % and is used in the definitions of the active chars like <, >, |, etc. % Likewise with the other plain tex font commands. %\let\tt=\asis % \def\ { }% \def\@{@}% \def\_{\normalunderscore}% \def\-{}% @- shouldn't affect sorting % \uccode`\1=`\{ \uppercase{\def\{{1}}% \uccode`\1=`\} \uppercase{\def\}{1}}% \let\lbracechar\{% \let\rbracechar\}% % % Non-English letters. \def\AA{AA}% \def\AE{AE}% \def\DH{DZZ}% \def\L{L}% \def\OE{OE}% \def\O{O}% \def\TH{TH}% \def\aa{aa}% \def\ae{ae}% \def\dh{dzz}% \def\exclamdown{!}% \def\l{l}% \def\oe{oe}% \def\ordf{a}% \def\ordm{o}% \def\o{o}% \def\questiondown{?}% \def\ss{ss}% \def\th{th}% % \let\do\indexnofontsdef % \do\LaTeX{LaTeX}% \do\TeX{TeX}% % % Assorted special characters. \do\atchar{@}% \do\arrow{->}% \do\bullet{bullet}% \do\comma{,}% \do\copyright{copyright}% \do\dots{...}% \do\enddots{...}% \do\equiv{==}% \do\error{error}% \do\euro{euro}% \do\expansion{==>}% \do\geq{>=}% \do\guillemetleft{<<}% \do\guillemetright{>>}% \do\guilsinglleft{<}% \do\guilsinglright{>}% \do\leq{<=}% \do\lbracechar{\{}% \do\minus{-}% \do\point{.}% \do\pounds{pounds}% \do\print{-|}% \do\quotedblbase{"}% \do\quotedblleft{"}% \do\quotedblright{"}% \do\quoteleft{`}% \do\quoteright{'}% \do\quotesinglbase{,}% \do\rbracechar{\}}% \do\registeredsymbol{R}% \do\result{=>}% \do\textdegree{o}% % % We need to get rid of all macros, leaving only the arguments (if present). % Of course this is not nearly correct, but it is the best we can do for now. % makeinfo does not expand macros in the argument to @deffn, which ends up % writing an index entry, and texindex isn't prepared for an index sort entry % that starts with \. % % Since macro invocations are followed by braces, we can just redefine them % to take a single TeX argument. The case of a macro invocation that % goes to end-of-line is not handled. % \macrolist \let\value\indexnofontsvalue } % Give the control sequence a definition that removes the {} that follows % its use, e.g. @AA{} -> AA \def\indexnofontsdef#1#2{\def#1##1{#2}}% % #1 is the index name, #2 is the entry text. \def\doind#1#2{% \iflinks {% % \requireopenindexfile{#1}% \edef\writeto{\csname#1indfile\endcsname}% % \def\indextext{#2}% \safewhatsit\doindwrite }% \fi } % Same as \doind, but for code indices \def\docind#1#2{% \iflinks {% % \requireopenindexfile{#1}% \edef\writeto{\csname#1indfile\endcsname}% % \def\indextext{#2}% \safewhatsit\docindwrite }% \fi } % Check if an index file has been opened, and if not, open it. \def\requireopenindexfile#1{% \ifnum\csname #1indfile\endcsname=0 \expandafter\newwrite \csname#1indfile\endcsname \edef\suffix{#1}% % A .fls suffix would conflict with the file extension for the output % of -recorder, so use .f1s instead. \ifx\suffix\indexisfl\def\suffix{f1}\fi % Open the file \immediate\openout\csname#1indfile\endcsname \jobname.\suffix % Using \immediate above here prevents an object entering into the current % box, which could confound checks such as those in \safewhatsit for % preceding skips. \typeout{Writing index file \jobname.\suffix}% \fi} \def\indexisfl{fl} % Definition for writing index entry sort key. { \catcode`\-=13 \gdef\indexwritesortas{% \begingroup \indexnonalnumreappear \indexwritesortasxxx} \gdef\indexwritesortasxxx#1{% \xdef\indexsortkey{#1}\endgroup} } \def\indexwriteseealso#1{ \gdef\pagenumbertext{\string\seealso{#1}}% } \def\indexwriteseeentry#1{ \gdef\pagenumbertext{\string\seeentry{#1}}% } % The default definitions \def\sortas#1{}% \def\seealso#1{\i{\putwordSeeAlso}\ #1}% for sorted index file only \def\putwordSeeAlso{See also} \def\seeentry#1{\i{\putwordSee}\ #1}% for sorted index file only % Given index entry text like "aaa @subentry bbb @sortas{ZZZ}": % * Set \bracedtext to "{aaa}{bbb}" % * Set \fullindexsortkey to "aaa @subentry ZZZ" % * If @seealso occurs, set \pagenumbertext % \def\splitindexentry#1{% \gdef\fullindexsortkey{}% \xdef\bracedtext{}% \def\sep{}% \def\seealso##1{}% \def\seeentry##1{}% \expandafter\doindexsegment#1\subentry\finish\subentry } % append the results from the next segment \def\doindexsegment#1\subentry{% \def\segment{#1}% \ifx\segment\isfinish \else % % Fully expand the segment, throwing away any @sortas directives, and % trim spaces. \edef\trimmed{\segment}% \edef\trimmed{\expandafter\eatspaces\expandafter{\trimmed}}% \ifincodeindex \edef\trimmed{\noexpand\code{\trimmed}}% \fi % \xdef\bracedtext{\bracedtext{\trimmed}}% % % Get the string to sort by. Process the segment with all % font commands turned off. \bgroup \let\sortas\indexwritesortas \let\seealso\indexwriteseealso \let\seeentry\indexwriteseeentry \indexnofonts % The braces around the commands are recognized by texindex. \def\lbracechar{{\string\indexlbrace}}% \def\rbracechar{{\string\indexrbrace}}% \let\{=\lbracechar \let\}=\rbracechar \def\@{{\string\indexatchar}}% \def\atchar##1{\@}% \def\backslashchar{{\string\indexbackslash}}% \uccode`\~=`\\ \uppercase{\let~\backslashchar}% % \let\indexsortkey\empty \global\let\pagenumbertext\empty % Execute the segment and throw away the typeset output. This executes % any @sortas or @seealso commands in this segment. \setbox\dummybox = \hbox{\segment}% \ifx\indexsortkey\empty{% \indexnonalnumdisappear \xdef\trimmed{\segment}% \xdef\trimmed{\expandafter\eatspaces\expandafter{\trimmed}}% \xdef\indexsortkey{\trimmed}% \ifx\indexsortkey\empty\xdef\indexsortkey{ }\fi }\fi % % Append to \fullindexsortkey. \edef\tmp{\gdef\noexpand\fullindexsortkey{% \fullindexsortkey\sep\indexsortkey}}% \tmp \egroup \def\sep{\subentry}% % \expandafter\doindexsegment \fi } \def\isfinish{\finish}% \newbox\dummybox % used above \let\subentry\relax % Use \ instead of @ in index files. To support old texi2dvi and texindex. % This works without changing the escape character used in the toc or aux % files because the index entries are fully expanded here, and \string uses % the current value of \escapechar. \def\escapeisbackslash{\escapechar=`\\} % Use \ in index files by default. texi2dvi didn't support @ as the escape % character (as it checked for "\entry" in the files, and not "@entry"). When % the new version of texi2dvi has had a chance to become more prevalent, then % the escape character can change back to @ again. This should be an easy % change to make now because both @ and \ are only used as escape characters in % index files, never standing for themselves. % \set txiindexescapeisbackslash % Write the entry in \indextext to the index file. % \newif\ifincodeindex \def\doindwrite{\incodeindexfalse\doindwritex} \def\docindwrite{\incodeindextrue\doindwritex} \def\doindwritex{% \maybemarginindex % \atdummies % \expandafter\ifx\csname SETtxiindexescapeisbackslash\endcsname\relax\else \escapeisbackslash \fi % % For texindex which always views { and } as separators. \def\{{\lbracechar{}}% \def\}{\rbracechar{}}% \uccode`\~=`\\ \uppercase{\def~{\backslashchar{}}}% % % Split the entry into primary entry and any subentries, and get the index % sort key. \splitindexentry\indextext % % Set up the complete index entry, with both the sort key and % the original text, including any font commands. We write % three arguments to \entry to the .?? file (four in the % subentry case), texindex reduces to two when writing the .??s % sorted result. % \edef\temp{% \write\writeto{% \string\entry{\fullindexsortkey}% {\ifx\pagenumbertext\empty\noexpand\folio\else\pagenumbertext\fi}% \bracedtext}% }% \temp } % Put the index entry in the margin if desired (undocumented). \def\maybemarginindex{% \ifx\SETmarginindex\relax\else \insert\margin{\hbox{\vrule height8pt depth3pt width0pt \relax\indextext}}% \fi } \let\SETmarginindex=\relax % Take care of unwanted page breaks/skips around a whatsit: % % If a skip is the last thing on the list now, preserve it % by backing up by \lastskip, doing the \write, then inserting % the skip again. Otherwise, the whatsit generated by the % \write or \pdfdest will make \lastskip zero. The result is that % sequences like this: % @end defun % @tindex whatever % @defun ... % will have extra space inserted, because the \medbreak in the % start of the @defun won't see the skip inserted by the @end of % the previous defun. % % But don't do any of this if we're not in vertical mode. We % don't want to do a \vskip and prematurely end a paragraph. % % Avoid page breaks due to these extra skips, too. % % But wait, there is a catch there: % We'll have to check whether \lastskip is zero skip. \ifdim is not % sufficient for this purpose, as it ignores stretch and shrink parts % of the skip. The only way seems to be to check the textual % representation of the skip. % % The following is almost like \def\zeroskipmacro{0.0pt} except that % the ``p'' and ``t'' characters have catcode \other, not 11 (letter). % \edef\zeroskipmacro{\expandafter\the\csname z@skip\endcsname} % \newskip\whatsitskip \newcount\whatsitpenalty % % ..., ready, GO: % \def\safewhatsit#1{\ifhmode #1% \else % \lastskip and \lastpenalty cannot both be nonzero simultaneously. \whatsitskip = \lastskip \edef\lastskipmacro{\the\lastskip}% \whatsitpenalty = \lastpenalty % % If \lastskip is nonzero, that means the last item was a % skip. And since a skip is discardable, that means this % -\whatsitskip glue we're inserting is preceded by a % non-discardable item, therefore it is not a potential % breakpoint, therefore no \nobreak needed. \ifx\lastskipmacro\zeroskipmacro \else \vskip-\whatsitskip \fi % #1% % \ifx\lastskipmacro\zeroskipmacro % If \lastskip was zero, perhaps the last item was a penalty, and % perhaps it was >=10000, e.g., a \nobreak. In that case, we want % to re-insert the same penalty (values >10000 are used for various % signals); since we just inserted a non-discardable item, any % following glue (such as a \parskip) would be a breakpoint. For example: % @deffn deffn-whatever % @vindex index-whatever % Description. % would allow a break between the index-whatever whatsit % and the "Description." paragraph. \ifnum\whatsitpenalty>9999 \penalty\whatsitpenalty \fi \else % On the other hand, if we had a nonzero \lastskip, % this make-up glue would be preceded by a non-discardable item % (the whatsit from the \write), so we must insert a \nobreak. \nobreak\vskip\whatsitskip \fi \fi} % The index entry written in the file actually looks like % \entry {sortstring}{page}{topic} % or % \entry {sortstring}{page}{topic}{subtopic} % The texindex program reads in these files and writes files % containing these kinds of lines: % \initial {c} % before the first topic whose initial is c % \entry {topic}{pagelist} % for a topic that is used without subtopics % \primary {topic} % \entry {topic}{} % for the beginning of a topic that is used with subtopics % \secondary {subtopic}{pagelist} % for each subtopic. % \secondary {subtopic}{} % for a subtopic with sub-subtopics % \tertiary {subtopic}{subsubtopic}{pagelist} % for each sub-subtopic. % Define the user-accessible indexing commands % @findex, @vindex, @kindex, @cindex. \def\findex {\fnindex} \def\kindex {\kyindex} \def\cindex {\cpindex} \def\vindex {\vrindex} \def\tindex {\tpindex} \def\pindex {\pgindex} % Define the macros used in formatting output of the sorted index material. % @printindex causes a particular index (the ??s file) to get printed. % It does not print any chapter heading (usually an @unnumbered). % \parseargdef\printindex{\begingroup \dobreak \chapheadingskip{10000}% % \smallfonts \rm \tolerance = 9500 \plainfrenchspacing \everypar = {}% don't want the \kern\-parindent from indentation suppression. % % See comment in \requireopenindexfile. \def\indexname{#1}\ifx\indexname\indexisfl\def\indexname{f1}\fi % % See if the index file exists and is nonempty. \openin 1 \jobname.\indexname s \ifeof 1 % \enddoublecolumns gets confused if there is no text in the index, % and it loses the chapter title and the aux file entries for the % index. The easiest way to prevent this problem is to make sure % there is some text. \putwordIndexNonexistent \typeout{No file \jobname.\indexname s.}% \else % If the index file exists but is empty, then \openin leaves \ifeof % false. We have to make TeX try to read something from the file, so % it can discover if there is anything in it. \read 1 to \thisline \ifeof 1 \putwordIndexIsEmpty \else \expandafter\printindexzz\thisline\relax\relax\finish% \fi \fi \closein 1 \endgroup} % If the index file starts with a backslash, forgo reading the index % file altogether. If somebody upgrades texinfo.tex they may still have % old index files using \ as the escape character. Reading this would % at best lead to typesetting garbage, at worst a TeX syntax error. \def\printindexzz#1#2\finish{% \expandafter\ifx\csname SETtxiindexescapeisbackslash\endcsname\relax \uccode`\~=`\\ \uppercase{\if\noexpand~}\noexpand#1 \expandafter\ifx\csname SETtxiskipindexfileswithbackslash\endcsname\relax \errmessage{% ERROR: A sorted index file in an obsolete format was skipped. To fix this problem, please upgrade your version of 'texi2dvi' or 'texi2pdf' to that at . If you are using an old version of 'texindex' (part of the Texinfo distribution), you may also need to upgrade to a newer version (at least 6.0). You may be able to typeset the index if you run 'texindex \jobname.\indexname' yourself. You could also try setting the 'txiindexescapeisbackslash' flag by running a command like 'texi2dvi -t "@set txiindexescapeisbackslash" \jobname.texi'. If you do this, Texinfo will try to use index files in the old format. If you continue to have problems, deleting the index files and starting again might help (with 'rm \jobname.?? \jobname.??s')% }% \else (Skipped sorted index file in obsolete format) \fi \else \begindoublecolumns \input \jobname.\indexname s \enddoublecolumns \fi \else \begindoublecolumns \catcode`\\=0\relax % % Make @ an escape character to give macros a chance to work. This % should work because we (hopefully) don't otherwise use @ in index files. %\catcode`\@=12\relax \catcode`\@=0\relax \input \jobname.\indexname s \enddoublecolumns \fi } % These macros are used by the sorted index file itself. % Change them to control the appearance of the index. {\catcode`\/=13 \catcode`\-=13 \catcode`\^=13 \catcode`\~=13 \catcode`\_=13 \catcode`\|=13 \catcode`\<=13 \catcode`\>=13 \catcode`\+=13 \catcode`\"=13 \catcode`\$=3 \gdef\initialglyphs{% % special control sequences used in the index sort key \let\indexlbrace\{% \let\indexrbrace\}% \let\indexatchar\@% \def\indexbackslash{\math{\backslash}}% % % Some changes for non-alphabetic characters. Using the glyphs from the % math fonts looks more consistent than the typewriter font used elsewhere % for these characters. \uccode`\~=`\\ \uppercase{\def~{\math{\backslash}}} % % In case @\ is used for backslash \uppercase{\let\\=~} % Can't get bold backslash so don't use bold forward slash \catcode`\/=13 \def/{{\secrmnotbold \normalslash}}% \def-{{\normaldash\normaldash}}% en dash `--' \def^{{\chapbf \normalcaret}}% \def~{{\chapbf \normaltilde}}% \def\_{% \leavevmode \kern.07em \vbox{\hrule width.3em height.1ex}\kern .07em }% \def|{$\vert$}% \def<{$\less$}% \def>{$\gtr$}% \def+{$\normalplus$}% }} \def\initial{% \bgroup \initialglyphs \initialx } \def\initialx#1{% % Remove any glue we may have, we'll be inserting our own. \removelastskip % % We like breaks before the index initials, so insert a bonus. % The glue before the bonus allows a little bit of space at the % bottom of a column to reduce an increase in inter-line spacing. \nobreak \vskip 0pt plus 5\baselineskip \penalty -300 \vskip 0pt plus -5\baselineskip % % Typeset the initial. Making this add up to a whole number of % baselineskips increases the chance of the dots lining up from column % to column. It still won't often be perfect, because of the stretch % we need before each entry, but it's better. % % No shrink because it confuses \balancecolumns. \vskip 1.67\baselineskip plus 1\baselineskip \leftline{\secfonts \kern-0.05em \secbf #1}% % \secfonts is inside the argument of \leftline so that the change of % \baselineskip will not affect any glue inserted before the vbox that % \leftline creates. % Do our best not to break after the initial. \nobreak \vskip .33\baselineskip plus .1\baselineskip \egroup % \initialglyphs } \newdimen\entryrightmargin \entryrightmargin=0pt % \entry typesets a paragraph consisting of the text (#1), dot leaders, and % then page number (#2) flushed to the right margin. It is used for index % and table of contents entries. The paragraph is indented by \leftskip. % \def\entry{% \begingroup % % Start a new paragraph if necessary, so our assignments below can't % affect previous text. \par % % No extra space above this paragraph. \parskip = 0in % % When reading the text of entry, convert explicit line breaks % from @* into spaces. The user might give these in long section % titles, for instance. \def\*{\unskip\space\ignorespaces}% \def\entrybreak{\hfil\break}% An undocumented command % % Swallow the left brace of the text (first parameter): \afterassignment\doentry \let\temp = } \def\entrybreak{\unskip\space\ignorespaces}% \def\doentry{% % Save the text of the entry \global\setbox\boxA=\hbox\bgroup \bgroup % Instead of the swallowed brace. \noindent \aftergroup\finishentry % And now comes the text of the entry. % Not absorbing as a macro argument reduces the chance of problems % with catcodes occurring. } {\catcode`\@=11 \gdef\finishentry#1{% \egroup % end box A \dimen@ = \wd\boxA % Length of text of entry \global\setbox\boxA=\hbox\bgroup \unhbox\boxA % #1 is the page number. % % Get the width of the page numbers, and only use % leaders if they are present. \global\setbox\boxB = \hbox{#1}% \ifdim\wd\boxB = 0pt \null\nobreak\hfill\ % \else % \null\nobreak\indexdotfill % Have leaders before the page number. % \ifpdforxetex \pdfgettoks#1.% \hskip\skip\thinshrinkable\the\toksA \else \hskip\skip\thinshrinkable #1% \fi \fi \egroup % end \boxA \ifdim\wd\boxB = 0pt \noindent\unhbox\boxA\par \nobreak \else\bgroup % We want the text of the entries to be aligned to the left, and the % page numbers to be aligned to the right. % \parindent = 0pt \advance\leftskip by 0pt plus 1fil \advance\leftskip by 0pt plus -1fill \rightskip = 0pt plus -1fil \advance\rightskip by 0pt plus 1fill % Cause last line, which could consist of page numbers on their own % if the list of page numbers is long, to be aligned to the right. \parfillskip=0pt plus -1fill % \advance\rightskip by \entryrightmargin % Determine how far we can stretch into the margin. % This allows, e.g., "Appendix H GNU Free Documentation License" to % fit on one line in @letterpaper format. \ifdim\entryrightmargin>2.1em \dimen@i=2.1em \else \dimen@i=0em \fi \advance \parfillskip by 0pt minus 1\dimen@i % \dimen@ii = \hsize \advance\dimen@ii by -1\leftskip \advance\dimen@ii by -1\entryrightmargin \advance\dimen@ii by 1\dimen@i \ifdim\wd\boxA > \dimen@ii % If the entry doesn't fit in one line \ifdim\dimen@ > 0.8\dimen@ii % due to long index text % Try to split the text roughly evenly. \dimen@ will be the length of % the first line. \dimen@ = 0.7\dimen@ \dimen@ii = \hsize \ifnum\dimen@>\dimen@ii % If the entry is too long (for example, if it needs more than % two lines), use all the space in the first line. \dimen@ = \dimen@ii \fi \advance\leftskip by 0pt plus 1fill % ragged right \advance \dimen@ by 1\rightskip \parshape = 2 0pt \dimen@ 0em \dimen@ii % Ideally we'd add a finite glue at the end of the first line only, % instead of using \parshape with explicit line lengths, but TeX % doesn't seem to provide a way to do such a thing. % % Indent all lines but the first one. \advance\leftskip by 1em \advance\parindent by -1em \fi\fi \indent % start paragraph \unhbox\boxA % % Do not prefer a separate line ending with a hyphen to fewer lines. \finalhyphendemerits = 0 % % Word spacing - no stretch \spaceskip=\fontdimen2\font minus \fontdimen4\font % \linepenalty=1000 % Discourage line breaks. \hyphenpenalty=5000 % Discourage hyphenation. % \par % format the paragraph \egroup % The \vbox \fi \endgroup }} \newskip\thinshrinkable \skip\thinshrinkable=.15em minus .15em % Like plain.tex's \dotfill, except uses up at least 1 em. % The filll stretch here overpowers both the fil and fill stretch to push % the page number to the right. \def\indexdotfill{\cleaders \hbox{$\mathsurround=0pt \mkern1.5mu.\mkern1.5mu$}\hskip 1em plus 1filll} \def\primary #1{\line{#1\hfil}} \def\secondary{\indententry{0.5cm}} \def\tertiary{\indententry{1cm}} \def\indententry#1#2#3{% \bgroup \leftskip=#1 \entry{#2}{#3}% \egroup } % Define two-column mode, which we use to typeset indexes. % Adapted from the TeXbook, page 416, which is to say, % the manmac.tex format used to print the TeXbook itself. \catcode`\@=11 % private names \newbox\partialpage \newdimen\doublecolumnhsize \def\begindoublecolumns{\begingroup % ended by \enddoublecolumns % If not much space left on page, start a new page. \ifdim\pagetotal>0.8\vsize\vfill\eject\fi % % Grab any single-column material above us. \output = {% \savetopmark % \global\setbox\partialpage = \vbox{% % Unvbox the main output page. \unvbox\PAGE \kern-\topskip \kern\baselineskip }% }% \eject % run that output routine to set \partialpage % % Use the double-column output routine for subsequent pages. \output = {\doublecolumnout}% % % Change the page size parameters. We could do this once outside this % routine, in each of @smallbook, @afourpaper, and the default 8.5x11 % format, but then we repeat the same computation. Repeating a couple % of assignments once per index is clearly meaningless for the % execution time, so we may as well do it in one place. % % First we halve the line length, less a little for the gutter between % the columns. We compute the gutter based on the line length, so it % changes automatically with the paper format. The magic constant % below is chosen so that the gutter has the same value (well, +-<1pt) % as it did when we hard-coded it. % % We put the result in a separate register, \doublecolumhsize, so we % can restore it in \pagesofar, after \hsize itself has (potentially) % been clobbered. % \doublecolumnhsize = \hsize \advance\doublecolumnhsize by -.04154\hsize \divide\doublecolumnhsize by 2 \hsize = \doublecolumnhsize % % Get the available space for the double columns -- the normal % (undoubled) page height minus any material left over from the % previous page. \advance\vsize by -\ht\partialpage \vsize = 2\vsize % % For the benefit of balancing columns \advance\baselineskip by 0pt plus 0.5pt } % The double-column output routine for all double-column pages except % the last, which is done by \balancecolumns. % \def\doublecolumnout{% % \savetopmark \splittopskip=\topskip \splitmaxdepth=\maxdepth \dimen@ = \vsize \divide\dimen@ by 2 % % box0 will be the left-hand column, box2 the right. \setbox0=\vsplit\PAGE to\dimen@ \setbox2=\vsplit\PAGE to\dimen@ \global\advance\vsize by 2\ht\partialpage \onepageout\pagesofar % empty except for the first time we are called \unvbox\PAGE \penalty\outputpenalty } % % Re-output the contents of the output page -- any previous material, % followed by the two boxes we just split, in box0 and box2. \def\pagesofar{% \unvbox\partialpage % \hsize = \doublecolumnhsize \wd0=\hsize \wd2=\hsize \hbox to\txipagewidth{\box0\hfil\box2}% } % Finished with double columns. \def\enddoublecolumns{% % The following penalty ensures that the page builder is exercised % _before_ we change the output routine. This is necessary in the % following situation: % % The last section of the index consists only of a single entry. % Before this section, \pagetotal is less than \pagegoal, so no % break occurs before the last section starts. However, the last % section, consisting of \initial and the single \entry, does not % fit on the page and has to be broken off. Without the following % penalty the page builder will not be exercised until \eject % below, and by that time we'll already have changed the output % routine to the \balancecolumns version, so the next-to-last % double-column page will be processed with \balancecolumns, which % is wrong: The two columns will go to the main vertical list, with % the broken-off section in the recent contributions. As soon as % the output routine finishes, TeX starts reconsidering the page % break. The two columns and the broken-off section both fit on the % page, because the two columns now take up only half of the page % goal. When TeX sees \eject from below which follows the final % section, it invokes the new output routine that we've set after % \balancecolumns below; \onepageout will try to fit the two columns % and the final section into the vbox of \txipageheight (see % \pagebody), causing an overfull box. % % Note that glue won't work here, because glue does not exercise the % page builder, unlike penalties (see The TeXbook, pp. 280-281). \penalty0 % \output = {% % Split the last of the double-column material. \savetopmark \balancecolumns }% \eject % call the \output just set \ifdim\pagetotal=0pt % Having called \balancecolumns once, we do not % want to call it again. Therefore, reset \output to its normal % definition right away. \global\output=\expandafter{\the\defaultoutput} % \endgroup % started in \begindoublecolumns % Leave the double-column material on the current page, no automatic % page break. \box\balancedcolumns % % \pagegoal was set to the doubled \vsize above, since we restarted % the current page. We're now back to normal single-column % typesetting, so reset \pagegoal to the normal \vsize. \global\vsize = \txipageheight % \pagegoal = \txipageheight % \else % We had some left-over material. This might happen when \doublecolumnout % is called in \balancecolumns. Try again. \expandafter\enddoublecolumns \fi } \newbox\balancedcolumns \setbox\balancedcolumns=\vbox{shouldnt see this}% % % Only called for the last of the double column material. \doublecolumnout % does the others. \def\balancecolumns{% \setbox0 = \vbox{\unvbox\PAGE}% like \box255 but more efficient, see p.120. \dimen@ = \ht0 \ifdim\dimen@<7\baselineskip % Don't split a short final column in two. \setbox2=\vbox{}% \global\setbox\balancedcolumns=\vbox{\pagesofar}% \else % double the leading vertical space \advance\dimen@ by \topskip \advance\dimen@ by-\baselineskip \divide\dimen@ by 2 % target to split to \dimen@ii = \dimen@ \splittopskip = \topskip % Loop until left column is at least as high as the right column. {% \vbadness = 10000 \loop \global\setbox3 = \copy0 \global\setbox1 = \vsplit3 to \dimen@ \ifdim\ht1<\ht3 \global\advance\dimen@ by 1pt \repeat }% % Now the left column is in box 1, and the right column in box 3. % % Check whether the left column has come out higher than the page itself. % (Note that we have doubled \vsize for the double columns, so % the actual height of the page is 0.5\vsize). \ifdim2\ht1>\vsize % It appears that we have been called upon to balance too much material. % Output some of it with \doublecolumnout, leaving the rest on the page. \setbox\PAGE=\box0 \doublecolumnout \else % Compare the heights of the two columns. \ifdim4\ht1>5\ht3 % Column heights are too different, so don't make their bottoms % flush with each other. \setbox2=\vbox to \ht1 {\unvbox3\vfill}% \setbox0=\vbox to \ht1 {\unvbox1\vfill}% \else % Make column bottoms flush with each other. \setbox2=\vbox to\ht1{\unvbox3\unskip}% \setbox0=\vbox to\ht1{\unvbox1\unskip}% \fi \global\setbox\balancedcolumns=\vbox{\pagesofar}% \fi \fi % } \catcode`\@ = \other \message{sectioning,} % Chapters, sections, etc. % Let's start with @part. \parseargdef\part{\partzzz{#1}} \def\partzzz#1{% \chapoddpage \null \vskip.3\vsize % move it down on the page a bit \begingroup \noindent \titlefonts\rm #1\par % the text \let\lastnode=\empty % no node to associate with \writetocentry{part}{#1}{}% but put it in the toc \headingsoff % no headline or footline on the part page % This outputs a mark at the end of the page that clears \thischapter % and \thissection, as is done in \startcontents. \let\pchapsepmacro\relax \chapmacro{}{Yomitfromtoc}{}% \chapoddpage \endgroup } % \unnumberedno is an oxymoron. But we count the unnumbered % sections so that we can refer to them unambiguously in the pdf % outlines by their "section number". We avoid collisions with chapter % numbers by starting them at 10000. (If a document ever has 10000 % chapters, we're in trouble anyway, I'm sure.) \newcount\unnumberedno \unnumberedno = 10000 \newcount\chapno \newcount\secno \secno=0 \newcount\subsecno \subsecno=0 \newcount\subsubsecno \subsubsecno=0 % This counter is funny since it counts through charcodes of letters A, B, ... \newcount\appendixno \appendixno = `\@ % % \def\appendixletter{\char\the\appendixno} % We do the following ugly conditional instead of the above simple % construct for the sake of pdftex, which needs the actual % letter in the expansion, not just typeset. % \def\appendixletter{% \ifnum\appendixno=`A A% \else\ifnum\appendixno=`B B% \else\ifnum\appendixno=`C C% \else\ifnum\appendixno=`D D% \else\ifnum\appendixno=`E E% \else\ifnum\appendixno=`F F% \else\ifnum\appendixno=`G G% \else\ifnum\appendixno=`H H% \else\ifnum\appendixno=`I I% \else\ifnum\appendixno=`J J% \else\ifnum\appendixno=`K K% \else\ifnum\appendixno=`L L% \else\ifnum\appendixno=`M M% \else\ifnum\appendixno=`N N% \else\ifnum\appendixno=`O O% \else\ifnum\appendixno=`P P% \else\ifnum\appendixno=`Q Q% \else\ifnum\appendixno=`R R% \else\ifnum\appendixno=`S S% \else\ifnum\appendixno=`T T% \else\ifnum\appendixno=`U U% \else\ifnum\appendixno=`V V% \else\ifnum\appendixno=`W W% \else\ifnum\appendixno=`X X% \else\ifnum\appendixno=`Y Y% \else\ifnum\appendixno=`Z Z% % The \the is necessary, despite appearances, because \appendixletter is % expanded while writing the .toc file. \char\appendixno is not % expandable, thus it is written literally, thus all appendixes come out % with the same letter (or @) in the toc without it. \else\char\the\appendixno \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} % Each @chapter defines these (using marks) as the number+name, number % and name of the chapter. Page headings and footings can use % these. @section does likewise. \def\thischapter{} \def\thischapternum{} \def\thischaptername{} \def\thissection{} \def\thissectionnum{} \def\thissectionname{} \newcount\absseclevel % used to calculate proper heading level \newcount\secbase\secbase=0 % @raisesections/@lowersections modify this count % @raisesections: treat @section as chapter, @subsection as section, etc. \def\raisesections{\global\advance\secbase by -1} % @lowersections: treat @chapter as section, @section as subsection, etc. \def\lowersections{\global\advance\secbase by 1} % we only have subsub. \chardef\maxseclevel = 3 % % A numbered section within an unnumbered changes to unnumbered too. % To achieve this, remember the "biggest" unnum. sec. we are currently in: \chardef\unnlevel = \maxseclevel % % Trace whether the current chapter is an appendix or not: % \chapheadtype is "N" or "A", unnumbered chapters are ignored. \def\chapheadtype{N} % Choose a heading macro % #1 is heading type % #2 is heading level % #3 is text for heading \def\genhead#1#2#3{% % Compute the abs. sec. level: \absseclevel=#2 \advance\absseclevel by \secbase % Make sure \absseclevel doesn't fall outside the range: \ifnum \absseclevel < 0 \absseclevel = 0 \else \ifnum \absseclevel > 3 \absseclevel = 3 \fi \fi % The heading type: \def\headtype{#1}% \if \headtype U% \ifnum \absseclevel < \unnlevel \chardef\unnlevel = \absseclevel \fi \else % Check for appendix sections: \ifnum \absseclevel = 0 \edef\chapheadtype{\headtype}% \else \if \headtype A\if \chapheadtype N% \errmessage{@appendix... within a non-appendix chapter}% \fi\fi \fi % Check for numbered within unnumbered: \ifnum \absseclevel > \unnlevel \def\headtype{U}% \else \chardef\unnlevel = 3 \fi \fi % Now print the heading: \if \headtype U% \ifcase\absseclevel \unnumberedzzz{#3}% \or \unnumberedseczzz{#3}% \or \unnumberedsubseczzz{#3}% \or \unnumberedsubsubseczzz{#3}% \fi \else \if \headtype A% \ifcase\absseclevel \appendixzzz{#3}% \or \appendixsectionzzz{#3}% \or \appendixsubseczzz{#3}% \or \appendixsubsubseczzz{#3}% \fi \else \ifcase\absseclevel \chapterzzz{#3}% \or \seczzz{#3}% \or \numberedsubseczzz{#3}% \or \numberedsubsubseczzz{#3}% \fi \fi \fi \suppressfirstparagraphindent } % an interface: \def\numhead{\genhead N} \def\apphead{\genhead A} \def\unnmhead{\genhead U} % @chapter, @appendix, @unnumbered. Increment top-level counter, reset % all lower-level sectioning counters to zero. % % Also set \chaplevelprefix, which we prepend to @float sequence numbers % (e.g., figures), q.v. By default (before any chapter), that is empty. \let\chaplevelprefix = \empty % \outer\parseargdef\chapter{\numhead0{#1}} % normally numhead0 calls chapterzzz \def\chapterzzz#1{% % section resetting is \global in case the chapter is in a group, such % as an @include file. \global\secno=0 \global\subsecno=0 \global\subsubsecno=0 \global\advance\chapno by 1 % % Used for \float. \gdef\chaplevelprefix{\the\chapno.}% \resetallfloatnos % % \putwordChapter can contain complex things in translations. \toks0=\expandafter{\putwordChapter}% \message{\the\toks0 \space \the\chapno}% % % Write the actual heading. \chapmacro{#1}{Ynumbered}{\the\chapno}% % % So @section and the like are numbered underneath this chapter. \global\let\section = \numberedsec \global\let\subsection = \numberedsubsec \global\let\subsubsection = \numberedsubsubsec } \outer\parseargdef\appendix{\apphead0{#1}} % normally calls appendixzzz % \def\appendixzzz#1{% \global\secno=0 \global\subsecno=0 \global\subsubsecno=0 \global\advance\appendixno by 1 \gdef\chaplevelprefix{\appendixletter.}% \resetallfloatnos % % \putwordAppendix can contain complex things in translations. \toks0=\expandafter{\putwordAppendix}% \message{\the\toks0 \space \appendixletter}% % \chapmacro{#1}{Yappendix}{\appendixletter}% % \global\let\section = \appendixsec \global\let\subsection = \appendixsubsec \global\let\subsubsection = \appendixsubsubsec } % normally unnmhead0 calls unnumberedzzz: \outer\parseargdef\unnumbered{\unnmhead0{#1}} \def\unnumberedzzz#1{% \global\secno=0 \global\subsecno=0 \global\subsubsecno=0 \global\advance\unnumberedno by 1 % % Since an unnumbered has no number, no prefix for figures. \global\let\chaplevelprefix = \empty \resetallfloatnos % % This used to be simply \message{#1}, but TeX fully expands the % argument to \message. Therefore, if #1 contained @-commands, TeX % expanded them. For example, in `@unnumbered The @cite{Book}', TeX % expanded @cite (which turns out to cause errors because \cite is meant % to be executed, not expanded). % % Anyway, we don't want the fully-expanded definition of @cite to appear % as a result of the \message, we just want `@cite' itself. We use % \the to achieve this: TeX expands \the only once, % simply yielding the contents of . (We also do this for % the toc entries.) \toks0 = {#1}% \message{(\the\toks0)}% % \chapmacro{#1}{Ynothing}{\the\unnumberedno}% % \global\let\section = \unnumberedsec \global\let\subsection = \unnumberedsubsec \global\let\subsubsection = \unnumberedsubsubsec } % @centerchap is like @unnumbered, but the heading is centered. \outer\parseargdef\centerchap{% \let\centerparametersmaybe = \centerparameters \unnmhead0{#1}% \let\centerparametersmaybe = \relax } % @top is like @unnumbered. \let\top\unnumbered % Sections. % \outer\parseargdef\numberedsec{\numhead1{#1}} % normally calls seczzz \def\seczzz#1{% \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1 \sectionheading{#1}{sec}{Ynumbered}{\the\chapno.\the\secno}% } % normally calls appendixsectionzzz: \outer\parseargdef\appendixsection{\apphead1{#1}} \def\appendixsectionzzz#1{% \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1 \sectionheading{#1}{sec}{Yappendix}{\appendixletter.\the\secno}% } \let\appendixsec\appendixsection % normally calls unnumberedseczzz: \outer\parseargdef\unnumberedsec{\unnmhead1{#1}} \def\unnumberedseczzz#1{% \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1 \sectionheading{#1}{sec}{Ynothing}{\the\unnumberedno.\the\secno}% } % Subsections. % % normally calls numberedsubseczzz: \outer\parseargdef\numberedsubsec{\numhead2{#1}} \def\numberedsubseczzz#1{% \global\subsubsecno=0 \global\advance\subsecno by 1 \sectionheading{#1}{subsec}{Ynumbered}{\the\chapno.\the\secno.\the\subsecno}% } % normally calls appendixsubseczzz: \outer\parseargdef\appendixsubsec{\apphead2{#1}} \def\appendixsubseczzz#1{% \global\subsubsecno=0 \global\advance\subsecno by 1 \sectionheading{#1}{subsec}{Yappendix}% {\appendixletter.\the\secno.\the\subsecno}% } % normally calls unnumberedsubseczzz: \outer\parseargdef\unnumberedsubsec{\unnmhead2{#1}} \def\unnumberedsubseczzz#1{% \global\subsubsecno=0 \global\advance\subsecno by 1 \sectionheading{#1}{subsec}{Ynothing}% {\the\unnumberedno.\the\secno.\the\subsecno}% } % Subsubsections. % % normally numberedsubsubseczzz: \outer\parseargdef\numberedsubsubsec{\numhead3{#1}} \def\numberedsubsubseczzz#1{% \global\advance\subsubsecno by 1 \sectionheading{#1}{subsubsec}{Ynumbered}% {\the\chapno.\the\secno.\the\subsecno.\the\subsubsecno}% } % normally appendixsubsubseczzz: \outer\parseargdef\appendixsubsubsec{\apphead3{#1}} \def\appendixsubsubseczzz#1{% \global\advance\subsubsecno by 1 \sectionheading{#1}{subsubsec}{Yappendix}% {\appendixletter.\the\secno.\the\subsecno.\the\subsubsecno}% } % normally unnumberedsubsubseczzz: \outer\parseargdef\unnumberedsubsubsec{\unnmhead3{#1}} \def\unnumberedsubsubseczzz#1{% \global\advance\subsubsecno by 1 \sectionheading{#1}{subsubsec}{Ynothing}% {\the\unnumberedno.\the\secno.\the\subsecno.\the\subsubsecno}% } % These macros control what the section commands do, according % to what kind of chapter we are in (ordinary, appendix, or unnumbered). % Define them by default for a numbered chapter. \let\section = \numberedsec \let\subsection = \numberedsubsec \let\subsubsection = \numberedsubsubsec % Define @majorheading, @heading and @subheading \def\majorheading{% {\advance\chapheadingskip by 10pt \chapbreak }% \parsearg\chapheadingzzz } \def\chapheading{\chapbreak \parsearg\chapheadingzzz} \def\chapheadingzzz#1{% \vbox{\chapfonts \raggedtitlesettings #1\par}% \nobreak\bigskip \nobreak \suppressfirstparagraphindent } % @heading, @subheading, @subsubheading. \parseargdef\heading{\sectionheading{#1}{sec}{Yomitfromtoc}{} \suppressfirstparagraphindent} \parseargdef\subheading{\sectionheading{#1}{subsec}{Yomitfromtoc}{} \suppressfirstparagraphindent} \parseargdef\subsubheading{\sectionheading{#1}{subsubsec}{Yomitfromtoc}{} \suppressfirstparagraphindent} % These macros generate a chapter, section, etc. heading only % (including whitespace, linebreaking, etc. around it), % given all the information in convenient, parsed form. % Args are the skip and penalty (usually negative) \def\dobreak#1#2{\par\ifdim\lastskip<#1\removelastskip\penalty#2\vskip#1\fi} % Parameter controlling skip before chapter headings (if needed) \newskip\chapheadingskip % Define plain chapter starts, and page on/off switching for it. \def\chapbreak{\dobreak \chapheadingskip {-4000}} % Start a new page \def\chappager{\par\vfill\supereject} % \chapoddpage - start on an odd page for a new chapter % Because \domark is called before \chapoddpage, the filler page will % get the headings for the next chapter, which is wrong. But we don't % care -- we just disable all headings on the filler page. \def\chapoddpage{% \chappager \ifodd\pageno \else \begingroup \headingsoff \null \chappager \endgroup \fi } \parseargdef\setchapternewpage{\csname CHAPPAG#1\endcsname} \def\CHAPPAGoff{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chapbreak \global\def\HEADINGSon{\HEADINGSsinglechapoff}} \def\CHAPPAGon{% \global\let\contentsalignmacro = \chappager \global\let\pchapsepmacro=\chappager \global\def\HEADINGSon{\HEADINGSsingle}} \def\CHAPPAGodd{% \global\let\contentsalignmacro = \chapoddpage \global\let\pchapsepmacro=\chapoddpage \global\def\HEADINGSon{\HEADINGSdouble}} \CHAPPAGon % \chapmacro - Chapter opening. % % #1 is the text, #2 is the section type (Ynumbered, Ynothing, % Yappendix, Yomitfromtoc), #3 the chapter number. % Not used for @heading series. % % To test against our argument. \def\Ynothingkeyword{Ynothing} \def\Yappendixkeyword{Yappendix} \def\Yomitfromtockeyword{Yomitfromtoc} % \def\chapmacro#1#2#3{% \expandafter\ifx\thisenv\titlepage\else \checkenv{}% chapters, etc., should not start inside an environment. \fi % Insert the first mark before the heading break (see notes for \domark). \let\prevchapterdefs=\currentchapterdefs \let\prevsectiondefs=\currentsectiondefs \gdef\currentsectiondefs{\gdef\thissectionname{}\gdef\thissectionnum{}% \gdef\thissection{}}% % \def\temptype{#2}% \ifx\temptype\Ynothingkeyword \gdef\currentchapterdefs{\gdef\thischaptername{#1}\gdef\thischapternum{}% \gdef\thischapter{\thischaptername}}% \else\ifx\temptype\Yomitfromtockeyword \gdef\currentchapterdefs{\gdef\thischaptername{#1}\gdef\thischapternum{}% \gdef\thischapter{}}% \else\ifx\temptype\Yappendixkeyword \toks0={#1}% \xdef\currentchapterdefs{% \gdef\noexpand\thischaptername{\the\toks0}% \gdef\noexpand\thischapternum{\appendixletter}% % \noexpand\putwordAppendix avoids expanding indigestible % commands in some of the translations. \gdef\noexpand\thischapter{\noexpand\putwordAppendix{} \noexpand\thischapternum: \noexpand\thischaptername}% }% \else \toks0={#1}% \xdef\currentchapterdefs{% \gdef\noexpand\thischaptername{\the\toks0}% \gdef\noexpand\thischapternum{\the\chapno}% % \noexpand\putwordChapter avoids expanding indigestible % commands in some of the translations. \gdef\noexpand\thischapter{\noexpand\putwordChapter{} \noexpand\thischapternum: \noexpand\thischaptername}% }% \fi\fi\fi % % Output the mark. Pass it through \safewhatsit, to take care of % the preceding space. \safewhatsit\domark % % Insert the chapter heading break. \pchapsepmacro % % Now the second mark, after the heading break. No break points % between here and the heading. \let\prevchapterdefs=\currentchapterdefs \let\prevsectiondefs=\currentsectiondefs \domark % {% \chapfonts \rm \let\footnote=\errfootnoteheading % give better error message % % Have to define \currentsection before calling \donoderef, because the % xref code eventually uses it. On the other hand, it has to be called % after \pchapsepmacro, or the headline will change too soon. \gdef\currentsection{#1}% % % Only insert the separating space if we have a chapter/appendix % number, and don't print the unnumbered ``number''. \ifx\temptype\Ynothingkeyword \setbox0 = \hbox{}% \def\toctype{unnchap}% \else\ifx\temptype\Yomitfromtockeyword \setbox0 = \hbox{}% contents like unnumbered, but no toc entry \def\toctype{omit}% \else\ifx\temptype\Yappendixkeyword \setbox0 = \hbox{\putwordAppendix{} #3\enspace}% \def\toctype{app}% \else \setbox0 = \hbox{#3\enspace}% \def\toctype{numchap}% \fi\fi\fi % % Write the toc entry for this chapter. Must come before the % \donoderef, because we include the current node name in the toc % entry, and \donoderef resets it to empty. \writetocentry{\toctype}{#1}{#3}% % % For pdftex, we have to write out the node definition (aka, make % the pdfdest) after any page break, but before the actual text has % been typeset. If the destination for the pdf outline is after the % text, then jumping from the outline may wind up with the text not % being visible, for instance under high magnification. \donoderef{#2}% % % Typeset the actual heading. \nobreak % Avoid page breaks at the interline glue. \vbox{\raggedtitlesettings \hangindent=\wd0 \centerparametersmaybe \unhbox0 #1\par}% }% \nobreak\bigskip % no page break after a chapter title \nobreak } % @centerchap -- centered and unnumbered. \let\centerparametersmaybe = \relax \def\centerparameters{% \advance\rightskip by 3\rightskip \leftskip = \rightskip \parfillskip = 0pt } % Section titles. These macros combine the section number parts and % call the generic \sectionheading to do the printing. % \newskip\secheadingskip \def\secheadingbreak{\dobreak \secheadingskip{-1000}} % Subsection titles. \newskip\subsecheadingskip \def\subsecheadingbreak{\dobreak \subsecheadingskip{-500}} % Subsubsection titles. \def\subsubsecheadingskip{\subsecheadingskip} \def\subsubsecheadingbreak{\subsecheadingbreak} % Print any size, any type, section title. % % #1 is the text of the title, % #2 is the section level (sec/subsec/subsubsec), % #3 is the section type (Ynumbered, Ynothing, Yappendix, Yomitfromtoc), % #4 is the section number. % \def\seckeyword{sec} % \def\sectionheading#1#2#3#4{% {% \def\sectionlevel{#2}% \def\temptype{#3}% % % It is ok for the @heading series commands to appear inside an % environment (it's been historically allowed, though the logic is % dubious), but not the others. \ifx\temptype\Yomitfromtockeyword\else \checkenv{}% non-@*heading should not be in an environment. \fi \let\footnote=\errfootnoteheading % % Switch to the right set of fonts. \csname #2fonts\endcsname \rm % % Insert first mark before the heading break (see notes for \domark). \let\prevsectiondefs=\currentsectiondefs \ifx\temptype\Ynothingkeyword \ifx\sectionlevel\seckeyword \gdef\currentsectiondefs{\gdef\thissectionname{#1}\gdef\thissectionnum{}% \gdef\thissection{\thissectionname}}% \fi \else\ifx\temptype\Yomitfromtockeyword % Don't redefine \thissection. \else\ifx\temptype\Yappendixkeyword \ifx\sectionlevel\seckeyword \toks0={#1}% \xdef\currentsectiondefs{% \gdef\noexpand\thissectionname{\the\toks0}% \gdef\noexpand\thissectionnum{#4}% % \noexpand\putwordSection avoids expanding indigestible % commands in some of the translations. \gdef\noexpand\thissection{\noexpand\putwordSection{} \noexpand\thissectionnum: \noexpand\thissectionname}% }% \fi \else \ifx\sectionlevel\seckeyword \toks0={#1}% \xdef\currentsectiondefs{% \gdef\noexpand\thissectionname{\the\toks0}% \gdef\noexpand\thissectionnum{#4}% % \noexpand\putwordSection avoids expanding indigestible % commands in some of the translations. \gdef\noexpand\thissection{\noexpand\putwordSection{} \noexpand\thissectionnum: \noexpand\thissectionname}% }% \fi \fi\fi\fi % % Go into vertical mode. Usually we'll already be there, but we % don't want the following whatsit to end up in a preceding paragraph % if the document didn't happen to have a blank line. \par % % Output the mark. Pass it through \safewhatsit, to take care of % the preceding space. \safewhatsit\domark % % Insert space above the heading. \csname #2headingbreak\endcsname % % Now the second mark, after the heading break. No break points % between here and the heading. \global\let\prevsectiondefs=\currentsectiondefs \domark % % Only insert the space after the number if we have a section number. \ifx\temptype\Ynothingkeyword \setbox0 = \hbox{}% \def\toctype{unn}% \gdef\currentsection{#1}% \else\ifx\temptype\Yomitfromtockeyword % for @headings -- no section number, don't include in toc, % and don't redefine \currentsection. \setbox0 = \hbox{}% \def\toctype{omit}% \let\sectionlevel=\empty \else\ifx\temptype\Yappendixkeyword \setbox0 = \hbox{#4\enspace}% \def\toctype{app}% \gdef\currentsection{#1}% \else \setbox0 = \hbox{#4\enspace}% \def\toctype{num}% \gdef\currentsection{#1}% \fi\fi\fi % % Write the toc entry (before \donoderef). See comments in \chapmacro. \writetocentry{\toctype\sectionlevel}{#1}{#4}% % % Write the node reference (= pdf destination for pdftex). % Again, see comments in \chapmacro. \donoderef{#3}% % % Interline glue will be inserted when the vbox is completed. % That glue will be a valid breakpoint for the page, since it'll be % preceded by a whatsit (usually from the \donoderef, or from the % \writetocentry if there was no node). We don't want to allow that % break, since then the whatsits could end up on page n while the % section is on page n+1, thus toc/etc. are wrong. Debian bug 276000. \nobreak % % Output the actual section heading. \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright \hangindent=\wd0 % zero if no section number \unhbox0 #1}% }% % Add extra space after the heading -- half of whatever came above it. % Don't allow stretch, though. \kern .5 \csname #2headingskip\endcsname % % Do not let the kern be a potential breakpoint, as it would be if it % was followed by glue. \nobreak % % We'll almost certainly start a paragraph next, so don't let that % glue accumulate. (Not a breakpoint because it's preceded by a % discardable item.) However, when a paragraph is not started next % (\startdefun, \cartouche, \center, etc.), this needs to be wiped out % or the negative glue will cause weirdly wrong output, typically % obscuring the section heading with something else. \vskip-\parskip % % This is so the last item on the main vertical list is a known % \penalty > 10000, so \startdefun, etc., can recognize the situation % and do the needful. \penalty 10001 } \message{toc,} % Table of contents. \newwrite\tocfile % Write an entry to the toc file, opening it if necessary. % Called from @chapter, etc. % % Example usage: \writetocentry{sec}{Section Name}{\the\chapno.\the\secno} % We append the current node name (if any) and page number as additional % arguments for the \{chap,sec,...}entry macros which will eventually % read this. The node name is used in the pdf outlines as the % destination to jump to. % % We open the .toc file for writing here instead of at @setfilename (or % any other fixed time) so that @contents can be anywhere in the document. % But if #1 is `omit', then we don't do anything. This is used for the % table of contents chapter openings themselves. % \newif\iftocfileopened \def\omitkeyword{omit}% % \def\writetocentry#1#2#3{% \edef\writetoctype{#1}% \ifx\writetoctype\omitkeyword \else \iftocfileopened\else \immediate\openout\tocfile = \jobname.toc \global\tocfileopenedtrue \fi % \iflinks {\atdummies \edef\temp{% \write\tocfile{@#1entry{#2}{#3}{\lastnode}{\noexpand\folio}}}% \temp }% \fi \fi % % Tell \shipout to create a pdf destination on each page, if we're % writing pdf. These are used in the table of contents. We can't % just write one on every page because the title pages are numbered % 1 and 2 (the page numbers aren't printed), and so are the first % two pages of the document. Thus, we'd have two destinations named % `1', and two named `2'. \ifpdforxetex \global\pdfmakepagedesttrue \fi } % These characters do not print properly in the Computer Modern roman % fonts, so we must take special care. This is more or less redundant % with the Texinfo input format setup at the end of this file. % \def\activecatcodes{% \catcode`\"=\active \catcode`\$=\active \catcode`\<=\active \catcode`\>=\active \catcode`\\=\active \catcode`\^=\active \catcode`\_=\active \catcode`\|=\active \catcode`\~=\active } % Read the toc file, which is essentially Texinfo input. \def\readtocfile{% \setupdatafile \activecatcodes \input \tocreadfilename } \newskip\contentsrightmargin \contentsrightmargin=1in \newcount\savepageno \newcount\lastnegativepageno \lastnegativepageno = -1 % Prepare to read what we've written to \tocfile. % \def\startcontents#1{% % If @setchapternewpage on, and @headings double, the contents should % start on an odd page, unlike chapters. \contentsalignmacro \immediate\closeout\tocfile % % Don't need to put `Contents' or `Short Contents' in the headline. % It is abundantly clear what they are. \chapmacro{#1}{Yomitfromtoc}{}% % \savepageno = \pageno \begingroup % Set up to handle contents files properly. \raggedbottom % Worry more about breakpoints than the bottom. \entryrightmargin=\contentsrightmargin % Don't use the full line length. % % Roman numerals for page numbers. \ifnum \pageno>0 \global\pageno = \lastnegativepageno \fi \def\thistitle{}% no title in double-sided headings % Record where the Roman numerals started. \ifnum\romancount=0 \global\romancount=\pagecount \fi } % redefined for the two-volume lispref. We always output on % \jobname.toc even if this is redefined. % \def\tocreadfilename{\jobname.toc} % Normal (long) toc. % \def\contents{% \startcontents{\putwordTOC}% \openin 1 \tocreadfilename\space \ifeof 1 \else \readtocfile \fi \vfill \eject \contentsalignmacro % in case @setchapternewpage odd is in effect \ifeof 1 \else \pdfmakeoutlines \fi \closein 1 \endgroup \contentsendroman } % And just the chapters. \def\summarycontents{% \startcontents{\putwordShortTOC}% % \let\partentry = \shortpartentry \let\numchapentry = \shortchapentry \let\appentry = \shortchapentry \let\unnchapentry = \shortunnchapentry % We want a true roman here for the page numbers. \secfonts \let\rm=\shortcontrm \let\bf=\shortcontbf \let\sl=\shortcontsl \let\tt=\shortconttt \rm \hyphenpenalty = 10000 \advance\baselineskip by 1pt % Open it up a little. \def\numsecentry##1##2##3##4{} \let\appsecentry = \numsecentry \let\unnsecentry = \numsecentry \let\numsubsecentry = \numsecentry \let\appsubsecentry = \numsecentry \let\unnsubsecentry = \numsecentry \let\numsubsubsecentry = \numsecentry \let\appsubsubsecentry = \numsecentry \let\unnsubsubsecentry = \numsecentry \openin 1 \tocreadfilename\space \ifeof 1 \else \readtocfile \fi \closein 1 \vfill \eject \contentsalignmacro % in case @setchapternewpage odd is in effect \endgroup \contentsendroman } \let\shortcontents = \summarycontents % Get ready to use Arabic numerals again \def\contentsendroman{% \lastnegativepageno = \pageno \global\pageno = \savepageno % % If \romancount > \arabiccount, the contents are at the end of the % document. Otherwise, advance where the Arabic numerals start for % the page numbers. \ifnum\romancount>\arabiccount\else\global\arabiccount=\pagecount\fi } % Typeset the label for a chapter or appendix for the short contents. % The arg is, e.g., `A' for an appendix, or `3' for a chapter. % \def\shortchaplabel#1{% % This space should be enough, since a single number is .5em, and the % widest letter (M) is 1em, at least in the Computer Modern fonts. % But use \hss just in case. % (This space doesn't include the extra space that gets added after % the label; that gets put in by \shortchapentry above.) % % We'd like to right-justify chapter numbers, but that looks strange % with appendix letters. And right-justifying numbers and % left-justifying letters looks strange when there is less than 10 % chapters. Have to read the whole toc once to know how many chapters % there are before deciding ... \hbox to 1em{#1\hss}% } % These macros generate individual entries in the table of contents. % The first argument is the chapter or section name. % The last argument is the page number. % The arguments in between are the chapter number, section number, ... % Parts, in the main contents. Replace the part number, which doesn't % exist, with an empty box. Let's hope all the numbers have the same width. % Also ignore the page number, which is conventionally not printed. \def\numeralbox{\setbox0=\hbox{8}\hbox to \wd0{\hfil}} \def\partentry#1#2#3#4{% % Add stretch and a bonus for breaking the page before the part heading. % This reduces the chance of the page being broken immediately after the % part heading, before a following chapter heading. \vskip 0pt plus 5\baselineskip \penalty-300 \vskip 0pt plus -5\baselineskip \dochapentry{\numeralbox\labelspace#1}{}% } % % Parts, in the short toc. \def\shortpartentry#1#2#3#4{% \penalty-300 \vskip.5\baselineskip plus.15\baselineskip minus.1\baselineskip \shortchapentry{{\bf #1}}{\numeralbox}{}{}% } % Chapters, in the main contents. \def\numchapentry#1#2#3#4{\dochapentry{#2\labelspace#1}{#4}} % Chapters, in the short toc. % See comments in \dochapentry re vbox and related settings. \def\shortchapentry#1#2#3#4{% \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno\bgroup#4\egroup}% } % Appendices, in the main contents. % Need the word Appendix, and a fixed-size box. % \def\appendixbox#1{% % We use M since it's probably the widest letter. \setbox0 = \hbox{\putwordAppendix{} M}% \hbox to \wd0{\putwordAppendix{} #1\hss}} % \def\appentry#1#2#3#4{\dochapentry{\appendixbox{#2}\hskip.7em#1}{#4}} % Unnumbered chapters. \def\unnchapentry#1#2#3#4{\dochapentry{#1}{#4}} \def\shortunnchapentry#1#2#3#4{\tocentry{#1}{\doshortpageno\bgroup#4\egroup}} % Sections. \def\numsecentry#1#2#3#4{\dosecentry{#2\labelspace#1}{#4}} \let\appsecentry=\numsecentry \def\unnsecentry#1#2#3#4{\dosecentry{#1}{#4}} % Subsections. \def\numsubsecentry#1#2#3#4{\dosubsecentry{#2\labelspace#1}{#4}} \let\appsubsecentry=\numsubsecentry \def\unnsubsecentry#1#2#3#4{\dosubsecentry{#1}{#4}} % And subsubsections. \def\numsubsubsecentry#1#2#3#4{\dosubsubsecentry{#2\labelspace#1}{#4}} \let\appsubsubsecentry=\numsubsubsecentry \def\unnsubsubsecentry#1#2#3#4{\dosubsubsecentry{#1}{#4}} % This parameter controls the indentation of the various levels. % Same as \defaultparindent. \newdimen\tocindent \tocindent = 15pt % Now for the actual typesetting. In all these, #1 is the text and #2 is the % page number. % % If the toc has to be broken over pages, we want it to be at chapters % if at all possible; hence the \penalty. \def\dochapentry#1#2{% \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip \begingroup % Move the page numbers slightly to the right \advance\entryrightmargin by -0.05em \chapentryfonts \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup \nobreak\vskip .25\baselineskip plus.1\baselineskip } \def\dosecentry#1#2{\begingroup \secentryfonts \leftskip=\tocindent \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} \def\dosubsecentry#1#2{\begingroup \subsecentryfonts \leftskip=2\tocindent \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} \def\dosubsubsecentry#1#2{\begingroup \subsubsecentryfonts \leftskip=3\tocindent \tocentry{#1}{\dopageno\bgroup#2\egroup}% \endgroup} % We use the same \entry macro as for the index entries. \let\tocentry = \entry % Space between chapter (or whatever) number and the title. \def\labelspace{\hskip1em \relax} \def\dopageno#1{{\rm #1}} \def\doshortpageno#1{{\rm #1}} \def\chapentryfonts{\secfonts \rm} \def\secentryfonts{\textfonts} \def\subsecentryfonts{\textfonts} \def\subsubsecentryfonts{\textfonts} \message{environments,} % @foo ... @end foo. % @tex ... @end tex escapes into raw TeX temporarily. % One exception: @ is still an escape character, so that @end tex works. % But \@ or @@ will get a plain @ character. \envdef\tex{% \setregularquotes \catcode `\\=0 \catcode `\{=1 \catcode `\}=2 \catcode `\$=3 \catcode `\&=4 \catcode `\#=6 \catcode `\^=7 \catcode `\_=8 \catcode `\~=\active \let~=\tie \catcode `\%=14 \catcode `\+=\other \catcode `\"=\other \catcode `\|=\other \catcode `\<=\other \catcode `\>=\other \catcode `\`=\other \catcode `\'=\other % % ' is active in math mode (mathcode"8000). So reset it, and all our % other math active characters (just in case), to plain's definitions. \mathactive % % Inverse of the list at the beginning of the file. \let\b=\ptexb \let\bullet=\ptexbullet \let\c=\ptexc \let\,=\ptexcomma \let\.=\ptexdot \let\dots=\ptexdots \let\equiv=\ptexequiv \let\!=\ptexexclam \let\i=\ptexi \let\indent=\ptexindent \let\noindent=\ptexnoindent \let\{=\ptexlbrace \let\+=\tabalign \let\}=\ptexrbrace \let\/=\ptexslash \let\sp=\ptexsp \let\*=\ptexstar %\let\sup=\ptexsup % do not redefine, we want @sup to work in math mode \let\t=\ptext \expandafter \let\csname top\endcsname=\ptextop % we've made it outer \let\frenchspacing=\plainfrenchspacing % \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}% \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}% \def\@{@}% } % There is no need to define \Etex. % Define @lisp ... @end lisp. % @lisp environment forms a group so it can rebind things, % including the definition of @end lisp (which normally is erroneous). % Amount to narrow the margins by for @lisp. \newskip\lispnarrowing \lispnarrowing=0.4in % This is the definition that ^^M gets inside @lisp, @example, and other % such environments. \null is better than a space, since it doesn't % have any width. \def\lisppar{\null\endgraf} % This space is always present above and below environments. \newskip\envskipamount \envskipamount = 0pt % Make spacing and below environment symmetrical. We use \parskip here % to help in doing that, since in @example-like environments \parskip % is reset to zero; thus the \afterenvbreak inserts no space -- but the % start of the next paragraph will insert \parskip. % \def\aboveenvbreak{{% % =10000 instead of <10000 because of a special case in \itemzzz and % \sectionheading, q.v. \ifnum \lastpenalty=10000 \else \advance\envskipamount by \parskip \endgraf \ifdim\lastskip<\envskipamount \removelastskip \ifnum\lastpenalty<10000 % Penalize breaking before the environment, because preceding text % often leads into it. \penalty100 \fi \vskip\envskipamount \fi \fi }} \def\afterenvbreak{{% % =10000 instead of <10000 because of a special case in \itemzzz and % \sectionheading, q.v. \ifnum \lastpenalty=10000 \else \advance\envskipamount by \parskip \endgraf \ifdim\lastskip<\envskipamount \removelastskip % it's not a good place to break if the last penalty was \nobreak % or better ... \ifnum\lastpenalty<10000 \penalty-50 \fi \vskip\envskipamount \fi \fi }} % \nonarrowing is a flag. If "set", @lisp etc don't narrow margins; it will % also clear it, so that its embedded environments do the narrowing again. \let\nonarrowing=\relax % @cartouche ... @end cartouche: draw rectangle w/rounded corners around % environment contents. % \def\ctl{{\circle\char'013\hskip -6pt}}% 6pt from pl file: 1/2charwidth \def\ctr{{\hskip 6pt\circle\char'010}} \def\cbl{{\circle\char'012\hskip -6pt}} \def\cbr{{\hskip 6pt\circle\char'011}} \def\carttop{\hbox to \cartouter{\hskip\lskip \ctl\leaders\hrule height\circthick\hfil\ctr \hskip\rskip}} \def\cartbot{\hbox to \cartouter{\hskip\lskip \cbl\leaders\hrule height\circthick\hfil\cbr \hskip\rskip}} % \newskip\lskip\newskip\rskip % only require the font if @cartouche is actually used \def\cartouchefontdefs{% \font\circle=lcircle10\relax \circthick=\fontdimen8\circle } \newdimen\circthick \newdimen\cartouter\newdimen\cartinner \newskip\normbskip\newskip\normpskip\newskip\normlskip \envdef\cartouche{% \cartouchefontdefs \ifhmode\par\fi % can't be in the midst of a paragraph. \startsavinginserts \lskip=\leftskip \rskip=\rightskip \leftskip=0pt\rightskip=0pt % we want these *outside*. \cartinner=\hsize \advance\cartinner by-\lskip \advance\cartinner by-\rskip \cartouter=\hsize \advance\cartouter by 18.4pt % allow for 3pt kerns on either % side, and for 6pt waste from % each corner char, and rule thickness \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip % % If this cartouche directly follows a sectioning command, we need the % \parskip glue (backspaced over by default) or the cartouche can % collide with the section heading. \ifnum\lastpenalty>10000 \vskip\parskip \penalty\lastpenalty \fi % \setbox\groupbox=\vbox\bgroup \baselineskip=0pt\parskip=0pt\lineskip=0pt \carttop \hbox\bgroup \hskip\lskip \vrule\kern3pt \vbox\bgroup \kern3pt \hsize=\cartinner \baselineskip=\normbskip \lineskip=\normlskip \parskip=\normpskip \vskip -\parskip \comment % For explanation, see the end of def\group. } \def\Ecartouche{% \ifhmode\par\fi \kern3pt \egroup \kern3pt\vrule \hskip\rskip \egroup \cartbot \egroup \addgroupbox \checkinserts } % This macro is called at the beginning of all the @example variants, % inside a group. \newdimen\nonfillparindent \def\nonfillstart{% \aboveenvbreak \ifdim\hfuzz < 12pt \hfuzz = 12pt \fi % Don't be fussy \sepspaces % Make spaces be word-separators rather than space tokens. \let\par = \lisppar % don't ignore blank lines \obeylines % each line of input is a line of output \parskip = 0pt % Turn off paragraph indentation but redefine \indent to emulate % the normal \indent. \nonfillparindent=\parindent \parindent = 0pt \let\indent\nonfillindent % \emergencystretch = 0pt % don't try to avoid overfull boxes \ifx\nonarrowing\relax \advance \leftskip by \lispnarrowing \exdentamount=\lispnarrowing \else \let\nonarrowing = \relax \fi \let\exdent=\nofillexdent } \begingroup \obeyspaces % We want to swallow spaces (but not other tokens) after the fake % @indent in our nonfill-environments, where spaces are normally % active and set to @tie, resulting in them not being ignored after % @indent. \gdef\nonfillindent{\futurelet\temp\nonfillindentcheck}% \gdef\nonfillindentcheck{% \ifx\temp % \expandafter\nonfillindentgobble% \else% \leavevmode\nonfillindentbox% \fi% }% \endgroup \def\nonfillindentgobble#1{\nonfillindent} \def\nonfillindentbox{\hbox to \nonfillparindent{\hss}} % If you want all examples etc. small: @set dispenvsize small. % If you want even small examples the full size: @set dispenvsize nosmall. % This affects the following displayed environments: % @example, @display, @format, @lisp, @verbatim % \def\smallword{small} \def\nosmallword{nosmall} \let\SETdispenvsize\relax \def\setnormaldispenv{% \ifx\SETdispenvsize\smallword % end paragraph for sake of leading, in case document has no blank % line. This is redundant with what happens in \aboveenvbreak, but % we need to do it before changing the fonts, and it's inconvenient % to change the fonts afterward. \ifnum \lastpenalty=10000 \else \endgraf \fi \smallexamplefonts \rm \fi } \def\setsmalldispenv{% \ifx\SETdispenvsize\nosmallword \else \ifnum \lastpenalty=10000 \else \endgraf \fi \smallexamplefonts \rm \fi } % We often define two environments, @foo and @smallfoo. % Let's do it in one command. #1 is the env name, #2 the definition. \def\makedispenvdef#1#2{% \expandafter\envdef\csname#1\endcsname {\setnormaldispenv #2}% \expandafter\envdef\csname small#1\endcsname {\setsmalldispenv #2}% \expandafter\let\csname E#1\endcsname \afterenvbreak \expandafter\let\csname Esmall#1\endcsname \afterenvbreak } % Define two environment synonyms (#1 and #2) for an environment. \def\maketwodispenvdef#1#2#3{% \makedispenvdef{#1}{#3}% \makedispenvdef{#2}{#3}% } % % @lisp: indented, narrowed, typewriter font; % @example: same as @lisp. % % @smallexample and @smalllisp: use smaller fonts. % Originally contributed by Pavel@xerox. % \maketwodispenvdef{lisp}{example}{% \nonfillstart \tt\setcodequotes \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special. \parsearg\gobble } % @display/@smalldisplay: same as @lisp except keep current font. % \makedispenvdef{display}{% \nonfillstart \gobble } % @format/@smallformat: same as @display except don't narrow margins. % \makedispenvdef{format}{% \let\nonarrowing = t% \nonfillstart \gobble } % @flushleft: same as @format, but doesn't obey \SETdispenvsize. \envdef\flushleft{% \let\nonarrowing = t% \nonfillstart \gobble } \let\Eflushleft = \afterenvbreak % @flushright. % \envdef\flushright{% \let\nonarrowing = t% \nonfillstart \advance\leftskip by 0pt plus 1fill\relax \gobble } \let\Eflushright = \afterenvbreak % @raggedright does more-or-less normal line breaking but no right % justification. From plain.tex. \envdef\raggedright{% \rightskip0pt plus2.4em \spaceskip.3333em \xspaceskip.5em\relax } \let\Eraggedright\par \envdef\raggedleft{% \parindent=0pt \leftskip0pt plus2em \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt \hbadness=10000 % Last line will usually be underfull, so turn off % badness reporting. } \let\Eraggedleft\par \envdef\raggedcenter{% \parindent=0pt \rightskip0pt plus1em \leftskip0pt plus1em \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt \hbadness=10000 % Last line will usually be underfull, so turn off % badness reporting. } \let\Eraggedcenter\par % @quotation does normal linebreaking (hence we can't use \nonfillstart) % and narrows the margins. We keep \parskip nonzero in general, since % we're doing normal filling. So, when using \aboveenvbreak and % \afterenvbreak, temporarily make \parskip 0. % \makedispenvdef{quotation}{\quotationstart} % \def\quotationstart{% \indentedblockstart % same as \indentedblock, but increase right margin too. \ifx\nonarrowing\relax \advance\rightskip by \lispnarrowing \fi \parsearg\quotationlabel } % We have retained a nonzero parskip for the environment, since we're % doing normal filling. % \def\Equotation{% \par \ifx\quotationauthor\thisisundefined\else % indent a bit. \leftline{\kern 2\leftskip \sl ---\quotationauthor}% \fi {\parskip=0pt \afterenvbreak}% } \def\Esmallquotation{\Equotation} % If we're given an argument, typeset it in bold with a colon after. \def\quotationlabel#1{% \def\temp{#1}% \ifx\temp\empty \else {\bf #1: }% \fi } % @indentedblock is like @quotation, but indents only on the left and % has no optional argument. % \makedispenvdef{indentedblock}{\indentedblockstart} % \def\indentedblockstart{% {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip \parindent=0pt % % @cartouche defines \nonarrowing to inhibit narrowing at next level down. \ifx\nonarrowing\relax \advance\leftskip by \lispnarrowing \exdentamount = \lispnarrowing \else \let\nonarrowing = \relax \fi } % Keep a nonzero parskip for the environment, since we're doing normal filling. % \def\Eindentedblock{% \par {\parskip=0pt \afterenvbreak}% } \def\Esmallindentedblock{\Eindentedblock} % LaTeX-like @verbatim...@end verbatim and @verb{...} % If we want to allow any as delimiter, % we need the curly braces so that makeinfo sees the @verb command, eg: % `@verbx...x' would look like the '@verbx' command. --janneke@gnu.org % % [Knuth]: Donald Ervin Knuth, 1996. The TeXbook. % % [Knuth] p.344; only we need to do the other characters Texinfo sets % active too. Otherwise, they get lost as the first character on a % verbatim line. \def\dospecials{% \do\ \do\\\do\{\do\}\do\$\do\&% \do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~% \do\<\do\>\do\|\do\@\do+\do\"% % Don't do the quotes -- if we do, @set txicodequoteundirected and % @set txicodequotebacktick will not have effect on @verb and % @verbatim, and ?` and !` ligatures won't get disabled. %\do\`\do\'% } % % [Knuth] p. 380 \def\uncatcodespecials{% \def\do##1{\catcode`##1=\other}\dospecials} % % Setup for the @verb command. % % Eight spaces for a tab \begingroup \catcode`\^^I=\active \gdef\tabeightspaces{\catcode`\^^I=\active\def^^I{\ \ \ \ \ \ \ \ }} \endgroup % \def\setupverb{% \tt % easiest (and conventionally used) font for verbatim \def\par{\leavevmode\endgraf}% \setcodequotes \tabeightspaces % Respect line breaks, % print special symbols as themselves, and % make each space count % must do in this order: \obeylines \uncatcodespecials \sepspaces } % Setup for the @verbatim environment % % Real tab expansion. \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount % % We typeset each line of the verbatim in an \hbox, so we can handle % tabs. \newbox\verbbox \def\starttabbox{\setbox\verbbox=\hbox\bgroup} % \begingroup \catcode`\^^I=\active \gdef\tabexpand{% \catcode`\^^I=\active \def^^I{\leavevmode\egroup \dimen\verbbox=\wd\verbbox % the width so far, or since the previous tab \divide\dimen\verbbox by\tabw \multiply\dimen\verbbox by\tabw % compute previous multiple of \tabw \advance\dimen\verbbox by\tabw % advance to next multiple of \tabw \wd\verbbox=\dimen\verbbox \leavevmode\box\verbbox \starttabbox }% } \endgroup % start the verbatim environment. \def\setupverbatim{% \let\nonarrowing = t% \nonfillstart \tt % easiest (and conventionally used) font for verbatim \def\par{\egroup\leavevmode\box\verbbox\endgraf\starttabbox}% \tabexpand \setcodequotes % Respect line breaks, % print special symbols as themselves, and % make each space count. % Must do in this order: \obeylines \uncatcodespecials \sepspaces } % Do the @verb magic: verbatim text is quoted by unique % delimiter characters. Before first delimiter expect a % right brace, after last delimiter expect closing brace: % % \def\doverb'{'#1'}'{#1} % % [Knuth] p. 382; only eat outer {} \begingroup \catcode`[=1\catcode`]=2\catcode`\{=\other\catcode`\}=\other \gdef\doverb{#1[\def\next##1#1}[##1\endgroup]\next] \endgroup % \def\verb{\begingroup\setupverb\doverb} % % % Do the @verbatim magic: define the macro \doverbatim so that % the (first) argument ends when '@end verbatim' is reached, ie: % % \def\doverbatim#1@end verbatim{#1} % % For Texinfo it's a lot easier than for LaTeX, % because texinfo's \verbatim doesn't stop at '\end{verbatim}': % we need not redefine '\', '{' and '}'. % % Inspired by LaTeX's verbatim command set [latex.ltx] % \begingroup \catcode`\ =\active \obeylines % % ignore everything up to the first ^^M, that's the newline at the end % of the @verbatim input line itself. Otherwise we get an extra blank % line in the output. \xdef\doverbatim#1^^M#2@end verbatim{% \starttabbox#2\egroup\noexpand\end\gobble verbatim}% % We really want {...\end verbatim} in the body of the macro, but % without the active space; thus we have to use \xdef and \gobble. % The \egroup ends the \verbbox started at the end of the last line in % the block. \endgroup % \envdef\verbatim{% \setnormaldispenv\setupverbatim\doverbatim } \let\Everbatim = \afterenvbreak % @verbatiminclude FILE - insert text of file in verbatim environment. % \def\verbatiminclude{\parseargusing\filenamecatcodes\doverbatiminclude} % \def\doverbatiminclude#1{% {% \makevalueexpandable \setupverbatim {% \indexnofonts % Allow `@@' and other weird things in file names. \wlog{texinfo.tex: doing @verbatiminclude of #1^^J}% \edef\tmp{\noexpand\input #1 } \expandafter }\expandafter\starttabbox\tmp\egroup \afterenvbreak }% } % @copying ... @end copying. % Save the text away for @insertcopying later. % % We save the uninterpreted tokens, rather than creating a box. % Saving the text in a box would be much easier, but then all the % typesetting commands (@smallbook, font changes, etc.) have to be done % beforehand -- and a) we want @copying to be done first in the source % file; b) letting users define the frontmatter in as flexible order as % possible is desirable. % \def\copying{\checkenv{}\begingroup\scanargctxt\docopying} \def\docopying#1@end copying{\endgroup\def\copyingtext{#1}} % \def\insertcopying{% \begingroup \parindent = 0pt % paragraph indentation looks wrong on title page \scanexp\copyingtext \endgroup } \message{defuns,} % @defun etc. \newskip\defbodyindent \defbodyindent=.4in \newskip\defargsindent \defargsindent=50pt \newskip\deflastargmargin \deflastargmargin=18pt \newcount\defunpenalty % Start the processing of @deffn: \def\startdefun{% \ifnum\lastpenalty<10000 \medbreak \defunpenalty=10003 % Will keep this @deffn together with the % following @def command, see below. \else % If there are two @def commands in a row, we'll have a \nobreak, % which is there to keep the function description together with its % header. But if there's nothing but headers, we need to allow a % break somewhere. Check specifically for penalty 10002, inserted % by \printdefunline, instead of 10000, since the sectioning % commands also insert a nobreak penalty, and we don't want to allow % a break between a section heading and a defun. % % As a further refinement, we avoid "club" headers by signalling % with penalty of 10003 after the very first @deffn in the % sequence (see above), and penalty of 10002 after any following % @def command. \ifnum\lastpenalty=10002 \penalty2000 \else \defunpenalty=10002 \fi % % Similarly, after a section heading, do not allow a break. % But do insert the glue. \medskip % preceded by discardable penalty, so not a breakpoint \fi % \parindent=0in \advance\leftskip by \defbodyindent \exdentamount=\defbodyindent } \def\dodefunx#1{% % First, check whether we are in the right environment: \checkenv#1% % % As above, allow line break if we have multiple x headers in a row. % It's not a great place, though. \ifnum\lastpenalty=10002 \penalty3000 \else \defunpenalty=10002 \fi % % And now, it's time to reuse the body of the original defun: \expandafter\gobbledefun#1% } \def\gobbledefun#1\startdefun{} % \printdefunline \deffnheader{text} % \def\printdefunline#1#2{% \begingroup \plainfrenchspacing % call \deffnheader: #1#2 \endheader % common ending: \interlinepenalty = 10000 \advance\rightskip by 0pt plus 1fil\relax \endgraf \nobreak\vskip -\parskip \penalty\defunpenalty % signal to \startdefun and \dodefunx % Some of the @defun-type tags do not enable magic parentheses, % rendering the following check redundant. But we don't optimize. \checkparencounts \endgroup } \def\Edefun{\endgraf\medbreak} % \makedefun{deffn} creates \deffn, \deffnx and \Edeffn; % the only thing remaining is to define \deffnheader. % \def\makedefun#1{% \expandafter\let\csname E#1\endcsname = \Edefun \edef\temp{\noexpand\domakedefun \makecsname{#1}\makecsname{#1x}\makecsname{#1header}}% \temp } % \domakedefun \deffn \deffnx \deffnheader { (defn. of \deffnheader) } % % Define \deffn and \deffnx, without parameters. % \deffnheader has to be defined explicitly. % \def\domakedefun#1#2#3{% \envdef#1{% \startdefun \doingtypefnfalse % distinguish typed functions from all else \parseargusing\activeparens{\printdefunline#3}% }% \def#2{\dodefunx#1}% \def#3% } \newif\ifdoingtypefn % doing typed function? \newif\ifrettypeownline % typeset return type on its own line? % @deftypefnnewline on|off says whether the return type of typed functions % are printed on their own line. This affects @deftypefn, @deftypefun, % @deftypeop, and @deftypemethod. % \parseargdef\deftypefnnewline{% \def\temp{#1}% \ifx\temp\onword \expandafter\let\csname SETtxideftypefnnl\endcsname = \empty \else\ifx\temp\offword \expandafter\let\csname SETtxideftypefnnl\endcsname = \relax \else \errhelp = \EMsimple \errmessage{Unknown @txideftypefnnl value `\temp', must be on|off}% \fi\fi } % \dosubind {index}{topic}{subtopic} % % If SUBTOPIC is present, precede it with a space, and call \doind. % (At some time during the 20th century, this made a two-level entry in an % index such as the operation index. Nobody seemed to notice the change in % behaviour though.) \def\dosubind#1#2#3{% \def\thirdarg{#3}% \ifx\thirdarg\empty \doind{#1}{#2}% \else \doind{#1}{#2\space#3}% \fi } % Untyped functions: % @deffn category name args \makedefun{deffn}{\deffngeneral{}} % @deffn category class name args \makedefun{defop}#1 {\defopon{#1\ \putwordon}} % \defopon {category on}class name args \def\defopon#1#2 {\deffngeneral{\putwordon\ \code{#2}}{#1\ \code{#2}} } % \deffngeneral {subind}category name args % \def\deffngeneral#1#2 #3 #4\endheader{% \dosubind{fn}{\code{#3}}{#1}% \defname{#2}{}{#3}\magicamp\defunargs{#4\unskip}% } % Typed functions: % @deftypefn category type name args \makedefun{deftypefn}{\deftypefngeneral{}} % @deftypeop category class type name args \makedefun{deftypeop}#1 {\deftypeopon{#1\ \putwordon}} % \deftypeopon {category on}class type name args \def\deftypeopon#1#2 {\deftypefngeneral{\putwordon\ \code{#2}}{#1\ \code{#2}} } % \deftypefngeneral {subind}category type name args % \def\deftypefngeneral#1#2 #3 #4 #5\endheader{% \dosubind{fn}{\code{#4}}{#1}% \doingtypefntrue \defname{#2}{#3}{#4}\defunargs{#5\unskip}% } % Typed variables: % @deftypevr category type var args \makedefun{deftypevr}{\deftypecvgeneral{}} % @deftypecv category class type var args \makedefun{deftypecv}#1 {\deftypecvof{#1\ \putwordof}} % \deftypecvof {category of}class type var args \def\deftypecvof#1#2 {\deftypecvgeneral{\putwordof\ \code{#2}}{#1\ \code{#2}} } % \deftypecvgeneral {subind}category type var args % \def\deftypecvgeneral#1#2 #3 #4 #5\endheader{% \dosubind{vr}{\code{#4}}{#1}% \defname{#2}{#3}{#4}\defunargs{#5\unskip}% } % Untyped variables: % @defvr category var args \makedefun{defvr}#1 {\deftypevrheader{#1} {} } % @defcv category class var args \makedefun{defcv}#1 {\defcvof{#1\ \putwordof}} % \defcvof {category of}class var args \def\defcvof#1#2 {\deftypecvof{#1}#2 {} } % Types: % @deftp category name args \makedefun{deftp}#1 #2 #3\endheader{% \doind{tp}{\code{#2}}% \defname{#1}{}{#2}\defunargs{#3\unskip}% } % Remaining @defun-like shortcuts: \makedefun{defun}{\deffnheader{\putwordDeffunc} } \makedefun{defmac}{\deffnheader{\putwordDefmac} } \makedefun{defspec}{\deffnheader{\putwordDefspec} } \makedefun{deftypefun}{\deftypefnheader{\putwordDeffunc} } \makedefun{defvar}{\defvrheader{\putwordDefvar} } \makedefun{defopt}{\defvrheader{\putwordDefopt} } \makedefun{deftypevar}{\deftypevrheader{\putwordDefvar} } \makedefun{defmethod}{\defopon\putwordMethodon} \makedefun{deftypemethod}{\deftypeopon\putwordMethodon} \makedefun{defivar}{\defcvof\putwordInstanceVariableof} \makedefun{deftypeivar}{\deftypecvof\putwordInstanceVariableof} % \defname, which formats the name of the @def (not the args). % #1 is the category, such as "Function". % #2 is the return type, if any. % #3 is the function name. % % We are followed by (but not passed) the arguments, if any. % \def\defname#1#2#3{% \par % Get the values of \leftskip and \rightskip as they were outside the @def... \advance\leftskip by -\defbodyindent % % Determine if we are typesetting the return type of a typed function % on a line by itself. \rettypeownlinefalse \ifdoingtypefn % doing a typed function specifically? % then check user option for putting return type on its own line: \expandafter\ifx\csname SETtxideftypefnnl\endcsname\relax \else \rettypeownlinetrue \fi \fi % % How we'll format the category name. Putting it in brackets helps % distinguish it from the body text that may end up on the next line % just below it. \def\temp{#1}% \setbox0=\hbox{\kern\deflastargmargin \ifx\temp\empty\else [\rm\temp]\fi} % % Figure out line sizes for the paragraph shape. We'll always have at % least two. \tempnum = 2 % % The first line needs space for \box0; but if \rightskip is nonzero, % we need only space for the part of \box0 which exceeds it: \dimen0=\hsize \advance\dimen0 by -\wd0 \advance\dimen0 by \rightskip % % If doing a return type on its own line, we'll have another line. \ifrettypeownline \advance\tempnum by 1 \def\maybeshapeline{0in \hsize}% \else \def\maybeshapeline{}% \fi % % The continuations: \dimen2=\hsize \advance\dimen2 by -\defargsindent % % The final paragraph shape: \parshape \tempnum 0in \dimen0 \maybeshapeline \defargsindent \dimen2 % % Put the category name at the right margin. \noindent \hbox to 0pt{% \hfil\box0 \kern-\hsize % \hsize has to be shortened this way: \kern\leftskip % Intentionally do not respect \rightskip, since we need the space. }% % % Allow all lines to be underfull without complaint: \tolerance=10000 \hbadness=10000 \exdentamount=\defbodyindent {% % defun fonts. We use typewriter by default (used to be bold) because: % . we're printing identifiers, they should be in tt in principle. % . in languages with many accents, such as Czech or French, it's % common to leave accents off identifiers. The result looks ok in % tt, but exceedingly strange in rm. % . we don't want -- and --- to be treated as ligatures. % . this still does not fix the ?` and !` ligatures, but so far no % one has made identifiers using them :). \df \tt \def\temp{#2}% text of the return type \ifx\temp\empty\else \tclose{\temp}% typeset the return type \ifrettypeownline % put return type on its own line; prohibit line break following: \hfil\vadjust{\nobreak}\break \else \space % type on same line, so just followed by a space \fi \fi % no return type #3% output function name }% {\rm\enskip}% hskip 0.5 em of \rmfont % \boldbrax % arguments will be output next, if any. } % Print arguments in slanted roman (not ttsl), inconsistently with using % tt for the name. This is because literal text is sometimes needed in % the argument list (groff manual), and ttsl and tt are not very % distinguishable. Prevent hyphenation at `-' chars. % \def\defunargs#1{% % use sl by default (not ttsl), % tt for the names. \df \sl \hyphenchar\font=0 % % On the other hand, if an argument has two dashes (for instance), we % want a way to get ttsl. We used to recommend @var for that, so % leave the code in, but it's strange for @var to lead to typewriter. % Nowadays we recommend @code, since the difference between a ttsl hyphen % and a tt hyphen is pretty tiny. @code also disables ?` !`. \def\var##1{{\setregularquotes\ttslanted{##1}}}% #1% \sl\hyphenchar\font=45 } % We want ()&[] to print specially on the defun line. % \def\activeparens{% \catcode`\(=\active \catcode`\)=\active \catcode`\[=\active \catcode`\]=\active \catcode`\&=\active } % Make control sequences which act like normal parenthesis chars. \let\lparen = ( \let\rparen = ) % Be sure that we always have a definition for `(', etc. For example, % if the fn name has parens in it, \boldbrax will not be in effect yet, % so TeX would otherwise complain about undefined control sequence. { \activeparens \global\let(=\lparen \global\let)=\rparen \global\let[=\lbrack \global\let]=\rbrack \global\let& = \& \gdef\boldbrax{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb} \gdef\magicamp{\let&=\amprm} } \let\ampchar\& \newcount\parencount % If we encounter &foo, then turn on ()-hacking afterwards \newif\ifampseen \def\amprm#1 {\ampseentrue{\bf\ }} \def\parenfont{% \ifampseen % At the first level, print parens in roman, % otherwise use the default font. \ifnum \parencount=1 \rm \fi \else % The \sf parens (in \boldbrax) actually are a little bolder than % the contained text. This is especially needed for [ and ] . \sf \fi } \def\infirstlevel#1{% \ifampseen \ifnum\parencount=1 #1% \fi \fi } \def\bfafterword#1 {#1 \bf} \def\opnr{% \global\advance\parencount by 1 {\parenfont(}% \infirstlevel \bfafterword } \def\clnr{% {\parenfont)}% \infirstlevel \sl \global\advance\parencount by -1 } \newcount\brackcount \def\lbrb{% \global\advance\brackcount by 1 {\bf[}% } \def\rbrb{% {\bf]}% \global\advance\brackcount by -1 } \def\checkparencounts{% \ifnum\parencount=0 \else \badparencount \fi \ifnum\brackcount=0 \else \badbrackcount \fi } % these should not use \errmessage; the glibc manual, at least, actually % has such constructs (when documenting function pointers). \def\badparencount{% \message{Warning: unbalanced parentheses in @def...}% \global\parencount=0 } \def\badbrackcount{% \message{Warning: unbalanced square brackets in @def...}% \global\brackcount=0 } \message{macros,} % @macro. % To do this right we need a feature of e-TeX, \scantokens, % which we arrange to emulate with a temporary file in ordinary TeX. \ifx\eTeXversion\thisisundefined \newwrite\macscribble \def\scantokens#1{% \toks0={#1}% \immediate\openout\macscribble=\jobname.tmp \immediate\write\macscribble{\the\toks0}% \immediate\closeout\macscribble \input \jobname.tmp } \fi \let\E=\expandafter % Used at the time of macro expansion. % Argument is macro body with arguments substituted \def\scanmacro#1{% \newlinechar`\^^M % expand the expansion of \eatleadingcr twice to maybe remove a leading % newline (and \else and \fi tokens), then call \eatspaces on the result. \def\xeatspaces##1{% \E\E\E\E\E\E\E\eatspaces\E\E\E\E\E\E\E{\eatleadingcr##1% }}% \def\xempty##1{}% % % Process the macro body under the current catcode regime. \scantokens{#1@comment}% % % The \comment is to remove the \newlinechar added by \scantokens, and % can be noticed by \parsearg. Note \c isn't used because this means cedilla % in math mode. } % Used for copying and captions \def\scanexp#1{% \expandafter\scanmacro\expandafter{#1}% } \newcount\paramno % Count of parameters \newtoks\macname % Macro name \newif\ifrecursive % Is it recursive? % List of all defined macros in the form % \commondummyword\macro1\commondummyword\macro2... % Currently is also contains all @aliases; the list can be split % if there is a need. \def\macrolist{} % Add the macro to \macrolist \def\addtomacrolist#1{\expandafter \addtomacrolistxxx \csname#1\endcsname} \def\addtomacrolistxxx#1{% \toks0 = \expandafter{\macrolist\commondummyword#1}% \xdef\macrolist{\the\toks0}% } % Utility routines. % This does \let #1 = #2, with \csnames; that is, % \let \csname#1\endcsname = \csname#2\endcsname % (except of course we have to play expansion games). % \def\cslet#1#2{% \expandafter\let \csname#1\expandafter\endcsname \csname#2\endcsname } % Trim leading and trailing spaces off a string. % Concepts from aro-bend problem 15 (see CTAN). {\catcode`\@=11 \gdef\eatspaces #1{\expandafter\trim@\expandafter{#1 }} \gdef\trim@ #1{\trim@@ @#1 @ #1 @ @@} \gdef\trim@@ #1@ #2@ #3@@{\trim@@@\empty #2 @} \def\unbrace#1{#1} \unbrace{\gdef\trim@@@ #1 } #2@{#1} } {\catcode`\^^M=\other% \gdef\eatleadingcr#1{\if\noexpand#1\noexpand^^M\else\E#1\fi}}% % Warning: this won't work for a delimited argument % or for an empty argument % Trim a single trailing ^^M off a string. {\catcode`\^^M=\other \catcode`\Q=3% \gdef\eatcr #1{\eatcra #1Q^^MQ}% \gdef\eatcra#1^^MQ{\eatcrb#1Q}% \gdef\eatcrb#1Q#2Q{#1}% } % Macro bodies are absorbed as an argument in a context where % all characters are catcode 10, 11 or 12, except \ which is active % (as in normal texinfo). It is necessary to change the definition of \ % to recognize macro arguments; this is the job of \mbodybackslash. % % Non-ASCII encodings make 8-bit characters active, so un-activate % them to avoid their expansion. Must do this non-globally, to % confine the change to the current group. % % It's necessary to have hard CRs when the macro is executed. This is % done by making ^^M (\endlinechar) catcode 12 when reading the macro % body, and then making it the \newlinechar in \scanmacro. % \def\scanctxt{% used as subroutine \catcode`\"=\other \catcode`\+=\other \catcode`\<=\other \catcode`\>=\other \catcode`\^=\other \catcode`\_=\other \catcode`\|=\other \catcode`\~=\other \passthroughcharstrue } \def\scanargctxt{% used for copying and captions, not macros. \scanctxt \catcode`\@=\other \catcode`\\=\other \catcode`\^^M=\other } \def\macrobodyctxt{% used for @macro definitions \scanctxt \catcode`\ =\other \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other \catcode`\^^M=\other \usembodybackslash } % Used when scanning braced macro arguments. Note, however, that catcode % changes here are ineffectual if the macro invocation was nested inside % an argument to another Texinfo command. \def\macroargctxt{% \scanctxt \catcode`\ =\active \catcode`\@=\other \catcode`\^^M=\other \catcode`\\=\active } \def\macrolineargctxt{% used for whole-line arguments without braces \scanctxt \catcode`\@=\other \catcode`\{=\other \catcode`\}=\other } % \mbodybackslash is the definition of \ in @macro bodies. % It maps \foo\ => \csname macarg.foo\endcsname => #N % where N is the macro parameter number. % We define \csname macarg.\endcsname to be \realbackslash, so % \\ in macro replacement text gets you a backslash. % {\catcode`@=0 @catcode`@\=@active @gdef@usembodybackslash{@let\=@mbodybackslash} @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname} } \expandafter\def\csname macarg.\endcsname{\realbackslash} \def\margbackslash#1{\char`\#1 } \def\macro{\recursivefalse\parsearg\macroxxx} \def\rmacro{\recursivetrue\parsearg\macroxxx} \def\macroxxx#1{% \getargs{#1}% now \macname is the macname and \argl the arglist \ifx\argl\empty % no arguments \paramno=0\relax \else \expandafter\parsemargdef \argl;% \if\paramno>256\relax \ifx\eTeXversion\thisisundefined \errhelp = \EMsimple \errmessage{You need eTeX to compile a file with macros with more than 256 arguments} \fi \fi \fi \if1\csname ismacro.\the\macname\endcsname \message{Warning: redefining \the\macname}% \else \expandafter\ifx\csname \the\macname\endcsname \relax \else \errmessage{Macro name \the\macname\space already defined}\fi \global\cslet{macsave.\the\macname}{\the\macname}% \global\expandafter\let\csname ismacro.\the\macname\endcsname=1% \addtomacrolist{\the\macname}% \fi \begingroup \macrobodyctxt \ifrecursive \expandafter\parsermacbody \else \expandafter\parsemacbody \fi} \parseargdef\unmacro{% \if1\csname ismacro.#1\endcsname \global\cslet{#1}{macsave.#1}% \global\expandafter\let \csname ismacro.#1\endcsname=0% % Remove the macro name from \macrolist: \begingroup \expandafter\let\csname#1\endcsname \relax \let\commondummyword\unmacrodo \xdef\macrolist{\macrolist}% \endgroup \else \errmessage{Macro #1 not defined}% \fi } % Called by \do from \dounmacro on each macro. The idea is to omit any % macro definitions that have been changed to \relax. % \def\unmacrodo#1{% \ifx #1\relax % remove this \else \noexpand\commondummyword \noexpand#1% \fi } % \getargs -- Parse the arguments to a @macro line. Set \macname to % the name of the macro, and \argl to the braced argument list. \def\getargs#1{\getargsxxx#1{}} \def\getargsxxx#1#{\getmacname #1 \relax\getmacargs} \def\getmacname#1 #2\relax{\macname={#1}} \def\getmacargs#1{\def\argl{#1}} % This made use of the feature that if the last token of a % is #, then the preceding argument is delimited by % an opening brace, and that opening brace is not consumed. % Parse the optional {params} list to @macro or @rmacro. % Set \paramno to the number of arguments, % and \paramlist to a parameter text for the macro (e.g. #1,#2,#3 for a % three-param macro.) Define \macarg.BLAH for each BLAH in the params % list to some hook where the argument is to be expanded. If there are % less than 10 arguments that hook is to be replaced by ##N where N % is the position in that list, that is to say the macro arguments are to be % defined `a la TeX in the macro body. % % That gets used by \mbodybackslash (above). % % If there are 10 or more arguments, a different technique is used: see % \parsemmanyargdef. % \def\parsemargdef#1;{% \paramno=0\def\paramlist{}% \let\hash\relax % \hash is redefined to `#' later to get it into definitions \let\xeatspaces\relax \let\xempty\relax \parsemargdefxxx#1,;,% \ifnum\paramno<10\relax\else \paramno0\relax \parsemmanyargdef@@#1,;,% 10 or more arguments \fi } \def\parsemargdefxxx#1,{% \if#1;\let\next=\relax \else \let\next=\parsemargdefxxx \advance\paramno by 1 \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname {\xeatspaces{\hash\the\paramno\noexpand\xempty{}}}% \edef\paramlist{\paramlist\hash\the\paramno,}% \fi\next} % the \xempty{} is to give \eatleadingcr an argument in the case of an % empty macro argument. % \parsemacbody, \parsermacbody % % Read recursive and nonrecursive macro bodies. (They're different since % rec and nonrec macros end differently.) % % We are in \macrobodyctxt, and the \xdef causes backslashshes in the macro % body to be transformed. % Set \macrobody to the body of the macro, and call \defmacro. % {\catcode`\ =\other\long\gdef\parsemacbody#1@end macro{% \xdef\macrobody{\eatcr{#1}}\endgroup\defmacro}}% {\catcode`\ =\other\long\gdef\parsermacbody#1@end rmacro{% \xdef\macrobody{\eatcr{#1}}\endgroup\defmacro}}% % Make @ a letter, so that we can make private-to-Texinfo macro names. \edef\texiatcatcode{\the\catcode`\@} \catcode `@=11\relax %%%%%%%%%%%%%% Code for > 10 arguments only %%%%%%%%%%%%%%%%%% % If there are 10 or more arguments, a different technique is used, where the % hook remains in the body, and when macro is to be expanded the body is % processed again to replace the arguments. % % In that case, the hook is \the\toks N-1, and we simply set \toks N-1 to the % argument N value and then \edef the body (nothing else will expand because of % the catcode regime under which the body was input). % % If you compile with TeX (not eTeX), and you have macros with 10 or more % arguments, no macro can have more than 256 arguments (else error). % % In case that there are 10 or more arguments we parse again the arguments % list to set new definitions for the \macarg.BLAH macros corresponding to % each BLAH argument. It was anyhow needed to parse already once this list % in order to count the arguments, and as macros with at most 9 arguments % are by far more frequent than macro with 10 or more arguments, defining % twice the \macarg.BLAH macros does not cost too much processing power. \def\parsemmanyargdef@@#1,{% \if#1;\let\next=\relax \else \let\next=\parsemmanyargdef@@ \edef\tempb{\eatspaces{#1}}% \expandafter\def\expandafter\tempa \expandafter{\csname macarg.\tempb\endcsname}% % Note that we need some extra \noexpand\noexpand, this is because we % don't want \the to be expanded in the \parsermacbody as it uses an % \xdef . \expandafter\edef\tempa {\noexpand\noexpand\noexpand\the\toks\the\paramno}% \advance\paramno by 1\relax \fi\next} \let\endargs@\relax \let\nil@\relax \def\nilm@{\nil@}% \long\def\nillm@{\nil@}% % This macro is expanded during the Texinfo macro expansion, not during its % definition. It gets all the arguments' values and assigns them to macros % macarg.ARGNAME % % #1 is the macro name % #2 is the list of argument names % #3 is the list of argument values \def\getargvals@#1#2#3{% \def\macargdeflist@{}% \def\saveparamlist@{#2}% Need to keep a copy for parameter expansion. \def\paramlist{#2,\nil@}% \def\macroname{#1}% \begingroup \macroargctxt \def\argvaluelist{#3,\nil@}% \def\@tempa{#3}% \ifx\@tempa\empty \setemptyargvalues@ \else \getargvals@@ \fi } \def\getargvals@@{% \ifx\paramlist\nilm@ % Some sanity check needed here that \argvaluelist is also empty. \ifx\argvaluelist\nillm@ \else \errhelp = \EMsimple \errmessage{Too many arguments in macro `\macroname'!}% \fi \let\next\macargexpandinbody@ \else \ifx\argvaluelist\nillm@ % No more arguments values passed to macro. Set remaining named-arg % macros to empty. \let\next\setemptyargvalues@ \else % pop current arg name into \@tempb \def\@tempa##1{\pop@{\@tempb}{\paramlist}##1\endargs@}% \expandafter\@tempa\expandafter{\paramlist}% % pop current argument value into \@tempc \def\@tempa##1{\longpop@{\@tempc}{\argvaluelist}##1\endargs@}% \expandafter\@tempa\expandafter{\argvaluelist}% % Here \@tempb is the current arg name and \@tempc is the current arg value. % First place the new argument macro definition into \@tempd \expandafter\macname\expandafter{\@tempc}% \expandafter\let\csname macarg.\@tempb\endcsname\relax \expandafter\def\expandafter\@tempe\expandafter{% \csname macarg.\@tempb\endcsname}% \edef\@tempd{\long\def\@tempe{\the\macname}}% \push@\@tempd\macargdeflist@ \let\next\getargvals@@ \fi \fi \next } \def\push@#1#2{% \expandafter\expandafter\expandafter\def \expandafter\expandafter\expandafter#2% \expandafter\expandafter\expandafter{% \expandafter#1#2}% } % Replace arguments by their values in the macro body, and place the result % in macro \@tempa. % \def\macvalstoargs@{% % To do this we use the property that token registers that are \the'ed % within an \edef expand only once. So we are going to place all argument % values into respective token registers. % % First we save the token context, and initialize argument numbering. \begingroup \paramno0\relax % Then, for each argument number #N, we place the corresponding argument % value into a new token list register \toks#N \expandafter\putargsintokens@\saveparamlist@,;,% % Then, we expand the body so that argument are replaced by their % values. The trick for values not to be expanded themselves is that they % are within tokens and that tokens expand only once in an \edef . \edef\@tempc{\csname mac.\macroname .body\endcsname}% % Now we restore the token stack pointer to free the token list registers % which we have used, but we make sure that expanded body is saved after % group. \expandafter \endgroup \expandafter\def\expandafter\@tempa\expandafter{\@tempc}% } % Define the named-macro outside of this group and then close this group. % \def\macargexpandinbody@{% \expandafter \endgroup \macargdeflist@ % First the replace in body the macro arguments by their values, the result % is in \@tempa . \macvalstoargs@ % Then we point at the \norecurse or \gobble (for recursive) macro value % with \@tempb . \expandafter\let\expandafter\@tempb\csname mac.\macroname .recurse\endcsname % Depending on whether it is recursive or not, we need some tailing % \egroup . \ifx\@tempb\gobble \let\@tempc\relax \else \let\@tempc\egroup \fi % And now we do the real job: \edef\@tempd{\noexpand\@tempb{\macroname}\noexpand\scanmacro{\@tempa}\@tempc}% \@tempd } \def\putargsintokens@#1,{% \if#1;\let\next\relax \else \let\next\putargsintokens@ % First we allocate the new token list register, and give it a temporary % alias \@tempb . \toksdef\@tempb\the\paramno % Then we place the argument value into that token list register. \expandafter\let\expandafter\@tempa\csname macarg.#1\endcsname \expandafter\@tempb\expandafter{\@tempa}% \advance\paramno by 1\relax \fi \next } % Trailing missing arguments are set to empty. % \def\setemptyargvalues@{% \ifx\paramlist\nilm@ \let\next\macargexpandinbody@ \else \expandafter\setemptyargvaluesparser@\paramlist\endargs@ \let\next\setemptyargvalues@ \fi \next } \def\setemptyargvaluesparser@#1,#2\endargs@{% \expandafter\def\expandafter\@tempa\expandafter{% \expandafter\def\csname macarg.#1\endcsname{}}% \push@\@tempa\macargdeflist@ \def\paramlist{#2}% } % #1 is the element target macro % #2 is the list macro % #3,#4\endargs@ is the list value \def\pop@#1#2#3,#4\endargs@{% \def#1{#3}% \def#2{#4}% } \long\def\longpop@#1#2#3,#4\endargs@{% \long\def#1{#3}% \long\def#2{#4}% } %%%%%%%%%%%%%% End of code for > 10 arguments %%%%%%%%%%%%%%%%%% % This defines a Texinfo @macro or @rmacro, called by \parsemacbody. % \macrobody has the body of the macro in it, with placeholders for % its parameters, looking like "\xeatspaces{\hash 1}". % \paramno is the number of parameters % \paramlist is a TeX parameter text, e.g. "#1,#2,#3," % There are four cases: macros of zero, one, up to nine, and many arguments. % \xdef is used so that macro definitions will survive the file % they're defined in: @include reads the file inside a group. % \def\defmacro{% \let\hash=##% convert placeholders to macro parameter chars \ifnum\paramno=1 \def\xeatspaces##1{##1}% % This removes the pair of braces around the argument. We don't % use \eatspaces, because this can cause ends of lines to be lost % when the argument to \eatspaces is read, leading to line-based % commands like "@itemize" not being read correctly. \else \let\xeatspaces\relax % suppress expansion \fi \ifcase\paramno % 0 \expandafter\xdef\csname\the\macname\endcsname{% \bgroup \noexpand\spaceisspace \noexpand\endlineisspace \noexpand\expandafter % skip any whitespace after the macro name. \expandafter\noexpand\csname\the\macname @@@\endcsname}% \expandafter\xdef\csname\the\macname @@@\endcsname{% \egroup \noexpand\scanmacro{\macrobody}}% \or % 1 \expandafter\xdef\csname\the\macname\endcsname{% \bgroup \noexpand\braceorline \expandafter\noexpand\csname\the\macname @@@\endcsname}% \expandafter\xdef\csname\the\macname @@@\endcsname##1{% \egroup \noexpand\scanmacro{\macrobody}% }% \else % at most 9 \ifnum\paramno<10\relax % @MACNAME sets the context for reading the macro argument % @MACNAME@@ gets the argument, processes backslashes and appends a % comma. % @MACNAME@@@ removes braces surrounding the argument list. % @MACNAME@@@@ scans the macro body with arguments substituted. \expandafter\xdef\csname\the\macname\endcsname{% \bgroup \noexpand\expandafter % This \expandafter skip any spaces after the \noexpand\macroargctxt % macro before we change the catcode of space. \noexpand\expandafter \expandafter\noexpand\csname\the\macname @@\endcsname}% \expandafter\xdef\csname\the\macname @@\endcsname##1{% \noexpand\passargtomacro \expandafter\noexpand\csname\the\macname @@@\endcsname{##1,}}% \expandafter\xdef\csname\the\macname @@@\endcsname##1{% \expandafter\noexpand\csname\the\macname @@@@\endcsname ##1}% \expandafter\expandafter \expandafter\xdef \expandafter\expandafter \csname\the\macname @@@@\endcsname\paramlist{% \egroup\noexpand\scanmacro{\macrobody}}% \else % 10 or more: \expandafter\xdef\csname\the\macname\endcsname{% \noexpand\getargvals@{\the\macname}{\argl}% }% \global\expandafter\let\csname mac.\the\macname .body\endcsname\macrobody \global\expandafter\let\csname mac.\the\macname .recurse\endcsname\gobble \fi \fi} \catcode `\@\texiatcatcode\relax % end private-to-Texinfo catcodes \def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % {\catcode`\@=0 \catcode`\\=13 % We need to manipulate \ so use @ as escape @catcode`@_=11 % private names @catcode`@!=11 % used as argument separator % \passargtomacro#1#2 - % Call #1 with a list of tokens #2, with any doubled backslashes in #2 % compressed to one. % % This implementation works by expansion, and not execution (so we cannot use % \def or similar). This reduces the risk of this failing in contexts where % complete expansion is done with no execution (for example, in writing out to % an auxiliary file for an index entry). % % State is kept in the input stream: the argument passed to % @look_ahead, @gobble_and_check_finish and @add_segment is % % THE_MACRO ARG_RESULT ! {PENDING_BS} NEXT_TOKEN (... rest of input) % % where: % THE_MACRO - name of the macro we want to call % ARG_RESULT - argument list we build to pass to that macro % PENDING_BS - either a backslash or nothing % NEXT_TOKEN - used to look ahead in the input stream to see what's coming next @gdef@passargtomacro#1#2{% @add_segment #1!{}@relax#2\@_finish\% } @gdef@_finish{@_finishx} @global@let@_finishx@relax % #1 - THE_MACRO ARG_RESULT % #2 - PENDING_BS % #3 - NEXT_TOKEN % #4 used to look ahead % % If the next token is not a backslash, process the rest of the argument; % otherwise, remove the next token. @gdef@look_ahead#1!#2#3#4{% @ifx#4\% @expandafter@gobble_and_check_finish @else @expandafter@add_segment @fi#1!{#2}#4#4% } % #1 - THE_MACRO ARG_RESULT % #2 - PENDING_BS % #3 - NEXT_TOKEN % #4 should be a backslash, which is gobbled. % #5 looks ahead % % Double backslash found. Add a single backslash, and look ahead. @gdef@gobble_and_check_finish#1!#2#3#4#5{% @add_segment#1\!{}#5#5% } @gdef@is_fi{@fi} % #1 - THE_MACRO ARG_RESULT % #2 - PENDING_BS % #3 - NEXT_TOKEN % #4 is input stream until next backslash % % Input stream is either at the start of the argument, or just after a % backslash sequence, either a lone backslash, or a doubled backslash. % NEXT_TOKEN contains the first token in the input stream: if it is \finish, % finish; otherwise, append to ARG_RESULT the segment of the argument up until % the next backslash. PENDING_BACKSLASH contains a backslash to represent % a backslash just before the start of the input stream that has not been % added to ARG_RESULT. @gdef@add_segment#1!#2#3#4\{% @ifx#3@_finish @call_the_macro#1!% @else % append the pending backslash to the result, followed by the next segment @expandafter@is_fi@look_ahead#1#2#4!{\}@fi % this @fi is discarded by @look_ahead. % we can't get rid of it with \expandafter because we don't know how % long #4 is. } % #1 - THE_MACRO % #2 - ARG_RESULT % #3 discards the res of the conditional in @add_segment, and @is_fi ends the % conditional. @gdef@call_the_macro#1#2!#3@fi{@is_fi #1{#2}} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \braceorline MAC is used for a one-argument macro MAC. It checks % whether the next non-whitespace character is a {. It sets the context % for reading the argument (slightly different in the two cases). Then, % to read the argument, in the whole-line case, it then calls the regular % \parsearg MAC; in the lbrace case, it calls \passargtomacro MAC. % \def\braceorline#1{\let\macnamexxx=#1\futurelet\nchar\braceorlinexxx} \def\braceorlinexxx{% \ifx\nchar\bgroup \macroargctxt \expandafter\passargtomacro \else \macrolineargctxt\expandafter\parsearg \fi \macnamexxx} % @alias. % We need some trickery to remove the optional spaces around the equal % sign. Make them active and then expand them all to nothing. % \def\alias{\parseargusing\obeyspaces\aliasxxx} \def\aliasxxx #1{\aliasyyy#1\relax} \def\aliasyyy #1=#2\relax{% {% \expandafter\let\obeyedspace=\empty \addtomacrolist{#1}% \xdef\next{\global\let\makecsname{#1}=\makecsname{#2}}% }% \next } \message{cross references,} \newwrite\auxfile \newif\ifhavexrefs % True if xref values are known. \newif\ifwarnedxrefs % True if we warned once that they aren't known. % @inforef is relatively simple. \def\inforef #1{\inforefzzz #1,,,,**} \def\inforefzzz #1,#2,#3,#4**{% \putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}}, node \samp{\ignorespaces#1{}}} % @node's only job in TeX is to define \lastnode, which is used in % cross-references. The @node line might or might not have commas, and % might or might not have spaces before the first comma, like: % @node foo , bar , ... % We don't want such trailing spaces in the node name. % \parseargdef\node{\checkenv{}\donode #1 ,\finishnodeparse} % % also remove a trailing comma, in case of something like this: % @node Help-Cross, , , Cross-refs \def\donode#1 ,#2\finishnodeparse{\dodonode #1,\finishnodeparse} \def\dodonode#1,#2\finishnodeparse{\gdef\lastnode{#1}\omittopnode} % Used so that the @top node doesn't have to be wrapped in an @ifnottex % conditional. % \doignore goes to more effort to skip nested conditionals but we don't need % that here. \def\omittopnode{% \ifx\lastnode\wordTop \expandafter\ignorenode\fi } \def\wordTop{Top} % Until the next @node, @part or @bye command, divert output to a box that % is not output. \def\ignorenode{\setbox\dummybox\vbox\bgroup \def\part{\egroup\part}% \def\node{\egroup\node}% \ignorenodebye } {\let\bye\relax \gdef\ignorenodebye{\let\bye\ignorenodebyedef} \gdef\ignorenodebyedef{\egroup(`Top' node ignored)\bye}} % The redefinition of \bye here is because it is declared \outer \let\lastnode=\empty % Write a cross-reference definition for the current node. #1 is the % type (Ynumbered, Yappendix, Ynothing). % \def\donoderef#1{% \ifx\lastnode\empty\else \setref{\lastnode}{#1}% \global\let\lastnode=\empty \fi } % @anchor{NAME} -- define xref target at arbitrary point. % \newcount\savesfregister % \def\savesf{\relax \ifhmode \savesfregister=\spacefactor \fi} \def\restoresf{\relax \ifhmode \spacefactor=\savesfregister \fi} \def\anchor#1{\savesf \setref{#1}{Ynothing}\restoresf \ignorespaces} % \setref{NAME}{SNT} defines a cross-reference point NAME (a node or an % anchor), which consists of three parts: % 1) NAME-title - the current sectioning name taken from \currentsection, % or the anchor name. % 2) NAME-snt - section number and type, passed as the SNT arg, or % empty for anchors. % 3) NAME-pg - the page number. % % This is called from \donoderef, \anchor, and \dofloat. In the case of % floats, there is an additional part, which is not written here: % 4) NAME-lof - the text as it should appear in a @listoffloats. % \def\setref#1#2{% \pdfmkdest{#1}% \iflinks {% \requireauxfile \atdummies % preserve commands, but don't expand them % match definition in \xrdef, \refx, \xrefX. \def\value##1{##1}% \edef\writexrdef##1##2{% \write\auxfile{@xrdef{#1-% #1 of \setref, expanded by the \edef ##1}{##2}}% these are parameters of \writexrdef }% \toks0 = \expandafter{\currentsection}% \immediate \writexrdef{title}{\the\toks0 }% \immediate \writexrdef{snt}{\csname #2\endcsname}% \Ynumbered etc. \safewhatsit{\writexrdef{pg}{\folio}}% will be written later, at \shipout }% \fi } % @xrefautosectiontitle on|off says whether @section(ing) names are used % automatically in xrefs, if the third arg is not explicitly specified. % This was provided as a "secret" @set xref-automatic-section-title % variable, now it's official. % \parseargdef\xrefautomaticsectiontitle{% \def\temp{#1}% \ifx\temp\onword \expandafter\let\csname SETxref-automatic-section-title\endcsname = \empty \else\ifx\temp\offword \expandafter\let\csname SETxref-automatic-section-title\endcsname = \relax \else \errhelp = \EMsimple \errmessage{Unknown @xrefautomaticsectiontitle value `\temp', must be on|off}% \fi\fi } % % @xref, @pxref, and @ref generate cross-references. For \xrefX, #1 is % the node name, #2 the name of the Info cross-reference, #3 the printed % node name, #4 the name of the Info file, #5 the name of the printed % manual. All but the node name can be omitted. % \def\pxref{\putwordsee{} \xrefXX} \def\xref{\putwordSee{} \xrefXX} \def\ref{\xrefXX} \def\xrefXX#1{\def\xrefXXarg{#1}\futurelet\tokenafterxref\xrefXXX} \def\xrefXXX{\expandafter\xrefX\expandafter[\xrefXXarg,,,,,,,]} % \newbox\toprefbox \newbox\printedrefnamebox \newbox\infofilenamebox \newbox\printedmanualbox % \def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup \unsepspaces % % Get args without leading/trailing spaces. \def\printedrefname{\ignorespaces #3}% \setbox\printedrefnamebox = \hbox{\printedrefname\unskip}% % \def\infofilename{\ignorespaces #4}% \setbox\infofilenamebox = \hbox{\infofilename\unskip}% % \def\printedmanual{\ignorespaces #5}% \setbox\printedmanualbox = \hbox{\printedmanual\unskip}% % % If the printed reference name (arg #3) was not explicitly given in % the @xref, figure out what we want to use. \ifdim \wd\printedrefnamebox = 0pt % No printed node name was explicitly given. \expandafter\ifx\csname SETxref-automatic-section-title\endcsname \relax % Not auto section-title: use node name inside the square brackets. \def\printedrefname{\ignorespaces #1}% \else % Auto section-title: use chapter/section title inside % the square brackets if we have it. \ifdim \wd\printedmanualbox > 0pt % It is in another manual, so we don't have it; use node name. \def\printedrefname{\ignorespaces #1}% \else \ifhavexrefs % We (should) know the real title if we have the xref values. \def\printedrefname{\refx{#1-title}}% \else % Otherwise just copy the Info node name. \def\printedrefname{\ignorespaces #1}% \fi% \fi \fi \fi % % Make link in pdf output. \ifpdf % For pdfTeX and LuaTeX {\indexnofonts \makevalueexpandable \turnoffactive % This expands tokens, so do it after making catcode changes, so _ % etc. don't get their TeX definitions. This ignores all spaces in % #4, including (wrongly) those in the middle of the filename. \getfilename{#4}% % % This (wrongly) does not take account of leading or trailing % spaces in #1, which should be ignored. \setpdfdestname{#1}% % \ifx\pdfdestname\empty \def\pdfdestname{Top}% no empty targets \fi % \leavevmode \startlink attr{/Border [0 0 0]}% \ifnum\filenamelength>0 goto file{\the\filename.pdf} name{\pdfdestname}% \else goto name{\pdfmkpgn{\pdfdestname}}% \fi }% \setcolor{\linkcolor}% \else \ifx\XeTeXrevision\thisisundefined \else % For XeTeX {\indexnofonts \makevalueexpandable \turnoffactive % This expands tokens, so do it after making catcode changes, so _ % etc. don't get their TeX definitions. This ignores all spaces in % #4, including (wrongly) those in the middle of the filename. \getfilename{#4}% % % This (wrongly) does not take account of leading or trailing % spaces in #1, which should be ignored. \setpdfdestname{#1}% % \ifx\pdfdestname\empty \def\pdfdestname{Top}% no empty targets \fi % \leavevmode \ifnum\filenamelength>0 % With default settings, % XeTeX (xdvipdfmx) replaces link destination names with integers. % In this case, the replaced destination names of % remote PDFs are no longer known. In order to avoid a replacement, % you can use xdvipdfmx's command line option `-C 0x0010'. % If you use XeTeX 0.99996+ (TeX Live 2016+), % this command line option is no longer necessary % because we can use the `dvipdfmx:config' special. \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A << /S /GoToR /F (\the\filename.pdf) /D (\pdfdestname) >> >>}% \else \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A << /S /GoTo /D (\pdfdestname) >> >>}% \fi }% \setcolor{\linkcolor}% \fi \fi {% % Have to otherify everything special to allow the \csname to % include an _ in the xref name, etc. \indexnofonts \turnoffactive \def\value##1{##1}% \expandafter\global\expandafter\let\expandafter\Xthisreftitle \csname XR#1-title\endcsname }% % % Float references are printed completely differently: "Figure 1.2" % instead of "[somenode], p.3". \iffloat distinguishes them by % \Xthisreftitle being set to a magic string. \iffloat\Xthisreftitle % If the user specified the print name (third arg) to the ref, % print it instead of our usual "Figure 1.2". \ifdim\wd\printedrefnamebox = 0pt \refx{#1-snt}% \else \printedrefname \fi % % If the user also gave the printed manual name (fifth arg), append % "in MANUALNAME". \ifdim \wd\printedmanualbox > 0pt \space \putwordin{} \cite{\printedmanual}% \fi \else % node/anchor (non-float) references. % % If we use \unhbox to print the node names, TeX does not insert % empty discretionaries after hyphens, which means that it will not % find a line break at a hyphen in a node names. Since some manuals % are best written with fairly long node names, containing hyphens, % this is a loss. Therefore, we give the text of the node name % again, so it is as if TeX is seeing it for the first time. % \ifdim \wd\printedmanualbox > 0pt % Cross-manual reference with a printed manual name. % \crossmanualxref{\cite{\printedmanual\unskip}}% % \else\ifdim \wd\infofilenamebox > 0pt % Cross-manual reference with only an info filename (arg 4), no % printed manual name (arg 5). This is essentially the same as % the case above; we output the filename, since we have nothing else. % \crossmanualxref{\code{\infofilename\unskip}}% % \else % Reference within this manual. % % Only output a following space if the -snt ref is nonempty, as the ref % will be empty for @unnumbered and @anchor. \setbox2 = \hbox{\ignorespaces \refx{#1-snt}}% \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi % % output the `[mynode]' via the macro below so it can be overridden. \xrefprintnodename\printedrefname % \expandafter\ifx\csname SETtxiomitxrefpg\endcsname\relax % But we always want a comma and a space: ,\space % % output the `page 3'. \turnoffactive \putwordpage\tie\refx{#1-pg}% % Add a , if xref followed by a space \if\space\noexpand\tokenafterxref ,% \else\ifx\ \tokenafterxref ,% @TAB \else\ifx\*\tokenafterxref ,% @* \else\ifx\ \tokenafterxref ,% @SPACE \else\ifx\ \tokenafterxref ,% @NL \else\ifx\tie\tokenafterxref ,% @tie \fi\fi\fi\fi\fi\fi \fi \fi\fi \fi \endlink \endgroup} % Output a cross-manual xref to #1. Used just above (twice). % % Only include the text "Section ``foo'' in" if the foo is neither % missing or Top. Thus, @xref{,,,foo,The Foo Manual} outputs simply % "see The Foo Manual", the idea being to refer to the whole manual. % % But, this being TeX, we can't easily compare our node name against the % string "Top" while ignoring the possible spaces before and after in % the input. By adding the arbitrary 7sp below, we make it much less % likely that a real node name would have the same width as "Top" (e.g., % in a monospaced font). Hopefully it will never happen in practice. % % For the same basic reason, we retypeset the "Top" at every % reference, since the current font is indeterminate. % \def\crossmanualxref#1{% \setbox\toprefbox = \hbox{Top\kern7sp}% \setbox2 = \hbox{\ignorespaces \printedrefname \unskip \kern7sp}% \ifdim \wd2 > 7sp % nonempty? \ifdim \wd2 = \wd\toprefbox \else % same as Top? \putwordSection{} ``\printedrefname'' \putwordin{}\space \fi \fi #1% } % This macro is called from \xrefX for the `[nodename]' part of xref % output. It's a separate macro only so it can be changed more easily, % since square brackets don't work well in some documents. Particularly % one that Bob is working on :). % \def\xrefprintnodename#1{[#1]} % Things referred to by \setref. % \def\Ynothing{} \def\Yomitfromtoc{} \def\Ynumbered{% \ifnum\secno=0 \putwordChapter@tie \the\chapno \else \ifnum\subsecno=0 \putwordSection@tie \the\chapno.\the\secno \else \ifnum\subsubsecno=0 \putwordSection@tie \the\chapno.\the\secno.\the\subsecno \else \putwordSection@tie \the\chapno.\the\secno.\the\subsecno.\the\subsubsecno \fi\fi\fi } \def\Yappendix{% \ifnum\secno=0 \putwordAppendix@tie @char\the\appendixno{}% \else \ifnum\subsecno=0 \putwordSection@tie @char\the\appendixno.\the\secno \else \ifnum\subsubsecno=0 \putwordSection@tie @char\the\appendixno.\the\secno.\the\subsecno \else \putwordSection@tie @char\the\appendixno.\the\secno.\the\subsecno.\the\subsubsecno \fi\fi\fi } % \refx{NAME} - reference a cross-reference string named NAME. \def\refx#1{% \requireauxfile {% \indexnofonts \turnoffactive \def\value##1{##1}% \expandafter\global\expandafter\let\expandafter\thisrefX \csname XR#1\endcsname }% \ifx\thisrefX\relax % If not defined, say something at least. \angleleft un\-de\-fined\angleright \iflinks \ifhavexrefs {\toks0 = {#1}% avoid expansion of possibly-complex value \message{\linenumber Undefined cross reference `\the\toks0'.}}% \else \ifwarnedxrefs\else \global\warnedxrefstrue \message{Cross reference values unknown; you must run TeX again.}% \fi \fi \fi \else % It's defined, so just use it. \thisrefX \fi } % This is the macro invoked by entries in the aux file. Define a control % sequence for a cross-reference target (we prepend XR to the control sequence % name to avoid collisions). The value is the page number. If this is a float % type, we have more work to do. % \def\xrdef#1#2{% {% Expand the node or anchor name to remove control sequences. % \turnoffactive stops 8-bit characters being changed to commands % like @'e. \refx does the same to retrieve the value in the definition. \indexnofonts \turnoffactive \def\value##1{##1}% \xdef\safexrefname{#1}% }% % \bgroup \expandafter\gdef\csname XR\safexrefname\endcsname{#2}% \egroup % We put the \gdef inside a group to avoid the definitions building up on % TeX's save stack, which can cause it to run out of space for aux files with % thousands of lines. \gdef doesn't use the save stack, but \csname does % when it defines an unknown control sequence as \relax. % % Was that xref control sequence that we just defined for a float? \expandafter\iffloat\csname XR\safexrefname\endcsname % it was a float, and we have the (safe) float type in \iffloattype. \expandafter\let\expandafter\floatlist \csname floatlist\iffloattype\endcsname % % Is this the first time we've seen this float type? \expandafter\ifx\floatlist\relax \toks0 = {\do}% yes, so just \do \else % had it before, so preserve previous elements in list. \toks0 = \expandafter{\floatlist\do}% \fi % % Remember this xref in the control sequence \floatlistFLOATTYPE, % for later use in \listoffloats. \expandafter\xdef\csname floatlist\iffloattype\endcsname{\the\toks0 {\safexrefname}}% \fi } % If working on a large document in chapters, it is convenient to % be able to disable indexing, cross-referencing, and contents, for test runs. % This is done with @novalidate at the beginning of the file. % \newif\iflinks \linkstrue % by default we want the aux files. \let\novalidate = \linksfalse % Used when writing to the aux file, or when using data from it. \def\requireauxfile{% \iflinks \tryauxfile % Open the new aux file. TeX will close it automatically at exit. \immediate\openout\auxfile=\jobname.aux \fi \global\let\requireauxfile=\relax % Only do this once. } % Read the last existing aux file, if any. No error if none exists. % \def\tryauxfile{% \openin 1 \jobname.aux \ifeof 1 \else \readdatafile{aux}% \global\havexrefstrue \fi \closein 1 } \def\setupdatafile{% \catcode`\^^@=\other \catcode`\^^A=\other \catcode`\^^B=\other \catcode`\^^C=\other \catcode`\^^D=\other \catcode`\^^E=\other \catcode`\^^F=\other \catcode`\^^G=\other \catcode`\^^H=\other \catcode`\^^K=\other \catcode`\^^L=\other \catcode`\^^N=\other \catcode`\^^P=\other \catcode`\^^Q=\other \catcode`\^^R=\other \catcode`\^^S=\other \catcode`\^^T=\other \catcode`\^^U=\other \catcode`\^^V=\other \catcode`\^^W=\other \catcode`\^^X=\other \catcode`\^^Z=\other \catcode`\^^[=\other \catcode`\^^\=\other \catcode`\^^]=\other \catcode`\^^^=\other \catcode`\^^_=\other \catcode`\^=\other % % Special characters. Should be turned off anyway, but... \catcode`\~=\other \catcode`\[=\other \catcode`\]=\other \catcode`\"=\other \catcode`\_=\active \catcode`\|=\active \catcode`\<=\active \catcode`\>=\active \catcode`\$=\other \catcode`\#=\other \catcode`\&=\other \catcode`\%=\other \catcode`+=\other % avoid \+ for paranoia even though we've turned it off % \catcode`\\=\active % % @ is our escape character in .aux files, and we need braces. \catcode`\{=1 \catcode`\}=2 \catcode`\@=0 } \def\readdatafile#1{% \begingroup \setupdatafile \input\jobname.#1 \endgroup} \message{insertions,} % including footnotes. \newcount \footnoteno % The trailing space in the following definition for supereject is % vital for proper filling; pages come out unaligned when you do a % pagealignmacro call if that space before the closing brace is % removed. (Generally, numeric constants should always be followed by a % space to prevent strange expansion errors.) \def\supereject{\par\penalty -20000\footnoteno =0 } % @footnotestyle is meaningful for Info output only. \let\footnotestyle=\comment {\catcode `\@=11 % % Auto-number footnotes. Otherwise like plain. \gdef\footnote{% \global\advance\footnoteno by \@ne \edef\thisfootno{$^{\the\footnoteno}$}% % % In case the footnote comes at the end of a sentence, preserve the % extra spacing after we do the footnote number. \let\@sf\empty \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\ptexslash\fi % % Remove inadvertent blank space before typesetting the footnote number. \unskip \thisfootno\@sf \dofootnote }% % Don't bother with the trickery in plain.tex to not require the % footnote text as a parameter. Our footnotes don't need to be so general. % % Oh yes, they do; otherwise, @ifset (and anything else that uses % \parseargline) fails inside footnotes because the tokens are fixed when % the footnote is read. --karl, 16nov96. % \gdef\dofootnote{% \insert\footins\bgroup % % Nested footnotes are not supported in TeX, that would take a lot % more work. (\startsavinginserts does not suffice.) \let\footnote=\errfootnotenest % % We want to typeset this text as a normal paragraph, even if the % footnote reference occurs in (for example) a display environment. % So reset some parameters. \hsize=\txipagewidth \interlinepenalty\interfootnotelinepenalty \splittopskip\ht\strutbox % top baseline for broken footnotes \splitmaxdepth\dp\strutbox \floatingpenalty\@MM \leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip \parindent\defaultparindent % \smallfonts \rm % % Because we use hanging indentation in footnotes, a @noindent appears % to exdent this text, so make it be a no-op. makeinfo does not use % hanging indentation so @noindent can still be needed within footnote % text after an @example or the like (not that this is good style). \let\noindent = \relax % % Hang the footnote text off the number. Use \everypar in case the % footnote extends for more than one paragraph. \everypar = {\hang}% \textindent{\thisfootno}% % % Don't crash into the line above the footnote text. Since this % expands into a box, it must come within the paragraph, lest it % provide a place where TeX can split the footnote. \footstrut % % Invoke rest of plain TeX footnote routine. \futurelet\next\fo@t } }%end \catcode `\@=11 \def\errfootnotenest{% \errhelp=\EMsimple \errmessage{Nested footnotes not supported in texinfo.tex, even though they work in makeinfo; sorry} } \def\errfootnoteheading{% \errhelp=\EMsimple \errmessage{Footnotes in chapters, sections, etc., are not supported} } % In case a @footnote appears in a vbox, save the footnote text and create % the real \insert just after the vbox finished. Otherwise, the insertion % would be lost. % Similarly, if a @footnote appears inside an alignment, save the footnote % text to a box and make the \insert when a row of the table is finished. % And the same can be done for other insert classes. --kasal, 16nov03. % % Replace the \insert primitive by a cheating macro. % Deeper inside, just make sure that the saved insertions are not spilled % out prematurely. % \def\startsavinginserts{% \ifx \insert\ptexinsert \let\insert\saveinsert \else \let\checkinserts\relax \fi } % This \insert replacement works for both \insert\footins{foo} and % \insert\footins\bgroup foo\egroup, but it doesn't work for \insert27{foo}. % \def\saveinsert#1{% \edef\next{\noexpand\savetobox \makeSAVEname#1}% \afterassignment\next % swallow the left brace \let\temp = } \def\makeSAVEname#1{\makecsname{SAVE\expandafter\gobble\string#1}} \def\savetobox#1{\global\setbox#1 = \vbox\bgroup \unvbox#1} \def\checksaveins#1{\ifvoid#1\else \placesaveins#1\fi} \def\placesaveins#1{% \ptexinsert \csname\expandafter\gobblesave\string#1\endcsname {\box#1}% } % eat @SAVE -- beware, all of them have catcode \other: { \def\dospecials{\do S\do A\do V\do E} \uncatcodespecials % ;-) \gdef\gobblesave @SAVE{} } % initialization: \def\newsaveins #1{% \edef\next{\noexpand\newsaveinsX \makeSAVEname#1}% \next } \def\newsaveinsX #1{% \csname newbox\endcsname #1% \expandafter\def\expandafter\checkinserts\expandafter{\checkinserts \checksaveins #1}% } % initialize: \let\checkinserts\empty \newsaveins\footins \newsaveins\margin % @image. We use the macros from epsf.tex to support this. % If epsf.tex is not installed and @image is used, we complain. % % Check for and read epsf.tex up front. If we read it only at @image % time, we might be inside a group, and then its definitions would get % undone and the next image would fail. \openin 1 = epsf.tex \ifeof 1 \else % Do not bother showing banner with epsf.tex v2.7k (available in % doc/epsf.tex and on ctan). \def\epsfannounce{\toks0 = }% \input epsf.tex \fi \closein 1 % % We will only complain once about lack of epsf.tex. \newif\ifwarnednoepsf \newhelp\noepsfhelp{epsf.tex must be installed for images to work. It is also included in the Texinfo distribution, or you can get it from https://ctan.org/texarchive/macros/texinfo/texinfo/doc/epsf.tex.} % \def\image#1{% \ifx\epsfbox\thisisundefined \ifwarnednoepsf \else \errhelp = \noepsfhelp \errmessage{epsf.tex not found, images will be ignored}% \global\warnednoepsftrue \fi \else \imagexxx #1,,,,,\finish \fi } % % Arguments to @image: % #1 is (mandatory) image filename; we tack on .eps extension. % #2 is (optional) width, #3 is (optional) height. % #4 is (ignored optional) html alt text. % #5 is (ignored optional) extension. % #6 is just the usual extra ignored arg for parsing stuff. \newif\ifimagevmode \def\imagexxx#1,#2,#3,#4,#5,#6\finish{\begingroup \catcode`\^^M = 5 % in case we're inside an example \normalturnoffactive % allow _ et al. in names \makevalueexpandable \ifvmode \imagevmodetrue \else \ifx\centersub\centerV % for @center @image, we need a vbox so we can have our vertical space \imagevmodetrue \vbox\bgroup % vbox has better behavior than vtop here \fi\fi % \ifimagevmode \medskip % Usually we'll have text after the image which will insert % \parskip glue, so insert it here too to equalize the space % above and below. \vskip\parskip % % Place image in a \vtop for a top page margin that is (close to) correct, % as \topskip glue is relative to the first baseline. \vtop\bgroup\hrule height 0pt\vskip-\parskip \fi % % Enter horizontal mode so that indentation from an enclosing % environment such as @quotation is respected. % However, if we're at the top level, we don't want the % normal paragraph indentation. % On the other hand, if we are in the case of @center @image, we don't % want to start a paragraph, which will create a hsize-width box and % eradicate the centering. \ifx\centersub\centerV \else \imageindent \fi % % Output the image. \ifpdf % For pdfTeX and LuaTeX <= 0.80 \dopdfimage{#1}{#2}{#3}% \else \ifx\XeTeXrevision\thisisundefined % For epsf.tex % \epsfbox itself resets \epsf?size at each figure. \setbox0 = \hbox{\ignorespaces #2}% \ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi \setbox0 = \hbox{\ignorespaces #3}% \ifdim\wd0 > 0pt \epsfysize=#3\relax \fi \epsfbox{#1.eps}% \else % For XeTeX \doxeteximage{#1}{#2}{#3}% \fi \fi % \ifimagevmode \egroup \medskip % space after a standalone image \fi \ifx\centersub\centerV \egroup \fi \endgroup} % @float FLOATTYPE,LABEL,LOC ... @end float for displayed figures, tables, % etc. We don't actually implement floating yet, we always include the % float "here". But it seemed the best name for the future. % \envparseargdef\float{\eatcommaspace\eatcommaspace\dofloat#1, , ,\finish} % There may be a space before second and/or third parameter; delete it. \def\eatcommaspace#1, {#1,} % #1 is the optional FLOATTYPE, the text label for this float, typically % "Figure", "Table", "Example", etc. Can't contain commas. If omitted, % this float will not be numbered and cannot be referred to. % % #2 is the optional xref label. Also must be present for the float to % be referable. % % #3 is the optional positioning argument; for now, it is ignored. It % will somehow specify the positions allowed to float to (here, top, bottom). % % We keep a separate counter for each FLOATTYPE, which we reset at each % chapter-level command. \let\resetallfloatnos=\empty % \def\dofloat#1,#2,#3,#4\finish{% \let\thiscaption=\empty \let\thisshortcaption=\empty % % don't lose footnotes inside @float. % % BEWARE: when the floats start float, we have to issue warning whenever an % insert appears inside a float which could possibly float. --kasal, 26may04 % \startsavinginserts % % We can't be used inside a paragraph. \par % \vtop\bgroup \def\floattype{#1}% \def\floatlabel{#2}% \def\floatloc{#3}% we do nothing with this yet. % \ifx\floattype\empty \let\safefloattype=\empty \else {% % the floattype might have accents or other special characters, % but we need to use it in a control sequence name. \indexnofonts \turnoffactive \xdef\safefloattype{\floattype}% }% \fi % % If label is given but no type, we handle that as the empty type. \ifx\floatlabel\empty \else % We want each FLOATTYPE to be numbered separately (Figure 1, % Table 1, Figure 2, ...). (And if no label, no number.) % \expandafter\getfloatno\csname\safefloattype floatno\endcsname \global\advance\floatno by 1 % {% % This magic value for \currentsection is output by \setref as the % XREFLABEL-title value. \xrefX uses it to distinguish float % labels (which have a completely different output format) from % node and anchor labels. And \xrdef uses it to construct the % lists of floats. % \edef\currentsection{\floatmagic=\safefloattype}% \setref{\floatlabel}{Yfloat}% }% \fi % % start with \parskip glue, I guess. \vskip\parskip % % Don't suppress indentation if a float happens to start a section. \restorefirstparagraphindent } % we have these possibilities: % @float Foo,lbl & @caption{Cap}: Foo 1.1: Cap % @float Foo,lbl & no caption: Foo 1.1 % @float Foo & @caption{Cap}: Foo: Cap % @float Foo & no caption: Foo % @float ,lbl & Caption{Cap}: 1.1: Cap % @float ,lbl & no caption: 1.1 % @float & @caption{Cap}: Cap % @float & no caption: % \def\Efloat{% \let\floatident = \empty % % In all cases, if we have a float type, it comes first. \ifx\floattype\empty \else \def\floatident{\floattype}\fi % % If we have an xref label, the number comes next. \ifx\floatlabel\empty \else \ifx\floattype\empty \else % if also had float type, need tie first. \appendtomacro\floatident{\tie}% \fi % the number. \appendtomacro\floatident{\chaplevelprefix\the\floatno}% \fi % % Start the printed caption with what we've constructed in % \floatident, but keep it separate; we need \floatident again. \let\captionline = \floatident % \ifx\thiscaption\empty \else \ifx\floatident\empty \else \appendtomacro\captionline{: }% had ident, so need a colon between \fi % % caption text. \appendtomacro\captionline{\scanexp\thiscaption}% \fi % % If we have anything to print, print it, with space before. % Eventually this needs to become an \insert. \ifx\captionline\empty \else \vskip.5\parskip \captionline % % Space below caption. \vskip\parskip \fi % % If have an xref label, write the list of floats info. Do this % after the caption, to avoid chance of it being a breakpoint. \ifx\floatlabel\empty \else % Write the text that goes in the lof to the aux file as % \floatlabel-lof. Besides \floatident, we include the short % caption if specified, else the full caption if specified, else nothing. {% \requireauxfile \atdummies % \ifx\thisshortcaption\empty \def\gtemp{\thiscaption}% \else \def\gtemp{\thisshortcaption}% \fi \immediate\write\auxfile{@xrdef{\floatlabel-lof}{\floatident \ifx\gtemp\empty \else : \gtemp \fi}}% }% \fi \egroup % end of \vtop % \checkinserts } % Append the tokens #2 to the definition of macro #1, not expanding either. % \def\appendtomacro#1#2{% \expandafter\def\expandafter#1\expandafter{#1#2}% } % @caption, @shortcaption % \def\caption{\docaption\thiscaption} \def\shortcaption{\docaption\thisshortcaption} \def\docaption{\checkenv\float \bgroup\scanargctxt\defcaption} \def\defcaption#1#2{\egroup \def#1{#2}} % The parameter is the control sequence identifying the counter we are % going to use. Create it if it doesn't exist and assign it to \floatno. \def\getfloatno#1{% \ifx#1\relax % Haven't seen this figure type before. \csname newcount\endcsname #1% % % Remember to reset this floatno at the next chap. \expandafter\gdef\expandafter\resetallfloatnos \expandafter{\resetallfloatnos #1=0 }% \fi \let\floatno#1% } % \setref calls this to get the XREFLABEL-snt value. We want an @xref % to the FLOATLABEL to expand to "Figure 3.1". We call \setref when we % first read the @float command. % \def\Yfloat{\floattype@tie \chaplevelprefix\the\floatno}% % Magic string used for the XREFLABEL-title value, so \xrefX can % distinguish floats from other xref types. \def\floatmagic{!!float!!} % #1 is the control sequence we are passed; we expand into a conditional % which is true if #1 represents a float ref. That is, the magic % \currentsection value which we \setref above. % \def\iffloat#1{\expandafter\doiffloat#1==\finish} % % #1 is (maybe) the \floatmagic string. If so, #2 will be the % (safe) float type for this float. We set \iffloattype to #2. % \def\doiffloat#1=#2=#3\finish{% \def\temp{#1}% \def\iffloattype{#2}% \ifx\temp\floatmagic } % @listoffloats FLOATTYPE - print a list of floats like a table of contents. % \parseargdef\listoffloats{% \def\floattype{#1}% floattype {% % the floattype might have accents or other special characters, % but we need to use it in a control sequence name. \indexnofonts \turnoffactive \xdef\safefloattype{\floattype}% }% % % \xrdef saves the floats as a \do-list in \floatlistSAFEFLOATTYPE. \expandafter\ifx\csname floatlist\safefloattype\endcsname \relax \ifhavexrefs % if the user said @listoffloats foo but never @float foo. \message{\linenumber No `\safefloattype' floats to list.}% \fi \else \begingroup \leftskip=\tocindent % indent these entries like a toc \let\do=\listoffloatsdo \csname floatlist\safefloattype\endcsname \endgroup \fi } % This is called on each entry in a list of floats. We're passed the % xref label, in the form LABEL-title, which is how we save it in the % aux file. We strip off the -title and look up \XRLABEL-lof, which % has the text we're supposed to typeset here. % % Figures without xref labels will not be included in the list (since % they won't appear in the aux file). % \def\listoffloatsdo#1{\listoffloatsdoentry#1\finish} \def\listoffloatsdoentry#1-title\finish{{% % Can't fully expand XR#1-lof because it can contain anything. Just % pass the control sequence. On the other hand, XR#1-pg is just the % page number, and we want to fully expand that so we can get a link % in pdf output. \toksA = \expandafter{\csname XR#1-lof\endcsname}% % % use the same \entry macro we use to generate the TOC and index. \edef\writeentry{\noexpand\entry{\the\toksA}{\csname XR#1-pg\endcsname}}% \writeentry }} \message{localization,} % For single-language documents, @documentlanguage is usually given very % early, just after @documentencoding. Single argument is the language % (de) or locale (de_DE) abbreviation. % { \catcode`\_ = \active \globaldefs=1 \parseargdef\documentlanguage{% \tex % read txi-??.tex file in plain TeX. % Read the file by the name they passed if it exists. \let_ = \normalunderscore % normal _ character for filename test \openin 1 txi-#1.tex \ifeof 1 \documentlanguagetrywithoutunderscore #1_\finish \else \globaldefs = 1 % everything in the txi-LL files needs to persist \input txi-#1.tex \fi \closein 1 \endgroup % end raw TeX } % % If they passed de_DE, and txi-de_DE.tex doesn't exist, % try txi-de.tex. % \gdef\documentlanguagetrywithoutunderscore#1_#2\finish{% \openin 1 txi-#1.tex \ifeof 1 \errhelp = \nolanghelp \errmessage{Cannot read language file txi-#1.tex}% \else \globaldefs = 1 % everything in the txi-LL files needs to persist \input txi-#1.tex \fi \closein 1 } }% end of special _ catcode % \newhelp\nolanghelp{The given language definition file cannot be found or is empty. Maybe you need to install it? Putting it in the current directory should work if nowhere else does.} % This macro is called from txi-??.tex files; the first argument is the % \language name to set (without the "\lang@" prefix), the second and % third args are \{left,right}hyphenmin. % % The language names to pass are determined when the format is built. % See the etex.log file created at that time, e.g., % /usr/local/texlive/2008/texmf-var/web2c/pdftex/etex.log. % % With TeX Live 2008, etex now includes hyphenation patterns for all % available languages. This means we can support hyphenation in % Texinfo, at least to some extent. (This still doesn't solve the % accented characters problem.) % \catcode`@=11 \def\txisetlanguage#1#2#3{% % do not set the language if the name is undefined in the current TeX. \expandafter\ifx\csname lang@#1\endcsname \relax \message{no patterns for #1}% \else \global\language = \csname lang@#1\endcsname \fi % but there is no harm in adjusting the hyphenmin values regardless. \global\lefthyphenmin = #2\relax \global\righthyphenmin = #3\relax } % XeTeX and LuaTeX can handle Unicode natively. % Their default I/O uses UTF-8 sequences instead of a byte-wise operation. % Other TeX engines' I/O (pdfTeX, etc.) is byte-wise. % \newif\iftxinativeunicodecapable \newif\iftxiusebytewiseio \ifx\XeTeXrevision\thisisundefined \ifx\luatexversion\thisisundefined \txinativeunicodecapablefalse \txiusebytewiseiotrue \else \txinativeunicodecapabletrue \txiusebytewiseiofalse \fi \else \txinativeunicodecapabletrue \txiusebytewiseiofalse \fi % Set I/O by bytes instead of UTF-8 sequence for XeTeX and LuaTex % for non-UTF-8 (byte-wise) encodings. % \def\setbytewiseio{% \ifx\XeTeXrevision\thisisundefined \else \XeTeXdefaultencoding "bytes" % For subsequent files to be read \XeTeXinputencoding "bytes" % For document root file % Unfortunately, there seems to be no corresponding XeTeX command for % output encoding. This is a problem for auxiliary index and TOC files. % The only solution would be perhaps to write out @U{...} sequences in % place of non-ASCII characters. \fi \ifx\luatexversion\thisisundefined \else \directlua{ local utf8_char, byte, gsub = unicode.utf8.char, string.byte, string.gsub local function convert_char (char) return utf8_char(byte(char)) end local function convert_line (line) return gsub(line, ".", convert_char) end callback.register("process_input_buffer", convert_line) local function convert_line_out (line) local line_out = "" for c in string.utfvalues(line) do line_out = line_out .. string.char(c) end return line_out end callback.register("process_output_buffer", convert_line_out) } \fi \txiusebytewiseiotrue } % Helpers for encodings. % Set the catcode of characters 128 through 255 to the specified number. % \def\setnonasciicharscatcode#1{% \count255=128 \loop\ifnum\count255<256 \global\catcode\count255=#1\relax \advance\count255 by 1 \repeat } \def\setnonasciicharscatcodenonglobal#1{% \count255=128 \loop\ifnum\count255<256 \catcode\count255=#1\relax \advance\count255 by 1 \repeat } % @documentencoding sets the definition of non-ASCII characters % according to the specified encoding. % \def\documentencoding{\parseargusing\filenamecatcodes\documentencodingzzz} \def\documentencodingzzz#1{% % % Encoding being declared for the document. \def\declaredencoding{\csname #1.enc\endcsname}% % % Supported encodings: names converted to tokens in order to be able % to compare them with \ifx. \def\ascii{\csname US-ASCII.enc\endcsname}% \def\latnine{\csname ISO-8859-15.enc\endcsname}% \def\latone{\csname ISO-8859-1.enc\endcsname}% \def\lattwo{\csname ISO-8859-2.enc\endcsname}% \def\utfeight{\csname UTF-8.enc\endcsname}% % \ifx \declaredencoding \ascii \asciichardefs % \else \ifx \declaredencoding \lattwo \iftxinativeunicodecapable \setbytewiseio \fi \setnonasciicharscatcode\active \lattwochardefs % \else \ifx \declaredencoding \latone \iftxinativeunicodecapable \setbytewiseio \fi \setnonasciicharscatcode\active \latonechardefs % \else \ifx \declaredencoding \latnine \iftxinativeunicodecapable \setbytewiseio \fi \setnonasciicharscatcode\active \latninechardefs % \else \ifx \declaredencoding \utfeight \iftxinativeunicodecapable % For native Unicode handling (XeTeX and LuaTeX) \nativeunicodechardefs \else % For treating UTF-8 as byte sequences (TeX, eTeX and pdfTeX) \setnonasciicharscatcode\active % since we already invoked \utfeightchardefs at the top level % (below), do not re-invoke it, otherwise our check for duplicated % definitions gets triggered. Making non-ascii chars active is % sufficient. \fi % \else \message{Ignoring unknown document encoding: #1.}% % \fi % utfeight \fi % latnine \fi % latone \fi % lattwo \fi % ascii % \ifx\XeTeXrevision\thisisundefined \else \ifx \declaredencoding \utfeight \else \ifx \declaredencoding \ascii \else \message{Warning: XeTeX with non-UTF-8 encodings cannot handle % non-ASCII characters in auxiliary files.}% \fi \fi \fi } % emacs-page % A message to be logged when using a character that isn't available % the default font encoding (OT1). % \def\missingcharmsg#1{\message{Character missing, sorry: #1.}} % Take account of \c (plain) vs. \, (Texinfo) difference. \def\cedilla#1{\ifx\c\ptexc\c{#1}\else\,{#1}\fi} % First, make active non-ASCII characters in order for them to be % correctly categorized when TeX reads the replacement text of % macros containing the character definitions. \setnonasciicharscatcode\active % \def\gdefchar#1#2{% \gdef#1{% \ifpassthroughchars \string#1% \else #2% \fi }} % Latin1 (ISO-8859-1) character definitions. \def\latonechardefs{% \gdefchar^^a0{\tie} \gdefchar^^a1{\exclamdown} \gdefchar^^a2{{\tcfont \char162}} % cent \gdefchar^^a3{\pounds{}} \gdefchar^^a4{{\tcfont \char164}} % currency \gdefchar^^a5{{\tcfont \char165}} % yen \gdefchar^^a6{{\tcfont \char166}} % broken bar \gdefchar^^a7{\S} \gdefchar^^a8{\"{}} \gdefchar^^a9{\copyright{}} \gdefchar^^aa{\ordf} \gdefchar^^ab{\guillemetleft{}} \gdefchar^^ac{\ensuremath\lnot} \gdefchar^^ad{\-} \gdefchar^^ae{\registeredsymbol{}} \gdefchar^^af{\={}} % \gdefchar^^b0{\textdegree} \gdefchar^^b1{$\pm$} \gdefchar^^b2{$^2$} \gdefchar^^b3{$^3$} \gdefchar^^b4{\'{}} \gdefchar^^b5{$\mu$} \gdefchar^^b6{\P} \gdefchar^^b7{\ensuremath\cdot} \gdefchar^^b8{\cedilla\ } \gdefchar^^b9{$^1$} \gdefchar^^ba{\ordm} \gdefchar^^bb{\guillemetright{}} \gdefchar^^bc{$1\over4$} \gdefchar^^bd{$1\over2$} \gdefchar^^be{$3\over4$} \gdefchar^^bf{\questiondown} % \gdefchar^^c0{\`A} \gdefchar^^c1{\'A} \gdefchar^^c2{\^A} \gdefchar^^c3{\~A} \gdefchar^^c4{\"A} \gdefchar^^c5{\ringaccent A} \gdefchar^^c6{\AE} \gdefchar^^c7{\cedilla C} \gdefchar^^c8{\`E} \gdefchar^^c9{\'E} \gdefchar^^ca{\^E} \gdefchar^^cb{\"E} \gdefchar^^cc{\`I} \gdefchar^^cd{\'I} \gdefchar^^ce{\^I} \gdefchar^^cf{\"I} % \gdefchar^^d0{\DH} \gdefchar^^d1{\~N} \gdefchar^^d2{\`O} \gdefchar^^d3{\'O} \gdefchar^^d4{\^O} \gdefchar^^d5{\~O} \gdefchar^^d6{\"O} \gdefchar^^d7{$\times$} \gdefchar^^d8{\O} \gdefchar^^d9{\`U} \gdefchar^^da{\'U} \gdefchar^^db{\^U} \gdefchar^^dc{\"U} \gdefchar^^dd{\'Y} \gdefchar^^de{\TH} \gdefchar^^df{\ss} % \gdefchar^^e0{\`a} \gdefchar^^e1{\'a} \gdefchar^^e2{\^a} \gdefchar^^e3{\~a} \gdefchar^^e4{\"a} \gdefchar^^e5{\ringaccent a} \gdefchar^^e6{\ae} \gdefchar^^e7{\cedilla c} \gdefchar^^e8{\`e} \gdefchar^^e9{\'e} \gdefchar^^ea{\^e} \gdefchar^^eb{\"e} \gdefchar^^ec{\`{\dotless i}} \gdefchar^^ed{\'{\dotless i}} \gdefchar^^ee{\^{\dotless i}} \gdefchar^^ef{\"{\dotless i}} % \gdefchar^^f0{\dh} \gdefchar^^f1{\~n} \gdefchar^^f2{\`o} \gdefchar^^f3{\'o} \gdefchar^^f4{\^o} \gdefchar^^f5{\~o} \gdefchar^^f6{\"o} \gdefchar^^f7{$\div$} \gdefchar^^f8{\o} \gdefchar^^f9{\`u} \gdefchar^^fa{\'u} \gdefchar^^fb{\^u} \gdefchar^^fc{\"u} \gdefchar^^fd{\'y} \gdefchar^^fe{\th} \gdefchar^^ff{\"y} } % Latin9 (ISO-8859-15) encoding character definitions. \def\latninechardefs{% % Encoding is almost identical to Latin1. \latonechardefs % \gdefchar^^a4{\euro{}} \gdefchar^^a6{\v S} \gdefchar^^a8{\v s} \gdefchar^^b4{\v Z} \gdefchar^^b8{\v z} \gdefchar^^bc{\OE} \gdefchar^^bd{\oe} \gdefchar^^be{\"Y} } % Latin2 (ISO-8859-2) character definitions. \def\lattwochardefs{% \gdefchar^^a0{\tie} \gdefchar^^a1{\ogonek{A}} \gdefchar^^a2{\u{}} \gdefchar^^a3{\L} \gdefchar^^a4{\missingcharmsg{CURRENCY SIGN}} \gdefchar^^a5{\v L} \gdefchar^^a6{\'S} \gdefchar^^a7{\S} \gdefchar^^a8{\"{}} \gdefchar^^a9{\v S} \gdefchar^^aa{\cedilla S} \gdefchar^^ab{\v T} \gdefchar^^ac{\'Z} \gdefchar^^ad{\-} \gdefchar^^ae{\v Z} \gdefchar^^af{\dotaccent Z} % \gdefchar^^b0{\textdegree{}} \gdefchar^^b1{\ogonek{a}} \gdefchar^^b2{\ogonek{ }} \gdefchar^^b3{\l} \gdefchar^^b4{\'{}} \gdefchar^^b5{\v l} \gdefchar^^b6{\'s} \gdefchar^^b7{\v{}} \gdefchar^^b8{\cedilla\ } \gdefchar^^b9{\v s} \gdefchar^^ba{\cedilla s} \gdefchar^^bb{\v t} \gdefchar^^bc{\'z} \gdefchar^^bd{\H{}} \gdefchar^^be{\v z} \gdefchar^^bf{\dotaccent z} % \gdefchar^^c0{\'R} \gdefchar^^c1{\'A} \gdefchar^^c2{\^A} \gdefchar^^c3{\u A} \gdefchar^^c4{\"A} \gdefchar^^c5{\'L} \gdefchar^^c6{\'C} \gdefchar^^c7{\cedilla C} \gdefchar^^c8{\v C} \gdefchar^^c9{\'E} \gdefchar^^ca{\ogonek{E}} \gdefchar^^cb{\"E} \gdefchar^^cc{\v E} \gdefchar^^cd{\'I} \gdefchar^^ce{\^I} \gdefchar^^cf{\v D} % \gdefchar^^d0{\DH} \gdefchar^^d1{\'N} \gdefchar^^d2{\v N} \gdefchar^^d3{\'O} \gdefchar^^d4{\^O} \gdefchar^^d5{\H O} \gdefchar^^d6{\"O} \gdefchar^^d7{$\times$} \gdefchar^^d8{\v R} \gdefchar^^d9{\ringaccent U} \gdefchar^^da{\'U} \gdefchar^^db{\H U} \gdefchar^^dc{\"U} \gdefchar^^dd{\'Y} \gdefchar^^de{\cedilla T} \gdefchar^^df{\ss} % \gdefchar^^e0{\'r} \gdefchar^^e1{\'a} \gdefchar^^e2{\^a} \gdefchar^^e3{\u a} \gdefchar^^e4{\"a} \gdefchar^^e5{\'l} \gdefchar^^e6{\'c} \gdefchar^^e7{\cedilla c} \gdefchar^^e8{\v c} \gdefchar^^e9{\'e} \gdefchar^^ea{\ogonek{e}} \gdefchar^^eb{\"e} \gdefchar^^ec{\v e} \gdefchar^^ed{\'{\dotless{i}}} \gdefchar^^ee{\^{\dotless{i}}} \gdefchar^^ef{\v d} % \gdefchar^^f0{\dh} \gdefchar^^f1{\'n} \gdefchar^^f2{\v n} \gdefchar^^f3{\'o} \gdefchar^^f4{\^o} \gdefchar^^f5{\H o} \gdefchar^^f6{\"o} \gdefchar^^f7{$\div$} \gdefchar^^f8{\v r} \gdefchar^^f9{\ringaccent u} \gdefchar^^fa{\'u} \gdefchar^^fb{\H u} \gdefchar^^fc{\"u} \gdefchar^^fd{\'y} \gdefchar^^fe{\cedilla t} \gdefchar^^ff{\dotaccent{}} } % UTF-8 character definitions. % % This code to support UTF-8 is based on LaTeX's utf8.def, with some % changes for Texinfo conventions. It is included here under the GPL by % permission from Frank Mittelbach and the LaTeX team. % \newcount\countUTFx \newcount\countUTFy \newcount\countUTFz \gdef\UTFviiiTwoOctets#1#2{\expandafter \UTFviiiDefined\csname u8:#1\string #2\endcsname} % \gdef\UTFviiiThreeOctets#1#2#3{\expandafter \UTFviiiDefined\csname u8:#1\string #2\string #3\endcsname} % \gdef\UTFviiiFourOctets#1#2#3#4{\expandafter \UTFviiiDefined\csname u8:#1\string #2\string #3\string #4\endcsname} \gdef\UTFviiiDefined#1{% \ifx #1\relax \message{\linenumber Unicode char \string #1 not defined for Texinfo}% \else \expandafter #1% \fi } % Give non-ASCII bytes the active definitions for processing UTF-8 sequences \begingroup \catcode`\~13 \catcode`\$12 \catcode`\"12 % Loop from \countUTFx to \countUTFy, performing \UTFviiiTmp % substituting ~ and $ with a character token of that value. \def\UTFviiiLoop{% \global\catcode\countUTFx\active \uccode`\~\countUTFx \uccode`\$\countUTFx \uppercase\expandafter{\UTFviiiTmp}% \advance\countUTFx by 1 \ifnum\countUTFx < \countUTFy \expandafter\UTFviiiLoop \fi} % For bytes other than the first in a UTF-8 sequence. Not expected to % be expanded except when writing to auxiliary files. \countUTFx = "80 \countUTFy = "C2 \def\UTFviiiTmp{% \gdef~{% \ifpassthroughchars $\fi}}% \UTFviiiLoop \countUTFx = "C2 \countUTFy = "E0 \def\UTFviiiTmp{% \gdef~{% \ifpassthroughchars $% \else\expandafter\UTFviiiTwoOctets\expandafter$\fi}}% \UTFviiiLoop \countUTFx = "E0 \countUTFy = "F0 \def\UTFviiiTmp{% \gdef~{% \ifpassthroughchars $% \else\expandafter\UTFviiiThreeOctets\expandafter$\fi}}% \UTFviiiLoop \countUTFx = "F0 \countUTFy = "F4 \def\UTFviiiTmp{% \gdef~{% \ifpassthroughchars $% \else\expandafter\UTFviiiFourOctets\expandafter$\fi }}% \UTFviiiLoop \endgroup \def\globallet{\global\let} % save some \expandafter's below % @U{xxxx} to produce U+xxxx, if we support it. \def\U#1{% \expandafter\ifx\csname uni:#1\endcsname \relax \iftxinativeunicodecapable % All Unicode characters can be used if native Unicode handling is % active. However, if the font does not have the glyph, % letters are missing. \begingroup \uccode`\.="#1\relax \uppercase{.} \endgroup \else \errhelp = \EMsimple \errmessage{Unicode character U+#1 not supported, sorry}% \fi \else \csname uni:#1\endcsname \fi } % These macros are used here to construct the name of a control % sequence to be defined. \def\UTFviiiTwoOctetsName#1#2{% \csname u8:#1\string #2\endcsname}% \def\UTFviiiThreeOctetsName#1#2#3{% \csname u8:#1\string #2\string #3\endcsname}% \def\UTFviiiFourOctetsName#1#2#3#4{% \csname u8:#1\string #2\string #3\string #4\endcsname}% % For UTF-8 byte sequences (TeX, e-TeX and pdfTeX), % provide a definition macro to replace a Unicode character; % this gets used by the @U command % \begingroup \catcode`\"=12 \catcode`\<=12 \catcode`\.=12 \catcode`\,=12 \catcode`\;=12 \catcode`\!=12 \catcode`\~=13 \gdef\DeclareUnicodeCharacterUTFviii#1#2{% \countUTFz = "#1\relax \begingroup \parseXMLCharref % Give \u8:... its definition. The sequence of seven \expandafter's % expands after the \gdef three times, e.g. % % 1. \UTFviiTwoOctetsName B1 B2 % 2. \csname u8:B1 \string B2 \endcsname % 3. \u8: B1 B2 (a single control sequence token) % \expandafter\expandafter \expandafter\expandafter \expandafter\expandafter \expandafter\gdef \UTFviiiTmp{#2}% % \expandafter\ifx\csname uni:#1\endcsname \relax \else \message{Internal error, already defined: #1}% \fi % % define an additional control sequence for this code point. \expandafter\globallet\csname uni:#1\endcsname \UTFviiiTmp \endgroup} % % Given the value in \countUTFz as a Unicode code point, set \UTFviiiTmp % to the corresponding UTF-8 sequence. \gdef\parseXMLCharref{% \ifnum\countUTFz < "A0\relax \errhelp = \EMsimple \errmessage{Cannot define Unicode char value < 00A0}% \else\ifnum\countUTFz < "800\relax \parseUTFviiiA,% \parseUTFviiiB C\UTFviiiTwoOctetsName.,% \else\ifnum\countUTFz < "10000\relax \parseUTFviiiA;% \parseUTFviiiA,% \parseUTFviiiB E\UTFviiiThreeOctetsName.{,;}% \else \parseUTFviiiA;% \parseUTFviiiA,% \parseUTFviiiA!% \parseUTFviiiB F\UTFviiiFourOctetsName.{!,;}% \fi\fi\fi } % Extract a byte from the end of the UTF-8 representation of \countUTFx. % It must be a non-initial byte in the sequence. % Change \uccode of #1 for it to be used in \parseUTFviiiB as one % of the bytes. \gdef\parseUTFviiiA#1{% \countUTFx = \countUTFz \divide\countUTFz by 64 \countUTFy = \countUTFz % Save to be the future value of \countUTFz. \multiply\countUTFz by 64 % \countUTFz is now \countUTFx with the last 5 bits cleared. Subtract % in order to get the last five bits. \advance\countUTFx by -\countUTFz % Convert this to the byte in the UTF-8 sequence. \advance\countUTFx by 128 \uccode `#1\countUTFx \countUTFz = \countUTFy} % Used to put a UTF-8 byte sequence into \UTFviiiTmp % #1 is the increment for \countUTFz to yield a the first byte of the UTF-8 % sequence. % #2 is one of the \UTFviii*OctetsName macros. % #3 is always a full stop (.) % #4 is a template for the other bytes in the sequence. The values for these % bytes is substituted in here with \uppercase using the \uccode's. \gdef\parseUTFviiiB#1#2#3#4{% \advance\countUTFz by "#10\relax \uccode `#3\countUTFz \uppercase{\gdef\UTFviiiTmp{#2#3#4}}} \endgroup % For native Unicode handling (XeTeX and LuaTeX), % provide a definition macro that sets a catcode to `other' non-globally % \def\DeclareUnicodeCharacterNativeOther#1#2{% \catcode"#1=\other } % https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_M % U+0000..U+007F = https://en.wikipedia.org/wiki/Basic_Latin_(Unicode_block) % U+0080..U+00FF = https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block) % U+0100..U+017F = https://en.wikipedia.org/wiki/Latin_Extended-A % U+0180..U+024F = https://en.wikipedia.org/wiki/Latin_Extended-B % % Many of our renditions are less than wonderful, and all the missing % characters are available somewhere. Loading the necessary fonts % awaits user request. We can't truly support Unicode without % reimplementing everything that's been done in LaTeX for many years, % plus probably using luatex or xetex, and who knows what else. % We won't be doing that here in this simple file. But we can try to at % least make most of the characters not bomb out. % \def\unicodechardefs{% \DeclareUnicodeCharacter{00A0}{\tie}% \DeclareUnicodeCharacter{00A1}{\exclamdown}% \DeclareUnicodeCharacter{00A2}{{\tcfont \char162}}% 0242=cent \DeclareUnicodeCharacter{00A3}{\pounds{}}% \DeclareUnicodeCharacter{00A4}{{\tcfont \char164}}% 0244=currency \DeclareUnicodeCharacter{00A5}{{\tcfont \char165}}% 0245=yen \DeclareUnicodeCharacter{00A6}{{\tcfont \char166}}% 0246=brokenbar \DeclareUnicodeCharacter{00A7}{\S}% \DeclareUnicodeCharacter{00A8}{\"{ }}% \DeclareUnicodeCharacter{00A9}{\copyright{}}% \DeclareUnicodeCharacter{00AA}{\ordf}% \DeclareUnicodeCharacter{00AB}{\guillemetleft{}}% \DeclareUnicodeCharacter{00AC}{\ensuremath\lnot}% \DeclareUnicodeCharacter{00AD}{\-}% \DeclareUnicodeCharacter{00AE}{\registeredsymbol{}}% \DeclareUnicodeCharacter{00AF}{\={ }}% % \DeclareUnicodeCharacter{00B0}{\ringaccent{ }}% \DeclareUnicodeCharacter{00B1}{\ensuremath\pm}% \DeclareUnicodeCharacter{00B2}{$^2$}% \DeclareUnicodeCharacter{00B3}{$^3$}% \DeclareUnicodeCharacter{00B4}{\'{ }}% \DeclareUnicodeCharacter{00B5}{$\mu$}% \DeclareUnicodeCharacter{00B6}{\P}% \DeclareUnicodeCharacter{00B7}{\ensuremath\cdot}% \DeclareUnicodeCharacter{00B8}{\cedilla{ }}% \DeclareUnicodeCharacter{00B9}{$^1$}% \DeclareUnicodeCharacter{00BA}{\ordm}% \DeclareUnicodeCharacter{00BB}{\guillemetright{}}% \DeclareUnicodeCharacter{00BC}{$1\over4$}% \DeclareUnicodeCharacter{00BD}{$1\over2$}% \DeclareUnicodeCharacter{00BE}{$3\over4$}% \DeclareUnicodeCharacter{00BF}{\questiondown}% % \DeclareUnicodeCharacter{00C0}{\`A}% \DeclareUnicodeCharacter{00C1}{\'A}% \DeclareUnicodeCharacter{00C2}{\^A}% \DeclareUnicodeCharacter{00C3}{\~A}% \DeclareUnicodeCharacter{00C4}{\"A}% \DeclareUnicodeCharacter{00C5}{\AA}% \DeclareUnicodeCharacter{00C6}{\AE}% \DeclareUnicodeCharacter{00C7}{\cedilla{C}}% \DeclareUnicodeCharacter{00C8}{\`E}% \DeclareUnicodeCharacter{00C9}{\'E}% \DeclareUnicodeCharacter{00CA}{\^E}% \DeclareUnicodeCharacter{00CB}{\"E}% \DeclareUnicodeCharacter{00CC}{\`I}% \DeclareUnicodeCharacter{00CD}{\'I}% \DeclareUnicodeCharacter{00CE}{\^I}% \DeclareUnicodeCharacter{00CF}{\"I}% % \DeclareUnicodeCharacter{00D0}{\DH}% \DeclareUnicodeCharacter{00D1}{\~N}% \DeclareUnicodeCharacter{00D2}{\`O}% \DeclareUnicodeCharacter{00D3}{\'O}% \DeclareUnicodeCharacter{00D4}{\^O}% \DeclareUnicodeCharacter{00D5}{\~O}% \DeclareUnicodeCharacter{00D6}{\"O}% \DeclareUnicodeCharacter{00D7}{\ensuremath\times}% \DeclareUnicodeCharacter{00D8}{\O}% \DeclareUnicodeCharacter{00D9}{\`U}% \DeclareUnicodeCharacter{00DA}{\'U}% \DeclareUnicodeCharacter{00DB}{\^U}% \DeclareUnicodeCharacter{00DC}{\"U}% \DeclareUnicodeCharacter{00DD}{\'Y}% \DeclareUnicodeCharacter{00DE}{\TH}% \DeclareUnicodeCharacter{00DF}{\ss}% % \DeclareUnicodeCharacter{00E0}{\`a}% \DeclareUnicodeCharacter{00E1}{\'a}% \DeclareUnicodeCharacter{00E2}{\^a}% \DeclareUnicodeCharacter{00E3}{\~a}% \DeclareUnicodeCharacter{00E4}{\"a}% \DeclareUnicodeCharacter{00E5}{\aa}% \DeclareUnicodeCharacter{00E6}{\ae}% \DeclareUnicodeCharacter{00E7}{\cedilla{c}}% \DeclareUnicodeCharacter{00E8}{\`e}% \DeclareUnicodeCharacter{00E9}{\'e}% \DeclareUnicodeCharacter{00EA}{\^e}% \DeclareUnicodeCharacter{00EB}{\"e}% \DeclareUnicodeCharacter{00EC}{\`{\dotless{i}}}% \DeclareUnicodeCharacter{00ED}{\'{\dotless{i}}}% \DeclareUnicodeCharacter{00EE}{\^{\dotless{i}}}% \DeclareUnicodeCharacter{00EF}{\"{\dotless{i}}}% % \DeclareUnicodeCharacter{00F0}{\dh}% \DeclareUnicodeCharacter{00F1}{\~n}% \DeclareUnicodeCharacter{00F2}{\`o}% \DeclareUnicodeCharacter{00F3}{\'o}% \DeclareUnicodeCharacter{00F4}{\^o}% \DeclareUnicodeCharacter{00F5}{\~o}% \DeclareUnicodeCharacter{00F6}{\"o}% \DeclareUnicodeCharacter{00F7}{\ensuremath\div}% \DeclareUnicodeCharacter{00F8}{\o}% \DeclareUnicodeCharacter{00F9}{\`u}% \DeclareUnicodeCharacter{00FA}{\'u}% \DeclareUnicodeCharacter{00FB}{\^u}% \DeclareUnicodeCharacter{00FC}{\"u}% \DeclareUnicodeCharacter{00FD}{\'y}% \DeclareUnicodeCharacter{00FE}{\th}% \DeclareUnicodeCharacter{00FF}{\"y}% % \DeclareUnicodeCharacter{0100}{\=A}% \DeclareUnicodeCharacter{0101}{\=a}% \DeclareUnicodeCharacter{0102}{\u{A}}% \DeclareUnicodeCharacter{0103}{\u{a}}% \DeclareUnicodeCharacter{0104}{\ogonek{A}}% \DeclareUnicodeCharacter{0105}{\ogonek{a}}% \DeclareUnicodeCharacter{0106}{\'C}% \DeclareUnicodeCharacter{0107}{\'c}% \DeclareUnicodeCharacter{0108}{\^C}% \DeclareUnicodeCharacter{0109}{\^c}% \DeclareUnicodeCharacter{010A}{\dotaccent{C}}% \DeclareUnicodeCharacter{010B}{\dotaccent{c}}% \DeclareUnicodeCharacter{010C}{\v{C}}% \DeclareUnicodeCharacter{010D}{\v{c}}% \DeclareUnicodeCharacter{010E}{\v{D}}% \DeclareUnicodeCharacter{010F}{d'}% % \DeclareUnicodeCharacter{0110}{\DH}% \DeclareUnicodeCharacter{0111}{\dh}% \DeclareUnicodeCharacter{0112}{\=E}% \DeclareUnicodeCharacter{0113}{\=e}% \DeclareUnicodeCharacter{0114}{\u{E}}% \DeclareUnicodeCharacter{0115}{\u{e}}% \DeclareUnicodeCharacter{0116}{\dotaccent{E}}% \DeclareUnicodeCharacter{0117}{\dotaccent{e}}% \DeclareUnicodeCharacter{0118}{\ogonek{E}}% \DeclareUnicodeCharacter{0119}{\ogonek{e}}% \DeclareUnicodeCharacter{011A}{\v{E}}% \DeclareUnicodeCharacter{011B}{\v{e}}% \DeclareUnicodeCharacter{011C}{\^G}% \DeclareUnicodeCharacter{011D}{\^g}% \DeclareUnicodeCharacter{011E}{\u{G}}% \DeclareUnicodeCharacter{011F}{\u{g}}% % \DeclareUnicodeCharacter{0120}{\dotaccent{G}}% \DeclareUnicodeCharacter{0121}{\dotaccent{g}}% \DeclareUnicodeCharacter{0122}{\cedilla{G}}% \DeclareUnicodeCharacter{0123}{\cedilla{g}}% \DeclareUnicodeCharacter{0124}{\^H}% \DeclareUnicodeCharacter{0125}{\^h}% \DeclareUnicodeCharacter{0126}{\missingcharmsg{H WITH STROKE}}% \DeclareUnicodeCharacter{0127}{\missingcharmsg{h WITH STROKE}}% \DeclareUnicodeCharacter{0128}{\~I}% \DeclareUnicodeCharacter{0129}{\~{\dotless{i}}}% \DeclareUnicodeCharacter{012A}{\=I}% \DeclareUnicodeCharacter{012B}{\={\dotless{i}}}% \DeclareUnicodeCharacter{012C}{\u{I}}% \DeclareUnicodeCharacter{012D}{\u{\dotless{i}}}% \DeclareUnicodeCharacter{012E}{\ogonek{I}}% \DeclareUnicodeCharacter{012F}{\ogonek{i}}% % \DeclareUnicodeCharacter{0130}{\dotaccent{I}}% \DeclareUnicodeCharacter{0131}{\dotless{i}}% \DeclareUnicodeCharacter{0132}{IJ}% \DeclareUnicodeCharacter{0133}{ij}% \DeclareUnicodeCharacter{0134}{\^J}% \DeclareUnicodeCharacter{0135}{\^{\dotless{j}}}% \DeclareUnicodeCharacter{0136}{\cedilla{K}}% \DeclareUnicodeCharacter{0137}{\cedilla{k}}% \DeclareUnicodeCharacter{0138}{\ensuremath\kappa}% \DeclareUnicodeCharacter{0139}{\'L}% \DeclareUnicodeCharacter{013A}{\'l}% \DeclareUnicodeCharacter{013B}{\cedilla{L}}% \DeclareUnicodeCharacter{013C}{\cedilla{l}}% \DeclareUnicodeCharacter{013D}{L'}% should kern \DeclareUnicodeCharacter{013E}{l'}% should kern \DeclareUnicodeCharacter{013F}{L\U{00B7}}% % \DeclareUnicodeCharacter{0140}{l\U{00B7}}% \DeclareUnicodeCharacter{0141}{\L}% \DeclareUnicodeCharacter{0142}{\l}% \DeclareUnicodeCharacter{0143}{\'N}% \DeclareUnicodeCharacter{0144}{\'n}% \DeclareUnicodeCharacter{0145}{\cedilla{N}}% \DeclareUnicodeCharacter{0146}{\cedilla{n}}% \DeclareUnicodeCharacter{0147}{\v{N}}% \DeclareUnicodeCharacter{0148}{\v{n}}% \DeclareUnicodeCharacter{0149}{'n}% \DeclareUnicodeCharacter{014A}{\missingcharmsg{ENG}}% \DeclareUnicodeCharacter{014B}{\missingcharmsg{eng}}% \DeclareUnicodeCharacter{014C}{\=O}% \DeclareUnicodeCharacter{014D}{\=o}% \DeclareUnicodeCharacter{014E}{\u{O}}% \DeclareUnicodeCharacter{014F}{\u{o}}% % \DeclareUnicodeCharacter{0150}{\H{O}}% \DeclareUnicodeCharacter{0151}{\H{o}}% \DeclareUnicodeCharacter{0152}{\OE}% \DeclareUnicodeCharacter{0153}{\oe}% \DeclareUnicodeCharacter{0154}{\'R}% \DeclareUnicodeCharacter{0155}{\'r}% \DeclareUnicodeCharacter{0156}{\cedilla{R}}% \DeclareUnicodeCharacter{0157}{\cedilla{r}}% \DeclareUnicodeCharacter{0158}{\v{R}}% \DeclareUnicodeCharacter{0159}{\v{r}}% \DeclareUnicodeCharacter{015A}{\'S}% \DeclareUnicodeCharacter{015B}{\'s}% \DeclareUnicodeCharacter{015C}{\^S}% \DeclareUnicodeCharacter{015D}{\^s}% \DeclareUnicodeCharacter{015E}{\cedilla{S}}% \DeclareUnicodeCharacter{015F}{\cedilla{s}}% % \DeclareUnicodeCharacter{0160}{\v{S}}% \DeclareUnicodeCharacter{0161}{\v{s}}% \DeclareUnicodeCharacter{0162}{\cedilla{T}}% \DeclareUnicodeCharacter{0163}{\cedilla{t}}% \DeclareUnicodeCharacter{0164}{\v{T}}% \DeclareUnicodeCharacter{0165}{\v{t}}% \DeclareUnicodeCharacter{0166}{\missingcharmsg{H WITH STROKE}}% \DeclareUnicodeCharacter{0167}{\missingcharmsg{h WITH STROKE}}% \DeclareUnicodeCharacter{0168}{\~U}% \DeclareUnicodeCharacter{0169}{\~u}% \DeclareUnicodeCharacter{016A}{\=U}% \DeclareUnicodeCharacter{016B}{\=u}% \DeclareUnicodeCharacter{016C}{\u{U}}% \DeclareUnicodeCharacter{016D}{\u{u}}% \DeclareUnicodeCharacter{016E}{\ringaccent{U}}% \DeclareUnicodeCharacter{016F}{\ringaccent{u}}% % \DeclareUnicodeCharacter{0170}{\H{U}}% \DeclareUnicodeCharacter{0171}{\H{u}}% \DeclareUnicodeCharacter{0172}{\ogonek{U}}% \DeclareUnicodeCharacter{0173}{\ogonek{u}}% \DeclareUnicodeCharacter{0174}{\^W}% \DeclareUnicodeCharacter{0175}{\^w}% \DeclareUnicodeCharacter{0176}{\^Y}% \DeclareUnicodeCharacter{0177}{\^y}% \DeclareUnicodeCharacter{0178}{\"Y}% \DeclareUnicodeCharacter{0179}{\'Z}% \DeclareUnicodeCharacter{017A}{\'z}% \DeclareUnicodeCharacter{017B}{\dotaccent{Z}}% \DeclareUnicodeCharacter{017C}{\dotaccent{z}}% \DeclareUnicodeCharacter{017D}{\v{Z}}% \DeclareUnicodeCharacter{017E}{\v{z}}% \DeclareUnicodeCharacter{017F}{\missingcharmsg{LONG S}}% % \DeclareUnicodeCharacter{01C4}{D\v{Z}}% \DeclareUnicodeCharacter{01C5}{D\v{z}}% \DeclareUnicodeCharacter{01C6}{d\v{z}}% \DeclareUnicodeCharacter{01C7}{LJ}% \DeclareUnicodeCharacter{01C8}{Lj}% \DeclareUnicodeCharacter{01C9}{lj}% \DeclareUnicodeCharacter{01CA}{NJ}% \DeclareUnicodeCharacter{01CB}{Nj}% \DeclareUnicodeCharacter{01CC}{nj}% \DeclareUnicodeCharacter{01CD}{\v{A}}% \DeclareUnicodeCharacter{01CE}{\v{a}}% \DeclareUnicodeCharacter{01CF}{\v{I}}% % \DeclareUnicodeCharacter{01D0}{\v{\dotless{i}}}% \DeclareUnicodeCharacter{01D1}{\v{O}}% \DeclareUnicodeCharacter{01D2}{\v{o}}% \DeclareUnicodeCharacter{01D3}{\v{U}}% \DeclareUnicodeCharacter{01D4}{\v{u}}% % \DeclareUnicodeCharacter{01E2}{\={\AE}}% \DeclareUnicodeCharacter{01E3}{\={\ae}}% \DeclareUnicodeCharacter{01E6}{\v{G}}% \DeclareUnicodeCharacter{01E7}{\v{g}}% \DeclareUnicodeCharacter{01E8}{\v{K}}% \DeclareUnicodeCharacter{01E9}{\v{k}}% % \DeclareUnicodeCharacter{01F0}{\v{\dotless{j}}}% \DeclareUnicodeCharacter{01F1}{DZ}% \DeclareUnicodeCharacter{01F2}{Dz}% \DeclareUnicodeCharacter{01F3}{dz}% \DeclareUnicodeCharacter{01F4}{\'G}% \DeclareUnicodeCharacter{01F5}{\'g}% \DeclareUnicodeCharacter{01F8}{\`N}% \DeclareUnicodeCharacter{01F9}{\`n}% \DeclareUnicodeCharacter{01FC}{\'{\AE}}% \DeclareUnicodeCharacter{01FD}{\'{\ae}}% \DeclareUnicodeCharacter{01FE}{\'{\O}}% \DeclareUnicodeCharacter{01FF}{\'{\o}}% % \DeclareUnicodeCharacter{021E}{\v{H}}% \DeclareUnicodeCharacter{021F}{\v{h}}% % \DeclareUnicodeCharacter{0226}{\dotaccent{A}}% \DeclareUnicodeCharacter{0227}{\dotaccent{a}}% \DeclareUnicodeCharacter{0228}{\cedilla{E}}% \DeclareUnicodeCharacter{0229}{\cedilla{e}}% \DeclareUnicodeCharacter{022E}{\dotaccent{O}}% \DeclareUnicodeCharacter{022F}{\dotaccent{o}}% % \DeclareUnicodeCharacter{0232}{\=Y}% \DeclareUnicodeCharacter{0233}{\=y}% \DeclareUnicodeCharacter{0237}{\dotless{j}}% % \DeclareUnicodeCharacter{02BC}{'}% % \DeclareUnicodeCharacter{02DB}{\ogonek{ }}% % % Greek letters upper case \DeclareUnicodeCharacter{0391}{{\it A}}% \DeclareUnicodeCharacter{0392}{{\it B}}% \DeclareUnicodeCharacter{0393}{\ensuremath{\mit\Gamma}}% \DeclareUnicodeCharacter{0394}{\ensuremath{\mit\Delta}}% \DeclareUnicodeCharacter{0395}{{\it E}}% \DeclareUnicodeCharacter{0396}{{\it Z}}% \DeclareUnicodeCharacter{0397}{{\it H}}% \DeclareUnicodeCharacter{0398}{\ensuremath{\mit\Theta}}% \DeclareUnicodeCharacter{0399}{{\it I}}% \DeclareUnicodeCharacter{039A}{{\it K}}% \DeclareUnicodeCharacter{039B}{\ensuremath{\mit\Lambda}}% \DeclareUnicodeCharacter{039C}{{\it M}}% \DeclareUnicodeCharacter{039D}{{\it N}}% \DeclareUnicodeCharacter{039E}{\ensuremath{\mit\Xi}}% \DeclareUnicodeCharacter{039F}{{\it O}}% \DeclareUnicodeCharacter{03A0}{\ensuremath{\mit\Pi}}% \DeclareUnicodeCharacter{03A1}{{\it P}}% %\DeclareUnicodeCharacter{03A2}{} % none - corresponds to final sigma \DeclareUnicodeCharacter{03A3}{\ensuremath{\mit\Sigma}}% \DeclareUnicodeCharacter{03A4}{{\it T}}% \DeclareUnicodeCharacter{03A5}{\ensuremath{\mit\Upsilon}}% \DeclareUnicodeCharacter{03A6}{\ensuremath{\mit\Phi}}% \DeclareUnicodeCharacter{03A7}{{\it X}}% \DeclareUnicodeCharacter{03A8}{\ensuremath{\mit\Psi}}% \DeclareUnicodeCharacter{03A9}{\ensuremath{\mit\Omega}}% % % Vowels with accents \DeclareUnicodeCharacter{0390}{\ensuremath{\ddot{\acute\iota}}}% \DeclareUnicodeCharacter{03AC}{\ensuremath{\acute\alpha}}% \DeclareUnicodeCharacter{03AD}{\ensuremath{\acute\epsilon}}% \DeclareUnicodeCharacter{03AE}{\ensuremath{\acute\eta}}% \DeclareUnicodeCharacter{03AF}{\ensuremath{\acute\iota}}% \DeclareUnicodeCharacter{03B0}{\ensuremath{\acute{\ddot\upsilon}}}% % % Standalone accent \DeclareUnicodeCharacter{0384}{\ensuremath{\acute{\ }}}% % % Greek letters lower case \DeclareUnicodeCharacter{03B1}{\ensuremath\alpha}% \DeclareUnicodeCharacter{03B2}{\ensuremath\beta}% \DeclareUnicodeCharacter{03B3}{\ensuremath\gamma}% \DeclareUnicodeCharacter{03B4}{\ensuremath\delta}% \DeclareUnicodeCharacter{03B5}{\ensuremath\epsilon}% \DeclareUnicodeCharacter{03B6}{\ensuremath\zeta}% \DeclareUnicodeCharacter{03B7}{\ensuremath\eta}% \DeclareUnicodeCharacter{03B8}{\ensuremath\theta}% \DeclareUnicodeCharacter{03B9}{\ensuremath\iota}% \DeclareUnicodeCharacter{03BA}{\ensuremath\kappa}% \DeclareUnicodeCharacter{03BB}{\ensuremath\lambda}% \DeclareUnicodeCharacter{03BC}{\ensuremath\mu}% \DeclareUnicodeCharacter{03BD}{\ensuremath\nu}% \DeclareUnicodeCharacter{03BE}{\ensuremath\xi}% \DeclareUnicodeCharacter{03BF}{{\it o}}% omicron \DeclareUnicodeCharacter{03C0}{\ensuremath\pi}% \DeclareUnicodeCharacter{03C1}{\ensuremath\rho}% \DeclareUnicodeCharacter{03C2}{\ensuremath\varsigma}% \DeclareUnicodeCharacter{03C3}{\ensuremath\sigma}% \DeclareUnicodeCharacter{03C4}{\ensuremath\tau}% \DeclareUnicodeCharacter{03C5}{\ensuremath\upsilon}% \DeclareUnicodeCharacter{03C6}{\ensuremath\phi}% \DeclareUnicodeCharacter{03C7}{\ensuremath\chi}% \DeclareUnicodeCharacter{03C8}{\ensuremath\psi}% \DeclareUnicodeCharacter{03C9}{\ensuremath\omega}% % % More Greek vowels with accents \DeclareUnicodeCharacter{03CA}{\ensuremath{\ddot\iota}}% \DeclareUnicodeCharacter{03CB}{\ensuremath{\ddot\upsilon}}% \DeclareUnicodeCharacter{03CC}{\ensuremath{\acute o}}% \DeclareUnicodeCharacter{03CD}{\ensuremath{\acute\upsilon}}% \DeclareUnicodeCharacter{03CE}{\ensuremath{\acute\omega}}% % % Variant Greek letters \DeclareUnicodeCharacter{03D1}{\ensuremath\vartheta}% \DeclareUnicodeCharacter{03D6}{\ensuremath\varpi}% \DeclareUnicodeCharacter{03F1}{\ensuremath\varrho}% % \DeclareUnicodeCharacter{1E02}{\dotaccent{B}}% \DeclareUnicodeCharacter{1E03}{\dotaccent{b}}% \DeclareUnicodeCharacter{1E04}{\udotaccent{B}}% \DeclareUnicodeCharacter{1E05}{\udotaccent{b}}% \DeclareUnicodeCharacter{1E06}{\ubaraccent{B}}% \DeclareUnicodeCharacter{1E07}{\ubaraccent{b}}% \DeclareUnicodeCharacter{1E0A}{\dotaccent{D}}% \DeclareUnicodeCharacter{1E0B}{\dotaccent{d}}% \DeclareUnicodeCharacter{1E0C}{\udotaccent{D}}% \DeclareUnicodeCharacter{1E0D}{\udotaccent{d}}% \DeclareUnicodeCharacter{1E0E}{\ubaraccent{D}}% \DeclareUnicodeCharacter{1E0F}{\ubaraccent{d}}% % \DeclareUnicodeCharacter{1E1E}{\dotaccent{F}}% \DeclareUnicodeCharacter{1E1F}{\dotaccent{f}}% % \DeclareUnicodeCharacter{1E20}{\=G}% \DeclareUnicodeCharacter{1E21}{\=g}% \DeclareUnicodeCharacter{1E22}{\dotaccent{H}}% \DeclareUnicodeCharacter{1E23}{\dotaccent{h}}% \DeclareUnicodeCharacter{1E24}{\udotaccent{H}}% \DeclareUnicodeCharacter{1E25}{\udotaccent{h}}% \DeclareUnicodeCharacter{1E26}{\"H}% \DeclareUnicodeCharacter{1E27}{\"h}% % \DeclareUnicodeCharacter{1E30}{\'K}% \DeclareUnicodeCharacter{1E31}{\'k}% \DeclareUnicodeCharacter{1E32}{\udotaccent{K}}% \DeclareUnicodeCharacter{1E33}{\udotaccent{k}}% \DeclareUnicodeCharacter{1E34}{\ubaraccent{K}}% \DeclareUnicodeCharacter{1E35}{\ubaraccent{k}}% \DeclareUnicodeCharacter{1E36}{\udotaccent{L}}% \DeclareUnicodeCharacter{1E37}{\udotaccent{l}}% \DeclareUnicodeCharacter{1E3A}{\ubaraccent{L}}% \DeclareUnicodeCharacter{1E3B}{\ubaraccent{l}}% \DeclareUnicodeCharacter{1E3E}{\'M}% \DeclareUnicodeCharacter{1E3F}{\'m}% % \DeclareUnicodeCharacter{1E40}{\dotaccent{M}}% \DeclareUnicodeCharacter{1E41}{\dotaccent{m}}% \DeclareUnicodeCharacter{1E42}{\udotaccent{M}}% \DeclareUnicodeCharacter{1E43}{\udotaccent{m}}% \DeclareUnicodeCharacter{1E44}{\dotaccent{N}}% \DeclareUnicodeCharacter{1E45}{\dotaccent{n}}% \DeclareUnicodeCharacter{1E46}{\udotaccent{N}}% \DeclareUnicodeCharacter{1E47}{\udotaccent{n}}% \DeclareUnicodeCharacter{1E48}{\ubaraccent{N}}% \DeclareUnicodeCharacter{1E49}{\ubaraccent{n}}% % \DeclareUnicodeCharacter{1E54}{\'P}% \DeclareUnicodeCharacter{1E55}{\'p}% \DeclareUnicodeCharacter{1E56}{\dotaccent{P}}% \DeclareUnicodeCharacter{1E57}{\dotaccent{p}}% \DeclareUnicodeCharacter{1E58}{\dotaccent{R}}% \DeclareUnicodeCharacter{1E59}{\dotaccent{r}}% \DeclareUnicodeCharacter{1E5A}{\udotaccent{R}}% \DeclareUnicodeCharacter{1E5B}{\udotaccent{r}}% \DeclareUnicodeCharacter{1E5E}{\ubaraccent{R}}% \DeclareUnicodeCharacter{1E5F}{\ubaraccent{r}}% % \DeclareUnicodeCharacter{1E60}{\dotaccent{S}}% \DeclareUnicodeCharacter{1E61}{\dotaccent{s}}% \DeclareUnicodeCharacter{1E62}{\udotaccent{S}}% \DeclareUnicodeCharacter{1E63}{\udotaccent{s}}% \DeclareUnicodeCharacter{1E6A}{\dotaccent{T}}% \DeclareUnicodeCharacter{1E6B}{\dotaccent{t}}% \DeclareUnicodeCharacter{1E6C}{\udotaccent{T}}% \DeclareUnicodeCharacter{1E6D}{\udotaccent{t}}% \DeclareUnicodeCharacter{1E6E}{\ubaraccent{T}}% \DeclareUnicodeCharacter{1E6F}{\ubaraccent{t}}% % \DeclareUnicodeCharacter{1E7C}{\~V}% \DeclareUnicodeCharacter{1E7D}{\~v}% \DeclareUnicodeCharacter{1E7E}{\udotaccent{V}}% \DeclareUnicodeCharacter{1E7F}{\udotaccent{v}}% % \DeclareUnicodeCharacter{1E80}{\`W}% \DeclareUnicodeCharacter{1E81}{\`w}% \DeclareUnicodeCharacter{1E82}{\'W}% \DeclareUnicodeCharacter{1E83}{\'w}% \DeclareUnicodeCharacter{1E84}{\"W}% \DeclareUnicodeCharacter{1E85}{\"w}% \DeclareUnicodeCharacter{1E86}{\dotaccent{W}}% \DeclareUnicodeCharacter{1E87}{\dotaccent{w}}% \DeclareUnicodeCharacter{1E88}{\udotaccent{W}}% \DeclareUnicodeCharacter{1E89}{\udotaccent{w}}% \DeclareUnicodeCharacter{1E8A}{\dotaccent{X}}% \DeclareUnicodeCharacter{1E8B}{\dotaccent{x}}% \DeclareUnicodeCharacter{1E8C}{\"X}% \DeclareUnicodeCharacter{1E8D}{\"x}% \DeclareUnicodeCharacter{1E8E}{\dotaccent{Y}}% \DeclareUnicodeCharacter{1E8F}{\dotaccent{y}}% % \DeclareUnicodeCharacter{1E90}{\^Z}% \DeclareUnicodeCharacter{1E91}{\^z}% \DeclareUnicodeCharacter{1E92}{\udotaccent{Z}}% \DeclareUnicodeCharacter{1E93}{\udotaccent{z}}% \DeclareUnicodeCharacter{1E94}{\ubaraccent{Z}}% \DeclareUnicodeCharacter{1E95}{\ubaraccent{z}}% \DeclareUnicodeCharacter{1E96}{\ubaraccent{h}}% \DeclareUnicodeCharacter{1E97}{\"t}% \DeclareUnicodeCharacter{1E98}{\ringaccent{w}}% \DeclareUnicodeCharacter{1E99}{\ringaccent{y}}% % \DeclareUnicodeCharacter{1EA0}{\udotaccent{A}}% \DeclareUnicodeCharacter{1EA1}{\udotaccent{a}}% % \DeclareUnicodeCharacter{1EB8}{\udotaccent{E}}% \DeclareUnicodeCharacter{1EB9}{\udotaccent{e}}% \DeclareUnicodeCharacter{1EBC}{\~E}% \DeclareUnicodeCharacter{1EBD}{\~e}% % \DeclareUnicodeCharacter{1ECA}{\udotaccent{I}}% \DeclareUnicodeCharacter{1ECB}{\udotaccent{i}}% \DeclareUnicodeCharacter{1ECC}{\udotaccent{O}}% \DeclareUnicodeCharacter{1ECD}{\udotaccent{o}}% % \DeclareUnicodeCharacter{1EE4}{\udotaccent{U}}% \DeclareUnicodeCharacter{1EE5}{\udotaccent{u}}% % \DeclareUnicodeCharacter{1EF2}{\`Y}% \DeclareUnicodeCharacter{1EF3}{\`y}% \DeclareUnicodeCharacter{1EF4}{\udotaccent{Y}}% % \DeclareUnicodeCharacter{1EF8}{\~Y}% \DeclareUnicodeCharacter{1EF9}{\~y}% % % Exotic spaces \DeclareUnicodeCharacter{2007}{\hphantom{0}}% % % Punctuation \DeclareUnicodeCharacter{2013}{--}% \DeclareUnicodeCharacter{2014}{---}% \DeclareUnicodeCharacter{2018}{\quoteleft{}}% \DeclareUnicodeCharacter{2019}{\quoteright{}}% \DeclareUnicodeCharacter{201A}{\quotesinglbase{}}% \DeclareUnicodeCharacter{201C}{\quotedblleft{}}% \DeclareUnicodeCharacter{201D}{\quotedblright{}}% \DeclareUnicodeCharacter{201E}{\quotedblbase{}}% \DeclareUnicodeCharacter{2020}{\ensuremath\dagger}% \DeclareUnicodeCharacter{2021}{\ensuremath\ddagger}% \DeclareUnicodeCharacter{2022}{\bullet{}}% \DeclareUnicodeCharacter{202F}{\thinspace}% \DeclareUnicodeCharacter{2026}{\dots{}}% \DeclareUnicodeCharacter{2039}{\guilsinglleft{}}% \DeclareUnicodeCharacter{203A}{\guilsinglright{}}% % \DeclareUnicodeCharacter{20AC}{\euro{}}% % \DeclareUnicodeCharacter{2192}{\expansion{}}% \DeclareUnicodeCharacter{21D2}{\result{}}% % % Mathematical symbols \DeclareUnicodeCharacter{2200}{\ensuremath\forall}% \DeclareUnicodeCharacter{2203}{\ensuremath\exists}% \DeclareUnicodeCharacter{2208}{\ensuremath\in}% \DeclareUnicodeCharacter{2212}{\minus{}}% \DeclareUnicodeCharacter{2217}{\ast}% \DeclareUnicodeCharacter{221E}{\ensuremath\infty}% \DeclareUnicodeCharacter{2225}{\ensuremath\parallel}% \DeclareUnicodeCharacter{2227}{\ensuremath\wedge}% \DeclareUnicodeCharacter{2229}{\ensuremath\cap}% \DeclareUnicodeCharacter{2261}{\equiv{}}% \DeclareUnicodeCharacter{2264}{\ensuremath\leq}% \DeclareUnicodeCharacter{2265}{\ensuremath\geq}% \DeclareUnicodeCharacter{2282}{\ensuremath\subset}% \DeclareUnicodeCharacter{2287}{\ensuremath\supseteq}% % \DeclareUnicodeCharacter{2016}{\ensuremath\Vert}% \DeclareUnicodeCharacter{2032}{\ensuremath\prime}% \DeclareUnicodeCharacter{210F}{\ensuremath\hbar}% \DeclareUnicodeCharacter{2111}{\ensuremath\Im}% \DeclareUnicodeCharacter{2113}{\ensuremath\ell}% \DeclareUnicodeCharacter{2118}{\ensuremath\wp}% \DeclareUnicodeCharacter{211C}{\ensuremath\Re}% \DeclareUnicodeCharacter{2135}{\ensuremath\aleph}% \DeclareUnicodeCharacter{2190}{\ensuremath\leftarrow}% \DeclareUnicodeCharacter{2191}{\ensuremath\uparrow}% \DeclareUnicodeCharacter{2193}{\ensuremath\downarrow}% \DeclareUnicodeCharacter{2194}{\ensuremath\leftrightarrow}% \DeclareUnicodeCharacter{2195}{\ensuremath\updownarrow}% \DeclareUnicodeCharacter{2196}{\ensuremath\nwarrow}% \DeclareUnicodeCharacter{2197}{\ensuremath\nearrow}% \DeclareUnicodeCharacter{2198}{\ensuremath\searrow}% \DeclareUnicodeCharacter{2199}{\ensuremath\swarrow}% \DeclareUnicodeCharacter{21A6}{\ensuremath\mapsto}% \DeclareUnicodeCharacter{21A9}{\ensuremath\hookleftarrow}% \DeclareUnicodeCharacter{21AA}{\ensuremath\hookrightarrow}% \DeclareUnicodeCharacter{21BC}{\ensuremath\leftharpoonup}% \DeclareUnicodeCharacter{21BD}{\ensuremath\leftharpoondown}% \DeclareUnicodeCharacter{21C0}{\ensuremath\rightharpoonup}% \DeclareUnicodeCharacter{21C1}{\ensuremath\rightharpoondown}% \DeclareUnicodeCharacter{21CC}{\ensuremath\rightleftharpoons}% \DeclareUnicodeCharacter{21D0}{\ensuremath\Leftarrow}% \DeclareUnicodeCharacter{21D1}{\ensuremath\Uparrow}% \DeclareUnicodeCharacter{21D3}{\ensuremath\Downarrow}% \DeclareUnicodeCharacter{21D4}{\ensuremath\Leftrightarrow}% \DeclareUnicodeCharacter{21D5}{\ensuremath\Updownarrow}% \DeclareUnicodeCharacter{2202}{\ensuremath\partial}% \DeclareUnicodeCharacter{2205}{\ensuremath\emptyset}% \DeclareUnicodeCharacter{2207}{\ensuremath\nabla}% \DeclareUnicodeCharacter{2209}{\ensuremath\notin}% \DeclareUnicodeCharacter{220B}{\ensuremath\owns}% \DeclareUnicodeCharacter{220F}{\ensuremath\prod}% \DeclareUnicodeCharacter{2210}{\ensuremath\coprod}% \DeclareUnicodeCharacter{2211}{\ensuremath\sum}% \DeclareUnicodeCharacter{2213}{\ensuremath\mp}% \DeclareUnicodeCharacter{2218}{\ensuremath\circ}% \DeclareUnicodeCharacter{221A}{\ensuremath\surd}% \DeclareUnicodeCharacter{221D}{\ensuremath\propto}% \DeclareUnicodeCharacter{2220}{\ensuremath\angle}% \DeclareUnicodeCharacter{2223}{\ensuremath\mid}% \DeclareUnicodeCharacter{2228}{\ensuremath\vee}% \DeclareUnicodeCharacter{222A}{\ensuremath\cup}% \DeclareUnicodeCharacter{222B}{\ensuremath\smallint}% \DeclareUnicodeCharacter{222E}{\ensuremath\oint}% \DeclareUnicodeCharacter{223C}{\ensuremath\sim}% \DeclareUnicodeCharacter{2240}{\ensuremath\wr}% \DeclareUnicodeCharacter{2243}{\ensuremath\simeq}% \DeclareUnicodeCharacter{2245}{\ensuremath\cong}% \DeclareUnicodeCharacter{2248}{\ensuremath\approx}% \DeclareUnicodeCharacter{224D}{\ensuremath\asymp}% \DeclareUnicodeCharacter{2250}{\ensuremath\doteq}% \DeclareUnicodeCharacter{2260}{\ensuremath\neq}% \DeclareUnicodeCharacter{226A}{\ensuremath\ll}% \DeclareUnicodeCharacter{226B}{\ensuremath\gg}% \DeclareUnicodeCharacter{227A}{\ensuremath\prec}% \DeclareUnicodeCharacter{227B}{\ensuremath\succ}% \DeclareUnicodeCharacter{2283}{\ensuremath\supset}% \DeclareUnicodeCharacter{2286}{\ensuremath\subseteq}% \DeclareUnicodeCharacter{228E}{\ensuremath\uplus}% \DeclareUnicodeCharacter{2291}{\ensuremath\sqsubseteq}% \DeclareUnicodeCharacter{2292}{\ensuremath\sqsupseteq}% \DeclareUnicodeCharacter{2293}{\ensuremath\sqcap}% \DeclareUnicodeCharacter{2294}{\ensuremath\sqcup}% \DeclareUnicodeCharacter{2295}{\ensuremath\oplus}% \DeclareUnicodeCharacter{2296}{\ensuremath\ominus}% \DeclareUnicodeCharacter{2297}{\ensuremath\otimes}% \DeclareUnicodeCharacter{2298}{\ensuremath\oslash}% \DeclareUnicodeCharacter{2299}{\ensuremath\odot}% \DeclareUnicodeCharacter{22A2}{\ensuremath\vdash}% \DeclareUnicodeCharacter{22A3}{\ensuremath\dashv}% \DeclareUnicodeCharacter{22A4}{\ensuremath\ptextop}% \DeclareUnicodeCharacter{22A5}{\ensuremath\bot}% \DeclareUnicodeCharacter{22A8}{\ensuremath\models}% \DeclareUnicodeCharacter{22C0}{\ensuremath\bigwedge}% \DeclareUnicodeCharacter{22C1}{\ensuremath\bigvee}% \DeclareUnicodeCharacter{22C2}{\ensuremath\bigcap}% \DeclareUnicodeCharacter{22C3}{\ensuremath\bigcup}% \DeclareUnicodeCharacter{22C4}{\ensuremath\diamond}% \DeclareUnicodeCharacter{22C5}{\ensuremath\cdot}% \DeclareUnicodeCharacter{22C6}{\ensuremath\star}% \DeclareUnicodeCharacter{22C8}{\ensuremath\bowtie}% \DeclareUnicodeCharacter{2308}{\ensuremath\lceil}% \DeclareUnicodeCharacter{2309}{\ensuremath\rceil}% \DeclareUnicodeCharacter{230A}{\ensuremath\lfloor}% \DeclareUnicodeCharacter{230B}{\ensuremath\rfloor}% \DeclareUnicodeCharacter{2322}{\ensuremath\frown}% \DeclareUnicodeCharacter{2323}{\ensuremath\smile}% % \DeclareUnicodeCharacter{25B3}{\ensuremath\triangle}% \DeclareUnicodeCharacter{25B7}{\ensuremath\triangleright}% \DeclareUnicodeCharacter{25BD}{\ensuremath\bigtriangledown}% \DeclareUnicodeCharacter{25C1}{\ensuremath\triangleleft}% \DeclareUnicodeCharacter{25C7}{\ensuremath\diamond}% \DeclareUnicodeCharacter{2660}{\ensuremath\spadesuit}% \DeclareUnicodeCharacter{2661}{\ensuremath\heartsuit}% \DeclareUnicodeCharacter{2662}{\ensuremath\diamondsuit}% \DeclareUnicodeCharacter{2663}{\ensuremath\clubsuit}% \DeclareUnicodeCharacter{266D}{\ensuremath\flat}% \DeclareUnicodeCharacter{266E}{\ensuremath\natural}% \DeclareUnicodeCharacter{266F}{\ensuremath\sharp}% \DeclareUnicodeCharacter{26AA}{\ensuremath\bigcirc}% \DeclareUnicodeCharacter{27B9}{\ensuremath\rangle}% \DeclareUnicodeCharacter{27C2}{\ensuremath\perp}% \DeclareUnicodeCharacter{27E8}{\ensuremath\langle}% \DeclareUnicodeCharacter{27F5}{\ensuremath\longleftarrow}% \DeclareUnicodeCharacter{27F6}{\ensuremath\longrightarrow}% \DeclareUnicodeCharacter{27F7}{\ensuremath\longleftrightarrow}% \DeclareUnicodeCharacter{27FC}{\ensuremath\longmapsto}% \DeclareUnicodeCharacter{29F5}{\ensuremath\setminus}% \DeclareUnicodeCharacter{2A00}{\ensuremath\bigodot}% \DeclareUnicodeCharacter{2A01}{\ensuremath\bigoplus}% \DeclareUnicodeCharacter{2A02}{\ensuremath\bigotimes}% \DeclareUnicodeCharacter{2A04}{\ensuremath\biguplus}% \DeclareUnicodeCharacter{2A06}{\ensuremath\bigsqcup}% \DeclareUnicodeCharacter{2A3F}{\ensuremath\amalg}% \DeclareUnicodeCharacter{2AAF}{\ensuremath\preceq}% \DeclareUnicodeCharacter{2AB0}{\ensuremath\succeq}% % \global\mathchardef\checkmark="1370% actually the square root sign \DeclareUnicodeCharacter{2713}{\ensuremath\checkmark}% }% end of \unicodechardefs % UTF-8 byte sequence (pdfTeX) definitions (replacing and @U command) % It makes the setting that replace UTF-8 byte sequence. \def\utfeightchardefs{% \let\DeclareUnicodeCharacter\DeclareUnicodeCharacterUTFviii \unicodechardefs } % Whether the active definitions of non-ASCII characters expand to % non-active tokens with the same character code. This is used to % write characters literally, instead of using active definitions for % printing the correct glyphs. \newif\ifpassthroughchars \passthroughcharsfalse % For native Unicode handling (XeTeX and LuaTeX), % provide a definition macro to replace/pass-through a Unicode character % \def\DeclareUnicodeCharacterNative#1#2{% \catcode"#1=\active \def\dodeclareunicodecharacternative##1##2##3{% \begingroup \uccode`\~="##2\relax \uppercase{\gdef~}{% \ifpassthroughchars ##1% \else ##3% \fi } \endgroup } \begingroup \uccode`\.="#1\relax \uppercase{\def\UTFNativeTmp{.}}% \expandafter\dodeclareunicodecharacternative\UTFNativeTmp{#1}{#2}% \endgroup } % Native Unicode handling (XeTeX and LuaTeX) character replacing definition. % It activates the setting that replaces Unicode characters. \def\nativeunicodechardefs{% \let\DeclareUnicodeCharacter\DeclareUnicodeCharacterNative \unicodechardefs } % For native Unicode handling (XeTeX and LuaTeX), % make the character token expand % to the sequences given in \unicodechardefs for printing. \def\DeclareUnicodeCharacterNativeAtU#1#2{% \def\UTFAtUTmp{#2} \expandafter\globallet\csname uni:#1\endcsname \UTFAtUTmp } % @U command definitions for native Unicode handling (XeTeX and LuaTeX). \def\nativeunicodechardefsatu{% \let\DeclareUnicodeCharacter\DeclareUnicodeCharacterNativeAtU \unicodechardefs } % US-ASCII character definitions. \def\asciichardefs{% nothing need be done \relax } % Define all Unicode characters we know about. This makes UTF-8 the default % input encoding and allows @U to work. \iftxinativeunicodecapable \nativeunicodechardefsatu \else \utfeightchardefs \fi \message{formatting,} \newdimen\defaultparindent \defaultparindent = 15pt \chapheadingskip = 15pt plus 4pt minus 2pt \secheadingskip = 12pt plus 3pt minus 2pt \subsecheadingskip = 9pt plus 2pt minus 2pt % Prevent underfull vbox error messages. \vbadness = 10000 % Don't be very finicky about underfull hboxes, either. \hbadness = 6666 % Following George Bush, get rid of widows and orphans. \widowpenalty=10000 \clubpenalty=10000 % Use TeX 3.0's \emergencystretch to help line breaking, but if we're % using an old version of TeX, don't do anything. We want the amount of % stretch added to depend on the line length, hence the dependence on % \hsize. We call this whenever the paper size is set. % \def\setemergencystretch{% \ifx\emergencystretch\thisisundefined % Allow us to assign to \emergencystretch anyway. \def\emergencystretch{\dimen0}% \else \emergencystretch = .15\hsize \fi } % Parameters in order: 1) textheight; 2) textwidth; % 3) voffset; 4) hoffset; 5) binding offset; 6) topskip; % 7) physical page height; 8) physical page width. % % We also call \setleading{\textleading}, so the caller should define % \textleading. The caller should also set \parskip. % \def\internalpagesizes#1#2#3#4#5#6#7#8{% \voffset = #3\relax \topskip = #6\relax \splittopskip = \topskip % \vsize = #1\relax \advance\vsize by \topskip \outervsize = \vsize \advance\outervsize by 2\topandbottommargin \txipageheight = \vsize % \hsize = #2\relax \outerhsize = \hsize \advance\outerhsize by 0.5in \txipagewidth = \hsize % \normaloffset = #4\relax \bindingoffset = #5\relax % \ifpdf \pdfpageheight #7\relax \pdfpagewidth #8\relax % if we don't reset these, they will remain at "1 true in" of % whatever layout pdftex was dumped with. \pdfhorigin = 1 true in \pdfvorigin = 1 true in \else \ifx\XeTeXrevision\thisisundefined \special{papersize=#8,#7}% \else \pdfpageheight #7\relax \pdfpagewidth #8\relax % XeTeX does not have \pdfhorigin and \pdfvorigin. \fi \fi % \setleading{\textleading} % \parindent = \defaultparindent \setemergencystretch } % @letterpaper (the default). \def\letterpaper{{\globaldefs = 1 \parskip = 3pt plus 2pt minus 1pt \textleading = 13.2pt % % If page is nothing but text, make it come out even. \internalpagesizes{607.2pt}{6in}% that's 46 lines {\voffset}{.25in}% {\bindingoffset}{36pt}% {11in}{8.5in}% }} % Use @smallbook to reset parameters for 7x9.25 trim size. \def\smallbook{{\globaldefs = 1 \parskip = 2pt plus 1pt \textleading = 12pt % \internalpagesizes{7.5in}{5in}% {-.2in}{0in}% {\bindingoffset}{16pt}% {9.25in}{7in}% % \lispnarrowing = 0.3in \tolerance = 700 \contentsrightmargin = 0pt \defbodyindent = .5cm }} % Use @afourpaper to print on European A4 paper. \def\afourpaper{{\globaldefs = 1 \parskip = 3pt plus 2pt minus 1pt \textleading = 13.2pt % % Double-side printing via postscript on Laserjet 4050 % prints double-sided nicely when \bindingoffset=10mm and \hoffset=-6mm. % To change the settings for a different printer or situation, adjust % \normaloffset until the front-side and back-side texts align. Then % do the same for \bindingoffset. You can set these for testing in % your texinfo source file like this: % @tex % \global\normaloffset = -6mm % \global\bindingoffset = 10mm % @end tex \internalpagesizes{673.2pt}{160mm}% that's 51 lines {\voffset}{\hoffset}% {\bindingoffset}{44pt}% {297mm}{210mm}% % \tolerance = 700 \contentsrightmargin = 0pt \defbodyindent = 5mm }} % Use @afivepaper to print on European A5 paper. % From romildo@urano.iceb.ufop.br, 2 July 2000. % He also recommends making @example and @lisp be small. \def\afivepaper{{\globaldefs = 1 \parskip = 2pt plus 1pt minus 0.1pt \textleading = 12.5pt % \internalpagesizes{160mm}{120mm}% {\voffset}{\hoffset}% {\bindingoffset}{8pt}% {210mm}{148mm}% % \lispnarrowing = 0.2in \tolerance = 800 \contentsrightmargin = 0pt \defbodyindent = 2mm \tableindent = 12mm }} % A specific text layout, 24x15cm overall, intended for A4 paper. \def\afourlatex{{\globaldefs = 1 \afourpaper \internalpagesizes{237mm}{150mm}% {\voffset}{4.6mm}% {\bindingoffset}{7mm}% {297mm}{210mm}% % % Must explicitly reset to 0 because we call \afourpaper. \globaldefs = 0 }} % Use @afourwide to print on A4 paper in landscape format. \def\afourwide{{\globaldefs = 1 \afourpaper \internalpagesizes{241mm}{165mm}% {\voffset}{-2.95mm}% {\bindingoffset}{7mm}% {297mm}{210mm}% \globaldefs = 0 }} \def\bsixpaper{{\globaldefs = 1 \afourpaper \internalpagesizes{140mm}{100mm}% {-6.35mm}{-12.7mm}% {\bindingoffset}{14pt}% {176mm}{125mm}% \let\SETdispenvsize=\smallword \lispnarrowing = 0.2in \globaldefs = 0 }} % @pagesizes TEXTHEIGHT[,TEXTWIDTH] % Perhaps we should allow setting the margins, \topskip, \parskip, % and/or leading, also. Or perhaps we should compute them somehow. % \parseargdef\pagesizes{\pagesizesyyy #1,,\finish} \def\pagesizesyyy#1,#2,#3\finish{{% \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi \globaldefs = 1 % \parskip = 3pt plus 2pt minus 1pt \setleading{\textleading}% % \dimen0 = #1\relax \advance\dimen0 by 2.5in % default 1in margin above heading line % and 1.5in to include heading, footing and % bottom margin % \dimen2 = \hsize \advance\dimen2 by 2in % default to 1 inch margin on each side % \internalpagesizes{#1}{\hsize}% {\voffset}{\normaloffset}% {\bindingoffset}{44pt}% {\dimen0}{\dimen2}% }} % Set default to letter. % \letterpaper % Default value of \hfuzz, for suppressing warnings about overfull hboxes. \hfuzz = 1pt \message{and turning on texinfo input format.} \def^^L{\par} % remove \outer, so ^L can appear in an @comment % DEL is a comment character, in case @c does not suffice. \catcode`\^^? = 14 % Define macros to output various characters with catcode for normal text. \catcode`\"=\other \def\normaldoublequote{"} \catcode`\$=\other \def\normaldollar{$}%$ font-lock fix \catcode`\+=\other \def\normalplus{+} \catcode`\<=\other \def\normalless{<} \catcode`\>=\other \def\normalgreater{>} \catcode`\^=\other \def\normalcaret{^} \catcode`\_=\other \def\normalunderscore{_} \catcode`\|=\other \def\normalverticalbar{|} \catcode`\~=\other \def\normaltilde{~} % This macro is used to make a character print one way in \tt % (where it can probably be output as-is), and another way in other fonts, % where something hairier probably needs to be done. % % #1 is what to print if we are indeed using \tt; #2 is what to print % otherwise. Since all the Computer Modern typewriter fonts have zero % interword stretch (and shrink), and it is reasonable to expect all % typewriter fonts to have this, we can check that font parameter. % \def\ifusingtt#1#2{\ifdim \fontdimen3\font=0pt #1\else #2\fi} % Same as above, but check for italic font. Actually this also catches % non-italic slanted fonts since it is impossible to distinguish them from % italic fonts. But since this is only used by $ and it uses \sl anyway % this is not a problem. \def\ifusingit#1#2{\ifdim \fontdimen1\font>0pt #1\else #2\fi} % Set catcodes for Texinfo file % Active characters for printing the wanted glyph. % Most of these we simply print from the \tt font, but for some, we can % use math or other variants that look better in normal text. % \catcode`\"=\active \def\activedoublequote{{\tt\char34}} \let"=\activedoublequote \catcode`\~=\active \def\activetilde{{\tt\char126}} \let~ = \activetilde \chardef\hatchar=`\^ \catcode`\^=\active \def\activehat{{\tt \hatchar}} \let^ = \activehat \catcode`\_=\active \def_{\ifusingtt\normalunderscore\_} \def\_{\leavevmode \kern.07em \vbox{\hrule width.3em height.1ex}\kern .07em } \let\realunder=_ \catcode`\|=\active \def|{{\tt\char124}} \chardef \less=`\< \catcode`\<=\active \def\activeless{{\tt \less}}\let< = \activeless \chardef \gtr=`\> \catcode`\>=\active \def\activegtr{{\tt \gtr}}\let> = \activegtr \catcode`\+=\active \def+{{\tt \char 43}} \catcode`\$=\active \def${\ifusingit{{\sl\$}}\normaldollar}%$ font-lock fix \catcode`\-=\active \let-=\normaldash % used for headline/footline in the output routine, in case the page % breaks in the middle of an @tex block. \def\texinfochars{% \let< = \activeless \let> = \activegtr \let~ = \activetilde \let^ = \activehat \setregularquotes \let\b = \strong \let\i = \smartitalic % in principle, all other definitions in \tex have to be undone too. } % Used sometimes to turn off (effectively) the active characters even after % parsing them. \def\turnoffactive{% \normalturnoffactive \otherbackslash } \catcode`\@=0 % \backslashcurfont outputs one backslash character in current font, % as in \char`\\. \global\chardef\backslashcurfont=`\\ % \realbackslash is an actual character `\' with catcode other. {\catcode`\\=\other @gdef@realbackslash{\}} % In Texinfo, backslash is an active character; it prints the backslash % in fixed width font. \catcode`\\=\active % @ for escape char from now on. % Print a typewriter backslash. For math mode, we can't simply use % \backslashcurfont: the story here is that in math mode, the \char % of \backslashcurfont ends up printing the roman \ from the math symbol % font (because \char in math mode uses the \mathcode, and plain.tex % sets \mathcode`\\="026E). Hence we use an explicit \mathchar, % which is the decimal equivalent of "715c (class 7, e.g., use \fam; % ignored family value; char position "5C). We can't use " for the % usual hex value because it has already been made active. @def@ttbackslash{{@tt @ifmmode @mathchar29020 @else @backslashcurfont @fi}} @let@backslashchar = @ttbackslash % @backslashchar{} is for user documents. % \otherbackslash defines an active \ to be a literal `\' character with % catcode other. @gdef@otherbackslash{@let\=@realbackslash} % Same as @turnoffactive except outputs \ as {\tt\char`\\} instead of % the literal character `\'. % {@catcode`- = @active @gdef@normalturnoffactive{% @passthroughcharstrue @let-=@normaldash @let"=@normaldoublequote @let$=@normaldollar %$ font-lock fix @let+=@normalplus @let<=@normalless @let>=@normalgreater @let^=@normalcaret @let_=@normalunderscore @let|=@normalverticalbar @let~=@normaltilde @let\=@ttbackslash @setregularquotes @unsepspaces } } % If a .fmt file is being used, characters that might appear in a file % name cannot be active until we have parsed the command line. % So turn them off again, and have @fixbackslash turn them back on. @catcode`+=@other @catcode`@_=@other % \enablebackslashhack - allow file to begin `\input texinfo' % % If a .fmt file is being used, we don't want the `\input texinfo' to show up. % That is what \eatinput is for; after that, the `\' should revert to printing % a backslash. % If the file did not have a `\input texinfo', then it is turned off after % the first line; otherwise the first `\' in the file would cause an error. % This is used on the very last line of this file, texinfo.tex. % We also use @c to call @fixbackslash, in case ends of lines are hidden. { @catcode`@^=7 @catcode`@^^M=13@gdef@enablebackslashhack{% @global@let\ = @eatinput% @catcode`@^^M=13% @def@c{@fixbackslash@c}% % Definition for the newline at the end of this file. @def ^^M{@let^^M@secondlinenl}% % Definition for a newline in the main Texinfo file. @gdef @secondlinenl{@fixbackslash}% % In case the first line has a whole-line command on it @let@originalparsearg@parsearg @def@parsearg{@fixbackslash@originalparsearg} }} {@catcode`@^=7 @catcode`@^^M=13% @gdef@eatinput input texinfo#1^^M{@fixbackslash}} % Emergency active definition of newline, in case an active newline token % appears by mistake. {@catcode`@^=7 @catcode13=13% @gdef@enableemergencynewline{% @gdef^^M{% @par% %@par% }}} @gdef@fixbackslash{% @ifx\@eatinput @let\ = @ttbackslash @fi @catcode13=5 % regular end of line @enableemergencynewline @let@c=@comment @let@parsearg@originalparsearg % Also turn back on active characters that might appear in the input % file name, in case not using a pre-dumped format. @catcode`+=@active @catcode`@_=@active % % If texinfo.cnf is present on the system, read it. % Useful for site-wide @afourpaper, etc. This macro, @fixbackslash, gets % called at the beginning of every Texinfo file. Not opening texinfo.cnf % directly in this file, texinfo.tex, makes it possible to make a format % file for Texinfo. % @openin 1 texinfo.cnf @ifeof 1 @else @input texinfo.cnf @fi @closein 1 } % Say @foo, not \foo, in error messages. @escapechar = `@@ % These (along with & and #) are made active for url-breaking, so need % active definitions as the normal characters. @def@normaldot{.} @def@normalquest{?} @def@normalslash{/} % These look ok in all fonts, so just make them not special. % @hashchar{} gets its own user-level command, because of #line. @catcode`@& = @other @def@normalamp{&} @catcode`@# = @other @def@normalhash{#} @catcode`@% = @other @def@normalpercent{%} @let @hashchar = @normalhash @c Finally, make ` and ' active, so that txicodequoteundirected and @c txicodequotebacktick work right in, e.g., @w{@code{`foo'}}. If we @c don't make ` and ' active, @code will not get them as active chars. @c Do this last of all since we use ` in the previous @catcode assignments. @catcode`@'=@active @catcode`@`=@active @setregularquotes @c Local variables: @c eval: (add-hook 'before-save-hook 'time-stamp nil t) @c time-stamp-pattern: "texinfoversion{%Y-%02m-%02d.%02H}" @c page-delimiter: "^\\\\message\\|emacs-page" @c End: @c vim:sw=2: @enablebackslashhack shishi-1.0.3/build-aux/missing0000755000000000000000000001533614273615173013203 00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/vc-list-files0000755000000000000000000000736714273615074014220 00000000000000#!/bin/sh # List version-controlled file names. # Print a version string. scriptversion=2018-03-07.03; # UTC # Copyright (C) 2006-2022 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # List the specified version-controlled files. # With no argument, list them all. With a single DIRECTORY argument, # list the version-controlled files in that directory. # If there's an argument, it must be a single, "."-relative directory name. # cvsu is part of the cvsutils package: https://www.red-bean.com/cvsutils/ postprocess= case $1 in --help) cat <. EOF exit ;; --version) year=`echo "$scriptversion" | sed 's/[^0-9].*//'` cat < This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. EOF exit ;; -C) test "$2" = . || postprocess="| sed 's|^|$2/|'" cd "$2" || exit 1 shift; shift ;; esac test $# = 0 && set . for dir do if test -d .git || test -f .git; then test "x$dir" = x. \ && dir= sed_esc= \ || { dir="$dir/"; sed_esc=`echo "$dir"|env sed 's,\([\\/]\),\\\\\1,g'`; } # Ignore git symlinks - either they point into the tree, in which case # we don't need to visit the target twice, or they point somewhere # else (often into a submodule), in which case the content does not # belong to this package. eval exec git ls-tree -r 'HEAD:"$dir"' \ \| sed -n '"s/^100[^ ]*./$sed_esc/p"' $postprocess elif test -d .hg; then eval exec hg locate '"$dir/*"' $postprocess elif test -d .bzr; then test "$postprocess" = '' && postprocess="| sed 's|^\./||'" eval exec bzr ls -R --versioned '"$dir"' $postprocess elif test -d CVS; then test "$postprocess" = '' && postprocess="| sed 's|^\./||'" if test -x build-aux/cvsu; then eval build-aux/cvsu --find --types=AFGM '"$dir"' $postprocess elif (cvsu --help) >/dev/null 2>&1; then eval cvsu --find --types=AFGM '"$dir"' $postprocess else eval awk -F/ \''{ \ if (!$1 && $3 !~ /^-/) { \ f=FILENAME; \ if (f ~ /CVS\/Entries$/) \ f = substr(f, 1, length(f)-11); \ print f $2; \ }}'\'' \ `find "$dir" -name Entries -print` /dev/null' $postprocess fi elif test -d .svn; then eval exec svn list -R '"$dir"' $postprocess else echo "$0: Failed to determine type of version control used in `pwd`" 1>&2 exit 1 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: shishi-1.0.3/build-aux/pmccabe2html0000644000000000000000000006063014273615074014065 00000000000000# pmccabe2html - AWK script to convert pmccabe output to html -*- awk -*- # Copyright (C) 2007-2022 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Written by Jose E. Marchesi . # Adapted for gnulib by Simon Josefsson . # Added support for C++ by Giuseppe Scrivano . # Typical Invocation is from a Makefile.am: # # CYCLO_SOURCES = ${top_srcdir}/src/*.[ch] # # cyclo-$(PACKAGE).html: $(CYCLO_SOURCES) # $(PMCCABE) $(CYCLO_SOURCES) \ # | sort -nr \ # | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \ # -v lang=html -v name="$(PACKAGE_NAME)" \ # -v vcurl="https://git.savannah.gnu.org/gitweb/?p=$(PACKAGE).git;a=blob;f=%FILENAME%;hb=HEAD" \ # -v url="https://www.gnu.org/software/$(PACKAGE)/" \ # -v css=${top_srcdir}/build-aux/pmccabe.css \ # -v cut_dir=${top_srcdir}/ \ # > $@-tmp # mv $@-tmp $@ # # The variables available are: # lang output language, either 'html' or 'wiki' # name project name # url link to project's home page # vcurl URL to version controlled source code browser, # a %FILENAME% in the string is replaced with the relative # source filename # css CSS stylesheet filename, included verbatim in HTML output # css_url link to CSS stylesheet, an URL # Prologue & configuration BEGIN { # Portable lookup of present time. "date +%s" | getline epoch_time "date" | getline chronos_time section_global_stats_p = 1 section_function_cyclo_p = 1 # "html" or "wiki" package_name = name output_lang = lang # General Options cyclo_simple_max = 10 cyclo_moderate_max = 20 cyclo_high_max = 50 source_file_link_tmpl = vcurl # HTML options if (url != "") { html_prolog = "Back to " package_name " Homepage

" } html_epilog = "
\ Copyright (c) 2007, 2008 Free Software Foundation, Inc." html_doctype = "" html_comment = "" html_title = "Cyclomatic Complexity report for " package_name # Wiki options wiki_prolog = "{{Note|This page has been automatically generated}}" wiki_epilog = "" # Internal variables nfuncs = 0; } # Functions function build_stats() { # Maximum modified cyclo for (fcn in mcyclo) { num_of_functions++ if (mcyclo[fcn] > max_mcyclo) { max_mcyclo = mcyclo[fcn] } if (mcyclo[fcn] > cyclo_high_max) { num_of_untestable_functions++ } else if (mcyclo[fcn] > cyclo_moderate_max) { num_of_high_functions++ } else if (mcyclo[fcn] > cyclo_simple_max) { num_of_moderate_functions++ } else { num_of_simple_functions++ } } } function html_fnc_table_complete (caption) { html_fnc_table(caption, 1, 1, 0, 1, 1, 0, 1) } function html_fnc_table_abbrev (caption) { html_fnc_table(caption, 1, 1, 0, 0, 1, 0, 0) } function html_fnc_table (caption, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { print "" if (caption != "") { print "" } html_fnc_header(fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) for (nfnc = 1; nfnc <= nfuncs; nfnc++) { html_fnc(nfnc, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) } print "
" caption "
" } function html_header () { print html_doctype print "" print html_comment print "" print "" html_title "" print "" print "" print "" print "" print "" print "" print "" print "" if (css_url != "") { print "" } if (css != "") { print "" close(css) } print "" print "" } function html_footer () { print "" print "" } function html_fnc_header (fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { print "" if (fname_p) { # Function name print "" print "" print "" print "" print "Function Name" print "" } if (mcyclo_p) { # Modified cyclo print "" print "Modified Cyclo" print "" } if (cyclo_p) { # Cyclo print "" print "Cyclomatic" print "
" print "Complexity" print "" } if (num_statements_p) { print "" print "Number of" print "
" print "Statements" print "" } if (num_lines_p) { print "" print "Number of" print "
" print "Lines" print "" } if (first_line_p) { print "" print "First Line" print "" } if (file_p) { print "" print "Source File" print "" } print "" } function html_fnc (nfun, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { fname = fnames[nfun] # Function name trclass = "function_entry_simple" if (mcyclo[nfun] > cyclo_high_max) { trclass="function_entry_untestable" } else if (mcyclo[nfun] > cyclo_moderate_max) { trclass="function_entry_high" } else if (mcyclo[nfun] > cyclo_simple_max) { trclass="function_entry_moderate" } print "" if (fname_p) { print "" if (file_p && mcyclo[nfun] > cyclo_simple_max) { print "\ " } else { print " " } print "" print "" print fname print "" } if (mcyclo_p) { # Modified cyclo print "" print mcyclo[nfun] print "" } if (cyclo_p) { # Cyclo print "" print cyclo[nfun] print "" } if (num_statements_p) { # Number of statements print "" print num_statements[nfun] print "" } if (num_lines_p) { # Number of lines print "" print num_lines[nfun] print "" } if (first_line_p) { # First line print "" print first_line[nfun] print "" } if (file_p) { href = "" if (source_file_link_tmpl != "") { # Get href target href = source_file_link_tmpl sub(/%FILENAME%/, file[nfun], href) } # Source file print "" if (href != "") { print "" file[nfun] "" } else { print file[nfun] } print "" print "" if (mcyclo[nfun] > cyclo_simple_max) { print "" num_columns = 1; if (fname_p) { num_columns++ } if (mcyclo_p) { num_columns++ } if (cyclo_p) { num_columns++ } if (num_statements_p) { num_columns++ } if (num_lines_p) { num_columns++ } if (first_line_p) { num_columns++ } if (file_p) { num_columns++ } print "" print "
" print "
"

            while ((getline codeline < (fname nfun "_fn.txt")) > 0)
            {
                gsub(/&/, "\\&", codeline)	# Must come first.
                gsub(//, "\\>", codeline)

                print codeline
            }
            close(fname nfun "_fn.txt")
            system("rm " "'" fname "'" nfun "_fn.txt")
            print "
" print "
" print "" print "" } } } function html_global_stats () { print "
Summary
" print "" # Total number of functions print "" print "" print "" print "" # Number of simple functions print "" print "" print "" print "" # Number of moderate functions print "" print "" print "" print "" # Number of high functions print "" print "" print "" print "" # Number of untestable functions print "" print "" print "" print "" print "
" print "Total number of functions" print "" print num_of_functions print "
" print "Number of low risk functions" print "" print num_of_simple_functions print "
" print "Number of moderate risk functions" print "" print num_of_moderate_functions print "
" print "Number of high risk functions" print "" print num_of_high_functions print "
" print "Number of untestable functions" print "" print num_of_untestable_functions print "
" print "
" } function html_function_cyclo () { print "
Details for all functions
" print "" print "" print "" print "" print "" print "" # Simple print "" print "" print "" print "" print "" # Moderate print "" print "" print "" print "" print "" # High print "" print "" print "" print "" print "" # Untestable print "" print "" print "" print "" print "" print "
" print " " print "" print "Cyclomatic Complexity" print "" print "Risk Evaluation" print "
" print " " print "" print "0 - " cyclo_simple_max print "" print "Simple module, without much risk" print "
" print " " print "" print cyclo_simple_max + 1 " - " cyclo_moderate_max print "" print "More complex module, moderate risk" print "
" print " " print "" print cyclo_moderate_max + 1 " - " cyclo_high_max print "" print "Complex module, high risk" print "
" print " " print "" print "greater than " cyclo_high_max print "" print "Untestable module, very high risk" print "
" print "
" html_fnc_table_complete("") } function wiki_global_stats () { print "{| class=\"cyclo_summary_table\"" # Total number of functions print "|-" print "| class=\"cyclo_summary_header_entry\" | Total number of functions" print "| class=\"cyclo_summary_number_entry\" |" num_of_functions # Number of simple functions print "|-" print "| class=\"cyclo_summary_header_entry\" | Number of low risk functions" print "| class=\"cyclo_summary_number_entry\" |" num_of_simple_functions # Number of moderate functions print "|-" print "| class=\"cyclo_summary_header_entry\" | Number of moderate risk functions" print "| class=\"cyclo_summary_number_entry\" |" num_of_moderate_functions # Number of high functions print "|-" print "| class=\"cyclo_summary_header_entry\" | Number of high risk functions" print "| class=\"cyclo_summary_number_entry\" |" num_of_high_functions # Number of untestable functions print "|-" print "| class=\"cyclo_summary_header_entry\" | Number of untestable functions" print "| class=\"cyclo_summary_number_entry\" |" num_of_untestable_functions print "|}" } function wiki_function_cyclo () { print "==Details for all functions==" print "Used ranges:" print "{| class =\"cyclo_ranges_table\"" print "|-" print "| class=\"cyclo_ranges_header_entry\" | " print "| class=\"cyclo_ranges_header_entry\" | Cyclomatic Complexity" print "| class=\"cyclo_ranges_header_entry\" | Risk Evaluation" # Simple print "|-" print "| class=\"cyclo_ranges_entry_simple\" | " print "| class=\"cyclo_ranges_entry\" | 0 - " cyclo_simple_max print "| class=\"cyclo_ranges_entry\" | Simple module, without much risk" # Moderate print "|-" print "| class=\"cyclo_ranges_entry_moderate\" | " print "| class=\"cyclo_ranges_entry\" |" cyclo_simple_max + 1 " - " cyclo_moderate_max print "| class=\"cyclo_ranges_entry\" | More complex module, moderate risk" # High print "|-" print "| class=\"cyclo_ranges_entry_high\" | " print "| class=\"cyclo_ranges_entry\" |" cyclo_moderate_max + 1 " - " cyclo_high_max print "| class=\"cyclo_ranges_entry\" | Complex module, high risk" # Untestable print "|-" print "| class=\"cyclo_ranges_entry_untestable\" | " print "| class=\"cyclo_ranges_entry\" | greater than " cyclo_high_max print "| class=\"cyclo_ranges_entry\" | Untestable module, very high risk" print "|}" print "" print "" wiki_fnc_table_complete("") } function wiki_fnc_table_complete (caption) { wiki_fnc_table(caption, 1, 1, 0, 1, 1, 0, 1) } function wiki_fnc_table_abbrev (caption) { wiki_fnc_table(caption, 1, 0, 0, 0, 0, 0, 0) } function wiki_fnc_table (caption, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { print "{| width=\"90%\" class=\"cyclo_function_table\" cellpadding=\"0\" cellspacing=\"0\">" if (caption != "") { print "|+" caption } wiki_fnc_header(fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) for (nfnc = 1; nfnc <= nfuncs; nfnc++) { wiki_fnc(nfnc, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) } print "|}" } function wiki_fnc_header (fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { if (fname_p) { # Function name print "! class=\"cyclo_function_table_header_entry\" | Function Name" } if (mcyclo_p) { # Modified cyclo print "! class=\"cyclo_function_table_header_entry\" | Modified Cyclo" } if (cyclo_p) { # Cyclo print "! class=\"cyclo_function_table_header_entry\" | Cyclomatic Complexity" } if (num_statements_p) { print "! class=\"cyclo_function_table_header_entry\" | Number of Statements" } if (num_lines_p) { print "! class=\"cyclo_function_table_header_entry\" | Number of Lines" } if (first_line_p) { print "! class=\"cyclo_function_table_header_entry\" | First Line" } if (file_p) { print "! class=\"cyclo_function_table_header_entry\" | Source File" } } function wiki_fnc (nfnc, fname_p, mcyclo_p, cyclo_p, num_statements_p, num_lines_p, first_line_p, file_p) { fname = fnames[nfnc] # Function name trclass = "cyclo_function_entry_simple" if (mcyclo[nfnc] > cyclo_high_max) { trclass="cyclo_function_entry_untestable" } else if (mcyclo[nfnc] > cyclo_moderate_max) { trclass="cyclo_function_entry_high" } else if (mcyclo[nfnc] > cyclo_simple_max) { trclass="cyclo_function_entry_moderate" } print "|- class=\"" trclass "\"" if (fname_p) { print "| class=\"cyclo_function_entry_name\" |" fname } if (mcyclo_p) { # Modified cyclo print "| class=\"cyclo_function_entry_cyclo\" |" mcyclo[nfnc] } if (cyclo_p) { # Cyclo print "| class=\"cyclo_function_entry_cyclo\" |" cyclo[nfnc] } if (num_statements_p) { # Number of statements print "| class=\"cyclo_function_entry_number\" |" num_statements[nfnc] } if (num_lines_p) { # Number of lines print "| class=\"cyclo_function_entry_number\" |" num_lines[nfnc] } if (first_line_p) { # First line print "| class=\"cyclo_function_entry_number\" |" first_line[nfnc] } if (file_p) { href = "" if (source_file_link_tmpl != "") { # Get href target href = source_file_link_tmpl sub(/%FILENAME%/, file[nfnc], href) } # Source file print "| class=\"cyclo_function_entry_filename\" |" \ ((href != "") ? "[" href " " file[nfnc] "]" : "[" file[nfnc] "]") } } # Scan data from a line { function_name = $7 nfuncs++; fnames[nfuncs] = function_name mcyclo[nfuncs] = $1 cyclo[nfuncs] = $2 num_statements[nfuncs] = $3 first_line[nfuncs] = $4 num_lines[nfuncs] = $5 # Build the filename from the file_spec ($6) begin_util_path = index($6, cut_dir) tmpfilename = substr($6, begin_util_path + length(cut_dir)) sub(/\([0-9]+\):/, "", tmpfilename) file[nfuncs] = tmpfilename if (mcyclo[nfuncs] > cyclo_simple_max) { # Extract function contents to a fn_txt file filepath = $6 sub(/\([0-9]+\):/, "", filepath) num_line = 0 while ((getline codeline < filepath) > 0) { num_line++; if ((num_line >= first_line[nfuncs]) && (num_line < first_line[nfuncs] + num_lines[nfuncs])) { print codeline > (function_name nfuncs "_fn.txt") } } close (function_name nfuncs "_fn.txt") close(filepath) } # Initial values for statistics variables num_of_functions = 0 max_mcyclo = 0 max_function_length = 0 num_of_simple_functions = 0 num_of_moderate_functions = 0 num_of_high_functions = 0 num_of_untestable_functions = 0 } # Epilogue END { # Print header (only for html) if (output_lang == "html") { html_header() } # Print prolog if ((output_lang == "html") && (html_prolog != "")) { print html_prolog } if ((output_lang == "wiki") && (wiki_prolog != "")) { print wiki_prolog } if (output_lang == "html") { print "
" package_name " Cyclomatic Complexity Report
" print "

Report generated at: " chronos_time "

" } if (output_lang == "wiki") { print "==" package_name " Cyclomatic Complexity Report==" print "Report generated at: '''" chronos_time "'''" } if (section_global_stats_p) { build_stats() if (output_lang == "html") { html_global_stats() } if (output_lang == "wiki") { wiki_global_stats() } } if (section_function_cyclo_p) { if (output_lang == "html") { html_function_cyclo() } if (output_lang == "wiki") { wiki_function_cyclo() } } # Print epilog if ((output_lang == "html") && (html_epilog != "")) { print html_epilog } if ((output_lang == "wiki") && (wiki_epilog != "")) { print wiki_epilog } # Print footer (html only) if (output_lang == "html") { html_footer() } } # End of pmccabe2html shishi-1.0.3/build-aux/gitlog-to-changelog0000755000000000000000000004026014273615074015356 00000000000000#!/bin/sh #! -*-perl-*- # Convert git log output to ChangeLog format. # Copyright (C) 2008-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Written by Jim Meyering # This is a prologue that allows to run a perl script as an executable # on systems that are compliant to a POSIX version before POSIX:2017. # On such systems, the usual invocation of an executable through execlp() # or execvp() fails with ENOEXEC if it is a script that does not start # with a #! line. The script interpreter mentioned in the #! line has # to be /bin/sh, because on GuixSD systems that is the only program that # has a fixed file name. The second line is essential for perl and is # also useful for editing this file in Emacs. The next two lines below # are valid code in both sh and perl. When executed by sh, they re-execute # the script through the perl program found in $PATH. The '-x' option # is essential as well; without it, perl would re-execute the script # through /bin/sh. When executed by perl, the next two lines are a no-op. eval 'exec perl -wSx "$0" "$@"' if 0; my $VERSION = '2022-01-27 18:49'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. use strict; use warnings; use Getopt::Long; use POSIX qw(strftime); (my $ME = $0) =~ s|.*/||; # use File::Coda; # https://meyering.net/code/Coda/ END { defined fileno STDOUT or return; close STDOUT and return; warn "$ME: failed to close standard output: $!\n"; $? ||= 1; } sub usage ($) { my ($exit_code) = @_; my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); if ($exit_code != 0) { print $STREAM "Try '$ME --help' for more information.\n"; } else { print $STREAM < ChangeLog $ME -- -n 5 foo > last-5-commits-to-branch-foo SPECIAL SYNTAX: The following types of strings are interpreted specially when they appear at the beginning of a log message line. They are not copied to the output. Copyright-paperwork-exempt: Yes Append the "(tiny change)" notation to the usual "date name email" ChangeLog header to mark a change that does not require a copyright assignment. Co-authored-by: Joe User List the specified name and email address on a second ChangeLog header, denoting a co-author. Signed-off-by: Joe User These lines are simply elided. In a FILE specified via --amend, comment lines (starting with "#") are ignored. FILE must consist of pairs where SHA is a 40-byte SHA1 (alone on a line) referring to a commit in the current project, and CODE refers to one or more consecutive lines of Perl code. Pairs must be separated by one or more blank line. Here is sample input for use with --amend=FILE, from coreutils: 3a169f4c5d9159283548178668d2fae6fced3030 # fix typo in title: s/all tile types/all file types/ 1379ed974f1fa39b12e2ffab18b3f7a607082202 # Due to a bug in vc-dwim, I mis-attributed a patch by Paul to myself. # Change the author to be Paul. Note the escaped "@": s,Jim .*>,Paul Eggert , EOF } exit $exit_code; } # If the string $S is a well-behaved file name, simply return it. # If it contains white space, quotes, etc., quote it, and return the new string. sub shell_quote($) { my ($s) = @_; if ($s =~ m![^\w+/.,-]!) { # Convert each single quote to '\'' $s =~ s/\'/\'\\\'\'/g; # Then single quote the string. $s = "'$s'"; } return $s; } sub quoted_cmd(@) { return join (' ', map {shell_quote $_} @_); } # Parse file F. # Comment lines (starting with "#") are ignored. # F must consist of pairs where SHA is a 40-byte SHA1 # (alone on a line) referring to a commit in the current project, and # CODE refers to one or more consecutive lines of Perl code. # Pairs must be separated by one or more blank line. sub parse_amend_file($) { my ($f) = @_; open F, '<', $f or die "$ME: $f: failed to open for reading: $!\n"; my $fail; my $h = {}; my $in_code = 0; my $sha; while (defined (my $line = )) { $line =~ /^\#/ and next; chomp $line; $line eq '' and $in_code = 0, next; if (!$in_code) { $line =~ /^([[:xdigit:]]{40})$/ or (warn "$ME: $f:$.: invalid line; expected an SHA1\n"), $fail = 1, next; $sha = lc $1; $in_code = 1; exists $h->{$sha} and (warn "$ME: $f:$.: duplicate SHA1\n"), $fail = 1, next; } else { $h->{$sha} ||= ''; $h->{$sha} .= "$line\n"; } } close F; $fail and exit 1; return $h; } # git_dir_option $SRCDIR # # From $SRCDIR, the --git-dir option to pass to git (none if $SRCDIR # is undef). Return as a list (0 or 1 element). sub git_dir_option($) { my ($srcdir) = @_; my @res = (); if (defined $srcdir) { my $qdir = shell_quote $srcdir; my $cmd = "cd $qdir && git rev-parse --show-toplevel"; my $qcmd = shell_quote $cmd; my $git_dir = qx($cmd); defined $git_dir or die "$ME: cannot run $qcmd: $!\n"; $? == 0 or die "$ME: $qcmd had unexpected exit code or signal ($?)\n"; chomp $git_dir; push @res, "--git-dir=$git_dir/.git"; } @res; } { my $since_date; my $until_date; my $format_string = '%s%n%b%n'; my $amend_file; my $append_dot = 0; my $cluster = 1; my $ignore_matching; my $ignore_line; my $strip_tab = 0; my $strip_cherry_pick = 0; my $srcdir; GetOptions ( help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; exit }, 'since=s' => \$since_date, 'until=s' => \$until_date, 'format=s' => \$format_string, 'amend=s' => \$amend_file, 'append-dot' => \$append_dot, 'cluster!' => \$cluster, 'ignore-matching=s' => \$ignore_matching, 'ignore-line=s' => \$ignore_line, 'strip-tab' => \$strip_tab, 'strip-cherry-pick' => \$strip_cherry_pick, 'srcdir=s' => \$srcdir, ) or usage 1; defined $since_date and unshift @ARGV, "--since=$since_date"; defined $until_date and unshift @ARGV, "--until=$until_date"; # This is a hash that maps an SHA1 to perl code (i.e., s/old/new/) # that makes a correction in the log or attribution of that commit. my $amend_code = defined $amend_file ? parse_amend_file $amend_file : {}; my @cmd = ('git', git_dir_option $srcdir, qw(log --log-size), '--pretty=format:%H:%ct %an <%ae>%n%n'.$format_string, @ARGV); open PIPE, '-|', @cmd or die ("$ME: failed to run '". quoted_cmd (@cmd) ."': $!\n" . "(Is your Git too old? Version 1.5.1 or later is required.)\n"); my $prev_multi_paragraph; my $prev_date_line = ''; my @prev_coauthors = (); my @skipshas = (); while (1) { defined (my $in = ) or last; $in =~ /^log size (\d+)$/ or die "$ME:$.: Invalid line (expected log size):\n$in"; my $log_nbytes = $1; my $log; my $n_read = read PIPE, $log, $log_nbytes; $n_read == $log_nbytes or die "$ME:$.: unexpected EOF\n"; # Extract leading hash. my ($sha, $rest) = split ':', $log, 2; defined $sha or die "$ME:$.: malformed log entry\n"; $sha =~ /^[[:xdigit:]]{40}$/ or die "$ME:$.: invalid SHA1: $sha\n"; my $skipflag = 0; if (@skipshas) { foreach(@skipshas) { if ($sha =~ /^$_/) { $skipflag = $_; last; } } } # If this commit's log requires any transformation, do it now. my $code = $amend_code->{$sha}; if (defined $code) { eval 'use Safe'; my $s = new Safe; # Put the unpreprocessed entry into "$_". $_ = $rest; # Let $code operate on it, safely. my $r = $s->reval("$code") or die "$ME:$.:$sha: failed to eval \"$code\":\n$@\n"; # Note that we've used this entry. delete $amend_code->{$sha}; # Update $rest upon success. $rest = $_; } # Remove lines inserted by "git cherry-pick". if ($strip_cherry_pick) { $rest =~ s/^\s*Conflicts:\n.*//sm; $rest =~ s/^\s*\(cherry picked from commit [\da-f]+\)\n//m; } my @line = split /[ \t]*\n/, $rest; my $author_line = shift @line; defined $author_line or die "$ME:$.: unexpected EOF\n"; $author_line =~ /^(\d+) (.*>)$/ or die "$ME:$.: Invalid line " . "(expected date/author/email):\n$author_line\n"; # Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog # `(tiny change)' annotation. my $tiny = (grep (/^(?:Copyright-paperwork-exempt|Tiny-change):\s+[Yy]es$/, @line) ? ' (tiny change)' : ''); my $date_line = sprintf "%s %s$tiny\n", strftime ("%Y-%m-%d", localtime ($1)), $2; my @coauthors = grep /^Co-authored-by:.*$/, @line; # Omit meta-data lines we've already interpreted. @line = grep !/^(?:Signed-off-by:[ ].*>$ |Co-authored-by:[ ] |Copyright-paperwork-exempt:[ ] |Tiny-change:[ ] )/x, @line; # Remove leading and trailing blank lines. if (@line) { while ($line[0] =~ /^\s*$/) { shift @line; } while ($line[$#line] =~ /^\s*$/) { pop @line; } } # Handle Emacs gitmerge.el "skipped" commits. # Yes, this should be controlled by an option. So sue me. if ( grep /^(; )?Merge from /, @line ) { my $found = 0; foreach (@line) { if (grep /^The following commit.*skipped:$/, $_) { $found = 1; ## Reset at each merge to reduce chance of false matches. @skipshas = (); next; } if ($found && $_ =~ /^([[:xdigit:]]{7,}) [^ ]/) { push ( @skipshas, $1 ); } } } # Ignore commits that match the --ignore-matching pattern, if specified. if (defined $ignore_matching && @line && $line[0] =~ /$ignore_matching/) { $skipflag = 1; } elsif ($skipflag) { ## Perhaps only warn if a pattern matches more than once? warn "$ME: warning: skipping $sha due to $skipflag\n"; } if (! $skipflag) { if (defined $ignore_line && @line) { @line = grep ! /$ignore_line/, @line; while ($line[$#line] =~ /^\s*$/) { pop @line; } } # Record whether there are two or more paragraphs. my $multi_paragraph = grep /^\s*$/, @line; # Format 'Co-authored-by: A U Thor ' lines in # standard multi-author ChangeLog format. for (@coauthors) { s/^Co-authored-by:\s*/\t /; s/\s*/ or warn "$ME: warning: missing email address for " . substr ($_, 5) . "\n"; } # If clustering of commit messages has been disabled, if this header # would be different from the previous date/name/etc. header, # or if this or the previous entry consists of two or more paragraphs, # then print the header. if ( ! $cluster || $date_line ne $prev_date_line || "@coauthors" ne "@prev_coauthors" || $multi_paragraph || $prev_multi_paragraph) { $prev_date_line eq '' or print "\n"; print $date_line; @coauthors and print join ("\n", @coauthors), "\n"; } $prev_date_line = $date_line; @prev_coauthors = @coauthors; $prev_multi_paragraph = $multi_paragraph; # If there were any lines if (@line == 0) { warn "$ME: warning: empty commit message:\n" . " commit $sha\n $date_line\n"; } else { if ($append_dot) { # If the first line of the message has enough room, then if (length $line[0] < 72) { # append a dot if there is no other punctuation or blank # at the end. $line[0] =~ /[[:punct:]\s]$/ or $line[0] .= '.'; } } # Remove one additional leading TAB from each line. $strip_tab and map { s/^\t// } @line; # Prefix each non-empty line with a TAB. @line = map { length $_ ? "\t$_" : '' } @line; print "\n", join ("\n", @line), "\n"; } } defined ($in = ) or last; $in ne "\n" and die "$ME:$.: unexpected line:\n$in"; } close PIPE or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n"; # FIXME-someday: include $PROCESS_STATUS in the diagnostic # Complain about any unused entry in the --amend=F specified file. my $fail = 0; foreach my $sha (keys %$amend_code) { warn "$ME:$amend_file: unused entry: $sha\n"; $fail = 1; } exit $fail; } # Local Variables: # mode: perl # indent-tabs-mode: nil # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-line-limit: 50 # time-stamp-start: "my $VERSION = '" # time-stamp-format: "%:y-%02m-%02d %02H:%02M" # time-stamp-time-zone: "UTC0" # time-stamp-end: "'; # UTC" # End: shishi-1.0.3/build-aux/gendocs.sh0000755000000000000000000004162314273615074013563 00000000000000#!/bin/sh -e # gendocs.sh -- generate a GNU manual in many formats. This script is # mentioned in maintain.texi. See the help message below for usage details. scriptversion=2022-01-01.00 # Copyright 2003-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Original author: Mohit Agarwal. # Send bug reports and any other correspondence to bug-gnulib@gnu.org. # # The latest version of this script, and the companion template, is # available from the Gnulib repository: # # https://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/gendocs.sh # https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/gendocs_template # TODO: # - image importing was only implemented for HTML generated by # makeinfo. But it should be simple enough to adjust. # - images are not imported in the source tarball. All the needed # formats (PDF, PNG, etc.) should be included. prog=`basename "$0"` srcdir=`pwd` scripturl="https://git.savannah.gnu.org/cgit/gnulib.git/plain/build-aux/gendocs.sh" templateurl="https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/gendocs_template" : "${SETLANG="env LANG= LC_MESSAGES= LC_ALL= LANGUAGE="}" : "${MAKEINFO="makeinfo"}" : "${TEXI2DVI="texi2dvi"}" : "${DOCBOOK2HTML="docbook2html"}" : "${DOCBOOK2PDF="docbook2pdf"}" : "${DOCBOOK2TXT="docbook2txt"}" : "${GENDOCS_TEMPLATE_DIR="."}" : "${PERL="perl"}" : "${TEXI2HTML="texi2html"}" unset CDPATH unset use_texi2html MANUAL_TITLE= PACKAGE= EMAIL=webmasters@gnu.org # please override with --email commonarg= # passed to all makeinfo/texi2html invcations. dirargs= # passed to all tools (-I dir). dirs= # -I directories. htmlarg="--css-ref=https://www.gnu.org/software/gnulib/manual.css -c TOP_NODE_UP_URL=/manual" default_htmlarg=true infoarg=--no-split generate_ascii=true generate_html=true generate_info=true generate_tex=true outdir=manual source_extra= split=node srcfile= texarg="-t @finalout" version="gendocs.sh $scriptversion Copyright 2022 Free Software Foundation, Inc. There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING." usage="Usage: $prog [OPTION]... PACKAGE MANUAL-TITLE Generate output in various formats from PACKAGE.texinfo (or .texi or .txi) source. See the GNU Maintainers document for a more extensive discussion: https://www.gnu.org/prep/maintain_toc.html Options: --email ADR use ADR as contact in generated web pages; always give this. -s SRCFILE read Texinfo from SRCFILE, instead of PACKAGE.{texinfo|texi|txi} -o OUTDIR write files into OUTDIR, instead of manual/. -I DIR append DIR to the Texinfo search path. --common ARG pass ARG in all invocations. --html ARG pass ARG to makeinfo or texi2html for HTML targets, instead of '$htmlarg'. --info ARG pass ARG to makeinfo for Info, instead of --no-split. --no-ascii skip generating the plain text output. --no-html skip generating the html output. --no-info skip generating the info output. --no-tex skip generating the dvi and pdf output. --source ARG include ARG in tar archive of sources. --split HOW make split HTML by node, section, chapter; default node. --tex ARG pass ARG to texi2dvi for DVI and PDF, instead of -t @finalout. --texi2html use texi2html to make HTML target, with all split versions. --docbook convert through DocBook too (xml, txt, html, pdf). --help display this help and exit successfully. --version display version information and exit successfully. Simple example: $prog --email bug-gnu-emacs@gnu.org emacs \"GNU Emacs Manual\" Typical sequence: cd PACKAGESOURCE/doc wget \"$scripturl\" wget \"$templateurl\" $prog --email BUGLIST MANUAL \"GNU MANUAL - One-line description\" Output will be in a new subdirectory \"manual\" (by default; use -o OUTDIR to override). Move all the new files into your web CVS tree, as explained in the Web Pages node of maintain.texi. Please use the --email ADDRESS option so your own bug-reporting address will be used in the generated HTML pages. MANUAL-TITLE is included as part of the HTML of the overall manual/index.html file. It should include the name of the package being documented. manual/index.html is created by substitution from the file $GENDOCS_TEMPLATE_DIR/gendocs_template. (Feel free to modify the generic template for your own purposes.) If you have several manuals, you'll need to run this script several times with different MANUAL values, specifying a different output directory with -o each time. Then write (by hand) an overall index.html with links to them all. If a manual's Texinfo sources are spread across several directories, first copy or symlink all Texinfo sources into a single directory. (Part of the script's work is to make a tar.gz of the sources.) As implied above, by default monolithic Info files are generated. If you want split Info, or other Info options, use --info to override. You can set the environment variables MAKEINFO, TEXI2DVI, TEXI2HTML, and PERL to control the programs that get executed, and GENDOCS_TEMPLATE_DIR to control where the gendocs_template file is looked for. With --docbook, the environment variables DOCBOOK2HTML, DOCBOOK2PDF, and DOCBOOK2TXT are also consulted. By default, makeinfo and texi2dvi are run in the default (English) locale, since that's the language of most Texinfo manuals. If you happen to have a non-English manual and non-English web site, see the SETLANG setting in the source. Email bug reports or enhancement requests to bug-gnulib@gnu.org. " while test $# -gt 0; do case $1 in -s) shift; srcfile=$1;; -o) shift; outdir=$1;; -I) shift; dirargs="$dirargs -I '$1'"; dirs="$dirs $1";; --common) shift; commonarg=$1;; --docbook) docbook=yes;; --email) shift; EMAIL=$1;; --html) shift; default_htmlarg=false; htmlarg=$1;; --info) shift; infoarg=$1;; --no-ascii) generate_ascii=false;; --no-html) generate_ascii=false;; --no-info) generate_info=false;; --no-tex) generate_tex=false;; --source) shift; source_extra=$1;; --split) shift; split=$1;; --tex) shift; texarg=$1;; --texi2html) use_texi2html=1;; --help) echo "$usage"; exit 0;; --version) echo "$version"; exit 0;; -*) echo "$0: Unknown option \`$1'." >&2 echo "$0: Try \`--help' for more information." >&2 exit 1;; *) if test -z "$PACKAGE"; then PACKAGE=$1 elif test -z "$MANUAL_TITLE"; then MANUAL_TITLE=$1 else echo "$0: extra non-option argument \`$1'." >&2 exit 1 fi;; esac shift done # makeinfo uses the dirargs, but texi2dvi doesn't. commonarg=" $dirargs $commonarg" # For most of the following, the base name is just $PACKAGE base=$PACKAGE if $default_htmlarg && test -n "$use_texi2html"; then # The legacy texi2html doesn't support TOP_NODE_UP_URL htmlarg="--css-ref=https://www.gnu.org/software/gnulib/manual.css" fi if test -n "$srcfile"; then # but here, we use the basename of $srcfile base=`basename "$srcfile"` case $base in *.txi|*.texi|*.texinfo) base=`echo "$base"|sed 's/\.[texinfo]*$//'`;; esac PACKAGE=$base elif test -s "$srcdir/$PACKAGE.texinfo"; then srcfile=$srcdir/$PACKAGE.texinfo elif test -s "$srcdir/$PACKAGE.texi"; then srcfile=$srcdir/$PACKAGE.texi elif test -s "$srcdir/$PACKAGE.txi"; then srcfile=$srcdir/$PACKAGE.txi else echo "$0: cannot find .texinfo or .texi or .txi for $PACKAGE in $srcdir." >&2 exit 1 fi if test ! -r $GENDOCS_TEMPLATE_DIR/gendocs_template; then echo "$0: cannot read $GENDOCS_TEMPLATE_DIR/gendocs_template." >&2 echo "$0: it is available from $templateurl." >&2 exit 1 fi # Function to return size of $1 in something resembling kilobytes. calcsize() { size=`ls -ksl $1 | awk '{print $1}'` echo $size } # copy_images OUTDIR HTML-FILE... # ------------------------------- # Copy all the images needed by the HTML-FILEs into OUTDIR. # Look for them in . and the -I directories; this is simpler than what # makeinfo supports with -I, but hopefully it will suffice. copy_images() { local odir odir=$1 shift $PERL -n -e " BEGIN { \$me = '$prog'; \$odir = '$odir'; @dirs = qw(. $dirs); } " -e ' /<img src="(.*?)"/g && ++$need{$1}; END { #print "$me: @{[keys %need]}\n"; # for debugging, show images found. FILE: for my $f (keys %need) { for my $d (@dirs) { if (-f "$d/$f") { use File::Basename; my $dest = dirname ("$odir/$f"); # use File::Path; -d $dest || mkpath ($dest) || die "$me: cannot mkdir $dest: $!\n"; # use File::Copy; copy ("$d/$f", $dest) || die "$me: cannot copy $d/$f to $dest: $!\n"; next FILE; } } die "$me: $ARGV: cannot find image $f\n"; } } ' -- "$@" || exit 1 } case $outdir in /*) abs_outdir=$outdir;; *) abs_outdir=$srcdir/$outdir;; esac echo "Making output for $srcfile" echo " in `pwd`" mkdir -p "$outdir/" # if $generate_info; then cmd="$SETLANG $MAKEINFO -o $PACKAGE.info $commonarg $infoarg \"$srcfile\"" echo "Generating info... ($cmd)" rm -f $PACKAGE.info* # get rid of any strays eval "$cmd" tar czf "$outdir/$PACKAGE.info.tar.gz" $PACKAGE.info* ls -l "$outdir/$PACKAGE.info.tar.gz" info_tgz_size=`calcsize "$outdir/$PACKAGE.info.tar.gz"` # do not mv the info files, there's no point in having them available # separately on the web. fi # end info # if $generate_tex; then cmd="$SETLANG $TEXI2DVI $dirargs $texarg \"$srcfile\"" printf "\nGenerating dvi... (%s)\n" "$cmd" eval "$cmd" # compress/finish dvi: gzip -f -9 $PACKAGE.dvi dvi_gz_size=`calcsize $PACKAGE.dvi.gz` mv $PACKAGE.dvi.gz "$outdir/" ls -l "$outdir/$PACKAGE.dvi.gz" cmd="$SETLANG $TEXI2DVI --pdf $dirargs $texarg \"$srcfile\"" printf "\nGenerating pdf... (%s)\n" "$cmd" eval "$cmd" pdf_size=`calcsize $PACKAGE.pdf` mv $PACKAGE.pdf "$outdir/" ls -l "$outdir/$PACKAGE.pdf" fi # end tex (dvi + pdf) # if $generate_ascii; then opt="-o $PACKAGE.txt --no-split --no-headers $commonarg" cmd="$SETLANG $MAKEINFO $opt \"$srcfile\"" printf "\nGenerating ascii... (%s)\n" "$cmd" eval "$cmd" ascii_size=`calcsize $PACKAGE.txt` gzip -f -9 -c $PACKAGE.txt >"$outdir/$PACKAGE.txt.gz" ascii_gz_size=`calcsize "$outdir/$PACKAGE.txt.gz"` mv $PACKAGE.txt "$outdir/" ls -l "$outdir/$PACKAGE.txt" "$outdir/$PACKAGE.txt.gz" fi # if $generate_html; then # Split HTML at level $1. Used for texi2html. html_split() { opt="--split=$1 --node-files $commonarg $htmlarg" cmd="$SETLANG $TEXI2HTML --output $PACKAGE.html $opt \"$srcfile\"" printf "\nGenerating html by %s... (%s)\n" "$1" "$cmd" eval "$cmd" split_html_dir=$PACKAGE.html ( cd ${split_html_dir} || exit 1 ln -sf ${PACKAGE}.html index.html tar -czf "$abs_outdir/${PACKAGE}.html_$1.tar.gz" -- *.html ) eval html_$1_tgz_size=`calcsize "$outdir/${PACKAGE}.html_$1.tar.gz"` rm -f "$outdir"/html_$1/*.html mkdir -p "$outdir/html_$1/" mv ${split_html_dir}/*.html "$outdir/html_$1/" rmdir ${split_html_dir} } if test -z "$use_texi2html"; then opt="--no-split --html -o $PACKAGE.html $commonarg $htmlarg" cmd="$SETLANG $MAKEINFO $opt \"$srcfile\"" printf "\nGenerating monolithic html... (%s)\n" "$cmd" rm -rf $PACKAGE.html # in case a directory is left over eval "$cmd" html_mono_size=`calcsize $PACKAGE.html` gzip -f -9 -c $PACKAGE.html >"$outdir/$PACKAGE.html.gz" html_mono_gz_size=`calcsize "$outdir/$PACKAGE.html.gz"` copy_images "$outdir/" $PACKAGE.html mv $PACKAGE.html "$outdir/" ls -l "$outdir/$PACKAGE.html" "$outdir/$PACKAGE.html.gz" # Before Texinfo 5.0, makeinfo did not accept a --split=HOW option, # it just always split by node. So if we're splitting by node anyway, # leave it out. if test "x$split" = xnode; then split_arg= else split_arg=--split=$split fi # opt="--html -o $PACKAGE.html $split_arg $commonarg $htmlarg" cmd="$SETLANG $MAKEINFO $opt \"$srcfile\"" printf "\nGenerating html by %s... (%s)\n" "$split" "$cmd" eval "$cmd" split_html_dir=$PACKAGE.html copy_images $split_html_dir/ $split_html_dir/*.html ( cd $split_html_dir || exit 1 tar -czf "$abs_outdir/$PACKAGE.html_$split.tar.gz" -- * ) eval \ html_${split}_tgz_size=`calcsize "$outdir/$PACKAGE.html_$split.tar.gz"` rm -rf "$outdir/html_$split/" mv $split_html_dir "$outdir/html_$split/" du -s "$outdir/html_$split/" ls -l "$outdir/$PACKAGE.html_$split.tar.gz" else # use texi2html: opt="--output $PACKAGE.html $commonarg $htmlarg" cmd="$SETLANG $TEXI2HTML $opt \"$srcfile\"" printf "\nGenerating monolithic html with texi2html... (%s)\n" "$cmd" rm -rf $PACKAGE.html # in case a directory is left over eval "$cmd" html_mono_size=`calcsize $PACKAGE.html` gzip -f -9 -c $PACKAGE.html >"$outdir/$PACKAGE.html.gz" html_mono_gz_size=`calcsize "$outdir/$PACKAGE.html.gz"` mv $PACKAGE.html "$outdir/" html_split node html_split chapter html_split section fi fi # end html # printf "\nMaking .tar.gz for sources...\n" d=`dirname $srcfile` ( cd "$d" srcfiles=`ls -d *.texinfo *.texi *.txi *.eps $source_extra 2>/dev/null` || true tar czfh "$abs_outdir/$PACKAGE.texi.tar.gz" $srcfiles ls -l "$abs_outdir/$PACKAGE.texi.tar.gz" ) texi_tgz_size=`calcsize "$outdir/$PACKAGE.texi.tar.gz"` # # Do everything again through docbook. if test -n "$docbook"; then opt="-o - --docbook $commonarg" cmd="$SETLANG $MAKEINFO $opt \"$srcfile\" >${srcdir}/$PACKAGE-db.xml" printf "\nGenerating docbook XML... (%s)\n" "$cmd" eval "$cmd" docbook_xml_size=`calcsize $PACKAGE-db.xml` gzip -f -9 -c $PACKAGE-db.xml >"$outdir/$PACKAGE-db.xml.gz" docbook_xml_gz_size=`calcsize "$outdir/$PACKAGE-db.xml.gz"` mv $PACKAGE-db.xml "$outdir/" split_html_db_dir=html_node_db opt="$commonarg -o $split_html_db_dir" cmd="$DOCBOOK2HTML $opt \"${outdir}/$PACKAGE-db.xml\"" printf "\nGenerating docbook HTML... (%s)\n" "$cmd" eval "$cmd" ( cd ${split_html_db_dir} || exit 1 tar -czf "$abs_outdir/${PACKAGE}.html_node_db.tar.gz" -- *.html ) html_node_db_tgz_size=`calcsize "$outdir/${PACKAGE}.html_node_db.tar.gz"` rm -f "$outdir"/html_node_db/*.html mkdir -p "$outdir/html_node_db" mv ${split_html_db_dir}/*.html "$outdir/html_node_db/" rmdir ${split_html_db_dir} cmd="$DOCBOOK2TXT \"${outdir}/$PACKAGE-db.xml\"" printf "\nGenerating docbook ASCII... (%s)\n" "$cmd" eval "$cmd" docbook_ascii_size=`calcsize $PACKAGE-db.txt` mv $PACKAGE-db.txt "$outdir/" cmd="$DOCBOOK2PDF \"${outdir}/$PACKAGE-db.xml\"" printf "\nGenerating docbook PDF... (%s)\n" "$cmd" eval "$cmd" docbook_pdf_size=`calcsize $PACKAGE-db.pdf` mv $PACKAGE-db.pdf "$outdir/" fi # printf "\nMaking index.html for %s...\n" "$PACKAGE" if test -z "$use_texi2html"; then CONDS="/%%IF *HTML_SECTION%%/,/%%ENDIF *HTML_SECTION%%/d;\ /%%IF *HTML_CHAPTER%%/,/%%ENDIF *HTML_CHAPTER%%/d" else # should take account of --split here. CONDS="/%%ENDIF.*%%/d;/%%IF *HTML_SECTION%%/d;/%%IF *HTML_CHAPTER%%/d" fi curdate=`$SETLANG date '+%B %d, %Y'` sed \ -e "s!%%TITLE%%!$MANUAL_TITLE!g" \ -e "s!%%EMAIL%%!$EMAIL!g" \ -e "s!%%PACKAGE%%!$PACKAGE!g" \ -e "s!%%DATE%%!$curdate!g" \ -e "s!%%HTML_MONO_SIZE%%!$html_mono_size!g" \ -e "s!%%HTML_MONO_GZ_SIZE%%!$html_mono_gz_size!g" \ -e "s!%%HTML_NODE_TGZ_SIZE%%!$html_node_tgz_size!g" \ -e "s!%%HTML_SECTION_TGZ_SIZE%%!$html_section_tgz_size!g" \ -e "s!%%HTML_CHAPTER_TGZ_SIZE%%!$html_chapter_tgz_size!g" \ -e "s!%%INFO_TGZ_SIZE%%!$info_tgz_size!g" \ -e "s!%%DVI_GZ_SIZE%%!$dvi_gz_size!g" \ -e "s!%%PDF_SIZE%%!$pdf_size!g" \ -e "s!%%ASCII_SIZE%%!$ascii_size!g" \ -e "s!%%ASCII_GZ_SIZE%%!$ascii_gz_size!g" \ -e "s!%%TEXI_TGZ_SIZE%%!$texi_tgz_size!g" \ -e "s!%%DOCBOOK_HTML_NODE_TGZ_SIZE%%!$html_node_db_tgz_size!g" \ -e "s!%%DOCBOOK_ASCII_SIZE%%!$docbook_ascii_size!g" \ -e "s!%%DOCBOOK_PDF_SIZE%%!$docbook_pdf_size!g" \ -e "s!%%DOCBOOK_XML_SIZE%%!$docbook_xml_size!g" \ -e "s!%%DOCBOOK_XML_GZ_SIZE%%!$docbook_xml_gz_size!g" \ -e "s,%%SCRIPTURL%%,$scripturl,g" \ -e "s!%%SCRIPTNAME%%!$prog!g" \ -e "$CONDS" \ $GENDOCS_TEMPLATE_DIR/gendocs_template >"$outdir/index.html" echo "Done, see $outdir/ subdirectory for new files." # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: �������������������������������������������������������������������������������������������������������������shishi-1.0.3/build-aux/useless-if-before-free�������������������������������������������������������0000755�0000000�0000000�00000017016�14273615074�015765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh #! -*-perl-*- # Detect instances of "if (p) free (p);". # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces. # Copyright (C) 2008-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # # Written by Jim Meyering # This is a prologue that allows to run a perl script as an executable # on systems that are compliant to a POSIX version before POSIX:2017. # On such systems, the usual invocation of an executable through execlp() # or execvp() fails with ENOEXEC if it is a script that does not start # with a #! line. The script interpreter mentioned in the #! line has # to be /bin/sh, because on GuixSD systems that is the only program that # has a fixed file name. The second line is essential for perl and is # also useful for editing this file in Emacs. The next two lines below # are valid code in both sh and perl. When executed by sh, they re-execute # the script through the perl program found in $PATH. The '-x' option # is essential as well; without it, perl would re-execute the script # through /bin/sh. When executed by perl, the next two lines are a no-op. eval 'exec perl -wSx "$0" "$@"' if 0; my $VERSION = '2022-01-27 18:51'; # UTC # The definition above must lie within the first 8 lines in order # for the Emacs time-stamp write hook (at end) to update it. # If you change this file with Emacs, please let the write hook # do its job. Otherwise, update this string manually. my $copyright_year = '2022'; use strict; use warnings; use Getopt::Long; (my $ME = $0) =~ s|.*/||; # use File::Coda; # https://meyering.net/code/Coda/ END { defined fileno STDOUT or return; close STDOUT and return; warn "$ME: failed to close standard output: $!\n"; $? ||= 1; } sub usage ($) { my ($exit_code) = @_; my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR); if ($exit_code != 0) { print $STREAM "Try '$ME --help' for more information.\n"; } else { print $STREAM <<EOF; Usage: $ME [OPTIONS] FILE... Detect any instance in FILE of a useless "if" test before a free call, e.g., "if (p) free (p);". Any such test may be safely removed without affecting the semantics of the C code in FILE. Use --name=FOO --name=BAR to also detect free-like functions named FOO and BAR. OPTIONS: --list print only the name of each matching FILE (\\0-terminated) --name=N add name N to the list of \'free\'-like functions to detect; may be repeated --help display this help and exit --version output version information and exit Exit status: 0 one or more matches 1 no match 2 an error EXAMPLE: For example, this command prints all removable "if" tests before "free" and "kfree" calls in the linux kernel sources: git ls-files -z |xargs -0 $ME --name=kfree EOF } exit $exit_code; } sub is_NULL ($) { my ($expr) = @_; return ($expr eq 'NULL' || $expr eq '0'); } { sub EXIT_MATCH {0} sub EXIT_NO_MATCH {1} sub EXIT_ERROR {2} my $err = EXIT_NO_MATCH; my $list; my @name = qw(free); GetOptions ( help => sub { usage 0 }, version => sub { print "$ME version $VERSION\n"; print "Copyright (C) $copyright_year Free Software Foundation, Inc.\n"; print "License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.\n" . "This is free software: you are free to change and redistribute it.\n" . "There is NO WARRANTY, to the extent permitted by law.\n"; print "\n"; my $author = "Jim Meyering"; print "Written by $author.\n"; exit }, list => \$list, 'name=s@' => \@name, ) or usage 1; # Make sure we have the right number of non-option arguments. # Always tell the user why we fail. @ARGV < 1 and (warn "$ME: missing FILE argument\n"), usage EXIT_ERROR; my $or = join '|', @name; my $regexp = qr/(?:$or)/; # Set the input record separator. # Note: this makes it impractical to print line numbers. $/ = '"'; my $found_match = 0; FILE: foreach my $file (@ARGV) { open FH, '<', $file or (warn "$ME: can't open '$file' for reading: $!\n"), $err = EXIT_ERROR, next; while (defined (my $line = <FH>)) { # Skip non-matching lines early to save time $line =~ /\bif\b/ or next; while ($line =~ /\b(if\s*\(\s*([^)]+?)(?:\s*!=\s*([^)]+?))?\s*\) # 1 2 3 (?: \s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;| \s*\{\s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;\s*\}))/sxg) { my $all = $1; my ($lhs, $rhs) = ($2, $3); my ($free_opnd, $braced_free_opnd) = ($4, $5); my $non_NULL; if (!defined $rhs) { $non_NULL = $lhs } elsif (is_NULL $rhs) { $non_NULL = $lhs } elsif (is_NULL $lhs) { $non_NULL = $rhs } else { next } # Compare the non-NULL part of the "if" expression and the # free'd expression, without regard to white space. $non_NULL =~ tr/ \t//d; my $e2 = defined $free_opnd ? $free_opnd : $braced_free_opnd; $e2 =~ tr/ \t//d; if ($non_NULL eq $e2) { $found_match = 1; $list and (print "$file\0"), next FILE; print "$file: $all\n"; } } } } continue { close FH; } $found_match && $err == EXIT_NO_MATCH and $err = EXIT_MATCH; exit $err; } my $foo = <<'EOF'; # The above is to *find* them. # This adjusts them, removing the unnecessary "if (p)" part. # FIXME: do something like this as an option (doesn't do braces): free=xfree git grep -l -z "$free *(" \ | xargs -0 useless-if-before-free -l --name="$free" \ | xargs -0 perl -0x3b -pi -e \ 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s+('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\)\s*;)/$2/s' # Use the following to remove redundant uses of kfree inside braces. # Note that -0777 puts perl in slurp-whole-file mode; # but we have plenty of memory, these days... free=kfree git grep -l -z "$free *(" \ | xargs -0 useless-if-before-free -l --name="$free" \ | xargs -0 perl -0777 -pi -e \ 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s*\{\s*('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\);)\s*\}[^\n]*$/$2/gms' Be careful that the result of the above transformation is valid. If the matched string is followed by "else", then obviously, it won't be. When modifying files, refuse to process anything other than a regular file. EOF ## Local Variables: ## mode: perl ## indent-tabs-mode: nil ## eval: (add-hook 'before-save-hook 'time-stamp) ## time-stamp-line-limit: 50 ## time-stamp-start: "my $VERSION = '" ## time-stamp-format: "%:y-%02m-%02d %02H:%02M" ## time-stamp-time-zone: "UTC0" ## time-stamp-end: "'; # UTC" ## End: ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/build-aux/config.guess�����������������������������������������������������������������0000755�0000000�0000000�00000141202�14273524057�014114� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-05-25' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to <config-patches@gnu.org>. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #include <features.h> #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #else #include <stdarg.h> /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include <sys/systemcfg.h> main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include <stdlib.h> #include <unistd.h> int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include <unistd.h> int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL elif /bin/uname -X 2>/dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says <Richard.M.Bartel@ccMail.Census.GOV> GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" <<EOF #ifdef _SEQUENT_ #include <sys/types.h> #include <sys/utsname.h> #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include <signal.h> #if defined(_SIZE_T_) || defined(SIGLOST) #include <sys/utsname.h> #endif #endif #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include <sys/param.h> printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include <sys/param.h> #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <<EOF NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize the system type. Please install a C compiler and try again. EOF ;; esac cat >&2 <<EOF This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: https://git.savannah.gnu.org/cgit/config.git/plain/config.guess and https://git.savannah.gnu.org/cgit/config.git/plain/config.sub EOF our_year=`echo $timestamp | sed 's,-.*,,'` thisyear=`date +%Y` # shellcheck disable=SC2003 script_age=`expr "$thisyear" - "$our_year"` if test "$script_age" -lt 3 ; then cat >&2 <<EOF If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@gnu.org to provide the necessary information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/build-aux/config.sub�������������������������������������������������������������������0000755�0000000�0000000�00000105116�14273524057�013563� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-01-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to <config-patches@gnu.org>. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright 1992-2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <<EOF $1 EOF IFS=$saved_IFS # Separate into logical components for further validation case $1 in *-*-*-*-*) echo Invalid configuration \`"$1"\': more than four components >&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) # A lone config we happen to match not fitting any pattern case $field1-$field2 in decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 basic_os=$field2 ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | convergent* | ncr* | news | 32* | 3600* | 3100* \ | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ultra | tti* | harris | dolphin | highlevel | gould \ | cbm | ns | masscomp | apple | axis | knuth | cray \ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 basic_os= ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; convex-c1) basic_machine=c1-convex basic_os=bsd ;; convex-c2) basic_machine=c2-convex basic_os=bsd ;; convex-c32) basic_machine=c32-convex basic_os=bsd ;; convex-c34) basic_machine=c34-convex basic_os=bsd ;; convex-c38) basic_machine=c38-convex basic_os=bsd ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) cpu=m68k vendor=motorola ;; dpx2*) cpu=m68k vendor=bull basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next case $basic_os in openstep*) ;; nextstep*) ;; ns2*) basic_os=nextstep2 ;; *) basic_os=nextstep3 ;; esac ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <<EOF $basic_machine EOF IFS=$saved_IFS ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) cpu=$basic_machine vendor=pc ;; # These rules are duplicated from below for sake of the special case above; # i.e. things that normalized to x86 arches should also default to "pc" pc98) cpu=i386 vendor=pc ;; x64 | amd64) cpu=x86_64 vendor=pc ;; # Recognize the basic CPU types without company name. *) cpu=$basic_machine vendor=unknown ;; esac unset -v basic_machine # Decode basic machines in the full and proper CPU-Company form. case $cpu-$vendor in # Here we handle the default manufacturer of certain CPU types in canonical form. It is in # some cases the only manufacturer, in others, it is the most popular. craynv-unknown) vendor=cray basic_os=${basic_os:-unicosmp} ;; c90-unknown | c90-cray) vendor=cray basic_os=${Basic_os:-unicos} ;; fx80-unknown) vendor=alliant ;; romp-unknown) vendor=ibm ;; mmix-unknown) vendor=knuth ;; microblaze-unknown | microblazeel-unknown) vendor=xilinx ;; rs6000-unknown) vendor=ibm ;; vax-unknown) vendor=dec ;; pdp11-unknown) vendor=dec ;; we32k-unknown) vendor=att ;; cydra-unknown) vendor=cydrome ;; i370-ibm*) vendor=ibm ;; orion-unknown) vendor=highlevel ;; xps-unknown | xps100-unknown) cpu=xps100 vendor=honeywell ;; # Here we normalize CPU types with a missing or matching vendor armh-unknown | armh-alt) cpu=armv7l vendor=alt basic_os=${basic_os:-linux-gnueabihf} ;; dpx20-unknown | dpx20-bull) cpu=rs6000 vendor=bull basic_os=${basic_os:-bosx} ;; # Here we normalize CPU types irrespective of the vendor amd64-*) cpu=x86_64 ;; blackfin-*) cpu=bfin basic_os=linux ;; c54x-*) cpu=tic54x ;; c55x-*) cpu=tic55x ;; c6x-*) cpu=tic6x ;; e500v[12]-*) cpu=powerpc basic_os=${basic_os}"spe" ;; mips3*-*) cpu=mips64 ;; ms1-*) cpu=mt ;; m68knommu-*) cpu=m68k basic_os=linux ;; m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) cpu=s12z ;; openrisc-*) cpu=or32 ;; parisc-*) cpu=hppa basic_os=linux ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 ;; pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) cpu=i686 ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) cpu=i686 ;; pentium4-*) cpu=i786 ;; pc98-*) cpu=i386 ;; ppc-* | ppcbe-*) cpu=powerpc ;; ppcle-* | powerpclittle-*) cpu=powerpcle ;; ppc64-*) cpu=powerpc64 ;; ppc64le-* | powerpc64little-*) cpu=powerpc64le ;; sb1-*) cpu=mipsisa64sb1 ;; sb1el-*) cpu=mipsisa64sb1el ;; sh5e[lb]-*) cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` ;; spur-*) cpu=spur ;; strongarm-* | thumb-*) cpu=arm ;; tx39-*) cpu=mipstx39 ;; tx39el-*) cpu=mipstx39el ;; x64-*) cpu=x86_64 ;; xscale-* | xscalee[bl]-*) cpu=`echo "$cpu" | sed 's/^xscale/arm/'` ;; arm64-* | aarch64le-*) cpu=aarch64 ;; # Recognize the canonical CPU Types that limit and/or modify the # company names they are paired with. cr16-*) basic_os=${basic_os:-elf} ;; crisv32-* | etraxfs*-*) cpu=crisv32 vendor=axis ;; cris-* | etrax*-*) cpu=cris vendor=axis ;; crx-*) basic_os=${basic_os:-elf} ;; neo-tandem) cpu=neo vendor=tandem ;; nse-tandem) cpu=nse vendor=tandem ;; nsr-tandem) cpu=nsr vendor=tandem ;; nsv-tandem) cpu=nsv vendor=tandem ;; nsx-tandem) cpu=nsx vendor=tandem ;; mipsallegrexel-sony) cpu=mipsallegrexel vendor=sony ;; tile*-*) basic_os=${basic_os:-linux-gnu} ;; *) # Recognize the canonical CPU types that are allowed with any # company name. case $cpu in 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | abacus \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | alphapca5[67] | alpha64pca5[67] \ | am33_2.0 \ | amdgcn \ | arc | arceb | arc32 | arc64 \ | arm | arm[lb]e | arme[lb] | armv* \ | avr | avr32 \ | asmjs \ | ba \ | be32 | be64 \ | bfin | bpf | bs2000 \ | c[123]* | c30 | [cjt]90 | c4x \ | c8051 | clipper | craynv | csky | cydra \ | d10v | d30v | dlx | dsp16xx \ | e2k | elxsi | epiphany \ | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ | h8300 | h8500 \ | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | loongarch32 | loongarch64 | loongarchx32 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ | m88110 | m88k | maxq | mb | mcore | mep | metag \ | microblaze | microblazeel \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64eb | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r3 | mipsisa32r3el \ | mipsisa32r5 | mipsisa32r5el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r3 | mipsisa64r3el \ | mipsisa64r5 | mipsisa64r5el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mmix \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nfp \ | nios | nios2 | nios2eb | nios2el \ | none | np1 | ns16k | ns32k | nvptx \ | open8 \ | or1k* \ | or32 \ | orion \ | picochip \ | pdp10 | pdp11 | pj | pjl | pn | power \ | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | pru \ | pyramid \ | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | rl78 | romp | rs6000 | rx \ | s390 | s390x \ | score \ | sh | shl \ | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \ | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | spu \ | tahoe \ | thumbv7* \ | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | tron \ | ubicom32 \ | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \ | vax \ | visium \ | w65 \ | wasm32 | wasm64 \ | we32k \ | x86 | x86_64 | xc16x | xgate | xps100 \ | xstormy16 | xtensa* \ | ymp \ | z8k | z80) ;; *) echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x$basic_os != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <<EOF $basic_os EOF IFS=$saved_IFS ;; # Default OS when just kernel was specified nto*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto|qnx|'` ;; linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|linux|gnu|'` ;; *) kernel= os=$basic_os ;; esac # Now, normalize the OS (knowing we just have one component, it's not a kernel, # etc.) case $os in # First match some system type aliases that might get confused # with valid system types. # solaris* is a basic system type, with this one exception. auroraux) os=auroraux ;; bluegene*) os=cnk ;; solaris1 | solaris1.*) os=`echo "$os" | sed -e 's|solaris1|sunos4|'` ;; solaris) os=solaris2 ;; unixware*) os=sysv4.2uw ;; # es1800 is here to avoid being matched by es* (a different OS) es1800*) os=ose ;; # Some version numbers need modification chorusos*) os=chorusos ;; isc) os=isc2.2 ;; sco6) os=sco5v6 ;; sco5) os=sco3.2v5 ;; sco4) os=sco3.2v4 ;; sco3.2.[4-9]*) os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'` ;; sco*v* | scout) # Don't match below ;; sco*) os=sco3.2v2 ;; psos*) os=psos ;; qnx*) os=qnx ;; hiux*) os=hiuxwe2 ;; lynx*178) os=lynxos178 ;; lynx*5) os=lynxos5 ;; lynxos*) # don't get caught up in next wildcard ;; lynx*) os=lynxos ;; mac[0-9]*) os=`echo "$os" | sed -e 's|mac|macos|'` ;; opened*) os=openedition ;; os400*) os=os400 ;; sunos5*) os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; sunos6*) os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; wince*) os=wince ;; utek*) os=bsd ;; dynix*) os=bsd ;; acis*) os=aos ;; atheos*) os=atheos ;; syllable*) os=syllable ;; 386bsd) os=bsd ;; ctix* | uts*) os=sysv ;; nova*) os=rtmk-nova ;; ns2) os=nextstep2 ;; # Preserve the version number of sinix5. sinix5.*) os=`echo "$os" | sed -e 's|sinix|sysv|'` ;; sinix*) os=sysv4 ;; tpf*) os=tpf ;; triton*) os=sysv3 ;; oss*) os=sysv3 ;; svr4*) os=sysv4 ;; svr3) os=sysv3 ;; sysvr4) os=sysv4 ;; ose*) os=ose ;; *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) os=mint ;; dicos*) os=dicos ;; pikeos*) # Until real need of OS specific support for # particular features comes up, bare metal # configurations are quite functional. case $cpu in arm*) os=eabi ;; *) os=elf ;; esac ;; *) # No normalization, but not necessarily accepted, that comes below. ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. kernel= case $cpu-$vendor in score-*) os=elf ;; spu-*) os=elf ;; *-acorn) os=riscix1.2 ;; arm*-rebel) kernel=linux os=gnu ;; arm*-semi) os=aout ;; c4x-* | tic4x-*) os=coff ;; c8051-*) os=elf ;; clipper-intergraph) os=clix ;; hexagon-*) os=elf ;; tic54x-*) os=coff ;; tic55x-*) os=coff ;; tic6x-*) os=coff ;; # This must come before the *-dec entry. pdp10-*) os=tops20 ;; pdp11-*) os=none ;; *-dec | vax-*) os=ultrix4.2 ;; m68*-apollo) os=domain ;; i386-sun) os=sunos4.0.2 ;; m68000-sun) os=sunos3 ;; m68*-cisco) os=aout ;; mep-*) os=elf ;; mips*-cisco) os=elf ;; mips*-*) os=elf ;; or32-*) os=coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=sysv3 ;; sparc-* | *-sun) os=sunos4.1.1 ;; pru-*) os=elf ;; *-be) os=beos ;; *-ibm) os=aix ;; *-knuth) os=mmixware ;; *-wec) os=proelf ;; *-winbond) os=proelf ;; *-oki) os=proelf ;; *-hp) os=hpux ;; *-hitachi) os=hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=sysv ;; *-cbm) os=amigaos ;; *-dg) os=dgux ;; *-dolphin) os=sysv3 ;; m68k-ccur) os=rtu ;; m88k-omron*) os=luna ;; *-next) os=nextstep ;; *-sequent) os=ptx ;; *-crds) os=unos ;; *-ns) os=genix ;; i370-*) os=mvs ;; *-gould) os=sysv ;; *-highlevel) os=bsd ;; *-encore) os=bsd ;; *-sgi) os=irix ;; *-siemens) os=sysv4 ;; *-masscomp) os=rtu ;; f30[01]-fujitsu | f700-fujitsu) os=uxpv ;; *-rom68k) os=coff ;; *-*bug) os=coff ;; *-apple) os=macos ;; *-atari*) os=mint ;; *-wrs) os=vxworks ;; *) os=none ;; esac fi # Now, validate our (potentially fixed-up) OS. case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) ;; # VxWorks passes extra cpu info in the 4th filed. simlinux | simwindows | spe) ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | hiux* | abug | nacl* | netware* | windows* \ | os9* | macos* | osx* | ios* \ | mpw* | magic* | mmixware* | mon960* | lnews* \ | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | aos* | aros* | cloudabi* | sortix* | twizzler* \ | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ | udi* | lites* | ieee* | go32* | aux* | hcos* \ | chorusrdb* | cegcc* | glidix* | serenity* \ | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ | midipix* | mingw32* | mingw64* | mint* \ | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | interix* | uwin* | mks* | rhapsody* | darwin* \ | openstep* | oskit* | conix* | pw32* | nonstopux* \ | storm-chaos* | tops10* | tenex* | tops20* | its* \ | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ | fiwix* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) # Don't forget version if it is 3.2v4 or newer. ;; none) ;; *) echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | linux-musl* | linux-relibc* | linux-uclibc* ) ;; uclinux-uclibc* ) ;; -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 exit 1 ;; kfreebsd*-gnu* | kopensolaris*-gnu*) ;; vxworks-simlinux | vxworks-simwindows | vxworks-spe) ;; nto-qnx*) ;; os2-emx) ;; *-eabi* | *-gnueabi*) ;; -*) # Blank kernel with real OS is always fine. ;; *-*) echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/build-aux/ylwrap�����������������������������������������������������������������������0000755�0000000�0000000�00000015314�14273615175�013046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # ylwrap - wrapper for lex/yacc invocations. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>. get_dirname () { case $1 in */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';; # Otherwise, we want the empty string (not "."). esac } # guard FILE # ---------- # The CPP macro used to guard inclusion of FILE. guard () { printf '%s\n' "$1" \ | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \ -e 's/__*/_/g' } # quote_for_sed [STRING] # ---------------------- # Return STRING (or stdin) quoted to be used as a sed pattern. quote_for_sed () { case $# in 0) cat;; 1) printf '%s\n' "$1";; esac \ | sed -e 's|[][\\.*]|\\&|g' } case "$1" in '') echo "$0: No files given. Try '$0 --help' for more information." 1>&2 exit 1 ;; --basedir) basedir=$2 shift 2 ;; -h|--h*) cat <<\EOF Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... Wrapper for lex/yacc invocations, renaming files as desired. INPUT is the input file OUTPUT is one file PROG generates DESIRED is the file we actually want instead of OUTPUT PROGRAM is program to run ARGS are passed to PROG Any number of OUTPUT,DESIRED pairs may be used. Report bugs to <bug-automake@gnu.org>. EOF exit $? ;; -v|--v*) echo "ylwrap $scriptversion" exit $? ;; esac # The input. input=$1 shift # We'll later need for a correct munging of "#line" directives. input_sub_rx=`get_dirname "$input" | quote_for_sed` case $input in [\\/]* | ?:[\\/]*) # Absolute path; do nothing. ;; *) # Relative path. Make it absolute. input=`pwd`/$input ;; esac input_rx=`get_dirname "$input" | quote_for_sed` # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c # and y_tab.h instead of y.tab.h. Test to see if this is the case. y_tab_nodot=false if test -f y_tab.c || test -f y_tab.h; then y_tab_nodot=true fi # The parser itself, the first file, is the destination of the .y.c # rule in the Makefile. parser=$1 # A sed program to s/FROM/TO/g for all the FROM/TO so that, for # instance, we rename #include "y.tab.h" into #include "parse.h" # during the conversion from y.tab.c to parse.c. sed_fix_filenames= # Also rename header guards, as Bison 2.7 for instance uses its header # guard in its implementation file. sed_fix_header_guards= while test $# -ne 0; do if test x"$1" = x"--"; then shift break fi from=$1 # Handle y_tab.c and y_tab.h output by DOS if $y_tab_nodot; then case $from in "y.tab.c") from=y_tab.c;; "y.tab.h") from=y_tab.h;; esac fi shift to=$1 shift sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;" sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;" done # The program to run. prog=$1 shift # Make any relative path in $prog absolute. case $prog in [\\/]* | ?:[\\/]*) ;; *[\\/]*) prog=`pwd`/$prog ;; esac dirname=ylwrap$$ do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 mkdir $dirname || exit 1 cd $dirname case $# in 0) "$prog" "$input" ;; *) "$prog" "$@" "$input" ;; esac ret=$? if test $ret -eq 0; then for from in * do to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"` if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend '../'. case $to in [\\/]* | ?:[\\/]*) target=$to;; *) target=../$to;; esac # Do not overwrite unchanged header files to avoid useless # recompilations. Always update the parser itself: it is the # destination of the .y.c rule in the Makefile. Divert the # output of all other files to a temporary file so we can # compare them to existing versions. if test $from != $parser; then realtarget=$target target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'` fi # Munge "#line" or "#" directives. Don't let the resulting # debug information point at an absolute srcdir. Use the real # output file name, not yy.lex.c for instance. Adjust the # include guards too. sed -e "/^#/!b" \ -e "s|$input_rx|$input_sub_rx|" \ -e "$sed_fix_filenames" \ -e "$sed_fix_header_guards" \ "$from" >"$target" || ret=$? # Check whether files must be updated. if test "$from" != "$parser"; then if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then echo "$to is unchanged" rm -f "$target" else echo "updating $to" mv -f "$target" "$realtarget" fi fi else # A missing file is only an error for the parser. This is a # blatant hack to let us support using "yacc -d". If -d is not # specified, don't fail when the header file is "missing". if test "$from" = "$parser"; then ret=1 fi fi done fi # Remove the directory. cd .. rm -rf $dirname exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/doc/�����������������������������������������������������������������������������������0000755�0000000�0000000�00000000000�14273616165�010531� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/doc/fdl-1.3.texi�����������������������������������������������������������������������0000644�0000000�0000000�00000055612�14273600463�012413� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������@c The GNU Free Documentation License. @center Version 1.3, 3 November 2008 @c This file is intended to be included within another document, @c hence no sectioning command or @node. @display Copyright @copyright{} 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. @uref{https://fsf.org/} Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. @end display @enumerate 0 @item PREAMBLE The purpose of this License is to make a manual, textbook, or other functional and useful document @dfn{free} in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of ``copyleft'', which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. @item APPLICABILITY AND DEFINITIONS This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The ``Document'', below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as ``you''. You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A ``Modified Version'' of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A ``Secondary Section'' is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The ``Invariant Sections'' are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The ``Cover Texts'' are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A ``Transparent'' copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not ``Transparent'' is called ``Opaque''. Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, La@TeX{} input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG@. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The ``Title Page'' means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, ``Title Page'' means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. The ``publisher'' means any person or entity that distributes copies of the Document to the public. A section ``Entitled XYZ'' means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as ``Acknowledgements'', ``Dedications'', ``Endorsements'', or ``History''.) To ``Preserve the Title'' of such a section when you modify the Document means that it remains a section ``Entitled XYZ'' according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. @item VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. @item COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. @item MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: @enumerate A @item Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. @item List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. @item State on the Title page the name of the publisher of the Modified Version, as the publisher. @item Preserve all the copyright notices of the Document. @item Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. @item Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. @item Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. @item Include an unaltered copy of this License. @item Preserve the section Entitled ``History'', Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled ``History'' in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. @item Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the ``History'' section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. @item For any section Entitled ``Acknowledgements'' or ``Dedications'', Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. @item Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. @item Delete any section Entitled ``Endorsements''. Such a section may not be included in the Modified Version. @item Do not retitle any existing section to be Entitled ``Endorsements'' or to conflict in title with any Invariant Section. @item Preserve any Warranty Disclaimers. @end enumerate If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section Entitled ``Endorsements'', provided it contains nothing but endorsements of your Modified Version by various parties---for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. @item COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled ``History'' in the various original documents, forming one section Entitled ``History''; likewise combine any sections Entitled ``Acknowledgements'', and any sections Entitled ``Dedications''. You must delete all sections Entitled ``Endorsements.'' @item COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. @item AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an ``aggregate'' if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. @item TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled ``Acknowledgements'', ``Dedications'', or ``History'', the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. @item TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. @item FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See @uref{https://www.gnu.org/licenses/}. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License ``or any later version'' applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. @item RELICENSING ``Massive Multiauthor Collaboration Site'' (or ``MMC Site'') means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A ``Massive Multiauthor Collaboration'' (or ``MMC'') contained in the site means any set of copyrightable works thus published on the MMC site. ``CC-BY-SA'' means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. ``Incorporate'' means to publish or republish a Document, in whole or in part, as part of another Document. An MMC is ``eligible for relicensing'' if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. @end enumerate @page @heading ADDENDUM: How to use this License for your documents To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: @smallexample @group Copyright (C) @var{year} @var{your name}. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. @end group @end smallexample If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the ``with@dots{}Texts.''@: line with this: @smallexample @group with the Invariant Sections being @var{list their titles}, with the Front-Cover Texts being @var{list}, and with the Back-Cover Texts being @var{list}. @end group @end smallexample If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software. @c Local Variables: @c ispell-local-pdict: "ispell-dict" @c End: ����������������������������������������������������������������������������������������������������������������������shishi-1.0.3/doc/shishi-api-error-labels.texi�������������������������������������������������������0000644�0000000�0000000�00000010421�14273615524�015765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������@item SHISHI_ASN1_ERROR Error in ASN.1 function. (corrupt data?) @item SHISHI_FOPEN_ERROR Could not open file. @item SHISHI_IO_ERROR File input/output error. @item SHISHI_MALLOC_ERROR Memory allocation error in shishi library. @item SHISHI_BASE64_ERROR Base64 encoding or decoding failed. Data corrupt? @item SHISHI_REALM_MISMATCH Client realm value differ between request and reply. @item SHISHI_CNAME_MISMATCH Client name value differ between request and reply. @item SHISHI_NONCE_MISMATCH Replay protection value (nonce) differ between request and reply. @item SHISHI_TGSREP_BAD_KEYTYPE Incorrect key type used in TGS reply. @item SHISHI_KDCREP_BAD_KEYTYPE Incorrect key type used in reply from KDC. @item SHISHI_APREP_BAD_KEYTYPE Incorrect key type used in AP reply. @item SHISHI_APREP_VERIFY_FAILED Failed verification of AP reply. @item SHISHI_APREQ_BAD_KEYTYPE Incorrect key type used in AP request. @item SHISHI_TOO_SMALL_BUFFER Provided buffer was too small. @item SHISHI_DERIVEDKEY_TOO_SMALL Derived key material is too short to be applicable. @item SHISHI_KEY_TOO_LARGE The key is too large to be usable. @item SHISHI_CRYPTO_ERROR Low-level cryptographic primitive failed. This usually indicates bad password or data corruption. @item SHISHI_CRYPTO_INTERNAL_ERROR Internal error in low-level crypto routines. @item SHISHI_SOCKET_ERROR The system call socket() failed. This usually indicates that your system does not support the socket type. @item SHISHI_BIND_ERROR The system call bind() failed. This usually indicates insufficient permissions. @item SHISHI_SENDTO_ERROR The system call sendto() failed. @item SHISHI_RECVFROM_ERROR Error receiving data from server. @item SHISHI_CLOSE_ERROR The system call close() failed. @item SHISHI_KDC_TIMEOUT Timed out talking to KDC. This usually indicates a network or KDC address problem. @item SHISHI_KDC_NOT_KNOWN_FOR_REALM No KDC known for given realm. @item SHISHI_TTY_ERROR No TTY assigned to process. @item SHISHI_GOT_KRBERROR Server replied to the request with an error message. @item SHISHI_HANDLE_ERROR Failure to use handle. Missing handle, or misconfigured. @item SHISHI_INVALID_TKTS Ticket set not initialized. This usually indicates an internal application error. @item SHISHI_TICKET_BAD_KEYTYPE Key type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error. @item SHISHI_INVALID_KEY Reference to invalid encryption key. @item SHISHI_APREQ_DECRYPT_FAILED Could not decrypt AP-REQ using provided key. This usually indicates an internal application error. @item SHISHI_TICKET_DECRYPT_FAILED Could not decrypt Ticket using provided key. This usually indicates an internal application error. @item SHISHI_INVALID_TICKET Invalid ticked passed in call. @item SHISHI_OUT_OF_RANGE Argument lies outside of valid range. @item SHISHI_ASN1_NO_ELEMENT The ASN.1 structure does not contain the indicated element. @item SHISHI_SAFE_BAD_KEYTYPE Attempted access to non-existent key type. @item SHISHI_SAFE_VERIFY_FAILED Verification failed on either side. @item SHISHI_PKCS5_INVALID_PRF Invalid PKCS5 descriptor. @item SHISHI_PKCS5_INVALID_ITERATION_COUNT Invalid claim of iteration count in PKCS5 descriptor. @item SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH Derived key length is incorrect for PKCS5 descriptor. @item SHISHI_PKCS5_DERIVED_KEY_TOO_LONG Derived key is too long for PKCS5 descriptor. @item SHISHI_INVALID_PRINCIPAL_NAME Principal name syntax error. @item SHISHI_INVALID_ARGUMENT Invalid argument passed in call. Wrong or unknown value. @item SHISHI_ASN1_NO_VALUE The indicated ASN.1 element does not carry a value. @item SHISHI_CONNECT_ERROR Connection attempt failed. Try again, or check availability. @item SHISHI_VERIFY_FAILED Verification failed on either side. @item SHISHI_PRIV_BAD_KEYTYPE The private key uses an incompatible encryption type. @item SHISHI_FILE_ERROR The desired file could not be accessed. Check permissions. @item SHISHI_ENCAPREPPART_BAD_KEYTYPE The present AP reply specifies an inpermissible key type. @item SHISHI_GETTIMEOFDAY_ERROR A request for present time of day has failed. This is usually internal, but a valid time is imperative for us. @item SHISHI_KEYTAB_ERROR Failed to parse keytab file. @item SHISHI_CCACHE_ERROR Failed to parse credential cache file. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������shishi-1.0.3/doc/gdoc�������������������������������������������������������������������������������0000755�0000000�0000000�00000113641�14273600463�011313� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������eval '(exit $?0)' && eval 'exec perl -S "$0" ${1+"$@"}' & eval 'exec perl -S "$0" $argv:q' if 0; # Generate documentation from source code. ## Copyright (c) 2002-2013 Simon Josefsson ## added -texinfo, -listfunc, -pkg-name ## man page revamp ## various improvements ## Copyright (c) 2001, 2002 Nikos Mavrogiannopoulos ## added -tex ## Copyright (c) 1998 Michael Zucchi # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # This will read a C source code file and scan for embedded comments # in the style of gnome comments (+minor extensions - see below). # usage: # gdoc [ -docbook | -html | -text | -man | -tex | -texinfo | -listfunc ] # [ -sourceversion verno ] [ -include file | -includefuncprefix ] # [ -bugsto address ] [ -pkg-name packagename ] # [ -seeinfo infonode ] [ -copyright notice ] [ -verbatimcopying ] # [ -function funcname [ -function funcname ...] ] c file(s)s > outputfile # # Set output format using one of -docbook, -html, -text, -man, -tex, # -texinfo, or -listfunc. Default is man. # # -sourceversion # Version number for source code, e.g. '1.0.4'. Used in 'man' headers. # Defaults to using current date. # # -include FILE # For man pages, mention #include <FILE.h> in the synopsis. # # -includefuncprefix # For man pages, mention a #include <FILE.h> in the synopsis. # The FILE derived from the function prefix. For example, a # function gss_init_sec_context will generate an include # statement of #include <gss.h>. # # -bugsto address # For man pages, include a section about reporting bugs and mention # the given e-mail address, e.g 'bug-libidn@gnu.org'. # # -pkg-name packagename # For man pages when -bugsto is used, also include help URLs to the # the project's home page. For example, "GNU Libidn". # # -seeinfo infonode # For man pages, include a section that point to an info manual # for more information. # # -copyright notice # For man pages, include a copyright section with the given # notice after a preamble. Use, e.g., '2002, 2003 Simon Josefsson'. # # -verbatimcopying # For man pages, and when the -copyright parameter is used, # add a licensing statement that say verbatim copying is permitted. # # -function funcname # If set, then only generate documentation for the given function(s). All # other functions are ignored. # # c files - list of 'c' files to process # # All output goes to stdout, with errors to stderr. # # format of comments. # In the following table, (...)? signifies optional structure. # (...)* signifies 0 or more structure elements # /** # * function_name(:)? (- short description)? # (* @parameterx: (description of parameter x)?)* # (* a blank line)? # * (Description:)? (Description of function)? # * (Section header: (section description)? )* # (*)?*/ # # So .. the trivial example would be: # # /** # * my_function # **/ # # If the Description: header tag is omitted, then there must be # a blank line after the last parameter specification. # e.g. # /** # * my_function - does my stuff # * @my_arg: its mine damnit # * # * Does my stuff explained. # */ # # or, could also use: # /** # * my_function - does my stuff # * @my_arg: its mine damnit # * Description: Does my stuff explained. # */ # etc. # # All descriptions can be multiline, apart from the short function description. # # All descriptive text is further processed, scanning for the following special # patterns, which are highlighted appropriately. # # 'funcname()' - function # '$ENVVAR' - environmental variable OBSOLETE (?) # '#struct_name' - name of a structure # '@parameter' - name of a parameter # '%CONST' - name of a constant. # # Extensions for LaTeX: # # 1. the symbol '->' will be replaced with a rightarrow # 2. x^y with ${x}^{y}$. # 3. xxx\: with xxx: use strict; use warnings; use Getopt::Long; use Pod::Usage; use POSIX qw(strftime); # Global symbols. my ($function_purpose, $lineprefix, $scanned_file) = ('', '', 'unknown'); my ($lineno, $section_default) = (0, 'Description'); # Symbols set by parser and used by rendering subroutines. my %constants; my %function_table; my %parameters; my %parametertypes; my @parameterlist; my %sections; my @sectionlist; # Variables used in options. my ($function_only, $opt_dtd, $output_mode, $verbose) = (0, 0, undef, 0); my ($bugsto, $copyright, $include, $includefuncprefix); my ($modulename, $pkgname, $seeinfo, $sourceversion, $verbatimcopying); # Matching expressions used to find embedded type information. my $type_constant = '%(\w+)'; my $type_func = '(\w+\(\))'; my $type_param = '\B@(\w+|\.\.\.)'; my $type_addr = '\b@\b'; my $type_struct = '#(\w+)'; my $type_env = '\$(\w+)'; # Output conversion substitutions. # One for each output format my @known_modes = qw/ docbook html listfunc man sgml tex texinfo text /; # these work fairly well my %highlights_html = ( $type_constant => '<i>$1</i>', $type_func => '<b>$1</b>', $type_struct => '<i>$1</i>', $type_param => '<tt><b>$1</b></tt>', ); my %highlights_texinfo = ( $type_addr => '@@', $type_constant => '@code{$1}', $type_env => '@env{$1}', $type_func => '@code{$1}', $type_param => '@var{$1}', $type_struct => '@code{$1}', ); my %highlights_tex = ( $type_constant => '{\\it $1}', $type_func => '{\\bf $1}', $type_struct => '{\\it $1}', $type_param => '{\\bf $1}', ); # sgml, docbook format my %highlights_sgml = ( $type_constant => '<replaceable class="option">$1</replaceable>', $type_func => '<function>$1</function>', $type_struct => '<structname>$1</structname>', $type_env => '<envar>$1</envar>', $type_param => '<parameter>$1</parameter>', ); # these are pretty rough my %highlights_man = ( $type_constant => '\\fB$1\\fP', $type_func => '\\fB$1\\fP', $type_struct => '\\fB$1\\fP', $type_param => '\\fI$1\\fP', ); # text-mode my %highlights_text = ( $type_constant => '$1', $type_func => '$1', $type_struct => '$1', $type_param => '$1', ); my %highlights_master = ( docbook => \%highlights_sgml, html => \%highlights_html, man => \%highlights_man, sgml => \%highlights_sgml, tex => \%highlights_tex, texinfo => \%highlights_texinfo, text => \%highlights_text, ); my %blankline = ( docbook => '</para><para>', html => '</p><p>', man => '', sgml => '</para><para>', tex => '\newline', texinfo => '', text => '', ); sub usage { print "Usage: $0 [ -v ] [ -docbook | -html | -text | -man | -tex | -texinfo -listfunc ]\n"; print " [ -sourceversion verno ] [ -include file | -includefuncprefix ]\n"; print " [ -bugsto address ] [ -seeinfo infonode ] [ -copyright notice]\n"; print " [ -verbatimcopying ] [ -pkg-name packagename ]\n"; print " [ -function funcname [ -function funcname ...] ]\n"; print " c source file(s) > outputfile\n"; exit 1; } $output_mode = "man"; my %highlights = %{$highlights_master{'man'}}; my $blankline = $blankline{'man'}; $modulename = "API Documentation"; $sourceversion = strftime "%Y-%m-%d", localtime; ## # Option handling and helpers. # sub set_output_mode { my ($name, $mode) = @_; $mode = $name if grep m/^$name$/, @known_modes; $mode = "sgml" if $mode eq "docbook"; # Pass the selected mode to state parameters. $output_mode = $mode; %highlights = %{$highlights_master{$output_mode}} if defined $highlights_master{$output_mode}; $blankline = $blankline{$mode}; } my %opts = ( # Output modes "docbook|sgml" => \&set_output_mode, "listfunc" => sub { $output_mode = "listfunc" }, "html" => \&set_output_mode, "man" => \&set_output_mode, "mode=s" => \&set_output_mode, "tex" => \&set_output_mode, "texinfo" => \&set_output_mode, "text" => \&set_output_mode, # Parameter settings "bugsto=s" => \$bugsto, "copyright=s" => \$copyright, "dtd+" => \$opt_dtd, "function=s" => sub { $function_only = 1; $function_table{$_[1]} = 1; }, "include=s" => \$include, "includefuncprefix+" => \$includefuncprefix, "module=s" => \$modulename, "pkg-name=s" => \$pkgname, "seeinfo=s" => \$seeinfo, "sourceversion=s" => \$sourceversion, "verbatimcopying+" => \$verbatimcopying, "verbose|v+" => \$verbose, # Help and usage. # Legacy response to '-h' was like the present '-usage'. "usage|h" => sub { pod2usage( -exitval => 0, -verbose => 0 ) }, "help|?" => sub { pod2usage( -exitval => 0, -verbose => 1 ) }, ); ## # dumps section contents to arrays/hashes intended for that purpose. # sub dump_section { my $name = shift @_; my $contents = join "\n", @_; if ($name =~ m/$type_constant/) { $name = $1; # print STDERR "constant section '$1' = '$contents'\n"; $constants{$name} = $contents; } elsif ($name =~ m/$type_param/) { # print STDERR "parameter def '$1' = '$contents'\n"; $name = $1; $parameters{$name} = $contents; } else { # print STDERR "other section '$name' = '$contents'\n"; $sections{$name} = $contents; push @sectionlist, $name; } } ## # output function # # parameters, a hash. # function => "function name" # parameterlist => @list of parameters # parameters => %parameter descriptions # arraylength => %brackets of parameter # sectionlist => @list of sections # sections => %section descriptions # sub repstr { my ($pattern, $repl, $match1, $match2, $match3, $match4) = @_; my ($output); $output = $repl; $output =~ s,\$1,$match1,g; $output =~ s,\$2,$match2,g; $output =~ s,\$3,$match3,g; $output =~ s,\$4,$match4,g; if ($verbose > 1) { print STDERR "Pattern $pattern matched with \$1='$match1' \$2='$match2' \$3='$match3' \$4='$match4'\n", "\tReplacement $repl produces $output\n"; } return $output; } sub just_highlight { my $contents = join "\n", @_; my $ret = ""; # Must begin with $type_param since all types insert '@' when # in texinfo mode. These insertions must not trigger new # replacements by $type_param. # # The ordering of hash keys cannot be guaranteed! my @patterns = grep { $_ ne $type_param; } keys %highlights; unshift @patterns, $type_param if defined $highlights{$type_param}; foreach my $pattern (@patterns) { if ($verbose > 1) { print "Scanning pattern $pattern -> $highlights{$pattern}\n"; } $contents =~ s:$pattern:repstr($pattern, $highlights{$pattern}, $1, $2, $3, $4):gse; } foreach my $line (split "\n", $contents) { # Never add a blank line without previous content. next if not $line and not $ret; if ($line eq ""){ $ret = $ret . $lineprefix . $blankline; } else { $ret = $ret . $lineprefix . $line; } $ret = $ret . "\n"; } return $ret; } sub output_highlight { print (just_highlight (@_)); } # output in texinfo sub output_texinfo { my %args = %{$_[0]}; my $count; print "\@subheading ".$args{'function'}."\n"; print "\@anchor{".$args{'function'}."}\n"; print "\@deftypefun {" . $args{'functiontype'} . "} "; print "{".$args{'function'}."} "; print "("; $count = 0; foreach my $parameter (@{$args{'parameterlist'}}) { # Encapsulate parameter as non-breakable phrase. print '@w{'; # Variadic arguments carry no type. print $args{'parametertypes'}{$parameter}, " " if $args{'parametertypes'}{$parameter}; print '@var{', $parameter, '}'; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; print '}'; # Close the protected phrase. if ($count != $#{$args{'parameterlist'}}) { $count++; print ", "; } } print ")\n"; # Insert line breaks only between arguments, not after, not before. my $interbreak = 0; foreach my $parameter (@{$args{'parameterlist'}}) { print '@*' if $interbreak; $interbreak++; if ($args{'parameters'}{$parameter}) { print '@var{', $parameter, '}: '; output_highlight($args{'parameters'}{$parameter}); } } foreach my $section (@{$args{'sectionlist'}}) { print "\n\@strong{$section:} "; $args{'sections'}{$section} =~ s:([{}]):\@$1:gs; output_highlight($args{'sections'}{$section}); } print "\@end deftypefun\n\n"; } # output in html sub output_html { my %args = %{$_[0]}; my $count; print "\n", '<a name="', $args{'function'}, '"> </a>', "\n", '<h2>Function</h2>', "\n"; print '<i>', $args{'functiontype'}, '</i> '; print "<b>".$args{'function'}."</b>\n"; print "("; $count = 0; foreach my $parameter (@{$args{'parameterlist'}}) { # Variadic arguments carry no type. print '<i>', $args{'parametertypes'}{$parameter}, '</i> ' if $args{'parametertypes'}{$parameter}; print '<b>', $parameter, '</b>'; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; if ($count != $#{$args{'parameterlist'}}) { $count++; print ",\n"; } } print ")\n"; print "<h3>Arguments</h3>\n"; print "<dl>\n"; if ($#{$args{'parameterlist'}} >= 0) { foreach my $parameter (@{$args{'parameterlist'}}) { print '<dt>'; # Variadic arguments carry no type. print "<i>" . $args{'parametertypes'}{$parameter} . "</i> " if $args{'parametertypes'}{$parameter}; print '<b>', $parameter, '</b>'; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; print "</dt>\n<dd><p>"; output_highlight($args{'parameters'}{$parameter}); print "</p></dd>\n"; } } else { print "<dt>None</dt>\n"; } print "</dl>\n"; foreach my $section (@{$args{'sectionlist'}}) { print "<h3>$section</h3>\n"; print "<p>\n"; # Escape all ampersands before displaying. my $text = just_highlight($args{'sections'}{$section}); $text =~ s|&|\&|g; print "$text"; print "</p>\n"; } print "<hr />\n"; } # output in tex sub output_tex { my %args = %{$_[0]}; my ($count, $check, $type); my $func = $args{'function'}; $func =~ s/_/\\_/g; print "\n", '\subsection*{', $func, "}\n", '\label{', $args{'function'}, "}\n"; $type = $args{'functiontype'}; $type =~ s/_/\\_/g; print "{\\it ".$type."}\n"; print "{\\bf ".$func."}\n"; print "("; $count = 0; foreach my $parameter (@{$args{'parameterlist'}}) { my $param = $args{'parametertypes'}{$parameter}; my $param2 = $parameter; my $param3 = $args{'arraylength'}{$parameter}; $param =~ s/_/\\_/g; $param2 =~ s/_/\\_/g; # $param3 =~ s,([][]),\\$1,g; # Variadic arguments carry no type. print '{\it ', $param, '} ' if $param; print '{\bf ', $param2, '}'; print '{\it ', $param3, '}' if $param3; if ($count != $#{$args{'parameterlist'}}) { $count++; print ", "; } } print ")\n\n"; print '\subsection*{Arguments}', "\n"; print "\\begin{itemize}\n"; $check=0; foreach my $parameter (@{$args{'parameterlist'}}) { my $param1 = $args{'parametertypes'}{$parameter}; my $param2 = $parameter; my $param4 = $args{'arraylength'}{$parameter}; $param1 =~ s/_/\\_/g; $param2 =~ s/_/\\_/g; # $param4 =~ s,([][]),\\$1,g; $check = 1; # Variadic arguments carry no type: insert a place holder. print '\item ', $param1 ? '{\it ' . $param1 . '} ' : '', '{\bf ', $param2, '}', $param4 ? '{\it ' . $param4 . '}' : '', '\hspace{0.3ex}:', "\n"; # Small space for readability. my $param3 = $args{'parameters'}{$parameter}; $param3 =~ s/#([a-zA-Z\_]+)/{\\it $1}/g; my $out = just_highlight($param3); $out =~ s/_/\\_/g; print $out; } if ($check==0) { print "\\item void\n"; } print "\\end{itemize}\n"; foreach my $section (@{$args{'sectionlist'}}) { my $sec = $section; $sec =~ s/_/\\_/g; $sec =~ s/#([a-zA-Z\_]+)/{\\it $1}/g; print "\n", '\subsection*{', $sec, '}', "\n"; print "\\begin{rmfamily}\n"; $sec = $args{'sections'}{$section}; $sec =~ s/\\:/:/g; $sec =~ s/#([a-zA-Z\_]+)/{\\it $1}/g; my $out = just_highlight($sec); $out =~ s/_/\\_/g; # Ampersands may appear in embedded code samples, and are # at the same time tokens in TeX source, so we escape them. $out =~ s/&/\\&/g; # The dollar sign starts math mode in TeX and must there- # fore be escaped. Furthermore, the rewrite rules for # '->' and '#^#' must be delayed until that protection # is in place. $out =~ s/\$/\\\$/g; $out =~ s/->/\$\\rightarrow\$/g; $out =~ s/([0-9]+)\^([0-9]+)/\$\{$1\}\^\{$2\}\$/g; print $out; print "\\end{rmfamily}\n"; } print '\pagebreak[2]', "\n"; } # output in sgml DocBook sub output_sgml { my %args = %{$_[0]}; my $count; my $id; my $base_element = "refentry"; $id = $args{'module'}."-".$args{'function'}; $id =~ s/[^A-Za-z0-9]/-/g; if ($opt_dtd) { print '<!DOCTYPE ', $base_element, ' ', 'PUBLIC "-//OASIS/DTD DocBook XML V4.4//EN"', "\n\t ", '"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">', "\n"; $opt_dtd = 0; # Insert the DTD only once! } print "<!--\n\t Generated by gdoc from $scanned_file.\n-->\n"; print "<refentry>\n"; print "<refmeta>\n", " <refentrytitle>\n", " <phrase id=\"$id\">", $args{'function'}, "</phrase>\n", " </refentrytitle>\n", " <manvolnum>3</manvolnum>\n", " <refmiscinfo class=\"source\">", $args{'module'}, "</refmiscinfo>\n", " <refmiscinfo class=\"version\">", $args{'sourceversion'}, "</refmiscinfo>\n", "</refmeta>\n"; print "<refnamediv>\n", " <refname>", $args{'function'}, "</refname>\n", " <refpurpose>", $args{'purpose'} ? $args{'purpose'} : 'API Function', "</refpurpose>\n", "</refnamediv>\n"; print "<refsynopsisdiv>\n", " <title>Synopsis\n"; print " \n", " \n", " " . $args{'functiontype'} . " ", "" . $args{'function'}, "\n"; # print "\n"; # print " Synopsis\n"; # print " \n"; # print " ".$args{'functiontype'}." "; # print "".$args{'function'}." "; # print "\n"; $count = 0; if ($#{$args{'parameterlist'}} >= 0) { foreach my $parameter (@{$args{'parameterlist'}}) { print ' '; # A variadic parameter has no type. print $args{'parametertypes'}{$parameter}, ' ' if $args{'parametertypes'}{$parameter}; print '', $parameter, ''; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; print '', "\n"; } } else { print " \n"; } print " \n", " \n"; print "\n"; # print "\n"; # print parameters print "\n Arguments\n"; # print "\nArguments\n"; if ($#{$args{'parameterlist'}} >= 0) { print " \n"; foreach my $parameter (@{$args{'parameterlist'}}) { print " \n $parameter\n"; print " \n \n"; $lineprefix=" "; output_highlight($args{'parameters'}{$parameter}); print " \n \n \n"; } print " \n"; } else { print " \n None\n \n"; } print "\n"; # print out each section $lineprefix=" "; foreach my $section (@{$args{'sectionlist'}}) { print "\n $section\n \n"; # print "\n$section\n"; if ($section =~ m/EXAMPLE/i) { print "\n"; } # Escape all ampersands. my $text = just_highlight($args{'sections'}{$section}); $text =~ s|&|\&|g; print "$text"; # print ""; if ($section =~ m/EXAMPLE/i) { print "\n"; } print " \n\n"; } print "\n\n"; } ## # output in man sub output_man { my %args = %{$_[0]}; my $count; print ".\\\" DO NOT MODIFY THIS FILE! It was generated by gdoc.\n"; print ".TH \"$args{'function'}\" 3 \"$args{'sourceversion'}\" \"". $args{'module'} . "\" \"". $args{'module'} . "\"\n"; print ".SH NAME\n"; print $args{'function'}; if ($args{'purpose'}) { print " \\- " . $args{'purpose'} . "\n"; } else { print " \\- API function\n"; } print ".SH SYNOPSIS\n"; print ".B #include <". $args{'include'} . ">\n" if $args{'include'}; print ".B #include <". lc((split /_/, $args{'function'})[0]) . ".h>\n" if $args{'includefuncprefix'}; print ".sp\n"; print ".BI \"".$args{'functiontype'}." ".$args{'function'}."("; $count = 0; foreach my $parameter (@{$args{'parameterlist'}}) { print $args{'parametertypes'}{$parameter}, ' ' if $args{'parametertypes'}{$parameter}; print '" ', $parameter, ' "'; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; if ($count != $#{$args{'parameterlist'}}) { $count++; print ", "; } } print ");\"\n"; if (@{$args{'parameterlist'}}) { print ".SH ARGUMENTS\n"; foreach my $parameter (@{$args{'parameterlist'}}) { print '.IP "'; # Variadic arguments carry no type. print $args{'parametertypes'}{$parameter}, ' ' if $args{'parametertypes'}{$parameter}; print $parameter; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; print '" 12', "\n"; my $param = $args{'parameters'}{$parameter}; $param =~ s/-/\\-/g; output_highlight($param); } } foreach my $section (@{$args{'sectionlist'}}) { my $sec = $args{'sections'}{$section}; $sec =~ s/-/\\-/g; print '.SH "', uc($section), "\"\n"; output_highlight($sec); } if ($args{'bugsto'}) { print ".SH \"REPORTING BUGS\"\n"; print "Report bugs to <". $args{'bugsto'} . ">.\n"; if ($args{'pkgname'}) { print $args{'pkgname'} . " home page: " . "http://www.gnu.org/software/" . $args{'module'} . "/\n"; } print "General help using GNU software: http://www.gnu.org/gethelp/\n"; } if ($args{'copyright'}) { print ".SH COPYRIGHT\n"; print "Copyright \\(co ". $args{'copyright'} . ".\n"; if ($args{'verbatimcopying'}) { print ".br\n"; print "Copying and distribution of this file, with or without modification,\n"; print "are permitted in any medium without royalty provided the copyright\n"; print "notice and this notice are preserved.\n"; } } if ($args{'seeinfo'}) { print ".SH \"SEE ALSO\"\n"; print "The full documentation for\n"; print ".B " . $args{'module'} . "\n"; print "is maintained as a Texinfo manual. If the\n"; print ".B info\n"; print "and\n"; print ".B " . $args{'module'} . "\n"; print "programs are properly installed at your site, the command\n"; print ".IP\n"; print ".B info " . $args{'seeinfo'} . "\n"; print ".PP\n"; print "should give you access to the complete manual.\n"; } } sub output_listfunc { my %args = %{$_[0]}; print $args{'function'} . "\n"; } ## # output in text sub output_text { my %args = %{$_[0]}; print "Function = ".$args{'function'}."\n"; print " return type: ".$args{'functiontype'}."\n\n"; foreach my $parameter (@{$args{'parameterlist'}}) { # Variadic arguments carry no type. print ' ', $args{'parametertypes'}{$parameter} if $args{'parametertypes'}{$parameter}; print ' ', $parameter; print $args{'arraylength'}{$parameter} if $args{'arraylength'}{$parameter}; print "\n -> "; output_highlight($args{'parameters'}{$parameter}); } print "\n" if scalar @{$args{'parameterlist'}}; foreach my $section (@{$args{'sectionlist'}}) { print " $section:\n"; # Minimal indentation inside section name. my $visual = just_highlight($args{'sections'}{$section}); $visual =~ s|^(.+)| $1|mg; #print ' ->'; print $visual, "\n"; } } ## # generic output function - calls the right one based # on current output mode. sub output_function { eval 'output_' . $output_mode . '(@_);'; } ## # takes a function prototype and spits out all the details # stored in global arrays/hashes. sub dump_function { my $docname = shift @_; my $prototype = shift @_; my ($return_type, $function_name); my %arraylength; if ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/ || $prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\)]*)\)/) { $return_type = $1; $function_name = $2; my $args = $3; # print STDERR "ARGS = '$args'\n"; foreach my $arg (split ',', $args) { # strip leading/trailing spaces $arg =~ s/^\s*//; $arg =~ s/\s*$//; # print STDERR "SCAN ARG: '$arg'\n"; # Ignore any isolated 'void'. next if ($arg eq 'void'); my @args = split('\s', $arg); # print STDERR " -> @args\n"; my $param = pop @args; # Push leading asterisques into the type list. if ($param =~ m/^(\*+)(.*)/) { $param = $2; push @args, $1; } # Extract closing array lengths for separate bookkeeping. if ($param =~ m/^(.*)(\[\d*\])$/) { $param = $1; $arraylength{$param} = $2; } # print STDERR " :> @args\n"; my $type = join " ", @args; if ($param ne "void" and not $parameters{$param}) { $parameters{$param} = "-- undescribed --"; print STDERR "Warning($scanned_file:", $lineno - 1, '): ', 'Function parameter "', $param, '" ', 'is not described by "', $docname, '".', "\n" if $output_mode ne 'listfunc'; } push @parameterlist, $param; $parametertypes{$param} = $type; # print STDERR "param = '$param', type = '$type'\n"; } } else { print STDERR "Warning($scanned_file:", $lineno - 1, '): ', 'Cannot understand prototype: ', "'$prototype'.\n"; return; } print STDERR "Warning($scanned_file:", $lineno - 1, '): ', 'Defines "', $function_name, '"', ', but "', $docname, '" was documented.', "\n" if $output_mode ne 'listfunc' and $docname ne $function_name; if ($function_only==0 || defined($function_table{$function_name})) { output_function({'function' => $function_name, 'module' => $modulename, 'sourceversion' => $sourceversion, 'include' => $include, 'includefuncprefix' => $includefuncprefix, 'bugsto' => $bugsto, 'pkgname' => $pkgname, 'copyright' => $copyright, 'verbatimcopying' => $verbatimcopying, 'seeinfo' => $seeinfo, 'functiontype' => $return_type, 'arraylength' => \%arraylength, 'parameterlist' => \@parameterlist, 'parameters' => \%parameters, 'parametertypes' => \%parametertypes, 'sectionlist' => \@sectionlist, 'sections' => \%sections, 'purpose' => $function_purpose }); } } ###################################################################### # main # states # 0 - normal code # 1 - looking for function name # 2 - scanning field start. # 3 - scanning prototype. GetOptions(%opts) or pod2usage( -exitval => 1, -verbose => 0, -output => \*STDERR); if ($output_mode eq '?' or $output_mode eq 'help') { print "@known_modes\n"; exit 0; } if (not grep m/^$output_mode$/, @known_modes) { print STDERR 'Not a supported mode: ', "$output_mode\n", 'Available modes: ', "@known_modes\n"; exit 1; } # read arguments if ($#ARGV==-1) { pod2usage( -message => 'No file argument was specified.' . "\n", -exitval => 1, -verbose => 0, -output => \*STDERR); } my $doc_start = "^/\\*\\*\$"; my $doc_end = "\\*/"; my $doc_com = "\\s*\\*\\s*"; my $doc_func = $doc_com."(\\w+):?"; # $doc_special = '@%$#'; # $doc_sect = $doc_com."([".$doc_special."[:upper:]][\\w ]+):\\s*(.*)"; # Sections commence with either of # # \u\w\w+: # @\w+: # @\.\.\.: # # The latter is a variadic placeholder used in a parameter section. my $doc_sect = $doc_com . '([@[:upper:]][\w ]+|@\.\.\.):\s*(.*)'; my $doc_content = $doc_com."(.*)"; %constants = (); %parameters = (); @parameterlist = (); %sections = (); @sectionlist = (); foreach my $file (@ARGV) { my ($contents, $function, $prototype, $section) = ('', '', '', $section_default); if (!open(IN, '<', $file)) { print STDERR "Error: Cannot open file $file\n"; next; } $scanned_file = $file; $lineno = 0; my $state = 0; # State of parser automata. while () { $lineno++; if ($state == 0) { if (/$doc_start/o) { $state = 1; # next line is always the function name } } elsif ($state == 1) { # this line is the function name (always) if (/$doc_func/o) { $function = $1; $state = 2; if (/-\s*(.*)/) { $function_purpose = $1; } else { $function_purpose = ""; } if ($verbose) { print STDERR "Info($scanned_file:$lineno): ", "Scanning docs for func '$function'.\n"; } } else { print STDERR "Warning($scanned_file:$lineno): ", "Cannot understand '$_' on line $lineno", " - I thought it was a doc line.\n"; $state = 0; } } elsif ($state == 2) { # look for head: lines, and include content if (/$doc_sect/o) { my $newsection = $1; my $newcontents = $2; if ($contents ne "") { dump_section($section, $contents); $section = $section_default; } $contents = $newcontents; if ($contents ne "") { $contents .= "\n"; } $section = $newsection; } elsif (/$doc_end/) { if ($contents ne "") { dump_section($section, $contents); $section = $section_default; $contents = ""; } # print STDERR "end of doc comment, looking for prototype\n"; $prototype = ""; $state = 3; } elsif (/$doc_content/) { # miguel-style comment kludge, look for blank lines after # @parameter line to signify start of description if ($1 eq "" && $section =~ m/^@/) { dump_section($section, $contents); $section = $section_default; $contents = ""; } else { $contents .= $1."\n"; } } else { # i dont know - bad line? ignore. print STDERR "Warning($scanned_file:$lineno): ", "Bad line: $_\n"; } } elsif ($state == 3) { # scanning for function { (end of prototype) if (m#\s*/\*\s+MACDOC\s*#io) { # do nothing } elsif (/([^\{]*)/) { $prototype .= $1; } if (/\{/) { $prototype =~ s@/\*.*?\*/@@gos; # strip comments. $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's. $prototype =~ s@^ +@@gos; # strip leading spaces dump_function($function, $prototype); $function = ""; %constants = (); %parameters = (); %parametertypes = (); @parameterlist = (); %sections = (); @sectionlist = (); $prototype = ""; $state = 0; } } } } __END__ =pod =head1 NAME gdoc - Generate documentation from source code. =head1 SYNOPSIS gdoc { -docbook | -html | -listfunc | -sgml | -tex | -texinfo | -text | -mode MODE } [ -v | -verbose ] [ -dtd ] [ -function NAME [ -function NAME ...] ] [ -module NAME ] [ -sourceversion VERSION ] file ... > outputfile gdoc [ -v | -verbose ] [ -man ] [ -module NAME ] [ -include FILE | -includefuncprefix ] [ -seeinfo NODE ] [ -sourceversion VERSION ] [ -copyright TEXT ] [ -verbatimcopying ] [ -bugsto ADDRESS ] [ -pkg-name NAME ] [ -function NAME [ -function NAME ...] ] file ... > outputfile gdoc [ -h | --usage ] [ -? | --help ] =head1 DESCRIPTION Read one or more C source code files and scan for embedded comments in the style of Gnome comments. The output format can be set to a handful modes, but the default is the standard Unix man page. Package specific information can be inserted, and output may be limited to a subset of the available function within a particular set of files. When multiple functions are being documented, the output text is a simple concatenation of the text for each individual function. This must be taken into account with the more complex output modes. All expected output goes to F, while errors go to F. =head1 OPTIONS An option name can be shortened at the end as long as it remains unique, or if it is explicitly mentioned below. A switch can be written with a single dash, or with double dashes, both forms are valid. Option taking arguments, can separate the switch from the argument either with an equal sign, or just white space. =over 8 =item B<-dtd> Include a I in Docbook mode. =item B<-function> I If set, then generate documentation only for the given function. Other functions are ignored. Multiple use is allowed, thus making extraction of function subsets feasible, at least by scripting. =item B<-module> I Provide a name for this software module. The default is I. =item B<-sourceversion> I Version number of source code, e.g. '1.0.4'. This is put in the man page header, defaulting to the current date when not made explicit. =item B<-v>, B<-verbose> Print some internal messages for tracking. =back The next few options are output mode selectors. =over 8 =item B<-docbook>, B<-sgml> Two synonyms for Docbook formatted output, producing one I block for each selected function. Some tweeking may be needed in corner cases. =item B<-html> A fragment containing the full function description. Editing is recommended for use with multiple functions. =item B<-listfunc> A pseudo format intended as a tool: On separate lines, the names of each function being documented in each source file, are listed. =item B<-man> Produce a man page. This is the default format when no selection is indicated at all. =item B<-mode> I Select any mode among the explicit alternatives described here. When I is either of '?' or "help", the supported modes are printed in a simple listing. =item B<-tex> Output is written in the typesetting language LaTeX. =item B<-texinfo> The Texinfo format of the GNU Project. =item B<-text> Plain text formatting. =back Finally, a set of options relevant in man page mode only. =over 8 =item B<-bugsto> I
Include a section about bug reporting and mention the given e-mail address as the desired recipient, e.g, 'help-shishi@gnu.org'. =item B<-copyright> I Add a copyright section with the stated text inserted after a standard preamble. A typical notice could be '2003 Barac Uda'. =item B<-include> I Mention C<#include EFILE.hE> within the synopsis. =item B<-includefuncprefix> Mention an include directive of F in the synopsis. Now I is derived from the function prefix. As an example, a function I will generate an include statement C<#include Egss.hE>. =item B<-pkg-name> I As a refinement when also B<-bugsto> is in use, include a URL to the the project's home page, and prepend I. As an example, "GNU Shishi". =item B<-seeinfo> I Include, in the man page, a section that points to a Tex info manual at I for further information. =item B<-verbatimcopying> Used in addition to B<-copyright>, a licensing statement is added, stating that I is a permitted use of the formatted text. =back =head1 FORMATTING OF COMMENTS The comments in source code must obey a preset structure in order to be detected by B. Their elements are somewhat tersely conveyed here. A comment block commences with C and ends with C<**/>, or with the normal C<*/> as is standard in B source. The following template displays all elements, and will be complemented by examples in the next section. In the following template, the notation C<(...)?> denotes an optional construct (to be placed in the ellipse). In contrast, C<(...)*> denotes a construct present zero or more times. Both are standard notions in most kinds of regular expressions. /** * function_name(:)? (- short description)? (* @parameterx: (description of parameter x)?)* (* a blank line)? * (Description:)? (Description of function)? * (Section header: (section description)? )* (*)?*/ Descriptions are allowed to be multiline, the only exception being the I. In addition to separating the comment into functional parts, the descriptive text is processed further by a scanner, which is looking for the following special patterns. funcname() -- name of a function, #struct_name -- name of a structure, @parameter -- name of a parameter, %CONST -- name of a constant, $ENVVAR -- environmental variable (OBSOLETE!). The lexical tokens thus identified are then highlighted as is appropriate for the chosen output mode. =head1 EXAMPLE OF COMMENTS The minimal comment is obvious: /** * my_function **/ A more useful form names one argument and a description: /** * my_function - does my stuff * @my_arg: it is mine for sure * Description: My stuff explained. */ Should the header tag I be omitted, then a blank line is mandatory after the last parameter specification: /** * my_function - does my stuff * @my_arg: it is still mine * * My stuff explained. */ =head1 CAVEATS Most of the output modes produce a usable and conformant document for a single function only, since multiple functions lead to simple concatenation of the individual documents. =head1 AUTHORS Michael Zucchi wrote the first implementation. Nikos Mavrogiannopoulos added the LaTex mode. Simon Josefsson added Tex info mode, I mode, and improved the man page formatter. Mats Erik Andersson wrote POD and went bug hunting. =head1 COPYRIGHT Copyright (c) 1998 Michael Zucchi 2001, 2002 Nikos Mavrogiannopoulos 2002-2013 Simon Josefsson This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. =cut shishi-1.0.3/doc/shisa.10000644000000000000000000000671614273615527011655 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. .TH SHISA "1" "August 2022" "GNU Shishi 1.0.3" "User Commands" .SH NAME shisa \- Shishi database interface .SH SYNOPSIS .B shisa [\fI\,OPTION\/\fR]... [\fI\,REALM \/\fR[\fI\,PRINCIPAL\/\fR]]... .SH DESCRIPTION Manipulate information stored in the Shisa user database. .TP \fB\-h\fR, \fB\-\-help\fR Print help and exit .TP \fB\-V\fR, \fB\-\-version\fR Print version and exit .SS "Operations:" .TP \fB\-a\fR, \fB\-\-add\fR Add realm or principal to database. .TP \fB\-d\fR, \fB\-\-dump\fR Dump entries in database. .TP \fB\-n\fR, \fB\-\-key\-add\fR Add new key to a principal in database. .TP \fB\-\-key\-remove\fR Remove a key from a principal in database. .TP \fB\-l\fR, \fB\-\-list\fR List entries in database. .TP \fB\-m\fR, \fB\-\-modify\fR Modify principal entry in database. .TP \fB\-r\fR, \fB\-\-remove\fR Remove realm or principal from database. .SS "Parameters:" .TP \fB\-f\fR, \fB\-\-force\fR Allow removal of non\-empty realms. (default=off) .TP \fB\-\-enabled\fR Only dump or list enabled principals. (default=off) .TP \fB\-\-disabled\fR Only dump or list disabled principals. (default=off) .TP \fB\-\-keys\fR Print cryptographic key and password in hostkey format. (default=off) .SS "Values:" .TP \fB\-E\fR, \fB\-\-encryption\-type\fR=\fI\,STRING\/\fR Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des\-md5', \&'des\-md4', 'des\-crc', 'des' (same as \&'des\-md5'), and 'arcfour'. .TP \fB\-\-key\-version\fR=\fI\,NUMBER\/\fR Version of key. .TP \fB\-\-password\fR[=\fI\,STRING\/\fR] Derive key from this password. .TP \fB\-\-priority\fR=\fI\,NUMBER\/\fR Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen) .TP \fB\-\-random\fR Use a random key. (default) .TP \fB\-\-salt\fR=\fI\,STRING\/\fR Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name. .TP \fB\-\-string\-to\-key\-parameter\fR=\fI\,HEX\/\fR Encryption algorithm specific parameter for .TP password derivation. Currently only the AES .TP algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver. .SS "Other options:" .HP \fB\-c\fR, \fB\-\-configuration\-file\fR=\fI\,FILE\/\fR Use specified configuration file. .TP \fB\-o\fR, \fB\-\-library\-options\fR=\fI\,STRING\/\fR Parse string as configuration file statement. .TP \fB\-v\fR, \fB\-\-verbose\fR Produce verbose output. (default=off) .TP \fB\-q\fR, \fB\-\-quiet\fR Don't produce any diagnostic output. (default=off) .PP Mandatory arguments to long options are mandatory for short options too. .SH AUTHOR Written by Simon Josefsson. .SH "REPORTING BUGS" Report bugs to: bug\-shishi@gnu.org .br GNU Shishi home page: .br General help using GNU software: .SH COPYRIGHT Copyright \(co 2022 Simon Josefsson. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" The full documentation for .B shisa is maintained as a Texinfo manual. If the .B info and .B shisa programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/shishi.texi0000644000000000000000000062224014273610310012623 00000000000000\input texinfo @c -*- mode: texinfo; coding: us-ascii; -*- @c This file is part of Shishi. @c See below for copyright and license. @setfilename shishi.info @include version.texi @settitle GNU Shishi @value{VERSION} @finalout @c Unify some of the indices. @syncodeindex tp fn @syncodeindex pg fn @copying This manual is last updated @value{UPDATED} for version @value{VERSION} of Shishi. Copyright @copyright{} 2002--2022 Simon Josefsson. @quotation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. @end quotation @end copying @dircategory GNU utilities @direntry * shishi: (shishi). A Kerberos 5 implementation @end direntry @dircategory GNU Libraries @direntry * libshishi: (shishi). Library implementing Kerberos 5. @end direntry @titlepage @title Shishi @subtitle Kerberos 5 implementation for the GNU system @subtitle for version @value{VERSION}, @value{UPDATED} @author Simon Josefsson @page @vskip 0pt plus 1filll @insertcopying @end titlepage @contents @ifnottex @node Top @top Shishi @insertcopying @end ifnottex @menu * Introduction:: How to use this manual. * User Manual:: Using Shishi as end-user. * Administration Manual:: Administrating server aspects of Shishi. * Reference Manual:: Detailed description of config files, etc. * Programming Manual:: Calling Shishi from a programming language. * Acknowledgements:: Whom to blame. Appendices * Criticism of Kerberos:: Why you maybe shouldn't use Kerberos. * Protocol Extensions:: Description of protocol extensions used. * Copying Information:: How you can copy and share Shishi. Indices * Function and Data Index:: Index of functions, variables and data types. * Concept Index:: Index of concepts and programs. @end menu @c ********************************************************** @c ******************** Introduction ********************** @c ********************************************************** @node Introduction @chapter Introduction Shishi implements the Kerberos network authentication system. Shishi can be used to authenticate users in distributed systems, and is most often used via GSS-API for SSH or via SASL for IMAP/POP3. Shishi contains a library ('libshishi') that can be used by application developers to add support for Kerberos 5. There is also a command line utility ('shishi') that is used by users to acquire and manage tickets. The server side, a Key Distribution Center, is implemented by 'shishid'. Of course, a manual documenting usage aspects as well as the programming API is included. Shishi currently supports AS/TGS exchanges for acquiring tickets, pre-authentication, the AP exchange for performing client and server authentication, and SAFE/PRIV for integrity/privacy protected application data exchanges. Shishi is internationalized; error and status messages can be translated into the users' language; user name and passwords can be converted into any available character set (normally including ISO-8859-1 and UTF-8) and also be processed using an experimental Stringprep profile. Most, if not all, of the widely used encryption and checksum types are supported, such as 3DES, AES, ARCFOUR and HMAC-SHA1. Shishi is developed for the GNU/Linux system but works on many platforms including most major Unix and Windows systems. Shishi is free software licensed under the GNU General Public License version 3.0 or later. @menu * Getting Started:: * Features and Status:: * Overview:: * Cryptographic Overview:: * Supported Platforms:: * Getting help:: * Downloading and Installing:: * Bug Reports:: * Contributing:: @end menu @node Getting Started @section Getting Started This manual documents the Shishi application and library programming interface. All commands, functions and data types provided by Shishi are explained. The reader is assumed to possess basic familiarity with network security and the Kerberos 5 security system. This manual can be used in several ways. If read from the beginning to the end, it gives a good introduction into the library and how it can be used in an application. Forward references are included where necessary. Later on, the manual can be used as a reference manual to get just the information needed about any particular interface of the library. Experienced programmers might want to start looking at the examples at the end of the manual, and then only read up on those parts of the interface which are unclear. @node Features and Status @section Features and Status Shishi might have a couple of advantages over other packages doing a similar job. @table @asis @item It's Free Software Anybody can use, modify, and redistribute it under the terms of the GNU General Public License version 3.0 or later. @item It's thread-safe The library uses no global variables. @item It's internationalized It handles non-ASCII username and passwords, and user visible strings used in the library (error messages) can be translated into the users' language. @item It's portable It should work on all Unix like operating systems, including Windows. @end table Shishi is far from feature complete, it is not even a full RFC 4120 implementation yet. However, some basic functionality is implemented. A few implemented feature are mentioned below. @itemize @bullet @item Initial authentication (AS) from raw key or password. This step is typically used to acquire a ticket granting ticket and, less commonly, a server ticket. @item Subsequent authentication (TGS). This step is typically used to acquire a server ticket, by authenticating yourself using the ticket granting ticket. @item Client-Server authentication (AP). This step is used by clients and servers to prove to each other who they are, using negotiated tickets. @item Integrity protected communication (SAFE). This step is used by clients and servers to exchange integrity protected data with each other. The key is typically agreed on using the Client-Server authentication step. @item Ticket cache, supporting multiple principals and realms. As tickets have a life time of typically several hours, they are managed in disk files. There can be multiple ticket caches, and each ticket cache can store tickets for multiple clients (users), servers, encryption types, etc. Functionality is provided for locating the proper ticket for every use. @item Most standard cryptographic primitives. The believed most secure algorithms are supported (@pxref{Cryptographic Overview}). @item Telnet client and server. This is used to remotely login to other machines, after authenticating yourself with a ticket. @item PAM module. This is used to login locally on a machine. @item KDC addresses located using DNS SRV RRs. @item Modularized low-level crypto interface. Currently Gnulib and Libgcrypt are supported. If you wish to add support for another low-level cryptographic library, you only have to implement a few APIs for DES, AES, MD5, SHA1, HMAC, etc. Look at @file{gl/gc-gnulib.c} or @file{gl/gc-libgcrypt.c} as a starting pointer. @end itemize The following table summarize what the current objectives are (i.e., the todo list) and an estimate on how long it will take to implement the feature, including some reasonable startup-time to get familiar with Shishi in general. If you like to start working on anything, please let me know so work duplication can be avoided. @itemize @bullet @item Parse @file{/etc/krb5.keytab} to extract keys to use for telnetd etc (week) @item Cross-realm support (week). @item PKINIT (use libksba, weeks) @item Finish GSSAPI support via GSSLib (weeks) Shishi will not support GSSLib natively, but a separate project ``GSSLib'' is under way to produce a generic GSS implementation, and it will use Shishi to implement the Kerberos 5 mechanism. @item Port to cyclone (cyclone need to mature first) @item Modularize ASN.1 library so it can be replaced (days). Almost done, all ASN.1 functionality is found in lib/asn1.c, although the interface is rather libtasn1 centric. @item KDC (initiated, weeks) @item LDAP backend for Shisa. @item Set/Change password protocol (weeks?) @item Port applications to use Shishi (indefinite) @item Finish server-realm stuff @item Improve documentation @item Improve internationalization @item Add AP-REQ replay cache (week). @item Study benefits by introducing a PA-TGS-REP. This would provide mutual authentication of the KDC in a way that is easier to analyze. Currently the mutual authentication property is only implicit from successful decryption of the KDC-REP and the 4 byte @code{nonce}. @item GUI applet for managing tickets. This is supported via the ticket-applet, of which a Shishi port is published on the Shishi home page. @item Authorization library (months?) The shishi_authorized_p() is not a good solution, better would be to have a generic and flexible authorization library. Possibly based on S-EXP's in tickets? Should support non-Kerberos uses as well, of course. @item Proof read manual. @item X.500 support, including DOMAIN-X500-COMPRESS. I will accept patches that implement this, if it causes minimal changes to the current code. @end itemize @node Overview @section Overview This section describes RFC 1510 from a protocol point of view@footnote{The text is a lightly adapted version of the introduction section from RFC 1510 by J. Kohl and C. Neuman, September 1993, copyright likely owned by the RFC 1510 authors or some contributor.}. Kerberos provides a means of verifying the identities of principals, (e.g., a workstation user or a network server) on an open (unprotected) network. This is accomplished without relying on authentication by the host operating system, without basing trust on host addresses, without requiring physical security of all the hosts on the network, and under the assumption that packets traveling along the network can be read, modified, and inserted at will. (Note, however, that many applications use Kerberos' functions only upon the initiation of a stream-based network connection, and assume the absence of any "hijackers" who might subvert such a connection. Such use implicitly trusts the host addresses involved.) Kerberos performs authentication under these conditions as a trusted third- party authentication service by using conventional cryptography, i.e., shared secret key. (shared secret key - Secret and private are often used interchangeably in the literature. In our usage, it takes two (or more) to share a secret, thus a shared DES key is a secret key. Something is only private when no one but its owner knows it. Thus, in public key cryptosystems, one has a public and a private key.) The authentication process proceeds as follows: A client sends a request to the authentication server (AS) requesting "credentials" for a given server. The AS responds with these credentials, encrypted in the client's key. The credentials consist of 1) a "ticket" for the server and 2) a temporary encryption key (often called a "session key"). The client transmits the ticket (which contains the client's identity and a copy of the session key, all encrypted in the server's key) to the server. The session key (now shared by the client and server) is used to authenticate the client, and may optionally be used to authenticate the server. It may also be used to encrypt further communication between the two parties or to exchange a separate sub-session key to be used to encrypt further communication. The implementation consists of one or more authentication servers running on physically secure hosts. The authentication servers maintain a database of principals (i.e., users and servers) and their secret keys. Code libraries provide encryption and implement the Kerberos protocol. In order to add authentication to its transactions, a typical network application adds one or two calls to the Kerberos library, which results in the transmission of the necessary messages to achieve authentication. The Kerberos protocol consists of several sub-protocols (or exchanges). There are two methods by which a client can ask a Kerberos server for credentials. In the first approach, the client sends a cleartext request for a ticket for the desired server to the AS. The reply is sent encrypted in the client's secret key. Usually this request is for a ticket-granting ticket (TGT) which can later be used with the ticket-granting server (TGS). In the second method, the client sends a request to the TGS. The client sends the TGT to the TGS in the same manner as if it were contacting any other application server which requires Kerberos credentials. The reply is encrypted in the session key from the TGT. Once obtained, credentials may be used to verify the identity of the principals in a transaction, to ensure the integrity of messages exchanged between them, or to preserve privacy of the messages. The application is free to choose whatever protection may be necessary. To verify the identities of the principals in a transaction, the client transmits the ticket to the server. Since the ticket is sent "in the clear" (parts of it are encrypted, but this encryption doesn't thwart replay) and might be intercepted and reused by an attacker, additional information is sent to prove that the message was originated by the principal to whom the ticket was issued. This information (called the authenticator) is encrypted in the session key, and includes a timestamp. The timestamp proves that the message was recently generated and is not a replay. Encrypting the authenticator in the session key proves that it was generated by a party possessing the session key. Since no one except the requesting principal and the server know the session key (it is never sent over the network in the clear) this guarantees the identity of the client. The integrity of the messages exchanged between principals can also be guaranteed using the session key (passed in the ticket and contained in the credentials). This approach provides detection of both replay attacks and message stream modification attacks. It is accomplished by generating and transmitting a collision-proof checksum (elsewhere called a hash or digest function) of the client's message, keyed with the session key. Privacy and integrity of the messages exchanged between principals can be secured by encrypting the data to be passed using the session key passed in the ticket, and contained in the credentials. @node Cryptographic Overview @section Cryptographic Overview Shishi implements several of the standard cryptographic primitives. In this section we give the names of the supported encryption suites, and some notes about them, and their associated checksum suite. Statements such as ``it is weak'' should be read as meaning that there is no credible security analysis of the mechanism available, and/or that should an attack be published publicly, few people would likely be surprised. Also keep in mind that the key size mentioned is the actual key size, not the effective key space as far as a brute force attack is concerned. As you may infer from the descriptions, there is currently no encryption algorithm and only one checksum algorithm that inspire great confidence in its design. Hopefully this will change over time. @cindex DES @cindex 3DES @cindex AES @cindex ARCFOUR @table @code @item NULL @code{NULL} is a dummy encryption suite for debugging. Encryption and decryption are identity functions. No integrity protection. It is weak. It is associated with the @code{NULL} checksum. @item arcfour-hmac @itemx arcfour-hmac-exp @code{arcfour-hmac-*} are a proprietary stream cipher with 56 bit (@code{arcfour-hmac-exp}) or 128 bit (@code{arcfour-hmac}) keys, used in a proprietary way described in an expired IETF draft @file{draft-brezak-win2k-krb-rc4-hmac-04.txt}. Deriving keys from passwords is supported, and is done by computing a message digest (MD4) of a 16-bit Unicode representation of the ASCII password, with no salt. Data is integrity protected with a keyed hash (HMAC-MD5), where the key is derived from the base key in a creative way. It is weak. It is associated with the @code{arcfour-hmac-md5} checksum. @item des-cbc-none @code{des-cbc-none} is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. It is weak, because it offers no integrity protection. This is typically only used by RFC 1964 GSS-API implementations (which try to protect integrity using an ad-hoc solution). It is associated with the @code{NULL} checksum. @item des-cbc-crc @code{des-cbc-crc} is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using the key as IV (@pxref{Key as initialization vector}). The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted @code{CRC32}-like checksum. It is weak. It is associated with the @code{rsa-md5-des} checksum. @item des-cbc-md4 @code{des-cbc-md4} is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted MD4 hash. It is weak. It is associated with the @code{rsa-md4-des} checksum. @item des-cbc-md5 @code{des-cbc-md5} is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted MD5 hash. It is weak. It is associated with the @code{rsa-md5-des} checksum. This is the strongest RFC 1510 interoperable encryption mechanism. @item des3-cbc-none @code{des3-cbc-none} is DES encryption and decryption with three 56 bit keys (effective key size 112 bits) and 8 byte blocks in CBC mode. The keys can be derived from passwords by the same algorithm as @code{des3-cbc-sha1-kd}. It is weak, because it offers no integrity protection. This is typically only used by GSS-API implementations (which try to protect integrity using an ad-hoc solution) for interoperability with some existing Kerberos GSS implementations. It is associated with the @code{NULL} checksum. @item des3-cbc-sha1-kd @code{des3-cbc-sha1-kd} is DES encryption and decryption with three 56 bit keys (effective key size 112 bits) and 8 byte blocks in CBC mode. The keys can be derived from passwords by a algorithm based on the paper "A Better Key Schedule For DES-like Ciphers" @footnote{@url{http://www.research.att.com/~smb/papers/ides.pdf}} by Uri Blumenthal and Steven M. Bellovin (it is not clear if the algorithm, and the way it is used, is used by any other protocols, although it seems unlikely). Data is integrity protected with a keyed SHA1 hash in HMAC mode. It has no security proof, but is assumed to provide adequate security in the sense that knowledge on how to crack it is not known to the public. Note that the key derivation function is not widely used outside of Kerberos, hence not widely studied. It is associated with the @code{hmac-sha1-des3-kd} checksum. @item aes128-cts-hmac-sha1-96 @itemx aes256-cts-hmac-sha1-96 @code{aes128-cts-hmac-sha1-96} and @code{aes256-cts-hmac-sha1-96} is AES encryption and decryption with 128 bit and 256 bit key, respectively, and 16 byte blocks in CBC mode with Cipher Text Stealing. Cipher Text Stealing means data length of encrypted data is preserved (pure CBC add up to 7 pad characters). The keys can be derived from passwords with RSA Laboratories PKCS#5 Password Based Key Derivation Function 2@footnote{@url{http://www.rsasecurity.com/rsalabs/pkcs/pkcs-5/}}, which is allegedly provably secure in a random oracle model. Data is integrity protected with a keyed SHA1 hash, in HMAC mode, truncated to 96 bits. There is no security proof, but the schemes are assumed to provide adequate security in the sense that knowledge on how to crack them is not known to the public. Note that AES has yet to receive the test of time, and the AES cipher encryption mode (CBC with Ciphertext Stealing, and a non-standard IV output) is not widely standardized (hence not widely studied). It is associated with the @code{hmac-sha1-96-aes128} and @code{hmac-sha1-96-aes256} checksums, respectively. @end table The protocol do not include any way to negotiate which checksum mechanisms to use, so in most cases the associated checksum will be used. However, checksum mechanisms can be used with other encryption mechanisms, as long as they are compatible in terms of key format etc. Here are the names of the supported checksum mechanisms, with some notes on their status and the compatible encryption mechanisms. They are ordered by increased security as perceived by the author. @table @code @item NULL @code{NULL} is a dummy checksum suite for debugging. It provides no integrity. It is weak. It is compatible with the @code{NULL} encryption mechanism. @item arcfour-hmac-md5 @code{arcfour-hmac-md5} is a keyed HMAC-MD5 checksum computed on a MD5 message digest, in turn computed on a four byte message type indicator concatenated with the application data. (The @code{arcfour} designation is thus somewhat misleading, but since this checksum mechanism is described in the same document as the @code{arcfour} encryption mechanisms, it is not a completely unnatural designation.) It is weak. It is compatible with all encryption mechanisms. @item rsa-md4 @code{rsa-md4} is a unkeyed MD4 hash computed over the message. It is weak, because it is unkeyed. However applications can, with care, use it non-weak ways (e.g., by including the hash in other messages that are protected by other means). It is compatible with all encryption mechanisms. @item rsa-md4-des @code{rsa-md4-des} is a DES CBC encryption of one block of random data and a unkeyed MD4 hash computed over the random data and the message to integrity protect. The key used is derived from the base protocol key by XOR with a constant. It is weak. It is compatible with the @code{des-cbc-crc}, @code{des-cbc-md4}, @code{des-cbc-md5} encryption mechanisms. @item rsa-md5 @code{rsa-md5} is a unkeyed MD5 hash computed over the message. It is weak, because it is unkeyed. However applications can, with care, use it non-weak ways (e.g., by including the hash in other messages that are protected by other means). It is compatible with all encryption mechanisms. @item rsa-md5-des @code{rsa-md5-des} is a DES CBC encryption of one block of random data and a unkeyed MD5 hash computed over the random data and the message to integrity protect. The key used is derived from the base protocol key by XOR with a constant. It is weak. It is compatible with the @code{des-cbc-crc}, @code{des-cbc-md4}, @code{des-cbc-md5} encryption mechanisms. @item hmac-sha1-des3-kd @code{hmac-sha1-des3-kd} is a keyed SHA1 hash in HMAC mode computed over the message. The key is derived from the base protocol by the simplified key derivation function (similar to the password key derivation functions of @code{des3-cbc-sha1-kd}, which does not appear to be widely used outside Kerberos and hence not widely studied). It has no security proof, but is assumed to provide good security. The weakest part is likely the proprietary key derivation function. It is compatible with the @code{des3-cbc-sha1-kd} encryption mechanism. @item hmac-sha1-96-aes128 @itemx hmac-sha1-96-aes256 @code{hmac-sha1-96-aes*} are keyed SHA1 hashes in HMAC mode computed over the message and then truncated to 96 bits. The key is derived from the base protocol by the simplified key derivation function (similar to the password key derivation functions of @code{aes*-cts-hmac-sha1-96}, i.e., PKCS#5). It has no security proof, but is assumed to provide good security. It is compatible with the @code{aes*-cts-hmac-sha1-96} encryption mechanisms. @end table Several of the cipher suites have long names that can be hard to memorize. For your convenience, the following short-hand aliases exists. They can be used wherever the full encryption names are used. @table @code @item arcfour Alias for @code{arcfour-hmac}. @item des-crc Alias for @code{des-cbc-crc}. @item des-md4 Alias for @code{des-cbc-md4}. @item des-md5 @itemx des Alias for @code{des-cbc-md5}. @item des3 @itemx 3des Alias for @code{des3-cbc-sha1-kd}. @item aes128 Alias for @code{aes128-cts-hmac-sha1-96}. @item aes @itemx aes256 Alias for @code{aes256-cts-hmac-sha1-96}. @end table @node Supported Platforms @section Supported Platforms Shishi has at some point in time been tested on the following platforms. Online build reports for each platforms and Shishi version is available at @url{http://autobuild.josefsson.org/shishi/}. @enumerate @item Debian GNU/Linux 3.0 (Woody) @cindex Debian GCC 2.95.4 and GNU Make. This is the main development platform. @code{alphaev67-unknown-linux-gnu}, @code{alphaev6-unknown-linux-gnu}, @code{arm-unknown-linux-gnu}, @code{armv4l-unknown-linux-gnu}, @code{hppa-unknown-linux-gnu}, @code{hppa64-unknown-linux-gnu}, @code{i686-pc-linux-gnu}, @code{ia64-unknown-linux-gnu}, @code{m68k-unknown-linux-gnu}, @code{mips-unknown-linux-gnu}, @code{mipsel-unknown-linux-gnu}, @code{powerpc-unknown-linux-gnu}, @code{s390-ibm-linux-gnu}, @code{sparc-unknown-linux-gnu}, @code{sparc64-unknown-linux-gnu}. @item Debian GNU/Linux 2.1 @cindex Debian GCC 2.95.4 and GNU Make. @code{armv4l-unknown-linux-gnu}. @item Tru64 UNIX @cindex Tru64 Tru64 UNIX C compiler and Tru64 Make. @code{alphaev67-dec-osf5.1}, @code{alphaev68-dec-osf5.1}. @item SuSE Linux 7.1 @cindex SuSE GCC 2.96 and GNU Make. @code{alphaev6-unknown-linux-gnu}, @code{alphaev67-unknown-linux-gnu}. @item SuSE Linux 7.2a @cindex SuSE Linux GCC 3.0 and GNU Make. @code{ia64-unknown-linux-gnu}. @item SuSE Linux @cindex SuSE Linux GCC 3.2.2 and GNU Make. @code{x86_64-unknown-linux-gnu} (AMD64 Opteron ``Melody''). @item RedHat Linux 7.2 @cindex RedHat GCC 2.96 and GNU Make. @code{alphaev6-unknown-linux-gnu}, @code{alphaev67-unknown-linux-gnu}, @code{ia64-unknown-linux-gnu}. @item RedHat Linux 8.0 @cindex RedHat GCC 3.2 and GNU Make. @code{i686-pc-linux-gnu}. @item RedHat Advanced Server 2.1 @cindex RedHat Advanced Server GCC 2.96 and GNU Make. @code{i686-pc-linux-gnu}. @item Slackware Linux 8.0.01 @cindex RedHat GCC 2.95.3 and GNU Make. @code{i686-pc-linux-gnu}. @item Mandrake Linux 9.0 @cindex Mandrake GCC 3.2 and GNU Make. @code{i686-pc-linux-gnu}. @item IRIX 6.5 @cindex IRIX MIPS C compiler, IRIX Make. @code{mips-sgi-irix6.5}. @item AIX 4.3.2 @cindex AIX IBM C for AIX compiler, AIX Make. @code{rs6000-ibm-aix4.3.2.0}. @c @item Microsoft Windows 2000 (Cygwin) @c @cindex Windows @c @c GCC 3.2, GNU make. @code{i686-pc-cygwin}. @item HP-UX 11 @cindex HP-UX HP-UX C compiler and HP Make. @code{ia64-hp-hpux11.22}, @code{hppa2.0w-hp-hpux11.11}. @item SUN Solaris 2.8 @cindex Solaris Sun WorkShop Compiler C 6.0 and SUN Make. @code{sparc-sun-solaris2.8}. @item NetBSD 1.6 @cindex NetBSD GCC 2.95.3 and GNU Make. @code{alpha-unknown-netbsd1.6}, @code{i386-unknown-netbsdelf1.6}. @item OpenBSD 3.1 and 3.2 @cindex OpenBSD GCC 2.95.3 and GNU Make. @code{alpha-unknown-openbsd3.1}, @code{i386-unknown-openbsd3.1}. @item FreeBSD 4.7 and 4.8 @cindex FreeBSD GCC 2.95.4 and GNU Make. @code{alpha-unknown-freebsd4.7}, @code{alpha-unknown-freebsd4.8}, @code{i386-unknown-freebsd4.7}, @code{i386-unknown-freebsd4.8}. @item MacOS X 10.2 Server Edition @cindex MacOS X GCC 3.1 and GNU Make. @code{powerpc-apple-darwin6.5}. @item Cross compiled to uClinux/uClibc on Motorola Coldfire. @cindex Motorola Coldfire @cindex uClinux @cindex uClibc GCC 3.4 and GNU Make @code{m68k-uclinux-elf}. @end enumerate If you use Shishi on, or port Shishi to, a new platform please report it to the author (@pxref{Bug Reports}). @node Getting help @section Getting help A mailing list where users of Shishi may help each other exists, and you can reach it by sending e-mail to @email{help-shishi@@gnu.org}. Archives of the mailing list discussions, and an interface to manage subscriptions, is available through the World Wide Web at @url{http://lists.gnu.org/mailman/listinfo/help-shishi}. @node Downloading and Installing @section Downloading and Installing @cindex Installation @cindex Download The package can be downloaded from several places, including: @url{ftp://alpha.gnu.org/pub/gnu/shishi/} The latest version is stored in a file, e.g., @samp{shishi-@value{VERSION}.tar.gz} where the @samp{@value{VERSION}} indicate the highest version number. The package is then extracted, configured and built like many other packages that use Autoconf. For detailed information on configuring and building it, refer to the @file{INSTALL} file that is part of the distribution archive. Here is an example terminal session that download, configure, build and install the package. You will need a few basic tools, such as @samp{sh}, @samp{make} and @samp{cc}. @example $ wget -q ftp://alpha.gnu.org/pub/gnu/shishi/shishi-@value{VERSION}.tar.gz $ tar xfz shishi-@value{VERSION}.tar.gz $ cd shishi-@value{VERSION}/ $ ./configure ... $ make ... $ make install ... @end example After this you should be prepared to continue with the user, administration or programming manual, depending on how you want to use Shishi. A few @code{configure} options may be relevant, summarized in the table. @table @code @item --disable-des @itemx --disable-3des @itemx --disable-aes @itemx --disable-md @itemx --disable-null @itemx --disable-arcfour Disable a cryptographic algorithm at compile time. Usually it is better to disable algorithms during run-time with the configuration file, but this allows you to reduce the code size slightly. @item --disable-starttls Disable the experimental TLS support for KDC connections. If you do not use a Shishi KDC, this support is of no use so you could safely disable it. @item --without-stringprep Disable internationalized string processing. @end table For the complete list, refer to the output from @code{configure --help}. @node Bug Reports @section Bug Reports @cindex Reporting Bugs If you think you have found a bug in Shishi, please investigate it and report it. @itemize @bullet @item Please make sure that the bug is really in Shishi, and preferably also check that it hasn't already been fixed in the latest version. @item You have to send us a test case that makes it possible for us to reproduce the bug. @item You also have to explain what is wrong; if you get a crash, or if the results printed are not good and in that case, in what way. Make sure that the bug report includes all information you would need to fix this kind of bug for someone else. @end itemize Please make an effort to produce a self-contained report, with something definite that can be tested or debugged. Vague queries or piecemeal messages are difficult to act on and don't help the development effort. If your bug report is good, we will do our best to help you to get a corrected version of the software; if the bug report is poor, we won't do anything about it (apart from asking you to send better bug reports). If you think something in this manual is unclear, or downright incorrect, or if the language needs to be improved, please also send a note. Send your bug report to: @center @samp{bug-shishi@@josefsson.org} @node Contributing @section Contributing @cindex Contributing @cindex Hacking If you want to submit a patch for inclusion -- from solve a typo you discovered, up to adding support for a new feature -- you should submit it as a bug report (@pxref{Bug Reports}). There are some things that you can do to increase the chances for it to be included in the official package. Unless your patch is very small (say, under 10 lines) we require that you assign the copyright of your work to the Free Software Foundation. This is to protect the freedom of the project. If you have not already signed papers, we will send you the necessary information when you submit your contribution. For contributions that doesn't consist of actual programming code, the only guidelines are common sense. Use it. For code contributions, a number of style guides will help you: @itemize @bullet @item Coding Style. Follow the GNU Standards document (@pxref{top, GNU Coding Standards,, standards}). If you normally code using another coding standard, there is no problem, but you should use @samp{indent} to reformat the code (@pxref{top, GNU Indent,, indent}) before submitting your work. @item Use the unified diff format @samp{diff -u}. @item Return errors. The only valid reason for ever aborting the execution of the program is due to memory allocation errors, but for that you should call @samp{shishi_xalloc_die} to allow the application to recover if it wants to. @item Design with thread safety in mind. Don't use global variables. Don't even write to per-handle global variables unless the documented behaviour of the function you write is to write to the per-handle global variable. @item Avoid using the C math library. It causes problems for embedded implementations, and in most situations it is very easy to avoid using it. @item Document your functions. Use comments before each function headers, that, if properly formatted, are extracted into Texinfo manuals and GTK-DOC web pages. @item Supply a ChangeLog and NEWS entries, where appropriate. @end itemize @c ********************************************************** @c ******************** User Manual ********************** @c ********************************************************** @node User Manual @chapter User Manual @cindex End-user Shishi usage Usually Shishi interacts with you to get some initial authentication information like a password, and then contacts a server to receive a so called ticket granting ticket. From now on, you rarely interact with Shishi directly. Applications that need security services instruct the Shishi library to use the ticket granting ticket to get new tickets for various servers. An example could be if you log on to a host remotely via @samp{telnet}. The host usually requires authentication before permitting you in. The @samp{telnet} client uses the ticket granting ticket to get a ticket for the server, and then uses this ticket to authenticate you against the server (typically the server is also authenticated to you). You perform the initial authentication by typing @command{shishi} at the prompt. Sometimes it is necessary to supply options telling Shishi what your principal name (user name in the Kerberos realm) or your realm is. In the example, I specify the client name @code{simon@@JOSEFSSON.ORG}. @example $ shishi simon@@JOSEFSSON.ORG Enter password for `simon@@JOSEFSSON.ORG': simon@@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:44:49 2003 Endtime: Fri Aug 15 05:01:29 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: INITIAL (512) $ @end example As you can see, Shishi also prints a short description of the ticket received. A logical next step is to display all tickets you have received. By the way, the tickets are usually stored as text in @file{~/.shishi/tickets}. This is achieved by typing @command{shishi --list}. @example $ shishi --list Tickets in `/home/jas/.shishi/tickets': jas@@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: krbtgt/JOSEFSSON.ORG key des-cbc-md5 (3) Ticket key: des-cbc-md5 (3) protected by des-cbc-md5 (3) Ticket flags: INITIAL (512) jas@@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Starttime: Fri Aug 15 04:49:49 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: host/latte.josefsson.org key des-cbc-md5 (3) Ticket key: des-cbc-md5 (3) protected by des-cbc-md5 (3) 2 tickets found. $ @end example As you can see, I had a ticket for the server @samp{host/latte.josefsson.org} which was generated by @samp{telnet}:ing to that host. If, for some reason, you want to manually get a ticket for a specific server, you can use the @command{shishi --server-name} command. Normally, however, the application that uses Shishi will take care of getting a ticket for the appropriate server, so you normally wouldn't need to issue this command. @example $ shishi --server-name=user/billg --encryption-type=des-cbc-md4 jas@@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Starttime: Fri Aug 15 04:54:33 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: user/billg key des-cbc-md4 (2) Ticket key: des-cbc-md4 (2) protected by des-cbc-md5 (3) $ @end example As you can see, I acquired a ticket for @samp{user/billg} with a @samp{des-cbc-md4} (@pxref{Cryptographic Overview}) encryption key specified with the @samp{--encryption-type} parameter. To wrap up this introduction, let us see how you can remove tickets. You may want to do this if you leave your terminal for lunch or similar, and don't want someone to be able to copy the file and then use your credentials. Note that this only destroys the tickets locally, it does not contact any server telling that these credentials are no longer valid. So, if someone stole your ticket file, you must still contact your administrator and have them reset your account. Simply using this switch is not sufficient. @example $ shishi --server-name=imap/latte.josefsson.org --destroy 1 ticket removed. $ shishi --server-name=foobar --destroy No tickets removed. $ shishi --destroy 3 tickets removed. $ @end example Since the @samp{--server-name} parameter takes a long string to type, it is possible to type the server name directly, after the client name. The following example demonstrates an AS-REQ followed by a TGS-REQ for a specific server (assuming you did not have any tickets to begin with). @example $ src/shishi simon@@latte.josefsson.org imap/latte.josefsson.org Enter password for `simon@@latte.josefsson.org': simon@@latte.josefsson.org: Acquired: Wed Aug 27 17:21:06 2003 Expires: Wed Aug 27 17:37:46 2003 Server: imap/latte.josefsson.org key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (12) $ @end example Refer to the reference manual for all available parameters (@pxref{Parameters for shishi}). The rest of this section contains descriptions of more specialized usage modes that can be ignored by most users. @section Proxiable and Proxy Tickets At times it may be necessary for a principal to allow a service to perform an operation on its behalf. The service must be able to take on the identity of the client, but only for a particular purpose. A principal can allow a service to take on the principal's identity for a particular purpose by granting it a proxy. The process of granting a proxy using the proxy and proxiable flags is used to provide credentials for use with specific services. Though conceptually also a proxy, users wishing to delegate their identity in a form usable for all purpose MUST use the ticket forwarding mechanism described in the next section to forward a ticket-granting ticket. The PROXIABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. When set, this flag tells the ticket-granting server that it is OK to issue a new ticket (but not a ticket-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket-granting ticket, and reset when requesting any other ticket. This flag allows a client to pass a proxy to a server to perform a remote request on its behalf (e.g. a print service client can give the print server a proxy to access the client's files on a particular file server in order to satisfy a print request). In order to complicate the use of stolen credentials, Kerberos tickets are usually valid from only those network addresses specifically included in the ticket[4]. When granting a proxy, the client MUST specify the new network address from which the proxy is to be used, or indicate that the proxy is to be issued for use from any address. The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail. Here is how you would acquire a PROXY ticket for the service @samp{imap/latte.josefsson.org}: @example $ shishi jas@@JOSEFSSON.ORG imap/latte.josefsson.org --proxy Enter password for `jas@@JOSEFSSON.ORG': libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:02:35 2003 Starttime: Mon Sep 8 20:02:36 2003 Endtime: Tue Sep 9 04:02:35 2003 Server: imap/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXY (16) $ @end example As you noticed, this asked for your password. The reason is that proxy tickets must be acquired using a proxiable ticket granting ticket, which was not present. If you often need to get proxy tickets, you may acquire a proxiable ticket granting ticket from the start: @example $ shishi --proxiable Enter password for `jas@@JOSEFSSON.ORG': jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:04:27 2003 Endtime: Tue Sep 9 04:04:27 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXIABLE INITIAL (520) @end example Then you should be able to acquire proxy tickets based on that ticket granting ticket, as follows: @example $ shishi jas@@JOSEFSSON.ORG imap/latte.josefsson.org --proxy libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:04:27 2003 Starttime: Mon Sep 8 20:04:32 2003 Endtime: Tue Sep 9 04:04:27 2003 Server: imap/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXY (16) $ @end example @section Forwardable and Forwarded Tickets Authentication forwarding is an instance of a proxy where the service that is granted is complete use of the client's identity. An example where it might be used is when a user logs in to a remote system and wants authentication to work from that system as if the login were local. The FORWARDABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket-granting ticket. This flag allows for authentication forwarding without requiring the user to enter a password again. If the flag is not set, then authentication forwarding is not permitted, but the same result can still be achieved if the user engages in the AS exchange specifying the requested network addresses and supplies a password. The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non-FORWARDED tickets. If addressless tickets are forwarded from one system to another, clients SHOULD still use this option to obtain a new TGT in order to have different session keys on the different systems. Here is how you would acquire a FORWARDED ticket for the service @samp{host/latte.josefsson.org}: @example $ shishi jas@@JOSEFSSON.ORG host/latte.josefsson.org --forwarded Enter password for `jas@@JOSEFSSON.ORG': libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:07:11 2003 Starttime: Mon Sep 8 20:07:12 2003 Endtime: Tue Sep 9 04:07:11 2003 Server: host/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDED (4) $ @end example As you noticed, this asked for your password. The reason is that forwarded tickets must be acquired using a forwardable ticket granting ticket, which was not present. If you often need to get forwarded tickets, you may acquire a forwardable ticket granting ticket from the start: @example $ shishi --forwardable Enter password for `jas@@JOSEFSSON.ORG': jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:08:53 2003 Endtime: Tue Sep 9 04:08:53 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDABLE INITIAL (514) $ @end example Then you should be able to acquire forwarded tickets based on that ticket granting ticket, as follows: @example $ shishi jas@@JOSEFSSON.ORG host/latte.josefsson.org --forwarded libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:08:53 2003 Starttime: Mon Sep 8 20:08:57 2003 Endtime: Tue Sep 9 04:08:53 2003 Server: host/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDED (4) $ @end example @c ********************************************************** @c **************** Administration Manual ***************** @c ********************************************************** @node Administration Manual @chapter Administration Manual Here you will learn how to set up, run and maintain the Shishi Kerberos server. Kerberos is incompatible with the standard Unix @file{/etc/passwd} password database@footnote{And besides, Shishi is intended to work on non-Unix platforms as well.}, therefore the first step will be to create a Kerberos user database. Shishi's user database system is called Shisa. Once Shisa has been configured, you can then start the server and begin issuing Kerberos tickets to your users. The Shishi server is called @file{shishid}. After getting the server up and running, we discuss how you can set up multiple Kerberos servers, to increase availability or offer load-balancing. Finally, we include some information intended for developers, that will enable you to customize Shisa to use an external user database, such as a LDAP server or SQL database. @menu * Introduction to Shisa:: Explanation of the Shishi user database. * Configuring Shisa:: Define the user database in Shisa. * Using Shisa:: How to add realms and principals to database. * Starting Shishid:: Issue Kerberos tickets to your users. * Configuring DNS for KDC:: Placing the KDC address in DNS is useful. * Kerberos via TLS:: How to setup Shishi to use TLS. * Multiple servers:: High availability and load-balancing. * Developer information:: Writing your own Shisa database backend. @end menu @node Introduction to Shisa @section Introduction to Shisa The user database part of Shishi is called Shisa. The Shisa library is independent of the core Shishi library. Shisa is responsible for storing the name of your realms, the name of your principals (users), accounting information for the users (i.e., when each account starts to be valid and when it expires), and the cryptographic keys each user has. Some Kerberos internal data can also be stored, such as the key version number, the last dates for when various ticket requests were made, the cryptographic salt, string-to-key parameters and password for each user. Not all information need to be stored. For example, in some situations it is prudent to leave the password field empty, so that somebody who manages to steal the user database will only be able to compromise your system, and not any other systems were your user may have re-used the same password. On the other hand, you may already be storing the password in your customized database, in which case being able to change it via the Shisa interface can be useful. Shisa is a small (a few thousand lines of C code) standalone library. Shisa does not depend on the Shishi library. Because a user database with passwords may be useful for other applications as well (e.g., GNU SASL), it might be separated into its own project later on. You should keep this in mind, so that you don't consider writing a Shisa backend for your own database as a purely Shishi specific project. You can, for example, choose to use the Shisa interface in your own applications to have a simple interface to your user database. Your experience and feedback is appreciated if you have chosen to explore this. Note that the Shisa database does not expose everything you may want to know about a user, such as its full human name, telephone number or even the user's login account name or home directory. It only stores what is needed to authenticate a peer claiming to be an entity. Thus it does not make sense to replace your current user database or @file{/etc/passwd} with data derived from the Shisa database. Instead, it is intended that you write a Shisa backend that exports @i{some} of the information stored in your user database. You may be able to replace some existing functionality, such as the password field in @file{/etc/passwd} with a Kerberos PAM module, but there is no requirement for doing so. @node Configuring Shisa @section Configuring Shisa The configuration file for Shisa is typically stored in @file{/usr/local/etc/shishi/shisa.conf}. You do not have to modify this file, the defaults should be acceptable to first-time users. The file is used to define where your user database resides, and some options such as making the database read-only, or whether errors detected when accessing the database should be ignored. (The latter could be useful if the server is a remote LDAP server that might be unavailable, and then you would want to fall back to a local copy of the database.) The default will store the user database using directories and files, rooted by default in @file{/usr/local/var/shishi}. You can use standard file permission settings to control access to the directory hierarchy. It is strongly recommended to restrict access to the directory. Storing the directory on local storage, i.e., hard disk or removable media, is recommended. We discourage placing the database on a network file system, but realize this can be useful in some situations (@pxref{Multiple servers}). See the reference manual (@pxref{Shisa Configuration}) for the details of the configuration file. Again, you are not expected to need to modify anything unless you are an experienced Shishi administrator. @node Using Shisa @section Using Shisa There is a command line interface to the Shisa library, aptly named @file{shisa}. You will use this tool to add, remove, and change information stored in the database about realms, principals, and keys. The tool can also be used to ``dump'' all information in the database, for backup or debugging purposes. (Currently the output format cannot be read by any tool, but functionality to do this will be added in the future, possibly as a read-only file-based Shisa database backend.) The reference manual (@pxref{Parameters for shisa}) explains all parameters, but here we will give you a walk-through of the typical uses of the tool. Installing Shishi usually creates a realm with two principals: one ticket granting ticket for the realm, and one host key for the server. This is what you typically need to get started, but it doesn't serve our purposes, so we start by removing the principals and the realm. To do that, we need to figure out the name of the realm. The @samp{--list} or @samp{--dump} parameters can be used for this. (Most ``long'' parameters, like @samp{--dump}, have shorter names as well, in this case @samp{-d}, @ref{Parameters for shisa}). @example jas@@latte:~$ shisa -d latte krbtgt/latte Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt lattekrbtgt/latte. host/latte Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt lattehost/latte. jas@@latte:~$ @end example The realm names are printed at column 0, the principal names are indented with one @samp{TAB} character (aka @samp{\t} or ASCII 0x09 Horizontal Tabulation), and the information about each principal is indented with two @samp{TAB} characters. The above output means that there is one realm @samp{latte} with two principals: @samp{krbtgt/latte} (which is used to authenticate Kerberos ticket requests) and @samp{host/latte} (used to authenticate host-based applications like Telnet). They were created during @samp{make install} on a host called @samp{latte}. If the installation did not create a default database for you, you might get an error similar to the following output. @example jas@@latte:~$ shisa -d shisa: Cannot initialize `file' database backend. Location `/usr/local/var/shishi' and options `N/A'. shisa: Initialization failed: Shisa database could not be opened. jas@@latte:~$ @end example This indicates that the database does not exist. For a file database, you can create it simply by creating the directory, as follows. Note the access permission change with @samp{chmod}. Typically the @samp{root} user would own the files, but as these examples demonstrate, setting up a Kerberos server does not require root access. Indeed, it may be prudent to run all Shishi applications as a special non-@samp{root} user, and have all Shishi related files owned by that user, so that any security vulnerabilities do not lead to a system compromise. (However, if the user database is ever stolen, system compromises of other systems may be inoccured, should you use, e.g., a kerberized Telnet.) @example jas@@latte:~$ mkdir /usr/local/var/shishi jas@@latte:~$ chmod go-rwx /usr/local/var/shishi @end example Back to the first example, where you have a realm @samp{latte} with some principals. We want to remove the realm to demonstrate how you create the realm from scratch. (Of course, you can have more than one realm in the database, but for this example we assume you want to set up a realm named the same as Shishi guessed you would name it, so the existing realm need to be removed first.) The @samp{--remove} (short form @samp{-r}) parameter is used for this purpose, as follows. @example jas@@latte:~$ shisa -r latte host/latte Removing principal `host/latte@@latte'... Removing principal `host/latte@@latte'...done jas@@latte:~$ shisa -r latte krbtgt/latte Removing principal `krbtgt/latte@@latte'... Removing principal `krbtgt/latte@@latte'...done jas@@latte:~$ shisa -r latte Removing realm `latte'... Removing realm `latte'...done jas@@latte:~$ @end example You may be asking yourself ``What if the realm has many more principals?''. If you fear manual labor (or a small @samp{sed} script, recall the format of @samp{--list}?), don't worry, there is a @samp{--force} (short form @samp{-f}) flag. Use it with care. Here is a faster way to do the above: @example jas@@latte:~$ shisa -r latte -f Removing principal `krbtgt/latte@@latte'... Removing principal `krbtgt/latte@@latte'...done Removing principal `host/latte@@latte'... Removing principal `host/latte@@latte'...done Removing realm `latte'... Removing realm `latte'...done jas@@latte:~$ @end example You should now have a working, but empty, Shisa database. Let's set up the realm manually, step by step. The first step is to decide on a name for your realm. The full story is explained elsewhere (@pxref{Realm and Principal Naming}), but the short story is to take your DNS domain name and translate it to upper case. For example, if your organization uses @code{example.org} it is a good idea to use @code{EXAMPLE.ORG} as the name of your Kerberos realm. We'll use @code{EXAMPLE.ORG} as the realm name in these examples. Let's create the realm. @example jas@@latte:~$ shisa -a EXAMPLE.ORG Adding realm `EXAMPLE.ORG'... Adding realm `EXAMPLE.ORG'...done jas@@latte:~$ @end example Currently, there are no properties associated with entire realms. In the future, it may be possible to set a default realm-wide password expiry policy or similar. Each realm normally has one principal that is used for authenticating against the ``ticket granting service'' on the Kerberos server with a ticket instead of using the password. This is used by the user when she acquire a ticket for a server. The principal must look like @samp{krbtgt/REALM} (@pxref{krbtgt,,Name of the TGS}). Let's create it. @example jas@@latte:~$ shisa -a EXAMPLE.ORG krbtgt/EXAMPLE.ORG Adding principal `krbtgt/EXAMPLE.ORG@@EXAMPLE.ORG'... Adding principal `krbtgt/EXAMPLE.ORG@@EXAMPLE.ORG'...done jas@@latte:~$ @end example Now that wasn't difficult, although not very satisfying either. What does adding a principal mean? The name is created, obviously, but it also means setting a few values in the database. Let's view the entry to find out which values. @example jas@@latte:~$ shisa -d EXAMPLE.ORG krbtgt/EXAMPLE.ORG Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt EXAMPLE.ORGkrbtgt/EXAMPLE.ORG. jas@@latte:~$ @end example To use host based security services like SSH or Telnet with Kerberos, each host must have a key shared between the host and the KDC. The key is typically stored in @file{/usr/local/etc/shishi/shishi.keys}. We assume your server is called @samp{mail.example.org} and we create the principal. To illustrate a new parameter, we also set the specific algorithm to use by using the @samp{--encryption-type} (short form @samp{-E}) parameter. @example jas@@latte:~$ shisa -a EXAMPLE.ORG host/mail.example.org -E des3 Adding principal `host/mail.example.org@@EXAMPLE.ORG'... Adding principal `host/mail.example.org@@EXAMPLE.ORG'...done jas@@latte:~$ @end example To export the key, there is another Shisa parameter @samp{--keys} that will print the key in a format that is recognized by Shishi. Let's use it to print the host key. @example jas@@latte:~$ shisa -d --keys EXAMPLE.ORG host/mail.example.org EXAMPLE.ORG host/mail.example.org Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des3-cbc-sha1-kd (0x10, 16). -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: host/mail.example.org Realm: EXAMPLE.ORG iQdA8hxdvOUHZNliZJv7noM02rXHV8gq -----END SHISHI KEY----- Salt EXAMPLE.ORGhost/mail.example.org. jas@@latte:~$ @end example So to set up the host, simply redirect output to the host key file. @example jas@@latte:~$ shisa -d --keys EXAMPLE.ORG \ host/mail.example.org >> /usr/local/etc/shishi/shishi.keys jas@@latte:~$ @end example The next logical step is to create a principal for some user, so you can use your password to get a Ticket Granting Ticket via the Authentication Service (AS) from the KDC, and then use the Ticket Granting Service (TGS) from the KDC to get a ticket for a specific host, and then send that ticket to the host to authenticate yourself. Creating this end-user principle is slightly different from the earlier steps, because you want the key to be derived from a password instead of being a random key. The @samp{--password} parameter indicate this. This make the tool ask you for the password. @example jas@@latte:~$ shisa -a EXAMPLE.ORG simon --password Password for `simon@@EXAMPLE.ORG': Adding principal `simon@@EXAMPLE.ORG'... Adding principal `simon@@EXAMPLE.ORG'...done jas@@latte:~$ @end example The only special thing about this principal now is that it has a @code{password} field set in the database. @example jas@@latte:~$ shisa -d EXAMPLE.ORG simon --keys EXAMPLE.ORG simon Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). -----BEGIN SHISHI KEY----- Keytype: 18 (aes256-cts-hmac-sha1-96) Principal: simon Realm: EXAMPLE.ORG Ja7ciNtrAI3gtodLaVDQ5zhcH58ffk0kS5tGAM7ILvM= -----END SHISHI KEY----- Salt EXAMPLE.ORGsimon. Password foo. jas@@latte:~$ @end example You should now be ready to start the KDC, which is explained in the next section (@pxref{Starting Shishid}), and get tickets as explained earlier (@pxref{User Manual}). @node Starting Shishid @section Starting Shishid The Shishi server, or Key Distribution Center (KDC), is called Shishid. Shishid is responsible for listening on UDP and TCP ports for Kerberos requests. Currently it can handle initial ticket requests (Authentication Service, or AS), typically authenticated with keys derived from passwords, and subsequent ticket requests (Ticket Granting Service, or TGS), typically authenticated with the key acquired during an AS exchange. Currently there is very little configuration available, the only variables are which ports the server should listen on and an optional user name to @code{setuid} into after successfully listening to the ports. By default, Shishid listens on the @samp{kerberos} service port (typically translated to 88 via @file{/etc/services}) on the UDP and TCP transports via IPv4 and (if your machine support it) IPv6 on all interfaces on your machine. Here is a typical startup. @example latte:/home/jas/src/shishi# /usr/local/sbin/shishid Initializing GNUTLS... Initializing GNUTLS...done Listening on IPv4:*:kerberos/udp...done Listening on IPv4:*:kerberos/tcp...done Listening on IPv6:*:kerberos/udp...failed socket: Address family not supported by protocol Listening on IPv6:*:kerberos/tcp...failed socket: Address family not supported by protocol Listening on 2 ports... @end example Running as root is not recommended. Any security problem in shishid and your host may be compromised. Therefor, we recommend using the @samp{--setuid} parameter, as follows. @example latte:/home/jas/src/shishi# /usr/local/sbin/shishid --setuid=jas Initializing GNUTLS... Initializing GNUTLS...done Listening on IPv4:*:kerberos/udp...done Listening on IPv4:*:kerberos/tcp...done Listening on IPv6:*:kerberos/udp...failed socket: Address family not supported by protocol Listening on IPv6:*:kerberos/tcp...failed socket: Address family not supported by protocol Listening on 2 ports... User identity set to `jas' (22541)... @end example An alternative is to run shishid on an alternative port as a non-privileged user. To continue the example of setting up the @code{EXAMPLE.ORG} realm as a non-privileged user from the preceding section, we start the server listen on port 4711 via UDP on IPv4. @example jas@@latte:~$ /usr/local/sbin/shishid -l IPv4:*:4711/udp Initializing GNUTLS... Initializing GNUTLS...done Listening on *:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on *:4711/tcp socket 4 @end example If you have set up the Shisa database as in the previous example, you can now acquire tickets as follows. @example jas@@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711' \ simon@@EXAMPLE.ORG Enter password for `simon@@EXAMPLE.ORG': simon@@EXAMPLE.ORG: Authtime: Fri Dec 12 01:41:01 2003 Endtime: Fri Dec 12 01:57:41 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE RENEWABLE INITIAL (12) jas@@latte:~$ @end example The output from Shishid on a successful invocation would look like: @example shishid: Has 131 bytes from *:4711/udp on socket 4 shishid: Processing 131 from *:4711/udp on socket 4 shishid: Trying AS-REQ shishid: AS-REQ from simon@@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for *:4711/udp on socket 4 shishid: Sending 511 bytes to *:4711/udp socket 4 via UDP shishid: Listening on *:4711/udp socket 4 @end example You may use the '-v' parameter for Shishid and Shishi to generate more debugging information. To illustrate what an application, such as the Shishi patched versions of GNU lsh or Telnet from GNU InetUtils, would do when contacting the host @samp{mail.example.org} we illustrate using the TGS service as well. @example jas@@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711' \ simon@@EXAMPLE.ORG host/mail.example.org simon@@EXAMPLE.ORG: Authtime: Fri Dec 12 01:46:54 2003 Endtime: Fri Dec 12 02:03:34 2003 Server: host/mail.example.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (45398796) jas@@latte:~$ @end example This conclude our walk-through of setting up a new Kerberos realm using Shishi. It is quite likely that one or more steps failed, and if so we encourage you to debug it and submit a patch, or at least report it as a problem. Heck, even letting us know if you got this far would be of interest. @xref{Bug Reports}. @node Configuring DNS for KDC @section Configuring DNS for KDC Making sure the configuration files on all hosts running Shishi clients include the addresses of your server is tedious. If the configuration files do not mention the KDC address for a realm, Shishi will try to look up the information from DNS. In order for Shishi to find that information, you need to add the information to DNS. For this to work well, you need to set up a DNS zone with the same name as your Kerberos realm. The easiest is if you own the publicly visible DNS name, such as @samp{example.org} if your realm is @samp{EXAMPLE.ORG}, but you can set up an internal DNS server with the information for your realm only. If this is done, you do not need to keep configuration files updated for the KDC addressing information. @subsection DNS vs. Kerberos - Case Sensitivity of Realm Names In Kerberos, realm names are case sensitive. While it is strongly encouraged that all realm names be all upper case this recommendation has not been adopted by all sites. Some sites use all lower case names and other use mixed case. DNS on the other hand is case insensitive for queries but is case preserving for responses to TXT queries. Since "MYREALM", "myrealm", and "MyRealm" are all different it is necessary that only one of the possible combinations of upper and lower case characters be used. This restriction may be lifted in the future as the DNS naming scheme is expanded to support non-ASCII names. @subsection Overview - KDC location information KDC location information is to be stored using the DNS SRV RR [RFC 2052]. The format of this RR is as follows: Service.Proto.Realm TTL Class SRV Priority Weight Port Target The Service name for Kerberos is always "_kerberos". The Proto can be either "_udp", "_tcp", or "_tls._tcp". If these SRV records are to be used, a "_udp" record MUST be included. If the Kerberos implementation supports TCP transport, a "_tcp" record MUST be included. When using "_tcp" with "_kerberos", this indicates a "raw" TCP connection without any additional encapsulation. A "_tls._tcp" record MUST be specified for all Kerberos implementations that support communication with the KDC across TCP sockets encapsulated using TLS [RFC2246] (@pxref{STARTTLS protected KDC exchanges}). The Realm is the Kerberos realm that this record corresponds to. TTL, Class, SRV, Priority, Weight, and Target have the standard meaning as defined in RFC 2052. As per RFC 2052 the Port number should be the value assigned to "kerberos" by the Internet Assigned Number Authority (88). @subsection Example - KDC location information These are DNS records for a Kerberos realm ASDF.COM. It has two Kerberos servers, kdc1.asdf.com and kdc2.asdf.com. Queries should be directed to kdc1.asdf.com first as per the specified priority. Weights are not used in these records. @example _kerberos._udp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._udp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. _kerberos._tcp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._tcp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. _kerberos._tls._tcp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._tls._tcp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. @end example @subsection Security considerations As DNS is deployed today, it is an unsecure service. Thus the infor- mation returned by it cannot be trusted. Current practice for REALM to KDC mapping is to use hostnames to indicate KDC hosts (stored in some implementation-dependent location, but generally a local config file). These hostnames are vulnerable to the standard set of DNS attacks (denial of service, spoofed entries, etc). The design of the Kerberos protocol limits attacks of this sort to denial of service. However, the use of SRV records does not change this attack in any way. They have the same vulnerabilities that already exist in the common practice of using hostnames for KDC locations. Implementations SHOULD provide a way of specifying this information locally without the use of DNS. However, to make this feature worthwhile a lack of any configuration information on a client should be interpretted as permission to use DNS. @node Kerberos via TLS @section Kerberos via TLS @cindex GNUTLS @cindex TLS @cindex STARTTLS If Shishi is built with support for GNUTLS, the messages exchanged between clients and Shishid can be protected with TLS. TLS is only available over TCP connections. A full discussion of the features TLS have is out of scope here, but in short it means the communication is integrity and privacy protected, and that users can use OpenPGP, X.509 or SRP (i.e., any mechanism supported by TLS) to authenticate themselves to the Kerberos server. For details on the implementation, @xref{STARTTLS protected KDC exchanges}. @subsection Setting up TLS resume @cindex tls resume Resuming earlier TLS session is supported and enabled by default. This improves the speed of the TLS handshake, because results from earlier negotiations can be re-used. Currently the TLS resume database is stored in memory (in constract to storing it on disk), in both the client and in the server. Because the server typically runs for a long time, this is not a problem for that side. The client is typically not a long-running process though; the client usually is invoked as part of applications like @samp{telnet} or @samp{login}. However, because each use of the client library typically result in a ticket, which is stored on disk and re-used by later processes, this is likely not a serious problem because the number of different tickets required by a user is usually quite small. For the client, TLS resume is typically only useful when you perform an initial authentication (using a password) followed by a ticket request for a service, in the same process. You can configure the server, @samp{shishid} to never use TLS resume, or to increase or decrease the number of distinct TLS connections that can be resumed before they are garbage collected, see the @samp{--resume-limit} parameter (@pxref{Parameters for shishid}). @subsection Setting up Anonymous TLS @cindex anonymous tls @cindex Diffie Hellman key exchange Anonymous TLS is the simplest to set up and use. In fact, only the client need to be informed that your KDC support TLS. This can be done in the configuration file with the @samp{/tls} parameter for @samp{kdc-realm} (@pxref{realm-kdc,, Shishi Configuration}), or by placing the KDC address in DNS using the @samp{_tls} SRV record (@pxref{Configuring DNS for KDC}). Let's start Shishid, listening on a TCP socket. TLS require TCP. TCP sockets are automatically upgraded to TLS if the client request it. @example jas@@latte:~$ /usr/local/sbin/shishid -l IPv4:*:4711/tcp Initializing GNUTLS...done Listening on IPv4:*:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on IPv4:*:4711/tcp socket 4 @end example Let's use the client to talk with it, using TLS. @example jas@@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711/tls \ simon@@EXAMPLE.ORG Enter password for `simon@@EXAMPLE.ORG': simon@@EXAMPLE.ORG: Authtime: Tue Dec 16 05:20:47 2003 Endtime: Tue Dec 16 05:37:27 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (12) jas@@latte:~$ @end example On success, the server will print the following debug information. @example shishid: Accepted socket 6 from socket 4 as IPv4:*:4711/tcp peer 127.0.0.1 shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 4 bytes from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying STARTTLS shishid: TLS handshake negotiated protocol `TLS 1.0', key exchange `Anon DH', certficate type `X.509', cipher `AES 256 CBC', mac `SHA', compression `NULL', session not resumed shishid: TLS anonymous authentication with 1024 bit Diffie-Hellman shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 131 bytes from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Processing 131 from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying AS-REQ shishid: AS-REQ from simon@@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Sending 511 bytes to IPv4:*:4711/tcp peer 127.0.0.1 socket 6 via TLS shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Peer IPv4:*:4711/tcp peer 127.0.0.1 disconnected on socket 6 shishid: Closing IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Listening on IPv4:*:4711/tcp socket 4 @end example @subsection Setting up X.509 authenticated TLS @cindex X.509 authentication @cindex authenticated tls @cindex client authentication @cindex server authentication @cindex certificate authority (CA) Setting up X.509 authentication is slightly more complicated than anonymous authentication. You need a X.509 certificate authority (CA) that can generate certificates for your Kerberos server and Kerberos clients. It is often easiest to setup the CA yourself. Managing a CA can be a daunting task, and we only give the bare essentials to get things up and running. We suggest that you study the relevant literature. As a first step beyond this introduction, you may wish to explore more secure forms of key storage than storing them unencrypted on disk. The following three sections describe how you create the CA, KDC certificate, and client certificates. You can use any tool you like for this task, as long as they generate X.509 (PKIX) certificates in PEM format and RSA keys in PKCS#1 format. Here we use @file{certtool} that come with GNUTLS, which is widely available. We conclude by discussing how you use these certificates in the KDC and in the Shishi client. @subsubsection Create a Kerberos Certificate Authority First create a CA key. @example jas@@latte:~$ certtool --generate-privkey \ --outfile /usr/local/etc/shishi/shishi.key Generating a private key... Generating a 1024 bit RSA private key... jas@@latte:~$ @end example Then create the CA certificate. Use whatever details you prefer. @example jas@@latte:~$ certtool --generate-self-signed \ --load-privkey /usr/local/etc/shishi/shishi.key \ --outfile /usr/local/etc/shishi/shishi.cert Generating a self signed certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example CA Organizational unit name: Locality name: State or province name: Common name: CA This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): y Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 10:59:00 2003 Not After: Fri Jun 18 11:59:00 2004 Subject: C=SE,O=Shishi Example CA,CN=CA Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:TRUE Is the above information ok? (Y/N): y Signing certificate... jas@@latte:~$ @end example @subsubsection Create a Kerberos KDC Certificate First create the key for the KDC. @example jas@@latte:~$ certtool --generate-privkey \ --outfile /usr/local/etc/shishi/shishid.key Generating a private key... Generating a 1024 bit RSA private key... jas@@latte:~$ @end example Then create actual KDC certificate, signed by the CA certificate created in the previous step. @example jas@@latte:~$ certtool --generate-certificate \ --load-ca-certificate /usr/local/etc/shishi/shishi.cert \ --load-ca-privkey /usr/local/etc/shishi/shishi.key \ --load-privkey /usr/local/etc/shishi/shishid.key \ --outfile /usr/local/etc/shishi/shishid.cert Generating a signed certificate... Loading CA's private key... Loading CA's certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example KDC Organizational unit name: Locality name: State or province name: Common name: KDC This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): n Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 11:02:00 2003 Not After: Fri Jun 18 12:02:00 2004 Subject: C=SE,O=Shishi Example KDC,CN=KDC Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:FALSE Is the above information ok? (Y/N): y Signing certificate... jas@@latte:~$ @end example @subsubsection Create a Kerberos Client Certificate First create the key for the client. @example jas@@latte:~$ certtool --generate-privkey \ --outfile ~/.shishi/client.key Generating a private key... Generating a 1024 bit RSA private key... jas@@latte:~$ @end example Then create the client certificate, signed by the CA. An alternative would be to have the KDC sign the client certificates. @example jas@@latte:~$ certtool --generate-certificate \ --load-ca-certificate /usr/local/etc/shishi/shishi.cert \ --load-ca-privkey /usr/local/etc/shishi/shishi.key \ --load-privkey ~/.shishi/client.key \ --outfile ~/.shishi/client.certs Generating a signed certificate... Loading CA's private key... Loading CA's certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example Client Organizational unit name: Locality name: State or province name: Common name: Client This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): n Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 11:04:00 2003 Not After: Fri Jun 18 12:04:00 2004 Subject: C=SE,O=Shishi Example Client,CN=Client Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:FALSE Is the above information ok? (Y/N): y Signing certificate... jas@@latte:~$ @end example @subsubsection Starting KDC with X.509 authentication support The KDC need the CA certificate (to verify client certificates) and the server certificate and key (to authenticate itself to the clients). See elsewhere (@pxref{Parameters for shishid}) for the entire description of the parameters. @example jas@@latte:~$ shishid -l *:4711/tcp \ --x509cafile /usr/local/etc/shishi/shishi.cert \ --x509certfile /usr/local/etc/shishi/shishid.cert \ --x509keyfile /usr/local/etc/shishi/shishid.key Initializing GNUTLS... Parsed 1 CAs... Loaded server certificate/key... Generating Diffie-Hellman parameters... Initializing GNUTLS...done Listening on *:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on *:4711/tcp socket 4 @end example Then acquire tickets as usual. In case you wonder how shishi finds the client certificate and key, the filenames used above when generating the client certificates happen to be the default filenames for these files. So it pick them up automatically. @example jas@@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711/tls' \ simon@@EXAMPLE.ORG Enter password for `simon@@EXAMPLE.ORG': simon@@EXAMPLE.ORG: Authtime: Sun Dec 21 11:15:47 2003 Endtime: Sun Dec 21 11:32:27 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE RENEWABLE HWAUTHENT TRANSITEDPOLICYCHECKED OKASDELEGATE (12) jas@@latte:~$ @end example Here is what the server would print. @example shishid: Accepted socket 6 from socket 4 as *:4711/tcp peer 127.0.0.1 shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 4 bytes from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying STARTTLS shishid: TLS handshake negotiated protocol `TLS 1.0', key exchange `RSA', certficate type `X.509', cipher `AES 256 CBC', mac `SHA', compression `NULL', session not resumed shishid: TLS client certificate `C=SE,O=Shishi Example Client,CN=Client', issued by `C=SE,O=Shishi Example CA,CN=CA', serial number `00', MD5 fingerprint `a5:d3:1f:58:76:e3:58:cd:2d:eb:f7:45:a2:4b:52:f9:', activated `Sun Dec 21 11:04:00 2003', expires `Fri Jun 18 12:04:00 2004', version #3, key RSA modulus 1024 bits, currently EXPIRED shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 131 bytes from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Processing 131 from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying AS-REQ shishid: AS-REQ from simon@@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Sending 511 bytes to *:4711/tcp peer 127.0.0.1 socket 6 via TLS shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Peer *:4711/tcp peer 127.0.0.1 disconnected on socket 6 shishid: Closing *:4711/tcp peer 127.0.0.1 socket 6 shishid: Listening on *:4711/tcp socket 4 @end example @node Multiple servers @section Multiple servers @cindex remote databases @cindex LDAP @cindex SQL @cindex NFS @cindex IPSEC @cindex rsync Setting up multiple servers is as easy as replicating the user database. Since the default @samp{file} user database is stored in the normal file system, you can use any common tools to replicate a file system. Network file system like NFS (properly secured by, e.g., a point-to-point symmetrically encrypted IPSEC connection) and file synchronizing tools like @samp{rsync} are typical choices. @cindex master server @cindex secondary server The secondary server should be configured just like the master server. If you use the @samp{file} database over NFS you do not have to make any modifications. If you use, e.g., a cron job to @samp{rsync} the directory every hour or so, you may want to add a @samp{--read-only} flag to the Shisa @samp{db} definition (@pxref{Shisa Configuration}). That way, nobody will be lured into creating or changing information in the database on the secondary server, which only would be overwritten during the next synchronization. @example db --read-only file /usr/local/var/backup-shishi @end example @cindex concurrent writers The @samp{file} database is designed so it doesn't require file locking in the file system, which may be unreliable in some network file systems or implementations. It is also designed so that multiple concurrent readers and writers may access the database without causing corruption. @strong{Warning:} The last paragraph is currently not completely accurate. There may be race conditions with concurrent writers. None should cause infinite loops or data loss. However, unexpected results might occur if two writers try to update information about a principal simultaneous. If you use a remote LDAP server or SQL database to store the user database, and access it via a Shisa backend, you have make sure your Shisa backend handle concurrent writers properly. If you use a modern SQL database, this probably is not a concern. If it is a problem, you may be able to work around it by implementing some kind of synchronization or semaphore mechanism. If all else sounds too complicated, you can set up the secondary servers as @samp{--read-only} servers, although you will lose some functionality (like changing passwords via the secondary server, or updating timestamps when the last ticket request occurred). One function that is of particular use for users with remote databases (be it LDAP or SQL) is the ``database override'' feature. Using this you can have the security critical principals (such as the ticket granting ticket) stored on local file system storage, but use the remote database for user principals. Of course, you must keep the local file system storage synchronized between all servers, as before. Here is an example configuration. @example db --read-only file /var/local/master db ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem @end example This instruct the Shisa library to access the two databases sequentially, for each query using the first database that know about the requested principal. If you put the @samp{krbtgt/REALM} principal in the local @samp{file} database, this will override the LDAP interface. Naturally, you can have as many @samp{db} definition lines as you wish. @cindex High Availability Users with remote databases can also investigate a so called @i{High Availability} mode. This is useful if you wish to have your Kerberos servers be able to continue to operate even when the remote database is offline. This is achieved via the @samp{--ignore-errors} flag in the database definition. Here is a sample configuration. @example db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --read-only file /var/cache/ldap-copy @end example This instruct the Shisa library to try the LDAP backend first, but if it fails, instead of returning an error, continue to try the operation on a read only local @samp{file} based database. Of course, write requests will still fail, but it may be better than halting the server completely. To make this work, you first need to set up a cron job on a, say, hourly basis, to make a copy of the remote database and store it in the local file database. That way, when the remote server goes away, fairly current information will still be available locally. @cindex fail over If you also wish to experiment with read-write fail over, here is an idea for the configuration. @example db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --ignore-errors --read-only file /var/cache/ldap-copy db file /var/cache/local-updates @end example This is similar to the previous, but it will ignore errors reading and writing from the first two databases, ultimately causing write attempts to end up in the final @samp{file} based database. Of course, you would need to create tools to feed back any local updates made while the remote server was down. It may also be necessary to create a special backend for this purpose, which can auto create principals that are used. We finish with an example that demonstrate all the ideas presented. @example db --read-only file /var/local/master db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --ignore-errors --read-only file /var/cache/ldap-copy db file /var/cache/local-updates @end example @node Developer information @section Developer information The Programming API for Shisa is described below (@pxref{Kerberos Database Functions}); this section is about extending Shisa, and consequently Shishi, to use your own user database system. You may want to store your Kerberos user information on an LDAP database server, for example. Adding a new backend is straight forward. You need to implement the backend API function set, add the list of API functions to @file{db/db.c} and possibly also add any library dependencies to the Makefile. The simplest way to write a new backend is to start from the existing @samp{file} based database, in @file{db/file.c}, and modify the entry points as needed. Note that the current backend API will likely change before it is frozen. We may describe it in detail here when it has matured. However, currently it is similar to the external Shisa API (@pxref{Kerberos Database Functions}). There should be no need to modify anything else in the Shisa library, and certainly not in the Shishi library or the @file{shishid} server. Naturally, we would appreciate if you would send us your new backend, if you believe it is generally useful (@pxref{Bug Reports}). @c ********************************************************** @c **************** Reference Manual ********************** @c ********************************************************** @node Reference Manual @chapter Reference Manual This chapter discuss the underlying assumptions of Kerberos, contain a glossary to Kerberos concepts, give you background information on choosing realm and principal names, and describe all parameters and configuration file syntaxes for the Shishi tools. @menu * Environmental Assumptions:: Kerberos 5 assumptions about your system. * Glossary of terms:: Glossary of Kerberos related terminology. * Realm and Principal Naming:: How to name your realm and principals. * Shishi Configuration:: Explains the Core Shishi configuration file. * Shisa Configuration:: Explains the Shisa database definition file. * Parameters for shishi:: Command line parameters for 'shishi'. * Parameters for shishid:: Command line parameters for 'shishid'. * Parameters for shisa:: Command line parameters for 'shisa'. * Environment variables:: Overriding compile-time defaults at run-time. * Date input formats:: Details of the understood date formats. @end menu @node Environmental Assumptions @section Environmental Assumptions Kerberos imposes a few assumptions on the environment in which it can properly function: @itemize @bullet @item "Denial of service" attacks are not solved with Kerberos. There are places in the protocols where an intruder can prevent an application from participating in the proper authentication steps. Detection and solution of such attacks (some of which can appear to be not-uncommon "normal" failure modes for the system) is usually best left to the human administrators and users. @item Principals MUST keep their secret keys secret. If an intruder somehow steals a principal's key, it will be able to masquerade as that principal or impersonate any server to the legitimate principal. @item "Password guessing" attacks are not solved by Kerberos. If a user chooses a poor password, it is possible for an attacker to successfully mount an offline dictionary attack by repeatedly attempting to decrypt, with successive entries from a dictionary, messages obtained which are encrypted under a key derived from the user's password. @item Each host on the network MUST have a clock which is "loosely synchronized" to the time of the other hosts; this synchronization is used to reduce the bookkeeping needs of application servers when they do replay detection. The degree of "looseness" can be configured on a per-server basis, but is typically on the order of 5 minutes. If the clocks are synchronized over the network, the clock synchronization protocol MUST itself be secured from network attackers. @item Principal identifiers are not recycled on a short-term basis. A typical mode of access control will use access control lists (ACLs) to grant permissions to particular principals. If a stale ACL entry remains for a deleted principal and the principal identifier is reused, the new principal will inherit rights specified in the stale ACL entry. By not re-using principal identifiers, the danger of inadvertent access is removed. @end itemize @node Glossary of terms @section Glossary of terms @table @asis @item Authentication @cindex Authentication Verifying the claimed identity of a principal. @item Authentication header @cindex Authentication header A record containing a Ticket and an Authenticator to be presented to a server as part of the authentication process. @item Authentication path @cindex Authentication path A sequence of intermediate realms transited in the authentication process when communicating from one realm to another. @item Authenticator @cindex Authenticator A record containing information that can be shown to have been recently generated using the session key known only by the client and server. @item Authorization @cindex Authorization The process of determining whether a client may use a service, which objects the client is allowed to access, and the type of access allowed for each. @item Capability @cindex Capability A token that grants the bearer permission to access an object or service. In Kerberos, this might be a ticket whose use is restricted by the contents of the authorization data field, but which lists no network addresses, together with the session key necessary to use the ticket. @item Ciphertext @cindex Ciphertext The output of an encryption function. Encryption transforms plaintext into ciphertext. @item Client @cindex Client A process that makes use of a network service on behalf of a user. Note that in some cases a Server may itself be a client of some other server (e.g. a print server may be a client of a file server). @item Credentials @cindex Credentials A ticket plus the secret session key necessary to successfully use that ticket in an authentication exchange. @item Encryption Type (etype) @cindex Encryption Type (etype) When associated with encrypted data, an encryption type identifies the algorithm used to encrypt the data and is used to select the appropriate algorithm for decrypting the data. Encryption type tags are communicated in other messages to enumerate algorithms that are desired, supported, preferred, or allowed to be used for encryption of data between parties. This preference is combined with local information and policy to select an algorithm to be used. @item KDC @cindex KDC Key Distribution Center, a network service that supplies tickets and temporary session keys; or an instance of that service or the host on which it runs. The KDC services both initial ticket and ticket-granting ticket requests. The initial ticket portion is sometimes referred to as the Authentication Server (or service). The ticket-granting ticket portion is sometimes referred to as the ticket-granting server (or service). @item Kerberos @cindex Kerberos The name given to the Project Athena's authentication service, the protocol used by that service, or the code used to implement the authentication service. The name is adopted from the three-headed dog which guards Hades. @item Key Version Number (kvno) @cindex Key Version Number (kvno) A tag associated with encrypted data identifies which key was used for encryption when a long lived key associated with a principal changes over time. It is used during the transition to a new key so that the party decrypting a message can tell whether the data was encrypted using the old or the new key. @item Plaintext @cindex Plaintext The input to an encryption function or the output of a decryption function. Decryption transforms ciphertext into plaintext. @item Principal @cindex Principal A named client or server entity that participates in a network communication, with one name that is considered canonical. @item Principal identifier @cindex Principal identifier The canonical name used to uniquely identify each different principal. @item Seal @cindex Seal To encipher a record containing several fields in such a way that the fields cannot be individually replaced without either knowledge of the encryption key or leaving evidence of tampering. @item Secret key @cindex Secret key An encryption key shared by a principal and the KDC, distributed outside the bounds of the system, with a long lifetime. In the case of a human user's principal, the secret key MAY be derived from a password. @item Server @cindex Server A particular Principal which provides a resource to network clients. The server is sometimes referred to as the Application Server. @item Service @cindex Service A resource provided to network clients; often provided by more than one server (for example, remote file service). @item Session key @cindex Session key A temporary encryption key used between two principals, with a lifetime limited to the duration of a single login "session". In the Kerberos system, a session key is generated by the KDC. The session key is distinct from the sub-session key, described next.. @item Sub-session key @cindex Sub-session key A temporary encryption key used between two principals, selected and exchanged by the principals using the session key, and with a lifetime limited to the duration of a single association. The sub- session key is also referred to as the subkey. @item Ticket @cindex Ticket @cindex Kerberos Ticket A record that helps a client authenticate itself to a server; it contains the client's identity, a session key, a timestamp, and other information, all sealed using the server's secret key. It only serves to authenticate a client when presented along with a fresh Authenticator. @end table @node Realm and Principal Naming @section Realm and Principal Naming This section contains the discussion on naming realms and principals from the Kerberos specification. @subsection Realm Names Although realm names are encoded as GeneralStrings and although a realm can technically select any name it chooses, interoperability across realm boundaries requires agreement on how realm names are to be assigned, and what information they imply. To enforce these conventions, each realm MUST conform to the conventions itself, and it MUST require that any realms with which inter-realm keys are shared also conform to the conventions and require the same from its neighbors. Kerberos realm names are case sensitive. Realm names that differ only in the case of the characters are not equivalent. There are presently three styles of realm names: domain, X500, and other. Examples of each style follow: @example domain: ATHENA.MIT.EDU X500: C=US/O=OSF other: NAMETYPE:rest/of.name=without-restrictions @end example Domain syle realm names MUST look like domain names: they consist of components separated by periods (.) and they contain neither colons (:) nor slashes (/). Though domain names themselves are case insensitive, in order for realms to match, the case must match as well. When establishing a new realm name based on an internet domain name it is recommended by convention that the characters be converted to upper case. X.500 names contain an equal (=) and cannot contain a colon (:) before the equal. The realm names for X.500 names will be string representations of the names with components separated by slashes. Leading and trailing slashes will not be included. Note that the slash separator is consistent with Kerberos implementations based on RFC1510, but it is different from the separator recommended in RFC2253. Names that fall into the other category MUST begin with a prefix that contains no equal (=) or period (.) and the prefix MUST be followed by a colon (:) and the rest of the name. All prefixes must be assigned before they may be used. Presently none are assigned. The reserved category includes strings which do not fall into the first three categories. All names in this category are reserved. It is unlikely that names will be assigned to this category unless there is a very strong argument for not using the 'other' category. These rules guarantee that there will be no conflicts between the various name styles. The following additional constraints apply to the assignment of realm names in the domain and X.500 categories: the name of a realm for the domain or X.500 formats must either be used by the organization owning (to whom it was assigned) an Internet domain name or X.500 name, or in the case that no such names are registered, authority to use a realm name MAY be derived from the authority of the parent realm. For example, if there is no domain name for E40.MIT.EDU, then the administrator of the MIT.EDU realm can authorize the creation of a realm with that name. This is acceptable because the organization to which the parent is assigned is presumably the organization authorized to assign names to its children in the X.500 and domain name systems as well. If the parent assigns a realm name without also registering it in the domain name or X.500 hierarchy, it is the parent's responsibility to make sure that there will not in the future exist a name identical to the realm name of the child unless it is assigned to the same entity as the realm name. @subsection Principal Names As was the case for realm names, conventions are needed to ensure that all agree on what information is implied by a principal name. The name-type field that is part of the principal name indicates the kind of information implied by the name. The name-type SHOULD be treated only as a hint to interpreting the meaning of a name. It is not significant when checking for equivalence. Principal names that differ only in the name-type identify the same principal. The name type does not partition the name space. Ignoring the name type, no two names can be the same (i.e. at least one of the components, or the realm, MUST be different). The following name types are defined: @example name-type value meaning NT-UNKNOWN 0 Name type not known NT-PRINCIPAL 1 Just the name of the principal as in DCE, or for users NT-SRV-INST 2 Service and other unique instance (krbtgt) NT-SRV-HST 3 Service with host name as instance (telnet, rcommands) NT-SRV-XHST 4 Service with host as remaining components NT-UID 5 Unique ID NT-X500-PRINCIPAL 6 Encoded X.509 Distingished name [RFC 2253] NT-SMTP-NAME 7 Name in form of SMTP email name (e.g. user@@foo.com) NT-ENTERPRISE 10 Enterprise name - may be mapped to principal name @end example When a name implies no information other than its uniqueness at a particular time the name type PRINCIPAL SHOULD be used. The principal name type SHOULD be used for users, and it might also be used for a unique server. If the name is a unique machine generated ID that is guaranteed never to be reassigned then the name type of UID SHOULD be used (note that it is generally a bad idea to reassign names of any type since stale entries might remain in access control lists). If the first component of a name identifies a service and the remaining components identify an instance of the service in a server specified manner, then the name type of SRV-INST SHOULD be used. An example of this name type is the Kerberos ticket-granting service whose name has a first component of krbtgt and a second component identifying the realm for which the ticket is valid. If the first component of a name identifies a service and there is a single component following the service name identifying the instance as the host on which the server is running, then the name type SRV- HST SHOULD be used. This type is typically used for Internet services such as telnet and the Berkeley R commands. If the separate components of the host name appear as successive components following the name of the service, then the name type SRV-XHST SHOULD be used. This type might be used to identify servers on hosts with X.500 names where the slash (/) might otherwise be ambiguous. A name type of NT-X500-PRINCIPAL SHOULD be used when a name from an X.509 certificate is translated into a Kerberos name. The encoding of the X.509 name as a Kerberos principal shall conform to the encoding rules specified in RFC 2253. A name type of SMTP allows a name to be of a form that resembles a SMTP email name. This name, including an "@@" and a domain name, is used as the one component of the principal name. A name type of UNKNOWN SHOULD be used when the form of the name is not known. When comparing names, a name of type UNKNOWN will match principals authenticated with names of any type. A principal authenticated with a name of type UNKNOWN, however, will only match other names of type UNKNOWN. Names of any type with an initial component of 'krbtgt' are reserved for the Kerberos ticket granting service. @xref{krbtgt,, Name of the TGS}, for the form of such names. @subsubsection Name of server principals The principal identifier for a server on a host will generally be composed of two parts: (1) the realm of the KDC with which the server is registered, and (2) a two-component name of type NT-SRV-HST if the host name is an Internet domain name or a multi-component name of type NT-SRV-XHST if the name of the host is of a form such as X.500 that allows slash (/) separators. The first component of the two- or multi-component name will identify the service and the latter components will identify the host. Where the name of the host is not case sensitive (for example, with Internet domain names) the name of the host MUST be lower case. If specified by the application protocol for services such as telnet and the Berkeley R commands which run with system privileges, the first component MAY be the string 'host' instead of a service specific identifier. @subsubsection Name of the TGS @anchor{krbtgt} The principal identifier of the ticket-granting service shall be composed of three parts: (1) the realm of the KDC issuing the TGS ticket (2) a two-part name of type NT-SRV-INST, with the first part "krbtgt" and the second part the name of the realm which will accept the ticket-granting ticket. For example, a ticket-granting ticket issued by the ATHENA.MIT.EDU realm to be used to get tickets from the ATHENA.MIT.EDU KDC has a principal identifier of "ATHENA.MIT.EDU" (realm), ("krbtgt", "ATHENA.MIT.EDU") (name). A ticket-granting ticket issued by the ATHENA.MIT.EDU realm to be used to get tickets from the MIT.EDU realm has a principal identifier of "ATHENA.MIT.EDU" (realm), ("krbtgt", "MIT.EDU") (name). @subsection Choosing a principal with which to communicate The Kerberos protocol provides the means for verifying (subject to the assumptions in @ref{Environmental Assumptions}) that the entity with which one communicates is the same entity that was registered with the KDC using the claimed identity (principal name). It is still necessary to determine whether that identity corresponds to the entity with which one intends to communicate. When appropriate data has been exchanged in advance, this determination may be performed syntactically by the application based on the application protocol specification, information provided by the user, and configuration files. For example, the server principal name (including realm) for a telnet server might be derived from the user specified host name (from the telnet command line), the "host/" prefix specified in the application protocol specification, and a mapping to a Kerberos realm derived syntactically from the domain part of the specified hostname and information from the local Kerberos realms database. One can also rely on trusted third parties to make this determination, but only when the data obtained from the third party is suitably integrity protected while resident on the third party server and when transmitted. Thus, for example, one should not rely on an unprotected domain name system record to map a host alias to the primary name of a server, accepting the primary name as the party one intends to contact, since an attacker can modify the mapping and impersonate the party with which one intended to communicate. Implementations of Kerberos and protocols based on Kerberos MUST NOT use insecure DNS queries to canonicalize the hostname components of the service principal names. In an environment without secure name service, application authors MAY append a statically configured domain name to unqualified hostnames before passing the name to the security mechanisms, but should do no more than that. Secure name service facilities, if available, might be trusted for hostname canonicalization, but such canonicalization by the client SHOULD NOT be required by KDC implementations. Implementation note: Many current implementations do some degree of canonicalization of the provided service name, often using DNS even though it creates security problems. However there is no consistency among implementations about whether the service name is case folded to lower case or whether reverse resolution is used. To maximize interoperability and security, applications SHOULD provide security mechanisms with names which result from folding the user-entered name to lower case, without performing any other modifications or canonicalization. @subsection Principal Name Form Principal names consist of a sequence of strings, which is often tedious to parse. Therefor, Shishi often uses a ``printed'' form of principal which embed the entire principal name string sequence, and optionally also the realm, into one string. The format is taken from the Kerberos 5 GSS-API mechanism (RFC 1964). The elements included within this name representation are as follows, proceeding from the beginning of the string: @enumerate @item One or more principal name components; if more than one principal name component is included, the components are separated by `/`. Arbitrary octets may be included within principal name components, with the following constraints and special considerations: @enumerate a @item Any occurrence of the characters `@@` or `/` within a name component must be immediately preceded by the `\` quoting character, to prevent interpretation as a component or realm separator. @item The ASCII newline, tab, backspace, and null characters may occur directly within the component or may be represented, respectively, by `\n`, `\t`, `\b`, or `\0`. @item If the `\` quoting character occurs outside the contexts described in (1a) and (1b) above, the following character is interpreted literally. As a special case, this allows the doubled representation `\\` to represent a single occurrence of the quoting character. @item An occurrence of the `\` quoting character as the last character of a component is illegal. @end enumerate @item Optionally, a `@@` character, signifying that a realm name immediately follows. If no realm name element is included, the local realm name is assumed. The `/` , `:`, and null characters may not occur within a realm name; the `@@`, newline, tab, and backspace characters may be included using the quoting conventions described in (1a), (1b), and (1c) above. @end enumerate @node Shishi Configuration @section Shishi Configuration @cindex configuration file The valid configuration file tokens are described here. The user configuration file is typically located in @file{~/.shishi/shishi.conf} (compare @samp{shishi --configuration-file}) and the system configuration is typically located in @file{/usr/local/etc/shishi/shishi.conf} (compare @samp{shishi --system-configuration-file}). If the first non white space character of a line is a '#', the line is ignored. Empty lines are also ignored. All tokens are valid in both the system and the user configuration files, and have the same meaning. However, as the system file is supposed to apply to all users on a system, it would not make sense to use some tokens in that file. For example, the @samp{default-principal} is rarely useful in a system configuration file. @subsection @samp{default-realm} Specify the default realm, by default the hostname of the host is used. E.g., @example default-realm JOSEFSSON.ORG @end example @subsection @samp{default-principal} Specify the default principal, by default the login username is used. E.g., @example default-principal jas @end example @subsection @samp{client-kdc-etypes} Specify which encryption types client asks server to respond in during AS/TGS exchanges. List valid encryption types, in preference order. Supported algorithms include aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1-kd, des-cbc-md5, des-cbc-md4, des-cbc-crc and null. This option also indicates which encryption types are accepted by the client when receiving the response. Note that the preference order is not cryptographically protected, so a man in the middle can modify the order without being detected. Thus, only specify encryption types you trust completely here. The default only includes aes256-cts-hmac-sha1-96, as suggested by RFC1510bis. E.g., @example client-kdc-etypes=aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 @end example @subsection @samp{verbose}, @samp{verbose-asn1}, @samp{verbose-noise}, @samp{verbose-crypto}, @samp{verbose-crypto-noise} Enable verbose library messages. E.g., @example verbose verbose-noise @end example @subsection @samp{realm-kdc} @anchor{realm-kdc} Specify KDC addresses for realms. Value is @samp{REALM,KDCADDRESS[/TRANSPORT][,KDCADDRESS[/TRANSPORT]...]}. KDCADDRESS is the hostname or IP address of KDC. Optional TRANSPORT is ``udp'' for UDP, ``tcp'' for TCP, and ``tls'' for TLS connections. By default UDP is tried first, and TCP used as a fallback if the KRB_ERR_RESPONSE_TOO_BIG error is received. If not specified, Shishi tries to locate the KDC using SRV RRs, which is recommended. This option should normally only be used during experiments, or to access badly maintained realms. @example realm-kdc=JOSEFSSON.ORG,ristretto.josefsson.org @end example @subsection @samp{server-realm} Specify realm for servers. Value is @samp{REALM,SERVERREGEXP[,SERVERREGEXP...]}. SERVERREGEXP is a regular expression matching servers in the realm. The first match is used. E.g., @example server-realm=JOSEFSSON.ORG,.josefsson.org @end example Note: currently not used. @subsection @samp{kdc-timeout}, @samp{kdc-retries} How long shishi waits for a response from a KDC before continuing to next KDC for realm. The default is 5 seconds. E.g., @example kdc-timeout=10 @end example How many times shishi sends a request to a KDC before giving up. The default is 3 times. E.g., @example kdc-retries=5 @end example @subsection @samp{stringprocess} How username and passwords entered from the terminal, or taken from the command line, are processed. "none": no processing is used. "stringprep": convert from locale charset to UTF-8 and process using experimental RFC 1510 stringprep profile. It can also be a string indicating a character set supported by iconv via libstringprep, in which case data is converted from locale charset into the indicated character set. E.g., UTF-8, ISO-8859-1, KOI-8, EBCDIC-IS-FRISS are supported on GNU systems. On some systems you can use "locale -m" to list available character sets. By default, the "none" setting is used which is consistent with RFC 1510 that is silent on the issue. In practice, however, converting to UTF-8 improves interoperability. E.g., @example stringprocess=UTF-8 @end example @subsection @samp{ticket-life} Specify default ticket life time. The string can be in almost any common format. It can contain month names, time zones, `am' and `pm', `yesterday', `ago', `next', etc. @xref{Date input formats}, for the long story. As an extra feature, if the time specified by your string correspond to a time during the last 24 hours, an extra day is added to it. This allows you to specify relative times such as "17:00" to always mean the next 17:00, even if your system clock happens to be 17:30. The default is 8 hours. E.g., @example #ticket-life=8 hours #ticket-life=1 day ticket-life=17:00 @end example @subsection @samp{renew-life} Specify how long a renewable ticket should remain renewable. See ticket-life for the syntax. The extra feature that handles negative values within the last 2 hours is not active here. The default is 7 days. E.g., @example #renew-life=1 week #renew-life=friday 17:00 renew-life=sunday @end example @node Shisa Configuration @section Shisa Configuration @cindex database definition @cindex specifying user database @cindex user database definition The configuration file for Shisa is typically stored in @file{/usr/local/etc/shishi/shisa.conf}. If the first non white space character of a line is a '#', the line is ignored. Empty lines are also ignored. @subsection @samp{db} Currently the only configuration options available is the @code{db} token that define the databases to use. The syntax is: @example db [OPTIONS] [LOCATION] [PARAMETERS ...] @end example Specify the data sources for Kerberos 5 data. Multiple entries, even of the same data source type, are allowed. The data sources are accessed in the same sequence as they are defined here. If an entry is found in one data source, it will be used for the operations, without searching the remaining data sources. Valid OPTIONS include: @example --read-only No data is written to this data source. --ignore-errors Ignore failures in this backend. @end example The default (when the configuration file is empty) uses one "file" data source (see below), but for a larger installation you may want to combine several data sources. Here is an example. @example db --read-only file /var/local/master db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --read-only file /var/cache/ldap-copy @end example This demonstrate how you can store critical principals on local disk (the first entry, /var/local/master) that will always be found without looking in the LDAP directory. The critical principals could be, e.g., krbtgt/EXAMPLE.ORG. The second entry denote a LDAP server that could hold user principals. As you can see, Shisa will not let the caller know about errors with the LDAP source (they will be logged, however). Instead, if for instance the LDAP server has crashed, Shisa would continue and read from the /var/cache/ldap-copy file source. That file source may have been set up to contain a copy of the data in the LDAP server, perhaps made on an hourly basis, so that your server will be able to serve recent data even in case of a crash. Any updates or passwords change requests will however not be possible while the LDAP server is inaccessible, to reduce the problem of synchronizing data back into the LDAP server once it is online again. Currently only the "file" data source is supported, and denote a data source that use the standard file system for storage. Valid syntaxes for the "file" database: @example db file PATH @end example Examples: @example db file /var/shishi db file /usr/share/shishi read-only @end example If no @samp{db} tokens are present, the default will be: @example db file /usr/local/var/shishi @end example @node Parameters for shishi @section Parameters for shishi If no command is given, Shishi try to make sure you have a ticket granting ticket for the default realm, and then display it. Mandatory arguments to long options are mandatory for short options too. @example Usage: shishi [OPTIONS]... [CLIENT [SERVER]]... -h, --help Print help and exit -V, --version Print version and exit Commands: -d, --destroy Destroy tickets in local cache, limited by any --client-name or --server-name. (default=off) -l, --list List tickets in local cache, limited by any --client-name and --server-name. (default=off) -r, --renew Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm. (default=off) Flags: --forwardable Get a forwardable ticket, i.e., one that can be used to get forwarded tickets. (default=off) --forwarded Get a forwarded ticket. (default= off) --proxiable Get a proxiable ticket, i.e., one that can be used to get proxy tickets. (default=off) --proxy Get a proxy ticket. (default=off) --renewable Get a renewable ticket. (default= off) Options: --client-name=NAME Client name. Default is login username. -E, --encryption-type=ETYPE,[ETYPE...] Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. -e, --endtime=STRING Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time. --realm=STRING Set default realm. --renew-till=STRING Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time. --server-name=NAME Server name. Default is 'krbtgt/REALM' where REALM is client realm. -s, --starttime=STRING Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately. --ticket-granter=NAME Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@@REALM' where REALM is client realm. Other options: --configuration-file=FILE Read user configuration from FILE. -c, --ticket-file=FILE Read tickets from FILE. -o, --library-options=STRING Parse STRING as a configuration file statement. -q, --quiet Don't produce any diagnostic output. (default=off) --system-configuration-file=FILE Read system configuration from FILE. --ticket-write-file=FILE Write tickets from FILE. Default is to write them back to where they were read from. -v, --verbose Produce verbose output. (default=off) @end example @node Parameters for shishid @section Parameters for shishid If no parameters are specified, @samp{shishid} listens on the defaults interfaces and answers incoming requests using the keys in the default key file. Mandatory arguments to long options are mandatory for short options too. @example Usage: shishid [OPTIONS]... -h, --help Print help and exit -V, --version Print version and exit Commands: -l, --listen=[FAMILY:]ADDR:PORT/TYPE Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'. -u, --setuid=NAME After binding socket, set user identity. TLS settings: --no-tls Disable TLS support (default=off) --x509cafile=FILE X.509 certificate authorities used to verify client certificates, in PEM format. --x509certfile=FILE X.509 server certificate, in PEM format. --x509crlfile=FILE X.509 certificate revocation list to check for revoked client certificates, in PEM format. --x509keyfile=FILE X.509 server certificate key, in PEM format. --resume-limit=SHORT Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume). (default=`50') Other options: -c, --configuration-file=FILE Use specified configuration file. -v, --verbose Produce verbose output. Use multiple times to increase amount of information. -q, --quiet Don't produce any diagnostic output. (default=off) @end example @node Parameters for shisa @section Parameters for shisa The purpose of @samp{shisa} is to manipulate information stored in the Kerberos 5 database used by Shishi. Mandatory arguments to long options are mandatory for short options too. @example Usage: shisa [OPTIONS]... [REALM [PRINCIPAL]]... -h, --help Print help and exit -V, --version Print version and exit Operations: -a, --add Add realm or principal to database. -d, --dump Dump entries in database. -n, --key-add Add new key to a principal in database. --key-remove Remove a key from a principal in database. -l, --list List entries in database. -m, --modify Modify principal entry in database. -r, --remove Remove realm or principal from database. Parameters: -f, --force Allow removal of non-empty realms. (default=off) --enabled Only dump or list enabled principals. (default=off) --disabled Only dump or list disabled principals. (default=off) --keys Print cryptographic key and password in hostkey format. (default=off) Values: -E, --encryption-type=STRING Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. --key-version=NUMBER Version of key. --password[=STRING] Derive key from this password. --random Use a random key. (default) --salt=STRING Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name. --string-to-key-parameter=HEX Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver. Other options: -c, --configuration-file=FILE Use specified configuration file. -o, --library-options=STRING Parse string as configuration file statement. -v, --verbose Produce verbose output. (default=off) -q, --quiet Don't produce any diagnostic output. (default=off) @end example @node Environment variables @section Environment variables A few of the compile-time defaults may be overridden at run-time by using environment variables. The following variables are supported. @itemize @bullet @item @env{SHISHI_CONFIG} Specify the location of the default system configuration file. Used by the Shishi library. If not specified, the default is specified at compile-time and is usually @file{$prefix/etc/shishi.conf}. @item @env{SHISHI_HOME} Specify the user specific directory for configuration files, ticket cache, etc. Used by the Shishi library. If not specified, it is computed as @code{$HOME/.shishi}. @item @env{SHISHI_USER} Specify the default principal user name. Used by the Shishi library. If not specified, it is taken from the environment variable @env{USER}. @item @env{SHISHI_TICKETS} Specify the file name of the ticket cache. Used by the Shishi library. If not specified, it will be @code{$SHISHI_HOME/tickets}, or @code{$HOME/.shishi/tickets} if @code{$SHISHI_HOME} is not specified. @end itemize @lowersections @include parse-datetime.texi @raisesections @c ********************************************************** @c *************** Programming Manual ********************* @c ********************************************************** @node Programming Manual @chapter Programming Manual @cindex Application Programming Interface (API) This chapter describes all the publicly available functions in the library. @menu * Preparation:: What you should do before using the library. * Initialization Functions:: Creating library handle, configuration file. * Ticket Set Functions:: High-level ticket management functions. * AP-REQ and AP-REP Functions:: Client/Server authentication functions. * SAFE and PRIV Functions:: Client/Server session data functions. * Ticket Functions:: Medium-level ticket manipulation functions. * AS Functions:: Medium-level initial authentication functions. * TGS Functions:: Medium-level authentication functions. * Ticket (ASN.1) Functions:: Low-level Ticket functions. * AS/TGS Functions:: Low-level KDC functions; AS and TGS. * Authenticator Functions:: Low-level authenticator functions. * KRB-ERROR Functions:: Low-level KRB-ERROR functions. * Cryptographic Functions:: Low-level cryptographic functions. * X.509 Functions:: Utility functions for X.509 support. * Utility Functions:: Utilities for use in the global context. * ASN.1 Functions:: Perform low-level ASN.1 manipulations. * Error Handling:: Error codes and such. * Examples:: Example code. * Kerberos Database Functions:: The Shisa generic database interface. * Generic Security Service:: If you want to use the GSS API instead. @end menu @node Preparation @section Preparation To use `Libshishi', you have to perform some changes to your sources and the build system. The necessary changes are small and explained in the following sections. At the end of this chapter, it is described how the library is initialized, and how the requirements of the library are verified. A faster way to find out how to adapt your application for use with `Libshishi' may be to look at the examples at the end of this manual (@pxref{Examples}). @menu * Header:: * Initialization:: * Version Check:: * Building the source:: * Autoconf tests:: @end menu @node Header @subsection Header All interfaces (data types and functions) of the library are defined in the header file `shishi.h'. You must include this in all programs using the library, either directly or through some other header file, like this: @example #include @end example The name space of `Libshishi' is @code{shishi_*} for function names, @code{Shishi*} for data types and @code{SHISHI_*} for other symbols. In addition the same name prefixes with one prepended underscore are reserved for internal use and should never be used by an application. @node Initialization @subsection Initialization `Libshishi' must be initialized before it can be used. The library is initialized by calling @code{shishi_init} (@pxref{Initialization Functions}). The resources allocated by the initialization process can be released if the application no longer has a need to call `Libshishi' functions, this is done by calling @code{shishi_done}. In order to take advantage of the internationalisation features in `Libshishi', such as translated error messages, the application must set the current locale using @code{setlocale} before initializing `Libshishi'. @node Version Check @subsection Version Check It is often desirable to check that the version of `Libshishi' used is indeed one which fits all requirements. Even with binary compatibility new features may have been introduced but due to problem with the dynamic linker an old version is actually used. So you may want to check that the version is okay right after program startup. @include texi/version.c.texi The normal way to use the function is to put something similar to the following early in your @code{main}: @example if (!shishi_check_version (SHISHI_VERSION)) @{ printf ("shishi_check_version failed:\n" "Header file incompatible with shared library.\n"); exit (EXIT_FAILURE); @} @end example @node Building the source @subsection Building the source @cindex Compiling your application If you want to compile a source file including the `shishi.h' header file, you must make sure that the compiler can find it in the directory hierarchy. This is accomplished by adding the path to the directory in which the header file is located to the compilers include file search path (via the @option{-I} option). However, the path to the include file is determined at the time the source is configured. To solve this problem, `Libshishi' uses the external package @command{pkg-config} that knows the path to the include file and other configuration options. The options that need to be added to the compiler invocation at compile time are output by the @option{--cflags} option to @command{pkg-config shishi}. The following example shows how it can be used at the command line: @example gcc -c foo.c `pkg-config shishi --cflags` @end example Adding the output of @samp{pkg-config shishi --cflags} to the compilers command line will ensure that the compiler can find the `Libshishi' header file. A similar problem occurs when linking the program with the library. Again, the compiler has to find the library files. For this to work, the path to the library files has to be added to the library search path (via the @option{-L} option). For this, the option @option{--libs} to @command{pkg-config shishi} can be used. For convenience, this option also outputs all other options that are required to link the program with the `Libshishi' libararies (in particular, the @samp{-lshishi} option). The example shows how to link @file{foo.o} with the `Libshishi' library to a program @command{foo}. @example gcc -o foo foo.o `pkg-config shishi --libs` @end example Of course you can also combine both examples to a single command by specifying both options to @command{pkg-config}: @example gcc -o foo foo.c `pkg-config shishi --cflags --libs` @end example @node Autoconf tests @subsection Autoconf tests @cindex Autoconf tests @cindex Configure tests If you work on a project that uses Autoconf (@pxref{top, GNU Autoconf,, autoconf}) to help find installed libraries, the suggestions in the previous section are not the entire story. There are a few methods to detect and incorporate Shishi into your Autoconf based package. The preferred approach, is to use Libtool in your project, and use the normal Autoconf header file and library tests. @subsubsection Autoconf test via @samp{pkg-config} If your audience is a typical GNU/Linux desktop, you can often assume they have the @samp{pkg-config} tool installed, in which you can use its Autoconf M4 macro to find and set up your package for use with Shishi. The following illustrate this scenario. @example AC_ARG_ENABLE(kerberos_v5, AC_HELP_STRING([--disable-kerberos_v5], [don't use the KERBEROS_V5 mechanism]), kerberos_v5=$enableval) if test "$kerberos_v5" != "no" ; then PKG_CHECK_MODULES(SHISHI, shishi >= 0.0.0, [kerberos_v5=yes], [kerberos_v5=no]) if test "$kerberos_v5" != "yes" ; then kerberos_v5=no AC_MSG_WARN([shishi not found, disabling Kerberos 5]) else kerberos_v5=yes AC_DEFINE(USE_KERBEROS_V5, 1, [Define to 1 if you want Kerberos 5.]) fi fi AC_MSG_CHECKING([if Kerberos 5 should be used]) AC_MSG_RESULT($kerberos_v5) @end example @subsubsection Standalone Autoconf test using Libtool If your package uses Libtool(@pxref{top, GNU Libtool,, libtool}), you can use the normal Autoconf tests to find the Shishi library and rely on the Libtool dependency tracking to include the proper dependency libraries (e.g., Libidn). The following illustrate this scenario. @example AC_CHECK_HEADER(shishi.h, AC_CHECK_LIB(shishi, shishi_check_version, [kerberos5=yes AC_SUBST(SHISHI_LIBS, -lshishi)], kerberos5=no), kerberos5=no) AC_ARG_ENABLE(kerberos5, AC_HELP_STRING([--disable-kerberos5], [disable Kerberos 5 unconditionally]), kerberos5=$enableval) if test "$kerberos5" != "no" ; then AC_DEFINE(USE_KERBEROS_V5, 1, [Define to 1 if you want Kerberos 5.]) else AC_MSG_WARN([Shishi not found, disabling Kerberos 5]) fi AC_MSG_CHECKING([if Kerberos 5 should be used]) AC_MSG_RESULT($kerberos5) @end example @subsubsection Standalone Autoconf test If your package does not use Libtool, as well as detecting the Shishi library as in the previous case, you must also detect whatever dependencies Shishi requires to work (e.g., libidn). Since the dependencies are in a state of flux, we do not provide an example and we do not recommend this approach, unless you are experienced developer. @node Initialization Functions @section Initialization Functions @include texi/init.c.texi @include texi/cfg.c.texi @node Ticket Set Functions @section Ticket Set Functions A ``ticket set'' is, as the name implies, a collection of tickets. Functions are provided to read tickets from file into a ticket set, to query number of tickets in the set, to extract a given ticket from the set, to search the ticket set for tickets matching certain criterium, to write the ticket set to a file, etc. High level functions for performing a initial authentication (@pxref{AS Functions}) or subsequent authentication (@pxref{TGS Functions}) and storing the new ticket in the ticket set are also provided. @xref{Ticket Functions}, to manipulate each individual ticket. @xref{Ticket (ASN.1) Functions}, for low-level ASN.1 manipulation. @include texi/tkts.c.texi @node AP-REQ and AP-REP Functions @section AP-REQ and AP-REP Functions The ``AP-REQ'' and ``AP-REP'' are ASN.1 structures used by application client and servers to prove to each other who they are. The structures contain auxilliary information, together with an authenticator (@pxref{Authenticator Functions}) which is the real cryptographic proof. The following illustrates the AP-REQ and AP-REP ASN.1 structures. @verbatim AP-REQ ::= [APPLICATION 14] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (14), ap-options [2] APOptions, ticket [3] Ticket, authenticator [4] EncryptedData {Authenticator, { keyuse-pa-TGSReq-authenticator | keyuse-APReq-authenticator }} } AP-REP ::= [APPLICATION 15] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (15), enc-part [2] EncryptedData {EncAPRepPart, { keyuse-EncAPRepPart }} } EncAPRepPart ::= [APPLICATION 27] SEQUENCE { ctime [0] KerberosTime, cusec [1] Microseconds, subkey [2] EncryptionKey OPTIONAL, seq-number [3] UInt32 OPTIONAL } @end verbatim @include texi/ap.c.texi @include texi/apreq.c.texi @include texi/aprep.c.texi @include texi/encapreppart.c.texi @node SAFE and PRIV Functions @section SAFE and PRIV Functions The ``KRB-SAFE'' is an ASN.1 structure used by application client and servers to exchange integrity protected data. The integrity protection is keyed, usually with a key agreed on via the AP exchange (@pxref{AP-REQ and AP-REP Functions}). The following illustrates the KRB-SAFE ASN.1 structure. @verbatim KRB-SAFE ::= [APPLICATION 20] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (20), safe-body [2] KRB-SAFE-BODY, cksum [3] Checksum } KRB-SAFE-BODY ::= SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress, r-address [5] HostAddress OPTIONAL } @end verbatim @include texi/safe.c.texi The ``KRB-PRIV'' is an ASN.1 structure used by application client and servers to exchange confidential data. The confidentiality is keyed, usually with a key agreed on via the AP exchange (@pxref{AP-REQ and AP-REP Functions}). The following illustrates the KRB-PRIV ASN.1 structure. @verbatim KRB-PRIV ::= [APPLICATION 21] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (21), -- NOTE: there is no [2] tag enc-part [3] EncryptedData -- EncKrbPrivPart } EncKrbPrivPart ::= [APPLICATION 28] SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress -- sender's addr --, r-address [5] HostAddress OPTIONAL -- recip's addr } @end verbatim @include texi/priv.c.texi @node Ticket Functions @section Ticket Functions A Ticket is an ASN.1 structured that can be used to authenticate the holder to services. It contain an encrypted part, which the ticket holder cannot see, but can be encrypted by the service, and various information about the user and service, including an encryption key to use for the connection. @xref{Ticket (ASN.1) Functions}, for more details on the ASN.1 structure of a ticket. @include texi/tkt.c.texi @node AS Functions @section AS Functions The Authentication Service (AS) is used to get an initial ticket using e.g. your password. The following illustrates the AS-REQ and AS-REP ASN.1 structures. @verbatim -- Request -- AS-REQ ::= KDC-REQ {10} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- AS-REP ::= KDC-REP {11, EncASRepPart, {keyuse-EncASRepPart}} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncASRepPart ::= [APPLICATION 25] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } @end verbatim @include texi/as.c.texi @node TGS Functions @section TGS Functions The Ticket Granting Service (TGS) is used to get subsequent tickets, authenticated by other tickets (so called ticket granting tickets). The following illustrates the TGS-REQ and TGS-REP ASN.1 structures. @verbatim -- Request -- TGS-REQ ::= KDC-REQ {12} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- TGS-REP ::= KDC-REP {13, EncTGSRepPart, { keyuse-EncTGSRepPart-sesskey | keyuse-EncTGSRepPart-subkey }} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncTGSRepPart ::= [APPLICATION 26] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } @end verbatim @include texi/tgs.c.texi @node Ticket (ASN.1) Functions @section Ticket (ASN.1) Functions @xref{Ticket Functions}, for an high-level overview of tickets. The following illustrates the Ticket and EncTicketPart ASN.1 structures. @verbatim Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno [0] INTEGER (5), realm [1] Realm, sname [2] PrincipalName, enc-part [3] EncryptedData -- EncTicketPart } -- Encrypted part of ticket EncTicketPart ::= [APPLICATION 3] SEQUENCE { flags [0] TicketFlags, key [1] EncryptionKey, crealm [2] Realm, cname [3] PrincipalName, transited [4] TransitedEncoding, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, caddr [9] HostAddresses OPTIONAL, authorization-data [10] AuthorizationData OPTIONAL } @end verbatim @include texi/ticket.c.texi @include texi/encticketpart.c.texi @node AS/TGS Functions @section AS/TGS Functions The Authentication Service (AS) is used to get an initial ticket using e.g. your password. The Ticket Granting Service (TGS) is used to get subsequent tickets using other tickets. Protocol wise the procedures are very similar, which is the reason they are described together. The following illustrates the AS-REQ, TGS-REQ and AS-REP, TGS-REP ASN.1 structures. Most of the functions use the mnemonic ``KDC'' instead of either AS or TGS, which means the function operates on both AS and TGS types. Only where the distinction between AS and TGS is important are the AS and TGS names used. Remember, these are low-level functions, and normal applications will likely be satisfied with the AS (@pxref{AS Functions}) and TGS (@pxref{TGS Functions}) interfaces, or the even more high-level Ticket Set (@pxref{Ticket Set Functions}) interface. @verbatim -- Request -- AS-REQ ::= KDC-REQ {10} TGS-REQ ::= KDC-REQ {12} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- AS-REP ::= KDC-REP {11, EncASRepPart, {keyuse-EncASRepPart}} TGS-REP ::= KDC-REP {13, EncTGSRepPart, { keyuse-EncTGSRepPart-sesskey | keyuse-EncTGSRepPart-subkey }} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncASRepPart ::= [APPLICATION 25] EncKDCRepPart EncTGSRepPart ::= [APPLICATION 26] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } @end verbatim @include texi/kdc.c.texi @include texi/kdcreq.c.texi @include texi/kdcrep.c.texi @include texi/enckdcreppart.c.texi @node Authenticator Functions @section Authenticator Functions An ``Authenticator'' is an ASN.1 structure that work as a proof that an entity owns a ticket. It is usually embedded in the AP-REQ structure (@pxref{AP-REQ and AP-REP Functions}), and you most likely want to use an AP-REQ instead of a Authenticator in normal applications. The following illustrates the Authenticator ASN.1 structure. @verbatim Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno [0] INTEGER (5), crealm [1] Realm, cname [2] PrincipalName, cksum [3] Checksum OPTIONAL, cusec [4] Microseconds, ctime [5] KerberosTime, subkey [6] EncryptionKey OPTIONAL, seq-number [7] UInt32 OPTIONAL, authorization-data [8] AuthorizationData OPTIONAL } @end verbatim @include texi/authenticator.c.texi @node KRB-ERROR Functions @section KRB-ERROR Functions The ``KRB-ERROR'' is an ASN.1 structure that can be returned, instead of, e.g., KDC-REP or AP-REP, to indicate various error conditions. Unfortunately, the semantics of several of the fields are ill specified, so the typically procedure is to extract ``e-text'' and/or ``e-data'' and show it to the user. The following illustrates the KRB-ERROR ASN.1 structure. @verbatim KRB-ERROR ::= [APPLICATION 30] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (30), ctime [2] KerberosTime OPTIONAL, cusec [3] Microseconds OPTIONAL, stime [4] KerberosTime, susec [5] Microseconds, error-code [6] Int32, crealm [7] Realm OPTIONAL, cname [8] PrincipalName OPTIONAL, realm [9] Realm -- service realm --, sname [10] PrincipalName -- service name --, e-text [11] KerberosString OPTIONAL, e-data [12] OCTET STRING OPTIONAL } @end verbatim @include texi/krberror.c.texi @node Cryptographic Functions @section Cryptographic Functions Underneath the high-level functions described earlier, cryptographic operations are happening. If you need to access these cryptographic primitives directly, this section describes the functions available. Most cryptographic operations need keying material, and cryptographic keys have been isolated into it's own data structure @code{Shishi_key}. The following illustrates it's contents, but note that you cannot access it's elements directly but must use the accessor functions described below. @verbatim struct Shishi_key { int type; /* RFC 1510 encryption integer type */ char *value; /* Cryptographic key data */ int version; /* RFC 1510 ``kvno'' */ }; @end verbatim All functions that operate on this data structure are described now. @include texi/key.c.texi Applications that run uninteractively may need keying material. In these cases, the keys are stored in a file, a file that is normally stored on the local host. The file should be protected from unauthorized access. The file is in ASCII format and contains keys as outputed by @code{shishi_key_print}. All functions that handle these keys sets are described now. @include texi/keys.c.texi The previous functions require that the filename is known. For some applications, servers, it makes sense to provide a system default. These key sets used by server applications are known as ``hostkeys''. Here are the functions that operate on hostkeys (they are mostly wrappers around generic key sets). @include texi/hostkeys.c.texi After creating the key structure, it can be used to encrypt and decrypt data, calculate checksum on data etc. All available functions are described now. @include texi/crypto.c.texi An easier way to use encryption and decryption if your application repeatedly calls, e.g., @code{shishi_encrypt_ivupdate}, is to use the following functions. They store the key, initialization vector, etc, in a context, and the encryption and decryption operations update the IV within the context automatically. @include texi/crypto-ctx.c.texi Also included in Shishi is an interface to the really low-level cryptographic primitives. They map directly on the underlying cryptographic library used (i.e., Gnulib or Libgcrypt) and is used internally by Shishi. @include texi/low-crypto.c.texi @node X.509 Functions @section X.509 Functions The functions described in this section are used by the STARTTLS functionality, see @ref{Kerberos via TLS}. @include texi/pki.c.texi @node Utility Functions @section Utility Functions @include texi/realm.c.texi @include texi/principal.c.texi @include texi/authorize.c.texi @include texi/gztime.c.texi @include texi/password.c.texi @include texi/resolv.c.texi @node ASN.1 Functions @section ASN.1 Functions @include texi/asn1.c.texi @node Error Handling @section Error Handling @cindex Error Handling Most functions in `Libshishi' are returning an error if they fail. For this reason, the application should always catch the error condition and take appropriate measures, for example by releasing the resources and passing the error up to the caller, or by displaying a descriptive message to the user and cancelling the operation. Some error values do not indicate a system error or an error in the operation, but the result of an operation that failed properly. @menu * Error Values:: A list of all error values used. * Error Functions:: Error handling related functions. @end menu @node Error Values @subsection Error Values Errors are returned as an @code{int}. Except for the SHISHI_OK case, an application should always use the constants instead of their numeric value. Applications are encouraged to use the constants even for SHISHI_OK as it improves readability. Possible values are: @table @code @item SHISHI_OK This value indicates success. The value of this error is guaranteed to always be @code{0} so you may use it in boolean constructs. @include shishi-api-error-labels.texi @end table @node Error Functions @subsection Error Functions @include texi/error.c.texi @node Examples @section Examples @cindex Examples This section will be extended to contain walk-throughs of example code that demonstrate how `Shishi' is used to write your own applications that support Kerberos 5. The rest of the current section consists of some crude hints for the example client/server applications that is part of Shishi, taken from an email but saved here for lack of a better place to put it. There are two programs: 'client' and 'server' in src/. The client output an AP-REQ, waits for an AP-REP, and then simply reads data from stdin. The server waits for an AP-REQ, parses it and prints an AP-REP, and then read data from stdin. Both programs accept a Kerberos server name as the first command line argument. Your KDC must know this server, since the client tries to get a ticket for it (first it gets a ticket granting ticket for the default username), and you must write the key for the server into /usr/local/etc/shishi.keys on the Shishi format, e.g.: @example -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: sample/latte.josefsson.org Realm: JOSEFSSON.ORG 8W0VrQQBpxlACPQEqN91EHxbvFFo2ltt -----END SHISHI KEY----- @end example You must extract the proper encryption key from the KDC in some way. (This part will be easier when Shishi include a KDC, a basic one isn't far away, give me a week or to.) The intention is that the data read, after the authentication phase, should be protected using KRB_SAFE (see RFC) but I haven't added this yet. @node Kerberos Database Functions @section Kerberos Database Functions @cindex Shisa API @cindex Database interface Shisa is a separate and standalone library from Shishi (@pxref{Introduction to Shisa}). If you only wish to manipulate the information stored in the Kerberos user database used by Shishi, you do not need to link or use the Shishi library at all. However, you may find it useful to combine the two libraries. For two real world examples on using the Shisa library, refer to @file{src/shisa.c} (Shisa command line tool) and @file{src/kdc.c} (part of Shishid server). Shisa uses two @samp{struct}s to carry information. The first, @code{Shisa_principal}, is used to hold information about principals. The struct does not contain pointers to strings etc, so the library assumes the caller is responsible for allocating and deallocating the struct itself. Each such struct is (uniquely) identified by the combination of principal name and realm name. @example struct Shisa_principal @{ int isdisabled; uint32_t kvno; time_t notusedbefore; time_t lastinitialtgt; /* time of last initial request for a TGT */ time_t lastinitialrequest; /* time of last initial request */ time_t lasttgt; /* time of issue for the newest TGT used */ time_t lastrenewal; /* time of the last renewal */ time_t passwordexpire; /* time when the password will expire */ time_t accountexpire; /* time when the account will expire. */ @}; typedef struct Shisa_principal Shisa_principal; @end example The second structure is called @code{Shisa_key} and hold information about cryptographic keys. Because the struct contain pointers, and the caller cannot know how many keys a principal have, the Shisa library manages memory for the struct. The library allocate the structs, and the pointers within them. The caller may deallocate them, but it is recommended to use @code{shisa_key_free} or @code{shisa_keys_free} instead. Note that each principal may have multiple keys. @example struct Shisa_key @{ uint32_t kvno; int32_t etype; int priority; char *key; size_t keylen; char *salt; size_t saltlen; char *str2keyparam; size_t str2keyparamlen; char *password; @}; typedef struct Shisa_key Shisa_key; @end example Shisa is typically initialized by calling @code{shisa_init}, and deinitialized (when the application no longer need to use Shisa, typically when it shuts down) by calling @code{shisa_done}, but here are the complete (de)initialization interface functions. @include texi/setup.c.texi The default configuration file is typically read automatically by calling @code{shisa_init}, but if you wish to manually access the Shisa configuration file functions, here is the complete interface. @include texi/config.c.texi The core part of the Shisa interface follows. The typical procedure is to use @code{shisa_principal_find} to verify that a specific principal exists, and to extract some information about it, and then use @code{shisa_keys_find} to get the cryptographic keys for the principal, usually suppliying some hints as to which of all keys you are interested in (e.g., key version number and encryption algorithm number). @include texi/core.c.texi Error handling is similar to that for Shishi in general (@pxref{Error Handling}), i.e., you invoke @code{shisa_strerror} on the integer return value received by some function, if the return value is non-zero. Below is the complete interface. @include texi/err.c.texi @node Generic Security Service @section Generic Security Service @cindex Generic Security Service @cindex GSS-API @cindex GSSLib As an alternative to the native Shishi programming API, it is possible to program Shishi through the Generic Security Services (GSS) API. The advantage of using GSS-API in your security application, instead of the native Shishi API, is that it will be easier to port your application between different Kerberos 5 implementations, and even beyond Kerberos 5 to different security systems, that support GSS-API. In the free software world, however, almost the only widely used security system that supports GSS-API is Kerberos 5, so the last advantage is somewhat academic. But if you are porting applications using GSS-API for other Kerberos 5 implementations, or want a more mature and stable API than the native Shishi API, you may find using Shishi's GSS-API interface compelling. Note that GSS-API only offer basic services, for more advanced uses you must use the native API. Since the GSS-API is not specific to Shishi, it is distributed independently from Shishi. Further information on the GSS project can be found at @url{http://www.gnu.org/software/gss/}. @c ********************************************************** @c ******************* Acknowledgements ******************* @c ********************************************************** @node Acknowledgements @chapter Acknowledgements Shishi uses Libtasn1 by Fabio Fiorina, Libgcrypt and Libgpg-error by Werner Koch, Libidn by Simon Josefsson, cvs2cl by Karl Fogel, and gdoc by Michael Zucchi. Several GNU packages simplified development considerably, those packages include Autoconf, Automake, Libtool, Gnulib, Gettext, Indent, CVS, Texinfo, Help2man and Emacs. Several people reported bugs, sent patches or suggested improvements, see the file THANKS. Nicolas Pouvesle wrote the section about the Kerberos rsh/rlogin protocol. This manual borrows text from the Kerberos 5 specification. @c ********************************************************** @c ******************* Appendices ************************* @c ********************************************************** @node Criticism of Kerberos @appendix Criticism of Kerberos The intention with this section is to discuss various problems with Kerberos 5, so you can form a conscious decision how to deploy and use Shishi correctly in your organization. Currently the issues below are condensed, and mostly serve as a reminder for the author to elaborate on them. No encryption scheme with security proof. No standardized API, and GSS mechanism lack important functionality. Lack of authorization system. (krb5_kuserok()) Host to realm mapping relies on insecure DNS or static configuration files. Informational model and user database administration. Non-formal specification. Unclear on the etype to use for session keys (etype in request or database?). Unclear on how to populate some ``evident'' fields (e.g., cname in tickets for AS-REQ, or crealm, cname, realm, sname, ctime and cusec in KRB-ERROR). Unclear error code semantics (e.g., logic for when to use S_PRINCIPAL_UNKNOWN absent). Some KRB-ERROR fields are required, but can't be usefully populated in some situations, and no guidance is given on what they should contain. RFC 1510/1510bis incompatibilities. NULL enctype removed without discussion, and it is still used by some 1964 GSSAPI implementations. KRB_SAFE text (3.4.1) says the checksum is generated using the session or sub-session key, which contradicts itself (compare section 3.2.6) and also RFC 1510, which both allow the application to define the key. Verification of KRB_SAFE now require the key to be compatible with the (sub-)session key, in 1510 the only requirement was that it was collision proof. Problems with RFC 1510bis. Uses bignum INTEGER for TYPED-DATA and AD-AND-OR. Problems with crypto specification. It uses the word ``random'' many times, but there is no discussion on the randomness requirements. Practical experience indicate it is impossible to use true randomness for all ``random'' fields, and no implementation does this. A post by Don Davis on the ietf-krb-wg list tried to provide insight, but the information was never added to the specification. @node Protocol Extensions @appendix Protocol Extensions @cindex Protocol Extensions This appendix specifies the non-standard protocol elements implemented by Shishi. By nature of being non-standard, everything described here is experimental. Comments and feedback is appreciated. @menu * STARTTLS protected KDC exchanges:: How Shishi talks to KDC protected by TLS. * Telnet encryption with AES-CCM:: Integrity and privacy protected telnet. * Kerberized rsh and rlogin:: Description of KCMD protocol. * Key as initialization vector:: Some cryptography discussion. * The Keytab Binary File Format:: Format of keytab files. * The Credential Cache Binary File Format:: Format of ccache files. @end menu @node STARTTLS protected KDC exchanges @section STARTTLS protected KDC exchanges Shishi is able to ``upgrade'' TCP communications with the KDC to use the Transport Layer Security (TLS) protocol. The TLS protocol offers integrity and privacy protected exchanges. TLS also offers authentication using username and passwords, X.509 certificates, or OpenPGP certificates. Kerberos 5 claims to offer some of these features, although it is not as rich as the TLS protocol. An inconclusive list of the motivation for using TLS is given below. @itemize @bullet @item Server authentication of the KDC to the client. In traditional Kerberos 5, KDC authentication is only proved as a side effect that the KDC knows your encryption key (i.e., your password). @item Client authentication against KDC. Kerberos 5 assume the user knows a key (usually in the form of a password). Sometimes external factors make this hard to fulfill. In some situations, users are equipped with smart cards with a RSA authentication key. In others, users have a OpenPGP client on their desktop, with a public OpenPGP key known to the server. In some situations, the policy may be that password authentication may only be done through SRP. @item Kerberos exchanges are privacy protected. Part of many Kerberos packets are transfered without privacy protection (i.e., encryption). That part contains information, such as the client principal name, the server principal name, the encryption types supported by the client, the lifetime of tickets, etc. Revealing such information is, in some threat models, considered a problem. Thus, this enables ``anonymity''. @item Prevents downgrade attacks affecting encryption types. The encryption type of the ticket in KDC-REQ are sent in the clear in Kerberos 5. This allows an attacker to replace the encryption type with a compromised mechanisms, e.g. 56-bit DES. Since clients in general cannot know the encryption types other servers support, it is difficult for the client to detect if there was a man-in-the-middle or if the remote server simply did not support a stronger mechanism. Clients may chose to refuse 56-bit DES altogether, but in some environments this leads to operational difficulties. @item TLS is well-proved and the protocol is studied by many parties. This is an advantage in network design, where TLS is often already assumed as part of the solution since it is used to protect HTTP, IMAP, SMTP etc. In some threat models, the designer prefer to reduce the number of protocols that can hurt the overall system security if they are compromised. @end itemize Other reasons for using TLS exists. @subsection TCP/IP transport with TLS upgrade (STARTTLS) RFC 1510bis requires Kerberos servers (KDCs) to accept TCP requests. Each request and response is prefixed by a 4 octet integer in network byte order, indicating the length of the packet. The high bit of the length was reserved for future expansion, and servers that do not understand how to interpret a set high bit must return a @code{KRB-ERROR} with a @code{KRB_ERR_FIELD_TOOLONG} and close the TCP stream. The TCP/IP transport with TLS upgrade (STARTTLS) uses this reserved bit as follows. First we define a new extensible typed hole for Kerberos 5 messages, because we used the only reserved bit. It is thus prudent to offer future extensions on our proposal. Secondly we reserve two values in this new typed hole, and described how they are used to implement STARTTLS. @subsection Extensible typed hole based on reserved high bit When the high bit is set, the remaining 31 bits of the 4 octets are treated as an extensible typed hole, and thus form a 31 bit integer enumerating various extensions. Each of the values indicate a specific extended operation mode, two of which are used and defined here, and the rest are left for others to use. If the KDC do not understand a requested extension, it MUST return a @code{KRB-ERROR} with a @code{KRB_ERR_FIELD_TOOLONG} value (prefixed by the 4 octet length integer, with the high bit clear, as usual) and close the TCP stream. Meaning of the 31 lower bits in the 4 octet field, when the high bit is set: @verbatim 0 RESERVED. 1 STARTTLS requested by client. 2 STARTTLS request accepted by server. 3...2147483647 AVAILABLE for registration (via bug-shishi@josefsson.org). 2147483648 RESERVED. @end verbatim @subsection STARTTLS requested by client (extension mode 1) When this is sent by the client, the client is requesting the server to start TLS negotiation on the TCP stream. The client MUST NOT start TLS negotiation immediately. Instead, the client wait for either a KRB-ERROR (sent normally, prefixed by a 4 octet length integer) indicating the server do not understand the set high bit, or 4 octet which is to interpreted as an integer in network byte order, where the high bit is set and the remaining 31 bit are interpreted as an integer specifying the ``STARTTLS request accepted by server''. In the first case, the client infer that the server do not understand (or wish to support) STARTTLS, and can re-try using normal TCP, if unprotected Kerberos 5 exchanges are acceptable to the client policy. In the latter case, it should invoke TLS negotiation on the stream. If any other data is received, the client MUST close the TCP stream. @subsection STARTTLS request accepted by server (extension mode 2) This 4 octet message should be sent by the server when it has received the previous 4 octet message. The message is an acknowledgment of the client's request to initiate STARTTLS on the channel. The server MUST then invoke a TLS negotiation. @subsection Proceeding after successful TLS negotiation If the TLS negotiation ended successfully, possibly also considering client or server policies, the exchange within the TLS protected stream is performed like normal UDP Kerberos 5 exchanges, i.e., there is no TCP 4 octet length field before each packet. Instead each Kerberos packet MUST be sent within one TLS record, so the application can use the TLS record length as the Kerberos 5 packet length. @subsection Proceeding after failed TLS negotiation If the TLS negotiation fails, possibly due to client or server policy (e.g., inadequate support of encryption types in TLS, or lack of client or server authentication) the entity that detect the failure MUST disconnected the connection. It is expected that any error messages that explain the error condition is transfered by TLS. @subsection Interaction with KDC addresses in DNS Administrators for a KDC may announce the KDC address by placing SRV records in DNS for the realm, as described in @file{draft-ietf-krb-wg-krb-dns-locate-03.txt}. That document mention TLS, but do not reference any work that describe how KDCs uses TLS. Until further clarified, consider the TLS field in that document to refer to implementation supporting this STARTTLS protocol. @subsection Using TLS authentication logic in Kerberos The server MAY consider the authentication performed by the TLS exchange as sufficient to issue Kerberos 5 tickets to the client, without requiring, e.g., pre-authentication. However, it is not an error to require or use pre-authentication as well. The client may also indicate that it wishes to use TLS both for authentication and data protection by using the @samp{NULL} encryption type in its request. The server can decide from its local policy whether or not issuing tickets based solely on TLS authentication, and whether @samp{NULL} encryption within TLS, is acceptable or not. This mode is currently under investigation. @subsection Security considerations Because the initial token is not protected, it is possible for an active attacker to make it appear to the client that the server do not support this extension. It is up to client configuration to disallow non-TLS connections, if this vulnerability is deemed unacceptable. For interoperability, we suggest the default behaviour should be to allow automatic fallback to TCP or UDP. The security considerations of both TLS and Kerberos 5 are inherited. Using TLS for authentication and/or data protection together with Kerberos alter the authentication logic fundamentally. Thus, it may be that even if the TLS and Kerberos 5 protocols and implementations were secure, the combination of TLS and Kerberos 5 described here could be insecure. No channel bindings are provided in the Kerberos messages. It is an open question whether, and how, this should be fixed. @page @node Telnet encryption with AES-CCM @section Telnet encryption with AES-CCM @cindex Telnet encryption @cindex AES-CCM This appendix describe how Shishi use the Advanced Encryption Standard (AES) encryption algorithm in Counter with CBC-MAC mode (RFC 3610) with the telnet encryption option (RFC 2946). @subsection Command Names and Codes @verbatim Encryption Type AES_CCM 12 Suboption Commands AES_CCM_INFO 1 AES_CCM_INFO_OK 2 AES_CCM_INFO_BAD 3 @end verbatim @subsection Command Meanings @verbatim IAC SB ENCRYPT IS AES_CCM AES_CCM_INFO IAC SE @end verbatim The sender of this command selects desired @var{M} and @var{L} parameters, and @code{nonce}, as described in RFC 3610, and sends it to the other side of the connection. The parameters and the @code{nonce} are sent in clear text. Only the side of the connection that is WILL@tie{}ENCRYPT may send the AES_CCM_INFO command. @verbatim IAC SB ENCRYPT REPLY AES_CCM AES_CCM_INFO_BAD IAC SE @end verbatim The sender of this command rejects the parameters received in the AES_CCM_INFO command. Only the side of the connection that is DO@tie{}ENCRYPT may send the AES_CCM_INFO_BAD command. The command MUST be sent if the @code{nonce} field length does not match the selected value of @var{L}. The command MAY be sent if the receiver does not accept the parameters for a reason such as policy. No capability is provided for negotiating these parameters. @verbatim IAC SB ENCRYPT REPLY AES_CCM AES_CCM_INFO_OK IAC SE @end verbatim The sender of this command accepts the parameters received in the AES_CCM_INFO command. Only the side of the connection that is DO@tie{}ENCRYPT may send the AES_CCM_INFO_BAD command. The command MUST NOT be sent if the @code{nonce} field length does not match the selected value of @var{L}. @subsection Implementation Rules Once an AES_CCM_INFO_OK command has been received, the WILL@tie{}ENCRYPT side of the connection should do keyid negotiation using the ENC_KEYID command. Once the keyid negotiation has successfully identified a common keyid, then START and END commands may be sent by the side of the connection that is WILL@tie{}ENCRYPT. Data will be encrypted using the AES-CCM algorithm, with the negotiated @code{nonce} and parameters @var{M} and @var{L}. After each successful encryption and decryption, the @code{nonce} is treated as an integer in network byte order, and is incremented by one. If encryption (decryption) is turned off and back on again, and the same keyid is used when re-starting the encryption (decryption), then the intervening clear text must not change the state of the encryption (decryption) machine. In particular, the AES-CCM @code{nonce} must not have been re-set. If a START command is sent (received) with a different keyid, the encryption (decryption) machine must be re-initialized immediately following the end of the START command with the new key and the parameters sent (received) in the last AES_CCM_INFO command. If a new AES_CCM_INFO command is sent (received), and encryption (decryption) is enabled, the encryption (decryption) machine must be re-initialized immediately following the end of the AES_CCM_INFO command with the new @code{nonce} and parameters, and the keyid sent (received) in the last START command. If encryption (decryption) is not enabled when an AES_CCM_INFO command is sent (received), the encryption (decryption) machine must be re- initialized after the next START command, with the keyid sent (received) in that START command, and the @code{nonce} and parameters sent (received) in this AES_CCM_INFO command. At all times each peer MUST make sure that an AES-CCM @code{nonce} is not used twice with the same encryption key. The rules above help accomplish this in an interoperable way. @subsection Integration with the AUTHENTICATION telnet option @c <> As noted in the telnet ENCRYPTION option specifications, a keyid value of zero indicates the default encryption key, as might be derived from the telnet AUTHENTICATION option. If the default encryption key negotiated as a result of the telnet AUTHENTICATION option contains less than 32 bytes (corresponding to two 128 bit keys), then the AES_CCM option MUST NOT be offered or used as a valid telnet encryption option. Furthermore, depending on policy for key lengths, the AES_CCM option MAY be disabled if the default encryption key contain less than 48 bytes (for two 192 bit keys), or less than 64 bytes (for two 256 bit keys), as well. The available encrypt key data is divided on two halves, where the first half is used to encrypt data sent from the server (decrypt data received by the client), and the second half is used to encrypt data sent from the client (decrypt data received by the server). Note that the above algorithm assumes that the AUTHENTICATION mechanism generate keying material suitable for AES-CCM as used in this specification. This is not necessarily true in general, but we specify this behaviour as the default since it is true for most authentication systems in popular use today. New telnet AUTHENTICATION mechanisms may specify alternative methods for determining the keys to be used for this cipher suite in their specification, if the session key negotiated by that authentication mechanism is not a DES key and where this algorithm may not be safely used. Kerberos 5 authentication clarification: The key used to encrypt data from the client to the server is taken from the sub-session key in the AP-REQ. The key used to decrypt data from the server to the client is taken from the sub-session key in the AP-REP. If mutual authentication is not negotiated, the key used to encrypt data from the client to the server is taken from the session key in the ticket, and the key used to decrypt data from the server to the client is taken from the sub-session key in the AP-REQ. Leaving the AP-REQ sub-key field empty MUST disable the AES_CCM option. @subsection Security Considerations The protocol must be properly and securely implemented. For example, an implementation should not be vulnerable to various implementation-specific attacks such as buffer overflows or side-channel analysis. We wish to repeat the suggestion from RFC 2946, to investigate a STARTTLS approach for Telnet encryption (and also authentication), when the security level provided by this specification is not adequate. @subsubsection Telnet Encryption Protocol Security Considerations The security consideration of the Telnet encryption protocol are inherited. It should be noted that it is up to the authentication protocol used, if any, to bind the authenticity of the peers to a specific session. The Telnet encryption protocol does not, in general, protect against possibly malicious downgrading to any mutually acceptable, but not preferred, encryption type. This places a requirement on each peer to only accept encryption types it trust fully. In other words, the Telnet encryption protocol do not guarantee that the strongest mutually acceptable encryption type is always selected. @subsubsection AES-CCM Security Considerations The integrity and privacy claims are inherited from AES-CCM. In particular, the implementation must make sure a @code{nonce} is not used more than once together with a single key. Furthermore, the encryption key is assumed to be random, i.e., it should not be possible to guess it with probability of success higher than guessing any uniformly selected random key. RFC 1750 gives an overview of issues and recommendations related to randomness. @subsection Acknowledgments This document is based on the various Telnet Encryption RFCs (RFC 2946, RFC 2947, RFC 2948, RFC 2952 and RFC 2953). @page @node Kerberized rsh and rlogin @section Kerberized rsh and rlogin @cindex rsh and rlogin @cindex KCMDV0.2 This appendix describes the KCMDV0.2 protocol used in versions of inetutils patched for shishi. The KCMD protocol was developed by the MIT@tie{}Kerberos team for the kerberized @command{rsh} and @command{rlogin} programs. The differences between @command{rlogin} and @command{rsh} are explained below, as are differences between protocol versions v0.1 and v0.2. Both remain in use resons of compatibility. It is possible that some parts of this document are not in conformity with the original KCMD protocol, because there is no official specification of it. However, it seems that shishi's implementation is compatible with MIT's protocol. @strong{Warning:} If you are seriously considering using Kerberized @command{rsh} or @command{rlogin}, instead of more robust remote access protocols, such as @emph{SSH}, you may first want to explore @url{http://www.cs.berkeley.edu/~hildrum/kerberos/} or the full paper at @url{http://www.cs.berkeley.edu/~hildrum/043.pdf}. @subsection Establish connection Initially the client establishs a TCP connection to the server. Default ports are 543 (@samp{klogin}), 544 (@samp{kshell}), and 2105 (@samp{eklogin}). Here @samp{eklogin} is the same as @samp{klogin}, but with encryption. There is no longer a separate @samp{ekshell} port, because encrypted and normal connection now use the same port @samp{kshell}. Normally @samp{kshell} needs a second connection for @code{stderr}. The client should send a null terminated string containing an ascii encoding of the port number to be used for this second connection. Since @samp{klogin} and @samp{eklogin} do not use a second connection for @code{stderr}, the client just sends an additional null byte to the server, which can be thought of as an empty string. Contrary to classic @command{rsh} and @command{rlogin}, the server need not check if the client's port lies in the range 0-1023. @subsection Kerberos identification When a connection is being established, the first thing to do is to indicate that Kerberos authentication is desired. The client will send a string to indicate it will use Kerberos@tie{}5. Let us say ``length-string'' of @var{strl}, and mean the couple @verbatim (length of the string strl, null-terminated string strl). @end verbatim @noindent when @var{strl} itself is given. The string length is encoded as an @code{int32} (32-bit integer) in MSB order, i.e., network byte order. So the client first sends an authentication message, the length-string of @verbatim KRB5_SENDAUTH_V1.0 @end verbatim @noindent After that, the client must tell which version of the protocol it uses by sending a version message, consisting of a second length-string. This time based on @verbatim KCMDV0.2 @end verbatim @noindent or on ``KCMDV0.1'', for the older version. If the client's indentification is acceptable, the server will respond with a null byte (@code{0x00}). Otherwise, if the authentication message was incorrect, then the server responds with the single byte @code{0x01}, while if the protocol version message was unacceptable, then the response is a single @code{0x02}. @subsection Kerberos authentication When the client is indentified, Kerberos authentication can begin. The client must send an AP-REQ to the server; an AP-REQ authenticator must contain a subkey (only for KCMDV0.2) and a checksum. The authenticator checksum is calculated from the following string. @example "serverport":"terminaltype""remoteusername" @end example @noindent Observe the mandatory colon, serving as a delimiter to the terminal type. Here @var{remote@-username} is whatever identity the client desires to use at the remote end. The simple example @example 543:linux/38400user @end example @noindent demonstrates that the terminal type expects a terminfo name and a speed as decimal number. Once the AP-REQ has been updated with the checksum, it is ready for transmission to the server. Its length (as @code{int32}) is first sent in network order (MSB), followed by the DER encoded AP-REQ itself. If all is acceptable, the server reponds with an @code{int32} of value null. (In MSB order, but as it is null, order is irrelevant!). The KCMD protocol uses mutual authentication, so the server must also send an AP-REP back: @example (int32-length in MSB of DER encoded AP-REP) (DER encoded AP-REP) @end example @noindent Now server and client are provisionally authenticated. @subsection Extended authentication @anchor{basic authorization} @cindex basic authorization The client next sends three different null terminated strings, without length : @itemize @item remote user name (user identity on remote machine) @item terminal type for @command{rlogin} or command for @command{rsh} @item local user name (user identity on client machine) @end itemize An example for @command{rsh} : @example "rname\0" "cat /usr/local/etc/shishi.conf" "lname\0" @end example The server must next verify that the checksum delivered in the AP-REQ authenticator is correct, by computing a new hash like the client has previously done. The server must also verify that the requesting principal (found in AP-REQ) has the right to log in to the remote user account. In the @samp{basic} authorization, this is done by checking whether the remote user name is identical to the principal's name. The alternative is @samp{k5login} mode, which is discussed in @ref{kerberos authorization}. If all is correct, the server sends a null byte, i.e., an empty string, or else an error message string (null terminated). The remote client reads the first byte. If it is equal to zero, authentication is successful and the user is logged in at the remote host. In any other case, the client has the error message available, as sent by the server, to help the user understand the failure. @subsection Window size In the @command{rlogin} protocol, when authentication completes, the server can optionally send a message asking for terminal window size suitable for the user. The client can respond, but it is not obliged to do so. Under KCMDV0.1, the server sends a single byte, an urgent TCP message (@code{MSG_OOB}) : @example TIOCPKT_WINDOW = 0x80 @end example With KCMDV0.2, the server does not send an urgent message at all, but writes five bytes to the socket : @example '\377', '\377', 'o', 'o', TIOCPKT_WINDOW @end example If encryption is enabled (@samp{eklogin}) the server must send those five bytes in encrypted form. The client answers alike in both protocol versions : @example '\377', '\377', 's', 's', "struct winsize" @end example The winsize structure is filled in with the settings from the client's terminal. With encryption enabled, this answer must be sent encrypted. @subsection End of authentication The legacy exchange supported by @command{rsh} and @command{rlogin} continues from this point onwards. @subsection Encryption @cindex eklogin Encryption mode is always used when connecting via the port @samp{eklogin}. The port @samp{kshell} also supports encryption. Previously, there was a specific port @samp{ekshell} for that purpose, a use which is now extinct. Instead, whenever an encrypted exchange is desired via the port @samp{kshell}, client must prefix the string ``-x '' to the command string, when it is sent inbetween the remote user name and the local user name. In contrast, when the client computes the checksum for the AP-REQ authenticator, the string ``-x '' must not be included. Encryption porcedure under version KCMDV0.2 differs from that in the older protocol version. Under version KCMDV0.1, the ticket session key is put to use as encryption key, and only standard Kerberos encryption functions are usable. Thus it supports only @samp{des-cbc-crc}, @samp{des-cbc-md4}, @samp{des-cbc-md5}, and does not allow use of initialisation vectors. As an example of encryption/decryption calls, the following Kerberos function prototype should be used : @example kerberos_encrypt (key, keyusage, in, out) (or kerberos_decrypt) @end example To contrast, KCMDV0.2 can be used with all Kerberos encryption modes, i.e., @samp{des}, @samp{3des}, @samp{aes}, @samp{arcfour}, and it uses an AP-REQ authenticator subkey. In opposition to KCMDV0.1, initialisation vectors are used. All encryption and descryption must be made using a cryptographic context. A typical coding example updates the context with an @code{iv}, then executes an encryption call : @example kerberos_init(ctx, iv, key, keyusage) kerberos_encrypt (ctx, in, out) @end example For both protocols, default keyusage identity allowing @samp{des-cbc-md5}, @samp{des-cbc-md4}, @samp{des-cbc-crc}, and @samp{des3-cbc-sha1} (the latter applicable only to KCMDV0.2) is identical : @example keyusage = 1026 @end example KCMDV0.2 encryption modes, other than the four named above, specify distinct values for @var{keyusage}, unique to each encryption/decryption mode. In conclusion, @samp{eklogin} uses a single socket. It encrypts data ``output 1'' prior to sending, and it decrypts ``input 1'' received data. @samp{kshell} uses two sockets: one for transmitting data, and one for a side channel carrying @code{stderr}. Thus there are four streams available : @verbatim transmit : input 1 output 1 stderr : input 2 output 2 @end verbatim There is a key usage set for each mode. The values of each @var{keyusage} must be compatible between client and server side. An example with @samp{klogin}, shows the client's ``input 1'' key usage to be identical to the server's ``output 1'' usage. @multitable @columnfractions .15 .15 .15 @item I/O @tab Client @tab Server @item input 1 @tab 1028 @tab 1030 @item output 1 @tab 1030 @tab 1028 @item input 2 @tab 1032 @tab 1034 @item output 2 @tab 1034 @tab 1032 @end multitable The stated key usages are for AES and ARCFOUR modes. KCMDV0.2 uses an IV (initialisation vector) with AES. Like for key usage, the client IV must correspond to the server IV. The IV size is equal to the blocksize of the chosen key type. All bytes of IV must be initialised too : @multitable @columnfractions .15 .15 .15 @item I/O @tab Client @tab Server @item input 1 @tab 0 @tab 1 @item output 1 @tab 1 @tab 0 @item input 2 @tab 2 @tab 3 @item output 2 @tab 3 @tab 2 @end multitable ARCFOUR mode does not use an IV. However, like mentioned before, a context must be used to keep the updating the sbox. A normal message for @samp{klogin} or @samp{kshell} is set up like this : @example (int32-length of message in MSB order) (message) @end example In encrypted mode, the format is only slightly different : @example (int32-length of unencrypted message in MSB order) (encrypted message) @end example Under KCMDV0.2, the encrypted message is create like this : @example encrypt ( (int32-length of message in MSB order) (message) ) @end example A check on message size can be made in second version of the protocol. @subsection KCMDV0.3 @cindex KCMDV0.3 This part only gives possible ways to extend the KCMD protocol. They should not be understood as some kind of ``must have'' in a future KCMD implementation. Extensions to KCMV0.2 can be imagined. For example, @samp{kshell} assumes there are no files of names like ``-x *''. I think the same thing can be assumed of terminal names for @samp{klogin}. So the client could add ``-x '' to the terminal type it transmits to the server, in order to indicate the desire to use encryption. Under this provision, there need only be one port shared by @samp{klogin} and @samp{eklogin}, namely the IANA defined port number 543. Before encryption begins, @samp{kshell} passes the intended commands in the clear through the network. This could be considered insecure, once the user has decided to use encryption. It is not really a problem with @samp{klogin}, because it just tells which terminal type to target. One could imagine, when the client intends to use encrypted mode, that the client side initially transmits a mundane ``-x'' and nothing else to either of @samp{klogin} and @samp{kshell}, in place of either a command or a terminal type, respectively. Once encryption is in place, the client could send terminal type or command in a second, now encrypted exchange. The server could respond with a single null byte, saying that all is well, or respond with an error message, which already enjoys the added benefit of being encrypted. @subsection MIT/Heimdal authorization @anchor{kerberos authorization} @cindex k5login authorization This short part describes how MIT/Heimdal versions of Kerberos@tie{}5 check authorization of any user seeking to log in to a remote machine. The authorization stage begins by testing whether the file @file{.k5login} exists in the home directory of the remote user. If this file does not exist, then a valid authorization demands that the remote user's name must be the same as the name of the principal contained in the request AP-REQ. (This is the legacy @samp{basic} authorization.) Else, if the file is present, the serve first verifies that the remote user, or root, is the owner of @file{.k5login}, then goes on to verify that the file is not readable by group, nor by world. If either fails, then the check fails entirely. If all is good so far, then each line of that file is examined, and each name read in is compared to the principal. If the principal is found listed somewhere in @file{.k5login}, then authorization is successful. In the contrary case, the user is not admitted to the remote host as the requested remote user, a name that could have been derived to be the very same as in the principal itself. So someone, ``user1'' say, can remotely log in to the account of ``user2'', if the file @file{.k5login} is present in the home directory of ``user2'', and it is owned by ``user2'' or by root, and at the same time the name ``user1'' is listed in this file. @node Key as initialization vector @section Key as initialization vector The @code{des-cbc-crc} algorithm (@pxref{Cryptographic Overview}) uses the DES key as the initialization vector. This is problematic in general (see below@footnote{The post is copyrighted by David Wagner, included here with permission, the canonical location is @url{http://www.cs.berkeley.edu/~daw/my-posts/key-as-iv-broken}}), but may be mitigated in Kerberos by the CRC checksum that is also included. @verbatim From daw@espresso.CS.Berkeley.EDU Fri Mar 1 13:32:34 PST 1996 Article: 50440 of sci.crypt Path: agate!daw From: daw@espresso.CS.Berkeley.EDU (David A Wagner) Newsgroups: sci.crypt Subject: Re: DES-CBC and Initialization Vectors Date: 29 Feb 1996 21:48:16 GMT Organization: University of California, Berkeley Lines: 31 Message-ID: <4h56v0$3no@agate.berkeley.edu> References: <4h39li$33o@gaia.ns.utk.edu> NNTP-Posting-Host: espresso.cs.berkeley.edu In article <4h39li$33o@gaia.ns.utk.edu>, Nair Venugopal wrote: > Is there anything wrong in using the key as the I.V. in DES-CBC mode? Yes, you're open to a chosen-ciphertext attack which recovers the key. Alice is sending stuff DES-CBC encrypted with key K to Bob. Mary is an active adversary in the middle. Suppose Alice encrypts some plaintext blocks P_1, P_2, P_3, ... in DES-CBC mode with K as the IV, and sends off the resulting ciphertext A->B: C_1, C_2, C_3, ... where each C_j is a 8-byte DES ciphertext block. Mary wants to discover the key K, but doesn't even know any of the P_j's. She replaces the above message by M->B: C_1, 0, C_1 where 0 is the 8-byte all-zeros block. Bob will decrypt under DES-CBC, recovering the blocks Q_1, Q_2, Q_3 where Q_1 = DES-decrypt(K, C_1) xor K = P_1 Q_2 = DES-decrypt(K, C_2) xor C_1 = (some unimportant junk) Q_3 = DES-decrypt(K, C_1) xor 0 = P_1 xor K Bob gets this garbage-looking message Q_1,Q_2,Q_3 which Mary recovers (under the chosen-ciphertext assumption: this is like a known-plaintext attack, which isn't too implausible). Notice that Mary can recover K by K = Q_1 xor Q_3; so after this one simple active attack, Mary gets the key back! So, if you must use a fixed IV, don't use the key-- use 0 or something like that. Even better, don't use a fixed IV-- use the DES encryption of a counter, or something like that. @end verbatim @node The Keytab Binary File Format @section The Keytab Binary File Format @cindex keytab, file format of The keytab file format is described in the file @file{keytab.txt}, here included verbatim. @verbatiminclude keytab.txt @node The Credential Cache Binary File Format @section The Credential Cache Binary File Format @cindex credential cache, file format of The credential cache file format is described in the file @file{keytab.txt}, included verbatim. @verbatiminclude ccache.txt @node Copying Information @appendix Copying Information @cindex copying information @menu * GNU Free Documentation License:: License for copying this manual. @end menu @node GNU Free Documentation License @appendixsec GNU Free Documentation License @cindex FDL, GNU Free Documentation License @include fdl-1.3.texi @node Function and Data Index @unnumbered Function and Data Index @printindex fn @node Concept Index @unnumbered Concept Index @printindex cp @summarycontents @contents @bye shishi-1.0.3/doc/shishi.10000644000000000000000000001060714273615527012027 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. .TH SHISHI "1" "August 2022" "GNU Shishi 1.0.3" "User Commands" .SH NAME shishi \- Shishi client tool .SH SYNOPSIS .B shishi [\fI\,OPTION\/\fR]... [\fI\,CLIENT \/\fR[\fI\,SERVER\/\fR]]... .SH DESCRIPTION Shishi command line client. If no command is given, Shishi acquire or list a valid ticket for you, identified by CLIENT (if empty, default username in default realm), for the service SERVER (if empty, ticket granting ticket for client realm). .TP \fB\-h\fR, \fB\-\-help\fR Print help and exit .TP \fB\-V\fR, \fB\-\-version\fR Print version and exit .SS "Commands:" .TP \fB\-d\fR, \fB\-\-destroy\fR Destroy tickets in local cache, limited by any \fB\-\-client\-name\fR or \fB\-\-server\-name\fR. (default=off) .TP \fB\-l\fR, \fB\-\-list\fR List tickets in local cache, limited by any \fB\-\-client\-name\fR and \fB\-\-server\-name\fR. (default=off) .TP \fB\-r\fR, \fB\-\-renew\fR Renew ticket. Use \fB\-\-server\-name\fR to specify ticket, default is the most recent renewable ticket granting ticket for the default realm. (default=off) .SS "Flags:" .TP \fB\-\-forwardable\fR Get a forwardable ticket, i.e., one that can be used to get forwarded tickets. (default=off) .TP \fB\-\-forwarded\fR Get a forwarded ticket. (default=off) .TP \fB\-\-proxiable\fR Get a proxiable ticket, i.e., one that can be used to get proxy tickets. (default=off) .TP \fB\-\-proxy\fR Get a proxy ticket. (default=off) .TP \fB\-\-renewable\fR Get a renewable ticket. (default=off) .SH OPTIONS .TP \fB\-\-client\-name\fR=\fI\,NAME\/\fR Client name. Default is login username. .TP \fB\-E\fR, \fB\-\-encryption\-type\fR=\fI\,ETYPE\/\fR,[ETYPE...] Encryption types to use. ETYPE is either .TP registered name or integer. Valid values .TP include 'aes128', 'aes256', 'aes' (same as \&'aes256'), '3des', 'des\-md5', 'des\-md4', \&'des\-crc', 'des' (same as 'des\-md5'), and \&'arcfour'. .TP \fB\-e\fR, \fB\-\-endtime\fR=\fI\,STRING\/\fR Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001\-02\-03 04:05:06 CET'. The default is 8 hours after the start time. .TP \fB\-\-realm\fR=\fI\,STRING\/\fR Set default realm. .TP \fB\-\-renew\-till\fR=\fI\,STRING\/\fR Specify renewable life of ticket. Implies \fB\-\-renewable\fR. Accepts same time syntax as \fB\-\-endtime\fR. If \fB\-\-renewable\fR is specified, the default is 1 week after the start time. .TP \fB\-\-server\-name\fR=\fI\,NAME\/\fR Server name. Default is 'krbtgt/REALM' where REALM is client realm. .TP \fB\-s\fR, \fB\-\-starttime\fR=\fI\,STRING\/\fR Specify when ticket should start to be valid. Accepts same time syntax as \fB\-\-endtime\fR. The default is to become valid immediately. .TP \fB\-\-ticket\-granter\fR=\fI\,NAME\/\fR Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm. .SS "Other options:" .HP \fB\-\-configuration\-file\fR=\fI\,FILE\/\fR Read user configuration from FILE. .TP \fB\-c\fR, \fB\-\-ticket\-file\fR=\fI\,FILE\/\fR Read tickets from FILE. .TP \fB\-o\fR, \fB\-\-library\-options\fR=\fI\,STRING\/\fR Parse STRING as a configuration file statement. .TP \fB\-q\fR, \fB\-\-quiet\fR Don't produce any diagnostic output. (default=off) .TP \fB\-\-system\-configuration\-file\fR=\fI\,FILE\/\fR Read system configuration from FILE. .TP \fB\-\-ticket\-write\-file\fR=\fI\,FILE\/\fR Write tickets from FILE. Default is to write them back to where they were read from. .TP \fB\-v\fR, \fB\-\-verbose\fR Produce verbose output. Use multiple times to increase amount of information. .PP Mandatory arguments to long options are mandatory for short options too. .SH AUTHOR Written by Simon Josefsson. .SH "REPORTING BUGS" Report bugs to: bug\-shishi@gnu.org .br GNU Shishi home page: .br General help using GNU software: .SH COPYRIGHT Copyright \(co 2022 Simon Josefsson. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/shishi.info0000644000000000000000000006543714273615527012635 00000000000000This is shishi.info, produced by makeinfo version 6.7 from shishi.texi. This manual is last updated 7 August 2022 for version 1.0.3 of Shishi. Copyright (C) 2002-2022 Simon Josefsson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". INFO-DIR-SECTION GNU utilities START-INFO-DIR-ENTRY * shishi: (shishi). A Kerberos 5 implementation END-INFO-DIR-ENTRY INFO-DIR-SECTION GNU Libraries START-INFO-DIR-ENTRY * libshishi: (shishi). Library implementing Kerberos 5. END-INFO-DIR-ENTRY  Indirect: shishi.info-1: 839 shishi.info-2: 302108 shishi.info-3: 606356  Tag Table: (Indirect) Node: Top839 Node: Introduction2207 Node: Getting Started3965 Node: Features and Status4895 Node: Overview9791 Ref: Overview-Footnote-115067 Node: Cryptographic Overview15265 Ref: Cryptographic Overview-Footnote-125668 Ref: Cryptographic Overview-Footnote-225727 Node: Supported Platforms25785 Node: Getting help28733 Node: Downloading and Installing29204 Node: Bug Reports31072 Node: Contributing32465 Node: User Manual34592 Node: Administration Manual47378 Ref: Administration Manual-Footnote-148908 Node: Introduction to Shisa48987 Node: Configuring Shisa51508 Node: Using Shisa52942 Node: Starting Shishid63253 Node: Configuring DNS for KDC68180 Node: Kerberos via TLS72746 Node: Multiple servers87815 Node: Developer information93014 Node: Reference Manual94321 Node: Environmental Assumptions95472 Node: Glossary of terms97694 Node: Realm and Principal Naming103020 Ref: krbtgt111452 Node: Shishi Configuration116955 Ref: realm-kdc119310 Node: Shisa Configuration122385 Node: Parameters for shishi125105 Node: Parameters for shishid131035 Node: Parameters for shisa133410 Node: Environment variables137009 Node: Date input formats138150 Node: General date syntax140542 Node: Calendar date items143528 Node: Time of day items145442 Node: Time zone items147647 Node: Combined date and time of day items148999 Node: Day of week items149863 Node: Relative items in date strings150880 Node: Pure numbers in date strings153691 Node: Seconds since the Epoch154681 Node: Specifying time zone rules156376 Node: Authors of parse_datetime159690 Ref: Authors of get_date159878 Node: Programming Manual160841 Node: Preparation162454 Node: Header163145 Node: Initialization163763 Node: Version Check164444 Ref: shishi_check_version164978 Node: Building the source165869 Node: Autoconf tests167781 Node: Initialization Functions170763 Ref: shishi170965 Ref: shishi_server171347 Ref: shishi_done171733 Ref: shishi_init172368 Ref: shishi_init_with_paths173243 Ref: shishi_init_server174509 Ref: shishi_init_server_with_paths175222 Ref: shishi_cfg176039 Ref: shishi_cfg_from_file176467 Ref: shishi_cfg_print176845 Ref: shishi_cfg_default_systemfile177259 Ref: shishi_cfg_default_userdirectory177857 Ref: shishi_cfg_userdirectory_file178619 Ref: shishi_cfg_default_userfile179480 Ref: shishi_cfg_clientkdcetype180013 Ref: shishi_cfg_clientkdcetype_fast180546 Ref: shishi_cfg_clientkdcetype_set181052 Ref: shishi_cfg_authorizationtype_set181735 Node: Ticket Set Functions182429 Ref: shishi_tkts_default_file_guess183343 Ref: shishi_tkts_default_file183789 Ref: shishi_tkts_default_file_set184192 Ref: shishi_tkts_default184688 Ref: shishi_tkts184969 Ref: shishi_tkts_done185300 Ref: shishi_tkts_size185637 Ref: shishi_tkts_nth185904 Ref: shishi_tkts_remove186440 Ref: shishi_tkts_add186886 Ref: shishi_tkts_new187323 Ref: shishi_tkts_read188001 Ref: shishi_tkts_from_file188365 Ref: shishi_tkts_write188744 Ref: shishi_tkts_expire189080 Ref: shishi_tkts_to_file189361 Ref: shishi_tkts_print_for_service189731 Ref: shishi_tkts_print190242 Ref: shishi_tkt_match_p190582 Ref: shishi_tkts_find190946 Ref: shishi_tkts_find_for_clientserver192308 Ref: shishi_tkts_find_for_server192863 Ref: shishi_tkts_get_tgt193395 Ref: shishi_tkts_get_tgs194272 Ref: shishi_tkts_get194931 Ref: shishi_tkts_get_for_clientserver195701 Ref: shishi_tkts_get_for_server196224 Ref: shishi_tkts_get_for_localservicepasswd196730 Node: AP-REQ and AP-REP Functions197322 Ref: shishi_ap198497 Ref: shishi_ap_etype199213 Ref: shishi_ap_nosubkey199703 Ref: shishi_ap_done200087 Ref: shishi_ap_set_tktoptions200430 Ref: shishi_ap_set_tktoptionsdata200915 Ref: shishi_ap_set_tktoptionsraw201613 Ref: shishi_ap_set_tktoptionsasn1usage202453 Ref: shishi_ap_tktoptions203379 Ref: shishi_ap_tktoptionsdata204093 Ref: shishi_ap_tktoptionsraw205027 Ref: shishi_ap_etype_tktoptionsdata206100 Ref: shishi_ap_tktoptionsasn1usage207129 Ref: shishi_ap_tkt208278 Ref: shishi_ap_tkt_set208596 Ref: shishi_ap_authenticator_cksumdata208887 Ref: shishi_ap_authenticator_cksumdata_set209606 Ref: shishi_ap_authenticator_cksumraw_set210422 Ref: shishi_ap_authenticator_cksumtype211327 Ref: shishi_ap_authenticator_cksumtype_set211682 Ref: shishi_ap_authenticator212035 Ref: shishi_ap_authenticator_set212412 Ref: shishi_ap_req212716 Ref: shishi_ap_req_set213049 Ref: shishi_ap_req_der213310 Ref: shishi_ap_req_der_set213895 Ref: shishi_ap_req_build214366 Ref: shishi_ap_req_decode214682 Ref: shishi_ap_req_process_keyusage215014 Ref: shishi_ap_req_process215805 Ref: shishi_ap_req_asn1216330 Ref: shishi_ap_key216681 Ref: shishi_ap_rep217043 Ref: shishi_ap_rep_set217376 Ref: shishi_ap_rep_der217637 Ref: shishi_ap_rep_der_set218211 Ref: shishi_ap_rep_build218682 Ref: shishi_ap_rep_asn1218994 Ref: shishi_ap_rep_verify219359 Ref: shishi_ap_rep_verify_der219675 Ref: shishi_ap_rep_verify_asn1220232 Ref: shishi_ap_encapreppart220676 Ref: shishi_ap_encapreppart_set221048 Ref: shishi_ap_option2string221367 Ref: shishi_ap_string2option221916 Ref: shishi_apreq222307 Ref: shishi_apreq_print222623 Ref: shishi_apreq_save223013 Ref: shishi_apreq_to_file223392 Ref: shishi_apreq_parse223958 Ref: shishi_apreq_read224408 Ref: shishi_apreq_from_file224853 Ref: shishi_apreq_set_authenticator225429 Ref: shishi_apreq_add_authenticator226407 Ref: shishi_apreq_set_ticket227075 Ref: shishi_apreq_options227493 Ref: shishi_apreq_use_session_key_p227958 Ref: shishi_apreq_mutual_required_p228381 Ref: shishi_apreq_options_set228792 Ref: shishi_apreq_options_add229232 Ref: shishi_apreq_options_remove229732 Ref: shishi_apreq_get_authenticator_etype230263 Ref: shishi_apreq_get_ticket230702 Ref: shishi_aprep231109 Ref: shishi_aprep_print231432 Ref: shishi_aprep_save231822 Ref: shishi_aprep_to_file232201 Ref: shishi_aprep_parse232767 Ref: shishi_aprep_read233217 Ref: shishi_aprep_from_file233662 Ref: shishi_aprep_get_enc_part_etype234240 Ref: shishi_encapreppart234661 Ref: shishi_encapreppart_print235099 Ref: shishi_encapreppart_save235541 Ref: shishi_encapreppart_to_file235967 Ref: shishi_encapreppart_parse236580 Ref: shishi_encapreppart_read237077 Ref: shishi_encapreppart_from_file237569 Ref: shishi_encapreppart_get_key238182 Ref: shishi_encapreppart_ctime238624 Ref: shishi_encapreppart_ctime_set239124 Ref: shishi_encapreppart_cusec_get239619 Ref: shishi_encapreppart_cusec_set240124 Ref: shishi_encapreppart_seqnumber_get240632 Ref: shishi_encapreppart_seqnumber_remove241155 Ref: shishi_encapreppart_seqnumber_set241592 Ref: shishi_encapreppart_time_copy242120 Node: SAFE and PRIV Functions242581 Ref: shishi_safe243667 Ref: shishi_safe_done244021 Ref: shishi_safe_key244360 Ref: shishi_safe_key_set244704 Ref: shishi_safe_safe244979 Ref: shishi_safe_safe_set245334 Ref: shishi_safe_safe_der245646 Ref: shishi_safe_safe_der_set246263 Ref: shishi_safe_print246738 Ref: shishi_safe_save247119 Ref: shishi_safe_to_file247489 Ref: shishi_safe_parse248046 Ref: shishi_safe_read248487 Ref: shishi_safe_from_file248923 Ref: shishi_safe_cksum249466 Ref: shishi_safe_set_cksum250142 Ref: shishi_safe_user_data251019 Ref: shishi_safe_set_user_data251665 Ref: shishi_safe_build252179 Ref: shishi_safe_verify252669 Ref: shishi_priv254212 Ref: shishi_priv_done254566 Ref: shishi_priv_key254905 Ref: shishi_priv_key_set255238 Ref: shishi_priv_priv255513 Ref: shishi_priv_priv_set255865 Ref: shishi_priv_priv_der256177 Ref: shishi_priv_priv_der_set256794 Ref: shishi_priv_encprivpart257281 Ref: shishi_priv_encprivpart_set257670 Ref: shishi_priv_encprivpart_der258023 Ref: shishi_priv_encprivpart_der_set258603 Ref: shishi_priv_print259097 Ref: shishi_priv_save259478 Ref: shishi_priv_to_file259848 Ref: shishi_priv_parse260405 Ref: shishi_priv_read260846 Ref: shishi_priv_from_file261282 Ref: shishi_priv_enc_part_etype261843 Ref: shishi_priv_set_enc_part262263 Ref: shishi_encprivpart_user_data263163 Ref: shishi_encprivpart_set_user_data263861 Ref: shishi_priv_build264413 Ref: shishi_priv_process264901 Node: Ticket Functions265373 Ref: shishi_tkt265952 Ref: shishi_tkt2266264 Ref: shishi_tkt_done266792 Ref: shishi_tkt_ticket267050 Ref: shishi_tkt_ticket_set267308 Ref: shishi_tkt_enckdcreppart267596 Ref: shishi_tkt_enckdcreppart_set267897 Ref: shishi_tkt_kdcrep268216 Ref: shishi_tkt_encticketpart268486 Ref: shishi_tkt_encticketpart_set268784 Ref: shishi_tkt_key269075 Ref: shishi_tkt_key_set269478 Ref: shishi_tkt_client269788 Ref: shishi_tkt_client_p270604 Ref: shishi_tkt_clientrealm270957 Ref: shishi_tkt_clientrealm_p271800 Ref: shishi_tkt_realm272203 Ref: shishi_tkt_server272645 Ref: shishi_tkt_server_p273453 Ref: shishi_tkt_flags273794 Ref: shishi_tkt_flags_set274127 Ref: shishi_tkt_flags_add274546 Ref: shishi_tkt_forwardable_p274930 Ref: shishi_tkt_forwarded_p275742 Ref: shishi_tkt_proxiable_p276465 Ref: shishi_tkt_proxy_p277301 Ref: shishi_tkt_may_postdate_p277854 Ref: shishi_tkt_postdated_p279150 Ref: shishi_tkt_invalid_p279959 Ref: shishi_tkt_renewable_p280826 Ref: shishi_tkt_initial_p281391 Ref: shishi_tkt_pre_authent_p282133 Ref: shishi_tkt_hw_authent_p282855 Ref: shishi_tkt_transited_policy_checked_p283621 Ref: shishi_tkt_ok_as_delegate_p285500 Ref: shishi_tkt_keytype286549 Ref: shishi_tkt_keytype_fast286932 Ref: shishi_tkt_keytype_p287291 Ref: shishi_tkt_lastreqc287715 Ref: shishi_tkt_authctime288194 Ref: shishi_tkt_startctime288615 Ref: shishi_tkt_endctime289014 Ref: shishi_tkt_renew_tillc289385 Ref: shishi_tkt_valid_at_time_p289791 Ref: shishi_tkt_valid_now_p290195 Ref: shishi_tkt_expired_p290484 Ref: shishi_tkt_lastreq_pretty_print290797 Ref: shishi_tkt_pretty_print291152 Node: AS Functions291400 Ref: shishi_as293541 Ref: shishi_as_done293872 Ref: shishi_as_req294193 Ref: shishi_as_req_build294547 Ref: shishi_as_req_set294821 Ref: shishi_as_req_der295082 Ref: shishi_as_req_der_set295607 Ref: shishi_as_rep296066 Ref: shishi_as_rep_process296423 Ref: shishi_as_rep_build296982 Ref: shishi_as_rep_der297316 Ref: shishi_as_rep_set297833 Ref: shishi_as_rep_der_set298102 Ref: shishi_as_krberror298571 Ref: shishi_as_krberror_der298941 Ref: shishi_as_krberror_set299482 Ref: shishi_as_tkt299762 Ref: shishi_as_tkt_set300090 Ref: shishi_as_sendrecv_hint300355 Ref: shishi_as_sendrecv300936 Node: TGS Functions302108 Ref: shishi_tgs304361 Ref: shishi_tgs_done304700 Ref: shishi_tgs_tgtkt305033 Ref: shishi_tgs_tgtkt_set305401 Ref: shishi_tgs_ap305691 Ref: shishi_tgs_req306031 Ref: shishi_tgs_req_set306373 Ref: shishi_tgs_req_der306657 Ref: shishi_tgs_req_der_set307192 Ref: shishi_tgs_req_process307678 Ref: shishi_tgs_req_build308052 Ref: shishi_tgs_rep308362 Ref: shishi_tgs_rep_der308699 Ref: shishi_tgs_rep_process309234 Ref: shishi_tgs_rep_build309608 Ref: shishi_tgs_krberror310010 Ref: shishi_tgs_krberror_der310364 Ref: shishi_tgs_krberror_set310912 Ref: shishi_tgs_tkt311201 Ref: shishi_tgs_tkt_set311543 Ref: shishi_tgs_sendrecv_hint311833 Ref: shishi_tgs_sendrecv312416 Ref: shishi_tgs_set_server312794 Ref: shishi_tgs_set_realm313155 Ref: shishi_tgs_set_realmserver313524 Node: Ticket (ASN.1) Functions313932 Ref: shishi_ticket315183 Ref: shishi_ticket_realm_get315516 Ref: shishi_ticket_realm_set316008 Ref: shishi_ticket_server316424 Ref: shishi_ticket_sname_set317341 Ref: shishi_ticket_get_enc_part_etype317924 Ref: shishi_ticket_set_enc_part318362 Ref: shishi_ticket_add_enc_part319271 Ref: shishi_encticketpart_get_key319823 Ref: shishi_encticketpart_key_set320263 Ref: shishi_encticketpart_flags_set320777 Ref: shishi_encticketpart_crealm_set321237 Ref: shishi_encticketpart_cname_set321693 Ref: shishi_encticketpart_transited_set322305 Ref: shishi_encticketpart_authtime_set322975 Ref: shishi_encticketpart_endtime_set323482 Ref: shishi_encticketpart_client323975 Ref: shishi_encticketpart_clientrealm324939 Node: AS/TGS Functions325876 Ref: shishi_as_derive_salt328943 Ref: shishi_kdcreq_sendrecv_hint329907 Ref: shishi_kdcreq_sendrecv330778 Ref: shishi_kdc_copy_crealm331521 Ref: shishi_as_check_crealm332080 Ref: shishi_kdc_copy_cname332802 Ref: shishi_as_check_cname333355 Ref: shishi_kdc_copy_nonce334057 Ref: shishi_kdc_check_nonce334576 Ref: shishi_tgs_process335386 Ref: shishi_as_process336506 Ref: shishi_kdc_process337403 Ref: shishi_asreq338799 Ref: shishi_tgsreq339105 Ref: shishi_kdcreq_print339426 Ref: shishi_kdcreq_save339823 Ref: shishi_kdcreq_to_file340210 Ref: shishi_kdcreq_parse340783 Ref: shishi_kdcreq_read341240 Ref: shishi_kdcreq_from_file341692 Ref: shishi_kdcreq_nonce_set342259 Ref: shishi_kdcreq_set_cname342697 Ref: shishi_kdcreq_client343270 Ref: shishi_asreq_clientrealm344185 Ref: shishi_kdcreq_realm345120 Ref: shishi_kdcreq_set_realm345992 Ref: shishi_kdcreq_server346416 Ref: shishi_kdcreq_set_sname347329 Ref: shishi_kdcreq_till347892 Ref: shishi_kdcreq_tillc348848 Ref: shishi_kdcreq_etype349262 Ref: shishi_kdcreq_set_etype349777 Ref: shishi_kdcreq_options350369 Ref: shishi_kdcreq_forwardable_p350815 Ref: shishi_kdcreq_forwarded_p351498 Ref: shishi_kdcreq_proxiable_p352308 Ref: shishi_kdcreq_proxy_p352966 Ref: shishi_kdcreq_allow_postdate_p353695 Ref: shishi_kdcreq_postdated_p354406 Ref: shishi_kdcreq_renewable_p355213 Ref: shishi_kdcreq_disable_transited_check_p356032 Ref: shishi_kdcreq_renewable_ok_p357162 Ref: shishi_kdcreq_enc_tkt_in_skey_p358052 Ref: shishi_kdcreq_renew_p358718 Ref: shishi_kdcreq_validate_p359605 Ref: shishi_kdcreq_options_set360556 Ref: shishi_kdcreq_options_add361042 Ref: shishi_kdcreq_clear_padata361519 Ref: shishi_kdcreq_get_padata361884 Ref: shishi_kdcreq_get_padata_tgs362699 Ref: shishi_kdcreq_add_padata363346 Ref: shishi_kdcreq_add_padata_tgs364202 Ref: shishi_kdcreq_add_padata_preauth364834 Ref: shishi_asrep365257 Ref: shishi_tgsrep365563 Ref: shishi_kdcrep_print365884 Ref: shishi_kdcrep_save366281 Ref: shishi_kdcrep_to_file366668 Ref: shishi_kdcrep_parse367241 Ref: shishi_kdcrep_read367698 Ref: shishi_kdcrep_from_file368150 Ref: shishi_kdcrep_crealm_set368719 Ref: shishi_kdcrep_cname_set369158 Ref: shishi_kdcrep_client_set369732 Ref: shishi_kdcrep_get_enc_part_etype370228 Ref: shishi_kdcrep_get_ticket370664 Ref: shishi_kdcrep_set_ticket371100 Ref: shishi_kdcrep_set_enc_part371536 Ref: shishi_kdcrep_add_enc_part372446 Ref: shishi_kdcrep_clear_padata373186 Ref: shishi_enckdcreppart_get_key373559 Ref: shishi_enckdcreppart_key_set374092 Ref: shishi_enckdcreppart_nonce_set374606 Ref: shishi_enckdcreppart_flags_set375057 Ref: shishi_enckdcreppart_authtime_set375509 Ref: shishi_enckdcreppart_starttime_set376020 Ref: shishi_enckdcreppart_endtime_set376588 Ref: shishi_enckdcreppart_renew_till_set377097 Ref: shishi_enckdcreppart_srealm_set377668 Ref: shishi_enckdcreppart_sname_set378155 Ref: shishi_enckdcreppart_populate_encticketpart378795 Node: Authenticator Functions379343 Ref: shishi_authenticator380254 Ref: shishi_authenticator_subkey380699 Ref: shishi_authenticator_print381180 Ref: shishi_authenticator_save381666 Ref: shishi_authenticator_to_file382137 Ref: shishi_authenticator_parse382767 Ref: shishi_authenticator_read383285 Ref: shishi_authenticator_from_file383798 Ref: shishi_authenticator_set_crealm384424 Ref: shishi_authenticator_set_cname384922 Ref: shishi_authenticator_client_set385567 Ref: shishi_authenticator_ctime386076 Ref: shishi_authenticator_ctime_set386588 Ref: shishi_authenticator_cusec_get387096 Ref: shishi_authenticator_cusec_set387618 Ref: shishi_authenticator_seqnumber_get388137 Ref: shishi_authenticator_seqnumber_remove388674 Ref: shishi_authenticator_seqnumber_set389124 Ref: shishi_authenticator_client389659 Ref: shishi_authenticator_clientrealm390623 Ref: shishi_authenticator_cksum391615 Ref: shishi_authenticator_set_cksum392399 Ref: shishi_authenticator_add_cksum393393 Ref: shishi_authenticator_add_cksum_type394164 Ref: shishi_authenticator_clear_authorizationdata395029 Ref: shishi_authenticator_add_authorizationdata395514 Ref: shishi_authenticator_authorizationdata396188 Ref: shishi_authenticator_remove_subkey396977 Ref: shishi_authenticator_get_subkey397407 Ref: shishi_authenticator_set_subkey397974 Ref: shishi_authenticator_add_random_subkey398985 Ref: shishi_authenticator_add_random_subkey_etype399522 Ref: shishi_authenticator_add_subkey400083 Node: KRB-ERROR Functions400508 Ref: shishi_krberror401762 Ref: shishi_krberror_print402093 Ref: shishi_krberror_save402509 Ref: shishi_krberror_to_file402909 Ref: shishi_krberror_parse403496 Ref: shishi_krberror_read403967 Ref: shishi_krberror_from_file404433 Ref: shishi_krberror_build405006 Ref: shishi_krberror_der405474 Ref: shishi_krberror_crealm406047 Ref: shishi_krberror_remove_crealm406585 Ref: shishi_krberror_set_crealm406977 Ref: shishi_krberror_client407424 Ref: shishi_krberror_set_cname408121 Ref: shishi_krberror_remove_cname408720 Ref: shishi_krberror_client_set409111 Ref: shishi_krberror_realm409585 Ref: shishi_krberror_set_realm410116 Ref: shishi_krberror_server410583 Ref: shishi_krberror_remove_sname411283 Ref: shishi_krberror_set_sname411831 Ref: shishi_krberror_server_set412426 Ref: shishi_krberror_ctime412900 Ref: shishi_krberror_ctime_set413352 Ref: shishi_krberror_remove_ctime413816 Ref: shishi_krberror_cusec414195 Ref: shishi_krberror_cusec_set414663 Ref: shishi_krberror_remove_cusec415130 Ref: shishi_krberror_stime415509 Ref: shishi_krberror_stime_set415961 Ref: shishi_krberror_susec416411 Ref: shishi_krberror_susec_set416879 Ref: shishi_krberror_errorcode417340 Ref: shishi_krberror_errorcode_fast417796 Ref: shishi_krberror_errorcode_set418257 Ref: shishi_krberror_etext418709 Ref: shishi_krberror_set_etext419243 Ref: shishi_krberror_remove_etext419731 Ref: shishi_krberror_edata420119 Ref: shishi_krberror_methoddata420655 Ref: shishi_krberror_set_edata421243 Ref: shishi_krberror_remove_edata421731 Ref: shishi_krberror_pretty_print422133 Ref: shishi_krberror_errorcode_message422624 Ref: shishi_krberror_message423108 Node: Cryptographic Functions423633 Ref: shishi_key_principal424598 Ref: shishi_key_principal_set424996 Ref: shishi_key_realm425401 Ref: shishi_key_realm_set425767 Ref: shishi_key_type426168 Ref: shishi_key_type_set426446 Ref: shishi_key_value426691 Ref: shishi_key_value_set427018 Ref: shishi_key_version427471 Ref: shishi_key_version_set427808 Ref: shishi_key_timestamp428133 Ref: shishi_key_timestamp_set428558 Ref: shishi_key_name428913 Ref: shishi_key_length429162 Ref: shishi_key429418 Ref: shishi_key_done429778 Ref: shishi_key_copy429985 Ref: shishi_key_from_value430323 Ref: shishi_key_from_base64430950 Ref: shishi_key_random431669 Ref: shishi_key_from_random432225 Ref: shishi_key_from_string432918 Ref: shishi_key_from_name433912 Ref: shishi_keys435211 Ref: shishi_keys_done435539 Ref: shishi_keys_size435866 Ref: shishi_keys_nth436121 Ref: shishi_keys_remove436614 Ref: shishi_keys_add436937 Ref: shishi_keys_print437381 Ref: shishi_keys_to_file437694 Ref: shishi_keys_from_file438257 Ref: shishi_keys_for_serverrealm_in_file438771 Ref: shishi_keys_for_server_in_file439458 Ref: shishi_keys_for_localservicerealm_in_file440038 Ref: shishi_hostkeys_default_file441153 Ref: shishi_hostkeys_default_file_set441569 Ref: shishi_hostkeys_for_server442093 Ref: shishi_hostkeys_for_serverrealm442614 Ref: shishi_hostkeys_for_localservicerealm443240 Ref: shishi_hostkeys_for_localservice443970 Ref: shishi_cipher_supported_p444750 Ref: shishi_cipher_name445007 Ref: shishi_cipher_blocksize445339 Ref: shishi_cipher_confoundersize445645 Ref: shishi_cipher_keylen446046 Ref: shishi_cipher_randomlen446354 Ref: shishi_cipher_defaultcksumtype446758 Ref: shishi_cipher_parse447098 Ref: shishi_checksum_supported_p447410 Ref: shishi_checksum_name447684 Ref: shishi_checksum_cksumlen448004 Ref: shishi_checksum_parse448321 Ref: shishi_string_to_key448656 Ref: shishi_random_to_key449769 Ref: shishi_checksum450432 Ref: shishi_verify451370 Ref: shishi_encrypt_ivupdate_etype452289 Ref: shishi_encrypt_iv_etype454233 Ref: shishi_encrypt_etype455970 Ref: shishi_encrypt_ivupdate457649 Ref: shishi_encrypt_iv459474 Ref: shishi_encrypt461086 Ref: shishi_decrypt_ivupdate_etype462631 Ref: shishi_decrypt_iv_etype464575 Ref: shishi_decrypt_etype466312 Ref: shishi_decrypt_ivupdate467960 Ref: shishi_decrypt_iv469785 Ref: shishi_decrypt471403 Ref: shishi_n_fold472916 Ref: shishi_dr473793 Ref: shishi_dk474589 Ref: shishi_crypto475570 Ref: shishi_crypto_encrypt476733 Ref: shishi_crypto_decrypt477586 Ref: shishi_crypto_close478435 Ref: shishi_randomize478894 Ref: shishi_crc479417 Ref: shishi_md4480153 Ref: shishi_md5480676 Ref: shishi_hmac_md5481209 Ref: shishi_hmac_sha1481936 Ref: shishi_des_cbc_mac482669 Ref: shishi_arcfour483411 Ref: shishi_des484681 Ref: shishi_3des485644 Ref: shishi_aes_cts486615 Ref: shishi_pbkdf2_sha1487760 Node: X.509 Functions488870 Ref: shishi_x509ca_default_file_guess489219 Ref: shishi_x509ca_default_file_set489671 Ref: shishi_x509ca_default_file490311 Ref: shishi_x509cert_default_file_guess490839 Ref: shishi_x509cert_default_file_set491314 Ref: shishi_x509cert_default_file491972 Ref: shishi_x509key_default_file_guess492515 Ref: shishi_x509key_default_file_set492959 Ref: shishi_x509key_default_file493588 Node: Utility Functions494027 Ref: shishi_realm_default_guess494249 Ref: shishi_realm_default495371 Ref: shishi_realm_default_set495875 Ref: shishi_realm_for_server_file496484 Ref: shishi_realm_for_server_dns496924 Ref: shishi_realm_for_server498481 Ref: shishi_principal_default_guess499224 Ref: shishi_principal_default499650 Ref: shishi_principal_default_set500191 Ref: shishi_parse_name500676 Ref: shishi_principal_name501492 Ref: shishi_principal_name_realm502499 Ref: shishi_principal_name_set503726 Ref: shishi_principal_set504420 Ref: shishi_derive_default_salt505026 Ref: shishi_server_for_local_service505560 Ref: shishi_authorize_strcmp506187 Ref: shishi_authorize_k5login506782 Ref: shishi_authorization_parse507364 Ref: shishi_authorized_p507693 Ref: shishi_generalize_time508463 Ref: shishi_generalize_now508939 Ref: shishi_generalize_ctime509355 Ref: shishi_time509760 Ref: shishi_ctime510395 Ref: shishi_prompt_password_callback_set511197 Ref: shishi_prompt_password_callback_get512086 Ref: shishi_prompt_password512524 Ref: shishi_resolv513198 Ref: shishi_resolv_free513853 Node: ASN.1 Functions514079 Ref: shishi_asn1_read_inline514290 Ref: shishi_asn1_read515243 Ref: shishi_asn1_read_optional516100 Ref: shishi_asn1_done517061 Ref: shishi_asn1_pa_enc_ts_enc517418 Ref: shishi_asn1_encrypteddata517716 Ref: shishi_asn1_padata517999 Ref: shishi_asn1_methoddata518278 Ref: shishi_asn1_etype_info518565 Ref: shishi_asn1_etype_info2518853 Ref: shishi_asn1_asreq519131 Ref: shishi_asn1_asrep519398 Ref: shishi_asn1_tgsreq519667 Ref: shishi_asn1_tgsrep519938 Ref: shishi_asn1_apreq520207 Ref: shishi_asn1_aprep520474 Ref: shishi_asn1_encapreppart520755 Ref: shishi_asn1_ticket521031 Ref: shishi_asn1_encticketpart521315 Ref: shishi_asn1_authenticator521613 Ref: shishi_asn1_enckdcreppart521911 Ref: shishi_asn1_encasreppart522207 Ref: shishi_asn1_krberror522493 Ref: shishi_asn1_krbsafe522770 Ref: shishi_asn1_priv523039 Ref: shishi_asn1_encprivpart523319 Ref: shishi_asn1_to_der_field523614 Ref: shishi_asn1_to_der524355 Ref: shishi_asn1_msgtype524997 Ref: shishi_der_msgtype525490 Ref: shishi_der2asn1525945 Ref: shishi_der2asn1_padata526458 Ref: shishi_der2asn1_methoddata526959 Ref: shishi_der2asn1_etype_info527468 Ref: shishi_der2asn1_etype_info2527978 Ref: shishi_der2asn1_ticket528480 Ref: shishi_der2asn1_encticketpart528986 Ref: shishi_der2asn1_asreq529490 Ref: shishi_der2asn1_tgsreq529981 Ref: shishi_der2asn1_asrep530472 Ref: shishi_der2asn1_tgsrep530963 Ref: shishi_der2asn1_kdcrep531456 Ref: shishi_der2asn1_encasreppart531961 Ref: shishi_der2asn1_enctgsreppart532479 Ref: shishi_der2asn1_enckdcreppart532999 Ref: shishi_der2asn1_authenticator533519 Ref: shishi_der2asn1_krberror534029 Ref: shishi_der2asn1_krbsafe534528 Ref: shishi_der2asn1_priv535019 Ref: shishi_der2asn1_encprivpart535521 Ref: shishi_der2asn1_apreq536024 Ref: shishi_der2asn1_aprep536513 Ref: shishi_der2asn1_encapreppart537016 Ref: shishi_der2asn1_kdcreq537520 Ref: shishi_asn1_print538022 Node: Error Handling538385 Node: Error Values539146 Node: Error Functions544165 Ref: shishi_strerror544332 Ref: shishi_error544733 Ref: shishi_error_clear545227 Ref: shishi_error_set545781 Ref: shishi_error_printf546467 Ref: shishi_error_outputtype547017 Ref: shishi_error_set_outputtype547495 Ref: shishi_info548114 Ref: shishi_warn548484 Ref: shishi_verbose548845 Node: Examples549324 Node: Kerberos Database Functions550958 Ref: shisa553649 Ref: shisa_done553910 Ref: shisa_init554192 Ref: shisa_init_with_paths554957 Ref: shisa_cfg_db556055 Ref: shisa_cfg556770 Ref: shisa_cfg_from_file557471 Ref: shisa_cfg_default_systemfile557933 Ref: shisa_enumerate_realms558666 Ref: shisa_enumerate_principals559394 Ref: shisa_principal_find560308 Ref: shisa_principal_update561108 Ref: shisa_principal_add562422 Ref: shisa_principal_remove563371 Ref: shisa_keys_find564061 Ref: shisa_key_add565269 Ref: shisa_key_update565884 Ref: shisa_key_remove567395 Ref: shisa_key_free568428 Ref: shisa_keys_free568746 Ref: shisa_strerror569416 Ref: shisa_info569819 Node: Generic Security Service570152 Node: Acknowledgements571397 Node: Criticism of Kerberos572120 Node: Protocol Extensions574367 Node: STARTTLS protected KDC exchanges575187 Node: Telnet encryption with AES-CCM584317 Node: Kerberized rsh and rlogin592272 Ref: basic authorization596677 Ref: kerberos authorization604162 Node: Key as initialization vector606356 Ref: Key as initialization vector-Footnote-1608715 Node: The Keytab Binary File Format608881 Node: The Credential Cache Binary File Format613721 Node: Copying Information617141 Node: GNU Free Documentation License617403 Node: Function and Data Index642518 Node: Concept Index719565  End Tag Table  Local Variables: coding: utf-8 End: shishi-1.0.3/doc/Makefile.in0000644000000000000000000036247114273615654012535 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_GTK_DOC_TRUE@am__append_1 = reference subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/version.texi \ $(srcdir)/stamp-vti $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = AM_V_DVIPS = $(am__v_DVIPS_@AM_V@) am__v_DVIPS_ = $(am__v_DVIPS_@AM_DEFAULT_V@) am__v_DVIPS_0 = @echo " DVIPS " $@; am__v_DVIPS_1 = AM_V_MAKEINFO = $(am__v_MAKEINFO_@AM_V@) am__v_MAKEINFO_ = $(am__v_MAKEINFO_@AM_DEFAULT_V@) am__v_MAKEINFO_0 = @echo " MAKEINFO" $@; am__v_MAKEINFO_1 = AM_V_INFOHTML = $(am__v_INFOHTML_@AM_V@) am__v_INFOHTML_ = $(am__v_INFOHTML_@AM_DEFAULT_V@) am__v_INFOHTML_0 = @echo " INFOHTML" $@; am__v_INFOHTML_1 = AM_V_TEXI2DVI = $(am__v_TEXI2DVI_@AM_V@) am__v_TEXI2DVI_ = $(am__v_TEXI2DVI_@AM_DEFAULT_V@) am__v_TEXI2DVI_0 = @echo " TEXI2DVI" $@; am__v_TEXI2DVI_1 = AM_V_TEXI2PDF = $(am__v_TEXI2PDF_@AM_V@) am__v_TEXI2PDF_ = $(am__v_TEXI2PDF_@AM_DEFAULT_V@) am__v_TEXI2PDF_0 = @echo " TEXI2PDF" $@; am__v_TEXI2PDF_1 = AM_V_texinfo = $(am__v_texinfo_@AM_V@) am__v_texinfo_ = $(am__v_texinfo_@AM_DEFAULT_V@) am__v_texinfo_0 = -q am__v_texinfo_1 = AM_V_texidevnull = $(am__v_texidevnull_@AM_V@) am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) am__v_texidevnull_0 = > /dev/null am__v_texidevnull_1 = INFO_DEPS = $(srcdir)/shishi.info TEXINFO_TEX = $(top_srcdir)/build-aux/texinfo.tex am__TEXINFO_TEX_DIR = $(top_srcdir)/build-aux DVIS = shishi.dvi PDFS = shishi.pdf PSS = shishi.ps HTMLS = shishi.html TEXINFOS = shishi.texi TEXI2DVI = texi2dvi TEXI2PDF = $(TEXI2DVI) --pdf --batch MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) DVIPS = dvips RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" \ "$(DESTDIR)$(man3dir)" am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 man3dir = $(mandir)/man3 NROFF = nroff MANS = $(dist_man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = . cyclo reference am__DIST_COMMON = $(dist_man_MANS) $(shishi_TEXINFOS) \ $(srcdir)/Makefile.in $(top_srcdir)/build-aux/mdate-sh \ $(top_srcdir)/build-aux/texinfo.tex DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = . cyclo $(am__append_1) EXTRA_DIST = gdoc gdoc-error components.dia info_TEXINFOS = shishi.texi shishi_TEXINFOS = fdl-1.3.texi $(gdoc_TEXINFOS) \ shishi-api-error-labels.texi parse-datetime.texi \ components.png keytab.txt ccache.txt dist_man_MANS = shishi.1 shisa.1 shishid.1 keytab2shishi.1 ccache2shishi.1 \ $(gdoc_MANS) MAINTAINERCLEANFILES = $(dist_man_MANS) gdoc_MANS = man/shishi_ap.3 man/shishi_ap_etype.3 \ man/shishi_ap_nosubkey.3 man/shishi_ap_done.3 \ man/shishi_ap_set_tktoptions.3 \ man/shishi_ap_set_tktoptionsdata.3 \ man/shishi_ap_set_tktoptionsraw.3 \ man/shishi_ap_set_tktoptionsasn1usage.3 \ man/shishi_ap_tktoptions.3 man/shishi_ap_tktoptionsdata.3 \ man/shishi_ap_tktoptionsraw.3 \ man/shishi_ap_etype_tktoptionsdata.3 \ man/shishi_ap_tktoptionsasn1usage.3 man/shishi_ap_tkt.3 \ man/shishi_ap_tkt_set.3 \ man/shishi_ap_authenticator_cksumdata.3 \ man/shishi_ap_authenticator_cksumdata_set.3 \ man/shishi_ap_authenticator_cksumraw_set.3 \ man/shishi_ap_authenticator_cksumtype.3 \ man/shishi_ap_authenticator_cksumtype_set.3 \ man/shishi_ap_authenticator.3 \ man/shishi_ap_authenticator_set.3 man/shishi_ap_req.3 \ man/shishi_ap_req_set.3 man/shishi_ap_req_der.3 \ man/shishi_ap_req_der_set.3 man/shishi_ap_req_build.3 \ man/shishi_ap_req_decode.3 \ man/shishi_ap_req_process_keyusage.3 \ man/shishi_ap_req_process.3 man/shishi_ap_req_asn1.3 \ man/shishi_ap_key.3 man/shishi_ap_rep.3 \ man/shishi_ap_rep_set.3 man/shishi_ap_rep_der.3 \ man/shishi_ap_rep_der_set.3 man/shishi_ap_rep_build.3 \ man/shishi_ap_rep_asn1.3 man/shishi_ap_rep_verify.3 \ man/shishi_ap_rep_verify_der.3 man/shishi_ap_rep_verify_asn1.3 \ man/shishi_ap_encapreppart.3 man/shishi_ap_encapreppart_set.3 \ man/shishi_ap_option2string.3 man/shishi_ap_string2option.3 \ man/shishi_aprep.3 man/shishi_aprep_print.3 \ man/shishi_aprep_save.3 man/shishi_aprep_to_file.3 \ man/shishi_aprep_parse.3 man/shishi_aprep_read.3 \ man/shishi_aprep_from_file.3 \ man/shishi_aprep_get_enc_part_etype.3 man/shishi_apreq.3 \ man/shishi_apreq_print.3 man/shishi_apreq_save.3 \ man/shishi_apreq_to_file.3 man/shishi_apreq_parse.3 \ man/shishi_apreq_read.3 man/shishi_apreq_from_file.3 \ man/shishi_apreq_set_authenticator.3 \ man/shishi_apreq_add_authenticator.3 \ man/shishi_apreq_set_ticket.3 man/shishi_apreq_options.3 \ man/shishi_apreq_use_session_key_p.3 \ man/shishi_apreq_mutual_required_p.3 \ man/shishi_apreq_options_set.3 man/shishi_apreq_options_add.3 \ man/shishi_apreq_options_remove.3 \ man/shishi_apreq_get_authenticator_etype.3 \ man/shishi_apreq_get_ticket.3 man/shishi_as.3 \ man/shishi_as_done.3 man/shishi_as_req.3 \ man/shishi_as_req_build.3 man/shishi_as_req_set.3 \ man/shishi_as_req_der.3 man/shishi_as_req_der_set.3 \ man/shishi_as_rep.3 man/shishi_as_rep_process.3 \ man/shishi_as_rep_build.3 man/shishi_as_rep_der.3 \ man/shishi_as_rep_set.3 man/shishi_as_rep_der_set.3 \ man/shishi_as_krberror.3 man/shishi_as_krberror_der.3 \ man/shishi_as_krberror_set.3 man/shishi_as_tkt.3 \ man/shishi_as_tkt_set.3 man/shishi_as_sendrecv_hint.3 \ man/shishi_as_sendrecv.3 man/shishi_asn1_read_inline.3 \ man/shishi_asn1_read.3 man/shishi_asn1_read_optional.3 \ man/shishi_asn1_done.3 man/shishi_asn1_pa_enc_ts_enc.3 \ man/shishi_asn1_encrypteddata.3 man/shishi_asn1_padata.3 \ man/shishi_asn1_methoddata.3 man/shishi_asn1_etype_info.3 \ man/shishi_asn1_etype_info2.3 man/shishi_asn1_asreq.3 \ man/shishi_asn1_asrep.3 man/shishi_asn1_tgsreq.3 \ man/shishi_asn1_tgsrep.3 man/shishi_asn1_apreq.3 \ man/shishi_asn1_aprep.3 man/shishi_asn1_encapreppart.3 \ man/shishi_asn1_ticket.3 man/shishi_asn1_encticketpart.3 \ man/shishi_asn1_authenticator.3 \ man/shishi_asn1_enckdcreppart.3 man/shishi_asn1_encasreppart.3 \ man/shishi_asn1_krberror.3 man/shishi_asn1_krbsafe.3 \ man/shishi_asn1_priv.3 man/shishi_asn1_encprivpart.3 \ man/shishi_asn1_to_der_field.3 man/shishi_asn1_to_der.3 \ man/shishi_asn1_msgtype.3 man/shishi_der_msgtype.3 \ man/shishi_der2asn1.3 man/shishi_der2asn1_padata.3 \ man/shishi_der2asn1_methoddata.3 \ man/shishi_der2asn1_etype_info.3 \ man/shishi_der2asn1_etype_info2.3 man/shishi_der2asn1_ticket.3 \ man/shishi_der2asn1_encticketpart.3 \ man/shishi_der2asn1_asreq.3 man/shishi_der2asn1_tgsreq.3 \ man/shishi_der2asn1_asrep.3 man/shishi_der2asn1_tgsrep.3 \ man/shishi_der2asn1_kdcrep.3 \ man/shishi_der2asn1_encasreppart.3 \ man/shishi_der2asn1_enctgsreppart.3 \ man/shishi_der2asn1_enckdcreppart.3 \ man/shishi_der2asn1_authenticator.3 \ man/shishi_der2asn1_krberror.3 man/shishi_der2asn1_krbsafe.3 \ man/shishi_der2asn1_priv.3 man/shishi_der2asn1_encprivpart.3 \ man/shishi_der2asn1_apreq.3 man/shishi_der2asn1_aprep.3 \ man/shishi_der2asn1_encapreppart.3 \ man/shishi_der2asn1_kdcreq.3 man/shishi_asn1_print.3 \ man/shishi_authenticator.3 man/shishi_authenticator_subkey.3 \ man/shishi_authenticator_print.3 \ man/shishi_authenticator_save.3 \ man/shishi_authenticator_to_file.3 \ man/shishi_authenticator_parse.3 \ man/shishi_authenticator_read.3 \ man/shishi_authenticator_from_file.3 \ man/shishi_authenticator_set_crealm.3 \ man/shishi_authenticator_set_cname.3 \ man/shishi_authenticator_client_set.3 \ man/shishi_authenticator_ctime.3 \ man/shishi_authenticator_ctime_set.3 \ man/shishi_authenticator_cusec_get.3 \ man/shishi_authenticator_cusec_set.3 \ man/shishi_authenticator_seqnumber_get.3 \ man/shishi_authenticator_seqnumber_remove.3 \ man/shishi_authenticator_seqnumber_set.3 \ man/shishi_authenticator_client.3 \ man/shishi_authenticator_clientrealm.3 \ man/shishi_authenticator_cksum.3 \ man/shishi_authenticator_set_cksum.3 \ man/shishi_authenticator_add_cksum.3 \ man/shishi_authenticator_add_cksum_type.3 \ man/shishi_authenticator_clear_authorizationdata.3 \ man/shishi_authenticator_add_authorizationdata.3 \ man/shishi_authenticator_authorizationdata.3 \ man/shishi_authenticator_remove_subkey.3 \ man/shishi_authenticator_get_subkey.3 \ man/shishi_authenticator_set_subkey.3 \ man/shishi_authenticator_add_random_subkey.3 \ man/shishi_authenticator_add_random_subkey_etype.3 \ man/shishi_authenticator_add_subkey.3 \ man/shishi_authorize_strcmp.3 man/shishi_authorize_k5login.3 \ man/shishi_authorization_parse.3 man/shishi_authorized_p.3 \ man/shishi_cfg.3 man/shishi_cfg_from_file.3 \ man/shishi_cfg_print.3 man/shishi_cfg_default_systemfile.3 \ man/shishi_cfg_default_userdirectory.3 \ man/shishi_cfg_userdirectory_file.3 \ man/shishi_cfg_default_userfile.3 \ man/shishi_cfg_clientkdcetype.3 \ man/shishi_cfg_clientkdcetype_fast.3 \ man/shishi_cfg_clientkdcetype_set.3 \ man/shishi_cfg_authorizationtype_set.3 man/shishi_crypto.3 \ man/shishi_crypto_encrypt.3 man/shishi_crypto_decrypt.3 \ man/shishi_crypto_close.3 man/shishi_cipher_supported_p.3 \ man/shishi_cipher_name.3 man/shishi_cipher_blocksize.3 \ man/shishi_cipher_confoundersize.3 man/shishi_cipher_keylen.3 \ man/shishi_cipher_randomlen.3 \ man/shishi_cipher_defaultcksumtype.3 man/shishi_cipher_parse.3 \ man/shishi_checksum_supported_p.3 man/shishi_checksum_name.3 \ man/shishi_checksum_cksumlen.3 man/shishi_checksum_parse.3 \ man/shishi_string_to_key.3 man/shishi_random_to_key.3 \ man/shishi_checksum.3 man/shishi_verify.3 \ man/shishi_encrypt_ivupdate_etype.3 \ man/shishi_encrypt_iv_etype.3 man/shishi_encrypt_etype.3 \ man/shishi_encrypt_ivupdate.3 man/shishi_encrypt_iv.3 \ man/shishi_encrypt.3 man/shishi_decrypt_ivupdate_etype.3 \ man/shishi_decrypt_iv_etype.3 man/shishi_decrypt_etype.3 \ man/shishi_decrypt_ivupdate.3 man/shishi_decrypt_iv.3 \ man/shishi_decrypt.3 man/shishi_n_fold.3 man/shishi_dr.3 \ man/shishi_dk.3 man/shishi_key_print.3 \ man/shishi_key_to_file.3 man/shishi_encapreppart.3 \ man/shishi_encapreppart_print.3 man/shishi_encapreppart_save.3 \ man/shishi_encapreppart_to_file.3 \ man/shishi_encapreppart_parse.3 man/shishi_encapreppart_read.3 \ man/shishi_encapreppart_from_file.3 \ man/shishi_encapreppart_get_key.3 \ man/shishi_encapreppart_ctime.3 \ man/shishi_encapreppart_ctime_set.3 \ man/shishi_encapreppart_cusec_get.3 \ man/shishi_encapreppart_cusec_set.3 \ man/shishi_encapreppart_seqnumber_get.3 \ man/shishi_encapreppart_seqnumber_remove.3 \ man/shishi_encapreppart_seqnumber_set.3 \ man/shishi_encapreppart_time_copy.3 \ man/shishi_enckdcreppart_get_key.3 \ man/shishi_enckdcreppart_key_set.3 \ man/shishi_enckdcreppart_nonce_set.3 \ man/shishi_enckdcreppart_flags_set.3 \ man/shishi_enckdcreppart_authtime_set.3 \ man/shishi_enckdcreppart_starttime_set.3 \ man/shishi_enckdcreppart_endtime_set.3 \ man/shishi_enckdcreppart_renew_till_set.3 \ man/shishi_enckdcreppart_srealm_set.3 \ man/shishi_enckdcreppart_sname_set.3 \ man/shishi_enckdcreppart_populate_encticketpart.3 \ man/shishi_encticketpart_get_key.3 \ man/shishi_encticketpart_key_set.3 \ man/shishi_encticketpart_flags_set.3 \ man/shishi_encticketpart_crealm_set.3 \ man/shishi_encticketpart_cname_set.3 \ man/shishi_encticketpart_transited_set.3 \ man/shishi_encticketpart_authtime_set.3 \ man/shishi_encticketpart_endtime_set.3 \ man/shishi_encticketpart_client.3 \ man/shishi_encticketpart_clientrealm.3 man/shishi_strerror.3 \ man/shishi_error.3 man/shishi_error_clear.3 \ man/shishi_error_set.3 man/shishi_error_printf.3 \ man/shishi_error_outputtype.3 \ man/shishi_error_set_outputtype.3 man/shishi_info.3 \ man/shishi_warn.3 man/shishi_verbose.3 \ man/shishi_generalize_time.3 man/shishi_generalize_now.3 \ man/shishi_generalize_ctime.3 man/shishi_time.3 \ man/shishi_ctime.3 man/shishi_hostkeys_default_file.3 \ man/shishi_hostkeys_default_file_set.3 \ man/shishi_hostkeys_for_server.3 \ man/shishi_hostkeys_for_serverrealm.3 \ man/shishi_hostkeys_for_localservicerealm.3 \ man/shishi_hostkeys_for_localservice.3 man/shishi.3 \ man/shishi_server.3 man/shishi_done.3 man/shishi_init.3 \ man/shishi_init_with_paths.3 man/shishi_init_server.3 \ man/shishi_init_server_with_paths.3 \ man/shishi_as_derive_salt.3 man/shishi_kdcreq_sendrecv_hint.3 \ man/shishi_kdcreq_sendrecv.3 man/shishi_kdc_copy_crealm.3 \ man/shishi_as_check_crealm.3 man/shishi_kdc_copy_cname.3 \ man/shishi_as_check_cname.3 man/shishi_kdc_copy_nonce.3 \ man/shishi_kdc_check_nonce.3 man/shishi_tgs_process.3 \ man/shishi_as_process.3 man/shishi_kdc_process.3 \ man/shishi_asrep.3 man/shishi_tgsrep.3 \ man/shishi_kdcrep_print.3 man/shishi_kdcrep_save.3 \ man/shishi_kdcrep_to_file.3 man/shishi_kdcrep_parse.3 \ man/shishi_kdcrep_read.3 man/shishi_kdcrep_from_file.3 \ man/shishi_kdcrep_crealm_set.3 man/shishi_kdcrep_cname_set.3 \ man/shishi_kdcrep_client_set.3 \ man/shishi_kdcrep_get_enc_part_etype.3 \ man/shishi_kdcrep_get_ticket.3 man/shishi_kdcrep_set_ticket.3 \ man/shishi_kdcrep_set_enc_part.3 \ man/shishi_kdcrep_add_enc_part.3 \ man/shishi_kdcrep_clear_padata.3 man/shishi_asreq.3 \ man/shishi_tgsreq.3 man/shishi_kdcreq_print.3 \ man/shishi_kdcreq_save.3 man/shishi_kdcreq_to_file.3 \ man/shishi_kdcreq_parse.3 man/shishi_kdcreq_read.3 \ man/shishi_kdcreq_from_file.3 man/shishi_kdcreq_nonce_set.3 \ man/shishi_kdcreq_set_cname.3 man/shishi_kdcreq_client.3 \ man/shishi_asreq_clientrealm.3 man/shishi_kdcreq_realm.3 \ man/shishi_kdcreq_set_realm.3 man/shishi_kdcreq_server.3 \ man/shishi_kdcreq_set_sname.3 man/shishi_kdcreq_till.3 \ man/shishi_kdcreq_tillc.3 man/shishi_kdcreq_etype.3 \ man/shishi_kdcreq_set_etype.3 man/shishi_kdcreq_options.3 \ man/shishi_kdcreq_forwardable_p.3 \ man/shishi_kdcreq_forwarded_p.3 \ man/shishi_kdcreq_proxiable_p.3 man/shishi_kdcreq_proxy_p.3 \ man/shishi_kdcreq_allow_postdate_p.3 \ man/shishi_kdcreq_postdated_p.3 \ man/shishi_kdcreq_renewable_p.3 \ man/shishi_kdcreq_disable_transited_check_p.3 \ man/shishi_kdcreq_renewable_ok_p.3 \ man/shishi_kdcreq_enc_tkt_in_skey_p.3 \ man/shishi_kdcreq_renew_p.3 man/shishi_kdcreq_validate_p.3 \ man/shishi_kdcreq_options_set.3 \ man/shishi_kdcreq_options_add.3 \ man/shishi_kdcreq_clear_padata.3 \ man/shishi_kdcreq_get_padata.3 \ man/shishi_kdcreq_get_padata_tgs.3 \ man/shishi_kdcreq_add_padata.3 \ man/shishi_kdcreq_add_padata_tgs.3 \ man/shishi_kdcreq_add_padata_preauth.3 \ man/shishi_key_principal.3 man/shishi_key_principal_set.3 \ man/shishi_key_realm.3 man/shishi_key_realm_set.3 \ man/shishi_key_type.3 man/shishi_key_type_set.3 \ man/shishi_key_value.3 man/shishi_key_value_set.3 \ man/shishi_key_version.3 man/shishi_key_version_set.3 \ man/shishi_key_timestamp.3 man/shishi_key_timestamp_set.3 \ man/shishi_key_name.3 man/shishi_key_length.3 man/shishi_key.3 \ man/shishi_key_done.3 man/shishi_key_copy.3 \ man/shishi_key_from_value.3 man/shishi_key_from_base64.3 \ man/shishi_key_random.3 man/shishi_key_from_random.3 \ man/shishi_key_from_string.3 man/shishi_key_from_name.3 \ man/shishi_keys.3 man/shishi_keys_done.3 \ man/shishi_keys_size.3 man/shishi_keys_nth.3 \ man/shishi_keys_remove.3 man/shishi_keys_add.3 \ man/shishi_keys_print.3 man/shishi_keys_to_file.3 \ man/shishi_keys_from_file.3 \ man/shishi_keys_for_serverrealm_in_file.3 \ man/shishi_keys_for_server_in_file.3 \ man/shishi_keys_for_localservicerealm_in_file.3 \ man/shishi_keys_add_keytab_mem.3 \ man/shishi_keys_add_keytab_file.3 \ man/shishi_keys_from_keytab_mem.3 \ man/shishi_keys_from_keytab_file.3 \ man/shishi_keys_to_keytab_mem.3 \ man/shishi_keys_to_keytab_file.3 man/shishi_krberror.3 \ man/shishi_krberror_print.3 man/shishi_krberror_save.3 \ man/shishi_krberror_to_file.3 man/shishi_krberror_parse.3 \ man/shishi_krberror_read.3 man/shishi_krberror_from_file.3 \ man/shishi_krberror_build.3 man/shishi_krberror_der.3 \ man/shishi_krberror_crealm.3 \ man/shishi_krberror_remove_crealm.3 \ man/shishi_krberror_set_crealm.3 man/shishi_krberror_client.3 \ man/shishi_krberror_set_cname.3 \ man/shishi_krberror_remove_cname.3 \ man/shishi_krberror_client_set.3 man/shishi_krberror_realm.3 \ man/shishi_krberror_set_realm.3 man/shishi_krberror_server.3 \ man/shishi_krberror_remove_sname.3 \ man/shishi_krberror_set_sname.3 \ man/shishi_krberror_server_set.3 man/shishi_krberror_ctime.3 \ man/shishi_krberror_ctime_set.3 \ man/shishi_krberror_remove_ctime.3 man/shishi_krberror_cusec.3 \ man/shishi_krberror_cusec_set.3 \ man/shishi_krberror_remove_cusec.3 man/shishi_krberror_stime.3 \ man/shishi_krberror_stime_set.3 man/shishi_krberror_susec.3 \ man/shishi_krberror_susec_set.3 \ man/shishi_krberror_errorcode.3 \ man/shishi_krberror_errorcode_fast.3 \ man/shishi_krberror_errorcode_set.3 \ man/shishi_krberror_etext.3 man/shishi_krberror_set_etext.3 \ man/shishi_krberror_remove_etext.3 man/shishi_krberror_edata.3 \ man/shishi_krberror_methoddata.3 \ man/shishi_krberror_set_edata.3 \ man/shishi_krberror_remove_edata.3 \ man/shishi_krberror_pretty_print.3 \ man/shishi_krberror_errorcode_message.3 \ man/shishi_krberror_message.3 man/shishi_randomize.3 \ man/shishi_crc.3 man/shishi_md4.3 man/shishi_md5.3 \ man/shishi_hmac_md5.3 man/shishi_hmac_sha1.3 \ man/shishi_des_cbc_mac.3 man/shishi_arcfour.3 man/shishi_des.3 \ man/shishi_3des.3 man/shishi_aes_cts.3 \ man/shishi_pbkdf2_sha1.3 man/shishi_kdc_sendrecv_hint.3 \ man/shishi_kdc_sendrecv.3 \ man/shishi_prompt_password_callback_set.3 \ man/shishi_prompt_password_callback_get.3 \ man/shishi_prompt_password.3 \ man/shishi_x509ca_default_file_guess.3 \ man/shishi_x509ca_default_file_set.3 \ man/shishi_x509ca_default_file.3 \ man/shishi_x509cert_default_file_guess.3 \ man/shishi_x509cert_default_file_set.3 \ man/shishi_x509cert_default_file.3 \ man/shishi_x509key_default_file_guess.3 \ man/shishi_x509key_default_file_set.3 \ man/shishi_x509key_default_file.3 \ man/shishi_principal_default_guess.3 \ man/shishi_principal_default.3 \ man/shishi_principal_default_set.3 man/shishi_parse_name.3 \ man/shishi_principal_name.3 man/shishi_principal_name_realm.3 \ man/shishi_principal_name_set.3 man/shishi_principal_set.3 \ man/shishi_derive_default_salt.3 \ man/shishi_server_for_local_service.3 man/shishi_priv.3 \ man/shishi_priv_done.3 man/shishi_priv_key.3 \ man/shishi_priv_key_set.3 man/shishi_priv_priv.3 \ man/shishi_priv_priv_set.3 man/shishi_priv_priv_der.3 \ man/shishi_priv_priv_der_set.3 man/shishi_priv_encprivpart.3 \ man/shishi_priv_encprivpart_set.3 \ man/shishi_priv_encprivpart_der.3 \ man/shishi_priv_encprivpart_der_set.3 man/shishi_priv_print.3 \ man/shishi_priv_save.3 man/shishi_priv_to_file.3 \ man/shishi_priv_parse.3 man/shishi_priv_read.3 \ man/shishi_priv_from_file.3 man/shishi_priv_enc_part_etype.3 \ man/shishi_priv_set_enc_part.3 \ man/shishi_encprivpart_user_data.3 \ man/shishi_encprivpart_set_user_data.3 man/shishi_priv_build.3 \ man/shishi_priv_process.3 man/shishi_realm_default_guess.3 \ man/shishi_realm_default.3 man/shishi_realm_default_set.3 \ man/shishi_realm_for_server_file.3 \ man/shishi_realm_for_server_dns.3 \ man/shishi_realm_for_server.3 man/shishi_resolv.3 \ man/shishi_resolv_free.3 man/shishi_safe.3 \ man/shishi_safe_done.3 man/shishi_safe_key.3 \ man/shishi_safe_key_set.3 man/shishi_safe_safe.3 \ man/shishi_safe_safe_set.3 man/shishi_safe_safe_der.3 \ man/shishi_safe_safe_der_set.3 man/shishi_safe_print.3 \ man/shishi_safe_save.3 man/shishi_safe_to_file.3 \ man/shishi_safe_parse.3 man/shishi_safe_read.3 \ man/shishi_safe_from_file.3 man/shishi_safe_cksum.3 \ man/shishi_safe_set_cksum.3 man/shishi_safe_user_data.3 \ man/shishi_safe_set_user_data.3 man/shishi_safe_build.3 \ man/shishi_safe_verify.3 man/shishi_tgs.3 \ man/shishi_tgs_done.3 man/shishi_tgs_tgtkt.3 \ man/shishi_tgs_tgtkt_set.3 man/shishi_tgs_ap.3 \ man/shishi_tgs_req.3 man/shishi_tgs_req_set.3 \ man/shishi_tgs_req_der.3 man/shishi_tgs_req_der_set.3 \ man/shishi_tgs_req_process.3 man/shishi_tgs_req_build.3 \ man/shishi_tgs_rep.3 man/shishi_tgs_rep_der.3 \ man/shishi_tgs_rep_process.3 man/shishi_tgs_rep_build.3 \ man/shishi_tgs_krberror.3 man/shishi_tgs_krberror_der.3 \ man/shishi_tgs_krberror_set.3 man/shishi_tgs_tkt.3 \ man/shishi_tgs_tkt_set.3 man/shishi_tgs_sendrecv_hint.3 \ man/shishi_tgs_sendrecv.3 man/shishi_tgs_set_server.3 \ man/shishi_tgs_set_realm.3 man/shishi_tgs_set_realmserver.3 \ man/shishi_ticket.3 man/shishi_ticket_realm_get.3 \ man/shishi_ticket_realm_set.3 man/shishi_ticket_server.3 \ man/shishi_ticket_sname_set.3 \ man/shishi_ticket_get_enc_part_etype.3 \ man/shishi_ticket_set_enc_part.3 \ man/shishi_ticket_add_enc_part.3 man/shishi_tkt.3 \ man/shishi_tkt2.3 man/shishi_tkt_done.3 \ man/shishi_tkt_ticket.3 man/shishi_tkt_ticket_set.3 \ man/shishi_tkt_enckdcreppart.3 \ man/shishi_tkt_enckdcreppart_set.3 man/shishi_tkt_kdcrep.3 \ man/shishi_tkt_encticketpart.3 \ man/shishi_tkt_encticketpart_set.3 man/shishi_tkt_key.3 \ man/shishi_tkt_key_set.3 man/shishi_tkt_client.3 \ man/shishi_tkt_client_p.3 man/shishi_tkt_clientrealm.3 \ man/shishi_tkt_clientrealm_p.3 man/shishi_tkt_realm.3 \ man/shishi_tkt_server.3 man/shishi_tkt_server_p.3 \ man/shishi_tkt_flags.3 man/shishi_tkt_flags_set.3 \ man/shishi_tkt_flags_add.3 man/shishi_tkt_forwardable_p.3 \ man/shishi_tkt_forwarded_p.3 man/shishi_tkt_proxiable_p.3 \ man/shishi_tkt_proxy_p.3 man/shishi_tkt_may_postdate_p.3 \ man/shishi_tkt_postdated_p.3 man/shishi_tkt_invalid_p.3 \ man/shishi_tkt_renewable_p.3 man/shishi_tkt_initial_p.3 \ man/shishi_tkt_pre_authent_p.3 man/shishi_tkt_hw_authent_p.3 \ man/shishi_tkt_transited_policy_checked_p.3 \ man/shishi_tkt_ok_as_delegate_p.3 man/shishi_tkt_keytype.3 \ man/shishi_tkt_keytype_fast.3 man/shishi_tkt_keytype_p.3 \ man/shishi_tkt_lastreqc.3 man/shishi_tkt_authctime.3 \ man/shishi_tkt_startctime.3 man/shishi_tkt_endctime.3 \ man/shishi_tkt_renew_tillc.3 man/shishi_tkt_valid_at_time_p.3 \ man/shishi_tkt_valid_now_p.3 man/shishi_tkt_expired_p.3 \ man/shishi_tkt_lastreq_pretty_print.3 \ man/shishi_tkt_pretty_print.3 \ man/shishi_tkts_default_ccache_guess.3 \ man/shishi_tkts_default_ccache.3 \ man/shishi_tkts_default_ccache_set.3 \ man/shishi_tkts_add_ccache_mem.3 \ man/shishi_tkts_add_ccache_file.3 \ man/shishi_tkts_from_ccache_mem.3 \ man/shishi_tkts_from_ccache_file.3 \ man/shishi_tkts_default_file_guess.3 \ man/shishi_tkts_default_file.3 \ man/shishi_tkts_default_file_set.3 man/shishi_tkts_default.3 \ man/shishi_tkts.3 man/shishi_tkts_done.3 \ man/shishi_tkts_size.3 man/shishi_tkts_nth.3 \ man/shishi_tkts_remove.3 man/shishi_tkts_add.3 \ man/shishi_tkts_new.3 man/shishi_tkts_read.3 \ man/shishi_tkts_from_file.3 man/shishi_tkts_write.3 \ man/shishi_tkts_expire.3 man/shishi_tkts_to_file.3 \ man/shishi_tkts_print_for_service.3 man/shishi_tkts_print.3 \ man/shishi_tkt_match_p.3 man/shishi_tkts_find.3 \ man/shishi_tkts_find_for_clientserver.3 \ man/shishi_tkts_find_for_server.3 man/shishi_tkts_get_tgt.3 \ man/shishi_tkts_get_tgs.3 man/shishi_tkts_get.3 \ man/shishi_tkts_get_for_clientserver.3 \ man/shishi_tkts_get_for_server.3 \ man/shishi_tkts_get_for_localservicepasswd.3 \ man/shishi_check_version.3 man/shisa_cfg_db.3 man/shisa_cfg.3 \ man/shisa_cfg_from_file.3 man/shisa_cfg_default_systemfile.3 \ man/shisa_enumerate_realms.3 man/shisa_enumerate_principals.3 \ man/shisa_principal_find.3 man/shisa_principal_update.3 \ man/shisa_principal_add.3 man/shisa_principal_remove.3 \ man/shisa_keys_find.3 man/shisa_key_add.3 \ man/shisa_key_update.3 man/shisa_key_remove.3 \ man/shisa_key_free.3 man/shisa_keys_free.3 \ man/shisa_strerror.3 man/shisa_info.3 man/shisa.3 \ man/shisa_done.3 man/shisa_init.3 man/shisa_init_with_paths.3 gdoc_TEXINFOS = texi/ap.c.texi texi/aprep.c.texi texi/apreq.c.texi \ texi/as.c.texi texi/asn1.c.texi texi/authenticator.c.texi \ texi/authorize.c.texi texi/ccache.c.texi texi/cfg.c.texi \ texi/crypto-3des.c.texi texi/crypto-aes.c.texi \ texi/crypto-ctx.c.texi texi/crypto-des.c.texi \ texi/crypto-md.c.texi texi/crypto-null.c.texi \ texi/crypto-rc4.c.texi texi/crypto.c.texi texi/diskio.c.texi \ texi/encapreppart.c.texi texi/enckdcreppart.c.texi \ texi/encticketpart.c.texi texi/error.c.texi texi/gztime.c.texi \ texi/hostkeys.c.texi texi/init.c.texi texi/kdc.c.texi \ texi/kdcrep.c.texi texi/kdcreq.c.texi texi/kerberos5.c.texi \ texi/key.c.texi texi/keys.c.texi texi/keytab.c.texi \ texi/krberror.c.texi texi/low-crypto.c.texi texi/netio.c.texi \ texi/password.c.texi texi/pki.c.texi texi/principal.c.texi \ texi/priv.c.texi texi/realm.c.texi texi/resolv.c.texi \ texi/safe.c.texi texi/starttls.c.texi texi/tgs.c.texi \ texi/ticket.c.texi texi/tkt.c.texi texi/tktccache.c.texi \ texi/tkts.c.texi texi/utils.c.texi texi/version.c.texi \ texi/config.c.texi texi/core.c.texi texi/db.c.texi \ texi/err.c.texi texi/file.c.texi texi/fileutil.c.texi \ texi/setup.c.texi GDOC_SRC = $(top_srcdir)/lib/*.c $(top_srcdir)/db/*.c all: all-recursive .SUFFIXES: .SUFFIXES: .dvi .html .info .pdf .ps .texi $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs .texi.info: $(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \ am__cwd=`pwd` && $(am__cd) $(srcdir) && \ rm -rf $$backupdir && mkdir $$backupdir && \ if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$$am__cwd"; \ if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ -o $@ $<; \ then \ rc=0; \ $(am__cd) $(srcdir); \ else \ rc=$$?; \ $(am__cd) $(srcdir) && \ $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ fi; \ rm -rf $$backupdir; exit $$rc .texi.dvi: $(AM_V_TEXI2DVI)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ $(TEXI2DVI) $(AM_V_texinfo) --build-dir=$(@:.dvi=.t2d) -o $@ $(AM_V_texidevnull) \ $< .texi.pdf: $(AM_V_TEXI2PDF)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ $(TEXI2PDF) $(AM_V_texinfo) --build-dir=$(@:.pdf=.t2p) -o $@ $(AM_V_texidevnull) \ $< .texi.html: $(AM_V_MAKEINFO)rm -rf $(@:.html=.htp) $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ -o $(@:.html=.htp) $<; \ then \ rm -rf $@ && mv $(@:.html=.htp) $@; \ else \ rm -rf $(@:.html=.htp); exit 1; \ fi $(srcdir)/shishi.info: shishi.texi $(srcdir)/version.texi $(shishi_TEXINFOS) shishi.dvi: shishi.texi $(srcdir)/version.texi $(shishi_TEXINFOS) shishi.pdf: shishi.texi $(srcdir)/version.texi $(shishi_TEXINFOS) shishi.html: shishi.texi $(srcdir)/version.texi $(shishi_TEXINFOS) $(srcdir)/version.texi: $(srcdir)/stamp-vti $(srcdir)/stamp-vti: shishi.texi $(top_srcdir)/configure @(dir=.; test -f ./shishi.texi || dir=$(srcdir); \ set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/shishi.texi`; \ echo "@set UPDATED $$1 $$2 $$3"; \ echo "@set UPDATED-MONTH $$2 $$3"; \ echo "@set EDITION $(VERSION)"; \ echo "@set VERSION $(VERSION)") > vti.tmp$$$$ && \ (cmp -s vti.tmp$$$$ $(srcdir)/version.texi \ || (echo "Updating $(srcdir)/version.texi" && \ cp vti.tmp$$$$ $(srcdir)/version.texi.tmp$$$$ && \ mv $(srcdir)/version.texi.tmp$$$$ $(srcdir)/version.texi)) && \ rm -f vti.tmp$$$$ $(srcdir)/version.texi.$$$$ @cp $(srcdir)/version.texi $@ mostlyclean-vti: -rm -f vti.tmp* $(srcdir)/version.texi.tmp* maintainer-clean-vti: -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi .dvi.ps: $(AM_V_DVIPS)TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ $(DVIPS) $(AM_V_texinfo) -o $@ $< uninstall-dvi-am: @$(NORMAL_UNINSTALL) @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \ rm -f "$(DESTDIR)$(dvidir)/$$f"; \ done uninstall-html-am: @$(NORMAL_UNINSTALL) @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \ rm -rf "$(DESTDIR)$(htmldir)/$$f"; \ done uninstall-info-am: @$(PRE_UNINSTALL) @if test -d '$(DESTDIR)$(infodir)' && $(am__can_run_installinfo); then \ list='$(INFO_DEPS)'; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \ done; \ else :; fi @$(NORMAL_UNINSTALL) @list='$(INFO_DEPS)'; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ (if test -d "$(DESTDIR)$(infodir)" && cd "$(DESTDIR)$(infodir)"; then \ echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ else :; fi); \ done uninstall-pdf-am: @$(NORMAL_UNINSTALL) @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \ rm -f "$(DESTDIR)$(pdfdir)/$$f"; \ done uninstall-ps-am: @$(NORMAL_UNINSTALL) @list='$(PSS)'; test -n "$(psdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \ rm -f "$(DESTDIR)$(psdir)/$$f"; \ done dist-info: $(INFO_DEPS) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; \ for base in $$list; do \ case $$base in \ $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ esac; \ if test -f $$base; then d=.; else d=$(srcdir); fi; \ base_i=`echo "$$base" | sed 's|\.info$$||;s|$$|.i|'`; \ for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \ if test -f $$file; then \ relfile=`expr "$$file" : "$$d/\(.*\)"`; \ test -f "$(distdir)/$$relfile" || \ cp -p $$file "$(distdir)/$$relfile"; \ else :; fi; \ done; \ done mostlyclean-aminfo: -rm -rf shishi.t2d shishi.t2p clean-aminfo: -test -z "shishi.dvi shishi.pdf shishi.ps shishi.html" \ || rm -rf shishi.dvi shishi.pdf shishi.ps shishi.html maintainer-clean-aminfo: @list='$(INFO_DEPS)'; for i in $$list; do \ i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \ echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \ rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \ done install-man1: $(dist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man3: $(dist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(dist_man_MANS)'; \ test -n "$(man3dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.3[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ done; } uninstall-man3: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man3dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.3[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-info check-am: all-am check: check-recursive all-am: Makefile $(INFO_DEPS) $(MANS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-aminfo clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: $(DVIS) html: html-recursive html-am: $(HTMLS) info: info-recursive info-am: $(INFO_DEPS) install-data-am: install-info-am install-man install-dvi: install-dvi-recursive install-dvi-am: $(DVIS) @$(NORMAL_INSTALL) @list='$(DVIS)'; test -n "$(dvidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dvidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dvidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \ done install-exec-am: install-html: install-html-recursive install-html-am: $(HTMLS) @$(NORMAL_INSTALL) @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \ $(am__strip_dir) \ d2=$$d$$p; \ if test -d "$$d2"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \ $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ echo " $(INSTALL_DATA) '$$d2'/* '$(DESTDIR)$(htmldir)/$$f'"; \ $(INSTALL_DATA) "$$d2"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \ else \ list2="$$list2 $$d2"; \ fi; \ done; \ test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \ done; } install-info: install-info-recursive install-info-am: $(INFO_DEPS) @$(NORMAL_INSTALL) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(infodir)'"; \ $(MKDIR_P) "$(DESTDIR)$(infodir)" || exit 1; \ fi; \ for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ esac; \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ if test -f $$ifile; then \ echo "$$ifile"; \ else : ; fi; \ done; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done @$(POST_INSTALL) @if $(am__can_run_installinfo); then \ list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \ for file in $$list; do \ relfile=`echo "$$file" | sed 's|^.*/||'`; \ echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\ done; \ else : ; fi install-man: install-man1 install-man3 install-pdf: install-pdf-recursive install-pdf-am: $(PDFS) @$(NORMAL_INSTALL) @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pdfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pdfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done install-ps: install-ps-recursive install-ps-am: $(PSS) @$(NORMAL_INSTALL) @list='$(PSS)'; test -n "$(psdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(psdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(psdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-aminfo \ maintainer-clean-generic maintainer-clean-vti mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-aminfo mostlyclean-generic \ mostlyclean-libtool mostlyclean-vti pdf: pdf-recursive pdf-am: $(PDFS) ps: ps-recursive ps-am: $(PSS) uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \ uninstall-man uninstall-pdf-am uninstall-ps-am uninstall-man: uninstall-man1 uninstall-man3 .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-aminfo clean-generic clean-libtool \ cscopelist-am ctags ctags-am dist-info distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-man3 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-aminfo maintainer-clean-generic \ maintainer-clean-vti mostlyclean mostlyclean-aminfo \ mostlyclean-generic mostlyclean-libtool mostlyclean-vti pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-dvi-am uninstall-html-am uninstall-info-am \ uninstall-man uninstall-man1 uninstall-man3 uninstall-pdf-am \ uninstall-ps-am .PRECIOUS: Makefile components.png: components.dia $(DIA) --export=$@ --filter=png components.dia shishi.1: $(top_srcdir)/src/shishi.c $(top_srcdir)/src/shishi.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi client tool" \ --output=$@ $(top_builddir)/src/shishi$(EXEEXT) shisa.1: $(top_srcdir)/src/shisa.c $(top_srcdir)/src/shisa.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi database interface" \ --info-page=shishi \ --output=$@ $(top_builddir)/src/shisa$(EXEEXT) shishid.1: $(top_srcdir)/src/shishid.c $(top_srcdir)/src/shishid.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi KDC server" \ --output=$@ $(top_builddir)/src/shishid$(EXEEXT) keytab2shishi.1: $(top_srcdir)/src/keytab2shishi.c \ $(top_srcdir)/src/keytab2shishi.ggo $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi host key conversion tool" \ --output=$@ $(top_builddir)/src/keytab2shishi$(EXEEXT) ccache2shishi.1: $(top_srcdir)/src/ccache2shishi.c \ $(top_srcdir)/src/ccache2shishi.ggo $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi user ticket conversion tool" \ --output=$@ $(top_builddir)/src/ccache2shishi$(EXEEXT) shishi-api-error-labels.texi: $(top_srcdir)/lib/error.c $(PERL) $(srcdir)/gdoc-error $(top_srcdir)/lib/error.c > $@ $(gdoc_MANS) $(gdoc_TEXINFOS): $(MAKE) update-makefile $(MAKE) Makefile $(MAKE) doit update-makefile: MANS=""; \ TEXINFOS=""; \ for i in $(GDOC_SRC); do \ BASE=`basename $$i`; \ TEXINFOS="$$TEXINFOS\ngdoc_TEXINFOS += texi/$$BASE.texi"; \ done; \ FUNCS=`$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; \ for i in $$FUNCS; do \ MANS="$$MANS\ngdoc_MANS += man/$$i.3"; \ done; \ grep -v -e '^gdoc_MANS += ' -e '^gdoc_TEXINFOS += ' Makefile.am | \ perl -p -e "s,^gdoc_MANS =,gdoc_MANS =$$MANS," | \ perl -p -e "s,^gdoc_TEXINFOS =,gdoc_TEXINFOS =$$TEXINFOS,;" \ > Makefile.am.new && \ mv Makefile.am.new Makefile.am doit: @$(MKDIR_P) man texi; \ echo -n "Creating function documentation" && \ for i in `$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; do \ $(srcdir)/gdoc -man \ -module $(PACKAGE) -sourceversion $(VERSION) \ -bugsto $(PACKAGE_BUGREPORT) \ -pkg-name "$(PACKAGE_NAME)" \ -includefuncprefix \ -seeinfo $(PACKAGE) -verbatimcopying \ -copyright "2002-2022 Simon Josefsson" \ -function $$i \ $(GDOC_SRC) >> man/$$i.3 && \ echo -n "."; \ done; \ echo ""; \ echo -n "Creating file documentation" && \ for i in $(GDOC_SRC); do \ BASE=`basename $$i`; \ $(srcdir)/gdoc -texinfo $$i >> texi/$$BASE.texi && \ echo -n "."; \ done; \ echo "" .PHONY: update-makefile doit # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/doc/ccache.txt0000644000000000000000000000604114273600463012413 00000000000000The Kerberos Credential Cache Binary File Format Copyright (C) 2006-2022 Simon Josefsson http://josefsson.org/shishi/ccache.txt Last updated: Sat Sep 23 12:04:11 CEST 2006 Like the MIT keytab binary format (see Michael B Allen's reverse engineered description in keytab.txt), the credential cache format is not standard nor documented anywhere. In C style notation, the MIT credential cache file format is as follows. All values are in network byte order. All text is ASCII. ccache { uint16_t file_format_version; /* 0x0504 */ uint16_t headerlen; /* only if version is 0x0504 */ header headers[]; /* only if version is 0x0504 */ principal primary_principal; credential credentials[*]; }; header { uint16_t tag; /* 1 = DeltaTime */ uint16_t taglen; uint8_t tagdata[taglen] }; The ccache.taglen and ccache.tags fields are only present in 0x0504 versions, not in earlier. Both MIT and Heimdal appear to correctly ignore unknown tags, so it appears safe to add them (although there is no central place to "register" tags). Currently only one tag is widely implemented, DeltaTime (0x0001). Its taglen is always 8, and tagdata will contain: DeltaTime { uint32_t time_offset; uint32_t usec_offset; }; After reading the file_format_version, header tags, and default principal, a list of credentials follow. You deduce from the file length when there are no more credentials. credential { principal client; principal server; keyblock key; times time; uint8_t is_skey; /* 1 if skey, 0 otherwise */ uint32_t tktflags; /* stored in reversed byte order */ uint32_t num_address; address addrs[num_address]; uint32_t num_authdata; authdata authdata[num_authdata]; countet_octet_string ticket; countet_octet_string second_ticket; }; keyblock { uint16_t keytype; uint16_t etype; /* only present if version 0x0503 */ uint16_t keylen; uint8_t keyvalue[keylen]; }; times { uint32_t authtime; uint32_t starttime; uint32_t endtime; uint32_t renew_till; }; address { uint16_t addrtype; counted_octet_string addrdata; }; authdata { uint16_t authtype; counted_octet_string authdata; }; principal { uint32_t name_type; /* not present if version 0x0501 */ uint32_t num_components; /* sub 1 if version 0x501 */ counted_octet_string realm; counted_octet_string components[num_components]; }; counted_octet_string { uint32_t length; uint8_t data[length]; }; Permission to copy, modify, and distribute this document, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include this copyright notice in ALL copies of the document or portions thereof, including modifications. shishi-1.0.3/doc/stamp-vti0000644000000000000000000000014014273615672012315 00000000000000@set UPDATED 7 August 2022 @set UPDATED-MONTH August 2022 @set EDITION 1.0.3 @set VERSION 1.0.3 shishi-1.0.3/doc/reference/0000755000000000000000000000000014273616165012467 500000000000000shishi-1.0.3/doc/reference/Makefile.in0000644000000000000000000031736414273615654014474 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # -*- mode: makefile -*- # # Makefile.am - template makefile for gtk-doc module # Copyright (C) 2002-2022 Simon Josefsson # Copyright (C) 2007-2017 Stefan Sauer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # As a special exception, the above copyright owner gives unlimited # permission to copy, distribute and modify this Makefile.am template. # You need not follow the terms of the GNU General Public License when # using or distributing such Makefile.am files, even though portions of # the text of the Makefile.am appear in them. The GNU General Public # License (GPL) does govern all other use of the material that constitutes # the Makefile.am template. # This is a blank Makefile.am for using gtk-doc. # Copy this to your project's API docs directory and modify the variables to # suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples # of using the various options. # -*- mode: makefile -*- # # gtk-doc.make - make rules for gtk-doc # Copyright (C) 2003 James Henstridge # 2004-2007 Damon Chaplin # 2007-2017 Stefan Sauer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . #################################### # Everything below here is generic # #################################### VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/reference ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/test-driver $(top_srcdir)/gtk-doc.make DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # The name of the module, e.g. 'glib'. DOC_MODULE = $(PACKAGE) # Uncomment for versioned docs and specify the version of the module, e.g. '2'. #DOC_MODULE_VERSION=2 # The top-level XML file. DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml # Directories containing the source code. # gtk-doc will search all .c and .h files beneath these paths # for inline comments documenting functions and macros. # e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk DOC_SOURCE_DIR = $(top_srcdir)/lib $(top_builddir)/lib # Extra options to pass to gtkdoc-scangobj. Normally not needed. SCANGOBJ_OPTIONS = # Extra options to supply to gtkdoc-scan. # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" SCAN_OPTIONS = # Extra options to supply to gtkdoc-mkdb # e.g. MKDB_OPTIONS=--xml-mode --output-format=xml MKDB_OPTIONS = --xml-mode --output-format=xml # Extra options to supply to gtkdoc-mkhtml MKHTML_OPTIONS = # Extra options to supply to gtkdoc-fixref. Normally not needed. # e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html FIXXREF_OPTIONS = # Used for dependencies. The docs will be rebuilt if any of these change. # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h # e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c HFILE_GLOB = $(top_srcdir)/lib/*.h $(top_builddir)/lib/*.h CFILE_GLOB = $(top_srcdir)/lib/*.c # Extra header to include when scanning, which are not under DOC_SOURCE_DIR # e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h EXTRA_HFILES = # Header files or dirs to ignore when scanning. Use base file/dir names # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code # cd lib/gl && ls *.h && cd sys && ls *.h && cd ../arpa && ls *.h IGNORE_HFILES = asn1.h cfg.h crypto.h diskio.h internal.h starttls.h \ utils.h ccache.h af_alg.h byteswap.in.h fcntl.in.h \ gl_openssl.h malloca.h netinet_in.in.h signal.in.h stdio.h \ strings.in.h time.in.h verify.h alloca.h careadlinkat.h \ fd-hook.h hmac.h md4.h _Noreturn.h size_max.h stdio-impl.h \ sys-limits.h time-internal.h xalloc.h alloca.in.h c-ctype.h \ filename.h ialloc.h md5.h parse-datetime-gen.h sockets.h \ stdio.in.h sys_random.in.h timespec.h xalloc-oversized.h \ allocator.h c++defs.h flexmember.h idx.h memxor.h \ parse-datetime.h stat-time.h stdlib.h sys_select.in.h unistd.h \ xgetaname-impl.h arcfour.h cdefs.h float+.h intprops.h \ minmax.h pathmax.h stat-w32.h stdlib.in.h sys_socket.in.h \ unistd.in.h xgetdomainname.h areadlink.h cloexec.h float.in.h \ inttypes.h mktime-internal.h printf-args.h stdalign.in.h \ strerror-override.h sys_stat.in.h w32sock.h xgethostname.h \ arg-nonnull.h crc.h freading.h inttypes.in.h msvc-inval.h \ printf-parse.h stdarg.in.h strftime.h sys_time.in.h \ warn-on-use.h xsize.h arpa_inet.in.h des.h gc.h libc-config.h \ msvc-nothrow.h read-file.h stdbool.in.h string.h \ sys_types.in.h vasnprintf.h xstrndup.h attribute.h errno.in.h \ getpass.h limits.h netdb.h sha1.h stddef.in.h string.in.h \ sys_uio.in.h wchar.h xvasprintf.h base64.h fcntl.h gettext.h \ limits.in.h netdb.in.h signal.h stdint.in.h strings.h time.h \ wchar.in.h random.h select.h socket.h stat.h time.h types.h \ uio.h inet.h # Images to copy into HTML directory. # e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png HTML_IMAGES = ../components.png # Extra files that are included by $(DOC_MAIN_SGML_FILE). # e.g. content_files=running.xml building.xml changes-2.0.xml content_files = # Files where gtk-doc abbreviations (#GtkWidget) are expanded # e.g. expand_content_files=running.xml expand_content_files = # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. # Only needed if you are using gtkdoc-scangobj to dynamically query widget # signals and properties. # e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) GTKDOC_CFLAGS = GTKDOC_LIBS = @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(expand_content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = \ $(HTML_IMAGES) \ $(SETUP_FILES) DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).actions \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) \ gtkdoc-check.test $(PACKAGE)-overrides.txt $(PACKAGE)-decl.txt \ $(PACKAGE)-decl-list.txt $(PACKAGE)-sections.txt \ $(PACKAGE).pdf @GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = @GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp @GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = @GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp #### setup #### GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_@AM_V@) GTK_DOC_V_SETUP_ = $(GTK_DOC_V_SETUP_@AM_DEFAULT_V@) GTK_DOC_V_SETUP_0 = @echo " DOC Preparing build"; #### scan #### GTK_DOC_V_SCAN = $(GTK_DOC_V_SCAN_@AM_V@) GTK_DOC_V_SCAN_ = $(GTK_DOC_V_SCAN_@AM_DEFAULT_V@) GTK_DOC_V_SCAN_0 = @echo " DOC Scanning header files"; GTK_DOC_V_INTROSPECT = $(GTK_DOC_V_INTROSPECT_@AM_V@) GTK_DOC_V_INTROSPECT_ = $(GTK_DOC_V_INTROSPECT_@AM_DEFAULT_V@) GTK_DOC_V_INTROSPECT_0 = @echo " DOC Introspecting gobjects"; #### xml #### GTK_DOC_V_XML = $(GTK_DOC_V_XML_@AM_V@) GTK_DOC_V_XML_ = $(GTK_DOC_V_XML_@AM_DEFAULT_V@) GTK_DOC_V_XML_0 = @echo " DOC Building XML"; #### html #### GTK_DOC_V_HTML = $(GTK_DOC_V_HTML_@AM_V@) GTK_DOC_V_HTML_ = $(GTK_DOC_V_HTML_@AM_DEFAULT_V@) GTK_DOC_V_HTML_0 = @echo " DOC Building HTML"; GTK_DOC_V_XREF = $(GTK_DOC_V_XREF_@AM_V@) GTK_DOC_V_XREF_ = $(GTK_DOC_V_XREF_@AM_DEFAULT_V@) GTK_DOC_V_XREF_0 = @echo " DOC Fixing cross-references"; #### pdf #### GTK_DOC_V_PDF = $(GTK_DOC_V_PDF_@AM_V@) GTK_DOC_V_PDF_ = $(GTK_DOC_V_PDF_@AM_DEFAULT_V@) GTK_DOC_V_PDF_0 = @echo " DOC Building PDF"; # This includes the standard gtk-doc make rules, copied by gtkdocize. # Comment this out if you don't want 'make check' to test you doc status # and run some sanity checks @ENABLE_GTK_DOC_TRUE@TESTS_ENVIRONMENT = \ @ENABLE_GTK_DOC_TRUE@ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \ @ENABLE_GTK_DOC_TRUE@ SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir) @ENABLE_GTK_DOC_TRUE@TESTS = $(GTKDOC_CHECK) @ENABLE_GTK_DOC_TRUE@XFAIL_TESTS = $(GTKDOC_CHECK) all: all-am .SUFFIXES: .SUFFIXES: .log .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/reference/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/reference/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_srcdir)/gtk-doc.make $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am @ENABLE_GTK_DOC_FALSE@all-local: all-am: Makefile all-local installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-local mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-local dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: check-am install-am install-strip .PHONY: all all-am all-local check check-TESTS check-am clean \ clean-generic clean-libtool clean-local cscopelist-am ctags-am \ dist-hook distclean distclean-generic distclean-libtool \ distclean-local distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic maintainer-clean-local mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ recheck tags-am uninstall uninstall-am uninstall-local .PRECIOUS: Makefile gtkdoc-check.test: Makefile $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \ chmod +x $@ all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) .PHONY: all-gtk-doc @ENABLE_GTK_DOC_TRUE@all-local: all-gtk-doc docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp setup-build.stamp: -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ files=`echo $(SETUP_FILES) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ destdir=`dirname $(abs_builddir)/$$file`; \ test -d "$$destdir" || mkdir -p "$$destdir"; \ test -f $(abs_srcdir)/$$file && \ cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ done; \ fi; \ fi $(AM_V_at)touch setup-build.stamp scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(GTK_DOC_V_SCAN)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi $(AM_V_at)touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent $(GTK_DOC_V_XML)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) $(AM_V_at)touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true $(DOC_MAIN_SGML_FILE): sgml-build.stamp @true xml/gtkdocentities.ent: Makefile $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ ) > $@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \ mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$$?" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ test -f $(abs_srcdir)/$$file && cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ test -f $(abs_builddir)/$$file && cp $(abs_builddir)/$$file $(abs_builddir)/html; \ test -f $$file && cp $$file $(abs_builddir)/html; \ done; $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) $(AM_V_at)touch html-build.stamp pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \ mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) $(AM_V_at)touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \ rm -f $(DOC_MODULE).types; \ fi @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \ rm -f $(DOC_MODULE)-sections.txt; \ fi distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(DOC_MODULE).types; \ fi maintainer-clean-local: @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # @HAVE_GTK_DOC_TRUE@dist-check-gtkdoc: docs @HAVE_GTK_DOC_FALSE@dist-check-gtkdoc: @HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc is needed to run 'make dist'. ***" @HAVE_GTK_DOC_FALSE@ @echo "*** gtk-doc was not found when 'configure' ran. ***" @HAVE_GTK_DOC_FALSE@ @echo "*** please install gtk-doc and rerun 'configure'. ***" @HAVE_GTK_DOC_FALSE@ @false dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs -include $(top_srcdir)/git.mk html-build.stamp: $(top_builddir)/.version pdf-build.stamp: $(top_builddir)/.version CLEANFILES ?= clean-local: clean-local-junk .PHONY: clean-local-junk clean-local-junk: -rm -rf xml html tmpl dist-hook-local: all-local # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/doc/reference/shishi-overrides.txt0000644000000000000000000000000014273615674016431 00000000000000shishi-1.0.3/doc/reference/shishi-sections.txt0000644000000000000000000004273414273616165016276 00000000000000
low-crypto
shishi Shishi_rc Shishi_name_type Shishi_padata_type Shishi_tr_type Shishi_apoptions Shishi_ticketflags Shishi_KDCOptions Shishi_msgtype Shishi_lrtype Shishi_etype Shishi_cksumtype Shishi_filetype Shishi_outputtype Shishi_authorization Shishi_keyusage Shishi_krb_error Shishi_tkts_hintflags Shishi_tkts_hint Shishi_dns_st Shishi_dns_srv_st SHISHI_DNS_IN SHISHI_DNS_TXT SHISHI_DNS_SRV Shishi_dns Shishi_dns_srv Shishi Shishi_tkt Shishi_tkts Shishi_as Shishi_tgs Shishi_ap Shishi_key Shishi_keys Shishi_safe Shishi_priv Shishi_asn1 Shishi_crypto SHISHI_GENERALIZEDTIME_LENGTH SHISHI_GENERALIZEDTIMEZ_LENGTH shishi_alloc_fail_function shishi shishi_server shishi_done shishi_init shishi_init_with_paths shishi_init_server shishi_init_server_with_paths shishi_cfg shishi_cfg_from_file shishi_cfg_print shishi_cfg_default_systemfile shishi_cfg_default_userdirectory shishi_cfg_default_userfile shishi_cfg_userdirectory_file shishi_cfg_clientkdcetype shishi_cfg_clientkdcetype_fast shishi_cfg_clientkdcetype_set shishi_cfg_authorizationtype_set shishi_strerror shishi_error shishi_error_clear shishi_error_set shishi_error_printf shishi_error_outputtype shishi_error_set_outputtype shishi_info shishi_warn shishi_verbose shishi_realm_default_guess shishi_realm_default shishi_realm_default_set shishi_realm_for_server_file shishi_realm_for_server_dns shishi_realm_for_server shishi_principal_default_guess shishi_principal_default shishi_principal_default_set shishi_principal_name shishi_principal_name_realm shishi_principal_name_set shishi_principal_set shishi_parse_name shishi_derive_default_salt shishi_server_for_local_service shishi_ticket shishi_ticket_server shishi_ticket_sname_set shishi_ticket_srealmserver_set shishi_ticket_set_server shishi_ticket_realm_get shishi_ticket_realm_set shishi_ticket_get_enc_part_etype shishi_ticket_set_enc_part shishi_ticket_add_enc_part shishi_ticket_decrypt shishi_tkt_ticket shishi_tkt_ticket_set shishi_tkt_kdcrep shishi_tkt_enckdcreppart shishi_tkt_enckdcreppart_set shishi_tkt_encticketpart shishi_tkt_encticketpart_set shishi_tkt_key shishi_tkt_key_set shishi_tkt shishi_tkt2 shishi_tkt_pretty_print shishi_tkt_realm shishi_tkt_client shishi_tkt_client_p shishi_tkt_clientrealm shishi_tkt_clientrealm_p shishi_tkt_clientrealm_set shishi_tkt_serverrealm_set shishi_tkt_build shishi_tkt_lastreq shishi_tkt_lastreqc shishi_tkt_lastreq_pretty_print shishi_tkt_authtime shishi_tkt_authctime shishi_tkt_starttime shishi_tkt_startctime shishi_tkt_endtime shishi_tkt_endctime shishi_tkt_renew_till shishi_tkt_renew_tillc shishi_tkt_keytype shishi_tkt_keytype_fast shishi_tkt_keytype_p shishi_tkt_server shishi_tkt_server_p shishi_tkt_valid_at_time_p shishi_tkt_valid_now_p shishi_tkt_expired_p shishi_tkt_decrypt shishi_tkt_done shishi_tkt_flags shishi_tkt_flags_set shishi_tkt_flags_add shishi_tkt_forwardable_p shishi_tkt_forwarded_p shishi_tkt_proxiable_p shishi_tkt_proxy_p shishi_tkt_may_postdate_p shishi_tkt_postdated_p shishi_tkt_invalid_p shishi_tkt_renewable_p shishi_tkt_initial_p shishi_tkt_pre_authent_p shishi_tkt_hw_authent_p shishi_tkt_transited_policy_checked_p shishi_tkt_ok_as_delegate_p shishi_tkts_default_file_guess shishi_tkts_default_file shishi_tkts_default_file_set shishi_tkts_default shishi_tkts_default_to_file shishi_tkts shishi_tkts_nth shishi_tkts_size shishi_tkts_add shishi_tkts_new shishi_tkts_remove shishi_tkts_expire shishi_tkts_print_for_service shishi_tkts_print shishi_tkts_write shishi_tkts_to_file shishi_tkts_read shishi_tkts_from_file shishi_tkts_done shishi_tkt_match_p shishi_tkts_find shishi_tkts_find_for_clientserver shishi_tkts_find_for_server shishi_tkts_get shishi_tkts_get_tgt shishi_tkts_get_tgs shishi_tkts_get_for_clientserver shishi_tkts_get_for_server shishi_tkts_get_for_localservicepasswd shishi_tkts_default_ccache_guess shishi_tkts_default_ccache shishi_tkts_default_ccache_set shishi_tkts_add_ccache_mem shishi_tkts_add_ccache_file shishi_tkts_from_ccache_mem shishi_tkts_from_ccache_file shishi_enckdcreppart_print shishi_enckdcreppart_save shishi_enckdcreppart_parse shishi_enckdcreppart_read shishi_ticket_save shishi_ticket_print shishi_kdc_print shishi_ticket_parse shishi_ticket_read shishi_etype_info_print shishi_etype_info2_print shishi_padata_print shishi_methoddata_print shishi_authenticator shishi_authenticator_set_crealm shishi_authenticator_set_cname shishi_authenticator_client_set shishi_authenticator_ctime shishi_authenticator_ctime_set shishi_authenticator_cusec_get shishi_authenticator_cusec_set shishi_authenticator_seqnumber_get shishi_authenticator_seqnumber_remove shishi_authenticator_seqnumber_set shishi_authenticator_client shishi_authenticator_clientrealm shishi_authenticator_remove_cksum shishi_authenticator_cksum shishi_authenticator_set_cksum shishi_authenticator_add_cksum shishi_authenticator_add_cksum_type shishi_authenticator_remove_subkey shishi_authenticator_subkey shishi_authenticator_get_subkey shishi_authenticator_set_subkey shishi_authenticator_add_random_subkey shishi_authenticator_add_random_subkey_etype shishi_authenticator_add_subkey shishi_authenticator_clear_authorizationdata shishi_authenticator_add_authorizationdata shishi_authenticator_authorizationdata shishi_authenticator_read shishi_authenticator_parse shishi_authenticator_from_file shishi_authenticator_print shishi_authenticator_to_file shishi_authenticator_save shishi_as shishi_as_done shishi_as_req shishi_as_req_build shishi_as_req_set shishi_as_req_der shishi_as_req_der_set shishi_as_rep shishi_as_rep_set shishi_as_rep_build shishi_as_rep_der shishi_as_rep_der_set shishi_as_krberror shishi_as_krberror_der shishi_as_krberror_set shishi_as_tkt shishi_as_tkt_set shishi_as_sendrecv shishi_as_sendrecv_hint shishi_as_rep_process shishi_tgs shishi_tgs_done shishi_tgs_tgtkt shishi_tgs_tgtkt_set shishi_tgs_ap shishi_tgs_req shishi_tgs_req_der shishi_tgs_req_der_set shishi_tgs_req_set shishi_tgs_req_build shishi_tgs_req_process shishi_tgs_rep shishi_tgs_rep_der shishi_tgs_rep_build shishi_tgs_rep_process shishi_tgs_krberror shishi_tgs_krberror_der shishi_tgs_krberror_set shishi_tgs_tkt shishi_tgs_tkt_set shishi_tgs_sendrecv shishi_tgs_sendrecv_hint shishi_tgs_set_server shishi_tgs_set_realm shishi_tgs_set_realmserver shishi_kdcreq shishi_asreq shishi_asreq_rsc shishi_tgsreq shishi_tgsreq_rst shishi_kdcreq_save shishi_kdcreq_print shishi_kdcreq_to_file shishi_kdcreq_parse shishi_kdcreq_read shishi_kdcreq_from_file shishi_asreq_clientrealm shishi_kdcreq_nonce shishi_kdcreq_nonce_set shishi_kdcreq_client shishi_kdcreq_set_cname shishi_kdcreq_server shishi_kdcreq_set_sname shishi_kdcreq_realm shishi_kdcreq_realm_get shishi_kdcreq_set_realm shishi_kdcreq_set_server shishi_kdcreq_set_realmserver shishi_kdcreq_till shishi_kdcreq_tillc shishi_kdcreq_etype shishi_kdcreq_set_etype shishi_kdcreq_options shishi_kdcreq_forwardable_p shishi_kdcreq_forwarded_p shishi_kdcreq_proxiable_p shishi_kdcreq_proxy_p shishi_kdcreq_allow_postdate_p shishi_kdcreq_postdated_p shishi_kdcreq_renewable_p shishi_kdcreq_disable_transited_check_p shishi_kdcreq_renewable_ok_p shishi_kdcreq_enc_tkt_in_skey_p shishi_kdcreq_renew_p shishi_kdcreq_validate_p shishi_kdcreq_options_set shishi_kdcreq_options_add shishi_kdcreq_clear_padata shishi_kdcreq_get_padata shishi_kdcreq_get_padata_tgs shishi_kdcreq_add_padata shishi_kdcreq_add_padata_tgs shishi_kdcreq_add_padata_preauth shishi_kdcreq_build shishi_as_derive_salt shishi_tgs_process shishi_as_process shishi_kdc_process shishi_kdcreq_sendrecv shishi_kdcreq_sendrecv_hint shishi_kdc_copy_crealm shishi_as_check_crealm shishi_kdc_copy_cname shishi_as_check_cname shishi_kdc_copy_nonce shishi_kdc_check_nonce shishi_asrep shishi_tgsrep shishi_kdcrep_save shishi_kdcrep_print shishi_kdcrep_to_file shishi_kdcrep_parse shishi_kdcrep_read shishi_kdcrep_from_file shishi_kdcrep_clear_padata shishi_kdcrep_get_enc_part_etype shishi_kdcrep_add_enc_part shishi_kdcrep_get_ticket shishi_kdcrep_set_ticket shishi_kdcrep_crealm_set shishi_kdcrep_cname_set shishi_kdcrep_client_set shishi_kdcrep_crealmserver_set shishi_kdcrep_set_enc_part shishi_kdcrep_decrypt shishi_enckdcreppart shishi_encasreppart shishi_enckdcreppart_get_key shishi_enckdcreppart_key_set shishi_enckdcreppart_nonce_set shishi_enckdcreppart_flags_set shishi_enckdcreppart_authtime_set shishi_enckdcreppart_starttime_set shishi_enckdcreppart_endtime_set shishi_enckdcreppart_renew_till_set shishi_enckdcreppart_srealm_set shishi_enckdcreppart_sname_set shishi_enckdcreppart_server_set shishi_enckdcreppart_srealmserver_set shishi_enckdcreppart_populate_encticketpart shishi_krberror shishi_krberror_print shishi_krberror_save shishi_krberror_to_file shishi_krberror_parse shishi_krberror_read shishi_krberror_from_file shishi_krberror_build shishi_krberror_der shishi_krberror_crealm shishi_krberror_remove_crealm shishi_krberror_set_crealm shishi_krberror_client shishi_krberror_set_cname shishi_krberror_remove_cname shishi_krberror_client_set shishi_krberror_realm shishi_krberror_set_realm shishi_krberror_server shishi_krberror_remove_sname shishi_krberror_set_sname shishi_krberror_server_set shishi_krberror_ctime shishi_krberror_ctime_set shishi_krberror_remove_ctime shishi_krberror_cusec shishi_krberror_cusec_set shishi_krberror_remove_cusec shishi_krberror_stime shishi_krberror_stime_set shishi_krberror_susec shishi_krberror_susec_set shishi_krberror_errorcode_set shishi_krberror_etext shishi_krberror_set_etext shishi_krberror_remove_etext shishi_krberror_edata shishi_krberror_set_edata shishi_krberror_remove_edata shishi_krberror_errorcode shishi_krberror_errorcode_fast shishi_krberror_pretty_print shishi_krberror_errorcode_message shishi_krberror_message shishi_krberror_methoddata shishi_generalize_time shishi_generalize_now shishi_generalize_ctime shishi_time shishi_ctime shishi_randomize shishi_crc shishi_md4 shishi_md5 shishi_hmac_md5 shishi_hmac_sha1 shishi_des_cbc_mac shishi_arcfour shishi_des shishi_3des shishi_aes_cts shishi_cipher_supported_p shishi_cipher_name shishi_cipher_blocksize shishi_cipher_confoundersize shishi_cipher_keylen shishi_cipher_randomlen shishi_cipher_defaultcksumtype shishi_cipher_parse shishi_checksum_supported_p shishi_checksum_name shishi_checksum_cksumlen shishi_checksum_parse shishi_string_to_key shishi_random_to_key shishi_encrypt_ivupdate_etype shishi_encrypt_iv_etype shishi_encrypt_etype shishi_encrypt_ivupdate shishi_encrypt_iv shishi_encrypt shishi_decrypt_ivupdate_etype shishi_decrypt_iv_etype shishi_decrypt_etype shishi_decrypt_ivupdate shishi_decrypt_iv shishi_decrypt shishi_checksum shishi_verify shishi_dk shishi_dr shishi_n_fold shishi_pbkdf2_sha1 shishi_crypto shishi_crypto_close shishi_crypto_encrypt shishi_crypto_decrypt shishi_check_version shishi_prompt_password_func shishi_prompt_password_callback_set shishi_prompt_password_callback_get shishi_prompt_password shishi_asn1_number_of_elements shishi_asn1_empty_p shishi_asn1_read shishi_asn1_read_inline shishi_asn1_read_integer shishi_asn1_read_int32 shishi_asn1_read_uint32 shishi_asn1_read_bitstring shishi_asn1_read_optional shishi_asn1_write shishi_asn1_write_integer shishi_asn1_write_int32 shishi_asn1_write_uint32 shishi_asn1_write_bitstring shishi_asn1_done shishi_asn1_pa_enc_ts_enc shishi_asn1_encrypteddata shishi_asn1_padata shishi_asn1_methoddata shishi_asn1_etype_info shishi_asn1_etype_info2 shishi_asn1_asreq shishi_asn1_asrep shishi_asn1_tgsreq shishi_asn1_tgsrep shishi_asn1_apreq shishi_asn1_aprep shishi_asn1_ticket shishi_asn1_encapreppart shishi_asn1_encticketpart shishi_asn1_authenticator shishi_asn1_enckdcreppart shishi_asn1_encasreppart shishi_asn1_krberror shishi_asn1_krbsafe shishi_asn1_priv shishi_asn1_encprivpart shishi_asn1_to_der shishi_asn1_to_der_field shishi_asn1_msgtype shishi_der_msgtype shishi_asn1_print shishi_der2asn1 shishi_der2asn1_padata shishi_der2asn1_methoddata shishi_der2asn1_etype_info shishi_der2asn1_etype_info2 shishi_der2asn1_ticket shishi_der2asn1_encticketpart shishi_der2asn1_asreq shishi_der2asn1_tgsreq shishi_der2asn1_asrep shishi_der2asn1_tgsrep shishi_der2asn1_kdcrep shishi_der2asn1_kdcreq shishi_der2asn1_apreq shishi_der2asn1_aprep shishi_der2asn1_authenticator shishi_der2asn1_krberror shishi_der2asn1_krbsafe shishi_der2asn1_priv shishi_der2asn1_encasreppart shishi_der2asn1_enctgsreppart shishi_der2asn1_enckdcreppart shishi_der2asn1_encapreppart shishi_der2asn1_encprivpart shishi_ap shishi_ap_etype shishi_ap_nosubkey shishi_ap_done shishi_ap_set_tktoptions shishi_ap_tktoptions shishi_ap_etype_tktoptionsdata shishi_ap_set_tktoptionsdata shishi_ap_tktoptionsdata shishi_ap_set_tktoptionsraw shishi_ap_tktoptionsraw shishi_ap_set_tktoptionsasn1usage shishi_ap_tktoptionsasn1usage shishi_ap_tkt shishi_ap_tkt_set shishi_ap_authenticator_cksumdata shishi_ap_authenticator_cksumdata_set shishi_ap_authenticator_cksumraw_set shishi_ap_authenticator_cksumtype shishi_ap_authenticator_cksumtype_set shishi_ap_authenticator shishi_ap_authenticator_set shishi_ap_req shishi_ap_req_set shishi_ap_req_der shishi_ap_req_der_set shishi_ap_req_build shishi_ap_req_asn1 shishi_ap_key shishi_ap_req_decode shishi_ap_req_process shishi_ap_req_process_keyusage shishi_ap_rep shishi_ap_rep_set shishi_ap_rep_der shishi_ap_rep_der_set shishi_ap_rep_verify shishi_ap_rep_verify_der shishi_ap_rep_verify_asn1 shishi_ap_rep_asn1 shishi_ap_rep_build shishi_ap_encapreppart shishi_ap_encapreppart_set shishi_ap_option2string shishi_ap_string2option shishi_key_principal shishi_key_principal_set shishi_key_realm shishi_key_realm_set shishi_key_type shishi_key_type_set shishi_key_value shishi_key_value_set shishi_key_name shishi_key_length shishi_key_version shishi_key_version_set shishi_key_timestamp shishi_key_timestamp_set shishi_key shishi_key_done shishi_key_copy shishi_key_print shishi_key_to_file shishi_key_parse shishi_key_random shishi_key_from_value shishi_key_from_base64 shishi_key_from_random shishi_key_from_string shishi_key_from_name shishi_keys shishi_keys_done shishi_keys_size shishi_keys_nth shishi_keys_remove shishi_keys_add shishi_keys_print shishi_keys_from_file shishi_keys_to_file shishi_keys_for_serverrealm_in_file shishi_keys_for_server_in_file shishi_keys_for_localservicerealm_in_file shishi_keys_add_keytab_mem shishi_keys_add_keytab_file shishi_keys_from_keytab_mem shishi_keys_from_keytab_file shishi_keys_to_keytab_mem shishi_keys_to_keytab_file shishi_hostkeys_default_file shishi_hostkeys_default_file_set shishi_hostkeys_for_server shishi_hostkeys_for_serverrealm shishi_hostkeys_for_localservicerealm shishi_hostkeys_for_localservice shishi_encapreppart shishi_encapreppart_time_copy shishi_encapreppart_ctime shishi_encapreppart_ctime_set shishi_encapreppart_cusec_get shishi_encapreppart_cusec_set shishi_encapreppart_print shishi_encapreppart_save shishi_encapreppart_to_file shishi_encapreppart_read shishi_encapreppart_parse shishi_encapreppart_from_file shishi_encapreppart_get_key shishi_encapreppart_seqnumber_get shishi_encapreppart_seqnumber_remove shishi_encapreppart_seqnumber_set shishi_apreq shishi_apreq_parse shishi_apreq_from_file shishi_apreq_print shishi_apreq_to_file shishi_apreq_read shishi_apreq_save shishi_apreq_set_ticket shishi_apreq_set_authenticator shishi_apreq_add_authenticator shishi_apreq_options shishi_apreq_use_session_key_p shishi_apreq_mutual_required_p shishi_apreq_options_set shishi_apreq_options_add shishi_apreq_options_remove shishi_apreq_get_ticket shishi_apreq_get_authenticator_etype shishi_apreq_decrypt shishi_aprep shishi_aprep_print shishi_aprep_save shishi_aprep_to_file shishi_aprep_read shishi_aprep_parse shishi_aprep_from_file shishi_aprep_decrypt shishi_aprep_verify shishi_aprep_enc_part_set shishi_aprep_enc_part_add shishi_aprep_enc_part_make shishi_aprep_get_enc_part_etype shishi_kdc_sendrecv shishi_kdc_sendrecv_hint shishi_encticketpart shishi_encticketpart_key_set shishi_encticketpart_get_key shishi_encticketpart_crealm shishi_encticketpart_crealm_set shishi_encticketpart_client shishi_encticketpart_clientrealm shishi_encticketpart_cname_set shishi_encticketpart_print shishi_encticketpart_flags_set shishi_encticketpart_transited_set shishi_encticketpart_authtime_set shishi_encticketpart_endtime_set shishi_encticketpart_authtime shishi_encticketpart_authctime shishi_safe shishi_safe_done shishi_safe_key shishi_safe_key_set shishi_safe_safe shishi_safe_safe_set shishi_safe_safe_der shishi_safe_safe_der_set shishi_safe_print shishi_safe_save shishi_safe_to_file shishi_safe_parse shishi_safe_read shishi_safe_from_file shishi_safe_cksum shishi_safe_set_cksum shishi_safe_user_data shishi_safe_set_user_data shishi_safe_build shishi_safe_verify shishi_priv shishi_priv_done shishi_priv_key shishi_priv_key_set shishi_priv_priv shishi_priv_priv_set shishi_priv_priv_der shishi_priv_priv_der_set shishi_priv_encprivpart shishi_priv_encprivpart_set shishi_priv_encprivpart_der shishi_priv_encprivpart_der_set shishi_priv_print shishi_priv_save shishi_priv_to_file shishi_priv_parse shishi_priv_read shishi_priv_from_file shishi_priv_enc_part_etype shishi_priv_set_enc_part shishi_encprivpart_user_data shishi_encprivpart_set_user_data shishi_priv_build shishi_priv_process shishi_authorized_p shishi_authorization_parse shishi_authorize_strcmp shishi_authorize_k5login shishi_x509ca_default_file_guess shishi_x509ca_default_file_set shishi_x509ca_default_file shishi_x509cert_default_file_guess shishi_x509cert_default_file_set shishi_x509cert_default_file shishi_x509key_default_file_guess shishi_x509key_default_file_set shishi_x509key_default_file shishi_get_date shishi_xalloc_die shishi_resolv shishi_resolv_free
shishi-version SHISHI_VERSION SHISHI_VERSION_MAJOR SHISHI_VERSION_MINOR SHISHI_VERSION_PATCH SHISHI_VERSION_NUMBER
shishi-1.0.3/doc/reference/html/0000755000000000000000000000000014273616165013433 500000000000000shishi-1.0.3/doc/reference/html/index.html0000644000000000000000000000344414273616165015355 00000000000000 GNU Shishi API Reference Manual: GNU Shishi API Reference Manual

for GNU Shishi 1.0.3. The latest version of this documentation can be found on-line at https://www.gnu.org/software/shishi/reference/.


GNU Shishi API Reference Manual
shishi.h — main library interfaces
shishi-version.h — version symbols
API Index
shishi-1.0.3/doc/reference/html/right-insensitive.png0000644000000000000000000000056514273616165017542 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا IDAT8ËÍ’±JÃ`…¿ ‚“‹³«/ S’_$ÄÁÁAqrÐÙW(>€“à‚®©“m¥"]\œ„è(‘49.NÚdÒ3¸ß9Ü{á¯eM#MSI‡Î¹·E¯iHz|3{̲l½3 ,K˜k’ž†ÃáV'@EŸEQlwÀŠçyišî·Äqüçù‘™]KÀíh4:mµÄ¦²,;“t˜¤sç\aƒÆR5/¬7'¹W×õp”’Žs×­I’,Kº1³=àËÌÂ0´j0Wg³ÙØ>€Ý ¦­¯PUÕýïð»¤0 §]?qCÒ«™ùιgþ½~œÉkÄAâ…_IEND®B`‚shishi-1.0.3/doc/reference/html/shishi-shishi.h.html0000644000000000000000000612622414273616165017260 00000000000000 shishi.h: GNU Shishi API Reference Manual

shishi.h

shishi.h — main library interfaces

Functions

void (*shishi_alloc_fail_function) ()
Shishi * shishi ()
Shishi * shishi_server ()
void shishi_done ()
int shishi_init ()
int shishi_init_with_paths ()
int shishi_init_server ()
int shishi_init_server_with_paths ()
int shishi_cfg ()
int shishi_cfg_from_file ()
int shishi_cfg_print ()
const char * shishi_cfg_default_systemfile ()
const char * shishi_cfg_default_userdirectory ()
const char * shishi_cfg_default_userfile ()
char * shishi_cfg_userdirectory_file ()
int shishi_cfg_clientkdcetype ()
int32_t shishi_cfg_clientkdcetype_fast ()
int shishi_cfg_clientkdcetype_set ()
int shishi_cfg_authorizationtype_set ()
const char * shishi_strerror ()
const char * shishi_error ()
void shishi_error_clear ()
void shishi_error_set ()
void shishi_error_printf ()
int shishi_error_outputtype ()
void shishi_error_set_outputtype ()
void shishi_info ()
void shishi_warn ()
void shishi_verbose ()
char * shishi_realm_default_guess ()
const char * shishi_realm_default ()
void shishi_realm_default_set ()
char * shishi_realm_for_server_file ()
char * shishi_realm_for_server_dns ()
char * shishi_realm_for_server ()
char * shishi_principal_default_guess ()
const char * shishi_principal_default ()
void shishi_principal_default_set ()
int shishi_principal_name ()
int shishi_principal_name_realm ()
int shishi_principal_name_set ()
int shishi_principal_set ()
int shishi_parse_name ()
int shishi_derive_default_salt ()
char * shishi_server_for_local_service ()
Shishi_asn1 shishi_ticket ()
int shishi_ticket_server ()
int shishi_ticket_sname_set ()
int shishi_ticket_srealmserver_set ()
int shishi_ticket_set_server ()
int shishi_ticket_realm_get ()
int shishi_ticket_realm_set ()
int shishi_ticket_get_enc_part_etype ()
int shishi_ticket_set_enc_part ()
int shishi_ticket_add_enc_part ()
int shishi_ticket_decrypt ()
Shishi_asn1 shishi_tkt_ticket ()
void shishi_tkt_ticket_set ()
Shishi_asn1 shishi_tkt_kdcrep ()
Shishi_asn1 shishi_tkt_enckdcreppart ()
void shishi_tkt_enckdcreppart_set ()
Shishi_asn1 shishi_tkt_encticketpart ()
void shishi_tkt_encticketpart_set ()
Shishi_key * shishi_tkt_key ()
int shishi_tkt_key_set ()
int shishi_tkt ()
Shishi_tkt * shishi_tkt2 ()
void shishi_tkt_pretty_print ()
int shishi_tkt_realm ()
int shishi_tkt_client ()
int shishi_tkt_client_p ()
int shishi_tkt_clientrealm ()
int shishi_tkt_clientrealm_p ()
int shishi_tkt_clientrealm_set ()
int shishi_tkt_serverrealm_set ()
int shishi_tkt_build ()
int shishi_tkt_lastreq ()
time_t shishi_tkt_lastreqc ()
void shishi_tkt_lastreq_pretty_print ()
int shishi_tkt_authtime ()
time_t shishi_tkt_authctime ()
int shishi_tkt_starttime ()
time_t shishi_tkt_startctime ()
int shishi_tkt_endtime ()
time_t shishi_tkt_endctime ()
int shishi_tkt_renew_till ()
time_t shishi_tkt_renew_tillc ()
int shishi_tkt_keytype ()
int32_t shishi_tkt_keytype_fast ()
int shishi_tkt_keytype_p ()
int shishi_tkt_server ()
int shishi_tkt_server_p ()
int shishi_tkt_valid_at_time_p ()
int shishi_tkt_valid_now_p ()
int shishi_tkt_expired_p ()
int shishi_tkt_decrypt ()
void shishi_tkt_done ()
int shishi_tkt_flags ()
int shishi_tkt_flags_set ()
int shishi_tkt_flags_add ()
int shishi_tkt_forwardable_p ()
int shishi_tkt_forwarded_p ()
int shishi_tkt_proxiable_p ()
int shishi_tkt_proxy_p ()
int shishi_tkt_may_postdate_p ()
int shishi_tkt_postdated_p ()
int shishi_tkt_invalid_p ()
int shishi_tkt_renewable_p ()
int shishi_tkt_initial_p ()
int shishi_tkt_pre_authent_p ()
int shishi_tkt_hw_authent_p ()
int shishi_tkt_transited_policy_checked_p ()
int shishi_tkt_ok_as_delegate_p ()
char * shishi_tkts_default_file_guess ()
const char * shishi_tkts_default_file ()
void shishi_tkts_default_file_set ()
Shishi_tkts * shishi_tkts_default ()
int shishi_tkts_default_to_file ()
int shishi_tkts ()
Shishi_tkt * shishi_tkts_nth ()
int shishi_tkts_size ()
int shishi_tkts_add ()
int shishi_tkts_new ()
int shishi_tkts_remove ()
int shishi_tkts_expire ()
int shishi_tkts_print_for_service ()
int shishi_tkts_print ()
int shishi_tkts_write ()
int shishi_tkts_to_file ()
int shishi_tkts_read ()
int shishi_tkts_from_file ()
void shishi_tkts_done ()
int shishi_tkt_match_p ()
Shishi_tkt * shishi_tkts_find ()
Shishi_tkt * shishi_tkts_find_for_clientserver ()
Shishi_tkt * shishi_tkts_find_for_server ()
Shishi_tkt * shishi_tkts_get ()
Shishi_tkt * shishi_tkts_get_tgt ()
Shishi_tkt * shishi_tkts_get_tgs ()
Shishi_tkt * shishi_tkts_get_for_clientserver ()
Shishi_tkt * shishi_tkts_get_for_server ()
Shishi_tkt * shishi_tkts_get_for_localservicepasswd ()
char * shishi_tkts_default_ccache_guess ()
const char * shishi_tkts_default_ccache ()
void shishi_tkts_default_ccache_set ()
int shishi_tkts_add_ccache_mem ()
int shishi_tkts_add_ccache_file ()
int shishi_tkts_from_ccache_mem ()
int shishi_tkts_from_ccache_file ()
int shishi_enckdcreppart_print ()
int shishi_enckdcreppart_save ()
int shishi_enckdcreppart_parse ()
int shishi_enckdcreppart_read ()
int shishi_ticket_save ()
int shishi_ticket_print ()
int shishi_kdc_print ()
int shishi_ticket_parse ()
int shishi_ticket_read ()
int shishi_etype_info_print ()
int shishi_etype_info2_print ()
int shishi_padata_print ()
int shishi_methoddata_print ()
Shishi_asn1 shishi_authenticator ()
int shishi_authenticator_set_crealm ()
int shishi_authenticator_set_cname ()
int shishi_authenticator_client_set ()
int shishi_authenticator_ctime ()
int shishi_authenticator_ctime_set ()
int shishi_authenticator_cusec_get ()
int shishi_authenticator_cusec_set ()
int shishi_authenticator_seqnumber_get ()
int shishi_authenticator_seqnumber_remove ()
int shishi_authenticator_seqnumber_set ()
int shishi_authenticator_client ()
int shishi_authenticator_clientrealm ()
int shishi_authenticator_remove_cksum ()
int shishi_authenticator_cksum ()
int shishi_authenticator_set_cksum ()
int shishi_authenticator_add_cksum ()
int shishi_authenticator_add_cksum_type ()
int shishi_authenticator_remove_subkey ()
Shishi_asn1 shishi_authenticator_subkey ()
int shishi_authenticator_get_subkey ()
int shishi_authenticator_set_subkey ()
int shishi_authenticator_add_random_subkey ()
int shishi_authenticator_add_random_subkey_etype ()
int shishi_authenticator_add_subkey ()
int shishi_authenticator_clear_authorizationdata ()
int shishi_authenticator_add_authorizationdata ()
int shishi_authenticator_authorizationdata ()
int shishi_authenticator_read ()
int shishi_authenticator_parse ()
int shishi_authenticator_from_file ()
int shishi_authenticator_print ()
int shishi_authenticator_to_file ()
int shishi_authenticator_save ()
int shishi_as ()
void shishi_as_done ()
Shishi_asn1 shishi_as_req ()
int shishi_as_req_build ()
void shishi_as_req_set ()
int shishi_as_req_der ()
int shishi_as_req_der_set ()
Shishi_asn1 shishi_as_rep ()
void shishi_as_rep_set ()
int shishi_as_rep_build ()
int shishi_as_rep_der ()
int shishi_as_rep_der_set ()
Shishi_asn1 shishi_as_krberror ()
int shishi_as_krberror_der ()
void shishi_as_krberror_set ()
Shishi_tkt * shishi_as_tkt ()
void shishi_as_tkt_set ()
int shishi_as_sendrecv ()
int shishi_as_sendrecv_hint ()
int shishi_as_rep_process ()
int shishi_tgs ()
void shishi_tgs_done ()
Shishi_tkt * shishi_tgs_tgtkt ()
void shishi_tgs_tgtkt_set ()
Shishi_ap * shishi_tgs_ap ()
Shishi_asn1 shishi_tgs_req ()
int shishi_tgs_req_der ()
int shishi_tgs_req_der_set ()
void shishi_tgs_req_set ()
int shishi_tgs_req_build ()
int shishi_tgs_req_process ()
Shishi_asn1 shishi_tgs_rep ()
int shishi_tgs_rep_der ()
int shishi_tgs_rep_build ()
int shishi_tgs_rep_process ()
Shishi_asn1 shishi_tgs_krberror ()
int shishi_tgs_krberror_der ()
void shishi_tgs_krberror_set ()
Shishi_tkt * shishi_tgs_tkt ()
void shishi_tgs_tkt_set ()
int shishi_tgs_sendrecv ()
int shishi_tgs_sendrecv_hint ()
int shishi_tgs_set_server ()
int shishi_tgs_set_realm ()
int shishi_tgs_set_realmserver ()
int shishi_kdcreq ()
Shishi_asn1 shishi_asreq ()
Shishi_asn1 shishi_asreq_rsc ()
Shishi_asn1 shishi_tgsreq ()
Shishi_asn1 shishi_tgsreq_rst ()
int shishi_kdcreq_save ()
int shishi_kdcreq_print ()
int shishi_kdcreq_to_file ()
int shishi_kdcreq_parse ()
int shishi_kdcreq_read ()
int shishi_kdcreq_from_file ()
int shishi_asreq_clientrealm ()
int shishi_kdcreq_nonce ()
int shishi_kdcreq_nonce_set ()
int shishi_kdcreq_client ()
int shishi_kdcreq_set_cname ()
int shishi_kdcreq_server ()
int shishi_kdcreq_set_sname ()
int shishi_kdcreq_realm ()
int shishi_kdcreq_realm_get ()
int shishi_kdcreq_set_realm ()
int shishi_kdcreq_set_server ()
int shishi_kdcreq_set_realmserver ()
int shishi_kdcreq_till ()
time_t shishi_kdcreq_tillc ()
int shishi_kdcreq_etype ()
int shishi_kdcreq_set_etype ()
int shishi_kdcreq_options ()
int shishi_kdcreq_forwardable_p ()
int shishi_kdcreq_forwarded_p ()
int shishi_kdcreq_proxiable_p ()
int shishi_kdcreq_proxy_p ()
int shishi_kdcreq_allow_postdate_p ()
int shishi_kdcreq_postdated_p ()
int shishi_kdcreq_renewable_p ()
int shishi_kdcreq_disable_transited_check_p ()
int shishi_kdcreq_renewable_ok_p ()
int shishi_kdcreq_enc_tkt_in_skey_p ()
int shishi_kdcreq_renew_p ()
int shishi_kdcreq_validate_p ()
int shishi_kdcreq_options_set ()
int shishi_kdcreq_options_add ()
int shishi_kdcreq_clear_padata ()
int shishi_kdcreq_get_padata ()
int shishi_kdcreq_get_padata_tgs ()
int shishi_kdcreq_add_padata ()
int shishi_kdcreq_add_padata_tgs ()
int shishi_kdcreq_add_padata_preauth ()
int shishi_kdcreq_build ()
int shishi_as_derive_salt ()
int shishi_tgs_process ()
int shishi_as_process ()
int shishi_kdc_process ()
int shishi_kdcreq_sendrecv ()
int shishi_kdcreq_sendrecv_hint ()
int shishi_kdc_copy_crealm ()
int shishi_as_check_crealm ()
int shishi_kdc_copy_cname ()
int shishi_as_check_cname ()
int shishi_kdc_copy_nonce ()
int shishi_kdc_check_nonce ()
Shishi_asn1 shishi_asrep ()
Shishi_asn1 shishi_tgsrep ()
int shishi_kdcrep_save ()
int shishi_kdcrep_print ()
int shishi_kdcrep_to_file ()
int shishi_kdcrep_parse ()
int shishi_kdcrep_read ()
int shishi_kdcrep_from_file ()
int shishi_kdcrep_clear_padata ()
int shishi_kdcrep_get_enc_part_etype ()
int shishi_kdcrep_add_enc_part ()
int shishi_kdcrep_get_ticket ()
int shishi_kdcrep_set_ticket ()
int shishi_kdcrep_crealm_set ()
int shishi_kdcrep_cname_set ()
int shishi_kdcrep_client_set ()
int shishi_kdcrep_crealmserver_set ()
int shishi_kdcrep_set_enc_part ()
int shishi_kdcrep_decrypt ()
Shishi_asn1 shishi_enckdcreppart ()
Shishi_asn1 shishi_encasreppart ()
int shishi_enckdcreppart_get_key ()
int shishi_enckdcreppart_key_set ()
int shishi_enckdcreppart_nonce_set ()
int shishi_enckdcreppart_flags_set ()
int shishi_enckdcreppart_authtime_set ()
int shishi_enckdcreppart_starttime_set ()
int shishi_enckdcreppart_endtime_set ()
int shishi_enckdcreppart_renew_till_set ()
int shishi_enckdcreppart_srealm_set ()
int shishi_enckdcreppart_sname_set ()
int shishi_enckdcreppart_server_set ()
int shishi_enckdcreppart_srealmserver_set ()
int shishi_enckdcreppart_populate_encticketpart ()
Shishi_asn1 shishi_krberror ()
int shishi_krberror_print ()
int shishi_krberror_save ()
int shishi_krberror_to_file ()
int shishi_krberror_parse ()
int shishi_krberror_read ()
int shishi_krberror_from_file ()
int shishi_krberror_build ()
int shishi_krberror_der ()
int shishi_krberror_crealm ()
int shishi_krberror_remove_crealm ()
int shishi_krberror_set_crealm ()
int shishi_krberror_client ()
int shishi_krberror_set_cname ()
int shishi_krberror_remove_cname ()
int shishi_krberror_client_set ()
int shishi_krberror_realm ()
int shishi_krberror_set_realm ()
int shishi_krberror_server ()
int shishi_krberror_remove_sname ()
int shishi_krberror_set_sname ()
int shishi_krberror_server_set ()
int shishi_krberror_ctime ()
int shishi_krberror_ctime_set ()
int shishi_krberror_remove_ctime ()
int shishi_krberror_cusec ()
int shishi_krberror_cusec_set ()
int shishi_krberror_remove_cusec ()
int shishi_krberror_stime ()
int shishi_krberror_stime_set ()
int shishi_krberror_susec ()
int shishi_krberror_susec_set ()
int shishi_krberror_errorcode_set ()
int shishi_krberror_etext ()
int shishi_krberror_set_etext ()
int shishi_krberror_remove_etext ()
int shishi_krberror_edata ()
int shishi_krberror_set_edata ()
int shishi_krberror_remove_edata ()
int shishi_krberror_errorcode ()
int shishi_krberror_errorcode_fast ()
int shishi_krberror_pretty_print ()
const char * shishi_krberror_errorcode_message ()
const char * shishi_krberror_message ()
int shishi_krberror_methoddata ()
const char * shishi_generalize_time ()
const char * shishi_generalize_now ()
time_t shishi_generalize_ctime ()
int shishi_time ()
int shishi_ctime ()
int shishi_randomize ()
int shishi_crc ()
int shishi_md4 ()
int shishi_md5 ()
int shishi_hmac_md5 ()
int shishi_hmac_sha1 ()
int shishi_des_cbc_mac ()
int shishi_arcfour ()
int shishi_des ()
int shishi_3des ()
int shishi_aes_cts ()
int shishi_cipher_supported_p ()
const char * shishi_cipher_name ()
int shishi_cipher_blocksize ()
int shishi_cipher_confoundersize ()
size_t shishi_cipher_keylen ()
size_t shishi_cipher_randomlen ()
int shishi_cipher_defaultcksumtype ()
int shishi_cipher_parse ()
int shishi_checksum_supported_p ()
const char * shishi_checksum_name ()
size_t shishi_checksum_cksumlen ()
int shishi_checksum_parse ()
int shishi_string_to_key ()
int shishi_random_to_key ()
int shishi_encrypt_ivupdate_etype ()
int shishi_encrypt_iv_etype ()
int shishi_encrypt_etype ()
int shishi_encrypt_ivupdate ()
int shishi_encrypt_iv ()
int shishi_encrypt ()
int shishi_decrypt_ivupdate_etype ()
int shishi_decrypt_iv_etype ()
int shishi_decrypt_etype ()
int shishi_decrypt_ivupdate ()
int shishi_decrypt_iv ()
int shishi_decrypt ()
int shishi_checksum ()
int shishi_verify ()
int shishi_dk ()
int shishi_dr ()
int shishi_n_fold ()
int shishi_pbkdf2_sha1 ()
Shishi_crypto * shishi_crypto ()
void shishi_crypto_close ()
int shishi_crypto_encrypt ()
int shishi_crypto_decrypt ()
const char * shishi_check_version ()
int (*shishi_prompt_password_func) ()
void shishi_prompt_password_callback_set ()
shishi_prompt_password_func shishi_prompt_password_callback_get ()
int shishi_prompt_password ()
int shishi_asn1_number_of_elements ()
int shishi_asn1_empty_p ()
int shishi_asn1_read ()
int shishi_asn1_read_inline ()
int shishi_asn1_read_integer ()
int shishi_asn1_read_int32 ()
int shishi_asn1_read_uint32 ()
int shishi_asn1_read_bitstring ()
int shishi_asn1_read_optional ()
int shishi_asn1_write ()
int shishi_asn1_write_integer ()
int shishi_asn1_write_int32 ()
int shishi_asn1_write_uint32 ()
int shishi_asn1_write_bitstring ()
void shishi_asn1_done ()
Shishi_asn1 shishi_asn1_pa_enc_ts_enc ()
Shishi_asn1 shishi_asn1_encrypteddata ()
Shishi_asn1 shishi_asn1_padata ()
Shishi_asn1 shishi_asn1_methoddata ()
Shishi_asn1 shishi_asn1_etype_info ()
Shishi_asn1 shishi_asn1_etype_info2 ()
Shishi_asn1 shishi_asn1_asreq ()
Shishi_asn1 shishi_asn1_asrep ()
Shishi_asn1 shishi_asn1_tgsreq ()
Shishi_asn1 shishi_asn1_tgsrep ()
Shishi_asn1 shishi_asn1_apreq ()
Shishi_asn1 shishi_asn1_aprep ()
Shishi_asn1 shishi_asn1_ticket ()
Shishi_asn1 shishi_asn1_encapreppart ()
Shishi_asn1 shishi_asn1_encticketpart ()
Shishi_asn1 shishi_asn1_authenticator ()
Shishi_asn1 shishi_asn1_enckdcreppart ()
Shishi_asn1 shishi_asn1_encasreppart ()
Shishi_asn1 shishi_asn1_krberror ()
Shishi_asn1 shishi_asn1_krbsafe ()
Shishi_asn1 shishi_asn1_priv ()
Shishi_asn1 shishi_asn1_encprivpart ()
int shishi_asn1_to_der ()
int shishi_asn1_to_der_field ()
Shishi_msgtype shishi_asn1_msgtype ()
Shishi_msgtype shishi_der_msgtype ()
void shishi_asn1_print ()
Shishi_asn1 shishi_der2asn1 ()
Shishi_asn1 shishi_der2asn1_padata ()
Shishi_asn1 shishi_der2asn1_methoddata ()
Shishi_asn1 shishi_der2asn1_etype_info ()
Shishi_asn1 shishi_der2asn1_etype_info2 ()
Shishi_asn1 shishi_der2asn1_ticket ()
Shishi_asn1 shishi_der2asn1_encticketpart ()
Shishi_asn1 shishi_der2asn1_asreq ()
Shishi_asn1 shishi_der2asn1_tgsreq ()
Shishi_asn1 shishi_der2asn1_asrep ()
Shishi_asn1 shishi_der2asn1_tgsrep ()
Shishi_asn1 shishi_der2asn1_kdcrep ()
Shishi_asn1 shishi_der2asn1_kdcreq ()
Shishi_asn1 shishi_der2asn1_apreq ()
Shishi_asn1 shishi_der2asn1_aprep ()
Shishi_asn1 shishi_der2asn1_authenticator ()
Shishi_asn1 shishi_der2asn1_krberror ()
Shishi_asn1 shishi_der2asn1_krbsafe ()
Shishi_asn1 shishi_der2asn1_priv ()
Shishi_asn1 shishi_der2asn1_encasreppart ()
Shishi_asn1 shishi_der2asn1_enctgsreppart ()
Shishi_asn1 shishi_der2asn1_enckdcreppart ()
Shishi_asn1 shishi_der2asn1_encapreppart ()
Shishi_asn1 shishi_der2asn1_encprivpart ()
int shishi_ap ()
int shishi_ap_etype ()
int shishi_ap_nosubkey ()
void shishi_ap_done ()
int shishi_ap_set_tktoptions ()
int shishi_ap_tktoptions ()
int shishi_ap_etype_tktoptionsdata ()
int shishi_ap_set_tktoptionsdata ()
int shishi_ap_tktoptionsdata ()
int shishi_ap_set_tktoptionsraw ()
int shishi_ap_tktoptionsraw ()
int shishi_ap_set_tktoptionsasn1usage ()
int shishi_ap_tktoptionsasn1usage ()
Shishi_tkt * shishi_ap_tkt ()
void shishi_ap_tkt_set ()
int shishi_ap_authenticator_cksumdata ()
void shishi_ap_authenticator_cksumdata_set ()
void shishi_ap_authenticator_cksumraw_set ()
int32_t shishi_ap_authenticator_cksumtype ()
void shishi_ap_authenticator_cksumtype_set ()
Shishi_asn1 shishi_ap_authenticator ()
void shishi_ap_authenticator_set ()
Shishi_asn1 shishi_ap_req ()
void shishi_ap_req_set ()
int shishi_ap_req_der ()
int shishi_ap_req_der_set ()
int shishi_ap_req_build ()
int shishi_ap_req_asn1 ()
Shishi_key * shishi_ap_key ()
int shishi_ap_req_decode ()
int shishi_ap_req_process ()
int shishi_ap_req_process_keyusage ()
Shishi_asn1 shishi_ap_rep ()
void shishi_ap_rep_set ()
int shishi_ap_rep_der ()
int shishi_ap_rep_der_set ()
int shishi_ap_rep_verify ()
int shishi_ap_rep_verify_der ()
int shishi_ap_rep_verify_asn1 ()
int shishi_ap_rep_asn1 ()
int shishi_ap_rep_build ()
Shishi_asn1 shishi_ap_encapreppart ()
void shishi_ap_encapreppart_set ()
const char * shishi_ap_option2string ()
Shishi_apoptions shishi_ap_string2option ()
const char * shishi_key_principal ()
void shishi_key_principal_set ()
const char * shishi_key_realm ()
void shishi_key_realm_set ()
int shishi_key_type ()
void shishi_key_type_set ()
const char * shishi_key_value ()
void shishi_key_value_set ()
const char * shishi_key_name ()
size_t shishi_key_length ()
uint32_t shishi_key_version ()
void shishi_key_version_set ()
time_t shishi_key_timestamp ()
void shishi_key_timestamp_set ()
int shishi_key ()
void shishi_key_done ()
void shishi_key_copy ()
int shishi_key_print ()
int shishi_key_to_file ()
int shishi_key_parse ()
int shishi_key_random ()
int shishi_key_from_value ()
int shishi_key_from_base64 ()
int shishi_key_from_random ()
int shishi_key_from_string ()
int shishi_key_from_name ()
int shishi_keys ()
void shishi_keys_done ()
int shishi_keys_size ()
const Shishi_key * shishi_keys_nth ()
void shishi_keys_remove ()
int shishi_keys_add ()
int shishi_keys_print ()
int shishi_keys_from_file ()
int shishi_keys_to_file ()
Shishi_key * shishi_keys_for_serverrealm_in_file ()
Shishi_key * shishi_keys_for_server_in_file ()
Shishi_key * shishi_keys_for_localservicerealm_in_file ()
int shishi_keys_add_keytab_mem ()
int shishi_keys_add_keytab_file ()
int shishi_keys_from_keytab_mem ()
int shishi_keys_from_keytab_file ()
int shishi_keys_to_keytab_mem ()
int shishi_keys_to_keytab_file ()
const char * shishi_hostkeys_default_file ()
void shishi_hostkeys_default_file_set ()
Shishi_key * shishi_hostkeys_for_server ()
Shishi_key * shishi_hostkeys_for_serverrealm ()
Shishi_key * shishi_hostkeys_for_localservicerealm ()
Shishi_key * shishi_hostkeys_for_localservice ()
Shishi_asn1 shishi_encapreppart ()
int shishi_encapreppart_time_copy ()
int shishi_encapreppart_ctime ()
int shishi_encapreppart_ctime_set ()
int shishi_encapreppart_cusec_get ()
int shishi_encapreppart_cusec_set ()
int shishi_encapreppart_print ()
int shishi_encapreppart_save ()
int shishi_encapreppart_to_file ()
int shishi_encapreppart_read ()
int shishi_encapreppart_parse ()
int shishi_encapreppart_from_file ()
int shishi_encapreppart_get_key ()
int shishi_encapreppart_seqnumber_get ()
int shishi_encapreppart_seqnumber_remove ()
int shishi_encapreppart_seqnumber_set ()
Shishi_asn1 shishi_apreq ()
int shishi_apreq_parse ()
int shishi_apreq_from_file ()
int shishi_apreq_print ()
int shishi_apreq_to_file ()
int shishi_apreq_read ()
int shishi_apreq_save ()
int shishi_apreq_set_ticket ()
int shishi_apreq_set_authenticator ()
int shishi_apreq_add_authenticator ()
int shishi_apreq_options ()
int shishi_apreq_use_session_key_p ()
int shishi_apreq_mutual_required_p ()
int shishi_apreq_options_set ()
int shishi_apreq_options_add ()
int shishi_apreq_options_remove ()
int shishi_apreq_get_ticket ()
int shishi_apreq_get_authenticator_etype ()
int shishi_apreq_decrypt ()
Shishi_asn1 shishi_aprep ()
int shishi_aprep_print ()
int shishi_aprep_save ()
int shishi_aprep_to_file ()
int shishi_aprep_read ()
int shishi_aprep_parse ()
int shishi_aprep_from_file ()
int shishi_aprep_decrypt ()
int shishi_aprep_verify ()
int shishi_aprep_enc_part_set ()
int shishi_aprep_enc_part_add ()
int shishi_aprep_enc_part_make ()
int shishi_aprep_get_enc_part_etype ()
int shishi_kdc_sendrecv ()
int shishi_kdc_sendrecv_hint ()
Shishi_asn1 shishi_encticketpart ()
int shishi_encticketpart_key_set ()
int shishi_encticketpart_get_key ()
int shishi_encticketpart_crealm ()
int shishi_encticketpart_crealm_set ()
int shishi_encticketpart_client ()
int shishi_encticketpart_clientrealm ()
int shishi_encticketpart_cname_set ()
int shishi_encticketpart_print ()
int shishi_encticketpart_flags_set ()
int shishi_encticketpart_transited_set ()
int shishi_encticketpart_authtime_set ()
int shishi_encticketpart_endtime_set ()
int shishi_encticketpart_authtime ()
time_t shishi_encticketpart_authctime ()
int shishi_safe ()
void shishi_safe_done ()
Shishi_key * shishi_safe_key ()
void shishi_safe_key_set ()
Shishi_asn1 shishi_safe_safe ()
void shishi_safe_safe_set ()
int shishi_safe_safe_der ()
int shishi_safe_safe_der_set ()
int shishi_safe_print ()
int shishi_safe_save ()
int shishi_safe_to_file ()
int shishi_safe_parse ()
int shishi_safe_read ()
int shishi_safe_from_file ()
int shishi_safe_cksum ()
int shishi_safe_set_cksum ()
int shishi_safe_user_data ()
int shishi_safe_set_user_data ()
int shishi_safe_build ()
int shishi_safe_verify ()
int shishi_priv ()
void shishi_priv_done ()
Shishi_key * shishi_priv_key ()
void shishi_priv_key_set ()
Shishi_asn1 shishi_priv_priv ()
void shishi_priv_priv_set ()
int shishi_priv_priv_der ()
int shishi_priv_priv_der_set ()
Shishi_asn1 shishi_priv_encprivpart ()
void shishi_priv_encprivpart_set ()
int shishi_priv_encprivpart_der ()
int shishi_priv_encprivpart_der_set ()
int shishi_priv_print ()
int shishi_priv_save ()
int shishi_priv_to_file ()
int shishi_priv_parse ()
int shishi_priv_read ()
int shishi_priv_from_file ()
int shishi_priv_enc_part_etype ()
int shishi_priv_set_enc_part ()
int shishi_encprivpart_user_data ()
int shishi_encprivpart_set_user_data ()
int shishi_priv_build ()
int shishi_priv_process ()
int shishi_authorized_p ()
int shishi_authorization_parse ()
int shishi_authorize_strcmp ()
int shishi_authorize_k5login ()
char * shishi_x509ca_default_file_guess ()
void shishi_x509ca_default_file_set ()
const char * shishi_x509ca_default_file ()
char * shishi_x509cert_default_file_guess ()
void shishi_x509cert_default_file_set ()
const char * shishi_x509cert_default_file ()
char * shishi_x509key_default_file_guess ()
void shishi_x509key_default_file_set ()
const char * shishi_x509key_default_file ()
time_t shishi_get_date ()
void shishi_xalloc_die ()
Shishi_dns shishi_resolv ()
void shishi_resolv_free ()

Description

The main library interfaces are declared in shishi.h.

Functions

shishi_alloc_fail_function ()

void
(*shishi_alloc_fail_function) (void);

shishi ()

Shishi *
shishi (void);

Initializes the Shishi library, and primes logging so that future warnings and informational messages are printed on stderr. If this function fails, it may send its own diagnostic errors to stderr.

Returns

Returns a Shishi library handle, or NULL on error.


shishi_server ()

Shishi *
shishi_server (void);

Initializes the Shishi library, and primes logging so that future warnings and informational messages are sent to the syslog system. If this function fails, it may print diagnostic errors in the syslog.

Returns

Returns a Shishi library handle, or NULL on error.


shishi_done ()

void
shishi_done (Shishi *handle);

Deallocates the Shishi library handle. The handle must not be used in any call to a shishi function after an execution of shishi_done().

If there is a default tkts, it is written to the default tkts file. If you do not wish to write the default tkts file, close the default file before calling this function. It is closed with a simple shishi_tkts_done(handle , NULL). For related information, see shishi_tkts_default_file_set().

Parameters

handle

Shishi handle as allocated by shishi_init().

 

shishi_init ()

int
shishi_init (Shishi **handle);

Creates a Shishi library handle, using shishi(), and reads the system configuration file, user configuration file and user tickets from their default locations. The paths to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf. The user configuration file is $HOME/.shishi/config, and the user ticket file is $HOME/.shishi/ticket.

The handle is allocated regardless of return value. The single exception being SHISHI_HANDLE_ERROR, which indicates a problem in allocating the handle. Other error conditions could arise while reading files.

Parameters

handle

Pointer to a Shishi handle created by this call.

 

Returns

Returns SHISHI_OK iff successful.


shishi_init_with_paths ()

int
shishi_init_with_paths (Shishi **handle,
                        const char *tktsfile,
                        const char *systemcfgfile,
                        const char *usercfgfile);

Creates a Shishi library handle, using shishi(), and reads the system configuration file, user configuration file, and user tickets at the specified locations. If any of usercfgfile or systemcfgfile is NULL, the file is read from its default location, which for the system configuration is decided at compile time, and is $sysconfdir/shishi.conf, and for the user configuration it is $HOME/.shishi/config. If the ticket file name is NULL, a ticket file is not read at all.

The handle is allocated regardless of return value. The single exception being SHISHI_HANDLE_ERROR, which indicates a problem in allocating the handle. Other error conditions could arise while reading files.

Parameters

handle

Pointer to a Shishi handle created by this call.

 

tktsfile

Filename of ticket file, or NULL.

 

systemcfgfile

Filename of system configuration, or NULL.

 

usercfgfile

Filename of user configuration, or NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_init_server ()

int
shishi_init_server (Shishi **handle);

Creates a Shishi library handle, using shishi_server(), and reads the system configuration file. The path to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf.

The handle is allocated regardless of return value. The single exception being SHISHI_HANDLE_ERROR, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file.

Parameters

handle

Pointer to a Shishi handle created by this call.

 

Returns

Returns SHISHI_OK iff successful.


shishi_init_server_with_paths ()

int
shishi_init_server_with_paths (Shishi **handle,
                               const char *systemcfgfile);

Creates a Shishi library handle, using shishi_server(), and reads the system configuration file from the specified location. The path to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf.

The handle is allocated regardless of return value. The single exception being SHISHI_HANDLE_ERROR, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file.

Parameters

handle

Pointer to a Shishi handle created by this call.

 

systemcfgfile

Filename of system configuration, or NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_cfg ()

int
shishi_cfg (Shishi *handle,
            const char *option);

Configures the shishi library according to the options given in option .

Parameters

handle

Shishi library handle created by shishi_init().

 

option

String containing shishi library options.

 

Returns

Returns SHISHI_OK if option is valid and configuration was successful.


shishi_cfg_from_file ()

int
shishi_cfg_from_file (Shishi *handle,
                      const char *cfg);

Configures the shishi library using a configuration file located at cfg .

Parameters

handle

Shishi library handle created by shishi_init().

 

cfg

Name of configuration file.

 

Returns

Returns SHISHI_OK if successful.


shishi_cfg_print ()

int
shishi_cfg_print (Shishi *handle,
                  FILE *fh);

Prints library configuration status to fh . This function is mostly intended for debugging purposes.

Parameters

handle

Shishi library handle created by shishi_init().

 

fh

File stream handle opened for writing.

 

Returns

Always returns SHISHI_OK.


shishi_cfg_default_systemfile ()

const char *
shishi_cfg_default_systemfile (Shishi *handle);

The system configuration file name is decided at compile time, but is replaced by assigning another file name to the environment variable $SHISHI_CONFIG. This call offers a single interface for determining the file name, to which the library turns for its settings.

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns file name of present system configuration.


shishi_cfg_default_userdirectory ()

const char *
shishi_cfg_default_userdirectory (Shishi *handle);

The default user directory, referred to for Shishi ticket cache and other purposes, is normally computed by appending the fixed string "/.shishi" to the content of the environment variable $HOME.

This hard coded directory, i.e., "$HOME/.shishi/", can be replaced by whatever complete path is stored in the environment variable $SHISHI_HOME.

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns the user's directory name where the Shishi library will search for configuration files, ticket caches, etcetera.


shishi_cfg_default_userfile ()

const char *
shishi_cfg_default_userfile (Shishi *handle);

Reports the absolute filename of the default user configuration file. This is typically "$HOME/.shishi/shishi.conf".

The value of $SHISHI_HOME will change the directory part, as stated regarding shishi_cfg_default_userdirectory().

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns the user's configuration filename.


shishi_cfg_userdirectory_file ()

char *
shishi_cfg_userdirectory_file (Shishi *handle,
                               const char *file);

Reports the full path to the file where the Shishi library expects to find the user's library configuration, given that the file itself is named by the parameter file .

The answer is composed from the value of file and the directory returned by shishi_cfg_default_userdirectory(). Typically, the returned string would be expanded from "$HOME/.shishi/file ".

Parameters

handle

Shishi library handle created by shishi_init().

 

file

Basename of file to use for the user's configuration settings of the library.

 

Returns

Returns the absolute filename to the argument file , relative to the user specific Shishi configuration directory.


shishi_cfg_clientkdcetype ()

int
shishi_cfg_clientkdcetype (Shishi *handle,
                           int32_t **etypes);

Sets the variable etypes to a static array of preferred encryption types applicable to clients.

Parameters

handle

Shishi library handle created by shishi_init().

 

etypes

Pointer to an array of encryption types.

 

Returns

Returns the number of encryption types referred to by the updated array pointer, or zero, should no type exist.


shishi_cfg_clientkdcetype_fast ()

int32_t
shishi_cfg_clientkdcetype_fast (Shishi *handle);

Extracts the default encryption type from the list of preferred encryption types acceptable to the client.

When the preferred list is empty, SHISHI_AES256_CTS_HMAC_SHA1_96 is returned as a sensible default type.

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns the default encryption type.


shishi_cfg_clientkdcetype_set ()

int
shishi_cfg_clientkdcetype_set (Shishi *handle,
                               char *value);

Sets the configuration option "client-kdc-etypes" from value . The string contains encryption types, integers or names, separated by comma or by whitespace. An example naming three encryption types could be:

aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5

Parameters

handle

Shishi library handle created by shishi_init().

 

value

String naming acceptable encryption types.

 

Returns

Returns SHISHI_OK if successful, and SHISHI_INVALID_ARGUMENT otherwise.


shishi_cfg_authorizationtype_set ()

int
shishi_cfg_authorizationtype_set (Shishi *handle,
                                  char *value);

Sets the configuration option "authorization-types" from value . The string contains authorization types, integers or names, separated by comma or whitespace.

As an example, "k5login basic" would first check Kerberos5 authentication based on preset principals, and then fall back to the basic test of identical principal names.

Parameters

handle

Shishi library handle created by shishi_init().

 

value

String listing acceptable authorization types.

 

Returns

Returns SHISHI_OK if successful, and SHISHI_INVALID_ARGUMENT otherwise.


shishi_strerror ()

const char *
shishi_strerror (int err);

Converts the return code in err to a human readable string.

Parameters

err

shishi error code.

 

Returns

Returns a pointer to a statically allocated string containing a description of the error with code err . This string can be used to output a diagnostic message to the user.


shishi_error ()

const char *
shishi_error (Shishi *handle);

Extracts detailed information on the most recently occurred error condition. Note that memory is managed by the Shishi library, so the returned string must not be deallocated.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns a pointer to a string describing an error. The string must not be deallocated by the caller.


shishi_error_clear ()

void
shishi_error_clear (Shishi *handle);

Clears the internal error description. See shishi_error() on how to access the error string, and shishi_error_set() as well as shishi_error_printf() on how to set the error string.

This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

shishi_error_set ()

void
shishi_error_set (Shishi *handle,
                  const char *errstr);

Sets the error description to the content of errstr . The string is copied into the Shishi internal structure, so you can deallocate any string passed to this function.

This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

errstr

A null-terminated character string holding a description, or NULL to clear the internal error string.

 

shishi_error_printf ()

void
shishi_error_printf (Shishi *handle,
                     const char *format,
                     ...);

Sets the internal error description to a printf(3) formatted string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same infrastructure for error handling.

Parameters

handle

shishi handle as allocated by shishi_init().

 

format

printf style format string.

 

...

printf style arguments.

 

shishi_error_outputtype ()

int
shishi_error_outputtype (Shishi *handle);

Reports the current output type used in message logging.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the output type. SHISHI_OUTPUTTYPE_NULL means no output. SHISHI_OUTPUTTYPE_STDERR and SHISHI_OUTPUTTYPE_SYSLOG direct text to the console, or to the syslog system.


shishi_error_set_outputtype ()

void
shishi_error_set_outputtype (Shishi *handle,
                             int type);

Sets the output type (NULL, stderr or syslog) used for information and warning messages. Intended values are SHISHI_OUTPUTTYPE_NULL, for no output at all, SHISHI_OUTPUTTYPE_STDERR for output to the console, and SHISHI_OUTPUTTYPE_SYSLOG for syslog messaging. The first value covers everything different from the latter two values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

type

output type, of enum type Shishi_outputtype.

 

shishi_info ()

void
shishi_info (Shishi *handle,
             const char *format,
             ...);

Prints an informational message, composed from the arguments, to the output stream set in handle .

Parameters

handle

shishi handle as allocated by shishi_init().

 

format

printf style format string.

 

...

printf style arguments.

 

shishi_warn ()

void
shishi_warn (Shishi *handle,
             const char *format,
             ...);

Prints a warning, composed from the arguments, to the output stream set in handle .

Parameters

handle

shishi handle as allocated by shishi_init().

 

format

printf style format string.

 

...

printf style arguments.

 

shishi_verbose ()

void
shishi_verbose (Shishi *handle,
                const char *format,
                ...);

Prints a diagnostic message, composed from the arguments, to the output stream set in handle . The current verbosity setting determines whether the message is actually printed, or is suppressed due to low significance.

Parameters

handle

shishi handle as allocated by shishi_init().

 

format

printf style format string.

 

...

printf style arguments.

 

shishi_realm_default_guess ()

char *
shishi_realm_default_guess (void);

Guesses a realm based on getdomainname(), which really responds with a NIS/YP domain, but if set properly, it might be a good first guess. If this NIS query fails, call gethostname(), and on its failure, fall back to returning the artificial string "could-not-guess-default-realm".

Note that the hostname is not trimmed off of the string returned by gethostname(), thus pretending the local host name is a valid realm name. The resulting corner case could merit a check that the suggested realm is distinct from the fully qualifies host, and if not, simply strip the host name from the returned string before it is used in an application. One reason for sticking with the present behaviour, is that some systems respond with a non-qualified host name as reply from gethostname().

Returns

Returns a guessed realm for the running host, containing a string that has to be deallocated with free() by the caller.


shishi_realm_default ()

const char *
shishi_realm_default (Shishi *handle);

Determines name of default realm, i.e., the name of whatever realm the library will use whenever an explicit realm is not stated during a library call.

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns the default realm in use by the library. Not a copy, so do not modify or deallocate the returned string.


shishi_realm_default_set ()

void
shishi_realm_default_set (Shishi *handle,
                          const char *realm);

Sets the default realm used by the library; or, with realm set to NULL, resets the library realm setting to that name selected by configuration for default value.

The string is copied into the library, so you can dispose of the content in realm immediately after calling this function.

Parameters

handle

Shishi library handle created by shishi_init().

 

realm

String stating a new default realm name, or NULL.

 

shishi_realm_for_server_file ()

char *
shishi_realm_for_server_file (Shishi *handle,
                              char *server);

Finds the realm applicable to a host server , using the standard configuration file.

Parameters

handle

Shishi library handle created by shishi_init().

 

server

Hostname to determine realm for.

 

Returns

Returns realm for host, or NULL if not known.


shishi_realm_for_server_dns ()

char *
shishi_realm_for_server_dns (Shishi *handle,
                             char *server);

Finds the realm for a host server using DNS lookup, as is prescribed in "draft-ietf-krb-wg-krb-dns-locate-03.txt".

Since DNS lookup can be spoofed, relying on the realm information may result in a redirection attack. In a single-realm scenario, this only achieves a denial of service, but with trust across multiple realms the attack may redirect you to a compromised realm. For this reason, Shishi prints a warning, suggesting that the user should instead add a proper 'server-realm' configuration token.

To illustrate the DNS information used, here is an extract from a zone file for the domain ASDF.COM:

_kerberos.asdf.com. IN TXT "ASDF.COM" _kerberos.mrkserver.asdf.com. IN TXT "MARKETING.ASDF.COM" _kerberos.salesserver.asdf.com. IN TXT "SALES.ASDF.COM"

Let us suppose that in this case, a client wishes to use a service on the host "foo.asdf.com". It would first query for

_kerberos.foo.asdf.com. IN TXT

Finding no match, it would then query for

_kerberos.asdf.com. IN TXT

With the resource records stated above, the latter query returns a positive answer.

Parameters

handle

Shishi library handle created by shishi_init().

 

server

Hostname to find realm for.

 

Returns

Returns realm for the indicated host, or NULL if no relevant TXT record could be found.


shishi_realm_for_server ()

char *
shishi_realm_for_server (Shishi *handle,
                         char *server);

Finds a realm for the host server , using various methods.

Currently this includes static configuration files, using the library call shishi_realm_for_server_file(), and DNS lookup using shishi_realm_for_server_dns(). They are attempted in the stated order. See the documentation of either function for more information.

Parameters

handle

Shishi library handle created by shishi_init().

 

server

Hostname to find realm for.

 

Returns

Returns realm for the indicated host, or NULL if nothing is known about server .


shishi_principal_default_guess ()

char *
shishi_principal_default_guess (void);

Guesses the principal name for the user, looking at environment variables SHISHI_USER, USER and LOGNAME, or if that fails, returns the string "user".

Returns

Returns guessed default principal for user as a string that has to be deallocated by the caller with free().


shishi_principal_default ()

const char *
shishi_principal_default (Shishi *handle);

The default principal name is the name in the environment variable USER, or LOGNAME for some systems, but it can be overridden by specifying the environment variable SHISHI_USER.

Parameters

handle

Shishi library handle created by shishi_init().

 

Returns

Returns the default principal name used by the library. (Not a copy of it, so don't modify or deallocate it.)


shishi_principal_default_set ()

void
shishi_principal_default_set (Shishi *handle,
                              const char *principal);

Set the default principal used by the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle created by shishi_init().

 

principal

string with new default principal name, or NULL to reset to default.

 

shishi_principal_name ()

int
shishi_principal_name (Shishi *handle,
                       Shishi_asn1 namenode,
                       const char *namefield,
                       char **out,
                       size_t *outlen);

Represent principal name in ASN.1 structure as null-terminated string. The string is allocated by this function, and it is the responsibility of the caller to deallocate it. Note that the output length outlen does not include the terminating null.

Parameters

handle

Shishi library handle created by shishi_init().

 

namenode

ASN.1 structure with principal in namefield .

 

namefield

name of field in namenode containing principal name.

 

out

pointer to newly allocated, null terminated, string containing principal name. May be NULL (to only populate outlen ).

 

outlen

pointer to length of out on output, excluding terminating null. May be NULL (to only populate out ).

 

Returns

Returns SHISHI_OK if successful.


shishi_principal_name_realm ()

int
shishi_principal_name_realm (Shishi *handle,
                             Shishi_asn1 namenode,
                             const char *namefield,
                             Shishi_asn1 realmnode,
                             const char *realmfield,
                             char **out,
                             size_t *outlen);

Represent principal name and realm in ASN.1 structure as null-terminated string. The string is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length outlen does not include the terminating null character.

Parameters

handle

Shishi library handle created by shishi_init().

 

namenode

ASN.1 structure with principal name in namefield .

 

namefield

name of field in namenode containing principal name.

 

realmnode

ASN.1 structure with principal realm in realmfield .

 

realmfield

name of field in realmnode containing principal realm.

 

out

pointer to newly allocated null terminated string containing principal name. May be NULL (to only populate outlen ).

 

outlen

pointer to length of out on output, excluding terminating null. May be NULL (to only populate out ).

 

Returns

Returns SHISHI_OK if successful.


shishi_principal_name_set ()

int
shishi_principal_name_set (Shishi *handle,
                           Shishi_asn1 namenode,
                           const char *namefield,
                           Shishi_name_type name_type,
                           const char *name[]);

Set the given principal name field to the given name.

Parameters

handle

shishi handle as allocated by shishi_init().

 

namenode

ASN.1 structure with principal in namefield .

 

namefield

name of field in namenode containing principal name.

 

name_type

type of principal, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

name

null-terminated input array with principal name.

 

Returns

Returns SHISHI_OK if successful.


shishi_principal_set ()

int
shishi_principal_set (Shishi *handle,
                      Shishi_asn1 namenode,
                      const char *namefield,
                      const char *name);

Set principal name field in an ASN.1 structure to the given name.

Parameters

handle

shishi handle as allocated by shishi_init().

 

namenode

ASN.1 structure with principal in namefield .

 

namefield

name of field in namenode containing principal name.

 

name

null-terminated string with principal name in RFC 1964 form.

 

Returns

Returns SHISHI_OK if successful.


shishi_parse_name ()

int
shishi_parse_name (Shishi *handle,
                   const char *name,
                   char **principal,
                   char **realm);

Split principal name (e.g., "simon@JOSEFSSON.ORG") into two newly allocated strings, the principal ("simon"), and the realm ("JOSEFSSON.ORG"). If there is no realm part in name , realm is set to NULL.

Parameters

handle

Shishi library handle created by shishi_init().

 

name

input principal name string, e.g. imap/mail.gnu.org@GNU.ORG.

 

principal

newly allocated output string with principal name.

 

realm

newly allocated output string with realm name.

 

Returns

Returns SHISHI_INVALID_PRINCIPAL_NAME if name is NULL or ends with the escape character "\", and SHISHI_OK if successful.


shishi_derive_default_salt ()

int
shishi_derive_default_salt (Shishi *handle,
                            const char *name,
                            char **salt);

Derive the default salt from a principal. The default salt is the concatenation of the decoded realm and the principal.

Parameters

handle

shishi handle as allocated by shishi_init().

 

name

principal name of user.

 

salt

output variable with newly allocated salt string.

 

Returns

Return SHISHI_OK if successful.


shishi_server_for_local_service ()

char *
shishi_server_for_local_service (Shishi *handle,
                                 const char *service);

Construct a service principal (e.g., "imap/yxa.extuno.com") based on supplied service name (i.e., "imap") and the system's hostname as returned by hostname() (i.e., "yxa.extundo.com"). The string must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

service

null terminated string with name of service, e.g., "host".

 

Returns

Return newly allocated service name string.


shishi_ticket ()

Shishi_asn1
shishi_ticket (Shishi *handle);

This function creates a new ASN.1 Ticket, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the ticket or NULL on failure.


shishi_ticket_server ()

int
shishi_ticket_server (Shishi *handle,
                      Shishi_asn1 ticket,
                      char **server,
                      size_t *serverlen);

Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length serverlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

ticket

ASN.1 Ticket variable to get server name from.

 

server

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate serverlen ).

 

serverlen

pointer to length of server on output, excluding terminating zero. May be NULL (to only populate server ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_sname_set ()

int
shishi_ticket_sname_set (Shishi *handle,
                         Shishi_asn1 ticket,
                         Shishi_name_type name_type,
                         char *sname[]);

Set the server name field in the Ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

Ticket variable to set server name field in.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

sname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_srealmserver_set ()

int
shishi_ticket_srealmserver_set (Shishi *handle,
                                Shishi_asn1 ticket,
                                const char *realm,
                                const char *server);

shishi_ticket_set_server ()

int
shishi_ticket_set_server (Shishi *handle,
                          Shishi_asn1 ticket,
                          const char *server);

shishi_ticket_realm_get ()

int
shishi_ticket_realm_get (Shishi *handle,
                         Shishi_asn1 ticket,
                         char **realm,
                         size_t *realmlen);

Extract realm from ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

input variable with ticket info.

 

realm

output array with newly allocated name of realm in ticket.

 

realmlen

size of output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_realm_set ()

int
shishi_ticket_realm_set (Shishi *handle,
                         Shishi_asn1 ticket,
                         const char *realm);

Set the realm field in the Ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

input variable with ticket info.

 

realm

input array with name of realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_get_enc_part_etype ()

int
shishi_ticket_get_enc_part_etype (Shishi *handle,
                                  Shishi_asn1 ticket,
                                  int32_t *etype);

Extract Ticket.enc-part.etype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

Ticket variable to get value from.

 

etype

output variable that holds the value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_set_enc_part ()

int
shishi_ticket_set_enc_part (Shishi *handle,
                            Shishi_asn1 ticket,
                            int32_t etype,
                            uint32_t kvno,
                            const char *buf,
                            size_t buflen);

Set the encrypted enc-part field in the Ticket. The encrypted data is usually created by calling shishi_encrypt() on the DER encoded enc-part. To save time, you may want to use shishi_ticket_add_enc_part() instead, which calculates the encrypted data and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

Ticket to add enc-part field to.

 

etype

encryption type used to encrypt enc-part.

 

kvno

key version number.

 

buf

input array with encrypted enc-part.

 

buflen

size of input array with encrypted enc-part.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_add_enc_part ()

int
shishi_ticket_add_enc_part (Shishi *handle,
                            Shishi_asn1 ticket,
                            Shishi_key *key,
                            Shishi_asn1 encticketpart);

Encrypts DER encoded EncTicketPart using key and stores it in the Ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

Ticket to add enc-part field to.

 

key

key used to encrypt enc-part.

 

encticketpart

EncTicketPart to add.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ticket_decrypt ()

int
shishi_ticket_decrypt (Shishi *handle,
                       Shishi_asn1 ticket,
                       Shishi_key *key,
                       Shishi_asn1 *encticketpart);

shishi_tkt_ticket ()

Shishi_asn1
shishi_tkt_ticket (Shishi_tkt *tkt);

Get ASN.1 Ticket structure from ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns actual ticket.


shishi_tkt_ticket_set ()

void
shishi_tkt_ticket_set (Shishi_tkt *tkt,
                       Shishi_asn1 ticket);

Set the ASN.1 Ticket in the Ticket.

Parameters

tkt

input variable with ticket info.

 

ticket

ASN.1 Ticket to store in ticket.

 

shishi_tkt_kdcrep ()

Shishi_asn1
shishi_tkt_kdcrep (Shishi_tkt *tkt);

Get ASN.1 KDCRep structure from ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns KDC-REP information.


shishi_tkt_enckdcreppart ()

Shishi_asn1
shishi_tkt_enckdcreppart (Shishi_tkt *tkt);

Get ASN.1 EncKDCRepPart structure from ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns auxiliary ticket information.


shishi_tkt_enckdcreppart_set ()

void
shishi_tkt_enckdcreppart_set (Shishi_tkt *tkt,
                              Shishi_asn1 enckdcreppart);

Set the EncKDCRepPart in the Ticket.

Parameters

tkt

structure that holds information about Ticket exchange

 

enckdcreppart

EncKDCRepPart to store in Ticket.

 

shishi_tkt_encticketpart ()

Shishi_asn1
shishi_tkt_encticketpart (Shishi_tkt *tkt);

Get ASN.1 EncTicketPart structure from ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns EncTicketPart information.


shishi_tkt_encticketpart_set ()

void
shishi_tkt_encticketpart_set (Shishi_tkt *tkt,
                              Shishi_asn1 encticketpart);

Set the EncTicketPart in the Ticket.

Parameters

tkt

input variable with ticket info.

 

encticketpart

encticketpart to store in ticket.

 

shishi_tkt_key ()

Shishi_key *
shishi_tkt_key (Shishi_tkt *tkt);

Get key used in ticket, by looking first in EncKDCRepPart and then in EncTicketPart. If key is already populated, it is not extracted again.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns key extracted from EncKDCRepPart or EncTicketPart.


shishi_tkt_key_set ()

int
shishi_tkt_key_set (Shishi_tkt *tkt,
                    Shishi_key *key);

Set the key in the EncTicketPart.

Parameters

tkt

input variable with ticket info.

 

key

key to store in ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt ()

int
shishi_tkt (Shishi *handle,
            Shishi_tkt **tkt);

Create a new ticket handle.

Parameters

handle

shishi handle as allocated by shishi_init().

 

tkt

output variable with newly allocated ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt2 ()

Shishi_tkt *
shishi_tkt2 (Shishi *handle,
             Shishi_asn1 ticket,
             Shishi_asn1 enckdcreppart,
             Shishi_asn1 kdcrep);

Create a new ticket handle.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ticket

input variable with ticket.

 

enckdcreppart

input variable with auxiliary ticket information.

 

kdcrep

input variable with KDC-REP ticket information.

 

Returns

Returns new ticket handle, or NULL on error.


shishi_tkt_pretty_print ()

void
shishi_tkt_pretty_print (Shishi_tkt *tkt,
                         FILE *fh);

Print a human readable representation of a ticket to file handle.

Parameters

tkt

input variable with ticket info.

 

fh

file handle open for writing.

 

shishi_tkt_realm ()

int
shishi_tkt_realm (Shishi_tkt *tkt,
                  char **realm,
                  size_t *realmlen);

Extract realm of server in ticket.

Parameters

tkt

input variable with ticket info.

 

realm

pointer to newly allocated character array with realm name.

 

realmlen

length of newly allocated character array with realm name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_client ()

int
shishi_tkt_client (Shishi_tkt *tkt,
                   char **client,
                   size_t *clientlen);

Represent client principal name in Ticket KDC-REP as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

tkt

input variable with ticket info.

 

client

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_client_p ()

int
shishi_tkt_client_p (Shishi_tkt *tkt,
                     const char *client);

Determine if ticket is for specified client.

Parameters

tkt

input variable with ticket info.

 

client

client name of ticket.

 

Returns

Returns non-0 iff ticket is for specified client.


shishi_tkt_clientrealm ()

int
shishi_tkt_clientrealm (Shishi_tkt *tkt,
                        char **client,
                        size_t *clientlen);

Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

tkt

input variable with ticket info.

 

client

pointer to newly allocated zero terminated string containing principal name and realm. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_clientrealm_p ()

int
shishi_tkt_clientrealm_p (Shishi_tkt *tkt,
                          const char *client);

Determine if ticket is for specified client principal.

Parameters

tkt

input variable with ticket info.

 

client

principal name (client name and realm) of ticket.

 

Returns

Returns non-0 iff ticket is for specified client principal.


shishi_tkt_clientrealm_set ()

int
shishi_tkt_clientrealm_set (Shishi_tkt *tkt,
                            const char *realm,
                            const char *client);

shishi_tkt_serverrealm_set ()

int
shishi_tkt_serverrealm_set (Shishi_tkt *tkt,
                            const char *realm,
                            const char *server);

shishi_tkt_build ()

int
shishi_tkt_build (Shishi_tkt *tkt,
                  Shishi_key *key);

shishi_tkt_lastreq ()

int
shishi_tkt_lastreq (Shishi_tkt *tkt,
                    char **lrtime,
                    size_t *lrtimelen,
                    int32_t lrtype);

shishi_tkt_lastreqc ()

time_t
shishi_tkt_lastreqc (Shishi_tkt *tkt,
                     Shishi_lrtype lrtype);

Extract C time corresponding to given lastreq type field in the ticket.

Parameters

tkt

input variable with ticket info.

 

lrtype

lastreq type to extract, see Shishi_lrtype. E.g., SHISHI_LRTYPE_LAST_REQUEST.

 

Returns

Returns C time interpretation of the specified lastreq field, or (time_t) -1.


shishi_tkt_lastreq_pretty_print ()

void
shishi_tkt_lastreq_pretty_print (Shishi_tkt *tkt,
                                 FILE *fh);

Print a human readable representation of the various lastreq fields in the ticket (really EncKDCRepPart).

Parameters

tkt

input variable with ticket info.

 

fh

file handle open for writing.

 

shishi_tkt_authtime ()

int
shishi_tkt_authtime (Shishi_tkt *tkt,
                     char **authtime,
                     size_t *authtimelen);

shishi_tkt_authctime ()

time_t
shishi_tkt_authctime (Shishi_tkt *tkt);

Extract C time corresponding to the authtime field. The field holds the time when the original authentication took place that later resulted in this ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns C time interpretation of the endtime in ticket.


shishi_tkt_starttime ()

int
shishi_tkt_starttime (Shishi_tkt *tkt,
                      char **starttime,
                      size_t *starttimelen);

shishi_tkt_startctime ()

time_t
shishi_tkt_startctime (Shishi_tkt *tkt);

Extract C time corresponding to the starttime field. The field holds the time where the ticket start to be valid (typically in the past).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns C time interpretation of the endtime in ticket.


shishi_tkt_endtime ()

int
shishi_tkt_endtime (Shishi_tkt *tkt,
                    char **endtime,
                    size_t *endtimelen);

shishi_tkt_endctime ()

time_t
shishi_tkt_endctime (Shishi_tkt *tkt);

Extract C time corresponding to the endtime field. The field holds the time where the ticket stop being valid.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns C time interpretation of the endtime in ticket.


shishi_tkt_renew_till ()

int
shishi_tkt_renew_till (Shishi_tkt *tkt,
                       char **renewtilltime,
                       size_t *renewtilllen);

shishi_tkt_renew_tillc ()

time_t
shishi_tkt_renew_tillc (Shishi_tkt *tkt);

Extract C time corresponding to the renew-till field. The field holds the time where the ticket stop being valid for renewal.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns C time interpretation of the renew-till in ticket.


shishi_tkt_keytype ()

int
shishi_tkt_keytype (Shishi_tkt *tkt,
                    int32_t *etype);

Extract encryption type of key in ticket (really EncKDCRepPart).

Parameters

tkt

input variable with ticket info.

 

etype

pointer to encryption type that is set, see Shishi_etype.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_keytype_fast ()

int32_t
shishi_tkt_keytype_fast (Shishi_tkt *tkt);

Extract encryption type of key in ticket (really EncKDCRepPart).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns encryption type of session key in ticket (really EncKDCRepPart), or -1 on error.


shishi_tkt_keytype_p ()

int
shishi_tkt_keytype_p (Shishi_tkt *tkt,
                      int32_t etype);

Determine if key in ticket (really EncKDCRepPart) is of specified key type (really encryption type).

Parameters

tkt

input variable with ticket info.

 

etype

encryption type, see Shishi_etype.

 

Returns

Returns non-0 iff key in ticket is of specified encryption type.


shishi_tkt_server ()

int
shishi_tkt_server (Shishi_tkt *tkt,
                   char **server,
                   size_t *serverlen);

Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length serverlen does not include the terminating zero.

Parameters

tkt

input variable with ticket info.

 

server

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate serverlen ).

 

serverlen

pointer to length of server on output, excluding terminating zero. May be NULL (to only populate server ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_server_p ()

int
shishi_tkt_server_p (Shishi_tkt *tkt,
                     const char *server);

Determine if ticket is for specified server.

Parameters

tkt

input variable with ticket info.

 

server

server name of ticket.

 

Returns

Returns non-0 iff ticket is for specified server.


shishi_tkt_valid_at_time_p ()

int
shishi_tkt_valid_at_time_p (Shishi_tkt *tkt,
                            time_t now);

Determine if ticket is valid at a specific point in time.

Parameters

tkt

input variable with ticket info.

 

now

time to check for.

 

Returns

Returns non-0 iff ticket is valid (not expired and after starttime) at specified time.


shishi_tkt_valid_now_p ()

int
shishi_tkt_valid_now_p (Shishi_tkt *tkt);

Determine if ticket is valid now.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns 0 iff ticket is invalid (expired or not yet valid).


shishi_tkt_expired_p ()

int
shishi_tkt_expired_p (Shishi_tkt *tkt);

Determine if ticket has expired (i.e., endtime is in the past).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns 0 iff ticket has expired.


shishi_tkt_decrypt ()

int
shishi_tkt_decrypt (Shishi_tkt *tkt,
                    Shishi_key *key);

shishi_tkt_done ()

void
shishi_tkt_done (Shishi_tkt *tkt);

Deallocate resources associated with ticket. The ticket must not be used again after this call.

Parameters

tkt

input variable with ticket info.

 

shishi_tkt_flags ()

int
shishi_tkt_flags (Shishi_tkt *tkt,
                  uint32_t *flags);

Extract flags in ticket (i.e., EncKDCRepPart).

Parameters

tkt

input variable with ticket info.

 

flags

pointer to output integer with flags.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_flags_set ()

int
shishi_tkt_flags_set (Shishi_tkt *tkt,
                      uint32_t flags);

Set flags in ticket, i.e., both EncTicketPart and EncKDCRepPart. Note that this reset any already existing flags.

Parameters

tkt

input variable with ticket info.

 

flags

integer with flags to store in ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_flags_add ()

int
shishi_tkt_flags_add (Shishi_tkt *tkt,
                      uint32_t flag);

Add ticket flags to Ticket and EncKDCRepPart. This preserves all existing options.

Parameters

tkt

input variable with ticket info.

 

flag

integer with flags to store in ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkt_forwardable_p ()

int
shishi_tkt_forwardable_p (Shishi_tkt *tkt);

Determine if ticket is forwardable.

The FORWARDABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket-granting ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff forwardable flag is set in ticket.


shishi_tkt_forwarded_p ()

int
shishi_tkt_forwarded_p (Shishi_tkt *tkt);

Determine if ticket is forwarded.

The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non-FORWARDED tickets.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff forwarded flag is set in ticket.


shishi_tkt_proxiable_p ()

int
shishi_tkt_proxiable_p (Shishi_tkt *tkt);

Determine if ticket is proxiable.

The PROXIABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. When set, this flag tells the ticket-granting server that it is OK to issue a new ticket (but not a ticket-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket-granting ticket, and reset when requesting any other ticket.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff proxiable flag is set in ticket.


shishi_tkt_proxy_p ()

int
shishi_tkt_proxy_p (Shishi_tkt *tkt);

Determine if ticket is proxy ticket.

The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff proxy flag is set in ticket.


shishi_tkt_may_postdate_p ()

int
shishi_tkt_may_postdate_p (Shishi_tkt *tkt);

Determine if ticket may be used to grant postdated tickets.

The MAY-POSTDATE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. This flag MUST be set in a ticket-granting ticket in order to issue a postdated ticket based on the presented ticket. It is reset by default; it MAY be requested by a client by setting the ALLOW- POSTDATE option in the KRB_AS_REQ message. This flag does not allow a client to obtain a postdated ticket-granting ticket; postdated ticket-granting tickets can only by obtained by requesting the postdating in the KRB_AS_REQ message. The life (endtime-starttime) of a postdated ticket will be the remaining life of the ticket-granting ticket at the time of the request, unless the RENEWABLE option is also set, in which case it can be the full life (endtime-starttime) of the ticket-granting ticket. The KDC MAY limit how far in the future a ticket may be postdated.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff may-postdate flag is set in ticket.


shishi_tkt_postdated_p ()

int
shishi_tkt_postdated_p (Shishi_tkt *tkt);

Determine if ticket is postdated.

The POSTDATED flag indicates that a ticket has been postdated. The application server can check the authtime field in the ticket to see when the original authentication occurred. Some services MAY choose to reject postdated tickets, or they may only accept them within a certain period after the original authentication. When the KDC issues a POSTDATED ticket, it will also be marked as INVALID, so that the application client MUST present the ticket to the KDC to be validated before use.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff postdated flag is set in ticket.


shishi_tkt_invalid_p ()

int
shishi_tkt_invalid_p (Shishi_tkt *tkt);

Determine if ticket is invalid.

The INVALID flag indicates that a ticket is invalid. Application servers MUST reject tickets which have this flag set. A postdated ticket will be issued in this form. Invalid tickets MUST be validated by the KDC before use, by presenting them to the KDC in a TGS request with the VALIDATE option specified. The KDC will only validate tickets after their starttime has passed. The validation is required so that postdated tickets which have been stolen before their starttime can be rendered permanently invalid (through a hot-list mechanism).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff invalid flag is set in ticket.


shishi_tkt_renewable_p ()

int
shishi_tkt_renewable_p (Shishi_tkt *tkt);

Determine if ticket is renewable.

The RENEWABLE flag in a ticket is normally only interpreted by the ticket-granting service (discussed below in section 3.3). It can usually be ignored by application servers. However, some particularly careful application servers MAY disallow renewable tickets.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff renewable flag is set in ticket.


shishi_tkt_initial_p ()

int
shishi_tkt_initial_p (Shishi_tkt *tkt);

Determine if ticket was issued using AS exchange.

The INITIAL flag indicates that a ticket was issued using the AS protocol, rather than issued based on a ticket-granting ticket. Application servers that want to require the demonstrated knowledge of a client's secret key (e.g. a password-changing program) can insist that this flag be set in any tickets they accept, and thus be assured that the client's key was recently presented to the application client.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff initial flag is set in ticket.


shishi_tkt_pre_authent_p ()

int
shishi_tkt_pre_authent_p (Shishi_tkt *tkt);

Determine if ticket was pre-authenticated.

The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff pre-authent flag is set in ticket.


shishi_tkt_hw_authent_p ()

int
shishi_tkt_hw_authent_p (Shishi_tkt *tkt);

Determine if ticket is authenticated using a hardware token.

The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket).

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff hw-authent flag is set in ticket.


shishi_tkt_transited_policy_checked_p ()

int
shishi_tkt_transited_policy_checked_p (Shishi_tkt *tkt);

Determine if ticket has been policy checked for transit.

The application server is ultimately responsible for accepting or rejecting authentication and SHOULD check that only suitably trusted KDCs are relied upon to authenticate a principal. The transited field in the ticket identifies which realms (and thus which KDCs) were involved in the authentication process and an application server would normally check this field. If any of these are untrusted to authenticate the indicated client principal (probably determined by a realm-based policy), the authentication attempt MUST be rejected. The presence of trusted KDCs in this list does not provide any guarantee; an untrusted KDC may have fabricated the list.

While the end server ultimately decides whether authentication is valid, the KDC for the end server's realm MAY apply a realm specific policy for validating the transited field and accepting credentials for cross-realm authentication. When the KDC applies such checks and accepts such cross-realm authentication it will set the TRANSITED-POLICY-CHECKED flag in the service tickets it issues based on the cross-realm TGT. A client MAY request that the KDCs not check the transited field by setting the DISABLE-TRANSITED-CHECK flag. KDCs are encouraged but not required to honor this flag.

Application servers MUST either do the transited-realm checks themselves, or reject cross-realm tickets without TRANSITED-POLICY- CHECKED set.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff transited-policy-checked flag is set in ticket.


shishi_tkt_ok_as_delegate_p ()

int
shishi_tkt_ok_as_delegate_p (Shishi_tkt *tkt);

Determine if ticket is ok as delegated ticket.

The copy of the ticket flags in the encrypted part of the KDC reply may have the OK-AS-DELEGATE flag set to indicates to the client that the server specified in the ticket has been determined by policy of the realm to be a suitable recipient of delegation. A client can use the presence of this flag to help it make a decision whether to delegate credentials (either grant a proxy or a forwarded ticket- granting ticket) to this server. It is acceptable to ignore the value of this flag. When setting this flag, an administrator should consider the security and placement of the server on which the service will run, as well as whether the service requires the use of delegated credentials.

Parameters

tkt

input variable with ticket info.

 

Returns

Returns non-0 iff ok-as-delegate flag is set in ticket.


shishi_tkts_default_file_guess ()

char *
shishi_tkts_default_file_guess (Shishi *handle);

Guesses the default ticket filename; it is $SHISHI_TICKETS, $SHISHI_HOME/tickets, or $HOME/.shishi/tickets.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns default tkts filename as a string that has to be deallocated with free() by the caller.


shishi_tkts_default_file ()

const char *
shishi_tkts_default_file (Shishi *handle);

Get filename of default ticket set.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default ticket set filename used in the library. The string is not a copy, so don't modify or deallocate it.


shishi_tkts_default_file_set ()

void
shishi_tkts_default_file_set (Shishi *handle,
                              const char *tktsfile);

Set the default ticket set filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

tktsfile

string with new default tkts file name, or NULL to reset to default.

 

shishi_tkts_default ()

Shishi_tkts *
shishi_tkts_default (Shishi *handle);

Get the default ticket set for library handle.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Return the handle global ticket set.


shishi_tkts_default_to_file ()

int
shishi_tkts_default_to_file (Shishi_tkts *tkts);

shishi_tkts ()

int
shishi_tkts (Shishi *handle,
             Shishi_tkts **tkts);

Get a new ticket set handle.

Parameters

handle

shishi handle as allocated by shishi_init().

 

tkts

output pointer to newly allocated tkts handle.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_nth ()

Shishi_tkt *
shishi_tkts_nth (Shishi_tkts *tkts,
                 int ticketno);

Get the n:th ticket in ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

ticketno

integer indicating requested ticket in ticket set.

 

Returns

Returns a ticket handle to the ticketno:th ticket in the ticket set, or NULL if ticket set is invalid or ticketno is out of bounds. The first ticket is ticketno 0, the second ticketno 1, and so on.


shishi_tkts_size ()

int
shishi_tkts_size (Shishi_tkts *tkts);

Get size of ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

Returns

Returns number of tickets stored in ticket set.


shishi_tkts_add ()

int
shishi_tkts_add (Shishi_tkts *tkts,
                 Shishi_tkt *tkt);

Add a ticket to the ticket set. Only the pointer is stored, so if you modify tkt , the ticket in the ticket set will also be modified.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

tkt

ticket to be added to ticket set.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_new ()

int
shishi_tkts_new (Shishi_tkts *tkts,
                 Shishi_asn1 ticket,
                 Shishi_asn1 enckdcreppart,
                 Shishi_asn1 kdcrep);

Allocate a new ticket and add it to the ticket set.

Note that ticket , enckdcreppart and kdcrep are stored by reference, so you must not de-allocate them before the ticket is removed from the ticket set and de-allocated.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

ticket

input ticket variable.

 

enckdcreppart

input ticket detail variable.

 

kdcrep

input KDC-REP variable.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_remove ()

int
shishi_tkts_remove (Shishi_tkts *tkts,
                    int ticketno);

Remove a ticket, indexed by ticketno , in ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

ticketno

ticket number of ticket in the set to remove. The first ticket is ticket number 0.

 

Returns

SHISHI_OK if successful or if ticketno larger than size of ticket set.


shishi_tkts_expire ()

int
shishi_tkts_expire (Shishi_tkts *tkts);

Remove expired tickets from ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_print_for_service ()

int
shishi_tkts_print_for_service (Shishi_tkts *tkts,
                               FILE *fh,
                               const char *service);

Print description of tickets for specified service to file descriptor. If service is NULL, all tickets are printed.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

fh

file descriptor to print to.

 

service

service to limit tickets printed to, or NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_print ()

int
shishi_tkts_print (Shishi_tkts *tkts,
                   FILE *fh);

Print description of all tickets to file descriptor.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

fh

file descriptor to print to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_write ()

int
shishi_tkts_write (Shishi_tkts *tkts,
                   FILE *fh);

Write tickets in set to file descriptor.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

fh

file descriptor to write tickets to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_to_file ()

int
shishi_tkts_to_file (Shishi_tkts *tkts,
                     const char *filename);

Write tickets in set to file.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

filename

filename to write tickets to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_read ()

int
shishi_tkts_read (Shishi_tkts *tkts,
                  FILE *fh);

Read tickets from file descriptor and add them to the ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

fh

file descriptor to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_from_file ()

int
shishi_tkts_from_file (Shishi_tkts *tkts,
                       const char *filename);

Read tickets from file and add them to the ticket set.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

filename

filename to read tickets from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tkts_done ()

void
shishi_tkts_done (Shishi_tkts **tkts);

Deallocates all resources associated with ticket set. The ticket set handle must not be used in calls to other shishi_tkts_*() functions after this.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

shishi_tkt_match_p ()

int
shishi_tkt_match_p (Shishi_tkt *tkt,
                    Shishi_tkts_hint *hint);

Test if a ticket matches specified hints.

Parameters

tkt

ticket to test hints on.

 

hint

structure with characteristics of ticket to be found.

 

Returns

Returns 0 iff ticket fails to match given criteria.


shishi_tkts_find ()

Shishi_tkt *
shishi_tkts_find (Shishi_tkts *tkts,
                  Shishi_tkts_hint *hint);

Search the ticketset sequentially (from ticket number 0 through all tickets in the set) for a ticket that fits the given characteristics. If a ticket is found, the hint->startpos field is updated to point to the next ticket in the set, so this function can be called repeatedly with the same hint argument in order to find all tickets matching a certain criterium. Note that if tickets are added to, or removed from, the ticketset during a query with the same hint argument, the hint->startpos field must be updated appropriately.

Here is how you would typically use this function:

Shishi_tkts_hint hint;

Shishi_tkt tkt;

memset(&hint, 0, sizeof(hint));

hint.server = "imap/mail.example.org";

tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint);

if (!tkt)

printf("No ticket found...\n");

else

do_something_with_ticket (tkt);

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

hint

structure with characteristics of ticket to be found.

 

Returns

Returns a ticket if found, or NULL if no further matching tickets could be found.


shishi_tkts_find_for_clientserver ()

Shishi_tkt *
shishi_tkts_find_for_clientserver (Shishi_tkts *tkts,
                                   const char *client,
                                   const char *server);

Short-hand function for searching the ticket set for a ticket for the given client and server. See shishi_tkts_find().

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

client

client name to find ticket for.

 

server

server name to find ticket for.

 

Returns

Returns a ticket if found, or NULL.


shishi_tkts_find_for_server ()

Shishi_tkt *
shishi_tkts_find_for_server (Shishi_tkts *tkts,
                             const char *server);

Short-hand function for searching the ticket set for a ticket for the given server using the default client principal. See shishi_tkts_find_for_clientserver() and shishi_tkts_find().

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

server

server name to find ticket for.

 

Returns

Returns a ticket if found, or NULL.


shishi_tkts_get ()

Shishi_tkt *
shishi_tkts_get (Shishi_tkts *tkts,
                 Shishi_tkts_hint *hint);

Get a ticket matching given characteristics. This function first looks in the ticket set for a ticket, then tries to find a suitable TGT, possibly via an AS exchange, using shishi_tkts_get_tgt(), and then uses that TGT in a TGS exchange to get the ticket.

Currently this function does not implement cross realm logic.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

hint

structure with characteristics of ticket to be found.

 

Returns

Returns a ticket if found, or NULL if this function is unable to get the ticket.


shishi_tkts_get_tgt ()

Shishi_tkt *
shishi_tkts_get_tgt (Shishi_tkts *tkts,
                     Shishi_tkts_hint *hint);

Get a ticket granting ticket (TGT) suitable for acquiring ticket matching the hint. I.e., get a TGT for the server realm in the hint structure (hint->serverrealm), or the default realm if the serverrealm field is NULL. Can result in AS exchange.

Currently this function do not implement cross realm logic.

This function is used by shishi_tkts_get(), which is probably what you really want to use unless you have special needs.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

hint

structure with characteristics of ticket to begot.

 

Returns

Returns a ticket granting ticket if successful, or NULL if this function is unable to acquire on.


shishi_tkts_get_tgs ()

Shishi_tkt *
shishi_tkts_get_tgs (Shishi_tkts *tkts,
                     Shishi_tkts_hint *hint,
                     Shishi_tkt *tgt);

Get a ticket via TGS exchange using specified ticket granting ticket.

This function is used by shishi_tkts_get(), which is probably what you really want to use unless you have special needs.

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

hint

structure with characteristics of ticket to begot.

 

tgt

ticket granting ticket to use.

 

Returns

Returns a ticket if successful, or NULL if this function is unable to acquire on.


shishi_tkts_get_for_clientserver ()

Shishi_tkt *
shishi_tkts_get_for_clientserver (Shishi_tkts *tkts,
                                  const char *client,
                                  const char *server);

Short-hand function for getting a ticket for the given client and server. See shishi_tkts_get().

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

client

client name to get ticket for.

 

server

server name to get ticket for.

 

Returns

Returns a ticket if found, or NULL.


shishi_tkts_get_for_server ()

Shishi_tkt *
shishi_tkts_get_for_server (Shishi_tkts *tkts,
                            const char *server);

Short-hand function for getting a ticket to the given server and for the default principal client. See shishi_tkts_get().

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

server

server name to get ticket for.

 

Returns

Returns a ticket if found, or NULL.


shishi_tkts_get_for_localservicepasswd ()

Shishi_tkt *
shishi_tkts_get_for_localservicepasswd
                               (Shishi_tkts *tkts,
                                const char *service,
                                const char *passwd);

Short-hand function for getting a ticket to the given local service, and for the default principal client. The latter's password is given as argument. See shishi_tkts_get().

Parameters

tkts

ticket set handle as allocated by shishi_tkts().

 

service

service name to get ticket for.

 

passwd

password for the default client principal.

 

Returns

Returns a ticket if found, or NULL otherwise.


shishi_tkts_default_ccache_guess ()

char *
shishi_tkts_default_ccache_guess (Shishi *handle);

Guesses the default ccache ticket filename; it is the contents of the environment variable KRB5CCNAME or /tmp/krb5cc_UID where UID is the user's identity in decimal, as returned by getuid().

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns default ccache filename as a string that has to be deallocated with free() by the caller.


shishi_tkts_default_ccache ()

const char *
shishi_tkts_default_ccache (Shishi *handle);

Get filename of default ccache filename.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default ccache filename used in the library. The string is not a copy, so don't modify or deallocate it.


shishi_tkts_default_ccache_set ()

void
shishi_tkts_default_ccache_set (Shishi *handle,
                                const char *ccache);

Set the default ccache filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

ccache

string with new default ccache filename, or NULL to reset to default.

 

shishi_tkts_add_ccache_mem ()

int
shishi_tkts_add_ccache_mem (Shishi *handle,
                            const char *data,
                            size_t len,
                            Shishi_tkts *tkts);

Read tickets from a ccache data structure, and add them to the ticket set.

The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

data

constant memory buffer with ccache of len size.

 

len

size of memory buffer with ccache data.

 

tkts

allocated key set to store tickets in.

 

Returns

Returns SHISHI_CCACHE_ERROR if the data does not represent a valid ccache structure, and SHISHI_OK on success.


shishi_tkts_add_ccache_file ()

int
shishi_tkts_add_ccache_file (Shishi *handle,
                             const char *filename,
                             Shishi_tkts *tkts);

Read tickets from a ccache data structure, and add them to the ticket set.

The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

filename

name of file to read.

 

tkts

allocated ticket set to store tickets in.

 

Returns

Returns SHISHI_IO_ERROR if the file cannot be read, SHISHI_CCACHE_ERROR if the data cannot be parsed as a valid ccache structure, and SHISHI_OK on success.


shishi_tkts_from_ccache_mem ()

int
shishi_tkts_from_ccache_mem (Shishi *handle,
                             const char *data,
                             size_t len,
                             Shishi_tkts **outtkts);

Read tickets from a ccache data structure, and add them to the ticket set.

The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

data

constant memory buffer with ccache of len size.

 

len

size of memory buffer with ccache data.

 

outtkts

pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes.

 

Returns

Returns SHISHI_CCACHE_ERROR if the data does not represent a valid ccache structure, and SHISHI_OK on success.


shishi_tkts_from_ccache_file ()

int
shishi_tkts_from_ccache_file (Shishi *handle,
                              const char *filename,
                              Shishi_tkts **outtkts);

Read tickets from a ccache data structure, and add them to the ticket set.

The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

filename

name of file to read.

 

outtkts

pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes.

 

Returns

Returns SHISHI_IO_ERROR if the file cannot be read, SHISHI_CCACHE_ERROR if the data cannot be parsed as a valid ccache structure, and SHISHI_OK on success.


shishi_enckdcreppart_print ()

int
shishi_enckdcreppart_print (Shishi *handle,
                            FILE *fh,
                            Shishi_asn1 enckdcreppart);

shishi_enckdcreppart_save ()

int
shishi_enckdcreppart_save (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 enckdcreppart);

shishi_enckdcreppart_parse ()

int
shishi_enckdcreppart_parse (Shishi *handle,
                            FILE *fh,
                            Shishi_asn1 *enckdcreppart);

shishi_enckdcreppart_read ()

int
shishi_enckdcreppart_read (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 *enckdcreppart);

shishi_ticket_save ()

int
shishi_ticket_save (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 ticket);

shishi_ticket_print ()

int
shishi_ticket_print (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 ticket);

shishi_kdc_print ()

int
shishi_kdc_print (Shishi *handle,
                  FILE *fh,
                  Shishi_asn1 asreq,
                  Shishi_asn1 asrep,
                  Shishi_asn1 encasreppart);

shishi_ticket_parse ()

int
shishi_ticket_parse (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 *ticket);

shishi_ticket_read ()

int
shishi_ticket_read (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 *ticket);

shishi_etype_info_print ()

int
shishi_etype_info_print (Shishi *handle,
                         FILE *fh,
                         Shishi_asn1 etypeinfo);

shishi_etype_info2_print ()

int
shishi_etype_info2_print (Shishi *handle,
                          FILE *fh,
                          Shishi_asn1 etypeinfo2);

shishi_padata_print ()

int
shishi_padata_print (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 padata);

shishi_methoddata_print ()

int
shishi_methoddata_print (Shishi *handle,
                         FILE *fh,
                         Shishi_asn1 methoddata);

shishi_authenticator ()

Shishi_asn1
shishi_authenticator (Shishi *handle);

This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the authenticator or NULL on failure.


shishi_authenticator_set_crealm ()

int
shishi_authenticator_set_crealm (Shishi *handle,
                                 Shishi_asn1 authenticator,
                                 const char *crealm);

Set realm field in authenticator to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

crealm

input array with realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_set_cname ()

int
shishi_authenticator_set_cname (Shishi *handle,
                                Shishi_asn1 authenticator,
                                Shishi_name_type name_type,
                                const char *cname[]);

Set principal field in authenticator to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

cname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_client_set ()

int
shishi_authenticator_client_set (Shishi *handle,
                                 Shishi_asn1 authenticator,
                                 const char *client);

Set the client name field in the Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator to set client name field in.

 

client

zero-terminated string with principal name on RFC 1964 form.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_ctime ()

int
shishi_authenticator_ctime (Shishi *handle,
                            Shishi_asn1 authenticator,
                            char **t);

Extract client time from Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator as allocated by shishi_authenticator().

 

t

newly allocated zero-terminated character array with client time.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_ctime_set ()

int
shishi_authenticator_ctime_set (Shishi *handle,
                                Shishi_asn1 authenticator,
                                const char *t);

Store client time in Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator as allocated by shishi_authenticator().

 

t

string with generalized time value to store in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_cusec_get ()

int
shishi_authenticator_cusec_get (Shishi *handle,
                                Shishi_asn1 authenticator,
                                uint32_t *cusec);

Extract client microseconds field from Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator as allocated by shishi_authenticator().

 

cusec

output integer with client microseconds field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_cusec_set ()

int
shishi_authenticator_cusec_set (Shishi *handle,
                                Shishi_asn1 authenticator,
                                uint32_t cusec);

Set the cusec field in the Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

cusec

client microseconds to set in authenticator, 0-999999.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_seqnumber_get ()

int
shishi_authenticator_seqnumber_get (Shishi *handle,
                                    Shishi_asn1 authenticator,
                                    uint32_t *seqnumber);

Extract sequence number field from Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

seqnumber

output integer with sequence number field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_seqnumber_remove ()

int
shishi_authenticator_seqnumber_remove (Shishi *handle,
                                       Shishi_asn1 authenticator);

Remove sequence number field in Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_seqnumber_set ()

int
shishi_authenticator_seqnumber_set (Shishi *handle,
                                    Shishi_asn1 authenticator,
                                    uint32_t seqnumber);

Store sequence number field in Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

seqnumber

integer with sequence number field to store in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_client ()

int
shishi_authenticator_client (Shishi *handle,
                             Shishi_asn1 authenticator,
                             char **client,
                             size_t *clientlen);

Represent client principal name in Authenticator as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

authenticator

Authenticator variable to get client name from.

 

client

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_clientrealm ()

int
shishi_authenticator_clientrealm (Shishi *handle,
                                  Shishi_asn1 authenticator,
                                  char **client,
                                  size_t *clientlen);

Convert cname and realm fields from Authenticator to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

authenticator

Authenticator variable to get client name and realm from.

 

client

pointer to newly allocated zero terminated string containing principal name and realm. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_remove_cksum ()

int
shishi_authenticator_remove_cksum (Shishi *handle,
                                   Shishi_asn1 authenticator);

shishi_authenticator_cksum ()

int
shishi_authenticator_cksum (Shishi *handle,
                            Shishi_asn1 authenticator,
                            int32_t *cksumtype,
                            char **cksum,
                            size_t *cksumlen);

Read checksum value from authenticator. cksum is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

cksumtype

output checksum type.

 

cksum

newly allocated output checksum data from authenticator.

 

cksumlen

on output, actual size of allocated output checksum data buffer.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_set_cksum ()

int
shishi_authenticator_set_cksum (Shishi *handle,
                                Shishi_asn1 authenticator,
                                int cksumtype,
                                char *cksum,
                                size_t cksumlen);

Store checksum value in authenticator. A checksum is usually created by calling shishi_checksum() on some application specific data using the key from the ticket that is being used. To save time, you may want to use shishi_authenticator_add_cksum() instead, which calculates the checksum and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

cksumtype

input checksum type to store in authenticator.

 

cksum

input checksum data to store in authenticator.

 

cksumlen

size of input checksum data to store in authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_cksum ()

int
shishi_authenticator_add_cksum (Shishi *handle,
                                Shishi_asn1 authenticator,
                                Shishi_key *key,
                                int keyusage,
                                char *data,
                                size_t datalen);

Calculate checksum for data and store it in the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

key

key to to use for encryption.

 

keyusage

cryptographic key usage value to use in encryption.

 

data

input array with data to calculate checksum on.

 

datalen

size of input array with data to calculate checksum on.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_cksum_type ()

int
shishi_authenticator_add_cksum_type (Shishi *handle,
                                     Shishi_asn1 authenticator,
                                     Shishi_key *key,
                                     int keyusage,
                                     int cksumtype,
                                     char *data,
                                     size_t datalen);

Calculate checksum for data and store it in the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

key

key to to use for encryption.

 

keyusage

cryptographic key usage value to use in encryption.

 

cksumtype

checksum to type to calculate checksum.

 

data

input array with data to calculate checksum on.

 

datalen

size of input array with data to calculate checksum on.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_remove_subkey ()

int
shishi_authenticator_remove_subkey (Shishi *handle,
                                    Shishi_asn1 authenticator);

Remove subkey from the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_subkey ()

Shishi_asn1
shishi_authenticator_subkey (Shishi *handle);

This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. It adds a random subkey.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the authenticator or NULL on failure.


shishi_authenticator_get_subkey ()

int
shishi_authenticator_get_subkey (Shishi *handle,
                                 Shishi_asn1 authenticator,
                                 Shishi_key **subkey);

Read subkey value from authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

subkey

output newly allocated subkey from authenticator.

 

Returns

Returns SHISHI_OK if successful or SHISHI_ASN1_NO_ELEMENT if subkey is not present.


shishi_authenticator_set_subkey ()

int
shishi_authenticator_set_subkey (Shishi *handle,
                                 Shishi_asn1 authenticator,
                                 int32_t subkeytype,
                                 const char *subkey,
                                 size_t subkeylen);

Store subkey value in authenticator. A subkey is usually created by calling shishi_key_random() using the default encryption type of the key from the ticket that is being used. To save time, you may want to use shishi_authenticator_add_subkey() instead, which calculates the subkey and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

subkeytype

input subkey type to store in authenticator.

 

subkey

input subkey data to store in authenticator.

 

subkeylen

size of input subkey data to store in authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_random_subkey ()

int
shishi_authenticator_add_random_subkey
                               (Shishi *handle,
                                Shishi_asn1 authenticator);

Generate random subkey, of the default encryption type from configuration, and store it in the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_random_subkey_etype ()

int
shishi_authenticator_add_random_subkey_etype
                               (Shishi *handle,
                                Shishi_asn1 authenticator,
                                int etype);

Generate random subkey of indicated encryption type, and store it in the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

etype

encryption type of random key to generate.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_subkey ()

int
shishi_authenticator_add_subkey (Shishi *handle,
                                 Shishi_asn1 authenticator,
                                 Shishi_key *subkey);

Store subkey in the authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

subkey

subkey to add to authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_clear_authorizationdata ()

int
shishi_authenticator_clear_authorizationdata
                               (Shishi *handle,
                                Shishi_asn1 authenticator);

Remove the authorization-data field from Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_add_authorizationdata ()

int
shishi_authenticator_add_authorizationdata
                               (Shishi *handle,
                                Shishi_asn1 authenticator,
                                int32_t adtype,
                                const char *addata,
                                size_t addatalen);

Add authorization data to authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

adtype

input authorization data type to add.

 

addata

input authorization data to add.

 

addatalen

size of input authorization data to add.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_authorizationdata ()

int
shishi_authenticator_authorizationdata
                               (Shishi *handle,
                                Shishi_asn1 authenticator,
                                int32_t *adtype,
                                char **addata,
                                size_t *addatalen,
                                size_t nth);

Extract n:th authorization data from authenticator. The first field is 1.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

authenticator as allocated by shishi_authenticator().

 

adtype

output authorization data type.

 

addata

newly allocated output authorization data.

 

addatalen

on output, actual size of newly allocated authorization data.

 

nth

element number of authorization-data to extract.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_read ()

int
shishi_authenticator_read (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 *authenticator);

Read DER encoded authenticator from file and populate given authenticator variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

authenticator

output variable with newly allocated authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_parse ()

int
shishi_authenticator_parse (Shishi *handle,
                            FILE *fh,
                            Shishi_asn1 *authenticator);

Read ASCII armored DER encoded authenticator from file and populate given authenticator variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

authenticator

output variable with newly allocated authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_from_file ()

int
shishi_authenticator_from_file (Shishi *handle,
                                Shishi_asn1 *authenticator,
                                int filetype,
                                const char *filename);

Read Authenticator from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

output variable with newly allocated Authenticator.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_print ()

int
shishi_authenticator_print (Shishi *handle,
                            FILE *fh,
                            Shishi_asn1 authenticator);

Print ASCII armored DER encoding of authenticator to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_to_file ()

int
shishi_authenticator_to_file (Shishi *handle,
                              Shishi_asn1 authenticator,
                              int filetype,
                              const char *filename);

Write Authenticator to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

authenticator

Authenticator to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_authenticator_save ()

int
shishi_authenticator_save (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 authenticator);

Save DER encoding of authenticator to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_as ()

int
shishi_as (Shishi *handle,
           Shishi_as **as);

Allocate a new AS exchange variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

as

holds pointer to newly allocate Shishi_as structure.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_done ()

void
shishi_as_done (Shishi_as *as);

Deallocate resources associated with AS exchange. This should be called by the application when it no longer need to utilize the AS exchange handle.

Parameters

as

structure that holds information about AS exchange

 

shishi_as_req ()

Shishi_asn1
shishi_as_req (Shishi_as *as);

Get ASN.1 AS-REQ structure from AS exchange.

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns the generated AS-REQ packet from the AS exchange, or NULL if not yet set or an error occured.


shishi_as_req_build ()

int
shishi_as_req_build (Shishi_as *as);

Possibly remove unset fields (e.g., rtime).

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_req_set ()

void
shishi_as_req_set (Shishi_as *as,
                   Shishi_asn1 asreq);

Set the AS-REQ in the AS exchange.

Parameters

as

structure that holds information about AS exchange

 

asreq

asreq to store in AS.

 

shishi_as_req_der ()

int
shishi_as_req_der (Shishi_as *as,
                   char **out,
                   size_t *outlen);

DER encode AS-REQ. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

as

structure that holds information about AS exchange

 

out

output array with newly allocated DER encoding of AS-REQ.

 

outlen

length of output array with DER encoding of AS-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_req_der_set ()

int
shishi_as_req_der_set (Shishi_as *as,
                       char *der,
                       size_t derlen);

DER decode AS-REQ and set it AS exchange. If decoding fails, the AS-REQ in the AS exchange remains.

Parameters

as

structure that holds information about AS exchange

 

der

input array with DER encoded AP-REQ.

 

derlen

length of input array with DER encoded AP-REQ.

 

Returns

Returns SHISHI_OK.


shishi_as_rep ()

Shishi_asn1
shishi_as_rep (Shishi_as *as);

Get ASN.1 AS-REP structure from AS exchange.

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns the received AS-REP packet from the AS exchange, or NULL if not yet set or an error occured.


shishi_as_rep_set ()

void
shishi_as_rep_set (Shishi_as *as,
                   Shishi_asn1 asrep);

Set the AS-REP in the AS exchange.

Parameters

as

structure that holds information about AS exchange

 

asrep

asrep to store in AS.

 

shishi_as_rep_build ()

int
shishi_as_rep_build (Shishi_as *as,
                     Shishi_key *key);

Build AS-REP.

Parameters

as

structure that holds information about AS exchange

 

key

user's key, used to encrypt the encrypted part of the AS-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_rep_der ()

int
shishi_as_rep_der (Shishi_as *as,
                   char **out,
                   size_t *outlen);

DER encode AS-REP. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

as

structure that holds information about AS exchange

 

out

output array with newly allocated DER encoding of AS-REP.

 

outlen

length of output array with DER encoding of AS-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_rep_der_set ()

int
shishi_as_rep_der_set (Shishi_as *as,
                       char *der,
                       size_t derlen);

DER decode AS-REP and set it AS exchange. If decoding fails, the AS-REP in the AS exchange remains.

Parameters

as

structure that holds information about AS exchange

 

der

input array with DER encoded AP-REP.

 

derlen

length of input array with DER encoded AP-REP.

 

Returns

Returns SHISHI_OK.


shishi_as_krberror ()

Shishi_asn1
shishi_as_krberror (Shishi_as *as);

Get ASN.1 KRB-ERROR structure from AS exchange.

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns the received KRB-ERROR packet from the AS exchange, or NULL if not yet set or an error occured.


shishi_as_krberror_der ()

int
shishi_as_krberror_der (Shishi_as *as,
                        char **out,
                        size_t *outlen);

DER encode KRB-ERROR. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

as

structure that holds information about AS exchange

 

out

output array with newly allocated DER encoding of KRB-ERROR.

 

outlen

length of output array with DER encoding of KRB-ERROR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_krberror_set ()

void
shishi_as_krberror_set (Shishi_as *as,
                        Shishi_asn1 krberror);

Set the KRB-ERROR in the AS exchange.

Parameters

as

structure that holds information about AS exchange

 

krberror

krberror to store in AS.

 

shishi_as_tkt ()

Shishi_tkt *
shishi_as_tkt (Shishi_as *as);

Get Ticket in AS exchange.

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns the newly acquired tkt from the AS exchange, or NULL if not yet set or an error occured.


shishi_as_tkt_set ()

void
shishi_as_tkt_set (Shishi_as *as,
                   Shishi_tkt *tkt);

Set the Tkt in the AS exchange.

Parameters

as

structure that holds information about AS exchange

 

tkt

tkt to store in AS.

 

shishi_as_sendrecv ()

int
shishi_as_sendrecv (Shishi_as *as);

Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket.

Parameters

as

structure that holds information about AS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_sendrecv_hint ()

int
shishi_as_sendrecv_hint (Shishi_as *as,
                         Shishi_tkts_hint *hint);

Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. The hint structure can be used to set, e.g., parameters for TLS authentication.

Parameters

as

structure that holds information about AS exchange

 

hint

additional parameters that modify connection behaviour, or NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_as_rep_process ()

int
shishi_as_rep_process (Shishi_as *as,
                       Shishi_key *key,
                       const char *password);

Process new AS-REP and set ticket. The key is used to decrypt the AP-REP. If both key and password is NULL, the user is queried for it.

Parameters

as

structure that holds information about AS exchange

 

key

user's key, used to encrypt the encrypted part of the AS-REP.

 

password

user's password, used if key is NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs ()

int
shishi_tgs (Shishi *handle,
            Shishi_tgs **tgs);

Allocate a new TGS exchange variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

tgs

holds pointer to newly allocate Shishi_tgs structure.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_done ()

void
shishi_tgs_done (Shishi_tgs *tgs);

Deallocate resources associated with TGS exchange. This should be called by the application when it no longer need to utilize the TGS exchange handle.

Parameters

tgs

structure that holds information about AS exchange

 

shishi_tgs_tgtkt ()

Shishi_tkt *
shishi_tgs_tgtkt (Shishi_tgs *tgs);

Get Ticket-granting-ticket from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the ticket-granting-ticket used in the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_tgtkt_set ()

void
shishi_tgs_tgtkt_set (Shishi_tgs *tgs,
                      Shishi_tkt *tgtkt);

Set the Ticket in the TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

tgtkt

ticket granting ticket to store in TGS.

 

shishi_tgs_ap ()

Shishi_ap *
shishi_tgs_ap (Shishi_tgs *tgs);

Get the AP from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the AP exchange (part of TGS-REQ) from the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_req ()

Shishi_asn1
shishi_tgs_req (Shishi_tgs *tgs);

Get the TGS-REQ from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the generated TGS-REQ from the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_req_der ()

int
shishi_tgs_req_der (Shishi_tgs *tgs,
                    char **out,
                    size_t *outlen);

DER encode TGS-REQ. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

tgs

structure that holds information about TGS exchange

 

out

output array with newly allocated DER encoding of TGS-REQ.

 

outlen

length of output array with DER encoding of TGS-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_req_der_set ()

int
shishi_tgs_req_der_set (Shishi_tgs *tgs,
                        char *der,
                        size_t derlen);

DER decode TGS-REQ and set it TGS exchange. If decoding fails, the TGS-REQ in the TGS exchange remains.

Parameters

tgs

structure that holds information about TGS exchange

 

der

input array with DER encoded AP-REQ.

 

derlen

length of input array with DER encoded AP-REQ.

 

Returns

Returns SHISHI_OK.


shishi_tgs_req_set ()

void
shishi_tgs_req_set (Shishi_tgs *tgs,
                    Shishi_asn1 tgsreq);

Set the TGS-REQ in the TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

tgsreq

tgsreq to store in TGS.

 

shishi_tgs_req_build ()

int
shishi_tgs_req_build (Shishi_tgs *tgs);

Checksum data in authenticator and add ticket and authenticator to TGS-REQ.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_req_process ()

int
shishi_tgs_req_process (Shishi_tgs *tgs);

Process new TGS-REQ and set ticket. The key to decrypt the TGS-REQ is taken from the EncKDCReqPart of the TGS tgticket.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_rep ()

Shishi_asn1
shishi_tgs_rep (Shishi_tgs *tgs);

Get TGS-REP from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_rep_der ()

int
shishi_tgs_rep_der (Shishi_tgs *tgs,
                    char **out,
                    size_t *outlen);

DER encode TGS-REP. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

tgs

structure that holds information about TGS exchange

 

out

output array with newly allocated DER encoding of TGS-REP.

 

outlen

length of output array with DER encoding of TGS-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_rep_build ()

int
shishi_tgs_rep_build (Shishi_tgs *tgs,
                      int keyusage,
                      Shishi_key *key);

Build TGS-REP.

Parameters

tgs

structure that holds information about TGS exchange

 

keyusage

keyusage integer.

 

key

user's key, used to encrypt the encrypted part of the TGS-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_rep_process ()

int
shishi_tgs_rep_process (Shishi_tgs *tgs);

Process new TGS-REP and set ticket. The key to decrypt the TGS-REP is taken from the EncKDCRepPart of the TGS tgticket.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_krberror ()

Shishi_asn1
shishi_tgs_krberror (Shishi_tgs *tgs);

Get KRB-ERROR from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_krberror_der ()

int
shishi_tgs_krberror_der (Shishi_tgs *tgs,
                         char **out,
                         size_t *outlen);

DER encode KRB-ERROR. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

tgs

structure that holds information about TGS exchange

 

out

output array with newly allocated DER encoding of KRB-ERROR.

 

outlen

length of output array with DER encoding of KRB-ERROR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_krberror_set ()

void
shishi_tgs_krberror_set (Shishi_tgs *tgs,
                         Shishi_asn1 krberror);

Set the KRB-ERROR in the TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

krberror

krberror to store in TGS.

 

shishi_tgs_tkt ()

Shishi_tkt *
shishi_tgs_tkt (Shishi_tgs *tgs);

Get Ticket from TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns the newly acquired ticket from the TGS exchange, or NULL if not yet set or an error occured.


shishi_tgs_tkt_set ()

void
shishi_tgs_tkt_set (Shishi_tgs *tgs,
                    Shishi_tkt *tkt);

Set the Ticket in the TGS exchange.

Parameters

tgs

structure that holds information about TGS exchange

 

tkt

ticket to store in TGS.

 

shishi_tgs_sendrecv ()

int
shishi_tgs_sendrecv (Shishi_tgs *tgs);

Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets.

Parameters

tgs

structure that holds information about TGS exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_sendrecv_hint ()

int
shishi_tgs_sendrecv_hint (Shishi_tgs *tgs,
                          Shishi_tkts_hint *hint);

Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets. The hint structure can be used to set, e.g., parameters for TLS authentication.

Parameters

tgs

structure that holds information about TGS exchange

 

hint

additional parameters that modify connection behaviour, or NULL.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_set_server ()

int
shishi_tgs_set_server (Shishi_tgs *tgs,
                       const char *server);

Set the server in the TGS-REQ.

Parameters

tgs

structure that holds information about TGS exchange

 

server

indicates the server to acquire ticket for.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_set_realm ()

int
shishi_tgs_set_realm (Shishi_tgs *tgs,
                      const char *realm);

Set the server in the TGS-REQ.

Parameters

tgs

structure that holds information about TGS exchange

 

realm

indicates the realm to acquire ticket for.

 

Returns

Returns SHISHI_OK iff successful.


shishi_tgs_set_realmserver ()

int
shishi_tgs_set_realmserver (Shishi_tgs *tgs,
                            const char *realm,
                            const char *server);

Set the realm and server in the TGS-REQ.

Parameters

tgs

structure that holds information about TGS exchange

 

realm

indicates the realm to acquire ticket for.

 

server

indicates the server to acquire ticket for.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq ()

int
shishi_kdcreq (Shishi *handle,
               char *realm,
               char *service,
               Shishi_asn1 *req);

shishi_asreq ()

Shishi_asn1
shishi_asreq (Shishi *handle);

This function creates a new AS-REQ, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the AS-REQ or NULL on failure.


shishi_asreq_rsc ()

Shishi_asn1
shishi_asreq_rsc (Shishi *handle,
                  char *realm,
                  char *server,
                  char *client);

shishi_tgsreq ()

Shishi_asn1
shishi_tgsreq (Shishi *handle);

This function creates a new TGS-REQ, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the TGS-REQ or NULL on failure.


shishi_tgsreq_rst ()

Shishi_asn1
shishi_tgsreq_rst (Shishi *handle,
                   char *realm,
                   char *server,
                   Shishi_tkt *tkt);

shishi_kdcreq_save ()

int
shishi_kdcreq_save (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 kdcreq);

Print DER encoding of KDC-REQ to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

kdcreq

KDC-REQ to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_print ()

int
shishi_kdcreq_print (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 kdcreq);

Print ASCII armored DER encoding of KDC-REQ to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

kdcreq

KDC-REQ to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_to_file ()

int
shishi_kdcreq_to_file (Shishi *handle,
                       Shishi_asn1 kdcreq,
                       int filetype,
                       const char *filename);

Write KDC-REQ to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_parse ()

int
shishi_kdcreq_parse (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 *kdcreq);

Read ASCII armored DER encoded KDC-REQ from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

kdcreq

output variable with newly allocated KDC-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_read ()

int
shishi_kdcreq_read (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 *kdcreq);

Read DER encoded KDC-REQ from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

kdcreq

output variable with newly allocated KDC-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_from_file ()

int
shishi_kdcreq_from_file (Shishi *handle,
                         Shishi_asn1 *kdcreq,
                         int filetype,
                         const char *filename);

Read KDC-REQ from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

output variable with newly allocated KDC-REQ.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_asreq_clientrealm ()

int
shishi_asreq_clientrealm (Shishi *handle,
                          Shishi_asn1 asreq,
                          char **client,
                          size_t *clientlen);

Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

asreq

AS-REQ variable to get client name and realm from.

 

client

pointer to newly allocated zero terminated string containing principal name and realm. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_nonce ()

int
shishi_kdcreq_nonce (Shishi *handle,
                     Shishi_asn1 kdcreq,
                     uint32_t *nonce);

shishi_kdcreq_nonce_set ()

int
shishi_kdcreq_nonce_set (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         uint32_t nonce);

Store nonce number field in KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set client name field in.

 

nonce

integer nonce to store in KDC-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_client ()

int
shishi_kdcreq_client (Shishi *handle,
                      Shishi_asn1 kdcreq,
                      char **client,
                      size_t *clientlen);

Represent client principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

kdcreq

KDC-REQ variable to get client name from.

 

client

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_set_cname ()

int
shishi_kdcreq_set_cname (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         Shishi_name_type name_type,
                         const char *principal);

Set the client name field in the KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set client name field in.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

principal

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_server ()

int
shishi_kdcreq_server (Shishi *handle,
                      Shishi_asn1 kdcreq,
                      char **server,
                      size_t *serverlen);

Represent server principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length serverlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

kdcreq

KDC-REQ variable to get server name from.

 

server

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate serverlen ).

 

serverlen

pointer to length of server on output, excluding terminating zero. May be NULL (to only populate server ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_set_sname ()

int
shishi_kdcreq_set_sname (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         Shishi_name_type name_type,
                         const char *sname[]);

Set the server name field in the KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set server name field in.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

sname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_realm ()

int
shishi_kdcreq_realm (Shishi *handle,
                     Shishi_asn1 kdcreq,
                     char **realm,
                     size_t *realmlen);

Get realm field in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length realmlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

kdcreq

KDC-REQ variable to get client name from.

 

realm

pointer to newly allocated zero terminated string containing realm. May be NULL (to only populate realmlen ).

 

realmlen

pointer to length of realm on output, excluding terminating zero. May be NULL (to only populate realmlen ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_realm_get ()

int
shishi_kdcreq_realm_get (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         char **realm,
                         size_t *realmlen);

shishi_kdcreq_set_realm ()

int
shishi_kdcreq_set_realm (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         const char *realm);

Set the realm field in the KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set realm field in.

 

realm

input array with name of realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_set_server ()

int
shishi_kdcreq_set_server (Shishi *handle,
                          Shishi_asn1 req,
                          const char *service);

shishi_kdcreq_set_realmserver ()

int
shishi_kdcreq_set_realmserver (Shishi *handle,
                               Shishi_asn1 req,
                               char *realm,
                               char *service);

shishi_kdcreq_till ()

int
shishi_kdcreq_till (Shishi *handle,
                    Shishi_asn1 kdcreq,
                    char **till,
                    size_t *tilllen);

Get "till" field, i.e., "endtime", in KDC-REQ as a null-terminated string. The string is typically 15 characters long and is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length tilllen does not include the terminating zero.

Parameters

handle

Shishi library handle created by shishi_init().

 

kdcreq

KDC-REQ variable to get endtime from.

 

till

pointer to newly allocated null terminated string containing "till" field with generalized time. May be passed as NULL to only populate tilllen .

 

tilllen

pointer to length of till for output, excluding the terminating null. Set to NULL, only till is populated.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_tillc ()

time_t
shishi_kdcreq_tillc (Shishi *handle,
                     Shishi_asn1 kdcreq);

Extract C time corresponding to the "till" field.

Parameters

handle

Shishi library handle created by shishi_init().

 

kdcreq

KDC-REQ variable to get "till" field from.

 

Returns

Returns the C time interpretation of the "till" field in KDC-REQ.


shishi_kdcreq_etype ()

int
shishi_kdcreq_etype (Shishi *handle,
                     Shishi_asn1 kdcreq,
                     int32_t *etype,
                     int netype);

Return the netype:th encryption type from KDC-REQ. The first etype is number 1.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get etype field from.

 

etype

output encryption type.

 

netype

element number to return.

 

Returns

Returns SHISHI_OK iff etype successful set.


shishi_kdcreq_set_etype ()

int
shishi_kdcreq_set_etype (Shishi *handle,
                         Shishi_asn1 kdcreq,
                         int32_t *etype,
                         int netype);

Set the list of supported or wanted encryption types in the request. The list should be sorted in priority order.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set etype field in.

 

etype

input array with encryption types.

 

netype

number of elements in input array with encryption types.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_options ()

int
shishi_kdcreq_options (Shishi *handle,
                       Shishi_asn1 kdcreq,
                       uint32_t *flags);

Extract KDC-Options from KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

flags

pointer to output integer with flags.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_forwardable_p ()

int
shishi_kdcreq_forwardable_p (Shishi *handle,
                             Shishi_asn1 kdcreq);

Determine if KDC-Option forwardable flag is set.

The FORWARDABLE option indicates that the ticket to be issued is to have its forwardable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also forwardable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff forwardable flag is set in KDC-REQ.


shishi_kdcreq_forwarded_p ()

int
shishi_kdcreq_forwarded_p (Shishi *handle,
                           Shishi_asn1 kdcreq);

Determine if KDC-Option forwarded flag is set.

The FORWARDED option is only specified in a request to the ticket-granting server and will only be honored if the ticket-granting ticket in the request has its FORWARDABLE bit set. This option indicates that this is a request for forwarding. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff forwarded flag is set in KDC-REQ.


shishi_kdcreq_proxiable_p ()

int
shishi_kdcreq_proxiable_p (Shishi *handle,
                           Shishi_asn1 kdcreq);

Determine if KDC-Option proxiable flag is set.

The PROXIABLE option indicates that the ticket to be issued is to have its proxiable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also proxiable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff proxiable flag is set in KDC-REQ.


shishi_kdcreq_proxy_p ()

int
shishi_kdcreq_proxy_p (Shishi *handle,
                       Shishi_asn1 kdcreq);

Determine if KDC-Option proxy flag is set.

The PROXY option indicates that this is a request for a proxy. This option will only be honored if the ticket-granting ticket in the request has its PROXIABLE bit set. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff proxy flag is set in KDC-REQ.


shishi_kdcreq_allow_postdate_p ()

int
shishi_kdcreq_allow_postdate_p (Shishi *handle,
                                Shishi_asn1 kdcreq);

Determine if KDC-Option allow-postdate flag is set.

The ALLOW-POSTDATE option indicates that the ticket to be issued is to have its MAY-POSTDATE flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based also has its MAY-POSTDATE flag set.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff allow-postdate flag is set in KDC-REQ.


shishi_kdcreq_postdated_p ()

int
shishi_kdcreq_postdated_p (Shishi *handle,
                           Shishi_asn1 kdcreq);

Determine if KDC-Option postdated flag is set.

The POSTDATED option indicates that this is a request for a postdated ticket. This option will only be honored if the ticket-granting ticket on which it is based has its MAY-POSTDATE flag set. The resulting ticket will also have its INVALID flag set, and that flag may be reset by a subsequent request to the KDC after the starttime in the ticket has been reached.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff postdated flag is set in KDC-REQ.


shishi_kdcreq_renewable_p ()

int
shishi_kdcreq_renewable_p (Shishi *handle,
                           Shishi_asn1 kdcreq);

Determine if KDC-Option renewable flag is set.

The RENEWABLE option indicates that the ticket to be issued is to have its RENEWABLE flag set. It may only be set on the initial request, or when the ticket-granting ticket on which the request is based is also renewable. If this option is requested, then the rtime field in the request contains the desired absolute expiration time for the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff renewable flag is set in KDC-REQ.


shishi_kdcreq_disable_transited_check_p ()

int
shishi_kdcreq_disable_transited_check_p
                               (Shishi *handle,
                                Shishi_asn1 kdcreq);

Determine if KDC-Option disable-transited-check flag is set.

By default the KDC will check the transited field of a ticket-granting-ticket against the policy of the local realm before it will issue derivative tickets based on the ticket-granting ticket. If this flag is set in the request, checking of the transited field is disabled. Tickets issued without the performance of this check will be noted by the reset (0) value of the TRANSITED-POLICY-CHECKED flag, indicating to the application server that the tranisted field must be checked locally. KDCs are encouraged but not required to honor the DISABLE-TRANSITED-CHECK option.

This flag is new since RFC 1510

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff disable-transited-check flag is set in KDC-REQ.


shishi_kdcreq_renewable_ok_p ()

int
shishi_kdcreq_renewable_ok_p (Shishi *handle,
                              Shishi_asn1 kdcreq);

Determine if KDC-Option renewable-ok flag is set.

The RENEWABLE-OK option indicates that a renewable ticket will be acceptable if a ticket with the requested life cannot otherwise be provided. If a ticket with the requested life cannot be provided, then a renewable ticket may be issued with a renew-till equal to the requested endtime. The value of the renew-till field may still be limited by local limits, or limits selected by the individual principal or server.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff renewable-ok flag is set in KDC-REQ.


shishi_kdcreq_enc_tkt_in_skey_p ()

int
shishi_kdcreq_enc_tkt_in_skey_p (Shishi *handle,
                                 Shishi_asn1 kdcreq);

Determine if KDC-Option enc-tkt-in-skey flag is set.

This option is used only by the ticket-granting service. The ENC-TKT-IN-SKEY option indicates that the ticket for the end server is to be encrypted in the session key from the additional ticket-granting ticket provided.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff enc-tkt-in-skey flag is set in KDC-REQ.


shishi_kdcreq_renew_p ()

int
shishi_kdcreq_renew_p (Shishi *handle,
                       Shishi_asn1 kdcreq);

Determine if KDC-Option renew flag is set.

This option is used only by the ticket-granting service. The RENEW option indicates that the present request is for a renewal. The ticket provided is encrypted in the secret key for the server on which it is valid. This option will only be honored if the ticket to be renewed has its RENEWABLE flag set and if the time in its renew-till field has not passed. The ticket to be renewed is passed in the padata field as part of the authentication header.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff renew flag is set in KDC-REQ.


shishi_kdcreq_validate_p ()

int
shishi_kdcreq_validate_p (Shishi *handle,
                          Shishi_asn1 kdcreq);

Determine if KDC-Option validate flag is set.

This option is used only by the ticket-granting service. The VALIDATE option indicates that the request is to validate a postdated ticket. It will only be honored if the ticket presented is postdated, presently has its INVALID flag set, and would be otherwise usable at this time. A ticket cannot be validated before its starttime. The ticket presented for validation is encrypted in the key of the server for which it is valid and is passed in the padata field as part of the authentication header.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to get kdc-options field from.

 

Returns

Returns non-0 iff validate flag is set in KDC-REQ.


shishi_kdcreq_options_set ()

int
shishi_kdcreq_options_set (Shishi *handle,
                           Shishi_asn1 kdcreq,
                           uint32_t options);

Set options in KDC-REQ. Note that this reset any already existing flags.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set etype field in.

 

options

integer with flags to store in KDC-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_options_add ()

int
shishi_kdcreq_options_add (Shishi *handle,
                           Shishi_asn1 kdcreq,
                           uint32_t option);

Add KDC-Option to KDC-REQ. This preserves all existing options.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ variable to set etype field in.

 

option

integer with options to add in KDC-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_clear_padata ()

int
shishi_kdcreq_clear_padata (Shishi *handle,
                            Shishi_asn1 kdcreq);

Remove the padata field from KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to remove PA-DATA from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_get_padata ()

int
shishi_kdcreq_get_padata (Shishi *handle,
                          Shishi_asn1 kdcreq,
                          Shishi_padata_type padatatype,
                          char **out,
                          size_t *outlen);

Get pre authentication data (PA-DATA) from KDC-REQ. Pre authentication data is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to get PA-DATA from.

 

padatatype

type of PA-DATA, see Shishi_padata_type.

 

out

output array with newly allocated PA-DATA value.

 

outlen

size of output array with PA-DATA value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_get_padata_tgs ()

int
shishi_kdcreq_get_padata_tgs (Shishi *handle,
                              Shishi_asn1 kdcreq,
                              Shishi_asn1 *apreq);

Extract TGS pre-authentication data from KDC-REQ. The data is an AP-REQ that authenticates the request. This function call shishi_kdcreq_get_padata() with a SHISHI_PA_TGS_REQ padatatype and DER decode the result (if any).

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to get PA-TGS-REQ from.

 

apreq

Output variable with newly allocated AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_add_padata ()

int
shishi_kdcreq_add_padata (Shishi *handle,
                          Shishi_asn1 kdcreq,
                          int padatatype,
                          const char *data,
                          size_t datalen);

Add new pre authentication data (PA-DATA) to KDC-REQ. This is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket. (But also see shishi_kdcreq_add_padata_tgs() which takes an AP-REQ directly.)

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to add PA-DATA to.

 

padatatype

type of PA-DATA, see Shishi_padata_type.

 

data

input array with PA-DATA value.

 

datalen

size of input array with PA-DATA value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_add_padata_tgs ()

int
shishi_kdcreq_add_padata_tgs (Shishi *handle,
                              Shishi_asn1 kdcreq,
                              Shishi_asn1 apreq);

Add TGS pre-authentication data to KDC-REQ. The data is an AP-REQ that authenticates the request. This functions simply DER encodes the AP-REQ and calls shishi_kdcreq_add_padata() with a SHISHI_PA_TGS_REQ padatatype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to add PA-DATA to.

 

apreq

AP-REQ to add as PA-DATA.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_add_padata_preauth ()

int
shishi_kdcreq_add_padata_preauth (Shishi *handle,
                                  Shishi_asn1 kdcreq,
                                  Shishi_key *key);

Add pre-authentication data to KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ to add pre-authentication data to.

 

key

Key used to encrypt pre-auth data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcreq_build ()

int
shishi_kdcreq_build (Shishi *handle,
                     Shishi_asn1 kdcreq);

shishi_as_derive_salt ()

int
shishi_as_derive_salt (Shishi *handle,
                       Shishi_asn1 asreq,
                       Shishi_asn1 asrep,
                       char **salt,
                       size_t *saltlen);

Computes the salt that should be used when deriving a key via shishi_string_to_key() for an AS exchange. Currently this searches for PA-DATA of type SHISHI_PA_PW_SALT in the AS-REP provided by asrep , and if present returns it. Otherwise the salt is composed from the client name and the realm, both are extracted from the request asreq .

Parameters

handle

Shishi handle as allocated by shishi_init().

 

asreq

Input AS-REQ variable.

 

asrep

Input AS-REP variable.

 

salt

Returned pointer to newly allocated output array.

 

saltlen

Pointer to integer, returning size of output array.

 

Returns

Returns SHISHI_OK if successful. Failure conditions include various ASN.1 issues.


shishi_tgs_process ()

int
shishi_tgs_process (Shishi *handle,
                    Shishi_asn1 tgsreq,
                    Shishi_asn1 tgsrep,
                    Shishi_asn1 authenticator,
                    Shishi_asn1 oldenckdcreppart,
                    Shishi_asn1 *enckdcreppart);

Processes a TGS client exchange and outputs the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the ticket used to construct the original TGS request, and then calls shishi_kdc_process().

Parameters

handle

Shishi handle as allocated by shishi_init().

 

tgsreq

Input variable holding the transmitted KDC-REQ.

 

tgsrep

Input variable holding the received KDC-REP.

 

authenticator

Input variable with an authenticator extracted from the AP-REQ part of tgsreq .

 

oldenckdcreppart

Input variable with EncKDCRepPart used in the request.

 

enckdcreppart

Output variable holding the new EncKDCRepPart.

 

Returns

Returns SHISHI_OK if the TGS client exchange was successful. Failures include ASN.1 and TGS conditions.


shishi_as_process ()

int
shishi_as_process (Shishi *handle,
                   Shishi_asn1 asreq,
                   Shishi_asn1 asrep,
                   const char *string,
                   Shishi_asn1 *enckdcreppart);

Processes an AS client exchange and returns the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the password, and then calls shishi_kdc_process().

Parameters

handle

Shishi handle as allocated by shishi_init().

 

asreq

Input variable holding the transmitted KDC-REQ.

 

asrep

Input variable holding the received KDC-REP.

 

string

Input variable with a null terminated password.

 

enckdcreppart

Output variable returning a new EncKDCRepPart.

 

Returns

Returns SHISHI_OK if the AS client exchange was successful. Multiple failure conditions are possible.


shishi_kdc_process ()

int
shishi_kdc_process (Shishi *handle,
                    Shishi_asn1 kdcreq,
                    Shishi_asn1 kdcrep,
                    Shishi_key *key,
                    int keyusage,
                    Shishi_asn1 *enckdcreppart);

Processes a KDC client exchange and extracts a decrypted EncKDCRepPart, holding details about the received ticket. Use shishi_kdcrep_get_ticket() to extract the ticket itself. This function verifies the various conditions that must hold if the response is to be considered valid. In particular, it compares nonces (using shishi_kdc_check_nonce()), and if the exchange was an AS exchange, it also checks cname and crealm (using shishi_as_check_cname(), shishi_as_check_crealm()).

Usually shishi_as_process() and shishi_tgs_process() should be used instead of this call, since they simplify computation of the decryption key.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

kdcreq

Input variable holding the transmitted KDC-REQ.

 

kdcrep

Input variable holding the received KDC-REP.

 

key

Input pointet to key for decrypting parts of kdcrep .

 

keyusage

Kerberos key usage code.

 

enckdcreppart

Output pointer for the extracted EncKDCRepPart.

 

Returns

Returns SHISHI_OK if the KDC client exchange was successful. Multiple failure conditions are possible.


shishi_kdcreq_sendrecv ()

int
shishi_kdcreq_sendrecv (Shishi *handle,
                        Shishi_asn1 kdcreq,
                        Shishi_asn1 *kdcrep);

Sends a request to KDC, and receives the response. The provided AS-REQ, in kdcreq , sets all data for the request. On reception the reply is decoded as AS-REP into kdcrep .

Parameters

handle

Shishi library handle created by shishi_init().

 

kdcreq

Input variable with a prepared AS-REQ.

 

kdcrep

Output pointer variable returning received AS-REP.

 

Returns

Return code is SHISHI_OK on success, SHISHI_KDC_TIMEOUT on timeouts, SHISHI_ASN1_ERROR on translation errors, and SHISHI_GOT_KRBERROR for other corruptions.


shishi_kdcreq_sendrecv_hint ()

int
shishi_kdcreq_sendrecv_hint (Shishi *handle,
                             Shishi_asn1 kdcreq,
                             Shishi_asn1 *kdcrep,
                             Shishi_tkts_hint *hint);

Sends a request to KDC, and receives the response. The provided request kdcreq and the hints structure hint , together determine transmitted data. On reception the reply is decoded as AS-REP into kdcrep .

Parameters

handle

Shishi library handle created by shishi_init().

 

kdcreq

Input variable with a prepared AS-REQ.

 

kdcrep

Output pointer variable for decoded AS-REP.

 

hint

Input Shishi_tkts_hint structure with flags.

 

Returns

Return code is SHISHI_OK on success, SHISHI_KDC_TIMEOUT on timeouts, SHISHI_ASN1_ERROR on translation errors, and SHISHI_GOT_KRBERROR for other corruptions.


shishi_kdc_copy_crealm ()

int
shishi_kdc_copy_crealm (Shishi *handle,
                        Shishi_asn1 kdcrep,
                        Shishi_asn1 encticketpart);

Reads the field "crealm" from the ticket encticketpart and copies the value into the reply kdcrep .

Parameters

handle

Shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP where the field "crealm" is updated.

 

encticketpart

EncTicketPart providing "crealm" field.

 

Returns

Returns SHISHI_OK if successful, and ASN.1 failures otherwise.


shishi_as_check_crealm ()

int
shishi_as_check_crealm (Shishi *handle,
                        Shishi_asn1 asreq,
                        Shishi_asn1 asrep);

Verifies that the fields asreq.req -body.realm and asrep.crealm contain identical realm names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see shishi_kdc_process() for more details.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

asreq

Request of type AS-REQ.

 

asrep

Reply structure of type AS-REP.

 

Returns

Returns SHISHI_OK if successful, SHISHI_REALM_MISMATCH whenever the realm names differ, and an error code otherwise.


shishi_kdc_copy_cname ()

int
shishi_kdc_copy_cname (Shishi *handle,
                       Shishi_asn1 kdcrep,
                       Shishi_asn1 encticketpart);

Reads the field "cname" from the ticket encticketpart and copies the value into the reply kdcrep .

Parameters

handle

Shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP where the field "cname" is updated.

 

encticketpart

EncTicketPart providing "cname" field.

 

Returns

Returns SHISHI_OK if successful, and ASN.1 failures otherwise.


shishi_as_check_cname ()

int
shishi_as_check_cname (Shishi *handle,
                       Shishi_asn1 asreq,
                       Shishi_asn1 asrep);

Verifies that the fields asreq.req -body.cname and asrep.cname contain identical names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see shishi_kdc_process() for more details.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

asreq

Request of type AS-REQ.

 

asrep

Reply structure of type AS-REP.

 

Returns

Returns SHISHI_OK if successful, SHISHI_CNAME_MISMATCH if the names differ, and an error code otherwise.


shishi_kdc_copy_nonce ()

int
shishi_kdc_copy_nonce (Shishi *handle,
                       Shishi_asn1 kdcreq,
                       Shishi_asn1 enckdcreppart);

Sets the field "nonce" in enckdcreppart to a value retreived from the corresponding field in kdcreq .

Parameters

handle

Shishi handle as allocated by shishi_init().

 

kdcreq

KDC-REQ providing "nonce" field.

 

enckdcreppart

EncKDCRepPart where "nonce" field is updated.

 

Returns

Returns SHISHI_OK if successful.


shishi_kdc_check_nonce ()

int
shishi_kdc_check_nonce (Shishi *handle,
                        Shishi_asn1 kdcreq,
                        Shishi_asn1 enckdcreppart);

Verifies that kdcreq.req -body.nonce and enckdcreppart.nonce contain matching values. This is one of the steps that has to be performed when processing an exchange of KDC-REQ and KDC-REP.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

kdcreq

Request of type KDC-REQ.

 

enckdcreppart

Encrypted KDC-REP part.

 

Returns

Returns SHISHI_OK if successful, SHISHI_NONCE_MISMATCH whenever the nonces are of differing lengths (usually a sign that a buggy server truncates the nonce to 4 bytes) and the same code if the nonce values differ, or an error code otherwise.


shishi_asrep ()

Shishi_asn1
shishi_asrep (Shishi *handle);

This function creates a new AS-REP, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the AS-REP or NULL on failure.


shishi_tgsrep ()

Shishi_asn1
shishi_tgsrep (Shishi *handle);

This function creates a new TGS-REP, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the TGS-REP or NULL on failure.


shishi_kdcrep_save ()

int
shishi_kdcrep_save (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 kdcrep);

Print DER encoding of KDC-REP to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

kdcrep

KDC-REP to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_print ()

int
shishi_kdcrep_print (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 kdcrep);

Print ASCII armored DER encoding of KDC-REP to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

kdcrep

KDC-REP to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_to_file ()

int
shishi_kdcrep_to_file (Shishi *handle,
                       Shishi_asn1 kdcrep,
                       int filetype,
                       const char *filename);

Write KDC-REP to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_parse ()

int
shishi_kdcrep_parse (Shishi *handle,
                     FILE *fh,
                     Shishi_asn1 *kdcrep);

Read ASCII armored DER encoded KDC-REP from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

kdcrep

output variable with newly allocated KDC-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_read ()

int
shishi_kdcrep_read (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 *kdcrep);

Read DER encoded KDC-REP from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

kdcrep

output variable with newly allocated KDC-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_from_file ()

int
shishi_kdcrep_from_file (Shishi *handle,
                         Shishi_asn1 *kdcrep,
                         int filetype,
                         const char *filename);

Read KDC-REP from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

output variable with newly allocated KDC-REP.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_clear_padata ()

int
shishi_kdcrep_clear_padata (Shishi *handle,
                            Shishi_asn1 kdcrep);

Remove the padata field from KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP to remove PA-DATA from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_get_enc_part_etype ()

int
shishi_kdcrep_get_enc_part_etype (Shishi *handle,
                                  Shishi_asn1 kdcrep,
                                  int32_t *etype);

Extract KDC-REP.enc-part.etype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP variable to get value from.

 

etype

output variable that holds the value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_add_enc_part ()

int
shishi_kdcrep_add_enc_part (Shishi *handle,
                            Shishi_asn1 kdcrep,
                            Shishi_key *key,
                            int keyusage,
                            Shishi_asn1 enckdcreppart);

Encrypts DER encoded EncKDCRepPart using key and stores it in the KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP to add enc-part field to.

 

key

key used to encrypt enc-part.

 

keyusage

key usage to use, normally SHISHI_KEYUSAGE_ENCASREPPART, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY or SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY.

 

enckdcreppart

EncKDCRepPart to add.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_get_ticket ()

int
shishi_kdcrep_get_ticket (Shishi *handle,
                          Shishi_asn1 kdcrep,
                          Shishi_asn1 *ticket);

Extract ticket from KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP variable to get ticket from.

 

ticket

output variable to hold extracted ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_set_ticket ()

int
shishi_kdcrep_set_ticket (Shishi *handle,
                          Shishi_asn1 kdcrep,
                          Shishi_asn1 ticket);

Copy ticket into KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP to add ticket field to.

 

ticket

input ticket to copy into KDC-REP ticket field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_crealm_set ()

int
shishi_kdcrep_crealm_set (Shishi *handle,
                          Shishi_asn1 kdcrep,
                          const char *crealm);

Set the client realm field in the KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

Kdcrep variable to set realm field in.

 

crealm

input array with name of realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_cname_set ()

int
shishi_kdcrep_cname_set (Shishi *handle,
                         Shishi_asn1 kdcrep,
                         Shishi_name_type name_type,
                         const char *cname[]);

Set the client name field in the KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

Kdcrep variable to set server name field in.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

cname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_client_set ()

int
shishi_kdcrep_client_set (Shishi *handle,
                          Shishi_asn1 kdcrep,
                          const char *client);

Set the client name field in the KDC-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

Kdcrep variable to set server name field in.

 

client

zero-terminated string with principal name on RFC 1964 form.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_crealmserver_set ()

int
shishi_kdcrep_crealmserver_set (Shishi *handle,
                                Shishi_asn1 kdcrep,
                                const char *crealm,
                                const char *client);

shishi_kdcrep_set_enc_part ()

int
shishi_kdcrep_set_enc_part (Shishi *handle,
                            Shishi_asn1 kdcrep,
                            int32_t etype,
                            uint32_t kvno,
                            const char *buf,
                            size_t buflen);

Set the encrypted enc-part field in the KDC-REP. The encrypted data is usually created by calling shishi_encrypt() on the DER encoded enc-part. To save time, you may want to use shishi_kdcrep_add_enc_part() instead, which calculates the encrypted data and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

kdcrep

KDC-REP to add enc-part field to.

 

etype

encryption type used to encrypt enc-part.

 

kvno

key version number.

 

buf

input array with encrypted enc-part.

 

buflen

size of input array with encrypted enc-part.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdcrep_decrypt ()

int
shishi_kdcrep_decrypt (Shishi *handle,
                       Shishi_asn1 kdcrep,
                       Shishi_key *key,
                       int keyusage,
                       Shishi_asn1 *enckdcreppart);

shishi_enckdcreppart ()

Shishi_asn1
shishi_enckdcreppart (Shishi *handle);

shishi_encasreppart ()

Shishi_asn1
shishi_encasreppart (Shishi *handle);

shishi_enckdcreppart_get_key ()

int
shishi_enckdcreppart_get_key (Shishi *handle,
                              Shishi_asn1 enckdcreppart,
                              Shishi_key **key);

Extract the key to use with the ticket sent in the KDC-REP associated with the EncKDCRepPart input variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

key

newly allocated encryption key handle.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_key_set ()

int
shishi_enckdcreppart_key_set (Shishi *handle,
                              Shishi_asn1 enckdcreppart,
                              Shishi_key *key);

Set the EncKDCRepPart.key field to key type and value of supplied key.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

key

key handle with information to store in enckdcreppart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_nonce_set ()

int
shishi_enckdcreppart_nonce_set (Shishi *handle,
                                Shishi_asn1 enckdcreppart,
                                uint32_t nonce);

Set the EncKDCRepPart.nonce field.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

nonce

nonce to set in EncKDCRepPart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_flags_set ()

int
shishi_enckdcreppart_flags_set (Shishi *handle,
                                Shishi_asn1 enckdcreppart,
                                int flags);

Set the EncKDCRepPart.flags field.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

flags

flags to set in EncKDCRepPart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_authtime_set ()

int
shishi_enckdcreppart_authtime_set (Shishi *handle,
                                   Shishi_asn1 enckdcreppart,
                                   const char *authtime);

Set the EncTicketPart.authtime to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

authtime

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_starttime_set ()

int
shishi_enckdcreppart_starttime_set (Shishi *handle,
                                    Shishi_asn1 enckdcreppart,
                                    const char *starttime);

Set the EncTicketPart.starttime to supplied value. Use a NULL value for starttime to remove the field.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

starttime

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_endtime_set ()

int
shishi_enckdcreppart_endtime_set (Shishi *handle,
                                  Shishi_asn1 enckdcreppart,
                                  const char *endtime);

Set the EncTicketPart.endtime to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

endtime

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_renew_till_set ()

int
shishi_enckdcreppart_renew_till_set (Shishi *handle,
                                     Shishi_asn1 enckdcreppart,
                                     const char *renew_till);

Set the EncTicketPart.renew-till to supplied value. Use a NULL value for renew_till to remove the field.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

renew_till

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_srealm_set ()

int
shishi_enckdcreppart_srealm_set (Shishi *handle,
                                 Shishi_asn1 enckdcreppart,
                                 const char *srealm);

Set the server realm field in the EncKDCRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

EncKDCRepPart variable to set realm field in.

 

srealm

input array with name of realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_sname_set ()

int
shishi_enckdcreppart_sname_set (Shishi *handle,
                                Shishi_asn1 enckdcreppart,
                                Shishi_name_type name_type,
                                char *sname[]);

Set the server name field in the EncKDCRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

EncKDCRepPart variable to set server name field in.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

sname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_enckdcreppart_server_set ()

int
shishi_enckdcreppart_server_set (Shishi *handle,
                                 Shishi_asn1 enckdcreppart,
                                 const char *server);

shishi_enckdcreppart_srealmserver_set ()

int
shishi_enckdcreppart_srealmserver_set (Shishi *handle,
                                       Shishi_asn1 enckdcreppart,
                                       const char *srealm,
                                       const char *server);

shishi_enckdcreppart_populate_encticketpart ()

int
shishi_enckdcreppart_populate_encticketpart
                               (Shishi *handle,
                                Shishi_asn1 enckdcreppart,
                                Shishi_asn1 encticketpart);

Set the flags, authtime, starttime, endtime, renew-till and caddr fields of the EncKDCRepPart to the corresponding values in the EncTicketPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

enckdcreppart

input EncKDCRepPart variable.

 

encticketpart

input EncTicketPart variable.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror ()

Shishi_asn1
shishi_krberror (Shishi *handle);

This function creates a new KRB-ERROR, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the KRB-ERROR or NULL on failure.


shishi_krberror_print ()

int
shishi_krberror_print (Shishi *handle,
                       FILE *fh,
                       Shishi_asn1 krberror);

Print ASCII armored DER encoding of KRB-ERROR to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

krberror

KRB-ERROR to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_save ()

int
shishi_krberror_save (Shishi *handle,
                      FILE *fh,
                      Shishi_asn1 krberror);

Save DER encoding of KRB-ERROR to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

krberror

KRB-ERROR to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_to_file ()

int
shishi_krberror_to_file (Shishi *handle,
                         Shishi_asn1 krberror,
                         int filetype,
                         const char *filename);

Write KRB-ERROR to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_parse ()

int
shishi_krberror_parse (Shishi *handle,
                       FILE *fh,
                       Shishi_asn1 *krberror);

Read ASCII armored DER encoded KRB-ERROR from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

krberror

output variable with newly allocated KRB-ERROR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_read ()

int
shishi_krberror_read (Shishi *handle,
                      FILE *fh,
                      Shishi_asn1 *krberror);

Read DER encoded KRB-ERROR from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

krberror

output variable with newly allocated KRB-ERROR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_from_file ()

int
shishi_krberror_from_file (Shishi *handle,
                           Shishi_asn1 *krberror,
                           int filetype,
                           const char *filename);

Read KRB-ERROR from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

output variable with newly allocated KRB-ERROR.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_build ()

int
shishi_krberror_build (Shishi *handle,
                       Shishi_asn1 krberror);

Finish KRB-ERROR, called before e.g. shishi_krberror_der. This function removes empty but OPTIONAL fields (such as cname), and

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_der ()

int
shishi_krberror_der (Shishi *handle,
                     Shishi_asn1 krberror,
                     char **out,
                     size_t *outlen);

DER encode KRB-ERROR. The caller must deallocate the OUT buffer.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

out

output array with newly allocated DER encoding of KRB-ERROR.

 

outlen

length of output array with DER encoding of KRB-ERROR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_crealm ()

int
shishi_krberror_crealm (Shishi *handle,
                        Shishi_asn1 krberror,
                        char **realm,
                        size_t *realmlen);

Extract client realm from KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

realm

output array with newly allocated name of realm in KRB-ERROR.

 

realmlen

size of output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_crealm ()

int
shishi_krberror_remove_crealm (Shishi *handle,
                               Shishi_asn1 krberror);

Remove client realm field in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_crealm ()

int
shishi_krberror_set_crealm (Shishi *handle,
                            Shishi_asn1 krberror,
                            const char *crealm);

Set realm field in krberror to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

crealm

input array with realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_client ()

int
shishi_krberror_client (Shishi *handle,
                        Shishi_asn1 krberror,
                        char **client,
                        size_t *clientlen);

Return client principal name in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

client

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_cname ()

int
shishi_krberror_set_cname (Shishi *handle,
                           Shishi_asn1 krberror,
                           Shishi_name_type name_type,
                           const char *cname[]);

Set principal field in krberror to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

cname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_cname ()

int
shishi_krberror_remove_cname (Shishi *handle,
                              Shishi_asn1 krberror);

Remove client realm field in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_client_set ()

int
shishi_krberror_client_set (Shishi *handle,
                            Shishi_asn1 krberror,
                            const char *client);

Set the client name field in the Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror to set client name field in.

 

client

zero-terminated string with principal name on RFC 1964 form.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_realm ()

int
shishi_krberror_realm (Shishi *handle,
                       Shishi_asn1 krberror,
                       char **realm,
                       size_t *realmlen);

Extract (server) realm from KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

realm

output array with newly allocated name of realm in KRB-ERROR.

 

realmlen

size of output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_realm ()

int
shishi_krberror_set_realm (Shishi *handle,
                           Shishi_asn1 krberror,
                           const char *realm);

Set (server) realm field in krberror to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

realm

input array with (server) realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_server ()

int
shishi_krberror_server (Shishi *handle,
                        Shishi_asn1 krberror,
                        char **server,
                        size_t *serverlen);

Return server principal name in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

server

pointer to newly allocated zero terminated string containing server name. May be NULL (to only populate serverlen ).

 

serverlen

pointer to length of server on output, excluding terminating zero. May be NULL (to only populate server ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_sname ()

int
shishi_krberror_remove_sname (Shishi *handle,
                              Shishi_asn1 krberror);

Remove server name field in KRB-ERROR. (Since it is not marked OPTIONAL in the ASN.1 profile, what is done is to set the name-type to UNKNOWN and make sure the name-string sequence is empty.)

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror to set server name field in.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_sname ()

int
shishi_krberror_set_sname (Shishi *handle,
                           Shishi_asn1 krberror,
                           Shishi_name_type name_type,
                           const char *sname[]);

Set principal field in krberror to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

sname

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_server_set ()

int
shishi_krberror_server_set (Shishi *handle,
                            Shishi_asn1 krberror,
                            const char *server);

Set the server name field in the Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror to set server name field in.

 

server

zero-terminated string with principal name on RFC 1964 form.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_ctime ()

int
shishi_krberror_ctime (Shishi *handle,
                       Shishi_asn1 krberror,
                       char **t);

Extract client time from KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror to set client name field in.

 

t

newly allocated zero-terminated output array with client time.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_ctime_set ()

int
shishi_krberror_ctime_set (Shishi *handle,
                           Shishi_asn1 krberror,
                           const char *t);

Store client time in Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

t

string with generalized time value to store in Krberror.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_ctime ()

int
shishi_krberror_remove_ctime (Shishi *handle,
                              Shishi_asn1 krberror);

Remove client time field in Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_cusec ()

int
shishi_krberror_cusec (Shishi *handle,
                       Shishi_asn1 krberror,
                       uint32_t *cusec);

Extract client microseconds field from Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

cusec

output integer with client microseconds field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_cusec_set ()

int
shishi_krberror_cusec_set (Shishi *handle,
                           Shishi_asn1 krberror,
                           uint32_t cusec);

Set the cusec field in the Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

cusec

client microseconds to set in krberror, 0-999999.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_cusec ()

int
shishi_krberror_remove_cusec (Shishi *handle,
                              Shishi_asn1 krberror);

Remove client usec field in Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_stime ()

int
shishi_krberror_stime (Shishi *handle,
                       Shishi_asn1 krberror,
                       char **t);

Extract server time from KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror to set client name field in.

 

t

newly allocated zero-terminated output array with server time.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_stime_set ()

int
shishi_krberror_stime_set (Shishi *handle,
                           Shishi_asn1 krberror,
                           const char *t);

Store server time in Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

t

string with generalized time value to store in Krberror.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_susec ()

int
shishi_krberror_susec (Shishi *handle,
                       Shishi_asn1 krberror,
                       uint32_t *susec);

Extract server microseconds field from Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

Krberror as allocated by shishi_krberror().

 

susec

output integer with server microseconds field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_susec_set ()

int
shishi_krberror_susec_set (Shishi *handle,
                           Shishi_asn1 krberror,
                           uint32_t susec);

Set the susec field in the Krberror.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

susec

server microseconds to set in krberror, 0-999999.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_errorcode_set ()

int
shishi_krberror_errorcode_set (Shishi *handle,
                               Shishi_asn1 krberror,
                               int errorcode);

Set the error-code field to a new error code.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code to set.

 

errorcode

new error code to set in krberror.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_etext ()

int
shishi_krberror_etext (Shishi *handle,
                       Shishi_asn1 krberror,
                       char **etext,
                       size_t *etextlen);

Extract additional error text from server (possibly empty).

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

etext

output array with newly allocated error text.

 

etextlen

output length of error text.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_etext ()

int
shishi_krberror_set_etext (Shishi *handle,
                           Shishi_asn1 krberror,
                           const char *etext);

Set error text (e-text) field in KRB-ERROR to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

etext

input array with error text to set.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_etext ()

int
shishi_krberror_remove_etext (Shishi *handle,
                              Shishi_asn1 krberror);

Remove error text (e-text) field in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_edata ()

int
shishi_krberror_edata (Shishi *handle,
                       Shishi_asn1 krberror,
                       char **edata,
                       size_t *edatalen);

Extract additional error data from server (possibly empty).

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

edata

output array with newly allocated error data.

 

edatalen

output length of error data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_set_edata ()

int
shishi_krberror_set_edata (Shishi *handle,
                           Shishi_asn1 krberror,
                           const char *edata);

Set error text (e-data) field in KRB-ERROR to specified value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

edata

input array with error text to set.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_remove_edata ()

int
shishi_krberror_remove_edata (Shishi *handle,
                              Shishi_asn1 krberror);

Remove error text (e-data) field in KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

krberror as allocated by shishi_krberror().

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_errorcode ()

int
shishi_krberror_errorcode (Shishi *handle,
                           Shishi_asn1 krberror,
                           int *errorcode);

Extract error code from KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

errorcode

output integer KRB-ERROR error code.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_errorcode_fast ()

int
shishi_krberror_errorcode_fast (Shishi *handle,
                                Shishi_asn1 krberror);

Get error code from KRB-ERROR, without error checking.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

Returns

Return error code (see shishi_krberror_errorcode()) directly, or -1 on error.


shishi_krberror_pretty_print ()

int
shishi_krberror_pretty_print (Shishi *handle,
                              FILE *fh,
                              Shishi_asn1 krberror);

Print KRB-ERROR error condition and some explanatory text to file descriptor.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle opened for writing.

 

krberror

KRB-ERROR structure with error code.

 

Returns

Returns SHISHI_OK iff successful.


shishi_krberror_errorcode_message ()

const char *
shishi_krberror_errorcode_message (Shishi *handle,
                                   int errorcode);

Get human readable string describing KRB-ERROR code.

Parameters

handle

shishi handle as allocated by shishi_init().

 

errorcode

integer KRB-ERROR error code.

 

Returns

Return a string describing error code. This function will always return a string even if the error code isn't known.


shishi_krberror_message ()

const char *
shishi_krberror_message (Shishi *handle,
                         Shishi_asn1 krberror);

Extract error code (see shishi_krberror_errorcode_fast()) and return error message (see shishi_krberror_errorcode_message()).

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

Returns

Return a string describing error code. This function will always return a string even if the error code isn't known.


shishi_krberror_methoddata ()

int
shishi_krberror_methoddata (Shishi *handle,
                            Shishi_asn1 krberror,
                            Shishi_asn1 *methoddata);

Extract METHOD-DATA ASN.1 object from the e-data field. The e-data field will only contain a METHOD-DATA if the krberror error code is SHISHI_KDC_ERR_PREAUTH_REQUIRED.

Parameters

handle

shishi handle as allocated by shishi_init().

 

krberror

KRB-ERROR structure with error code.

 

methoddata

output ASN.1 METHOD-DATA.

 

Returns

Returns SHISHI_OK iff successful.


shishi_generalize_time ()

const char *
shishi_generalize_time (Shishi *handle,
                        time_t t);

Converts C time t to a KerberosTime string representation. The returned string must not be deallocated by the caller.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

t

C time to convert.

 

Returns

Returns a KerberosTime formatted string corresponding to the input parameter.


shishi_generalize_now ()

const char *
shishi_generalize_now (Shishi *handle);

Converts the current time to a KerberosTime string. The returned string must not be deallocated by the caller.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

Returns

Returns a KerberosTime formatted string corresponding to the current time.


shishi_generalize_ctime ()

time_t
shishi_generalize_ctime (Shishi *handle,
                         const char *t);

Converts a KerberosTime formatted string in t to integral C time representation.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

t

KerberosTime string to convert.

 

Returns

Returns the C time corresponding to the input argument.


shishi_time ()

int
shishi_time (Shishi *handle,
             Shishi_asn1 node,
             const char *field,
             char **t);

Extracts time information from an ASN.1 structure, and to be precise, does so from the named field field within the structure node .

Parameters

handle

Shishi handle as allocated by shishi_init().

 

node

ASN.1 structure to get time from.

 

field

Name of the field in the ASN.1 node carrying time.

 

t

Returned pointer to an allocated char array containing a null-terminated time string.

 

Returns

Returns SHISHI_OK if successful, or an error.


shishi_ctime ()

int
shishi_ctime (Shishi *handle,
              Shishi_asn1 node,
              const char *field,
              time_t *t);

Extracts time information from an ASN.1 structure node , and from an arbitrary element field of that structure.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

node

ASN.1 structure to read field from.

 

field

Name of field in node to read.

 

t

Pointer to a C-time valued integer, being updated with the time value to be extracted.

 

Returns

Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element does not exist, SHISHI_ASN1_NO_VALUE if the field has no value. In all other cases, SHISHI_ASN1_ERROR is returned.


shishi_randomize ()

int
shishi_randomize (Shishi *handle,
                  int strong,
                  void *data,
                  size_t datalen);

Store cryptographically random data of given size in the provided buffer.

Parameters

handle

shishi handle as allocated by shishi_init().

 

strong

0 iff operation should not block, non-0 for very strong randomness.

 

data

output array to be filled with random data.

 

datalen

size of output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_crc ()

int
shishi_crc (Shishi *handle,
            const char *in,
            size_t inlen,
            char *out[4]);

Compute checksum of data using CRC32 modified according to RFC

  1. The out buffer must be deallocated by the caller.

The modifications compared to standard CRC32 is that no initial and final XOR is performed, and that the output is returned in LSB-first order.

Parameters

handle

shishi handle as allocated by shishi_init().

 

in

input character array of data to checksum.

 

inlen

length of input character array of data to checksum.

 

out

newly allocated character array with checksum of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_md4 ()

int
shishi_md4 (Shishi *handle,
            const char *in,
            size_t inlen,
            char *out[16]);

Compute hash of data using MD4. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

in

input character array of data to hash.

 

inlen

length of input character array of data to hash.

 

out

newly allocated character array with hash of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_md5 ()

int
shishi_md5 (Shishi *handle,
            const char *in,
            size_t inlen,
            char *out[16]);

Compute hash of data using MD5. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

in

input character array of data to hash.

 

inlen

length of input character array of data to hash.

 

out

newly allocated character array with hash of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_hmac_md5 ()

int
shishi_hmac_md5 (Shishi *handle,
                 const char *key,
                 size_t keylen,
                 const char *in,
                 size_t inlen,
                 char *outhash[16]);

Compute keyed checksum of data using HMAC-MD5. The outhash buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

input character array with key to use.

 

keylen

length of input character array with key to use.

 

in

input character array of data to hash.

 

inlen

length of input character array of data to hash.

 

outhash

newly allocated character array with keyed hash of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_hmac_sha1 ()

int
shishi_hmac_sha1 (Shishi *handle,
                  const char *key,
                  size_t keylen,
                  const char *in,
                  size_t inlen,
                  char *outhash[20]);

Compute keyed checksum of data using HMAC-SHA1. The outhash buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

input character array with key to use.

 

keylen

length of input character array with key to use.

 

in

input character array of data to hash.

 

inlen

length of input character array of data to hash.

 

outhash

newly allocated character array with keyed hash of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_des_cbc_mac ()

int
shishi_des_cbc_mac (Shishi *handle,
                    const char key[8],
                    const char iv[8],
                    const char *in,
                    size_t inlen,
                    char *out[8]);

Computed keyed checksum of data using DES-CBC-MAC. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

input character array with key to use.

 

iv

input character array with initialization vector to use, can be NULL.

 

in

input character array of data to hash.

 

inlen

length of input character array of data to hash.

 

out

newly allocated character array with keyed hash of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_arcfour ()

int
shishi_arcfour (Shishi *handle,
                int decryptp,
                const char *key,
                size_t keylen,
                const char iv[258],
                char *ivout[258],
                const char *in,
                size_t inlen,
                char **out);

Encrypt or decrypt data (depending on decryptp ) using ARCFOUR. The out buffer must be deallocated by the caller.

The "initialization vector" used here is the concatenation of the sbox and i and j, and is thus always of size 256 + 1 + 1. This is a slight abuse of terminology, and assumes you know what you are doing. Don't use it if you can avoid to.

Parameters

handle

shishi handle as allocated by shishi_init().

 

decryptp

0 to indicate encryption, non-0 to indicate decryption.

 

key

input character array with key to use.

 

keylen

length of input key array.

 

iv

input character array with initialization vector to use, or NULL.

 

ivout

output character array with updated initialization vector, or NULL.

 

in

input character array of data to encrypt/decrypt.

 

inlen

length of input character array of data to encrypt/decrypt.

 

out

newly allocated character array with encrypted/decrypted data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_des ()

int
shishi_des (Shishi *handle,
            int decryptp,
            const char key[8],
            const char iv[8],
            char *ivout[8],
            const char *in,
            size_t inlen,
            char **out);

Encrypt or decrypt data (depending on decryptp ) using DES in CBC mode. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

decryptp

0 to indicate encryption, non-0 to indicate decryption.

 

key

input character array with key to use.

 

iv

input character array with initialization vector to use, or NULL.

 

ivout

output character array with updated initialization vector, or NULL.

 

in

input character array of data to encrypt/decrypt.

 

inlen

length of input character array of data to encrypt/decrypt.

 

out

newly allocated character array with encrypted/decrypted data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_3des ()

int
shishi_3des (Shishi *handle,
             int decryptp,
             const char key[24],
             const char iv[8],
             char *ivout[8],
             const char *in,
             size_t inlen,
             char **out);

Encrypt or decrypt data (depending on decryptp ) using 3DES in CBC mode. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

decryptp

0 to indicate encryption, non-0 to indicate decryption.

 

key

input character array with key to use.

 

iv

input character array with initialization vector to use, or NULL.

 

ivout

output character array with updated initialization vector, or NULL.

 

in

input character array of data to encrypt/decrypt.

 

inlen

length of input character array of data to encrypt/decrypt.

 

out

newly allocated character array with encrypted/decrypted data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aes_cts ()

int
shishi_aes_cts (Shishi *handle,
                int decryptp,
                const char *key,
                size_t keylen,
                const char iv[16],
                char *ivout[16],
                const char *in,
                size_t inlen,
                char **out);

Encrypt or decrypt data (depending on decryptp ) using AES in CBC-CTS mode. The length of the key, keylen , decide if AES 128 or AES 256 should be used. The out buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

decryptp

0 to indicate encryption, non-0 to indicate decryption.

 

key

input character array with key to use.

 

keylen

length of input character array with key to use.

 

iv

input character array with initialization vector to use, or NULL.

 

ivout

output character array with updated initialization vector, or NULL.

 

in

input character array of data to encrypt/decrypt.

 

inlen

length of input character array of data to encrypt/decrypt.

 

out

newly allocated character array with encrypted/decrypted data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_cipher_supported_p ()

int
shishi_cipher_supported_p (int type);

Find out if cipher is supported.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return 0 iff cipher is unsupported.


shishi_cipher_name ()

const char *
shishi_cipher_name (int type);

Read humanly readable string for cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return name of encryption type, e.g. "des3-cbc-sha1-kd", as defined in the standards.


shishi_cipher_blocksize ()

int
shishi_cipher_blocksize (int type);

Get block size for cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return block size for encryption type, as defined in the standards.


shishi_cipher_confoundersize ()

int
shishi_cipher_confoundersize (int type);

Get length of confounder for cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Returns the size of the confounder (random data) for encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type).


shishi_cipher_keylen ()

size_t
shishi_cipher_keylen (int type);

Get key length for cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return length of key used for the encryption type, as defined in the standards.


shishi_cipher_randomlen ()

size_t
shishi_cipher_randomlen (int type);

Get length of random data for cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return length of random used for the encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type).


shishi_cipher_defaultcksumtype ()

int
shishi_cipher_defaultcksumtype (int32_t type);

Get the default checksum associated with cipher.

Parameters

type

encryption type, see Shishi_etype.

 

Returns

Return associated checksum mechanism for the encryption type, as defined in the standards.


shishi_cipher_parse ()

int
shishi_cipher_parse (const char *cipher);

Get cipher number by parsing string.

Parameters

cipher

name of encryption type, e.g. "des3-cbc-sha1-kd".

 

Returns

Return encryption type corresponding to a string.


shishi_checksum_supported_p ()

int
shishi_checksum_supported_p (int32_t type);

Find out whether checksum is supported.

Parameters

type

checksum type, see Shishi_cksumtype.

 

Returns

Return 0 iff checksum is unsupported.


shishi_checksum_name ()

const char *
shishi_checksum_name (int32_t type);

Get name of checksum.

Parameters

type

checksum type, see Shishi_cksumtype.

 

Returns

Return name of checksum type, e.g. "hmac-sha1-96-aes256", as defined in the standards.


shishi_checksum_cksumlen ()

size_t
shishi_checksum_cksumlen (int32_t type);

Get length of checksum output.

Parameters

type

checksum type, see Shishi_cksumtype.

 

Returns

Return length of checksum used for the checksum type, as defined in the standards.


shishi_checksum_parse ()

int
shishi_checksum_parse (const char *checksum);

Get checksum number by parsing a string.

Parameters

checksum

name of checksum type, e.g. "hmac-sha1-96-aes256".

 

Returns

Return checksum type, see Shishi_cksumtype, corresponding to a string.


shishi_string_to_key ()

int
shishi_string_to_key (Shishi *handle,
                      int32_t keytype,
                      const char *password,
                      size_t passwordlen,
                      const char *salt,
                      size_t saltlen,
                      const char *parameter,
                      Shishi_key *outkey);

Derive key from a string (password) and salt (commonly concatenation of realm and principal) for specified key type, and set the type and value in the given key to the computed values. The parameter value is specific for each keytype, and can be set if the parameter information is not available.

Parameters

handle

shishi handle as allocated by shishi_init().

 

keytype

cryptographic encryption type, see Shishi_etype.

 

password

input array with password.

 

passwordlen

length of input array with password.

 

salt

input array with salt.

 

saltlen

length of input array with salt.

 

parameter

input array with opaque encryption type specific information.

 

outkey

allocated key handle that will contain new key.

 

Returns

Returns SHISHI_OK iff successful.


shishi_random_to_key ()

int
shishi_random_to_key (Shishi *handle,
                      int32_t keytype,
                      const char *rnd,
                      size_t rndlen,
                      Shishi_key *outkey);

Derive key from random data for specified key type, and set the type and value in the given key to the computed values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

keytype

cryptographic encryption type, see Shishi_etype.

 

rnd

input array with random data.

 

rndlen

length of input array with random data.

 

outkey

allocated key handle that will contain new key.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt_ivupdate_etype ()

int
shishi_encrypt_ivupdate_etype (Shishi *handle,
                               Shishi_key *key,
                               int keyusage,
                               int32_t etype,
                               const char *iv,
                               size_t ivlen,
                               char **ivout,
                               size_t *ivoutlen,
                               const char *in,
                               size_t inlen,
                               char **out,
                               size_t *outlen);

Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

etype

integer specifying what cipher to use.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

ivout

output array with newly allocated updated initialization vector.

 

ivoutlen

size of output array with updated initialization vector.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt_iv_etype ()

int
shishi_encrypt_iv_etype (Shishi *handle,
                         Shishi_key *key,
                         int keyusage,
                         int32_t etype,
                         const char *iv,
                         size_t ivlen,
                         const char *in,
                         size_t inlen,
                         char **out,
                         size_t *outlen);

Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

etype

integer specifying what cipher to use.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt_etype ()

int
shishi_encrypt_etype (Shishi *handle,
                      Shishi_key *key,
                      int keyusage,
                      int32_t etype,
                      const char *in,
                      size_t inlen,
                      char **out,
                      size_t *outlen);

Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

etype

integer specifying what cipher to use.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt_ivupdate ()

int
shishi_encrypt_ivupdate (Shishi *handle,
                         Shishi_key *key,
                         int keyusage,
                         const char *iv,
                         size_t ivlen,
                         char **ivout,
                         size_t *ivoutlen,
                         const char *in,
                         size_t inlen,
                         char **out,
                         size_t *outlen);

Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

ivout

output array with newly allocated updated initialization vector.

 

ivoutlen

size of output array with updated initialization vector.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt_iv ()

int
shishi_encrypt_iv (Shishi *handle,
                   Shishi_key *key,
                   int keyusage,
                   const char *iv,
                   size_t ivlen,
                   const char *in,
                   size_t inlen,
                   char **out,
                   size_t *outlen);

Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encrypt ()

int
shishi_encrypt (Shishi *handle,
                Shishi_key *key,
                int keyusage,
                char *in,
                size_t inlen,
                char **out,
                size_t *outlen);

Encrypts data using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key is encrypting.

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt_ivupdate_etype ()

int
shishi_decrypt_ivupdate_etype (Shishi *handle,
                               Shishi_key *key,
                               int keyusage,
                               int32_t etype,
                               const char *iv,
                               size_t ivlen,
                               char **ivout,
                               size_t *ivoutlen,
                               const char *in,
                               size_t inlen,
                               char **out,
                               size_t *outlen);

Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

etype

integer specifying what cipher to use.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

ivout

output array with newly allocated updated initialization vector.

 

ivoutlen

size of output array with updated initialization vector.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt_iv_etype ()

int
shishi_decrypt_iv_etype (Shishi *handle,
                         Shishi_key *key,
                         int keyusage,
                         int32_t etype,
                         const char *iv,
                         size_t ivlen,
                         const char *in,
                         size_t inlen,
                         char **out,
                         size_t *outlen);

Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

etype

integer specifying what cipher to use.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt_etype ()

int
shishi_decrypt_etype (Shishi *handle,
                      Shishi_key *key,
                      int keyusage,
                      int32_t etype,
                      const char *in,
                      size_t inlen,
                      char **out,
                      size_t *outlen);

Decrypts data as per encryption method using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

etype

integer specifying what cipher to use.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt_ivupdate ()

int
shishi_decrypt_ivupdate (Shishi *handle,
                         Shishi_key *key,
                         int keyusage,
                         const char *iv,
                         size_t ivlen,
                         char **ivout,
                         size_t *ivoutlen,
                         const char *in,
                         size_t inlen,
                         char **out,
                         size_t *outlen);

Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

ivout

output array with newly allocated updated initialization vector.

 

ivoutlen

size of output array with updated initialization vector.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt_iv ()

int
shishi_decrypt_iv (Shishi *handle,
                   Shishi_key *key,
                   int keyusage,
                   const char *iv,
                   size_t ivlen,
                   const char *in,
                   size_t inlen,
                   char **out,
                   size_t *outlen);

Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_decrypt ()

int
shishi_decrypt (Shishi *handle,
                Shishi_key *key,
                int keyusage,
                const char *in,
                size_t inlen,
                char **out,
                size_t *outlen);

Decrypts data specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate if you need it.

Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to decrypt with.

 

keyusage

integer specifying what this key is decrypting.

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_checksum ()

int
shishi_checksum (Shishi *handle,
                 Shishi_key *key,
                 int keyusage,
                 int32_t cksumtype,
                 const char *in,
                 size_t inlen,
                 char **out,
                 size_t *outlen);

Integrity protect data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to compute checksum with.

 

keyusage

integer specifying what this key is used for.

 

cksumtype

the checksum algorithm to use.

 

in

input array with data to integrity protect.

 

inlen

size of input array with data to integrity protect.

 

out

output array with newly allocated integrity protected data.

 

outlen

output variable with length of output array with checksum.

 

Returns

Returns SHISHI_OK iff successful.


shishi_verify ()

int
shishi_verify (Shishi *handle,
               Shishi_key *key,
               int keyusage,
               int cksumtype,
               const char *in,
               size_t inlen,
               const char *cksum,
               size_t cksumlen);

Verify checksum of data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used.

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to verify checksum with.

 

keyusage

integer specifying what this key is used for.

 

cksumtype

the checksum algorithm to use.

 

in

input array with data that was integrity protected.

 

inlen

size of input array with data that was integrity protected.

 

cksum

input array with alleged checksum of data.

 

cksumlen

size of input array with alleged checksum of data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_dk ()

int
shishi_dk (Shishi *handle,
           Shishi_key *key,
           const char *prfconstant,
           size_t prfconstantlen,
           Shishi_key *derivedkey);

Derive a key from a key and a constant thusly: DK(KEY, PRFCONSTANT) = SHISHI_RANDOM-TO-KEY(SHISHI_DR(KEY, PRFCONSTANT)).

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

input cryptographic key to use.

 

prfconstant

input array with the constant string.

 

prfconstantlen

size of input array with the constant string.

 

derivedkey

pointer to derived key (allocated by caller).

 

Returns

Returns SHISHI_OK iff successful.


shishi_dr ()

int
shishi_dr (Shishi *handle,
           Shishi_key *key,
           const char *prfconstant,
           size_t prfconstantlen,
           char *derivedrandom,
           size_t derivedrandomlen);

Derive "random" data from a key and a constant thusly: DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, SHISHI_ENCRYPT(KEY, PRFCONSTANT)).

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

input array with cryptographic key to use.

 

prfconstant

input array with the constant string.

 

prfconstantlen

size of input array with the constant string.

 

derivedrandom

output array with derived random data.

 

derivedrandomlen

size of output array with derived random data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_n_fold ()

int
shishi_n_fold (Shishi *handle,
               const char *in,
               size_t inlen,
               char *out,
               size_t outlen);

Fold data into a fixed length output array, with the intent to give each input bit approximately equal weight in determining the value of each output bit.

The algorithm is from "A Better Key Schedule For DES-like Ciphers" by Uri Blumenthal and Steven M. Bellovin, http://www.research.att.com/~smb/papers/ides.pdf, although the sample vectors provided by the paper are incorrect.

Parameters

handle

shishi handle as allocated by shishi_init().

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt ("M").

 

out

output array with decrypted data.

 

outlen

size of output array ("N").

 

Returns

Returns SHISHI_OK iff successful.


shishi_pbkdf2_sha1 ()

int
shishi_pbkdf2_sha1 (Shishi *handle,
                    const char *P,
                    size_t Plen,
                    const char *S,
                    size_t Slen,
                    unsigned int c,
                    unsigned int dkLen,
                    char *DK);

Derive key using the PBKDF2 defined in PKCS5. PBKDF2 applies a pseudorandom function to derive keys. The length of the derived key is essentially unbounded. (However, the maximum effective search space for the derived key may be limited by the structure of the underlying pseudorandom function, which is this function is always SHA1.)

Parameters

handle

shishi handle as allocated by shishi_init().

 

P

input password, an octet string

 

Plen

length of password, an octet string

 

S

input salt, an octet string

 

Slen

length of salt, an octet string

 

c

iteration count, a positive integer

 

dkLen

intended length in octets of the derived key, a positive integer, at most (2^32 - 1) * hLen. The DK array must have room for this many characters.

 

DK

output derived key, a dkLen-octet string

 

Returns

Returns SHISHI_OK iff successful.


shishi_crypto ()

Shishi_crypto *
shishi_crypto (Shishi *handle,
               Shishi_key *key,
               int keyusage,
               int32_t etype,
               const char *iv,
               size_t ivlen);

Initialize a crypto context. This store a key, keyusage, encryption type and initialization vector in a "context", and the caller can then use this context to perform encryption via shishi_crypto_encrypt() and decryption via shishi_crypto_encrypt() without supplying all those details again. The functions also takes care of propagating the IV between calls.

When the application no longer need to use the context, it should deallocate resources associated with it by calling shishi_crypto_close().

Parameters

handle

shishi handle as allocated by shishi_init().

 

key

key to encrypt with.

 

keyusage

integer specifying what this key will encrypt/decrypt.

 

etype

integer specifying what cipher to use.

 

iv

input array with initialization vector

 

ivlen

size of input array with initialization vector.

 

Returns

Return a newly allocated crypto context.


shishi_crypto_close ()

void
shishi_crypto_close (Shishi_crypto *ctx);

Deallocate resources associated with the crypto context.

Parameters

ctx

crypto context as returned by shishi_crypto().

 

shishi_crypto_encrypt ()

int
shishi_crypto_encrypt (Shishi_crypto *ctx,
                       const char *in,
                       size_t inlen,
                       char **out,
                       size_t *outlen);

Encrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call.

When the application no longer need to use the context, it should deallocate resources associated with it by calling shishi_crypto_close().

Parameters

ctx

crypto context as returned by shishi_crypto().

 

in

input array with data to encrypt.

 

inlen

size of input array with data to encrypt.

 

out

output array with newly allocated encrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_crypto_decrypt ()

int
shishi_crypto_decrypt (Shishi_crypto *ctx,
                       const char *in,
                       size_t inlen,
                       char **out,
                       size_t *outlen);

Decrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call.

When the application no longer need to use the context, it should deallocate resources associated with it by calling shishi_crypto_close().

Parameters

ctx

crypto context as returned by shishi_crypto().

 

in

input array with data to decrypt.

 

inlen

size of input array with data to decrypt.

 

out

output array with newly allocated decrypted data.

 

outlen

output variable with size of newly allocated output array.

 

Returns

Returns SHISHI_OK iff successful.


shishi_check_version ()

const char *
shishi_check_version (const char *req_version);

Checks that the installed library version is at least as recent as the one provided in req_version . The version string is formatted like "1.0.2".

Whenever NULL is passed to this function, the check is suppressed, but the library version is still returned.

Parameters

req_version

Oldest acceptable version, or NULL.

 

Returns

Returns the active library version, or NULL, should the running library be too old.


shishi_prompt_password_func ()

int
(*shishi_prompt_password_func) (Shishi *handle,
                                char **s,
                                const char *format,
                                va_list ap);

shishi_prompt_password_callback_set ()

void
shishi_prompt_password_callback_set (Shishi *handle,
                                     shishi_prompt_password_func cb);

Set a callback function that will be used by shishi_prompt_password() to query the user for a password. The function pointer can be retrieved using shishi_prompt_password_callback_get().

The cb function should follow the shishi_prompt_password_func prototype:

int prompt_password (Shishi * handle , char **s , const char *format , va_list ap );

If the function returns 0, the s variable should contain a newly allocated string with the password read from the user.

Parameters

handle

shishi handle as allocated by shishi_init().

 

cb

function pointer to application password callback, a shishi_prompt_password_func type.

 

shishi_prompt_password_callback_get ()

shishi_prompt_password_func
shishi_prompt_password_callback_get (Shishi *handle);

Get the application password prompt function callback as set by shishi_prompt_password_callback_set().

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the callback, a shishi_prompt_password_func type, or NULL.


shishi_prompt_password ()

int
shishi_prompt_password (Shishi *handle,
                        char **s,
                        const char *format,
                        ...);

Format and print a prompt, and read a password from user. The password is possibly converted (e.g., converted from Latin-1 to UTF-8, or processed using Stringprep profile) following any "stringprocess" keywords in configuration files.

Parameters

handle

shishi handle as allocated by shishi_init().

 

s

pointer to newly allocated output string with read password.

 

format

printf(3) style format string.

 

...

printf(3) style arguments.

 

Returns

Returns SHISHI_OK iff successful.


shishi_asn1_number_of_elements ()

int
shishi_asn1_number_of_elements (Shishi *handle,
                                Shishi_asn1 node,
                                const char *field,
                                size_t *n);

shishi_asn1_empty_p ()

int
shishi_asn1_empty_p (Shishi *handle,
                     Shishi_asn1 node,
                     const char *field);

shishi_asn1_read ()

int
shishi_asn1_read (Shishi *handle,
                  Shishi_asn1 node,
                  const char *field,
                  char **data,
                  size_t *datalen);

Extract data stored in a ASN.1 field into a newly allocated buffer. The buffer will always be zero terminated, even though datalen will not include the added zero.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 variable to read field from.

 

field

name of field in node to read.

 

data

newly allocated output buffer that will hold ASN.1 field data.

 

datalen

actual size of output buffer.

 

Returns

Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise.


shishi_asn1_read_inline ()

int
shishi_asn1_read_inline (Shishi *handle,
                         Shishi_asn1 node,
                         const char *field,
                         char *data,
                         size_t *datalen);

Extract data stored in a ASN.1 field into a fixed size buffer allocated by caller.

Note that since it is difficult to predict the length of the field, it is often better to use shishi_asn1_read() instead.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 variable to read field from.

 

field

name of field in node to read.

 

data

pre-allocated output buffer that will hold ASN.1 field data.

 

datalen

on input, maximum size of output buffer, on output, actual size of output buffer.

 

Returns

Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise.


shishi_asn1_read_integer ()

int
shishi_asn1_read_integer (Shishi *handle,
                          Shishi_asn1 node,
                          const char *field,
                          int *i);

shishi_asn1_read_int32 ()

int
shishi_asn1_read_int32 (Shishi *handle,
                        Shishi_asn1 node,
                        const char *field,
                        int32_t *i);

shishi_asn1_read_uint32 ()

int
shishi_asn1_read_uint32 (Shishi *handle,
                         Shishi_asn1 node,
                         const char *field,
                         uint32_t *i);

shishi_asn1_read_bitstring ()

int
shishi_asn1_read_bitstring (Shishi *handle,
                            Shishi_asn1 node,
                            const char *field,
                            uint32_t *flags);

shishi_asn1_read_optional ()

int
shishi_asn1_read_optional (Shishi *handle,
                           Shishi_asn1 node,
                           const char *field,
                           char **data,
                           size_t *datalen);

Extract data stored in a ASN.1 field into a newly allocated buffer. If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this function set datalen to 0 and succeeds. Can be useful to read ASN.1 fields which are marked OPTIONAL in the grammar, if you want to avoid special error handling in your code.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 variable to read field from.

 

field

name of field in node to read.

 

data

newly allocated output buffer that will hold ASN.1 field data.

 

datalen

actual size of output buffer.

 

Returns

Returns SHISHI_OK if successful, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise.


shishi_asn1_write ()

int
shishi_asn1_write (Shishi *handle,
                   Shishi_asn1 node,
                   const char *field,
                   const char *data,
                   size_t datalen);

shishi_asn1_write_integer ()

int
shishi_asn1_write_integer (Shishi *handle,
                           Shishi_asn1 node,
                           const char *field,
                           int n);

shishi_asn1_write_int32 ()

int
shishi_asn1_write_int32 (Shishi *handle,
                         Shishi_asn1 node,
                         const char *field,
                         int32_t n);

shishi_asn1_write_uint32 ()

int
shishi_asn1_write_uint32 (Shishi *handle,
                          Shishi_asn1 node,
                          const char *field,
                          uint32_t n);

shishi_asn1_write_bitstring ()

int
shishi_asn1_write_bitstring (Shishi *handle,
                             Shishi_asn1 node,
                             const char *field,
                             uint32_t flags);

shishi_asn1_done ()

void
shishi_asn1_done (Shishi *handle,
                  Shishi_asn1 node);

Deallocate resources associated with ASN.1 structure. Note that the node must not be used after this call.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 node to deallocate.

 

shishi_asn1_pa_enc_ts_enc ()

Shishi_asn1
shishi_asn1_pa_enc_ts_enc (Shishi *handle);

Create new ASN.1 structure for PA-ENC-TS-ENC.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_encrypteddata ()

Shishi_asn1
shishi_asn1_encrypteddata (Shishi *handle);

Create new ASN.1 structure for EncryptedData

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_padata ()

Shishi_asn1
shishi_asn1_padata (Shishi *handle);

Create new ASN.1 structure for PA-DATA.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_methoddata ()

Shishi_asn1
shishi_asn1_methoddata (Shishi *handle);

Create new ASN.1 structure for METHOD-DATA.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_etype_info ()

Shishi_asn1
shishi_asn1_etype_info (Shishi *handle);

Create new ASN.1 structure for ETYPE-INFO.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_etype_info2 ()

Shishi_asn1
shishi_asn1_etype_info2 (Shishi *handle);

Create new ASN.1 structure for ETYPE-INFO2.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_asreq ()

Shishi_asn1
shishi_asn1_asreq (Shishi *handle);

Create new ASN.1 structure for AS-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_asrep ()

Shishi_asn1
shishi_asn1_asrep (Shishi *handle);

Create new ASN.1 structure for AS-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_tgsreq ()

Shishi_asn1
shishi_asn1_tgsreq (Shishi *handle);

Create new ASN.1 structure for TGS-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_tgsrep ()

Shishi_asn1
shishi_asn1_tgsrep (Shishi *handle);

Create new ASN.1 structure for TGS-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_apreq ()

Shishi_asn1
shishi_asn1_apreq (Shishi *handle);

Create new ASN.1 structure for AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_aprep ()

Shishi_asn1
shishi_asn1_aprep (Shishi *handle);

Create new ASN.1 structure for AP-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_ticket ()

Shishi_asn1
shishi_asn1_ticket (Shishi *handle);

Create new ASN.1 structure for Ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_encapreppart ()

Shishi_asn1
shishi_asn1_encapreppart (Shishi *handle);

Create new ASN.1 structure for AP-REP.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_encticketpart ()

Shishi_asn1
shishi_asn1_encticketpart (Shishi *handle);

Create new ASN.1 structure for EncTicketPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_authenticator ()

Shishi_asn1
shishi_asn1_authenticator (Shishi *handle);

Create new ASN.1 structure for Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_enckdcreppart ()

Shishi_asn1
shishi_asn1_enckdcreppart (Shishi *handle);

Create new ASN.1 structure for EncKDCRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_encasreppart ()

Shishi_asn1
shishi_asn1_encasreppart (Shishi *handle);

Create new ASN.1 structure for EncASRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_krberror ()

Shishi_asn1
shishi_asn1_krberror (Shishi *handle);

Create new ASN.1 structure for KRB-ERROR.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_krbsafe ()

Shishi_asn1
shishi_asn1_krbsafe (Shishi *handle);

Create new ASN.1 structure for KRB-SAFE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_priv ()

Shishi_asn1
shishi_asn1_priv (Shishi *handle);

Create new ASN.1 structure for KRB-PRIV.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_encprivpart ()

Shishi_asn1
shishi_asn1_encprivpart (Shishi *handle);

Create new ASN.1 structure for EncKrbPrivPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns ASN.1 structure.


shishi_asn1_to_der ()

int
shishi_asn1_to_der (Shishi *handle,
                    Shishi_asn1 node,
                    char **der,
                    size_t *len);

Extract newly allocated DER representation of specified ASN.1 data.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 data to convert to DER.

 

der

output array that holds DER encoding of node .

 

len

output variable with length of der output array.

 

Returns

Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values).


shishi_asn1_to_der_field ()

int
shishi_asn1_to_der_field (Shishi *handle,
                          Shishi_asn1 node,
                          const char *field,
                          char **der,
                          size_t *len);

Extract newly allocated DER representation of specified ASN.1 field.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 data that have field to extract.

 

field

name of field in node to extract.

 

der

output array that holds DER encoding of field in node .

 

len

output variable with length of der output array.

 

Returns

Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values).


shishi_asn1_msgtype ()

Shishi_msgtype
shishi_asn1_msgtype (Shishi *handle,
                     Shishi_asn1 node);

Determine msg-type of ASN.1 type of a packet. Currently this uses the msg-type field instead of the APPLICATION tag, but this may be changed in the future.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 type to get msg type for.

 

Returns

Returns msg-type of ASN.1 type, 0 on failure.


shishi_der_msgtype ()

Shishi_msgtype
shishi_der_msgtype (Shishi *handle,
                    const char *der,
                    size_t derlen);

Determine msg-type of DER coded data of a packet.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns msg-type of DER data, 0 on failure.


shishi_asn1_print ()

void
shishi_asn1_print (Shishi *handle,
                   Shishi_asn1 node,
                   FILE *fh);

Print ASN.1 structure in human readable form, typically for debugging purposes.

Parameters

handle

shishi handle as allocated by shishi_init().

 

node

ASN.1 data that have field to extract.

 

fh

file descriptor to print to, e.g. stdout.

 

shishi_der2asn1 ()

Shishi_asn1
shishi_der2asn1 (Shishi *handle,
                 const char *der,
                 size_t derlen);

Convert arbitrary DER data of a packet to a ASN.1 type.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns newly allocate ASN.1 corresponding to DER data, or NULL on failure.


shishi_der2asn1_padata ()

Shishi_asn1
shishi_der2asn1_padata (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of PA-DATA and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_methoddata ()

Shishi_asn1
shishi_der2asn1_methoddata (Shishi *handle,
                            const char *der,
                            size_t derlen);

Decode DER encoding of METHOD-DATA and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_etype_info ()

Shishi_asn1
shishi_der2asn1_etype_info (Shishi *handle,
                            const char *der,
                            size_t derlen);

Decode DER encoding of ETYPE-INFO and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_etype_info2 ()

Shishi_asn1
shishi_der2asn1_etype_info2 (Shishi *handle,
                             const char *der,
                             size_t derlen);

Decode DER encoding of ETYPE-INFO2 and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_ticket ()

Shishi_asn1
shishi_der2asn1_ticket (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of Ticket and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_encticketpart ()

Shishi_asn1
shishi_der2asn1_encticketpart (Shishi *handle,
                               const char *der,
                               size_t derlen);

Decode DER encoding of EncTicketPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_asreq ()

Shishi_asn1
shishi_der2asn1_asreq (Shishi *handle,
                       const char *der,
                       size_t derlen);

Decode DER encoding of AS-REQ and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_tgsreq ()

Shishi_asn1
shishi_der2asn1_tgsreq (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of TGS-REQ and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_asrep ()

Shishi_asn1
shishi_der2asn1_asrep (Shishi *handle,
                       const char *der,
                       size_t derlen);

Decode DER encoding of AS-REP and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_tgsrep ()

Shishi_asn1
shishi_der2asn1_tgsrep (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of TGS-REP and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_kdcrep ()

Shishi_asn1
shishi_der2asn1_kdcrep (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of KDC-REP and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_kdcreq ()

Shishi_asn1
shishi_der2asn1_kdcreq (Shishi *handle,
                        const char *der,
                        size_t derlen);

Decode DER encoding of AS-REQ, TGS-REQ or KDC-REQ and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_apreq ()

Shishi_asn1
shishi_der2asn1_apreq (Shishi *handle,
                       const char *der,
                       size_t derlen);

Decode DER encoding of AP-REQ and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_aprep ()

Shishi_asn1
shishi_der2asn1_aprep (Shishi *handle,
                       const char *der,
                       size_t derlen);

Decode DER encoding of AP-REP and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_authenticator ()

Shishi_asn1
shishi_der2asn1_authenticator (Shishi *handle,
                               const char *der,
                               size_t derlen);

Decode DER encoding of Authenticator and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_krberror ()

Shishi_asn1
shishi_der2asn1_krberror (Shishi *handle,
                          const char *der,
                          size_t derlen);

Decode DER encoding of KRB-ERROR and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_krbsafe ()

Shishi_asn1
shishi_der2asn1_krbsafe (Shishi *handle,
                         const char *der,
                         size_t derlen);

Decode DER encoding of KRB-SAFE and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_priv ()

Shishi_asn1
shishi_der2asn1_priv (Shishi *handle,
                      const char *der,
                      size_t derlen);

Decode DER encoding of KRB-PRIV and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_encasreppart ()

Shishi_asn1
shishi_der2asn1_encasreppart (Shishi *handle,
                              const char *der,
                              size_t derlen);

Decode DER encoding of EncASRepPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_enctgsreppart ()

Shishi_asn1
shishi_der2asn1_enctgsreppart (Shishi *handle,
                               const char *der,
                               size_t derlen);

Decode DER encoding of EncTGSRepPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_enckdcreppart ()

Shishi_asn1
shishi_der2asn1_enckdcreppart (Shishi *handle,
                               const char *der,
                               size_t derlen);

Decode DER encoding of EncKDCRepPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_encapreppart ()

Shishi_asn1
shishi_der2asn1_encapreppart (Shishi *handle,
                              const char *der,
                              size_t derlen);

Decode DER encoding of EncAPRepPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_der2asn1_encprivpart ()

Shishi_asn1
shishi_der2asn1_encprivpart (Shishi *handle,
                             const char *der,
                             size_t derlen);

Decode DER encoding of EncKrbPrivPart and create a ASN.1 structure.

Parameters

handle

shishi handle as allocated by shishi_init().

 

der

input character array with DER encoding.

 

derlen

length of input character array with DER encoding.

 

Returns

Returns ASN.1 structure corresponding to DER data.


shishi_ap ()

int
shishi_ap (Shishi *handle,
           Shishi_ap **ap);

Create a new AP exchange with a random subkey of the default encryption type from configuration. Note that there is no guarantee that the receiver will understand that key type, you should probably use shishi_ap_etype() or shishi_ap_nosubkey() instead. In the future, this function will likely behave as shishi_ap_nosubkey() and shishi_ap_nosubkey() will be removed.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_etype ()

int
shishi_ap_etype (Shishi *handle,
                 Shishi_ap **ap,
                 int etype);

Create a new AP exchange with a random subkey of indicated encryption type.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

etype

encryption type of newly generated random subkey.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_nosubkey ()

int
shishi_ap_nosubkey (Shishi *handle,
                    Shishi_ap **ap);

Create a new AP exchange without subkey in authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_done ()

void
shishi_ap_done (Shishi_ap *ap);

Deallocate resources associated with AP exchange. This should be called by the application when it no longer need to utilize the AP exchange handle.

Parameters

ap

structure that holds information about AP exchange

 

shishi_ap_set_tktoptions ()

int
shishi_ap_set_tktoptions (Shishi_ap *ap,
                          Shishi_tkt *tkt,
                          int options);

Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ apoptions (see shishi_apreq_options_set()).

Parameters

ap

structure that holds information about AP exchange

 

tkt

ticket to set in AP.

 

options

AP-REQ options to set in AP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_tktoptions ()

int
shishi_ap_tktoptions (Shishi *handle,
                      Shishi_ap **ap,
                      Shishi_tkt *tkt,
                      int options);

Create a new AP exchange using shishi_ap(), and set the ticket and AP-REQ apoptions using shishi_ap_set_tktoptions(). A random session key is added to the authenticator, using the same keytype as the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

tkt

ticket to set in newly created AP.

 

options

AP-REQ options to set in newly created AP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_etype_tktoptionsdata ()

int
shishi_ap_etype_tktoptionsdata (Shishi *handle,
                                Shishi_ap **ap,
                                int32_t etype,
                                Shishi_tkt *tkt,
                                int options,
                                const char *data,
                                size_t len);

Create a new AP exchange using shishi_ap(), and set the ticket, AP-REQ apoptions and the Authenticator checksum data using shishi_ap_set_tktoptionsdata(). A random session key is added to the authenticator, using the same keytype as the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

etype

encryption type of newly generated random subkey.

 

tkt

ticket to set in newly created AP.

 

options

AP-REQ options to set in newly created AP.

 

data

input array with data to checksum in Authenticator.

 

len

length of input array with data to checksum in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_set_tktoptionsdata ()

int
shishi_ap_set_tktoptionsdata (Shishi_ap *ap,
                              Shishi_tkt *tkt,
                              int options,
                              const char *data,
                              size_t len);

Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ apoptions (see shishi_apreq_options_set()) and set the Authenticator checksum data.

Parameters

ap

structure that holds information about AP exchange

 

tkt

ticket to set in AP.

 

options

AP-REQ options to set in AP.

 

data

input array with data to checksum in Authenticator.

 

len

length of input array with data to checksum in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_tktoptionsdata ()

int
shishi_ap_tktoptionsdata (Shishi *handle,
                          Shishi_ap **ap,
                          Shishi_tkt *tkt,
                          int options,
                          const char *data,
                          size_t len);

Create a new AP exchange using shishi_ap(), and set the ticket, AP-REQ apoptions and the Authenticator checksum data using shishi_ap_set_tktoptionsdata(). A random session key is added to the authenticator, using the same keytype as the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

tkt

ticket to set in newly created AP.

 

options

AP-REQ options to set in newly created AP.

 

data

input array with data to checksum in Authenticator.

 

len

length of input array with data to checksum in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_set_tktoptionsraw ()

int
shishi_ap_set_tktoptionsraw (Shishi_ap *ap,
                             Shishi_tkt *tkt,
                             int options,
                             int32_t cksumtype,
                             const char *data,
                             size_t len);

Set the ticket (see shishi_ap_tkt_set()) and set the AP-REQ apoptions (see shishi_apreq_options_set()) and set the raw Authenticator checksum data.

Parameters

ap

structure that holds information about AP exchange

 

tkt

ticket to set in AP.

 

options

AP-REQ options to set in AP.

 

cksumtype

authenticator checksum type to set in AP.

 

data

input array with data to store in checksum field in Authenticator.

 

len

length of input array with data to store in checksum field in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_tktoptionsraw ()

int
shishi_ap_tktoptionsraw (Shishi *handle,
                         Shishi_ap **ap,
                         Shishi_tkt *tkt,
                         int options,
                         int32_t cksumtype,
                         const char *data,
                         size_t len);

Create a new AP exchange using shishi_ap(), and set the ticket, AP-REQ apoptions and the raw Authenticator checksum data field using shishi_ap_set_tktoptionsraw(). A random session key is added to the authenticator, using the same keytype as the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

tkt

ticket to set in newly created AP.

 

options

AP-REQ options to set in newly created AP.

 

cksumtype

authenticator checksum type to set in AP.

 

data

input array with data to store in checksum field in Authenticator.

 

len

length of input array with data to store in checksum field in Authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_set_tktoptionsasn1usage ()

int
shishi_ap_set_tktoptionsasn1usage (Shishi_ap *ap,
                                   Shishi_tkt *tkt,
                                   int options,
                                   Shishi_asn1 node,
                                   const char *field,
                                   int authenticatorcksumkeyusage,
                                   int authenticatorkeyusage);

Set ticket, options and authenticator checksum data using shishi_ap_set_tktoptionsdata(). The authenticator checksum data is the DER encoding of the ASN.1 field provided.

Parameters

ap

structure that holds information about AP exchange

 

tkt

ticket to set in AP.

 

options

AP-REQ options to set in AP.

 

node

input ASN.1 structure to store as authenticator checksum data.

 

field

field in ASN.1 structure to use.

 

authenticatorcksumkeyusage

key usage for checksum in authenticator.

 

authenticatorkeyusage

key usage for authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_tktoptionsasn1usage ()

int
shishi_ap_tktoptionsasn1usage (Shishi *handle,
                               Shishi_ap **ap,
                               Shishi_tkt *tkt,
                               int options,
                               Shishi_asn1 node,
                               const char *field,
                               int authenticatorcksumkeyusage,
                               int authenticatorkeyusage);

Create a new AP exchange using shishi_ap(), and set ticket, options and authenticator checksum data from the DER encoding of the ASN.1 field using shishi_ap_set_tktoptionsasn1usage(). A random session key is added to the authenticator, using the same keytype as the ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

ap

pointer to new structure that holds information about AP exchange

 

tkt

ticket to set in newly created AP.

 

options

AP-REQ options to set in newly created AP.

 

node

input ASN.1 structure to store as authenticator checksum data.

 

field

field in ASN.1 structure to use.

 

authenticatorcksumkeyusage

key usage for checksum in authenticator.

 

authenticatorkeyusage

key usage for authenticator.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_tkt ()

Shishi_tkt *
shishi_ap_tkt (Shishi_ap *ap);

Get Ticket from AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns the ticket from the AP exchange, or NULL if not yet set or an error occured.


shishi_ap_tkt_set ()

void
shishi_ap_tkt_set (Shishi_ap *ap,
                   Shishi_tkt *tkt);

Set the Ticket in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

tkt

ticket to store in AP.

 

shishi_ap_authenticator_cksumdata ()

int
shishi_ap_authenticator_cksumdata (Shishi_ap *ap,
                                   char *out,
                                   size_t *len);

Get checksum data from Authenticator.

Parameters

ap

structure that holds information about AP exchange

 

out

output array that holds authenticator checksum data.

 

len

on input, maximum length of output array that holds authenticator checksum data, on output actual length of output array that holds authenticator checksum data.

 

Returns

Returns SHISHI_OK if successful, or SHISHI_TOO_SMALL_BUFFER if buffer provided was too small (then len will hold necessary buffer size).


shishi_ap_authenticator_cksumdata_set ()

void
shishi_ap_authenticator_cksumdata_set (Shishi_ap *ap,
                                       const char *authenticatorcksumdata,
                                       size_t authenticatorcksumdatalen);

Set the Authenticator Checksum Data in the AP exchange. This is the data that will be checksumed, and the checksum placed in the checksum field. It is not the actual checksum field. See also shishi_ap_authenticator_cksumraw_set.

Parameters

ap

structure that holds information about AP exchange

 

authenticatorcksumdata

input array with data to compute checksum on and store in Authenticator in AP-REQ.

 

authenticatorcksumdatalen

length of input array with data to compute checksum on and store in Authenticator in AP-REQ.

 

shishi_ap_authenticator_cksumraw_set ()

void
shishi_ap_authenticator_cksumraw_set (Shishi_ap *ap,
                                      int32_t authenticatorcksumtype,
                                      const char *authenticatorcksumraw,
                                      size_t authenticatorcksumrawlen);

Set the Authenticator Checksum Data in the AP exchange. This is the actual checksum field, not data to compute checksum on and then store in the checksum field. See also shishi_ap_authenticator_cksumdata_set.

Parameters

ap

structure that holds information about AP exchange

 

authenticatorcksumtype

authenticator checksum type to set in AP.

 

authenticatorcksumraw

input array with authenticator checksum field value to set in Authenticator in AP-REQ.

 

authenticatorcksumrawlen

length of input array with authenticator checksum field value to set in Authenticator in AP-REQ.

 

shishi_ap_authenticator_cksumtype ()

int32_t
shishi_ap_authenticator_cksumtype (Shishi_ap *ap);

Get the Authenticator Checksum Type in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Return the authenticator checksum type.


shishi_ap_authenticator_cksumtype_set ()

void
shishi_ap_authenticator_cksumtype_set (Shishi_ap *ap,
                                       int32_t cksumtype);

Set the Authenticator Checksum Type in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

cksumtype

authenticator checksum type to set in AP.

 

shishi_ap_authenticator ()

Shishi_asn1
shishi_ap_authenticator (Shishi_ap *ap);

Get ASN.1 Authenticator structure from AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns the Authenticator from the AP exchange, or NULL if not yet set or an error occured.


shishi_ap_authenticator_set ()

void
shishi_ap_authenticator_set (Shishi_ap *ap,
                             Shishi_asn1 authenticator);

Set the Authenticator in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

authenticator

authenticator to store in AP.

 

shishi_ap_req ()

Shishi_asn1
shishi_ap_req (Shishi_ap *ap);

Get ASN.1 AP-REQ structure from AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns the AP-REQ from the AP exchange, or NULL if not yet set or an error occured.


shishi_ap_req_set ()

void
shishi_ap_req_set (Shishi_ap *ap,
                   Shishi_asn1 apreq);

Set the AP-REQ in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

apreq

apreq to store in AP.

 

shishi_ap_req_der ()

int
shishi_ap_req_der (Shishi_ap *ap,
                   char **out,
                   size_t *outlen);

Build AP-REQ using shishi_ap_req_build() and DER encode it. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

ap

structure that holds information about AP exchange

 

out

pointer to output array with der encoding of AP-REQ.

 

outlen

pointer to length of output array with der encoding of AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_req_der_set ()

int
shishi_ap_req_der_set (Shishi_ap *ap,
                       char *der,
                       size_t derlen);

DER decode AP-REQ and set it AP exchange. If decoding fails, the AP-REQ in the AP exchange is lost.

Parameters

ap

structure that holds information about AP exchange

 

der

input array with DER encoded AP-REQ.

 

derlen

length of input array with DER encoded AP-REQ.

 

Returns

Returns SHISHI_OK.


shishi_ap_req_build ()

int
shishi_ap_req_build (Shishi_ap *ap);

Checksum data in authenticator and add ticket and authenticator to AP-REQ.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_req_asn1 ()

int
shishi_ap_req_asn1 (Shishi_ap *ap,
                    Shishi_asn1 *apreq);

Build AP-REQ using shishi_ap_req_build() and return it.

Parameters

ap

structure that holds information about AP exchange

 

apreq

output AP-REQ variable.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_key ()

Shishi_key *
shishi_ap_key (Shishi_ap *ap);

Extract the application key from AP. If subkeys are used, it is taken from the Authenticator, otherwise the session key is used.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Return application key from AP.


shishi_ap_req_decode ()

int
shishi_ap_req_decode (Shishi_ap *ap);

Decode ticket in AP-REQ and set the Ticket fields in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_req_process ()

int
shishi_ap_req_process (Shishi_ap *ap,
                       Shishi_key *key);

Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

key

cryptographic key used to decrypt ticket in AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_req_process_keyusage ()

int
shishi_ap_req_process_keyusage (Shishi_ap *ap,
                                Shishi_key *key,
                                int32_t keyusage);

Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

key

cryptographic key used to decrypt ticket in AP-REQ.

 

keyusage

key usage to use during decryption, for normal AP-REQ's this is normally SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR, for AP-REQ's part of TGS-REQ's, this is normally SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_rep ()

Shishi_asn1
shishi_ap_rep (Shishi_ap *ap);

Get ASN.1 AP-REP structure from AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns the AP-REP from the AP exchange, or NULL if not yet set or an error occured.


shishi_ap_rep_set ()

void
shishi_ap_rep_set (Shishi_ap *ap,
                   Shishi_asn1 aprep);

Set the AP-REP in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

aprep

aprep to store in AP.

 

shishi_ap_rep_der ()

int
shishi_ap_rep_der (Shishi_ap *ap,
                   char **out,
                   size_t *outlen);

Build AP-REP using shishi_ap_rep_build() and DER encode it. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

ap

structure that holds information about AP exchange

 

out

output array with newly allocated DER encoding of AP-REP.

 

outlen

length of output array with DER encoding of AP-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_rep_der_set ()

int
shishi_ap_rep_der_set (Shishi_ap *ap,
                       char *der,
                       size_t derlen);

DER decode AP-REP and set it AP exchange. If decoding fails, the AP-REP in the AP exchange remains.

Parameters

ap

structure that holds information about AP exchange

 

der

input array with DER encoded AP-REP.

 

derlen

length of input array with DER encoded AP-REP.

 

Returns

Returns SHISHI_OK.


shishi_ap_rep_verify ()

int
shishi_ap_rep_verify (Shishi_ap *ap);

Verify AP-REP compared to Authenticator.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error.


shishi_ap_rep_verify_der ()

int
shishi_ap_rep_verify_der (Shishi_ap *ap,
                          char *der,
                          size_t derlen);

DER decode AP-REP and set it in AP exchange using shishi_ap_rep_der_set() and verify it using shishi_ap_rep_verify().

Parameters

ap

structure that holds information about AP exchange

 

der

input array with DER encoded AP-REP.

 

derlen

length of input array with DER encoded AP-REP.

 

Returns

Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error.


shishi_ap_rep_verify_asn1 ()

int
shishi_ap_rep_verify_asn1 (Shishi_ap *ap,
                           Shishi_asn1 aprep);

Set the AP-REP in the AP exchange using shishi_ap_rep_set() and verify it using shishi_ap_rep_verify().

Parameters

ap

structure that holds information about AP exchange

 

aprep

input AP-REP.

 

Returns

Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error.


shishi_ap_rep_asn1 ()

int
shishi_ap_rep_asn1 (Shishi_ap *ap,
                    Shishi_asn1 *aprep);

Build AP-REP using shishi_ap_rep_build() and return it.

Parameters

ap

structure that holds information about AP exchange

 

aprep

output AP-REP variable.

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_rep_build ()

int
shishi_ap_rep_build (Shishi_ap *ap);

Checksum data in authenticator and add ticket and authenticator to AP-REP.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_ap_encapreppart ()

Shishi_asn1
shishi_ap_encapreppart (Shishi_ap *ap);

Get ASN.1 EncAPRepPart structure from AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

Returns

Returns the EncAPREPPart from the AP exchange, or NULL if not yet set or an error occured.


shishi_ap_encapreppart_set ()

void
shishi_ap_encapreppart_set (Shishi_ap *ap,
                            Shishi_asn1 encapreppart);

Set the EncAPRepPart in the AP exchange.

Parameters

ap

structure that holds information about AP exchange

 

encapreppart

EncAPRepPart to store in AP.

 

shishi_ap_option2string ()

const char *
shishi_ap_option2string (Shishi_apoptions option);

Convert AP-Option type to AP-Option name string. Note that option must be just one of the AP-Option types, it cannot be an binary ORed indicating several AP-Options.

Parameters

option

enumerated AP-Option type, see Shishi_apoptions.

 

Returns

Returns static string with name of AP-Option that must not be deallocated, or "unknown" if AP-Option was not understood.


shishi_ap_string2option ()

Shishi_apoptions
shishi_ap_string2option (const char *str);

Convert AP-Option name to AP-Option type.

Parameters

str

zero terminated character array with name of AP-Option, e.g. "use-session-key".

 

Returns

Returns enumerated type member corresponding to AP-Option, or 0 if string was not understood.


shishi_key_principal ()

const char *
shishi_key_principal (const Shishi_key *key);

Get the principal part of the key owner principal name, i.e., except the realm.

Parameters

key

structure that holds key information

 

Returns

Returns the principal owning the key. (Not a copy of it, so don't modify or deallocate it.)


shishi_key_principal_set ()

void
shishi_key_principal_set (Shishi_key *key,
                          const char *principal);

Set the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function.

Parameters

key

structure that holds key information

 

principal

string with new principal name.

 

shishi_key_realm ()

const char *
shishi_key_realm (const Shishi_key *key);

Get the realm part of the key owner principal name.

Parameters

key

structure that holds key information

 

Returns

Returns the realm for the principal owning the key. (Not a copy of it, so don't modify or deallocate it.)


shishi_key_realm_set ()

void
shishi_key_realm_set (Shishi_key *key,
                      const char *realm);

Set the realm for the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function.

Parameters

key

structure that holds key information

 

realm

string with new realm name.

 

shishi_key_type ()

int
shishi_key_type (const Shishi_key *key);

Get key type.

Parameters

key

structure that holds key information

 

Returns

Returns the type of key as an integer as described in the standard.


shishi_key_type_set ()

void
shishi_key_type_set (Shishi_key *key,
                     int32_t type);

Set the type of key in key structure.

Parameters

key

structure that holds key information

 

type

type to set in key.

 

shishi_key_value ()

const char *
shishi_key_value (const Shishi_key *key);

Get the raw key bytes.

Parameters

key

structure that holds key information

 

Returns

Returns the key value as a pointer which is valid throughout the lifetime of the key structure.


shishi_key_value_set ()

void
shishi_key_value_set (Shishi_key *key,
                      const char *value);

Set the key value and length in key structure. The value is copied into the key (in other words, you can deallocate value right after calling this function without modifying the value inside the key).

Parameters

key

structure that holds key information

 

value

input array with key data.

 

shishi_key_name ()

const char *
shishi_key_name (Shishi_key *key);

Calls shishi_cipher_name for key type.

Parameters

key

structure that holds key information

 

Returns

Return name of key.


shishi_key_length ()

size_t
shishi_key_length (const Shishi_key *key);

Calls shishi_cipher_keylen for key type.

Parameters

key

structure that holds key information

 

Returns

Returns the length of the key value.


shishi_key_version ()

uint32_t
shishi_key_version (const Shishi_key *key);

Get the "kvno" (key version) of key. It will be UINT32_MAX if the key is not long-lived.

Parameters

key

structure that holds key information

 

Returns

Returns the version of key ("kvno").


shishi_key_version_set ()

void
shishi_key_version_set (Shishi_key *key,
                        uint32_t kvno);

Set the version of key ("kvno") in key structure. Use UINT32_MAX for non-ptermanent keys.

Parameters

key

structure that holds key information

 

kvno

new version integer.

 

shishi_key_timestamp ()

time_t
shishi_key_timestamp (const Shishi_key *key);

Get the time the key was established. Typically only present when the key was imported from a keytab format.

Parameters

key

structure that holds key information

 

Returns

Returns the time the key was established, or (time_t)-1 if not available.

Since: 0.0.42


shishi_key_timestamp_set ()

void
shishi_key_timestamp_set (Shishi_key *key,
                          time_t timestamp);

Set the time the key was established. Typically only relevant when exporting the key to keytab format.

Parameters

key

structure that holds key information

 

timestamp

new timestamp.

 

Since: 0.0.42


shishi_key ()

int
shishi_key (Shishi *handle,
            Shishi_key **key);

Create a new Key information structure.

Parameters

handle

Shishi library handle create by shishi_init().

 

key

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_key_done ()

void
shishi_key_done (Shishi_key *key);

Deallocates key information structure.

Parameters

key

pointer to structure that holds key information.

 

shishi_key_copy ()

void
shishi_key_copy (Shishi_key *dstkey,
                 Shishi_key *srckey);

Copies source key into existing allocated destination key.

Parameters

dstkey

structure that holds destination key information

 

srckey

structure that holds source key information

 

shishi_key_print ()

int
shishi_key_print (Shishi *handle,
                  FILE *fh,
                  const Shishi_key *key);

Prints an ASCII representation of a key structure key to the file descriptor fh . Example output:

-----BEGIN SHISHI KEY----- Keytype: 18 (aes256-cts-hmac-sha1-96) Principal: host/latte.josefsson.org Realm: JOSEFSSON.ORG Key-Version-Number: 1 Timestamp: 20130420150337Z

P1QdeW/oSiag/bTyVEBAY2msiGSTmgLXlopuCKoppDs= -----END SHISHI KEY-----

Parameters

handle

Shishi handle as allocated by shishi_init().

 

fh

File handle open for writing.

 

key

Key to print.

 

Returns

Returns SHISHI_OK if successful. The only failure is SHISHI_MALLOC_ERROR.


shishi_key_to_file ()

int
shishi_key_to_file (Shishi *handle,
                    const char *filename,
                    Shishi_key *key);

Prints an ASCII representation of a key structure key to the file filename . The text is appended if the file exists. See shishi_key_print() for an example of output text.

Parameters

handle

Shishi handle as allocated by shishi_init().

 

filename

Name of file, to which the key text is appended.

 

key

Key to print.

 

Returns

Returns SHISHI_OK if successful. Failures are due to I/O issues, or to allocation.


shishi_key_parse ()

int
shishi_key_parse (Shishi *handle,
                  FILE *fh,
                  Shishi_key **key);

shishi_key_random ()

int
shishi_key_random (Shishi *handle,
                   int32_t type,
                   Shishi_key **key);

Create a new Key information structure for the key type and some random data. KEY contains a newly allocated structure only if this function is successful.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

key

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_key_from_value ()

int
shishi_key_from_value (Shishi *handle,
                       int32_t type,
                       const char *value,
                       Shishi_key **key);

Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

value

input array with key value, or NULL.

 

key

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_key_from_base64 ()

int
shishi_key_from_base64 (Shishi *handle,
                        int32_t type,
                        const char *value,
                        Shishi_key **key);

Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

value

input string with base64 encoded key value, or NULL.

 

key

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_INVALID_KEY if the base64 encoded key length doesn't match the key type, and SHISHI_OK on success.


shishi_key_from_random ()

int
shishi_key_from_random (Shishi *handle,
                        int32_t type,
                        const char *rnd,
                        size_t rndlen,
                        Shishi_key **outkey);

Create a new Key information structure, and set the key type and key value using shishi_random_to_key(). KEY contains a newly allocated structure only if this function is successful.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

rnd

random data.

 

rndlen

length of random data.

 

outkey

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_key_from_string ()

int
shishi_key_from_string (Shishi *handle,
                        int32_t type,
                        const char *password,
                        size_t passwordlen,
                        const char *salt,
                        size_t saltlen,
                        const char *parameter,
                        Shishi_key **outkey);

Create a new Key information structure, and set the key type and key value using shishi_string_to_key(). KEY contains a newly allocated structure only if this function is successful.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

password

input array containing password.

 

passwordlen

length of input array containing password.

 

salt

input array containing salt.

 

saltlen

length of input array containing salt.

 

parameter

input array with opaque encryption type specific information.

 

outkey

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_key_from_name ()

int
shishi_key_from_name (Shishi *handle,
                      int32_t type,
                      const char *name,
                      const char *password,
                      size_t passwordlen,
                      const char *parameter,
                      Shishi_key **outkey);

Create a new Key information structure, and derive the key from principal name and password using shishi_key_from_name(). The salt is derived from the principal name by concatenating the decoded realm and principal.

Parameters

handle

Shishi library handle create by shishi_init().

 

type

type of key.

 

name

principal name of user.

 

password

input array containing password.

 

passwordlen

length of input array containing password.

 

parameter

input array with opaque encryption type specific information.

 

outkey

pointer to structure that will hold newly created key information

 

Returns

Returns SHISHI_OK iff successful.


shishi_keys ()

int
shishi_keys (Shishi *handle,
             Shishi_keys **keys);

Get a new key set handle.

Parameters

handle

shishi handle as allocated by shishi_init().

 

keys

output pointer to newly allocated keys handle.

 

Returns

Returns SHISHI_OK iff successful.


shishi_keys_done ()

void
shishi_keys_done (Shishi_keys **keys);

Deallocates all resources associated with key set. The key set handle must not be used in calls to other shishi_keys_*() functions after this.

Parameters

keys

key set handle as allocated by shishi_keys().

 

shishi_keys_size ()

int
shishi_keys_size (Shishi_keys *keys);

Get size of key set.

Parameters

keys

key set handle as allocated by shishi_keys().

 

Returns

Returns number of keys stored in key set.


shishi_keys_nth ()

const Shishi_key *
shishi_keys_nth (Shishi_keys *keys,
                 int keyno);

Get the n:th ticket in key set.

Parameters

keys

key set handle as allocated by shishi_keys().

 

keyno

integer indicating requested key in key set.

 

Returns

Returns a key handle to the keyno:th key in the key set, or NULL if keys is invalid or keyno is out of bounds. The first key is keyno 0, the second key keyno 1, and so on.


shishi_keys_remove ()

void
shishi_keys_remove (Shishi_keys *keys,
                    int keyno);

Remove a key, indexed by keyno , in given key set.

Parameters

keys

key set handle as allocated by shishi_keys().

 

keyno

key number of key in the set to remove. The first key is key number 0.

 

shishi_keys_add ()

int
shishi_keys_add (Shishi_keys *keys,
                 Shishi_key *key);

Add a key to the key set. A deep copy of the key is stored, so changing key , or deallocating it, will not modify the value stored in the key set.

Parameters

keys

key set handle as allocated by shishi_keys().

 

key

key to be added to key set.

 

Returns

Returns SHISHI_OK iff successful.


shishi_keys_print ()

int
shishi_keys_print (Shishi_keys *keys,
                   FILE *fh);

Print all keys in set using shishi_key_print.

Parameters

keys

key set to print.

 

fh

file handle, open for writing, to print keys to.

 

Returns

Returns SHISHI_OK on success.


shishi_keys_from_file ()

int
shishi_keys_from_file (Shishi_keys *keys,
                       const char *filename);

Read zero or more keys from file filename and append them to the keyset keys . See shishi_key_print() for the format of the input.

Parameters

keys

key set handle as allocated by shishi_keys().

 

filename

filename to read keys from.

 

Returns

Returns SHISHI_OK iff successful.

Since: 0.0.42


shishi_keys_to_file ()

int
shishi_keys_to_file (Shishi *handle,
                     const char *filename,
                     Shishi_keys *keys);

Print an ASCII representation of a key structure to a file, for each key in the key set. The file is appended to if it exists. See shishi_key_print() for the format of the output.

Parameters

handle

shishi handle as allocated by shishi_init().

 

filename

filename to append key to.

 

keys

set of keys to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_keys_for_serverrealm_in_file ()

Shishi_key *
shishi_keys_for_serverrealm_in_file (Shishi *handle,
                                     const char *filename,
                                     const char *server,
                                     const char *realm);

Get keys that match specified server and realm from the key set file filename .

Parameters

handle

Shishi library handle create by shishi_init().

 

filename

file to read keys from.

 

server

server name to get key for.

 

realm

realm of server to get key for.

 

Returns

Returns the key for specific server and realm, read from the indicated file, or NULL if no key could be found or an error encountered.


shishi_keys_for_server_in_file ()

Shishi_key *
shishi_keys_for_server_in_file (Shishi *handle,
                                const char *filename,
                                const char *server);

Get key for specified server from filename .

Parameters

handle

Shishi library handle create by shishi_init().

 

filename

file to read keys from.

 

server

server name to get key for.

 

Returns

Returns the key for specific server, read from the indicated file, or NULL if no key could be found or an error encountered.


shishi_keys_for_localservicerealm_in_file ()

Shishi_key *
shishi_keys_for_localservicerealm_in_file
                               (Shishi *handle,
                                const char *filename,
                                const char *service,
                                const char *realm);

Get key for specified service and realm from filename .

Parameters

handle

Shishi library handle create by shishi_init().

 

filename

file to read keys from.

 

service

service to get key for.

 

realm

realm of server to get key for, or NULL for default realm.

 

Returns

Returns the key for the server "SERVICE/HOSTNAMEREALM " (where HOSTNAME is the current system's hostname), read from the default host keys file (see shishi_hostkeys_default_file()), or NULL if no key could be found or an error encountered.


shishi_keys_add_keytab_mem ()

int
shishi_keys_add_keytab_mem (Shishi *handle,
                            const char *data,
                            size_t len,
                            Shishi_keys *keys);

Read keys from a MIT keytab data structure, and add them to the key set.

The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

data

constant memory buffer with keytab of len size.

 

len

size of memory buffer with keytab data.

 

keys

allocated key set to store keys in.

 

Returns

Returns SHISHI_KEYTAB_ERROR if the data does not represent a valid keytab structure, and SHISHI_OK on success.


shishi_keys_add_keytab_file ()

int
shishi_keys_add_keytab_file (Shishi *handle,
                             const char *filename,
                             Shishi_keys *keys);

Read keys from a MIT keytab data structure from a file, and add the keys to the key set.

The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

filename

name of file to read.

 

keys

allocated key set to store keys in.

 

Returns

Returns SHISHI_IO_ERROR if the file cannot be read, SHISHI_KEYTAB_ERROR if the data cannot be parsed as a valid keytab structure, and SHISHI_OK on success.


shishi_keys_from_keytab_mem ()

int
shishi_keys_from_keytab_mem (Shishi *handle,
                             const char *data,
                             size_t len,
                             Shishi_keys **outkeys);

Create a new key set populated with keys from a MIT keytab data structure read from a memory block.

The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

data

constant memory buffer with keytab of len size.

 

len

size of memory buffer with keytab data.

 

outkeys

pointer to key set that will be allocated and populated, must be deallocated by caller on succes.

 

Returns

Returns SHISHI_KEYTAB_ERROR if the data does not represent a valid keytab structure, and SHISHI_OK on success.


shishi_keys_from_keytab_file ()

int
shishi_keys_from_keytab_file (Shishi *handle,
                              const char *filename,
                              Shishi_keys **outkeys);

Create a new key set populated with keys from a MIT keytab data structure read from a file.

The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

filename

name of file to read.

 

outkeys

pointer to key set that will be allocated and populated, must be deallocated by caller on succes.

 

Returns

Returns SHISHI_IO_ERROR if the file cannot be read, SHISHI_KEYTAB_ERROR if the data cannot be parsed as a valid keytab structure, and SHISHI_OK on success.


shishi_keys_to_keytab_mem ()

int
shishi_keys_to_keytab_mem (Shishi *handle,
                           Shishi_keys *keys,
                           char **out,
                           size_t *len);

Write keys to a MIT keytab data structure.

The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

keys

key set to convert to keytab format.

 

out

constant memory buffer with keytab of len size.

 

len

size of memory buffer with keytab data.

 

Returns

On success SHISHI_OK is returned, otherwise an error code.

Since: 0.0.42


shishi_keys_to_keytab_file ()

int
shishi_keys_to_keytab_file (Shishi *handle,
                            Shishi_keys *keys,
                            const char *filename);

Write keys to a MIT keytab data structure.

The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format.

Parameters

handle

shishi handle as allocated by shishi_init().

 

keys

keyset to write.

 

filename

name of file to write.

 

Returns

SHISHI_FOPEN_ERROR if there is a problem opening filename for writing, SHISHI_IO_ERROR if there is problem writing the file, and SHISHI_OK on success.

Since: 0.0.42


shishi_hostkeys_default_file ()

const char *
shishi_hostkeys_default_file (Shishi *handle);

Get file name of default host key file.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default host key filename used in the library. (Not a copy of it, so don't modify or deallocate it.)


shishi_hostkeys_default_file_set ()

void
shishi_hostkeys_default_file_set (Shishi *handle,
                                  const char *hostkeysfile);

Set the default host key filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

hostkeysfile

string with new default hostkeys file name, or NULL to reset to default.

 

shishi_hostkeys_for_server ()

Shishi_key *
shishi_hostkeys_for_server (Shishi *handle,
                            const char *server);

Get host key for server .

Parameters

handle

Shishi library handle create by shishi_init().

 

server

server name to get key for

 

Returns

Returns the key for specific server, read from the default host keys file (see shishi_hostkeys_default_file()), or NULL if no key could be found or an error encountered.


shishi_hostkeys_for_serverrealm ()

Shishi_key *
shishi_hostkeys_for_serverrealm (Shishi *handle,
                                 const char *server,
                                 const char *realm);

Get host key for server in realm .

Parameters

handle

Shishi library handle create by shishi_init().

 

server

server name to get key for

 

realm

realm of server to get key for.

 

Returns

Returns the key for specific server and realm, read from the default host keys file (see shishi_hostkeys_default_file()), or NULL if no key could be found or an error encountered.


shishi_hostkeys_for_localservicerealm ()

Shishi_key *
shishi_hostkeys_for_localservicerealm (Shishi *handle,
                                       const char *service,
                                       const char *realm);

Get host key for service on current host in realm .

Parameters

handle

Shishi library handle create by shishi_init().

 

service

service to get key for.

 

realm

realm of server to get key for, or NULL for default realm.

 

Returns

Returns the key for the server "SERVICE/HOSTNAMEREALM " (where HOSTNAME is the current system's hostname), read from the default host keys file (see shishi_hostkeys_default_file()), or NULL if no key could be found or an error encountered.


shishi_hostkeys_for_localservice ()

Shishi_key *
shishi_hostkeys_for_localservice (Shishi *handle,
                                  const char *service);

Get host key for service on current host in default realm.

Parameters

handle

Shishi library handle create by shishi_init().

 

service

service to get key for.

 

Returns

Returns the key for the server "SERVICE/HOSTNAME" (where HOSTNAME is the current system's hostname), read from the default host keys file (see shishi_hostkeys_default_file()), or NULL if no key could be found or an error encountered.


shishi_encapreppart ()

Shishi_asn1
shishi_encapreppart (Shishi *handle);

This function creates a new EncAPRepPart, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the encapreppart or NULL on failure.


shishi_encapreppart_time_copy ()

int
shishi_encapreppart_time_copy (Shishi *handle,
                               Shishi_asn1 encapreppart,
                               Shishi_asn1 authenticator);

Copy time fields from Authenticator into EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

authenticator

Authenticator to copy time fields from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_ctime ()

int
shishi_encapreppart_ctime (Shishi *handle,
                           Shishi_asn1 encapreppart,
                           char **t);

Extract client time from EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

t

newly allocated zero-terminated character array with client time.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_ctime_set ()

int
shishi_encapreppart_ctime_set (Shishi *handle,
                               Shishi_asn1 encapreppart,
                               const char *t);

Store client time in EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

t

string with generalized time value to store in EncAPRepPart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_cusec_get ()

int
shishi_encapreppart_cusec_get (Shishi *handle,
                               Shishi_asn1 encapreppart,
                               uint32_t *cusec);

Extract client microseconds field from EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

cusec

output integer with client microseconds field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_cusec_set ()

int
shishi_encapreppart_cusec_set (Shishi *handle,
                               Shishi_asn1 encapreppart,
                               uint32_t cusec);

Set the cusec field in the Authenticator.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

cusec

client microseconds to set in authenticator, 0-999999.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_print ()

int
shishi_encapreppart_print (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 encapreppart);

Print ASCII armored DER encoding of EncAPRepPart to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

encapreppart

EncAPRepPart to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_save ()

int
shishi_encapreppart_save (Shishi *handle,
                          FILE *fh,
                          Shishi_asn1 encapreppart);

Save DER encoding of EncAPRepPart to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

encapreppart

EncAPRepPart to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_to_file ()

int
shishi_encapreppart_to_file (Shishi *handle,
                             Shishi_asn1 encapreppart,
                             int filetype,
                             const char *filename);

Write EncAPRepPart to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_read ()

int
shishi_encapreppart_read (Shishi *handle,
                          FILE *fh,
                          Shishi_asn1 *encapreppart);

Read DER encoded EncAPRepPart from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

encapreppart

output variable with newly allocated EncAPRepPart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_parse ()

int
shishi_encapreppart_parse (Shishi *handle,
                           FILE *fh,
                           Shishi_asn1 *encapreppart);

Read ASCII armored DER encoded EncAPRepPart from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

encapreppart

output variable with newly allocated EncAPRepPart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_from_file ()

int
shishi_encapreppart_from_file (Shishi *handle,
                               Shishi_asn1 *encapreppart,
                               int filetype,
                               const char *filename);

Read EncAPRepPart from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

output variable with newly allocated EncAPRepPart.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_get_key ()

int
shishi_encapreppart_get_key (Shishi *handle,
                             Shishi_asn1 encapreppart,
                             Shishi_key **key);

Extract the subkey from the encrypted AP-REP part.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

input EncAPRepPart variable.

 

key

newly allocated key.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_seqnumber_get ()

int
shishi_encapreppart_seqnumber_get (Shishi *handle,
                                   Shishi_asn1 encapreppart,
                                   uint32_t *seqnumber);

Extract sequence number field from EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

EncAPRepPart as allocated by shishi_encapreppart().

 

seqnumber

output integer with sequence number field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_seqnumber_remove ()

int
shishi_encapreppart_seqnumber_remove (Shishi *handle,
                                      Shishi_asn1 encapreppart);

Remove sequence number field in EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

encapreppart as allocated by shishi_encapreppart().

 

Returns

Returns SHISHI_OK iff successful.


shishi_encapreppart_seqnumber_set ()

int
shishi_encapreppart_seqnumber_set (Shishi *handle,
                                   Shishi_asn1 encapreppart,
                                   uint32_t seqnumber);

Store sequence number field in EncAPRepPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encapreppart

encapreppart as allocated by shishi_encapreppart().

 

seqnumber

integer with sequence number field to store in encapreppart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq ()

Shishi_asn1
shishi_apreq (Shishi *handle);

This function creates a new AP-REQ, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the AP-REQ or NULL on failure.


shishi_apreq_parse ()

int
shishi_apreq_parse (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 *apreq);

Read ASCII armored DER encoded AP-REQ from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

apreq

output variable with newly allocated AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_from_file ()

int
shishi_apreq_from_file (Shishi *handle,
                        Shishi_asn1 *apreq,
                        int filetype,
                        const char *filename);

Read AP-REQ from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

output variable with newly allocated AP-REQ.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_print ()

int
shishi_apreq_print (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 apreq);

Print ASCII armored DER encoding of AP-REQ to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

apreq

AP-REQ to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_to_file ()

int
shishi_apreq_to_file (Shishi *handle,
                      Shishi_asn1 apreq,
                      int filetype,
                      const char *filename);

Write AP-REQ to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_read ()

int
shishi_apreq_read (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 *apreq);

Read DER encoded AP-REQ from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

apreq

output variable with newly allocated AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_save ()

int
shishi_apreq_save (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 apreq);

Save DER encoding of AP-REQ to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

apreq

AP-REQ to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_set_ticket ()

int
shishi_apreq_set_ticket (Shishi *handle,
                         Shishi_asn1 apreq,
                         Shishi_asn1 ticket);

Copy ticket into AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ to add ticket field to.

 

ticket

input ticket to copy into AP-REQ ticket field.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_set_authenticator ()

int
shishi_apreq_set_authenticator (Shishi *handle,
                                Shishi_asn1 apreq,
                                int32_t etype,
                                uint32_t kvno,
                                const char *buf,
                                size_t buflen);

Set the encrypted authenticator field in the AP-REP. The encrypted data is usually created by calling shishi_encrypt() on the DER encoded authenticator. To save time, you may want to use shishi_apreq_add_authenticator() instead, which calculates the encrypted data and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ to add authenticator field to.

 

etype

encryption type used to encrypt authenticator.

 

kvno

version of the key used to encrypt authenticator.

 

buf

input array with encrypted authenticator.

 

buflen

size of input array with encrypted authenticator.

 

Returns

Returns SHISHI_OK on success.


shishi_apreq_add_authenticator ()

int
shishi_apreq_add_authenticator (Shishi *handle,
                                Shishi_asn1 apreq,
                                Shishi_key *key,
                                int keyusage,
                                Shishi_asn1 authenticator);

Encrypts DER encoded authenticator using key and store it in the AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ to add authenticator field to.

 

key

key to to use for encryption.

 

keyusage

cryptographic key usage value to use in encryption.

 

authenticator

authenticator as allocated by shishi_authenticator().

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_options ()

int
shishi_apreq_options (Shishi *handle,
                      Shishi_asn1 apreq,
                      uint32_t *flags);

Extract the AP-Options from AP-REQ into output integer.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ to get options from.

 

flags

Output integer containing options from AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_use_session_key_p ()

int
shishi_apreq_use_session_key_p (Shishi *handle,
                                Shishi_asn1 apreq);

Return non-0 iff the "Use session key" option is set in the AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ as allocated by shishi_apreq().

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_mutual_required_p ()

int
shishi_apreq_mutual_required_p (Shishi *handle,
                                Shishi_asn1 apreq);

Return non-0 iff the "Mutual required" option is set in the AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ as allocated by shishi_apreq().

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_options_set ()

int
shishi_apreq_options_set (Shishi *handle,
                          Shishi_asn1 apreq,
                          uint32_t options);

Set the AP-Options in AP-REQ to indicate integer.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ as allocated by shishi_apreq().

 

options

Options to set in AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_options_add ()

int
shishi_apreq_options_add (Shishi *handle,
                          Shishi_asn1 apreq,
                          uint32_t option);

Add the AP-Options in AP-REQ. Options not set in input parameter option are preserved in the AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ as allocated by shishi_apreq().

 

option

Options to add in AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_options_remove ()

int
shishi_apreq_options_remove (Shishi *handle,
                             Shishi_asn1 apreq,
                             uint32_t option);

Remove the AP-Options from AP-REQ. Options not set in input parameter option are preserved in the AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ as allocated by shishi_apreq().

 

option

Options to remove from AP-REQ.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_get_ticket ()

int
shishi_apreq_get_ticket (Shishi *handle,
                         Shishi_asn1 apreq,
                         Shishi_asn1 *ticket);

Extract ticket from AP-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ variable to get ticket from.

 

ticket

output variable to hold extracted ticket.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_get_authenticator_etype ()

int
shishi_apreq_get_authenticator_etype (Shishi *handle,
                                      Shishi_asn1 apreq,
                                      int32_t *etype);

Extract AP-REQ.authenticator.etype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

apreq

AP-REQ variable to get value from.

 

etype

output variable that holds the value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_apreq_decrypt ()

int
shishi_apreq_decrypt (Shishi *handle,
                      Shishi_asn1 apreq,
                      Shishi_key *key,
                      int keyusage,
                      Shishi_asn1 *authenticator);

shishi_aprep ()

Shishi_asn1
shishi_aprep (Shishi *handle);

This function creates a new AP-REP, populated with some default values.

Parameters

handle

shishi handle as allocated by shishi_init().

 

Returns

Returns the authenticator or NULL on failure.


shishi_aprep_print ()

int
shishi_aprep_print (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 aprep);

Print ASCII armored DER encoding of AP-REP to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

aprep

AP-REP to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_save ()

int
shishi_aprep_save (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 aprep);

Save DER encoding of AP-REP to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

aprep

AP-REP to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_to_file ()

int
shishi_aprep_to_file (Shishi *handle,
                      Shishi_asn1 aprep,
                      int filetype,
                      const char *filename);

Write AP-REP to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

aprep

AP-REP to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_read ()

int
shishi_aprep_read (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 *aprep);

Read DER encoded AP-REP from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

aprep

output variable with newly allocated AP-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_parse ()

int
shishi_aprep_parse (Shishi *handle,
                    FILE *fh,
                    Shishi_asn1 *aprep);

Read ASCII armored DER encoded AP-REP from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

aprep

output variable with newly allocated AP-REP.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_from_file ()

int
shishi_aprep_from_file (Shishi *handle,
                        Shishi_asn1 *aprep,
                        int filetype,
                        const char *filename);

Read AP-REP from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

aprep

output variable with newly allocated AP-REP.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_aprep_decrypt ()

int
shishi_aprep_decrypt (Shishi *handle,
                      Shishi_asn1 aprep,
                      Shishi_key *key,
                      int keyusage,
                      Shishi_asn1 *encapreppart);

shishi_aprep_verify ()

int
shishi_aprep_verify (Shishi *handle,
                     Shishi_asn1 authenticator,
                     Shishi_asn1 encapreppart);

shishi_aprep_enc_part_set ()

int
shishi_aprep_enc_part_set (Shishi *handle,
                           Shishi_asn1 aprep,
                           int etype,
                           const char *buf,
                           size_t buflen);

shishi_aprep_enc_part_add ()

int
shishi_aprep_enc_part_add (Shishi *handle,
                           Shishi_asn1 aprep,
                           Shishi_asn1 encticketpart,
                           Shishi_asn1 encapreppart);

shishi_aprep_enc_part_make ()

int
shishi_aprep_enc_part_make (Shishi *handle,
                            Shishi_asn1 aprep,
                            Shishi_asn1 encapreppart,
                            Shishi_asn1 authenticator,
                            Shishi_asn1 encticketpart);

shishi_aprep_get_enc_part_etype ()

int
shishi_aprep_get_enc_part_etype (Shishi *handle,
                                 Shishi_asn1 aprep,
                                 int32_t *etype);

Extract AP-REP.enc-part.etype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

aprep

AP-REP variable to get value from.

 

etype

output variable that holds the value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_kdc_sendrecv ()

int
shishi_kdc_sendrecv (Shishi *handle,
                     const char *realm,
                     const char *indata,
                     size_t inlen,
                     char **outdata,
                     size_t *outlen);

Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname.

Parameters

handle

Shishi library handle create by shishi_init().

 

realm

string with realm name.

 

indata

Packet to send to KDC.

 

inlen

Length of indata .

 

outdata

Newly allocated string with data returned from KDC.

 

outlen

Length of outdata .

 

Returns

SHISHI_OK on success, SHISHI_KDC_TIMEOUT if a timeout was reached, or other errors.


shishi_kdc_sendrecv_hint ()

int
shishi_kdc_sendrecv_hint (Shishi *handle,
                          const char *realm,
                          const char *indata,
                          size_t inlen,
                          char **outdata,
                          size_t *outlen,
                          Shishi_tkts_hint *hint);

Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname.

Parameters

handle

Shishi library handle create by shishi_init().

 

realm

string with realm name.

 

indata

Packet to send to KDC.

 

inlen

Length of indata .

 

outdata

Newly allocated string with data returned from KDC.

 

outlen

Length of outdata .

 

hint

a Shishi_tkts_hint structure with flags.

 

Returns

SHISHI_OK on success, SHISHI_KDC_TIMEOUT if a timeout was reached, or other errors.


shishi_encticketpart ()

Shishi_asn1
shishi_encticketpart (Shishi *handle);

shishi_encticketpart_key_set ()

int
shishi_encticketpart_key_set (Shishi *handle,
                              Shishi_asn1 encticketpart,
                              Shishi_key *key);

Set the EncTicketPart.key field to key type and value of supplied key.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

key

key handle with information to store in encticketpart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_get_key ()

int
shishi_encticketpart_get_key (Shishi *handle,
                              Shishi_asn1 encticketpart,
                              Shishi_key **key);

Extract the session key in the Ticket.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

key

newly allocated key.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_crealm ()

int
shishi_encticketpart_crealm (Shishi *handle,
                             Shishi_asn1 encticketpart,
                             char **crealm,
                             size_t *crealmlen);

shishi_encticketpart_crealm_set ()

int
shishi_encticketpart_crealm_set (Shishi *handle,
                                 Shishi_asn1 encticketpart,
                                 const char *realm);

Set the realm field in the KDC-REQ.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

realm

input array with name of realm.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_client ()

int
shishi_encticketpart_client (Shishi *handle,
                             Shishi_asn1 encticketpart,
                             char **client,
                             size_t *clientlen);

Represent client principal name in EncTicketPart as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

encticketpart

EncTicketPart variable to get client name from.

 

client

pointer to newly allocated zero terminated string containing principal name. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_clientrealm ()

int
shishi_encticketpart_clientrealm (Shishi *handle,
                                  Shishi_asn1 encticketpart,
                                  char **client,
                                  size_t *clientlen);

Convert cname and realm fields from EncTicketPart to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length clientlen does not include the terminating zero.

Parameters

handle

Shishi library handle create by shishi_init().

 

encticketpart

EncTicketPart variable to get client name and realm from.

 

client

pointer to newly allocated zero terminated string containing principal name and realm. May be NULL (to only populate clientlen ).

 

clientlen

pointer to length of client on output, excluding terminating zero. May be NULL (to only populate client ).

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_cname_set ()

int
shishi_encticketpart_cname_set (Shishi *handle,
                                Shishi_asn1 encticketpart,
                                Shishi_name_type name_type,
                                const char *principal);

Set the client name field in the EncTicketPart.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

name_type

type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN.

 

principal

input array with principal name.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_print ()

int
shishi_encticketpart_print (Shishi *handle,
                            FILE *fh,
                            Shishi_asn1 encticketpart);

shishi_encticketpart_flags_set ()

int
shishi_encticketpart_flags_set (Shishi *handle,
                                Shishi_asn1 encticketpart,
                                int flags);

Set the EncTicketPart.flags to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

flags

flags to set in encticketpart.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_transited_set ()

int
shishi_encticketpart_transited_set (Shishi *handle,
                                    Shishi_asn1 encticketpart,
                                    int32_t trtype,
                                    const char *trdata,
                                    size_t trdatalen);

Set the EncTicketPart.transited field to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

trtype

transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS.

 

trdata

actual transited realm data.

 

trdatalen

length of actual transited realm data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_authtime_set ()

int
shishi_encticketpart_authtime_set (Shishi *handle,
                                   Shishi_asn1 encticketpart,
                                   const char *authtime);

Set the EncTicketPart.authtime to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

authtime

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_endtime_set ()

int
shishi_encticketpart_endtime_set (Shishi *handle,
                                  Shishi_asn1 encticketpart,
                                  const char *endtime);

Set the EncTicketPart.endtime to supplied value.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encticketpart

input EncTicketPart variable.

 

endtime

character buffer containing a generalized time string.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encticketpart_authtime ()

int
shishi_encticketpart_authtime (Shishi *handle,
                               Shishi_asn1 encticketpart,
                               char *authtime,
                               size_t *authtimelen);

shishi_encticketpart_authctime ()

time_t
shishi_encticketpart_authctime (Shishi *handle,
                                Shishi_asn1 encticketpart);

shishi_safe ()

int
shishi_safe (Shishi *handle,
             Shishi_safe **safe);

Create a new SAFE exchange.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

pointer to new structure that holds information about SAFE exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_done ()

void
shishi_safe_done (Shishi_safe *safe);

Deallocate resources associated with SAFE exchange. This should be called by the application when it no longer need to utilize the SAFE exchange handle.

Parameters

safe

structure that holds information about SAFE exchange

 

shishi_safe_key ()

Shishi_key *
shishi_safe_key (Shishi_safe *safe);

Get key structured from SAFE exchange.

Parameters

safe

structure that holds information about SAFE exchange

 

Returns

Returns the key used in the SAFE exchange, or NULL if not yet set or an error occured.


shishi_safe_key_set ()

void
shishi_safe_key_set (Shishi_safe *safe,
                     Shishi_key *key);

Set the Key in the SAFE exchange.

Parameters

safe

structure that holds information about SAFE exchange

 

key

key to store in SAFE.

 

shishi_safe_safe ()

Shishi_asn1
shishi_safe_safe (Shishi_safe *safe);

Get ASN.1 SAFE structured from SAFE exchange.

Parameters

safe

structure that holds information about SAFE exchange

 

Returns

Returns the ASN.1 safe in the SAFE exchange, or NULL if not yet set or an error occured.


shishi_safe_safe_set ()

void
shishi_safe_safe_set (Shishi_safe *safe,
                      Shishi_asn1 asn1safe);

Set the KRB-SAFE in the SAFE exchange.

Parameters

safe

structure that holds information about SAFE exchange

 

asn1safe

KRB-SAFE to store in SAFE exchange.

 

shishi_safe_safe_der ()

int
shishi_safe_safe_der (Shishi_safe *safe,
                      char **out,
                      size_t *outlen);

DER encode SAFE structure. Typically shishi_safe_build() is used to build the SAFE structure first. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

safe

safe as allocated by shishi_safe().

 

out

output array with newly allocated DER encoding of SAFE.

 

outlen

length of output array with DER encoding of SAFE.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_safe_der_set ()

int
shishi_safe_safe_der_set (Shishi_safe *safe,
                          char *der,
                          size_t derlen);

DER decode KRB-SAFE and set it SAFE exchange. If decoding fails, the KRB-SAFE in the SAFE exchange remains.

Parameters

safe

safe as allocated by shishi_safe().

 

der

input array with DER encoded KRB-SAFE.

 

derlen

length of input array with DER encoded KRB-SAFE.

 

Returns

Returns SHISHI_OK.


shishi_safe_print ()

int
shishi_safe_print (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 safe);

Print ASCII armored DER encoding of SAFE to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

safe

SAFE to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_save ()

int
shishi_safe_save (Shishi *handle,
                  FILE *fh,
                  Shishi_asn1 safe);

Save DER encoding of SAFE to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

safe

SAFE to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_to_file ()

int
shishi_safe_to_file (Shishi *handle,
                     Shishi_asn1 safe,
                     int filetype,
                     const char *filename);

Write SAFE to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

SAFE to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_parse ()

int
shishi_safe_parse (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 *safe);

Read ASCII armored DER encoded SAFE from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

safe

output variable with newly allocated SAFE.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_read ()

int
shishi_safe_read (Shishi *handle,
                  FILE *fh,
                  Shishi_asn1 *safe);

Read DER encoded SAFE from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

safe

output variable with newly allocated SAFE.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_from_file ()

int
shishi_safe_from_file (Shishi *handle,
                       Shishi_asn1 *safe,
                       int filetype,
                       const char *filename);

Read SAFE from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

output variable with newly allocated SAFE.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_cksum ()

int
shishi_safe_cksum (Shishi *handle,
                   Shishi_asn1 safe,
                   int32_t *cksumtype,
                   char **cksum,
                   size_t *cksumlen);

Read checksum value from KRB-SAFE. cksum is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

safe as allocated by shishi_safe().

 

cksumtype

output checksum type.

 

cksum

output array with newly allocated checksum data from SAFE.

 

cksumlen

output size of output checksum data buffer.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_set_cksum ()

int
shishi_safe_set_cksum (Shishi *handle,
                       Shishi_asn1 safe,
                       int32_t cksumtype,
                       const char *cksum,
                       size_t cksumlen);

Store checksum value in SAFE. A checksum is usually created by calling shishi_checksum() on some application specific data using the key from the ticket that is being used. To save time, you may want to use shishi_safe_build() instead, which calculates the checksum and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

safe as allocated by shishi_safe().

 

cksumtype

input checksum type to store in SAFE.

 

cksum

input checksum data to store in SAFE.

 

cksumlen

size of input checksum data to store in SAFE.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_user_data ()

int
shishi_safe_user_data (Shishi *handle,
                       Shishi_asn1 safe,
                       char **userdata,
                       size_t *userdatalen);

Read user data value from KRB-SAFE. userdata is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

safe as allocated by shishi_safe().

 

userdata

output array with newly allocated user data from KRB-SAFE.

 

userdatalen

output size of output user data buffer.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_set_user_data ()

int
shishi_safe_set_user_data (Shishi *handle,
                           Shishi_asn1 safe,
                           const char *userdata,
                           size_t userdatalen);

Set the application data in SAFE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

safe

safe as allocated by shishi_safe().

 

userdata

input user application to store in SAFE.

 

userdatalen

size of input user application to store in SAFE.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_build ()

int
shishi_safe_build (Shishi_safe *safe,
                   Shishi_key *key);

Build checksum and set it in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm.

Parameters

safe

safe as allocated by shishi_safe().

 

key

key for session, used to compute checksum.

 

Returns

Returns SHISHI_OK iff successful.


shishi_safe_verify ()

int
shishi_safe_verify (Shishi_safe *safe,
                    Shishi_key *key);

Verify checksum in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm.

Parameters

safe

safe as allocated by shishi_safe().

 

key

key for session, used to verify checksum.

 

Returns

Returns SHISHI_OK iff successful, SHISHI_SAFE_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_SAFE_VERIFY_FAILED if the actual verification failed.


shishi_priv ()

int
shishi_priv (Shishi *handle,
             Shishi_priv **priv);

Create a new PRIV exchange.

Parameters

handle

shishi handle as allocated by shishi_init().

 

priv

pointer to new structure that holds information about PRIV exchange

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_done ()

void
shishi_priv_done (Shishi_priv *priv);

Deallocate resources associated with PRIV exchange. This should be called by the application when it no longer need to utilize the PRIV exchange handle.

Parameters

priv

structure that holds information about PRIV exchange

 

shishi_priv_key ()

Shishi_key *
shishi_priv_key (Shishi_priv *priv);

Get key from PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

Returns

Returns the key used in the PRIV exchange, or NULL if not yet set or an error occured.


shishi_priv_key_set ()

void
shishi_priv_key_set (Shishi_priv *priv,
                     Shishi_key *key);

Set the Key in the PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

key

key to store in PRIV.

 

shishi_priv_priv ()

Shishi_asn1
shishi_priv_priv (Shishi_priv *priv);

Get ASN.1 PRIV structure in PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

Returns

Returns the ASN.1 priv in the PRIV exchange, or NULL if not yet set or an error occured.


shishi_priv_priv_set ()

void
shishi_priv_priv_set (Shishi_priv *priv,
                      Shishi_asn1 asn1priv);

Set the KRB-PRIV in the PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

asn1priv

KRB-PRIV to store in PRIV exchange.

 

shishi_priv_priv_der ()

int
shishi_priv_priv_der (Shishi_priv *priv,
                      char **out,
                      size_t *outlen);

DER encode PRIV structure. Typically shishi_priv_build() is used to build the PRIV structure first. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

priv

priv as allocated by shishi_priv().

 

out

output array with newly allocated DER encoding of PRIV.

 

outlen

length of output array with DER encoding of PRIV.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_priv_der_set ()

int
shishi_priv_priv_der_set (Shishi_priv *priv,
                          char *der,
                          size_t derlen);

DER decode KRB-PRIV and set it PRIV exchange. If decoding fails, the KRB-PRIV in the PRIV exchange remains.

Parameters

priv

priv as allocated by shishi_priv().

 

der

input array with DER encoded KRB-PRIV.

 

derlen

length of input array with DER encoded KRB-PRIV.

 

Returns

Returns SHISHI_OK.


shishi_priv_encprivpart ()

Shishi_asn1
shishi_priv_encprivpart (Shishi_priv *priv);

Get ASN.1 EncPrivPart structure from PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

Returns

Returns the ASN.1 encprivpart in the PRIV exchange, or NULL if not yet set or an error occured.


shishi_priv_encprivpart_set ()

void
shishi_priv_encprivpart_set (Shishi_priv *priv,
                             Shishi_asn1 asn1encprivpart);

Set the ENCPRIVPART in the PRIV exchange.

Parameters

priv

structure that holds information about PRIV exchange

 

asn1encprivpart

ENCPRIVPART to store in PRIV exchange.

 

shishi_priv_encprivpart_der ()

int
shishi_priv_encprivpart_der (Shishi_priv *priv,
                             char **out,
                             size_t *outlen);

DER encode ENCPRIVPART structure. out is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

priv

priv as allocated by shishi_priv().

 

out

output array with newly allocated DER encoding of ENCPRIVPART.

 

outlen

length of output array with DER encoding of ENCPRIVPART.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_encprivpart_der_set ()

int
shishi_priv_encprivpart_der_set (Shishi_priv *priv,
                                 char *der,
                                 size_t derlen);

DER decode ENCPRIVPART and set it PRIV exchange. If decoding fails, the ENCPRIVPART in the PRIV exchange remains.

Parameters

priv

priv as allocated by shishi_priv().

 

der

input array with DER encoded ENCPRIVPART.

 

derlen

length of input array with DER encoded ENCPRIVPART.

 

Returns

Returns SHISHI_OK.


shishi_priv_print ()

int
shishi_priv_print (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 priv);

Print ASCII armored DER encoding of PRIV to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

priv

PRIV to print.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_save ()

int
shishi_priv_save (Shishi *handle,
                  FILE *fh,
                  Shishi_asn1 priv);

Save DER encoding of PRIV to file.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for writing.

 

priv

PRIV to save.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_to_file ()

int
shishi_priv_to_file (Shishi *handle,
                     Shishi_asn1 priv,
                     int filetype,
                     const char *filename);

Write PRIV to file in specified TYPE. The file will be truncated if it exists.

Parameters

handle

shishi handle as allocated by shishi_init().

 

priv

PRIV to save.

 

filetype

input variable specifying type of file to be written, see Shishi_filetype.

 

filename

input variable with filename to write to.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_parse ()

int
shishi_priv_parse (Shishi *handle,
                   FILE *fh,
                   Shishi_asn1 *priv);

Read ASCII armored DER encoded PRIV from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

priv

output variable with newly allocated PRIV.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_read ()

int
shishi_priv_read (Shishi *handle,
                  FILE *fh,
                  Shishi_asn1 *priv);

Read DER encoded PRIV from file and populate given variable.

Parameters

handle

shishi handle as allocated by shishi_init().

 

fh

file handle open for reading.

 

priv

output variable with newly allocated PRIV.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_from_file ()

int
shishi_priv_from_file (Shishi *handle,
                       Shishi_asn1 *priv,
                       int filetype,
                       const char *filename);

Read PRIV from file in specified TYPE.

Parameters

handle

shishi handle as allocated by shishi_init().

 

priv

output variable with newly allocated PRIV.

 

filetype

input variable specifying type of file to be read, see Shishi_filetype.

 

filename

input variable with filename to read from.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_enc_part_etype ()

int
shishi_priv_enc_part_etype (Shishi *handle,
                            Shishi_asn1 priv,
                            int32_t *etype);

Extract PRIV.enc-part.etype.

Parameters

handle

shishi handle as allocated by shishi_init().

 

priv

PRIV variable to get value from.

 

etype

output variable that holds the value.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_set_enc_part ()

int
shishi_priv_set_enc_part (Shishi *handle,
                          Shishi_asn1 priv,
                          int32_t etype,
                          const char *encpart,
                          size_t encpartlen);

Store encrypted data in PRIV. The encrypted data is usually created by calling shishi_encrypt() on some application specific data using the key from the ticket that is being used. To save time, you may want to use shishi_priv_build() instead, which encryptes the data and calls this function in one step.

Parameters

handle

shishi handle as allocated by shishi_init().

 

priv

priv as allocated by shishi_priv().

 

etype

input encryption type to store in PRIV.

 

encpart

input encrypted data to store in PRIV.

 

encpartlen

size of input encrypted data to store in PRIV.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encprivpart_user_data ()

int
shishi_encprivpart_user_data (Shishi *handle,
                              Shishi_asn1 encprivpart,
                              char **userdata,
                              size_t *userdatalen);

Read user data value from KRB-PRIV. userdata is allocated by this function, and it is the responsibility of caller to deallocate it.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encprivpart

encprivpart as allocated by shishi_priv().

 

userdata

output array with newly allocated user data from KRB-PRIV.

 

userdatalen

output size of output user data buffer.

 

Returns

Returns SHISHI_OK iff successful.


shishi_encprivpart_set_user_data ()

int
shishi_encprivpart_set_user_data (Shishi *handle,
                                  Shishi_asn1 encprivpart,
                                  const char *userdata,
                                  size_t userdatalen);

Set the application data in PRIV.

Parameters

handle

shishi handle as allocated by shishi_init().

 

encprivpart

encprivpart as allocated by shishi_priv().

 

userdata

input user application to store in PRIV.

 

userdatalen

size of input user application to store in PRIV.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_build ()

int
shishi_priv_build (Shishi_priv *priv,
                   Shishi_key *key);

Build checksum and set it in KRB-PRIV. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm.

Parameters

priv

priv as allocated by shishi_priv().

 

key

key for session, used to encrypt data.

 

Returns

Returns SHISHI_OK iff successful.


shishi_priv_process ()

int
shishi_priv_process (Shishi_priv *priv,
                     Shishi_key *key);

Decrypt encrypted data in KRB-PRIV and set the EncPrivPart in the PRIV exchange.

Parameters

priv

priv as allocated by shishi_priv().

 

key

key to use to decrypt EncPrivPart.

 

Returns

Returns SHISHI_OK iff successful, SHISHI_PRIV_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_CRYPTO_ERROR if the actual decryption failed.


shishi_authorized_p ()

int
shishi_authorized_p (Shishi *handle,
                     Shishi_tkt *tkt,
                     const char *authzname);

Simplistic authorization of authzname against encrypted client principal name inside ticket. For "basic" authentication type, the principal name must coincide with authzname . The "k5login" authentication type attempts the MIT/Heimdal method of parsing the file "~/.k5login" for additional equivalence names.

Parameters

handle

shishi handle allocated by shishi_init().

 

tkt

input variable with ticket info.

 

authzname

authorization name.

 

Returns

Returns 1 if authzname is authorized for services by the encrypted principal, and 0 otherwise.


shishi_authorization_parse ()

int
shishi_authorization_parse (const char *authorization);

Parse authorization type name.

Parameters

authorization

name of authorization type, "basic" or "k5login".

 

Returns

Returns authorization type corresponding to a string.


shishi_authorize_strcmp ()

int
shishi_authorize_strcmp (Shishi *handle,
                         const char *principal,
                         const char *authzname);

Authorization of authzname against desired principal according to "basic" authentication, i.e., testing for identical strings.

Parameters

handle

shishi handle allocated by shishi_init().

 

principal

string with desired principal name.

 

authzname

authorization name.

 

Returns

Returns 1 if authzname is authorized for services by the encrypted principal, and 0 otherwise.


shishi_authorize_k5login ()

int
shishi_authorize_k5login (Shishi *handle,
                          const char *principal,
                          const char *authzname);

Authorization of authzname against desired principal in accordance with the MIT/Heimdal authorization method.

Parameters

handle

shishi handle allocated by shishi_init().

 

principal

string with desired principal name and realm.

 

authzname

authorization name.

 

Returns

Returns 1 if authzname is authorized for services by principal , and returns 0 otherwise.


shishi_x509ca_default_file_guess ()

char *
shishi_x509ca_default_file_guess (Shishi *handle);

Guesses the default X.509 CA certificate filename; it is $HOME/.shishi/client.ca.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns default X.509 client certificate filename as a string that has to be deallocated with free() by the caller.


shishi_x509ca_default_file_set ()

void
shishi_x509ca_default_file_set (Shishi *handle,
                                const char *x509cafile);

Set the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

x509cafile

string with new default x509 client certificate file name, or NULL to reset to default.

 

shishi_x509ca_default_file ()

const char *
shishi_x509ca_default_file (Shishi *handle);

Get filename for default X.509 CA certificate.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is not a copy, so don't modify or deallocate it.


shishi_x509cert_default_file_guess ()

char *
shishi_x509cert_default_file_guess (Shishi *handle);

Guesses the default X.509 client certificate filename; it is $HOME/.shishi/client.certs.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns default X.509 client certificate filename as a string that has to be deallocated with free() by the caller.


shishi_x509cert_default_file_set ()

void
shishi_x509cert_default_file_set (Shishi *handle,
                                  const char *x509certfile);

Set the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

x509certfile

string with new default x509 client certificate file name, or NULL to reset to default.

 

shishi_x509cert_default_file ()

const char *
shishi_x509cert_default_file (Shishi *handle);

Get filename for default X.509 certificate.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it.


shishi_x509key_default_file_guess ()

char *
shishi_x509key_default_file_guess (Shishi *handle);

Guesses the default X.509 client key filename; it is $HOME/.shishi/client.key.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns default X.509 client key filename as a string that has to be deallocated with free() by the caller.


shishi_x509key_default_file_set ()

void
shishi_x509key_default_file_set (Shishi *handle,
                                 const char *x509keyfile);

Set the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function.

Parameters

handle

Shishi library handle create by shishi_init().

 

x509keyfile

string with new default x509 client key file name, or NULL to reset to default.

 

shishi_x509key_default_file ()

const char *
shishi_x509key_default_file (Shishi *handle);

Get filename for default X.509 key.

Parameters

handle

Shishi library handle create by shishi_init().

 

Returns

Returns the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it.


shishi_get_date ()

time_t
shishi_get_date (const char *p,
                 const time_t *now);

shishi_xalloc_die ()

void
shishi_xalloc_die (void);

shishi_resolv ()

Shishi_dns
shishi_resolv (const char *zone,
               uint16_t querytype);

Queries the DNS resolver for data of type querytype about the domain name zone . Currently, the types SHISHI_DNS_TXT and SHISHI_DNS_SRV are the only supported kinds.

After its use, the returned list should be deallocated by a call to shishi_resolv_free().

Parameters

zone

Domain name of authentication zone, e.g. "EXAMPLE.ORG"

 

querytype

Type of domain data to query for.

 

Returns

Returns a linked list of DNS resource records, or NULL if the query failed.


shishi_resolv_free ()

void
shishi_resolv_free (Shishi_dns rrs);

Deallocates a list of DNS resource records returned by a call to shishi_resolv().

Parameters

rrs

List of DNS RRs as returned by shishi_resolv().

 

Types and Values

enum Shishi_rc

Members

SHISHI_OK

   

SHISHI_ASN1_ERROR

   

SHISHI_FOPEN_ERROR

   

SHISHI_IO_ERROR

   

SHISHI_MALLOC_ERROR

   

SHISHI_BASE64_ERROR

   

SHISHI_REALM_MISMATCH

   

SHISHI_CNAME_MISMATCH

   

SHISHI_NONCE_MISMATCH

   

SHISHI_TGSREP_BAD_KEYTYPE

   

SHISHI_KDCREP_BAD_KEYTYPE

   

SHISHI_APREP_BAD_KEYTYPE

   

SHISHI_APREP_VERIFY_FAILED

   

SHISHI_APREQ_BAD_KEYTYPE

   

SHISHI_TOO_SMALL_BUFFER

   

SHISHI_DERIVEDKEY_TOO_SMALL

   

SHISHI_KEY_TOO_LARGE

   

SHISHI_CRYPTO_ERROR

   

SHISHI_CRYPTO_INTERNAL_ERROR

   

SHISHI_SOCKET_ERROR

   

SHISHI_BIND_ERROR

   

SHISHI_SENDTO_ERROR

   

SHISHI_RECVFROM_ERROR

   

SHISHI_CLOSE_ERROR

   

SHISHI_KDC_TIMEOUT

   

SHISHI_KDC_NOT_KNOWN_FOR_REALM

   

SHISHI_TTY_ERROR

   

SHISHI_GOT_KRBERROR

   

SHISHI_HANDLE_ERROR

   

SHISHI_INVALID_TKTS

   

SHISHI_TICKET_BAD_KEYTYPE

   

SHISHI_INVALID_KEY

   

SHISHI_APREQ_DECRYPT_FAILED

   

SHISHI_TICKET_DECRYPT_FAILED

   

SHISHI_INVALID_TICKET

   

SHISHI_OUT_OF_RANGE

   

SHISHI_ASN1_NO_ELEMENT

   

SHISHI_SAFE_BAD_KEYTYPE

   

SHISHI_SAFE_VERIFY_FAILED

   

SHISHI_PKCS5_INVALID_PRF

   

SHISHI_PKCS5_INVALID_ITERATION_COUNT

   

SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH

   

SHISHI_PKCS5_DERIVED_KEY_TOO_LONG

   

SHISHI_INVALID_PRINCIPAL_NAME

   

SHISHI_INVALID_ARGUMENT

   

SHISHI_ASN1_NO_VALUE

   

SHISHI_CONNECT_ERROR

   

SHISHI_VERIFY_FAILED

   

SHISHI_PRIV_BAD_KEYTYPE

   

SHISHI_FILE_ERROR

   

SHISHI_ENCAPREPPART_BAD_KEYTYPE

   

SHISHI_GETTIMEOFDAY_ERROR

   

SHISHI_KEYTAB_ERROR

   

SHISHI_CCACHE_ERROR

   

SHISHI_LAST_ERROR

   

enum Shishi_name_type

Members

SHISHI_NT_UNKNOWN

   

SHISHI_NT_PRINCIPAL

   

SHISHI_NT_SRV_INST

   

SHISHI_NT_SRV_HST

   

SHISHI_NT_SRV_XHST

   

SHISHI_NT_UID

   

SHISHI_NT_X500_PRINCIPAL

   

SHISHI_NT_SMTP_NAME

   

SHISHI_NT_ENTERPRISE

   

enum Shishi_padata_type

Members

SHISHI_PA_TGS_REQ

   

SHISHI_PA_ENC_TIMESTAMP

   

SHISHI_PA_PW_SALT

   

SHISHI_PA_RESERVED

   

SHISHI_PA_ENC_UNIX_TIME

   

SHISHI_PA_SANDIA_SECUREID

   

SHISHI_PA_SESAME

   

SHISHI_PA_OSF_DCE

   

SHISHI_PA_CYBERSAFE_SECUREID

   

SHISHI_PA_AFS3_SALT

   

SHISHI_PA_ETYPE_INFO

   

SHISHI_PA_SAM_CHALLENGE

   

SHISHI_PA_SAM_RESPONSE

   

SHISHI_PA_PK_AS_REQ

   

SHISHI_PA_PK_AS_REP

   

SHISHI_PA_ETYPE_INFO2

   

SHISHI_PA_USE_SPECIFIED_KVNO

   

SHISHI_PA_SAM_REDIRECT

   

SHISHI_PA_GET_FROM_TYPED_DATA

   

SHISHI_TD_PADATA

   

SHISHI_PA_SAM_ETYPE_INFO

   

SHISHI_PA_ALT_PRINC

   

SHISHI_PA_SAM_CHALLENGE2

   

SHISHI_PA_SAM_RESPONSE2

   

SHISHI_PA_EXTRA_TGT

   

SHISHI_TD_PKINIT_CMS_CERTIFICATES

   

SHISHI_TD_KRB_PRINCIPAL

   

SHISHI_TD_KRB_REALM

   

SHISHI_TD_TRUSTED_CERTIFIERS

   

SHISHI_TD_CERTIFICATE_INDEX

   

SHISHI_TD_APP_DEFINED_ERROR

   

SHISHI_TD_REQ_NONCE

   

SHISHI_TD_REQ_SEQ

   

SHISHI_PA_PAC_REQUEST

   

enum Shishi_tr_type

Members

SHISHI_TR_DOMAIN_X500_COMPRESS

   

enum Shishi_apoptions

Members

SHISHI_APOPTIONS_RESERVED

   

SHISHI_APOPTIONS_USE_SESSION_KEY

   

SHISHI_APOPTIONS_MUTUAL_REQUIRED

   

enum Shishi_ticketflags

Members

SHISHI_TICKETFLAGS_RESERVED

   

SHISHI_TICKETFLAGS_FORWARDABLE

   

SHISHI_TICKETFLAGS_FORWARDED

   

SHISHI_TICKETFLAGS_PROXIABLE

   

SHISHI_TICKETFLAGS_PROXY

   

SHISHI_TICKETFLAGS_MAY_POSTDATE

   

SHISHI_TICKETFLAGS_POSTDATED

   

SHISHI_TICKETFLAGS_INVALID

   

SHISHI_TICKETFLAGS_RENEWABLE

   

SHISHI_TICKETFLAGS_INITIAL

   

SHISHI_TICKETFLAGS_PRE_AUTHENT

   

SHISHI_TICKETFLAGS_HW_AUTHENT

   

SHISHI_TICKETFLAGS_TRANSITED_POLICY_CHECKED

   

SHISHI_TICKETFLAGS_OK_AS_DELEGATE

   

enum Shishi_KDCOptions

Members

SHISHI_KDCOPTIONS_RESERVED

   

SHISHI_KDCOPTIONS_FORWARDABLE

   

SHISHI_KDCOPTIONS_FORWARDED

   

SHISHI_KDCOPTIONS_PROXIABLE

   

SHISHI_KDCOPTIONS_PROXY

   

SHISHI_KDCOPTIONS_ALLOW_POSTDATE

   

SHISHI_KDCOPTIONS_POSTDATED

   

SHISHI_KDCOPTIONS_UNUSED7

   

SHISHI_KDCOPTIONS_RENEWABLE

   

SHISHI_KDCOPTIONS_UNUSED9

   

SHISHI_KDCOPTIONS_UNUSED10

   

SHISHI_KDCOPTIONS_UNUSED11

   

enum Shishi_msgtype

Members

SHISHI_MSGTYPE_AS_REQ

   

SHISHI_MSGTYPE_AS_REP

   

SHISHI_MSGTYPE_TGS_REQ

   

SHISHI_MSGTYPE_TGS_REP

   

SHISHI_MSGTYPE_AP_REQ

   

SHISHI_MSGTYPE_AP_REP

   

SHISHI_MSGTYPE_RESERVED16

   

SHISHI_MSGTYPE_RESERVED17

   

SHISHI_MSGTYPE_SAFE

   

SHISHI_MSGTYPE_PRIV

   

SHISHI_MSGTYPE_CRED

   

SHISHI_MSGTYPE_ERROR

   

enum Shishi_lrtype

Members

SHISHI_LRTYPE_LAST_INITIAL_TGT_REQUEST

   

SHISHI_LRTYPE_LAST_INITIAL_REQUEST

   

SHISHI_LRTYPE_NEWEST_TGT_ISSUE

   

SHISHI_LRTYPE_LAST_RENEWAL

   

SHISHI_LRTYPE_LAST_REQUEST

   

enum Shishi_etype

Members

SHISHI_NULL

   

SHISHI_DES_CBC_CRC

   

SHISHI_DES_CBC_MD4

   

SHISHI_DES_CBC_MD5

   

SHISHI_DES_CBC_NONE

   

SHISHI_DES3_CBC_NONE

   

SHISHI_DES3_CBC_HMAC_SHA1_KD

   

SHISHI_AES128_CTS_HMAC_SHA1_96

   

SHISHI_AES256_CTS_HMAC_SHA1_96

   

SHISHI_ARCFOUR_HMAC

   

SHISHI_ARCFOUR_HMAC_EXP

   

enum Shishi_cksumtype

Members

SHISHI_CRC32

   

SHISHI_RSA_MD4

   

SHISHI_RSA_MD4_DES

   

SHISHI_DES_MAC

   

SHISHI_DES_MAC_K

   

SHISHI_RSA_MD4_DES_K

   

SHISHI_RSA_MD5

   

SHISHI_RSA_MD5_DES

   

SHISHI_RSA_MD5_DES_GSS

   

SHISHI_HMAC_SHA1_DES3_KD

   

SHISHI_HMAC_SHA1_96_AES128

   

SHISHI_HMAC_SHA1_96_AES256

   

SHISHI_ARCFOUR_HMAC_MD5

   

SHISHI_KRB5_GSSAPI_CKSUM

   

SHISHI_NO_CKSUMTYPE

   

enum Shishi_filetype

Members

SHISHI_FILETYPE_TEXT

   

SHISHI_FILETYPE_DER

   

SHISHI_FILETYPE_HEX

   

SHISHI_FILETYPE_BASE64

   

SHISHI_FILETYPE_BINARY

   

enum Shishi_outputtype

Members

SHISHI_OUTPUTTYPE_NULL

   

SHISHI_OUTPUTTYPE_STDERR

   

SHISHI_OUTPUTTYPE_SYSLOG

   

enum Shishi_authorization

Members

SHISHI_AUTHORIZATION_BASIC

   

SHISHI_AUTHORIZATION_K5LOGIN

   

enum Shishi_keyusage

Members

SHISHI_KEYUSAGE_ASREQ_PA_ENC_TIMESTAMP

   

SHISHI_KEYUSAGE_ENCTICKETPART

   

SHISHI_KEYUSAGE_ENCASREPPART

   

SHISHI_KEYUSAGE_TGSREQ_AUTHORIZATIONDATA_TGS_SESSION_KEY

   

SHISHI_KEYUSAGE_TGSREQ_AUTHORIZATIONDATA_TGS_AUTHENTICATOR_KEY

   

SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR_CKSUM

   

SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR

   

SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY

   

SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY

   

SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR_CKSUM

   

SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR

   

SHISHI_KEYUSAGE_ENCAPREPPART

   

SHISHI_KEYUSAGE_KRB_PRIV

   

SHISHI_KEYUSAGE_KRB_CRED

   

SHISHI_KEYUSAGE_KRB_SAFE

   

SHISHI_KEYUSAGE_KRB_ERROR

   

SHISHI_KEYUSAGE_AD_KDCISSUED

   

SHISHI_KEYUSAGE_TICKET_EXTENSION

   

SHISHI_KEYUSAGE_TICKET_EXTENSION_AUTHORIZATION

   

SHISHI_KEYUSAGE_GSS_R1

   

SHISHI_KEYUSAGE_GSS_R2

   

SHISHI_KEYUSAGE_GSS_R3

   

SHISHI_KEYUSAGE_ACCEPTOR_SEAL

   

SHISHI_KEYUSAGE_ACCEPTOR_SIGN

   

SHISHI_KEYUSAGE_INITIATOR_SEAL

   

SHISHI_KEYUSAGE_INITIATOR_SIGN

   

SHISHI_KEYUSAGE_KCMD_DES

   

SHISHI_KEYUSAGE_KCMD_INPUT

   

SHISHI_KEYUSAGE_KCMD_OUTPUT

   

SHISHI_KEYUSAGE_KCMD_STDERR_INPUT

   

SHISHI_KEYUSAGE_KCMD_STDERR_OUTPUT

   

enum Shishi_krb_error

Members

SHISHI_KDC_ERR_NONE

   

SHISHI_KDC_ERR_NAME_EXP

   

SHISHI_KDC_ERR_SERVICE_EXP

   

SHISHI_KDC_ERR_BAD_PVNO

   

SHISHI_KDC_ERR_C_OLD_MAST_KVNO

   

SHISHI_KDC_ERR_S_OLD_MAST_KVNO

   

SHISHI_KDC_ERR_C_PRINCIPAL_UNKNOWN

   

SHISHI_KDC_ERR_S_PRINCIPAL_UNKNOWN

   

SHISHI_KDC_ERR_PRINCIPAL_NOT_UNIQUE

   

SHISHI_KDC_ERR_NULL_KEY

   

SHISHI_KDC_ERR_CANNOT_POSTDATE

   

SHISHI_KDC_ERR_NEVER_VALID

   

SHISHI_KDC_ERR_POLICY

   

SHISHI_KDC_ERR_BADOPTION

   

SHISHI_KDC_ERR_ETYPE_NOSUPP

   

SHISHI_KDC_ERR_SUMTYPE_NOSUPP

   

SHISHI_KDC_ERR_PADATA_TYPE_NOSUPP

   

SHISHI_KDC_ERR_TRTYPE_NOSUPP

   

SHISHI_KDC_ERR_CLIENT_REVOKED

   

SHISHI_KDC_ERR_SERVICE_REVOKED

   

SHISHI_KDC_ERR_TGT_REVOKED

   

SHISHI_KDC_ERR_CLIENT_NOTYET

   

SHISHI_KDC_ERR_SERVICE_NOTYET

   

SHISHI_KDC_ERR_KEY_EXPIRED

   

SHISHI_KDC_ERR_PREAUTH_FAILED

   

SHISHI_KDC_ERR_PREAUTH_REQUIRED

   

SHISHI_KDC_ERR_SERVER_NOMATCH

   

SHISHI_KDC_ERR_MUST_USE_USER2USER

   

SHISHI_KDC_ERR_PATH_NOT_ACCPETED

   

SHISHI_KDC_ERR_SVC_UNAVAILABLE

   

SHISHI_KRB_AP_ERR_BAD_INTEGRITY

   

SHISHI_KRB_AP_ERR_TKT_EXPIRED

   

SHISHI_KRB_AP_ERR_TKT_NYV

   

SHISHI_KRB_AP_ERR_REPEAT

   

SHISHI_KRB_AP_ERR_NOT_US

   

SHISHI_KRB_AP_ERR_BADMATCH

   

SHISHI_KRB_AP_ERR_SKEW

   

SHISHI_KRB_AP_ERR_BADADDR

   

SHISHI_KRB_AP_ERR_BADVERSION

   

SHISHI_KRB_AP_ERR_MSG_TYPE

   

SHISHI_KRB_AP_ERR_MODIFIED

   

SHISHI_KRB_AP_ERR_BADORDER

   

SHISHI_KRB_AP_ERR_BADKEYVER

   

SHISHI_KRB_AP_ERR_NOKEY

   

SHISHI_KRB_AP_ERR_MUT_FAIL

   

SHISHI_KRB_AP_ERR_BADDIRECTION

   

SHISHI_KRB_AP_ERR_METHOD

   

SHISHI_KRB_AP_ERR_BADSEQ

   

SHISHI_KRB_AP_ERR_INAPP_CKSUM

   

SHISHI_KRB_AP_PATH_NOT_ACCEPTED

   

SHISHI_KRB_ERR_RESPONSE_TOO_BIG

   

SHISHI_KRB_ERR_GENERIC

   

SHISHI_KRB_ERR_FIELD_TOOLONG

   

SHISHI_KDC_ERROR_CLIENT_NOT_TRUSTED

   

SHISHI_KDC_ERROR_KDC_NOT_TRUSTED

   

SHISHI_KDC_ERROR_INVALID_SIG

   

SHISHI_KDC_ERR_KEY_TOO_WEAK

   

SHISHI_KDC_ERR_CERTIFICATE_MISMATCH

   

SHISHI_KRB_AP_ERR_NO_TGT

   

SHISHI_KDC_ERR_WRONG_REALM

   

SHISHI_KRB_AP_ERR_USER_TO_USER_REQUIRED

   

SHISHI_KDC_ERR_CANT_VERIFY_CERTIFICATE

   

SHISHI_KDC_ERR_INVALID_CERTIFICATE

   

SHISHI_KDC_ERR_REVOKED_CERTIFICATE

   

SHISHI_KDC_ERR_REVOCATION_STATUS_UNKNOWN

   

SHISHI_KDC_ERR_REVOCATION_STATUS_UNAVAILABLE

   

SHISHI_KDC_ERR_CLIENT_NAME_MISMATCH

   

SHISHI_KDC_ERR_KDC_NAME_MISMATCH

   

SHISHI_LAST_ERROR_CODE

   

enum Shishi_tkts_hintflags

Members

SHISHI_TKTSHINTFLAGS_ACCEPT_EXPIRED

   

SHISHI_TKTSHINTFLAGS_NON_INTERACTIVE

   

struct Shishi_tkts_hint

struct Shishi_tkts_hint {
    int startpos;
    char *server;
    char *serverrealm;
    char *client;
    char *clientrealm;
    int flags;
    Shishi_ticketflags tktflags;
    Shishi_KDCOptions kdcoptions;
    int32_t etype;
    char *passwd;
    time_t starttime;
    time_t endtime;
    time_t renew_till;
    int32_t preauthetype;
    char *preauthsalt;
    size_t preauthsaltlen;
    char *preauths2kparams;
    size_t preauths2kparamslen;
};

struct Shishi_dns_st

struct Shishi_dns_st {
    struct Shishi_dns_st *next;

    uint16_t class;
    uint16_t type;
    uint32_t ttl;

    void *rr;
};

struct Shishi_dns_srv_st

struct Shishi_dns_srv_st {
    uint16_t priority;
    uint16_t weight;
    uint16_t port;

    char name[256];
};

SHISHI_DNS_IN

# define SHISHI_DNS_IN 1

SHISHI_DNS_TXT

# define SHISHI_DNS_TXT 16

SHISHI_DNS_SRV

# define SHISHI_DNS_SRV 33

Shishi_dns

  typedef struct Shishi_dns_st *Shishi_dns;

Shishi_dns_srv

  typedef struct Shishi_dns_srv_st *Shishi_dns_srv;

Shishi

  typedef struct Shishi Shishi;

Shishi_tkt

  typedef struct Shishi_tkt Shishi_tkt;

Shishi_tkts

  typedef struct Shishi_tkts Shishi_tkts;

Shishi_as

  typedef struct Shishi_as Shishi_as;

Shishi_tgs

  typedef struct Shishi_tgs Shishi_tgs;

Shishi_ap

  typedef struct Shishi_ap Shishi_ap;

Shishi_key

  typedef struct Shishi_key Shishi_key;

Shishi_keys

  typedef struct Shishi_keys Shishi_keys;

Shishi_safe

  typedef struct Shishi_safe Shishi_safe;

Shishi_priv

  typedef struct Shishi_priv Shishi_priv;

Shishi_asn1

  typedef ASN1_TYPE Shishi_asn1;

Shishi_crypto

  typedef struct Shishi_crypto Shishi_crypto;

SHISHI_GENERALIZEDTIME_LENGTH

# define SHISHI_GENERALIZEDTIME_LENGTH 15

SHISHI_GENERALIZEDTIMEZ_LENGTH

# define SHISHI_GENERALIZEDTIMEZ_LENGTH (SHISHI_GENERALIZEDTIME_LENGTH + 1)
shishi-1.0.3/doc/reference/html/api-index-full.html0000644000000000000000000055604614273616165017077 00000000000000 API Index: GNU Shishi API Reference Manual

API Index

S

Shishi, typedef in shishi.h
shishi, function in shishi.h

3

shishi_3des, function in shishi.h

A

shishi_aes_cts, function in shishi.h
shishi_alloc_fail_function, user_function in shishi.h
Shishi_ap, typedef in shishi.h
shishi_ap, function in shishi.h
Shishi_apoptions, enum in shishi.h
shishi_aprep, function in shishi.h
shishi_aprep_decrypt, function in shishi.h
shishi_aprep_enc_part_add, function in shishi.h
shishi_aprep_enc_part_make, function in shishi.h
shishi_aprep_enc_part_set, function in shishi.h
shishi_aprep_from_file, function in shishi.h
shishi_aprep_get_enc_part_etype, function in shishi.h
shishi_aprep_parse, function in shishi.h
shishi_aprep_print, function in shishi.h
shishi_aprep_read, function in shishi.h
shishi_aprep_save, function in shishi.h
shishi_aprep_to_file, function in shishi.h
shishi_aprep_verify, function in shishi.h
shishi_apreq, function in shishi.h
shishi_apreq_add_authenticator, function in shishi.h
shishi_apreq_decrypt, function in shishi.h
shishi_apreq_from_file, function in shishi.h
shishi_apreq_get_authenticator_etype, function in shishi.h
shishi_apreq_get_ticket, function in shishi.h
shishi_apreq_mutual_required_p, function in shishi.h
shishi_apreq_options, function in shishi.h
shishi_apreq_options_add, function in shishi.h
shishi_apreq_options_remove, function in shishi.h
shishi_apreq_options_set, function in shishi.h
shishi_apreq_parse, function in shishi.h
shishi_apreq_print, function in shishi.h
shishi_apreq_read, function in shishi.h
shishi_apreq_save, function in shishi.h
shishi_apreq_set_authenticator, function in shishi.h
shishi_apreq_set_ticket, function in shishi.h
shishi_apreq_to_file, function in shishi.h
shishi_apreq_use_session_key_p, function in shishi.h
shishi_ap_authenticator, function in shishi.h
shishi_ap_authenticator_cksumdata, function in shishi.h
shishi_ap_authenticator_cksumdata_set, function in shishi.h
shishi_ap_authenticator_cksumraw_set, function in shishi.h
shishi_ap_authenticator_cksumtype, function in shishi.h
shishi_ap_authenticator_cksumtype_set, function in shishi.h
shishi_ap_authenticator_set, function in shishi.h
shishi_ap_done, function in shishi.h
shishi_ap_encapreppart, function in shishi.h
shishi_ap_encapreppart_set, function in shishi.h
shishi_ap_etype, function in shishi.h
shishi_ap_etype_tktoptionsdata, function in shishi.h
shishi_ap_key, function in shishi.h
shishi_ap_nosubkey, function in shishi.h
shishi_ap_option2string, function in shishi.h
shishi_ap_rep, function in shishi.h
shishi_ap_rep_asn1, function in shishi.h
shishi_ap_rep_build, function in shishi.h
shishi_ap_rep_der, function in shishi.h
shishi_ap_rep_der_set, function in shishi.h
shishi_ap_rep_set, function in shishi.h
shishi_ap_rep_verify, function in shishi.h
shishi_ap_rep_verify_asn1, function in shishi.h
shishi_ap_rep_verify_der, function in shishi.h
shishi_ap_req, function in shishi.h
shishi_ap_req_asn1, function in shishi.h
shishi_ap_req_build, function in shishi.h
shishi_ap_req_decode, function in shishi.h
shishi_ap_req_der, function in shishi.h
shishi_ap_req_der_set, function in shishi.h
shishi_ap_req_process, function in shishi.h
shishi_ap_req_process_keyusage, function in shishi.h
shishi_ap_req_set, function in shishi.h
shishi_ap_set_tktoptions, function in shishi.h
shishi_ap_set_tktoptionsasn1usage, function in shishi.h
shishi_ap_set_tktoptionsdata, function in shishi.h
shishi_ap_set_tktoptionsraw, function in shishi.h
shishi_ap_string2option, function in shishi.h
shishi_ap_tkt, function in shishi.h
shishi_ap_tktoptions, function in shishi.h
shishi_ap_tktoptionsasn1usage, function in shishi.h
shishi_ap_tktoptionsdata, function in shishi.h
shishi_ap_tktoptionsraw, function in shishi.h
shishi_ap_tkt_set, function in shishi.h
shishi_arcfour, function in shishi.h
Shishi_as, typedef in shishi.h
shishi_as, function in shishi.h
Shishi_asn1, typedef in shishi.h
shishi_asn1_aprep, function in shishi.h
shishi_asn1_apreq, function in shishi.h
shishi_asn1_asrep, function in shishi.h
shishi_asn1_asreq, function in shishi.h
shishi_asn1_authenticator, function in shishi.h
shishi_asn1_done, function in shishi.h
shishi_asn1_empty_p, function in shishi.h
shishi_asn1_encapreppart, function in shishi.h
shishi_asn1_encasreppart, function in shishi.h
shishi_asn1_enckdcreppart, function in shishi.h
shishi_asn1_encprivpart, function in shishi.h
shishi_asn1_encrypteddata, function in shishi.h
shishi_asn1_encticketpart, function in shishi.h
shishi_asn1_etype_info, function in shishi.h
shishi_asn1_etype_info2, function in shishi.h
shishi_asn1_krberror, function in shishi.h
shishi_asn1_krbsafe, function in shishi.h
shishi_asn1_methoddata, function in shishi.h
shishi_asn1_msgtype, function in shishi.h
shishi_asn1_number_of_elements, function in shishi.h
shishi_asn1_padata, function in shishi.h
shishi_asn1_pa_enc_ts_enc, function in shishi.h
shishi_asn1_print, function in shishi.h
shishi_asn1_priv, function in shishi.h
shishi_asn1_read, function in shishi.h
shishi_asn1_read_bitstring, function in shishi.h
shishi_asn1_read_inline, function in shishi.h
shishi_asn1_read_int32, function in shishi.h
shishi_asn1_read_integer, function in shishi.h
shishi_asn1_read_optional, function in shishi.h
shishi_asn1_read_uint32, function in shishi.h
shishi_asn1_tgsrep, function in shishi.h
shishi_asn1_tgsreq, function in shishi.h
shishi_asn1_ticket, function in shishi.h
shishi_asn1_to_der, function in shishi.h
shishi_asn1_to_der_field, function in shishi.h
shishi_asn1_write, function in shishi.h
shishi_asn1_write_bitstring, function in shishi.h
shishi_asn1_write_int32, function in shishi.h
shishi_asn1_write_integer, function in shishi.h
shishi_asn1_write_uint32, function in shishi.h
shishi_asrep, function in shishi.h
shishi_asreq, function in shishi.h
shishi_asreq_clientrealm, function in shishi.h
shishi_asreq_rsc, function in shishi.h
shishi_as_check_cname, function in shishi.h
shishi_as_check_crealm, function in shishi.h
shishi_as_derive_salt, function in shishi.h
shishi_as_done, function in shishi.h
shishi_as_krberror, function in shishi.h
shishi_as_krberror_der, function in shishi.h
shishi_as_krberror_set, function in shishi.h
shishi_as_process, function in shishi.h
shishi_as_rep, function in shishi.h
shishi_as_rep_build, function in shishi.h
shishi_as_rep_der, function in shishi.h
shishi_as_rep_der_set, function in shishi.h
shishi_as_rep_process, function in shishi.h
shishi_as_rep_set, function in shishi.h
shishi_as_req, function in shishi.h
shishi_as_req_build, function in shishi.h
shishi_as_req_der, function in shishi.h
shishi_as_req_der_set, function in shishi.h
shishi_as_req_set, function in shishi.h
shishi_as_sendrecv, function in shishi.h
shishi_as_sendrecv_hint, function in shishi.h
shishi_as_tkt, function in shishi.h
shishi_as_tkt_set, function in shishi.h
shishi_authenticator, function in shishi.h
shishi_authenticator_add_authorizationdata, function in shishi.h
shishi_authenticator_add_cksum, function in shishi.h
shishi_authenticator_add_cksum_type, function in shishi.h
shishi_authenticator_add_random_subkey, function in shishi.h
shishi_authenticator_add_random_subkey_etype, function in shishi.h
shishi_authenticator_add_subkey, function in shishi.h
shishi_authenticator_authorizationdata, function in shishi.h
shishi_authenticator_cksum, function in shishi.h
shishi_authenticator_clear_authorizationdata, function in shishi.h
shishi_authenticator_client, function in shishi.h
shishi_authenticator_clientrealm, function in shishi.h
shishi_authenticator_client_set, function in shishi.h
shishi_authenticator_ctime, function in shishi.h
shishi_authenticator_ctime_set, function in shishi.h
shishi_authenticator_cusec_get, function in shishi.h
shishi_authenticator_cusec_set, function in shishi.h
shishi_authenticator_from_file, function in shishi.h
shishi_authenticator_get_subkey, function in shishi.h
shishi_authenticator_parse, function in shishi.h
shishi_authenticator_print, function in shishi.h
shishi_authenticator_read, function in shishi.h
shishi_authenticator_remove_cksum, function in shishi.h
shishi_authenticator_remove_subkey, function in shishi.h
shishi_authenticator_save, function in shishi.h
shishi_authenticator_seqnumber_get, function in shishi.h
shishi_authenticator_seqnumber_remove, function in shishi.h
shishi_authenticator_seqnumber_set, function in shishi.h
shishi_authenticator_set_cksum, function in shishi.h
shishi_authenticator_set_cname, function in shishi.h
shishi_authenticator_set_crealm, function in shishi.h
shishi_authenticator_set_subkey, function in shishi.h
shishi_authenticator_subkey, function in shishi.h
shishi_authenticator_to_file, function in shishi.h
Shishi_authorization, enum in shishi.h
shishi_authorization_parse, function in shishi.h
shishi_authorized_p, function in shishi.h
shishi_authorize_k5login, function in shishi.h
shishi_authorize_strcmp, function in shishi.h

C

shishi_cfg, function in shishi.h
shishi_cfg_authorizationtype_set, function in shishi.h
shishi_cfg_clientkdcetype, function in shishi.h
shishi_cfg_clientkdcetype_fast, function in shishi.h
shishi_cfg_clientkdcetype_set, function in shishi.h
shishi_cfg_default_systemfile, function in shishi.h
shishi_cfg_default_userdirectory, function in shishi.h
shishi_cfg_default_userfile, function in shishi.h
shishi_cfg_from_file, function in shishi.h
shishi_cfg_print, function in shishi.h
shishi_cfg_userdirectory_file, function in shishi.h
shishi_checksum, function in shishi.h
shishi_checksum_cksumlen, function in shishi.h
shishi_checksum_name, function in shishi.h
shishi_checksum_parse, function in shishi.h
shishi_checksum_supported_p, function in shishi.h
shishi_check_version, function in shishi.h
shishi_cipher_blocksize, function in shishi.h
shishi_cipher_confoundersize, function in shishi.h
shishi_cipher_defaultcksumtype, function in shishi.h
shishi_cipher_keylen, function in shishi.h
shishi_cipher_name, function in shishi.h
shishi_cipher_parse, function in shishi.h
shishi_cipher_randomlen, function in shishi.h
shishi_cipher_supported_p, function in shishi.h
Shishi_cksumtype, enum in shishi.h
shishi_crc, function in shishi.h
Shishi_crypto, typedef in shishi.h
shishi_crypto, function in shishi.h
shishi_crypto_close, function in shishi.h
shishi_crypto_decrypt, function in shishi.h
shishi_crypto_encrypt, function in shishi.h
shishi_ctime, function in shishi.h

D

shishi_decrypt, function in shishi.h
shishi_decrypt_etype, function in shishi.h
shishi_decrypt_iv, function in shishi.h
shishi_decrypt_ivupdate, function in shishi.h
shishi_decrypt_ivupdate_etype, function in shishi.h
shishi_decrypt_iv_etype, function in shishi.h
shishi_der2asn1, function in shishi.h
shishi_der2asn1_aprep, function in shishi.h
shishi_der2asn1_apreq, function in shishi.h
shishi_der2asn1_asrep, function in shishi.h
shishi_der2asn1_asreq, function in shishi.h
shishi_der2asn1_authenticator, function in shishi.h
shishi_der2asn1_encapreppart, function in shishi.h
shishi_der2asn1_encasreppart, function in shishi.h
shishi_der2asn1_enckdcreppart, function in shishi.h
shishi_der2asn1_encprivpart, function in shishi.h
shishi_der2asn1_enctgsreppart, function in shishi.h
shishi_der2asn1_encticketpart, function in shishi.h
shishi_der2asn1_etype_info, function in shishi.h
shishi_der2asn1_etype_info2, function in shishi.h
shishi_der2asn1_kdcrep, function in shishi.h
shishi_der2asn1_kdcreq, function in shishi.h
shishi_der2asn1_krberror, function in shishi.h
shishi_der2asn1_krbsafe, function in shishi.h
shishi_der2asn1_methoddata, function in shishi.h
shishi_der2asn1_padata, function in shishi.h
shishi_der2asn1_priv, function in shishi.h
shishi_der2asn1_tgsrep, function in shishi.h
shishi_der2asn1_tgsreq, function in shishi.h
shishi_der2asn1_ticket, function in shishi.h
shishi_derive_default_salt, function in shishi.h
shishi_der_msgtype, function in shishi.h
shishi_des, function in shishi.h
shishi_des_cbc_mac, function in shishi.h
shishi_dk, function in shishi.h
Shishi_dns, typedef in shishi.h
SHISHI_DNS_IN, macro in shishi.h
SHISHI_DNS_SRV, macro in shishi.h
Shishi_dns_srv, typedef in shishi.h
Shishi_dns_srv_st, struct in shishi.h
Shishi_dns_st, struct in shishi.h
SHISHI_DNS_TXT, macro in shishi.h
shishi_done, function in shishi.h
shishi_dr, function in shishi.h

E

shishi_encapreppart, function in shishi.h
shishi_encapreppart_ctime, function in shishi.h
shishi_encapreppart_ctime_set, function in shishi.h
shishi_encapreppart_cusec_get, function in shishi.h
shishi_encapreppart_cusec_set, function in shishi.h
shishi_encapreppart_from_file, function in shishi.h
shishi_encapreppart_get_key, function in shishi.h
shishi_encapreppart_parse, function in shishi.h
shishi_encapreppart_print, function in shishi.h
shishi_encapreppart_read, function in shishi.h
shishi_encapreppart_save, function in shishi.h
shishi_encapreppart_seqnumber_get, function in shishi.h
shishi_encapreppart_seqnumber_remove, function in shishi.h
shishi_encapreppart_seqnumber_set, function in shishi.h
shishi_encapreppart_time_copy, function in shishi.h
shishi_encapreppart_to_file, function in shishi.h
shishi_encasreppart, function in shishi.h
shishi_enckdcreppart, function in shishi.h
shishi_enckdcreppart_authtime_set, function in shishi.h
shishi_enckdcreppart_endtime_set, function in shishi.h
shishi_enckdcreppart_flags_set, function in shishi.h
shishi_enckdcreppart_get_key, function in shishi.h
shishi_enckdcreppart_key_set, function in shishi.h
shishi_enckdcreppart_nonce_set, function in shishi.h
shishi_enckdcreppart_parse, function in shishi.h
shishi_enckdcreppart_populate_encticketpart, function in shishi.h
shishi_enckdcreppart_print, function in shishi.h
shishi_enckdcreppart_read, function in shishi.h
shishi_enckdcreppart_renew_till_set, function in shishi.h
shishi_enckdcreppart_save, function in shishi.h
shishi_enckdcreppart_server_set, function in shishi.h
shishi_enckdcreppart_sname_set, function in shishi.h
shishi_enckdcreppart_srealmserver_set, function in shishi.h
shishi_enckdcreppart_srealm_set, function in shishi.h
shishi_enckdcreppart_starttime_set, function in shishi.h
shishi_encprivpart_set_user_data, function in shishi.h
shishi_encprivpart_user_data, function in shishi.h
shishi_encrypt, function in shishi.h
shishi_encrypt_etype, function in shishi.h
shishi_encrypt_iv, function in shishi.h
shishi_encrypt_ivupdate, function in shishi.h
shishi_encrypt_ivupdate_etype, function in shishi.h
shishi_encrypt_iv_etype, function in shishi.h
shishi_encticketpart, function in shishi.h
shishi_encticketpart_authctime, function in shishi.h
shishi_encticketpart_authtime, function in shishi.h
shishi_encticketpart_authtime_set, function in shishi.h
shishi_encticketpart_client, function in shishi.h
shishi_encticketpart_clientrealm, function in shishi.h
shishi_encticketpart_cname_set, function in shishi.h
shishi_encticketpart_crealm, function in shishi.h
shishi_encticketpart_crealm_set, function in shishi.h
shishi_encticketpart_endtime_set, function in shishi.h
shishi_encticketpart_flags_set, function in shishi.h
shishi_encticketpart_get_key, function in shishi.h
shishi_encticketpart_key_set, function in shishi.h
shishi_encticketpart_print, function in shishi.h
shishi_encticketpart_transited_set, function in shishi.h
shishi_error, function in shishi.h
shishi_error_clear, function in shishi.h
shishi_error_outputtype, function in shishi.h
shishi_error_printf, function in shishi.h
shishi_error_set, function in shishi.h
shishi_error_set_outputtype, function in shishi.h
Shishi_etype, enum in shishi.h
shishi_etype_info2_print, function in shishi.h
shishi_etype_info_print, function in shishi.h

F

Shishi_filetype, enum in shishi.h

G

SHISHI_GENERALIZEDTIMEZ_LENGTH, macro in shishi.h
SHISHI_GENERALIZEDTIME_LENGTH, macro in shishi.h
shishi_generalize_ctime, function in shishi.h
shishi_generalize_now, function in shishi.h
shishi_generalize_time, function in shishi.h
shishi_get_date, function in shishi.h

H

shishi_hmac_md5, function in shishi.h
shishi_hmac_sha1, function in shishi.h
shishi_hostkeys_default_file, function in shishi.h
shishi_hostkeys_default_file_set, function in shishi.h
shishi_hostkeys_for_localservice, function in shishi.h
shishi_hostkeys_for_localservicerealm, function in shishi.h
shishi_hostkeys_for_server, function in shishi.h
shishi_hostkeys_for_serverrealm, function in shishi.h

I

shishi_info, function in shishi.h
shishi_init, function in shishi.h
shishi_init_server, function in shishi.h
shishi_init_server_with_paths, function in shishi.h
shishi_init_with_paths, function in shishi.h

K

Shishi_KDCOptions, enum in shishi.h
shishi_kdcrep_add_enc_part, function in shishi.h
shishi_kdcrep_clear_padata, function in shishi.h
shishi_kdcrep_client_set, function in shishi.h
shishi_kdcrep_cname_set, function in shishi.h
shishi_kdcrep_crealmserver_set, function in shishi.h
shishi_kdcrep_crealm_set, function in shishi.h
shishi_kdcrep_decrypt, function in shishi.h
shishi_kdcrep_from_file, function in shishi.h
shishi_kdcrep_get_enc_part_etype, function in shishi.h
shishi_kdcrep_get_ticket, function in shishi.h
shishi_kdcrep_parse, function in shishi.h
shishi_kdcrep_print, function in shishi.h
shishi_kdcrep_read, function in shishi.h
shishi_kdcrep_save, function in shishi.h
shishi_kdcrep_set_enc_part, function in shishi.h
shishi_kdcrep_set_ticket, function in shishi.h
shishi_kdcrep_to_file, function in shishi.h
shishi_kdcreq, function in shishi.h
shishi_kdcreq_add_padata, function in shishi.h
shishi_kdcreq_add_padata_preauth, function in shishi.h
shishi_kdcreq_add_padata_tgs, function in shishi.h
shishi_kdcreq_allow_postdate_p, function in shishi.h
shishi_kdcreq_build, function in shishi.h
shishi_kdcreq_clear_padata, function in shishi.h
shishi_kdcreq_client, function in shishi.h
shishi_kdcreq_disable_transited_check_p, function in shishi.h
shishi_kdcreq_enc_tkt_in_skey_p, function in shishi.h
shishi_kdcreq_etype, function in shishi.h
shishi_kdcreq_forwardable_p, function in shishi.h
shishi_kdcreq_forwarded_p, function in shishi.h
shishi_kdcreq_from_file, function in shishi.h
shishi_kdcreq_get_padata, function in shishi.h
shishi_kdcreq_get_padata_tgs, function in shishi.h
shishi_kdcreq_nonce, function in shishi.h
shishi_kdcreq_nonce_set, function in shishi.h
shishi_kdcreq_options, function in shishi.h
shishi_kdcreq_options_add, function in shishi.h
shishi_kdcreq_options_set, function in shishi.h
shishi_kdcreq_parse, function in shishi.h
shishi_kdcreq_postdated_p, function in shishi.h
shishi_kdcreq_print, function in shishi.h
shishi_kdcreq_proxiable_p, function in shishi.h
shishi_kdcreq_proxy_p, function in shishi.h
shishi_kdcreq_read, function in shishi.h
shishi_kdcreq_realm, function in shishi.h
shishi_kdcreq_realm_get, function in shishi.h
shishi_kdcreq_renewable_ok_p, function in shishi.h
shishi_kdcreq_renewable_p, function in shishi.h
shishi_kdcreq_renew_p, function in shishi.h
shishi_kdcreq_save, function in shishi.h
shishi_kdcreq_sendrecv, function in shishi.h
shishi_kdcreq_sendrecv_hint, function in shishi.h
shishi_kdcreq_server, function in shishi.h
shishi_kdcreq_set_cname, function in shishi.h
shishi_kdcreq_set_etype, function in shishi.h
shishi_kdcreq_set_realm, function in shishi.h
shishi_kdcreq_set_realmserver, function in shishi.h
shishi_kdcreq_set_server, function in shishi.h
shishi_kdcreq_set_sname, function in shishi.h
shishi_kdcreq_till, function in shishi.h
shishi_kdcreq_tillc, function in shishi.h
shishi_kdcreq_to_file, function in shishi.h
shishi_kdcreq_validate_p, function in shishi.h
shishi_kdc_check_nonce, function in shishi.h
shishi_kdc_copy_cname, function in shishi.h
shishi_kdc_copy_crealm, function in shishi.h
shishi_kdc_copy_nonce, function in shishi.h
shishi_kdc_print, function in shishi.h
shishi_kdc_process, function in shishi.h
shishi_kdc_sendrecv, function in shishi.h
shishi_kdc_sendrecv_hint, function in shishi.h
Shishi_key, typedef in shishi.h
shishi_key, function in shishi.h
Shishi_keys, typedef in shishi.h
shishi_keys, function in shishi.h
shishi_keys_add, function in shishi.h
shishi_keys_add_keytab_file, function in shishi.h
shishi_keys_add_keytab_mem, function in shishi.h
shishi_keys_done, function in shishi.h
shishi_keys_for_localservicerealm_in_file, function in shishi.h
shishi_keys_for_serverrealm_in_file, function in shishi.h
shishi_keys_for_server_in_file, function in shishi.h
shishi_keys_from_file, function in shishi.h
shishi_keys_from_keytab_file, function in shishi.h
shishi_keys_from_keytab_mem, function in shishi.h
shishi_keys_nth, function in shishi.h
shishi_keys_print, function in shishi.h
shishi_keys_remove, function in shishi.h
shishi_keys_size, function in shishi.h
shishi_keys_to_file, function in shishi.h
shishi_keys_to_keytab_file, function in shishi.h
shishi_keys_to_keytab_mem, function in shishi.h
Shishi_keyusage, enum in shishi.h
shishi_key_copy, function in shishi.h
shishi_key_done, function in shishi.h
shishi_key_from_base64, function in shishi.h
shishi_key_from_name, function in shishi.h
shishi_key_from_random, function in shishi.h
shishi_key_from_string, function in shishi.h
shishi_key_from_value, function in shishi.h
shishi_key_length, function in shishi.h
shishi_key_name, function in shishi.h
shishi_key_parse, function in shishi.h
shishi_key_principal, function in shishi.h
shishi_key_principal_set, function in shishi.h
shishi_key_print, function in shishi.h
shishi_key_random, function in shishi.h
shishi_key_realm, function in shishi.h
shishi_key_realm_set, function in shishi.h
shishi_key_timestamp, function in shishi.h
shishi_key_timestamp_set, function in shishi.h
shishi_key_to_file, function in shishi.h
shishi_key_type, function in shishi.h
shishi_key_type_set, function in shishi.h
shishi_key_value, function in shishi.h
shishi_key_value_set, function in shishi.h
shishi_key_version, function in shishi.h
shishi_key_version_set, function in shishi.h
shishi_krberror, function in shishi.h
shishi_krberror_build, function in shishi.h
shishi_krberror_client, function in shishi.h
shishi_krberror_client_set, function in shishi.h
shishi_krberror_crealm, function in shishi.h
shishi_krberror_ctime, function in shishi.h
shishi_krberror_ctime_set, function in shishi.h
shishi_krberror_cusec, function in shishi.h
shishi_krberror_cusec_set, function in shishi.h
shishi_krberror_der, function in shishi.h
shishi_krberror_edata, function in shishi.h
shishi_krberror_errorcode, function in shishi.h
shishi_krberror_errorcode_fast, function in shishi.h
shishi_krberror_errorcode_message, function in shishi.h
shishi_krberror_errorcode_set, function in shishi.h
shishi_krberror_etext, function in shishi.h
shishi_krberror_from_file, function in shishi.h
shishi_krberror_message, function in shishi.h
shishi_krberror_methoddata, function in shishi.h
shishi_krberror_parse, function in shishi.h
shishi_krberror_pretty_print, function in shishi.h
shishi_krberror_print, function in shishi.h
shishi_krberror_read, function in shishi.h
shishi_krberror_realm, function in shishi.h
shishi_krberror_remove_cname, function in shishi.h
shishi_krberror_remove_crealm, function in shishi.h
shishi_krberror_remove_ctime, function in shishi.h
shishi_krberror_remove_cusec, function in shishi.h
shishi_krberror_remove_edata, function in shishi.h
shishi_krberror_remove_etext, function in shishi.h
shishi_krberror_remove_sname, function in shishi.h
shishi_krberror_save, function in shishi.h
shishi_krberror_server, function in shishi.h
shishi_krberror_server_set, function in shishi.h
shishi_krberror_set_cname, function in shishi.h
shishi_krberror_set_crealm, function in shishi.h
shishi_krberror_set_edata, function in shishi.h
shishi_krberror_set_etext, function in shishi.h
shishi_krberror_set_realm, function in shishi.h
shishi_krberror_set_sname, function in shishi.h
shishi_krberror_stime, function in shishi.h
shishi_krberror_stime_set, function in shishi.h
shishi_krberror_susec, function in shishi.h
shishi_krberror_susec_set, function in shishi.h
shishi_krberror_to_file, function in shishi.h
Shishi_krb_error, enum in shishi.h

L

Shishi_lrtype, enum in shishi.h

M

shishi_md4, function in shishi.h
shishi_md5, function in shishi.h
shishi_methoddata_print, function in shishi.h
Shishi_msgtype, enum in shishi.h

N

Shishi_name_type, enum in shishi.h
shishi_n_fold, function in shishi.h

O

Shishi_outputtype, enum in shishi.h

P

shishi_padata_print, function in shishi.h
Shishi_padata_type, enum in shishi.h
shishi_parse_name, function in shishi.h
shishi_pbkdf2_sha1, function in shishi.h
shishi_principal_default, function in shishi.h
shishi_principal_default_guess, function in shishi.h
shishi_principal_default_set, function in shishi.h
shishi_principal_name, function in shishi.h
shishi_principal_name_realm, function in shishi.h
shishi_principal_name_set, function in shishi.h
shishi_principal_set, function in shishi.h
Shishi_priv, typedef in shishi.h
shishi_priv, function in shishi.h
shishi_priv_build, function in shishi.h
shishi_priv_done, function in shishi.h
shishi_priv_encprivpart, function in shishi.h
shishi_priv_encprivpart_der, function in shishi.h
shishi_priv_encprivpart_der_set, function in shishi.h
shishi_priv_encprivpart_set, function in shishi.h
shishi_priv_enc_part_etype, function in shishi.h
shishi_priv_from_file, function in shishi.h
shishi_priv_key, function in shishi.h
shishi_priv_key_set, function in shishi.h
shishi_priv_parse, function in shishi.h
shishi_priv_print, function in shishi.h
shishi_priv_priv, function in shishi.h
shishi_priv_priv_der, function in shishi.h
shishi_priv_priv_der_set, function in shishi.h
shishi_priv_priv_set, function in shishi.h
shishi_priv_process, function in shishi.h
shishi_priv_read, function in shishi.h
shishi_priv_save, function in shishi.h
shishi_priv_set_enc_part, function in shishi.h
shishi_priv_to_file, function in shishi.h
shishi_prompt_password, function in shishi.h
shishi_prompt_password_callback_get, function in shishi.h
shishi_prompt_password_callback_set, function in shishi.h
shishi_prompt_password_func, user_function in shishi.h

R

shishi_randomize, function in shishi.h
shishi_random_to_key, function in shishi.h
Shishi_rc, enum in shishi.h
shishi_realm_default, function in shishi.h
shishi_realm_default_guess, function in shishi.h
shishi_realm_default_set, function in shishi.h
shishi_realm_for_server, function in shishi.h
shishi_realm_for_server_dns, function in shishi.h
shishi_realm_for_server_file, function in shishi.h
shishi_resolv, function in shishi.h
shishi_resolv_free, function in shishi.h

S

Shishi_safe, typedef in shishi.h
shishi_safe, function in shishi.h
shishi_safe_build, function in shishi.h
shishi_safe_cksum, function in shishi.h
shishi_safe_done, function in shishi.h
shishi_safe_from_file, function in shishi.h
shishi_safe_key, function in shishi.h
shishi_safe_key_set, function in shishi.h
shishi_safe_parse, function in shishi.h
shishi_safe_print, function in shishi.h
shishi_safe_read, function in shishi.h
shishi_safe_safe, function in shishi.h
shishi_safe_safe_der, function in shishi.h
shishi_safe_safe_der_set, function in shishi.h
shishi_safe_safe_set, function in shishi.h
shishi_safe_save, function in shishi.h
shishi_safe_set_cksum, function in shishi.h
shishi_safe_set_user_data, function in shishi.h
shishi_safe_to_file, function in shishi.h
shishi_safe_user_data, function in shishi.h
shishi_safe_verify, function in shishi.h
shishi_server, function in shishi.h
shishi_server_for_local_service, function in shishi.h
shishi_strerror, function in shishi.h
shishi_string_to_key, function in shishi.h

T

Shishi_tgs, typedef in shishi.h
shishi_tgs, function in shishi.h
shishi_tgsrep, function in shishi.h
shishi_tgsreq, function in shishi.h
shishi_tgsreq_rst, function in shishi.h
shishi_tgs_ap, function in shishi.h
shishi_tgs_done, function in shishi.h
shishi_tgs_krberror, function in shishi.h
shishi_tgs_krberror_der, function in shishi.h
shishi_tgs_krberror_set, function in shishi.h
shishi_tgs_process, function in shishi.h
shishi_tgs_rep, function in shishi.h
shishi_tgs_rep_build, function in shishi.h
shishi_tgs_rep_der, function in shishi.h
shishi_tgs_rep_process, function in shishi.h
shishi_tgs_req, function in shishi.h
shishi_tgs_req_build, function in shishi.h
shishi_tgs_req_der, function in shishi.h
shishi_tgs_req_der_set, function in shishi.h
shishi_tgs_req_process, function in shishi.h
shishi_tgs_req_set, function in shishi.h
shishi_tgs_sendrecv, function in shishi.h
shishi_tgs_sendrecv_hint, function in shishi.h
shishi_tgs_set_realm, function in shishi.h
shishi_tgs_set_realmserver, function in shishi.h
shishi_tgs_set_server, function in shishi.h
shishi_tgs_tgtkt, function in shishi.h
shishi_tgs_tgtkt_set, function in shishi.h
shishi_tgs_tkt, function in shishi.h
shishi_tgs_tkt_set, function in shishi.h
shishi_ticket, function in shishi.h
Shishi_ticketflags, enum in shishi.h
shishi_ticket_add_enc_part, function in shishi.h
shishi_ticket_decrypt, function in shishi.h
shishi_ticket_get_enc_part_etype, function in shishi.h
shishi_ticket_parse, function in shishi.h
shishi_ticket_print, function in shishi.h
shishi_ticket_read, function in shishi.h
shishi_ticket_realm_get, function in shishi.h
shishi_ticket_realm_set, function in shishi.h
shishi_ticket_save, function in shishi.h
shishi_ticket_server, function in shishi.h
shishi_ticket_set_enc_part, function in shishi.h
shishi_ticket_set_server, function in shishi.h
shishi_ticket_sname_set, function in shishi.h
shishi_ticket_srealmserver_set, function in shishi.h
shishi_time, function in shishi.h
Shishi_tkt, typedef in shishi.h
shishi_tkt, function in shishi.h
shishi_tkt2, function in shishi.h
Shishi_tkts, typedef in shishi.h
shishi_tkts, function in shishi.h
shishi_tkts_add, function in shishi.h
shishi_tkts_add_ccache_file, function in shishi.h
shishi_tkts_add_ccache_mem, function in shishi.h
shishi_tkts_default, function in shishi.h
shishi_tkts_default_ccache, function in shishi.h
shishi_tkts_default_ccache_guess, function in shishi.h
shishi_tkts_default_ccache_set, function in shishi.h
shishi_tkts_default_file, function in shishi.h
shishi_tkts_default_file_guess, function in shishi.h
shishi_tkts_default_file_set, function in shishi.h
shishi_tkts_default_to_file, function in shishi.h
shishi_tkts_done, function in shishi.h
shishi_tkts_expire, function in shishi.h
shishi_tkts_find, function in shishi.h
shishi_tkts_find_for_clientserver, function in shishi.h
shishi_tkts_find_for_server, function in shishi.h
shishi_tkts_from_ccache_file, function in shishi.h
shishi_tkts_from_ccache_mem, function in shishi.h
shishi_tkts_from_file, function in shishi.h
shishi_tkts_get, function in shishi.h
shishi_tkts_get_for_clientserver, function in shishi.h
shishi_tkts_get_for_localservicepasswd, function in shishi.h
shishi_tkts_get_for_server, function in shishi.h
shishi_tkts_get_tgs, function in shishi.h
shishi_tkts_get_tgt, function in shishi.h
Shishi_tkts_hint, struct in shishi.h
Shishi_tkts_hintflags, enum in shishi.h
shishi_tkts_new, function in shishi.h
shishi_tkts_nth, function in shishi.h
shishi_tkts_print, function in shishi.h
shishi_tkts_print_for_service, function in shishi.h
shishi_tkts_read, function in shishi.h
shishi_tkts_remove, function in shishi.h
shishi_tkts_size, function in shishi.h
shishi_tkts_to_file, function in shishi.h
shishi_tkts_write, function in shishi.h
shishi_tkt_authctime, function in shishi.h
shishi_tkt_authtime, function in shishi.h
shishi_tkt_build, function in shishi.h
shishi_tkt_client, function in shishi.h
shishi_tkt_clientrealm, function in shishi.h
shishi_tkt_clientrealm_p, function in shishi.h
shishi_tkt_clientrealm_set, function in shishi.h
shishi_tkt_client_p, function in shishi.h
shishi_tkt_decrypt, function in shishi.h
shishi_tkt_done, function in shishi.h
shishi_tkt_enckdcreppart, function in shishi.h
shishi_tkt_enckdcreppart_set, function in shishi.h
shishi_tkt_encticketpart, function in shishi.h
shishi_tkt_encticketpart_set, function in shishi.h
shishi_tkt_endctime, function in shishi.h
shishi_tkt_endtime, function in shishi.h
shishi_tkt_expired_p, function in shishi.h
shishi_tkt_flags, function in shishi.h
shishi_tkt_flags_add, function in shishi.h
shishi_tkt_flags_set, function in shishi.h
shishi_tkt_forwardable_p, function in shishi.h
shishi_tkt_forwarded_p, function in shishi.h
shishi_tkt_hw_authent_p, function in shishi.h
shishi_tkt_initial_p, function in shishi.h
shishi_tkt_invalid_p, function in shishi.h
shishi_tkt_kdcrep, function in shishi.h
shishi_tkt_key, function in shishi.h
shishi_tkt_keytype, function in shishi.h
shishi_tkt_keytype_fast, function in shishi.h
shishi_tkt_keytype_p, function in shishi.h
shishi_tkt_key_set, function in shishi.h
shishi_tkt_lastreq, function in shishi.h
shishi_tkt_lastreqc, function in shishi.h
shishi_tkt_lastreq_pretty_print, function in shishi.h
shishi_tkt_match_p, function in shishi.h
shishi_tkt_may_postdate_p, function in shishi.h
shishi_tkt_ok_as_delegate_p, function in shishi.h
shishi_tkt_postdated_p, function in shishi.h
shishi_tkt_pretty_print, function in shishi.h
shishi_tkt_pre_authent_p, function in shishi.h
shishi_tkt_proxiable_p, function in shishi.h
shishi_tkt_proxy_p, function in shishi.h
shishi_tkt_realm, function in shishi.h
shishi_tkt_renewable_p, function in shishi.h
shishi_tkt_renew_till, function in shishi.h
shishi_tkt_renew_tillc, function in shishi.h
shishi_tkt_server, function in shishi.h
shishi_tkt_serverrealm_set, function in shishi.h
shishi_tkt_server_p, function in shishi.h
shishi_tkt_startctime, function in shishi.h
shishi_tkt_starttime, function in shishi.h
shishi_tkt_ticket, function in shishi.h
shishi_tkt_ticket_set, function in shishi.h
shishi_tkt_transited_policy_checked_p, function in shishi.h
shishi_tkt_valid_at_time_p, function in shishi.h
shishi_tkt_valid_now_p, function in shishi.h
Shishi_tr_type, enum in shishi.h

V

shishi_verbose, function in shishi.h
shishi_verify, function in shishi.h
SHISHI_VERSION, macro in shishi-version.h
SHISHI_VERSION_MAJOR, macro in shishi-version.h
SHISHI_VERSION_MINOR, macro in shishi-version.h
SHISHI_VERSION_NUMBER, macro in shishi-version.h
SHISHI_VERSION_PATCH, macro in shishi-version.h

W

shishi_warn, function in shishi.h

X

shishi_x509ca_default_file, function in shishi.h
shishi_x509ca_default_file_guess, function in shishi.h
shishi_x509ca_default_file_set, function in shishi.h
shishi_x509cert_default_file, function in shishi.h
shishi_x509cert_default_file_guess, function in shishi.h
shishi_x509cert_default_file_set, function in shishi.h
shishi_x509key_default_file, function in shishi.h
shishi_x509key_default_file_guess, function in shishi.h
shishi_x509key_default_file_set, function in shishi.h
shishi_xalloc_die, function in shishi.h
shishi-1.0.3/doc/reference/html/components.png0000644000000000000000000031474714273616165016266 00000000000000‰PNG  IHDRy†6ã sBITÛáOà IDATxœìÝy|Õþ7ð Mw–¶tƒî,Vi(eÑ«EÄbAZ–/* ‚RZŠÊ* -n¸²*R(Ø^,‹H¡@¤€ÝB÷–î{š<ÌsÏon–É$™$“ôóþƒ×épæÌwΜIfNΜÉår O$QE,¤‘Fi¤‘Fi¤‘Fi¤‘rºÀ‘H$¢»@˜p€À¼ˆD"Œk:z €YËåèk"fÿÆ5€yA_ƒà £Ìž¡"ô/€YÃÔƒBÁ|;€ù¸AGXŒk0%Œe ƒùL ½ `y0®Á0œ,Æ5Ÿ0®Áx0œ,ækž¡¯Áàèá 4 jË&—Ëñ …a‘ŽÔ3tèk0‘u ]æk0æs] ~{>‰M€åÀÔ ÞCÁ#º‹ Еa¾ˆD"Œh Ð× /ô/r¹sCêˆË€ÚP€q ÀÌ× 5æÔ Ô  } Z#Ý  ó5p%¡¢8Á¸Íè Π‘H$›:3€ ÜáѵðVKà EÌg%ÐÑ -ŒkøÌWZš6s$‰0®áÐ] èhÐÆ5P¦fàÞC–ï)gŸÖÀhºô¸ g0kèYЮ„ÀD"Æ5€ùQ×Ë€›gÊ•†ßÞÀ@ºâ¸‘¨+î5€eÀÊy„ÊérwÝx«%€™Â± b€w]¥¯ÃÃÌ~124Ô0ðE$u3u à6ØHÝbÆMП…kÀÔ æ Æ„Ú^Xþ¸ô˘/ÜúF7/,³¯ÓÛXt4˜º@O–9_:, ®èŒuz²À¾|2X¼GÌ´èšÇÐÐ\.›:Þ0¿ðÄE[[Û/¿ürîܹ«W¯ÕÖÖ6559::öêÕ+ àÑG>|ø³Ï>;`Àör 1ÄhƒSÌ:xa²œ×4 ç›»ÖÖÖ¤¤¤O>ùäáÇ3ûûûO›6-**jðàÁ*3˜õíºY`Á,ìÒÎ|'ž°°Æ!2÷WBâ³OýõפI“îß¿¯íŠêêÙ¬o×Í:x f‘—yæxím‘ Íìç†ÄSdÚÊÍÍ}æ™gHGƒX,ž>>ééé<òˆ!÷@‚= Xfö ΀± º9xð I¯[·ŽcGEQ£GV×Ñ`Ù.]ºÖ½{w‘HäèèXUUE/?|øpzzúðáÃ}}}=JòÓ E988H¥Rî*--íׯ‘˜9k@—ªžú÷—G§KJJúôéÃK±f=4À¬ƒ°T‚ºêóññÙ¼yó‹/¾Ø«W¯†††^½z)vòäÉÙ³g—––RJ#ØÿTÞÆ5€Å0ƒq ¸äKyy9I»ººt[ÅÅÅñññO=õ”«««µµµ‹‹KPPÐ?ÿùÏóçÏó»¡ßÿ}ùòåÏ<󌗗W÷îÝ­¬¬\]]ƒ‚‚^xá…ØØØ¯¾úª  @˜Á€ðµ´´ØØØØÛÛÌŸ?Ÿ,ŒŒ¼}ûv{{»L&ëììÔ­pæ…nttôâÅ‹}úÅ_$öèÑcåÊ•óæÍsww×§XåÏ‹¸¸¸µk×*/ÿç?ÿ¹{÷n:moo_ZZªî]ìMkÖ¬IHH Ó!!!éééNNNê»páš5k222<°3ë_Ñ-’Ù\Œ M—" ûyf¿£i#±`'NLMMe.±²²=zô3Ï<3räÈÁƒûùùuë¦Ýh…Ûò%K–ìØ±Ceζ¶¶ÀÀÀÂÂBúÏ””æKêÊTnÆ »~ý:þí·ß´ X݆(£ìÌîÎÖâ™×Á=…ðáuÂz†BþßÙqLˆ%Û·oߨQ£˜K:;;/\¸˜˜øÊ+¯ôëׯ{÷î¡¡¡±±±?ýôSSS“¶å»»»oÚ´IÝÿÚÚÚÆÄÄ?Ï;§mù´üü|’æ>=¤FÆ  7±fùH…i#ƒ2}_ƒÂ“T¦ ÆâõìÙ333óßÿþ7óL---W¯^ýøã'Ožìéé9{öl­¦u˜={¶½½=K†gŸ}–¤ÉØm1§„¬®®Ö­eÆ  ÷fÝ O.—›¾¯ŸFfcc“˜˜˜———Ä’³±±ñ«¯¾4hÐêÕ«e2—Ÿ{î9ö $]QQÁ¥Ležžž$½aÃÝ QfœàÀät»½ÁM‘¡£Áì »Áâ™l¾ózîË‚ž;wîÒ¥K7oÞ¼uëVUU•ÊláááGޱ²²Rþ/æ§Cii)³#@Ykk+;`kkÛÚÚª2û”o¾ùæwß}Gþ {ûí·'L˜`ggDzi2NðÀÎW‰êæ gŸ›\·µô§í]4ïñÿº æ ÇÎR‰Lø®áfuMÅÅÅ.\øå—_~þùçúúzæ-_¾|óæÍÊ«0o­[[[mmmÙ7ÁåVœ=Ï•+WF¥0ÔÂÁÁá©§ž 9r¤Æ0L<°3a_ƒ!Öâ —­ÇÄÄlذÁ××·¨¨hÍš5{÷îåkÓ”°¯j„!°Àá³H&˜Rá%·FÞ:häåå5uêÔo¾ù¦¨¨hõêÕÌ ;vìÈËËc_㾞BCC?úè#……ÍÍͧOŸ~ÿý÷ÜÇÿõ×_3gvÐÈ8Á€1ûÌ´QË–-;vìXÿþýUþoKKKZZZLLÌ€öíÛgäØ@8fΜ×ÐЙ™™••E–§§§Ÿ?¾¶¶6""bîܹ¼¬¥,<<<66¶¢¢¢¢¢bРAË–-ã·|eô•6®· J$<¦®Œ4LôßA_"“Ž=üë_ÿúôÓOéôÈ‘#ÿøã… "-à’Ÿc™R©455uÿþýééé,“5nذáý÷ß×gCZå×¶L`ñú3µŸŸß²eË^}õU___æ&ªªªz÷îMQTsss¯^½:::(Æ•ªnk±knnö÷÷§¯X´*Ÿü/÷g( ×®]Ûž¡rl|ÑêÊ|ï¶„|(…y'¯‘i+Sdœg(DŒîUa¶`MÒùùù&ŒD™X,ž4iÒ?üP^^~ûöí”””éÓ§»»»+d[»v­r t‡NOO>|¸¯¯ïÑ£GÉrú–ž¢(©TÊËZÊ.]ºÖ½{w‘HäèèH&áæ«|{÷îõññ¡(Ê××—¯Ž0111‰„¢(‰Dcêp,„º!ráá¼ñ˜ºN@è˜3DZ[[+gж9qɯOíììÌÈÈxñÅ™…DEEñ²!CúMMMõôô$›PØ¢Êå:¯Ex{{ïß¿¿¦¦F&“ÕÕÕéV¾Æ­š`¯jX{{û²eË\]]œœ¶lÙB/¤(jÛ¶mtg««kee%ÉìææFxÙ´i“»»»ƒƒÃ¬Y³Z[[åª.,[ZZæÎÛ³gÏž={Λ7¯¥¥…^.‘H¦L™BQÔäÉ“% —„FP”ú_¦GkBˆß€ãLß|èÖíÿ‰³³³ #á¨[·ncÇŽ=uêÔœ9sÈÂóçÏ›0$0•ÈÈÈÛ·o···Ëd²ÎÎNƒ®¥¬¥¥ÅÆÆÆÞÞ¾  `þüù¼—ÂwóæÍììì¼¼¼¢¢"²üòåËÙÙÙr¹<22299™^˜‘‘1jÔ(777Š¢233srròóóKKK×®]KýwT8óîqõêÕ%%%÷îÝ»{÷nAAóIa‘úÙ:Ô…*‘:Twë.| a›æÆÜpÝ-Œ&;;›´–¡C‡*gж9qÉÏKe¾5ÃÖÖ–— -x€.‹ßïÐ}ûöŠÅâààà´´4² …-*$t[K=•µX,صk—Îå›öêB°W5‚ ÌÛÛ;77Wa!EQ%%%t://ÏÇǧ½½].—/X°àÀt†{÷îÑrss½¼¼ÈŠÌrúöí{÷î]:}çξ}ûÒéèèhº¡°°0::šKHB#jyWò&Ù#Š÷¹!™=@< ¼xõÕW?ùä///­Öz÷ÝwÉ &—.]ºuëV… ‚^±­­ÍÎÎŽN;99ÕÔÔè¿!Ì `h˜äKh{D˜X,nmm%os£)ÌÚøÆo„‡‡GEE 4èúõëvvv"‘H*•Ò¯œ—J¥ööö*'‹ÅmmmÊÙTn…=$¡ÂµÔûYãïÿsCÊÿÛñÆo±À‹£G>öØcüq{{;ÇU²²²vìØAþ¤Ÿ37nÜ iuoÇàWŸ>}˜lUZ±bÅŽ;.^¼øÔSO‘ŸÇÈDìyyyžžž*Wôðð`fóðð`þ¯º1.!éì°¼ûÙÿk`¬‡)ä|Í×ÀœšÁòŒ%ihhˆí×¯ßæÍ›Ø3ÿðÃÏ=÷é˜xýõןxâ ÃǨو#¾úꫦ¦&–<µµµ‹/&¾þúë† º.#¿îÞÈ›­DGG/^¼øÁƒµµµ±±±*󄆆:::®\¹òÍ7ß$ ß~ûíŠŠŠŠŠŠØØØéÓ§Ó œœrssIžÈÈÈeË–UVVÒÙ"##Õ…Ál\BêâºÎId´=5Æ;/AhŠ‹‹W¬XѧOŸ)S¦¤¤¤\½zõáÇ---eeegÏžMJJzüñǧOŸNú#?ùäÓ†M\¹reöìÙ½{÷~饗¶lÙò믿J$’ÆÆÆÎÎκºº«W¯&%%]¾|™Îð¯ýË´1€eSù¸²ÅlN€„0Þ^uëÖ=öØcC† éׯ_@@€ºlï¼óNqqqXXY6xðà€€OOϸ¸8’-44”Ü&$$xxx 0`àÀÞÞÞ6là1¤.«‹üpNöÎÝ "uÏóp_Ÿ²ôãaItnRO>ùä‘#GÜÝÝ5kœ)´Úooï´´´AƒéŒ¶ù1_€>p…)4Â<"ÂŒJ+»ví*..NLL¤ÿÔóÖ̘ð˜Z@sâÎ8;Ëÿ| dýõׯGŒÁ|%»Aƒ}ýõ×çÏŸW×Ñ d"‘hæÌ™YYYê:L¢®®nç΋-2u е:CmËåºtž¡ËÍÜÕÕÕýþûï—.]ºsçν{÷JJJZ[[zôèáææüøã?þñÇ×Xšñ‡”––^½zõƹ¹¹yyy¥¥¥ÕÕÕÍÍÍ2™ŒÄÿä“ON›6ÍÛÛ[hÁ;¯ûu»FÕÿÊÖ⯅y'&̨8‰DVVV;wî|ë­·˜ Ítwøbªcʾ]åãbGÊHC´Ý€@e±€ Êxïk`¿nÔm-ÝrÒNŸ>½yóæsçÎ988L˜0aëÖ­< ÕöZKð¼«fT “S§ 9G”&ÁËÖpS¯Ý3ÌW€à¬³ Û…«á.w·lÙ²téÒªªª¿þú«W¯^,ïÐ÷ õ˜˜‰DBQ”D"‰‰‰á1³Ã嬱¤[`ãì ×¾A½„FP!€ÑœøàGGÇÙ³g·µµÑ [ZZ¢££É'ÉßÑѱ|ùr777ggç­[·’Òè‘HäææVUUE2»»»WVVŠD"å­a•P*7d*r¹œk_Æ2€@Ìœ93..®¡¡!333++‹,OOO?þ|mmmDDÄܹsyYKÙš5k*++ nܸ‘‘‘A–oܸñÊ•+ÙÙÙååå¶¶¶+W®$ÿuùòåììl©TªPÔ™3gžxâ :QQQQ1hРeË–ñ¶2ü€§'ݪÎhŽ#k8™™™999ùùù¥¥¥k×®¥®Y³¦¦¦¦   '''33“dŽ‹‹»yófvvv^^^QQYN,ÈåòÈÈÈäädzaFFƨQ£ÜÜÜTn…¾%Wwo®nC&£ün^å÷ô²ç12­âóÂåÏ××wûöí……… +VUUÑ馦&±XL–ë³–2//¯{÷îÑéÜÜ\’ÓÏÏïæÍ›tº¬¬ÌÃÃURR¢\Ε+Wú÷ïOŠbjjjrssÓ!lÁÑÑÑôÝHaaatt4KNa^u !*u°¦ÛZ:äç¥~ŒYÉ&9¦7J1îíI‚ù àååE§½¼¼îß¿O§ïÝ»Gò{{{çææ*K>òòò|||ÚÛÛårù‚ 8À²–hUnˆe¿ ZÛ”º¹!2ï…J ýsB ô¤qЏ¬¬¬ 6üþûïöööüqDD¥táª|A«ÛZÊÄbq[[›••EQR©ÔÚÚšÎIr¹\&“‰D"™L¦®¨ÿüç?³fÍúñLJN/¹téһロM?|AV×*l•²ÀÜzÆ CF»ÃÒsC1116lðõõ-**Z³fÍÞ½{ù M5ΠɲQ•sCJ¥Rò `ooßÑÑA©ÿd‹Å­­­ô#TÊÅÒÞxãðð𨨨Aƒ]¿~ÝÎÎNÝVØ?š”7¤óŽëI$©èÉ ÿÿž >¨Ü S|â~—ššêééIÖR(Dår×"¼½½UŽkðññ‘H$Êù•‹Ú¿¿——×Õ«WŠÝ¿MML&«««Ó-lÁë@˜—ÜFŽ*555((ÈÚÚÚÏÏ/%%…İ{÷n???kkëaÆݸqƒ,×g-eíííË–-suuurrÚ²e‹B~Š¢6mÚDO2kÖ¬ÖÖVö I¥ÒU«V¹¹¹ÙÛÛGFF666’üÛ¶móññ±²²’Ëå‰dÊ”)EMž‡¯rúuâ>±ˆÅÏè!ÿï8mW|ûí·é©Ubcc§OŸN/œ6mýŠ™ÊÊJ2ß EQÑÑÑ‹/~ðàAmm-óƒ)44ÔÑÑqåÊ•o¾ù&ûVœœœè.N3x.2*cvlè‰Ë^€¹Óx·oß¾ÀÀ@±Xœ––FÖR(D!¡ÛZÊZZZbbbìííÝÝÝ?üðC’³³³sãÆôÏÈC‡=tèºM(hhhËåÇŽëß¿¿X,صk—Îaó~‘,Ìëm#GeÚ)BاÔ?دrC'á>£_LÒÒ4nTù3¢¨>ø€HÓÒÒB/ojjš1cýÉ””D?C!—ËÛÛÛccc]\\œ·mÛ¦Pqüøq???™Lƾ•„„„îÝ»«ü¤R¹!w\Os¾!<òÄŽ¥ÃIÈa€V„]Ú¥óp9*“OÂòÀ?ÇûÉŸZM,bÌùû„9_ƒnîܹóÒK/åååq_e×®]ÅÅʼn‰‰$0ƒV…ækèF^ÎÉìÞ ö‘-<°LkĈÇŽ«¬¬LIIyë­· º–²>}ú°ßµæççÓ‰¼¼,++[±bݵÄQ]]ÝÎ;-Zd¸ØŒL®r¾"¿Öš:J¤ÄÔéBŸ½æ ã3í!ŸÃWù`¿:'>öØcìÙ³g||<ǵD"QïÞ½—,YÒ·o_ƒ†gdb³øà`~ *LþK€¯ç³f——–±¦õÊ+¯¼öÚkÿý÷£>úÝwßt-eëÖ­[±bÅ!Cär9sêG",,lðàÁS§N‹‹c/mÕªU"‘hܸq%%%AAA«W¯Ö90‹Á×½ä¢E‹t› rÓFx€Â DærÎå­§ìÀ¼àÏä„|„›‘™Ë=F¦:¦]°-a—E"‘Ø,jVåXæBÇ`rÆy ó5€@ gÖ†®É,~’´<–1Eˆyéš5F8µÍc¾æ3èÆb†ˆ›‘®vß%:4uœ|é 5F;µE"Æ5€@‘ë~Üú©m‹¿ï u‘#ŸÚÝÌqdŽ9Æ :è"÷ÂŽ蚺Nƒ7Ξb¾:t7 :Ý_M”—rp¾h‹LÜ`yUGvʘ§v7¹\nv%æ3è Ý F€Ž.LÛ!L–´wùQc’Só5€y`ÞXÒm€0« ìt«K­Õ˜˜‰DBQ”D"‰‰‰1u8ü°¤îÓžÚ˜¯Ìsp+.y¡p+b©·ÄìNž<lccãïï¿gϲ<99Ùßß߯Æ&$$$''‡^HªK·µ”utt,_¾ÜÍÍÍÙÙyëÖ­ìåtvv¾÷Þ{îîîQQQMMMì…в²²¼½½?þøcua+„Gþ‰DIII...žžžGMJJêÝ»·§§çéÓ§é Ë—/§(jéÒ¥ ìõlF>gÌñ£F!lãŸÚ˜¯ÌŒrèL¹J» ™3gÆÅÅ544dfffee‘åéééçÏŸ¯­­ˆˆ˜;w./k)‹‹‹»yófvvv^^^QQ{97n¼råJvvvyy¹­­íÊ•+Ù ¡(ê§Ÿ~š8qbrrò’%KXÂV§¼¼\"‘$&&Θ1£¼¼¼¨¨(11‘î_ Ñ­Hd†wãìï_L IDATN SŸ©ZS·#ÆdùoK%²¸;#3ß{Ýùùù-[¶ìÕW_õõõe–_UUÕ»woŠ¢š››{õêÕÑÑA/§7ªÛZÊ|||ÒÓÓyä…½SYŽ¿¿ÿ‰'‚‚‚(Š*//2dHYYK!~øáŽ;Ž;¾³ ÷Õd–Äêêj—¶¶6;;;’vtt”J¥EÅÄÄlذÁ××·°°píÚµ{÷îÕ²îÿÇ”_fú9cÚš±4zaâñ¾4++kÆ ¿ÿþ»½½ýÇA±Þ~Ó ÝÖR&‹[[[Åb±ÂÞ©,ÇÚÚšNÈår™L&‰d2K!ýúõ‹ŒŒd>Ý sØêÒì{§Áö5ð®+ìéÿ ®0¯ýì ÇÔ1ÄÁÉ“'gÏž]ZZJiÓk ÛZ„º! *Ëñõõ½xñ¢··7ÇB$ÉØ±cçÏŸ¿bÅ –µ¶¶®¯¯···§(ªººÚÕÕU«¾¾t…»<‘IçP02Ì×EQ---?ÿüóòåËŸ}öÙ€€€=zˆÅâž={úùù…††Î›7ï³Ï>ËËË3u˜‚¦òù(å#ûóÏ?W¬XÖ§Oåc„#kÁ wà4¶+Е¼ˆŒŒ¼}ûv{{»L&ëìì4èZÊ¢££/^üàÁƒÚÚÚØØXöÌ .œ7oÞýû÷¥Ré­[·¢¢¢Ø ñööþí·ß¾øâ‹¤¤$–°‡ òÑG577/\¸Pç} ßVßÑ@Qÿ+º¬‚‚‚E‹uïÞ]cS‰DcÆŒùæ›o¤R©©£".§_yÀhšššØ_àDgѵ`†8pÛh„JèÊx<÷÷íÛ(‹ƒƒƒÓÒÒHù ›SHè¶–²öööØØXggçmÛ¶±—ÓÙÙ¹qãF???kkë¡C‡:tˆK!¥¥¥=öX||¼º°³³³‡ &‹}||>ùä•a«KóÈR?Ï»æw=…¹!»²ÎÎΤ¤¤ÄÄÄÖÖV­V Ú¼yóøñã ˜™âÒOÉW0š)S¦>|˜%ƒü¿# –(Ñ5S†8pÛUW£CUã´èʺÂxû®ÆòŽ)˰;KÚM•0_C×U__ÿꫯfdd%ÎÎÎãÇñŇ æêêêêêÚÑÑQZZš“““––vðàÁÚÚZf ¨èk°<Ï=÷¶±±Y³fÍÔ©SýüülmmrâÈZ0Þ÷vÕÕ ¯´‚;ËcIÇTãÃ}–±›ìÐ×Ð566Ž;öÊ•+ôŸo¿ýöÊ•+{öì©n•æææ”””„„„‡ÒKPÿ Ð×`ybbb¾þúk:””´jÕ*u9qd-ïŽ{»êjÐ×Z1Ç;åûOóŠßÐÌñ˜*ã8…¹ï&x†¢Ë‘Ëå“&Múå—_è?=<¥áÈš)Þ¿íÊ’à­XÆ})0YÒ1eïq°Œ}d'‰ðŠ.'%%…t4¸¹¹]¼x‘cGEQÇ÷Ýw €€Ðo¢ùøø˜0°$hW9Eb—%6ÇÞ#sŒY êêêV¯^MþLIIÑö'5‘HôÁ8::ò€à444´µµµ #K‚vÐuÈår‘HDÿkêXŒJ.—‹MÕ'Ÿ|B&\xõÕW_}õUÝÊY»v-{†œœœcÇŽ9s¦¨¨¨¢¢‚¢(www??¿çŸ~Ò¤IƒÖm»E:tèĉ‰¤¬¬¬±±ÑÆÆ¦­­M9gSSÓ©S§RSS¯\¹RQQñðáÞ={zzzŽ=:<<|âĉVVV:‡ad‰äÀ¿üò‹D")--µµµíӧϨQ£¦L™2~üønÝt ¤±&KJJ._¾|ýúõ;wîäçç—––ÖÔÔ´´´ØÙÙõîÝÛÏÏo̘1¯¼òJhh¨>»Æý€v5<6àßÿýðáÃW¯^½wï^]]]KK‹­­­ƒƒƒ‡‡‡——×c=6tèбcÇúûûë³qÚLqqñ_|qúôé;wîÔÕÕõèÑ£OŸ>cÆŒ‰ŠŠzê©§¸—#“ÉNž}úøøø¼üòËo¼ñ†···>Aš¾ª”¢(©Tú믿¦§§Ÿ?¾¬¬¬²²²­­ÍÞÞÞÕÕÕÇÇ'((høðáÏ>ûl@@€ö…á¾›x©C£ªÀ;úfÒ8kéiÿþý±±±øáÖèCÜu«Zçf‚Ù‘Éd~~~äÐÿç?ÿ1ÄVîß¿?yòdöV7eÊ”¼¼ýôS–‚‚‚222xÜq.§•yZ[[/^ÌÒ›0räÈk×®iÇšd©=¦‰'r9šÚ†B–ÄÅÅq)_.—¿ÿþûd­Žké°×d/Tî—ÝgÁc¾víÚÈ‘#µÝqÜÎmF*•®[·ÎÆÆF]É“'OnhhàRòµk×FŒ¡®++«ØØØÖÖVå Z3 [ÑvÓ\ò®J;;;¿úê+Žcåô¯m«ÈpßM¼Ô¡‘OUË ¨3B]$ìê¶–nH™>>>.\à˜ÙÈuLõ§ü¹Ý¥>É»Ê~¼x‚¢¨GyÄ›øí·ßzõêÅåRÉÙÙ™ËÇÑØØøÄO¨,ª[·n̵êêêÈûäØuëÖí³Ï>ãkß™%ó•§©©éé§ŸÖ¸#vvviiicã^“\êæîîž••¥Ui #%%…,ñññ‘J¥Ë—J¥^^^d­ääd«°©‘ʵ¸”Ì øÌ™3ööö:ìŽÎ¸oK‡6ÓÖÖ6iÒ$%=šî#`qòäI./˜ knn楊¸× eľ«´®®nâĉ:ì£Î•£U—:4þ©ÚEp¯Ò.ÅÔ‡…O‚Ú#Ý"1Iü"‘H&“©ûßèè袢"Š¢ŠŠŠ¢££—\.°cÊ JÍWž©â1&sýÜ1ǘ…àƒ> G|áÂ…¼—ñâE;;;²‰^½z­]»öúõëuuuõõõ×®][³f óµšöööüñK̯ÆÈÈH:1xðà={öüý÷ßÍÍÍ ¯¼ò Y¥¾¾þñÇ'kYYYEGGŸ8q¢´´´­­­¬¬ìÇ3f ³äï¿ÿž—ÝçòE®mžéÓ§Ó —õë×߸qƒ®Ì7nÄÇÇ»¸¸œvvv,×Ç:Ô$YË××÷í·ß>xðàÝ»wkjj:::*++322–,Yâàà@Šõòòª©©á^EÃhhhèÞ½;ÉüøqöÂårù±cÇH~GGÇúúz«°©‘ʵ¸”¬. ¸¢¢‚ÙBúöí›ðÇTWWwtt466¥¦¦®]»öÑGeŠ;ºµ™9sæÐ‰ÐÐн{÷æçç·´´<|ø0--í…^`æü÷¿ÿÍRæ… ˜ ½{÷Þ°aCNNN}}}]]Ýõë×ãââœéÿ1c—DZf8R¹–¶[á’‡¯*­««Sxú ,,,%%åÎ;µµµmmm%%%éééñññAAAÊáéV9ÜwÙ ßMúסINU‹¤UC&S:Ý™*þÔÔÔ   kkk??¿””ÌîÝ»ýüü¬­­‡ vãÆ ²\Ÿµ˜®_¿Þ¿ÒM “ÉúõëwãÆ ©TºjÕ*777{{ûÈÈÈÆÆFRȶmÛ|||¬¬¬H™ÌCïêêZYYIgnoowss«¨¨H$S¦L¡(jòäɉ„ïÊÓÀÜÛ$¿ƒLfù)cŽ1 ÁÔ©Sɇ˗_~ÉoáõõõÌ¡³!!!>~ܸq‰¤¾¾>&&fÑ¢E¤ÈÈHÒ›@Ê$‰Å‹oذNŸ:uо֒H$ô-˜Þµ¥óm ,fGô„*èB˜ï¶Tw£3æÕ’¯¯/=ߌJ¥¥¥}ûö%™×­[§.§Â·ào¼ÁÑ#GHæž={Þ»w%ó¼yóHæÙ³gkÚ?͸|ak›‡¢¨°\zVWW3§X‹çR¦ÆšäîîÝ»ä—j–»¸zõ*ÉleeUTTÄ’ùÁƒ̹/]º¤Ëþ¨XÿœóðÛ€™çûo¿ýÆ¿1éÓf–,Y¢.gkk+s>ò“‘‚õëדþøãÚî…Æ€õÏ©1¿ ˜ùtzKK {iF¦[›qwwW7r‡¶nÝ:’yÆŒÊè7MèvrqiñÛ®´ÍÏo•Êåræp€?üKœúįÕ*FønÒ¿…|ª ï'&˜c•š*ÚË—/‡‡‡Ó¯×9rä F!6…„nk)xøða¯^½ª«««ªªœœœès±XleeeeeEÏ·Í|ñÆÂ§Núí·ßvvv2?‚LÕ Ì«;óûL¡™cÌBÀ|D™ý·DmýôÓO¤äjÌ/“ɘ?=zTe6æ×žÆßÀ™3_zzzª»FdZ¼x1YEÿ‡J¸|Ik›'((ˆË¦ÉC¼EýòË/ìeò8¨vöìYRøüùóYrêÆž={È*ÞÞÞêfˆìììdþx¸sçN]ö„5`ýs²çá½3gÅW9hÜ„tk3«V­b/ö·ß~#™ƒƒƒ•30ût8¹46ŽømWÚæç·JÏ;G2¸¹¹qi·zƯÕ*FønÒ¿…|ª ¿§$0™WÝš<ÔÔÔTOOO ó¿(õ½º­EL:uûöíÛ¶m‹ŠŠ¢—øøø¨|ØKáYYY¡¡¡çÎãåáSý™ü˜êÏÜãç—Úéåioo'iæ¬{ú»páIO›6Mc~‘HD¦TX]3œ§§§“ô¤I“X^?FŒ7ޤÿýwù9Å f3/ýUÒj®x.ÈdoEeggs\‹c‘‘‘=zô Ó<8qâ„ÊlgΜ),,¤Óööö óù™Þ°§§'I3çwÝÚŒÆ×s’tEE…ræÙ¡ÃÉeyô¯ÒŒŒ ’ž1c—vkLFønÒ¿…|ª “H$¢rõS€ÎH­’ze‘‘‘·oßnoo—Éd]KÙìÙ³?ÿüó/¾øböìÙô’… Λ7ïþýûR©ôÖ­[̹Ÿ4 utt\¹rå›o¾©sHêüÿWÜ™: í˜cÌBÀ¼ lllä±ä?þøƒ¤™ãÀY0³]ºtIc~æ­*1ï"¸Ä0dÈ’fþª,Ì©Y0'±c •4Ö¤¶˜3¨—••q\‹cÝ»wg~e2_„ÉôÙgŸ‘ô”)SÈÃf„÷Ì,$%%e̘1GŽimmÕ/L~èÖf‚ƒƒÙ30Ç¢×ÕÕ)g`ž:œ\–Gÿ*ÍÌÌ$i./è52#|7é_‡B>U F€î^yå•×^{ÍÑÑqÕªUß}÷A×RöüóÏ×ÕÕ566>ûì³ô’U«V………7ÎÁÁaÆŒ¯½öšV¾óÎ;ÅÅů=@#|:"úyS‡FâææVUUE§ }}}ù*9    €N0G³«“ŸŸOæïׯßßÿ­œ‡ù%WUUÕ»wo–ïÞ½K§ÿøã.wÍÍÍŽŽŽtÚÛÛ["‘h\…3Zu§•¶yŠŠŠ|||4nº°°ÐßߟN«¬L­jRASSÓñãÇÏž={ëÖ­‚‚‚†††††™L¦2s=êëëÕ¥[×®] ¡ÓݺuËÏÏWhºååå>>>ôŸçÏŸÿÇ?þÁ¥d¸/î9ÙóðÞ€¯\¹2jÔ(…#åààðÔSO………………9’ù\ ÔfZ[[5Ì^ÉýúõËÏϧÓ:œ\*ËÔ¿íJÛüüVéÀïß¿O§ÿþûoæt íþj\ÅßMúס OU³ƒŽc2‹Ú¦ƒr„fa×®]ÅÅʼn‰‰¦„¢Ìù˜šoä†ó_VƒWæ³0IÎÎÎæ±d…ßm¸¬R[[KVqvvV™‡ÙXé9rY¸ºº’Ì666¶¶¶666666ÖÖÖÖÖÖb±˜ž8§[·nݺu‰D ½õŽŽŽZï¶úhùÊS__ÏeÓÌßÊTV¦V5I466®^½š¼2€ 2‘Æ]ã†\. %+®Y³Fá7mÚDþwРA܋ՈËñâž“=!ð–-[X–½½ý‹/¾¸wï^ö™í´bÐ6Ã%öüÌ/:œ\cÐ3HÝrrÏÏo™ÎÎÎäõŸH‡ªf_ÅßMú)7Å©jŽ´m ?á×¹ÀÃ3 µµµ>úhqq±©ùÿÌ÷˜šoä%ô•Ì1f!˜2e ùÚøê«¯x,™ù®Au³÷) ¿BSE^ð£@«ë9±XÌr­Æ…vû¬S´ÚæáX™R©”½2uØÍÒÒRæôò¼T£ÎµÍ|DBá]2™lÀ€ä·mÛ¦UÉ츬í‘Uþ_5àcÇŽõïߟ}ž}ûþðÃZÕŒJBh3ìùuø¤bž\cÐ3HÝrrÏÏo™Ìv˱JuÞ–«ỉc~cžªfJ«†|xµ <<ý)ð^¾••Õ®]»ø-VL»Ì×Ð…0_xùòeKfÎ4ÙÔÔÄef62ùŸ>´ú)Õ\477sÉÆœ}ƒ—Ê”Ëå“'OÎÉÉ!KÆŽ»uëÖß~û-//¯¾¾^a¶yý·ÈŽ9CdIIÉ/¿üBþëìÙ³d·­­­ùÎld ~çΟþ922ÒÝÝ]ež’’’¨¨¨„„}6$´6£óìÐáäe={ö$iÖ•¾›82Ú©j¦08ÙTè:ÇÄ ¦¢|çÆ{ùR©ô­·Þâ·Ø®'ˆ:"‘Hß_ÒÀŒ0§ËfN®?ggg2Ò¸¦¦†yõ©ÎÇ™«ëƒ««+yêûáǼ”ir555\.výê¿Ýýû÷_¼x‘N;88üôÓO/¾ø¢ºÌF¸Ápttœ>}zrr2ýçž={"""è4sÈÃk¯½¦ÕT‚b¸,‹'Mš4iÒ$Š¢þúë¯sçÎeffž9sFaJüµk×>ÿüógLT&´6£’³³39Yt8¹NŸYÍuæââB>Ì«««™Ï,¾›¸3Ω <¢;0¢:*žû>sŒY†NfÆÊÍÍe¾ô[OÞÞÞ$}ûöm.«ÜºuKåê¼Ä r6/s¤Ceò2åçHzÍš5,7E‘ G jÁ‚$––F¿á²ººú§Ÿ~"ËçÏŸo„H Ä8 ø±Ç›?þwß}WZZš‘‘Á<²r¹üã?Ö¹d¶e̳C‡“Ëø˜ßt Os(«©©1p8*0'μqã†ñ`'„ï&ÝîT5GÔ pEjy¨ÚÀ‚>AûeZr¹¼›©cã‰DóæÍ#îܹ“¯’™/ ãøt†¯"cÇ|Uó5lfMã ,iÌ:çåÇ®«W¯’ôo¼ÁžÙ8¯ :tèˆ#è´L&£‡3|óÍ7mmmôÂ>óÌ3FˆÄ@ŒÜ€»uë6vìØS§NÍ™3‡,<þ¼Î °Í(cž:œ\ÆgooOÒ ì™MÒÇÊl·Ì÷¶ „¾›ôÄû© ††[‹§[· :k,’À{B…ó5t-‹-"ƒBüñÇcÇŽéVÎúõë™>õÔS$½ÿ~.%ìÛ·¤yyCá¸qãHúàÁƒú(w„Y缼⾲²’¤5þ²wâÄ ý·Èsh×_~)•J?ÿüs²„ÙfŽLÕ€W¯^MÒååå:—#Ì6£€yc¬ÃÉe|žžž$Mæ%Q‡Ç¡jÜ1ÍûþûïÛÛÛõ)9•£º—¤jEßM|áëT5;&¼”oii‰ŽŽvttôôôüè£ÈHiÔÿŽ·e&’’’\\\<===š””Ô»woOOÏÓ§OÓ:;;ß{ï=www‡¨¨(•SŠttt,_¾ÜÍÍÍÙÙyëÖ­ÆØmU0´ ëƒP˜`£5 rú›:á‰D˜ç³ËÙµkiùùùZ­.“ÉV¬XAýït5mmm¤ØãdzrèÐ!’ÙÓÓSÝ뙕K`ƒ&ùOœ8Á}§xÁ%ZmóP•ššÊ¾]f‡‘Â;´Ú.ó¡ë²²2–œ<°³³ãX¾¶a(hlld>n½lÙ2’¶¶¶.//סLvÜÖÿ蛪·¶¶’:99é\Ž@Ú {þŽŽŽ¾}û’ Z\:·[mƒdš8q"ɹyóf–œR©Tá-úoc~æÛ”ÙƒÔˆÙŠõOßM:äW‰¯SÕìðxêikùòåáááååå/¿ü²BŸþyLLŒü¿Ã§ Šñ“XlllccãçŸîèèHÒÁÁÁt†øøøqãÆI$’úúú˜˜˜E‹)Çðïÿû…^(**zøðall¬Aö“&‰J·- °öØ)]TTDQTQQQtt´A·kFueF¡š_~&aŽ1 ‡L&£¿2i}úôÉÉÉá¸nYYÙ„ TÖÿÚµkI™ýúõ«®®VWHEE…ɼ~ýzu9µ½>cþPéááQXXÈq¿xÁ%ZmóP5`À€ššu™«««Hæøøx·Ëļyسgºl/¼ð‚BÀ,Åj†2uS%O™2E·Ùq˜—£o’Ì1>|øpËH›Ñ˜?>>ždÐêäÒ§Ýj$ñÑG‘œƒ byk#s¿ôl‡ÚægNÕaggwùòe.Ū4pà@RÔíÛ·y OßM¼4!¾NU³Ãã©§-//¯û÷ïÓé{÷î1øxñâÓO?ÝÚÚ*gík ÛÝODÒVVVt??¿›7oÒé²²2å¼½½sssùÝ/ݘð@°0tT©©©AAAÖÖÖ~~~)))d£»wïöóó³¶¶6lØ7Èr}ÖR&•JW­ZåææfooIz`ÕÕÞÞ¾lÙ2WWW''§-[¶ÌÛ¶m£?Ü\]]+++If777zêÙM›6ÑãkfÍšEZµÂ§–D"™2e EQ“'O–H$©ò‡â²²2æóçlnnÖy»Lï½÷Éïîî~ïÞ=å­[ì¸Ì×Ñ籇††~ùå—ì?×ÔÔŒ9’l1))‰}s,Òf4æonnf~RýãÿP9"¦´´”Y3ZÅ DQQ‘Xü¯‹Zµj•Êl»wïîÖMqö%ý·Î=?ó°öèÑãÈ‘#,ž;wnìØ±*ÿëõ×_'ålß¾—ð„ðÝÄžßȧªÙáñÔÓ–••éàëèè a6ìÁƒ$BæZäOær•i±XleeeeeEŸ¿ô<öÊ1¨®h|&<, •««ë¡C‡Z[[ çÎK6úúë¯K$’¦¦¦õëד¯`‰nk)S7òE]Q*GÁPIw1,^¼xÆ ôòS§N½üòËt†—^z©¬¬¬¼¼|üøñï¾û®ÊÀ$ÉÔ©Sɦu­QÍ„ÙÒ˜Ejê¢êêêÆŽ˼rvvž>}ú7ß|“““SZZÚÞÞÞÔÔtÿþýüqþüùʯþR.óÒ¥K̙̜ׯ_Ÿ““S__ßÐГ“çääD2888\¹r…%Hm¯çärySS™Aöì³Ï~öÙg·nݪ©©‘J¥uuu………gΜٲeËĉIÀºT¢öÑj›gÆŒt¢wïÞñññ¤2ÿüóÏ 6¸¸¸œvvv.\Ðg»L%%%d•?Lªò IDAT^½zmܸñöíÛ­­­·oßÞ²e y&æÌ™Ë×á€*S¾ìׯŸL&Ó¹@ÜæëèóØ€éå¶¶¶&Lؼyó™3gŠŠŠ¤Rimmí•+W6nÜÈ|   ¡¡{å(H›á’ÿÂ… ¶¶¶$›««kBBŸþÙÐÐP__Ÿ““³~ýzò‰GÎAî1ð$¡ðv•W^y%##£¶¶V*•û,77·¾¾¾­­~™B||ü AƒXŠÚ»w/)¡W¯^ÉÉÉ………êdàžÉ¿›ØóÓËvªšîõÌ»¾}û*khmm}úé§ÏŸ?ÏŒ¹ù“¹\eÚÇÇGã=Æ5°3tT¾¾¾Û·oWfHQTUUnjj‹Åd¹>k)S7òE]Q*[ EQ%%%t://ÏÇLJþP]°`Áè äçÜÜ\///•‘g( ñ …Y)¨¦.M*•®_¿^áÁi.|êÔ)•ež;wŽyÅÆÂÅÅåâÅ‹ì2ós߯¦¦&Óà+Ó¢âôˆVÛ<ÍÍÍÌÙìÔ±³³SwD¸oWÁ¾}û¸ÌvóÜsϵ´´p,Ÿ— ÿâ‹/bHLLÔ¹4vÜæ’“ci|5`­V÷öö¾uëÇjQGm†cþ“'O2»Ôyæ™gš››µ¯ iõõõ ·ñ*…‡‡+ÌËÈËֹ篭­U~:†…ÊBš››fи"ÇðLûÝÄžŸ[…ý¼œªæ…{=ónÙ²eááá•••ááát111ÉÉÉÌlNNNwîÜ!’h™a«L'&&Ž?þÞ½{7oÞŒŒŒTμzõê^xA"‘ÔÔÔ,Y²„ç=Ô†  CGuùòåððpWWW2bKa‹ÊG\·µ”©ù¢®(•£`2O:õÛo¿íìì lii¡30Çï°w‚¡ ³¥n´û²sŒY°òòòÞzë-GGG—8"‘hìØ±ßÿ}gg'Kÿý÷äɓًš:u*—9)™«h»_ärÎã)À¥4ò´¶¶.^¼Xy€41bĈk׮雲#GŽ0‡N(‹Åï¼óÝ;α|^*¼©©‰9C¤X,V9"šÜæëèú7`Ž+ŠD¢™3gòU‡&o3Üóggg3%S`eeÛÖÖ¦C <I«¨¨`¹·¶¶~ÿý÷é+E.%®J¥Rirr²———ºP¹uóæÍGy„ûŠÜÃ3áw{~.ÕEñ}ªš î•lMMM3f̰··wwwOJJ²¶¶–+/¹\žÐ½{w§rB]º³³sãÆôS÷C‡=tèræöööØØXggçmÛ¶po51í±PÇhQ¥¦¦zzz’*Ä r¹ÎkêF¾¨+JݸæŸYYY¡¡¡çΛ3gÉÀ×àíí­10ƒfK£ 96Á‘Zãøm'x—)ïZZZN:•™™yíÚµ‚‚‚ªªªÖÖV{{{gggww÷Q£F=ÿüó¾¾¾ üóÏ?=ú믿Ò/Ãsssóóó{þùç#""8ÞD1#ÕápËåòÌÌÌ_ýõ·ß~{ðàAUUUSS“½½=ýÞ©€€€GyäñÇ eŽPÕ —huÎSTTtàÀ'N•••ÙØØôéÓgÔ¨QS§N?~9mÚ4¯¨ÔŠiÛŒVùe2ÙÉ“'úè£ãÆ›;w.ùd6D;Ô6kkkZZZZZÚ¥K—****++e2™ƒƒýß AƒBCCÇŽ«<ï&ÑÖÖväÈ‘ãÇçää766ÒÊ«ŒAÛðLòÝÄžßT§ªYÎõÞ;w^z饼¼øàú=111ôƒr¥;F#Ì–º¡( }3`NvìØñöÛoÓi__ßüü|Ã:À™üÎO?ý4>>¾¹¹yÒ¤I)))ô­W×dòc¡’0£¸]»v'&&Ò í‡zaSaF%|"2®Ï¼êÇ kª©©8p`uu5ýç† Þÿ}Ó†‚ë=áæ±fTBVWW7zôèôôtæ#‚ª@aSaFeÄš³ÃÊ•+IGƒÝ‚ L€ž”ßâdˆÛZ‘HdeeµsçNý')ëjÐË 3±9Ö9Æ z:vìØgŸ}Fþœ5k–››› ãПqnmTnwUì„6îüˆP} |õõõßÿý;ï¼ÓÜÜL/qtt¼ÿ¾§§§iÃÑyܲn×·æ{Ul„È…9†\˜Q>uLÍt¶á‰DbAQŽÌ1fÐò¨BÚæÍ›ÑÑZ±ø>‹ßAc’Ëå8;ô!—Ë1;˜™+V,\¸ÐÔQ€™ÑížÁŒî4´ 5&&F"‘P%‘Hbbb “ÅQ÷+ˆ!Öâ·Ð ~ÛæE7òöK3bŽ1€>lll|||¦NzöìÙ?üÐÔဠœúˆäììì|ï½÷ÜÝÝ¢¢¢šššHQ*7Á’ûöí¾¾¾b±˜¢¨üüüˆˆˆ=zØÙÙM˜0¡¢¢B!:Ñÿb)?!!aùòåE-]º4!!A«š¦êƒ0• 6ZÞu=5(‘H„q \òÿjkk+**:pàÀ˜1cLÅÌ™3ãââ233³²²ÈòôôôóçÏ×ÖÖFDDÌ;——µ”­Y³¦¦¦¦   '''33“,߸qã•+W²³³ËËËmmmW®\ɾ –ü—/_ÎÎΖJ¥E…‡‡ÇÆÆVTTTTT 4hÙ²e*£"_Ÿþ9=Z¥|Ò=¡qgešéjC`Ì帘 ¹Y1ǘ€;.×{¾¾¾Û·o/,,TX±ªªŠN755‰Åb²\Ÿµ”yyyÝ¿ŸNß»wäôóó»yó&.++óðð`ßKþ’’•›njjrssSˆêÅ‹Ÿ~úéÖÖV–ò£££‹ŠŠ(Š*,,ŒŽŽV·›r¡^{:ªÔÔÔ   kkk??¿””²ÑÝ»wûùùY[[6ìÆd¹>k)kmm‰‰qppððð GtÒË¥RéªU«ÜÜÜìíí###éåíííË–-suuurrÚ²e )Û¶m>>>E¹ººVVV’ÌnnnôИM›6Ñc^fÍšE7å›D‰D2eÊŠ¢&Ož,‘Hx¨\5LÞÒØÎÍÆ5€Y:|øpzzúðáÃ}}}=J–÷îÝ›N888Ѓô_KYYY™¿¿?& ТЋ‹‡ "‹­¬¬<==™;¨ÜKþ>}úô¥K—ºwï.‰«ªªÔVRR²hÑ¢}ûöÙÚÚ²”¿wï^ú.Ô××wïÞ½÷·«1ù¨™ÊÊÊ‚‚‚7ndddåêF©ÄÅÅݼy3;;;//îB¢ÑCcärydddrr2½0##cÔ¨Qô»Ã333srròóóKKK×®]Ký÷W}ú^‘”Óu†Àt…}4Svt¨¢Õ•jjjª§§'YQ¡•Ëu^‹èÛ·¯Êq >>>*ûU· Žù½½½÷ïß_SS#“Éêêê”#¤­­­O?ýôùóçÉŠêÊçN˜w †ŽÊä£fîÝ»G§sss)M£f¼½½sss ¡Ccòòò|||ÚÛÛårù‚ 8@g`nÅËËKe`܇ÀèÉä-M€íÜ|Q…q `–"##oß¾ÝÞÞ.“É:;; º–²iÓ¦-]º´ªªª²²’9{ÂÂ… çÍ›wÿþ}©TzëÖ­¨¨(ör8æoii±±±±··/((˜?>KiÓ§OÿÇ?þ¡s<@3ù¨™€€:ݯ_?²\Ý(•ÒÒRf6‚ xâ‰'8 “ÉΞ=;iÒ$²œl¥¼¼\e0]gŒ35‚©{=´cŽ1w\®÷öíÛ(‹ƒƒƒÓÒÒÈŠ å($t[KYSSÓŒ3ìííÝÝÝ“’’¬­­éå7n¤Î:tè¡C‡Ø7Á1ÿ±cÇú÷ï/‹víÚ¥!¥êN‰¥|î„yím´¨L2jÆÛÛ[å¸u£TÔk`þ™••zîܹ9sæ Ì­x{{k Ì LÕÒ„ÙÂ-€ˆÔ,=Æ‚÷X6óºÞ»sçÎK/½”——gê@ B˜ÇÂÐQEFF®Y³fÀ€gΜ™5k=‚@$1·Hþ$ ÝÖR¶råÊ[·n}õÕWr¹<::úÔ©StÎ7ž;wnçÎþþþ¹¹¹‰‰‰?üðEQï¿ÿ~VVÖ_|ѽ{÷uëÖíØ±CeùÏ<óLGGÇÆé{‰D¢‰'~ùå—EEGG2dÓ¦ME9;;_ºt)00Ï åÀ„-åX€ÎºÑ]¦C;æ3X˜%K–<|ø°¬¬lÅŠ¦øôÊ+¯¼öÚkŽŽŽ«V­úî»ï º–²õë×»¹¹ùùù <øÙgŸ%ËW­Z6nÜ8‡3f¼öÚkôòuëÖ=öØcC† éׯy,BÙ;ï¼S\\F–„…… <8 ÀÓÓ3..Žd íR³$âî’w"ô߀ ê·tå›.:°O?ý4>>¾¹¹yÒ¤I)))Ý»w7Et'¨cA3*ÛµkWqqqbb"ý§ÐnLÑŠ GD>7Í«~Ñ&,®÷„C˜ÇB˜Q Y]]ÝèÑ£ÓÓÓûöíK/A_Z‘A‰M@¥nÔ ï[±²²Ú¹s'éh ½ &6Çú5ǘçÖFåVºò]•ÐÆtX‘HÔÍÔ1…nóáu©YôÌ}Ââ´5´n"‘ÈìjÙcóÅ{„Âáâ,žpnâè ×`Pr¹ã4Ðí¶„ûZ¸í1! faÇïžš¶ÞHÎ8#è&—ËÍ®¢Í1f”“'OÛØØøûûïÙ³‡,ONNö÷÷·±± ÉÉÉ¡’$ÝÖR@†p“ ÌDRR’‹‹‹§§çÑ£G“’’z÷îíééyúôi:Cggç{ï½çîîîààÕÔÔÄW…€ãôA°ççñÎÜä#äÎä‘€`¾è¢fΜ×ÐЙ™™••E–§§§Ÿ?¾¶¶6""bîܹ¼¬¥€ áVùûYyy¹D"ILLœ1cFyyyQQQbbâòåËéÿݸqã•+W²³³ËËËmmmW®\©ÛîƒF†ÌbüÒLÎäÝ øÑÚäfÅcîŒp½çëë»}ûöÂÂB…íVUUÑ馦&±XL–ë³–2…ÿ¢wAÕÕÕr¹¼µµ•™¶²²¢3øùùݼy“N—••yxxh³Óºæµ·nQ¥¦¦Y[[ûùù¥¤¤¢vïÞíççgmm=lذ7nåú¬ÅeëÊwdEmÛ¶ÍÇLJ>âÌå*7×ÜÜ22²±±ñáÇ®®®•••tæööv777ö`T.W†ž؆-Æ5€àÈårÊÀ?~>|8==}øðá¾¾¾G%Ë{÷îM'¤R)/kiÅÅÅ…¢([[[fº³³“þßâââ!C†ˆÅb+++OOÏŠŠ }¶ÕÕ˜p0‹ÊräªF¸\¾|9;;[¹©ÜÜš5kjjj rrr233ÕmZyC«W¯.))¹wïÞÝ»w Þÿ}öàú駉'&''/Y²„R5¾ÆÙÙ922299™ÎŸ‘‘1jÔ(–`(#ŽnÀ‹'LÃ4]¬Œv±šššêééI6ªƒÊå:¯¥œ‡e•i‰D²;¼æ]ƒnQ™v0‹ºrþ,))Qþ_u›óòòºÿ>¾wï÷&×·oß»wïÒé;wîôíÛ—eÅ?üÐËËëêÕ«d¡Êñ5yyy>>>ííír¹|Á‚PW&)™y ÚÒ؆-EQ×]QddäíÛ·ÛÛÛe25` µ”999åææê°âÂ… çÍ›wÿþ}©TzëÖ­¨¨(cè‚L;˜E]9 úôé£r¹ÊÍ•••ùûûÓi’ࢼ¼¼_¿~tºÿþìd’““cbbBBBÈ•ãkžxâ‰Èd²³gÏNš4‰=¹8È]ðÿØ»ÿ¸*ªÄügà¢"—"êšö ÔÚmße».¹¦ëCdÛê’%¹àÃ}÷P Tp1à ,|gj»ÅºÛ»ÝwöÈÖÍíÑVTïÅÔukWŒ-ßh…\0Å5ð"æûÇ|v¾³÷ÞæÎ_gîëù‡Þ;Ì9sæœ3¿Î9s®®Œnõði¿h}Ë÷Úk¯Íš5Ëf³Í;÷ý÷ßç7ê‘ÊBy«¬¬?~¼÷šd¬q ###UUUÜ{û7ÝtÓÁƒåï²2æ¼÷0U† fñ+éhù¯‰‰‰ŠÇ5´´´pŸ›šš’’’$vttdddTWWó ÅÆ×Ô××/X°à/ùËOúS±½ã×îÉÔœµ7H`\£ûï¿ÿ‹/¾þ¿ÿû¿Å‹s Y¯Yô<>( å­¬¬ìÊ•+Þk ƒøü²eË–¶¶¶k×®ýãÿ¸çž{äï2;˜Åg<ŠG¸pî¿ÿþÇ{ìÂ… }}}EEEkzlÈápõõõõöö:‰°v»ýèÑ£/½ôÒŽ;¸%bãk,X]RRòàƒÊ܉Ã$pšFÒB¸&£“áÓ ÆZ±bENNNtttiiéþýû5 %3ž7.X°@ñK111)))sçÎýîw¿&¶¦Ç†*++ããã322f̘a·Û+**¤7”˜˜xäÈ‘W^y…[³´´táÂ…YYYQQQ«V­ÊÉÉnèüùó .”¿hn°†ad=˜÷\Dûýª÷c$E{dÚ"0m ôÅ_,]º´µµÕØd¼ð çÏŸê©§ü È)ª+jˆ±† a†ºÿ 1Íœ¼_c6:E`)6l¸xñbOOϦM›²³³MÌåË—ŸþùGy$Hð¬g˜¯Ì‹{,ǃ‡QÐ3¬ãE»mÍš5köìÙ3f̸þúëŸ|òÉ@¶`²†™4iÒ† ýÞ ¯¨Œíz†Ã;`^xÜ5™3ßÌieø2 ðe L` Ã`\˜†6ó`¾Ö)8ðq®0Ì×ÀퟞÛ`,þ «"ZÇLó5€ÙÒÉ ¨ûsf£¬^÷ O€n‰á›äl‘_Í’õ–F!4ΙAcš@147èÆÚ (mƒ‰Ç±O)Ì×tÀ#‡‚¶¡(Ýå Ì(ýÉ<öÑ!m6˜¯è€æMY¯¡¡¶¶vîܹáááiiiûöíã—×ÔÔ¤¥¥…‡‡Ï›7ïÔ©SÜB~÷•…òÆ0ÌîÝ»SRRl6!äìÙ³ÙÙÙ×]wݸqãî¾ûîÞÞ^~5Ÿ1 =üðÃÑÑÑS§Nݹs'­Ëå*((ˆ‰‰‰‰‰Y»v­ËåâãÙ±cÇĉ§Núæ›oîØ±cÒ¤IS§NýàƒÄ’GþýÁJ,f õõõv»}ïÞ½„‘‘‘-[¶L™2%***77w``àÒ¥Kqqq.\àVž2eʘqú$}ìã„`B˜¯h"|äÀ†Z„™i™†BÈC=T^^~åÊ•cÇŽÕ××óËëêêŽ?ÞßߟŸŸ¯J(ŸNœ8ÑÐÐàv» !Ë—//,,ìííííí½á†ŠŠŠ¤c~üñÇûúúÚÚÚ>ûì³Ã‡ó+—••uuuµ´´477·µµmݺ•ÿ“Óéìèèxê©§V­Zåt:ÛÛÛŸzê©ââbŸiã Z8@"fŸ:´lÙ²ššš 6BªªªNž<ÙÐÐàt:#""JJJbccGMM ·þáÇ¿ýíoËÉ7‰¯–¾ÑDqÌ üô(ÐGøhZÅèÍF9³¦¦¦­\¹2%%EðÂ… “&M"„ ÆÄÄ s˹ؔ…ò™Â®®®„„ï? ¦¥¥qCÄb¶ÛíGŽÉÈÈ „477Ïš5‹ÛPRRÒ‘#Gf̘AijjZ´hÑùóç¹x¾þúë‰' 7ŽÿÍ5vøL¡0ñb1û X]]½gÏž·ÞzkÞ¼yÜ´´´wÞygΜ9„§Ó™™™ÙÓÓsöìÙ;ï¼ó«¯¾ [·nÝ¢E‹î½÷^Ÿqyeê³QL¢À( Jè…ÎLUÐøD ç¹´¾¾¾¢¢âã?ŽŒŒÜ»wovv6ñz.å¿ò”…ò™BáŸþö·¿mÞ¼¹¡¡a``€ûëèè¨DÌ6›mhh(44”âv»ÃÂÂ|.ŒŒônõû,B±˜}LOOw8•••üB>…,ËŽŽŽò;xß}÷-_¾<77÷†nøôÓOÇç3N"¯L‰Hs˜ Ã0˜¯h…Ùàdí ¼å–[Þzë­¾¾¾_ýêW?ûÙÏ4 5¦Ÿüä'<òHggçèèèåË—ÇÌö„„„³gÏrŸ[[[ùåñññÂåñññj¥Ð¯˜=úúë¯ '’HHHhkks»Ý###\s·|Ó¦M{öìùè£n¿ýv‰†ùð"0_P¥Œ.:m9Ž3gÎ\»vmtttddDÓPcºzõjxxxddd[[ÛÚµkÇ\?77÷ÑGíëëëíí-,,&¯¨¨ˆ_îp8'i„ MMMÊb¶ÛíG}饗vìØÁ-Y·n]AAÁ—_~év»OŸ>››Ë-_°`AtttIIɃ>¨8©,_u­!„Ƴ i=­X±"'''::º´´tÿþýš†ÓË/¿¼iÓ¦ñãÇÿà?¸óÎ;Ç\ûöíqqq©©©7Þxã¢E‹øå•••ñññ3f̰Û튓´qãÆ ðCü911ñÈ‘#¯¼ò ·fiiéÂ… ³²²¢¢¢V­Z•““#ÜÐùóç.\¨8©ÞXÁ裵`¾ ÌwûÁ ^xá…óçÏ?õÔSÒ«)+SÔs¢õ·mPŸ‚žhqùòåï|ç;uuu‰‰‰Òk*.SJŸj-Ïft(æ=Œßl½ŠSà®1 úüóÏÙЖe¹tbؾ© 0€2×`=–)F7˜ Ã0×t3jtƒI&§4a •m?hÅfx"°UÊTëÑ &iYÃð£#ÄØÍPMÙó§¦O­ˆ—Þ„Ø_)zœö¦Ýoa2 ã3NÖä'X7˜¯(cªq bƒö¥ó+ %SJJʾûÝïJ¬£iP±LÕÝàñÄn’Z'Íð43˜¨¨CE[ƒ¡d s\ƒUÛˆzÍ TO9)¬:§Ÿa˜ÃGV(@cš€vµµµsçÎ OKKÛ·o¿¼¦¦&---<<|Þ¼y§NâòÏ,ÊBycÆgïÕX– á¢r¹\111111k×®u¹\ë =üðÃÑÑÑS§Nݹs§ß™bJìX/SÈy¢¤º¡üëýî³ÎOÐ,Ëb¾Yzè¡òòò+W®;v¬¾¾ž_^WWwüøñþþþìììüü|UBù$'÷xÉ?g–••uuuµ´´477·µµmݺÕcýǼ¯¯¯­­í³Ï>;|ø°œdP!ÀÇlÚxF57à  ŒQïP¤¦¦­\¹2%%E˜˜ .Lš4‰2883<ʯ sòtãstƒX'¿%ˆ¾û"œš’4¦h·bÅŠœœœèèèÒÒÒýû÷kJ-•••ñññ3f̰Ûí+lß¾=...55õÆo\´h‘ÎÉÓÓ˜O‘†—ÑÖoR0Fýt*€bÁóL<ô)SŸÏØCŒªWº=žë°› Ä0 CÝÔ4¦ Áü‹ô::$Cç-JÐtë,ËÚ´‹ð~”þuF9k'Ÿ¨ƒ!÷„³cjó5˜ ë%ð5ƒ“œ}útnn.·|„ MMMüj_Ç .LÞêիׯ_ßÙÙÙßß_XX¨J²ÕBã•’Æ4èĺAV€·ÚÚÚ¹s熇‡§¥¥íÛ·_îó øó†²PÞ†††~øáèèè©S§îܹ“_Î0ÌîÝ»SRRºùJKK.\˜••µjÕªœœnùÆ,XÀŸÇ×1ƒ =ñijgÏÎÌÌLOOŸ6mš¦»£Ë²˜¯¤à¾Ùlô?õ¡¨NÛy˜DÊ M ÃŒbæ'‚¸¸¸_|qùòåN§³¢¢â׿þ5!„a˜{î¹ç¹çž›8qâý×½ýöÛ'Nœ ‚Wô•…ò¶yóæ3gμüòË£££yyyï½÷ßcïp8öîÝ;yòdݲÂ/†—©á Г;KÍL! ÌüX˜ššZTT´råÊ””~!#òƒ|«²PÞìvû‘#G222!ÍÍͳfÍâÛººº´Ûñ^¦†'@OZï,#QG ¨ kŽÚ•ê€nTÏj<Üš…‚–Aà ¢…™ ëëë+**>þøãÈÈȽ{÷fggñ_à?( åÍf³ …††BÜn7ÿ‹æô3¼L O€žôhkà>Ñ•¡AU ´†§Ú^‚¨† ¤(½” K- ÂÁeNT<ÔÖÖ®Y³¦»»›øÓj ,/99ùÃ?ô9®ÁäÙex™Ï%UŸ=ÅïPX™÷„U†@˜Ò„ÉÃOÉÒKXvþV9Ô“P\ˆLÐÜQJX¬Š#«,hC~ˆq8gΜ¹víÚèèèÈȈ¦¡¼åææ>úè£}}}½½½æüyÓòy°0­÷7Dì¬jf4¦Y¦}ÄÕ-aÈ¿à Ób„å(³Ž¡˜¿…ˆ†*ø{` y·J?ƒ*IJÚoÞ¼S§Nq GFF¶lÙ2eÊ”¨¨¨ÜÜÜ>ïõ½£å? ÇÅÅÅÆÆîÚµK"ÍÞ‘¸\®‚‚‚˜˜˜˜˜˜µk׺\.>òÝ»w§¤¤Øl6á>úÜ–º¼‡6˜ùðiúŒLk³ä.+Þ¥S4¾Þ#©†üòÆ5ÐǪ÷"ò÷ 9`m8ô·|ùòÂÂÂÞÞÞÞÞÞn¸¡¨¨Hbe®€<ÚýëêêŽ?ÞßߟŸŸÏ-¬ªª:yòdCCƒÓ錈ˆ())‘Xßg´œòòòÆÆÆ†††ÖÖÖööv‰4{GRVVÖÕÕÕÒÒÒÜÜÜÖÖ¶uëV>Ú'N444¸Ýî1· eW=\+õäqmbh –x°T¡1Í †½–®È£U7NµBž~úi®Ûóá‡v¹\ÜòÖÖÖ+VŒ?>""bÉ’%N§“[þî»ïΙ3',,,55õW¿ú•ØÂŒŒŒÏ?ÿœeÙsçÎ1 sþüy–e?ÿüóŒŒ –e¯^½šŸŸýõ×_ýõW¯^åóÜsÏ%''‡††²,ër¹òòò¢¢¢âãã«««}æáµk×ŠŠŠ&Ožcö«¾ «„ôES‡š Û%{`` ..Žß¨GÄ–_¸pn³Ù¸Ï©©©ÜçžžžøøxéõÅ6g·Û›šš”¥911±¹¹™ûüÅ_$&&ò«uuuyG5æ¶TáQ-M{Ц‹ÙˆB4„™³ÝçíŠØ•‘ß e¡¼‰ÝÀø¼€šŠ™Ë”GèatVa¾P„Ñfìù^vœgþбcÇN:uöìÙîîîmÛ¶q ÅzYzè¡òòò+W®;v¬¾¾^láÝwß}äÈBÈÛo¿ñöÛoB>üðÃ¥K—Ùýœ?þx___[[ÛgŸ}vøðaŸ‰G¨_×ÄWޱ~öfs:´lÙ²ššš 6ˆ%ÃgÌ~Õ7"¨é”N*þö·¿-\¸püøñ ÃDGG_¸pÁß&MšÄ}ˆŠŠâG œ?>33Óf³…††N:•5Cl}1ÝÝÝéééÊÒìt:ù°Ó§O¦!!!Aæ¶üâóv…ˆ\ åMúÆã þÒý]9£³ŠªÌ f”—*¡¤¿ªHlOMRcuH€{j†¬Ciiiá>755%%%y¯#ì±LIIÙ½{÷¹sç„+x/|÷Ýwï»ï>–e—.]ºyóæýèG,ËÞ{ï½µµµ¬ì~Τ¤$aÚ|æ¡>] Ó®øÛqí3ÇÄÎ0b+WWW'%%}òÉ'r’áÖ¯úæQ%$òP‡š éiÐn·8pàÒ¥K£££—/_æ·b³Ù¹ÏÜÃ<Ÿ´ùüšœœÜÑÑá½9±õýª biöˆ$11Ñg¡‹å¤Îã´+ÓÀDZ’C~|"ÿ>:L" bÁiy¤EÌ ÆÌyîóvEìÊÈï…²PÞÄn`|^@MÅÌe þBYR#®¶VdgMrêÑ' ÁÖÖÀõ³,;<<Ì_A?þøã;î¸#::šK<Ã0Üò'N,_¾|òäÉÉÉÉüãÅN›6m`` 66öÒ¥K'NHKKã^— õ¹Q\òXÍg†††«—ZÑ®p]Ö¡¡¡!!!Â’;iøÌ1WNOO/++S– ¿ê›üSŸ5AÓ¶†I“&:tÈårµ¶¶Þwß}üVæÏŸ¿}ûöÎÎÎ{_>a„/¾øB˜6¤ržzê©%K–´´´ 766:éõÅ¢-++[¼xqGGÇ¥K—6lØ fHŠ‹‹—/_ÞÛÛët:—,Y²qãFï4?ûÜ–êthkxòÉ'³²²:::þùÏæåå=òÈ#ü¦ï¹çžŽŽŽíÛ·ßrË-ÜòŸÿüç‹/noo¿xñbaa!·pΜ9‡¼|ùrQQÑ<ÀG²téÒžž.W7oÞÌ/w8}}}c¦A,¸ÏåÉnN"'}îºÌ|©µ*3ç¹ÏÛ±SÿAY(ob70>/ ¦bæ2ñ÷-”•(iÌ]ö~Ë‹ÏRVÐ9à ÿÁç{eB z|B'òzW|î‚ÄûüŸ~úéôéÓGGG¹%£££ééé|¿â½pguŽPEäßû™ív;÷Y¬Ç’÷î»ïN:Ubá’%Kª««³²²X–½ë®»ž~úé»ï¾›û“Ì~N»ÝŽq cò·ãZ•q ÕÕÕ ’áW}K˜7ÝÆ5hù[o½5}út›Í6mÚ´^xßPCCÃÍ7ßl³Ù’““ñ‹_ðË+++Ç?fFŒŒTUUq]è7ÝtÓÁƒ¥×‹öÚµk………'NŒ}î¹ç¤Óì‰ð|žŸŸ/<Ÿ{'@l[ªó¸Âj± UÆ y ù;‹ ‡I¤A,8í#4Ýx "Ï…w&b§>é›ù¡xb70>/ ¦BE™‚|„Æ¥1Í’¹Ë“'O>xð Ëå:wî\~~>V¸Ž²Î±¯>·(¤ 'AŶ9½+>w¡¨¨héÒ¥N§³§§ç®»î*..îøÍ7ß\WWÇ-ùóŸÿ<þüÀ÷:ÀÕ9BB–-[æt:¹^¬’’n¹Xåý÷ßúôé¡¡¡·ß~›¿Ýô¹pÏž=±±±Ï<ó ˲;w‰Ù»w/÷'9ýœ,ËnÞ¼yÙ²eüj>¯îútN»:àoǵÏó«7›ûëùóçgÍšUUU% ï˜ýªo{!Ñ™¯CM0ó þÒ¡­A•1GC~䌓HƒXpÚGiº ð`æ<÷yg2f«²PÞ¤o`<. ¦bæ2P–tyà‰½å%¶¾üα¯>·(¤ 'AŶ9½+>wAâ}~–eŸþyþIæþûïÿå/é±éûOÔ=Ïšü¬Myæ™g¸·sóòòø.G±Ë×^{mÖ¬Y6›mîܹï¿ÿ¾ÄÂææfB÷Fâ§Ÿ~JÝerú9¹Õòòò"##§L™âsgV¯.ÐÀiW üí¸ö™c~õfóíîîž={ö“O>)‘ ï˜ýªo{!Ñ™¯CM0ù± ~Ñ¡­A•1GC~|òˆ\" bÁ1òä3sžû¼3³Õ@Y(ocÞÀ/ ¦bæ2¡,©!óÀ“󖗲α¯>·(¤ 'AŶáW±ÞŸ» ý>ÿÅ‹cbb¾þúë .L˜0áÒ¥K›°ÿ$ØÚŒNBP0y5Ð Õ™€B´ÚTs$1äÇç!È%Ò #@>ä¹õ L­„ðŒN‰hLs ì¯Ä[^Ê:Æì:ðùò<«Ò¸e%îD¬w…'Ü…1ßç¿÷Þ{wïÞýÜsÏåææzG…q ò™9mVbòj ª3…h%D@£M¨2æHbÈÏ!B‘K¤A,8F|ÈsëA™Z Úè s—}¾ååÑ̯¬s@¬¯`Ì÷Êô$øÜY….³wÅç.Œù>ÿ{ï½7wîܹsçþùÏVe¯ÜYÝbS™Óf%&¯º¡:PˆV¢C[ƒ¦L¶XpJsƒCoiÒ yÎþûÉÄb]¡î?ïjjf4¦Y+V¬ÈÉÉ‰ŽŽ.--Ý¿?·pãÆ ,`†ûúòË/oÚ´iüøñ?øÁî¼óN±¨Ú'N444¸Ýnî«°%E;t=üPŠK¯³³ó¶Ûnã>?ûì³=öØ… >ÿü󘘇áé¦Ñ ¢üùé 0F0””t…D§ô:ï¾ûîœ9sÂÂÂRSSõ«_ñ_|ñEîwÑo¾ùæÏ>ûŒ_H(Ÿ)|úé§¹Nˇ~ØårñËŸ{î¹äääÐÐP–e¯^½šŸŸýõ×_ýõÂßc¯ªªŠÿãÿXUU5qâÄøøø÷ß_"~9'@±„µ¶¶®X±büøñK–,q:â½0##ãóÏ?gYöܹs Ü?žeÙÏ?ÿ<##Cz7…¹ár¹òòò¢¢¢âãã«««Ç,â1«±uÀív—––ÆÅÅEFF:Žo¾ùF:ªk×®Mžû,ë«@ùÞ+ ÿzâĉ¤¤¤={öˆ%ÃgÌ~U aÙyÇÖÑÑñ“Ÿü„òãÿ¸££C¢ŒäË)))»wï>wîœGÀ .pŸl6›G&( %m``Àç! ¿z/÷¹ÅÔÔÔÆÆFîsOOO||¼_)ä¿Úíö¦¦&eiNLLlnnæ>ñʼn‰‰üj]]]üj«W¯æZ1Î;·zõj‰mx&q¡T=T°ñ™r²(îRÌFqž›ö¶Gl9÷AxÁòy qbˆˆˆP%CÄ.vcî¸8Ž,FùuôgùÂs‘Å9yò䃺\®sçÎåççóï¹çžŽŽŽíÛ·ßrË-üò@BùLáÒ¥K{zzœNç’%K6oÞÌ/w8}}}Ü×¢¢¢¥K—:Ξžž»îº«¸¸˜_­°°ð›o¾ùÍo~Íž;wî˜ñ™u>Ι3çðá×/_.**zà$2Ä{áúõë_|ñE–eùË_Ž7Ž»¨¿ð 6lÞManlÚ´iÙ²e½½½===K–,‘³/Òë[ž|òɬ¬¬ŽŽŽþóŸyyy<òˆtT?ÿùÏ/^ÜÞÞ~ñâÅÂÂBŸñó_%V~ã7âââþô§?™ ˜ýªeç[GGǽ÷ÞËï©X±òÚ"Oœ8±|ùòÉ“''''sÃh%rFxÿª ”·?þøŽ;îˆŽŽæÒÉý¦€ü¨Ä¾Úl¶ÐÐÐÐÐÐ@¢ V–æÐÐP·ÛÍ}–ny‘ÿ\ªøœ¯g¨`ã‘K|ûQ{{»œö#mÿNqž›ö¶GâvÅã‚%v ¶Ý7ß|ó{ßûž*"v±sÇåÀqd1(Kšr_b~rö9 8ZéuŒí %„´´´pŸ›šš’’’øåÂC‰~ů¿þšeYî jþ3×ÿ/¿t¶ˆv„úÌï…ï¾ûî}÷ÝDzìÒ¥K7oÞü£ýˆeÙ{ï½·¶¶Vz7…¹‘””$L[àޱuÀߎkŸÔbO˜b+WWW'%%}òÉ'r’áÖ¯ŠáQvbO2ò{Â%Öá½ûî»S§NK¿ÏåŠCñìvû.]º4::zùòeacÁàà ÷ùÂ… c6 x|MNNöÙ #3…Ò5A,Í‘$&&*;ˆ‘ßÖ@û˜#VrÈœAmið«sØ #@]ŠóÜ´·=b˽/Xb·>·{òäÉéÓ§óë{ókׄ„;‰ȇãÈJŒ/K£ê“ÛÕh~ÝkRDþ~!G.±‚±}¡„9†rú}~–¿ü„‰u„úÌï…ƒƒƒÓ¦Mˆ½téÒĉÒÒÒ¸×%dvŸz¬&g_Ì\üí¸öÙAíïÊéééeeeÊ’áWÅKؘ ½×³ï¿ÿþÓ§O ½ýöÛò_aPÊÛ¤I“:är¹Z[[ï»ï>~Íùóçoß¾}`` ³³óž{îá—O˜0á‹/¾ðÞ„Ç×§žzjÉ’%---ÃÃÇCz}±hËÊÊ/^ÜÑÑqéÒ%n‘Dš=")..^¾|yoo/×߸qãÆ1sC^ÓcŽ$†üÈÔ&‘¿:‡õy$±hAY¶›ö¶Gl¹÷Kì6À{»‡NMM=yò¤XzüÝ5±‹Ý˜;.Ž#+‘{Ó:–Ü®v›°äAè×N!´‹Ü¾Pòï ùv»Ýg9ýŠ>?ËŒ_~ÂÄ:By ñ¹pÉ’%ÕÕÕYYY,ËÞu×]O?ýôÝwß-7¹4È×Àš¾øÛq­Ê¸†ŽŽŽŒŒŒêêjÉð«bˆ%Ì_r.Ù¯½öÚ¬Y³l6Ûܹs…S–øLÿAY(oo½õÖôéÓm6Û´iÓ^xá~͆††›o¾Ùf³%''ÿâ¿à—WVVŽ?~ÌŒ©ªªâºÐoºé¦ƒJ¯/íµk× 'NœûÜsÏI§Ù#áD*ùùù‰TÄrC^ÓcŽ„<†üÈÔ&‘¿:‡%’¡âÈ#‰@ f»Ùn{Ä–{_°Än<¶{àÀÒäìšô]P€GŽ#‹‘uÓzó–Ü®¦›yƒBeû‚P° ‰Œí %„,[¶Ìétr}P%%%>ƒÈéWôùY,~~Kù ëõ™!>îÙ³'66ö™gžaYvçÎ111{÷î•¿›,ËnÞ¼™{Q“[mÌúcò:àoǵÏj¿z³¹¿ž?~Ö¬YUUUÒÉðŽÙ¯Šá±cV<1V:ï_”c–©ÆI ù‘3ŒK" ~uë3òhÌÕ@]ʲݴ·=·C,±ÛávŸ}öÙ”””3gΨ›!b»1w\GcpYŽYŸ>øàƒÛo¿=22222ò?þã?øþ–eÓÓÓ ! Ü×;î¸cáÂ…ÜçO>ù„2}út™Û=vìXVVÖu×]1þüßÿþ÷Üò›o¾™Âw¡°,{ðàABÈÍ7ß,PήÈ7ìrÀß­H¬`l_(!ä™gžáÞ­ÍËËë0”Ó¯èó³Xüý–ò&Öê3C|.lnn&„pý Ÿ~ú)teÈì>½zõj^^^ddä”)STù c뀿×>;¨ýêÍæÿÚÝÝ={öì'Ÿ|R"Þ1ûU1<öbÌŠ'Æ'=àðE)¿Lés$1äGΠ3‰4øÕ9¬ÏÈ#eaA1eÙnÚÛéÛ!áKì6ÀãFÈÕ+Wω‹ØîKÃqd%Æ—¥t}zÿý÷CBB¾÷½ïuuuõôô|ÿûß á€uëÖBžþy–e/^¼j³Ù.^¼È²ìîÝ» !?ûÙÏäl÷Ã?´ÙlwÞyg{{ûç@Ü< IDAT?ÿùÏŸþô§„ßýîw,ËrC=—-[Æ\ºt)!ä—¿ü¥tÀ1wMTßw~2b‘~nKë­(¦Ã‘¢s@2y ‹Q9©çIïĘ$IæØ˜¹g1GC~ä j“Hƒ_ÃúŒ»zø¯(MZð%åý$Œ“vè5"Úá ²*‹Ì|ªóžPÓ¨”Ëbç>‰›]°ŸÅ:@éòBiÒbÌ’²Øµ&Ø øÌçCz¡ì¬Êìó5€ºÐ<Įܨóö ¥I9·Ñè•¥LçCJ¡¡ÁÚL=_Å»J ’X.ÆÁ@úÊ:@™·_(M“ó÷6åH”—©à|H44X›Yæk=áblmò;Q ê€Yùuû%,M¨y‹ÃßrÔ0Y <&™Ž#Šà ˜¯àQÄ_9„„»L/–…¡p-Ããej8HÔ‚¶°ŒÞ\ÀK Ãøü,ö×7Þxã»ßýnddäøñãøÃ¶´´ð+766:Ž„„„ðððÌÌ̃ÊßÖÿþïÿÞqÇQQQQQQ·ß~û|à‘±í¶µµÝwß}ñññ6›mêÔ©¹¹¹ùË_TÊ$€ †î\ëÁ ´Å ¡@-ÂK.@5†aBŒMYòhòóЪ®®þïÿþïþþþmÛ¶}ðÁ«V­â–×××ßzë­ÿûßßxão¾ùæÀü㥷Åûàƒ–,Yb³Ù¾úꫳgφ‡‡ß}÷ÝÂæ‰íÞ{ソÿýïýë_ üãÿøÑ~´uëV¿³Ãô<^¦0TKËÃcŒà‰ x?DÇç ¡¡¡n·Ûç:ÜçO?ý433“2000~üx~ý¬¬¬ººº÷Þ{ï‡?ü¡ÌmñKn¿ýö¿þõ¯õõõ , „œù„‹dæÌ™wÞyç¦M›’’’ÔÉ#ã ­!Øö—^()«BÉZ Ú¬­*B[XŒÁó5È122â½à׎ÏlÛî믿~ÿý÷O™2eppðÓO?ݳgOvv¶Æ 4^£ÝàTc%h\°0+@àÄ.y¸¥ŒŸ¯Á§ÐÐБ‘—ËÅ}mll”ö;ßù!DÙ¼ŒóæÍ#„œ:uŠûÊ}˜?¾œ°Ó§Oíµ×œNçåË—_}õUa<<ÆXZ®-íG !ÄûG Ç=óÿâ¿jjjZ»v­ü°UUUãÆûÏÿüÏ¿ýíoÃÃÃÍÍÍ«W¯æÿ:yòdBÈçŸî3ì¶mÛBBB6mÚÔÝÝít:KJJBBBüq9Û]¼xñŸþô§¯¿þ:22266–rë­·ÊO6÷»–„b03³Ý=PMú€Âá4bYÖŒã^}õÕÅ‹?ñÄ111>øà¦M›ä‡ýö·¿ý÷¿ÿ}þüùÙÙÙQQQ999Ë–-ãÿZ^^{à 7øüðÃ<ðÀä'›.茿 åȪP¦ †ÁE$ˆÝÏ]cðì)ÕPLÖƒ2µŸŠR¦¦„P‘°eYïitù?éŸ6ņ± ž|Täó€Âhb šçkóÉ´ƒîn‹+P\J(…#@]cþ, ù7À›Içkw½ºAÛÈ‚v2î9@]h<0?¡ aŒk…pŸcBã‘• ƒäÃ| `x.0?¡0&Ì×Á´^\G(‚¦@ð‹ ×  î}­¥i=(SË@{øó5€,h6ù0_Ã_@è0-\åÀ_˜¯4T‹AS ø%„eY\<À@Ô`ac+ÆÇ™OPó5€ p›FÁ0€¦pqÅ0_ mF–„[ +Áá þÂ|  &ÜY€žQ©†v@æk  €2x˜°Ì×ü?&„v@æk5¡.npl(D«BÉÒWs ó5›*ðÙzŸ…¤×çï) O3>Ïg‚ú†ÏølÊÏB2Ãú»>>ëð™à‹ÏølÄgò/&I>ùç@`¾0 .@æ„cÁ0‚îho\ƒ–üJâïúæg½=²  E¼¯5|c9JÐz”›8¢MÇ&€áp>k`ó5€æ|^hp#áº>azHCàxÕa¾Ð n\@#îK;4p[L¡M4…ù@'x0• –emF§,‹eY®% ÷1ÔѨ Z·¦mœv¤a( hÍ†Ë @³Þè6ï=ÂÅN;Ö«?–‡"­1 ƒq @ Ü«N,Ki2÷Þ/ôâjM­¼Å˜8Ý ‡@S6Ü~vpËZ@uR…ðiÜzYê½GÜþâ’€F[Ðæk:Öne#ü1E´8¨®”Bý­a¾€ Â?çÉߣÅ!83A ÈIZ ¡ ôÁ0LˆÑi‹ÞÙ€±‚¼¡Çï>NMTPá@O!ÜëôF'` 8S BhnP…F¹‡FjMá :`Yã@'¸kUà.Y44xCsƒZP©¨€·'@g!,ËâšB0Ä ¹@ ˜¯ X ¡Á'd  jýa¾Ðj€þðŒ1&Ì  ª-P·@˜¯t‚›Qžjè…çP •GE8€Î0_€eiÔFãñ¨â¡QÏ–Ú`6¸3Q jÀ˜¯ôƒ[y«ÂcLÂ,pÍa¾kÒtPƒðÚÁ...Ž‹‹‹Ýµk—GÀúúz»Ý¾wï^BÈÈÈÈ–-[¦L™•››;00à3f!éȇöP°*4 €þ0_ø‡{nñùþ]yyycccCCCkkk{{»ðO‡Z¶lYMM͆ !UUU'Ožlhhp:%%%Ò1KGÞÐpÆbÐÚ Tï¥nØ-u ¶$”‚2ÚåÃüÛµƒÿšœœ\WW7sæL•«««÷ìÙóÖ[oÍ›7[˜––öÎ;ïÌ™3‡ât:333{zz¼cò¹ºPÓdÒ'£øGe”ˆ2¨Ï”ÂÁ ÖÀHÜÕ´5P˜`KB)(£[ƒÍfs¹\6›Ícåôôt‡ÃQYYÉ/ ãG1ŒŽŽ2 3::ê³ÏÈÕ…š&“n…Q Y@/¿` Ã`¾PGBBBkk«÷ò£G¾þúë;wî®ÙÖÖæv»GFF¸æÅ‘€Ü×€á0_è ³¯XÀ„ ššš¼—¯^½zýúõýýý………ür»Ý~ôèÑ—^ziÇŽÜ’uëÖ|ùå—n·ûôéÓ¹¹¹>cž+Ä"¡Ã(#0VˆØ,\@/M7nܸ`ÁïFÃ'žxböìÙ™™™éééÓ¦Mþ)11ñÈ‘#¯¼òJEE!¤´´táÂ…YYYQQQ«V­ÊÉÉ‘ŽY:rà¡5Ìó5À´x\¡kº/ôàE  òMdšzæJDdípƒ5`¾0N”Òù¯Ýù (`˜¯À Ð(¦Bë| ¸ Z @]4ÞÔ€õ0 ƒq `Ü PãóÍ Í÷`6TÎ×À%˜ºd€¿ðl Ζ`˜¯ ƒ¿ÌIÙQ©õ±ŒsEÐÂÅB4Ë€ Ñ7_ƒð†7úP½ ÂãO*žÏ}F…ëE€¦…¢Â| ‹²Viù¡´kõÎËËëèè „tttäååi´• AWçDPAÑ€ÙP6_ƒwR)J_â+//olllhhhmmmooþéСCË–-«©©Ù°a!¤ªªêäÉ“ N§3""¢¤¤D,fÌ( dø‹¡è>^â^‡¢½ ‹Ö{æ˜4 - ™9¹—ššZTT´råÊ””aÀ .Lš4‰2883<<Ì-çbSÊg =š¸¯ÉÉÉuuu3gÎôX¹ººzÏž=o½õÖ¼yó¸…iiiï¼óΜ9s!N§333³§§Ç;æ¼¼¼ŠŠŠ”””sçÎmÛ¶í·¿ým ™œ ÏÃ`NÈK¡ ÖÀHÜšÚô§ÃÉÎäçS“'ÏÚù3ëëë+**>þøãÈÈȽ{÷fggñ&þƒ²P>“ç3ˆÍfs¹\6›Ícåôôt‡Ã!| ",,ŒÅ0::Ê0Ìèè¨ØFå\ïPåÄž3†'À„ø›"d €ÅàŒÖÀPt¡s§ùwFhk0yò¬ ™ ùX[[»fÍšîînâO«²PÞëx|×ÐÑÑñýïíÚµ›6m⦤¤|ôÑGv»]:fùPå|2íŠÆòÀªptƒe`¾0¼  ?‡ÃqæÌ™k×®ŽŽŽŒŒhÊÛ„ ššš¼—¯^½zýúõýýý………ür»Ý~ôèÑ—^ziÇŽÜ’uëÖ|ùå—n·ûôéÓ¹¹¹Ò1C p×k*xó³Qq¡>ˆz$X8‡9ûX–ECxôV¬X‘““óÕW_}ë[ßÚ¿¿¦¡¼mܸqÁ‚ß|óG)?ñÄ›6mÊÌÌdYvÛ¶mÂ?%&&9rdÑ¢En·ûñÇ/--e&++«««kΜ9eeeÒ1€>¨™¯a̧<–hDŸŒ5sñ™9mÖ†œòÐ_È1ŸL’-&I† +¬ Ç8XÃ06*j³Ï± Â…&O?ÈAKË@ð â&!¨`$ PeYÛØkh ¯Qh;²ÌЊç}€ž$ox¨Š ¢€ùÑ1_ƒÓ ´pÒPZÄ€ Ãàw(ÀøŸÇ3:!` ¸ŸV Ž,™På|B¶˜ d K7ÂÖèdø‡Æ4€bh8ã é¨À²,Æ5XžÐÆ„Þ{0?Â@–e©»Á¢1Í0&<h —OÈ1h‚1!Ђaü€Åñ?õb†ß¤0¾¡Ùf†v ‘%[rqøÅFãŒÆ4€L8Àµ€æohh*Xò ¬'H**?á `,Ëb\˜÷8„g!- ¹A ÒÌÙäÌ׈ Üe …X+ƒ%+­÷Κól `6 Ó `847pÐд’¾b ”°~ÉéÔ{7ù«ªÏ¿3Ì×&äBÚ67à»1 Â;c°ÔU0œKy©̓ó ó5€¹ðB ‘à¼1±|ÁS+Læ„¡aÞ<.¬È‚ùÀlpo­ï‡`€ª´ž£肆 xQÀC˲Ô 4¦ü…Û,Ïé4xöÔÚ„mdÁ•L câs&xNSb0_˜^£Ð™w>bÜžšN¿f€RBCƒLÝÀ á~>Êèdø‡Æ4 á)Úc4NÝ´Àý± À<ÐÐàŒn „°,bt|¶Q²ÀA‰Sùî«°•Á£¹ ÓÖ€i¡Zʇ¼ ˜¯ÌG7u<š$NÑèê19”‹áP`BhÿR=gä†Á¸PH~+ƒp>¬†)ƒ˜ü‰"nßM^r`¾0©`¸› —÷ëÒOGÂ#Í >¡÷LÕ2¸›…`Ʋ,~‡äò¸aR|÷‰iºMwà"Ìצ€ç“Sðº„4> U3\^‚Þc0!ݪåÈÈÈ–-[¦L™•››;00À'`÷îÝ)))6›Íû«Ëå*((ˆ‰‰‰‰‰Y»v­ËåòŠ7<<\\\»k×.­wŠƒ¡ ´0_˜ÎÎA÷Ù&¤V+ƒÏ#ïSÔzUUU'Ožlhhp:%%%üŸNœ8ÑÐÐàv»½¿–••uuuµ´´477·µµmݺU,§¼¼¼±±±¡¡¡µµµ½½]—=jTþX.ÚþucxV#ÁYmBM jEè~¹Ý è:éJí˜,¶;`ºÕÌ´´´wÞygΜ9„§Ó™™™ÙÓÓÃ% ««+!!OðkRRÒ‘#Gf̘AijjZ´hÑùóç½Wã%''×ÕÕÍœ9SëÝñào6â„–AåíŽ@ÝžÕ†?žÁYmjMÊ 3š̆ººK°Ò¾€ÅèV9ø­°,;::Ê0Ìèè(ñšÓÇã«Íf %„¸ÝîÈÈÈááaïÕ„ë»\.+t€¶Z˜¯L   'Õ'eð ›ðe Œ'* mmmn·{dd„kn*>>þìÙ³ÜçÖÖÖøøø1·ÒÚÚhZ@Ìצ€&|ÃiÝÊ ‡p£hn€ ³!dݺu_~ù¥Ûí>}útnn®œP‡£¨¨¨¯¯¯···°°Ðápx¯#¼š¬^½zýúõýýý………ª¥D„ÐØƒDcš!@(qϨì¿è°Q±?¡¹AxÜ5 *9˜™žg†ÒÒÒ… feeEEE­Zµ*''GN¨ÊÊÊøøøŒŒŒ3fØíöŠŠ éõŸxâ‰Ù³ggff¦§§O›6M„€(–e©|?wEº1IV˜ “ä€å!Ÿõ§Ý¤ 27-½ELß 'J@J“-d] CýT æk€ e£±Ó˜f“0°•A>–e¹tŠMñ@;fáפ¤¤#GŽÌ˜1ƒÒÔÔ´hÑ¢óçÏ{¯–——WQQ‘’’rîܹmÛ¶ýö·¿•Ÿ-þæ$N`TžÄqêÆ„Y¶‹A‹‘î9±LŽ^,Öø¢ËzTìž™@¦©"lTppÕ××WTT|üñÇ‘‘‘{÷îÍÎÎ&^­üWþƒ²PÞ¸?±,;::Ê0Ìèè¨DT›Í644Jq»Ý‘‘‘Šç³$hk€ „ÉTAŠ Ov:ß|˜0¬Ù+!x~×M•j€ÇYæè£bG¨H¤©àˆV‘âÌ ¤ÞÖÖÖ®Y³¦»»›øÓj ,/%%å£>²ÛíÞ;"ÑÖ””tôèÑŒŒ BHssó¢E‹:;;¥7ä/´5@pÂ| @œy!àuP™Œ˜/ IDATaú¿ —ô„ÜV W|U虇ãÌ™3×®]Ñ4”·uëÖ|ùå—n·ûôéÓ¹¹¹2·^TTÔ×××ÛÛ[XXèp8'<Øhl9£1Í2I?™¨ØÓb1,Ëòw!‹ä@.é ¹-nóTÇu87®X±"''端¾úÖ·¾µÿ~MCy+--e&++«««kΜ9eeerBUVV®_¿ž×pï½÷VTT(N±,Kå5\„tcÚ¬Ö-aúl(xz½T¬ z-E‡žfÞ3§Í´´È49ÙÖn¦T«¨½jÁ;´l4ÖcÓ À ž§Vo´ì;-éÔ‚÷¾ÓuÊŽn ´%^Á\½u†¬VG®FtÚÀaÆft‚HðÌö'Æg˜êÖ‡Š2Ò´ëÞ;¨»õþ8¨©j—© [tƒ¬PíÍâA"„kã4:þ¡1Í .᳄•–õblÚô$¶ïf8¨)*#MSeHiqDc¶H0utf C¦Õ××Ûíö½{÷r›Û½{wJJŠÍöÿúÞžyæ™øøøèèè5kÖ q GFF¶lÙ2eÊ”¨¨¨ÜÜÜ>µÂà_].WAAALLLLLÌÚµk].—ÏP¼áááââ⸸¸ØØØ]»vi±ïÔÝ;I0ùe!,Ëâw(´åýklzÌÆ -(#if(#eÐÜà YÁìСCË–-«©©Ù°a·äĉ n·›ûzìØ±S§N={¶»»{Û¶mܪªª“'O6448Έˆˆ’’>Bà¯eee]]]---ÍÍÍmmm[·n Å)//olllhhhmmmoo×,ôƒÁ¥ ÅÌÝ2zÎÚ¨x+˜¦Î/†dÊÈ/Úe1ÓÈÌgõ@˜m¿Ì–Zh—o ÃTWWïٳ筷ޚ7o¿°««+!!ÿÚÒÒÂýAssó¢E‹:;; !iiiï¼óΜ9s!N§333³§§Çgpáפ¤¤#GŽÌ˜1ƒÒÔÔ´hÑ¢óçÏ{¯ÆKNN®««›9s¦êûî‘Dv£«sCBp 10“ŸìtH^ ›ÀŽ:gÊH­4* ”5ÇäguÅLµ_¨lŠiÚÖžžîp8*++… …ÛbÆív‡††BÜnwddäðð0!$,,Œ[eÙÑÑQ†aFGG}~µÙlCCCÞ±‰Ý{Ûl6—Ëåñb…êôikPö|aá§´5@pbó5h÷šÊè9èe¤ ¥/&Pšl N,fsôèÑ×_}çÎëœ={–ûÐÚÚ:uêTîsBBB[[›Ûíášäl.>>^[||¼ôú ­­­rb¦—²Ó¯¿¡p’0 Ì×V`‹ b¡Ï3!Ê(•‘Öó–¡¹}e:@&›–Ýn?zôèK/½´cDZu}ôÑÞÞÞÞÞÞÂÂÂx€[¸nݺ‚‚‚/¿üÒívŸ>}:77WÎæGQQQ__›Ãáð^Gx.Z½zõúõë;;;ûûû ýÜ9:(;.p4Ð+„ƉÐhL3hÁœÕ±Óú™e8JŸÛ)M6Ðõ*:4Ó$&&9rä•W^©¨¨ð¹ÂÂ… o¼ñÆiÓ¦M:µ¼¼œ[XZZºpᬬ¬¨¨¨U«VåääÈÙVeee|||FFÆŒ3ìv»ØyO<ñÄìÙ³333ÓÓÓ§M›æÏn©¶¶vîܹáááiiiûöíã—×ÔÔ¤¥¥…‡‡Ï›7ïÔ©SÜBþQJÎÖ™ýÚ1Êã‡?ôùU Üñèý›1<®¢ )Z§PAüæÏ4Zh—“(#µ¨ž“ú ÔzCfcí½6ÃÞ™! ôBîéÀ¯L–³òäÉ“<èr¹Î;—ŸŸÏ¼çž{:::¶oß~Ë-·ðË %ë{áp8úúú¸¯O>ùdVVVGGÇ?ÿùϼ¼¼GyÄçj_‹ŠŠ–.]êt:{zzîºë®ââbŸ«‰ñ·nãXk „PÙ¹‡Šº1VkÝAé|Œ¥E~¢ŒÔ¥z~êV@Á6¼Åò5ßð ¶¥:ÃK0¨>7djjjQQÑÊ•+SRR„/\¸0iÒ$BÈàà`LLŒÇ¼˜ÊBÉߺp}þÐçWEäd ë˜ækºÕ‰XÎè\Œà5 ˆ.üÙ…* ª«Àþð‡ºººùó秤¤¼ùæ›ür®É€åv»U %ë„mçÏŸÏÌÌ´Ùl¡¡¡S§Níííõ¹šÇW§Ó™žžÎ}ž>}ºD(²ì¯Ë€*¨hXÕáwòTì01cFn½ŸŒR7Wµ®-AX@„ª2Ûœž[4 çó@»ƒ–Ï^ u Ý]Mmmíš5kº»»‰ø¯z_•…R¶uNJJÊG}d·Û½wV"TRRÒÑ£G322!ÍÍÍ‹-êìì”™6‚q ¬†Á¸ )2:! è Ý€;WMY»òHp8gΜ¹víÚèèèÈȈ¦¡dÆ3a„¦¦&± Úýªx ÎÔJ Ó –§ç­|}}½Ýnß»w/!dhhèá‡ŽŽŽž:uªðgLJ‡‹‹‹ãââbccwíÚÅ'RÎlÌqú<Ü|ƯŸ>>::zÍš5CCCÞiЭ€ýí}AÒÜ`y†×C4å@Z±bENNNtttiiéþýû5 %3ž7.X°@ìT Ï¯Š^™aR4¦™R´dµv锳yÅÅÿÆoÄÅÅýéOânÚ´iÙ²e½½½===K–,áÓðóŸÿ|ñâÅííí/^,,,äc3³XœB>ã×nÇUÉ[­ËH·"„,]º´§§Çét.Y²dóæÍމѳ€XµóVx•Ò“QÛÕU÷˪ Õg£n¡ä1yMð+“Q±ÕâoN"çÁ2PA E';’j¶¶†êêꤤ¤O>ù„_˜””ÔÒÒÂ}æ rŸív{SS“w ]]]ü×ÔÔÔÆÆFîsOOO||¼tœB>ã×Em ú!DgRR’wbô, Vƒ¼5êäcÉçFëí‘ÛtÞ¨%©ÞÖ ›‚P&ok™<´5èm œæ†i½â«QRåG«C^1 “žžîp8*++ù…6›mhh(44”âv»Ã¸4Øl6—ËÅ ÅÆ L!¿2˲£££ ÃŒŽŽJÄ)ä3~¨•·:LÞ©O1 ãv»ù8###¹Ò³€Í¿|)¶i£¶®ŠÎäÒOƒ'ou 83•͹« ”i'ÎËË«¨¨HIIiooüñÇûÛߊ­iª¯ýâýN„I&憄àÄ0 æk ÉÑ£G_ýuákÿ gÏžå>·¶¶ — ¿ú”ÐÖÖæv»GFF¸§Yé8=ÂŽÒ§€!Â8§Nê3¬ ÈS={‡ HC Ñ_mmíܹsÃÃÃÓÒÒöíÛÇ/¯©©IKK Ÿ7oÞ©S§¸…|) %A8)Ç<;„ŸóéHÌ¿# îñÕårÄÄÄÄÄĬ]»Öårù UYYY\\Lyì±Ç„ÝVâ³ËÌŒeYüXkô¬`ú°ÛíG}饗vìØÁ-ÉÍÍ}ôÑGù¹‘ù5W¯^½~ýúÎÎÎþþ~ár!±Ù˜Åâf¯œøƒ>DyôÑG{{{¹8xàn¡• ÈØûH+57Uÿ˜!‚ É[“x衇ÊË˯\¹rìØ±úúz~y]]ÝñãÇûûû³³³óóóU %æÐ¡CË–-«©©Ù°a·äĉ n·›ûzìØ±S§N={¶»»{Û¶mܪªª“'O6448Έˆˆ’’>Bà¯eee]]]---ÍÍÍmmm[·n ÅU{ œ²ÀRÔz,‰®J¢EjeÆ©OFñ›èîîž={ö“O>ɲìÕ«Wóòò"##§L™R]]ͯsíڵ‰'ÆÆÆ>÷Üs1pFFFªªªRSSÃÂÂnºé¦ƒrËÅâ÷¿FTÉ^ÊH·"„<óÌ3\ÿX^^ÞÕ«W½ƒëY@¬¡GŸ¦,p­¤=ýþÒm-P7ÌFN~¦¤¤ìÞ½ûܹs/\¸À}°Ùlüò@BùL¡÷¤<äßçÙ!"óéHÌ¿ã\ø511±¹¹™ûüÅ_$&&ú\mõêÕííí„sçέ^½Z,ý,æk0ˆ¿9‰œk ˜¯¤ÑÕ!¦Å[Ö2s€®Œò—!oŸz$€œ½V*#ÃKÄ›á¦h‡öé̇zÒmƒ-cõ1f®Ö××WTT|üñÇ‘‘‘{÷îÍþÿØ»ûð(ª<_à§’NBÒÑ€Òä=äQ`ã ÌîìÕà2¼ Kdu4%M6ð0׫‰ÉaD AÐÑèÎu×ÁydF]uVgƒ˜aÅM0;d€!Àæ…I:ÉhóÞIß?j§nÙÕ]]]]/§ª¾Ÿ?x*Eªs~§^O:—G§DîOnB^*¿ÙÊ#\ßñtDÆßñ› –ψ?ÜÚüfRâp„Žñ4e#¨·Þz«¤¤¤»»[½Ãã5€5a¼0œ”@q܉ň×ܰªÕËüùó=ÚÓÓóÊ+¯üà?P5•_ÂAy„üާ#2þŽˆ¤¤$þÚ’’’D6Ç)ïL+’*è ·lÙòÞ{ï™#zTñb¼q†nnÅa7ÐQ~~þ… FFFÆÇÇÇÆÆTMå—pP!¿ã鈌¿#žó²²2nÄŸüüüp2oòžùER]a{{ûw¾ó€ "¸¯) Ĉy-áFPY8Ühcáº4ë‘o47ÐD³}Æ:‡!UV­Zµzõj»Ý^QQqøðaUS’œœ|òäÉ7Þxc÷îÝ~ÈÍÍ;wnVV–Ãᨬ¬dgVTTäææ.^¼8..níÚµ«W¯–²­ªªª¤¤¤3fÌœ93555Ð)§ï¯‡pÿÅ0Œ0-ûQFDD»X þ ?úª±›¨²yÆx 4Àx ôS/¼´Uœ†o0PV•¥öGæì„Õ¢ª ÚŽwóÑe¼†ÄÄÄŸþô§+W®t»Ý»wï~õÕWÙ•?ðÀ/¼ðÂ-·ÜòÜsÏ}ðÁuuu„7"ƒ¼T~KÁ5AM[^^~ñâÅC‡y½ÞüÇü«¿ú«çž{.ÌâŒ×VÅô’‰#P3F 5ÚÌm ô³N[1ÎÓ&…¡Ó†m Œª6^µéÒÖ‘‘QVVvÿý÷§§§óWÞÛÛ;yòdBÈÀÀ@BB‚ϰ—òRù-×Ö4mJJÊÉ“'gΜIijjZ¸páµk×Â,>A[XÆk³¡§ÓµŠN£Mc¨#}QxDcøË€Úè9Þ½s¤½vàwÞy§¦¦æÎ;ïLOOÿý÷¹ùìc?!$..Îãñ(’J\дn·;;;›ž>}zwwwHëø†Äô¾JÁl«Ý¯!PK¼ø÷M2RIü),íëZbƈ~ýPGšÕ‘.+—òÞ ”gOU*í0V©–è<ÞÍA÷·ëÇ/**êìì$ìSxÅ‘—*è2~秤¤|òÉ'3fÌ „\ºtiáÂ…íííá\÷Èè‚aôk ‘âã0SÈétº\.BˆËår:zg'd¨#Ñö^Ñ£EkSŠªïÆ­R-ÑÓµÁdt||Õý×C¤³à¨*‚曤@Œ˜gÐw*úŽÃÌ©¯¯OMM}饗!ÃÃÃëׯ·Û퇃ÿkᣣ£åå剉‰“&Mzþù繕WWW§§§Ûl6BÈØØØ¶mÛ¦NWPPÐßßÏ.æ³N‘,UUU•——Büñªªª 9×€Eêˆa˜}ûö%%%Ùíö¢¢¢ááá@9¡¤Ž¨}ºãÿ(m'P^3ÈFï‡HdŽþ „×ëE¿¬[·®²²òƵµµõõõÜüšššS§Nõõõååå+’*wß}wÅŠxì±Ç!O>ùdOOOkkëÙ³gOœ8Á-VYYyîܹ†††æææ«W¯róëêêØO÷ìÙsæÌ™††·Û³uëVv™@ëô‹½}§ç!Í"uD©­­mllliiéììܱc‡H~h«# ¡¹@Yt¾004}Ë~øá‹/ŽŽŽþñ\²d ;Ó'3ÜŸÜ„¼TB–ñ;„ ¯¾úêõëׯ_¿þꫯN˜0!„r€ 0ãî$Jå\âz¤,–žž^]]ÝÖÖæ“°··—îïï·ÙlÜüpRùÍáþýûSRR>ÿüsnfJJÊåË—Ù馦&.yjjjSS“p ÜŸçÎc§»ºº’’’Ä×)TXXÈ>$·µµZÌ«Pm¢Ž¸:"„ð×™’’(Kב8ÊOGT]Uéɉ^”â©=ª(£“LTRB$"æ@06$ˆ3t¯Q-”²X}}ýîÝ»OŸ>ûÒK/ååå #ÉKå7‡ÙÙÙùùùüžð6›mxx822’âñx¢¢¢Øä6›mhhˆí‡/Ü ‹[ØëõŽ3 3>>.²N‘Ð)Þ PG\1 ãñx¸uÆÆÆ²¿û%:mêH÷M„‰ž±é•Ú!X©µtˆ¼" £áÎ$¾0”dcC‚51 ƒñ42þü£Göôô¼òÊ+?øÁTMå×'Ÿ|òöÛoó¿ùŸ6mZKK ;ÝÜÜÌŸÏÿÓ¯iÓ¦µ¶¶z<ž±±1öQV|Pu)µHBøët8â롪ŽhÆ )ÝqM{Ê®´Ä? ô͉qY­½ÆïkUЋã5€éÑs¢û8Ì©©©Ÿ|òÉk¯½¶wï^vNAAAii)7Þ2·daaá£>ÚÞÞÞ××ÇŸÏ·iÓ¦ 6\¹rÅãñœ?¾  @|†`‘:"„”––vww³ë\³fM8yÖŒâOjàßÝê•U¼S‚©/Ý&C³ZCP(ˆÍ~FÌ3h¶„†q˜“““Ož<ùÆo°C+ïܹ3111##cîܹ .ä{ê©§n»í¶œœœìì쬬,¿«ª¨¨ÈÍÍ]¼xq\\ÜÚµkW¯^ÍδNC°HBrssçΛ••åp8*++ÃÌ3øÀ’9 úh€£I44€î)_á‚•ý•NøùWp¼kRä$£åÐV Æ™_›ð«õº×7V”Ô£Ùù4Àoh@ˆS0Vjò.@F`Áx `M¯,{ €9â3 Ž.ïcq‡ª£ìfáóujÇ/~d ×X^bO ™×ëµ_ À°¼^¯¯CŽÃLa–ôEa@(Ì’ p§ 4h ~˜¯CQeTá·6Zðâ.‘AwZyÙ6ha¬ã5˜ Uã0{ÿò›‹ôd‰úÄïæŒUGzÌðy«of@"´ ÑŒþ”^h‹ÌñãÇçÌ™™™yðàAnþ233£££çÍ›×ØØÈÎäNòRù˜9sæÅ‹ !W¯^ˆˆèèè „\¼xqæÌ™„–––¼¼¼›nºi„ Ë–-ëîîæÖV]]žžÎþž4Ã0~7 1 ƒß¡“3V§kGÕ´tÚ47à Y¸^‚°yô®_ëÖ­«¬¬¼qãFmmm}}=7¿¦¦æÔ©S}}}yyyÅÅÅŠ¤ò±lÙ²“'OB>øàƒ˜˜˜>ø€òñÇ/_¾œ²råÊ’’öǘn¿ýö²²2.a]]]CCƒÇ㑱QÂ(µ Æw®á”cCÒcCÒOËð·*Õ-Ò¸‘Q‰¼€ Œ¬0…ŒŒŒ²²²ûï¿?==¿ÎÞÞÞÉ“'BFGG oôGy©|?~üç?ÿù[o½µbÅŠ9sæ\¸pá7¿ùÍC=´~ýú¥K—ò—ÈÌÌd»60 ÓÑÑ1mÚ4ñÊ€±!Á²Ð¯€^*‰~¨#íy ÛYÉ‹)¨‡ªà„y²}çwjjjî¼óÎôôô÷ߟ›Ï>½Bâââ¸a¦òqï½÷ÖÕÕ œ>}zÛ¶mŸ~úéÀÀ@]]ݽ÷ÞKùì³ÏrssããㆱÛí½½½\B®¡AÆF@ÈØ?!j3Mêì‚èÛ¯!Pƒ½øhgòRÑŒæ~ ¨#–Æç CŸšTúõ>CÇD=xEŽˆãÇuvvÁeŽûSxù“—гlÙ²… ~ôÑG¿ûÝï–,Y²hÑ¢O>ù䨱c„´´´çž{î»ßýnBBÂ7ü®MüÏàDÖ„ñ IÞå--¡Ž þ—Õx‹NÜß((??ÿÂ… ###ãããcccª¦Z¶lÙÞ½{ï»ï>BÈ’%KöîÝ»lÙ2ö¿£££ccc[[[7nÜ({T~¦€:×LÉìwý>5mÛ¶mêÔ©qqqýýýìbÃÃÃëׯ·Ûí‡ãÙgŸ5ÁyÆ|uÄ0̾}û’’’ìv{QQÑðð°"Ò€q?£à ¹6¨e­ZµjõêÕv»½¢¢âðáê¦Z¶lÙ—_~¹xñbBÈ}÷Ýwýúu®­áСC›7oŽ_´hÑ‚ doÄýÿ¶û0G¾³2Óî!¯,S…¨)S¦9rdhh¨­­­¸¸˜[í<àr¹úûûwîÜ9þ|n~8©„fÏž}âĉëׯ—••­Y³F|ýùùù===쟻víZ¼x±ËåúꫯœNç#<ÂÎß¼yóŠ+º»»»ººØ¡˜dG‘ýu$¬#BÈòåË»ººÜn÷Ò¥K·lÙ";8ÚŸ+Ìqvâ_CJåw=ÊåË<¤G1Âq¡ˆPȰƒiõÛ`І™:”ª: yøÒq¸fü1™­Ÿ?PsffæoûÛÙ³gBÜnwNNNWW!$55õäÉ“3fÌ „\ºtiÖ¬Y²ãCÉx æ«#†a._¾ÌÕÑÂ… ÛÛÛåGûs…iÎNœ‚¿oËnšh(.¤s¸”%,çE`¼°&*Ækõ#C|ôÁÏdH6Dé Úðê8\3 <&s õój¾víZNNŽÍf‹ŒŒt8\ßþ®®®¬¬,v:;;[Z¨f¾:"„ðëÈívK-¼ÆÿŒ‚Å6üYWCÕ2e6c…;{†8Ó2zçèÐpV¦C¾)›úø™ )ô•޶ü„IFq4ë×ÀÑe¸æ@c2KYzzú§Ÿ~ššš*\çÇl¦~ ÓÔ‘O¿†E‹¹\.!:+Ly‚"þJ$ü/þ¼“糟 &¢à0©wó @?ýû5˜÷Î @„¾Ã5“YÊú7mÚ´aÆ+W®x<žóçϰó JKK{zzº»»KJJdçæ«#BHiiiww7[GkÖ¬‘=Ñö K6áð~è|¹GaL%q†èÚ@-´€Õ…>ăÂ|²ÁþùÎ;ï|ç;ß™0a‚Ýn_²dÉ¥K—øÿ+Ì|mmíâÅ‹oºé¦˜˜˜;ï¼ó_ÿõ_}V888XRR’˜˜ÁŸðàÁ¬¬¬èèè9sæüú׿~â‰'’““£¢¢îºë®ÿú¯ÿâçSd^¯÷ðáÃÓ§OŠŠºýöÛþóŸó³ç“Õ7ß|“së­·nß¾}hhHvéÔFÉN¢»½ÄåÃÔ›o¾9kÖ,›Í6gΜ?ü[­ÏV|&ä¥:zôèôéÓm6[VVÖË/¿ÒúÇÆÆöìÙ“‘‘uÇw9r„?88èt:ccc§Nºÿþpâ£È~ˆ:Ö!dß¾}ìïS8ÎÁÁÁÐ"òÍ"èr®0Ù9Êà4%œI$Ð<ïT+ï7ƒ&ü_‡‰lòB‡€ƒ9P±û½êûÛßþÓŸþ444´oß>öÏ@Ë{½Þ?þØf³-X°àêÕ«_}õÕ?ýÓ?B~þóŸó—¯®®þÓŸþ4>>üüüëׯ9r„ýóá‡æþÌÉÉ‘¸‰ßüæ7„¿û»¿ëêêêìì¼÷Þ{ù™ôÉðöíÛ;öõ×_ýõ×Ï?ÿÏÃä›üÎÒ/ûú .Dˆ€D8Xd4DÌP8^ûçþð‡œœBH|||dd$7vš°3Ò‚ jkkçÎKùâ‹/&Ož|ë­·655qËÿñœ3gŽp»ÿýßÿ=88Ga?]·ÙlÜFÅ7q÷ÝwÿÇüG}}ý]wÝE9sæÌüùó¹LŠôžŒŒœ:u*7$[¨¥S›ùº~©4>ˆù¥8‰¿°(-¡i¼Ó§R„«"z„×ÄCê±Ì¿²b¾h„JJoï_†º@¸‚2ñÉV%áD §&0 ýO~Û<Odd¤Èü ÛíöŸÕrÍìòcccßœÂg¾ß?¹­ˆo"..nppphh(&&†2<<>â> cò IDATæZLÊ&¤x衇^ýõâââžžn Râþ¦X~;8i³]m6dšÕ*ňУA"Ù¡ ó¾@wA:…FÃ0føŠoûÛ„ÚÚZ½61oÞ¯×k¼~ •••“&Mºýö۹㙚qöìÙ‹-Šýë¿þëãÇ?ýôÓ nT|ßûÞ÷>|õêÕ´´´{ï½·°°0ÐzÞ~ûíûï¿ÿ©§žš4iRaaáöíÛi(ÐFÞõW}-¡Ž@ wõuň¤D­ !á77àºÆâ‡çŽbƒ)™upéåÒelÈ@#ö‰ä'#•‚CªŠÂ±!QG>t?Wèž•ˆ ‰ûZéD‡=ÙøG–e%5‚`Ö+X Ã06½ó ö6Ý(Oqy¹5Vu~)þê¿BÍÞ+šlG5Yq´Çÿ(Õâp>јY÷7óíHƯÀLŽ?>gΜèèèÌÌ̃ró8™™=oÞ¼ÆÆFv&w¨ÊK僻9à,,,´Ûí‡ãÙgŸßÃ0ÕÕÕééé6›266¶mÛ¶©S§ÆÅÅô÷÷³‹ ¯_¿^¸N1}1 ³oß¾¤¤$»Ý^TT4<<¬@Ô¬Ð;GÊ0n¹|îÞðÑ€‚,~@Y¼øÚ0îÕ'T&+©!ÇkPîÇðºuë*++oܸQ[[[__Ïͯ©©9uêT___^^^qq±"©|°—Fþ5òÉ'ŸüòË/[[[ù?}hsuuu ì/°îÙ³çÌ™3 n·;&&fëÖ­Ü:{zzZ[[Ïž={âÄ !ÒéëˆR[[ÛØØØÒÒÒÙÙ¹cÇŽPCDJÆ| tg üS#’^^¥"© UW.e£æ¦÷ùI7zÞäKõ®vµH€aèR š¹w)¥“ÙJOO¯®®nkkóY[oo/;Ýßßo³Ù¸ùá¤ò›mþŸ)))W®\a§/_¾tsÜŸçÎc§»ºº’’’¸u^¾|™njj’%EöCÔQ :"„ðë(%%%PfDÐp®Ð7Ö¼°*UêðndŒD©È€‰átáµêUUÈÐq „ _€¼rß©¾óÎ;555wÞygzzúûï¿ÏÍŸOE(ø†‚6JÕ‘¼J®„Ð[mr‚w/"D‚ƒ¸ù@@@ˆžKªfp2 ‰QÂÅ0L„î]ø{ì1—ËõÇ?þ‘ò`XÁc=öÅ_tuumÞ¼9//Oï쀨#Ýå¯.,>wˆ›P XX®¡2ʵÃëõê?^CWW!döìÙºl]ƒÎ`^¹?s  ‰?ü>kÖ¬Ûn»mæÌ™7ß|ó®]»4Τ_ ¶î£ŽTBÕÍj™’òÒ =¤3Ê-#€ªpu‰Q¡ïÃ6weåßX o²…ÿû«_ýêoÿöocccããã¿ûÝﲿ3Ï:wî\~~þ´iÓ¢££srrŽ9"}[¿ûÝïî¹çž¸¸¸¸¸¸»ï¾û£>òÉC í¶¶¶>ôÐCIII6›Íápüþ÷¿W(H .ÊŸ?•â÷*¡GyÄív߸qã¿ø;L€âÙP|¦¡W¡RBBUÃ Íø§V44ˆCsX®ª²ÑÿÃ0ŒÎý¸ËçÆ:hÔöïßÿ³Ÿý¬¯¯oÇŽ}ôÑÚµkÙùõõõßþö·ÿó?ÿóW¿úÕ×_ýÖ[o½÷Þ{âÛâ|ôÑGK—.µÙlÿýßÿÝÒÒ½lÙ2~sƒÈv¿ÿýïÿë¿þ뫯¾Úßßÿ_ÿõ_ßûÞ÷¶oßr8Ààè?æ Gñ+êHq¸K‰°“ˆ@pÔ&ñöw‰ ÒÿUƒßñ###=ßeØé?üá999„þþþøøxnùÅ‹×ÔÔüÛ¿ýÛw¿û]‰ÛâæÜ}÷ÝÿñÿQ__×]wBΜ93þü»ï¾›í¡ ¾Ý¨¨(Çsâĉ{ï½×L;¨Ež"DŠj,1ͨOÔ‘²èŒ§J¹¢³°4C†`b¥SÆ%åÃÛïÿŠ'Ñå{‹þ7òÚ<Odd¤ðívûÀÀÀÀÀ@ll¬Ämqsââ⇆†bbb!ÃÃÃ&LˆºÝ»îºëóÏ?gWrë­·.X°`óæÍ)))ÊÄH?”ï¾ TR°NÐÔ¦^$QGJ¡6’hk ÚB‚ ˆ•Nzµ5(²%(ß[t¯Aб±1áLî_=~Ãh»o¿ýöÃ?ýÍ7ßt»Ýׯ_ÿÅ/~Á_ˆ"*Fù ŸÚïBQGá£ü}5¹òkåÊ•%%%ÝÝÝÝÝÝ·ß~{YY÷_µµµ---;vìàæ×ÕÕ544°½ÿöìÙsæÌ™††·Û³uëVv™'Ÿ|²§§§µµõìÙ³'Nœð»éÊÊÊsçÎ544477_½zUÍRh-è¥pݺu•••7nܨ­­­¯¯çÿ׻ᄏbÅŠ<öØcüùO<ñDGGÇåË—/]ºÔÚÚêw„>\^} Ç?׌0óçÏ'„<ûì³CCC/^üö·¿Í_F¸<ÎgŸ}6a„éÓ§Ÿ>}zdd¤©©iݺuÜ’S¦L!„\¸pÁoÚ?ü0""bÁ‚]]]÷Þ{oDDć~(e»÷ÝwßÑ£G{{{GFFŽ;F¹ûî»ÃŽîtß=´ä·°²#@ÃÁePš…u$›!B§x5(rbb"·¹Ë—/³ÓMMM)))ÜüŽŽ.IFFƹsçØé®®®¤¤$v:%%…ŸÜoÎSSS›ššT(‡—˪Jknn^µjU|||LLÌÒ¥KÝn7·Ågžy†íå±~ýú¡¡!nþ /¼––éõz=OEEEbbblll~~þ×_-žœodd¤¬¬lÊ”)'Nüñ¬Féè?¸@U9 hPÌ@—Bn"==½ººº­­Í'cû÷ïOIIùüóÏù3Ù‰äääK—.±Ó/^LNNnWíË«šwýï…¸téÒ’%KâââbbbæÏŸÏýhe å}æœ={öûßÿ>ûó“³gÏ~ûí·¹ÿúÉO~2iÒ$‘µ}øá‡wß}wlllllìÿú_ÿ‹khºÝ“'O>øàƒ‰‰‰‘‘‘IIIkÖ¬ioo',”Ð}÷Ð’²m ^ƒ<ÑFã ¡Žd0JÐϧJ¥>}úô=÷Üc·ÛÙõ³Ÿ‰²›óx<ìôèè¨Ífãæó“Ûl¶ÈÈÈÈÈȈˆ~rvØ#.¹ßœGFFŽŽŽ*^"ŽzûÉìÙ³Oœ8100pýúõ²²²5kÖp[\¾|yWW—Ûí^ºté–-[¸ùùùù===쟻víZ¼x±ËåúꫯœNç#<"žœïG?úÑ’%K®^½úÅ_”””¨Q:C_ ‹œ4(f K!7QWW·råÊ)S¦¤¥¥½÷Þ{Üÿfgg?ñÄ>¹õ»Nîêì³]U/¯>hÞa(ÍP‚æ}W A[²ä­ÐR1 ‡.áB…ÄXá2D[Cjjê[o½õå—_Ž_¿~'Ä“ššÊÍç'OKKs¹\~Wkâ~ | v ”œOƒ·U:Ä@ 9 hPÌ@—Báv;æp8¸ÿu¹\3fÌØ¿??·ìDrr2 W >jwBã5˜†—7.†Á—÷@«Ô‘D:Ö‘¹ FGGÇÆÆ¶¶¶nܸ‘ÿ_¥¥¥ì8%%%kÖ¬ñ›|Ó¦M6l¸råŠÇã9þ|AA;¿   ´´´§§‡MÎ-ÏßÉ }ôÑööö¾¾>þ2ôûì³ÏrssããㆱÛí½½½Üeee±ÙÙÙn·››?mÚ4núÚµk999l—‡ÃÁÇ)’œÓÙÙ™­lq@ .…œüüü .ŒŒŒŒóŽ 55õ“O>yíµ×öîÝ+LRVVÆ­3??ŸoŽË«â"p{  *®aàiÖŸ'X]bQGâh¨#y¼Ê άÞpÙ‡Ú¼ys||ü¢E‹,XÀÿ¯ÜÜܹsçfee9ŽÊÊJ¿É+**rss/^·víÚÕ«W³ówîÜ™˜˜˜‘‘1wîÜ… úMûÔSOÝvÛm999ÙÙÙÜ3¶!<øàƒ<òH{{;Û„_/---ìDss³Ãáð›|Ú´i­­­gllÌëõŽKO>mÚ´ææfÅJ`IÚüRcÐKáªU«V¯^m·Û+**>Ìÿ¯äää“'O¾ñÆ»wïæÏ¯ªªJJJš1cÆÌ™3SSS}þ—eÜË«²¼^/^RʲU >EV6xˆ „ž} u=u¥aíO†Êþ¾·.¿®^ЦL™òꫯ._¾¼££cÛ¶mìÀLìW¬Xñ³ŸýŒRXX˜““óÌ3ÏAñ÷ìÙóûßÿþŸÿùŸ333›ššž~úé_þò—“oß¾½¾¾þµ×^‹ê©§^|ñEÅKgÁ+/ðYá$`…2j†æ`Fë%€¡áp¢-&´å‡ˆ È ê­JA¤$ÇÛ*)]^t€ÐÜN¦’@ýLp°ø¼±W¶8ÜU‡ªD‘À¢_ƒŒ-Í÷ç0‹IÉy§‹³ÂIÀ eÔ µÁdã5|ƒß¼ÍqŒø¼Æ±OÔøPö¦Â[01¯×‹ß¡ø† |FDG‹Íð@¨ìçZÂx þ ¿80Óc9Z¨‚à« ×8ë³®±«(…aôkøŸ'máÇNü'@þ´iîG•jq ö;1cAM)œc øÌqU}ë­·’’’LùɶŒ×ð‘ -x8 ƒ¾mÍPjsÜ-Ñ–°&•®ªâ ȾnÙ²å½÷Þó;Hœ™`¼€ÿ!ý•²Y_>£ÅA_fݯ(Aaxåe‰ž‚8N—ËEq¹\N§SÁ5›£´¤øUU½Ë!¤½½ý;ßùNÐ<˜Ækø8Z4‡ðšÉñãÇçÌ™™™yðàAnþ233£££çÍ›×ØØÈÎäª^^*¡–––¼¼¼›nºi„ Ë–-ëîîæ’ìÛ·/))Én· só«««ÓÓÓm6!dlllÛ¶mS§N‹‹+((èïïg^¿~½Ýnw8Ï>û,—ªªªòòrBÈã?^UUnì$0Gmù –¾WÕ —96-ÿVyhhhÆ 7nò»fö÷•#""¸5ø,èŠl8¯à‚67X¤=-³È~¥/ z*®[·®²²òƵµµõõõÜüšššS§Nõõõååå+’JhåÊ•%%%ÝÝÝÝÝÝ·ß~{YY÷_µµµ---;vìàæ×ÕÕ544x<BÈž={Μ9ÓÐÐàv»cbb¶nÝÊ.óä“Oöôô´¶¶ž={öĉü-ºIR z‚XоWUì2Ç^_ø÷ÌO<ñDGGÇåË—/]ºÔÚÚº}ûv‰ }º"˜Àkî8Rø‚FÀ²‘ Ÿ•÷+]„m)iÓÓÓ«««ÛÚÚ|ööö²Óýýý6››N*qýýý‰‰‰\’Ë—/³ÓMMM)))ÜüŽŽ.IFFƹsçØé®®®¤¤$v:%%…ŸœË@aaáÕ«W !mmm………Âø !äþá\.—HXpZ°8+œ迪½Ì “'''_ºt‰¾xñbrrr •ó^»;èŠ,²6jwÜé‚Ëîhhð! G6„NcaÛ’—JhöìÙ'Nœ¸~ýzYYÙš5k¸$Ë—/ïêêr»ÝK—.ݲe 7???¿§§‡ýs×®]‹/v¹\_}õ•Óé|ä‘GÄ“»\®ïÿû\>E‚3€ÅYá$ ¥Œú^U¥,àó¿>WLî‚+žP˜™@Wd‘µQ»ÃPš- Íû®ÚÐÖ ä7Ž<ˆ›. »ô´ÇŽs8\*Ÿ•ø/;'55õ­·ÞúòË/ÇÇǯ_¿ÎOÂšêwUiii~€SSSýökŠ —HÜLÙ$Pr)¯È¸5àä`eV8 „TF]®ªRø$ONNö{þO(ÌL +²ÈÚèÜa!¯À?¯àÑZ¯œÐƒ;q â ŸŸáÂ…‘‘‘ñññ±±1US FGGÇÆÆ¶¶¶nܸ‘ÿ_¥¥¥ì8%%%kÖ¬ñ›|Ó¦M6l¸råŠÇã9þ|AA;¿   ´´´§§‡M.=?Þ¿ Á?oøxçwjjjî¼óÎôôô÷ߟ›?yòdv"..ŽN"üTBŸ}öYnnn||<Ã0v»½··—û¯¬¬,v";;Ûívsó§M›ÆM_»v-''‡}ûäp8¸Á8%ýõ×ÓÒÒ!éé鯿þzÐìXœ¾WU)&NœÈ¶Âs›.++㮘ùùùòVèŠl`:5ví°{à çp hz 'òAÓ¾ù曳fͲÙlsæÌùðùT>+ñ™—JèèÑ£Ó§O·ÙlYYY/¿ü2?ɾ}ûØáœNçàà ßUíÙ³‡ïàŽ;î8rä;ppÐétÆÆÆN:uÿþý!EOz´ÍÔ$Prép~°8+œ¤”Qß«ªUUUñññÜJ‹‹‹o¾ùæ›o¾¹¸¸˜»à ñ·+ÌL +²ÈÚ¨Ýa.sR›%ÀJØ×Úïxa>mj_S8H§×‘$Œà´ÖØžº¬-hÄòóóŸ|òÉ3füîw¿[¿~=Û5ÀgÜŸÜ„¼TBS¦LyõÕW—/_ÞÑѱmÛ¶·ß~›K²bÅŠŸýìg„œœœgžyF¸ª={öüþ÷¿ÿçþçÌÌ̦¦¦§Ÿ~ú—¿ü¥Hré º§€R¬p°B5Cs0#Ø&½³tÞ6F@ï™öQEÝIDó%@K«V­Z½zµÝn¯¨¨8|ø°ª©„:´yóæøøøE‹-X°€ÿ_¹¹¹sçÎÍÊÊr8•••~“WTTäææ.^¼8..níÚµ«W¯)9€¹1ʾîÐ îÔ5£v¨Å±¡Mlù{ú8H„3˜¾¸Õ¸]„G·H–hî×@§0#~À 7PŠNT•QÊU5¤+¯" ¥£*˜| ÃØ¨ÍœcåüÂs©Ú%Õ;äù-F<±h‘Ñ×ë5zœöew6ìº`2R.m²/V¾nz½^›ÞyËA+ƒ^´i @‹˜ÛNaÐ.z¡!\¼VR N›`6#^Ïp%6®pz/ƒ"|ÚÂì*LT%ZüB((&«Ñ²'v*BÃ0zç, ôàª@ÕÎäü¡g1r$˜ƒptð+Ð`. Í‘ÒÉ»¸à’¤¥#>ñ·3 ´Ñ¦¹ Åá/ða2–Ý“¥@p@/*µA(riÓf+”ðz½è×Z@C4kn hqÊ„ó¾]ËLj|NøèÚ š#!ïD*’Êétº\.BˆËår:²3&¾SŠ0b<¨ h¦ñS“e[ða2hnDä„X‰@pD?~|Μ9ÑÑÑ™™™äæ8p 333::zÞ¼yìLîŒ*/•PUUUyy9!äñǯªªò» Ã0ûöíKJJ²ÛíEEEÃÃÃÜüêêêôôt›ÍÆß Ã0Âlp#™ã¢€ñ@;xÊ¢–¼ª çáÙ²-`&hn ÔЀX‰C‹<€¸uëÖUVVÞ¸q£¶¶¶¾¾ž›_SSsêÔ©¾¾¾¼¼¼ââbERùÅï<ÚÚÚÆÆÆ–––ÎÎÎ;vpóëêê<ÏòÂlpýMs9Àå Ä„ÿ2¯s"ÔšRªf­ð¨8 ¨¥Ô).Ì•˜CÐP V~!,àà · ¡–1##£¬¬ìþûïOOO篤··wòäÉ„„„„ÑÑQÂû5y©„œNçîÝ»ÓÓÓÛÚÚvìØñúë¯û-ÑåË—g̘A¹téÒÂ… ÛÛÛÙùÓ¦Mãã>- 5мÃà bÐÖ`zµ5ðׯ2ßÞ‚£€ZŠT¹÷^)¤GÏÕ>²ÂmC¨e¬¯¯ß½{÷éÓ§ccc_z饼¼<"x,ç?ƳòR‰äYd†a<Odd$!ÄãñÄÆÆúm;´9éÙð»iBëcÈ_§9 &f¨ÍTSÎfR}©Q¹¦|f3ÓQ`> >é™rï JF©ñtÍA(À/+Ü9È.ãñãÇ‹ŠŠ:;;I(ëòR…ħ_âE‹Øá$­ÜÖ€ñd¢ðx6ŒãSð@î½V ,»ô˜ó×`5>ÑÓ73ôËÏÏ¿páÂÈÈÈøøøØØ˜ª©d+--íîîîîî.))Y³f¼•Lœ8±©©IÙŒé(ˆ{3 ˜ab ­ml,Æß评±±±mÛ¶M:5..®   ¿¿Ÿø–›Ú°aCBBBBBÂÆ‡††„Û-//OLLœ4iÒóÏ?¯EñdáÚSƒ.©jåš©Åò£gµË“¼òšé•ì6+[µjÕêÕ«ív{EEÅáÇUM%[nnîܹs³²²Gee¥¼•üð‡?¼ë®»Ìqeôz½hV1á<)Qþ”Å0Ì<ð /ÜrË-Ï=÷Ü|PWWGÙ½{wmmí¡C‡{ì1»Ýþ“Ÿü„îéT^^~ñâÅC‡y½ÞüÇü«¿ú«çž{Îg[O<ñÄ™3gþå_þ%>>~çÎÕÕÕ44kM³Êe Þ/ò£ˆaû±›f×2ÇíT¨LPq ÓœáE˜¯ŒŒ~ŸWÓLC~sNs@MÆÜm ~GÍÌÌüío;{ölBˆÛíÎÉÉéêê"ÛRRRNž<9sæLBHSSÓÂ… ¯]»æ³­´´´ššš[o½U«ÂÉG[[s,j÷(!Ê஦ —á ¬Óâ`¦Z•˜ï$/d¾2¢­AˆÑ1(á 6 .êGñ IDATæcî¶¿mQQQì„×ëgf||\dy›Í6<<,u–Ïf³ Ùl6õ‹.:ÛøeQ»_ñQ~Çp5e¸ ëËp§°8+œä©-£°í[˜I¿Ë ­AˆaŒ×ð Ó¦MkmmõxÆÆŽAѶc a×’C£ÿz¾p14KeÔî0¯ Î>8GJ°k‰CC€É»ý šŠ’»JƒÂx `”´8àš*¡ö­=ðÝ€eÉ;틤r:.—‹âr¹œN§ìŒYÆk€PþÀCI‹µñÆú5 ðß›0™ãÇÏ™3':::33óàÁƒÜüdffFGGÏ›7¯±±‘É]䥪ªª*//'„<þøãUUU~—afß¾}IIIv»½¨¨hxx˜ßÒÒ’——wÓM7M˜0aÙ²eÝÝÝÜòÕÕÕééé6›-PVÇÆÆ¶mÛ6uêÔ¸¸¸‚‚‚þþþG †aЯ̆ÿ¤¡^‹ƒpµxL•PÞÆ§;tg0ŸuëÖUVVÞ¸q£¶¶¶¾¾ž›_SSsêÔ©¾¾¾¼¼¼ââbERùÅ^\ÄïîjkkZ:;;wìØÁÎ\¹reIIIwwwww÷í·ß^VVÆ-_WW×ÐÐàñxeuÏž=gΜihhp»Ý111[·n•’Ujáò b06¤Õ­8cÕ¬ÏåAÙl Ca¬à€¬t抴 >+ÜNH)cFFFYYÙý÷ߟžžÎOØÛÛ;yòdBÈÀÀ@BBÂèè(áþ(/•Óéܽ{wzzz[[ÛŽ;^ýu¿¥¸|ùòŒ3!—.]Z¸pa{{»Ï2™™™l׆a:::¦M›&RÀÌÌÌßþö·³gÏ&„¸Ýœ®®.‘(ºwÜÁ€íÛ4]VJ­Õ8&kk`©ÔâàóˆBs p§0K”ÀA¦d…Ó¾”2Ö××ïÞ½ûôéÓ±±±/½ôR^^ÜsròR‰äSü®ØãñDFFB<Oll,Û„ñÙgŸmÙ²¥¡¡ý‚a˜ññqáÚüf5**Š]ÆëõŽsiÅ3IhÝaô”’怚 =m AõPS¡­!ÐæHàŠ3ô½Œ‡ {U8/™mõhèƒN=èÎ&FÛ•H !•ñøñãEEE$”Vy©B-¿_âE‹Øá$ÓÒÒž{î¹ï~÷» 7nÜHHHß?«éééŸ~úijjjHÙ Tî0¯ CñÑeA6ƒFÕgÄ8‰ã8H\#5˜#Dô S †°‚üüü .ŒŒŒŒ©šJ¶ÒÒRv\†’’’5kÖ°3£££ccc[[[7nÜRV7mÚ´aÆ+W®x<žóçϨ]UEñ.·æ ï貜úúúÔÔÔ—^z‰2<<¼~ýz»Ýîp8ž}öYn™ÑÑÑòòòÄÄÄI“&=ÿüó!•(Ðp² ÃøÍs <ø ]hµ>Y={öìŒ3¸ãÅëõNŸ>=hLLLF‹CHgHF@fF(~S¡#tô°ˆU«V­^½Ún·WTT>|XÕT²åææÎ;7++ËápTVV²3:´yóæøøøE‹-X° ¤¬VTTäææ.^¼8..níÚµ«W¯V»êùÿWj/€?²w) §L™räÈ‘¡¡¡¶¶¶ââb.á<àr¹úûûwîÜ9þ|n~8©üæÐëõþêW¿JLLüÍo~ÃÎܼyóŠ+º»»»ºº–.]Ê%ÿÑ~´dÉ’«W¯~ñÅ%%%!•h×®]‹/v¹\_}õ•Óé|ä‘GÄó(„üüüžžñÕ ³ú­o}«¦¦†ýßÿ÷¿óÎ;E*E¼âLvºžEš<ÐI ‡’ºÃ^äGX„Ntæ(#%E 9˜úŽ.^õhFÕñô]–a˜ýû÷¿øâ‹G7o;355õäÉ“ÜgW³fÍb“§¥¥ÕÔÔÜzë­â¥i8Ù@y”Ÿ¡k­V˜ÕŸüä'Ÿ~úé/ùKBH~~þ=÷Üó¿ÿ÷ÿT)ã5˜ìÐÇAü›ð }L(K¡aW§!ô@w°+œÿÍQFFv#“¡$@¡¢6 æN¨ƒ¦ÕwtY†a²³³óó󫪪¸™6›mxx˜N– Öf³ ±/ˆi8Ù@y”Ÿå­V˜Õ/¿ü2++«¹¹ÙëõΘ1£¥¥eâĉРRkæ¾×÷Ûâ >œ¤x[ƒ)£dº_eÌ}¸… ÑKÑý¤ªÊ(¼£“ò†ÉëõRò(MU0ù\¿Aœªm ]F—eÆårýÝßýÝÆ7oÞÌÎLKKûøãe÷kð›·@ÃÉÊs <ø,hµ~³úÐCýíßþ­×ë­¯¯ÿÅ/~!’ó m æ>W„ÔU!ÐÂæ‘Eè¾·ëžJà÷&À‚¬p °B5Cs0ñ; ÝG—MMMýä“O^{íµ½{÷²s JKK{zzØád¹% }ôÑööö¾¾>þ|)y u8Ù@yðhµ~³ZTTô/ÿò/¯½öZQQ‘„ÀXûi™ÈønÂ"üvlÑ Í7 ZÂïMZ„/áÝÝh]699ùäÉ“o¼ñÆîÝ» !;wîLLLÌÈȘ;wîÂ… ¹Åžzê©Ûn»-''';;;+++¤¼…:œl <ø´Z¿Y½ï¾û®_¿þõ×_‹¬8²ÏІ;—P ý. ã5@Ú|Cô°ø7)c1 w·¹éõ¬k©Í/½Ž,£¿Ã0â>cô˜ËcÄšYáBfå=ÃôÉ7(jw†alÔfN„±r `FgΜèèèÌÌ̃ró8™™=oÞ¼ÆÆFv&wÉK%TUUU^^NyüñÇ«ªªü.Ã%g&Ðú÷íÛ—””d·Û‹ŠŠ†‡‡ýn—ý“û×'†að; "ïÔ!j¼W t¢Þi™Hß@ÈoÍMƒï&„O¼*mˆ*ü’j Z3æòè[S”[·n]eeå7jkkëëë¹ù555§NêëëËËË+..V$•_ü&€ ­¿¶¶¶±±±¥¥¥³³sÇŽ"k`Ϧ9mbœgþó'z…xM…Zšu‡C0îþ ñ‡EÆ Nø´Ù14hË ŸÆA@ÌeCè€X㊠½Œeee÷ßzz:?yooïäÉ“ ! £££„7Ò¼TBì7ééémmm;vìðû —\dý—/_ž1c!äÒ¥K .loon—¿žjŸæg4£È¾Kó,ŒûT j3辡ÍÌ‚çImž©ðäÆÑ,ˆy˜@°ÂAzëëëwïÞ}úôéØØØ—^z)//HxJ——J$·" Z¾Ç㉌Œ$„x<žØØX¿mælk 3[âh¨É(ØÖþz@%A+Hún€º†  ·“hpűàE ºÐæsµ7a£ÅYᢠ£ŒÇ/**êìì$¡<¥ËKjY‚¶5ðû5,Z´ÈårB¢¢¢¾úê«ØØXBÈŸÿüç)S¦˜¬­ã5€ø_!ê›Rð†÷F N>¬ŸÏøUÝ[1µ>Ä\)8Opòóó/\¸0222>>>66¦j*õ”––vwwwww—””¬Y³†™““óì³Ï \»vmÓ¦MÜÂ'NljjÒ)§ ‹0â 4¦-Ã:pÕ¤@Æ:!p/4ØŠéi6X ÎH¨wô!æÊ2Öy@=«V­Z½zµÝn¯¨¨8|ø°ª©Ô“››;wîܬ¬,‡ÃQYYÉÎ|õÕWßÿý„„„ï|ç;÷Þ{/·ðøÃ»îºËǾ×ëÅ…Ä(Û'7"T‘^AwÔ,È` ÝF½Þ‰ B˜4­ƒÚ¥”P#>ˆ¹Uk²B½[¡Œœ0¿Ñ²~Bk0#ŒØGÀˆ}1€ ‘ž&hhÝî„ ^>Mì ¡6Š÷ÖAÌU¢M¿*50 cÓ;`-^¯—áýJ-îK´§ÒM?ªdàN”S)Ÿ9 ¢9’¨ÿR ´z01á…^x¼KYølF¼×1VnÁ¿‘Þˆ»Ÿq©ÑÊ€„0±ñ¼ƒ7D#K˜4îÎÀߨÕv'<ôtŒ¹¼üë„cÙ“$€Æ¤bòC˼^¯ý@ÂІeÏw ’rχûBSR¼ZM¼“ ;h÷ý4Ãx  '#î~Æ¥x´ñþaˆ’Õ8vLL¯†UGñ¬®®NOO·Ùl„±±±mÛ¶M:5..®   ¿¿Ÿ]¬¥¥%//鍊nš0a²e˺»»…ëÙ»wï-·Üâp8Þÿý½{÷Nž<Ùáp|ôÑGÂŽŽŽ–——'&&Nš4éùçŸW¼PŠz*Åœa˜}ûö%%%Ùíö¢¢¢ááan>¿"¸Ì3 sàÀÌÌÌèèèyóæ566²óýÆŸÊïV‚Ö#ŸÚÕD r’ðÁ0L„ÞyøŸg`š(«"dT ZÔcÊ#‹ÿ2Àd¬««khhðx<„={öœ9s¦¡¡ÁívÇÄÄlݺ•]fåÊ•%%%ì¨ß~ûíeeeÂõ¸Ýn—ËõôÓO¯]»Öív_½zõé§Ÿ.//.YYYyîܹ†††æææ«W¯ªZ: ÕÖÖ666¶´´tvvîØ±ƒ›Ï¯¾šššS§Nõõõååå³3ƒÆÐïV¤Ô#ÇâÕ #y p†h¶3D&C ó3Ð »˲NjHy­ >®àuuu)))/¾ø¢×ër:qqqIIIû÷ïç–)++›2eÊĉüã ×t‹0Ä¥H& QRyt?Iª·uBHGG÷gFFƹsçØé®®®¤¤$a’þþþÄÄD.97ñç?ÿÙëõ ñ§###…kHMMmjjR´¾Â˜J1'„\¾|™njjJIIáæó+‚ØÞÞ^vº¿¿ßf³±Ó~cÈOåw+|~ë‘Oƒjòšú¼BV¨n¥®§!Í'•”Ò¶hÞaЯ 8ï7›ÌÖÖ²¼ûî»+V¬8pàÀc=FyòÉ'{zzZ[[Ïž={âÄ n± ¯¼ðN ÌÁ¬Ý8Ó¦M㦯]»–““c³Ù"##×Çþ³Ï>ËÍÍgÆn·÷öö ×sË-·BbbbøÓcccÂ%;;;³³³Õ(‹!dee±ÙÙÙn·››Ï¯¾É“'³qqq\¯‡ 1ô»)õȱx5PHÞeH$•Óét¹\„—Ëåt:egÌŠômêǸ97„šÃ…ÂÐÇN¨DJj Böïߟ’’òùçŸs3SRRøïǸà}å¥Í;1úb ?“†(f¨è¹©P/>«MKKs¹\ÂÅRSSßzë­/¿ür||üúõë„÷þ\¸ž@Óüµ¡_ƒ×ëmjjJMMåæû,&>?¤~ ÜV‚Ö#ú5€â¬PÝ¡–ñرc³gÏŽŠŠÊÈÈxå•W¸•üô§?ÍÈÈˆŠŠúÖ·¾uöìYn~8©„\.׃>Hù‡ø¿'6ù /¼––ÆöSóx<‰‰‰±±±ùùù_ý5»XssóªU«âããcbb–.]êv»ÙùºÇJAíCA¿€ÐxÿrHcŒR+;pà€Óéœ7o7§««‹ÿ~Œ›ô•Þ‰ˆ7¼ÚLyÆàwgð~³ÝÁÄ6mÚ´aÆ+W®x<žóçϰ󣣣ccc[[[7nÜ(cÍü¤°°ðÑGmooïëë+))Q&ëÆQZZÊŽ˜PRR²fÍy+ C¿[ Z¨&­[·®²²òƵµµõõõÜ|¿µ„™Ê/)¿ΰ>ºÇš„ž-@1ì|>Ñ0ýá#^:s—]!Äår͘1cÿþýÜÌÔÔTôk‡Qö¨pòi”2JDÛ]„ª9ñYóØØØž={Ø×bwÜqÇ‘#GØùG>}ºÍfËÊÊzùå—‰à}¸ÏED8ÍŸ922RRRrË-·Lš4é…^P¡XáM½˜BöíÛÇþÒ‡Óéäæû,&>ßo ù©ün%¤zÔ š¼¦;{€8+Tw¨eLOO¯®®nkkóY‰ßZ¸5ËK%TXXÈ~åÚÖÖVXX¨Dá ë¨{¬4ï0&ÿº„Ÿ!àFÃÜß'‹×¾•÷ †a¼^oGGÇÂ… ·mÛFÙºuëùóç:äõz ÿíßþ ÎöíÛëëë_{íµøøø§žzêÅ_äÖÀ®Íïd”=Jv>Mvº °8FÙ…¨fÐTý‘Q ªR›­(»·¥X¤ºC*f}}ýîÝ»OŸ>ûÒK/åååÁ!ÌýÉMÈK%’a‘|þ7**Êû—ö‹ññq†aÆÇÇ !Ÿ}öÙ–-[ØKææÛl¶áááÈÈHBˆÇãá’KAóÁ69èРï:舿ïqÇŽÕvHšOjšINN>yòäo¼±{÷nBÈÎ;322æÎ»páBn±§žzê¶ÛnËÉÉÉÎÎæ>²à ºP…»# '¹ÑQØÐ&6þü£Göôô¼òÊ+?øÁTMHH—¼iÓ¦µ¶¶z<ž±±1¶¹ÿàƒ>òÈ#íííìp0Ü:§M›ÖÒÒÂN777‡™UJ0 ƒñ¤ò{Šá77X­ÅÁ²¸Jw8.\xòÉ' !&L8tèÐÀÀ€ÛíÞ¼y3·LTTTuuõŸÿüç/¾ø¢´´Ôg “1MóÿDg‚â€!äçç_¸paddd||Üï÷(˜J¡ëSPPPZZÚÓÓãeVUaÄ$#öÅãï†;š@ ìÖt¡Í†ÝÀ(V­Zµzõj»Ý^QQqøðaUS)¢¢¢"77wñâÅqqqk×®]½z5;ÿСC›7oŽ_´hÑ‚ ¸åu54Œ×A˜æ]œRÄ_è™éukk§ )·Æ*Z ôŸßÌgQ;^ø@¨-Å"Õm‘bj€æHb¼€ˆ,øž|˜àT€ï& T¯@aøžÀ B!Ò¸èVønBÞ¹Zû3¼™®)F‰¹JLS€p„9Ö²JyËh†æN ã5„JÊ™Í @Œ°xw£?Ó“éôй¾umÄš0+¯€¼e€âõzѯ@hnðK÷{w)«B•²Œx‚ï&ˆÜ‚Ó.§Óér¹!.—Ëétêès½¶kÜšP] „òN ã5¨Ç¸Ã7hæR¯ ¢ººÚápDDÐÕ®Îþáp8^|ñEó2½C¢ÿ 7qüøñ9sæDGGgffb¨ªª*//'„<þøãUUUaLºÇ|ß¾}IIIv»½¨¨hxx˜›Ï¯ n ÃøÝÄèèhyyybbâ¤I“žþyŸíÚJЪ¤ª¦”…ñäÞ ‹á$RïÒ®]»~ýë_kü£Êª{ï½÷vîÜ©wF@ŒAwÓwgX·n]eeå7jkkëëë¹ù555§NêëëËËË+..V$•_uuu ‡²gÏž3gÎ444¸Ý˜­[·²Ë¬\¹²¤¤¤»»»»»ûöÛo/++®Çív»\®§Ÿ~zíÚµn·ûêÕ«O?ý4ûÔÊb둆ýP÷˜×ÖÖ666¶´´tvvîØ±ƒ›Ï¯ >¿›¨¬¬ûÃÀÀÀºuë„YIJ?óÌ3ì[Óõë× qó_xá…´´´ÈÈH¯×;88X\\|óÍ7ß|óÍ6l)¾Ç㩨¨HLLŒÍÏÏÿúë¯E²*¿a Z(ªˆäÙ¸Å1\¶9R2Ÿžž^]]ÝÖÖæ“°··—îïï·ÙlÜüpRùÍaGG÷gFFƹsçØé®®®¤¤$a’þþþÄÄDŸ5Bþüç?{½Þ¡¡!þ4{D{½ÞÂÂBöy¸­­­°°0p<ÂÝQ óË—/³ÓMMM)))Ü|~]ðcëw©©©MMM•‹o…ÏoUjVS`,V«n£_}ta” #— ìÈ8Â…O˜Ô šI)¥˜2eÊ‘#G†††ÚÚÚŠ‹‹¹„<ð€Ëåêïïß¹sçüùó¹ùᤠd||ÜgöÏ_ýêW‰‰‰¿ùÍoØ™›7o^±bEwwwWW×Ò¥K¹$?úÑ–,YrõêÕ/¾ø¢¤¤D¸þÙ³gŸ8qb``àúõëeeekÖ¬)…0œòòò•+Wvww»Ýîï}ï{âÑàÖ0>>.^|BÈòåË»ººÜn÷Ò¥K·lÙÂÍÏÏÏïééaÿ,++[¾|¹Ûíîêêºï¾ûÊËËEŠ¿k׮ŋ»\®¯¾úÊét>òÈ#"Y ŸÜÒhùͶQŽt>#æY(hêêêV®\9eÊ”´´´÷Þ{K峟 y©üfÿ§Íf‹ŒŒŒŒŒd?òb†úôé{î¹Çn·³ÅáæûÝD iñœð— ³Òé¹Çãa§GGG5OZ÷gddäèè¨påâ[ Z•AóÏ_Æè‡'HgÁê6Ç5H3 —²(d”àšB-B^p qvšC)EÐ÷]–×ëûõ¯œœì³ªýû÷§¤¤|þùçÜÌ””þ+)nµ~_dÂgå·>Ùàÿ™’’råÊvúòåËâÑ`9Ž£Gމd‰H{¡—œœ|éÒ%vúâÅ‹\Äü?ЛX¿Y ŸÜR~\øå7ÛÆ* áÑ;/á’^ŠcÇŽ9.•ÏJüΗJ¸ +--Íår KMM}ë­·¾üòËñññëׯ ×,±­A Ú8zÅœLMM iUâ—~*¿[ Z•ҙ㉬Yݦ¹©Í@"„`¼MyÿrŽ öË4¥¾þzçwjjjî¼óÎôôô÷ߟ›?yòdv"..Nø¡¬¼T~EFFæåå GÛ:pà€Óéœ7o7§««+++‹ÎÎÎææwvvòÿúì³ÏrssããㆱÛí½½½â¥¤««+33“æ&Ä×SUUµjÕªÈÈHñ5óËåv»¹ùÓ¦Mã¦Ýn7WÌéÓ§s£—ù-þµk×rrrØ÷±‡ƒ[ØoVCƒqñg#}?iêa ýÊÏÏ¿páÂÈÈÈøø¸ôa\ä¥ jÓ¦M6l¸råŠÇã9þ|AA;pp0:::66¶µµuãÆJmN/ºÇ¼´´”1¡¤¤dÍš5òVRXXøè£¶··÷õõ•””H܊ɪ@Uôß!ÓÀ¨c*éÖÜtÃî!Nv|h>ô¤d,¤Ìëò.Ëëõz<žwÞy‡{¿Ä%q¹\3fÌØ¿?7355U^¿†@ï¬ü–ÂoXÉÉÉ~û5ˆ¬'99ùÝwßåzíúE¤½ÐKNNöÛýÁoñ½‰Éj ™ÂÜÒyDå“s„æ‘Ýf³eee½üòËÂ5ûìoÖ/Eø;ý1ß·o;lÓé䯣‘¸*îÏ‘‘‘’’’[n¹eÒ¤I/¼ð‚0•ß­­JéLv¨‚8+W·ù.L 2bpŒ—cÐvqáćð(›«0)ÕÖððß?~xxøƒ>ˆåó'7!/U ìÛ0aÚk׮͚5kÏž=ìÌ-[¶°ã5°ãpIžxâ‰%K–¸\®/¿üò±ö–Þí IDATÇntòäÉï¾ûîÐÐPssóC=$½'N¼xñ"÷gYYÙÊ•+{zzº»»W®\)¾nmRÆkX±b…Ûíf˵uëV¿qã±téÒþð‡"Åúé§—.]zùòåÑÑÑsçÎåçç‹dU$ÿ~sKÛ± ?çF)µçŸ0™¯DjÓ ­A_ÚäMƒ­PgP–ū۬W¨p7&Ë.ˈ6(„ZœRwiTY©¶}ße öù³³³ó¶ÛnÛµk—×ët:±±±S§Nõù ‘YÞÀfl–¢ªª*>>ž›Óßß¿víZ6{÷YOHe—òBÿ;ÅÅÅüß¡?ЛX¿YÉ¿ßÜRu „„|“ÞÙ Â(ù”Á¬åRÚŒ²Êã ÊBu{üt­,CÇÂxõ±!Äh_ÃBTø!¢íË+)%2ÐŽ1iÒ¤>úè®»îRêó?v qõ^¼xqùòåÍÍÍðz½uuuË–-ûâ‹/Ù"% ´S ñ÷.Ê‹@Û Gq”ìHÂŽîYR*V4Ç\›Ó Ú[¡$ Ô8c7° º30 Á0Œáj‘k)0ng¦á`4ßåmûöíßûÞ÷‚Ž¡(ìàˆ'|ì±Ç¾øâ‹®®®Í›7çåå‰,ù÷ÿ÷Û·o—— °,þÆLÇ8ü¾ÞUù¹6‘Gý¨çOCGÀëõâ¶ĘïÉSq †ˆ†Ç‰Å¡jÇ0Äûàþïÿý¿»víøû¿ÿûW^y…ýÂB:_è)…ªJÊóOÃéE3”×%”b®ÄÖ‚Pé`FºåàÔ B-…™šŒØÖæ`èJ÷#W„¾ïPŠ¡÷%Í ­Á([ B¥ƒ90 ¡wàÿãO¡oNÀø Ö¹mýŸñ¨p Lñ'Ä\%xæCÃx ÊPê8Òqøà hÀ ê ¢¹·…6¨ªz¨Ä\A&š×ëE¿€p)~ÏoMÓþVò%2Ðù0€a ÑG,õv Ä\Y?„À"ŒØGÀˆ}1B…û6£à_Fu?`­ùÝ„N¡Bj?¾"æJAC˜ÆkP†Jݧqß@3Ÿ“†§<¢ðáʧ;˜‡G1˜Æk ··ñP°J®GønÂ/<ú²´Ü7ópà(Ó0Ìx AŸ²ðæ¦Á­Ž €ˆŒ¯ýÑ„ï&Dè8à. ti„²xÌåAs!˜Í@§3îÆŽÚA¿ÁÊØ=“aõ¾ƒe÷võ6Ap M Kwœê’¿ðo¬ó#‚ü]QûòZ3æòè[S*aƦw$áß½ '¸e´Î€¶øÍ D×}^í†CÐ}ÿÇ#JH„O¿V ïŽa͘˃CÌÇã5ÐLÕJߟÃìÐӬϾ›Ç:ᢧ¤ôä„Nˆ˜’×ë5F¿¬c*ÎÑ@ͺOkó=ÈÆ¯—@Ó`t:V%º3„O›¸éÞ*ÚÇ`ôÆT#R¶wnˆ$Òý`AwÁÀRzñé´‹ƒ@{ Ããw(X®¸~m4ëÝ€ŸÃ¤ÿ¤hLL½'L iP8Ek­ ôÀx JÒk¬o‚{Yõ騩¿‡gP8Ek­ Tñz½Fê×@üÝ`áB Ë½,úƒ‚tÿ0A ÷v|7ah¨2µ¡•€N¯@aº<„ó›ðü ‰WLÏèÎ`hœU Z¨e°ñXøøÀ/Ù?‡)û•2îžAèÔ ²Q44˜ N˜JA+ý0^€©àÛ`õÈx˜‘}$â» “ÁÉY)he0ã×Àb/*¸´µô}á¯å-º6@˜ Ô©!ÔL†S(tg0%Ôf˜ÐÊ`,¯À„´ÿ9L47€ Øm„ðÝ„¹¡}V6´2‹!Çk`á† ï ¥6Ð1ä1Êu8=/B}°ÄwÖ¦t> p84Œã5¨‚’›¡  Šô`Gs„ÊX ÚlÈ(10á„)ZŒË¨ã5€tÚü&îžA:Ã=T«Oj|%‹·¸”éw ´2XPÎøÚ í¹”ÿL…æ~˜§MÈç˜Â!¢œ he°&†aЯ@u†¸µBsƒ_¸E¶e;5ü?öÎ=¾Šâlü³9'‹!$„ÜÔ‰FkKß¾¢VR£UJ@IÞêá¦Ec^à*D T„­P(öƒD„HÅL%M,L ä H9—ýý±?·ëÙsöìÙ³—™ÙçûG>{&;³Ï<Ï3³3ÏÎΠP504“û5ðÿ† [@ò6hEQƒº¦„) jb¾e`¿Ð RÇ …øK«nß›pFÏT¢ŠY=9)ý` ¤w,ex¬pÀÝ>‡‰'ð½ ¢Öü¶ü‡ë‰ë~Áù!°_˜¯ï¥›ö} Ÿ ð˜š2üœ Áã\@]Hé[`-àدt‚¸y©ÙÞ§óÞ@%ªl )ÓyˆëC ¥ï…(à –e­~!¢Á1}Ç`kZõ)_—“ סÖ:ñÕFøØŽýl›Ì÷KÖýô¯å€ÏÀ1}‹äc8¦é˜yàØÌÇþÀ²¬ÿ¥ ñ( ÀÅ!Ø”\ü´ŸÝ×›)ø Ü\E( O0 i;:£VL àÁD¥ Ä r|©J¥0±) a¤@q^ÙÁg™øã¢ªCå]0î0 co³¡¬Õ —TѦÄjˆ?p@SX<¾ QÀWX–…ïP€à¶&V>ü(“Ü*p¨8W¿` b“©å<à3€ŒÛ3 £øE!ÀäÀ~  +47a¸ÄÉ’ËÐÙXaÃñõM"Uœ𠉀¦v0D`Ö5à3Âq'Yá:þlYÎ…KË¿^¡úUॠÀ}2 äBÍ’{â Ú-g Æ¦&A¥TwðÀ'ôéoÅQ4Ê€ýÀt¨»,)áxo#ÓÀyLpq?ù½®œ3!ÊâõÑ/<Å ÷üA¸M:Âr2E@ˆOÃ5p+¸þÖ§oRxux—ÀÕÀ(ÜŽ£ Ä‹ñû5xŠÒ ÓåGò|ùé#„0$àÊ–Oã¼}ƒnsEÊlJ=rüAkçŸ#\$ý_XË8 lzžf@Ð<±bû(²Àä;ðïSÀÒw@1à<VÈÜmAì®r¾‘ N˜À <ýWOa@-ð_2粂èÝwß5jTPPИ1cþøÇ?Š_RøË_þ2a„àààÐÐЇ~øÜ¹s2/ôÅ_<ôÐCaaa?~ü¾}û¸ôqãÆ1 ³ÿ~þÌýû÷3 3nÜ8éŒ !íN‡ïS5W„%ñ˜ãÕÿõß|ðвqšØ©à @OŒß¯ÁW>üðÃgžy&..îÂ… Ÿ}öÙ¶mÛÄç¬[·îí·ßîîî.,,üôÓOŸyæ9%=ztòäÉ6›­¶¶¶££ãî»ïž6mÚÿøG„ÐsÏ=‡ÚµkòÎ;ByyyÒÀ´n€Ož¿CÌÁ ñÉ-Ý”€nxj˜Ð`r1xP.=ø>ðáŽï¿ÿþ¿ÿýïÿøÇ?~ò“Ÿ „Nœ81a—3¿ùæ›ôôt„POOOhh¨Åb±ÛíâkñK•¸¼<ð@EEEuuõwÞ‰ºzõjTTÔí·ß~öìÙîîîaÆÙíö¦¦¦ØØØÖÖÖøøø   –––ððp‰Œƒ•ä~Bºüø£³† ¹œnWÄ!ÊMÄKÊ¥Mc óàà·Y¸;¹Ý[Nâ0Äkë²Àb]+ÂÓ™UUU!.”€;v¬øœ´´4î`РA!‡Ã!G†S§N!„îºë.î¹hTTBè»ï¾CEDDüêW¿²Ûíï¼óBh÷î݇㩧ž —Î&G¸ºA‡o¾¸\Ô`I<7 ¦x:ÙXçA$à+Ò#%è€\ÄMîѰ_ƒéû¨Åbq{šœpFww·ðnAúþu‰?üáü_.ÅkFÀC :lß`ø\ ±{À{¹¸8­8Ä&¾Ã èyû5pÛ1ÖÖÖr?¿ùæµJæ^ʨ¨¨pûßx`Ô¨Q555o¾ùfmmíí·ß>iÒ$9@ýƒûäVõšÂ\@zö…Oˆ –ÃŒï¸dW÷*ÚÔ)„·$ÃoOà'dÝN^|ñEîo{{{KKËÒ¥KÕ*¹¸¸8((hñâŧOŸ¶ÛíÍÍÍï¼óÎĉ¹ÿ2 “››‹Z´hú~·H9àÐâ} |æŠB`Þˆ?°ÀüçöøK` ˲Xì éi]«xoH„лï¾ûꫯ^¼x1%%eÙ²eÏ=÷œËîâ%…Ò›ñÿ=uêÔªU«¾øâ‹k×® :ô¿þ뿞þy~ýÂåË—G```SSSLL _ŽDFið‡tù‰@7%cbMUæxÂ!¯á5ƒ‰ªM‹ÌVŸ1ž\7 EN£€à‹ŠPæTxúeJöˆv»ºººÔÔÔÔÔÔ3gÎ- ÀðWôÑ3>Öô3Ü€ÿi|TmNä 0´¸ÀLèü èû *¨ `@蘥 œš':ë;t@¬d"Œ,ß TÉ~B–tF—°çd3gΜ;wnuuuppð¸qãÞÿýÌÌL£…ÐajŠOK†<Áè©ÆžARù¸D訔[ྣžÞ§ÆvžB¢o§d?!ÑF:£µK¿_€9´ö>¢µª±5¥Ì!8q#uln¼®âÁÖ.à6TB\÷%3T ÑX;‚ÀЊä'P#ÀŠÀ@ä|“Äá,|g`G}@7Hì¾ä£Ý÷ŒEh5* GBààfTúnJö*m¤3j¹Ã0*‰€_˜yj*ñ9La Ü0uÁ¶¹a+à+fè¾hš¢p˜Ájĉ›Ñí˜(ÙO趑Ψâðx¨ÿ…Ùn¨™ ÿކ¡Sa( ó y阢p˜ÇjÄa¸›™Á7 W²Ÿ˜ÁF:ã§KÀ~ €ðŸ£Ò„vÚ&Ȏ⾌±=A汓QŽ!†Ÿ¡³™’‚úÂDŒ²‘©|ƒÐÊ*6ø£[šwü‡‚¡Yh¤p²ìHÓŽ>diÞ(0‰,ÈASÂh‰ÌÙö‰®54=RÐßR&ô âªLœÀÄ¡LÃXì×°oß¾ÄÄÄ€€†›Òoƒ`8âj”$€xêYC:ºY011qÏž=&LÐúBò!Ô{ ÛÌèf23û)u'EN P jã‡òzúø¢¯€ÆôGuaDOS8  Dè_O2Ñ¡ à6D£›ùVëu]BÅ63DdžŒwØIiÊIЉ}Eª<­Õá†ón=ý÷/ùË„ ‚ƒƒCCC~øásçÎñ'×ÔÔdee 6,(((==}ß¾}ò¯õÙgŸMœ8qРAƒ ºÿþû?ýôS<]·±±ñ׿þuLLŒÕj1cÆ_|¡’’€r„—îˆÿIúëND ¯"¶&¡ð`YÀF½6›mñâÅÑÑÑ‘‘‘6l@ßeùWPûúú²³³CBBbccׯ_ïÖ3Å…¨ŽËª4"Àp¢¢dÂ'ôñ4Š}CD4gLl¤®–°Õ¹¯.aü~ ¼g¸Œ;½Öaݺuo¿ývwwwaaá§Ÿ~úÌ3Ïpé•••?ùÉOþñüå/¹qãÆž={Þÿ}ékñ|úé§<òˆÕjýî»ï‚‚‚}ôQa¸AâºÓ¦MûóŸÿüûßÿ¾§§çŸÿüçÔ©S_~ùeŸÕ߃m/£:^W.>¯3üþ‡¬RB´[ÄQTTTSSSUUU__ñâEô½ò=ä+¯¼ÒÕÕÕØØX]]]QQ!³€nèèlÀlPØr¥÷ÇÒ±!‹Åâéîø›o¾á~Þ¸qCxþƒ>ˆúä“Oä_‹OùùÏŽª¬¬ä~VVV"„î¿ÿ~9×µZ­¡#GŽ8NŸU€1†»‡9QWíØÑ×.‡þJ„Š­.äšOíêE¥ºÌ€F†‹?{ö¬øZüñðáÃÏŸ?Ïs‹.e¢:d¹.VÒŽ9’F:Δ””Ó§OÛíö_|1:::888++ëÆÜ ¡7&$$pcÑ?þx̘1IIIÛ¶mãÏáúúúòòòÂÂÂÂÂÂfÏžÝ××ÇŸðæ›o&%%Ž;öôéÓb©úûû † ñÚk¯iª_ÑÔ|ÚÎ{òäÉáÇ¿þúë,ËŠ }õêÕ!C†tttp'÷÷÷GGG···óåèc¬Úˆ ÚÉV__ÿøã‡††0à‘Gikkã¯è"ën@ë©eI´DasË¥xê „èà>©ÝøïP(#--; A9îç‰'B“&MRPfUUBèÎ;ïä~r_ýµœë¦§§#„&Ož:vìØ… ^ºtI `¬¥çO#ô12¡b«e+„î–)´´´¤¤¤HœÐÚÚšœœÌó¾KXXØçŸÎ9r$22ò®»îZ½zõ©S§ªªªÚÚÚ °|ùrþü“'OVUUÙív„ЬY³ŠŠŠ®_¿^QQÁ=-²bÅŠË—/Ÿ;w®®®®±±Q¸ö¶¼¼üøñãÝÝÝ™™™yyyb©`9ŒF8pà±Ç+++[°`BHlèÈÈȬ¬¬²²2îü#GŽÜwß}ÑÑÑ| `íÈÈÈÈÏÏoooooo¿ãŽ; $Nf¸ÊŒÃmË’h‰ÂæÌËñÖ[oåää wN";¯P/Æ¡±è‡ëx¥KœÏ§ 4!ÔÛÛ+ÿZ|Jpp0BèæÍ›ÜϾ¾>„Ppp°œ¼çÏŸŸ>}úСCyÅŽ?^® 0'1!jiO úÓÿ`Õ}ɇ8U„D{ùŠu¤^i´¢‘á¼®kˆ‹‹ƒu ÀJÚÍ›7geeqÇÓ§Oß²e ˲III555\bkkkLL wŒº|ù2Ÿ711±´´ôÂ… ÂùªÅÅÅÕÕÕqÇgΜ‰‹‹ãOèììäŽ{zz¬V«X*}ÜFššO»ÂBëÖ­>|ø×_Í'º5t}}}BBB?˲Ï?ÿüÞ½{…å@‹ÖG¶žžžèèhþŠ.xJwÛ²$Z¢°9 KûòË/'NœÈÍO=õBtð ùjÇÂuÄâZ,„¿ªä›o¾ž#=çŸí 犽téRjjêêÕ«¹DO†fYö˜0aÂÑ£GY#Lƒ[¢lQQQ¸yóf}}ý¯ýkþ*÷ÜsÏÿþïÿöôô477?õÔS|zDDÄ™3g„‚¹ÈÉøÔsrrÊÊÊ„érz¼Â'µcê:&àÜ¿P5±­#¤ÌLjR] Êhбöš?þ•+WZZZ¦NºhÑ"£Ä Èi1Õáp$$$$''ó¤p8«W¯æ6´¿ûî»÷íÛÇ¥»HþÞ{復¦Z­Ö´´4þQŽp÷û¼¼<áî÷ÂBÜÆúûûóóóo»í¶ÈÈÈ7ª\aÿÐzh¡Eɬ@½---£G^¹r%ëÙÐ,Ë~ðÁIIIœKèo › ‡¦‚î×ÛÛ›œœÌ-m`æÜ¹s£FBÕÕÕMž<¹¹¹Ùåü„„„òòòÛo¿];‘à5 3ÆBD) Q·˜ä cÁVØ F=¾½C¡½<˜çÓ8¿OwDUøê«¯&MšÊ0LHHHgg'ÿ/þ3~)))mmmâ¼---))): ªð…Pf_µ¼bÏž=111àc€ºÀ~ @'ú‡{õoÂ8‡ÿñôÕk„ð³Õ±±±â¼X}w¼¢O bÙ²eï¿ÿ¾Ì‡T äLì׸CÊ#Ma”‡§÷ÿùÖ–áT E"ˆ¾¾¾   àààÆÆÆ9sæÿµpáBn‡üüü™3gr‰BmgggÏŸ?¿¹¹¹»»;??_W¹Àw”u§¾æjnnþÙÏ~&}NNNNSSB „vR IDAT¨©©)''GT4aì:UÊÛFèæ`AÅÛ~q¾¢`21€\0YΠø©H#4]V³sçÎ¥K—†††>øàƒ<ð€ð_“&MºóÎ;GŒT$ÎûꫯŽ=:===%%…áH‰9r8tèPZZZPPPrròöíÛùô²²²äää   qãÆUWWs‰¼Ñ•å#þ Ã0,Ëp¹úúú²³³CBBbccׯ_ÏURR²xñb„ТE‹JJJTTM2‡1 óÔT ž¾af‹ˆ1ÜFêšÃðê Ø¯?Áç½ O`nü$##ãüùó6›­¾¾~Þ¼yBÇ[¶lY[[[OOÏÎ;È% O ,--½råÊÕ«W.\¨·è€Ð¬Y³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\bÄŸbáÿäé•W^éêêjll¬®®®¨¨æåzQèK%Ðg ¹˜§¦bpó X©$7ù‰¯‚ië,¸ÜBÛÔàÖÝá#‰FRALTªQݱr`Àrl”˜˜XZZzá—ŒÜqOOÕjåÓýÉ%&>>þìÙ³b±ùãáÇŸ?ž;>wîÿ¯ììl.6qáÂ…ììl‰ ä¨rDýøãÇŒ˜””´mÛ6>ã›o¾™””8vìØÓ§OóéþäÓßß_PP0dȈˆˆ×^{Mº»Ýþâ‹/FGGgeeݸqCºîàäɓÇýõ×].ýÍ7ߌ9Òétr?NgJJÊéÓ§=]!´qãÆ„„‹Å"¡î ¯¯////,,,,,löìÙ}}}ÒUó„vΆ¿o¸µ Ø:W¯^2dHGGwrttt{{{SSÓÓO?úÕ¯~ÕÔÔä§* Õ××?þøã¡¡¡ xä‘GÚÚÚÜfA¢¸€ô%š° Š‹åR<5a\Ö5…è°1$æË\vŽðP "ÀÊxÛeÿþýååå÷ÜsObbâ_ÿúW>=**Š;4hÝnW%—¯ŸbimmMNNæŽù„Ю]»B‰‰‰»víòz!jÀmŠD9«W¯>uêTUUU[[Û€–/_.]BèÀ=öXYYÙ‚ \.žžöùçŸs?9y×]wyº BèäÉ“UUUœzÒÇŠ+._¾|îܹºººÆÆÆ—_~Y±Š ÄXßàp± Ø:‘‘‘YYYeeeÜùG޹ï¾û¢££‘9V*k£ŒŒŒüü|n©;  @âda BúŠÍGØùb9Þzë-nµ‚DÖÄ%dÆ$sN‚ ¾6XM Gt‚‰ä8È )ÔWPíênf­„|3}üñDZ±±|.—Bܦ+ÎÅãu]C\\œÛu ò!ÈQ刊ç:·å$%%ÕÔÔpÇ­­­111Ò…¬[·nøðá_ýµ§«oÞ¼9++‹;ž>}ú–-[$®‚º|ù2Ÿ×“¸ƒ¸¸¸ºº:îøÌ™3qqqÒUó„±ý­±¾áÖ‚n­S__ŸÐßßϲìóÏ?¿wï^–Š•JøÛHHOOOtt´Û,žºnOW”h>Â6(,íË/¿œ8qâÍ›7YÏMX —ÀÔu|À¶1!˜Ä0™«û&UÀAí »vÒhZw3+–¼Úhúôéµµµ·nÝúðÃå=•å³bÅŠ)S¦455uuu-X°@|~AAAFFFGGG{{{FFݱV†´'OžÌÈÈ2dHBB÷ePV†æ•åc±Xl6›Xf·?­V«Åb±X,èû]?% IIIY±b…§K³,{õêÕððð+W®tvvFDDtuuI\ÅE*i X,»ÝÎÛl6OÓ6¯Ždlk¬o¸µ 'ëL›6m÷î݇#55•_r/]¾ðl[4æ6:qâÄĉCBB89=5‰XƒÛŸ¾6ŸK—.;¶¹¹™ûéÉI¼VGxޱœ0p|ðÉަÃðºP£I·Ð];iŒû†ãÕFï½÷^jjªÕjMKK;|ø0ŸË¥—e¹Äô÷÷çççßvÛm‘‘‘7nŸßÓÓóÌ3Ï:tÍš5Þjì Y^*_Z<ס&$$¸}ËÚS!MMM£FZ·n§«³,;mÚ´ÒÒÒ7Θ1Cú*žjáVqqqçÎãŽÏž=;|øpéªy“þÖßpkAOÖ©¬¬?~ü_|ñÜsÏÉ©‘Ë…°mјÛ(>>~Ïž=]]]N§óÚµkü™V«µ··—;îììô5ÖàSó¹yóæÄ‰?Χ{rùøä°_×¶z­ÿïMø _ ºßT$>Ñš2}úô3gÎØl¶ýë_S¦Lá]úUá`Ο\bÜ~ŠExþ AƒvïÞÝÛÛÛÖÖ–™™¯¸¦t••õí·ßö÷÷;N‡Ã¡i.1ÙÙÙóçÏonnîîîÎÏÏ—>yîܹ³gÏ>þ¼Ýn¯­­1c†t!ñññÇŽÛ±cÇš5k<•™››ûÖ[oíØ±#77Wú*.Hk ++«  €[>“ŸŸŸ••åUb¬o wôdñãLJ„„,_¾üÙgŸõçŠÄa¬úúú‚‚‚‚ƒƒç̙ç§§§¯_¿¾··÷Ò¥KsçÎåÓ#""Ξ=+G<ùÍgîܹ3gÎüùÏ.L‘Ó„Uߨ@=à$X!Óª[âîÂØªÑªUÖªyÊ%]š²\ 0¤ê\>à'hþüùW®\iii™:uê¢E‹|ÍN–¼J‹ù:áO‡Ã±zõjn×ú»ï¾{ß¾}r iii=zôÊ•+Ý àp8’““ùRxºŠ‹TÒn¤Ÿ——'ÜHßmÕ<¡©³aîn-èÉ:,Ë~ðÁIII¼åƒs‹ÆÜF9r¤Õj1bÄÖ­[ù3«ªªÆŽkµZÞxã >½¤¤$44ÔSÉÊšxâ/á$2‘ï!F,ðèð9@>2Í¡®Õ([Î FøH\ç:RܾW{oPŸ\>‘““S\\œ˜˜xñâÅW^yEb~­ÍJ±ÛP&6¯÷‘)Ò–-[V®\ÙÛÛûË_þrÛ¶mܨק‹^wù'0 DSóQæ[·n½téÒªU«|͈³p–bä«a˜áÒhp†Õ÷5 úÞ›p‹0F ¡ž:t(---(((99yûöí|zYYYrrrPPиq㪫«¹DÞ4Êr‰ihhÈÌÌËÚµkcbbBBBrssoݺť—””,^¼!´hÑ¢’’Õ´šáéa”W^xá…¶¶¶ëׯ¿ûî»>À“k×®mÞ¼ù…^0ZÀ\°°_‰0:¢ÿåc¬¨‡D(4ðnÐ9x„Ø~õº¢¢¢ººº¡¡¡¥¥¥°°Ogðø¹É݆Lk#†ÀgŒøËðqŽáøŠÖþFo0 µ`Á‚¸¸8—F7jjlD¾º‘ïP`î÷êB±³ªŽ\‚‘±ÐÀÿ"ç*T¢ÅiíÍäÔ+))©  à‰'žHLLfìì쌊ŠBõöö†‡‡Ûl6$xKBY.iz{{“““¹¥ Ü;wnÔ¨Q¡ºººÉ“'777#Á;.\(,,4ð }.ø‰9mDh­ €ÎVð×þR†O gdŽÃpÃ$^å)Ê@}ÅebZýHû¿Ÿ­C¨Uê5é =#÷f^«VYYY\\|âĉàààM›6eff"Qt€ÿÉ(Ë%櫯¾Z¶lYUUUOOw¦Óéäìv»ÅbAÙíöàà`.láR²?÷ÓFÉ‚âÖí¢ëK´ðæD7“™Ù7H©;)rR€Ï‹`¼‚'0ßS†Iô¦]¬:7øüz:t(77·¥¥ù5P–‹'!!áw¿ûÝÃ?~ýúõððp>‹p]Ã>ØÔÔ¤QÅýV·¡ Sõ¨¤Wq@¬AH©;)rR€UÃ~ x!|ÃÇ$ïÉ«ˆË&t¿~¢zíH)ª ì©x~õ!´páBn‡üüü™3g*¾`rÌÓPpûÀç­o@zÎ-MëMàMk#Qæ$NhiFB”A\"Æ £Ò+àáR(u˜'ne?þø“O>òâ‹/¾óÎ;šæ³sçÎ¥K—†††>øàƒ<ð€ð_“&MºóÎ;GŒT¤ø:ž‰9tߌ8(»}Pl)j0ÊF¦ò B+K¨ØD L·°_FPv·ÆŠUê¶ ({…„b-©…*¢¸O#®Rþßae/àÅÝ,eU£¬:Tb”Lå„V–P±‰@±n† ñ‘}ý¡yhÅ”øÕb|û…@ƒvPìHè­}}wZ-E ºœy|ƒÜvméŒ?.Á²,©þDä¶j" U½=©°·•óÂešÑM‰ÖÔ˜ÔKÜX$Dòs]ƒÎUÆDÀhêuiª‹Z‡ ¤ƒƒ]pAS(¨ UÀ ÿõ ïP 4  RÉ|+ÖÎ¥ixª8• ÑM‡×4ukK']~™À]7ð±>’¨5U£¦"†£B ök0šê‚3¤ëÙmk—¹H  ꢑIwQOÐZ/·è_YS©—&H_âk—3IT04†"ù ÔpA-ÂæóÃD=!]ۊǦn_`#W8 EÏIºz‚Öz¹ÅÊšJÔAbÄÁlž÷MÁ\ù˜‹':já ºk§ª+ b FBÊ‘Ðõ/.¢m ” Lù$…??ÑâF‹º…Öz¹`T5M¢^@pM!1*D ˜{5¾¹’ý„錊.@â7Hüv†ÒGÄ™ÀeÊM"þ¼.åg € ž“h§Ò ºµDwíÌ!}8?$•)€µ!¤¤Ë/3ÔQEÔUÃ0VµÊÌ´[Cn)4ho:ÖþhõZ2¶‰qê¥U·€W Î¥ÐÄOxò -š'ø¡2@oF@â Tx>…`fíÚµ111!!!¹¹¹·nÝr9¡²²2>>~Ó¦MÈCj³Ù/^¹aÃ=„ö –6 ¥Ÿ·ÅÍÙ¨AÅÕ tø§[(^±<À@ÀýÀXIÈ ðzEÿdÍaY6Àh¼¨¨¨¨®®nhhhii),,þëÀ=öXYYÙ‚ ÆâÏ›ìq[²×\â[›KFé]¼"}ßô$?¼d ì׸²páÂööööööüüü™3gòéñññÇŽÛ±cÇš5k\²û¯ìììùóç777wwwçççë$4ùHß#ý¹ƒús--jj\Æ ƒ-ž†e˜#ô‡e,€ùÓ9{Âm\€ïÉåå)¬àVB·•ÖÛµ(þZÒ§AÜÀ„ÇL¤·œG “&MºóÎ;GŒT$üW\\ÜÑ£GwïÞ]\\ì)û«¯¾:zôèôôô”””#Fh..™øz4 RäÄÅáÖL¨‰»'0@&é¢Q4AØiË,VNdA\¦Ûd×^.>.¼ÆT„0 ì×`ØÊO¨?ø„±Ê—¸«é,‰È’OÁ“p_sž%!™Vuà9f¬ ‹?“[_}^æµ”5%·…ëÙ*•.\òº½  :Œ?ž (ÛÄ´¾.¹J¦£:£@iØvÁ9€çP˜À=£ ®ëgÛ1<Äà‚ÿó8ˆ;Z±Àv¬±í®ÈA‡zé«‘ø: À¶—Ð .(܆nàù€FE|@Åf‚[ˆAˆŠÝÄ- rnIúpŠtù‰FgåS<4¤¸já“ÆLØK@pALè9&º\@7 &Ñ?² qi<[Ÿêµ`Æj´ @-t Y–å*h†å0ª Ô’qïçD¶!¸¾íP¬¢ <†¤eÀ¼Ý)]x-?*–µ  y.„-ðÜÉ@tS>Ý“TS]d*M쫤w\Ðh’TBzÛôÏh‚" <$†ÄhÝÿÃz@0(1Ńe4izê?úŒØL5Ü7UeÕ«ÒÄ'¨g.ÌK)ƒÄ¶èþѬ Bè1Ñ­» Ou€Fˆ¿¹Š?ðIX”iC±™§³,»lÙ²ÈÈÈÛn»í¥—^âýª««kÚ´i!!!ÑÑÑEEEÊ.*–Af¢þ˜m\(ž ^‘¯4áÂH„½Syê8Øbˆ„@(ÐdL#‰t^VÅ–)¡¦R¹Ï­0úˆ¡º ÉܪK¾&a˜£eT@YÏèOê¶SÞ¾}ûñãÇ¿ýöÛššš£GîØ±ƒKŸ7o^HHHssó™3gêëëwîÜ©øºžÈÉÉijjB555åää¨^¾H¿]ù„©*«ÂPp{“Æùž ÁlÁÙmù0°J…j&Á<² –Ó­T: £)âÑ…Ö—ƒ¸ A‰N@_¿ æÐ¡CiiiAAAÉÉÉÛ·oçÓËÊÊ’““ƒ‚‚ÆW]]Í%òT–K‚)S¦=z”;þÛßþ6uêT‰“ÿð‡?””” 6,..nÕªU»víâÒ?úè£ 6DFFFEE•––¾ýöÛ\ºÍf[¼xqtttddä† ¸D‡ÃñÒK/ :tРA3fÌèééá¥---MLL´Z­Â‰÷ß’’’Å‹#„-ZTRRâµ^ÚaÚq!Weâ:cve !ï:Ap@óÔ=*PMà‘YL¤å0OˆAˆËèBçëBÜàaYÖ5`ʬY³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\¬]»6??ßn·Ûl¶%K–lܸ‘KŠŠ JMM]³fÃáàkkkÇÏßsÏ=µµµÜ±KSSSÃÕÔÔTUUÕ××_¼x‘K\½zõ©S§ªªªÚÚÚ °|ùr>ãÉ“'«ªªìv;W K_Æ ä×p@ÅpƒþÁ0¾¹AËš¢ BdÖ7±9Ä2ã&¡n^]:î ¿H€!ñ$͆ðGÇräOJJ*((xâ‰'…;;;£¢¢B½½½ááá6› ¦(ÊrIóÌ3ÏŒ?Þét¶¶¶®[·ŽOw8µµµ .LOOçb‹Åf³ „œNgPPÝnG=õÔSáá᯽öšÓé\²dÉîÝ»9ÊËËo¿ýváå’““?úè£1cÆ „ÚÚÚÒÓÓ[[[9i/_¾ùä“°°°ùóç¿ñÆ---!«ÕzóæM«Õ*,000_¶àt:†q:µpQ¬×A¬AS@~"ç!˜tFʇà•@c$¬¦f€úh‚:" <bðŠËú%q3À0 ì×€)÷Þ{ïÁƒ;::¶mÛ6oÞ€3fÌ©S§¸ã¯¿þš[›€2dÈz{{[[[ããã'OžÌ¥6¬¾¾Þ¥ÀaÆ566Úív‡ÃÁ…ä‹j¬Wè0²ohhÈÌÌŒ¥Ý%1¾NK¤—Åb¸LTGê%Ã`Oï8àßIʬ,qõBf݈ABà3Bóälò&€?,ì×€-YYYß~ûm¿Óéä7DÐ(—åååW®\ÉÉÉ™7oÞ?ÿùÏýë_ÜUjjjìvûwß}—››ûôÓOs'Ïš5ëå—_nii¹|ùòŠ+øïAäåå577÷õõ—8wîÜÙ³gŸ?Þn·×ÖÖΘ1í`gÏžõ¿‚d‘‘‘‘ŸŸßÞÞÞÞÞ~Çwpéžöéàq»5€þÜVåä‚à‚ Àé@cô B ˆäh‚™§£‚|"‰1 à <^ãF ¨€t÷Š'äJÎ!Gþ÷Þ{/55Õjµ¦¥¥>|˜ÏèRŽË²\Lš4iÿþýÜñçŸþðó,»wïÞ´´4«Õ:|øð‚‚‚ÞÞ^în;†ˆˆˆˆˆˆåË—;N.}Û¶m±±±ƒ z衇ªªªøÂûûûóóóo»í¶ÈÈÈ7r‰‡cõêÕIIIwß}÷¾}ûÜJ[RRªÀ ´sݲ§§'::š;NLL,--½pá‚§“ãããÏž=«`¤7Oñ³Çöô_úº}@`n«yÂ×Þ’ú~Ï<§µ^†@)vió€`oHC ]~¢ÑNù:˜õ«¯¾Z¶lYUU÷)PæûXÜîÓ!ÄíÖî­ù1{VÑs 0‡9a`)>i˜Üd~>½¤Xi25C™<½î¡¿$”á²*Ä@Iä#±HGgIŸ`L~W3 ˜Œѱ†„„„ßýîw?üpxxøõë×ÃÃÃ].wèСÜÜ\nëM—ŒâO~h¸·ŸH)YÙ ãÁ‚öHÔÛËŸhÅjqÁœ‘·/ú" Ý;„¸YÀ~ fGÁk€Qôõõ766Ι3‡Ow»O‡Ð”n·ÆtCúEbŸ üFêÓE¡á€áÐhð§Ÿñº—>dj‰z…¸­>•5ÅeË$qÀS+€ñ žØŒÁ“T„î»—nè3FܹsçÒ¥KCCC|ðÁx€OüñÇŸ|òÉ_|ñwÞg|õÕWGžžž’’2bÄM…Æ*6 °&þd#ˆ&(F¦ºÌ£·z ¾Öø@n¸G:è@n½¨aدÁH—Ÿh4R>Ø”Ç̪8êp?/§ð€þ˜¹I’ßú01“?tLª`82uhNu¹UŽ9U.kI ”D-`<ƒ n·7“#?XƒÖ˜SÞªµ´Ñ7þ0'æl’d¡¿ š .Yð Ä0‡Ö)!Ä G}é-P¶&«•,X Ê0|B.^:¨nÉ\0_%–e¹¥¤`><Ñ4® pi ² 1w§@Ô Î…uz#­± ýhC™f|ÊåémC–e—-[yÛm·½ôÒK¼_uuuM›6-$$$::º¨¨HxjIê"¼WaÒ‘ª.‰°@hn .þ´)·Û%È|KÙäû&ÈG¦nA.¸Õhs¨¿×ÃæúÃ0 |‡‚6”uâ¾ær{7ݾ}ûñãÇ¿ýöÛššš£GîØ±ƒKŸ7o^HHHssó™3gêëëwîÜ©@B1999MMM¡¦¦¦œœUÊù˜*(NýÄœ€51ÁSÑ‘©dЧ'Ü>…-o)ºçÞžÜâZ@¢BÍÖg:t(---(((99yûöí|zYYYrrrPPиq㪫«¹DÞšÊr¹0eÊ”£GrÇûÛߦN*!çþð‡’’’aÆÅÅÅ­Zµj×®]\úG}´aÆÈÈȨ¨¨ÒÒÒ·ß~Û%ceee||ü¦M›B‡ã¥—^:tè Aƒf̘ÑÓÓÓÕÕÝÙÙÉl³Ù†ÚÑÑQRR²xñb„ТE‹JJJ¼(TÅT7 ?v&‚ ‡7DôG¦ÂA·^q«@ÐјêvqMaYÖ5À¬Y³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\.¬]»6??ßn·Ûl¶%K–lܸ‘KŠŠ JMM]³fÃáàkkkÇÏßsÏ=µµµÜ±Kë­©©þxð`¬¬««+..îŽ;î9rä!CøBÊÊÊrrrø@BèÒ¥KéééV«Õb±ÄÆÆ¶··#„FŒñ³ŸýlïÞ½N§óèÑ£¿üå/B»víJHH@%&&Ê 4„².L»ŽvÇpÁÌ÷3×Ü.iæÓ“‹T$Ö&xÕ§Ä’hJþ tÀ­zA™f@h_—ÆÅ¿²X&ž\]þ]ÀäÀ~ pï½÷>~òäÉ|öcÇŽíÝ»wýúõ|ʰaÃív»Ãá`Y–/|éÒ¥¯¿þú—_~yÿý÷8?Ÿ O0pß „PCCCffæàÁƒøè£rA‰ò]€Ý18¨_µ!_¦€ÎG‡0’ƒêщiØB2M#Ó ¦B™Ë¹U2¨Ô„x 7˜¯qµ.DªYد²²²¾ýöÛþþ~§ÓÉoŽ Q.ÊË˯\¹’““3oÞ¼þóŸÿú׿¸’kjjìvûwß}—››ûôÓOs'Ïš5ëå—_nii¹|ùòŠ+ø§ßyyyÍÍÍ}}},***,,äË?vìØŽ;Ö¬YÃ¥Ì;wöìÙçÏŸ·Ûíµµµ3fÌàÒDz|ùògŸ}VY] ÇÀ}7BùùùííííííwÜqGAAtùbÌà €É€ zF¤ÅàËTXƒÐ¹ó—i#+xÅWÃAˆ#n0í°P:èà¿ZèQ¬ôOÈ•œÇ§*¼÷Þ{©©©V«5--íðáÃ| .º(Ëå¤I“öïßÏþùç?ü0˲{÷îMKK³Z­Ã‡/((èííåNà¶cˆˆˆˆˆˆX¾|¹ÓéäÒ·mÛ;hР‡z¨ªªJ|õ–––Ñ£G¯\¹’eY‡Ã±zõꤤ¤ÀÀÀ»ï¾{ß¾}üù|ðARR_¬24r9Å&&&–––^¸pÁ%cgg'wÜÓÓcµZùtrIÓÓÓ-Q¾˜ììì‹/"„.\¸-q&ÍÓZW8½Qlkj o c!B5¯C™¨A¾ê@Û€W azE-Q£[{CUП­[·^ºtiÕªUþ¢æ½–\YYY\\|âĉàààM›6eff"ÑÎ:üOþ@Y.1_}õÕ²e˪ªªzzzàå·åKÔÑ«ê(öm­«&G½XA±­iBâ°œŒXÙןç<8TC•ÊAݵ2Hœ–0Ä«á<½„¢¡Lù€ÛÈDñÍ×%;ѺeökÈàÚµk›7o~á…ŒD9Æî»ñôÓO¿ð ÍÍÍN§óÚµk| ò©|3·; è‡[÷õõõegg‡„„ÄÆÆ®_¿žO÷ºÅ†Íf[¼xqtttddä† 4Á® „ Ìi2+&o:h¡-ÅÏñ.¼ aþoI€xêÐ|}É‚Ð{ û5žct_vºÁ0LTTÔ‚ âââü,7a6pß „P___PPPpppccãœ9sT/ðö‡ï4!„^yå•®®®ÆÆÆêêꊊ þL¯[lÕÔÔTUUÕ××so¾&ǧNOØùk´ŒÖh‚H‘ùþÕ™%×váVóbüAº—ÆgÊ€'ÒA¯Ú#Z½VûcgŒƒ­J±Ì'üñ'Ÿ|ò»ï¾ûñüÎ;ïhšKÌÎ;-Z4mÚ´„„„¥K—îÝ»WÝòÕÙ³gϱcÇ¢££B7nüðùôAƒ]ºt©­­-11ñ÷¿ÿ½8ãÿøÇòòrî‹°¥¥¥zÊ ` ˲ºfü)‡ŽÞ^ qãµ¼… *Ó§(ƒð'ð ¢'º¸!l}BŠݶPân" CÚëÁ„ª[ 5!­µ Öä U:ÔË¥C¶Z­·nݲX,!»ÝÈzÞÂCˆÕj½yó¦ÕjÕNT¡ÌˆFsÓŠÄhF<šôdV?Ç&ôM׉h2“R;Š‘6ð9Ýø˜bä÷ºd)™ýð$&&¦±±‘;æŒ-6† V__¯‹ŒaxzZ"½âÚ§×o:¨YùcB°,n@ Ðhìš"_½dMÛYدÁXX,wm ž¾âcMsµ²ÃSnˆˆˆ8{ö,ÿsúôé‹-êìììèè(((àÓÝn±!4Svvöüùó›››»»»óóóu“ÐO±iÄÙý—æœ^Q eöõ|ÄóU]Ä¡³Æ´+À µÜI™KèsuµÐÓ.>iÉÿTA­ú82PW8@YupÃlêõóq<­ÃèCY²dÉøñãyw-..OLLLKK›0aB`` —Îm±òâ‹/ºÝbãÕW_=ztzzzJJʈ#4•Ð íÆþƒ³lÆ"¿ëº@™Bˆ®ÑÂÓ ˜Æôѹ6REr†ý0€755 ÕK™súÅu7¼jgΜùÅ/~ᛆkÆ xºÁû¯v¯C™—ÐNB¢‘y÷ÁG{jùƒ*à£?1°"n/­l‰ÛtâlA`ÿÑZ‡ÊÊÇDzªHÂÀ~ 8À×…8CàÄq¢Y°`ÁÕ«W[[[—.]*Þ á Z‹GjåI6ª#¡^­íë+^¯®§5)p*ÃíëI~–C¢-hÂp¿¢í[±\®k¬eUÑ û5`‚?÷À†XlvmÐx¾­©©©£GþÑ~¶råJ£ÅôCÇ@3Z€CƒŽ!ü‡êèŒt•ÉU>ígâ,›˜­¾FzÖ 7•dV–aX×€$V—˜¢þ˜m•Š©úVÐL”ŠU K”ÿ_ÌÁçQ¶NE´}•­-h„~e8¾:¶Ùl$_?æÒ )¨ø@ÉT`¥7“t:¦ª&ÝuThF](nPW͉Fa%ènúÄM=1sݵtk òŸÞË9>äTܤª!ˆ+g¦¾ë¡¾‚<ŠgÔŒ¢oý(ËekPêõD’u4Cõõ­â#‰Q€´´j8^M`ry­~>+âäc’W H4±à¦1ºš¼oõe.!‘K £Òo±Å Šî.A Á0q*°/ÂÆ4~…ÒŽ 6òªدwX@6FÛÊ ¬ Rs÷5|G P¦7Ý´““ÓÔÔ„jjjÊÉÉÑç¢2Aƒ¢¾‚H²Žf¨¾þà£U|$1 Ѐ€V Ç« Ln#éê8Âvb b„îJbsâÏ·|¨çСCiiiAAAÉÉÉÛ·oçÓËÊÊ’““ƒ‚‚ÆW]]Í%òjT–Ë.]h¾¾¾ìììØØØõë×{½œ %%%‹/F-Z´¨¤¤D‘>0Õ«(,¥öºMƒIìkÆ:ØW­ \À¯°Â­cƒx<5|–ea]è8â@"âº<³fÍ***º~ýzEEEee%Ÿ^^^~üøñîîîÌÌ̼¼>~Ó¦Mç „l6ÛâÅ‹£££###7lØ ¢l<Ô¼Ô-]M£nwu¹yóæìÙ³ÃÃÃÃÃÃçÌ™sóæM.]¼W‹?A9Ž—^zièСƒ š1cFOOOWWWtttgg'w²Íf:thGG‡×í`´ö+ýJëÉ¡†@5pC0|ë†aÖ®]’››{ëÖ->½´´411Ñjµr?OŸ>=jÔ(¾.,ËŽ9’ï¯8tpHµà[#¹m¼ ™™™ƒ8pà£>ÚÞÞŽ¾Hp’ˆûqá†4|دè ƒ••õí·ßö÷÷;N‡Ã¡i.1gÏžåNŸ>}Ñ¢Eª_Àñþxì±ÇÊÊÊ,Xà鎢¢¢šššªªªúúú‹/ê#6‰» Ìí®.+V¬¸|ùò¹sçêêê_~ùe.]¼W‹?A­^½úÔ©SUUUmmm X¾|ydddVVVYYwþ‘#Gî»ï¾èèh¯ÛÁ€_ùÀ™ŠŠŠêêꆆ†–––ÂÂB>ýäÉ“UUUv»û™žžöùçŸs?9y×]w ‹‡äqÛx322òóóÛÛÛÛÛÛï¸ãnPçÒ‹ûqá†é™%r%­!ºiãŒW­¾÷Þ{©©©V«5--íðáÃ|.—B\”åSRRÊŸÐÓÓóÌ3Ï:tÍš5Ü;ž.çàl~¢‘Å.´nݺáÇýõמÎöìYÕ¥rçñZíêˆêììäŽ{zz¬V+wWWWÇŸ9s&..Ž;NLL,--½pá‚K!.?Å~’””TSS÷¶¶ÆÄİ,[__ŸÐßßϲìóÏ?¿wï^O—¢ƒ_éìTÚµ_Ò ÁRÑÀÕ!„Î;ÇŸ={vøðá|úåË—…§±,»y󿬬,.eúôé[¶lq)M‡T M'Ñ^oOOOtt4/ Ÿî¶pÁ†»+{ÿFÆÕ!WŸÿþ÷¿GŒ¡Qáäªt‹5¤¤¤¬X±Bâ!‹Åf³©.• ¤;ù55¸ýi±Xìv;wl³ÙøÄÉ“'322† ’ðþûï{*Dì'V«Õb±X,–€€ôýÂ]–e§M›¶{÷n‡Ã‘ššÚ××çéBtð+jb ¤‚%¿þªC¹ígÜöKW¯^ ¿råJgggDDDWW—Kiú8¤ZhkpÛxOœ81qâÄî¢|Û à©bHÃ×PY ´nu!N™óçÏ¿råJKKËÔ©S-Z¤ÑUˆS nèkhjj5jÔºuë<#{zEf«¬!..ÎíóFž?þ866ÖS!b?IHHhjj PYY9~üø/¾øâ¹çž“¸„X× ¿XÒ ÁÞÀÕ¡®kˆçÓ]Nã¦M›VZZºqãÆ3fˆKƒu b„7>>~Ïž=]]]N§óÚµküu…xê„Õða¿ ¾ÁÃö ªÀb³Ó#Âíi©©©£GþÑ~¶råJ?Kó”ὕiqÙ¿}ÿÔ;v¬Y³Æí9BÓgggÏŸ?¿¹¹¹»»;??_™ICçÏÊÊ*((èèèhooÏÏÏÏÊÊâÓÅ{µÈñ“¹sçΞ=ûüùóv»½¶¶vÆŒ\úøñãCBB–/_þì³ÏJ\üJ`s.\Èí ŸŸ?sæLé“sssßzë­;väæær)ànqÛxûúú‚‚‚‚ƒƒçÌ™ã6£§þ =kÞÐr%!º¥ãhÒPˆŸh§@—ý;øƒ–––Ñ£G¯\¹Râ–eûûûóóóo»í¶ÈÈÈ7j!!K²ÿÈ”\Ó "ÏûúúòòòÂÂÂÂÂÂòòò¸Eõ¬‡½Zäø‰ÃáX½zuRRR``àÝwß½oß>þ¢|ðARR’Ó锸„Î~¥§Siw- Á’ÜÀ…½!„Ö®]Ë}õ ''‡ïg<õK‡#!!!99™÷RýR-4W»m¼9r¤Õj1bÄÖ­[ÝÞµ=õ†7|„‘Ÿð…‡i cwJ§ è|x@þcrZ}ù=*¡”ÏÖ­[/]º´jÕ*£ùzêûbh„“~È‚½qÛ-…1À Zf@_` ¥«ƒ}UøÉuHbõ}êKI¬ |®]»öÓŸþ´¼¼<..ÎhYþƒ c xa£â Bok@ØÛÈ(Äl5Nt‚eY®ñ›ùö  œ&AD †@#Àó†±X,›7oÆm~k6À`Ž•Ä[& sÀW Ü .fV#d€þ€çó˜¶÷à 0`àx€L†ïP€YøÏ6->~n"| ÍXI Væ<|%€ÄY‡p£K|ÂäSeU0­aº˜ð| ˲°®L‡i§Ê*bBB ”yÿ¾jowAç77u³¯5­“ȇhûØbÔ}ž6Ú³gOLLŒvW q‰k1+L8UVSé D ú8FNnÏ¡©QàS<Ç©ºéChžöÅ碀2ò+1Ú‰ÕËX-[¶ìý÷ß—ÿq%Ÿ€ýÀ¼˜jª¬?ø€0¥jV  ˜£Ì@êš5''§©© !ÔÔÔ”““£bÉÆ‚ƒóã`_C Õ©\ ¾&±MáWžÐM cÛX577ÿìg?“>Gý°˜èTÊî”ÊJa…Ý~üñÇcÆŒ LJJÚ¶mŸñÍ7ßLJJ ;vìéÓ§ùtr¹O($pòäÉáÇ¿þúëâsšššž~úi„Я~õ«¦¦&?«o8þ‰¹}%²ôõõååå………………Íž=»¯¯ÏÓuå8 ˲v»ýÅ_ŒŽŽÎÊʺqãÆÕ«W‡ ÒÑÑÁÜßßÝÞÞî¶jx:ö娷MàïWb’.ª¿¿¿  `È!¯½öòÿýßÿ :tРAÿó?ÿsóæM>}ãÆ ‹…ûùÍ7ߌ9Òétr'8Δ””Ó§O{*¡¾¾þñÇ 0`À#<ÒÖÖ&.Ùÿ;æ6r[Ž[͸¨Â“qýiø°®L ß/ÐúX^„=,C âªú3kÖ¬¢¢¢ëׯWTTTVVòéåååÇïîîÎÌÌÌËËS%— ¡Œ0ýÀ=öXYYÙ‚ ÜžÃ|ÿy]…uƪ` }%²¬X±âòåËçΫ««kll|ùå—=]WŽ“ „V¯^}êÔ©ªªª¶¶¶,_¾<222++«¬¬Œ;ÿÈ‘#÷Ýw_tt´§ªêT†Û-hÄX¿»tQEEE555UUUõõõ/^äO®¨¨¨®®nhhhii),,äÓOžü믿ötNvv67š¼páBvv¶DÕ0w3ÿöu›%..®®®Ž;>sæL\\œôu]~Š$))©¦¦†;nmm‰‰aY¶¾¾>!!¡¿¿ŸeÙçŸ~ïÞ½ž.§Sa_“Ø‚&ð÷+·.$QT||üÙ³gÅÕ‡ÿÙÔÔ4jÔ¨uëÖy:G>8{µZ²g_î ..Nú¡ôuÅN’àößÊÊÊñãÇñÅÏ=÷œÄ%䣳Sáo_óØ‚|Ò›!~åÉ…<%g]C||¼t!Ó¦M+--ݸqãŒ3¤Kˆß³gOWW—Óé¼víš§ùyç¼í»-GŽf<W>bÍÀ~ ü¾›€W11o@˜›¬¬¬o¿ý¶¿¿ßét:Ms‰‰ˆˆ8{ö¬0%>>þرc;vìX³f§sHGÏÞÏXûJ”_PPÐÑÑÑÞÞžŸŸŸ••%q]9N2wîÜÙ³gŸ?Þn·×ÖÖΘ1ƒK?~|HHÈòåËŸ}öY}ª¦3†ÛlA%Æú•'òDvvöüùó›››»»»óóóùô… r{äççÏœ9SºÜÜÜ·ÞzkÇŽ¹¹¹Ò%ôõõ766Ι3ÇSZß¹Œµ‘ÛrähÆWãÊŸЅQ+9ÑýM€!¨Ç«}ß{ï½ÔÔT«Õš––vøða>—K!.Êr‰))) ŸÙÒÒ2zôè•+WŠÏ‘¶¾­¢`˜Û×Sáw(òòòøïP¸½®'q8«W¯æöQ¿ûî»÷íÛÇ_ôƒ>HJJâ7™w{ ùèìT¤Ø× ¶ 9z3Ö¯<¹§¢úûûóóóo»í¶ÈÈÈ7òÿ]»v-÷‰œœ¾“ñTˆÃáHHHHNNæýÓS 9r¤Õj1bÄÖ­[=ÕÈÏ;æmßm9r4#Ñ?ÈÄE3!†ý¡Öˆ€{æ@¢ä@ ð8 ¯£3›Ϻ«+žuÄŠ­[·^ºtiÕªUª”¦³Â)³/Ѷ “èÛÀØ_—?¦ÞL pq`¦xúc1É€Ãä˜ÙÊÖ]õNÃ:bŵk×~úÓŸ–——ÇÅÅ©R ÄCº-¨Á$zƒX­ˆØjœ0` ˲ü×t¡?Õ“Œ6®•áÐÄÄ›h*†®EtÕ´ö•Ã0‹eóæÍäNn©±/¶´Ã~¨iûêâ¶á[ ב  }€pƒ!ÀÆœ€þ@ç UÖ C‘ÈÅOe‚-·hçþ— N˹†ïP Å6wa˜뼺b6øöe´ úáíôoBû‚QNöƒaÕ¶ï‚§†@âüA¸Ñ%: ÜåÅXIè  ?Ðî@uX–…u È ZÓbªÇ#Ø>óÔzµ°IìkÆ:ØW¶ 2g6a€¶Ï#ÑðH\#@âZ  7hd‚–…aõœaX} ÀG«øHb º1*áµÃÏpŒE¢ú°_¾á-€@`†–…¡Ÿë¦m3Ø×0q*°/ÂÆ€v(³¬¦Û@æää455!„šššrrrü¼ í{mø°_¾«ºÀø à »eáìçúˆD·} +§2¹}±² ŸC‡¥¥¥%''oß¾O/++KNN 7n\uu5—È[YY.1 ì]»6&&&$$$77÷Ö­[|ziiibb¢Õjå~ž>}zÔ¨Q¼w±,;räÈêêê’’’Å‹#„-ZTRR¢–Z|ÂÌmßkÇýP‚™;Vuñ „Ö–…§Ÿëÿb9­ö5 Ê´öÅЀLfÍšUTTtýúõŠŠŠÊÊJ>½¼¼üøñãÝÝÝ™™™yyyªärKEEEuuuCCCKKKaa!Ÿ~òäɪª*»Ýήãß> IDATýLOO ûüóϹŸGމŒŒ¼ë®»Ð÷îgl£3gÛ—ÙðûØxp†~ ÜB™càY¥ÂS!d³q–M ÌV_­ÑyŽ“””TPPðÄO$&& eèì쌊ŠBõöö†‡‡Ûl6.LY.1 Ü;wnÔ¨Q¡ºººÉ“'777sé—/_6l˲o¼ñÆ—_~ù§?ý !”••5qâÄßüæ7999ÅÅʼn‰‰.\(,,ܵk—Zr‘y0©Ú‚Ü@ƒ„ùqb €¦ê[Õº2ÀÂg#äz¶µ0¼×ÂV3øC„êˆÒLRMýÑslPYYY\\|âĉàààM›6eff"Qt€ÿÉ(Ë%†a»Ýn±XBv»=88Ømx‚ûÙÕÕ5bĈúúz–eGÕÐÐár-¶Ž…Oud ¿Ý@Г( €Wȵ`.9&­s-áqê"N`ùP\50¤ƒ:tèPnnnKK ò%j ,—ðẆ|ÛèÑSQ¿þõ¯'L˜À²leeå»ï¾«Zå}AŽuhm ÊêeÕFL˲üûr4õªÚÉTÀá·»I| Oǧõ‘n_CÀÁp2¡Þ¾ÙðDVVÖ+¯¼2jÔ(§Óép84Íå–… ¾ýöÛ¡üüü™3gJŸœ››»dÉ„Pii©?ÕºÛ¾¯ ßJbOÏ@7Èz0À'„£RÀÖ½1T#‰ö5lJ*íK¨-1?þø“O>ùÝwßýøÇ?~çw4Íå–I“&Ýyç7nܘ6mZQQ‘ôÉ=ôеk×,ËäÉ“ý¹¨>Ð×ö4|د5—)¼*ôÁëøÆœã0Ç<݉óPóXG†±’¨2²¤ó«¤@ Y‰ –eaà €ÊÀŒÚ- @E ¸à+Ð ú£â{÷tЬ:Òg€ýPXÝ æ9€?@dÁ'$zP€þ¸í{¡C¦د­€Ù5¨ð.(Æmsƒad½n€Eû5 ü¼$v2*@\К¶R€ýÐ3O¶Í\w@ˆ,h‡P·üû\T i˜üQ V€-û5 -¦Ý¾&9ŒÔ ¡˜mì„!°8N1 ÃX–ú1m¸Á$Ç”@dàÉäbæ±>Às#?õ ¦ê¯a’c* ¸€` hÂTc'Üåûhý0I¯ ºÙ,ÎÈ\ì 6€L2v P»*¹&Æñ@.Ô÷ÝÐAÑŒ}P?v P¸*À~ è ÝïÂBtóU*«@(±‚ÞLK\>fd $t1Œ¾˜1}52 Y  ·Ö @0ÖЭÀÈàirNS]¨‚ ãb\0%ô‹(µîêBäfX>Ô@ÇŽZÐ DÌ<•À<@ÄA]஡: Ã-¦†ïÙɽeB 7˜">ý!úK¸À¨„eº-Ü >|xêÔ©ÑÑѱ±±O>ùägŸ}¦Ãuå¨Úslܸñ±Ç“>ç¿øEii©Ä _|ñÅÌ™3‡:`À€´´´7ÞxÃ¥?©««ËÈÈ}J>–––.\¸½üÂ… KJJÄÌ¥(J£Ñ|üñÇ™™™|k'† Fž˜à"2M=yòdoooŸY³f]¼x±¢¢bÆŒ¾¾¾¾¾¾‰‰‰L32¶²ÑÆÆWÚµk×âããýýý===ÕjuAA™uìØ±èèhOOO…B±oß>v4M»¹¹1Uã+A dëV øH$‡|Ô‡‰ÞÖQ€õ‘Ó­1ÍQât8&¿ºl ˜Çé·óU0 àáÇ|ssssÃÂÂΞ=«ÓéjkkÃÂÂòòò˜YE…‡‡×ÕÕétººº:¥RyäÈš¦KKKãââØ…¤¥¥-_¾œÉ2~üøšš½^O a&¾ùæ•JU__¯ÓéêëëÃÃÃ)ÖS´‘‘‘gΜÑét---K—.MHH0È.`Ò¤Iß}÷ùXTT\QQ¡Õjoܸ±páB2ëܹs111& düéOJNN&ýüü~ùåöOž<4h˜¹4M/Y²äóÏ?S©¢¢¢€€€¸¸¸ 6äææþøãì¹ìF›8qbuuµV«mmm]±bÅСC£¢¢Ø)‰‰‰ÌÂÂ[™¯ñ U ”6vìØŒŒŒ'Ož0[yÞ¼yLú‰'† rôèQ­V{þüy•JUXXÈ-Y ¾t«T Äp¶oGpöh²ó𠜘ëlDgª©T*íîîæ›«V«KJJÈÇâââÉ“'3ÓE•••‘Y¥¥¥Ó¦M#¹¾ÿþ{fº»»;88ø‡~`²444°Ë'm8uêÔòòr’^VVƾl¾zõ*™¥Ñh||| ² ö2===îîîbæ–——Ož<¹§§‡ùh²R………ùË_þõ_ÿuĈ³gÏ~ðàA^Š¢._¾L²<~ü˜¢¨+W®°SH3 oe¾Æ7@V-Pš\.onnææ‹‹c.444DFFrK(/Ý*U‘p0Ø#{~BA‚»Ûbî6GÛ:{Þ‹ûƒÓÔwøðá×®] 0:×ËËK£Ñ',ººº† Æ<; ‘HºººØ³ººº(Šúûßÿ~ôèÑPuðàÁŒŒŒÓ§O3Y˜klR>yÈŸ»"æÂY¦··—}0!¹Ä¼#@*•jµZ©TÊ|ôöönmmõööæ.ÙÛÛëééÙÝÝ-\`AAÁG}TUU¥T*Iâ AƒîÞ½ëççGR~ùå—'Ož˜œ;f̘C‡EFFÔNŒîîî>øàÇ,**¢þ¹e¸Æ×ŒÂ[™/—1¥­]»6//oîܹS¦L™5kVhh(³ŒÓsft†»F¾øÒ­R5 ïk{DŽKö¶³c Á\æ¾mmëœæÂ[<»=j™kêÔ©ÕÕÕÖ-3))éÒ¥K÷îÝ£(j×®]«V­"³Ø âõ¥‘™çÄ,ÙÑÑ1hÐ áeöïßÿᇖ——³(ŠR©T×®]c§\¿~]¥R‰™{óæÍ¨¨(öaSü©¯‡‡Gjjjee%w·˚ъ=|ÇŽ¥¥¥ …¢´´tÒ¤IiiiLzooo{{;û{ 4ˆ,/]˜£ï¼vE"‘¸Ù:ãìðÄÝ~"±gx•#¸à@ÃZøãÿ¸eË­Vkþé§ŸR5aÂöHDuuõ¯ýkò‘¹[ÌŠŠŠb¦%ɺuë222¾ûî»;wѨÈÈHö+^È&æ‡h…Bqûömò1::šïRüøã …B ¨ôôô¿þõ¯UUU¿úÕ¯ f½òÊ+ùùùì”üüüW^yEÌ\îARàh¹jÕ*ƒÌÙÒÒ2tèP°MÞÊÖ--&&æƒ>8xðà÷ß¿uëV&‘yèFdùFKàK·nÕ@³ž»0ös˜²ŸHì ¾_À6½´ÀúõëÕjuqqq[[ÛÓ§Oëëëß|óM¦F¹¹¹J¥²¶¶V¯××ÕÕ) ö«õ˜·9êõúúúz¥RyøðaRfww·Z­ž;wîæÍ›I"·•HJAAADDDcc£^¯ollŒˆˆ X—Ü|¹BBBªªªz{{j÷‡?üá‹/¾ ‹‹‹CCC+++u:]SSÓ¢E‹È¬;wþÛ¿ý_9[·nU©T?ýô“ѹ> ܹsg[[[[[Û®]»FE^º)<—¯v|s'MštüøñŽŽŽ§OŸž>}Z­V§¥¥äh4nŠðVž˜Òâã㫪ª:;;ÛÛÛ÷ìÙ3aÂ&ýäÉ“±±±555Z­¶££ãäÉ“ñññF×ÈW_ºUª"9ü×!8={8q·‡ì@ºíPRRòÊ+¯ 6L*•>÷Üs‰‰‰̬ݻw‡‡‡{xx¨Tª={ö,E1³¤R©B¡Ø»w¯A™_~ù¥L&#¯-¤M]ÝeffŽ=Z*•ªTªŒŒ ™Lf2W~~~pp0yدj3fÌ`§FGGËd²Ñ£G³Ã~þùçÙï§ä®”‹ýzÈëׯ¿úê«Ì”Œ¿ví;»ð\£µ3ª¦¦fÙ²eaaaR©ÔÏÏoÚ´iÙÙÙܼf5Ђ[YLx½½½nnn&Kc¶…§§§ŸŸ_||üõë×ɬS§NÍœ9ÓÇÇÇËË+..ŽýþNöùJ(¹Uñò•'x^ÀÕØö–l—½!œq+¸ ¶ À4á‚Maòù…´´´7näææZPøùóçßzë­«W¯ZÝ?ôôô(Š¢¢"òˆ‡QçÎKLL¼}û¶eo”pq=7n\kk«­›ÁûÀ1ó× ÚÕð¶è§OŸNOOOMMŸeñâÅMMM===.\X±bÅòåË­‰T*]»víúõë…Û¸qãÚµk1Ð`žžž¬¬¬éÓ§Û:°1×:‡G7ÀWþ®0Ѐ;ÀZúû—|“?››õ€«ÝÚ Ðì‰$00𫯾Š_àRSSoݺ”œœ¼~ýz77üHæÜÝÝ£¢¢òóóÇŽkëXÀ–œÿ4œÌ€]ÿ;å@F ÿØÏ¥5ÆlÎÍo‚ÿO†Àù ÌóN3Ѐg"`` Àu5éÀ‰„yk L&‹‰‰¹xñ"{ò×h‡ïîî~ÿý÷‡>dÈ;vô_´ÔÿµÎXÀá} àú{¸Áq$ p_l“8ú¨²²òÌ™3mmm ÉÉÉìYô?¿{ßÀ'Ÿ|rùòåsçÎݾ}û矠p\£žO˜ÿt·Ñ’âÀˆg"ÀN Ì} äNÖÖÖaÆQÕÕÕåïïßÝÝm°_$!!!•••¿úÕ¯ú/Nƒ˜)ì†à’0ÖLx¸Á²±;¿6Ààاk`¯ˆ›.°ïK¥R­V+•Jû/N6;?žô¼¯˜ÀÃì'·2º€½]à™ë5jÔíÛ·m€“ÃûÀáYñÝ ö0ˆ‰W9ôÝàÁƒoܸA>²w¥%K–¬ZµêþçÚÚÚÖ¬Yc‹èCYYÙk¯½6|øp‘#G&%%UTTX}-öpÔåû}¥V\¯µše ›·  `äÈ‘"4ù3€xöÙ…,cÅféWŽgÝÙýܺ•u¦¦cssÄ{p† lä˜Ð—šMÞ‰ÛÀ9ØÛ AëÖ­‹5z4øË_þ2nܸ¨¨(¥R©P(>6‡ðç?ÿyÆ +W®¼yófWWWQQ‘»»ûìÙ³m—€“mÛžÏðÁ‡6ú=åp6ç(-æô½šK Ÿ›ÅÞêÕOhšÆûÀy°Ç ØÇq@`2öß!o[§doc öÃ[¦¼¼üÃ?¬­­õòòb§oÛ¶í£>²UTIü·@,iîÂ}Ìe-nnnÏž=3úÇ Ì¶¡Ú?Gi±ˆÓ†7ºj~Þ÷ÂÞ×ÎCüó VŒ·-€ÃIOOß´i“Á@EQd !++K¥RÉd²ˆˆˆììl²€D"ÉÊÊŠˆˆÉdááá999Lú /¼PXXÈ.ªµµuèС†}—r~~~LLŒ\.÷÷÷Ÿ7oÞ£GÈòÙÙÙJ¥’YcVV–Àº¥¥%%%ÅÛÛ{Ĉï¾ûngg§˜òsrrÂÃÃIù÷$ éÚµkñññþþþžžžjµº  €Ì5ø"H$yyyS¦Lñõõuww§þù‹ÉhKRƾ¼HáFWÁ.o« ´ŒBhšvssÏàKo¥Â-ÉeО“'Oööööññ™5kÖÅ‹+**f̘áëëëë뛘˜È®_W¡ûÛ±cÇ¢££=== ž}ûøŠmûöísæÌ!;::BBB:::HJttt}}=%¸)ZŒK`3t¹ŽS 0ƒ`„Wa°¤YÛ/JÄÞmÐÏ :Fll¬\.W(û÷ï'éF»ÙÀì­ö@"‘9ÓµLô¶Žì÷`'fáå-^µµJ°gèÞ|±e>|È77777,,ììÙ³:®¶¶6,,,//™EQTxxx]]N§«««S*•GŽ¡iº´´4..Ž]HZZÚòåË™,$oddä™3gt:]KKËÒ¥K˜Yß|óJ¥ª¯¯×étõõõáááMœ““óôéÓ»wï.Y²$%%ÅdùGŽ!å×ÖÖ2OÖ-\`I21vìØŒŒŒ'Ož0ÑΛ7Ï`‚¢¨ñãÇ×ÔÔèõzƒeøZ’¯“³„·_Ë(ÄèÚf ¬ÔdK TâĉÕÕÕZ­¶µµuÅŠC‡ŠŠb§$&&’Œ|]E ¿8qbÈ!GÕjµçÏŸW©T………|µ&nß¾-—ËùåæcFF†——WFFóñÎ;½½½´©MÙ÷ÍÄír§p`Ürøfq—¿Ýb³wóMWTThµÚ7n,\¸,#pD⫲UöV;Ó_pBb.òM ˆ<0Z¥G‡ÞÎÇ[F*•vwwóÍU«Õ%%%äcqqñäÉ“™iŠ¢ÊÊÊȬÒÒÒiÓ¦‘\ßÿ=3ÝÝÝüÃ?Ðÿ|EqõêU’W£Ñøøø0ÓS§N-//'³ÊÊÊD6i{{ûÈ‘#M–?mÚ4ƒ°ùÊX’LÈåòææfn^£_C F—hI³®ÊHŠðVãk…]»À,•šlI¾Â)Šº|ù2Iüø1EQW®\a§ðUÝUú[\\{p¡¡¡!22Òd„4MÇÆÆ2—‹½½½ãÆ;xðàØ±c™ëöôôô•+Wrë­fß7·Ë dœÂqËá›Å]RüvˆAÌÞÍ7=}úôãÇ ÇIsŽHÜŠ˜ R|7°8'!þšßâ‹387ô>ŽØ2=â›+—Ë»ººÈÇÎÎN¹\ÎLSe0ËËË‹™>|øð[o½ÅLüö·¿%YÈsICP¬kNƒbùš´¥¥eÙ²eAAAäþp7·<,ÌW¾———Èò–$ï½÷Þˆ#V®\¹ÿþ;wîpWÇNééé1’@K \¢ÌÞj|-c@ \|ñ­ÔdKòn´L¾µtþæíímð¥Or ûôÓO™ßŸËËËgΜIÓô‹/¾È\Ù¾ôÒKäWxSö}3q»Ü@Æ)·áj ¯Ñ‚ÄìÝ|Ó^^^ÜØ„HÜŠ˜ R|7°x_8<ë؇Dá·-PÝ.`ϦNZ]]mÝ2“’’.]ºtïÞ=Š¢víÚµjÕ*î2}?Œ/X°À××÷Ô©S4MëõúÞÞ^+–/ÆŽ;JKK Eiié¤I“ÒÒÒæ>3o.«|ïØä¤ÚäJÍjI¾2ùÖ"ÜUøôöö¶··³¿ôŸ={f2EQóçÏ/++ëèèHOOOII¡(*%%%==ýÉ“'.\˜9s¦˜B¬²™„»œÄin¯¿Ý˜eÝL˜TM$¼¯œ‡ÉCžø%M–lVÙA,+ÁÎwLG5Hß¶mMÓjµúĉì…Å>Þ‚’8ššzëÖ­   äääõë×»¹á×2è/èoÖ‚±°6¿,7w°b 6¯@¿2÷Šº±±qË–-µµµ^^^»víJHH 8WªÜ ~ËrÖè2Üt£…”lt]özpIf|_Ú|s8r5n»v?d쪎Vdñ.SZZºlÙ²û÷ïSæŒX–Ëä2"ÇÌ‚3pM‰·xIDATw€íÙÛE¸È×:XP,3‡½ÁÅýþ÷¿¿zõª^¯ïíí}öìY¿æê‹Áƒ߸qcVà|¤Ž8âîXÑ€0{hèW4M“w˹B}Œzã7’’’nݺ5vìØôk®¾X·n]lllGGöV³Ð4í§ø&DqÄ(h \³ÖàÄð-Ì-.Ë­Ÿnîä_DZÿ‡þŸ€ãrÙKngÎò±££#$$¤££ƒ¤DGG×××SüÛš!°-²²²T*S¯ììlnð)|«0X’»§]‘ð¦äëñHÌê|û£Èà5ͰaÃZ[[ÙÅj4šáÇk4vËì;}Üã,ØÜ"WÌ’±±±r¹\¡Pìß¿Ÿ¤ t£M*°QŒßÈbÙÙÙJ¥’´€É Šé™L"‘¹½Ðž­†­ƒ³õÓÎkP¦ÑUØÛAÇ1pwãÌeÝįÈwðàààœœœ§OŸÞ½{wÉ’%)))L:EQãǯ©©ÑëõLʉ'† rôèQ­V{þüy•JUXXh´LŠ¢ÂÃÃëêêt:]]]R©<<\̱ÅÞ¾nïrc N ÿ  d¢¡¡!((è‹/¾à.SRR2a°°°¬¬,n±z½~íÚµƒþüóÏ­6Ýo 0`¬>Ö \še¹,[²œ`ïnoo9r$3MQTCC{n\\ûd½¡¡!22Òh9E•••‘¥¥¥Ó¦M3YwE]¾|™||üø1EQW®\a§øøø… &Øå¤„1mÚ4ƒàÅŒ5\½z•¤k4•0ƒç+D­Vÿý÷Ìtwwwppð?ü`4ñÍeY ˆk†ØØXær®··wܸq;v,3¾žž¾råJ1a4cII ™U\\ýøñãÜtáÃפ|Åèñ™˜:ujyy9I/++sl±Ã¯Ç»\Ç@€£ë¿× Xæãßÿþ÷áÇ“ï ƒe:¤Õjïܹ“œœÌ-sýúõ³gÏþùçŸ5Íš5kú)lÍÀ¡Y}¬¡?rY·ñ+r¸½»¥¥eÙ²eAAAäöi7·qâÄk¯½ftooï»wï¶´´„††~õÕWÜrssÓÓÓCBB† ²sçÎ~ŽÀi•––Nœ8Q&“=zÏž=$=33sôèÑ2™,&&æâÅ‹L"yÖÔ²\\:néÒ¥>>>#GŽÜ¾};I×jµï¼óŽ¿¿¿¿¿ÿþð­VKŠ2ºŠgÏž}üñÇ#FŒðöö^¸p¡ÁãÓÎaÁ‚¾¾¾§Nêèè iZ¯×÷öö’¹ä²‡ÑÛÛÛÞÞÎ>³|ö왹k.Ä`T¿ýS «ÔÅ‚¨„œ¯¤¤¤K—.Ý»w¢¨]»v­ZµJ||eZ· ®/,ÞjóçÏ/++ëèèHOOOII¡(*%%%==ýÉ“'.\˜9s¦˜BúÞC̽\âö[>|›R¸c˜[Z?¿zõjrÓèÎ;׬Y#~-Vßãˆéáâ lñMÍf'¯c0I"‘8Ìÿ¡ Ø»:FI@XffæÛo¿÷ÀáÇ+++Õjuhh¨ÁË{÷ïßW*•ý#€KX¼xñ'Ÿ|ÒÞÞ^]]ÝØØHÒ+++Ïœ9ÓÖÖ–œœl•\\›6mzôèÑO?ýtáÂ…ªª*’¾aÆ{÷î555ݼyó§Ÿ~Ú¸q£ð*¶nÝúÝwß;w®¥¥ÅÓÓóOú“e­aÏΜ9óé§ŸFDDÈårŠ¢¾ýö[…™{ƒE–|úôi2]]]eA!–‘H$ÜK_ƒ0¢¢¢ ‚·blf58!‘HÖ­[—‘‘ñÝwßݹs'))©ï‘ô±¼½½ÛÚÚÈÇk×®õ=$Š¢ ÅøñãÓÓÓ/\¸ðÆoP•páÂ…ŒŒŒ—_~ÙÃÃÃ`yî–0aÂv]ª««ýë_3ÓÕ1k&WÄ·)Åt £[dÇàÛÍ ~Μ9>¬©©©©©immåþ®#Ðs¬²Ç™µ-Äj¢££O:ÅMh Š¿I-Ø[###Ïž=K>²§XÐ3ˆ%·DØŽƒ† ŒþÛ Š¥(ª¹¹Y¥R}öÙg|Ë%%%äIH¶ààà7nX7N8 £Ó‡CCCwîÜyç΃Œ­­­Ìtgg§T*%é}ÉÅÔÔÔÄL߸qƒ,xóæMfúúõë« #?xðà¹çž®µ#îÝjµzÓ¦M¦««ëرc£F¢øoÐ=yòdlllMMV«íèè8yòd||¼Ñb)Šb^u¦×ëëëë•JåáÇMÂ]£Y)d"$$¤ªªŠ}ã17E ŒC‡‘àëêêD¾Òdœ ³œÒÝÝ­V«çλyóf£%‹ ƒ¤XÖdbΜ9ÉÉÉ=ÒëõgÏže.´,ƒkÛ¶mR©tË–-$eóæÍR©ôСCÜìÜ-+°®ÜÜ\¥RY[[KêE^õ'Pî*LÖE`E4ϦÓ1ŒF"²cðíæÿÙgŸÍŸ?þüù;vìà¶€@ϱÊgÖæ¼*.. ­¬¬ÔétMMM‹-2ÙMJólP """õz}cccDD„˜½ÉdÏxŽzÑîˆ1£ÿ;ƒ¾~ý:{E4Mß½{w̘1[·n5ºÌ‚ ®\¹¢ÓéŠŠŠ†ÎÎÈØ°aÃìÙ³›››?~¼zõêþÛAÃl&»qCCÃ믿rôèQ’Ë ƒ Ërq¹»»“Çb»»»É’é|Ãä£T*uwwwwwwss£þïG$ޏw755½üòËr¹\.—GEE}ýõ×Â-|êÔ©™3gúøøxyyÅÅÅ}¡“w÷îÝáááR©T¡PìÝ»WL!ÖkÈÏÏ&ÿnÙhŠp]²³³ …T*U©T™™™Vk0«Á R¾üòK™LöàÁ£%‹ £-@&|M!|ˆ£máP™çø˜ÈÈÈÉd&s™ì™Ï^â0—ý´ ˜¥_ϼSSS}}}¹ß7÷ïß7n3–l°Ìý×3F*•Nœ8‘ûŠ)š¦õzýš5k†:dÈÿøÿè°ñjÀ€øn̾‡Hü¨e¹ˆàà`¾ûØéAAA« inn¬ß?ÁÞM úCjj*ùÅšu7¥ÉÒ°?ZÉ&íË&>wîܸqã,ËkCøþ€†3o.´ 8“ÝØä=D´±QËrq}øá‡¯¾úêÇ[ZZ~÷»ß‘%ßÿý×_¤¯[·Nxiii¿ûÝïšššº»»/_¾üûßÿ^ Ê4ön´ƒÕUWW?÷ÜsO#²î¦SöG«nR 6ñ¢E‹nÞ¼ÙÝÝýÃ?Lž<ùoû[ŸchEIÉ]@ÿxã7’’’nݺ5vìØôk.®¿þõ¯+W® óóó[·n݉'˜ôÔÔÔU«V©T*Š¢Þ|óÍ-[¶—óÑGI$’—^zéÞ½{&LذaƒÅ!ô…D" Ü·o_hh¨­c>±î¦DǰC–m”Ù³g¿þúë·nÝ JNN~ï½÷ú/Â~BÓ´„LÙ6pßäB›€@76 Í.KŠï?°‰D"µu àðhš–H$öðϽ™[ ØlnjW†÷5€óÀ) €ÍÑ4ífëDáþVÙ¹¬[€‹`.ò±Ë0ð[¸87ò)‘ÕÇ Ä(~¥¸îW#‘Hp_86ËFK`Œõí·ßnnn¦(ª¹¹ùí·ßîïÕØÜÚÀÀM ”]v« Ûª^vØžNmÐGnÌ›œlÀ?”––Nœ8Q&“=zÏž=$=33sôèÑ2™,&&æâÅ‹L"9‚Y–Ë“nôÀØØØ¼k×.î2FWššúþûïSõÞ{復¦ö©E+ŸZ¸fݺÖv¼†`¼¯ìÑâÅ‹?ùä“öööêêêÆÆF’^YYyæÌ™¶¶¶„„„ääd«ä2ÀüÉ}¸ìÈ‘#¯¾újffæêÕ«¹Ë𭚌JXЊì®ÙóI­]ü¦Êy[ÀVõrÖö'†÷5€Ýñöö¾{÷nKKKhhèW_}EÒ333ƒƒƒ½½½×­[wþüy«äcûöí«W¯>qâÄk¯½&>à7þío£(êóÏ?߸q£ëpP.;Üà ‰$???&&F.—ûûûÏ›7ïÑ£GdnVV–J¥’ÉdÙÙÙ$ õw{‘F`oýcÇŽÅÆÆÊår…B±ÿ~vztt´§§§B¡Ø·oŸ@T---)))ÞÞÞ#FŒx÷Ýw;;;ÅD›““ÎD›••ÅW_nðEñK–¹víZ||¼¿¿¿§§§Z­.((pŽöÌËË›2eН¯¯»»»YÅJ$’¬¬¬ˆˆ™Lž““Þ%¾X†åËÂ._"‘ 6¬µµ•›F£>|¸F£®Ž˜"I$’ÿÿÓÀ€a@ 444¼þúë!!!G%¹ 1˜°,—Ñð >*•Ê 6,ctÕ&WÄ^FÌbŽ…œmØ:â4õ¥(*22òÌ™3:®¥¥eéÒ¥ ̬ÜÜܰ°°³gÏêtºÚÚÚ°°°¼¼<’‹[3QTT\QQ¡Õjoܸ±páB&ýĉC† 9zô¨V«=þ¼J¥*,,ä‹*888''çéÓ§wïÞ]²dIJJŠÉh9¢R©êëë™h ßÖ1<_±dá±cÇfddûì3¾eŒ®Z<‡ÁY¹Îi†3Õ”¢¨«W¯’ÆÇLJ™V«Õ%%%dVqqñäÉ“I.n9ÌÄôéÓ?Î]Q\\ûªµ¡¡!22RL„íííìƒ<_´Ó¦M+++#³JKKÍkà+–,,—Ë›››MFëpíÙÐÐ`Y±E4ø´iÓ,(–¯a²”ñâÅÀÀ@2®ÑÝÝ|éÒ%áBÄwÉy¾ÀQ˜<ì,X°àÊ•+:®¨¨høðá$—A!–åâ:pà@¿æâZ·n]ll¬Ásæß~ûíþçnÙ²…»ŒµV à|اNö¯¯ØÕq²³©ÙL½½½íííì³ÒgÏž]rÁ‚¾¾¾§Nêèè iZ¯×÷öööw´&‹Ý±cGii©B¡(--4iRZZšÅEY…µÚ“ @˜[¬0ñÅò5¬p$å¯^½ú‹/¾`¦wîܹfÍëVLÂûÀ˜­£°#hp¶;áéG¶nTëãVФ¨Õê'NôÒÒRrÏ¿D"áûõþùçŸ/**â®è7¿ùÍ·ß~+&$§OŸ’åååÿMj$Eü-ñÁsSŒrûömooo£…;z{Š/–|†Â²bÙ +…[~OOó.Œ³gÏ*•ÊgÏž™,ÏPX—3S€ÝÂaÇ\J?_û[7dáV¤äææ*•ÊÚÚZ½^_WW§P(È» CBBªªªØ—Ç$Wqqqhhhee¥N§kjjZ´h“~òäÉØØØšš­VÛÑÑqòäÉøøx£!©ÕêM›6i4š®®®cÇŽ5Š1ÖpèÐ!æU$Z¾­&<7…LÄÇÇWUUuvv¶··ïÙ³g„ F wôö_,EQ¤Áëëë•JåáÇ-(–¯a²ݲŸ}öÙüùóçÏŸ¿cÇ1ëî0N¼Ëô'ÿ¾ûd'G{¸x°“¦`\Ó4½{÷îððp•JµgÏ’žŸŸÌ<,ÀÍUXX-“ÉF½wï^’~êÔ©™3gúøøxyyÅÅÅ}å!MÓMMM/¿ü²\.—ËåQQQ_ýµ˜±𦳳³ …T*U©T™™™|[áà RÈDIIÉŒ3<==ýüüâããÙ/ñ዇›bÿí)¾XŠ¢˜êH¥R…BÁ̬b–/‹Ñò5Í AƒÜÖÖ&²:ßÔÐNô 8 rþdë@lMN@"ÁeüƒD"q³u àŠ˜ÓgzKœe0ÐNÉÍÉ^ 6DÓô?þW“mCäâ¿ê»xõÀ‰¹1¯m°uàº\óÖ*׬5¸¼¯l‰ tºÚ…7©/†zÀ)á|lÌÕ.¼]­¾à‚p_ؘKÝÝ€pøG¸`\á"Üê ‘H0Öö‚}_ƒ“šœ¸j$ø‘ ì“]–;YuÄÀXØ#'{wޱàRð Ø/'qÀ1\D"‘Ú:^¸PpDx†¬ÉÍÖ€SÁûÀj$ îkkÂû ±š¦1iLcÓ˜Æ4¦1iLcÓ˜Æ4¦-ž–’)€¾ûë1“hOðIEND®B`‚shishi-1.0.3/doc/reference/html/left-insensitive.png0000644000000000000000000000061314273616165017351 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا IDAT8ËÍ’­NQ…¿éö†…@¡p üdsÛÀÖ`*š4Á@ò„W@ A!ÈÔ†@6Ü^ƒ 5hxèIH R`sQpäÌ™339þBÊó|Ês¤ªKEQTÛíöK°@·ÛÎià¦^¯Ï~îWʆ½÷‹ÀÕûðå`0˜åTJ6·Tõ˜‘cYn6›AÞû Æ€½~¿ß±Ö>}Ç­Žœs;ªº ¨ˆlYkwËÞürˆ¼†ºó£ Þû5U= °/"›ÖÚç  ¬µ‡"ÒuU=ɲlü×ArÎÕDä˜zÃáp5I’ûà4^E+ÀP3Æœçàq_«êp Ì¥iñ¯ðUY¥‚p=#IEND®B`‚shishi-1.0.3/doc/reference/html/home.png0000644000000000000000000000040014273616165015003 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا IDAT8ËÝÒ½ AÅñßž¦f`n v`6`/¶`Y€š˜Ü¡`f&k$,Ëá}˜ˆ ÌüßÀ0ü§bŒ+Ô¸aQW~bæ ËOà e˜{‡y N°Á£üö[LáØÌ}.pÇiÀ­÷¨BzüžÆmm Šoæ·.I]7Ì^[úÃô;%:å†ÁVIEND®B`‚shishi-1.0.3/doc/reference/html/shishi-shishi-version.h.html0000644000000000000000000001411414273616165020727 00000000000000 shishi-version.h: GNU Shishi API Reference Manual

shishi-version.h

shishi-version.h — version symbols

Description

The shishi-version.h file contains version symbols. It should not be included directly, only via shishi.h.

Functions

Types and Values

SHISHI_VERSION

# define SHISHI_VERSION "1.0.3"

Pre-processor symbol with a string that describe the header file version number. Used together with shishi_check_version() to verify header file and run-time library consistency.


SHISHI_VERSION_MAJOR

# define SHISHI_VERSION_MAJOR 1

Pre-processor symbol with a decimal value that describe the major level of the header file version number. For example, when the header version is 1.2.3 this symbol will be 1.

Since: 1.0.3


SHISHI_VERSION_MINOR

# define SHISHI_VERSION_MINOR 0

Pre-processor symbol with a decimal value that describe the minor level of the header file version number. For example, when the header version is 1.2.3 this symbol will be 2.

Since: 1.0.3


SHISHI_VERSION_PATCH

# define SHISHI_VERSION_PATCH 3

Pre-processor symbol with a decimal value that describe the patch level of the header file version number. For example, when the header version is 1.2.3 this symbol will be 3.

Since: 1.0.3


SHISHI_VERSION_NUMBER

# define SHISHI_VERSION_NUMBER 0x010003

Pre-processor symbol with a hexadecimal value describing the header file version number. For example, when the header version is 1.2.3 this symbol will have the value 0x010203.

Since: 1.0.3

shishi-1.0.3/doc/reference/html/shishi.devhelp20000644000000000000000000036450114273616165016306 00000000000000 shishi-1.0.3/doc/reference/html/style.css0000644000000000000000000002725714273616165015242 00000000000000body { font-family: cantarell, sans-serif; } .synopsis, .classsynopsis { /* tango:aluminium 1/2 */ background: #eeeeec; background: rgba(238, 238, 236, 0.5); border: solid 1px rgb(238, 238, 236); padding: 0.5em; } .programlisting { /* tango:sky blue 0/1 */ /* fallback for no rgba support */ background: #e6f3ff; border: solid 1px #729fcf; background: rgba(114, 159, 207, 0.1); border: solid 1px rgba(114, 159, 207, 0.2); padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .variablelist td:first-child { vertical-align: top; } span.nowrap { white-space: nowrap; } div.gallery-float { float: left; padding: 10px; } div.gallery-float img { border-style: none; } div.gallery-spacer { clear: both; } a, a:visited { text-decoration: none; /* tango:sky blue 2 */ color: #3465a4; } a:hover { text-decoration: underline; /* tango:sky blue 1 */ color: #729fcf; } .function_type, .variable_type, .property_type, .signal_type, .parameter_name, .struct_member_name, .union_member_name, .define_keyword, .datatype_keyword, .typedef_keyword { text-align: right; } /* dim non-primary columns */ .c_punctuation, .function_type, .variable_type, .property_type, .signal_type, .define_keyword, .datatype_keyword, .typedef_keyword, .property_flags, .signal_flags, .parameter_annotations, .enum_member_annotations, .struct_member_annotations, .union_member_annotations { color: #888a85; } .function_type a, .function_type a:visited, .function_type a:hover, .property_type a, .property_type a:visited, .property_type a:hover, .signal_type a, .signal_type a:visited, .signal_type a:hover, .signal_flags a, .signal_flags a:visited, .signal_flags a:hover { color: #729fcf; } td p { margin: 0.25em; } div.informaltable table[border="1"], div.table table { border-collapse: collapse; border-spacing: 0px; /* tango:aluminium 3 */ border: solid 1px #babdb6; } div.informaltable table[border="1"] td, div.informaltable table th, div.table table td, div.table table th { /* tango:aluminium 3 */ border: solid 1px #babdb6; padding: 3px; vertical-align: top; } div.informaltable table[border="1"] th, div.table table th { /* tango:aluminium 2 */ background-color: #d3d7cf; } h4 { color: #555753; margin-top: 1em; margin-bottom: 1em; } hr { /* tango:aluminium 1 */ color: #d3d7cf; background: #d3d7cf; border: none 0px; height: 1px; clear: both; margin: 2.0em 0em 2.0em 0em; } dl.toc dt { padding-bottom: 0.25em; } dl.toc > dt { padding-top: 0.25em; padding-bottom: 0.25em; font-weight: bold; } dl.toc > dl { padding-bottom: 0.5em; } .parameter { font-style: normal; } .footer { padding-top: 3.5em; /* tango:aluminium 3 */ color: #babdb6; text-align: center; font-size: 80%; } .informalfigure, .figure { margin: 1em; } .informalexample, .example { margin-top: 1em; margin-bottom: 1em; } .warning { /* tango:orange 0/1 */ background: #ffeed9; background: rgba(252, 175, 62, 0.1); border-color: #ffb04f; border-color: rgba(252, 175, 62, 0.2); } .note { /* tango:chameleon 0/0.5 */ background: #d8ffb2; background: rgba(138, 226, 52, 0.1); border-color: #abf562; border-color: rgba(138, 226, 52, 0.2); } div.blockquote { border-color: #eeeeec; } .note, .warning, div.blockquote { padding: 0.5em; border-width: 1px; border-style: solid; margin: 2em; } .note p, .warning p { margin: 0; } div.warning h3.title, div.note h3.title { display: none; } p + div.section { margin-top: 1em; } div.refnamediv, div.refsynopsisdiv, div.refsect1, div.refsect2, div.toc, div.section { margin-bottom: 1em; } /* blob links */ h2 .extralinks, h3 .extralinks { float: right; /* tango:aluminium 3 */ color: #babdb6; font-size: 80%; font-weight: normal; } .lineart { color: #d3d7cf; font-weight: normal; } .annotation { /* tango:aluminium 5 */ color: #555753; font-weight: normal; } .structfield { font-style: normal; font-weight: normal; } acronym,abbr { border-bottom: 1px dotted gray; } .listing_frame { /* tango:sky blue 1 */ border: solid 1px #729fcf; border: solid 1px rgba(114, 159, 207, 0.2); padding: 0px; } .listing_lines, .listing_code { margin-top: 0px; margin-bottom: 0px; padding: 0.5em; } .listing_lines { /* tango:sky blue 0.5 */ background: #a6c5e3; background: rgba(114, 159, 207, 0.2); /* tango:aluminium 6 */ color: #2e3436; } .listing_code { /* tango:sky blue 0 */ background: #e6f3ff; background: rgba(114, 159, 207, 0.1); } .listing_code .programlisting { /* override from previous */ border: none 0px; padding: 0px; background: none; } .listing_lines pre, .listing_code pre { margin: 0px; } @media screen { /* these have a as a first child, but since there are no parent selectors * we can't use that. */ a.footnote { position: relative; top: 0em ! important; } /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { display: inline-block; position: relative; top:-5em; } /* this seems to be a bug in the xsl style sheets when generating indexes */ div.index div.index { top: 0em; } /* make space for the fixed navigation bar and add space at the bottom so that * link targets appear somewhat close to top */ body { padding-top: 2.5em; padding-bottom: 500px; max-width: 60em; } p { max-width: 60em; } /* style and size the navigation bar */ table.navigation#top { position: fixed; background: #e2e2e2; border-bottom: solid 1px #babdb6; border-spacing: 5px; margin-top: 0; margin-bottom: 0; top: 0; left: 0; z-index: 10; } table.navigation#top td { padding-left: 6px; padding-right: 6px; } .navigation a, .navigation a:visited { /* tango:sky blue 3 */ color: #204a87; } .navigation a:hover { /* tango:sky blue 2 */ color: #3465a4; } td.shortcuts { /* tango:sky blue 2 */ color: #3465a4; font-size: 80%; white-space: nowrap; } td.shortcuts .dim { color: #babdb6; } .navigation .title { font-size: 80%; max-width: none; margin: 0px; font-weight: normal; } } @media screen and (min-width: 60em) { /* screen larger than 60em */ body { margin: auto; } } @media screen and (max-width: 60em) { /* screen less than 60em */ #nav_hierarchy { display: none; } #nav_interfaces { display: none; } #nav_prerequisites { display: none; } #nav_derived_interfaces { display: none; } #nav_implementations { display: none; } #nav_child_properties { display: none; } #nav_style_properties { display: none; } #nav_index { display: none; } #nav_glossary { display: none; } .gallery_image { display: none; } .property_flags { display: none; } .signal_flags { display: none; } .parameter_annotations { display: none; } .enum_member_annotations { display: none; } .struct_member_annotations { display: none; } .union_member_annotations { display: none; } /* now that a column is hidden, optimize space */ col.parameters_name { width: auto; } col.parameters_description { width: auto; } col.struct_members_name { width: auto; } col.struct_members_description { width: auto; } col.enum_members_name { width: auto; } col.enum_members_description { width: auto; } col.union_members_name { width: auto; } col.union_members_description { width: auto; } .listing_lines { display: none; } } @media print { table.navigation { visibility: collapse; display: none; } div.titlepage table.navigation { visibility: visible; display: table; background: #e2e2e2; border: solid 1px #babdb6; margin-top: 0; margin-bottom: 0; top: 0; left: 0; height: 3em; } } pre { line-height: 125%; margin: 0; } td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; } span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; } td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; } .hll { background-color: #ffffcc } .c { color: #408080; font-style: italic } /* Comment */ .err { border: 1px solid #FF0000 } /* Error */ .k { color: #008000; font-weight: bold } /* Keyword */ .o { color: #666666 } /* Operator */ .ch { color: #408080; font-style: italic } /* Comment.Hashbang */ .cm { color: #408080; font-style: italic } /* Comment.Multiline */ .cp { color: #BC7A00 } /* Comment.Preproc */ .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ .c1 { color: #408080; font-style: italic } /* Comment.Single */ .cs { color: #408080; font-style: italic } /* Comment.Special */ .gd { color: #A00000 } /* Generic.Deleted */ .ge { font-style: italic } /* Generic.Emph */ .gr { color: #FF0000 } /* Generic.Error */ .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .gi { color: #00A000 } /* Generic.Inserted */ .go { color: #888888 } /* Generic.Output */ .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .gs { font-weight: bold } /* Generic.Strong */ .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ .gt { color: #0044DD } /* Generic.Traceback */ .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ .kp { color: #008000 } /* Keyword.Pseudo */ .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ .kt { color: #B00040 } /* Keyword.Type */ .m { color: #666666 } /* Literal.Number */ .s { color: #BA2121 } /* Literal.String */ .na { color: #7D9029 } /* Name.Attribute */ .nb { color: #008000 } /* Name.Builtin */ .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .no { color: #880000 } /* Name.Constant */ .nd { color: #AA22FF } /* Name.Decorator */ .ni { color: #999999; font-weight: bold } /* Name.Entity */ .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .nf { color: #0000FF } /* Name.Function */ .nl { color: #A0A000 } /* Name.Label */ .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .nt { color: #008000; font-weight: bold } /* Name.Tag */ .nv { color: #19177C } /* Name.Variable */ .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ .w { color: #bbbbbb } /* Text.Whitespace */ .mb { color: #666666 } /* Literal.Number.Bin */ .mf { color: #666666 } /* Literal.Number.Float */ .mh { color: #666666 } /* Literal.Number.Hex */ .mi { color: #666666 } /* Literal.Number.Integer */ .mo { color: #666666 } /* Literal.Number.Oct */ .sa { color: #BA2121 } /* Literal.String.Affix */ .sb { color: #BA2121 } /* Literal.String.Backtick */ .sc { color: #BA2121 } /* Literal.String.Char */ .dl { color: #BA2121 } /* Literal.String.Delimiter */ .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .s2 { color: #BA2121 } /* Literal.String.Double */ .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .sh { color: #BA2121 } /* Literal.String.Heredoc */ .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .sx { color: #008000 } /* Literal.String.Other */ .sr { color: #BB6688 } /* Literal.String.Regex */ .s1 { color: #BA2121 } /* Literal.String.Single */ .ss { color: #19177C } /* Literal.String.Symbol */ .bp { color: #008000 } /* Name.Builtin.Pseudo */ .fm { color: #0000FF } /* Name.Function.Magic */ .vc { color: #19177C } /* Name.Variable.Class */ .vg { color: #19177C } /* Name.Variable.Global */ .vi { color: #19177C } /* Name.Variable.Instance */ .vm { color: #19177C } /* Name.Variable.Magic */ .il { color: #666666 } /* Literal.Number.Integer.Long */shishi-1.0.3/doc/reference/html/right.png0000644000000000000000000000040514273616165015175 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا ’IDAT8ËÕÒ¯aÇñ?›M´½IdErš,¾Ù-¸ÑhîAâIl’Í ¯r’äy§ž}¿ç·s¿X6èæ ö!9¢Ÿ#èD‚ Œr$-¬BrÃ$GÒÀ"$”¹;™á‰æŸÍú—WZêä&–!¸cš·±øŠq \`ðÃÔ軀Oä¾ò=QouføòIEND®B`‚shishi-1.0.3/doc/reference/html/intro.html0000644000000000000000000000736614273616165015410 00000000000000 GNU Shishi API Reference Manual: GNU Shishi API Reference Manual

GNU Shishi API Reference Manual

shishi.h — main library interfaces
shishi-version.h — version symbols

Shishi is an implementation of the Kerberos 5 network authentication system, as specified in RFC 4120. Shishi can be used to authenticate users in distributed systems.

Shishi contains a library ('libshishi') that can be used by application developers to add support for Kerberos 5. Shishi contains a command line utility ('shishi') that is used by users to acquire and manage tickets (and more). The server side, a Key Distribution Center, is implemented by 'shishid'. Of course, a manual documenting usage aspects as well as the programming API is included.

Shishi currently supports AS/TGS exchanges for acquiring tickets, pre-authentication, the AP exchange for performing client and server authentication, and SAFE/PRIV for integrity/privacy protected application data exchanges.

Shishi is internationalized; error and status messages can be translated into the users' language; user name and passwords can be converted into any available character set (normally including ISO-8859-1 and UTF-8) and also be processed using an experimental Stringprep profile.

Most, if not all, of the widely used encryption and checksum types are supported, such as 3DES, AES, ARCFOUR and HMAC-SHA1.

Shishi is developed for the GNU/Linux system, but runs on over 20 platforms including most major Unix platforms and Windows, and many kind of devices including iPAQ handhelds and S/390 mainframes.

Shishi is free software licensed under the GNU General Public License version 3.0 (or later).

Figure 1. Source code layout of Shishi

Source code layout of Shishi

shishi-1.0.3/doc/reference/html/up-insensitive.png0000644000000000000000000000056614273616165017052 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا IDAT8Ëí’?/QÅÏ™?[êu$¾€V³î›ÑâHTD³ø”ÛˆBM+¡!™ÂÌ<ˆDã+èô[mdÞ\…·bø{º{sÎ/97˜ªSÖÚ£º®»<ìTõ8ŒcÌÉ¿UU­‘¼‡•WÕÍ,Ë®ÿ”e¹EÑ €žªîÉSïmÛ®æy~û+À9·è½¿0`hŒ9u†ªº`Çñr¿ßùpÎÍ{ïÌ8‘m’ ªJkí€-o$—Dä¢  išË¾'¹; ‡ Jr‡äCð\¨*¿HΑ|JÓtCDÆßo#"ã$IÖ<«êBQ½é£êêÉ]•TKúIEND®B`‚shishi-1.0.3/doc/reference/html/up.png0000644000000000000000000000040414273616165014503 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا ‘IDAT8Ëí’1 ƒ@DŸ•¶{ƒxa™ƒØÄ;$]r =JR´È1,Ë øSd„-©}0°ÌŸÙÏÂÂÎàüo¹L:m-˜¤QÞOäÀ[› Éäåkå T¸zþMÞ Lè¬Ì,š:ךuÀ!tÁK;æ ðP¦õÌôÀp Ot@£l¼ÿò/̵*á§l}IEND®B`‚shishi-1.0.3/doc/reference/html/left.png0000644000000000000000000000040614273616165015013 00000000000000‰PNG  IHDRóÿabKGDÿÿÿ ½§“ pHYs × ×B(›xtIMEå $$ñا “IDAT8ËÕÒ¯Áa‡ñ?ÁDAPY‘\‚$‹º[p¢+ÐÜIÐIªMlfü('Úì}MpâÙyží{Îá_ª…ž¨¤ÂÞ¥Â}œ^£‘q xZ <Æ=àYjî) <0ù4\~Ó+Púöl#Ü"ÂÕÉ—,QÏ‘ôp ÉÍIÇlswÒÆ>÷•[/]_i0‘3ÃIEND®B`‚shishi-1.0.3/doc/reference/Makefile.am0000644000000000000000000001407614273600463014445 00000000000000# -*- mode: makefile -*- # # Makefile.am - template makefile for gtk-doc module # Copyright (C) 2002-2022 Simon Josefsson # Copyright (C) 2007-2017 Stefan Sauer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # As a special exception, the above copyright owner gives unlimited # permission to copy, distribute and modify this Makefile.am template. # You need not follow the terms of the GNU General Public License when # using or distributing such Makefile.am files, even though portions of # the text of the Makefile.am appear in them. The GNU General Public # License (GPL) does govern all other use of the material that constitutes # the Makefile.am template. # This is a blank Makefile.am for using gtk-doc. # Copy this to your project's API docs directory and modify the variables to # suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples # of using the various options. # The name of the module, e.g. 'glib'. DOC_MODULE=$(PACKAGE) # Uncomment for versioned docs and specify the version of the module, e.g. '2'. #DOC_MODULE_VERSION=2 # The top-level XML file. DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml # Directories containing the source code. # gtk-doc will search all .c and .h files beneath these paths # for inline comments documenting functions and macros. # e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk DOC_SOURCE_DIR=$(top_srcdir)/lib $(top_builddir)/lib # Extra options to pass to gtkdoc-scangobj. Normally not needed. SCANGOBJ_OPTIONS= # Extra options to supply to gtkdoc-scan. # e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED" SCAN_OPTIONS= # Extra options to supply to gtkdoc-mkdb # e.g. MKDB_OPTIONS=--xml-mode --output-format=xml MKDB_OPTIONS=--xml-mode --output-format=xml # Extra options to supply to gtkdoc-mkhtml MKHTML_OPTIONS= # Extra options to supply to gtkdoc-fixref. Normally not needed. # e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html FIXXREF_OPTIONS= # Used for dependencies. The docs will be rebuilt if any of these change. # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h # e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c HFILE_GLOB=$(top_srcdir)/lib/*.h $(top_builddir)/lib/*.h CFILE_GLOB=$(top_srcdir)/lib/*.c # Extra header to include when scanning, which are not under DOC_SOURCE_DIR # e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h EXTRA_HFILES= # Header files or dirs to ignore when scanning. Use base file/dir names # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code IGNORE_HFILES=asn1.h cfg.h crypto.h diskio.h internal.h starttls.h \ utils.h ccache.h # cd lib/gl && ls *.h && cd sys && ls *.h && cd ../arpa && ls *.h IGNORE_HFILES+=af_alg.h byteswap.in.h fcntl.in.h gl_openssl.h \ malloca.h netinet_in.in.h signal.in.h stdio.h strings.in.h \ time.in.h verify.h alloca.h careadlinkat.h fd-hook.h hmac.h \ md4.h _Noreturn.h size_max.h stdio-impl.h sys-limits.h \ time-internal.h xalloc.h alloca.in.h c-ctype.h filename.h \ ialloc.h md5.h parse-datetime-gen.h sockets.h stdio.in.h \ sys_random.in.h timespec.h xalloc-oversized.h allocator.h \ c++defs.h flexmember.h idx.h memxor.h parse-datetime.h \ stat-time.h stdlib.h sys_select.in.h unistd.h \ xgetaname-impl.h arcfour.h cdefs.h float+.h intprops.h \ minmax.h pathmax.h stat-w32.h stdlib.in.h sys_socket.in.h \ unistd.in.h xgetdomainname.h areadlink.h cloexec.h float.in.h \ inttypes.h mktime-internal.h printf-args.h stdalign.in.h \ strerror-override.h sys_stat.in.h w32sock.h xgethostname.h \ arg-nonnull.h crc.h freading.h inttypes.in.h msvc-inval.h \ printf-parse.h stdarg.in.h strftime.h sys_time.in.h \ warn-on-use.h xsize.h arpa_inet.in.h des.h gc.h libc-config.h \ msvc-nothrow.h read-file.h stdbool.in.h string.h \ sys_types.in.h vasnprintf.h xstrndup.h attribute.h errno.in.h \ getpass.h limits.h netdb.h sha1.h stddef.in.h string.in.h \ sys_uio.in.h wchar.h xvasprintf.h base64.h fcntl.h gettext.h \ limits.in.h netdb.in.h signal.h stdint.in.h strings.h time.h \ wchar.in.h random.h select.h socket.h stat.h time.h types.h \ uio.h inet.h # Images to copy into HTML directory. # e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png HTML_IMAGES=../components.png # Extra files that are included by $(DOC_MAIN_SGML_FILE). # e.g. content_files=running.xml building.xml changes-2.0.xml content_files= # Files where gtk-doc abbreviations (#GtkWidget) are expanded # e.g. expand_content_files=running.xml expand_content_files= # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library. # Only needed if you are using gtkdoc-scangobj to dynamically query widget # signals and properties. # e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) GTKDOC_CFLAGS= GTKDOC_LIBS= # This includes the standard gtk-doc make rules, copied by gtkdocize. include $(top_srcdir)/gtk-doc.make # Comment this out if you don't want 'make check' to test you doc status # and run some sanity checks if ENABLE_GTK_DOC TESTS_ENVIRONMENT = \ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \ SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir) TESTS = $(GTKDOC_CHECK) XFAIL_TESTS = $(GTKDOC_CHECK) endif -include $(top_srcdir)/git.mk html-build.stamp: $(top_builddir)/.version pdf-build.stamp: $(top_builddir)/.version CLEANFILES ?= CLEANFILES += $(PACKAGE)-overrides.txt CLEANFILES += $(PACKAGE)-decl.txt $(PACKAGE)-decl-list.txt CLEANFILES += $(PACKAGE)-sections.txt $(PACKAGE).pdf clean-local: clean-local-junk .PHONY: clean-local-junk clean-local-junk: -rm -rf xml html tmpl dist-hook-local: all-local shishi-1.0.3/doc/reference/shishi-docs.xml0000644000000000000000000000642514273600463015347 00000000000000 %gtkdocentities; ]> GNU Shishi API Reference Manual for &package_string;. The latest version of this documentation can be found on-line at &package_url;reference/. GNU Shishi API Reference Manual Shishi is an implementation of the Kerberos 5 network authentication system, as specified in RFC 4120. Shishi can be used to authenticate users in distributed systems. Shishi contains a library ('libshishi') that can be used by application developers to add support for Kerberos 5. Shishi contains a command line utility ('shishi') that is used by users to acquire and manage tickets (and more). The server side, a Key Distribution Center, is implemented by 'shishid'. Of course, a manual documenting usage aspects as well as the programming API is included. Shishi currently supports AS/TGS exchanges for acquiring tickets, pre-authentication, the AP exchange for performing client and server authentication, and SAFE/PRIV for integrity/privacy protected application data exchanges. Shishi is internationalized; error and status messages can be translated into the users' language; user name and passwords can be converted into any available character set (normally including ISO-8859-1 and UTF-8) and also be processed using an experimental Stringprep profile. Most, if not all, of the widely used encryption and checksum types are supported, such as 3DES, AES, ARCFOUR and HMAC-SHA1. Shishi is developed for the GNU/Linux system, but runs on over 20 platforms including most major Unix platforms and Windows, and many kind of devices including iPAQ handhelds and S/390 mainframes. Shishi is free software licensed under the GNU General Public License version 3.0 (or later).
Source code layout of Shishi
API Index Index of new API in 0.0.42 Index of new API in 1.0.3 Index of deprecated API
shishi-1.0.3/doc/components.png0000644000000000000000000031474714273523166013362 00000000000000‰PNG  IHDRy†6ã sBITÛáOà IDATxœìÝy|Õþ7ð Mw–¶tƒî,Vi(eÑ«EÄbAZ–/* ‚RZŠÊ* -n¸²*R(Ø^,‹H¡@¤€ÝB÷–î{š<ÌsÏon–É$™$“ôóþƒ×épæÌwΜIfNΜÉår O$QE,¤‘Fi¤‘Fi¤‘Fi¤‘rºÀ‘H$¢»@˜p€À¼ˆD"Œk:z €YËåèk"fÿÆ5€yA_ƒà £Ìž¡"ô/€YÃÔƒBÁ|;€ù¸AGXŒk0%Œe ƒùL ½ `y0®Á0œ,Æ5Ÿ0®Áx0œ,ækž¡¯Áàèá 4 jË&—Ëñ …a‘ŽÔ3tèk0‘u ]æk0æs] ~{>‰M€åÀÔ ÞCÁ#º‹ Еa¾ˆD"Œh Ð× /ô/r¹sCêˆË€ÚP€q ÀÌ× 5æÔ Ô  } Z#Ý  ó5p%¡¢8Á¸Íè Π‘H$›:3€ ÜáѵðVKà EÌg%ÐÑ -ŒkøÌWZš6s$‰0®áÐ] èhÐÆ5P¦fàÞC–ï)gŸÖÀhºô¸ g0kèYЮ„ÀD"Æ5€ùQ×Ë€›gÊ•†ßÞÀ@ºâ¸‘¨+î5€eÀÊy„ÊérwÝx«%€™Â± b€w]¥¯ÃÃÌ~124Ô0ðE$u3u à6ØHÝbÆMП…kÀÔ æ Æ„Ú^Xþ¸ô˘/ÜúF7/,³¯ÓÛXt4˜º@O–9_:, ®èŒuz²À¾|2X¼GÌ´èšÇÐÐ\.›:Þ0¿ðÄE[[Û/¿ürîܹ«W¯ÕÖÖ6559::öêÕ+ àÑG>|ø³Ï>;`Àör 1ÄhƒSÌ:xa²œ×4 ç›»ÖÖÖ¤¤¤O>ùäáÇ3ûûûO›6-**jðàÁ*3˜õíºY`Á,ìÒÎ|'ž°°Æ!2÷WBâ³OýõפI“îß¿¯íŠêêÙ¬o×Í:x f‘—yæxím‘ Íìç†ÄSdÚÊÍÍ}æ™gHGƒX,ž>>ééé<òˆ!÷@‚= Xfö ΀± º9xð I¯[·ŽcGEQ£GV×Ñ`Ù.]ºÖ½{w‘HäèèXUUE/?|øpzzúðáÃ}}}=JòÓ E988H¥Rî*--íׯ‘˜9k@—ªžú÷—G§KJJúôéÃK±f=4À¬ƒ°T‚ºêóññÙ¼yó‹/¾Ø«W¯†††^½z)vòäÉÙ³g—––RJ#ØÿTÞÆ5€Å0ƒq ¸äKyy9I»ººt[ÅÅÅñññO=õ”«««µµµ‹‹KPPÐ?ÿùÏóçÏó»¡ßÿ}ùòåÏ<󌗗W÷îÝ­¬¬\]]ƒ‚‚^xá…ØØØ¯¾úª  @˜Á€ðµ´´ØØØØÛÛÌŸ?Ÿ,ŒŒ¼}ûv{{»L&ëììÔ­pæ…nttôâÅ‹}úÅ_$öèÑcåÊ•óæÍsww×§XåÏ‹¸¸¸µk×*/ÿç?ÿ¹{÷n:moo_ZZªî]ìMkÖ¬IHH Ó!!!éééNNNê»páš5k222<°3ë_Ñ-’Ù\Œ M—" ûyf¿£i#±`'NLMMe.±²²=zô3Ï<3räÈÁƒûùùuë¦Ýh…Ûò%K–ìØ±Ceζ¶¶ÀÀÀÂÂBúÏ””æKêÊTnÆ »~ý:þí·ß´ X݆(£ìÌîÎÖâ™×Á=…ðáuÂz†BþßÙqLˆ%Û·oߨQ£˜K:;;/\¸˜˜øÊ+¯ôëׯ{÷î¡¡¡±±±?ýôSSS“¶å»»»oÚ´IÝÿÚÚÚÆÄÄ?Ï;§mù´üü|’æ>=¤FÆ  7±fùH…i#ƒ2}_ƒÂ“T¦ ÆâõìÙ333óßÿþ7óL---W¯^ýøã'Ožìéé9{öl­¦u˜={¶½½=K†gŸ}–¤ÉØm1§„¬®®Ö­eÆ  ÷fÝ O.—›¾¯ŸFfcc“˜˜˜———Ä’³±±ñ«¯¾4hÐêÕ«e2—Ÿ{î9ö $]QQÁ¥Ležžž$½aÃÝ QfœàÀät»½ÁM‘¡£Áì »Áâ™l¾ózîË‚ž;wîÒ¥K7oÞ¼uëVUU•ÊláááGޱ²²Rþ/æ§Cii)³#@Ykk+;`kkÛÚÚª2û”o¾ùæwß}Gþ {ûí·'L˜`ggDzi2NðÀÎW‰êæ gŸ›\·µô§í]4ïñÿº æ ÇÎR‰Lø®áfuMÅÅÅ.\øå—_~þùçúúzæ-_¾|óæÍÊ«0o­[[[mmmÙ7ÁåVœ=Ï•+WF¥0ÔÂÁÁá©§ž 9r¤Æ0L<°3a_ƒ!Öâ —­ÇÄÄlذÁ××·¨¨hÍš5{÷îåkÓ”°¯j„!°Àá³H&˜Rá%·FÞ:häåå5uêÔo¾ù¦¨¨hõêÕÌ ;vìÈËËc_㾞BCC?úè#……ÍÍͧOŸ~ÿý÷ÜÇÿõ×_3gvÐÈ8Á€1ûÌ´QË–-;vìXÿþýUþoKKKZZZLLÌ€öíÛgäØ@8fΜ×ÐЙ™™••E–§§§Ÿ?¾¶¶6""bîܹ¼¬¥,<<<66¶¢¢¢¢¢bРAË–-ã·|eô•6®· J$<¦®Œ4LôßA_"“Ž=üë_ÿúôÓOéôÈ‘#ÿøã… "-à’Ÿc™R©455uÿþýééé,“5nذáý÷ß×gCZå×¶L`ñú3µŸŸß²eË^}õU___æ&ªªªz÷îMQTsss¯^½:::(Æ•ªnk±knnö÷÷§¯X´*Ÿü/÷g( ×®]Ûž¡rl|ÑêÊ|ï¶„|(…y'¯‘i+Sdœg(DŒîUa¶`MÒùùù&ŒD™X,ž4iÒ?üP^^~ûöí”””éÓ§»»»+d[»v­r t‡NOO>|¸¯¯ïÑ£GÉrú–ž¢(©TÊËZÊ.]ºÖ½{w‘HäèèH&áæ«|{÷îõññ¡(Ê××—¯Ž0111‰„¢(‰Dcêp,„º!ráá¼ñ˜ºN@è˜3DZ[[+gж9qɯOíììÌÈÈxñÅ™…DEEñ²!CúMMMõôô$›PØ¢Êå:¯Ex{{ïß¿¿¦¦F&“ÕÕÕéV¾Æ­š`¯jX{{û²eË\]]œœ¶lÙB/¤(jÛ¶mtg««kee%ÉìææFxÙ´i“»»»ƒƒÃ¬Y³Z[[åª.,[ZZæÎÛ³gÏž={Λ7¯¥¥…^.‘H¦L™BQÔäÉ“% —„FP”ú_¦GkBˆß€ãLß|èÖíÿ‰³³³ #á¨[·ncÇŽ=uêÔœ9sÈÂóçÏ›0$0•ÈÈÈÛ·o···Ëd²ÎÎNƒ®¥¬¥¥ÅÆÆÆÞÞ¾  `þüù¼—ÂwóæÍììì¼¼¼¢¢"²üòåËÙÙÙr¹<22299™^˜‘‘1jÔ(777Š¢233srròóóKKK×®]KýwT8óîqõêÕ%%%÷îÝ»{÷nAAóIa‘úÙ:Ô…*‘:Twë.| a›æÆÜpÝ-Œ&;;›´–¡C‡*gж9qÉÏKe¾5ÃÖÖ–— -x€.‹ßïÐ}ûöŠÅâààà´´4² …-*$t[K=•µX,صk—Îå›öêB°W5‚ ÌÛÛ;77Wa!EQ%%%t://ÏÇǧ½½].—/X°àÀt†{÷îÑrss½¼¼ÈŠÌrúöí{÷î]:}çξ}ûÒéèèhº¡°°0::šKHB#jyWò&Ù#Š÷¹!™=@< ¼xõÕW?ùä///­Öz÷ÝwÉ &—.]ºuëV… ‚^±­­ÍÎÎŽN;99ÕÔÔè¿!Ì `h˜äKh{D˜X,nmm%os£)ÌÚøÆo„‡‡GEE 4èúõëvvv"‘H*•Ò¯œ—J¥ööö*'‹ÅmmmÊÙTn…=$¡ÂµÔûYãïÿsCÊÿÛñÆo±À‹£G>öØcüq{{;ÇU²²²vìØAþ¤Ÿ37nÜ iuoÇàWŸ>}˜lUZ±bÅŽ;.^¼øÔSO‘ŸÇÈDìyyyžžž*Wôðð`fóðð`þ¯º1.!éì°¼ûÙÿk`¬‡)ä|Í×ÀœšÁòŒ%ihhˆí×¯ßæÍ›Ø3ÿðÃÏ=÷é˜xýõןxâ ÃǨو#¾úꫦ¦&–<µµµ‹/&¾þúë† º.#¿îÞÈ›­DGG/^¼øÁƒµµµ±±±*󄆆:::®\¹òÍ7ß$ ß~ûíŠŠŠŠŠŠØØØéÓ§Ó œœrssIžÈÈÈeË–UVVÒÙ"##Õ…Ál\BêâºÎId´=5Æ;/AhŠ‹‹W¬XѧOŸ)S¦¤¤¤\½zõáÇ---eeegÏžMJJzüñǧOŸNú#?ùäÓ†M\¹reöìÙ½{÷~饗¶lÙò믿J$’ÆÆÆÎÎκºº«W¯&%%]¾|™Îð¯ýË´1€eSù¸²ÅlN€„0Þ^uëÖ=öØcC† éׯ_@@€ºlï¼óNqqqXXY6xðà€€OOϸ¸8’-44”Ü&$$xxx 0`àÀÞÞÞ6là1¤.«‹üpNöÎÝ "uÏóp_Ÿ²ôãaItnRO>ùä‘#GÜÝÝ5kœ)´Úooï´´´AƒéŒ¶ù1_€>p…)4Â<"ÂŒJ+»ví*..NLL¤ÿÔóÖ̘ð˜Z@sâÎ8;Ëÿ| dýõׯGŒÁ|%»Aƒ}ýõ×çÏŸW×Ñ d"‘hæÌ™YYYê:L¢®®nç΋-2u е:CmËåºtž¡ËÍÜÕÕÕýþûï—.]ºsçν{÷JJJZ[[zôèáææüøã?þñÇ×Xšñ‡”––^½zõƹ¹¹yyy¥¥¥ÕÕÕÍÍÍ2™ŒÄÿä“ON›6ÍÛÛ[hÁ;¯ûu»FÕÿÊÖ⯅y'&̨8‰DVVV;wî|ë­·˜ Ítwøbªcʾ]åãbGÊHC´Ý€@e±€ Êxïk`¿nÔm-ÝrÒNŸ>½yóæsçÎ988L˜0aëÖ­< ÕöZKð¼«fT “S§ 9G”&ÁËÖpS¯Ý3ÌW€à¬³ Û…«á.w·lÙ²téÒªªª¿þú«W¯^,ïÐ÷ õ˜˜‰DBQ”D"‰‰‰á1³Ã嬱¤[`ãì ×¾A½„FP!€ÑœøàGGÇÙ³g·µµÑ [ZZ¢££É'ÉßÑѱ|ùr777ggç­[·’Òè‘HäææVUUE2»»»WVVŠD"å­a•P*7d*r¹œk_Æ2€@Ìœ93..®¡¡!333++‹,OOO?þ|mmmDDÄܹsyYKÙš5k*++ nܸ‘‘‘A–oܸñÊ•+ÙÙÙååå¶¶¶+W®$ÿuùòåììl©TªPÔ™3gžxâ :QQQQ1hРeË–ñ¶2ü€§'ݪÎhŽ#k8™™™999ùùù¥¥¥k×®¥®Y³¦¦¦¦   '''33“dŽ‹‹»yófvvv^^^QQYN,ÈåòÈÈÈäädzaFFƨQ£ÜÜÜTn…¾%Wwo®nC&£ün^å÷ô²ç12­âóÂåÏ××wûöí……… +VUUÑ馦&±XL–ë³–2//¯{÷îÑéÜÜ\’ÓÏÏïæÍ›tº¬¬ÌÃÃURR¢\Ε+Wú÷ïOŠbjjjrssÓ!lÁÑÑÑôÝHaaatt4KNa^u !*u°¦ÛZ:äç¥~ŒYÉ&9¦7J1îíI‚ù àååE§½¼¼îß¿O§ïÝ»Gò{{{çææ*K>òòò|||ÚÛÛårù‚ 8À²–hUnˆe¿ ZÛ”º¹!2ï…J ýsB ô¤qЏ¬¬¬ 6üþûïöööüqDD¥táª|A«ÛZÊÄbq[[›••EQR©ÔÚÚšÎIr¹\&“‰D"™L¦®¨ÿüç?³fÍúñLJN/¹téһロM?|AV×*l•²ÀÜzÆ CF»ÃÒsC1116lðõõ-**Z³fÍÞ½{ù M5ΠɲQ•sCJ¥Rò `ooßÑÑA©ÿd‹Å­­­ô#TÊÅÒÞxãðð𨨨Aƒ]¿~ÝÎÎNÝVØ?š”7¤óŽëI$©èÉ ÿÿž >¨Ü S|â~—ššêééIÖR(Dår×"¼½½UŽkðññ‘H$Êù•‹Ú¿¿——×Õ«WŠÝ¿MML&«««Ó-lÁë@˜—ÜFŽ*555((ÈÚÚÚÏÏ/%%…İ{÷n???kkëaÆݸqƒ,×g-eíííË–-suuurrÚ²e‹B~Š¢6mÚDO2kÖ¬ÖÖVö I¥ÒU«V¹¹¹ÙÛÛGFF666’üÛ¶móññ±²²’Ëå‰dÊ”)EMž‡¯rúuâ>±ˆÅÏè!ÿï8mW|ûí·é©Ubcc§OŸN/œ6mýŠ™ÊÊJ2ß EQÑÑÑ‹/~ðàAmm-óƒ)44ÔÑÑqåÊ•o¾ù&ûVœœœè.N3x.2*cvlè‰Ë^€¹Óx·oß¾ÀÀ@±Xœ––FÖR(D!¡ÛZÊZZZbbbìííÝÝÝ?üðC’³³³sãÆôÏÈC‡=tèºM(hhhËåÇŽëß¿¿X,صk—Îaó~‘,Ìëm#GeÚ)BاÔ?دrC'á>£_LÒÒ4nTù3¢¨>ø€HÓÒÒB/ojjš1cýÉ””D?C!—ËÛÛÛccc]\\œ·mÛ¦Pqüøq???™Lƾ•„„„îÝ»«ü¤R¹!w\Os¾!<òÄŽ¥ÃIÈa€V„]Ú¥óp9*“OÂòÀ?ÇûÉŸZM,bÌùû„9_ƒnîܹóÒK/åååq_e×®]ÅÅʼn‰‰$0ƒV…ækèF^ÎÉìÞ ö‘-<°LkĈÇŽ«¬¬LIIyë­· º–²>}ú°ßµæççÓ‰¼¼,++[±bݵÄQ]]ÝÎ;-Zd¸ØŒL®r¾"¿Öš:J¤ÄÔéBŸ½æ ã3í!ŸÃWù`¿:'>öØcìÙ³g||<ǵD"QïÞ½—,YÒ·o_ƒ†gdb³øà`~ *LþK€¯ç³f——–±¦õÊ+¯¼öÚkÿý÷£>úÝwßt-eëÖ­[±bÅ!Cär9sêG",,lðàÁS§N‹‹c/mÕªU"‘hܸq%%%AAA«W¯Ö90‹Á×½ä¢E‹t› rÓFx€Â DærÎå­§ìÀ¼àÏä„|„›‘™Ë=F¦:¦]°-a—E"‘Ø,jVåXæBÇ`rÆy ó5€@ gÖ†®É,~’´<–1Eˆyéš5F8µÍc¾æ3èÆb†ˆ›‘®vß%:4uœ|é 5F;µE"Æ5€@‘ë~Üú©m‹¿ï u‘#ŸÚÝÌqdŽ9Æ :è"÷ÂŽ蚺Nƒ7Ξb¾:t7 :Ý_M”—rp¾h‹LÜ`yUGvʘ§v7¹\nv%æ3è Ý F€Ž.LÛ!L–´wùQc’Só5€y`ÞXÒm€0« ìt«K­Õ˜˜‰DBQ”D"‰‰‰1u8ü°¤îÓžÚ˜¯Ìsp+.y¡p+b©·ÄìNž<lccãïï¿gϲ<99Ùßß߯Æ&$$$''‡^HªK·µ”utt,_¾ÜÍÍÍÙÙyëÖ­ìåtvv¾÷Þ{îîîQQQMMMì…в²²¼½½?þøcua+„Gþ‰DIII...žžžGMJJêÝ»·§§çéÓ§é Ë—/§(jéÒ¥ ìõlF>gÌñ£F!lãŸÚ˜¯ÌŒrèL¹J» ™3gÆÅÅ544dfffee‘åéééçÏŸ¯­­ˆˆ˜;w./k)‹‹‹»yófvvv^^^QQ{97n¼råJvvvyy¹­­íÊ•+Ù ¡(ê§Ÿ~š8qbrrò’%KXÂV§¼¼\"‘$&&Θ1£¼¼¼¨¨(11‘î_ Ñ­Hd†wãìï_L IDATN SŸ©ZS·#ÆdùoK%²¸;#3ß{Ýùùù-[¶ìÕW_õõõe–_UUÕ»woŠ¢š››{õêÕÑÑA/§7ªÛZÊ|||ÒÓÓyä…½SYŽ¿¿ÿ‰'‚‚‚(Š*//2dHYYK!~øáŽ;Ž;¾³ ÷Õd–Äêêj—¶¶6;;;’vtt”J¥EÅÄÄlذÁ××·°°píÚµ{÷îÕ²îÿÇ”_fú9cÚš±4zaâñ¾4++kÆ ¿ÿþ»½½ýÇA±Þ~Ó ÝÖR&‹[[[Åb±ÂÞ©,ÇÚÚšNÈår™L&‰d2K!ýúõ‹ŒŒd>Ý sØêÒì{§Áö5ð®+ìéÿ ®0¯ýì ÇÔ1ÄÁÉ“'gÏž]ZZJiÓk ÛZ„º! *Ëñõõ½xñ¢··7ÇB$ÉØ±cçÏŸ¿bÅ –µ¶¶®¯¯···§(ªººÚÕÕU«¾¾t…»<‘IçP02Ì×EQ---?ÿüóòåËŸ}öÙ€€€=zˆÅâž={úùù…††Î›7ï³Ï>ËËË3u˜‚¦òù(å#ûóÏ?W¬XÖ§Oåc„#kÁ wà4¶+Е¼ˆŒŒ¼}ûv{{»L&ëìì4èZÊ¢££/^üàÁƒÚÚÚØØXöÌ .œ7oÞýû÷¥Ré­[·¢¢¢Ø ñööþí·ß¾øâ‹¤¤$–°‡ òÑG577/\¸Pç} ßVßÑ@Qÿ+º¬‚‚‚E‹uïÞ]cS‰DcÆŒùæ›o¤R©©£".§_yÀhšššØ_àDgѵ`†8pÛh„JèÊx<÷÷íÛ(‹ƒƒƒÓÒÒHù ›SHè¶–²öööØØXggçmÛ¶±—ÓÙÙ¹qãF???kkë¡C‡:tˆK!¥¥¥=öX||¼º°³³³‡ &‹}||>ùä•a«KóÈR?Ï»æw=…¹!»²ÎÎΤ¤¤ÄÄÄÖÖV­V Ú¼yóøñã ˜™âÒOÉW0š)S¦>|˜%ƒü¿# –(Ñ5S†8pÛUW£CUã´èʺÂxû®ÆòŽ)˰;KÚM•0_C×U__ÿꫯfdd%ÎÎÎãÇñŇ æêêêêêÚÑÑQZZš“““––vðàÁÚÚZf ¨èk°<Ï=÷¶±±Y³fÍÔ©SýüülmmrâÈZ0Þ÷vÕÕ ¯´‚;ËcIÇTãÃ}–±›ìÐ×Ð566Ž;öÊ•+ôŸo¿ýöÊ•+{öì©n•æææ”””„„„‡ÒKPÿ Ð×`ybbb¾þúk:””´jÕ*u9qd-ïŽ{»êjÐ×Z1Ç;åûOóŠßÐÌñ˜*ã8…¹ï&x†¢Ë‘Ëå“&Múå—_è?=<¥áÈš)Þ¿íÊ’à­XÆ})0YÒ1eïq°Œ}d'‰ðŠ.'%%…t4¸¹¹]¼x‘cGEQÇ÷Ýw €€Ðo¢ùøø˜0°$hW9Eb—%6ÇÞ#sŒY êêêV¯^MþLIIÑö'5‘HôÁ8::ò€à444´µµµ #K‚vÐuÈår‘HDÿkêXŒJ.—‹MÕ'Ÿ|B&\xõÕW_}õUÝÊY»v-{†œœœcÇŽ9s¦¨¨¨¢¢‚¢(www??¿çŸ~Ò¤IƒÖm»E:tèĉ‰¤¬¬¬±±ÑÆÆ¦­­M9gSSÓ©S§RSS¯\¹RQQñðáÞ={zzzŽ=:<<|âĉVVV:‡ad‰äÀ¿üò‹D")--µµµíӧϨQ£¦L™2~üønÝt ¤±&KJJ._¾|ýúõ;wîäçç—––ÖÔÔ´´´ØÙÙõîÝÛÏÏo̘1¯¼òJhh¨>»Æý€v5<6àßÿýðáÃW¯^½wï^]]]KK‹­­­ƒƒƒ‡‡‡——×c=6tèбcÇúûûë³qÚLqqñ_|qúôé;wîÔÕÕõèÑ£OŸ>cÆŒ‰ŠŠzê©§¸—#“ÉNž}úøøø¼üòËo¼ñ†···>Aš¾ª”¢(©Tú믿¦§§Ÿ?¾¬¬¬²²²­­ÍÞÞÞÕÕÕÇÇ'((høðáÏ>ûl@@€ö…á¾›x©C£ªÀ;úfÒ8kéiÿþý±±±øáÖèCÜu«Zçf‚Ù‘Éd~~~äÐÿç?ÿ1ÄVîß¿?yòdöV7eÊ”¼¼ýôS–‚‚‚222xÜq.§•yZ[[/^ÌÒ›0räÈk×®iÇšd©=¦‰'r9šÚ†B–ÄÅÅq)_.—¿ÿþûd­Žké°×d/Tî—ÝgÁc¾víÚÈ‘#µÝqÜÎmF*•®[·ÎÆÆF]É“'OnhhàRòµk×FŒ¡®++«ØØØÖÖVå Z3 [ÑvÓ\ò®J;;;¿úê+Žcåô¯m«ÈpßM¼Ô¡‘OUË ¨3B]$ìê¶–nH™>>>.\à˜ÙÈuLõ§ü¹Ý¥>É»Ê~¼x‚¢¨GyÄ›øí·ßzõêÅåRÉÙÙ™ËÇÑØØøÄO¨,ª[·n̵êêêÈûäØuëÖí³Ï>ãkß™%ó•§©©éé§ŸÖ¸#vvviiicã^“\êæîîž••¥Ui #%%…,ñññ‘J¥Ë—J¥^^^d­ääd«°©‘ʵ¸”Ì øÌ™3ööö:ìŽÎ¸oK‡6ÓÖÖ6iÒ$%=šî#`qòäI./˜ knn楊¸× eľ«´®®nâĉ:ì£Î•£U—:4þ©ÚEp¯Ò.ÅÔ‡…O‚Ú#Ý"1Iü"‘H&“©ûßèè袢"Š¢ŠŠŠ¢££—\.°cÊ JÍWž©â1&sýÜ1ǘ…àƒ> G|áÂ…¼—ñâE;;;²‰^½z­]»öúõëuuuõõõ×®][³f óµšöööüñK̯ÆÈÈH:1xðà={öüý÷ßÍÍÍ ¯¼ò Y¥¾¾þñÇ'kYYYEGGŸ8q¢´´´­­­¬¬ìÇ3f ³äï¿ÿž—ÝçòE®mžéÓ§Ó —õë×߸qƒ®Ì7nÄÇÇ»¸¸œvvv,×Ç:Ô$YË××÷í·ß>xðàÝ»wkjj:::*++322–,Yâàà@Šõòòª©©á^EÃhhhèÞ½;ÉüøqöÂårù±cÇH~GGÇúúz«°©‘ʵ¸”¬. ¸¢¢‚ÙBúöí›ðÇTWWwtt466¥¦¦®]»öÑGeŠ;ºµ™9sæÐ‰ÐÐн{÷æçç·´´<|ø0--í…^`æü÷¿ÿÍRæ… ˜ ½{÷Þ°aCNNN}}}]]Ýõë×ãââœéÿ1c—DZf8R¹–¶[á’‡¯*­««Sxú ,,,%%åÎ;µµµmmm%%%éééñññAAAÊáéV9ÜwÙ ßMúסINU‹¤UC&S:Ý™*þÔÔÔ   kkk??¿””ÌîÝ»ýüü¬­­‡ vãÆ ²\Ÿµ˜®_¿Þ¿ÒM “ÉúõëwãÆ ©TºjÕ*777{{ûÈÈÈÆÆFRȶmÛ|||¬¬¬H™ÌCïêêZYYIgnoowss«¨¨H$S¦L¡(jòäɉ„ïÊÓÀÜÛ$¿ƒLfù)cŽ1 ÁÔ©Sɇ˗_~ÉoáõõõÌ¡³!!!>~ܸq‰¤¾¾>&&fÑ¢E¤ÈÈHÒ›@Ê$‰Å‹oذNŸ:uо֒H$ô-˜Þµ¥óm ,fGô„*èB˜ï¶Tw£3æÕ’¯¯/=ߌJ¥¥¥}ûö%™×­[§.§Â·ào¼ÁÑ#GHæž={Þ»w%ó¼yóHæÙ³gkÚ?͸|ak›‡¢¨°\zVWW3§X‹çR¦ÆšäîîÝ»ä—j–»¸zõ*ÉleeUTTÄ’ùÁƒ̹/]º¤Ëþ¨XÿœóðÛ€™çûo¿ýÆ¿1éÓf–,Y¢.gkk+s>ò“‘‚õëדþøãÚî…Æ€õÏ©1¿ ˜ùtzKK {iF¦[›qwwW7r‡¶nÝ:’yÆŒÊè7MèvrqiñÛ®´ÍÏo•Êåræp€?üKœúįÕ*FønÒ¿…|ª ï'&˜c•š*ÚË—/‡‡‡Ó¯×9rä F!6…„nk)xøða¯^½ª«««ªªœœœès±XleeeeeEÏ·Í|ñÆÂ§Núí·ßvvv2?‚LÕ Ì«;óûL¡™cÌBÀ|D™ý·DmýôÓO¤äjÌ/“ɘ?=zTe6æ×žÆßÀ™3_zzzª»FdZ¼x1YEÿ‡J¸|Ik›'((ˆË¦ÉC¼EýòË/ìeò8¨vöìYRøüùóYrêÆž={È*ÞÞÞêfˆìììdþx¸sçN]ö„5`ýs²çá½3gÅW9hÜ„tk3«V­b/ö·ß~#™ƒƒƒ•30ût8¹46ŽømWÚæç·JÏ;G2¸¹¹qi·zƯÕ*FønÒ¿…|ª ¿§$0™WÝš<ÔÔÔTOOO ó¿(õ½º­EL:uûöíÛ¶m‹ŠŠ¢—øøø¨|ØKáYYY¡¡¡çÎãåáSý™ü˜êÏÜãç—Úéåioo'iæ¬{ú»páIO›6Mc~‘HD¦TX]3œ§§§“ô¤I“X^?FŒ7ޤÿýwù9Å f3/ýUÒj®x.ÈdoEeggs\‹c‘‘‘=zô Ó<8qâ„ÊlgΜ),,¤Óööö óù™Þ°§§'I3çwÝÚŒÆ×s’tEE…ræÙ¡ÃÉeyô¯ÒŒŒ ’ž1c—vkLFønÒ¿…|ª “H$¢rõS€ÎH­’ze‘‘‘·oßnoo—Éd]KÙìÙ³?ÿüó/¾øböìÙô’… Λ7ïþýûR©ôÖ­[̹Ÿ4 utt\¹rå›o¾©sHêüÿWÜ™: í˜cÌBÀ¼ lllä±ä?þøƒ¤™ãÀY0³]ºtIc~æ­*1ï"¸Ä0dÈ’fþª,Ì©Y0'±c •4Ö¤¶˜3¨—••q\‹cÝ»wg~e2_„ÉôÙgŸ‘ô”)SÈÃf„÷Ì,$%%e̘1GŽimmÕ/L~èÖf‚ƒƒÙ30Ç¢×ÕÕ)g`ž:œ\–Gÿ*ÍÌÌ$i./è52#|7é_‡B>U F€î^yå•×^{ÍÑÑqÕªUß}÷A×RöüóÏ×ÕÕ566>ûì³ô’U«V………7ÎÁÁaÆŒ¯½öšV¾óÎ;ÅÅů=@#|:"úyS‡FâææVUUE§ }}}ù*9    €N0G³«“ŸŸOæïׯßßÿ­œ‡ù%WUUÕ»wo–ïÞ½K§ÿøã.wÍÍÍŽŽŽtÚÛÛ["‘h\…3Zu§•¶yŠŠŠ|||4nº°°ÐßߟN«¬L­jRASSÓñãÇÏž={ëÖ­‚‚‚†††††™L¦2s=êëëÕ¥[×®] ¡ÓݺuËÏÏWhºååå>>>ôŸçÏŸÿÇ?þÁ¥d¸/î9ÙóðÞ€¯\¹2jÔ(…#åààðÔSO………………9’ù\ ÔfZ[[5Ì^ÉýúõËÏϧÓ:œ\*ËÔ¿íJÛüüVéÀïß¿O§ÿþûoæt íþj\ÅßMúס OU³ƒŽc2‹Ú¦ƒr„fa×®]ÅÅʼn‰‰¦„¢Ìù˜šoä†ó_VƒWæ³0IÎÎÎæ±d…ßm¸¬R[[KVqvvV™‡ÙXé9rY¸ºº’Ì666¶¶¶666666ÖÖÖÖÖÖb±˜ž8§[·nݺu‰D ½õŽŽŽZï¶úhùÊS__ÏeÓÌßÊTV¦V5I466®^½š¼2€ 2‘Æ]ã†\. %+®Y³Fá7mÚDþwРA܋ՈËñâž“=!ð–-[X–½½ý‹/¾¸wï^ö™í´bÐ6Ã%öüÌ/:œ\cÐ3HÝrrÏÏo™ÎÎÎäõŸH‡ªf_ÅßMú)7Å©jŽ´m ?á×¹ÀÃ3 µµµ>úhqq±©ùÿÌ÷˜šoä%ô•Ì1f!˜2e ùÚøê«¯x,™ù®Au³÷) ¿BSE^ð£@«ë9±XÌr­Æ…vû¬S´ÚæáX™R©”½2uØÍÒÒRæôò¼T£ÎµÍ|DBá]2™lÀ€ä·mÛ¦UÉ츬í‘Uþ_5àcÇŽõïߟ}ž}ûþðÃZÕŒJBh3ìùuø¤bž\cÐ3HÝrrÏÏo™Ìv˱JuÞ–«ỉc~cžªfJ«†|xµ <<ý)ð^¾••Õ®]»ø-VL»Ì×Ð…0_xùòeKfÎ4ÙÔÔÄef62ùŸ>´ú)Õ\477sÉÆœ}ƒ—Ê”Ëå“'OÎÉÉ!KÆŽ»uëÖß~û-//¯¾¾^a¶yý·ÈŽ9CdIIÉ/¿üBþëìÙ³d·­­­ùÎld ~çΟþ922ÒÝÝ]ež’’’¨¨¨„„}6$´6£óìÐáäe={ö$iÖ•¾›82Ú©j¦08ÙTè:ÇÄ ¦¢|çÆ{ùR©ô­·Þâ·Ø®'ˆ:"‘Hß_ÒÀŒ0§ËfN®?ggg2Ò¸¦¦†yõ©ÎÇ™«ëƒ««+yêûáǼ”ir555\.výê¿Ýýû÷_¼x‘N;88üôÓO/¾ø¢ºÌF¸Ápttœ>}zrr2ýçž={"""è4sÈÃk¯½¦ÕT‚b¸,‹'Mš4iÒ$Š¢þúë¯sçÎeffž9sFaJüµk×>ÿüógLT&´6£’³³39Yt8¹NŸYÍuæââB>Ì«««™Ï,¾›¸3Ω <¢;0¢:*žû>sŒY†NfÆÊÍÍe¾ô[OÞÞÞ$}ûöm.«ÜºuKåê¼Ä r6/s¤Ceò2åçHzÍš5,7E‘ G jÁ‚$––F¿á²ººú§Ÿ~"ËçÏŸo„H Ä8 ø±Ç›?þwß}WZZš‘‘Á<²r¹üã?Ö¹d¶e̳C‡“Ëø˜ßt Os(«©©1p8*0'μqã†ñ`'„ï&ÝîT5GÔ pEjy¨ÚÀ‚>AûeZr¹¼›©cã‰DóæÍ#îܹ“¯’™/ ãøt†¯"cÇ|Uó5lfMã ,iÌ:çåÇ®«W¯’ôo¼ÁžÙ8¯ :tèˆ#è´L&£‡3|óÍ7mmmôÂ>óÌ3FˆÄ@ŒÜ€»uë6vìØS§NÍ™3‡,<þ¼Î °Í(cž:œ\ÆgooOÒ ì™MÒÇÊl·Ì÷¶ „¾›ôÄû© ††[‹§[· :k,’À{B…ó5t-‹-"ƒBüñÇcÇŽéVÎúõë™>õÔS$½ÿ~.%ìÛ·¤yyCá¸qãHúàÁƒú(w„Y缼⾲²’¤5þ²wâÄ ý·Èsh×_~)•J?ÿüs²„ÙfŽLÕ€W¯^MÒååå:—#Ì6£€yc¬ÃÉe|žžž$Mæ%Q‡Ç¡jÜ1ÍûþûïÛÛÛõ)9•£º—¤jEßM|áëT5;&¼”oii‰ŽŽvttôôôüè£ÈHiÔÿŽ·e&’’’\\\<===š””Ô»woOOÏÓ§OÓ:;;ß{ï=www‡¨¨(•SŠttt,_¾ÜÍÍÍÙÙyëÖ­ÆØmU0´ ëƒP˜`£5 rú›:á‰D˜ç³ËÙµkiùùùZ­.“ÉV¬XAýït5mmm¤ØãdzrèÐ!’ÙÓÓSÝ뙕K`ƒ&ùOœ8Á}§xÁ%ZmóP•ššÊ¾]f‡‘Â;´Ú.ó¡ë²²2–œ<°³³ãX¾¶a(hlld>n½lÙ2’¶¶¶.//סLvÜÖÿ蛪·¶¶’:99é\Ž@Ú {þŽŽŽ¾}û’ Z\:·[mƒdš8q"ɹyóf–œR©Tá-úoc~æÛ”ÙƒÔˆÙŠõOßM:äW‰¯SÕìðxêikùòåáááååå/¿ü²BŸþyLLŒü¿Ã§ Šñ“XlllccãçŸîèèHÒÁÁÁt†øøøqãÆI$’úúú˜˜˜E‹)Çðïÿû…^(**zøðall¬Aö“&‰J·- °öØ)]TTDQTQQQtt´A·kFueF¡š_~&aŽ1 ‡L&£¿2i}úôÉÉÉá¸nYYÙ„ TÖÿÚµkI™ýúõ«®®VWHEE…ɼ~ýzu9µ½>cþPéááQXXÈq¿xÁ%ZmóP5`À€ššu™«««Hæøøx·Ëļyسgºl/¼ð‚BÀ,Åj†2uS%O™2E·Ùq˜—£o’Ì1>|øpËH›Ñ˜?>>ždÐêäÒ§Ýj$ñÑG‘œƒ byk#s¿ôl‡ÚægNÕaggwùòe.Ū4pà@RÔíÛ·y OßM¼4!¾NU³Ãã©§-//¯û÷ïÓé{÷î1øxñâÓO?ÝÚÚ*gík ÛÝODÒVVVt??¿›7oÒé²²2å¼½½sssùÝ/ݘð@°0tT©©©AAAÖÖÖ~~~)))d£»wïöóó³¶¶6lØ7Èr}ÖR&•JW­ZåææfooIz`ÕÕÞÞ¾lÙ2WWW''§-[¶ÌÛ¶m£?Ü\]]+++If777zêÙM›6ÑãkfÍšEZµÂ§–D"™2e EQ“'O–H$©ò‡â²²2æóçlnnÖy»Lï½÷Éïîî~ïÞ=å­[ì¸Ì×Ñ籇††~ùå—ì?×ÔÔŒ9’l1))‰}s,Òf4æonnf~RýãÿP9"¦´´”Y3ZÅ DQQ‘Xü¯‹Zµj•Êl»wïîÖMqö%ý·Î=?ó°öèÑãÈ‘#,ž;wnìØ±*ÿëõ×_'ålß¾—ð„ðÝÄžßȧªÙáñÔÓ–••éàëèè a6ìÁƒ$BæZäOær•i±XleeeeeEŸ¿ô<öÊ1¨®h|&<, •««ë¡C‡Z[[ çÎK6úúë¯K$’¦¦¦õëד¯`‰nk)S7òE]Q*GÁPIw1,^¼xÆ ôòS§N½üòËt†—^z©¬¬¬¼¼|üøñï¾û®ÊÀ$ÉÔ©Sɦu­QÍ„ÙÒ˜Ejê¢êêêÆŽ˼rvvž>}ú7ß|“““SZZÚÞÞÞÔÔtÿþýüqþüùʯþR.óÒ¥K̙̜ׯ_Ÿ““S__ßÐГ“çääD2888\¹r…%Hm¯çärySS™Aöì³Ï~öÙg·nݪ©©‘J¥uuu………gΜٲeËĉIÀºT¢öÑj›gÆŒt¢wïÞñññ¤2ÿüóÏ 6¸¸¸œvvv.\Ðg»L%%%d•?Lªò IDAT^½zmܸñöíÛ­­­·oßÞ²e y&æÌ™Ë×á€*S¾ìׯŸL&Ó¹@ÜæëèóØ€éå¶¶¶&Lؼyó™3gŠŠŠ¤Rimmí•+W6nÜÈ|   ¡¡{å(H›á’ÿÂ… ¶¶¶$›««kBBŸþÙÐÐP__Ÿ““³~ýzò‰GÎAî1ð$¡ðv•W^y%##£¶¶V*•û,77·¾¾¾­­~™B||ü AƒXŠÚ»w/)¡W¯^ÉÉÉ………êdàžÉ¿›ØóÓËvªšîõÌ»¾}û*khmm}úé§ÏŸ?ÏŒ¹ù“¹\eÚÇÇGã=Æ5°3tT¾¾¾Û·oWfHQTUUnjj‹Åd¹>k)S7òE]Q*[ EQ%%%t://ÏÇLJþP]°`Áè äçÜÜ\///•‘g( ñ …Y)¨¦.M*•®_¿^áÁi.|êÔ)•ež;wŽyÅÆÂÅÅåâÅ‹ì2ós߯¦¦&Óà+Ó¢âôˆVÛ<ÍÍÍÌÙìÔ±³³SwD¸oWÁ¾}û¸ÌvóÜsϵ´´p,Ÿ— ÿâ‹/bHLLÔ¹4vÜæ’“ci|5`­V÷öö¾uëÇjQGm†cþ“'O2»Ôyæ™gš››µ¯ iõõõ ·ñ*…‡‡+ÌËÈËֹ篭­U~:†…ÊBš››fи"ÇðLûÝÄžŸ[…ý¼œªæ…{=ónÙ²eááá•••ááát111ÉÉÉÌlNNNwîÜ!’h™a«L'&&Ž?þÞ½{7oÞŒŒŒTμzõê^xA"‘ÔÔÔ,Y²„ç=Ô†  CGuùòåððpWWW2bKa‹ÊG\·µ”©ù¢®(•£`2O:õÛo¿íìì lii¡30Çï°w‚¡ ³¥n´û²sŒY°òòòÞzë-GGG—8"‘hìØ±ßÿ}gg'Kÿý÷äɓًš:u*—9)™«h»_ärÎã)À¥4ò´¶¶.^¼Xy€41bĈk׮雲#GŽ0‡N(‹Åï¼óÝ;α|^*¼©©‰9C¤X,V9"šÜæëèú7`Ž+ŠD¢™3gòU‡&o3Üóggg3%S`eeÛÖÖ¦C <I«¨¨`¹·¶¶~ÿý÷é+E.%®J¥Rirr²———ºP¹uóæÍGy„ûŠÜÃ3áw{~.ÕEñ}ªš î•lMMM3f̰··wwwOJJ²¶¶–+/¹\žÐ½{w§rB]º³³sãÆôS÷C‡=tèræöööØØXggçmÛ¶po51í±PÇhQ¥¦¦zzz’*Ä r¹ÎkêF¾¨+JݸæŸYYY¡¡¡çΛ3gÉÀ×àíí­10ƒfK£ 96Á‘Zãøm'x—)ïZZZN:•™™yíÚµ‚‚‚ªªªÖÖV{{{gggww÷Q£F=ÿüó¾¾¾ üóÏ?=ú믿Ò/Ãsssóóó{þùç#""8ÞD1#ÕápËåòÌÌÌ_ýõ·ß~{ðàAUUUSS“½½=ýÞ©€€€GyäñÇ eŽPÕ —huÎSTTtàÀ'N•••ÙØØôéÓgÔ¨QS§N?~9mÚ4¯¨ÔŠiÛŒVùe2ÙÉ“'úè£ãÆ›;w.ùd6D;Ô6kkkZZZZZÚ¥K—****++e2™ƒƒýß AƒBCCÇŽ«<ï&ÑÖÖväÈ‘ãÇçää766ÒÊ«ŒAÛðLòÝÄžßT§ªYÎõÞ;w^z饼¼øàú=111ôƒr¥;F#Ì–º¡( }3`NvìØñöÛoÓi__ßüü|Ã:À™üÎO?ý4>>¾¹¹yÒ¤I)))ô­W×dòc¡’0£¸]»v'&&Ò í‡zaSaF%|"2®Ï¼êÇ kª©©8p`uu5ýç† Þÿ}Ó†‚ë=áæ±fTBVWW7zôèôôtæ#‚ª@aSaFeÄš³ÃÊ•+IGƒÝ‚ L€ž”ßâdˆÛZ‘HdeeµsçNý')ëjÐË 3±9Ö9Æ z:vìØgŸ}Fþœ5k–››› ãПqnmTnwUì„6îüˆP} |õõõßÿý;ï¼ÓÜÜL/qtt¼ÿ¾§§§iÃÑyܲn×·æ{Ul„È…9†\˜Q>uLÍt¶á‰DbAQŽÌ1fÐò¨BÚæÍ›ÑÑZ±ø>‹ßAc’Ëå8;ô!—Ë1;˜™+V,\¸ÐÔQ€™ÑížÁŒî4´ 5&&F"‘P%‘Hbbb “ÅQ÷+ˆ!Öâ·Ð ~ÛæE7òöK3bŽ1€>lll|||¦NzöìÙ?üÐÔဠœúˆäììì|ï½÷ÜÝÝ¢¢¢šššHQ*7Á’ûöí¾¾¾b±˜¢¨üüüˆˆˆ=zØÙÙM˜0¡¢¢B!:Ñÿb)?!!aùòåE-]º4!!A«š¦êƒ0• 6ZÞu=5(‘H„q \òÿjkk+**:pàÀ˜1cLÅÌ™3ãââ233³²²ÈòôôôóçÏ×ÖÖFDDÌ;——µ”­Y³¦¦¦¦   '''33“,߸qã•+W²³³ËËËmmmW®\ɾ –ü—/_ÎÎΖJ¥E…‡‡ÇÆÆVTTTTT 4hÙ²e*£"_Ÿþ9=Z¥|Ò=¡qgešéjC`Ì帘 ¹Y1ǘ€;.×{¾¾¾Û·o/,,TX±ªªŠN755‰Åb²\Ÿµ”yyyÝ¿ŸNß»wäôóó»yó&.++óðð`ßKþ’’•›njjrssSˆêÅ‹Ÿ~úéÖÖV–ò£££‹ŠŠ(Š*,,ŒŽŽV·›r¡^{:ªÔÔÔ   kkk??¿””²ÑÝ»wûùùY[[6ìÆd¹>k)kmm‰‰qppððð GtÒË¥RéªU«ÜÜÜìíí###éåíííË–-suuurrÚ²e )Û¶m>>>E¹ººVVV’ÌnnnôИM›6Ñc^fÍšE7å›D‰D2eÊŠ¢&Ož,‘Hx¨\5LÞÒØÎÍÆ5€Y:|øpzzúðáÃ}}}=J–÷îÝ›N888Ѓô_KYYY™¿¿?& ТЋ‹‡ "‹­¬¬<==™;¨ÜKþ>}úô¥K—ºwï.‰«ªªÔVRR²hÑ¢}ûöÙÚÚ²”¿wï^ú.Ô××wïÞ½÷·«1ù¨™ÊÊÊ‚‚‚7ndddåêF©ÄÅÅݼy3;;;//îB¢ÑCcärydddrr2½0##cÔ¨Qô»Ã333srròóóKKK×®]Ký÷W}ú^‘”Óu†Àt…}4Svt¨¢Õ•jjjª§§'YQ¡•Ëu^‹èÛ·¯Êq >>>*ûU· Žù½½½÷ïß_SS#“Éêêê”#¤­­­O?ýôùóçÉŠêÊçN˜w †ŽÊä£fîÝ»G§sss)M£f¼½½sss ¡Ccòòò|||ÚÛÛårù‚ 8@g`nÅËËKe`܇ÀèÉä-M€íÜ|Q…q `–"##oß¾ÝÞÞ.“É:;; º–²iÓ¦-]º´ªªª²²’9{ÂÂ… çÍ›wÿþ}©TzëÖ­¨¨(ör8æoii±±±±··/((˜?>KiÓ§OÿÇ?þ¡s<@3ù¨™€€:ݯ_?²\Ý(•ÒÒRf6‚ xâ‰'8 “ÉΞ=;iÒ$²œl¥¼¼\e0]gŒ35‚©{=´cŽ1w\®÷öíÛ(‹ƒƒƒÓÒÒÈŠ å($t[KYSSÓŒ3ìííÝÝÝ“’’¬­­éå7n¤Î:tè¡C‡Ø7Á1ÿ±cÇú÷ï/‹víÚ¥!¥êN‰¥|î„yím´¨L2jÆÛÛ[å¸u£TÔk`þ™••zîܹ9sæ Ì­x{{k Ì LÕÒ„ÙÂ-€ˆÔ,=Æ‚÷X6óºÞ»sçÎK/½”——gê@ B˜ÇÂÐQEFF®Y³fÀ€gΜ™5k=‚@$1·Hþ$ ÝÖR¶råÊ[·n}õÕWr¹<::úÔ©StÎ7ž;wnçÎþþþ¹¹¹‰‰‰?üðEQï¿ÿ~VVÖ_|ѽ{÷uëÖíØ±CeùÏ<óLGGÇÆé{‰D¢‰'~ùå—EEGG2dÓ¦ME9;;_ºt)00Ï åÀ„-åX€ÎºÑ]¦C;æ3X˜%K–<|ø°¬¬lÅŠ¦øôÊ+¯¼öÚkŽŽŽ«V­úî»ï º–²õë×»¹¹ùùù <øÙgŸ%ËW­Z6nÜ8‡3f¼öÚkôòuëÖ=öØcC† éׯy,BÙ;ï¼S\\F–„…… <8 ÀÓÓ3..Žd íR³$âî’w"ô߀ ê·tå›.:°O?ý4>>¾¹¹yÒ¤I)))Ý»w7Et'¨cA3*ÛµkWqqqbb"ý§ÐnLÑŠ GD>7Í«~Ñ&,®÷„C˜ÇB˜Q Y]]ÝèÑ£ÓÓÓûöíK/A_Z‘A‰M@¥nÔ ï[±²²Ú¹s'éh ½ &6Çú5ǘçÖFåVºò]•ÐÆtX‘HÔÍÔ1…nóáu©YôÌ}Ââ´5´n"‘ÈìjÙcóÅ{„Âáâ,žpnâè ×`Pr¹ã4Ðí¶„ûZ¸í1! faÇïžš¶ÞHÎ8#è&—ËÍ®¢Í1f”“'OÛØØøûûïÙ³‡,ONNö÷÷·±± ÉÉÉ¡’$ÝÖR@†p“ ÌDRR’‹‹‹§§çÑ£G“’’z÷îíééyúôi:Cggç{ï½çîîîààÕÔÔÄW…€ãôA°ççñÎÜä#äÎä‘€`¾è¢fΜ×ÐЙ™™••E–§§§Ÿ?¾¶¶6""bîܹ¼¬¥€ áVùûYyy¹D"ILLœ1cFyyyQQQbbâòåËéÿݸqã•+W²³³ËËËmmmW®\©ÛîƒF†ÌbüÒLÎäÝ øÑÚäfÅcîŒp½çëë»}ûöÂÂB…íVUUÑ馦&±XL–ë³–2…ÿ¢wAÕÕÕr¹¼µµ•™¶²²¢3øùùݼy“N—••yxxh³Óºæµ·nQ¥¦¦Y[[ûùù¥¤¤¢vïÞíççgmm=lذ7nåú¬ÅeëÊwdEmÛ¶ÍÇLJ>âÌå*7×ÜÜ22²±±ñáÇ®®®•••tæööv777ö`T.W†ž؆-Æ5€àÈårÊÀ?~>|8==}øðá¾¾¾G%Ë{÷îM'¤R)/kiÅÅÅ…¢([[[fº³³“þßâââ!C†ˆÅb+++OOÏŠŠ }¶ÕÕ˜p0‹ÊräªF¸\¾|9;;[¹©ÜÜš5kjjj rrr233ÕmZyC«W¯.))¹wïÞÝ»w Þÿ}öàú駉'&''/Y²„R5¾ÆÙÙ922299™ÎŸ‘‘1jÔ(–`(#ŽnÀ‹'LÃ4]¬Œv±šššêééI6ªƒÊå:¯¥œ‡e•i‰D²;¼æ]ƒnQ™v0‹ºrþ,))Qþ_u›óòòºÿ>¾wï÷&×·oß»wïÒé;wîôíÛ—eÅ?üÐËËëêÕ«d¡Êñ5yyy>>>ííír¹|Á‚PW&)™y ÚÒ؆-EQ×]QddäíÛ·ÛÛÛe25` µ”999åææê°âÂ… çÍ›wÿþ}©TzëÖ­¨¨(cè‚L;˜E]9 úôé£r¹ÊÍ•••ùûûÓi’ࢼ¼¼_¿~tºÿþìd’““cbbBBBÈ•ãkžxâ‰Èd²³gÏNš4‰=¹8È]ðÿØ»ÿ¸*ªÄügà¢"—"êšö ÔÚmße».¹¦ëCdÛê’%¹àÃ}÷P Tp1à ,|gj»ÅºÛ»ÝwöÈÖÍíÑVTïÅÔukWŒ-ßh…\0Å5ð"æûÇ|v¾³÷ÞæÎ_gîëù‡Þ;Ì9sæœ3¿Î9s®®Œnõði¿h}Ë÷Úk¯Íš5Ëf³Í;÷ý÷ßç7ê‘ÊBy«¬¬?~¼÷šd¬q ###UUUÜ{û7ÝtÓÁƒåï²2æ¼÷0U† fñ+éhù¯‰‰‰ŠÇ5´´´pŸ›šš’’’$vttdddTWWó ÅÆ×Ô××/X°à/ùËOúS±½ã×îÉÔœµ7H`\£ûï¿ÿ‹/¾þ¿ÿû¿Å‹s Y¯Yô<>( å­¬¬ìÊ•+Þk ƒøü²eË–¶¶¶k×®ýãÿ¸çž{äï2;˜Åg<ŠG¸pî¿ÿþÇ{ìÂ… }}}EEEkzlÈápõõõõöö:‰°v»ýèÑ£/½ôÒŽ;¸%bãk,X]RRòàƒÊ܉Ã$pšFÒB¸&£“áÓ ÆZ±bENNNtttiiéþýû5 %3ž7.X°@ñK111)))sçÎýîw¿&¶¦Ç†*++ããã322f̘a·Û+**¤7”˜˜xäÈ‘W^y…[³´´táÂ…YYYQQQ«V­ÊÉÉnèüùó .”¿hn°†ad=˜÷\Dûýª÷c$E{dÚ"0m ôÅ_,]º´µµÕØd¼ð çÏŸê©§ü È)ª+jˆ±† a†ºÿ 1Íœ¼_c6:E`)6l¸xñbOOϦM›²³³MÌåË—ŸþùGy$Hð¬g˜¯Ì‹{,ǃ‡QÐ3¬ãE»mÍš5köìÙ3f̸þúëŸ|òÉ@¶`²†™4iÒ† ýÞ ¯¨Œíz†Ã;`^xÜ5™3ßÌieø2 ðe L` Ã`\˜†6ó`¾Ö)8ðq®0Ì×ÀퟞÛ`,þ «"ZÇLó5€ÙÒÉ ¨ûsf£¬^÷ O€n‰á›äl‘_Í’õ–F!4ΙAcš@147èÆÚ (mƒ‰Ç±O)Ì×tÀ#‡‚¶¡(Ýå Ì(ýÉ<öÑ!m6˜¯è€æMY¯¡¡¶¶vîܹáááiiiûöíã—×ÔÔ¤¥¥…‡‡Ï›7ïÔ©SÜB~÷•…òÆ0ÌîÝ»SRRl6!äìÙ³ÙÙÙ×]wݸqãî¾ûîÞÞ^~5Ÿ1 =üðÃÑÑÑS§Nݹs'­Ëå*((ˆ‰‰‰‰‰Y»v­ËåâãÙ±cÇĉ§Núæ›oîØ±cÒ¤IS§NýàƒÄ’GþýÁJ,f õõõv»}ïÞ½„‘‘‘-[¶L™2%***77w``àÒ¥Kqqq.\àVž2eʘqú$}ìã„`B˜¯h"|äÀ†Z„™i™†BÈC=T^^~åÊ•cÇŽÕ××óËëêêŽ?ÞßߟŸŸ¯J(ŸNœ8ÑÐÐàv» !Ë—//,,ìííííí½á†ŠŠŠ¤c~üñÇûúúÚÚÚ>ûì³Ã‡ó+—••uuuµ´´477·µµmݺ•ÿ“Óéìèèxê©§V­Zåt:ÛÛÛŸzê©ââbŸiã Z8@"fŸ:´lÙ²ššš 6BªªªNž<ÙÐÐàt:#""JJJbccGMM ·þáÇ¿ýíoËÉ7‰¯–¾ÑDqÌ üô(ÐGøhZÅèÍF9³¦¦¦­\¹2%%EðÂ… “&M"„ ÆÄÄ s˹ؔ…ò™Â®®®„„ï? ¦¥¥qCÄb¶ÛíGŽÉÈÈ „477Ïš5‹ÛPRRÒ‘#Gf̘AijjZ´hÑùóç¹x¾þúë‰' 7ŽÿÍ5vøL¡0ñb1û X]]½gÏž·ÞzkÞ¼yÜ´´´wÞygΜ9„§Ó™™™ÙÓÓsöìÙ;ï¼ó«¯¾ [·nÝ¢E‹î½÷^Ÿqyeê³QL¢À( Jè…ÎLUÐøD ç¹´¾¾¾¢¢âã?ŽŒŒÜ»wovv6ñz.å¿ò”…ò™BáŸþö·¿mÞ¼¹¡¡a``€ûëèè¨DÌ6›mhh(44”âv»ÃÂÂ|.ŒŒônõû,B±˜}LOOw8•••üB>…,ËŽŽŽò;xß}÷-_¾<77÷†nøôÓOÇç3N"¯L‰Hs˜ Ã0˜¯h…Ùàdí ¼å–[Þzë­¾¾¾_ýêW?ûÙÏ4 5¦Ÿüä'<òHggçèèèåË—ÇÌö„„„³gÏrŸ[[[ùåñññÂåñññj¥Ð¯˜=úúë¯ '’HHHhkks»Ý###\s·|Ó¦M{öìùè£n¿ýv‰†ùð"0_P¥Œ.:m9Ž3gÎ\»vmtttddDÓPcºzõjxxxddd[[ÛÚµkÇ\?77÷ÑGíëëëíí-,,&¯¨¨ˆ_îp8'i„ MMMÊb¶ÛíG}饗vìØÁ-Y·n]AAÁ—_~év»OŸ>››Ë-_°`AtttIIɃ>¨8©,_u­!„Ƴ i=­X±"'''::º´´tÿþýš†ÓË/¿¼iÓ¦ñãÇÿà?¸óÎ;Ç\ûöíqqq©©©7Þxã¢E‹øå•••ñññ3f̰Û튓´qãÆ ðCü911ñÈ‘#¯¼ò ·fiiéÂ… ³²²¢¢¢V­Z•““#ÜÐùóç.\¨8©ÞXÁ裵`¾ ÌwûÁ ^xá…óçÏ?õÔSÒ«)+SÔs¢õ·mPŸ‚žhqùòåï|ç;uuu‰‰‰Òk*.SJŸj-Ïft(æ=Œßl½ŠSà®1 úüóÏÙЖe¹tbؾ© 0€2×`=–)F7˜ Ã0×t3jtƒI&§4a •m?hÅfx"°UÊTëÑ &iYÃð£#ÄØÍPMÙó§¦O­ˆ—Þ„Ø_)zœö¦Ýoa2 ã3NÖä'X7˜¯(cªq bƒö¥ó+ %SJJʾûÝïJ¬£iP±LÕÝàñÄn’Z'Íð43˜¨¨CE[ƒ¡d s\ƒUÛˆzÍ TO9)¬:§Ÿa˜ÃGV(@cš€vµµµsçÎ OKKÛ·o¿¼¦¦&---<<|Þ¼y§NâòÏ,ÊBycÆgïÕX– á¢r¹\111111k×®u¹\ë =üðÃÑÑÑS§Nݹs§ß™bJìX/SÈy¢¤º¡üëýî³ÎOÐ,Ëb¾Yzè¡òòò+W®;v¬¾¾ž_^WWwüøñþþþìììüü|UBù$'÷xÉ?g–••uuuµ´´477·µµmݺÕcýǼ¯¯¯­­í³Ï>;|ø°œdP!ÀÇlÚxF57à  ŒQïP¤¦¦­\¹2%%E˜˜ .Lš4‰2883<ʯ sòtãstƒX'¿%ˆ¾û"œš’4¦h·bÅŠœœœèèèÒÒÒýû÷kJ-•••ñññ3f̰Ûí+lß¾=...55õÆo\´h‘ÎÉÓÓ˜O‘†—ÑÖoR0Fýt*€bÁóL<ô)SŸÏØCŒªWº=žë°› Ä0 CÝÔ4¦ Áü‹ô::$Cç-JÐtë,ËÚ´‹ð~”þuF9k'Ÿ¨ƒ!÷„³cjó5˜ ë%ð5ƒ“œ}útnn.·|„ MMMüj_Ç .LÞêիׯ_ßÙÙÙßß_XX¨J²ÕBã•’Æ4èĺAV€·ÚÚÚ¹s熇‡§¥¥íÛ·_îó øó†²PÞ†††~øáèèè©S§îܹ“_Î0ÌîÝ»SRRºùJKK.\˜••µjÕªœœnùÆ,XÀŸÇ×1ƒ =ñijgÏÎÌÌLOOŸ6mš¦»£Ë²˜¯¤à¾Ùlô?õ¡¨NÛy˜DÊ M ÃŒbæ'‚¸¸¸_|qùòåN§³¢¢â׿þ5!„a˜{î¹ç¹çž›8qâý×½ýöÛ'Nœ ‚Wô•…ò¶yóæ3gμüòË£££yyyï½÷ßcïp8öîÝ;yòdݲÂ/†—©á Г;KÍL! ÌüX˜ššZTT´råÊ””~!#òƒ|«²PÞìvû‘#G222!ÍÍͳfÍâÛººº´Ûñ^¦†'@OZï,#QG ¨ kŽÚ•ê€nTÏj<Üš…‚–Aà ¢…™ ëëë+**>þøãÈÈȽ{÷fggñ_à?( åÍf³ …††BÜn7ÿ‹æô3¼L O€žôhkà>Ñ•¡AU ´†§Ú^‚¨† ¤(½” K- ÂÁeNT<ÔÖÖ®Y³¦»»›øÓj ,/99ùÃ?ô9®ÁäÙex™Ï%UŸ=ÅïPX™÷„U†@˜Ò„ÉÃOÉÒKXvþV9Ô“P\ˆLÐÜQJX¬Š#«,hC~ˆq8gΜ¹víÚèèèÈȈ¦¡¼åææ>úè£}}}½½½æüyÓòy°0­÷7Dì¬jf4¦Y¦}ÄÕ-aÈ¿à Ób„å(³Ž¡˜¿…ˆ†*ø{` y·J?ƒ*IJÚoÞ¼S§Nq GFF¶lÙ2eÊ”¨¨¨ÜÜÜ>ïõ½£å? ÇÅÅÅÆÆîÚµK"ÍÞ‘¸\®‚‚‚˜˜˜˜˜˜µk׺\.>òÝ»w§¤¤Øl6á>úÜ–º¼‡6˜ùðiúŒLk³ä.+Þ¥S4¾Þ#©†üòÆ5ÐǪ÷"ò÷ 9`m8ô·|ùòÂÂÂÞÞÞÞÞÞn¸¡¨¨Hbe®€<ÚýëêêŽ?ÞßߟŸŸÏ-¬ªª:yòdCCƒÓ錈ˆ())‘Xßg´œòòòÆÆÆ†††ÖÖÖööv‰4{GRVVÖÕÕÕÒÒÒÜÜÜÖÖ¶uëV>Ú'N444¸Ýî1· eW=\+õäqmbh –x°T¡1Í †½–®È£U7NµBž~úi®Ûóá‡v¹\ÜòÖÖÖ+VŒ?>""bÉ’%N§“[þî»ïΙ3',,,55õW¿ú•ØÂŒŒŒÏ?ÿœeÙsçÎ1 sþüy–e?ÿüóŒŒ –e¯^½šŸŸýõ×_ýõW¯^åóÜsÏ%''‡††²,ër¹òòò¢¢¢âãã«««}æáµk×ŠŠŠ&Ožcö«¾ «„ôES‡š Û%{`` ..Žß¨GÄ–_¸pn³Ù¸Ï©©©ÜçžžžøøxéõÅ6g·Û›šš”¥911±¹¹™ûüÅ_$&&ò«uuuyG5æ¶TáQ-M{Ц‹ÙˆB4„™³ÝçíŠØ•‘ß e¡¼‰ÝÀø¼€šŠ™Ë”GèatVa¾P„Ñfìù^vœgþбcÇN:uöìÙîîîmÛ¶q ÅzYzè¡òòò+W®;v¬¾¾^láÝwß}äÈBÈÛo¿ñöÛoB>üðÃ¥K—Ùýœ?þx___[[ÛgŸ}vøðaŸ‰G¨_×ÄWޱ~öfs:´lÙ²ššš 6ˆ%ÃgÌ~Õ7"¨é”N*þö·¿-\¸püøñ ÃDGG_¸pÁß&MšÄ}ˆŠŠâG œ?>33Óf³…††N:•5Cl}1ÝÝÝéééÊÒìt:ù°Ó§O¦!!!Aæ¶üâóv…ˆ\ åMúÆã þÒý]9£³ŠªÌ f”—*¡¤¿ªHlOMRcuH€{j†¬Ciiiá>755%%%y¯#ì±LIIÙ½{÷¹sç„+x/|÷Ýwï»ï>–e—.]ºyóæýèG,ËÞ{ï½µµµ¬ì~Τ¤$aÚ|æ¡>] Ó®øÛqí3ÇÄÎ0b+WWW'%%}òÉ'r’áÖ¯úæQ%$òP‡š éiÐn·8pàÒ¥K£££—/_æ·b³Ù¹ÏÜÃ<Ÿ´ùüšœœÜÑÑá½9±õýª biöˆ$11Ñg¡‹å¤Îã´+ÓÀDZ’C~|"ÿ>:L" bÁiy¤EÌ ÆÌyîóvEìÊÈï…²PÞÄn`|^@MÅÌe þBYR#®¶VdgMrêÑ' ÁÖÖÀõ³,;<<Ì_A?þøã;î¸#::šK<Ã0Üò'N,_¾|òäÉÉÉÉüãÅN›6m`` 66öÒ¥K'NHKKã^— õ¹Q\òXÍg†††«—ZÑ®p]Ö¡¡¡!!!Â’;iøÌ1WNOO/++S– ¿ê›üSŸ5AÓ¶†I“&:tÈårµ¶¶Þwß}üVæÏŸ¿}ûöÎÎÎ{_>a„/¾øB˜6¤ržzê©%K–´´´ 766:éõÅ¢-++[¼xqGGÇ¥K—6lØ fHŠ‹‹—/_ÞÛÛët:—,Y²qãFï4?ûÜ–êthkxòÉ'³²²:::þùÏæåå=òÈ#ü¦ï¹çžŽŽŽíÛ·ßrË-ÜòŸÿüç‹/noo¿xñbaa!·pΜ9‡¼|ùrQQÑ<ÀG²téÒžž.W7oÞÌ/w8}}}c¦A,¸ÏåÉnN"'}îºÌ|©µ*3ç¹ÏÛ±SÿAY(ob70>/ ¦bæ2ñ÷-”•(iÌ]ö~Ë‹ÏRVÐ9à ÿÁç{eB z|B'òzW|î‚ÄûüŸ~úéôéÓGGG¹%£££ééé|¿â½pguŽPEäßû™ív;÷Y¬Ç’÷î»ïN:Ubá’%Kª««³²²X–½ë®»ž~úé»ï¾›û“Ì~N»ÝŽq cò·ãZ•q ÕÕÕ ’áW}K˜7ÝÆ5hù[o½5}út›Í6mÚ´^xßPCCÃÍ7ßl³Ù’““ñ‹_ðË+++Ç?fFŒŒTUUq]è7ÝtÓÁƒ¥×‹öÚµk………'NŒ}î¹ç¤Óì‰ð|žŸŸ/<Ÿ{'@l[ªó¸Âj± UÆ y ù;‹ ‡I¤A,8í#4Ýx "Ï…w&b§>é›ù¡xb70>/ ¦BE™‚|„Æ¥1Í’¹Ë“'O>xð Ëå:wî\~~>V¸Ž²Î±¯>·(¤ 'AŶ9½+>w¡¨¨héÒ¥N§³§§ç®»î*..îøÍ7ß\WWÇ-ùóŸÿ<þüÀ÷:ÀÕ9BB–-[æt:¹^¬’’n¹Xåý÷ßúôé¡¡¡·ß~›¿Ýô¹pÏž=±±±Ï<ó ˲;w‰Ù»w/÷'9ýœ,ËnÞ¼yÙ²eüj>¯îútN»:àoǵÏó«7›ûëùóçgÍšUUU% ï˜ýªo{!Ñ™¯CM0ó þÒ¡­A•1GC~䌓HƒXpÚGiº ð`æ<÷yg2f«²PÞ¤o`<. ¦bæ2P–tyà‰½å%¶¾üα¯>·(¤ 'AŶ9½+>wAâ}~–eŸþyþIæþûïÿå/é±éûOÔ=Ïšü¬Myæ™g¸·sóòòø.G±Ë×^{mÖ¬Y6›mîܹï¿ÿ¾ÄÂææfB÷Fâ§Ÿ~JÝerú9¹Õòòò"##§L™âsgV¯.ÐÀiW üí¸ö™c~õfóíîîž={ö“O>)‘ ï˜ýªo{!Ñ™¯CM0ù± ~Ñ¡­A•1GC~|òˆ\" bÁ1òä3sžû¼3³Õ@Y(ocÞÀ/ ¦bæ2¡,©!óÀ“󖗲α¯>·(¤ 'AŶáW±ÞŸ» ý>ÿÅ‹cbb¾þúë .L˜0áÒ¥K›°ÿ$ØÚŒNBP0y5Ð Õ™€B´ÚTs$1äÇç!È%Ò #@>ä¹õ L­„ðŒN‰hLs ì¯Ä[^Ê:Æì:ðùò<«Ò¸e%îD¬w…'Ü…1ßç¿÷Þ{wïÞýÜsÏåææzG…q ò™9mVbòj ª3…h%D@£M¨2æHbÈÏ!B‘K¤A,8F|ÈsëA™Z Úè s—}¾ååÑ̯¬s@¬¯`Ì÷Êô$øÜY….³wÅç.Œù>ÿ{ï½7wîܹsçþùÏVe¯ÜYÝbS™Óf%&¯º¡:PˆV¢C[ƒ¦L¶XpJsƒCoiÒ yÎþûÉÄb]¡î?ïjjf4¦Y+V¬ÈÉÉ‰ŽŽ.--Ý¿?·pãÆ ,`†ûúòË/oÚ´iüøñ?øÁî¼óN±¨Ú'N444¸Ýnî«°%E;t=üPŠK¯³³ó¶Ûnã>?ûì³=öØ… >ÿü󘘇áé¦Ñ ¢üùé 0F0””t…D§ô:ï¾ûîœ9sÂÂÂRSSõ«_ñ_|ñEîwÑo¾ùæÏ>ûŒ_H(Ÿ)|úé§¹Nˇ~ØårñËŸ{î¹äääÐÐP–e¯^½šŸŸýõ×_ýõÂßc¯ªªŠÿãÿXUU5qâÄøøø÷ß_"~9'@±„µ¶¶®X±büøñK–,q:â½0##ãóÏ?gYöܹs Ü?žeÙÏ?ÿ<##Cz7…¹ár¹òòò¢¢¢âãã«««Ç,â1«±uÀív—––ÆÅÅEFF:Žo¾ùF:ªk×®Mžû,ë«@ùÞ+ ÿzâĉ¤¤¤={öˆ%ÃgÌ~U aÙyÇÖÑÑñ“Ÿü„òãÿ¸££C¢ŒäË)))»wï>wîœGÀ .pŸl6›G&( %m``Àç! ¿z/÷¹ÅÔÔÔÆÆFîsOOO||¼_)ä¿Úíö¦¦&eiNLLlnnæ>ñʼn‰‰üj]]]üj«W¯æZ1Î;·zõj‰mx&q¡T=T°ñ™r²(îRÌFqž›ö¶Gl9÷AxÁòy qbˆˆˆP%CÄ.vcî¸8Ž,FùuôgùÂs‘Å9yò䃺\®sçÎåççóï¹çžŽŽŽíÛ·ßrË-üò@BùLáÒ¥K{zzœNç’%K6oÞÌ/w8}}}Ü×¢¢¢¥K—:Ξžž»îº«¸¸˜_­°°ð›o¾ùÍo~Íž;wî˜ñ™u>Ι3çðá×/_.**zà$2Ä{áúõë_|ñE–eùË_Ž7Ž»¨¿ð 6lÞManlÚ´iÙ²e½½½===K–,‘³/Òë[ž|òɬ¬¬ŽŽŽþóŸyyy<òˆtT?ÿùÏ/^ÜÞÞ~ñâÅÂÂBŸñó_%V~ã7âââþô§?™ ˜ýªeç[GGǽ÷ÞËï©X±òÚ"Oœ8±|ùòÉ“''''sÃh%rFxÿª ”·?þøŽ;îˆŽŽæÒÉý¦€ü¨Ä¾Úl¶ÐÐÐÐÐÐ@¢ V–æÐÐP·ÛÍ}–ny‘ÿ\ªøœ¯g¨`ã‘K|ûQ{{»œö#mÿNqž›ö¶GâvÅã‚%v ¶Ý7ß|ó{ßûž*"v±sÇåÀqd1(Kšr_b~rö9 8ZéuŒí %„´´´pŸ›šš’’’øåÂC‰~ů¿þšeYî jþ3×ÿ/¿t¶ˆv„úÌï…ï¾ûî}÷ÝDzìÒ¥K7oÞü£ýˆeÙ{ï½·¶¶Vz7…¹‘””$L[àޱuÀߎkŸÔbO˜b+WWW'%%}òÉ'r’áÖ¯ŠáQvbO2ò{Â%Öá½ûî»S§NK¿ÏåŠCñìvû.]º4::zùòeacÁàà ÷ùÂ… c6 x|MNNöÙ #3…Ò5A,Í‘$&&*;ˆ‘ßÖ@û˜#VrÈœAmið«sØ #@]ŠóÜ´·=b˽/Xb·>·{òäÉéÓ§óë{ókׄ„;‰ȇãÈJŒ/K£ê“ÛÕh~ÝkRDþ~!G.±‚±}¡„9†rú}~–¿ü„‰u„úÌï…ƒƒƒÓ¦Mˆ½téÒĉÒÒÒ¸×%dvŸz¬&g_Ì\üí¸öÙAíïÊéééeeeÊ’áWÅKؘ ½×³ï¿ÿþÓ§O ½ýöÛò_aPÊÛ¤I“:är¹Z[[ï»ï>~Íùóçoß¾}`` ³³óž{îá—O˜0á‹/¾ðÞ„Ç×§žzjÉ’%---ÃÃÇCz}±hËÊÊ/^ÜÑÑqéÒ%n‘Dš=")..^¾|yoo/×߸qãÆ1sC^ÓcŽ$†üÈÔ&‘¿:‡õy$±hAY¶›ö¶Gl¹÷Kì6À{»‡NMM=yò¤XzüÝ5±‹Ý˜;.Ž#+‘{Ó:–Ü®v›°äAè×N!´‹Ü¾Pòï ùv»Ýg9ýŠ>?ËŒ_~ÂÄ:By ñ¹pÉ’%ÕÕÕYYY,ËÞu×]O?ýôÝwß-7¹4È×Àš¾øÛq­Ê¸†ŽŽŽŒŒŒêêjÉð«bˆ%Ì_r.Ù¯½öÚ¬Y³l6Ûܹs…S–øLÿAY(oo½õÖôéÓm6Û´iÓ^xá~͆††›o¾Ùf³%''ÿâ¿à—WVVŽ?~ÌŒ©ªªâºÐoºé¦ƒJ¯/íµk× 'NœûÜsÏI§Ù#áD*ùùù‰TÄrC^ÓcŽ„<†üÈÔ&‘¿:‡%’¡âÈ#‰@ f»Ùn{Ä–{_°Än<¶{àÀÒäìšô]P€GŽ#‹‘uÓzó–Ü®¦›yƒBeû‚P° ‰Œí %„,[¶Ìétr}P%%%>ƒÈéWôùY,~~Kù ëõ™!>îÙ³'66ö™gžaYvçÎ111{÷î•¿›,ËnÞ¼™{Q“[mÌúcò:àoǵÏj¿z³¹¿ž?~Ö¬YUUUÒÉðŽÙ¯Šá±cV<1V:ï_”c–©ÆI ù‘3ŒK" ~uë3òhÌÕ@]ʲݴ·=·C,±ÛávŸ}öÙ”””3gΨ›!b»1w\GcpYŽYŸ>øàƒÛo¿=22222ò?þã?øþ–eÓÓÓ ! Ü×;î¸cáÂ…ÜçO>ù„2}út™Û=vìXVVÖu×]1þüßÿþ÷Üò›o¾™Âw¡°,{ðàABÈÍ7ß,PήÈ7ìrÀß­H¬`l_(!ä™gžáÞ­ÍËËë0”Ó¯èó³Xüý–ò&Öê3C|.lnn&„pý Ÿ~ú)teÈì>½zõj^^^ddä”)STù c뀿×>;¨ýêÍæÿÚÝÝ={öì'Ÿ|R"Þ1ûU1<öbÌŠ'Æ'=àðE)¿Lés$1äGΠ3‰4øÕ9¬ÏÈ#eaA1eÙnÚÛéÛ!áKì6ÀãFÈÕ+Wω‹ØîKÃqd%Æ—¥t}zÿý÷CBB¾÷½ïuuuõôô|ÿûß á€uëÖBžþy–e/^¼j³Ù.^¼È²ìîÝ» !?ûÙÏäl÷Ã?´ÙlwÞyg{{ûç@Ü< IDAT?ÿùÏŸþô§„ßýîw,ËrC=—-[Æ\ºt)!ä—¿ü¥tÀ1wMTßw~2b‘~nKë­(¦Ã‘¢s@2y ‹Q9©çIïĘ$IæØ˜¹g1GC~ä j“Hƒ_ÃúŒ»zø¯(MZð%åý$Œ“vè5"Úá ²*‹Ì|ªóžPÓ¨”Ëbç>‰›]°ŸÅ:@éòBiÒbÌ’²Øµ&Ø øÌçCz¡ì¬Êìó5€ºÐ<Įܨóö ¥I9·Ñè•¥LçCJ¡¡ÁÚL=_Å»J ’X.ÆÁ@úÊ:@™·_(M“ó÷6åH”—©à|H44X›Yæk=áblmò;Q ê€Yùuû%,M¨y‹ÃßrÔ0Y <&™Ž#Šà ˜¯àQÄ_9„„»L/–…¡p-Ããej8HÔ‚¶°ŒÞ\ÀK Ãøü,ö×7Þxã»ßýnddäøñãøÃ¶´´ð+766:Ž„„„ðððÌÌ̃ÊßÖÿþïÿÞqÇQQQQQQ·ß~û|à‘±í¶µµÝwß}ñññ6›mêÔ©¹¹¹ùË_TÊ$€ †î\ëÁ ´Å ¡@-ÂK.@5†aBŒMYòhòóЪ®®þïÿþïþþþmÛ¶}ðÁ«V­â–×××ßzë­ÿûßßxão¾ùæÀü㥷Åûàƒ–,Yb³Ù¾úꫳgφ‡‡ß}÷ÝÂæ‰íÞ{ソÿýïýë_ üãÿøÑ~´uëV¿³Ãô<^¦0TKËÃcŒà‰ x?DÇç ¡¡¡n·Ûç:ÜçO?ý433“2000~üx~ý¬¬¬ººº÷Þ{ï‡?ü¡ÌmñKn¿ýö¿þõ¯õõõ , „œù„‹dæÌ™wÞyç¦M›’’’ÔÉ#ã ­!Øö—^()«BÉZ Ú¬­*B[XŒÁó5È122â½à׎ÏlÛî믿~ÿý÷O™2eppðÓO?ݳgOvv¶Æ 4^£ÝàTc%h\°0+@àÄ.y¸¥ŒŸ¯Á§ÐÐБ‘—ËÅ}mll”ö;ßù!DÙ¼ŒóæÍ#„œ:uŠûÊ}˜?¾œ°Ó§Oíµ×œNçåË—_}õUa<<ÆXZ®-íG !ÄûG Ç=óÿâ¿jjjZ»v­ü°UUUãÆûÏÿüÏ¿ýíoÃÃÃÍÍÍ«W¯æÿ:yòdBÈçŸî3ì¶mÛBBB6mÚÔÝÝít:KJJBBBüq9Û]¼xñŸþô§¯¿þ:22266–rë­·ÊO6÷»–„b03³Ý=PMú€Âá4bYÖŒã^}õÕÅ‹?ñÄ111>øà¦M›ä‡ýö·¿ý÷¿ÿ}þüùÙÙÙQQQ999Ë–-ãÿZ^^{à 7øüðÃ<ðÀä'›.茿 åȪP¦ †ÁE$ˆÝÏ]cðì)ÕPLÖƒ2µŸŠR¦¦„P‘°eYïitù?éŸ6ņ± ž|Täó€Âhb šçkóÉ´ƒîn‹+P\J(…#@]cþ, ù7À›Içkw½ºAÛÈ‚v2î9@]h<0?¡ aŒk…pŸcBã‘• ƒäÃ| `x.0?¡0&Ì×Á´^\G(‚¦@ð‹ ×  î}­¥i=(SË@{øó5€,h6ù0_Ã_@è0-\åÀ_˜¯4T‹AS ø%„eY\<À@Ô`ac+ÆÇ™OPó5€ p›FÁ0€¦pqÅ0_ mF–„[ +Áá þÂ|  &ÜY€žQ©†v@æk  €2x˜°Ì×ü?&„v@æk5¡.npl(D«BÉÒWs ó5›*ðÙzŸ…¤×çï) O3>Ïg‚ú†ÏølÊÏB2Ãú»>>ëð™à‹ÏølÄgò/&I>ùç@`¾0 .@æ„cÁ0‚îho\ƒ–üJâïúæg½=²  E¼¯5|c9JÐz”›8¢MÇ&€áp>k`ó5€æ|^hp#áº>azHCàxÕa¾Ð n\@#îK;4p[L¡M4…ù@'x0• –emF§,‹eY®% ÷1ÔѨ Z·¦mœv¤a( hÍ†Ë @³Þè6ï=ÂÅN;Ö«?–‡"­1 ƒq @ Ü«N,Ki2÷Þ/ôâjM­¼Å˜8Ý ‡@S6Ü~vpËZ@uR…ðiÜzYê½GÜþâ’€F[Ðæk:Öne#ü1E´8¨®”Bý­a¾€ Â?çÉߣÅ!83A ÈIZ ¡ ôÁ0LˆÑi‹ÞÙ€±‚¼¡Çï>NMTPá@O!ÜëôF'` 8S BhnP…F¹‡FjMá :`Yã@'¸kUà.Y44xCsƒZP©¨€·'@g!,ËâšB0Ä ¹@ ˜¯ X ¡Á'd  jýa¾Ðj€þðŒ1&Ì  ª-P·@˜¯t‚›Qžjè…çP •GE8€Î0_€eiÔFãñ¨â¡QÏ–Ú`6¸3Q jÀ˜¯ôƒ[y«ÂcLÂ,pÍa¾kÒtPƒðÚÁ...Ž‹‹‹Ýµk—GÀúúz»Ý¾wï^BÈÈÈÈ–-[¦L™•››;00à3f!éȇöP°*4 €þ0_ø‡{nñùþ]yyycccCCCkkk{{»ðO‡Z¶lYMM͆ !UUU'Ožlhhp:%%%Ò1KGÞÐpÆbÐÚ Tï¥nØ-u ¶$”‚2ÚåÃüÛµƒÿšœœ\WW7sæL•«««÷ìÙóÖ[oÍ›7[˜––öÎ;ïÌ™3‡ât:333{zz¼cò¹ºPÓdÒ'£øGe”ˆ2¨Ï”ÂÁ ÖÀHÜÕ´5P˜`KB)(£[ƒÍfs¹\6›Ícåôôt‡ÃQYYÉ/ ãG1ŒŽŽ2 3::ê³ÏÈÕ…š&“n…Q Y@/¿` Ã`¾PGBBBkk«÷ò£G¾þúë;wî®ÙÖÖæv»GFF¸æÅ‘€Ü×€á0_è ³¯XÀ„ ššš¼—¯^½zýúõýýý………ür»Ý~ôèÑ—^ziÇŽÜ’uëÖ|ùå—n·ûôéÓ¹¹¹>cž+Ä"¡Ã(#0VˆØ,\@/M7nܸ`ÁïFÃ'žxböìÙ™™™éééÓ¦Mþ)11ñÈ‘#¯¼òJEE!¤´´táÂ…YYYQQQ«V­ÊÉÉ‘ŽY:rà¡5Ìó5À´x\¡kº/ôàE  òMdšzæJDdípƒ5`¾0N”Òù¯Ýù (`˜¯À Ð(¦Bë| ¸ Z @]4ÞÔ€õ0 ƒq `Ü PãóÍ Í÷`6TÎ×À%˜ºd€¿ðl Ζ`˜¯ ƒ¿ÌIÙQ©õ±ŒsEÐÂÅB4Ë€ Ñ7_ƒð†7úP½ ÂãO*žÏ}F…ëE€¦…¢Â| ‹²Viù¡´kõÎËËëèè „tttäååi´• AWçDPAÑ€ÙP6_ƒwR)J_â+//olllhhhmmmooþéСCË–-«©©Ù°a!¤ªªêäÉ“ N§3""¢¤¤D,fÌ( dø‹¡è>^â^‡¢½ ‹Ö{æ˜4 - ™9¹—ššZTT´råÊ””aÀ .Lš4‰2883<<Ì-çbSÊg =š¸¯ÉÉÉuuu3gÎôX¹ººzÏž=o½õÖ¼yó¸…iiiï¼óΜ9s!N§333³§§Ç;æ¼¼¼ŠŠŠ”””sçÎmÛ¶í·¿ým ™œ ÏÃ`NÈK¡ ÖÀHÜšÚô§ÃÉÎäçS“'ÏÚù3ëëë+**>þøãÈÈȽ{÷fggñ&þƒ²P>“ç3ˆÍfs¹\6›Ícåôôt‡Ã!| ",,ŒÅ0::Ê0Ìèè¨ØFå\ïPåÄž3†'À„ø›"d €ÅàŒÖÀPt¡s§ùwFhk0yò¬ ™ ùX[[»fÍšîînâO«²PÞëx|×ÐÑÑñýïíÚµ›6m⦤¤|ôÑGv»]:fùPå|2íŠÆòÀªptƒe`¾0¼  ?‡ÃqæÌ™k×®ŽŽŽŒŒhÊÛ„ ššš¼—¯^½zýúõýýý………ür»Ý~ôèÑ—^ziÇŽÜ’uëÖ|ùå—n·ûôéÓ¹¹¹Ò1C p×k*xó³Qq¡>ˆz$X8‡9ûX–ECxôV¬X‘““óÕW_}ë[ßÚ¿¿¦¡¼mܸqÁ‚ß|óG)?ñÄ›6mÊÌÌdYvÛ¶mÂ?%&&9rdÑ¢En·ûñÇ/--e&++«««kΜ9eeeÒ1€>¨™¯a̧<–hDŸŒ5sñ™9mÖ†œòÐ_È1ŸL’-&I† +¬ Ç8XÃ06*j³Ï± Â…&O?ÈAKË@ð â&!¨`$ PeYÛØkh ¯Qh;²ÌЊç}€ž$ox¨Š ¢€ùÑ1_ƒÓ ´pÒPZÄ€ Ãàw(ÀøŸÇ3:!` ¸ŸV Ž,™På|B¶˜ d K7ÂÖèdø‡Æ4€bh8ã é¨À²,Æ5XžÐÆ„Þ{0?Â@–e©»Á¢1Í0&<h —OÈ1h‚1!Ђaü€Åñ?õb†ß¤0¾¡Ùf†v ‘%[rqøÅFãŒÆ4€L8Àµ€æohh*Xò ¬'H**?á `,Ëb\˜÷8„g!- ¹A ÒÌÙäÌ׈ Üe …X+ƒ%+­÷Κól `6 Ó `847pÐд’¾b ”°~ÉéÔ{7ù«ªÏ¿3Ì×&äBÚ67à»1 Â;c°ÔU0œKy©̓ó ó5€¹ðB ‘à¼1±|ÁS+Læ„¡aÞ<.¬È‚ùÀlpo­ï‡`€ª´ž£肆 xQÀC˲Ô 4¦ü…Û,Ïé4xöÔÚ„mdÁ•L câs&xNSb0_˜^£Ð™w>bÜžšN¿f€RBCƒLÝÀ á~>Êèdø‡Æ4 á)Úc4NÝ´Àý± À<ÐÐàŒn „°,bt|¶Q²ÀA‰Sùî«°•Á£¹ ÓÖ€i¡Zʇ¼ ˜¯ÌG7u<š$NÑèê19”‹áP`BhÿR=gä†Á¸PH~+ƒp>¬†)ƒ˜ü‰"nßM^r`¾0©`¸› —÷ëÒOGÂ#Í >¡÷LÕ2¸›…`Ʋ,~‡äò¸aR|÷‰iºMwà"Ìצ€ç“Sðº„4> U3\^‚Þc0!ݪåÈÈÈ–-[¦L™•››;00À'`÷îÝ)))6›Íû«Ëå*((ˆ‰‰‰‰‰Y»v­ËåòŠ7<<\\\»k×.­wŠƒ¡ ´0_˜ÎÎA÷Ù&¤V+ƒÏ#ïSÔzUUU'Ožlhhp:%%%üŸNœ8ÑÐÐàv»½¿–••uuuµ´´477·µµmݺU,§¼¼¼±±±¡¡¡µµµ½½]—=jTþX.ÚþucxV#ÁYmBM jEè~¹Ý è:éJí˜,¶;`ºÕÌ´´´wÞygΜ9„§Ó™™™ÙÓÓÃ% ««+!!OðkRRÒ‘#Gf̘AijjZ´hÑùóç½Wã%''×ÕÕÍœ9SëÝñào6â„–AåíŽ@ÝžÕ†?žÁYmjMÊ 3š̆ººK°Ò¾€ÅèV9ø­°,;::Ê0Ìèè(ñšÓÇã«Íf %„¸ÝîÈÈÈááaïÕ„ë»\.+t€¶Z˜¯L   'Õ'eð ›ðe Œ'* mmmn·{dd„kn*>>þìÙ³ÜçÖÖÖøøø1·ÒÚÚhZ@Ìצ€&|ÃiÝÊ ‡p£hn€ ³!dݺu_~ù¥Ûí>}útnn®œP‡£¨¨¨¯¯¯···°°Ðápx¯#¼š¬^½zýúõýýý………ª¥D„ÐØƒDcš!@(qϨì¿è°Q±?¡¹AxÜ5 *9˜™žg†ÒÒÒ… feeEEE­Zµ*''GN¨ÊÊÊøøøŒŒŒ3fØíöŠŠ éõŸxâ‰Ù³ggff¦§§O›6M„€(–e©|?wEº1IV˜ “ä€å!Ÿõ§Ý¤ 27-½ELß 'J@J“-d] CýT æk€ e£±Ó˜f“0°•A>–e¹tŠMñ@;fáפ¤¤#GŽÌ˜1ƒÒÔÔ´hÑ¢óçÏ{¯–——WQQ‘’’rîܹmÛ¶ýö·¿•Ÿ-þæ$N`TžÄqêÆ„Y¶‹A‹‘î9±LŽ^,Öø¢ËzTìž™@¦©"lTppÕ××WTT|üñÇ‘‘‘{÷îÍÎÎ&^­üWþƒ²PÞ¸?±,;::Ê0Ìèè¨DT›Í644Jq»Ý‘‘‘Šç³$hk€ „ÉTAŠ Ov:ß|˜0¬Ù+!x~×M•j€ÇYæè£bG¨H¤©àˆV‘âÌ ¤ÞÖÖÖ®Y³¦»»›øÓj ,/%%å£>²ÛíÞ;"ÑÖ””tôèÑŒŒ BHssó¢E‹:;;¥7ä/´5@pÂ| @œy!àuP™Œ˜/ IDATaú¿ —ô„ÜV W|U虇ãÌ™3×®]Ñ4”·uëÖ|ùå—n·ûôéÓ¹¹¹2·^TTÔ×××ÛÛ[XXèp8'<Øhl9£1Í2I?™¨ØÓb1,Ëòw!‹ä@.é ¹-nóTÇu87®X±"''端¾úÖ·¾µÿ~MCy+--e&++«««kΜ9eeerBUVV®_¿ž×pï½÷VTT(N±,Kå5\„tcÚ¬Ö-aúl(xz½T¬ z-E‡žfÞ3§Í´´È49ÙÖn¦T«¨½jÁ;´l4ÖcÓ À ž§Vo´ì;-éÔ‚÷¾ÓuÊŽn ´%^Á\½u†¬VG®FtÚÀaÆft‚HðÌö'Æg˜êÖ‡Š2Ò´ëÞ;¨»õþ8¨©j—© [tƒ¬PíÍâA"„kã4:þ¡1Í .᳄•–õblÚô$¶ïf8¨)*#MSeHiqDc¶H0utf C¦Õ××Ûíö½{÷r›Û½{wJJŠÍöÿúÞžyæ™øøøèèè5kÖ q GFF¶lÙ2eÊ”¨¨¨ÜÜÜ>µÂà_].WAAALLLLLÌÚµk].—ÏP¼áááââ⸸¸ØØØ]»vi±ïÔÝ;I0ùe!,Ëâw(´åýklzÌÆ -(#if(#eÐÜà YÁìСCË–-«©©Ù°a·äĉ n·›ûzìØ±S§N={¶»»{Û¶mܪªª“'O6448Έˆˆ’’>Bà¯eee]]]---ÍÍÍmmm[·n Å)//olllhhhmmmoo×,ôƒÁ¥ ÅÌÝ2zÎÚ¨x+˜¦Î/†dÊÈ/Úe1ÓÈÌgõ@˜m¿Ì–Zh—o ÃTWWïٳ筷ޚ7o¿°««+!!ÿÚÒÒÂýAssó¢E‹:;; !iiiï¼óΜ9s!N§333³§§Çgpáפ¤¤#GŽÌ˜1ƒÒÔÔ´hÑ¢óçÏ{¯ÆKNN®««›9s¦êûî‘Dv£«sCBp 10“ŸìtH^ ›ÀŽ:gÊH­4* ”5ÇäguÅLµ_¨lŠiÚÖžžîp8*++… …ÛbÆív‡††BÜnwddäðð0!$,,Œ[eÙÑÑQ†aFGG}~µÙlCCCÞ±‰Ý{Ûl6—Ëåñb…êôikPö|aá§´5@pbó5h÷šÊè9èe¤ ¥/&Pšl N,fsôèÑ×_}çÎëœ={–ûÐÚÚ:uêTîsBBB[[›Ûíášäl.>>^[||¼ôú ­­­rb¦—²Ó¯¿¡p’0 Ì×V`‹ b¡Ï3!Ê(•‘Öó–¡¹}e:@&›–Ýn?zôèK/½´cDZu}ôÑÞÞÞÞÞÞÂÂÂx€[¸nݺ‚‚‚/¿üÒívŸ>}:77WÎæGQQQ__›Ãáð^Gx.Z½zõúõë;;;ûûû ýÜ9:(;.p4Ð+„ƉÐhL3hÁœÕ±Óú™e8JŸÛ)M6Ðõ*:4Ó$&&9rä•W^©¨¨ð¹ÂÂ… o¼ñÆiÓ¦M:µ¼¼œ[XZZºpᬬ¬¨¨¨U«VåääÈÙVeee|||FFÆŒ3ìv»ØyO<ñÄìÙ³333ÓÓÓ§M›æÏn©¶¶vîܹáááiiiûöíã—×ÔÔ¤¥¥…‡‡Ï›7ïÔ©SÜBþQJÎÖ™ýÚ1Êã‡?ôùU Üñèý›1<®¢ )Z§PAüæÏ4Zh—“(#µ¨ž“ú ÔzCfcí½6ÃÞ™! ôBîéÀ¯L–³òäÉ“<èr¹Î;—ŸŸÏ¼çž{:::¶oß~Ë-·ðË %ë{áp8úúú¸¯O>ùdVVVGGÇ?ÿùϼ¼¼GyÄçj_‹ŠŠ–.]êt:{zzîºë®ââbŸ«‰ñ·nãXk „PÙ¹‡Šº1VkÝAé|Œ¥E~¢ŒÔ¥z~êV@Á6¼Åò5ßð ¶¥:ÃK0¨>7djjjQQÑÊ•+SRR„/\¸0iÒ$BÈàà`LLŒÇ¼˜ÊBÉߺp}þÐçWEäd ë˜ækºÕ‰XÎè\Œà5 ˆ.üÙ…* ª«Àþð‡ºººùó秤¤¼ùæ›ür®É€åv»U %ë„mçÏŸÏÌÌ´Ùl¡¡¡S§Níííõ¹šÇW§Ó™žžÎ}ž>}ºD(²ì¯Ë€*¨hXÕáwòTì01cFn½ŸŒR7Wµ®-AX@„ª2Ûœž[4 çó@»ƒ–Ï^ u Ý]Mmmíš5kº»»‰ø¯z_•…R¶uNJJÊG}d·Û½wV"TRRÒÑ£G322!ÍÍÍ‹-êìì”™6‚q ¬†Á¸ )2:! è Ý€;WMY»òHp8gΜ¹víÚèèèÈȈ¦¡dÆ3a„¦¦&± Úýªx ÎÔJ Ó –§ç­|}}½Ýnß»w/!dhhèá‡ŽŽŽž:uªðgLJ‡‹‹‹ãââbccwíÚÅ'RÎlÌqú<Ü|ƯŸ>>::zÍš5CCCÞiЭ€ýí}AÒÜ`y†×C4å@Z±bENNNtttiiéþýû5 %3ž7.X°@ìT Ï¯Š^™aR4¦™R´dµv锳yÅÅÿÆoÄÅÅýéOânÚ´iÙ²e½½½===K–,áÓðóŸÿ|ñâÅííí/^,,,äc3³XœB>ã×nÇUÉ[­ËH·"„,]º´§§Çét.Y²dóæÍމѳ€XµóVx•Ò“QÛÕU÷˪ Õg£n¡ä1yMð+“Q±ÕâoN"çÁ2PA E';’j¶¶†êêꤤ¤O>ù„_˜””ÔÒÒÂ}æ rŸív{SS“w ]]]ü×ÔÔÔÆÆFîsOOO||¼tœB>ã×Em ú!DgRR’wbô, Vƒ¼5êäcÉçFëí‘ÛtÞ¨%©ÞÖ ›‚P&ok™<´5èm œæ†i½â«QRåG«C^1 “žžîp8*++ù…6›mhh(44”âv»Ã¸4Øl6—ËÅ ÅÆ L!¿2˲£££ ÃŒŽŽJÄ)ä3~¨•·:LÞ©O1 ãv»ù8###¹Ò³€Í¿|)¶i£¶®ŠÎäÒOƒ'ou 83•͹« ”i'ÎËË«¨¨HIIiooüñÇûÛߊ­iª¯ýâýN„I&憄àÄ0 æk ÉÑ£G_ýuákÿ gÏžå>·¶¶ — ¿ú”ÐÖÖæv»GFF¸§Yé8=ÂŽÒ§€!Â8§Nê3¬ ÈS={‡ HC Ñ_mmíܹsÃÃÃÓÒÒöíÛÇ/¯©©IKK Ÿ7oÞ©S§¸…|) %A8)Ç<;„ŸóéHÌ¿# îñÕårÄÄÄÄÄĬ]»Öårù UYYY\\Lyì±Ç„ÝVâ³ËÌŒeYüXkô¬`ú°ÛíG}饗vìØÁ-ÉÍÍ}ôÑGù¹‘ù5W¯^½~ýúÎÎÎþþ~ár!±Ù˜Åâf¯œøƒ>DyôÑG{{{¹8xàn¡• ÈØûH+57Uÿ˜!‚ É[“x衇ÊË˯\¹rìØ±úúz~y]]ÝñãÇûûû³³³óóóU %æÐ¡CË–-«©©Ù°a·äĉ n·›ûzìØ±S§N={¶»»{Û¶mܪªª“'O6448Έˆˆ’’>Bà¯eee]]]---ÍÍÍmmm[·n ÅU{ œ²ÀRÔz,‰®J¢EjeÆ©OFñ›èîîž={ö“O>ɲìÕ«Wóòò"##§L™R]]ͯsíڵ‰'ÆÆÆ>÷Üs1pFFFªªªRSSÃÂÂnºé¦ƒrËÅâ÷¿FTÉ^ÊH·"„<óÌ3\ÿX^^ÞÕ«W½ƒëY@¬¡GŸ¦,p­¤=ýþÒm-P7ÌFN~¦¤¤ìÞ½ûܹs/\¸À}°Ùlüò@BùL¡÷¤<äßçÙ!"óéHÌ¿ã\ø511±¹¹™ûüÅ_$&&ú\mõêÕííí„sçέ^½Z,ý,æk0ˆ¿9‰œk ˜¯¤ÑÕ!¦Å[Ö2s€®Œò—!oŸz$€œ½V*#ÃKÄ›á¦h‡öé̇zÒmƒ-cõ1f®Ö××WTT|üñÇ‘‘‘{÷îÍþÿØ»ûð(ª<_à§’NBÒÑ€Òä=äQ`ã ÌîìÕà2¼ Kdu4%M6ð0׫‰ÉaD AÐÑèÎu×ÁydF]uVgƒ˜aÅM0;d€!Àæ…I:ÉhóÞIß?j§nÙÕ]]]]/§ª¾Ÿ?x*Eªs~§^O:—G§DîOnB^*¿ÙÊ#\ßñtDÆßñ› –ψ?ÜÚüfRâp„Žñ4e#¨·Þz«¤¤¤»»[½Ãã5€5a¼0œ”@q܉ň×ܰªÕËüùó=ÚÓÓóÊ+¯üà?P5•_ÂAy„üާ#2þŽˆ¤¤$þÚ’’’D6Ç)ïL+’*è ·lÙòÞ{ï™#zTñb¼q†nnÅa7ÐQ~~þ… FFFÆÇÇÇÆÆTMå—pP!¿ã鈌¿#žó²²2nÄŸüüüp2oòžùER]a{{ûw¾ó€ "¸¯) Ĉy-áFPY8Ühcáº4ë‘o47ÐD³}Æ:‡!UV­Zµzõj»Ý^QQqøðaUS’œœ|òäÉ7Þxc÷îÝ~ÈÍÍ;wnVV–Ãᨬ¬dgVTTäææ.^¼8..níÚµ«W¯–²­ªªª¤¤¤3fÌœ93555Ð)§ï¯‡pÿÅ0Œ0-ûQFDD»X þ ?úª±›¨²yÆx 4Àx ôS/¼´Uœ†o0PV•¥öGæì„Õ¢ª ÚŽwóÑe¼†ÄÄÄŸþô§+W®t»Ý»wï~õÕWÙ•?ðÀ/¼ðÂ-·ÜòÜsÏ}ðÁuuu„7"ƒ¼T~KÁ5AM[^^~ñâÅC‡y½ÞüÇü«¿ú«çž{.ÌâŒ×VÅô’‰#P3F 5ÚÌm ô³N[1ÎÓ&…¡Ó†m Œª6^µéÒÖ‘‘QVVvÿý÷§§§óWÞÛÛ;yòdBÈÀÀ@BB‚ϰ—òRù-×Ö4mJJÊÉ“'gΜIijjZ¸páµk×Â,>A[XÆk³¡§ÓµŠN£Mc¨#}QxDcøË€Úè9Þ½s¤½vàwÞy§¦¦æÎ;ïLOOÿý÷¹ùìc?!$..Îãñ(’J\дn·;;;›ž>}zwwwHëø†Äô¾JÁl«Ý¯!PK¼ø÷M2RIü),íëZbƈ~ýPGšÕ‘.+—òÞ ”gOU*í0V©–è<ÞÍA÷·ëÇ/**êìì$ìSxÅ‘—*è2~秤¤|òÉ'3fÌ „\ºtiáÂ…íííá\÷Èè‚aôk ‘âã0SÈétº\.BˆËår:zg'd¨#Ñö^Ñ£EkSŠªïÆ­R-ÑÓµÁdt||Õý×C¤³à¨*‚曤@Œ˜gÐw*úŽÃÌ©¯¯OMM}饗!ÃÃÃëׯ·Û퇃ÿkᣣ£åå剉‰“&Mzþù繕WWW§§§Ûl6BÈØØØ¶mÛ¦NWPPÐßßÏ.æ³N‘,UUU•——Büñªªª 9×€Eêˆa˜}ûö%%%Ùíö¢¢¢ááá@9¡¤Ž¨}ºãÿ(m'P^3ÈFï‡HdŽþ „×ëE¿¬[·®²²òƵµµõõõÜüšššS§Nõõõååå+’*wß}wÅŠxì±Ç!O>ùdOOOkkëÙ³gOœ8Á-VYYyîܹ†††æææ«W¯róëêêØO÷ìÙsæÌ™††·Û³uëVv™@ëô‹½}§ç!Í"uD©­­mllliiéììܱc‡H~h«# ¡¹@Yt¾004}Ë~øá‹/ŽŽŽþñ\²d ;Ó'3ÜŸÜ„¼TB–ñ;„ ¯¾úêõëׯ_¿þꫯN˜0!„r€ 0ãî$Jå\âz¤,–žž^]]ÝÖÖæ“°··—îïï·ÙlÜüpRùÍáþýûSRR>ÿüsnfJJÊåË—Ù馦&.yjjjSS“p ÜŸçÎc§»ºº’’’Ä×)TXXÈ>$·µµZÌ«Pm¢Ž¸:"„ð×™’’(Kב8ÊOGT]Uéɉ^”â©=ª(£“LTRB$"æ@06$ˆ3t¯Q-”²X}}ýîÝ»OŸ>ûÒK/ååå #ÉKå7‡ÙÙÙùùùüžð6›mxx822’âñx¢¢¢Øä6›mhhˆí‡/Ü ‹[ØëõŽ3 3>>.²N‘Ð)Þ PG\1 ãñx¸uÆÆÆ²¿û%:mêH÷M„‰ž±é•Ú!X©µtˆ¼" £áÎ$¾0”dcC‚51 ƒñ42þü£Göôô¼òÊ+?øÁTMå×'Ÿ|òöÛoó¿ùŸ6mZKK ;ÝÜÜÌŸÏÿÓ¯iÓ¦µ¶¶z<ž±±1öQV|Pu)µHBøët8â롪ŽhÆ )ÝqM{Ê®´Ä? ô͉qY­½ÆïkUЋã5€éÑs¢û8Ì©©©Ÿ|òÉk¯½¶wï^vNAAAii)7Þ2·daaá£>ÚÞÞÞ××ÇŸÏ·iÓ¦ 6\¹rÅãñœ?¾  @|†`‘:"„”––vww³ë\³fM8yÖŒâOjàßÝê•U¼S‚©/Ý&C³ZCP(ˆÍ~FÌ3h¶„†q˜“““Ož<ùÆo°C+ïܹ3111##cîܹ .ä{ê©§n»í¶œœœìì쬬,¿«ª¨¨ÈÍÍ]¼xq\\ÜÚµkW¯^ÍδNC°HBrssçΛ••åp8*++ÃÌ3øÀ’9 úh€£I44€î)_á‚•ý•NøùWp¼kRä$£åÐV Æ™_›ð«õº×7V”Ô£Ùù4Àoh@ˆS0Vjò.@F`Áx `M¯,{ €9â3 Ž.ïcq‡ª£ìfáóujÇ/~d ×X^bO ™×ëµ_ À°¼^¯¯CŽÃLa–ôEa@(Ì’ p§ 4h ~˜¯CQeTá·6Zðâ.‘AwZyÙ6ha¬ã5˜ Uã0{ÿò›‹ôd‰úÄïæŒUGzÌðy«of@"´ ÑŒþ”^h‹ÌñãÇçÌ™™™yðàAnþ233£££çÍ›×ØØÈÎäNòRù˜9sæÅ‹ !W¯^ˆˆèèè „\¼xqæÌ™„–––¼¼¼›nºi„ Ë–-ëîîæÖV]]žžÎþž4Ã0~7 1 ƒß¡“3V§kGÕ´tÚ47à Y¸^‚°yô®_ëÖ­«¬¬¼qãFmmm}}=7¿¦¦æÔ©S}}}yyyÅÅÅŠ¤ò±lÙ²“'OB>øàƒ˜˜˜>ø€òñÇ/_¾œ²råÊ’’öǘn¿ýö²²2.a]]]CCƒÇ㑱QÂ(µ Æw®á”cCÒcCÒOËð·*Õ-Ò¸‘Q‰¼€ Œ¬0…ŒŒŒ²²²ûï¿?==¿ÎÞÞÞÉ“'BFGG oôGy©|?~üç?ÿù[o½µbÅŠ9sæ\¸pá7¿ùÍC=´~ýú¥K—ò—ÈÌÌd»60 ÓÑÑ1mÚ4ñÊ€±!Á²Ð¯€^*‰~¨#íy ÛYÉ‹)¨‡ªà„y²}çwjjjî¼óÎôôô÷ߟ›Ï>½Bâââ¸a¦òqï½÷ÖÕÕ œ>}zÛ¶mŸ~úéÀÀ@]]ݽ÷ÞKùì³ÏrssããㆱÛí½½½\B®¡AÆF@ÈØ?!j3Mêì‚èÛ¯!Pƒ½øhgòRÑŒæ~ ¨#–Æç CŸšTúõ>CÇD=xEŽˆãÇuvvÁeŽûSxù“—гlÙ²… ~ôÑG¿ûÝï–,Y²hÑ¢O>ù䨱c„´´´çž{î»ßýnBBÂ7ü®MüÏàDÖ„ñ IÞå--¡Ž þ—Õx‹NÜß((??ÿÂ… ###ãããcccª¦Z¶lÙÞ½{ï»ï>BÈ’%KöîÝ»lÙ2ö¿£££ccc[[[7nÜ({T~¦€:×LÉìwý>5mÛ¶mêÔ©qqqýýýìbÃÃÃëׯ·Ûí‡ãÙgŸ5ÁyÆ|uÄ0̾}û’’’ìv{QQÑðð°"Ò€q?£à ¹6¨e­ZµjõêÕv»½¢¢âðáê¦Z¶lÙ—_~¹xñbBÈ}÷Ýwýúu®­áСC›7oŽ_´hÑ‚ doÄýÿ¶û0G¾³2Óî!¯,S…¨)S¦9rdhh¨­­­¸¸˜[í<àr¹úûûwîÜ9þ|n~8©„fÏž}âĉëׯ—••­Y³F|ýùùù===쟻víZ¼x±ËåúꫯœNç#<ÂÎß¼yóŠ+º»»»ººØ¡˜dG‘ýu$¬#BÈòåË»ººÜn÷Ò¥K·lÙ";8ÚŸ+Ìqvâ_CJåw=ÊåË<¤G1Âq¡ˆPȰƒiõÛ`І™:”ª: yøÒq¸fü1™­Ÿ?PsffæoûÛÙ³gBÜnwNNNWW!$55õäÉ“3fÌ „\ºtiÖ¬Y²ãCÉx æ«#†a._¾ÌÕÑÂ… ÛÛÛåGûs…iÎNœ‚¿oËnšh(.¤s¸”%,çE`¼°&*Ækõ#C|ôÁÏdH6Dé Úðê8\3 <&s õój¾víZNNŽÍf‹ŒŒt8\ßþ®®®¬¬,v:;;[Z¨f¾:"„ðëÈívK-¼ÆÿŒ‚Å6üYWCÕ2e6c…;{†8Ó2zçèÐpV¦C¾)›úø™ )ô•޶ü„IFq4ë×ÀÑe¸æ@c2KYzzú§Ÿ~ššš*\çÇl¦~ ÓÔ‘O¿†E‹¹\.!:+Ly‚"þJ$ü/þ¼“糟 &¢à0©wó @?ýû5˜÷Î @„¾Ã5“YÊú7mÚ´aÆ+W®x<žóçϰó JKK{zzº»»KJJdçæ«#BHiiiww7[GkÖ¬‘=Ñö K6áð~è|¹GaL%q†èÚ@-´€Õ…>ăÂ|²ÁþùÎ;ï|ç;ß™0a‚Ýn_²dÉ¥K—øÿ+Ì|mmíâÅ‹oºé¦˜˜˜;ï¼ó_ÿõ_}V888XRR’˜˜ÁŸðàÁ¬¬¬èèè9sæüú׿~â‰'’““£¢¢îºë®ÿú¯ÿâçSd^¯÷ðáÃÓ§OŠŠºýöÛþóŸó³ç“Õ7ß|“së­·nß¾}hhHvéÔFÉN¢»½ÄåÃÔ›o¾9kÖ,›Í6gΜ?ü[­ÏV|&ä¥:zôèôéÓm6[VVÖË/¿ÒúÇÆÆöìÙ“‘‘uÇw9r„?88èt:ccc§Nºÿþpâ£È~ˆ:Ö!dß¾}ìïS8ÎÁÁÁÐ"òÍ"èr®0Ù9Êà4%œI$Ð<ïT+ï7ƒ&ü_‡‰lòB‡€ƒ9P±û½êûÛßþÓŸþ444´oß>öÏ@Ë{½Þ?þØf³-X°àêÕ«_}õÕ?ýÓ?B~þóŸó—¯®®þÓŸþ4>>üüüëׯ9r„ýóá‡æþÌÉÉ‘¸‰ßüæ7„¿û»¿ëêêêìì¼÷Þ{ù™ôÉðöíÛ;öõ×_ýõ×Ï?ÿÏÃä›üÎÒ/ûú .Dˆ€D8Xd4DÌP8^ûçþð‡œœBH|||dd$7vš°3Ò‚ jkkçÎKùâ‹/&Ož|ë­·655qËÿñœ3gŽp»ÿýßÿ=88Ga?]·ÙlÜFÅ7q÷ÝwÿÇüG}}ý]wÝE9sæÌüùó¹LŠôžŒŒœ:u*7$[¨¥S›ùº~©4>ˆù¥8‰¿°(-¡i¼Ó§R„«"z„×ÄCê±Ì¿²b¾h„JJoï_†º@¸‚2ñÉV%áD §&0 ýO~Û<Odd¤Èü ÛíöŸÕrÍìòcccßœÂg¾ß?¹­ˆo"..nppphh(&&†2<<>â> cò IDATæZLÊ&¤x衇^ýõâââžžn Râþ¦X~;8i³]m6dšÕ*ňУA"Ù¡ ó¾@wA:…FÃ0føŠoûÛ„ÚÚZ½61oÞ¯×k¼~ •••“&Mºýö۹㙚qöìÙ‹-Šýë¿þëãÇ?ýôÓ nT|ßûÞ÷>|õêÕ´´´{ï½·°°0ÐzÞ~ûíûï¿ÿ©§žš4iRaaáöíÛi(ÐFÞõW}-¡Ž@ wõuň¤D­ !á77àºÆâ‡çŽbƒ)™upéåÒelÈ@#ö‰ä'#•‚CªŠÂ±!QG>t?Wèž•ˆ ‰ûZéD‡=ÙøG–e%5‚`Ö+X Ã06½ó ö6Ý(Oqy¹5Vu~)þê¿BÍÞ+šlG5Yq´Çÿ(Õâp>јY÷7óíHƯÀLŽ?>gΜèèèÌÌ̃ró8™™=oÞ¼ÆÆFv&w¨ÊK僻9à,,,´Ûí‡ãÙgŸßÃ0ÕÕÕééé6›266¶mÛ¶©S§ÆÅÅô÷÷³‹ ¯_¿^¸N1}1 ³oß¾¤¤$»Ý^TT4<<¬@Ô¬Ð;GÊ0n¹|îÞðÑ€‚,~@Y¼øÚ0îÕ'T&+©!ÇkPîÇðºuë*++oܸQ[[[__Ïͯ©©9uêT___^^^qq±"©|°—Fþ5òÉ'ŸüòË/[[[ù?}hsuuu ì/°îÙ³çÌ™3 n·;&&fëÖ­Ü:{zzZ[[Ïž={âÄ !ÒéëˆR[[ÛØØØÒÒÒÙÙ¹cÇŽPCDJÆ| tg üS#’^^¥"© UW.e£æ¦÷ùI7zÞäKõ®vµH€aèR š¹w)¥“ÙJOO¯®®nkkóY[oo/;Ýßßo³Ù¸ùá¤ò›mþŸ)))W®\a§/_¾tsÜŸçÎc§»ºº’’’¸u^¾|™njj’%EöCÔQ :"„ðë(%%%PfDÐp®Ð7Ö¼°*UêðndŒD©È€‰átáµêUUÈÐq „ _€¼rß©¾óÎ;555wÞygzzúûï¿ÏÍŸOE(ø†‚6JÕ‘¼J®„Ð[mr‚w/"D‚ƒ¸ù@@@ˆžKªfp2 ‰QÂÅ0L„î]ø{ì1—ËõÇ?þ‘ò`XÁc=öÅ_tuumÞ¼9//Oï쀨#Ýå¯.,>wˆ›P XX®¡2ʵÃëõê?^CWW!döìÙºl]ƒÎ`^¹?s  ‰?ü>kÖ¬Ûn»mæÌ™7ß|ó®]»4Τ_ ¶î£ŽTBÕÍj™’òÒ =¤3Ê-#€ªpu‰Q¡ïÃ6weåßX o²…ÿû«_ýêoÿöocccããã¿ûÝﲿ3Ï:wî\~~þ´iÓ¢££srrŽ9"}[¿ûÝïî¹çž¸¸¸¸¸¸»ï¾û£>òÉC í¶¶¶>ôÐCIII6›Íápüþ÷¿W(H .ÊŸ?•â÷*¡GyÄív߸qã¿ø;L€âÙP|¦¡W¡RBBUÃ Íø§V44ˆCsX®ª²ÑÿÃ0ŒÎý¸ËçÆ:hÔöïßÿ³Ÿý¬¯¯oÇŽ}ôÑÚµkÙùõõõßþö·ÿó?ÿóW¿úÕ×_ýÖ[o½÷Þ{âÛâ|ôÑGK—.µÙlÿýßÿÝÒÒ½lÙ2~sƒÈv¿ÿýïÿë¿þ뫯¾Úßßÿ_ÿõ_ßûÞ÷¶oßr8Ààè?æ Gñ+êHq¸K‰°“ˆ@pÔ&ñöw‰ ÒÿUƒßñ###=ßeØé?üá999„þþþøøxnùÅ‹×ÔÔüÛ¿ýÛw¿û]‰ÛâæÜ}÷ÝÿñÿQ__×]wBΜ93þü»ï¾›í¡ ¾Ý¨¨(Çsâĉ{ï½×L;¨Ež"DŠj,1ͨOÔ‘²èŒ§J¹¢³°4C†`b¥SÆ%åÃÛïÿŠ'Ñå{‹þ7òÚ<Odd¤ðívûÀÀÀÀÀ@ll¬Ämqsââ⇆†bbb!ÃÃÃ&LˆºÝ»îºëóÏ?gWrë­·.X°`óæÍ)))ÊÄH?”ï¾ TR°NÐÔ¦^$QGJ¡6’hk ÚB‚ ˆ•Nzµ5(²%(ß[t¯Aб±1áLî_=~Ãh»o¿ýöÃ?ýÍ7ßt»Ýׯ_ÿÅ/~Á_ˆ"*Fù ŸÚïBQGá£ü}5¹òkåÊ•%%%ÝÝÝÝÝÝ·ß~{YY÷_µµµ---;vìàæ×ÕÕ544°½ÿöìÙsæÌ™††·Û³uëVv™'Ÿ|²§§§µµõìÙ³'Nœð»éÊÊÊsçÎ544477_½zUÍRh-è¥pݺu•••7nܨ­­­¯¯çÿ׻ᄏbÅŠ<öØcüùO<ñDGGÇåË—/]ºÔÚÚêw„>\^} Ç?׌0óçÏ'„<ûì³CCC/^üö·¿Í_F¸<ÎgŸ}6a„éÓ§Ÿ>}zdd¤©©iݺuÜ’S¦L!„\¸pÁoÚ?ü0""bÁ‚]]]÷Þ{oDDć~(e»÷ÝwßÑ£G{{{GFFŽ;F¹ûî»ÃŽîtß=´ä·°²#@ÃÁePš…u$›!B§x5(rbb"·¹Ë—/³ÓMMM)))ÜüŽŽ.IFFƹsçØé®®®¤¤$v:%%…ŸÜoÎSSS›ššT(‡—˪Jknn^µjU|||LLÌÒ¥KÝn7·Ågžy†íå±~ýú¡¡!nþ /¼––éõz=OEEEbbblll~~þ×_-žœodd¤¬¬lÊ”)'Nüñ¬Féè?¸@U9 hPÌ@—Bn"==½ººº­­Í'cû÷ïOIIùüóÏù3Ù‰äääK—.±Ó/^LNNnWíË«šwýï…¸téÒ’%KâââbbbæÏŸÏýhe å}æœ={öûßÿ>ûó“³gÏ~ûí·¹ÿúÉO~2iÒ$‘µ}øá‡wß}wlllllìÿú_ÿ‹khºÝ“'O>øàƒ‰‰‰‘‘‘IIIkÖ¬ioo',”Ð}÷Ð’²m ^ƒ<ÑFã ¡Žd0JÐϧJ¥>}úô=÷Üc·ÛÙõ³Ÿ‰²›óx<ìôèè¨Ífãæó“Ûl¶ÈÈÈÈÈȈˆ~rvØ#.¹ßœGFFŽŽŽ*^"ŽzûÉìÙ³Oœ8100pýúõ²²²5kÖp[\¾|yWW—Ûí^ºté–-[¸ùùùù===쟻víZ¼x±ËåúꫯœNç#<"žœïG?úÑ’%K®^½úÅ_”””¨Q:C_ ‹œ4(f K!7QWW·råÊ)S¦¤¥¥½÷Þ{Üÿfgg?ñÄ>¹õ»Nîêì³]U/¯>hÞa(ÍP‚æ}W A[²ä­ÐR1 ‡.áB…ÄXá2D[Cjjê[o½õå—_Ž_¿~'Ä“ššÊÍç'OKKs¹\~Wkâ~ | v ”œOƒ·U:Ä@ 9 hPÌ@—Báv;æp8¸ÿu¹\3fÌØ¿??·ìDrr2 W >jwBã5˜†—7.†Á—÷@«Ô‘D:Ö‘¹ FGGÇÆÆ¶¶¶nܸ‘ÿ_¥¥¥ì8%%%kÖ¬ñ›|Ó¦M6l¸råŠÇã9þ|AA;¿   ´´´§§‡MÎ-ÏßÉ }ôÑööö¾¾>þ2ôûì³ÏrssããㆱÛí½½½Üeee±ÙÙÙn·››?mÚ4núÚµk999l—‡ÃÁÇ)’œÓÙÙ™­lq@ .…œüüü .ŒŒŒŒóŽ 55õ“O>yíµ×öîÝ+LRVVÆ­3??ŸoŽË«â"p{  *®aàiÖŸ'X]bQGâh¨#y¼Ê άÞpÙ‡Ú¼ys||ü¢E‹,XÀÿ¯ÜÜܹsçfee9ŽÊÊJ¿É+**rss/^·víÚÕ«W³ówîÜ™˜˜˜‘‘1wîÜ… úMûÔSOÝvÛm999ÙÙÙÜ3¶!<øàƒ<òH{{;Û„_/---ìDss³Ãáð›|Ú´i­­­gllÌëõŽKO>mÚ´ææfÅJ`IÚüRcÐKáªU«V¯^m·Û+**>Ìÿ¯äää“'O¾ñÆ»wïæÏ¯ªªJJJš1cÆÌ™3SSS}þ—eÜË«²¼^/^RʲU >EV6xˆ „ž} u=u¥aíO†Êþ¾·.¿®^ЦL™òꫯ._¾¼££cÛ¶mìÀLìW¬Xñ³ŸýŒRXX˜““óÌ3ÏAñ÷ìÙóûßÿþŸÿùŸ333›ššž~úé_þò—“oß¾½¾¾þµ×^‹ê©§^|ñEÅKgÁ+/ðYá$`…2j†æ`Fë%€¡áp¢-&´å‡ˆ È ê­JA¤$ÇÛ*)]^t€ÐÜN¦’@ýLp°ø¼±W¶8ÜU‡ªD‘À¢_ƒŒ-Í÷ç0‹IÉy§‹³ÂIÀ eÔ µÁdã5|ƒß¼ÍqŒø¼Æ±OÔøPö¦Â[01¯×‹ß¡ø† |FDG‹Íð@¨ìçZÂx þ ¿80Óc9Z¨‚à« ×8ë³®±«(…aôkøŸ'máÇNü'@þ´iîG•jq ö;1cAM)œc øÌqU}ë­·’’’LùɶŒ×ð‘ -x8 ƒ¾mÍPjsÜ-Ñ–°&•®ªâ ȾnÙ²å½÷Þó;Hœ™`¼€ÿ!ý•²Y_>£ÅA_fݯ(Aaxåe‰ž‚8N—ËEq¹\N§SÁ5›£´¤øUU½Ë!¤½½ý;ßùNÐ<˜Ækø8Z4‡ðšÉñãÇçÌ™™™yðàAnþ233£££çÍ›×ØØÈÎäª^^*¡–––¼¼¼›nºi„ Ë–-ëîîæ’ìÛ·/))Én· só«««ÓÓÓm6!dlllÛ¶mS§N‹‹+((èïïg^¿~½Ýnw8Ï>û,—ªªªòòrBÈã?^UUnì$0Gmù –¾WÕ —96-ÿVyhhhÆ 7nò»fö÷•#""¸5ø,èŠl8¯à‚67X¤=-³È~¥/ z*®[·®²²òƵµµõõõÜüšššS§Nõõõååå+’JhåÊ•%%%ÝÝÝÝÝÝ·ß~{YY÷_µµµ---;vìàæ×ÕÕ544x<BÈž={Μ9ÓÐÐàv»cbb¶nÝÊ.óä“Oöôô´¶¶ž={öĉü-ºIR z‚XоWUì2Ç^_ø÷ÌO<ñDGGÇåË—/]ºÔÚÚº}ûv‰ }º"˜Àkî8Rø‚FÀ²‘ Ÿ•÷+]„m)iÓÓÓ«««ÛÚÚ|ööö²Óýýý6››N*qýýý‰‰‰\’Ë—/³ÓMMM)))ÜüŽŽ.IFFƹsçØé®®®¤¤$v:%%…ŸœË@aaáÕ«W !mmm………Âø !äþá\.—HXpZ°8+œ迪½Ì “'''_ºt‰¾xñbrrr •ó^»;èŠ,²6jwÜé‚Ëîhhð! G6„NcaÛ’—JhöìÙ'Nœ¸~ýzYYÙš5k¸$Ë—/ïêêr»ÝK—.ݲe 7???¿§§‡ýs×®]‹/v¹\_}õ•Óé|ä‘GÄ“»\®ïÿû\>E‚3€ÅYá$ ¥Œú^U¥,àó¿>WLî‚+žP˜™@Wd‘µQ»ÃPš- Íû®ÚÐÖ ä7Ž<ˆ›. »ô´ÇŽs8\*Ÿ•ø/;'55õ­·ÞúòË/ÇÇǯ_¿ÎOÂšêwUiii~€SSSýökŠ —HÜLÙ$Pr)¯È¸5àä`eV8 „TF]®ªRø$ONNö{þO(ÌL +²ÈÚèÜa!¯À?¯àÑZ¯œÐƒ;q â ŸŸáÂ…‘‘‘ñññ±±1US FGGÇÆÆ¶¶¶nܸ‘ÿ_¥¥¥ì8%%%kÖ¬ñ›|Ó¦M6l¸råŠÇã9þ|AA;¿   ´´´§§‡M.=?Þ¿ Á?oøxçwjjjî¼óÎôôô÷ߟ›?yòdv"..ŽN"üTBŸ}öYnnn||<Ã0v»½··—û¯¬¬,v";;Ûívsó§M›ÆM_»v-''‡}ûäp8¸Á8%ýõ×ÓÒÒ!éé鯿þzÐìXœ¾WU)&NœÈ¶Âs›.++㮘ùùùòVèŠl`:5ví°{à çp hz 'òAÓ¾ù曳fͲÙlsæÌùðùT>+ñ™—JèèÑ£Ó§O·ÙlYYY/¿ü2?ɾ}ûØáœNçàà ßUíÙ³‡ïàŽ;î8rä;ppÐétÆÆÆN:uÿþý!EOz´ÍÔ$Prép~°8+œ¤”Qß«ªUUUñññÜJ‹‹‹o¾ùæ›o¾¹¸¸˜»à ñ·+ÌL +²ÈÚ¨Ýa.sR›%ÀJØ×Úïxa>mj_S8H§×‘$Œà´ÖØžº¬-hÄòóóŸ|òÉ3füîw¿[¿~=Û5ÀgÜŸÜ„¼TBS¦LyõÕW—/_ÞÑѱmÛ¶·ß~›K²bÅŠŸýìg„œœœgžyF¸ª={öüþ÷¿ÿçþçÌÌ̦¦¦§Ÿ~ú—¿ü¥Hré º§€R¬p°B5Cs0#Ø&½³tÞ6F@ï™öQEÝIDó%@K«V­Z½zµÝn¯¨¨8|ø°ª©„:´yóæøøøE‹-X°€ÿ_¹¹¹sçÎÍÊÊr8•••~“WTTäææ.^¼8..níÚµ«W¯)9€¹1ʾîÐ îÔ5£v¨Å±¡Mlù{ú8H„3˜¾¸Õ¸]„G·H–hî×@§0#~À 7PŠNT•QÊU5¤+¯" ¥£*˜| ÃØ¨ÍœcåüÂs©Ú%Õ;äù-F<±h‘Ñ×ë5zœöew6ìº`2R.m²/V¾nz½^›ÞyËA+ƒ^´i @‹˜ÛNaÐ.z¡!\¼VR N›`6#^Ïp%6®pz/ƒ"|ÚÂì*LT%ZüB((&«Ñ²'v*BÃ0zç, ôàª@ÕÎäü¡g1r$˜ƒptð+Ð`. Í‘ÒÉ»¸à’¤¥#>ñ·3 ´Ñ¦¹ Åá/ða2–Ý“¥@p@/*µA(riÓf+”ðz½è×Z@C4kn hqÊ„ó¾]ËLj|NøèÚ š#!ïD*’Êétº\.BˆËår:²3&¾SŠ0b<¨ h¦ñS“e[ða2hnDä„X‰@pD?~|Μ9ÑÑÑ™™™äæ8p 333::zÞ¼yìLîŒ*/•PUUUyy9!äñǯªªò» Ã0ûöíKJJ²ÛíEEEÃÃÃÜüêêêôôt›ÍÆß Ã0Âlp#™ã¢€ñ@;xÊ¢–¼ª çáÙ²-`&hn ÔЀX‰C‹<€¸uëÖUVVÞ¸q£¶¶¶¾¾ž›_SSsêÔ©¾¾¾¼¼¼ââbERùÅï<ÚÚÚÆÆÆ–––ÎÎÎ;vpóëêê<ÏòÂlpýMs9Àå Ä„ÿ2¯s"ÔšRªf­ð¨8 ¨¥Ô).Ì•˜CÐP V~!,àà · ¡–1##£¬¬ìþûïOOO篤··wòäÉ„„„„ÑÑQÂû5y©„œNçîÝ»ÓÓÓÛÚÚvìØñúë¯û-ÑåË—g̘A¹téÒÂ… ÛÛÛÙùÓ¦Mãã>- 5мÃà bÐÖ`zµ5ðׯ2ßÞ‚£€ZŠT¹÷^)¤GÏÕ>²ÂmC¨e¬¯¯ß½{÷éÓ§ccc_z饼¼<"x,ç?ƳòR‰äYd†a<Odd$!ÄãñÄÆÆúm;´9éÙð»iBëcÈ_§9 &f¨ÍTSÎfR}©Q¹¦|f3ÓQ`> >é™rï JF©ñtÍA(À/+Ü9È.ãñãÇ‹ŠŠ:;;I(ëòR…ħ_âE‹Øá$­ÜÖ€ñd¢ðx6ŒãSð@î½V ,»ô˜ó×`5>ÑÓ73ôËÏÏ¿páÂÈÈÈøøøØØ˜ª©d+--íîîîîî.))Y³f¼•Lœ8±©©IÙŒé(ˆ{3 ˜ab ­ml,Æß评±±±mÛ¶M:5..®   ¿¿Ÿø–›Ú°aCBBBBBÂÆ‡††„Û-//OLLœ4iÒóÏ?¯EñdáÚSƒ.©jåš©Åò£gµË“¼òšé•ì6+[µjÕêÕ«ív{EEÅáÇUM%[nnîܹs³²²Gee¥¼•üð‡?¼ë®»Ìqeôz½hV1á<)Qþ”Å0Ì<ð /ÜrË-Ï=÷Ü|PWWGÙ½{wmmí¡C‡{ì1»Ýþ“Ÿü„îéT^^~ñâÅC‡y½ÞüÇü«¿ú«çž{Îg[O<ñÄ™3gþå_þ%>>~çÎÕÕÕ44kM³Êe Þ/ò£ˆaû±›f×2ÇíT¨LPq ÓœáE˜¯ŒŒ~ŸWÓLC~sNs@MÆÜm ~GÍÌÌüío;{ölBˆÛíÎÉÉéêê"ÛRRRNž<9sæLBHSSÓÂ… ¯]»æ³­´´´ššš[o½U«ÂÉG[[s,j÷(!Ê஦ —á ¬Óâ`¦Z•˜ï$/d¾2¢­AˆÑ1(á 6 .êGñ IDATæcî¶¿mQQQì„×ëgf||\dy›Í6<<,u–Ïf³ Ùl6õ‹.:ÛøeQ»_ñQ~Çp5e¸ ëËp§°8+œä©-£°í[˜I¿Ë ­AˆaŒ×ð Ó¦MkmmõxÆÆŽAѶc a×’C£ÿz¾p14KeÔî0¯ Î>8GJ°k‰CC€É»ý šŠ’»JƒÂx `”´8àš*¡ö­=ðÝ€eÉ;틤r:.—‹âr¹œN§ìŒYÆk€PþÀCI‹µñÆú5 ðß›0™ãÇÏ™3':::33óàÁƒÜüdffFGGÏ›7¯±±‘É]䥪ªª*//'„<þøãUUU~—afß¾}IIIv»½¨¨hxx˜ßÒÒ’——wÓM7M˜0aÙ²eÝÝÝÜòÕÕÕééé6›-PVÇÆÆ¶mÛ6uêÔ¸¸¸‚‚‚þþþG †aЯ̆ÿ¤¡^‹ƒpµxL•PÞÆ§;tg0ŸuëÖUVVÞ¸q£¶¶¶¾¾ž›_SSsêÔ©¾¾¾¼¼¼ââbERùÅ^\ÄïîjkkZ:;;wìØÁÎ\¹reIIIwwwww÷í·ß^VVÆ-_WW×ÐÐàñxeuÏž=gΜihhp»Ý111[·n•’Ujáò b06¤Õ­8cÕ¬ÏåAÙl Ca¬à€¬t抴 >+ÜNH)cFFFYYÙý÷ߟžžÎOØÛÛ;yòdBÈÀÀ@BBÂèè(áþ(/•Óéܽ{wzzz[[ÛŽ;^ýu¿¥¸|ùòŒ3!—.]Z¸pa{{»Ï2™™™l׆a:::¦M›&RÀÌÌÌßþö·³gÏ&„¸Ýœ®®.‘(ºwÜÁ€íÛ4]VJ­Õ8&kk`©ÔâàóˆBs p§0K”ÀA¦d…Ó¾”2Ö××ïÞ½ûôéÓ±±±/½ôR^^ÜsròR‰äSü®ØãñDFFB<Oll,Û„ñÙgŸmÙ²¥¡¡ý‚a˜ññqáÚüf5**Š]ÆëõŽsiÅ3IhÝaô”’怚 =m AõPS¡­!ÐæHàŠ3ô½Œ‡ {U8/™mõhèƒN=èÎ&FÛ•H !•ñøñãEEE$”Vy©B-¿_âE‹Øá$ÓÒÒž{î¹ï~÷» 7nÜHHHß?«éééŸ~úijjjHÙ Tî0¯ CñÑeA6ƒFÕgÄ8‰ã8H\#5˜#Dô S †°‚üüü .ŒŒŒŒ©šJ¶ÒÒRv\†’’’5kÖ°3£££ccc[[[7nÜRV7mÚ´aÆ+W®x<žóçϨ]UEñ.·æ ï貜úúúÔÔÔ—^z‰2<<¼~ýz»Ýîp8ž}öYn™ÑÑÑòòòÄÄÄI“&=ÿüó!•(Ðp² ÃøÍs <ø ]hµ>Y={öìŒ3¸ãÅëõNŸ>=hLLLF‹CHgHF@fF(~S¡#tô°ˆU«V­^½Ún·WTT>|XÕT²åææÎ;7++ËápTVV²3:´yóæøøøE‹-X° ¤¬VTTäææ.^¼8..níÚµ«W¯V»êùÿWj/€?²w) §L™räÈ‘¡¡¡¶¶¶ââb.á<àr¹úûûwîÜ9þ|n~8©üæÐëõþêW¿JLLüÍo~ÃÎܼyóŠ+º»»»ºº–.]Ê%ÿÑ~´dÉ’«W¯~ñÅ%%%!•h×®]‹/v¹\_}õ•Óé|ä‘GÄó(„üüüžžñÕ ³ú­o}«¦¦†ýßÿ÷¿óÎ;E*E¼âLvºžEš<ÐI ‡’ºÃ^äGX„Ntæ(#%E 9˜úŽ.^õhFÕñô]–a˜ýû÷¿øâ‹G7o;355õäÉ“ÜgW³fÍb“§¥¥ÕÔÔÜzë­â¥i8Ù@y”Ÿ¡k­V˜ÕŸüä'Ÿ~úé/ùKBH~~þ=÷Üó¿ÿ÷ÿT)ã5˜ìÐÇAü›ð }L(K¡aW§!ô@w°+œÿÍQFFv#“¡$@¡¢6 æN¨ƒ¦ÕwtY†a²³³óó󫪪¸™6›mxx˜N– Öf³ ±/ˆi8Ù@y”Ÿå­V˜Õ/¿ü2++«¹¹ÙëõΘ1£¥¥eâĉРRkæ¾×÷Ûâ >œ¤x[ƒ)£dº_eÌ}¸… ÑKÑý¤ªÊ(¼£“ò†ÉëõRò(MU0ù\¿Aœªm ]F—eÆårýÝßýÝÆ7oÞÌÎLKKûøãe÷kð›·@ÃÉÊs <ø,hµ~³úÐCýíßþ­×ë­¯¯ÿÅ/~!’ó m æ>W„ÔU!ÐÂæ‘Eè¾·ëžJà÷&À‚¬p °B5Cs0ñ; ÝG—MMMýä“O^{íµ½{÷²s JKK{zzØád¹% }ôÑööö¾¾>þ|)y u8Ù@yðhµ~³ZTTô/ÿò/¯½öZQQ‘„ÀXûi™ÈønÂ"üvlÑ Í7 ZÂïMZ„/áÝÝh]699ùäÉ“o¼ñÆîÝ» !;wîLLLÌÈȘ;wîÂ… ¹Åžzê©Ûn»-''';;;+++¤¼…:œl <ø´Z¿Y½ï¾û®_¿þõ×_‹¬8²ÏІ;—P ý. ã5@Ú|Cô°ø7)c1 w·¹éõ¬k©Í/½Ž,£¿Ã0â>cô˜ËcÄšYáBfå=ÃôÉ7(jw†alÔfN„±r `FgΜèèèÌÌ̃ró8™™=oÞ¼ÆÆFv&wÉK%TUUU^^NyüñÇ«ªªü.Ã%g&Ðú÷íÛ—””d·Û‹ŠŠ†‡‡ýn—ý“û×'†að; "ïÔ!j¼W t¢Þi™Hß@ÈoÍMƒï&„O¼*mˆ*ü’j Z3æòè[S”[·n]eeå7jkkëëë¹ù555§NêëëËËË+..V$•_ü&€ ­¿¶¶¶±±±¥¥¥³³sÇŽ"k`Ϧ9mbœgþó'z…xM…Zšu‡C0îþ ñ‡EÆ Nø´Ù14hË ŸÆA@ÌeCè€X㊠½Œeee÷ßzz:?yooïäÉ“ ! £££„7Ò¼TBì7ééémmm;vìðû —\dý—/_ž1c!äÒ¥K .loon—¿žjŸæg4£È¾Kó,ŒûT j3辡ÍÌ‚çImž©ðäÆÑ,ˆy˜@°ÂAzëëëwïÞ}úôéØØØ—^z)//HxJ——J$·" Z¾Ç㉌Œ$„x<žØØX¿mælk 3[âh¨É(ØÖþz@%A+Hún€º†  ·“hpűàE ºÐæsµ7a£ÅYᢠ£ŒÇ/**êìì$¡<¥ËKjY‚¶5ðû5,Z´ÈårB¢¢¢¾úê«ØØXBÈŸÿüç)S¦˜¬­ã5€ø_!ê›Rð†÷F N>¬ŸÏøUÝ[1µ>Ä\)8Opòóó/\¸0222>>>66¦j*õ”––vwwwww—””¬Y³†™““óì³Ï \»vmÓ¦MÜÂ'NljjÒ)§ ‹0â 4¦-Ã:pÕ¤@Æ:!p/4ØŠéi6X ÎH¨wô!æÊ2Öy@=«V­Z½zµÝn¯¨¨8|ø°ª©Ô“››;wîܬ¬,‡ÃQYYÉÎ|õÕWßÿý„„„ï|ç;÷Þ{/·ðøÃ»îºËǾ×ëÅ…Ä(Û'7"T‘^AwÔ,È` ÝF½Þ‰ B˜4­ƒÚ¥”P#>ˆ¹Uk²B½[¡Œœ0¿Ñ²~Bk0#ŒØGÀˆ}1€ ‘ž&hhÝî„ ^>Mì ¡6Š÷ÖAÌU¢M¿*50 cÓ;`-^¯—áýJ-îK´§ÒM?ªdàN”S)Ÿ9 ¢9’¨ÿR ´z01á…^x¼KYølF¼×1VnÁ¿‘Þˆ»Ÿq©ÑÊ€„0±ñ¼ƒ7D#K˜4îÎÀߨÕv'<ôtŒ¹¼üë„cÙ“$€Æ¤bòC˼^¯ý@ÂІeÏw ’rχûBSR¼ZM¼“ ;h÷ý4Ãx  '#î~Æ¥x´ñþaˆ’Õ8vLL¯†UGñ¬®®NOO·Ùl„±±±mÛ¶M:5..®   ¿¿Ÿ]¬¥¥%//鍊nš0a²e˺»»…ëÙ»wï-·Üâp8Þÿý½{÷Nž<Ùáp|ôÑGÂŽŽŽ–——'&&Nš4éùçŸW¼PŠz*Åœa˜}ûö%%%Ùíö¢¢¢ááan>¿"¸Ì3 sàÀÌÌÌèèèyóæ566²óýÆŸÊïV‚Ö#ŸÚÕD r’ðÁ0L„ÞyøŸg`š(«"dT ZÔcÊ#‹ÿ2Àd¬««khhðx<„={öœ9s¦¡¡ÁívÇÄÄlݺ•]fåÊ•%%%ì¨ß~ûíeeeÂõ¸Ýn—ËõôÓO¯]»Öív_½zõé§Ÿ.//.YYYyîܹ†††æææ«W¯ªZ: ÕÖÖ666¶´´tvvîØ±ƒ›Ï¯¾šššS§Nõõõååå³3ƒÆÐïV¤Ô#ÇâÕ #y p†h¶3D&C ó3Ð »˲NjHy­ >®àuuu)))/¾ø¢×ër:qqqIIIû÷ïç–)++›2eÊĉüã ×t‹0Ä¥H& QRyt?Iª·uBHGG÷gFFƹsçØé®®®¤¤$a’þþþÄÄD.97ñç?ÿÙëõ ñ§###…kHMMmjjR´¾Â˜J1'„\¾|™njjJIIáæó+‚ØÞÞ^vº¿¿ßf³±Ó~cÈOåw+|~ë‘Oƒjòšú¼BV¨n¥®§!Í'•”Ò¶hÞaЯ 8ï7›ÌÖÖ²¼ûî»+V¬8pàÀc=FyòÉ'{zzZ[[Ïž={âÄ n± ¯¼ðN ÌÁ¬Ý8Ó¦M㦯]»–““c³Ù"##×Çþ³Ï>ËÍÍgÆn·÷öö ×sË-·BbbbøÓcccÂ%;;;³³³Õ(‹!dee±ÙÙÙn·››Ï¯¾É“'³qqq\¯‡ 1ô»)õȱx5PHÞeH$•Óét¹\„—Ëåt:egÌŠômêǸ97„šÃ…ÂÐÇN¨DJj Böïߟ’’òùçŸs3SRRøïǸà}å¥Í;1úb ?“†(f¨è¹©P/>«MKKs¹\ÂÅRSSßzë­/¿ür||üúõë„÷þ\¸ž@Óüµ¡_ƒ×ëmjjJMMåæû,&>?¤~ ÜV‚Ö#ú5€â¬PÝ¡–ñرc³gÏŽŠŠÊÈÈxå•W¸•üô§?ÍÈÈˆŠŠúÖ·¾uöìYn~8©„\.׃>Hù‡ø¿'6ù /¼––ÆöSóx<‰‰‰±±±ùùù_ý5»XssóªU«âããcbb–.]êv»ÙùºÇJAíCA¿€ÐxÿrHcŒR+;pà€Óéœ7o7§««‹ÿ~Œ›ô•Þ‰ˆ7¼ÚLyÆàwgð~³ÝÁÄ6mÚ´aÆ+W®x<žóçϰ󣣣ccc[[[7nÜ(cÍü¤°°ðÑGmooïëë+))Q&ëÆQZZÊŽ˜PRR²fÍy+ C¿[ Z¨&­[·®²²òƵµµõõõÜ|¿µ„™Ê/)¿ΰ>ºÇš„ž-@1ì|>Ñ0ýá#^:s—]!Äår͘1cÿþýÜÌÔÔTôk‡Qö¨pòi”2JDÛ]„ª9ñYóØØØž={Ø×bwÜqÇ‘#GØùG>}ºÍfËÊÊzùå—‰à}¸ÏED8ÍŸ922RRRrË-·Lš4é…^P¡XáM½˜BöíÛÇþÒ‡Óéäæû,&>ßo ù©ün%¤zÔ š¼¦;{€8+Tw¨eLOO¯®®nkkóY‰ßZ¸5ËK%TXXÈ~åÚÖÖVXX¨Dá ë¨{¬4ï0&ÿº„Ÿ!àFÃÜß'‹×¾•÷ †a¼^oGGÇÂ… ·mÛFÙºuëùóç:äõz ÿíßþ ÎöíÛëëë_{íµøøø§žzêÅ_äÖÀ®Íïd”=Jv>Mvº °8FÙ…¨fÐTý‘Q ªR›­(»·¥X¤ºC*f}}ýîÝ»OŸ>ûÒK/åååÁ!ÌýÉMÈK%’a‘|þ7**Êû—ö‹ññq†aÆÇÇ !Ÿ}öÙ–-[ØKææÛl¶áááÈÈHBˆÇãá’KAóÁ69èРï:舿ïqÇŽÕvHšOjšINN>yòäo¼±{÷nBÈÎ;322æÎ»páBn±§žzê¶ÛnËÉÉÉÎÎæ>²à ºP…»# '¹ÑQØÐ&6þü£Göôô¼òÊ+?øÁTMHH—¼iÓ¦µ¶¶z<ž±±1¶¹ÿàƒ>òÈ#íííìp0Ü:§M›ÖÒÒÂN777‡™UJ0 ƒñ¤ò{Šá77X­ÅÁ²¸Jw8.\xòÉ' !&L8tèÐÀÀ€ÛíÞ¼y3·LTTTuuõŸÿüç/¾ø¢´´Ôg “1MóÿDg‚â€!äçç_¸paddd||Üï÷(˜J¡ëSPPPZZÚÓÓãeVUaÄ$#öÅãï†;š@ ìÖt¡Í†ÝÀ(V­Zµzõj»Ý^QQqøðaUS)¢¢¢"77wñâÅqqqk×®]½z5;ÿСC›7oŽ_´hÑ‚ ¸åu54Œ×A˜æ]œRÄ_è™éukk§ )·Æ*Z ôŸßÌgQ;^ø@¨-Å"Õm‘bj€æHb¼€ˆ,øž|˜àT€ï& T¯@aøžÀ B!Ò¸èVønBÞ¹Zû3¼™®)F‰¹JLS€p„9Ö²JyËh†æN ã5„JÊ™Í @Œ°xw£?Ó“éôй¾umÄš0+¯€¼e€âõzѯ@hnðK÷{w)«B•²Œx‚ï&ˆÜ‚Ó.§Óér¹!.—Ëétêès½¶kÜšP] „òN ã5¨Ç¸Ã7hæR¯ ¢ººÚápDDÐÕ®Îþáp8^|ñEó2½C¢ÿ 7qüøñ9sæDGGgffb¨ªª*//'„<þøãUUUaLºÇ|ß¾}IIIv»½¨¨hxx˜›Ï¯ n ÃøÝÄèèhyyybbâ¤I“žþyŸíÚJЪ¤ª¦”…ñäÞ ‹á$RïÒ®]»~ýë_kü£Êª{ï½÷vîÜ©wF@ŒAwÓwgX·n]eeå7jkkëëë¹ù555§NêëëËËË+..V$•_uuu ‡²gÏž3gÎ444¸Ý˜­[·²Ë¬\¹²¤¤¤»»»»»ûöÛo/++®Çív»\®§Ÿ~zíÚµn·ûêÕ«O?ý4ûÔÊb둆ýP÷˜×ÖÖ666¶´´tvvîØ±ƒ›Ï¯ >¿›¨¬¬ûÃÀÀÀºuë„YIJ?óÌ3ì[Óõë× qó_xá…´´´ÈÈH¯×;88X\\|óÍ7ß|óÍ6l)¾Ç㩨¨HLLŒÍÏÏÿúë¯E²*¿a Z(ªˆäÙ¸Å1\¶9R2Ÿžž^]]ÝÖÖæ“°··—îïï·ÙlÜüpRùÍaGG÷gFFƹsçØé®®®¤¤$a’þþþÄÄDŸ5Bþüç?{½Þ¡¡!þ4{D{½ÞÂÂBöy¸­­­°°0p<ÂÝQ óË—/³ÓMMM)))Ü|~]ðcëw©©©MMM•‹o…ÏoUjVS`,V«n£_}ta” #— ìÈ8Â…O˜Ô šI)¥˜2eÊ‘#G†††ÚÚÚŠ‹‹¹„<ð€Ëåêïïß¹sçüùó¹ùᤠd||ÜgöÏ_ýêW‰‰‰¿ùÍoØ™›7o^±bEwwwWW×Ò¥K¹$?úÑ–,YrõêÕ/¾ø¢¤¤D¸þÙ³gŸ8qb``àúõëeeekÖ¬)…0œòòò•+Wvww»Ýîï}ï{âÑàÖ0>>.^|BÈòåË»ººÜn÷Ò¥K·lÙÂÍÏÏÏïééaÿ,++[¾|¹Ûíîêêºï¾ûÊËËEŠ¿k׮ŋ»\®¯¾úÊét>òÈ#"Y ŸÜÒhùͶQŽt>#æY(hêêêV®\9eÊ”´´´÷Þ{K峟 y©üfÿ§Íf‹ŒŒŒŒŒd?òb†úôé{î¹Çn·³ÅáæûÝD iñœð— ³Òé¹Çãa§GGG5OZ÷gddäèè¨påâ[ Z•AóÏ_Æè‡'HgÁê6Ç5H3 —²(d”àšB-B^p qvšC)EÐ÷]–×ëûõ¯œœì³ªýû÷§¤¤|þùçÜÌ””þ+)nµ~_dÂgå·>Ùàÿ™’’råÊvúòåËâÑ`9Ž£Gމd‰H{¡—œœ|éÒ%vúâÅ‹\Äü?ЛX¿Y ŸÜR~\øå7ÛÆ* áÑ;/á’^ŠcÇŽ9.•ÏJüΗJ¸ +--Íår KMM}ë­·¾üòËñññëׯ ×,±­A Ú8zÅœLMM iUâ—~*¿[ Z•ҙ㉬Yݦ¹©Í@"„`¼MyÿrŽ öË4¥¾þzçwjjjî¼óÎôôô÷ߟ›?yòdv"..Nø¡¬¼T~EFFæåå GÛ:pà€Óéœ7o7§««+++‹ÎÎÎææwvvòÿúì³ÏrssããㆱÛí½½½â¥¤««+33“æ&Ä×SUUµjÕªÈÈHñ5óËåv»¹ùÓ¦Mã¦Ýn7WÌéÓ§s£—ù-þµk×rrrØ÷±‡ƒ[ØoVCƒqñg#}?iêa ýÊÏÏ¿páÂÈÈÈøø¸ôa\ä¥ jÓ¦M6l¸råŠÇã9þ|AA;pp0:::66¶µµuãÆJmN/ºÇ¼´´”1¡¤¤dÍš5òVRXXøè£¶··÷õõ•””H܊ɪ@Uôß!ÓÀ¨c*éÖÜtÃî!Nv|h>ô¤d,¤Ìëò.Ëëõz<žwÞy‡{¿Ä%q¹\3fÌØ¿?7355U^¿†@ï¬ü–ÂoXÉÉÉ~û5ˆ¬'99ùÝwßåzíúE¤½ÐKNNöÛýÁoñ½‰Éj ™ÂÜÒyDå“s„æ‘Ýf³eee½üòËÂ5ûìoÖ/Eø;ý1ß·o;lÓé䯣‘¸*îÏ‘‘‘’’’[n¹eÒ¤I/¼ð‚0•ß­­JéLv¨‚8+W·ù.L 2bpŒ—cÐvqáćð(›«0)ÕÖððß?~xxøƒ>ˆåó'7!/U ìÛ0aÚk׮͚5kÏž=ìÌ-[¶°ã5°ãpIžxâ‰%K–¸\®/¿üò±ö–Þí IDATÇntòäÉï¾ûîÐÐPssóC=$½'N¼xñ"÷gYYÙÊ•+{zzº»»W®\)¾nmRÆkX±b…Ûíf˵uëV¿qã±téÒþð‡"Åúé§—.]zùòåÑÑÑsçÎåçç‹dU$ÿ~sKÛ± ?çF)µçŸ0™¯DjÓ ­A_ÚäMƒ­PgP–ū۬W¨p7&Ë.ˈ6(„ZœRwiTY©¶}ße öù³³³ó¶ÛnÛµk—×ët:±±±S§Nõù ‘YÞÀfl–¢ªª*>>ž›Óßß¿víZ6{÷YOHe—òBÿ;ÅÅÅüß¡?ЛX¿YÉ¿ßÜRu „„|“ÞÙ Â(ù”Á¬åRÚŒ²Êã ÊBu{üt­,CÇÂxõ±!Äh_ÃBTø!¢íË+)%2ÐŽ1iÒ¤>úè®»îRêó?v qõ^¼xqùòåÍÍÍðz½uuuË–-ûâ‹/Ù"% ´S ñ÷.Ê‹@Û Gq”ìHÂŽîYR*V4Ç\›Ó Ú[¡$ Ô8c7° º30 Á0Œáj‘k)0ng¦á`4ßåmûöíßûÞ÷‚Ž¡(ìàˆ'|ì±Ç¾øâ‹®®®Í›7çåå‰,ù÷ÿ÷Û·o—— °,þÆLÇ8ü¾ÞUù¹6‘Gý¨çOCGÀëõâ¶ĘïÉSq †ˆ†Ç‰Å¡jÇ0Äûàþïÿý¿»víøû¿ÿûW^y…ýÂB:_è)…ªJÊóOÃéE3”×%”b®ÄÖ‚Pé`FºåàÔ B-…™šŒØÖæ`èJ÷#W„¾ïPŠ¡÷%Í ­Á([ B¥ƒ90 ¡wàÿãO¡oNÀø Ö¹mýŸñ¨p Lñ'Ä\%xæCÃx ÊPê8Òqøà hÀ ê ¢¹·…6¨ªz¨Ä\A&š×ëE¿€p)~ÏoMÓþVò%2Ðù0€a ÑG,õv Ä\Y?„À"ŒØGÀˆ}1B…û6£à_Fu?`­ùÝ„N¡Bj?¾"æJAC˜ÆkP†Jݧqß@3Ÿ“†§<¢ðáʧ;˜‡G1˜Æk ··ñP°J®GønÂ/<ú²´Ü7ópà(Ó0Ìx AŸ²ðæ¦Á­Ž €ˆŒ¯ýÑ„ï&Dè8à. ti„²xÌåAs!˜Í@§3îÆŽÚA¿ÁÊØ=“aõ¾ƒe÷võ6Ap M Kwœê’¿ðo¬ó#‚ü]QûòZ3æòè[S*aƦw$áß½ '¸e´Î€¶øÍ D×}^í†CÐ}ÿÇ#JH„O¿V ïŽa͘˃CÌÇã5ÐLÕJߟÃìÐӬϾ›Ç:ᢧ¤ôä„Nˆ˜’×ë5F¿¬c*ÎÑ@ͺOkó=ÈÆ¯—@Ó`t:V%º3„O›¸éÞ*ÚÇ`ôÆT#R¶wnˆ$Òý`AwÁÀRzñé´‹ƒ@{ Ããw(X®¸~m4ëÝ€ŸÃ¤ÿ¤hLL½'L iP8Ek­ ôÀx JÒk¬o‚{Yõ騩¿‡gP8Ek­ Tñz½Fê×@üÝ`áB Ë½,úƒ‚tÿ0A ÷v|7ah¨2µ¡•€N¯@aº<„ó›ðü ‰WLÏèÎ`hœU Z¨e°ñXøøÀ/Ù?‡)û•2îžAèÔ ²Q44˜ N˜JA+ý0^€©àÛ`õÈx˜‘}$â» “ÁÉY)he0ã×Àb/*¸´µô}á¯å-º6@˜ Ô©!ÔL†S(tg0%Ôf˜ÐÊ`,¯À„´ÿ9L47€ Øm„ðÝ„¹¡}V6´2‹!Çk`á† ï ¥6Ð1ä1Êu8=/B}°ÄwÖ¦t> p84Œã5¨‚’›¡  Šô`Gs„ÊX ÚlÈ(10á„)ZŒË¨ã5€tÚü&îžA:Ã=T«Oj|%‹·¸”éw ´2XPÎøÚ í¹”ÿL…æ~˜§MÈç˜Â!¢œ he°&†aЯ@u†¸µBsƒ_¸E¶e;5ü?öÎ=¾Šâlü³9'‹!$„ÜÔ‰FkKß¾¢VR£UJ@IÞêá¦Ec^à*D T„­P(öƒD„HÅL%M,L ä H9—ýý±?·ëÙsöìÙ³—™ÙçûG>{&;³Ï<Ï3³3ÏÎΠP504“û5ðÿ† [@ò6hEQƒº¦„) jb¾e`¿Ð RÇ …øK«nß›pFÏT¢ŠY=9)ý` ¤w,ex¬pÀÝ>‡‰'ð½ ¢Öü¶ü‡ë‰ë~Áù!°_˜¯ï¥›ö} Ÿ ð˜š2üœ Áã\@]Hé[`-àدt‚¸y©ÙÞ§óÞ@%ªl )ÓyˆëC ¥ï…(à –e­~!¢Á1}Ç`kZõ)_—“ סÖ:ñÕFøØŽýl›Ì÷KÖýô¯å€ÏÀ1}‹äc8¦é˜yàØÌÇþÀ²¬ÿ¥ ñ( ÀÅ!Ø”\ü´ŸÝ×›)ø Ü\E( O0 i;:£VL àÁD¥ Ä r|©J¥0±) a¤@q^ÙÁg™øã¢ªCå]0î0 co³¡¬Õ —TѦÄjˆ?p@SX<¾ QÀWX–…ïP€à¶&V>ü(“Ü*p¨8W¿` b“©å<à3€ŒÛ3 £øE!ÀäÀ~  +47a¸ÄÉ’ËÐÙXaÃñõM"Uœ𠉀¦v0D`Ö5à3Âq'Yá:þlYÎ…KË¿^¡úUॠÀ}2 äBÍ’{â Ú-g Æ¦&A¥TwðÀ'ôéoÅQ4Ê€ýÀt¨»,)áxo#ÓÀyLpq?ù½®œ3!ÊâõÑ/<Å ÷üA¸M:Âr2E@ˆOÃ5p+¸þÖ§oRxux—ÀÕÀ(ÜŽ£ Ä‹ñû5xŠÒ ÓåGò|ùé#„0$àÊ–Oã¼}ƒnsEÊlJ=rüAkçŸ#\$ý_XË8 lzžf@Ð<±bû(²Àä;ðïSÀÒw@1à<VÈÜmAì®r¾‘ N˜À <ýWOa@-ð_2粂èÝwß5jTPPИ1cþøÇ?Š_RøË_þ2a„àààÐÐЇ~øÜ¹s2/ôÅ_<ôÐCaaa?~ü¾}û¸ôqãÆ1 ³ÿ~þÌýû÷3 3nÜ8éŒ !íN‡ïS5W„%ñ˜ãÕÿõß|ðвqšØ©à @OŒß¯ÁW>üðÃgžy&..îÂ… Ÿ}öÙ¶mÛÄç¬[·îí·ßîîî.,,üôÓOŸyæ9%=ztòäÉ6›­¶¶¶££ãî»ïž6mÚÿøG„ÐsÏ=‡ÚµkòÎ;ByyyÒÀ´n€Ož¿CÌÁ ñÉ-Ý”€nxj˜Ð`r1xP.=ø>ðáŽï¿ÿþ¿ÿýïÿøÇ?~ò“Ÿ „Nœ81a—3¿ùæ›ôôt„POOOhh¨Åb±ÛíâkñK•¸¼<ð@EEEuuõwÞ‰ºzõjTTÔí·ß~öìÙîîîaÆÙíö¦¦¦ØØØÖÖÖøøø   –––ððp‰Œƒ•ä~Bºüø£³† ¹œnWÄ!ÊMÄKÊ¥Mc óàà·Y¸;¹Ý[Nâ0Äkë²Àb]+ÂÓ™UUU!.”€;v¬øœ´´4î`РA!‡Ã!G†S§N!„îºë.î¹hTTBè»ï¾CEDDüêW¿²Ûíï¼óBh÷î݇㩧ž —Î&G¸ºA‡o¾¸\Ô`I<7 ¦x:ÙXçA$à+Ò#%è€\ÄMîѰ_ƒéû¨Åbq{šœpFww·ðnAúþu‰?üáü_.ÅkFÀC :lß`ø\ ±{À{¹¸8­8Ä&¾Ã èyû5pÛ1ÖÖÖr?¿ùæµJæ^ʨ¨¨pûßx`Ô¨Q555o¾ùfmmíí·ß>iÒ$9@ýƒûäVõšÂ\@zö…Oˆ –ÃŒï¸dW÷*ÚÔ)„·$ÃoOà'dÝN^|ñEîo{{{KKËÒ¥KÕ*¹¸¸8((hñâŧOŸ¶ÛíÍÍÍï¼óÎĉ¹ÿ2 “››‹Z´hú~·H9àÐâ} |æŠB`Þˆ?°ÀüçöøK` ˲Xì éi]«xoH„лï¾ûꫯ^¼x1%%eÙ²eÏ=÷œËîâ%…Ò›ñÿ=uêÔªU«¾øâ‹k×® :ô¿þ뿞þy~ýÂåË—G```SSSLL _ŽDFið‡tù‰@7%cbMUæxÂ!¯á5ƒ‰ªM‹ÌVŸ1ž\7 EN£€à‹ŠPæTxúeJöˆv»ºººÔÔÔÔÔÔ3gÎ- ÀðWôÑ3>Öô3Ü€ÿi|TmNä 0´¸ÀLèü èû *¨ `@蘥 œš':ë;t@¬d"Œ,ß TÉ~B–tF—°çd3gΜ;wnuuuppð¸qãÞÿýÌÌL£…ÐajŠOK†<Áè©ÆžARù¸D訔[ྣžÞ§ÆvžB¢o§d?!ÑF:£µK¿_€9´ö>¢µª±5¥Ì!8q#uln¼®âÁÖ.à6TB\÷%3T ÑX;‚ÀЊä'P#ÀŠÀ@ä|“Äá,|g`G}@7Hì¾ä£Ý÷ŒEh5* GBààfTúnJö*m¤3j¹Ã0*‰€_˜yj*ñ9La Ü0uÁ¶¹a+à+fè¾hš¢p˜Ájĉ›Ñí˜(ÙO趑Ψâðx¨ÿ…Ùn¨™ ÿކ¡Sa( ó y阢p˜ÇjÄa¸›™Á7 W²Ÿ˜ÁF:ã§KÀ~ €ðŸ£Ò„vÚ&Ȏ⾌±=A汓QŽ!†Ÿ¡³™’‚úÂDŒ²‘©|ƒÐÊ*6ø£[šwü‡‚¡Yh¤p²ìHÓŽ>diÞ(0‰,ÈASÂh‰ÌÙö‰®54=RÐßR&ô âªLœÀÄ¡LÃXì×°oß¾ÄÄÄ€€†›Òoƒ`8âj”$€xêYC:ºY011qÏž=&LÐúBò!Ô{ ÛÌèf23û)u'EN P jã‡òzúø¢¯€ÆôGuaDOS8  Dè_O2Ñ¡ à6D£›ùVëu]BÅ63DdžŒwØIiÊIЉ}Eª<­Õá†ón=ý÷/ùË„ ‚ƒƒCCC~øásçÎñ'×ÔÔdee 6,(((==}ß¾}ò¯õÙgŸMœ8qРAƒ ºÿþû?ýôS<]·±±ñ׿þuLLŒÕj1cÆ_|¡’’€r„—îˆÿIúëND ¯"¶&¡ð`YÀF½6›mñâÅÑÑÑ‘‘‘6l@ßeùWPûúú²³³CBBbccׯ_ïÖ3Å…¨ŽËª4"Àp¢¢dÂ'ôñ4Š}CD4gLl¤®–°Õ¹¯.aü~ ¼g¸Œ;½Öaݺuo¿ývwwwaaá§Ÿ~úÌ3Ïpé•••?ùÉOþñüå/¹qãÆž={Þÿ}ékñ|úé§<òˆÕjýî»ï‚‚‚}ôQa¸AâºÓ¦MûóŸÿüûßÿ¾§§çŸÿüçÔ©S_~ùeŸÕ߃m/£:^W.>¯3üþ‡¬RB´[ÄQTTTSSSUUU__ñâEô½ò=ä+¯¼ÒÕÕÕØØX]]]QQ!³€nèèlÀlPØr¥÷ÇÒ±!‹Åâéîø›o¾á~Þ¸qCxþƒ>ˆúä“Oä_‹OùùÏŽª¬¬ä~VVV"„î¿ÿ~9×µZ­¡#GŽ8NŸU€1†»‡9QWíØÑ×.‡þJ„Š­.äšOíêE¥ºÌ€F†‹?{ö¬øZüñðáÃÏŸ?Ïs‹.e¢:d¹.VÒŽ9’F:Δ””Ó§OÛíö_|1:::888++ëÆÜ ¡7&$$pcÑ?þx̘1IIIÛ¶mãÏáúúúòòòÂÂÂÂÂÂfÏžÝ××ÇŸðæ›o&%%Ž;öôéÓb©úûû † ñÚk¯iª_ÑÔ|ÚÎ{òäÉáÇ¿þúë,ËŠ }õêÕ!C†tttp'÷÷÷GGG···óåèc¬Úˆ ÚÉV__ÿøã‡††0à‘Gikkã¯è"ën@ë©eI´DasË¥xê „èà>©ÝøïP(#--; A9îç‰'B“&MRPfUUBèÎ;ïä~r_ýµœë¦§§#„&Ož:vìØ… ^ºtI `¬¥çO#ô12¡b«e+„î–)´´´¤¤¤HœÐÚÚšœœÌó¾KXXØçŸÎ9r$22ò®»îZ½zõ©S§ªªªÚÚÚ °|ùrþü“'OVUUÙív„ЬY³ŠŠŠ®_¿^QQÁ=-²bÅŠË—/Ÿ;w®®®®±±Q¸ö¶¼¼üøñãÝÝÝ™™™yyyb©`9ŒF8pà±Ç+++[°`BHlèÈÈȬ¬¬²²2îü#GŽÜwß}ÑÑÑ| `íÈÈÈÈÏÏoooooo¿ãŽ; $Nf¸ÊŒÃmË’h‰ÂæÌËñÖ[oåää wN";¯P/Æ¡±è‡ëx¥KœÏ§ 4!ÔÛÛ+ÿZ|Jpp0BèæÍ›ÜϾ¾>„Ppp°œ¼çÏŸŸ>}úСCyÅŽ?^® 0'1!jiO úÓÿ`Õ}ɇ8U„D{ùŠu¤^i´¢‘á¼®kˆ‹‹ƒu ÀJÚÍ›7geeqÇÓ§Oß²e ˲III555\bkkkLL wŒº|ù2Ÿ711±´´ôÂ… ÂùªÅÅÅÕÕÕqÇgΜ‰‹‹ãOèììäŽ{zz¬V«X*}ÜFššO»ÂBëÖ­>|ø×_Í'º5t}}}BBB?˲Ï?ÿüÞ½{…å@‹ÖG¶žžžèèhþŠ.xJwÛ²$Z¢°9 KûòË/'NœÈÍO=õBtð ùjÇÂuÄâZ,„¿ªä›o¾ž#=çŸí 犽téRjjêêÕ«¹DO†fYö˜0aÂÑ£GY#Lƒ[¢lQQQ¸yóf}}ý¯ýkþ*÷ÜsÏÿþïÿöôô477?õÔS|zDDÄ™3g„‚¹ÈÉøÔsrrÊÊÊ„érz¼Â'µcê:&àÜ¿P5±­#¤ÌLjR] Êhбöš?þ•+WZZZ¦NºhÑ"£Ä Èi1Õáp$$$$''ó¤p8«W¯æ6´¿ûî»÷íÛÇ¥»HþÞ{復¦Z­Ö´´4þQŽp÷û¼¼<áî÷ÂBÜÆúûûóóóo»í¶ÈÈÈ7ª\aÿÐzh¡Eɬ@½---£G^¹r%ëÙÐ,Ë~ðÁIIIœKèo › ‡¦‚î×ÛÛ›œœÌ-m`æÜ¹s£FBÕÕÕMž<¹¹¹Ùåü„„„òòòÛo¿];‘à5 3ÆBD) Q·˜ä cÁVØ F=¾½C¡½<˜çÓ8¿OwDUøê«¯&MšÊ0LHHHgg'ÿ/þ3~)))mmmâ¼---))): ªð…Pf_µ¼bÏž=111àc€ºÀ~ @'ú‡{õoÂ8‡ÿñôÕk„ð³Õ±±±â¼X}w¼¢O bÙ²eï¿ÿ¾Ì‡T äLì׸CÊ#Ma”‡§÷ÿùÖ–áT E"ˆ¾¾¾   àààÆÆÆ9sæÿµpáBn‡üüü™3gr‰BmgggÏŸ?¿¹¹¹»»;??_W¹Àw”u§¾æjnnþÙÏ~&}NNNNSSB „vR IDAT¨©©)''GT4aì:UÊÛFèæ`AÅÛ~q¾¢`21€\0YΠø©H#4]V³sçÎ¥K—†††>øàƒ<ð€ð_“&MºóÎ;GŒT$ÎûꫯŽ=:===%%…áH‰9r8tèPZZZPPPrròöíÛùô²²²äää   qãÆUWWs‰¼Ñ•å#þ Ã0,Ëp¹úúú²³³CBBbccׯ_ÏURR²xñb„ТE‹JJJTTM2‡1 óÔT ž¾af‹ˆ1ÜFêšÃðê Ø¯?Áç½ O`nü$##ãüùó6›­¾¾~Þ¼yBÇ[¶lY[[[OOÏÎ;È% O ,--½råÊÕ«W.\¨·è€Ð¬Y³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\bÄŸbáÿäé•W^éêêjll¬®®®¨¨æåzQèK%Ðg ¹˜§¦bpó X©$7ù‰¯‚ië,¸ÜBÛÔàÖÝá#‰FRALTªQݱr`Àrl”˜˜XZZzá—ŒÜqOOÕjåÓýÉ%&>>þìÙ³b±ùãáÇŸ?ž;>wîÿ¯ììl.6qáÂ…ììl‰ ä¨rDýøãÇŒ˜””´mÛ6>ã›o¾™””8vìØÓ§OóéþäÓßß_PP0dȈˆˆ×^{Mº»Ýþâ‹/FGGgeeݸqCºîàäɓÇýõ×].ýÍ7ߌ9Òétr?NgJJÊéÓ§=]!´qãÆ„„‹Å"¡î ¯¯////,,,,,löìÙ}}}ÒUó„vΆ¿o¸µ Ø:W¯^2dHGGwrttt{{{SSÓÓO?úÕ¯~ÕÔÔä§* Õ××?þøã¡¡¡ xä‘GÚÚÚÜfA¢¸€ô%š° Š‹åR<5a\Ö5…è°1$æË\vŽðP "ÀÊxÛeÿþýååå÷ÜsObbâ_ÿúW>=**Š;4hÝnW%—¯ŸbimmMNNæŽù„Ю]»B‰‰‰»víòz!jÀmŠD9«W¯>uêTUUU[[Û€–/_.]BèÀ=öXYYÙ‚ \.žžöùçŸs?9y×]wyº BèäÉ“UUUœzÒÇŠ+._¾|îܹºººÆÆÆ—_~Y±Š ÄXßàp± Ø:‘‘‘YYYeeeÜùG޹ï¾û¢££‘9V*k£ŒŒŒüü|n©;  @âda BúŠÍGØùb9Þzë-nµ‚DÖÄ%dÆ$sN‚ ¾6XM Gt‚‰ä8È )ÔWPíênf­„|3}üñDZ±±|.—Bܦ+ÎÅãu]C\\œÛu ò!ÈQ刊ç:·å$%%ÕÔÔpÇ­­­111Ò…¬[·nøðá_ýµ§«oÞ¼9++‹;ž>}ú–-[$®‚º|ù2Ÿ×“¸ƒ¸¸¸ºº:îøÌ™3qqqÒUó„±ý­±¾áÖ‚n­S__ŸÐßßϲìóÏ?¿wï^–Š•JøÛHHOOOtt´Û,žºnOW”h>Â6(,íË/¿œ8qâÍ›7YÏMX —ÀÔu|À¶1!˜Ä0™«û&UÀAí »vÒhZw3+–¼Úhúôéµµµ·nÝúðÃå=•å³bÅŠ)S¦455uuu-X°@|~AAAFFFGGG{{{FFݱV†´'OžÌÈÈ2dHBB÷ePV†æ•åc±Xl6›Xf·?­V«Åb±X,èû]?% IIIY±b…§K³,{õêÕððð+W®tvvFDDtuuI\ÅE*i X,»ÝÎÛl6OÓ6¯Ždlk¬o¸µ 'ëL›6m÷î݇#55•_r/]¾ðl[4æ6:qâÄĉCBB89=5‰XƒÛŸ¾6ŸK—.;¶¹¹™ûéÉI¼VGxޱœ0p|ðÉަÃðºP£I·Ð];iŒû†ãÕFï½÷^jjªÕjMKK;|ø0ŸË¥—e¹Äô÷÷çççßvÛm‘‘‘7nŸßÓÓóÌ3Ï:tÍš5Þjì Y^*_Z<ס&$$¸}ËÚS!MMM£FZ·n§«³,;mÚ´ÒÒÒ7Θ1Cú*žjáVqqqçÎãŽÏž=;|øpéªy“þÖßpkAOÖ©¬¬?~ü_|ñÜsÏÉ©‘Ë…°mјÛ(>>~Ïž=]]]N§óÚµkü™V«µ··—;îììô5ÖàSó¹yóæÄ‰?Χ{rùøä°_×¶z­ÿïMø _ ºßT$>Ñš2}úô3gÎØl¶ýë_S¦Lá]úUá`Ο\bÜ~ŠExþ AƒvïÞÝÛÛÛÖÖ–™™¯¸¦t••õí·ßö÷÷;N‡Ã¡i.1ÙÙÙóçÏonnîîîÎÏÏ—>yîܹ³gÏ>þ¼Ýn¯­­1c†t!ñññÇŽÛ±cÇš5k<•™››ûÖ[oíØ±#77Wú*.Hk ++«  €[>“ŸŸŸ••åUb¬o wôdñãLJ„„,_¾üÙgŸõçŠÄa¬úúú‚‚‚‚ƒƒç̙ç§§§¯_¿¾··÷Ò¥KsçÎåÓ#""Ξ=+G<ùÍgîܹ3gÎüùÏ.L‘Ó„Uߨ@=à$X!Óª[âîÂØªÑªUÖªyÊ%]š²\ 0¤ê\>à'hþüùW®\iii™:uê¢E‹|ÍN–¼J‹ù:áO‡Ã±zõjn×ú»ï¾{ß¾}r iii=zôÊ•+Ý àp8’““ùRxºŠ‹TÒn¤Ÿ——'ÜHßmÕ<¡©³aîn-èÉ:,Ë~ðÁIII¼åƒs‹ÆÜF9r¤Õj1bÄÖ­[ù3«ªªÆŽkµZÞxã >½¤¤$44ÔSÉÊšxâ/á$2‘ï!F,ðèð9@>2Í¡®Õ([Î FøH\ç:RܾW{oPŸ\>‘““S\\œ˜˜xñâÅW^yEb~­ÍJ±ÛP&6¯÷‘)Ò–-[V®\ÙÛÛûË_þrÛ¶mܨק‹^wù'0 DSóQæ[·n½téÒªU«|͈³p–bä«a˜áÒhp†Õ÷5 úÞ›p‹0F ¡ž:t(---(((99yûöí|zYYYrrrPPиq㪫«¹DÞ4Êr‰ihhÈÌÌËÚµkcbbBBBrssoݺť—””,^¼!´hÑ¢’’Õ´šáéa”W^xá…¶¶¶ëׯ¿ûî»>À“k×®mÞ¼ù…^0ZÀ\°°_‰0:¢ÿåc¬¨‡D(4ðnÐ9x„Ø~õº¢¢¢ººº¡¡¡¥¥¥°°Ogðø¹É݆Lk#†ÀgŒøËðqŽáøŠÖþFo0 µ`Á‚¸¸8—F7jjlD¾º‘ïP`î÷êB±³ªŽ\‚‘±ÐÀÿ"ç*T¢ÅiíÍäÔ+))©  à‰'žHLLfìì쌊ŠBõöö†‡‡Ûl6$xKBY.iz{{“““¹¥ Ü;wnÔ¨Q¡ºººÉ“'777#Á;.\(,,4ð }.ø‰9mDh­ €ÎVð×þR†O gdŽÃpÃ$^å)Ê@}ÅebZýHû¿Ÿ­C¨Uê5é =#÷f^«VYYY\\|âĉàààM›6eff"Qt€ÿÉ(Ë%櫯¾Z¶lYUUUOOw¦Óéäìv»ÅbAÙíöàà`.láR²?÷ÓFÉ‚âÖí¢ëK´ðæD7“™Ù7H©;)rR€Ï‹`¼‚'0ßS†Iô¦]¬:7øüz:t(77·¥¥ù5P–‹'!!áw¿ûÝÃ?~ýúõððp>‹p]Ã>ØÔÔ¤QÅýV·¡ Sõ¨¤Wq@¬AH©;)rR€UÃ~ x!|ÃÇ$ïÉ«ˆË&t¿~¢zíH)ª ì©x~õ!´páBn‡üüü™3g*¾`rÌÓPpûÀç­o@zÎ-MëMàMk#Qæ$NhiFB”A\"Æ £Ò+àáR(u˜'ne?þø“O>òâ‹/¾óÎ;šæ³sçÎ¥K—†††>øàƒ<ð€ð_“&MºóÎ;GŒT¤ø:ž‰9tߌ8(»}Pl)j0ÊF¦ò B+K¨ØD L·°_FPv·ÆŠUê¶ ({…„b-©…*¢¸O#®Rþßae/àÅÝ,eU£¬:Tb”Lå„V–P±‰@±n† ñ‘}ý¡yhÅ”øÕb|û…@ƒvPìHè­}}wZ-E ºœy|ƒÜvméŒ?.Á²,©þDä¶j" U½=©°·•óÂešÑM‰ÖÔ˜ÔKÜX$Dòs]ƒÎUÆDÀhêuiª‹Z‡ ¤ƒƒ]pAS(¨ UÀ ÿõ ïP 4  RÉ|+ÖÎ¥ixª8• ÑM‡×4ukK']~™À]7ð±>’¨5U£¦"†£B ök0šê‚3¤ëÙmk—¹H  ꢑIwQOÐZ/·è_YS©—&H_âk—3IT04†"ù ÔpA-ÂæóÃD=!]ۊǦn_`#W8 EÏIºz‚Öz¹ÅÊšJÔAbÄÁlž÷MÁ\ù˜‹':já ºk§ª+ b FBÊ‘Ðõ/.¢m ” Lù$…??ÑâF‹º…Öz¹`T5M¢^@pM!1*D ˜{5¾¹’ý„錊.@â7Hüv†ÒGÄ™ÀeÊM"þ¼.åg € ž“h§Ò ºµDwíÌ!}8?$•)€µ!¤¤Ë/3ÔQEÔUÃ0VµÊÌ´[Cn)4ho:ÖþhõZ2¶‰qê¥U·€W Î¥ÐÄOxò -š'ø¡2@oF@â Tx>…`fíÚµ111!!!¹¹¹·nÝr9¡²²2>>~Ó¦MÈCj³Ù/^¹aÃ=„ö –6 ¥Ÿ·ÅÍÙ¨AÅÕ tø§[(^±<À@ÀýÀXIÈ ðzEÿdÍaY6Àh¼¨¨¨¨®®nhhhii),,þëÀ=öXYYÙ‚ ÆâÏ›ìq[²×\â[›KFé]¼"}ßô$?¼d ì׸²páÂööööööüüü™3gòéñññÇŽÛ±cÇš5k\²û¯ìììùóç777wwwçççë$4ùHß#ý¹ƒús--jj\Æ ƒ-ž†e˜#ô‡e,€ùÓ9{Âm\€ïÉåå)¬àVB·•ÖÛµ(þZÒ§AÜÀ„ÇL¤·œG “&MºóÎ;GŒT$üW\\ÜÑ£GwïÞ]\\ì)û«¯¾:zôèôôô”””#Fh..™øz4 RäÄÅáÖL¨‰»'0@&é¢Q4AØiË,VNdA\¦Ûd×^.>.¼ÆT„0 ì×`ØÊO¨?ø„±Ê—¸«é,‰È’OÁ“p_sž%!™Vuà9f¬ ‹?“[_}^æµ”5%·…ëÙ*•.\òº½  :Œ?ž (ÛÄ´¾.¹J¦£:£@iØvÁ9€çP˜À=£ ®ëgÛ1<Äà‚ÿó8ˆ;Z±Àv¬±í®ÈA‡zé«‘ø: À¶—Ð .(܆nàù€FE|@Åf‚[ˆAˆŠÝÄ- rnIúpŠtù‰FgåS<4¤¸já“ÆLØK@pALè9&º\@7 &Ñ?² qi<[Ÿêµ`Æj´ @-t Y–å*h†å0ª Ô’qïçD¶!¸¾íP¬¢ <†¤eÀ¼Ý)]x-?*–µ  y.„-ðÜÉ@tS>Ý“TS]d*M쫤w\Ðh’TBzÛôÏh‚" <$†ÄhÝÿÃz@0(1Ńe4izê?úŒØL5Ü7UeÕ«ÒÄ'¨g.ÌK)ƒÄ¶èþѬ Bè1Ñ­» Ou€Fˆ¿¹Š?ðIX”iC±™§³,»lÙ²ÈÈÈÛn»í¥—^âýª««kÚ´i!!!ÑÑÑEEEÊ.*–Af¢þ˜m\(ž ^‘¯4áÂH„½Syê8Øbˆ„@(ÐdL#‰t^VÅ–)¡¦R¹Ï­0úˆ¡º ÉܪK¾&a˜£eT@YÏèOê¶SÞ¾}ûñãÇ¿ýöÛššš£GîØ±ƒKŸ7o^HHHssó™3gêëëwîÜ©øºžÈÉÉijjB555åää¨^¾H¿]ù„©*«ÂPp{“Æùž ÁlÁÙmù0°J…j&Á<² –Ó­T: £)âÑ…Ö—ƒ¸ A‰N@_¿ æÐ¡CiiiAAAÉÉÉÛ·oçÓËÊÊ’““ƒ‚‚ÆW]]Í%òT–K‚)S¦=z”;þÛßþ6uêT‰“ÿð‡?””” 6,..nÕªU»víâÒ?úè£ 6DFFFEE•––¾ýöÛ\ºÍf[¼xqtttddä† ¸D‡ÃñÒK/ :tРA3fÌèééá¥---MLL´Z­Â‰÷ß’’’Å‹#„-ZTRRâµ^ÚaÚq!Weâ:cve !ï:Ap@óÔ=*PMà‘YL¤å0OˆAˆËèBçëBÜàaYÖ5`ʬY³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\¬]»6??ßn·Ûl¶%K–lܸ‘KŠŠ JMM]³fÃáàkkkÇÏßsÏ=µµµÜ±KSSSÃÕÔÔTUUÕ××_¼x‘K\½zõ©S§ªªªÚÚÚ °|ùr>ãÉ“'«ªªìv;W K_Æ ä×p@ÅpƒþÁ0¾¹AËš¢ BdÖ7±9Ä2ã&¡n^]:î ¿H€!ñ$͆ðGÇräOJJ*((xâ‰'…;;;£¢¢B½½½ááá6› ¦(ÊrIóÌ3ÏŒ?Þét¶¶¶®[·ŽOw8µµµ .LOOçb‹Åf³ „œNgPPÝnG=õÔSáá᯽öšÓé\²dÉîÝ»9ÊËËo¿ýváå’““?úè£1cÆ „ÚÚÚÒÓÓ[[[9i/_¾ùä“°°°ùóç¿ñÆ---!«ÕzóæM«Õ*,000_¶àt:†q:µpQ¬×A¬AS@~"ç!˜tFʇà•@c$¬¦f€úh‚:" <bðŠËú%q3À0 ì×€)÷Þ{ïÁƒ;::¶mÛ6oÞ€3fÌ©S§¸ã¯¿þš[›€2dÈz{{[[[ããã'OžÌ¥6¬¾¾Þ¥ÀaÆ566Úív‡ÃÁ…ä‹j¬Wè0²ohhÈÌÌŒ¥Ý%1¾NK¤—Åb¸LTGê%Ã`Oï8àßIʬ,qõBf݈ABà3Bóälò&€?,ì×€-YYYß~ûm¿Óéä7DÐ(—åååW®\ÉÉÉ™7oÞ?ÿùÏýë_ÜUjjjìvûwß}—››ûôÓOs'Ïš5ëå—_nii¹|ùòŠ+øïAäåå577÷õõ—8wîÜÙ³gŸ?Þn·×ÖÖΘ1í`gÏžõ¿‚d‘‘‘‘ŸŸßÞÞÞÞÞ~Çwpéžöéàq»5€þÜVåä‚à‚ Àé@cô B ˆäh‚™§£‚|"‰1 à <^ãF ¨€t÷Š'äJÎ!Gþ÷Þ{/55Õjµ¦¥¥>|˜ÏèRŽË²\Lš4iÿþýÜñçŸþðó,»wïÞ´´4«Õ:|øð‚‚‚ÞÞ^în;†ˆˆˆˆˆˆåË—;N.}Û¶m±±±ƒ z衇ªªªøÂûûûóóóo»í¶ÈÈÈ7r‰‡cõêÕIIIwß}÷¾}ûÜJ[RRªÀ ´sݲ§§'::š;NLL,--½pá‚§“ãããÏž=«`¤7Oñ³Çöô_úº}@`n«yÂ×Þ’ú~Ï<§µ^†@)vió€`oHC ]~¢ÑNù:˜õ«¯¾Z¶lYUU÷)PæûXÜîÓ!ÄíÖî­ù1{VÑs 0‡9a`)>i˜Üd~>½¤Xi25C™<½î¡¿$”á²*Ä@Iä#±HGgIŸ`L~W3 ˜Œѱ†„„„ßýîw?üpxxøõë×ÃÃÃ].wèСÜÜ\nëM—ŒâO~h¸·ŸH)YÙ ãÁ‚öHÔÛËŸhÅjqÁœ‘·/ú" Ý;„¸YÀ~ fGÁk€Qôõõ766Ι3‡Ow»O‡Ð”n·ÆtCúEbŸ üFêÓE¡á€áÐhð§Ÿñº—>dj‰z…¸­>•5ÅeË$qÀS+€ñ žØŒÁ“T„î»—nè3FܹsçÒ¥KCCC|ðÁx€OüñÇŸ|òÉ_|ñwÞg|õÕWGžžž’’2bÄM…Æ*6 °&þd#ˆ&(F¦ºÌ£·z ¾Öø@n¸G:è@n½¨aدÁH—Ÿh4R>Ø”Ç̪8êp?/§ð€þ˜¹I’ßú01“?tLª`82uhNu¹UŽ9U.kI ”D-`<ƒ n·7“#?XƒÖ˜SÞªµ´Ñ7þ0'æl’d¡¿ š .Yð Ä0‡Ö)!Ä G}é-P¶&«•,X Ê0|B.^:¨nÉ\0_%–e¹¥¤`><Ñ4® pi ² 1w§@Ô Î…uz#­± ýhC™f|ÊåémC–e—-[yÛm·½ôÒK¼_uuuM›6-$$$::º¨¨HxjIê"¼WaÒ‘ª.‰°@hn .þ´)·Û%È|KÙäû&ÈG¦nA.¸Õhs¨¿×ÃæúÃ0 |‡‚6”uâ¾ær{7ݾ}ûñãÇ¿ýöÛššš£GîØ±ƒKŸ7o^HHHssó™3gêëëwîÜ©@B1999MMM¡¦¦¦œœUÊù˜*(NýÄœ€51ÁSÑ‘©dЧ'Ü>…-o)ºçÞžÜâZ@¢BÍÖg:t(---(((99yûöí|zYYYrrrPPиq㪫«¹DÞšÊr¹0eÊ”£GrÇûÛߦN*!çþð‡’’’aÆÅÅÅ­Zµj×®]\úG}´aÆÈÈȨ¨¨ÒÒÒ·ß~Û%ceee||ü¦M›B‡ã¥—^:tè Aƒf̘ÑÓÓÓÕÕÝÙÙÉl³Ù†ÚÑÑQRR²xñb„ТE‹JJJ¼(TÅT7 ?v&‚ ‡7DôG¦ÂA·^q«@ÐјêvqMaYÖ5À¬Y³ŠŠŠ®_¿^QQQYYɧ———?~¼»»;333//O•\.¬]»6??ßn·Ûl¶%K–lܸ‘KŠŠ JMM]³fÃáàkkkÇÏßsÏ=µµµÜ±Kë­©©þxð`¬¬««+..îŽ;î9rä!CøBÊÊÊrrrø@BèÒ¥KéééV«Õb±ÄÆÆ¶··#„FŒñ³ŸýlïÞ½N§óèÑ£¿üå/B»víJHH@%&&Ê 4„².L»ŽvÇpÁÌ÷3×Ü.iæÓ“‹T$Ö&xÕ§Ä’hJþ tÀ­zA™f@h_—ÆÅ¿²X&ž\]þ]ÀäÀ~ pï½÷>~òäÉ|öcÇŽíÝ»wýúõ|ʰaÃív»Ãá`Y–/|éÒ¥¯¿þú—_~yÿý÷8?Ÿ O0pß „PCCCffæàÁƒøè£rA‰ò]€Ý18¨_µ!_¦€ÎG‡0’ƒêщiØB2M#Ó ¦B™Ë¹U2¨Ô„x 7˜¯qµ.DªYد²²²¾ýöÛþþ~§ÓÉoŽ Q.ÊË˯\¹’““3oÞ¼þóŸÿú׿¸’kjjìvûwß}—››ûôÓOs'Ïš5ëå—_nii¹|ùòŠ+ø§ßyyyÍÍÍ}}},***,,äË?vìØŽ;Ö¬YÃ¥Ì;wöìÙçÏŸ·Ûíµµµ3fÌàÒDz|ùògŸ}VY] ÇÀ}7BùùùííííííwÜqGAAtùbÌà €É€ zF¤ÅàËTXƒÐ¹ó—i#+xÅWÃAˆ#n0í°P:èà¿ZèQ¬ôOÈ•œÇ§*¼÷Þ{©©©V«5--íðáÃ| .º(Ëå¤I“öïßÏþùç?ü0˲{÷îMKK³Z­Ã‡/((èííåNà¶cˆˆˆˆˆˆX¾|¹ÓéäÒ·mÛ;hР‡z¨ªªJ|õ–––Ñ£G¯\¹’eY‡Ã±zõꤤ¤ÀÀÀ»ï¾{ß¾}üù|ðARR_¬24r9Å&&&–––^¸pÁ%cgg'wÜÓÓcµZùtrIÓÓÓ-Q¾˜ììì‹/"„.\¸-q&ÍÓZW8½Qlkj o c!B5¯C™¨A¾ê@Û€W azE-Q£[{CUП­[·^ºtiÕªUþ¢æ½–\YYY\\|âĉàààM›6eff"ÑÎ:üOþ@Y.1_}õÕ²e˪ªªzzzàå·åKÔÑ«ê(öm­«&G½XA±­iBâ°œŒXÙןç<8TC•ÊAݵ2Hœ–0Ä«á<½„¢¡Lù€ÛÈDñÍ×%;ѺeökÈàÚµk›7o~á…ŒD9Æî»ñôÓO¿ð ÍÍÍN§óÚµk| ò©|3·; è‡[÷õõõegg‡„„ÄÆÆ®_¿žO÷ºÅ†Íf[¼xqtttddä† 4Á® „ Ìi2+&o:h¡-ÅÏñ.¼ aþoI€xêÐ|}É‚Ð{ û5žct_vºÁ0LTTÔ‚ âââü,7a6pß „P___PPPpppccãœ9sT/ðö‡ï4!„^yå•®®®ÆÆÆêêꊊ þL¯[lÕÔÔTUUÕ××so¾&ǧNOØùk´ŒÖh‚H‘ùþÕ™%×váVóbüAº—ÆgÊ€'ÒA¯Ú#Z½VûcgŒƒ­J±Ì'üñ'Ÿ|ò»ï¾ûñüÎ;ïhšKÌÎ;-Z4mÚ´„„„¥K—îÝ»WÝòÕÙ³gϱcÇ¢££B7nüðùôAƒ]ºt©­­-11ñ÷¿ÿ½8ãÿøÇòòrî‹°¥¥¥zÊ ` ˲ºfü)‡ŽÞ^ qãµ¼… *Ó§(ƒð'ð ¢'º¸!l}BŠݶPân" CÚëÁ„ª[ 5!­µ Öä U:ÔË¥C¶Z­·nݲX,!»ÝÈzÞÂCˆÕj½yó¦ÕjÕNT¡ÌˆFsÓŠÄhF<šôdV?Ç&ôM׉h2“R;Š‘6ð9Ýø˜bä÷ºd)™ýð$&&¦±±‘;æŒ-6† V__¯‹ŒaxzZ"½âÚ§×o:¨YùcB°,n@ Ðhìš"_½dMÛYدÁXX,wm ž¾âcMsµ²ÃSnˆˆˆ8{ö,ÿsúôé‹-êìììèè(((àÓÝn±!4Svvöüùó›››»»»óóóu“ÐO±iÄÙý—æœ^Q eöõ|ÄóU]Ä¡³Æ´+À µÜI™KèsuµÐÓ.>iÉÿTA­ú82PW8@YupÃlêõóq<­ÃèCY²dÉøñãyw-..OLLLKK›0aB`` —Îm±òâ‹/ºÝbãÕW_=ztzzzJJʈ#4•Ð íÆþƒ³lÆ"¿ëº@™Bˆ®ÑÂÓ ˜Æôѹ6REr†ý0€755 ÕK™súÅu7¼jgΜùÅ/~ᛆkÆ xºÁû¯v¯C™—ÐNB¢‘y÷ÁG{jùƒ*à£?1°"n/­l‰ÛtâlA`ÿÑZ‡ÊÊÇDzªHÂÀ~ 8À×…8CàÄq¢Y°`ÁÕ«W[[[—.]*Þ á Z‹GjåI6ª#¡^­íë+^¯®§5)p*ÃíëI~–C¢-hÂp¿¢í[±\®k¬eUÑ û5`‚?÷À†XlvmÐx¾­©©©£GþÑ~¶råJ£ÅôCÇ@3Z€CƒŽ!ü‡êèŒt•ÉU>ígâ,›˜­¾FzÖ 7•dV–aX×€$V—˜¢þ˜m•Š©úVÐL”ŠU K”ÿ_ÌÁçQ¶NE´}•­-h„~e8¾:¶Ùl$_?æÒ )¨ø@ÉT`¥7“t:¦ª&ÝuThF](nPW͉Fa%ènúÄM=1sݵtk òŸÞË9>äTܤª!ˆ+g¦¾ë¡¾‚<ŠgÔŒ¢oý(ËekPêõD’u4Cõõ­â#‰Q€´´j8^M`ry­~>+âäc’W H4±à¦1ºš¼oõe.!‘K £Òo±Å Šî.A Á0q*°/ÂÆ4~…ÒŽ 6òªدwX@6FÛÊ ¬ Rs÷5|G P¦7Ý´““ÓÔÔ„jjjÊÉÉÑç¢2Aƒ¢¾‚H²Žf¨¾þà£U|$1 Ѐ€V Ç« Ln#éê8Âvb b„îJbsâÏ·|¨çСCiiiAAAÉÉÉÛ·oçÓËÊÊ’““ƒ‚‚ÆW]]Í%òjT–Ë.]h¾¾¾ìììØØØõë×{½œ %%%‹/F-Z´¨¤¤D‘>0Õ«(,¥öºMƒIìkÆ:ØW­ \À¯°Â­cƒx<5|–ea]è8â@"âº<³fÍ***º~ýzEEEee%Ÿ^^^~üøñîîîÌÌ̼¼>~Ó¦Mç „l6ÛâÅ‹£££###7lØ ¢l<Ô¼Ô-]M£nwu¹yóæìÙ³ÃÃÃÃÃÃçÌ™sóæM.]¼W‹?A9Ž—^zièСƒ š1cFOOOWWWtttgg'w²Íf:thGG‡×í`´ö+ýJëÉ¡†@5pC0|ë†aÖ®]’››{ëÖ->½´´411Ñjµr?OŸ>=jÔ(¾.,ËŽ9’ï¯8tpHµà[#¹m¼ ™™™ƒ8pà£>ÚÞÞŽ¾Hp’ˆûqá†4|دè ƒ••õí·ßö÷÷;N‡Ã¡i.1gÏžåNŸ>}Ñ¢Eª_Àñþxì±ÇÊÊÊ,Xà鎢¢¢šššªªªúúú‹/ê#6‰» Ìí®.+V¬¸|ùò¹sçêêê_~ùe.]¼W‹?A­^½úÔ©SUUUmmm X¾|ydddVVVYYwþ‘#Gî»ï¾èèh¯ÛÁ€_ùÀ™ŠŠŠêêꆆ†–––ÂÂB>ýäÉ“UUUv»û™žžöùçŸs?9y×]w ‹‡äqÛx322òóóÛÛÛÛÛÛï¸ãnPçÒ‹ûqá†é™%r%­!ºiãŒW­¾÷Þ{©©©V«5--íðáÃ|.—B\”åSRRÊŸÐÓÓóÌ3Ï:tÍš5Ü;ž.çàl~¢‘Å.´nݺáÇýõמÎöìYÕ¥rçñZíêˆêììäŽ{zz¬V+wWWWÇŸ9s&..Ž;NLL,--½pá‚K!.?Å~’””TSS÷¶¶ÆÄİ,[__ŸÐßßϲìóÏ?¿wï^O—¢ƒ_éìTÚµ_Ò ÁRÑÀÕ!„Î;ÇŸ={vøðá|úåË—…§±,»y󿬬,.eúôé[¶lq)M‡T M'Ñ^oOOOtt4/ Ÿî¶pÁ†»+{ÿFÆÕ!WŸÿþ÷¿GŒ¡Qáäªt‹5¤¤¤¬X±Bâ!‹Åf³©.• ¤;ù55¸ýi±Xìv;wl³ÙøÄÉ“'322† ’ðþûï{*Dì'V«Õb±X,–€€ôýÂ]–e§M›¶{÷n‡Ã‘ššÚ××çéBtð+jb ¤‚%¿þªC¹ígÜöKW¯^ ¿råJgggDDDWW—Kiú8¤ZhkpÛxOœ81qâÄî¢|Û à©bHÃ×PY ´nu!N™óçÏ¿råJKKËÔ©S-Z¤ÑUˆS nèkhjj5jÔºuë<#{zEf«¬!..ÎíóFž?þ866ÖS!b?IHHhjj PYY9~üø/¾øâ¹çž“¸„X× ¿XÒ ÁÞÀÕ¡®kˆçÓ]Nã¦M›VZZºqãÆ3fˆKƒu b„7>>~Ïž=]]]N§óÚµküu…xê„Õða¿ ¾ÁÃö ªÀb³Ó#Âíi©©©£GþÑ~¶råJ?Kó”ὕiqÙ¿}ÿÔ;v¬Y³Æí9BÓgggÏŸ?¿¹¹¹»»;??_™ICçÏÊÊ*((èèèhooÏÏÏÏÊÊâÓÅ{µÈñ“¹sçΞ=ûüùóv»½¶¶vÆŒ\úøñãCBB–/_þì³ÏJ\üJ`s.\Èí ŸŸ?sæLé“sssßzë­;väæær)ànqÛxûúú‚‚‚‚ƒƒçÌ™ã6£§þ =kÞÐr%!º¥ãhÒPˆŸh§@—ý;øƒ–––Ñ£G¯\¹Râ–eûûûóóóo»í¶ÈÈÈ7j!!K²ÿÈ”\Ó "ÏûúúòòòÂÂÂÂÂÂòòò¸Eõ¬‡½Zäø‰ÃáX½zuRRR``àÝwß½oß>þ¢|ðARR’Ó锸„Î~¥§Siw- Á’ÜÀ…½!„Ö®]Ë}õ ''‡ïg<õK‡#!!!99™÷RýR-4W»m¼9r¤Õj1bÄÖ­[ÝÞµ=õ†7|„‘Ÿð…‡i cwJ§ è|x@þcrZ}ù=*¡”ÏÖ­[/]º´jÕ*£ùzêûbh„“~È‚½qÛ-…1À Zf@_` ¥«ƒ}UøÉuHbõ}êKI¬ |®]»öÓŸþ´¼¼<..ÎhYþƒ c xa£â Bok@ØÛÈ(Äl5Nt‚eY®ñ›ùö  œ&AD †@#Àó†±X,›7oÆm~k6À`Ž•Ä[& sÀW Ü .fV#d€þ€çó˜¶÷à 0`àx€L†ïP€YøÏ6->~n"| ÍXI Væ<|%€ÄY‡p£K|ÂäSeU0­aº˜ð| ˲°®L‡i§Ê*bBB ”yÿ¾jowAç77u³¯5­“ȇhûØbÔ}ž6Ú³gOLLŒvW q‰k1+L8UVSé D ú8FNnÏ¡©QàS<Ç©ºéChžöÅ碀2ò+1Ú‰ÕËX-[¶ìý÷ß—ÿq%Ÿ€ýÀ¼˜jª¬?ø€0¥jV  ˜£Ì@êš5''§©© !ÔÔÔ”““£bÉÆ‚ƒóã`_C Õ©\ ¾&±MáWžÐM cÛX577ÿìg?“>Gý°˜èTÊî”ÊJa…Ý~üñÇcÆŒ LJJÚ¶mŸñÍ7ßLJJ ;vìéÓ§ùtr¹O($pòäÉáÇ¿þúëâsšššž~úi„Я~õ«¦¦&?«o8þ‰¹}%²ôõõååå………………Íž=»¯¯ÏÓuå8 ˲v»ýÅ_ŒŽŽÎÊʺqãÆÕ«W‡ ÒÑÑÁÜßßÝÞÞî¶jx:ö娷MàïWb’.ª¿¿¿  `È!¯½öòÿýßÿ :tРAÿó?ÿsóæM>}ãÆ ‹…ûùÍ7ߌ9Òétr'8Δ””Ó§O{*¡¾¾þñÇ 0`À#<ÒÖÖ&.Ùÿ;æ6r[Ž[͸¨Â“qýiø°®L ß/ÐúX^„=,C âªú3kÖ¬¢¢¢ëׯWTTTVVòéåååÇïîîÎÌÌÌËËS%— ¡Œ0ýÀ=öXYYÙ‚ ÜžÃ|ÿy]…uƪ` }%²¬X±âòåËçΫ««kll|ùå—=]WŽ“ „V¯^}êÔ©ªªª¶¶¶,_¾<222++«¬¬Œ;ÿÈ‘#÷Ýw_tt´§ªêT†Û-hÄX¿»tQEEE555UUUõõõ/^äO®¨¨¨®®nhhhii),,äÓOžü믿ötNvv67š¼páBvv¶DÕ0w3ÿöu›%..®®®Ž;>sæL\\œôu]~Š$))©¦¦†;nmm‰‰aY¶¾¾>!!¡¿¿ŸeÙçŸ~ïÞ½ž.§Sa_“Ø‚&ð÷+·.$QT||üÙ³gÅÕ‡ÿÙÔÔ4jÔ¨uëÖy:G>8{µZ²g_î ..Nú¡ôuÅN’àößÊÊÊñãÇñÅÏ=÷œÄ%䣳Sáo_óØ‚|Ò›!~åÉ…<%g]C||¼t!Ó¦M+--ݸqãŒ3¤Kˆß³gOWW—Óé¼víš§ùyç¼í»-GŽf<W>bÍÀ~ ü¾›€W11o@˜›¬¬¬o¿ý¶¿¿ßét:Ms‰‰ˆˆ8{ö¬0%>>þرc;vìX³f§sHGÏÞÏXûJ”_PPÐÑÑÑÞÞžŸŸŸ••%q]9N2wîÜÙ³gŸ?Þn·×ÖÖΘ1ƒK?~|HHÈòåËŸ}öY}ª¦3†ÛlA%Æú•'òDvvöüùó›››»»»óóóùô… r{äççÏœ9SºÜÜÜ·ÞzkÇŽ¹¹¹Ò%ôõõ766Ι3ÇSZß¹Œµ‘ÛrähÆWãÊŸЅQ+9ÑýM€!¨Ç«}ß{ï½ÔÔT«Õš––vøða>—K!.Êr‰))) ŸÙÒÒ2zôè•+WŠÏ‘¶¾­¢`˜Û×Sáw(òòòøïP¸½®'q8«W¯æöQ¿ûî»÷íÛÇ_ôƒ>HJJâ7™w{ ùèìT¤Ø× ¶ 9z3Ö¯<¹§¢úûûóóóo»í¶ÈÈÈ7òÿ]»v-÷‰œœ¾“ñTˆÃáHHHHNNæýÓS 9r¤Õj1bÄÖ­[=ÕÈÏ;æmßm9r4#Ñ?ÈÄE3!†ý¡Öˆ€{æ@¢ä@ ð8 ¯£3›Ϻ«+žuÄŠ­[·^ºtiÕªUª”¦³Â)³/Ѷ “èÛÀØ_—?¦ÞL pq`¦xúc1É€Ãä˜ÙÊÖ]õNÃ:bŵk×~úÓŸ–——ÇÅÅ©R ÄCº-¨Á$zƒX­ˆØjœ0` ˲ü×t¡?Õ“Œ6®•áÐÄÄ›h*†®EtÕ´ö•Ã0‹eóæÍäNn©±/¶´Ã~¨iûêâ¶á[ ב  }€pƒ!ÀÆœ€þ@ç UÖ C‘ÈÅOe‚-·hçþ— N˹†ïP Å6wa˜뼺b6øöe´ úáíôoBû‚QNöƒaÕ¶ï‚§†@âüA¸Ñ%: ÜåÅXIè  ?Ðî@uX–…u È ZÓbªÇ#Ø>óÔzµ°IìkÆ:ØW¶ 2g6a€¶Ï#ÑðH\#@âZ  7hd‚–…aõœaX} ÀG«øHb º1*áµÃÏpŒE¢ú°_¾á-€@`†–…¡Ÿë¦m3Ø×0q*°/ÂÆ€v(³¬¦Û@æää455!„šššrrrü¼ í{mø°_¾«ºÀø à »eáìçúˆD·} +§2¹}±² ŸC‡¥¥¥%''oß¾O/++KNN 7n\uu5—È[YY.1 ì]»6&&&$$$77÷Ö­[|ziiibb¢Õjå~ž>}zÔ¨Q¼w±,;räÈêêê’’’Å‹#„-ZTRR¢–Z|ÂÌmßkÇýP‚™;Vuñ „Ö–…§Ÿëÿb9­ö5 Ê´öÅЀLfÍšUTTtýúõŠŠŠÊÊJ>½¼¼üøñãÝÝÝ™™™yyyªärKEEEuuuCCCKKKaa!Ÿ~òäɪª*»Ýήãß> IDATýLOO ûüóϹŸGމŒŒ¼ë®»Ð÷îgl£3gÛ—ÙðûØxp†~ ÜB™càY¥ÂS!d³q–M ÌV_­ÑyŽ“””TPPðÄO$&& eèì쌊ŠBõöö†‡‡Ûl6.LY.1 Ü;wnÔ¨Q¡ºººÉ“'777sé—/_6l˲o¼ñÆ—_~ù§?ý !”••5qâÄßüæ7999ÅÅʼn‰‰.\(,,ܵk—Zr‘y0©Ú‚Ü@ƒ„ùqb €¦ê[Õº2ÀÂg#äz¶µ0¼×ÂV3øC„êˆÒLRMýÑslPYYY\\|âĉàààM›6eff"Qt€ÿÉ(Ë%†a»Ýn±XBv»=88Ømx‚ûÙÕÕ5bĈúúz–eGÕÐÐár-¶Ž…Oud ¿Ý@Г( €Wȵ`.9&­s-áqê"N`ùP\50¤ƒ:tèPnnnKK ò%j ,—ðẆ|ÛèÑSQ¿þõ¯'L˜À²leeå»ï¾«Zå}AŽuhm ÊêeÕFL˲üûr4õªÚÉTÀá·»I| Oǧõ‘n_CÀÁp2¡Þ¾ÙðDVVÖ+¯¼2jÔ(§Óép84Íå–… ¾ýöÛ¡üüü™3gJŸœ››»dÉ„Pii©?ÕºÛ¾¯ ßJbOÏ@7Èz0À'„£RÀÖ½1T#‰ö5lJ*íK¨-1?þø“O>ùÝwßýøÇ?~çw4Íå–I“&Ýyç7nܘ6mZQQ‘ôÉ=ôеk×,ËäÉ“ý¹¨>Ð×ö4|د5—)¼*ôÁëøÆœã0Ç<݉óPóXG†±’¨2²¤ó«¤@ Y‰ –eaà €ÊÀŒÚ- @E ¸à+Ð ú£â{÷tЬ:Òg€ýPXÝ æ9€?@dÁ'$zP€þ¸í{¡C¦د­€Ù5¨ð.(Æmsƒad½n€Eû5 ü¼$v2*@\К¶R€ýÐ3O¶Í\w@ˆ,h‡P·üû\T i˜üQ V€-û5 -¦Ý¾&9ŒÔ ¡˜mì„!°8N1 ÃX–ú1m¸Á$Ç”@dàÉäbæ±>Às#?õ ¦ê¯a’c* ¸€` hÂTc'Üåûhý0I¯ ºÙ,ÎÈ\ì 6€L2v P»*¹&Æñ@.Ô÷ÝÐAÑŒ}P?v P¸*À~ è ÝïÂBtóU*«@(±‚ÞLK\>fd $t1Œ¾˜1}52 Y  ·Ö @0ÖЭÀÈàirNS]¨‚ ãb\0%ô‹(µîêBäfX>Ô@ÇŽZÐ DÌ<•À<@ÄA]஡: Ã-¦†ïÙɽeB 7˜">ý!úK¸À¨„eº-Ü >|xêÔ©ÑÑѱ±±O>ùägŸ}¦Ãuå¨Úslܸñ±Ç“>ç¿øEii©Ä _|ñÅÌ™3‡:`À€´´´7ÞxÃ¥?©««ËÈÈ}J>–––.\¸½üÂ… KJJÄÌ¥(J£Ñ|üñÇ™™™|k'† Fž˜à"2M=yòdoooŸY³f]¼x±¢¢bÆŒ¾¾¾¾¾¾‰‰‰L32¶²ÑÆÆWÚµk×âããýýý===ÕjuAA™uìØ±èèhOOO…B±oß>v4M»¹¹1Uã+A dëV øH$‡|Ô‡‰ÞÖQ€õ‘Ó­1ÍQât8&¿ºl ˜Çé·óU0 àáÇ|ssssÃÂÂΞ=«ÓéjkkÃÂÂòòò˜YE…‡‡×ÕÕétººº:¥RyäÈš¦KKKãââØ…¤¥¥-_¾œÉ2~üøšš½^O a&¾ùæ•JU__¯ÓéêëëÃÃÃ)ÖS´‘‘‘gΜÑét---K—.MHH0È.`Ò¤Iß}÷ùXTT\QQ¡Õjoܸ±páB2ëܹs111& düéOJNN&ýüü~ùåöOž<4h˜¹4M/Y²äóÏ?S©¢¢¢€€€¸¸¸ 6äææþøãì¹ìF›8qbuuµV«mmm]±bÅСC£¢¢Ø)‰‰‰ÌÂÂ[™¯ñ U ”6vìØŒŒŒ'Ož0[yÞ¼yLú‰'† rôèQ­V{þüy•JUXXÈ-Y ¾t«T Äp¶oGpöh²ó𠜘ëlDgª©T*íîîæ›«V«KJJÈÇâââÉ“'3ÓE•••‘Y¥¥¥Ó¦M#¹¾ÿþ{fº»»;88ø‡~`²444°Ë'm8uêÔòòr’^VVƾl¾zõ*™¥Ñh||| ² ö2===îîîbæ–——Ož<¹§§‡ùh²R………ùË_þõ_ÿuĈ³gÏ~ðàA^Š¢._¾L²<~ü˜¢¨+W®°SH3 oe¾Æ7@V-Pš\.onnææ‹‹c.444DFFrK(/Ý*U‘p0Ø#{~BA‚»Ûbî6GÛ:{Þ‹ûƒÓÔwøðá×®] 0:×ËËK£Ñ',ººº† Æ<; ‘HºººØ³ººº(Šúûßÿ~ôèÑPuðàÁŒŒŒÓ§O3Y˜klR>yÈŸ»"æÂY¦··—}0!¹Ä¼#@*•jµZ©TÊ|ôöönmmõööæ.ÙÛÛëééÙÝÝ-\`AAÁG}TUU¥T*Iâ AƒîÞ½ëççGR~ùå—'Ož˜œ;f̘C‡EFFÔNŒîîî>øàÇ,**¢þ¹e¸Æ×ŒÂ[™/—1¥­]»6//oîܹS¦L™5kVhh(³ŒÓsft†»F¾øÒ­R5 ïk{DŽKö¶³c Á\æ¾mmëœæÂ[<»=j™kêÔ©ÕÕÕÖ-3))éÒ¥K÷îÝ£(j×®]«V­"³Ø âõ¥‘™çÄ,ÙÑÑ1hÐ áeöïßÿᇖ——³(ŠR©T×®]c§\¿~]¥R‰™{óæÍ¨¨(öaSü©¯‡‡Gjjjee%w·˚ъ=|ÇŽ¥¥¥ …¢´´tÒ¤IiiiLzooo{{;û{ 4ˆ,/]˜£ï¼vE"‘¸Ù:ãìðÄÝ~"±gx•#¸à@ÃZøãÿ¸eË­Vkþé§ŸR5aÂöHDuuõ¯ýkò‘¹[ÌŠŠŠb¦%ɺuë222¾ûî»;wѨÈÈHö+^È&æ‡h…Bqûömò1::šïRüøã …B ¨ôôô¿þõ¯UUU¿úÕ¯ f½òÊ+ùùùì”üüüW^yEÌ\îARàh¹jÕ*ƒÌÙÒÒ2tèP°MÞÊÖ--&&æƒ>8xðà÷ß¿uëV&‘yèFdùFKàK·nÕ@³ž»0ös˜²ŸHì ¾_À6½´ÀúõëÕjuqqq[[ÛÓ§Oëëëß|óM¦F¹¹¹J¥²¶¶V¯××ÕÕ) ö«õ˜·9êõúúúz¥RyøðaRfww·Z­ž;wîæÍ›I"·•HJAAADDDcc£^¯ollŒˆˆ X—Ü|¹BBBªªªz{{j÷‡?üá‹/¾ ‹‹‹CCC+++u:]SSÓ¢E‹È¬;wþÛ¿ý_9[·nU©T?ýô“ѹ> ܹsg[[[[[Û®]»FE^º)<—¯v|s'MštüøñŽŽŽ§OŸž>}Z­V§¥¥äh4nŠðVž˜Òâã㫪ª:;;ÛÛÛ÷ìÙ3aÂ&ýäÉ“±±±555Z­¶££ãäÉ“ñññF×ÈW_ºUª"9ü×!8={8q·‡ì@ºíPRRòÊ+¯ 6L*•>÷Üs‰‰‰̬ݻw‡‡‡{xx¨Tª={ö,E1³¤R©B¡Ø»w¯A™_~ù¥L&#¯-¤M]ÝeffŽ=Z*•ªTªŒŒ ™Lf2W~~~pp0yدj3fÌ`§FGGËd²Ñ£G³Ã~þùçÙï§ä®”‹ýzÈëׯ¿úê«Ì”Œ¿ví;»ð\£µ3ª¦¦fÙ²eaaaR©ÔÏÏoÚ´iÙÙÙܼf5Ђ[YLx½½½nnn&Kc¶…§§§ŸŸ_||üõë×ɬS§NÍœ9ÓÇÇÇËË+..ŽýþNöùJ(¹Uñò•'x^ÀÕØö–l—½!œq+¸ ¶ À4á‚Maòù…´´´7näææZPøùóçßzë­«W¯ZÝ?ôôô(Š¢¢"òˆ‡QçÎKLL¼}û¶eo”pq=7n\kk«­›ÁûÀ1ó× ÚÕð¶è§OŸNOOOMMŸeñâÅMMM===.\X±bÅòåË­‰T*]»víúõë…Û¸qãÚµk1Ð`žžž¬¬¬éÓ§Û:°1×:‡G7ÀWþ®0Ѐ;ÀZúû—|“?››õ€«ÝÚ Ðì‰$00𫯾Š_àRSSoݺ”œœ¼~ýz77üHæÜÝÝ£¢¢òóóÇŽkëXÀ–œÿ4œÌ€]ÿ;å@F ÿØÏ¥5ÆlÎÍo‚ÿO†Àù ÌóN3Ѐg"`` Àu5éÀ‰„yk L&‹‰‰¹xñ"{ò×h‡ïîî~ÿý÷‡>dÈ;vô_´ÔÿµÎXÀá} àú{¸Áq$ p_l“8ú¨²²òÌ™3mmm ÉÉÉìYô?¿{ßÀ'Ÿ|rùòåsçÎݾ}û矠p\£žO˜ÿt·Ñ’âÀˆg"ÀN Ì} äNÖÖÖaÆQÕÕÕåïïßÝÝm°_$!!!•••¿úÕ¯ú/Nƒ˜)ì†à’0ÖLx¸Á²±;¿6Ààاk`¯ˆ›.°ïK¥R­V+•Jû/N6;?žô¼¯˜ÀÃì'·2º€½]à™ë5jÔíÛ·m€“ÃûÀáYñÝ ö0ˆ‰W9ôÝàÁƒoܸA>²w¥%K–¬ZµêþçÚÚÚÖ¬Yc‹èCYYÙk¯½6|øp‘#G&%%UTTX}-öpÔåû}¥V\¯µše ›·  `äÈ‘"4ù3€xöÙ…,cÅféWŽgÝÙýܺ•u¦¦cssÄ{p† lä˜Ð—šMÞ‰ÛÀ9ØÛ AëÖ­‹5z4øË_þ2nܸ¨¨(¥R©P(>6‡ðç?ÿyÆ +W®¼yófWWWQQ‘»»ûìÙ³m—€“mÛžÏðÁ‡6ú=åp6ç(-æô½šK Ÿ›ÅÞêÕOhšÆûÀy°Ç ØÇq@`2öß!o[§doc öÃ[¦¼¼üÃ?¬­­õòòb§oÛ¶í£>²UTIü·@,iîÂ}Ìe-nnnÏž=3úÇ Ì¶¡Ú?Gi±ˆÓ†7ºj~Þ÷ÂÞ×ÎCüó VŒ·-€ÃIOOß´i“Á@EQd !++K¥RÉd²ˆˆˆììl²€D"ÉÊÊŠˆˆÉdááá999Lú /¼PXXÈ.ªµµuèС†}—r~~~LLŒ\.÷÷÷Ÿ7oÞ£GÈòÙÙÙJ¥’YcVV–Àº¥¥%%%ÅÛÛ{Ĉï¾ûngg§˜òsrrÂÃÃIù÷$ éÚµkñññþþþžžžjµº  €Ì5ø"H$yyyS¦Lñõõuww§þù‹ÉhKRƾ¼HáFWÁ.o« ´ŒBhšvssÏàKo¥Â-ÉeО“'Oööööññ™5kÖÅ‹+**f̘áëëëë뛘˜È®_W¡ûÛ±cÇ¢££=== ž}ûøŠmûöísæÌ!;::BBB:::HJttt}}=%¸)ZŒK`3t¹ŽS 0ƒ`„Wa°¤YÛ/JÄÞmÐÏ :Fll¬\.W(û÷ï'éF»ÙÀì­ö@"‘9ÓµLô¶Žì÷`'fáå-^µµJ°gèÞ|±e>|È77777,,ììÙ³:®¶¶6,,,//™EQTxxx]]N§«««S*•GŽ¡iº´´4..Ž]HZZÚòåË™,$oddä™3gt:]KKËÒ¥K˜Yß|óJ¥ª¯¯×étõõõáááMœ““óôéÓ»wï.Y²$%%ÅdùGŽ!å×ÖÖ2OÖ-\`I21vìØŒŒŒ'Ož0ÑΛ7Ï`‚¢¨ñãÇ×ÔÔèõzƒeøZ’¯“³„·_Ë(ÄèÚf ¬ÔdK TâĉÕÕÕZ­¶µµuÅŠC‡ŠŠb§$&&’Œ|]E ¿8qbÈ!GÕjµçÏŸW©T………|µ&nß¾-—ËùåæcFF†——WFFóñÎ;½½½´©MÙ÷ÍÄír§p`Ürøfq—¿Ýb³wóMWTThµÚ7n,\¸,#pD⫲UöV;Ó_pBb.òM ˆ<0Z¥G‡ÞÎÇ[F*•vwwóÍU«Õ%%%äcqqñäÉ“™iŠ¢ÊÊÊȬÒÒÒiÓ¦‘\ßÿ=3ÝÝÝüÃ?Ðÿ|EqõêU’W£Ñøøø0ÓS§N-//'³ÊÊÊD6i{{ûÈ‘#M–?mÚ4ƒ°ùÊX’LÈåòææfn^£_C F—hI³®ÊHŠðVãk…]»À,•šlI¾Â)Šº|ù2Iüø1EQW®\a§ðUÝUú[\\{p¡¡¡!22Òd„4MÇÆÆ2—‹½½½ãÆ;xðàØ±c™ëöôôô•+Wrë­fß7·Ë dœÂqËá›Å]RüvˆAÌÞÍ7=}úôãÇ ÇIsŽHÜŠ˜ R|7°8'!þšßâ‹387ô>ŽØ2=â›+—Ë»ººÈÇÎÎN¹\ÎLSe0ËËË‹™>|øð[o½ÅLüö·¿%YÈsICP¬kNƒbùš´¥¥eÙ²eAAAäþp7·<,ÌW¾———Èò–$ï½÷Þˆ#V®\¹ÿþ;wîpWÇNééé1’@K \¢ÌÞj|-c@ \|ñ­ÔdKòn´L¾µtþæíímð¥Or ûôÓO™ßŸËËËgΜIÓô‹/¾È\Ù¾ôÒKäWxSö}3q»Ü@Æ)·áj ¯Ñ‚ÄìÝ|Ó^^^ÜØ„HÜŠ˜ R|7°x_8<ë؇Dá·-PÝ.`ϦNZ]]mÝ2“’’.]ºtïÞ=Š¢víÚµjÕ*î2}?Œ/X°À××÷Ô©S4MëõúÞÞ^+–/ÆŽ;JKK Eiié¤I“ÒÒÒæ>3o.«|ïØä¤ÚäJÍjI¾2ùÖ"ÜUøôöö¶··³¿ôŸ={f2EQóçÏ/++ëèèHOOOII¡(*%%%==ýÉ“'.\˜9s¦˜B¬²™„»œÄin¯¿Ý˜eÝL˜TM$¼¯œ‡ÉCžø%M–lVÙA,+ÁÎwLG5Hß¶mMÓjµúĉì…Å>Þ‚’8ššzëÖ­   äääõë×»¹á×2è/èoÖ‚±°6¿,7w°b 6¯@¿2÷Šº±±qË–-µµµ^^^»víJHH 8WªÜ ~ËrÖè2Üt£…”lt]özpIf|_Ú|s8r5n»v?d쪎Vdñ.SZZºlÙ²û÷ïSæŒX–Ëä2"ÇÌ‚3pM‰·xIDATw€íÙÛE¸È×:XP,3‡½ÁÅýþ÷¿¿zõª^¯ïíí}öìY¿æê‹Áƒ߸qcVà|¤Ž8âîXÑ€0{hèW4M“w˹B}Œzã7’’’nݺ5vìØôk®¾X·n]lllGGöV³Ð4í§ø&DqÄ(h \³ÖàÄð-Ì-.Ë­Ÿnîä_DZÿ‡þŸ€ãrÙKngÎò±££#$$¤££ƒ¤DGG×××SüÛš!°-²²²T*S¯ììlnð)|«0X’»§]‘ð¦äëñHÌê|û£Èà5ͰaÃZ[[ÙÅj4šáÇk4vËì;}Üã,ØÜ"WÌ’±±±r¹\¡Pìß¿Ÿ¤ t£M*°QŒßÈbÙÙÙJ¥’´€É Šé™L"‘¹½Ðž­†­ƒ³õÓÎkP¦ÑUØÛAÇ1pwãÌeÝįÈwðàààœœœ§OŸÞ½{wÉ’%)))L:EQãǯ©©ÑëõLʉ'† rôèQ­V{þüy•JUXXh´LŠ¢ÂÃÃëêêt:]]]R©<<\̱ÅÞ¾nïrc N ÿ  d¢¡¡!((è‹/¾à.SRR2a°°°¬¬,n±z½~íÚµƒþüóÏ­6Ýo 0`¬>Ö \še¹,[²œ`ïnoo9r$3MQTCC{n\\ûd½¡¡!22Òh9E•••‘¥¥¥Ó¦M3YwE]¾|™||üø1EQW®\a§øøø… &Øå¤„1mÚ4ƒàÅŒ5\½z•¤k4•0ƒç+D­Vÿý÷Ìtwwwppð?ü`4ñÍeY ˆk†ØØXær®··wܸq;v,3¾žž¾råJ1a4cII ™U\\ýøñãÜtáÃפ|Åèñ™˜:ujyy9I/++sl±Ã¯Ç»\Ç@€£ë¿× Xæãßÿþ÷áÇ“ï ƒe:¤Õjïܹ“œœÌ-sýúõ³gÏþùçŸ5Íš5kú)lÍÀ¡Y}¬¡?rY·ñ+r¸½»¥¥eÙ²eAAAäöi7·qâÄk¯½ftooï»wï¶´´„††~õÕWÜrssÓÓÓCBB† ²sçÎ~ŽÀi•––Nœ8Q&“=zÏž=$=33sôèÑ2™,&&æâÅ‹L"yÖÔ²\\:néÒ¥>>>#GŽÜ¾};I×jµï¼óŽ¿¿¿¿¿ÿþð­VKŠ2ºŠgÏž}üñÇ#FŒðöö^¸p¡ÁãÓÎaÁ‚¾¾¾§Nêèè iZ¯×÷öö’¹ä²‡ÑÛÛÛÞÞÎ>³|ö왹k.Ä`T¿ýS «ÔÅ‚¨„œ¯¤¤¤K—.Ý»w¢¨]»v­ZµJ||eZ· ®/,ÞjóçÏ/++ëèèHOOOII¡(*%%%==ýÉ“'.\˜9s¦˜BúÞC̽\âö[>|›R¸c˜[Z?¿zõjrÓèÎ;׬Y#~-Vßãˆéáâ lñMÍf'¯c0I"‘8Ìÿ¡ Ø»:FI@XffæÛo¿÷ÀáÇ+++Õjuhh¨ÁË{÷ïßW*•ý#€KX¼xñ'Ÿ|ÒÞÞ^]]ÝØØHÒ+++Ïœ9ÓÖÖ–œœl•\\›6mzôèÑO?ýtáÂ…ªª*’¾aÆ{÷î555ݼyó§Ÿ~Ú¸q£ð*¶nÝúÝwß;w®¥¥ÅÓÓóOú“e­aÏΜ9óé§ŸFDDÈårŠ¢¾ýö[…™{ƒE–|úôi2]]]eA!–‘H$ÜK_ƒ0¢¢¢ ‚·blf58!‘HÖ­[—‘‘ñÝwßݹs'))©ï‘ô±¼½½ÛÚÚÈÇk×®õ=$Š¢ ÅøñãÓÓÓ/\¸ðÆoP•páÂ…ŒŒŒ—_~ÙÃÃÃ`yî–0aÂv]ª««ýë_3ÓÕ1k&WÄ·)Åt £[dÇàÛÍ ~Μ9>¬©©©©©immåþ®#Ðs¬²Ç™µ-Äj¢££O:ÅMh Š¿I-Ø[###Ïž=K>²§XÐ3ˆ%·DØŽƒ† ŒþÛ Š¥(ª¹¹Y¥R}öÙg|Ë%%%äIH¶ààà7nX7N8 £Ó‡CCCwîÜyç΃Œ­­­Ìtgg§T*%é}ÉÅÔÔÔÄL߸qƒ,xóæMfúúõë« #?xðà¹çž®µ#îÝjµzÓ¦M¦««ëرc£F¢øoÐ=yòdlllMMV«íèè8yòd||¼Ñb)Šb^u¦×ëëëë•JåáÇMÂ]£Y)d"$$¤ªªŠ}ã17E ŒC‡‘àëêêD¾Òdœ ³œÒÝÝ­V«çλyóf£%‹ ƒ¤XÖdbΜ9ÉÉÉ=ÒëõgÏže.´,ƒkÛ¶mR©tË–-$eóæÍR©ôСCÜìÜ-+°®ÜÜ\¥RY[[KêE^õ'Pî*LÖE`E4ϦÓ1ŒF"²cðíæÿÙgŸÍŸ?þüù;vìà¶€@ϱÊgÖæ¼*.. ­¬¬ÔétMMM‹-2ÙMJólP """õz}cccDD„˜½ÉdÏxŽzÑîˆ1£ÿ;ƒ¾~ý:{E4Mß½{w̘1[·n5ºÌ‚ ®\¹¢ÓéŠŠŠ†ÎÎÈØ°aÃìÙ³›››?~¼zõêþÛAÃl&»qCCÃ믿rôèQ’Ë ƒ Ërq¹»»“Çb»»»É’é|Ãä£T*uwwwwwwss£þïG$ޏw755½üòËr¹\.—GEE}ýõ×Â-|êÔ©™3gúøøxyyÅÅÅ}¡“w÷îÝáááR©T¡PìÝ»WL!ÖkÈÏÏ&ÿnÙhŠp]²³³ …T*U©T™™™Vk0«Á R¾üòK™LöàÁ£%‹ £-@&|M!|ˆ£máP™çø˜ÈÈÈÉd&s™ì™Ï^â0—ý´ ˜¥_ϼSSS}}}¹ß7÷ïß7n3–l°Ìý×3F*•Nœ8‘ûŠ)š¦õzýš5k†:dÈÿøÿè°ñjÀ€øn̾‡Hü¨e¹ˆàà`¾ûØéAAA« inn¬ß?ÁÞM úCjj*ùÅšu7¥ÉÒ°?ZÉ&íË&>wîܸqã,ËkCøþ€†3o.´ 8“ÝØä=D´±QËrq}øá‡¯¾úêÇ[ZZ~÷»ß‘%ßÿý×_¤¯[·Nxiii¿ûÝïšššº»»/_¾üûßÿ^ Ê4ön´ƒÕUWW?÷ÜsO#²î¦SöG«nR 6ñ¢E‹nÞ¼ÙÝÝýÃ?Lž<ùoû[ŸchEIÉ]@ÿxã7’’’nݺ5vìØôk.®¿þõ¯+W® óóó[·n݉'˜ôÔÔÔU«V©T*Š¢Þ|óÍ-[¶—óÑGI$’—^zéÞ½{&LذaƒÅ!ô…D" Ü·o_hh¨­c>±î¦DǰC–m”Ù³g¿þúë·nÝ JNN~ï½÷ú/Â~BÓ´„LÙ6pßäB›€@76 Í.KŠï?°‰D"µu àðhš–H$öðϽ™[ ØlnjW†÷5€óÀ) €ÍÑ4ífëDáþVÙ¹¬[€‹`.ò±Ë0ð[¸87ò)‘ÕÇ Ä(~¥¸îW#‘Hp_86ËFK`Œõí·ßnnn¦(ª¹¹ùí·ßîïÕØÜÚÀÀM ”]v« Ûª^vØžNmÐGnÌ›œlÀ?”––Nœ8Q&“=zÏž=$=33sôèÑ2™,&&æâÅ‹L"9‚Y–Ë“nôÀØØØ¼k×.î2FWššúþûïSõÞ{復¦ö©E+ŸZ¸fݺÖv¼†`¼¯ìÑâÅ‹?ùä“öööêêêÆÆF’^YYyæÌ™¶¶¶„„„ääd«ä2ÀüÉ}¸ìÈ‘#¯¾újffæêÕ«¹Ë𭚌JXЊì®ÙóI­]ü¦Êy[ÀVõrÖö'†÷5€Ýñöö¾{÷nKKKhhèW_}EÒ333ƒƒƒ½½½×­[wþüy«äcûöí«W¯>qâÄk¯½&>à7þío£(êóÏ?߸q£ëpP.;Üà ‰$???&&F.—ûûûÏ›7ïÑ£GdnVV–J¥’ÉdÙÙÙ$ õw{‘F`oýcÇŽÅÆÆÊår…B±ÿ~vztt´§§§B¡Ø·oŸ@T---)))ÞÞÞ#FŒx÷Ýw;;;ÅD›““ÎD›••ÅW_nðEñK–¹víZ||¼¿¿¿§§§Z­.((pŽöÌËË›2eН¯¯»»»YÅJ$’¬¬¬ˆˆ™Lž““Þ%¾X†åËÂ._"‘ 6¬µµ•›F£>|¸F£®Ž˜"I$’ÿÿÓÀ€a@ 444¼þúë!!!G%¹ 1˜°,—Ñð >*•Ê 6,ctÕ&WÄ^FÌbŽ…œmØ:â4õ¥(*22òÌ™3:®¥¥eéÒ¥ ̬ÜÜܰ°°³gÏêtºÚÚÚ°°°¼¼<’‹[3QTT\QQ¡Õjoܸ±páB&ýĉC† 9zô¨V«=þ¼J¥*,,ä‹*888''çéÓ§wïÞ]²dIJJŠÉh9¢R©êëë™h ßÖ1<_±dá±cÇfddûì3¾eŒ®Z<‡ÁY¹Îi†3Õ”¢¨«W¯’ÆÇLJ™V«Õ%%%dVqqñäÉ“I.n9ÌÄôéÓ?Î]Q\\ûªµ¡¡!22RL„íííìƒ<_´Ó¦M+++#³JKKÍkà+–,,—Ë›››MFëpíÙÐÐ`Y±E4ø´iÓ,(–¯a²”ñâÅÀÀ@2®ÑÝÝ|éÒ%áBÄwÉy¾ÀQ˜<ì,X°àÊ•+:®¨¨høðá$—A!–åâ:pà@¿æâZ·n]ll¬Ásæß~ûíþçnÙ²…»ŒµV à|اNö¯¯ØÕq²³©ÙL½½½íííì³ÒgÏž]rÁ‚¾¾¾§Nêèè iZ¯×÷öööw´&‹Ý±cGii©B¡(--4iRZZšÅEY…µÚ“ @˜[¬0ñÅò5¬p$å¯^½ú‹/¾`¦wîܹfÍëVLÂûÀ˜­£°#hp¶;áéG¶nTëãVФ¨Õê'NôÒÒRrÏ¿D"áûõþùçŸ/**â®è7¿ùÍ·ß~+&$§OŸ’åååÿMj$Eü-ñÁsSŒrûömooo£…;z{Š/–|†Â²bÙ +…[~OOó.Œ³gÏ*•ÊgÏž™,ÏPX—3S€ÝÂaÇ\J?_û[7dáV¤äææ*•ÊÚÚZ½^_WW§P(È» CBBªªªØ—Ç$Wqqqhhhee¥N§kjjZ´h“~òäÉØØØšš­VÛÑÑqòäÉøøx£!©ÕêM›6i4š®®®cÇŽ5Š1ÖpèÐ!æU$Z¾­&<7…LÄÇÇWUUuvv¶··ïÙ³g„ F wôö_,EQ¤Áëëë•JåáÇ-(–¯a²ݲŸ}öÙüùóçÏŸ¿cÇ1ëî0N¼Ëô'ÿ¾ûd'G{¸x°“¦`\Ó4½{÷îððp•JµgÏ’žŸŸÌ<,ÀÍUXX-“ÉF½wï^’~êÔ©™3gúøøxyyÅÅÅ}å!MÓMMM/¿ü²\.—ËåQQQ_ýµ˜±𦳳³ …T*U©T™™™|[áà RÈDIIÉŒ3<==ýüüâããÙ/ñ዇›bÿí)¾XŠ¢˜êH¥R…BÁ̬b–/‹Ñò5Í AƒÜÖÖ&²:ßÔÐNô 8 rþdë@lMN@"ÁeüƒD"q³u àŠ˜ÓgzKœe0ÐNÉÍÉ^ 6DÓô?þW“mCäâ¿ê»xõÀ‰¹1¯m°uàº\óÖ*׬5¸¼¯l‰ tºÚ…7©/†zÀ)á|lÌÕ.¼]­¾à‚p_ؘKÝÝ€pøG¸`\á"Üê ‘H0Öö‚}_ƒ“šœ¸j$ø‘ ì“]–;YuÄÀXØ#'{wޱàRð Ø/'qÀ1\D"‘Ú:^¸PpDx†¬ÉÍÖ€SÁûÀj$ îkkÂû ±š¦1iLcÓ˜Æ4¦1iLcÓ˜Æ4¦-ž–’)€¾ûë1“hOðIEND®B`‚shishi-1.0.3/doc/shishi.info-30000644000000000000000000037151614273615527012773 00000000000000This is shishi.info, produced by makeinfo version 6.7 from shishi.texi. This manual is last updated 7 August 2022 for version 1.0.3 of Shishi. Copyright (C) 2002-2022 Simon Josefsson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". INFO-DIR-SECTION GNU utilities START-INFO-DIR-ENTRY * shishi: (shishi). A Kerberos 5 implementation END-INFO-DIR-ENTRY INFO-DIR-SECTION GNU Libraries START-INFO-DIR-ENTRY * libshishi: (shishi). Library implementing Kerberos 5. END-INFO-DIR-ENTRY  File: shishi.info, Node: Key as initialization vector, Next: The Keytab Binary File Format, Prev: Kerberized rsh and rlogin, Up: Protocol Extensions B.4 Key as initialization vector ================================ The 'des-cbc-crc' algorithm (*note Cryptographic Overview::) uses the DES key as the initialization vector. This is problematic in general (see below(1)), but may be mitigated in Kerberos by the CRC checksum that is also included. From daw@espresso.CS.Berkeley.EDU Fri Mar 1 13:32:34 PST 1996 Article: 50440 of sci.crypt Path: agate!daw From: daw@espresso.CS.Berkeley.EDU (David A Wagner) Newsgroups: sci.crypt Subject: Re: DES-CBC and Initialization Vectors Date: 29 Feb 1996 21:48:16 GMT Organization: University of California, Berkeley Lines: 31 Message-ID: <4h56v0$3no@agate.berkeley.edu> References: <4h39li$33o@gaia.ns.utk.edu> NNTP-Posting-Host: espresso.cs.berkeley.edu In article <4h39li$33o@gaia.ns.utk.edu>, Nair Venugopal wrote: > Is there anything wrong in using the key as the I.V. in DES-CBC mode? Yes, you're open to a chosen-ciphertext attack which recovers the key. Alice is sending stuff DES-CBC encrypted with key K to Bob. Mary is an active adversary in the middle. Suppose Alice encrypts some plaintext blocks P_1, P_2, P_3, ... in DES-CBC mode with K as the IV, and sends off the resulting ciphertext A->B: C_1, C_2, C_3, ... where each C_j is a 8-byte DES ciphertext block. Mary wants to discover the key K, but doesn't even know any of the P_j's. She replaces the above message by M->B: C_1, 0, C_1 where 0 is the 8-byte all-zeros block. Bob will decrypt under DES-CBC, recovering the blocks Q_1, Q_2, Q_3 where Q_1 = DES-decrypt(K, C_1) xor K = P_1 Q_2 = DES-decrypt(K, C_2) xor C_1 = (some unimportant junk) Q_3 = DES-decrypt(K, C_1) xor 0 = P_1 xor K Bob gets this garbage-looking message Q_1,Q_2,Q_3 which Mary recovers (under the chosen-ciphertext assumption: this is like a known-plaintext attack, which isn't too implausible). Notice that Mary can recover K by K = Q_1 xor Q_3; so after this one simple active attack, Mary gets the key back! So, if you must use a fixed IV, don't use the key-- use 0 or something like that. Even better, don't use a fixed IV-- use the DES encryption of a counter, or something like that. ---------- Footnotes ---------- (1) The post is copyrighted by David Wagner, included here with permission, the canonical location is  File: shishi.info, Node: The Keytab Binary File Format, Next: The Credential Cache Binary File Format, Prev: Key as initialization vector, Up: Protocol Extensions B.5 The Keytab Binary File Format ================================= The keytab file format is described in the file 'keytab.txt', here included verbatim. The Kerberos Keytab Binary File Format Copyright (C) 2006 Michael B Allen http://www.ioplex.com/utilities/keytab.txt Last updated: Fri May 5 13:39:40 EDT 2006 The MIT keytab binary format is not a standard format, nor is it documented anywhere in detail. The format has evolved and may continue to. It is however understood by several Kerberos implementations including Heimdal and of course MIT and keytab files are created by the ktpass.exe utility from Windows. So it has established itself as the defacto format for storing Kerberos keys. The following C-like structure definitions illustrate the MIT keytab file format. All values are in network byte order. All text is ASCII. keytab { uint16_t file_format_version; /* 0x502 */ keytab_entry entries[*]; }; keytab_entry { int32_t size; uint16_t num_components; /* sub 1 if version 0x501 */ counted_octet_string realm; counted_octet_string components[num_components]; uint32_t name_type; /* not present if version 0x501 */ uint32_t timestamp; uint8_t vno8; keyblock key; uint32_t vno; /* only present if >= 4 bytes left in entry */ }; counted_octet_string { uint16_t length; uint8_t data[length]; }; keyblock { uint16_t type; counted_octet_string; }; The keytab file format begins with the 16 bit file_format_version which at the time this document was authored is 0x502. The format of older keytabs is described at the end of this document. The file_format_version is immediately followed by an array of keytab_entry structures which are prefixed with a 32 bit size indicating the number of bytes that follow in the entry. Note that the size should be evaluated as signed. This is because a negative value indicates that the entry is in fact empty (e.g. it has been deleted) and that the negative value of that negative value (which is of course a positive value) is the offset to the next keytab_entry. Based on these size values alone the entire keytab file can be traversed. The size is followed by a 16 bit num_components field indicating the number of counted_octet_string components in the components array. The num_components field is followed by a counted_octet_string representing the realm of the principal. A counted_octet_string is simply an array of bytes prefixed with a 16 bit length. For the realm and name components, the counted_octet_string bytes are ASCII encoded text with no zero terminator. Following the realm is the components array that represents the name of the principal. The text of these components may be joined with slashs to construct the typical SPN representation. For example, the service principal HTTP/www.foo.net@FOO.NET would consist of name components "HTTP" followed by "www.foo.net". Following the components array is the 32 bit name_type (e.g. 1 is KRB5_NT_PRINCIPAL, 2 is KRB5_NT_SRV_INST, 5 is KRB5_NT_UID, etc). In practice the name_type is almost certainly 1 meaning KRB5_NT_PRINCIPAL. The 32 bit timestamp indicates the time the key was established for that principal. The value represents the number of seconds since Jan 1, 1970. The 8 bit vno8 field is the version number of the key. This value is overridden by the 32 bit vno field if it is present. The keyblock structure consists of a 16 bit value indicating the keytype (e.g. 3 is des-cbc-md5, 23 is arcfour-hmac-md5, 16 is des3-cbc-sha1, etc). This is followed by a counted_octet_string containing the key. The last field of the keytab_entry structure is optional. If the size of the keytab_entry indicates that there are at least 4 bytes remaining, a 32 bit value representing the key version number is present. This value supersedes the 8 bit vno8 value preceeding the keyblock. Older keytabs with a file_format_version of 0x501 are different in three ways: 1) All integers are in host byte order [1]. 2) The num_components field is 1 too large (i.e. after decoding, decrement by 1). 3) The 32 bit name_type field is not present. [1] The file_format_version field should really be treated as two separate 8 bit quantities representing the major and minor version number respectively. Permission to copy, modify, and distribute this document, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include this copyright notice in ALL copies of the document or portions thereof, including modifications.  File: shishi.info, Node: The Credential Cache Binary File Format, Prev: The Keytab Binary File Format, Up: Protocol Extensions B.6 The Credential Cache Binary File Format =========================================== The credential cache file format is described in the file 'keytab.txt', included verbatim. The Kerberos Credential Cache Binary File Format Copyright (C) 2006-2022 Simon Josefsson http://josefsson.org/shishi/ccache.txt Last updated: Sat Sep 23 12:04:11 CEST 2006 Like the MIT keytab binary format (see Michael B Allen's reverse engineered description in keytab.txt), the credential cache format is not standard nor documented anywhere. In C style notation, the MIT credential cache file format is as follows. All values are in network byte order. All text is ASCII. ccache { uint16_t file_format_version; /* 0x0504 */ uint16_t headerlen; /* only if version is 0x0504 */ header headers[]; /* only if version is 0x0504 */ principal primary_principal; credential credentials[*]; }; header { uint16_t tag; /* 1 = DeltaTime */ uint16_t taglen; uint8_t tagdata[taglen] }; The ccache.taglen and ccache.tags fields are only present in 0x0504 versions, not in earlier. Both MIT and Heimdal appear to correctly ignore unknown tags, so it appears safe to add them (although there is no central place to "register" tags). Currently only one tag is widely implemented, DeltaTime (0x0001). Its taglen is always 8, and tagdata will contain: DeltaTime { uint32_t time_offset; uint32_t usec_offset; }; After reading the file_format_version, header tags, and default principal, a list of credentials follow. You deduce from the file length when there are no more credentials. credential { principal client; principal server; keyblock key; times time; uint8_t is_skey; /* 1 if skey, 0 otherwise */ uint32_t tktflags; /* stored in reversed byte order */ uint32_t num_address; address addrs[num_address]; uint32_t num_authdata; authdata authdata[num_authdata]; countet_octet_string ticket; countet_octet_string second_ticket; }; keyblock { uint16_t keytype; uint16_t etype; /* only present if version 0x0503 */ uint16_t keylen; uint8_t keyvalue[keylen]; }; times { uint32_t authtime; uint32_t starttime; uint32_t endtime; uint32_t renew_till; }; address { uint16_t addrtype; counted_octet_string addrdata; }; authdata { uint16_t authtype; counted_octet_string authdata; }; principal { uint32_t name_type; /* not present if version 0x0501 */ uint32_t num_components; /* sub 1 if version 0x501 */ counted_octet_string realm; counted_octet_string components[num_components]; }; counted_octet_string { uint32_t length; uint8_t data[length]; }; Permission to copy, modify, and distribute this document, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include this copyright notice in ALL copies of the document or portions thereof, including modifications.  File: shishi.info, Node: Copying Information, Next: Function and Data Index, Prev: Protocol Extensions, Up: Top Appendix C Copying Information ****************************** * Menu: * GNU Free Documentation License:: License for copying this manual.  File: shishi.info, Node: GNU Free Documentation License, Up: Copying Information C.1 GNU Free Documentation License ================================== Version 1.3, 3 November 2008 Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 0. PREAMBLE The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. 1. APPLICABILITY AND DEFINITIONS This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law. A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque". Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. The "publisher" means any person or entity that distributes copies of the Document to the public. A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. 2. VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. 3. COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. 4. MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section. O. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. 5. COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements." 6. COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. 7. AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. 8. TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. 9. TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License. However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it. 10. FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See . Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document. 11. RELICENSING "Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization. "Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document. An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008. The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing. ADDENDUM: How to use this License for your documents ==================================================== To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: Copyright (C) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''. If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this: with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.  File: shishi.info, Node: Function and Data Index, Next: Concept Index, Prev: Copying Information, Up: Top Function and Data Index *********************** [index] * Menu: * ago in date strings: Relative items in date strings. (line 23) * am in date strings: Time of day items. (line 21) * day in date strings: Relative items in date strings. (line 15) * day in date strings <1>: Relative items in date strings. (line 29) * first in date strings: General date syntax. (line 22) * fortnight in date strings: Relative items in date strings. (line 15) * hour in date strings: Relative items in date strings. (line 15) * last DAY: Day of week items. (line 15) * last in date strings: General date syntax. (line 22) * midnight in date strings: Time of day items. (line 21) * minute in date strings: Relative items in date strings. (line 15) * month in date strings: Relative items in date strings. (line 15) * next DAY: Day of week items. (line 15) * next in date strings: General date syntax. (line 22) * noon in date strings: Time of day items. (line 21) * now in date strings: Relative items in date strings. (line 33) * parse_datetime: Date input formats. (line 6) * pm in date strings: Time of day items. (line 21) * shisa: Kerberos Database Functions. (line 68) * shisa_cfg: Kerberos Database Functions. (line 152) * shisa_cfg_db: Kerberos Database Functions. (line 133) * shisa_cfg_default_systemfile: Kerberos Database Functions. (line 183) * shisa_cfg_from_file: Kerberos Database Functions. (line 170) * shisa_done: Kerberos Database Functions. (line 78) * shisa_enumerate_principals: Kerberos Database Functions. (line 218) * shisa_enumerate_realms: Kerberos Database Functions. (line 201) * shisa_info: Kerberos Database Functions. (line 468) * shisa_init: Kerberos Database Functions. (line 88) * shisa_init_with_paths: Kerberos Database Functions. (line 107) * shisa_keys_find: Kerberos Database Functions. (line 329) * shisa_keys_free: Kerberos Database Functions. (line 438) * shisa_key_add: Kerberos Database Functions. (line 357) * shisa_key_free: Kerberos Database Functions. (line 428) * shisa_key_remove: Kerberos Database Functions. (line 404) * shisa_key_update: Kerberos Database Functions. (line 373) * shisa_principal_add: Kerberos Database Functions. (line 288) * shisa_principal_find: Kerberos Database Functions. (line 239) * shisa_principal_remove: Kerberos Database Functions. (line 311) * shisa_principal_update: Kerberos Database Functions. (line 258) * shisa_strerror: Kerberos Database Functions. (line 455) * shishi: Initialization Functions. (line 9) * shishi_3des: Cryptographic Functions. (line 1591) * shishi_aes_cts: Cryptographic Functions. (line 1614) * shishi_ap: AP-REQ and AP-REP Functions. (line 39) * shishi_aprep: AP-REQ and AP-REP Functions. (line 970) * shishi_aprep_from_file: AP-REQ and AP-REP Functions. (line 1052) * shishi_aprep_get_enc_part_etype: AP-REQ and AP-REP Functions. (line 1067) * shishi_aprep_parse: AP-REQ and AP-REP Functions. (line 1024) * shishi_aprep_print: AP-REQ and AP-REP Functions. (line 981) * shishi_aprep_read: AP-REQ and AP-REP Functions. (line 1038) * shishi_aprep_save: AP-REQ and AP-REP Functions. (line 994) * shishi_aprep_to_file: AP-REQ and AP-REP Functions. (line 1007) * shishi_apreq: AP-REQ and AP-REP Functions. (line 709) * shishi_apreq_add_authenticator: AP-REQ and AP-REP Functions. (line 828) * shishi_apreq_from_file: AP-REQ and AP-REP Functions. (line 791) * shishi_apreq_get_authenticator_etype: AP-REQ and AP-REP Functions. (line 942) * shishi_apreq_get_ticket: AP-REQ and AP-REP Functions. (line 956) * shishi_apreq_mutual_required_p: AP-REQ and AP-REP Functions. (line 888) * shishi_apreq_options: AP-REQ and AP-REP Functions. (line 860) * shishi_apreq_options_add: AP-REQ and AP-REP Functions. (line 914) * shishi_apreq_options_remove: AP-REQ and AP-REP Functions. (line 928) * shishi_apreq_options_set: AP-REQ and AP-REP Functions. (line 901) * shishi_apreq_parse: AP-REQ and AP-REP Functions. (line 763) * shishi_apreq_print: AP-REQ and AP-REP Functions. (line 720) * shishi_apreq_read: AP-REQ and AP-REP Functions. (line 777) * shishi_apreq_save: AP-REQ and AP-REP Functions. (line 733) * shishi_apreq_set_authenticator: AP-REQ and AP-REP Functions. (line 806) * shishi_apreq_set_ticket: AP-REQ and AP-REP Functions. (line 846) * shishi_apreq_to_file: AP-REQ and AP-REP Functions. (line 746) * shishi_apreq_use_session_key_p: AP-REQ and AP-REP Functions. (line 875) * shishi_ap_authenticator: AP-REQ and AP-REP Functions. (line 390) * shishi_ap_authenticator_cksumdata: AP-REQ and AP-REP Functions. (line 311) * shishi_ap_authenticator_cksumdata_set: AP-REQ and AP-REP Functions. (line 328) * shishi_ap_authenticator_cksumraw_set: AP-REQ and AP-REP Functions. (line 346) * shishi_ap_authenticator_cksumtype: AP-REQ and AP-REP Functions. (line 368) * shishi_ap_authenticator_cksumtype_set: AP-REQ and AP-REP Functions. (line 379) * shishi_ap_authenticator_set: AP-REQ and AP-REP Functions. (line 401) * shishi_ap_done: AP-REQ and AP-REP Functions. (line 84) * shishi_ap_encapreppart: AP-REQ and AP-REP Functions. (line 659) * shishi_ap_encapreppart_set: AP-REQ and AP-REP Functions. (line 670) * shishi_ap_etype: AP-REQ and AP-REP Functions. (line 56) * shishi_ap_etype_tktoptionsdata: AP-REQ and AP-REP Functions. (line 238) * shishi_ap_key: AP-REQ and AP-REP Functions. (line 532) * shishi_ap_nosubkey: AP-REQ and AP-REP Functions. (line 71) * shishi_ap_option2string: AP-REQ and AP-REP Functions. (line 680) * shishi_ap_rep: AP-REQ and AP-REP Functions. (line 544) * shishi_ap_rep_asn1: AP-REQ and AP-REP Functions. (line 604) * shishi_ap_rep_build: AP-REQ and AP-REP Functions. (line 593) * shishi_ap_rep_der: AP-REQ and AP-REP Functions. (line 564) * shishi_ap_rep_der_set: AP-REQ and AP-REP Functions. (line 579) * shishi_ap_rep_set: AP-REQ and AP-REP Functions. (line 555) * shishi_ap_rep_verify: AP-REQ and AP-REP Functions. (line 618) * shishi_ap_rep_verify_asn1: AP-REQ and AP-REP Functions. (line 645) * shishi_ap_rep_verify_der: AP-REQ and AP-REP Functions. (line 629) * shishi_ap_req: AP-REQ and AP-REP Functions. (line 411) * shishi_ap_req_asn1: AP-REQ and AP-REP Functions. (line 518) * shishi_ap_req_build: AP-REQ and AP-REP Functions. (line 461) * shishi_ap_req_decode: AP-REQ and AP-REP Functions. (line 472) * shishi_ap_req_der: AP-REQ and AP-REP Functions. (line 431) * shishi_ap_req_der_set: AP-REQ and AP-REP Functions. (line 447) * shishi_ap_req_process: AP-REQ and AP-REP Functions. (line 502) * shishi_ap_req_process_keyusage: AP-REQ and AP-REP Functions. (line 483) * shishi_ap_req_set: AP-REQ and AP-REP Functions. (line 422) * shishi_ap_set_tktoptions: AP-REQ and AP-REP Functions. (line 94) * shishi_ap_set_tktoptionsasn1usage: AP-REQ and AP-REP Functions. (line 146) * shishi_ap_set_tktoptionsdata: AP-REQ and AP-REP Functions. (line 108) * shishi_ap_set_tktoptionsraw: AP-REQ and AP-REP Functions. (line 125) * shishi_ap_string2option: AP-REQ and AP-REP Functions. (line 696) * shishi_ap_tkt: AP-REQ and AP-REP Functions. (line 291) * shishi_ap_tktoptions: AP-REQ and AP-REP Functions. (line 171) * shishi_ap_tktoptionsasn1usage: AP-REQ and AP-REP Functions. (line 262) * shishi_ap_tktoptionsdata: AP-REQ and AP-REP Functions. (line 189) * shishi_ap_tktoptionsraw: AP-REQ and AP-REP Functions. (line 212) * shishi_ap_tkt_set: AP-REQ and AP-REP Functions. (line 302) * shishi_arcfour: Cryptographic Functions. (line 1540) * shishi_as: AS Functions. (line 80) * shishi_asn1_aprep: ASN.1 Functions. (line 201) * shishi_asn1_apreq: ASN.1 Functions. (line 191) * shishi_asn1_asrep: ASN.1 Functions. (line 161) * shishi_asn1_asreq: ASN.1 Functions. (line 151) * shishi_asn1_authenticator: ASN.1 Functions. (line 241) * shishi_asn1_done: ASN.1 Functions. (line 81) * shishi_asn1_encapreppart: ASN.1 Functions. (line 211) * shishi_asn1_encasreppart: ASN.1 Functions. (line 261) * shishi_asn1_enckdcreppart: ASN.1 Functions. (line 251) * shishi_asn1_encprivpart: ASN.1 Functions. (line 301) * shishi_asn1_encrypteddata: ASN.1 Functions. (line 101) * shishi_asn1_encticketpart: ASN.1 Functions. (line 231) * shishi_asn1_etype_info: ASN.1 Functions. (line 131) * shishi_asn1_etype_info2: ASN.1 Functions. (line 141) * shishi_asn1_krberror: ASN.1 Functions. (line 271) * shishi_asn1_krbsafe: ASN.1 Functions. (line 281) * shishi_asn1_methoddata: ASN.1 Functions. (line 121) * shishi_asn1_msgtype: ASN.1 Functions. (line 349) * shishi_asn1_padata: ASN.1 Functions. (line 111) * shishi_asn1_pa_enc_ts_enc: ASN.1 Functions. (line 91) * shishi_asn1_print: ASN.1 Functions. (line 715) * shishi_asn1_priv: ASN.1 Functions. (line 291) * shishi_asn1_read: ASN.1 Functions. (line 35) * shishi_asn1_read_inline: ASN.1 Functions. (line 9) * shishi_asn1_read_optional: ASN.1 Functions. (line 56) * shishi_asn1_tgsrep: ASN.1 Functions. (line 181) * shishi_asn1_tgsreq: ASN.1 Functions. (line 171) * shishi_asn1_ticket: ASN.1 Functions. (line 221) * shishi_asn1_to_der: ASN.1 Functions. (line 331) * shishi_asn1_to_der_field: ASN.1 Functions. (line 311) * shishi_asrep: AS/TGS Functions. (line 1046) * shishi_asreq: AS/TGS Functions. (line 345) * shishi_asreq_clientrealm: AS/TGS Functions. (line 507) * shishi_as_check_cname: AS/TGS Functions. (line 210) * shishi_as_check_crealm: AS/TGS Functions. (line 175) * shishi_as_derive_salt: AS/TGS Functions. (line 94) * shishi_as_done: AS Functions. (line 91) * shishi_as_krberror: AS Functions. (line 234) * shishi_as_krberror_der: AS Functions. (line 245) * shishi_as_krberror_set: AS Functions. (line 259) * shishi_as_process: AS/TGS Functions. (line 292) * shishi_as_rep: AS Functions. (line 159) * shishi_as_rep_build: AS Functions. (line 186) * shishi_as_rep_der: AS Functions. (line 197) * shishi_as_rep_der_set: AS Functions. (line 220) * shishi_as_rep_process: AS Functions. (line 170) * shishi_as_rep_set: AS Functions. (line 211) * shishi_as_req: AS Functions. (line 101) * shishi_as_req_build: AS Functions. (line 112) * shishi_as_req_der: AS Functions. (line 131) * shishi_as_req_der_set: AS Functions. (line 145) * shishi_as_req_set: AS Functions. (line 122) * shishi_as_sendrecv: AS Functions. (line 306) * shishi_as_sendrecv_hint: AS Functions. (line 290) * shishi_as_tkt: AS Functions. (line 270) * shishi_as_tkt_set: AS Functions. (line 281) * shishi_authenticator: Authenticator Functions. (line 27) * shishi_authenticator_add_authorizationdata: Authenticator Functions. (line 430) * shishi_authenticator_add_cksum: Authenticator Functions. (line 377) * shishi_authenticator_add_cksum_type: Authenticator Functions. (line 396) * shishi_authenticator_add_random_subkey: Authenticator Functions. (line 521) * shishi_authenticator_add_random_subkey_etype: Authenticator Functions. (line 536) * shishi_authenticator_add_subkey: Authenticator Functions. (line 551) * shishi_authenticator_authorizationdata: Authenticator Functions. (line 448) * shishi_authenticator_cksum: Authenticator Functions. (line 334) * shishi_authenticator_clear_authorizationdata: Authenticator Functions. (line 416) * shishi_authenticator_client: Authenticator Functions. (line 291) * shishi_authenticator_clientrealm: Authenticator Functions. (line 312) * shishi_authenticator_client_set: Authenticator Functions. (line 177) * shishi_authenticator_ctime: Authenticator Functions. (line 191) * shishi_authenticator_ctime_set: Authenticator Functions. (line 206) * shishi_authenticator_cusec_get: Authenticator Functions. (line 220) * shishi_authenticator_cusec_set: Authenticator Functions. (line 235) * shishi_authenticator_from_file: Authenticator Functions. (line 128) * shishi_authenticator_get_subkey: Authenticator Functions. (line 483) * shishi_authenticator_parse: Authenticator Functions. (line 99) * shishi_authenticator_print: Authenticator Functions. (line 52) * shishi_authenticator_read: Authenticator Functions. (line 113) * shishi_authenticator_remove_subkey: Authenticator Functions. (line 470) * shishi_authenticator_save: Authenticator Functions. (line 67) * shishi_authenticator_seqnumber_get: Authenticator Functions. (line 249) * shishi_authenticator_seqnumber_remove: Authenticator Functions. (line 263) * shishi_authenticator_seqnumber_set: Authenticator Functions. (line 276) * shishi_authenticator_set_cksum: Authenticator Functions. (line 355) * shishi_authenticator_set_cname: Authenticator Functions. (line 159) * shishi_authenticator_set_crealm: Authenticator Functions. (line 145) * shishi_authenticator_set_subkey: Authenticator Functions. (line 498) * shishi_authenticator_subkey: Authenticator Functions. (line 39) * shishi_authenticator_to_file: Authenticator Functions. (line 82) * shishi_authorization_parse: Utility Functions. (line 341) * shishi_authorized_p: Utility Functions. (line 353) * shishi_authorize_k5login: Utility Functions. (line 326) * shishi_authorize_strcmp: Utility Functions. (line 310) * shishi_cfg: Initialization Functions. (line 137) * shishi_cfg_authorizationtype_set: Initialization Functions. (line 294) * shishi_cfg_clientkdcetype: Initialization Functions. (line 248) * shishi_cfg_clientkdcetype_fast: Initialization Functions. (line 262) * shishi_cfg_clientkdcetype_set: Initialization Functions. (line 276) * shishi_cfg_default_systemfile: Initialization Functions. (line 176) * shishi_cfg_default_userdirectory: Initialization Functions. (line 192) * shishi_cfg_default_userfile: Initialization Functions. (line 233) * shishi_cfg_from_file: Initialization Functions. (line 150) * shishi_cfg_print: Initialization Functions. (line 164) * shishi_cfg_userdirectory_file: Initialization Functions. (line 213) * shishi_checksum: Cryptographic Functions. (line 790) * shishi_checksum_cksumlen: Cryptographic Functions. (line 726) * shishi_checksum_name: Cryptographic Functions. (line 715) * shishi_checksum_parse: Cryptographic Functions. (line 737) * shishi_checksum_supported_p: Cryptographic Functions. (line 705) * shishi_check_version: Version Check. (line 15) * shishi_cipher_blocksize: Cryptographic Functions. (line 638) * shishi_cipher_confoundersize: Cryptographic Functions. (line 649) * shishi_cipher_defaultcksumtype: Cryptographic Functions. (line 684) * shishi_cipher_keylen: Cryptographic Functions. (line 661) * shishi_cipher_name: Cryptographic Functions. (line 627) * shishi_cipher_parse: Cryptographic Functions. (line 695) * shishi_cipher_randomlen: Cryptographic Functions. (line 672) * shishi_cipher_supported_p: Cryptographic Functions. (line 617) * shishi_crc: Cryptographic Functions. (line 1429) * shishi_crypto: Cryptographic Functions. (line 1329) * shishi_crypto_close: Cryptographic Functions. (line 1398) * shishi_crypto_decrypt: Cryptographic Functions. (line 1377) * shishi_crypto_encrypt: Cryptographic Functions. (line 1356) * shishi_ctime: Utility Functions. (line 430) * shishi_decrypt: Cryptographic Functions. (line 1231) * shishi_decrypt_etype: Cryptographic Functions. (line 1125) * shishi_decrypt_iv: Cryptographic Functions. (line 1198) * shishi_decrypt_ivupdate: Cryptographic Functions. (line 1159) * shishi_decrypt_ivupdate_etype: Cryptographic Functions. (line 1049) * shishi_decrypt_iv_etype: Cryptographic Functions. (line 1090) * shishi_der2asn1: ASN.1 Functions. (line 376) * shishi_der2asn1_aprep: ASN.1 Functions. (line 672) * shishi_der2asn1_apreq: ASN.1 Functions. (line 658) * shishi_der2asn1_asrep: ASN.1 Functions. (line 503) * shishi_der2asn1_asreq: ASN.1 Functions. (line 475) * shishi_der2asn1_authenticator: ASN.1 Functions. (line 588) * shishi_der2asn1_encapreppart: ASN.1 Functions. (line 686) * shishi_der2asn1_encasreppart: ASN.1 Functions. (line 545) * shishi_der2asn1_enckdcreppart: ASN.1 Functions. (line 574) * shishi_der2asn1_encprivpart: ASN.1 Functions. (line 644) * shishi_der2asn1_enctgsreppart: ASN.1 Functions. (line 560) * shishi_der2asn1_encticketpart: ASN.1 Functions. (line 461) * shishi_der2asn1_etype_info: ASN.1 Functions. (line 419) * shishi_der2asn1_etype_info2: ASN.1 Functions. (line 433) * shishi_der2asn1_kdcrep: ASN.1 Functions. (line 531) * shishi_der2asn1_kdcreq: ASN.1 Functions. (line 701) * shishi_der2asn1_krberror: ASN.1 Functions. (line 602) * shishi_der2asn1_krbsafe: ASN.1 Functions. (line 616) * shishi_der2asn1_methoddata: ASN.1 Functions. (line 405) * shishi_der2asn1_padata: ASN.1 Functions. (line 391) * shishi_der2asn1_priv: ASN.1 Functions. (line 630) * shishi_der2asn1_tgsrep: ASN.1 Functions. (line 517) * shishi_der2asn1_tgsreq: ASN.1 Functions. (line 489) * shishi_der2asn1_ticket: ASN.1 Functions. (line 447) * shishi_derive_default_salt: Utility Functions. (line 279) * shishi_der_msgtype: ASN.1 Functions. (line 363) * shishi_des: Cryptographic Functions. (line 1568) * shishi_des_cbc_mac: Cryptographic Functions. (line 1520) * shishi_dk: Cryptographic Functions. (line 1305) * shishi_done: Initialization Functions. (line 35) * shishi_dr: Cryptographic Functions. (line 1285) * shishi_encapreppart: AP-REQ and AP-REP Functions. (line 1080) * shishi_encapreppart_ctime: AP-REQ and AP-REP Functions. (line 1195) * shishi_encapreppart_ctime_set: AP-REQ and AP-REP Functions. (line 1210) * shishi_encapreppart_cusec_get: AP-REQ and AP-REP Functions. (line 1224) * shishi_encapreppart_cusec_set: AP-REQ and AP-REP Functions. (line 1238) * shishi_encapreppart_from_file: AP-REQ and AP-REP Functions. (line 1165) * shishi_encapreppart_get_key: AP-REQ and AP-REP Functions. (line 1182) * shishi_encapreppart_parse: AP-REQ and AP-REP Functions. (line 1136) * shishi_encapreppart_print: AP-REQ and AP-REP Functions. (line 1092) * shishi_encapreppart_read: AP-REQ and AP-REP Functions. (line 1151) * shishi_encapreppart_save: AP-REQ and AP-REP Functions. (line 1107) * shishi_encapreppart_seqnumber_get: AP-REQ and AP-REP Functions. (line 1252) * shishi_encapreppart_seqnumber_remove: AP-REQ and AP-REP Functions. (line 1266) * shishi_encapreppart_seqnumber_set: AP-REQ and AP-REP Functions. (line 1279) * shishi_encapreppart_time_copy: AP-REQ and AP-REP Functions. (line 1294) * shishi_encapreppart_to_file: AP-REQ and AP-REP Functions. (line 1120) * shishi_enckdcreppart_authtime_set: AS/TGS Functions. (line 1343) * shishi_enckdcreppart_endtime_set: AS/TGS Functions. (line 1370) * shishi_enckdcreppart_flags_set: AS/TGS Functions. (line 1330) * shishi_enckdcreppart_get_key: AS/TGS Functions. (line 1289) * shishi_enckdcreppart_key_set: AS/TGS Functions. (line 1303) * shishi_enckdcreppart_nonce_set: AS/TGS Functions. (line 1317) * shishi_enckdcreppart_populate_encticketpart: AS/TGS Functions. (line 1426) * shishi_enckdcreppart_renew_till_set: AS/TGS Functions. (line 1383) * shishi_enckdcreppart_sname_set: AS/TGS Functions. (line 1410) * shishi_enckdcreppart_srealm_set: AS/TGS Functions. (line 1397) * shishi_enckdcreppart_starttime_set: AS/TGS Functions. (line 1356) * shishi_encprivpart_set_user_data: SAFE and PRIV Functions. (line 623) * shishi_encprivpart_user_data: SAFE and PRIV Functions. (line 604) * shishi_encrypt: Cryptographic Functions. (line 1016) * shishi_encrypt_etype: Cryptographic Functions. (line 909) * shishi_encrypt_iv: Cryptographic Functions. (line 983) * shishi_encrypt_ivupdate: Cryptographic Functions. (line 944) * shishi_encrypt_ivupdate_etype: Cryptographic Functions. (line 833) * shishi_encrypt_iv_etype: Cryptographic Functions. (line 874) * shishi_encticketpart_authtime_set: Ticket (ASN.1) Functions. (line 251) * shishi_encticketpart_client: Ticket (ASN.1) Functions. (line 277) * shishi_encticketpart_clientrealm: Ticket (ASN.1) Functions. (line 298) * shishi_encticketpart_cname_set: Ticket (ASN.1) Functions. (line 217) * shishi_encticketpart_crealm_set: Ticket (ASN.1) Functions. (line 204) * shishi_encticketpart_endtime_set: Ticket (ASN.1) Functions. (line 264) * shishi_encticketpart_flags_set: Ticket (ASN.1) Functions. (line 191) * shishi_encticketpart_get_key: Ticket (ASN.1) Functions. (line 164) * shishi_encticketpart_key_set: Ticket (ASN.1) Functions. (line 177) * shishi_encticketpart_transited_set: Ticket (ASN.1) Functions. (line 233) * shishi_error: Error Functions. (line 22) * shishi_error_clear: Error Functions. (line 35) * shishi_error_outputtype: Error Functions. (line 83) * shishi_error_printf: Error Functions. (line 68) * shishi_error_set: Error Functions. (line 50) * shishi_error_set_outputtype: Error Functions. (line 97) * shishi_generalize_ctime: Utility Functions. (line 399) * shishi_generalize_now: Utility Functions. (line 387) * shishi_generalize_time: Utility Functions. (line 372) * shishi_hmac_md5: Cryptographic Functions. (line 1482) * shishi_hmac_sha1: Cryptographic Functions. (line 1501) * shishi_hostkeys_default_file: Cryptographic Functions. (line 523) * shishi_hostkeys_default_file_set: Cryptographic Functions. (line 535) * shishi_hostkeys_for_localservice: Cryptographic Functions. (line 596) * shishi_hostkeys_for_localservicerealm: Cryptographic Functions. (line 579) * shishi_hostkeys_for_server: Cryptographic Functions. (line 548) * shishi_hostkeys_for_serverrealm: Cryptographic Functions. (line 562) * shishi_info: Error Functions. (line 113) * shishi_init: Initialization Functions. (line 51) * shishi_init_server: Initialization Functions. (line 99) * shishi_init_server_with_paths: Initialization Functions. (line 117) * shishi_init_with_paths: Initialization Functions. (line 72) * shishi_kdcrep_add_enc_part: AS/TGS Functions. (line 1258) * shishi_kdcrep_clear_padata: AS/TGS Functions. (line 1277) * shishi_kdcrep_client_set: AS/TGS Functions. (line 1184) * shishi_kdcrep_cname_set: AS/TGS Functions. (line 1167) * shishi_kdcrep_crealm_set: AS/TGS Functions. (line 1154) * shishi_kdcrep_from_file: AS/TGS Functions. (line 1139) * shishi_kdcrep_get_enc_part_etype: AS/TGS Functions. (line 1198) * shishi_kdcrep_get_ticket: AS/TGS Functions. (line 1211) * shishi_kdcrep_parse: AS/TGS Functions. (line 1111) * shishi_kdcrep_print: AS/TGS Functions. (line 1068) * shishi_kdcrep_read: AS/TGS Functions. (line 1125) * shishi_kdcrep_save: AS/TGS Functions. (line 1081) * shishi_kdcrep_set_enc_part: AS/TGS Functions. (line 1237) * shishi_kdcrep_set_ticket: AS/TGS Functions. (line 1224) * shishi_kdcrep_to_file: AS/TGS Functions. (line 1094) * shishi_kdcreq_add_padata: AS/TGS Functions. (line 996) * shishi_kdcreq_add_padata_preauth: AS/TGS Functions. (line 1033) * shishi_kdcreq_add_padata_tgs: AS/TGS Functions. (line 1017) * shishi_kdcreq_allow_postdate_p: AS/TGS Functions. (line 756) * shishi_kdcreq_clear_padata: AS/TGS Functions. (line 949) * shishi_kdcreq_client: AS/TGS Functions. (line 485) * shishi_kdcreq_disable_transited_check_p: AS/TGS Functions. (line 812) * shishi_kdcreq_enc_tkt_in_skey_p: AS/TGS Functions. (line 861) * shishi_kdcreq_etype: AS/TGS Functions. (line 637) * shishi_kdcreq_forwardable_p: AS/TGS Functions. (line 683) * shishi_kdcreq_forwarded_p: AS/TGS Functions. (line 701) * shishi_kdcreq_from_file: AS/TGS Functions. (line 438) * shishi_kdcreq_get_padata: AS/TGS Functions. (line 961) * shishi_kdcreq_get_padata_tgs: AS/TGS Functions. (line 980) * shishi_kdcreq_nonce_set: AS/TGS Functions. (line 453) * shishi_kdcreq_options: AS/TGS Functions. (line 669) * shishi_kdcreq_options_add: AS/TGS Functions. (line 935) * shishi_kdcreq_options_set: AS/TGS Functions. (line 921) * shishi_kdcreq_parse: AS/TGS Functions. (line 410) * shishi_kdcreq_postdated_p: AS/TGS Functions. (line 774) * shishi_kdcreq_print: AS/TGS Functions. (line 367) * shishi_kdcreq_proxiable_p: AS/TGS Functions. (line 720) * shishi_kdcreq_proxy_p: AS/TGS Functions. (line 737) * shishi_kdcreq_read: AS/TGS Functions. (line 424) * shishi_kdcreq_realm: AS/TGS Functions. (line 528) * shishi_kdcreq_renewable_ok_p: AS/TGS Functions. (line 840) * shishi_kdcreq_renewable_p: AS/TGS Functions. (line 793) * shishi_kdcreq_renew_p: AS/TGS Functions. (line 879) * shishi_kdcreq_save: AS/TGS Functions. (line 380) * shishi_kdcreq_sendrecv: AS/TGS Functions. (line 140) * shishi_kdcreq_sendrecv_hint: AS/TGS Functions. (line 118) * shishi_kdcreq_server: AS/TGS Functions. (line 562) * shishi_kdcreq_set_cname: AS/TGS Functions. (line 467) * shishi_kdcreq_set_etype: AS/TGS Functions. (line 653) * shishi_kdcreq_set_realm: AS/TGS Functions. (line 548) * shishi_kdcreq_set_sname: AS/TGS Functions. (line 584) * shishi_kdcreq_till: AS/TGS Functions. (line 601) * shishi_kdcreq_tillc: AS/TGS Functions. (line 623) * shishi_kdcreq_to_file: AS/TGS Functions. (line 393) * shishi_kdcreq_validate_p: AS/TGS Functions. (line 900) * shishi_kdc_check_nonce: AS/TGS Functions. (line 244) * shishi_kdc_copy_cname: AS/TGS Functions. (line 194) * shishi_kdc_copy_crealm: AS/TGS Functions. (line 159) * shishi_kdc_copy_nonce: AS/TGS Functions. (line 229) * shishi_kdc_process: AS/TGS Functions. (line 314) * shishi_key: Cryptographic Functions. (line 192) * shishi_keys: Cryptographic Functions. (line 351) * shishi_keys_add: Cryptographic Functions. (line 406) * shishi_keys_done: Cryptographic Functions. (line 362) * shishi_keys_for_localservicerealm_in_file: Cryptographic Functions. (line 496) * shishi_keys_for_serverrealm_in_file: Cryptographic Functions. (line 462) * shishi_keys_for_server_in_file: Cryptographic Functions. (line 480) * shishi_keys_from_file: Cryptographic Functions. (line 446) * shishi_keys_nth: Cryptographic Functions. (line 382) * shishi_keys_print: Cryptographic Functions. (line 419) * shishi_keys_remove: Cryptographic Functions. (line 396) * shishi_keys_size: Cryptographic Functions. (line 372) * shishi_keys_to_file: Cryptographic Functions. (line 430) * shishi_key_copy: Cryptographic Functions. (line 212) * shishi_key_done: Cryptographic Functions. (line 204) * shishi_key_from_base64: Cryptographic Functions. (line 241) * shishi_key_from_name: Cryptographic Functions. (line 321) * shishi_key_from_random: Cryptographic Functions. (line 276) * shishi_key_from_string: Cryptographic Functions. (line 296) * shishi_key_from_value: Cryptographic Functions. (line 224) * shishi_key_length: Cryptographic Functions. (line 182) * shishi_key_name: Cryptographic Functions. (line 172) * shishi_key_principal: Cryptographic Functions. (line 28) * shishi_key_principal_set: Cryptographic Functions. (line 40) * shishi_key_random: Cryptographic Functions. (line 260) * shishi_key_realm: Cryptographic Functions. (line 52) * shishi_key_realm_set: Cryptographic Functions. (line 63) * shishi_key_timestamp: Cryptographic Functions. (line 144) * shishi_key_timestamp_set: Cryptographic Functions. (line 158) * shishi_key_type: Cryptographic Functions. (line 76) * shishi_key_type_set: Cryptographic Functions. (line 87) * shishi_key_value: Cryptographic Functions. (line 96) * shishi_key_value_set: Cryptographic Functions. (line 107) * shishi_key_version: Cryptographic Functions. (line 121) * shishi_key_version_set: Cryptographic Functions. (line 132) * shishi_krberror: KRB-ERROR Functions. (line 32) * shishi_krberror_build: KRB-ERROR Functions. (line 130) * shishi_krberror_client: KRB-ERROR Functions. (line 202) * shishi_krberror_client_set: KRB-ERROR Functions. (line 248) * shishi_krberror_crealm: KRB-ERROR Functions. (line 161) * shishi_krberror_ctime: KRB-ERROR Functions. (line 355) * shishi_krberror_ctime_set: KRB-ERROR Functions. (line 369) * shishi_krberror_cusec: KRB-ERROR Functions. (line 394) * shishi_krberror_cusec_set: KRB-ERROR Functions. (line 408) * shishi_krberror_der: KRB-ERROR Functions. (line 145) * shishi_krberror_edata: KRB-ERROR Functions. (line 569) * shishi_krberror_errorcode: KRB-ERROR Functions. (line 487) * shishi_krberror_errorcode_fast: KRB-ERROR Functions. (line 500) * shishi_krberror_errorcode_message: KRB-ERROR Functions. (line 641) * shishi_krberror_errorcode_set: KRB-ERROR Functions. (line 514) * shishi_krberror_etext: KRB-ERROR Functions. (line 527) * shishi_krberror_from_file: KRB-ERROR Functions. (line 115) * shishi_krberror_message: KRB-ERROR Functions. (line 656) * shishi_krberror_methoddata: KRB-ERROR Functions. (line 585) * shishi_krberror_parse: KRB-ERROR Functions. (line 87) * shishi_krberror_pretty_print: KRB-ERROR Functions. (line 626) * shishi_krberror_print: KRB-ERROR Functions. (line 43) * shishi_krberror_read: KRB-ERROR Functions. (line 101) * shishi_krberror_realm: KRB-ERROR Functions. (line 262) * shishi_krberror_remove_cname: KRB-ERROR Functions. (line 236) * shishi_krberror_remove_crealm: KRB-ERROR Functions. (line 177) * shishi_krberror_remove_ctime: KRB-ERROR Functions. (line 382) * shishi_krberror_remove_cusec: KRB-ERROR Functions. (line 421) * shishi_krberror_remove_edata: KRB-ERROR Functions. (line 614) * shishi_krberror_remove_etext: KRB-ERROR Functions. (line 557) * shishi_krberror_remove_sname: KRB-ERROR Functions. (line 310) * shishi_krberror_save: KRB-ERROR Functions. (line 57) * shishi_krberror_server: KRB-ERROR Functions. (line 292) * shishi_krberror_server_set: KRB-ERROR Functions. (line 341) * shishi_krberror_set_cname: KRB-ERROR Functions. (line 220) * shishi_krberror_set_crealm: KRB-ERROR Functions. (line 189) * shishi_krberror_set_edata: KRB-ERROR Functions. (line 600) * shishi_krberror_set_etext: KRB-ERROR Functions. (line 543) * shishi_krberror_set_realm: KRB-ERROR Functions. (line 278) * shishi_krberror_set_sname: KRB-ERROR Functions. (line 325) * shishi_krberror_stime: KRB-ERROR Functions. (line 433) * shishi_krberror_stime_set: KRB-ERROR Functions. (line 447) * shishi_krberror_susec: KRB-ERROR Functions. (line 460) * shishi_krberror_susec_set: KRB-ERROR Functions. (line 474) * shishi_krberror_to_file: KRB-ERROR Functions. (line 70) * shishi_md4: Cryptographic Functions. (line 1450) * shishi_md5: Cryptographic Functions. (line 1466) * shishi_n_fold: Cryptographic Functions. (line 1263) * shishi_parse_name: Utility Functions. (line 173) * shishi_pbkdf2_sha1: Cryptographic Functions. (line 1639) * shishi_principal_default: Utility Functions. (line 147) * shishi_principal_default_guess: Utility Functions. (line 135) * shishi_principal_default_set: Utility Functions. (line 160) * shishi_principal_name: Utility Functions. (line 194) * shishi_principal_name_realm: Utility Functions. (line 217) * shishi_principal_name_set: Utility Functions. (line 243) * shishi_principal_set: Utility Functions. (line 261) * shishi_priv: SAFE and PRIV Functions. (line 337) * shishi_priv_build: SAFE and PRIV Functions. (line 639) * shishi_priv_done: SAFE and PRIV Functions. (line 349) * shishi_priv_encprivpart: SAFE and PRIV Functions. (line 433) * shishi_priv_encprivpart_der: SAFE and PRIV Functions. (line 454) * shishi_priv_encprivpart_der_set: SAFE and PRIV Functions. (line 470) * shishi_priv_encprivpart_set: SAFE and PRIV Functions. (line 444) * shishi_priv_enc_part_etype: SAFE and PRIV Functions. (line 570) * shishi_priv_from_file: SAFE and PRIV Functions. (line 554) * shishi_priv_key: SAFE and PRIV Functions. (line 359) * shishi_priv_key_set: SAFE and PRIV Functions. (line 370) * shishi_priv_parse: SAFE and PRIV Functions. (line 526) * shishi_priv_print: SAFE and PRIV Functions. (line 484) * shishi_priv_priv: SAFE and PRIV Functions. (line 380) * shishi_priv_priv_der: SAFE and PRIV Functions. (line 401) * shishi_priv_priv_der_set: SAFE and PRIV Functions. (line 418) * shishi_priv_priv_set: SAFE and PRIV Functions. (line 391) * shishi_priv_process: SAFE and PRIV Functions. (line 654) * shishi_priv_read: SAFE and PRIV Functions. (line 540) * shishi_priv_save: SAFE and PRIV Functions. (line 497) * shishi_priv_set_enc_part: SAFE and PRIV Functions. (line 583) * shishi_priv_to_file: SAFE and PRIV Functions. (line 510) * shishi_prompt_password: Utility Functions. (line 486) * shishi_prompt_password_callback_get: Utility Functions. (line 473) * shishi_prompt_password_callback_set: Utility Functions. (line 449) * shishi_randomize: Cryptographic Functions. (line 1412) * shishi_random_to_key: Cryptographic Functions. (line 773) * shishi_realm_default: Utility Functions. (line 33) * shishi_realm_default_guess: Utility Functions. (line 9) * shishi_realm_default_set: Utility Functions. (line 46) * shishi_realm_for_server: Utility Functions. (line 114) * shishi_realm_for_server_dns: Utility Functions. (line 74) * shishi_realm_for_server_file: Utility Functions. (line 61) * shishi_resolv: Utility Functions. (line 503) * shishi_resolv_free: Utility Functions. (line 522) * shishi_safe: SAFE and PRIV Functions. (line 31) * shishi_safe_build: SAFE and PRIV Functions. (line 283) * shishi_safe_cksum: SAFE and PRIV Functions. (line 213) * shishi_safe_done: SAFE and PRIV Functions. (line 43) * shishi_safe_from_file: SAFE and PRIV Functions. (line 197) * shishi_safe_key: SAFE and PRIV Functions. (line 53) * shishi_safe_key_set: SAFE and PRIV Functions. (line 64) * shishi_safe_parse: SAFE and PRIV Functions. (line 169) * shishi_safe_print: SAFE and PRIV Functions. (line 127) * shishi_safe_read: SAFE and PRIV Functions. (line 183) * shishi_safe_safe: SAFE and PRIV Functions. (line 74) * shishi_safe_safe_der: SAFE and PRIV Functions. (line 95) * shishi_safe_safe_der_set: SAFE and PRIV Functions. (line 112) * shishi_safe_safe_set: SAFE and PRIV Functions. (line 85) * shishi_safe_save: SAFE and PRIV Functions. (line 140) * shishi_safe_set_cksum: SAFE and PRIV Functions. (line 230) * shishi_safe_set_user_data: SAFE and PRIV Functions. (line 269) * shishi_safe_to_file: SAFE and PRIV Functions. (line 153) * shishi_safe_user_data: SAFE and PRIV Functions. (line 251) * shishi_safe_verify: SAFE and PRIV Functions. (line 298) * shishi_server: Initialization Functions. (line 22) * shishi_server_for_local_service: Utility Functions. (line 294) * shishi_strerror: Error Functions. (line 9) * shishi_string_to_key: Cryptographic Functions. (line 748) * shishi_tgs: TGS Functions. (line 82) * shishi_tgsrep: AS/TGS Functions. (line 1057) * shishi_tgsreq: AS/TGS Functions. (line 356) * shishi_tgs_ap: TGS Functions. (line 125) * shishi_tgs_done: TGS Functions. (line 93) * shishi_tgs_krberror: TGS Functions. (line 259) * shishi_tgs_krberror_der: TGS Functions. (line 270) * shishi_tgs_krberror_set: TGS Functions. (line 284) * shishi_tgs_process: AS/TGS Functions. (line 265) * shishi_tgs_rep: TGS Functions. (line 209) * shishi_tgs_rep_build: TGS Functions. (line 246) * shishi_tgs_rep_der: TGS Functions. (line 220) * shishi_tgs_rep_process: TGS Functions. (line 234) * shishi_tgs_req: TGS Functions. (line 136) * shishi_tgs_req_build: TGS Functions. (line 198) * shishi_tgs_req_der: TGS Functions. (line 158) * shishi_tgs_req_der_set: TGS Functions. (line 172) * shishi_tgs_req_process: TGS Functions. (line 186) * shishi_tgs_req_set: TGS Functions. (line 147) * shishi_tgs_sendrecv: TGS Functions. (line 332) * shishi_tgs_sendrecv_hint: TGS Functions. (line 316) * shishi_tgs_set_realm: TGS Functions. (line 357) * shishi_tgs_set_realmserver: TGS Functions. (line 370) * shishi_tgs_set_server: TGS Functions. (line 344) * shishi_tgs_tgtkt: TGS Functions. (line 103) * shishi_tgs_tgtkt_set: TGS Functions. (line 114) * shishi_tgs_tkt: TGS Functions. (line 294) * shishi_tgs_tkt_set: TGS Functions. (line 305) * shishi_ticket: Ticket (ASN.1) Functions. (line 34) * shishi_ticket_add_enc_part: Ticket (ASN.1) Functions. (line 147) * shishi_ticket_get_enc_part_etype: Ticket (ASN.1) Functions. (line 113) * shishi_ticket_realm_get: Ticket (ASN.1) Functions. (line 45) * shishi_ticket_realm_set: Ticket (ASN.1) Functions. (line 60) * shishi_ticket_server: Ticket (ASN.1) Functions. (line 74) * shishi_ticket_set_enc_part: Ticket (ASN.1) Functions. (line 126) * shishi_ticket_sname_set: Ticket (ASN.1) Functions. (line 96) * shishi_time: Utility Functions. (line 413) * shishi_tkt: Ticket Functions. (line 16) * shishi_tkt2: Ticket Functions. (line 27) * shishi_tkts: Ticket Set Functions. (line 68) * shishi_tkts_add: Ticket Set Functions. (line 128) * shishi_tkts_default: Ticket Set Functions. (line 58) * shishi_tkts_default_file: Ticket Set Functions. (line 33) * shishi_tkts_default_file_guess: Ticket Set Functions. (line 21) * shishi_tkts_default_file_set: Ticket Set Functions. (line 45) * shishi_tkts_done: Ticket Set Functions. (line 79) * shishi_tkts_expire: Ticket Set Functions. (line 198) * shishi_tkts_find: Ticket Set Functions. (line 258) * shishi_tkts_find_for_clientserver: Ticket Set Functions. (line 298) * shishi_tkts_find_for_server: Ticket Set Functions. (line 313) * shishi_tkts_from_file: Ticket Set Functions. (line 174) * shishi_tkts_get: Ticket Set Functions. (line 367) * shishi_tkts_get_for_clientserver: Ticket Set Functions. (line 386) * shishi_tkts_get_for_localservicepasswd: Ticket Set Functions. (line 415) * shishi_tkts_get_for_server: Ticket Set Functions. (line 400) * shishi_tkts_get_tgs: Ticket Set Functions. (line 349) * shishi_tkts_get_tgt: Ticket Set Functions. (line 328) * shishi_tkts_new: Ticket Set Functions. (line 141) * shishi_tkts_nth: Ticket Set Functions. (line 99) * shishi_tkts_print: Ticket Set Functions. (line 235) * shishi_tkts_print_for_service: Ticket Set Functions. (line 221) * shishi_tkts_read: Ticket Set Functions. (line 162) * shishi_tkts_remove: Ticket Set Functions. (line 115) * shishi_tkts_size: Ticket Set Functions. (line 89) * shishi_tkts_to_file: Ticket Set Functions. (line 208) * shishi_tkts_write: Ticket Set Functions. (line 187) * shishi_tkt_authctime: Ticket Functions. (line 624) * shishi_tkt_client: Ticket Functions. (line 149) * shishi_tkt_clientrealm: Ticket Functions. (line 182) * shishi_tkt_clientrealm_p: Ticket Functions. (line 203) * shishi_tkt_client_p: Ticket Functions. (line 169) * shishi_tkt_done: Ticket Functions. (line 44) * shishi_tkt_enckdcreppart: Ticket Functions. (line 74) * shishi_tkt_enckdcreppart_set: Ticket Functions. (line 84) * shishi_tkt_encticketpart: Ticket Functions. (line 104) * shishi_tkt_encticketpart_set: Ticket Functions. (line 114) * shishi_tkt_endctime: Ticket Functions. (line 650) * shishi_tkt_expired_p: Ticket Functions. (line 701) * shishi_tkt_flags: Ticket Functions. (line 264) * shishi_tkt_flags_add: Ticket Functions. (line 288) * shishi_tkt_flags_set: Ticket Functions. (line 275) * shishi_tkt_forwardable_p: Ticket Functions. (line 300) * shishi_tkt_forwarded_p: Ticket Functions. (line 320) * shishi_tkt_hw_authent_p: Ticket Functions. (line 490) * shishi_tkt_initial_p: Ticket Functions. (line 454) * shishi_tkt_invalid_p: Ticket Functions. (line 418) * shishi_tkt_kdcrep: Ticket Functions. (line 94) * shishi_tkt_key: Ticket Functions. (line 124) * shishi_tkt_keytype: Ticket Functions. (line 572) * shishi_tkt_keytype_fast: Ticket Functions. (line 584) * shishi_tkt_keytype_p: Ticket Functions. (line 596) * shishi_tkt_key_set: Ticket Functions. (line 137) * shishi_tkt_lastreqc: Ticket Functions. (line 609) * shishi_tkt_lastreq_pretty_print: Ticket Functions. (line 712) * shishi_tkt_match_p: Ticket Set Functions. (line 246) * shishi_tkt_may_postdate_p: Ticket Functions. (line 372) * shishi_tkt_ok_as_delegate_p: Ticket Functions. (line 549) * shishi_tkt_postdated_p: Ticket Functions. (line 399) * shishi_tkt_pretty_print: Ticket Functions. (line 723) * shishi_tkt_pre_authent_p: Ticket Functions. (line 472) * shishi_tkt_proxiable_p: Ticket Functions. (line 338) * shishi_tkt_proxy_p: Ticket Functions. (line 357) * shishi_tkt_realm: Ticket Functions. (line 217) * shishi_tkt_renewable_p: Ticket Functions. (line 438) * shishi_tkt_renew_tillc: Ticket Functions. (line 662) * shishi_tkt_server: Ticket Functions. (line 231) * shishi_tkt_server_p: Ticket Functions. (line 251) * shishi_tkt_startctime: Ticket Functions. (line 637) * shishi_tkt_ticket: Ticket Functions. (line 53) * shishi_tkt_ticket_set: Ticket Functions. (line 63) * shishi_tkt_transited_policy_checked_p: Ticket Functions. (line 508) * shishi_tkt_valid_at_time_p: Ticket Functions. (line 675) * shishi_tkt_valid_now_p: Ticket Functions. (line 690) * shishi_verbose: Error Functions. (line 139) * shishi_verify: Cryptographic Functions. (line 811) * shishi_warn: Error Functions. (line 126) * shishi_x509ca_default_file: X.509 Functions. (line 39) * shishi_x509ca_default_file_guess: X.509 Functions. (line 12) * shishi_x509ca_default_file_set: X.509 Functions. (line 24) * shishi_x509cert_default_file: X.509 Functions. (line 80) * shishi_x509cert_default_file_guess: X.509 Functions. (line 52) * shishi_x509cert_default_file_set: X.509 Functions. (line 65) * shishi_x509key_default_file: X.509 Functions. (line 121) * shishi_x509key_default_file_guess: X.509 Functions. (line 94) * shishi_x509key_default_file_set: X.509 Functions. (line 106) * this in date strings: Relative items in date strings. (line 33) * today in date strings: Relative items in date strings. (line 33) * tomorrow in date strings: Relative items in date strings. (line 29) * week in date strings: Relative items in date strings. (line 15) * year in date strings: Relative items in date strings. (line 15) * yesterday in date strings: Relative items in date strings. (line 29)  File: shishi.info, Node: Concept Index, Prev: Function and Data Index, Up: Top Concept Index ************* [index] * Menu: * 3DES: Cryptographic Overview. (line 21) * abbreviations for months: Calendar date items. (line 36) * AES: Cryptographic Overview. (line 21) * AES-CCM: Telnet encryption with AES-CCM. (line 6) * AIX: Supported Platforms. (line 70) * anonymous tls: Kerberos via TLS. (line 41) * Application Programming Interface (API): Programming Manual. (line 6) * ARCFOUR: Cryptographic Overview. (line 21) * authenticated tls: Kerberos via TLS. (line 97) * Authentication: Glossary of terms. (line 7) * Authentication header: Glossary of terms. (line 10) * Authentication path: Glossary of terms. (line 14) * Authenticator: Glossary of terms. (line 18) * Authorization: Glossary of terms. (line 23) * authors of parse_datetime: Authors of parse_datetime. (line 6) * Autoconf tests: Autoconf tests. (line 6) * basic authorization: Kerberized rsh and rlogin. (line 109) * beginning of time, for POSIX: Seconds since the Epoch. (line 13) * Bellovin, Steven M.: Authors of parse_datetime. (line 6) * Berets, Jim: Authors of parse_datetime. (line 6) * Berry, K.: Authors of parse_datetime. (line 19) * calendar date item: Calendar date items. (line 6) * Capability: Glossary of terms. (line 28) * case, ignored in dates: General date syntax. (line 60) * certificate authority (CA): Kerberos via TLS. (line 97) * Ciphertext: Glossary of terms. (line 35) * Client: Glossary of terms. (line 39) * client authentication: Kerberos via TLS. (line 97) * combined date and time of day item: Combined date and time of day items. (line 6) * comments, in dates: General date syntax. (line 60) * Compiling your application: Building the source. (line 6) * concurrent writers: Multiple servers. (line 24) * configuration file: Shishi Configuration. (line 6) * Configure tests: Autoconf tests. (line 6) * Contributing: Contributing. (line 6) * copying information: Copying Information. (line 6) * credential cache, file format of: The Credential Cache Binary File Format. (line 6) * Credentials: Glossary of terms. (line 45) * database definition: Shisa Configuration. (line 6) * Database interface: Kerberos Database Functions. (line 6) * date and time of day format, ISO 8601: Combined date and time of day items. (line 6) * date format, ISO 8601: Calendar date items. (line 28) * date input formats: Date input formats. (line 6) * day of week item: Day of week items. (line 6) * Debian: Supported Platforms. (line 10) * Debian <1>: Supported Platforms. (line 22) * DES: Cryptographic Overview. (line 21) * Diffie Hellman key exchange: Kerberos via TLS. (line 41) * displacement of dates: Relative items in date strings. (line 6) * Download: Downloading and Installing. (line 6) * Eggert, Paul: Authors of parse_datetime. (line 6) * eklogin: Kerberized rsh and rlogin. (line 176) * Encryption Type (etype): Glossary of terms. (line 49) * End-user Shishi usage: User Manual. (line 6) * Epoch, for POSIX: Seconds since the Epoch. (line 13) * Error Handling: Error Handling. (line 6) * Examples: Examples. (line 6) * fail over: Multiple servers. (line 80) * FDL, GNU Free Documentation License: GNU Free Documentation License. (line 6) * FreeBSD: Supported Platforms. (line 93) * general date syntax: General date syntax. (line 6) * Generic Security Service: Generic Security Service. (line 6) * GNUTLS: Kerberos via TLS. (line 6) * GSS-API: Generic Security Service. (line 6) * GSSLib: Generic Security Service. (line 6) * Hacking: Contributing. (line 6) * High Availability: Multiple servers. (line 62) * HP-UX: Supported Platforms. (line 74) * Installation: Downloading and Installing. (line 6) * IPSEC: Multiple servers. (line 6) * IRIX: Supported Platforms. (line 66) * ISO 8601 date and time of day format: Combined date and time of day items. (line 6) * ISO 8601 date format: Calendar date items. (line 28) * items in date strings: General date syntax. (line 6) * k5login authorization: Kerberized rsh and rlogin. (line 309) * KCMDV0.2: Kerberized rsh and rlogin. (line 6) * KCMDV0.3: Kerberized rsh and rlogin. (line 279) * KDC: Glossary of terms. (line 59) * Kerberos: Glossary of terms. (line 68) * Kerberos Ticket: Glossary of terms. (line 125) * Key Version Number (kvno): Glossary of terms. (line 74) * keytab, file format of: The Keytab Binary File Format. (line 6) * language, in dates: General date syntax. (line 36) * language, in dates <1>: General date syntax. (line 40) * LDAP: Multiple servers. (line 6) * leap seconds: General date syntax. (line 65) * leap seconds <1>: Time of day items. (line 14) * leap seconds <2>: Seconds since the Epoch. (line 27) * MacKenzie, David: Authors of parse_datetime. (line 6) * MacOS X: Supported Platforms. (line 99) * Mandrake: Supported Platforms. (line 62) * master server: Multiple servers. (line 13) * Meyering, Jim: Authors of parse_datetime. (line 6) * minutes, time zone correction by: Time of day items. (line 29) * month names in date strings: Calendar date items. (line 36) * months, written-out: General date syntax. (line 32) * Motorola Coldfire: Supported Platforms. (line 103) * NetBSD: Supported Platforms. (line 83) * NFS: Multiple servers. (line 6) * numbers, written-out: General date syntax. (line 22) * OpenBSD: Supported Platforms. (line 88) * ordinal numbers: General date syntax. (line 22) * Pinard, F.: Authors of parse_datetime. (line 19) * Plaintext: Glossary of terms. (line 81) * Principal: Glossary of terms. (line 85) * Principal identifier: Glossary of terms. (line 89) * Protocol Extensions: Protocol Extensions. (line 6) * pure numbers in date strings: Pure numbers in date strings. (line 6) * RedHat: Supported Platforms. (line 45) * RedHat <1>: Supported Platforms. (line 50) * RedHat <2>: Supported Platforms. (line 58) * RedHat Advanced Server: Supported Platforms. (line 54) * relative items in date strings: Relative items in date strings. (line 6) * remote databases: Multiple servers. (line 6) * Reporting Bugs: Bug Reports. (line 6) * rsh and rlogin: Kerberized rsh and rlogin. (line 6) * rsync: Multiple servers. (line 6) * Salz, Rich: Authors of parse_datetime. (line 6) * Seal: Glossary of terms. (line 93) * secondary server: Multiple servers. (line 13) * Secret key: Glossary of terms. (line 98) * Server: Glossary of terms. (line 104) * server authentication: Kerberos via TLS. (line 97) * Service: Glossary of terms. (line 109) * Session key: Glossary of terms. (line 113) * Shisa API: Kerberos Database Functions. (line 6) * Solaris: Supported Platforms. (line 79) * specifying user database: Shisa Configuration. (line 6) * SQL: Multiple servers. (line 6) * STARTTLS: Kerberos via TLS. (line 6) * Sub-session key: Glossary of terms. (line 119) * SuSE: Supported Platforms. (line 31) * SuSE Linux: Supported Platforms. (line 36) * SuSE Linux <1>: Supported Platforms. (line 40) * Telnet encryption: Telnet encryption with AES-CCM. (line 6) * Ticket: Glossary of terms. (line 125) * time of day item: Time of day items. (line 6) * time zone correction: Time of day items. (line 29) * time zone item: General date syntax. (line 40) * time zone item <1>: Time zone items. (line 6) * TLS: Kerberos via TLS. (line 6) * tls resume: Kerberos via TLS. (line 18) * Tru64: Supported Platforms. (line 26) * uClibc: Supported Platforms. (line 103) * uClinux: Supported Platforms. (line 103) * user database definition: Shisa Configuration. (line 6) * X.509 authentication: Kerberos via TLS. (line 97) shishi-1.0.3/doc/components.dia0000644000000000000000000001244114273523166013315 00000000000000‹í][o븵~ϯ02/= ·x'«î]ô P´ÅœLûl(¶b«q$¤$ã)Úß~HÉ÷K¢˜^²pcfgK‘¹¼l®ßâºðüõqÒ{NŠ2ͳ¯·…·½$äÃ4}½ýÇßÿüƒºýã·›? Óø÷æÿQ?öÌ+²Ò^}½WÕô÷_¾¼¼¼ É¬Œ«¼@“ô •É—ÿÄ“IüÅ<ôåöÛM¯·>À0®b{o~7®ª"½{ª’^?&_oïâÁèȟ²ámóÔü¹A>É‹Þs<ùzûÝ}ýçöË|˜/ã¼2ö4%wE?:4´>fèiRlû8ÍËÔ ®•%“xñ™¼_Ü]·â&ÝŠ+º—–ýi^TEœV»"ïò|’ÄY#õ>ž”Éñ‚ÊA<1sì5½Ô¸O«*?‘Íí¥¹½×tGE:|Ýr7ž80ÊK:¬Æý_>®fôÐèÏi™ÞM’}ï>ͪ“ ?;ÍðÛßN ß«—;Άf´ƒëÃP%<áï_FOé0)ߘf›Ïi<ìË[Ÿúösm?˜æÖÖj]‹˜Ä³¤˜ÿß«uº7ÿ‚ÍÂR<-V¯úùÝ?“A5WïÏ“üe0Ž‹ª÷Cïÿž²Á8ö~Œ ûú1ô#~½ýßpóƒÚVÍ k@p瓚æËéj[ñ]Ø84ôÝÝöÈ…Ñ"ÎF“¤ý‡…ÄÖ;jcÔÿøŸŸŒ=ÿɼì9­f{lš8Û´14HÚ_˜]¹$ßwP¥ ãçˆ\ðOï ²)Œ\>|ŠdŠ7å85ÿõ›ëþ÷‹ë¸4—‹‹jd¯^—6ˆ¬ŒÖ$™žþ;FäÿË\qäýwZ䃤,oBƒÁI±!>v+Uxî…ù hñ±nmi1£VˆŒ#L‹U¥ ŸŠ©¶ab÷jOLì„ãr…ÁqÙÿÞãmœŒy´ím…ó®°AAÈO=¾å¼”LÀ­ƒ.íà–2½þGx¸Ý€[CoWxk.<àv@p†à&ã!÷$ûvt]ºcnã”(è躘X1”FF&eÜ× tp}Ÿ‚>¸þI‚ëìÒbëo›´º“¶R0I ð‚ K¸É¥õbAbÞ¬½Y/ÌZœÇ¬µó^” ášÅŸw–} wq™áõl ¯ÒŸ‡IAš;> dÊ.›Æû€d'9 Ø9ñ™3d¾±‘—2"m^<†ÍvT©Uc.ÓïŒ*âÚòAÅlZå߯PyNÇI±„åÁ8<”OËfj§÷³åe’Õ#¬Áøæu#§_åý‡d¶¸Y–”?nÝÌú÷ùd¸§Xþëañ¯éÝÃðžôËqŒý½Fp…p€‰_!ºZ!œ“²©Ÿ€n¬é'_!–2"ú (Er…pT©]Æ ÜHÔÊg n’öéFÙb}é9:|!j£CÌ£o7è뜤mðPZ¨‚ŒX.eD,4ÔÙ ¯E_7•<úž}§›è;õè ¾–ýüõ­Ý:Â_÷„miC¯!lnçBFd9©[ÝàÛ•2n µB_¶[`»Ž´fá+c´ãx݉ô0 ÚuÒ9‹Þú%G{ýíPV!Áˆ´bÅ"2?Ca›N†Hh&ƒý;úšµG#³ô_j¤»¤ð sžç ú†ìRÐÐ’1j)š CâÈŠZ[+R”@—ÅìQÐ[õç±jq…VMÜS赃‹ÒΦ ‰à#H3Œ#+‘+mKÝ8tJÞ¶r¾Èí󨳼´*··C;çÎS‚T€(ñ^ʈ¨¶ýïlÏwÐýe7Ú¥äIî79679žª±ñ`ÓA}Úáj¿cý¶ßúèâü»<‘Ðo}t³õAœK_ÙѰØ…yhX”C¨ba~(†3~øæÇ> ÷ï‘”á‰ÕÅ%bGéLmA½³6R°`µY3Ììˆá¬6lÆø…v½QrtÄß›öÇ4í39MÎ9óÆ1+§FÒ®2"FÍ¿A Çh:ªä£ÂG¤ÈßÖÒãïGÞ9‚/PÂÖ”ðfs ï¥ßçäsœµ{9P»”1i+F ›ÅZGÚíO)߯ö5ðM²Aó8‹j…Âëw=Ãñ ôؽ*ÈíV9'¤/¾´£A²ý•H0IêZQŠid¥jZ§óB7ÑÚ«£wk?[˯ЭuOu638[§‘`#ú"°ÇÅ‚&:»¨Ó®È„kO²^; <$kôª¹öÄ >ÿY";£Uêu&ÔÛÁ/5î-&V ¥,²"…Áa…˜”àÍÎvõ;tޱòtêƒÑ)—Ì*r6¥ÝÙ"v—–OÍeØÂ1ÅÁ;ë8êÔnçJt×ììJw®µ³uµºí)<ÅRˆ7{WžduD²¨{îúüKð4K EqiE)‘‘•ª‰a? …ƒŸÕ²OÇC|ìhÿØ“­‹%[Ú…l©,…â«ðŸ$"D×;WÔü´¤”‹fSKq ”O¡ôT7)”oºP”¸ÿÆAÿfüÈž«0 {>­ƒ*m¼&î·¢_÷šÆyY=$³µCjw¼¯ç·YLøcj;J»¢Î¹ëÜ bÙÚŽ ã<×e¾ Ðë K»( öV¯A¯Ùêš ¸]4Ym:öÛÙæ”{'~›M¼5Å%â’5[SLÓˆ×ÕBu’‡Ðe€{4<3:tvôÈ•òÍrƒpz¿Æ"B¸wò»dœâŒ³¦ZôŒM35BŠë V*…¥œ˜Êú$]¦Á[ôíUñðôõb´Sî]޹§gê=AåuX¶^ÒÚ²QeRŸ‘ ßS¦¥e7{ÏÞ®½]¯ÙõyrJ©{“lë&ÕãG>ê ˆo5qD!ÎÃz΃Ïí óÎP—ξ–2ÚäQQ†˜j ¯Ã¢é0Äëˆ&Z6Ná—áy³ö.Pfý¦ Äœó¼±8dfR=~D(ÂNLrP¥] (ô9¡oxEå†[äEÔÍaò€ṳ̂Î\#æÞ œ9lµsŒBâ,k’†Eai]£+jðѰ(ð¼¤ýNÛГ¨F¢”‰bø<$Ê9½Û8'8 t¯c)#2FÌx@CФ7ÚÕØPßSóÕÄ›â.1½vøËâŽçUð56IÛ‰_ùCo;ª²aÎ߂Æóêñ#¡…ÏztÐ¥3ëÁ÷Uð-ãûd¼öʃ.8è Ùœé}.w À‚n=~$²ù„ ¶‡M5ˆ@žrH OQ9Ù%ÌN‹ôy£é–½Q·ÜZܳ7<ôÂC/FØ'œw»‘x- çFJÈš3“ˆV‘™*LZ Ì#T_FHv1}XÖ‡e×vÏ”qÎäõ˜6¦º)&Q:2œòP7Å$‚\ˆiϽoÚÞ´×L›'Xàœt.(l/˜züH($á{Á8èÒ.Dà…ßs,|^¤¿%›GÂ×·¼›ï&q¤|'˜Nw¨œ3Ñk ºx¶Ý… K¡p@…Ói„oã®›Jí°—„õEàÛ–,/‰‡iùæ+þ¾_åýût’¬nLÍ“ÕÚe\”k¿M³éÓÚoͧ1ôà ñ€Ä<|wßܽîÀ2L(|/eD\ 銬oÇÜTjàÕagmùó±™IÓ¤Ñ,ûUQßX\§Ù}¾ø÷K\d–ÁûÝÔñ½Í„3˸ì^9ÇÛ®rÄŽaa÷1(.9^—v_¿±…Ç™Á²5òü0ôË$š9ðìÑm1EÔZó»]{¹sÕÈâKã !+Å{˜:ØKŒ¿D0 CŒpÚ«ãžêÖD„˜}¬ˆÇ!qžX/§×cÙ8l,›re™W6͘"‚µ¼ Ë6o ›wäíÚÛõÒ®ÏsÜw.G0sÙ”UÐc ÕÖQâ6ðà¨ÓÅ•&\cÎlš¥kíÇìÕr#k˜g‰wŸÀ{‘ÙSÌ©×Oûôîän•{G|Š”ux5d‰îBFÄê1;O@‹tÝtjyÞ&+¿µ]À Òi®å¢ókû-YîIØ<&ƒae›Baî!¹+Hv.ÂÂpF¬‚ ú,dØ@®™ ÇŸ‡Ú2‘ÆM§6˜,‘ò­k^Ý’ˆËò%/†ë;FTÕ_ü£1xWÖq›Ï"ìá¸8v.’†$Çvøc;'$¯Æ¹OÂÇ~0ö³?W“ <ŠB£¨¶Æâ3;ÊPΕ:ÚÜZa¨BšŠPX1’ ç_ ³ÎR›ÂÄ¡Ï>ÝVïp’“Ï_úhùKÚ%鯣$轤ոg&­ý™?U½Ç|˜ÞC·Ï7±¦iR<¦U• {if†›õ“aj¦ÞâE>‹'Õ¬7-òçth«Æ‰Y æïð&Ë n$õû¨å.®íÈER&Ås2DŸ ã0xYú¦Õxƒt§¤{Æ@!1.DšT™¿#Q§3Pû7tVê†N{ü&}´Òë3h>¹ç<„BÏ'BVó‰Ð.æ¡oÌ'B?÷|:Dœ³mI@ #6ÊP0n=7rì§üå‡IòœLn.ÁQS’ÅlN;Ob@A‚¹ƒ… Zƒ„¨ûJ^Hü5«ŒódÜ¥¸J. .SH COPYRIGHT Copyright \(co 2022 Simon Josefsson. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" The full documentation for .B shishid is maintained as a Texinfo manual. If the .B info and .B shishid programs are properly installed at your site, the command .IP .B info shishid .PP should give you access to the complete manual. shishi-1.0.3/doc/cyclo/0000755000000000000000000000000014273616164011641 500000000000000shishi-1.0.3/doc/cyclo/Makefile.in0000644000000000000000000022464114273615654013642 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc/cyclo ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ vcurl = "https://git.savannah.gnu.org/gitweb/?p=$(PACKAGE).git;a=blob;f=lib/%FILENAME%;hb=HEAD" all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/cyclo/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/cyclo/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am .PRECIOUS: Makefile cyclo-$(PACKAGE).html: (cd ${top_srcdir}/lib && \ $(PMCCABE) *.[ch] \ | sort -nr \ | LANG=C $(AWK) -f ${abs_top_srcdir}/build-aux/pmccabe2html \ -v lang=html -v name="$(PACKAGE_STRING)" \ -v vcurl=$(vcurl) \ -v url="https://www.gnu.org/software/$(PACKAGE)/" \ -v css=${abs_top_srcdir}/build-aux/pmccabe.css) \ > tmp mv tmp $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/doc/cyclo/Makefile.am0000644000000000000000000000243214273600463013611 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. vcurl = "https://git.savannah.gnu.org/gitweb/?p=$(PACKAGE).git;a=blob;f=lib/%FILENAME%;hb=HEAD" cyclo-$(PACKAGE).html: (cd ${top_srcdir}/lib && \ $(PMCCABE) *.[ch] \ | sort -nr \ | LANG=C $(AWK) -f ${abs_top_srcdir}/build-aux/pmccabe2html \ -v lang=html -v name="$(PACKAGE_STRING)" \ -v vcurl=$(vcurl) \ -v url="https://www.gnu.org/software/$(PACKAGE)/" \ -v css=${abs_top_srcdir}/build-aux/pmccabe.css) \ > tmp mv tmp $@ shishi-1.0.3/doc/keytab2shishi.10000644000000000000000000000244014273615527013305 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. .TH KEYTAB2SHISHI "1" "August 2022" "keytab2shishi 1.0.3" "User Commands" .SH NAME keytab2shishi \- Shishi host key conversion tool .SH SYNOPSIS .B keytab2shishi [\fI\,OPTION\/\fR]... [\fI\,INFILE \/\fR[\fI\,OUTFILE\/\fR]]... .SH DESCRIPTION Read keytab data from INFILE (usually \fI\,/etc/krb5.keytab\/\fP) and write Shishi hostkeys to OUTFILE. If INFILE and OUTFILE are not specified, use the defaults. .TP \fB\-h\fR, \fB\-\-help\fR Print help and exit .TP \fB\-V\fR, \fB\-\-version\fR Print version and exit .TP \fB\-R\fR, \fB\-\-reverse\fR Reverse action, read Shishi hostkeys from INFILE and write .TP keytab data to OUTFILE. (default=off) .TP \fB\-v\fR, \fB\-\-verbose\fR Produce verbose output. .IP Use multiple times to increase amount of information. .TP \fB\-q\fR, \fB\-\-quiet\fR Don't produce any diagnostic output. (default=off) .PP Mandatory arguments to long options are mandatory for short options too. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B keytab2shishi is maintained as a Texinfo manual. If the .B info and .B keytab2shishi programs are properly installed at your site, the command .IP .B info keytab2shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/texi/0000755000000000000000000000000014273616164011501 500000000000000shishi-1.0.3/doc/texi/krberror.c.texi0000644000000000000000000006115014273615521014364 00000000000000@subheading shishi_krberror @anchor{shishi_krberror} @deftypefun {Shishi_asn1} {shishi_krberror} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new KRB-ERROR, populated with some default values. @strong{Return value:} Returns the KRB-ERROR or NULL on failure. @end deftypefun @subheading shishi_krberror_print @anchor{shishi_krberror_print} @deftypefun {int} {shishi_krberror_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{krberror}: KRB-ERROR to print. @strong{Description:} Print ASCII armored DER encoding of KRB-ERROR to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_save @anchor{shishi_krberror_save} @deftypefun {int} {shishi_krberror_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{krberror}: KRB-ERROR to save. @strong{Description:} Save DER encoding of KRB-ERROR to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_to_file @anchor{shishi_krberror_to_file} @deftypefun {int} {shishi_krberror_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write KRB-ERROR to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_parse @anchor{shishi_krberror_parse} @deftypefun {int} {shishi_krberror_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{krberror}: output variable with newly allocated KRB-ERROR. @strong{Description:} Read ASCII armored DER encoded KRB-ERROR from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_read @anchor{shishi_krberror_read} @deftypefun {int} {shishi_krberror_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{krberror}: output variable with newly allocated KRB-ERROR. @strong{Description:} Read DER encoded KRB-ERROR from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_from_file @anchor{shishi_krberror_from_file} @deftypefun {int} {shishi_krberror_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{krberror}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: output variable with newly allocated KRB-ERROR. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read KRB-ERROR from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_build @anchor{shishi_krberror_build} @deftypefun {int} {shishi_krberror_build} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Finish KRB-ERROR, called before e.g. shishi_krberror_der. This function removes empty but OPTIONAL fields (such as cname), and @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_der @anchor{shishi_krberror_der} @deftypefun {int} {shishi_krberror_der} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{out}: output array with newly allocated DER encoding of KRB-ERROR. @*@var{outlen}: length of output array with DER encoding of KRB-ERROR. @strong{Description:} DER encode KRB-ERROR. The caller must deallocate the OUT buffer. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_crealm @anchor{shishi_krberror_crealm} @deftypefun {int} {shishi_krberror_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{realm}}, @w{size_t * @var{realmlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{realm}: output array with newly allocated name of realm in KRB-ERROR. @*@var{realmlen}: size of output array. @strong{Description:} Extract client realm from KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_crealm @anchor{shishi_krberror_remove_crealm} @deftypefun {int} {shishi_krberror_remove_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove client realm field in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_crealm @anchor{shishi_krberror_set_crealm} @deftypefun {int} {shishi_krberror_set_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{crealm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{crealm}: input array with realm. @strong{Description:} Set realm field in krberror to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_client @anchor{shishi_krberror_client} @deftypefun {int} {shishi_krberror_client} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{client}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Return client principal name in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_cname @anchor{shishi_krberror_set_cname} @deftypefun {int} {shishi_krberror_set_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{cname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{cname}: input array with principal name. @strong{Description:} Set principal field in krberror to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_cname @anchor{shishi_krberror_remove_cname} @deftypefun {int} {shishi_krberror_remove_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove client realm field in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_client_set @anchor{shishi_krberror_client_set} @deftypefun {int} {shishi_krberror_client_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{client}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror to set client name field in. @*@var{client}: zero-terminated string with principal name on RFC 1964 form. @strong{Description:} Set the client name field in the Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_realm @anchor{shishi_krberror_realm} @deftypefun {int} {shishi_krberror_realm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{realm}}, @w{size_t * @var{realmlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{realm}: output array with newly allocated name of realm in KRB-ERROR. @*@var{realmlen}: size of output array. @strong{Description:} Extract (server) realm from KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_realm @anchor{shishi_krberror_set_realm} @deftypefun {int} {shishi_krberror_set_realm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{realm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{realm}: input array with (server) realm. @strong{Description:} Set (server) realm field in krberror to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_server @anchor{shishi_krberror_server} @deftypefun {int} {shishi_krberror_server} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{server}}, @w{size_t * @var{serverlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{server}: pointer to newly allocated zero terminated string containing server name. May be @code{NULL} (to only populate @var{serverlen}). @*@var{serverlen}: pointer to length of @var{server} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{server}). @strong{Description:} Return server principal name in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_sname @anchor{shishi_krberror_remove_sname} @deftypefun {int} {shishi_krberror_remove_sname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror to set server name field in. @strong{Description:} Remove server name field in KRB-ERROR. (Since it is not marked OPTIONAL in the ASN.1 profile, what is done is to set the name-type to UNKNOWN and make sure the name-string sequence is empty.) @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_sname @anchor{shishi_krberror_set_sname} @deftypefun {int} {shishi_krberror_set_sname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{sname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{sname}: input array with principal name. @strong{Description:} Set principal field in krberror to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_server_set @anchor{shishi_krberror_server_set} @deftypefun {int} {shishi_krberror_server_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{server}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror to set server name field in. @*@var{server}: zero-terminated string with principal name on RFC 1964 form. @strong{Description:} Set the server name field in the Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_ctime @anchor{shishi_krberror_ctime} @deftypefun {int} {shishi_krberror_ctime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror to set client name field in. @*@var{t}: newly allocated zero-terminated output array with client time. @strong{Description:} Extract client time from KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_ctime_set @anchor{shishi_krberror_ctime_set} @deftypefun {int} {shishi_krberror_ctime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @*@var{t}: string with generalized time value to store in Krberror. @strong{Description:} Store client time in Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_ctime @anchor{shishi_krberror_remove_ctime} @deftypefun {int} {shishi_krberror_remove_ctime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove client time field in Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_cusec @anchor{shishi_krberror_cusec} @deftypefun {int} {shishi_krberror_cusec} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{uint32_t * @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @*@var{cusec}: output integer with client microseconds field. @strong{Description:} Extract client microseconds field from Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_cusec_set @anchor{shishi_krberror_cusec_set} @deftypefun {int} {shishi_krberror_cusec_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{uint32_t @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{cusec}: client microseconds to set in krberror, 0-999999. @strong{Description:} Set the cusec field in the Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_cusec @anchor{shishi_krberror_remove_cusec} @deftypefun {int} {shishi_krberror_remove_cusec} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove client usec field in Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_stime @anchor{shishi_krberror_stime} @deftypefun {int} {shishi_krberror_stime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror to set client name field in. @*@var{t}: newly allocated zero-terminated output array with server time. @strong{Description:} Extract server time from KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_stime_set @anchor{shishi_krberror_stime_set} @deftypefun {int} {shishi_krberror_stime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @*@var{t}: string with generalized time value to store in Krberror. @strong{Description:} Store server time in Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_susec @anchor{shishi_krberror_susec} @deftypefun {int} {shishi_krberror_susec} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{uint32_t * @var{susec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: Krberror as allocated by @code{shishi_krberror()}. @*@var{susec}: output integer with server microseconds field. @strong{Description:} Extract server microseconds field from Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_susec_set @anchor{shishi_krberror_susec_set} @deftypefun {int} {shishi_krberror_susec_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{uint32_t @var{susec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{susec}: server microseconds to set in krberror, 0-999999. @strong{Description:} Set the susec field in the Krberror. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_errorcode @anchor{shishi_krberror_errorcode} @deftypefun {int} {shishi_krberror_errorcode} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{int32_t * @var{errorcode}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @*@var{errorcode}: output integer KRB-ERROR error code. @strong{Description:} Extract error code from KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_errorcode_fast @anchor{shishi_krberror_errorcode_fast} @deftypefun {int} {shishi_krberror_errorcode_fast} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @strong{Description:} Get error code from KRB-ERROR, without error checking. @strong{Return value:} Return error code (see @code{shishi_krberror_errorcode()}) directly, or -1 on error. @end deftypefun @subheading shishi_krberror_errorcode_set @anchor{shishi_krberror_errorcode_set} @deftypefun {int} {shishi_krberror_errorcode_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{int @var{errorcode}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code to set. @*@var{errorcode}: new error code to set in krberror. @strong{Description:} Set the error-code field to a new error code. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_etext @anchor{shishi_krberror_etext} @deftypefun {int} {shishi_krberror_etext} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{etext}}, @w{size_t * @var{etextlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @*@var{etext}: output array with newly allocated error text. @*@var{etextlen}: output length of error text. @strong{Description:} Extract additional error text from server (possibly empty). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_etext @anchor{shishi_krberror_set_etext} @deftypefun {int} {shishi_krberror_set_etext} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{etext}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{etext}: input array with error text to set. @strong{Description:} Set error text (e-text) field in KRB-ERROR to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_etext @anchor{shishi_krberror_remove_etext} @deftypefun {int} {shishi_krberror_remove_etext} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove error text (e-text) field in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_edata @anchor{shishi_krberror_edata} @deftypefun {int} {shishi_krberror_edata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{char ** @var{edata}}, @w{size_t * @var{edatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @*@var{edata}: output array with newly allocated error data. @*@var{edatalen}: output length of error data. @strong{Description:} Extract additional error data from server (possibly empty). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_methoddata @anchor{shishi_krberror_methoddata} @deftypefun {int} {shishi_krberror_methoddata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{Shishi_asn1 * @var{methoddata}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @*@var{methoddata}: output ASN.1 METHOD-DATA. @strong{Description:} Extract METHOD-DATA ASN.1 object from the e-data field. The e-data field will only contain a METHOD-DATA if the krberror error code is @code{SHISHI_KDC_ERR_PREAUTH_REQUIRED}. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_set_edata @anchor{shishi_krberror_set_edata} @deftypefun {int} {shishi_krberror_set_edata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}, @w{const char * @var{edata}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @*@var{edata}: input array with error text to set. @strong{Description:} Set error text (e-data) field in KRB-ERROR to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_remove_edata @anchor{shishi_krberror_remove_edata} @deftypefun {int} {shishi_krberror_remove_edata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: krberror as allocated by @code{shishi_krberror()}. @strong{Description:} Remove error text (e-data) field in KRB-ERROR. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_pretty_print @anchor{shishi_krberror_pretty_print} @deftypefun {int} {shishi_krberror_pretty_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle opened for writing. @*@var{krberror}: KRB-ERROR structure with error code. @strong{Description:} Print KRB-ERROR error condition and some explanatory text to file descriptor. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_krberror_errorcode_message @anchor{shishi_krberror_errorcode_message} @deftypefun {const char *} {shishi_krberror_errorcode_message} (@w{Shishi * @var{handle}}, @w{int @var{errorcode}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{errorcode}: integer KRB-ERROR error code. @strong{Description:} Get human readable string describing KRB-ERROR code. @strong{Return value:} Return a string describing error code. This function will always return a string even if the error code isn't known. @end deftypefun @subheading shishi_krberror_message @anchor{shishi_krberror_message} @deftypefun {const char *} {shishi_krberror_message} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{krberror}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{krberror}: KRB-ERROR structure with error code. @strong{Description:} Extract error code (see @code{shishi_krberror_errorcode_fast()}) and return error message (see @code{shishi_krberror_errorcode_message()}). @strong{Return value:} Return a string describing error code. This function will always return a string even if the error code isn't known. @end deftypefun shishi-1.0.3/doc/texi/priv.c.texi0000644000000000000000000003070214273615522013514 00000000000000@subheading shishi_priv @anchor{shishi_priv} @deftypefun {int} {shishi_priv} (@w{Shishi * @var{handle}}, @w{Shishi_priv ** @var{priv}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{priv}: pointer to new structure that holds information about PRIV exchange @strong{Description:} Create a new PRIV exchange. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_done @anchor{shishi_priv_done} @deftypefun {void} {shishi_priv_done} (@w{Shishi_priv * @var{priv}}) @var{priv}: structure that holds information about PRIV exchange @strong{Description:} Deallocate resources associated with PRIV exchange. This should be called by the application when it no longer need to utilize the PRIV exchange handle. @end deftypefun @subheading shishi_priv_key @anchor{shishi_priv_key} @deftypefun {Shishi_key *} {shishi_priv_key} (@w{Shishi_priv * @var{priv}}) @var{priv}: structure that holds information about PRIV exchange @strong{Description:} Get key from PRIV exchange. @strong{Return value:} Returns the key used in the PRIV exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_priv_key_set @anchor{shishi_priv_key_set} @deftypefun {void} {shishi_priv_key_set} (@w{Shishi_priv * @var{priv}}, @w{Shishi_key * @var{key}}) @var{priv}: structure that holds information about PRIV exchange @*@var{key}: key to store in PRIV. @strong{Description:} Set the Key in the PRIV exchange. @end deftypefun @subheading shishi_priv_priv @anchor{shishi_priv_priv} @deftypefun {Shishi_asn1} {shishi_priv_priv} (@w{Shishi_priv * @var{priv}}) @var{priv}: structure that holds information about PRIV exchange @strong{Description:} Get ASN.1 PRIV structure in PRIV exchange. @strong{Return value:} Returns the ASN.1 priv in the PRIV exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_priv_priv_set @anchor{shishi_priv_priv_set} @deftypefun {void} {shishi_priv_priv_set} (@w{Shishi_priv * @var{priv}}, @w{Shishi_asn1 @var{asn1priv}}) @var{priv}: structure that holds information about PRIV exchange @*@var{asn1priv}: KRB-PRIV to store in PRIV exchange. @strong{Description:} Set the KRB-PRIV in the PRIV exchange. @end deftypefun @subheading shishi_priv_priv_der @anchor{shishi_priv_priv_der} @deftypefun {int} {shishi_priv_priv_der} (@w{Shishi_priv * @var{priv}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{out}: output array with newly allocated DER encoding of PRIV. @*@var{outlen}: length of output array with DER encoding of PRIV. @strong{Description:} DER encode PRIV structure. Typically @code{shishi_priv_build()} is used to build the PRIV structure first. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_priv_der_set @anchor{shishi_priv_priv_der_set} @deftypefun {int} {shishi_priv_priv_der_set} (@w{Shishi_priv * @var{priv}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{der}: input array with DER encoded KRB-PRIV. @*@var{derlen}: length of input array with DER encoded KRB-PRIV. @strong{Description:} DER decode KRB-PRIV and set it PRIV exchange. If decoding fails, the KRB-PRIV in the PRIV exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_priv_encprivpart @anchor{shishi_priv_encprivpart} @deftypefun {Shishi_asn1} {shishi_priv_encprivpart} (@w{Shishi_priv * @var{priv}}) @var{priv}: structure that holds information about PRIV exchange @strong{Description:} Get ASN.1 EncPrivPart structure from PRIV exchange. @strong{Return value:} Returns the ASN.1 encprivpart in the PRIV exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_priv_encprivpart_set @anchor{shishi_priv_encprivpart_set} @deftypefun {void} {shishi_priv_encprivpart_set} (@w{Shishi_priv * @var{priv}}, @w{Shishi_asn1 @var{asn1encprivpart}}) @var{priv}: structure that holds information about PRIV exchange @*@var{asn1encprivpart}: ENCPRIVPART to store in PRIV exchange. @strong{Description:} Set the ENCPRIVPART in the PRIV exchange. @end deftypefun @subheading shishi_priv_encprivpart_der @anchor{shishi_priv_encprivpart_der} @deftypefun {int} {shishi_priv_encprivpart_der} (@w{Shishi_priv * @var{priv}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{out}: output array with newly allocated DER encoding of ENCPRIVPART. @*@var{outlen}: length of output array with DER encoding of ENCPRIVPART. @strong{Description:} DER encode ENCPRIVPART structure. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_encprivpart_der_set @anchor{shishi_priv_encprivpart_der_set} @deftypefun {int} {shishi_priv_encprivpart_der_set} (@w{Shishi_priv * @var{priv}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{der}: input array with DER encoded ENCPRIVPART. @*@var{derlen}: length of input array with DER encoded ENCPRIVPART. @strong{Description:} DER decode ENCPRIVPART and set it PRIV exchange. If decoding fails, the ENCPRIVPART in the PRIV exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_priv_print @anchor{shishi_priv_print} @deftypefun {int} {shishi_priv_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{priv}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{priv}: PRIV to print. @strong{Description:} Print ASCII armored DER encoding of PRIV to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_save @anchor{shishi_priv_save} @deftypefun {int} {shishi_priv_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{priv}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{priv}: PRIV to save. @strong{Description:} Save DER encoding of PRIV to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_to_file @anchor{shishi_priv_to_file} @deftypefun {int} {shishi_priv_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{priv}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{priv}: PRIV to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write PRIV to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_parse @anchor{shishi_priv_parse} @deftypefun {int} {shishi_priv_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{priv}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{priv}: output variable with newly allocated PRIV. @strong{Description:} Read ASCII armored DER encoded PRIV from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_read @anchor{shishi_priv_read} @deftypefun {int} {shishi_priv_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{priv}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{priv}: output variable with newly allocated PRIV. @strong{Description:} Read DER encoded PRIV from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_from_file @anchor{shishi_priv_from_file} @deftypefun {int} {shishi_priv_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{priv}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{priv}: output variable with newly allocated PRIV. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read PRIV from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_enc_part_etype @anchor{shishi_priv_enc_part_etype} @deftypefun {int} {shishi_priv_enc_part_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{priv}}, @w{int32_t * @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{priv}: PRIV variable to get value from. @*@var{etype}: output variable that holds the value. @strong{Description:} Extract PRIV.enc-part.etype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_set_enc_part @anchor{shishi_priv_set_enc_part} @deftypefun {int} {shishi_priv_set_enc_part} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{priv}}, @w{int32_t @var{etype}}, @w{const char * @var{encpart}}, @w{size_t @var{encpartlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{etype}: input encryption type to store in PRIV. @*@var{encpart}: input encrypted data to store in PRIV. @*@var{encpartlen}: size of input encrypted data to store in PRIV. @strong{Description:} Store encrypted data in PRIV. The encrypted data is usually created by calling @code{shishi_encrypt()} on some application specific data using the key from the ticket that is being used. To save time, you may want to use @code{shishi_priv_build()} instead, which encryptes the data and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encprivpart_user_data @anchor{shishi_encprivpart_user_data} @deftypefun {int} {shishi_encprivpart_user_data} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encprivpart}}, @w{char ** @var{userdata}}, @w{size_t * @var{userdatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encprivpart}: encprivpart as allocated by @code{shishi_priv()}. @*@var{userdata}: output array with newly allocated user data from KRB-PRIV. @*@var{userdatalen}: output size of output user data buffer. @strong{Description:} Read user data value from KRB-PRIV. @var{userdata} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encprivpart_set_user_data @anchor{shishi_encprivpart_set_user_data} @deftypefun {int} {shishi_encprivpart_set_user_data} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encprivpart}}, @w{const char * @var{userdata}}, @w{size_t @var{userdatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encprivpart}: encprivpart as allocated by @code{shishi_priv()}. @*@var{userdata}: input user application to store in PRIV. @*@var{userdatalen}: size of input user application to store in PRIV. @strong{Description:} Set the application data in PRIV. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_build @anchor{shishi_priv_build} @deftypefun {int} {shishi_priv_build} (@w{Shishi_priv * @var{priv}}, @w{Shishi_key * @var{key}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{key}: key for session, used to encrypt data. @strong{Description:} Build checksum and set it in KRB-PRIV. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_priv_process @anchor{shishi_priv_process} @deftypefun {int} {shishi_priv_process} (@w{Shishi_priv * @var{priv}}, @w{Shishi_key * @var{key}}) @var{priv}: priv as allocated by @code{shishi_priv()}. @*@var{key}: key to use to decrypt EncPrivPart. @strong{Description:} Decrypt encrypted data in KRB-PRIV and set the EncPrivPart in the PRIV exchange. @strong{Return value:} Returns SHISHI_OK iff successful, SHISHI_PRIV_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_CRYPTO_ERROR if the actual decryption failed. @end deftypefun shishi-1.0.3/doc/texi/crypto-ctx.c.texi0000644000000000000000000000650014273615517014653 00000000000000@subheading shishi_crypto @anchor{shishi_crypto} @deftypefun {Shishi_crypto *} {shishi_crypto} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key will encrypt/decrypt. @*@var{etype}: integer specifying what cipher to use. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @strong{Description:} Initialize a crypto context. This store a key, keyusage, encryption type and initialization vector in a "context", and the caller can then use this context to perform encryption via @code{shishi_crypto_encrypt()} and decryption via @code{shishi_crypto_encrypt()} without supplying all those details again. The functions also takes care of propagating the IV between calls. When the application no longer need to use the context, it should deallocate resources associated with it by calling @code{shishi_crypto_close()}. @strong{Return value:} Return a newly allocated crypto context. @end deftypefun @subheading shishi_crypto_encrypt @anchor{shishi_crypto_encrypt} @deftypefun {int} {shishi_crypto_encrypt} (@w{Shishi_crypto * @var{ctx}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{ctx}: crypto context as returned by @code{shishi_crypto()}. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling @code{shishi_crypto_close()}. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_crypto_decrypt @anchor{shishi_crypto_decrypt} @deftypefun {int} {shishi_crypto_decrypt} (@w{Shishi_crypto * @var{ctx}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{ctx}: crypto context as returned by @code{shishi_crypto()}. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling @code{shishi_crypto_close()}. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_crypto_close @anchor{shishi_crypto_close} @deftypefun {void} {shishi_crypto_close} (@w{Shishi_crypto * @var{ctx}}) @var{ctx}: crypto context as returned by @code{shishi_crypto()}. @strong{Description:} Deallocate resources associated with the crypto context. @end deftypefun shishi-1.0.3/doc/texi/crypto-aes.c.texi0000644000000000000000000000000014273615516014611 00000000000000shishi-1.0.3/doc/texi/tkt.c.texi0000644000000000000000000006536514273615522013353 00000000000000@subheading shishi_tkt @anchor{shishi_tkt} @deftypefun {int} {shishi_tkt} (@w{Shishi * @var{handle}}, @w{Shishi_tkt ** @var{tkt}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{tkt}: output variable with newly allocated ticket. @strong{Description:} Create a new ticket handle. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt2 @anchor{shishi_tkt2} @deftypefun {Shishi_tkt *} {shishi_tkt2} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_asn1 @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: input variable with ticket. @*@var{enckdcreppart}: input variable with auxiliary ticket information. @*@var{kdcrep}: input variable with KDC-REP ticket information. @strong{Description:} Create a new ticket handle. @strong{Return value:} Returns new ticket handle, or @code{NULL} on error. @end deftypefun @subheading shishi_tkt_done @anchor{shishi_tkt_done} @deftypefun {void} {shishi_tkt_done} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Deallocate resources associated with ticket. The ticket must not be used again after this call. @end deftypefun @subheading shishi_tkt_ticket @anchor{shishi_tkt_ticket} @deftypefun {Shishi_asn1} {shishi_tkt_ticket} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Get ASN.1 Ticket structure from ticket. @strong{Return value:} Returns actual ticket. @end deftypefun @subheading shishi_tkt_ticket_set @anchor{shishi_tkt_ticket_set} @deftypefun {void} {shishi_tkt_ticket_set} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_asn1 @var{ticket}}) @var{tkt}: input variable with ticket info. @*@var{ticket}: ASN.1 Ticket to store in ticket. @strong{Description:} Set the ASN.1 Ticket in the Ticket. @end deftypefun @subheading shishi_tkt_enckdcreppart @anchor{shishi_tkt_enckdcreppart} @deftypefun {Shishi_asn1} {shishi_tkt_enckdcreppart} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Get ASN.1 EncKDCRepPart structure from ticket. @strong{Return value:} Returns auxiliary ticket information. @end deftypefun @subheading shishi_tkt_enckdcreppart_set @anchor{shishi_tkt_enckdcreppart_set} @deftypefun {void} {shishi_tkt_enckdcreppart_set} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_asn1 @var{enckdcreppart}}) @var{tkt}: structure that holds information about Ticket exchange @*@var{enckdcreppart}: EncKDCRepPart to store in Ticket. @strong{Description:} Set the EncKDCRepPart in the Ticket. @end deftypefun @subheading shishi_tkt_kdcrep @anchor{shishi_tkt_kdcrep} @deftypefun {Shishi_asn1} {shishi_tkt_kdcrep} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Get ASN.1 KDCRep structure from ticket. @strong{Return value:} Returns KDC-REP information. @end deftypefun @subheading shishi_tkt_encticketpart @anchor{shishi_tkt_encticketpart} @deftypefun {Shishi_asn1} {shishi_tkt_encticketpart} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Get ASN.1 EncTicketPart structure from ticket. @strong{Return value:} Returns EncTicketPart information. @end deftypefun @subheading shishi_tkt_encticketpart_set @anchor{shishi_tkt_encticketpart_set} @deftypefun {void} {shishi_tkt_encticketpart_set} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_asn1 @var{encticketpart}}) @var{tkt}: input variable with ticket info. @*@var{encticketpart}: encticketpart to store in ticket. @strong{Description:} Set the EncTicketPart in the Ticket. @end deftypefun @subheading shishi_tkt_key @anchor{shishi_tkt_key} @deftypefun {Shishi_key *} {shishi_tkt_key} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Get key used in ticket, by looking first in EncKDCRepPart and then in EncTicketPart. If key is already populated, it is not extracted again. @strong{Return value:} Returns key extracted from EncKDCRepPart or EncTicketPart. @end deftypefun @subheading shishi_tkt_key_set @anchor{shishi_tkt_key_set} @deftypefun {int} {shishi_tkt_key_set} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_key * @var{key}}) @var{tkt}: input variable with ticket info. @*@var{key}: key to store in ticket. @strong{Description:} Set the key in the EncTicketPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_client @anchor{shishi_tkt_client} @deftypefun {int} {shishi_tkt_client} (@w{Shishi_tkt * @var{tkt}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{tkt}: input variable with ticket info. @*@var{client}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Represent client principal name in Ticket KDC-REP as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_client_p @anchor{shishi_tkt_client_p} @deftypefun {int} {shishi_tkt_client_p} (@w{Shishi_tkt * @var{tkt}}, @w{const char * @var{client}}) @var{tkt}: input variable with ticket info. @*@var{client}: client name of ticket. @strong{Description:} Determine if ticket is for specified client. @strong{Return value:} Returns non-0 iff ticket is for specified client. @end deftypefun @subheading shishi_tkt_clientrealm @anchor{shishi_tkt_clientrealm} @deftypefun {int} {shishi_tkt_clientrealm} (@w{Shishi_tkt * @var{tkt}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{tkt}: input variable with ticket info. @*@var{client}: pointer to newly allocated zero terminated string containing principal name and realm. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_clientrealm_p @anchor{shishi_tkt_clientrealm_p} @deftypefun {int} {shishi_tkt_clientrealm_p} (@w{Shishi_tkt * @var{tkt}}, @w{const char * @var{client}}) @var{tkt}: input variable with ticket info. @*@var{client}: principal name (client name and realm) of ticket. @strong{Description:} Determine if ticket is for specified client principal. @strong{Return value:} Returns non-0 iff ticket is for specified client principal. @end deftypefun @subheading shishi_tkt_realm @anchor{shishi_tkt_realm} @deftypefun {int} {shishi_tkt_realm} (@w{Shishi_tkt * @var{tkt}}, @w{char ** @var{realm}}, @w{size_t * @var{realmlen}}) @var{tkt}: input variable with ticket info. @*@var{realm}: pointer to newly allocated character array with realm name. @*@var{realmlen}: length of newly allocated character array with realm name. @strong{Description:} Extract realm of server in ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_server @anchor{shishi_tkt_server} @deftypefun {int} {shishi_tkt_server} (@w{Shishi_tkt * @var{tkt}}, @w{char ** @var{server}}, @w{size_t * @var{serverlen}}) @var{tkt}: input variable with ticket info. @*@var{server}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{serverlen}). @*@var{serverlen}: pointer to length of @var{server} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{server}). @strong{Description:} Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{serverlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_server_p @anchor{shishi_tkt_server_p} @deftypefun {int} {shishi_tkt_server_p} (@w{Shishi_tkt * @var{tkt}}, @w{const char * @var{server}}) @var{tkt}: input variable with ticket info. @*@var{server}: server name of ticket. @strong{Description:} Determine if ticket is for specified server. @strong{Return value:} Returns non-0 iff ticket is for specified server. @end deftypefun @subheading shishi_tkt_flags @anchor{shishi_tkt_flags} @deftypefun {int} {shishi_tkt_flags} (@w{Shishi_tkt * @var{tkt}}, @w{uint32_t * @var{flags}}) @var{tkt}: input variable with ticket info. @*@var{flags}: pointer to output integer with flags. @strong{Description:} Extract flags in ticket (i.e., EncKDCRepPart). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_flags_set @anchor{shishi_tkt_flags_set} @deftypefun {int} {shishi_tkt_flags_set} (@w{Shishi_tkt * @var{tkt}}, @w{uint32_t @var{flags}}) @var{tkt}: input variable with ticket info. @*@var{flags}: integer with flags to store in ticket. @strong{Description:} Set flags in ticket, i.e., both EncTicketPart and EncKDCRepPart. Note that this reset any already existing flags. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_flags_add @anchor{shishi_tkt_flags_add} @deftypefun {int} {shishi_tkt_flags_add} (@w{Shishi_tkt * @var{tkt}}, @w{uint32_t @var{flag}}) @var{tkt}: input variable with ticket info. @*@var{flag}: integer with flags to store in ticket. @strong{Description:} Add ticket flags to Ticket and EncKDCRepPart. This preserves all existing options. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_forwardable_p @anchor{shishi_tkt_forwardable_p} @deftypefun {int} {shishi_tkt_forwardable_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is forwardable. The FORWARDABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket-granting ticket. @strong{Return value:} Returns non-0 iff forwardable flag is set in ticket. @end deftypefun @subheading shishi_tkt_forwarded_p @anchor{shishi_tkt_forwarded_p} @deftypefun {int} {shishi_tkt_forwarded_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is forwarded. The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non-FORWARDED tickets. @strong{Return value:} Returns non-0 iff forwarded flag is set in ticket. @end deftypefun @subheading shishi_tkt_proxiable_p @anchor{shishi_tkt_proxiable_p} @deftypefun {int} {shishi_tkt_proxiable_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is proxiable. The PROXIABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. When set, this flag tells the ticket-granting server that it is OK to issue a new ticket (but not a ticket-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket-granting ticket, and reset when requesting any other ticket. @strong{Return value:} Returns non-0 iff proxiable flag is set in ticket. @end deftypefun @subheading shishi_tkt_proxy_p @anchor{shishi_tkt_proxy_p} @deftypefun {int} {shishi_tkt_proxy_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is proxy ticket. The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail. @strong{Return value:} Returns non-0 iff proxy flag is set in ticket. @end deftypefun @subheading shishi_tkt_may_postdate_p @anchor{shishi_tkt_may_postdate_p} @deftypefun {int} {shishi_tkt_may_postdate_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket may be used to grant postdated tickets. The MAY-POSTDATE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. This flag MUST be set in a ticket-granting ticket in order to issue a postdated ticket based on the presented ticket. It is reset by default; it MAY be requested by a client by setting the ALLOW- POSTDATE option in the KRB_AS_REQ message. This flag does not allow a client to obtain a postdated ticket-granting ticket; postdated ticket-granting tickets can only by obtained by requesting the postdating in the KRB_AS_REQ message. The life (endtime-starttime) of a postdated ticket will be the remaining life of the ticket-granting ticket at the time of the request, unless the RENEWABLE option is also set, in which case it can be the full life (endtime-starttime) of the ticket-granting ticket. The KDC MAY limit how far in the future a ticket may be postdated. @strong{Return value:} Returns non-0 iff may-postdate flag is set in ticket. @end deftypefun @subheading shishi_tkt_postdated_p @anchor{shishi_tkt_postdated_p} @deftypefun {int} {shishi_tkt_postdated_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is postdated. The POSTDATED flag indicates that a ticket has been postdated. The application server can check the authtime field in the ticket to see when the original authentication occurred. Some services MAY choose to reject postdated tickets, or they may only accept them within a certain period after the original authentication. When the KDC issues a POSTDATED ticket, it will also be marked as INVALID, so that the application client MUST present the ticket to the KDC to be validated before use. @strong{Return value:} Returns non-0 iff postdated flag is set in ticket. @end deftypefun @subheading shishi_tkt_invalid_p @anchor{shishi_tkt_invalid_p} @deftypefun {int} {shishi_tkt_invalid_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is invalid. The INVALID flag indicates that a ticket is invalid. Application servers MUST reject tickets which have this flag set. A postdated ticket will be issued in this form. Invalid tickets MUST be validated by the KDC before use, by presenting them to the KDC in a TGS request with the VALIDATE option specified. The KDC will only validate tickets after their starttime has passed. The validation is required so that postdated tickets which have been stolen before their starttime can be rendered permanently invalid (through a hot-list mechanism). @strong{Return value:} Returns non-0 iff invalid flag is set in ticket. @end deftypefun @subheading shishi_tkt_renewable_p @anchor{shishi_tkt_renewable_p} @deftypefun {int} {shishi_tkt_renewable_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is renewable. The RENEWABLE flag in a ticket is normally only interpreted by the ticket-granting service (discussed below in section 3.3). It can usually be ignored by application servers. However, some particularly careful application servers MAY disallow renewable tickets. @strong{Return value:} Returns non-0 iff renewable flag is set in ticket. @end deftypefun @subheading shishi_tkt_initial_p @anchor{shishi_tkt_initial_p} @deftypefun {int} {shishi_tkt_initial_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket was issued using AS exchange. The INITIAL flag indicates that a ticket was issued using the AS protocol, rather than issued based on a ticket-granting ticket. Application servers that want to require the demonstrated knowledge of a client's secret key (e.g. a password-changing program) can insist that this flag be set in any tickets they accept, and thus be assured that the client's key was recently presented to the application client. @strong{Return value:} Returns non-0 iff initial flag is set in ticket. @end deftypefun @subheading shishi_tkt_pre_authent_p @anchor{shishi_tkt_pre_authent_p} @deftypefun {int} {shishi_tkt_pre_authent_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket was pre-authenticated. The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket). @strong{Return value:} Returns non-0 iff pre-authent flag is set in ticket. @end deftypefun @subheading shishi_tkt_hw_authent_p @anchor{shishi_tkt_hw_authent_p} @deftypefun {int} {shishi_tkt_hw_authent_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is authenticated using a hardware token. The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket). @strong{Return value:} Returns non-0 iff hw-authent flag is set in ticket. @end deftypefun @subheading shishi_tkt_transited_policy_checked_p @anchor{shishi_tkt_transited_policy_checked_p} @deftypefun {int} {shishi_tkt_transited_policy_checked_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket has been policy checked for transit. The application server is ultimately responsible for accepting or rejecting authentication and SHOULD check that only suitably trusted KDCs are relied upon to authenticate a principal. The transited field in the ticket identifies which realms (and thus which KDCs) were involved in the authentication process and an application server would normally check this field. If any of these are untrusted to authenticate the indicated client principal (probably determined by a realm-based policy), the authentication attempt MUST be rejected. The presence of trusted KDCs in this list does not provide any guarantee; an untrusted KDC may have fabricated the list. While the end server ultimately decides whether authentication is valid, the KDC for the end server's realm MAY apply a realm specific policy for validating the transited field and accepting credentials for cross-realm authentication. When the KDC applies such checks and accepts such cross-realm authentication it will set the TRANSITED-POLICY-CHECKED flag in the service tickets it issues based on the cross-realm TGT. A client MAY request that the KDCs not check the transited field by setting the DISABLE-TRANSITED-CHECK flag. KDCs are encouraged but not required to honor this flag. Application servers MUST either do the transited-realm checks themselves, or reject cross-realm tickets without TRANSITED-POLICY- CHECKED set. @strong{Return value:} Returns non-0 iff transited-policy-checked flag is set in ticket. @end deftypefun @subheading shishi_tkt_ok_as_delegate_p @anchor{shishi_tkt_ok_as_delegate_p} @deftypefun {int} {shishi_tkt_ok_as_delegate_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is ok as delegated ticket. The copy of the ticket flags in the encrypted part of the KDC reply may have the OK-AS-DELEGATE flag set to indicates to the client that the server specified in the ticket has been determined by policy of the realm to be a suitable recipient of delegation. A client can use the presence of this flag to help it make a decision whether to delegate credentials (either grant a proxy or a forwarded ticket- granting ticket) to this server. It is acceptable to ignore the value of this flag. When setting this flag, an administrator should consider the security and placement of the server on which the service will run, as well as whether the service requires the use of delegated credentials. @strong{Return value:} Returns non-0 iff ok-as-delegate flag is set in ticket. @end deftypefun @subheading shishi_tkt_keytype @anchor{shishi_tkt_keytype} @deftypefun {int} {shishi_tkt_keytype} (@w{Shishi_tkt * @var{tkt}}, @w{int32_t * @var{etype}}) @var{tkt}: input variable with ticket info. @*@var{etype}: pointer to encryption type that is set, see Shishi_etype. @strong{Description:} Extract encryption type of key in ticket (really EncKDCRepPart). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tkt_keytype_fast @anchor{shishi_tkt_keytype_fast} @deftypefun {int32_t} {shishi_tkt_keytype_fast} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Extract encryption type of key in ticket (really EncKDCRepPart). @strong{Return value:} Returns encryption type of session key in ticket (really EncKDCRepPart), or -1 on error. @end deftypefun @subheading shishi_tkt_keytype_p @anchor{shishi_tkt_keytype_p} @deftypefun {int} {shishi_tkt_keytype_p} (@w{Shishi_tkt * @var{tkt}}, @w{int32_t @var{etype}}) @var{tkt}: input variable with ticket info. @*@var{etype}: encryption type, see Shishi_etype. @strong{Description:} Determine if key in ticket (really EncKDCRepPart) is of specified key type (really encryption type). @strong{Return value:} Returns non-0 iff key in ticket is of specified encryption type. @end deftypefun @subheading shishi_tkt_lastreqc @anchor{shishi_tkt_lastreqc} @deftypefun {time_t} {shishi_tkt_lastreqc} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_lrtype @var{lrtype}}) @var{tkt}: input variable with ticket info. @*@var{lrtype}: lastreq type to extract, see Shishi_lrtype. E.g., SHISHI_LRTYPE_LAST_REQUEST. @strong{Description:} Extract C time corresponding to given lastreq type field in the ticket. @strong{Return value:} Returns C time interpretation of the specified lastreq field, or (time_t) -1. @end deftypefun @subheading shishi_tkt_authctime @anchor{shishi_tkt_authctime} @deftypefun {time_t} {shishi_tkt_authctime} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Extract C time corresponding to the authtime field. The field holds the time when the original authentication took place that later resulted in this ticket. @strong{Return value:} Returns C time interpretation of the endtime in ticket. @end deftypefun @subheading shishi_tkt_startctime @anchor{shishi_tkt_startctime} @deftypefun {time_t} {shishi_tkt_startctime} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Extract C time corresponding to the starttime field. The field holds the time where the ticket start to be valid (typically in the past). @strong{Return value:} Returns C time interpretation of the endtime in ticket. @end deftypefun @subheading shishi_tkt_endctime @anchor{shishi_tkt_endctime} @deftypefun {time_t} {shishi_tkt_endctime} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Extract C time corresponding to the endtime field. The field holds the time where the ticket stop being valid. @strong{Return value:} Returns C time interpretation of the endtime in ticket. @end deftypefun @subheading shishi_tkt_renew_tillc @anchor{shishi_tkt_renew_tillc} @deftypefun {time_t} {shishi_tkt_renew_tillc} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Extract C time corresponding to the renew-till field. The field holds the time where the ticket stop being valid for renewal. @strong{Return value:} Returns C time interpretation of the renew-till in ticket. @end deftypefun @subheading shishi_tkt_valid_at_time_p @anchor{shishi_tkt_valid_at_time_p} @deftypefun {int} {shishi_tkt_valid_at_time_p} (@w{Shishi_tkt * @var{tkt}}, @w{time_t @var{now}}) @var{tkt}: input variable with ticket info. @*@var{now}: time to check for. @strong{Description:} Determine if ticket is valid at a specific point in time. @strong{Return value:} Returns non-0 iff ticket is valid (not expired and after starttime) at specified time. @end deftypefun @subheading shishi_tkt_valid_now_p @anchor{shishi_tkt_valid_now_p} @deftypefun {int} {shishi_tkt_valid_now_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket is valid now. @strong{Return value:} Returns 0 iff ticket is invalid (expired or not yet valid). @end deftypefun @subheading shishi_tkt_expired_p @anchor{shishi_tkt_expired_p} @deftypefun {int} {shishi_tkt_expired_p} (@w{Shishi_tkt * @var{tkt}}) @var{tkt}: input variable with ticket info. @strong{Description:} Determine if ticket has expired (i.e., endtime is in the past). @strong{Return value:} Returns 0 iff ticket has expired. @end deftypefun @subheading shishi_tkt_lastreq_pretty_print @anchor{shishi_tkt_lastreq_pretty_print} @deftypefun {void} {shishi_tkt_lastreq_pretty_print} (@w{Shishi_tkt * @var{tkt}}, @w{FILE * @var{fh}}) @var{tkt}: input variable with ticket info. @*@var{fh}: file handle open for writing. @strong{Description:} Print a human readable representation of the various lastreq fields in the ticket (really EncKDCRepPart). @end deftypefun @subheading shishi_tkt_pretty_print @anchor{shishi_tkt_pretty_print} @deftypefun {void} {shishi_tkt_pretty_print} (@w{Shishi_tkt * @var{tkt}}, @w{FILE * @var{fh}}) @var{tkt}: input variable with ticket info. @*@var{fh}: file handle open for writing. @strong{Description:} Print a human readable representation of a ticket to file handle. @end deftypefun shishi-1.0.3/doc/texi/error.c.texi0000644000000000000000000001272114273615520013664 00000000000000@subheading shishi_strerror @anchor{shishi_strerror} @deftypefun {const char *} {shishi_strerror} (@w{int @var{err}}) @var{err}: shishi error code. @strong{Description:} Converts the return code in @var{err} to a human readable string. @strong{Return value:} Returns a pointer to a statically allocated string containing a description of the error with code @var{err}. This string can be used to output a diagnostic message to the user. @end deftypefun @subheading shishi_error @anchor{shishi_error} @deftypefun {const char *} {shishi_error} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Extracts detailed information on the most recently occurred error condition. Note that memory is managed by the Shishi library, so the returned string must not be deallocated. @strong{Return value:} Returns a pointer to a string describing an error. The string must not be deallocated by the caller. @end deftypefun @subheading shishi_error_clear @anchor{shishi_error_clear} @deftypefun {void} {shishi_error_clear} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Clears the internal error description. See @code{shishi_error()} on how to access the error string, and @code{shishi_error_set()} as well as @code{shishi_error_printf()} on how to set the error string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. @end deftypefun @subheading shishi_error_set @anchor{shishi_error_set} @deftypefun {void} {shishi_error_set} (@w{Shishi * @var{handle}}, @w{const char * @var{errstr}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{errstr}: A null-terminated character string holding a description, or @code{NULL} to clear the internal error string. @strong{Description:} Sets the error description to the content of @var{errstr}. The string is copied into the Shishi internal structure, so you can deallocate any string passed to this function. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. @end deftypefun @subheading shishi_error_printf @anchor{shishi_error_printf} @deftypefun {void} {shishi_error_printf} (@w{Shishi * @var{handle}}, @w{const char * @var{format}}, @w{@var{...}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{format}: printf style format string. @*@var{...}: printf style arguments. @strong{Description:} Sets the internal error description to a printf(3) formatted string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same infrastructure for error handling. @end deftypefun @subheading shishi_error_outputtype @anchor{shishi_error_outputtype} @deftypefun {int} {shishi_error_outputtype} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Reports the current output type used in message logging. @strong{Return value:} Returns the output type. @code{SHISHI_OUTPUTTYPE_NULL} means no output. @code{SHISHI_OUTPUTTYPE_STDERR} and @code{SHISHI_OUTPUTTYPE_SYSLOG} direct text to the console, or to the syslog system. @end deftypefun @subheading shishi_error_set_outputtype @anchor{shishi_error_set_outputtype} @deftypefun {void} {shishi_error_set_outputtype} (@w{Shishi * @var{handle}}, @w{int @var{type}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{type}: output type, of enum type @code{Shishi_outputtype}. @strong{Description:} Sets the output type (@code{NULL}, @code{stderr} or @code{syslog}) used for information and warning messages. Intended values are @code{SHISHI_OUTPUTTYPE_NULL}, for no output at all, @code{SHISHI_OUTPUTTYPE_STDERR} for output to the console, and @code{SHISHI_OUTPUTTYPE_SYSLOG} for syslog messaging. The first value covers everything different from the latter two values. @end deftypefun @subheading shishi_info @anchor{shishi_info} @deftypefun {void} {shishi_info} (@w{Shishi * @var{handle}}, @w{const char * @var{format}}, @w{@var{...}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{format}: printf style format string. @*@var{...}: printf style arguments. @strong{Description:} Prints an informational message, composed from the arguments, to the output stream set in @var{handle}. @end deftypefun @subheading shishi_warn @anchor{shishi_warn} @deftypefun {void} {shishi_warn} (@w{Shishi * @var{handle}}, @w{const char * @var{format}}, @w{@var{...}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{format}: printf style format string. @*@var{...}: printf style arguments. @strong{Description:} Prints a warning, composed from the arguments, to the output stream set in @var{handle}. @end deftypefun @subheading shishi_verbose @anchor{shishi_verbose} @deftypefun {void} {shishi_verbose} (@w{Shishi * @var{handle}}, @w{const char * @var{format}}, @w{@var{...}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{format}: printf style format string. @*@var{...}: printf style arguments. @strong{Description:} Prints a diagnostic message, composed from the arguments, to the output stream set in @var{handle}. The current verbosity setting determines whether the message is actually printed, or is suppressed due to low significance. @end deftypefun shishi-1.0.3/doc/texi/cfg.c.texi0000644000000000000000000001553114273615516013301 00000000000000@subheading shishi_cfg @anchor{shishi_cfg} @deftypefun {int} {shishi_cfg} (@w{Shishi * @var{handle}}, @w{const char * @var{option}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{option}: String containing shishi library options. @strong{Description:} Configures the shishi library according to the options given in @var{option}. @strong{Return value:} Returns @code{SHISHI_OK} if @var{option} is valid and configuration was successful. @end deftypefun @subheading shishi_cfg_from_file @anchor{shishi_cfg_from_file} @deftypefun {int} {shishi_cfg_from_file} (@w{Shishi * @var{handle}}, @w{const char * @var{cfg}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{cfg}: Name of configuration file. @strong{Description:} Configures the shishi library using a configuration file located at @var{cfg}. @strong{Return value:} Returns @code{SHISHI_OK} if successful. @end deftypefun @subheading shishi_cfg_print @anchor{shishi_cfg_print} @deftypefun {int} {shishi_cfg_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{fh}: File stream handle opened for writing. @strong{Description:} Prints library configuration status to @var{fh}. This function is mostly intended for debugging purposes. @strong{Return value:} Always returns @code{SHISHI_OK}. @end deftypefun @subheading shishi_cfg_default_systemfile @anchor{shishi_cfg_default_systemfile} @deftypefun {const char *} {shishi_cfg_default_systemfile} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} The system configuration file name is decided at compile time, but is replaced by assigning another file name to the environment variable @env{SHISHI_CONFIG}. This call offers a single interface for determining the file name, to which the library turns for its settings. @strong{Return value:} Returns file name of present system configuration. @end deftypefun @subheading shishi_cfg_default_userdirectory @anchor{shishi_cfg_default_userdirectory} @deftypefun {const char *} {shishi_cfg_default_userdirectory} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} The default user directory, referred to for Shishi ticket cache and other purposes, is normally computed by appending the fixed string "/.shishi" to the content of the environment variable @env{HOME}. This hard coded directory, i.e., "@env{HOME}/.shishi/", can be replaced by whatever complete path is stored in the environment variable @env{SHISHI_HOME}. @strong{Return value:} Returns the user's directory name where the Shishi library will search for configuration files, ticket caches, etcetera. @end deftypefun @subheading shishi_cfg_userdirectory_file @anchor{shishi_cfg_userdirectory_file} @deftypefun {char *} {shishi_cfg_userdirectory_file} (@w{Shishi * @var{handle}}, @w{const char * @var{file}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{file}: Basename of file to use for the user's configuration settings of the library. @strong{Description:} Reports the full path to the file where the Shishi library expects to find the user's library configuration, given that the file itself is named by the parameter @var{file}. The answer is composed from the value of @var{file} and the directory returned by @code{shishi_cfg_default_userdirectory()}. Typically, the returned string would be expanded from "@env{HOME}/.shishi/@var{file}". @strong{Return value:} Returns the absolute filename to the argument @var{file}, relative to the user specific Shishi configuration directory. @end deftypefun @subheading shishi_cfg_default_userfile @anchor{shishi_cfg_default_userfile} @deftypefun {const char *} {shishi_cfg_default_userfile} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} Reports the absolute filename of the default user configuration file. This is typically "@env{HOME}/.shishi/shishi.conf". The value of @env{SHISHI_HOME} will change the directory part, as stated regarding @code{shishi_cfg_default_userdirectory()}. @strong{Return value:} Returns the user's configuration filename. @end deftypefun @subheading shishi_cfg_clientkdcetype @anchor{shishi_cfg_clientkdcetype} @deftypefun {int} {shishi_cfg_clientkdcetype} (@w{Shishi * @var{handle}}, @w{int32_t ** @var{etypes}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{etypes}: Pointer to an array of encryption types. @strong{Description:} Sets the variable @var{etypes} to a static array of preferred encryption types applicable to clients. @strong{Return value:} Returns the number of encryption types referred to by the updated array pointer, or zero, should no type exist. @end deftypefun @subheading shishi_cfg_clientkdcetype_fast @anchor{shishi_cfg_clientkdcetype_fast} @deftypefun {int32_t} {shishi_cfg_clientkdcetype_fast} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} Extracts the default encryption type from the list of preferred encryption types acceptable to the client. When the preferred list is empty, @code{SHISHI_AES256_CTS_HMAC_SHA1_96} is returned as a sensible default type. @strong{Return value:} Returns the default encryption type. @end deftypefun @subheading shishi_cfg_clientkdcetype_set @anchor{shishi_cfg_clientkdcetype_set} @deftypefun {int} {shishi_cfg_clientkdcetype_set} (@w{Shishi * @var{handle}}, @w{char * @var{value}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{value}: String naming acceptable encryption types. @strong{Description:} Sets the configuration option "client-kdc-etypes" from @var{value}. The string contains encryption types, integers or names, separated by comma or by whitespace. An example naming three encryption types could be: aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 @strong{Return value:} Returns @code{SHISHI_OK} if successful, and @code{SHISHI_INVALID_ARGUMENT} otherwise. @end deftypefun @subheading shishi_cfg_authorizationtype_set @anchor{shishi_cfg_authorizationtype_set} @deftypefun {int} {shishi_cfg_authorizationtype_set} (@w{Shishi * @var{handle}}, @w{char * @var{value}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{value}: String listing acceptable authorization types. @strong{Description:} Sets the configuration option "authorization-types" from @var{value}. The string contains authorization types, integers or names, separated by comma or whitespace. As an example, "k5login basic" would first check Kerberos5 authentication based on preset principals, and then fall back to the basic test of identical principal names. @strong{Return value:} Returns @code{SHISHI_OK} if successful, and @code{SHISHI_INVALID_ARGUMENT} otherwise. @end deftypefun shishi-1.0.3/doc/texi/ticket.c.texi0000644000000000000000000001214514273615522014020 00000000000000@subheading shishi_ticket @anchor{shishi_ticket} @deftypefun {Shishi_asn1} {shishi_ticket} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new ASN.1 Ticket, populated with some default values. @strong{Return value:} Returns the ticket or NULL on failure. @end deftypefun @subheading shishi_ticket_realm_get @anchor{shishi_ticket_realm_get} @deftypefun {int} {shishi_ticket_realm_get} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{char ** @var{realm}}, @w{size_t * @var{realmlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: input variable with ticket info. @*@var{realm}: output array with newly allocated name of realm in ticket. @*@var{realmlen}: size of output array. @strong{Description:} Extract realm from ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_realm_set @anchor{shishi_ticket_realm_set} @deftypefun {int} {shishi_ticket_realm_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{const char * @var{realm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: input variable with ticket info. @*@var{realm}: input array with name of realm. @strong{Description:} Set the realm field in the Ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_server @anchor{shishi_ticket_server} @deftypefun {int} {shishi_ticket_server} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{char ** @var{server}}, @w{size_t * @var{serverlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{ticket}: ASN.1 Ticket variable to get server name from. @*@var{server}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{serverlen}). @*@var{serverlen}: pointer to length of @var{server} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{server}). @strong{Description:} Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{serverlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_sname_set @anchor{shishi_ticket_sname_set} @deftypefun {int} {shishi_ticket_sname_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{Shishi_name_type @var{name_type}}, @w{char * @var{sname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: Ticket variable to set server name field in. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{sname}: input array with principal name. @strong{Description:} Set the server name field in the Ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_get_enc_part_etype @anchor{shishi_ticket_get_enc_part_etype} @deftypefun {int} {shishi_ticket_get_enc_part_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{int32_t * @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: Ticket variable to get value from. @*@var{etype}: output variable that holds the value. @strong{Description:} Extract Ticket.enc-part.etype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_set_enc_part @anchor{shishi_ticket_set_enc_part} @deftypefun {int} {shishi_ticket_set_enc_part} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{int32_t @var{etype}}, @w{uint32_t @var{kvno}}, @w{const char * @var{buf}}, @w{size_t @var{buflen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: Ticket to add enc-part field to. @*@var{etype}: encryption type used to encrypt enc-part. @*@var{kvno}: key version number. @*@var{buf}: input array with encrypted enc-part. @*@var{buflen}: size of input array with encrypted enc-part. @strong{Description:} Set the encrypted enc-part field in the Ticket. The encrypted data is usually created by calling @code{shishi_encrypt()} on the DER encoded enc-part. To save time, you may want to use @code{shishi_ticket_add_enc_part()} instead, which calculates the encrypted data and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ticket_add_enc_part @anchor{shishi_ticket_add_enc_part} @deftypefun {int} {shishi_ticket_add_enc_part} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{ticket}}, @w{Shishi_key * @var{key}}, @w{Shishi_asn1 @var{encticketpart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ticket}: Ticket to add enc-part field to. @*@var{key}: key used to encrypt enc-part. @*@var{encticketpart}: EncTicketPart to add. @strong{Description:} Encrypts DER encoded EncTicketPart using key and stores it in the Ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/pki.c.texi0000644000000000000000000001221214273615521013312 00000000000000@subheading shishi_x509ca_default_file_guess @anchor{shishi_x509ca_default_file_guess} @deftypefun {char *} {shishi_x509ca_default_file_guess} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Guesses the default X.509 CA certificate filename; it is @env{HOME}/.shishi/client.ca. @strong{Return value:} Returns default X.509 client certificate filename as a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_x509ca_default_file_set @anchor{shishi_x509ca_default_file_set} @deftypefun {void} {shishi_x509ca_default_file_set} (@w{Shishi * @var{handle}}, @w{const char * @var{x509cafile}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{x509cafile}: string with new default x509 client certificate file name, or NULL to reset to default. @strong{Description:} Set the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_x509ca_default_file @anchor{shishi_x509ca_default_file} @deftypefun {const char *} {shishi_x509ca_default_file} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get filename for default X.509 CA certificate. @strong{Return value:} Returns the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is not a copy, so don't modify or deallocate it. @end deftypefun @subheading shishi_x509cert_default_file_guess @anchor{shishi_x509cert_default_file_guess} @deftypefun {char *} {shishi_x509cert_default_file_guess} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Guesses the default X.509 client certificate filename; it is @env{HOME}/.shishi/client.certs. @strong{Return value:} Returns default X.509 client certificate filename as a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_x509cert_default_file_set @anchor{shishi_x509cert_default_file_set} @deftypefun {void} {shishi_x509cert_default_file_set} (@w{Shishi * @var{handle}}, @w{const char * @var{x509certfile}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{x509certfile}: string with new default x509 client certificate file name, or NULL to reset to default. @strong{Description:} Set the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_x509cert_default_file @anchor{shishi_x509cert_default_file} @deftypefun {const char *} {shishi_x509cert_default_file} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get filename for default X.509 certificate. @strong{Return value:} Returns the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it. @end deftypefun @subheading shishi_x509key_default_file_guess @anchor{shishi_x509key_default_file_guess} @deftypefun {char *} {shishi_x509key_default_file_guess} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Guesses the default X.509 client key filename; it is @env{HOME}/.shishi/client.key. @strong{Return value:} Returns default X.509 client key filename as a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_x509key_default_file_set @anchor{shishi_x509key_default_file_set} @deftypefun {void} {shishi_x509key_default_file_set} (@w{Shishi * @var{handle}}, @w{const char * @var{x509keyfile}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{x509keyfile}: string with new default x509 client key file name, or NULL to reset to default. @strong{Description:} Set the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_x509key_default_file @anchor{shishi_x509key_default_file} @deftypefun {const char *} {shishi_x509key_default_file} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get filename for default X.509 key. @strong{Return value:} Returns the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it. @end deftypefun shishi-1.0.3/doc/texi/kdcrep.c.texi0000644000000000000000000002242214273615520014002 00000000000000@subheading shishi_asrep @anchor{shishi_asrep} @deftypefun {Shishi_asn1} {shishi_asrep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new AS-REP, populated with some default values. @strong{Return value:} Returns the AS-REP or NULL on failure. @end deftypefun @subheading shishi_tgsrep @anchor{shishi_tgsrep} @deftypefun {Shishi_asn1} {shishi_tgsrep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new TGS-REP, populated with some default values. @strong{Return value:} Returns the TGS-REP or NULL on failure. @end deftypefun @subheading shishi_kdcrep_print @anchor{shishi_kdcrep_print} @deftypefun {int} {shishi_kdcrep_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{kdcrep}: KDC-REP to print. @strong{Description:} Print ASCII armored DER encoding of KDC-REP to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_save @anchor{shishi_kdcrep_save} @deftypefun {int} {shishi_kdcrep_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{kdcrep}: KDC-REP to save. @strong{Description:} Print DER encoding of KDC-REP to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_to_file @anchor{shishi_kdcrep_to_file} @deftypefun {int} {shishi_kdcrep_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write KDC-REP to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_parse @anchor{shishi_kdcrep_parse} @deftypefun {int} {shishi_kdcrep_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{kdcrep}: output variable with newly allocated KDC-REP. @strong{Description:} Read ASCII armored DER encoded KDC-REP from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_read @anchor{shishi_kdcrep_read} @deftypefun {int} {shishi_kdcrep_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{kdcrep}: output variable with newly allocated KDC-REP. @strong{Description:} Read DER encoded KDC-REP from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_from_file @anchor{shishi_kdcrep_from_file} @deftypefun {int} {shishi_kdcrep_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{kdcrep}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: output variable with newly allocated KDC-REP. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read KDC-REP from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_crealm_set @anchor{shishi_kdcrep_crealm_set} @deftypefun {int} {shishi_kdcrep_crealm_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{const char * @var{crealm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: Kdcrep variable to set realm field in. @*@var{crealm}: input array with name of realm. @strong{Description:} Set the client realm field in the KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_cname_set @anchor{shishi_kdcrep_cname_set} @deftypefun {int} {shishi_kdcrep_cname_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{cname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: Kdcrep variable to set server name field in. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{cname}: input array with principal name. @strong{Description:} Set the client name field in the KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_client_set @anchor{shishi_kdcrep_client_set} @deftypefun {int} {shishi_kdcrep_client_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{const char * @var{client}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: Kdcrep variable to set server name field in. @*@var{client}: zero-terminated string with principal name on RFC 1964 form. @strong{Description:} Set the client name field in the KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_get_enc_part_etype @anchor{shishi_kdcrep_get_enc_part_etype} @deftypefun {int} {shishi_kdcrep_get_enc_part_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{int32_t * @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP variable to get value from. @*@var{etype}: output variable that holds the value. @strong{Description:} Extract KDC-REP.enc-part.etype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_get_ticket @anchor{shishi_kdcrep_get_ticket} @deftypefun {int} {shishi_kdcrep_get_ticket} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_asn1 * @var{ticket}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP variable to get ticket from. @*@var{ticket}: output variable to hold extracted ticket. @strong{Description:} Extract ticket from KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_set_ticket @anchor{shishi_kdcrep_set_ticket} @deftypefun {int} {shishi_kdcrep_set_ticket} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_asn1 @var{ticket}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP to add ticket field to. @*@var{ticket}: input ticket to copy into KDC-REP ticket field. @strong{Description:} Copy ticket into KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_set_enc_part @anchor{shishi_kdcrep_set_enc_part} @deftypefun {int} {shishi_kdcrep_set_enc_part} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{int32_t @var{etype}}, @w{uint32_t @var{kvno}}, @w{const char * @var{buf}}, @w{size_t @var{buflen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP to add enc-part field to. @*@var{etype}: encryption type used to encrypt enc-part. @*@var{kvno}: key version number. @*@var{buf}: input array with encrypted enc-part. @*@var{buflen}: size of input array with encrypted enc-part. @strong{Description:} Set the encrypted enc-part field in the KDC-REP. The encrypted data is usually created by calling @code{shishi_encrypt()} on the DER encoded enc-part. To save time, you may want to use @code{shishi_kdcrep_add_enc_part()} instead, which calculates the encrypted data and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_add_enc_part @anchor{shishi_kdcrep_add_enc_part} @deftypefun {int} {shishi_kdcrep_add_enc_part} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{Shishi_asn1 @var{enckdcreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP to add enc-part field to. @*@var{key}: key used to encrypt enc-part. @*@var{keyusage}: key usage to use, normally SHISHI_KEYUSAGE_ENCASREPPART, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY or SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY. @*@var{enckdcreppart}: EncKDCRepPart to add. @strong{Description:} Encrypts DER encoded EncKDCRepPart using key and stores it in the KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcrep_clear_padata @anchor{shishi_kdcrep_clear_padata} @deftypefun {int} {shishi_kdcrep_clear_padata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP to remove PA-DATA from. @strong{Description:} Remove the padata field from KDC-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/apreq.c.texi0000644000000000000000000002362614273615516013656 00000000000000@subheading shishi_apreq @anchor{shishi_apreq} @deftypefun {Shishi_asn1} {shishi_apreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new AP-REQ, populated with some default values. @strong{Return value:} Returns the AP-REQ or NULL on failure. @end deftypefun @subheading shishi_apreq_print @anchor{shishi_apreq_print} @deftypefun {int} {shishi_apreq_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{apreq}: AP-REQ to print. @strong{Description:} Print ASCII armored DER encoding of AP-REQ to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_save @anchor{shishi_apreq_save} @deftypefun {int} {shishi_apreq_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{apreq}: AP-REQ to save. @strong{Description:} Save DER encoding of AP-REQ to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_to_file @anchor{shishi_apreq_to_file} @deftypefun {int} {shishi_apreq_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write AP-REQ to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_parse @anchor{shishi_apreq_parse} @deftypefun {int} {shishi_apreq_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{apreq}: output variable with newly allocated AP-REQ. @strong{Description:} Read ASCII armored DER encoded AP-REQ from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_read @anchor{shishi_apreq_read} @deftypefun {int} {shishi_apreq_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{apreq}: output variable with newly allocated AP-REQ. @strong{Description:} Read DER encoded AP-REQ from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_from_file @anchor{shishi_apreq_from_file} @deftypefun {int} {shishi_apreq_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{apreq}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: output variable with newly allocated AP-REQ. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read AP-REQ from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_set_authenticator @anchor{shishi_apreq_set_authenticator} @deftypefun {int} {shishi_apreq_set_authenticator} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{int32_t @var{etype}}, @w{uint32_t @var{kvno}}, @w{const char * @var{buf}}, @w{size_t @var{buflen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ to add authenticator field to. @*@var{etype}: encryption type used to encrypt authenticator. @*@var{kvno}: version of the key used to encrypt authenticator. @*@var{buf}: input array with encrypted authenticator. @*@var{buflen}: size of input array with encrypted authenticator. @strong{Description:} Set the encrypted authenticator field in the AP-REP. The encrypted data is usually created by calling @code{shishi_encrypt()} on the DER encoded authenticator. To save time, you may want to use @code{shishi_apreq_add_authenticator()} instead, which calculates the encrypted data and calls this function in one step. @strong{Return value:} Returns SHISHI_OK on success. @end deftypefun @subheading shishi_apreq_add_authenticator @anchor{shishi_apreq_add_authenticator} @deftypefun {int} {shishi_apreq_add_authenticator} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ to add authenticator field to. @*@var{key}: key to to use for encryption. @*@var{keyusage}: cryptographic key usage value to use in encryption. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Encrypts DER encoded authenticator using key and store it in the AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_set_ticket @anchor{shishi_apreq_set_ticket} @deftypefun {int} {shishi_apreq_set_ticket} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{Shishi_asn1 @var{ticket}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ to add ticket field to. @*@var{ticket}: input ticket to copy into AP-REQ ticket field. @strong{Description:} Copy ticket into AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_options @anchor{shishi_apreq_options} @deftypefun {int} {shishi_apreq_options} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{uint32_t * @var{flags}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ to get options from. @*@var{flags}: Output integer containing options from AP-REQ. @strong{Description:} Extract the AP-Options from AP-REQ into output integer. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_use_session_key_p @anchor{shishi_apreq_use_session_key_p} @deftypefun {int} {shishi_apreq_use_session_key_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ as allocated by @code{shishi_apreq()}. @strong{Description:} Return non-0 iff the "Use session key" option is set in the AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_mutual_required_p @anchor{shishi_apreq_mutual_required_p} @deftypefun {int} {shishi_apreq_mutual_required_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ as allocated by @code{shishi_apreq()}. @strong{Description:} Return non-0 iff the "Mutual required" option is set in the AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_options_set @anchor{shishi_apreq_options_set} @deftypefun {int} {shishi_apreq_options_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{uint32_t @var{options}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ as allocated by @code{shishi_apreq()}. @*@var{options}: Options to set in AP-REQ. @strong{Description:} Set the AP-Options in AP-REQ to indicate integer. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_options_add @anchor{shishi_apreq_options_add} @deftypefun {int} {shishi_apreq_options_add} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{uint32_t @var{option}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ as allocated by @code{shishi_apreq()}. @*@var{option}: Options to add in AP-REQ. @strong{Description:} Add the AP-Options in AP-REQ. Options not set in input parameter @var{option} are preserved in the AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_options_remove @anchor{shishi_apreq_options_remove} @deftypefun {int} {shishi_apreq_options_remove} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{uint32_t @var{option}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ as allocated by @code{shishi_apreq()}. @*@var{option}: Options to remove from AP-REQ. @strong{Description:} Remove the AP-Options from AP-REQ. Options not set in input parameter @var{option} are preserved in the AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_get_authenticator_etype @anchor{shishi_apreq_get_authenticator_etype} @deftypefun {int} {shishi_apreq_get_authenticator_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{int32_t * @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ variable to get value from. @*@var{etype}: output variable that holds the value. @strong{Description:} Extract AP-REQ.authenticator.etype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_apreq_get_ticket @anchor{shishi_apreq_get_ticket} @deftypefun {int} {shishi_apreq_get_ticket} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{apreq}}, @w{Shishi_asn1 * @var{ticket}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{apreq}: AP-REQ variable to get ticket from. @*@var{ticket}: output variable to hold extracted ticket. @strong{Description:} Extract ticket from AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/fileutil.c.texi0000644000000000000000000000000014273615523014336 00000000000000shishi-1.0.3/doc/texi/low-crypto.c.texi0000644000000000000000000002574214273615521014662 00000000000000@subheading shishi_randomize @anchor{shishi_randomize} @deftypefun {int} {shishi_randomize} (@w{Shishi * @var{handle}}, @w{int @var{strong}}, @w{void * @var{data}}, @w{size_t @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{strong}: 0 iff operation should not block, non-0 for very strong randomness. @*@var{data}: output array to be filled with random data. @*@var{datalen}: size of output array. @strong{Description:} Store cryptographically random data of given size in the provided buffer. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_crc @anchor{shishi_crc} @deftypefun {int} {shishi_crc} (@w{Shishi * @var{handle}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{out}[4]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{in}: input character array of data to checksum. @*@var{inlen}: length of input character array of data to checksum. @*@var{out}: newly allocated character array with checksum of data. @strong{Description:} Compute checksum of data using CRC32 modified according to RFC 1510. The @var{out} buffer must be deallocated by the caller. The modifications compared to standard CRC32 is that no initial and final XOR is performed, and that the output is returned in LSB-first order. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_md4 @anchor{shishi_md4} @deftypefun {int} {shishi_md4} (@w{Shishi * @var{handle}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{out}[16]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{in}: input character array of data to hash. @*@var{inlen}: length of input character array of data to hash. @*@var{out}: newly allocated character array with hash of data. @strong{Description:} Compute hash of data using MD4. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_md5 @anchor{shishi_md5} @deftypefun {int} {shishi_md5} (@w{Shishi * @var{handle}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{out}[16]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{in}: input character array of data to hash. @*@var{inlen}: length of input character array of data to hash. @*@var{out}: newly allocated character array with hash of data. @strong{Description:} Compute hash of data using MD5. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_hmac_md5 @anchor{shishi_hmac_md5} @deftypefun {int} {shishi_hmac_md5} (@w{Shishi * @var{handle}}, @w{const char * @var{key}}, @w{size_t @var{keylen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{outhash}[16]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: input character array with key to use. @*@var{keylen}: length of input character array with key to use. @*@var{in}: input character array of data to hash. @*@var{inlen}: length of input character array of data to hash. @*@var{outhash}: newly allocated character array with keyed hash of data. @strong{Description:} Compute keyed checksum of data using HMAC-MD5. The @var{outhash} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_hmac_sha1 @anchor{shishi_hmac_sha1} @deftypefun {int} {shishi_hmac_sha1} (@w{Shishi * @var{handle}}, @w{const char * @var{key}}, @w{size_t @var{keylen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{outhash}[20]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: input character array with key to use. @*@var{keylen}: length of input character array with key to use. @*@var{in}: input character array of data to hash. @*@var{inlen}: length of input character array of data to hash. @*@var{outhash}: newly allocated character array with keyed hash of data. @strong{Description:} Compute keyed checksum of data using HMAC-SHA1. The @var{outhash} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_des_cbc_mac @anchor{shishi_des_cbc_mac} @deftypefun {int} {shishi_des_cbc_mac} (@w{Shishi * @var{handle}}, @w{const char @var{key}[8]}, @w{const char @var{iv}[8]}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{out}[8]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: input character array with key to use. @*@var{iv}: input character array with initialization vector to use, can be NULL. @*@var{in}: input character array of data to hash. @*@var{inlen}: length of input character array of data to hash. @*@var{out}: newly allocated character array with keyed hash of data. @strong{Description:} Computed keyed checksum of data using DES-CBC-MAC. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_arcfour @anchor{shishi_arcfour} @deftypefun {int} {shishi_arcfour} (@w{Shishi * @var{handle}}, @w{int @var{decryptp}}, @w{const char * @var{key}}, @w{size_t @var{keylen}}, @w{const char @var{iv}[258]}, @w{char * @var{ivout}[258]}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{decryptp}: 0 to indicate encryption, non-0 to indicate decryption. @*@var{key}: input character array with key to use. @*@var{keylen}: length of input key array. @*@var{iv}: input character array with initialization vector to use, or NULL. @*@var{ivout}: output character array with updated initialization vector, or NULL. @*@var{in}: input character array of data to encrypt/decrypt. @*@var{inlen}: length of input character array of data to encrypt/decrypt. @*@var{out}: newly allocated character array with encrypted/decrypted data. @strong{Description:} Encrypt or decrypt data (depending on @var{decryptp}) using ARCFOUR. The @var{out} buffer must be deallocated by the caller. The "initialization vector" used here is the concatenation of the sbox and i and j, and is thus always of size 256 + 1 + 1. This is a slight abuse of terminology, and assumes you know what you are doing. Don't use it if you can avoid to. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_des @anchor{shishi_des} @deftypefun {int} {shishi_des} (@w{Shishi * @var{handle}}, @w{int @var{decryptp}}, @w{const char @var{key}[8]}, @w{const char @var{iv}[8]}, @w{char * @var{ivout}[8]}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{decryptp}: 0 to indicate encryption, non-0 to indicate decryption. @*@var{key}: input character array with key to use. @*@var{iv}: input character array with initialization vector to use, or NULL. @*@var{ivout}: output character array with updated initialization vector, or NULL. @*@var{in}: input character array of data to encrypt/decrypt. @*@var{inlen}: length of input character array of data to encrypt/decrypt. @*@var{out}: newly allocated character array with encrypted/decrypted data. @strong{Description:} Encrypt or decrypt data (depending on @var{decryptp}) using DES in CBC mode. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_3des @anchor{shishi_3des} @deftypefun {int} {shishi_3des} (@w{Shishi * @var{handle}}, @w{int @var{decryptp}}, @w{const char @var{key}[8]}, @w{const char @var{iv}[8]}, @w{char * @var{ivout}[8]}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{decryptp}: 0 to indicate encryption, non-0 to indicate decryption. @*@var{key}: input character array with key to use. @*@var{iv}: input character array with initialization vector to use, or NULL. @*@var{ivout}: output character array with updated initialization vector, or NULL. @*@var{in}: input character array of data to encrypt/decrypt. @*@var{inlen}: length of input character array of data to encrypt/decrypt. @*@var{out}: newly allocated character array with encrypted/decrypted data. @strong{Description:} Encrypt or decrypt data (depending on @var{decryptp}) using 3DES in CBC mode. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aes_cts @anchor{shishi_aes_cts} @deftypefun {int} {shishi_aes_cts} (@w{Shishi * @var{handle}}, @w{int @var{decryptp}}, @w{const char * @var{key}}, @w{size_t @var{keylen}}, @w{const char @var{iv}[16]}, @w{char * @var{ivout}[16]}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{decryptp}: 0 to indicate encryption, non-0 to indicate decryption. @*@var{key}: input character array with key to use. @*@var{keylen}: length of input character array with key to use. @*@var{iv}: input character array with initialization vector to use, or NULL. @*@var{ivout}: output character array with updated initialization vector, or NULL. @*@var{in}: input character array of data to encrypt/decrypt. @*@var{inlen}: length of input character array of data to encrypt/decrypt. @*@var{out}: newly allocated character array with encrypted/decrypted data. @strong{Description:} Encrypt or decrypt data (depending on @var{decryptp}) using AES in CBC-CTS mode. The length of the key, @var{keylen}, decide if AES 128 or AES 256 should be used. The @var{out} buffer must be deallocated by the caller. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_pbkdf2_sha1 @anchor{shishi_pbkdf2_sha1} @deftypefun {int} {shishi_pbkdf2_sha1} (@w{Shishi * @var{handle}}, @w{const char * @var{P}}, @w{size_t @var{Plen}}, @w{const char * @var{S}}, @w{size_t @var{Slen}}, @w{unsigned int @var{c}}, @w{unsigned int @var{dkLen}}, @w{char * @var{DK}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{P}: input password, an octet string @*@var{Plen}: length of password, an octet string @*@var{S}: input salt, an octet string @*@var{Slen}: length of salt, an octet string @*@var{c}: iteration count, a positive integer @*@var{dkLen}: intended length in octets of the derived key, a positive integer, at most (2^32 - 1) * hLen. The DK array must have room for this many characters. @*@var{DK}: output derived key, a dkLen-octet string @strong{Description:} Derive key using the PBKDF2 defined in PKCS5. PBKDF2 applies a pseudorandom function to derive keys. The length of the derived key is essentially unbounded. (However, the maximum effective search space for the derived key may be limited by the structure of the underlying pseudorandom function, which is this function is always SHA1.) @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/tktccache.c.texi0000644000000000000000000001245414273615522014471 00000000000000@subheading shishi_tkts_default_ccache_guess @anchor{shishi_tkts_default_ccache_guess} @deftypefun {char *} {shishi_tkts_default_ccache_guess} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Guesses the default ccache ticket filename; it is the contents of the environment variable KRB5CCNAME or /tmp/krb5cc_UID where UID is the user's identity in decimal, as returned by @code{getuid()}. @strong{Return value:} Returns default ccache filename as a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_tkts_default_ccache @anchor{shishi_tkts_default_ccache} @deftypefun {const char *} {shishi_tkts_default_ccache} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get filename of default ccache filename. @strong{Return value:} Returns the default ccache filename used in the library. The string is not a copy, so don't modify or deallocate it. @end deftypefun @subheading shishi_tkts_default_ccache_set @anchor{shishi_tkts_default_ccache_set} @deftypefun {void} {shishi_tkts_default_ccache_set} (@w{Shishi * @var{handle}}, @w{const char * @var{ccache}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{ccache}: string with new default ccache filename, or NULL to reset to default. @strong{Description:} Set the default ccache filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_tkts_add_ccache_mem @anchor{shishi_tkts_add_ccache_mem} @deftypefun {int} {shishi_tkts_add_ccache_mem} (@w{Shishi * @var{handle}}, @w{const char * @var{data}}, @w{size_t @var{len}}, @w{Shishi_tkts * @var{tkts}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{data}: constant memory buffer with ccache of @var{len} size. @*@var{len}: size of memory buffer with ccache data. @*@var{tkts}: allocated key set to store tickets in. @strong{Description:} Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. @strong{Returns:} Returns @code{SHISHI_CCACHE_ERROR} if the data does not represent a valid ccache structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_tkts_add_ccache_file @anchor{shishi_tkts_add_ccache_file} @deftypefun {int} {shishi_tkts_add_ccache_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_tkts * @var{tkts}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: name of file to read. @*@var{tkts}: allocated ticket set to store tickets in. @strong{Description:} Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. @strong{Returns:} Returns @code{SHISHI_IO_ERROR} if the file cannot be read, @code{SHISHI_CCACHE_ERROR} if the data cannot be parsed as a valid ccache structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_tkts_from_ccache_mem @anchor{shishi_tkts_from_ccache_mem} @deftypefun {int} {shishi_tkts_from_ccache_mem} (@w{Shishi * @var{handle}}, @w{const char * @var{data}}, @w{size_t @var{len}}, @w{Shishi_tkts ** @var{outtkts}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{data}: constant memory buffer with ccache of @var{len} size. @*@var{len}: size of memory buffer with ccache data. @*@var{outtkts}: pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes. @strong{Description:} Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. @strong{Returns:} Returns @code{SHISHI_CCACHE_ERROR} if the data does not represent a valid ccache structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_tkts_from_ccache_file @anchor{shishi_tkts_from_ccache_file} @deftypefun {int} {shishi_tkts_from_ccache_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_tkts ** @var{outtkts}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: name of file to read. @*@var{outtkts}: pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes. @strong{Description:} Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. @strong{Returns:} Returns @code{SHISHI_IO_ERROR} if the file cannot be read, @code{SHISHI_CCACHE_ERROR} if the data cannot be parsed as a valid ccache structure, and @code{SHISHI_OK} on success. @end deftypefun shishi-1.0.3/doc/texi/db.c.texi0000644000000000000000000000000014273615523013106 00000000000000shishi-1.0.3/doc/texi/enckdcreppart.c.texi0000644000000000000000000001502214273615517015363 00000000000000@subheading shishi_enckdcreppart_get_key @anchor{shishi_enckdcreppart_get_key} @deftypefun {int} {shishi_enckdcreppart_get_key} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_key ** @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{key}: newly allocated encryption key handle. @strong{Description:} Extract the key to use with the ticket sent in the KDC-REP associated with the EncKDCRepPart input variable. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_key_set @anchor{shishi_enckdcreppart_key_set} @deftypefun {int} {shishi_enckdcreppart_key_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_key * @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{key}: key handle with information to store in enckdcreppart. @strong{Description:} Set the EncKDCRepPart.key field to key type and value of supplied key. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_nonce_set @anchor{shishi_enckdcreppart_nonce_set} @deftypefun {int} {shishi_enckdcreppart_nonce_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{uint32_t @var{nonce}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{nonce}: nonce to set in EncKDCRepPart. @strong{Description:} Set the EncKDCRepPart.nonce field. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_flags_set @anchor{shishi_enckdcreppart_flags_set} @deftypefun {int} {shishi_enckdcreppart_flags_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{int @var{flags}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{flags}: flags to set in EncKDCRepPart. @strong{Description:} Set the EncKDCRepPart.flags field. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_authtime_set @anchor{shishi_enckdcreppart_authtime_set} @deftypefun {int} {shishi_enckdcreppart_authtime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{const char * @var{authtime}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{authtime}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.authtime to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_starttime_set @anchor{shishi_enckdcreppart_starttime_set} @deftypefun {int} {shishi_enckdcreppart_starttime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{const char * @var{starttime}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{starttime}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.starttime to supplied value. Use a NULL value for @var{starttime} to remove the field. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_endtime_set @anchor{shishi_enckdcreppart_endtime_set} @deftypefun {int} {shishi_enckdcreppart_endtime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{const char * @var{endtime}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{endtime}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.endtime to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_renew_till_set @anchor{shishi_enckdcreppart_renew_till_set} @deftypefun {int} {shishi_enckdcreppart_renew_till_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{const char * @var{renew_till}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{renew_till}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.renew-till to supplied value. Use a NULL value for @var{renew_till} to remove the field. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_enckdcreppart_srealm_set @anchor{shishi_enckdcreppart_srealm_set} @deftypefun {int} {shishi_enckdcreppart_srealm_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{const char * @var{srealm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: EncKDCRepPart variable to set realm field in. @*@var{srealm}: input array with name of realm. @strong{Description:} Set the server realm field in the EncKDCRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_enckdcreppart_sname_set @anchor{shishi_enckdcreppart_sname_set} @deftypefun {int} {shishi_enckdcreppart_sname_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_name_type @var{name_type}}, @w{char * @var{sname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: EncKDCRepPart variable to set server name field in. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{sname}: input array with principal name. @strong{Description:} Set the server name field in the EncKDCRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_enckdcreppart_populate_encticketpart @anchor{shishi_enckdcreppart_populate_encticketpart} @deftypefun {int} {shishi_enckdcreppart_populate_encticketpart} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_asn1 @var{encticketpart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{enckdcreppart}: input EncKDCRepPart variable. @*@var{encticketpart}: input EncTicketPart variable. @strong{Description:} Set the flags, authtime, starttime, endtime, renew-till and caddr fields of the EncKDCRepPart to the corresponding values in the EncTicketPart. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun shishi-1.0.3/doc/texi/file.c.texi0000644000000000000000000000000014273615523013440 00000000000000shishi-1.0.3/doc/texi/ap.c.texi0000644000000000000000000006354314273615515013147 00000000000000@subheading shishi_ap @anchor{shishi_ap} @deftypefun {int} {shishi_ap} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @strong{Description:} Create a new AP exchange with a random subkey of the default encryption type from configuration. Note that there is no guarantee that the receiver will understand that key type, you should probably use @code{shishi_ap_etype()} or @code{shishi_ap_nosubkey()} instead. In the future, this function will likely behave as @code{shishi_ap_nosubkey()} and @code{shishi_ap_nosubkey()} will be removed. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_etype @anchor{shishi_ap_etype} @deftypefun {int} {shishi_ap_etype} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{int @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{etype}: encryption type of newly generated random subkey. @strong{Description:} Create a new AP exchange with a random subkey of indicated encryption type. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_nosubkey @anchor{shishi_ap_nosubkey} @deftypefun {int} {shishi_ap_nosubkey} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @strong{Description:} Create a new AP exchange without subkey in authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_done @anchor{shishi_ap_done} @deftypefun {void} {shishi_ap_done} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Deallocate resources associated with AP exchange. This should be called by the application when it no longer need to utilize the AP exchange handle. @end deftypefun @subheading shishi_ap_set_tktoptions @anchor{shishi_ap_set_tktoptions} @deftypefun {int} {shishi_ap_set_tktoptions} (@w{Shishi_ap * @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}) @var{ap}: structure that holds information about AP exchange @*@var{tkt}: ticket to set in AP. @*@var{options}: AP-REQ options to set in AP. @strong{Description:} Set the ticket (see @code{shishi_ap_tkt_set()}) and set the AP-REQ apoptions (see @code{shishi_apreq_options_set()}). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_set_tktoptionsdata @anchor{shishi_ap_set_tktoptionsdata} @deftypefun {int} {shishi_ap_set_tktoptionsdata} (@w{Shishi_ap * @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{const char * @var{data}}, @w{size_t @var{len}}) @var{ap}: structure that holds information about AP exchange @*@var{tkt}: ticket to set in AP. @*@var{options}: AP-REQ options to set in AP. @*@var{data}: input array with data to checksum in Authenticator. @*@var{len}: length of input array with data to checksum in Authenticator. @strong{Description:} Set the ticket (see @code{shishi_ap_tkt_set()}) and set the AP-REQ apoptions (see @code{shishi_apreq_options_set()}) and set the Authenticator checksum data. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_set_tktoptionsraw @anchor{shishi_ap_set_tktoptionsraw} @deftypefun {int} {shishi_ap_set_tktoptionsraw} (@w{Shishi_ap * @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{int32_t @var{cksumtype}}, @w{const char * @var{data}}, @w{size_t @var{len}}) @var{ap}: structure that holds information about AP exchange @*@var{tkt}: ticket to set in AP. @*@var{options}: AP-REQ options to set in AP. @*@var{cksumtype}: authenticator checksum type to set in AP. @*@var{data}: input array with data to store in checksum field in Authenticator. @*@var{len}: length of input array with data to store in checksum field in Authenticator. @strong{Description:} Set the ticket (see @code{shishi_ap_tkt_set()}) and set the AP-REQ apoptions (see @code{shishi_apreq_options_set()}) and set the raw Authenticator checksum data. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_set_tktoptionsasn1usage @anchor{shishi_ap_set_tktoptionsasn1usage} @deftypefun {int} {shishi_ap_set_tktoptionsasn1usage} (@w{Shishi_ap * @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{int @var{authenticatorcksumkeyusage}}, @w{int @var{authenticatorkeyusage}}) @var{ap}: structure that holds information about AP exchange @*@var{tkt}: ticket to set in AP. @*@var{options}: AP-REQ options to set in AP. @*@var{node}: input ASN.1 structure to store as authenticator checksum data. @*@var{field}: field in ASN.1 structure to use. @*@var{authenticatorcksumkeyusage}: key usage for checksum in authenticator. @*@var{authenticatorkeyusage}: key usage for authenticator. @strong{Description:} Set ticket, options and authenticator checksum data using @code{shishi_ap_set_tktoptionsdata()}. The authenticator checksum data is the DER encoding of the ASN.1 field provided. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_tktoptions @anchor{shishi_ap_tktoptions} @deftypefun {int} {shishi_ap_tktoptions} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{tkt}: ticket to set in newly created AP. @*@var{options}: AP-REQ options to set in newly created AP. @strong{Description:} Create a new AP exchange using @code{shishi_ap()}, and set the ticket and AP-REQ apoptions using @code{shishi_ap_set_tktoptions()}. A random session key is added to the authenticator, using the same keytype as the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_tktoptionsdata @anchor{shishi_ap_tktoptionsdata} @deftypefun {int} {shishi_ap_tktoptionsdata} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{const char * @var{data}}, @w{size_t @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{tkt}: ticket to set in newly created AP. @*@var{options}: AP-REQ options to set in newly created AP. @*@var{data}: input array with data to checksum in Authenticator. @*@var{len}: length of input array with data to checksum in Authenticator. @strong{Description:} Create a new AP exchange using @code{shishi_ap()}, and set the ticket, AP-REQ apoptions and the Authenticator checksum data using @code{shishi_ap_set_tktoptionsdata()}. A random session key is added to the authenticator, using the same keytype as the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_tktoptionsraw @anchor{shishi_ap_tktoptionsraw} @deftypefun {int} {shishi_ap_tktoptionsraw} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{int32_t @var{cksumtype}}, @w{const char * @var{data}}, @w{size_t @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{tkt}: ticket to set in newly created AP. @*@var{options}: AP-REQ options to set in newly created AP. @*@var{cksumtype}: authenticator checksum type to set in AP. @*@var{data}: input array with data to store in checksum field in Authenticator. @*@var{len}: length of input array with data to store in checksum field in Authenticator. @strong{Description:} Create a new AP exchange using @code{shishi_ap()}, and set the ticket, AP-REQ apoptions and the raw Authenticator checksum data field using @code{shishi_ap_set_tktoptionsraw()}. A random session key is added to the authenticator, using the same keytype as the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_etype_tktoptionsdata @anchor{shishi_ap_etype_tktoptionsdata} @deftypefun {int} {shishi_ap_etype_tktoptionsdata} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{int32_t @var{etype}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{const char * @var{data}}, @w{size_t @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{etype}: encryption type of newly generated random subkey. @*@var{tkt}: ticket to set in newly created AP. @*@var{options}: AP-REQ options to set in newly created AP. @*@var{data}: input array with data to checksum in Authenticator. @*@var{len}: length of input array with data to checksum in Authenticator. @strong{Description:} Create a new AP exchange using @code{shishi_ap()}, and set the ticket, AP-REQ apoptions and the Authenticator checksum data using @code{shishi_ap_set_tktoptionsdata()}. A random session key is added to the authenticator, using the same keytype as the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_tktoptionsasn1usage @anchor{shishi_ap_tktoptionsasn1usage} @deftypefun {int} {shishi_ap_tktoptionsasn1usage} (@w{Shishi * @var{handle}}, @w{Shishi_ap ** @var{ap}}, @w{Shishi_tkt * @var{tkt}}, @w{int @var{options}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{int @var{authenticatorcksumkeyusage}}, @w{int @var{authenticatorkeyusage}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{ap}: pointer to new structure that holds information about AP exchange @*@var{tkt}: ticket to set in newly created AP. @*@var{options}: AP-REQ options to set in newly created AP. @*@var{node}: input ASN.1 structure to store as authenticator checksum data. @*@var{field}: field in ASN.1 structure to use. @*@var{authenticatorcksumkeyusage}: key usage for checksum in authenticator. @*@var{authenticatorkeyusage}: key usage for authenticator. @strong{Description:} Create a new AP exchange using @code{shishi_ap()}, and set ticket, options and authenticator checksum data from the DER encoding of the ASN.1 field using @code{shishi_ap_set_tktoptionsasn1usage()}. A random session key is added to the authenticator, using the same keytype as the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_tkt @anchor{shishi_ap_tkt} @deftypefun {Shishi_tkt *} {shishi_ap_tkt} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get Ticket from AP exchange. @strong{Return value:} Returns the ticket from the AP exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_ap_tkt_set @anchor{shishi_ap_tkt_set} @deftypefun {void} {shishi_ap_tkt_set} (@w{Shishi_ap * @var{ap}}, @w{Shishi_tkt * @var{tkt}}) @var{ap}: structure that holds information about AP exchange @*@var{tkt}: ticket to store in AP. @strong{Description:} Set the Ticket in the AP exchange. @end deftypefun @subheading shishi_ap_authenticator_cksumdata @anchor{shishi_ap_authenticator_cksumdata} @deftypefun {int} {shishi_ap_authenticator_cksumdata} (@w{Shishi_ap * @var{ap}}, @w{char * @var{out}}, @w{size_t * @var{len}}) @var{ap}: structure that holds information about AP exchange @*@var{out}: output array that holds authenticator checksum data. @*@var{len}: on input, maximum length of output array that holds authenticator checksum data, on output actual length of output array that holds authenticator checksum data. @strong{Description:} Get checksum data from Authenticator. @strong{Return value:} Returns @code{SHISHI_OK} if successful, or @code{SHISHI_TOO_SMALL_BUFFER} if buffer provided was too small (then @var{len} will hold necessary buffer size). @end deftypefun @subheading shishi_ap_authenticator_cksumdata_set @anchor{shishi_ap_authenticator_cksumdata_set} @deftypefun {void} {shishi_ap_authenticator_cksumdata_set} (@w{Shishi_ap * @var{ap}}, @w{const char * @var{authenticatorcksumdata}}, @w{size_t @var{authenticatorcksumdatalen}}) @var{ap}: structure that holds information about AP exchange @*@var{authenticatorcksumdata}: input array with data to compute checksum on and store in Authenticator in AP-REQ. @*@var{authenticatorcksumdatalen}: length of input array with data to compute checksum on and store in Authenticator in AP-REQ. @strong{Description:} Set the Authenticator Checksum Data in the AP exchange. This is the data that will be checksumed, and the checksum placed in the checksum field. It is not the actual checksum field. See also shishi_ap_authenticator_cksumraw_set. @end deftypefun @subheading shishi_ap_authenticator_cksumraw_set @anchor{shishi_ap_authenticator_cksumraw_set} @deftypefun {void} {shishi_ap_authenticator_cksumraw_set} (@w{Shishi_ap * @var{ap}}, @w{int32_t @var{authenticatorcksumtype}}, @w{const char * @var{authenticatorcksumraw}}, @w{size_t @var{authenticatorcksumrawlen}}) @var{ap}: structure that holds information about AP exchange @*@var{authenticatorcksumtype}: authenticator checksum type to set in AP. @*@var{authenticatorcksumraw}: input array with authenticator checksum field value to set in Authenticator in AP-REQ. @*@var{authenticatorcksumrawlen}: length of input array with authenticator checksum field value to set in Authenticator in AP-REQ. @strong{Description:} Set the Authenticator Checksum Data in the AP exchange. This is the actual checksum field, not data to compute checksum on and then store in the checksum field. See also shishi_ap_authenticator_cksumdata_set. @end deftypefun @subheading shishi_ap_authenticator_cksumtype @anchor{shishi_ap_authenticator_cksumtype} @deftypefun {int32_t} {shishi_ap_authenticator_cksumtype} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get the Authenticator Checksum Type in the AP exchange. @strong{Return value:} Return the authenticator checksum type. @end deftypefun @subheading shishi_ap_authenticator_cksumtype_set @anchor{shishi_ap_authenticator_cksumtype_set} @deftypefun {void} {shishi_ap_authenticator_cksumtype_set} (@w{Shishi_ap * @var{ap}}, @w{int32_t @var{cksumtype}}) @var{ap}: structure that holds information about AP exchange @*@var{cksumtype}: authenticator checksum type to set in AP. @strong{Description:} Set the Authenticator Checksum Type in the AP exchange. @end deftypefun @subheading shishi_ap_authenticator @anchor{shishi_ap_authenticator} @deftypefun {Shishi_asn1} {shishi_ap_authenticator} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get ASN.1 Authenticator structure from AP exchange. @strong{Return value:} Returns the Authenticator from the AP exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_ap_authenticator_set @anchor{shishi_ap_authenticator_set} @deftypefun {void} {shishi_ap_authenticator_set} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 @var{authenticator}}) @var{ap}: structure that holds information about AP exchange @*@var{authenticator}: authenticator to store in AP. @strong{Description:} Set the Authenticator in the AP exchange. @end deftypefun @subheading shishi_ap_req @anchor{shishi_ap_req} @deftypefun {Shishi_asn1} {shishi_ap_req} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get ASN.1 AP-REQ structure from AP exchange. @strong{Return value:} Returns the AP-REQ from the AP exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_ap_req_set @anchor{shishi_ap_req_set} @deftypefun {void} {shishi_ap_req_set} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 @var{apreq}}) @var{ap}: structure that holds information about AP exchange @*@var{apreq}: apreq to store in AP. @strong{Description:} Set the AP-REQ in the AP exchange. @end deftypefun @subheading shishi_ap_req_der @anchor{shishi_ap_req_der} @deftypefun {int} {shishi_ap_req_der} (@w{Shishi_ap * @var{ap}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{ap}: structure that holds information about AP exchange @*@var{out}: pointer to output array with der encoding of AP-REQ. @*@var{outlen}: pointer to length of output array with der encoding of AP-REQ. @strong{Description:} Build AP-REQ using @code{shishi_ap_req_build()} and DER encode it. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_req_der_set @anchor{shishi_ap_req_der_set} @deftypefun {int} {shishi_ap_req_der_set} (@w{Shishi_ap * @var{ap}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{ap}: structure that holds information about AP exchange @*@var{der}: input array with DER encoded AP-REQ. @*@var{derlen}: length of input array with DER encoded AP-REQ. @strong{Description:} DER decode AP-REQ and set it AP exchange. If decoding fails, the AP-REQ in the AP exchange is lost. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_ap_req_build @anchor{shishi_ap_req_build} @deftypefun {int} {shishi_ap_req_build} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Checksum data in authenticator and add ticket and authenticator to AP-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_req_decode @anchor{shishi_ap_req_decode} @deftypefun {int} {shishi_ap_req_decode} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Decode ticket in AP-REQ and set the Ticket fields in the AP exchange. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_req_process_keyusage @anchor{shishi_ap_req_process_keyusage} @deftypefun {int} {shishi_ap_req_process_keyusage} (@w{Shishi_ap * @var{ap}}, @w{Shishi_key * @var{key}}, @w{int32_t @var{keyusage}}) @var{ap}: structure that holds information about AP exchange @*@var{key}: cryptographic key used to decrypt ticket in AP-REQ. @*@var{keyusage}: key usage to use during decryption, for normal AP-REQ's this is normally SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR, for AP-REQ's part of TGS-REQ's, this is normally SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR. @strong{Description:} Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_req_process @anchor{shishi_ap_req_process} @deftypefun {int} {shishi_ap_req_process} (@w{Shishi_ap * @var{ap}}, @w{Shishi_key * @var{key}}) @var{ap}: structure that holds information about AP exchange @*@var{key}: cryptographic key used to decrypt ticket in AP-REQ. @strong{Description:} Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_req_asn1 @anchor{shishi_ap_req_asn1} @deftypefun {int} {shishi_ap_req_asn1} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 * @var{apreq}}) @var{ap}: structure that holds information about AP exchange @*@var{apreq}: output AP-REQ variable. @strong{Description:} Build AP-REQ using @code{shishi_ap_req_build()} and return it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_key @anchor{shishi_ap_key} @deftypefun {Shishi_key *} {shishi_ap_key} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Extract the application key from AP. If subkeys are used, it is taken from the Authenticator, otherwise the session key is used. @strong{Return value:} Return application key from AP. @end deftypefun @subheading shishi_ap_rep @anchor{shishi_ap_rep} @deftypefun {Shishi_asn1} {shishi_ap_rep} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get ASN.1 AP-REP structure from AP exchange. @strong{Return value:} Returns the AP-REP from the AP exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_ap_rep_set @anchor{shishi_ap_rep_set} @deftypefun {void} {shishi_ap_rep_set} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 @var{aprep}}) @var{ap}: structure that holds information about AP exchange @*@var{aprep}: aprep to store in AP. @strong{Description:} Set the AP-REP in the AP exchange. @end deftypefun @subheading shishi_ap_rep_der @anchor{shishi_ap_rep_der} @deftypefun {int} {shishi_ap_rep_der} (@w{Shishi_ap * @var{ap}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{ap}: structure that holds information about AP exchange @*@var{out}: output array with newly allocated DER encoding of AP-REP. @*@var{outlen}: length of output array with DER encoding of AP-REP. @strong{Description:} Build AP-REP using @code{shishi_ap_rep_build()} and DER encode it. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_rep_der_set @anchor{shishi_ap_rep_der_set} @deftypefun {int} {shishi_ap_rep_der_set} (@w{Shishi_ap * @var{ap}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{ap}: structure that holds information about AP exchange @*@var{der}: input array with DER encoded AP-REP. @*@var{derlen}: length of input array with DER encoded AP-REP. @strong{Description:} DER decode AP-REP and set it AP exchange. If decoding fails, the AP-REP in the AP exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_ap_rep_build @anchor{shishi_ap_rep_build} @deftypefun {int} {shishi_ap_rep_build} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Checksum data in authenticator and add ticket and authenticator to AP-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_rep_asn1 @anchor{shishi_ap_rep_asn1} @deftypefun {int} {shishi_ap_rep_asn1} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 * @var{aprep}}) @var{ap}: structure that holds information about AP exchange @*@var{aprep}: output AP-REP variable. @strong{Description:} Build AP-REP using @code{shishi_ap_rep_build()} and return it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_ap_rep_verify @anchor{shishi_ap_rep_verify} @deftypefun {int} {shishi_ap_rep_verify} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Verify AP-REP compared to Authenticator. @strong{Return value:} Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. @end deftypefun @subheading shishi_ap_rep_verify_der @anchor{shishi_ap_rep_verify_der} @deftypefun {int} {shishi_ap_rep_verify_der} (@w{Shishi_ap * @var{ap}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{ap}: structure that holds information about AP exchange @*@var{der}: input array with DER encoded AP-REP. @*@var{derlen}: length of input array with DER encoded AP-REP. @strong{Description:} DER decode AP-REP and set it in AP exchange using @code{shishi_ap_rep_der_set()} and verify it using @code{shishi_ap_rep_verify()}. @strong{Return value:} Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. @end deftypefun @subheading shishi_ap_rep_verify_asn1 @anchor{shishi_ap_rep_verify_asn1} @deftypefun {int} {shishi_ap_rep_verify_asn1} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 @var{aprep}}) @var{ap}: structure that holds information about AP exchange @*@var{aprep}: input AP-REP. @strong{Description:} Set the AP-REP in the AP exchange using @code{shishi_ap_rep_set()} and verify it using @code{shishi_ap_rep_verify()}. @strong{Return value:} Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. @end deftypefun @subheading shishi_ap_encapreppart @anchor{shishi_ap_encapreppart} @deftypefun {Shishi_asn1} {shishi_ap_encapreppart} (@w{Shishi_ap * @var{ap}}) @var{ap}: structure that holds information about AP exchange @strong{Description:} Get ASN.1 EncAPRepPart structure from AP exchange. @strong{Return value:} Returns the EncAPREPPart from the AP exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_ap_encapreppart_set @anchor{shishi_ap_encapreppart_set} @deftypefun {void} {shishi_ap_encapreppart_set} (@w{Shishi_ap * @var{ap}}, @w{Shishi_asn1 @var{encapreppart}}) @var{ap}: structure that holds information about AP exchange @*@var{encapreppart}: EncAPRepPart to store in AP. @strong{Description:} Set the EncAPRepPart in the AP exchange. @end deftypefun @subheading shishi_ap_option2string @anchor{shishi_ap_option2string} @deftypefun {const char *} {shishi_ap_option2string} (@w{Shishi_apoptions @var{option}}) @var{option}: enumerated AP-Option type, see Shishi_apoptions. @strong{Description:} Convert AP-Option type to AP-Option name string. Note that @var{option} must be just one of the AP-Option types, it cannot be an binary ORed indicating several AP-Options. @strong{Return value:} Returns static string with name of AP-Option that must not be deallocated, or "unknown" if AP-Option was not understood. @end deftypefun @subheading shishi_ap_string2option @anchor{shishi_ap_string2option} @deftypefun {Shishi_apoptions} {shishi_ap_string2option} (@w{const char * @var{str}}) @var{str}: zero terminated character array with name of AP-Option, e.g. "use-session-key". @strong{Description:} Convert AP-Option name to AP-Option type. @strong{Return value:} Returns enumerated type member corresponding to AP-Option, or 0 if string was not understood. @end deftypefun shishi-1.0.3/doc/texi/safe.c.texi0000644000000000000000000002531714273615522013460 00000000000000@subheading shishi_safe @anchor{shishi_safe} @deftypefun {int} {shishi_safe} (@w{Shishi * @var{handle}}, @w{Shishi_safe ** @var{safe}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: pointer to new structure that holds information about SAFE exchange @strong{Description:} Create a new SAFE exchange. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_done @anchor{shishi_safe_done} @deftypefun {void} {shishi_safe_done} (@w{Shishi_safe * @var{safe}}) @var{safe}: structure that holds information about SAFE exchange @strong{Description:} Deallocate resources associated with SAFE exchange. This should be called by the application when it no longer need to utilize the SAFE exchange handle. @end deftypefun @subheading shishi_safe_key @anchor{shishi_safe_key} @deftypefun {Shishi_key *} {shishi_safe_key} (@w{Shishi_safe * @var{safe}}) @var{safe}: structure that holds information about SAFE exchange @strong{Description:} Get key structured from SAFE exchange. @strong{Return value:} Returns the key used in the SAFE exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_safe_key_set @anchor{shishi_safe_key_set} @deftypefun {void} {shishi_safe_key_set} (@w{Shishi_safe * @var{safe}}, @w{Shishi_key * @var{key}}) @var{safe}: structure that holds information about SAFE exchange @*@var{key}: key to store in SAFE. @strong{Description:} Set the Key in the SAFE exchange. @end deftypefun @subheading shishi_safe_safe @anchor{shishi_safe_safe} @deftypefun {Shishi_asn1} {shishi_safe_safe} (@w{Shishi_safe * @var{safe}}) @var{safe}: structure that holds information about SAFE exchange @strong{Description:} Get ASN.1 SAFE structured from SAFE exchange. @strong{Return value:} Returns the ASN.1 safe in the SAFE exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_safe_safe_set @anchor{shishi_safe_safe_set} @deftypefun {void} {shishi_safe_safe_set} (@w{Shishi_safe * @var{safe}}, @w{Shishi_asn1 @var{asn1safe}}) @var{safe}: structure that holds information about SAFE exchange @*@var{asn1safe}: KRB-SAFE to store in SAFE exchange. @strong{Description:} Set the KRB-SAFE in the SAFE exchange. @end deftypefun @subheading shishi_safe_safe_der @anchor{shishi_safe_safe_der} @deftypefun {int} {shishi_safe_safe_der} (@w{Shishi_safe * @var{safe}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{out}: output array with newly allocated DER encoding of SAFE. @*@var{outlen}: length of output array with DER encoding of SAFE. @strong{Description:} DER encode SAFE structure. Typically @code{shishi_safe_build()} is used to build the SAFE structure first. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_safe_der_set @anchor{shishi_safe_safe_der_set} @deftypefun {int} {shishi_safe_safe_der_set} (@w{Shishi_safe * @var{safe}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{der}: input array with DER encoded KRB-SAFE. @*@var{derlen}: length of input array with DER encoded KRB-SAFE. @strong{Description:} DER decode KRB-SAFE and set it SAFE exchange. If decoding fails, the KRB-SAFE in the SAFE exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_safe_print @anchor{shishi_safe_print} @deftypefun {int} {shishi_safe_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{safe}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{safe}: SAFE to print. @strong{Description:} Print ASCII armored DER encoding of SAFE to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_save @anchor{shishi_safe_save} @deftypefun {int} {shishi_safe_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{safe}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{safe}: SAFE to save. @strong{Description:} Save DER encoding of SAFE to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_to_file @anchor{shishi_safe_to_file} @deftypefun {int} {shishi_safe_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{safe}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: SAFE to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write SAFE to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_parse @anchor{shishi_safe_parse} @deftypefun {int} {shishi_safe_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{safe}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{safe}: output variable with newly allocated SAFE. @strong{Description:} Read ASCII armored DER encoded SAFE from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_read @anchor{shishi_safe_read} @deftypefun {int} {shishi_safe_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{safe}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{safe}: output variable with newly allocated SAFE. @strong{Description:} Read DER encoded SAFE from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_from_file @anchor{shishi_safe_from_file} @deftypefun {int} {shishi_safe_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{safe}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: output variable with newly allocated SAFE. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read SAFE from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_cksum @anchor{shishi_safe_cksum} @deftypefun {int} {shishi_safe_cksum} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{safe}}, @w{int32_t * @var{cksumtype}}, @w{char ** @var{cksum}}, @w{size_t * @var{cksumlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{cksumtype}: output checksum type. @*@var{cksum}: output array with newly allocated checksum data from SAFE. @*@var{cksumlen}: output size of output checksum data buffer. @strong{Description:} Read checksum value from KRB-SAFE. @var{cksum} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_set_cksum @anchor{shishi_safe_set_cksum} @deftypefun {int} {shishi_safe_set_cksum} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{safe}}, @w{int32_t @var{cksumtype}}, @w{const char * @var{cksum}}, @w{size_t @var{cksumlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{cksumtype}: input checksum type to store in SAFE. @*@var{cksum}: input checksum data to store in SAFE. @*@var{cksumlen}: size of input checksum data to store in SAFE. @strong{Description:} Store checksum value in SAFE. A checksum is usually created by calling @code{shishi_checksum()} on some application specific data using the key from the ticket that is being used. To save time, you may want to use @code{shishi_safe_build()} instead, which calculates the checksum and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_user_data @anchor{shishi_safe_user_data} @deftypefun {int} {shishi_safe_user_data} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{safe}}, @w{char ** @var{userdata}}, @w{size_t * @var{userdatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{userdata}: output array with newly allocated user data from KRB-SAFE. @*@var{userdatalen}: output size of output user data buffer. @strong{Description:} Read user data value from KRB-SAFE. @var{userdata} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_set_user_data @anchor{shishi_safe_set_user_data} @deftypefun {int} {shishi_safe_set_user_data} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{safe}}, @w{const char * @var{userdata}}, @w{size_t @var{userdatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{userdata}: input user application to store in SAFE. @*@var{userdatalen}: size of input user application to store in SAFE. @strong{Description:} Set the application data in SAFE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_build @anchor{shishi_safe_build} @deftypefun {int} {shishi_safe_build} (@w{Shishi_safe * @var{safe}}, @w{Shishi_key * @var{key}}) @var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{key}: key for session, used to compute checksum. @strong{Description:} Build checksum and set it in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_safe_verify @anchor{shishi_safe_verify} @deftypefun {int} {shishi_safe_verify} (@w{Shishi_safe * @var{safe}}, @w{Shishi_key * @var{key}}) @var{safe}: safe as allocated by @code{shishi_safe()}. @*@var{key}: key for session, used to verify checksum. @strong{Description:} Verify checksum in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. @strong{Return value:} Returns SHISHI_OK iff successful, SHISHI_SAFE_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_SAFE_VERIFY_FAILED if the actual verification failed. @end deftypefun shishi-1.0.3/doc/texi/crypto-null.c.texi0000644000000000000000000000000014273615517015014 00000000000000shishi-1.0.3/doc/texi/utils.c.texi0000644000000000000000000000000014273615523013661 00000000000000shishi-1.0.3/doc/texi/init.c.texi0000644000000000000000000001236714273615520013504 00000000000000@subheading shishi @anchor{shishi} @deftypefun {Shishi *} {shishi} () @strong{Description:} Initializes the Shishi library, and primes logging so that future warnings and informational messages are printed on @code{stderr}. If this function fails, it may send its own diagnostic errors to @code{stderr}. @strong{Return value:} Returns a Shishi library handle, or @code{NULL} on error. @end deftypefun @subheading shishi_server @anchor{shishi_server} @deftypefun {Shishi *} {shishi_server} () @strong{Description:} Initializes the Shishi library, and primes logging so that future warnings and informational messages are sent to the syslog system. If this function fails, it may print diagnostic errors in the syslog. @strong{Return value:} Returns a Shishi library handle, or @code{NULL} on error. @end deftypefun @subheading shishi_done @anchor{shishi_done} @deftypefun {void} {shishi_done} (@w{Shishi * @var{handle}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Deallocates the Shishi library handle. The handle must not be used in any call to a shishi function after an execution of @code{shishi_done()}. If there is a default @code{tkts}, it is written to the default tkts file. If you do not wish to write the default tkts file, close the default file before calling this function. It is closed with a simple @code{shishi_tkts_done}(@var{handle}, @code{NULL}). For related information, see @code{shishi_tkts_default_file_set()}. @end deftypefun @subheading shishi_init @anchor{shishi_init} @deftypefun {int} {shishi_init} (@w{Shishi ** @var{handle}}) @var{handle}: Pointer to a Shishi handle created by this call. @strong{Description:} Creates a Shishi library handle, using @code{shishi()}, and reads the system configuration file, user configuration file and user tickets from their default locations. The paths to the system configuration file is decided at compile time, and is @env{sysconfdir}/shishi.conf. The user configuration file is @env{HOME}/.shishi/config, and the user ticket file is @env{HOME}/.shishi/ticket. The handle is allocated regardless of return value. The single exception being @code{SHISHI_HANDLE_ERROR}, which indicates a problem in allocating the handle. Other error conditions could arise while reading files. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_init_with_paths @anchor{shishi_init_with_paths} @deftypefun {int} {shishi_init_with_paths} (@w{Shishi ** @var{handle}}, @w{const char * @var{tktsfile}}, @w{const char * @var{systemcfgfile}}, @w{const char * @var{usercfgfile}}) @var{handle}: Pointer to a Shishi handle created by this call. @*@var{tktsfile}: Filename of ticket file, or @code{NULL}. @*@var{systemcfgfile}: Filename of system configuration, or @code{NULL}. @*@var{usercfgfile}: Filename of user configuration, or @code{NULL}. @strong{Description:} Creates a Shishi library handle, using @code{shishi()}, and reads the system configuration file, user configuration file, and user tickets at the specified locations. If any of @var{usercfgfile} or @var{systemcfgfile} is @code{NULL}, the file is read from its default location, which for the system configuration is decided at compile time, and is @env{sysconfdir}/shishi.conf, and for the user configuration it is @env{HOME}/.shishi/config. If the ticket file name is @code{NULL}, a ticket file is not read at all. The handle is allocated regardless of return value. The single exception being @code{SHISHI_HANDLE_ERROR}, which indicates a problem in allocating the handle. Other error conditions could arise while reading files. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_init_server @anchor{shishi_init_server} @deftypefun {int} {shishi_init_server} (@w{Shishi ** @var{handle}}) @var{handle}: Pointer to a Shishi handle created by this call. @strong{Description:} Creates a Shishi library handle, using @code{shishi_server()}, and reads the system configuration file. The path to the system configuration file is decided at compile time, and is @env{sysconfdir}/shishi.conf. The handle is allocated regardless of return value. The single exception being @code{SHISHI_HANDLE_ERROR}, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_init_server_with_paths @anchor{shishi_init_server_with_paths} @deftypefun {int} {shishi_init_server_with_paths} (@w{Shishi ** @var{handle}}, @w{const char * @var{systemcfgfile}}) @var{handle}: Pointer to a Shishi handle created by this call. @*@var{systemcfgfile}: Filename of system configuration, or @code{NULL}. @strong{Description:} Creates a Shishi library handle, using @code{shishi_server()}, and reads the system configuration file from the specified location. The path to the system configuration file is decided at compile time, and is @env{sysconfdir}/shishi.conf. The handle is allocated regardless of return value. The single exception being @code{SHISHI_HANDLE_ERROR}, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun shishi-1.0.3/doc/texi/tkts.c.texi0000644000000000000000000003650214273615523013526 00000000000000@subheading shishi_tkts_default_file_guess @anchor{shishi_tkts_default_file_guess} @deftypefun {char *} {shishi_tkts_default_file_guess} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Guesses the default ticket filename; it is @env{SHISHI_TICKETS}, @env{SHISHI_HOME}/tickets, or @env{HOME}/.shishi/tickets. @strong{Return value:} Returns default tkts filename as a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_tkts_default_file @anchor{shishi_tkts_default_file} @deftypefun {const char *} {shishi_tkts_default_file} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get filename of default ticket set. @strong{Return value:} Returns the default ticket set filename used in the library. The string is not a copy, so don't modify or deallocate it. @end deftypefun @subheading shishi_tkts_default_file_set @anchor{shishi_tkts_default_file_set} @deftypefun {void} {shishi_tkts_default_file_set} (@w{Shishi * @var{handle}}, @w{const char * @var{tktsfile}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{tktsfile}: string with new default tkts file name, or NULL to reset to default. @strong{Description:} Set the default ticket set filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_tkts_default @anchor{shishi_tkts_default} @deftypefun {Shishi_tkts *} {shishi_tkts_default} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get the default ticket set for library handle. @strong{Return value:} Return the handle global ticket set. @end deftypefun @subheading shishi_tkts @anchor{shishi_tkts} @deftypefun {int} {shishi_tkts} (@w{Shishi * @var{handle}}, @w{Shishi_tkts ** @var{tkts}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{tkts}: output pointer to newly allocated tkts handle. @strong{Description:} Get a new ticket set handle. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_done @anchor{shishi_tkts_done} @deftypefun {void} {shishi_tkts_done} (@w{Shishi_tkts ** @var{tkts}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @strong{Description:} Deallocates all resources associated with ticket set. The ticket set handle must not be used in calls to other shishi_tkts_*() functions after this. @end deftypefun @subheading shishi_tkts_size @anchor{shishi_tkts_size} @deftypefun {int} {shishi_tkts_size} (@w{Shishi_tkts * @var{tkts}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @strong{Description:} Get size of ticket set. @strong{Return value:} Returns number of tickets stored in ticket set. @end deftypefun @subheading shishi_tkts_nth @anchor{shishi_tkts_nth} @deftypefun {Shishi_tkt *} {shishi_tkts_nth} (@w{Shishi_tkts * @var{tkts}}, @w{int @var{ticketno}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{ticketno}: integer indicating requested ticket in ticket set. @strong{Get the n:} th ticket in ticket set. @strong{Return value:} Returns a ticket handle to the ticketno:th ticket in the ticket set, or NULL if ticket set is invalid or ticketno is out of bounds. The first ticket is ticketno 0, the second ticketno 1, and so on. @end deftypefun @subheading shishi_tkts_remove @anchor{shishi_tkts_remove} @deftypefun {int} {shishi_tkts_remove} (@w{Shishi_tkts * @var{tkts}}, @w{int @var{ticketno}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{ticketno}: ticket number of ticket in the set to remove. The first ticket is ticket number 0. @strong{Description:} Remove a ticket, indexed by @var{ticketno}, in ticket set. @strong{Return value:} @code{SHISHI_OK} if successful or if @var{ticketno} larger than size of ticket set. @end deftypefun @subheading shishi_tkts_add @anchor{shishi_tkts_add} @deftypefun {int} {shishi_tkts_add} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_tkt * @var{tkt}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{tkt}: ticket to be added to ticket set. @strong{Description:} Add a ticket to the ticket set. Only the pointer is stored, so if you modify @var{tkt}, the ticket in the ticket set will also be modified. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_new @anchor{shishi_tkts_new} @deftypefun {int} {shishi_tkts_new} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_asn1 @var{ticket}}, @w{Shishi_asn1 @var{enckdcreppart}}, @w{Shishi_asn1 @var{kdcrep}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{ticket}: input ticket variable. @*@var{enckdcreppart}: input ticket detail variable. @*@var{kdcrep}: input KDC-REP variable. @strong{Description:} Allocate a new ticket and add it to the ticket set. Note that @var{ticket}, @var{enckdcreppart} and @var{kdcrep} are stored by reference, so you must not de-allocate them before the ticket is removed from the ticket set and de-allocated. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_read @anchor{shishi_tkts_read} @deftypefun {int} {shishi_tkts_read} (@w{Shishi_tkts * @var{tkts}}, @w{FILE * @var{fh}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{fh}: file descriptor to read from. @strong{Description:} Read tickets from file descriptor and add them to the ticket set. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_from_file @anchor{shishi_tkts_from_file} @deftypefun {int} {shishi_tkts_from_file} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{filename}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{filename}: filename to read tickets from. @strong{Description:} Read tickets from file and add them to the ticket set. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_write @anchor{shishi_tkts_write} @deftypefun {int} {shishi_tkts_write} (@w{Shishi_tkts * @var{tkts}}, @w{FILE * @var{fh}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{fh}: file descriptor to write tickets to. @strong{Description:} Write tickets in set to file descriptor. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_expire @anchor{shishi_tkts_expire} @deftypefun {int} {shishi_tkts_expire} (@w{Shishi_tkts * @var{tkts}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @strong{Description:} Remove expired tickets from ticket set. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_to_file @anchor{shishi_tkts_to_file} @deftypefun {int} {shishi_tkts_to_file} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{filename}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{filename}: filename to write tickets to. @strong{Description:} Write tickets in set to file. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_print_for_service @anchor{shishi_tkts_print_for_service} @deftypefun {int} {shishi_tkts_print_for_service} (@w{Shishi_tkts * @var{tkts}}, @w{FILE * @var{fh}}, @w{const char * @var{service}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{fh}: file descriptor to print to. @*@var{service}: service to limit tickets printed to, or NULL. @strong{Description:} Print description of tickets for specified service to file descriptor. If service is NULL, all tickets are printed. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkts_print @anchor{shishi_tkts_print} @deftypefun {int} {shishi_tkts_print} (@w{Shishi_tkts * @var{tkts}}, @w{FILE * @var{fh}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{fh}: file descriptor to print to. @strong{Description:} Print description of all tickets to file descriptor. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_tkt_match_p @anchor{shishi_tkt_match_p} @deftypefun {int} {shishi_tkt_match_p} (@w{Shishi_tkt * @var{tkt}}, @w{Shishi_tkts_hint * @var{hint}}) @var{tkt}: ticket to test hints on. @*@var{hint}: structure with characteristics of ticket to be found. @strong{Description:} Test if a ticket matches specified hints. @strong{Return value:} Returns 0 iff ticket fails to match given criteria. @end deftypefun @subheading shishi_tkts_find @anchor{shishi_tkts_find} @deftypefun {Shishi_tkt *} {shishi_tkts_find} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_tkts_hint * @var{hint}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{hint}: structure with characteristics of ticket to be found. @strong{Description:} Search the ticketset sequentially (from ticket number 0 through all tickets in the set) for a ticket that fits the given characteristics. If a ticket is found, the hint->startpos field is updated to point to the next ticket in the set, so this function can be called repeatedly with the same hint argument in order to find all tickets matching a certain criterium. Note that if tickets are added to, or removed from, the ticketset during a query with the same hint argument, the hint->startpos field must be updated appropriately. @strong{Here is how you would typically use this function:} Shishi_tkts_hint hint; Shishi_tkt tkt; memset(&hint, 0, sizeof(hint)); hint.server = "imap/mail.example.org"; tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint); if (!tkt) printf("No ticket found...\n"); else do_something_with_ticket (tkt); @strong{Return value:} Returns a ticket if found, or NULL if no further matching tickets could be found. @end deftypefun @subheading shishi_tkts_find_for_clientserver @anchor{shishi_tkts_find_for_clientserver} @deftypefun {Shishi_tkt *} {shishi_tkts_find_for_clientserver} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{client}}, @w{const char * @var{server}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{client}: client name to find ticket for. @*@var{server}: server name to find ticket for. @strong{Description:} Short-hand function for searching the ticket set for a ticket for the given client and server. See @code{shishi_tkts_find()}. @strong{Return value:} Returns a ticket if found, or NULL. @end deftypefun @subheading shishi_tkts_find_for_server @anchor{shishi_tkts_find_for_server} @deftypefun {Shishi_tkt *} {shishi_tkts_find_for_server} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{server}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{server}: server name to find ticket for. @strong{Description:} Short-hand function for searching the ticket set for a ticket for the given server using the default client principal. See @code{shishi_tkts_find_for_clientserver()} and @code{shishi_tkts_find()}. @strong{Return value:} Returns a ticket if found, or NULL. @end deftypefun @subheading shishi_tkts_get_tgt @anchor{shishi_tkts_get_tgt} @deftypefun {Shishi_tkt *} {shishi_tkts_get_tgt} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_tkts_hint * @var{hint}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{hint}: structure with characteristics of ticket to begot. @strong{Description:} Get a ticket granting ticket (TGT) suitable for acquiring ticket matching the hint. I.e., get a TGT for the server realm in the hint structure (hint->serverrealm), or the default realm if the serverrealm field is NULL. Can result in AS exchange. Currently this function do not implement cross realm logic. This function is used by @code{shishi_tkts_get()}, which is probably what you really want to use unless you have special needs. @strong{Return value:} Returns a ticket granting ticket if successful, or NULL if this function is unable to acquire on. @end deftypefun @subheading shishi_tkts_get_tgs @anchor{shishi_tkts_get_tgs} @deftypefun {Shishi_tkt *} {shishi_tkts_get_tgs} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_tkts_hint * @var{hint}}, @w{Shishi_tkt * @var{tgt}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{hint}: structure with characteristics of ticket to begot. @*@var{tgt}: ticket granting ticket to use. @strong{Description:} Get a ticket via TGS exchange using specified ticket granting ticket. This function is used by @code{shishi_tkts_get()}, which is probably what you really want to use unless you have special needs. @strong{Return value:} Returns a ticket if successful, or NULL if this function is unable to acquire on. @end deftypefun @subheading shishi_tkts_get @anchor{shishi_tkts_get} @deftypefun {Shishi_tkt *} {shishi_tkts_get} (@w{Shishi_tkts * @var{tkts}}, @w{Shishi_tkts_hint * @var{hint}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{hint}: structure with characteristics of ticket to be found. @strong{Description:} Get a ticket matching given characteristics. This function first looks in the ticket set for a ticket, then tries to find a suitable TGT, possibly via an AS exchange, using @code{shishi_tkts_get_tgt()}, and then uses that TGT in a TGS exchange to get the ticket. Currently this function does not implement cross realm logic. @strong{Return value:} Returns a ticket if found, or NULL if this function is unable to get the ticket. @end deftypefun @subheading shishi_tkts_get_for_clientserver @anchor{shishi_tkts_get_for_clientserver} @deftypefun {Shishi_tkt *} {shishi_tkts_get_for_clientserver} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{client}}, @w{const char * @var{server}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{client}: client name to get ticket for. @*@var{server}: server name to get ticket for. @strong{Description:} Short-hand function for getting a ticket for the given client and server. See @code{shishi_tkts_get()}. @strong{Return value:} Returns a ticket if found, or NULL. @end deftypefun @subheading shishi_tkts_get_for_server @anchor{shishi_tkts_get_for_server} @deftypefun {Shishi_tkt *} {shishi_tkts_get_for_server} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{server}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{server}: server name to get ticket for. @strong{Description:} Short-hand function for getting a ticket to the given server and for the default principal client. See @code{shishi_tkts_get()}. @strong{Return value:} Returns a ticket if found, or NULL. @end deftypefun @subheading shishi_tkts_get_for_localservicepasswd @anchor{shishi_tkts_get_for_localservicepasswd} @deftypefun {Shishi_tkt *} {shishi_tkts_get_for_localservicepasswd} (@w{Shishi_tkts * @var{tkts}}, @w{const char * @var{service}}, @w{const char * @var{passwd}}) @var{tkts}: ticket set handle as allocated by @code{shishi_tkts()}. @*@var{service}: service name to get ticket for. @*@var{passwd}: password for the default client principal. @strong{Description:} Short-hand function for getting a ticket to the given local service, and for the default principal client. The latter's password is given as argument. See @code{shishi_tkts_get()}. @strong{Return value:} Returns a ticket if found, or NULL otherwise. @end deftypefun shishi-1.0.3/doc/texi/diskio.c.texi0000644000000000000000000000301414273615517014016 00000000000000@subheading shishi_key_print @anchor{shishi_key_print} @deftypefun {int} {shishi_key_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{const Shishi_key * @var{key}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: File handle open for writing. @*@var{key}: Key to print. @strong{Description:} Prints an ASCII representation of a key structure @var{key} to the file descriptor @var{fh}. Example output: -----BEGIN SHISHI KEY----- @strong{Keytype:} 18 (aes256-cts-hmac-sha1-96) @strong{Principal:} host/latte.josefsson.org @strong{Realm:} JOSEFSSON.ORG Key-Version-Number: 1 @strong{Timestamp:} 20130420150337Z P1QdeW/oSiag/bTyVEBAY2msiGSTmgLXlopuCKoppDs= -----END SHISHI KEY----- @strong{Return value:} Returns @code{SHISHI_OK} if successful. The only failure is @code{SHISHI_MALLOC_ERROR}. @end deftypefun @subheading shishi_key_to_file @anchor{shishi_key_to_file} @deftypefun {int} {shishi_key_to_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_key * @var{key}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: Name of file, to which the key text is appended. @*@var{key}: Key to print. @strong{Description:} Prints an ASCII representation of a key structure @var{key} to the file @var{filename}. The text is appended if the file exists. See @code{shishi_key_print()} for an example of output text. @strong{Return value:} Returns @code{SHISHI_OK} if successful. Failures are due to I/O issues, or to allocation. @end deftypefun shishi-1.0.3/doc/texi/core.c.texi0000644000000000000000000002636714273615523013501 00000000000000@subheading shisa_enumerate_realms @anchor{shisa_enumerate_realms} @deftypefun {int} {shisa_enumerate_realms} (@w{Shisa * @var{dbh}}, @w{char *** @var{realms}}, @w{size_t * @var{nrealms}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realms}: Returned pointer to a newly allocated array of also allocated and null-terminated UTF-8 strings with realm names. @*@var{nrealms}: Pointer to a number which is updated with the number of just allocated and returned realm strings. @strong{Description:} Extracts a list of all realm names in backend, as null-terminated UTF-8 strings. The caller is responsible for deallocating all strings as well as the array *@var{realms}. @strong{Return value:} Returns @code{SHISA_OK} on success, or an error code. @end deftypefun @subheading shisa_enumerate_principals @anchor{shisa_enumerate_principals} @deftypefun {int} {shisa_enumerate_principals} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{char *** @var{principals}}, @w{size_t * @var{nprincipals}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of realm, as null-terminated UTF-8 string. @*@var{principals}: Returned pointer to newly allocated array of just allocated null-terminated UTF-8 strings with principal names. @*@var{nprincipals}: Pointer to an integer updated with the number of just allocated and returned principal names. @strong{Description:} Extracts a list of all principal names in backend belonging to the realm @var{realm}, as null-terminated UTF-8 strings. The caller is responsible for deallocating all strings and the array *@var{principals}. @strong{Return value:} Returns @code{SHISA_OK} on success, @code{SHISA_NO_REALM} if the specified realm does not exist, or an error code otherwise. @end deftypefun @subheading shisa_principal_find @anchor{shisa_principal_find} @deftypefun {int} {shisa_principal_find} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{Shisa_principal * @var{ph}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of principal to get information about. @*@var{ph}: Pointer to a previously allocated principal structure where information about the principal is to be stored. @strong{Description:} Extracts information about given the PRINCIPAL@@REALM pair selected by @var{principal} and @var{realm}. @strong{Return value:} Returns @code{SHISA_OK} if successful, @code{SHISA_NO_REALM} if the indicated realm does not exist, @code{SHISA_NO_PRINCIPAL} if the indicated principal does not exist, or an error code otherwise. @end deftypefun @subheading shisa_principal_update @anchor{shisa_principal_update} @deftypefun {int} {shisa_principal_update} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_principal * @var{ph}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of principal to get information about. @*@var{ph}: Pointer to an existing principal structure containing information to store in the database. @strong{Description:} Modifies information stored about the given principal PRINCIPAL@@REALM. Note that it is usually a good idea to set in @var{ph} only the fields that are to be updated. It is generally suggested to first call @code{shisa_principal_find()}, to get the current information, then to modify one field and call @code{shisa_principal_update()}. Modifying several values is not recommended in general, as this will 1) overwrite any modifications made to other fields between the two calls (by other processes) and 2) will cause all values to be written again, which may generate more overhead. @strong{Return value:} Returns @code{SHISA_OK} if successful, @code{SHISA_NO_REALM} if the indicated realm does not exist, @code{SHISA_NO_PRINCIPAL} if the indicated principal does not exist, or an error code otherwise. @end deftypefun @subheading shisa_principal_add @anchor{shisa_principal_add} @deftypefun {int} {shisa_principal_add} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_principal * @var{ph}}, @w{const Shisa_key * @var{key}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of principal to add. When set to @code{NULL}, only the realm @var{realm} is created. @*@var{ph}: Pointer to a principal structure with information to store in the database. @*@var{key}: Pointer to a key structure with information to store in the database. @strong{Description:} Inserts the given information into the database for the principal PRINCIPAL@@REALM. In case @var{principal} is @code{NULL}, the parameters @var{ph} and @var{key} are not used, so only the realm is added to the database. @strong{Return value:} Returns @code{SHISA_OK} if the information was successfully added, or an error code otherwise. @end deftypefun @subheading shisa_principal_remove @anchor{shisa_principal_remove} @deftypefun {int} {shisa_principal_remove} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of the principal to remove. Set to @code{NULL}, only the realm @var{realm} is removed. @strong{Description:} Removes all information stored in the database for the given principal PRINCIPAL@@REALM. When @var{principal} is @code{NULL}, then the realm @var{realm} is itself removed, but this can only succeed if the realm is already empty of principals. @strong{Return value:} Returns @code{SHISA_OK} if successful, or an error code. @end deftypefun @subheading shisa_keys_find @anchor{shisa_keys_find} @deftypefun {int} {shisa_keys_find} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_key * @var{hint}}, @w{Shisa_key *** @var{keys}}, @w{size_t * @var{nkeys}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of the principal whose keys are examined. @*@var{hint}: Pointer to a Shisa key structure with hints on matching criteria for relevant keys. @code{NULL} matches all keys. @*@var{keys}: Returned pointer to a newly allocated array of Shisa key structures. @*@var{nkeys}: Pointer to an integer updated with the number of allocated Shisa key structures in *@var{keys}. @strong{Description:} Iterates through the set of keys belonging to PRINCIPAL@@REALM, as selected by @var{principal} and @var{realm}. Then extracts any keys that match the criteria in @var{hint}. Not all elements of @var{hint} need to be filled in. Set only the fields you are interested in. For example, if you want to extract all keys of etype 3, i.e., DES-CBC-MD5, then set the field @var{key}->etype to 3, and all other fields to zero. @strong{Return value:} Returns @code{SHISA_OK} if successful, or an error code. @end deftypefun @subheading shisa_key_add @anchor{shisa_key_add} @deftypefun {int} {shisa_key_add} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_key * @var{key}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of the principal to add a new key for. @*@var{key}: Pointer to a Shisa key structure with the new key. @strong{Description:} Adds a complete key @var{key} to the database entry belonging to the principal PRINCIPAL@@REALM, as set by @var{principal} and @var{realm}. @strong{Return value:} Returns @code{SHISA_OK} if successful, or an error code. @end deftypefun @subheading shisa_key_update @anchor{shisa_key_update} @deftypefun {int} {shisa_key_update} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_key * @var{oldkey}}, @w{const Shisa_key * @var{newkey}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of the principal needing an updated key. @*@var{oldkey}: Pointer to a Shisa key structure giving matching criteria for locating the key to be updated. @*@var{newkey}: Pointer to a complete Shisa key structure, in which all fields are used for the new key. Note that @var{oldkey} normally has far fewer fields filled-in. @strong{Description:} Modifies data about a key stored in the database, a key belonging to the principal selected by @var{principal} and @var{realm}. First @var{oldkey} is used to locate the key to update, as does @code{shisa_keys_find()}. Then the found key is modified to carry whatever information is stored in @var{newkey}. Not all elements of @var{oldkey} need to be filled out, only sufficiently many so as to uniquely identify the desired key. For example, if you want to modify the information stored about a unique key of etype 3, i.e., DES-CBC-MD5, then set the field @var{key}->etype to 3, leaving all other fields as zero. @strong{Return value:} Returns @code{SHISA_OK} on success, @code{SHISA_NO_KEY} if no key could be located, @code{SHISA_MULTIPLE_KEY_MATCH} if more than a single key matched the given criteria, or an error code otherwise. @end deftypefun @subheading shisa_key_remove @anchor{shisa_key_remove} @deftypefun {int} {shisa_key_remove} (@w{Shisa * @var{dbh}}, @w{const char * @var{realm}}, @w{const char * @var{principal}}, @w{const Shisa_key * @var{key}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{realm}: Name of the realm the principal belongs to. @*@var{principal}: Name of the principal whose key is to be removed. @*@var{key}: Pointer to a Shisa key structure with hints on matching criteria for the key to select. @strong{Description:} Removes from the Shisa database a key, matching the hints in @var{key}, for the user PRINCIPAL@@REALM. Not all elements of @var{key} need to be filled in, only those relevant to locate the key uniquely. For example, if you want to remove the only key of etype 3, i.e., DES-CBC-MD5, then set the field @var{key}->etype to 3, and all other fields to zero. @strong{Return value:} Returns @code{SHISA_OK} on success, @code{SHISA_NO_KEY} if no key could be located, @code{SHISA_MULTIPLE_KEY_MATCH} if more than one key matched the given criteria, or an error code otherwise. @end deftypefun @subheading shisa_key_free @anchor{shisa_key_free} @deftypefun {void} {shisa_key_free} (@w{Shisa * @var{dbh}}, @w{Shisa_key * @var{key}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{key}: Pointer to a Shisa key structure to deallocate. @strong{Description:} Deallocates the fields of a Shisa key structure, as well as the structure itself. @end deftypefun @subheading shisa_keys_free @anchor{shisa_keys_free} @deftypefun {void} {shisa_keys_free} (@w{Shisa * @var{dbh}}, @w{Shisa_key ** @var{keys}}, @w{size_t @var{nkeys}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{keys}: Pointer to an array of Shisa key structures. @*@var{nkeys}: Number of key elements in the array @var{keys}. @strong{Description:} Deallocates each key element in the array @var{keys} of Shisa database keys, using repeated calls to @code{shisa_key_free()}. @end deftypefun shishi-1.0.3/doc/texi/asn1.c.texi0000644000000000000000000006610414273615516013406 00000000000000@subheading shishi_asn1_read_inline @anchor{shishi_asn1_read_inline} @deftypefun {int} {shishi_asn1_read_inline} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{char * @var{data}}, @w{size_t * @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 variable to read field from. @*@var{field}: name of field in @var{node} to read. @*@var{data}: pre-allocated output buffer that will hold ASN.1 field data. @*@var{datalen}: on input, maximum size of output buffer, on output, actual size of output buffer. @strong{Description:} Extract data stored in a ASN.1 field into a fixed size buffer allocated by caller. Note that since it is difficult to predict the length of the field, it is often better to use @code{shishi_asn1_read()} instead. @strong{Return value:} Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. @end deftypefun @subheading shishi_asn1_read @anchor{shishi_asn1_read} @deftypefun {int} {shishi_asn1_read} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{char ** @var{data}}, @w{size_t * @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 variable to read field from. @*@var{field}: name of field in @var{node} to read. @*@var{data}: newly allocated output buffer that will hold ASN.1 field data. @*@var{datalen}: actual size of output buffer. @strong{Description:} Extract data stored in a ASN.1 field into a newly allocated buffer. The buffer will always be zero terminated, even though @var{datalen} will not include the added zero. @strong{Return value:} Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. @end deftypefun @subheading shishi_asn1_read_optional @anchor{shishi_asn1_read_optional} @deftypefun {int} {shishi_asn1_read_optional} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{char ** @var{data}}, @w{size_t * @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 variable to read field from. @*@var{field}: name of field in @var{node} to read. @*@var{data}: newly allocated output buffer that will hold ASN.1 field data. @*@var{datalen}: actual size of output buffer. @strong{Description:} Extract data stored in a ASN.1 field into a newly allocated buffer. If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this function set datalen to 0 and succeeds. Can be useful to read ASN.1 fields which are marked OPTIONAL in the grammar, if you want to avoid special error handling in your code. @strong{Return value:} Returns SHISHI_OK if successful, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. @end deftypefun @subheading shishi_asn1_done @anchor{shishi_asn1_done} @deftypefun {void} {shishi_asn1_done} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 node to deallocate. @strong{Description:} Deallocate resources associated with ASN.1 structure. Note that the node must not be used after this call. @end deftypefun @subheading shishi_asn1_pa_enc_ts_enc @anchor{shishi_asn1_pa_enc_ts_enc} @deftypefun {Shishi_asn1} {shishi_asn1_pa_enc_ts_enc} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for PA-ENC-TS-ENC. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_encrypteddata @anchor{shishi_asn1_encrypteddata} @deftypefun {Shishi_asn1} {shishi_asn1_encrypteddata} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for EncryptedData @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_padata @anchor{shishi_asn1_padata} @deftypefun {Shishi_asn1} {shishi_asn1_padata} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for PA-DATA. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_methoddata @anchor{shishi_asn1_methoddata} @deftypefun {Shishi_asn1} {shishi_asn1_methoddata} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for METHOD-DATA. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_etype_info @anchor{shishi_asn1_etype_info} @deftypefun {Shishi_asn1} {shishi_asn1_etype_info} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for ETYPE-INFO. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_etype_info2 @anchor{shishi_asn1_etype_info2} @deftypefun {Shishi_asn1} {shishi_asn1_etype_info2} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for ETYPE-INFO2. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_asreq @anchor{shishi_asn1_asreq} @deftypefun {Shishi_asn1} {shishi_asn1_asreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for AS-REQ. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_asrep @anchor{shishi_asn1_asrep} @deftypefun {Shishi_asn1} {shishi_asn1_asrep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for AS-REP. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_tgsreq @anchor{shishi_asn1_tgsreq} @deftypefun {Shishi_asn1} {shishi_asn1_tgsreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for TGS-REQ. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_tgsrep @anchor{shishi_asn1_tgsrep} @deftypefun {Shishi_asn1} {shishi_asn1_tgsrep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for TGS-REP. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_apreq @anchor{shishi_asn1_apreq} @deftypefun {Shishi_asn1} {shishi_asn1_apreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for AP-REQ. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_aprep @anchor{shishi_asn1_aprep} @deftypefun {Shishi_asn1} {shishi_asn1_aprep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for AP-REP. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_encapreppart @anchor{shishi_asn1_encapreppart} @deftypefun {Shishi_asn1} {shishi_asn1_encapreppart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for AP-REP. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_ticket @anchor{shishi_asn1_ticket} @deftypefun {Shishi_asn1} {shishi_asn1_ticket} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for Ticket. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_encticketpart @anchor{shishi_asn1_encticketpart} @deftypefun {Shishi_asn1} {shishi_asn1_encticketpart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for EncTicketPart. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_authenticator @anchor{shishi_asn1_authenticator} @deftypefun {Shishi_asn1} {shishi_asn1_authenticator} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for Authenticator. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_enckdcreppart @anchor{shishi_asn1_enckdcreppart} @deftypefun {Shishi_asn1} {shishi_asn1_enckdcreppart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for EncKDCRepPart. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_encasreppart @anchor{shishi_asn1_encasreppart} @deftypefun {Shishi_asn1} {shishi_asn1_encasreppart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for EncASRepPart. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_krberror @anchor{shishi_asn1_krberror} @deftypefun {Shishi_asn1} {shishi_asn1_krberror} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for KRB-ERROR. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_krbsafe @anchor{shishi_asn1_krbsafe} @deftypefun {Shishi_asn1} {shishi_asn1_krbsafe} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for KRB-SAFE. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_priv @anchor{shishi_asn1_priv} @deftypefun {Shishi_asn1} {shishi_asn1_priv} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for KRB-PRIV. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_encprivpart @anchor{shishi_asn1_encprivpart} @deftypefun {Shishi_asn1} {shishi_asn1_encprivpart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Create new ASN.1 structure for EncKrbPrivPart. @strong{Return value:} Returns ASN.1 structure. @end deftypefun @subheading shishi_asn1_to_der_field @anchor{shishi_asn1_to_der_field} @deftypefun {int} {shishi_asn1_to_der_field} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{char ** @var{der}}, @w{size_t * @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 data that have field to extract. @*@var{field}: name of field in @var{node} to extract. @*@var{der}: output array that holds DER encoding of @var{field} in @var{node}. @*@var{len}: output variable with length of @var{der} output array. @strong{Description:} Extract newly allocated DER representation of specified ASN.1 field. @strong{Return value:} Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). @end deftypefun @subheading shishi_asn1_to_der @anchor{shishi_asn1_to_der} @deftypefun {int} {shishi_asn1_to_der} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{char ** @var{der}}, @w{size_t * @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 data to convert to DER. @*@var{der}: output array that holds DER encoding of @var{node}. @*@var{len}: output variable with length of @var{der} output array. @strong{Description:} Extract newly allocated DER representation of specified ASN.1 data. @strong{Return value:} Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). @end deftypefun @subheading shishi_asn1_msgtype @anchor{shishi_asn1_msgtype} @deftypefun {Shishi_msgtype} {shishi_asn1_msgtype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 type to get msg type for. @strong{Description:} Determine msg-type of ASN.1 type of a packet. Currently this uses the msg-type field instead of the APPLICATION tag, but this may be changed in the future. @strong{Return value:} Returns msg-type of ASN.1 type, 0 on failure. @end deftypefun @subheading shishi_der_msgtype @anchor{shishi_der_msgtype} @deftypefun {Shishi_msgtype} {shishi_der_msgtype} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Determine msg-type of DER coded data of a packet. @strong{Return value:} Returns msg-type of DER data, 0 on failure. @end deftypefun @subheading shishi_der2asn1 @anchor{shishi_der2asn1} @deftypefun {Shishi_asn1} {shishi_der2asn1} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Convert arbitrary DER data of a packet to a ASN.1 type. @strong{Return value:} Returns newly allocate ASN.1 corresponding to DER data, or @code{NULL} on failure. @end deftypefun @subheading shishi_der2asn1_padata @anchor{shishi_der2asn1_padata} @deftypefun {Shishi_asn1} {shishi_der2asn1_padata} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of PA-DATA and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_methoddata @anchor{shishi_der2asn1_methoddata} @deftypefun {Shishi_asn1} {shishi_der2asn1_methoddata} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of METHOD-DATA and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_etype_info @anchor{shishi_der2asn1_etype_info} @deftypefun {Shishi_asn1} {shishi_der2asn1_etype_info} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of ETYPE-INFO and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_etype_info2 @anchor{shishi_der2asn1_etype_info2} @deftypefun {Shishi_asn1} {shishi_der2asn1_etype_info2} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of ETYPE-INFO2 and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_ticket @anchor{shishi_der2asn1_ticket} @deftypefun {Shishi_asn1} {shishi_der2asn1_ticket} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of Ticket and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_encticketpart @anchor{shishi_der2asn1_encticketpart} @deftypefun {Shishi_asn1} {shishi_der2asn1_encticketpart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncTicketPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_asreq @anchor{shishi_der2asn1_asreq} @deftypefun {Shishi_asn1} {shishi_der2asn1_asreq} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of AS-REQ and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_tgsreq @anchor{shishi_der2asn1_tgsreq} @deftypefun {Shishi_asn1} {shishi_der2asn1_tgsreq} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of TGS-REQ and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_asrep @anchor{shishi_der2asn1_asrep} @deftypefun {Shishi_asn1} {shishi_der2asn1_asrep} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of AS-REP and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_tgsrep @anchor{shishi_der2asn1_tgsrep} @deftypefun {Shishi_asn1} {shishi_der2asn1_tgsrep} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of TGS-REP and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_kdcrep @anchor{shishi_der2asn1_kdcrep} @deftypefun {Shishi_asn1} {shishi_der2asn1_kdcrep} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of KDC-REP and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_encasreppart @anchor{shishi_der2asn1_encasreppart} @deftypefun {Shishi_asn1} {shishi_der2asn1_encasreppart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncASRepPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_enctgsreppart @anchor{shishi_der2asn1_enctgsreppart} @deftypefun {Shishi_asn1} {shishi_der2asn1_enctgsreppart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncTGSRepPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_enckdcreppart @anchor{shishi_der2asn1_enckdcreppart} @deftypefun {Shishi_asn1} {shishi_der2asn1_enckdcreppart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncKDCRepPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_authenticator @anchor{shishi_der2asn1_authenticator} @deftypefun {Shishi_asn1} {shishi_der2asn1_authenticator} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of Authenticator and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_krberror @anchor{shishi_der2asn1_krberror} @deftypefun {Shishi_asn1} {shishi_der2asn1_krberror} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of KRB-ERROR and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_krbsafe @anchor{shishi_der2asn1_krbsafe} @deftypefun {Shishi_asn1} {shishi_der2asn1_krbsafe} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of KRB-SAFE and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_priv @anchor{shishi_der2asn1_priv} @deftypefun {Shishi_asn1} {shishi_der2asn1_priv} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of KRB-PRIV and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_encprivpart @anchor{shishi_der2asn1_encprivpart} @deftypefun {Shishi_asn1} {shishi_der2asn1_encprivpart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncKrbPrivPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_apreq @anchor{shishi_der2asn1_apreq} @deftypefun {Shishi_asn1} {shishi_der2asn1_apreq} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of AP-REQ and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_aprep @anchor{shishi_der2asn1_aprep} @deftypefun {Shishi_asn1} {shishi_der2asn1_aprep} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of AP-REP and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_encapreppart @anchor{shishi_der2asn1_encapreppart} @deftypefun {Shishi_asn1} {shishi_der2asn1_encapreppart} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of EncAPRepPart and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_der2asn1_kdcreq @anchor{shishi_der2asn1_kdcreq} @deftypefun {Shishi_asn1} {shishi_der2asn1_kdcreq} (@w{Shishi * @var{handle}}, @w{const char * @var{der}}, @w{size_t @var{derlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{der}: input character array with DER encoding. @*@var{derlen}: length of input character array with DER encoding. @strong{Description:} Decode DER encoding of AS-REQ, TGS-REQ or KDC-REQ and create a ASN.1 structure. @strong{Return value:} Returns ASN.1 structure corresponding to DER data. @end deftypefun @subheading shishi_asn1_print @anchor{shishi_asn1_print} @deftypefun {void} {shishi_asn1_print} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{FILE * @var{fh}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 data that have field to extract. @*@var{fh}: file descriptor to print to, e.g. stdout. @strong{Description:} Print ASN.1 structure in human readable form, typically for debugging purposes. @end deftypefun shishi-1.0.3/doc/texi/crypto.c.texi0000644000000000000000000010003614273615517014056 00000000000000@subheading shishi_cipher_supported_p @anchor{shishi_cipher_supported_p} @deftypefun {int} {shishi_cipher_supported_p} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Find out if cipher is supported. @strong{Return value:} Return 0 iff cipher is unsupported. @end deftypefun @subheading shishi_cipher_name @anchor{shishi_cipher_name} @deftypefun {const char *} {shishi_cipher_name} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Read humanly readable string for cipher. @strong{Return value:} Return name of encryption type, e.g. "des3-cbc-sha1-kd", as defined in the standards. @end deftypefun @subheading shishi_cipher_blocksize @anchor{shishi_cipher_blocksize} @deftypefun {int} {shishi_cipher_blocksize} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Get block size for cipher. @strong{Return value:} Return block size for encryption type, as defined in the standards. @end deftypefun @subheading shishi_cipher_confoundersize @anchor{shishi_cipher_confoundersize} @deftypefun {int} {shishi_cipher_confoundersize} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Get length of confounder for cipher. @strong{Return value:} Returns the size of the confounder (random data) for encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type). @end deftypefun @subheading shishi_cipher_keylen @anchor{shishi_cipher_keylen} @deftypefun {size_t} {shishi_cipher_keylen} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Get key length for cipher. @strong{Return value:} Return length of key used for the encryption type, as defined in the standards. @end deftypefun @subheading shishi_cipher_randomlen @anchor{shishi_cipher_randomlen} @deftypefun {size_t} {shishi_cipher_randomlen} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Get length of random data for cipher. @strong{Return value:} Return length of random used for the encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type). @end deftypefun @subheading shishi_cipher_defaultcksumtype @anchor{shishi_cipher_defaultcksumtype} @deftypefun {int} {shishi_cipher_defaultcksumtype} (@w{int32_t @var{type}}) @var{type}: encryption type, see Shishi_etype. @strong{Description:} Get the default checksum associated with cipher. @strong{Return value:} Return associated checksum mechanism for the encryption type, as defined in the standards. @end deftypefun @subheading shishi_cipher_parse @anchor{shishi_cipher_parse} @deftypefun {int} {shishi_cipher_parse} (@w{const char * @var{cipher}}) @var{cipher}: name of encryption type, e.g. "des3-cbc-sha1-kd". @strong{Description:} Get cipher number by parsing string. @strong{Return value:} Return encryption type corresponding to a string. @end deftypefun @subheading shishi_checksum_supported_p @anchor{shishi_checksum_supported_p} @deftypefun {int} {shishi_checksum_supported_p} (@w{int32_t @var{type}}) @var{type}: checksum type, see Shishi_cksumtype. @strong{Description:} Find out whether checksum is supported. @strong{Return value:} Return 0 iff checksum is unsupported. @end deftypefun @subheading shishi_checksum_name @anchor{shishi_checksum_name} @deftypefun {const char *} {shishi_checksum_name} (@w{int32_t @var{type}}) @var{type}: checksum type, see Shishi_cksumtype. @strong{Description:} Get name of checksum. @strong{Return value:} Return name of checksum type, e.g. "hmac-sha1-96-aes256", as defined in the standards. @end deftypefun @subheading shishi_checksum_cksumlen @anchor{shishi_checksum_cksumlen} @deftypefun {size_t} {shishi_checksum_cksumlen} (@w{int32_t @var{type}}) @var{type}: checksum type, see Shishi_cksumtype. @strong{Description:} Get length of checksum output. @strong{Return value:} Return length of checksum used for the checksum type, as defined in the standards. @end deftypefun @subheading shishi_checksum_parse @anchor{shishi_checksum_parse} @deftypefun {int} {shishi_checksum_parse} (@w{const char * @var{checksum}}) @var{checksum}: name of checksum type, e.g. "hmac-sha1-96-aes256". @strong{Description:} Get checksum number by parsing a string. @strong{Return value:} Return checksum type, see Shishi_cksumtype, corresponding to a string. @end deftypefun @subheading shishi_string_to_key @anchor{shishi_string_to_key} @deftypefun {int} {shishi_string_to_key} (@w{Shishi * @var{handle}}, @w{int32_t @var{keytype}}, @w{const char * @var{password}}, @w{size_t @var{passwordlen}}, @w{const char * @var{salt}}, @w{size_t @var{saltlen}}, @w{const char * @var{parameter}}, @w{Shishi_key * @var{outkey}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{keytype}: cryptographic encryption type, see Shishi_etype. @*@var{password}: input array with password. @*@var{passwordlen}: length of input array with password. @*@var{salt}: input array with salt. @*@var{saltlen}: length of input array with salt. @*@var{parameter}: input array with opaque encryption type specific information. @*@var{outkey}: allocated key handle that will contain new key. @strong{Description:} Derive key from a string (password) and salt (commonly concatenation of realm and principal) for specified key type, and set the type and value in the given key to the computed values. The parameter value is specific for each keytype, and can be set if the parameter information is not available. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_random_to_key @anchor{shishi_random_to_key} @deftypefun {int} {shishi_random_to_key} (@w{Shishi * @var{handle}}, @w{int32_t @var{keytype}}, @w{const char * @var{rnd}}, @w{size_t @var{rndlen}}, @w{Shishi_key * @var{outkey}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{keytype}: cryptographic encryption type, see Shishi_etype. @*@var{rnd}: input array with random data. @*@var{rndlen}: length of input array with random data. @*@var{outkey}: allocated key handle that will contain new key. @strong{Description:} Derive key from random data for specified key type, and set the type and value in the given key to the computed values. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_checksum @anchor{shishi_checksum} @deftypefun {int} {shishi_checksum} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int @var{cksumtype}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to compute checksum with. @*@var{keyusage}: integer specifying what this key is used for. @*@var{cksumtype}: the checksum algorithm to use. @*@var{in}: input array with data to integrity protect. @*@var{inlen}: size of input array with data to integrity protect. @*@var{out}: output array with newly allocated integrity protected data. @*@var{outlen}: output variable with length of output array with checksum. @strong{Description:} Integrity protect data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_verify @anchor{shishi_verify} @deftypefun {int} {shishi_verify} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int @var{cksumtype}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{const char * @var{cksum}}, @w{size_t @var{cksumlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to verify checksum with. @*@var{keyusage}: integer specifying what this key is used for. @*@var{cksumtype}: the checksum algorithm to use. @*@var{in}: input array with data that was integrity protected. @*@var{inlen}: size of input array with data that was integrity protected. @*@var{cksum}: input array with alleged checksum of data. @*@var{cksumlen}: size of input array with alleged checksum of data. @strong{Description:} Verify checksum of data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt_ivupdate_etype @anchor{shishi_encrypt_ivupdate_etype} @deftypefun {int} {shishi_encrypt_ivupdate_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{char ** @var{ivout}}, @w{size_t * @var{ivoutlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{ivout}: output array with newly allocated updated initialization vector. @*@var{ivoutlen}: size of output array with updated initialization vector. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt_iv_etype @anchor{shishi_encrypt_iv_etype} @deftypefun {int} {shishi_encrypt_iv_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt_etype @anchor{shishi_encrypt_etype} @deftypefun {int} {shishi_encrypt_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt_ivupdate @anchor{shishi_encrypt_ivupdate} @deftypefun {int} {shishi_encrypt_ivupdate} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{char ** @var{ivout}}, @w{size_t * @var{ivoutlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{ivout}: output array with newly allocated updated initialization vector. @*@var{ivoutlen}: size of output array with updated initialization vector. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt_iv @anchor{shishi_encrypt_iv} @deftypefun {int} {shishi_encrypt_iv} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encrypt @anchor{shishi_encrypt} @deftypefun {int} {shishi_encrypt} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to encrypt with. @*@var{keyusage}: integer specifying what this key is encrypting. @*@var{in}: input array with data to encrypt. @*@var{inlen}: size of input array with data to encrypt. @*@var{out}: output array with newly allocated encrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Encrypts data using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt_ivupdate_etype @anchor{shishi_decrypt_ivupdate_etype} @deftypefun {int} {shishi_decrypt_ivupdate_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{char ** @var{ivout}}, @w{size_t * @var{ivoutlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{ivout}: output array with newly allocated updated initialization vector. @*@var{ivoutlen}: size of output array with updated initialization vector. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt_iv_etype @anchor{shishi_decrypt_iv_etype} @deftypefun {int} {shishi_decrypt_iv_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt_etype @anchor{shishi_decrypt_etype} @deftypefun {int} {shishi_decrypt_etype} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int32_t @var{etype}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{etype}: integer specifying what cipher to use. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data as per encryption method using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt_ivupdate @anchor{shishi_decrypt_ivupdate} @deftypefun {int} {shishi_decrypt_ivupdate} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{char ** @var{ivout}}, @w{size_t * @var{ivoutlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{ivout}: output array with newly allocated updated initialization vector. @*@var{ivoutlen}: size of output array with updated initialization vector. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt_iv @anchor{shishi_decrypt_iv} @deftypefun {int} {shishi_decrypt_iv} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{const char * @var{iv}}, @w{size_t @var{ivlen}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{iv}: input array with initialization vector @*@var{ivlen}: size of input array with initialization vector. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_decrypt @anchor{shishi_decrypt} @deftypefun {int} {shishi_decrypt} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: key to decrypt with. @*@var{keyusage}: integer specifying what this key is decrypting. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt. @*@var{out}: output array with newly allocated decrypted data. @*@var{outlen}: output variable with size of newly allocated output array. @strong{Description:} Decrypts data specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_n_fold @anchor{shishi_n_fold} @deftypefun {int} {shishi_n_fold} (@w{Shishi * @var{handle}}, @w{const char * @var{in}}, @w{size_t @var{inlen}}, @w{char * @var{out}}, @w{size_t @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{in}: input array with data to decrypt. @*@var{inlen}: size of input array with data to decrypt ("M"). @*@var{out}: output array with decrypted data. @*@var{outlen}: size of output array ("N"). @strong{Description:} Fold data into a fixed length output array, with the intent to give each input bit approximately equal weight in determining the value of each output bit. The algorithm is from "A Better Key Schedule For DES-like Ciphers" by Uri Blumenthal and Steven M. Bellovin, http://www.research.att.com/~smb/papers/ides.pdf, although the sample vectors provided by the paper are incorrect. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_dr @anchor{shishi_dr} @deftypefun {int} {shishi_dr} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{const char * @var{prfconstant}}, @w{size_t @var{prfconstantlen}}, @w{char * @var{derivedrandom}}, @w{size_t @var{derivedrandomlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: input array with cryptographic key to use. @*@var{prfconstant}: input array with the constant string. @*@var{prfconstantlen}: size of input array with the constant string. @*@var{derivedrandom}: output array with derived random data. @*@var{derivedrandomlen}: size of output array with derived random data. @strong{Description:} Derive "random" data from a key and a constant thusly: DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, SHISHI_ENCRYPT(KEY, PRFCONSTANT)). @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_dk @anchor{shishi_dk} @deftypefun {int} {shishi_dk} (@w{Shishi * @var{handle}}, @w{Shishi_key * @var{key}}, @w{const char * @var{prfconstant}}, @w{size_t @var{prfconstantlen}}, @w{Shishi_key * @var{derivedkey}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{key}: input cryptographic key to use. @*@var{prfconstant}: input array with the constant string. @*@var{prfconstantlen}: size of input array with the constant string. @*@var{derivedkey}: pointer to derived key (allocated by caller). @strong{Derive a key from a key and a constant thusly:} DK(KEY, PRFCONSTANT) = SHISHI_RANDOM-TO-KEY(SHISHI_DR(KEY, PRFCONSTANT)). @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun shishi-1.0.3/doc/texi/netio.c.texi0000644000000000000000000000365214273615521013655 00000000000000@subheading shishi_kdc_sendrecv_hint @anchor{shishi_kdc_sendrecv_hint} @deftypefun {int} {shishi_kdc_sendrecv_hint} (@w{Shishi * @var{handle}}, @w{const char * @var{realm}}, @w{const char * @var{indata}}, @w{size_t @var{inlen}}, @w{char ** @var{outdata}}, @w{size_t * @var{outlen}}, @w{Shishi_tkts_hint * @var{hint}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{realm}: string with realm name. @*@var{indata}: Packet to send to KDC. @*@var{inlen}: Length of @var{indata}. @*@var{outdata}: Newly allocated string with data returned from KDC. @*@var{outlen}: Length of @var{outdata}. @*@var{hint}: a @code{Shishi_tkts_hint} structure with flags. @strong{Description:} Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname. @strong{Returns:} @code{SHISHI_OK} on success, @code{SHISHI_KDC_TIMEOUT} if a timeout was reached, or other errors. @end deftypefun @subheading shishi_kdc_sendrecv @anchor{shishi_kdc_sendrecv} @deftypefun {int} {shishi_kdc_sendrecv} (@w{Shishi * @var{handle}}, @w{const char * @var{realm}}, @w{const char * @var{indata}}, @w{size_t @var{inlen}}, @w{char ** @var{outdata}}, @w{size_t * @var{outlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{realm}: string with realm name. @*@var{indata}: Packet to send to KDC. @*@var{inlen}: Length of @var{indata}. @*@var{outdata}: Newly allocated string with data returned from KDC. @*@var{outlen}: Length of @var{outdata}. @strong{Description:} Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname. @strong{Returns:} @code{SHISHI_OK} on success, @code{SHISHI_KDC_TIMEOUT} if a timeout was reached, or other errors. @end deftypefun shishi-1.0.3/doc/texi/resolv.c.texi0000644000000000000000000000200414273615522014040 00000000000000@subheading shishi_resolv @anchor{shishi_resolv} @deftypefun {Shishi_dns} {shishi_resolv} (@w{const char * @var{zone}}, @w{uint16_t @var{querytype}}) @var{zone}: Domain name of authentication zone, e.g. "EXAMPLE.ORG" @*@var{querytype}: Type of domain data to query for. @strong{Description:} Queries the DNS resolver for data of type @var{querytype} about the domain name @var{zone}. Currently, the types @code{SHISHI_DNS_TXT} and @code{SHISHI_DNS_SRV} are the only supported kinds. After its use, the returned list should be deallocated by a call to @code{shishi_resolv_free()}. @strong{Return value:} Returns a linked list of DNS resource records, or @code{NULL} if the query failed. @end deftypefun @subheading shishi_resolv_free @anchor{shishi_resolv_free} @deftypefun {void} {shishi_resolv_free} (@w{Shishi_dns @var{rrs}}) @var{rrs}: List of DNS RRs as returned by @code{shishi_resolv()}. @strong{Description:} Deallocates a list of DNS resource records returned by a call to @code{shishi_resolv()}. @end deftypefun shishi-1.0.3/doc/texi/aprep.c.texi0000644000000000000000000001001714273615516013643 00000000000000@subheading shishi_aprep @anchor{shishi_aprep} @deftypefun {Shishi_asn1} {shishi_aprep} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new AP-REP, populated with some default values. @strong{Return value:} Returns the authenticator or NULL on failure. @end deftypefun @subheading shishi_aprep_print @anchor{shishi_aprep_print} @deftypefun {int} {shishi_aprep_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{aprep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{aprep}: AP-REP to print. @strong{Description:} Print ASCII armored DER encoding of AP-REP to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_save @anchor{shishi_aprep_save} @deftypefun {int} {shishi_aprep_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{aprep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{aprep}: AP-REP to save. @strong{Description:} Save DER encoding of AP-REP to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_to_file @anchor{shishi_aprep_to_file} @deftypefun {int} {shishi_aprep_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{aprep}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{aprep}: AP-REP to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write AP-REP to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_parse @anchor{shishi_aprep_parse} @deftypefun {int} {shishi_aprep_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{aprep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{aprep}: output variable with newly allocated AP-REP. @strong{Description:} Read ASCII armored DER encoded AP-REP from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_read @anchor{shishi_aprep_read} @deftypefun {int} {shishi_aprep_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{aprep}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{aprep}: output variable with newly allocated AP-REP. @strong{Description:} Read DER encoded AP-REP from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_from_file @anchor{shishi_aprep_from_file} @deftypefun {int} {shishi_aprep_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{aprep}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{aprep}: output variable with newly allocated AP-REP. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read AP-REP from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_aprep_get_enc_part_etype @anchor{shishi_aprep_get_enc_part_etype} @deftypefun {int} {shishi_aprep_get_enc_part_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{aprep}}, @w{int32_t * @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{aprep}: AP-REP variable to get value from. @*@var{etype}: output variable that holds the value. @strong{Description:} Extract AP-REP.enc-part.etype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/version.c.texi0000644000000000000000000000117514273615523014224 00000000000000@subheading shishi_check_version @anchor{shishi_check_version} @deftypefun {const char *} {shishi_check_version} (@w{const char * @var{req_version}}) @var{req_version}: Oldest acceptable version, or @code{NULL}. @strong{Description:} Checks that the installed library version is at least as recent as the one provided in @var{req_version}. The version string is formatted like "1.0.2". Whenever @code{NULL} is passed to this function, the check is suppressed, but the library version is still returned. @strong{Return value:} Returns the active library version, or @code{NULL}, should the running library be too old. @end deftypefun shishi-1.0.3/doc/texi/encticketpart.c.texi0000644000000000000000000001536414273615517015407 00000000000000@subheading shishi_encticketpart_get_key @anchor{shishi_encticketpart_get_key} @deftypefun {int} {shishi_encticketpart_get_key} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{Shishi_key ** @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{key}: newly allocated key. @strong{Description:} Extract the session key in the Ticket. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_key_set @anchor{shishi_encticketpart_key_set} @deftypefun {int} {shishi_encticketpart_key_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{Shishi_key * @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{key}: key handle with information to store in encticketpart. @strong{Description:} Set the EncTicketPart.key field to key type and value of supplied key. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_flags_set @anchor{shishi_encticketpart_flags_set} @deftypefun {int} {shishi_encticketpart_flags_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{int @var{flags}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{flags}: flags to set in encticketpart. @strong{Description:} Set the EncTicketPart.flags to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_crealm_set @anchor{shishi_encticketpart_crealm_set} @deftypefun {int} {shishi_encticketpart_crealm_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{const char * @var{realm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{realm}: input array with name of realm. @strong{Description:} Set the realm field in the KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encticketpart_cname_set @anchor{shishi_encticketpart_cname_set} @deftypefun {int} {shishi_encticketpart_cname_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{principal}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{principal}: input array with principal name. @strong{Description:} Set the client name field in the EncTicketPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encticketpart_transited_set @anchor{shishi_encticketpart_transited_set} @deftypefun {int} {shishi_encticketpart_transited_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{int32_t @var{trtype}}, @w{const char * @var{trdata}}, @w{size_t @var{trdatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{trtype}: transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS. @*@var{trdata}: actual transited realm data. @*@var{trdatalen}: length of actual transited realm data. @strong{Description:} Set the EncTicketPart.transited field to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_authtime_set @anchor{shishi_encticketpart_authtime_set} @deftypefun {int} {shishi_encticketpart_authtime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{const char * @var{authtime}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{authtime}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.authtime to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_endtime_set @anchor{shishi_encticketpart_endtime_set} @deftypefun {int} {shishi_encticketpart_endtime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{const char * @var{endtime}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encticketpart}: input EncTicketPart variable. @*@var{endtime}: character buffer containing a generalized time string. @strong{Description:} Set the EncTicketPart.endtime to supplied value. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encticketpart_client @anchor{shishi_encticketpart_client} @deftypefun {int} {shishi_encticketpart_client} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{encticketpart}: EncTicketPart variable to get client name from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Represent client principal name in EncTicketPart as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encticketpart_clientrealm @anchor{shishi_encticketpart_clientrealm} @deftypefun {int} {shishi_encticketpart_clientrealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encticketpart}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{encticketpart}: EncTicketPart variable to get client name and realm from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name and realm. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Convert cname and realm fields from EncTicketPart to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/err.c.texi0000644000000000000000000000157014273615523013326 00000000000000@subheading shisa_strerror @anchor{shisa_strerror} @deftypefun {const char *} {shisa_strerror} (@w{int @var{err}}) @var{err}: Shisa error code. @strong{Description:} Explains verbally an error status @var{err}. The returned string can be used to compose a diagnostic message of benefit to a user. @strong{Return value:} Returns a pointer to a statically allocated string, containing a description of the error given as input argument. @end deftypefun @subheading shisa_info @anchor{shisa_info} @deftypefun {void} {shisa_info} (@w{Shisa * @var{dbh}}, @w{const char * @var{format}}, @w{@var{...}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{format}: printf style format string. @*@var{...}: printf style arguments. @strong{Description:} Prints an informational message to standard error. The text is composed from the arguments, like printf(3). @end deftypefun shishi-1.0.3/doc/texi/crypto-des.c.texi0000644000000000000000000000000014273615517014615 00000000000000shishi-1.0.3/doc/texi/principal.c.texi0000644000000000000000000001705414273615521014521 00000000000000@subheading shishi_principal_default_guess @anchor{shishi_principal_default_guess} @deftypefun {char *} {shishi_principal_default_guess} () @strong{Description:} Guesses the principal name for the user, looking at environment variables SHISHI_USER, USER and LOGNAME, or if that fails, returns the string "user". @strong{Return value:} Returns guessed default principal for user as a string that has to be deallocated by the caller with @code{free()}. @end deftypefun @subheading shishi_principal_default @anchor{shishi_principal_default} @deftypefun {const char *} {shishi_principal_default} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} The default principal name is the name in the environment variable USER, or LOGNAME for some systems, but it can be overridden by specifying the environment variable SHISHI_USER. @strong{Return value:} Returns the default principal name used by the library. (Not a copy of it, so don't modify or deallocate it.) @end deftypefun @subheading shishi_principal_default_set @anchor{shishi_principal_default_set} @deftypefun {void} {shishi_principal_default_set} (@w{Shishi * @var{handle}}, @w{const char * @var{principal}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{principal}: string with new default principal name, or NULL to reset to default. @strong{Description:} Set the default principal used by the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_parse_name @anchor{shishi_parse_name} @deftypefun {int} {shishi_parse_name} (@w{Shishi * @var{handle}}, @w{const char * @var{name}}, @w{char ** @var{principal}}, @w{char ** @var{realm}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{name}: input principal name string, e.g. imap/mail.gnu.org\@var{GNU}.ORG. @*@var{principal}: newly allocated output string with principal name. @*@var{realm}: newly allocated output string with realm name. @strong{Description:} Split principal name (e.g., "simon\@var{JOSEFSSON}.ORG") into two newly allocated strings, the @var{principal} ("simon"), and the @var{realm} ("JOSEFSSON.ORG"). If there is no realm part in @var{name}, @var{realm} is set to NULL. @strong{Return value:} Returns SHISHI_INVALID_PRINCIPAL_NAME if @var{name} is NULL or ends with the escape character "\", and SHISHI_OK if successful. @end deftypefun @subheading shishi_principal_name @anchor{shishi_principal_name} @deftypefun {int} {shishi_principal_name} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{namenode}}, @w{const char * @var{namefield}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{namenode}: ASN.1 structure with principal in @var{namefield}. @*@var{namefield}: name of field in @var{namenode} containing principal name. @*@var{out}: pointer to newly allocated, null terminated, string containing principal name. May be @code{NULL} (to only populate @var{outlen}). @*@var{outlen}: pointer to length of @var{out} on output, excluding terminating null. May be @code{NULL} (to only populate @var{out}). @strong{Description:} Represent principal name in ASN.1 structure as null-terminated string. The string is allocated by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{outlen} does not include the terminating null. @strong{Return value:} Returns SHISHI_OK if successful. @end deftypefun @subheading shishi_principal_name_realm @anchor{shishi_principal_name_realm} @deftypefun {int} {shishi_principal_name_realm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{namenode}}, @w{const char * @var{namefield}}, @w{Shishi_asn1 @var{realmnode}}, @w{const char * @var{realmfield}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{namenode}: ASN.1 structure with principal name in @var{namefield}. @*@var{namefield}: name of field in @var{namenode} containing principal name. @*@var{realmnode}: ASN.1 structure with principal realm in @var{realmfield}. @*@var{realmfield}: name of field in @var{realmnode} containing principal realm. @*@var{out}: pointer to newly allocated null terminated string containing principal name. May be @code{NULL} (to only populate @var{outlen}). @*@var{outlen}: pointer to length of @var{out} on output, excluding terminating null. May be @code{NULL} (to only populate @var{out}). @strong{Description:} Represent principal name and realm in ASN.1 structure as null-terminated string. The string is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length @var{outlen} does not include the terminating null character. @strong{Return value:} Returns SHISHI_OK if successful. @end deftypefun @subheading shishi_principal_name_set @anchor{shishi_principal_name_set} @deftypefun {int} {shishi_principal_name_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{namenode}}, @w{const char * @var{namefield}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{name}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{namenode}: ASN.1 structure with principal in @var{namefield}. @*@var{namefield}: name of field in @var{namenode} containing principal name. @*@var{name_type}: type of principal, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{name}: null-terminated input array with principal name. @strong{Description:} Set the given principal name field to the given name. @strong{Return value:} Returns SHISHI_OK if successful. @end deftypefun @subheading shishi_principal_set @anchor{shishi_principal_set} @deftypefun {int} {shishi_principal_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{namenode}}, @w{const char * @var{namefield}}, @w{const char * @var{name}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{namenode}: ASN.1 structure with principal in @var{namefield}. @*@var{namefield}: name of field in @var{namenode} containing principal name. @*@var{name}: null-terminated string with principal name in RFC 1964 form. @strong{Description:} Set principal name field in an ASN.1 structure to the given name. @strong{Return value:} Returns SHISHI_OK if successful. @end deftypefun @subheading shishi_derive_default_salt @anchor{shishi_derive_default_salt} @deftypefun {int} {shishi_derive_default_salt} (@w{Shishi * @var{handle}}, @w{const char * @var{name}}, @w{char ** @var{salt}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{name}: principal name of user. @*@var{salt}: output variable with newly allocated salt string. @strong{Description:} Derive the default salt from a principal. The default salt is the concatenation of the decoded realm and the principal. @strong{Return value:} Return SHISHI_OK if successful. @end deftypefun @subheading shishi_server_for_local_service @anchor{shishi_server_for_local_service} @deftypefun {char *} {shishi_server_for_local_service} (@w{Shishi * @var{handle}}, @w{const char * @var{service}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{service}: null terminated string with name of service, e.g., "host". @strong{Description:} Construct a service principal (e.g., "imap/yxa.extuno.com") based on supplied service name (i.e., "imap") and the system's hostname as returned by @code{hostname()} (i.e., "yxa.extundo.com"). The string must be deallocated by the caller. @strong{Return value:} Return newly allocated service name string. @end deftypefun shishi-1.0.3/doc/texi/kdcreq.c.texi0000644000000000000000000007036614273615520014015 00000000000000@subheading shishi_asreq @anchor{shishi_asreq} @deftypefun {Shishi_asn1} {shishi_asreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new AS-REQ, populated with some default values. @strong{Return value:} Returns the AS-REQ or NULL on failure. @end deftypefun @subheading shishi_tgsreq @anchor{shishi_tgsreq} @deftypefun {Shishi_asn1} {shishi_tgsreq} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new TGS-REQ, populated with some default values. @strong{Return value:} Returns the TGS-REQ or NULL on failure. @end deftypefun @subheading shishi_kdcreq_print @anchor{shishi_kdcreq_print} @deftypefun {int} {shishi_kdcreq_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{kdcreq}: KDC-REQ to print. @strong{Description:} Print ASCII armored DER encoding of KDC-REQ to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_save @anchor{shishi_kdcreq_save} @deftypefun {int} {shishi_kdcreq_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{kdcreq}: KDC-REQ to save. @strong{Description:} Print DER encoding of KDC-REQ to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_to_file @anchor{shishi_kdcreq_to_file} @deftypefun {int} {shishi_kdcreq_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write KDC-REQ to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_parse @anchor{shishi_kdcreq_parse} @deftypefun {int} {shishi_kdcreq_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{kdcreq}: output variable with newly allocated KDC-REQ. @strong{Description:} Read ASCII armored DER encoded KDC-REQ from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_read @anchor{shishi_kdcreq_read} @deftypefun {int} {shishi_kdcreq_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{kdcreq}: output variable with newly allocated KDC-REQ. @strong{Description:} Read DER encoded KDC-REQ from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_from_file @anchor{shishi_kdcreq_from_file} @deftypefun {int} {shishi_kdcreq_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{kdcreq}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: output variable with newly allocated KDC-REQ. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read KDC-REQ from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_nonce_set @anchor{shishi_kdcreq_nonce_set} @deftypefun {int} {shishi_kdcreq_nonce_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{uint32_t @var{nonce}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set client name field in. @*@var{nonce}: integer nonce to store in KDC-REQ. @strong{Description:} Store nonce number field in KDC-REQ. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_kdcreq_set_cname @anchor{shishi_kdcreq_set_cname} @deftypefun {int} {shishi_kdcreq_set_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{principal}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set client name field in. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{principal}: input array with principal name. @strong{Description:} Set the client name field in the KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_client @anchor{shishi_kdcreq_client} @deftypefun {int} {shishi_kdcreq_client} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get client name from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Represent client principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_asreq_clientrealm @anchor{shishi_asreq_clientrealm} @deftypefun {int} {shishi_asreq_clientrealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{asreq}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{asreq}: AS-REQ variable to get client name and realm from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name and realm. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_realm @anchor{shishi_kdcreq_realm} @deftypefun {int} {shishi_kdcreq_realm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{char ** @var{realm}}, @w{size_t * @var{realmlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get client name from. @*@var{realm}: pointer to newly allocated zero terminated string containing realm. May be @code{NULL} (to only populate @var{realmlen}). @*@var{realmlen}: pointer to length of @var{realm} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{realmlen}). @strong{Description:} Get realm field in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{realmlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_set_realm @anchor{shishi_kdcreq_set_realm} @deftypefun {int} {shishi_kdcreq_set_realm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{const char * @var{realm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set realm field in. @*@var{realm}: input array with name of realm. @strong{Description:} Set the realm field in the KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_server @anchor{shishi_kdcreq_server} @deftypefun {int} {shishi_kdcreq_server} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{char ** @var{server}}, @w{size_t * @var{serverlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get server name from. @*@var{server}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{serverlen}). @*@var{serverlen}: pointer to length of @var{server} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{server}). @strong{Description:} Represent server principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{serverlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_set_sname @anchor{shishi_kdcreq_set_sname} @deftypefun {int} {shishi_kdcreq_set_sname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{sname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set server name field in. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{sname}: input array with principal name. @strong{Description:} Set the server name field in the KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_till @anchor{shishi_kdcreq_till} @deftypefun {int} {shishi_kdcreq_till} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{char ** @var{till}}, @w{size_t * @var{tilllen}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get endtime from. @*@var{till}: pointer to newly allocated null terminated string containing "till" field with generalized time. May be passed as @code{NULL} to only populate @var{tilllen}. @*@var{tilllen}: pointer to length of @var{till} for output, excluding the terminating null. Set to @code{NULL}, only @var{till} is populated. @strong{Description:} Get "till" field, i.e., "endtime", in KDC-REQ as a null-terminated string. The string is typically 15 characters long and is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length @var{tilllen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_tillc @anchor{shishi_kdcreq_tillc} @deftypefun {time_t} {shishi_kdcreq_tillc} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get "till" field from. @strong{Description:} Extract C time corresponding to the "till" field. @strong{Return value:} Returns the C time interpretation of the "till" field in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_etype @anchor{shishi_kdcreq_etype} @deftypefun {int} {shishi_kdcreq_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{int32_t * @var{etype}}, @w{int @var{netype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get etype field from. @*@var{etype}: output encryption type. @*@var{netype}: element number to return. @strong{Return the netype:} th encryption type from KDC-REQ. The first etype is number 1. @strong{Return value:} Returns SHISHI_OK iff etype successful set. @end deftypefun @subheading shishi_kdcreq_set_etype @anchor{shishi_kdcreq_set_etype} @deftypefun {int} {shishi_kdcreq_set_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{int32_t * @var{etype}}, @w{int @var{netype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set etype field in. @*@var{etype}: input array with encryption types. @*@var{netype}: number of elements in input array with encryption types. @strong{Description:} Set the list of supported or wanted encryption types in the request. The list should be sorted in priority order. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_options @anchor{shishi_kdcreq_options} @deftypefun {int} {shishi_kdcreq_options} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{uint32_t * @var{flags}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @*@var{flags}: pointer to output integer with flags. @strong{Description:} Extract KDC-Options from KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_forwardable_p @anchor{shishi_kdcreq_forwardable_p} @deftypefun {int} {shishi_kdcreq_forwardable_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option forwardable flag is set. The FORWARDABLE option indicates that the ticket to be issued is to have its forwardable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also forwardable. @strong{Return value:} Returns non-0 iff forwardable flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_forwarded_p @anchor{shishi_kdcreq_forwarded_p} @deftypefun {int} {shishi_kdcreq_forwarded_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option forwarded flag is set. The FORWARDED option is only specified in a request to the ticket-granting server and will only be honored if the ticket-granting ticket in the request has its FORWARDABLE bit set. This option indicates that this is a request for forwarding. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. @strong{Return value:} Returns non-0 iff forwarded flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_proxiable_p @anchor{shishi_kdcreq_proxiable_p} @deftypefun {int} {shishi_kdcreq_proxiable_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option proxiable flag is set. The PROXIABLE option indicates that the ticket to be issued is to have its proxiable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also proxiable. @strong{Return value:} Returns non-0 iff proxiable flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_proxy_p @anchor{shishi_kdcreq_proxy_p} @deftypefun {int} {shishi_kdcreq_proxy_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option proxy flag is set. The PROXY option indicates that this is a request for a proxy. This option will only be honored if the ticket-granting ticket in the request has its PROXIABLE bit set. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. @strong{Return value:} Returns non-0 iff proxy flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_allow_postdate_p @anchor{shishi_kdcreq_allow_postdate_p} @deftypefun {int} {shishi_kdcreq_allow_postdate_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option allow-postdate flag is set. The ALLOW-POSTDATE option indicates that the ticket to be issued is to have its MAY-POSTDATE flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based also has its MAY-POSTDATE flag set. @strong{Return value:} Returns non-0 iff allow-postdate flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_postdated_p @anchor{shishi_kdcreq_postdated_p} @deftypefun {int} {shishi_kdcreq_postdated_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option postdated flag is set. The POSTDATED option indicates that this is a request for a postdated ticket. This option will only be honored if the ticket-granting ticket on which it is based has its MAY-POSTDATE flag set. The resulting ticket will also have its INVALID flag set, and that flag may be reset by a subsequent request to the KDC after the starttime in the ticket has been reached. @strong{Return value:} Returns non-0 iff postdated flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_renewable_p @anchor{shishi_kdcreq_renewable_p} @deftypefun {int} {shishi_kdcreq_renewable_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option renewable flag is set. The RENEWABLE option indicates that the ticket to be issued is to have its RENEWABLE flag set. It may only be set on the initial request, or when the ticket-granting ticket on which the request is based is also renewable. If this option is requested, then the rtime field in the request contains the desired absolute expiration time for the ticket. @strong{Return value:} Returns non-0 iff renewable flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_disable_transited_check_p @anchor{shishi_kdcreq_disable_transited_check_p} @deftypefun {int} {shishi_kdcreq_disable_transited_check_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option disable-transited-check flag is set. By default the KDC will check the transited field of a ticket-granting-ticket against the policy of the local realm before it will issue derivative tickets based on the ticket-granting ticket. If this flag is set in the request, checking of the transited field is disabled. Tickets issued without the performance of this check will be noted by the reset (0) value of the TRANSITED-POLICY-CHECKED flag, indicating to the application server that the tranisted field must be checked locally. KDCs are encouraged but not required to honor the DISABLE-TRANSITED-CHECK option. This flag is new since RFC 1510 @strong{Return value:} Returns non-0 iff disable-transited-check flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_renewable_ok_p @anchor{shishi_kdcreq_renewable_ok_p} @deftypefun {int} {shishi_kdcreq_renewable_ok_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option renewable-ok flag is set. The RENEWABLE-OK option indicates that a renewable ticket will be acceptable if a ticket with the requested life cannot otherwise be provided. If a ticket with the requested life cannot be provided, then a renewable ticket may be issued with a renew-till equal to the requested endtime. The value of the renew-till field may still be limited by local limits, or limits selected by the individual principal or server. @strong{Return value:} Returns non-0 iff renewable-ok flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_enc_tkt_in_skey_p @anchor{shishi_kdcreq_enc_tkt_in_skey_p} @deftypefun {int} {shishi_kdcreq_enc_tkt_in_skey_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option enc-tkt-in-skey flag is set. This option is used only by the ticket-granting service. The ENC-TKT-IN-SKEY option indicates that the ticket for the end server is to be encrypted in the session key from the additional ticket-granting ticket provided. @strong{Return value:} Returns non-0 iff enc-tkt-in-skey flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_renew_p @anchor{shishi_kdcreq_renew_p} @deftypefun {int} {shishi_kdcreq_renew_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option renew flag is set. This option is used only by the ticket-granting service. The RENEW option indicates that the present request is for a renewal. The ticket provided is encrypted in the secret key for the server on which it is valid. This option will only be honored if the ticket to be renewed has its RENEWABLE flag set and if the time in its renew-till field has not passed. The ticket to be renewed is passed in the padata field as part of the authentication header. @strong{Return value:} Returns non-0 iff renew flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_validate_p @anchor{shishi_kdcreq_validate_p} @deftypefun {int} {shishi_kdcreq_validate_p} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to get kdc-options field from. @strong{Description:} Determine if KDC-Option validate flag is set. This option is used only by the ticket-granting service. The VALIDATE option indicates that the request is to validate a postdated ticket. It will only be honored if the ticket presented is postdated, presently has its INVALID flag set, and would be otherwise usable at this time. A ticket cannot be validated before its starttime. The ticket presented for validation is encrypted in the key of the server for which it is valid and is passed in the padata field as part of the authentication header. @strong{Return value:} Returns non-0 iff validate flag is set in KDC-REQ. @end deftypefun @subheading shishi_kdcreq_options_set @anchor{shishi_kdcreq_options_set} @deftypefun {int} {shishi_kdcreq_options_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{uint32_t @var{options}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set etype field in. @*@var{options}: integer with flags to store in KDC-REQ. @strong{Description:} Set options in KDC-REQ. Note that this reset any already existing flags. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_options_add @anchor{shishi_kdcreq_options_add} @deftypefun {int} {shishi_kdcreq_options_add} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{uint32_t @var{option}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ variable to set etype field in. @*@var{option}: integer with options to add in KDC-REQ. @strong{Description:} Add KDC-Option to KDC-REQ. This preserves all existing options. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_clear_padata @anchor{shishi_kdcreq_clear_padata} @deftypefun {int} {shishi_kdcreq_clear_padata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to remove PA-DATA from. @strong{Description:} Remove the padata field from KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_get_padata @anchor{shishi_kdcreq_get_padata} @deftypefun {int} {shishi_kdcreq_get_padata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_padata_type @var{padatatype}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to get PA-DATA from. @*@var{padatatype}: type of PA-DATA, see Shishi_padata_type. @*@var{out}: output array with newly allocated PA-DATA value. @*@var{outlen}: size of output array with PA-DATA value. @strong{Description:} Get pre authentication data (PA-DATA) from KDC-REQ. Pre authentication data is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_get_padata_tgs @anchor{shishi_kdcreq_get_padata_tgs} @deftypefun {int} {shishi_kdcreq_get_padata_tgs} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 * @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to get PA-TGS-REQ from. @*@var{apreq}: Output variable with newly allocated AP-REQ. @strong{Description:} Extract TGS pre-authentication data from KDC-REQ. The data is an AP-REQ that authenticates the request. This function call @code{shishi_kdcreq_get_padata()} with a SHISHI_PA_TGS_REQ padatatype and DER decode the result (if any). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_add_padata @anchor{shishi_kdcreq_add_padata} @deftypefun {int} {shishi_kdcreq_add_padata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{int @var{padatatype}}, @w{const char * @var{data}}, @w{size_t @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to add PA-DATA to. @*@var{padatatype}: type of PA-DATA, see Shishi_padata_type. @*@var{data}: input array with PA-DATA value. @*@var{datalen}: size of input array with PA-DATA value. @strong{Description:} Add new pre authentication data (PA-DATA) to KDC-REQ. This is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket. (But also see @code{shishi_kdcreq_add_padata_tgs()} which takes an AP-REQ directly.) @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_add_padata_tgs @anchor{shishi_kdcreq_add_padata_tgs} @deftypefun {int} {shishi_kdcreq_add_padata_tgs} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 @var{apreq}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to add PA-DATA to. @*@var{apreq}: AP-REQ to add as PA-DATA. @strong{Description:} Add TGS pre-authentication data to KDC-REQ. The data is an AP-REQ that authenticates the request. This functions simply DER encodes the AP-REQ and calls @code{shishi_kdcreq_add_padata()} with a SHISHI_PA_TGS_REQ padatatype. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_kdcreq_add_padata_preauth @anchor{shishi_kdcreq_add_padata_preauth} @deftypefun {int} {shishi_kdcreq_add_padata_preauth} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_key * @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ to add pre-authentication data to. @*@var{key}: Key used to encrypt pre-auth data. @strong{Description:} Add pre-authentication data to KDC-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/setup.c.texi0000644000000000000000000000451014273615524013674 00000000000000@subheading shisa @anchor{shisa} @deftypefun {Shisa *} {shisa} () @strong{Description:} Initializes the Shisa library. If this function fails, it may print diagnostic errors to standard error. @strong{Return value:} Returns a Shisa library handle, or @code{NULL} on error. @end deftypefun @subheading shisa_done @anchor{shisa_done} @deftypefun {void} {shisa_done} (@w{Shisa * @var{dbh}}) @var{dbh}: Shisa handle as allocated by @code{shisa()}. @strong{Description:} Deallocates the shisa library handle. The handle must not be used in calls to any shisa function after the completion of this call. @end deftypefun @subheading shisa_init @anchor{shisa_init} @deftypefun {int} {shisa_init} (@w{Shisa ** @var{dbh}}) @var{dbh}: Returned pointer to a created Shisa library handle. @strong{Description:} Creates a Shisa library handle, using @code{shisa()}, reading the system configuration file from its default location. The path to the default system configuration file is decided at compile time (@env{sysconfdir}/shisa.conf). The handle is allocated regardless of return value, the only exception being @code{SHISA_INIT_ERROR}, which indicates a problem in allocating the handle. Other error conditions arise while reading a file. @strong{Return value:} Returns @code{SHISA_OK}, or an error code. The value @code{SHISA_INIT_ERROR} indicates a failure to create the handle. @end deftypefun @subheading shisa_init_with_paths @anchor{shisa_init_with_paths} @deftypefun {int} {shisa_init_with_paths} (@w{Shisa ** @var{dbh}}, @w{const char * @var{file}}) @var{dbh}: Returned pointer to a created Shisa library handle. @*@var{file}: Filename of system configuration, or @code{NULL}. @strong{Description:} Creates a Shisa library handle, using @code{shisa()}, but reading the system configuration file at the location @var{file}, or at the default location, should @var{file} be @code{NULL}. The path to the default system configuration file is decided at compile time (@env{sysconfdir}/shisa.conf). The handle is allocated regardless of return value, the only exception being @code{SHISA_INIT_ERROR}, which indicates a problem in allocating the handle. Other error conditions arise while reading a file. @strong{Return value:} Returns @code{SHISA_OK}, or an error code. The value @code{SHISA_INIT_ERROR} indicates a failure to create the handle. @end deftypefun shishi-1.0.3/doc/texi/hostkeys.c.texi0000644000000000000000000000732214273615520014405 00000000000000@subheading shishi_hostkeys_default_file @anchor{shishi_hostkeys_default_file} @deftypefun {const char *} {shishi_hostkeys_default_file} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @strong{Description:} Get file name of default host key file. @strong{Return value:} Returns the default host key filename used in the library. (Not a copy of it, so don't modify or deallocate it.) @end deftypefun @subheading shishi_hostkeys_default_file_set @anchor{shishi_hostkeys_default_file_set} @deftypefun {void} {shishi_hostkeys_default_file_set} (@w{Shishi * @var{handle}}, @w{const char * @var{hostkeysfile}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{hostkeysfile}: string with new default hostkeys file name, or NULL to reset to default. @strong{Description:} Set the default host key filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_hostkeys_for_server @anchor{shishi_hostkeys_for_server} @deftypefun {Shishi_key *} {shishi_hostkeys_for_server} (@w{Shishi * @var{handle}}, @w{const char * @var{server}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{server}: server name to get key for @strong{Description:} Get host key for @var{server}. @strong{Return value:} Returns the key for specific server, read from the default host keys file (see @code{shishi_hostkeys_default_file()}), or NULL if no key could be found or an error encountered. @end deftypefun @subheading shishi_hostkeys_for_serverrealm @anchor{shishi_hostkeys_for_serverrealm} @deftypefun {Shishi_key *} {shishi_hostkeys_for_serverrealm} (@w{Shishi * @var{handle}}, @w{const char * @var{server}}, @w{const char * @var{realm}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{server}: server name to get key for @*@var{realm}: realm of server to get key for. @strong{Description:} Get host key for @var{server} in @var{realm}. @strong{Return value:} Returns the key for specific server and realm, read from the default host keys file (see @code{shishi_hostkeys_default_file()}), or NULL if no key could be found or an error encountered. @end deftypefun @subheading shishi_hostkeys_for_localservicerealm @anchor{shishi_hostkeys_for_localservicerealm} @deftypefun {Shishi_key *} {shishi_hostkeys_for_localservicerealm} (@w{Shishi * @var{handle}}, @w{const char * @var{service}}, @w{const char * @var{realm}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{service}: service to get key for. @*@var{realm}: realm of server to get key for, or NULL for default realm. @strong{Description:} Get host key for @var{service} on current host in @var{realm}. @strong{Return value:} Returns the key for the server "SERVICE/HOSTNAME@@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see @code{shishi_hostkeys_default_file()}), or NULL if no key could be found or an error encountered. @end deftypefun @subheading shishi_hostkeys_for_localservice @anchor{shishi_hostkeys_for_localservice} @deftypefun {Shishi_key *} {shishi_hostkeys_for_localservice} (@w{Shishi * @var{handle}}, @w{const char * @var{service}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{service}: service to get key for. @strong{Description:} Get host key for @var{service} on current host in default realm. @strong{Return value:} Returns the key for the server "SERVICE/HOSTNAME" (where HOSTNAME is the current system's hostname), read from the default host keys file (see @code{shishi_hostkeys_default_file()}), or NULL if no key could be found or an error encountered. @end deftypefun shishi-1.0.3/doc/texi/crypto-3des.c.texi0000644000000000000000000000000014273615516014677 00000000000000shishi-1.0.3/doc/texi/password.c.texi0000644000000000000000000000427314273615521014401 00000000000000@subheading shishi_prompt_password_callback_set @anchor{shishi_prompt_password_callback_set} @deftypefun {void} {shishi_prompt_password_callback_set} (@w{Shishi * @var{handle}}, @w{shishi_prompt_password_func @var{cb}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{cb}: function pointer to application password callback, a @code{shishi_prompt_password_func} type. @strong{Description:} Set a callback function that will be used by @code{shishi_prompt_password()} to query the user for a password. The function pointer can be retrieved using @code{shishi_prompt_password_callback_get()}. The @var{cb} function should follow the @code{shishi_prompt_password_func} prototype: int prompt_password (Shishi * @var{handle}, char **@var{s}, const char *@var{format}, va_list @var{ap}); If the function returns 0, the @var{s} variable should contain a newly allocated string with the password read from the user. @end deftypefun @subheading shishi_prompt_password_callback_get @anchor{shishi_prompt_password_callback_get} @deftypefun {shishi_prompt_password_func} {shishi_prompt_password_callback_get} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Get the application password prompt function callback as set by @code{shishi_prompt_password_callback_set()}. @strong{Returns:} Returns the callback, a @code{shishi_prompt_password_func} type, or @code{NULL}. @end deftypefun @subheading shishi_prompt_password @anchor{shishi_prompt_password} @deftypefun {int} {shishi_prompt_password} (@w{Shishi * @var{handle}}, @w{char ** @var{s}}, @w{const char * @var{format}}, @w{@var{...}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{s}: pointer to newly allocated output string with read password. @*@var{format}: printf(3) style format string. @*@var{...}: printf(3) style arguments. @strong{Description:} Format and print a prompt, and read a password from user. The password is possibly converted (e.g., converted from Latin-1 to UTF-8, or processed using Stringprep profile) following any "stringprocess" keywords in configuration files. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/as.c.texi0000644000000000000000000002131514273615516013142 00000000000000@subheading shishi_as @anchor{shishi_as} @deftypefun {int} {shishi_as} (@w{Shishi * @var{handle}}, @w{Shishi_as ** @var{as}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{as}: holds pointer to newly allocate Shishi_as structure. @strong{Description:} Allocate a new AS exchange variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_done @anchor{shishi_as_done} @deftypefun {void} {shishi_as_done} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Deallocate resources associated with AS exchange. This should be called by the application when it no longer need to utilize the AS exchange handle. @end deftypefun @subheading shishi_as_req @anchor{shishi_as_req} @deftypefun {Shishi_asn1} {shishi_as_req} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Get ASN.1 AS-REQ structure from AS exchange. @strong{Return value:} Returns the generated AS-REQ packet from the AS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_as_req_build @anchor{shishi_as_req_build} @deftypefun {int} {shishi_as_req_build} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Possibly remove unset fields (e.g., rtime). @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_req_set @anchor{shishi_as_req_set} @deftypefun {void} {shishi_as_req_set} (@w{Shishi_as * @var{as}}, @w{Shishi_asn1 @var{asreq}}) @var{as}: structure that holds information about AS exchange @*@var{asreq}: asreq to store in AS. @strong{Description:} Set the AS-REQ in the AS exchange. @end deftypefun @subheading shishi_as_req_der @anchor{shishi_as_req_der} @deftypefun {int} {shishi_as_req_der} (@w{Shishi_as * @var{as}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{as}: structure that holds information about AS exchange @*@var{out}: output array with newly allocated DER encoding of AS-REQ. @*@var{outlen}: length of output array with DER encoding of AS-REQ. @strong{Description:} DER encode AS-REQ. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_req_der_set @anchor{shishi_as_req_der_set} @deftypefun {int} {shishi_as_req_der_set} (@w{Shishi_as * @var{as}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{as}: structure that holds information about AS exchange @*@var{der}: input array with DER encoded AP-REQ. @*@var{derlen}: length of input array with DER encoded AP-REQ. @strong{Description:} DER decode AS-REQ and set it AS exchange. If decoding fails, the AS-REQ in the AS exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_as_rep @anchor{shishi_as_rep} @deftypefun {Shishi_asn1} {shishi_as_rep} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Get ASN.1 AS-REP structure from AS exchange. @strong{Return value:} Returns the received AS-REP packet from the AS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_as_rep_process @anchor{shishi_as_rep_process} @deftypefun {int} {shishi_as_rep_process} (@w{Shishi_as * @var{as}}, @w{Shishi_key * @var{key}}, @w{const char * @var{password}}) @var{as}: structure that holds information about AS exchange @*@var{key}: user's key, used to encrypt the encrypted part of the AS-REP. @*@var{password}: user's password, used if key is NULL. @strong{Description:} Process new AS-REP and set ticket. The key is used to decrypt the AP-REP. If both key and password is NULL, the user is queried for it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_rep_build @anchor{shishi_as_rep_build} @deftypefun {int} {shishi_as_rep_build} (@w{Shishi_as * @var{as}}, @w{Shishi_key * @var{key}}) @var{as}: structure that holds information about AS exchange @*@var{key}: user's key, used to encrypt the encrypted part of the AS-REP. @strong{Description:} Build AS-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_rep_der @anchor{shishi_as_rep_der} @deftypefun {int} {shishi_as_rep_der} (@w{Shishi_as * @var{as}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{as}: structure that holds information about AS exchange @*@var{out}: output array with newly allocated DER encoding of AS-REP. @*@var{outlen}: length of output array with DER encoding of AS-REP. @strong{Description:} DER encode AS-REP. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_rep_set @anchor{shishi_as_rep_set} @deftypefun {void} {shishi_as_rep_set} (@w{Shishi_as * @var{as}}, @w{Shishi_asn1 @var{asrep}}) @var{as}: structure that holds information about AS exchange @*@var{asrep}: asrep to store in AS. @strong{Description:} Set the AS-REP in the AS exchange. @end deftypefun @subheading shishi_as_rep_der_set @anchor{shishi_as_rep_der_set} @deftypefun {int} {shishi_as_rep_der_set} (@w{Shishi_as * @var{as}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{as}: structure that holds information about AS exchange @*@var{der}: input array with DER encoded AP-REP. @*@var{derlen}: length of input array with DER encoded AP-REP. @strong{Description:} DER decode AS-REP and set it AS exchange. If decoding fails, the AS-REP in the AS exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_as_krberror @anchor{shishi_as_krberror} @deftypefun {Shishi_asn1} {shishi_as_krberror} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Get ASN.1 KRB-ERROR structure from AS exchange. @strong{Return value:} Returns the received KRB-ERROR packet from the AS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_as_krberror_der @anchor{shishi_as_krberror_der} @deftypefun {int} {shishi_as_krberror_der} (@w{Shishi_as * @var{as}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{as}: structure that holds information about AS exchange @*@var{out}: output array with newly allocated DER encoding of KRB-ERROR. @*@var{outlen}: length of output array with DER encoding of KRB-ERROR. @strong{Description:} DER encode KRB-ERROR. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_krberror_set @anchor{shishi_as_krberror_set} @deftypefun {void} {shishi_as_krberror_set} (@w{Shishi_as * @var{as}}, @w{Shishi_asn1 @var{krberror}}) @var{as}: structure that holds information about AS exchange @*@var{krberror}: krberror to store in AS. @strong{Description:} Set the KRB-ERROR in the AS exchange. @end deftypefun @subheading shishi_as_tkt @anchor{shishi_as_tkt} @deftypefun {Shishi_tkt *} {shishi_as_tkt} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Get Ticket in AS exchange. @strong{Return value:} Returns the newly acquired tkt from the AS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_as_tkt_set @anchor{shishi_as_tkt_set} @deftypefun {void} {shishi_as_tkt_set} (@w{Shishi_as * @var{as}}, @w{Shishi_tkt * @var{tkt}}) @var{as}: structure that holds information about AS exchange @*@var{tkt}: tkt to store in AS. @strong{Description:} Set the Tkt in the AS exchange. @end deftypefun @subheading shishi_as_sendrecv_hint @anchor{shishi_as_sendrecv_hint} @deftypefun {int} {shishi_as_sendrecv_hint} (@w{Shishi_as * @var{as}}, @w{Shishi_tkts_hint * @var{hint}}) @var{as}: structure that holds information about AS exchange @*@var{hint}: additional parameters that modify connection behaviour, or @code{NULL}. @strong{Description:} Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. The @var{hint} structure can be used to set, e.g., parameters for TLS authentication. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_as_sendrecv @anchor{shishi_as_sendrecv} @deftypefun {int} {shishi_as_sendrecv} (@w{Shishi_as * @var{as}}) @var{as}: structure that holds information about AS exchange @strong{Description:} Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/authenticator.c.texi0000644000000000000000000005425214273615516015417 00000000000000@subheading shishi_authenticator @anchor{shishi_authenticator} @deftypefun {Shishi_asn1} {shishi_authenticator} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. @strong{Return value:} Returns the authenticator or NULL on failure. @end deftypefun @subheading shishi_authenticator_subkey @anchor{shishi_authenticator_subkey} @deftypefun {Shishi_asn1} {shishi_authenticator_subkey} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. It adds a random subkey. @strong{Return value:} Returns the authenticator or NULL on failure. @end deftypefun @subheading shishi_authenticator_print @anchor{shishi_authenticator_print} @deftypefun {int} {shishi_authenticator_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Print ASCII armored DER encoding of authenticator to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_save @anchor{shishi_authenticator_save} @deftypefun {int} {shishi_authenticator_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Save DER encoding of authenticator to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_to_file @anchor{shishi_authenticator_to_file} @deftypefun {int} {shishi_authenticator_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write Authenticator to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_parse @anchor{shishi_authenticator_parse} @deftypefun {int} {shishi_authenticator_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{authenticator}: output variable with newly allocated authenticator. @strong{Description:} Read ASCII armored DER encoded authenticator from file and populate given authenticator variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_read @anchor{shishi_authenticator_read} @deftypefun {int} {shishi_authenticator_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{authenticator}: output variable with newly allocated authenticator. @strong{Description:} Read DER encoded authenticator from file and populate given authenticator variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_from_file @anchor{shishi_authenticator_from_file} @deftypefun {int} {shishi_authenticator_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{authenticator}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: output variable with newly allocated Authenticator. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read Authenticator from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_set_crealm @anchor{shishi_authenticator_set_crealm} @deftypefun {int} {shishi_authenticator_set_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{const char * @var{crealm}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{crealm}: input array with realm. @strong{Description:} Set realm field in authenticator to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_set_cname @anchor{shishi_authenticator_set_cname} @deftypefun {int} {shishi_authenticator_set_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_name_type @var{name_type}}, @w{const char * @var{cname}[]}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{name_type}: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. @*@var{cname}: input array with principal name. @strong{Description:} Set principal field in authenticator to specified value. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_client_set @anchor{shishi_authenticator_client_set} @deftypefun {int} {shishi_authenticator_client_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{const char * @var{client}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator to set client name field in. @*@var{client}: zero-terminated string with principal name on RFC 1964 form. @strong{Description:} Set the client name field in the Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_ctime @anchor{shishi_authenticator_ctime} @deftypefun {int} {shishi_authenticator_ctime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{char ** @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator as allocated by @code{shishi_authenticator()}. @*@var{t}: newly allocated zero-terminated character array with client time. @strong{Description:} Extract client time from Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_ctime_set @anchor{shishi_authenticator_ctime_set} @deftypefun {int} {shishi_authenticator_ctime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{const char * @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator as allocated by @code{shishi_authenticator()}. @*@var{t}: string with generalized time value to store in Authenticator. @strong{Description:} Store client time in Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_cusec_get @anchor{shishi_authenticator_cusec_get} @deftypefun {int} {shishi_authenticator_cusec_get} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{uint32_t * @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator as allocated by @code{shishi_authenticator()}. @*@var{cusec}: output integer with client microseconds field. @strong{Description:} Extract client microseconds field from Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_cusec_set @anchor{shishi_authenticator_cusec_set} @deftypefun {int} {shishi_authenticator_cusec_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{uint32_t @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{cusec}: client microseconds to set in authenticator, 0-999999. @strong{Description:} Set the cusec field in the Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_seqnumber_get @anchor{shishi_authenticator_seqnumber_get} @deftypefun {int} {shishi_authenticator_seqnumber_get} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{uint32_t * @var{seqnumber}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{seqnumber}: output integer with sequence number field. @strong{Description:} Extract sequence number field from Authenticator. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_authenticator_seqnumber_remove @anchor{shishi_authenticator_seqnumber_remove} @deftypefun {int} {shishi_authenticator_seqnumber_remove} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Remove sequence number field in Authenticator. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_authenticator_seqnumber_set @anchor{shishi_authenticator_seqnumber_set} @deftypefun {int} {shishi_authenticator_seqnumber_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{uint32_t @var{seqnumber}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{seqnumber}: integer with sequence number field to store in Authenticator. @strong{Description:} Store sequence number field in Authenticator. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_authenticator_client @anchor{shishi_authenticator_client} @deftypefun {int} {shishi_authenticator_client} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{authenticator}: Authenticator variable to get client name from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Represent client principal name in Authenticator as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_clientrealm @anchor{shishi_authenticator_clientrealm} @deftypefun {int} {shishi_authenticator_clientrealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{char ** @var{client}}, @w{size_t * @var{clientlen}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{authenticator}: Authenticator variable to get client name and realm from. @*@var{client}: pointer to newly allocated zero terminated string containing principal name and realm. May be @code{NULL} (to only populate @var{clientlen}). @*@var{clientlen}: pointer to length of @var{client} on output, excluding terminating zero. May be @code{NULL} (to only populate @var{client}). @strong{Description:} Convert cname and realm fields from Authenticator to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length @var{clientlen} does not include the terminating zero. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_cksum @anchor{shishi_authenticator_cksum} @deftypefun {int} {shishi_authenticator_cksum} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int32_t * @var{cksumtype}}, @w{char ** @var{cksum}}, @w{size_t * @var{cksumlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{cksumtype}: output checksum type. @*@var{cksum}: newly allocated output checksum data from authenticator. @*@var{cksumlen}: on output, actual size of allocated output checksum data buffer. @strong{Description:} Read checksum value from authenticator. @var{cksum} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_set_cksum @anchor{shishi_authenticator_set_cksum} @deftypefun {int} {shishi_authenticator_set_cksum} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int32_t @var{cksumtype}}, @w{char * @var{cksum}}, @w{size_t @var{cksumlen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{cksumtype}: input checksum type to store in authenticator. @*@var{cksum}: input checksum data to store in authenticator. @*@var{cksumlen}: size of input checksum data to store in authenticator. @strong{Description:} Store checksum value in authenticator. A checksum is usually created by calling @code{shishi_checksum()} on some application specific data using the key from the ticket that is being used. To save time, you may want to use @code{shishi_authenticator_add_cksum()} instead, which calculates the checksum and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_cksum @anchor{shishi_authenticator_add_cksum} @deftypefun {int} {shishi_authenticator_add_cksum} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{char * @var{data}}, @w{size_t @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{key}: key to to use for encryption. @*@var{keyusage}: cryptographic key usage value to use in encryption. @*@var{data}: input array with data to calculate checksum on. @*@var{datalen}: size of input array with data to calculate checksum on. @strong{Description:} Calculate checksum for data and store it in the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_cksum_type @anchor{shishi_authenticator_add_cksum_type} @deftypefun {int} {shishi_authenticator_add_cksum_type} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{int @var{cksumtype}}, @w{char * @var{data}}, @w{size_t @var{datalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{key}: key to to use for encryption. @*@var{keyusage}: cryptographic key usage value to use in encryption. @*@var{cksumtype}: checksum to type to calculate checksum. @*@var{data}: input array with data to calculate checksum on. @*@var{datalen}: size of input array with data to calculate checksum on. @strong{Description:} Calculate checksum for data and store it in the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_clear_authorizationdata @anchor{shishi_authenticator_clear_authorizationdata} @deftypefun {int} {shishi_authenticator_clear_authorizationdata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: Authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Remove the authorization-data field from Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_authorizationdata @anchor{shishi_authenticator_add_authorizationdata} @deftypefun {int} {shishi_authenticator_add_authorizationdata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int32_t @var{adtype}}, @w{const char * @var{addata}}, @w{size_t @var{addatalen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{adtype}: input authorization data type to add. @*@var{addata}: input authorization data to add. @*@var{addatalen}: size of input authorization data to add. @strong{Description:} Add authorization data to authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_authorizationdata @anchor{shishi_authenticator_authorizationdata} @deftypefun {int} {shishi_authenticator_authorizationdata} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int32_t * @var{adtype}}, @w{char ** @var{addata}}, @w{size_t * @var{addatalen}}, @w{size_t @var{nth}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{adtype}: output authorization data type. @*@var{addata}: newly allocated output authorization data. @*@var{addatalen}: on output, actual size of newly allocated authorization data. @*@var{nth}: element number of authorization-data to extract. @strong{Extract n:} th authorization data from authenticator. The first field is 1. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_remove_subkey @anchor{shishi_authenticator_remove_subkey} @deftypefun {int} {shishi_authenticator_remove_subkey} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Remove subkey from the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_get_subkey @anchor{shishi_authenticator_get_subkey} @deftypefun {int} {shishi_authenticator_get_subkey} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_key ** @var{subkey}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{subkey}: output newly allocated subkey from authenticator. @strong{Description:} Read subkey value from authenticator. @strong{Return value:} Returns SHISHI_OK if successful or SHISHI_ASN1_NO_ELEMENT if subkey is not present. @end deftypefun @subheading shishi_authenticator_set_subkey @anchor{shishi_authenticator_set_subkey} @deftypefun {int} {shishi_authenticator_set_subkey} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int32_t @var{subkeytype}}, @w{const char * @var{subkey}}, @w{size_t @var{subkeylen}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{subkeytype}: input subkey type to store in authenticator. @*@var{subkey}: input subkey data to store in authenticator. @*@var{subkeylen}: size of input subkey data to store in authenticator. @strong{Description:} Store subkey value in authenticator. A subkey is usually created by calling @code{shishi_key_random()} using the default encryption type of the key from the ticket that is being used. To save time, you may want to use @code{shishi_authenticator_add_subkey()} instead, which calculates the subkey and calls this function in one step. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_random_subkey @anchor{shishi_authenticator_add_random_subkey} @deftypefun {int} {shishi_authenticator_add_random_subkey} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @strong{Description:} Generate random subkey, of the default encryption type from configuration, and store it in the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_random_subkey_etype @anchor{shishi_authenticator_add_random_subkey_etype} @deftypefun {int} {shishi_authenticator_add_random_subkey_etype} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{int @var{etype}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{etype}: encryption type of random key to generate. @strong{Description:} Generate random subkey of indicated encryption type, and store it in the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_authenticator_add_subkey @anchor{shishi_authenticator_add_subkey} @deftypefun {int} {shishi_authenticator_add_subkey} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_key * @var{subkey}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{authenticator}: authenticator as allocated by @code{shishi_authenticator()}. @*@var{subkey}: subkey to add to authenticator. @strong{Description:} Store subkey in the authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/crypto-rc4.c.texi0000644000000000000000000000000014273615517014532 00000000000000shishi-1.0.3/doc/texi/key.c.texi0000644000000000000000000002651714273615521013334 00000000000000@subheading shishi_key_principal @anchor{shishi_key_principal} @deftypefun {const char *} {shishi_key_principal} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get the principal part of the key owner principal name, i.e., except the realm. @strong{Return value:} Returns the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) @end deftypefun @subheading shishi_key_principal_set @anchor{shishi_key_principal_set} @deftypefun {void} {shishi_key_principal_set} (@w{Shishi_key * @var{key}}, @w{const char * @var{principal}}) @var{key}: structure that holds key information @*@var{principal}: string with new principal name. @strong{Description:} Set the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_key_realm @anchor{shishi_key_realm} @deftypefun {const char *} {shishi_key_realm} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get the realm part of the key owner principal name. @strong{Return value:} Returns the realm for the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) @end deftypefun @subheading shishi_key_realm_set @anchor{shishi_key_realm_set} @deftypefun {void} {shishi_key_realm_set} (@w{Shishi_key * @var{key}}, @w{const char * @var{realm}}) @var{key}: structure that holds key information @*@var{realm}: string with new realm name. @strong{Description:} Set the realm for the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. @end deftypefun @subheading shishi_key_type @anchor{shishi_key_type} @deftypefun {int} {shishi_key_type} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get key type. @strong{Return value:} Returns the type of key as an integer as described in the standard. @end deftypefun @subheading shishi_key_type_set @anchor{shishi_key_type_set} @deftypefun {void} {shishi_key_type_set} (@w{Shishi_key * @var{key}}, @w{int32_t @var{type}}) @var{key}: structure that holds key information @*@var{type}: type to set in key. @strong{Description:} Set the type of key in key structure. @end deftypefun @subheading shishi_key_value @anchor{shishi_key_value} @deftypefun {const char *} {shishi_key_value} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get the raw key bytes. @strong{Return value:} Returns the key value as a pointer which is valid throughout the lifetime of the key structure. @end deftypefun @subheading shishi_key_value_set @anchor{shishi_key_value_set} @deftypefun {void} {shishi_key_value_set} (@w{Shishi_key * @var{key}}, @w{const char * @var{value}}) @var{key}: structure that holds key information @*@var{value}: input array with key data. @strong{Description:} Set the key value and length in key structure. The value is copied into the key (in other words, you can deallocate @var{value} right after calling this function without modifying the value inside the key). @end deftypefun @subheading shishi_key_version @anchor{shishi_key_version} @deftypefun {uint32_t} {shishi_key_version} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get the "kvno" (key version) of key. It will be UINT32_MAX if the key is not long-lived. @strong{Return value:} Returns the version of key ("kvno"). @end deftypefun @subheading shishi_key_version_set @anchor{shishi_key_version_set} @deftypefun {void} {shishi_key_version_set} (@w{Shishi_key * @var{key}}, @w{uint32_t @var{kvno}}) @var{key}: structure that holds key information @*@var{kvno}: new version integer. @strong{Description:} Set the version of key ("kvno") in key structure. Use UINT32_MAX for non-ptermanent keys. @end deftypefun @subheading shishi_key_timestamp @anchor{shishi_key_timestamp} @deftypefun {time_t} {shishi_key_timestamp} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Get the time the key was established. Typically only present when the key was imported from a keytab format. @strong{Return value:} Returns the time the key was established, or (time_t)-1 if not available. @strong{Since:} 0.0.42 @end deftypefun @subheading shishi_key_timestamp_set @anchor{shishi_key_timestamp_set} @deftypefun {void} {shishi_key_timestamp_set} (@w{Shishi_key * @var{key}}, @w{time_t @var{timestamp}}) @var{key}: structure that holds key information @*@var{timestamp}: new timestamp. @strong{Description:} Set the time the key was established. Typically only relevant when exporting the key to keytab format. @strong{Since:} 0.0.42 @end deftypefun @subheading shishi_key_name @anchor{shishi_key_name} @deftypefun {const char *} {shishi_key_name} (@w{Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Calls shishi_cipher_name for key type. @strong{Return value:} Return name of key. @end deftypefun @subheading shishi_key_length @anchor{shishi_key_length} @deftypefun {size_t} {shishi_key_length} (@w{const Shishi_key * @var{key}}) @var{key}: structure that holds key information @strong{Description:} Calls shishi_cipher_keylen for key type. @strong{Return value:} Returns the length of the key value. @end deftypefun @subheading shishi_key @anchor{shishi_key} @deftypefun {int} {shishi_key} (@w{Shishi * @var{handle}}, @w{Shishi_key ** @var{key}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{key}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_key_done @anchor{shishi_key_done} @deftypefun {void} {shishi_key_done} (@w{Shishi_key * @var{key}}) @var{key}: pointer to structure that holds key information. @strong{Description:} Deallocates key information structure. @end deftypefun @subheading shishi_key_copy @anchor{shishi_key_copy} @deftypefun {void} {shishi_key_copy} (@w{Shishi_key * @var{dstkey}}, @w{Shishi_key * @var{srckey}}) @var{dstkey}: structure that holds destination key information @*@var{srckey}: structure that holds source key information @strong{Description:} Copies source key into existing allocated destination key. @end deftypefun @subheading shishi_key_from_value @anchor{shishi_key_from_value} @deftypefun {int} {shishi_key_from_value} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{const char * @var{value}}, @w{Shishi_key ** @var{key}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{value}: input array with key value, or NULL. @*@var{key}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_key_from_base64 @anchor{shishi_key_from_base64} @deftypefun {int} {shishi_key_from_base64} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{const char * @var{value}}, @w{Shishi_key ** @var{key}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{value}: input string with base64 encoded key value, or NULL. @*@var{key}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. @strong{Return value:} Returns SHISHI_INVALID_KEY if the base64 encoded key length doesn't match the key type, and SHISHI_OK on success. @end deftypefun @subheading shishi_key_random @anchor{shishi_key_random} @deftypefun {int} {shishi_key_random} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{Shishi_key ** @var{key}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{key}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure for the key type and some random data. KEY contains a newly allocated structure only if this function is successful. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_key_from_random @anchor{shishi_key_from_random} @deftypefun {int} {shishi_key_from_random} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{const char * @var{rnd}}, @w{size_t @var{rndlen}}, @w{Shishi_key ** @var{outkey}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{rnd}: random data. @*@var{rndlen}: length of random data. @*@var{outkey}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure, and set the key type and key value using @code{shishi_random_to_key()}. KEY contains a newly allocated structure only if this function is successful. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_key_from_string @anchor{shishi_key_from_string} @deftypefun {int} {shishi_key_from_string} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{const char * @var{password}}, @w{size_t @var{passwordlen}}, @w{const char * @var{salt}}, @w{size_t @var{saltlen}}, @w{const char * @var{parameter}}, @w{Shishi_key ** @var{outkey}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{password}: input array containing password. @*@var{passwordlen}: length of input array containing password. @*@var{salt}: input array containing salt. @*@var{saltlen}: length of input array containing salt. @*@var{parameter}: input array with opaque encryption type specific information. @*@var{outkey}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure, and set the key type and key value using @code{shishi_string_to_key()}. KEY contains a newly allocated structure only if this function is successful. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_key_from_name @anchor{shishi_key_from_name} @deftypefun {int} {shishi_key_from_name} (@w{Shishi * @var{handle}}, @w{int32_t @var{type}}, @w{const char * @var{name}}, @w{const char * @var{password}}, @w{size_t @var{passwordlen}}, @w{const char * @var{parameter}}, @w{Shishi_key ** @var{outkey}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{type}: type of key. @*@var{name}: principal name of user. @*@var{password}: input array containing password. @*@var{passwordlen}: length of input array containing password. @*@var{parameter}: input array with opaque encryption type specific information. @*@var{outkey}: pointer to structure that will hold newly created key information @strong{Description:} Create a new Key information structure, and derive the key from principal name and password using @code{shishi_key_from_name()}. The salt is derived from the principal name by concatenating the decoded realm and principal. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/realm.c.texi0000644000000000000000000001211114273615522013626 00000000000000@subheading shishi_realm_default_guess @anchor{shishi_realm_default_guess} @deftypefun {char *} {shishi_realm_default_guess} () @strong{Description:} Guesses a realm based on @code{getdomainname()}, which really responds with a NIS/YP domain, but if set properly, it might be a good first guess. If this NIS query fails, call @code{gethostname()}, and on its failure, fall back to returning the artificial string "could-not-guess-default-realm". Note that the hostname is not trimmed off of the string returned by @code{gethostname()}, thus pretending the local host name is a valid realm name. The resulting corner case could merit a check that the suggested realm is distinct from the fully qualifies host, and if not, simply strip the host name from the returned string before it is used in an application. One reason for sticking with the present behaviour, is that some systems respond with a non-qualified host name as reply from @code{gethostname()}. @strong{Return value:} Returns a guessed realm for the running host, containing a string that has to be deallocated with @code{free()} by the caller. @end deftypefun @subheading shishi_realm_default @anchor{shishi_realm_default} @deftypefun {const char *} {shishi_realm_default} (@w{Shishi * @var{handle}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @strong{Description:} Determines name of default realm, i.e., the name of whatever realm the library will use whenever an explicit realm is not stated during a library call. @strong{Return value:} Returns the default realm in use by the library. Not a copy, so do not modify or deallocate the returned string. @end deftypefun @subheading shishi_realm_default_set @anchor{shishi_realm_default_set} @deftypefun {void} {shishi_realm_default_set} (@w{Shishi * @var{handle}}, @w{const char * @var{realm}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{realm}: String stating a new default realm name, or @code{NULL}. @strong{Description:} Sets the default realm used by the library; or, with @var{realm} set to @code{NULL}, resets the library realm setting to that name selected by configuration for default value. The string is copied into the library, so you can dispose of the content in @var{realm} immediately after calling this function. @end deftypefun @subheading shishi_realm_for_server_file @anchor{shishi_realm_for_server_file} @deftypefun {char *} {shishi_realm_for_server_file} (@w{Shishi * @var{handle}}, @w{char * @var{server}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{server}: Hostname to determine realm for. @strong{Description:} Finds the realm applicable to a host @var{server}, using the standard configuration file. @strong{Return value:} Returns realm for host, or @code{NULL} if not known. @end deftypefun @subheading shishi_realm_for_server_dns @anchor{shishi_realm_for_server_dns} @deftypefun {char *} {shishi_realm_for_server_dns} (@w{Shishi * @var{handle}}, @w{char * @var{server}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{server}: Hostname to find realm for. @strong{Description:} Finds the realm for a host @var{server} using DNS lookup, as is prescribed in "draft-ietf-krb-wg-krb-dns-locate-03.txt". Since DNS lookup can be spoofed, relying on the realm information may result in a redirection attack. In a single-realm scenario, this only achieves a denial of service, but with trust across multiple realms the attack may redirect you to a compromised realm. For this reason, Shishi prints a warning, suggesting that the user should instead add a proper 'server-realm' configuration token. To illustrate the DNS information used, here is an extract from a zone file for the domain ASDF.COM: _kerberos.asdf.com. IN TXT "ASDF.COM" _kerberos.mrkserver.asdf.com. IN TXT "MARKETING.ASDF.COM" _kerberos.salesserver.asdf.com. IN TXT "SALES.ASDF.COM" Let us suppose that in this case, a client wishes to use a service on the host "foo.asdf.com". It would first query for _kerberos.foo.asdf.com. IN TXT Finding no match, it would then query for _kerberos.asdf.com. IN TXT With the resource records stated above, the latter query returns a positive answer. @strong{Return value:} Returns realm for the indicated host, or @code{NULL} if no relevant TXT record could be found. @end deftypefun @subheading shishi_realm_for_server @anchor{shishi_realm_for_server} @deftypefun {char *} {shishi_realm_for_server} (@w{Shishi * @var{handle}}, @w{char * @var{server}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{server}: Hostname to find realm for. @strong{Description:} Finds a realm for the host @var{server}, using various methods. Currently this includes static configuration files, using the library call @code{shishi_realm_for_server_file()}, and DNS lookup using @code{shishi_realm_for_server_dns()}. They are attempted in the stated order. See the documentation of either function for more information. @strong{Return value:} Returns realm for the indicated host, or @code{NULL} if nothing is known about @var{server}. @end deftypefun shishi-1.0.3/doc/texi/encapreppart.c.texi0000644000000000000000000002164614273615517015233 00000000000000@subheading shishi_encapreppart @anchor{shishi_encapreppart} @deftypefun {Shishi_asn1} {shishi_encapreppart} (@w{Shishi * @var{handle}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @strong{Description:} This function creates a new EncAPRepPart, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. @strong{Return value:} Returns the encapreppart or NULL on failure. @end deftypefun @subheading shishi_encapreppart_print @anchor{shishi_encapreppart_print} @deftypefun {int} {shishi_encapreppart_print} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{encapreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{encapreppart}: EncAPRepPart to print. @strong{Description:} Print ASCII armored DER encoding of EncAPRepPart to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_save @anchor{shishi_encapreppart_save} @deftypefun {int} {shishi_encapreppart_save} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 @var{encapreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for writing. @*@var{encapreppart}: EncAPRepPart to save. @strong{Description:} Save DER encoding of EncAPRepPart to file. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_to_file @anchor{shishi_encapreppart_to_file} @deftypefun {int} {shishi_encapreppart_to_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart to save. @*@var{filetype}: input variable specifying type of file to be written, see Shishi_filetype. @*@var{filename}: input variable with filename to write to. @strong{Description:} Write EncAPRepPart to file in specified TYPE. The file will be truncated if it exists. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_parse @anchor{shishi_encapreppart_parse} @deftypefun {int} {shishi_encapreppart_parse} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{encapreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{encapreppart}: output variable with newly allocated EncAPRepPart. @strong{Description:} Read ASCII armored DER encoded EncAPRepPart from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_read @anchor{shishi_encapreppart_read} @deftypefun {int} {shishi_encapreppart_read} (@w{Shishi * @var{handle}}, @w{FILE * @var{fh}}, @w{Shishi_asn1 * @var{encapreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{fh}: file handle open for reading. @*@var{encapreppart}: output variable with newly allocated EncAPRepPart. @strong{Description:} Read DER encoded EncAPRepPart from file and populate given variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_from_file @anchor{shishi_encapreppart_from_file} @deftypefun {int} {shishi_encapreppart_from_file} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 * @var{encapreppart}}, @w{int @var{filetype}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: output variable with newly allocated EncAPRepPart. @*@var{filetype}: input variable specifying type of file to be read, see Shishi_filetype. @*@var{filename}: input variable with filename to read from. @strong{Description:} Read EncAPRepPart from file in specified TYPE. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_get_key @anchor{shishi_encapreppart_get_key} @deftypefun {int} {shishi_encapreppart_get_key} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{Shishi_key ** @var{key}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: input EncAPRepPart variable. @*@var{key}: newly allocated key. @strong{Description:} Extract the subkey from the encrypted AP-REP part. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encapreppart_ctime @anchor{shishi_encapreppart_ctime} @deftypefun {int} {shishi_encapreppart_ctime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{char ** @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{t}: newly allocated zero-terminated character array with client time. @strong{Description:} Extract client time from EncAPRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_ctime_set @anchor{shishi_encapreppart_ctime_set} @deftypefun {int} {shishi_encapreppart_ctime_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{const char * @var{t}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{t}: string with generalized time value to store in EncAPRepPart. @strong{Description:} Store client time in EncAPRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_cusec_get @anchor{shishi_encapreppart_cusec_get} @deftypefun {int} {shishi_encapreppart_cusec_get} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{uint32_t * @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{cusec}: output integer with client microseconds field. @strong{Description:} Extract client microseconds field from EncAPRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_cusec_set @anchor{shishi_encapreppart_cusec_set} @deftypefun {int} {shishi_encapreppart_cusec_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{uint32_t @var{cusec}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{cusec}: client microseconds to set in authenticator, 0-999999. @strong{Description:} Set the cusec field in the Authenticator. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_seqnumber_get @anchor{shishi_encapreppart_seqnumber_get} @deftypefun {int} {shishi_encapreppart_seqnumber_get} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{uint32_t * @var{seqnumber}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{seqnumber}: output integer with sequence number field. @strong{Description:} Extract sequence number field from EncAPRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_encapreppart_seqnumber_remove @anchor{shishi_encapreppart_seqnumber_remove} @deftypefun {int} {shishi_encapreppart_seqnumber_remove} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: encapreppart as allocated by @code{shishi_encapreppart()}. @strong{Description:} Remove sequence number field in EncAPRepPart. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encapreppart_seqnumber_set @anchor{shishi_encapreppart_seqnumber_set} @deftypefun {int} {shishi_encapreppart_seqnumber_set} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{uint32_t @var{seqnumber}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: encapreppart as allocated by @code{shishi_encapreppart()}. @*@var{seqnumber}: integer with sequence number field to store in encapreppart. @strong{Description:} Store sequence number field in EncAPRepPart. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_encapreppart_time_copy @anchor{shishi_encapreppart_time_copy} @deftypefun {int} {shishi_encapreppart_time_copy} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{encapreppart}}, @w{Shishi_asn1 @var{authenticator}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{encapreppart}: EncAPRepPart as allocated by @code{shishi_encapreppart()}. @*@var{authenticator}: Authenticator to copy time fields from. @strong{Description:} Copy time fields from Authenticator into EncAPRepPart. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/starttls.c.texi0000644000000000000000000000000014273615522014400 00000000000000shishi-1.0.3/doc/texi/ccache.c.texi0000644000000000000000000000000014273615516013731 00000000000000shishi-1.0.3/doc/texi/crypto-md.c.texi0000644000000000000000000000000014273615517014442 00000000000000shishi-1.0.3/doc/texi/kdc.c.texi0000644000000000000000000002512314273615520013274 00000000000000@subheading shishi_as_derive_salt @anchor{shishi_as_derive_salt} @deftypefun {int} {shishi_as_derive_salt} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{asreq}}, @w{Shishi_asn1 @var{asrep}}, @w{char ** @var{salt}}, @w{size_t * @var{saltlen}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{asreq}: Input AS-REQ variable. @*@var{asrep}: Input AS-REP variable. @*@var{salt}: Returned pointer to newly allocated output array. @*@var{saltlen}: Pointer to integer, returning size of output array. @strong{Description:} Computes the salt that should be used when deriving a key via @code{shishi_string_to_key()} for an AS exchange. Currently this searches for PA-DATA of type @code{SHISHI_PA_PW_SALT} in the AS-REP provided by @var{asrep}, and if present returns it. Otherwise the salt is composed from the client name and the realm, both are extracted from the request @var{asreq}. @strong{Return value:} Returns @code{SHISHI_OK} if successful. Failure conditions include various ASN.1 issues. @end deftypefun @subheading shishi_kdcreq_sendrecv_hint @anchor{shishi_kdcreq_sendrecv_hint} @deftypefun {int} {shishi_kdcreq_sendrecv_hint} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 * @var{kdcrep}}, @w{Shishi_tkts_hint * @var{hint}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{kdcreq}: Input variable with a prepared AS-REQ. @*@var{kdcrep}: Output pointer variable for decoded AS-REP. @*@var{hint}: Input @code{Shishi_tkts_hint} structure with flags. @strong{Description:} Sends a request to KDC, and receives the response. The provided request @var{kdcreq} and the hints structure @var{hint}, together determine transmitted data. On reception the reply is decoded as AS-REP into @var{kdcrep}. @strong{Return value:} Return code is @code{SHISHI_OK} on success, @code{SHISHI_KDC_TIMEOUT} on timeouts, @code{SHISHI_ASN1_ERROR} on translation errors, and @code{SHISHI_GOT_KRBERROR} for other corruptions. @end deftypefun @subheading shishi_kdcreq_sendrecv @anchor{shishi_kdcreq_sendrecv} @deftypefun {int} {shishi_kdcreq_sendrecv} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 * @var{kdcrep}}) @var{handle}: Shishi library handle created by @code{shishi_init()}. @*@var{kdcreq}: Input variable with a prepared AS-REQ. @*@var{kdcrep}: Output pointer variable returning received AS-REP. @strong{Description:} Sends a request to KDC, and receives the response. The provided AS-REQ, in @var{kdcreq}, sets all data for the request. On reception the reply is decoded as AS-REP into @var{kdcrep}. @strong{Return value:} Return code is @code{SHISHI_OK} on success, @code{SHISHI_KDC_TIMEOUT} on timeouts, @code{SHISHI_ASN1_ERROR} on translation errors, and @code{SHISHI_GOT_KRBERROR} for other corruptions. @end deftypefun @subheading shishi_kdc_copy_crealm @anchor{shishi_kdc_copy_crealm} @deftypefun {int} {shishi_kdc_copy_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_asn1 @var{encticketpart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP where the field "crealm" is updated. @*@var{encticketpart}: EncTicketPart providing "crealm" field. @strong{Description:} Reads the field "crealm" from the ticket @var{encticketpart} and copies the value into the reply @var{kdcrep}. @strong{Return value:} Returns @code{SHISHI_OK} if successful, and ASN.1 failures otherwise. @end deftypefun @subheading shishi_as_check_crealm @anchor{shishi_as_check_crealm} @deftypefun {int} {shishi_as_check_crealm} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{asreq}}, @w{Shishi_asn1 @var{asrep}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{asreq}: Request of type AS-REQ. @*@var{asrep}: Reply structure of type AS-REP. @strong{Description:} Verifies that the fields @var{asreq}.req-body.realm and @var{asrep}.crealm contain identical realm names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see @code{shishi_kdc_process()} for more details. @strong{Return value:} Returns @code{SHISHI_OK} if successful, @code{SHISHI_REALM_MISMATCH} whenever the realm names differ, and an error code otherwise. @end deftypefun @subheading shishi_kdc_copy_cname @anchor{shishi_kdc_copy_cname} @deftypefun {int} {shishi_kdc_copy_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_asn1 @var{encticketpart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{kdcrep}: KDC-REP where the field "cname" is updated. @*@var{encticketpart}: EncTicketPart providing "cname" field. @strong{Description:} Reads the field "cname" from the ticket @var{encticketpart} and copies the value into the reply @var{kdcrep}. @strong{Return value:} Returns @code{SHISHI_OK} if successful, and ASN.1 failures otherwise. @end deftypefun @subheading shishi_as_check_cname @anchor{shishi_as_check_cname} @deftypefun {int} {shishi_as_check_cname} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{asreq}}, @w{Shishi_asn1 @var{asrep}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{asreq}: Request of type AS-REQ. @*@var{asrep}: Reply structure of type AS-REP. @strong{Description:} Verifies that the fields @var{asreq}.req-body.cname and @var{asrep}.cname contain identical names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see @code{shishi_kdc_process()} for more details. @strong{Return value:} Returns @code{SHISHI_OK} if successful, @code{SHISHI_CNAME_MISMATCH} if the names differ, and an error code otherwise. @end deftypefun @subheading shishi_kdc_copy_nonce @anchor{shishi_kdc_copy_nonce} @deftypefun {int} {shishi_kdc_copy_nonce} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 @var{enckdcreppart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: KDC-REQ providing "nonce" field. @*@var{enckdcreppart}: EncKDCRepPart where "nonce" field is updated. @strong{Description:} Sets the field "nonce" in @var{enckdcreppart} to a value retreived from the corresponding field in @var{kdcreq}. @strong{Return value:} Returns @code{SHISHI_OK} if successful. @end deftypefun @subheading shishi_kdc_check_nonce @anchor{shishi_kdc_check_nonce} @deftypefun {int} {shishi_kdc_check_nonce} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 @var{enckdcreppart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: Request of type KDC-REQ. @*@var{enckdcreppart}: Encrypted KDC-REP part. @strong{Description:} Verifies that @var{kdcreq}.req-body.nonce and @var{enckdcreppart}.nonce contain matching values. This is one of the steps that has to be performed when processing an exchange of KDC-REQ and KDC-REP. @strong{Return value:} Returns @code{SHISHI_OK} if successful, @code{SHISHI_NONCE_MISMATCH} whenever the nonces are of differing lengths (usually a sign that a buggy server truncates the nonce to 4 bytes) and the same code if the nonce values differ, or an error code otherwise. @end deftypefun @subheading shishi_tgs_process @anchor{shishi_tgs_process} @deftypefun {int} {shishi_tgs_process} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{tgsreq}}, @w{Shishi_asn1 @var{tgsrep}}, @w{Shishi_asn1 @var{authenticator}}, @w{Shishi_asn1 @var{oldenckdcreppart}}, @w{Shishi_asn1 * @var{enckdcreppart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{tgsreq}: Input variable holding the transmitted KDC-REQ. @*@var{tgsrep}: Input variable holding the received KDC-REP. @*@var{authenticator}: Input variable with an authenticator extracted from the AP-REQ part of @var{tgsreq}. @*@var{oldenckdcreppart}: Input variable with EncKDCRepPart used in the request. @*@var{enckdcreppart}: Output variable holding the new EncKDCRepPart. @strong{Description:} Processes a TGS client exchange and outputs the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the ticket used to construct the original TGS request, and then calls @code{shishi_kdc_process()}. @strong{Return value:} Returns @code{SHISHI_OK} if the TGS client exchange was successful. Failures include ASN.1 and TGS conditions. @end deftypefun @subheading shishi_as_process @anchor{shishi_as_process} @deftypefun {int} {shishi_as_process} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{asreq}}, @w{Shishi_asn1 @var{asrep}}, @w{const char * @var{string}}, @w{Shishi_asn1 * @var{enckdcreppart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{asreq}: Input variable holding the transmitted KDC-REQ. @*@var{asrep}: Input variable holding the received KDC-REP. @*@var{string}: Input variable with a null terminated password. @*@var{enckdcreppart}: Output variable returning a new EncKDCRepPart. @strong{Description:} Processes an AS client exchange and returns the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the password, and then calls @code{shishi_kdc_process()}. @strong{Return value:} Returns @code{SHISHI_OK} if the AS client exchange was successful. Multiple failure conditions are possible. @end deftypefun @subheading shishi_kdc_process @anchor{shishi_kdc_process} @deftypefun {int} {shishi_kdc_process} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{kdcreq}}, @w{Shishi_asn1 @var{kdcrep}}, @w{Shishi_key * @var{key}}, @w{int @var{keyusage}}, @w{Shishi_asn1 * @var{enckdcreppart}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{kdcreq}: Input variable holding the transmitted KDC-REQ. @*@var{kdcrep}: Input variable holding the received KDC-REP. @*@var{key}: Input pointet to key for decrypting parts of @var{kdcrep}. @*@var{keyusage}: Kerberos key usage code. @*@var{enckdcreppart}: Output pointer for the extracted EncKDCRepPart. @strong{Description:} Processes a KDC client exchange and extracts a decrypted EncKDCRepPart, holding details about the received ticket. Use @code{shishi_kdcrep_get_ticket()} to extract the ticket itself. This function verifies the various conditions that must hold if the response is to be considered valid. In particular, it compares nonces (using @code{shishi_kdc_check_nonce()}), and if the exchange was an AS exchange, it also checks cname and crealm (using @code{shishi_as_check_cname()}, @code{shishi_as_check_crealm()}). Usually @code{shishi_as_process()} and @code{shishi_tgs_process()} should be used instead of this call, since they simplify computation of the decryption key. @strong{Return value:} Returns @code{SHISHI_OK} if the KDC client exchange was successful. Multiple failure conditions are possible. @end deftypefun shishi-1.0.3/doc/texi/gztime.c.texi0000644000000000000000000000575414273615520014042 00000000000000@subheading shishi_generalize_time @anchor{shishi_generalize_time} @deftypefun {const char *} {shishi_generalize_time} (@w{Shishi * @var{handle}}, @w{time_t @var{t}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{t}: C time to convert. @strong{Description:} Converts C time @var{t} to a KerberosTime string representation. The returned string must not be deallocated by the caller. @strong{Return value:} Returns a KerberosTime formatted string corresponding to the input parameter. @end deftypefun @subheading shishi_generalize_now @anchor{shishi_generalize_now} @deftypefun {const char *} {shishi_generalize_now} (@w{Shishi * @var{handle}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @strong{Description:} Converts the current time to a KerberosTime string. The returned string must not be deallocated by the caller. @strong{Return value:} Returns a KerberosTime formatted string corresponding to the current time. @end deftypefun @subheading shishi_generalize_ctime @anchor{shishi_generalize_ctime} @deftypefun {time_t} {shishi_generalize_ctime} (@w{Shishi * @var{handle}}, @w{const char * @var{t}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{t}: KerberosTime string to convert. @strong{Description:} Converts a KerberosTime formatted string in @var{t} to integral C time representation. @strong{Return value:} Returns the C time corresponding to the input argument. @end deftypefun @subheading shishi_time @anchor{shishi_time} @deftypefun {int} {shishi_time} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{char ** @var{t}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 structure to get time from. @*@var{field}: Name of the field in the ASN.1 node carrying time. @*@var{t}: Returned pointer to an allocated char array containing a null-terminated time string. @strong{Description:} Extracts time information from an ASN.1 structure, and to be precise, does so from the named field @var{field} within the structure @var{node}. @strong{Return value:} Returns @code{SHISHI_OK} if successful, or an error. @end deftypefun @subheading shishi_ctime @anchor{shishi_ctime} @deftypefun {int} {shishi_ctime} (@w{Shishi * @var{handle}}, @w{Shishi_asn1 @var{node}}, @w{const char * @var{field}}, @w{time_t * @var{t}}) @var{handle}: Shishi handle as allocated by @code{shishi_init()}. @*@var{node}: ASN.1 structure to read field from. @*@var{field}: Name of field in @var{node} to read. @*@var{t}: Pointer to a C-time valued integer, being updated with the time value to be extracted. @strong{Description:} Extracts time information from an ASN.1 structure @var{node}, and from an arbitrary element @var{field} of that structure. @strong{Return value:} Returns @code{SHISHI_OK} if successful, @code{SHISHI_ASN1_NO_ELEMENT} if the element does not exist, @code{SHISHI_ASN1_NO_VALUE} if the field has no value. In all other cases, @code{SHISHI_ASN1_ERROR} is returned. @end deftypefun shishi-1.0.3/doc/texi/authorize.c.texi0000644000000000000000000000475614273615516014563 00000000000000@subheading shishi_authorize_strcmp @anchor{shishi_authorize_strcmp} @deftypefun {int} {shishi_authorize_strcmp} (@w{Shishi * @var{handle}}, @w{const char * @var{principal}}, @w{const char * @var{authzname}}) @var{handle}: shishi handle allocated by @code{shishi_init()}. @*@var{principal}: string with desired principal name. @*@var{authzname}: authorization name. @strong{Description:} Authorization of @var{authzname} against desired @var{principal} according to "basic" authentication, i.e., testing for identical strings. @strong{Return value:} Returns 1 if @var{authzname} is authorized for services by the encrypted principal, and 0 otherwise. @end deftypefun @subheading shishi_authorize_k5login @anchor{shishi_authorize_k5login} @deftypefun {int} {shishi_authorize_k5login} (@w{Shishi * @var{handle}}, @w{const char * @var{principal}}, @w{const char * @var{authzname}}) @var{handle}: shishi handle allocated by @code{shishi_init()}. @*@var{principal}: string with desired principal name and realm. @*@var{authzname}: authorization name. @strong{Description:} Authorization of @var{authzname} against desired @var{principal} in accordance with the MIT/Heimdal authorization method. @strong{Return value:} Returns 1 if @var{authzname} is authorized for services by @var{principal}, and returns 0 otherwise. @end deftypefun @subheading shishi_authorization_parse @anchor{shishi_authorization_parse} @deftypefun {int} {shishi_authorization_parse} (@w{const char * @var{authorization}}) @var{authorization}: name of authorization type, "basic" or "k5login". @strong{Description:} Parse authorization type name. @strong{Return value:} Returns authorization type corresponding to a string. @end deftypefun @subheading shishi_authorized_p @anchor{shishi_authorized_p} @deftypefun {int} {shishi_authorized_p} (@w{Shishi * @var{handle}}, @w{Shishi_tkt * @var{tkt}}, @w{const char * @var{authzname}}) @var{handle}: shishi handle allocated by @code{shishi_init()}. @*@var{tkt}: input variable with ticket info. @*@var{authzname}: authorization name. @strong{Description:} Simplistic authorization of @var{authzname} against encrypted client principal name inside ticket. For "basic" authentication type, the principal name must coincide with @var{authzname}. The "k5login" authentication type attempts the MIT/Heimdal method of parsing the file "~/.k5login" for additional equivalence names. @strong{Return value:} Returns 1 if @var{authzname} is authorized for services by the encrypted principal, and 0 otherwise. @end deftypefun shishi-1.0.3/doc/texi/tgs.c.texi0000644000000000000000000002532114273615522013332 00000000000000@subheading shishi_tgs @anchor{shishi_tgs} @deftypefun {int} {shishi_tgs} (@w{Shishi * @var{handle}}, @w{Shishi_tgs ** @var{tgs}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{tgs}: holds pointer to newly allocate Shishi_tgs structure. @strong{Description:} Allocate a new TGS exchange variable. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_done @anchor{shishi_tgs_done} @deftypefun {void} {shishi_tgs_done} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about AS exchange @strong{Description:} Deallocate resources associated with TGS exchange. This should be called by the application when it no longer need to utilize the TGS exchange handle. @end deftypefun @subheading shishi_tgs_tgtkt @anchor{shishi_tgs_tgtkt} @deftypefun {Shishi_tkt *} {shishi_tgs_tgtkt} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get Ticket-granting-ticket from TGS exchange. @strong{Return value:} Returns the ticket-granting-ticket used in the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_tgtkt_set @anchor{shishi_tgs_tgtkt_set} @deftypefun {void} {shishi_tgs_tgtkt_set} (@w{Shishi_tgs * @var{tgs}}, @w{Shishi_tkt * @var{tgtkt}}) @var{tgs}: structure that holds information about TGS exchange @*@var{tgtkt}: ticket granting ticket to store in TGS. @strong{Description:} Set the Ticket in the TGS exchange. @end deftypefun @subheading shishi_tgs_ap @anchor{shishi_tgs_ap} @deftypefun {Shishi_ap *} {shishi_tgs_ap} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get the AP from TGS exchange. @strong{Return value:} Returns the AP exchange (part of TGS-REQ) from the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_req @anchor{shishi_tgs_req} @deftypefun {Shishi_asn1} {shishi_tgs_req} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get the TGS-REQ from TGS exchange. @strong{Return value:} Returns the generated TGS-REQ from the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_req_set @anchor{shishi_tgs_req_set} @deftypefun {void} {shishi_tgs_req_set} (@w{Shishi_tgs * @var{tgs}}, @w{Shishi_asn1 @var{tgsreq}}) @var{tgs}: structure that holds information about TGS exchange @*@var{tgsreq}: tgsreq to store in TGS. @strong{Description:} Set the TGS-REQ in the TGS exchange. @end deftypefun @subheading shishi_tgs_req_der @anchor{shishi_tgs_req_der} @deftypefun {int} {shishi_tgs_req_der} (@w{Shishi_tgs * @var{tgs}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{tgs}: structure that holds information about TGS exchange @*@var{out}: output array with newly allocated DER encoding of TGS-REQ. @*@var{outlen}: length of output array with DER encoding of TGS-REQ. @strong{Description:} DER encode TGS-REQ. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_req_der_set @anchor{shishi_tgs_req_der_set} @deftypefun {int} {shishi_tgs_req_der_set} (@w{Shishi_tgs * @var{tgs}}, @w{char * @var{der}}, @w{size_t @var{derlen}}) @var{tgs}: structure that holds information about TGS exchange @*@var{der}: input array with DER encoded AP-REQ. @*@var{derlen}: length of input array with DER encoded AP-REQ. @strong{Description:} DER decode TGS-REQ and set it TGS exchange. If decoding fails, the TGS-REQ in the TGS exchange remains. @strong{Return value:} Returns SHISHI_OK. @end deftypefun @subheading shishi_tgs_req_process @anchor{shishi_tgs_req_process} @deftypefun {int} {shishi_tgs_req_process} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Process new TGS-REQ and set ticket. The key to decrypt the TGS-REQ is taken from the EncKDCReqPart of the TGS tgticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_req_build @anchor{shishi_tgs_req_build} @deftypefun {int} {shishi_tgs_req_build} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Checksum data in authenticator and add ticket and authenticator to TGS-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_rep @anchor{shishi_tgs_rep} @deftypefun {Shishi_asn1} {shishi_tgs_rep} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get TGS-REP from TGS exchange. @strong{Return value:} Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_rep_der @anchor{shishi_tgs_rep_der} @deftypefun {int} {shishi_tgs_rep_der} (@w{Shishi_tgs * @var{tgs}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{tgs}: structure that holds information about TGS exchange @*@var{out}: output array with newly allocated DER encoding of TGS-REP. @*@var{outlen}: length of output array with DER encoding of TGS-REP. @strong{Description:} DER encode TGS-REP. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_rep_process @anchor{shishi_tgs_rep_process} @deftypefun {int} {shishi_tgs_rep_process} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Process new TGS-REP and set ticket. The key to decrypt the TGS-REP is taken from the EncKDCRepPart of the TGS tgticket. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_rep_build @anchor{shishi_tgs_rep_build} @deftypefun {int} {shishi_tgs_rep_build} (@w{Shishi_tgs * @var{tgs}}, @w{int @var{keyusage}}, @w{Shishi_key * @var{key}}) @var{tgs}: structure that holds information about TGS exchange @*@var{keyusage}: keyusage integer. @*@var{key}: user's key, used to encrypt the encrypted part of the TGS-REP. @strong{Description:} Build TGS-REP. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_krberror @anchor{shishi_tgs_krberror} @deftypefun {Shishi_asn1} {shishi_tgs_krberror} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get KRB-ERROR from TGS exchange. @strong{Return value:} Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_krberror_der @anchor{shishi_tgs_krberror_der} @deftypefun {int} {shishi_tgs_krberror_der} (@w{Shishi_tgs * @var{tgs}}, @w{char ** @var{out}}, @w{size_t * @var{outlen}}) @var{tgs}: structure that holds information about TGS exchange @*@var{out}: output array with newly allocated DER encoding of KRB-ERROR. @*@var{outlen}: length of output array with DER encoding of KRB-ERROR. @strong{Description:} DER encode KRB-ERROR. @var{out} is allocated by this function, and it is the responsibility of caller to deallocate it. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_krberror_set @anchor{shishi_tgs_krberror_set} @deftypefun {void} {shishi_tgs_krberror_set} (@w{Shishi_tgs * @var{tgs}}, @w{Shishi_asn1 @var{krberror}}) @var{tgs}: structure that holds information about TGS exchange @*@var{krberror}: krberror to store in TGS. @strong{Description:} Set the KRB-ERROR in the TGS exchange. @end deftypefun @subheading shishi_tgs_tkt @anchor{shishi_tgs_tkt} @deftypefun {Shishi_tkt *} {shishi_tgs_tkt} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Get Ticket from TGS exchange. @strong{Return value:} Returns the newly acquired ticket from the TGS exchange, or NULL if not yet set or an error occured. @end deftypefun @subheading shishi_tgs_tkt_set @anchor{shishi_tgs_tkt_set} @deftypefun {void} {shishi_tgs_tkt_set} (@w{Shishi_tgs * @var{tgs}}, @w{Shishi_tkt * @var{tkt}}) @var{tgs}: structure that holds information about TGS exchange @*@var{tkt}: ticket to store in TGS. @strong{Description:} Set the Ticket in the TGS exchange. @end deftypefun @subheading shishi_tgs_sendrecv_hint @anchor{shishi_tgs_sendrecv_hint} @deftypefun {int} {shishi_tgs_sendrecv_hint} (@w{Shishi_tgs * @var{tgs}}, @w{Shishi_tkts_hint * @var{hint}}) @var{tgs}: structure that holds information about TGS exchange @*@var{hint}: additional parameters that modify connection behaviour, or @code{NULL}. @strong{Description:} Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets. The @var{hint} structure can be used to set, e.g., parameters for TLS authentication. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_sendrecv @anchor{shishi_tgs_sendrecv} @deftypefun {int} {shishi_tgs_sendrecv} (@w{Shishi_tgs * @var{tgs}}) @var{tgs}: structure that holds information about TGS exchange @strong{Description:} Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_set_server @anchor{shishi_tgs_set_server} @deftypefun {int} {shishi_tgs_set_server} (@w{Shishi_tgs * @var{tgs}}, @w{const char * @var{server}}) @var{tgs}: structure that holds information about TGS exchange @*@var{server}: indicates the server to acquire ticket for. @strong{Description:} Set the server in the TGS-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_set_realm @anchor{shishi_tgs_set_realm} @deftypefun {int} {shishi_tgs_set_realm} (@w{Shishi_tgs * @var{tgs}}, @w{const char * @var{realm}}) @var{tgs}: structure that holds information about TGS exchange @*@var{realm}: indicates the realm to acquire ticket for. @strong{Description:} Set the server in the TGS-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun @subheading shishi_tgs_set_realmserver @anchor{shishi_tgs_set_realmserver} @deftypefun {int} {shishi_tgs_set_realmserver} (@w{Shishi_tgs * @var{tgs}}, @w{const char * @var{realm}}, @w{const char * @var{server}}) @var{tgs}: structure that holds information about TGS exchange @*@var{realm}: indicates the realm to acquire ticket for. @*@var{server}: indicates the server to acquire ticket for. @strong{Description:} Set the realm and server in the TGS-REQ. @strong{Return value:} Returns SHISHI_OK iff successful. @end deftypefun shishi-1.0.3/doc/texi/keys.c.texi0000644000000000000000000001446114273615521013512 00000000000000@subheading shishi_keys @anchor{shishi_keys} @deftypefun {int} {shishi_keys} (@w{Shishi * @var{handle}}, @w{Shishi_keys ** @var{keys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{keys}: output pointer to newly allocated keys handle. @strong{Description:} Get a new key set handle. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_keys_done @anchor{shishi_keys_done} @deftypefun {void} {shishi_keys_done} (@w{Shishi_keys ** @var{keys}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @strong{Description:} Deallocates all resources associated with key set. The key set handle must not be used in calls to other shishi_keys_*() functions after this. @end deftypefun @subheading shishi_keys_size @anchor{shishi_keys_size} @deftypefun {int} {shishi_keys_size} (@w{Shishi_keys * @var{keys}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @strong{Description:} Get size of key set. @strong{Return value:} Returns number of keys stored in key set. @end deftypefun @subheading shishi_keys_nth @anchor{shishi_keys_nth} @deftypefun {const Shishi_key *} {shishi_keys_nth} (@w{Shishi_keys * @var{keys}}, @w{int @var{keyno}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @*@var{keyno}: integer indicating requested key in key set. @strong{Get the n:} th ticket in key set. @strong{Return value:} Returns a key handle to the keyno:th key in the key set, or NULL if @var{keys} is invalid or @var{keyno} is out of bounds. The first key is @var{keyno} 0, the second key @var{keyno} 1, and so on. @end deftypefun @subheading shishi_keys_remove @anchor{shishi_keys_remove} @deftypefun {void} {shishi_keys_remove} (@w{Shishi_keys * @var{keys}}, @w{int @var{keyno}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @*@var{keyno}: key number of key in the set to remove. The first key is key number 0. @strong{Description:} Remove a key, indexed by @var{keyno}, in given key set. @end deftypefun @subheading shishi_keys_add @anchor{shishi_keys_add} @deftypefun {int} {shishi_keys_add} (@w{Shishi_keys * @var{keys}}, @w{Shishi_key * @var{key}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @*@var{key}: key to be added to key set. @strong{Description:} Add a key to the key set. A deep copy of the key is stored, so changing @var{key}, or deallocating it, will not modify the value stored in the key set. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_keys_print @anchor{shishi_keys_print} @deftypefun {int} {shishi_keys_print} (@w{Shishi_keys * @var{keys}}, @w{FILE * @var{fh}}) @var{keys}: key set to print. @*@var{fh}: file handle, open for writing, to print keys to. @strong{Description:} Print all keys in set using shishi_key_print. @strong{Returns:} Returns @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_keys_to_file @anchor{shishi_keys_to_file} @deftypefun {int} {shishi_keys_to_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_keys * @var{keys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: filename to append key to. @*@var{keys}: set of keys to print. @strong{Description:} Print an ASCII representation of a key structure to a file, for each key in the key set. The file is appended to if it exists. See @code{shishi_key_print()} for the format of the output. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @end deftypefun @subheading shishi_keys_from_file @anchor{shishi_keys_from_file} @deftypefun {int} {shishi_keys_from_file} (@w{Shishi_keys * @var{keys}}, @w{const char * @var{filename}}) @var{keys}: key set handle as allocated by @code{shishi_keys()}. @*@var{filename}: filename to read keys from. @strong{Description:} Read zero or more keys from file @var{filename} and append them to the keyset @var{keys}. See @code{shishi_key_print()} for the format of the input. @strong{Return value:} Returns @code{SHISHI_OK} iff successful. @strong{Since:} 0.0.42 @end deftypefun @subheading shishi_keys_for_serverrealm_in_file @anchor{shishi_keys_for_serverrealm_in_file} @deftypefun {Shishi_key *} {shishi_keys_for_serverrealm_in_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{const char * @var{server}}, @w{const char * @var{realm}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{filename}: file to read keys from. @*@var{server}: server name to get key for. @*@var{realm}: realm of server to get key for. @strong{Description:} Get keys that match specified @var{server} and @var{realm} from the key set file @var{filename}. @strong{Return value:} Returns the key for specific server and realm, read from the indicated file, or NULL if no key could be found or an error encountered. @end deftypefun @subheading shishi_keys_for_server_in_file @anchor{shishi_keys_for_server_in_file} @deftypefun {Shishi_key *} {shishi_keys_for_server_in_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{const char * @var{server}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{filename}: file to read keys from. @*@var{server}: server name to get key for. @strong{Description:} Get key for specified @var{server} from @var{filename}. @strong{Return value:} Returns the key for specific server, read from the indicated file, or NULL if no key could be found or an error encountered. @end deftypefun @subheading shishi_keys_for_localservicerealm_in_file @anchor{shishi_keys_for_localservicerealm_in_file} @deftypefun {Shishi_key *} {shishi_keys_for_localservicerealm_in_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{const char * @var{service}}, @w{const char * @var{realm}}) @var{handle}: Shishi library handle create by @code{shishi_init()}. @*@var{filename}: file to read keys from. @*@var{service}: service to get key for. @*@var{realm}: realm of server to get key for, or NULL for default realm. @strong{Description:} Get key for specified @var{service} and @var{realm} from @var{filename}. @strong{Return value:} Returns the key for the server "SERVICE/HOSTNAME@@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see @code{shishi_hostkeys_default_file()}), or NULL if no key could be found or an error encountered. @end deftypefun shishi-1.0.3/doc/texi/kerberos5.c.texi0000644000000000000000000000000014273615520014417 00000000000000shishi-1.0.3/doc/texi/keytab.c.texi0000644000000000000000000001306014273615521014010 00000000000000@subheading shishi_keys_add_keytab_mem @anchor{shishi_keys_add_keytab_mem} @deftypefun {int} {shishi_keys_add_keytab_mem} (@w{Shishi * @var{handle}}, @w{const char * @var{data}}, @w{size_t @var{len}}, @w{Shishi_keys * @var{keys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{data}: constant memory buffer with keytab of @var{len} size. @*@var{len}: size of memory buffer with keytab data. @*@var{keys}: allocated key set to store keys in. @strong{Description:} Read keys from a MIT keytab data structure, and add them to the key set. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} Returns @code{SHISHI_KEYTAB_ERROR} if the data does not represent a valid keytab structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_keys_add_keytab_file @anchor{shishi_keys_add_keytab_file} @deftypefun {int} {shishi_keys_add_keytab_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_keys * @var{keys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: name of file to read. @*@var{keys}: allocated key set to store keys in. @strong{Description:} Read keys from a MIT keytab data structure from a file, and add the keys to the key set. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} Returns @code{SHISHI_IO_ERROR} if the file cannot be read, @code{SHISHI_KEYTAB_ERROR} if the data cannot be parsed as a valid keytab structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_keys_from_keytab_mem @anchor{shishi_keys_from_keytab_mem} @deftypefun {int} {shishi_keys_from_keytab_mem} (@w{Shishi * @var{handle}}, @w{const char * @var{data}}, @w{size_t @var{len}}, @w{Shishi_keys ** @var{outkeys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{data}: constant memory buffer with keytab of @var{len} size. @*@var{len}: size of memory buffer with keytab data. @*@var{outkeys}: pointer to key set that will be allocated and populated, must be deallocated by caller on succes. @strong{Description:} Create a new key set populated with keys from a MIT keytab data structure read from a memory block. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} Returns @code{SHISHI_KEYTAB_ERROR} if the data does not represent a valid keytab structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_keys_from_keytab_file @anchor{shishi_keys_from_keytab_file} @deftypefun {int} {shishi_keys_from_keytab_file} (@w{Shishi * @var{handle}}, @w{const char * @var{filename}}, @w{Shishi_keys ** @var{outkeys}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{filename}: name of file to read. @*@var{outkeys}: pointer to key set that will be allocated and populated, must be deallocated by caller on succes. @strong{Description:} Create a new key set populated with keys from a MIT keytab data structure read from a file. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} Returns @code{SHISHI_IO_ERROR} if the file cannot be read, @code{SHISHI_KEYTAB_ERROR} if the data cannot be parsed as a valid keytab structure, and @code{SHISHI_OK} on success. @end deftypefun @subheading shishi_keys_to_keytab_mem @anchor{shishi_keys_to_keytab_mem} @deftypefun {int} {shishi_keys_to_keytab_mem} (@w{Shishi * @var{handle}}, @w{Shishi_keys * @var{keys}}, @w{char ** @var{out}}, @w{size_t * @var{len}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{keys}: key set to convert to keytab format. @*@var{out}: constant memory buffer with keytab of @var{len} size. @*@var{len}: size of memory buffer with keytab data. @strong{Description:} Write keys to a MIT keytab data structure. The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} On success @code{SHISHI_OK} is returned, otherwise an error code. @strong{Since:} 0.0.42 @end deftypefun @subheading shishi_keys_to_keytab_file @anchor{shishi_keys_to_keytab_file} @deftypefun {int} {shishi_keys_to_keytab_file} (@w{Shishi * @var{handle}}, @w{Shishi_keys * @var{keys}}, @w{const char * @var{filename}}) @var{handle}: shishi handle as allocated by @code{shishi_init()}. @*@var{keys}: keyset to write. @*@var{filename}: name of file to write. @strong{Description:} Write keys to a MIT keytab data structure. The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse-engineered format. @strong{Returns:} @code{SHISHI_FOPEN_ERROR} if there is a problem opening @var{filename} for writing, @code{SHISHI_IO_ERROR} if there is problem writing the file, and @code{SHISHI_OK} on success. @strong{Since:} 0.0.42 @end deftypefun shishi-1.0.3/doc/texi/config.c.texi0000644000000000000000000000460114273615523014001 00000000000000@subheading shisa_cfg_db @anchor{shisa_cfg_db} @deftypefun {int} {shisa_cfg_db} (@w{Shisa * @var{dbh}}, @w{const char * @var{value}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{value}: String containing database definition. @strong{Description:} Sets up and opens a new database. The syntax of the parameter @var{value} is "TYPE[ LOCATION[ PARAMETER]]", where TYPE is one of the supported database types, typically "file". The above substrings LOCATION and PARAMETER are optional strings passed on verbatim to the database during initialization. Neither TYPE nor LOCATION may contain embedded spaces, but PARAMETER may do so. @strong{Return value:} Returns @code{SHISA_OK} if a database was parsed and opened successfully. @end deftypefun @subheading shisa_cfg @anchor{shisa_cfg} @deftypefun {int} {shisa_cfg} (@w{Shisa * @var{dbh}}, @w{const char * @var{option}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{option}: String with options to prime the Shisa library. @strong{Description:} Configures the Shisa library from the specification @var{option}. This call expects a string declaration of the form "db=VALUE", or "db VALUE". Here VALUE is the same declaration as used by @code{shisa_cfg_db()}, i.e., of the form "TYPE[ LOCATION[ PARAMETER]]". The prefix "db", mandatory in @var{option}, makes @code{shisa_cfg()} suited to a syntax with key-value pairs also in PARAMETER. @strong{Return value:} Returns @code{SHISA_OK} if @var{option} is valid. @end deftypefun @subheading shisa_cfg_from_file @anchor{shisa_cfg_from_file} @deftypefun {int} {shisa_cfg_from_file} (@w{Shisa * @var{dbh}}, @w{const char * @var{cfg}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @*@var{cfg}: File name where to read configuration. @strong{Description:} Configures the Shisa library using a configuration file located at @var{cfg}. @strong{Return value:} Returns @code{SHISA_OK} if successful. Typically returns @code{SHISA_CFG_NO_FILE} in response to a misnamed file. @end deftypefun @subheading shisa_cfg_default_systemfile @anchor{shisa_cfg_default_systemfile} @deftypefun {const char *} {shisa_cfg_default_systemfile} (@w{Shisa * @var{dbh}}) @var{dbh}: Shisa library handle created by @code{shisa()}. @strong{Description:} Fetches information on the installed configuration. @strong{Return value:} Returns file name of the active system configuration. @end deftypefun shishi-1.0.3/doc/version.texi0000644000000000000000000000014014273615323013017 00000000000000@set UPDATED 7 August 2022 @set UPDATED-MONTH August 2022 @set EDITION 1.0.3 @set VERSION 1.0.3 shishi-1.0.3/doc/keytab.txt0000644000000000000000000001064114273523166012471 00000000000000The Kerberos Keytab Binary File Format Copyright (C) 2006 Michael B Allen http://www.ioplex.com/utilities/keytab.txt Last updated: Fri May 5 13:39:40 EDT 2006 The MIT keytab binary format is not a standard format, nor is it documented anywhere in detail. The format has evolved and may continue to. It is however understood by several Kerberos implementations including Heimdal and of course MIT and keytab files are created by the ktpass.exe utility from Windows. So it has established itself as the defacto format for storing Kerberos keys. The following C-like structure definitions illustrate the MIT keytab file format. All values are in network byte order. All text is ASCII. keytab { uint16_t file_format_version; /* 0x502 */ keytab_entry entries[*]; }; keytab_entry { int32_t size; uint16_t num_components; /* sub 1 if version 0x501 */ counted_octet_string realm; counted_octet_string components[num_components]; uint32_t name_type; /* not present if version 0x501 */ uint32_t timestamp; uint8_t vno8; keyblock key; uint32_t vno; /* only present if >= 4 bytes left in entry */ }; counted_octet_string { uint16_t length; uint8_t data[length]; }; keyblock { uint16_t type; counted_octet_string; }; The keytab file format begins with the 16 bit file_format_version which at the time this document was authored is 0x502. The format of older keytabs is described at the end of this document. The file_format_version is immediately followed by an array of keytab_entry structures which are prefixed with a 32 bit size indicating the number of bytes that follow in the entry. Note that the size should be evaluated as signed. This is because a negative value indicates that the entry is in fact empty (e.g. it has been deleted) and that the negative value of that negative value (which is of course a positive value) is the offset to the next keytab_entry. Based on these size values alone the entire keytab file can be traversed. The size is followed by a 16 bit num_components field indicating the number of counted_octet_string components in the components array. The num_components field is followed by a counted_octet_string representing the realm of the principal. A counted_octet_string is simply an array of bytes prefixed with a 16 bit length. For the realm and name components, the counted_octet_string bytes are ASCII encoded text with no zero terminator. Following the realm is the components array that represents the name of the principal. The text of these components may be joined with slashs to construct the typical SPN representation. For example, the service principal HTTP/www.foo.net@FOO.NET would consist of name components "HTTP" followed by "www.foo.net". Following the components array is the 32 bit name_type (e.g. 1 is KRB5_NT_PRINCIPAL, 2 is KRB5_NT_SRV_INST, 5 is KRB5_NT_UID, etc). In practice the name_type is almost certainly 1 meaning KRB5_NT_PRINCIPAL. The 32 bit timestamp indicates the time the key was established for that principal. The value represents the number of seconds since Jan 1, 1970. The 8 bit vno8 field is the version number of the key. This value is overridden by the 32 bit vno field if it is present. The keyblock structure consists of a 16 bit value indicating the keytype (e.g. 3 is des-cbc-md5, 23 is arcfour-hmac-md5, 16 is des3-cbc-sha1, etc). This is followed by a counted_octet_string containing the key. The last field of the keytab_entry structure is optional. If the size of the keytab_entry indicates that there are at least 4 bytes remaining, a 32 bit value representing the key version number is present. This value supersedes the 8 bit vno8 value preceeding the keyblock. Older keytabs with a file_format_version of 0x501 are different in three ways: 1) All integers are in host byte order [1]. 2) The num_components field is 1 too large (i.e. after decoding, decrement by 1). 3) The 32 bit name_type field is not present. [1] The file_format_version field should really be treated as two separate 8 bit quantities representing the major and minor version number respectively. Permission to copy, modify, and distribute this document, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include this copyright notice in ALL copies of the document or portions thereof, including modifications. shishi-1.0.3/doc/gdoc-error0000755000000000000000000000247214273600463012441 00000000000000eval '(exit $?0)' && eval 'exec perl -S "$0" ${1+"$@"}' & eval 'exec perl -S "$0" $argv:q' if 0; # Generate error strings from source code. # Copyright (C) 2002-2021 Simon Josefsson. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # I consider the output of this program to be unrestricted. Use it as # you will. use strict; use warnings; my ($inerror); my ($label, $txt); while (<>) { if ($inerror) { $txt .= $1 if (m,"(.*)",); $inerror = 0 if m/},/; if (!$inerror) { print "\@item $label\n"; print $txt, "\n\n"; } } else { next unless m/{(SHISHI.*),/; next if $1 =~ m,SHISHI_OK,; # Handled separately. $inerror = 1; $label = $1; $txt = ""; } } shishi-1.0.3/doc/shishi.info-10000644000000000000000000111432514273615526012762 00000000000000This is shishi.info, produced by makeinfo version 6.7 from shishi.texi. This manual is last updated 7 August 2022 for version 1.0.3 of Shishi. Copyright (C) 2002-2022 Simon Josefsson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". INFO-DIR-SECTION GNU utilities START-INFO-DIR-ENTRY * shishi: (shishi). A Kerberos 5 implementation END-INFO-DIR-ENTRY INFO-DIR-SECTION GNU Libraries START-INFO-DIR-ENTRY * libshishi: (shishi). Library implementing Kerberos 5. END-INFO-DIR-ENTRY  File: shishi.info, Node: Top, Next: Introduction, Up: (dir) Shishi ****** This manual is last updated 7 August 2022 for version 1.0.3 of Shishi. Copyright (C) 2002-2022 Simon Josefsson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". * Menu: * Introduction:: How to use this manual. * User Manual:: Using Shishi as end-user. * Administration Manual:: Administrating server aspects of Shishi. * Reference Manual:: Detailed description of config files, etc. * Programming Manual:: Calling Shishi from a programming language. * Acknowledgements:: Whom to blame. Appendices * Criticism of Kerberos:: Why you maybe shouldn't use Kerberos. * Protocol Extensions:: Description of protocol extensions used. * Copying Information:: How you can copy and share Shishi. Indices * Function and Data Index:: Index of functions, variables and data types. * Concept Index:: Index of concepts and programs.  File: shishi.info, Node: Introduction, Next: User Manual, Prev: Top, Up: Top 1 Introduction ************** Shishi implements the Kerberos network authentication system. Shishi can be used to authenticate users in distributed systems, and is most often used via GSS-API for SSH or via SASL for IMAP/POP3. Shishi contains a library ('libshishi') that can be used by application developers to add support for Kerberos 5. There is also a command line utility ('shishi') that is used by users to acquire and manage tickets. The server side, a Key Distribution Center, is implemented by 'shishid'. Of course, a manual documenting usage aspects as well as the programming API is included. Shishi currently supports AS/TGS exchanges for acquiring tickets, pre-authentication, the AP exchange for performing client and server authentication, and SAFE/PRIV for integrity/privacy protected application data exchanges. Shishi is internationalized; error and status messages can be translated into the users' language; user name and passwords can be converted into any available character set (normally including ISO-8859-1 and UTF-8) and also be processed using an experimental Stringprep profile. Most, if not all, of the widely used encryption and checksum types are supported, such as 3DES, AES, ARCFOUR and HMAC-SHA1. Shishi is developed for the GNU/Linux system but works on many platforms including most major Unix and Windows systems. Shishi is free software licensed under the GNU General Public License version 3.0 or later. * Menu: * Getting Started:: * Features and Status:: * Overview:: * Cryptographic Overview:: * Supported Platforms:: * Getting help:: * Downloading and Installing:: * Bug Reports:: * Contributing::  File: shishi.info, Node: Getting Started, Next: Features and Status, Up: Introduction 1.1 Getting Started =================== This manual documents the Shishi application and library programming interface. All commands, functions and data types provided by Shishi are explained. The reader is assumed to possess basic familiarity with network security and the Kerberos 5 security system. This manual can be used in several ways. If read from the beginning to the end, it gives a good introduction into the library and how it can be used in an application. Forward references are included where necessary. Later on, the manual can be used as a reference manual to get just the information needed about any particular interface of the library. Experienced programmers might want to start looking at the examples at the end of the manual, and then only read up on those parts of the interface which are unclear.  File: shishi.info, Node: Features and Status, Next: Overview, Prev: Getting Started, Up: Introduction 1.2 Features and Status ======================= Shishi might have a couple of advantages over other packages doing a similar job. It's Free Software Anybody can use, modify, and redistribute it under the terms of the GNU General Public License version 3.0 or later. It's thread-safe The library uses no global variables. It's internationalized It handles non-ASCII username and passwords, and user visible strings used in the library (error messages) can be translated into the users' language. It's portable It should work on all Unix like operating systems, including Windows. Shishi is far from feature complete, it is not even a full RFC 4120 implementation yet. However, some basic functionality is implemented. A few implemented feature are mentioned below. * Initial authentication (AS) from raw key or password. This step is typically used to acquire a ticket granting ticket and, less commonly, a server ticket. * Subsequent authentication (TGS). This step is typically used to acquire a server ticket, by authenticating yourself using the ticket granting ticket. * Client-Server authentication (AP). This step is used by clients and servers to prove to each other who they are, using negotiated tickets. * Integrity protected communication (SAFE). This step is used by clients and servers to exchange integrity protected data with each other. The key is typically agreed on using the Client-Server authentication step. * Ticket cache, supporting multiple principals and realms. As tickets have a life time of typically several hours, they are managed in disk files. There can be multiple ticket caches, and each ticket cache can store tickets for multiple clients (users), servers, encryption types, etc. Functionality is provided for locating the proper ticket for every use. * Most standard cryptographic primitives. The believed most secure algorithms are supported (*note Cryptographic Overview::). * Telnet client and server. This is used to remotely login to other machines, after authenticating yourself with a ticket. * PAM module. This is used to login locally on a machine. * KDC addresses located using DNS SRV RRs. * Modularized low-level crypto interface. Currently Gnulib and Libgcrypt are supported. If you wish to add support for another low-level cryptographic library, you only have to implement a few APIs for DES, AES, MD5, SHA1, HMAC, etc. Look at 'gl/gc-gnulib.c' or 'gl/gc-libgcrypt.c' as a starting pointer. The following table summarize what the current objectives are (i.e., the todo list) and an estimate on how long it will take to implement the feature, including some reasonable startup-time to get familiar with Shishi in general. If you like to start working on anything, please let me know so work duplication can be avoided. * Parse '/etc/krb5.keytab' to extract keys to use for telnetd etc (week) * Cross-realm support (week). * PKINIT (use libksba, weeks) * Finish GSSAPI support via GSSLib (weeks) Shishi will not support GSSLib natively, but a separate project "GSSLib" is under way to produce a generic GSS implementation, and it will use Shishi to implement the Kerberos 5 mechanism. * Port to cyclone (cyclone need to mature first) * Modularize ASN.1 library so it can be replaced (days). Almost done, all ASN.1 functionality is found in lib/asn1.c, although the interface is rather libtasn1 centric. * KDC (initiated, weeks) * LDAP backend for Shisa. * Set/Change password protocol (weeks?) * Port applications to use Shishi (indefinite) * Finish server-realm stuff * Improve documentation * Improve internationalization * Add AP-REQ replay cache (week). * Study benefits by introducing a PA-TGS-REP. This would provide mutual authentication of the KDC in a way that is easier to analyze. Currently the mutual authentication property is only implicit from successful decryption of the KDC-REP and the 4 byte 'nonce'. * GUI applet for managing tickets. This is supported via the ticket-applet, of which a Shishi port is published on the Shishi home page. * Authorization library (months?) The shishi_authorized_p() is not a good solution, better would be to have a generic and flexible authorization library. Possibly based on S-EXP's in tickets? Should support non-Kerberos uses as well, of course. * Proof read manual. * X.500 support, including DOMAIN-X500-COMPRESS. I will accept patches that implement this, if it causes minimal changes to the current code.  File: shishi.info, Node: Overview, Next: Cryptographic Overview, Prev: Features and Status, Up: Introduction 1.3 Overview ============ This section describes RFC 1510 from a protocol point of view(1). Kerberos provides a means of verifying the identities of principals, (e.g., a workstation user or a network server) on an open (unprotected) network. This is accomplished without relying on authentication by the host operating system, without basing trust on host addresses, without requiring physical security of all the hosts on the network, and under the assumption that packets traveling along the network can be read, modified, and inserted at will. (Note, however, that many applications use Kerberos' functions only upon the initiation of a stream-based network connection, and assume the absence of any "hijackers" who might subvert such a connection. Such use implicitly trusts the host addresses involved.) Kerberos performs authentication under these conditions as a trusted third- party authentication service by using conventional cryptography, i.e., shared secret key. (shared secret key - Secret and private are often used interchangeably in the literature. In our usage, it takes two (or more) to share a secret, thus a shared DES key is a secret key. Something is only private when no one but its owner knows it. Thus, in public key cryptosystems, one has a public and a private key.) The authentication process proceeds as follows: A client sends a request to the authentication server (AS) requesting "credentials" for a given server. The AS responds with these credentials, encrypted in the client's key. The credentials consist of 1) a "ticket" for the server and 2) a temporary encryption key (often called a "session key"). The client transmits the ticket (which contains the client's identity and a copy of the session key, all encrypted in the server's key) to the server. The session key (now shared by the client and server) is used to authenticate the client, and may optionally be used to authenticate the server. It may also be used to encrypt further communication between the two parties or to exchange a separate sub-session key to be used to encrypt further communication. The implementation consists of one or more authentication servers running on physically secure hosts. The authentication servers maintain a database of principals (i.e., users and servers) and their secret keys. Code libraries provide encryption and implement the Kerberos protocol. In order to add authentication to its transactions, a typical network application adds one or two calls to the Kerberos library, which results in the transmission of the necessary messages to achieve authentication. The Kerberos protocol consists of several sub-protocols (or exchanges). There are two methods by which a client can ask a Kerberos server for credentials. In the first approach, the client sends a cleartext request for a ticket for the desired server to the AS. The reply is sent encrypted in the client's secret key. Usually this request is for a ticket-granting ticket (TGT) which can later be used with the ticket-granting server (TGS). In the second method, the client sends a request to the TGS. The client sends the TGT to the TGS in the same manner as if it were contacting any other application server which requires Kerberos credentials. The reply is encrypted in the session key from the TGT. Once obtained, credentials may be used to verify the identity of the principals in a transaction, to ensure the integrity of messages exchanged between them, or to preserve privacy of the messages. The application is free to choose whatever protection may be necessary. To verify the identities of the principals in a transaction, the client transmits the ticket to the server. Since the ticket is sent "in the clear" (parts of it are encrypted, but this encryption doesn't thwart replay) and might be intercepted and reused by an attacker, additional information is sent to prove that the message was originated by the principal to whom the ticket was issued. This information (called the authenticator) is encrypted in the session key, and includes a timestamp. The timestamp proves that the message was recently generated and is not a replay. Encrypting the authenticator in the session key proves that it was generated by a party possessing the session key. Since no one except the requesting principal and the server know the session key (it is never sent over the network in the clear) this guarantees the identity of the client. The integrity of the messages exchanged between principals can also be guaranteed using the session key (passed in the ticket and contained in the credentials). This approach provides detection of both replay attacks and message stream modification attacks. It is accomplished by generating and transmitting a collision-proof checksum (elsewhere called a hash or digest function) of the client's message, keyed with the session key. Privacy and integrity of the messages exchanged between principals can be secured by encrypting the data to be passed using the session key passed in the ticket, and contained in the credentials. ---------- Footnotes ---------- (1) The text is a lightly adapted version of the introduction section from RFC 1510 by J. Kohl and C. Neuman, September 1993, copyright likely owned by the RFC 1510 authors or some contributor.  File: shishi.info, Node: Cryptographic Overview, Next: Supported Platforms, Prev: Overview, Up: Introduction 1.4 Cryptographic Overview ========================== Shishi implements several of the standard cryptographic primitives. In this section we give the names of the supported encryption suites, and some notes about them, and their associated checksum suite. Statements such as "it is weak" should be read as meaning that there is no credible security analysis of the mechanism available, and/or that should an attack be published publicly, few people would likely be surprised. Also keep in mind that the key size mentioned is the actual key size, not the effective key space as far as a brute force attack is concerned. As you may infer from the descriptions, there is currently no encryption algorithm and only one checksum algorithm that inspire great confidence in its design. Hopefully this will change over time. 'NULL' 'NULL' is a dummy encryption suite for debugging. Encryption and decryption are identity functions. No integrity protection. It is weak. It is associated with the 'NULL' checksum. 'arcfour-hmac' 'arcfour-hmac-exp' 'arcfour-hmac-*' are a proprietary stream cipher with 56 bit ('arcfour-hmac-exp') or 128 bit ('arcfour-hmac') keys, used in a proprietary way described in an expired IETF draft 'draft-brezak-win2k-krb-rc4-hmac-04.txt'. Deriving keys from passwords is supported, and is done by computing a message digest (MD4) of a 16-bit Unicode representation of the ASCII password, with no salt. Data is integrity protected with a keyed hash (HMAC-MD5), where the key is derived from the base key in a creative way. It is weak. It is associated with the 'arcfour-hmac-md5' checksum. 'des-cbc-none' 'des-cbc-none' is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. It is weak, because it offers no integrity protection. This is typically only used by RFC 1964 GSS-API implementations (which try to protect integrity using an ad-hoc solution). It is associated with the 'NULL' checksum. 'des-cbc-crc' 'des-cbc-crc' is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using the key as IV (*note Key as initialization vector::). The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted 'CRC32'-like checksum. It is weak. It is associated with the 'rsa-md5-des' checksum. 'des-cbc-md4' 'des-cbc-md4' is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted MD4 hash. It is weak. It is associated with the 'rsa-md4-des' checksum. 'des-cbc-md5' 'des-cbc-md5' is DES encryption and decryption with 56 bit keys and 8 byte blocks in CBC mode, using a zero IV. The keys can be derived from passwords by an obscure application specific algorithm. Data is integrity protected with an unkeyed but encrypted MD5 hash. It is weak. It is associated with the 'rsa-md5-des' checksum. This is the strongest RFC 1510 interoperable encryption mechanism. 'des3-cbc-none' 'des3-cbc-none' is DES encryption and decryption with three 56 bit keys (effective key size 112 bits) and 8 byte blocks in CBC mode. The keys can be derived from passwords by the same algorithm as 'des3-cbc-sha1-kd'. It is weak, because it offers no integrity protection. This is typically only used by GSS-API implementations (which try to protect integrity using an ad-hoc solution) for interoperability with some existing Kerberos GSS implementations. It is associated with the 'NULL' checksum. 'des3-cbc-sha1-kd' 'des3-cbc-sha1-kd' is DES encryption and decryption with three 56 bit keys (effective key size 112 bits) and 8 byte blocks in CBC mode. The keys can be derived from passwords by a algorithm based on the paper "A Better Key Schedule For DES-like Ciphers" (1) by Uri Blumenthal and Steven M. Bellovin (it is not clear if the algorithm, and the way it is used, is used by any other protocols, although it seems unlikely). Data is integrity protected with a keyed SHA1 hash in HMAC mode. It has no security proof, but is assumed to provide adequate security in the sense that knowledge on how to crack it is not known to the public. Note that the key derivation function is not widely used outside of Kerberos, hence not widely studied. It is associated with the 'hmac-sha1-des3-kd' checksum. 'aes128-cts-hmac-sha1-96' 'aes256-cts-hmac-sha1-96' 'aes128-cts-hmac-sha1-96' and 'aes256-cts-hmac-sha1-96' is AES encryption and decryption with 128 bit and 256 bit key, respectively, and 16 byte blocks in CBC mode with Cipher Text Stealing. Cipher Text Stealing means data length of encrypted data is preserved (pure CBC add up to 7 pad characters). The keys can be derived from passwords with RSA Laboratories PKCS#5 Password Based Key Derivation Function 2(2), which is allegedly provably secure in a random oracle model. Data is integrity protected with a keyed SHA1 hash, in HMAC mode, truncated to 96 bits. There is no security proof, but the schemes are assumed to provide adequate security in the sense that knowledge on how to crack them is not known to the public. Note that AES has yet to receive the test of time, and the AES cipher encryption mode (CBC with Ciphertext Stealing, and a non-standard IV output) is not widely standardized (hence not widely studied). It is associated with the 'hmac-sha1-96-aes128' and 'hmac-sha1-96-aes256' checksums, respectively. The protocol do not include any way to negotiate which checksum mechanisms to use, so in most cases the associated checksum will be used. However, checksum mechanisms can be used with other encryption mechanisms, as long as they are compatible in terms of key format etc. Here are the names of the supported checksum mechanisms, with some notes on their status and the compatible encryption mechanisms. They are ordered by increased security as perceived by the author. 'NULL' 'NULL' is a dummy checksum suite for debugging. It provides no integrity. It is weak. It is compatible with the 'NULL' encryption mechanism. 'arcfour-hmac-md5' 'arcfour-hmac-md5' is a keyed HMAC-MD5 checksum computed on a MD5 message digest, in turn computed on a four byte message type indicator concatenated with the application data. (The 'arcfour' designation is thus somewhat misleading, but since this checksum mechanism is described in the same document as the 'arcfour' encryption mechanisms, it is not a completely unnatural designation.) It is weak. It is compatible with all encryption mechanisms. 'rsa-md4' 'rsa-md4' is a unkeyed MD4 hash computed over the message. It is weak, because it is unkeyed. However applications can, with care, use it non-weak ways (e.g., by including the hash in other messages that are protected by other means). It is compatible with all encryption mechanisms. 'rsa-md4-des' 'rsa-md4-des' is a DES CBC encryption of one block of random data and a unkeyed MD4 hash computed over the random data and the message to integrity protect. The key used is derived from the base protocol key by XOR with a constant. It is weak. It is compatible with the 'des-cbc-crc', 'des-cbc-md4', 'des-cbc-md5' encryption mechanisms. 'rsa-md5' 'rsa-md5' is a unkeyed MD5 hash computed over the message. It is weak, because it is unkeyed. However applications can, with care, use it non-weak ways (e.g., by including the hash in other messages that are protected by other means). It is compatible with all encryption mechanisms. 'rsa-md5-des' 'rsa-md5-des' is a DES CBC encryption of one block of random data and a unkeyed MD5 hash computed over the random data and the message to integrity protect. The key used is derived from the base protocol key by XOR with a constant. It is weak. It is compatible with the 'des-cbc-crc', 'des-cbc-md4', 'des-cbc-md5' encryption mechanisms. 'hmac-sha1-des3-kd' 'hmac-sha1-des3-kd' is a keyed SHA1 hash in HMAC mode computed over the message. The key is derived from the base protocol by the simplified key derivation function (similar to the password key derivation functions of 'des3-cbc-sha1-kd', which does not appear to be widely used outside Kerberos and hence not widely studied). It has no security proof, but is assumed to provide good security. The weakest part is likely the proprietary key derivation function. It is compatible with the 'des3-cbc-sha1-kd' encryption mechanism. 'hmac-sha1-96-aes128' 'hmac-sha1-96-aes256' 'hmac-sha1-96-aes*' are keyed SHA1 hashes in HMAC mode computed over the message and then truncated to 96 bits. The key is derived from the base protocol by the simplified key derivation function (similar to the password key derivation functions of 'aes*-cts-hmac-sha1-96', i.e., PKCS#5). It has no security proof, but is assumed to provide good security. It is compatible with the 'aes*-cts-hmac-sha1-96' encryption mechanisms. Several of the cipher suites have long names that can be hard to memorize. For your convenience, the following short-hand aliases exists. They can be used wherever the full encryption names are used. 'arcfour' Alias for 'arcfour-hmac'. 'des-crc' Alias for 'des-cbc-crc'. 'des-md4' Alias for 'des-cbc-md4'. 'des-md5' 'des' Alias for 'des-cbc-md5'. 'des3' '3des' Alias for 'des3-cbc-sha1-kd'. 'aes128' Alias for 'aes128-cts-hmac-sha1-96'. 'aes' 'aes256' Alias for 'aes256-cts-hmac-sha1-96'. ---------- Footnotes ---------- (1) (2)  File: shishi.info, Node: Supported Platforms, Next: Getting help, Prev: Cryptographic Overview, Up: Introduction 1.5 Supported Platforms ======================= Shishi has at some point in time been tested on the following platforms. Online build reports for each platforms and Shishi version is available at . 1. Debian GNU/Linux 3.0 (Woody) GCC 2.95.4 and GNU Make. This is the main development platform. 'alphaev67-unknown-linux-gnu', 'alphaev6-unknown-linux-gnu', 'arm-unknown-linux-gnu', 'armv4l-unknown-linux-gnu', 'hppa-unknown-linux-gnu', 'hppa64-unknown-linux-gnu', 'i686-pc-linux-gnu', 'ia64-unknown-linux-gnu', 'm68k-unknown-linux-gnu', 'mips-unknown-linux-gnu', 'mipsel-unknown-linux-gnu', 'powerpc-unknown-linux-gnu', 's390-ibm-linux-gnu', 'sparc-unknown-linux-gnu', 'sparc64-unknown-linux-gnu'. 2. Debian GNU/Linux 2.1 GCC 2.95.4 and GNU Make. 'armv4l-unknown-linux-gnu'. 3. Tru64 UNIX Tru64 UNIX C compiler and Tru64 Make. 'alphaev67-dec-osf5.1', 'alphaev68-dec-osf5.1'. 4. SuSE Linux 7.1 GCC 2.96 and GNU Make. 'alphaev6-unknown-linux-gnu', 'alphaev67-unknown-linux-gnu'. 5. SuSE Linux 7.2a GCC 3.0 and GNU Make. 'ia64-unknown-linux-gnu'. 6. SuSE Linux GCC 3.2.2 and GNU Make. 'x86_64-unknown-linux-gnu' (AMD64 Opteron "Melody"). 7. RedHat Linux 7.2 GCC 2.96 and GNU Make. 'alphaev6-unknown-linux-gnu', 'alphaev67-unknown-linux-gnu', 'ia64-unknown-linux-gnu'. 8. RedHat Linux 8.0 GCC 3.2 and GNU Make. 'i686-pc-linux-gnu'. 9. RedHat Advanced Server 2.1 GCC 2.96 and GNU Make. 'i686-pc-linux-gnu'. 10. Slackware Linux 8.0.01 GCC 2.95.3 and GNU Make. 'i686-pc-linux-gnu'. 11. Mandrake Linux 9.0 GCC 3.2 and GNU Make. 'i686-pc-linux-gnu'. 12. IRIX 6.5 MIPS C compiler, IRIX Make. 'mips-sgi-irix6.5'. 13. AIX 4.3.2 IBM C for AIX compiler, AIX Make. 'rs6000-ibm-aix4.3.2.0'. 14. HP-UX 11 HP-UX C compiler and HP Make. 'ia64-hp-hpux11.22', 'hppa2.0w-hp-hpux11.11'. 15. SUN Solaris 2.8 Sun WorkShop Compiler C 6.0 and SUN Make. 'sparc-sun-solaris2.8'. 16. NetBSD 1.6 GCC 2.95.3 and GNU Make. 'alpha-unknown-netbsd1.6', 'i386-unknown-netbsdelf1.6'. 17. OpenBSD 3.1 and 3.2 GCC 2.95.3 and GNU Make. 'alpha-unknown-openbsd3.1', 'i386-unknown-openbsd3.1'. 18. FreeBSD 4.7 and 4.8 GCC 2.95.4 and GNU Make. 'alpha-unknown-freebsd4.7', 'alpha-unknown-freebsd4.8', 'i386-unknown-freebsd4.7', 'i386-unknown-freebsd4.8'. 19. MacOS X 10.2 Server Edition GCC 3.1 and GNU Make. 'powerpc-apple-darwin6.5'. 20. Cross compiled to uClinux/uClibc on Motorola Coldfire. GCC 3.4 and GNU Make 'm68k-uclinux-elf'. If you use Shishi on, or port Shishi to, a new platform please report it to the author (*note Bug Reports::).  File: shishi.info, Node: Getting help, Next: Downloading and Installing, Prev: Supported Platforms, Up: Introduction 1.6 Getting help ================ A mailing list where users of Shishi may help each other exists, and you can reach it by sending e-mail to . Archives of the mailing list discussions, and an interface to manage subscriptions, is available through the World Wide Web at .  File: shishi.info, Node: Downloading and Installing, Next: Bug Reports, Prev: Getting help, Up: Introduction 1.7 Downloading and Installing ============================== The package can be downloaded from several places, including: The latest version is stored in a file, e.g., 'shishi-1.0.3.tar.gz' where the '1.0.3' indicate the highest version number. The package is then extracted, configured and built like many other packages that use Autoconf. For detailed information on configuring and building it, refer to the 'INSTALL' file that is part of the distribution archive. Here is an example terminal session that download, configure, build and install the package. You will need a few basic tools, such as 'sh', 'make' and 'cc'. $ wget -q ftp://alpha.gnu.org/pub/gnu/shishi/shishi-1.0.3.tar.gz $ tar xfz shishi-1.0.3.tar.gz $ cd shishi-1.0.3/ $ ./configure ... $ make ... $ make install ... After this you should be prepared to continue with the user, administration or programming manual, depending on how you want to use Shishi. A few 'configure' options may be relevant, summarized in the table. '--disable-des' '--disable-3des' '--disable-aes' '--disable-md' '--disable-null' '--disable-arcfour' Disable a cryptographic algorithm at compile time. Usually it is better to disable algorithms during run-time with the configuration file, but this allows you to reduce the code size slightly. '--disable-starttls' Disable the experimental TLS support for KDC connections. If you do not use a Shishi KDC, this support is of no use so you could safely disable it. '--without-stringprep' Disable internationalized string processing. For the complete list, refer to the output from 'configure --help'.  File: shishi.info, Node: Bug Reports, Next: Contributing, Prev: Downloading and Installing, Up: Introduction 1.8 Bug Reports =============== If you think you have found a bug in Shishi, please investigate it and report it. * Please make sure that the bug is really in Shishi, and preferably also check that it hasn't already been fixed in the latest version. * You have to send us a test case that makes it possible for us to reproduce the bug. * You also have to explain what is wrong; if you get a crash, or if the results printed are not good and in that case, in what way. Make sure that the bug report includes all information you would need to fix this kind of bug for someone else. Please make an effort to produce a self-contained report, with something definite that can be tested or debugged. Vague queries or piecemeal messages are difficult to act on and don't help the development effort. If your bug report is good, we will do our best to help you to get a corrected version of the software; if the bug report is poor, we won't do anything about it (apart from asking you to send better bug reports). If you think something in this manual is unclear, or downright incorrect, or if the language needs to be improved, please also send a note. Send your bug report to: 'bug-shishi@josefsson.org'  File: shishi.info, Node: Contributing, Prev: Bug Reports, Up: Introduction 1.9 Contributing ================ If you want to submit a patch for inclusion - from solve a typo you discovered, up to adding support for a new feature - you should submit it as a bug report (*note Bug Reports::). There are some things that you can do to increase the chances for it to be included in the official package. Unless your patch is very small (say, under 10 lines) we require that you assign the copyright of your work to the Free Software Foundation. This is to protect the freedom of the project. If you have not already signed papers, we will send you the necessary information when you submit your contribution. For contributions that doesn't consist of actual programming code, the only guidelines are common sense. Use it. For code contributions, a number of style guides will help you: * Coding Style. Follow the GNU Standards document (*note GNU Coding Standards: (standards)top.). If you normally code using another coding standard, there is no problem, but you should use 'indent' to reformat the code (*note GNU Indent: (indent)top.) before submitting your work. * Use the unified diff format 'diff -u'. * Return errors. The only valid reason for ever aborting the execution of the program is due to memory allocation errors, but for that you should call 'shishi_xalloc_die' to allow the application to recover if it wants to. * Design with thread safety in mind. Don't use global variables. Don't even write to per-handle global variables unless the documented behaviour of the function you write is to write to the per-handle global variable. * Avoid using the C math library. It causes problems for embedded implementations, and in most situations it is very easy to avoid using it. * Document your functions. Use comments before each function headers, that, if properly formatted, are extracted into Texinfo manuals and GTK-DOC web pages. * Supply a ChangeLog and NEWS entries, where appropriate.  File: shishi.info, Node: User Manual, Next: Administration Manual, Prev: Introduction, Up: Top 2 User Manual ************* Usually Shishi interacts with you to get some initial authentication information like a password, and then contacts a server to receive a so called ticket granting ticket. From now on, you rarely interact with Shishi directly. Applications that need security services instruct the Shishi library to use the ticket granting ticket to get new tickets for various servers. An example could be if you log on to a host remotely via 'telnet'. The host usually requires authentication before permitting you in. The 'telnet' client uses the ticket granting ticket to get a ticket for the server, and then uses this ticket to authenticate you against the server (typically the server is also authenticated to you). You perform the initial authentication by typing 'shishi' at the prompt. Sometimes it is necessary to supply options telling Shishi what your principal name (user name in the Kerberos realm) or your realm is. In the example, I specify the client name 'simon@JOSEFSSON.ORG'. $ shishi simon@JOSEFSSON.ORG Enter password for `simon@JOSEFSSON.ORG': simon@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:44:49 2003 Endtime: Fri Aug 15 05:01:29 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: INITIAL (512) $ As you can see, Shishi also prints a short description of the ticket received. A logical next step is to display all tickets you have received. By the way, the tickets are usually stored as text in '~/.shishi/tickets'. This is achieved by typing 'shishi --list'. $ shishi --list Tickets in `/home/jas/.shishi/tickets': jas@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: krbtgt/JOSEFSSON.ORG key des-cbc-md5 (3) Ticket key: des-cbc-md5 (3) protected by des-cbc-md5 (3) Ticket flags: INITIAL (512) jas@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Starttime: Fri Aug 15 04:49:49 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: host/latte.josefsson.org key des-cbc-md5 (3) Ticket key: des-cbc-md5 (3) protected by des-cbc-md5 (3) 2 tickets found. $ As you can see, I had a ticket for the server 'host/latte.josefsson.org' which was generated by 'telnet':ing to that host. If, for some reason, you want to manually get a ticket for a specific server, you can use the 'shishi --server-name' command. Normally, however, the application that uses Shishi will take care of getting a ticket for the appropriate server, so you normally wouldn't need to issue this command. $ shishi --server-name=user/billg --encryption-type=des-cbc-md4 jas@JOSEFSSON.ORG: Authtime: Fri Aug 15 04:49:46 2003 Starttime: Fri Aug 15 04:54:33 2003 Endtime: Fri Aug 15 05:06:26 2003 Server: user/billg key des-cbc-md4 (2) Ticket key: des-cbc-md4 (2) protected by des-cbc-md5 (3) $ As you can see, I acquired a ticket for 'user/billg' with a 'des-cbc-md4' (*note Cryptographic Overview::) encryption key specified with the '--encryption-type' parameter. To wrap up this introduction, let us see how you can remove tickets. You may want to do this if you leave your terminal for lunch or similar, and don't want someone to be able to copy the file and then use your credentials. Note that this only destroys the tickets locally, it does not contact any server telling that these credentials are no longer valid. So, if someone stole your ticket file, you must still contact your administrator and have them reset your account. Simply using this switch is not sufficient. $ shishi --server-name=imap/latte.josefsson.org --destroy 1 ticket removed. $ shishi --server-name=foobar --destroy No tickets removed. $ shishi --destroy 3 tickets removed. $ Since the '--server-name' parameter takes a long string to type, it is possible to type the server name directly, after the client name. The following example demonstrates an AS-REQ followed by a TGS-REQ for a specific server (assuming you did not have any tickets to begin with). $ src/shishi simon@latte.josefsson.org imap/latte.josefsson.org Enter password for `simon@latte.josefsson.org': simon@latte.josefsson.org: Acquired: Wed Aug 27 17:21:06 2003 Expires: Wed Aug 27 17:37:46 2003 Server: imap/latte.josefsson.org key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (12) $ Refer to the reference manual for all available parameters (*note Parameters for shishi::). The rest of this section contains descriptions of more specialized usage modes that can be ignored by most users. 2.1 Proxiable and Proxy Tickets =============================== At times it may be necessary for a principal to allow a service to perform an operation on its behalf. The service must be able to take on the identity of the client, but only for a particular purpose. A principal can allow a service to take on the principal's identity for a particular purpose by granting it a proxy. The process of granting a proxy using the proxy and proxiable flags is used to provide credentials for use with specific services. Though conceptually also a proxy, users wishing to delegate their identity in a form usable for all purpose MUST use the ticket forwarding mechanism described in the next section to forward a ticket-granting ticket. The PROXIABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. When set, this flag tells the ticket-granting server that it is OK to issue a new ticket (but not a ticket-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket-granting ticket, and reset when requesting any other ticket. This flag allows a client to pass a proxy to a server to perform a remote request on its behalf (e.g. a print service client can give the print server a proxy to access the client's files on a particular file server in order to satisfy a print request). In order to complicate the use of stolen credentials, Kerberos tickets are usually valid from only those network addresses specifically included in the ticket[4]. When granting a proxy, the client MUST specify the new network address from which the proxy is to be used, or indicate that the proxy is to be issued for use from any address. The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail. Here is how you would acquire a PROXY ticket for the service 'imap/latte.josefsson.org': $ shishi jas@JOSEFSSON.ORG imap/latte.josefsson.org --proxy Enter password for `jas@JOSEFSSON.ORG': libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:02:35 2003 Starttime: Mon Sep 8 20:02:36 2003 Endtime: Tue Sep 9 04:02:35 2003 Server: imap/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXY (16) $ As you noticed, this asked for your password. The reason is that proxy tickets must be acquired using a proxiable ticket granting ticket, which was not present. If you often need to get proxy tickets, you may acquire a proxiable ticket granting ticket from the start: $ shishi --proxiable Enter password for `jas@JOSEFSSON.ORG': jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:04:27 2003 Endtime: Tue Sep 9 04:04:27 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXIABLE INITIAL (520) Then you should be able to acquire proxy tickets based on that ticket granting ticket, as follows: $ shishi jas@JOSEFSSON.ORG imap/latte.josefsson.org --proxy libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:04:27 2003 Starttime: Mon Sep 8 20:04:32 2003 Endtime: Tue Sep 9 04:04:27 2003 Server: imap/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: PROXY (16) $ 2.2 Forwardable and Forwarded Tickets ===================================== Authentication forwarding is an instance of a proxy where the service that is granted is complete use of the client's identity. An example where it might be used is when a user logs in to a remote system and wants authentication to work from that system as if the login were local. The FORWARDABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket-granting ticket. This flag allows for authentication forwarding without requiring the user to enter a password again. If the flag is not set, then authentication forwarding is not permitted, but the same result can still be achieved if the user engages in the AS exchange specifying the requested network addresses and supplies a password. The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non-FORWARDED tickets. If addressless tickets are forwarded from one system to another, clients SHOULD still use this option to obtain a new TGT in order to have different session keys on the different systems. Here is how you would acquire a FORWARDED ticket for the service 'host/latte.josefsson.org': $ shishi jas@JOSEFSSON.ORG host/latte.josefsson.org --forwarded Enter password for `jas@JOSEFSSON.ORG': libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:07:11 2003 Starttime: Mon Sep 8 20:07:12 2003 Endtime: Tue Sep 9 04:07:11 2003 Server: host/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDED (4) $ As you noticed, this asked for your password. The reason is that forwarded tickets must be acquired using a forwardable ticket granting ticket, which was not present. If you often need to get forwarded tickets, you may acquire a forwardable ticket granting ticket from the start: $ shishi --forwardable Enter password for `jas@JOSEFSSON.ORG': jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:08:53 2003 Endtime: Tue Sep 9 04:08:53 2003 Server: krbtgt/JOSEFSSON.ORG key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDABLE INITIAL (514) $ Then you should be able to acquire forwarded tickets based on that ticket granting ticket, as follows: $ shishi jas@JOSEFSSON.ORG host/latte.josefsson.org --forwarded libshishi: warning: KDC bug: Reply encrypted using wrong key. jas@JOSEFSSON.ORG: Authtime: Mon Sep 8 20:08:53 2003 Starttime: Mon Sep 8 20:08:57 2003 Endtime: Tue Sep 9 04:08:53 2003 Server: host/latte.josefsson.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by des3-cbc-sha1-kd (16) Ticket flags: FORWARDED (4) $  File: shishi.info, Node: Administration Manual, Next: Reference Manual, Prev: User Manual, Up: Top 3 Administration Manual *********************** Here you will learn how to set up, run and maintain the Shishi Kerberos server. Kerberos is incompatible with the standard Unix '/etc/passwd' password database(1), therefore the first step will be to create a Kerberos user database. Shishi's user database system is called Shisa. Once Shisa has been configured, you can then start the server and begin issuing Kerberos tickets to your users. The Shishi server is called 'shishid'. After getting the server up and running, we discuss how you can set up multiple Kerberos servers, to increase availability or offer load-balancing. Finally, we include some information intended for developers, that will enable you to customize Shisa to use an external user database, such as a LDAP server or SQL database. * Menu: * Introduction to Shisa:: Explanation of the Shishi user database. * Configuring Shisa:: Define the user database in Shisa. * Using Shisa:: How to add realms and principals to database. * Starting Shishid:: Issue Kerberos tickets to your users. * Configuring DNS for KDC:: Placing the KDC address in DNS is useful. * Kerberos via TLS:: How to setup Shishi to use TLS. * Multiple servers:: High availability and load-balancing. * Developer information:: Writing your own Shisa database backend. ---------- Footnotes ---------- (1) And besides, Shishi is intended to work on non-Unix platforms as well.  File: shishi.info, Node: Introduction to Shisa, Next: Configuring Shisa, Up: Administration Manual 3.1 Introduction to Shisa ========================= The user database part of Shishi is called Shisa. The Shisa library is independent of the core Shishi library. Shisa is responsible for storing the name of your realms, the name of your principals (users), accounting information for the users (i.e., when each account starts to be valid and when it expires), and the cryptographic keys each user has. Some Kerberos internal data can also be stored, such as the key version number, the last dates for when various ticket requests were made, the cryptographic salt, string-to-key parameters and password for each user. Not all information need to be stored. For example, in some situations it is prudent to leave the password field empty, so that somebody who manages to steal the user database will only be able to compromise your system, and not any other systems were your user may have re-used the same password. On the other hand, you may already be storing the password in your customized database, in which case being able to change it via the Shisa interface can be useful. Shisa is a small (a few thousand lines of C code) standalone library. Shisa does not depend on the Shishi library. Because a user database with passwords may be useful for other applications as well (e.g., GNU SASL), it might be separated into its own project later on. You should keep this in mind, so that you don't consider writing a Shisa backend for your own database as a purely Shishi specific project. You can, for example, choose to use the Shisa interface in your own applications to have a simple interface to your user database. Your experience and feedback is appreciated if you have chosen to explore this. Note that the Shisa database does not expose everything you may want to know about a user, such as its full human name, telephone number or even the user's login account name or home directory. It only stores what is needed to authenticate a peer claiming to be an entity. Thus it does not make sense to replace your current user database or '/etc/passwd' with data derived from the Shisa database. Instead, it is intended that you write a Shisa backend that exports some of the information stored in your user database. You may be able to replace some existing functionality, such as the password field in '/etc/passwd' with a Kerberos PAM module, but there is no requirement for doing so.  File: shishi.info, Node: Configuring Shisa, Next: Using Shisa, Prev: Introduction to Shisa, Up: Administration Manual 3.2 Configuring Shisa ===================== The configuration file for Shisa is typically stored in '/usr/local/etc/shishi/shisa.conf'. You do not have to modify this file, the defaults should be acceptable to first-time users. The file is used to define where your user database resides, and some options such as making the database read-only, or whether errors detected when accessing the database should be ignored. (The latter could be useful if the server is a remote LDAP server that might be unavailable, and then you would want to fall back to a local copy of the database.) The default will store the user database using directories and files, rooted by default in '/usr/local/var/shishi'. You can use standard file permission settings to control access to the directory hierarchy. It is strongly recommended to restrict access to the directory. Storing the directory on local storage, i.e., hard disk or removable media, is recommended. We discourage placing the database on a network file system, but realize this can be useful in some situations (*note Multiple servers::). See the reference manual (*note Shisa Configuration::) for the details of the configuration file. Again, you are not expected to need to modify anything unless you are an experienced Shishi administrator.  File: shishi.info, Node: Using Shisa, Next: Starting Shishid, Prev: Configuring Shisa, Up: Administration Manual 3.3 Using Shisa =============== There is a command line interface to the Shisa library, aptly named 'shisa'. You will use this tool to add, remove, and change information stored in the database about realms, principals, and keys. The tool can also be used to "dump" all information in the database, for backup or debugging purposes. (Currently the output format cannot be read by any tool, but functionality to do this will be added in the future, possibly as a read-only file-based Shisa database backend.) The reference manual (*note Parameters for shisa::) explains all parameters, but here we will give you a walk-through of the typical uses of the tool. Installing Shishi usually creates a realm with two principals: one ticket granting ticket for the realm, and one host key for the server. This is what you typically need to get started, but it doesn't serve our purposes, so we start by removing the principals and the realm. To do that, we need to figure out the name of the realm. The '--list' or '--dump' parameters can be used for this. (Most "long" parameters, like '--dump', have shorter names as well, in this case '-d', *note Parameters for shisa::). jas@latte:~$ shisa -d latte krbtgt/latte Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt lattekrbtgt/latte. host/latte Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt lattehost/latte. jas@latte:~$ The realm names are printed at column 0, the principal names are indented with one 'TAB' character (aka '\t' or ASCII 0x09 Horizontal Tabulation), and the information about each principal is indented with two 'TAB' characters. The above output means that there is one realm 'latte' with two principals: 'krbtgt/latte' (which is used to authenticate Kerberos ticket requests) and 'host/latte' (used to authenticate host-based applications like Telnet). They were created during 'make install' on a host called 'latte'. If the installation did not create a default database for you, you might get an error similar to the following output. jas@latte:~$ shisa -d shisa: Cannot initialize `file' database backend. Location `/usr/local/var/shishi' and options `N/A'. shisa: Initialization failed: Shisa database could not be opened. jas@latte:~$ This indicates that the database does not exist. For a file database, you can create it simply by creating the directory, as follows. Note the access permission change with 'chmod'. Typically the 'root' user would own the files, but as these examples demonstrate, setting up a Kerberos server does not require root access. Indeed, it may be prudent to run all Shishi applications as a special non-'root' user, and have all Shishi related files owned by that user, so that any security vulnerabilities do not lead to a system compromise. (However, if the user database is ever stolen, system compromises of other systems may be inoccured, should you use, e.g., a kerberized Telnet.) jas@latte:~$ mkdir /usr/local/var/shishi jas@latte:~$ chmod go-rwx /usr/local/var/shishi Back to the first example, where you have a realm 'latte' with some principals. We want to remove the realm to demonstrate how you create the realm from scratch. (Of course, you can have more than one realm in the database, but for this example we assume you want to set up a realm named the same as Shishi guessed you would name it, so the existing realm need to be removed first.) The '--remove' (short form '-r') parameter is used for this purpose, as follows. jas@latte:~$ shisa -r latte host/latte Removing principal `host/latte@latte'... Removing principal `host/latte@latte'...done jas@latte:~$ shisa -r latte krbtgt/latte Removing principal `krbtgt/latte@latte'... Removing principal `krbtgt/latte@latte'...done jas@latte:~$ shisa -r latte Removing realm `latte'... Removing realm `latte'...done jas@latte:~$ You may be asking yourself "What if the realm has many more principals?". If you fear manual labor (or a small 'sed' script, recall the format of '--list'?), don't worry, there is a '--force' (short form '-f') flag. Use it with care. Here is a faster way to do the above: jas@latte:~$ shisa -r latte -f Removing principal `krbtgt/latte@latte'... Removing principal `krbtgt/latte@latte'...done Removing principal `host/latte@latte'... Removing principal `host/latte@latte'...done Removing realm `latte'... Removing realm `latte'...done jas@latte:~$ You should now have a working, but empty, Shisa database. Let's set up the realm manually, step by step. The first step is to decide on a name for your realm. The full story is explained elsewhere (*note Realm and Principal Naming::), but the short story is to take your DNS domain name and translate it to upper case. For example, if your organization uses 'example.org' it is a good idea to use 'EXAMPLE.ORG' as the name of your Kerberos realm. We'll use 'EXAMPLE.ORG' as the realm name in these examples. Let's create the realm. jas@latte:~$ shisa -a EXAMPLE.ORG Adding realm `EXAMPLE.ORG'... Adding realm `EXAMPLE.ORG'...done jas@latte:~$ Currently, there are no properties associated with entire realms. In the future, it may be possible to set a default realm-wide password expiry policy or similar. Each realm normally has one principal that is used for authenticating against the "ticket granting service" on the Kerberos server with a ticket instead of using the password. This is used by the user when she acquire a ticket for a server. The principal must look like 'krbtgt/REALM' (*note Name of the TGS: krbtgt.). Let's create it. jas@latte:~$ shisa -a EXAMPLE.ORG krbtgt/EXAMPLE.ORG Adding principal `krbtgt/EXAMPLE.ORG@EXAMPLE.ORG'... Adding principal `krbtgt/EXAMPLE.ORG@EXAMPLE.ORG'...done jas@latte:~$ Now that wasn't difficult, although not very satisfying either. What does adding a principal mean? The name is created, obviously, but it also means setting a few values in the database. Let's view the entry to find out which values. jas@latte:~$ shisa -d EXAMPLE.ORG krbtgt/EXAMPLE.ORG Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). Salt EXAMPLE.ORGkrbtgt/EXAMPLE.ORG. jas@latte:~$ To use host based security services like SSH or Telnet with Kerberos, each host must have a key shared between the host and the KDC. The key is typically stored in '/usr/local/etc/shishi/shishi.keys'. We assume your server is called 'mail.example.org' and we create the principal. To illustrate a new parameter, we also set the specific algorithm to use by using the '--encryption-type' (short form '-E') parameter. jas@latte:~$ shisa -a EXAMPLE.ORG host/mail.example.org -E des3 Adding principal `host/mail.example.org@EXAMPLE.ORG'... Adding principal `host/mail.example.org@EXAMPLE.ORG'...done jas@latte:~$ To export the key, there is another Shisa parameter '--keys' that will print the key in a format that is recognized by Shishi. Let's use it to print the host key. jas@latte:~$ shisa -d --keys EXAMPLE.ORG host/mail.example.org EXAMPLE.ORG host/mail.example.org Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype des3-cbc-sha1-kd (0x10, 16). -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: host/mail.example.org Realm: EXAMPLE.ORG iQdA8hxdvOUHZNliZJv7noM02rXHV8gq -----END SHISHI KEY----- Salt EXAMPLE.ORGhost/mail.example.org. jas@latte:~$ So to set up the host, simply redirect output to the host key file. jas@latte:~$ shisa -d --keys EXAMPLE.ORG \ host/mail.example.org >> /usr/local/etc/shishi/shishi.keys jas@latte:~$ The next logical step is to create a principal for some user, so you can use your password to get a Ticket Granting Ticket via the Authentication Service (AS) from the KDC, and then use the Ticket Granting Service (TGS) from the KDC to get a ticket for a specific host, and then send that ticket to the host to authenticate yourself. Creating this end-user principle is slightly different from the earlier steps, because you want the key to be derived from a password instead of being a random key. The '--password' parameter indicate this. This make the tool ask you for the password. jas@latte:~$ shisa -a EXAMPLE.ORG simon --password Password for `simon@EXAMPLE.ORG': Adding principal `simon@EXAMPLE.ORG'... Adding principal `simon@EXAMPLE.ORG'...done jas@latte:~$ The only special thing about this principal now is that it has a 'password' field set in the database. jas@latte:~$ shisa -d EXAMPLE.ORG simon --keys EXAMPLE.ORG simon Account is enabled. Current key version 0 (0x0). Key 0 (0x0). Etype aes256-cts-hmac-sha1-96 (0x12, 18). -----BEGIN SHISHI KEY----- Keytype: 18 (aes256-cts-hmac-sha1-96) Principal: simon Realm: EXAMPLE.ORG Ja7ciNtrAI3gtodLaVDQ5zhcH58ffk0kS5tGAM7ILvM= -----END SHISHI KEY----- Salt EXAMPLE.ORGsimon. Password foo. jas@latte:~$ You should now be ready to start the KDC, which is explained in the next section (*note Starting Shishid::), and get tickets as explained earlier (*note User Manual::).  File: shishi.info, Node: Starting Shishid, Next: Configuring DNS for KDC, Prev: Using Shisa, Up: Administration Manual 3.4 Starting Shishid ==================== The Shishi server, or Key Distribution Center (KDC), is called Shishid. Shishid is responsible for listening on UDP and TCP ports for Kerberos requests. Currently it can handle initial ticket requests (Authentication Service, or AS), typically authenticated with keys derived from passwords, and subsequent ticket requests (Ticket Granting Service, or TGS), typically authenticated with the key acquired during an AS exchange. Currently there is very little configuration available, the only variables are which ports the server should listen on and an optional user name to 'setuid' into after successfully listening to the ports. By default, Shishid listens on the 'kerberos' service port (typically translated to 88 via '/etc/services') on the UDP and TCP transports via IPv4 and (if your machine support it) IPv6 on all interfaces on your machine. Here is a typical startup. latte:/home/jas/src/shishi# /usr/local/sbin/shishid Initializing GNUTLS... Initializing GNUTLS...done Listening on IPv4:*:kerberos/udp...done Listening on IPv4:*:kerberos/tcp...done Listening on IPv6:*:kerberos/udp...failed socket: Address family not supported by protocol Listening on IPv6:*:kerberos/tcp...failed socket: Address family not supported by protocol Listening on 2 ports... Running as root is not recommended. Any security problem in shishid and your host may be compromised. Therefor, we recommend using the '--setuid' parameter, as follows. latte:/home/jas/src/shishi# /usr/local/sbin/shishid --setuid=jas Initializing GNUTLS... Initializing GNUTLS...done Listening on IPv4:*:kerberos/udp...done Listening on IPv4:*:kerberos/tcp...done Listening on IPv6:*:kerberos/udp...failed socket: Address family not supported by protocol Listening on IPv6:*:kerberos/tcp...failed socket: Address family not supported by protocol Listening on 2 ports... User identity set to `jas' (22541)... An alternative is to run shishid on an alternative port as a non-privileged user. To continue the example of setting up the 'EXAMPLE.ORG' realm as a non-privileged user from the preceding section, we start the server listen on port 4711 via UDP on IPv4. jas@latte:~$ /usr/local/sbin/shishid -l IPv4:*:4711/udp Initializing GNUTLS... Initializing GNUTLS...done Listening on *:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on *:4711/tcp socket 4 If you have set up the Shisa database as in the previous example, you can now acquire tickets as follows. jas@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711' \ simon@EXAMPLE.ORG Enter password for `simon@EXAMPLE.ORG': simon@EXAMPLE.ORG: Authtime: Fri Dec 12 01:41:01 2003 Endtime: Fri Dec 12 01:57:41 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE RENEWABLE INITIAL (12) jas@latte:~$ The output from Shishid on a successful invocation would look like: shishid: Has 131 bytes from *:4711/udp on socket 4 shishid: Processing 131 from *:4711/udp on socket 4 shishid: Trying AS-REQ shishid: AS-REQ from simon@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for *:4711/udp on socket 4 shishid: Sending 511 bytes to *:4711/udp socket 4 via UDP shishid: Listening on *:4711/udp socket 4 You may use the '-v' parameter for Shishid and Shishi to generate more debugging information. To illustrate what an application, such as the Shishi patched versions of GNU lsh or Telnet from GNU InetUtils, would do when contacting the host 'mail.example.org' we illustrate using the TGS service as well. jas@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711' \ simon@EXAMPLE.ORG host/mail.example.org simon@EXAMPLE.ORG: Authtime: Fri Dec 12 01:46:54 2003 Endtime: Fri Dec 12 02:03:34 2003 Server: host/mail.example.org key des3-cbc-sha1-kd (16) Ticket key: des3-cbc-sha1-kd (16) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (45398796) jas@latte:~$ This conclude our walk-through of setting up a new Kerberos realm using Shishi. It is quite likely that one or more steps failed, and if so we encourage you to debug it and submit a patch, or at least report it as a problem. Heck, even letting us know if you got this far would be of interest. *Note Bug Reports::.  File: shishi.info, Node: Configuring DNS for KDC, Next: Kerberos via TLS, Prev: Starting Shishid, Up: Administration Manual 3.5 Configuring DNS for KDC =========================== Making sure the configuration files on all hosts running Shishi clients include the addresses of your server is tedious. If the configuration files do not mention the KDC address for a realm, Shishi will try to look up the information from DNS. In order for Shishi to find that information, you need to add the information to DNS. For this to work well, you need to set up a DNS zone with the same name as your Kerberos realm. The easiest is if you own the publicly visible DNS name, such as 'example.org' if your realm is 'EXAMPLE.ORG', but you can set up an internal DNS server with the information for your realm only. If this is done, you do not need to keep configuration files updated for the KDC addressing information. 3.5.1 DNS vs. Kerberos - Case Sensitivity of Realm Names -------------------------------------------------------- In Kerberos, realm names are case sensitive. While it is strongly encouraged that all realm names be all upper case this recommendation has not been adopted by all sites. Some sites use all lower case names and other use mixed case. DNS on the other hand is case insensitive for queries but is case preserving for responses to TXT queries. Since "MYREALM", "myrealm", and "MyRealm" are all different it is necessary that only one of the possible combinations of upper and lower case characters be used. This restriction may be lifted in the future as the DNS naming scheme is expanded to support non-ASCII names. 3.5.2 Overview - KDC location information ----------------------------------------- KDC location information is to be stored using the DNS SRV RR [RFC 2052]. The format of this RR is as follows: Service.Proto.Realm TTL Class SRV Priority Weight Port Target The Service name for Kerberos is always "_kerberos". The Proto can be either "_udp", "_tcp", or "_tls._tcp". If these SRV records are to be used, a "_udp" record MUST be included. If the Kerberos implementation supports TCP transport, a "_tcp" record MUST be included. When using "_tcp" with "_kerberos", this indicates a "raw" TCP connection without any additional encapsulation. A "_tls._tcp" record MUST be specified for all Kerberos implementations that support communication with the KDC across TCP sockets encapsulated using TLS [RFC2246] (*note STARTTLS protected KDC exchanges::). The Realm is the Kerberos realm that this record corresponds to. TTL, Class, SRV, Priority, Weight, and Target have the standard meaning as defined in RFC 2052. As per RFC 2052 the Port number should be the value assigned to "kerberos" by the Internet Assigned Number Authority (88). 3.5.3 Example - KDC location information ---------------------------------------- These are DNS records for a Kerberos realm ASDF.COM. It has two Kerberos servers, kdc1.asdf.com and kdc2.asdf.com. Queries should be directed to kdc1.asdf.com first as per the specified priority. Weights are not used in these records. _kerberos._udp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._udp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. _kerberos._tcp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._tcp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. _kerberos._tls._tcp.ASDF.COM. IN SRV 0 0 88 kdc1.asdf.com. _kerberos._tls._tcp.ASDF.COM. IN SRV 1 0 88 kdc2.asdf.com. 3.5.4 Security considerations ----------------------------- As DNS is deployed today, it is an unsecure service. Thus the infor- mation returned by it cannot be trusted. Current practice for REALM to KDC mapping is to use hostnames to indicate KDC hosts (stored in some implementation-dependent location, but generally a local config file). These hostnames are vulnerable to the standard set of DNS attacks (denial of service, spoofed entries, etc). The design of the Kerberos protocol limits attacks of this sort to denial of service. However, the use of SRV records does not change this attack in any way. They have the same vulnerabilities that already exist in the common practice of using hostnames for KDC locations. Implementations SHOULD provide a way of specifying this information locally without the use of DNS. However, to make this feature worthwhile a lack of any configuration information on a client should be interpretted as permission to use DNS.  File: shishi.info, Node: Kerberos via TLS, Next: Multiple servers, Prev: Configuring DNS for KDC, Up: Administration Manual 3.6 Kerberos via TLS ==================== If Shishi is built with support for GNUTLS, the messages exchanged between clients and Shishid can be protected with TLS. TLS is only available over TCP connections. A full discussion of the features TLS have is out of scope here, but in short it means the communication is integrity and privacy protected, and that users can use OpenPGP, X.509 or SRP (i.e., any mechanism supported by TLS) to authenticate themselves to the Kerberos server. For details on the implementation, *Note STARTTLS protected KDC exchanges::. 3.6.1 Setting up TLS resume --------------------------- Resuming earlier TLS session is supported and enabled by default. This improves the speed of the TLS handshake, because results from earlier negotiations can be re-used. Currently the TLS resume database is stored in memory (in constract to storing it on disk), in both the client and in the server. Because the server typically runs for a long time, this is not a problem for that side. The client is typically not a long-running process though; the client usually is invoked as part of applications like 'telnet' or 'login'. However, because each use of the client library typically result in a ticket, which is stored on disk and re-used by later processes, this is likely not a serious problem because the number of different tickets required by a user is usually quite small. For the client, TLS resume is typically only useful when you perform an initial authentication (using a password) followed by a ticket request for a service, in the same process. You can configure the server, 'shishid' to never use TLS resume, or to increase or decrease the number of distinct TLS connections that can be resumed before they are garbage collected, see the '--resume-limit' parameter (*note Parameters for shishid::). 3.6.2 Setting up Anonymous TLS ------------------------------ Anonymous TLS is the simplest to set up and use. In fact, only the client need to be informed that your KDC support TLS. This can be done in the configuration file with the '/tls' parameter for 'kdc-realm' (*note Shishi Configuration: realm-kdc.), or by placing the KDC address in DNS using the '_tls' SRV record (*note Configuring DNS for KDC::). Let's start Shishid, listening on a TCP socket. TLS require TCP. TCP sockets are automatically upgraded to TLS if the client request it. jas@latte:~$ /usr/local/sbin/shishid -l IPv4:*:4711/tcp Initializing GNUTLS...done Listening on IPv4:*:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on IPv4:*:4711/tcp socket 4 Let's use the client to talk with it, using TLS. jas@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711/tls \ simon@EXAMPLE.ORG Enter password for `simon@EXAMPLE.ORG': simon@EXAMPLE.ORG: Authtime: Tue Dec 16 05:20:47 2003 Endtime: Tue Dec 16 05:37:27 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE (12) jas@latte:~$ On success, the server will print the following debug information. shishid: Accepted socket 6 from socket 4 as IPv4:*:4711/tcp peer 127.0.0.1 shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 4 bytes from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying STARTTLS shishid: TLS handshake negotiated protocol `TLS 1.0', key exchange `Anon DH', certficate type `X.509', cipher `AES 256 CBC', mac `SHA', compression `NULL', session not resumed shishid: TLS anonymous authentication with 1024 bit Diffie-Hellman shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 131 bytes from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Processing 131 from IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying AS-REQ shishid: AS-REQ from simon@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for IPv4:*:4711/tcp peer 127.0.0.1 on socket 6 shishid: Sending 511 bytes to IPv4:*:4711/tcp peer 127.0.0.1 socket 6 via TLS shishid: Listening on IPv4:*:4711/tcp socket 4 shishid: Listening on IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Peer IPv4:*:4711/tcp peer 127.0.0.1 disconnected on socket 6 shishid: Closing IPv4:*:4711/tcp peer 127.0.0.1 socket 6 shishid: Listening on IPv4:*:4711/tcp socket 4 3.6.3 Setting up X.509 authenticated TLS ---------------------------------------- Setting up X.509 authentication is slightly more complicated than anonymous authentication. You need a X.509 certificate authority (CA) that can generate certificates for your Kerberos server and Kerberos clients. It is often easiest to setup the CA yourself. Managing a CA can be a daunting task, and we only give the bare essentials to get things up and running. We suggest that you study the relevant literature. As a first step beyond this introduction, you may wish to explore more secure forms of key storage than storing them unencrypted on disk. The following three sections describe how you create the CA, KDC certificate, and client certificates. You can use any tool you like for this task, as long as they generate X.509 (PKIX) certificates in PEM format and RSA keys in PKCS#1 format. Here we use 'certtool' that come with GNUTLS, which is widely available. We conclude by discussing how you use these certificates in the KDC and in the Shishi client. 3.6.3.1 Create a Kerberos Certificate Authority ............................................... First create a CA key. jas@latte:~$ certtool --generate-privkey \ --outfile /usr/local/etc/shishi/shishi.key Generating a private key... Generating a 1024 bit RSA private key... jas@latte:~$ Then create the CA certificate. Use whatever details you prefer. jas@latte:~$ certtool --generate-self-signed \ --load-privkey /usr/local/etc/shishi/shishi.key \ --outfile /usr/local/etc/shishi/shishi.cert Generating a self signed certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example CA Organizational unit name: Locality name: State or province name: Common name: CA This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): y Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 10:59:00 2003 Not After: Fri Jun 18 11:59:00 2004 Subject: C=SE,O=Shishi Example CA,CN=CA Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:TRUE Is the above information ok? (Y/N): y Signing certificate... jas@latte:~$ 3.6.3.2 Create a Kerberos KDC Certificate ......................................... First create the key for the KDC. jas@latte:~$ certtool --generate-privkey \ --outfile /usr/local/etc/shishi/shishid.key Generating a private key... Generating a 1024 bit RSA private key... jas@latte:~$ Then create actual KDC certificate, signed by the CA certificate created in the previous step. jas@latte:~$ certtool --generate-certificate \ --load-ca-certificate /usr/local/etc/shishi/shishi.cert \ --load-ca-privkey /usr/local/etc/shishi/shishi.key \ --load-privkey /usr/local/etc/shishi/shishid.key \ --outfile /usr/local/etc/shishi/shishid.cert Generating a signed certificate... Loading CA's private key... Loading CA's certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example KDC Organizational unit name: Locality name: State or province name: Common name: KDC This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): n Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 11:02:00 2003 Not After: Fri Jun 18 12:02:00 2004 Subject: C=SE,O=Shishi Example KDC,CN=KDC Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:FALSE Is the above information ok? (Y/N): y Signing certificate... jas@latte:~$ 3.6.3.3 Create a Kerberos Client Certificate ............................................ First create the key for the client. jas@latte:~$ certtool --generate-privkey \ --outfile ~/.shishi/client.key Generating a private key... Generating a 1024 bit RSA private key... jas@latte:~$ Then create the client certificate, signed by the CA. An alternative would be to have the KDC sign the client certificates. jas@latte:~$ certtool --generate-certificate \ --load-ca-certificate /usr/local/etc/shishi/shishi.cert \ --load-ca-privkey /usr/local/etc/shishi/shishi.key \ --load-privkey ~/.shishi/client.key \ --outfile ~/.shishi/client.certs Generating a signed certificate... Loading CA's private key... Loading CA's certificate... Please enter the details of the certificate's distinguished name. \ Just press enter to ignore a field. Country name (2 chars): SE Organization name: Shishi Example Client Organizational unit name: Locality name: State or province name: Common name: Client This field should not be used in new certificates. E-mail: Enter the certificate's serial number (decimal): 0 Activation/Expiration time. The generated certificate will expire in (days): 180 Extensions. Does the certificate belong to an authority? (Y/N): n Is this a web server certificate? (Y/N): n Enter the e-mail of the subject of the certificate: X.509 certificate info: Version: 3 Serial Number (hex): 00 Validity: Not Before: Sun Dec 21 11:04:00 2003 Not After: Fri Jun 18 12:04:00 2004 Subject: C=SE,O=Shishi Example Client,CN=Client Subject Public Key Info: Public Key Algorithm: RSA X.509 Extensions: Basic Constraints: (critical) CA:FALSE Is the above information ok? (Y/N): y Signing certificate... jas@latte:~$ 3.6.3.4 Starting KDC with X.509 authentication support ...................................................... The KDC need the CA certificate (to verify client certificates) and the server certificate and key (to authenticate itself to the clients). See elsewhere (*note Parameters for shishid::) for the entire description of the parameters. jas@latte:~$ shishid -l *:4711/tcp \ --x509cafile /usr/local/etc/shishi/shishi.cert \ --x509certfile /usr/local/etc/shishi/shishid.cert \ --x509keyfile /usr/local/etc/shishi/shishid.key Initializing GNUTLS... Parsed 1 CAs... Loaded server certificate/key... Generating Diffie-Hellman parameters... Initializing GNUTLS...done Listening on *:4711/tcp... Listening on 1 ports... shishid: Starting (GNUTLS `1.0.4') shishid: Listening on *:4711/tcp socket 4 Then acquire tickets as usual. In case you wonder how shishi finds the client certificate and key, the filenames used above when generating the client certificates happen to be the default filenames for these files. So it pick them up automatically. jas@latte:~$ shishi -o 'realm-kdc=EXAMPLE.ORG,localhost:4711/tls' \ simon@EXAMPLE.ORG Enter password for `simon@EXAMPLE.ORG': simon@EXAMPLE.ORG: Authtime: Sun Dec 21 11:15:47 2003 Endtime: Sun Dec 21 11:32:27 2003 Server: krbtgt/EXAMPLE.ORG key aes256-cts-hmac-sha1-96 (18) Ticket key: aes256-cts-hmac-sha1-96 (18) protected by aes256-cts-hmac-sha1-96 (18) Ticket flags: FORWARDED PROXIABLE RENEWABLE HWAUTHENT TRANSITEDPOLICYCHECKED OKASDELEGATE (12) jas@latte:~$ Here is what the server would print. shishid: Accepted socket 6 from socket 4 as *:4711/tcp peer 127.0.0.1 shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 4 bytes from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying STARTTLS shishid: TLS handshake negotiated protocol `TLS 1.0', key exchange `RSA', certficate type `X.509', cipher `AES 256 CBC', mac `SHA', compression `NULL', session not resumed shishid: TLS client certificate `C=SE,O=Shishi Example Client,CN=Client', issued by `C=SE,O=Shishi Example CA,CN=CA', serial number `00', MD5 fingerprint `a5:d3:1f:58:76:e3:58:cd:2d:eb:f7:45:a2:4b:52:f9:', activated `Sun Dec 21 11:04:00 2003', expires `Fri Jun 18 12:04:00 2004', version #3, key RSA modulus 1024 bits, currently EXPIRED shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Has 131 bytes from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Processing 131 from *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Trying AS-REQ shishid: AS-REQ from simon@EXAMPLE.ORG for krbtgt/EXAMPLE.ORG@EXAMPLE.ORG shishid: Matching client etype 18 against user key etype 18 shishid: Have 511 bytes for *:4711/tcp peer 127.0.0.1 on socket 6 shishid: Sending 511 bytes to *:4711/tcp peer 127.0.0.1 socket 6 via TLS shishid: Listening on *:4711/tcp socket 4 shishid: Listening on *:4711/tcp peer 127.0.0.1 socket 6 shishid: Peer *:4711/tcp peer 127.0.0.1 disconnected on socket 6 shishid: Closing *:4711/tcp peer 127.0.0.1 socket 6 shishid: Listening on *:4711/tcp socket 4  File: shishi.info, Node: Multiple servers, Next: Developer information, Prev: Kerberos via TLS, Up: Administration Manual 3.7 Multiple servers ==================== Setting up multiple servers is as easy as replicating the user database. Since the default 'file' user database is stored in the normal file system, you can use any common tools to replicate a file system. Network file system like NFS (properly secured by, e.g., a point-to-point symmetrically encrypted IPSEC connection) and file synchronizing tools like 'rsync' are typical choices. The secondary server should be configured just like the master server. If you use the 'file' database over NFS you do not have to make any modifications. If you use, e.g., a cron job to 'rsync' the directory every hour or so, you may want to add a '--read-only' flag to the Shisa 'db' definition (*note Shisa Configuration::). That way, nobody will be lured into creating or changing information in the database on the secondary server, which only would be overwritten during the next synchronization. db --read-only file /usr/local/var/backup-shishi The 'file' database is designed so it doesn't require file locking in the file system, which may be unreliable in some network file systems or implementations. It is also designed so that multiple concurrent readers and writers may access the database without causing corruption. *Warning:* The last paragraph is currently not completely accurate. There may be race conditions with concurrent writers. None should cause infinite loops or data loss. However, unexpected results might occur if two writers try to update information about a principal simultaneous. If you use a remote LDAP server or SQL database to store the user database, and access it via a Shisa backend, you have make sure your Shisa backend handle concurrent writers properly. If you use a modern SQL database, this probably is not a concern. If it is a problem, you may be able to work around it by implementing some kind of synchronization or semaphore mechanism. If all else sounds too complicated, you can set up the secondary servers as '--read-only' servers, although you will lose some functionality (like changing passwords via the secondary server, or updating timestamps when the last ticket request occurred). One function that is of particular use for users with remote databases (be it LDAP or SQL) is the "database override" feature. Using this you can have the security critical principals (such as the ticket granting ticket) stored on local file system storage, but use the remote database for user principals. Of course, you must keep the local file system storage synchronized between all servers, as before. Here is an example configuration. db --read-only file /var/local/master db ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem This instruct the Shisa library to access the two databases sequentially, for each query using the first database that know about the requested principal. If you put the 'krbtgt/REALM' principal in the local 'file' database, this will override the LDAP interface. Naturally, you can have as many 'db' definition lines as you wish. Users with remote databases can also investigate a so called High Availability mode. This is useful if you wish to have your Kerberos servers be able to continue to operate even when the remote database is offline. This is achieved via the '--ignore-errors' flag in the database definition. Here is a sample configuration. db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --read-only file /var/cache/ldap-copy This instruct the Shisa library to try the LDAP backend first, but if it fails, instead of returning an error, continue to try the operation on a read only local 'file' based database. Of course, write requests will still fail, but it may be better than halting the server completely. To make this work, you first need to set up a cron job on a, say, hourly basis, to make a copy of the remote database and store it in the local file database. That way, when the remote server goes away, fairly current information will still be available locally. If you also wish to experiment with read-write fail over, here is an idea for the configuration. db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --ignore-errors --read-only file /var/cache/ldap-copy db file /var/cache/local-updates This is similar to the previous, but it will ignore errors reading and writing from the first two databases, ultimately causing write attempts to end up in the final 'file' based database. Of course, you would need to create tools to feed back any local updates made while the remote server was down. It may also be necessary to create a special backend for this purpose, which can auto create principals that are used. We finish with an example that demonstrate all the ideas presented. db --read-only file /var/local/master db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --ignore-errors --read-only file /var/cache/ldap-copy db file /var/cache/local-updates  File: shishi.info, Node: Developer information, Prev: Multiple servers, Up: Administration Manual 3.8 Developer information ========================= The Programming API for Shisa is described below (*note Kerberos Database Functions::); this section is about extending Shisa, and consequently Shishi, to use your own user database system. You may want to store your Kerberos user information on an LDAP database server, for example. Adding a new backend is straight forward. You need to implement the backend API function set, add the list of API functions to 'db/db.c' and possibly also add any library dependencies to the Makefile. The simplest way to write a new backend is to start from the existing 'file' based database, in 'db/file.c', and modify the entry points as needed. Note that the current backend API will likely change before it is frozen. We may describe it in detail here when it has matured. However, currently it is similar to the external Shisa API (*note Kerberos Database Functions::). There should be no need to modify anything else in the Shisa library, and certainly not in the Shishi library or the 'shishid' server. Naturally, we would appreciate if you would send us your new backend, if you believe it is generally useful (*note Bug Reports::).  File: shishi.info, Node: Reference Manual, Next: Programming Manual, Prev: Administration Manual, Up: Top 4 Reference Manual ****************** This chapter discuss the underlying assumptions of Kerberos, contain a glossary to Kerberos concepts, give you background information on choosing realm and principal names, and describe all parameters and configuration file syntaxes for the Shishi tools. * Menu: * Environmental Assumptions:: Kerberos 5 assumptions about your system. * Glossary of terms:: Glossary of Kerberos related terminology. * Realm and Principal Naming:: How to name your realm and principals. * Shishi Configuration:: Explains the Core Shishi configuration file. * Shisa Configuration:: Explains the Shisa database definition file. * Parameters for shishi:: Command line parameters for 'shishi'. * Parameters for shishid:: Command line parameters for 'shishid'. * Parameters for shisa:: Command line parameters for 'shisa'. * Environment variables:: Overriding compile-time defaults at run-time. * Date input formats:: Details of the understood date formats.  File: shishi.info, Node: Environmental Assumptions, Next: Glossary of terms, Up: Reference Manual 4.1 Environmental Assumptions ============================= Kerberos imposes a few assumptions on the environment in which it can properly function: * "Denial of service" attacks are not solved with Kerberos. There are places in the protocols where an intruder can prevent an application from participating in the proper authentication steps. Detection and solution of such attacks (some of which can appear to be not-uncommon "normal" failure modes for the system) is usually best left to the human administrators and users. * Principals MUST keep their secret keys secret. If an intruder somehow steals a principal's key, it will be able to masquerade as that principal or impersonate any server to the legitimate principal. * "Password guessing" attacks are not solved by Kerberos. If a user chooses a poor password, it is possible for an attacker to successfully mount an offline dictionary attack by repeatedly attempting to decrypt, with successive entries from a dictionary, messages obtained which are encrypted under a key derived from the user's password. * Each host on the network MUST have a clock which is "loosely synchronized" to the time of the other hosts; this synchronization is used to reduce the bookkeeping needs of application servers when they do replay detection. The degree of "looseness" can be configured on a per-server basis, but is typically on the order of 5 minutes. If the clocks are synchronized over the network, the clock synchronization protocol MUST itself be secured from network attackers. * Principal identifiers are not recycled on a short-term basis. A typical mode of access control will use access control lists (ACLs) to grant permissions to particular principals. If a stale ACL entry remains for a deleted principal and the principal identifier is reused, the new principal will inherit rights specified in the stale ACL entry. By not re-using principal identifiers, the danger of inadvertent access is removed.  File: shishi.info, Node: Glossary of terms, Next: Realm and Principal Naming, Prev: Environmental Assumptions, Up: Reference Manual 4.2 Glossary of terms ===================== Authentication Verifying the claimed identity of a principal. Authentication header A record containing a Ticket and an Authenticator to be presented to a server as part of the authentication process. Authentication path A sequence of intermediate realms transited in the authentication process when communicating from one realm to another. Authenticator A record containing information that can be shown to have been recently generated using the session key known only by the client and server. Authorization The process of determining whether a client may use a service, which objects the client is allowed to access, and the type of access allowed for each. Capability A token that grants the bearer permission to access an object or service. In Kerberos, this might be a ticket whose use is restricted by the contents of the authorization data field, but which lists no network addresses, together with the session key necessary to use the ticket. Ciphertext The output of an encryption function. Encryption transforms plaintext into ciphertext. Client A process that makes use of a network service on behalf of a user. Note that in some cases a Server may itself be a client of some other server (e.g. a print server may be a client of a file server). Credentials A ticket plus the secret session key necessary to successfully use that ticket in an authentication exchange. Encryption Type (etype) When associated with encrypted data, an encryption type identifies the algorithm used to encrypt the data and is used to select the appropriate algorithm for decrypting the data. Encryption type tags are communicated in other messages to enumerate algorithms that are desired, supported, preferred, or allowed to be used for encryption of data between parties. This preference is combined with local information and policy to select an algorithm to be used. KDC Key Distribution Center, a network service that supplies tickets and temporary session keys; or an instance of that service or the host on which it runs. The KDC services both initial ticket and ticket-granting ticket requests. The initial ticket portion is sometimes referred to as the Authentication Server (or service). The ticket-granting ticket portion is sometimes referred to as the ticket-granting server (or service). Kerberos The name given to the Project Athena's authentication service, the protocol used by that service, or the code used to implement the authentication service. The name is adopted from the three-headed dog which guards Hades. Key Version Number (kvno) A tag associated with encrypted data identifies which key was used for encryption when a long lived key associated with a principal changes over time. It is used during the transition to a new key so that the party decrypting a message can tell whether the data was encrypted using the old or the new key. Plaintext The input to an encryption function or the output of a decryption function. Decryption transforms ciphertext into plaintext. Principal A named client or server entity that participates in a network communication, with one name that is considered canonical. Principal identifier The canonical name used to uniquely identify each different principal. Seal To encipher a record containing several fields in such a way that the fields cannot be individually replaced without either knowledge of the encryption key or leaving evidence of tampering. Secret key An encryption key shared by a principal and the KDC, distributed outside the bounds of the system, with a long lifetime. In the case of a human user's principal, the secret key MAY be derived from a password. Server A particular Principal which provides a resource to network clients. The server is sometimes referred to as the Application Server. Service A resource provided to network clients; often provided by more than one server (for example, remote file service). Session key A temporary encryption key used between two principals, with a lifetime limited to the duration of a single login "session". In the Kerberos system, a session key is generated by the KDC. The session key is distinct from the sub-session key, described next.. Sub-session key A temporary encryption key used between two principals, selected and exchanged by the principals using the session key, and with a lifetime limited to the duration of a single association. The sub- session key is also referred to as the subkey. Ticket A record that helps a client authenticate itself to a server; it contains the client's identity, a session key, a timestamp, and other information, all sealed using the server's secret key. It only serves to authenticate a client when presented along with a fresh Authenticator.  File: shishi.info, Node: Realm and Principal Naming, Next: Shishi Configuration, Prev: Glossary of terms, Up: Reference Manual 4.3 Realm and Principal Naming ============================== This section contains the discussion on naming realms and principals from the Kerberos specification. 4.3.1 Realm Names ----------------- Although realm names are encoded as GeneralStrings and although a realm can technically select any name it chooses, interoperability across realm boundaries requires agreement on how realm names are to be assigned, and what information they imply. To enforce these conventions, each realm MUST conform to the conventions itself, and it MUST require that any realms with which inter-realm keys are shared also conform to the conventions and require the same from its neighbors. Kerberos realm names are case sensitive. Realm names that differ only in the case of the characters are not equivalent. There are presently three styles of realm names: domain, X500, and other. Examples of each style follow: domain: ATHENA.MIT.EDU X500: C=US/O=OSF other: NAMETYPE:rest/of.name=without-restrictions Domain syle realm names MUST look like domain names: they consist of components separated by periods (.) and they contain neither colons (:) nor slashes (/). Though domain names themselves are case insensitive, in order for realms to match, the case must match as well. When establishing a new realm name based on an internet domain name it is recommended by convention that the characters be converted to upper case. X.500 names contain an equal (=) and cannot contain a colon (:) before the equal. The realm names for X.500 names will be string representations of the names with components separated by slashes. Leading and trailing slashes will not be included. Note that the slash separator is consistent with Kerberos implementations based on RFC1510, but it is different from the separator recommended in RFC2253. Names that fall into the other category MUST begin with a prefix that contains no equal (=) or period (.) and the prefix MUST be followed by a colon (:) and the rest of the name. All prefixes must be assigned before they may be used. Presently none are assigned. The reserved category includes strings which do not fall into the first three categories. All names in this category are reserved. It is unlikely that names will be assigned to this category unless there is a very strong argument for not using the 'other' category. These rules guarantee that there will be no conflicts between the various name styles. The following additional constraints apply to the assignment of realm names in the domain and X.500 categories: the name of a realm for the domain or X.500 formats must either be used by the organization owning (to whom it was assigned) an Internet domain name or X.500 name, or in the case that no such names are registered, authority to use a realm name MAY be derived from the authority of the parent realm. For example, if there is no domain name for E40.MIT.EDU, then the administrator of the MIT.EDU realm can authorize the creation of a realm with that name. This is acceptable because the organization to which the parent is assigned is presumably the organization authorized to assign names to its children in the X.500 and domain name systems as well. If the parent assigns a realm name without also registering it in the domain name or X.500 hierarchy, it is the parent's responsibility to make sure that there will not in the future exist a name identical to the realm name of the child unless it is assigned to the same entity as the realm name. 4.3.2 Principal Names --------------------- As was the case for realm names, conventions are needed to ensure that all agree on what information is implied by a principal name. The name-type field that is part of the principal name indicates the kind of information implied by the name. The name-type SHOULD be treated only as a hint to interpreting the meaning of a name. It is not significant when checking for equivalence. Principal names that differ only in the name-type identify the same principal. The name type does not partition the name space. Ignoring the name type, no two names can be the same (i.e. at least one of the components, or the realm, MUST be different). The following name types are defined: name-type value meaning NT-UNKNOWN 0 Name type not known NT-PRINCIPAL 1 Just the name of the principal as in DCE, or for users NT-SRV-INST 2 Service and other unique instance (krbtgt) NT-SRV-HST 3 Service with host name as instance (telnet, rcommands) NT-SRV-XHST 4 Service with host as remaining components NT-UID 5 Unique ID NT-X500-PRINCIPAL 6 Encoded X.509 Distingished name [RFC 2253] NT-SMTP-NAME 7 Name in form of SMTP email name (e.g. user@foo.com) NT-ENTERPRISE 10 Enterprise name - may be mapped to principal name When a name implies no information other than its uniqueness at a particular time the name type PRINCIPAL SHOULD be used. The principal name type SHOULD be used for users, and it might also be used for a unique server. If the name is a unique machine generated ID that is guaranteed never to be reassigned then the name type of UID SHOULD be used (note that it is generally a bad idea to reassign names of any type since stale entries might remain in access control lists). If the first component of a name identifies a service and the remaining components identify an instance of the service in a server specified manner, then the name type of SRV-INST SHOULD be used. An example of this name type is the Kerberos ticket-granting service whose name has a first component of krbtgt and a second component identifying the realm for which the ticket is valid. If the first component of a name identifies a service and there is a single component following the service name identifying the instance as the host on which the server is running, then the name type SRV- HST SHOULD be used. This type is typically used for Internet services such as telnet and the Berkeley R commands. If the separate components of the host name appear as successive components following the name of the service, then the name type SRV-XHST SHOULD be used. This type might be used to identify servers on hosts with X.500 names where the slash (/) might otherwise be ambiguous. A name type of NT-X500-PRINCIPAL SHOULD be used when a name from an X.509 certificate is translated into a Kerberos name. The encoding of the X.509 name as a Kerberos principal shall conform to the encoding rules specified in RFC 2253. A name type of SMTP allows a name to be of a form that resembles a SMTP email name. This name, including an "@" and a domain name, is used as the one component of the principal name. A name type of UNKNOWN SHOULD be used when the form of the name is not known. When comparing names, a name of type UNKNOWN will match principals authenticated with names of any type. A principal authenticated with a name of type UNKNOWN, however, will only match other names of type UNKNOWN. Names of any type with an initial component of 'krbtgt' are reserved for the Kerberos ticket granting service. *Note Name of the TGS: krbtgt, for the form of such names. 4.3.2.1 Name of server principals ................................. The principal identifier for a server on a host will generally be composed of two parts: (1) the realm of the KDC with which the server is registered, and (2) a two-component name of type NT-SRV-HST if the host name is an Internet domain name or a multi-component name of type NT-SRV-XHST if the name of the host is of a form such as X.500 that allows slash (/) separators. The first component of the two- or multi-component name will identify the service and the latter components will identify the host. Where the name of the host is not case sensitive (for example, with Internet domain names) the name of the host MUST be lower case. If specified by the application protocol for services such as telnet and the Berkeley R commands which run with system privileges, the first component MAY be the string 'host' instead of a service specific identifier. 4.3.2.2 Name of the TGS ....................... The principal identifier of the ticket-granting service shall be composed of three parts: (1) the realm of the KDC issuing the TGS ticket (2) a two-part name of type NT-SRV-INST, with the first part "krbtgt" and the second part the name of the realm which will accept the ticket-granting ticket. For example, a ticket-granting ticket issued by the ATHENA.MIT.EDU realm to be used to get tickets from the ATHENA.MIT.EDU KDC has a principal identifier of "ATHENA.MIT.EDU" (realm), ("krbtgt", "ATHENA.MIT.EDU") (name). A ticket-granting ticket issued by the ATHENA.MIT.EDU realm to be used to get tickets from the MIT.EDU realm has a principal identifier of "ATHENA.MIT.EDU" (realm), ("krbtgt", "MIT.EDU") (name). 4.3.3 Choosing a principal with which to communicate ---------------------------------------------------- The Kerberos protocol provides the means for verifying (subject to the assumptions in *note Environmental Assumptions::) that the entity with which one communicates is the same entity that was registered with the KDC using the claimed identity (principal name). It is still necessary to determine whether that identity corresponds to the entity with which one intends to communicate. When appropriate data has been exchanged in advance, this determination may be performed syntactically by the application based on the application protocol specification, information provided by the user, and configuration files. For example, the server principal name (including realm) for a telnet server might be derived from the user specified host name (from the telnet command line), the "host/" prefix specified in the application protocol specification, and a mapping to a Kerberos realm derived syntactically from the domain part of the specified hostname and information from the local Kerberos realms database. One can also rely on trusted third parties to make this determination, but only when the data obtained from the third party is suitably integrity protected while resident on the third party server and when transmitted. Thus, for example, one should not rely on an unprotected domain name system record to map a host alias to the primary name of a server, accepting the primary name as the party one intends to contact, since an attacker can modify the mapping and impersonate the party with which one intended to communicate. Implementations of Kerberos and protocols based on Kerberos MUST NOT use insecure DNS queries to canonicalize the hostname components of the service principal names. In an environment without secure name service, application authors MAY append a statically configured domain name to unqualified hostnames before passing the name to the security mechanisms, but should do no more than that. Secure name service facilities, if available, might be trusted for hostname canonicalization, but such canonicalization by the client SHOULD NOT be required by KDC implementations. Implementation note: Many current implementations do some degree of canonicalization of the provided service name, often using DNS even though it creates security problems. However there is no consistency among implementations about whether the service name is case folded to lower case or whether reverse resolution is used. To maximize interoperability and security, applications SHOULD provide security mechanisms with names which result from folding the user-entered name to lower case, without performing any other modifications or canonicalization. 4.3.4 Principal Name Form ------------------------- Principal names consist of a sequence of strings, which is often tedious to parse. Therefor, Shishi often uses a "printed" form of principal which embed the entire principal name string sequence, and optionally also the realm, into one string. The format is taken from the Kerberos 5 GSS-API mechanism (RFC 1964). The elements included within this name representation are as follows, proceeding from the beginning of the string: 1. One or more principal name components; if more than one principal name component is included, the components are separated by '/'. Arbitrary octets may be included within principal name components, with the following constraints and special considerations: a. Any occurrence of the characters '@' or '/' within a name component must be immediately preceded by the '\' quoting character, to prevent interpretation as a component or realm separator. b. The ASCII newline, tab, backspace, and null characters may occur directly within the component or may be represented, respectively, by '\n', '\t', '\b', or '\0'. c. If the '\' quoting character occurs outside the contexts described in (1a) and (1b) above, the following character is interpreted literally. As a special case, this allows the doubled representation '\\' to represent a single occurrence of the quoting character. d. An occurrence of the '\' quoting character as the last character of a component is illegal. 2. Optionally, a '@' character, signifying that a realm name immediately follows. If no realm name element is included, the local realm name is assumed. The '/' , ':', and null characters may not occur within a realm name; the '@', newline, tab, and backspace characters may be included using the quoting conventions described in (1a), (1b), and (1c) above.  File: shishi.info, Node: Shishi Configuration, Next: Shisa Configuration, Prev: Realm and Principal Naming, Up: Reference Manual 4.4 Shishi Configuration ======================== The valid configuration file tokens are described here. The user configuration file is typically located in '~/.shishi/shishi.conf' (compare 'shishi --configuration-file') and the system configuration is typically located in '/usr/local/etc/shishi/shishi.conf' (compare 'shishi --system-configuration-file'). If the first non white space character of a line is a '#', the line is ignored. Empty lines are also ignored. All tokens are valid in both the system and the user configuration files, and have the same meaning. However, as the system file is supposed to apply to all users on a system, it would not make sense to use some tokens in that file. For example, the 'default-principal' is rarely useful in a system configuration file. 4.4.1 'default-realm' --------------------- Specify the default realm, by default the hostname of the host is used. E.g., default-realm JOSEFSSON.ORG 4.4.2 'default-principal' ------------------------- Specify the default principal, by default the login username is used. E.g., default-principal jas 4.4.3 'client-kdc-etypes' ------------------------- Specify which encryption types client asks server to respond in during AS/TGS exchanges. List valid encryption types, in preference order. Supported algorithms include aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1-kd, des-cbc-md5, des-cbc-md4, des-cbc-crc and null. This option also indicates which encryption types are accepted by the client when receiving the response. Note that the preference order is not cryptographically protected, so a man in the middle can modify the order without being detected. Thus, only specify encryption types you trust completely here. The default only includes aes256-cts-hmac-sha1-96, as suggested by RFC1510bis. E.g., client-kdc-etypes=aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 4.4.4 'verbose', 'verbose-asn1', 'verbose-noise', 'verbose-crypto', 'verbose-crypto-noise' ------------------------------------------------------------------------------------------ Enable verbose library messages. E.g., verbose verbose-noise 4.4.5 'realm-kdc' ----------------- Specify KDC addresses for realms. Value is 'REALM,KDCADDRESS[/TRANSPORT][,KDCADDRESS[/TRANSPORT]...]'. KDCADDRESS is the hostname or IP address of KDC. Optional TRANSPORT is "udp" for UDP, "tcp" for TCP, and "tls" for TLS connections. By default UDP is tried first, and TCP used as a fallback if the KRB_ERR_RESPONSE_TOO_BIG error is received. If not specified, Shishi tries to locate the KDC using SRV RRs, which is recommended. This option should normally only be used during experiments, or to access badly maintained realms. realm-kdc=JOSEFSSON.ORG,ristretto.josefsson.org 4.4.6 'server-realm' -------------------- Specify realm for servers. Value is 'REALM,SERVERREGEXP[,SERVERREGEXP...]'. SERVERREGEXP is a regular expression matching servers in the realm. The first match is used. E.g., server-realm=JOSEFSSON.ORG,.josefsson.org Note: currently not used. 4.4.7 'kdc-timeout', 'kdc-retries' ---------------------------------- How long shishi waits for a response from a KDC before continuing to next KDC for realm. The default is 5 seconds. E.g., kdc-timeout=10 How many times shishi sends a request to a KDC before giving up. The default is 3 times. E.g., kdc-retries=5 4.4.8 'stringprocess' --------------------- How username and passwords entered from the terminal, or taken from the command line, are processed. "none": no processing is used. "stringprep": convert from locale charset to UTF-8 and process using experimental RFC 1510 stringprep profile. It can also be a string indicating a character set supported by iconv via libstringprep, in which case data is converted from locale charset into the indicated character set. E.g., UTF-8, ISO-8859-1, KOI-8, EBCDIC-IS-FRISS are supported on GNU systems. On some systems you can use "locale -m" to list available character sets. By default, the "none" setting is used which is consistent with RFC 1510 that is silent on the issue. In practice, however, converting to UTF-8 improves interoperability. E.g., stringprocess=UTF-8 4.4.9 'ticket-life' ------------------- Specify default ticket life time. The string can be in almost any common format. It can contain month names, time zones, 'am' and 'pm', 'yesterday', 'ago', 'next', etc. *Note Date input formats::, for the long story. As an extra feature, if the time specified by your string correspond to a time during the last 24 hours, an extra day is added to it. This allows you to specify relative times such as "17:00" to always mean the next 17:00, even if your system clock happens to be 17:30. The default is 8 hours. E.g., #ticket-life=8 hours #ticket-life=1 day ticket-life=17:00 4.4.10 'renew-life' ------------------- Specify how long a renewable ticket should remain renewable. See ticket-life for the syntax. The extra feature that handles negative values within the last 2 hours is not active here. The default is 7 days. E.g., #renew-life=1 week #renew-life=friday 17:00 renew-life=sunday  File: shishi.info, Node: Shisa Configuration, Next: Parameters for shishi, Prev: Shishi Configuration, Up: Reference Manual 4.5 Shisa Configuration ======================= The configuration file for Shisa is typically stored in '/usr/local/etc/shishi/shisa.conf'. If the first non white space character of a line is a '#', the line is ignored. Empty lines are also ignored. 4.5.1 'db' ---------- Currently the only configuration options available is the 'db' token that define the databases to use. The syntax is: db [OPTIONS] [LOCATION] [PARAMETERS ...] Specify the data sources for Kerberos 5 data. Multiple entries, even of the same data source type, are allowed. The data sources are accessed in the same sequence as they are defined here. If an entry is found in one data source, it will be used for the operations, without searching the remaining data sources. Valid OPTIONS include: --read-only No data is written to this data source. --ignore-errors Ignore failures in this backend. The default (when the configuration file is empty) uses one "file" data source (see below), but for a larger installation you may want to combine several data sources. Here is an example. db --read-only file /var/local/master db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem db --read-only file /var/cache/ldap-copy This demonstrate how you can store critical principals on local disk (the first entry, /var/local/master) that will always be found without looking in the LDAP directory. The critical principals could be, e.g., krbtgt/EXAMPLE.ORG. The second entry denote a LDAP server that could hold user principals. As you can see, Shisa will not let the caller know about errors with the LDAP source (they will be logged, however). Instead, if for instance the LDAP server has crashed, Shisa would continue and read from the /var/cache/ldap-copy file source. That file source may have been set up to contain a copy of the data in the LDAP server, perhaps made on an hourly basis, so that your server will be able to serve recent data even in case of a crash. Any updates or passwords change requests will however not be possible while the LDAP server is inaccessible, to reduce the problem of synchronizing data back into the LDAP server once it is online again. Currently only the "file" data source is supported, and denote a data source that use the standard file system for storage. Valid syntaxes for the "file" database: db file PATH Examples: db file /var/shishi db file /usr/share/shishi read-only If no 'db' tokens are present, the default will be: db file /usr/local/var/shishi  File: shishi.info, Node: Parameters for shishi, Next: Parameters for shishid, Prev: Shisa Configuration, Up: Reference Manual 4.6 Parameters for shishi ========================= If no command is given, Shishi try to make sure you have a ticket granting ticket for the default realm, and then display it. Mandatory arguments to long options are mandatory for short options too. Usage: shishi [OPTIONS]... [CLIENT [SERVER]]... -h, --help Print help and exit -V, --version Print version and exit Commands: -d, --destroy Destroy tickets in local cache, limited by any --client-name or --server-name. (default=off) -l, --list List tickets in local cache, limited by any --client-name and --server-name. (default=off) -r, --renew Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm. (default=off) Flags: --forwardable Get a forwardable ticket, i.e., one that can be used to get forwarded tickets. (default=off) --forwarded Get a forwarded ticket. (default= off) --proxiable Get a proxiable ticket, i.e., one that can be used to get proxy tickets. (default=off) --proxy Get a proxy ticket. (default=off) --renewable Get a renewable ticket. (default= off) Options: --client-name=NAME Client name. Default is login username. -E, --encryption-type=ETYPE,[ETYPE...] Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. -e, --endtime=STRING Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time. --realm=STRING Set default realm. --renew-till=STRING Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time. --server-name=NAME Server name. Default is 'krbtgt/REALM' where REALM is client realm. -s, --starttime=STRING Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately. --ticket-granter=NAME Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm. Other options: --configuration-file=FILE Read user configuration from FILE. -c, --ticket-file=FILE Read tickets from FILE. -o, --library-options=STRING Parse STRING as a configuration file statement. -q, --quiet Don't produce any diagnostic output. (default=off) --system-configuration-file=FILE Read system configuration from FILE. --ticket-write-file=FILE Write tickets from FILE. Default is to write them back to where they were read from. -v, --verbose Produce verbose output. (default=off)  File: shishi.info, Node: Parameters for shishid, Next: Parameters for shisa, Prev: Parameters for shishi, Up: Reference Manual 4.7 Parameters for shishid ========================== If no parameters are specified, 'shishid' listens on the defaults interfaces and answers incoming requests using the keys in the default key file. Mandatory arguments to long options are mandatory for short options too. Usage: shishid [OPTIONS]... -h, --help Print help and exit -V, --version Print version and exit Commands: -l, --listen=[FAMILY:]ADDR:PORT/TYPE Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'. -u, --setuid=NAME After binding socket, set user identity. TLS settings: --no-tls Disable TLS support (default=off) --x509cafile=FILE X.509 certificate authorities used to verify client certificates, in PEM format. --x509certfile=FILE X.509 server certificate, in PEM format. --x509crlfile=FILE X.509 certificate revocation list to check for revoked client certificates, in PEM format. --x509keyfile=FILE X.509 server certificate key, in PEM format. --resume-limit=SHORT Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume). (default=`50') Other options: -c, --configuration-file=FILE Use specified configuration file. -v, --verbose Produce verbose output. Use multiple times to increase amount of information. -q, --quiet Don't produce any diagnostic output. (default=off)  File: shishi.info, Node: Parameters for shisa, Next: Environment variables, Prev: Parameters for shishid, Up: Reference Manual 4.8 Parameters for shisa ======================== The purpose of 'shisa' is to manipulate information stored in the Kerberos 5 database used by Shishi. Mandatory arguments to long options are mandatory for short options too. Usage: shisa [OPTIONS]... [REALM [PRINCIPAL]]... -h, --help Print help and exit -V, --version Print version and exit Operations: -a, --add Add realm or principal to database. -d, --dump Dump entries in database. -n, --key-add Add new key to a principal in database. --key-remove Remove a key from a principal in database. -l, --list List entries in database. -m, --modify Modify principal entry in database. -r, --remove Remove realm or principal from database. Parameters: -f, --force Allow removal of non-empty realms. (default=off) --enabled Only dump or list enabled principals. (default=off) --disabled Only dump or list disabled principals. (default=off) --keys Print cryptographic key and password in hostkey format. (default=off) Values: -E, --encryption-type=STRING Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. --key-version=NUMBER Version of key. --password[=STRING] Derive key from this password. --random Use a random key. (default) --salt=STRING Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name. --string-to-key-parameter=HEX Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver. Other options: -c, --configuration-file=FILE Use specified configuration file. -o, --library-options=STRING Parse string as configuration file statement. -v, --verbose Produce verbose output. (default=off) -q, --quiet Don't produce any diagnostic output. (default=off)  File: shishi.info, Node: Environment variables, Next: Date input formats, Prev: Parameters for shisa, Up: Reference Manual 4.9 Environment variables ========================= A few of the compile-time defaults may be overridden at run-time by using environment variables. The following variables are supported. * 'SHISHI_CONFIG' Specify the location of the default system configuration file. Used by the Shishi library. If not specified, the default is specified at compile-time and is usually '$prefix/etc/shishi.conf'. * 'SHISHI_HOME' Specify the user specific directory for configuration files, ticket cache, etc. Used by the Shishi library. If not specified, it is computed as '$HOME/.shishi'. * 'SHISHI_USER' Specify the default principal user name. Used by the Shishi library. If not specified, it is taken from the environment variable 'USER'. * 'SHISHI_TICKETS' Specify the file name of the ticket cache. Used by the Shishi library. If not specified, it will be '$SHISHI_HOME/tickets', or '$HOME/.shishi/tickets' if '$SHISHI_HOME' is not specified.  File: shishi.info, Node: Date input formats, Prev: Environment variables, Up: Reference Manual 4.10 Date input formats ======================= First, a quote: Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system. It is like a set of trapezoidal building blocks, with no vertical or horizontal surfaces, like a language in which the simplest thought demands ornate constructions, useless particles and lengthy circumlocutions. Unlike the more successful patterns of language and science, which enable us to face experience boldly or at least level-headedly, our system of temporal calculation silently and persistently encourages our terror of time. ... It is as though architects had to measure length in feet, width in meters and height in ells; as though basic instruction manuals demanded a knowledge of five different languages. It is no wonder then that we often look into our own immediate past or future, last Tuesday or a week from Sunday, with feelings of helpless confusion. ... --Robert Grudin, 'Time and the Art of Living'. This section describes the textual date representations that GNU programs accept. These are the strings you, as a user, can supply as arguments to the various programs. The C interface (via the 'parse_datetime' function) is not described here. * Menu: * General date syntax:: Common rules * Calendar date items:: 21 Jul 2020 * Time of day items:: 9:20pm * Time zone items:: UTC, -0700, +0900, ... * Combined date and time of day items:: 2020-07-21T20:02:00,000000-0400 * Day of week items:: Monday and others * Relative items in date strings:: next tuesday, 2 years ago * Pure numbers in date strings:: 20200721, 1440 * Seconds since the Epoch:: @1595289600 * Specifying time zone rules:: TZ="America/New_York", TZ="UTC0" * Authors of parse_datetime:: Bellovin, Eggert, Salz, Berets, et al.  File: shishi.info, Node: General date syntax, Next: Calendar date items, Up: Date input formats 4.10.1 General date syntax -------------------------- A "date" is a string, possibly empty, containing many items separated by whitespace. The whitespace may be omitted when no ambiguity arises. The empty string means the beginning of today (i.e., midnight). Order of the items is immaterial. A date string may contain many flavors of items: * calendar date items * time of day items * time zone items * combined date and time of day items * day of the week items * relative items * pure numbers. We describe each of these item types in turn, below. A few ordinal numbers may be written out in words in some contexts. This is most useful for specifying day of the week items or relative items (see below). Among the most commonly used ordinal numbers, the word 'last' stands for -1, 'this' stands for 0, and 'first' and 'next' both stand for 1. Because the word 'second' stands for the unit of time there is no way to write the ordinal number 2, but for convenience 'third' stands for 3, 'fourth' for 4, 'fifth' for 5, 'sixth' for 6, 'seventh' for 7, 'eighth' for 8, 'ninth' for 9, 'tenth' for 10, 'eleventh' for 11 and 'twelfth' for 12. When a month is written this way, it is still considered to be written numerically, instead of being "spelled in full"; this changes the allowed strings. In the current implementation, only English is supported for words and abbreviations like 'AM', 'DST', 'EST', 'first', 'January', 'Sunday', 'tomorrow', and 'year'. The output of the 'date' command is not always acceptable as a date string, not only because of the language problem, but also because there is no standard meaning for time zone items like 'IST'. When using 'date' to generate a date string intended to be parsed later, specify a date format that is independent of language and that does not use time zone items other than 'UTC' and 'Z'. Here are some ways to do this: $ LC_ALL=C TZ=UTC0 date Tue Jul 21 23:00:37 UTC 2020 $ TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ' 2020-07-21 23:00:37Z $ date --rfc-3339=ns # --rfc-3339 is a GNU extension. 2020-07-21 19:00:37.692722128-04:00 $ date --rfc-2822 # a GNU extension Tue, 21 Jul 2020 19:00:37 -0400 $ date +'%Y-%m-%d %H:%M:%S %z' # %z is a GNU extension. 2020-07-21 19:00:37 -0400 $ date +'@%s.%N' # %s and %N are GNU extensions. @1595372437.692722128 Alphabetic case is completely ignored in dates. Comments may be introduced between round parentheses, as long as included parentheses are properly nested. Hyphens not followed by a digit are currently ignored. Leading zeros on numbers are ignored. Invalid dates like '2019-02-29' or times like '24:00' are rejected. In the typical case of a host that does not support leap seconds, a time like '23:59:60' is rejected even if it corresponds to a valid leap second.  File: shishi.info, Node: Calendar date items, Next: Time of day items, Prev: General date syntax, Up: Date input formats 4.10.2 Calendar date items -------------------------- A "calendar date item" specifies a day of the year. It is specified differently, depending on whether the month is specified numerically or literally. All these strings specify the same calendar date: 2020-07-20 # ISO 8601. 20-7-20 # Assume 19xx for 69 through 99, # 20xx for 00 through 68 (not recommended). 7/20/2020 # Common U.S. writing. 20 July 2020 20 Jul 2020 # Three-letter abbreviations always allowed. Jul 20, 2020 20-jul-2020 20jul2020 The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: 7/20 jul 20 Here are the rules. For numeric months, the ISO 8601 format 'YEAR-MONTH-DAY' is allowed, where YEAR is any positive number, MONTH is a number between 01 and 12, and DAY is a number between 01 and 31. A leading zero must be present if a number is less than ten. If YEAR is 68 or smaller, then 2000 is added to it; otherwise, if YEAR is less than 100, then 1900 is added to it. The construct 'MONTH/DAY/YEAR', popular in the United States, is accepted. Also 'MONTH/DAY', omitting the year. Literal months may be spelled out in full: 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November' or 'December'. Literal months may be abbreviated to their first three letters, possibly followed by an abbreviating dot. It is also permitted to write 'Sept' instead of 'September'. When months are written literally, the calendar date may be given as any of the following: DAY MONTH YEAR DAY MONTH MONTH DAY YEAR DAY-MONTH-YEAR Or, omitting the year: MONTH DAY  File: shishi.info, Node: Time of day items, Next: Time zone items, Prev: Calendar date items, Up: Date input formats 4.10.3 Time of day items ------------------------ A "time of day item" in date strings specifies the time on a given day. Here are some examples, all of which represent the same time: 20:02:00.000000 20:02 8:02pm 20:02-0500 # In EST (U.S. Eastern Standard Time). More generally, the time of day may be given as 'HOUR:MINUTE:SECOND', where HOUR is a number between 0 and 23, MINUTE is a number between 0 and 59, and SECOND is a number between 0 and 59 possibly followed by '.' or ',' and a fraction containing one or more digits. Alternatively, ':SECOND' can be omitted, in which case it is taken to be zero. On the rare hosts that support leap seconds, SECOND may be 60. If the time is followed by 'am' or 'pm' (or 'a.m.' or 'p.m.'), HOUR is restricted to run from 1 to 12, and ':MINUTE' may be omitted (taken to be zero). 'am' indicates the first half of the day, 'pm' indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is '12am' while noon is '12pm'. (This is the zero-oriented interpretation of '12am' and '12pm', as opposed to the old tradition derived from Latin which uses '12m' for noon and '12pm' for midnight.) The time may alternatively be followed by a time zone correction, expressed as 'SHHMM', where S is '+' or '-', HH is a number of zone hours and MM is a number of zone minutes. The zone minutes term, MM, may be omitted, in which case the one- or two-digit correction is interpreted as a number of hours. You can also separate HH from MM with a colon. When a time zone correction is given this way, it forces interpretation of the time relative to Coordinated Universal Time (UTC), overriding any previous specification for the time zone or the local time zone. For example, '+0530' and '+05:30' both stand for the time zone 5.5 hours ahead of UTC (e.g., India). This is the best way to specify a time zone correction by fractional parts of an hour. The maximum zone correction is 24 hours. Either 'am'/'pm' or a time zone correction may be specified, but not both.  File: shishi.info, Node: Time zone items, Next: Combined date and time of day items, Prev: Time of day items, Up: Date input formats 4.10.4 Time zone items ---------------------- A "time zone item" specifies an international time zone, indicated by a small set of letters, e.g., 'UTC' or 'Z' for Coordinated Universal Time. Any included periods are ignored. By following a non-daylight-saving time zone by the string 'DST' in a separate word (that is, separated by some white space), the corresponding daylight saving time zone may be specified. Alternatively, a non-daylight-saving time zone can be followed by a time zone correction, to add the two values. This is normally done only for 'UTC'; for example, 'UTC+05:30' is equivalent to '+05:30'. Time zone items other than 'UTC' and 'Z' are obsolescent and are not recommended, because they are ambiguous; for example, 'EST' has a different meaning in Australia than in the United States, and 'A' has different meaning as a military time zone than as an obsolete RFC 822 time zone. Instead, it's better to use unambiguous numeric time zone corrections like '-0500', as described in the previous section. If neither a time zone item nor a time zone correction is supplied, timestamps are interpreted using the rules of the default time zone (*note Specifying time zone rules::).  File: shishi.info, Node: Combined date and time of day items, Next: Day of week items, Prev: Time zone items, Up: Date input formats 4.10.5 Combined date and time of day items ------------------------------------------ The ISO 8601 date and time of day extended format consists of an ISO 8601 date, a 'T' character separator, and an ISO 8601 time of day. This format is also recognized if the 'T' is replaced by a space. In this format, the time of day should use 24-hour notation. Fractional seconds are allowed, with either comma or period preceding the fraction. ISO 8601 fractional minutes and hours are not supported. Typically, hosts support nanosecond timestamp resolution; excess precision is silently discarded. Here are some examples: 2012-09-24T20:02:00.052-05:00 2012-12-31T23:59:59,999999999+11:00 1970-01-01 00:00Z  File: shishi.info, Node: Day of week items, Next: Relative items in date strings, Prev: Combined date and time of day items, Up: Date input formats 4.10.6 Day of week items ------------------------ The explicit mention of a day of the week will forward the date (only if necessary) to reach that day of the week in the future. Days of the week may be spelled out in full: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday' or 'Saturday'. Days may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations 'Tues' for 'Tuesday', 'Wednes' for 'Wednesday' and 'Thur' or 'Thurs' for 'Thursday' are also allowed. A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like 'third monday'. In this context, 'last DAY' or 'next DAY' is also acceptable; they move one week before or after the day that DAY by itself would represent. A comma following a day of the week item is ignored.  File: shishi.info, Node: Relative items in date strings, Next: Pure numbers in date strings, Prev: Day of week items, Up: Date input formats 4.10.7 Relative items in date strings ------------------------------------- "Relative items" adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: 1 year 1 year ago 3 years 2 days The unit of time displacement may be selected by the string 'year' or 'month' for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are 'fortnight' which is worth 14 days, 'week' worth 7 days, 'day' worth 24 hours, 'hour' worth 60 minutes, 'minute' or 'min' worth 60 seconds, and 'second' or 'sec' worth one second. An 's' suffix on these units is accepted and ignored. The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string 'ago' is equivalent to preceding the unit by a multiplier with value -1. The string 'tomorrow' is worth one day in the future (equivalent to 'day'), the string 'yesterday' is worth one day in the past (equivalent to 'day ago'). The strings 'now' or 'today' are relative items corresponding to zero-valued time displacement, these strings come from the fact a zero-valued time displacement represents the current time when not otherwise changed by previous items. They may be used to stress other items, like in '12:00 today'. The string 'this' also has the meaning of a zero-valued time displacement, but is preferred in date strings like 'this thursday'. When a relative item causes the resulting date to cross a boundary where the clocks were adjusted, typically for daylight saving time, the resulting date and time are adjusted accordingly. The fuzz in units can cause problems with relative items. For example, '2020-07-31 -1 month' might evaluate to 2020-07-01, because 2020-06-31 is an invalid date. To determine the previous month more reliably, you can ask for the month before the 15th of the current month. For example: $ date -R Thu, 31 Jul 2020 13:02:39 -0400 $ date --date='-1 month' +'Last month was %B?' Last month was July? $ date --date="$(date +%Y-%m-15) -1 month" +'Last month was %B!' Last month was June! Also, take care when manipulating dates around clock changes such as daylight saving leaps. In a few cases these have added or subtracted as much as 24 hours from the clock, so it is often wise to adopt universal time by setting the 'TZ' environment variable to 'UTC0' before embarking on calendrical calculations.  File: shishi.info, Node: Pure numbers in date strings, Next: Seconds since the Epoch, Prev: Relative items in date strings, Up: Date input formats 4.10.8 Pure numbers in date strings ----------------------------------- The precise interpretation of a pure decimal number depends on the context in the date string. If the decimal number is of the form YYYYMMDD and no other calendar date item (*note Calendar date items::) appears before it in the date string, then YYYY is read as the year, MM as the month number and DD as the day of the month, for the specified calendar date. If the decimal number is of the form HHMM and no other time of day item appears before it in the date string, then HH is read as the hour of the day and MM as the minute of the hour, for the specified time of day. MM can also be omitted. If both a calendar date and a time of day appear to the left of a number in the date string, but no relative item, then the number overrides the year.  File: shishi.info, Node: Seconds since the Epoch, Next: Specifying time zone rules, Prev: Pure numbers in date strings, Up: Date input formats 4.10.9 Seconds since the Epoch ------------------------------ If you precede a number with '@', it represents an internal timestamp as a count of seconds. The number can contain an internal decimal point (either '.' or ','); any excess precision not supported by the internal representation is truncated toward minus infinity. Such a number cannot be combined with any other date item, as it specifies a complete timestamp. Internally, computer times are represented as a count of seconds since an Epoch--a well-defined point of time. On GNU and POSIX systems, the Epoch is 1970-01-01 00:00:00 UTC, so '@0' represents this time, '@1' represents 1970-01-01 00:00:01 UTC, and so forth. GNU and most other POSIX-compliant systems support such times as an extension to POSIX, using negative counts, so that '@-1' represents 1969-12-31 23:59:59 UTC. Most modern systems count seconds with 64-bit two's-complement integers of seconds with nanosecond subcounts, which is a range that includes the known lifetime of the universe with nanosecond resolution. Some obsolescent systems count seconds with 32-bit two's-complement integers and can represent times from 1901-12-13 20:45:52 through 2038-01-19 03:14:07 UTC. A few systems sport other time ranges. On most hosts, these counts ignore the presence of leap seconds. For example, on most hosts '@1483228799' represents 2016-12-31 23:59:59 UTC, '@1483228800' represents 2017-01-01 00:00:00 UTC, and there is no way to represent the intervening leap second 2016-12-31 23:59:60 UTC.  File: shishi.info, Node: Specifying time zone rules, Next: Authors of parse_datetime, Prev: Seconds since the Epoch, Up: Date input formats 4.10.10 Specifying time zone rules ---------------------------------- Normally, dates are interpreted using the rules of the current time zone, which in turn are specified by the 'TZ' environment variable, or by a system default if 'TZ' is not set. To specify a different set of default time zone rules that apply just to one date, start the date with a string of the form 'TZ="RULE"'. The two quote characters ('"') must be present in the date, and any quotes or backslashes within RULE must be escaped by a backslash. For example, with the GNU 'date' command you can answer the question "What time is it in New York when a Paris clock shows 6:30am on October 31, 2019?" by using a date beginning with 'TZ="Europe/Paris"' as shown in the following shell transcript: $ export TZ="America/New_York" $ date --date='TZ="Europe/Paris" 2019-10-31 06:30' Sun Oct 31 01:30:00 EDT 2019 In this example, the '--date' operand begins with its own 'TZ' setting, so the rest of that operand is processed according to 'Europe/Paris' rules, treating the string '2019-10-31 06:30' as if it were in Paris. However, since the output of the 'date' command is processed according to the overall time zone rules, it uses New York time. (Paris was normally six hours ahead of New York in 2019, but this example refers to a brief Halloween period when the gap was five hours.) A 'TZ' value is a rule that typically names a location in the 'tz' database (https://www.iana.org/time-zones). A recent catalog of location names appears in the TWiki Date and Time Gateway (https://twiki.org/cgi-bin/xtra/tzdatepick.html). A few non-GNU hosts require a colon before a location name in a 'TZ' setting, e.g., 'TZ=":America/New_York"'. The 'tz' database includes a wide variety of locations ranging from 'Africa/Abidjan' to 'Pacific/Tongatapu', but if you are at sea and have your own private time zone, or if you are using a non-GNU host that does not support the 'tz' database, you may need to use a POSIX rule instead. The previously-mentioned POSIX rule 'UTC0' says that the time zone abbreviation is 'UTC', the zone is zero hours away from Greenwich, and there is no daylight saving time. POSIX rules can also specify nonzero Greenwich offsets. For example, the following shell transcript answers the question "What time is it five and a half hours east of Greenwich when a clock seven hours west of Greenwich shows 9:50pm on July 12, 2022?" $ TZ="<+0530>-5:30" date --date='TZ="<-07>+7" 2022-07-12 21:50' Wed Jul 13 10:20:00 +0530 2022 This example uses the somewhat-confusing POSIX convention for rules. 'TZ="<-07>+7"' says that the time zone abbreviation is '-07' and the time zone is 7 hours west of Greenwich, and 'TZ="<+0530>-5:30"' says that the time zone abbreviation is '+0530' and the time zone is 5 hours 30 minutes east of Greenwich. Although trickier POSIX 'TZ' settings like 'TZ="<-05>+5<-04>,M3.2.0/2,M11.1.0/2"' can specify some daylight saving regimes, location-based settings like 'TZ="America/New_York"' are typically simpler and more accurate historically. *Note Specifying the Time Zone with 'TZ': (libc)TZ Variable.  File: shishi.info, Node: Authors of parse_datetime, Prev: Specifying time zone rules, Up: Date input formats 4.10.11 Authors of 'parse_datetime' ----------------------------------- 'parse_datetime' started life as 'getdate', as originally implemented by Steven M. Bellovin () while at the University of North Carolina at Chapel Hill. The code was later tweaked by a couple of people on Usenet, then completely overhauled by Rich $alz () and Jim Berets () in August, 1990. Various revisions for the GNU system were made by David MacKenzie, Jim Meyering, Paul Eggert and others, including renaming it to 'get_date' to avoid a conflict with the alternative Posix function 'getdate', and a later rename to 'parse_datetime'. The Posix function 'getdate' can parse more locale-specific dates using 'strptime', but relies on an environment variable and external file, and lacks the thread-safety of 'parse_datetime'. This chapter was originally produced by François Pinard () from the 'parse_datetime.y' source code, and then edited by K. Berry ().  File: shishi.info, Node: Programming Manual, Next: Acknowledgements, Prev: Reference Manual, Up: Top 5 Programming Manual ******************** This chapter describes all the publicly available functions in the library. * Menu: * Preparation:: What you should do before using the library. * Initialization Functions:: Creating library handle, configuration file. * Ticket Set Functions:: High-level ticket management functions. * AP-REQ and AP-REP Functions:: Client/Server authentication functions. * SAFE and PRIV Functions:: Client/Server session data functions. * Ticket Functions:: Medium-level ticket manipulation functions. * AS Functions:: Medium-level initial authentication functions. * TGS Functions:: Medium-level authentication functions. * Ticket (ASN.1) Functions:: Low-level Ticket functions. * AS/TGS Functions:: Low-level KDC functions; AS and TGS. * Authenticator Functions:: Low-level authenticator functions. * KRB-ERROR Functions:: Low-level KRB-ERROR functions. * Cryptographic Functions:: Low-level cryptographic functions. * X.509 Functions:: Utility functions for X.509 support. * Utility Functions:: Utilities for use in the global context. * ASN.1 Functions:: Perform low-level ASN.1 manipulations. * Error Handling:: Error codes and such. * Examples:: Example code. * Kerberos Database Functions:: The Shisa generic database interface. * Generic Security Service:: If you want to use the GSS API instead.  File: shishi.info, Node: Preparation, Next: Initialization Functions, Up: Programming Manual 5.1 Preparation =============== To use 'Libshishi', you have to perform some changes to your sources and the build system. The necessary changes are small and explained in the following sections. At the end of this chapter, it is described how the library is initialized, and how the requirements of the library are verified. A faster way to find out how to adapt your application for use with 'Libshishi' may be to look at the examples at the end of this manual (*note Examples::). * Menu: * Header:: * Initialization:: * Version Check:: * Building the source:: * Autoconf tests::  File: shishi.info, Node: Header, Next: Initialization, Up: Preparation 5.1.1 Header ------------ All interfaces (data types and functions) of the library are defined in the header file 'shishi.h'. You must include this in all programs using the library, either directly or through some other header file, like this: #include The name space of 'Libshishi' is 'shishi_*' for function names, 'Shishi*' for data types and 'SHISHI_*' for other symbols. In addition the same name prefixes with one prepended underscore are reserved for internal use and should never be used by an application.  File: shishi.info, Node: Initialization, Next: Version Check, Prev: Header, Up: Preparation 5.1.2 Initialization -------------------- 'Libshishi' must be initialized before it can be used. The library is initialized by calling 'shishi_init' (*note Initialization Functions::). The resources allocated by the initialization process can be released if the application no longer has a need to call 'Libshishi' functions, this is done by calling 'shishi_done'. In order to take advantage of the internationalisation features in 'Libshishi', such as translated error messages, the application must set the current locale using 'setlocale' before initializing 'Libshishi'.  File: shishi.info, Node: Version Check, Next: Building the source, Prev: Initialization, Up: Preparation 5.1.3 Version Check ------------------- It is often desirable to check that the version of 'Libshishi' used is indeed one which fits all requirements. Even with binary compatibility new features may have been introduced but due to problem with the dynamic linker an old version is actually used. So you may want to check that the version is okay right after program startup. shishi_check_version -------------------- -- Function: const char * shishi_check_version (const char * REQ_VERSION) REQ_VERSION: Oldest acceptable version, or 'NULL'. *Description:* Checks that the installed library version is at least as recent as the one provided in REQ_VERSION. The version string is formatted like "1.0.2". Whenever 'NULL' is passed to this function, the check is suppressed, but the library version is still returned. *Return value:* Returns the active library version, or 'NULL', should the running library be too old. The normal way to use the function is to put something similar to the following early in your 'main': if (!shishi_check_version (SHISHI_VERSION)) { printf ("shishi_check_version failed:\n" "Header file incompatible with shared library.\n"); exit (EXIT_FAILURE); }  File: shishi.info, Node: Building the source, Next: Autoconf tests, Prev: Version Check, Up: Preparation 5.1.4 Building the source ------------------------- If you want to compile a source file including the 'shishi.h' header file, you must make sure that the compiler can find it in the directory hierarchy. This is accomplished by adding the path to the directory in which the header file is located to the compilers include file search path (via the '-I' option). However, the path to the include file is determined at the time the source is configured. To solve this problem, 'Libshishi' uses the external package 'pkg-config' that knows the path to the include file and other configuration options. The options that need to be added to the compiler invocation at compile time are output by the '--cflags' option to 'pkg-config shishi'. The following example shows how it can be used at the command line: gcc -c foo.c `pkg-config shishi --cflags` Adding the output of 'pkg-config shishi --cflags' to the compilers command line will ensure that the compiler can find the 'Libshishi' header file. A similar problem occurs when linking the program with the library. Again, the compiler has to find the library files. For this to work, the path to the library files has to be added to the library search path (via the '-L' option). For this, the option '--libs' to 'pkg-config shishi' can be used. For convenience, this option also outputs all other options that are required to link the program with the 'Libshishi' libararies (in particular, the '-lshishi' option). The example shows how to link 'foo.o' with the 'Libshishi' library to a program 'foo'. gcc -o foo foo.o `pkg-config shishi --libs` Of course you can also combine both examples to a single command by specifying both options to 'pkg-config': gcc -o foo foo.c `pkg-config shishi --cflags --libs`  File: shishi.info, Node: Autoconf tests, Prev: Building the source, Up: Preparation 5.1.5 Autoconf tests -------------------- If you work on a project that uses Autoconf (*note GNU Autoconf: (autoconf)top.) to help find installed libraries, the suggestions in the previous section are not the entire story. There are a few methods to detect and incorporate Shishi into your Autoconf based package. The preferred approach, is to use Libtool in your project, and use the normal Autoconf header file and library tests. 5.1.5.1 Autoconf test via 'pkg-config' ...................................... If your audience is a typical GNU/Linux desktop, you can often assume they have the 'pkg-config' tool installed, in which you can use its Autoconf M4 macro to find and set up your package for use with Shishi. The following illustrate this scenario. AC_ARG_ENABLE(kerberos_v5, AC_HELP_STRING([--disable-kerberos_v5], [don't use the KERBEROS_V5 mechanism]), kerberos_v5=$enableval) if test "$kerberos_v5" != "no" ; then PKG_CHECK_MODULES(SHISHI, shishi >= 0.0.0, [kerberos_v5=yes], [kerberos_v5=no]) if test "$kerberos_v5" != "yes" ; then kerberos_v5=no AC_MSG_WARN([shishi not found, disabling Kerberos 5]) else kerberos_v5=yes AC_DEFINE(USE_KERBEROS_V5, 1, [Define to 1 if you want Kerberos 5.]) fi fi AC_MSG_CHECKING([if Kerberos 5 should be used]) AC_MSG_RESULT($kerberos_v5) 5.1.5.2 Standalone Autoconf test using Libtool .............................................. If your package uses Libtool(*note GNU Libtool: (libtool)top.), you can use the normal Autoconf tests to find the Shishi library and rely on the Libtool dependency tracking to include the proper dependency libraries (e.g., Libidn). The following illustrate this scenario. AC_CHECK_HEADER(shishi.h, AC_CHECK_LIB(shishi, shishi_check_version, [kerberos5=yes AC_SUBST(SHISHI_LIBS, -lshishi)], kerberos5=no), kerberos5=no) AC_ARG_ENABLE(kerberos5, AC_HELP_STRING([--disable-kerberos5], [disable Kerberos 5 unconditionally]), kerberos5=$enableval) if test "$kerberos5" != "no" ; then AC_DEFINE(USE_KERBEROS_V5, 1, [Define to 1 if you want Kerberos 5.]) else AC_MSG_WARN([Shishi not found, disabling Kerberos 5]) fi AC_MSG_CHECKING([if Kerberos 5 should be used]) AC_MSG_RESULT($kerberos5) 5.1.5.3 Standalone Autoconf test ................................ If your package does not use Libtool, as well as detecting the Shishi library as in the previous case, you must also detect whatever dependencies Shishi requires to work (e.g., libidn). Since the dependencies are in a state of flux, we do not provide an example and we do not recommend this approach, unless you are experienced developer.  File: shishi.info, Node: Initialization Functions, Next: Ticket Set Functions, Prev: Preparation, Up: Programming Manual 5.2 Initialization Functions ============================ shishi ------ -- Function: Shishi * shishi () *Description:* Initializes the Shishi library, and primes logging so that future warnings and informational messages are printed on 'stderr'. If this function fails, it may send its own diagnostic errors to 'stderr'. *Return value:* Returns a Shishi library handle, or 'NULL' on error. shishi_server ------------- -- Function: Shishi * shishi_server () *Description:* Initializes the Shishi library, and primes logging so that future warnings and informational messages are sent to the syslog system. If this function fails, it may print diagnostic errors in the syslog. *Return value:* Returns a Shishi library handle, or 'NULL' on error. shishi_done ----------- -- Function: void shishi_done (Shishi * HANDLE) HANDLE: Shishi handle as allocated by 'shishi_init()'. *Description:* Deallocates the Shishi library handle. The handle must not be used in any call to a shishi function after an execution of 'shishi_done()'. If there is a default 'tkts', it is written to the default tkts file. If you do not wish to write the default tkts file, close the default file before calling this function. It is closed with a simple 'shishi_tkts_done'(HANDLE, 'NULL'). For related information, see 'shishi_tkts_default_file_set()'. shishi_init ----------- -- Function: int shishi_init (Shishi ** HANDLE) HANDLE: Pointer to a Shishi handle created by this call. *Description:* Creates a Shishi library handle, using 'shishi()', and reads the system configuration file, user configuration file and user tickets from their default locations. The paths to the system configuration file is decided at compile time, and is 'sysconfdir'/shishi.conf. The user configuration file is 'HOME'/.shishi/config, and the user ticket file is 'HOME'/.shishi/ticket. The handle is allocated regardless of return value. The single exception being 'SHISHI_HANDLE_ERROR', which indicates a problem in allocating the handle. Other error conditions could arise while reading files. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_init_with_paths ---------------------- -- Function: int shishi_init_with_paths (Shishi ** HANDLE, const char * TKTSFILE, const char * SYSTEMCFGFILE, const char * USERCFGFILE) HANDLE: Pointer to a Shishi handle created by this call. TKTSFILE: Filename of ticket file, or 'NULL'. SYSTEMCFGFILE: Filename of system configuration, or 'NULL'. USERCFGFILE: Filename of user configuration, or 'NULL'. *Description:* Creates a Shishi library handle, using 'shishi()', and reads the system configuration file, user configuration file, and user tickets at the specified locations. If any of USERCFGFILE or SYSTEMCFGFILE is 'NULL', the file is read from its default location, which for the system configuration is decided at compile time, and is 'sysconfdir'/shishi.conf, and for the user configuration it is 'HOME'/.shishi/config. If the ticket file name is 'NULL', a ticket file is not read at all. The handle is allocated regardless of return value. The single exception being 'SHISHI_HANDLE_ERROR', which indicates a problem in allocating the handle. Other error conditions could arise while reading files. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_init_server ------------------ -- Function: int shishi_init_server (Shishi ** HANDLE) HANDLE: Pointer to a Shishi handle created by this call. *Description:* Creates a Shishi library handle, using 'shishi_server()', and reads the system configuration file. The path to the system configuration file is decided at compile time, and is 'sysconfdir'/shishi.conf. The handle is allocated regardless of return value. The single exception being 'SHISHI_HANDLE_ERROR', which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_init_server_with_paths ----------------------------- -- Function: int shishi_init_server_with_paths (Shishi ** HANDLE, const char * SYSTEMCFGFILE) HANDLE: Pointer to a Shishi handle created by this call. SYSTEMCFGFILE: Filename of system configuration, or 'NULL'. *Description:* Creates a Shishi library handle, using 'shishi_server()', and reads the system configuration file from the specified location. The path to the system configuration file is decided at compile time, and is 'sysconfdir'/shishi.conf. The handle is allocated regardless of return value. The single exception being 'SHISHI_HANDLE_ERROR', which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_cfg ---------- -- Function: int shishi_cfg (Shishi * HANDLE, const char * OPTION) HANDLE: Shishi library handle created by 'shishi_init()'. OPTION: String containing shishi library options. *Description:* Configures the shishi library according to the options given in OPTION. *Return value:* Returns 'SHISHI_OK' if OPTION is valid and configuration was successful. shishi_cfg_from_file -------------------- -- Function: int shishi_cfg_from_file (Shishi * HANDLE, const char * CFG) HANDLE: Shishi library handle created by 'shishi_init()'. CFG: Name of configuration file. *Description:* Configures the shishi library using a configuration file located at CFG. *Return value:* Returns 'SHISHI_OK' if successful. shishi_cfg_print ---------------- -- Function: int shishi_cfg_print (Shishi * HANDLE, FILE * FH) HANDLE: Shishi library handle created by 'shishi_init()'. FH: File stream handle opened for writing. *Description:* Prints library configuration status to FH. This function is mostly intended for debugging purposes. *Return value:* Always returns 'SHISHI_OK'. shishi_cfg_default_systemfile ----------------------------- -- Function: const char * shishi_cfg_default_systemfile (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* The system configuration file name is decided at compile time, but is replaced by assigning another file name to the environment variable 'SHISHI_CONFIG'. This call offers a single interface for determining the file name, to which the library turns for its settings. *Return value:* Returns file name of present system configuration. shishi_cfg_default_userdirectory -------------------------------- -- Function: const char * shishi_cfg_default_userdirectory (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* The default user directory, referred to for Shishi ticket cache and other purposes, is normally computed by appending the fixed string "/.shishi" to the content of the environment variable 'HOME'. This hard coded directory, i.e., "'HOME'/.shishi/", can be replaced by whatever complete path is stored in the environment variable 'SHISHI_HOME'. *Return value:* Returns the user's directory name where the Shishi library will search for configuration files, ticket caches, etcetera. shishi_cfg_userdirectory_file ----------------------------- -- Function: char * shishi_cfg_userdirectory_file (Shishi * HANDLE, const char * FILE) HANDLE: Shishi library handle created by 'shishi_init()'. FILE: Basename of file to use for the user's configuration settings of the library. *Description:* Reports the full path to the file where the Shishi library expects to find the user's library configuration, given that the file itself is named by the parameter FILE. The answer is composed from the value of FILE and the directory returned by 'shishi_cfg_default_userdirectory()'. Typically, the returned string would be expanded from "'HOME'/.shishi/FILE". *Return value:* Returns the absolute filename to the argument FILE, relative to the user specific Shishi configuration directory. shishi_cfg_default_userfile --------------------------- -- Function: const char * shishi_cfg_default_userfile (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* Reports the absolute filename of the default user configuration file. This is typically "'HOME'/.shishi/shishi.conf". The value of 'SHISHI_HOME' will change the directory part, as stated regarding 'shishi_cfg_default_userdirectory()'. *Return value:* Returns the user's configuration filename. shishi_cfg_clientkdcetype ------------------------- -- Function: int shishi_cfg_clientkdcetype (Shishi * HANDLE, int32_t ** ETYPES) HANDLE: Shishi library handle created by 'shishi_init()'. ETYPES: Pointer to an array of encryption types. *Description:* Sets the variable ETYPES to a static array of preferred encryption types applicable to clients. *Return value:* Returns the number of encryption types referred to by the updated array pointer, or zero, should no type exist. shishi_cfg_clientkdcetype_fast ------------------------------ -- Function: int32_t shishi_cfg_clientkdcetype_fast (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* Extracts the default encryption type from the list of preferred encryption types acceptable to the client. When the preferred list is empty, 'SHISHI_AES256_CTS_HMAC_SHA1_96' is returned as a sensible default type. *Return value:* Returns the default encryption type. shishi_cfg_clientkdcetype_set ----------------------------- -- Function: int shishi_cfg_clientkdcetype_set (Shishi * HANDLE, char * VALUE) HANDLE: Shishi library handle created by 'shishi_init()'. VALUE: String naming acceptable encryption types. *Description:* Sets the configuration option "client-kdc-etypes" from VALUE. The string contains encryption types, integers or names, separated by comma or by whitespace. An example naming three encryption types could be: aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 *Return value:* Returns 'SHISHI_OK' if successful, and 'SHISHI_INVALID_ARGUMENT' otherwise. shishi_cfg_authorizationtype_set -------------------------------- -- Function: int shishi_cfg_authorizationtype_set (Shishi * HANDLE, char * VALUE) HANDLE: Shishi library handle created by 'shishi_init()'. VALUE: String listing acceptable authorization types. *Description:* Sets the configuration option "authorization-types" from VALUE. The string contains authorization types, integers or names, separated by comma or whitespace. As an example, "k5login basic" would first check Kerberos5 authentication based on preset principals, and then fall back to the basic test of identical principal names. *Return value:* Returns 'SHISHI_OK' if successful, and 'SHISHI_INVALID_ARGUMENT' otherwise.  File: shishi.info, Node: Ticket Set Functions, Next: AP-REQ and AP-REP Functions, Prev: Initialization Functions, Up: Programming Manual 5.3 Ticket Set Functions ======================== A "ticket set" is, as the name implies, a collection of tickets. Functions are provided to read tickets from file into a ticket set, to query number of tickets in the set, to extract a given ticket from the set, to search the ticket set for tickets matching certain criterium, to write the ticket set to a file, etc. High level functions for performing a initial authentication (*note AS Functions::) or subsequent authentication (*note TGS Functions::) and storing the new ticket in the ticket set are also provided. *Note Ticket Functions::, to manipulate each individual ticket. *Note Ticket (ASN.1) Functions::, for low-level ASN.1 manipulation. shishi_tkts_default_file_guess ------------------------------ -- Function: char * shishi_tkts_default_file_guess (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Guesses the default ticket filename; it is 'SHISHI_TICKETS', 'SHISHI_HOME'/tickets, or 'HOME'/.shishi/tickets. *Return value:* Returns default tkts filename as a string that has to be deallocated with 'free()' by the caller. shishi_tkts_default_file ------------------------ -- Function: const char * shishi_tkts_default_file (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get filename of default ticket set. *Return value:* Returns the default ticket set filename used in the library. The string is not a copy, so don't modify or deallocate it. shishi_tkts_default_file_set ---------------------------- -- Function: void shishi_tkts_default_file_set (Shishi * HANDLE, const char * TKTSFILE) HANDLE: Shishi library handle create by 'shishi_init()'. TKTSFILE: string with new default tkts file name, or NULL to reset to default. *Description:* Set the default ticket set filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_tkts_default ------------------- -- Function: Shishi_tkts * shishi_tkts_default (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get the default ticket set for library handle. *Return value:* Return the handle global ticket set. shishi_tkts ----------- -- Function: int shishi_tkts (Shishi * HANDLE, Shishi_tkts ** TKTS) HANDLE: shishi handle as allocated by 'shishi_init()'. TKTS: output pointer to newly allocated tkts handle. *Description:* Get a new ticket set handle. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_done ---------------- -- Function: void shishi_tkts_done (Shishi_tkts ** TKTS) TKTS: ticket set handle as allocated by 'shishi_tkts()'. *Description:* Deallocates all resources associated with ticket set. The ticket set handle must not be used in calls to other shishi_tkts_*() functions after this. shishi_tkts_size ---------------- -- Function: int shishi_tkts_size (Shishi_tkts * TKTS) TKTS: ticket set handle as allocated by 'shishi_tkts()'. *Description:* Get size of ticket set. *Return value:* Returns number of tickets stored in ticket set. shishi_tkts_nth --------------- -- Function: Shishi_tkt * shishi_tkts_nth (Shishi_tkts * TKTS, int TICKETNO) TKTS: ticket set handle as allocated by 'shishi_tkts()'. TICKETNO: integer indicating requested ticket in ticket set. *Get the n:* th ticket in ticket set. *Return value:* Returns a ticket handle to the ticketno:th ticket in the ticket set, or NULL if ticket set is invalid or ticketno is out of bounds. The first ticket is ticketno 0, the second ticketno 1, and so on. shishi_tkts_remove ------------------ -- Function: int shishi_tkts_remove (Shishi_tkts * TKTS, int TICKETNO) TKTS: ticket set handle as allocated by 'shishi_tkts()'. TICKETNO: ticket number of ticket in the set to remove. The first ticket is ticket number 0. *Description:* Remove a ticket, indexed by TICKETNO, in ticket set. *Return value:* 'SHISHI_OK' if successful or if TICKETNO larger than size of ticket set. shishi_tkts_add --------------- -- Function: int shishi_tkts_add (Shishi_tkts * TKTS, Shishi_tkt * TKT) TKTS: ticket set handle as allocated by 'shishi_tkts()'. TKT: ticket to be added to ticket set. *Description:* Add a ticket to the ticket set. Only the pointer is stored, so if you modify TKT, the ticket in the ticket set will also be modified. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_new --------------- -- Function: int shishi_tkts_new (Shishi_tkts * TKTS, Shishi_asn1 TICKET, Shishi_asn1 ENCKDCREPPART, Shishi_asn1 KDCREP) TKTS: ticket set handle as allocated by 'shishi_tkts()'. TICKET: input ticket variable. ENCKDCREPPART: input ticket detail variable. KDCREP: input KDC-REP variable. *Description:* Allocate a new ticket and add it to the ticket set. Note that TICKET, ENCKDCREPPART and KDCREP are stored by reference, so you must not de-allocate them before the ticket is removed from the ticket set and de-allocated. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_read ---------------- -- Function: int shishi_tkts_read (Shishi_tkts * TKTS, FILE * FH) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FH: file descriptor to read from. *Description:* Read tickets from file descriptor and add them to the ticket set. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_from_file --------------------- -- Function: int shishi_tkts_from_file (Shishi_tkts * TKTS, const char * FILENAME) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FILENAME: filename to read tickets from. *Description:* Read tickets from file and add them to the ticket set. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_write ----------------- -- Function: int shishi_tkts_write (Shishi_tkts * TKTS, FILE * FH) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FH: file descriptor to write tickets to. *Description:* Write tickets in set to file descriptor. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_expire ------------------ -- Function: int shishi_tkts_expire (Shishi_tkts * TKTS) TKTS: ticket set handle as allocated by 'shishi_tkts()'. *Description:* Remove expired tickets from ticket set. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_to_file ------------------- -- Function: int shishi_tkts_to_file (Shishi_tkts * TKTS, const char * FILENAME) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FILENAME: filename to write tickets to. *Description:* Write tickets in set to file. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_print_for_service ----------------------------- -- Function: int shishi_tkts_print_for_service (Shishi_tkts * TKTS, FILE * FH, const char * SERVICE) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FH: file descriptor to print to. SERVICE: service to limit tickets printed to, or NULL. *Description:* Print description of tickets for specified service to file descriptor. If service is NULL, all tickets are printed. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkts_print ----------------- -- Function: int shishi_tkts_print (Shishi_tkts * TKTS, FILE * FH) TKTS: ticket set handle as allocated by 'shishi_tkts()'. FH: file descriptor to print to. *Description:* Print description of all tickets to file descriptor. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_tkt_match_p ------------------ -- Function: int shishi_tkt_match_p (Shishi_tkt * TKT, Shishi_tkts_hint * HINT) TKT: ticket to test hints on. HINT: structure with characteristics of ticket to be found. *Description:* Test if a ticket matches specified hints. *Return value:* Returns 0 iff ticket fails to match given criteria. shishi_tkts_find ---------------- -- Function: Shishi_tkt * shishi_tkts_find (Shishi_tkts * TKTS, Shishi_tkts_hint * HINT) TKTS: ticket set handle as allocated by 'shishi_tkts()'. HINT: structure with characteristics of ticket to be found. *Description:* Search the ticketset sequentially (from ticket number 0 through all tickets in the set) for a ticket that fits the given characteristics. If a ticket is found, the hint->startpos field is updated to point to the next ticket in the set, so this function can be called repeatedly with the same hint argument in order to find all tickets matching a certain criterium. Note that if tickets are added to, or removed from, the ticketset during a query with the same hint argument, the hint->startpos field must be updated appropriately. *Here is how you would typically use this function:* Shishi_tkts_hint hint; Shishi_tkt tkt; memset(&hint, 0, sizeof(hint)); hint.server = "imap/mail.example.org"; tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint); if (!tkt) printf("No ticket found...\n"); else do_something_with_ticket (tkt); *Return value:* Returns a ticket if found, or NULL if no further matching tickets could be found. shishi_tkts_find_for_clientserver --------------------------------- -- Function: Shishi_tkt * shishi_tkts_find_for_clientserver (Shishi_tkts * TKTS, const char * CLIENT, const char * SERVER) TKTS: ticket set handle as allocated by 'shishi_tkts()'. CLIENT: client name to find ticket for. SERVER: server name to find ticket for. *Description:* Short-hand function for searching the ticket set for a ticket for the given client and server. See 'shishi_tkts_find()'. *Return value:* Returns a ticket if found, or NULL. shishi_tkts_find_for_server --------------------------- -- Function: Shishi_tkt * shishi_tkts_find_for_server (Shishi_tkts * TKTS, const char * SERVER) TKTS: ticket set handle as allocated by 'shishi_tkts()'. SERVER: server name to find ticket for. *Description:* Short-hand function for searching the ticket set for a ticket for the given server using the default client principal. See 'shishi_tkts_find_for_clientserver()' and 'shishi_tkts_find()'. *Return value:* Returns a ticket if found, or NULL. shishi_tkts_get_tgt ------------------- -- Function: Shishi_tkt * shishi_tkts_get_tgt (Shishi_tkts * TKTS, Shishi_tkts_hint * HINT) TKTS: ticket set handle as allocated by 'shishi_tkts()'. HINT: structure with characteristics of ticket to begot. *Description:* Get a ticket granting ticket (TGT) suitable for acquiring ticket matching the hint. I.e., get a TGT for the server realm in the hint structure (hint->serverrealm), or the default realm if the serverrealm field is NULL. Can result in AS exchange. Currently this function do not implement cross realm logic. This function is used by 'shishi_tkts_get()', which is probably what you really want to use unless you have special needs. *Return value:* Returns a ticket granting ticket if successful, or NULL if this function is unable to acquire on. shishi_tkts_get_tgs ------------------- -- Function: Shishi_tkt * shishi_tkts_get_tgs (Shishi_tkts * TKTS, Shishi_tkts_hint * HINT, Shishi_tkt * TGT) TKTS: ticket set handle as allocated by 'shishi_tkts()'. HINT: structure with characteristics of ticket to begot. TGT: ticket granting ticket to use. *Description:* Get a ticket via TGS exchange using specified ticket granting ticket. This function is used by 'shishi_tkts_get()', which is probably what you really want to use unless you have special needs. *Return value:* Returns a ticket if successful, or NULL if this function is unable to acquire on. shishi_tkts_get --------------- -- Function: Shishi_tkt * shishi_tkts_get (Shishi_tkts * TKTS, Shishi_tkts_hint * HINT) TKTS: ticket set handle as allocated by 'shishi_tkts()'. HINT: structure with characteristics of ticket to be found. *Description:* Get a ticket matching given characteristics. This function first looks in the ticket set for a ticket, then tries to find a suitable TGT, possibly via an AS exchange, using 'shishi_tkts_get_tgt()', and then uses that TGT in a TGS exchange to get the ticket. Currently this function does not implement cross realm logic. *Return value:* Returns a ticket if found, or NULL if this function is unable to get the ticket. shishi_tkts_get_for_clientserver -------------------------------- -- Function: Shishi_tkt * shishi_tkts_get_for_clientserver (Shishi_tkts * TKTS, const char * CLIENT, const char * SERVER) TKTS: ticket set handle as allocated by 'shishi_tkts()'. CLIENT: client name to get ticket for. SERVER: server name to get ticket for. *Description:* Short-hand function for getting a ticket for the given client and server. See 'shishi_tkts_get()'. *Return value:* Returns a ticket if found, or NULL. shishi_tkts_get_for_server -------------------------- -- Function: Shishi_tkt * shishi_tkts_get_for_server (Shishi_tkts * TKTS, const char * SERVER) TKTS: ticket set handle as allocated by 'shishi_tkts()'. SERVER: server name to get ticket for. *Description:* Short-hand function for getting a ticket to the given server and for the default principal client. See 'shishi_tkts_get()'. *Return value:* Returns a ticket if found, or NULL. shishi_tkts_get_for_localservicepasswd -------------------------------------- -- Function: Shishi_tkt * shishi_tkts_get_for_localservicepasswd (Shishi_tkts * TKTS, const char * SERVICE, const char * PASSWD) TKTS: ticket set handle as allocated by 'shishi_tkts()'. SERVICE: service name to get ticket for. PASSWD: password for the default client principal. *Description:* Short-hand function for getting a ticket to the given local service, and for the default principal client. The latter's password is given as argument. See 'shishi_tkts_get()'. *Return value:* Returns a ticket if found, or NULL otherwise.  File: shishi.info, Node: AP-REQ and AP-REP Functions, Next: SAFE and PRIV Functions, Prev: Ticket Set Functions, Up: Programming Manual 5.4 AP-REQ and AP-REP Functions =============================== The "AP-REQ" and "AP-REP" are ASN.1 structures used by application client and servers to prove to each other who they are. The structures contain auxilliary information, together with an authenticator (*note Authenticator Functions::) which is the real cryptographic proof. The following illustrates the AP-REQ and AP-REP ASN.1 structures. AP-REQ ::= [APPLICATION 14] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (14), ap-options [2] APOptions, ticket [3] Ticket, authenticator [4] EncryptedData {Authenticator, { keyuse-pa-TGSReq-authenticator | keyuse-APReq-authenticator }} } AP-REP ::= [APPLICATION 15] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (15), enc-part [2] EncryptedData {EncAPRepPart, { keyuse-EncAPRepPart }} } EncAPRepPart ::= [APPLICATION 27] SEQUENCE { ctime [0] KerberosTime, cusec [1] Microseconds, subkey [2] EncryptionKey OPTIONAL, seq-number [3] UInt32 OPTIONAL } shishi_ap --------- -- Function: int shishi_ap (Shishi * HANDLE, Shishi_ap ** AP) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange *Description:* Create a new AP exchange with a random subkey of the default encryption type from configuration. Note that there is no guarantee that the receiver will understand that key type, you should probably use 'shishi_ap_etype()' or 'shishi_ap_nosubkey()' instead. In the future, this function will likely behave as 'shishi_ap_nosubkey()' and 'shishi_ap_nosubkey()' will be removed. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_etype --------------- -- Function: int shishi_ap_etype (Shishi * HANDLE, Shishi_ap ** AP, int ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange ETYPE: encryption type of newly generated random subkey. *Description:* Create a new AP exchange with a random subkey of indicated encryption type. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_nosubkey ------------------ -- Function: int shishi_ap_nosubkey (Shishi * HANDLE, Shishi_ap ** AP) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange *Description:* Create a new AP exchange without subkey in authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_done -------------- -- Function: void shishi_ap_done (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Deallocate resources associated with AP exchange. This should be called by the application when it no longer need to utilize the AP exchange handle. shishi_ap_set_tktoptions ------------------------ -- Function: int shishi_ap_set_tktoptions (Shishi_ap * AP, Shishi_tkt * TKT, int OPTIONS) AP: structure that holds information about AP exchange TKT: ticket to set in AP. OPTIONS: AP-REQ options to set in AP. *Description:* Set the ticket (see 'shishi_ap_tkt_set()') and set the AP-REQ apoptions (see 'shishi_apreq_options_set()'). *Return value:* Returns SHISHI_OK iff successful. shishi_ap_set_tktoptionsdata ---------------------------- -- Function: int shishi_ap_set_tktoptionsdata (Shishi_ap * AP, Shishi_tkt * TKT, int OPTIONS, const char * DATA, size_t LEN) AP: structure that holds information about AP exchange TKT: ticket to set in AP. OPTIONS: AP-REQ options to set in AP. DATA: input array with data to checksum in Authenticator. LEN: length of input array with data to checksum in Authenticator. *Description:* Set the ticket (see 'shishi_ap_tkt_set()') and set the AP-REQ apoptions (see 'shishi_apreq_options_set()') and set the Authenticator checksum data. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_set_tktoptionsraw --------------------------- -- Function: int shishi_ap_set_tktoptionsraw (Shishi_ap * AP, Shishi_tkt * TKT, int OPTIONS, int32_t CKSUMTYPE, const char * DATA, size_t LEN) AP: structure that holds information about AP exchange TKT: ticket to set in AP. OPTIONS: AP-REQ options to set in AP. CKSUMTYPE: authenticator checksum type to set in AP. DATA: input array with data to store in checksum field in Authenticator. LEN: length of input array with data to store in checksum field in Authenticator. *Description:* Set the ticket (see 'shishi_ap_tkt_set()') and set the AP-REQ apoptions (see 'shishi_apreq_options_set()') and set the raw Authenticator checksum data. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_set_tktoptionsasn1usage --------------------------------- -- Function: int shishi_ap_set_tktoptionsasn1usage (Shishi_ap * AP, Shishi_tkt * TKT, int OPTIONS, Shishi_asn1 NODE, const char * FIELD, int AUTHENTICATORCKSUMKEYUSAGE, int AUTHENTICATORKEYUSAGE) AP: structure that holds information about AP exchange TKT: ticket to set in AP. OPTIONS: AP-REQ options to set in AP. NODE: input ASN.1 structure to store as authenticator checksum data. FIELD: field in ASN.1 structure to use. AUTHENTICATORCKSUMKEYUSAGE: key usage for checksum in authenticator. AUTHENTICATORKEYUSAGE: key usage for authenticator. *Description:* Set ticket, options and authenticator checksum data using 'shishi_ap_set_tktoptionsdata()'. The authenticator checksum data is the DER encoding of the ASN.1 field provided. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_tktoptions -------------------- -- Function: int shishi_ap_tktoptions (Shishi * HANDLE, Shishi_ap ** AP, Shishi_tkt * TKT, int OPTIONS) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange TKT: ticket to set in newly created AP. OPTIONS: AP-REQ options to set in newly created AP. *Description:* Create a new AP exchange using 'shishi_ap()', and set the ticket and AP-REQ apoptions using 'shishi_ap_set_tktoptions()'. A random session key is added to the authenticator, using the same keytype as the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_tktoptionsdata ------------------------ -- Function: int shishi_ap_tktoptionsdata (Shishi * HANDLE, Shishi_ap ** AP, Shishi_tkt * TKT, int OPTIONS, const char * DATA, size_t LEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange TKT: ticket to set in newly created AP. OPTIONS: AP-REQ options to set in newly created AP. DATA: input array with data to checksum in Authenticator. LEN: length of input array with data to checksum in Authenticator. *Description:* Create a new AP exchange using 'shishi_ap()', and set the ticket, AP-REQ apoptions and the Authenticator checksum data using 'shishi_ap_set_tktoptionsdata()'. A random session key is added to the authenticator, using the same keytype as the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_tktoptionsraw ----------------------- -- Function: int shishi_ap_tktoptionsraw (Shishi * HANDLE, Shishi_ap ** AP, Shishi_tkt * TKT, int OPTIONS, int32_t CKSUMTYPE, const char * DATA, size_t LEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange TKT: ticket to set in newly created AP. OPTIONS: AP-REQ options to set in newly created AP. CKSUMTYPE: authenticator checksum type to set in AP. DATA: input array with data to store in checksum field in Authenticator. LEN: length of input array with data to store in checksum field in Authenticator. *Description:* Create a new AP exchange using 'shishi_ap()', and set the ticket, AP-REQ apoptions and the raw Authenticator checksum data field using 'shishi_ap_set_tktoptionsraw()'. A random session key is added to the authenticator, using the same keytype as the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_etype_tktoptionsdata ------------------------------ -- Function: int shishi_ap_etype_tktoptionsdata (Shishi * HANDLE, Shishi_ap ** AP, int32_t ETYPE, Shishi_tkt * TKT, int OPTIONS, const char * DATA, size_t LEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange ETYPE: encryption type of newly generated random subkey. TKT: ticket to set in newly created AP. OPTIONS: AP-REQ options to set in newly created AP. DATA: input array with data to checksum in Authenticator. LEN: length of input array with data to checksum in Authenticator. *Description:* Create a new AP exchange using 'shishi_ap()', and set the ticket, AP-REQ apoptions and the Authenticator checksum data using 'shishi_ap_set_tktoptionsdata()'. A random session key is added to the authenticator, using the same keytype as the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_tktoptionsasn1usage ----------------------------- -- Function: int shishi_ap_tktoptionsasn1usage (Shishi * HANDLE, Shishi_ap ** AP, Shishi_tkt * TKT, int OPTIONS, Shishi_asn1 NODE, const char * FIELD, int AUTHENTICATORCKSUMKEYUSAGE, int AUTHENTICATORKEYUSAGE) HANDLE: shishi handle as allocated by 'shishi_init()'. AP: pointer to new structure that holds information about AP exchange TKT: ticket to set in newly created AP. OPTIONS: AP-REQ options to set in newly created AP. NODE: input ASN.1 structure to store as authenticator checksum data. FIELD: field in ASN.1 structure to use. AUTHENTICATORCKSUMKEYUSAGE: key usage for checksum in authenticator. AUTHENTICATORKEYUSAGE: key usage for authenticator. *Description:* Create a new AP exchange using 'shishi_ap()', and set ticket, options and authenticator checksum data from the DER encoding of the ASN.1 field using 'shishi_ap_set_tktoptionsasn1usage()'. A random session key is added to the authenticator, using the same keytype as the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_tkt ------------- -- Function: Shishi_tkt * shishi_ap_tkt (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get Ticket from AP exchange. *Return value:* Returns the ticket from the AP exchange, or NULL if not yet set or an error occured. shishi_ap_tkt_set ----------------- -- Function: void shishi_ap_tkt_set (Shishi_ap * AP, Shishi_tkt * TKT) AP: structure that holds information about AP exchange TKT: ticket to store in AP. *Description:* Set the Ticket in the AP exchange. shishi_ap_authenticator_cksumdata --------------------------------- -- Function: int shishi_ap_authenticator_cksumdata (Shishi_ap * AP, char * OUT, size_t * LEN) AP: structure that holds information about AP exchange OUT: output array that holds authenticator checksum data. LEN: on input, maximum length of output array that holds authenticator checksum data, on output actual length of output array that holds authenticator checksum data. *Description:* Get checksum data from Authenticator. *Return value:* Returns 'SHISHI_OK' if successful, or 'SHISHI_TOO_SMALL_BUFFER' if buffer provided was too small (then LEN will hold necessary buffer size). shishi_ap_authenticator_cksumdata_set ------------------------------------- -- Function: void shishi_ap_authenticator_cksumdata_set (Shishi_ap * AP, const char * AUTHENTICATORCKSUMDATA, size_t AUTHENTICATORCKSUMDATALEN) AP: structure that holds information about AP exchange AUTHENTICATORCKSUMDATA: input array with data to compute checksum on and store in Authenticator in AP-REQ. AUTHENTICATORCKSUMDATALEN: length of input array with data to compute checksum on and store in Authenticator in AP-REQ. *Description:* Set the Authenticator Checksum Data in the AP exchange. This is the data that will be checksumed, and the checksum placed in the checksum field. It is not the actual checksum field. See also shishi_ap_authenticator_cksumraw_set. shishi_ap_authenticator_cksumraw_set ------------------------------------ -- Function: void shishi_ap_authenticator_cksumraw_set (Shishi_ap * AP, int32_t AUTHENTICATORCKSUMTYPE, const char * AUTHENTICATORCKSUMRAW, size_t AUTHENTICATORCKSUMRAWLEN) AP: structure that holds information about AP exchange AUTHENTICATORCKSUMTYPE: authenticator checksum type to set in AP. AUTHENTICATORCKSUMRAW: input array with authenticator checksum field value to set in Authenticator in AP-REQ. AUTHENTICATORCKSUMRAWLEN: length of input array with authenticator checksum field value to set in Authenticator in AP-REQ. *Description:* Set the Authenticator Checksum Data in the AP exchange. This is the actual checksum field, not data to compute checksum on and then store in the checksum field. See also shishi_ap_authenticator_cksumdata_set. shishi_ap_authenticator_cksumtype --------------------------------- -- Function: int32_t shishi_ap_authenticator_cksumtype (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get the Authenticator Checksum Type in the AP exchange. *Return value:* Return the authenticator checksum type. shishi_ap_authenticator_cksumtype_set ------------------------------------- -- Function: void shishi_ap_authenticator_cksumtype_set (Shishi_ap * AP, int32_t CKSUMTYPE) AP: structure that holds information about AP exchange CKSUMTYPE: authenticator checksum type to set in AP. *Description:* Set the Authenticator Checksum Type in the AP exchange. shishi_ap_authenticator ----------------------- -- Function: Shishi_asn1 shishi_ap_authenticator (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get ASN.1 Authenticator structure from AP exchange. *Return value:* Returns the Authenticator from the AP exchange, or NULL if not yet set or an error occured. shishi_ap_authenticator_set --------------------------- -- Function: void shishi_ap_authenticator_set (Shishi_ap * AP, Shishi_asn1 AUTHENTICATOR) AP: structure that holds information about AP exchange AUTHENTICATOR: authenticator to store in AP. *Description:* Set the Authenticator in the AP exchange. shishi_ap_req ------------- -- Function: Shishi_asn1 shishi_ap_req (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get ASN.1 AP-REQ structure from AP exchange. *Return value:* Returns the AP-REQ from the AP exchange, or NULL if not yet set or an error occured. shishi_ap_req_set ----------------- -- Function: void shishi_ap_req_set (Shishi_ap * AP, Shishi_asn1 APREQ) AP: structure that holds information about AP exchange APREQ: apreq to store in AP. *Description:* Set the AP-REQ in the AP exchange. shishi_ap_req_der ----------------- -- Function: int shishi_ap_req_der (Shishi_ap * AP, char ** OUT, size_t * OUTLEN) AP: structure that holds information about AP exchange OUT: pointer to output array with der encoding of AP-REQ. OUTLEN: pointer to length of output array with der encoding of AP-REQ. *Description:* Build AP-REQ using 'shishi_ap_req_build()' and DER encode it. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_req_der_set --------------------- -- Function: int shishi_ap_req_der_set (Shishi_ap * AP, char * DER, size_t DERLEN) AP: structure that holds information about AP exchange DER: input array with DER encoded AP-REQ. DERLEN: length of input array with DER encoded AP-REQ. *Description:* DER decode AP-REQ and set it AP exchange. If decoding fails, the AP-REQ in the AP exchange is lost. *Return value:* Returns SHISHI_OK. shishi_ap_req_build ------------------- -- Function: int shishi_ap_req_build (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Checksum data in authenticator and add ticket and authenticator to AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_req_decode -------------------- -- Function: int shishi_ap_req_decode (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Decode ticket in AP-REQ and set the Ticket fields in the AP exchange. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_req_process_keyusage ------------------------------ -- Function: int shishi_ap_req_process_keyusage (Shishi_ap * AP, Shishi_key * KEY, int32_t KEYUSAGE) AP: structure that holds information about AP exchange KEY: cryptographic key used to decrypt ticket in AP-REQ. KEYUSAGE: key usage to use during decryption, for normal AP-REQ's this is normally SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR, for AP-REQ's part of TGS-REQ's, this is normally SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR. *Description:* Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_req_process --------------------- -- Function: int shishi_ap_req_process (Shishi_ap * AP, Shishi_key * KEY) AP: structure that holds information about AP exchange KEY: cryptographic key used to decrypt ticket in AP-REQ. *Description:* Decrypt ticket in AP-REQ using supplied key and decrypt Authenticator in AP-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_req_asn1 ------------------ -- Function: int shishi_ap_req_asn1 (Shishi_ap * AP, Shishi_asn1 * APREQ) AP: structure that holds information about AP exchange APREQ: output AP-REQ variable. *Description:* Build AP-REQ using 'shishi_ap_req_build()' and return it. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_key ------------- -- Function: Shishi_key * shishi_ap_key (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Extract the application key from AP. If subkeys are used, it is taken from the Authenticator, otherwise the session key is used. *Return value:* Return application key from AP. shishi_ap_rep ------------- -- Function: Shishi_asn1 shishi_ap_rep (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get ASN.1 AP-REP structure from AP exchange. *Return value:* Returns the AP-REP from the AP exchange, or NULL if not yet set or an error occured. shishi_ap_rep_set ----------------- -- Function: void shishi_ap_rep_set (Shishi_ap * AP, Shishi_asn1 APREP) AP: structure that holds information about AP exchange APREP: aprep to store in AP. *Description:* Set the AP-REP in the AP exchange. shishi_ap_rep_der ----------------- -- Function: int shishi_ap_rep_der (Shishi_ap * AP, char ** OUT, size_t * OUTLEN) AP: structure that holds information about AP exchange OUT: output array with newly allocated DER encoding of AP-REP. OUTLEN: length of output array with DER encoding of AP-REP. *Description:* Build AP-REP using 'shishi_ap_rep_build()' and DER encode it. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_rep_der_set --------------------- -- Function: int shishi_ap_rep_der_set (Shishi_ap * AP, char * DER, size_t DERLEN) AP: structure that holds information about AP exchange DER: input array with DER encoded AP-REP. DERLEN: length of input array with DER encoded AP-REP. *Description:* DER decode AP-REP and set it AP exchange. If decoding fails, the AP-REP in the AP exchange remains. *Return value:* Returns SHISHI_OK. shishi_ap_rep_build ------------------- -- Function: int shishi_ap_rep_build (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Checksum data in authenticator and add ticket and authenticator to AP-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_rep_asn1 ------------------ -- Function: int shishi_ap_rep_asn1 (Shishi_ap * AP, Shishi_asn1 * APREP) AP: structure that holds information about AP exchange APREP: output AP-REP variable. *Description:* Build AP-REP using 'shishi_ap_rep_build()' and return it. *Return value:* Returns SHISHI_OK iff successful. shishi_ap_rep_verify -------------------- -- Function: int shishi_ap_rep_verify (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Verify AP-REP compared to Authenticator. *Return value:* Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. shishi_ap_rep_verify_der ------------------------ -- Function: int shishi_ap_rep_verify_der (Shishi_ap * AP, char * DER, size_t DERLEN) AP: structure that holds information about AP exchange DER: input array with DER encoded AP-REP. DERLEN: length of input array with DER encoded AP-REP. *Description:* DER decode AP-REP and set it in AP exchange using 'shishi_ap_rep_der_set()' and verify it using 'shishi_ap_rep_verify()'. *Return value:* Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. shishi_ap_rep_verify_asn1 ------------------------- -- Function: int shishi_ap_rep_verify_asn1 (Shishi_ap * AP, Shishi_asn1 APREP) AP: structure that holds information about AP exchange APREP: input AP-REP. *Description:* Set the AP-REP in the AP exchange using 'shishi_ap_rep_set()' and verify it using 'shishi_ap_rep_verify()'. *Return value:* Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. shishi_ap_encapreppart ---------------------- -- Function: Shishi_asn1 shishi_ap_encapreppart (Shishi_ap * AP) AP: structure that holds information about AP exchange *Description:* Get ASN.1 EncAPRepPart structure from AP exchange. *Return value:* Returns the EncAPREPPart from the AP exchange, or NULL if not yet set or an error occured. shishi_ap_encapreppart_set -------------------------- -- Function: void shishi_ap_encapreppart_set (Shishi_ap * AP, Shishi_asn1 ENCAPREPPART) AP: structure that holds information about AP exchange ENCAPREPPART: EncAPRepPart to store in AP. *Description:* Set the EncAPRepPart in the AP exchange. shishi_ap_option2string ----------------------- -- Function: const char * shishi_ap_option2string (Shishi_apoptions OPTION) OPTION: enumerated AP-Option type, see Shishi_apoptions. *Description:* Convert AP-Option type to AP-Option name string. Note that OPTION must be just one of the AP-Option types, it cannot be an binary ORed indicating several AP-Options. *Return value:* Returns static string with name of AP-Option that must not be deallocated, or "unknown" if AP-Option was not understood. shishi_ap_string2option ----------------------- -- Function: Shishi_apoptions shishi_ap_string2option (const char * STR) STR: zero terminated character array with name of AP-Option, e.g. "use-session-key". *Description:* Convert AP-Option name to AP-Option type. *Return value:* Returns enumerated type member corresponding to AP-Option, or 0 if string was not understood. shishi_apreq ------------ -- Function: Shishi_asn1 shishi_apreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new AP-REQ, populated with some default values. *Return value:* Returns the AP-REQ or NULL on failure. shishi_apreq_print ------------------ -- Function: int shishi_apreq_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. APREQ: AP-REQ to print. *Description:* Print ASCII armored DER encoding of AP-REQ to file. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_save ----------------- -- Function: int shishi_apreq_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. APREQ: AP-REQ to save. *Description:* Save DER encoding of AP-REQ to file. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_to_file -------------------- -- Function: int shishi_apreq_to_file (Shishi * HANDLE, Shishi_asn1 APREQ, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write AP-REQ to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_parse ------------------ -- Function: int shishi_apreq_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. APREQ: output variable with newly allocated AP-REQ. *Description:* Read ASCII armored DER encoded AP-REQ from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_read ----------------- -- Function: int shishi_apreq_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. APREQ: output variable with newly allocated AP-REQ. *Description:* Read DER encoded AP-REQ from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_from_file ---------------------- -- Function: int shishi_apreq_from_file (Shishi * HANDLE, Shishi_asn1 * APREQ, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: output variable with newly allocated AP-REQ. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read AP-REQ from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_set_authenticator ------------------------------ -- Function: int shishi_apreq_set_authenticator (Shishi * HANDLE, Shishi_asn1 APREQ, int32_t ETYPE, uint32_t KVNO, const char * BUF, size_t BUFLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ to add authenticator field to. ETYPE: encryption type used to encrypt authenticator. KVNO: version of the key used to encrypt authenticator. BUF: input array with encrypted authenticator. BUFLEN: size of input array with encrypted authenticator. *Description:* Set the encrypted authenticator field in the AP-REP. The encrypted data is usually created by calling 'shishi_encrypt()' on the DER encoded authenticator. To save time, you may want to use 'shishi_apreq_add_authenticator()' instead, which calculates the encrypted data and calls this function in one step. *Return value:* Returns SHISHI_OK on success. shishi_apreq_add_authenticator ------------------------------ -- Function: int shishi_apreq_add_authenticator (Shishi * HANDLE, Shishi_asn1 APREQ, Shishi_key * KEY, int KEYUSAGE, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ to add authenticator field to. KEY: key to to use for encryption. KEYUSAGE: cryptographic key usage value to use in encryption. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Encrypts DER encoded authenticator using key and store it in the AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_set_ticket ----------------------- -- Function: int shishi_apreq_set_ticket (Shishi * HANDLE, Shishi_asn1 APREQ, Shishi_asn1 TICKET) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ to add ticket field to. TICKET: input ticket to copy into AP-REQ ticket field. *Description:* Copy ticket into AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_options -------------------- -- Function: int shishi_apreq_options (Shishi * HANDLE, Shishi_asn1 APREQ, uint32_t * FLAGS) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ to get options from. FLAGS: Output integer containing options from AP-REQ. *Description:* Extract the AP-Options from AP-REQ into output integer. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_use_session_key_p ------------------------------ -- Function: int shishi_apreq_use_session_key_p (Shishi * HANDLE, Shishi_asn1 APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ as allocated by 'shishi_apreq()'. *Description:* Return non-0 iff the "Use session key" option is set in the AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_mutual_required_p ------------------------------ -- Function: int shishi_apreq_mutual_required_p (Shishi * HANDLE, Shishi_asn1 APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ as allocated by 'shishi_apreq()'. *Description:* Return non-0 iff the "Mutual required" option is set in the AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_options_set ------------------------ -- Function: int shishi_apreq_options_set (Shishi * HANDLE, Shishi_asn1 APREQ, uint32_t OPTIONS) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ as allocated by 'shishi_apreq()'. OPTIONS: Options to set in AP-REQ. *Description:* Set the AP-Options in AP-REQ to indicate integer. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_options_add ------------------------ -- Function: int shishi_apreq_options_add (Shishi * HANDLE, Shishi_asn1 APREQ, uint32_t OPTION) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ as allocated by 'shishi_apreq()'. OPTION: Options to add in AP-REQ. *Description:* Add the AP-Options in AP-REQ. Options not set in input parameter OPTION are preserved in the AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_options_remove --------------------------- -- Function: int shishi_apreq_options_remove (Shishi * HANDLE, Shishi_asn1 APREQ, uint32_t OPTION) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ as allocated by 'shishi_apreq()'. OPTION: Options to remove from AP-REQ. *Description:* Remove the AP-Options from AP-REQ. Options not set in input parameter OPTION are preserved in the AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_get_authenticator_etype ------------------------------------ -- Function: int shishi_apreq_get_authenticator_etype (Shishi * HANDLE, Shishi_asn1 APREQ, int32_t * ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ variable to get value from. ETYPE: output variable that holds the value. *Description:* Extract AP-REQ.authenticator.etype. *Return value:* Returns SHISHI_OK iff successful. shishi_apreq_get_ticket ----------------------- -- Function: int shishi_apreq_get_ticket (Shishi * HANDLE, Shishi_asn1 APREQ, Shishi_asn1 * TICKET) HANDLE: shishi handle as allocated by 'shishi_init()'. APREQ: AP-REQ variable to get ticket from. TICKET: output variable to hold extracted ticket. *Description:* Extract ticket from AP-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep ------------ -- Function: Shishi_asn1 shishi_aprep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new AP-REP, populated with some default values. *Return value:* Returns the authenticator or NULL on failure. shishi_aprep_print ------------------ -- Function: int shishi_aprep_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 APREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. APREP: AP-REP to print. *Description:* Print ASCII armored DER encoding of AP-REP to file. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_save ----------------- -- Function: int shishi_aprep_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 APREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. APREP: AP-REP to save. *Description:* Save DER encoding of AP-REP to file. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_to_file -------------------- -- Function: int shishi_aprep_to_file (Shishi * HANDLE, Shishi_asn1 APREP, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. APREP: AP-REP to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write AP-REP to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_parse ------------------ -- Function: int shishi_aprep_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * APREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. APREP: output variable with newly allocated AP-REP. *Description:* Read ASCII armored DER encoded AP-REP from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_read ----------------- -- Function: int shishi_aprep_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * APREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. APREP: output variable with newly allocated AP-REP. *Description:* Read DER encoded AP-REP from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_from_file ---------------------- -- Function: int shishi_aprep_from_file (Shishi * HANDLE, Shishi_asn1 * APREP, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. APREP: output variable with newly allocated AP-REP. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read AP-REP from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_aprep_get_enc_part_etype ------------------------------- -- Function: int shishi_aprep_get_enc_part_etype (Shishi * HANDLE, Shishi_asn1 APREP, int32_t * ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. APREP: AP-REP variable to get value from. ETYPE: output variable that holds the value. *Description:* Extract AP-REP.enc-part.etype. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart ------------------- -- Function: Shishi_asn1 shishi_encapreppart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new EncAPRepPart, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. *Return value:* Returns the encapreppart or NULL on failure. shishi_encapreppart_print ------------------------- -- Function: int shishi_encapreppart_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 ENCAPREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. ENCAPREPPART: EncAPRepPart to print. *Description:* Print ASCII armored DER encoding of EncAPRepPart to file. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_save ------------------------ -- Function: int shishi_encapreppart_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 ENCAPREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. ENCAPREPPART: EncAPRepPart to save. *Description:* Save DER encoding of EncAPRepPart to file. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_to_file --------------------------- -- Function: int shishi_encapreppart_to_file (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write EncAPRepPart to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_parse ------------------------- -- Function: int shishi_encapreppart_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * ENCAPREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. ENCAPREPPART: output variable with newly allocated EncAPRepPart. *Description:* Read ASCII armored DER encoded EncAPRepPart from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_read ------------------------ -- Function: int shishi_encapreppart_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * ENCAPREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. ENCAPREPPART: output variable with newly allocated EncAPRepPart. *Description:* Read DER encoded EncAPRepPart from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_from_file ----------------------------- -- Function: int shishi_encapreppart_from_file (Shishi * HANDLE, Shishi_asn1 * ENCAPREPPART, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: output variable with newly allocated EncAPRepPart. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read EncAPRepPart from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_get_key --------------------------- -- Function: int shishi_encapreppart_get_key (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, Shishi_key ** KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: input EncAPRepPart variable. KEY: newly allocated key. *Description:* Extract the subkey from the encrypted AP-REP part. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encapreppart_ctime ------------------------- -- Function: int shishi_encapreppart_ctime (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, char ** T) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. T: newly allocated zero-terminated character array with client time. *Description:* Extract client time from EncAPRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_ctime_set ----------------------------- -- Function: int shishi_encapreppart_ctime_set (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, const char * T) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. T: string with generalized time value to store in EncAPRepPart. *Description:* Store client time in EncAPRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_cusec_get ----------------------------- -- Function: int shishi_encapreppart_cusec_get (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, uint32_t * CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. CUSEC: output integer with client microseconds field. *Description:* Extract client microseconds field from EncAPRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_cusec_set ----------------------------- -- Function: int shishi_encapreppart_cusec_set (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, uint32_t CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. CUSEC: client microseconds to set in authenticator, 0-999999. *Description:* Set the cusec field in the Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_seqnumber_get --------------------------------- -- Function: int shishi_encapreppart_seqnumber_get (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, uint32_t * SEQNUMBER) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. SEQNUMBER: output integer with sequence number field. *Description:* Extract sequence number field from EncAPRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_encapreppart_seqnumber_remove ------------------------------------ -- Function: int shishi_encapreppart_seqnumber_remove (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: encapreppart as allocated by 'shishi_encapreppart()'. *Description:* Remove sequence number field in EncAPRepPart. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encapreppart_seqnumber_set --------------------------------- -- Function: int shishi_encapreppart_seqnumber_set (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, uint32_t SEQNUMBER) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: encapreppart as allocated by 'shishi_encapreppart()'. SEQNUMBER: integer with sequence number field to store in encapreppart. *Description:* Store sequence number field in EncAPRepPart. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encapreppart_time_copy ----------------------------- -- Function: int shishi_encapreppart_time_copy (Shishi * HANDLE, Shishi_asn1 ENCAPREPPART, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCAPREPPART: EncAPRepPart as allocated by 'shishi_encapreppart()'. AUTHENTICATOR: Authenticator to copy time fields from. *Description:* Copy time fields from Authenticator into EncAPRepPart. *Return value:* Returns SHISHI_OK iff successful.  File: shishi.info, Node: SAFE and PRIV Functions, Next: Ticket Functions, Prev: AP-REQ and AP-REP Functions, Up: Programming Manual 5.5 SAFE and PRIV Functions =========================== The "KRB-SAFE" is an ASN.1 structure used by application client and servers to exchange integrity protected data. The integrity protection is keyed, usually with a key agreed on via the AP exchange (*note AP-REQ and AP-REP Functions::). The following illustrates the KRB-SAFE ASN.1 structure. KRB-SAFE ::= [APPLICATION 20] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (20), safe-body [2] KRB-SAFE-BODY, cksum [3] Checksum } KRB-SAFE-BODY ::= SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress, r-address [5] HostAddress OPTIONAL } shishi_safe ----------- -- Function: int shishi_safe (Shishi * HANDLE, Shishi_safe ** SAFE) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: pointer to new structure that holds information about SAFE exchange *Description:* Create a new SAFE exchange. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_done ---------------- -- Function: void shishi_safe_done (Shishi_safe * SAFE) SAFE: structure that holds information about SAFE exchange *Description:* Deallocate resources associated with SAFE exchange. This should be called by the application when it no longer need to utilize the SAFE exchange handle. shishi_safe_key --------------- -- Function: Shishi_key * shishi_safe_key (Shishi_safe * SAFE) SAFE: structure that holds information about SAFE exchange *Description:* Get key structured from SAFE exchange. *Return value:* Returns the key used in the SAFE exchange, or NULL if not yet set or an error occured. shishi_safe_key_set ------------------- -- Function: void shishi_safe_key_set (Shishi_safe * SAFE, Shishi_key * KEY) SAFE: structure that holds information about SAFE exchange KEY: key to store in SAFE. *Description:* Set the Key in the SAFE exchange. shishi_safe_safe ---------------- -- Function: Shishi_asn1 shishi_safe_safe (Shishi_safe * SAFE) SAFE: structure that holds information about SAFE exchange *Description:* Get ASN.1 SAFE structured from SAFE exchange. *Return value:* Returns the ASN.1 safe in the SAFE exchange, or NULL if not yet set or an error occured. shishi_safe_safe_set -------------------- -- Function: void shishi_safe_safe_set (Shishi_safe * SAFE, Shishi_asn1 ASN1SAFE) SAFE: structure that holds information about SAFE exchange ASN1SAFE: KRB-SAFE to store in SAFE exchange. *Description:* Set the KRB-SAFE in the SAFE exchange. shishi_safe_safe_der -------------------- -- Function: int shishi_safe_safe_der (Shishi_safe * SAFE, char ** OUT, size_t * OUTLEN) SAFE: safe as allocated by 'shishi_safe()'. OUT: output array with newly allocated DER encoding of SAFE. OUTLEN: length of output array with DER encoding of SAFE. *Description:* DER encode SAFE structure. Typically 'shishi_safe_build()' is used to build the SAFE structure first. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_safe_der_set ------------------------ -- Function: int shishi_safe_safe_der_set (Shishi_safe * SAFE, char * DER, size_t DERLEN) SAFE: safe as allocated by 'shishi_safe()'. DER: input array with DER encoded KRB-SAFE. DERLEN: length of input array with DER encoded KRB-SAFE. *Description:* DER decode KRB-SAFE and set it SAFE exchange. If decoding fails, the KRB-SAFE in the SAFE exchange remains. *Return value:* Returns SHISHI_OK. shishi_safe_print ----------------- -- Function: int shishi_safe_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 SAFE) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. SAFE: SAFE to print. *Description:* Print ASCII armored DER encoding of SAFE to file. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_save ---------------- -- Function: int shishi_safe_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 SAFE) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. SAFE: SAFE to save. *Description:* Save DER encoding of SAFE to file. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_to_file ------------------- -- Function: int shishi_safe_to_file (Shishi * HANDLE, Shishi_asn1 SAFE, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: SAFE to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write SAFE to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_parse ----------------- -- Function: int shishi_safe_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * SAFE) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. SAFE: output variable with newly allocated SAFE. *Description:* Read ASCII armored DER encoded SAFE from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_read ---------------- -- Function: int shishi_safe_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * SAFE) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. SAFE: output variable with newly allocated SAFE. *Description:* Read DER encoded SAFE from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_from_file --------------------- -- Function: int shishi_safe_from_file (Shishi * HANDLE, Shishi_asn1 * SAFE, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: output variable with newly allocated SAFE. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read SAFE from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_cksum ----------------- -- Function: int shishi_safe_cksum (Shishi * HANDLE, Shishi_asn1 SAFE, int32_t * CKSUMTYPE, char ** CKSUM, size_t * CKSUMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: safe as allocated by 'shishi_safe()'. CKSUMTYPE: output checksum type. CKSUM: output array with newly allocated checksum data from SAFE. CKSUMLEN: output size of output checksum data buffer. *Description:* Read checksum value from KRB-SAFE. CKSUM is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_set_cksum --------------------- -- Function: int shishi_safe_set_cksum (Shishi * HANDLE, Shishi_asn1 SAFE, int32_t CKSUMTYPE, const char * CKSUM, size_t CKSUMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: safe as allocated by 'shishi_safe()'. CKSUMTYPE: input checksum type to store in SAFE. CKSUM: input checksum data to store in SAFE. CKSUMLEN: size of input checksum data to store in SAFE. *Description:* Store checksum value in SAFE. A checksum is usually created by calling 'shishi_checksum()' on some application specific data using the key from the ticket that is being used. To save time, you may want to use 'shishi_safe_build()' instead, which calculates the checksum and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_user_data --------------------- -- Function: int shishi_safe_user_data (Shishi * HANDLE, Shishi_asn1 SAFE, char ** USERDATA, size_t * USERDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: safe as allocated by 'shishi_safe()'. USERDATA: output array with newly allocated user data from KRB-SAFE. USERDATALEN: output size of output user data buffer. *Description:* Read user data value from KRB-SAFE. USERDATA is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_set_user_data ------------------------- -- Function: int shishi_safe_set_user_data (Shishi * HANDLE, Shishi_asn1 SAFE, const char * USERDATA, size_t USERDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. SAFE: safe as allocated by 'shishi_safe()'. USERDATA: input user application to store in SAFE. USERDATALEN: size of input user application to store in SAFE. *Description:* Set the application data in SAFE. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_build ----------------- -- Function: int shishi_safe_build (Shishi_safe * SAFE, Shishi_key * KEY) SAFE: safe as allocated by 'shishi_safe()'. KEY: key for session, used to compute checksum. *Description:* Build checksum and set it in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. *Return value:* Returns SHISHI_OK iff successful. shishi_safe_verify ------------------ -- Function: int shishi_safe_verify (Shishi_safe * SAFE, Shishi_key * KEY) SAFE: safe as allocated by 'shishi_safe()'. KEY: key for session, used to verify checksum. *Description:* Verify checksum in KRB-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. *Return value:* Returns SHISHI_OK iff successful, SHISHI_SAFE_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_SAFE_VERIFY_FAILED if the actual verification failed. The "KRB-PRIV" is an ASN.1 structure used by application client and servers to exchange confidential data. The confidentiality is keyed, usually with a key agreed on via the AP exchange (*note AP-REQ and AP-REP Functions::). The following illustrates the KRB-PRIV ASN.1 structure. KRB-PRIV ::= [APPLICATION 21] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (21), -- NOTE: there is no [2] tag enc-part [3] EncryptedData -- EncKrbPrivPart } EncKrbPrivPart ::= [APPLICATION 28] SEQUENCE { user-data [0] OCTET STRING, timestamp [1] KerberosTime OPTIONAL, usec [2] Microseconds OPTIONAL, seq-number [3] UInt32 OPTIONAL, s-address [4] HostAddress -- sender's addr --, r-address [5] HostAddress OPTIONAL -- recip's addr } shishi_priv ----------- -- Function: int shishi_priv (Shishi * HANDLE, Shishi_priv ** PRIV) HANDLE: shishi handle as allocated by 'shishi_init()'. PRIV: pointer to new structure that holds information about PRIV exchange *Description:* Create a new PRIV exchange. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_done ---------------- -- Function: void shishi_priv_done (Shishi_priv * PRIV) PRIV: structure that holds information about PRIV exchange *Description:* Deallocate resources associated with PRIV exchange. This should be called by the application when it no longer need to utilize the PRIV exchange handle. shishi_priv_key --------------- -- Function: Shishi_key * shishi_priv_key (Shishi_priv * PRIV) PRIV: structure that holds information about PRIV exchange *Description:* Get key from PRIV exchange. *Return value:* Returns the key used in the PRIV exchange, or NULL if not yet set or an error occured. shishi_priv_key_set ------------------- -- Function: void shishi_priv_key_set (Shishi_priv * PRIV, Shishi_key * KEY) PRIV: structure that holds information about PRIV exchange KEY: key to store in PRIV. *Description:* Set the Key in the PRIV exchange. shishi_priv_priv ---------------- -- Function: Shishi_asn1 shishi_priv_priv (Shishi_priv * PRIV) PRIV: structure that holds information about PRIV exchange *Description:* Get ASN.1 PRIV structure in PRIV exchange. *Return value:* Returns the ASN.1 priv in the PRIV exchange, or NULL if not yet set or an error occured. shishi_priv_priv_set -------------------- -- Function: void shishi_priv_priv_set (Shishi_priv * PRIV, Shishi_asn1 ASN1PRIV) PRIV: structure that holds information about PRIV exchange ASN1PRIV: KRB-PRIV to store in PRIV exchange. *Description:* Set the KRB-PRIV in the PRIV exchange. shishi_priv_priv_der -------------------- -- Function: int shishi_priv_priv_der (Shishi_priv * PRIV, char ** OUT, size_t * OUTLEN) PRIV: priv as allocated by 'shishi_priv()'. OUT: output array with newly allocated DER encoding of PRIV. OUTLEN: length of output array with DER encoding of PRIV. *Description:* DER encode PRIV structure. Typically 'shishi_priv_build()' is used to build the PRIV structure first. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_priv_der_set ------------------------ -- Function: int shishi_priv_priv_der_set (Shishi_priv * PRIV, char * DER, size_t DERLEN) PRIV: priv as allocated by 'shishi_priv()'. DER: input array with DER encoded KRB-PRIV. DERLEN: length of input array with DER encoded KRB-PRIV. *Description:* DER decode KRB-PRIV and set it PRIV exchange. If decoding fails, the KRB-PRIV in the PRIV exchange remains. *Return value:* Returns SHISHI_OK. shishi_priv_encprivpart ----------------------- -- Function: Shishi_asn1 shishi_priv_encprivpart (Shishi_priv * PRIV) PRIV: structure that holds information about PRIV exchange *Description:* Get ASN.1 EncPrivPart structure from PRIV exchange. *Return value:* Returns the ASN.1 encprivpart in the PRIV exchange, or NULL if not yet set or an error occured. shishi_priv_encprivpart_set --------------------------- -- Function: void shishi_priv_encprivpart_set (Shishi_priv * PRIV, Shishi_asn1 ASN1ENCPRIVPART) PRIV: structure that holds information about PRIV exchange ASN1ENCPRIVPART: ENCPRIVPART to store in PRIV exchange. *Description:* Set the ENCPRIVPART in the PRIV exchange. shishi_priv_encprivpart_der --------------------------- -- Function: int shishi_priv_encprivpart_der (Shishi_priv * PRIV, char ** OUT, size_t * OUTLEN) PRIV: priv as allocated by 'shishi_priv()'. OUT: output array with newly allocated DER encoding of ENCPRIVPART. OUTLEN: length of output array with DER encoding of ENCPRIVPART. *Description:* DER encode ENCPRIVPART structure. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_encprivpart_der_set ------------------------------- -- Function: int shishi_priv_encprivpart_der_set (Shishi_priv * PRIV, char * DER, size_t DERLEN) PRIV: priv as allocated by 'shishi_priv()'. DER: input array with DER encoded ENCPRIVPART. DERLEN: length of input array with DER encoded ENCPRIVPART. *Description:* DER decode ENCPRIVPART and set it PRIV exchange. If decoding fails, the ENCPRIVPART in the PRIV exchange remains. *Return value:* Returns SHISHI_OK. shishi_priv_print ----------------- -- Function: int shishi_priv_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 PRIV) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. PRIV: PRIV to print. *Description:* Print ASCII armored DER encoding of PRIV to file. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_save ---------------- -- Function: int shishi_priv_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 PRIV) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. PRIV: PRIV to save. *Description:* Save DER encoding of PRIV to file. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_to_file ------------------- -- Function: int shishi_priv_to_file (Shishi * HANDLE, Shishi_asn1 PRIV, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. PRIV: PRIV to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write PRIV to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_parse ----------------- -- Function: int shishi_priv_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * PRIV) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. PRIV: output variable with newly allocated PRIV. *Description:* Read ASCII armored DER encoded PRIV from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_read ---------------- -- Function: int shishi_priv_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * PRIV) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. PRIV: output variable with newly allocated PRIV. *Description:* Read DER encoded PRIV from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_from_file --------------------- -- Function: int shishi_priv_from_file (Shishi * HANDLE, Shishi_asn1 * PRIV, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. PRIV: output variable with newly allocated PRIV. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read PRIV from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_enc_part_etype -------------------------- -- Function: int shishi_priv_enc_part_etype (Shishi * HANDLE, Shishi_asn1 PRIV, int32_t * ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. PRIV: PRIV variable to get value from. ETYPE: output variable that holds the value. *Description:* Extract PRIV.enc-part.etype. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_set_enc_part ------------------------ -- Function: int shishi_priv_set_enc_part (Shishi * HANDLE, Shishi_asn1 PRIV, int32_t ETYPE, const char * ENCPART, size_t ENCPARTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. PRIV: priv as allocated by 'shishi_priv()'. ETYPE: input encryption type to store in PRIV. ENCPART: input encrypted data to store in PRIV. ENCPARTLEN: size of input encrypted data to store in PRIV. *Description:* Store encrypted data in PRIV. The encrypted data is usually created by calling 'shishi_encrypt()' on some application specific data using the key from the ticket that is being used. To save time, you may want to use 'shishi_priv_build()' instead, which encryptes the data and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_encprivpart_user_data ---------------------------- -- Function: int shishi_encprivpart_user_data (Shishi * HANDLE, Shishi_asn1 ENCPRIVPART, char ** USERDATA, size_t * USERDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCPRIVPART: encprivpart as allocated by 'shishi_priv()'. USERDATA: output array with newly allocated user data from KRB-PRIV. USERDATALEN: output size of output user data buffer. *Description:* Read user data value from KRB-PRIV. USERDATA is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_encprivpart_set_user_data -------------------------------- -- Function: int shishi_encprivpart_set_user_data (Shishi * HANDLE, Shishi_asn1 ENCPRIVPART, const char * USERDATA, size_t USERDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCPRIVPART: encprivpart as allocated by 'shishi_priv()'. USERDATA: input user application to store in PRIV. USERDATALEN: size of input user application to store in PRIV. *Description:* Set the application data in PRIV. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_build ----------------- -- Function: int shishi_priv_build (Shishi_priv * PRIV, Shishi_key * KEY) PRIV: priv as allocated by 'shishi_priv()'. KEY: key for session, used to encrypt data. *Description:* Build checksum and set it in KRB-PRIV. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. *Return value:* Returns SHISHI_OK iff successful. shishi_priv_process ------------------- -- Function: int shishi_priv_process (Shishi_priv * PRIV, Shishi_key * KEY) PRIV: priv as allocated by 'shishi_priv()'. KEY: key to use to decrypt EncPrivPart. *Description:* Decrypt encrypted data in KRB-PRIV and set the EncPrivPart in the PRIV exchange. *Return value:* Returns SHISHI_OK iff successful, SHISHI_PRIV_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_CRYPTO_ERROR if the actual decryption failed.  File: shishi.info, Node: Ticket Functions, Next: AS Functions, Prev: SAFE and PRIV Functions, Up: Programming Manual 5.6 Ticket Functions ==================== A Ticket is an ASN.1 structured that can be used to authenticate the holder to services. It contain an encrypted part, which the ticket holder cannot see, but can be encrypted by the service, and various information about the user and service, including an encryption key to use for the connection. *Note Ticket (ASN.1) Functions::, for more details on the ASN.1 structure of a ticket. shishi_tkt ---------- -- Function: int shishi_tkt (Shishi * HANDLE, Shishi_tkt ** TKT) HANDLE: shishi handle as allocated by 'shishi_init()'. TKT: output variable with newly allocated ticket. *Description:* Create a new ticket handle. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt2 ----------- -- Function: Shishi_tkt * shishi_tkt2 (Shishi * HANDLE, Shishi_asn1 TICKET, Shishi_asn1 ENCKDCREPPART, Shishi_asn1 KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: input variable with ticket. ENCKDCREPPART: input variable with auxiliary ticket information. KDCREP: input variable with KDC-REP ticket information. *Description:* Create a new ticket handle. *Return value:* Returns new ticket handle, or 'NULL' on error. shishi_tkt_done --------------- -- Function: void shishi_tkt_done (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Deallocate resources associated with ticket. The ticket must not be used again after this call. shishi_tkt_ticket ----------------- -- Function: Shishi_asn1 shishi_tkt_ticket (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Get ASN.1 Ticket structure from ticket. *Return value:* Returns actual ticket. shishi_tkt_ticket_set --------------------- -- Function: void shishi_tkt_ticket_set (Shishi_tkt * TKT, Shishi_asn1 TICKET) TKT: input variable with ticket info. TICKET: ASN.1 Ticket to store in ticket. *Description:* Set the ASN.1 Ticket in the Ticket. shishi_tkt_enckdcreppart ------------------------ -- Function: Shishi_asn1 shishi_tkt_enckdcreppart (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Get ASN.1 EncKDCRepPart structure from ticket. *Return value:* Returns auxiliary ticket information. shishi_tkt_enckdcreppart_set ---------------------------- -- Function: void shishi_tkt_enckdcreppart_set (Shishi_tkt * TKT, Shishi_asn1 ENCKDCREPPART) TKT: structure that holds information about Ticket exchange ENCKDCREPPART: EncKDCRepPart to store in Ticket. *Description:* Set the EncKDCRepPart in the Ticket. shishi_tkt_kdcrep ----------------- -- Function: Shishi_asn1 shishi_tkt_kdcrep (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Get ASN.1 KDCRep structure from ticket. *Return value:* Returns KDC-REP information. shishi_tkt_encticketpart ------------------------ -- Function: Shishi_asn1 shishi_tkt_encticketpart (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Get ASN.1 EncTicketPart structure from ticket. *Return value:* Returns EncTicketPart information. shishi_tkt_encticketpart_set ---------------------------- -- Function: void shishi_tkt_encticketpart_set (Shishi_tkt * TKT, Shishi_asn1 ENCTICKETPART) TKT: input variable with ticket info. ENCTICKETPART: encticketpart to store in ticket. *Description:* Set the EncTicketPart in the Ticket. shishi_tkt_key -------------- -- Function: Shishi_key * shishi_tkt_key (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Get key used in ticket, by looking first in EncKDCRepPart and then in EncTicketPart. If key is already populated, it is not extracted again. *Return value:* Returns key extracted from EncKDCRepPart or EncTicketPart. shishi_tkt_key_set ------------------ -- Function: int shishi_tkt_key_set (Shishi_tkt * TKT, Shishi_key * KEY) TKT: input variable with ticket info. KEY: key to store in ticket. *Description:* Set the key in the EncTicketPart. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_client ----------------- -- Function: int shishi_tkt_client (Shishi_tkt * TKT, char ** CLIENT, size_t * CLIENTLEN) TKT: input variable with ticket info. CLIENT: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Represent client principal name in Ticket KDC-REP as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_client_p ------------------- -- Function: int shishi_tkt_client_p (Shishi_tkt * TKT, const char * CLIENT) TKT: input variable with ticket info. CLIENT: client name of ticket. *Description:* Determine if ticket is for specified client. *Return value:* Returns non-0 iff ticket is for specified client. shishi_tkt_clientrealm ---------------------- -- Function: int shishi_tkt_clientrealm (Shishi_tkt * TKT, char ** CLIENT, size_t * CLIENTLEN) TKT: input variable with ticket info. CLIENT: pointer to newly allocated zero terminated string containing principal name and realm. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_clientrealm_p ------------------------ -- Function: int shishi_tkt_clientrealm_p (Shishi_tkt * TKT, const char * CLIENT) TKT: input variable with ticket info. CLIENT: principal name (client name and realm) of ticket. *Description:* Determine if ticket is for specified client principal. *Return value:* Returns non-0 iff ticket is for specified client principal. shishi_tkt_realm ---------------- -- Function: int shishi_tkt_realm (Shishi_tkt * TKT, char ** REALM, size_t * REALMLEN) TKT: input variable with ticket info. REALM: pointer to newly allocated character array with realm name. REALMLEN: length of newly allocated character array with realm name. *Description:* Extract realm of server in ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_server ----------------- -- Function: int shishi_tkt_server (Shishi_tkt * TKT, char ** SERVER, size_t * SERVERLEN) TKT: input variable with ticket info. SERVER: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate SERVERLEN). SERVERLEN: pointer to length of SERVER on output, excluding terminating zero. May be 'NULL' (to only populate SERVER). *Description:* Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length SERVERLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_server_p ------------------- -- Function: int shishi_tkt_server_p (Shishi_tkt * TKT, const char * SERVER) TKT: input variable with ticket info. SERVER: server name of ticket. *Description:* Determine if ticket is for specified server. *Return value:* Returns non-0 iff ticket is for specified server. shishi_tkt_flags ---------------- -- Function: int shishi_tkt_flags (Shishi_tkt * TKT, uint32_t * FLAGS) TKT: input variable with ticket info. FLAGS: pointer to output integer with flags. *Description:* Extract flags in ticket (i.e., EncKDCRepPart). *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_flags_set -------------------- -- Function: int shishi_tkt_flags_set (Shishi_tkt * TKT, uint32_t FLAGS) TKT: input variable with ticket info. FLAGS: integer with flags to store in ticket. *Description:* Set flags in ticket, i.e., both EncTicketPart and EncKDCRepPart. Note that this reset any already existing flags. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_flags_add -------------------- -- Function: int shishi_tkt_flags_add (Shishi_tkt * TKT, uint32_t FLAG) TKT: input variable with ticket info. FLAG: integer with flags to store in ticket. *Description:* Add ticket flags to Ticket and EncKDCRepPart. This preserves all existing options. *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_forwardable_p ------------------------ -- Function: int shishi_tkt_forwardable_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is forwardable. The FORWARDABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket-granting ticket. *Return value:* Returns non-0 iff forwardable flag is set in ticket. shishi_tkt_forwarded_p ---------------------- -- Function: int shishi_tkt_forwarded_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is forwarded. The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non-FORWARDED tickets. *Return value:* Returns non-0 iff forwarded flag is set in ticket. shishi_tkt_proxiable_p ---------------------- -- Function: int shishi_tkt_proxiable_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is proxiable. The PROXIABLE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. When set, this flag tells the ticket-granting server that it is OK to issue a new ticket (but not a ticket-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket-granting ticket, and reset when requesting any other ticket. *Return value:* Returns non-0 iff proxiable flag is set in ticket. shishi_tkt_proxy_p ------------------ -- Function: int shishi_tkt_proxy_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is proxy ticket. The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail. *Return value:* Returns non-0 iff proxy flag is set in ticket. shishi_tkt_may_postdate_p ------------------------- -- Function: int shishi_tkt_may_postdate_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket may be used to grant postdated tickets. The MAY-POSTDATE flag in a ticket is normally only interpreted by the ticket-granting service. It can be ignored by application servers. This flag MUST be set in a ticket-granting ticket in order to issue a postdated ticket based on the presented ticket. It is reset by default; it MAY be requested by a client by setting the ALLOW- POSTDATE option in the KRB_AS_REQ message. This flag does not allow a client to obtain a postdated ticket-granting ticket; postdated ticket-granting tickets can only by obtained by requesting the postdating in the KRB_AS_REQ message. The life (endtime-starttime) of a postdated ticket will be the remaining life of the ticket-granting ticket at the time of the request, unless the RENEWABLE option is also set, in which case it can be the full life (endtime-starttime) of the ticket-granting ticket. The KDC MAY limit how far in the future a ticket may be postdated. *Return value:* Returns non-0 iff may-postdate flag is set in ticket. shishi_tkt_postdated_p ---------------------- -- Function: int shishi_tkt_postdated_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is postdated. The POSTDATED flag indicates that a ticket has been postdated. The application server can check the authtime field in the ticket to see when the original authentication occurred. Some services MAY choose to reject postdated tickets, or they may only accept them within a certain period after the original authentication. When the KDC issues a POSTDATED ticket, it will also be marked as INVALID, so that the application client MUST present the ticket to the KDC to be validated before use. *Return value:* Returns non-0 iff postdated flag is set in ticket. shishi_tkt_invalid_p -------------------- -- Function: int shishi_tkt_invalid_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is invalid. The INVALID flag indicates that a ticket is invalid. Application servers MUST reject tickets which have this flag set. A postdated ticket will be issued in this form. Invalid tickets MUST be validated by the KDC before use, by presenting them to the KDC in a TGS request with the VALIDATE option specified. The KDC will only validate tickets after their starttime has passed. The validation is required so that postdated tickets which have been stolen before their starttime can be rendered permanently invalid (through a hot-list mechanism). *Return value:* Returns non-0 iff invalid flag is set in ticket. shishi_tkt_renewable_p ---------------------- -- Function: int shishi_tkt_renewable_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is renewable. The RENEWABLE flag in a ticket is normally only interpreted by the ticket-granting service (discussed below in section 3.3). It can usually be ignored by application servers. However, some particularly careful application servers MAY disallow renewable tickets. *Return value:* Returns non-0 iff renewable flag is set in ticket. shishi_tkt_initial_p -------------------- -- Function: int shishi_tkt_initial_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket was issued using AS exchange. The INITIAL flag indicates that a ticket was issued using the AS protocol, rather than issued based on a ticket-granting ticket. Application servers that want to require the demonstrated knowledge of a client's secret key (e.g. a password-changing program) can insist that this flag be set in any tickets they accept, and thus be assured that the client's key was recently presented to the application client. *Return value:* Returns non-0 iff initial flag is set in ticket. shishi_tkt_pre_authent_p ------------------------ -- Function: int shishi_tkt_pre_authent_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket was pre-authenticated. The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket). *Return value:* Returns non-0 iff pre-authent flag is set in ticket. shishi_tkt_hw_authent_p ----------------------- -- Function: int shishi_tkt_hw_authent_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is authenticated using a hardware token. The PRE-AUTHENT and HW-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket-granting ticket (in which case the INITIAL flag is clear, but the PRE-AUTHENT and HW-AUTHENT flags are carried forward from the ticket-granting ticket). *Return value:* Returns non-0 iff hw-authent flag is set in ticket. shishi_tkt_transited_policy_checked_p ------------------------------------- -- Function: int shishi_tkt_transited_policy_checked_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket has been policy checked for transit. The application server is ultimately responsible for accepting or rejecting authentication and SHOULD check that only suitably trusted KDCs are relied upon to authenticate a principal. The transited field in the ticket identifies which realms (and thus which KDCs) were involved in the authentication process and an application server would normally check this field. If any of these are untrusted to authenticate the indicated client principal (probably determined by a realm-based policy), the authentication attempt MUST be rejected. The presence of trusted KDCs in this list does not provide any guarantee; an untrusted KDC may have fabricated the list. While the end server ultimately decides whether authentication is valid, the KDC for the end server's realm MAY apply a realm specific policy for validating the transited field and accepting credentials for cross-realm authentication. When the KDC applies such checks and accepts such cross-realm authentication it will set the TRANSITED-POLICY-CHECKED flag in the service tickets it issues based on the cross-realm TGT. A client MAY request that the KDCs not check the transited field by setting the DISABLE-TRANSITED-CHECK flag. KDCs are encouraged but not required to honor this flag. Application servers MUST either do the transited-realm checks themselves, or reject cross-realm tickets without TRANSITED-POLICY- CHECKED set. *Return value:* Returns non-0 iff transited-policy-checked flag is set in ticket. shishi_tkt_ok_as_delegate_p --------------------------- -- Function: int shishi_tkt_ok_as_delegate_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is ok as delegated ticket. The copy of the ticket flags in the encrypted part of the KDC reply may have the OK-AS-DELEGATE flag set to indicates to the client that the server specified in the ticket has been determined by policy of the realm to be a suitable recipient of delegation. A client can use the presence of this flag to help it make a decision whether to delegate credentials (either grant a proxy or a forwarded ticket- granting ticket) to this server. It is acceptable to ignore the value of this flag. When setting this flag, an administrator should consider the security and placement of the server on which the service will run, as well as whether the service requires the use of delegated credentials. *Return value:* Returns non-0 iff ok-as-delegate flag is set in ticket. shishi_tkt_keytype ------------------ -- Function: int shishi_tkt_keytype (Shishi_tkt * TKT, int32_t * ETYPE) TKT: input variable with ticket info. ETYPE: pointer to encryption type that is set, see Shishi_etype. *Description:* Extract encryption type of key in ticket (really EncKDCRepPart). *Return value:* Returns SHISHI_OK iff successful. shishi_tkt_keytype_fast ----------------------- -- Function: int32_t shishi_tkt_keytype_fast (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Extract encryption type of key in ticket (really EncKDCRepPart). *Return value:* Returns encryption type of session key in ticket (really EncKDCRepPart), or -1 on error. shishi_tkt_keytype_p -------------------- -- Function: int shishi_tkt_keytype_p (Shishi_tkt * TKT, int32_t ETYPE) TKT: input variable with ticket info. ETYPE: encryption type, see Shishi_etype. *Description:* Determine if key in ticket (really EncKDCRepPart) is of specified key type (really encryption type). *Return value:* Returns non-0 iff key in ticket is of specified encryption type. shishi_tkt_lastreqc ------------------- -- Function: time_t shishi_tkt_lastreqc (Shishi_tkt * TKT, Shishi_lrtype LRTYPE) TKT: input variable with ticket info. LRTYPE: lastreq type to extract, see Shishi_lrtype. E.g., SHISHI_LRTYPE_LAST_REQUEST. *Description:* Extract C time corresponding to given lastreq type field in the ticket. *Return value:* Returns C time interpretation of the specified lastreq field, or (time_t) -1. shishi_tkt_authctime -------------------- -- Function: time_t shishi_tkt_authctime (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Extract C time corresponding to the authtime field. The field holds the time when the original authentication took place that later resulted in this ticket. *Return value:* Returns C time interpretation of the endtime in ticket. shishi_tkt_startctime --------------------- -- Function: time_t shishi_tkt_startctime (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Extract C time corresponding to the starttime field. The field holds the time where the ticket start to be valid (typically in the past). *Return value:* Returns C time interpretation of the endtime in ticket. shishi_tkt_endctime ------------------- -- Function: time_t shishi_tkt_endctime (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Extract C time corresponding to the endtime field. The field holds the time where the ticket stop being valid. *Return value:* Returns C time interpretation of the endtime in ticket. shishi_tkt_renew_tillc ---------------------- -- Function: time_t shishi_tkt_renew_tillc (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Extract C time corresponding to the renew-till field. The field holds the time where the ticket stop being valid for renewal. *Return value:* Returns C time interpretation of the renew-till in ticket. shishi_tkt_valid_at_time_p -------------------------- -- Function: int shishi_tkt_valid_at_time_p (Shishi_tkt * TKT, time_t NOW) TKT: input variable with ticket info. NOW: time to check for. *Description:* Determine if ticket is valid at a specific point in time. *Return value:* Returns non-0 iff ticket is valid (not expired and after starttime) at specified time. shishi_tkt_valid_now_p ---------------------- -- Function: int shishi_tkt_valid_now_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket is valid now. *Return value:* Returns 0 iff ticket is invalid (expired or not yet valid). shishi_tkt_expired_p -------------------- -- Function: int shishi_tkt_expired_p (Shishi_tkt * TKT) TKT: input variable with ticket info. *Description:* Determine if ticket has expired (i.e., endtime is in the past). *Return value:* Returns 0 iff ticket has expired. shishi_tkt_lastreq_pretty_print ------------------------------- -- Function: void shishi_tkt_lastreq_pretty_print (Shishi_tkt * TKT, FILE * FH) TKT: input variable with ticket info. FH: file handle open for writing. *Description:* Print a human readable representation of the various lastreq fields in the ticket (really EncKDCRepPart). shishi_tkt_pretty_print ----------------------- -- Function: void shishi_tkt_pretty_print (Shishi_tkt * TKT, FILE * FH) TKT: input variable with ticket info. FH: file handle open for writing. *Description:* Print a human readable representation of a ticket to file handle.  File: shishi.info, Node: AS Functions, Next: TGS Functions, Prev: Ticket Functions, Up: Programming Manual 5.7 AS Functions ================ The Authentication Service (AS) is used to get an initial ticket using e.g. your password. The following illustrates the AS-REQ and AS-REP ASN.1 structures. -- Request -- AS-REQ ::= KDC-REQ {10} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- AS-REP ::= KDC-REP {11, EncASRepPart, {keyuse-EncASRepPart}} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncASRepPart ::= [APPLICATION 25] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } shishi_as --------- -- Function: int shishi_as (Shishi * HANDLE, Shishi_as ** AS) HANDLE: shishi handle as allocated by 'shishi_init()'. AS: holds pointer to newly allocate Shishi_as structure. *Description:* Allocate a new AS exchange variable. *Return value:* Returns SHISHI_OK iff successful. shishi_as_done -------------- -- Function: void shishi_as_done (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Deallocate resources associated with AS exchange. This should be called by the application when it no longer need to utilize the AS exchange handle. shishi_as_req ------------- -- Function: Shishi_asn1 shishi_as_req (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Get ASN.1 AS-REQ structure from AS exchange. *Return value:* Returns the generated AS-REQ packet from the AS exchange, or NULL if not yet set or an error occured. shishi_as_req_build ------------------- -- Function: int shishi_as_req_build (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Possibly remove unset fields (e.g., rtime). *Return value:* Returns SHISHI_OK iff successful. shishi_as_req_set ----------------- -- Function: void shishi_as_req_set (Shishi_as * AS, Shishi_asn1 ASREQ) AS: structure that holds information about AS exchange ASREQ: asreq to store in AS. *Description:* Set the AS-REQ in the AS exchange. shishi_as_req_der ----------------- -- Function: int shishi_as_req_der (Shishi_as * AS, char ** OUT, size_t * OUTLEN) AS: structure that holds information about AS exchange OUT: output array with newly allocated DER encoding of AS-REQ. OUTLEN: length of output array with DER encoding of AS-REQ. *Description:* DER encode AS-REQ. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_as_req_der_set --------------------- -- Function: int shishi_as_req_der_set (Shishi_as * AS, char * DER, size_t DERLEN) AS: structure that holds information about AS exchange DER: input array with DER encoded AP-REQ. DERLEN: length of input array with DER encoded AP-REQ. *Description:* DER decode AS-REQ and set it AS exchange. If decoding fails, the AS-REQ in the AS exchange remains. *Return value:* Returns SHISHI_OK. shishi_as_rep ------------- -- Function: Shishi_asn1 shishi_as_rep (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Get ASN.1 AS-REP structure from AS exchange. *Return value:* Returns the received AS-REP packet from the AS exchange, or NULL if not yet set or an error occured. shishi_as_rep_process --------------------- -- Function: int shishi_as_rep_process (Shishi_as * AS, Shishi_key * KEY, const char * PASSWORD) AS: structure that holds information about AS exchange KEY: user's key, used to encrypt the encrypted part of the AS-REP. PASSWORD: user's password, used if key is NULL. *Description:* Process new AS-REP and set ticket. The key is used to decrypt the AP-REP. If both key and password is NULL, the user is queried for it. *Return value:* Returns SHISHI_OK iff successful. shishi_as_rep_build ------------------- -- Function: int shishi_as_rep_build (Shishi_as * AS, Shishi_key * KEY) AS: structure that holds information about AS exchange KEY: user's key, used to encrypt the encrypted part of the AS-REP. *Description:* Build AS-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_as_rep_der ----------------- -- Function: int shishi_as_rep_der (Shishi_as * AS, char ** OUT, size_t * OUTLEN) AS: structure that holds information about AS exchange OUT: output array with newly allocated DER encoding of AS-REP. OUTLEN: length of output array with DER encoding of AS-REP. *Description:* DER encode AS-REP. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_as_rep_set ----------------- -- Function: void shishi_as_rep_set (Shishi_as * AS, Shishi_asn1 ASREP) AS: structure that holds information about AS exchange ASREP: asrep to store in AS. *Description:* Set the AS-REP in the AS exchange. shishi_as_rep_der_set --------------------- -- Function: int shishi_as_rep_der_set (Shishi_as * AS, char * DER, size_t DERLEN) AS: structure that holds information about AS exchange DER: input array with DER encoded AP-REP. DERLEN: length of input array with DER encoded AP-REP. *Description:* DER decode AS-REP and set it AS exchange. If decoding fails, the AS-REP in the AS exchange remains. *Return value:* Returns SHISHI_OK. shishi_as_krberror ------------------ -- Function: Shishi_asn1 shishi_as_krberror (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Get ASN.1 KRB-ERROR structure from AS exchange. *Return value:* Returns the received KRB-ERROR packet from the AS exchange, or NULL if not yet set or an error occured. shishi_as_krberror_der ---------------------- -- Function: int shishi_as_krberror_der (Shishi_as * AS, char ** OUT, size_t * OUTLEN) AS: structure that holds information about AS exchange OUT: output array with newly allocated DER encoding of KRB-ERROR. OUTLEN: length of output array with DER encoding of KRB-ERROR. *Description:* DER encode KRB-ERROR. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_as_krberror_set ---------------------- -- Function: void shishi_as_krberror_set (Shishi_as * AS, Shishi_asn1 KRBERROR) AS: structure that holds information about AS exchange KRBERROR: krberror to store in AS. *Description:* Set the KRB-ERROR in the AS exchange. shishi_as_tkt ------------- -- Function: Shishi_tkt * shishi_as_tkt (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Get Ticket in AS exchange. *Return value:* Returns the newly acquired tkt from the AS exchange, or NULL if not yet set or an error occured. shishi_as_tkt_set ----------------- -- Function: void shishi_as_tkt_set (Shishi_as * AS, Shishi_tkt * TKT) AS: structure that holds information about AS exchange TKT: tkt to store in AS. *Description:* Set the Tkt in the AS exchange. shishi_as_sendrecv_hint ----------------------- -- Function: int shishi_as_sendrecv_hint (Shishi_as * AS, Shishi_tkts_hint * HINT) AS: structure that holds information about AS exchange HINT: additional parameters that modify connection behaviour, or 'NULL'. *Description:* Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. The HINT structure can be used to set, e.g., parameters for TLS authentication. *Return value:* Returns SHISHI_OK iff successful. shishi_as_sendrecv ------------------ -- Function: int shishi_as_sendrecv (Shishi_as * AS) AS: structure that holds information about AS exchange *Description:* Send AS-REQ and receive AS-REP or KRB-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. *Return value:* Returns SHISHI_OK iff successful. shishi-1.0.3/doc/man/0000755000000000000000000000000014273616164011303 500000000000000shishi-1.0.3/doc/man/shishi_keys_remove.30000644000000000000000000000223214273615435015205 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_remove \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_keys_remove(Shishi_keys * " keys ", int " keyno ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .IP "int keyno" 12 key number of key in the set to remove. The first key is key number 0. .SH "DESCRIPTION" Remove a key, indexed by \fIkeyno\fP, in given key set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_randomize.30000644000000000000000000000255414273615447014657 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_randomize" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_randomize \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_randomize(Shishi * " handle ", int " strong ", void * " data ", size_t " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int strong" 12 0 iff operation should not block, non\-0 for very strong randomness. .IP "void * data" 12 output array to be filled with random data. .IP "size_t datalen" 12 size of output array. .SH "DESCRIPTION" Store cryptographically random data of given size in the provided buffer. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_name_set.30000644000000000000000000000310114273615454016506 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_name_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_name_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_principal_name_set(Shishi * " handle ", Shishi_asn1 " namenode ", const char * " namefield ", Shishi_name_type " name_type ", const char * " name "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 namenode" 12 ASN.1 structure with principal in \fInamefield\fP. .IP "const char * namefield" 12 name of field in \fInamenode\fP containing principal name. .IP "Shishi_name_type name_type" 12 type of principal, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * name[]" 12 null\-terminated input array with principal name. .SH "DESCRIPTION" Set the given principal name field to the given name. .SH "RETURN VALUE" Returns SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_server.30000644000000000000000000000316414273615476015057 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_server(Shishi_tkt * " tkt ", char ** " server ", size_t * " serverlen ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "char ** server" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIserverlen\fP). .IP "size_t * serverlen" 12 pointer to length of \fIserver\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIserver\fP). .SH "DESCRIPTION" Represent server principal name in Ticket as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIserverlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_rep_der.30000644000000000000000000000254514273615470015160 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_rep_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_rep_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_rep_der(Shishi_tgs * " tgs ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of TGS\-REP. .IP "size_t * outlen" 12 length of output array with DER encoding of TGS\-REP. .SH "DESCRIPTION" DER encode TGS\-REP. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_print.30000644000000000000000000000315414273615400014655 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_print(Shishi * " handle ", FILE * " fh ", const Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 File handle open for writing. .IP "const Shishi_key * key" 12 Key to print. .SH "DESCRIPTION" Prints an ASCII representation of a key structure \fIkey\fP to the file descriptor \fIfh\fP. Example output: \-\-\-\-\-BEGIN SHISHI KEY\-\-\-\-\- .SH "KEYTYPE" 18 (aes256\-cts\-hmac\-sha1\-96) .SH "PRINCIPAL" host/latte.josefsson.org .SH "REALM" JOSEFSSON.ORG Key\-Version\-Number: 1 .SH "TIMESTAMP" 20130420150337Z P1QdeW/oSiag/bTyVEBAY2msiGSTmgLXlopuCKoppDs= \-\-\-\-\-END SHISHI KEY\-\-\-\-\- .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful. The only failure is \fBSHISHI_MALLOC_ERROR\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_for_server_in_file.30000644000000000000000000000261314273615436017555 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_for_server_in_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_for_server_in_file \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_keys_for_server_in_file(Shishi * " handle ", const char * " filename ", const char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * filename" 12 file to read keys from. .IP "const char * server" 12 server name to get key for. .SH "DESCRIPTION" Get key for specified \fIserver\fP from \fIfilename\fP. .SH "RETURN VALUE" Returns the key for specific server, read from the indicated file, or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_lastreqc.30000644000000000000000000000242714273615502015356 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_lastreqc" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_lastreqc \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_tkt_lastreqc(Shishi_tkt * " tkt ", Shishi_lrtype " lrtype ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "Shishi_lrtype lrtype" 12 lastreq type to extract, see Shishi_lrtype. E.g., SHISHI_LRTYPE_LAST_REQUEST. .SH "DESCRIPTION" Extract C time corresponding to given lastreq type field in the ticket. .SH "RETURN VALUE" Returns C time interpretation of the specified lastreq field, or (time_t) \-1. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_from_ccache_file.30000644000000000000000000000332514273615504017153 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_from_ccache_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_from_ccache_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_from_ccache_file(Shishi * " handle ", const char * " filename ", Shishi_tkts ** " outtkts ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 name of file to read. .IP "Shishi_tkts ** outtkts" 12 pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes. .SH "DESCRIPTION" Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. .SH "RETURNS" Returns \fBSHISHI_IO_ERROR\fP if the file cannot be read, \fBSHISHI_CCACHE_ERROR\fP if the data cannot be parsed as a valid ccache structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_verify.30000644000000000000000000000215414273615334015510 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_verify" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_verify \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_verify(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Verify AP\-REP compared to Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_etype.30000644000000000000000000000245414273615326014470 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_etype(Shishi * " handle ", Shishi_ap ** " ap ", int " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "int etype" 12 encryption type of newly generated random subkey. .SH "DESCRIPTION" Create a new AP exchange with a random subkey of indicated encryption type. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_verbose.30000644000000000000000000000250614273615410014317 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_verbose" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_verbose \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_verbose(Shishi * " handle ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * format" 12 printf style format string. .IP "..." 12 printf style arguments. .SH "DESCRIPTION" Prints a diagnostic message, composed from the arguments, to the output stream set in \fIhandle\fP. The current verbosity setting determines whether the message is actually printed, or is suppressed due to low significance. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_to_file.30000644000000000000000000000263014273615336015467 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_to_file(Shishi * " handle ", Shishi_asn1 " aprep ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 aprep" 12 AP\-REP to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write AP\-REP to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_defaultcksumtype.30000644000000000000000000000223514273615373017604 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_defaultcksumtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_defaultcksumtype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cipher_defaultcksumtype(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Get the default checksum associated with cipher. .SH "RETURN VALUE" Return associated checksum mechanism for the encryption type, as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_copy_cname.30000644000000000000000000000261114273615414015611 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_copy_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_copy_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_copy_cname(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_asn1 " encticketpart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP where the field "cname" is updated. .IP "Shishi_asn1 encticketpart" 12 EncTicketPart providing "cname" field. .SH "DESCRIPTION" Reads the field "cname" from the ticket \fIencticketpart\fP and copies the value into the reply \fIkdcrep\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, and ASN.1 failures otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encprivpart_user_data.30000644000000000000000000000301314273615460017235 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encprivpart_user_data" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encprivpart_user_data \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encprivpart_user_data(Shishi * " handle ", Shishi_asn1 " encprivpart ", char ** " userdata ", size_t * " userdatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encprivpart" 12 encprivpart as allocated by \fBshishi_priv()\fP. .IP "char ** userdata" 12 output array with newly allocated user data from KRB\-PRIV. .IP "size_t * userdatalen" 12 output size of output user data buffer. .SH "DESCRIPTION" Read user data value from KRB\-PRIV. \fIuserdata\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_asrep.30000644000000000000000000000247214273615356015476 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_asrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_asrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_asrep(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of AS\-REP and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_cksumraw_set.30000644000000000000000000000331214273615330020770 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_cksumraw_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_cksumraw_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_authenticator_cksumraw_set(Shishi_ap * " ap ", int32_t " authenticatorcksumtype ", const char * " authenticatorcksumraw ", size_t " authenticatorcksumrawlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "int32_t authenticatorcksumtype" 12 authenticator checksum type to set in AP. .IP "const char * authenticatorcksumraw" 12 input array with authenticator checksum field value to set in Authenticator in AP\-REQ. .IP "size_t authenticatorcksumrawlen" 12 length of input array with authenticator checksum field value to set in Authenticator in AP\-REQ. .SH "DESCRIPTION" Set the Authenticator Checksum Data in the AP exchange. This is the actual checksum field, not data to compute checksum on and then store in the checksum field. See also shishi_ap_authenticator_cksumdata_set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_ctime.30000644000000000000000000000250014273615401016511 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_ctime(Shishi * " handle ", Shishi_asn1 " encapreppart ", char ** " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "char ** t" 12 newly allocated zero\-terminated character array with client time. .SH "DESCRIPTION" Extract client time from EncAPRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_done.30000644000000000000000000000207114273615474014470 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_done(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Deallocate resources associated with ticket. The ticket must not be used again after this call. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_safe_der_set.30000644000000000000000000000247414273615463016307 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_safe_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_safe_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_safe_der_set(Shishi_safe * " safe ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "char * der" 12 input array with DER encoded KRB\-SAFE. .IP "size_t derlen" 12 length of input array with DER encoded KRB\-SAFE. .SH "DESCRIPTION" DER decode KRB\-SAFE and set it SAFE exchange. If decoding fails, the KRB\-SAFE in the SAFE exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt.30000644000000000000000000000446014273615376014352 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_authorizationtype_set.30000644000000000000000000000305214273615371020151 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_authorizationtype_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_authorizationtype_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg_authorizationtype_set(Shishi * " handle ", char * " value ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "char * value" 12 String listing acceptable authorization types. .SH "DESCRIPTION" Sets the configuration option "authorization\-types" from \fIvalue\fP. The string contains authorization types, integers or names, separated by comma or whitespace. As an example, "k5login basic" would first check Kerberos5 authentication based on preset principals, and then fall back to the basic test of identical principal names. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, and \fBSHISHI_INVALID_ARGUMENT\fP otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_done.30000644000000000000000000000220414273615434014633 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_keys_done(Shishi_keys ** " keys ");" .SH ARGUMENTS .IP "Shishi_keys ** keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .SH "DESCRIPTION" Deallocates all resources associated with key set. The key set handle must not be used in calls to other shishi_keys_*() functions after this. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_server.30000644000000000000000000000222014273615412014153 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_server \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi * shishi_server();" .SH "DESCRIPTION" Initializes the Shishi library, and primes logging so that future warnings and informational messages are sent to the syslog system. If this function fails, it may print diagnostic errors in the syslog. .SH "RETURN VALUE" Returns a Shishi library handle, or \fBNULL\fP on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_edata.30000644000000000000000000000233614273615446017227 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_edata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_edata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_edata(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove error text (e\-data) field in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_save.30000644000000000000000000000234014273615437015525 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR to save. .SH "DESCRIPTION" Save DER encoding of KRB\-ERROR to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_from_file.30000644000000000000000000000263314273615417016154 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_from_file(Shishi * " handle ", Shishi_asn1 * " kdcrep ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * kdcrep" 12 output variable with newly allocated KDC\-REP. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read KDC\-REP from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_add_enc_part.30000644000000000000000000000310714273615420016604 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_add_enc_part" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_add_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_add_enc_part(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_key * " key ", int " keyusage ", Shishi_asn1 " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to add enc\-part field to. .IP "Shishi_key * key" 12 key used to encrypt enc\-part. .IP "int keyusage" 12 key usage to use, normally SHISHI_KEYUSAGE_ENCASREPPART, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY or SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY. .IP "Shishi_asn1 enckdcreppart" 12 EncKDCRepPart to add. .SH "DESCRIPTION" Encrypts DER encoded EncKDCRepPart using key and stores it in the KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_validate_p.30000644000000000000000000000332514273615426016322 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_validate_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_validate_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_validate_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option validate flag is set. This option is used only by the ticket\-granting service. The VALIDATE option indicates that the request is to validate a postdated ticket. It will only be honored if the ticket presented is postdated, presently has its INVALID flag set, and would be otherwise usable at this time. A ticket cannot be validated before its starttime. The ticket presented for validation is encrypted in the key of the server for which it is valid and is passed in the padata field as part of the authentication header. .SH "RETURN VALUE" Returns non\-0 iff validate flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_krberror_der.30000644000000000000000000000256214273615345016030 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_krberror_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_krberror_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_krberror_der(Shishi_as * " as ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of KRB\-ERROR. .IP "size_t * outlen" 12 length of output array with DER encoding of KRB\-ERROR. .SH "DESCRIPTION" DER encode KRB\-ERROR. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_server_set.30000644000000000000000000000247214273615443016753 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_server_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_server_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_server_set(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror to set server name field in. .IP "const char * server" 12 zero\-terminated string with principal name on RFC 1964 form. .SH "DESCRIPTION" Set the server name field in the Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_keytype_fast.30000644000000000000000000000224114273615502016241 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_keytype_fast" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_keytype_fast \- API function .SH SYNOPSIS .B #include .sp .BI "int32_t shishi_tkt_keytype_fast(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Extract encryption type of key in ticket (really EncKDCRepPart). .SH "RETURN VALUE" Returns encryption type of session key in ticket (really EncKDCRepPart), or \-1 on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_print.30000644000000000000000000000232314273615463015011 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " safe ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 safe" 12 SAFE to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of SAFE to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_add_keytab_mem.30000644000000000000000000000331514273615436016641 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_add_keytab_mem" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_add_keytab_mem \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_add_keytab_mem(Shishi * " handle ", const char * " data ", size_t " len ", Shishi_keys * " keys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * data" 12 constant memory buffer with keytab of \fIlen\fP size. .IP "size_t len" 12 size of memory buffer with keytab data. .IP "Shishi_keys * keys" 12 allocated key set to store keys in. .SH "DESCRIPTION" Read keys from a MIT keytab data structure, and add them to the key set. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" Returns \fBSHISHI_KEYTAB_ERROR\fP if the data does not represent a valid keytab structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_set_realm.30000644000000000000000000000225514273615472015513 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_set_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_set_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_set_realm(Shishi_tgs * " tgs ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "const char * realm" 12 indicates the realm to acquire ticket for. .SH "DESCRIPTION" Set the server in the TGS\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_to_file.30000644000000000000000000000263714273615416015636 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_to_file(Shishi * " handle ", Shishi_asn1 " kdcrep ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write KDC\-REP to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_renew_tillc.30000644000000000000000000000227614273615502016051 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_renew_tillc" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_renew_tillc \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_tkt_renew_tillc(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Extract C time corresponding to the renew\-till field. The field holds the time where the ticket stop being valid for renewal. .SH "RETURN VALUE" Returns C time interpretation of the renew\-till in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_priv_der_set.30000644000000000000000000000247414273615456016415 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_priv_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_priv_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_priv_der_set(Shishi_priv * " priv ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "char * der" 12 input array with DER encoded KRB\-PRIV. .IP "size_t derlen" 12 length of input array with DER encoded KRB\-PRIV. .SH "DESCRIPTION" DER decode KRB\-PRIV and set it PRIV exchange. If decoding fails, the KRB\-PRIV in the PRIV exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_pbkdf2_sha1.30000644000000000000000000000377614273615451014755 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_pbkdf2_sha1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_pbkdf2_sha1 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_pbkdf2_sha1(Shishi * " handle ", const char * " P ", size_t " Plen ", const char * " S ", size_t " Slen ", unsigned int " c ", unsigned int " dkLen ", char * " DK ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * P" 12 input password, an octet string .IP "size_t Plen" 12 length of password, an octet string .IP "const char * S" 12 input salt, an octet string .IP "size_t Slen" 12 length of salt, an octet string .IP "unsigned int c" 12 iteration count, a positive integer .IP "unsigned int dkLen" 12 intended length in octets of the derived key, a positive integer, at most (2^32 \- 1) * hLen. The DK array must have room for this many characters. .IP "char * DK" 12 output derived key, a dkLen\-octet string .SH "DESCRIPTION" Derive key using the PBKDF2 defined in PKCS5. PBKDF2 applies a pseudorandom function to derive keys. The length of the derived key is essentially unbounded. (However, the maximum effective search space for the derived key may be limited by the structure of the underlying pseudorandom function, which is this function is always SHA1.) .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_dk.30000644000000000000000000000301014273615377013253 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_dk" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_dk \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_dk(Shishi * " handle ", Shishi_key * " key ", const char * " prfconstant ", size_t " prfconstantlen ", Shishi_key * " derivedkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 input cryptographic key to use. .IP "const char * prfconstant" 12 input array with the constant string. .IP "size_t prfconstantlen" 12 size of input array with the constant string. .IP "Shishi_key * derivedkey" 12 pointer to derived key (allocated by caller). .SH "DERIVE A KEY FROM A KEY AND A CONSTANT THUSLY" DK(KEY, PRFCONSTANT) = SHISHI_RANDOM\-TO\-KEY(SHISHI_DR(KEY, PRFCONSTANT)). .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_done.30000644000000000000000000000221514273615505014646 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkts_done(Shishi_tkts ** " tkts ");" .SH ARGUMENTS .IP "Shishi_tkts ** tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .SH "DESCRIPTION" Deallocates all resources associated with ticket set. The ticket set handle must not be used in calls to other shishi_tkts_*() functions after this. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_apreq.30000644000000000000000000000247214273615360015467 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_apreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_apreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_apreq(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of AP\-REQ and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_startctime.30000644000000000000000000000230214273615502015707 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_startctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_startctime \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_tkt_startctime(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Extract C time corresponding to the starttime field. The field holds the time where the ticket start to be valid (typically in the past). .SH "RETURN VALUE" Returns C time interpretation of the endtime in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_enctgsreppart.30000644000000000000000000000253014273615356017240 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_enctgsreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_enctgsreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_enctgsreppart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncTGSRepPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_print.30000644000000000000000000000233614273615335015204 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " aprep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 aprep" 12 AP\-REP to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of AP\-REP to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_susec_set.30000644000000000000000000000245014273615445016565 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_susec_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_susec_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_susec_set(Shishi * " handle ", Shishi_asn1 " krberror ", uint32_t " susec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "uint32_t susec" 12 server microseconds to set in krberror, 0\-999999. .SH "DESCRIPTION" Set the susec field in the Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_dr.30000644000000000000000000000322114273615377013266 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_dr" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_dr \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_dr(Shishi * " handle ", Shishi_key * " key ", const char * " prfconstant ", size_t " prfconstantlen ", char * " derivedrandom ", size_t " derivedrandomlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 input array with cryptographic key to use. .IP "const char * prfconstant" 12 input array with the constant string. .IP "size_t prfconstantlen" 12 size of input array with the constant string. .IP "char * derivedrandom" 12 output array with derived random data. .IP "size_t derivedrandomlen" 12 size of output array with derived random data. .SH "DESCRIPTION" Derive "random" data from a key and a constant thusly: DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, SHISHI_ENCRYPT(KEY, PRFCONSTANT)). .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_parse.30000644000000000000000000000241414273615464014771 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " safe ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * safe" 12 output variable with newly allocated SAFE. .SH "DESCRIPTION" Read ASCII armored DER encoded SAFE from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_mutual_required_p.30000644000000000000000000000235714273615341017577 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_mutual_required_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_mutual_required_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_mutual_required_p(Shishi * " handle ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ as allocated by \fBshishi_apreq()\fP. .SH "DESCRIPTION" Return non\-0 iff the "Mutual required" option is set in the AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_pa_enc_ts_enc.30000644000000000000000000000215214273615347016362 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_pa_enc_ts_enc" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_pa_enc_ts_enc \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_pa_enc_ts_enc(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for PA\-ENC\-TS\-ENC. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1.30000644000000000000000000000250214273615354014274 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1 \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Convert arbitrary DER data of a packet to a ASN.1 type. .SH "RETURN VALUE" Returns newly allocate ASN.1 corresponding to DER data, or \fBNULL\fP on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_cusec_set.30000644000000000000000000000251614273615402017375 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_cusec_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_cusec_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_cusec_set(Shishi * " handle ", Shishi_asn1 " encapreppart ", uint32_t " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "uint32_t cusec" 12 client microseconds to set in authenticator, 0\-999999. .SH "DESCRIPTION" Set the cusec field in the Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_options_set.30000644000000000000000000000247314273615426016563 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_options_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_options_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_options_set(Shishi * " handle ", Shishi_asn1 " kdcreq ", uint32_t " options ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set etype field in. .IP "uint32_t options" 12 integer with flags to store in KDC\-REQ. .SH "DESCRIPTION" Set options in KDC\-REQ. Note that this reset any already existing flags. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_key_free.30000644000000000000000000000221014273615514014260 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_key_free" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_key_free \- API function .SH SYNOPSIS .B #include .sp .BI "void shisa_key_free(Shisa * " dbh ", Shisa_key * " key ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "Shisa_key * key" 12 Pointer to a Shisa key structure to deallocate. .SH "DESCRIPTION" Deallocates the fields of a Shisa key structure, as well as the structure itself. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_init_server.30000644000000000000000000000272514273615413015211 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_init_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_init_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_init_server(Shishi ** " handle ");" .SH ARGUMENTS .IP "Shishi ** handle" 12 Pointer to a Shishi handle created by this call. .SH "DESCRIPTION" Creates a Shishi library handle, using \fBshishi_server()\fP, and reads the system configuration file. The path to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf. The handle is allocated regardless of return value. The single exception being \fBSHISHI_HANDLE_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_random_to_key.30000644000000000000000000000301614273615374015512 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_random_to_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_random_to_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_random_to_key(Shishi * " handle ", int32_t " keytype ", const char * " rnd ", size_t " rndlen ", Shishi_key * " outkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int32_t keytype" 12 cryptographic encryption type, see Shishi_etype. .IP "const char * rnd" 12 input array with random data. .IP "size_t rndlen" 12 length of input array with random data. .IP "Shishi_key * outkey" 12 allocated key handle that will contain new key. .SH "DESCRIPTION" Derive key from random data for specified key type, and set the type and value in the given key to the computed values. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_sendrecv.30000644000000000000000000000311114273615414016011 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_sendrecv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_sendrecv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_sendrecv(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 * " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 Input variable with a prepared AS\-REQ. .IP "Shishi_asn1 * kdcrep" 12 Output pointer variable returning received AS\-REP. .SH "DESCRIPTION" Sends a request to KDC, and receives the response. The provided AS\-REQ, in \fIkdcreq\fP, sets all data for the request. On reception the reply is decoded as AS\-REP into \fIkdcrep\fP. .SH "RETURN VALUE" Return code is \fBSHISHI_OK\fP on success, \fBSHISHI_KDC_TIMEOUT\fP on timeouts, \fBSHISHI_ASN1_ERROR\fP on translation errors, and \fBSHISHI_GOT_KRBERROR\fP for other corruptions. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_keylen.30000644000000000000000000000214114273615373015476 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_keylen" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_keylen \- API function .SH SYNOPSIS .B #include .sp .BI "size_t shishi_cipher_keylen(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Get key length for cipher. .SH "RETURN VALUE" Return length of key used for the encryption type, as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_cksum.30000644000000000000000000000315214273615365017545 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_cksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_cksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_cksum(Shishi * " handle ", Shishi_asn1 " authenticator ", Shishi_key * " key ", int " keyusage ", char * " data ", size_t " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "Shishi_key * key" 12 key to to use for encryption. .IP "int keyusage" 12 cryptographic key usage value to use in encryption. .IP "char * data" 12 input array with data to calculate checksum on. .IP "size_t datalen" 12 size of input array with data to calculate checksum on. .SH "DESCRIPTION" Calculate checksum for data and store it in the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_forwardable_p.30000644000000000000000000000310214273615477016351 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_forwardable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_forwardable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_forwardable_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is forwardable. The FORWARDABLE flag in a ticket is normally only interpreted by the ticket\-granting service. It can be ignored by application servers. The FORWARDABLE flag has an interpretation similar to that of the PROXIABLE flag, except ticket\-granting tickets may also be issued with different network addresses. This flag is reset by default, but users MAY request that it be set by setting the FORWARDABLE option in the AS request when they request their initial ticket\-granting ticket. .SH "RETURN VALUE" Returns non\-0 iff forwardable flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_file.30000644000000000000000000000227614273615505016353 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_file \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_tkts_default_file(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get filename of default ticket set. .SH "RETURN VALUE" Returns the default ticket set filename used in the library. The string is not a copy, so don't modify or deallocate it. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_read.30000644000000000000000000000251014273615362016520 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * authenticator" 12 output variable with newly allocated authenticator. .SH "DESCRIPTION" Read DER encoded authenticator from file and populate given authenticator variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_randomlen.30000644000000000000000000000226514273615373016175 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_randomlen" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_randomlen \- API function .SH SYNOPSIS .B #include .sp .BI "size_t shishi_cipher_randomlen(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Get length of random data for cipher. .SH "RETURN VALUE" Return length of random used for the encryption type, as defined in the standards, or (size_t)\-1 on error (e.g., unsupported encryption type). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgsrep.30000644000000000000000000000215714273615416014166 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgsrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgsrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tgsrep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new TGS\-REP, populated with some default values. .SH "RETURN VALUE" Returns the TGS\-REP or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_default_systemfile.30000644000000000000000000000255614273615370017373 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_default_systemfile" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_default_systemfile \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_cfg_default_systemfile(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" The system configuration file name is decided at compile time, but is replaced by assigning another file name to the environment variable $SHISHI_CONFIG. This call offers a single interface for determining the file name, to which the library turns for its settings. .SH "RETURN VALUE" Returns file name of present system configuration. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_priv.30000644000000000000000000000247114273615357015344 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_priv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_priv \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_priv(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of KRB\-PRIV and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_key.30000644000000000000000000000227114273615475014336 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_key \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_tkt_key(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Get key used in ticket, by looking first in EncKDCRepPart and then in EncTicketPart. If key is already populated, it is not extracted again. .SH "RETURN VALUE" Returns key extracted from EncKDCRepPart or EncTicketPart. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_etype_tktoptionsdata.30000644000000000000000000000360414273615327017617 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_etype_tktoptionsdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_etype_tktoptionsdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_etype_tktoptionsdata(Shishi * " handle ", Shishi_ap ** " ap ", int32_t " etype ", Shishi_tkt * " tkt ", int " options ", const char * " data ", size_t " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "int32_t etype" 12 encryption type of newly generated random subkey. .IP "Shishi_tkt * tkt" 12 ticket to set in newly created AP. .IP "int options" 12 AP\-REQ options to set in newly created AP. .IP "const char * data" 12 input array with data to checksum in Authenticator. .IP "size_t len" 12 length of input array with data to checksum in Authenticator. .SH "DESCRIPTION" Create a new AP exchange using \fBshishi_ap()\fP, and set the ticket, AP\-REQ apoptions and the Authenticator checksum data using \fBshishi_ap_set_tktoptionsdata()\fP. A random session key is added to the authenticator, using the same keytype as the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_proxy_p.30000644000000000000000000000250514273615500015233 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_proxy_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_proxy_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_proxy_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is proxy ticket. The PROXY flag is set in a ticket by the TGS when it issues a proxy ticket. Application servers MAY check this flag and at their option they MAY require additional authentication from the agent presenting the proxy in order to provide an audit trail. .SH "RETURN VALUE" Returns non\-0 iff proxy flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_clear_padata.30000644000000000000000000000227214273615427016613 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_clear_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_clear_padata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_clear_padata(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to remove PA\-DATA from. .SH "DESCRIPTION" Remove the padata field from KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aes_cts.30000644000000000000000000000403314273615450014274 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aes_cts" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aes_cts \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aes_cts(Shishi * " handle ", int " decryptp ", const char * " key ", size_t " keylen ", const char " iv "[16], char * " ivout "[16], const char * " in ", size_t " inlen ", char ** " out ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int decryptp" 12 0 to indicate encryption, non\-0 to indicate decryption. .IP "const char * key" 12 input character array with key to use. .IP "size_t keylen" 12 length of input character array with key to use. .IP "const char iv[16]" 12 input character array with initialization vector to use, or NULL. .IP "char * ivout[16]" 12 output character array with updated initialization vector, or NULL. .IP "const char * in" 12 input character array of data to encrypt/decrypt. .IP "size_t inlen" 12 length of input character array of data to encrypt/decrypt. .IP "char ** out" 12 newly allocated character array with encrypted/decrypted data. .SH "DESCRIPTION" Encrypt or decrypt data (depending on \fIdecryptp\fP) using AES in CBC\-CTS mode. The length of the key, \fIkeylen\fP, decide if AES 128 or AES 256 should be used. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_save.30000644000000000000000000000230014273615457014653 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " priv ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 priv" 12 PRIV to save. .SH "DESCRIPTION" Save DER encoding of PRIV to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_add_ccache_mem.30000644000000000000000000000327214273615504016600 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_add_ccache_mem" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_add_ccache_mem \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_add_ccache_mem(Shishi * " handle ", const char * " data ", size_t " len ", Shishi_tkts * " tkts ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * data" 12 constant memory buffer with ccache of \fIlen\fP size. .IP "size_t len" 12 size of memory buffer with ccache data. .IP "Shishi_tkts * tkts" 12 allocated key set to store tickets in. .SH "DESCRIPTION" Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. .SH "RETURNS" Returns \fBSHISHI_CCACHE_ERROR\fP if the data does not represent a valid ccache structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_ctime.30000644000000000000000000000251014273615363016707 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_ctime(Shishi * " handle ", Shishi_asn1 " authenticator ", char ** " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator as allocated by \fBshishi_authenticator()\fP. .IP "char ** t" 12 newly allocated zero\-terminated character array with client time. .SH "DESCRIPTION" Extract client time from Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_default.30000644000000000000000000000243614273615461015466 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_default" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_default \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_realm_default(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" Determines name of default realm, i.e., the name of whatever realm the library will use whenever an explicit realm is not stated during a library call. .SH "RETURN VALUE" Returns the default realm in use by the library. Not a copy, so do not modify or deallocate the returned string. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_parse_name.30000644000000000000000000000323514273615454014774 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_parse_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_parse_name \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_parse_name(Shishi * " handle ", const char * " name ", char ** " principal ", char ** " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * name" 12 input principal name string, e.g. imap/mail.gnu.org\\fIGNU\fP.ORG. .IP "char ** principal" 12 newly allocated output string with principal name. .IP "char ** realm" 12 newly allocated output string with realm name. .SH "DESCRIPTION" Split principal name (e.g., "simon\\fIJOSEFSSON\fP.ORG") into two newly allocated strings, the \fIprincipal\fP ("simon"), and the \fIrealm\fP ("JOSEFSSON.ORG"). If there is no realm part in \fIname\fP, \fIrealm\fP is set to NULL. .SH "RETURN VALUE" Returns SHISHI_INVALID_PRINCIPAL_NAME if \fIname\fP is NULL or ends with the escape character "\", and SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_key_set.30000644000000000000000000000214414273615463015321 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_key_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_key_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_safe_key_set(Shishi_safe * " safe ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 structure that holds information about SAFE exchange .IP "Shishi_key * key" 12 key to store in SAFE. .SH "DESCRIPTION" Set the Key in the SAFE exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_print_for_service.30000644000000000000000000000256014273615507017450 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_print_for_service" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_print_for_service \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_print_for_service(Shishi_tkts * " tkts ", FILE * " fh ", const char * " service ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "FILE * fh" 12 file descriptor to print to. .IP "const char * service" 12 service to limit tickets printed to, or NULL. .SH "DESCRIPTION" Print description of tickets for specified service to file descriptor. If service is NULL, all tickets are printed. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error_set_outputtype.30000644000000000000000000000271614273615407017211 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error_set_outputtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error_set_outputtype \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_error_set_outputtype(Shishi * " handle ", int " type ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int type" 12 output type, of enum type \fBShishi_outputtype\fP. .SH "DESCRIPTION" Sets the output type (\fBNULL\fP, \fBstderr\fP or \fBsyslog\fP) used for information and warning messages. Intended values are \fBSHISHI_OUTPUTTYPE_NULL\fP, for no output at all, \fBSHISHI_OUTPUTTYPE_STDERR\fP for output to the console, and \fBSHISHI_OUTPUTTYPE_SYSLOG\fP for syslog messaging. The first value covers everything different from the latter two values. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_tgsreq.30000644000000000000000000000211514273615351015101 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_tgsreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_tgsreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_tgsreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for TGS\-REQ. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_resolv.30000644000000000000000000000271214273615462014172 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_resolv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_resolv \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_dns shishi_resolv(const char * " zone ", uint16_t " querytype ");" .SH ARGUMENTS .IP "const char * zone" 12 Domain name of authentication zone, e.g. "EXAMPLE.ORG" .IP "uint16_t querytype" 12 Type of domain data to query for. .SH "DESCRIPTION" Queries the DNS resolver for data of type \fIquerytype\fP about the domain name \fIzone\fP. Currently, the types \fBSHISHI_DNS_TXT\fP and \fBSHISHI_DNS_SRV\fP are the only supported kinds. After its use, the returned list should be deallocated by a call to \fBshishi_resolv_free()\fP. .SH "RETURN VALUE" Returns a linked list of DNS resource records, or \fBNULL\fP if the query failed. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_save.30000644000000000000000000000231314273615337015004 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 apreq" 12 AP\-REQ to save. .SH "DESCRIPTION" Save DER encoding of AP\-REQ to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_read.30000644000000000000000000000240614273615336014762 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " aprep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * aprep" 12 output variable with newly allocated AP\-REP. .SH "DESCRIPTION" Read DER encoded AP\-REP from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_read.30000644000000000000000000000241514273615416015122 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * kdcrep" 12 output variable with newly allocated KDC\-REP. .SH "DESCRIPTION" Read DER encoded KDC\-REP from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_sendrecv.30000644000000000000000000000326214273615451015311 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_sendrecv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_sendrecv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_sendrecv(Shishi * " handle ", const char * " realm ", const char * " indata ", size_t " inlen ", char ** " outdata ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * realm" 12 string with realm name. .IP "const char * indata" 12 Packet to send to KDC. .IP "size_t inlen" 12 Length of \fIindata\fP. .IP "char ** outdata" 12 Newly allocated string with data returned from KDC. .IP "size_t * outlen" 12 Length of \fIoutdata\fP. .SH "DESCRIPTION" Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname. .SH "RETURNS" \fBSHISHI_OK\fP on success, \fBSHISHI_KDC_TIMEOUT\fP if a timeout was reached, or other errors. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_invalid_p.30000644000000000000000000000315414273615500015501 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_invalid_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_invalid_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_invalid_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is invalid. The INVALID flag indicates that a ticket is invalid. Application servers MUST reject tickets which have this flag set. A postdated ticket will be issued in this form. Invalid tickets MUST be validated by the KDC before use, by presenting them to the KDC in a TGS request with the VALIDATE option specified. The KDC will only validate tickets after their starttime has passed. The validation is required so that postdated tickets which have been stolen before their starttime can be rendered permanently invalid (through a hot\-list mechanism). .SH "RETURN VALUE" Returns non\-0 iff invalid flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_pre_authent_p.30000644000000000000000000000276714273615501016403 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_pre_authent_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_pre_authent_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_pre_authent_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket was pre\-authenticated. The PRE\-AUTHENT and HW\-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket\-granting ticket (in which case the INITIAL flag is clear, but the PRE\-AUTHENT and HW\-AUTHENT flags are carried forward from the ticket\-granting ticket). .SH "RETURN VALUE" Returns non\-0 iff pre\-authent flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_print.30000644000000000000000000000224614273615510015055 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_print(Shishi_tkts * " tkts ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "FILE * fh" 12 file descriptor to print to. .SH "DESCRIPTION" Print description of all tickets to file descriptor. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_subkey.30000644000000000000000000000242014273615361017106 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_authenticator_subkey(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. It adds a random subkey. .SH "RETURN VALUE" Returns the authenticator or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_endtime_set.30000644000000000000000000000252514273615404020063 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_endtime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_endtime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_endtime_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", const char * " endtime ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "const char * endtime" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.endtime to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_clear_authorizationdata.30000644000000000000000000000245214273615365022515 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_clear_authorizationdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_clear_authorizationdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_clear_authorizationdata(Shishi * " handle ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Remove the authorization\-data field from Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_methoddata.30000644000000000000000000000265114273615446016706 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_methoddata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_methoddata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_methoddata(Shishi * " handle ", Shishi_asn1 " krberror ", Shishi_asn1 * " methoddata ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .IP "Shishi_asn1 * methoddata" 12 output ASN.1 METHOD\-DATA. .SH "DESCRIPTION" Extract METHOD\-DATA ASN.1 object from the e\-data field. The e\-data field will only contain a METHOD\-DATA if the krberror error code is \fBSHISHI_KDC_ERR_PREAUTH_REQUIRED\fP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_client.30000644000000000000000000000336014273615422015463 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_client" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_client \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_client(Shishi * " handle ", Shishi_asn1 " kdcreq ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get client name from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Represent client principal name in KDC\-REQ as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_subkey.30000644000000000000000000000250314273615367017726 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_subkey(Shishi * " handle ", Shishi_asn1 " authenticator ", Shishi_key * " subkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "Shishi_key * subkey" 12 subkey to add to authenticator. .SH "DESCRIPTION" Store subkey in the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_parse.30000644000000000000000000000243614273615416015324 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * kdcrep" 12 output variable with newly allocated KDC\-REP. .SH "DESCRIPTION" Read ASCII armored DER encoded KDC\-REP from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_parse.30000644000000000000000000000242714273615336015164 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " aprep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * aprep" 12 output variable with newly allocated AP\-REP. .SH "DESCRIPTION" Read ASCII armored DER encoded AP\-REP from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_from_file.30000644000000000000000000000261114273615457015664 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_from_file(Shishi * " handle ", Shishi_asn1 * " priv ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * priv" 12 output variable with newly allocated PRIV. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read PRIV from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_req.30000644000000000000000000000221714273615342014127 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_req" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_req \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_as_req(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Get ASN.1 AS\-REQ structure from AS exchange. .SH "RETURN VALUE" Returns the generated AS\-REQ packet from the AS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_clientrealm.30000644000000000000000000000322714273615476016050 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_clientrealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_clientrealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_clientrealm(Shishi_tkt * " tkt ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name and realm. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Convert cname and realm fields from AS\-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_copy_crealm.30000644000000000000000000000261714273615414015777 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_copy_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_copy_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_copy_crealm(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_asn1 " encticketpart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP where the field "crealm" is updated. .IP "Shishi_asn1 encticketpart" 12 EncTicketPart providing "crealm" field. .SH "DESCRIPTION" Reads the field "crealm" from the ticket \fIencticketpart\fP and copies the value into the reply \fIkdcrep\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, and ASN.1 failures otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_from_file.30000644000000000000000000000262414273615337016015 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_from_file(Shishi * " handle ", Shishi_asn1 * " apreq ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * apreq" 12 output variable with newly allocated AP\-REQ. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read AP\-REQ from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_set_tktoptionsdata.30000644000000000000000000000305714273615326017265 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_set_tktoptionsdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_set_tktoptionsdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_set_tktoptionsdata(Shishi_ap * " ap ", Shishi_tkt * " tkt ", int " options ", const char * " data ", size_t " len ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in AP. .IP "int options" 12 AP\-REQ options to set in AP. .IP "const char * data" 12 input array with data to checksum in Authenticator. .IP "size_t len" 12 length of input array with data to checksum in Authenticator. .SH "DESCRIPTION" Set the ticket (see \fBshishi_ap_tkt_set()\fP) and set the AP\-REQ apoptions (see \fBshishi_apreq_options_set()\fP) and set the Authenticator checksum data. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_set_tktoptions.30000644000000000000000000000246314273615326016433 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_set_tktoptions" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_set_tktoptions \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_set_tktoptions(Shishi_ap * " ap ", Shishi_tkt * " tkt ", int " options ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in AP. .IP "int options" 12 AP\-REQ options to set in AP. .SH "DESCRIPTION" Set the ticket (see \fBshishi_ap_tkt_set()\fP) and set the AP\-REQ apoptions (see \fBshishi_apreq_options_set()\fP). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_3des.30000644000000000000000000000353614273615450013520 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_3des" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_3des \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_3des(Shishi * " handle ", int " decryptp ", const char " key "[8], const char " iv "[8], char * " ivout "[8], const char * " in ", size_t " inlen ", char ** " out ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int decryptp" 12 0 to indicate encryption, non\-0 to indicate decryption. .IP "const char key[8]" 12 input character array with key to use. .IP "const char iv[8]" 12 input character array with initialization vector to use, or NULL. .IP "char * ivout[8]" 12 output character array with updated initialization vector, or NULL. .IP "const char * in" 12 input character array of data to encrypt/decrypt. .IP "size_t inlen" 12 length of input character array of data to encrypt/decrypt. .IP "char ** out" 12 newly allocated character array with encrypted/decrypted data. .SH "DESCRIPTION" Encrypt or decrypt data (depending on \fIdecryptp\fP) using 3DES in CBC mode. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_enumerate_principals.30000644000000000000000000000340014273615513016701 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_enumerate_principals" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_enumerate_principals \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_enumerate_principals(Shisa * " dbh ", const char * " realm ", char *** " principals ", size_t * " nprincipals ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of realm, as null\-terminated UTF\-8 string. .IP "char *** principals" 12 Returned pointer to newly allocated array of just allocated null\-terminated UTF\-8 strings with principal names. .IP "size_t * nprincipals" 12 Pointer to an integer updated with the number of just allocated and returned principal names. .SH "DESCRIPTION" Extracts a list of all principal names in backend belonging to the realm \fIrealm\fP, as null\-terminated UTF\-8 strings. The caller is responsible for deallocating all strings and the array *\fIprincipals\fP. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP on success, \fBSHISA_NO_REALM\fP if the specified realm does not exist, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_from_random.30000644000000000000000000000303614273615433016031 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_from_random" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_from_random \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_from_random(Shishi * " handle ", int32_t " type ", const char * " rnd ", size_t " rndlen ", Shishi_key ** " outkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "const char * rnd" 12 random data. .IP "size_t rndlen" 12 length of random data. .IP "Shishi_key ** outkey" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure, and set the key type and key value using \fBshishi_random_to_key()\fP. KEY contains a newly allocated structure only if this function is successful. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_process_keyusage.30000644000000000000000000000314614273615332017560 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_process_keyusage" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_process_keyusage \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_process_keyusage(Shishi_ap * " ap ", Shishi_key * " key ", int32_t " keyusage ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_key * key" 12 cryptographic key used to decrypt ticket in AP\-REQ. .IP "int32_t keyusage" 12 key usage to use during decryption, for normal AP\-REQ's this is normally SHISHI_KEYUSAGE_APREQ_AUTHENTICATOR, for AP\-REQ's part of TGS\-REQ's, this is normally SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR. .SH "DESCRIPTION" Decrypt ticket in AP\-REQ using supplied key and decrypt Authenticator in AP\-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_done.30000644000000000000000000000217114273615326014263 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_done(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Deallocate resources associated with AP exchange. This should be called by the application when it no longer need to utilize the AP exchange handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_renew_p.30000644000000000000000000000322714273615426015652 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_renew_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_renew_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_renew_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option renew flag is set. This option is used only by the ticket\-granting service. The RENEW option indicates that the present request is for a renewal. The ticket provided is encrypted in the secret key for the server on which it is valid. This option will only be honored if the ticket to be renewed has its RENEWABLE flag set and if the time in its renew\-till field has not passed. The ticket to be renewed is passed in the padata field as part of the authentication header. .SH "RETURN VALUE" Returns non\-0 iff renew flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_for_localservicerealm.30000644000000000000000000000307314273615412021147 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_for_localservicerealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_for_localservicerealm \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_hostkeys_for_localservicerealm(Shishi * " handle ", const char * " service ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * service" 12 service to get key for. .IP "const char * realm" 12 realm of server to get key for, or NULL for default realm. .SH "DESCRIPTION" Get host key for \fIservice\fP on current host in \fIrealm\fP. .SH "RETURN VALUE" Returns the key for the server "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see \fBshishi_hostkeys_default_file()\fP), or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_set_ticket.30000644000000000000000000000241414273615420016337 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_set_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_set_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_set_ticket(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_asn1 " ticket ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to add ticket field to. .IP "Shishi_asn1 ticket" 12 input ticket to copy into KDC\-REP ticket field. .SH "DESCRIPTION" Copy ticket into KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_authtime_set.30000644000000000000000000000253314273615404020255 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_authtime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_authtime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_authtime_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", const char * " authtime ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "const char * authtime" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.authtime to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_forwarded_p.30000644000000000000000000000313014273615424016476 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_forwarded_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_forwarded_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_forwarded_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option forwarded flag is set. The FORWARDED option is only specified in a request to the ticket\-granting server and will only be honored if the ticket\-granting ticket in the request has its FORWARDABLE bit set. This option indicates that this is a request for forwarding. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. .SH "RETURN VALUE" Returns non\-0 iff forwarded flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_check_crealm.30000644000000000000000000000306114273615414015736 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_check_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_check_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_check_crealm(Shishi * " handle ", Shishi_asn1 " asreq ", Shishi_asn1 " asrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 asreq" 12 Request of type AS\-REQ. .IP "Shishi_asn1 asrep" 12 Reply structure of type AS\-REP. .SH "DESCRIPTION" Verifies that the fields \fIasreq\fP.req\-body.realm and \fIasrep\fP.crealm contain identical realm names. This is one of the steps that has to be performed when processing an exchange of AS\-REQ and AS\-REP; see \fBshishi_kdc_process()\fP for more details. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, \fBSHISHI_REALM_MISMATCH\fP whenever the realm names differ, and an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_add_padata_preauth.30000644000000000000000000000245614273615430020003 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_add_padata_preauth" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_add_padata_preauth \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_add_padata_preauth(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to add pre\-authentication data to. .IP "Shishi_key * key" 12 Key used to encrypt pre\-auth data. .SH "DESCRIPTION" Add pre\-authentication data to KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_supported_p.30000644000000000000000000000210714273615372016554 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_supported_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_supported_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cipher_supported_p(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Find out if cipher is supported. .SH "RETURN VALUE" Return 0 iff cipher is unsupported. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_krberror.30000644000000000000000000000224314273615344015171 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_krberror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_krberror \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_as_krberror(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Get ASN.1 KRB\-ERROR structure from AS exchange. .SH "RETURN VALUE" Returns the received KRB\-ERROR packet from the AS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_set_realmserver.30000644000000000000000000000245314273615472016742 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_set_realmserver" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_set_realmserver \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_set_realmserver(Shishi_tgs * " tgs ", const char * " realm ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "const char * realm" 12 indicates the realm to acquire ticket for. .IP "const char * server" 12 indicates the server to acquire ticket for. .SH "DESCRIPTION" Set the realm and server in the TGS\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_etype_info2.30000644000000000000000000000214014273615350016014 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_etype_info2" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_etype_info2 \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_etype_info2(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for ETYPE\-INFO2. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_nosubkey.30000644000000000000000000000231714273615326015177 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_nosubkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_nosubkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_nosubkey(Shishi * " handle ", Shishi_ap ** " ap ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .SH "DESCRIPTION" Create a new AP exchange without subkey in authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_set_sname.30000644000000000000000000000264414273615423016170 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_set_sname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_set_sname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_set_sname(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_name_type " name_type ", const char * " sname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set server name field in. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * sname[]" 12 input array with principal name. .SH "DESCRIPTION" Set the server name field in the KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get_tgt.30000644000000000000000000000324214273615511015354 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get_tgt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get_tgt \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get_tgt(Shishi_tkts * " tkts ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_tkts_hint * hint" 12 structure with characteristics of ticket to begot. .SH "DESCRIPTION" Get a ticket granting ticket (TGT) suitable for acquiring ticket matching the hint. I.e., get a TGT for the server realm in the hint structure (hint\->serverrealm), or the default realm if the serverrealm field is NULL. Can result in AS exchange. Currently this function do not implement cross realm logic. This function is used by \fBshishi_tkts_get()\fP, which is probably what you really want to use unless you have special needs. .SH "RETURN VALUE" Returns a ticket granting ticket if successful, or NULL if this function is unable to acquire on. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_add_enc_part.30000644000000000000000000000260414273615473016630 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_add_enc_part" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_add_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_add_enc_part(Shishi * " handle ", Shishi_asn1 " ticket ", Shishi_key * " key ", Shishi_asn1 " encticketpart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 Ticket to add enc\-part field to. .IP "Shishi_key * key" 12 key used to encrypt enc\-part. .IP "Shishi_asn1 encticketpart" 12 EncTicketPart to add. .SH "DESCRIPTION" Encrypts DER encoded EncTicketPart using key and stores it in the Ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_name.30000644000000000000000000000217014273615372015130 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_name \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_cipher_name(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Read humanly readable string for cipher. .SH "RETURN VALUE" Return name of encryption type, e.g. "des3\-cbc\-sha1\-kd", as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_build.30000644000000000000000000000245414273615465014763 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_build(Shishi_safe * " safe ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "Shishi_key * key" 12 key for session, used to compute checksum. .SH "DESCRIPTION" Build checksum and set it in KRB\-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_encticketpart.30000644000000000000000000000213714273615475016407 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_encticketpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_encticketpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tkt_encticketpart(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Get ASN.1 EncTicketPart structure from ticket. .SH "RETURN VALUE" Returns EncTicketPart information. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_type.30000644000000000000000000000211414273615431014501 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_type" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_type \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_type(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get key type. .SH "RETURN VALUE" Returns the type of key as an integer as described in the standard. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_kdcrep.30000644000000000000000000000207614273615474015020 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_kdcrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_kdcrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tkt_kdcrep(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Get ASN.1 KDCRep structure from ticket. .SH "RETURN VALUE" Returns KDC\-REP information. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_key.30000644000000000000000000000223514273615333014125 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_key \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_ap_key(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Extract the application key from AP. If subkeys are used, it is taken from the Authenticator, otherwise the session key is used. .SH "RETURN VALUE" Return application key from AP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_priv_set.30000644000000000000000000000220414273615456015552 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_priv_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_priv_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_priv_priv_set(Shishi_priv * " priv ", Shishi_asn1 " asn1priv ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .IP "Shishi_asn1 asn1priv" 12 KRB\-PRIV to store in PRIV exchange. .SH "DESCRIPTION" Set the KRB\-PRIV in the PRIV exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_read.30000644000000000000000000000243314273615440015477 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * krberror" 12 output variable with newly allocated KRB\-ERROR. .SH "DESCRIPTION" Read DER encoded KRB\-ERROR from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_set_enc_part.30000644000000000000000000000334214273615460016364 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_set_enc_part" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_set_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_set_enc_part(Shishi * " handle ", Shishi_asn1 " priv ", int32_t " etype ", const char * " encpart ", size_t " encpartlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "int32_t etype" 12 input encryption type to store in PRIV. .IP "const char * encpart" 12 input encrypted data to store in PRIV. .IP "size_t encpartlen" 12 size of input encrypted data to store in PRIV. .SH "DESCRIPTION" Store encrypted data in PRIV. The encrypted data is usually created by calling \fBshishi_encrypt()\fP on some application specific data using the key from the ticket that is being used. To save time, you may want to use \fBshishi_priv_build()\fP instead, which encryptes the data and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_for_localservice.30000644000000000000000000000267114273615412020131 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_for_localservice" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_for_localservice \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_hostkeys_for_localservice(Shishi * " handle ", const char * " service ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * service" 12 service to get key for. .SH "DESCRIPTION" Get host key for \fIservice\fP on current host in default realm. .SH "RETURN VALUE" Returns the key for the server "SERVICE/HOSTNAME" (where HOSTNAME is the current system's hostname), read from the default host keys file (see \fBshishi_hostkeys_default_file()\fP), or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hmac_sha1.30000644000000000000000000000313214273615450014476 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hmac_sha1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hmac_sha1 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_hmac_sha1(Shishi * " handle ", const char * " key ", size_t " keylen ", const char * " in ", size_t " inlen ", char * " outhash "[20]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * key" 12 input character array with key to use. .IP "size_t keylen" 12 length of input character array with key to use. .IP "const char * in" 12 input character array of data to hash. .IP "size_t inlen" 12 length of input character array of data to hash. .IP "char * outhash[20]" 12 newly allocated character array with keyed hash of data. .SH "DESCRIPTION" Compute keyed checksum of data using HMAC\-SHA1. The \fIouthash\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_set_cname.30000644000000000000000000000265014273615422016144 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_set_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_set_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_set_cname(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_name_type " name_type ", const char * " principal ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set client name field in. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * principal" 12 input array with principal name. .SH "DESCRIPTION" Set the client name field in the KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509ca_default_file.30000644000000000000000000000245714273615452016401 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509ca_default_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509ca_default_file \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_x509ca_default_file(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get filename for default X.509 CA certificate. .SH "RETURN VALUE" Returns the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is not a copy, so don't modify or deallocate it. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hmac_md5.30000644000000000000000000000312614273615447014340 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hmac_md5" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hmac_md5 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_hmac_md5(Shishi * " handle ", const char * " key ", size_t " keylen ", const char * " in ", size_t " inlen ", char * " outhash "[16]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * key" 12 input character array with key to use. .IP "size_t keylen" 12 length of input character array with key to use. .IP "const char * in" 12 input character array of data to hash. .IP "size_t inlen" 12 length of input character array of data to hash. .IP "char * outhash[16]" 12 newly allocated character array with keyed hash of data. .SH "DESCRIPTION" Compute keyed checksum of data using HMAC\-MD5. The \fIouthash\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_from_file.30000644000000000000000000000262414273615336016013 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_from_file(Shishi * " handle ", Shishi_asn1 * " aprep ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * aprep" 12 output variable with newly allocated AP\-REP. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read AP\-REP from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_generalize_ctime.30000644000000000000000000000236014273615411016157 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_generalize_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_generalize_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_generalize_ctime(Shishi * " handle ", const char * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * t" 12 KerberosTime string to convert. .SH "DESCRIPTION" Converts a KerberosTime formatted string in \fIt\fP to integral C time representation. .SH "RETURN VALUE" Returns the C time corresponding to the input argument. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_done.30000644000000000000000000000221514273615455014645 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_priv_done(Shishi_priv * " priv ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .SH "DESCRIPTION" Deallocate resources associated with PRIV exchange. This should be called by the application when it no longer need to utilize the PRIV exchange handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_rep.30000644000000000000000000000220314273615467014323 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_rep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_rep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tgs_rep(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get TGS\-REP from TGS exchange. .SH "RETURN VALUE" Returns the received TGS\-REP from the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_init.30000644000000000000000000000314514273615413013620 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_init" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_init \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_init(Shishi ** " handle ");" .SH ARGUMENTS .IP "Shishi ** handle" 12 Pointer to a Shishi handle created by this call. .SH "DESCRIPTION" Creates a Shishi library handle, using \fBshishi()\fP, and reads the system configuration file, user configuration file and user tickets from their default locations. The paths to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf. The user configuration file is $HOME/.shishi/config, and the user ticket file is $HOME/.shishi/ticket. The handle is allocated regardless of return value. The single exception being \fBSHISHI_HANDLE_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions could arise while reading files. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_enckdcreppart.30000644000000000000000000000214214273615474016367 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_enckdcreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_enckdcreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tkt_enckdcreppart(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Get ASN.1 EncKDCRepPart structure from ticket. .SH "RETURN VALUE" Returns auxiliary ticket information. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_save.30000644000000000000000000000232414273615416015144 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to save. .SH "DESCRIPTION" Print DER encoding of KDC\-REP to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_renewable_p.30000644000000000000000000000310314273615425016466 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_renewable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_renewable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_renewable_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option renewable flag is set. The RENEWABLE option indicates that the ticket to be issued is to have its RENEWABLE flag set. It may only be set on the initial request, or when the ticket\-granting ticket on which the request is based is also renewable. If this option is requested, then the rtime field in the request contains the desired absolute expiration time for the ticket. .SH "RETURN VALUE" Returns non\-0 iff renewable flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_renewable_p.30000644000000000000000000000253514273615500016021 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_renewable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_renewable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_renewable_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is renewable. The RENEWABLE flag in a ticket is normally only interpreted by the ticket\-granting service (discussed below in section 3.3). It can usually be ignored by application servers. However, some particularly careful application servers MAY disallow renewable tickets. .SH "RETURN VALUE" Returns non\-0 iff renewable flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep.30000644000000000000000000000217614273615333014127 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_ap_rep(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get ASN.1 AP\-REP structure from AP exchange. .SH "RETURN VALUE" Returns the AP\-REP from the AP exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_string_to_key.30000644000000000000000000000373514273615374015550 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_string_to_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_string_to_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_string_to_key(Shishi * " handle ", int32_t " keytype ", const char * " password ", size_t " passwordlen ", const char * " salt ", size_t " saltlen ", const char * " parameter ", Shishi_key * " outkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int32_t keytype" 12 cryptographic encryption type, see Shishi_etype. .IP "const char * password" 12 input array with password. .IP "size_t passwordlen" 12 length of input array with password. .IP "const char * salt" 12 input array with salt. .IP "size_t saltlen" 12 length of input array with salt. .IP "const char * parameter" 12 input array with opaque encryption type specific information. .IP "Shishi_key * outkey" 12 allocated key handle that will contain new key. .SH "DESCRIPTION" Derive key from a string (password) and salt (commonly concatenation of realm and principal) for specified key type, and set the type and value in the given key to the computed values. The parameter value is specific for each keytype, and can be set if the parameter information is not available. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_sname_set.30000644000000000000000000000262414273615473016205 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_sname_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_sname_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_sname_set(Shishi * " handle ", Shishi_asn1 " ticket ", Shishi_name_type " name_type ", char * " sname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 Ticket variable to set server name field in. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "char * sname[]" 12 input array with principal name. .SH "DESCRIPTION" Set the server name field in the Ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_for_server_dns.30000644000000000000000000000445614273615461017066 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_for_server_dns" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_for_server_dns \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_realm_for_server_dns(Shishi * " handle ", char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "char * server" 12 Hostname to find realm for. .SH "DESCRIPTION" Finds the realm for a host \fIserver\fP using DNS lookup, as is prescribed in "draft\-ietf\-krb\-wg\-krb\-dns\-locate\-03.txt". Since DNS lookup can be spoofed, relying on the realm information may result in a redirection attack. In a single\-realm scenario, this only achieves a denial of service, but with trust across multiple realms the attack may redirect you to a compromised realm. For this reason, Shishi prints a warning, suggesting that the user should instead add a proper 'server\-realm' configuration token. To illustrate the DNS information used, here is an extract from a zone file for the domain ASDF.COM: _kerberos.asdf.com. IN TXT "ASDF.COM" _kerberos.mrkserver.asdf.com. IN TXT "MARKETING.ASDF.COM" _kerberos.salesserver.asdf.com. IN TXT "SALES.ASDF.COM" Let us suppose that in this case, a client wishes to use a service on the host "foo.asdf.com". It would first query for _kerberos.foo.asdf.com. IN TXT Finding no match, it would then query for _kerberos.asdf.com. IN TXT With the resource records stated above, the latter query returns a positive answer. .SH "RETURN VALUE" Returns realm for the indicated host, or \fBNULL\fP if no relevant TXT record could be found. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_cfg.30000644000000000000000000000277114273615512013240 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_cfg" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_cfg \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_cfg(Shisa * " dbh ", const char * " option ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * option" 12 String with options to prime the Shisa library. .SH "DESCRIPTION" Configures the Shisa library from the specification \fIoption\fP. This call expects a string declaration of the form "db=VALUE", or "db VALUE". Here VALUE is the same declaration as used by \fBshisa_cfg_db()\fP, i.e., of the form "TYPE[ LOCATION[ PARAMETER]]". The prefix "db", mandatory in \fIoption\fP, makes \fBshisa_cfg()\fP suited to a syntax with key\-value pairs also in PARAMETER. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if \fIoption\fP is valid. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_krberror.30000644000000000000000000000212514273615353015427 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_krberror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_krberror \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_krberror(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for KRB\-ERROR. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_krberror.30000644000000000000000000000250614273615357016213 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_krberror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_krberror \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_krberror(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of KRB\-ERROR and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_blocksize.30000644000000000000000000000213314273615373016175 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_blocksize" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_blocksize \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cipher_blocksize(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Get block size for cipher. .SH "RETURN VALUE" Return block size for encryption type, as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_read.30000644000000000000000000000226114273615507014637 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_read(Shishi_tkts * " tkts ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "FILE * fh" 12 file descriptor to read from. .SH "DESCRIPTION" Read tickets from file descriptor and add them to the ticket set. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_check_cname.30000644000000000000000000000303314273615415015556 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_check_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_check_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_check_cname(Shishi * " handle ", Shishi_asn1 " asreq ", Shishi_asn1 " asrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 asreq" 12 Request of type AS\-REQ. .IP "Shishi_asn1 asrep" 12 Reply structure of type AS\-REP. .SH "DESCRIPTION" Verifies that the fields \fIasreq\fP.req\-body.cname and \fIasrep\fP.cname contain identical names. This is one of the steps that has to be performed when processing an exchange of AS\-REQ and AS\-REP; see \fBshishi_kdc_process()\fP for more details. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, \fBSHISHI_CNAME_MISMATCH\fP if the names differ, and an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_encprivpart.30000644000000000000000000000226614273615456016264 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_encprivpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_encprivpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_priv_encprivpart(Shishi_priv * " priv ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .SH "DESCRIPTION" Get ASN.1 EncPrivPart structure from PRIV exchange. .SH "RETURN VALUE" Returns the ASN.1 encprivpart in the PRIV exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_from_keytab_file.30000644000000000000000000000337314273615437017222 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_from_keytab_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_from_keytab_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_from_keytab_file(Shishi * " handle ", const char * " filename ", Shishi_keys ** " outkeys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 name of file to read. .IP "Shishi_keys ** outkeys" 12 pointer to key set that will be allocated and populated, must be deallocated by caller on succes. .SH "DESCRIPTION" Create a new key set populated with keys from a MIT keytab data structure read from a file. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" Returns \fBSHISHI_IO_ERROR\fP if the file cannot be read, \fBSHISHI_KEYTAB_ERROR\fP if the data cannot be parsed as a valid keytab structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_encasreppart.30000644000000000000000000000252414273615356017051 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_encasreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_encasreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_encasreppart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncASRepPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_realm.30000644000000000000000000000331714273615423015310 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_realm(Shishi * " handle ", Shishi_asn1 " kdcreq ", char ** " realm ", size_t * " realmlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get client name from. .IP "char ** realm" 12 pointer to newly allocated zero terminated string containing realm. May be \fBNULL\fP (to only populate \fIrealmlen\fP). .IP "size_t * realmlen" 12 pointer to length of \fIrealm\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIrealmlen\fP). .SH "DESCRIPTION" Get realm field in KDC\-REQ as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIrealmlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_done.30000644000000000000000000000201714273615433014451 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_done(Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 pointer to structure that holds key information. .SH "DESCRIPTION" Deallocates key information structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep.30000644000000000000000000000216014273615335013763 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_aprep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new AP\-REP, populated with some default values. .SH "RETURN VALUE" Returns the authenticator or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_errorcode.30000644000000000000000000000243014273615445016552 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_errorcode" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_errorcode \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_errorcode(Shishi * " handle ", Shishi_asn1 " krberror ", int32_t * " errorcode ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .IP "int32_t * errorcode" 12 output integer KRB\-ERROR error code. .SH "DESCRIPTION" Extract error code from KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_set_cname.30000644000000000000000000000274214273615362017552 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_set_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_set_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_set_cname(Shishi * " handle ", Shishi_asn1 " authenticator ", Shishi_name_type " name_type ", const char * " cname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * cname[]" 12 input array with principal name. .SH "DESCRIPTION" Set principal field in authenticator to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_cfg_from_file.30000644000000000000000000000241714273615512015257 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_cfg_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_cfg_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_cfg_from_file(Shisa * " dbh ", const char * " cfg ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * cfg" 12 File name where to read configuration. .SH "DESCRIPTION" Configures the Shisa library using a configuration file located at \fIcfg\fP. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful. Typically returns \fBSHISA_CFG_NO_FILE\fP in response to a misnamed file. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_safe_set.30000644000000000000000000000220414273615463015444 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_safe_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_safe_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_safe_safe_set(Shishi_safe * " safe ", Shishi_asn1 " asn1safe ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 structure that holds information about SAFE exchange .IP "Shishi_asn1 asn1safe" 12 KRB\-SAFE to store in SAFE exchange. .SH "DESCRIPTION" Set the KRB\-SAFE in the SAFE exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_etext.30000644000000000000000000000247514273615445016603 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_etext" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_etext \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_etext(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " etext ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * etext" 12 input array with error text to set. .SH "DESCRIPTION" Set error text (e\-text) field in KRB\-ERROR to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509cert_default_file_guess.30000644000000000000000000000241314273615452020151 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509cert_default_file_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509cert_default_file_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_x509cert_default_file_guess(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Guesses the default X.509 client certificate filename; it is $HOME/.shishi/client.certs. .SH "RETURN VALUE" Returns default X.509 client certificate filename as a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_cksum.30000644000000000000000000000302414273615465015000 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_cksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_cksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_cksum(Shishi * " handle ", Shishi_asn1 " safe ", int32_t * " cksumtype ", char ** " cksum ", size_t * " cksumlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "int32_t * cksumtype" 12 output checksum type. .IP "char ** cksum" 12 output array with newly allocated checksum data from SAFE. .IP "size_t * cksumlen" 12 output size of output checksum data buffer. .SH "DESCRIPTION" Read checksum value from KRB\-SAFE. \fIcksum\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_to_file.30000644000000000000000000000270514273615400017037 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_to_file(Shishi * " handle ", Shishi_asn1 " encapreppart ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write EncAPRepPart to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_copy_nonce.30000644000000000000000000000255214273615415015635 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_copy_nonce" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_copy_nonce \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_copy_nonce(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ providing "nonce" field. .IP "Shishi_asn1 enckdcreppart" 12 EncKDCRepPart where "nonce" field is updated. .SH "DESCRIPTION" Sets the field "nonce" in \fIenckdcreppart\fP to a value retreived from the corresponding field in \fIkdcreq\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_done.30000644000000000000000000000221514273615462014601 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_safe_done(Shishi_safe * " safe ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 structure that holds information about SAFE exchange .SH "DESCRIPTION" Deallocate resources associated with SAFE exchange. This should be called by the application when it no longer need to utilize the SAFE exchange handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_nonce_set.30000644000000000000000000000242314273615422016161 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_nonce_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_nonce_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_nonce_set(Shishi * " handle ", Shishi_asn1 " kdcreq ", uint32_t " nonce ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set client name field in. .IP "uint32_t nonce" 12 integer nonce to store in KDC\-REQ. .SH "DESCRIPTION" Store nonce number field in KDC\-REQ. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_get_ticket.30000644000000000000000000000241214273615342016164 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_get_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_get_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_get_ticket(Shishi * " handle ", Shishi_asn1 " apreq ", Shishi_asn1 * " ticket ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ variable to get ticket from. .IP "Shishi_asn1 * ticket" 12 output variable to hold extracted ticket. .SH "DESCRIPTION" Extract ticket from AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_krbsafe.30000644000000000000000000000250214273615357015774 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_krbsafe" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_krbsafe \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_krbsafe(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of KRB\-SAFE and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt.30000644000000000000000000000446614273615377014347 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_valid_now_p.30000644000000000000000000000213514273615503016036 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_valid_now_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_valid_now_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_valid_now_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is valid now. .SH "RETURN VALUE" Returns 0 iff ticket is invalid (expired or not yet valid). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_asreq.30000644000000000000000000000247214273615355015476 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_asreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_asreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_asreq(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of AS\-REQ and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_tkt_set.30000644000000000000000000000214014273615471015205 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_tkt_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_tkt_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tgs_tkt_set(Shishi_tgs * " tgs ", Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "Shishi_tkt * tkt" 12 ticket to store in TGS. .SH "DESCRIPTION" Set the Ticket in the TGS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_message.30000644000000000000000000000257114273615447016222 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_message" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_message \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_krberror_message(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .SH "DESCRIPTION" Extract error code (see \fBshishi_krberror_errorcode_fast()\fP) and return error message (see \fBshishi_krberror_errorcode_message()\fP). .SH "RETURN VALUE" Return a string describing error code. This function will always return a string even if the error code isn't known. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_crealm.30000644000000000000000000000256214273615441016033 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_crealm(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " realm ", size_t * " realmlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "char ** realm" 12 output array with newly allocated name of realm in KRB\-ERROR. .IP "size_t * realmlen" 12 size of output array. .SH "DESCRIPTION" Extract client realm from KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_to_file.30000644000000000000000000000271414273615361017233 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_to_file(Shishi * " handle ", Shishi_asn1 " authenticator ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write Authenticator to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_get_subkey.30000644000000000000000000000261414273615366017757 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_get_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_get_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_get_subkey(Shishi * " handle ", Shishi_asn1 " authenticator ", Shishi_key ** " subkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "Shishi_key ** subkey" 12 output newly allocated subkey from authenticator. .SH "DESCRIPTION" Read subkey value from authenticator. .SH "RETURN VALUE" Returns SHISHI_OK if successful or SHISHI_ASN1_NO_ELEMENT if subkey is not present. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_errorcode_message.30000644000000000000000000000245614273615446020267 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_errorcode_message" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_errorcode_message \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_krberror_errorcode_message(Shishi * " handle ", int " errorcode ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int errorcode" 12 integer KRB\-ERROR error code. .SH "DESCRIPTION" Get human readable string describing KRB\-ERROR code. .SH "RETURN VALUE" Return a string describing error code. This function will always return a string even if the error code isn't known. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_key_remove.30000644000000000000000000000356414273615514014651 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_key_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_key_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_key_remove(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_key * " key ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of the principal whose key is to be removed. .IP "const Shisa_key * key" 12 Pointer to a Shisa key structure with hints on matching criteria for the key to select. .SH "DESCRIPTION" Removes from the Shisa database a key, matching the hints in \fIkey\fP, for the user PRINCIPAL@REALM. Not all elements of \fIkey\fP need to be filled in, only those relevant to locate the key uniquely. For example, if you want to remove the only key of etype 3, i.e., DES\-CBC\-MD5, then set the field \fIkey\fP\->etype to 3, and all other fields to zero. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP on success, \fBSHISA_NO_KEY\fP if no key could be located, \fBSHISA_MULTIPLE_KEY_MATCH\fP if more than one key matched the given criteria, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_enckdcreppart.30000644000000000000000000000214714273615352016427 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_enckdcreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_enckdcreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_enckdcreppart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for EncKDCRepPart. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator.30000644000000000000000000000225014273615331016202 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_ap_authenticator(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get ASN.1 Authenticator structure from AP exchange. .SH "RETURN VALUE" Returns the Authenticator from the AP exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_parse.30000644000000000000000000000243614273615421015321 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * kdcreq" 12 output variable with newly allocated KDC\-REQ. .SH "DESCRIPTION" Read ASCII armored DER encoded KDC\-REQ from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_check_nonce.30000644000000000000000000000320114273615415015730 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_check_nonce" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_check_nonce \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_check_nonce(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 Request of type KDC\-REQ. .IP "Shishi_asn1 enckdcreppart" 12 Encrypted KDC\-REP part. .SH "DESCRIPTION" Verifies that \fIkdcreq\fP.req\-body.nonce and \fIenckdcreppart\fP.nonce contain matching values. This is one of the steps that has to be performed when processing an exchange of KDC\-REQ and KDC\-REP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, \fBSHISHI_NONCE_MISMATCH\fP whenever the nonces are of differing lengths (usually a sign that a buggy server truncates the nonce to 4 bytes) and the same code if the nonce values differ, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asreq_clientrealm.30000644000000000000000000000342514273615422016350 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asreq_clientrealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asreq_clientrealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asreq_clientrealm(Shishi * " handle ", Shishi_asn1 " asreq ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 asreq" 12 AS\-REQ variable to get client name and realm from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name and realm. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Convert cname and realm fields from AS\-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgsreq.30000644000000000000000000000215714273615421014163 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgsreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgsreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tgsreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new TGS\-REQ, populated with some default values. .SH "RETURN VALUE" Returns the TGS\-REQ or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_default_guess.30000644000000000000000000000230614273615453017552 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_default_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_default_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_principal_default_guess();" .SH "DESCRIPTION" Guesses the principal name for the user, looking at environment variables SHISHI_USER, USER and LOGNAME, or if that fails, returns the string "user". .SH "RETURN VALUE" Returns guessed default principal for user as a string that has to be deallocated by the caller with \fBfree()\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_get_padata_tgs.30000644000000000000000000000274714273615427017170 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_get_padata_tgs" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_get_padata_tgs \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_get_padata_tgs(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 * " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to get PA\-TGS\-REQ from. .IP "Shishi_asn1 * apreq" 12 Output variable with newly allocated AP\-REQ. .SH "DESCRIPTION" Extract TGS pre\-authentication data from KDC\-REQ. The data is an AP\-REQ that authenticates the request. This function call \fBshishi_kdcreq_get_padata()\fP with a SHISHI_PA_TGS_REQ padatatype and DER decode the result (if any). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_realm_set.30000644000000000000000000000240014273615472016171 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_realm_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_realm_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_realm_set(Shishi * " handle ", Shishi_asn1 " ticket ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 input variable with ticket info. .IP "const char * realm" 12 input array with name of realm. .SH "DESCRIPTION" Set the realm field in the Ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509key_default_file_set.30000644000000000000000000000265614273615453017463 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509key_default_file_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509key_default_file_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_x509key_default_file_set(Shishi * " handle ", const char * " x509keyfile ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * x509keyfile" 12 string with new default x509 client key file name, or NULL to reset to default. .SH "DESCRIPTION" Set the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_value.30000644000000000000000000000217514273615431014643 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_value" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_value \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_key_value(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get the raw key bytes. .SH "RETURN VALUE" Returns the key value as a pointer which is valid throughout the lifetime of the key structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_keytype_p.30000644000000000000000000000235514273615502015551 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_keytype_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_keytype_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_keytype_p(Shishi_tkt * " tkt ", int32_t " etype ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "int32_t etype" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Determine if key in ticket (really EncKDCRepPart) is of specified key type (really encryption type). .SH "RETURN VALUE" Returns non\-0 iff key in ticket is of specified encryption type. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_cfg_default_systemfile.30000644000000000000000000000220714273615512017202 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_cfg_default_systemfile" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_cfg_default_systemfile \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shisa_cfg_default_systemfile(Shisa * " dbh ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .SH "DESCRIPTION" Fetches information on the installed configuration. .SH "RETURN VALUE" Returns file name of the active system configuration. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_stime_set.30000644000000000000000000000245014273615444016563 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_stime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_stime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_stime_set(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * t" 12 string with generalized time value to store in Krberror. .SH "DESCRIPTION" Store server time in Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_der_set.30000644000000000000000000000245014273615333015627 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_der_set(Shishi_ap * " ap ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char * der" 12 input array with DER encoded AP\-REP. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REP. .SH "DESCRIPTION" DER decode AP\-REP and set it AP exchange. If decoding fails, the AP\-REP in the AP exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_build.30000644000000000000000000000245014273615460015014 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_build(Shishi_priv * " priv ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "Shishi_key * key" 12 key for session, used to encrypt data. .SH "DESCRIPTION" Build checksum and set it in KRB\-PRIV. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_confoundersize.30000644000000000000000000000232014273615373017243 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_confoundersize" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_confoundersize \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cipher_confoundersize(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 encryption type, see Shishi_etype. .SH "DESCRIPTION" Get length of confounder for cipher. .SH "RETURN VALUE" Returns the size of the confounder (random data) for encryption type, as defined in the standards, or (size_t)\-1 on error (e.g., unsupported encryption type). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_save.30000644000000000000000000000237014273615400016352 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " encapreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart to save. .SH "DESCRIPTION" Save DER encoding of EncAPRepPart to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_ap.30000644000000000000000000000221314273615466014135 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_ap" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_ap \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_ap * shishi_tgs_ap(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get the AP from TGS exchange. .SH "RETURN VALUE" Returns the AP exchange (part of TGS\-REQ) from the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_options_remove.30000644000000000000000000000254214273615341017115 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_options_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_options_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_options_remove(Shishi * " handle ", Shishi_asn1 " apreq ", uint32_t " option ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ as allocated by \fBshishi_apreq()\fP. .IP "uint32_t option" 12 Options to remove from AP\-REQ. .SH "DESCRIPTION" Remove the AP\-Options from AP\-REQ. Options not set in input parameter \fIoption\fP are preserved in the AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_encticketpart.30000644000000000000000000000253014273615355017216 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_encticketpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_encticketpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_encticketpart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncTicketPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_renewable_ok_p.30000644000000000000000000000323214273615426017163 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_renewable_ok_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_renewable_ok_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_renewable_ok_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option renewable\-ok flag is set. The RENEWABLE\-OK option indicates that a renewable ticket will be acceptable if a ticket with the requested life cannot otherwise be provided. If a ticket with the requested life cannot be provided, then a renewable ticket may be issued with a renew\-till equal to the requested endtime. The value of the renew\-till field may still be limited by local limits, or limits selected by the individual principal or server. .SH "RETURN VALUE" Returns non\-0 iff renewable\-ok flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_encprivpart_der.30000644000000000000000000000261614273615456017115 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_encprivpart_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_encprivpart_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_encprivpart_der(Shishi_priv * " priv ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "char ** out" 12 output array with newly allocated DER encoding of ENCPRIVPART. .IP "size_t * outlen" 12 length of output array with DER encoding of ENCPRIVPART. .SH "DESCRIPTION" DER encode ENCPRIVPART structure. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_cksum_type.30000644000000000000000000000331314273615365020605 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_cksum_type" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_cksum_type \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_cksum_type(Shishi * " handle ", Shishi_asn1 " authenticator ", Shishi_key * " key ", int " keyusage ", int " cksumtype ", char * " data ", size_t " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "Shishi_key * key" 12 key to to use for encryption. .IP "int keyusage" 12 cryptographic key usage value to use in encryption. .IP "int cksumtype" 12 checksum to type to calculate checksum. .IP "char * data" 12 input array with data to calculate checksum on. .IP "size_t datalen" 12 size of input array with data to calculate checksum on. .SH "DESCRIPTION" Calculate checksum for data and store it in the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_ctime.30000644000000000000000000000242314273615443015667 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_ctime(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror to set client name field in. .IP "char ** t" 12 newly allocated zero\-terminated output array with client time. .SH "DESCRIPTION" Extract client time from KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_disable_transited_check_p.30000644000000000000000000000362214273615425021345 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_disable_transited_check_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_disable_transited_check_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_disable_transited_check_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option disable\-transited\-check flag is set. By default the KDC will check the transited field of a ticket\-granting\-ticket against the policy of the local realm before it will issue derivative tickets based on the ticket\-granting ticket. If this flag is set in the request, checking of the transited field is disabled. Tickets issued without the performance of this check will be noted by the reset (0) value of the TRANSITED\-POLICY\-CHECKED flag, indicating to the application server that the tranisted field must be checked locally. KDCs are encouraged but not required to honor the DISABLE\-TRANSITED\-CHECK option. This flag is new since RFC 1510 .SH "RETURN VALUE" Returns non\-0 iff disable\-transited\-check flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_encprivpart.30000644000000000000000000000214214273615353016133 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_encprivpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_encprivpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_encprivpart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for EncKrbPrivPart. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg.30000644000000000000000000000235714273615370013422 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg(Shishi * " handle ", const char * " option ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * option" 12 String containing shishi library options. .SH "DESCRIPTION" Configures the shishi library according to the options given in \fIoption\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if \fIoption\fP is valid and configuration was successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_for_serverrealm.30000644000000000000000000000270214273615412020000 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_for_serverrealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_for_serverrealm \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_hostkeys_for_serverrealm(Shishi * " handle ", const char * " server ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * server" 12 server name to get key for .IP "const char * realm" 12 realm of server to get key for. .SH "DESCRIPTION" Get host key for \fIserver\fP in \fIrealm\fP. .SH "RETURN VALUE" Returns the key for specific server and realm, read from the default host keys file (see \fBshishi_hostkeys_default_file()\fP), or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_ccache_set.30000644000000000000000000000247414273615504017514 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_ccache_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_ccache_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkts_default_ccache_set(Shishi * " handle ", const char * " ccache ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * ccache" 12 string with new default ccache filename, or NULL to reset to default. .SH "DESCRIPTION" Set the default ccache filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_priv.30000644000000000000000000000211014273615353014551 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_priv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_priv \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_priv(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for KRB\-PRIV. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_tillc.30000644000000000000000000000234114273615423015313 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_tillc" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_tillc \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_kdcreq_tillc(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get "till" field from. .SH "DESCRIPTION" Extract C time corresponding to the "till" field. .SH "RETURN VALUE" Returns the C time interpretation of the "till" field in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt.30000644000000000000000000000221014273615473013455 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt(Shishi * " handle ", Shishi_tkt ** " tkt ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_tkt ** tkt" 12 output variable with newly allocated ticket. .SH "DESCRIPTION" Create a new ticket handle. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_client.30000644000000000000000000000343514273615406017057 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_client" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_client \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_client(Shishi * " handle ", Shishi_asn1 " encticketpart ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 EncTicketPart variable to get client name from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Represent client principal name in EncTicketPart as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_checksum_parse.30000644000000000000000000000221314273615374015652 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_checksum_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_checksum_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_checksum_parse(const char * " checksum ");" .SH ARGUMENTS .IP "const char * checksum" 12 name of checksum type, e.g. "hmac\-sha1\-96\-aes256". .SH "DESCRIPTION" Get checksum number by parsing a string. .SH "RETURN VALUE" Return checksum type, see Shishi_cksumtype, corresponding to a string. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_print.30000644000000000000000000000220514273615435015044 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_print(Shishi_keys * " keys ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set to print. .IP "FILE * fh" 12 file handle, open for writing, to print keys to. .SH "DESCRIPTION" Print all keys in set using shishi_key_print. .SH "RETURNS" Returns \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_crypto_encrypt.30000644000000000000000000000327714273615372015753 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_crypto_encrypt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_crypto_encrypt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_crypto_encrypt(Shishi_crypto * " ctx ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_crypto * ctx" 12 crypto context as returned by \fBshishi_crypto()\fP. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling \fBshishi_crypto_close()\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_principal_find.30000644000000000000000000000322214273615513015453 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_principal_find" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_principal_find \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_principal_find(Shisa * " dbh ", const char * " realm ", const char * " principal ", Shisa_principal * " ph ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of principal to get information about. .IP "Shisa_principal * ph" 12 Pointer to a previously allocated principal structure where information about the principal is to be stored. .SH "DESCRIPTION" Extracts information about given the PRINCIPAL@REALM pair selected by \fIprincipal\fP and \fIrealm\fP. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful, \fBSHISA_NO_REALM\fP if the indicated realm does not exist, \fBSHISA_NO_PRINCIPAL\fP if the indicated principal does not exist, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req.30000644000000000000000000000217614273615331014126 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_ap_req(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get ASN.1 AP\-REQ structure from AP exchange. .SH "RETURN VALUE" Returns the AP\-REQ from the AP exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_tkt.30000644000000000000000000000216714273615345014151 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_tkt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_tkt \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_as_tkt(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Get Ticket in AS exchange. .SH "RETURN VALUE" Returns the newly acquired tkt from the AS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_from_file.30000644000000000000000000000270114273615401017355 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_from_file(Shishi * " handle ", Shishi_asn1 * " encapreppart ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * encapreppart" 12 output variable with newly allocated EncAPRepPart. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read EncAPRepPart from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_from_file.30000644000000000000000000000263314273615422016151 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_from_file(Shishi * " handle ", Shishi_asn1 * " kdcreq ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * kdcreq" 12 output variable with newly allocated KDC\-REQ. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read KDC\-REQ from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_checksum_cksumlen.30000644000000000000000000000216614273615374016370 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_checksum_cksumlen" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_checksum_cksumlen \- API function .SH SYNOPSIS .B #include .sp .BI "size_t shishi_checksum_cksumlen(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 checksum type, see Shishi_cksumtype. .SH "DESCRIPTION" Get length of checksum output. .SH "RETURN VALUE" Return length of checksum used for the checksum type, as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_to_file.30000644000000000000000000000263714273615421015633 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_to_file(Shishi * " handle ", Shishi_asn1 " kdcreq ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write KDC\-REQ to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_set_subkey.30000644000000000000000000000350014273615366017766 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_set_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_set_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_set_subkey(Shishi * " handle ", Shishi_asn1 " authenticator ", int32_t " subkeytype ", const char * " subkey ", size_t " subkeylen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int32_t subkeytype" 12 input subkey type to store in authenticator. .IP "const char * subkey" 12 input subkey data to store in authenticator. .IP "size_t subkeylen" 12 size of input subkey data to store in authenticator. .SH "DESCRIPTION" Store subkey value in authenticator. A subkey is usually created by calling \fBshishi_key_random()\fP using the default encryption type of the key from the ticket that is being used. To save time, you may want to use \fBshishi_authenticator_add_subkey()\fP instead, which calculates the subkey and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_options.30000644000000000000000000000242414273615340015536 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_options" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_options \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_options(Shishi * " handle ", Shishi_asn1 " apreq ", uint32_t * " flags ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ to get options from. .IP "uint32_t * flags" 12 Output integer containing options from AP\-REQ. .SH "DESCRIPTION" Extract the AP\-Options from AP\-REQ into output integer. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_checksum_supported_p.30000644000000000000000000000213014273615374017102 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_checksum_supported_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_checksum_supported_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_checksum_supported_p(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 checksum type, see Shishi_cksumtype. .SH "DESCRIPTION" Find out whether checksum is supported. .SH "RETURN VALUE" Return 0 iff checksum is unsupported. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_errorcode_fast.30000644000000000000000000000242214273615445017570 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_errorcode_fast" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_errorcode_fast \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_errorcode_fast(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .SH "DESCRIPTION" Get error code from KRB\-ERROR, without error checking. .SH "RETURN VALUE" Return error code (see \fBshishi_krberror_errorcode()\fP) directly, or \-1 on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_read.30000644000000000000000000000241514273615421015117 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * kdcreq" 12 output variable with newly allocated KDC\-REQ. .SH "DESCRIPTION" Read DER encoded KDC\-REQ from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_to_file.30000644000000000000000000000261514273615464015303 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_to_file(Shishi * " handle ", Shishi_asn1 " safe ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 safe" 12 SAFE to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write SAFE to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_cusec_get.30000644000000000000000000000252414273615402017360 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_cusec_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_cusec_get \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_cusec_get(Shishi * " handle ", Shishi_asn1 " encapreppart ", uint32_t * " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "uint32_t * cusec" 12 output integer with client microseconds field. .SH "DESCRIPTION" Extract client microseconds field from EncAPRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509cert_default_file.30000644000000000000000000000247114273615452016747 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509cert_default_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509cert_default_file \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_x509cert_default_file(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get filename for default X.509 certificate. .SH "RETURN VALUE" Returns the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_keytype.30000644000000000000000000000227614273615501015233 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_keytype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_keytype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_keytype(Shishi_tkt * " tkt ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "int32_t * etype" 12 pointer to encryption type that is set, see Shishi_etype. .SH "DESCRIPTION" Extract encryption type of key in ticket (really EncKDCRepPart). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_set_cksum.30000644000000000000000000000332314273615465015655 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_set_cksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_set_cksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_set_cksum(Shishi * " handle ", Shishi_asn1 " safe ", int32_t " cksumtype ", const char * " cksum ", size_t " cksumlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "int32_t cksumtype" 12 input checksum type to store in SAFE. .IP "const char * cksum" 12 input checksum data to store in SAFE. .IP "size_t cksumlen" 12 size of input checksum data to store in SAFE. .SH "DESCRIPTION" Store checksum value in SAFE. A checksum is usually created by calling \fBshishi_checksum()\fP on some application specific data using the key from the ticket that is being used. To save time, you may want to use \fBshishi_safe_build()\fP instead, which calculates the checksum and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tkt_set.30000644000000000000000000000212614273615330015006 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tkt_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tkt_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_tkt_set(Shishi_ap * " ap ", Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to store in AP. .SH "DESCRIPTION" Set the Ticket in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_for_serverrealm_in_file.30000644000000000000000000000304114273615436020572 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_for_serverrealm_in_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_for_serverrealm_in_file \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_keys_for_serverrealm_in_file(Shishi * " handle ", const char * " filename ", const char * " server ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * filename" 12 file to read keys from. .IP "const char * server" 12 server name to get key for. .IP "const char * realm" 12 realm of server to get key for. .SH "DESCRIPTION" Get keys that match specified \fIserver\fP and \fIrealm\fP from the key set file \fIfilename\fP. .SH "RETURN VALUE" Returns the key for specific server and realm, read from the indicated file, or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_set.30000644000000000000000000000222414273615331017056 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_authenticator_set(Shishi_ap * " ap ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 authenticator" 12 authenticator to store in AP. .SH "DESCRIPTION" Set the Authenticator in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authorization_parse.30000644000000000000000000000220514273615367016753 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authorization_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authorization_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authorization_parse(const char * " authorization ");" .SH ARGUMENTS .IP "const char * authorization" 12 name of authorization type, "basic" or "k5login". .SH "DESCRIPTION" Parse authorization type name. .SH "RETURN VALUE" Returns authorization type corresponding to a string. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_seqnumber_get.30000644000000000000000000000255614273615364020461 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_seqnumber_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_seqnumber_get \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_seqnumber_get(Shishi * " handle ", Shishi_asn1 " authenticator ", uint32_t * " seqnumber ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "uint32_t * seqnumber" 12 output integer with sequence number field. .SH "DESCRIPTION" Extract sequence number field from Authenticator. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_ticket.30000644000000000000000000000247414273615355015650 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_ticket(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of Ticket and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_starttime_set.30000644000000000000000000000263414273615404020453 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_starttime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_starttime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_starttime_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", const char * " starttime ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "const char * starttime" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.starttime to supplied value. Use a NULL value for \fIstarttime\fP to remove the field. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_enc_tkt_in_skey_p.30000644000000000000000000000275214273615426017704 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_enc_tkt_in_skey_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_enc_tkt_in_skey_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_enc_tkt_in_skey_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option enc\-tkt\-in\-skey flag is set. This option is used only by the ticket\-granting service. The ENC\-TKT\-IN\-SKEY option indicates that the ticket for the end server is to be encrypted in the session key from the additional ticket\-granting ticket provided. .SH "RETURN VALUE" Returns non\-0 iff enc\-tkt\-in\-skey flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_option2string.30000644000000000000000000000252614273615335016163 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_option2string" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_option2string \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_ap_option2string(Shishi_apoptions " option ");" .SH ARGUMENTS .IP "Shishi_apoptions option" 12 enumerated AP\-Option type, see Shishi_apoptions. .SH "DESCRIPTION" Convert AP\-Option type to AP\-Option name string. Note that \fIoption\fP must be just one of the AP\-Option types, it cannot be an binary ORed indicating several AP\-Options. .SH "RETURN VALUE" Returns static string with name of AP\-Option that must not be deallocated, or "unknown" if AP\-Option was not understood. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_renew_till_set.30000644000000000000000000000264414273615404020604 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_renew_till_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_renew_till_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_renew_till_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", const char * " renew_till ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "const char * renew_till" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.renew\-till to supplied value. Use a NULL value for \fIrenew_till\fP to remove the field. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_ticket_set.30000644000000000000000000000214314273615474015701 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_ticket_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_ticket_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_ticket_set(Shishi_tkt * " tkt ", Shishi_asn1 " ticket ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "Shishi_asn1 ticket" 12 ASN.1 Ticket to store in ticket. .SH "DESCRIPTION" Set the ASN.1 Ticket in the Ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error_clear.30000644000000000000000000000253414273615407015160 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error_clear" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error_clear \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_error_clear(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Clears the internal error description. See \fBshishi_error()\fP on how to access the error string, and \fBshishi_error_set()\fP as well as \fBshishi_error_printf()\fP on how to set the error string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_get_authenticator_etype.30000644000000000000000000000245214273615341020764 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_get_authenticator_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_get_authenticator_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_get_authenticator_etype(Shishi * " handle ", Shishi_asn1 " apreq ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ variable to get value from. .IP "int32_t * etype" 12 output variable that holds the value. .SH "DESCRIPTION" Extract AP\-REQ.authenticator.etype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_warn.30000644000000000000000000000226514273615410013623 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_warn" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_warn \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_warn(Shishi * " handle ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * format" 12 printf style format string. .IP "..." 12 printf style arguments. .SH "DESCRIPTION" Prints a warning, composed from the arguments, to the output stream set in \fIhandle\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_for_server.30000644000000000000000000000250614273615411016760 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_for_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_for_server \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_hostkeys_for_server(Shishi * " handle ", const char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * server" 12 server name to get key for .SH "DESCRIPTION" Get host key for \fIserver\fP. .SH "RETURN VALUE" Returns the key for specific server, read from the default host keys file (see \fBshishi_hostkeys_default_file()\fP), or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_nth.30000644000000000000000000000250614273615506014516 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_nth" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_nth \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_nth(Shishi_tkts * " tkts ", int " ticketno ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "int ticketno" 12 integer indicating requested ticket in ticket set. .SH "GET THE N" th ticket in ticket set. .SH "RETURN VALUE" Returns a ticket handle to the ticketno:th ticket in the ticket set, or NULL if ticket set is invalid or ticketno is out of bounds. The first ticket is ticketno 0, the second ticketno 1, and so on. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_methoddata.30000644000000000000000000000251614273615354016473 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_methoddata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_methoddata \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_methoddata(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of METHOD\-DATA and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep_der.30000644000000000000000000000253214273615344014762 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_rep_der(Shishi_as * " as ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of AS\-REP. .IP "size_t * outlen" 12 length of output array with DER encoding of AS\-REP. .SH "DESCRIPTION" DER encode AS\-REP. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_derive_default_salt.30000644000000000000000000000253014273615454016664 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_derive_default_salt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_derive_default_salt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_derive_default_salt(Shishi * " handle ", const char * " name ", char ** " salt ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * name" 12 principal name of user. .IP "char ** salt" 12 output variable with newly allocated salt string. .SH "DESCRIPTION" Derive the default salt from a principal. The default salt is the concatenation of the decoded realm and the principal. .SH "RETURN VALUE" Return SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_set_cksum.30000644000000000000000000000346714273615365017621 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_set_cksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_set_cksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_set_cksum(Shishi * " handle ", Shishi_asn1 " authenticator ", int32_t " cksumtype ", char * " cksum ", size_t " cksumlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int32_t cksumtype" 12 input checksum type to store in authenticator. .IP "char * cksum" 12 input checksum data to store in authenticator. .IP "size_t cksumlen" 12 size of input checksum data to store in authenticator. .SH "DESCRIPTION" Store checksum value in authenticator. A checksum is usually created by calling \fBshishi_checksum()\fP on some application specific data using the key from the ticket that is being used. To save time, you may want to use \fBshishi_authenticator_add_cksum()\fP instead, which calculates the checksum and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_enckdcreppart_set.30000644000000000000000000000223614273615474017246 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_enckdcreppart_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_enckdcreppart_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_enckdcreppart_set(Shishi_tkt * " tkt ", Shishi_asn1 " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 structure that holds information about Ticket exchange .IP "Shishi_asn1 enckdcreppart" 12 EncKDCRepPart to store in Ticket. .SH "DESCRIPTION" Set the EncKDCRepPart in the Ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_proxiable_p.30000644000000000000000000000314314273615477016053 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_proxiable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_proxiable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_proxiable_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is proxiable. The PROXIABLE flag in a ticket is normally only interpreted by the ticket\-granting service. It can be ignored by application servers. When set, this flag tells the ticket\-granting server that it is OK to issue a new ticket (but not a ticket\-granting ticket) with a different network address based on this ticket. This flag is set if requested by the client on initial authentication. By default, the client will request that it be set when requesting a ticket\-granting ticket, and reset when requesting any other ticket. .SH "RETURN VALUE" Returns non\-0 iff proxiable flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_cksumdata_set.30000644000000000000000000000315014273615330021110 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_cksumdata_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_cksumdata_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_authenticator_cksumdata_set(Shishi_ap * " ap ", const char * " authenticatorcksumdata ", size_t " authenticatorcksumdatalen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "const char * authenticatorcksumdata" 12 input array with data to compute checksum on and store in Authenticator in AP\-REQ. .IP "size_t authenticatorcksumdatalen" 12 length of input array with data to compute checksum on and store in Authenticator in AP\-REQ. .SH "DESCRIPTION" Set the Authenticator Checksum Data in the AP exchange. This is the data that will be checksumed, and the checksum placed in the checksum field. It is not the actual checksum field. See also shishi_ap_authenticator_cksumraw_set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_check_version.30000644000000000000000000000260214273615512015474 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_check_version" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_check_version \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_check_version(const char * " req_version ");" .SH ARGUMENTS .IP "const char * req_version" 12 Oldest acceptable version, or \fBNULL\fP. .SH "DESCRIPTION" Checks that the installed library version is at least as recent as the one provided in \fIreq_version\fP. The version string is formatted like "1.0.2". Whenever \fBNULL\fP is passed to this function, the check is suppressed, but the library version is still returned. .SH "RETURN VALUE" Returns the active library version, or \fBNULL\fP, should the running library be too old. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_to_file.30000644000000000000000000000261514273615457015347 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_to_file(Shishi * " handle ", Shishi_asn1 " priv ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 priv" 12 PRIV to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write PRIV to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_authorizationdata.30000644000000000000000000000321514273615365021345 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_authorizationdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_authorizationdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_authorizationdata(Shishi * " handle ", Shishi_asn1 " authenticator ", int32_t * " adtype ", char ** " addata ", size_t * " addatalen ", size_t " nth ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int32_t * adtype" 12 output authorization data type. .IP "char ** addata" 12 newly allocated output authorization data. .IP "size_t * addatalen" 12 on output, actual size of newly allocated authorization data. .IP "size_t nth" 12 element number of authorization\-data to extract. .SH "EXTRACT N" th authorization data from authenticator. The first field is 1. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_done.30000644000000000000000000000217114273615342014264 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_as_done(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Deallocate resources associated with AS exchange. This should be called by the application when it no longer need to utilize the AS exchange handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_realm.30000644000000000000000000000224414273615430014623 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_realm \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_key_realm(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get the realm part of the key owner principal name. .SH "RETURN VALUE" Returns the realm for the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_client.30000644000000000000000000000343514273615364017074 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_client" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_client \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_client(Shishi * " handle ", Shishi_asn1 " authenticator ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator variable to get client name from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Represent client principal name in Authenticator as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_default_file_set.30000644000000000000000000000252314273615411020101 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_default_file_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_default_file_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_hostkeys_default_file_set(Shishi * " handle ", const char * " hostkeysfile ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * hostkeysfile" 12 string with new default hostkeys file name, or NULL to reset to default. .SH "DESCRIPTION" Set the default host key filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_enc_part_etype.30000644000000000000000000000240014273615460016711 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_enc_part_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_enc_part_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_enc_part_etype(Shishi * " handle ", Shishi_asn1 " priv ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 priv" 12 PRIV variable to get value from. .IP "int32_t * etype" 12 output variable that holds the value. .SH "DESCRIPTION" Extract PRIV.enc\-part.etype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_tkt.30000644000000000000000000000220614273615471014335 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_tkt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_tkt \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tgs_tkt(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get Ticket from TGS exchange. .SH "RETURN VALUE" Returns the newly acquired ticket from the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_from_file.30000644000000000000000000000265114273615440016530 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_from_file(Shishi * " handle ", Shishi_asn1 * " krberror ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * krberror" 12 output variable with newly allocated KRB\-ERROR. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read KRB\-ERROR from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_safe_der.30000644000000000000000000000266414273615463015435 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_safe_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_safe_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_safe_der(Shishi_safe * " safe ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "char ** out" 12 output array with newly allocated DER encoding of SAFE. .IP "size_t * outlen" 12 length of output array with DER encoding of SAFE. .SH "DESCRIPTION" DER encode SAFE structure. Typically \fBshishi_safe_build()\fP is used to build the SAFE structure first. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_parse.30000644000000000000000000000253114273615362016722 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * authenticator" 12 output variable with newly allocated authenticator. .SH "DESCRIPTION" Read ASCII armored DER encoded authenticator from file and populate given authenticator variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_allow_postdate_p.30000644000000000000000000000301014273615425017540 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_allow_postdate_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_allow_postdate_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_allow_postdate_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option allow\-postdate flag is set. The ALLOW\-POSTDATE option indicates that the ticket to be issued is to have its MAY\-POSTDATE flag set. It may only be set on the initial request, or in a subsequent request if the ticket\-granting ticket on which it is based also has its MAY\-POSTDATE flag set. .SH "RETURN VALUE" Returns non\-0 iff allow\-postdate flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap.30000644000000000000000000000300314273615325013250 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap(Shishi * " handle ", Shishi_ap ** " ap ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .SH "DESCRIPTION" Create a new AP exchange with a random subkey of the default encryption type from configuration. Note that there is no guarantee that the receiver will understand that key type, you should probably use \fBshishi_ap_etype()\fP or \fBshishi_ap_nosubkey()\fP instead. In the future, this function will likely behave as \fBshishi_ap_nosubkey()\fP and \fBshishi_ap_nosubkey()\fP will be removed. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_prompt_password_callback_set.30000644000000000000000000000332414273615451020610 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_prompt_password_callback_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_prompt_password_callback_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_prompt_password_callback_set(Shishi * " handle ", shishi_prompt_password_func " cb ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "shishi_prompt_password_func cb" 12 function pointer to application password callback, a \fBshishi_prompt_password_func\fP type. .SH "DESCRIPTION" Set a callback function that will be used by \fBshishi_prompt_password()\fP to query the user for a password. The function pointer can be retrieved using \fBshishi_prompt_password_callback_get()\fP. The \fIcb\fP function should follow the \fBshishi_prompt_password_func\fP prototype: int prompt_password (Shishi * \fIhandle\fP, char **\fIs\fP, const char *\fIformat\fP, va_list \fIap\fP); If the function returns 0, the \fIs\fP variable should contain a newly allocated string with the password read from the user. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_set_server.30000644000000000000000000000226314273615471015717 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_set_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_set_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_set_server(Shishi_tgs * " tgs ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "const char * server" 12 indicates the server to acquire ticket for. .SH "DESCRIPTION" Set the server in the TGS\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_init_with_paths.30000644000000000000000000000411714273615413016052 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_init_with_paths" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_init_with_paths \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_init_with_paths(Shishi ** " handle ", const char * " tktsfile ", const char * " systemcfgfile ", const char * " usercfgfile ");" .SH ARGUMENTS .IP "Shishi ** handle" 12 Pointer to a Shishi handle created by this call. .IP "const char * tktsfile" 12 Filename of ticket file, or \fBNULL\fP. .IP "const char * systemcfgfile" 12 Filename of system configuration, or \fBNULL\fP. .IP "const char * usercfgfile" 12 Filename of user configuration, or \fBNULL\fP. .SH "DESCRIPTION" Creates a Shishi library handle, using \fBshishi()\fP, and reads the system configuration file, user configuration file, and user tickets at the specified locations. If any of \fIusercfgfile\fP or \fIsystemcfgfile\fP is \fBNULL\fP, the file is read from its default location, which for the system configuration is decided at compile time, and is $sysconfdir/shishi.conf, and for the user configuration it is $HOME/.shishi/config. If the ticket file name is \fBNULL\fP, a ticket file is not read at all. The handle is allocated regardless of return value. The single exception being \fBSHISHI_HANDLE_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions could arise while reading files. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_kdcrep.30000644000000000000000000000247614273615356015640 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_kdcrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_kdcrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_kdcrep(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of KDC\-REP and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_ctime_set.30000644000000000000000000000252514273615363017570 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_ctime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_ctime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_ctime_set(Shishi * " handle ", Shishi_asn1 " authenticator ", const char * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator as allocated by \fBshishi_authenticator()\fP. .IP "const char * t" 12 string with generalized time value to store in Authenticator. .SH "DESCRIPTION" Store client time in Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_proxiable_p.30000644000000000000000000000272114273615424016513 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_proxiable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_proxiable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_proxiable_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option proxiable flag is set. The PROXIABLE option indicates that the ticket to be issued is to have its proxiable flag set. It may only be set on the initial request, or in a subsequent request if the ticket\-granting ticket on which it is based is also proxiable. .SH "RETURN VALUE" Returns non\-0 iff proxiable flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_timestamp.30000644000000000000000000000233014273615432015524 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_timestamp" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_timestamp \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_key_timestamp(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get the time the key was established. Typically only present when the key was imported from a keytab format. .SH "RETURN VALUE" Returns the time the key was established, or (time_t)\-1 if not available. .SH "SINCE" 0.0.42 .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_print.30000644000000000000000000000246614273615361016752 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Print ASCII armored DER encoding of authenticator to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key.30000644000000000000000000000225314273615432013445 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key(Shishi * " handle ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_key ** key" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_init.30000644000000000000000000000300714273615515013440 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_init" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_init \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_init(Shisa ** " dbh ");" .SH ARGUMENTS .IP "Shisa ** dbh" 12 Returned pointer to a created Shisa library handle. .SH "DESCRIPTION" Creates a Shisa library handle, using \fBshisa()\fP, reading the system configuration file from its default location. The path to the default system configuration file is decided at compile time ($sysconfdir/shisa.conf). The handle is allocated regardless of return value, the only exception being \fBSHISA_INIT_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions arise while reading a file. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP, or an error code. The value \fBSHISA_INIT_ERROR\fP indicates a failure to create the handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_nonce_set.30000644000000000000000000000243514273615403017537 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_nonce_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_nonce_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_nonce_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", uint32_t " nonce ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "uint32_t nonce" 12 nonce to set in EncKDCRepPart. .SH "DESCRIPTION" Set the EncKDCRepPart.nonce field. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_get_key.30000644000000000000000000000256014273615403017210 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_get_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_get_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_get_key(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "Shishi_key ** key" 12 newly allocated encryption key handle. .SH "DESCRIPTION" Extract the key to use with the ticket sent in the KDC\-REP associated with the EncKDCRepPart input variable. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_der_set.30000644000000000000000000000245014273615332015627 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_der_set(Shishi_ap * " ap ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char * der" 12 input array with DER encoded AP\-REQ. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REQ. .SH "DESCRIPTION" DER decode AP\-REQ and set it AP exchange. If decoding fails, the AP\-REQ in the AP exchange is lost. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_realm_set.30000644000000000000000000000233214273615430015474 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_realm_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_realm_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_realm_set(Shishi_key * " key ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "const char * realm" 12 string with new realm name. .SH "DESCRIPTION" Set the realm for the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_hostkeys_default_file.30000644000000000000000000000230614273615411017225 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_hostkeys_default_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_hostkeys_default_file \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_hostkeys_default_file(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get file name of default host key file. .SH "RETURN VALUE" Returns the default host key filename used in the library. (Not a copy of it, so don't modify or deallocate it.) .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_clientrealm.30000644000000000000000000000351114273615406020073 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_clientrealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_clientrealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_clientrealm(Shishi * " handle ", Shishi_asn1 " encticketpart ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 EncTicketPart variable to get client name and realm from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name and realm. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Convert cname and realm fields from EncTicketPart to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_crypto_close.30000644000000000000000000000206714273615372015370 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_crypto_close" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_crypto_close \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_crypto_close(Shishi_crypto * " ctx ");" .SH ARGUMENTS .IP "Shishi_crypto * ctx" 12 crypto context as returned by \fBshishi_crypto()\fP. .SH "DESCRIPTION" Deallocate resources associated with the crypto context. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_get_padata.30000644000000000000000000000322614273615427016304 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_get_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_get_padata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_get_padata(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_padata_type " padatatype ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to get PA\-DATA from. .IP "Shishi_padata_type padatatype" 12 type of PA\-DATA, see Shishi_padata_type. .IP "char ** out" 12 output array with newly allocated PA\-DATA value. .IP "size_t * outlen" 12 size of output array with PA\-DATA value. .SH "DESCRIPTION" Get pre authentication data (PA\-DATA) from KDC\-REQ. Pre authentication data is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP\-REQ that authenticates the user to get the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_print.30000644000000000000000000000236314273615437015730 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of KRB\-ERROR to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_msgtype.30000644000000000000000000000245614273615354015277 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_msgtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_msgtype \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_msgtype shishi_asn1_msgtype(Shishi * " handle ", Shishi_asn1 " node ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 type to get msg type for. .SH "DESCRIPTION" Determine msg\-type of ASN.1 type of a packet. Currently this uses the msg\-type field instead of the APPLICATION tag, but this may be changed in the future. .SH "RETURN VALUE" Returns msg\-type of ASN.1 type, 0 on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_rep_build.30000644000000000000000000000235014273615470015477 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_rep_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_rep_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_rep_build(Shishi_tgs * " tgs ", int " keyusage ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "int keyusage" 12 keyusage integer. .IP "Shishi_key * key" 12 user's key, used to encrypt the encrypted part of the TGS\-REP. .SH "DESCRIPTION" Build TGS\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_save.30000644000000000000000000000230014273615464014607 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " safe ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 safe" 12 SAFE to save. .SH "DESCRIPTION" Save DER encoding of SAFE to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_methoddata.30000644000000000000000000000213514273615350015707 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_methoddata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_methoddata \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_methoddata(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for METHOD\-DATA. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_add_padata_tgs.30000644000000000000000000000270714273615427017135 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_add_padata_tgs" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_add_padata_tgs \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_add_padata_tgs(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to add PA\-DATA to. .IP "Shishi_asn1 apreq" 12 AP\-REQ to add as PA\-DATA. .SH "DESCRIPTION" Add TGS pre\-authentication data to KDC\-REQ. The data is an AP\-REQ that authenticates the request. This functions simply DER encodes the AP\-REQ and calls \fBshishi_kdcreq_add_padata()\fP with a SHISHI_PA_TGS_REQ padatatype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_add_authenticator.30000644000000000000000000000302414273615340017522 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_add_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_add_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_add_authenticator(Shishi * " handle ", Shishi_asn1 " apreq ", Shishi_key * " key ", int " keyusage ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ to add authenticator field to. .IP "Shishi_key * key" 12 key to to use for encryption. .IP "int keyusage" 12 cryptographic key usage value to use in encryption. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Encrypts DER encoded authenticator using key and store it in the AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_for_server_file.30000644000000000000000000000240014273615461017204 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_for_server_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_for_server_file \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_realm_for_server_file(Shishi * " handle ", char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "char * server" 12 Hostname to determine realm for. .SH "DESCRIPTION" Finds the realm applicable to a host \fIserver\fP, using the standard configuration file. .SH "RETURN VALUE" Returns realm for host, or \fBNULL\fP if not known. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_get_enc_part_etype.30000644000000000000000000000243214273615473020064 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_get_enc_part_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_get_enc_part_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_get_enc_part_etype(Shishi * " handle ", Shishi_asn1 " ticket ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 Ticket variable to get value from. .IP "int32_t * etype" 12 output variable that holds the value. .SH "DESCRIPTION" Extract Ticket.enc\-part.etype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_print.30000644000000000000000000000232414273615370014630 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg_print(Shishi * " handle ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "FILE * fh" 12 File stream handle opened for writing. .SH "DESCRIPTION" Prints library configuration status to \fIfh\fP. This function is mostly intended for debugging purposes. .SH "RETURN VALUE" Always returns \fBSHISHI_OK\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_endctime.30000644000000000000000000000224114273615502015322 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_endctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_endctime \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_tkt_endctime(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Extract C time corresponding to the endtime field. The field holds the time where the ticket stop being valid. .SH "RETURN VALUE" Returns C time interpretation of the endtime in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_checksum.30000644000000000000000000000347414273615375014473 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_checksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_checksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_checksum(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int " cksumtype ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to compute checksum with. .IP "int keyusage" 12 integer specifying what this key is used for. .IP "int cksumtype" 12 the checksum algorithm to use. .IP "const char * in" 12 input array with data to integrity protect. .IP "size_t inlen" 12 size of input array with data to integrity protect. .IP "char ** out" 12 output array with newly allocated integrity protected data. .IP "size_t * outlen" 12 output variable with length of output array with checksum. .SH "DESCRIPTION" Integrity protect data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tktoptionsasn1usage.30000644000000000000000000000402214273615327017362 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tktoptionsasn1usage" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tktoptionsasn1usage \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_tktoptionsasn1usage(Shishi * " handle ", Shishi_ap ** " ap ", Shishi_tkt * " tkt ", int " options ", Shishi_asn1 " node ", const char * " field ", int " authenticatorcksumkeyusage ", int " authenticatorkeyusage ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in newly created AP. .IP "int options" 12 AP\-REQ options to set in newly created AP. .IP "Shishi_asn1 node" 12 input ASN.1 structure to store as authenticator checksum data. .IP "const char * field" 12 field in ASN.1 structure to use. .IP "int authenticatorcksumkeyusage" 12 key usage for checksum in authenticator. .IP "int authenticatorkeyusage" 12 key usage for authenticator. .SH "DESCRIPTION" Create a new AP exchange using \fBshishi_ap()\fP, and set ticket, options and authenticator checksum data from the DER encoding of the ASN.1 field using \fBshishi_ap_set_tktoptionsasn1usage()\fP. A random session key is added to the authenticator, using the same keytype as the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_file_guess.30000644000000000000000000000237614273615505017562 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_file_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_file_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_tkts_default_file_guess(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Guesses the default ticket filename; it is $SHISHI_TICKETS, $SHISHI_HOME/tickets, or $HOME/.shishi/tickets. .SH "RETURN VALUE" Returns default tkts filename as a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_populate_encticketpart.30000644000000000000000000000270714273615405022337 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_populate_encticketpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_populate_encticketpart \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_populate_encticketpart(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", Shishi_asn1 " encticketpart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .SH "DESCRIPTION" Set the flags, authtime, starttime, endtime, renew\-till and caddr fields of the EncKDCRepPart to the corresponding values in the EncTicketPart. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asrep.30000644000000000000000000000215214273615416013767 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asrep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new AS\-REP, populated with some default values. .SH "RETURN VALUE" Returns the AS\-REP or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_key_update.30000644000000000000000000000453714273615514014637 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_key_update" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_key_update \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_key_update(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_key * " oldkey ", const Shisa_key * " newkey ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of the principal needing an updated key. .IP "const Shisa_key * oldkey" 12 Pointer to a Shisa key structure giving matching criteria for locating the key to be updated. .IP "const Shisa_key * newkey" 12 Pointer to a complete Shisa key structure, in which all fields are used for the new key. Note that \fIoldkey\fP normally has far fewer fields filled\-in. .SH "DESCRIPTION" Modifies data about a key stored in the database, a key belonging to the principal selected by \fIprincipal\fP and \fIrealm\fP. First \fIoldkey\fP is used to locate the key to update, as does \fBshisa_keys_find()\fP. Then the found key is modified to carry whatever information is stored in \fInewkey\fP. Not all elements of \fIoldkey\fP need to be filled out, only sufficiently many so as to uniquely identify the desired key. For example, if you want to modify the information stored about a unique key of etype 3, i.e., DES\-CBC\-MD5, then set the field \fIkey\fP\->etype to 3, leaving all other fields as zero. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP on success, \fBSHISA_NO_KEY\fP if no key could be located, \fBSHISA_MULTIPLE_KEY_MATCH\fP if more than a single key matched the given criteria, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_server_p.30000644000000000000000000000224314273615476015373 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_server_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_server_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_server_p(Shishi_tkt * " tkt ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "const char * server" 12 server name of ticket. .SH "DESCRIPTION" Determine if ticket is for specified server. .SH "RETURN VALUE" Returns non\-0 iff ticket is for specified server. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_client_set.30000644000000000000000000000247214273615442016722 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_client_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_client_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_client_set(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " client ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror to set client name field in. .IP "const char * client" 12 zero\-terminated string with principal name on RFC 1964 form. .SH "DESCRIPTION" Set the client name field in the Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_key_set.30000644000000000000000000000252714273615405017244 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_key_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_key_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_key_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "Shishi_key * key" 12 key handle with information to store in encticketpart. .SH "DESCRIPTION" Set the EncTicketPart.key field to key type and value of supplied key. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_sname_set.30000644000000000000000000000270514273615404017541 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_sname_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_sname_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_sname_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", Shishi_name_type " name_type ", char * " sname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 EncKDCRepPart variable to set server name field in. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "char * sname[]" 12 input array with principal name. .SH "DESCRIPTION" Set the server name field in the EncKDCRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_timestamp_set.30000644000000000000000000000226114273615432016402 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_timestamp_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_timestamp_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_timestamp_set(Shishi_key * " key ", time_t " timestamp ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "time_t timestamp" 12 new timestamp. .SH "DESCRIPTION" Set the time the key was established. Typically only relevant when exporting the key to keytab format. .SH "SINCE" 0.0.42 .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_clear_padata.30000644000000000000000000000227214273615420016603 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_clear_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_clear_padata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_clear_padata(Shishi * " handle ", Shishi_asn1 " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to remove PA\-DATA from. .SH "DESCRIPTION" Remove the padata field from KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_authtime_set.30000644000000000000000000000253314273615406020272 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_authtime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_authtime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_authtime_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", const char * " authtime ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "const char * authtime" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.authtime to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_authctime.30000644000000000000000000000232214273615502015515 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_authctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_authctime \- API function .SH SYNOPSIS .B #include .sp .BI "time_t shishi_tkt_authctime(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Extract C time corresponding to the authtime field. The field holds the time when the original authentication took place that later resulted in this ticket. .SH "RETURN VALUE" Returns C time interpretation of the endtime in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_size.30000644000000000000000000000210314273615434014656 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_size" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_size \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_size(Shishi_keys * " keys ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .SH "DESCRIPTION" Get size of key set. .SH "RETURN VALUE" Returns number of keys stored in key set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_print.30000644000000000000000000000234514273615416015345 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of KDC\-REP to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get_tgs.30000644000000000000000000000276114273615511015360 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get_tgs" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get_tgs \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get_tgs(Shishi_tkts * " tkts ", Shishi_tkts_hint * " hint ", Shishi_tkt * " tgt ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_tkts_hint * hint" 12 structure with characteristics of ticket to begot. .IP "Shishi_tkt * tgt" 12 ticket granting ticket to use. .SH "DESCRIPTION" Get a ticket via TGS exchange using specified ticket granting ticket. This function is used by \fBshishi_tkts_get()\fP, which is probably what you really want to use unless you have special needs. .SH "RETURN VALUE" Returns a ticket if successful, or NULL if this function is unable to acquire on. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_principal_remove.30000644000000000000000000000304414273615513016032 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_principal_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_principal_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_principal_remove(Shisa * " dbh ", const char * " realm ", const char * " principal ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of the principal to remove. Set to \fBNULL\fP, only the realm \fIrealm\fP is removed. .SH "DESCRIPTION" Removes all information stored in the database for the given principal PRINCIPAL@REALM. When \fIprincipal\fP is \fBNULL\fP, then the realm \fIrealm\fP is itself removed, but this can only succeed if the realm is already empty of principals. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful, or an error code. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_key_set.30000644000000000000000000000252714273615403017227 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_key_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_key_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_key_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "Shishi_key * key" 12 key handle with information to store in enckdcreppart. .SH "DESCRIPTION" Set the EncKDCRepPart.key field to key type and value of supplied key. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_padata.30000644000000000000000000000211514273615350015025 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_padata \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_padata(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for PA\-DATA. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_etype.30000644000000000000000000000253314273615423015335 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_etype(Shishi * " handle ", Shishi_asn1 " kdcreq ", int32_t * " etype ", int " netype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get etype field from. .IP "int32_t * etype" 12 output encryption type. .IP "int netype" 12 element number to return. .SH "RETURN THE NETYPE" th encryption type from KDC\-REQ. The first etype is number 1. .SH "RETURN VALUE" Returns SHISHI_OK iff etype successful set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_for_server.30000644000000000000000000000301714273615462016213 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_for_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_for_server \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_realm_for_server(Shishi * " handle ", char * " server ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "char * server" 12 Hostname to find realm for. .SH "DESCRIPTION" Finds a realm for the host \fIserver\fP, using various methods. Currently this includes static configuration files, using the library call \fBshishi_realm_for_server_file()\fP, and DNS lookup using \fBshishi_realm_for_server_dns()\fP. They are attempted in the stated order. See the documentation of either function for more information. .SH "RETURN VALUE" Returns realm for the indicated host, or \fBNULL\fP if nothing is known about \fIserver\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509key_default_file_guess.30000644000000000000000000000236614273615452020013 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509key_default_file_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509key_default_file_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_x509key_default_file_guess(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Guesses the default X.509 client key filename; it is $HOME/.shishi/client.key. .SH "RETURN VALUE" Returns default X.509 client key filename as a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_seqnumber_set.30000644000000000000000000000257114273615364020472 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_seqnumber_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_seqnumber_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_seqnumber_set(Shishi * " handle ", Shishi_asn1 " authenticator ", uint32_t " seqnumber ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "uint32_t seqnumber" 12 integer with sequence number field to store in Authenticator. .SH "DESCRIPTION" Store sequence number field in Authenticator. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_req_der_set.30000644000000000000000000000245014273615343015634 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_req_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_req_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_req_der_set(Shishi_as * " as ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "char * der" 12 input array with DER encoded AP\-REQ. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REQ. .SH "DESCRIPTION" DER decode AS\-REQ and set it AS exchange. If decoding fails, the AS\-REQ in the AS exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_crealm.30000644000000000000000000000244514273615441016706 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_crealm(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " crealm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * crealm" 12 input array with realm. .SH "DESCRIPTION" Set realm field in krberror to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509ca_default_file_guess.30000644000000000000000000000237614273615452017607 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509ca_default_file_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509ca_default_file_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_x509ca_default_file_guess(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Guesses the default X.509 CA certificate filename; it is $HOME/.shishi/client.ca. .SH "RETURN VALUE" Returns default X.509 client certificate filename as a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_cksumdata.30000644000000000000000000000302114273615330020232 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_cksumdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_cksumdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_authenticator_cksumdata(Shishi_ap * " ap ", char * " out ", size_t * " len ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char * out" 12 output array that holds authenticator checksum data. .IP "size_t * len" 12 on input, maximum length of output array that holds authenticator checksum data, on output actual length of output array that holds authenticator checksum data. .SH "DESCRIPTION" Get checksum data from Authenticator. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, or \fBSHISHI_TOO_SMALL_BUFFER\fP if buffer provided was too small (then \fIlen\fP will hold necessary buffer size). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_proxy_p.30000644000000000000000000000277214273615425015716 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_proxy_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_proxy_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_proxy_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option proxy flag is set. The PROXY option indicates that this is a request for a proxy. This option will only be honored if the ticket\-granting ticket in the request has its PROXIABLE bit set. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. .SH "RETURN VALUE" Returns non\-0 iff proxy flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_add.30000644000000000000000000000241614273615435014444 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_add(Shishi_keys * " keys ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .IP "Shishi_key * key" 12 key to be added to key set. .SH "DESCRIPTION" Add a key to the key set. A deep copy of the key is stored, so changing \fIkey\fP, or deallocating it, will not modify the value stored in the key set. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi.30000644000000000000000000000220214273615412012565 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi * shishi();" .SH "DESCRIPTION" Initializes the Shishi library, and primes logging so that future warnings and informational messages are printed on \fBstderr\fP. If this function fails, it may send its own diagnostic errors to \fBstderr\fP. .SH "RETURN VALUE" Returns a Shishi library handle, or \fBNULL\fP on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_des_cbc_mac.30000644000000000000000000000316314273615450015060 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_des_cbc_mac" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_des_cbc_mac \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_des_cbc_mac(Shishi * " handle ", const char " key "[8], const char " iv "[8], const char * " in ", size_t " inlen ", char * " out "[8]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char key[8]" 12 input character array with key to use. .IP "const char iv[8]" 12 input character array with initialization vector to use, can be NULL. .IP "const char * in" 12 input character array of data to hash. .IP "size_t inlen" 12 length of input character array of data to hash. .IP "char * out[8]" 12 newly allocated character array with keyed hash of data. .SH "DESCRIPTION" Computed keyed checksum of data using DES\-CBC\-MAC. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_strerror.30000644000000000000000000000230514273615514014356 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_strerror" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_strerror \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shisa_strerror(int " err ");" .SH ARGUMENTS .IP "int err" 12 Shisa error code. .SH "DESCRIPTION" Explains verbally an error status \fIerr\fP. The returned string can be used to compose a diagnostic message of benefit to a user. .SH "RETURN VALUE" Returns a pointer to a statically allocated string, containing a description of the error given as input argument. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_ticket.30000644000000000000000000000211314273615352015056 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_ticket(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for Ticket. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_to_keytab_file.30000644000000000000000000000316314273615437016676 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_to_keytab_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_to_keytab_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_to_keytab_file(Shishi * " handle ", Shishi_keys * " keys ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_keys * keys" 12 keyset to write. .IP "const char * filename" 12 name of file to write. .SH "DESCRIPTION" Write keys to a MIT keytab data structure. The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" \fBSHISHI_FOPEN_ERROR\fP if there is a problem opening \fIfilename\fP for writing, \fBSHISHI_IO_ERROR\fP if there is problem writing the file, and \fBSHISHI_OK\fP on success. .SH "SINCE" 0.0.42 .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_etype_info2.30000644000000000000000000000252114273615355016601 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_etype_info2" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_etype_info2 \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_etype_info2(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of ETYPE\-INFO2 and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_find_for_server.30000644000000000000000000000256014273615510017074 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_find_for_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_find_for_server \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_find_for_server(Shishi_tkts * " tkts ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * server" 12 server name to find ticket for. .SH "DESCRIPTION" Short\-hand function for searching the ticket set for a ticket for the given server using the default client principal. See \fBshishi_tkts_find_for_clientserver()\fP and \fBshishi_tkts_find()\fP. .SH "RETURN VALUE" Returns a ticket if found, or NULL. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_default_set.30000644000000000000000000000264314273615461016341 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_default_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_default_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_realm_default_set(Shishi * " handle ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * realm" 12 String stating a new default realm name, or \fBNULL\fP. .SH "DESCRIPTION" Sets the default realm used by the library; or, with \fIrealm\fP set to \fBNULL\fP, resets the library realm setting to that name selected by configuration for default value. The string is copied into the library, so you can dispose of the content in \fIrealm\fP immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_to_file.30000644000000000000000000000263014273615337015471 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_to_file(Shishi * " handle ", Shishi_asn1 " apreq ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write AP\-REQ to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_generalize_time.30000644000000000000000000000242514273615410016015 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_generalize_time" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_generalize_time \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_generalize_time(Shishi * " handle ", time_t " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "time_t t" 12 C time to convert. .SH "DESCRIPTION" Converts C time \fIt\fP to a KerberosTime string representation. The returned string must not be deallocated by the caller. .SH "RETURN VALUE" Returns a KerberosTime formatted string corresponding to the input parameter. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_done.30000644000000000000000000000220214273615466014460 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tgs_done(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Deallocate resources associated with TGS exchange. This should be called by the application when it no longer need to utilize the TGS exchange handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_write.30000644000000000000000000000224214273615507015055 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_write" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_write \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_write(Shishi_tkts * " tkts ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "FILE * fh" 12 file descriptor to write tickets to. .SH "DESCRIPTION" Write tickets in set to file descriptor. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_principal_update.30000644000000000000000000000416514273615513016024 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_principal_update" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_principal_update \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_principal_update(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_principal * " ph ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of principal to get information about. .IP "const Shisa_principal * ph" 12 Pointer to an existing principal structure containing information to store in the database. .SH "DESCRIPTION" Modifies information stored about the given principal PRINCIPAL@REALM. Note that it is usually a good idea to set in \fIph\fP only the fields that are to be updated. It is generally suggested to first call \fBshisa_principal_find()\fP, to get the current information, then to modify one field and call \fBshisa_principal_update()\fP. Modifying several values is not recommended in general, as this will 1) overwrite any modifications made to other fields between the two calls (by other processes) and 2) will cause all values to be written again, which may generate more overhead. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful, \fBSHISA_NO_REALM\fP if the indicated realm does not exist, \fBSHISA_NO_PRINCIPAL\fP if the indicated principal does not exist, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_seqnumber_remove.30000644000000000000000000000242114273615364021166 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_seqnumber_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_seqnumber_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_seqnumber_remove(Shishi * " handle ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Remove sequence number field in Authenticator. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_get_key.30000644000000000000000000000242714273615405017227 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_get_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_get_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_get_key(Shishi * " handle ", Shishi_asn1 " encticketpart ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "Shishi_key ** key" 12 newly allocated key. .SH "DESCRIPTION" Extract the session key in the Ticket. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_print.30000644000000000000000000000234114273615360014731 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_print \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_asn1_print(Shishi * " handle ", Shishi_asn1 " node ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 data that have field to extract. .IP "FILE * fh" 12 file descriptor to print to, e.g. stdout. .SH "DESCRIPTION" Print ASN.1 structure in human readable form, typically for debugging purposes. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_authenticator.30000644000000000000000000000253014273615357017232 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_authenticator(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of Authenticator and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_realm.30000644000000000000000000000240514273615476014646 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_realm(Shishi_tkt * " tkt ", char ** " realm ", size_t * " realmlen ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "char ** realm" 12 pointer to newly allocated character array with realm name. .IP "size_t * realmlen" 12 length of newly allocated character array with realm name. .SH "DESCRIPTION" Extract realm of server in ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as.30000644000000000000000000000222214273615342013254 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as(Shishi * " handle ", Shishi_as ** " as ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_as ** as" 12 holds pointer to newly allocate Shishi_as structure. .SH "DESCRIPTION" Allocate a new AS exchange variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_cfg_db.30000644000000000000000000000300614273615512013675 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_cfg_db" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_cfg_db \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_cfg_db(Shisa * " dbh ", const char * " value ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * value" 12 String containing database definition. .SH "DESCRIPTION" Sets up and opens a new database. The syntax of the parameter \fIvalue\fP is "TYPE[ LOCATION[ PARAMETER]]", where TYPE is one of the supported database types, typically "file". The above substrings LOCATION and PARAMETER are optional strings passed on verbatim to the database during initialization. Neither TYPE nor LOCATION may contain embedded spaces, but PARAMETER may do so. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if a database was parsed and opened successfully. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_version_set.30000644000000000000000000000221414273615431016061 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_version_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_version_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_version_set(Shishi_key * " key ", uint32_t " kvno ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "uint32_t kvno" 12 new version integer. .SH "DESCRIPTION" Set the version of key ("kvno") in key structure. Use UINT32_MAX for non\-ptermanent keys. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_ok_as_delegate_p.30000644000000000000000000000346114273615501017003 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_ok_as_delegate_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_ok_as_delegate_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_ok_as_delegate_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is ok as delegated ticket. The copy of the ticket flags in the encrypted part of the KDC reply may have the OK\-AS\-DELEGATE flag set to indicates to the client that the server specified in the ticket has been determined by policy of the realm to be a suitable recipient of delegation. A client can use the presence of this flag to help it make a decision whether to delegate credentials (either grant a proxy or a forwarded ticket\- granting ticket) to this server. It is acceptable to ignore the value of this flag. When setting this flag, an administrator should consider the security and placement of the server on which the service will run, as well as whether the service requires the use of delegated credentials. .SH "RETURN VALUE" Returns non\-0 iff ok\-as\-delegate flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req_der_set.30000644000000000000000000000246414273615467016042 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_req_der_set(Shishi_tgs * " tgs ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "char * der" 12 input array with DER encoded AP\-REQ. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REQ. .SH "DESCRIPTION" DER decode TGS\-REQ and set it TGS exchange. If decoding fails, the TGS\-REQ in the TGS exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt_iv_etype.30000644000000000000000000000510614273615375016253 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt_iv_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt_iv_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt_iv_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " iv ", size_t " ivlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_flags_set.30000644000000000000000000000243714273615405017550 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_flags_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_flags_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_flags_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", int " flags ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "int flags" 12 flags to set in encticketpart. .SH "DESCRIPTION" Set the EncTicketPart.flags to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_aprep.30000644000000000000000000000247214273615360015466 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_aprep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_aprep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_aprep(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of AP\-REP and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_encrypteddata.30000644000000000000000000000214614273615347016434 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_encrypteddata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_encrypteddata \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_encrypteddata(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for EncryptedData .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_name.30000644000000000000000000000354114273615454015643 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_name \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_principal_name(Shishi * " handle ", Shishi_asn1 " namenode ", const char * " namefield ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 namenode" 12 ASN.1 structure with principal in \fInamefield\fP. .IP "const char * namefield" 12 name of field in \fInamenode\fP containing principal name. .IP "char ** out" 12 pointer to newly allocated, null terminated, string containing principal name. May be \fBNULL\fP (to only populate \fIoutlen\fP). .IP "size_t * outlen" 12 pointer to length of \fIout\fP on output, excluding terminating null. May be \fBNULL\fP (to only populate \fIout\fP). .SH "DESCRIPTION" Represent principal name in ASN.1 structure as null\-terminated string. The string is allocated by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIoutlen\fP does not include the terminating null. .SH "RETURN VALUE" Returns SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_encprivpart_set.30000644000000000000000000000225314273615456017133 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_encprivpart_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_encprivpart_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_priv_encprivpart_set(Shishi_priv * " priv ", Shishi_asn1 " asn1encprivpart ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .IP "Shishi_asn1 asn1encprivpart" 12 ENCPRIVPART to store in PRIV exchange. .SH "DESCRIPTION" Set the ENCPRIVPART in the PRIV exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_tgtkt_set.30000644000000000000000000000217214273615466015551 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_tgtkt_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_tgtkt_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tgs_tgtkt_set(Shishi_tgs * " tgs ", Shishi_tkt * " tgtkt ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "Shishi_tkt * tgtkt" 12 ticket granting ticket to store in TGS. .SH "DESCRIPTION" Set the Ticket in the TGS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_from_file.30000644000000000000000000000247114273615435015657 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_from_file(Shishi_keys * " keys ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .IP "const char * filename" 12 filename to read keys from. .SH "DESCRIPTION" Read zero or more keys from file \fIfilename\fP and append them to the keyset \fIkeys\fP. See \fBshishi_key_print()\fP for the format of the input. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "SINCE" 0.0.42 .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req_process.30000644000000000000000000000225714273615467016073 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_req_process(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Process new TGS\-REQ and set ticket. The key to decrypt the TGS\-REQ is taken from the EncKDCReqPart of the TGS tgticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_add_ccache_file.30000644000000000000000000000321714273615504016740 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_add_ccache_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_add_ccache_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_add_ccache_file(Shishi * " handle ", const char * " filename ", Shishi_tkts * " tkts ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 name of file to read. .IP "Shishi_tkts * tkts" 12 allocated ticket set to store tickets in. .SH "DESCRIPTION" Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. .SH "RETURNS" Returns \fBSHISHI_IO_ERROR\fP if the file cannot be read, \fBSHISHI_CCACHE_ERROR\fP if the data cannot be parsed as a valid ccache structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_principal.30000644000000000000000000000227714273615430015512 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_principal" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_principal \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_key_principal(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get the principal part of the key owner principal name, i.e., except the realm. .SH "RETURN VALUE" Returns the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_random.30000644000000000000000000000255214273615433015010 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_random" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_random \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_random(Shishi * " handle ", int32_t " type ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "Shishi_key ** key" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure for the key type and some random data. KEY contains a newly allocated structure only if this function is successful. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_find.30000644000000000000000000000405214273615510014636 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_find" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_find \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_find(Shishi_tkts * " tkts ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_tkts_hint * hint" 12 structure with characteristics of ticket to be found. .SH "DESCRIPTION" Search the ticketset sequentially (from ticket number 0 through all tickets in the set) for a ticket that fits the given characteristics. If a ticket is found, the hint\->startpos field is updated to point to the next ticket in the set, so this function can be called repeatedly with the same hint argument in order to find all tickets matching a certain criterium. Note that if tickets are added to, or removed from, the ticketset during a query with the same hint argument, the hint\->startpos field must be updated appropriately. .SH "HERE IS HOW YOU WOULD TYPICALLY USE THIS FUNCTION" Shishi_tkts_hint hint; Shishi_tkt tkt; memset(&hint, 0, sizeof(hint)); hint.server = "imap/mail.example.org"; tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint); if (!tkt) printf("No ticket found...\n"); else do_something_with_ticket (tkt); .SH "RETURN VALUE" Returns a ticket if found, or NULL if no further matching tickets could be found. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_clientkdcetype.30000644000000000000000000000251414273615371016505 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_clientkdcetype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_clientkdcetype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg_clientkdcetype(Shishi * " handle ", int32_t ** " etypes ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "int32_t ** etypes" 12 Pointer to an array of encryption types. .SH "DESCRIPTION" Sets the variable \fIetypes\fP to a static array of preferred encryption types applicable to clients. .SH "RETURN VALUE" Returns the number of encryption types referred to by the updated array pointer, or zero, should no type exist. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_stime.30000644000000000000000000000242314273615444015710 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_stime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_stime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_stime(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror to set client name field in. .IP "char ** t" 12 newly allocated zero\-terminated output array with server time. .SH "DESCRIPTION" Extract server time from KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_print.30000644000000000000000000000232314273615457015056 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " priv ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 priv" 12 PRIV to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of PRIV to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_realm.30000644000000000000000000000246214273615442016543 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_realm(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * realm" 12 input array with (server) realm. .SH "DESCRIPTION" Set (server) realm field in krberror to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_clientkdcetype_fast.30000644000000000000000000000245614273615371017527 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_clientkdcetype_fast" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_clientkdcetype_fast \- API function .SH SYNOPSIS .B #include .sp .BI "int32_t shishi_cfg_clientkdcetype_fast(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" Extracts the default encryption type from the list of preferred encryption types acceptable to the client. When the preferred list is empty, \fBSHISHI_AES256_CTS_HMAC_SHA1_96\fP is returned as a sensible default type. .SH "RETURN VALUE" Returns the default encryption type. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_sendrecv_hint.30000644000000000000000000000262414273615346016201 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_sendrecv_hint" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_sendrecv_hint \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_sendrecv_hint(Shishi_as * " as ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_tkts_hint * hint" 12 additional parameters that modify connection behaviour, or \fBNULL\fP. .SH "DESCRIPTION" Send AS\-REQ and receive AS\-REP or KRB\-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. The \fIhint\fP structure can be used to set, e.g., parameters for TLS authentication. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_md4.30000644000000000000000000000256314273615447013353 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_md4" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_md4 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_md4(Shishi * " handle ", const char * " in ", size_t " inlen ", char * " out "[16]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * in" 12 input character array of data to hash. .IP "size_t inlen" 12 length of input character array of data to hash. .IP "char * out[16]" 12 newly allocated character array with hash of data. .SH "DESCRIPTION" Compute hash of data using MD4. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_principal_set.30000644000000000000000000000234414273615430016360 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_principal_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_principal_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_principal_set(Shishi_key * " key ", const char * " principal ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "const char * principal" 12 string with new principal name. .SH "DESCRIPTION" Set the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt2.30000644000000000000000000000255714273615473013555 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt2" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt2 \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkt2(Shishi * " handle ", Shishi_asn1 " ticket ", Shishi_asn1 " enckdcreppart ", Shishi_asn1 " kdcrep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 input variable with ticket. .IP "Shishi_asn1 enckdcreppart" 12 input variable with auxiliary ticket information. .IP "Shishi_asn1 kdcrep" 12 input variable with KDC\-REP ticket information. .SH "DESCRIPTION" Create a new ticket handle. .SH "RETURN VALUE" Returns new ticket handle, or \fBNULL\fP on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_flags.30000644000000000000000000000222414273615476014641 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_flags" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_flags \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_flags(Shishi_tkt * " tkt ", uint32_t * " flags ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "uint32_t * flags" 12 pointer to output integer with flags. .SH "DESCRIPTION" Extract flags in ticket (i.e., EncKDCRepPart). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_clientkdcetype_set.30000644000000000000000000000274714273615371017370 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_clientkdcetype_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_clientkdcetype_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg_clientkdcetype_set(Shishi * " handle ", char * " value ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "char * value" 12 String naming acceptable encryption types. .SH "DESCRIPTION" Sets the configuration option "client\-kdc\-etypes" from \fIvalue\fP. The string contains encryption types, integers or names, separated by comma or by whitespace. An example naming three encryption types could be: aes256\-cts\-hmac\-sha1\-96 des3\-cbc\-sha1\-kd des\-cbc\-md5 .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, and \fBSHISHI_INVALID_ARGUMENT\fP otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get_for_clientserver.30000644000000000000000000000256714273615511020142 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get_for_clientserver" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get_for_clientserver \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get_for_clientserver(Shishi_tkts * " tkts ", const char * " client ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * client" 12 client name to get ticket for. .IP "const char * server" 12 server name to get ticket for. .SH "DESCRIPTION" Short\-hand function for getting a ticket for the given client and server. See \fBshishi_tkts_get()\fP. .SH "RETURN VALUE" Returns a ticket if found, or NULL. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_sendrecv_hint.30000644000000000000000000000345614273615451016340 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_sendrecv_hint" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_sendrecv_hint \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_sendrecv_hint(Shishi * " handle ", const char * " realm ", const char * " indata ", size_t " inlen ", char ** " outdata ", size_t * " outlen ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * realm" 12 string with realm name. .IP "const char * indata" 12 Packet to send to KDC. .IP "size_t inlen" 12 Length of \fIindata\fP. .IP "char ** outdata" 12 Newly allocated string with data returned from KDC. .IP "size_t * outlen" 12 Length of \fIoutdata\fP. .IP "Shishi_tkts_hint * hint" 12 a \fBShishi_tkts_hint\fP structure with flags. .SH "DESCRIPTION" Send packet to KDC for realm and receive response. The code finds KDC addresses from configuration file, then by querying for SRV records for the realm, and finally by using the realm name as a hostname. .SH "RETURNS" \fBSHISHI_OK\fP on success, \fBSHISHI_KDC_TIMEOUT\fP if a timeout was reached, or other errors. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_parse.30000644000000000000000000000241414273615457015035 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " priv ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * priv" 12 output variable with newly allocated PRIV. .SH "DESCRIPTION" Read ASCII armored DER encoded PRIV from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_endtime_set.30000644000000000000000000000252514273615406020100 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_endtime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_endtime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_endtime_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", const char * " endtime ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "const char * endtime" 12 character buffer containing a generalized time string. .SH "DESCRIPTION" Set the EncTicketPart.endtime to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_key_add.30000644000000000000000000000273714273615514014105 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_key_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_key_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_key_add(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_key * " key ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of the principal to add a new key for. .IP "const Shisa_key * key" 12 Pointer to a Shisa key structure with the new key. .SH "DESCRIPTION" Adds a complete key \fIkey\fP to the database entry belonging to the principal PRINCIPAL@REALM, as set by \fIprincipal\fP and \fIrealm\fP. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful, or an error code. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_server.30000644000000000000000000000336014273615423015514 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_server(Shishi * " handle ", Shishi_asn1 " kdcreq ", char ** " server ", size_t * " serverlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get server name from. .IP "char ** server" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIserverlen\fP). .IP "size_t * serverlen" 12 pointer to length of \fIserver\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIserver\fP). .SH "DESCRIPTION" Represent server principal name in KDC\-REQ as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIserverlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_enumerate_realms.30000644000000000000000000000303314273615512016021 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_enumerate_realms" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_enumerate_realms \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_enumerate_realms(Shisa * " dbh ", char *** " realms ", size_t * " nrealms ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "char *** realms" 12 Returned pointer to a newly allocated array of also allocated and null\-terminated UTF\-8 strings with realm names. .IP "size_t * nrealms" 12 Pointer to a number which is updated with the number of just allocated and returned realm strings. .SH "DESCRIPTION" Extracts a list of all realm names in backend, as null\-terminated UTF\-8 strings. The caller is responsible for deallocating all strings as well as the array *\fIrealms\fP. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP on success, or an error code. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_set.30000644000000000000000000000213014273615333014770 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_rep_set(Shishi_ap * " ap ", Shishi_asn1 " aprep ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 aprep" 12 aprep to store in AP. .SH "DESCRIPTION" Set the AP\-REP in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_crealm_set.30000644000000000000000000000244514273615405017716 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_crealm_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_crealm_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_crealm_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "const char * realm" 12 input array with name of realm. .SH "DESCRIPTION" Set the realm field in the KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_add_keytab_file.30000644000000000000000000000325714273615436017007 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_add_keytab_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_add_keytab_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_add_keytab_file(Shishi * " handle ", const char * " filename ", Shishi_keys * " keys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 name of file to read. .IP "Shishi_keys * keys" 12 allocated key set to store keys in. .SH "DESCRIPTION" Read keys from a MIT keytab data structure from a file, and add the keys to the key set. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" Returns \fBSHISHI_IO_ERROR\fP if the file cannot be read, \fBSHISHI_KEYTAB_ERROR\fP if the data cannot be parsed as a valid keytab structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_checksum_name.30000644000000000000000000000215614273615374015466 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_checksum_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_checksum_name \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_checksum_name(int32_t " type ");" .SH ARGUMENTS .IP "int32_t type" 12 checksum type, see Shishi_cksumtype. .SH "DESCRIPTION" Get name of checksum. .SH "RETURN VALUE" Return name of checksum type, e.g. "hmac\-sha1\-96\-aes256", as defined in the standards. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_time.30000644000000000000000000000274414273615411013615 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_time" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_time \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_time(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char ** " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 structure to get time from. .IP "const char * field" 12 Name of the field in the ASN.1 node carrying time. .IP "char ** t" 12 Returned pointer to an allocated char array containing a null\-terminated time string. .SH "DESCRIPTION" Extracts time information from an ASN.1 structure, and to be precise, does so from the named field \fIfield\fP within the structure \fInode\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, or an error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_apreq.30000644000000000000000000000211114273615351014700 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_apreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_apreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_apreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for AP\-REQ. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep_build.30000644000000000000000000000224414273615343015306 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_rep_build(Shishi_as * " as ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_key * key" 12 user's key, used to encrypt the encrypted part of the AS\-REP. .SH "DESCRIPTION" Build AS\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa.30000644000000000000000000000202414273615515012413 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa \- API function .SH SYNOPSIS .B #include .sp .BI "Shisa * shisa();" .SH "DESCRIPTION" Initializes the Shisa library. If this function fails, it may print diagnostic errors to standard error. .SH "RETURN VALUE" Returns a Shisa library handle, or \fBNULL\fP on error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_client.30000644000000000000000000000305014273615441016037 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_client" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_client \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_client(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Return client principal name in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_from_name.30000644000000000000000000000347114273615434015475 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_from_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_from_name \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_from_name(Shishi * " handle ", int32_t " type ", const char * " name ", const char * " password ", size_t " passwordlen ", const char * " parameter ", Shishi_key ** " outkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "const char * name" 12 principal name of user. .IP "const char * password" 12 input array containing password. .IP "size_t passwordlen" 12 length of input array containing password. .IP "const char * parameter" 12 input array with opaque encryption type specific information. .IP "Shishi_key ** outkey" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure, and derive the key from principal name and password using \fBshishi_key_from_name()\fP. The salt is derived from the principal name by concatenating the decoded realm and principal. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get_for_localservicepasswd.30000644000000000000000000000275614273615511021332 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get_for_localservicepasswd" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get_for_localservicepasswd \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get_for_localservicepasswd(Shishi_tkts * " tkts ", const char * " service ", const char * " passwd ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * service" 12 service name to get ticket for. .IP "const char * passwd" 12 password for the default client principal. .SH "DESCRIPTION" Short\-hand function for getting a ticket to the given local service, and for the default principal client. The latter's password is given as argument. See \fBshishi_tkts_get()\fP. .SH "RETURN VALUE" Returns a ticket if found, or NULL otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_sendrecv.30000644000000000000000000000225514273615471015350 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_sendrecv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_sendrecv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_sendrecv(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Send TGS\-REQ and receive TGS\-REP or KRB\-ERROR. This is the subsequent authentication, usually used to acquire server tickets. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_options_add.30000644000000000000000000000246114273615427016516 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_options_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_options_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_options_add(Shishi * " handle ", Shishi_asn1 " kdcreq ", uint32_t " option ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set etype field in. .IP "uint32_t option" 12 integer with options to add in KDC\-REQ. .SH "DESCRIPTION" Add KDC\-Option to KDC\-REQ. This preserves all existing options. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req_der.30000644000000000000000000000254514273615467015167 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_req_der(Shishi_tgs * " tgs ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of TGS\-REQ. .IP "size_t * outlen" 12 length of output array with DER encoding of TGS\-REQ. .SH "DESCRIPTION" DER encode TGS\-REQ. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authorize_k5login.30000644000000000000000000000265314273615367016332 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authorize_k5login" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authorize_k5login \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authorize_k5login(Shishi * " handle ", const char * " principal ", const char * " authzname ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle allocated by \fBshishi_init()\fP. .IP "const char * principal" 12 string with desired principal name and realm. .IP "const char * authzname" 12 authorization name. .SH "DESCRIPTION" Authorization of \fIauthzname\fP against desired \fIprincipal\fP in accordance with the MIT/Heimdal authorization method. .SH "RETURN VALUE" Returns 1 if \fIauthzname\fP is authorized for services by \fIprincipal\fP, and returns 0 otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_crc.30000644000000000000000000000306414273615447013433 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_crc" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_crc \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_crc(Shishi * " handle ", const char * " in ", size_t " inlen ", char * " out "[4]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * in" 12 input character array of data to checksum. .IP "size_t inlen" 12 length of input character array of data to checksum. .IP "char * out[4]" 12 newly allocated character array with checksum of data. .SH "DESCRIPTION" Compute checksum of data using CRC32 modified according to RFC 1510. The \fIout\fP buffer must be deallocated by the caller. The modifications compared to standard CRC32 is that no initial and final XOR is performed, and that the output is returned in LSB\-first order. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_process.30000644000000000000000000000372014273615415015211 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_process(Shishi * " handle ", Shishi_asn1 " tgsreq ", Shishi_asn1 " tgsrep ", Shishi_asn1 " authenticator ", Shishi_asn1 " oldenckdcreppart ", Shishi_asn1 * " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 tgsreq" 12 Input variable holding the transmitted KDC\-REQ. .IP "Shishi_asn1 tgsrep" 12 Input variable holding the received KDC\-REP. .IP "Shishi_asn1 authenticator" 12 Input variable with an authenticator extracted from the AP\-REQ part of \fItgsreq\fP. .IP "Shishi_asn1 oldenckdcreppart" 12 Input variable with EncKDCRepPart used in the request. .IP "Shishi_asn1 * enckdcreppart" 12 Output variable holding the new EncKDCRepPart. .SH "DESCRIPTION" Processes a TGS client exchange and outputs the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the ticket used to construct the original TGS request, and then calls \fBshishi_kdc_process()\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if the TGS client exchange was successful. Failures include ASN.1 and TGS conditions. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_errorcode_set.30000644000000000000000000000244714273615445017435 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_errorcode_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_errorcode_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_errorcode_set(Shishi * " handle ", Shishi_asn1 " krberror ", int " errorcode ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code to set. .IP "int errorcode" 12 new error code to set in krberror. .SH "DESCRIPTION" Set the error\-code field to a new error code. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt_ivupdate_etype.30000644000000000000000000000545314273615375017463 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt_ivupdate_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt_ivupdate_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt_ivupdate_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " iv ", size_t " ivlen ", char ** " ivout ", size_t * " ivoutlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "char ** ivout" 12 output array with newly allocated updated initialization vector. .IP "size_t * ivoutlen" 12 size of output array with updated initialization vector. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ctime.30000644000000000000000000000314714273615411013756 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ctime(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", time_t * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 structure to read field from. .IP "const char * field" 12 Name of field in \fInode\fP to read. .IP "time_t * t" 12 Pointer to a C\-time valued integer, being updated with the time value to be extracted. .SH "DESCRIPTION" Extracts time information from an ASN.1 structure \fInode\fP, and from an arbitrary element \fIfield\fP of that structure. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful, \fBSHISHI_ASN1_NO_ELEMENT\fP if the element does not exist, \fBSHISHI_ASN1_NO_VALUE\fP if the field has no value. In all other cases, \fBSHISHI_ASN1_ERROR\fP is returned. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_cusec_get.30000644000000000000000000000253414273615363017555 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_cusec_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_cusec_get \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_cusec_get(Shishi * " handle ", Shishi_asn1 " authenticator ", uint32_t * " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator as allocated by \fBshishi_authenticator()\fP. .IP "uint32_t * cusec" 12 output integer with client microseconds field. .SH "DESCRIPTION" Extract client microseconds field from Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep.30000644000000000000000000000221614273615343014126 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_as_rep(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Get ASN.1 AS\-REP structure from AS exchange. .SH "RETURN VALUE" Returns the received AS\-REP packet from the AS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_from_value.30000644000000000000000000000271414273615433015667 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_from_value" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_from_value \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_from_value(Shishi * " handle ", int32_t " type ", const char * " value ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "const char * value" 12 input array with key value, or NULL. .IP "Shishi_key ** key" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_match_p.30000644000000000000000000000227514273615510015153 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_match_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_match_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_match_p(Shishi_tkt * " tkt ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 ticket to test hints on. .IP "Shishi_tkts_hint * hint" 12 structure with characteristics of ticket to be found. .SH "DESCRIPTION" Test if a ticket matches specified hints. .SH "RETURN VALUE" Returns 0 iff ticket fails to match given criteria. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_get_enc_part_etype.30000644000000000000000000000242714273615336017712 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_get_enc_part_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_get_enc_part_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_get_enc_part_etype(Shishi * " handle ", Shishi_asn1 " aprep ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 aprep" 12 AP\-REP variable to get value from. .IP "int32_t * etype" 12 output variable that holds the value. .SH "DESCRIPTION" Extract AP\-REP.enc\-part.etype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_principal_add.30000644000000000000000000000347014273615513015270 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_principal_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_principal_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_principal_add(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_principal * " ph ", const Shisa_key * " key ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of principal to add. When set to \fBNULL\fP, only the realm \fIrealm\fP is created. .IP "const Shisa_principal * ph" 12 Pointer to a principal structure with information to store in the database. .IP "const Shisa_key * key" 12 Pointer to a key structure with information to store in the database. .SH "DESCRIPTION" Inserts the given information into the database for the principal PRINCIPAL@REALM. In case \fIprincipal\fP is \fBNULL\fP, the parameters \fIph\fP and \fIkey\fP are not used, so only the realm is added to the database. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if the information was successfully added, or an error code otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_info.30000644000000000000000000000230414273615410013601 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_info" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_info \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_info(Shishi * " handle ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * format" 12 printf style format string. .IP "..." 12 printf style arguments. .SH "DESCRIPTION" Prints an informational message, composed from the arguments, to the output stream set in \fIhandle\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_set_ticket.30000644000000000000000000000240414273615340016177 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_set_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_set_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_set_ticket(Shishi * " handle ", Shishi_asn1 " apreq ", Shishi_asn1 " ticket ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ to add ticket field to. .IP "Shishi_asn1 ticket" 12 input ticket to copy into AP\-REQ ticket field. .SH "DESCRIPTION" Copy ticket into AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_krberror_set.30000644000000000000000000000216314273615345016046 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_krberror_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_krberror_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_as_krberror_set(Shishi_as * " as ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_asn1 krberror" 12 krberror to store in AS. .SH "DESCRIPTION" Set the KRB\-ERROR in the AS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tktoptionsraw.30000644000000000000000000000362714273615327016276 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tktoptionsraw" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tktoptionsraw \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_tktoptionsraw(Shishi * " handle ", Shishi_ap ** " ap ", Shishi_tkt * " tkt ", int " options ", int32_t " cksumtype ", const char * " data ", size_t " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in newly created AP. .IP "int options" 12 AP\-REQ options to set in newly created AP. .IP "int32_t cksumtype" 12 authenticator checksum type to set in AP. .IP "const char * data" 12 input array with data to store in checksum field in Authenticator. .IP "size_t len" 12 length of input array with data to store in checksum field in Authenticator. .SH "DESCRIPTION" Create a new AP exchange using \fBshishi_ap()\fP, and set the ticket, AP\-REQ apoptions and the raw Authenticator checksum data field using \fBshishi_ap_set_tktoptionsraw()\fP. A random session key is added to the authenticator, using the same keytype as the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_encticketpart.30000644000000000000000000000214714273615352016442 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_encticketpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_encticketpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_encticketpart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for EncTicketPart. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_build.30000644000000000000000000000243114273615440015661 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_build(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Finish KRB\-ERROR, called before e.g. shishi_krberror_der. This function removes empty but OPTIONAL fields (such as cname), and .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_cksum.30000644000000000000000000000315214273615364016734 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_cksum" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_cksum \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_cksum(Shishi * " handle ", Shishi_asn1 " authenticator ", int32_t * " cksumtype ", char ** " cksum ", size_t * " cksumlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int32_t * cksumtype" 12 output checksum type. .IP "char ** cksum" 12 newly allocated output checksum data from authenticator. .IP "size_t * cksumlen" 12 on output, actual size of allocated output checksum data buffer. .SH "DESCRIPTION" Read checksum value from authenticator. \fIcksum\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_etext.30000644000000000000000000000233614273615445017301 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_etext" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_etext \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_etext(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove error text (e\-text) field in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_length.30000644000000000000000000000212114273615432015000 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_length" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_length \- API function .SH SYNOPSIS .B #include .sp .BI "size_t shishi_key_length(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Calls shishi_cipher_keylen for key type. .SH "RETURN VALUE" Returns the length of the key value. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_cusec.30000644000000000000000000000245014273615443015670 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_cusec" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_cusec \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_cusec(Shishi * " handle ", Shishi_asn1 " krberror ", uint32_t * " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .IP "uint32_t * cusec" 12 output integer with client microseconds field. .SH "DESCRIPTION" Extract client microseconds field from Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_encprivpart_der_set.30000644000000000000000000000253114273615456017764 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_encprivpart_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_encprivpart_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_encprivpart_der_set(Shishi_priv * " priv ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "char * der" 12 input array with DER encoded ENCPRIVPART. .IP "size_t derlen" 12 length of input array with DER encoded ENCPRIVPART. .SH "DESCRIPTION" DER decode ENCPRIVPART and set it PRIV exchange. If decoding fails, the ENCPRIVPART in the PRIV exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_encticketpart_set.30000644000000000000000000000221014273615475017252 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_encticketpart_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_encticketpart_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_encticketpart_set(Shishi_tkt * " tkt ", Shishi_asn1 " encticketpart ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "Shishi_asn1 encticketpart" 12 encticketpart to store in ticket. .SH "DESCRIPTION" Set the EncTicketPart in the Ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der_msgtype.30000644000000000000000000000244414273615354015204 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der_msgtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der_msgtype \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_msgtype shishi_der_msgtype(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Determine msg\-type of DER coded data of a packet. .SH "RETURN VALUE" Returns msg\-type of DER data, 0 on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_copy.30000644000000000000000000000221314273615433014474 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_copy" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_copy \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_copy(Shishi_key * " dstkey ", Shishi_key * " srckey ");" .SH ARGUMENTS .IP "Shishi_key * dstkey" 12 structure that holds destination key information .IP "Shishi_key * srckey" 12 structure that holds source key information .SH "DESCRIPTION" Copies source key into existing allocated destination key. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep_set.30000644000000000000000000000213014273615344014775 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_as_rep_set(Shishi_as * " as ", Shishi_asn1 " asrep ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_asn1 asrep" 12 asrep to store in AS. .SH "DESCRIPTION" Set the AS\-REP in the AS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt_etype.30000644000000000000000000000470514273615376015550 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data as per encryption method using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_remove.30000644000000000000000000000242714273615506015224 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_remove(Shishi_tkts * " tkts ", int " ticketno ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "int ticketno" 12 ticket number of ticket in the set to remove. The first ticket is ticket number 0. .SH "DESCRIPTION" Remove a ticket, indexed by \fIticketno\fP, in ticket set. .SH "RETURN VALUE" \fBSHISHI_OK\fP if successful or if \fIticketno\fP larger than size of ticket set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_lastreq_pretty_print.30000644000000000000000000000226214273615503020034 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_lastreq_pretty_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_lastreq_pretty_print \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_lastreq_pretty_print(Shishi_tkt * " tkt ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "FILE * fh" 12 file handle open for writing. .SH "DESCRIPTION" Print a human readable representation of the various lastreq fields in the ticket (really EncKDCRepPart). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_user_data.30000644000000000000000000000274114273615465015632 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_user_data" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_user_data \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_user_data(Shishi * " handle ", Shishi_asn1 " safe ", char ** " userdata ", size_t * " userdatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "char ** userdata" 12 output array with newly allocated user data from KRB\-SAFE. .IP "size_t * userdatalen" 12 output size of output user data buffer. .SH "DESCRIPTION" Read user data value from KRB\-SAFE. \fIuserdata\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_default_set.30000644000000000000000000000246614273615453017226 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_default_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_default_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_principal_default_set(Shishi * " handle ", const char * " principal ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * principal" 12 string with new default principal name, or NULL to reset to default. .SH "DESCRIPTION" Set the default principal used by the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_from_file.30000644000000000000000000000261114273615464015620 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_from_file(Shishi * " handle ", Shishi_asn1 * " safe ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * safe" 12 output variable with newly allocated SAFE. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read SAFE from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_initial_p.30000644000000000000000000000277214273615501015512 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_initial_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_initial_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_initial_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket was issued using AS exchange. The INITIAL flag indicates that a ticket was issued using the AS protocol, rather than issued based on a ticket\-granting ticket. Application servers that want to require the demonstrated knowledge of a client's secret key (e.g. a password\-changing program) can insist that this flag be set in any tickets they accept, and thus be assured that the client's key was recently presented to the application client. .SH "RETURN VALUE" Returns non\-0 iff initial flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_read_optional.30000644000000000000000000000343714273615347016431 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_read_optional" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_read_optional \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asn1_read_optional(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char ** " data ", size_t * " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 variable to read field from. .IP "const char * field" 12 name of field in \fInode\fP to read. .IP "char ** data" 12 newly allocated output buffer that will hold ASN.1 field data. .IP "size_t * datalen" 12 actual size of output buffer. .SH "DESCRIPTION" Extract data stored in a ASN.1 field into a newly allocated buffer. If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this function set datalen to 0 and succeeds. Can be useful to read ASN.1 fields which are marked OPTIONAL in the grammar, if you want to avoid special error handling in your code. .SH "RETURN VALUE" Returns SHISHI_OK if successful, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_till.30000644000000000000000000000343614273615423015156 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_till" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_till \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_till(Shishi * " handle ", Shishi_asn1 " kdcreq ", char ** " till ", size_t * " tilllen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get endtime from. .IP "char ** till" 12 pointer to newly allocated null terminated string containing "till" field with generalized time. May be passed as \fBNULL\fP to only populate \fItilllen\fP. .IP "size_t * tilllen" 12 pointer to length of \fItill\fP for output, excluding the terminating null. Set to \fBNULL\fP, only \fItill\fP is populated. .SH "DESCRIPTION" Get "till" field, i.e., "endtime", in KDC\-REQ as a null\-terminated string. The string is typically 15 characters long and is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length \fItilllen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_srealm_set.30000644000000000000000000000250314273615404017715 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_srealm_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_srealm_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_srealm_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", const char * " srealm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 EncKDCRepPart variable to set realm field in. .IP "const char * srealm" 12 input array with name of realm. .SH "DESCRIPTION" Set the server realm field in the EncKDCRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_cksumtype_set.30000644000000000000000000000227414273615331021167 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_cksumtype_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_cksumtype_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_authenticator_cksumtype_set(Shishi_ap * " ap ", int32_t " cksumtype ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "int32_t cksumtype" 12 authenticator checksum type to set in AP. .SH "DESCRIPTION" Set the Authenticator Checksum Type in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_realm_default_guess.30000644000000000000000000000353414273615461016674 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_realm_default_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_realm_default_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_realm_default_guess();" .SH "DESCRIPTION" Guesses a realm based on \fBgetdomainname()\fP, which really responds with a NIS/YP domain, but if set properly, it might be a good first guess. If this NIS query fails, call \fBgethostname()\fP, and on its failure, fall back to returning the artificial string "could\-not\-guess\-default\-realm". Note that the hostname is not trimmed off of the string returned by \fBgethostname()\fP, thus pretending the local host name is a valid realm name. The resulting corner case could merit a check that the suggested realm is distinct from the fully qualifies host, and if not, simply strip the host name from the returned string before it is used in an application. One reason for sticking with the present behaviour, is that some systems respond with a non\-qualified host name as reply from \fBgethostname()\fP. .SH "RETURN VALUE" Returns a guessed realm for the running host, containing a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_file_set.30000644000000000000000000000247514273615505017227 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_file_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_file_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkts_default_file_set(Shishi * " handle ", const char * " tktsfile ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * tktsfile" 12 string with new default tkts file name, or NULL to reset to default. .SH "DESCRIPTION" Set the default ticket set filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt_ivupdate.30000644000000000000000000000526014273615375016251 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt_ivupdate" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt_ivupdate \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt_ivupdate(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", const char * " iv ", size_t " ivlen ", char ** " ivout ", size_t * " ivoutlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "char ** ivout" 12 output array with newly allocated updated initialization vector. .IP "size_t * ivoutlen" 12 size of output array with updated initialization vector. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_derive_salt.30000644000000000000000000000344314273615413015642 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_derive_salt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_derive_salt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_derive_salt(Shishi * " handle ", Shishi_asn1 " asreq ", Shishi_asn1 " asrep ", char ** " salt ", size_t * " saltlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 asreq" 12 Input AS\-REQ variable. .IP "Shishi_asn1 asrep" 12 Input AS\-REP variable. .IP "char ** salt" 12 Returned pointer to newly allocated output array. .IP "size_t * saltlen" 12 Pointer to integer, returning size of output array. .SH "DESCRIPTION" Computes the salt that should be used when deriving a key via \fBshishi_string_to_key()\fP for an AS exchange. Currently this searches for PA\-DATA of type \fBSHISHI_PA_PW_SALT\fP in the AS\-REP provided by \fIasrep\fP, and if present returns it. Otherwise the salt is composed from the client name and the realm, both are extracted from the request \fIasreq\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful. Failure conditions include various ASN.1 issues. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts.30000644000000000000000000000223014273615505013636 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts(Shishi * " handle ", Shishi_tkts ** " tkts ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_tkts ** tkts" 12 output pointer to newly allocated tkts handle. .SH "DESCRIPTION" Get a new ticket set handle. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_realm.30000644000000000000000000000256114273615442015670 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_realm(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " realm ", size_t * " realmlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "char ** realm" 12 output array with newly allocated name of realm in KRB\-ERROR. .IP "size_t * realmlen" 12 size of output array. .SH "DESCRIPTION" Extract (server) realm from KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_default_userfile.30000644000000000000000000000250414273615371017017 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_default_userfile" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_default_userfile \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_cfg_default_userfile(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" Reports the absolute filename of the default user configuration file. This is typically "$HOME/.shishi/shishi.conf". The value of $SHISHI_HOME will change the directory part, as stated regarding \fBshishi_cfg_default_userdirectory()\fP. .SH "RETURN VALUE" Returns the user's configuration filename. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_asn1.30000644000000000000000000000226114273615334015045 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_asn1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_asn1 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_asn1(Shishi_ap * " ap ", Shishi_asn1 * " aprep ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 * aprep" 12 output AP\-REP variable. .SH "DESCRIPTION" Build AP\-REP using \fBshishi_ap_rep_build()\fP and return it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_postdated_p.30000644000000000000000000000312414273615425016514 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_postdated_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_postdated_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_postdated_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option postdated flag is set. The POSTDATED option indicates that this is a request for a postdated ticket. This option will only be honored if the ticket\-granting ticket on which it is based has its MAY\-POSTDATE flag set. The resulting ticket will also have its INVALID flag set, and that flag may be reset by a subsequent request to the KDC after the starttime in the ticket has been reached. .SH "RETURN VALUE" Returns non\-0 iff postdated flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_flags_set.30000644000000000000000000000234014273615477015514 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_flags_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_flags_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_flags_set(Shishi_tkt * " tkt ", uint32_t " flags ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "uint32_t flags" 12 integer with flags to store in ticket. .SH "DESCRIPTION" Set flags in ticket, i.e., both EncTicketPart and EncKDCRepPart. Note that this reset any already existing flags. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_set_crealm.30000644000000000000000000000251514273615362017730 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_set_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_set_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_set_crealm(Shishi * " handle ", Shishi_asn1 " authenticator ", const char * " crealm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "const char * crealm" 12 input array with realm. .SH "DESCRIPTION" Set realm field in authenticator to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_cname_set.30000644000000000000000000000264214273615417016150 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_cname_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_cname_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_cname_set(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_name_type " name_type ", const char * " cname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 Kdcrep variable to set server name field in. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * cname[]" 12 input array with principal name. .SH "DESCRIPTION" Set the client name field in the KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_ccache_guess.30000644000000000000000000000253714273615503020046 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_ccache_guess" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_ccache_guess \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_tkts_default_ccache_guess(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Guesses the default ccache ticket filename; it is the contents of the environment variable KRB5CCNAME or /tmp/krb5cc_UID where UID is the user's identity in decimal, as returned by \fBgetuid()\fP. .SH "RETURN VALUE" Returns default ccache filename as a string that has to be deallocated with \fBfree()\fP by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_to_file.30000644000000000000000000000265514273615440016213 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_to_file(Shishi * " handle ", Shishi_asn1 " krberror ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR to save. .IP "int filetype" 12 input variable specifying type of file to be written, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to write to. .SH "DESCRIPTION" Write KRB\-ERROR to file in specified TYPE. The file will be truncated if it exists. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_type_set.30000644000000000000000000000211214273615431015352 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_type_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_type_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_type_set(Shishi_key * " key ", int32_t " type ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "int32_t type" 12 type to set in key. .SH "DESCRIPTION" Set the type of key in key structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_random_subkey.30000644000000000000000000000251514273615366021270 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_random_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_random_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_random_subkey(Shishi * " handle ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Generate random subkey, of the default encryption type from configuration, and store it in the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_from_base64.30000644000000000000000000000305714273615433015640 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_from_base64" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_from_base64 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_from_base64(Shishi * " handle ", int32_t " type ", const char * " value ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "const char * value" 12 input string with base64 encoded key value, or NULL. .IP "Shishi_key ** key" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. .SH "RETURN VALUE" Returns SHISHI_INVALID_KEY if the base64 encoded key length doesn't match the key type, and SHISHI_OK on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_cusec_set.30000644000000000000000000000245014273615444016544 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_cusec_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_cusec_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_cusec_set(Shishi * " handle ", Shishi_asn1 " krberror ", uint32_t " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "uint32_t cusec" 12 client microseconds to set in krberror, 0\-999999. .SH "DESCRIPTION" Set the cusec field in the Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_nth.30000644000000000000000000000247014273615435014505 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_nth" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_nth \- API function .SH SYNOPSIS .B #include .sp .BI "const Shishi_key * shishi_keys_nth(Shishi_keys * " keys ", int " keyno ");" .SH ARGUMENTS .IP "Shishi_keys * keys" 12 key set handle as allocated by \fBshishi_keys()\fP. .IP "int keyno" 12 integer indicating requested key in key set. .SH "GET THE N" th ticket in key set. .SH "RETURN VALUE" Returns a key handle to the keyno:th key in the key set, or NULL if \fIkeys\fP is invalid or \fIkeyno\fP is out of bounds. The first key is \fIkeyno\fP 0, the second key \fIkeyno\fP 1, and so on. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_key_set.30000644000000000000000000000217714273615475015216 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_key_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_key_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_key_set(Shishi_tkt * " tkt ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "Shishi_key * key" 12 key to store in ticket. .SH "DESCRIPTION" Set the key in the EncTicketPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error_printf.30000644000000000000000000000254014273615407015371 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error_printf" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error_printf \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_error_printf(Shishi * " handle ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * format" 12 printf style format string. .IP "..." 12 printf style arguments. .SH "DESCRIPTION" Sets the internal error description to a printf(3) formatted string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same infrastructure for error handling. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_clientrealm.30000644000000000000000000000351114273615364020110 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_clientrealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_clientrealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_clientrealm(Shishi * " handle ", Shishi_asn1 " authenticator ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator variable to get client name and realm from. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name and realm. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Convert cname and realm fields from Authenticator to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_pretty_print.30000644000000000000000000000246214273615446017337 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_pretty_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_pretty_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_pretty_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle opened for writing. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .SH "DESCRIPTION" Print KRB\-ERROR error condition and some explanatory text to file descriptor. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_edata.30000644000000000000000000000247514273615446016531 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_edata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_edata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_edata(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " edata ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * edata" 12 input array with error text to set. .SH "DESCRIPTION" Set error text (e\-data) field in KRB\-ERROR to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_krberror_der.30000644000000000000000000000257314273615470016223 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_krberror_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_krberror_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_krberror_der(Shishi_tgs * " tgs ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of KRB\-ERROR. .IP "size_t * outlen" 12 length of output array with DER encoding of KRB\-ERROR. .SH "DESCRIPTION" DER encode KRB\-ERROR. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_der.30000644000000000000000000000261214273615333014754 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_der(Shishi_ap * " ap ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char ** out" 12 output array with newly allocated DER encoding of AP\-REP. .IP "size_t * outlen" 12 length of output array with DER encoding of AP\-REP. .SH "DESCRIPTION" Build AP\-REP using \fBshishi_ap_rep_build()\fP and DER encode it. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error_set.30000644000000000000000000000274014273615407014664 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_error_set(Shishi * " handle ", const char * " errstr ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * errstr" 12 A null\-terminated character string holding a description, or \fBNULL\fP to clear the internal error string. .SH "DESCRIPTION" Sets the error description to the content of \fIerrstr\fP. The string is copied into the Shishi internal structure, so you can deallocate any string passed to this function. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_client_set.30000644000000000000000000000253514273615363017746 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_client_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_client_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_client_set(Shishi * " handle ", Shishi_asn1 " authenticator ", const char * " client ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator to set client name field in. .IP "const char * client" 12 zero\-terminated string with principal name on RFC 1964 form. .SH "DESCRIPTION" Set the client name field in the Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_string2option.30000644000000000000000000000231414273615335016156 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_string2option" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_string2option \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_apoptions shishi_ap_string2option(const char * " str ");" .SH ARGUMENTS .IP "const char * str" 12 zero terminated character array with name of AP\-Option, e.g. "use\-session\-key". .SH "DESCRIPTION" Convert AP\-Option name to AP\-Option type. .SH "RETURN VALUE" Returns enumerated type member corresponding to AP\-Option, or 0 if string was not understood. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_transited_set.30000644000000000000000000000300714273615406020444 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_transited_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_transited_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_transited_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", int32_t " trtype ", const char * " trdata ", size_t " trdatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "int32_t trtype" 12 transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS. .IP "const char * trdata" 12 actual transited realm data. .IP "size_t trdatalen" 12 length of actual transited realm data. .SH "DESCRIPTION" Set the EncTicketPart.transited field to supplied value. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_options_add.30000644000000000000000000000251714273615341016352 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_options_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_options_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_options_add(Shishi * " handle ", Shishi_asn1 " apreq ", uint32_t " option ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ as allocated by \fBshishi_apreq()\fP. .IP "uint32_t option" 12 Options to add in AP\-REQ. .SH "DESCRIPTION" Add the AP\-Options in AP\-REQ. Options not set in input parameter \fIoption\fP are preserved in the AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tkt.30000644000000000000000000000215514273615330014135 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tkt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tkt \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_ap_tkt(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get Ticket from AP exchange. .SH "RETURN VALUE" Returns the ticket from the AP exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req_build.30000644000000000000000000000217314273615467015511 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_req_build(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Checksum data in authenticator and add ticket and authenticator to TGS\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error_outputtype.30000644000000000000000000000241214273615407016327 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error_outputtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error_outputtype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_error_outputtype(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Reports the current output type used in message logging. .SH "RETURN VALUE" Returns the output type. \fBSHISHI_OUTPUTTYPE_NULL\fP means no output. \fBSHISHI_OUTPUTTYPE_STDERR\fP and \fBSHISHI_OUTPUTTYPE_SYSLOG\fP direct text to the console, or to the syslog system. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_expired_p.30000644000000000000000000000213314273615503015512 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_expired_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_expired_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_expired_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket has expired (i.e., endtime is in the past). .SH "RETURN VALUE" Returns 0 iff ticket has expired. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_keys_free.30000644000000000000000000000241714273615514014454 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_keys_free" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_keys_free \- API function .SH SYNOPSIS .B #include .sp .BI "void shisa_keys_free(Shisa * " dbh ", Shisa_key ** " keys ", size_t " nkeys ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "Shisa_key ** keys" 12 Pointer to an array of Shisa key structures. .IP "size_t nkeys" 12 Number of key elements in the array \fIkeys\fP. .SH "DESCRIPTION" Deallocates each key element in the array \fIkeys\fP of Shisa database keys, using repeated calls to \fBshisa_key_free()\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default.30000644000000000000000000000214614273615505015350 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkts * shishi_tkts_default(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get the default ticket set for library handle. .SH "RETURN VALUE" Return the handle global ticket set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_options_set.30000644000000000000000000000242614273615341016414 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_options_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_options_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_options_set(Shishi * " handle ", Shishi_asn1 " apreq ", uint32_t " options ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ as allocated by \fBshishi_apreq()\fP. .IP "uint32_t options" 12 Options to set in AP\-REQ. .SH "DESCRIPTION" Set the AP\-Options in AP\-REQ to indicate integer. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_clientrealm_p.30000644000000000000000000000234114273615476016363 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_clientrealm_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_clientrealm_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_clientrealm_p(Shishi_tkt * " tkt ", const char * " client ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "const char * client" 12 principal name (client name and realm) of ticket. .SH "DESCRIPTION" Determine if ticket is for specified client principal. .SH "RETURN VALUE" Returns non\-0 iff ticket is for specified client principal. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_asreq.30000644000000000000000000000211114273615350014702 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_asreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_asreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_asreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for AS\-REQ. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_ctime_set.30000644000000000000000000000251414273615402017372 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_ctime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_ctime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_ctime_set(Shishi * " handle ", Shishi_asn1 " encapreppart ", const char * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "const char * t" 12 string with generalized time value to store in EncAPRepPart. .SH "DESCRIPTION" Store client time in EncAPRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_init_server_with_paths.30000644000000000000000000000320714273615413017437 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_init_server_with_paths" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_init_server_with_paths \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_init_server_with_paths(Shishi ** " handle ", const char * " systemcfgfile ");" .SH ARGUMENTS .IP "Shishi ** handle" 12 Pointer to a Shishi handle created by this call. .IP "const char * systemcfgfile" 12 Filename of system configuration, or \fBNULL\fP. .SH "DESCRIPTION" Creates a Shishi library handle, using \fBshishi_server()\fP, and reads the system configuration file from the specified location. The path to the system configuration file is decided at compile time, and is $sysconfdir/shishi.conf. The handle is allocated regardless of return value. The single exception being \fBSHISHI_HANDLE_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions could arise while reading the file. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_to_file.30000644000000000000000000000261014273615435015331 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_to_file(Shishi * " handle ", const char * " filename ", Shishi_keys * " keys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 filename to append key to. .IP "Shishi_keys * keys" 12 set of keys to print. .SH "DESCRIPTION" Print an ASCII representation of a key structure to a file, for each key in the key set. The file is appended to if it exists. See \fBshishi_key_print()\fP for the format of the output. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_server.30000644000000000000000000000336214273615473015535 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_server(Shishi * " handle ", Shishi_asn1 " ticket ", char ** " server ", size_t * " serverlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 ASN.1 Ticket variable to get server name from. .IP "char ** server" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIserverlen\fP). .IP "size_t * serverlen" 12 pointer to length of \fIserver\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIserver\fP). .SH "DESCRIPTION" Represent server principal name in Ticket as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIserverlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_read.30000644000000000000000000000237314273615457014642 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " priv ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * priv" 12 output variable with newly allocated PRIV. .SH "DESCRIPTION" Read DER encoded PRIV from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_encprivpart.30000644000000000000000000000252314273615357016717 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_encprivpart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_encprivpart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_encprivpart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncKrbPrivPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_seqnumber_remove.30000644000000000000000000000241114273615402020770 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_seqnumber_remove" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_seqnumber_remove \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_seqnumber_remove(Shishi * " handle ", Shishi_asn1 " encapreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 encapreppart as allocated by \fBshishi_encapreppart()\fP. .SH "DESCRIPTION" Remove sequence number field in EncAPRepPart. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tktoptionsdata.30000644000000000000000000000342614273615327016413 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tktoptionsdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tktoptionsdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_tktoptionsdata(Shishi * " handle ", Shishi_ap ** " ap ", Shishi_tkt * " tkt ", int " options ", const char * " data ", size_t " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in newly created AP. .IP "int options" 12 AP\-REQ options to set in newly created AP. .IP "const char * data" 12 input array with data to checksum in Authenticator. .IP "size_t len" 12 length of input array with data to checksum in Authenticator. .SH "DESCRIPTION" Create a new AP exchange using \fBshishi_ap()\fP, and set the ticket, AP\-REQ apoptions and the Authenticator checksum data using \fBshishi_ap_set_tktoptionsdata()\fP. A random session key is added to the authenticator, using the same keytype as the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_prompt_password_callback_get.30000644000000000000000000000240514273615451020573 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_prompt_password_callback_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_prompt_password_callback_get \- API function .SH SYNOPSIS .B #include .sp .BI "shishi_prompt_password_func shishi_prompt_password_callback_get(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Get the application password prompt function callback as set by \fBshishi_prompt_password_callback_set()\fP. .SH "RETURNS" Returns the callback, a \fBshishi_prompt_password_func\fP type, or \fBNULL\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_transited_policy_checked_p.30000644000000000000000000000504714273615501021101 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_transited_policy_checked_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_transited_policy_checked_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_transited_policy_checked_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket has been policy checked for transit. The application server is ultimately responsible for accepting or rejecting authentication and SHOULD check that only suitably trusted KDCs are relied upon to authenticate a principal. The transited field in the ticket identifies which realms (and thus which KDCs) were involved in the authentication process and an application server would normally check this field. If any of these are untrusted to authenticate the indicated client principal (probably determined by a realm\-based policy), the authentication attempt MUST be rejected. The presence of trusted KDCs in this list does not provide any guarantee; an untrusted KDC may have fabricated the list. While the end server ultimately decides whether authentication is valid, the KDC for the end server's realm MAY apply a realm specific policy for validating the transited field and accepting credentials for cross\-realm authentication. When the KDC applies such checks and accepts such cross\-realm authentication it will set the TRANSITED\-POLICY\-CHECKED flag in the service tickets it issues based on the cross\-realm TGT. A client MAY request that the KDCs not check the transited field by setting the DISABLE\-TRANSITED\-CHECK flag. KDCs are encouraged but not required to honor this flag. Application servers MUST either do the transited\-realm checks themselves, or reject cross\-realm tickets without TRANSITED\-POLICY\- CHECKED set. .SH "RETURN VALUE" Returns non\-0 iff transited\-policy\-checked flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_enckdcreppart.30000644000000000000000000000253014273615357017205 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_enckdcreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_enckdcreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_enckdcreppart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncKDCRepPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_encapreppart.30000644000000000000000000000252414273615360017041 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_encapreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_encapreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_encapreppart(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of EncAPRepPart and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_save.30000644000000000000000000000244414273615361016550 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Save DER encoding of authenticator to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_sname.30000644000000000000000000000254514273615442017252 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_sname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_sname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_sname(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror to set server name field in. .SH "DESCRIPTION" Remove server name field in KRB\-ERROR. (Since it is not marked OPTIONAL in the ASN.1 profile, what is done is to set the name\-type to UNKNOWN and make sure the name\-string sequence is empty.) .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep_der_set.30000644000000000000000000000245014273615344015634 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep_der_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep_der_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_rep_der_set(Shishi_as * " as ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "char * der" 12 input array with DER encoded AP\-REP. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REP. .SH "DESCRIPTION" DER decode AS\-REP and set it AS exchange. If decoding fails, the AS\-REP in the AS exchange remains. .SH "RETURN VALUE" Returns SHISHI_OK. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_add_padata.30000644000000000000000000000326314273615427016256 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_add_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_add_padata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_add_padata(Shishi * " handle ", Shishi_asn1 " kdcreq ", int " padatatype ", const char * " data ", size_t " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to add PA\-DATA to. .IP "int padatatype" 12 type of PA\-DATA, see Shishi_padata_type. .IP "const char * data" 12 input array with PA\-DATA value. .IP "size_t datalen" 12 size of input array with PA\-DATA value. .SH "DESCRIPTION" Add new pre authentication data (PA\-DATA) to KDC\-REQ. This is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP\-REQ that authenticates the user to get the ticket. (But also see \fBshishi_kdcreq_add_padata_tgs()\fP which takes an AP\-REQ directly.) .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_aprep.30000644000000000000000000000211114273615351014677 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_aprep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_aprep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_aprep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for AP\-REP. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_krberror.30000644000000000000000000000222414273615470015362 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_krberror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_krberror \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tgs_krberror(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get KRB\-ERROR from TGS exchange. .SH "RETURN VALUE" Returns the received TGS\-REP from the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509ca_default_file_set.30000644000000000000000000000267114273615452017252 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509ca_default_file_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509ca_default_file_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_x509ca_default_file_set(Shishi * " handle ", const char * " x509cafile ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * x509cafile" 12 string with new default x509 client certificate file name, or NULL to reset to default. .SH "DESCRIPTION" Set the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_save.30000644000000000000000000000232314273615421015140 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to save. .SH "DESCRIPTION" Print DER encoding of KDC\-REQ to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_des.30000644000000000000000000000353214273615450013431 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_des" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_des \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_des(Shishi * " handle ", int " decryptp ", const char " key "[8], const char " iv "[8], char * " ivout "[8], const char * " in ", size_t " inlen ", char ** " out ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int decryptp" 12 0 to indicate encryption, non\-0 to indicate decryption. .IP "const char key[8]" 12 input character array with key to use. .IP "const char iv[8]" 12 input character array with initialization vector to use, or NULL. .IP "char * ivout[8]" 12 output character array with updated initialization vector, or NULL. .IP "const char * in" 12 input character array of data to encrypt/decrypt. .IP "size_t inlen" 12 length of input character array of data to encrypt/decrypt. .IP "char ** out" 12 newly allocated character array with encrypted/decrypted data. .SH "DESCRIPTION" Encrypt or decrypt data (depending on \fIdecryptp\fP) using DES in CBC mode. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_version.30000644000000000000000000000221014273615431015202 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_version" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_version \- API function .SH SYNOPSIS .B #include .sp .BI "uint32_t shishi_key_version(const Shishi_key * " key ");" .SH ARGUMENTS .IP "const Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Get the "kvno" (key version) of key. It will be UINT32_MAX if the key is not long\-lived. .SH "RETURN VALUE" Returns the version of key ("kvno"). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_build.30000644000000000000000000000216214273615334015302 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_build(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Checksum data in authenticator and add ticket and authenticator to AP\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_options.30000644000000000000000000000241614273615424015703 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_options" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_options \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_options(Shishi * " handle ", Shishi_asn1 " kdcreq ", uint32_t * " flags ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .IP "uint32_t * flags" 12 pointer to output integer with flags. .SH "DESCRIPTION" Extract KDC\-Options from KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_get_key.30000644000000000000000000000243614273615401017047 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_get_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_get_key \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_get_key(Shishi * " handle ", Shishi_asn1 " encapreppart ", Shishi_key ** " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 input EncAPRepPart variable. .IP "Shishi_key ** key" 12 newly allocated key. .SH "DESCRIPTION" Extract the subkey from the encrypted AP\-REP part. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt_etype.30000644000000000000000000000473514273615375015564 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_from_file.30000644000000000000000000000271014273615362017551 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_from_file(Shishi * " handle ", Shishi_asn1 * " authenticator ", int " filetype ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 * authenticator" 12 output variable with newly allocated Authenticator. .IP "int filetype" 12 input variable specifying type of file to be read, see Shishi_filetype. .IP "const char * filename" 12 input variable with filename to read from. .SH "DESCRIPTION" Read Authenticator from file in specified TYPE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_priv.30000644000000000000000000000222114273615455014675 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_priv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_priv \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_priv_priv(Shishi_priv * " priv ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .SH "DESCRIPTION" Get ASN.1 PRIV structure in PRIV exchange. .SH "RETURN VALUE" Returns the ASN.1 priv in the PRIV exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encticketpart_cname_set.30000644000000000000000000000267714273615405017545 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encticketpart_cname_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encticketpart_cname_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encticketpart_cname_set(Shishi * " handle ", Shishi_asn1 " encticketpart ", Shishi_name_type " name_type ", const char * " principal ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encticketpart" 12 input EncTicketPart variable. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * principal" 12 input array with principal name. .SH "DESCRIPTION" Set the client name field in the EncTicketPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_set_realm.30000644000000000000000000000241214273615423016156 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_set_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_set_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_set_realm(Shishi * " handle ", Shishi_asn1 " kdcreq ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set realm field in. .IP "const char * realm" 12 input array with name of realm. .SH "DESCRIPTION" Set the realm field in the KDC\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_set_etype.30000644000000000000000000000266214273615424016214 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_set_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_set_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_set_etype(Shishi * " handle ", Shishi_asn1 " kdcreq ", int32_t * " etype ", int " netype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to set etype field in. .IP "int32_t * etype" 12 input array with encryption types. .IP "int netype" 12 number of elements in input array with encryption types. .SH "DESCRIPTION" Set the list of supported or wanted encryption types in the request. The list should be sorted in priority order. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_add.30000644000000000000000000000241314273615506014452 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_add(Shishi_tkts * " tkts ", Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_tkt * tkt" 12 ticket to be added to ticket set. .SH "DESCRIPTION" Add a ticket to the ticket set. Only the pointer is stored, so if you modify \fItkt\fP, the ticket in the ticket set will also be modified. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_arcfour.30000644000000000000000000000423114273615450014314 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_arcfour" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_arcfour \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_arcfour(Shishi * " handle ", int " decryptp ", const char * " key ", size_t " keylen ", const char " iv "[258], char * " ivout "[258], const char * " in ", size_t " inlen ", char ** " out ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "int decryptp" 12 0 to indicate encryption, non\-0 to indicate decryption. .IP "const char * key" 12 input character array with key to use. .IP "size_t keylen" 12 length of input key array. .IP "const char iv[258]" 12 input character array with initialization vector to use, or NULL. .IP "char * ivout[258]" 12 output character array with updated initialization vector, or NULL. .IP "const char * in" 12 input character array of data to encrypt/decrypt. .IP "size_t inlen" 12 length of input character array of data to encrypt/decrypt. .IP "char ** out" 12 newly allocated character array with encrypted/decrypted data. .SH "DESCRIPTION" Encrypt or decrypt data (depending on \fIdecryptp\fP) using ARCFOUR. The \fIout\fP buffer must be deallocated by the caller. The "initialization vector" used here is the concatenation of the sbox and i and j, and is thus always of size 256 + 1 + 1. This is a slight abuse of terminology, and assumes you know what you are doing. Don't use it if you can avoid to. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_encapreppart.30000644000000000000000000000213614273615352016264 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_encapreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_encapreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_encapreppart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for AP\-REP. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encrypt_iv.30000644000000000000000000000470514273615376015052 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encrypt_iv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encrypt_iv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encrypt_iv(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", const char * " iv ", size_t " ivlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key is encrypting. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "const char * in" 12 input array with data to encrypt. .IP "size_t inlen" 12 size of input array with data to encrypt. .IP "char ** out" 12 output array with newly allocated encrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_read.30000644000000000000000000000237314273615464014576 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " safe ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * safe" 12 output variable with newly allocated SAFE. .SH "DESCRIPTION" Read DER encoded SAFE from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_etype_info.30000644000000000000000000000213414273615350015735 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_etype_info" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_etype_info \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_etype_info(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for ETYPE\-INFO. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_done.30000644000000000000000000000224114273615347014526 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_asn1_done(Shishi * " handle ", Shishi_asn1 " node ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 node to deallocate. .SH "DESCRIPTION" Deallocate resources associated with ASN.1 structure. Note that the node must not be used after this call. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_remove_subkey.30000644000000000000000000000237114273615366020475 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_remove_subkey" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_remove_subkey \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_remove_subkey(Shishi * " handle ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .SH "DESCRIPTION" Remove subkey from the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_print.30000644000000000000000000000241314273615400016546 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " encapreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of EncAPRepPart to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_for_localservicerealm_in_file.30000644000000000000000000000324314273615436021743 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_for_localservicerealm_in_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_for_localservicerealm_in_file \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_keys_for_localservicerealm_in_file(Shishi * " handle ", const char * " filename ", const char * " service ", const char * " realm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * filename" 12 file to read keys from. .IP "const char * service" 12 service to get key for. .IP "const char * realm" 12 realm of server to get key for, or NULL for default realm. .SH "DESCRIPTION" Get key for specified \fIservice\fP and \fIrealm\fP from \fIfilename\fP. .SH "RETURN VALUE" Returns the key for the server "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see \fBshishi_hostkeys_default_file()\fP), or NULL if no key could be found or an error encountered. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get.30000644000000000000000000000303014273615511014471 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get(Shishi_tkts * " tkts ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_tkts_hint * hint" 12 structure with characteristics of ticket to be found. .SH "DESCRIPTION" Get a ticket matching given characteristics. This function first looks in the ticket set for a ticket, then tries to find a suitable TGT, possibly via an AS exchange, using \fBshishi_tkts_get_tgt()\fP, and then uses that TGT in a TGS exchange to get the ticket. Currently this function does not implement cross realm logic. .SH "RETURN VALUE" Returns a ticket if found, or NULL if this function is unable to get the ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_to_file.30000644000000000000000000000270414273615400015142 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_to_file(Shishi * " handle ", const char * " filename ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * filename" 12 Name of file, to which the key text is appended. .IP "Shishi_key * key" 12 Key to print. .SH "DESCRIPTION" Prints an ASCII representation of a key structure \fIkey\fP to the file \fIfilename\fP. The text is appended if the file exists. See \fBshishi_key_print()\fP for an example of output text. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful. Failures are due to I/O issues, or to allocation. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_key_set.30000644000000000000000000000214414273615455015364 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_key_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_key_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_priv_key_set(Shishi_priv * " priv ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .IP "Shishi_key * key" 12 key to store in PRIV. .SH "DESCRIPTION" Set the Key in the PRIV exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe.30000644000000000000000000000224614273615462013600 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe(Shishi * " handle ", Shishi_safe ** " safe ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_safe ** safe" 12 pointer to new structure that holds information about SAFE exchange .SH "DESCRIPTION" Create a new SAFE exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_done.30000644000000000000000000000266114273615412013603 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_done(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Deallocates the Shishi library handle. The handle must not be used in any call to a shishi function after an execution of \fBshishi_done()\fP. If there is a default \fBtkts\fP, it is written to the default tkts file. If you do not wish to write the default tkts file, close the default file before calling this function. It is closed with a simple \fBshishi_tkts_done\fP(\fIhandle\fP, \fBNULL\fP). For related information, see \fBshishi_tkts_default_file_set()\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdc_process.30000644000000000000000000000436014273615415015156 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdc_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdc_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdc_process(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 " kdcrep ", Shishi_key * " key ", int " keyusage ", Shishi_asn1 * " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 Input variable holding the transmitted KDC\-REQ. .IP "Shishi_asn1 kdcrep" 12 Input variable holding the received KDC\-REP. .IP "Shishi_key * key" 12 Input pointet to key for decrypting parts of \fIkdcrep\fP. .IP "int keyusage" 12 Kerberos key usage code. .IP "Shishi_asn1 * enckdcreppart" 12 Output pointer for the extracted EncKDCRepPart. .SH "DESCRIPTION" Processes a KDC client exchange and extracts a decrypted EncKDCRepPart, holding details about the received ticket. Use \fBshishi_kdcrep_get_ticket()\fP to extract the ticket itself. This function verifies the various conditions that must hold if the response is to be considered valid. In particular, it compares nonces (using \fBshishi_kdc_check_nonce()\fP), and if the exchange was an AS exchange, it also checks cname and crealm (using \fBshishi_as_check_cname()\fP, \fBshishi_as_check_crealm()\fP). Usually \fBshishi_as_process()\fP and \fBshishi_tgs_process()\fP should be used instead of this call, since they simplify computation of the decryption key. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if the KDC client exchange was successful. Multiple failure conditions are possible. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_set_enc_part.30000644000000000000000000000340414273615473016672 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_set_enc_part" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_set_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_set_enc_part(Shishi * " handle ", Shishi_asn1 " ticket ", int32_t " etype ", uint32_t " kvno ", const char * " buf ", size_t " buflen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 Ticket to add enc\-part field to. .IP "int32_t etype" 12 encryption type used to encrypt enc\-part. .IP "uint32_t kvno" 12 key version number. .IP "const char * buf" 12 input array with encrypted enc\-part. .IP "size_t buflen" 12 size of input array with encrypted enc\-part. .SH "DESCRIPTION" Set the encrypted enc\-part field in the Ticket. The encrypted data is usually created by calling \fBshishi_encrypt()\fP on the DER encoded enc\-part. To save time, you may want to use \fBshishi_ticket_add_enc_part()\fP instead, which calculates the encrypted data and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_process.30000644000000000000000000000247714273615461015405 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_process(Shishi_priv * " priv ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "Shishi_key * key" 12 key to use to decrypt EncPrivPart. .SH "DESCRIPTION" Decrypt encrypted data in KRB\-PRIV and set the EncPrivPart in the PRIV exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful, SHISHI_PRIV_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_CRYPTO_ERROR if the actual decryption failed. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_tgsreq.30000644000000000000000000000247614273615356015675 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_tgsreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_tgsreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_tgsreq(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of TGS\-REQ and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_sname.30000644000000000000000000000267214273615442016551 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_sname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_sname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_sname(Shishi * " handle ", Shishi_asn1 " krberror ", Shishi_name_type " name_type ", const char * " sname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * sname[]" 12 input array with principal name. .SH "DESCRIPTION" Set principal field in krberror to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_crealm_set.30000644000000000000000000000242414273615417016326 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_crealm_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_crealm_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_crealm_set(Shishi * " handle ", Shishi_asn1 " kdcrep ", const char * " crealm ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 Kdcrep variable to set realm field in. .IP "const char * crealm" 12 input array with name of realm. .SH "DESCRIPTION" Set the client realm field in the KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_enckdcreppart_flags_set.30000644000000000000000000000242314273615403017526 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_enckdcreppart_flags_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_enckdcreppart_flags_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_enckdcreppart_flags_set(Shishi * " handle ", Shishi_asn1 " enckdcreppart ", int " flags ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 enckdcreppart" 12 input EncKDCRepPart variable. .IP "int flags" 12 flags to set in EncKDCRepPart. .SH "DESCRIPTION" Set the EncKDCRepPart.flags field. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_sendrecv_hint.30000644000000000000000000000262714273615471016375 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_sendrecv_hint" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_sendrecv_hint \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_sendrecv_hint(Shishi_tgs * " tgs ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "Shishi_tkts_hint * hint" 12 additional parameters that modify connection behaviour, or \fBNULL\fP. .SH "DESCRIPTION" Send TGS\-REQ and receive TGS\-REP or KRB\-ERROR. This is the subsequent authentication, usually used to acquire server tickets. The \fIhint\fP structure can be used to set, e.g., parameters for TLS authentication. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_name_realm.30000644000000000000000000000416514273615454017026 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_name_realm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_name_realm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_principal_name_realm(Shishi * " handle ", Shishi_asn1 " namenode ", const char * " namefield ", Shishi_asn1 " realmnode ", const char * " realmfield ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 namenode" 12 ASN.1 structure with principal name in \fInamefield\fP. .IP "const char * namefield" 12 name of field in \fInamenode\fP containing principal name. .IP "Shishi_asn1 realmnode" 12 ASN.1 structure with principal realm in \fIrealmfield\fP. .IP "const char * realmfield" 12 name of field in \fIrealmnode\fP containing principal realm. .IP "char ** out" 12 pointer to newly allocated null terminated string containing principal name. May be \fBNULL\fP (to only populate \fIoutlen\fP). .IP "size_t * outlen" 12 pointer to length of \fIout\fP on output, excluding terminating null. May be \fBNULL\fP (to only populate \fIout\fP). .SH "DESCRIPTION" Represent principal name and realm in ASN.1 structure as null\-terminated string. The string is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length \fIoutlen\fP does not include the terminating null character. .SH "RETURN VALUE" Returns SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_tkt_set.30000644000000000000000000000212014273615345015011 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_tkt_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_tkt_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_as_tkt_set(Shishi_as * " as ", Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_tkt * tkt" 12 tkt to store in AS. .SH "DESCRIPTION" Set the Tkt in the AS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_server_for_local_service.30000644000000000000000000000267214273615454017734 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_server_for_local_service" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_server_for_local_service \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_server_for_local_service(Shishi * " handle ", const char * " service ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * service" 12 null terminated string with name of service, e.g., "host". .SH "DESCRIPTION" Construct a service principal (e.g., "imap/yxa.extuno.com") based on supplied service name (i.e., "imap") and the system's hostname as returned by \fBhostname()\fP (i.e., "yxa.extundo.com"). The string must be deallocated by the caller. .SH "RETURN VALUE" Return newly allocated service name string. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_req_build.30000644000000000000000000000212214273615342015301 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_req_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_req_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_req_build(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Possibly remove unset fields (e.g., rtime). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt_ivupdate_etype.30000644000000000000000000000545314273615376017452 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt_ivupdate_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt_ivupdate_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt_ivupdate_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " iv ", size_t " ivlen ", char ** " ivout ", size_t * " ivoutlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "char ** ivout" 12 output array with newly allocated updated initialization vector. .IP "size_t * ivoutlen" 12 size of output array with updated initialization vector. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_get_for_server.30000644000000000000000000000245114273615511016733 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_get_for_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_get_for_server \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_get_for_server(Shishi_tkts * " tkts ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * server" 12 server name to get ticket for. .SH "DESCRIPTION" Short\-hand function for getting a ticket to the given server and for the default principal client. See \fBshishi_tkts_get()\fP. .SH "RETURN VALUE" Returns a ticket if found, or NULL. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_resolv_free.30000644000000000000000000000211214273615462015165 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_resolv_free" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_resolv_free \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_resolv_free(Shishi_dns " rrs ");" .SH ARGUMENTS .IP "Shishi_dns rrs" 12 List of DNS RRs as returned by \fBshishi_resolv()\fP. .SH "DESCRIPTION" Deallocates a list of DNS resource records returned by a call to \fBshishi_resolv()\fP. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_ctime.30000644000000000000000000000232314273615443017243 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_ctime" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_ctime \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_ctime(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove client time field in Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_valid_at_time_p.30000644000000000000000000000232414273615503016655 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_valid_at_time_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_valid_at_time_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_valid_at_time_p(Shishi_tkt * " tkt ", time_t " now ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "time_t now" 12 time to check for. .SH "DESCRIPTION" Determine if ticket is valid at a specific point in time. .SH "RETURN VALUE" Returns non\-0 iff ticket is valid (not expired and after starttime) at specified time. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_md5.30000644000000000000000000000256314273615447013354 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_md5" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_md5 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_md5(Shishi * " handle ", const char * " in ", size_t " inlen ", char * " out "[16]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * in" 12 input character array of data to hash. .IP "size_t inlen" 12 length of input character array of data to hash. .IP "char * out[16]" 12 newly allocated character array with hash of data. .SH "DESCRIPTION" Compute hash of data using MD5. The \fIout\fP buffer must be deallocated by the caller. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_flags_add.30000644000000000000000000000230014273615477015445 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_flags_add" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_flags_add \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_flags_add(Shishi_tkt * " tkt ", uint32_t " flag ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "uint32_t flag" 12 integer with flags to store in ticket. .SH "DESCRIPTION" Add ticket flags to Ticket and EncKDCRepPart. This preserves all existing options. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_parse.30000644000000000000000000000245414273615440015701 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * krberror" 12 output variable with newly allocated KRB\-ERROR. .SH "DESCRIPTION" Read ASCII armored DER encoded KRB\-ERROR from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart.30000644000000000000000000000233514273615400015335 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_encapreppart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new EncAPRepPart, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. .SH "RETURN VALUE" Returns the encapreppart or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_seqnumber_set.30000644000000000000000000000256014273615403020274 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_seqnumber_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_seqnumber_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_seqnumber_set(Shishi * " handle ", Shishi_asn1 " encapreppart ", uint32_t " seqnumber ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 encapreppart as allocated by \fBshishi_encapreppart()\fP. .IP "uint32_t seqnumber" 12 integer with sequence number field to store in encapreppart. .SH "DESCRIPTION" Store sequence number field in EncAPRepPart. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_to_keytab_mem.30000644000000000000000000000316114273615437016533 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_to_keytab_mem" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_to_keytab_mem \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_to_keytab_mem(Shishi * " handle ", Shishi_keys * " keys ", char ** " out ", size_t * " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_keys * keys" 12 key set to convert to keytab format. .IP "char ** out" 12 constant memory buffer with keytab of \fIlen\fP size. .IP "size_t * len" 12 size of memory buffer with keytab data. .SH "DESCRIPTION" Write keys to a MIT keytab data structure. The format of keytab's is proprietary, and this function writes the 0x0502 format. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" On success \fBSHISHI_OK\fP is returned, otherwise an error code. .SH "SINCE" 0.0.42 .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_key.30000644000000000000000000000221114273615462014440 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_key \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_safe_key(Shishi_safe * " safe ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 structure that holds information about SAFE exchange .SH "DESCRIPTION" Get key structured from SAFE exchange. .SH "RETURN VALUE" Returns the key used in the SAFE exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_client_p.30000644000000000000000000000224314273615475015342 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_client_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_client_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_client_p(Shishi_tkt * " tkt ", const char * " client ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "const char * client" 12 client name of ticket. .SH "DESCRIPTION" Determine if ticket is for specified client. .SH "RETURN VALUE" Returns non\-0 iff ticket is for specified client. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq.30000644000000000000000000000215214273615336013766 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_apreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new AP\-REQ, populated with some default values. .SH "RETURN VALUE" Returns the AP\-REQ or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encprivpart_set_user_data.30000644000000000000000000000265014273615460020116 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encprivpart_set_user_data" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encprivpart_set_user_data \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encprivpart_set_user_data(Shishi * " handle ", Shishi_asn1 " encprivpart ", const char * " userdata ", size_t " userdatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encprivpart" 12 encprivpart as allocated by \fBshishi_priv()\fP. .IP "const char * userdata" 12 input user application to store in PRIV. .IP "size_t userdatalen" 12 size of input user application to store in PRIV. .SH "DESCRIPTION" Set the application data in PRIV. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_size.30000644000000000000000000000211714273615506014675 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_size" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_size \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_size(Shishi_tkts * " tkts ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .SH "DESCRIPTION" Get size of ticket set. .SH "RETURN VALUE" Returns number of tickets stored in ticket set. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_cusec.30000644000000000000000000000232314273615444017245 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_cusec" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_cusec \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_cusec(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove client usec field in Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_time_copy.30000644000000000000000000000254114273615403017407 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_time_copy" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_time_copy \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_time_copy(Shishi * " handle ", Shishi_asn1 " encapreppart ", Shishi_asn1 " authenticator ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "Shishi_asn1 authenticator" 12 Authenticator to copy time fields from. .SH "DESCRIPTION" Copy time fields from Authenticator into EncAPRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_done.30000644000000000000000000000211614273615515013422 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_done" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_done \- API function .SH SYNOPSIS .B #include .sp .BI "void shisa_done(Shisa * " dbh ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa handle as allocated by \fBshisa()\fP. .SH "DESCRIPTION" Deallocates the shisa library handle. The handle must not be used in calls to any shisa function after the completion of this call. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_prompt_password.30000644000000000000000000000300414273615451016114 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_prompt_password" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_prompt_password \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_prompt_password(Shishi * " handle ", char ** " s ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "char ** s" 12 pointer to newly allocated output string with read password. .IP "const char * format" 12 printf(3) style format string. .IP "..." 12 printf(3) style arguments. .SH "DESCRIPTION" Format and print a prompt, and read a password from user. The password is possibly converted (e.g., converted from Latin\-1 to UTF\-8, or processed using Stringprep profile) following any "stringprocess" keywords in configuration files. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_userdirectory_file.30000644000000000000000000000324014273615370017374 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_userdirectory_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_userdirectory_file \- API function .SH SYNOPSIS .B #include .sp .BI "char * shishi_cfg_userdirectory_file(Shishi * " handle ", const char * " file ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * file" 12 Basename of file to use for the user's configuration settings of the library. .SH "DESCRIPTION" Reports the full path to the file where the Shishi library expects to find the user's library configuration, given that the file itself is named by the parameter \fIfile\fP. The answer is composed from the value of \fIfile\fP and the directory returned by \fBshishi_cfg_default_userdirectory()\fP. Typically, the returned string would be expanded from "$HOME/.shishi/\fIfile\fP". .SH "RETURN VALUE" Returns the absolute filename to the argument \fIfile\fP, relative to the user specific Shishi configuration directory. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_keys_find.30000644000000000000000000000411314273615514014446 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_keys_find" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_keys_find \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_keys_find(Shisa * " dbh ", const char * " realm ", const char * " principal ", const Shisa_key * " hint ", Shisa_key *** " keys ", size_t * " nkeys ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * realm" 12 Name of the realm the principal belongs to. .IP "const char * principal" 12 Name of the principal whose keys are examined. .IP "const Shisa_key * hint" 12 Pointer to a Shisa key structure with hints on matching criteria for relevant keys. \fBNULL\fP matches all keys. .IP "Shisa_key *** keys" 12 Returned pointer to a newly allocated array of Shisa key structures. .IP "size_t * nkeys" 12 Pointer to an integer updated with the number of allocated Shisa key structures in *\fIkeys\fP. .SH "DESCRIPTION" Iterates through the set of keys belonging to PRINCIPAL@REALM, as selected by \fIprincipal\fP and \fIrealm\fP. Then extracts any keys that match the criteria in \fIhint\fP. Not all elements of \fIhint\fP need to be filled in. Set only the fields you are interested in. For example, if you want to extract all keys of etype 3, i.e., DES\-CBC\-MD5, then set the field \fIkey\fP\->etype to 3, and all other fields to zero. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP if successful, or an error code. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt_iv.30000644000000000000000000000471314273615377015040 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt_iv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt_iv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt_iv(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", const char * " iv ", size_t " ivlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_aprep_save.30000644000000000000000000000231314273615336015002 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_aprep_save" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_aprep_save \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_aprep_save(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " aprep ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 aprep" 12 AP\-REP to save. .SH "DESCRIPTION" Save DER encoding of AP\-REP to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_n_fold.30000644000000000000000000000331514273615377014126 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_n_fold" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_n_fold \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_n_fold(Shishi * " handle ", const char * " in ", size_t " inlen ", char * " out ", size_t " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt ("M"). .IP "char * out" 12 output array with decrypted data. .IP "size_t outlen" 12 size of output array ("N"). .SH "DESCRIPTION" Fold data into a fixed length output array, with the intent to give each input bit approximately equal weight in determining the value of each output bit. The algorithm is from "A Better Key Schedule For DES\-like Ciphers" by Uri Blumenthal and Steven M. Bellovin, http://www.research.att.com/~smb/papers/ides.pdf, although the sample vectors provided by the paper are incorrect. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_new.30000644000000000000000000000302514273615506014513 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_new" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_new \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_new(Shishi_tkts * " tkts ", Shishi_asn1 " ticket ", Shishi_asn1 " enckdcreppart ", Shishi_asn1 " kdcrep ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "Shishi_asn1 ticket" 12 input ticket variable. .IP "Shishi_asn1 enckdcreppart" 12 input ticket detail variable. .IP "Shishi_asn1 kdcrep" 12 input KDC\-REP variable. .SH "DESCRIPTION" Allocate a new ticket and add it to the ticket set. Note that \fIticket\fP, \fIenckdcreppart\fP and \fIkdcrep\fP are stored by reference, so you must not de\-allocate them before the ticket is removed from the ticket set and de\-allocated. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_sendrecv_hint.30000644000000000000000000000334714273615414017046 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_sendrecv_hint" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_sendrecv_hint \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_sendrecv_hint(Shishi * " handle ", Shishi_asn1 " kdcreq ", Shishi_asn1 * " kdcrep ", Shishi_tkts_hint * " hint ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 Input variable with a prepared AS\-REQ. .IP "Shishi_asn1 * kdcrep" 12 Output pointer variable for decoded AS\-REP. .IP "Shishi_tkts_hint * hint" 12 Input \fBShishi_tkts_hint\fP structure with flags. .SH "DESCRIPTION" Sends a request to KDC, and receives the response. The provided request \fIkdcreq\fP and the hints structure \fIhint\fP, together determine transmitted data. On reception the reply is decoded as AS\-REP into \fIkdcrep\fP. .SH "RETURN VALUE" Return code is \fBSHISHI_OK\fP on success, \fBSHISHI_KDC_TIMEOUT\fP on timeouts, \fBSHISHI_ASN1_ERROR\fP on translation errors, and \fBSHISHI_GOT_KRBERROR\fP for other corruptions. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_tgtkt.30000644000000000000000000000224414273615466014676 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_tgtkt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_tgtkt \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tgs_tgtkt(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get Ticket\-granting\-ticket from TGS exchange. .SH "RETURN VALUE" Returns the ticket\-granting\-ticket used in the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_req_der.30000644000000000000000000000253314273615343014763 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_req_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_req_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_req_der(Shishi_as * " as ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "char ** out" 12 output array with newly allocated DER encoding of AS\-REQ. .IP "size_t * outlen" 12 length of output array with DER encoding of AS\-REQ. .SH "DESCRIPTION" DER encode AS\-REQ. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_process.30000644000000000000000000000335514273615415015023 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_process(Shishi * " handle ", Shishi_asn1 " asreq ", Shishi_asn1 " asrep ", const char * " string ", Shishi_asn1 * " enckdcreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 asreq" 12 Input variable holding the transmitted KDC\-REQ. .IP "Shishi_asn1 asrep" 12 Input variable holding the received KDC\-REP. .IP "const char * string" 12 Input variable with a null terminated password. .IP "Shishi_asn1 * enckdcreppart" 12 Output variable returning a new EncKDCRepPart. .SH "DESCRIPTION" Processes an AS client exchange and returns the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the password, and then calls \fBshishi_kdc_process()\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if the AS client exchange was successful. Multiple failure conditions are possible. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_set_cname.30000644000000000000000000000267214273615441016530 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_set_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_set_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_set_cname(Shishi * " handle ", Shishi_asn1 " krberror ", Shishi_name_type " name_type ", const char * " cname "[]);" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "Shishi_name_type name_type" 12 type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. .IP "const char * cname[]" 12 input array with principal name. .SH "DESCRIPTION" Set principal field in krberror to specified value. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_der.30000644000000000000000000000263714273615440015344 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_der(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "char ** out" 12 output array with newly allocated DER encoding of KRB\-ERROR. .IP "size_t * outlen" 12 length of output array with DER encoding of KRB\-ERROR. .SH "DESCRIPTION" DER encode KRB\-ERROR. The caller must deallocate the OUT buffer. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_postdated_p.30000644000000000000000000000310014273615500016031 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_postdated_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_postdated_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_postdated_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is postdated. The POSTDATED flag indicates that a ticket has been postdated. The application server can check the authtime field in the ticket to see when the original authentication occurred. Some services MAY choose to reject postdated tickets, or they may only accept them within a certain period after the original authentication. When the KDC issues a POSTDATED ticket, it will also be marked as INVALID, so that the application client MUST present the ticket to the KDC to be validated before use. .SH "RETURN VALUE" Returns non\-0 iff postdated flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asreq.30000644000000000000000000000215214273615420013763 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asreq(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new AS\-REQ, populated with some default values. .SH "RETURN VALUE" Returns the AS\-REQ or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_to_der_field.30000644000000000000000000000315114273615353016216 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_to_der_field" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_to_der_field \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asn1_to_der_field(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char ** " der ", size_t * " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 data that have field to extract. .IP "const char * field" 12 name of field in \fInode\fP to extract. .IP "char ** der" 12 output array that holds DER encoding of \fIfield\fP in \fInode\fP. .IP "size_t * len" 12 output variable with length of \fIder\fP output array. .SH "DESCRIPTION" Extract newly allocated DER representation of specified ASN.1 field. .SH "RETURN VALUE" Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_ctime_set.30000644000000000000000000000245014273615443016542 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_ctime_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_ctime_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_ctime_set(Shishi * " handle ", Shishi_asn1 " krberror ", const char * " t ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .IP "const char * t" 12 string with generalized time value to store in Krberror. .SH "DESCRIPTION" Store client time in Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_read.30000644000000000000000000000240614273615337014764 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * apreq" 12 output variable with newly allocated AP\-REQ. .SH "DESCRIPTION" Read DER encoded AP\-REQ from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_priv_der.30000644000000000000000000000266414273615456015543 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_priv_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_priv_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv_priv_der(Shishi_priv * " priv ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 priv as allocated by \fBshishi_priv()\fP. .IP "char ** out" 12 output array with newly allocated DER encoding of PRIV. .IP "size_t * outlen" 12 length of output array with DER encoding of PRIV. .SH "DESCRIPTION" DER encode PRIV structure. Typically \fBshishi_priv_build()\fP is used to build the PRIV structure first. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_set_authenticator.30000644000000000000000000000350614273615340017572 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_set_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_set_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_set_authenticator(Shishi * " handle ", Shishi_asn1 " apreq ", int32_t " etype ", uint32_t " kvno ", const char * " buf ", size_t " buflen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ to add authenticator field to. .IP "int32_t etype" 12 encryption type used to encrypt authenticator. .IP "uint32_t kvno" 12 version of the key used to encrypt authenticator. .IP "const char * buf" 12 input array with encrypted authenticator. .IP "size_t buflen" 12 size of input array with encrypted authenticator. .SH "DESCRIPTION" Set the encrypted authenticator field in the AP\-REP. The encrypted data is usually created by calling \fBshishi_encrypt()\fP on the DER encoded authenticator. To save time, you may want to use \fBshishi_apreq_add_authenticator()\fP instead, which calculates the encrypted data and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_value_set.30000644000000000000000000000241214273615431015510 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_value_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_value_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_key_value_set(Shishi_key * " key ", const char * " value ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .IP "const char * value" 12 input array with key data. .SH "DESCRIPTION" Set the key value and length in key structure. The value is copied into the key (in other words, you can deallocate \fIvalue\fP right after calling this function without modifying the value inside the key). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_rep_process.30000644000000000000000000000260714273615343015670 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_rep_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_rep_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_rep_process(Shishi_as * " as ", Shishi_key * " key ", const char * " password ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_key * key" 12 user's key, used to encrypt the encrypted part of the AS\-REP. .IP "const char * password" 12 user's password, used if key is NULL. .SH "DESCRIPTION" Process new AS\-REP and set ticket. The key is used to decrypt the AP\-REP. If both key and password is NULL, the user is queried for it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_der.30000644000000000000000000000262014273615332014753 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_der(Shishi_ap * " ap ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char ** out" 12 pointer to output array with der encoding of AP\-REQ. .IP "size_t * outlen" 12 pointer to length of output array with der encoding of AP\-REQ. .SH "DESCRIPTION" Build AP\-REQ using \fBshishi_ap_req_build()\fP and DER encode it. \fIout\fP is allocated by this function, and it is the responsibility of caller to deallocate it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_asn1.30000644000000000000000000000226114273615333015045 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_asn1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_asn1 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_asn1(Shishi_ap * " ap ", Shishi_asn1 * " apreq ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 * apreq" 12 output AP\-REQ variable. .SH "DESCRIPTION" Build AP\-REQ using \fBshishi_ap_req_build()\fP and return it. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_read.30000644000000000000000000000246314273615401016333 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_read(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " encapreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * encapreppart" 12 output variable with newly allocated EncAPRepPart. .SH "DESCRIPTION" Read DER encoded EncAPRepPart from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror.30000644000000000000000000000217114273615437014511 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_krberror(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new KRB\-ERROR, populated with some default values. .SH "RETURN VALUE" Returns the KRB\-ERROR or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_verify_asn1.30000644000000000000000000000240714273615334016433 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_verify_asn1" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_verify_asn1 \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_verify_asn1(Shishi_ap * " ap ", Shishi_asn1 " aprep ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 aprep" 12 input AP\-REP. .SH "DESCRIPTION" Set the AP\-REP in the AP exchange using \fBshishi_ap_rep_set()\fP and verify it using \fBshishi_ap_rep_verify()\fP. .SH "RETURN VALUE" Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_crypto.30000644000000000000000000000372314273615372014203 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_crypto" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_crypto \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_crypto * shishi_crypto(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " iv ", size_t " ivlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to encrypt with. .IP "int keyusage" 12 integer specifying what this key will encrypt/decrypt. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .SH "DESCRIPTION" Initialize a crypto context. This store a key, keyusage, encryption type and initialization vector in a "context", and the caller can then use this context to perform encryption via \fBshishi_crypto_encrypt()\fP and decryption via \fBshishi_crypto_encrypt()\fP without supplying all those details again. The functions also takes care of propagating the IV between calls. When the application no longer need to use the context, it should deallocate resources associated with it by calling \fBshishi_crypto_close()\fP. .SH "RETURN VALUE" Return a newly allocated crypto context. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_get_enc_part_etype.30000644000000000000000000000243614273615417020053 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_get_enc_part_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_get_enc_part_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_get_enc_part_etype(Shishi * " handle ", Shishi_asn1 " kdcrep ", int32_t * " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP variable to get value from. .IP "int32_t * etype" 12 output variable that holds the value. .SH "DESCRIPTION" Extract KDC\-REP.enc\-part.etype. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_read_inline.30000644000000000000000000000343514273615346016057 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_read_inline" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_read_inline \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asn1_read_inline(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char * " data ", size_t * " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 variable to read field from. .IP "const char * field" 12 name of field in \fInode\fP to read. .IP "char * data" 12 pre\-allocated output buffer that will hold ASN.1 field data. .IP "size_t * datalen" 12 on input, maximum size of output buffer, on output, actual size of output buffer. .SH "DESCRIPTION" Extract data stored in a ASN.1 field into a fixed size buffer allocated by caller. Note that since it is difficult to predict the length of the field, it is often better to use \fBshishi_asn1_read()\fP instead. .SH "RETURN VALUE" Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys.30000644000000000000000000000222514273615434013631 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys(Shishi * " handle ", Shishi_keys ** " keys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_keys ** keys" 12 output pointer to newly allocated keys handle. .SH "DESCRIPTION" Get a new key set handle. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_client_set.30000644000000000000000000000246714273615417016350 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_client_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_client_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_client_set(Shishi * " handle ", Shishi_asn1 " kdcrep ", const char * " client ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 Kdcrep variable to set server name field in. .IP "const char * client" 12 zero\-terminated string with principal name on RFC 1964 form. .SH "DESCRIPTION" Set the client name field in the KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_print.30000644000000000000000000000233614273615337015207 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 apreq" 12 AP\-REQ to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of AP\-REQ to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_from_file.30000644000000000000000000000231614273615507015667 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_from_file(Shishi_tkts * " tkts ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * filename" 12 filename to read tickets from. .SH "DESCRIPTION" Read tickets from file and add them to the ticket set. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_parse.30000644000000000000000000000242714273615337015166 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * apreq" 12 output variable with newly allocated AP\-REQ. .SH "DESCRIPTION" Read ASCII armored DER encoded AP\-REQ from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_name.30000644000000000000000000000206214273615432014443 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_name" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_name \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_key_name(Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_key * key" 12 structure that holds key information .SH "DESCRIPTION" Calls shishi_cipher_name for key type. .SH "RETURN VALUE" Return name of key. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_set_enc_part.30000644000000000000000000000341014273615420016644 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_set_enc_part" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_set_enc_part \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_set_enc_part(Shishi * " handle ", Shishi_asn1 " kdcrep ", int32_t " etype ", uint32_t " kvno ", const char * " buf ", size_t " buflen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP to add enc\-part field to. .IP "int32_t etype" 12 encryption type used to encrypt enc\-part. .IP "uint32_t kvno" 12 key version number. .IP "const char * buf" 12 input array with encrypted enc\-part. .IP "size_t buflen" 12 size of input array with encrypted enc\-part. .SH "DESCRIPTION" Set the encrypted enc\-part field in the KDC\-REP. The encrypted data is usually created by calling \fBshishi_encrypt()\fP on the DER encoded enc\-part. To save time, you may want to use \fBshishi_kdcrep_add_enc_part()\fP instead, which calculates the encrypted data and calls this function in one step. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_encapreppart_set.30000644000000000000000000000221514273615335016674 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_encapreppart_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_encapreppart_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_encapreppart_set(Shishi_ap * " ap ", Shishi_asn1 " encapreppart ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart to store in AP. .SH "DESCRIPTION" Set the EncAPRepPart in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_to_der.30000644000000000000000000000274214273615354015061 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_to_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_to_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asn1_to_der(Shishi * " handle ", Shishi_asn1 " node ", char ** " der ", size_t * " len ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 data to convert to DER. .IP "char ** der" 12 output array that holds DER encoding of \fInode\fP. .IP "size_t * len" 12 output variable with length of \fIder\fP output array. .SH "DESCRIPTION" Extract newly allocated DER representation of specified ASN.1 data. .SH "RETURN VALUE" Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authorize_strcmp.30000644000000000000000000000265714273615367016276 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authorize_strcmp" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authorize_strcmp \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authorize_strcmp(Shishi * " handle ", const char * " principal ", const char * " authzname ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle allocated by \fBshishi_init()\fP. .IP "const char * principal" 12 string with desired principal name. .IP "const char * authzname" 12 authorization name. .SH "DESCRIPTION" Authorization of \fIauthzname\fP against desired \fIprincipal\fP according to "basic" authentication, i.e., testing for identical strings. .SH "RETURN VALUE" Returns 1 if \fIauthzname\fP is authorized for services by the encrypted principal, and 0 otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt_ivupdate.30000644000000000000000000000526014273615377016241 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt_ivupdate" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt_ivupdate \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt_ivupdate(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", const char * " iv ", size_t " ivlen ", char ** " ivout ", size_t * " ivoutlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "char ** ivout" 12 output array with newly allocated updated initialization vector. .IP "size_t * ivoutlen" 12 size of output array with updated initialization vector. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_default_ccache.30000644000000000000000000000230514273615504016632 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_default_ccache" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_default_ccache \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_tkts_default_ccache(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get filename of default ccache filename. .SH "RETURN VALUE" Returns the default ccache filename used in the library. The string is not a copy, so don't modify or deallocate it. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_encasreppart.30000644000000000000000000000214314273615352016265 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_encasreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_encasreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_encasreppart(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for EncASRepPart. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_ticket.30000644000000000000000000000206714273615474015033 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tkt_ticket(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Get ASN.1 Ticket structure from ticket. .SH "RETURN VALUE" Returns actual ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509cert_default_file_set.30000644000000000000000000000271314273615452017621 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509cert_default_file_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509cert_default_file_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_x509cert_default_file_set(Shishi * " handle ", const char * " x509certfile ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "const char * x509certfile" 12 string with new default x509 client certificate file name, or NULL to reset to default. .SH "DESCRIPTION" Set the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_rep_process.30000644000000000000000000000225714273615470016064 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_rep_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_rep_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs_rep_process(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Process new TGS\-REP and set ticket. The key to decrypt the TGS\-REP is taken from the EncKDCRepPart of the TGS tgticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_from_ccache_mem.30000644000000000000000000000340314273615504017007 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_from_ccache_mem" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_from_ccache_mem \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_from_ccache_mem(Shishi * " handle ", const char * " data ", size_t " len ", Shishi_tkts ** " outtkts ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * data" 12 constant memory buffer with ccache of \fIlen\fP size. .IP "size_t len" 12 size of memory buffer with ccache data. .IP "Shishi_tkts ** outtkts" 12 pointer to ticket set that will be allocated and populated, must be deallocated by caller on succes. .SH "DESCRIPTION" Read tickets from a ccache data structure, and add them to the ticket set. The ccache format is proprietary, and this function support (at least) the 0x0504 format. See the section The Credential Cache Binary File Format in the Shishi manual for a description of the file format. .SH "RETURNS" Returns \fBSHISHI_CCACHE_ERROR\fP if the data does not represent a valid ccache structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_keys_from_keytab_mem.30000644000000000000000000000346114273615437017057 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_keys_from_keytab_mem" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_keys_from_keytab_mem \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_keys_from_keytab_mem(Shishi * " handle ", const char * " data ", size_t " len ", Shishi_keys ** " outkeys ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * data" 12 constant memory buffer with keytab of \fIlen\fP size. .IP "size_t len" 12 size of memory buffer with keytab data. .IP "Shishi_keys ** outkeys" 12 pointer to key set that will be allocated and populated, must be deallocated by caller on succes. .SH "DESCRIPTION" Create a new key set populated with keys from a MIT keytab data structure read from a memory block. The format of keytab's is proprietary, and this function support the 0x0501 and 0x0502 formats. See the section The MIT Kerberos Keytab Binary File Format in the Shishi manual for a description of the reverse\-engineered format. .SH "RETURNS" Returns \fBSHISHI_KEYTAB_ERROR\fP if the data does not represent a valid keytab structure, and \fBSHISHI_OK\fP on success. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_crypto_decrypt.30000644000000000000000000000327714273615372015741 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_crypto_decrypt" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_crypto_decrypt \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_crypto_decrypt(Shishi_crypto * " ctx ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi_crypto * ctx" 12 crypto context as returned by \fBshishi_crypto()\fP. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling \fBshishi_crypto_close()\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_krberror_set.30000644000000000000000000000217514273615471016243 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_krberror_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_krberror_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tgs_krberror_set(Shishi_tgs * " tgs ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "Shishi_asn1 krberror" 12 krberror to store in TGS. .SH "DESCRIPTION" Set the KRB\-ERROR in the TGS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_authenticator.30000644000000000000000000000214714273615352016454 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_authenticator(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for Authenticator. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_read.30000644000000000000000000000325514273615346014521 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_read" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_read \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_asn1_read(Shishi * " handle ", Shishi_asn1 " node ", const char * " field ", char ** " data ", size_t * " datalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 node" 12 ASN.1 variable to read field from. .IP "const char * field" 12 name of field in \fInode\fP to read. .IP "char ** data" 12 newly allocated output buffer that will hold ASN.1 field data. .IP "size_t * datalen" 12 actual size of output buffer. .SH "DESCRIPTION" Extract data stored in a ASN.1 field into a newly allocated buffer. The buffer will always be zero terminated, even though \fIdatalen\fP will not include the added zero. .SH "RETURN VALUE" Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_req_set.30000644000000000000000000000213014273615342014774 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_req_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_req_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_as_req_set(Shishi_as * " as ", Shishi_asn1 " asreq ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .IP "Shishi_asn1 asreq" 12 asreq to store in AS. .SH "DESCRIPTION" Set the AS\-REQ in the AS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv_key.30000644000000000000000000000217614273615455014516 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv_key" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv_key \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_key * shishi_priv_key(Shishi_priv * " priv ");" .SH ARGUMENTS .IP "Shishi_priv * priv" 12 structure that holds information about PRIV exchange .SH "DESCRIPTION" Get key from PRIV exchange. .SH "RETURN VALUE" Returns the key used in the PRIV exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs.30000644000000000000000000000223314273615466013457 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tgs(Shishi * " handle ", Shishi_tgs ** " tgs ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_tgs ** tgs" 12 holds pointer to newly allocate Shishi_tgs structure. .SH "DESCRIPTION" Allocate a new TGS exchange variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket_realm_get.30000644000000000000000000000252114273615472016161 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket_realm_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket_realm_get \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ticket_realm_get(Shishi * " handle ", Shishi_asn1 " ticket ", char ** " realm ", size_t * " realmlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 ticket" 12 input variable with ticket info. .IP "char ** realm" 12 output array with newly allocated name of realm in ticket. .IP "size_t * realmlen" 12 size of output array. .SH "DESCRIPTION" Extract realm from ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ticket.30000644000000000000000000000216114273615472014142 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_ticket(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new ASN.1 Ticket, populated with some default values. .SH "RETURN VALUE" Returns the ticket or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcrep_get_ticket.30000644000000000000000000000242114273615420016321 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcrep_get_ticket" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcrep_get_ticket \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcrep_get_ticket(Shishi * " handle ", Shishi_asn1 " kdcrep ", Shishi_asn1 * " ticket ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcrep" 12 KDC\-REP variable to get ticket from. .IP "Shishi_asn1 * ticket" 12 output variable to hold extracted ticket. .SH "DESCRIPTION" Extract ticket from KDC\-REP. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_key_from_string.30000644000000000000000000000356614273615434016070 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_key_from_string" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_key_from_string \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_key_from_string(Shishi * " handle ", int32_t " type ", const char * " password ", size_t " passwordlen ", const char * " salt ", size_t " saltlen ", const char * " parameter ", Shishi_key ** " outkey ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .IP "int32_t type" 12 type of key. .IP "const char * password" 12 input array containing password. .IP "size_t passwordlen" 12 length of input array containing password. .IP "const char * salt" 12 input array containing salt. .IP "size_t saltlen" 12 length of input array containing salt. .IP "const char * parameter" 12 input array with opaque encryption type specific information. .IP "Shishi_key ** outkey" 12 pointer to structure that will hold newly created key information .SH "DESCRIPTION" Create a new Key information structure, and set the key type and key value using \fBshishi_string_to_key()\fP. KEY contains a newly allocated structure only if this function is successful. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_priv.30000644000000000000000000000224614273615455013644 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_priv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_priv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_priv(Shishi * " handle ", Shishi_priv ** " priv ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_priv ** priv" 12 pointer to new structure that holds information about PRIV exchange .SH "DESCRIPTION" Create a new PRIV exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_hw_authent_p.30000644000000000000000000000300414273615501016214 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_hw_authent_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_hw_authent_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_hw_authent_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is authenticated using a hardware token. The PRE\-AUTHENT and HW\-AUTHENT flags provide additional information about the initial authentication, regardless of whether the current ticket was issued directly (in which case INITIAL will also be set) or issued on the basis of a ticket\-granting ticket (in which case the INITIAL flag is clear, but the PRE\-AUTHENT and HW\-AUTHENT flags are carried forward from the ticket\-granting ticket). .SH "RETURN VALUE" Returns non\-0 iff hw\-authent flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_build.30000644000000000000000000000216214273615332015301 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_build" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_build \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_build(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Checksum data in authenticator and add ticket and authenticator to AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_expire.30000644000000000000000000000213514273615507015220 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_expire" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_expire \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_expire(Shishi_tkts * " tkts ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .SH "DESCRIPTION" Remove expired tickets from ticket set. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_pretty_print.30000644000000000000000000000216214273615503016300 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_pretty_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_pretty_print \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tkt_pretty_print(Shishi_tkt * " tkt ", FILE * " fh ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "FILE * fh" 12 file handle open for writing. .SH "DESCRIPTION" Print a human readable representation of a ticket to file handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_x509key_default_file.30000644000000000000000000000243614273615453016604 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_x509key_default_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_x509key_default_file \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_x509key_default_file(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle create by \fBshishi_init()\fP. .SH "DESCRIPTION" Get filename for default X.509 key. .SH "RETURN VALUE" Returns the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_find_for_clientserver.30000644000000000000000000000262214273615510020272 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_find_for_clientserver" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_find_for_clientserver \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_tkt * shishi_tkts_find_for_clientserver(Shishi_tkts * " tkts ", const char * " client ", const char * " server ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * client" 12 client name to find ticket for. .IP "const char * server" 12 server name to find ticket for. .SH "DESCRIPTION" Short\-hand function for searching the ticket set for a ticket for the given client and server. See \fBshishi_tkts_find()\fP. .SH "RETURN VALUE" Returns a ticket if found, or NULL. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator.30000644000000000000000000000234214273615361015527 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_authenticator(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. .SH "RETURN VALUE" Returns the authenticator or NULL on failure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_error.30000644000000000000000000000242014273615407014004 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_error" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_error \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_error(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Extracts detailed information on the most recently occurred error condition. Note that memory is managed by the Shishi library, so the returned string must not be deallocated. .SH "RETURN VALUE" Returns a pointer to a string describing an error. The string must not be deallocated by the caller. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_init_with_paths.30000644000000000000000000000331514273615515015674 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_init_with_paths" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_init_with_paths \- API function .SH SYNOPSIS .B #include .sp .BI "int shisa_init_with_paths(Shisa ** " dbh ", const char * " file ");" .SH ARGUMENTS .IP "Shisa ** dbh" 12 Returned pointer to a created Shisa library handle. .IP "const char * file" 12 Filename of system configuration, or \fBNULL\fP. .SH "DESCRIPTION" Creates a Shisa library handle, using \fBshisa()\fP, but reading the system configuration file at the location \fIfile\fP, or at the default location, should \fIfile\fP be \fBNULL\fP. The path to the default system configuration file is decided at compile time ($sysconfdir/shisa.conf). The handle is allocated regardless of return value, the only exception being \fBSHISA_INIT_ERROR\fP, which indicates a problem in allocating the handle. Other error conditions arise while reading a file. .SH "RETURN VALUE" Returns \fBSHISA_OK\fP, or an error code. The value \fBSHISA_INIT_ERROR\fP indicates a failure to create the handle. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_default_userdirectory.30000644000000000000000000000301014273615370020074 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_default_userdirectory" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_default_userdirectory \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_cfg_default_userdirectory(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" The default user directory, referred to for Shishi ticket cache and other purposes, is normally computed by appending the fixed string "/.shishi" to the content of the environment variable $HOME. This hard coded directory, i.e., "$HOME/.shishi/", can be replaced by whatever complete path is stored in the environment variable $SHISHI_HOME. .SH "RETURN VALUE" Returns the user's directory name where the Shishi library will search for configuration files, ticket caches, etcetera. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_verify.30000644000000000000000000000341014273615375014163 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_verify" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_verify \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_verify(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int " cksumtype ", const char * " in ", size_t " inlen ", const char * " cksum ", size_t " cksumlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to verify checksum with. .IP "int keyusage" 12 integer specifying what this key is used for. .IP "int cksumtype" 12 the checksum algorithm to use. .IP "const char * in" 12 input array with data that was integrity protected. .IP "size_t inlen" 12 size of input array with data that was integrity protected. .IP "const char * cksum" 12 input array with alleged checksum of data. .IP "size_t cksumlen" 12 size of input array with alleged checksum of data. .SH "DESCRIPTION" Verify checksum of data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkts_to_file.30000644000000000000000000000225614273615507015351 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkts_to_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkts_to_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkts_to_file(Shishi_tkts * " tkts ", const char * " filename ");" .SH ARGUMENTS .IP "Shishi_tkts * tkts" 12 ticket set handle as allocated by \fBshishi_tkts()\fP. .IP "const char * filename" 12 filename to write tickets to. .SH "DESCRIPTION" Write tickets in set to file. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_set_user_data.30000644000000000000000000000257614273615465016513 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_set_user_data" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_set_user_data \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_set_user_data(Shishi * " handle ", Shishi_asn1 " safe ", const char * " userdata ", size_t " userdatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "const char * userdata" 12 input user application to store in SAFE. .IP "size_t userdatalen" 12 size of input user application to store in SAFE. .SH "DESCRIPTION" Set the application data in SAFE. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authorized_p.30000644000000000000000000000311214273615367015354 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authorized_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authorized_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authorized_p(Shishi * " handle ", Shishi_tkt * " tkt ", const char * " authzname ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle allocated by \fBshishi_init()\fP. .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "const char * authzname" 12 authorization name. .SH "DESCRIPTION" Simplistic authorization of \fIauthzname\fP against encrypted client principal name inside ticket. For "basic" authentication type, the principal name must coincide with \fIauthzname\fP. The "k5login" authentication type attempts the MIT/Heimdal method of parsing the file "~/.k5login" for additional equivalence names. .SH "RETURN VALUE" Returns 1 if \fIauthzname\fP is authorized for services by the encrypted principal, and 0 otherwise. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_seqnumber_get.30000644000000000000000000000254014273615402020255 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_seqnumber_get" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_seqnumber_get \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_seqnumber_get(Shishi * " handle ", Shishi_asn1 " encapreppart ", uint32_t * " seqnumber ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 encapreppart" 12 EncAPRepPart as allocated by \fBshishi_encapreppart()\fP. .IP "uint32_t * seqnumber" 12 output integer with sequence number field. .SH "DESCRIPTION" Extract sequence number field from EncAPRepPart. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_server.30000644000000000000000000000304514273615442016074 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_server" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_server \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_server(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " server ", size_t * " serverlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .IP "char ** server" 12 pointer to newly allocated zero terminated string containing server name. May be \fBNULL\fP (to only populate \fIserverlen\fP). .IP "size_t * serverlen" 12 pointer to length of \fIserver\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIserver\fP). .SH "DESCRIPTION" Return server principal name in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_cusec_set.30000644000000000000000000000252514273615363017571 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_cusec_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_cusec_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_cusec_set(Shishi * " handle ", Shishi_asn1 " authenticator ", uint32_t " cusec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "uint32_t cusec" 12 client microseconds to set in authenticator, 0\-999999. .SH "DESCRIPTION" Set the cusec field in the Authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_krbsafe.30000644000000000000000000000212114273615353015210 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_krbsafe" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_krbsafe \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_krbsafe(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for KRB\-SAFE. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_apreq_use_session_key_p.30000644000000000000000000000235714273615340017576 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_apreq_use_session_key_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_apreq_use_session_key_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_apreq_use_session_key_p(Shishi * " handle ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 apreq" 12 AP\-REQ as allocated by \fBshishi_apreq()\fP. .SH "DESCRIPTION" Return non\-0 iff the "Use session key" option is set in the AP\-REQ. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_padata.30000644000000000000000000000247614273615354015620 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_padata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_padata \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_padata(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of PA\-DATA and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_kdcreq.30000644000000000000000000000252314273615360015625 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_kdcreq" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_kdcreq \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_kdcreq(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of AS\-REQ, TGS\-REQ or KDC\-REQ and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_decrypt_iv_etype.30000644000000000000000000000510614273615376016242 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_decrypt_iv_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_decrypt_iv_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_decrypt_iv_etype(Shishi * " handle ", Shishi_key * " key ", int " keyusage ", int32_t " etype ", const char * " iv ", size_t " ivlen ", const char * " in ", size_t " inlen ", char ** " out ", size_t * " outlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_key * key" 12 key to decrypt with. .IP "int keyusage" 12 integer specifying what this key is decrypting. .IP "int32_t etype" 12 integer specifying what cipher to use. .IP "const char * iv" 12 input array with initialization vector .IP "size_t ivlen" 12 size of input array with initialization vector. .IP "const char * in" 12 input array with data to decrypt. .IP "size_t inlen" 12 size of input array with data to decrypt. .IP "char ** out" 12 output array with newly allocated decrypted data. .IP "size_t * outlen" 12 output variable with size of newly allocated output array. .SH "DESCRIPTION" Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req_set.30000644000000000000000000000214614273615467015205 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_tgs_req_set(Shishi_tgs * " tgs ", Shishi_asn1 " tgsreq ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .IP "Shishi_asn1 tgsreq" 12 tgsreq to store in TGS. .SH "DESCRIPTION" Set the TGS\-REQ in the TGS exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_print.30000644000000000000000000000234514273615421015342 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_print" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_print \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_print(Shishi * " handle ", FILE * " fh ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for writing. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ to print. .SH "DESCRIPTION" Print ASCII armored DER encoding of KDC\-REQ to file. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_kdcreq_forwardable_p.30000644000000000000000000000274114273615424017020 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_kdcreq_forwardable_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_kdcreq_forwardable_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_kdcreq_forwardable_p(Shishi * " handle ", Shishi_asn1 " kdcreq ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 kdcreq" 12 KDC\-REQ variable to get kdc\-options field from. .SH "DESCRIPTION" Determine if KDC\-Option forwardable flag is set. The FORWARDABLE option indicates that the ticket to be issued is to have its forwardable flag set. It may only be set on the initial request, or in a subsequent request if the ticket\-granting ticket on which it is based is also forwardable. .SH "RETURN VALUE" Returns non\-0 iff forwardable flag is set in KDC\-REQ. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_may_postdate_p.30000644000000000000000000000401514273615500016541 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_may_postdate_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_may_postdate_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_may_postdate_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket may be used to grant postdated tickets. The MAY\-POSTDATE flag in a ticket is normally only interpreted by the ticket\-granting service. It can be ignored by application servers. This flag MUST be set in a ticket\-granting ticket in order to issue a postdated ticket based on the presented ticket. It is reset by default; it MAY be requested by a client by setting the ALLOW\- POSTDATE option in the KRB_AS_REQ message. This flag does not allow a client to obtain a postdated ticket\-granting ticket; postdated ticket\-granting tickets can only by obtained by requesting the postdating in the KRB_AS_REQ message. The life (endtime\-starttime) of a postdated ticket will be the remaining life of the ticket\-granting ticket at the time of the request, unless the RENEWABLE option is also set, in which case it can be the full life (endtime\-starttime) of the ticket\-granting ticket. The KDC MAY limit how far in the future a ticket may be postdated. .SH "RETURN VALUE" Returns non\-0 iff may\-postdate flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_as_sendrecv.30000644000000000000000000000225214273615346015154 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_as_sendrecv" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_as_sendrecv \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_as_sendrecv(Shishi_as * " as ");" .SH ARGUMENTS .IP "Shishi_as * as" 12 structure that holds information about AS exchange .SH "DESCRIPTION" Send AS\-REQ and receive AS\-REP or KRB\-ERROR. This is the initial authentication, usually used to acquire a Ticket Granting Ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_set.30000644000000000000000000000213014273615331014767 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_set \- API function .SH SYNOPSIS .B #include .sp .BI "void shishi_ap_req_set(Shishi_ap * " ap ", Shishi_asn1 " apreq ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_asn1 apreq" 12 apreq to store in AP. .SH "DESCRIPTION" Set the AP\-REQ in the AP exchange. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_cname.30000644000000000000000000000232614273615441017226 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_cname" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_cname \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_cname(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove client realm field in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_process.30000644000000000000000000000251514273615332015662 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_process" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_process \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_process(Shishi_ap * " ap ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_key * key" 12 cryptographic key used to decrypt ticket in AP\-REQ. .SH "DESCRIPTION" Decrypt ticket in AP\-REQ using supplied key and decrypt Authenticator in AP\-REQ using key in decrypted ticket, and on success set the Ticket and Authenticator fields in the AP exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_default.30000644000000000000000000000250314273615453016343 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_default" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_default \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_principal_default(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .SH "DESCRIPTION" The default principal name is the name in the environment variable USER, or LOGNAME for some systems, but it can be overridden by specifying the environment variable SHISHI_USER. .SH "RETURN VALUE" Returns the default principal name used by the library. (Not a copy of it, so don't modify or deallocate it.) .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cipher_parse.30000644000000000000000000000214714273615373015327 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cipher_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cipher_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cipher_parse(const char * " cipher ");" .SH ARGUMENTS .IP "const char * cipher" 12 name of encryption type, e.g. "des3\-cbc\-sha1\-kd". .SH "DESCRIPTION" Get cipher number by parsing string. .SH "RETURN VALUE" Return encryption type corresponding to a string. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_remove_crealm.30000644000000000000000000000233114273615441017402 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_remove_crealm" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_remove_crealm \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_remove_crealm(Shishi * " handle ", Shishi_asn1 " krberror ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 krberror as allocated by \fBshishi_krberror()\fP. .SH "DESCRIPTION" Remove client realm field in KRB\-ERROR. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_random_subkey_etype.30000644000000000000000000000262614273615366022501 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_random_subkey_etype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_random_subkey_etype \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_random_subkey_etype(Shishi * " handle ", Shishi_asn1 " authenticator ", int " etype ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int etype" 12 encryption type of random key to generate. .SH "DESCRIPTION" Generate random subkey of indicated encryption type, and store it in the authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_set_tktoptionsraw.30000644000000000000000000000325214273615326017142 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_set_tktoptionsraw" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_set_tktoptionsraw \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_set_tktoptionsraw(Shishi_ap * " ap ", Shishi_tkt * " tkt ", int " options ", int32_t " cksumtype ", const char * " data ", size_t " len ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in AP. .IP "int options" 12 AP\-REQ options to set in AP. .IP "int32_t cksumtype" 12 authenticator checksum type to set in AP. .IP "const char * data" 12 input array with data to store in checksum field in Authenticator. .IP "size_t len" 12 length of input array with data to store in checksum field in Authenticator. .SH "DESCRIPTION" Set the ticket (see \fBshishi_ap_tkt_set()\fP) and set the AP\-REQ apoptions (see \fBshishi_apreq_options_set()\fP) and set the raw Authenticator checksum data. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_rep_verify_der.30000644000000000000000000000256514273615334016350 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_rep_verify_der" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_rep_verify_der \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_rep_verify_der(Shishi_ap * " ap ", char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "char * der" 12 input array with DER encoded AP\-REP. .IP "size_t derlen" 12 length of input array with DER encoded AP\-REP. .SH "DESCRIPTION" DER decode AP\-REP and set it in AP exchange using \fBshishi_ap_rep_der_set()\fP and verify it using \fBshishi_ap_rep_verify()\fP. .SH "RETURN VALUE" Returns SHISHI_OK, SHISHI_APREP_VERIFY_FAILED or an error. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_etype_info.30000644000000000000000000000251514273615355016522 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_etype_info" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_etype_info \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_etype_info(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of ETYPE\-INFO and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_safe.30000644000000000000000000000222414273615463014573 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_safe" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_safe \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_safe_safe(Shishi_safe * " safe ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 structure that holds information about SAFE exchange .SH "DESCRIPTION" Get ASN.1 SAFE structured from SAFE exchange. .SH "RETURN VALUE" Returns the ASN.1 safe in the SAFE exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_cfg_from_file.30000644000000000000000000000231614273615370015437 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_cfg_from_file" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_cfg_from_file \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_cfg_from_file(Shishi * " handle ", const char * " cfg ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi library handle created by \fBshishi_init()\fP. .IP "const char * cfg" 12 Name of configuration file. .SH "DESCRIPTION" Configures the shishi library using a configuration file located at \fIcfg\fP. .SH "RETURN VALUE" Returns \fBSHISHI_OK\fP if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tgs_req.30000644000000000000000000000221014273615466014321 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tgs_req" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tgs_req \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_tgs_req(Shishi_tgs * " tgs ");" .SH ARGUMENTS .IP "Shishi_tgs * tgs" 12 structure that holds information about TGS exchange .SH "DESCRIPTION" Get the TGS\-REQ from TGS exchange. .SH "RETURN VALUE" Returns the generated TGS\-REQ from the TGS exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_asrep.30000644000000000000000000000211114273615351014702 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_asrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_asrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_asrep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for AS\-REP. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_set_tktoptionsasn1usage.30000644000000000000000000000344314273615327020243 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_set_tktoptionsasn1usage" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_set_tktoptionsasn1usage \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_set_tktoptionsasn1usage(Shishi_ap * " ap ", Shishi_tkt * " tkt ", int " options ", Shishi_asn1 " node ", const char * " field ", int " authenticatorcksumkeyusage ", int " authenticatorkeyusage ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in AP. .IP "int options" 12 AP\-REQ options to set in AP. .IP "Shishi_asn1 node" 12 input ASN.1 structure to store as authenticator checksum data. .IP "const char * field" 12 field in ASN.1 structure to use. .IP "int authenticatorcksumkeyusage" 12 key usage for checksum in authenticator. .IP "int authenticatorkeyusage" 12 key usage for authenticator. .SH "DESCRIPTION" Set ticket, options and authenticator checksum data using \fBshishi_ap_set_tktoptionsdata()\fP. The authenticator checksum data is the DER encoding of the ASN.1 field provided. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_req_decode.30000644000000000000000000000216014273615332015423 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_req_decode" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_req_decode \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_req_decode(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Decode ticket in AP\-REQ and set the Ticket fields in the AP exchange. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_authenticator_add_authorizationdata.30000644000000000000000000000302614273615365022155 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_authenticator_add_authorizationdata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_authenticator_add_authorizationdata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_authenticator_add_authorizationdata(Shishi * " handle ", Shishi_asn1 " authenticator ", int32_t " adtype ", const char * " addata ", size_t " addatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 authenticator" 12 authenticator as allocated by \fBshishi_authenticator()\fP. .IP "int32_t adtype" 12 input authorization data type to add. .IP "const char * addata" 12 input authorization data to add. .IP "size_t addatalen" 12 size of input authorization data to add. .SH "DESCRIPTION" Add authorization data to authenticator. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_client.30000644000000000000000000000317514273615475015030 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_client" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_client \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_client(Shishi_tkt * " tkt ", char ** " client ", size_t * " clientlen ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .IP "char ** client" 12 pointer to newly allocated zero terminated string containing principal name. May be \fBNULL\fP (to only populate \fIclientlen\fP). .IP "size_t * clientlen" 12 pointer to length of \fIclient\fP on output, excluding terminating zero. May be \fBNULL\fP (to only populate \fIclient\fP). .SH "DESCRIPTION" Represent client principal name in Ticket KDC\-REP as zero\-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length \fIclientlen\fP does not include the terminating zero. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_etext.30000644000000000000000000000255714273615445015731 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_etext" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_etext \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_etext(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " etext ", size_t * " etextlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .IP "char ** etext" 12 output array with newly allocated error text. .IP "size_t * etextlen" 12 output length of error text. .SH "DESCRIPTION" Extract additional error text from server (possibly empty). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_principal_set.30000644000000000000000000000267614273615454015526 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_principal_set" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_principal_set \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_principal_set(Shishi * " handle ", Shishi_asn1 " namenode ", const char * " namefield ", const char * " name ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 namenode" 12 ASN.1 structure with principal in \fInamefield\fP. .IP "const char * namefield" 12 name of field in \fInamenode\fP containing principal name. .IP "const char * name" 12 null\-terminated string with principal name in RFC 1964 form. .SH "DESCRIPTION" Set principal name field in an ASN.1 structure to the given name. .SH "RETURN VALUE" Returns SHISHI_OK if successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_tkt_forwarded_p.30000644000000000000000000000275514273615477016053 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_tkt_forwarded_p" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_tkt_forwarded_p \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_tkt_forwarded_p(Shishi_tkt * " tkt ");" .SH ARGUMENTS .IP "Shishi_tkt * tkt" 12 input variable with ticket info. .SH "DESCRIPTION" Determine if ticket is forwarded. The FORWARDED flag is set by the TGS when a client presents a ticket with the FORWARDABLE flag set and requests a forwarded ticket by specifying the FORWARDED KDC option and supplying a set of addresses for the new ticket. It is also set in all tickets issued based on tickets with the FORWARDED flag set. Application servers may choose to process FORWARDED tickets differently than non\-FORWARDED tickets. .SH "RETURN VALUE" Returns non\-0 iff forwarded flag is set in ticket. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_authenticator_cksumtype.30000644000000000000000000000222214273615331020305 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_authenticator_cksumtype" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_authenticator_cksumtype \- API function .SH SYNOPSIS .B #include .sp .BI "int32_t shishi_ap_authenticator_cksumtype(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get the Authenticator Checksum Type in the AP exchange. .SH "RETURN VALUE" Return the authenticator checksum type. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_asn1_tgsrep.30000644000000000000000000000211514273615351015100 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_asn1_tgsrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_asn1_tgsrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_asn1_tgsrep(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Create new ASN.1 structure for TGS\-REP. .SH "RETURN VALUE" Returns ASN.1 structure. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_strerror.30000644000000000000000000000230714273615407014541 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_strerror" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_strerror \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_strerror(int " err ");" .SH ARGUMENTS .IP "int err" 12 shishi error code. .SH "DESCRIPTION" Converts the return code in \fIerr\fP to a human readable string. .SH "RETURN VALUE" Returns a pointer to a statically allocated string containing a description of the error with code \fIerr\fP. This string can be used to output a diagnostic message to the user. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_safe_verify.30000644000000000000000000000264114273615465015166 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_safe_verify" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_safe_verify \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_safe_verify(Shishi_safe * " safe ", Shishi_key * " key ");" .SH ARGUMENTS .IP "Shishi_safe * safe" 12 safe as allocated by \fBshishi_safe()\fP. .IP "Shishi_key * key" 12 key for session, used to verify checksum. .SH "DESCRIPTION" Verify checksum in KRB\-SAFE. Note that this follows RFC 1510bis and is incompatible with RFC 1510, although presumably few implementations use the RFC1510 algorithm. .SH "RETURN VALUE" Returns SHISHI_OK iff successful, SHISHI_SAFE_BAD_KEYTYPE if an incompatible key type is used, or SHISHI_SAFE_VERIFY_FAILED if the actual verification failed. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_encapreppart.30000644000000000000000000000224314273615334016021 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_encapreppart" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_encapreppart \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_ap_encapreppart(Shishi_ap * " ap ");" .SH ARGUMENTS .IP "Shishi_ap * ap" 12 structure that holds information about AP exchange .SH "DESCRIPTION" Get ASN.1 EncAPRepPart structure from AP exchange. .SH "RETURN VALUE" Returns the EncAPREPPart from the AP exchange, or NULL if not yet set or an error occured. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_der2asn1_tgsrep.30000644000000000000000000000247614273615356015674 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_der2asn1_tgsrep" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_der2asn1_tgsrep \- API function .SH SYNOPSIS .B #include .sp .BI "Shishi_asn1 shishi_der2asn1_tgsrep(Shishi * " handle ", const char * " der ", size_t " derlen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "const char * der" 12 input character array with DER encoding. .IP "size_t derlen" 12 length of input character array with DER encoding. .SH "DESCRIPTION" Decode DER encoding of TGS\-REP and create a ASN.1 structure. .SH "RETURN VALUE" Returns ASN.1 structure corresponding to DER data. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_edata.30000644000000000000000000000255714273615446015657 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_edata" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_edata \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_edata(Shishi * " handle ", Shishi_asn1 " krberror ", char ** " edata ", size_t * " edatalen ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 KRB\-ERROR structure with error code. .IP "char ** edata" 12 output array with newly allocated error data. .IP "size_t * edatalen" 12 output length of error data. .SH "DESCRIPTION" Extract additional error data from server (possibly empty). .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_encapreppart_parse.30000644000000000000000000000250414273615401016526 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_encapreppart_parse" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_encapreppart_parse \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_encapreppart_parse(Shishi * " handle ", FILE * " fh ", Shishi_asn1 * " encapreppart ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "FILE * fh" 12 file handle open for reading. .IP "Shishi_asn1 * encapreppart" 12 output variable with newly allocated EncAPRepPart. .SH "DESCRIPTION" Read ASCII armored DER encoded EncAPRepPart from file and populate given variable. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_ap_tktoptions.30000644000000000000000000000303614273615327015556 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_ap_tktoptions" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_ap_tktoptions \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_ap_tktoptions(Shishi * " handle ", Shishi_ap ** " ap ", Shishi_tkt * " tkt ", int " options ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_ap ** ap" 12 pointer to new structure that holds information about AP exchange .IP "Shishi_tkt * tkt" 12 ticket to set in newly created AP. .IP "int options" 12 AP\-REQ options to set in newly created AP. .SH "DESCRIPTION" Create a new AP exchange using \fBshishi_ap()\fP, and set the ticket and AP\-REQ apoptions using \fBshishi_ap_set_tktoptions()\fP. A random session key is added to the authenticator, using the same keytype as the ticket. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_generalize_now.30000644000000000000000000000231714273615410015662 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_generalize_now" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_generalize_now \- API function .SH SYNOPSIS .B #include .sp .BI "const char * shishi_generalize_now(Shishi * " handle ");" .SH ARGUMENTS .IP "Shishi * handle" 12 Shishi handle as allocated by \fBshishi_init()\fP. .SH "DESCRIPTION" Converts the current time to a KerberosTime string. The returned string must not be deallocated by the caller. .SH "RETURN VALUE" Returns a KerberosTime formatted string corresponding to the current time. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shishi_krberror_susec.30000644000000000000000000000245014273615444015711 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shishi_krberror_susec" 3 "1.0.3" "shishi" "shishi" .SH NAME shishi_krberror_susec \- API function .SH SYNOPSIS .B #include .sp .BI "int shishi_krberror_susec(Shishi * " handle ", Shishi_asn1 " krberror ", uint32_t * " susec ");" .SH ARGUMENTS .IP "Shishi * handle" 12 shishi handle as allocated by \fBshishi_init()\fP. .IP "Shishi_asn1 krberror" 12 Krberror as allocated by \fBshishi_krberror()\fP. .IP "uint32_t * susec" 12 output integer with server microseconds field. .SH "DESCRIPTION" Extract server microseconds field from Krberror. .SH "RETURN VALUE" Returns SHISHI_OK iff successful. .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/man/shisa_info.30000644000000000000000000000227014273615515013431 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "shisa_info" 3 "1.0.3" "shishi" "shishi" .SH NAME shisa_info \- API function .SH SYNOPSIS .B #include .sp .BI "void shisa_info(Shisa * " dbh ", const char * " format ", " ... ");" .SH ARGUMENTS .IP "Shisa * dbh" 12 Shisa library handle created by \fBshisa()\fP. .IP "const char * format" 12 printf style format string. .IP "..." 12 printf style arguments. .SH "DESCRIPTION" Prints an informational message to standard error. The text is composed from the arguments, like printf(3). .SH "REPORTING BUGS" Report bugs to . GNU Shishi home page: http://www.gnu.org/software/shishi/ General help using GNU software: http://www.gnu.org/gethelp/ .SH COPYRIGHT Copyright \(co 2002-2022 Simon Josefsson. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B shishi is maintained as a Texinfo manual. If the .B info and .B shishi programs are properly installed at your site, the command .IP .B info shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/Makefile.am0000644000000000000000000010370114273615324012503 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SUBDIRS = . cyclo if ENABLE_GTK_DOC SUBDIRS += reference endif EXTRA_DIST = gdoc gdoc-error components.dia components.png: components.dia $(DIA) --export=$@ --filter=png components.dia info_TEXINFOS = shishi.texi shishi_TEXINFOS = fdl-1.3.texi $(gdoc_TEXINFOS) \ shishi-api-error-labels.texi parse-datetime.texi \ components.png keytab.txt ccache.txt dist_man_MANS = shishi.1 shisa.1 shishid.1 keytab2shishi.1 ccache2shishi.1 \ $(gdoc_MANS) MAINTAINERCLEANFILES = $(dist_man_MANS) shishi.1: $(top_srcdir)/src/shishi.c $(top_srcdir)/src/shishi.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi client tool" \ --output=$@ $(top_builddir)/src/shishi$(EXEEXT) shisa.1: $(top_srcdir)/src/shisa.c $(top_srcdir)/src/shisa.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi database interface" \ --info-page=shishi \ --output=$@ $(top_builddir)/src/shisa$(EXEEXT) shishid.1: $(top_srcdir)/src/shishid.c $(top_srcdir)/src/shishid.ggo \ $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi KDC server" \ --output=$@ $(top_builddir)/src/shishid$(EXEEXT) keytab2shishi.1: $(top_srcdir)/src/keytab2shishi.c \ $(top_srcdir)/src/keytab2shishi.ggo $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi host key conversion tool" \ --output=$@ $(top_builddir)/src/keytab2shishi$(EXEEXT) ccache2shishi.1: $(top_srcdir)/src/ccache2shishi.c \ $(top_srcdir)/src/ccache2shishi.ggo $(top_srcdir)/configure.ac $(HELP2MAN) \ --name="Shishi user ticket conversion tool" \ --output=$@ $(top_builddir)/src/ccache2shishi$(EXEEXT) shishi-api-error-labels.texi: $(top_srcdir)/lib/error.c $(PERL) $(srcdir)/gdoc-error $(top_srcdir)/lib/error.c > $@ gdoc_MANS = gdoc_MANS += man/shishi_ap.3 gdoc_MANS += man/shishi_ap_etype.3 gdoc_MANS += man/shishi_ap_nosubkey.3 gdoc_MANS += man/shishi_ap_done.3 gdoc_MANS += man/shishi_ap_set_tktoptions.3 gdoc_MANS += man/shishi_ap_set_tktoptionsdata.3 gdoc_MANS += man/shishi_ap_set_tktoptionsraw.3 gdoc_MANS += man/shishi_ap_set_tktoptionsasn1usage.3 gdoc_MANS += man/shishi_ap_tktoptions.3 gdoc_MANS += man/shishi_ap_tktoptionsdata.3 gdoc_MANS += man/shishi_ap_tktoptionsraw.3 gdoc_MANS += man/shishi_ap_etype_tktoptionsdata.3 gdoc_MANS += man/shishi_ap_tktoptionsasn1usage.3 gdoc_MANS += man/shishi_ap_tkt.3 gdoc_MANS += man/shishi_ap_tkt_set.3 gdoc_MANS += man/shishi_ap_authenticator_cksumdata.3 gdoc_MANS += man/shishi_ap_authenticator_cksumdata_set.3 gdoc_MANS += man/shishi_ap_authenticator_cksumraw_set.3 gdoc_MANS += man/shishi_ap_authenticator_cksumtype.3 gdoc_MANS += man/shishi_ap_authenticator_cksumtype_set.3 gdoc_MANS += man/shishi_ap_authenticator.3 gdoc_MANS += man/shishi_ap_authenticator_set.3 gdoc_MANS += man/shishi_ap_req.3 gdoc_MANS += man/shishi_ap_req_set.3 gdoc_MANS += man/shishi_ap_req_der.3 gdoc_MANS += man/shishi_ap_req_der_set.3 gdoc_MANS += man/shishi_ap_req_build.3 gdoc_MANS += man/shishi_ap_req_decode.3 gdoc_MANS += man/shishi_ap_req_process_keyusage.3 gdoc_MANS += man/shishi_ap_req_process.3 gdoc_MANS += man/shishi_ap_req_asn1.3 gdoc_MANS += man/shishi_ap_key.3 gdoc_MANS += man/shishi_ap_rep.3 gdoc_MANS += man/shishi_ap_rep_set.3 gdoc_MANS += man/shishi_ap_rep_der.3 gdoc_MANS += man/shishi_ap_rep_der_set.3 gdoc_MANS += man/shishi_ap_rep_build.3 gdoc_MANS += man/shishi_ap_rep_asn1.3 gdoc_MANS += man/shishi_ap_rep_verify.3 gdoc_MANS += man/shishi_ap_rep_verify_der.3 gdoc_MANS += man/shishi_ap_rep_verify_asn1.3 gdoc_MANS += man/shishi_ap_encapreppart.3 gdoc_MANS += man/shishi_ap_encapreppart_set.3 gdoc_MANS += man/shishi_ap_option2string.3 gdoc_MANS += man/shishi_ap_string2option.3 gdoc_MANS += man/shishi_aprep.3 gdoc_MANS += man/shishi_aprep_print.3 gdoc_MANS += man/shishi_aprep_save.3 gdoc_MANS += man/shishi_aprep_to_file.3 gdoc_MANS += man/shishi_aprep_parse.3 gdoc_MANS += man/shishi_aprep_read.3 gdoc_MANS += man/shishi_aprep_from_file.3 gdoc_MANS += man/shishi_aprep_get_enc_part_etype.3 gdoc_MANS += man/shishi_apreq.3 gdoc_MANS += man/shishi_apreq_print.3 gdoc_MANS += man/shishi_apreq_save.3 gdoc_MANS += man/shishi_apreq_to_file.3 gdoc_MANS += man/shishi_apreq_parse.3 gdoc_MANS += man/shishi_apreq_read.3 gdoc_MANS += man/shishi_apreq_from_file.3 gdoc_MANS += man/shishi_apreq_set_authenticator.3 gdoc_MANS += man/shishi_apreq_add_authenticator.3 gdoc_MANS += man/shishi_apreq_set_ticket.3 gdoc_MANS += man/shishi_apreq_options.3 gdoc_MANS += man/shishi_apreq_use_session_key_p.3 gdoc_MANS += man/shishi_apreq_mutual_required_p.3 gdoc_MANS += man/shishi_apreq_options_set.3 gdoc_MANS += man/shishi_apreq_options_add.3 gdoc_MANS += man/shishi_apreq_options_remove.3 gdoc_MANS += man/shishi_apreq_get_authenticator_etype.3 gdoc_MANS += man/shishi_apreq_get_ticket.3 gdoc_MANS += man/shishi_as.3 gdoc_MANS += man/shishi_as_done.3 gdoc_MANS += man/shishi_as_req.3 gdoc_MANS += man/shishi_as_req_build.3 gdoc_MANS += man/shishi_as_req_set.3 gdoc_MANS += man/shishi_as_req_der.3 gdoc_MANS += man/shishi_as_req_der_set.3 gdoc_MANS += man/shishi_as_rep.3 gdoc_MANS += man/shishi_as_rep_process.3 gdoc_MANS += man/shishi_as_rep_build.3 gdoc_MANS += man/shishi_as_rep_der.3 gdoc_MANS += man/shishi_as_rep_set.3 gdoc_MANS += man/shishi_as_rep_der_set.3 gdoc_MANS += man/shishi_as_krberror.3 gdoc_MANS += man/shishi_as_krberror_der.3 gdoc_MANS += man/shishi_as_krberror_set.3 gdoc_MANS += man/shishi_as_tkt.3 gdoc_MANS += man/shishi_as_tkt_set.3 gdoc_MANS += man/shishi_as_sendrecv_hint.3 gdoc_MANS += man/shishi_as_sendrecv.3 gdoc_MANS += man/shishi_asn1_read_inline.3 gdoc_MANS += man/shishi_asn1_read.3 gdoc_MANS += man/shishi_asn1_read_optional.3 gdoc_MANS += man/shishi_asn1_done.3 gdoc_MANS += man/shishi_asn1_pa_enc_ts_enc.3 gdoc_MANS += man/shishi_asn1_encrypteddata.3 gdoc_MANS += man/shishi_asn1_padata.3 gdoc_MANS += man/shishi_asn1_methoddata.3 gdoc_MANS += man/shishi_asn1_etype_info.3 gdoc_MANS += man/shishi_asn1_etype_info2.3 gdoc_MANS += man/shishi_asn1_asreq.3 gdoc_MANS += man/shishi_asn1_asrep.3 gdoc_MANS += man/shishi_asn1_tgsreq.3 gdoc_MANS += man/shishi_asn1_tgsrep.3 gdoc_MANS += man/shishi_asn1_apreq.3 gdoc_MANS += man/shishi_asn1_aprep.3 gdoc_MANS += man/shishi_asn1_encapreppart.3 gdoc_MANS += man/shishi_asn1_ticket.3 gdoc_MANS += man/shishi_asn1_encticketpart.3 gdoc_MANS += man/shishi_asn1_authenticator.3 gdoc_MANS += man/shishi_asn1_enckdcreppart.3 gdoc_MANS += man/shishi_asn1_encasreppart.3 gdoc_MANS += man/shishi_asn1_krberror.3 gdoc_MANS += man/shishi_asn1_krbsafe.3 gdoc_MANS += man/shishi_asn1_priv.3 gdoc_MANS += man/shishi_asn1_encprivpart.3 gdoc_MANS += man/shishi_asn1_to_der_field.3 gdoc_MANS += man/shishi_asn1_to_der.3 gdoc_MANS += man/shishi_asn1_msgtype.3 gdoc_MANS += man/shishi_der_msgtype.3 gdoc_MANS += man/shishi_der2asn1.3 gdoc_MANS += man/shishi_der2asn1_padata.3 gdoc_MANS += man/shishi_der2asn1_methoddata.3 gdoc_MANS += man/shishi_der2asn1_etype_info.3 gdoc_MANS += man/shishi_der2asn1_etype_info2.3 gdoc_MANS += man/shishi_der2asn1_ticket.3 gdoc_MANS += man/shishi_der2asn1_encticketpart.3 gdoc_MANS += man/shishi_der2asn1_asreq.3 gdoc_MANS += man/shishi_der2asn1_tgsreq.3 gdoc_MANS += man/shishi_der2asn1_asrep.3 gdoc_MANS += man/shishi_der2asn1_tgsrep.3 gdoc_MANS += man/shishi_der2asn1_kdcrep.3 gdoc_MANS += man/shishi_der2asn1_encasreppart.3 gdoc_MANS += man/shishi_der2asn1_enctgsreppart.3 gdoc_MANS += man/shishi_der2asn1_enckdcreppart.3 gdoc_MANS += man/shishi_der2asn1_authenticator.3 gdoc_MANS += man/shishi_der2asn1_krberror.3 gdoc_MANS += man/shishi_der2asn1_krbsafe.3 gdoc_MANS += man/shishi_der2asn1_priv.3 gdoc_MANS += man/shishi_der2asn1_encprivpart.3 gdoc_MANS += man/shishi_der2asn1_apreq.3 gdoc_MANS += man/shishi_der2asn1_aprep.3 gdoc_MANS += man/shishi_der2asn1_encapreppart.3 gdoc_MANS += man/shishi_der2asn1_kdcreq.3 gdoc_MANS += man/shishi_asn1_print.3 gdoc_MANS += man/shishi_authenticator.3 gdoc_MANS += man/shishi_authenticator_subkey.3 gdoc_MANS += man/shishi_authenticator_print.3 gdoc_MANS += man/shishi_authenticator_save.3 gdoc_MANS += man/shishi_authenticator_to_file.3 gdoc_MANS += man/shishi_authenticator_parse.3 gdoc_MANS += man/shishi_authenticator_read.3 gdoc_MANS += man/shishi_authenticator_from_file.3 gdoc_MANS += man/shishi_authenticator_set_crealm.3 gdoc_MANS += man/shishi_authenticator_set_cname.3 gdoc_MANS += man/shishi_authenticator_client_set.3 gdoc_MANS += man/shishi_authenticator_ctime.3 gdoc_MANS += man/shishi_authenticator_ctime_set.3 gdoc_MANS += man/shishi_authenticator_cusec_get.3 gdoc_MANS += man/shishi_authenticator_cusec_set.3 gdoc_MANS += man/shishi_authenticator_seqnumber_get.3 gdoc_MANS += man/shishi_authenticator_seqnumber_remove.3 gdoc_MANS += man/shishi_authenticator_seqnumber_set.3 gdoc_MANS += man/shishi_authenticator_client.3 gdoc_MANS += man/shishi_authenticator_clientrealm.3 gdoc_MANS += man/shishi_authenticator_cksum.3 gdoc_MANS += man/shishi_authenticator_set_cksum.3 gdoc_MANS += man/shishi_authenticator_add_cksum.3 gdoc_MANS += man/shishi_authenticator_add_cksum_type.3 gdoc_MANS += man/shishi_authenticator_clear_authorizationdata.3 gdoc_MANS += man/shishi_authenticator_add_authorizationdata.3 gdoc_MANS += man/shishi_authenticator_authorizationdata.3 gdoc_MANS += man/shishi_authenticator_remove_subkey.3 gdoc_MANS += man/shishi_authenticator_get_subkey.3 gdoc_MANS += man/shishi_authenticator_set_subkey.3 gdoc_MANS += man/shishi_authenticator_add_random_subkey.3 gdoc_MANS += man/shishi_authenticator_add_random_subkey_etype.3 gdoc_MANS += man/shishi_authenticator_add_subkey.3 gdoc_MANS += man/shishi_authorize_strcmp.3 gdoc_MANS += man/shishi_authorize_k5login.3 gdoc_MANS += man/shishi_authorization_parse.3 gdoc_MANS += man/shishi_authorized_p.3 gdoc_MANS += man/shishi_cfg.3 gdoc_MANS += man/shishi_cfg_from_file.3 gdoc_MANS += man/shishi_cfg_print.3 gdoc_MANS += man/shishi_cfg_default_systemfile.3 gdoc_MANS += man/shishi_cfg_default_userdirectory.3 gdoc_MANS += man/shishi_cfg_userdirectory_file.3 gdoc_MANS += man/shishi_cfg_default_userfile.3 gdoc_MANS += man/shishi_cfg_clientkdcetype.3 gdoc_MANS += man/shishi_cfg_clientkdcetype_fast.3 gdoc_MANS += man/shishi_cfg_clientkdcetype_set.3 gdoc_MANS += man/shishi_cfg_authorizationtype_set.3 gdoc_MANS += man/shishi_crypto.3 gdoc_MANS += man/shishi_crypto_encrypt.3 gdoc_MANS += man/shishi_crypto_decrypt.3 gdoc_MANS += man/shishi_crypto_close.3 gdoc_MANS += man/shishi_cipher_supported_p.3 gdoc_MANS += man/shishi_cipher_name.3 gdoc_MANS += man/shishi_cipher_blocksize.3 gdoc_MANS += man/shishi_cipher_confoundersize.3 gdoc_MANS += man/shishi_cipher_keylen.3 gdoc_MANS += man/shishi_cipher_randomlen.3 gdoc_MANS += man/shishi_cipher_defaultcksumtype.3 gdoc_MANS += man/shishi_cipher_parse.3 gdoc_MANS += man/shishi_checksum_supported_p.3 gdoc_MANS += man/shishi_checksum_name.3 gdoc_MANS += man/shishi_checksum_cksumlen.3 gdoc_MANS += man/shishi_checksum_parse.3 gdoc_MANS += man/shishi_string_to_key.3 gdoc_MANS += man/shishi_random_to_key.3 gdoc_MANS += man/shishi_checksum.3 gdoc_MANS += man/shishi_verify.3 gdoc_MANS += man/shishi_encrypt_ivupdate_etype.3 gdoc_MANS += man/shishi_encrypt_iv_etype.3 gdoc_MANS += man/shishi_encrypt_etype.3 gdoc_MANS += man/shishi_encrypt_ivupdate.3 gdoc_MANS += man/shishi_encrypt_iv.3 gdoc_MANS += man/shishi_encrypt.3 gdoc_MANS += man/shishi_decrypt_ivupdate_etype.3 gdoc_MANS += man/shishi_decrypt_iv_etype.3 gdoc_MANS += man/shishi_decrypt_etype.3 gdoc_MANS += man/shishi_decrypt_ivupdate.3 gdoc_MANS += man/shishi_decrypt_iv.3 gdoc_MANS += man/shishi_decrypt.3 gdoc_MANS += man/shishi_n_fold.3 gdoc_MANS += man/shishi_dr.3 gdoc_MANS += man/shishi_dk.3 gdoc_MANS += man/shishi_key_print.3 gdoc_MANS += man/shishi_key_to_file.3 gdoc_MANS += man/shishi_encapreppart.3 gdoc_MANS += man/shishi_encapreppart_print.3 gdoc_MANS += man/shishi_encapreppart_save.3 gdoc_MANS += man/shishi_encapreppart_to_file.3 gdoc_MANS += man/shishi_encapreppart_parse.3 gdoc_MANS += man/shishi_encapreppart_read.3 gdoc_MANS += man/shishi_encapreppart_from_file.3 gdoc_MANS += man/shishi_encapreppart_get_key.3 gdoc_MANS += man/shishi_encapreppart_ctime.3 gdoc_MANS += man/shishi_encapreppart_ctime_set.3 gdoc_MANS += man/shishi_encapreppart_cusec_get.3 gdoc_MANS += man/shishi_encapreppart_cusec_set.3 gdoc_MANS += man/shishi_encapreppart_seqnumber_get.3 gdoc_MANS += man/shishi_encapreppart_seqnumber_remove.3 gdoc_MANS += man/shishi_encapreppart_seqnumber_set.3 gdoc_MANS += man/shishi_encapreppart_time_copy.3 gdoc_MANS += man/shishi_enckdcreppart_get_key.3 gdoc_MANS += man/shishi_enckdcreppart_key_set.3 gdoc_MANS += man/shishi_enckdcreppart_nonce_set.3 gdoc_MANS += man/shishi_enckdcreppart_flags_set.3 gdoc_MANS += man/shishi_enckdcreppart_authtime_set.3 gdoc_MANS += man/shishi_enckdcreppart_starttime_set.3 gdoc_MANS += man/shishi_enckdcreppart_endtime_set.3 gdoc_MANS += man/shishi_enckdcreppart_renew_till_set.3 gdoc_MANS += man/shishi_enckdcreppart_srealm_set.3 gdoc_MANS += man/shishi_enckdcreppart_sname_set.3 gdoc_MANS += man/shishi_enckdcreppart_populate_encticketpart.3 gdoc_MANS += man/shishi_encticketpart_get_key.3 gdoc_MANS += man/shishi_encticketpart_key_set.3 gdoc_MANS += man/shishi_encticketpart_flags_set.3 gdoc_MANS += man/shishi_encticketpart_crealm_set.3 gdoc_MANS += man/shishi_encticketpart_cname_set.3 gdoc_MANS += man/shishi_encticketpart_transited_set.3 gdoc_MANS += man/shishi_encticketpart_authtime_set.3 gdoc_MANS += man/shishi_encticketpart_endtime_set.3 gdoc_MANS += man/shishi_encticketpart_client.3 gdoc_MANS += man/shishi_encticketpart_clientrealm.3 gdoc_MANS += man/shishi_strerror.3 gdoc_MANS += man/shishi_error.3 gdoc_MANS += man/shishi_error_clear.3 gdoc_MANS += man/shishi_error_set.3 gdoc_MANS += man/shishi_error_printf.3 gdoc_MANS += man/shishi_error_outputtype.3 gdoc_MANS += man/shishi_error_set_outputtype.3 gdoc_MANS += man/shishi_info.3 gdoc_MANS += man/shishi_warn.3 gdoc_MANS += man/shishi_verbose.3 gdoc_MANS += man/shishi_generalize_time.3 gdoc_MANS += man/shishi_generalize_now.3 gdoc_MANS += man/shishi_generalize_ctime.3 gdoc_MANS += man/shishi_time.3 gdoc_MANS += man/shishi_ctime.3 gdoc_MANS += man/shishi_hostkeys_default_file.3 gdoc_MANS += man/shishi_hostkeys_default_file_set.3 gdoc_MANS += man/shishi_hostkeys_for_server.3 gdoc_MANS += man/shishi_hostkeys_for_serverrealm.3 gdoc_MANS += man/shishi_hostkeys_for_localservicerealm.3 gdoc_MANS += man/shishi_hostkeys_for_localservice.3 gdoc_MANS += man/shishi.3 gdoc_MANS += man/shishi_server.3 gdoc_MANS += man/shishi_done.3 gdoc_MANS += man/shishi_init.3 gdoc_MANS += man/shishi_init_with_paths.3 gdoc_MANS += man/shishi_init_server.3 gdoc_MANS += man/shishi_init_server_with_paths.3 gdoc_MANS += man/shishi_as_derive_salt.3 gdoc_MANS += man/shishi_kdcreq_sendrecv_hint.3 gdoc_MANS += man/shishi_kdcreq_sendrecv.3 gdoc_MANS += man/shishi_kdc_copy_crealm.3 gdoc_MANS += man/shishi_as_check_crealm.3 gdoc_MANS += man/shishi_kdc_copy_cname.3 gdoc_MANS += man/shishi_as_check_cname.3 gdoc_MANS += man/shishi_kdc_copy_nonce.3 gdoc_MANS += man/shishi_kdc_check_nonce.3 gdoc_MANS += man/shishi_tgs_process.3 gdoc_MANS += man/shishi_as_process.3 gdoc_MANS += man/shishi_kdc_process.3 gdoc_MANS += man/shishi_asrep.3 gdoc_MANS += man/shishi_tgsrep.3 gdoc_MANS += man/shishi_kdcrep_print.3 gdoc_MANS += man/shishi_kdcrep_save.3 gdoc_MANS += man/shishi_kdcrep_to_file.3 gdoc_MANS += man/shishi_kdcrep_parse.3 gdoc_MANS += man/shishi_kdcrep_read.3 gdoc_MANS += man/shishi_kdcrep_from_file.3 gdoc_MANS += man/shishi_kdcrep_crealm_set.3 gdoc_MANS += man/shishi_kdcrep_cname_set.3 gdoc_MANS += man/shishi_kdcrep_client_set.3 gdoc_MANS += man/shishi_kdcrep_get_enc_part_etype.3 gdoc_MANS += man/shishi_kdcrep_get_ticket.3 gdoc_MANS += man/shishi_kdcrep_set_ticket.3 gdoc_MANS += man/shishi_kdcrep_set_enc_part.3 gdoc_MANS += man/shishi_kdcrep_add_enc_part.3 gdoc_MANS += man/shishi_kdcrep_clear_padata.3 gdoc_MANS += man/shishi_asreq.3 gdoc_MANS += man/shishi_tgsreq.3 gdoc_MANS += man/shishi_kdcreq_print.3 gdoc_MANS += man/shishi_kdcreq_save.3 gdoc_MANS += man/shishi_kdcreq_to_file.3 gdoc_MANS += man/shishi_kdcreq_parse.3 gdoc_MANS += man/shishi_kdcreq_read.3 gdoc_MANS += man/shishi_kdcreq_from_file.3 gdoc_MANS += man/shishi_kdcreq_nonce_set.3 gdoc_MANS += man/shishi_kdcreq_set_cname.3 gdoc_MANS += man/shishi_kdcreq_client.3 gdoc_MANS += man/shishi_asreq_clientrealm.3 gdoc_MANS += man/shishi_kdcreq_realm.3 gdoc_MANS += man/shishi_kdcreq_set_realm.3 gdoc_MANS += man/shishi_kdcreq_server.3 gdoc_MANS += man/shishi_kdcreq_set_sname.3 gdoc_MANS += man/shishi_kdcreq_till.3 gdoc_MANS += man/shishi_kdcreq_tillc.3 gdoc_MANS += man/shishi_kdcreq_etype.3 gdoc_MANS += man/shishi_kdcreq_set_etype.3 gdoc_MANS += man/shishi_kdcreq_options.3 gdoc_MANS += man/shishi_kdcreq_forwardable_p.3 gdoc_MANS += man/shishi_kdcreq_forwarded_p.3 gdoc_MANS += man/shishi_kdcreq_proxiable_p.3 gdoc_MANS += man/shishi_kdcreq_proxy_p.3 gdoc_MANS += man/shishi_kdcreq_allow_postdate_p.3 gdoc_MANS += man/shishi_kdcreq_postdated_p.3 gdoc_MANS += man/shishi_kdcreq_renewable_p.3 gdoc_MANS += man/shishi_kdcreq_disable_transited_check_p.3 gdoc_MANS += man/shishi_kdcreq_renewable_ok_p.3 gdoc_MANS += man/shishi_kdcreq_enc_tkt_in_skey_p.3 gdoc_MANS += man/shishi_kdcreq_renew_p.3 gdoc_MANS += man/shishi_kdcreq_validate_p.3 gdoc_MANS += man/shishi_kdcreq_options_set.3 gdoc_MANS += man/shishi_kdcreq_options_add.3 gdoc_MANS += man/shishi_kdcreq_clear_padata.3 gdoc_MANS += man/shishi_kdcreq_get_padata.3 gdoc_MANS += man/shishi_kdcreq_get_padata_tgs.3 gdoc_MANS += man/shishi_kdcreq_add_padata.3 gdoc_MANS += man/shishi_kdcreq_add_padata_tgs.3 gdoc_MANS += man/shishi_kdcreq_add_padata_preauth.3 gdoc_MANS += man/shishi_key_principal.3 gdoc_MANS += man/shishi_key_principal_set.3 gdoc_MANS += man/shishi_key_realm.3 gdoc_MANS += man/shishi_key_realm_set.3 gdoc_MANS += man/shishi_key_type.3 gdoc_MANS += man/shishi_key_type_set.3 gdoc_MANS += man/shishi_key_value.3 gdoc_MANS += man/shishi_key_value_set.3 gdoc_MANS += man/shishi_key_version.3 gdoc_MANS += man/shishi_key_version_set.3 gdoc_MANS += man/shishi_key_timestamp.3 gdoc_MANS += man/shishi_key_timestamp_set.3 gdoc_MANS += man/shishi_key_name.3 gdoc_MANS += man/shishi_key_length.3 gdoc_MANS += man/shishi_key.3 gdoc_MANS += man/shishi_key_done.3 gdoc_MANS += man/shishi_key_copy.3 gdoc_MANS += man/shishi_key_from_value.3 gdoc_MANS += man/shishi_key_from_base64.3 gdoc_MANS += man/shishi_key_random.3 gdoc_MANS += man/shishi_key_from_random.3 gdoc_MANS += man/shishi_key_from_string.3 gdoc_MANS += man/shishi_key_from_name.3 gdoc_MANS += man/shishi_keys.3 gdoc_MANS += man/shishi_keys_done.3 gdoc_MANS += man/shishi_keys_size.3 gdoc_MANS += man/shishi_keys_nth.3 gdoc_MANS += man/shishi_keys_remove.3 gdoc_MANS += man/shishi_keys_add.3 gdoc_MANS += man/shishi_keys_print.3 gdoc_MANS += man/shishi_keys_to_file.3 gdoc_MANS += man/shishi_keys_from_file.3 gdoc_MANS += man/shishi_keys_for_serverrealm_in_file.3 gdoc_MANS += man/shishi_keys_for_server_in_file.3 gdoc_MANS += man/shishi_keys_for_localservicerealm_in_file.3 gdoc_MANS += man/shishi_keys_add_keytab_mem.3 gdoc_MANS += man/shishi_keys_add_keytab_file.3 gdoc_MANS += man/shishi_keys_from_keytab_mem.3 gdoc_MANS += man/shishi_keys_from_keytab_file.3 gdoc_MANS += man/shishi_keys_to_keytab_mem.3 gdoc_MANS += man/shishi_keys_to_keytab_file.3 gdoc_MANS += man/shishi_krberror.3 gdoc_MANS += man/shishi_krberror_print.3 gdoc_MANS += man/shishi_krberror_save.3 gdoc_MANS += man/shishi_krberror_to_file.3 gdoc_MANS += man/shishi_krberror_parse.3 gdoc_MANS += man/shishi_krberror_read.3 gdoc_MANS += man/shishi_krberror_from_file.3 gdoc_MANS += man/shishi_krberror_build.3 gdoc_MANS += man/shishi_krberror_der.3 gdoc_MANS += man/shishi_krberror_crealm.3 gdoc_MANS += man/shishi_krberror_remove_crealm.3 gdoc_MANS += man/shishi_krberror_set_crealm.3 gdoc_MANS += man/shishi_krberror_client.3 gdoc_MANS += man/shishi_krberror_set_cname.3 gdoc_MANS += man/shishi_krberror_remove_cname.3 gdoc_MANS += man/shishi_krberror_client_set.3 gdoc_MANS += man/shishi_krberror_realm.3 gdoc_MANS += man/shishi_krberror_set_realm.3 gdoc_MANS += man/shishi_krberror_server.3 gdoc_MANS += man/shishi_krberror_remove_sname.3 gdoc_MANS += man/shishi_krberror_set_sname.3 gdoc_MANS += man/shishi_krberror_server_set.3 gdoc_MANS += man/shishi_krberror_ctime.3 gdoc_MANS += man/shishi_krberror_ctime_set.3 gdoc_MANS += man/shishi_krberror_remove_ctime.3 gdoc_MANS += man/shishi_krberror_cusec.3 gdoc_MANS += man/shishi_krberror_cusec_set.3 gdoc_MANS += man/shishi_krberror_remove_cusec.3 gdoc_MANS += man/shishi_krberror_stime.3 gdoc_MANS += man/shishi_krberror_stime_set.3 gdoc_MANS += man/shishi_krberror_susec.3 gdoc_MANS += man/shishi_krberror_susec_set.3 gdoc_MANS += man/shishi_krberror_errorcode.3 gdoc_MANS += man/shishi_krberror_errorcode_fast.3 gdoc_MANS += man/shishi_krberror_errorcode_set.3 gdoc_MANS += man/shishi_krberror_etext.3 gdoc_MANS += man/shishi_krberror_set_etext.3 gdoc_MANS += man/shishi_krberror_remove_etext.3 gdoc_MANS += man/shishi_krberror_edata.3 gdoc_MANS += man/shishi_krberror_methoddata.3 gdoc_MANS += man/shishi_krberror_set_edata.3 gdoc_MANS += man/shishi_krberror_remove_edata.3 gdoc_MANS += man/shishi_krberror_pretty_print.3 gdoc_MANS += man/shishi_krberror_errorcode_message.3 gdoc_MANS += man/shishi_krberror_message.3 gdoc_MANS += man/shishi_randomize.3 gdoc_MANS += man/shishi_crc.3 gdoc_MANS += man/shishi_md4.3 gdoc_MANS += man/shishi_md5.3 gdoc_MANS += man/shishi_hmac_md5.3 gdoc_MANS += man/shishi_hmac_sha1.3 gdoc_MANS += man/shishi_des_cbc_mac.3 gdoc_MANS += man/shishi_arcfour.3 gdoc_MANS += man/shishi_des.3 gdoc_MANS += man/shishi_3des.3 gdoc_MANS += man/shishi_aes_cts.3 gdoc_MANS += man/shishi_pbkdf2_sha1.3 gdoc_MANS += man/shishi_kdc_sendrecv_hint.3 gdoc_MANS += man/shishi_kdc_sendrecv.3 gdoc_MANS += man/shishi_prompt_password_callback_set.3 gdoc_MANS += man/shishi_prompt_password_callback_get.3 gdoc_MANS += man/shishi_prompt_password.3 gdoc_MANS += man/shishi_x509ca_default_file_guess.3 gdoc_MANS += man/shishi_x509ca_default_file_set.3 gdoc_MANS += man/shishi_x509ca_default_file.3 gdoc_MANS += man/shishi_x509cert_default_file_guess.3 gdoc_MANS += man/shishi_x509cert_default_file_set.3 gdoc_MANS += man/shishi_x509cert_default_file.3 gdoc_MANS += man/shishi_x509key_default_file_guess.3 gdoc_MANS += man/shishi_x509key_default_file_set.3 gdoc_MANS += man/shishi_x509key_default_file.3 gdoc_MANS += man/shishi_principal_default_guess.3 gdoc_MANS += man/shishi_principal_default.3 gdoc_MANS += man/shishi_principal_default_set.3 gdoc_MANS += man/shishi_parse_name.3 gdoc_MANS += man/shishi_principal_name.3 gdoc_MANS += man/shishi_principal_name_realm.3 gdoc_MANS += man/shishi_principal_name_set.3 gdoc_MANS += man/shishi_principal_set.3 gdoc_MANS += man/shishi_derive_default_salt.3 gdoc_MANS += man/shishi_server_for_local_service.3 gdoc_MANS += man/shishi_priv.3 gdoc_MANS += man/shishi_priv_done.3 gdoc_MANS += man/shishi_priv_key.3 gdoc_MANS += man/shishi_priv_key_set.3 gdoc_MANS += man/shishi_priv_priv.3 gdoc_MANS += man/shishi_priv_priv_set.3 gdoc_MANS += man/shishi_priv_priv_der.3 gdoc_MANS += man/shishi_priv_priv_der_set.3 gdoc_MANS += man/shishi_priv_encprivpart.3 gdoc_MANS += man/shishi_priv_encprivpart_set.3 gdoc_MANS += man/shishi_priv_encprivpart_der.3 gdoc_MANS += man/shishi_priv_encprivpart_der_set.3 gdoc_MANS += man/shishi_priv_print.3 gdoc_MANS += man/shishi_priv_save.3 gdoc_MANS += man/shishi_priv_to_file.3 gdoc_MANS += man/shishi_priv_parse.3 gdoc_MANS += man/shishi_priv_read.3 gdoc_MANS += man/shishi_priv_from_file.3 gdoc_MANS += man/shishi_priv_enc_part_etype.3 gdoc_MANS += man/shishi_priv_set_enc_part.3 gdoc_MANS += man/shishi_encprivpart_user_data.3 gdoc_MANS += man/shishi_encprivpart_set_user_data.3 gdoc_MANS += man/shishi_priv_build.3 gdoc_MANS += man/shishi_priv_process.3 gdoc_MANS += man/shishi_realm_default_guess.3 gdoc_MANS += man/shishi_realm_default.3 gdoc_MANS += man/shishi_realm_default_set.3 gdoc_MANS += man/shishi_realm_for_server_file.3 gdoc_MANS += man/shishi_realm_for_server_dns.3 gdoc_MANS += man/shishi_realm_for_server.3 gdoc_MANS += man/shishi_resolv.3 gdoc_MANS += man/shishi_resolv_free.3 gdoc_MANS += man/shishi_safe.3 gdoc_MANS += man/shishi_safe_done.3 gdoc_MANS += man/shishi_safe_key.3 gdoc_MANS += man/shishi_safe_key_set.3 gdoc_MANS += man/shishi_safe_safe.3 gdoc_MANS += man/shishi_safe_safe_set.3 gdoc_MANS += man/shishi_safe_safe_der.3 gdoc_MANS += man/shishi_safe_safe_der_set.3 gdoc_MANS += man/shishi_safe_print.3 gdoc_MANS += man/shishi_safe_save.3 gdoc_MANS += man/shishi_safe_to_file.3 gdoc_MANS += man/shishi_safe_parse.3 gdoc_MANS += man/shishi_safe_read.3 gdoc_MANS += man/shishi_safe_from_file.3 gdoc_MANS += man/shishi_safe_cksum.3 gdoc_MANS += man/shishi_safe_set_cksum.3 gdoc_MANS += man/shishi_safe_user_data.3 gdoc_MANS += man/shishi_safe_set_user_data.3 gdoc_MANS += man/shishi_safe_build.3 gdoc_MANS += man/shishi_safe_verify.3 gdoc_MANS += man/shishi_tgs.3 gdoc_MANS += man/shishi_tgs_done.3 gdoc_MANS += man/shishi_tgs_tgtkt.3 gdoc_MANS += man/shishi_tgs_tgtkt_set.3 gdoc_MANS += man/shishi_tgs_ap.3 gdoc_MANS += man/shishi_tgs_req.3 gdoc_MANS += man/shishi_tgs_req_set.3 gdoc_MANS += man/shishi_tgs_req_der.3 gdoc_MANS += man/shishi_tgs_req_der_set.3 gdoc_MANS += man/shishi_tgs_req_process.3 gdoc_MANS += man/shishi_tgs_req_build.3 gdoc_MANS += man/shishi_tgs_rep.3 gdoc_MANS += man/shishi_tgs_rep_der.3 gdoc_MANS += man/shishi_tgs_rep_process.3 gdoc_MANS += man/shishi_tgs_rep_build.3 gdoc_MANS += man/shishi_tgs_krberror.3 gdoc_MANS += man/shishi_tgs_krberror_der.3 gdoc_MANS += man/shishi_tgs_krberror_set.3 gdoc_MANS += man/shishi_tgs_tkt.3 gdoc_MANS += man/shishi_tgs_tkt_set.3 gdoc_MANS += man/shishi_tgs_sendrecv_hint.3 gdoc_MANS += man/shishi_tgs_sendrecv.3 gdoc_MANS += man/shishi_tgs_set_server.3 gdoc_MANS += man/shishi_tgs_set_realm.3 gdoc_MANS += man/shishi_tgs_set_realmserver.3 gdoc_MANS += man/shishi_ticket.3 gdoc_MANS += man/shishi_ticket_realm_get.3 gdoc_MANS += man/shishi_ticket_realm_set.3 gdoc_MANS += man/shishi_ticket_server.3 gdoc_MANS += man/shishi_ticket_sname_set.3 gdoc_MANS += man/shishi_ticket_get_enc_part_etype.3 gdoc_MANS += man/shishi_ticket_set_enc_part.3 gdoc_MANS += man/shishi_ticket_add_enc_part.3 gdoc_MANS += man/shishi_tkt.3 gdoc_MANS += man/shishi_tkt2.3 gdoc_MANS += man/shishi_tkt_done.3 gdoc_MANS += man/shishi_tkt_ticket.3 gdoc_MANS += man/shishi_tkt_ticket_set.3 gdoc_MANS += man/shishi_tkt_enckdcreppart.3 gdoc_MANS += man/shishi_tkt_enckdcreppart_set.3 gdoc_MANS += man/shishi_tkt_kdcrep.3 gdoc_MANS += man/shishi_tkt_encticketpart.3 gdoc_MANS += man/shishi_tkt_encticketpart_set.3 gdoc_MANS += man/shishi_tkt_key.3 gdoc_MANS += man/shishi_tkt_key_set.3 gdoc_MANS += man/shishi_tkt_client.3 gdoc_MANS += man/shishi_tkt_client_p.3 gdoc_MANS += man/shishi_tkt_clientrealm.3 gdoc_MANS += man/shishi_tkt_clientrealm_p.3 gdoc_MANS += man/shishi_tkt_realm.3 gdoc_MANS += man/shishi_tkt_server.3 gdoc_MANS += man/shishi_tkt_server_p.3 gdoc_MANS += man/shishi_tkt_flags.3 gdoc_MANS += man/shishi_tkt_flags_set.3 gdoc_MANS += man/shishi_tkt_flags_add.3 gdoc_MANS += man/shishi_tkt_forwardable_p.3 gdoc_MANS += man/shishi_tkt_forwarded_p.3 gdoc_MANS += man/shishi_tkt_proxiable_p.3 gdoc_MANS += man/shishi_tkt_proxy_p.3 gdoc_MANS += man/shishi_tkt_may_postdate_p.3 gdoc_MANS += man/shishi_tkt_postdated_p.3 gdoc_MANS += man/shishi_tkt_invalid_p.3 gdoc_MANS += man/shishi_tkt_renewable_p.3 gdoc_MANS += man/shishi_tkt_initial_p.3 gdoc_MANS += man/shishi_tkt_pre_authent_p.3 gdoc_MANS += man/shishi_tkt_hw_authent_p.3 gdoc_MANS += man/shishi_tkt_transited_policy_checked_p.3 gdoc_MANS += man/shishi_tkt_ok_as_delegate_p.3 gdoc_MANS += man/shishi_tkt_keytype.3 gdoc_MANS += man/shishi_tkt_keytype_fast.3 gdoc_MANS += man/shishi_tkt_keytype_p.3 gdoc_MANS += man/shishi_tkt_lastreqc.3 gdoc_MANS += man/shishi_tkt_authctime.3 gdoc_MANS += man/shishi_tkt_startctime.3 gdoc_MANS += man/shishi_tkt_endctime.3 gdoc_MANS += man/shishi_tkt_renew_tillc.3 gdoc_MANS += man/shishi_tkt_valid_at_time_p.3 gdoc_MANS += man/shishi_tkt_valid_now_p.3 gdoc_MANS += man/shishi_tkt_expired_p.3 gdoc_MANS += man/shishi_tkt_lastreq_pretty_print.3 gdoc_MANS += man/shishi_tkt_pretty_print.3 gdoc_MANS += man/shishi_tkts_default_ccache_guess.3 gdoc_MANS += man/shishi_tkts_default_ccache.3 gdoc_MANS += man/shishi_tkts_default_ccache_set.3 gdoc_MANS += man/shishi_tkts_add_ccache_mem.3 gdoc_MANS += man/shishi_tkts_add_ccache_file.3 gdoc_MANS += man/shishi_tkts_from_ccache_mem.3 gdoc_MANS += man/shishi_tkts_from_ccache_file.3 gdoc_MANS += man/shishi_tkts_default_file_guess.3 gdoc_MANS += man/shishi_tkts_default_file.3 gdoc_MANS += man/shishi_tkts_default_file_set.3 gdoc_MANS += man/shishi_tkts_default.3 gdoc_MANS += man/shishi_tkts.3 gdoc_MANS += man/shishi_tkts_done.3 gdoc_MANS += man/shishi_tkts_size.3 gdoc_MANS += man/shishi_tkts_nth.3 gdoc_MANS += man/shishi_tkts_remove.3 gdoc_MANS += man/shishi_tkts_add.3 gdoc_MANS += man/shishi_tkts_new.3 gdoc_MANS += man/shishi_tkts_read.3 gdoc_MANS += man/shishi_tkts_from_file.3 gdoc_MANS += man/shishi_tkts_write.3 gdoc_MANS += man/shishi_tkts_expire.3 gdoc_MANS += man/shishi_tkts_to_file.3 gdoc_MANS += man/shishi_tkts_print_for_service.3 gdoc_MANS += man/shishi_tkts_print.3 gdoc_MANS += man/shishi_tkt_match_p.3 gdoc_MANS += man/shishi_tkts_find.3 gdoc_MANS += man/shishi_tkts_find_for_clientserver.3 gdoc_MANS += man/shishi_tkts_find_for_server.3 gdoc_MANS += man/shishi_tkts_get_tgt.3 gdoc_MANS += man/shishi_tkts_get_tgs.3 gdoc_MANS += man/shishi_tkts_get.3 gdoc_MANS += man/shishi_tkts_get_for_clientserver.3 gdoc_MANS += man/shishi_tkts_get_for_server.3 gdoc_MANS += man/shishi_tkts_get_for_localservicepasswd.3 gdoc_MANS += man/shishi_check_version.3 gdoc_MANS += man/shisa_cfg_db.3 gdoc_MANS += man/shisa_cfg.3 gdoc_MANS += man/shisa_cfg_from_file.3 gdoc_MANS += man/shisa_cfg_default_systemfile.3 gdoc_MANS += man/shisa_enumerate_realms.3 gdoc_MANS += man/shisa_enumerate_principals.3 gdoc_MANS += man/shisa_principal_find.3 gdoc_MANS += man/shisa_principal_update.3 gdoc_MANS += man/shisa_principal_add.3 gdoc_MANS += man/shisa_principal_remove.3 gdoc_MANS += man/shisa_keys_find.3 gdoc_MANS += man/shisa_key_add.3 gdoc_MANS += man/shisa_key_update.3 gdoc_MANS += man/shisa_key_remove.3 gdoc_MANS += man/shisa_key_free.3 gdoc_MANS += man/shisa_keys_free.3 gdoc_MANS += man/shisa_strerror.3 gdoc_MANS += man/shisa_info.3 gdoc_MANS += man/shisa.3 gdoc_MANS += man/shisa_done.3 gdoc_MANS += man/shisa_init.3 gdoc_MANS += man/shisa_init_with_paths.3 gdoc_TEXINFOS = gdoc_TEXINFOS += texi/ap.c.texi gdoc_TEXINFOS += texi/aprep.c.texi gdoc_TEXINFOS += texi/apreq.c.texi gdoc_TEXINFOS += texi/as.c.texi gdoc_TEXINFOS += texi/asn1.c.texi gdoc_TEXINFOS += texi/authenticator.c.texi gdoc_TEXINFOS += texi/authorize.c.texi gdoc_TEXINFOS += texi/ccache.c.texi gdoc_TEXINFOS += texi/cfg.c.texi gdoc_TEXINFOS += texi/crypto-3des.c.texi gdoc_TEXINFOS += texi/crypto-aes.c.texi gdoc_TEXINFOS += texi/crypto-ctx.c.texi gdoc_TEXINFOS += texi/crypto-des.c.texi gdoc_TEXINFOS += texi/crypto-md.c.texi gdoc_TEXINFOS += texi/crypto-null.c.texi gdoc_TEXINFOS += texi/crypto-rc4.c.texi gdoc_TEXINFOS += texi/crypto.c.texi gdoc_TEXINFOS += texi/diskio.c.texi gdoc_TEXINFOS += texi/encapreppart.c.texi gdoc_TEXINFOS += texi/enckdcreppart.c.texi gdoc_TEXINFOS += texi/encticketpart.c.texi gdoc_TEXINFOS += texi/error.c.texi gdoc_TEXINFOS += texi/gztime.c.texi gdoc_TEXINFOS += texi/hostkeys.c.texi gdoc_TEXINFOS += texi/init.c.texi gdoc_TEXINFOS += texi/kdc.c.texi gdoc_TEXINFOS += texi/kdcrep.c.texi gdoc_TEXINFOS += texi/kdcreq.c.texi gdoc_TEXINFOS += texi/kerberos5.c.texi gdoc_TEXINFOS += texi/key.c.texi gdoc_TEXINFOS += texi/keys.c.texi gdoc_TEXINFOS += texi/keytab.c.texi gdoc_TEXINFOS += texi/krberror.c.texi gdoc_TEXINFOS += texi/low-crypto.c.texi gdoc_TEXINFOS += texi/netio.c.texi gdoc_TEXINFOS += texi/password.c.texi gdoc_TEXINFOS += texi/pki.c.texi gdoc_TEXINFOS += texi/principal.c.texi gdoc_TEXINFOS += texi/priv.c.texi gdoc_TEXINFOS += texi/realm.c.texi gdoc_TEXINFOS += texi/resolv.c.texi gdoc_TEXINFOS += texi/safe.c.texi gdoc_TEXINFOS += texi/starttls.c.texi gdoc_TEXINFOS += texi/tgs.c.texi gdoc_TEXINFOS += texi/ticket.c.texi gdoc_TEXINFOS += texi/tkt.c.texi gdoc_TEXINFOS += texi/tktccache.c.texi gdoc_TEXINFOS += texi/tkts.c.texi gdoc_TEXINFOS += texi/utils.c.texi gdoc_TEXINFOS += texi/version.c.texi gdoc_TEXINFOS += texi/config.c.texi gdoc_TEXINFOS += texi/core.c.texi gdoc_TEXINFOS += texi/db.c.texi gdoc_TEXINFOS += texi/err.c.texi gdoc_TEXINFOS += texi/file.c.texi gdoc_TEXINFOS += texi/fileutil.c.texi gdoc_TEXINFOS += texi/setup.c.texi $(gdoc_MANS) $(gdoc_TEXINFOS): $(MAKE) update-makefile $(MAKE) Makefile $(MAKE) doit GDOC_SRC = $(top_srcdir)/lib/*.c $(top_srcdir)/db/*.c update-makefile: MANS=""; \ TEXINFOS=""; \ for i in $(GDOC_SRC); do \ BASE=`basename $$i`; \ TEXINFOS="$$TEXINFOS\ngdoc_TEXINFOS += texi/$$BASE.texi"; \ done; \ FUNCS=`$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; \ for i in $$FUNCS; do \ MANS="$$MANS\ngdoc_MANS += man/$$i.3"; \ done; \ grep -v -e '^gdoc_MANS += ' -e '^gdoc_TEXINFOS += ' Makefile.am | \ perl -p -e "s,^gdoc_MANS =,gdoc_MANS =$$MANS," | \ perl -p -e "s,^gdoc_TEXINFOS =,gdoc_TEXINFOS =$$TEXINFOS,;" \ > Makefile.am.new && \ mv Makefile.am.new Makefile.am doit: @$(MKDIR_P) man texi; \ echo -n "Creating function documentation" && \ for i in `$(srcdir)/gdoc -listfunc $(GDOC_SRC)`; do \ $(srcdir)/gdoc -man \ -module $(PACKAGE) -sourceversion $(VERSION) \ -bugsto $(PACKAGE_BUGREPORT) \ -pkg-name "$(PACKAGE_NAME)" \ -includefuncprefix \ -seeinfo $(PACKAGE) -verbatimcopying \ -copyright "2002-2022 Simon Josefsson" \ -function $$i \ $(GDOC_SRC) >> man/$$i.3 && \ echo -n "."; \ done; \ echo ""; \ echo -n "Creating file documentation" && \ for i in $(GDOC_SRC); do \ BASE=`basename $$i`; \ $(srcdir)/gdoc -texinfo $$i >> texi/$$BASE.texi && \ echo -n "."; \ done; \ echo "" .PHONY: update-makefile doit shishi-1.0.3/doc/parse-datetime.texi0000644000000000000000000006046314273615121014250 00000000000000@c GNU date syntax documentation @c Copyright (C) 1994--2006, 2009--2022 Free Software Foundation, Inc. @c Permission is granted to copy, distribute and/or modify this document @c under the terms of the GNU Free Documentation License, Version 1.3 or @c any later version published by the Free Software Foundation; with no @c Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A @c copy of the license is at . @node Date input formats @chapter Date input formats @cindex date input formats @findex parse_datetime First, a quote: @quotation Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system. It is like a set of trapezoidal building blocks, with no vertical or horizontal surfaces, like a language in which the simplest thought demands ornate constructions, useless particles and lengthy circumlocutions. Unlike the more successful patterns of language and science, which enable us to face experience boldly or at least level-headedly, our system of temporal calculation silently and persistently encourages our terror of time. @dots{} It is as though architects had to measure length in feet, width in meters and height in ells; as though basic instruction manuals demanded a knowledge of five different languages. It is no wonder then that we often look into our own immediate past or future, last Tuesday or a week from Sunday, with feelings of helpless confusion. @dots{} ---Robert Grudin, @cite{Time and the Art of Living}. @end quotation This section describes the textual date representations that GNU programs accept. These are the strings you, as a user, can supply as arguments to the various programs. The C interface (via the @code{parse_datetime} function) is not described here. @menu * General date syntax:: Common rules * Calendar date items:: 21 Jul 2020 * Time of day items:: 9:20pm * Time zone items:: UTC, -0700, +0900, @dots{} * Combined date and time of day items:: 2020-07-21T20:02:00,000000-0400 * Day of week items:: Monday and others * Relative items in date strings:: next tuesday, 2 years ago * Pure numbers in date strings:: 20200721, 1440 * Seconds since the Epoch:: @@1595289600 * Specifying time zone rules:: TZ="America/New_York", TZ="UTC0" * Authors of parse_datetime:: Bellovin, Eggert, Salz, Berets, et al. @end menu @node General date syntax @section General date syntax @cindex general date syntax @cindex items in date strings A @dfn{date} is a string, possibly empty, containing many items separated by whitespace. The whitespace may be omitted when no ambiguity arises. The empty string means the beginning of today (i.e., midnight). Order of the items is immaterial. A date string may contain many flavors of items: @itemize @bullet @item calendar date items @item time of day items @item time zone items @item combined date and time of day items @item day of the week items @item relative items @item pure numbers. @end itemize @noindent We describe each of these item types in turn, below. @cindex numbers, written-out @cindex ordinal numbers @findex first @r{in date strings} @findex next @r{in date strings} @findex last @r{in date strings} A few ordinal numbers may be written out in words in some contexts. This is most useful for specifying day of the week items or relative items (see below). Among the most commonly used ordinal numbers, the word @samp{last} stands for @math{-1}, @samp{this} stands for 0, and @samp{first} and @samp{next} both stand for 1. Because the word @samp{second} stands for the unit of time there is no way to write the ordinal number 2, but for convenience @samp{third} stands for 3, @samp{fourth} for 4, @samp{fifth} for 5, @samp{sixth} for 6, @samp{seventh} for 7, @samp{eighth} for 8, @samp{ninth} for 9, @samp{tenth} for 10, @samp{eleventh} for 11 and @samp{twelfth} for 12. @cindex months, written-out When a month is written this way, it is still considered to be written numerically, instead of being ``spelled in full''; this changes the allowed strings. @cindex language, in dates In the current implementation, only English is supported for words and abbreviations like @samp{AM}, @samp{DST}, @samp{EST}, @samp{first}, @samp{January}, @samp{Sunday}, @samp{tomorrow}, and @samp{year}. @cindex language, in dates @cindex time zone item The output of the @command{date} command is not always acceptable as a date string, not only because of the language problem, but also because there is no standard meaning for time zone items like @samp{IST}@. When using @command{date} to generate a date string intended to be parsed later, specify a date format that is independent of language and that does not use time zone items other than @samp{UTC} and @samp{Z}@. Here are some ways to do this: @example $ LC_ALL=C TZ=UTC0 date Tue Jul 21 23:00:37 UTC 2020 $ TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ' 2020-07-21 23:00:37Z $ date --rfc-3339=ns # --rfc-3339 is a GNU extension. 2020-07-21 19:00:37.692722128-04:00 $ date --rfc-2822 # a GNU extension Tue, 21 Jul 2020 19:00:37 -0400 $ date +'%Y-%m-%d %H:%M:%S %z' # %z is a GNU extension. 2020-07-21 19:00:37 -0400 $ date +'@@%s.%N' # %s and %N are GNU extensions. @@1595372437.692722128 @end example @cindex case, ignored in dates @cindex comments, in dates Alphabetic case is completely ignored in dates. Comments may be introduced between round parentheses, as long as included parentheses are properly nested. Hyphens not followed by a digit are currently ignored. Leading zeros on numbers are ignored. @cindex leap seconds Invalid dates like @samp{2019-02-29} or times like @samp{24:00} are rejected. In the typical case of a host that does not support leap seconds, a time like @samp{23:59:60} is rejected even if it corresponds to a valid leap second. @node Calendar date items @section Calendar date items @cindex calendar date item A @dfn{calendar date item} specifies a day of the year. It is specified differently, depending on whether the month is specified numerically or literally. All these strings specify the same calendar date: @example 2020-07-20 # ISO 8601. 20-7-20 # Assume 19xx for 69 through 99, # 20xx for 00 through 68 (not recommended). 7/20/2020 # Common U.S. writing. 20 July 2020 20 Jul 2020 # Three-letter abbreviations always allowed. Jul 20, 2020 20-jul-2020 20jul2020 @end example The year can also be omitted. In this case, the last specified year is used, or the current year if none. For example: @example 7/20 jul 20 @end example Here are the rules. @cindex ISO 8601 date format @cindex date format, ISO 8601 For numeric months, the ISO 8601 format @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is any positive number, @var{month} is a number between 01 and 12, and @var{day} is a number between 01 and 31. A leading zero must be present if a number is less than ten. If @var{year} is 68 or smaller, then 2000 is added to it; otherwise, if @var{year} is less than 100, then 1900 is added to it. The construct @samp{@var{month}/@var{day}/@var{year}}, popular in the United States, is accepted. Also @samp{@var{month}/@var{day}}, omitting the year. @cindex month names in date strings @cindex abbreviations for months Literal months may be spelled out in full: @samp{January}, @samp{February}, @samp{March}, @samp{April}, @samp{May}, @samp{June}, @samp{July}, @samp{August}, @samp{September}, @samp{October}, @samp{November} or @samp{December}. Literal months may be abbreviated to their first three letters, possibly followed by an abbreviating dot. It is also permitted to write @samp{Sept} instead of @samp{September}. When months are written literally, the calendar date may be given as any of the following: @example @var{day} @var{month} @var{year} @var{day} @var{month} @var{month} @var{day} @var{year} @var{day}-@var{month}-@var{year} @end example Or, omitting the year: @example @var{month} @var{day} @end example @node Time of day items @section Time of day items @cindex time of day item A @dfn{time of day item} in date strings specifies the time on a given day. Here are some examples, all of which represent the same time: @example 20:02:00.000000 20:02 8:02pm 20:02-0500 # In EST (U.S. Eastern Standard Time). @end example @cindex leap seconds More generally, the time of day may be given as @samp{@var{hour}:@var{minute}:@var{second}}, where @var{hour} is a number between 0 and 23, @var{minute} is a number between 0 and 59, and @var{second} is a number between 0 and 59 possibly followed by @samp{.} or @samp{,} and a fraction containing one or more digits. Alternatively, @samp{:@var{second}} can be omitted, in which case it is taken to be zero. On the rare hosts that support leap seconds, @var{second} may be 60. @findex am @r{in date strings} @findex pm @r{in date strings} @findex midnight @r{in date strings} @findex noon @r{in date strings} If the time is followed by @samp{am} or @samp{pm} (or @samp{a.m.} or @samp{p.m.}), @var{hour} is restricted to run from 1 to 12, and @samp{:@var{minute}} may be omitted (taken to be zero). @samp{am} indicates the first half of the day, @samp{pm} indicates the second half of the day. In this notation, 12 is the predecessor of 1: midnight is @samp{12am} while noon is @samp{12pm}. (This is the zero-oriented interpretation of @samp{12am} and @samp{12pm}, as opposed to the old tradition derived from Latin which uses @samp{12m} for noon and @samp{12pm} for midnight.) @cindex time zone correction @cindex minutes, time zone correction by The time may alternatively be followed by a time zone correction, expressed as @samp{@var{s}@var{hh}@var{mm}}, where @var{s} is @samp{+} or @samp{-}, @var{hh} is a number of zone hours and @var{mm} is a number of zone minutes. The zone minutes term, @var{mm}, may be omitted, in which case the one- or two-digit correction is interpreted as a number of hours. You can also separate @var{hh} from @var{mm} with a colon. When a time zone correction is given this way, it forces interpretation of the time relative to Coordinated Universal Time (UTC), overriding any previous specification for the time zone or the local time zone. For example, @samp{+0530} and @samp{+05:30} both stand for the time zone 5.5 hours ahead of UTC (e.g., India). This is the best way to specify a time zone correction by fractional parts of an hour. The maximum zone correction is 24 hours. Either @samp{am}/@samp{pm} or a time zone correction may be specified, but not both. @node Time zone items @section Time zone items @cindex time zone item A @dfn{time zone item} specifies an international time zone, indicated by a small set of letters, e.g., @samp{UTC} or @samp{Z} for Coordinated Universal Time. Any included periods are ignored. By following a non-daylight-saving time zone by the string @samp{DST} in a separate word (that is, separated by some white space), the corresponding daylight saving time zone may be specified. Alternatively, a non-daylight-saving time zone can be followed by a time zone correction, to add the two values. This is normally done only for @samp{UTC}; for example, @samp{UTC+05:30} is equivalent to @samp{+05:30}. Time zone items other than @samp{UTC} and @samp{Z} are obsolescent and are not recommended, because they are ambiguous; for example, @samp{EST} has a different meaning in Australia than in the United States, and @samp{A} has different meaning as a military time zone than as an obsolete RFC 822 time zone. Instead, it's better to use unambiguous numeric time zone corrections like @samp{-0500}, as described in the previous section. If neither a time zone item nor a time zone correction is supplied, timestamps are interpreted using the rules of the default time zone (@pxref{Specifying time zone rules}). @node Combined date and time of day items @section Combined date and time of day items @cindex combined date and time of day item @cindex ISO 8601 date and time of day format @cindex date and time of day format, ISO 8601 The ISO 8601 date and time of day extended format consists of an ISO 8601 date, a @samp{T} character separator, and an ISO 8601 time of day. This format is also recognized if the @samp{T} is replaced by a space. In this format, the time of day should use 24-hour notation. Fractional seconds are allowed, with either comma or period preceding the fraction. ISO 8601 fractional minutes and hours are not supported. Typically, hosts support nanosecond timestamp resolution; excess precision is silently discarded. Here are some examples: @example 2012-09-24T20:02:00.052-05:00 2012-12-31T23:59:59,999999999+11:00 1970-01-01 00:00Z @end example @node Day of week items @section Day of week items @cindex day of week item The explicit mention of a day of the week will forward the date (only if necessary) to reach that day of the week in the future. Days of the week may be spelled out in full: @samp{Sunday}, @samp{Monday}, @samp{Tuesday}, @samp{Wednesday}, @samp{Thursday}, @samp{Friday} or @samp{Saturday}. Days may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations @samp{Tues} for @samp{Tuesday}, @samp{Wednes} for @samp{Wednesday} and @samp{Thur} or @samp{Thurs} for @samp{Thursday} are also allowed. @findex next @var{day} @findex last @var{day} A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like @samp{third monday}. In this context, @samp{last @var{day}} or @samp{next @var{day}} is also acceptable; they move one week before or after the day that @var{day} by itself would represent. A comma following a day of the week item is ignored. @node Relative items in date strings @section Relative items in date strings @cindex relative items in date strings @cindex displacement of dates @dfn{Relative items} adjust a date (or the current date if none) forward or backward. The effects of relative items accumulate. Here are some examples: @example 1 year 1 year ago 3 years 2 days @end example @findex year @r{in date strings} @findex month @r{in date strings} @findex fortnight @r{in date strings} @findex week @r{in date strings} @findex day @r{in date strings} @findex hour @r{in date strings} @findex minute @r{in date strings} The unit of time displacement may be selected by the string @samp{year} or @samp{month} for moving by whole years or months. These are fuzzy units, as years and months are not all of equal duration. More precise units are @samp{fortnight} which is worth 14 days, @samp{week} worth 7 days, @samp{day} worth 24 hours, @samp{hour} worth 60 minutes, @samp{minute} or @samp{min} worth 60 seconds, and @samp{second} or @samp{sec} worth one second. An @samp{s} suffix on these units is accepted and ignored. @findex ago @r{in date strings} The unit of time may be preceded by a multiplier, given as an optionally signed number. Unsigned numbers are taken as positively signed. No number at all implies 1 for a multiplier. Following a relative item by the string @samp{ago} is equivalent to preceding the unit by a multiplier with value @math{-1}. @findex day @r{in date strings} @findex tomorrow @r{in date strings} @findex yesterday @r{in date strings} The string @samp{tomorrow} is worth one day in the future (equivalent to @samp{day}), the string @samp{yesterday} is worth one day in the past (equivalent to @samp{day ago}). @findex now @r{in date strings} @findex today @r{in date strings} @findex this @r{in date strings} The strings @samp{now} or @samp{today} are relative items corresponding to zero-valued time displacement, these strings come from the fact a zero-valued time displacement represents the current time when not otherwise changed by previous items. They may be used to stress other items, like in @samp{12:00 today}. The string @samp{this} also has the meaning of a zero-valued time displacement, but is preferred in date strings like @samp{this thursday}. When a relative item causes the resulting date to cross a boundary where the clocks were adjusted, typically for daylight saving time, the resulting date and time are adjusted accordingly. The fuzz in units can cause problems with relative items. For example, @samp{2020-07-31 -1 month} might evaluate to 2020-07-01, because 2020-06-31 is an invalid date. To determine the previous month more reliably, you can ask for the month before the 15th of the current month. For example: @example $ date -R Thu, 31 Jul 2020 13:02:39 -0400 $ date --date='-1 month' +'Last month was %B?' Last month was July? $ date --date="$(date +%Y-%m-15) -1 month" +'Last month was %B!' Last month was June! @end example Also, take care when manipulating dates around clock changes such as daylight saving leaps. In a few cases these have added or subtracted as much as 24 hours from the clock, so it is often wise to adopt universal time by setting the @env{TZ} environment variable to @samp{UTC0} before embarking on calendrical calculations. @node Pure numbers in date strings @section Pure numbers in date strings @cindex pure numbers in date strings The precise interpretation of a pure decimal number depends on the context in the date string. If the decimal number is of the form @var{yyyy}@var{mm}@var{dd} and no other calendar date item (@pxref{Calendar date items}) appears before it in the date string, then @var{yyyy} is read as the year, @var{mm} as the month number and @var{dd} as the day of the month, for the specified calendar date. If the decimal number is of the form @var{hh}@var{mm} and no other time of day item appears before it in the date string, then @var{hh} is read as the hour of the day and @var{mm} as the minute of the hour, for the specified time of day. @var{mm} can also be omitted. If both a calendar date and a time of day appear to the left of a number in the date string, but no relative item, then the number overrides the year. @node Seconds since the Epoch @section Seconds since the Epoch If you precede a number with @samp{@@}, it represents an internal timestamp as a count of seconds. The number can contain an internal decimal point (either @samp{.} or @samp{,}); any excess precision not supported by the internal representation is truncated toward minus infinity. Such a number cannot be combined with any other date item, as it specifies a complete timestamp. @cindex beginning of time, for POSIX @cindex Epoch, for POSIX Internally, computer times are represented as a count of seconds since an Epoch---a well-defined point of time. On GNU and POSIX systems, the Epoch is 1970-01-01 00:00:00 UTC, so @samp{@@0} represents this time, @samp{@@1} represents 1970-01-01 00:00:01 UTC, and so forth. GNU and most other POSIX-compliant systems support such times as an extension to POSIX, using negative counts, so that @samp{@@-1} represents 1969-12-31 23:59:59 UTC. Most modern systems count seconds with 64-bit two's-complement integers of seconds with nanosecond subcounts, which is a range that includes the known lifetime of the universe with nanosecond resolution. Some obsolescent systems count seconds with 32-bit two's-complement integers and can represent times from 1901-12-13 20:45:52 through 2038-01-19 03:14:07 UTC@. A few systems sport other time ranges. @cindex leap seconds On most hosts, these counts ignore the presence of leap seconds. For example, on most hosts @samp{@@1483228799} represents 2016-12-31 23:59:59 UTC, @samp{@@1483228800} represents 2017-01-01 00:00:00 UTC, and there is no way to represent the intervening leap second 2016-12-31 23:59:60 UTC. @node Specifying time zone rules @section Specifying time zone rules @vindex TZ Normally, dates are interpreted using the rules of the current time zone, which in turn are specified by the @env{TZ} environment variable, or by a system default if @env{TZ} is not set. To specify a different set of default time zone rules that apply just to one date, start the date with a string of the form @samp{TZ="@var{rule}"}. The two quote characters (@samp{"}) must be present in the date, and any quotes or backslashes within @var{rule} must be escaped by a backslash. For example, with the GNU @command{date} command you can answer the question ``What time is it in New York when a Paris clock shows 6:30am on October 31, 2019?'' by using a date beginning with @samp{TZ="Europe/Paris"} as shown in the following shell transcript: @example $ export TZ="America/New_York" $ date --date='TZ="Europe/Paris" 2019-10-31 06:30' Sun Oct 31 01:30:00 EDT 2019 @end example In this example, the @option{--date} operand begins with its own @env{TZ} setting, so the rest of that operand is processed according to @samp{Europe/Paris} rules, treating the string @samp{2019-10-31 06:30} as if it were in Paris. However, since the output of the @command{date} command is processed according to the overall time zone rules, it uses New York time. (Paris was normally six hours ahead of New York in 2019, but this example refers to a brief Halloween period when the gap was five hours.) A @env{TZ} value is a rule that typically names a location in the @uref{https://www.iana.org/time-zones, @samp{tz} database}. A recent catalog of location names appears in the @uref{https://twiki.org/cgi-bin/xtra/tzdatepick.html, TWiki Date and Time Gateway}. A few non-GNU hosts require a colon before a location name in a @env{TZ} setting, e.g., @samp{TZ=":America/New_York"}. The @samp{tz} database includes a wide variety of locations ranging from @samp{Africa/Abidjan} to @samp{Pacific/Tongatapu}, but if you are at sea and have your own private time zone, or if you are using a non-GNU host that does not support the @samp{tz} database, you may need to use a POSIX rule instead. The previously-mentioned POSIX rule @samp{UTC0} says that the time zone abbreviation is @samp{UTC}, the zone is zero hours away from Greenwich, and there is no daylight saving time. POSIX rules can also specify nonzero Greenwich offsets. For example, the following shell transcript answers the question ``What time is it five and a half hours east of Greenwich when a clock seven hours west of Greenwich shows 9:50pm on July 12, 2022?'' @example $ TZ="<+0530>-5:30" date --date='TZ="<-07>+7" 2022-07-12 21:50' Wed Jul 13 10:20:00 +0530 2022 @end example @noindent This example uses the somewhat-confusing POSIX convention for rules. @samp{TZ="<-07>+7"} says that the time zone abbreviation is @samp{-07} and the time zone is 7 hours west of Greenwich, and @samp{TZ="<+0530>-5:30"} says that the time zone abbreviation is @samp{+0530} and the time zone is 5 hours 30 minutes east of Greenwich. Although trickier POSIX @env{TZ} settings like @samp{TZ="<-05>+5<-04>,M3.2.0/2,M11.1.0/2"} can specify some daylight saving regimes, location-based settings like @samp{TZ="America/New_York"} are typically simpler and more accurate historically. @xref{TZ Variable,, Specifying the Time Zone with @code{TZ}, libc, The GNU C Library}. @node Authors of parse_datetime @section Authors of @code{parse_datetime} @c the anchor keeps the old node name, to try to avoid breaking links @anchor{Authors of get_date} @cindex authors of @code{parse_datetime} @cindex Bellovin, Steven M. @cindex Salz, Rich @cindex Berets, Jim @cindex MacKenzie, David @cindex Meyering, Jim @cindex Eggert, Paul @code{parse_datetime} started life as @code{getdate}, as originally implemented by Steven M. Bellovin (@email{smb@@research.att.com}) while at the University of North Carolina at Chapel Hill. The code was later tweaked by a couple of people on Usenet, then completely overhauled by Rich $alz (@email{rsalz@@bbn.com}) and Jim Berets (@email{jberets@@bbn.com}) in August, 1990. Various revisions for the GNU system were made by David MacKenzie, Jim Meyering, Paul Eggert and others, including renaming it to @code{get_date} to avoid a conflict with the alternative Posix function @code{getdate}, and a later rename to @code{parse_datetime}. The Posix function @code{getdate} can parse more locale-specific dates using @code{strptime}, but relies on an environment variable and external file, and lacks the thread-safety of @code{parse_datetime}. @cindex Pinard, F. @cindex Berry, K. This chapter was originally produced by Fran@,{c}ois Pinard (@email{pinard@@iro.umontreal.ca}) from the @file{parse_datetime.y} source code, and then edited by K. Berry (@email{kb@@cs.umb.edu}). shishi-1.0.3/doc/ccache2shishi.10000644000000000000000000000223314273615530013226 00000000000000.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. .TH CCACHE2SHISHI "1" "August 2022" "ccache2shishi 1.0.3" "User Commands" .SH NAME ccache2shishi \- Shishi user ticket conversion tool .SH SYNOPSIS .B ccache2shishi [\fI\,OPTION\/\fR]... [\fI\,INFILE \/\fR[\fI\,OUTFILE\/\fR]]... .SH DESCRIPTION Read ccache data from INFILE (usually \fI\,/tmp/krb5cc_UID\/\fP) and write Shishi tickets to OUTFILE. If INFILE and OUTFILE are not specified, use the defaults. .TP \fB\-h\fR, \fB\-\-help\fR Print help and exit .TP \fB\-V\fR, \fB\-\-version\fR Print version and exit .TP \fB\-v\fR, \fB\-\-verbose\fR Produce verbose output. .IP Use multiple times to increase amount of information. .TP \fB\-q\fR, \fB\-\-quiet\fR Don't produce any diagnostic output. (default=off) .PP Mandatory arguments to long options are mandatory for short options too. .SH "REPORTING BUGS" Report bugs to . .SH "SEE ALSO" The full documentation for .B ccache2shishi is maintained as a Texinfo manual. If the .B info and .B ccache2shishi programs are properly installed at your site, the command .IP .B info ccache2shishi .PP should give you access to the complete manual. shishi-1.0.3/doc/shishi.info-20000644000000000000000000112217014273615527012761 00000000000000This is shishi.info, produced by makeinfo version 6.7 from shishi.texi. This manual is last updated 7 August 2022 for version 1.0.3 of Shishi. Copyright (C) 2002-2022 Simon Josefsson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". INFO-DIR-SECTION GNU utilities START-INFO-DIR-ENTRY * shishi: (shishi). A Kerberos 5 implementation END-INFO-DIR-ENTRY INFO-DIR-SECTION GNU Libraries START-INFO-DIR-ENTRY * libshishi: (shishi). Library implementing Kerberos 5. END-INFO-DIR-ENTRY  File: shishi.info, Node: TGS Functions, Next: Ticket (ASN.1) Functions, Prev: AS Functions, Up: Programming Manual 5.8 TGS Functions ================= The Ticket Granting Service (TGS) is used to get subsequent tickets, authenticated by other tickets (so called ticket granting tickets). The following illustrates the TGS-REQ and TGS-REP ASN.1 structures. -- Request -- TGS-REQ ::= KDC-REQ {12} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- TGS-REP ::= KDC-REP {13, EncTGSRepPart, { keyuse-EncTGSRepPart-sesskey | keyuse-EncTGSRepPart-subkey }} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncTGSRepPart ::= [APPLICATION 26] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } shishi_tgs ---------- -- Function: int shishi_tgs (Shishi * HANDLE, Shishi_tgs ** TGS) HANDLE: shishi handle as allocated by 'shishi_init()'. TGS: holds pointer to newly allocate Shishi_tgs structure. *Description:* Allocate a new TGS exchange variable. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_done --------------- -- Function: void shishi_tgs_done (Shishi_tgs * TGS) TGS: structure that holds information about AS exchange *Description:* Deallocate resources associated with TGS exchange. This should be called by the application when it no longer need to utilize the TGS exchange handle. shishi_tgs_tgtkt ---------------- -- Function: Shishi_tkt * shishi_tgs_tgtkt (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get Ticket-granting-ticket from TGS exchange. *Return value:* Returns the ticket-granting-ticket used in the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_tgtkt_set -------------------- -- Function: void shishi_tgs_tgtkt_set (Shishi_tgs * TGS, Shishi_tkt * TGTKT) TGS: structure that holds information about TGS exchange TGTKT: ticket granting ticket to store in TGS. *Description:* Set the Ticket in the TGS exchange. shishi_tgs_ap ------------- -- Function: Shishi_ap * shishi_tgs_ap (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get the AP from TGS exchange. *Return value:* Returns the AP exchange (part of TGS-REQ) from the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_req -------------- -- Function: Shishi_asn1 shishi_tgs_req (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get the TGS-REQ from TGS exchange. *Return value:* Returns the generated TGS-REQ from the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_req_set ------------------ -- Function: void shishi_tgs_req_set (Shishi_tgs * TGS, Shishi_asn1 TGSREQ) TGS: structure that holds information about TGS exchange TGSREQ: tgsreq to store in TGS. *Description:* Set the TGS-REQ in the TGS exchange. shishi_tgs_req_der ------------------ -- Function: int shishi_tgs_req_der (Shishi_tgs * TGS, char ** OUT, size_t * OUTLEN) TGS: structure that holds information about TGS exchange OUT: output array with newly allocated DER encoding of TGS-REQ. OUTLEN: length of output array with DER encoding of TGS-REQ. *Description:* DER encode TGS-REQ. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_req_der_set ---------------------- -- Function: int shishi_tgs_req_der_set (Shishi_tgs * TGS, char * DER, size_t DERLEN) TGS: structure that holds information about TGS exchange DER: input array with DER encoded AP-REQ. DERLEN: length of input array with DER encoded AP-REQ. *Description:* DER decode TGS-REQ and set it TGS exchange. If decoding fails, the TGS-REQ in the TGS exchange remains. *Return value:* Returns SHISHI_OK. shishi_tgs_req_process ---------------------- -- Function: int shishi_tgs_req_process (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Process new TGS-REQ and set ticket. The key to decrypt the TGS-REQ is taken from the EncKDCReqPart of the TGS tgticket. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_req_build -------------------- -- Function: int shishi_tgs_req_build (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Checksum data in authenticator and add ticket and authenticator to TGS-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_rep -------------- -- Function: Shishi_asn1 shishi_tgs_rep (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get TGS-REP from TGS exchange. *Return value:* Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_rep_der ------------------ -- Function: int shishi_tgs_rep_der (Shishi_tgs * TGS, char ** OUT, size_t * OUTLEN) TGS: structure that holds information about TGS exchange OUT: output array with newly allocated DER encoding of TGS-REP. OUTLEN: length of output array with DER encoding of TGS-REP. *Description:* DER encode TGS-REP. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_rep_process ---------------------- -- Function: int shishi_tgs_rep_process (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Process new TGS-REP and set ticket. The key to decrypt the TGS-REP is taken from the EncKDCRepPart of the TGS tgticket. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_rep_build -------------------- -- Function: int shishi_tgs_rep_build (Shishi_tgs * TGS, int KEYUSAGE, Shishi_key * KEY) TGS: structure that holds information about TGS exchange KEYUSAGE: keyusage integer. KEY: user's key, used to encrypt the encrypted part of the TGS-REP. *Description:* Build TGS-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_krberror ------------------- -- Function: Shishi_asn1 shishi_tgs_krberror (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get KRB-ERROR from TGS exchange. *Return value:* Returns the received TGS-REP from the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_krberror_der ----------------------- -- Function: int shishi_tgs_krberror_der (Shishi_tgs * TGS, char ** OUT, size_t * OUTLEN) TGS: structure that holds information about TGS exchange OUT: output array with newly allocated DER encoding of KRB-ERROR. OUTLEN: length of output array with DER encoding of KRB-ERROR. *Description:* DER encode KRB-ERROR. OUT is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_krberror_set ----------------------- -- Function: void shishi_tgs_krberror_set (Shishi_tgs * TGS, Shishi_asn1 KRBERROR) TGS: structure that holds information about TGS exchange KRBERROR: krberror to store in TGS. *Description:* Set the KRB-ERROR in the TGS exchange. shishi_tgs_tkt -------------- -- Function: Shishi_tkt * shishi_tgs_tkt (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Get Ticket from TGS exchange. *Return value:* Returns the newly acquired ticket from the TGS exchange, or NULL if not yet set or an error occured. shishi_tgs_tkt_set ------------------ -- Function: void shishi_tgs_tkt_set (Shishi_tgs * TGS, Shishi_tkt * TKT) TGS: structure that holds information about TGS exchange TKT: ticket to store in TGS. *Description:* Set the Ticket in the TGS exchange. shishi_tgs_sendrecv_hint ------------------------ -- Function: int shishi_tgs_sendrecv_hint (Shishi_tgs * TGS, Shishi_tkts_hint * HINT) TGS: structure that holds information about TGS exchange HINT: additional parameters that modify connection behaviour, or 'NULL'. *Description:* Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets. The HINT structure can be used to set, e.g., parameters for TLS authentication. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_sendrecv ------------------- -- Function: int shishi_tgs_sendrecv (Shishi_tgs * TGS) TGS: structure that holds information about TGS exchange *Description:* Send TGS-REQ and receive TGS-REP or KRB-ERROR. This is the subsequent authentication, usually used to acquire server tickets. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_set_server --------------------- -- Function: int shishi_tgs_set_server (Shishi_tgs * TGS, const char * SERVER) TGS: structure that holds information about TGS exchange SERVER: indicates the server to acquire ticket for. *Description:* Set the server in the TGS-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_set_realm -------------------- -- Function: int shishi_tgs_set_realm (Shishi_tgs * TGS, const char * REALM) TGS: structure that holds information about TGS exchange REALM: indicates the realm to acquire ticket for. *Description:* Set the server in the TGS-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_tgs_set_realmserver -------------------------- -- Function: int shishi_tgs_set_realmserver (Shishi_tgs * TGS, const char * REALM, const char * SERVER) TGS: structure that holds information about TGS exchange REALM: indicates the realm to acquire ticket for. SERVER: indicates the server to acquire ticket for. *Description:* Set the realm and server in the TGS-REQ. *Return value:* Returns SHISHI_OK iff successful.  File: shishi.info, Node: Ticket (ASN.1) Functions, Next: AS/TGS Functions, Prev: TGS Functions, Up: Programming Manual 5.9 Ticket (ASN.1) Functions ============================ *Note Ticket Functions::, for an high-level overview of tickets. The following illustrates the Ticket and EncTicketPart ASN.1 structures. Ticket ::= [APPLICATION 1] SEQUENCE { tkt-vno [0] INTEGER (5), realm [1] Realm, sname [2] PrincipalName, enc-part [3] EncryptedData -- EncTicketPart } -- Encrypted part of ticket EncTicketPart ::= [APPLICATION 3] SEQUENCE { flags [0] TicketFlags, key [1] EncryptionKey, crealm [2] Realm, cname [3] PrincipalName, transited [4] TransitedEncoding, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, caddr [9] HostAddresses OPTIONAL, authorization-data [10] AuthorizationData OPTIONAL } shishi_ticket ------------- -- Function: Shishi_asn1 shishi_ticket (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new ASN.1 Ticket, populated with some default values. *Return value:* Returns the ticket or NULL on failure. shishi_ticket_realm_get ----------------------- -- Function: int shishi_ticket_realm_get (Shishi * HANDLE, Shishi_asn1 TICKET, char ** REALM, size_t * REALMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: input variable with ticket info. REALM: output array with newly allocated name of realm in ticket. REALMLEN: size of output array. *Description:* Extract realm from ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_realm_set ----------------------- -- Function: int shishi_ticket_realm_set (Shishi * HANDLE, Shishi_asn1 TICKET, const char * REALM) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: input variable with ticket info. REALM: input array with name of realm. *Description:* Set the realm field in the Ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_server -------------------- -- Function: int shishi_ticket_server (Shishi * HANDLE, Shishi_asn1 TICKET, char ** SERVER, size_t * SERVERLEN) HANDLE: Shishi library handle create by 'shishi_init()'. TICKET: ASN.1 Ticket variable to get server name from. SERVER: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate SERVERLEN). SERVERLEN: pointer to length of SERVER on output, excluding terminating zero. May be 'NULL' (to only populate SERVER). *Description:* Represent server principal name in Ticket as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length SERVERLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_sname_set ----------------------- -- Function: int shishi_ticket_sname_set (Shishi * HANDLE, Shishi_asn1 TICKET, Shishi_name_type NAME_TYPE, char * SNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: Ticket variable to set server name field in. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. SNAME: input array with principal name. *Description:* Set the server name field in the Ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_get_enc_part_etype -------------------------------- -- Function: int shishi_ticket_get_enc_part_etype (Shishi * HANDLE, Shishi_asn1 TICKET, int32_t * ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: Ticket variable to get value from. ETYPE: output variable that holds the value. *Description:* Extract Ticket.enc-part.etype. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_set_enc_part -------------------------- -- Function: int shishi_ticket_set_enc_part (Shishi * HANDLE, Shishi_asn1 TICKET, int32_t ETYPE, uint32_t KVNO, const char * BUF, size_t BUFLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: Ticket to add enc-part field to. ETYPE: encryption type used to encrypt enc-part. KVNO: key version number. BUF: input array with encrypted enc-part. BUFLEN: size of input array with encrypted enc-part. *Description:* Set the encrypted enc-part field in the Ticket. The encrypted data is usually created by calling 'shishi_encrypt()' on the DER encoded enc-part. To save time, you may want to use 'shishi_ticket_add_enc_part()' instead, which calculates the encrypted data and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_ticket_add_enc_part -------------------------- -- Function: int shishi_ticket_add_enc_part (Shishi * HANDLE, Shishi_asn1 TICKET, Shishi_key * KEY, Shishi_asn1 ENCTICKETPART) HANDLE: shishi handle as allocated by 'shishi_init()'. TICKET: Ticket to add enc-part field to. KEY: key used to encrypt enc-part. ENCTICKETPART: EncTicketPart to add. *Description:* Encrypts DER encoded EncTicketPart using key and stores it in the Ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_encticketpart_get_key ---------------------------- -- Function: int shishi_encticketpart_get_key (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, Shishi_key ** KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. KEY: newly allocated key. *Description:* Extract the session key in the Ticket. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_key_set ---------------------------- -- Function: int shishi_encticketpart_key_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, Shishi_key * KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. KEY: key handle with information to store in encticketpart. *Description:* Set the EncTicketPart.key field to key type and value of supplied key. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_flags_set ------------------------------ -- Function: int shishi_encticketpart_flags_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, int FLAGS) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. FLAGS: flags to set in encticketpart. *Description:* Set the EncTicketPart.flags to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_crealm_set ------------------------------- -- Function: int shishi_encticketpart_crealm_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, const char * REALM) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. REALM: input array with name of realm. *Description:* Set the realm field in the KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_encticketpart_cname_set ------------------------------ -- Function: int shishi_encticketpart_cname_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, Shishi_name_type NAME_TYPE, const char * PRINCIPAL) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. PRINCIPAL: input array with principal name. *Description:* Set the client name field in the EncTicketPart. *Return value:* Returns SHISHI_OK iff successful. shishi_encticketpart_transited_set ---------------------------------- -- Function: int shishi_encticketpart_transited_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, int32_t TRTYPE, const char * TRDATA, size_t TRDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. TRTYPE: transitedencoding type, e.g. SHISHI_TR_DOMAIN_X500_COMPRESS. TRDATA: actual transited realm data. TRDATALEN: length of actual transited realm data. *Description:* Set the EncTicketPart.transited field to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_authtime_set --------------------------------- -- Function: int shishi_encticketpart_authtime_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, const char * AUTHTIME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. AUTHTIME: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.authtime to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_endtime_set -------------------------------- -- Function: int shishi_encticketpart_endtime_set (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, const char * ENDTIME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCTICKETPART: input EncTicketPart variable. ENDTIME: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.endtime to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encticketpart_client --------------------------- -- Function: int shishi_encticketpart_client (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. ENCTICKETPART: EncTicketPart variable to get client name from. CLIENT: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Represent client principal name in EncTicketPart as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_encticketpart_clientrealm -------------------------------- -- Function: int shishi_encticketpart_clientrealm (Shishi * HANDLE, Shishi_asn1 ENCTICKETPART, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. ENCTICKETPART: EncTicketPart variable to get client name and realm from. CLIENT: pointer to newly allocated zero terminated string containing principal name and realm. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Convert cname and realm fields from EncTicketPart to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful.  File: shishi.info, Node: AS/TGS Functions, Next: Authenticator Functions, Prev: Ticket (ASN.1) Functions, Up: Programming Manual 5.10 AS/TGS Functions ===================== The Authentication Service (AS) is used to get an initial ticket using e.g. your password. The Ticket Granting Service (TGS) is used to get subsequent tickets using other tickets. Protocol wise the procedures are very similar, which is the reason they are described together. The following illustrates the AS-REQ, TGS-REQ and AS-REP, TGS-REP ASN.1 structures. Most of the functions use the mnemonic "KDC" instead of either AS or TGS, which means the function operates on both AS and TGS types. Only where the distinction between AS and TGS is important are the AS and TGS names used. Remember, these are low-level functions, and normal applications will likely be satisfied with the AS (*note AS Functions::) and TGS (*note TGS Functions::) interfaces, or the even more high-level Ticket Set (*note Ticket Set Functions::) interface. -- Request -- AS-REQ ::= KDC-REQ {10} TGS-REQ ::= KDC-REQ {12} KDC-REQ {INTEGER:tagnum} ::= [APPLICATION tagnum] SEQUENCE { pvno [1] INTEGER (5) -- first tag is [1], not [0] --, msg-type [2] INTEGER (tagnum), padata [3] SEQUENCE OF PA-DATA OPTIONAL, req-body [4] KDC-REQ-BODY } KDC-REQ-BODY ::= SEQUENCE { kdc-options [0] KDCOptions, cname [1] PrincipalName OPTIONAL -- Used only in AS-REQ --, realm [2] Realm -- Server's realm -- Also client's in AS-REQ --, sname [3] PrincipalName OPTIONAL, from [4] KerberosTime OPTIONAL, till [5] KerberosTime, rtime [6] KerberosTime OPTIONAL, nonce [7] UInt32, etype [8] SEQUENCE OF Int32 -- EncryptionType -- in preference order --, addresses [9] HostAddresses OPTIONAL, enc-authorization-data [10] EncryptedData { AuthorizationData, { keyuse-TGSReqAuthData-sesskey | keyuse-TGSReqAuthData-subkey } } OPTIONAL, additional-tickets [11] SEQUENCE OF Ticket OPTIONAL } -- Reply -- AS-REP ::= KDC-REP {11, EncASRepPart, {keyuse-EncASRepPart}} TGS-REP ::= KDC-REP {13, EncTGSRepPart, { keyuse-EncTGSRepPart-sesskey | keyuse-EncTGSRepPart-subkey }} KDC-REP {INTEGER:tagnum, TypeToEncrypt, UInt32:KeyUsages} ::= [APPLICATION tagnum] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (tagnum), padata [2] SEQUENCE OF PA-DATA OPTIONAL, crealm [3] Realm, cname [4] PrincipalName, ticket [5] Ticket, enc-part [6] EncryptedData {TypeToEncrypt, KeyUsages} } EncASRepPart ::= [APPLICATION 25] EncKDCRepPart EncTGSRepPart ::= [APPLICATION 26] EncKDCRepPart EncKDCRepPart ::= SEQUENCE { key [0] EncryptionKey, last-req [1] LastReq, nonce [2] UInt32, key-expiration [3] KerberosTime OPTIONAL, flags [4] TicketFlags, authtime [5] KerberosTime, starttime [6] KerberosTime OPTIONAL, endtime [7] KerberosTime, renew-till [8] KerberosTime OPTIONAL, srealm [9] Realm, sname [10] PrincipalName, caddr [11] HostAddresses OPTIONAL } shishi_as_derive_salt --------------------- -- Function: int shishi_as_derive_salt (Shishi * HANDLE, Shishi_asn1 ASREQ, Shishi_asn1 ASREP, char ** SALT, size_t * SALTLEN) HANDLE: Shishi handle as allocated by 'shishi_init()'. ASREQ: Input AS-REQ variable. ASREP: Input AS-REP variable. SALT: Returned pointer to newly allocated output array. SALTLEN: Pointer to integer, returning size of output array. *Description:* Computes the salt that should be used when deriving a key via 'shishi_string_to_key()' for an AS exchange. Currently this searches for PA-DATA of type 'SHISHI_PA_PW_SALT' in the AS-REP provided by ASREP, and if present returns it. Otherwise the salt is composed from the client name and the realm, both are extracted from the request ASREQ. *Return value:* Returns 'SHISHI_OK' if successful. Failure conditions include various ASN.1 issues. shishi_kdcreq_sendrecv_hint --------------------------- -- Function: int shishi_kdcreq_sendrecv_hint (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 * KDCREP, Shishi_tkts_hint * HINT) HANDLE: Shishi library handle created by 'shishi_init()'. KDCREQ: Input variable with a prepared AS-REQ. KDCREP: Output pointer variable for decoded AS-REP. HINT: Input 'Shishi_tkts_hint' structure with flags. *Description:* Sends a request to KDC, and receives the response. The provided request KDCREQ and the hints structure HINT, together determine transmitted data. On reception the reply is decoded as AS-REP into KDCREP. *Return value:* Return code is 'SHISHI_OK' on success, 'SHISHI_KDC_TIMEOUT' on timeouts, 'SHISHI_ASN1_ERROR' on translation errors, and 'SHISHI_GOT_KRBERROR' for other corruptions. shishi_kdcreq_sendrecv ---------------------- -- Function: int shishi_kdcreq_sendrecv (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 * KDCREP) HANDLE: Shishi library handle created by 'shishi_init()'. KDCREQ: Input variable with a prepared AS-REQ. KDCREP: Output pointer variable returning received AS-REP. *Description:* Sends a request to KDC, and receives the response. The provided AS-REQ, in KDCREQ, sets all data for the request. On reception the reply is decoded as AS-REP into KDCREP. *Return value:* Return code is 'SHISHI_OK' on success, 'SHISHI_KDC_TIMEOUT' on timeouts, 'SHISHI_ASN1_ERROR' on translation errors, and 'SHISHI_GOT_KRBERROR' for other corruptions. shishi_kdc_copy_crealm ---------------------- -- Function: int shishi_kdc_copy_crealm (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_asn1 ENCTICKETPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP where the field "crealm" is updated. ENCTICKETPART: EncTicketPart providing "crealm" field. *Description:* Reads the field "crealm" from the ticket ENCTICKETPART and copies the value into the reply KDCREP. *Return value:* Returns 'SHISHI_OK' if successful, and ASN.1 failures otherwise. shishi_as_check_crealm ---------------------- -- Function: int shishi_as_check_crealm (Shishi * HANDLE, Shishi_asn1 ASREQ, Shishi_asn1 ASREP) HANDLE: Shishi handle as allocated by 'shishi_init()'. ASREQ: Request of type AS-REQ. ASREP: Reply structure of type AS-REP. *Description:* Verifies that the fields ASREQ.req-body.realm and ASREP.crealm contain identical realm names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see 'shishi_kdc_process()' for more details. *Return value:* Returns 'SHISHI_OK' if successful, 'SHISHI_REALM_MISMATCH' whenever the realm names differ, and an error code otherwise. shishi_kdc_copy_cname --------------------- -- Function: int shishi_kdc_copy_cname (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_asn1 ENCTICKETPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP where the field "cname" is updated. ENCTICKETPART: EncTicketPart providing "cname" field. *Description:* Reads the field "cname" from the ticket ENCTICKETPART and copies the value into the reply KDCREP. *Return value:* Returns 'SHISHI_OK' if successful, and ASN.1 failures otherwise. shishi_as_check_cname --------------------- -- Function: int shishi_as_check_cname (Shishi * HANDLE, Shishi_asn1 ASREQ, Shishi_asn1 ASREP) HANDLE: Shishi handle as allocated by 'shishi_init()'. ASREQ: Request of type AS-REQ. ASREP: Reply structure of type AS-REP. *Description:* Verifies that the fields ASREQ.req-body.cname and ASREP.cname contain identical names. This is one of the steps that has to be performed when processing an exchange of AS-REQ and AS-REP; see 'shishi_kdc_process()' for more details. *Return value:* Returns 'SHISHI_OK' if successful, 'SHISHI_CNAME_MISMATCH' if the names differ, and an error code otherwise. shishi_kdc_copy_nonce --------------------- -- Function: int shishi_kdc_copy_nonce (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 ENCKDCREPPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ providing "nonce" field. ENCKDCREPPART: EncKDCRepPart where "nonce" field is updated. *Description:* Sets the field "nonce" in ENCKDCREPPART to a value retreived from the corresponding field in KDCREQ. *Return value:* Returns 'SHISHI_OK' if successful. shishi_kdc_check_nonce ---------------------- -- Function: int shishi_kdc_check_nonce (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 ENCKDCREPPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. KDCREQ: Request of type KDC-REQ. ENCKDCREPPART: Encrypted KDC-REP part. *Description:* Verifies that KDCREQ.req-body.nonce and ENCKDCREPPART.nonce contain matching values. This is one of the steps that has to be performed when processing an exchange of KDC-REQ and KDC-REP. *Return value:* Returns 'SHISHI_OK' if successful, 'SHISHI_NONCE_MISMATCH' whenever the nonces are of differing lengths (usually a sign that a buggy server truncates the nonce to 4 bytes) and the same code if the nonce values differ, or an error code otherwise. shishi_tgs_process ------------------ -- Function: int shishi_tgs_process (Shishi * HANDLE, Shishi_asn1 TGSREQ, Shishi_asn1 TGSREP, Shishi_asn1 AUTHENTICATOR, Shishi_asn1 OLDENCKDCREPPART, Shishi_asn1 * ENCKDCREPPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. TGSREQ: Input variable holding the transmitted KDC-REQ. TGSREP: Input variable holding the received KDC-REP. AUTHENTICATOR: Input variable with an authenticator extracted from the AP-REQ part of TGSREQ. OLDENCKDCREPPART: Input variable with EncKDCRepPart used in the request. ENCKDCREPPART: Output variable holding the new EncKDCRepPart. *Description:* Processes a TGS client exchange and outputs the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the ticket used to construct the original TGS request, and then calls 'shishi_kdc_process()'. *Return value:* Returns 'SHISHI_OK' if the TGS client exchange was successful. Failures include ASN.1 and TGS conditions. shishi_as_process ----------------- -- Function: int shishi_as_process (Shishi * HANDLE, Shishi_asn1 ASREQ, Shishi_asn1 ASREP, const char * STRING, Shishi_asn1 * ENCKDCREPPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. ASREQ: Input variable holding the transmitted KDC-REQ. ASREP: Input variable holding the received KDC-REP. STRING: Input variable with a null terminated password. ENCKDCREPPART: Output variable returning a new EncKDCRepPart. *Description:* Processes an AS client exchange and returns the decrypted EncKDCRepPart, holding details about the received ticket. This function simply derives the encryption key from the password, and then calls 'shishi_kdc_process()'. *Return value:* Returns 'SHISHI_OK' if the AS client exchange was successful. Multiple failure conditions are possible. shishi_kdc_process ------------------ -- Function: int shishi_kdc_process (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 KDCREP, Shishi_key * KEY, int KEYUSAGE, Shishi_asn1 * ENCKDCREPPART) HANDLE: Shishi handle as allocated by 'shishi_init()'. KDCREQ: Input variable holding the transmitted KDC-REQ. KDCREP: Input variable holding the received KDC-REP. KEY: Input pointet to key for decrypting parts of KDCREP. KEYUSAGE: Kerberos key usage code. ENCKDCREPPART: Output pointer for the extracted EncKDCRepPart. *Description:* Processes a KDC client exchange and extracts a decrypted EncKDCRepPart, holding details about the received ticket. Use 'shishi_kdcrep_get_ticket()' to extract the ticket itself. This function verifies the various conditions that must hold if the response is to be considered valid. In particular, it compares nonces (using 'shishi_kdc_check_nonce()'), and if the exchange was an AS exchange, it also checks cname and crealm (using 'shishi_as_check_cname()', 'shishi_as_check_crealm()'). Usually 'shishi_as_process()' and 'shishi_tgs_process()' should be used instead of this call, since they simplify computation of the decryption key. *Return value:* Returns 'SHISHI_OK' if the KDC client exchange was successful. Multiple failure conditions are possible. shishi_asreq ------------ -- Function: Shishi_asn1 shishi_asreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new AS-REQ, populated with some default values. *Return value:* Returns the AS-REQ or NULL on failure. shishi_tgsreq ------------- -- Function: Shishi_asn1 shishi_tgsreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new TGS-REQ, populated with some default values. *Return value:* Returns the TGS-REQ or NULL on failure. shishi_kdcreq_print ------------------- -- Function: int shishi_kdcreq_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KDCREQ: KDC-REQ to print. *Description:* Print ASCII armored DER encoding of KDC-REQ to file. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_save ------------------ -- Function: int shishi_kdcreq_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KDCREQ: KDC-REQ to save. *Description:* Print DER encoding of KDC-REQ to file. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_to_file --------------------- -- Function: int shishi_kdcreq_to_file (Shishi * HANDLE, Shishi_asn1 KDCREQ, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write KDC-REQ to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_parse ------------------- -- Function: int shishi_kdcreq_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KDCREQ: output variable with newly allocated KDC-REQ. *Description:* Read ASCII armored DER encoded KDC-REQ from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_read ------------------ -- Function: int shishi_kdcreq_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KDCREQ: output variable with newly allocated KDC-REQ. *Description:* Read DER encoded KDC-REQ from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_from_file ----------------------- -- Function: int shishi_kdcreq_from_file (Shishi * HANDLE, Shishi_asn1 * KDCREQ, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: output variable with newly allocated KDC-REQ. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read KDC-REQ from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_nonce_set ----------------------- -- Function: int shishi_kdcreq_nonce_set (Shishi * HANDLE, Shishi_asn1 KDCREQ, uint32_t NONCE) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set client name field in. NONCE: integer nonce to store in KDC-REQ. *Description:* Store nonce number field in KDC-REQ. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_kdcreq_set_cname ----------------------- -- Function: int shishi_kdcreq_set_cname (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_name_type NAME_TYPE, const char * PRINCIPAL) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set client name field in. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. PRINCIPAL: input array with principal name. *Description:* Set the client name field in the KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_client -------------------- -- Function: int shishi_kdcreq_client (Shishi * HANDLE, Shishi_asn1 KDCREQ, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. KDCREQ: KDC-REQ variable to get client name from. CLIENT: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Represent client principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_asreq_clientrealm ------------------------ -- Function: int shishi_asreq_clientrealm (Shishi * HANDLE, Shishi_asn1 ASREQ, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. ASREQ: AS-REQ variable to get client name and realm from. CLIENT: pointer to newly allocated zero terminated string containing principal name and realm. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Convert cname and realm fields from AS-REQ to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_realm ------------------- -- Function: int shishi_kdcreq_realm (Shishi * HANDLE, Shishi_asn1 KDCREQ, char ** REALM, size_t * REALMLEN) HANDLE: Shishi library handle create by 'shishi_init()'. KDCREQ: KDC-REQ variable to get client name from. REALM: pointer to newly allocated zero terminated string containing realm. May be 'NULL' (to only populate REALMLEN). REALMLEN: pointer to length of REALM on output, excluding terminating zero. May be 'NULL' (to only populate REALMLEN). *Description:* Get realm field in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length REALMLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_set_realm ----------------------- -- Function: int shishi_kdcreq_set_realm (Shishi * HANDLE, Shishi_asn1 KDCREQ, const char * REALM) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set realm field in. REALM: input array with name of realm. *Description:* Set the realm field in the KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_server -------------------- -- Function: int shishi_kdcreq_server (Shishi * HANDLE, Shishi_asn1 KDCREQ, char ** SERVER, size_t * SERVERLEN) HANDLE: Shishi library handle create by 'shishi_init()'. KDCREQ: KDC-REQ variable to get server name from. SERVER: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate SERVERLEN). SERVERLEN: pointer to length of SERVER on output, excluding terminating zero. May be 'NULL' (to only populate SERVER). *Description:* Represent server principal name in KDC-REQ as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length SERVERLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_set_sname ----------------------- -- Function: int shishi_kdcreq_set_sname (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_name_type NAME_TYPE, const char * SNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set server name field in. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. SNAME: input array with principal name. *Description:* Set the server name field in the KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_till ------------------ -- Function: int shishi_kdcreq_till (Shishi * HANDLE, Shishi_asn1 KDCREQ, char ** TILL, size_t * TILLLEN) HANDLE: Shishi library handle created by 'shishi_init()'. KDCREQ: KDC-REQ variable to get endtime from. TILL: pointer to newly allocated null terminated string containing "till" field with generalized time. May be passed as 'NULL' to only populate TILLLEN. TILLLEN: pointer to length of TILL for output, excluding the terminating null. Set to 'NULL', only TILL is populated. *Description:* Get "till" field, i.e., "endtime", in KDC-REQ as a null-terminated string. The string is typically 15 characters long and is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length TILLLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_tillc ------------------- -- Function: time_t shishi_kdcreq_tillc (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: Shishi library handle created by 'shishi_init()'. KDCREQ: KDC-REQ variable to get "till" field from. *Description:* Extract C time corresponding to the "till" field. *Return value:* Returns the C time interpretation of the "till" field in KDC-REQ. shishi_kdcreq_etype ------------------- -- Function: int shishi_kdcreq_etype (Shishi * HANDLE, Shishi_asn1 KDCREQ, int32_t * ETYPE, int NETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get etype field from. ETYPE: output encryption type. NETYPE: element number to return. *Return the netype:* th encryption type from KDC-REQ. The first etype is number 1. *Return value:* Returns SHISHI_OK iff etype successful set. shishi_kdcreq_set_etype ----------------------- -- Function: int shishi_kdcreq_set_etype (Shishi * HANDLE, Shishi_asn1 KDCREQ, int32_t * ETYPE, int NETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set etype field in. ETYPE: input array with encryption types. NETYPE: number of elements in input array with encryption types. *Description:* Set the list of supported or wanted encryption types in the request. The list should be sorted in priority order. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_options --------------------- -- Function: int shishi_kdcreq_options (Shishi * HANDLE, Shishi_asn1 KDCREQ, uint32_t * FLAGS) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. FLAGS: pointer to output integer with flags. *Description:* Extract KDC-Options from KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_forwardable_p --------------------------- -- Function: int shishi_kdcreq_forwardable_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option forwardable flag is set. The FORWARDABLE option indicates that the ticket to be issued is to have its forwardable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also forwardable. *Return value:* Returns non-0 iff forwardable flag is set in KDC-REQ. shishi_kdcreq_forwarded_p ------------------------- -- Function: int shishi_kdcreq_forwarded_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option forwarded flag is set. The FORWARDED option is only specified in a request to the ticket-granting server and will only be honored if the ticket-granting ticket in the request has its FORWARDABLE bit set. This option indicates that this is a request for forwarding. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. *Return value:* Returns non-0 iff forwarded flag is set in KDC-REQ. shishi_kdcreq_proxiable_p ------------------------- -- Function: int shishi_kdcreq_proxiable_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option proxiable flag is set. The PROXIABLE option indicates that the ticket to be issued is to have its proxiable flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based is also proxiable. *Return value:* Returns non-0 iff proxiable flag is set in KDC-REQ. shishi_kdcreq_proxy_p --------------------- -- Function: int shishi_kdcreq_proxy_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option proxy flag is set. The PROXY option indicates that this is a request for a proxy. This option will only be honored if the ticket-granting ticket in the request has its PROXIABLE bit set. The address(es) of the host from which the resulting ticket is to be valid are included in the addresses field of the request. *Return value:* Returns non-0 iff proxy flag is set in KDC-REQ. shishi_kdcreq_allow_postdate_p ------------------------------ -- Function: int shishi_kdcreq_allow_postdate_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option allow-postdate flag is set. The ALLOW-POSTDATE option indicates that the ticket to be issued is to have its MAY-POSTDATE flag set. It may only be set on the initial request, or in a subsequent request if the ticket-granting ticket on which it is based also has its MAY-POSTDATE flag set. *Return value:* Returns non-0 iff allow-postdate flag is set in KDC-REQ. shishi_kdcreq_postdated_p ------------------------- -- Function: int shishi_kdcreq_postdated_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option postdated flag is set. The POSTDATED option indicates that this is a request for a postdated ticket. This option will only be honored if the ticket-granting ticket on which it is based has its MAY-POSTDATE flag set. The resulting ticket will also have its INVALID flag set, and that flag may be reset by a subsequent request to the KDC after the starttime in the ticket has been reached. *Return value:* Returns non-0 iff postdated flag is set in KDC-REQ. shishi_kdcreq_renewable_p ------------------------- -- Function: int shishi_kdcreq_renewable_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option renewable flag is set. The RENEWABLE option indicates that the ticket to be issued is to have its RENEWABLE flag set. It may only be set on the initial request, or when the ticket-granting ticket on which the request is based is also renewable. If this option is requested, then the rtime field in the request contains the desired absolute expiration time for the ticket. *Return value:* Returns non-0 iff renewable flag is set in KDC-REQ. shishi_kdcreq_disable_transited_check_p --------------------------------------- -- Function: int shishi_kdcreq_disable_transited_check_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option disable-transited-check flag is set. By default the KDC will check the transited field of a ticket-granting-ticket against the policy of the local realm before it will issue derivative tickets based on the ticket-granting ticket. If this flag is set in the request, checking of the transited field is disabled. Tickets issued without the performance of this check will be noted by the reset (0) value of the TRANSITED-POLICY-CHECKED flag, indicating to the application server that the tranisted field must be checked locally. KDCs are encouraged but not required to honor the DISABLE-TRANSITED-CHECK option. This flag is new since RFC 1510 *Return value:* Returns non-0 iff disable-transited-check flag is set in KDC-REQ. shishi_kdcreq_renewable_ok_p ---------------------------- -- Function: int shishi_kdcreq_renewable_ok_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option renewable-ok flag is set. The RENEWABLE-OK option indicates that a renewable ticket will be acceptable if a ticket with the requested life cannot otherwise be provided. If a ticket with the requested life cannot be provided, then a renewable ticket may be issued with a renew-till equal to the requested endtime. The value of the renew-till field may still be limited by local limits, or limits selected by the individual principal or server. *Return value:* Returns non-0 iff renewable-ok flag is set in KDC-REQ. shishi_kdcreq_enc_tkt_in_skey_p ------------------------------- -- Function: int shishi_kdcreq_enc_tkt_in_skey_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option enc-tkt-in-skey flag is set. This option is used only by the ticket-granting service. The ENC-TKT-IN-SKEY option indicates that the ticket for the end server is to be encrypted in the session key from the additional ticket-granting ticket provided. *Return value:* Returns non-0 iff enc-tkt-in-skey flag is set in KDC-REQ. shishi_kdcreq_renew_p --------------------- -- Function: int shishi_kdcreq_renew_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option renew flag is set. This option is used only by the ticket-granting service. The RENEW option indicates that the present request is for a renewal. The ticket provided is encrypted in the secret key for the server on which it is valid. This option will only be honored if the ticket to be renewed has its RENEWABLE flag set and if the time in its renew-till field has not passed. The ticket to be renewed is passed in the padata field as part of the authentication header. *Return value:* Returns non-0 iff renew flag is set in KDC-REQ. shishi_kdcreq_validate_p ------------------------ -- Function: int shishi_kdcreq_validate_p (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to get kdc-options field from. *Description:* Determine if KDC-Option validate flag is set. This option is used only by the ticket-granting service. The VALIDATE option indicates that the request is to validate a postdated ticket. It will only be honored if the ticket presented is postdated, presently has its INVALID flag set, and would be otherwise usable at this time. A ticket cannot be validated before its starttime. The ticket presented for validation is encrypted in the key of the server for which it is valid and is passed in the padata field as part of the authentication header. *Return value:* Returns non-0 iff validate flag is set in KDC-REQ. shishi_kdcreq_options_set ------------------------- -- Function: int shishi_kdcreq_options_set (Shishi * HANDLE, Shishi_asn1 KDCREQ, uint32_t OPTIONS) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set etype field in. OPTIONS: integer with flags to store in KDC-REQ. *Description:* Set options in KDC-REQ. Note that this reset any already existing flags. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_options_add ------------------------- -- Function: int shishi_kdcreq_options_add (Shishi * HANDLE, Shishi_asn1 KDCREQ, uint32_t OPTION) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ variable to set etype field in. OPTION: integer with options to add in KDC-REQ. *Description:* Add KDC-Option to KDC-REQ. This preserves all existing options. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_clear_padata -------------------------- -- Function: int shishi_kdcreq_clear_padata (Shishi * HANDLE, Shishi_asn1 KDCREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to remove PA-DATA from. *Description:* Remove the padata field from KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_get_padata ------------------------ -- Function: int shishi_kdcreq_get_padata (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_padata_type PADATATYPE, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to get PA-DATA from. PADATATYPE: type of PA-DATA, see Shishi_padata_type. OUT: output array with newly allocated PA-DATA value. OUTLEN: size of output array with PA-DATA value. *Description:* Get pre authentication data (PA-DATA) from KDC-REQ. Pre authentication data is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_get_padata_tgs ---------------------------- -- Function: int shishi_kdcreq_get_padata_tgs (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 * APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to get PA-TGS-REQ from. APREQ: Output variable with newly allocated AP-REQ. *Description:* Extract TGS pre-authentication data from KDC-REQ. The data is an AP-REQ that authenticates the request. This function call 'shishi_kdcreq_get_padata()' with a SHISHI_PA_TGS_REQ padatatype and DER decode the result (if any). *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_add_padata ------------------------ -- Function: int shishi_kdcreq_add_padata (Shishi * HANDLE, Shishi_asn1 KDCREQ, int PADATATYPE, const char * DATA, size_t DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to add PA-DATA to. PADATATYPE: type of PA-DATA, see Shishi_padata_type. DATA: input array with PA-DATA value. DATALEN: size of input array with PA-DATA value. *Description:* Add new pre authentication data (PA-DATA) to KDC-REQ. This is used to pass various information to KDC, such as in case of a SHISHI_PA_TGS_REQ padatatype the AP-REQ that authenticates the user to get the ticket. (But also see 'shishi_kdcreq_add_padata_tgs()' which takes an AP-REQ directly.) *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_add_padata_tgs ---------------------------- -- Function: int shishi_kdcreq_add_padata_tgs (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_asn1 APREQ) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to add PA-DATA to. APREQ: AP-REQ to add as PA-DATA. *Description:* Add TGS pre-authentication data to KDC-REQ. The data is an AP-REQ that authenticates the request. This functions simply DER encodes the AP-REQ and calls 'shishi_kdcreq_add_padata()' with a SHISHI_PA_TGS_REQ padatatype. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcreq_add_padata_preauth -------------------------------- -- Function: int shishi_kdcreq_add_padata_preauth (Shishi * HANDLE, Shishi_asn1 KDCREQ, Shishi_key * KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREQ: KDC-REQ to add pre-authentication data to. KEY: Key used to encrypt pre-auth data. *Description:* Add pre-authentication data to KDC-REQ. *Return value:* Returns SHISHI_OK iff successful. shishi_asrep ------------ -- Function: Shishi_asn1 shishi_asrep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new AS-REP, populated with some default values. *Return value:* Returns the AS-REP or NULL on failure. shishi_tgsrep ------------- -- Function: Shishi_asn1 shishi_tgsrep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new TGS-REP, populated with some default values. *Return value:* Returns the TGS-REP or NULL on failure. shishi_kdcrep_print ------------------- -- Function: int shishi_kdcrep_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KDCREP: KDC-REP to print. *Description:* Print ASCII armored DER encoding of KDC-REP to file. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_save ------------------ -- Function: int shishi_kdcrep_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KDCREP: KDC-REP to save. *Description:* Print DER encoding of KDC-REP to file. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_to_file --------------------- -- Function: int shishi_kdcrep_to_file (Shishi * HANDLE, Shishi_asn1 KDCREP, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write KDC-REP to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_parse ------------------- -- Function: int shishi_kdcrep_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KDCREP: output variable with newly allocated KDC-REP. *Description:* Read ASCII armored DER encoded KDC-REP from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_read ------------------ -- Function: int shishi_kdcrep_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KDCREP: output variable with newly allocated KDC-REP. *Description:* Read DER encoded KDC-REP from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_from_file ----------------------- -- Function: int shishi_kdcrep_from_file (Shishi * HANDLE, Shishi_asn1 * KDCREP, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: output variable with newly allocated KDC-REP. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read KDC-REP from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_crealm_set ------------------------ -- Function: int shishi_kdcrep_crealm_set (Shishi * HANDLE, Shishi_asn1 KDCREP, const char * CREALM) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: Kdcrep variable to set realm field in. CREALM: input array with name of realm. *Description:* Set the client realm field in the KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_cname_set ----------------------- -- Function: int shishi_kdcrep_cname_set (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_name_type NAME_TYPE, const char * CNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: Kdcrep variable to set server name field in. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. CNAME: input array with principal name. *Description:* Set the client name field in the KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_client_set ------------------------ -- Function: int shishi_kdcrep_client_set (Shishi * HANDLE, Shishi_asn1 KDCREP, const char * CLIENT) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: Kdcrep variable to set server name field in. CLIENT: zero-terminated string with principal name on RFC 1964 form. *Description:* Set the client name field in the KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_get_enc_part_etype -------------------------------- -- Function: int shishi_kdcrep_get_enc_part_etype (Shishi * HANDLE, Shishi_asn1 KDCREP, int32_t * ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP variable to get value from. ETYPE: output variable that holds the value. *Description:* Extract KDC-REP.enc-part.etype. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_get_ticket ------------------------ -- Function: int shishi_kdcrep_get_ticket (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_asn1 * TICKET) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP variable to get ticket from. TICKET: output variable to hold extracted ticket. *Description:* Extract ticket from KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_set_ticket ------------------------ -- Function: int shishi_kdcrep_set_ticket (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_asn1 TICKET) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP to add ticket field to. TICKET: input ticket to copy into KDC-REP ticket field. *Description:* Copy ticket into KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_set_enc_part -------------------------- -- Function: int shishi_kdcrep_set_enc_part (Shishi * HANDLE, Shishi_asn1 KDCREP, int32_t ETYPE, uint32_t KVNO, const char * BUF, size_t BUFLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP to add enc-part field to. ETYPE: encryption type used to encrypt enc-part. KVNO: key version number. BUF: input array with encrypted enc-part. BUFLEN: size of input array with encrypted enc-part. *Description:* Set the encrypted enc-part field in the KDC-REP. The encrypted data is usually created by calling 'shishi_encrypt()' on the DER encoded enc-part. To save time, you may want to use 'shishi_kdcrep_add_enc_part()' instead, which calculates the encrypted data and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_add_enc_part -------------------------- -- Function: int shishi_kdcrep_add_enc_part (Shishi * HANDLE, Shishi_asn1 KDCREP, Shishi_key * KEY, int KEYUSAGE, Shishi_asn1 ENCKDCREPPART) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP to add enc-part field to. KEY: key used to encrypt enc-part. KEYUSAGE: key usage to use, normally SHISHI_KEYUSAGE_ENCASREPPART, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY or SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY. ENCKDCREPPART: EncKDCRepPart to add. *Description:* Encrypts DER encoded EncKDCRepPart using key and stores it in the KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_kdcrep_clear_padata -------------------------- -- Function: int shishi_kdcrep_clear_padata (Shishi * HANDLE, Shishi_asn1 KDCREP) HANDLE: shishi handle as allocated by 'shishi_init()'. KDCREP: KDC-REP to remove PA-DATA from. *Description:* Remove the padata field from KDC-REP. *Return value:* Returns SHISHI_OK iff successful. shishi_enckdcreppart_get_key ---------------------------- -- Function: int shishi_enckdcreppart_get_key (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, Shishi_key ** KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. KEY: newly allocated encryption key handle. *Description:* Extract the key to use with the ticket sent in the KDC-REP associated with the EncKDCRepPart input variable. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_key_set ---------------------------- -- Function: int shishi_enckdcreppart_key_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, Shishi_key * KEY) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. KEY: key handle with information to store in enckdcreppart. *Description:* Set the EncKDCRepPart.key field to key type and value of supplied key. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_nonce_set ------------------------------ -- Function: int shishi_enckdcreppart_nonce_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, uint32_t NONCE) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. NONCE: nonce to set in EncKDCRepPart. *Description:* Set the EncKDCRepPart.nonce field. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_flags_set ------------------------------ -- Function: int shishi_enckdcreppart_flags_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, int FLAGS) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. FLAGS: flags to set in EncKDCRepPart. *Description:* Set the EncKDCRepPart.flags field. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_authtime_set --------------------------------- -- Function: int shishi_enckdcreppart_authtime_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, const char * AUTHTIME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. AUTHTIME: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.authtime to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_starttime_set ---------------------------------- -- Function: int shishi_enckdcreppart_starttime_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, const char * STARTTIME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. STARTTIME: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.starttime to supplied value. Use a NULL value for STARTTIME to remove the field. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_endtime_set -------------------------------- -- Function: int shishi_enckdcreppart_endtime_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, const char * ENDTIME) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. ENDTIME: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.endtime to supplied value. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_renew_till_set ----------------------------------- -- Function: int shishi_enckdcreppart_renew_till_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, const char * RENEW_TILL) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. RENEW_TILL: character buffer containing a generalized time string. *Description:* Set the EncTicketPart.renew-till to supplied value. Use a NULL value for RENEW_TILL to remove the field. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_enckdcreppart_srealm_set ------------------------------- -- Function: int shishi_enckdcreppart_srealm_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, const char * SREALM) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: EncKDCRepPart variable to set realm field in. SREALM: input array with name of realm. *Description:* Set the server realm field in the EncKDCRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_enckdcreppart_sname_set ------------------------------ -- Function: int shishi_enckdcreppart_sname_set (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, Shishi_name_type NAME_TYPE, char * SNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: EncKDCRepPart variable to set server name field in. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. SNAME: input array with principal name. *Description:* Set the server name field in the EncKDCRepPart. *Return value:* Returns SHISHI_OK iff successful. shishi_enckdcreppart_populate_encticketpart ------------------------------------------- -- Function: int shishi_enckdcreppart_populate_encticketpart (Shishi * HANDLE, Shishi_asn1 ENCKDCREPPART, Shishi_asn1 ENCTICKETPART) HANDLE: shishi handle as allocated by 'shishi_init()'. ENCKDCREPPART: input EncKDCRepPart variable. ENCTICKETPART: input EncTicketPart variable. *Description:* Set the flags, authtime, starttime, endtime, renew-till and caddr fields of the EncKDCRepPart to the corresponding values in the EncTicketPart. *Return value:* Returns 'SHISHI_OK' iff successful.  File: shishi.info, Node: Authenticator Functions, Next: KRB-ERROR Functions, Prev: AS/TGS Functions, Up: Programming Manual 5.11 Authenticator Functions ============================ An "Authenticator" is an ASN.1 structure that work as a proof that an entity owns a ticket. It is usually embedded in the AP-REQ structure (*note AP-REQ and AP-REP Functions::), and you most likely want to use an AP-REQ instead of a Authenticator in normal applications. The following illustrates the Authenticator ASN.1 structure. Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno [0] INTEGER (5), crealm [1] Realm, cname [2] PrincipalName, cksum [3] Checksum OPTIONAL, cusec [4] Microseconds, ctime [5] KerberosTime, subkey [6] EncryptionKey OPTIONAL, seq-number [7] UInt32 OPTIONAL, authorization-data [8] AuthorizationData OPTIONAL } shishi_authenticator -------------------- -- Function: Shishi_asn1 shishi_authenticator (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. *Return value:* Returns the authenticator or NULL on failure. shishi_authenticator_subkey --------------------------- -- Function: Shishi_asn1 shishi_authenticator_subkey (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new Authenticator, populated with some default values. It uses the current time as returned by the system for the ctime and cusec fields. It adds a random subkey. *Return value:* Returns the authenticator or NULL on failure. shishi_authenticator_print -------------------------- -- Function: int shishi_authenticator_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Print ASCII armored DER encoding of authenticator to file. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_save ------------------------- -- Function: int shishi_authenticator_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Save DER encoding of authenticator to file. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_to_file ---------------------------- -- Function: int shishi_authenticator_to_file (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write Authenticator to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_parse -------------------------- -- Function: int shishi_authenticator_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. AUTHENTICATOR: output variable with newly allocated authenticator. *Description:* Read ASCII armored DER encoded authenticator from file and populate given authenticator variable. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_read ------------------------- -- Function: int shishi_authenticator_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. AUTHENTICATOR: output variable with newly allocated authenticator. *Description:* Read DER encoded authenticator from file and populate given authenticator variable. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_from_file ------------------------------ -- Function: int shishi_authenticator_from_file (Shishi * HANDLE, Shishi_asn1 * AUTHENTICATOR, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: output variable with newly allocated Authenticator. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read Authenticator from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_set_crealm ------------------------------- -- Function: int shishi_authenticator_set_crealm (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, const char * CREALM) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. CREALM: input array with realm. *Description:* Set realm field in authenticator to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_set_cname ------------------------------ -- Function: int shishi_authenticator_set_cname (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, Shishi_name_type NAME_TYPE, const char * CNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. CNAME: input array with principal name. *Description:* Set principal field in authenticator to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_client_set ------------------------------- -- Function: int shishi_authenticator_client_set (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, const char * CLIENT) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator to set client name field in. CLIENT: zero-terminated string with principal name on RFC 1964 form. *Description:* Set the client name field in the Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_ctime -------------------------- -- Function: int shishi_authenticator_ctime (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, char ** T) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator as allocated by 'shishi_authenticator()'. T: newly allocated zero-terminated character array with client time. *Description:* Extract client time from Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_ctime_set ------------------------------ -- Function: int shishi_authenticator_ctime_set (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, const char * T) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator as allocated by 'shishi_authenticator()'. T: string with generalized time value to store in Authenticator. *Description:* Store client time in Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_cusec_get ------------------------------ -- Function: int shishi_authenticator_cusec_get (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, uint32_t * CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator as allocated by 'shishi_authenticator()'. CUSEC: output integer with client microseconds field. *Description:* Extract client microseconds field from Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_cusec_set ------------------------------ -- Function: int shishi_authenticator_cusec_set (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, uint32_t CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. CUSEC: client microseconds to set in authenticator, 0-999999. *Description:* Set the cusec field in the Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_seqnumber_get ---------------------------------- -- Function: int shishi_authenticator_seqnumber_get (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, uint32_t * SEQNUMBER) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. SEQNUMBER: output integer with sequence number field. *Description:* Extract sequence number field from Authenticator. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_authenticator_seqnumber_remove ------------------------------------- -- Function: int shishi_authenticator_seqnumber_remove (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Remove sequence number field in Authenticator. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_authenticator_seqnumber_set ---------------------------------- -- Function: int shishi_authenticator_seqnumber_set (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, uint32_t SEQNUMBER) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. SEQNUMBER: integer with sequence number field to store in Authenticator. *Description:* Store sequence number field in Authenticator. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_authenticator_client --------------------------- -- Function: int shishi_authenticator_client (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. AUTHENTICATOR: Authenticator variable to get client name from. CLIENT: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Represent client principal name in Authenticator as zero-terminated string. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_clientrealm -------------------------------- -- Function: int shishi_authenticator_clientrealm (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, char ** CLIENT, size_t * CLIENTLEN) HANDLE: Shishi library handle create by 'shishi_init()'. AUTHENTICATOR: Authenticator variable to get client name and realm from. CLIENT: pointer to newly allocated zero terminated string containing principal name and realm. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Convert cname and realm fields from Authenticator to printable principal name format. The string is allocate by this function, and it is the responsibility of the caller to deallocate it. Note that the output length CLIENTLEN does not include the terminating zero. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_cksum -------------------------- -- Function: int shishi_authenticator_cksum (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int32_t * CKSUMTYPE, char ** CKSUM, size_t * CKSUMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. CKSUMTYPE: output checksum type. CKSUM: newly allocated output checksum data from authenticator. CKSUMLEN: on output, actual size of allocated output checksum data buffer. *Description:* Read checksum value from authenticator. CKSUM is allocated by this function, and it is the responsibility of caller to deallocate it. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_set_cksum ------------------------------ -- Function: int shishi_authenticator_set_cksum (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int32_t CKSUMTYPE, char * CKSUM, size_t CKSUMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. CKSUMTYPE: input checksum type to store in authenticator. CKSUM: input checksum data to store in authenticator. CKSUMLEN: size of input checksum data to store in authenticator. *Description:* Store checksum value in authenticator. A checksum is usually created by calling 'shishi_checksum()' on some application specific data using the key from the ticket that is being used. To save time, you may want to use 'shishi_authenticator_add_cksum()' instead, which calculates the checksum and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_cksum ------------------------------ -- Function: int shishi_authenticator_add_cksum (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, Shishi_key * KEY, int KEYUSAGE, char * DATA, size_t DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. KEY: key to to use for encryption. KEYUSAGE: cryptographic key usage value to use in encryption. DATA: input array with data to calculate checksum on. DATALEN: size of input array with data to calculate checksum on. *Description:* Calculate checksum for data and store it in the authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_cksum_type ----------------------------------- -- Function: int shishi_authenticator_add_cksum_type (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, Shishi_key * KEY, int KEYUSAGE, int CKSUMTYPE, char * DATA, size_t DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. KEY: key to to use for encryption. KEYUSAGE: cryptographic key usage value to use in encryption. CKSUMTYPE: checksum to type to calculate checksum. DATA: input array with data to calculate checksum on. DATALEN: size of input array with data to calculate checksum on. *Description:* Calculate checksum for data and store it in the authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_clear_authorizationdata -------------------------------------------- -- Function: int shishi_authenticator_clear_authorizationdata (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: Authenticator as allocated by 'shishi_authenticator()'. *Description:* Remove the authorization-data field from Authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_authorizationdata ------------------------------------------ -- Function: int shishi_authenticator_add_authorizationdata (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int32_t ADTYPE, const char * ADDATA, size_t ADDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. ADTYPE: input authorization data type to add. ADDATA: input authorization data to add. ADDATALEN: size of input authorization data to add. *Description:* Add authorization data to authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_authorizationdata -------------------------------------- -- Function: int shishi_authenticator_authorizationdata (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int32_t * ADTYPE, char ** ADDATA, size_t * ADDATALEN, size_t NTH) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. ADTYPE: output authorization data type. ADDATA: newly allocated output authorization data. ADDATALEN: on output, actual size of newly allocated authorization data. NTH: element number of authorization-data to extract. *Extract n:* th authorization data from authenticator. The first field is 1. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_remove_subkey ---------------------------------- -- Function: int shishi_authenticator_remove_subkey (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Remove subkey from the authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_get_subkey ------------------------------- -- Function: int shishi_authenticator_get_subkey (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, Shishi_key ** SUBKEY) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. SUBKEY: output newly allocated subkey from authenticator. *Description:* Read subkey value from authenticator. *Return value:* Returns SHISHI_OK if successful or SHISHI_ASN1_NO_ELEMENT if subkey is not present. shishi_authenticator_set_subkey ------------------------------- -- Function: int shishi_authenticator_set_subkey (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int32_t SUBKEYTYPE, const char * SUBKEY, size_t SUBKEYLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. SUBKEYTYPE: input subkey type to store in authenticator. SUBKEY: input subkey data to store in authenticator. SUBKEYLEN: size of input subkey data to store in authenticator. *Description:* Store subkey value in authenticator. A subkey is usually created by calling 'shishi_key_random()' using the default encryption type of the key from the ticket that is being used. To save time, you may want to use 'shishi_authenticator_add_subkey()' instead, which calculates the subkey and calls this function in one step. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_random_subkey -------------------------------------- -- Function: int shishi_authenticator_add_random_subkey (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. *Description:* Generate random subkey, of the default encryption type from configuration, and store it in the authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_random_subkey_etype -------------------------------------------- -- Function: int shishi_authenticator_add_random_subkey_etype (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, int ETYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. ETYPE: encryption type of random key to generate. *Description:* Generate random subkey of indicated encryption type, and store it in the authenticator. *Return value:* Returns SHISHI_OK iff successful. shishi_authenticator_add_subkey ------------------------------- -- Function: int shishi_authenticator_add_subkey (Shishi * HANDLE, Shishi_asn1 AUTHENTICATOR, Shishi_key * SUBKEY) HANDLE: shishi handle as allocated by 'shishi_init()'. AUTHENTICATOR: authenticator as allocated by 'shishi_authenticator()'. SUBKEY: subkey to add to authenticator. *Description:* Store subkey in the authenticator. *Return value:* Returns SHISHI_OK iff successful.  File: shishi.info, Node: KRB-ERROR Functions, Next: Cryptographic Functions, Prev: Authenticator Functions, Up: Programming Manual 5.12 KRB-ERROR Functions ======================== The "KRB-ERROR" is an ASN.1 structure that can be returned, instead of, e.g., KDC-REP or AP-REP, to indicate various error conditions. Unfortunately, the semantics of several of the fields are ill specified, so the typically procedure is to extract "e-text" and/or "e-data" and show it to the user. The following illustrates the KRB-ERROR ASN.1 structure. KRB-ERROR ::= [APPLICATION 30] SEQUENCE { pvno [0] INTEGER (5), msg-type [1] INTEGER (30), ctime [2] KerberosTime OPTIONAL, cusec [3] Microseconds OPTIONAL, stime [4] KerberosTime, susec [5] Microseconds, error-code [6] Int32, crealm [7] Realm OPTIONAL, cname [8] PrincipalName OPTIONAL, realm [9] Realm -- service realm --, sname [10] PrincipalName -- service name --, e-text [11] KerberosString OPTIONAL, e-data [12] OCTET STRING OPTIONAL } shishi_krberror --------------- -- Function: Shishi_asn1 shishi_krberror (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* This function creates a new KRB-ERROR, populated with some default values. *Return value:* Returns the KRB-ERROR or NULL on failure. shishi_krberror_print --------------------- -- Function: int shishi_krberror_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KRBERROR: KRB-ERROR to print. *Description:* Print ASCII armored DER encoding of KRB-ERROR to file. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_save -------------------- -- Function: int shishi_krberror_save (Shishi * HANDLE, FILE * FH, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for writing. KRBERROR: KRB-ERROR to save. *Description:* Save DER encoding of KRB-ERROR to file. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_to_file ----------------------- -- Function: int shishi_krberror_to_file (Shishi * HANDLE, Shishi_asn1 KRBERROR, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR to save. FILETYPE: input variable specifying type of file to be written, see Shishi_filetype. FILENAME: input variable with filename to write to. *Description:* Write KRB-ERROR to file in specified TYPE. The file will be truncated if it exists. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_parse --------------------- -- Function: int shishi_krberror_parse (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KRBERROR: output variable with newly allocated KRB-ERROR. *Description:* Read ASCII armored DER encoded KRB-ERROR from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_read -------------------- -- Function: int shishi_krberror_read (Shishi * HANDLE, FILE * FH, Shishi_asn1 * KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle open for reading. KRBERROR: output variable with newly allocated KRB-ERROR. *Description:* Read DER encoded KRB-ERROR from file and populate given variable. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_from_file ------------------------- -- Function: int shishi_krberror_from_file (Shishi * HANDLE, Shishi_asn1 * KRBERROR, int FILETYPE, const char * FILENAME) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: output variable with newly allocated KRB-ERROR. FILETYPE: input variable specifying type of file to be read, see Shishi_filetype. FILENAME: input variable with filename to read from. *Description:* Read KRB-ERROR from file in specified TYPE. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_build --------------------- -- Function: int shishi_krberror_build (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. *Description:* Finish KRB-ERROR, called before e.g. shishi_krberror_der. This function removes empty but OPTIONAL fields (such as cname), and *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_der ------------------- -- Function: int shishi_krberror_der (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. OUT: output array with newly allocated DER encoding of KRB-ERROR. OUTLEN: length of output array with DER encoding of KRB-ERROR. *Description:* DER encode KRB-ERROR. The caller must deallocate the OUT buffer. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_crealm ---------------------- -- Function: int shishi_krberror_crealm (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** REALM, size_t * REALMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. REALM: output array with newly allocated name of realm in KRB-ERROR. REALMLEN: size of output array. *Description:* Extract client realm from KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_crealm ----------------------------- -- Function: int shishi_krberror_remove_crealm (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. *Description:* Remove client realm field in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_crealm -------------------------- -- Function: int shishi_krberror_set_crealm (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * CREALM) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. CREALM: input array with realm. *Description:* Set realm field in krberror to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_client ---------------------- -- Function: int shishi_krberror_client (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** CLIENT, size_t * CLIENTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. CLIENT: pointer to newly allocated zero terminated string containing principal name. May be 'NULL' (to only populate CLIENTLEN). CLIENTLEN: pointer to length of CLIENT on output, excluding terminating zero. May be 'NULL' (to only populate CLIENT). *Description:* Return client principal name in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_cname ------------------------- -- Function: int shishi_krberror_set_cname (Shishi * HANDLE, Shishi_asn1 KRBERROR, Shishi_name_type NAME_TYPE, const char * CNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. CNAME: input array with principal name. *Description:* Set principal field in krberror to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_cname ---------------------------- -- Function: int shishi_krberror_remove_cname (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. *Description:* Remove client realm field in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_client_set -------------------------- -- Function: int shishi_krberror_client_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * CLIENT) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror to set client name field in. CLIENT: zero-terminated string with principal name on RFC 1964 form. *Description:* Set the client name field in the Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_realm --------------------- -- Function: int shishi_krberror_realm (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** REALM, size_t * REALMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. REALM: output array with newly allocated name of realm in KRB-ERROR. REALMLEN: size of output array. *Description:* Extract (server) realm from KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_realm ------------------------- -- Function: int shishi_krberror_set_realm (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * REALM) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. REALM: input array with (server) realm. *Description:* Set (server) realm field in krberror to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_server ---------------------- -- Function: int shishi_krberror_server (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** SERVER, size_t * SERVERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. SERVER: pointer to newly allocated zero terminated string containing server name. May be 'NULL' (to only populate SERVERLEN). SERVERLEN: pointer to length of SERVER on output, excluding terminating zero. May be 'NULL' (to only populate SERVER). *Description:* Return server principal name in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_sname ---------------------------- -- Function: int shishi_krberror_remove_sname (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror to set server name field in. *Description:* Remove server name field in KRB-ERROR. (Since it is not marked OPTIONAL in the ASN.1 profile, what is done is to set the name-type to UNKNOWN and make sure the name-string sequence is empty.) *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_sname ------------------------- -- Function: int shishi_krberror_set_sname (Shishi * HANDLE, Shishi_asn1 KRBERROR, Shishi_name_type NAME_TYPE, const char * SNAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. NAME_TYPE: type of principial, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. SNAME: input array with principal name. *Description:* Set principal field in krberror to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_server_set -------------------------- -- Function: int shishi_krberror_server_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * SERVER) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror to set server name field in. SERVER: zero-terminated string with principal name on RFC 1964 form. *Description:* Set the server name field in the Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_ctime --------------------- -- Function: int shishi_krberror_ctime (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** T) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror to set client name field in. T: newly allocated zero-terminated output array with client time. *Description:* Extract client time from KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_ctime_set ------------------------- -- Function: int shishi_krberror_ctime_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * T) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. T: string with generalized time value to store in Krberror. *Description:* Store client time in Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_ctime ---------------------------- -- Function: int shishi_krberror_remove_ctime (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. *Description:* Remove client time field in Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_cusec --------------------- -- Function: int shishi_krberror_cusec (Shishi * HANDLE, Shishi_asn1 KRBERROR, uint32_t * CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. CUSEC: output integer with client microseconds field. *Description:* Extract client microseconds field from Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_cusec_set ------------------------- -- Function: int shishi_krberror_cusec_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, uint32_t CUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. CUSEC: client microseconds to set in krberror, 0-999999. *Description:* Set the cusec field in the Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_cusec ---------------------------- -- Function: int shishi_krberror_remove_cusec (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. *Description:* Remove client usec field in Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_stime --------------------- -- Function: int shishi_krberror_stime (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** T) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror to set client name field in. T: newly allocated zero-terminated output array with server time. *Description:* Extract server time from KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_stime_set ------------------------- -- Function: int shishi_krberror_stime_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * T) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. T: string with generalized time value to store in Krberror. *Description:* Store server time in Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_susec --------------------- -- Function: int shishi_krberror_susec (Shishi * HANDLE, Shishi_asn1 KRBERROR, uint32_t * SUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: Krberror as allocated by 'shishi_krberror()'. SUSEC: output integer with server microseconds field. *Description:* Extract server microseconds field from Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_susec_set ------------------------- -- Function: int shishi_krberror_susec_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, uint32_t SUSEC) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. SUSEC: server microseconds to set in krberror, 0-999999. *Description:* Set the susec field in the Krberror. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_errorcode ------------------------- -- Function: int shishi_krberror_errorcode (Shishi * HANDLE, Shishi_asn1 KRBERROR, int32_t * ERRORCODE) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. ERRORCODE: output integer KRB-ERROR error code. *Description:* Extract error code from KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_errorcode_fast ------------------------------ -- Function: int shishi_krberror_errorcode_fast (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. *Description:* Get error code from KRB-ERROR, without error checking. *Return value:* Return error code (see 'shishi_krberror_errorcode()') directly, or -1 on error. shishi_krberror_errorcode_set ----------------------------- -- Function: int shishi_krberror_errorcode_set (Shishi * HANDLE, Shishi_asn1 KRBERROR, int ERRORCODE) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code to set. ERRORCODE: new error code to set in krberror. *Description:* Set the error-code field to a new error code. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_etext --------------------- -- Function: int shishi_krberror_etext (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** ETEXT, size_t * ETEXTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. ETEXT: output array with newly allocated error text. ETEXTLEN: output length of error text. *Description:* Extract additional error text from server (possibly empty). *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_etext ------------------------- -- Function: int shishi_krberror_set_etext (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * ETEXT) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. ETEXT: input array with error text to set. *Description:* Set error text (e-text) field in KRB-ERROR to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_etext ---------------------------- -- Function: int shishi_krberror_remove_etext (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. *Description:* Remove error text (e-text) field in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_edata --------------------- -- Function: int shishi_krberror_edata (Shishi * HANDLE, Shishi_asn1 KRBERROR, char ** EDATA, size_t * EDATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. EDATA: output array with newly allocated error data. EDATALEN: output length of error data. *Description:* Extract additional error data from server (possibly empty). *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_methoddata -------------------------- -- Function: int shishi_krberror_methoddata (Shishi * HANDLE, Shishi_asn1 KRBERROR, Shishi_asn1 * METHODDATA) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. METHODDATA: output ASN.1 METHOD-DATA. *Description:* Extract METHOD-DATA ASN.1 object from the e-data field. The e-data field will only contain a METHOD-DATA if the krberror error code is 'SHISHI_KDC_ERR_PREAUTH_REQUIRED'. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_set_edata ------------------------- -- Function: int shishi_krberror_set_edata (Shishi * HANDLE, Shishi_asn1 KRBERROR, const char * EDATA) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. EDATA: input array with error text to set. *Description:* Set error text (e-data) field in KRB-ERROR to specified value. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_remove_edata ---------------------------- -- Function: int shishi_krberror_remove_edata (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: krberror as allocated by 'shishi_krberror()'. *Description:* Remove error text (e-data) field in KRB-ERROR. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_pretty_print ---------------------------- -- Function: int shishi_krberror_pretty_print (Shishi * HANDLE, FILE * FH, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. FH: file handle opened for writing. KRBERROR: KRB-ERROR structure with error code. *Description:* Print KRB-ERROR error condition and some explanatory text to file descriptor. *Return value:* Returns SHISHI_OK iff successful. shishi_krberror_errorcode_message --------------------------------- -- Function: const char * shishi_krberror_errorcode_message (Shishi * HANDLE, int ERRORCODE) HANDLE: shishi handle as allocated by 'shishi_init()'. ERRORCODE: integer KRB-ERROR error code. *Description:* Get human readable string describing KRB-ERROR code. *Return value:* Return a string describing error code. This function will always return a string even if the error code isn't known. shishi_krberror_message ----------------------- -- Function: const char * shishi_krberror_message (Shishi * HANDLE, Shishi_asn1 KRBERROR) HANDLE: shishi handle as allocated by 'shishi_init()'. KRBERROR: KRB-ERROR structure with error code. *Description:* Extract error code (see 'shishi_krberror_errorcode_fast()') and return error message (see 'shishi_krberror_errorcode_message()'). *Return value:* Return a string describing error code. This function will always return a string even if the error code isn't known.  File: shishi.info, Node: Cryptographic Functions, Next: X.509 Functions, Prev: KRB-ERROR Functions, Up: Programming Manual 5.13 Cryptographic Functions ============================ Underneath the high-level functions described earlier, cryptographic operations are happening. If you need to access these cryptographic primitives directly, this section describes the functions available. Most cryptographic operations need keying material, and cryptographic keys have been isolated into it's own data structure 'Shishi_key'. The following illustrates it's contents, but note that you cannot access it's elements directly but must use the accessor functions described below. struct Shishi_key { int type; /* RFC 1510 encryption integer type */ char *value; /* Cryptographic key data */ int version; /* RFC 1510 ``kvno'' */ }; All functions that operate on this data structure are described now. shishi_key_principal -------------------- -- Function: const char * shishi_key_principal (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get the principal part of the key owner principal name, i.e., except the realm. *Return value:* Returns the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) shishi_key_principal_set ------------------------ -- Function: void shishi_key_principal_set (Shishi_key * KEY, const char * PRINCIPAL) KEY: structure that holds key information PRINCIPAL: string with new principal name. *Description:* Set the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. shishi_key_realm ---------------- -- Function: const char * shishi_key_realm (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get the realm part of the key owner principal name. *Return value:* Returns the realm for the principal owning the key. (Not a copy of it, so don't modify or deallocate it.) shishi_key_realm_set -------------------- -- Function: void shishi_key_realm_set (Shishi_key * KEY, const char * REALM) KEY: structure that holds key information REALM: string with new realm name. *Description:* Set the realm for the principal owning the key. The string is copied into the key, so you can dispose of the variable immediately after calling this function. shishi_key_type --------------- -- Function: int shishi_key_type (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get key type. *Return value:* Returns the type of key as an integer as described in the standard. shishi_key_type_set ------------------- -- Function: void shishi_key_type_set (Shishi_key * KEY, int32_t TYPE) KEY: structure that holds key information TYPE: type to set in key. *Description:* Set the type of key in key structure. shishi_key_value ---------------- -- Function: const char * shishi_key_value (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get the raw key bytes. *Return value:* Returns the key value as a pointer which is valid throughout the lifetime of the key structure. shishi_key_value_set -------------------- -- Function: void shishi_key_value_set (Shishi_key * KEY, const char * VALUE) KEY: structure that holds key information VALUE: input array with key data. *Description:* Set the key value and length in key structure. The value is copied into the key (in other words, you can deallocate VALUE right after calling this function without modifying the value inside the key). shishi_key_version ------------------ -- Function: uint32_t shishi_key_version (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get the "kvno" (key version) of key. It will be UINT32_MAX if the key is not long-lived. *Return value:* Returns the version of key ("kvno"). shishi_key_version_set ---------------------- -- Function: void shishi_key_version_set (Shishi_key * KEY, uint32_t KVNO) KEY: structure that holds key information KVNO: new version integer. *Description:* Set the version of key ("kvno") in key structure. Use UINT32_MAX for non-ptermanent keys. shishi_key_timestamp -------------------- -- Function: time_t shishi_key_timestamp (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Get the time the key was established. Typically only present when the key was imported from a keytab format. *Return value:* Returns the time the key was established, or (time_t)-1 if not available. *Since:* 0.0.42 shishi_key_timestamp_set ------------------------ -- Function: void shishi_key_timestamp_set (Shishi_key * KEY, time_t TIMESTAMP) KEY: structure that holds key information TIMESTAMP: new timestamp. *Description:* Set the time the key was established. Typically only relevant when exporting the key to keytab format. *Since:* 0.0.42 shishi_key_name --------------- -- Function: const char * shishi_key_name (Shishi_key * KEY) KEY: structure that holds key information *Description:* Calls shishi_cipher_name for key type. *Return value:* Return name of key. shishi_key_length ----------------- -- Function: size_t shishi_key_length (const Shishi_key * KEY) KEY: structure that holds key information *Description:* Calls shishi_cipher_keylen for key type. *Return value:* Returns the length of the key value. shishi_key ---------- -- Function: int shishi_key (Shishi * HANDLE, Shishi_key ** KEY) HANDLE: Shishi library handle create by 'shishi_init()'. KEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure. *Return value:* Returns SHISHI_OK iff successful. shishi_key_done --------------- -- Function: void shishi_key_done (Shishi_key * KEY) KEY: pointer to structure that holds key information. *Description:* Deallocates key information structure. shishi_key_copy --------------- -- Function: void shishi_key_copy (Shishi_key * DSTKEY, Shishi_key * SRCKEY) DSTKEY: structure that holds destination key information SRCKEY: structure that holds source key information *Description:* Copies source key into existing allocated destination key. shishi_key_from_value --------------------- -- Function: int shishi_key_from_value (Shishi * HANDLE, int32_t TYPE, const char * VALUE, Shishi_key ** KEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. VALUE: input array with key value, or NULL. KEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. *Return value:* Returns SHISHI_OK iff successful. shishi_key_from_base64 ---------------------- -- Function: int shishi_key_from_base64 (Shishi * HANDLE, int32_t TYPE, const char * VALUE, Shishi_key ** KEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. VALUE: input string with base64 encoded key value, or NULL. KEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure, and set the key type and key value. KEY contains a newly allocated structure only if this function is successful. *Return value:* Returns SHISHI_INVALID_KEY if the base64 encoded key length doesn't match the key type, and SHISHI_OK on success. shishi_key_random ----------------- -- Function: int shishi_key_random (Shishi * HANDLE, int32_t TYPE, Shishi_key ** KEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. KEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure for the key type and some random data. KEY contains a newly allocated structure only if this function is successful. *Return value:* Returns SHISHI_OK iff successful. shishi_key_from_random ---------------------- -- Function: int shishi_key_from_random (Shishi * HANDLE, int32_t TYPE, const char * RND, size_t RNDLEN, Shishi_key ** OUTKEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. RND: random data. RNDLEN: length of random data. OUTKEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure, and set the key type and key value using 'shishi_random_to_key()'. KEY contains a newly allocated structure only if this function is successful. *Return value:* Returns SHISHI_OK iff successful. shishi_key_from_string ---------------------- -- Function: int shishi_key_from_string (Shishi * HANDLE, int32_t TYPE, const char * PASSWORD, size_t PASSWORDLEN, const char * SALT, size_t SALTLEN, const char * PARAMETER, Shishi_key ** OUTKEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. PASSWORD: input array containing password. PASSWORDLEN: length of input array containing password. SALT: input array containing salt. SALTLEN: length of input array containing salt. PARAMETER: input array with opaque encryption type specific information. OUTKEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure, and set the key type and key value using 'shishi_string_to_key()'. KEY contains a newly allocated structure only if this function is successful. *Return value:* Returns SHISHI_OK iff successful. shishi_key_from_name -------------------- -- Function: int shishi_key_from_name (Shishi * HANDLE, int32_t TYPE, const char * NAME, const char * PASSWORD, size_t PASSWORDLEN, const char * PARAMETER, Shishi_key ** OUTKEY) HANDLE: Shishi library handle create by 'shishi_init()'. TYPE: type of key. NAME: principal name of user. PASSWORD: input array containing password. PASSWORDLEN: length of input array containing password. PARAMETER: input array with opaque encryption type specific information. OUTKEY: pointer to structure that will hold newly created key information *Description:* Create a new Key information structure, and derive the key from principal name and password using 'shishi_key_from_name()'. The salt is derived from the principal name by concatenating the decoded realm and principal. *Return value:* Returns SHISHI_OK iff successful. Applications that run uninteractively may need keying material. In these cases, the keys are stored in a file, a file that is normally stored on the local host. The file should be protected from unauthorized access. The file is in ASCII format and contains keys as outputed by 'shishi_key_print'. All functions that handle these keys sets are described now. shishi_keys ----------- -- Function: int shishi_keys (Shishi * HANDLE, Shishi_keys ** KEYS) HANDLE: shishi handle as allocated by 'shishi_init()'. KEYS: output pointer to newly allocated keys handle. *Description:* Get a new key set handle. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_keys_done ---------------- -- Function: void shishi_keys_done (Shishi_keys ** KEYS) KEYS: key set handle as allocated by 'shishi_keys()'. *Description:* Deallocates all resources associated with key set. The key set handle must not be used in calls to other shishi_keys_*() functions after this. shishi_keys_size ---------------- -- Function: int shishi_keys_size (Shishi_keys * KEYS) KEYS: key set handle as allocated by 'shishi_keys()'. *Description:* Get size of key set. *Return value:* Returns number of keys stored in key set. shishi_keys_nth --------------- -- Function: const Shishi_key * shishi_keys_nth (Shishi_keys * KEYS, int KEYNO) KEYS: key set handle as allocated by 'shishi_keys()'. KEYNO: integer indicating requested key in key set. *Get the n:* th ticket in key set. *Return value:* Returns a key handle to the keyno:th key in the key set, or NULL if KEYS is invalid or KEYNO is out of bounds. The first key is KEYNO 0, the second key KEYNO 1, and so on. shishi_keys_remove ------------------ -- Function: void shishi_keys_remove (Shishi_keys * KEYS, int KEYNO) KEYS: key set handle as allocated by 'shishi_keys()'. KEYNO: key number of key in the set to remove. The first key is key number 0. *Description:* Remove a key, indexed by KEYNO, in given key set. shishi_keys_add --------------- -- Function: int shishi_keys_add (Shishi_keys * KEYS, Shishi_key * KEY) KEYS: key set handle as allocated by 'shishi_keys()'. KEY: key to be added to key set. *Description:* Add a key to the key set. A deep copy of the key is stored, so changing KEY, or deallocating it, will not modify the value stored in the key set. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_keys_print ----------------- -- Function: int shishi_keys_print (Shishi_keys * KEYS, FILE * FH) KEYS: key set to print. FH: file handle, open for writing, to print keys to. *Description:* Print all keys in set using shishi_key_print. *Returns:* Returns 'SHISHI_OK' on success. shishi_keys_to_file ------------------- -- Function: int shishi_keys_to_file (Shishi * HANDLE, const char * FILENAME, Shishi_keys * KEYS) HANDLE: shishi handle as allocated by 'shishi_init()'. FILENAME: filename to append key to. KEYS: set of keys to print. *Description:* Print an ASCII representation of a key structure to a file, for each key in the key set. The file is appended to if it exists. See 'shishi_key_print()' for the format of the output. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_keys_from_file --------------------- -- Function: int shishi_keys_from_file (Shishi_keys * KEYS, const char * FILENAME) KEYS: key set handle as allocated by 'shishi_keys()'. FILENAME: filename to read keys from. *Description:* Read zero or more keys from file FILENAME and append them to the keyset KEYS. See 'shishi_key_print()' for the format of the input. *Return value:* Returns 'SHISHI_OK' iff successful. *Since:* 0.0.42 shishi_keys_for_serverrealm_in_file ----------------------------------- -- Function: Shishi_key * shishi_keys_for_serverrealm_in_file (Shishi * HANDLE, const char * FILENAME, const char * SERVER, const char * REALM) HANDLE: Shishi library handle create by 'shishi_init()'. FILENAME: file to read keys from. SERVER: server name to get key for. REALM: realm of server to get key for. *Description:* Get keys that match specified SERVER and REALM from the key set file FILENAME. *Return value:* Returns the key for specific server and realm, read from the indicated file, or NULL if no key could be found or an error encountered. shishi_keys_for_server_in_file ------------------------------ -- Function: Shishi_key * shishi_keys_for_server_in_file (Shishi * HANDLE, const char * FILENAME, const char * SERVER) HANDLE: Shishi library handle create by 'shishi_init()'. FILENAME: file to read keys from. SERVER: server name to get key for. *Description:* Get key for specified SERVER from FILENAME. *Return value:* Returns the key for specific server, read from the indicated file, or NULL if no key could be found or an error encountered. shishi_keys_for_localservicerealm_in_file ----------------------------------------- -- Function: Shishi_key * shishi_keys_for_localservicerealm_in_file (Shishi * HANDLE, const char * FILENAME, const char * SERVICE, const char * REALM) HANDLE: Shishi library handle create by 'shishi_init()'. FILENAME: file to read keys from. SERVICE: service to get key for. REALM: realm of server to get key for, or NULL for default realm. *Description:* Get key for specified SERVICE and REALM from FILENAME. *Return value:* Returns the key for the server "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see 'shishi_hostkeys_default_file()'), or NULL if no key could be found or an error encountered. The previous functions require that the filename is known. For some applications, servers, it makes sense to provide a system default. These key sets used by server applications are known as "hostkeys". Here are the functions that operate on hostkeys (they are mostly wrappers around generic key sets). shishi_hostkeys_default_file ---------------------------- -- Function: const char * shishi_hostkeys_default_file (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get file name of default host key file. *Return value:* Returns the default host key filename used in the library. (Not a copy of it, so don't modify or deallocate it.) shishi_hostkeys_default_file_set -------------------------------- -- Function: void shishi_hostkeys_default_file_set (Shishi * HANDLE, const char * HOSTKEYSFILE) HANDLE: Shishi library handle create by 'shishi_init()'. HOSTKEYSFILE: string with new default hostkeys file name, or NULL to reset to default. *Description:* Set the default host key filename used in the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_hostkeys_for_server -------------------------- -- Function: Shishi_key * shishi_hostkeys_for_server (Shishi * HANDLE, const char * SERVER) HANDLE: Shishi library handle create by 'shishi_init()'. SERVER: server name to get key for *Description:* Get host key for SERVER. *Return value:* Returns the key for specific server, read from the default host keys file (see 'shishi_hostkeys_default_file()'), or NULL if no key could be found or an error encountered. shishi_hostkeys_for_serverrealm ------------------------------- -- Function: Shishi_key * shishi_hostkeys_for_serverrealm (Shishi * HANDLE, const char * SERVER, const char * REALM) HANDLE: Shishi library handle create by 'shishi_init()'. SERVER: server name to get key for REALM: realm of server to get key for. *Description:* Get host key for SERVER in REALM. *Return value:* Returns the key for specific server and realm, read from the default host keys file (see 'shishi_hostkeys_default_file()'), or NULL if no key could be found or an error encountered. shishi_hostkeys_for_localservicerealm ------------------------------------- -- Function: Shishi_key * shishi_hostkeys_for_localservicerealm (Shishi * HANDLE, const char * SERVICE, const char * REALM) HANDLE: Shishi library handle create by 'shishi_init()'. SERVICE: service to get key for. REALM: realm of server to get key for, or NULL for default realm. *Description:* Get host key for SERVICE on current host in REALM. *Return value:* Returns the key for the server "SERVICE/HOSTNAME@REALM" (where HOSTNAME is the current system's hostname), read from the default host keys file (see 'shishi_hostkeys_default_file()'), or NULL if no key could be found or an error encountered. shishi_hostkeys_for_localservice -------------------------------- -- Function: Shishi_key * shishi_hostkeys_for_localservice (Shishi * HANDLE, const char * SERVICE) HANDLE: Shishi library handle create by 'shishi_init()'. SERVICE: service to get key for. *Description:* Get host key for SERVICE on current host in default realm. *Return value:* Returns the key for the server "SERVICE/HOSTNAME" (where HOSTNAME is the current system's hostname), read from the default host keys file (see 'shishi_hostkeys_default_file()'), or NULL if no key could be found or an error encountered. After creating the key structure, it can be used to encrypt and decrypt data, calculate checksum on data etc. All available functions are described now. shishi_cipher_supported_p ------------------------- -- Function: int shishi_cipher_supported_p (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Find out if cipher is supported. *Return value:* Return 0 iff cipher is unsupported. shishi_cipher_name ------------------ -- Function: const char * shishi_cipher_name (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Read humanly readable string for cipher. *Return value:* Return name of encryption type, e.g. "des3-cbc-sha1-kd", as defined in the standards. shishi_cipher_blocksize ----------------------- -- Function: int shishi_cipher_blocksize (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Get block size for cipher. *Return value:* Return block size for encryption type, as defined in the standards. shishi_cipher_confoundersize ---------------------------- -- Function: int shishi_cipher_confoundersize (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Get length of confounder for cipher. *Return value:* Returns the size of the confounder (random data) for encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type). shishi_cipher_keylen -------------------- -- Function: size_t shishi_cipher_keylen (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Get key length for cipher. *Return value:* Return length of key used for the encryption type, as defined in the standards. shishi_cipher_randomlen ----------------------- -- Function: size_t shishi_cipher_randomlen (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Get length of random data for cipher. *Return value:* Return length of random used for the encryption type, as defined in the standards, or (size_t)-1 on error (e.g., unsupported encryption type). shishi_cipher_defaultcksumtype ------------------------------ -- Function: int shishi_cipher_defaultcksumtype (int32_t TYPE) TYPE: encryption type, see Shishi_etype. *Description:* Get the default checksum associated with cipher. *Return value:* Return associated checksum mechanism for the encryption type, as defined in the standards. shishi_cipher_parse ------------------- -- Function: int shishi_cipher_parse (const char * CIPHER) CIPHER: name of encryption type, e.g. "des3-cbc-sha1-kd". *Description:* Get cipher number by parsing string. *Return value:* Return encryption type corresponding to a string. shishi_checksum_supported_p --------------------------- -- Function: int shishi_checksum_supported_p (int32_t TYPE) TYPE: checksum type, see Shishi_cksumtype. *Description:* Find out whether checksum is supported. *Return value:* Return 0 iff checksum is unsupported. shishi_checksum_name -------------------- -- Function: const char * shishi_checksum_name (int32_t TYPE) TYPE: checksum type, see Shishi_cksumtype. *Description:* Get name of checksum. *Return value:* Return name of checksum type, e.g. "hmac-sha1-96-aes256", as defined in the standards. shishi_checksum_cksumlen ------------------------ -- Function: size_t shishi_checksum_cksumlen (int32_t TYPE) TYPE: checksum type, see Shishi_cksumtype. *Description:* Get length of checksum output. *Return value:* Return length of checksum used for the checksum type, as defined in the standards. shishi_checksum_parse --------------------- -- Function: int shishi_checksum_parse (const char * CHECKSUM) CHECKSUM: name of checksum type, e.g. "hmac-sha1-96-aes256". *Description:* Get checksum number by parsing a string. *Return value:* Return checksum type, see Shishi_cksumtype, corresponding to a string. shishi_string_to_key -------------------- -- Function: int shishi_string_to_key (Shishi * HANDLE, int32_t KEYTYPE, const char * PASSWORD, size_t PASSWORDLEN, const char * SALT, size_t SALTLEN, const char * PARAMETER, Shishi_key * OUTKEY) HANDLE: shishi handle as allocated by 'shishi_init()'. KEYTYPE: cryptographic encryption type, see Shishi_etype. PASSWORD: input array with password. PASSWORDLEN: length of input array with password. SALT: input array with salt. SALTLEN: length of input array with salt. PARAMETER: input array with opaque encryption type specific information. OUTKEY: allocated key handle that will contain new key. *Description:* Derive key from a string (password) and salt (commonly concatenation of realm and principal) for specified key type, and set the type and value in the given key to the computed values. The parameter value is specific for each keytype, and can be set if the parameter information is not available. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_random_to_key -------------------- -- Function: int shishi_random_to_key (Shishi * HANDLE, int32_t KEYTYPE, const char * RND, size_t RNDLEN, Shishi_key * OUTKEY) HANDLE: shishi handle as allocated by 'shishi_init()'. KEYTYPE: cryptographic encryption type, see Shishi_etype. RND: input array with random data. RNDLEN: length of input array with random data. OUTKEY: allocated key handle that will contain new key. *Description:* Derive key from random data for specified key type, and set the type and value in the given key to the computed values. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_checksum --------------- -- Function: int shishi_checksum (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int CKSUMTYPE, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to compute checksum with. KEYUSAGE: integer specifying what this key is used for. CKSUMTYPE: the checksum algorithm to use. IN: input array with data to integrity protect. INLEN: size of input array with data to integrity protect. OUT: output array with newly allocated integrity protected data. OUTLEN: output variable with length of output array with checksum. *Description:* Integrity protect data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_verify ------------- -- Function: int shishi_verify (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int CKSUMTYPE, const char * IN, size_t INLEN, const char * CKSUM, size_t CKSUMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to verify checksum with. KEYUSAGE: integer specifying what this key is used for. CKSUMTYPE: the checksum algorithm to use. IN: input array with data that was integrity protected. INLEN: size of input array with data that was integrity protected. CKSUM: input array with alleged checksum of data. CKSUMLEN: size of input array with alleged checksum of data. *Description:* Verify checksum of data using key, possibly altered by supplied key usage. If key usage is 0, no key derivation is used. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt_ivupdate_etype ----------------------------- -- Function: int shishi_encrypt_ivupdate_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IV, size_t IVLEN, char ** IVOUT, size_t * IVOUTLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. ETYPE: integer specifying what cipher to use. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IVOUT: output array with newly allocated updated initialization vector. IVOUTLEN: size of output array with updated initialization vector. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt_iv_etype ----------------------- -- Function: int shishi_encrypt_iv_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IV, size_t IVLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. ETYPE: integer specifying what cipher to use. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt_etype -------------------- -- Function: int shishi_encrypt_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. ETYPE: integer specifying what cipher to use. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt_ivupdate ----------------------- -- Function: int shishi_encrypt_ivupdate (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, const char * IV, size_t IVLEN, char ** IVOUT, size_t * IVOUTLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IVOUT: output array with newly allocated updated initialization vector. IVOUTLEN: size of output array with updated initialization vector. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt_iv ----------------- -- Function: int shishi_encrypt_iv (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, const char * IV, size_t IVLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_encrypt -------------- -- Function: int shishi_encrypt (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key is encrypting. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypts data using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_encrypt_iv if you need to alter it. The next IV is lost, see shishi_encrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt_ivupdate_etype ----------------------------- -- Function: int shishi_decrypt_ivupdate_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IV, size_t IVLEN, char ** IVOUT, size_t * IVOUTLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. ETYPE: integer specifying what cipher to use. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IVOUT: output array with newly allocated updated initialization vector. IVOUTLEN: size of output array with updated initialization vector. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt_iv_etype ----------------------- -- Function: int shishi_decrypt_iv_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IV, size_t IVLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. ETYPE: integer specifying what cipher to use. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data as per encryption method using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt_etype -------------------- -- Function: int shishi_decrypt_etype (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. ETYPE: integer specifying what cipher to use. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data as per encryption method using specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv_etype if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt_ivupdate ----------------------- -- Function: int shishi_decrypt_ivupdate (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, const char * IV, size_t IVLEN, char ** IVOUT, size_t * IVOUTLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IVOUT: output array with newly allocated updated initialization vector. IVOUTLEN: size of output array with updated initialization vector. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. If IVOUT or IVOUTLEN is NULL, the updated IV is not saved anywhere. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt_iv ----------------- -- Function: int shishi_decrypt_iv (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, const char * IV, size_t IVLEN, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. IV: input array with initialization vector IVLEN: size of input array with initialization vector. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data using specified initialization vector and key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The next IV is lost, see shishi_decrypt_ivupdate_etype if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_decrypt -------------- -- Function: int shishi_decrypt (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to decrypt with. KEYUSAGE: integer specifying what this key is decrypting. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypts data specified key. The key actually used is derived using the key usage. If key usage is 0, no key derivation is used. The OUT buffer must be deallocated by the caller. The default IV is used, see shishi_decrypt_iv if you need to alter it. The next IV is lost, see shishi_decrypt_ivupdate if you need it. Note that DECRYPT(ENCRYPT(data)) does not necessarily yield data exactly. Some encryption types add pad to make the data fit into the block size of the encryption algorithm. Furthermore, the pad is not guaranteed to look in any special way, although existing implementations often pad with the zero byte. This means that you may have to "frame" data, so it is possible to infer the original length after decryption. Compare ASN.1 DER which contains such information. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_n_fold ------------- -- Function: int shishi_n_fold (Shishi * HANDLE, const char * IN, size_t INLEN, char * OUT, size_t OUTLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt ("M"). OUT: output array with decrypted data. OUTLEN: size of output array ("N"). *Description:* Fold data into a fixed length output array, with the intent to give each input bit approximately equal weight in determining the value of each output bit. The algorithm is from "A Better Key Schedule For DES-like Ciphers" by Uri Blumenthal and Steven M. Bellovin, http://www.research.att.com/~smb/papers/ides.pdf, although the sample vectors provided by the paper are incorrect. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_dr --------- -- Function: int shishi_dr (Shishi * HANDLE, Shishi_key * KEY, const char * PRFCONSTANT, size_t PRFCONSTANTLEN, char * DERIVEDRANDOM, size_t DERIVEDRANDOMLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: input array with cryptographic key to use. PRFCONSTANT: input array with the constant string. PRFCONSTANTLEN: size of input array with the constant string. DERIVEDRANDOM: output array with derived random data. DERIVEDRANDOMLEN: size of output array with derived random data. *Description:* Derive "random" data from a key and a constant thusly: DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, SHISHI_ENCRYPT(KEY, PRFCONSTANT)). *Return value:* Returns 'SHISHI_OK' iff successful. shishi_dk --------- -- Function: int shishi_dk (Shishi * HANDLE, Shishi_key * KEY, const char * PRFCONSTANT, size_t PRFCONSTANTLEN, Shishi_key * DERIVEDKEY) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: input cryptographic key to use. PRFCONSTANT: input array with the constant string. PRFCONSTANTLEN: size of input array with the constant string. DERIVEDKEY: pointer to derived key (allocated by caller). *Derive a key from a key and a constant thusly:* DK(KEY, PRFCONSTANT) = SHISHI_RANDOM-TO-KEY(SHISHI_DR(KEY, PRFCONSTANT)). *Return value:* Returns 'SHISHI_OK' iff successful. An easier way to use encryption and decryption if your application repeatedly calls, e.g., 'shishi_encrypt_ivupdate', is to use the following functions. They store the key, initialization vector, etc, in a context, and the encryption and decryption operations update the IV within the context automatically. shishi_crypto ------------- -- Function: Shishi_crypto * shishi_crypto (Shishi * HANDLE, Shishi_key * KEY, int KEYUSAGE, int32_t ETYPE, const char * IV, size_t IVLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: key to encrypt with. KEYUSAGE: integer specifying what this key will encrypt/decrypt. ETYPE: integer specifying what cipher to use. IV: input array with initialization vector IVLEN: size of input array with initialization vector. *Description:* Initialize a crypto context. This store a key, keyusage, encryption type and initialization vector in a "context", and the caller can then use this context to perform encryption via 'shishi_crypto_encrypt()' and decryption via 'shishi_crypto_encrypt()' without supplying all those details again. The functions also takes care of propagating the IV between calls. When the application no longer need to use the context, it should deallocate resources associated with it by calling 'shishi_crypto_close()'. *Return value:* Return a newly allocated crypto context. shishi_crypto_encrypt --------------------- -- Function: int shishi_crypto_encrypt (Shishi_crypto * CTX, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) CTX: crypto context as returned by 'shishi_crypto()'. IN: input array with data to encrypt. INLEN: size of input array with data to encrypt. OUT: output array with newly allocated encrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Encrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling 'shishi_crypto_close()'. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_crypto_decrypt --------------------- -- Function: int shishi_crypto_decrypt (Shishi_crypto * CTX, const char * IN, size_t INLEN, char ** OUT, size_t * OUTLEN) CTX: crypto context as returned by 'shishi_crypto()'. IN: input array with data to decrypt. INLEN: size of input array with data to decrypt. OUT: output array with newly allocated decrypted data. OUTLEN: output variable with size of newly allocated output array. *Description:* Decrypt data, using information (e.g., key and initialization vector) from context. The IV is updated inside the context after this call. When the application no longer need to use the context, it should deallocate resources associated with it by calling 'shishi_crypto_close()'. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_crypto_close ------------------- -- Function: void shishi_crypto_close (Shishi_crypto * CTX) CTX: crypto context as returned by 'shishi_crypto()'. *Description:* Deallocate resources associated with the crypto context. Also included in Shishi is an interface to the really low-level cryptographic primitives. They map directly on the underlying cryptographic library used (i.e., Gnulib or Libgcrypt) and is used internally by Shishi. shishi_randomize ---------------- -- Function: int shishi_randomize (Shishi * HANDLE, int STRONG, void * DATA, size_t DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. STRONG: 0 iff operation should not block, non-0 for very strong randomness. DATA: output array to be filled with random data. DATALEN: size of output array. *Description:* Store cryptographically random data of given size in the provided buffer. *Return value:* Returns 'SHISHI_OK' iff successful. shishi_crc ---------- -- Function: int shishi_crc (Shishi * HANDLE, const char * IN, size_t INLEN, char * OUT[4]) HANDLE: shishi handle as allocated by 'shishi_init()'. IN: input character array of data to checksum. INLEN: length of input character array of data to checksum. OUT: newly allocated character array with checksum of data. *Description:* Compute checksum of data using CRC32 modified according to RFC 1510. The OUT buffer must be deallocated by the caller. The modifications compared to standard CRC32 is that no initial and final XOR is performed, and that the output is returned in LSB-first order. *Return value:* Returns SHISHI_OK iff successful. shishi_md4 ---------- -- Function: int shishi_md4 (Shishi * HANDLE, const char * IN, size_t INLEN, char * OUT[16]) HANDLE: shishi handle as allocated by 'shishi_init()'. IN: input character array of data to hash. INLEN: length of input character array of data to hash. OUT: newly allocated character array with hash of data. *Description:* Compute hash of data using MD4. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_md5 ---------- -- Function: int shishi_md5 (Shishi * HANDLE, const char * IN, size_t INLEN, char * OUT[16]) HANDLE: shishi handle as allocated by 'shishi_init()'. IN: input character array of data to hash. INLEN: length of input character array of data to hash. OUT: newly allocated character array with hash of data. *Description:* Compute hash of data using MD5. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_hmac_md5 --------------- -- Function: int shishi_hmac_md5 (Shishi * HANDLE, const char * KEY, size_t KEYLEN, const char * IN, size_t INLEN, char * OUTHASH[16]) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: input character array with key to use. KEYLEN: length of input character array with key to use. IN: input character array of data to hash. INLEN: length of input character array of data to hash. OUTHASH: newly allocated character array with keyed hash of data. *Description:* Compute keyed checksum of data using HMAC-MD5. The OUTHASH buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_hmac_sha1 ---------------- -- Function: int shishi_hmac_sha1 (Shishi * HANDLE, const char * KEY, size_t KEYLEN, const char * IN, size_t INLEN, char * OUTHASH[20]) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: input character array with key to use. KEYLEN: length of input character array with key to use. IN: input character array of data to hash. INLEN: length of input character array of data to hash. OUTHASH: newly allocated character array with keyed hash of data. *Description:* Compute keyed checksum of data using HMAC-SHA1. The OUTHASH buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_des_cbc_mac ------------------ -- Function: int shishi_des_cbc_mac (Shishi * HANDLE, const char KEY[8], const char IV[8], const char * IN, size_t INLEN, char * OUT[8]) HANDLE: shishi handle as allocated by 'shishi_init()'. KEY: input character array with key to use. IV: input character array with initialization vector to use, can be NULL. IN: input character array of data to hash. INLEN: length of input character array of data to hash. OUT: newly allocated character array with keyed hash of data. *Description:* Computed keyed checksum of data using DES-CBC-MAC. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_arcfour -------------- -- Function: int shishi_arcfour (Shishi * HANDLE, int DECRYPTP, const char * KEY, size_t KEYLEN, const char IV[258], char * IVOUT[258], const char * IN, size_t INLEN, char ** OUT) HANDLE: shishi handle as allocated by 'shishi_init()'. DECRYPTP: 0 to indicate encryption, non-0 to indicate decryption. KEY: input character array with key to use. KEYLEN: length of input key array. IV: input character array with initialization vector to use, or NULL. IVOUT: output character array with updated initialization vector, or NULL. IN: input character array of data to encrypt/decrypt. INLEN: length of input character array of data to encrypt/decrypt. OUT: newly allocated character array with encrypted/decrypted data. *Description:* Encrypt or decrypt data (depending on DECRYPTP) using ARCFOUR. The OUT buffer must be deallocated by the caller. The "initialization vector" used here is the concatenation of the sbox and i and j, and is thus always of size 256 + 1 + 1. This is a slight abuse of terminology, and assumes you know what you are doing. Don't use it if you can avoid to. *Return value:* Returns SHISHI_OK iff successful. shishi_des ---------- -- Function: int shishi_des (Shishi * HANDLE, int DECRYPTP, const char KEY[8], const char IV[8], char * IVOUT[8], const char * IN, size_t INLEN, char ** OUT) HANDLE: shishi handle as allocated by 'shishi_init()'. DECRYPTP: 0 to indicate encryption, non-0 to indicate decryption. KEY: input character array with key to use. IV: input character array with initialization vector to use, or NULL. IVOUT: output character array with updated initialization vector, or NULL. IN: input character array of data to encrypt/decrypt. INLEN: length of input character array of data to encrypt/decrypt. OUT: newly allocated character array with encrypted/decrypted data. *Description:* Encrypt or decrypt data (depending on DECRYPTP) using DES in CBC mode. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_3des ----------- -- Function: int shishi_3des (Shishi * HANDLE, int DECRYPTP, const char KEY[8], const char IV[8], char * IVOUT[8], const char * IN, size_t INLEN, char ** OUT) HANDLE: shishi handle as allocated by 'shishi_init()'. DECRYPTP: 0 to indicate encryption, non-0 to indicate decryption. KEY: input character array with key to use. IV: input character array with initialization vector to use, or NULL. IVOUT: output character array with updated initialization vector, or NULL. IN: input character array of data to encrypt/decrypt. INLEN: length of input character array of data to encrypt/decrypt. OUT: newly allocated character array with encrypted/decrypted data. *Description:* Encrypt or decrypt data (depending on DECRYPTP) using 3DES in CBC mode. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_aes_cts -------------- -- Function: int shishi_aes_cts (Shishi * HANDLE, int DECRYPTP, const char * KEY, size_t KEYLEN, const char IV[16], char * IVOUT[16], const char * IN, size_t INLEN, char ** OUT) HANDLE: shishi handle as allocated by 'shishi_init()'. DECRYPTP: 0 to indicate encryption, non-0 to indicate decryption. KEY: input character array with key to use. KEYLEN: length of input character array with key to use. IV: input character array with initialization vector to use, or NULL. IVOUT: output character array with updated initialization vector, or NULL. IN: input character array of data to encrypt/decrypt. INLEN: length of input character array of data to encrypt/decrypt. OUT: newly allocated character array with encrypted/decrypted data. *Description:* Encrypt or decrypt data (depending on DECRYPTP) using AES in CBC-CTS mode. The length of the key, KEYLEN, decide if AES 128 or AES 256 should be used. The OUT buffer must be deallocated by the caller. *Return value:* Returns SHISHI_OK iff successful. shishi_pbkdf2_sha1 ------------------ -- Function: int shishi_pbkdf2_sha1 (Shishi * HANDLE, const char * P, size_t PLEN, const char * S, size_t SLEN, unsigned int C, unsigned int DKLEN, char * DK) HANDLE: shishi handle as allocated by 'shishi_init()'. P: input password, an octet string PLEN: length of password, an octet string S: input salt, an octet string SLEN: length of salt, an octet string C: iteration count, a positive integer DKLEN: intended length in octets of the derived key, a positive integer, at most (2^32 - 1) * hLen. The DK array must have room for this many characters. DK: output derived key, a dkLen-octet string *Description:* Derive key using the PBKDF2 defined in PKCS5. PBKDF2 applies a pseudorandom function to derive keys. The length of the derived key is essentially unbounded. (However, the maximum effective search space for the derived key may be limited by the structure of the underlying pseudorandom function, which is this function is always SHA1.) *Return value:* Returns SHISHI_OK iff successful.  File: shishi.info, Node: X.509 Functions, Next: Utility Functions, Prev: Cryptographic Functions, Up: Programming Manual 5.14 X.509 Functions ==================== The functions described in this section are used by the STARTTLS functionality, see *note Kerberos via TLS::. shishi_x509ca_default_file_guess -------------------------------- -- Function: char * shishi_x509ca_default_file_guess (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Guesses the default X.509 CA certificate filename; it is 'HOME'/.shishi/client.ca. *Return value:* Returns default X.509 client certificate filename as a string that has to be deallocated with 'free()' by the caller. shishi_x509ca_default_file_set ------------------------------ -- Function: void shishi_x509ca_default_file_set (Shishi * HANDLE, const char * X509CAFILE) HANDLE: Shishi library handle create by 'shishi_init()'. X509CAFILE: string with new default x509 client certificate file name, or NULL to reset to default. *Description:* Set the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_x509ca_default_file -------------------------- -- Function: const char * shishi_x509ca_default_file (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get filename for default X.509 CA certificate. *Return value:* Returns the default X.509 CA certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the KDC. The string is not a copy, so don't modify or deallocate it. shishi_x509cert_default_file_guess ---------------------------------- -- Function: char * shishi_x509cert_default_file_guess (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Guesses the default X.509 client certificate filename; it is 'HOME'/.shishi/client.certs. *Return value:* Returns default X.509 client certificate filename as a string that has to be deallocated with 'free()' by the caller. shishi_x509cert_default_file_set -------------------------------- -- Function: void shishi_x509cert_default_file_set (Shishi * HANDLE, const char * X509CERTFILE) HANDLE: Shishi library handle create by 'shishi_init()'. X509CERTFILE: string with new default x509 client certificate file name, or NULL to reset to default. *Description:* Set the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_x509cert_default_file ---------------------------- -- Function: const char * shishi_x509cert_default_file (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get filename for default X.509 certificate. *Return value:* Returns the default X.509 client certificate filename used in the library. The certificate is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it. shishi_x509key_default_file_guess --------------------------------- -- Function: char * shishi_x509key_default_file_guess (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Guesses the default X.509 client key filename; it is 'HOME'/.shishi/client.key. *Return value:* Returns default X.509 client key filename as a string that has to be deallocated with 'free()' by the caller. shishi_x509key_default_file_set ------------------------------- -- Function: void shishi_x509key_default_file_set (Shishi * HANDLE, const char * X509KEYFILE) HANDLE: Shishi library handle create by 'shishi_init()'. X509KEYFILE: string with new default x509 client key file name, or NULL to reset to default. *Description:* Set the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_x509key_default_file --------------------------- -- Function: const char * shishi_x509key_default_file (Shishi * HANDLE) HANDLE: Shishi library handle create by 'shishi_init()'. *Description:* Get filename for default X.509 key. *Return value:* Returns the default X.509 client key filename used in the library. The key is used during TLS connections with the KDC to authenticate the client. The string is not a copy, so don't modify or deallocate it.  File: shishi.info, Node: Utility Functions, Next: ASN.1 Functions, Prev: X.509 Functions, Up: Programming Manual 5.15 Utility Functions ====================== shishi_realm_default_guess -------------------------- -- Function: char * shishi_realm_default_guess () *Description:* Guesses a realm based on 'getdomainname()', which really responds with a NIS/YP domain, but if set properly, it might be a good first guess. If this NIS query fails, call 'gethostname()', and on its failure, fall back to returning the artificial string "could-not-guess-default-realm". Note that the hostname is not trimmed off of the string returned by 'gethostname()', thus pretending the local host name is a valid realm name. The resulting corner case could merit a check that the suggested realm is distinct from the fully qualifies host, and if not, simply strip the host name from the returned string before it is used in an application. One reason for sticking with the present behaviour, is that some systems respond with a non-qualified host name as reply from 'gethostname()'. *Return value:* Returns a guessed realm for the running host, containing a string that has to be deallocated with 'free()' by the caller. shishi_realm_default -------------------- -- Function: const char * shishi_realm_default (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* Determines name of default realm, i.e., the name of whatever realm the library will use whenever an explicit realm is not stated during a library call. *Return value:* Returns the default realm in use by the library. Not a copy, so do not modify or deallocate the returned string. shishi_realm_default_set ------------------------ -- Function: void shishi_realm_default_set (Shishi * HANDLE, const char * REALM) HANDLE: Shishi library handle created by 'shishi_init()'. REALM: String stating a new default realm name, or 'NULL'. *Description:* Sets the default realm used by the library; or, with REALM set to 'NULL', resets the library realm setting to that name selected by configuration for default value. The string is copied into the library, so you can dispose of the content in REALM immediately after calling this function. shishi_realm_for_server_file ---------------------------- -- Function: char * shishi_realm_for_server_file (Shishi * HANDLE, char * SERVER) HANDLE: Shishi library handle created by 'shishi_init()'. SERVER: Hostname to determine realm for. *Description:* Finds the realm applicable to a host SERVER, using the standard configuration file. *Return value:* Returns realm for host, or 'NULL' if not known. shishi_realm_for_server_dns --------------------------- -- Function: char * shishi_realm_for_server_dns (Shishi * HANDLE, char * SERVER) HANDLE: Shishi library handle created by 'shishi_init()'. SERVER: Hostname to find realm for. *Description:* Finds the realm for a host SERVER using DNS lookup, as is prescribed in "draft-ietf-krb-wg-krb-dns-locate-03.txt". Since DNS lookup can be spoofed, relying on the realm information may result in a redirection attack. In a single-realm scenario, this only achieves a denial of service, but with trust across multiple realms the attack may redirect you to a compromised realm. For this reason, Shishi prints a warning, suggesting that the user should instead add a proper 'server-realm' configuration token. To illustrate the DNS information used, here is an extract from a zone file for the domain ASDF.COM: _kerberos.asdf.com. IN TXT "ASDF.COM" _kerberos.mrkserver.asdf.com. IN TXT "MARKETING.ASDF.COM" _kerberos.salesserver.asdf.com. IN TXT "SALES.ASDF.COM" Let us suppose that in this case, a client wishes to use a service on the host "foo.asdf.com". It would first query for _kerberos.foo.asdf.com. IN TXT Finding no match, it would then query for _kerberos.asdf.com. IN TXT With the resource records stated above, the latter query returns a positive answer. *Return value:* Returns realm for the indicated host, or 'NULL' if no relevant TXT record could be found. shishi_realm_for_server ----------------------- -- Function: char * shishi_realm_for_server (Shishi * HANDLE, char * SERVER) HANDLE: Shishi library handle created by 'shishi_init()'. SERVER: Hostname to find realm for. *Description:* Finds a realm for the host SERVER, using various methods. Currently this includes static configuration files, using the library call 'shishi_realm_for_server_file()', and DNS lookup using 'shishi_realm_for_server_dns()'. They are attempted in the stated order. See the documentation of either function for more information. *Return value:* Returns realm for the indicated host, or 'NULL' if nothing is known about SERVER. shishi_principal_default_guess ------------------------------ -- Function: char * shishi_principal_default_guess () *Description:* Guesses the principal name for the user, looking at environment variables SHISHI_USER, USER and LOGNAME, or if that fails, returns the string "user". *Return value:* Returns guessed default principal for user as a string that has to be deallocated by the caller with 'free()'. shishi_principal_default ------------------------ -- Function: const char * shishi_principal_default (Shishi * HANDLE) HANDLE: Shishi library handle created by 'shishi_init()'. *Description:* The default principal name is the name in the environment variable USER, or LOGNAME for some systems, but it can be overridden by specifying the environment variable SHISHI_USER. *Return value:* Returns the default principal name used by the library. (Not a copy of it, so don't modify or deallocate it.) shishi_principal_default_set ---------------------------- -- Function: void shishi_principal_default_set (Shishi * HANDLE, const char * PRINCIPAL) HANDLE: Shishi library handle created by 'shishi_init()'. PRINCIPAL: string with new default principal name, or NULL to reset to default. *Description:* Set the default principal used by the library. The string is copied into the library, so you can dispose of the variable immediately after calling this function. shishi_parse_name ----------------- -- Function: int shishi_parse_name (Shishi * HANDLE, const char * NAME, char ** PRINCIPAL, char ** REALM) HANDLE: Shishi library handle created by 'shishi_init()'. NAME: input principal name string, e.g. imap/mail.gnu.org\GNU.ORG. PRINCIPAL: newly allocated output string with principal name. REALM: newly allocated output string with realm name. *Description:* Split principal name (e.g., "simon\JOSEFSSON.ORG") into two newly allocated strings, the PRINCIPAL ("simon"), and the REALM ("JOSEFSSON.ORG"). If there is no realm part in NAME, REALM is set to NULL. *Return value:* Returns SHISHI_INVALID_PRINCIPAL_NAME if NAME is NULL or ends with the escape character "\", and SHISHI_OK if successful. shishi_principal_name --------------------- -- Function: int shishi_principal_name (Shishi * HANDLE, Shishi_asn1 NAMENODE, const char * NAMEFIELD, char ** OUT, size_t * OUTLEN) HANDLE: Shishi library handle created by 'shishi_init()'. NAMENODE: ASN.1 structure with principal in NAMEFIELD. NAMEFIELD: name of field in NAMENODE containing principal name. OUT: pointer to newly allocated, null terminated, string containing principal name. May be 'NULL' (to only populate OUTLEN). OUTLEN: pointer to length of OUT on output, excluding terminating null. May be 'NULL' (to only populate OUT). *Description:* Represent principal name in ASN.1 structure as null-terminated string. The string is allocated by this function, and it is the responsibility of the caller to deallocate it. Note that the output length OUTLEN does not include the terminating null. *Return value:* Returns SHISHI_OK if successful. shishi_principal_name_realm --------------------------- -- Function: int shishi_principal_name_realm (Shishi * HANDLE, Shishi_asn1 NAMENODE, const char * NAMEFIELD, Shishi_asn1 REALMNODE, const char * REALMFIELD, char ** OUT, size_t * OUTLEN) HANDLE: Shishi library handle created by 'shishi_init()'. NAMENODE: ASN.1 structure with principal name in NAMEFIELD. NAMEFIELD: name of field in NAMENODE containing principal name. REALMNODE: ASN.1 structure with principal realm in REALMFIELD. REALMFIELD: name of field in REALMNODE containing principal realm. OUT: pointer to newly allocated null terminated string containing principal name. May be 'NULL' (to only populate OUTLEN). OUTLEN: pointer to length of OUT on output, excluding terminating null. May be 'NULL' (to only populate OUT). *Description:* Represent principal name and realm in ASN.1 structure as null-terminated string. The string is allocated by this function. It is the responsibility of the caller to deallocate it. Note that the output length OUTLEN does not include the terminating null character. *Return value:* Returns SHISHI_OK if successful. shishi_principal_name_set ------------------------- -- Function: int shishi_principal_name_set (Shishi * HANDLE, Shishi_asn1 NAMENODE, const char * NAMEFIELD, Shishi_name_type NAME_TYPE, const char * NAME[]) HANDLE: shishi handle as allocated by 'shishi_init()'. NAMENODE: ASN.1 structure with principal in NAMEFIELD. NAMEFIELD: name of field in NAMENODE containing principal name. NAME_TYPE: type of principal, see Shishi_name_type, usually SHISHI_NT_UNKNOWN. NAME: null-terminated input array with principal name. *Description:* Set the given principal name field to the given name. *Return value:* Returns SHISHI_OK if successful. shishi_principal_set -------------------- -- Function: int shishi_principal_set (Shishi * HANDLE, Shishi_asn1 NAMENODE, const char * NAMEFIELD, const char * NAME) HANDLE: shishi handle as allocated by 'shishi_init()'. NAMENODE: ASN.1 structure with principal in NAMEFIELD. NAMEFIELD: name of field in NAMENODE containing principal name. NAME: null-terminated string with principal name in RFC 1964 form. *Description:* Set principal name field in an ASN.1 structure to the given name. *Return value:* Returns SHISHI_OK if successful. shishi_derive_default_salt -------------------------- -- Function: int shishi_derive_default_salt (Shishi * HANDLE, const char * NAME, char ** SALT) HANDLE: shishi handle as allocated by 'shishi_init()'. NAME: principal name of user. SALT: output variable with newly allocated salt string. *Description:* Derive the default salt from a principal. The default salt is the concatenation of the decoded realm and the principal. *Return value:* Return SHISHI_OK if successful. shishi_server_for_local_service ------------------------------- -- Function: char * shishi_server_for_local_service (Shishi * HANDLE, const char * SERVICE) HANDLE: shishi handle as allocated by 'shishi_init()'. SERVICE: null terminated string with name of service, e.g., "host". *Description:* Construct a service principal (e.g., "imap/yxa.extuno.com") based on supplied service name (i.e., "imap") and the system's hostname as returned by 'hostname()' (i.e., "yxa.extundo.com"). The string must be deallocated by the caller. *Return value:* Return newly allocated service name string. shishi_authorize_strcmp ----------------------- -- Function: int shishi_authorize_strcmp (Shishi * HANDLE, const char * PRINCIPAL, const char * AUTHZNAME) HANDLE: shishi handle allocated by 'shishi_init()'. PRINCIPAL: string with desired principal name. AUTHZNAME: authorization name. *Description:* Authorization of AUTHZNAME against desired PRINCIPAL according to "basic" authentication, i.e., testing for identical strings. *Return value:* Returns 1 if AUTHZNAME is authorized for services by the encrypted principal, and 0 otherwise. shishi_authorize_k5login ------------------------ -- Function: int shishi_authorize_k5login (Shishi * HANDLE, const char * PRINCIPAL, const char * AUTHZNAME) HANDLE: shishi handle allocated by 'shishi_init()'. PRINCIPAL: string with desired principal name and realm. AUTHZNAME: authorization name. *Description:* Authorization of AUTHZNAME against desired PRINCIPAL in accordance with the MIT/Heimdal authorization method. *Return value:* Returns 1 if AUTHZNAME is authorized for services by PRINCIPAL, and returns 0 otherwise. shishi_authorization_parse -------------------------- -- Function: int shishi_authorization_parse (const char * AUTHORIZATION) AUTHORIZATION: name of authorization type, "basic" or "k5login". *Description:* Parse authorization type name. *Return value:* Returns authorization type corresponding to a string. shishi_authorized_p ------------------- -- Function: int shishi_authorized_p (Shishi * HANDLE, Shishi_tkt * TKT, const char * AUTHZNAME) HANDLE: shishi handle allocated by 'shishi_init()'. TKT: input variable with ticket info. AUTHZNAME: authorization name. *Description:* Simplistic authorization of AUTHZNAME against encrypted client principal name inside ticket. For "basic" authentication type, the principal name must coincide with AUTHZNAME. The "k5login" authentication type attempts the MIT/Heimdal method of parsing the file "~/.k5login" for additional equivalence names. *Return value:* Returns 1 if AUTHZNAME is authorized for services by the encrypted principal, and 0 otherwise. shishi_generalize_time ---------------------- -- Function: const char * shishi_generalize_time (Shishi * HANDLE, time_t T) HANDLE: Shishi handle as allocated by 'shishi_init()'. T: C time to convert. *Description:* Converts C time T to a KerberosTime string representation. The returned string must not be deallocated by the caller. *Return value:* Returns a KerberosTime formatted string corresponding to the input parameter. shishi_generalize_now --------------------- -- Function: const char * shishi_generalize_now (Shishi * HANDLE) HANDLE: Shishi handle as allocated by 'shishi_init()'. *Description:* Converts the current time to a KerberosTime string. The returned string must not be deallocated by the caller. *Return value:* Returns a KerberosTime formatted string corresponding to the current time. shishi_generalize_ctime ----------------------- -- Function: time_t shishi_generalize_ctime (Shishi * HANDLE, const char * T) HANDLE: Shishi handle as allocated by 'shishi_init()'. T: KerberosTime string to convert. *Description:* Converts a KerberosTime formatted string in T to integral C time representation. *Return value:* Returns the C time corresponding to the input argument. shishi_time ----------- -- Function: int shishi_time (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, char ** T) HANDLE: Shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 structure to get time from. FIELD: Name of the field in the ASN.1 node carrying time. T: Returned pointer to an allocated char array containing a null-terminated time string. *Description:* Extracts time information from an ASN.1 structure, and to be precise, does so from the named field FIELD within the structure NODE. *Return value:* Returns 'SHISHI_OK' if successful, or an error. shishi_ctime ------------ -- Function: int shishi_ctime (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, time_t * T) HANDLE: Shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 structure to read field from. FIELD: Name of field in NODE to read. T: Pointer to a C-time valued integer, being updated with the time value to be extracted. *Description:* Extracts time information from an ASN.1 structure NODE, and from an arbitrary element FIELD of that structure. *Return value:* Returns 'SHISHI_OK' if successful, 'SHISHI_ASN1_NO_ELEMENT' if the element does not exist, 'SHISHI_ASN1_NO_VALUE' if the field has no value. In all other cases, 'SHISHI_ASN1_ERROR' is returned. shishi_prompt_password_callback_set ----------------------------------- -- Function: void shishi_prompt_password_callback_set (Shishi * HANDLE, shishi_prompt_password_func CB) HANDLE: shishi handle as allocated by 'shishi_init()'. CB: function pointer to application password callback, a 'shishi_prompt_password_func' type. *Description:* Set a callback function that will be used by 'shishi_prompt_password()' to query the user for a password. The function pointer can be retrieved using 'shishi_prompt_password_callback_get()'. The CB function should follow the 'shishi_prompt_password_func' prototype: int prompt_password (Shishi * HANDLE, char **S, const char *FORMAT, va_list AP); If the function returns 0, the S variable should contain a newly allocated string with the password read from the user. shishi_prompt_password_callback_get ----------------------------------- -- Function: shishi_prompt_password_func shishi_prompt_password_callback_get (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Get the application password prompt function callback as set by 'shishi_prompt_password_callback_set()'. *Returns:* Returns the callback, a 'shishi_prompt_password_func' type, or 'NULL'. shishi_prompt_password ---------------------- -- Function: int shishi_prompt_password (Shishi * HANDLE, char ** S, const char * FORMAT, ...) HANDLE: shishi handle as allocated by 'shishi_init()'. S: pointer to newly allocated output string with read password. FORMAT: printf(3) style format string. ...: printf(3) style arguments. *Description:* Format and print a prompt, and read a password from user. The password is possibly converted (e.g., converted from Latin-1 to UTF-8, or processed using Stringprep profile) following any "stringprocess" keywords in configuration files. *Return value:* Returns SHISHI_OK iff successful. shishi_resolv ------------- -- Function: Shishi_dns shishi_resolv (const char * ZONE, uint16_t QUERYTYPE) ZONE: Domain name of authentication zone, e.g. "EXAMPLE.ORG" QUERYTYPE: Type of domain data to query for. *Description:* Queries the DNS resolver for data of type QUERYTYPE about the domain name ZONE. Currently, the types 'SHISHI_DNS_TXT' and 'SHISHI_DNS_SRV' are the only supported kinds. After its use, the returned list should be deallocated by a call to 'shishi_resolv_free()'. *Return value:* Returns a linked list of DNS resource records, or 'NULL' if the query failed. shishi_resolv_free ------------------ -- Function: void shishi_resolv_free (Shishi_dns RRS) RRS: List of DNS RRs as returned by 'shishi_resolv()'. *Description:* Deallocates a list of DNS resource records returned by a call to 'shishi_resolv()'.  File: shishi.info, Node: ASN.1 Functions, Next: Error Handling, Prev: Utility Functions, Up: Programming Manual 5.16 ASN.1 Functions ==================== shishi_asn1_read_inline ----------------------- -- Function: int shishi_asn1_read_inline (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, char * DATA, size_t * DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 variable to read field from. FIELD: name of field in NODE to read. DATA: pre-allocated output buffer that will hold ASN.1 field data. DATALEN: on input, maximum size of output buffer, on output, actual size of output buffer. *Description:* Extract data stored in a ASN.1 field into a fixed size buffer allocated by caller. Note that since it is difficult to predict the length of the field, it is often better to use 'shishi_asn1_read()' instead. *Return value:* Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. shishi_asn1_read ---------------- -- Function: int shishi_asn1_read (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, char ** DATA, size_t * DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 variable to read field from. FIELD: name of field in NODE to read. DATA: newly allocated output buffer that will hold ASN.1 field data. DATALEN: actual size of output buffer. *Description:* Extract data stored in a ASN.1 field into a newly allocated buffer. The buffer will always be zero terminated, even though DATALEN will not include the added zero. *Return value:* Returns SHISHI_OK if successful, SHISHI_ASN1_NO_ELEMENT if the element do not exist, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. shishi_asn1_read_optional ------------------------- -- Function: int shishi_asn1_read_optional (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, char ** DATA, size_t * DATALEN) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 variable to read field from. FIELD: name of field in NODE to read. DATA: newly allocated output buffer that will hold ASN.1 field data. DATALEN: actual size of output buffer. *Description:* Extract data stored in a ASN.1 field into a newly allocated buffer. If the field does not exist (i.e., SHISHI_ASN1_NO_ELEMENT), this function set datalen to 0 and succeeds. Can be useful to read ASN.1 fields which are marked OPTIONAL in the grammar, if you want to avoid special error handling in your code. *Return value:* Returns SHISHI_OK if successful, SHISHI_ASN1_NO_VALUE if the field has no value, ot SHISHI_ASN1_ERROR otherwise. shishi_asn1_done ---------------- -- Function: void shishi_asn1_done (Shishi * HANDLE, Shishi_asn1 NODE) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 node to deallocate. *Description:* Deallocate resources associated with ASN.1 structure. Note that the node must not be used after this call. shishi_asn1_pa_enc_ts_enc ------------------------- -- Function: Shishi_asn1 shishi_asn1_pa_enc_ts_enc (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for PA-ENC-TS-ENC. *Return value:* Returns ASN.1 structure. shishi_asn1_encrypteddata ------------------------- -- Function: Shishi_asn1 shishi_asn1_encrypteddata (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for EncryptedData *Return value:* Returns ASN.1 structure. shishi_asn1_padata ------------------ -- Function: Shishi_asn1 shishi_asn1_padata (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for PA-DATA. *Return value:* Returns ASN.1 structure. shishi_asn1_methoddata ---------------------- -- Function: Shishi_asn1 shishi_asn1_methoddata (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for METHOD-DATA. *Return value:* Returns ASN.1 structure. shishi_asn1_etype_info ---------------------- -- Function: Shishi_asn1 shishi_asn1_etype_info (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for ETYPE-INFO. *Return value:* Returns ASN.1 structure. shishi_asn1_etype_info2 ----------------------- -- Function: Shishi_asn1 shishi_asn1_etype_info2 (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for ETYPE-INFO2. *Return value:* Returns ASN.1 structure. shishi_asn1_asreq ----------------- -- Function: Shishi_asn1 shishi_asn1_asreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for AS-REQ. *Return value:* Returns ASN.1 structure. shishi_asn1_asrep ----------------- -- Function: Shishi_asn1 shishi_asn1_asrep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for AS-REP. *Return value:* Returns ASN.1 structure. shishi_asn1_tgsreq ------------------ -- Function: Shishi_asn1 shishi_asn1_tgsreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for TGS-REQ. *Return value:* Returns ASN.1 structure. shishi_asn1_tgsrep ------------------ -- Function: Shishi_asn1 shishi_asn1_tgsrep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for TGS-REP. *Return value:* Returns ASN.1 structure. shishi_asn1_apreq ----------------- -- Function: Shishi_asn1 shishi_asn1_apreq (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for AP-REQ. *Return value:* Returns ASN.1 structure. shishi_asn1_aprep ----------------- -- Function: Shishi_asn1 shishi_asn1_aprep (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for AP-REP. *Return value:* Returns ASN.1 structure. shishi_asn1_encapreppart ------------------------ -- Function: Shishi_asn1 shishi_asn1_encapreppart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for AP-REP. *Return value:* Returns ASN.1 structure. shishi_asn1_ticket ------------------ -- Function: Shishi_asn1 shishi_asn1_ticket (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for Ticket. *Return value:* Returns ASN.1 structure. shishi_asn1_encticketpart ------------------------- -- Function: Shishi_asn1 shishi_asn1_encticketpart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for EncTicketPart. *Return value:* Returns ASN.1 structure. shishi_asn1_authenticator ------------------------- -- Function: Shishi_asn1 shishi_asn1_authenticator (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for Authenticator. *Return value:* Returns ASN.1 structure. shishi_asn1_enckdcreppart ------------------------- -- Function: Shishi_asn1 shishi_asn1_enckdcreppart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for EncKDCRepPart. *Return value:* Returns ASN.1 structure. shishi_asn1_encasreppart ------------------------ -- Function: Shishi_asn1 shishi_asn1_encasreppart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for EncASRepPart. *Return value:* Returns ASN.1 structure. shishi_asn1_krberror -------------------- -- Function: Shishi_asn1 shishi_asn1_krberror (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for KRB-ERROR. *Return value:* Returns ASN.1 structure. shishi_asn1_krbsafe ------------------- -- Function: Shishi_asn1 shishi_asn1_krbsafe (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for KRB-SAFE. *Return value:* Returns ASN.1 structure. shishi_asn1_priv ---------------- -- Function: Shishi_asn1 shishi_asn1_priv (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for KRB-PRIV. *Return value:* Returns ASN.1 structure. shishi_asn1_encprivpart ----------------------- -- Function: Shishi_asn1 shishi_asn1_encprivpart (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Create new ASN.1 structure for EncKrbPrivPart. *Return value:* Returns ASN.1 structure. shishi_asn1_to_der_field ------------------------ -- Function: int shishi_asn1_to_der_field (Shishi * HANDLE, Shishi_asn1 NODE, const char * FIELD, char ** DER, size_t * LEN) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 data that have field to extract. FIELD: name of field in NODE to extract. DER: output array that holds DER encoding of FIELD in NODE. LEN: output variable with length of DER output array. *Description:* Extract newly allocated DER representation of specified ASN.1 field. *Return value:* Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). shishi_asn1_to_der ------------------ -- Function: int shishi_asn1_to_der (Shishi * HANDLE, Shishi_asn1 NODE, char ** DER, size_t * LEN) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 data to convert to DER. DER: output array that holds DER encoding of NODE. LEN: output variable with length of DER output array. *Description:* Extract newly allocated DER representation of specified ASN.1 data. *Return value:* Returns SHISHI_OK if successful, or SHISHI_ASN1_ERROR if DER encoding fails (common reasons for this is that the ASN.1 is missing required values). shishi_asn1_msgtype ------------------- -- Function: Shishi_msgtype shishi_asn1_msgtype (Shishi * HANDLE, Shishi_asn1 NODE) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 type to get msg type for. *Description:* Determine msg-type of ASN.1 type of a packet. Currently this uses the msg-type field instead of the APPLICATION tag, but this may be changed in the future. *Return value:* Returns msg-type of ASN.1 type, 0 on failure. shishi_der_msgtype ------------------ -- Function: Shishi_msgtype shishi_der_msgtype (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Determine msg-type of DER coded data of a packet. *Return value:* Returns msg-type of DER data, 0 on failure. shishi_der2asn1 --------------- -- Function: Shishi_asn1 shishi_der2asn1 (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Convert arbitrary DER data of a packet to a ASN.1 type. *Return value:* Returns newly allocate ASN.1 corresponding to DER data, or 'NULL' on failure. shishi_der2asn1_padata ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_padata (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of PA-DATA and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_methoddata -------------------------- -- Function: Shishi_asn1 shishi_der2asn1_methoddata (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of METHOD-DATA and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_etype_info -------------------------- -- Function: Shishi_asn1 shishi_der2asn1_etype_info (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of ETYPE-INFO and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_etype_info2 --------------------------- -- Function: Shishi_asn1 shishi_der2asn1_etype_info2 (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of ETYPE-INFO2 and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_ticket ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_ticket (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of Ticket and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_encticketpart ----------------------------- -- Function: Shishi_asn1 shishi_der2asn1_encticketpart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncTicketPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_asreq --------------------- -- Function: Shishi_asn1 shishi_der2asn1_asreq (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of AS-REQ and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_tgsreq ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_tgsreq (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of TGS-REQ and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_asrep --------------------- -- Function: Shishi_asn1 shishi_der2asn1_asrep (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of AS-REP and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_tgsrep ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_tgsrep (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of TGS-REP and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_kdcrep ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_kdcrep (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of KDC-REP and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_encasreppart ---------------------------- -- Function: Shishi_asn1 shishi_der2asn1_encasreppart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncASRepPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_enctgsreppart ----------------------------- -- Function: Shishi_asn1 shishi_der2asn1_enctgsreppart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncTGSRepPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_enckdcreppart ----------------------------- -- Function: Shishi_asn1 shishi_der2asn1_enckdcreppart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncKDCRepPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_authenticator ----------------------------- -- Function: Shishi_asn1 shishi_der2asn1_authenticator (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of Authenticator and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_krberror ------------------------ -- Function: Shishi_asn1 shishi_der2asn1_krberror (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of KRB-ERROR and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_krbsafe ----------------------- -- Function: Shishi_asn1 shishi_der2asn1_krbsafe (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of KRB-SAFE and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_priv -------------------- -- Function: Shishi_asn1 shishi_der2asn1_priv (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of KRB-PRIV and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_encprivpart --------------------------- -- Function: Shishi_asn1 shishi_der2asn1_encprivpart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncKrbPrivPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_apreq --------------------- -- Function: Shishi_asn1 shishi_der2asn1_apreq (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of AP-REQ and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_aprep --------------------- -- Function: Shishi_asn1 shishi_der2asn1_aprep (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of AP-REP and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_encapreppart ---------------------------- -- Function: Shishi_asn1 shishi_der2asn1_encapreppart (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of EncAPRepPart and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_der2asn1_kdcreq ---------------------- -- Function: Shishi_asn1 shishi_der2asn1_kdcreq (Shishi * HANDLE, const char * DER, size_t DERLEN) HANDLE: shishi handle as allocated by 'shishi_init()'. DER: input character array with DER encoding. DERLEN: length of input character array with DER encoding. *Description:* Decode DER encoding of AS-REQ, TGS-REQ or KDC-REQ and create a ASN.1 structure. *Return value:* Returns ASN.1 structure corresponding to DER data. shishi_asn1_print ----------------- -- Function: void shishi_asn1_print (Shishi * HANDLE, Shishi_asn1 NODE, FILE * FH) HANDLE: shishi handle as allocated by 'shishi_init()'. NODE: ASN.1 data that have field to extract. FH: file descriptor to print to, e.g. stdout. *Description:* Print ASN.1 structure in human readable form, typically for debugging purposes.  File: shishi.info, Node: Error Handling, Next: Examples, Prev: ASN.1 Functions, Up: Programming Manual 5.17 Error Handling =================== Most functions in 'Libshishi' are returning an error if they fail. For this reason, the application should always catch the error condition and take appropriate measures, for example by releasing the resources and passing the error up to the caller, or by displaying a descriptive message to the user and cancelling the operation. Some error values do not indicate a system error or an error in the operation, but the result of an operation that failed properly. * Menu: * Error Values:: A list of all error values used. * Error Functions:: Error handling related functions.  File: shishi.info, Node: Error Values, Next: Error Functions, Up: Error Handling 5.17.1 Error Values ------------------- Errors are returned as an 'int'. Except for the SHISHI_OK case, an application should always use the constants instead of their numeric value. Applications are encouraged to use the constants even for SHISHI_OK as it improves readability. Possible values are: 'SHISHI_OK' This value indicates success. The value of this error is guaranteed to always be '0' so you may use it in boolean constructs. 'SHISHI_ASN1_ERROR' Error in ASN.1 function. (corrupt data?) 'SHISHI_FOPEN_ERROR' Could not open file. 'SHISHI_IO_ERROR' File input/output error. 'SHISHI_MALLOC_ERROR' Memory allocation error in shishi library. 'SHISHI_BASE64_ERROR' Base64 encoding or decoding failed. Data corrupt? 'SHISHI_REALM_MISMATCH' Client realm value differ between request and reply. 'SHISHI_CNAME_MISMATCH' Client name value differ between request and reply. 'SHISHI_NONCE_MISMATCH' Replay protection value (nonce) differ between request and reply. 'SHISHI_TGSREP_BAD_KEYTYPE' Incorrect key type used in TGS reply. 'SHISHI_KDCREP_BAD_KEYTYPE' Incorrect key type used in reply from KDC. 'SHISHI_APREP_BAD_KEYTYPE' Incorrect key type used in AP reply. 'SHISHI_APREP_VERIFY_FAILED' Failed verification of AP reply. 'SHISHI_APREQ_BAD_KEYTYPE' Incorrect key type used in AP request. 'SHISHI_TOO_SMALL_BUFFER' Provided buffer was too small. 'SHISHI_DERIVEDKEY_TOO_SMALL' Derived key material is too short to be applicable. 'SHISHI_KEY_TOO_LARGE' The key is too large to be usable. 'SHISHI_CRYPTO_ERROR' Low-level cryptographic primitive failed. This usually indicates bad password or data corruption. 'SHISHI_CRYPTO_INTERNAL_ERROR' Internal error in low-level crypto routines. 'SHISHI_SOCKET_ERROR' The system call socket() failed. This usually indicates that your system does not support the socket type. 'SHISHI_BIND_ERROR' The system call bind() failed. This usually indicates insufficient permissions. 'SHISHI_SENDTO_ERROR' The system call sendto() failed. 'SHISHI_RECVFROM_ERROR' Error receiving data from server. 'SHISHI_CLOSE_ERROR' The system call close() failed. 'SHISHI_KDC_TIMEOUT' Timed out talking to KDC. This usually indicates a network or KDC address problem. 'SHISHI_KDC_NOT_KNOWN_FOR_REALM' No KDC known for given realm. 'SHISHI_TTY_ERROR' No TTY assigned to process. 'SHISHI_GOT_KRBERROR' Server replied to the request with an error message. 'SHISHI_HANDLE_ERROR' Failure to use handle. Missing handle, or misconfigured. 'SHISHI_INVALID_TKTS' Ticket set not initialized. This usually indicates an internal application error. 'SHISHI_TICKET_BAD_KEYTYPE' Key type used to encrypt ticket doesn't match provided key. This usually indicates an internal application error. 'SHISHI_INVALID_KEY' Reference to invalid encryption key. 'SHISHI_APREQ_DECRYPT_FAILED' Could not decrypt AP-REQ using provided key. This usually indicates an internal application error. 'SHISHI_TICKET_DECRYPT_FAILED' Could not decrypt Ticket using provided key. This usually indicates an internal application error. 'SHISHI_INVALID_TICKET' Invalid ticked passed in call. 'SHISHI_OUT_OF_RANGE' Argument lies outside of valid range. 'SHISHI_ASN1_NO_ELEMENT' The ASN.1 structure does not contain the indicated element. 'SHISHI_SAFE_BAD_KEYTYPE' Attempted access to non-existent key type. 'SHISHI_SAFE_VERIFY_FAILED' Verification failed on either side. 'SHISHI_PKCS5_INVALID_PRF' Invalid PKCS5 descriptor. 'SHISHI_PKCS5_INVALID_ITERATION_COUNT' Invalid claim of iteration count in PKCS5 descriptor. 'SHISHI_PKCS5_INVALID_DERIVED_KEY_LENGTH' Derived key length is incorrect for PKCS5 descriptor. 'SHISHI_PKCS5_DERIVED_KEY_TOO_LONG' Derived key is too long for PKCS5 descriptor. 'SHISHI_INVALID_PRINCIPAL_NAME' Principal name syntax error. 'SHISHI_INVALID_ARGUMENT' Invalid argument passed in call. Wrong or unknown value. 'SHISHI_ASN1_NO_VALUE' The indicated ASN.1 element does not carry a value. 'SHISHI_CONNECT_ERROR' Connection attempt failed. Try again, or check availability. 'SHISHI_VERIFY_FAILED' Verification failed on either side. 'SHISHI_PRIV_BAD_KEYTYPE' The private key uses an incompatible encryption type. 'SHISHI_FILE_ERROR' The desired file could not be accessed. Check permissions. 'SHISHI_ENCAPREPPART_BAD_KEYTYPE' The present AP reply specifies an inpermissible key type. 'SHISHI_GETTIMEOFDAY_ERROR' A request for present time of day has failed. This is usually internal, but a valid time is imperative for us. 'SHISHI_KEYTAB_ERROR' Failed to parse keytab file. 'SHISHI_CCACHE_ERROR' Failed to parse credential cache file.  File: shishi.info, Node: Error Functions, Prev: Error Values, Up: Error Handling 5.17.2 Error Functions ---------------------- shishi_strerror --------------- -- Function: const char * shishi_strerror (int ERR) ERR: shishi error code. *Description:* Converts the return code in ERR to a human readable string. *Return value:* Returns a pointer to a statically allocated string containing a description of the error with code ERR. This string can be used to output a diagnostic message to the user. shishi_error ------------ -- Function: const char * shishi_error (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Extracts detailed information on the most recently occurred error condition. Note that memory is managed by the Shishi library, so the returned string must not be deallocated. *Return value:* Returns a pointer to a string describing an error. The string must not be deallocated by the caller. shishi_error_clear ------------------ -- Function: void shishi_error_clear (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Clears the internal error description. See 'shishi_error()' on how to access the error string, and 'shishi_error_set()' as well as 'shishi_error_printf()' on how to set the error string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. shishi_error_set ---------------- -- Function: void shishi_error_set (Shishi * HANDLE, const char * ERRSTR) HANDLE: shishi handle as allocated by 'shishi_init()'. ERRSTR: A null-terminated character string holding a description, or 'NULL' to clear the internal error string. *Description:* Sets the error description to the content of ERRSTR. The string is copied into the Shishi internal structure, so you can deallocate any string passed to this function. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same error handling infrastructure. shishi_error_printf ------------------- -- Function: void shishi_error_printf (Shishi * HANDLE, const char * FORMAT, ...) HANDLE: shishi handle as allocated by 'shishi_init()'. FORMAT: printf style format string. ...: printf style arguments. *Description:* Sets the internal error description to a printf(3) formatted string. This function is mostly for Shishi's internal use, but if you develop an extension of Shishi, it may be useful to support the same infrastructure for error handling. shishi_error_outputtype ----------------------- -- Function: int shishi_error_outputtype (Shishi * HANDLE) HANDLE: shishi handle as allocated by 'shishi_init()'. *Description:* Reports the current output type used in message logging. *Return value:* Returns the output type. 'SHISHI_OUTPUTTYPE_NULL' means no output. 'SHISHI_OUTPUTTYPE_STDERR' and 'SHISHI_OUTPUTTYPE_SYSLOG' direct text to the console, or to the syslog system. shishi_error_set_outputtype --------------------------- -- Function: void shishi_error_set_outputtype (Shishi * HANDLE, int TYPE) HANDLE: shishi handle as allocated by 'shishi_init()'. TYPE: output type, of enum type 'Shishi_outputtype'. *Description:* Sets the output type ('NULL', 'stderr' or 'syslog') used for information and warning messages. Intended values are 'SHISHI_OUTPUTTYPE_NULL', for no output at all, 'SHISHI_OUTPUTTYPE_STDERR' for output to the console, and 'SHISHI_OUTPUTTYPE_SYSLOG' for syslog messaging. The first value covers everything different from the latter two values. shishi_info ----------- -- Function: void shishi_info (Shishi * HANDLE, const char * FORMAT, ...) HANDLE: shishi handle as allocated by 'shishi_init()'. FORMAT: printf style format string. ...: printf style arguments. *Description:* Prints an informational message, composed from the arguments, to the output stream set in HANDLE. shishi_warn ----------- -- Function: void shishi_warn (Shishi * HANDLE, const char * FORMAT, ...) HANDLE: shishi handle as allocated by 'shishi_init()'. FORMAT: printf style format string. ...: printf style arguments. *Description:* Prints a warning, composed from the arguments, to the output stream set in HANDLE. shishi_verbose -------------- -- Function: void shishi_verbose (Shishi * HANDLE, const char * FORMAT, ...) HANDLE: shishi handle as allocated by 'shishi_init()'. FORMAT: printf style format string. ...: printf style arguments. *Description:* Prints a diagnostic message, composed from the arguments, to the output stream set in HANDLE. The current verbosity setting determines whether the message is actually printed, or is suppressed due to low significance.  File: shishi.info, Node: Examples, Next: Kerberos Database Functions, Prev: Error Handling, Up: Programming Manual 5.18 Examples ============= This section will be extended to contain walk-throughs of example code that demonstrate how 'Shishi' is used to write your own applications that support Kerberos 5. The rest of the current section consists of some crude hints for the example client/server applications that is part of Shishi, taken from an email but saved here for lack of a better place to put it. There are two programs: 'client' and 'server' in src/. The client output an AP-REQ, waits for an AP-REP, and then simply reads data from stdin. The server waits for an AP-REQ, parses it and prints an AP-REP, and then read data from stdin. Both programs accept a Kerberos server name as the first command line argument. Your KDC must know this server, since the client tries to get a ticket for it (first it gets a ticket granting ticket for the default username), and you must write the key for the server into /usr/local/etc/shishi.keys on the Shishi format, e.g.: -----BEGIN SHISHI KEY----- Keytype: 16 (des3-cbc-sha1-kd) Principal: sample/latte.josefsson.org Realm: JOSEFSSON.ORG 8W0VrQQBpxlACPQEqN91EHxbvFFo2ltt -----END SHISHI KEY----- You must extract the proper encryption key from the KDC in some way. (This part will be easier when Shishi include a KDC, a basic one isn't far away, give me a week or to.) The intention is that the data read, after the authentication phase, should be protected using KRB_SAFE (see RFC) but I haven't added this yet.  File: shishi.info, Node: Kerberos Database Functions, Next: Generic Security Service, Prev: Examples, Up: Programming Manual 5.19 Kerberos Database Functions ================================ Shisa is a separate and standalone library from Shishi (*note Introduction to Shisa::). If you only wish to manipulate the information stored in the Kerberos user database used by Shishi, you do not need to link or use the Shishi library at all. However, you may find it useful to combine the two libraries. For two real world examples on using the Shisa library, refer to 'src/shisa.c' (Shisa command line tool) and 'src/kdc.c' (part of Shishid server). Shisa uses two 'struct's to carry information. The first, 'Shisa_principal', is used to hold information about principals. The struct does not contain pointers to strings etc, so the library assumes the caller is responsible for allocating and deallocating the struct itself. Each such struct is (uniquely) identified by the combination of principal name and realm name. struct Shisa_principal { int isdisabled; uint32_t kvno; time_t notusedbefore; time_t lastinitialtgt; /* time of last initial request for a TGT */ time_t lastinitialrequest; /* time of last initial request */ time_t lasttgt; /* time of issue for the newest TGT used */ time_t lastrenewal; /* time of the last renewal */ time_t passwordexpire; /* time when the password will expire */ time_t accountexpire; /* time when the account will expire. */ }; typedef struct Shisa_principal Shisa_principal; The second structure is called 'Shisa_key' and hold information about cryptographic keys. Because the struct contain pointers, and the caller cannot know how many keys a principal have, the Shisa library manages memory for the struct. The library allocate the structs, and the pointers within them. The caller may deallocate them, but it is recommended to use 'shisa_key_free' or 'shisa_keys_free' instead. Note that each principal may have multiple keys. struct Shisa_key { uint32_t kvno; int32_t etype; int priority; char *key; size_t keylen; char *salt; size_t saltlen; char *str2keyparam; size_t str2keyparamlen; char *password; }; typedef struct Shisa_key Shisa_key; Shisa is typically initialized by calling 'shisa_init', and deinitialized (when the application no longer need to use Shisa, typically when it shuts down) by calling 'shisa_done', but here are the complete (de)initialization interface functions. shisa ----- -- Function: Shisa * shisa () *Description:* Initializes the Shisa library. If this function fails, it may print diagnostic errors to standard error. *Return value:* Returns a Shisa library handle, or 'NULL' on error. shisa_done ---------- -- Function: void shisa_done (Shisa * DBH) DBH: Shisa handle as allocated by 'shisa()'. *Description:* Deallocates the shisa library handle. The handle must not be used in calls to any shisa function after the completion of this call. shisa_init ---------- -- Function: int shisa_init (Shisa ** DBH) DBH: Returned pointer to a created Shisa library handle. *Description:* Creates a Shisa library handle, using 'shisa()', reading the system configuration file from its default location. The path to the default system configuration file is decided at compile time ('sysconfdir'/shisa.conf). The handle is allocated regardless of return value, the only exception being 'SHISA_INIT_ERROR', which indicates a problem in allocating the handle. Other error conditions arise while reading a file. *Return value:* Returns 'SHISA_OK', or an error code. The value 'SHISA_INIT_ERROR' indicates a failure to create the handle. shisa_init_with_paths --------------------- -- Function: int shisa_init_with_paths (Shisa ** DBH, const char * FILE) DBH: Returned pointer to a created Shisa library handle. FILE: Filename of system configuration, or 'NULL'. *Description:* Creates a Shisa library handle, using 'shisa()', but reading the system configuration file at the location FILE, or at the default location, should FILE be 'NULL'. The path to the default system configuration file is decided at compile time ('sysconfdir'/shisa.conf). The handle is allocated regardless of return value, the only exception being 'SHISA_INIT_ERROR', which indicates a problem in allocating the handle. Other error conditions arise while reading a file. *Return value:* Returns 'SHISA_OK', or an error code. The value 'SHISA_INIT_ERROR' indicates a failure to create the handle. The default configuration file is typically read automatically by calling 'shisa_init', but if you wish to manually access the Shisa configuration file functions, here is the complete interface. shisa_cfg_db ------------ -- Function: int shisa_cfg_db (Shisa * DBH, const char * VALUE) DBH: Shisa library handle created by 'shisa()'. VALUE: String containing database definition. *Description:* Sets up and opens a new database. The syntax of the parameter VALUE is "TYPE[ LOCATION[ PARAMETER]]", where TYPE is one of the supported database types, typically "file". The above substrings LOCATION and PARAMETER are optional strings passed on verbatim to the database during initialization. Neither TYPE nor LOCATION may contain embedded spaces, but PARAMETER may do so. *Return value:* Returns 'SHISA_OK' if a database was parsed and opened successfully. shisa_cfg --------- -- Function: int shisa_cfg (Shisa * DBH, const char * OPTION) DBH: Shisa library handle created by 'shisa()'. OPTION: String with options to prime the Shisa library. *Description:* Configures the Shisa library from the specification OPTION. This call expects a string declaration of the form "db=VALUE", or "db VALUE". Here VALUE is the same declaration as used by 'shisa_cfg_db()', i.e., of the form "TYPE[ LOCATION[ PARAMETER]]". The prefix "db", mandatory in OPTION, makes 'shisa_cfg()' suited to a syntax with key-value pairs also in PARAMETER. *Return value:* Returns 'SHISA_OK' if OPTION is valid. shisa_cfg_from_file ------------------- -- Function: int shisa_cfg_from_file (Shisa * DBH, const char * CFG) DBH: Shisa library handle created by 'shisa()'. CFG: File name where to read configuration. *Description:* Configures the Shisa library using a configuration file located at CFG. *Return value:* Returns 'SHISA_OK' if successful. Typically returns 'SHISA_CFG_NO_FILE' in response to a misnamed file. shisa_cfg_default_systemfile ---------------------------- -- Function: const char * shisa_cfg_default_systemfile (Shisa * DBH) DBH: Shisa library handle created by 'shisa()'. *Description:* Fetches information on the installed configuration. *Return value:* Returns file name of the active system configuration. The core part of the Shisa interface follows. The typical procedure is to use 'shisa_principal_find' to verify that a specific principal exists, and to extract some information about it, and then use 'shisa_keys_find' to get the cryptographic keys for the principal, usually suppliying some hints as to which of all keys you are interested in (e.g., key version number and encryption algorithm number). shisa_enumerate_realms ---------------------- -- Function: int shisa_enumerate_realms (Shisa * DBH, char *** REALMS, size_t * NREALMS) DBH: Shisa library handle created by 'shisa()'. REALMS: Returned pointer to a newly allocated array of also allocated and null-terminated UTF-8 strings with realm names. NREALMS: Pointer to a number which is updated with the number of just allocated and returned realm strings. *Description:* Extracts a list of all realm names in backend, as null-terminated UTF-8 strings. The caller is responsible for deallocating all strings as well as the array *REALMS. *Return value:* Returns 'SHISA_OK' on success, or an error code. shisa_enumerate_principals -------------------------- -- Function: int shisa_enumerate_principals (Shisa * DBH, const char * REALM, char *** PRINCIPALS, size_t * NPRINCIPALS) DBH: Shisa library handle created by 'shisa()'. REALM: Name of realm, as null-terminated UTF-8 string. PRINCIPALS: Returned pointer to newly allocated array of just allocated null-terminated UTF-8 strings with principal names. NPRINCIPALS: Pointer to an integer updated with the number of just allocated and returned principal names. *Description:* Extracts a list of all principal names in backend belonging to the realm REALM, as null-terminated UTF-8 strings. The caller is responsible for deallocating all strings and the array *PRINCIPALS. *Return value:* Returns 'SHISA_OK' on success, 'SHISA_NO_REALM' if the specified realm does not exist, or an error code otherwise. shisa_principal_find -------------------- -- Function: int shisa_principal_find (Shisa * DBH, const char * REALM, const char * PRINCIPAL, Shisa_principal * PH) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of principal to get information about. PH: Pointer to a previously allocated principal structure where information about the principal is to be stored. *Description:* Extracts information about given the PRINCIPAL@REALM pair selected by PRINCIPAL and REALM. *Return value:* Returns 'SHISA_OK' if successful, 'SHISA_NO_REALM' if the indicated realm does not exist, 'SHISA_NO_PRINCIPAL' if the indicated principal does not exist, or an error code otherwise. shisa_principal_update ---------------------- -- Function: int shisa_principal_update (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_principal * PH) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of principal to get information about. PH: Pointer to an existing principal structure containing information to store in the database. *Description:* Modifies information stored about the given principal PRINCIPAL@REALM. Note that it is usually a good idea to set in PH only the fields that are to be updated. It is generally suggested to first call 'shisa_principal_find()', to get the current information, then to modify one field and call 'shisa_principal_update()'. Modifying several values is not recommended in general, as this will 1) overwrite any modifications made to other fields between the two calls (by other processes) and 2) will cause all values to be written again, which may generate more overhead. *Return value:* Returns 'SHISA_OK' if successful, 'SHISA_NO_REALM' if the indicated realm does not exist, 'SHISA_NO_PRINCIPAL' if the indicated principal does not exist, or an error code otherwise. shisa_principal_add ------------------- -- Function: int shisa_principal_add (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_principal * PH, const Shisa_key * KEY) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of principal to add. When set to 'NULL', only the realm REALM is created. PH: Pointer to a principal structure with information to store in the database. KEY: Pointer to a key structure with information to store in the database. *Description:* Inserts the given information into the database for the principal PRINCIPAL@REALM. In case PRINCIPAL is 'NULL', the parameters PH and KEY are not used, so only the realm is added to the database. *Return value:* Returns 'SHISA_OK' if the information was successfully added, or an error code otherwise. shisa_principal_remove ---------------------- -- Function: int shisa_principal_remove (Shisa * DBH, const char * REALM, const char * PRINCIPAL) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of the principal to remove. Set to 'NULL', only the realm REALM is removed. *Description:* Removes all information stored in the database for the given principal PRINCIPAL@REALM. When PRINCIPAL is 'NULL', then the realm REALM is itself removed, but this can only succeed if the realm is already empty of principals. *Return value:* Returns 'SHISA_OK' if successful, or an error code. shisa_keys_find --------------- -- Function: int shisa_keys_find (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_key * HINT, Shisa_key *** KEYS, size_t * NKEYS) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of the principal whose keys are examined. HINT: Pointer to a Shisa key structure with hints on matching criteria for relevant keys. 'NULL' matches all keys. KEYS: Returned pointer to a newly allocated array of Shisa key structures. NKEYS: Pointer to an integer updated with the number of allocated Shisa key structures in *KEYS. *Description:* Iterates through the set of keys belonging to PRINCIPAL@REALM, as selected by PRINCIPAL and REALM. Then extracts any keys that match the criteria in HINT. Not all elements of HINT need to be filled in. Set only the fields you are interested in. For example, if you want to extract all keys of etype 3, i.e., DES-CBC-MD5, then set the field KEY->etype to 3, and all other fields to zero. *Return value:* Returns 'SHISA_OK' if successful, or an error code. shisa_key_add ------------- -- Function: int shisa_key_add (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_key * KEY) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of the principal to add a new key for. KEY: Pointer to a Shisa key structure with the new key. *Description:* Adds a complete key KEY to the database entry belonging to the principal PRINCIPAL@REALM, as set by PRINCIPAL and REALM. *Return value:* Returns 'SHISA_OK' if successful, or an error code. shisa_key_update ---------------- -- Function: int shisa_key_update (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_key * OLDKEY, const Shisa_key * NEWKEY) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of the principal needing an updated key. OLDKEY: Pointer to a Shisa key structure giving matching criteria for locating the key to be updated. NEWKEY: Pointer to a complete Shisa key structure, in which all fields are used for the new key. Note that OLDKEY normally has far fewer fields filled-in. *Description:* Modifies data about a key stored in the database, a key belonging to the principal selected by PRINCIPAL and REALM. First OLDKEY is used to locate the key to update, as does 'shisa_keys_find()'. Then the found key is modified to carry whatever information is stored in NEWKEY. Not all elements of OLDKEY need to be filled out, only sufficiently many so as to uniquely identify the desired key. For example, if you want to modify the information stored about a unique key of etype 3, i.e., DES-CBC-MD5, then set the field KEY->etype to 3, leaving all other fields as zero. *Return value:* Returns 'SHISA_OK' on success, 'SHISA_NO_KEY' if no key could be located, 'SHISA_MULTIPLE_KEY_MATCH' if more than a single key matched the given criteria, or an error code otherwise. shisa_key_remove ---------------- -- Function: int shisa_key_remove (Shisa * DBH, const char * REALM, const char * PRINCIPAL, const Shisa_key * KEY) DBH: Shisa library handle created by 'shisa()'. REALM: Name of the realm the principal belongs to. PRINCIPAL: Name of the principal whose key is to be removed. KEY: Pointer to a Shisa key structure with hints on matching criteria for the key to select. *Description:* Removes from the Shisa database a key, matching the hints in KEY, for the user PRINCIPAL@REALM. Not all elements of KEY need to be filled in, only those relevant to locate the key uniquely. For example, if you want to remove the only key of etype 3, i.e., DES-CBC-MD5, then set the field KEY->etype to 3, and all other fields to zero. *Return value:* Returns 'SHISA_OK' on success, 'SHISA_NO_KEY' if no key could be located, 'SHISA_MULTIPLE_KEY_MATCH' if more than one key matched the given criteria, or an error code otherwise. shisa_key_free -------------- -- Function: void shisa_key_free (Shisa * DBH, Shisa_key * KEY) DBH: Shisa library handle created by 'shisa()'. KEY: Pointer to a Shisa key structure to deallocate. *Description:* Deallocates the fields of a Shisa key structure, as well as the structure itself. shisa_keys_free --------------- -- Function: void shisa_keys_free (Shisa * DBH, Shisa_key ** KEYS, size_t NKEYS) DBH: Shisa library handle created by 'shisa()'. KEYS: Pointer to an array of Shisa key structures. NKEYS: Number of key elements in the array KEYS. *Description:* Deallocates each key element in the array KEYS of Shisa database keys, using repeated calls to 'shisa_key_free()'. Error handling is similar to that for Shishi in general (*note Error Handling::), i.e., you invoke 'shisa_strerror' on the integer return value received by some function, if the return value is non-zero. Below is the complete interface. shisa_strerror -------------- -- Function: const char * shisa_strerror (int ERR) ERR: Shisa error code. *Description:* Explains verbally an error status ERR. The returned string can be used to compose a diagnostic message of benefit to a user. *Return value:* Returns a pointer to a statically allocated string, containing a description of the error given as input argument. shisa_info ---------- -- Function: void shisa_info (Shisa * DBH, const char * FORMAT, ...) DBH: Shisa library handle created by 'shisa()'. FORMAT: printf style format string. ...: printf style arguments. *Description:* Prints an informational message to standard error. The text is composed from the arguments, like printf(3).  File: shishi.info, Node: Generic Security Service, Prev: Kerberos Database Functions, Up: Programming Manual 5.20 Generic Security Service ============================= As an alternative to the native Shishi programming API, it is possible to program Shishi through the Generic Security Services (GSS) API. The advantage of using GSS-API in your security application, instead of the native Shishi API, is that it will be easier to port your application between different Kerberos 5 implementations, and even beyond Kerberos 5 to different security systems, that support GSS-API. In the free software world, however, almost the only widely used security system that supports GSS-API is Kerberos 5, so the last advantage is somewhat academic. But if you are porting applications using GSS-API for other Kerberos 5 implementations, or want a more mature and stable API than the native Shishi API, you may find using Shishi's GSS-API interface compelling. Note that GSS-API only offer basic services, for more advanced uses you must use the native API. Since the GSS-API is not specific to Shishi, it is distributed independently from Shishi. Further information on the GSS project can be found at .  File: shishi.info, Node: Acknowledgements, Next: Criticism of Kerberos, Prev: Programming Manual, Up: Top 6 Acknowledgements ****************** Shishi uses Libtasn1 by Fabio Fiorina, Libgcrypt and Libgpg-error by Werner Koch, Libidn by Simon Josefsson, cvs2cl by Karl Fogel, and gdoc by Michael Zucchi. Several GNU packages simplified development considerably, those packages include Autoconf, Automake, Libtool, Gnulib, Gettext, Indent, CVS, Texinfo, Help2man and Emacs. Several people reported bugs, sent patches or suggested improvements, see the file THANKS. Nicolas Pouvesle wrote the section about the Kerberos rsh/rlogin protocol. This manual borrows text from the Kerberos 5 specification.  File: shishi.info, Node: Criticism of Kerberos, Next: Protocol Extensions, Prev: Acknowledgements, Up: Top Appendix A Criticism of Kerberos ******************************** The intention with this section is to discuss various problems with Kerberos 5, so you can form a conscious decision how to deploy and use Shishi correctly in your organization. Currently the issues below are condensed, and mostly serve as a reminder for the author to elaborate on them. No encryption scheme with security proof. No standardized API, and GSS mechanism lack important functionality. Lack of authorization system. (krb5_kuserok()) Host to realm mapping relies on insecure DNS or static configuration files. Informational model and user database administration. Non-formal specification. Unclear on the etype to use for session keys (etype in request or database?). Unclear on how to populate some "evident" fields (e.g., cname in tickets for AS-REQ, or crealm, cname, realm, sname, ctime and cusec in KRB-ERROR). Unclear error code semantics (e.g., logic for when to use S_PRINCIPAL_UNKNOWN absent). Some KRB-ERROR fields are required, but can't be usefully populated in some situations, and no guidance is given on what they should contain. RFC 1510/1510bis incompatibilities. NULL enctype removed without discussion, and it is still used by some 1964 GSSAPI implementations. KRB_SAFE text (3.4.1) says the checksum is generated using the session or sub-session key, which contradicts itself (compare section 3.2.6) and also RFC 1510, which both allow the application to define the key. Verification of KRB_SAFE now require the key to be compatible with the (sub-)session key, in 1510 the only requirement was that it was collision proof. Problems with RFC 1510bis. Uses bignum INTEGER for TYPED-DATA and AD-AND-OR. Problems with crypto specification. It uses the word "random" many times, but there is no discussion on the randomness requirements. Practical experience indicate it is impossible to use true randomness for all "random" fields, and no implementation does this. A post by Don Davis on the ietf-krb-wg list tried to provide insight, but the information was never added to the specification.  File: shishi.info, Node: Protocol Extensions, Next: Copying Information, Prev: Criticism of Kerberos, Up: Top Appendix B Protocol Extensions ****************************** This appendix specifies the non-standard protocol elements implemented by Shishi. By nature of being non-standard, everything described here is experimental. Comments and feedback is appreciated. * Menu: * STARTTLS protected KDC exchanges:: How Shishi talks to KDC protected by TLS. * Telnet encryption with AES-CCM:: Integrity and privacy protected telnet. * Kerberized rsh and rlogin:: Description of KCMD protocol. * Key as initialization vector:: Some cryptography discussion. * The Keytab Binary File Format:: Format of keytab files. * The Credential Cache Binary File Format:: Format of ccache files.  File: shishi.info, Node: STARTTLS protected KDC exchanges, Next: Telnet encryption with AES-CCM, Up: Protocol Extensions B.1 STARTTLS protected KDC exchanges ==================================== Shishi is able to "upgrade" TCP communications with the KDC to use the Transport Layer Security (TLS) protocol. The TLS protocol offers integrity and privacy protected exchanges. TLS also offers authentication using username and passwords, X.509 certificates, or OpenPGP certificates. Kerberos 5 claims to offer some of these features, although it is not as rich as the TLS protocol. An inconclusive list of the motivation for using TLS is given below. * Server authentication of the KDC to the client. In traditional Kerberos 5, KDC authentication is only proved as a side effect that the KDC knows your encryption key (i.e., your password). * Client authentication against KDC. Kerberos 5 assume the user knows a key (usually in the form of a password). Sometimes external factors make this hard to fulfill. In some situations, users are equipped with smart cards with a RSA authentication key. In others, users have a OpenPGP client on their desktop, with a public OpenPGP key known to the server. In some situations, the policy may be that password authentication may only be done through SRP. * Kerberos exchanges are privacy protected. Part of many Kerberos packets are transfered without privacy protection (i.e., encryption). That part contains information, such as the client principal name, the server principal name, the encryption types supported by the client, the lifetime of tickets, etc. Revealing such information is, in some threat models, considered a problem. Thus, this enables "anonymity". * Prevents downgrade attacks affecting encryption types. The encryption type of the ticket in KDC-REQ are sent in the clear in Kerberos 5. This allows an attacker to replace the encryption type with a compromised mechanisms, e.g. 56-bit DES. Since clients in general cannot know the encryption types other servers support, it is difficult for the client to detect if there was a man-in-the-middle or if the remote server simply did not support a stronger mechanism. Clients may chose to refuse 56-bit DES altogether, but in some environments this leads to operational difficulties. * TLS is well-proved and the protocol is studied by many parties. This is an advantage in network design, where TLS is often already assumed as part of the solution since it is used to protect HTTP, IMAP, SMTP etc. In some threat models, the designer prefer to reduce the number of protocols that can hurt the overall system security if they are compromised. Other reasons for using TLS exists. B.1.1 TCP/IP transport with TLS upgrade (STARTTLS) -------------------------------------------------- RFC 1510bis requires Kerberos servers (KDCs) to accept TCP requests. Each request and response is prefixed by a 4 octet integer in network byte order, indicating the length of the packet. The high bit of the length was reserved for future expansion, and servers that do not understand how to interpret a set high bit must return a 'KRB-ERROR' with a 'KRB_ERR_FIELD_TOOLONG' and close the TCP stream. The TCP/IP transport with TLS upgrade (STARTTLS) uses this reserved bit as follows. First we define a new extensible typed hole for Kerberos 5 messages, because we used the only reserved bit. It is thus prudent to offer future extensions on our proposal. Secondly we reserve two values in this new typed hole, and described how they are used to implement STARTTLS. B.1.2 Extensible typed hole based on reserved high bit ------------------------------------------------------ When the high bit is set, the remaining 31 bits of the 4 octets are treated as an extensible typed hole, and thus form a 31 bit integer enumerating various extensions. Each of the values indicate a specific extended operation mode, two of which are used and defined here, and the rest are left for others to use. If the KDC do not understand a requested extension, it MUST return a 'KRB-ERROR' with a 'KRB_ERR_FIELD_TOOLONG' value (prefixed by the 4 octet length integer, with the high bit clear, as usual) and close the TCP stream. Meaning of the 31 lower bits in the 4 octet field, when the high bit is set: 0 RESERVED. 1 STARTTLS requested by client. 2 STARTTLS request accepted by server. 3...2147483647 AVAILABLE for registration (via bug-shishi@josefsson.org). 2147483648 RESERVED. B.1.3 STARTTLS requested by client (extension mode 1) ----------------------------------------------------- When this is sent by the client, the client is requesting the server to start TLS negotiation on the TCP stream. The client MUST NOT start TLS negotiation immediately. Instead, the client wait for either a KRB-ERROR (sent normally, prefixed by a 4 octet length integer) indicating the server do not understand the set high bit, or 4 octet which is to interpreted as an integer in network byte order, where the high bit is set and the remaining 31 bit are interpreted as an integer specifying the "STARTTLS request accepted by server". In the first case, the client infer that the server do not understand (or wish to support) STARTTLS, and can re-try using normal TCP, if unprotected Kerberos 5 exchanges are acceptable to the client policy. In the latter case, it should invoke TLS negotiation on the stream. If any other data is received, the client MUST close the TCP stream. B.1.4 STARTTLS request accepted by server (extension mode 2) ------------------------------------------------------------ This 4 octet message should be sent by the server when it has received the previous 4 octet message. The message is an acknowledgment of the client's request to initiate STARTTLS on the channel. The server MUST then invoke a TLS negotiation. B.1.5 Proceeding after successful TLS negotiation ------------------------------------------------- If the TLS negotiation ended successfully, possibly also considering client or server policies, the exchange within the TLS protected stream is performed like normal UDP Kerberos 5 exchanges, i.e., there is no TCP 4 octet length field before each packet. Instead each Kerberos packet MUST be sent within one TLS record, so the application can use the TLS record length as the Kerberos 5 packet length. B.1.6 Proceeding after failed TLS negotiation --------------------------------------------- If the TLS negotiation fails, possibly due to client or server policy (e.g., inadequate support of encryption types in TLS, or lack of client or server authentication) the entity that detect the failure MUST disconnected the connection. It is expected that any error messages that explain the error condition is transfered by TLS. B.1.7 Interaction with KDC addresses in DNS ------------------------------------------- Administrators for a KDC may announce the KDC address by placing SRV records in DNS for the realm, as described in 'draft-ietf-krb-wg-krb-dns-locate-03.txt'. That document mention TLS, but do not reference any work that describe how KDCs uses TLS. Until further clarified, consider the TLS field in that document to refer to implementation supporting this STARTTLS protocol. B.1.8 Using TLS authentication logic in Kerberos ------------------------------------------------ The server MAY consider the authentication performed by the TLS exchange as sufficient to issue Kerberos 5 tickets to the client, without requiring, e.g., pre-authentication. However, it is not an error to require or use pre-authentication as well. The client may also indicate that it wishes to use TLS both for authentication and data protection by using the 'NULL' encryption type in its request. The server can decide from its local policy whether or not issuing tickets based solely on TLS authentication, and whether 'NULL' encryption within TLS, is acceptable or not. This mode is currently under investigation. B.1.9 Security considerations ----------------------------- Because the initial token is not protected, it is possible for an active attacker to make it appear to the client that the server do not support this extension. It is up to client configuration to disallow non-TLS connections, if this vulnerability is deemed unacceptable. For interoperability, we suggest the default behaviour should be to allow automatic fallback to TCP or UDP. The security considerations of both TLS and Kerberos 5 are inherited. Using TLS for authentication and/or data protection together with Kerberos alter the authentication logic fundamentally. Thus, it may be that even if the TLS and Kerberos 5 protocols and implementations were secure, the combination of TLS and Kerberos 5 described here could be insecure. No channel bindings are provided in the Kerberos messages. It is an open question whether, and how, this should be fixed.  File: shishi.info, Node: Telnet encryption with AES-CCM, Next: Kerberized rsh and rlogin, Prev: STARTTLS protected KDC exchanges, Up: Protocol Extensions B.2 Telnet encryption with AES-CCM ================================== This appendix describe how Shishi use the Advanced Encryption Standard (AES) encryption algorithm in Counter with CBC-MAC mode (RFC 3610) with the telnet encryption option (RFC 2946). B.2.1 Command Names and Codes ----------------------------- Encryption Type AES_CCM 12 Suboption Commands AES_CCM_INFO 1 AES_CCM_INFO_OK 2 AES_CCM_INFO_BAD 3 B.2.2 Command Meanings ---------------------- IAC SB ENCRYPT IS AES_CCM AES_CCM_INFO IAC SE The sender of this command selects desired M and L parameters, and 'nonce', as described in RFC 3610, and sends it to the other side of the connection. The parameters and the 'nonce' are sent in clear text. Only the side of the connection that is WILL ENCRYPT may send the AES_CCM_INFO command. IAC SB ENCRYPT REPLY AES_CCM AES_CCM_INFO_BAD IAC SE The sender of this command rejects the parameters received in the AES_CCM_INFO command. Only the side of the connection that is DO ENCRYPT may send the AES_CCM_INFO_BAD command. The command MUST be sent if the 'nonce' field length does not match the selected value of L. The command MAY be sent if the receiver does not accept the parameters for a reason such as policy. No capability is provided for negotiating these parameters. IAC SB ENCRYPT REPLY AES_CCM AES_CCM_INFO_OK IAC SE The sender of this command accepts the parameters received in the AES_CCM_INFO command. Only the side of the connection that is DO ENCRYPT may send the AES_CCM_INFO_BAD command. The command MUST NOT be sent if the 'nonce' field length does not match the selected value of L. B.2.3 Implementation Rules -------------------------- Once an AES_CCM_INFO_OK command has been received, the WILL ENCRYPT side of the connection should do keyid negotiation using the ENC_KEYID command. Once the keyid negotiation has successfully identified a common keyid, then START and END commands may be sent by the side of the connection that is WILL ENCRYPT. Data will be encrypted using the AES-CCM algorithm, with the negotiated 'nonce' and parameters M and L. After each successful encryption and decryption, the 'nonce' is treated as an integer in network byte order, and is incremented by one. If encryption (decryption) is turned off and back on again, and the same keyid is used when re-starting the encryption (decryption), then the intervening clear text must not change the state of the encryption (decryption) machine. In particular, the AES-CCM 'nonce' must not have been re-set. If a START command is sent (received) with a different keyid, the encryption (decryption) machine must be re-initialized immediately following the end of the START command with the new key and the parameters sent (received) in the last AES_CCM_INFO command. If a new AES_CCM_INFO command is sent (received), and encryption (decryption) is enabled, the encryption (decryption) machine must be re-initialized immediately following the end of the AES_CCM_INFO command with the new 'nonce' and parameters, and the keyid sent (received) in the last START command. If encryption (decryption) is not enabled when an AES_CCM_INFO command is sent (received), the encryption (decryption) machine must be re- initialized after the next START command, with the keyid sent (received) in that START command, and the 'nonce' and parameters sent (received) in this AES_CCM_INFO command. At all times each peer MUST make sure that an AES-CCM 'nonce' is not used twice with the same encryption key. The rules above help accomplish this in an interoperable way. B.2.4 Integration with the AUTHENTICATION telnet option ------------------------------------------------------- As noted in the telnet ENCRYPTION option specifications, a keyid value of zero indicates the default encryption key, as might be derived from the telnet AUTHENTICATION option. If the default encryption key negotiated as a result of the telnet AUTHENTICATION option contains less than 32 bytes (corresponding to two 128 bit keys), then the AES_CCM option MUST NOT be offered or used as a valid telnet encryption option. Furthermore, depending on policy for key lengths, the AES_CCM option MAY be disabled if the default encryption key contain less than 48 bytes (for two 192 bit keys), or less than 64 bytes (for two 256 bit keys), as well. The available encrypt key data is divided on two halves, where the first half is used to encrypt data sent from the server (decrypt data received by the client), and the second half is used to encrypt data sent from the client (decrypt data received by the server). Note that the above algorithm assumes that the AUTHENTICATION mechanism generate keying material suitable for AES-CCM as used in this specification. This is not necessarily true in general, but we specify this behaviour as the default since it is true for most authentication systems in popular use today. New telnet AUTHENTICATION mechanisms may specify alternative methods for determining the keys to be used for this cipher suite in their specification, if the session key negotiated by that authentication mechanism is not a DES key and where this algorithm may not be safely used. Kerberos 5 authentication clarification: The key used to encrypt data from the client to the server is taken from the sub-session key in the AP-REQ. The key used to decrypt data from the server to the client is taken from the sub-session key in the AP-REP. If mutual authentication is not negotiated, the key used to encrypt data from the client to the server is taken from the session key in the ticket, and the key used to decrypt data from the server to the client is taken from the sub-session key in the AP-REQ. Leaving the AP-REQ sub-key field empty MUST disable the AES_CCM option. B.2.5 Security Considerations ----------------------------- The protocol must be properly and securely implemented. For example, an implementation should not be vulnerable to various implementation-specific attacks such as buffer overflows or side-channel analysis. We wish to repeat the suggestion from RFC 2946, to investigate a STARTTLS approach for Telnet encryption (and also authentication), when the security level provided by this specification is not adequate. B.2.5.1 Telnet Encryption Protocol Security Considerations .......................................................... The security consideration of the Telnet encryption protocol are inherited. It should be noted that it is up to the authentication protocol used, if any, to bind the authenticity of the peers to a specific session. The Telnet encryption protocol does not, in general, protect against possibly malicious downgrading to any mutually acceptable, but not preferred, encryption type. This places a requirement on each peer to only accept encryption types it trust fully. In other words, the Telnet encryption protocol do not guarantee that the strongest mutually acceptable encryption type is always selected. B.2.5.2 AES-CCM Security Considerations ....................................... The integrity and privacy claims are inherited from AES-CCM. In particular, the implementation must make sure a 'nonce' is not used more than once together with a single key. Furthermore, the encryption key is assumed to be random, i.e., it should not be possible to guess it with probability of success higher than guessing any uniformly selected random key. RFC 1750 gives an overview of issues and recommendations related to randomness. B.2.6 Acknowledgments --------------------- This document is based on the various Telnet Encryption RFCs (RFC 2946, RFC 2947, RFC 2948, RFC 2952 and RFC 2953).  File: shishi.info, Node: Kerberized rsh and rlogin, Next: Key as initialization vector, Prev: Telnet encryption with AES-CCM, Up: Protocol Extensions B.3 Kerberized rsh and rlogin ============================= This appendix describes the KCMDV0.2 protocol used in versions of inetutils patched for shishi. The KCMD protocol was developed by the MIT Kerberos team for the kerberized 'rsh' and 'rlogin' programs. The differences between 'rlogin' and 'rsh' are explained below, as are differences between protocol versions v0.1 and v0.2. Both remain in use resons of compatibility. It is possible that some parts of this document are not in conformity with the original KCMD protocol, because there is no official specification of it. However, it seems that shishi's implementation is compatible with MIT's protocol. *Warning:* If you are seriously considering using Kerberized 'rsh' or 'rlogin', instead of more robust remote access protocols, such as _SSH_, you may first want to explore or the full paper at . B.3.1 Establish connection -------------------------- Initially the client establishs a TCP connection to the server. Default ports are 543 ('klogin'), 544 ('kshell'), and 2105 ('eklogin'). Here 'eklogin' is the same as 'klogin', but with encryption. There is no longer a separate 'ekshell' port, because encrypted and normal connection now use the same port 'kshell'. Normally 'kshell' needs a second connection for 'stderr'. The client should send a null terminated string containing an ascii encoding of the port number to be used for this second connection. Since 'klogin' and 'eklogin' do not use a second connection for 'stderr', the client just sends an additional null byte to the server, which can be thought of as an empty string. Contrary to classic 'rsh' and 'rlogin', the server need not check if the client's port lies in the range 0-1023. B.3.2 Kerberos identification ----------------------------- When a connection is being established, the first thing to do is to indicate that Kerberos authentication is desired. The client will send a string to indicate it will use Kerberos 5. Let us say "length-string" of STRL, and mean the couple (length of the string strl, null-terminated string strl). when STRL itself is given. The string length is encoded as an 'int32' (32-bit integer) in MSB order, i.e., network byte order. So the client first sends an authentication message, the length-string of KRB5_SENDAUTH_V1.0 After that, the client must tell which version of the protocol it uses by sending a version message, consisting of a second length-string. This time based on KCMDV0.2 or on "KCMDV0.1", for the older version. If the client's indentification is acceptable, the server will respond with a null byte ('0x00'). Otherwise, if the authentication message was incorrect, then the server responds with the single byte '0x01', while if the protocol version message was unacceptable, then the response is a single '0x02'. B.3.3 Kerberos authentication ----------------------------- When the client is indentified, Kerberos authentication can begin. The client must send an AP-REQ to the server; an AP-REQ authenticator must contain a subkey (only for KCMDV0.2) and a checksum. The authenticator checksum is calculated from the following string. "serverport":"terminaltype""remoteusername" Observe the mandatory colon, serving as a delimiter to the terminal type. Here REMOTEUSERNAME is whatever identity the client desires to use at the remote end. The simple example 543:linux/38400user demonstrates that the terminal type expects a terminfo name and a speed as decimal number. Once the AP-REQ has been updated with the checksum, it is ready for transmission to the server. Its length (as 'int32') is first sent in network order (MSB), followed by the DER encoded AP-REQ itself. If all is acceptable, the server reponds with an 'int32' of value null. (In MSB order, but as it is null, order is irrelevant!). The KCMD protocol uses mutual authentication, so the server must also send an AP-REP back: (int32-length in MSB of DER encoded AP-REP) (DER encoded AP-REP) Now server and client are provisionally authenticated. B.3.4 Extended authentication ----------------------------- The client next sends three different null terminated strings, without length : * remote user name (user identity on remote machine) * terminal type for 'rlogin' or command for 'rsh' * local user name (user identity on client machine) An example for 'rsh' : "rname\0" "cat /usr/local/etc/shishi.conf" "lname\0" The server must next verify that the checksum delivered in the AP-REQ authenticator is correct, by computing a new hash like the client has previously done. The server must also verify that the requesting principal (found in AP-REQ) has the right to log in to the remote user account. In the 'basic' authorization, this is done by checking whether the remote user name is identical to the principal's name. The alternative is 'k5login' mode, which is discussed in *note kerberos authorization::. If all is correct, the server sends a null byte, i.e., an empty string, or else an error message string (null terminated). The remote client reads the first byte. If it is equal to zero, authentication is successful and the user is logged in at the remote host. In any other case, the client has the error message available, as sent by the server, to help the user understand the failure. B.3.5 Window size ----------------- In the 'rlogin' protocol, when authentication completes, the server can optionally send a message asking for terminal window size suitable for the user. The client can respond, but it is not obliged to do so. Under KCMDV0.1, the server sends a single byte, an urgent TCP message ('MSG_OOB') : TIOCPKT_WINDOW = 0x80 With KCMDV0.2, the server does not send an urgent message at all, but writes five bytes to the socket : '\377', '\377', 'o', 'o', TIOCPKT_WINDOW If encryption is enabled ('eklogin') the server must send those five bytes in encrypted form. The client answers alike in both protocol versions : '\377', '\377', 's', 's', "struct winsize" The winsize structure is filled in with the settings from the client's terminal. With encryption enabled, this answer must be sent encrypted. B.3.6 End of authentication --------------------------- The legacy exchange supported by 'rsh' and 'rlogin' continues from this point onwards. B.3.7 Encryption ---------------- Encryption mode is always used when connecting via the port 'eklogin'. The port 'kshell' also supports encryption. Previously, there was a specific port 'ekshell' for that purpose, a use which is now extinct. Instead, whenever an encrypted exchange is desired via the port 'kshell', client must prefix the string "-x " to the command string, when it is sent inbetween the remote user name and the local user name. In contrast, when the client computes the checksum for the AP-REQ authenticator, the string "-x " must not be included. Encryption porcedure under version KCMDV0.2 differs from that in the older protocol version. Under version KCMDV0.1, the ticket session key is put to use as encryption key, and only standard Kerberos encryption functions are usable. Thus it supports only 'des-cbc-crc', 'des-cbc-md4', 'des-cbc-md5', and does not allow use of initialisation vectors. As an example of encryption/decryption calls, the following Kerberos function prototype should be used : kerberos_encrypt (key, keyusage, in, out) (or kerberos_decrypt) To contrast, KCMDV0.2 can be used with all Kerberos encryption modes, i.e., 'des', '3des', 'aes', 'arcfour', and it uses an AP-REQ authenticator subkey. In opposition to KCMDV0.1, initialisation vectors are used. All encryption and descryption must be made using a cryptographic context. A typical coding example updates the context with an 'iv', then executes an encryption call : kerberos_init(ctx, iv, key, keyusage) kerberos_encrypt (ctx, in, out) For both protocols, default keyusage identity allowing 'des-cbc-md5', 'des-cbc-md4', 'des-cbc-crc', and 'des3-cbc-sha1' (the latter applicable only to KCMDV0.2) is identical : keyusage = 1026 KCMDV0.2 encryption modes, other than the four named above, specify distinct values for KEYUSAGE, unique to each encryption/decryption mode. In conclusion, 'eklogin' uses a single socket. It encrypts data "output 1" prior to sending, and it decrypts "input 1" received data. 'kshell' uses two sockets: one for transmitting data, and one for a side channel carrying 'stderr'. Thus there are four streams available : transmit : input 1 output 1 stderr : input 2 output 2 There is a key usage set for each mode. The values of each KEYUSAGE must be compatible between client and server side. An example with 'klogin', shows the client's "input 1" key usage to be identical to the server's "output 1" usage. I/O Client Server input 1 1028 1030 output 1 1030 1028 input 2 1032 1034 output 2 1034 1032 The stated key usages are for AES and ARCFOUR modes. KCMDV0.2 uses an IV (initialisation vector) with AES. Like for key usage, the client IV must correspond to the server IV. The IV size is equal to the blocksize of the chosen key type. All bytes of IV must be initialised too : I/O Client Server input 1 0 1 output 1 1 0 input 2 2 3 output 2 3 2 ARCFOUR mode does not use an IV. However, like mentioned before, a context must be used to keep the updating the sbox. A normal message for 'klogin' or 'kshell' is set up like this : (int32-length of message in MSB order) (message) In encrypted mode, the format is only slightly different : (int32-length of unencrypted message in MSB order) (encrypted message) Under KCMDV0.2, the encrypted message is create like this : encrypt ( (int32-length of message in MSB order) (message) ) A check on message size can be made in second version of the protocol. B.3.8 KCMDV0.3 -------------- This part only gives possible ways to extend the KCMD protocol. They should not be understood as some kind of "must have" in a future KCMD implementation. Extensions to KCMV0.2 can be imagined. For example, 'kshell' assumes there are no files of names like "-x *". I think the same thing can be assumed of terminal names for 'klogin'. So the client could add "-x " to the terminal type it transmits to the server, in order to indicate the desire to use encryption. Under this provision, there need only be one port shared by 'klogin' and 'eklogin', namely the IANA defined port number 543. Before encryption begins, 'kshell' passes the intended commands in the clear through the network. This could be considered insecure, once the user has decided to use encryption. It is not really a problem with 'klogin', because it just tells which terminal type to target. One could imagine, when the client intends to use encrypted mode, that the client side initially transmits a mundane "-x" and nothing else to either of 'klogin' and 'kshell', in place of either a command or a terminal type, respectively. Once encryption is in place, the client could send terminal type or command in a second, now encrypted exchange. The server could respond with a single null byte, saying that all is well, or respond with an error message, which already enjoys the added benefit of being encrypted. B.3.9 MIT/Heimdal authorization ------------------------------- This short part describes how MIT/Heimdal versions of Kerberos 5 check authorization of any user seeking to log in to a remote machine. The authorization stage begins by testing whether the file '.k5login' exists in the home directory of the remote user. If this file does not exist, then a valid authorization demands that the remote user's name must be the same as the name of the principal contained in the request AP-REQ. (This is the legacy 'basic' authorization.) Else, if the file is present, the serve first verifies that the remote user, or root, is the owner of '.k5login', then goes on to verify that the file is not readable by group, nor by world. If either fails, then the check fails entirely. If all is good so far, then each line of that file is examined, and each name read in is compared to the principal. If the principal is found listed somewhere in '.k5login', then authorization is successful. In the contrary case, the user is not admitted to the remote host as the requested remote user, a name that could have been derived to be the very same as in the principal itself. So someone, "user1" say, can remotely log in to the account of "user2", if the file '.k5login' is present in the home directory of "user2", and it is owned by "user2" or by root, and at the same time the name "user1" is listed in this file. shishi-1.0.3/configure.ac0000644000000000000000000003360514273600463012173 00000000000000# Process this file with autoconf to produce a configure script. # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. AC_PREREQ([2.64]) AC_INIT([GNU Shishi], m4_esyscmd([build-aux/git-version-gen .tarball-version]), [bug-shishi@gnu.org], [shishi]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) # Library code modified: REVISION++ # Interfaces changed/added/removed: CURRENT++ REVISION=0 # Interfaces added: AGE++ # Interfaces removed: AGE=0 AC_SUBST(LT_CURRENT, 1) AC_SUBST(LT_REVISION, 3) AC_SUBST(LT_AGE, 1) # Used when creating libshishi-XX.def. SOVERSION=`expr ${LT_CURRENT} - ${LT_AGE}` AC_SUBST(SOVERSION) AC_SUBST([MAJOR_VERSION], [`echo $PACKAGE_VERSION|cut -d. -f1`]) AC_SUBST([MINOR_VERSION], [`echo $PACKAGE_VERSION|cut -d. -f2`]) AC_SUBST([PATCH_VERSION], [`echo $PACKAGE_VERSION.0|cut -d. -f3|cut -d- -f1`]) AC_SUBST(NUMBER_VERSION, `printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION 2>/dev/null`) AC_MSG_NOTICE([$PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION $NUMBER_VERSION $LT_CURRENT:$LT_REVISION:$LT_AGE $DLL_VERSION]) AM_INIT_AUTOMAKE([1.13 -Wall -Wno-override]) AM_SILENT_RULES([yes]) AC_CONFIG_HEADERS(config.h) # Checks for header files. AC_PROG_CC gl_EARLY libgl_EARLY AM_PROG_AR AC_CHECK_HEADERS(termios.h pwd.h syslog.h arpa/nameser.h netinet/in6.h) AC_CHECK_HEADERS(resolv.h, , , [#include #include #ifdef HAVE_ARPA_NAMESER_H # include #endif ]) # Checks for programs. LT_INIT([win32-dll]) AM_MISSING_PROG(PERL, perl, $missing_dir) AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) AM_MISSING_PROG(ASN1PARSER, asn1Parser, $missing_dir) AM_MISSING_PROG(GENGETOPT, gengetopt, $missing_dir) AM_MISSING_PROG(DIA, dia, $missing_dir) # Internationalization. AM_GNU_GETTEXT([external], [need-ngettext]) AM_GNU_GETTEXT_VERSION([0.19.8]) # https://developer.gnome.org/gtk-doc-manual/stable/settingup_autoconf.html.en m4_ifdef([GTK_DOC_CHECK], [ GTK_DOC_CHECK([1.14],[--flavour no-tmpl]) ],[ AM_CONDITIONAL([ENABLE_GTK_DOC], false) ]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_UID_T AC_CHECK_DECLS(h_errno) # For gnulib stuff in gl/. with_libgcrypt=yes AC_DEFINE([OK_TO_USE_1S_CLOCK], 1, [Define to 1 to make gettime work.]) gl_INIT libgl_INIT AC_DEFINE([GNULIB_NO_VLA], 1, [Disable VLA usage in gettext.h.]) if test "$ac_cv_libgcrypt" != yes; then AC_MSG_ERROR([Cannot find libgcrypt]) fi # Checks for library functions. AC_CHECK_FUNCS(signal select ngettext gethostbyname getpwnam getuid res_query) AC_SEARCH_LIBS(socket, socket) AC_SEARCH_LIBS(gethostbyname, nsl) # BSD systems deliver res_query in libc. # Most of them do not even offer libresolv. if test "$ac_cv_func_res_query" != yes; then AC_LIB_HAVE_LINKFLAGS(resolv,, [ #include #include #include ], [res_query (0, 0, 0, 0, 0);]) # Check again, with newly acquired knowledge. if test "$ac_cv_libresolv" = yes; then AC_DEFINE([HAVE_RES_QUERY], 1, [Define to 1 if you have the res_query function.]) fi fi dnl Declare LIBRESOLV and LTLIBRESOLV in all cases. AC_SUBST(LIBRESOLV) AC_SUBST(LTLIBRESOLV) # Shishid needs a logging mechanism, and right now there is no # alternative to syslog. A 'fprintf(stderr,...)' mechanism may be # useful. AC_SEARCH_LIBS(syslog, syslog) AM_CONDITIONAL(ENABLE_SHISHID, test "$ac_cv_search_syslog" != "no") # Check for PAM AC_ARG_ENABLE(pam, AS_HELP_STRING([--disable-pam], [Don't use PAM even if available])) if test "$enable_pam" != "no"; then AC_CHECK_HEADERS([security/pam_appl.h security/pam_ext.h]) AC_CHECK_HEADERS([security/pam_modules.h security/openpam.h], [], [], [ #include #if HAVE_SECURITY_PAM_APPL_H #include #endif ]) AC_CHECK_HEADERS(security/_pam_macros.h) enable_pam=$ac_cv_header_security_pam_modules_h fi if test "$enable_pam" != "no"; then PAM_SHISHI=pam_shishi else AC_MSG_WARN([[The Shishi PAM module will not be built.]]) fi AC_SUBST(PAM_SHISHI) AC_MSG_CHECKING([if PAM should be used]) AC_MSG_RESULT($enable_pam) AC_SUBST(PAMDIR, "\$(exec_prefix)/lib/security") AC_ARG_WITH(pam-dir, AS_HELP_STRING([--with-pam-dir=DIR], [Where to install PAM module [[PREFIX/lib/security]]]), [case "${withval}" in /*) PAMDIR="${withval}";; ./*|../*) AC_MSG_ERROR(Bad value for --with-pam-dir);; *) PAMDIR="\$(exec_prefix)/lib/${withval}";; esac]) AC_MSG_NOTICE([PAM installation path $PAMDIR]) # Check for IPv6 AC_ARG_ENABLE(ipv6, AS_HELP_STRING([--disable-ipv6], [Don't use IPv6 even if available])) if test "$enable_ipv6" != "no"; then gl_SOCKET_FAMILIES enable_ipv6=$gl_cv_socket_ipv6 fi if test "$enable_ipv6" != "no"; then AC_DEFINE([WITH_IPV6], 1, [Define to 1 if you want IPv6.]) else AC_MSG_WARN([[IPv6 support is disabled.]]) fi AC_MSG_CHECKING([if IPv6 should be used]) AC_MSG_RESULT($enable_ipv6) # Check for idn AC_ARG_WITH(stringprep, AS_HELP_STRING([--without-stringprep], [don't use libidn for string processing even if available]), stringprep=$withval, stringprep=yes) if test "$stringprep" != "no"; then AC_LIB_HAVE_LINKFLAGS(idn,, [#include ], [stringprep_check_version (0);]) fi if test "$ac_cv_libidn" != yes; then stringprep=no AC_MSG_WARN([Libidn not found. String process disabled.]) fi AC_MSG_CHECKING([if String processing support via Libidn should be built]) AC_MSG_RESULT($stringprep) # Check for libtasn1 AC_LIB_HAVE_LINKFLAGS(tasn1,, [#include ], [asn1_strerror (0);]) if test "$ac_cv_libtasn1" != "yes"; then AC_MSG_ERROR([Libtasn1 not found.]) fi # Check for gnutls. AC_ARG_ENABLE(starttls, AS_HELP_STRING([--disable-starttls], [disable non-standard STARTTLS]), starttls=$enableval, starttls=yes) if test "$starttls" != "no"; then AC_LIB_HAVE_LINKFLAGS(gnutls,, [#include ], [gnutls_check_version (0);]) if test "$ac_cv_libgnutls" != yes; then starttls=no AC_MSG_WARN([GnuTLS not found. STARTTLS disabled.]) else starttls=yes fi fi AC_MSG_CHECKING([if non-standard STARTTLS support should be enabled]) AC_MSG_RESULT($starttls) if test "$starttls" != "no"; then AC_DEFINE([USE_STARTTLS], 1, [Define to 1 if you want STARTTLS.]) fi AM_CONDITIONAL(STARTTLS, test "$starttls" != "no") # Let people enable/disable various encryption/checksum types. # DES AC_ARG_ENABLE(des, AS_HELP_STRING([--disable-des], [disable DES related encryption/checksum types]), enable_des=$enableval, enable_des=yes) AM_CONDITIONAL(DES, test "$enable_des" != "no") if test "$enable_des" != "no"; then AC_DEFINE([WITH_DES], 1, [Define to 1 if you want DES {e,cksum}types.]) fi AC_MSG_CHECKING([if DES related encryption/checksum types should be used]) AC_MSG_RESULT($enable_des) # 3DES AC_ARG_ENABLE(3des, AS_HELP_STRING([--disable-3des], [disable 3DES encryption/checksum type]), enable_3des=$enableval, enable_3des=yes) AM_CONDITIONAL(DES3, test "$enable_3des" != "no") if test "$enable_3des" != "no"; then AC_DEFINE([WITH_3DES], 1, [Define to 1 if you want 3DES {e,cksum}type.]) fi AC_MSG_CHECKING([if 3DES encryption/checksum type should be used]) AC_MSG_RESULT($enable_3des) # AES AC_ARG_ENABLE(aes, AS_HELP_STRING([--disable-aes], [disable AES encryption/checksum types]), enable_aes=$enableval, enable_aes=yes) AM_CONDITIONAL(AES, test "$enable_aes" != "no") if test "$enable_aes" != "no"; then AC_DEFINE([WITH_AES], 1, [Define to 1 if you want AES {e,cksum}types.]) fi AC_MSG_CHECKING([if AES encryption/checksum types should be used]) AC_MSG_RESULT($enable_aes) # MD: MD4/MD5 AC_ARG_ENABLE(md, AS_HELP_STRING([--disable-md], [disable unkeyed MD4/MD5 checksum types]), enable_md=$enableval, enable_md=yes) AM_CONDITIONAL(MD, test "$enable_md" != "no") if test "$enable_md" != "no"; then AC_DEFINE([WITH_MD], 1, [Define to 1 if you want MD cksumtypes.]) fi AC_MSG_CHECKING([if unkeyed MD checksum types should be used]) AC_MSG_RESULT($enable_md) # NULL-encryption AC_ARG_ENABLE(null, AS_HELP_STRING([--disable-null], [disable dummy NULL encryption/checksum type]), enable_null=$enableval, enable_null=yes) AM_CONDITIONAL(NULL, test "$enable_null" != "no") if test "$enable_null" != "no"; then AC_DEFINE([WITH_NULL], 1, [Define to 1 if you want NULL {e,cksum}type.]) fi AC_MSG_CHECKING([if dummy NULL encryption/checksum type should be used]) AC_MSG_RESULT($enable_null) # ARCFOUR AC_ARG_ENABLE(arcfour, AS_HELP_STRING([--disable-arcfour], [disable ARCFOUR encryption/checksum type]), enable_arcfour=$enableval, enable_arcfour=yes) AM_CONDITIONAL(ARCFOUR, test "$enable_arcfour" != "no") if test "$enable_arcfour" != "no"; then AC_DEFINE([WITH_ARCFOUR], 1, [Define to 1 if you want ARCFOUR {e,cksum}type.]) fi AC_MSG_CHECKING([if ARCFOUR encryption/checksum type should be used]) AC_MSG_RESULT($enable_arcfour) # Location of configuration directory. AC_SUBST(CONFDIR, "\$(sysconfdir)/\$(PACKAGE)") AC_ARG_WITH(conf-dir, AS_HELP_STRING([--with-conf-dir=DIR], [store configuration in DIR [[PREFIX/etc/shishi]]]), [case "${withval}" in /*) CONFDIR="${withval}";; ./*|../*) AC_MSG_ERROR(Bad value for --with-conf-dir);; *) CONFDIR="\$(sysconfdir)/${withval}";; esac]) AC_MSG_NOTICE([configuration files will be stored in $CONFDIR]) # Location of skeleton directory. AC_SUBST(SKELDIR, "\$(sysconfdir)/\$(PACKAGE)") AC_ARG_WITH(skel-dir, AS_HELP_STRING([--with-skel-dir=DIR], [store template cfg in DIR [[PREFIX/etc/shishi]]]), [case "${withval}" in /*) SKELDIR="${withval}";; ./*|../*) AC_MSG_ERROR(Bad value for --with-skel-dir);; *) SKELDIR="\$(sysconfdir)/${withval}";; esac]) AC_MSG_NOTICE([user template configuration file in $SKELDIR]) # Location of host key lookup file. AC_SUBST(KEYDIR, "\$(sysconfdir)/\$(PACKAGE)") AC_ARG_WITH(key-dir, AS_HELP_STRING([--with-key-dir=DIR], [store host keys in DIR [[PREFIX/etc/shishi]]]), [case "${withval}" in /*) KEYDIR="${withval}";; ./*|../*) AC_MSG_ERROR(Bad value for --with-key-dir);; *) KEYDIR="\$(sysconfdir)/${withval}";; esac]) AC_MSG_NOTICE([host keys will be stored in $KEYDIR]) # Location of Shisa database. AC_SUBST(DBDIR, "\$(localstatedir)/\$(PACKAGE)") AC_ARG_WITH(db-dir, AS_HELP_STRING([--with-db-dir=DIR], [Shisa database in DIR [[PREFIX/var/shishi]])]), [case "${withval}" in /*) DBDIR="${withval}";; ./*|../*) AC_MSG_ERROR(Bad value for --with-db-dir);; *) DBDIR="\$(localstatedir)/${withval}";; esac]) AC_MSG_NOTICE([user database root path $DBDIR]) # Some select fixes. AC_DEFINE([GNULIB_XALLOC_DIE], [1], [Make xalloc.h declare prototype for xalloc_die.]) AC_DEFINE([xalloc_die], [shishi_xalloc_die], [Fix namespace of xalloc_die.]) # Activation of additional compiler warnings. AC_ARG_ENABLE([gcc-warnings], [AS_HELP_STRING([--enable-gcc-warnings], [turn on lots of GCC warnings (for developers)])], [case $enableval in yes|no) ;; *) AC_MSG_ERROR([bad value $enableval for gcc-warnings option]) ;; esac gl_gcc_warnings=$enableval], [gl_gcc_warnings=no] ) if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([], [WERROR_CFLAGS]) # Put -Werror here, via cfg.mk. nw="$nw -Wsystem-headers" # Ignore errors in system headers nw="$nw -Wlogical-op" # Too many false positives nw="$nw -Wunsafe-loop-optimizations" # Too many warnings for now nw="$nw -Wstrict-overflow" # Don't know how to avoid nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=format" # Is it worth using attributes? nw="$nw -Wsuggest-attribute=malloc" # Is it worth using attributes? gl_MANYWARN_ALL_GCC([ws]) gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw]) for w in $ws; do gl_WARN_ADD([$w]) done # Disable some, but evaluate these as the project moves on. gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-implicit-fallthrough]) # Too useful not to use fi AC_CONFIG_FILES([ Makefile db/Makefile doc/Makefile doc/cyclo/Makefile doc/reference/Makefile examples/Makefile extra/Makefile extra/pam_shishi/Makefile extra/rsh-redone/Makefile lib/Makefile lib/gl/Makefile lib/shishi-version.h po/Makefile.in shisa.conf shishi.conf shishi.pc shishi.skel src/Makefile src/gl/Makefile tests/Makefile ]) AC_OUTPUT AC_MSG_NOTICE([summary of build options: Version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE Host type: ${host} Install prefix: ${prefix} Compiler: ${CC} Warning flags: errors: ${WERROR_CFLAGS} warnings: ${WARN_CFLAGS} Library types: Shared=${enable_shared}, Static=${enable_static} PAM module: ${enable_pam} Valgrind: ${VALGRIND:-no} Version script: $have_ld_version_script ]) shishi-1.0.3/gtk-doc.make0000644000000000000000000002507214273615155012077 00000000000000# -*- mode: makefile -*- # # gtk-doc.make - make rules for gtk-doc # Copyright (C) 2003 James Henstridge # 2004-2007 Damon Chaplin # 2007-2017 Stefan Sauer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . #################################### # Everything below here is generic # #################################### if GTK_DOC_USE_LIBTOOL GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = $(LIBTOOL) --mode=execute else GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) GTKDOC_RUN = endif # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH, when it comes to # whether a source that is a target of one rule is then # searched for in VPATH/GPATH. # GPATH = $(srcdir) TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) SETUP_FILES = \ $(content_files) \ $(expand_content_files) \ $(DOC_MAIN_SGML_FILE) \ $(DOC_MODULE)-sections.txt \ $(DOC_MODULE)-overrides.txt EXTRA_DIST = \ $(HTML_IMAGES) \ $(SETUP_FILES) DOC_STAMPS=setup-build.stamp scan-build.stamp sgml-build.stamp \ html-build.stamp pdf-build.stamp \ sgml.stamp html.stamp pdf.stamp SCANOBJ_FILES = \ $(DOC_MODULE).actions \ $(DOC_MODULE).args \ $(DOC_MODULE).hierarchy \ $(DOC_MODULE).interfaces \ $(DOC_MODULE).prerequisites \ $(DOC_MODULE).signals REPORT_FILES = \ $(DOC_MODULE)-undocumented.txt \ $(DOC_MODULE)-undeclared.txt \ $(DOC_MODULE)-unused.txt gtkdoc-check.test: Makefile $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \ echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \ chmod +x $@ CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test if GTK_DOC_BUILD_HTML HTML_BUILD_STAMP=html-build.stamp else HTML_BUILD_STAMP= endif if GTK_DOC_BUILD_PDF PDF_BUILD_STAMP=pdf-build.stamp else PDF_BUILD_STAMP= endif all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) .PHONY: all-gtk-doc if ENABLE_GTK_DOC all-local: all-gtk-doc endif docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) $(REPORT_FILES): sgml-build.stamp #### setup #### GTK_DOC_V_SETUP=$(GTK_DOC_V_SETUP_@AM_V@) GTK_DOC_V_SETUP_=$(GTK_DOC_V_SETUP_@AM_DEFAULT_V@) GTK_DOC_V_SETUP_0=@echo " DOC Preparing build"; setup-build.stamp: -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ files=`echo $(SETUP_FILES) $(DOC_MODULE).types`; \ if test "x$$files" != "x" ; then \ for file in $$files ; do \ destdir=`dirname $(abs_builddir)/$$file`; \ test -d "$$destdir" || mkdir -p "$$destdir"; \ test -f $(abs_srcdir)/$$file && \ cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \ done; \ fi; \ fi $(AM_V_at)touch setup-build.stamp #### scan #### GTK_DOC_V_SCAN=$(GTK_DOC_V_SCAN_@AM_V@) GTK_DOC_V_SCAN_=$(GTK_DOC_V_SCAN_@AM_DEFAULT_V@) GTK_DOC_V_SCAN_0=@echo " DOC Scanning header files"; GTK_DOC_V_INTROSPECT=$(GTK_DOC_V_INTROSPECT_@AM_V@) GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_@AM_DEFAULT_V@) GTK_DOC_V_INTROSPECT_0=@echo " DOC Introspecting gobjects"; scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(GTK_DOC_V_SCAN)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ scanobj_options=""; \ gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ scanobj_options="--verbose"; \ fi; \ fi; \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \ gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \ else \ for i in $(SCANOBJ_FILES) ; do \ test -f $$i || touch $$i ; \ done \ fi $(AM_V_at)touch scan-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp @true #### xml #### GTK_DOC_V_XML=$(GTK_DOC_V_XML_@AM_V@) GTK_DOC_V_XML_=$(GTK_DOC_V_XML_@AM_DEFAULT_V@) GTK_DOC_V_XML_0=@echo " DOC Building XML"; sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files) xml/gtkdocentities.ent $(GTK_DOC_V_XML)_source_dir='' ; \ for i in $(DOC_SOURCE_DIR) ; do \ _source_dir="$${_source_dir} --source-dir=$$i" ; \ done ; \ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) $(AM_V_at)touch sgml-build.stamp sgml.stamp: sgml-build.stamp @true $(DOC_MAIN_SGML_FILE): sgml-build.stamp @true xml/gtkdocentities.ent: Makefile $(GTK_DOC_V_XML)$(MKDIR_P) $(@D) && ( \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ echo ""; \ ) > $@ #### html #### GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_@AM_V@) GTK_DOC_V_HTML_=$(GTK_DOC_V_HTML_@AM_DEFAULT_V@) GTK_DOC_V_HTML_0=@echo " DOC Building HTML"; GTK_DOC_V_XREF=$(GTK_DOC_V_XREF_@AM_V@) GTK_DOC_V_XREF_=$(GTK_DOC_V_XREF_@AM_DEFAULT_V@) GTK_DOC_V_XREF_0=@echo " DOC Fixing cross-references"; html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \ mkhtml_options=""; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ mkhtml_options="$$mkhtml_options --verbose"; \ fi; \ fi; \ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ if test "$$?" = "0"; then \ mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \ fi; \ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@test "x$(HTML_IMAGES)" = "x" || \ for file in $(HTML_IMAGES) ; do \ test -f $(abs_srcdir)/$$file && cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ test -f $(abs_builddir)/$$file && cp $(abs_builddir)/$$file $(abs_builddir)/html; \ test -f $$file && cp $$file $(abs_builddir)/html; \ done; $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) $(AM_V_at)touch html-build.stamp #### pdf #### GTK_DOC_V_PDF=$(GTK_DOC_V_PDF_@AM_V@) GTK_DOC_V_PDF_=$(GTK_DOC_V_PDF_@AM_DEFAULT_V@) GTK_DOC_V_PDF_0=@echo " DOC Building PDF"; pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) $(expand_content_files) $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \ mkpdf_options=""; \ gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \ if test "$$?" = "0"; then \ if test "x$(V)" = "x1"; then \ mkpdf_options="$$mkpdf_options --verbose"; \ fi; \ fi; \ if test "x$(HTML_IMAGES)" != "x"; then \ for img in $(HTML_IMAGES); do \ part=`dirname $$img`; \ echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \ if test $$? != 0; then \ mkpdf_options="$$mkpdf_options --imgdir=$$part"; \ fi; \ done; \ fi; \ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) $(AM_V_at)touch pdf-build.stamp ############## clean-local: @rm -f *~ *.bak @rm -rf .libs @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \ rm -f $(DOC_MODULE).types; \ fi @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-sections" ; then \ rm -f $(DOC_MODULE)-sections.txt; \ fi distclean-local: @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ rm -f $(SETUP_FILES) $(DOC_MODULE).types; \ fi maintainer-clean-local: @rm -rf xml html install-data-local: @installfiles=`echo $(builddir)/html/*`; \ if test "$$installfiles" = '$(builddir)/html/*'; \ then echo 1>&2 'Nothing to install' ; \ else \ if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ $(mkinstalldirs) $${installdir} ; \ for i in $$installfiles; do \ echo ' $(INSTALL_DATA) '$$i ; \ $(INSTALL_DATA) $$i $${installdir}; \ done; \ if test -n "$(DOC_MODULE_VERSION)"; then \ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ fi; \ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ fi uninstall-local: @if test -n "$(DOC_MODULE_VERSION)"; then \ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ else \ installdir="$(DESTDIR)$(TARGET_DIR)"; \ fi; \ rm -rf $${installdir} # # Require gtk-doc when making dist # if HAVE_GTK_DOC dist-check-gtkdoc: docs else dist-check-gtkdoc: @echo "*** gtk-doc is needed to run 'make dist'. ***" @echo "*** gtk-doc was not found when 'configure' ran. ***" @echo "*** please install gtk-doc and rerun 'configure'. ***" @false endif dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local @mkdir $(distdir)/html @cp ./html/* $(distdir)/html @-cp ./$(DOC_MODULE).pdf $(distdir)/ @-cp ./$(DOC_MODULE).types $(distdir)/ @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/ @cd $(distdir) && rm -f $(DISTCLEANFILES) @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html .PHONY : dist-hook-local docs shishi-1.0.3/.tarball-version0000644000000000000000000000000614273616165013005 000000000000001.0.3 shishi-1.0.3/aclocal.m40000644000000000000000000014525414273615646011562 00000000000000# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, [m4_warning([this file was generated for autoconf 2.71. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # Copyright (C) 2011-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_AR([ACT-IF-FAIL]) # ------------------------- # Try to determine the archiver interface, and trigger the ar-lib wrapper # if it is needed. If the detection of archiver interface fails, run # ACT-IF-FAIL (default is to abort configure with a proper error message). AC_DEFUN([AM_PROG_AR], [AC_BEFORE([$0], [LT_INIT])dnl AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([ar-lib])dnl AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) : ${AR=ar} AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], [AC_LANG_PUSH([C]) am_cv_ar_interface=ar AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([am_ar_try]) if test "$ac_status" -eq 0; then am_cv_ar_interface=ar else am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([am_ar_try]) if test "$ac_status" -eq 0; then am_cv_ar_interface=lib else am_cv_ar_interface=unknown fi fi rm -f conftest.lib libconftest.a ]) AC_LANG_POP([C])]) case $am_cv_ar_interface in ar) ;; lib) # Microsoft lib, so override with the ar-lib wrapper script. # FIXME: It is wrong to rewrite AR. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__AR in this case, # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something # similar. AR="$am_aux_dir/ar-lib $AR" ;; unknown) m4_default([$1], [AC_MSG_ERROR([could not determine $AR interface])]) ;; esac AC_SUBST([AR])dnl ]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_COND_IF -*- Autoconf -*- # Copyright (C) 2008-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_COND_IF # _AM_COND_ELSE # _AM_COND_ENDIF # -------------- # These macros are only used for tracing. m4_define([_AM_COND_IF]) m4_define([_AM_COND_ELSE]) m4_define([_AM_COND_ENDIF]) # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE]) # --------------------------------------- # If the shell condition COND is true, execute IF-TRUE, otherwise execute # IF-FALSE. Allow automake to learn about conditional instantiating macros # (the AC_CONFIG_FOOS). AC_DEFUN([AM_COND_IF], [m4_ifndef([_AM_COND_VALUE_$1], [m4_fatal([$0: no such condition "$1"])])dnl _AM_COND_IF([$1])dnl if test -z "$$1_TRUE"; then : m4_n([$2])[]dnl m4_ifval([$3], [_AM_COND_ELSE([$1])dnl else $3 ])dnl _AM_COND_ENDIF([$1])dnl fi[]dnl ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking is enabled. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in # order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([src/gl/m4/autobuild.m4]) m4_include([src/gl/m4/double-slash-root.m4]) m4_include([src/gl/m4/error.m4]) m4_include([src/gl/m4/getopt.m4]) m4_include([src/gl/m4/getprogname.m4]) m4_include([src/gl/m4/gnulib-comp.m4]) m4_include([src/gl/m4/ld-output-def.m4]) m4_include([src/gl/m4/ld-version-script.m4]) m4_include([src/gl/m4/locale_h.m4]) m4_include([src/gl/m4/manywarnings.m4]) m4_include([src/gl/m4/nocrash.m4]) m4_include([src/gl/m4/valgrind-tests.m4]) m4_include([src/gl/m4/version-etc.m4]) m4_include([src/gl/m4/warnings.m4]) m4_include([lib/gl/m4/00gnulib.m4]) m4_include([lib/gl/m4/__inline.m4]) m4_include([lib/gl/m4/absolute-header.m4]) m4_include([lib/gl/m4/af_alg.m4]) m4_include([lib/gl/m4/alloca.m4]) m4_include([lib/gl/m4/arpa_inet_h.m4]) m4_include([lib/gl/m4/base64.m4]) m4_include([lib/gl/m4/bison.m4]) m4_include([lib/gl/m4/byteswap.m4]) m4_include([lib/gl/m4/calloc.m4]) m4_include([lib/gl/m4/clock_time.m4]) m4_include([lib/gl/m4/close.m4]) m4_include([lib/gl/m4/dup2.m4]) m4_include([lib/gl/m4/eealloc.m4]) m4_include([lib/gl/m4/environ.m4]) m4_include([lib/gl/m4/errno_h.m4]) m4_include([lib/gl/m4/explicit_bzero.m4]) m4_include([lib/gl/m4/exponentd.m4]) m4_include([lib/gl/m4/extensions.m4]) m4_include([lib/gl/m4/extern-inline.m4]) m4_include([lib/gl/m4/fcntl-o.m4]) m4_include([lib/gl/m4/fcntl.m4]) m4_include([lib/gl/m4/fcntl_h.m4]) m4_include([lib/gl/m4/fflush.m4]) m4_include([lib/gl/m4/flexmember.m4]) m4_include([lib/gl/m4/float_h.m4]) m4_include([lib/gl/m4/fopen.m4]) m4_include([lib/gl/m4/fpurge.m4]) m4_include([lib/gl/m4/freading.m4]) m4_include([lib/gl/m4/free.m4]) m4_include([lib/gl/m4/fseek.m4]) m4_include([lib/gl/m4/fseeko.m4]) m4_include([lib/gl/m4/fstat.m4]) m4_include([lib/gl/m4/ftell.m4]) m4_include([lib/gl/m4/ftello.m4]) m4_include([lib/gl/m4/gc-des.m4]) m4_include([lib/gl/m4/gc-hmac-md5.m4]) m4_include([lib/gl/m4/gc-hmac-sha1.m4]) m4_include([lib/gl/m4/gc-md4.m4]) m4_include([lib/gl/m4/gc-md5.m4]) m4_include([lib/gl/m4/gc.m4]) m4_include([lib/gl/m4/getaddrinfo.m4]) m4_include([lib/gl/m4/getdelim.m4]) m4_include([lib/gl/m4/getdomainname.m4]) m4_include([lib/gl/m4/getdtablesize.m4]) m4_include([lib/gl/m4/gethostname.m4]) m4_include([lib/gl/m4/getline.m4]) m4_include([lib/gl/m4/getpass.m4]) m4_include([lib/gl/m4/getrandom.m4]) m4_include([lib/gl/m4/getsubopt.m4]) m4_include([lib/gl/m4/gettime.m4]) m4_include([lib/gl/m4/gettimeofday.m4]) m4_include([lib/gl/m4/gl-openssl.m4]) m4_include([lib/gl/m4/gnulib-common.m4]) m4_include([lib/gl/m4/gnulib-comp.m4]) m4_include([lib/gl/m4/host-cpu-c-abi.m4]) m4_include([lib/gl/m4/hostent.m4]) m4_include([lib/gl/m4/include_next.m4]) m4_include([lib/gl/m4/inet_ntop.m4]) m4_include([lib/gl/m4/intmax_t.m4]) m4_include([lib/gl/m4/inttypes.m4]) m4_include([lib/gl/m4/inttypes_h.m4]) m4_include([lib/gl/m4/largefile.m4]) m4_include([lib/gl/m4/lib-ld.m4]) m4_include([lib/gl/m4/lib-link.m4]) m4_include([lib/gl/m4/lib-prefix.m4]) m4_include([lib/gl/m4/libgcrypt.m4]) m4_include([lib/gl/m4/limits-h.m4]) m4_include([lib/gl/m4/lseek.m4]) m4_include([lib/gl/m4/malloc.m4]) m4_include([lib/gl/m4/malloca.m4]) m4_include([lib/gl/m4/md4.m4]) m4_include([lib/gl/m4/md5.m4]) m4_include([lib/gl/m4/memchr.m4]) m4_include([lib/gl/m4/memxor.m4]) m4_include([lib/gl/m4/minmax.m4]) m4_include([lib/gl/m4/mktime.m4]) m4_include([lib/gl/m4/mmap-anon.m4]) m4_include([lib/gl/m4/mode_t.m4]) m4_include([lib/gl/m4/msvc-inval.m4]) m4_include([lib/gl/m4/msvc-nothrow.m4]) m4_include([lib/gl/m4/multiarch.m4]) m4_include([lib/gl/m4/netdb_h.m4]) m4_include([lib/gl/m4/netinet_in_h.m4]) m4_include([lib/gl/m4/nstrftime.m4]) m4_include([lib/gl/m4/off_t.m4]) m4_include([lib/gl/m4/open-cloexec.m4]) m4_include([lib/gl/m4/open-slash.m4]) m4_include([lib/gl/m4/open.m4]) m4_include([lib/gl/m4/parse-datetime.m4]) m4_include([lib/gl/m4/pathmax.m4]) m4_include([lib/gl/m4/printf.m4]) m4_include([lib/gl/m4/rawmemchr.m4]) m4_include([lib/gl/m4/read-file.m4]) m4_include([lib/gl/m4/readlink.m4]) m4_include([lib/gl/m4/realloc.m4]) m4_include([lib/gl/m4/reallocarray.m4]) m4_include([lib/gl/m4/select.m4]) m4_include([lib/gl/m4/servent.m4]) m4_include([lib/gl/m4/setenv.m4]) m4_include([lib/gl/m4/sha1.m4]) m4_include([lib/gl/m4/signal_h.m4]) m4_include([lib/gl/m4/size_max.m4]) m4_include([lib/gl/m4/snprintf.m4]) m4_include([lib/gl/m4/socketlib.m4]) m4_include([lib/gl/m4/sockets.m4]) m4_include([lib/gl/m4/socklen.m4]) m4_include([lib/gl/m4/sockpfaf.m4]) m4_include([lib/gl/m4/ssize_t.m4]) m4_include([lib/gl/m4/stat-time.m4]) m4_include([lib/gl/m4/stat.m4]) m4_include([lib/gl/m4/stdalign.m4]) m4_include([lib/gl/m4/stdarg.m4]) m4_include([lib/gl/m4/stdbool.m4]) m4_include([lib/gl/m4/stddef_h.m4]) m4_include([lib/gl/m4/stdint.m4]) m4_include([lib/gl/m4/stdint_h.m4]) m4_include([lib/gl/m4/stdio_h.m4]) m4_include([lib/gl/m4/stdlib_h.m4]) m4_include([lib/gl/m4/strcase.m4]) m4_include([lib/gl/m4/strchrnul.m4]) m4_include([lib/gl/m4/strdup.m4]) m4_include([lib/gl/m4/strerror.m4]) m4_include([lib/gl/m4/string_h.m4]) m4_include([lib/gl/m4/strings_h.m4]) m4_include([lib/gl/m4/strndup.m4]) m4_include([lib/gl/m4/strnlen.m4]) m4_include([lib/gl/m4/strtok_r.m4]) m4_include([lib/gl/m4/strverscmp.m4]) m4_include([lib/gl/m4/sys_random_h.m4]) m4_include([lib/gl/m4/sys_select_h.m4]) m4_include([lib/gl/m4/sys_socket_h.m4]) m4_include([lib/gl/m4/sys_stat_h.m4]) m4_include([lib/gl/m4/sys_time_h.m4]) m4_include([lib/gl/m4/sys_types_h.m4]) m4_include([lib/gl/m4/sys_uio_h.m4]) m4_include([lib/gl/m4/time_h.m4]) m4_include([lib/gl/m4/time_r.m4]) m4_include([lib/gl/m4/time_rz.m4]) m4_include([lib/gl/m4/timegm.m4]) m4_include([lib/gl/m4/timespec.m4]) m4_include([lib/gl/m4/tm_gmtoff.m4]) m4_include([lib/gl/m4/tzset.m4]) m4_include([lib/gl/m4/ungetc.m4]) m4_include([lib/gl/m4/unistd_h.m4]) m4_include([lib/gl/m4/vasnprintf.m4]) m4_include([lib/gl/m4/vasprintf.m4]) m4_include([lib/gl/m4/warn-on-use.m4]) m4_include([lib/gl/m4/wchar_h.m4]) m4_include([lib/gl/m4/wchar_t.m4]) m4_include([lib/gl/m4/wint_t.m4]) m4_include([lib/gl/m4/xalloc.m4]) m4_include([lib/gl/m4/xsize.m4]) m4_include([lib/gl/m4/xstrndup.m4]) m4_include([lib/gl/m4/xvasprintf.m4]) m4_include([lib/gl/m4/year2038.m4]) m4_include([lib/gl/m4/zzgnulib.m4]) m4_include([m4/gettext.m4]) m4_include([m4/gtk-doc.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/nls.m4]) m4_include([m4/pkg.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) shishi-1.0.3/shishi.pc.in0000644000000000000000000000134014273600463012114 00000000000000# Process this file with autoconf to produce a pkg-config metadata file. # Copyright 2002-2022 Simon Josefsson # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: Shishi Description: Implementation of RFC 1510(bis). Version: @VERSION@ Libs: -L${libdir} -lshishi Cflags: -I${includedir} shishi-1.0.3/README0000644000000000000000000000255614273610054010563 00000000000000# Shishi README -- Important introductory notes. Shishi implements the Kerberos network authentication system. Shishi can be used to authenticate users in distributed systems, and is most often used via GSS-API for SSH or via SASL for IMAP/POP3. The [Shishi web page](https://www.gnu.org/software/shishi/) provides current information about the project. # Support If you need help to use Generic Security Service, or wish to help others, you are invited to join our mailing list help-gss@gnu.org, see . # License The library, applications and self tests (lib/, db/, src/, tests/) are licensed under the GNU General Public License license version 3 or later (see COPYING), and the documentation (doc/) is licensed under the GNU Free Documentation License version 1.3 or later. Third party files (e.g., lib/gl/ or src/gl/) are distributed here for convenience, and they have their own respective licenses. For any copyright year range specified as YYYY-ZZZZ in this package note that the range specifies every single year in that closed interval. ---------------------------------------------------------------------- Copyright (C) 2002-2022 Simon Josefsson Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. shishi-1.0.3/Makefile.am0000644000000000000000000000471514273600463011741 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --without-libgcrypt EXTRA_DIST = cfg.mk maint.mk SUBDIRS = po lib db src tests doc extra examples ACLOCAL_AMFLAGS = -I m4 -I lib/gl/m4 -I src/gl/m4 pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = shishi.pc confdir = $(CONFDIR) conf_DATA = shishi.conf shisa.conf skeldir = $(SKELDIR) skel_DATA = shishi.skel # git-version-gen EXTRA_DIST += $(top_srcdir)/.version BUILT_SOURCES = $(top_srcdir)/.version $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ dist-hook: gen-ChangeLog echo $(VERSION) > $(distdir)/.tarball-version .PHONY: gen-ChangeLog gen-ChangeLog: $(AM_V_GEN)if test -d .git; then \ $(top_srcdir)/build-aux/gitlog-to-changelog > \ $(distdir)/cl-t && \ { rm -f $(distdir)/ChangeLog && \ mv $(distdir)/cl-t $(distdir)/ChangeLog; } \ fi distuninstallcheck_listfiles = find . -type f -print | grep -v -e shishi.keys -e 0.key install-data-hook: @echo Initializing database and creating host key... if test ! -d $(DESTDIR)$(DBDIR); then \ if mkdir -m 0700 -p $(DESTDIR)$(DBDIR); then \ if test ! -f $(DESTDIR)$(KEYDIR)/shishi.keys; then \ if $(DESTDIR)$(bindir)/shisa$(EXEEXT) -a > \ $(DESTDIR)$(KEYDIR)/shishi.keys; then \ echo Successfully created database and host key.; \ else \ echo Unable to create database, see $(DESTDIR)$(KEYDIR)/shishi.keys.; \ fi; \ else \ echo Key file $(DESTDIR)$(KEYDIR)/shishi.keys already exist.; \ fi; \ else \ echo Could not create directory root$(DESTDIR)$(DBDIR).; \ fi; \ else \ echo Database root $(DESTDIR)$(DBDIR) already exist.; \ fi shishi-1.0.3/shishi.skel.in0000644000000000000000000001225214273600463012454 00000000000000# User configuration file for Shishi @VERSION@ # Copyright 2002-2022 Simon Josefsson # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This file is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Unless you you specify which configuration file to use (with the # commandline option "--configuration-file filename"), Shishi uses the # file $HOME/.shishi/config by default. Note that the system # configuration file is read before this file. Settings specified # here overrides those specified in the system configuration file. # # An option file can contain all long options which are # available in Shishi. If the first non white space character of # a line is a '#', this line is ignored. Empty lines are also # ignored. # # See the manual for a list of options. # Read MIT or Heimdal configuration file for the following parameters: # default-realm # realm-kdc # server-realm # kdc-timeout # kdc-retries # You can override these values by specifying alternate values below. # Not implemented yet. #read-krb5conf=/etc/krb5.conf # Specify the default realm, by default the hostname of the host is used. #default-realm JOSEFSSON.ORG # Specify the default principal, by default the login username is used. #default-principal jas # Specify which encryption types client asks server to respond in # during AS/TGS exchanges. List valid encryption types, in preference # order. Supported algorithms include aes256-cts-hmac-sha1-96, # aes128-cts-hmac-sha1-96, des3-cbc-sha1-kd, des-cbc-md5, des-cbc-md4, # des-cbc-crc and null. This option also indicates which encryption # types are accepted by the client when receiving the response. Note # that the preference order is not cryptographically protected, so a # man in the middle can modify the order without being detected. # Thus, only specify encryption types you trust completely here. The # default only includes aes256-cts-hmac-sha1-96, as suggested by # RFC1510bis. #client-kdc-etypes=aes256-cts-hmac-sha1-96 des3-cbc-sha1-kd des-cbc-md5 # Enable verbose library messages. #verbose #verbose-asn1 #verbose-noise #verbose-crypto #verbose-crypto-noise # Specify KDC addresses for realms. # Value is REALM,KDCADDRESS[/TRANSPORT][,KDCADDRESS[/TRANSPORT]...] # KDCADDRESS is the hostname or IP address of KDC. # Optional TRANSPORT is "udp" for UDP, "tcp" for TCP, and "tls" for TLS # connections. By default UDP is tried first, and TCP used as a # fallback if the KRB_ERR_RESPONSE_TOO_BIG error is received. If not # specified, Shishi tries to locate the KDC using SRV RRs, which is # recommended. This option should normally only be used during # experiments, to access badly maintained realms, or to make sure # you are not vulnerable to DNS redirection attacks. #realm-kdc=JOSEFSSON.ORG,ristretto.josefsson.org # Specify realm for servers. # Value is REALM,SERVERREGEXP[,SERVERREGEXP...] # SERVERREGEXP is a regular expression matching servers in the realm. # The first match is used. #server-realm=JOSEFSSON.ORG,.josefsson.org # How long shishi waits for a response from a KDC before continuing # to next KDC for realm. The default is 5 seconds. #kdc-timeout=5 # How many times shishi sends a request to a KDC before giving up. # The default is 3 times. #kdc-retries=3 # How username and passwords entered from the terminal, or taken # from the command line, are processed. # "none": no processing is used. # "stringprep": convert from locale charset to UTF-8 and process using # experimental RFC 1510 stringprep profile. # It can also be a string indicating a character set supported by # iconv() via libstringprep, in which case data is converted from # locale charset into the indicated character set. E.g., UTF-8, # ISO-8859-1, KOI-8, EBCDIC-IS-FRISS are supported on GNU systems. # On some systems you can use "locale -m" to list available character # sets. By default, the "none" setting is used which is consistent # with RFC 1510 that is silent on the issue. In practice, however, # converting to UTF-8 improves interoperability. stringprocess=UTF-8 # Specify default ticket life time. # The string can be in almost any common format. It can contain month # names, time zones, `am' and `pm', `yesterday', `ago', `next', etc. # Refer to the "Date input formats" in the GNU CoreUtils package for # entire story. As an extra feature, if the resulting string you # specify has expired within the last 24 hours, an extra day is added # to it. This allows you to specify "17:00" to always mean the next # 17:00, even if your system clock happens to be 17:30. # The default is 8 hours. # Examples: #ticket-life=8 hours #ticket-life=1 day #ticket-life=17:00 # Specify how long a renewable ticket should remain renewable. # See ticket-life for the syntax. The extra feature that handles # negative values within the last 2 hours is not active here. # The default is 7 days. # Examples: #renew-life=1 week #renew-life=friday 17:00 #renew-life=sunday # User configuration file ends here shishi-1.0.3/COPYING0000644000000000000000000010451314273523166010741 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . shishi-1.0.3/shisa.conf.in0000644000000000000000000000515714273600463012271 00000000000000# shisa.conf --- Database configuration file for Shishi. -*- sh -*- # Copyright 2002-2022 Simon Josefsson # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright # notice and this notice are preserved. # # If the first non white space character of a line is a '#', the line # is ignored. Empty lines are also ignored. # # See the manual for a complete list of options. # db [OPTIONS] [LOCATION] [PARAMETERS ...] # Specify the data sources for Shisa data. Multiple entries, even of # the same data source type, are allowed. The data sources are # accessed in the same sequence as they are defined here. If an entry # is found in one data source, it will be used for the operations, # without searching the remaining data sources. Valid OPTIONS # include: # --read-only No data is written to this data source. # --ignore-errors Ignore failures in this backend. # The default (when the configuration file is empty) uses one "file" # data source (see below), but for a larger installation you may want # to combine several data sources. Here is an example. # db --read-only file /var/local/master # db --ignore-errors ldap kdc.example.org ca=/etc/shisa/kdc-ca.pem # db --read-only file /var/cache/ldap-copy # This demonstrate how you can store critical principals on local disk # (the first entry, /var/local/master) that will always be found # without looking in the LDAP directory. The critical principals # could be, e.g., krbtgt/EXAMPLE.ORG. The second entry denote a LDAP # server that could hold user principals. As you can see, Shisa will # not let the caller know about errors with the LDAP source (they will # be logged, however). Instead, if for instance the LDAP server has # crashed, Shisa would continue and read from the /var/cache/ldap-copy # file source. That file source may have been set up to contain a # copy of the data in the LDAP server, perhaps made on an hourly # basis, so that your server will be able to serve recent data even in # case of a crash. Any updates or passwords change requests will # however not be possible while the LDAP server is inaccessible, to # reduce the problem of synchronizing data back into the LDAP server # once it is online again. # Currently only the "file" data source is supported, and denote a # data source that use the standard file system for storage. # # Valid syntaxes for the "file" database: # db file FILENAME # # Examples: # db file /var/shishi # db file /usr/share/shishi read-only # # If nothing is specified, the default will be: # db file /usr/local/var/shishi/shisa.db shishi-1.0.3/src/0000755000000000000000000000000014273616163010551 500000000000000shishi-1.0.3/src/shishid.ggo0000644000000000000000000000437114273600463012623 00000000000000## Process this file with gengetopt to produce shishid_cmd.* # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. package "shishid" purpose "Shishi Key Distribution Center server." section "Commands" option "listen" l "Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'." string typestr="[FAMILY:]ADDR:PORT/TYPE" no option "setuid" u "After binding socket, set user identity." string typestr="NAME" no section "TLS settings" option "no-tls" - "Disable TLS support" flag off option "x509cafile" - "X.509 certificate authorities used to verify client certificates, in PEM format." string typestr="FILE" no option "x509certfile" - "X.509 server certificate, in PEM format." string typestr="FILE" no option "x509crlfile" - "X.509 certificate revocation list to check for revoked client certificates, in PEM format." string typestr="FILE" no option "x509keyfile" - "X.509 server certificate key, in PEM format." string typestr="FILE" no option "resume-limit" - "Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume)." short default="50" no section "Other options" option "configuration-file" c "Use specified configuration file." string typestr="FILE" no option "verbose" v "Produce verbose output.\nUse multiple times to increase amount of information." no multiple option "quiet" q "Don't produce any diagnostic output.\n" flag off shishi-1.0.3/src/kdc.h0000644000000000000000000000723114273601533011401 00000000000000/* kdc.h --- Header file with common definitions for Shishid. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include /* Get ssize_t, setuid, read, etc. */ #include /* Get gethostbyname, getservbyname. */ #include /* Get getpwnam. */ #ifdef HAVE_PWD_H # include #endif /* For errno. */ #include /* For select, etc. */ #include /* For select, etc. */ #include #include /* Get select, etc. */ #include /* Get accept, sendto, etc. */ #include /* Used for the backlog argument to listen. */ #ifndef SOMAXCONN # define SOMAXCONN INT_MAX #endif /* Get signal, etc. */ #include #include #ifdef HAVE_NETINET_IN6_H # include #endif #include #ifdef HAVE_SYSLOG_H # include #endif #ifdef USE_STARTTLS # include # include #endif /* Setup i18n. */ #include #include #define _(String) gettext (String) #define gettext_noop(String) String #define N_(String) gettext_noop (String) /* Get xmalloc. */ #include "xalloc.h" /* Shishi and Shisa library. */ #include #include /* Command line parameter parser via gengetopt. */ #include "shishid_cmd.h" struct listenspec { char *str; int listening; struct addrinfo ai; char addrname[NI_MAXHOST]; struct sockaddr_storage udpclientaddr; socklen_t udpclientaddrlen; char clientaddrname[NI_MAXHOST]; int sockfd; char buf[BUFSIZ]; /* XXX */ size_t bufpos; int usetls; #ifdef USE_STARTTLS gnutls_session_t session; #endif struct listenspec *next; }; extern Shishi *handle; extern Shisa *dbh; extern struct gengetopt_args_info arg; extern struct listenspec *listenspec; extern char *fatal_krberror; extern size_t fatal_krberror_len; #ifdef USE_STARTTLS # define DH_BITS 1024 extern gnutls_dh_params_t dh_params; extern gnutls_anon_server_credentials_t anoncred; extern gnutls_certificate_credentials_t x509cred; #endif /* Interface between shishid.c and server.c. */ extern void kdc_loop (void); /* Interface between server.c and kdc.c. */ extern ssize_t process (const char *in, size_t inlen, char **out); /* Interface between server.c and starttls.c. */ extern void kdc_send1 (struct listenspec *ls); extern int kdc_extension_reject (struct listenspec *ls); extern int kdc_extension (struct listenspec *ls); /* Interface between shishid.c, server.c and resume.c. */ #ifdef USE_STARTTLS extern void resume_db_init (size_t nconnections); extern void resume_db_done (void); extern int resume_db_store (void *dbf, gnutls_datum_t key, gnutls_datum_t data); extern gnutls_datum_t resume_db_fetch (void *dbf, gnutls_datum_t key); extern int resume_db_delete (void *dbf, gnutls_datum_t key); #endif shishi-1.0.3/src/keytab2shishi.ggo0000644000000000000000000000251114273600463013733 00000000000000## Process this file with gengetopt to produce keytab2shishi_cmd.* # Copyright (C) 2006-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. package "keytab2shishi" purpose "Read keytab data from INFILE (usually /etc/krb5.keytab) and write Shishi hostkeys to OUTFILE. If INFILE and OUTFILE are not specified, use the defaults." option "reverse" R "Reverse action, read Shishi hostkeys from INFILE and write keytab data to OUTFILE." flag off option "verbose" v "Produce verbose output.\nUse multiple times to increase amount of information." no multiple option "quiet" q "Don't produce any diagnostic output.\n" flag off shishi-1.0.3/src/keytab2shishi_cmd.h0000644000000000000000000001636214273615316014245 00000000000000/** @file keytab2shishi_cmd.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.23 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt */ #ifndef KEYTAB2SHISHI_CMD_H #define KEYTAB2SHISHI_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE "keytab2shishi" #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #define CMDLINE_PARSER_PACKAGE_NAME "keytab2shishi" #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ int reverse_flag; /**< @brief Reverse action, read Shishi hostkeys from INFILE and write keytab data to OUTFILE. (default=off). */ const char *reverse_help; /**< @brief Reverse action, read Shishi hostkeys from INFILE and write keytab data to OUTFILE. help description. */ unsigned int verbose_min; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s minimum occurreces */ unsigned int verbose_max; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s maximum occurreces */ const char *verbose_help; /**< @brief Produce verbose output. Use multiple times to increase amount of information. help description. */ int quiet_flag; /**< @brief Don't produce any diagnostic output. (default=off). */ const char *quiet_help; /**< @brief Don't produce any diagnostic output. help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int reverse_given ; /**< @brief Whether reverse was given. */ unsigned int verbose_given ; /**< @brief Whether verbose was given. */ unsigned int quiet_given ; /**< @brief Whether quiet was given. */ char **inputs ; /**< @brief unnamed options (options without names) */ unsigned inputs_num ; /**< @brief unnamed options number */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief the description string of the program */ extern const char *gengetopt_args_info_description; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* KEYTAB2SHISHI_CMD_H */ shishi-1.0.3/src/ccache2shishi_cmd.h0000644000000000000000000001562114273615316014171 00000000000000/** @file ccache2shishi_cmd.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.23 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt */ #ifndef CCACHE2SHISHI_CMD_H #define CCACHE2SHISHI_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE "ccache2shishi" #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #define CMDLINE_PARSER_PACKAGE_NAME "ccache2shishi" #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ unsigned int verbose_min; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s minimum occurreces */ unsigned int verbose_max; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s maximum occurreces */ const char *verbose_help; /**< @brief Produce verbose output. Use multiple times to increase amount of information. help description. */ int quiet_flag; /**< @brief Don't produce any diagnostic output. (default=off). */ const char *quiet_help; /**< @brief Don't produce any diagnostic output. help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int verbose_given ; /**< @brief Whether verbose was given. */ unsigned int quiet_given ; /**< @brief Whether quiet was given. */ char **inputs ; /**< @brief unnamed options (options without names) */ unsigned inputs_num ; /**< @brief unnamed options number */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief the description string of the program */ extern const char *gengetopt_args_info_description; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CCACHE2SHISHI_CMD_H */ shishi-1.0.3/src/shishi_cmd.h0000644000000000000000000004075314273615316012764 00000000000000/** @file shishi_cmd.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.23 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt */ #ifndef SHISHI_CMD_H #define SHISHI_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE "shishi" #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #define CMDLINE_PARSER_PACKAGE_NAME "shishi" #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ int destroy_flag; /**< @brief Destroy tickets in local cache, limited by any --client-name or --server-name. (default=off). */ const char *destroy_help; /**< @brief Destroy tickets in local cache, limited by any --client-name or --server-name. help description. */ int list_flag; /**< @brief List tickets in local cache, limited by any --client-name and --server-name. (default=off). */ const char *list_help; /**< @brief List tickets in local cache, limited by any --client-name and --server-name. help description. */ int renew_flag; /**< @brief Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm. (default=off). */ const char *renew_help; /**< @brief Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm. help description. */ int forwardable_flag; /**< @brief Get a forwardable ticket, i.e., one that can be used to get forwarded tickets. (default=off). */ const char *forwardable_help; /**< @brief Get a forwardable ticket, i.e., one that can be used to get forwarded tickets. help description. */ int forwarded_flag; /**< @brief Get a forwarded ticket. (default=off). */ const char *forwarded_help; /**< @brief Get a forwarded ticket. help description. */ int proxiable_flag; /**< @brief Get a proxiable ticket, i.e., one that can be used to get proxy tickets. (default=off). */ const char *proxiable_help; /**< @brief Get a proxiable ticket, i.e., one that can be used to get proxy tickets. help description. */ int proxy_flag; /**< @brief Get a proxy ticket. (default=off). */ const char *proxy_help; /**< @brief Get a proxy ticket. help description. */ int renewable_flag; /**< @brief Get a renewable ticket. (default=off). */ const char *renewable_help; /**< @brief Get a renewable ticket. help description. */ char * client_name_arg; /**< @brief Client name. Default is login username.. */ char * client_name_orig; /**< @brief Client name. Default is login username. original value given at command line. */ const char *client_name_help; /**< @brief Client name. Default is login username. help description. */ char * encryption_type_arg; /**< @brief Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'.. */ char * encryption_type_orig; /**< @brief Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. original value given at command line. */ const char *encryption_type_help; /**< @brief Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. help description. */ char * endtime_arg; /**< @brief Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time.. */ char * endtime_orig; /**< @brief Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time. original value given at command line. */ const char *endtime_help; /**< @brief Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time. help description. */ char * realm_arg; /**< @brief Set default realm.. */ char * realm_orig; /**< @brief Set default realm. original value given at command line. */ const char *realm_help; /**< @brief Set default realm. help description. */ char * renew_till_arg; /**< @brief Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time.. */ char * renew_till_orig; /**< @brief Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time. original value given at command line. */ const char *renew_till_help; /**< @brief Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time. help description. */ char * server_name_arg; /**< @brief Server name. Default is 'krbtgt/REALM' where REALM is client realm.. */ char * server_name_orig; /**< @brief Server name. Default is 'krbtgt/REALM' where REALM is client realm. original value given at command line. */ const char *server_name_help; /**< @brief Server name. Default is 'krbtgt/REALM' where REALM is client realm. help description. */ char * starttime_arg; /**< @brief Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately.. */ char * starttime_orig; /**< @brief Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately. original value given at command line. */ const char *starttime_help; /**< @brief Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately. help description. */ char * ticket_granter_arg; /**< @brief Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm.. */ char * ticket_granter_orig; /**< @brief Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm. original value given at command line. */ const char *ticket_granter_help; /**< @brief Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm. help description. */ char * configuration_file_arg; /**< @brief Read user configuration from FILE.. */ char * configuration_file_orig; /**< @brief Read user configuration from FILE. original value given at command line. */ const char *configuration_file_help; /**< @brief Read user configuration from FILE. help description. */ char * ticket_file_arg; /**< @brief Read tickets from FILE.. */ char * ticket_file_orig; /**< @brief Read tickets from FILE. original value given at command line. */ const char *ticket_file_help; /**< @brief Read tickets from FILE. help description. */ char * library_options_arg; /**< @brief Parse STRING as a configuration file statement.. */ char * library_options_orig; /**< @brief Parse STRING as a configuration file statement. original value given at command line. */ const char *library_options_help; /**< @brief Parse STRING as a configuration file statement. help description. */ int quiet_flag; /**< @brief Don't produce any diagnostic output. (default=off). */ const char *quiet_help; /**< @brief Don't produce any diagnostic output. help description. */ char * system_configuration_file_arg; /**< @brief Read system configuration from FILE.. */ char * system_configuration_file_orig; /**< @brief Read system configuration from FILE. original value given at command line. */ const char *system_configuration_file_help; /**< @brief Read system configuration from FILE. help description. */ char * ticket_write_file_arg; /**< @brief Write tickets from FILE. Default is to write them back to where they were read from.. */ char * ticket_write_file_orig; /**< @brief Write tickets from FILE. Default is to write them back to where they were read from. original value given at command line. */ const char *ticket_write_file_help; /**< @brief Write tickets from FILE. Default is to write them back to where they were read from. help description. */ unsigned int verbose_min; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s minimum occurreces */ unsigned int verbose_max; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s maximum occurreces */ const char *verbose_help; /**< @brief Produce verbose output. Use multiple times to increase amount of information. help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int destroy_given ; /**< @brief Whether destroy was given. */ unsigned int list_given ; /**< @brief Whether list was given. */ unsigned int renew_given ; /**< @brief Whether renew was given. */ unsigned int forwardable_given ; /**< @brief Whether forwardable was given. */ unsigned int forwarded_given ; /**< @brief Whether forwarded was given. */ unsigned int proxiable_given ; /**< @brief Whether proxiable was given. */ unsigned int proxy_given ; /**< @brief Whether proxy was given. */ unsigned int renewable_given ; /**< @brief Whether renewable was given. */ unsigned int client_name_given ; /**< @brief Whether client-name was given. */ unsigned int encryption_type_given ; /**< @brief Whether encryption-type was given. */ unsigned int endtime_given ; /**< @brief Whether endtime was given. */ unsigned int realm_given ; /**< @brief Whether realm was given. */ unsigned int renew_till_given ; /**< @brief Whether renew-till was given. */ unsigned int server_name_given ; /**< @brief Whether server-name was given. */ unsigned int starttime_given ; /**< @brief Whether starttime was given. */ unsigned int ticket_granter_given ; /**< @brief Whether ticket-granter was given. */ unsigned int configuration_file_given ; /**< @brief Whether configuration-file was given. */ unsigned int ticket_file_given ; /**< @brief Whether ticket-file was given. */ unsigned int library_options_given ; /**< @brief Whether library-options was given. */ unsigned int quiet_given ; /**< @brief Whether quiet was given. */ unsigned int system_configuration_file_given ; /**< @brief Whether system-configuration-file was given. */ unsigned int ticket_write_file_given ; /**< @brief Whether ticket-write-file was given. */ unsigned int verbose_given ; /**< @brief Whether verbose was given. */ char **inputs ; /**< @brief unnamed options (options without names) */ unsigned inputs_num ; /**< @brief unnamed options number */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief the description string of the program */ extern const char *gengetopt_args_info_description; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SHISHI_CMD_H */ shishi-1.0.3/src/shisa_cmd.h0000644000000000000000000003304614273615316012601 00000000000000/** @file shisa_cmd.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.23 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt */ #ifndef SHISA_CMD_H #define SHISA_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE "shisa" #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #define CMDLINE_PARSER_PACKAGE_NAME "shisa" #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ const char *add_help; /**< @brief Add realm or principal to database. help description. */ const char *dump_help; /**< @brief Dump entries in database. help description. */ const char *key_add_help; /**< @brief Add new key to a principal in database. help description. */ const char *key_remove_help; /**< @brief Remove a key from a principal in database. help description. */ const char *list_help; /**< @brief List entries in database. help description. */ const char *modify_help; /**< @brief Modify principal entry in database. help description. */ const char *remove_help; /**< @brief Remove realm or principal from database. help description. */ int force_flag; /**< @brief Allow removal of non-empty realms. (default=off). */ const char *force_help; /**< @brief Allow removal of non-empty realms. help description. */ int enabled_flag; /**< @brief Only dump or list enabled principals. (default=off). */ const char *enabled_help; /**< @brief Only dump or list enabled principals. help description. */ int disabled_flag; /**< @brief Only dump or list disabled principals. (default=off). */ const char *disabled_help; /**< @brief Only dump or list disabled principals. help description. */ int keys_flag; /**< @brief Print cryptographic key and password in hostkey format. (default=off). */ const char *keys_help; /**< @brief Print cryptographic key and password in hostkey format. help description. */ char * encryption_type_arg; /**< @brief Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'.. */ char * encryption_type_orig; /**< @brief Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. original value given at command line. */ const char *encryption_type_help; /**< @brief Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'. help description. */ long key_version_arg; /**< @brief Version of key.. */ char * key_version_orig; /**< @brief Version of key. original value given at command line. */ const char *key_version_help; /**< @brief Version of key. help description. */ char * password_arg; /**< @brief Derive key from this password.. */ char * password_orig; /**< @brief Derive key from this password. original value given at command line. */ const char *password_help; /**< @brief Derive key from this password. help description. */ long priority_arg; /**< @brief Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen). */ char * priority_orig; /**< @brief Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen) original value given at command line. */ const char *priority_help; /**< @brief Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen) help description. */ const char *random_help; /**< @brief Use a random key. (default) help description. */ char * salt_arg; /**< @brief Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name.. */ char * salt_orig; /**< @brief Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name. original value given at command line. */ const char *salt_help; /**< @brief Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name. help description. */ char * string_to_key_parameter_arg; /**< @brief Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver.. */ char * string_to_key_parameter_orig; /**< @brief Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver. original value given at command line. */ const char *string_to_key_parameter_help; /**< @brief Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver. help description. */ char * configuration_file_arg; /**< @brief Use specified configuration file.. */ char * configuration_file_orig; /**< @brief Use specified configuration file. original value given at command line. */ const char *configuration_file_help; /**< @brief Use specified configuration file. help description. */ char * library_options_arg; /**< @brief Parse string as configuration file statement.. */ char * library_options_orig; /**< @brief Parse string as configuration file statement. original value given at command line. */ const char *library_options_help; /**< @brief Parse string as configuration file statement. help description. */ int verbose_flag; /**< @brief Produce verbose output. (default=off). */ const char *verbose_help; /**< @brief Produce verbose output. help description. */ int quiet_flag; /**< @brief Don't produce any diagnostic output. (default=off). */ const char *quiet_help; /**< @brief Don't produce any diagnostic output. help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int add_given ; /**< @brief Whether add was given. */ unsigned int dump_given ; /**< @brief Whether dump was given. */ unsigned int key_add_given ; /**< @brief Whether key-add was given. */ unsigned int key_remove_given ; /**< @brief Whether key-remove was given. */ unsigned int list_given ; /**< @brief Whether list was given. */ unsigned int modify_given ; /**< @brief Whether modify was given. */ unsigned int remove_given ; /**< @brief Whether remove was given. */ unsigned int force_given ; /**< @brief Whether force was given. */ unsigned int enabled_given ; /**< @brief Whether enabled was given. */ unsigned int disabled_given ; /**< @brief Whether disabled was given. */ unsigned int keys_given ; /**< @brief Whether keys was given. */ unsigned int encryption_type_given ; /**< @brief Whether encryption-type was given. */ unsigned int key_version_given ; /**< @brief Whether key-version was given. */ unsigned int password_given ; /**< @brief Whether password was given. */ unsigned int priority_given ; /**< @brief Whether priority was given. */ unsigned int random_given ; /**< @brief Whether random was given. */ unsigned int salt_given ; /**< @brief Whether salt was given. */ unsigned int string_to_key_parameter_given ; /**< @brief Whether string-to-key-parameter was given. */ unsigned int configuration_file_given ; /**< @brief Whether configuration-file was given. */ unsigned int library_options_given ; /**< @brief Whether library-options was given. */ unsigned int verbose_given ; /**< @brief Whether verbose was given. */ unsigned int quiet_given ; /**< @brief Whether quiet was given. */ char **inputs ; /**< @brief unnamed options (options without names) */ unsigned inputs_num ; /**< @brief unnamed options number */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief the description string of the program */ extern const char *gengetopt_args_info_description; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SHISA_CMD_H */ shishi-1.0.3/src/Makefile.in0000644000000000000000000032433214273615655012552 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = shishi$(EXEEXT) shisa$(EXEEXT) ccache2shishi$(EXEEXT) sbin_PROGRAMS = keytab2shishi$(EXEEXT) $(am__EXEEXT_1) @ENABLE_SHISHID_TRUE@am__append_1 = shishid @STARTTLS_TRUE@am__append_2 = starttls.c resume.c subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" @ENABLE_SHISHID_TRUE@am__EXEEXT_1 = shishid$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS) LTLIBRARIES = $(noinst_LTLIBRARIES) libcmd_ccache2shishi_la_DEPENDENCIES = ../lib/gl/libgnu.la \ gl/libgnu.la am_libcmd_ccache2shishi_la_OBJECTS = \ libcmd_ccache2shishi_la-ccache2shishi_cmd.lo libcmd_ccache2shishi_la_OBJECTS = \ $(am_libcmd_ccache2shishi_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libcmd_ccache2shishi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libcmd_ccache2shishi_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ libcmd_keytab2shishi_la_DEPENDENCIES = ../lib/gl/libgnu.la \ gl/libgnu.la am_libcmd_keytab2shishi_la_OBJECTS = \ libcmd_keytab2shishi_la-keytab2shishi_cmd.lo libcmd_keytab2shishi_la_OBJECTS = \ $(am_libcmd_keytab2shishi_la_OBJECTS) libcmd_keytab2shishi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libcmd_keytab2shishi_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ libcmd_shisa_la_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la am_libcmd_shisa_la_OBJECTS = libcmd_shisa_la-shisa_cmd.lo libcmd_shisa_la_OBJECTS = $(am_libcmd_shisa_la_OBJECTS) libcmd_shisa_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libcmd_shisa_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ libcmd_shishi_la_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la am_libcmd_shishi_la_OBJECTS = libcmd_shishi_la-shishi_cmd.lo libcmd_shishi_la_OBJECTS = $(am_libcmd_shishi_la_OBJECTS) libcmd_shishi_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libcmd_shishi_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ libcmd_shishid_la_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la am_libcmd_shishid_la_OBJECTS = libcmd_shishid_la-shishid_cmd.lo libcmd_shishid_la_OBJECTS = $(am_libcmd_shishid_la_OBJECTS) libcmd_shishid_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libcmd_shishid_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_ccache2shishi_OBJECTS = ccache2shishi.$(OBJEXT) ccache2shishi_OBJECTS = $(am_ccache2shishi_OBJECTS) am__DEPENDENCIES_1 = ccache2shishi_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la \ libcmd-ccache2shishi.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) am_keytab2shishi_OBJECTS = keytab2shishi.$(OBJEXT) keytab2shishi_OBJECTS = $(am_keytab2shishi_OBJECTS) keytab2shishi_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la \ libcmd-keytab2shishi.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) am_shisa_OBJECTS = shisa.$(OBJEXT) shisa_OBJECTS = $(am_shisa_OBJECTS) shisa_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la libcmd-shisa.la \ ../db/libshisa.la ../lib/libshishi.la $(am__DEPENDENCIES_1) am_shishi_OBJECTS = shishi.$(OBJEXT) shishi_OBJECTS = $(am_shishi_OBJECTS) shishi_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la \ libcmd-shishi.la ../lib/libshishi.la $(am__DEPENDENCIES_1) am__shishid_SOURCES_DIST = shishid.c server.c kdc.h kdc.c starttls.c \ resume.c @STARTTLS_TRUE@am__objects_1 = starttls.$(OBJEXT) resume.$(OBJEXT) am_shishid_OBJECTS = shishid.$(OBJEXT) server.$(OBJEXT) kdc.$(OBJEXT) \ $(am__objects_1) shishid_OBJECTS = $(am_shishid_OBJECTS) shishid_DEPENDENCIES = ../lib/gl/libgnu.la gl/libgnu.la \ ../lib/libshishi.la ../db/libshisa.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) libcmd-shishid.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/ccache2shishi.Po ./$(DEPDIR)/kdc.Po \ ./$(DEPDIR)/keytab2shishi.Po \ ./$(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Plo \ ./$(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Plo \ ./$(DEPDIR)/libcmd_shisa_la-shisa_cmd.Plo \ ./$(DEPDIR)/libcmd_shishi_la-shishi_cmd.Plo \ ./$(DEPDIR)/libcmd_shishid_la-shishid_cmd.Plo \ ./$(DEPDIR)/resume.Po ./$(DEPDIR)/server.Po \ ./$(DEPDIR)/shisa.Po ./$(DEPDIR)/shishi.Po \ ./$(DEPDIR)/shishid.Po ./$(DEPDIR)/starttls.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcmd_ccache2shishi_la_SOURCES) \ $(libcmd_keytab2shishi_la_SOURCES) $(libcmd_shisa_la_SOURCES) \ $(libcmd_shishi_la_SOURCES) $(libcmd_shishid_la_SOURCES) \ $(ccache2shishi_SOURCES) $(keytab2shishi_SOURCES) \ $(shisa_SOURCES) $(shishi_SOURCES) $(shishid_SOURCES) DIST_SOURCES = $(libcmd_ccache2shishi_la_SOURCES) \ $(libcmd_keytab2shishi_la_SOURCES) $(libcmd_shisa_la_SOURCES) \ $(libcmd_shishi_la_SOURCES) $(libcmd_shishid_la_SOURCES) \ $(ccache2shishi_SOURCES) $(keytab2shishi_SOURCES) \ $(shisa_SOURCES) $(shishi_SOURCES) $(am__shishid_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = gl AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = -I$(builddir)/gl -I$(srcdir)/gl -I$(top_builddir)/lib/gl \ -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib \ -I$(top_srcdir)/lib -I$(top_srcdir)/db \ -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shishi.conf\" \ -DHOSTKEYSFILE=\"$(KEYDIR)/shishi.keys\" BUILT_SOURCES = shishi_cmd.c shishi_cmd.h shisa_cmd.c shisa_cmd.h \ shishid_cmd.c shishid_cmd.h keytab2shishi_cmd.c \ keytab2shishi_cmd.h ccache2shishi_cmd.c \ ccache2shishi_cmd.h MAINTAINERCLEANFILES = $(BUILT_SOURCES) noinst_LTLIBRARIES = libcmd-shishi.la libcmd-shisa.la \ libcmd-shishid.la libcmd-keytab2shishi.la \ libcmd-ccache2shishi.la shishi_SOURCES = shishi.c shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-shishi.la \ ../lib/libshishi.la $(LTLIBINTL) libcmd_shishi_la_CFLAGS = libcmd_shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shishi_la_SOURCES = shishi.ggo shishi_cmd.h shishi_cmd.c shisa_SOURCES = shisa.c shisa_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-shisa.la \ ../db/libshisa.la ../lib/libshishi.la $(LTLIBINTL) libcmd_shisa_la_CFLAGS = libcmd_shisa_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shisa_la_SOURCES = shisa.ggo shisa_cmd.h shisa_cmd.c shishid_SOURCES = shishid.c server.c kdc.h kdc.c $(am__append_2) shishid_LDADD = ../lib/gl/libgnu.la gl/libgnu.la ../lib/libshishi.la \ ../db/libshisa.la $(LTLIBGNUTLS) $(LTLIBINTL) libcmd-shishid.la libcmd_shishid_la_CFLAGS = libcmd_shishid_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shishid_la_SOURCES = shishid.ggo shishid_cmd.h shishid_cmd.c keytab2shishi_SOURCES = keytab2shishi.c keytab2shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-keytab2shishi.la \ ../lib/libshishi.la $(LTLIBINTL) libcmd_keytab2shishi_la_CFLAGS = libcmd_keytab2shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_keytab2shishi_la_SOURCES = keytab2shishi.ggo \ keytab2shishi_cmd.h keytab2shishi_cmd.c ccache2shishi_SOURCES = ccache2shishi.c ccache2shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-ccache2shishi.la \ ../lib/libshishi.la $(LTLIBINTL) libcmd_ccache2shishi_la_CFLAGS = libcmd_ccache2shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_ccache2shishi_la_SOURCES = ccache2shishi.ggo \ ccache2shishi_cmd.h ccache2shishi_cmd.c all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcmd-ccache2shishi.la: $(libcmd_ccache2shishi_la_OBJECTS) $(libcmd_ccache2shishi_la_DEPENDENCIES) $(EXTRA_libcmd_ccache2shishi_la_DEPENDENCIES) $(AM_V_CCLD)$(libcmd_ccache2shishi_la_LINK) $(libcmd_ccache2shishi_la_OBJECTS) $(libcmd_ccache2shishi_la_LIBADD) $(LIBS) libcmd-keytab2shishi.la: $(libcmd_keytab2shishi_la_OBJECTS) $(libcmd_keytab2shishi_la_DEPENDENCIES) $(EXTRA_libcmd_keytab2shishi_la_DEPENDENCIES) $(AM_V_CCLD)$(libcmd_keytab2shishi_la_LINK) $(libcmd_keytab2shishi_la_OBJECTS) $(libcmd_keytab2shishi_la_LIBADD) $(LIBS) libcmd-shisa.la: $(libcmd_shisa_la_OBJECTS) $(libcmd_shisa_la_DEPENDENCIES) $(EXTRA_libcmd_shisa_la_DEPENDENCIES) $(AM_V_CCLD)$(libcmd_shisa_la_LINK) $(libcmd_shisa_la_OBJECTS) $(libcmd_shisa_la_LIBADD) $(LIBS) libcmd-shishi.la: $(libcmd_shishi_la_OBJECTS) $(libcmd_shishi_la_DEPENDENCIES) $(EXTRA_libcmd_shishi_la_DEPENDENCIES) $(AM_V_CCLD)$(libcmd_shishi_la_LINK) $(libcmd_shishi_la_OBJECTS) $(libcmd_shishi_la_LIBADD) $(LIBS) libcmd-shishid.la: $(libcmd_shishid_la_OBJECTS) $(libcmd_shishid_la_DEPENDENCIES) $(EXTRA_libcmd_shishid_la_DEPENDENCIES) $(AM_V_CCLD)$(libcmd_shishid_la_LINK) $(libcmd_shishid_la_OBJECTS) $(libcmd_shishid_la_LIBADD) $(LIBS) ccache2shishi$(EXEEXT): $(ccache2shishi_OBJECTS) $(ccache2shishi_DEPENDENCIES) $(EXTRA_ccache2shishi_DEPENDENCIES) @rm -f ccache2shishi$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ccache2shishi_OBJECTS) $(ccache2shishi_LDADD) $(LIBS) keytab2shishi$(EXEEXT): $(keytab2shishi_OBJECTS) $(keytab2shishi_DEPENDENCIES) $(EXTRA_keytab2shishi_DEPENDENCIES) @rm -f keytab2shishi$(EXEEXT) $(AM_V_CCLD)$(LINK) $(keytab2shishi_OBJECTS) $(keytab2shishi_LDADD) $(LIBS) shisa$(EXEEXT): $(shisa_OBJECTS) $(shisa_DEPENDENCIES) $(EXTRA_shisa_DEPENDENCIES) @rm -f shisa$(EXEEXT) $(AM_V_CCLD)$(LINK) $(shisa_OBJECTS) $(shisa_LDADD) $(LIBS) shishi$(EXEEXT): $(shishi_OBJECTS) $(shishi_DEPENDENCIES) $(EXTRA_shishi_DEPENDENCIES) @rm -f shishi$(EXEEXT) $(AM_V_CCLD)$(LINK) $(shishi_OBJECTS) $(shishi_LDADD) $(LIBS) shishid$(EXEEXT): $(shishid_OBJECTS) $(shishid_DEPENDENCIES) $(EXTRA_shishid_DEPENDENCIES) @rm -f shishid$(EXEEXT) $(AM_V_CCLD)$(LINK) $(shishid_OBJECTS) $(shishid_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ccache2shishi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kdc.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keytab2shishi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcmd_shisa_la-shisa_cmd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcmd_shishi_la-shishi_cmd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcmd_shishid_la-shishid_cmd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resume.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/server.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shisa.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shishi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shishid.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/starttls.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libcmd_ccache2shishi_la-ccache2shishi_cmd.lo: ccache2shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_ccache2shishi_la_CFLAGS) $(CFLAGS) -MT libcmd_ccache2shishi_la-ccache2shishi_cmd.lo -MD -MP -MF $(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Tpo -c -o libcmd_ccache2shishi_la-ccache2shishi_cmd.lo `test -f 'ccache2shishi_cmd.c' || echo '$(srcdir)/'`ccache2shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Tpo $(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ccache2shishi_cmd.c' object='libcmd_ccache2shishi_la-ccache2shishi_cmd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_ccache2shishi_la_CFLAGS) $(CFLAGS) -c -o libcmd_ccache2shishi_la-ccache2shishi_cmd.lo `test -f 'ccache2shishi_cmd.c' || echo '$(srcdir)/'`ccache2shishi_cmd.c libcmd_keytab2shishi_la-keytab2shishi_cmd.lo: keytab2shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_keytab2shishi_la_CFLAGS) $(CFLAGS) -MT libcmd_keytab2shishi_la-keytab2shishi_cmd.lo -MD -MP -MF $(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Tpo -c -o libcmd_keytab2shishi_la-keytab2shishi_cmd.lo `test -f 'keytab2shishi_cmd.c' || echo '$(srcdir)/'`keytab2shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Tpo $(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='keytab2shishi_cmd.c' object='libcmd_keytab2shishi_la-keytab2shishi_cmd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_keytab2shishi_la_CFLAGS) $(CFLAGS) -c -o libcmd_keytab2shishi_la-keytab2shishi_cmd.lo `test -f 'keytab2shishi_cmd.c' || echo '$(srcdir)/'`keytab2shishi_cmd.c libcmd_shisa_la-shisa_cmd.lo: shisa_cmd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shisa_la_CFLAGS) $(CFLAGS) -MT libcmd_shisa_la-shisa_cmd.lo -MD -MP -MF $(DEPDIR)/libcmd_shisa_la-shisa_cmd.Tpo -c -o libcmd_shisa_la-shisa_cmd.lo `test -f 'shisa_cmd.c' || echo '$(srcdir)/'`shisa_cmd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcmd_shisa_la-shisa_cmd.Tpo $(DEPDIR)/libcmd_shisa_la-shisa_cmd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shisa_cmd.c' object='libcmd_shisa_la-shisa_cmd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shisa_la_CFLAGS) $(CFLAGS) -c -o libcmd_shisa_la-shisa_cmd.lo `test -f 'shisa_cmd.c' || echo '$(srcdir)/'`shisa_cmd.c libcmd_shishi_la-shishi_cmd.lo: shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shishi_la_CFLAGS) $(CFLAGS) -MT libcmd_shishi_la-shishi_cmd.lo -MD -MP -MF $(DEPDIR)/libcmd_shishi_la-shishi_cmd.Tpo -c -o libcmd_shishi_la-shishi_cmd.lo `test -f 'shishi_cmd.c' || echo '$(srcdir)/'`shishi_cmd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcmd_shishi_la-shishi_cmd.Tpo $(DEPDIR)/libcmd_shishi_la-shishi_cmd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shishi_cmd.c' object='libcmd_shishi_la-shishi_cmd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shishi_la_CFLAGS) $(CFLAGS) -c -o libcmd_shishi_la-shishi_cmd.lo `test -f 'shishi_cmd.c' || echo '$(srcdir)/'`shishi_cmd.c libcmd_shishid_la-shishid_cmd.lo: shishid_cmd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shishid_la_CFLAGS) $(CFLAGS) -MT libcmd_shishid_la-shishid_cmd.lo -MD -MP -MF $(DEPDIR)/libcmd_shishid_la-shishid_cmd.Tpo -c -o libcmd_shishid_la-shishid_cmd.lo `test -f 'shishid_cmd.c' || echo '$(srcdir)/'`shishid_cmd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcmd_shishid_la-shishid_cmd.Tpo $(DEPDIR)/libcmd_shishid_la-shishid_cmd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='shishid_cmd.c' object='libcmd_shishid_la-shishid_cmd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcmd_shishid_la_CFLAGS) $(CFLAGS) -c -o libcmd_shishid_la-shishid_cmd.lo `test -f 'shishid_cmd.c' || echo '$(srcdir)/'`shishid_cmd.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool \ clean-noinstLTLIBRARIES clean-sbinPROGRAMS mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/ccache2shishi.Po -rm -f ./$(DEPDIR)/kdc.Po -rm -f ./$(DEPDIR)/keytab2shishi.Po -rm -f ./$(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shisa_la-shisa_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shishi_la-shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shishid_la-shishid_cmd.Plo -rm -f ./$(DEPDIR)/resume.Po -rm -f ./$(DEPDIR)/server.Po -rm -f ./$(DEPDIR)/shisa.Po -rm -f ./$(DEPDIR)/shishi.Po -rm -f ./$(DEPDIR)/shishid.Po -rm -f ./$(DEPDIR)/starttls.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-sbinPROGRAMS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f ./$(DEPDIR)/ccache2shishi.Po -rm -f ./$(DEPDIR)/kdc.Po -rm -f ./$(DEPDIR)/keytab2shishi.Po -rm -f ./$(DEPDIR)/libcmd_ccache2shishi_la-ccache2shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_keytab2shishi_la-keytab2shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shisa_la-shisa_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shishi_la-shishi_cmd.Plo -rm -f ./$(DEPDIR)/libcmd_shishid_la-shishid_cmd.Plo -rm -f ./$(DEPDIR)/resume.Po -rm -f ./$(DEPDIR)/server.Po -rm -f ./$(DEPDIR)/shisa.Po -rm -f ./$(DEPDIR)/shishi.Po -rm -f ./$(DEPDIR)/shishid.Po -rm -f ./$(DEPDIR)/starttls.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-sbinPROGRAMS .MAKE: $(am__recursive_targets) all check install install-am \ install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool clean-noinstLTLIBRARIES \ clean-sbinPROGRAMS cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-sbinPROGRAMS install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-sbinPROGRAMS .PRECIOUS: Makefile shishi_cmd.c shishi_cmd.h: $(srcdir)/shishi.ggo Makefile.am gengetopt --unamed-opts="CLIENT [SERVER]" \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shishi.ggo --file-name shishi_cmd shisa_cmd.c shisa_cmd.h: $(srcdir)/shisa.ggo Makefile.am gengetopt --unamed-opts="REALM [PRINCIPAL]" \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shisa.ggo --file-name shisa_cmd shishid_cmd.c shishid_cmd.h: $(srcdir)/shishid.ggo Makefile.am gengetopt \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shishid.ggo --file-name shishid_cmd keytab2shishi_cmd.c keytab2shishi_cmd.h: $(srcdir)/keytab2shishi.ggo Makefile.am gengetopt --unamed-opts="INFILE [OUTFILE]" \ --no-handle-help --no-handle-error \ --input $(srcdir)/keytab2shishi.ggo --file-name keytab2shishi_cmd ccache2shishi_cmd.c ccache2shishi_cmd.h: $(srcdir)/ccache2shishi.ggo Makefile.am gengetopt --unamed-opts="INFILE [OUTFILE]" \ --no-handle-help --no-handle-error \ --input $(srcdir)/ccache2shishi.ggo --file-name ccache2shishi_cmd # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/src/keytab2shishi.c0000644000000000000000000001065114273601533013404 00000000000000/* keytab2shishi.c --- Convert MIT keytab files to Shishi hostkeys * Copyright (C) 2006-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include /* Get i18n. */ #include #include #define _(String) gettext (String) #include /* Get set_program_name and program_name. */ #include "progname.h" /* Get error. */ #include "error.h" #include "keytab2shishi_cmd.h" int main (int argc, char *argv[]) { struct gengetopt_args_info args; const char *infile = NULL; const char *outfile = NULL; Shishi *sh; int rc; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); set_program_name (argv[0]); if (cmdline_parser (argc, argv, &args) != 0) { fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); exit (EXIT_FAILURE); } if (args.inputs_num > 0) infile = args.inputs[0]; if (args.inputs_num > 1) outfile = args.inputs[1]; if (args.inputs_num > 2) { error (0, 0, _("too many arguments")); fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); exit (EXIT_FAILURE); } if (args.help_given) { cmdline_parser_print_help (); printf (_("\nMandatory arguments to long options are " "mandatory for short options too.\n\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); return EXIT_SUCCESS; } sh = shishi (); if (!sh) error (EXIT_FAILURE, 0, _("cannot initialize libshishi")); if (args.verbose_given > 0) shishi_cfg (sh, "verbose"); if (args.verbose_given > 1) shishi_cfg (sh, "verbose-noise"); if (args.verbose_given > 2) shishi_cfg (sh, "verbose-asn1"); if (args.verbose_given > 3) shishi_cfg (sh, "verbose-crypto"); if (args.verbose_given > 4) shishi_cfg (sh, "verbose-crypto-noise"); if (args.reverse_flag) { Shishi_keys *keys; if (!infile) infile = HOSTKEYSFILE; if (!outfile) outfile = "/etc/krb5.keytab"; rc = shishi_keys (sh, &keys); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s", shishi_strerror (rc)); rc = shishi_keys_from_file (keys, infile); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s: %s", infile, shishi_strerror (rc)); if (args.verbose_given) shishi_keys_print (keys, stdout); rc = shishi_keys_to_keytab_file (sh, keys, outfile); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s:%s", outfile, shishi_strerror (rc)); if (!args.quiet_flag) { size_t nkeys = shishi_keys_size (keys); if (nkeys == 0) printf (_("No keys written.\n")); else printf (ngettext ("%zu key written.\n", "%zu keys written.\n", nkeys), nkeys); } shishi_keys_done (&keys); } else { Shishi_keys *keys; if (!infile) infile = "/etc/krb5.keytab"; if (!outfile) outfile = HOSTKEYSFILE; rc = shishi_keys_from_keytab_file (sh, infile, &keys); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s: %s", infile, shishi_strerror (rc)); if (args.verbose_given) shishi_keys_print (keys, stdout); rc = shishi_keys_to_file (sh, outfile, keys); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s:%s", outfile, shishi_strerror (rc)); if (!args.quiet_flag) { size_t nkeys = shishi_keys_size (keys); if (nkeys == 0) printf (_("No keys written.\n")); else printf (ngettext ("%zu key written.\n", "%zu keys written.\n", nkeys), nkeys); } shishi_keys_done (&keys); } shishi_done (sh); return EXIT_SUCCESS; } shishi-1.0.3/src/shishi.c0000644000000000000000000001761014273601533012124 00000000000000/* shishi.c --- Shishi command line interface. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include /* Get i18n. */ #include #include #define _(String) gettext (String) #include /* Gnulib files. */ #include "progname.h" #include "error.h" #include "version-etc.h" #include "shishi_cmd.h" const char version_etc_copyright[] = /* Do *not* mark this string for translation. %s is a copyright symbol suitable for this locale, and %d is the copyright year. */ "Copyright %s %d Simon Josefsson."; static void usage (int status) __attribute__((__noreturn__)); static void usage (int status) { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else { cmdline_parser_print_help (); printf (_("\nMandatory arguments to long options are " "mandatory for short options too.\n")); emit_bug_reporting_address (); } exit (status); } int main (int argc, char *argv[]) { struct gengetopt_args_info args; time_t starttime, endtime, renew_till; Shishi *sh; int rc; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); set_program_name (argv[0]); if (cmdline_parser (argc, argv, &args) != 0) usage (EXIT_FAILURE); if (args.version_given) { const char *p = PACKAGE_NAME; if (strcmp (shishi_check_version (NULL), PACKAGE_VERSION) != 0) p = PACKAGE_STRING; version_etc (stdout, program_name, p, shishi_check_version (NULL), "Simon Josefsson", (char *) NULL); return EXIT_SUCCESS; } if (args.inputs_num > 2 || args.destroy_given + args.list_given + args.renew_given > 1) { error (0, 0, _("too many arguments")); usage (EXIT_FAILURE); } if (args.help_given) usage (EXIT_SUCCESS); rc = shishi_init_with_paths (&sh, args.ticket_file_arg, args.system_configuration_file_arg, args.configuration_file_arg); if (rc == SHISHI_HANDLE_ERROR) error (EXIT_FAILURE, 0, _("cannot initialize libshishi")); rc = shishi_cfg_clientkdcetype_set (sh, args.encryption_type_arg); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not set encryption types: %s"), shishi_strerror (rc)); if (args.inputs_num > 0) { rc = shishi_parse_name (sh, args.inputs[0], (args.client_name_arg ? NULL : &args.client_name_arg), (args.realm_arg ? NULL : &args.realm_arg)); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not parse client principal \"%s\": %s"), args.inputs[0], shishi_strerror (rc)); } if (args.inputs_num > 1) { rc = shishi_parse_name (sh, args.inputs[1], (args.server_name_arg ? NULL : &args.server_name_arg), (args.realm_arg ? NULL : &args.realm_arg)); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not parse server principal \"%s\": %s"), args.inputs[1], shishi_strerror (rc)); } rc = shishi_cfg (sh, args.library_options_arg); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not read library options: %s"), shishi_strerror (rc)); if (args.verbose_given > 0) shishi_cfg (sh, "verbose"); if (args.verbose_given > 1) shishi_cfg (sh, "verbose-noise"); if (args.verbose_given > 2) shishi_cfg (sh, "verbose-asn1"); if (args.verbose_given > 3) shishi_cfg (sh, "verbose-crypto"); if (args.verbose_given > 4) shishi_cfg (sh, "verbose-crypto-noise"); if (args.starttime_arg) { starttime = shishi_get_date (args.starttime_arg, NULL); if (starttime == -1) error (EXIT_FAILURE, 0, _("Invalid --starttime date `%s'"), args.starttime_arg); } else starttime = time (NULL); if (args.endtime_arg) { endtime = shishi_get_date (args.endtime_arg, &starttime); if (endtime == -1) error (EXIT_FAILURE, 0, _("Invalid --endtime date `%s'"), args.starttime_arg); } else endtime = 0; if (args.renew_till_arg) { renew_till = shishi_get_date (args.renew_till_arg, &starttime); if (renew_till == -1) error (EXIT_FAILURE, 0, _("Invalid --renew-till date `%s'"), args.renew_till_arg); } else renew_till = 0; if (args.client_name_arg) shishi_principal_default_set (sh, args.client_name_arg); if (args.realm_arg) shishi_realm_default_set (sh, args.realm_arg); if (!args.ticket_granter_arg) asprintf (&args.ticket_granter_arg, "krbtgt/%s", shishi_realm_default (sh)); if (args.list_flag) { if (!args.quiet_flag) printf (_("Tickets in `%s':\n"), shishi_tkts_default_file (sh)); rc = shishi_tkts_print_for_service (shishi_tkts_default (sh), stdout, args.server_name_arg); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not list tickets: %s"), shishi_strerror (rc)); } else if (args.destroy_flag) { int i, removed = 0; for (i = 0; i < shishi_tkts_size (shishi_tkts_default (sh)); i++) { if (args.server_name_arg && !shishi_tkt_server_p (shishi_tkts_nth (shishi_tkts_default (sh), i), args.server_name_arg)) continue; if (args.verbose_given) { printf (_("Removing ticket:\n")); shishi_tkt_pretty_print (shishi_tkts_nth (shishi_tkts_default (sh), i), stdout); } rc = shishi_tkts_remove (shishi_tkts_default (sh), i); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not destroy ticket %d:\n%s"), i, shishi_strerror (rc)); i--; removed++; } if (!args.quiet_flag) { if (removed == 0) printf (_("No tickets removed.\n")); else printf (ngettext ("%d ticket removed.\n", "%d tickets removed.\n", removed), removed); } } else if (args.renew_given) { error (EXIT_FAILURE, 0, "command --renew not implemented"); } else { Shishi_tkt *tkt; Shishi_tkts_hint hint; memset (&hint, 0, sizeof (hint)); hint.client = args.client_name_arg; hint.server = args.server_name_arg ? args.server_name_arg : args.ticket_granter_arg; hint.starttime = starttime; hint.endtime = endtime; hint.renew_till = renew_till; if (args.renewable_flag) hint.tktflags |= SHISHI_TICKETFLAGS_RENEWABLE; if (args.proxiable_flag) hint.tktflags |= SHISHI_TICKETFLAGS_PROXIABLE; if (args.proxy_flag) hint.tktflags |= SHISHI_TICKETFLAGS_PROXY; if (args.forwardable_flag) hint.tktflags |= SHISHI_TICKETFLAGS_FORWARDABLE; if (args.forwarded_flag) hint.tktflags |= SHISHI_TICKETFLAGS_FORWARDED; tkt = shishi_tkts_get (shishi_tkts_default (sh), &hint); if (!tkt) error (EXIT_FAILURE, 0, _("could not get ticket as `%s' for `%s'"), hint.client ? hint.client : shishi_principal_default (sh), hint.server); shishi_tkt_pretty_print (tkt, stdout); } shishi_tkts_expire (shishi_tkts_default (sh)); if (args.ticket_write_file_arg) shishi_tkts_default_file_set (sh, args.ticket_write_file_arg); shishi_done (sh); return EXIT_SUCCESS; } shishi-1.0.3/src/shishi.ggo0000644000000000000000000000774714273600463012471 00000000000000## Process this file with gengetopt to produce shishi_cmd.* # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. package "shishi" purpose "Shishi command line client. If no command is given, Shishi acquire or list a valid ticket for you, identified by CLIENT (if empty, default username in default realm), for the service SERVER (if empty, ticket granting ticket for client realm)." section "Commands" option "destroy" d "Destroy tickets in local cache, limited by any --client-name or --server-name." flag off option "list" l "List tickets in local cache, limited by any --client-name and --server-name." flag off option "renew" r "Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm." flag off section "Flags" option "forwardable" - "Get a forwardable ticket, i.e., one that can be used to get forwarded tickets." flag off option "forwarded" - "Get a forwarded ticket." flag off option "proxiable" - "Get a proxiable ticket, i.e., one that can be used to get proxy tickets." flag off option "proxy" - "Get a proxy ticket." flag off option "renewable" - "Get a renewable ticket." flag off section "Options" option "client-name" - "Client name. Default is login username." string typestr="NAME" no option "encryption-type" E "Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'." string typestr="ETYPE,[ETYPE...]" no option "endtime" e "Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time." string typestr="STRING" no option "realm" - "Set default realm." string typestr="STRING" no option "renew-till" - "Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time." string typestr="STRING" no option "server-name" - "Server name. Default is 'krbtgt/REALM' where REALM is client realm." string typestr="NAME" no option "starttime" s "Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately." string typestr="STRING" no option "ticket-granter" - "Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm." string typestr="NAME" no section "Other options" option "configuration-file" - "Read user configuration from FILE." string typestr="FILE" no option "ticket-file" c "Read tickets from FILE." string typestr="FILE" no option "library-options" o "Parse STRING as a configuration file statement." string typestr="STRING" no option "quiet" q "Don't produce any diagnostic output.\n" flag off option "system-configuration-file" - "Read system configuration from FILE." string typestr="FILE" no option "ticket-write-file" - "Write tickets from FILE. Default is to write them back to where they were read from." string typestr="FILE" no option "verbose" v "Produce verbose output.\nUse multiple times to increase amount of information." no multiple shishi-1.0.3/src/shisa.c0000644000000000000000000003610714273601533011746 00000000000000/* shisa.c --- Command line interface to Shishi database. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include /* Setup i18n. */ #include #include #define _(String) gettext (String) /* Gnulib helpers. */ #include "xvasprintf.h" #include "xgethostname.h" #include "progname.h" #include "error.h" #include "version-etc.h" /* Shishi and Shisa library. */ #include #include /* Command line parameter parser via gengetopt. */ #include "shisa_cmd.h" /* Global variables. */ Shishi *sh; Shisa *dbh; struct gengetopt_args_info args; static void printfield (const char *fieldname, const char *value) { printf ("\t\t%s %s.\n", fieldname, value); } static void printtimefield (const char *fieldname, time_t t) { char *p = ctime (&t); p[strlen (p) - 1] = '\0'; printfield (fieldname, t == (time_t) - 1 ? "N/A" : p); } static void printintfield (const char *fieldname, int num) { char *p = xasprintf ("%d (0x%x)", num, (unsigned) num); printfield (fieldname, p); free (p); } static void printuint32field (const char *fieldname, uint32_t num) { char *p = xasprintf ("%" PRIu32 " (0x%x)", num, num); printfield (fieldname, p); free (p); } static void print3field (const char *fieldname, const char *text, uint32_t num) { char *p = xasprintf ("%s (0x%x, %" PRIu32 ")", text, num, num); printfield (fieldname, p); free (p); } static void printdbkey (const char *realm, const char *principal, Shisa_key * dbkey) { Shishi_key *key; int rc; rc = shishi_key_from_value (sh, dbkey->etype, dbkey->key, &key); if (rc == SHISHI_OK) { shishi_key_realm_set (key, realm); shishi_key_principal_set (key, principal); shishi_key_print (sh, stdout, key); } else error (0, 0, "shishi_key_from_value (%d):\n%s", rc, shishi_strerror (rc)); } static int dumplist_realm_principal (const char *realm, const char *principal) { Shisa_principal ph; int rc; if (args.dump_given || args.enabled_flag || args.disabled_flag) { rc = shisa_principal_find (dbh, realm, principal, &ph); if (rc != SHISA_OK) { error (0, 0, "shishi_principal_find (%d):\n%s", rc, shisa_strerror (rc)); return rc; } if (args.enabled_flag && ph.isdisabled) return SHISA_OK; if (args.disabled_flag && !ph.isdisabled) return SHISA_OK; } printf ("\t%s\n", principal); if (args.dump_given) { Shisa_key **keys; size_t nkeys; size_t i; printfield (_("Account is"), ph.isdisabled ? _("DISABLED") : _("enabled")); printuint32field (_("Current key version"), ph.kvno); if (ph.notusedbefore != (time_t) - 1) printtimefield (_("Account not valid before"), ph.notusedbefore); if (ph.lastinitialtgt != (time_t) - 1) printtimefield (_("Last initial TGT request at"), ph.lastinitialtgt); if (ph.lastinitialrequest != (time_t) - 1) printtimefield (_("Last initial request at"), ph.lastinitialrequest); if (ph.lasttgt != (time_t) - 1) printtimefield (_("Last TGT request at"), ph.lasttgt); if (ph.lastrenewal != (time_t) - 1) printtimefield (_("Last ticket renewal at"), ph.lastrenewal); if (ph.passwordexpire != (time_t) - 1) printtimefield (_("Password expire on"), ph.passwordexpire); if (ph.accountexpire != (time_t) - 1) printtimefield (_("Account expire on"), ph.accountexpire); rc = shisa_keys_find (dbh, realm, principal, NULL, &keys, &nkeys); if (rc != SHISA_OK) { error (0, 0, "shishi_keys_find(%s, %s) (%d):\n%s", realm, principal, rc, shisa_strerror (rc)); return rc; } for (i = 0; i < nkeys; i++) if (keys[i]) { printintfield (_("Key"), i); print3field (_("\tEtype"), shishi_cipher_name (keys[i]->etype), keys[i]->etype); if (keys[i]->priority > 0) printintfield (_("\tPriority"), keys[i]->priority); if (args.keys_given) printdbkey (realm, principal, keys[i]); if (keys[i]->saltlen > 0) printfield (_("\tSalt"), keys[i]->salt); if (keys[i]->str2keyparamlen > 0) printfield (_("\tS2K params"), keys[i]->str2keyparam); if (args.keys_given) if (keys[i]->password) printfield (_("\tPassword"), keys[i]->password); } else printfield (_("\tKey is"), _("MISSING")); shisa_keys_free (dbh, keys, nkeys); } return SHISA_OK; } static int dumplist_realm (const char *realm) { char **principals; size_t nprincipals; size_t i; int rc; printf ("%s\n", realm); rc = shisa_enumerate_principals (dbh, realm, &principals, &nprincipals); if (rc != SHISA_OK) return rc; for (i = 0; i < nprincipals; i++) { if (rc == SHISA_OK) rc = dumplist_realm_principal (realm, principals[i]); free (principals[i]); } if (nprincipals > 0) free (principals); return rc; } static int dumplist (void) { int rc; if (args.inputs_num == 1) rc = dumplist_realm (args.inputs[0]); else if (args.inputs_num == 2) { char *realm = args.inputs[0]; char *principal = args.inputs[1]; printf ("%s\n", realm); rc = dumplist_realm_principal (realm, principal); } else { char **realms; size_t nrealms; size_t i; rc = shisa_enumerate_realms (dbh, &realms, &nrealms); if (rc != SHISA_OK) return rc; for (i = 0; i < nrealms; i++) { if (rc == SHISA_OK) rc = dumplist_realm (realms[i]); free (realms[i]); } if (nrealms > 0) free (realms); } return rc; } static void add (const char *realm, const char *principal, Shisa_principal * ph, Shisa_key * key) { int rc; if (principal == NULL) printf (_("Adding realm `%s'...\n"), realm); else printf (_("Adding principal `%s@%s'...\n"), principal, realm); rc = shisa_principal_add (dbh, realm, principal, ph, key); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_principal_add (%d):\n%s", rc, shisa_strerror (rc)); if (args.keys_given) printdbkey (realm, principal, key); if (principal == NULL) printf (_("Adding realm `%s'...done\n"), realm); else printf (_("Adding principal `%s@%s'...done\n"), principal, realm); } static void delete (const char *realm, const char *principal) { int rc; if (principal == NULL && args.force_flag) { char **principals; size_t nprincipals; size_t i; rc = shisa_enumerate_principals (dbh, realm, &principals, &nprincipals); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_enumerate_principals (%d):\n%s", rc, shisa_strerror (rc)); for (i = 0; i < nprincipals; i++) if (principals[i]) { delete (realm, principals[i]); free (principals[i]); } if (nprincipals > 0) free (principals); } if (principal == NULL) printf (_("Removing realm `%s'...\n"), realm); else printf (_("Removing principal `%s@%s'...\n"), principal, realm); rc = shisa_principal_remove (dbh, realm, principal); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_principal_remove (%d):\n%s", rc, shisa_strerror (rc)); if (principal == NULL) printf (_("Removing realm `%s'...done\n"), realm); else printf (_("Removing principal `%s@%s'...done\n"), principal, realm); } static void apply_options (const char *realm, const char *principal, Shisa_principal * ph, Shisa_key * dbkey) { char *passwd = args.password_arg; char *salt = args.salt_arg; char *str2keyparam = NULL; size_t str2keyparamlen = 0; Shishi_key *key; int32_t etype; int rc; if (ph) { if (args.key_version_given) ph->kvno = args.key_version_arg; } if (dbkey) { etype = shishi_cfg_clientkdcetype_fast (sh); if (!salt && realm && principal) { char *name = xasprintf ("%s@%s", principal, realm); rc = shishi_derive_default_salt (sh, name, &salt); free (name); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, "shisa_derive_default_salt (%d):\n%s", rc, shisa_strerror (rc)); } if (args.string_to_key_parameter_given) { /* XXX */ } if (args.password_given) { if (!passwd) { if (realm && principal) rc = shishi_prompt_password (sh, &passwd, _("Password for `%s@%s': "), principal, realm); else rc = shishi_prompt_password (sh, &passwd, _("Password: ")); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not read password")); } rc = shishi_key_from_string (sh, etype, passwd, strlen (passwd), salt, salt ? strlen (salt) : 0, str2keyparam, &key); } else rc = shishi_key_random (sh, etype, &key); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not create key (%d):\n%s"), rc, shishi_strerror (rc)); if (realm && principal) { shishi_key_realm_set (key, realm); shishi_key_principal_set (key, principal); } dbkey->kvno = args.key_version_arg; dbkey->etype = etype; dbkey->priority = args.priority_arg; dbkey->key = (char *) shishi_key_value (key); dbkey->keylen = shishi_key_length (key); dbkey->salt = salt; dbkey->saltlen = salt ? strlen (salt) : 0; dbkey->str2keyparam = str2keyparam; dbkey->str2keyparamlen = str2keyparamlen; dbkey->password = passwd; } } const char version_etc_copyright[] = /* Do *not* mark this string for translation. %s is a copyright symbol suitable for this locale, and %d is the copyright year. */ "Copyright %s %d Simon Josefsson."; static void usage (int status) __attribute__((__noreturn__)); static void usage (int status) { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else { cmdline_parser_print_help (); printf (_("\nMandatory arguments to long options are " "mandatory for short options too.\n")); emit_bug_reporting_address (); } exit (status); } int main (int argc, char *argv[]) { const char *realm = NULL; const char *principal = NULL; Shisa_principal ph; Shisa_key key; int rc; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); set_program_name (argv[0]); if (cmdline_parser (argc, argv, &args) != 0) usage (EXIT_FAILURE); if (args.version_given) { const char *p = PACKAGE_NAME; if (strcmp (shishi_check_version (NULL), PACKAGE_VERSION) != 0) p = PACKAGE_STRING; version_etc (stdout, program_name, p, shishi_check_version (NULL), "Simon Josefsson", (char *) NULL); return EXIT_SUCCESS; } rc = args.add_given + args.dump_given + args.list_given + args.modify_given + args.remove_given + args.key_add_given + args.key_remove_given; if (rc > 1 || args.inputs_num > 2) { error (0, 0, _("too many arguments")); usage (EXIT_FAILURE); } if (rc == 0 || args.help_given) usage (EXIT_SUCCESS); rc = shisa_init_with_paths (&dbh, args.configuration_file_arg); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, _("Initialization failed:\n%s"), shisa_strerror (rc)); rc = shisa_cfg (dbh, args.library_options_arg); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, _("Could not read library options `%s':\n%s"), args.library_options_arg, shisa_strerror (rc)); rc = shishi_init (&sh); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Shishi initialization failed:\n%s"), shishi_strerror (rc)); rc = shishi_cfg_clientkdcetype_set (sh, args.encryption_type_arg); if (rc != SHISHI_OK) error (EXIT_FAILURE, 0, _("Could not set encryption type `%s':\n%s"), args.encryption_type_arg, shishi_strerror (rc)); if ((args.inputs_num < 2 && (args.modify_given || args.key_add_given || args.key_remove_given)) || (args.inputs_num < 1 && (args.remove_given))) { error (0, 0, _("too few arguments")); usage (EXIT_FAILURE); } if (args.inputs_num > 0) realm = args.inputs[0]; if (args.inputs_num > 1) principal = args.inputs[1]; memset (&ph, 0, sizeof (ph)); memset (&key, 0, sizeof (key)); apply_options (realm, principal, &ph, &key); if (args.list_given || args.dump_given) rc = dumplist (); else if (args.remove_given) delete (realm, principal); else if (args.add_given && (args.inputs_num == 1 || args.inputs_num == 2)) add (realm, principal, &ph, &key); else if (args.add_given) { char *host; char *tmp; Shisa_key key2; /* This is mostly meant for 'make install', as it set up the default realm, and write a host key to stdout, which can be redirected into $prefix/etc/shishi/shishi.keys. */ realm = shishi_realm_default (sh); printf (_("Adding default realm `%s'...\n"), realm); add (realm, NULL, NULL, NULL); tmp = xasprintf ("krbtgt/%s", realm); add (realm, tmp, &ph, &key); free (tmp); host = xgethostname (); tmp = xasprintf ("host/%s", host); free (host); memset (&key2, 0, sizeof (key2)); apply_options (realm, tmp, NULL, &key2); args.keys_given = 1; add (realm, tmp, &ph, &key2); free (tmp); } else if (args.modify_given) { printf (_("Modifying principal `%s@%s'...\n"), principal, realm); rc = shisa_principal_update (dbh, realm, principal, &ph); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_principal_update (%d):\n%s", rc, shisa_strerror (rc)); printf (_("Modifying principal `%s@%s'...done\n"), principal, realm); } else if (args.key_add_given) { printf (_("Adding key to `%s@%s'...\n"), principal, realm); rc = shisa_key_add (dbh, realm, principal, &key); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_key_add (%d):\n%s", rc, shisa_strerror (rc)); if (args.keys_given) printdbkey (realm, principal, &key); printf (_("Adding key to `%s@%s'...done\n"), principal, realm); } else if (args.key_remove_given) { printf (_("Removing key from `%s@%s'...\n"), principal, realm); if (!args.password_given) { key.keylen = 0; key.password = NULL; } rc = shisa_key_remove (dbh, realm, principal, &key); if (rc != SHISA_OK) error (EXIT_FAILURE, 0, "shisa_key_remove (%d):\n%s", rc, shisa_strerror (rc)); printf (_("Removing key from `%s@%s'...done\n"), principal, realm); } shisa_done (dbh); shishi_done (sh); return EXIT_SUCCESS; } shishi-1.0.3/src/shishid_cmd.c0000644000000000000000000006467214273615316013131 00000000000000/* File autogenerated by gengetopt version 2.23 generated with the following command: gengetopt --no-handle-help --no-handle-error --no-handle-version --input ./shishid.ggo --file-name shishid_cmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include #include "shishid_cmd.h" const char *gengetopt_args_info_purpose = "Shishi Key Distribution Center server."; const char *gengetopt_args_info_usage = "Usage: shishid [OPTION]..."; const char *gengetopt_args_info_versiontext = ""; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", "\nCommands:", " -l, --listen=[FAMILY:]ADDR:PORT/TYPE\n Sockets to listen for queries on. Family is\n `IPv4' or `IPv6', if absent the family is\n decided by gethostbyname(ADDR). An address of\n `*' indicates all addresses on the local\n host. The default is `*:kerberos/udp,\n *:kerberos/tcp'.", " -u, --setuid=NAME After binding socket, set user identity.", "\nTLS settings:", " --no-tls Disable TLS support (default=off)", " --x509cafile=FILE X.509 certificate authorities used to verify\n client certificates, in PEM format.", " --x509certfile=FILE X.509 server certificate, in PEM format.", " --x509crlfile=FILE X.509 certificate revocation list to check for\n revoked client certificates, in PEM format.", " --x509keyfile=FILE X.509 server certificate key, in PEM format.", " --resume-limit=SHORT Keep track of up to this many TLS sessions for\n resume purposes (0 to disable TLS resume).\n (default=`50')", "\nOther options:", " -c, --configuration-file=FILE Use specified configuration file.", " -v, --verbose Produce verbose output.\n Use multiple times to increase amount of\n information.", " -q, --quiet Don't produce any diagnostic output.\n (default=off)", 0 }; typedef enum {ARG_NO , ARG_FLAG , ARG_STRING , ARG_SHORT } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->listen_given = 0 ; args_info->setuid_given = 0 ; args_info->no_tls_given = 0 ; args_info->x509cafile_given = 0 ; args_info->x509certfile_given = 0 ; args_info->x509crlfile_given = 0 ; args_info->x509keyfile_given = 0 ; args_info->resume_limit_given = 0 ; args_info->configuration_file_given = 0 ; args_info->verbose_given = 0 ; args_info->quiet_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->listen_arg = NULL; args_info->listen_orig = NULL; args_info->setuid_arg = NULL; args_info->setuid_orig = NULL; args_info->no_tls_flag = 0; args_info->x509cafile_arg = NULL; args_info->x509cafile_orig = NULL; args_info->x509certfile_arg = NULL; args_info->x509certfile_orig = NULL; args_info->x509crlfile_arg = NULL; args_info->x509crlfile_orig = NULL; args_info->x509keyfile_arg = NULL; args_info->x509keyfile_orig = NULL; args_info->resume_limit_arg = 50; args_info->resume_limit_orig = NULL; args_info->configuration_file_arg = NULL; args_info->configuration_file_orig = NULL; args_info->quiet_flag = 0; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->listen_help = gengetopt_args_info_help[3] ; args_info->setuid_help = gengetopt_args_info_help[4] ; args_info->no_tls_help = gengetopt_args_info_help[6] ; args_info->x509cafile_help = gengetopt_args_info_help[7] ; args_info->x509certfile_help = gengetopt_args_info_help[8] ; args_info->x509crlfile_help = gengetopt_args_info_help[9] ; args_info->x509keyfile_help = gengetopt_args_info_help[10] ; args_info->resume_limit_help = gengetopt_args_info_help[11] ; args_info->configuration_file_help = gengetopt_args_info_help[13] ; args_info->verbose_help = gengetopt_args_info_help[14] ; args_info->verbose_min = 0; args_info->verbose_max = 0; args_info->quiet_help = gengetopt_args_info_help[15] ; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); if (strlen(gengetopt_args_info_versiontext) > 0) printf("\n%s\n", gengetopt_args_info_versiontext); } static void print_help_common(void) { size_t len_purpose = strlen(gengetopt_args_info_purpose); size_t len_usage = strlen(gengetopt_args_info_usage); if (len_usage > 0) { printf("%s\n", gengetopt_args_info_usage); } if (len_purpose > 0) { printf("%s\n", gengetopt_args_info_purpose); } if (len_usage || len_purpose) { printf("\n"); } if (strlen(gengetopt_args_info_description) > 0) { printf("%s\n\n", gengetopt_args_info_description); } } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void free_string_field (char **s) { if (*s) { free (*s); *s = 0; } } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { free_string_field (&(args_info->listen_arg)); free_string_field (&(args_info->listen_orig)); free_string_field (&(args_info->setuid_arg)); free_string_field (&(args_info->setuid_orig)); free_string_field (&(args_info->x509cafile_arg)); free_string_field (&(args_info->x509cafile_orig)); free_string_field (&(args_info->x509certfile_arg)); free_string_field (&(args_info->x509certfile_orig)); free_string_field (&(args_info->x509crlfile_arg)); free_string_field (&(args_info->x509crlfile_orig)); free_string_field (&(args_info->x509keyfile_arg)); free_string_field (&(args_info->x509keyfile_orig)); free_string_field (&(args_info->resume_limit_orig)); free_string_field (&(args_info->configuration_file_arg)); free_string_field (&(args_info->configuration_file_orig)); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } static void write_multiple_into_file(FILE *outfile, int len, const char *opt, char **arg, const char *values[]) { int i; for (i = 0; i < len; ++i) write_into_file(outfile, opt, (arg ? arg[i] : 0), values); } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); if (args_info->listen_given) write_into_file(outfile, "listen", args_info->listen_orig, 0); if (args_info->setuid_given) write_into_file(outfile, "setuid", args_info->setuid_orig, 0); if (args_info->no_tls_given) write_into_file(outfile, "no-tls", 0, 0 ); if (args_info->x509cafile_given) write_into_file(outfile, "x509cafile", args_info->x509cafile_orig, 0); if (args_info->x509certfile_given) write_into_file(outfile, "x509certfile", args_info->x509certfile_orig, 0); if (args_info->x509crlfile_given) write_into_file(outfile, "x509crlfile", args_info->x509crlfile_orig, 0); if (args_info->x509keyfile_given) write_into_file(outfile, "x509keyfile", args_info->x509keyfile_orig, 0); if (args_info->resume_limit_given) write_into_file(outfile, "resume-limit", args_info->resume_limit_orig, 0); if (args_info->configuration_file_given) write_into_file(outfile, "configuration-file", args_info->configuration_file_orig, 0); write_multiple_into_file(outfile, args_info->verbose_given, "verbose", 0, 0); if (args_info->quiet_given) write_into_file(outfile, "quiet", 0, 0 ); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } static int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc); int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc) { int error_occurred = 0; if (option_given && (min > 0 || max > 0)) { if (min > 0 && max > 0) { if (min == max) { /* specific occurrences */ if (option_given != (unsigned int) min) { fprintf (stderr, "%s: %s option occurrences must be %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (option_given < (unsigned int) min || option_given > (unsigned int) max) { /* range occurrences */ fprintf (stderr, "%s: %s option occurrences must be between %d and %d\n", prog_name, option_desc, min, max); error_occurred = 1; } } else if (min > 0) { /* at least check */ if (option_given < min) { fprintf (stderr, "%s: %s option occurrences must be at least %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (max > 0) { /* at most check */ if (option_given > max) { fprintf (stderr, "%s: %s option occurrences must be at most %d\n", prog_name, option_desc, max); error_occurred = 1; } } } return error_occurred; } int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { int result = EXIT_SUCCESS; if (cmdline_parser_required2(args_info, prog_name, 0) > 0) result = EXIT_FAILURE; return result; } int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error) { int error_occurred = 0; FIX_UNUSED (additional_error); /* checks for required options */ if (check_multiple_option_occurrences(prog_name, args_info->verbose_given, args_info->verbose_min, args_info->verbose_max, "'--verbose' ('-v')")) error_occurred = 1; /* checks for dependences among options */ return error_occurred; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { char *stop_char = 0; const char *val = value; int found; char **string_field; FIX_UNUSED (field); stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_FLAG: *((int *)field) = !*((int *)field); break; case ARG_SHORT: if (val) *((short *)field) = (short)strtol (val, &stop_char, 0); break; case ARG_STRING: if (val) { string_field = (char **)field; if (!no_free && *string_field) free (*string_field); /* free previous string */ *string_field = gengetopt_strdup (val); } break; default: break; }; /* check numeric conversion */ switch(arg_type) { case ARG_SHORT: if (val && !(stop_char && *stop_char == '\0')) { fprintf(stderr, "%s: invalid numeric value: %s\n", package_name, val); return 1; /* failure */ } break; default: ; }; /* store the original value */ switch(arg_type) { case ARG_NO: case ARG_FLAG: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error_occurred = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; /* TODO: Why is this here? It is not used anywhere. */ override = params->override; FIX_UNUSED(override); initialize = params->initialize; check_required = params->check_required; /* TODO: Why is this here? It is not used anywhere. */ check_ambiguity = params->check_ambiguity; FIX_UNUSED(check_ambiguity); if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "listen", 1, NULL, 'l' }, { "setuid", 1, NULL, 'u' }, { "no-tls", 0, NULL, 0 }, { "x509cafile", 1, NULL, 0 }, { "x509certfile", 1, NULL, 0 }, { "x509crlfile", 1, NULL, 0 }, { "x509keyfile", 1, NULL, 0 }, { "resume-limit", 1, NULL, 0 }, { "configuration-file", 1, NULL, 'c' }, { "verbose", 0, NULL, 'v' }, { "quiet", 0, NULL, 'q' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVl:u:c:vq", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ if (update_arg( 0 , 0 , &(args_info->help_given), &(local_args_info.help_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "help", 'h', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'V': /* Print version and exit. */ if (update_arg( 0 , 0 , &(args_info->version_given), &(local_args_info.version_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "version", 'V', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'l': /* Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'.. */ if (update_arg( (void *)&(args_info->listen_arg), &(args_info->listen_orig), &(args_info->listen_given), &(local_args_info.listen_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "listen", 'l', additional_error)) goto failure; break; case 'u': /* After binding socket, set user identity.. */ if (update_arg( (void *)&(args_info->setuid_arg), &(args_info->setuid_orig), &(args_info->setuid_given), &(local_args_info.setuid_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "setuid", 'u', additional_error)) goto failure; break; case 'c': /* Use specified configuration file.. */ if (update_arg( (void *)&(args_info->configuration_file_arg), &(args_info->configuration_file_orig), &(args_info->configuration_file_given), &(local_args_info.configuration_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "configuration-file", 'c', additional_error)) goto failure; break; case 'v': /* Produce verbose output. Use multiple times to increase amount of information.. */ local_args_info.verbose_given++; break; case 'q': /* Don't produce any diagnostic output. . */ if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given), &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "quiet", 'q', additional_error)) goto failure; break; case 0: /* Long option with no short option */ /* Disable TLS support. */ if (strcmp (long_options[option_index].name, "no-tls") == 0) { if (update_arg((void *)&(args_info->no_tls_flag), 0, &(args_info->no_tls_given), &(local_args_info.no_tls_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "no-tls", '-', additional_error)) goto failure; } /* X.509 certificate authorities used to verify client certificates, in PEM format.. */ else if (strcmp (long_options[option_index].name, "x509cafile") == 0) { if (update_arg( (void *)&(args_info->x509cafile_arg), &(args_info->x509cafile_orig), &(args_info->x509cafile_given), &(local_args_info.x509cafile_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "x509cafile", '-', additional_error)) goto failure; } /* X.509 server certificate, in PEM format.. */ else if (strcmp (long_options[option_index].name, "x509certfile") == 0) { if (update_arg( (void *)&(args_info->x509certfile_arg), &(args_info->x509certfile_orig), &(args_info->x509certfile_given), &(local_args_info.x509certfile_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "x509certfile", '-', additional_error)) goto failure; } /* X.509 certificate revocation list to check for revoked client certificates, in PEM format.. */ else if (strcmp (long_options[option_index].name, "x509crlfile") == 0) { if (update_arg( (void *)&(args_info->x509crlfile_arg), &(args_info->x509crlfile_orig), &(args_info->x509crlfile_given), &(local_args_info.x509crlfile_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "x509crlfile", '-', additional_error)) goto failure; } /* X.509 server certificate key, in PEM format.. */ else if (strcmp (long_options[option_index].name, "x509keyfile") == 0) { if (update_arg( (void *)&(args_info->x509keyfile_arg), &(args_info->x509keyfile_orig), &(args_info->x509keyfile_given), &(local_args_info.x509keyfile_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "x509keyfile", '-', additional_error)) goto failure; } /* Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume).. */ else if (strcmp (long_options[option_index].name, "resume-limit") == 0) { if (update_arg( (void *)&(args_info->resume_limit_arg), &(args_info->resume_limit_orig), &(args_info->resume_limit_given), &(local_args_info.resume_limit_given), optarg, 0, "50", ARG_SHORT, check_ambiguity, override, 0, 0, "resume-limit", '-', additional_error)) goto failure; } break; case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ args_info->verbose_given += local_args_info.verbose_given; local_args_info.verbose_given = 0; if (check_required) { error_occurred += cmdline_parser_required2 (args_info, argv[0], additional_error); } cmdline_parser_release (&local_args_info); if ( error_occurred ) return (EXIT_FAILURE); return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } /* vim: set ft=c noet ts=8 sts=8 sw=8 tw=80 nojs spell : */ shishi-1.0.3/src/starttls.c0000644000000000000000000002514114273601533012513 00000000000000/* starttls.c --- Handle extended TCP connections (for TLS). * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Note: only use syslog to report errors in this file. */ /* Get Shishid stuff. */ #include "kdc.h" /* This function will print information about this session's peer * certificate. */ static void logcertinfo (gnutls_session_t session) { time_t now = time (NULL); const gnutls_datum_t *cert_list; unsigned cert_list_size = 0; gnutls_x509_crt_t cert; size_t i; int rc; cert_list = gnutls_certificate_get_peers (session, &cert_list_size); if (!cert_list) return; rc = gnutls_x509_crt_init (&cert); if (rc < 0) { syslog (LOG_ERR | LOG_DAEMON, "TLS xci failed (%d): %s", rc, gnutls_strerror (rc)); return; } if (gnutls_certificate_type_get (session) == GNUTLS_CRT_X509) for (i = 0; i < cert_list_size; i++) { time_t expiration_time, activation_time; char *expiration_time_str = NULL, *activation_time_str = NULL; unsigned char *serial = NULL, *serialhex = NULL; char *issuer = NULL, *subject = NULL; size_t seriallen, issuerlen, subjectlen; unsigned char md5fingerprint[16], md5fingerprinthex[3 * 16 + 1]; size_t md5fingerprintlen; int algo; unsigned bits; const char *keytype, *validity; rc = gnutls_x509_crt_import (cert, &cert_list[i], GNUTLS_X509_FMT_DER); if (rc < 0) { syslog (LOG_ERR | LOG_DAEMON, "TLS xci[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } md5fingerprintlen = sizeof (md5fingerprint); rc = gnutls_fingerprint (GNUTLS_DIG_MD5, &cert_list[i], md5fingerprint, &md5fingerprintlen); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS f[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } for (i = 0; i < md5fingerprintlen; i++) sprintf ((char *) &md5fingerprinthex[3 * i], "%.2x:", md5fingerprint[i]); expiration_time = gnutls_x509_crt_get_expiration_time (cert); if (expiration_time == (time_t) - 1) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcget[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } activation_time = gnutls_x509_crt_get_activation_time (cert); if (expiration_time == (time_t) - 1) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgat[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } expiration_time_str = xstrdup (ctime (&expiration_time)); if (expiration_time_str[strlen (expiration_time_str) - 1] == '\n') expiration_time_str[strlen (expiration_time_str) - 1] = '\0'; activation_time_str = xstrdup (ctime (&activation_time)); if (activation_time_str[strlen (activation_time_str) - 1] == '\n') activation_time_str[strlen (activation_time_str) - 1] = '\0'; rc = gnutls_x509_crt_get_dn (cert, NULL, &subjectlen); if (rc != GNUTLS_E_SUCCESS && rc != GNUTLS_E_SHORT_MEMORY_BUFFER) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgd[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } subject = xmalloc (++subjectlen); rc = gnutls_x509_crt_get_dn (cert, subject, &subjectlen); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgd2[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } rc = gnutls_x509_crt_get_issuer_dn (cert, NULL, &issuerlen); if (rc != GNUTLS_E_SUCCESS && rc != GNUTLS_E_SHORT_MEMORY_BUFFER) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgid[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } issuer = xmalloc (++issuerlen); rc = gnutls_x509_crt_get_issuer_dn (cert, issuer, &issuerlen); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgid2[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } seriallen = 0; rc = gnutls_x509_crt_get_serial (cert, NULL, &seriallen); if (rc != GNUTLS_E_SUCCESS && rc != GNUTLS_E_SHORT_MEMORY_BUFFER) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgs[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } serial = xmalloc (seriallen); rc = gnutls_x509_crt_get_serial (cert, serial, &seriallen); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS xcgs2[%zu] failed (%d): %s", i, rc, gnutls_strerror (rc)); goto cleanup; } serialhex = xmalloc (2 * seriallen + 1); for (i = 0; i < seriallen; i++) sprintf ((char *) &serialhex[2 * i], "%.2x", serial[i]); algo = gnutls_x509_crt_get_pk_algorithm (cert, &bits); if (algo == GNUTLS_PK_RSA) keytype = "RSA modulus"; else if (algo == GNUTLS_PK_DSA) keytype = "DSA exponent"; else keytype = "UNKNOWN"; if (expiration_time < now) validity = "EXPIRED"; else if (activation_time > now) validity = "NOT YET ACTIVATED"; else validity = "valid"; /* This message can arguably belong to LOG_AUTH. */ syslog (LOG_INFO, "TLS client certificate `%s', issued by `%s', " "serial number `%s', MD5 fingerprint `%s', activated `%s', " "expires `%s', version #%d, key %s %u bits, currently %s", subject, issuer, serialhex, md5fingerprinthex, activation_time_str, expiration_time_str, gnutls_x509_crt_get_version (cert), keytype, bits, validity); cleanup: free (serialhex); free (serial); free (expiration_time_str); free (activation_time_str); free (issuer); free (subject); } gnutls_x509_crt_deinit (cert); { unsigned int status; /* Accept default syslog facility for these errors. * They are clearly relevant as audit traces. */ rc = gnutls_certificate_verify_peers2 (session, &status); if (rc != GNUTLS_E_SUCCESS) syslog (LOG_ERR, "TLS client certificate failed (%d): %s", rc, gnutls_strerror (rc)); if (status != 0) syslog (LOG_ERR, "TLS client certificate verify failure (%u)", status); } } /* This function will log some details of the given session. */ static void logtlsinfo (gnutls_session_t session) { gnutls_credentials_type_t cred; const char *protocol = gnutls_protocol_get_name (gnutls_protocol_get_version (session)); gnutls_kx_algorithm_t kx = gnutls_kx_get (session); const char *keyexchange = gnutls_kx_get_name (kx); const char *certtype = gnutls_certificate_type_get_name (gnutls_certificate_type_get (session)); const char *cipher = gnutls_cipher_get_name (gnutls_cipher_get (session)); const char *mac = gnutls_mac_get_name (gnutls_mac_get (session)); int resumedp = gnutls_session_is_resumed (session); /* This message can arguably belong to LOG_AUTH. */ syslog (LOG_INFO, "TLS handshake negotiated protocol `%s', " "key exchange `%s', certficate type `%s', cipher `%s', " "mac `%s', %s", protocol ? protocol : "N/A", keyexchange ? keyexchange : "N/A", certtype ? certtype : "N/A", cipher ? cipher : "N/A", mac ? mac : "N/A", resumedp ? "resumed session" : "session not resumed"); cred = gnutls_auth_get_type (session); switch (cred) { case GNUTLS_CRD_ANON: syslog (LOG_INFO | LOG_DAEMON, "TLS anonymous authentication with %d bit Diffie-Hellman", gnutls_dh_get_prime_bits (session)); break; case GNUTLS_CRD_CERTIFICATE: if (kx == GNUTLS_KX_DHE_RSA || kx == GNUTLS_KX_DHE_DSS) syslog (LOG_INFO | LOG_DAEMON, "TLS certificate authentication with %d bits " "ephemeral Diffie-Hellman", gnutls_dh_get_prime_bits (session)); logcertinfo (session); break; case GNUTLS_CRD_SRP: case GNUTLS_CRD_PSK: case GNUTLS_CRD_IA: default: syslog (LOG_ERR | LOG_DAEMON, "Unknown TLS authentication (%u)", cred); break; } } #define STARTTLS_CLIENT_REQUEST "\x80\x00\x00\x01" #define STARTTLS_SERVER_ACCEPT "\x00\x00\x00\x00" #define STARTTLS_LEN 4 /* Handle the high TCP length bit, currently only used for STARTTLS. */ int kdc_extension (struct listenspec *ls) { int rc; if (ls->usetls || ls->ai.ai_socktype != SOCK_STREAM || ls->bufpos < 4 || (ls->bufpos >= 4 && !(ls->buf[0] & 0x80))) return 0; if (x509cred == NULL || memcmp (ls->buf, STARTTLS_CLIENT_REQUEST, STARTTLS_LEN) != 0) return kdc_extension_reject (ls); /* This message can arguably belong to LOG_AUTH, * but leave it at the default facility. */ syslog (LOG_INFO, "Trying STARTTLS"); memcpy (ls->buf, STARTTLS_SERVER_ACCEPT, STARTTLS_LEN); ls->bufpos = STARTTLS_LEN; kdc_send1 (ls); rc = gnutls_init (&ls->session, GNUTLS_SERVER); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS initialization failed (%d): %s", rc, gnutls_strerror (rc)); return -1; } rc = gnutls_priority_set_direct (ls->session, "NORMAL:+ANON-DH", NULL); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS failed, gnutls_psd %d: %s", rc, gnutls_strerror (rc)); return -1; } rc = gnutls_credentials_set (ls->session, GNUTLS_CRD_ANON, anoncred); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS failed, gnutls_cs %d: %s", rc, gnutls_strerror (rc)); return -1; } rc = gnutls_credentials_set (ls->session, GNUTLS_CRD_CERTIFICATE, x509cred); if (rc != GNUTLS_E_SUCCESS) { syslog (LOG_ERR | LOG_DAEMON, "TLS failed, gnutls_cs X.509 %d: %s", rc, gnutls_strerror (rc)); return -1; } gnutls_certificate_server_set_request (ls->session, GNUTLS_CERT_REQUEST); gnutls_dh_set_prime_bits (ls->session, DH_BITS); gnutls_transport_set_ptr (ls->session, (gnutls_transport_ptr_t) (unsigned long) ls->sockfd); gnutls_db_set_retrieve_function (ls->session, resume_db_fetch); gnutls_db_set_store_function (ls->session, resume_db_store); gnutls_db_set_remove_function (ls->session, resume_db_delete); rc = gnutls_handshake (ls->session); if (rc < 0) { syslog (LOG_ERR | LOG_DAEMON, "TLS handshake failed (%d): %s\n", rc, gnutls_strerror (rc)); return -1; } logtlsinfo (ls->session); ls->bufpos = 0; ls->usetls = 1; return 0; } shishi-1.0.3/src/ccache2shishi_cmd.c0000644000000000000000000004077014273615316014167 00000000000000/* File autogenerated by gengetopt version 2.23 generated with the following command: gengetopt --unamed-opts=INFILE [OUTFILE] --no-handle-help --no-handle-error --input ./ccache2shishi.ggo --file-name ccache2shishi_cmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include #include "ccache2shishi_cmd.h" const char *gengetopt_args_info_purpose = "Read ccache data from INFILE (usually /tmp/krb5cc_UID) and\nwrite Shishi tickets to OUTFILE. If INFILE and OUTFILE are not\nspecified, use the defaults."; const char *gengetopt_args_info_usage = "Usage: ccache2shishi [OPTION]... [INFILE [OUTFILE]]..."; const char *gengetopt_args_info_versiontext = ""; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", " -v, --verbose Produce verbose output.\n Use multiple times to increase amount of information.", " -q, --quiet Don't produce any diagnostic output.\n (default=off)", 0 }; typedef enum {ARG_NO , ARG_FLAG } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->verbose_given = 0 ; args_info->quiet_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->quiet_flag = 0; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->verbose_help = gengetopt_args_info_help[2] ; args_info->verbose_min = 0; args_info->verbose_max = 0; args_info->quiet_help = gengetopt_args_info_help[3] ; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); if (strlen(gengetopt_args_info_versiontext) > 0) printf("\n%s\n", gengetopt_args_info_versiontext); } static void print_help_common(void) { size_t len_purpose = strlen(gengetopt_args_info_purpose); size_t len_usage = strlen(gengetopt_args_info_usage); if (len_usage > 0) { printf("%s\n", gengetopt_args_info_usage); } if (len_purpose > 0) { printf("%s\n", gengetopt_args_info_purpose); } if (len_usage || len_purpose) { printf("\n"); } if (strlen(gengetopt_args_info_description) > 0) { printf("%s\n\n", gengetopt_args_info_description); } } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); args_info->inputs = 0; args_info->inputs_num = 0; } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { unsigned int i; for (i = 0; i < args_info->inputs_num; ++i) free (args_info->inputs [i]); if (args_info->inputs_num) free (args_info->inputs); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } static void write_multiple_into_file(FILE *outfile, int len, const char *opt, char **arg, const char *values[]) { int i; for (i = 0; i < len; ++i) write_into_file(outfile, opt, (arg ? arg[i] : 0), values); } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); write_multiple_into_file(outfile, args_info->verbose_given, "verbose", 0, 0); if (args_info->quiet_given) write_into_file(outfile, "quiet", 0, 0 ); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } static int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc); int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc) { int error_occurred = 0; if (option_given && (min > 0 || max > 0)) { if (min > 0 && max > 0) { if (min == max) { /* specific occurrences */ if (option_given != (unsigned int) min) { fprintf (stderr, "%s: %s option occurrences must be %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (option_given < (unsigned int) min || option_given > (unsigned int) max) { /* range occurrences */ fprintf (stderr, "%s: %s option occurrences must be between %d and %d\n", prog_name, option_desc, min, max); error_occurred = 1; } } else if (min > 0) { /* at least check */ if (option_given < min) { fprintf (stderr, "%s: %s option occurrences must be at least %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (max > 0) { /* at most check */ if (option_given > max) { fprintf (stderr, "%s: %s option occurrences must be at most %d\n", prog_name, option_desc, max); error_occurred = 1; } } } return error_occurred; } int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { int result = EXIT_SUCCESS; if (cmdline_parser_required2(args_info, prog_name, 0) > 0) result = EXIT_FAILURE; return result; } int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error) { int error_occurred = 0; FIX_UNUSED (additional_error); /* checks for required options */ if (check_multiple_option_occurrences(prog_name, args_info->verbose_given, args_info->verbose_min, args_info->verbose_max, "'--verbose' ('-v')")) error_occurred = 1; /* checks for dependences among options */ return error_occurred; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { char *stop_char = 0; const char *val = value; int found; FIX_UNUSED (field); stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_FLAG: *((int *)field) = !*((int *)field); break; default: break; }; FIX_UNUSED(stop_char); FIX_UNUSED(val); /* store the original value */ switch(arg_type) { case ARG_NO: case ARG_FLAG: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error_occurred = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; /* TODO: Why is this here? It is not used anywhere. */ override = params->override; FIX_UNUSED(override); initialize = params->initialize; check_required = params->check_required; /* TODO: Why is this here? It is not used anywhere. */ check_ambiguity = params->check_ambiguity; FIX_UNUSED(check_ambiguity); if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "verbose", 0, NULL, 'v' }, { "quiet", 0, NULL, 'q' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVvq", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ if (update_arg( 0 , 0 , &(args_info->help_given), &(local_args_info.help_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "help", 'h', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'V': /* Print version and exit. */ cmdline_parser_print_version (); cmdline_parser_free (&local_args_info); exit (EXIT_SUCCESS); case 'v': /* Produce verbose output. Use multiple times to increase amount of information.. */ local_args_info.verbose_given++; break; case 'q': /* Don't produce any diagnostic output. . */ if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given), &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "quiet", 'q', additional_error)) goto failure; break; case 0: /* Long option with no short option */ case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ args_info->verbose_given += local_args_info.verbose_given; local_args_info.verbose_given = 0; if (check_required) { error_occurred += cmdline_parser_required2 (args_info, argv[0], additional_error); } cmdline_parser_release (&local_args_info); if ( error_occurred ) return (EXIT_FAILURE); if (optind < argc) { int i = 0 ; int found_prog_name = 0; /* whether program name, i.e., argv[0], is in the remaining args (this may happen with some implementations of getopt, but surely not with the one included by gengetopt) */ i = optind; while (i < argc) if (argv[i++] == argv[0]) { found_prog_name = 1; break; } i = 0; args_info->inputs_num = argc - optind - found_prog_name; args_info->inputs = (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ; while (optind < argc) if (argv[optind++] != argv[0]) args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ; } return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } /* vim: set ft=c noet ts=8 sts=8 sw=8 tw=80 nojs spell : */ shishi-1.0.3/src/shishi_cmd.c0000644000000000000000000012004114273615316012744 00000000000000/* File autogenerated by gengetopt version 2.23 generated with the following command: gengetopt --unamed-opts=CLIENT [SERVER] --no-handle-help --no-handle-error --no-handle-version --input ./shishi.ggo --file-name shishi_cmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include #include "shishi_cmd.h" const char *gengetopt_args_info_purpose = "Shishi command line client. If no command is given, Shishi\nacquire or list a valid ticket for you, identified by CLIENT (if\nempty, default username in default realm), for the service SERVER (if\nempty, ticket granting ticket for client realm)."; const char *gengetopt_args_info_usage = "Usage: shishi [OPTION]... [CLIENT [SERVER]]..."; const char *gengetopt_args_info_versiontext = ""; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", "\nCommands:", " -d, --destroy Destroy tickets in local cache, limited by any\n --client-name or --server-name.\n (default=off)", " -l, --list List tickets in local cache, limited by any\n --client-name and --server-name.\n (default=off)", " -r, --renew Renew ticket. Use --server-name to specify\n ticket, default is the most recent renewable\n ticket granting ticket for the default realm.\n (default=off)", "\nFlags:", " --forwardable Get a forwardable ticket, i.e., one that can be\n used to get forwarded tickets. (default=off)", " --forwarded Get a forwarded ticket. (default=off)", " --proxiable Get a proxiable ticket, i.e., one that can be\n used to get proxy tickets. (default=off)", " --proxy Get a proxy ticket. (default=off)", " --renewable Get a renewable ticket. (default=off)", "\nOptions:", " --client-name=NAME Client name. Default is login username.", " -E, --encryption-type=ETYPE,[ETYPE...]\n Encryption types to use. ETYPE is either\n registered name or integer. Valid values\n include 'aes128', 'aes256', 'aes' (same as\n 'aes256'), '3des', 'des-md5', 'des-md4',\n 'des-crc', 'des' (same as 'des-md5'), and\n 'arcfour'.", " -e, --endtime=STRING Specify when ticket validity should expire.\n The time syntax may be relative (to the start\n time), such as '20 hours', or absolute, such\n as '2001-02-03 04:05:06 CET'. The default is\n 8 hours after the start time.", " --realm=STRING Set default realm.", " --renew-till=STRING Specify renewable life of ticket. Implies\n --renewable. Accepts same time syntax as\n --endtime. If --renewable is specified, the\n default is 1 week after the start time.", " --server-name=NAME Server name. Default is 'krbtgt/REALM' where\n REALM is client realm.", " -s, --starttime=STRING Specify when ticket should start to be valid.\n Accepts same time syntax as --endtime. The\n default is to become valid immediately.", " --ticket-granter=NAME Service name in ticket to use for\n authenticating request. Only for TGS.\n Defaults to 'krbtgt/REALM@REALM' where REALM\n is client realm.", "\nOther options:", " --configuration-file=FILE Read user configuration from FILE.", " -c, --ticket-file=FILE Read tickets from FILE.", " -o, --library-options=STRING Parse STRING as a configuration file statement.", " -q, --quiet Don't produce any diagnostic output.\n (default=off)", " --system-configuration-file=FILE\n Read system configuration from FILE.", " --ticket-write-file=FILE Write tickets from FILE. Default is to write\n them back to where they were read from.", " -v, --verbose Produce verbose output.\n Use multiple times to increase amount of\n information.", 0 }; typedef enum {ARG_NO , ARG_FLAG , ARG_STRING } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->destroy_given = 0 ; args_info->list_given = 0 ; args_info->renew_given = 0 ; args_info->forwardable_given = 0 ; args_info->forwarded_given = 0 ; args_info->proxiable_given = 0 ; args_info->proxy_given = 0 ; args_info->renewable_given = 0 ; args_info->client_name_given = 0 ; args_info->encryption_type_given = 0 ; args_info->endtime_given = 0 ; args_info->realm_given = 0 ; args_info->renew_till_given = 0 ; args_info->server_name_given = 0 ; args_info->starttime_given = 0 ; args_info->ticket_granter_given = 0 ; args_info->configuration_file_given = 0 ; args_info->ticket_file_given = 0 ; args_info->library_options_given = 0 ; args_info->quiet_given = 0 ; args_info->system_configuration_file_given = 0 ; args_info->ticket_write_file_given = 0 ; args_info->verbose_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->destroy_flag = 0; args_info->list_flag = 0; args_info->renew_flag = 0; args_info->forwardable_flag = 0; args_info->forwarded_flag = 0; args_info->proxiable_flag = 0; args_info->proxy_flag = 0; args_info->renewable_flag = 0; args_info->client_name_arg = NULL; args_info->client_name_orig = NULL; args_info->encryption_type_arg = NULL; args_info->encryption_type_orig = NULL; args_info->endtime_arg = NULL; args_info->endtime_orig = NULL; args_info->realm_arg = NULL; args_info->realm_orig = NULL; args_info->renew_till_arg = NULL; args_info->renew_till_orig = NULL; args_info->server_name_arg = NULL; args_info->server_name_orig = NULL; args_info->starttime_arg = NULL; args_info->starttime_orig = NULL; args_info->ticket_granter_arg = NULL; args_info->ticket_granter_orig = NULL; args_info->configuration_file_arg = NULL; args_info->configuration_file_orig = NULL; args_info->ticket_file_arg = NULL; args_info->ticket_file_orig = NULL; args_info->library_options_arg = NULL; args_info->library_options_orig = NULL; args_info->quiet_flag = 0; args_info->system_configuration_file_arg = NULL; args_info->system_configuration_file_orig = NULL; args_info->ticket_write_file_arg = NULL; args_info->ticket_write_file_orig = NULL; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->destroy_help = gengetopt_args_info_help[3] ; args_info->list_help = gengetopt_args_info_help[4] ; args_info->renew_help = gengetopt_args_info_help[5] ; args_info->forwardable_help = gengetopt_args_info_help[7] ; args_info->forwarded_help = gengetopt_args_info_help[8] ; args_info->proxiable_help = gengetopt_args_info_help[9] ; args_info->proxy_help = gengetopt_args_info_help[10] ; args_info->renewable_help = gengetopt_args_info_help[11] ; args_info->client_name_help = gengetopt_args_info_help[13] ; args_info->encryption_type_help = gengetopt_args_info_help[14] ; args_info->endtime_help = gengetopt_args_info_help[15] ; args_info->realm_help = gengetopt_args_info_help[16] ; args_info->renew_till_help = gengetopt_args_info_help[17] ; args_info->server_name_help = gengetopt_args_info_help[18] ; args_info->starttime_help = gengetopt_args_info_help[19] ; args_info->ticket_granter_help = gengetopt_args_info_help[20] ; args_info->configuration_file_help = gengetopt_args_info_help[22] ; args_info->ticket_file_help = gengetopt_args_info_help[23] ; args_info->library_options_help = gengetopt_args_info_help[24] ; args_info->quiet_help = gengetopt_args_info_help[25] ; args_info->system_configuration_file_help = gengetopt_args_info_help[26] ; args_info->ticket_write_file_help = gengetopt_args_info_help[27] ; args_info->verbose_help = gengetopt_args_info_help[28] ; args_info->verbose_min = 0; args_info->verbose_max = 0; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); if (strlen(gengetopt_args_info_versiontext) > 0) printf("\n%s\n", gengetopt_args_info_versiontext); } static void print_help_common(void) { size_t len_purpose = strlen(gengetopt_args_info_purpose); size_t len_usage = strlen(gengetopt_args_info_usage); if (len_usage > 0) { printf("%s\n", gengetopt_args_info_usage); } if (len_purpose > 0) { printf("%s\n", gengetopt_args_info_purpose); } if (len_usage || len_purpose) { printf("\n"); } if (strlen(gengetopt_args_info_description) > 0) { printf("%s\n\n", gengetopt_args_info_description); } } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); args_info->inputs = 0; args_info->inputs_num = 0; } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void free_string_field (char **s) { if (*s) { free (*s); *s = 0; } } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { unsigned int i; free_string_field (&(args_info->client_name_arg)); free_string_field (&(args_info->client_name_orig)); free_string_field (&(args_info->encryption_type_arg)); free_string_field (&(args_info->encryption_type_orig)); free_string_field (&(args_info->endtime_arg)); free_string_field (&(args_info->endtime_orig)); free_string_field (&(args_info->realm_arg)); free_string_field (&(args_info->realm_orig)); free_string_field (&(args_info->renew_till_arg)); free_string_field (&(args_info->renew_till_orig)); free_string_field (&(args_info->server_name_arg)); free_string_field (&(args_info->server_name_orig)); free_string_field (&(args_info->starttime_arg)); free_string_field (&(args_info->starttime_orig)); free_string_field (&(args_info->ticket_granter_arg)); free_string_field (&(args_info->ticket_granter_orig)); free_string_field (&(args_info->configuration_file_arg)); free_string_field (&(args_info->configuration_file_orig)); free_string_field (&(args_info->ticket_file_arg)); free_string_field (&(args_info->ticket_file_orig)); free_string_field (&(args_info->library_options_arg)); free_string_field (&(args_info->library_options_orig)); free_string_field (&(args_info->system_configuration_file_arg)); free_string_field (&(args_info->system_configuration_file_orig)); free_string_field (&(args_info->ticket_write_file_arg)); free_string_field (&(args_info->ticket_write_file_orig)); for (i = 0; i < args_info->inputs_num; ++i) free (args_info->inputs [i]); if (args_info->inputs_num) free (args_info->inputs); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } static void write_multiple_into_file(FILE *outfile, int len, const char *opt, char **arg, const char *values[]) { int i; for (i = 0; i < len; ++i) write_into_file(outfile, opt, (arg ? arg[i] : 0), values); } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); if (args_info->destroy_given) write_into_file(outfile, "destroy", 0, 0 ); if (args_info->list_given) write_into_file(outfile, "list", 0, 0 ); if (args_info->renew_given) write_into_file(outfile, "renew", 0, 0 ); if (args_info->forwardable_given) write_into_file(outfile, "forwardable", 0, 0 ); if (args_info->forwarded_given) write_into_file(outfile, "forwarded", 0, 0 ); if (args_info->proxiable_given) write_into_file(outfile, "proxiable", 0, 0 ); if (args_info->proxy_given) write_into_file(outfile, "proxy", 0, 0 ); if (args_info->renewable_given) write_into_file(outfile, "renewable", 0, 0 ); if (args_info->client_name_given) write_into_file(outfile, "client-name", args_info->client_name_orig, 0); if (args_info->encryption_type_given) write_into_file(outfile, "encryption-type", args_info->encryption_type_orig, 0); if (args_info->endtime_given) write_into_file(outfile, "endtime", args_info->endtime_orig, 0); if (args_info->realm_given) write_into_file(outfile, "realm", args_info->realm_orig, 0); if (args_info->renew_till_given) write_into_file(outfile, "renew-till", args_info->renew_till_orig, 0); if (args_info->server_name_given) write_into_file(outfile, "server-name", args_info->server_name_orig, 0); if (args_info->starttime_given) write_into_file(outfile, "starttime", args_info->starttime_orig, 0); if (args_info->ticket_granter_given) write_into_file(outfile, "ticket-granter", args_info->ticket_granter_orig, 0); if (args_info->configuration_file_given) write_into_file(outfile, "configuration-file", args_info->configuration_file_orig, 0); if (args_info->ticket_file_given) write_into_file(outfile, "ticket-file", args_info->ticket_file_orig, 0); if (args_info->library_options_given) write_into_file(outfile, "library-options", args_info->library_options_orig, 0); if (args_info->quiet_given) write_into_file(outfile, "quiet", 0, 0 ); if (args_info->system_configuration_file_given) write_into_file(outfile, "system-configuration-file", args_info->system_configuration_file_orig, 0); if (args_info->ticket_write_file_given) write_into_file(outfile, "ticket-write-file", args_info->ticket_write_file_orig, 0); write_multiple_into_file(outfile, args_info->verbose_given, "verbose", 0, 0); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } static int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc); int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc) { int error_occurred = 0; if (option_given && (min > 0 || max > 0)) { if (min > 0 && max > 0) { if (min == max) { /* specific occurrences */ if (option_given != (unsigned int) min) { fprintf (stderr, "%s: %s option occurrences must be %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (option_given < (unsigned int) min || option_given > (unsigned int) max) { /* range occurrences */ fprintf (stderr, "%s: %s option occurrences must be between %d and %d\n", prog_name, option_desc, min, max); error_occurred = 1; } } else if (min > 0) { /* at least check */ if (option_given < min) { fprintf (stderr, "%s: %s option occurrences must be at least %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (max > 0) { /* at most check */ if (option_given > max) { fprintf (stderr, "%s: %s option occurrences must be at most %d\n", prog_name, option_desc, max); error_occurred = 1; } } } return error_occurred; } int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { int result = EXIT_SUCCESS; if (cmdline_parser_required2(args_info, prog_name, 0) > 0) result = EXIT_FAILURE; return result; } int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error) { int error_occurred = 0; FIX_UNUSED (additional_error); /* checks for required options */ if (check_multiple_option_occurrences(prog_name, args_info->verbose_given, args_info->verbose_min, args_info->verbose_max, "'--verbose' ('-v')")) error_occurred = 1; /* checks for dependences among options */ return error_occurred; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { char *stop_char = 0; const char *val = value; int found; char **string_field; FIX_UNUSED (field); stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_FLAG: *((int *)field) = !*((int *)field); break; case ARG_STRING: if (val) { string_field = (char **)field; if (!no_free && *string_field) free (*string_field); /* free previous string */ *string_field = gengetopt_strdup (val); } break; default: break; }; FIX_UNUSED(stop_char); /* store the original value */ switch(arg_type) { case ARG_NO: case ARG_FLAG: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error_occurred = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; /* TODO: Why is this here? It is not used anywhere. */ override = params->override; FIX_UNUSED(override); initialize = params->initialize; check_required = params->check_required; /* TODO: Why is this here? It is not used anywhere. */ check_ambiguity = params->check_ambiguity; FIX_UNUSED(check_ambiguity); if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "destroy", 0, NULL, 'd' }, { "list", 0, NULL, 'l' }, { "renew", 0, NULL, 'r' }, { "forwardable", 0, NULL, 0 }, { "forwarded", 0, NULL, 0 }, { "proxiable", 0, NULL, 0 }, { "proxy", 0, NULL, 0 }, { "renewable", 0, NULL, 0 }, { "client-name", 1, NULL, 0 }, { "encryption-type", 1, NULL, 'E' }, { "endtime", 1, NULL, 'e' }, { "realm", 1, NULL, 0 }, { "renew-till", 1, NULL, 0 }, { "server-name", 1, NULL, 0 }, { "starttime", 1, NULL, 's' }, { "ticket-granter", 1, NULL, 0 }, { "configuration-file", 1, NULL, 0 }, { "ticket-file", 1, NULL, 'c' }, { "library-options", 1, NULL, 'o' }, { "quiet", 0, NULL, 'q' }, { "system-configuration-file", 1, NULL, 0 }, { "ticket-write-file", 1, NULL, 0 }, { "verbose", 0, NULL, 'v' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVdlrE:e:s:c:o:qv", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ if (update_arg( 0 , 0 , &(args_info->help_given), &(local_args_info.help_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "help", 'h', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'V': /* Print version and exit. */ if (update_arg( 0 , 0 , &(args_info->version_given), &(local_args_info.version_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "version", 'V', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'd': /* Destroy tickets in local cache, limited by any --client-name or --server-name.. */ if (update_arg((void *)&(args_info->destroy_flag), 0, &(args_info->destroy_given), &(local_args_info.destroy_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "destroy", 'd', additional_error)) goto failure; break; case 'l': /* List tickets in local cache, limited by any --client-name and --server-name.. */ if (update_arg((void *)&(args_info->list_flag), 0, &(args_info->list_given), &(local_args_info.list_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "list", 'l', additional_error)) goto failure; break; case 'r': /* Renew ticket. Use --server-name to specify ticket, default is the most recent renewable ticket granting ticket for the default realm.. */ if (update_arg((void *)&(args_info->renew_flag), 0, &(args_info->renew_given), &(local_args_info.renew_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "renew", 'r', additional_error)) goto failure; break; case 'E': /* Encryption types to use. ETYPE is either registered name or integer. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'.. */ if (update_arg( (void *)&(args_info->encryption_type_arg), &(args_info->encryption_type_orig), &(args_info->encryption_type_given), &(local_args_info.encryption_type_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "encryption-type", 'E', additional_error)) goto failure; break; case 'e': /* Specify when ticket validity should expire. The time syntax may be relative (to the start time), such as '20 hours', or absolute, such as '2001-02-03 04:05:06 CET'. The default is 8 hours after the start time.. */ if (update_arg( (void *)&(args_info->endtime_arg), &(args_info->endtime_orig), &(args_info->endtime_given), &(local_args_info.endtime_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "endtime", 'e', additional_error)) goto failure; break; case 's': /* Specify when ticket should start to be valid. Accepts same time syntax as --endtime. The default is to become valid immediately.. */ if (update_arg( (void *)&(args_info->starttime_arg), &(args_info->starttime_orig), &(args_info->starttime_given), &(local_args_info.starttime_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "starttime", 's', additional_error)) goto failure; break; case 'c': /* Read tickets from FILE.. */ if (update_arg( (void *)&(args_info->ticket_file_arg), &(args_info->ticket_file_orig), &(args_info->ticket_file_given), &(local_args_info.ticket_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "ticket-file", 'c', additional_error)) goto failure; break; case 'o': /* Parse STRING as a configuration file statement.. */ if (update_arg( (void *)&(args_info->library_options_arg), &(args_info->library_options_orig), &(args_info->library_options_given), &(local_args_info.library_options_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "library-options", 'o', additional_error)) goto failure; break; case 'q': /* Don't produce any diagnostic output. . */ if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given), &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "quiet", 'q', additional_error)) goto failure; break; case 'v': /* Produce verbose output. Use multiple times to increase amount of information.. */ local_args_info.verbose_given++; break; case 0: /* Long option with no short option */ /* Get a forwardable ticket, i.e., one that can be used to get forwarded tickets.. */ if (strcmp (long_options[option_index].name, "forwardable") == 0) { if (update_arg((void *)&(args_info->forwardable_flag), 0, &(args_info->forwardable_given), &(local_args_info.forwardable_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "forwardable", '-', additional_error)) goto failure; } /* Get a forwarded ticket.. */ else if (strcmp (long_options[option_index].name, "forwarded") == 0) { if (update_arg((void *)&(args_info->forwarded_flag), 0, &(args_info->forwarded_given), &(local_args_info.forwarded_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "forwarded", '-', additional_error)) goto failure; } /* Get a proxiable ticket, i.e., one that can be used to get proxy tickets.. */ else if (strcmp (long_options[option_index].name, "proxiable") == 0) { if (update_arg((void *)&(args_info->proxiable_flag), 0, &(args_info->proxiable_given), &(local_args_info.proxiable_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "proxiable", '-', additional_error)) goto failure; } /* Get a proxy ticket.. */ else if (strcmp (long_options[option_index].name, "proxy") == 0) { if (update_arg((void *)&(args_info->proxy_flag), 0, &(args_info->proxy_given), &(local_args_info.proxy_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "proxy", '-', additional_error)) goto failure; } /* Get a renewable ticket.. */ else if (strcmp (long_options[option_index].name, "renewable") == 0) { if (update_arg((void *)&(args_info->renewable_flag), 0, &(args_info->renewable_given), &(local_args_info.renewable_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "renewable", '-', additional_error)) goto failure; } /* Client name. Default is login username.. */ else if (strcmp (long_options[option_index].name, "client-name") == 0) { if (update_arg( (void *)&(args_info->client_name_arg), &(args_info->client_name_orig), &(args_info->client_name_given), &(local_args_info.client_name_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "client-name", '-', additional_error)) goto failure; } /* Set default realm.. */ else if (strcmp (long_options[option_index].name, "realm") == 0) { if (update_arg( (void *)&(args_info->realm_arg), &(args_info->realm_orig), &(args_info->realm_given), &(local_args_info.realm_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "realm", '-', additional_error)) goto failure; } /* Specify renewable life of ticket. Implies --renewable. Accepts same time syntax as --endtime. If --renewable is specified, the default is 1 week after the start time.. */ else if (strcmp (long_options[option_index].name, "renew-till") == 0) { if (update_arg( (void *)&(args_info->renew_till_arg), &(args_info->renew_till_orig), &(args_info->renew_till_given), &(local_args_info.renew_till_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "renew-till", '-', additional_error)) goto failure; } /* Server name. Default is 'krbtgt/REALM' where REALM is client realm.. */ else if (strcmp (long_options[option_index].name, "server-name") == 0) { if (update_arg( (void *)&(args_info->server_name_arg), &(args_info->server_name_orig), &(args_info->server_name_given), &(local_args_info.server_name_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "server-name", '-', additional_error)) goto failure; } /* Service name in ticket to use for authenticating request. Only for TGS. Defaults to 'krbtgt/REALM@REALM' where REALM is client realm.. */ else if (strcmp (long_options[option_index].name, "ticket-granter") == 0) { if (update_arg( (void *)&(args_info->ticket_granter_arg), &(args_info->ticket_granter_orig), &(args_info->ticket_granter_given), &(local_args_info.ticket_granter_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "ticket-granter", '-', additional_error)) goto failure; } /* Read user configuration from FILE.. */ else if (strcmp (long_options[option_index].name, "configuration-file") == 0) { if (update_arg( (void *)&(args_info->configuration_file_arg), &(args_info->configuration_file_orig), &(args_info->configuration_file_given), &(local_args_info.configuration_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "configuration-file", '-', additional_error)) goto failure; } /* Read system configuration from FILE.. */ else if (strcmp (long_options[option_index].name, "system-configuration-file") == 0) { if (update_arg( (void *)&(args_info->system_configuration_file_arg), &(args_info->system_configuration_file_orig), &(args_info->system_configuration_file_given), &(local_args_info.system_configuration_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "system-configuration-file", '-', additional_error)) goto failure; } /* Write tickets from FILE. Default is to write them back to where they were read from.. */ else if (strcmp (long_options[option_index].name, "ticket-write-file") == 0) { if (update_arg( (void *)&(args_info->ticket_write_file_arg), &(args_info->ticket_write_file_orig), &(args_info->ticket_write_file_given), &(local_args_info.ticket_write_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "ticket-write-file", '-', additional_error)) goto failure; } break; case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ args_info->verbose_given += local_args_info.verbose_given; local_args_info.verbose_given = 0; if (check_required) { error_occurred += cmdline_parser_required2 (args_info, argv[0], additional_error); } cmdline_parser_release (&local_args_info); if ( error_occurred ) return (EXIT_FAILURE); if (optind < argc) { int i = 0 ; int found_prog_name = 0; /* whether program name, i.e., argv[0], is in the remaining args (this may happen with some implementations of getopt, but surely not with the one included by gengetopt) */ i = optind; while (i < argc) if (argv[i++] == argv[0]) { found_prog_name = 1; break; } i = 0; args_info->inputs_num = argc - optind - found_prog_name; args_info->inputs = (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ; while (optind < argc) if (argv[optind++] != argv[0]) args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ; } return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } /* vim: set ft=c noet ts=8 sts=8 sw=8 tw=80 nojs spell : */ shishi-1.0.3/src/keytab2shishi_cmd.c0000644000000000000000000004245614273615316014243 00000000000000/* File autogenerated by gengetopt version 2.23 generated with the following command: gengetopt --unamed-opts=INFILE [OUTFILE] --no-handle-help --no-handle-error --input ./keytab2shishi.ggo --file-name keytab2shishi_cmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include #include "keytab2shishi_cmd.h" const char *gengetopt_args_info_purpose = "Read keytab data from INFILE (usually /etc/krb5.keytab) and\nwrite Shishi hostkeys to OUTFILE. If INFILE and OUTFILE are not\nspecified, use the defaults."; const char *gengetopt_args_info_usage = "Usage: keytab2shishi [OPTION]... [INFILE [OUTFILE]]..."; const char *gengetopt_args_info_versiontext = ""; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", " -R, --reverse Reverse action, read Shishi hostkeys from INFILE and write\n keytab data to OUTFILE. (default=off)", " -v, --verbose Produce verbose output.\n Use multiple times to increase amount of information.", " -q, --quiet Don't produce any diagnostic output.\n (default=off)", 0 }; typedef enum {ARG_NO , ARG_FLAG } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->reverse_given = 0 ; args_info->verbose_given = 0 ; args_info->quiet_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->reverse_flag = 0; args_info->quiet_flag = 0; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->reverse_help = gengetopt_args_info_help[2] ; args_info->verbose_help = gengetopt_args_info_help[3] ; args_info->verbose_min = 0; args_info->verbose_max = 0; args_info->quiet_help = gengetopt_args_info_help[4] ; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); if (strlen(gengetopt_args_info_versiontext) > 0) printf("\n%s\n", gengetopt_args_info_versiontext); } static void print_help_common(void) { size_t len_purpose = strlen(gengetopt_args_info_purpose); size_t len_usage = strlen(gengetopt_args_info_usage); if (len_usage > 0) { printf("%s\n", gengetopt_args_info_usage); } if (len_purpose > 0) { printf("%s\n", gengetopt_args_info_purpose); } if (len_usage || len_purpose) { printf("\n"); } if (strlen(gengetopt_args_info_description) > 0) { printf("%s\n\n", gengetopt_args_info_description); } } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); args_info->inputs = 0; args_info->inputs_num = 0; } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { unsigned int i; for (i = 0; i < args_info->inputs_num; ++i) free (args_info->inputs [i]); if (args_info->inputs_num) free (args_info->inputs); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } static void write_multiple_into_file(FILE *outfile, int len, const char *opt, char **arg, const char *values[]) { int i; for (i = 0; i < len; ++i) write_into_file(outfile, opt, (arg ? arg[i] : 0), values); } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); if (args_info->reverse_given) write_into_file(outfile, "reverse", 0, 0 ); write_multiple_into_file(outfile, args_info->verbose_given, "verbose", 0, 0); if (args_info->quiet_given) write_into_file(outfile, "quiet", 0, 0 ); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } static int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc); int check_multiple_option_occurrences(const char *prog_name, unsigned int option_given, unsigned int min, unsigned int max, const char *option_desc) { int error_occurred = 0; if (option_given && (min > 0 || max > 0)) { if (min > 0 && max > 0) { if (min == max) { /* specific occurrences */ if (option_given != (unsigned int) min) { fprintf (stderr, "%s: %s option occurrences must be %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (option_given < (unsigned int) min || option_given > (unsigned int) max) { /* range occurrences */ fprintf (stderr, "%s: %s option occurrences must be between %d and %d\n", prog_name, option_desc, min, max); error_occurred = 1; } } else if (min > 0) { /* at least check */ if (option_given < min) { fprintf (stderr, "%s: %s option occurrences must be at least %d\n", prog_name, option_desc, min); error_occurred = 1; } } else if (max > 0) { /* at most check */ if (option_given > max) { fprintf (stderr, "%s: %s option occurrences must be at most %d\n", prog_name, option_desc, max); error_occurred = 1; } } } return error_occurred; } int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { int result = EXIT_SUCCESS; if (cmdline_parser_required2(args_info, prog_name, 0) > 0) result = EXIT_FAILURE; return result; } int cmdline_parser_required2 (struct gengetopt_args_info *args_info, const char *prog_name, const char *additional_error) { int error_occurred = 0; FIX_UNUSED (additional_error); /* checks for required options */ if (check_multiple_option_occurrences(prog_name, args_info->verbose_given, args_info->verbose_min, args_info->verbose_max, "'--verbose' ('-v')")) error_occurred = 1; /* checks for dependences among options */ return error_occurred; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { char *stop_char = 0; const char *val = value; int found; FIX_UNUSED (field); stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_FLAG: *((int *)field) = !*((int *)field); break; default: break; }; FIX_UNUSED(stop_char); FIX_UNUSED(val); /* store the original value */ switch(arg_type) { case ARG_NO: case ARG_FLAG: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error_occurred = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; /* TODO: Why is this here? It is not used anywhere. */ override = params->override; FIX_UNUSED(override); initialize = params->initialize; check_required = params->check_required; /* TODO: Why is this here? It is not used anywhere. */ check_ambiguity = params->check_ambiguity; FIX_UNUSED(check_ambiguity); if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "reverse", 0, NULL, 'R' }, { "verbose", 0, NULL, 'v' }, { "quiet", 0, NULL, 'q' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVRvq", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ if (update_arg( 0 , 0 , &(args_info->help_given), &(local_args_info.help_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "help", 'h', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'V': /* Print version and exit. */ cmdline_parser_print_version (); cmdline_parser_free (&local_args_info); exit (EXIT_SUCCESS); case 'R': /* Reverse action, read Shishi hostkeys from INFILE and write keytab data to OUTFILE.. */ if (update_arg((void *)&(args_info->reverse_flag), 0, &(args_info->reverse_given), &(local_args_info.reverse_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "reverse", 'R', additional_error)) goto failure; break; case 'v': /* Produce verbose output. Use multiple times to increase amount of information.. */ local_args_info.verbose_given++; break; case 'q': /* Don't produce any diagnostic output. . */ if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given), &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "quiet", 'q', additional_error)) goto failure; break; case 0: /* Long option with no short option */ case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ args_info->verbose_given += local_args_info.verbose_given; local_args_info.verbose_given = 0; if (check_required) { error_occurred += cmdline_parser_required2 (args_info, argv[0], additional_error); } cmdline_parser_release (&local_args_info); if ( error_occurred ) return (EXIT_FAILURE); if (optind < argc) { int i = 0 ; int found_prog_name = 0; /* whether program name, i.e., argv[0], is in the remaining args (this may happen with some implementations of getopt, but surely not with the one included by gengetopt) */ i = optind; while (i < argc) if (argv[i++] == argv[0]) { found_prog_name = 1; break; } i = 0; args_info->inputs_num = argc - optind - found_prog_name; args_info->inputs = (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ; while (optind < argc) if (argv[optind++] != argv[0]) args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ; } return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } /* vim: set ft=c noet ts=8 sts=8 sw=8 tw=80 nojs spell : */ shishi-1.0.3/src/ccache2shishi.ggo0000644000000000000000000000232514273600463013665 00000000000000## Process this file with gengetopt to produce ccache2shishi_cmd.* # Copyright (C) 2006-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. package "ccache2shishi" purpose "Read ccache data from INFILE (usually /tmp/krb5cc_UID) and write Shishi tickets to OUTFILE. If INFILE and OUTFILE are not specified, use the defaults." option "verbose" v "Produce verbose output.\nUse multiple times to increase amount of information." no multiple option "quiet" q "Don't produce any diagnostic output.\n" flag off shishi-1.0.3/src/shisa_cmd.c0000644000000000000000000010224514273615316012572 00000000000000/* File autogenerated by gengetopt version 2.23 generated with the following command: gengetopt --unamed-opts=REALM [PRINCIPAL] --no-handle-help --no-handle-error --no-handle-version --input ./shisa.ggo --file-name shisa_cmd The developers of gengetopt consider the fixed text that goes in all gengetopt output files to be in the public domain: we make no copyright claims on it. */ /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifndef FIX_UNUSED #define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ #endif #include #include "shisa_cmd.h" const char *gengetopt_args_info_purpose = "Manipulate information stored in the Shisa user database."; const char *gengetopt_args_info_usage = "Usage: shisa [OPTION]... [REALM [PRINCIPAL]]..."; const char *gengetopt_args_info_versiontext = ""; const char *gengetopt_args_info_description = ""; const char *gengetopt_args_info_help[] = { " -h, --help Print help and exit", " -V, --version Print version and exit", "\nOperations:", " -a, --add Add realm or principal to database.", " -d, --dump Dump entries in database.", " -n, --key-add Add new key to a principal in database.", " --key-remove Remove a key from a principal in database.", " -l, --list List entries in database.", " -m, --modify Modify principal entry in database.", " -r, --remove Remove realm or principal from database.", "\nParameters:", " -f, --force Allow removal of non-empty realms.\n (default=off)", " --enabled Only dump or list enabled principals.\n (default=off)", " --disabled Only dump or list disabled principals.\n (default=off)", " --keys Print cryptographic key and password in hostkey\n format. (default=off)", "\nValues:", " -E, --encryption-type=STRING Override default key encryption type. Valid\n values include 'aes128', 'aes256', 'aes'\n (same as 'aes256'), '3des', 'des-md5',\n 'des-md4', 'des-crc', 'des' (same as\n 'des-md5'), and 'arcfour'.", " --key-version=NUMBER Version of key.", " --password[=STRING] Derive key from this password.", " --priority=NUMBER Specify key priority, used to differentiate\n between keys when multiple keys are eligible\n for use. Higher value means higher priority.\n (default is 0, which mean a random key of the\n best etype is chosen)", " --random Use a random key. (default)", " --salt=STRING Use specified salt for deriving key. Defaults\n to concatenation of realm and (unwrapped)\n principal name.", " --string-to-key-parameter=HEX\n Encryption algorithm specific parameter for\n password derivation. Currently only the AES\n algorithm can utilize this, where it is\n interpreted as the iteration count of the\n PKCS#5 PBKDF2 key deriver.", "\nOther options:", " -c, --configuration-file=FILE Use specified configuration file.", " -o, --library-options=STRING Parse string as configuration file statement.", " -v, --verbose Produce verbose output.\n (default=off)", " -q, --quiet Don't produce any diagnostic output.\n (default=off)", 0 }; typedef enum {ARG_NO , ARG_FLAG , ARG_STRING , ARG_LONG } cmdline_parser_arg_type; static void clear_given (struct gengetopt_args_info *args_info); static void clear_args (struct gengetopt_args_info *args_info); static int cmdline_parser_internal (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error); static char * gengetopt_strdup (const char *s); static void clear_given (struct gengetopt_args_info *args_info) { args_info->help_given = 0 ; args_info->version_given = 0 ; args_info->add_given = 0 ; args_info->dump_given = 0 ; args_info->key_add_given = 0 ; args_info->key_remove_given = 0 ; args_info->list_given = 0 ; args_info->modify_given = 0 ; args_info->remove_given = 0 ; args_info->force_given = 0 ; args_info->enabled_given = 0 ; args_info->disabled_given = 0 ; args_info->keys_given = 0 ; args_info->encryption_type_given = 0 ; args_info->key_version_given = 0 ; args_info->password_given = 0 ; args_info->priority_given = 0 ; args_info->random_given = 0 ; args_info->salt_given = 0 ; args_info->string_to_key_parameter_given = 0 ; args_info->configuration_file_given = 0 ; args_info->library_options_given = 0 ; args_info->verbose_given = 0 ; args_info->quiet_given = 0 ; } static void clear_args (struct gengetopt_args_info *args_info) { FIX_UNUSED (args_info); args_info->force_flag = 0; args_info->enabled_flag = 0; args_info->disabled_flag = 0; args_info->keys_flag = 0; args_info->encryption_type_arg = NULL; args_info->encryption_type_orig = NULL; args_info->key_version_orig = NULL; args_info->password_arg = NULL; args_info->password_orig = NULL; args_info->priority_orig = NULL; args_info->salt_arg = NULL; args_info->salt_orig = NULL; args_info->string_to_key_parameter_arg = NULL; args_info->string_to_key_parameter_orig = NULL; args_info->configuration_file_arg = NULL; args_info->configuration_file_orig = NULL; args_info->library_options_arg = NULL; args_info->library_options_orig = NULL; args_info->verbose_flag = 0; args_info->quiet_flag = 0; } static void init_args_info(struct gengetopt_args_info *args_info) { args_info->help_help = gengetopt_args_info_help[0] ; args_info->version_help = gengetopt_args_info_help[1] ; args_info->add_help = gengetopt_args_info_help[3] ; args_info->dump_help = gengetopt_args_info_help[4] ; args_info->key_add_help = gengetopt_args_info_help[5] ; args_info->key_remove_help = gengetopt_args_info_help[6] ; args_info->list_help = gengetopt_args_info_help[7] ; args_info->modify_help = gengetopt_args_info_help[8] ; args_info->remove_help = gengetopt_args_info_help[9] ; args_info->force_help = gengetopt_args_info_help[11] ; args_info->enabled_help = gengetopt_args_info_help[12] ; args_info->disabled_help = gengetopt_args_info_help[13] ; args_info->keys_help = gengetopt_args_info_help[14] ; args_info->encryption_type_help = gengetopt_args_info_help[16] ; args_info->key_version_help = gengetopt_args_info_help[17] ; args_info->password_help = gengetopt_args_info_help[18] ; args_info->priority_help = gengetopt_args_info_help[19] ; args_info->random_help = gengetopt_args_info_help[20] ; args_info->salt_help = gengetopt_args_info_help[21] ; args_info->string_to_key_parameter_help = gengetopt_args_info_help[22] ; args_info->configuration_file_help = gengetopt_args_info_help[24] ; args_info->library_options_help = gengetopt_args_info_help[25] ; args_info->verbose_help = gengetopt_args_info_help[26] ; args_info->quiet_help = gengetopt_args_info_help[27] ; } void cmdline_parser_print_version (void) { printf ("%s %s\n", (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE), CMDLINE_PARSER_VERSION); if (strlen(gengetopt_args_info_versiontext) > 0) printf("\n%s\n", gengetopt_args_info_versiontext); } static void print_help_common(void) { size_t len_purpose = strlen(gengetopt_args_info_purpose); size_t len_usage = strlen(gengetopt_args_info_usage); if (len_usage > 0) { printf("%s\n", gengetopt_args_info_usage); } if (len_purpose > 0) { printf("%s\n", gengetopt_args_info_purpose); } if (len_usage || len_purpose) { printf("\n"); } if (strlen(gengetopt_args_info_description) > 0) { printf("%s\n\n", gengetopt_args_info_description); } } void cmdline_parser_print_help (void) { int i = 0; print_help_common(); while (gengetopt_args_info_help[i]) printf("%s\n", gengetopt_args_info_help[i++]); } void cmdline_parser_init (struct gengetopt_args_info *args_info) { clear_given (args_info); clear_args (args_info); init_args_info (args_info); args_info->inputs = 0; args_info->inputs_num = 0; } void cmdline_parser_params_init(struct cmdline_parser_params *params) { if (params) { params->override = 0; params->initialize = 1; params->check_required = 1; params->check_ambiguity = 0; params->print_errors = 1; } } struct cmdline_parser_params * cmdline_parser_params_create(void) { struct cmdline_parser_params *params = (struct cmdline_parser_params *)malloc(sizeof(struct cmdline_parser_params)); cmdline_parser_params_init(params); return params; } static void free_string_field (char **s) { if (*s) { free (*s); *s = 0; } } static void cmdline_parser_release (struct gengetopt_args_info *args_info) { unsigned int i; free_string_field (&(args_info->encryption_type_arg)); free_string_field (&(args_info->encryption_type_orig)); free_string_field (&(args_info->key_version_orig)); free_string_field (&(args_info->password_arg)); free_string_field (&(args_info->password_orig)); free_string_field (&(args_info->priority_orig)); free_string_field (&(args_info->salt_arg)); free_string_field (&(args_info->salt_orig)); free_string_field (&(args_info->string_to_key_parameter_arg)); free_string_field (&(args_info->string_to_key_parameter_orig)); free_string_field (&(args_info->configuration_file_arg)); free_string_field (&(args_info->configuration_file_orig)); free_string_field (&(args_info->library_options_arg)); free_string_field (&(args_info->library_options_orig)); for (i = 0; i < args_info->inputs_num; ++i) free (args_info->inputs [i]); if (args_info->inputs_num) free (args_info->inputs); clear_given (args_info); } static void write_into_file(FILE *outfile, const char *opt, const char *arg, const char *values[]) { FIX_UNUSED (values); if (arg) { fprintf(outfile, "%s=\"%s\"\n", opt, arg); } else { fprintf(outfile, "%s\n", opt); } } int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info) { int i = 0; if (!outfile) { fprintf (stderr, "%s: cannot dump options to stream\n", CMDLINE_PARSER_PACKAGE); return EXIT_FAILURE; } if (args_info->help_given) write_into_file(outfile, "help", 0, 0 ); if (args_info->version_given) write_into_file(outfile, "version", 0, 0 ); if (args_info->add_given) write_into_file(outfile, "add", 0, 0 ); if (args_info->dump_given) write_into_file(outfile, "dump", 0, 0 ); if (args_info->key_add_given) write_into_file(outfile, "key-add", 0, 0 ); if (args_info->key_remove_given) write_into_file(outfile, "key-remove", 0, 0 ); if (args_info->list_given) write_into_file(outfile, "list", 0, 0 ); if (args_info->modify_given) write_into_file(outfile, "modify", 0, 0 ); if (args_info->remove_given) write_into_file(outfile, "remove", 0, 0 ); if (args_info->force_given) write_into_file(outfile, "force", 0, 0 ); if (args_info->enabled_given) write_into_file(outfile, "enabled", 0, 0 ); if (args_info->disabled_given) write_into_file(outfile, "disabled", 0, 0 ); if (args_info->keys_given) write_into_file(outfile, "keys", 0, 0 ); if (args_info->encryption_type_given) write_into_file(outfile, "encryption-type", args_info->encryption_type_orig, 0); if (args_info->key_version_given) write_into_file(outfile, "key-version", args_info->key_version_orig, 0); if (args_info->password_given) write_into_file(outfile, "password", args_info->password_orig, 0); if (args_info->priority_given) write_into_file(outfile, "priority", args_info->priority_orig, 0); if (args_info->random_given) write_into_file(outfile, "random", 0, 0 ); if (args_info->salt_given) write_into_file(outfile, "salt", args_info->salt_orig, 0); if (args_info->string_to_key_parameter_given) write_into_file(outfile, "string-to-key-parameter", args_info->string_to_key_parameter_orig, 0); if (args_info->configuration_file_given) write_into_file(outfile, "configuration-file", args_info->configuration_file_orig, 0); if (args_info->library_options_given) write_into_file(outfile, "library-options", args_info->library_options_orig, 0); if (args_info->verbose_given) write_into_file(outfile, "verbose", 0, 0 ); if (args_info->quiet_given) write_into_file(outfile, "quiet", 0, 0 ); i = EXIT_SUCCESS; return i; } int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info) { FILE *outfile; int i = 0; outfile = fopen(filename, "w"); if (!outfile) { fprintf (stderr, "%s: cannot open file for writing: %s\n", CMDLINE_PARSER_PACKAGE, filename); return EXIT_FAILURE; } i = cmdline_parser_dump(outfile, args_info); fclose (outfile); return i; } void cmdline_parser_free (struct gengetopt_args_info *args_info) { cmdline_parser_release (args_info); } /** @brief replacement of strdup, which is not standard */ char * gengetopt_strdup (const char *s) { char *result = 0; if (!s) return result; result = (char*)malloc(strlen(s) + 1); if (result == (char*)0) return (char*)0; strcpy(result, s); return result; } int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info) { return cmdline_parser2 (argc, argv, args_info, 0, 1, 1); } int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params) { int result; result = cmdline_parser_internal (argc, argv, args_info, params, 0); return result; } int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required) { int result; struct cmdline_parser_params params; params.override = override; params.initialize = initialize; params.check_required = check_required; params.check_ambiguity = 0; params.print_errors = 1; result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0); return result; } int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name) { FIX_UNUSED (args_info); FIX_UNUSED (prog_name); return EXIT_SUCCESS; } static char *package_name = 0; /** * @brief updates an option * @param field the generic pointer to the field to update * @param orig_field the pointer to the orig field * @param field_given the pointer to the number of occurrence of this option * @param prev_given the pointer to the number of occurrence already seen * @param value the argument for this option (if null no arg was specified) * @param possible_values the possible values for this option (if specified) * @param default_value the default value (in case the option only accepts fixed values) * @param arg_type the type of this option * @param check_ambiguity @see cmdline_parser_params.check_ambiguity * @param override @see cmdline_parser_params.override * @param no_free whether to free a possible previous value * @param multiple_option whether this is a multiple option * @param long_opt the corresponding long option * @param short_opt the corresponding short option (or '-' if none) * @param additional_error possible further error specification */ static int update_arg(void *field, char **orig_field, unsigned int *field_given, unsigned int *prev_given, char *value, const char *possible_values[], const char *default_value, cmdline_parser_arg_type arg_type, int check_ambiguity, int override, int no_free, int multiple_option, const char *long_opt, char short_opt, const char *additional_error) { char *stop_char = 0; const char *val = value; int found; char **string_field; FIX_UNUSED (field); stop_char = 0; found = 0; if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given))) { if (short_opt != '-') fprintf (stderr, "%s: `--%s' (`-%c') option given more than once%s\n", package_name, long_opt, short_opt, (additional_error ? additional_error : "")); else fprintf (stderr, "%s: `--%s' option given more than once%s\n", package_name, long_opt, (additional_error ? additional_error : "")); return 1; /* failure */ } FIX_UNUSED (default_value); if (field_given && *field_given && ! override) return 0; if (prev_given) (*prev_given)++; if (field_given) (*field_given)++; if (possible_values) val = possible_values[found]; switch(arg_type) { case ARG_FLAG: *((int *)field) = !*((int *)field); break; case ARG_LONG: if (val) *((long *)field) = (long)strtol (val, &stop_char, 0); break; case ARG_STRING: if (val) { string_field = (char **)field; if (!no_free && *string_field) free (*string_field); /* free previous string */ *string_field = gengetopt_strdup (val); } break; default: break; }; /* check numeric conversion */ switch(arg_type) { case ARG_LONG: if (val && !(stop_char && *stop_char == '\0')) { fprintf(stderr, "%s: invalid numeric value: %s\n", package_name, val); return 1; /* failure */ } break; default: ; }; /* store the original value */ switch(arg_type) { case ARG_NO: case ARG_FLAG: break; default: if (value && orig_field) { if (no_free) { *orig_field = value; } else { if (*orig_field) free (*orig_field); /* free previous string */ *orig_field = gengetopt_strdup (value); } } }; return 0; /* OK */ } int cmdline_parser_internal ( int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params, const char *additional_error) { int c; /* Character of the parsed option. */ int error_occurred = 0; struct gengetopt_args_info local_args_info; int override; int initialize; int check_required; int check_ambiguity; package_name = argv[0]; /* TODO: Why is this here? It is not used anywhere. */ override = params->override; FIX_UNUSED(override); initialize = params->initialize; check_required = params->check_required; /* TODO: Why is this here? It is not used anywhere. */ check_ambiguity = params->check_ambiguity; FIX_UNUSED(check_ambiguity); if (initialize) cmdline_parser_init (args_info); cmdline_parser_init (&local_args_info); optarg = 0; optind = 0; opterr = params->print_errors; optopt = '?'; while (1) { int option_index = 0; static struct option long_options[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "add", 0, NULL, 'a' }, { "dump", 0, NULL, 'd' }, { "key-add", 0, NULL, 'n' }, { "key-remove", 0, NULL, 0 }, { "list", 0, NULL, 'l' }, { "modify", 0, NULL, 'm' }, { "remove", 0, NULL, 'r' }, { "force", 0, NULL, 'f' }, { "enabled", 0, NULL, 0 }, { "disabled", 0, NULL, 0 }, { "keys", 0, NULL, 0 }, { "encryption-type", 1, NULL, 'E' }, { "key-version", 1, NULL, 0 }, { "password", 2, NULL, 0 }, { "priority", 1, NULL, 0 }, { "random", 0, NULL, 0 }, { "salt", 1, NULL, 0 }, { "string-to-key-parameter", 1, NULL, 0 }, { "configuration-file", 1, NULL, 'c' }, { "library-options", 1, NULL, 'o' }, { "verbose", 0, NULL, 'v' }, { "quiet", 0, NULL, 'q' }, { 0, 0, 0, 0 } }; c = getopt_long (argc, argv, "hVadnlmrfE:c:o:vq", long_options, &option_index); if (c == -1) break; /* Exit from `while (1)' loop. */ switch (c) { case 'h': /* Print help and exit. */ if (update_arg( 0 , 0 , &(args_info->help_given), &(local_args_info.help_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "help", 'h', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'V': /* Print version and exit. */ if (update_arg( 0 , 0 , &(args_info->version_given), &(local_args_info.version_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "version", 'V', additional_error)) goto failure; cmdline_parser_free (&local_args_info); return 0; break; case 'a': /* Add realm or principal to database.. */ if (update_arg( 0 , 0 , &(args_info->add_given), &(local_args_info.add_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "add", 'a', additional_error)) goto failure; break; case 'd': /* Dump entries in database.. */ if (update_arg( 0 , 0 , &(args_info->dump_given), &(local_args_info.dump_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "dump", 'd', additional_error)) goto failure; break; case 'n': /* Add new key to a principal in database.. */ if (update_arg( 0 , 0 , &(args_info->key_add_given), &(local_args_info.key_add_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "key-add", 'n', additional_error)) goto failure; break; case 'l': /* List entries in database.. */ if (update_arg( 0 , 0 , &(args_info->list_given), &(local_args_info.list_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "list", 'l', additional_error)) goto failure; break; case 'm': /* Modify principal entry in database.. */ if (update_arg( 0 , 0 , &(args_info->modify_given), &(local_args_info.modify_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "modify", 'm', additional_error)) goto failure; break; case 'r': /* Remove realm or principal from database.. */ if (update_arg( 0 , 0 , &(args_info->remove_given), &(local_args_info.remove_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "remove", 'r', additional_error)) goto failure; break; case 'f': /* Allow removal of non-empty realms. . */ if (update_arg((void *)&(args_info->force_flag), 0, &(args_info->force_given), &(local_args_info.force_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "force", 'f', additional_error)) goto failure; break; case 'E': /* Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'.. */ if (update_arg( (void *)&(args_info->encryption_type_arg), &(args_info->encryption_type_orig), &(args_info->encryption_type_given), &(local_args_info.encryption_type_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "encryption-type", 'E', additional_error)) goto failure; break; case 'c': /* Use specified configuration file.. */ if (update_arg( (void *)&(args_info->configuration_file_arg), &(args_info->configuration_file_orig), &(args_info->configuration_file_given), &(local_args_info.configuration_file_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "configuration-file", 'c', additional_error)) goto failure; break; case 'o': /* Parse string as configuration file statement.. */ if (update_arg( (void *)&(args_info->library_options_arg), &(args_info->library_options_orig), &(args_info->library_options_given), &(local_args_info.library_options_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "library-options", 'o', additional_error)) goto failure; break; case 'v': /* Produce verbose output. . */ if (update_arg((void *)&(args_info->verbose_flag), 0, &(args_info->verbose_given), &(local_args_info.verbose_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "verbose", 'v', additional_error)) goto failure; break; case 'q': /* Don't produce any diagnostic output. . */ if (update_arg((void *)&(args_info->quiet_flag), 0, &(args_info->quiet_given), &(local_args_info.quiet_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "quiet", 'q', additional_error)) goto failure; break; case 0: /* Long option with no short option */ /* Remove a key from a principal in database.. */ if (strcmp (long_options[option_index].name, "key-remove") == 0) { if (update_arg( 0 , 0 , &(args_info->key_remove_given), &(local_args_info.key_remove_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "key-remove", '-', additional_error)) goto failure; } /* Only dump or list enabled principals. . */ else if (strcmp (long_options[option_index].name, "enabled") == 0) { if (update_arg((void *)&(args_info->enabled_flag), 0, &(args_info->enabled_given), &(local_args_info.enabled_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "enabled", '-', additional_error)) goto failure; } /* Only dump or list disabled principals. . */ else if (strcmp (long_options[option_index].name, "disabled") == 0) { if (update_arg((void *)&(args_info->disabled_flag), 0, &(args_info->disabled_given), &(local_args_info.disabled_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "disabled", '-', additional_error)) goto failure; } /* Print cryptographic key and password in hostkey format.. */ else if (strcmp (long_options[option_index].name, "keys") == 0) { if (update_arg((void *)&(args_info->keys_flag), 0, &(args_info->keys_given), &(local_args_info.keys_given), optarg, 0, 0, ARG_FLAG, check_ambiguity, override, 1, 0, "keys", '-', additional_error)) goto failure; } /* Version of key.. */ else if (strcmp (long_options[option_index].name, "key-version") == 0) { if (update_arg( (void *)&(args_info->key_version_arg), &(args_info->key_version_orig), &(args_info->key_version_given), &(local_args_info.key_version_given), optarg, 0, 0, ARG_LONG, check_ambiguity, override, 0, 0, "key-version", '-', additional_error)) goto failure; } /* Derive key from this password.. */ else if (strcmp (long_options[option_index].name, "password") == 0) { if (update_arg( (void *)&(args_info->password_arg), &(args_info->password_orig), &(args_info->password_given), &(local_args_info.password_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "password", '-', additional_error)) goto failure; } /* Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen). */ else if (strcmp (long_options[option_index].name, "priority") == 0) { if (update_arg( (void *)&(args_info->priority_arg), &(args_info->priority_orig), &(args_info->priority_given), &(local_args_info.priority_given), optarg, 0, 0, ARG_LONG, check_ambiguity, override, 0, 0, "priority", '-', additional_error)) goto failure; } /* Use a random key. (default). */ else if (strcmp (long_options[option_index].name, "random") == 0) { if (update_arg( 0 , 0 , &(args_info->random_given), &(local_args_info.random_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "random", '-', additional_error)) goto failure; } /* Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name.. */ else if (strcmp (long_options[option_index].name, "salt") == 0) { if (update_arg( (void *)&(args_info->salt_arg), &(args_info->salt_orig), &(args_info->salt_given), &(local_args_info.salt_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "salt", '-', additional_error)) goto failure; } /* Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver.. */ else if (strcmp (long_options[option_index].name, "string-to-key-parameter") == 0) { if (update_arg( (void *)&(args_info->string_to_key_parameter_arg), &(args_info->string_to_key_parameter_orig), &(args_info->string_to_key_parameter_given), &(local_args_info.string_to_key_parameter_given), optarg, 0, 0, ARG_STRING, check_ambiguity, override, 0, 0, "string-to-key-parameter", '-', additional_error)) goto failure; } break; case '?': /* Invalid option. */ /* `getopt_long' already printed an error message. */ goto failure; default: /* bug: option not considered. */ fprintf (stderr, "%s: option unknown: %c%s\n", CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error : "")); abort (); } /* switch */ } /* while */ FIX_UNUSED(check_required); cmdline_parser_release (&local_args_info); if ( error_occurred ) return (EXIT_FAILURE); if (optind < argc) { int i = 0 ; int found_prog_name = 0; /* whether program name, i.e., argv[0], is in the remaining args (this may happen with some implementations of getopt, but surely not with the one included by gengetopt) */ i = optind; while (i < argc) if (argv[i++] == argv[0]) { found_prog_name = 1; break; } i = 0; args_info->inputs_num = argc - optind - found_prog_name; args_info->inputs = (char **)(malloc ((args_info->inputs_num)*sizeof(char *))) ; while (optind < argc) if (argv[optind++] != argv[0]) args_info->inputs[ i++ ] = gengetopt_strdup (argv[optind-1]) ; } return 0; failure: cmdline_parser_release (&local_args_info); return (EXIT_FAILURE); } /* vim: set ft=c noet ts=8 sts=8 sw=8 tw=80 nojs spell : */ shishi-1.0.3/src/shisa.ggo0000644000000000000000000000605014273600463012273 00000000000000## Process this file with gengetopt to produce shisa_cmd.* # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. package "shisa" purpose "Manipulate information stored in the Shisa user database." section "Operations" option "add" a "Add realm or principal to database." no option "dump" d "Dump entries in database." no option "key-add" n "Add new key to a principal in database." no option "key-remove" - "Remove a key from a principal in database." no option "list" l "List entries in database." no option "modify" m "Modify principal entry in database." no option "remove" r "Remove realm or principal from database." no section "Parameters" option "force" f "Allow removal of non-empty realms.\n" flag off option "enabled" - "Only dump or list enabled principals.\n" flag off option "disabled" - "Only dump or list disabled principals.\n" flag off option "keys" - "Print cryptographic key and password in hostkey format." flag off section "Values" option "encryption-type" E "Override default key encryption type. Valid values include 'aes128', 'aes256', 'aes' (same as 'aes256'), '3des', 'des-md5', 'des-md4', 'des-crc', 'des' (same as 'des-md5'), and 'arcfour'." string no option "key-version" - "Version of key." long typestr="NUMBER" no option "password" - "Derive key from this password." string no argoptional option "priority" - "Specify key priority, used to differentiate between keys when multiple keys are eligible for use. Higher value means higher priority. (default is 0, which mean a random key of the best etype is chosen)" long typestr="NUMBER" no option "random" - "Use a random key. (default)" no option "salt" - "Use specified salt for deriving key. Defaults to concatenation of realm and (unwrapped) principal name." string no option "string-to-key-parameter" - "Encryption algorithm specific parameter for password derivation. Currently only the AES algorithm can utilize this, where it is interpreted as the iteration count of the PKCS#5 PBKDF2 key deriver." string typestr="HEX" no section "Other options" option "configuration-file" c "Use specified configuration file." string typestr="FILE" no option "library-options" o "Parse string as configuration file statement." string typestr="STRING" no option "verbose" v "Produce verbose output.\n" flag off option "quiet" q "Don't produce any diagnostic output.\n" flag off shishi-1.0.3/src/shishid_cmd.h0000644000000000000000000002575514273615316013135 00000000000000/** @file shishid_cmd.h * @brief The header file for the command line option parser * generated by GNU Gengetopt version 2.23 * http://www.gnu.org/software/gengetopt. * DO NOT modify this file, since it can be overwritten * @author GNU Gengetopt */ #ifndef SHISHID_CMD_H #define SHISHID_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include /* for FILE */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE /** @brief the program name (used for printing errors) */ #define CMDLINE_PARSER_PACKAGE "shishid" #endif #ifndef CMDLINE_PARSER_PACKAGE_NAME /** @brief the complete program name (used for help and version) */ #define CMDLINE_PARSER_PACKAGE_NAME "shishid" #endif #ifndef CMDLINE_PARSER_VERSION /** @brief the program version */ #define CMDLINE_PARSER_VERSION VERSION #endif /** @brief Where the command line options are stored */ struct gengetopt_args_info { const char *help_help; /**< @brief Print help and exit help description. */ const char *version_help; /**< @brief Print version and exit help description. */ char * listen_arg; /**< @brief Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'.. */ char * listen_orig; /**< @brief Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'. original value given at command line. */ const char *listen_help; /**< @brief Sockets to listen for queries on. Family is `IPv4' or `IPv6', if absent the family is decided by gethostbyname(ADDR). An address of `*' indicates all addresses on the local host. The default is `*:kerberos/udp, *:kerberos/tcp'. help description. */ char * setuid_arg; /**< @brief After binding socket, set user identity.. */ char * setuid_orig; /**< @brief After binding socket, set user identity. original value given at command line. */ const char *setuid_help; /**< @brief After binding socket, set user identity. help description. */ int no_tls_flag; /**< @brief Disable TLS support (default=off). */ const char *no_tls_help; /**< @brief Disable TLS support help description. */ char * x509cafile_arg; /**< @brief X.509 certificate authorities used to verify client certificates, in PEM format.. */ char * x509cafile_orig; /**< @brief X.509 certificate authorities used to verify client certificates, in PEM format. original value given at command line. */ const char *x509cafile_help; /**< @brief X.509 certificate authorities used to verify client certificates, in PEM format. help description. */ char * x509certfile_arg; /**< @brief X.509 server certificate, in PEM format.. */ char * x509certfile_orig; /**< @brief X.509 server certificate, in PEM format. original value given at command line. */ const char *x509certfile_help; /**< @brief X.509 server certificate, in PEM format. help description. */ char * x509crlfile_arg; /**< @brief X.509 certificate revocation list to check for revoked client certificates, in PEM format.. */ char * x509crlfile_orig; /**< @brief X.509 certificate revocation list to check for revoked client certificates, in PEM format. original value given at command line. */ const char *x509crlfile_help; /**< @brief X.509 certificate revocation list to check for revoked client certificates, in PEM format. help description. */ char * x509keyfile_arg; /**< @brief X.509 server certificate key, in PEM format.. */ char * x509keyfile_orig; /**< @brief X.509 server certificate key, in PEM format. original value given at command line. */ const char *x509keyfile_help; /**< @brief X.509 server certificate key, in PEM format. help description. */ short resume_limit_arg; /**< @brief Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume). (default='50'). */ char * resume_limit_orig; /**< @brief Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume). original value given at command line. */ const char *resume_limit_help; /**< @brief Keep track of up to this many TLS sessions for resume purposes (0 to disable TLS resume). help description. */ char * configuration_file_arg; /**< @brief Use specified configuration file.. */ char * configuration_file_orig; /**< @brief Use specified configuration file. original value given at command line. */ const char *configuration_file_help; /**< @brief Use specified configuration file. help description. */ unsigned int verbose_min; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s minimum occurreces */ unsigned int verbose_max; /**< @brief Produce verbose output. Use multiple times to increase amount of information.'s maximum occurreces */ const char *verbose_help; /**< @brief Produce verbose output. Use multiple times to increase amount of information. help description. */ int quiet_flag; /**< @brief Don't produce any diagnostic output. (default=off). */ const char *quiet_help; /**< @brief Don't produce any diagnostic output. help description. */ unsigned int help_given ; /**< @brief Whether help was given. */ unsigned int version_given ; /**< @brief Whether version was given. */ unsigned int listen_given ; /**< @brief Whether listen was given. */ unsigned int setuid_given ; /**< @brief Whether setuid was given. */ unsigned int no_tls_given ; /**< @brief Whether no-tls was given. */ unsigned int x509cafile_given ; /**< @brief Whether x509cafile was given. */ unsigned int x509certfile_given ; /**< @brief Whether x509certfile was given. */ unsigned int x509crlfile_given ; /**< @brief Whether x509crlfile was given. */ unsigned int x509keyfile_given ; /**< @brief Whether x509keyfile was given. */ unsigned int resume_limit_given ; /**< @brief Whether resume-limit was given. */ unsigned int configuration_file_given ; /**< @brief Whether configuration-file was given. */ unsigned int verbose_given ; /**< @brief Whether verbose was given. */ unsigned int quiet_given ; /**< @brief Whether quiet was given. */ } ; /** @brief The additional parameters to pass to parser functions */ struct cmdline_parser_params { int override; /**< @brief whether to override possibly already present options (default 0) */ int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */ int check_required; /**< @brief whether to check that all required options were provided (default 1) */ int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */ int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */ } ; /** @brief the purpose string of the program */ extern const char *gengetopt_args_info_purpose; /** @brief the usage string of the program */ extern const char *gengetopt_args_info_usage; /** @brief the description string of the program */ extern const char *gengetopt_args_info_description; /** @brief all the lines making the help output */ extern const char *gengetopt_args_info_help[]; /** * The command line parser * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser (int argc, char **argv, struct gengetopt_args_info *args_info); /** * The command line parser (version with additional parameters - deprecated) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param override whether to override possibly already present options * @param initialize whether to initialize the option structure my_args_info * @param check_required whether to check that all required options were provided * @return 0 if everything went fine, NON 0 if an error took place * @deprecated use cmdline_parser_ext() instead */ int cmdline_parser2 (int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); /** * The command line parser (version with additional parameters) * @param argc the number of command line options * @param argv the command line options * @param args_info the structure where option information will be stored * @param params additional parameters for the parser * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_ext (int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params); /** * Save the contents of the option struct into an already open FILE stream. * @param outfile the stream where to dump options * @param args_info the option struct to dump * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info); /** * Save the contents of the option struct into a (text) file. * This file can be read by the config file parser (if generated by gengetopt) * @param filename the file where to save * @param args_info the option struct to save * @return 0 if everything went fine, NON 0 if an error took place */ int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); /** * Print the help */ void cmdline_parser_print_help(void); /** * Print the version */ void cmdline_parser_print_version(void); /** * Initializes all the fields a cmdline_parser_params structure * to their default values * @param params the structure to initialize */ void cmdline_parser_params_init(struct cmdline_parser_params *params); /** * Allocates dynamically a cmdline_parser_params structure and initializes * all its fields to their default values * @return the created and initialized cmdline_parser_params structure */ struct cmdline_parser_params *cmdline_parser_params_create(void); /** * Initializes the passed gengetopt_args_info structure's fields * (also set default values for options that have a default) * @param args_info the structure to initialize */ void cmdline_parser_init (struct gengetopt_args_info *args_info); /** * Deallocates the string fields of the gengetopt_args_info structure * (but does not deallocate the structure itself) * @param args_info the structure to deallocate */ void cmdline_parser_free (struct gengetopt_args_info *args_info); /** * Checks that all the required options were specified * @param args_info the structure to check * @param prog_name the name of the program that will be used to print * possible errors * @return */ int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SHISHID_CMD_H */ shishi-1.0.3/src/server.c0000644000000000000000000002535714273601533012152 00000000000000/* server.c --- Handle KDC sessions. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Note: only use syslog to report errors in this file. */ /* Get Shishid stuff. */ #include "kdc.h" /* Accept new TCP connection in a new listenspec entry. */ static void kdc_accept (struct listenspec *ls) { struct listenspec *newls; struct sockaddr addr; socklen_t addrlen; int rc; newls = xzalloc (sizeof (*newls)); newls->next = ls->next; ls->next = newls; newls->bufpos = 0; newls->ai.ai_socktype = ls->ai.ai_socktype; addrlen = sizeof (addr); newls->sockfd = accept (ls->sockfd, &addr, &addrlen); rc = getnameinfo (&addr, addrlen, newls->addrname, sizeof (newls->addrname), NULL, 0, NI_NUMERICHOST); if (rc != 0) strcpy (newls->addrname, "unknown address"); asprintf (&newls->str, "%s (%s)", newls->addrname, ls->str); syslog (LOG_DEBUG | LOG_DAEMON, "Accepted socket %d from socket %d as %s", newls->sockfd, ls->sockfd, newls->str); } /* Destroy listenspec element and return pointer to element before the removed element, or NULL if the first element was removed (or the destroyed list element wasn't in the list). */ static struct listenspec * kdc_close (struct listenspec *ls) { struct listenspec *tmp; int rc; syslog (LOG_DEBUG | LOG_DAEMON, "Closing %s socket %d", ls->str, ls->sockfd); #ifdef USE_STARTTLS if (ls->usetls) { do rc = gnutls_bye (ls->session, GNUTLS_SHUT_RDWR); while (rc == GNUTLS_E_AGAIN || rc == GNUTLS_E_INTERRUPTED); if (rc != GNUTLS_E_SUCCESS) syslog (LOG_ERR | LOG_DAEMON, "TLS terminate failed to %s on socket %d (%d): %s", ls->str, ls->sockfd, rc, gnutls_strerror (rc)); gnutls_deinit (ls->session); } #endif if (ls->sockfd) { rc = close (ls->sockfd); if (rc != 0) syslog (LOG_ERR | LOG_DAEMON, "Close failed to %s on socket %d (%d): %s", ls->str, ls->sockfd, rc, strerror (rc)); } free (ls->str); for (tmp = listenspec; tmp && tmp->next != ls; tmp = tmp->next) ; if (tmp) tmp->next = ls->next; free (ls); return tmp; } /* Send string to peer, via UDP/TCP/TLS, reporting any errors. */ void kdc_send1 (struct listenspec *ls) { ssize_t sent_bytes; do #ifdef USE_STARTTLS if (ls->usetls) sent_bytes = gnutls_record_send (ls->session, ls->buf, ls->bufpos); else #endif if (ls->ai.ai_socktype == SOCK_DGRAM) sent_bytes = sendto (ls->sockfd, ls->buf, ls->bufpos, 0, (struct sockaddr *) &ls->udpclientaddr, ls->udpclientaddrlen); else sent_bytes = send (ls->sockfd, ls->buf, ls->bufpos, 0); while (sent_bytes == -1 && errno == EAGAIN); if (sent_bytes < 0) syslog (LOG_ERR | LOG_DAEMON, "Error writing %zu bytes to %s on socket %d: %s", ls->bufpos, ls->str, ls->sockfd, strerror (errno)); else if ((size_t) sent_bytes > ls->bufpos) syslog (LOG_ERR | LOG_DAEMON, "Overlong write (%zd > %zu) to %s on socket %d", sent_bytes, ls->bufpos, ls->str, ls->sockfd); else if ((size_t) sent_bytes < ls->bufpos) syslog (LOG_ERR | LOG_DAEMON, "Short write (%zd < %zu) to %s on socket %d", sent_bytes, ls->bufpos, ls->str, ls->sockfd); } /* Format response and send it to peer, via UDP/TCP/TLS, reporting any errors. */ static void kdc_send (struct listenspec *ls) { if (ls->ai.ai_socktype == SOCK_DGRAM) syslog (LOG_DEBUG | LOG_DAEMON, "Sending %zu bytes to %s socket %d via UDP", ls->bufpos, ls->clientaddrname, ls->sockfd); else { syslog (LOG_DEBUG | LOG_DAEMON, "Sending %zu bytes to %s socket %d via %s", ls->bufpos, ls->str, ls->sockfd, ls->usetls ? "TLS" : "TCP"); if (ls->bufpos + 4 >= sizeof (ls->buf)) ls->bufpos = sizeof (ls->buf) - 4; memmove (ls->buf + 4, ls->buf, ls->bufpos); ls->buf[0] = (ls->bufpos >> 24) & 0xFF; ls->buf[1] = (ls->bufpos >> 16) & 0xFF; ls->buf[2] = (ls->bufpos >> 8) & 0xFF; ls->buf[3] = ls->bufpos & 0xFF; ls->bufpos += 4; } kdc_send1 (ls); ls->bufpos = 0; } int kdc_extension_reject (struct listenspec *ls) { Shishi_asn1 krberr; char *der; size_t derlen; int rc; syslog (LOG_NOTICE | LOG_AUTH, "Reject extension from %s on socket %d", ls->str, ls->sockfd); krberr = shishi_krberror (handle); if (!krberr) return SHISHI_MALLOC_ERROR; rc = shishi_krberror_errorcode_set (handle, krberr, SHISHI_KRB_ERR_FIELD_TOOLONG); if (rc != SHISHI_OK) return rc; rc = shishi_krberror_set_etext (handle, krberr, "Extension not supported"); if (rc != SHISHI_OK) return rc; rc = shishi_krberror_der (handle, krberr, &der, &derlen); if (rc != SHISHI_OK) return rc; if (derlen >= BUFSIZ) return -1; memcpy (ls->buf, der, derlen); ls->bufpos = derlen; free (der); kdc_send1 (ls); return -1; } #ifndef USE_STARTTLS /* Dummy function to replace starttls.c functionality. */ int kdc_extension (struct listenspec *ls) { if (ls->ai.ai_socktype == SOCK_STREAM && ls->bufpos == 4 && ls->buf[0] & 0x80) return kdc_extension_reject (ls); return 0; } #endif /* Read data from peer, reporting any errors. */ static int kdc_read (struct listenspec *ls) { ssize_t read_bytes; #ifdef USE_STARTTLS if (ls->usetls) read_bytes = gnutls_record_recv (ls->session, ls->buf + ls->bufpos, sizeof (ls->buf) - ls->bufpos); else #endif if (ls->ai.ai_socktype == SOCK_DGRAM) { ls->udpclientaddrlen = sizeof (ls->udpclientaddr); read_bytes = recvfrom (ls->sockfd, ls->buf + ls->bufpos, sizeof (ls->buf) - ls->bufpos, 0, (struct sockaddr *) &ls->udpclientaddr, &ls->udpclientaddrlen); } else read_bytes = recv (ls->sockfd, ls->buf + ls->bufpos, sizeof (ls->buf) - ls->bufpos, 0); if (read_bytes < 0) { #ifdef USE_STARTTLS if (ls->usetls) syslog (LOG_ERR | LOG_DAEMON, "Corrupt TLS data from %s on socket %d (%zd): %s", ls->str, ls->sockfd, read_bytes, gnutls_strerror (read_bytes)); else #endif syslog (LOG_ERR | LOG_DAEMON, "Error reading from %s on socket %d (%zd): %s", ls->str, ls->sockfd, read_bytes, strerror (read_bytes)); return -1; } if (read_bytes == 0 && ls->ai.ai_socktype == SOCK_STREAM) { syslog (LOG_DEBUG | LOG_DAEMON, "Peer %s disconnected on socket %d\n", ls->str, ls->sockfd); return -1; } ls->bufpos += read_bytes; if (ls->ai.ai_socktype == SOCK_DGRAM) { int rc = getnameinfo ((struct sockaddr *) &ls->udpclientaddr, ls->udpclientaddrlen, ls->clientaddrname, sizeof (ls->clientaddrname), NULL, 0, NI_NUMERICHOST); if (rc != 0) strcpy (ls->clientaddrname, "unknown address"); syslog (LOG_DEBUG | LOG_DAEMON, "Read %zu bytes from %s on socket %d\n", ls->bufpos, ls->clientaddrname, ls->sockfd); } else syslog (LOG_DEBUG | LOG_DAEMON, "Read %zu bytes from %s on socket %d\n", ls->bufpos, ls->str, ls->sockfd); return 0; } #define C2I(buf) ((buf[3] & 0xFF) | \ ((buf[2] & 0xFF) << 8) | \ ((buf[1] & 0xFF) << 16) | \ ((buf[0] & 0xFF) << 24)) /* Have we read an entire request? */ static int kdc_ready (struct listenspec *ls) { size_t waitfor = ls->bufpos >= 4 ? C2I (ls->buf) : 4; if (ls->ai.ai_socktype == SOCK_DGRAM && ls->bufpos > 0) return 1; else if (ls->bufpos > 4 && waitfor + 4 == ls->bufpos) return 1; if (ls->ai.ai_socktype == SOCK_STREAM) syslog (LOG_DEBUG | LOG_DAEMON, "Got %zu bytes of %zu bytes from %s on socket %d\n", ls->bufpos, waitfor + 4, ls->str, ls->sockfd); return 0; } /* Process a request and store reply in same buffer. */ static void kdc_process (struct listenspec *ls) { char *p; ssize_t plen; syslog (LOG_DEBUG | LOG_DAEMON, "Processing %zu bytes on socket %d", ls->bufpos, ls->sockfd); if (ls->ai.ai_socktype == SOCK_DGRAM) plen = process (ls->buf, ls->bufpos, &p); else plen = process (ls->buf + 4, ls->bufpos - 4, &p); if (plen <= 0) { syslog (LOG_ERR | LOG_DAEMON, "Processing request failed on socket %d", ls->sockfd); memcpy (ls->buf, fatal_krberror, fatal_krberror_len); ls->bufpos = fatal_krberror_len; } else { memcpy (ls->buf, p, plen); ls->bufpos = plen; free (p); } syslog (LOG_DEBUG | LOG_DAEMON, "Generated %zu bytes response for socket %d", ls->bufpos, ls->sockfd); } int quit = 0; static void ctrlc (int signum) { quit = 1; } #define MAX(a,b) ((a) > (b) ? (a) : (b)) /* Main KDC logic, loops around select and calls kdc_accept, kdc_read, kdc_extension, kdc_process and kdc_send. This returns when either of the signals SIGINT or SIGTERM is received. */ void kdc_loop (void) { struct listenspec *ls; fd_set readfds; int maxfd = 0; int rc; signal (SIGINT, ctrlc); signal (SIGTERM, ctrlc); #ifdef USE_STARTTLS syslog (LOG_INFO | LOG_DAEMON, "Starting (GNUTLS `%s')", gnutls_check_version (NULL)); #else syslog (LOG_INFO | LOG_DAEMON, "Starting (no TLS)"); #endif while (!quit) { do { FD_ZERO (&readfds); maxfd = 0; for (ls = listenspec; ls; ls = ls->next) { if (ls->sockfd > 0) { maxfd = MAX (maxfd, ls->sockfd + 1); if (!arg.quiet_flag) syslog (LOG_DEBUG | LOG_DAEMON, "Listening on %s (%s) socket %d\n", ls->str, ls->addrname, ls->sockfd); FD_SET (ls->sockfd, &readfds); } } } while ((rc = select (maxfd, &readfds, NULL, NULL, NULL)) == 0); if (rc < 0) { if (errno != EINTR) syslog (LOG_ERR | LOG_DAEMON, "Error listening on sockets (%d): %s", rc, strerror (errno)); continue; } for (ls = listenspec; ls; ls = ls->next) if (ls->sockfd > 0 && FD_ISSET (ls->sockfd, &readfds)) { if (ls->ai.ai_socktype == SOCK_STREAM && ls->listening) kdc_accept (ls); else if (kdc_read (ls) < 0) ls = kdc_close (ls); else if (kdc_extension (ls) < 0) ls = kdc_close (ls); else if (kdc_ready (ls)) { kdc_process (ls); kdc_send (ls); } } } syslog (LOG_INFO | LOG_DAEMON, "Shutting down"); } shishi-1.0.3/src/kdc.c0000644000000000000000000011562414273601533011402 00000000000000/* kdc.c --- Process AS and TGS requests. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Note: only use syslog to report errors in this file. * * XXX: Examine in detail the made choices of syslog facility. * Messages should not exessively use 'auth', be it as default * by openlog(), or explicitly. */ /* Get Shishid stuff. */ #include "kdc.h" static int asreq1 (Shishi_as * as) { Shishi_tkt *tkt; Shishi_key *serverkey = NULL, *sessionkey = NULL, *userkey = NULL; Shisa_key *userdbkey = NULL; Shisa_key **serverkeys = NULL, **userkeys = NULL; size_t nserverkeys, nuserkeys; int rc; char *username = NULL, *servername = NULL, *realm = NULL; Shisa_principal server, user; int32_t sessionkeytype = -1; int32_t etype; int i; /* * The authentication server looks up the client and server principals * named in the KRB_AS_REQ in its database, extracting their respective * keys. If the requested client principal named in the request is not * known because it doesn't exist in the KDC's principal database, then * an error message with a KDC_ERR_C_PRINCIPAL_UNKNOWN is returned. */ rc = shishi_kdcreq_realm (handle, shishi_as_req (as), &realm, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_realm failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_kdcreq_client (handle, shishi_as_req (as), &username, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_client failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_kdcreq_server (handle, shishi_as_req (as), &servername, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_server failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* Find the client, e.g., simon@JOSEFSSON.ORG. */ rc = shisa_principal_find (dbh, realm, username, &user); if (rc != SHISA_OK && rc != SHISA_NO_PRINCIPAL) { syslog (LOG_ERR, "shisa_principal_find failed (%d): %s", rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } if (rc == SHISA_NO_PRINCIPAL) { syslog (LOG_NOTICE, "AS-REQ from %s@%s for %s@%s failed: no such user", username, realm, servername, realm); rc = shishi_krberror_errorcode_set (handle, shishi_as_krberror (as), SHISHI_KDC_ERR_C_PRINCIPAL_UNKNOWN); if (rc != SHISHI_OK) goto fatal; rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } rc = shisa_keys_find (dbh, realm, username, NULL, &userkeys, &nuserkeys); if (rc != SHISA_OK || nuserkeys == 0) { syslog (LOG_ERR, "shisa_keys_find(%s@%s) failed (%d): %s", username, realm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } /* Find the server, e.g., krbtgt/JOSEFSSON.ORG@JOSEFSSON.ORG. */ rc = shisa_principal_find (dbh, realm, servername, &server); if (rc != SHISA_OK && rc != SHISA_NO_PRINCIPAL) { syslog (LOG_ERR, "shisa_principal_find failed (%d): %s", rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } if (rc == SHISA_NO_PRINCIPAL) { syslog (LOG_NOTICE, "AS-REQ from %s@%s for %s@%s failed: no such server", username, realm, servername, realm); rc = shishi_krberror_errorcode_set (handle, shishi_as_krberror (as), SHISHI_KDC_ERR_S_PRINCIPAL_UNKNOWN); if (rc != SHISHI_OK) goto fatal; rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } rc = shisa_keys_find (dbh, realm, servername, NULL, &serverkeys, &nserverkeys); if (rc != SHISA_OK || nserverkeys == 0) { syslog (LOG_ERR, "shisa_keys_find(%s@%s) failed (%d): %s", servername, realm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } syslog (LOG_INFO, "AS-REQ from %s@%s for %s@%s", username, realm, servername, realm); /* * If required, the server pre-authenticates the request, and if the * pre-authentication check fails, an error message with the code * KDC_ERR_PREAUTH_FAILED is returned. If pre-authentication is * required, but was not present in the request, an error message with * the code KDC_ERR_PREAUTH_REQUIRED is returned and a METHOD-DATA * object will be stored in the e-data field of the KRB-ERROR message to * specify which pre-authentication mechanisms are acceptable. Usually * this will include PA-ETYPE-INFO and/or PA-ETYPE-INFO2 elements as * described below. If the server cannot accommodate any encryption type * requested by the client, an error message with code * KDC_ERR_ETYPE_NOSUPP is returned. Otherwise the KDC generates a * 'random' session key[7]. */ /* XXX support pre-auth. */ /* * When responding to an AS request, if there are multiple encryption * keys registered for a client in the Kerberos database, then the etype * field from the AS request is used by the KDC to select the encryption * method to be used to protect the encrypted part of the KRB_AS_REP * message which is sent to the client. If there is more than one * supported strong encryption type in the etype list, the KDC SHOULD * use the first valid strong etype for which an encryption key is * available. */ for (i = 1; (rc = shishi_kdcreq_etype (handle, shishi_as_req (as), &etype, i)) == SHISHI_OK; i++) { size_t j; if (!shishi_cipher_supported_p (etype)) continue; if (sessionkeytype == -1) for (j = 0; j < nserverkeys; j++) if (serverkeys[j]->etype == etype) sessionkeytype = serverkeys[j]->etype; if (userdbkey == NULL) for (j = 0; j < nuserkeys; j++) { /* Keep facility coordinated with 'AS-REQ from ...'. */ syslog (LOG_DEBUG, "Matching client etype %d against user key etype %d", etype, userkeys[j]->etype); if (userkeys[j]->etype == etype) userdbkey = userkeys[j]; } } if (userdbkey == NULL) { /* Again keeping facility coordinated with 'AS-REQ from ...'. */ syslog (LOG_NOTICE, "No matching client keys for %s@%s", username, realm); rc = shishi_krberror_errorcode_set (handle, shishi_as_krberror (as), SHISHI_KDC_ERR_ETYPE_NOSUPP); if (rc != SHISHI_OK) goto fatal; rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } rc = shishi_key_from_value (handle, userdbkey->etype, userdbkey->key, &userkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_key_from_value (user) failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* XXX Select "best" available key (highest kvno, best algorithm?) here. The client etype should not influence this. */ rc = shishi_key_from_value (handle, serverkeys[0]->etype, serverkeys[0]->key, &serverkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_key_from_value (server) failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * When the user's key is generated from a password or pass phrase, the * string-to-key function for the particular encryption key type is * used, as specified in [@KCRYPTO]. The salt value and additional * parameters for the string-to-key function have default values * (specified by section 4 and by the encryption mechanism * specification, respectively) that may be overridden by pre- * authentication data (PA-PW-SALT, PA-AFS3-SALT, PA-ETYPE-INFO, PA- * ETYPE-INFO2, etc). Since the KDC is presumed to store a copy of the * resulting key only, these values should not be changed for password- * based keys except when changing the principal's key. * * When the AS server is to include pre-authentication data in a KRB- * ERROR or in an AS-REP, it MUST use PA-ETYPE-INFO2, not PA-ETYPE-INFO, * if the etype field of the client's AS-REQ lists at least one "newer" * encryption type. Otherwise (when the etype field of the client's AS- * REQ does not list any "newer" encryption types) it MUST send both, * PA-ETYPE-INFO2 and PA-ETYPE-INFO (both with an entry for each * enctype). A "newer" enctype is any enctype first officially * specified concurrently with or subsequent to the issue of this RFC. * The enctypes DES, 3DES or RC4 and any defined in [RFC1510] are not * newer enctypes. * * It is not possible to reliably generate a user's key given a pass * phrase without contacting the KDC, since it will not be known whether * alternate salt or parameter values are required. * */ /* XXX support pre-auth. */ /* * The KDC will attempt to assign the type of the random session key * from the list of methods in the etype field. The KDC will select the * appropriate type using the list of methods provided together with * information from the Kerberos database indicating acceptable * encryption methods for the application server. The KDC will not issue * tickets with a weak session key encryption type. */ if (sessionkeytype == -1) sessionkeytype = shishi_cfg_clientkdcetype_fast (handle); rc = shishi_key_random (handle, sessionkeytype, &sessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_key_random (session key) failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * If the requested start time is absent, indicates a time in the past, * or is within the window of acceptable clock skew for the KDC and the * POSTDATE option has not been specified, then the start time of the * ticket is set to the authentication server's current time. If it * indicates a time in the future beyond the acceptable clock skew, but * the POSTDATED option has not been specified then the error * KDC_ERR_CANNOT_POSTDATE is returned. Otherwise the requested start * time is checked against the policy of the local realm (the * administrator might decide to prohibit certain types or ranges of * postdated tickets), and if acceptable, the ticket's start time is set * as requested and the INVALID flag is set in the new ticket. The * postdated ticket MUST be validated before use by presenting it to the * KDC after the start time has been reached. * * The expiration time of the ticket will be set to the earlier of the * requested endtime and a time determined by local policy, possibly * determined using realm or principal specific factors. For example, * the expiration time MAY be set to the earliest of the following: * * * The expiration time (endtime) requested in the KRB_AS_REQ * message. * * * The ticket's start time plus the maximum allowable lifetime * associated with the client principal from the authentication * server's database. * * * The ticket's start time plus the maximum allowable lifetime * associated with the server principal. * * * The ticket's start time plus the maximum lifetime set by the * policy of the local realm. * * If the requested expiration time minus the start time (as determined * above) is less than a site-determined minimum lifetime, an error * message with code KDC_ERR_NEVER_VALID is returned. If the requested * expiration time for the ticket exceeds what was determined as above, * and if the 'RENEWABLE-OK' option was requested, then the 'RENEWABLE' * flag is set in the new ticket, and the renew-till value is set as if * the 'RENEWABLE' option were requested (the field and option names are * described fully in section 5.4.1). * * If the RENEWABLE option has been requested or if the RENEWABLE-OK * option has been set and a renewable ticket is to be issued, then the * renew-till field MAY be set to the earliest of: * * * Its requested value. * * * The start time of the ticket plus the minimum of the two * maximum renewable lifetimes associated with the principals' * database entries. * * * The start time of the ticket plus the maximum renewable * lifetime set by the policy of the local realm. * */ tkt = shishi_as_tkt (as); if (tkt == NULL) { syslog (LOG_ERR, "shishi_as_tkt failed"); goto fatal; } { char *till; size_t tilllen; rc = shishi_kdcreq_till (handle, shishi_as_req (as), &till, &tilllen); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_till failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } if (tilllen != 16 || strlen (till) != 15) { syslog (LOG_ERR, "Invalid 'till' field in request (%zu): %s", tilllen, till); goto fatal; } rc = shishi_encticketpart_endtime_set (handle, shishi_tkt_encticketpart (tkt), till); free (till); } /* XXX Do the time stuff above. */ /* * The flags field of the new ticket will have the following options set * if they have been requested and if the policy of the local realm * allows: FORWARDABLE, MAY-POSTDATE, POSTDATED, PROXIABLE, RENEWABLE. * If the new ticket is postdated (the start time is in the future), its * INVALID flag will also be set. */ if (shishi_kdcreq_forwardable_p (handle, shishi_as_req (as))) shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_FORWARDABLE); if (shishi_kdcreq_allow_postdate_p (handle, shishi_as_req (as))) shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_MAY_POSTDATE); if (shishi_kdcreq_postdated_p (handle, shishi_as_req (as))) { /* XXX policy check from time. */ shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_POSTDATED); shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_INVALID); /* XXX set starttime to from */ } if (shishi_kdcreq_proxiable_p (handle, shishi_as_req (as))) shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_PROXIABLE); if (shishi_kdcreq_renewable_p (handle, shishi_as_req (as))) { shishi_tkt_flags_add (tkt, SHISHI_TICKETFLAGS_RENEWABLE); /* XXX set renew-till from rtime */ } /* * If all of the above succeed, the server will encrypt the ciphertext * part of the ticket using the encryption key extracted from the server * principal's record in the Kerberos database using the encryption type * associated with the server principal's key (this choice is NOT * affected by the etype field in the request). It then formats a * KRB_AS_REP message (see section 5.4.2), copying the addresses in the * request into the caddr of the response, placing any required pre- * authentication data into the padata of the response, and encrypts the * ciphertext part in the client's key using an acceptable encryption * method requested in the etype field of the request, or in some key * specified by pre-authentication mechanisms being used. */ rc = shishi_tkt_key_set (tkt, sessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_key_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_clientrealm_set (tkt, realm, username); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_clientrealm_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_serverrealm_set (tkt, realm, servername); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_serverrealm_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_build (tkt, serverkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_build failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_as_rep_build (as, userkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_as_rep_build failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } if (arg.verbose_given) { shishi_kdcreq_print (handle, stderr, shishi_as_req (as)); shishi_encticketpart_print (handle, stderr, shishi_tkt_encticketpart (tkt)); shishi_ticket_print (handle, stderr, shishi_tkt_ticket (tkt)); shishi_enckdcreppart_print (handle, stderr, shishi_tkt_enckdcreppart (tkt)); shishi_kdcrep_print (handle, stderr, shishi_as_rep (as)); } rc = SHISHI_OK; fatal: if (rc != SHISHI_OK) syslog (LOG_ERR, "AS-REQ failed (%d): %s", rc, shishi_strerror (rc)); free (realm); free (username); free (servername); if (userkeys) shisa_keys_free (dbh, userkeys, nuserkeys); if (serverkeys) shisa_keys_free (dbh, serverkeys, nserverkeys); if (userkey) shishi_key_done (userkey); if (serverkey) shishi_key_done (serverkey); if (sessionkey) shishi_key_done (sessionkey); return rc; } static int tgsreq1 (Shishi_tgs * tgs) { int rc; Shishi_tkt *tkt; Shishi_key *newsessionkey = NULL, *oldsessionkey = NULL; Shishi_key *serverkey = NULL, *subkey = NULL, *tgkey = NULL; char *servername = NULL, *serverrealm = NULL; char *tgname = NULL, *tgrealm = NULL; char *clientname = NULL, *clientrealm = NULL; Shisa_principal krbtgt, server; Shisa_key **tgkeys = NULL, **serverkeys = NULL; size_t ntgkeys, nserverkeys; rc = shishi_tgs_req_process (tgs); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tgs_req_process failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * The KRB_TGS_REQ message is processed in a manner similar to the * KRB_AS_REQ message, but there are many additional checks to be * performed. First, the Kerberos server MUST determine which server the * accompanying ticket is for and it MUST select the appropriate key to * decrypt it. For a normal KRB_TGS_REQ message, it will be for the * ticket granting service, and the TGS's key will be used. If the TGT * was issued by another realm, then the appropriate inter-realm key * MUST be used. If the accompanying ticket is not a ticket-granting * ticket for the current realm, but is for an application server in the * current realm, the RENEW, VALIDATE, or PROXY options are specified in * the request, and the server for which a ticket is requested is the * server named in the accompanying ticket, then the KDC will decrypt * the ticket in the authentication header using the key of the server * for which it was issued. If no ticket can be found in the padata * field, the KDC_ERR_PADATA_TYPE_NOSUPP error is returned. */ /* Find name of ticket granter, e.g., krbtgt/JOSEFSSON.ORG@JOSEFSSON.ORG. */ rc = shishi_tkt_realm (shishi_ap_tkt (shishi_tgs_ap (tgs)), &tgrealm, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_realm failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_server (shishi_ap_tkt (shishi_tgs_ap (tgs)), &tgname, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_server failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } syslog (LOG_DEBUG, "TGS-REQ uses ticket granter %s@%s", tgname, tgrealm); rc = shisa_principal_find (dbh, tgrealm, tgname, &krbtgt); if (rc != SHISA_OK && rc != SHISA_NO_PRINCIPAL) { syslog (LOG_ERR, "shisa_principal_find(%s@%s) failed (%d): %s", tgname, tgrealm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } if (rc == SHISA_NO_PRINCIPAL) { syslog (LOG_NOTICE, "TGS-REQ using %s@%s failed: no such tgt", tgname, tgrealm); rc = shishi_krberror_errorcode_set (handle, shishi_tgs_krberror (tgs), SHISHI_KRB_AP_ERR_NOT_US); if (rc != SHISHI_OK) goto fatal; rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } rc = shisa_keys_find (dbh, tgrealm, tgname, NULL, &tgkeys, &ntgkeys); if (rc != SHISA_OK || ntgkeys == 0) { syslog (LOG_ERR, "shisa_keys_find(%s@%s) failed (%d): %s", tgname, tgrealm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } /* XXX use etype/kvno to select key. */ rc = shishi_key_from_value (handle, tgkeys[0]->etype, tgkeys[0]->key, &tgkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_key_from_value (tgt) failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_ap_req_process_keyusage (shishi_tgs_ap (tgs), tgkey, SHISHI_KEYUSAGE_TGSREQ_APREQ_AUTHENTICATOR); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_ap_req_process_keyusage failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * 3.3.3.1. Checking for revoked tickets * * Whenever a request is made to the ticket-granting server, the * presented ticket(s) is(are) checked against a hot-list of tickets * which have been canceled. This hot-list might be implemented by * storing a range of issue timestamps for 'suspect tickets'; if a * presented ticket had an authtime in that range, it would be rejected. * In this way, a stolen ticket-granting ticket or renewable ticket * cannot be used to gain additional tickets (renewals or otherwise) * once the theft has been reported to the KDC for the realm in which * the server resides. Any normal ticket obtained before it was reported * stolen will still be valid (because they require no interaction with * the KDC), but only until their normal expiration time. If TGT's have * been issued for cross-realm authentication, use of the cross-realm * TGT will not be affected unless the hot-list is propagated to the * KDCs for the realms for which such cross-realm tickets were issued. */ /* XXX Check if tgname@tgrealm is a valid TGT. */ /* * Once the accompanying ticket has been decrypted, the user-supplied * checksum in the Authenticator MUST be verified against the contents * of the request, and the message rejected if the checksums do not * match (with an error code of KRB_AP_ERR_MODIFIED) or if the checksum * is not collision-proof (with an error code of * KRB_AP_ERR_INAPP_CKSUM). If the checksum type is not supported, the * KDC_ERR_SUMTYPE_NOSUPP error is returned. If the authorization-data * are present, they are decrypted using the sub-session key from the * Authenticator. * * If any of the decryptions indicate failed integrity checks, the * KRB_AP_ERR_BAD_INTEGRITY error is returned. */ /* XXX check that checksum in authenticator match tgsreq.req-body */ syslog (LOG_DEBUG, "TGS-REQ authentication OK using %s@%s", tgname, tgrealm); /* * As discussed in section 3.1.2, the KDC MUST send a valid KRB_TGS_REP * message if it receives a KRB_TGS_REQ message identical to one it has * recently processed. However, if the authenticator is a replay, but * the rest of the request is not identical, then the KDC SHOULD return * KRB_AP_ERR_REPEAT. */ /* XXX Do replay stuff. */ /* * The response will include a ticket for the requested server or for a * ticket granting server of an intermediate KDC to be contacted to * obtain the requested ticket. The Kerberos database is queried to * retrieve the record for the appropriate server (including the key * with which the ticket will be encrypted). If the request is for a * ticket-granting ticket for a remote realm, and if no key is shared * with the requested realm, then the Kerberos server will select the * realm 'closest' to the requested realm with which it does share a * key, and use that realm instead. Thss is theonly cases where the * response for the KDC will be for a different server than that * requested by the client. */ rc = shishi_kdcreq_realm (handle, shishi_tgs_req (tgs), &serverrealm, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_realm failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* XXX Do cross-realm handling. */ rc = shishi_kdcreq_server (handle, shishi_tgs_req (tgs), &servername, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_kdcreq_server failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shisa_principal_find (dbh, serverrealm, servername, &server); if (rc != SHISA_OK && rc != SHISA_NO_PRINCIPAL) { syslog (LOG_ERR, "shisa_principal_find(%s@%s) failed (%d): %s", servername, serverrealm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } if (rc == SHISA_NO_PRINCIPAL) { syslog (LOG_NOTICE, "TGS-REQ for %s@%s failed: no such server", servername, serverrealm); rc = shishi_krberror_errorcode_set (handle, shishi_tgs_krberror (tgs), SHISHI_KDC_ERR_S_PRINCIPAL_UNKNOWN); if (rc != SHISHI_OK) goto fatal; rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } rc = shisa_keys_find (dbh, serverrealm, servername, NULL, &serverkeys, &nserverkeys); if (rc != SHISA_OK || nserverkeys == 0) { syslog (LOG_ERR, "shisa_keys_find(%s@%s) failed (%d): %s", servername, serverrealm, rc, shisa_strerror (rc)); rc = SHISHI_INVALID_PRINCIPAL_NAME; goto fatal; } /* XXX Select "best" available key (highest kvno, best algorithm?) here. The client etype should not influence this. */ rc = shishi_key_from_value (handle, serverkeys[0]->etype, serverkeys[0]->key, &serverkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shisa_key_from_value (server) failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* Generate session key for the newly generated ticket, of same key type as the selected long-term server key. XXX let the client influence the etype? think of AES only server and RFC 1510 client. if client etype is not used here, the client cannot talk to the server. perhaps just as good though. */ rc = shishi_key_random (handle, shishi_key_type (serverkey), &newsessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_key_random failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * By default, the address field, the client's name and realm, the list * of transited realms, the time of initial authentication, the * expiration time, and the authorization data of the newly-issued * ticket will be copied from the ticket-granting ticket (TGT) or * renewable ticket. If the transited field needs to be updated, but the * transited type is not supported, the KDC_ERR_TRTYPE_NOSUPP error is * returned. */ tkt = shishi_tgs_tkt (tgs); if (tkt == NULL) { syslog (LOG_ERR, "shishi_tgs_tkt failed"); goto fatal; } rc = shishi_encticketpart_crealm (handle, shishi_tkt_encticketpart (shishi_ap_tkt (shishi_tgs_ap (tgs))), &clientrealm, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_encticketpart_crealm failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_encticketpart_client (handle, shishi_tkt_encticketpart (shishi_ap_tkt (shishi_tgs_ap (tgs))), &clientname, NULL); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_encticketpart_client failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_clientrealm_set (tkt, clientrealm, clientname); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_clientrealm_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* XXX Copy more fields. Move copying into lib/? */ rc = shishi_encticketpart_endtime_set (handle, shishi_tkt_encticketpart (tkt), shishi_generalize_time (handle, shishi_kdcreq_tillc (handle, shishi_tgs_req (tgs)))); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_encticketpart_endtime_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_key_set (tkt, newsessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_key_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_tkt_serverrealm_set (tkt, serverrealm, servername); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_serverrealm_set failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } syslog (LOG_DEBUG, "TGS-REQ from %s@%s for %s@%s", clientname, clientrealm, servername, serverrealm); /* * If the request specifies an endtime, then the endtime of the new * ticket is set to the minimum of (a) that request, (b) the endtime * from the TGT, and (c) the starttime of the TGT plus the minimum of * the maximum life for the application server and the maximum life for * the local realm (the maximum life for the requesting principal was * already applied when the TGT was issued). If the new ticket is to be * a renewal, then the endtime above is replaced by the minimum of (a) * the value of the renew_till field of the ticket and (b) the starttime * for the new ticket plus the life (endtime-starttime) of the old * ticket. * * If the FORWARDED option has been requested, then the resulting ticket * will contain the addresses specified by the client. This option will * only be honored if the FORWARDABLE flag is set in the TGT. The PROXY * option is similar; the resulting ticket will contain the addresses * specified by the client. It will be honored only if the PROXIABLE * flag in the TGT is set. The PROXY option will not be honored on * requests for additional ticket-granting tickets. * * If the requested start time is absent, indicates a time in the past, * or is within the window of acceptable clock skew for the KDC and the * POSTDATE option has not been specified, then the start time of the * ticket is set to the authentication server's current time. If it * indicates a time in the future beyond the acceptable clock skew, but * the POSTDATED option has not been specified or the MAY-POSTDATE flag * is not set in the TGT, then the error KDC_ERR_CANNOT_POSTDATE is * returned. Otherwise, if the ticket-granting ticket has the MAY- * POSTDATE flag set, then the resulting ticket will be postdated and * the requested starttime is checked against the policy of the local * realm. If acceptable, the ticket's start time is set as requested, * and the INVALID flag is set. The postdated ticket MUST be validated * before use by presenting it to the KDC after the starttime has been * reached. However, in no case may the starttime, endtime, or renew- * till time of a newly-issued postdated ticket extend beyond the renew- * till time of the ticket-granting ticket. * * If the ENC-TKT-IN-SKEY option has been specified and an additional * ticket has been included in the request, it indicates that the client * is using user- to-user authentication to prove its identity to a * server that does not have access to a persistent key. Section 3.7 * describes the affect of this option on the entire Kerberos protocol. * When generating the KRB_TGS_REP message, this option in the * KRB_TGS_REQ message tells the KDC to decrypt the additional ticket * using the key for the server to which the additional ticket was * issued and verify that it is a ticket-granting ticket. If the name of * the requested server is missing from the request, the name of the * client in the additional ticket will be used. Otherwise the name of * the requested server will be compared to the name of the client in * the additional ticket and if different, the request will be rejected. * If the request succeeds, the session key from the additional ticket * will be used to encrypt the new ticket that is issued instead of * using the key of the server for which the new ticket will be used. * * If the name of the server in the ticket that is presented to the KDC * as part of the authentication header is not that of the ticket- * granting server itself, the server is registered in the realm of the * KDC, and the RENEW option is requested, then the KDC will verify that * the RENEWABLE flag is set in the ticket, that the INVALID flag is not * set in the ticket, and that the renew_till time is still in the * future. If the VALIDATE option is requested, the KDC will check that * the starttime has passed and the INVALID flag is set. If the PROXY * option is requested, then the KDC will check that the PROXIABLE flag * is set in the ticket. If the tests succeed, and the ticket passes the * hotlist check described in the next section, the KDC will issue the * appropriate new ticket. */ /* XXX Set more things in ticket, as described above. */ rc = shishi_tkt_build (tkt, serverkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tkt_build failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } /* * The ciphertext part of the response in the KRB_TGS_REP message is * encrypted in the sub-session key from the Authenticator, if present, * or the session key from the ticket-granting ticket. It is not * encrypted using the client's secret key. Furthermore, the client's * key's expiration date and the key version number fields are left out * since these values are stored along with the client's database * record, and that record is not needed to satisfy a request based on a * ticket-granting ticket. */ rc = shishi_encticketpart_get_key (handle, shishi_tkt_encticketpart (shishi_ap_tkt (shishi_tgs_ap (tgs))), &oldsessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_encticketpart_get_key failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } rc = shishi_authenticator_get_subkey (handle, shishi_ap_authenticator (shishi_tgs_ap (tgs)), &subkey); if (rc != SHISHI_OK && rc != SHISHI_ASN1_NO_ELEMENT) { syslog (LOG_ERR, "shishi_authenticator_get_subkey failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } if (rc == SHISHI_OK) rc = shishi_tgs_rep_build (tgs, SHISHI_KEYUSAGE_ENCTGSREPPART_AUTHENTICATOR_KEY, subkey); else rc = shishi_tgs_rep_build (tgs, SHISHI_KEYUSAGE_ENCTGSREPPART_SESSION_KEY, oldsessionkey); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tgs_rep_build failed (%d): %s", rc, shishi_strerror (rc)); goto fatal; } if (arg.verbose_given) { puts ("KDC-REQ in:"); shishi_kdcreq_print (handle, stderr, shishi_tgs_req (tgs)); puts ("AP-REQ in KDC-REQ:"); shishi_apreq_print (handle, stderr, shishi_ap_req (shishi_tgs_ap (tgs))); puts ("Authenticator in AP-REQ in KDC-REQ:"); shishi_authenticator_print (handle, stderr, shishi_ap_authenticator (shishi_tgs_ap (tgs))); puts ("Ticket in AP-REQ:"); shishi_ticket_print (handle, stdout, shishi_tkt_ticket (shishi_ap_tkt (shishi_tgs_ap (tgs)))); puts ("EncTicketPart in AP-REQ:"); shishi_encticketpart_print (handle, stdout, shishi_tkt_encticketpart (shishi_ap_tkt (shishi_tgs_ap (tgs)))); puts ("Ticket in TGS-REP:"); shishi_ticket_print (handle, stdout, shishi_tkt_ticket (tkt)); puts ("EncTicketPart in TGS-REP:"); shishi_encticketpart_print (handle, stderr, shishi_tkt_encticketpart (tkt)); puts ("EncKDCRepPart in TGS-REP:"); shishi_enckdcreppart_print (handle, stderr, shishi_tkt_enckdcreppart (tkt)); puts ("KDC-REP:"); shishi_kdcrep_print (handle, stderr, shishi_tgs_rep (tgs)); } rc = SHISHI_OK; fatal: free (tgrealm); free (tgname); free (servername); free (serverrealm); free (clientname); free (clientrealm); if (tgkeys) shisa_keys_free (dbh, tgkeys, ntgkeys); if (serverkeys) shisa_keys_free (dbh, serverkeys, nserverkeys); if (tgkey) shishi_key_done (tgkey); if (serverkey) shishi_key_done (serverkey); if (newsessionkey) shishi_key_done (newsessionkey); if (oldsessionkey) shishi_key_done (oldsessionkey); if (subkey) shishi_key_done (subkey); return rc; } static int asreq (Shishi_asn1 kdcreq, char **out, size_t *outlen) { Shishi_as *as; int rc; rc = shishi_as (handle, &as); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_as failed (%d): %s", rc, shishi_strerror (rc)); return rc; } shishi_as_req_set (as, kdcreq); rc = asreq1 (as); if (rc != SHISHI_OK) { syslog (LOG_NOTICE, "AS-REQ failing with KRB-ERROR: %s", shishi_krberror_message (handle, shishi_as_krberror (as))); rc = shishi_as_krberror_der (as, out, outlen); } else rc = shishi_as_rep_der (as, out, outlen); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_as_rep_der failed (%d): %s", rc, shishi_strerror (rc)); return rc; } return SHISHI_OK; } static int tgsreq (Shishi_asn1 kdcreq, char **out, size_t *outlen) { Shishi_tgs *tgs; int rc; rc = shishi_tgs (handle, &tgs); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tgs failed (%d): %s", rc, shishi_strerror (rc)); return rc; } shishi_tgs_req_set (tgs, kdcreq); rc = tgsreq1 (tgs); if (rc != SHISHI_OK) { syslog (LOG_NOTICE, "TGS-REQ failing with KRB-ERROR: %s", shishi_krberror_message (handle, shishi_tgs_krberror (tgs))); rc = shishi_tgs_krberror_der (tgs, out, outlen); } else rc = shishi_tgs_rep_der (tgs, out, outlen); if (rc != SHISHI_OK) { syslog (LOG_ERR, "shishi_tgs_rep_der failed (%d): %s", rc, shishi_strerror (rc)); return rc; } return SHISHI_OK; } ssize_t process (const char *in, size_t inlen, char **out) { Shishi_asn1 node; size_t outlen; int rc; node = shishi_der2asn1 (handle, in, inlen); if (node == NULL) { syslog (LOG_ERR, "Received %zu bytes of unknown data", inlen); return -1; } switch (shishi_asn1_msgtype (handle, node)) { case SHISHI_MSGTYPE_AS_REQ: rc = asreq (node, out, &outlen); break; case SHISHI_MSGTYPE_TGS_REQ: rc = tgsreq (node, out, &outlen); break; case SHISHI_MSGTYPE_AS_REP: case SHISHI_MSGTYPE_TGS_REP: case SHISHI_MSGTYPE_AP_REQ: case SHISHI_MSGTYPE_AP_REP: case SHISHI_MSGTYPE_RESERVED16: case SHISHI_MSGTYPE_RESERVED17: case SHISHI_MSGTYPE_SAFE: case SHISHI_MSGTYPE_PRIV: case SHISHI_MSGTYPE_CRED: case SHISHI_MSGTYPE_ERROR: default: syslog (LOG_ERR, "Unsupported KDC message type %u (0x%x)", shishi_asn1_msgtype (handle, node), shishi_asn1_msgtype (handle, node)); rc = SHISHI_ASN1_ERROR; break; } if (rc != SHISHI_OK) { syslog (LOG_ERR, "Fatal error answering request (%d): %s", rc, shishi_strerror (rc)); return -1; } return outlen; } shishi-1.0.3/src/gl/0000755000000000000000000000000014273616163011153 500000000000000shishi-1.0.3/src/gl/close.c0000644000000000000000000000314314273615074012345 00000000000000/* close replacement. Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include "fd-hook.h" #if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" #endif #undef close #if defined _WIN32 && !defined __CYGWIN__ # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int close_nothrow (int fd) { int result; TRY_MSVC_INVAL { result = _close (fd); } CATCH_MSVC_INVAL { result = -1; errno = EBADF; } DONE_MSVC_INVAL; return result; } # else # define close_nothrow _close # endif #else # define close_nothrow close #endif /* Override close() to call into other gnulib modules. */ int rpl_close (int fd) { #if WINDOWS_SOCKETS int retval = execute_all_close_hooks (close_nothrow, fd); #else int retval = close_nothrow (fd); #endif #if REPLACE_FCHDIR if (retval >= 0) _gl_unregister_fd (fd); #endif return retval; } shishi-1.0.3/src/gl/error.h0000644000000000000000000000446014273615074012401 00000000000000/* Declaration for error-reporting function Copyright (C) 1995-1997, 2003, 2006, 2008-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _ERROR_H #define _ERROR_H 1 /* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM. */ #include #ifdef __cplusplus extern "C" { #endif /* Print a message with 'fprintf (stderr, FORMAT, ...)'; if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). If STATUS is nonzero, terminate the program with 'exit (STATUS)'. */ extern void error (int __status, int __errnum, const char *__format, ...) #if GNULIB_VFPRINTF_POSIX _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 4)) #else _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, 3, 4)) #endif ; extern void error_at_line (int __status, int __errnum, const char *__fname, unsigned int __lineno, const char *__format, ...) #if GNULIB_VFPRINTF_POSIX _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 5, 6)) #else _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, 5, 6)) #endif ; /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ extern void (*error_print_progname) (void); /* This variable is incremented each time 'error' is called. */ extern unsigned int error_message_count; /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ extern int error_one_per_line; #ifdef __cplusplus } #endif #endif /* error.h */ shishi-1.0.3/src/gl/malloca.c0000644000000000000000000000725314273615075012657 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003, 2006-2007, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2003, 2018. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #define _GL_USE_STDLIB_ALLOC 1 #include /* Specification. */ #include "malloca.h" #include "idx.h" #include "intprops.h" #include "verify.h" /* The speed critical point in this file is freea() applied to an alloca() result: it must be fast, to match the speed of alloca(). The speed of mmalloca() and freea() in the other case are not critical, because they are only invoked for big memory sizes. Here we use a bit in the address as an indicator, an idea by OndÅ™ej Bílka. malloca() can return three types of pointers: - Pointers ≡ 0 mod 2*sa_alignment_max come from stack allocation. - Pointers ≡ sa_alignment_max mod 2*sa_alignment_max come from heap allocation. - NULL comes from a failed heap allocation. */ /* Type for holding very small pointer differences. */ typedef unsigned char small_t; /* Verify that it is wide enough. */ verify (2 * sa_alignment_max - 1 <= (small_t) -1); void * mmalloca (size_t n) { #if HAVE_ALLOCA /* Allocate one more word, used to determine the address to pass to freea(), and room for the alignment ≡ sa_alignment_max mod 2*sa_alignment_max. */ uintptr_t alignment2_mask = 2 * sa_alignment_max - 1; int plus = sizeof (small_t) + alignment2_mask; idx_t nplus; if (!INT_ADD_WRAPV (n, plus, &nplus) && !xalloc_oversized (nplus, 1)) { char *mem = (char *) malloc (nplus); if (mem != NULL) { uintptr_t umem = (uintptr_t)mem, umemplus; /* The INT_ADD_WRAPV avoids signed integer overflow on theoretical platforms where UINTPTR_MAX <= INT_MAX. */ INT_ADD_WRAPV (umem, sizeof (small_t) + sa_alignment_max - 1, &umemplus); idx_t offset = ((umemplus & ~alignment2_mask) + sa_alignment_max - umem); void *vp = mem + offset; small_t *p = vp; /* Here p >= mem + sizeof (small_t), and p <= mem + sizeof (small_t) + 2 * sa_alignment_max - 1 hence p + n <= mem + nplus. So, the memory range [p, p+n) lies in the allocated memory range [mem, mem + nplus). */ p[-1] = offset; /* p ≡ sa_alignment_max mod 2*sa_alignment_max. */ return p; } } /* Out of memory. */ return NULL; #else # if !MALLOC_0_IS_NONNULL if (n == 0) n = 1; # endif return malloc (n); #endif } #if HAVE_ALLOCA void freea (void *p) { /* Check argument. */ if ((uintptr_t) p & (sa_alignment_max - 1)) { /* p was not the result of a malloca() call. Invalid argument. */ abort (); } /* Determine whether p was a non-NULL pointer returned by mmalloca(). */ if ((uintptr_t) p & sa_alignment_max) { void *mem = (char *) p - ((small_t *) p)[-1]; free (mem); } } #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/src/gl/getopt-pfx-ext.h0000644000000000000000000000536514273615074014150 00000000000000/* getopt (GNU extensions) gnulib wrapper header. Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of gnulib. Unlike most of the getopt implementation, it is NOT shared with the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GETOPT_PFX_EXT_H #define _GETOPT_PFX_EXT_H 1 /* This header should not be used directly; include getopt.h instead. It does not have a protective #error, because the guard macro for getopt.h in gnulib is not fixed. */ /* Standalone applications should #define __GETOPT_PREFIX to an identifier that prefixes the external functions and variables defined in getopt-core.h and getopt-ext.h. Systematically rename identifiers so that they do not collide with the system functions and variables. Renaming avoids problems with some compilers and linkers. */ #ifdef __GETOPT_PREFIX # ifndef __GETOPT_ID # define __GETOPT_CONCAT(x, y) x ## y # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) # endif # undef getopt_long # undef getopt_long_only # undef option # undef _getopt_internal # define getopt_long __GETOPT_ID (getopt_long) # define getopt_long_only __GETOPT_ID (getopt_long_only) # define option __GETOPT_ID (option) # define _getopt_internal __GETOPT_ID (getopt_internal) /* The system's getopt.h may have already included getopt-ext.h to declare the unprefixed identifiers. Undef _GETOPT_EXT_H so that getopt-ext.h declares them with prefixes. */ # undef _GETOPT_EXT_H #endif /* Standalone applications get correct prototypes for getopt_long and getopt_long_only; they declare "char **argv". For backward compatibility with old applications, if __GETOPT_PREFIX is not defined, we supply GNU-libc-compatible, but incorrect, prototypes using "char *const *argv". (GNU libc is stuck with the incorrect prototypes, as they are baked into older versions of LSB.) */ #ifndef __getopt_argv_const # if defined __GETOPT_PREFIX # define __getopt_argv_const /* empty */ # else # define __getopt_argv_const const # endif #endif #include #endif /* _GETOPT_PFX_EXT_H */ shishi-1.0.3/src/gl/idx.h0000644000000000000000000001206214273615074012031 00000000000000/* A type for indices and sizes. Copyright (C) 2020-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _IDX_H #define _IDX_H /* Get ptrdiff_t. */ #include /* Get PTRDIFF_MAX. */ #include /* The type 'idx_t' holds an (array) index or an (object) size. Its implementation promotes to a signed integer type, which can hold the values 0..2^63-1 (on 64-bit platforms) or 0..2^31-1 (on 32-bit platforms). Why a signed integer type? * Security: Signed types can be checked for overflow via '-fsanitize=undefined', but unsigned types cannot. * Comparisons without surprises: ISO C99 § 6.3.1.8 specifies a few surprising results for comparisons, such as (int) -3 < (unsigned long) 7 => false (int) -3 < (unsigned int) 7 => false and on 32-bit machines: (long) -3 < (unsigned int) 7 => false This is surprising because the natural comparison order is by value in the realm of infinite-precision signed integers (ℤ). The best way to get rid of such surprises is to use signed types for numerical integer values, and use unsigned types only for bit masks and enums. Why not use 'size_t' directly? * Because 'size_t' is an unsigned type, and a signed type is better. See above. Why not use 'ssize_t'? * 'ptrdiff_t' is more portable; it is standardized by ISO C whereas 'ssize_t' is standardized only by POSIX. * 'ssize_t' is not required to be as wide as 'size_t', and some now-obsolete POSIX platforms had 'size_t' wider than 'ssize_t'. * Conversely, some now-obsolete platforms had 'ptrdiff_t' wider than 'size_t', which can be a win and conforms to POSIX. Won't this cause a problem with objects larger than PTRDIFF_MAX? * Typical modern or large platforms do not allocate such objects, so this is not much of a problem in practice; for example, you can safely write 'idx_t len = strlen (s);'. To port to older small platforms where allocations larger than PTRDIFF_MAX could in theory be a problem, you can use Gnulib's ialloc module, or functions like ximalloc in Gnulib's xalloc module. Why not use 'ptrdiff_t' directly? * Maintainability: When reading and modifying code, it helps to know that a certain variable cannot have negative values. For example, when you have a loop int n = ...; for (int i = 0; i < n; i++) ... or ptrdiff_t n = ...; for (ptrdiff_t i = 0; i < n; i++) ... you have to ask yourself "what if n < 0?". Whereas in idx_t n = ...; for (idx_t i = 0; i < n; i++) ... you know that this case cannot happen. Similarly, when a programmer writes idx_t = ptr2 - ptr1; there is an implied assertion that ptr1 and ptr2 point into the same object and that ptr1 <= ptr2. * Being future-proof: In the future, range types (integers which are constrained to a certain range of values) may be added to C compilers or to the C standard. Several programming languages (Ada, Haskell, Common Lisp, Pascal) already have range types. Such range types may help producing good code and good warnings. The type 'idx_t' could then be typedef'ed to a range type that is signed after promotion. */ /* In the future, idx_t could be typedef'ed to a signed range type. The clang "extended integer types", supported in Clang 11 or newer , are a special case of range types. However, these types don't support binary operators with plain integer types (e.g. expressions such as x > 1). Therefore, they don't behave like signed types (and not like unsigned types either). So, we cannot use them here. */ /* Use the signed type 'ptrdiff_t'. */ /* Note: ISO C does not mandate that 'size_t' and 'ptrdiff_t' have the same size, but it is so on all platforms we have seen since 1990. */ typedef ptrdiff_t idx_t; /* IDX_MAX is the maximum value of an idx_t. */ #define IDX_MAX PTRDIFF_MAX /* So far no need has been found for an IDX_WIDTH macro. Perhaps there should be another macro IDX_VALUE_BITS that does not count the sign bit and is therefore one less than PTRDIFF_WIDTH. */ #endif /* _IDX_H */ shishi-1.0.3/src/gl/strerror.c0000644000000000000000000000407414273615075013127 00000000000000/* strerror.c --- POSIX compatible system error routine Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #include #include #include #include #include "intprops.h" #include "strerror-override.h" #include "verify.h" /* Use the system functions, not the gnulib overrides in this file. */ #undef sprintf char * strerror (int n) #undef strerror { static char buf[STACKBUF_LEN]; size_t len; /* Cast away const, due to the historical signature of strerror; callers should not be modifying the string. */ const char *msg = strerror_override (n); if (msg) return (char *) msg; msg = strerror (n); /* Our strerror_r implementation might use the system's strerror buffer, so all other clients of strerror have to see the error copied into a buffer that we manage. This is not thread-safe, even if the system strerror is, but portable programs shouldn't be using strerror if they care about thread-safety. */ if (!msg || !*msg) { static char const fmt[] = "Unknown error %d"; verify (sizeof buf >= sizeof (fmt) + INT_STRLEN_BOUND (n)); sprintf (buf, fmt, n); errno = EINVAL; return buf; } /* Fix STACKBUF_LEN if this ever aborts. */ len = strlen (msg); if (sizeof buf <= len) abort (); memcpy (buf, msg, len + 1); return buf; } shishi-1.0.3/src/gl/limits.in.h0000644000000000000000000001072514273615074013157 00000000000000/* A GNU-like . Copyright 2016-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _GL_ALREADY_INCLUDING_LIMITS_H /* Special invocation convention: On Haiku/x86_64, we have a sequence of nested includes -> -> . In this situation, LONG_MAX and INT_MAX are not yet defined, therefore we should not attempt to define LONG_BIT. */ #@INCLUDE_NEXT@ @NEXT_LIMITS_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_LIMITS_H # define _GL_ALREADY_INCLUDING_LIMITS_H /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_LIMITS_H@ # undef _GL_ALREADY_INCLUDING_LIMITS_H #ifndef _@GUARD_PREFIX@_LIMITS_H #define _@GUARD_PREFIX@_LIMITS_H #ifndef LLONG_MIN # if defined LONG_LONG_MIN /* HP-UX 11.31 */ # define LLONG_MIN LONG_LONG_MIN # elif defined LONGLONG_MIN /* IRIX 6.5 */ # define LLONG_MIN LONGLONG_MIN # elif defined __GNUC__ # define LLONG_MIN (- __LONG_LONG_MAX__ - 1LL) # endif #endif #ifndef LLONG_MAX # if defined LONG_LONG_MAX /* HP-UX 11.31 */ # define LLONG_MAX LONG_LONG_MAX # elif defined LONGLONG_MAX /* IRIX 6.5 */ # define LLONG_MAX LONGLONG_MAX # elif defined __GNUC__ # define LLONG_MAX __LONG_LONG_MAX__ # endif #endif #ifndef ULLONG_MAX # if defined ULONG_LONG_MAX /* HP-UX 11.31 */ # define ULLONG_MAX ULONG_LONG_MAX # elif defined ULONGLONG_MAX /* IRIX 6.5 */ # define ULLONG_MAX ULONGLONG_MAX # elif defined __GNUC__ # define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1ULL) # endif #endif /* The number of usable bits in an unsigned or signed integer type with minimum value MIN and maximum value MAX, as an int expression suitable in #if. Cover all known practical hosts. This implementation exploits the fact that MAX is 1 less than a power of 2, and merely counts the number of 1 bits in MAX; "COBn" means "count the number of 1 bits in the low-order n bits"). */ #define _GL_INTEGER_WIDTH(min, max) (((min) < 0) + _GL_COB128 (max)) #define _GL_COB128(n) (_GL_COB64 ((n) >> 31 >> 31 >> 2) + _GL_COB64 (n)) #define _GL_COB64(n) (_GL_COB32 ((n) >> 31 >> 1) + _GL_COB32 (n)) #define _GL_COB32(n) (_GL_COB16 ((n) >> 16) + _GL_COB16 (n)) #define _GL_COB16(n) (_GL_COB8 ((n) >> 8) + _GL_COB8 (n)) #define _GL_COB8(n) (_GL_COB4 ((n) >> 4) + _GL_COB4 (n)) #define _GL_COB4(n) (!!((n) & 8) + !!((n) & 4) + !!((n) & 2) + !!((n) & 1)) #ifndef WORD_BIT /* Assume 'int' is 32 bits wide. */ # define WORD_BIT 32 #endif #ifndef LONG_BIT /* Assume 'long' is 32 or 64 bits wide. */ # if LONG_MAX == INT_MAX # define LONG_BIT 32 # else # define LONG_BIT 64 # endif #endif /* Macros specified by C2x and by ISO/IEC TS 18661-1:2014. */ #if (! defined ULLONG_WIDTH \ && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \ || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))) # define CHAR_WIDTH _GL_INTEGER_WIDTH (CHAR_MIN, CHAR_MAX) # define SCHAR_WIDTH _GL_INTEGER_WIDTH (SCHAR_MIN, SCHAR_MAX) # define UCHAR_WIDTH _GL_INTEGER_WIDTH (0, UCHAR_MAX) # define SHRT_WIDTH _GL_INTEGER_WIDTH (SHRT_MIN, SHRT_MAX) # define USHRT_WIDTH _GL_INTEGER_WIDTH (0, USHRT_MAX) # define INT_WIDTH _GL_INTEGER_WIDTH (INT_MIN, INT_MAX) # define UINT_WIDTH _GL_INTEGER_WIDTH (0, UINT_MAX) # define LONG_WIDTH _GL_INTEGER_WIDTH (LONG_MIN, LONG_MAX) # define ULONG_WIDTH _GL_INTEGER_WIDTH (0, ULONG_MAX) # define LLONG_WIDTH _GL_INTEGER_WIDTH (LLONG_MIN, LLONG_MAX) # define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX) #endif /* Macros specified by C2x. */ #if (! defined BOOL_WIDTH \ && (defined _GNU_SOURCE \ || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))) # define BOOL_MAX 1 # define BOOL_WIDTH 1 #endif #endif /* _@GUARD_PREFIX@_LIMITS_H */ #endif /* _@GUARD_PREFIX@_LIMITS_H */ #endif shishi-1.0.3/src/gl/cloexec.c0000644000000000000000000000445414273615074012670 00000000000000/* cloexec.c - set or clear the close-on-exec descriptor flag Copyright (C) 1991, 2004-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* The code is taken from glibc/manual/llio.texi */ #include #include "cloexec.h" #include #include #include /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, or clear the flag if VALUE is false. Return 0 on success, or -1 on error with 'errno' set. Note that on MingW, this function does NOT protect DESC from being inherited into spawned children. Instead, either use dup_cloexec followed by closing the original DESC, or use interfaces such as open or pipe2 that accept flags like O_CLOEXEC to create DESC non-inheritable in the first place. */ int set_cloexec_flag (int desc, bool value) { #ifdef F_SETFD int flags = fcntl (desc, F_GETFD, 0); if (0 <= flags) { int newflags = (value ? flags | FD_CLOEXEC : flags & ~FD_CLOEXEC); if (flags == newflags || fcntl (desc, F_SETFD, newflags) != -1) return 0; } return -1; #else /* !F_SETFD */ /* Use dup2 to reject invalid file descriptors; the cloexec flag will be unaffected. */ if (desc < 0) { errno = EBADF; return -1; } if (dup2 (desc, desc) < 0) /* errno is EBADF here. */ return -1; /* There is nothing we can do on this kind of platform. Punt. */ return 0; #endif /* !F_SETFD */ } /* Duplicates a file handle FD, while marking the copy to be closed prior to exec or spawn. Returns -1 and sets errno if FD could not be duplicated. */ int dup_cloexec (int fd) { return fcntl (fd, F_DUPFD_CLOEXEC, 0); } shishi-1.0.3/src/gl/fd-hook.c0000644000000000000000000000702514273615074012572 00000000000000/* Hook for making file descriptor functions close(), ioctl() extensible. Copyright (C) 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "fd-hook.h" #include /* Currently, this entire code is only needed for the handling of sockets on native Windows platforms. */ #if WINDOWS_SOCKETS /* The first and last link in the doubly linked list. Initially the list is empty. */ static struct fd_hook anchor = { &anchor, &anchor, NULL, NULL }; int execute_close_hooks (const struct fd_hook *remaining_list, gl_close_fn primary, int fd) { if (remaining_list == &anchor) /* End of list reached. */ return primary (fd); else return remaining_list->private_close_fn (remaining_list->private_next, primary, fd); } int execute_all_close_hooks (gl_close_fn primary, int fd) { return execute_close_hooks (anchor.private_next, primary, fd); } int execute_ioctl_hooks (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg) { if (remaining_list == &anchor) /* End of list reached. */ return primary (fd, request, arg); else return remaining_list->private_ioctl_fn (remaining_list->private_next, primary, fd, request, arg); } int execute_all_ioctl_hooks (gl_ioctl_fn primary, int fd, int request, void *arg) { return execute_ioctl_hooks (anchor.private_next, primary, fd, request, arg); } void register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link) { if (close_hook == NULL) close_hook = execute_close_hooks; if (ioctl_hook == NULL) ioctl_hook = execute_ioctl_hooks; if (link->private_next == NULL && link->private_prev == NULL) { /* Add the link to the doubly linked list. */ link->private_next = anchor.private_next; link->private_prev = &anchor; link->private_close_fn = close_hook; link->private_ioctl_fn = ioctl_hook; anchor.private_next->private_prev = link; anchor.private_next = link; } else { /* The link is already in use. */ if (link->private_close_fn != close_hook || link->private_ioctl_fn != ioctl_hook) abort (); } } void unregister_fd_hook (struct fd_hook *link) { struct fd_hook *next = link->private_next; struct fd_hook *prev = link->private_prev; if (next != NULL && prev != NULL) { /* The link is in use. Remove it from the doubly linked list. */ prev->private_next = next; next->private_prev = prev; /* Clear the link, to mark it unused. */ link->private_next = NULL; link->private_prev = NULL; link->private_close_fn = NULL; link->private_ioctl_fn = NULL; } } #endif shishi-1.0.3/src/gl/fcntl.in.h0000644000000000000000000003133114273615074012760 00000000000000/* Like , but with non-working flags defined to 0. Copyright (C) 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Paul Eggert */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_fcntl_h /* Special invocation convention. */ /* Needed before . May also define off_t to a 64-bit type on native Windows. */ #include /* On some systems other than glibc, is a prerequisite of . On glibc systems, we would like to avoid namespace pollution. But on glibc systems, includes inside an extern "C" { ... } block, which leads to errors in C++ mode with the overridden from gnulib. These errors are known to be gone with g++ version >= 4.3. */ #if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))) # include #endif #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ /* Native Windows platforms declare open(), creat() in . */ #if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) # include #endif #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_FCNTL_H /* Needed before . May also define off_t to a 64-bit type on native Windows. */ #include /* On some systems other than glibc, is a prerequisite of . On glibc systems, we would like to avoid namespace pollution. But on glibc systems, includes inside an extern "C" { ... } block, which leads to errors in C++ mode with the overridden from gnulib. These errors are known to be gone with g++ version >= 4.3. */ #if !(defined __GLIBC__ || defined __UCLIBC__) || (defined __cplusplus && defined GNULIB_NAMESPACE && (defined __ICC || !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)))) # include #endif /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_FCNTL_H@ /* Native Windows platforms declare open(), creat() in . */ #if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) # include #endif #ifndef _@GUARD_PREFIX@_FCNTL_H #define _@GUARD_PREFIX@_FCNTL_H #ifndef __GLIBC__ /* Avoid namespace pollution on glibc systems. */ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Declare overridden functions. */ #if @GNULIB_CREAT@ # if @REPLACE_CREAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat rpl_creat # endif _GL_FUNCDECL_RPL (creat, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (creat, int, (const char *filename, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat _creat # endif _GL_CXXALIAS_MDA (creat, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (creat); #elif defined GNULIB_POSIXCHECK # undef creat /* Assume creat is always declared. */ _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " "use gnulib module creat for portability"); #elif @GNULIB_MDA_CREAT@ /* On native Windows, map 'creat' to '_creat', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::creat always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef creat # define creat _creat # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (creat, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (creat); #endif #if @GNULIB_FCNTL@ # if @REPLACE_FCNTL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcntl # define fcntl rpl_fcntl # endif _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); # if !GNULIB_defined_rpl_fcntl # define GNULIB_defined_rpl_fcntl 1 # endif # else # if !@HAVE_FCNTL@ _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); # if !GNULIB_defined_fcntl # define GNULIB_defined_fcntl 1 # endif # endif _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); # endif _GL_CXXALIASWARN (fcntl); #elif defined GNULIB_POSIXCHECK # undef fcntl # if HAVE_RAW_DECL_FCNTL _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - " "use gnulib module fcntl for portability"); # endif #endif #if @GNULIB_OPEN@ # if @REPLACE_OPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open rpl_open # endif _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open _open # endif _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); # else _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); # endif /* On HP-UX 11, in C++ mode, open() is defined as an inline function with a default argument. _GL_CXXALIASWARN does not work in this case. */ # if !defined __hpux _GL_CXXALIASWARN (open); # endif #elif defined GNULIB_POSIXCHECK # undef open /* Assume open is always declared. */ _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " "use gnulib module open for portability"); #elif @GNULIB_MDA_OPEN@ /* On native Windows, map 'open' to '_open', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::open always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef open # define open _open # endif _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); # else _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); # endif # if !defined __hpux _GL_CXXALIASWARN (open); # endif #endif #if @GNULIB_OPENAT@ # if @REPLACE_OPENAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef openat # define openat rpl_openat # endif _GL_FUNCDECL_RPL (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...)); # else # if !@HAVE_OPENAT@ _GL_FUNCDECL_SYS (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (openat, int, (int fd, char const *file, int flags, /* mode_t mode */ ...)); # endif _GL_CXXALIASWARN (openat); #elif defined GNULIB_POSIXCHECK # undef openat # if HAVE_RAW_DECL_OPENAT _GL_WARN_ON_USE (openat, "openat is not portable - " "use gnulib module openat for portability"); # endif #endif /* Fix up the FD_* macros, only known to be missing on mingw. */ #ifndef FD_CLOEXEC # define FD_CLOEXEC 1 #endif /* Fix up the supported F_* macros. Intentionally leave other F_* macros undefined. Only known to be missing on mingw. */ #ifndef F_DUPFD_CLOEXEC # define F_DUPFD_CLOEXEC 0x40000000 /* Witness variable: 1 if gnulib defined F_DUPFD_CLOEXEC, 0 otherwise. */ # define GNULIB_defined_F_DUPFD_CLOEXEC 1 #else # define GNULIB_defined_F_DUPFD_CLOEXEC 0 #endif #ifndef F_DUPFD # define F_DUPFD 1 #endif #ifndef F_GETFD # define F_GETFD 2 #endif /* Fix up the O_* macros. */ /* AIX 7.1 with XL C 12.1 defines O_CLOEXEC, O_NOFOLLOW, and O_TTY_INIT to values outside 'int' range, so omit these misdefinitions. But avoid namespace pollution on non-AIX systems. */ #ifdef _AIX # include # if defined O_CLOEXEC && ! (INT_MIN <= O_CLOEXEC && O_CLOEXEC <= INT_MAX) # undef O_CLOEXEC # endif # if defined O_NOFOLLOW && ! (INT_MIN <= O_NOFOLLOW && O_NOFOLLOW <= INT_MAX) # undef O_NOFOLLOW # endif # if defined O_TTY_INIT && ! (INT_MIN <= O_TTY_INIT && O_TTY_INIT <= INT_MAX) # undef O_TTY_INIT # endif #endif #if !defined O_DIRECT && defined O_DIRECTIO /* Tru64 spells it 'O_DIRECTIO'. */ # define O_DIRECT O_DIRECTIO #endif #if !defined O_CLOEXEC && defined O_NOINHERIT /* Mingw spells it 'O_NOINHERIT'. */ # define O_CLOEXEC O_NOINHERIT #endif #ifndef O_CLOEXEC # define O_CLOEXEC 0x40000000 /* Try to not collide with system O_* flags. */ # define GNULIB_defined_O_CLOEXEC 1 #else # define GNULIB_defined_O_CLOEXEC 0 #endif #ifndef O_DIRECT # define O_DIRECT 0 #endif #ifndef O_DIRECTORY # define O_DIRECTORY 0 #endif #ifndef O_DSYNC # define O_DSYNC 0 #endif #ifndef O_EXEC # define O_EXEC O_RDONLY /* This is often close enough in older systems. */ #endif #ifndef O_IGNORE_CTTY # define O_IGNORE_CTTY 0 #endif #ifndef O_NDELAY # define O_NDELAY 0 #endif #ifndef O_NOATIME # define O_NOATIME 0 #endif #ifndef O_NONBLOCK # define O_NONBLOCK O_NDELAY #endif /* If the gnulib module 'nonblocking' is in use, guarantee a working non-zero value of O_NONBLOCK. Otherwise, O_NONBLOCK is defined (above) to O_NDELAY or to 0 as fallback. */ #if @GNULIB_NONBLOCKING@ # if O_NONBLOCK # define GNULIB_defined_O_NONBLOCK 0 # else # define GNULIB_defined_O_NONBLOCK 1 # undef O_NONBLOCK # define O_NONBLOCK 0x40000000 # endif #endif #ifndef O_NOCTTY # define O_NOCTTY 0 #endif #ifndef O_NOFOLLOW # define O_NOFOLLOW 0 #endif #ifndef O_NOLINK # define O_NOLINK 0 #endif #ifndef O_NOLINKS # define O_NOLINKS 0 #endif #ifndef O_NOTRANS # define O_NOTRANS 0 #endif #ifndef O_RSYNC # define O_RSYNC 0 #endif #ifndef O_SEARCH # define O_SEARCH O_RDONLY /* This is often close enough in older systems. */ #endif #ifndef O_SYNC # define O_SYNC 0 #endif #ifndef O_TTY_INIT # define O_TTY_INIT 0 #endif #if ~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH) # undef O_ACCMODE # define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in fcntl.h */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #if defined __BEOS__ || defined __HAIKU__ /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif #ifndef O_BINARY # define O_BINARY 0 # define O_TEXT 0 #endif /* Fix up the AT_* macros. */ /* Work around a bug in Solaris 9 and 10: AT_FDCWD is positive. Its value exceeds INT_MAX, so its use as an int doesn't conform to the C standard, and GCC and Sun C complain in some cases. If the bug is present, undef AT_FDCWD here, so it can be redefined below. */ #if 0 < AT_FDCWD && AT_FDCWD == 0xffd19553 # undef AT_FDCWD #endif /* Use the same bit pattern as Solaris 9, but with the proper signedness. The bit pattern is important, in case this actually is Solaris with the above workaround. */ #ifndef AT_FDCWD # define AT_FDCWD (-3041965) #endif /* Use the same values as Solaris 9. This shouldn't matter, but there's no real reason to differ. */ #ifndef AT_SYMLINK_NOFOLLOW # define AT_SYMLINK_NOFOLLOW 4096 #endif #ifndef AT_REMOVEDIR # define AT_REMOVEDIR 1 #endif /* Solaris 9 lacks these two, so just pick unique values. */ #ifndef AT_SYMLINK_FOLLOW # define AT_SYMLINK_FOLLOW 2 #endif #ifndef AT_EACCESS # define AT_EACCESS 4 #endif /* Ignore this flag if not supported. */ #ifndef AT_NO_AUTOMOUNT # define AT_NO_AUTOMOUNT 0 #endif #endif /* _@GUARD_PREFIX@_FCNTL_H */ #endif /* _@GUARD_PREFIX@_FCNTL_H */ #endif shishi-1.0.3/src/gl/pathmax.h0000644000000000000000000000563014273615075012713 00000000000000/* Define PATH_MAX somehow. Requires sys/types.h. Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _PATHMAX_H # define _PATHMAX_H /* POSIX:2008 defines PATH_MAX to be the maximum number of bytes in a filename, including the terminating NUL byte. PATH_MAX is not defined on systems which have no limit on filename length, such as GNU/Hurd. This file does *not* define PATH_MAX always. Programs that use this file can handle the GNU/Hurd case in several ways: - Either with a package-wide handling, or with a per-file handling, - Either through a #ifdef PATH_MAX or through a fallback like #ifndef PATH_MAX # define PATH_MAX 8192 #endif or through a fallback like #ifndef PATH_MAX # define PATH_MAX pathconf ("/", _PC_PATH_MAX) #endif */ # include # include # ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 256 # endif /* Don't include sys/param.h if it already has been. */ # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include # endif # if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN # endif # ifdef __hpux /* On HP-UX, PATH_MAX designates the maximum number of bytes in a filename, *not* including the terminating NUL byte, and is set to 1023. Additionally, when _XOPEN_SOURCE is defined to 500 or more, PATH_MAX is not defined at all any more. */ # undef PATH_MAX # define PATH_MAX 1024 # endif # if defined _WIN32 && ! defined __CYGWIN__ /* The page "Naming Files, Paths, and Namespaces" on msdn.microsoft.com, section "Maximum Path Length Limitation", explains that the maximum size of a filename, including the terminating NUL byte, is 260 = 3 + 256 + 1. This is the same value as - FILENAME_MAX in , - _MAX_PATH in , - MAX_PATH in . Undefine the original value, because mingw's gets it wrong. */ # undef PATH_MAX # define PATH_MAX 260 # endif #endif /* _PATHMAX_H */ shishi-1.0.3/src/gl/getopt-pfx-core.h0000644000000000000000000000502414273615074014270 00000000000000/* getopt (basic, portable features) gnulib wrapper header. Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of gnulib. Unlike most of the getopt implementation, it is NOT shared with the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GETOPT_PFX_CORE_H #define _GETOPT_PFX_CORE_H 1 /* This header should not be used directly; include getopt.h or unistd.h instead. It does not have a protective #error, because the guard macro for getopt.h in gnulib is not fixed. */ /* Standalone applications should #define __GETOPT_PREFIX to an identifier that prefixes the external functions and variables defined in getopt-core.h and getopt-ext.h. Systematically rename identifiers so that they do not collide with the system functions and variables. Renaming avoids problems with some compilers and linkers. */ #ifdef __GETOPT_PREFIX # ifndef __GETOPT_ID # define __GETOPT_CONCAT(x, y) x ## y # define __GETOPT_XCONCAT(x, y) __GETOPT_CONCAT (x, y) # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y) # endif # undef getopt # undef optarg # undef opterr # undef optind # undef optopt # define getopt __GETOPT_ID (getopt) # define optarg __GETOPT_ID (optarg) # define opterr __GETOPT_ID (opterr) # define optind __GETOPT_ID (optind) # define optopt __GETOPT_ID (optopt) /* Work around a a problem on macOS, which declares getopt with a trailing __DARWIN_ALIAS(getopt) that would expand to something like __asm("_" "rpl_getopt" "$UNIX2003") were it not for the following hack to suppress the macOS declaration . */ # ifdef __APPLE__ # define _GETOPT # endif /* The system's getopt.h may have already included getopt-core.h to declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that getopt-core.h declares them with prefixes. */ # undef _GETOPT_CORE_H #endif #include #endif /* _GETOPT_PFX_CORE_H */ shishi-1.0.3/src/gl/xalloc-oversized.h0000644000000000000000000000512014273615075014535 00000000000000/* xalloc-oversized.h -- memory allocation size checking Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef XALLOC_OVERSIZED_H_ #define XALLOC_OVERSIZED_H_ #include #include /* True if N * S does not fit into both ptrdiff_t and size_t. N and S should be nonnegative and free of side effects. This expands to a constant expression if N and S are both constants. By gnulib convention, SIZE_MAX represents overflow in size_t calculations, so the conservative size_t-based dividend to use here is SIZE_MAX - 1. */ #define __xalloc_oversized(n, s) \ ((s) != 0 \ && ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) \ < (n))) /* Return 1 if and only if an array of N objects, each of size S, cannot exist reliably because its total size in bytes would exceed MIN (PTRDIFF_MAX, SIZE_MAX - 1). N and S should be nonnegative and free of side effects. Warning: (xalloc_oversized (N, S) ? NULL : malloc (N * S)) can misbehave if N and S are both narrower than ptrdiff_t and size_t, and can be rewritten as (xalloc_oversized (N, S) ? NULL : malloc (N * (size_t) S)). This is a macro, not a function, so that it works even if an argument exceeds MAX (PTRDIFF_MAX, SIZE_MAX). */ #if 7 <= __GNUC__ && !defined __clang__ && PTRDIFF_MAX < SIZE_MAX # define xalloc_oversized(n, s) \ __builtin_mul_overflow_p (n, s, (ptrdiff_t) 1) #elif (5 <= __GNUC__ && !defined __ICC && !__STRICT_ANSI__ \ && PTRDIFF_MAX < SIZE_MAX) # define xalloc_oversized(n, s) \ (__builtin_constant_p (n) && __builtin_constant_p (s) \ ? __xalloc_oversized (n, s) \ : ({ ptrdiff_t __xalloc_count; \ __builtin_mul_overflow (n, s, &__xalloc_count); })) /* Other compilers use integer division; this may be slower but is more portable. */ #else # define xalloc_oversized(n, s) __xalloc_oversized (n, s) #endif #endif /* !XALLOC_OVERSIZED_H_ */ shishi-1.0.3/src/gl/getprogname.h0000644000000000000000000000222314273615074013553 00000000000000/* Program name management. Copyright (C) 2016-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_GETPROGNAME_H #define _GL_GETPROGNAME_H #include #ifdef __cplusplus extern "C" { #endif /* Return the base name of the executing program. On native Windows this will usually end in ".exe" or ".EXE". */ #ifndef HAVE_GETPROGNAME extern char const *getprogname (void) # ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME _GL_ATTRIBUTE_PURE # endif ; #endif #ifdef __cplusplus } #endif #endif shishi-1.0.3/src/gl/getdtablesize.c0000644000000000000000000000656514273615074014101 00000000000000/* getdtablesize() function: Return maximum possible file descriptor value + 1. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include #if defined _WIN32 && ! defined __CYGWIN__ # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" # endif # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int _setmaxstdio_nothrow (int newmax) { int result; TRY_MSVC_INVAL { result = _setmaxstdio (newmax); } CATCH_MSVC_INVAL { result = -1; } DONE_MSVC_INVAL; return result; } # else # define _setmaxstdio_nothrow _setmaxstdio # endif /* Cache for the previous getdtablesize () result. Safe to cache because Windows also lacks setrlimit. */ static int dtablesize; int getdtablesize (void) { if (dtablesize == 0) { /* We are looking for the number N such that the valid file descriptors are 0..N-1. It can be obtained through a loop as follows: { int fd; for (fd = 3; fd < 65536; fd++) if (dup2 (0, fd) == -1) break; return fd; } On Windows XP, the result is 2048. The drawback of this loop is that it allocates memory for a libc internal array that is never freed. The number N can also be obtained as the upper bound for _getmaxstdio (). _getmaxstdio () returns the maximum number of open FILE objects. The sanity check in _setmaxstdio reveals the maximum number of file descriptors. This too allocates memory, but it is freed when we call _setmaxstdio with the original value. */ int orig_max_stdio = _getmaxstdio (); unsigned int bound; for (bound = 0x10000; _setmaxstdio_nothrow (bound) < 0; bound = bound / 2) ; _setmaxstdio_nothrow (orig_max_stdio); dtablesize = bound; } return dtablesize; } #else # include # include # ifndef RLIM_SAVED_CUR # define RLIM_SAVED_CUR RLIM_INFINITY # endif # ifndef RLIM_SAVED_MAX # define RLIM_SAVED_MAX RLIM_INFINITY # endif # ifdef __CYGWIN__ /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it hits the compile-time constant hard limit of 3200. We might as well just report the hard limit. */ # define rlim_cur rlim_max # endif int getdtablesize (void) { struct rlimit lim; if (getrlimit (RLIMIT_NOFILE, &lim) == 0 && 0 <= lim.rlim_cur && lim.rlim_cur <= INT_MAX && lim.rlim_cur != RLIM_INFINITY && lim.rlim_cur != RLIM_SAVED_CUR && lim.rlim_cur != RLIM_SAVED_MAX) return lim.rlim_cur; return INT_MAX; } #endif shishi-1.0.3/src/gl/fstat.c0000644000000000000000000000515314273615074012364 00000000000000/* fstat() replacement. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_fstat doesn't recurse to rpl_fstat. */ #define __need_system_sys_stat_h #include /* Get the original definition of fstat. It might be defined as a macro. */ #include #include #undef __need_system_sys_stat_h #if defined _WIN32 && ! defined __CYGWIN__ # define WINDOWS_NATIVE #endif #if !defined WINDOWS_NATIVE static int orig_fstat (int fd, struct stat *buf) { return fstat (fd, buf); } #endif /* Specification. */ #ifdef __osf__ /* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ # include "sys/stat.h" #else # include #endif #include "stat-time.h" #include #include #ifdef WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif # include "stat-w32.h" #endif int rpl_fstat (int fd, struct stat *buf) { #if REPLACE_FCHDIR && REPLACE_OPEN_DIRECTORY /* Handle the case when rpl_open() used a dummy file descriptor to work around an open() that can't normally visit directories. */ const char *name = _gl_directory_name (fd); if (name != NULL) return stat (name, buf); #endif #ifdef WINDOWS_NATIVE /* Fill the fields ourselves, because the original fstat function returns values for st_atime, st_mtime, st_ctime that depend on the current time zone. See */ HANDLE h = (HANDLE) _get_osfhandle (fd); if (h == INVALID_HANDLE_VALUE) { errno = EBADF; return -1; } return _gl_fstat_by_handle (h, NULL, buf); #else return stat_time_normalize (orig_fstat (fd, buf), buf); #endif } shishi-1.0.3/src/gl/msvc-nothrow.c0000644000000000000000000000255614273615075013716 00000000000000/* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "msvc-nothrow.h" /* Get declarations of the native Windows API functions. */ #define WIN32_LEAN_AND_MEAN #include #if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" #endif #undef _get_osfhandle #if HAVE_MSVC_INVALID_PARAMETER_HANDLER intptr_t _gl_nothrow_get_osfhandle (int fd) { intptr_t result; TRY_MSVC_INVAL { result = _get_osfhandle (fd); } CATCH_MSVC_INVAL { result = (intptr_t) INVALID_HANDLE_VALUE; } DONE_MSVC_INVAL; return result; } #endif shishi-1.0.3/src/gl/gettext.h0000644000000000000000000002501514273615074012733 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option or through "#define ENABLE NLS 0" before including this file. */ #if defined ENABLE_NLS && ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include /* You can set the DEFAULT_TEXT_DOMAIN macro to specify the domain used by the gettext() and ngettext() macros. This is an alternative to calling textdomain(), and is useful for libraries. */ # ifdef DEFAULT_TEXT_DOMAIN # undef gettext # define gettext(Msgid) \ dgettext (DEFAULT_TEXT_DOMAIN, Msgid) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ dngettext (DEFAULT_TEXT_DOMAIN, Msgid1, Msgid2, N) # endif #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Many header files from the libstdc++ coming with g++ 3.3 or newer include , which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. */ #if defined(__cplusplus) && defined(__GNUG__) && (__GNUC__ >= 3) # include # if (__GLIBC__ >= 2 && !defined __UCLIBC__) || _GLIBCXX_HAVE_LIBINTL_H # include # endif #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # undef gettext # define gettext(Msgid) ((const char *) (Msgid)) # undef dgettext # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid)) # undef dcgettext # define dcgettext(Domainname, Msgid, Category) \ ((void) (Category), dgettext (Domainname, Msgid)) # undef ngettext # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 \ ? ((void) (Msgid2), (const char *) (Msgid1)) \ : ((void) (Msgid1), (const char *) (Msgid2))) # undef dngettext # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((void) (Domainname), ngettext (Msgid1, Msgid2, N)) # undef dcngettext # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((void) (Category), dngettext (Domainname, Msgid1, Msgid2, N)) # undef textdomain # define textdomain(Domainname) ((const char *) (Domainname)) # undef bindtextdomain # define bindtextdomain(Domainname, Dirname) \ ((void) (Domainname), (const char *) (Dirname)) # undef bind_textdomain_codeset # define bind_textdomain_codeset(Domainname, Codeset) \ ((void) (Domainname), (const char *) (Codeset)) #endif /* Prefer gnulib's setlocale override over libintl's setlocale override. */ #ifdef GNULIB_defined_setlocale # undef setlocale # define setlocale rpl_setlocale #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String /* The separator between msgctxt and msgid in a .mo file. */ #define GETTEXT_CONTEXT_GLUE "\004" /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be short and rarely need to change. The letter 'p' stands for 'particular' or 'special'. */ #ifdef DEFAULT_TEXT_DOMAIN # define pgettext(Msgctxt, Msgid) \ pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #else # define pgettext(Msgctxt, Msgid) \ pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #endif #define dpgettext(Domainname, Msgctxt, Msgid) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES) #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \ pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category) #ifdef DEFAULT_TEXT_DOMAIN # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #else # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #endif #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES) #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \ npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * pgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, int category) { const char *translation = dcgettext (domain, msg_ctxt_id, category); if (translation == msg_ctxt_id) return msgid; else return translation; } #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * npgettext_aux (const char *domain, const char *msg_ctxt_id, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { const char *translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); if (translation == msg_ctxt_id || translation == msgid_plural) return (n == 1 ? msgid : msgid_plural); else return translation; } /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID can be arbitrary expressions. But for string literals these macros are less efficient than those above. */ #include /* GNULIB_NO_VLA can be defined to disable use of VLAs even if supported. This relates to the -Wvla and -Wvla-larger-than warnings, enabled in the default GCC many warnings set. This allows programs to disable use of VLAs, which may be unintended, or may be awkward to support portably, or may have security implications due to non-deterministic stack usage. */ #if (!defined GNULIB_NO_VLA \ && defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__ \ && !defined __STDC_NO_VLA__) # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1 #else # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0 #endif #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include #endif #define pgettext_expr(Msgctxt, Msgid) \ dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES) #define dpgettext_expr(Domainname, Msgctxt, Msgid) \ dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { int found_translation; memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcgettext (domain, msg_ctxt_id, category); found_translation = (translation != msg_ctxt_id); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (found_translation) return translation; } return msgid; } #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \ dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES) #if defined __GNUC__ || defined __clang__ __inline #else #ifdef __cplusplus inline #endif #endif static const char * dcnpgettext_expr (const char *domain, const char *msgctxt, const char *msgid, const char *msgid_plural, unsigned long int n, int category) { size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgid_len = strlen (msgid) + 1; const char *translation; #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS char msg_ctxt_id[msgctxt_len + msgid_len]; #else char buf[1024]; char *msg_ctxt_id = (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); if (msg_ctxt_id != NULL) #endif { int found_translation; memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); msg_ctxt_id[msgctxt_len - 1] = '\004'; memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS if (msg_ctxt_id != buf) free (msg_ctxt_id); #endif if (found_translation) return translation; } return (n == 1 ? msgid : msgid_plural); } #endif /* _LIBGETTEXT_H */ shishi-1.0.3/src/gl/stat-w32.h0000644000000000000000000000310714273615075012632 00000000000000/* Core of implementation of fstat and stat for native Windows. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _STAT_W32_H #define _STAT_W32_H 1 /* Converts a FILETIME to GMT time since 1970-01-01 00:00:00. */ #if _GL_WINDOWS_STAT_TIMESPEC extern struct timespec _gl_convert_FILETIME_to_timespec (const FILETIME *ft); #else extern time_t _gl_convert_FILETIME_to_POSIX (const FILETIME *ft); #endif /* Fill *BUF with information about the file designated by H. PATH is the file name, if known, otherwise NULL. Return 0 if successful, or -1 with errno set upon failure. */ extern int _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf); /* Bitmasks for st_mode. */ #define S_IREAD_UGO (_S_IREAD | (_S_IREAD >> 3) | (_S_IREAD >> 6)) #define S_IWRITE_UGO (_S_IWRITE | (_S_IWRITE >> 3) | (_S_IWRITE >> 6)) #define S_IEXEC_UGO (_S_IEXEC | (_S_IEXEC >> 3) | (_S_IEXEC >> 6)) #endif /* _STAT_W32_H */ shishi-1.0.3/src/gl/Makefile.in0000644000000000000000000054451514273615656013164 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: # gnulib-tool --import --local-dir=src/gl \ # --lib=libgnu \ # --source-base=src/gl \ # --m4-base=src/gl/m4 \ # --doc-base=doc \ # --tests-base=src/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=gl \ # autobuild \ # error \ # getopt-gnu \ # git-version-gen \ # gitlog-to-changelog \ # lib-msvc-compat \ # lib-symbol-versions \ # locale \ # manywarnings \ # pmccabe2html \ # progname \ # readme-release \ # update-copyright \ # valgrind-tests \ # version-etc \ # warnings VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @GL_COND_OBJ_CLOSE_TRUE@am__append_1 = close.c @GL_COND_OBJ_DUP2_TRUE@am__append_2 = dup2.c @GL_COND_OBJ_ERROR_TRUE@am__append_3 = error.c @GL_COND_OBJ_FCNTL_TRUE@am__append_4 = fcntl.c @GL_COND_OBJ_FSTAT_TRUE@am__append_5 = fstat.c @GL_COND_OBJ_GETDTABLESIZE_TRUE@am__append_6 = getdtablesize.c @GL_COND_OBJ_GETOPT_TRUE@am__append_7 = getopt.c getopt1.c @GL_COND_OBJ_MSVC_INVAL_TRUE@am__append_8 = msvc-inval.c @GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__append_9 = msvc-nothrow.c @GL_COND_OBJ_OPEN_TRUE@am__append_10 = open.c @GL_COND_OBJ_STAT_TRUE@am__append_11 = stat.c @GL_COND_OBJ_STDIO_READ_TRUE@am__append_12 = stdio-read.c @GL_COND_OBJ_STDIO_WRITE_TRUE@am__append_13 = stdio-write.c @GL_COND_OBJ_STRERROR_TRUE@am__append_14 = strerror.c @GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__append_15 = strerror-override.c subdir = src/gl ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) LTLIBRARIES = $(noinst_LTLIBRARIES) am__DEPENDENCIES_1 = am__libgnu_la_SOURCES_DIST = basename-lgpl.c cloexec.c close.c dup2.c \ error.c fcntl.c fd-hook.c fstat.c getdtablesize.c getopt.c \ getopt1.c getprogname.h getprogname.c gettext.h idx.h \ malloca.c msvc-inval.c msvc-nothrow.c open.c progname.h \ progname.c stat.c stat-time.c stdio-read.c stdio-write.c \ strerror.c strerror-override.c unistd.c version-etc.h \ version-etc.c @GL_COND_OBJ_CLOSE_TRUE@am__objects_1 = libgnu_la-close.lo @GL_COND_OBJ_DUP2_TRUE@am__objects_2 = libgnu_la-dup2.lo @GL_COND_OBJ_ERROR_TRUE@am__objects_3 = libgnu_la-error.lo @GL_COND_OBJ_FCNTL_TRUE@am__objects_4 = libgnu_la-fcntl.lo @GL_COND_OBJ_FSTAT_TRUE@am__objects_5 = libgnu_la-fstat.lo @GL_COND_OBJ_GETDTABLESIZE_TRUE@am__objects_6 = \ @GL_COND_OBJ_GETDTABLESIZE_TRUE@ libgnu_la-getdtablesize.lo @GL_COND_OBJ_GETOPT_TRUE@am__objects_7 = libgnu_la-getopt.lo \ @GL_COND_OBJ_GETOPT_TRUE@ libgnu_la-getopt1.lo @GL_COND_OBJ_MSVC_INVAL_TRUE@am__objects_8 = libgnu_la-msvc-inval.lo @GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__objects_9 = \ @GL_COND_OBJ_MSVC_NOTHROW_TRUE@ libgnu_la-msvc-nothrow.lo @GL_COND_OBJ_OPEN_TRUE@am__objects_10 = libgnu_la-open.lo @GL_COND_OBJ_STAT_TRUE@am__objects_11 = libgnu_la-stat.lo @GL_COND_OBJ_STDIO_READ_TRUE@am__objects_12 = libgnu_la-stdio-read.lo @GL_COND_OBJ_STDIO_WRITE_TRUE@am__objects_13 = \ @GL_COND_OBJ_STDIO_WRITE_TRUE@ libgnu_la-stdio-write.lo @GL_COND_OBJ_STRERROR_TRUE@am__objects_14 = libgnu_la-strerror.lo @GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__objects_15 = libgnu_la-strerror-override.lo am_libgnu_la_OBJECTS = libgnu_la-basename-lgpl.lo libgnu_la-cloexec.lo \ $(am__objects_1) $(am__objects_2) $(am__objects_3) \ $(am__objects_4) libgnu_la-fd-hook.lo $(am__objects_5) \ $(am__objects_6) $(am__objects_7) libgnu_la-getprogname.lo \ libgnu_la-malloca.lo $(am__objects_8) $(am__objects_9) \ $(am__objects_10) libgnu_la-progname.lo $(am__objects_11) \ libgnu_la-stat-time.lo $(am__objects_12) $(am__objects_13) \ $(am__objects_14) $(am__objects_15) libgnu_la-unistd.lo \ libgnu_la-version-etc.lo libgnu_la_OBJECTS = $(am_libgnu_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libgnu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libgnu_la_CFLAGS) \ $(CFLAGS) $(libgnu_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libgnu_la-basename-lgpl.Plo \ ./$(DEPDIR)/libgnu_la-cloexec.Plo \ ./$(DEPDIR)/libgnu_la-close.Plo ./$(DEPDIR)/libgnu_la-dup2.Plo \ ./$(DEPDIR)/libgnu_la-error.Plo \ ./$(DEPDIR)/libgnu_la-fcntl.Plo \ ./$(DEPDIR)/libgnu_la-fd-hook.Plo \ ./$(DEPDIR)/libgnu_la-fstat.Plo \ ./$(DEPDIR)/libgnu_la-getdtablesize.Plo \ ./$(DEPDIR)/libgnu_la-getopt.Plo \ ./$(DEPDIR)/libgnu_la-getopt1.Plo \ ./$(DEPDIR)/libgnu_la-getprogname.Plo \ ./$(DEPDIR)/libgnu_la-malloca.Plo \ ./$(DEPDIR)/libgnu_la-msvc-inval.Plo \ ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo \ ./$(DEPDIR)/libgnu_la-open.Plo \ ./$(DEPDIR)/libgnu_la-progname.Plo \ ./$(DEPDIR)/libgnu_la-stat-time.Plo \ ./$(DEPDIR)/libgnu_la-stat-w32.Plo \ ./$(DEPDIR)/libgnu_la-stat.Plo \ ./$(DEPDIR)/libgnu_la-stdio-read.Plo \ ./$(DEPDIR)/libgnu_la-stdio-write.Plo \ ./$(DEPDIR)/libgnu_la-strerror-override.Plo \ ./$(DEPDIR)/libgnu_la-strerror.Plo \ ./$(DEPDIR)/libgnu_la-unistd.Plo \ ./$(DEPDIR)/libgnu_la-version-etc.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libgnu_la_SOURCES) $(EXTRA_libgnu_la_SOURCES) DIST_SOURCES = $(am__libgnu_la_SOURCES_DIST) \ $(EXTRA_libgnu_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir distdir-am am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = 1.14 gnits SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = libgnu.la # No GNU Make output. EXTRA_DIST = m4/gnulib-cache.m4 alloca.in.h \ $(top_srcdir)/build-aux/announce-gen basename-lgpl.h cloexec.h \ $(top_srcdir)/build-aux/do-release-commit-and-tag errno.in.h \ error.h fcntl.in.h fd-hook.h filename.h stat-w32.c stat-w32.h \ $(top_srcdir)/build-aux/gendocs.sh getopt-cdefs.in.h \ getopt-core.h getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h \ getopt.in.h getopt_int.h \ $(top_srcdir)/build-aux/git-version-gen \ $(top_srcdir)/build-aux/gitlog-to-changelog \ $(top_srcdir)/build-aux/gnu-web-doc-update \ $(top_srcdir)/GNUmakefile $(top_srcdir)/build-aux/gnupload \ intprops.h limits.in.h locale.in.h $(top_srcdir)/maint.mk \ malloca.h msvc-inval.h msvc-nothrow.h pathmax.h \ $(top_srcdir)/build-aux/pmccabe2html \ $(top_srcdir)/build-aux/pmccabe.css _Noreturn.h arg-nonnull.h \ c++defs.h warn-on-use.h stat-w32.c stat-w32.h stat-time.h \ stdarg.in.h stdbool.in.h stddef.in.h stdint.in.h stdio.in.h \ stdlib.in.h strerror-override.h string.in.h sys_stat.in.h \ sys_types.in.h time.in.h unistd.in.h \ $(top_srcdir)/build-aux/update-copyright \ $(top_srcdir)/build-aux/useless-if-before-free \ $(top_srcdir)/build-aux/vc-list-files verify.h \ xalloc-oversized.h BUILT_SOURCES = $(ALLOCA_H) $(ERRNO_H) fcntl.h $(GETOPT_H) \ $(GETOPT_CDEFS_H) $(LIMITS_H) locale.h $(STDARG_H) \ $(STDBOOL_H) $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h \ sys/stat.h sys/types.h time.h unistd.h SUFFIXES = MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t errno.h \ errno.h-t fcntl.h fcntl.h-t getopt.h getopt.h-t getopt-cdefs.h \ getopt-cdefs.h-t limits.h limits.h-t locale.h locale.h-t \ stdarg.h stdarg.h-t stdbool.h stdbool.h-t stddef.h stddef.h-t \ stdint.h stdint.h-t stdio.h stdio.h-t stdlib.h stdlib.h-t \ string.h string.h-t sys/stat.h sys/stat.h-t sys/types.h \ sys/types.h-t time.h time.h-t unistd.h unistd.h-t MOSTLYCLEANDIRS = sys CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = AM_CPPFLAGS = AM_CFLAGS = libgnu_la_SOURCES = basename-lgpl.c cloexec.c $(am__append_1) \ $(am__append_2) $(am__append_3) $(am__append_4) fd-hook.c \ $(am__append_5) $(am__append_6) $(am__append_7) getprogname.h \ getprogname.c gettext.h idx.h malloca.c $(am__append_8) \ $(am__append_9) $(am__append_10) progname.h progname.c \ $(am__append_11) stat-time.c $(am__append_12) $(am__append_13) \ $(am__append_14) $(am__append_15) unistd.c version-etc.h \ version-etc.c libgnu_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) libgnu_la_LIBADD = $(gl_LTLIBOBJS) libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = stat-w32.c stat-w32.c libgnu_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined $(LTLIBINTL) # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER) # In 'sed', replace the pattern space with a "DO NOT EDIT" comment. SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */, # '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT". SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G # '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading # "DO_NOT_EDIT". Although this could be done more simply via: # SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t # the -n and 'w' avoid a fork+exec, at least when GNU Make is used. SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t' # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that gl_V_at = $(AM_V_GEN) # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. _NORETURN_H = $(srcdir)/_Noreturn.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. ARG_NONNULL_H = $(srcdir)/arg-nonnull.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. CXXDEFS_H = $(srcdir)/c++defs.h # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. WARN_ON_USE_H = $(srcdir)/warn-on-use.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/gl/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnits src/gl/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libgnu.la: $(libgnu_la_OBJECTS) $(libgnu_la_DEPENDENCIES) $(EXTRA_libgnu_la_DEPENDENCIES) $(AM_V_CCLD)$(libgnu_la_LINK) $(libgnu_la_OBJECTS) $(libgnu_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-basename-lgpl.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-cloexec.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-close.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-dup2.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-error.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fcntl.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fd-hook.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-fstat.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getdtablesize.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getopt.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getopt1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-getprogname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-malloca.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-msvc-inval.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-open.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-progname.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat-time.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat-w32.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stat.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stdio-read.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-stdio-write.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strerror-override.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-strerror.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-unistd.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_la-version-etc.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libgnu_la-basename-lgpl.lo: basename-lgpl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-basename-lgpl.lo -MD -MP -MF $(DEPDIR)/libgnu_la-basename-lgpl.Tpo -c -o libgnu_la-basename-lgpl.lo `test -f 'basename-lgpl.c' || echo '$(srcdir)/'`basename-lgpl.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-basename-lgpl.Tpo $(DEPDIR)/libgnu_la-basename-lgpl.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='basename-lgpl.c' object='libgnu_la-basename-lgpl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-basename-lgpl.lo `test -f 'basename-lgpl.c' || echo '$(srcdir)/'`basename-lgpl.c libgnu_la-cloexec.lo: cloexec.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-cloexec.lo -MD -MP -MF $(DEPDIR)/libgnu_la-cloexec.Tpo -c -o libgnu_la-cloexec.lo `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-cloexec.Tpo $(DEPDIR)/libgnu_la-cloexec.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cloexec.c' object='libgnu_la-cloexec.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-cloexec.lo `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c libgnu_la-close.lo: close.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-close.lo -MD -MP -MF $(DEPDIR)/libgnu_la-close.Tpo -c -o libgnu_la-close.lo `test -f 'close.c' || echo '$(srcdir)/'`close.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-close.Tpo $(DEPDIR)/libgnu_la-close.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='close.c' object='libgnu_la-close.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-close.lo `test -f 'close.c' || echo '$(srcdir)/'`close.c libgnu_la-dup2.lo: dup2.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-dup2.lo -MD -MP -MF $(DEPDIR)/libgnu_la-dup2.Tpo -c -o libgnu_la-dup2.lo `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-dup2.Tpo $(DEPDIR)/libgnu_la-dup2.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup2.c' object='libgnu_la-dup2.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-dup2.lo `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c libgnu_la-error.lo: error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-error.lo -MD -MP -MF $(DEPDIR)/libgnu_la-error.Tpo -c -o libgnu_la-error.lo `test -f 'error.c' || echo '$(srcdir)/'`error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-error.Tpo $(DEPDIR)/libgnu_la-error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='error.c' object='libgnu_la-error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-error.lo `test -f 'error.c' || echo '$(srcdir)/'`error.c libgnu_la-fcntl.lo: fcntl.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fcntl.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fcntl.Tpo -c -o libgnu_la-fcntl.lo `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fcntl.Tpo $(DEPDIR)/libgnu_la-fcntl.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fcntl.c' object='libgnu_la-fcntl.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fcntl.lo `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c libgnu_la-fd-hook.lo: fd-hook.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fd-hook.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fd-hook.Tpo -c -o libgnu_la-fd-hook.lo `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fd-hook.Tpo $(DEPDIR)/libgnu_la-fd-hook.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-hook.c' object='libgnu_la-fd-hook.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fd-hook.lo `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c libgnu_la-fstat.lo: fstat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-fstat.lo -MD -MP -MF $(DEPDIR)/libgnu_la-fstat.Tpo -c -o libgnu_la-fstat.lo `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-fstat.Tpo $(DEPDIR)/libgnu_la-fstat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstat.c' object='libgnu_la-fstat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-fstat.lo `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c libgnu_la-getdtablesize.lo: getdtablesize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getdtablesize.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getdtablesize.Tpo -c -o libgnu_la-getdtablesize.lo `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getdtablesize.Tpo $(DEPDIR)/libgnu_la-getdtablesize.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdtablesize.c' object='libgnu_la-getdtablesize.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getdtablesize.lo `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c libgnu_la-getopt.lo: getopt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getopt.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getopt.Tpo -c -o libgnu_la-getopt.lo `test -f 'getopt.c' || echo '$(srcdir)/'`getopt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getopt.Tpo $(DEPDIR)/libgnu_la-getopt.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt.c' object='libgnu_la-getopt.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getopt.lo `test -f 'getopt.c' || echo '$(srcdir)/'`getopt.c libgnu_la-getopt1.lo: getopt1.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getopt1.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getopt1.Tpo -c -o libgnu_la-getopt1.lo `test -f 'getopt1.c' || echo '$(srcdir)/'`getopt1.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getopt1.Tpo $(DEPDIR)/libgnu_la-getopt1.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt1.c' object='libgnu_la-getopt1.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getopt1.lo `test -f 'getopt1.c' || echo '$(srcdir)/'`getopt1.c libgnu_la-getprogname.lo: getprogname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-getprogname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-getprogname.Tpo -c -o libgnu_la-getprogname.lo `test -f 'getprogname.c' || echo '$(srcdir)/'`getprogname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-getprogname.Tpo $(DEPDIR)/libgnu_la-getprogname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getprogname.c' object='libgnu_la-getprogname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-getprogname.lo `test -f 'getprogname.c' || echo '$(srcdir)/'`getprogname.c libgnu_la-malloca.lo: malloca.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-malloca.lo -MD -MP -MF $(DEPDIR)/libgnu_la-malloca.Tpo -c -o libgnu_la-malloca.lo `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-malloca.Tpo $(DEPDIR)/libgnu_la-malloca.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloca.c' object='libgnu_la-malloca.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-malloca.lo `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c libgnu_la-msvc-inval.lo: msvc-inval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-msvc-inval.lo -MD -MP -MF $(DEPDIR)/libgnu_la-msvc-inval.Tpo -c -o libgnu_la-msvc-inval.lo `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-msvc-inval.Tpo $(DEPDIR)/libgnu_la-msvc-inval.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-inval.c' object='libgnu_la-msvc-inval.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-msvc-inval.lo `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c libgnu_la-msvc-nothrow.lo: msvc-nothrow.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-msvc-nothrow.lo -MD -MP -MF $(DEPDIR)/libgnu_la-msvc-nothrow.Tpo -c -o libgnu_la-msvc-nothrow.lo `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-msvc-nothrow.Tpo $(DEPDIR)/libgnu_la-msvc-nothrow.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-nothrow.c' object='libgnu_la-msvc-nothrow.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-msvc-nothrow.lo `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c libgnu_la-open.lo: open.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-open.lo -MD -MP -MF $(DEPDIR)/libgnu_la-open.Tpo -c -o libgnu_la-open.lo `test -f 'open.c' || echo '$(srcdir)/'`open.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-open.Tpo $(DEPDIR)/libgnu_la-open.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='open.c' object='libgnu_la-open.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-open.lo `test -f 'open.c' || echo '$(srcdir)/'`open.c libgnu_la-progname.lo: progname.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-progname.lo -MD -MP -MF $(DEPDIR)/libgnu_la-progname.Tpo -c -o libgnu_la-progname.lo `test -f 'progname.c' || echo '$(srcdir)/'`progname.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-progname.Tpo $(DEPDIR)/libgnu_la-progname.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='progname.c' object='libgnu_la-progname.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-progname.lo `test -f 'progname.c' || echo '$(srcdir)/'`progname.c libgnu_la-stat.lo: stat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat.Tpo -c -o libgnu_la-stat.lo `test -f 'stat.c' || echo '$(srcdir)/'`stat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat.Tpo $(DEPDIR)/libgnu_la-stat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat.c' object='libgnu_la-stat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat.lo `test -f 'stat.c' || echo '$(srcdir)/'`stat.c libgnu_la-stat-time.lo: stat-time.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat-time.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat-time.Tpo -c -o libgnu_la-stat-time.lo `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat-time.Tpo $(DEPDIR)/libgnu_la-stat-time.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-time.c' object='libgnu_la-stat-time.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat-time.lo `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c libgnu_la-stdio-read.lo: stdio-read.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stdio-read.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stdio-read.Tpo -c -o libgnu_la-stdio-read.lo `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stdio-read.Tpo $(DEPDIR)/libgnu_la-stdio-read.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-read.c' object='libgnu_la-stdio-read.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stdio-read.lo `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c libgnu_la-stdio-write.lo: stdio-write.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stdio-write.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stdio-write.Tpo -c -o libgnu_la-stdio-write.lo `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stdio-write.Tpo $(DEPDIR)/libgnu_la-stdio-write.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-write.c' object='libgnu_la-stdio-write.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stdio-write.lo `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c libgnu_la-strerror.lo: strerror.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strerror.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strerror.Tpo -c -o libgnu_la-strerror.lo `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strerror.Tpo $(DEPDIR)/libgnu_la-strerror.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror.c' object='libgnu_la-strerror.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strerror.lo `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c libgnu_la-strerror-override.lo: strerror-override.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-strerror-override.lo -MD -MP -MF $(DEPDIR)/libgnu_la-strerror-override.Tpo -c -o libgnu_la-strerror-override.lo `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-strerror-override.Tpo $(DEPDIR)/libgnu_la-strerror-override.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror-override.c' object='libgnu_la-strerror-override.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-strerror-override.lo `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c libgnu_la-unistd.lo: unistd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-unistd.lo -MD -MP -MF $(DEPDIR)/libgnu_la-unistd.Tpo -c -o libgnu_la-unistd.lo `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-unistd.Tpo $(DEPDIR)/libgnu_la-unistd.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unistd.c' object='libgnu_la-unistd.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-unistd.lo `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c libgnu_la-version-etc.lo: version-etc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-version-etc.lo -MD -MP -MF $(DEPDIR)/libgnu_la-version-etc.Tpo -c -o libgnu_la-version-etc.lo `test -f 'version-etc.c' || echo '$(srcdir)/'`version-etc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-version-etc.Tpo $(DEPDIR)/libgnu_la-version-etc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='version-etc.c' object='libgnu_la-version-etc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-version-etc.lo `test -f 'version-etc.c' || echo '$(srcdir)/'`version-etc.c libgnu_la-stat-w32.lo: stat-w32.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -MT libgnu_la-stat-w32.lo -MD -MP -MF $(DEPDIR)/libgnu_la-stat-w32.Tpo -c -o libgnu_la-stat-w32.lo `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_la-stat-w32.Tpo $(DEPDIR)/libgnu_la-stat-w32.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-w32.c' object='libgnu_la-stat-w32.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_la_CFLAGS) $(CFLAGS) -c -o libgnu_la-stat-w32.lo `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) installdirs: installdirs-recursive installdirs-am: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f ./$(DEPDIR)/libgnu_la-basename-lgpl.Plo -rm -f ./$(DEPDIR)/libgnu_la-cloexec.Plo -rm -f ./$(DEPDIR)/libgnu_la-close.Plo -rm -f ./$(DEPDIR)/libgnu_la-dup2.Plo -rm -f ./$(DEPDIR)/libgnu_la-error.Plo -rm -f ./$(DEPDIR)/libgnu_la-fcntl.Plo -rm -f ./$(DEPDIR)/libgnu_la-fd-hook.Plo -rm -f ./$(DEPDIR)/libgnu_la-fstat.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdtablesize.Plo -rm -f ./$(DEPDIR)/libgnu_la-getopt.Plo -rm -f ./$(DEPDIR)/libgnu_la-getopt1.Plo -rm -f ./$(DEPDIR)/libgnu_la-getprogname.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-inval.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo -rm -f ./$(DEPDIR)/libgnu_la-open.Plo -rm -f ./$(DEPDIR)/libgnu_la-progname.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-time.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-w32.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-read.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-write.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror-override.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-unistd.Plo -rm -f ./$(DEPDIR)/libgnu_la-version-etc.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f ./$(DEPDIR)/libgnu_la-basename-lgpl.Plo -rm -f ./$(DEPDIR)/libgnu_la-cloexec.Plo -rm -f ./$(DEPDIR)/libgnu_la-close.Plo -rm -f ./$(DEPDIR)/libgnu_la-dup2.Plo -rm -f ./$(DEPDIR)/libgnu_la-error.Plo -rm -f ./$(DEPDIR)/libgnu_la-fcntl.Plo -rm -f ./$(DEPDIR)/libgnu_la-fd-hook.Plo -rm -f ./$(DEPDIR)/libgnu_la-fstat.Plo -rm -f ./$(DEPDIR)/libgnu_la-getdtablesize.Plo -rm -f ./$(DEPDIR)/libgnu_la-getopt.Plo -rm -f ./$(DEPDIR)/libgnu_la-getopt1.Plo -rm -f ./$(DEPDIR)/libgnu_la-getprogname.Plo -rm -f ./$(DEPDIR)/libgnu_la-malloca.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-inval.Plo -rm -f ./$(DEPDIR)/libgnu_la-msvc-nothrow.Plo -rm -f ./$(DEPDIR)/libgnu_la-open.Plo -rm -f ./$(DEPDIR)/libgnu_la-progname.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-time.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat-w32.Plo -rm -f ./$(DEPDIR)/libgnu_la-stat.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-read.Plo -rm -f ./$(DEPDIR)/libgnu_la-stdio-write.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror-override.Plo -rm -f ./$(DEPDIR)/libgnu_la-strerror.Plo -rm -f ./$(DEPDIR)/libgnu_la-unistd.Plo -rm -f ./$(DEPDIR)/libgnu_la-version-etc.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic \ maintainer-clean-local mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool mostlyclean-local pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) all check install install-am \ install-exec install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--depfiles check check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES clean-noinstLTLIBRARIES cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-local mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_ALLOCA_H_TRUE@alloca.h: alloca.in.h $(top_builddir)/config.status @GL_GENERATE_ALLOCA_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_ALLOCA_H_TRUE@ -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \ @GL_GENERATE_ALLOCA_H_TRUE@ $(srcdir)/alloca.in.h > $@-t @GL_GENERATE_ALLOCA_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_ALLOCA_H_FALSE@alloca.h: $(top_builddir)/config.status @GL_GENERATE_ALLOCA_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that is POSIX compliant. @GL_GENERATE_ERRNO_H_TRUE@errno.h: errno.in.h $(top_builddir)/config.status @GL_GENERATE_ERRNO_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ @GL_GENERATE_ERRNO_H_TRUE@ $(srcdir)/errno.in.h > $@-t @GL_GENERATE_ERRNO_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_ERRNO_H_FALSE@errno.h: $(top_builddir)/config.status @GL_GENERATE_ERRNO_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ -e 's/@''GNULIB_CREAT''@/$(GL_GNULIB_CREAT)/g' \ -e 's/@''GNULIB_FCNTL''@/$(GL_GNULIB_FCNTL)/g' \ -e 's/@''GNULIB_NONBLOCKING''@/$(GL_GNULIB_NONBLOCKING)/g' \ -e 's/@''GNULIB_OPEN''@/$(GL_GNULIB_OPEN)/g' \ -e 's/@''GNULIB_OPENAT''@/$(GL_GNULIB_OPENAT)/g' \ -e 's/@''GNULIB_MDA_CREAT''@/$(GL_GNULIB_MDA_CREAT)/g' \ -e 's/@''GNULIB_MDA_OPEN''@/$(GL_GNULIB_MDA_OPEN)/g' \ -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/fcntl.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_GETOPT_H_TRUE@getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H) @GL_GENERATE_GETOPT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ @GL_GENERATE_GETOPT_H_TRUE@ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ @GL_GENERATE_GETOPT_H_TRUE@ $(srcdir)/getopt.in.h > $@-t @GL_GENERATE_GETOPT_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_GETOPT_H_FALSE@getopt.h: $(top_builddir)/config.status @GL_GENERATE_GETOPT_H_FALSE@ rm -f $@ @GL_GENERATE_GETOPT_CDEFS_H_TRUE@getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status @GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(AM_V_GEN)$(SED_HEADER_STDOUT) \ @GL_GENERATE_GETOPT_CDEFS_H_TRUE@ -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \ @GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(srcdir)/getopt-cdefs.in.h > $@-t @GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_GETOPT_CDEFS_H_FALSE@getopt-cdefs.h: $(top_builddir)/config.status @GL_GENERATE_GETOPT_CDEFS_H_FALSE@ rm -f $@ distclean-local: clean-GNUmakefile clean-GNUmakefile: test '$(srcdir)' = . || rm -f $(top_builddir)/GNUmakefile # We need the following in order to create when the system # doesn't have one that is compatible with GNU. @GL_GENERATE_LIMITS_H_TRUE@limits.h: limits.in.h $(top_builddir)/config.status @GL_GENERATE_LIMITS_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \ @GL_GENERATE_LIMITS_H_TRUE@ $(srcdir)/limits.in.h > $@-t @GL_GENERATE_LIMITS_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_LIMITS_H_FALSE@limits.h: $(top_builddir)/config.status @GL_GENERATE_LIMITS_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that provides all definitions. locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \ -e 's/@''GNULIB_LOCALECONV''@/$(GL_GNULIB_LOCALECONV)/g' \ -e 's/@''GNULIB_SETLOCALE''@/$(GL_GNULIB_SETLOCALE)/g' \ -e 's/@''GNULIB_SETLOCALE_NULL''@/$(GL_GNULIB_SETLOCALE_NULL)/g' \ -e 's/@''GNULIB_DUPLOCALE''@/$(GL_GNULIB_DUPLOCALE)/g' \ -e 's/@''GNULIB_LOCALENAME''@/$(GL_GNULIB_LOCALENAME)/g' \ -e 's|@''HAVE_NEWLOCALE''@|$(HAVE_NEWLOCALE)|g' \ -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \ -e 's|@''HAVE_FREELOCALE''@|$(HAVE_FREELOCALE)|g' \ -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \ -e 's|@''REPLACE_LOCALECONV''@|$(REPLACE_LOCALECONV)|g' \ -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \ -e 's|@''REPLACE_NEWLOCALE''@|$(REPLACE_NEWLOCALE)|g' \ -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \ -e 's|@''REPLACE_FREELOCALE''@|$(REPLACE_FREELOCALE)|g' \ -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \ -e 's|@''LOCALENAME_ENHANCE_LOCALE_FUNCS''@|$(LOCALENAME_ENHANCE_LOCALE_FUNCS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/locale.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDARG_H_TRUE@stdarg.h: stdarg.in.h $(top_builddir)/config.status @GL_GENERATE_STDARG_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDARG_H_TRUE@ -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ @GL_GENERATE_STDARG_H_TRUE@ $(srcdir)/stdarg.in.h > $@-t @GL_GENERATE_STDARG_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDARG_H_FALSE@stdarg.h: $(top_builddir)/config.status @GL_GENERATE_STDARG_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works. @GL_GENERATE_STDBOOL_H_TRUE@stdbool.h: stdbool.in.h $(top_builddir)/config.status @GL_GENERATE_STDBOOL_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDBOOL_H_TRUE@ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ @GL_GENERATE_STDBOOL_H_TRUE@ $(srcdir)/stdbool.in.h > $@-t @GL_GENERATE_STDBOOL_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDBOOL_H_FALSE@stdbool.h: $(top_builddir)/config.status @GL_GENERATE_STDBOOL_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDDEF_H_TRUE@stddef.h: stddef.in.h $(top_builddir)/config.status @GL_GENERATE_STDDEF_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ @GL_GENERATE_STDDEF_H_TRUE@ $(srcdir)/stddef.in.h > $@-t @GL_GENERATE_STDDEF_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDDEF_H_FALSE@stddef.h: $(top_builddir)/config.status @GL_GENERATE_STDDEF_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. @GL_GENERATE_STDINT_H_TRUE@stdint.h: stdint.in.h $(top_builddir)/config.status @GL_GENERATE_STDINT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_C99_STDINT_H''@/$(HAVE_C99_STDINT_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ @GL_GENERATE_STDINT_H_TRUE@ $(srcdir)/stdint.in.h > $@-t @GL_GENERATE_STDINT_H_TRUE@ $(AM_V_at)mv $@-t $@ @GL_GENERATE_STDINT_H_FALSE@stdint.h: $(top_builddir)/config.status @GL_GENERATE_STDINT_H_FALSE@ rm -f $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GL_GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GL_GNULIB_FCLOSE)/g' \ -e 's/@''GNULIB_FDOPEN''@/$(GL_GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GL_GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GL_GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GL_GNULIB_FGETS)/g' \ -e 's/@''GNULIB_FOPEN''@/$(GL_GNULIB_FOPEN)/g' \ -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_GNULIB_FOPEN_GNU)/g' \ -e 's/@''GNULIB_FPRINTF''@/$(GL_GNULIB_FPRINTF)/g' \ -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_GNULIB_FPRINTF_POSIX)/g' \ -e 's/@''GNULIB_FPURGE''@/$(GL_GNULIB_FPURGE)/g' \ -e 's/@''GNULIB_FPUTC''@/$(GL_GNULIB_FPUTC)/g' \ -e 's/@''GNULIB_FPUTS''@/$(GL_GNULIB_FPUTS)/g' \ -e 's/@''GNULIB_FREAD''@/$(GL_GNULIB_FREAD)/g' \ -e 's/@''GNULIB_FREOPEN''@/$(GL_GNULIB_FREOPEN)/g' \ -e 's/@''GNULIB_FSCANF''@/$(GL_GNULIB_FSCANF)/g' \ -e 's/@''GNULIB_FSEEK''@/$(GL_GNULIB_FSEEK)/g' \ -e 's/@''GNULIB_FSEEKO''@/$(GL_GNULIB_FSEEKO)/g' \ -e 's/@''GNULIB_FTELL''@/$(GL_GNULIB_FTELL)/g' \ -e 's/@''GNULIB_FTELLO''@/$(GL_GNULIB_FTELLO)/g' \ -e 's/@''GNULIB_FWRITE''@/$(GL_GNULIB_FWRITE)/g' \ -e 's/@''GNULIB_GETC''@/$(GL_GNULIB_GETC)/g' \ -e 's/@''GNULIB_GETCHAR''@/$(GL_GNULIB_GETCHAR)/g' \ -e 's/@''GNULIB_GETDELIM''@/$(GL_GNULIB_GETDELIM)/g' \ -e 's/@''GNULIB_GETLINE''@/$(GL_GNULIB_GETLINE)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PCLOSE''@/$(GL_GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GL_GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GL_GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GL_GNULIB_PRINTF)/g' \ -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_GNULIB_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PUTC''@/$(GL_GNULIB_PUTC)/g' \ -e 's/@''GNULIB_PUTCHAR''@/$(GL_GNULIB_PUTCHAR)/g' \ -e 's/@''GNULIB_PUTS''@/$(GL_GNULIB_PUTS)/g' \ -e 's/@''GNULIB_REMOVE''@/$(GL_GNULIB_REMOVE)/g' \ -e 's/@''GNULIB_RENAME''@/$(GL_GNULIB_RENAME)/g' \ -e 's/@''GNULIB_RENAMEAT''@/$(GL_GNULIB_RENAMEAT)/g' \ -e 's/@''GNULIB_SCANF''@/$(GL_GNULIB_SCANF)/g' \ -e 's/@''GNULIB_SNPRINTF''@/$(GL_GNULIB_SNPRINTF)/g' \ -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_GNULIB_SPRINTF_POSIX)/g' \ -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_GNULIB_STDIO_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_GNULIB_STDIO_H_SIGPIPE)/g' \ -e 's/@''GNULIB_TMPFILE''@/$(GL_GNULIB_TMPFILE)/g' \ -e 's/@''GNULIB_VASPRINTF''@/$(GL_GNULIB_VASPRINTF)/g' \ -e 's/@''GNULIB_VDPRINTF''@/$(GL_GNULIB_VDPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF''@/$(GL_GNULIB_VFPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_GNULIB_VFPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VFSCANF''@/$(GL_GNULIB_VFSCANF)/g' \ -e 's/@''GNULIB_VSCANF''@/$(GL_GNULIB_VSCANF)/g' \ -e 's/@''GNULIB_VPRINTF''@/$(GL_GNULIB_VPRINTF)/g' \ -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_GNULIB_VPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VSNPRINTF''@/$(GL_GNULIB_VSNPRINTF)/g' \ -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_GNULIB_VSPRINTF_POSIX)/g' \ -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_GNULIB_MDA_FCLOSEALL)/g' \ -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_GNULIB_MDA_FDOPEN)/g' \ -e 's/@''GNULIB_MDA_FILENO''@/$(GL_GNULIB_MDA_FILENO)/g' \ -e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \ -e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \ -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \ < $(srcdir)/stdio.in.h | \ sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \ -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \ -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's/@''GNULIB__EXIT''@/$(GL_GNULIB__EXIT)/g' \ -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_GNULIB_ALIGNED_ALLOC)/g' \ -e 's/@''GNULIB_ATOLL''@/$(GL_GNULIB_ATOLL)/g' \ -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_GNULIB_CALLOC_GNU)/g' \ -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_GNULIB_CALLOC_POSIX)/g' \ -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \ -e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \ -e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \ -e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \ -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \ -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \ -e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \ -e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GL_GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GL_GNULIB_MKSTEMPS)/g' \ -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_GNULIB_POSIX_MEMALIGN)/g' \ -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GL_GNULIB_PTSNAME)/g' \ -e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \ -e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \ -e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_GNULIB_REALLOCARRAY)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GL_GNULIB_REALPATH)/g' \ -e 's/@''GNULIB_RPMATCH''@/$(GL_GNULIB_RPMATCH)/g' \ -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_GNULIB_SECURE_GETENV)/g' \ -e 's/@''GNULIB_SETENV''@/$(GL_GNULIB_SETENV)/g' \ -e 's/@''GNULIB_STRTOD''@/$(GL_GNULIB_STRTOD)/g' \ -e 's/@''GNULIB_STRTOL''@/$(GL_GNULIB_STRTOL)/g' \ -e 's/@''GNULIB_STRTOLD''@/$(GL_GNULIB_STRTOLD)/g' \ -e 's/@''GNULIB_STRTOLL''@/$(GL_GNULIB_STRTOLL)/g' \ -e 's/@''GNULIB_STRTOUL''@/$(GL_GNULIB_STRTOUL)/g' \ -e 's/@''GNULIB_STRTOULL''@/$(GL_GNULIB_STRTOULL)/g' \ -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_GNULIB_SYSTEM_POSIX)/g' \ -e 's/@''GNULIB_UNLOCKPT''@/$(GL_GNULIB_UNLOCKPT)/g' \ -e 's/@''GNULIB_UNSETENV''@/$(GL_GNULIB_UNSETENV)/g' \ -e 's/@''GNULIB_WCTOMB''@/$(GL_GNULIB_WCTOMB)/g' \ -e 's/@''GNULIB_MDA_ECVT''@/$(GL_GNULIB_MDA_ECVT)/g' \ -e 's/@''GNULIB_MDA_FCVT''@/$(GL_GNULIB_MDA_FCVT)/g' \ -e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \ -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \ -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \ < $(srcdir)/stdlib.in.h | \ sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \ -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \ -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \ -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \ -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \ -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \ -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \ -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \ -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \ -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \ -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \ -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \ -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \ -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \ -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \ -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \ -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \ -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \ -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \ -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \ -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \ -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \ -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \ -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \ -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _Noreturn/r $(_NORETURN_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_GNULIB_EXPLICIT_BZERO)/g' \ -e 's/@''GNULIB_FFSL''@/$(GL_GNULIB_FFSL)/g' \ -e 's/@''GNULIB_FFSLL''@/$(GL_GNULIB_FFSLL)/g' \ -e 's/@''GNULIB_MBSLEN''@/$(GL_GNULIB_MBSLEN)/g' \ -e 's/@''GNULIB_MBSNLEN''@/$(GL_GNULIB_MBSNLEN)/g' \ -e 's/@''GNULIB_MBSCHR''@/$(GL_GNULIB_MBSCHR)/g' \ -e 's/@''GNULIB_MBSRCHR''@/$(GL_GNULIB_MBSRCHR)/g' \ -e 's/@''GNULIB_MBSSTR''@/$(GL_GNULIB_MBSSTR)/g' \ -e 's/@''GNULIB_MBSCASECMP''@/$(GL_GNULIB_MBSCASECMP)/g' \ -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_GNULIB_MBSNCASECMP)/g' \ -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_GNULIB_MBSPCASECMP)/g' \ -e 's/@''GNULIB_MBSCASESTR''@/$(GL_GNULIB_MBSCASESTR)/g' \ -e 's/@''GNULIB_MBSCSPN''@/$(GL_GNULIB_MBSCSPN)/g' \ -e 's/@''GNULIB_MBSPBRK''@/$(GL_GNULIB_MBSPBRK)/g' \ -e 's/@''GNULIB_MBSSPN''@/$(GL_GNULIB_MBSSPN)/g' \ -e 's/@''GNULIB_MBSSEP''@/$(GL_GNULIB_MBSSEP)/g' \ -e 's/@''GNULIB_MBSTOK_R''@/$(GL_GNULIB_MBSTOK_R)/g' \ -e 's/@''GNULIB_MEMCHR''@/$(GL_GNULIB_MEMCHR)/g' \ -e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \ -e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \ -e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \ -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \ -e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \ -e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \ -e 's/@''GNULIB_STRCHRNUL''@/$(GL_GNULIB_STRCHRNUL)/g' \ -e 's/@''GNULIB_STRDUP''@/$(GL_GNULIB_STRDUP)/g' \ -e 's/@''GNULIB_STRNCAT''@/$(GL_GNULIB_STRNCAT)/g' \ -e 's/@''GNULIB_STRNDUP''@/$(GL_GNULIB_STRNDUP)/g' \ -e 's/@''GNULIB_STRNLEN''@/$(GL_GNULIB_STRNLEN)/g' \ -e 's/@''GNULIB_STRPBRK''@/$(GL_GNULIB_STRPBRK)/g' \ -e 's/@''GNULIB_STRSEP''@/$(GL_GNULIB_STRSEP)/g' \ -e 's/@''GNULIB_STRSTR''@/$(GL_GNULIB_STRSTR)/g' \ -e 's/@''GNULIB_STRCASESTR''@/$(GL_GNULIB_STRCASESTR)/g' \ -e 's/@''GNULIB_STRTOK_R''@/$(GL_GNULIB_STRTOK_R)/g' \ -e 's/@''GNULIB_STRERROR''@/$(GL_GNULIB_STRERROR)/g' \ -e 's/@''GNULIB_STRERROR_R''@/$(GL_GNULIB_STRERROR_R)/g' \ -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_GNULIB_STRERRORNAME_NP)/g' \ -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_GNULIB_SIGABBREV_NP)/g' \ -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_GNULIB_SIGDESCR_NP)/g' \ -e 's/@''GNULIB_STRSIGNAL''@/$(GL_GNULIB_STRSIGNAL)/g' \ -e 's/@''GNULIB_STRVERSCMP''@/$(GL_GNULIB_STRVERSCMP)/g' \ -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \ -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/string.in.h | \ sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \ -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \ -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \ -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \ -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \ -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \ -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \ -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \ -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \ -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # has one that is incomplete. sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \ -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \ -e 's/@''GNULIB_CHMOD''@/$(GL_GNULIB_CHMOD)/g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GL_GNULIB_FCHMODAT)/g' \ -e 's/@''GNULIB_FSTAT''@/$(GL_GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GL_GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GL_GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_GETUMASK''@/$(GL_GNULIB_GETUMASK)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GL_GNULIB_LCHMOD)/g' \ -e 's/@''GNULIB_LSTAT''@/$(GL_GNULIB_LSTAT)/g' \ -e 's/@''GNULIB_MKDIR''@/$(GL_GNULIB_MKDIR)/g' \ -e 's/@''GNULIB_MKDIRAT''@/$(GL_GNULIB_MKDIRAT)/g' \ -e 's/@''GNULIB_MKFIFO''@/$(GL_GNULIB_MKFIFO)/g' \ -e 's/@''GNULIB_MKFIFOAT''@/$(GL_GNULIB_MKFIFOAT)/g' \ -e 's/@''GNULIB_MKNOD''@/$(GL_GNULIB_MKNOD)/g' \ -e 's/@''GNULIB_MKNODAT''@/$(GL_GNULIB_MKNODAT)/g' \ -e 's/@''GNULIB_STAT''@/$(GL_GNULIB_STAT)/g' \ -e 's/@''GNULIB_UTIMENSAT''@/$(GL_GNULIB_UTIMENSAT)/g' \ -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \ -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_GNULIB_MDA_CHMOD)/g' \ -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_GNULIB_MDA_MKDIR)/g' \ -e 's/@''GNULIB_MDA_UMASK''@/$(GL_GNULIB_MDA_UMASK)/g' \ -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \ -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \ -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \ -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \ -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \ -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_stat.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/types.h: sys_types.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) 'sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \ $(srcdir)/sys_types.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's/@''GNULIB_CTIME''@/$(GL_GNULIB_CTIME)/g' \ -e 's/@''GNULIB_LOCALTIME''@/$(GL_GNULIB_LOCALTIME)/g' \ -e 's/@''GNULIB_MKTIME''@/$(GL_GNULIB_MKTIME)/g' \ -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \ -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \ -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \ -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \ -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \ -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \ -e 's/@''GNULIB_TIME_R''@/$(GL_GNULIB_TIME_R)/g' \ -e 's/@''GNULIB_TIME_RZ''@/$(GL_GNULIB_TIME_RZ)/g' \ -e 's/@''GNULIB_TZSET''@/$(GL_GNULIB_TZSET)/g' \ -e 's/@''GNULIB_MDA_TZSET''@/$(GL_GNULIB_MDA_TZSET)/g' \ -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \ -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \ -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \ -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \ -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \ -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \ -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/time.in.h > $@-t $(AM_V_at)mv $@-t $@ # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's/@''GNULIB_ACCESS''@/$(GL_GNULIB_ACCESS)/g' \ -e 's/@''GNULIB_CHDIR''@/$(GL_GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GL_GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_GNULIB_COPY_FILE_RANGE)/g' \ -e 's/@''GNULIB_DUP''@/$(GL_GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GL_GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GL_GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GL_GNULIB_ENVIRON)/g' \ -e 's/@''GNULIB_EUIDACCESS''@/$(GL_GNULIB_EUIDACCESS)/g' \ -e 's/@''GNULIB_EXECL''@/$(GL_GNULIB_EXECL)/g' \ -e 's/@''GNULIB_EXECLE''@/$(GL_GNULIB_EXECLE)/g' \ -e 's/@''GNULIB_EXECLP''@/$(GL_GNULIB_EXECLP)/g' \ -e 's/@''GNULIB_EXECV''@/$(GL_GNULIB_EXECV)/g' \ -e 's/@''GNULIB_EXECVE''@/$(GL_GNULIB_EXECVE)/g' \ -e 's/@''GNULIB_EXECVP''@/$(GL_GNULIB_EXECVP)/g' \ -e 's/@''GNULIB_EXECVPE''@/$(GL_GNULIB_EXECVPE)/g' \ -e 's/@''GNULIB_FACCESSAT''@/$(GL_GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GL_GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GL_GNULIB_FCHOWNAT)/g' \ -e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \ -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \ -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \ -e 's/@''GNULIB_GETENTROPY''@/$(GL_GNULIB_GETENTROPY)/g' \ -e 's/@''GNULIB_GETGROUPS''@/$(GL_GNULIB_GETGROUPS)/g' \ -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_GNULIB_GETHOSTNAME)/g' \ -e 's/@''GNULIB_GETLOGIN''@/$(GL_GNULIB_GETLOGIN)/g' \ -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_GNULIB_GETLOGIN_R)/g' \ -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_GNULIB_GETOPT_POSIX)/g' \ -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETPASS''@/$(GL_GNULIB_GETPASS)/g' \ -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_GNULIB_GETPASS_GNU)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_GNULIB_GROUP_MEMBER)/g' \ -e 's/@''GNULIB_ISATTY''@/$(GL_GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GL_GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GL_GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GL_GNULIB_LINKAT)/g' \ -e 's/@''GNULIB_LSEEK''@/$(GL_GNULIB_LSEEK)/g' \ -e 's/@''GNULIB_PIPE''@/$(GL_GNULIB_PIPE)/g' \ -e 's/@''GNULIB_PIPE2''@/$(GL_GNULIB_PIPE2)/g' \ -e 's/@''GNULIB_PREAD''@/$(GL_GNULIB_PREAD)/g' \ -e 's/@''GNULIB_PWRITE''@/$(GL_GNULIB_PWRITE)/g' \ -e 's/@''GNULIB_READ''@/$(GL_GNULIB_READ)/g' \ -e 's/@''GNULIB_READLINK''@/$(GL_GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GL_GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GL_GNULIB_RMDIR)/g' \ -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GL_GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GL_GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GL_GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TRUNCATE''@/$(GL_GNULIB_TRUNCATE)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GL_GNULIB_TTYNAME_R)/g' \ -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_GNULIB_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GL_GNULIB_UNLINK)/g' \ -e 's/@''GNULIB_UNLINKAT''@/$(GL_GNULIB_UNLINKAT)/g' \ -e 's/@''GNULIB_USLEEP''@/$(GL_GNULIB_USLEEP)/g' \ -e 's/@''GNULIB_WRITE''@/$(GL_GNULIB_WRITE)/g' \ -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_GNULIB_MDA_ACCESS)/g' \ -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_GNULIB_MDA_CHDIR)/g' \ -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_GNULIB_MDA_CLOSE)/g' \ -e 's/@''GNULIB_MDA_DUP''@/$(GL_GNULIB_MDA_DUP)/g' \ -e 's/@''GNULIB_MDA_DUP2''@/$(GL_GNULIB_MDA_DUP2)/g' \ -e 's/@''GNULIB_MDA_EXECL''@/$(GL_GNULIB_MDA_EXECL)/g' \ -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_GNULIB_MDA_EXECLE)/g' \ -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_GNULIB_MDA_EXECLP)/g' \ -e 's/@''GNULIB_MDA_EXECV''@/$(GL_GNULIB_MDA_EXECV)/g' \ -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_GNULIB_MDA_EXECVE)/g' \ -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_GNULIB_MDA_EXECVP)/g' \ -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_GNULIB_MDA_EXECVPE)/g' \ -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_GNULIB_MDA_GETCWD)/g' \ -e 's/@''GNULIB_MDA_GETPID''@/$(GL_GNULIB_MDA_GETPID)/g' \ -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_GNULIB_MDA_ISATTY)/g' \ -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_GNULIB_MDA_LSEEK)/g' \ -e 's/@''GNULIB_MDA_READ''@/$(GL_GNULIB_MDA_READ)/g' \ -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_GNULIB_MDA_RMDIR)/g' \ -e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \ -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \ -e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \ < $(srcdir)/unistd.in.h | \ sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \ -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \ -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \ -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \ -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ | \ sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \ -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \ -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \ -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \ -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \ -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \ -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \ -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \ -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \ -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \ -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \ -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \ -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \ -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \ -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \ -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \ -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : distclean-local: distclean-gnulib-libobjs distclean-gnulib-libobjs: -rm -f @gl_LIBOBJDEPS@ maintainer-clean-local: distclean-gnulib-libobjs # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/src/gl/version-etc.h0000644000000000000000000000534014273615075013505 00000000000000/* Print --version and bug-reporting information in a consistent format. Copyright (C) 1999, 2003, 2005, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Jim Meyering. */ #ifndef VERSION_ETC_H # define VERSION_ETC_H 1 # include # include # ifdef __cplusplus extern "C" { # endif extern const char version_etc_copyright[]; /* The three functions below display the --version information in the standard way: command and package names, package version, followed by a short GPLv3+ notice and a list of up to 10 author names. If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of the program. The formats are therefore: PACKAGE VERSION or COMMAND_NAME (PACKAGE) VERSION. The functions differ in the way they are passed author names: */ /* N_AUTHORS names are supplied in array AUTHORS. */ extern void version_etc_arn (FILE *stream, const char *command_name, const char *package, const char *version, const char * const * authors, size_t n_authors); /* Names are passed in the NULL-terminated array AUTHORS. */ extern void version_etc_ar (FILE *stream, const char *command_name, const char *package, const char *version, const char * const * authors); /* Names are passed in the NULL-terminated va_list. */ extern void version_etc_va (FILE *stream, const char *command_name, const char *package, const char *version, va_list authors); /* Names are passed as separate arguments, with an additional NULL argument at the end. */ extern void version_etc (FILE *stream, const char *command_name, const char *package, const char *version, /* const char *author1, ..., NULL */ ...) _GL_ATTRIBUTE_SENTINEL ((0)); /* Display the usual "Report bugs to" stanza. */ extern void emit_bug_reporting_address (void); # ifdef __cplusplus } # endif #endif /* VERSION_ETC_H */ shishi-1.0.3/src/gl/filename.h0000644000000000000000000001110614273615074013023 00000000000000/* Basic filename support macros. Copyright (C) 2001-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ /* From Paul Eggert and Jim Meyering. */ #ifndef _FILENAME_H #define _FILENAME_H #include #ifdef __cplusplus extern "C" { #endif /* Filename support. ISSLASH(C) tests whether C is a directory separator character. HAS_DEVICE(Filename) tests whether Filename contains a device specification. FILE_SYSTEM_PREFIX_LEN(Filename) length of the device specification at the beginning of Filename, index of the part consisting of alternating components and slashes. FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1 when a non-empty device specification can be followed by an empty or relative part, 0 when a non-empty device specification must be followed by a slash, 0 when device specification don't exist. IS_ABSOLUTE_FILE_NAME(Filename) tests whether Filename is independent of any notion of "current directory". IS_RELATIVE_FILE_NAME(Filename) tests whether Filename may be concatenated to a directory filename. Note: On native Windows, OS/2, DOS, "c:" is neither an absolute nor a relative file name! IS_FILE_NAME_WITH_DIR(Filename) tests whether Filename contains a device or directory specification. */ #if defined _WIN32 || defined __CYGWIN__ \ || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__ /* Native Windows, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') /* Internal macro: Tests whether a character is a drive letter. */ # define _IS_DRIVE_LETTER(C) \ (((C) >= 'A' && (C) <= 'Z') || ((C) >= 'a' && (C) <= 'z')) /* Help the compiler optimizing it. This assumes ASCII. */ # undef _IS_DRIVE_LETTER # define _IS_DRIVE_LETTER(C) \ (((unsigned int) (C) | ('a' - 'A')) - 'a' <= 'z' - 'a') # define HAS_DEVICE(Filename) \ (_IS_DRIVE_LETTER ((Filename)[0]) && (Filename)[1] == ':') # define FILE_SYSTEM_PREFIX_LEN(Filename) (HAS_DEVICE (Filename) ? 2 : 0) # ifdef __CYGWIN__ # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0 # else /* On native Windows, OS/2, DOS, the system has the notion of a "current directory" on each drive. */ # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1 # endif # if FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE # define IS_ABSOLUTE_FILE_NAME(Filename) \ ISSLASH ((Filename)[FILE_SYSTEM_PREFIX_LEN (Filename)]) # else # define IS_ABSOLUTE_FILE_NAME(Filename) \ (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename)) # endif # define IS_RELATIVE_FILE_NAME(Filename) \ (! (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename))) # define IS_FILE_NAME_WITH_DIR(Filename) \ (strchr ((Filename), '/') != NULL || strchr ((Filename), '\\') != NULL \ || HAS_DEVICE (Filename)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define HAS_DEVICE(Filename) ((void) (Filename), 0) # define FILE_SYSTEM_PREFIX_LEN(Filename) ((void) (Filename), 0) # define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0 # define IS_ABSOLUTE_FILE_NAME(Filename) ISSLASH ((Filename)[0]) # define IS_RELATIVE_FILE_NAME(Filename) (! ISSLASH ((Filename)[0])) # define IS_FILE_NAME_WITH_DIR(Filename) (strchr ((Filename), '/') != NULL) #endif /* Deprecated macros. For backward compatibility with old users of the 'filename' module. */ #define IS_ABSOLUTE_PATH IS_ABSOLUTE_FILE_NAME #define IS_PATH_WITH_DIR IS_FILE_NAME_WITH_DIR #ifdef __cplusplus } #endif #endif /* _FILENAME_H */ shishi-1.0.3/src/gl/getopt-cdefs.in.h0000644000000000000000000000404614273615074014241 00000000000000/* getopt-on-non-glibc compatibility macros. Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of gnulib. Unlike most of the getopt implementation, it is NOT shared with the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GETOPT_CDEFS_H #define _GETOPT_CDEFS_H 1 /* This header should not be used directly; include getopt.h or unistd.h instead. It does not have a protective #error, because the guard macro for getopt.h in gnulib is not fixed. */ /* getopt-core.h and getopt-ext.h are shared with GNU libc, and expect a number of the internal macros supplied to GNU libc's headers by sys/cdefs.h. Provide fallback definitions for all of them. */ #if @HAVE_SYS_CDEFS_H@ # include #endif #ifndef __BEGIN_DECLS # ifdef __cplusplus # define __BEGIN_DECLS extern "C" { # else # define __BEGIN_DECLS /* nothing */ # endif #endif #ifndef __END_DECLS # ifdef __cplusplus # define __END_DECLS } # else # define __END_DECLS /* nothing */ # endif #endif #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_VERSION__ # define __GNUC_PREREQ(maj, min) \ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) # else # define __GNUC_PREREQ(maj, min) 0 # endif #endif #ifndef __THROW # if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4) # define __THROW throw () # else # define __THROW # endif #endif #endif /* _GETOPT_CDEFS_H */ shishi-1.0.3/src/gl/arg-nonnull.h0000644000000000000000000000235314273615074013503 00000000000000/* A C macro for declaring that specific arguments must not be NULL. Copyright (C) 2009-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools that the values passed as arguments n, ..., m must be non-NULL pointers. n = 1 stands for the first argument, n = 2 for the second argument etc. */ #ifndef _GL_ARG_NONNULL # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || defined __clang__ # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params)) # else # define _GL_ARG_NONNULL(params) # endif #endif shishi-1.0.3/src/gl/msvc-inval.h0000644000000000000000000002122614273615075013327 00000000000000/* Invalid parameter handler for MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MSVC_INVAL_H #define _MSVC_INVAL_H /* With MSVC runtime libraries with the "invalid parameter handler" concept, functions like fprintf(), dup2(), or close() crash when the caller passes an invalid argument. But POSIX wants error codes (such as EINVAL or EBADF) instead. This file defines macros that turn such an invalid parameter notification into a non-local exit. An error code can then be produced at the target of this exit. You can thus write code like TRY_MSVC_INVAL { } CATCH_MSVC_INVAL { } DONE_MSVC_INVAL; This entire block expands to a single statement. The handling of invalid parameters can be done in three ways: * The default way, which is reasonable for programs (not libraries): AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [DEFAULT_HANDLING]) * The way for libraries that make "hairy" calls (like close(-1), or fclose(fp) where fileno(fp) is closed, or simply getdtablesize()): AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [HAIRY_LIBRARY_HANDLING]) * The way for libraries that make no "hairy" calls: AC_DEFINE([MSVC_INVALID_PARAMETER_HANDLING], [SANE_LIBRARY_HANDLING]) */ #define DEFAULT_HANDLING 0 #define HAIRY_LIBRARY_HANDLING 1 #define SANE_LIBRARY_HANDLING 2 #if HAVE_MSVC_INVALID_PARAMETER_HANDLER \ && !(MSVC_INVALID_PARAMETER_HANDLING == SANE_LIBRARY_HANDLING) /* A native Windows platform with the "invalid parameter handler" concept, and either DEFAULT_HANDLING or HAIRY_LIBRARY_HANDLING. */ # if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING /* Default handling. */ # ifdef __cplusplus extern "C" { # endif /* Ensure that the invalid parameter handler in installed that just returns. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ gl_msvc_inval_ensure_handler (); \ if (1) # define CATCH_MSVC_INVAL \ else # define DONE_MSVC_INVAL \ } \ while (0) # else /* Handling for hairy libraries. */ # include /* Gnulib can define its own status codes, as described in the page "Raising Software Exceptions" on microsoft.com . Our status codes are composed of - 0xE0000000, mandatory for all user-defined status codes, - 0x474E550, a API identifier ("GNU"), - 0, 1, 2, ..., used to distinguish different status codes from the same API. */ # define STATUS_GNULIB_INVALID_PARAMETER (0xE0000000 + 0x474E550 + 0) # if defined _MSC_VER /* A compiler that supports __try/__except, as described in the page "try-except statement" on microsoft.com . With __try/__except, we can use the multithread-safe exception handling. */ # ifdef __cplusplus extern "C" { # endif /* Ensure that the invalid parameter handler in installed that raises a software exception with code STATUS_GNULIB_INVALID_PARAMETER. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ gl_msvc_inval_ensure_handler (); \ __try # define CATCH_MSVC_INVAL \ __except (GetExceptionCode () == STATUS_GNULIB_INVALID_PARAMETER \ ? EXCEPTION_EXECUTE_HANDLER \ : EXCEPTION_CONTINUE_SEARCH) # define DONE_MSVC_INVAL \ } \ while (0) # else /* Any compiler. We can only use setjmp/longjmp. */ # include # ifdef __cplusplus extern "C" { # endif struct gl_msvc_inval_per_thread { /* The restart that will resume execution at the code between CATCH_MSVC_INVAL and DONE_MSVC_INVAL. It is enabled only between TRY_MSVC_INVAL and CATCH_MSVC_INVAL. */ jmp_buf restart; /* Tells whether the contents of restart is valid. */ int restart_valid; }; /* Ensure that the invalid parameter handler in installed that passes control to the gl_msvc_inval_restart if it is valid, or raises a software exception with code STATUS_GNULIB_INVALID_PARAMETER otherwise. Because we assume no other part of the program installs a different invalid parameter handler, this solution is multithread-safe. */ extern void gl_msvc_inval_ensure_handler (void); /* Return a pointer to the per-thread data for the current thread. */ extern struct gl_msvc_inval_per_thread *gl_msvc_inval_current (void); # ifdef __cplusplus } # endif # define TRY_MSVC_INVAL \ do \ { \ struct gl_msvc_inval_per_thread *msvc_inval_current; \ gl_msvc_inval_ensure_handler (); \ msvc_inval_current = gl_msvc_inval_current (); \ /* First, initialize gl_msvc_inval_restart. */ \ if (setjmp (msvc_inval_current->restart) == 0) \ { \ /* Then, mark it as valid. */ \ msvc_inval_current->restart_valid = 1; # define CATCH_MSVC_INVAL \ /* Execution completed. \ Mark gl_msvc_inval_restart as invalid. */ \ msvc_inval_current->restart_valid = 0; \ } \ else \ { \ /* Execution triggered an invalid parameter notification. \ Mark gl_msvc_inval_restart as invalid. */ \ msvc_inval_current->restart_valid = 0; # define DONE_MSVC_INVAL \ } \ } \ while (0) # endif # endif #else /* A platform that does not need to the invalid parameter handler, or when SANE_LIBRARY_HANDLING is desired. */ /* The braces here avoid GCC warnings like "warning: suggest explicit braces to avoid ambiguous 'else'". */ # define TRY_MSVC_INVAL \ do \ { \ if (1) # define CATCH_MSVC_INVAL \ else # define DONE_MSVC_INVAL \ } \ while (0) #endif #endif /* _MSVC_INVAL_H */ shishi-1.0.3/src/gl/getopt-ext.h0000644000000000000000000000575314273615074013356 00000000000000/* Declarations for getopt (GNU extensions). Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of the GNU C Library and is also part of gnulib. Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _GETOPT_EXT_H #define _GETOPT_EXT_H 1 /* This header should not be used directly; include getopt.h instead. Unlike most bits headers, it does not have a protective #error, because the guard macro for getopt.h in gnulib is not fixed. */ __BEGIN_DECLS /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of 'struct option' terminated by an element containing a name which is zero. The field 'has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field 'flag' is not NULL, it points to a variable that is set to the value given in the field 'val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an 'int' to a compiled-in constant, such as set a value from 'optarg', set the option's 'flag' field to zero and its 'val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero 'flag' field, 'getopt' returns the contents of the 'val' field. */ struct option { const char *name; /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the 'has_arg' field of 'struct option'. */ #define no_argument 0 #define required_argument 1 #define optional_argument 2 extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW _GL_ARG_NONNULL ((2, 3)); extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW _GL_ARG_NONNULL ((2, 3)); __END_DECLS #endif /* _GETOPT_EXT_H */ shishi-1.0.3/src/gl/fcntl.c0000644000000000000000000004462114273615074012354 00000000000000/* Provide file descriptor control. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake . */ #include /* Specification. */ #include #include #include #include #include #include #ifdef __KLIBC__ # define INCL_DOS # include #endif #if defined _WIN32 && ! defined __CYGWIN__ /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Upper bound on getdtablesize(). See lib/getdtablesize.c. */ # define OPEN_MAX_MAX 0x10000 /* Duplicate OLDFD into the first available slot of at least NEWFD, which must be positive, with FLAGS determining whether the duplicate will be inheritable. */ static int dupfd (int oldfd, int newfd, int flags) { /* Mingw has no way to create an arbitrary fd. Iterate until all file descriptors less than newfd are filled up. */ HANDLE curr_process = GetCurrentProcess (); HANDLE old_handle = (HANDLE) _get_osfhandle (oldfd); unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; unsigned int fds_to_close_bound = 0; int result; BOOL inherit = flags & O_CLOEXEC ? FALSE : TRUE; int mode; if (newfd < 0 || getdtablesize () <= newfd) { errno = EINVAL; return -1; } if (old_handle == INVALID_HANDLE_VALUE || (mode = _setmode (oldfd, O_BINARY)) == -1) { /* oldfd is not open, or is an unassigned standard file descriptor. */ errno = EBADF; return -1; } _setmode (oldfd, mode); flags |= mode; for (;;) { HANDLE new_handle; int duplicated_fd; unsigned int index; if (!DuplicateHandle (curr_process, /* SourceProcessHandle */ old_handle, /* SourceHandle */ curr_process, /* TargetProcessHandle */ (PHANDLE) &new_handle, /* TargetHandle */ (DWORD) 0, /* DesiredAccess */ inherit, /* InheritHandle */ DUPLICATE_SAME_ACCESS)) /* Options */ { switch (GetLastError ()) { case ERROR_TOO_MANY_OPEN_FILES: errno = EMFILE; break; case ERROR_INVALID_HANDLE: case ERROR_INVALID_TARGET_HANDLE: case ERROR_DIRECT_ACCESS_HANDLE: errno = EBADF; break; case ERROR_INVALID_PARAMETER: case ERROR_INVALID_FUNCTION: case ERROR_INVALID_ACCESS: errno = EINVAL; break; default: errno = EACCES; break; } result = -1; break; } duplicated_fd = _open_osfhandle ((intptr_t) new_handle, flags); if (duplicated_fd < 0) { CloseHandle (new_handle); result = -1; break; } if (newfd <= duplicated_fd) { result = duplicated_fd; break; } /* Set the bit duplicated_fd in fds_to_close[]. */ index = (unsigned int) duplicated_fd / CHAR_BIT; if (fds_to_close_bound <= index) { if (sizeof fds_to_close <= index) /* Need to increase OPEN_MAX_MAX. */ abort (); memset (fds_to_close + fds_to_close_bound, '\0', index + 1 - fds_to_close_bound); fds_to_close_bound = index + 1; } fds_to_close[index] |= 1 << ((unsigned int) duplicated_fd % CHAR_BIT); } /* Close the previous fds that turned out to be too small. */ { int saved_errno = errno; unsigned int duplicated_fd; for (duplicated_fd = 0; duplicated_fd < fds_to_close_bound * CHAR_BIT; duplicated_fd++) if ((fds_to_close[duplicated_fd / CHAR_BIT] >> (duplicated_fd % CHAR_BIT)) & 1) close (duplicated_fd); errno = saved_errno; } # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (oldfd, result); # endif return result; } #endif /* W32 */ /* Forward declarations, because we '#undef fcntl' in the middle of this compilation unit. */ /* Our implementation of fcntl (fd, F_DUPFD, target). */ static int rpl_fcntl_DUPFD (int fd, int target); /* Our implementation of fcntl (fd, F_DUPFD_CLOEXEC, target). */ static int rpl_fcntl_DUPFD_CLOEXEC (int fd, int target); #ifdef __KLIBC__ /* Adds support for fcntl on directories. */ static int klibc_fcntl (int fd, int action, /* arg */...); #endif /* Perform the specified ACTION on the file descriptor FD, possibly using the argument ARG further described below. This replacement handles the following actions, and forwards all others on to the native fcntl. An unrecognized ACTION returns -1 with errno set to EINVAL. F_DUPFD - duplicate FD, with int ARG being the minimum target fd. If successful, return the duplicate, which will be inheritable; otherwise return -1 and set errno. F_DUPFD_CLOEXEC - duplicate FD, with int ARG being the minimum target fd. If successful, return the duplicate, which will not be inheritable; otherwise return -1 and set errno. F_GETFD - ARG need not be present. If successful, return a non-negative value containing the descriptor flags of FD (only FD_CLOEXEC is portable, but other flags may be present); otherwise return -1 and set errno. */ int fcntl (int fd, int action, /* arg */...) #undef fcntl #ifdef __KLIBC__ # define fcntl klibc_fcntl #endif { va_list arg; int result = -1; va_start (arg, action); switch (action) { case F_DUPFD: { int target = va_arg (arg, int); result = rpl_fcntl_DUPFD (fd, target); break; } case F_DUPFD_CLOEXEC: { int target = va_arg (arg, int); result = rpl_fcntl_DUPFD_CLOEXEC (fd, target); break; } #if !HAVE_FCNTL case F_GETFD: { # if defined _WIN32 && ! defined __CYGWIN__ HANDLE handle = (HANDLE) _get_osfhandle (fd); DWORD flags; if (handle == INVALID_HANDLE_VALUE || GetHandleInformation (handle, &flags) == 0) errno = EBADF; else result = (flags & HANDLE_FLAG_INHERIT) ? 0 : FD_CLOEXEC; # else /* !W32 */ /* Use dup2 to reject invalid file descriptors. No way to access this information, so punt. */ if (0 <= dup2 (fd, fd)) result = 0; # endif /* !W32 */ break; } /* F_GETFD */ #endif /* !HAVE_FCNTL */ /* Implementing F_SETFD on mingw is not trivial - there is no API for changing the O_NOINHERIT bit on an fd, and merely changing the HANDLE_FLAG_INHERIT bit on the underlying handle can lead to odd state. It may be possible by duplicating the handle, using _open_osfhandle with the right flags, then using dup2 to move the duplicate onto the original, but that is not supported for now. */ default: { #if HAVE_FCNTL switch (action) { #ifdef F_BARRIERFSYNC /* macOS */ case F_BARRIERFSYNC: #endif #ifdef F_CHKCLEAN /* macOS */ case F_CHKCLEAN: #endif #ifdef F_CLOSEM /* NetBSD, HP-UX */ case F_CLOSEM: #endif #ifdef F_FLUSH_DATA /* macOS */ case F_FLUSH_DATA: #endif #ifdef F_FREEZE_FS /* macOS */ case F_FREEZE_FS: #endif #ifdef F_FULLFSYNC /* macOS */ case F_FULLFSYNC: #endif #ifdef F_GETCONFINED /* macOS */ case F_GETCONFINED: #endif #ifdef F_GETDEFAULTPROTLEVEL /* macOS */ case F_GETDEFAULTPROTLEVEL: #endif #ifdef F_GETFD /* POSIX */ case F_GETFD: #endif #ifdef F_GETFL /* POSIX */ case F_GETFL: #endif #ifdef F_GETLEASE /* Linux */ case F_GETLEASE: #endif #ifdef F_GETNOSIGPIPE /* macOS */ case F_GETNOSIGPIPE: #endif #ifdef F_GETOWN /* POSIX */ case F_GETOWN: #endif #ifdef F_GETPIPE_SZ /* Linux */ case F_GETPIPE_SZ: #endif #ifdef F_GETPROTECTIONCLASS /* macOS */ case F_GETPROTECTIONCLASS: #endif #ifdef F_GETPROTECTIONLEVEL /* macOS */ case F_GETPROTECTIONLEVEL: #endif #ifdef F_GET_SEALS /* Linux */ case F_GET_SEALS: #endif #ifdef F_GETSIG /* Linux */ case F_GETSIG: #endif #ifdef F_MAXFD /* NetBSD */ case F_MAXFD: #endif #ifdef F_RECYCLE /* macOS */ case F_RECYCLE: #endif #ifdef F_SETFIFOENH /* HP-UX */ case F_SETFIFOENH: #endif #ifdef F_THAW_FS /* macOS */ case F_THAW_FS: #endif /* These actions take no argument. */ result = fcntl (fd, action); break; #ifdef F_ADD_SEALS /* Linux */ case F_ADD_SEALS: #endif #ifdef F_BADFD /* Solaris */ case F_BADFD: #endif #ifdef F_CHECK_OPENEVT /* macOS */ case F_CHECK_OPENEVT: #endif #ifdef F_DUP2FD /* FreeBSD, AIX, Solaris */ case F_DUP2FD: #endif #ifdef F_DUP2FD_CLOEXEC /* FreeBSD, Solaris */ case F_DUP2FD_CLOEXEC: #endif #ifdef F_DUP2FD_CLOFORK /* Solaris */ case F_DUP2FD_CLOFORK: #endif #ifdef F_DUPFD /* POSIX */ case F_DUPFD: #endif #ifdef F_DUPFD_CLOEXEC /* POSIX */ case F_DUPFD_CLOEXEC: #endif #ifdef F_DUPFD_CLOFORK /* Solaris */ case F_DUPFD_CLOFORK: #endif #ifdef F_GETXFL /* Solaris */ case F_GETXFL: #endif #ifdef F_GLOBAL_NOCACHE /* macOS */ case F_GLOBAL_NOCACHE: #endif #ifdef F_MAKECOMPRESSED /* macOS */ case F_MAKECOMPRESSED: #endif #ifdef F_MOVEDATAEXTENTS /* macOS */ case F_MOVEDATAEXTENTS: #endif #ifdef F_NOCACHE /* macOS */ case F_NOCACHE: #endif #ifdef F_NODIRECT /* macOS */ case F_NODIRECT: #endif #ifdef F_NOTIFY /* Linux */ case F_NOTIFY: #endif #ifdef F_OPLKACK /* IRIX */ case F_OPLKACK: #endif #ifdef F_OPLKREG /* IRIX */ case F_OPLKREG: #endif #ifdef F_RDAHEAD /* macOS */ case F_RDAHEAD: #endif #ifdef F_SETBACKINGSTORE /* macOS */ case F_SETBACKINGSTORE: #endif #ifdef F_SETCONFINED /* macOS */ case F_SETCONFINED: #endif #ifdef F_SETFD /* POSIX */ case F_SETFD: #endif #ifdef F_SETFL /* POSIX */ case F_SETFL: #endif #ifdef F_SETLEASE /* Linux */ case F_SETLEASE: #endif #ifdef F_SETNOSIGPIPE /* macOS */ case F_SETNOSIGPIPE: #endif #ifdef F_SETOWN /* POSIX */ case F_SETOWN: #endif #ifdef F_SETPIPE_SZ /* Linux */ case F_SETPIPE_SZ: #endif #ifdef F_SETPROTECTIONCLASS /* macOS */ case F_SETPROTECTIONCLASS: #endif #ifdef F_SETSIG /* Linux */ case F_SETSIG: #endif #ifdef F_SINGLE_WRITER /* macOS */ case F_SINGLE_WRITER: #endif /* These actions take an 'int' argument. */ { int x = va_arg (arg, int); result = fcntl (fd, action, x); } break; default: /* Other actions take a pointer argument. */ { void *p = va_arg (arg, void *); result = fcntl (fd, action, p); } break; } #else errno = EINVAL; #endif break; } } va_end (arg); return result; } static int rpl_fcntl_DUPFD (int fd, int target) { int result; #if !HAVE_FCNTL result = dupfd (fd, target, 0); #elif FCNTL_DUPFD_BUGGY || REPLACE_FCHDIR /* Detect invalid target; needed for cygwin 1.5.x. */ if (target < 0 || getdtablesize () <= target) { result = -1; errno = EINVAL; } else { /* Haiku alpha 2 loses fd flags on original. */ int flags = fcntl (fd, F_GETFD); if (flags < 0) result = -1; else { result = fcntl (fd, F_DUPFD, target); if (0 <= result && fcntl (fd, F_SETFD, flags) == -1) { int saved_errno = errno; close (result); result = -1; errno = saved_errno; } # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (fd, result); # endif } } #else result = fcntl (fd, F_DUPFD, target); #endif return result; } static int rpl_fcntl_DUPFD_CLOEXEC (int fd, int target) { int result; #if !HAVE_FCNTL result = dupfd (fd, target, O_CLOEXEC); #else /* HAVE_FCNTL */ # if defined __NetBSD__ || defined __HAIKU__ /* On NetBSD 9.0, the system fcntl (fd, F_DUPFD_CLOEXEC, target) has only the same effect as fcntl (fd, F_DUPFD, target). */ /* On Haiku, the system fcntl (fd, F_DUPFD_CLOEXEC, target) sets the FD_CLOEXEC flag on fd, not on target. Therefore avoid the system fcntl in this case. */ # define have_dupfd_cloexec -1 # else /* Try the system call first, if the headers claim it exists (that is, if GNULIB_defined_F_DUPFD_CLOEXEC is 0), since we may be running with a glibc that has the macro but with an older kernel that does not support it. Cache the information on whether the system call really works, but avoid caching failure if the corresponding F_DUPFD fails for any reason. 0 = unknown, 1 = yes, -1 = no. */ static int have_dupfd_cloexec = GNULIB_defined_F_DUPFD_CLOEXEC ? -1 : 0; if (0 <= have_dupfd_cloexec) { result = fcntl (fd, F_DUPFD_CLOEXEC, target); if (0 <= result || errno != EINVAL) { have_dupfd_cloexec = 1; # if REPLACE_FCHDIR if (0 <= result) result = _gl_register_dup (fd, result); # endif } else { result = rpl_fcntl_DUPFD (fd, target); if (result >= 0) have_dupfd_cloexec = -1; } } else # endif result = rpl_fcntl_DUPFD (fd, target); if (0 <= result && have_dupfd_cloexec == -1) { int flags = fcntl (result, F_GETFD); if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1) { int saved_errno = errno; close (result); errno = saved_errno; result = -1; } } #endif /* HAVE_FCNTL */ return result; } #undef fcntl #ifdef __KLIBC__ static int klibc_fcntl (int fd, int action, /* arg */...) { va_list arg_ptr; int arg; struct stat sbuf; int result; va_start (arg_ptr, action); arg = va_arg (arg_ptr, int); result = fcntl (fd, action, arg); /* EPERM for F_DUPFD, ENOTSUP for others */ if (result == -1 && (errno == EPERM || errno == ENOTSUP) && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) { ULONG ulMode; switch (action) { case F_DUPFD: /* Find available fd */ while (fcntl (arg, F_GETFL) != -1 || errno != EBADF) arg++; result = dup2 (fd, arg); break; /* Using underlying APIs is right ? */ case F_GETFD: if (DosQueryFHState (fd, &ulMode)) break; result = (ulMode & OPEN_FLAGS_NOINHERIT) ? FD_CLOEXEC : 0; break; case F_SETFD: if (arg & ~FD_CLOEXEC) break; if (DosQueryFHState (fd, &ulMode)) break; if (arg & FD_CLOEXEC) ulMode |= OPEN_FLAGS_NOINHERIT; else ulMode &= ~OPEN_FLAGS_NOINHERIT; /* Filter supported flags. */ ulMode &= (OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT); if (DosSetFHState (fd, ulMode)) break; result = 0; break; case F_GETFL: result = 0; break; case F_SETFL: if (arg != 0) break; result = 0; break; default: errno = EINVAL; break; } } va_end (arg_ptr); return result; } #endif shishi-1.0.3/src/gl/stddef.in.h0000644000000000000000000001203414273615075013123 00000000000000/* A substitute for POSIX 2008 , for platforms that have issues. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake. */ /* * POSIX 2008 for platforms that have issues. * */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_wchar_t || defined __need_size_t \ || defined __need_ptrdiff_t || defined __need_NULL \ || defined __need_wint_t /* Special invocation convention inside gcc header files. In particular, gcc provides a version of that blindly redefines NULL even when __need_wint_t was defined, even though wint_t is not normally provided by . Hence, we must remember if special invocation has ever been used to obtain wint_t, in which case we need to clean up NULL yet again. */ # if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T) # ifdef __need_wint_t # define _GL_STDDEF_WINT_T # endif # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ /* On TinyCC, make sure that the macros that indicate the special invocation convention get undefined. */ # undef __need_wchar_t # undef __need_size_t # undef __need_ptrdiff_t # undef __need_NULL # undef __need_wint_t # endif #else /* Normal invocation convention. */ # ifndef _@GUARD_PREFIX@_STDDEF_H /* On AIX 7.2, with xlc in 64-bit mode, defines max_align_t to a type with alignment 4, but 'long' has alignment 8. */ # if defined _AIX && defined __LP64__ # if !GNULIB_defined_max_align_t # ifdef _MAX_ALIGN_T /* /usr/include/stddef.h has already defined max_align_t. Override it. */ typedef long rpl_max_align_t; # define max_align_t rpl_max_align_t # else /* Prevent /usr/include/stddef.h from defining max_align_t. */ typedef long max_align_t; # define _MAX_ALIGN_T # endif # define GNULIB_defined_max_align_t 1 # endif # endif /* The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ # if (@REPLACE_NULL@ \ && (!defined _@GUARD_PREFIX@_STDDEF_H || defined _GL_STDDEF_WINT_T)) # undef NULL # ifdef __cplusplus /* ISO C++ says that the macro NULL must expand to an integer constant expression, hence '((void *) 0)' is not allowed in C++. */ # if __GNUG__ >= 3 /* GNU C++ has a __null macro that behaves like an integer ('int' or 'long') but has the same size as a pointer. Use that, to avoid warnings. */ # define NULL __null # else # define NULL 0L # endif # else # define NULL ((void *) 0) # endif # endif # ifndef _@GUARD_PREFIX@_STDDEF_H # define _@GUARD_PREFIX@_STDDEF_H /* Some platforms lack wchar_t. */ #if !@HAVE_WCHAR_T@ # define wchar_t int #endif /* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is a hack in case the configure-time test was done with g++ even though we are currently compiling with gcc. On MSVC, max_align_t is defined only in C++ mode, after was included. Its definition is good since it has an alignment of 8 (on x86 and x86_64). Similarly on OS/2 kLIBC. */ #if (defined _MSC_VER || (defined __KLIBC__ && !defined __LIBCN__)) \ && defined __cplusplus # include #else # if ! (@HAVE_MAX_ALIGN_T@ || (defined _GCC_MAX_ALIGN_T && !defined __clang__)) # if !GNULIB_defined_max_align_t /* On the x86, the maximum storage alignment of double, long, etc. is 4, but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, and the C11 standard allows this. Work around this problem by using __alignof__ (which returns 8 for double) rather than _Alignof (which returns 4), and align each union member accordingly. */ # if defined __GNUC__ || (__clang_major__ >= 4) # define _GL_STDDEF_ALIGNAS(type) \ __attribute__ ((__aligned__ (__alignof__ (type)))) # else # define _GL_STDDEF_ALIGNAS(type) /* */ # endif typedef union { char *__p _GL_STDDEF_ALIGNAS (char *); double __d _GL_STDDEF_ALIGNAS (double); long double __ld _GL_STDDEF_ALIGNAS (long double); long int __i _GL_STDDEF_ALIGNAS (long int); } rpl_max_align_t; # define max_align_t rpl_max_align_t # define GNULIB_defined_max_align_t 1 # endif # endif #endif # endif /* _@GUARD_PREFIX@_STDDEF_H */ # endif /* _@GUARD_PREFIX@_STDDEF_H */ #endif /* __need_XXX */ shishi-1.0.3/src/gl/msvc-inval.c0000644000000000000000000000755314273615075013331 00000000000000/* Invalid parameter handler for MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "msvc-inval.h" #if HAVE_MSVC_INVALID_PARAMETER_HANDLER \ && !(MSVC_INVALID_PARAMETER_HANDLING == SANE_LIBRARY_HANDLING) /* Get _invalid_parameter_handler type and _set_invalid_parameter_handler declaration. */ # include # if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { } # else /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include # if defined _MSC_VER static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { RaiseException (STATUS_GNULIB_INVALID_PARAMETER, 0, 0, NULL); } # else /* An index to thread-local storage. */ static DWORD tls_index; static int tls_initialized /* = 0 */; /* Used as a fallback only. */ static struct gl_msvc_inval_per_thread not_per_thread; struct gl_msvc_inval_per_thread * gl_msvc_inval_current (void) { if (!tls_initialized) { tls_index = TlsAlloc (); tls_initialized = 1; } if (tls_index == TLS_OUT_OF_INDEXES) /* TlsAlloc had failed. */ return ¬_per_thread; else { struct gl_msvc_inval_per_thread *pointer = (struct gl_msvc_inval_per_thread *) TlsGetValue (tls_index); if (pointer == NULL) { /* First call. Allocate a new 'struct gl_msvc_inval_per_thread'. */ pointer = (struct gl_msvc_inval_per_thread *) malloc (sizeof (struct gl_msvc_inval_per_thread)); if (pointer == NULL) /* Could not allocate memory. Use the global storage. */ pointer = ¬_per_thread; TlsSetValue (tls_index, pointer); } return pointer; } } static void __cdecl gl_msvc_invalid_parameter_handler (const wchar_t *expression, const wchar_t *function, const wchar_t *file, unsigned int line, uintptr_t dummy) { struct gl_msvc_inval_per_thread *current = gl_msvc_inval_current (); if (current->restart_valid) longjmp (current->restart, 1); else /* An invalid parameter notification from outside the gnulib code. Give the caller a chance to intervene. */ RaiseException (STATUS_GNULIB_INVALID_PARAMETER, 0, 0, NULL); } # endif # endif static int gl_msvc_inval_initialized /* = 0 */; void gl_msvc_inval_ensure_handler (void) { if (gl_msvc_inval_initialized == 0) { _set_invalid_parameter_handler (gl_msvc_invalid_parameter_handler); gl_msvc_inval_initialized = 1; } } #endif shishi-1.0.3/src/gl/stdarg.in.h0000644000000000000000000000222414273615075013136 00000000000000/* Substitute for and wrapper around . Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_STDARG_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDARG_H@ #ifndef _@GUARD_PREFIX@_STDARG_H #define _@GUARD_PREFIX@_STDARG_H #ifndef va_copy # define va_copy(a,b) ((a) = (b)) #endif #endif /* _@GUARD_PREFIX@_STDARG_H */ #endif /* _@GUARD_PREFIX@_STDARG_H */ shishi-1.0.3/src/gl/dup2.c0000644000000000000000000000774214273615074012123 00000000000000/* Duplicate an open file descriptor to a specified file descriptor. Copyright (C) 1999, 2004-2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* written by Paul Eggert */ #include /* Specification. */ #include #include #include #undef dup2 #if defined _WIN32 && ! defined __CYGWIN__ /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER # include "msvc-inval.h" # endif /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif # if HAVE_MSVC_INVALID_PARAMETER_HANDLER static int dup2_nothrow (int fd, int desired_fd) { int result; TRY_MSVC_INVAL { result = _dup2 (fd, desired_fd); } CATCH_MSVC_INVAL { errno = EBADF; result = -1; } DONE_MSVC_INVAL; return result; } # else # define dup2_nothrow _dup2 # endif static int ms_windows_dup2 (int fd, int desired_fd) { int result; /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, dup2 (fd, fd) returns 0, but all further attempts to use fd in future dup2 calls will hang. */ if (fd == desired_fd) { if ((HANDLE) _get_osfhandle (fd) == INVALID_HANDLE_VALUE) { errno = EBADF; return -1; } return fd; } /* Wine 1.0.1 return 0 when desired_fd is negative but not -1: https://bugs.winehq.org/show_bug.cgi?id=21289 */ if (desired_fd < 0) { errno = EBADF; return -1; } result = dup2_nothrow (fd, desired_fd); if (result == 0) result = desired_fd; return result; } # define dup2 ms_windows_dup2 #elif defined __KLIBC__ # include static int klibc_dup2dirfd (int fd, int desired_fd) { int tempfd; int dupfd; tempfd = open ("NUL", O_RDONLY); if (tempfd == -1) return -1; if (tempfd == desired_fd) { close (tempfd); char path[_MAX_PATH]; if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) return -1; return open(path, O_RDONLY); } dupfd = klibc_dup2dirfd (fd, desired_fd); close (tempfd); return dupfd; } static int klibc_dup2 (int fd, int desired_fd) { int dupfd; struct stat sbuf; dupfd = dup2 (fd, desired_fd); if (dupfd == -1 && errno == ENOTSUP \ && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode)) { close (desired_fd); return klibc_dup2dirfd (fd, desired_fd); } return dupfd; } # define dup2 klibc_dup2 #endif int rpl_dup2 (int fd, int desired_fd) { int result; #ifdef F_GETFL /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. On Cygwin 1.5.x, dup2 (1, 1) returns 0. On Cygwin 1.7.17, dup2 (1, -1) dumps core. On Cygwin 1.7.25, dup2 (1, 256) can dump core. On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */ # if HAVE_SETDTABLESIZE setdtablesize (desired_fd + 1); # endif if (desired_fd < 0) fd = desired_fd; if (fd == desired_fd) return fcntl (fd, F_GETFL) == -1 ? -1 : fd; #endif result = dup2 (fd, desired_fd); /* Correct an errno value on FreeBSD 6.1 and Cygwin 1.5.x. */ if (result == -1 && errno == EMFILE) errno = EBADF; #if REPLACE_FCHDIR if (fd != desired_fd && result != -1) result = _gl_register_dup (fd, result); #endif return result; } shishi-1.0.3/src/gl/progname.h0000644000000000000000000000374014273615075013061 00000000000000/* Program name management. Copyright (C) 2001-2004, 2006, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #ifndef _PROGNAME_H #define _PROGNAME_H /* Programs using this file should do the following in main(): set_program_name (argv[0]); */ #ifdef __cplusplus extern "C" { #endif /* String containing name the program is called with. */ extern const char *program_name; /* Set program_name, based on argv[0]. argv0 must be a string allocated with indefinite extent, and must not be modified after this call. */ extern void set_program_name (const char *argv0); #if ENABLE_RELOCATABLE /* Set program_name, based on argv[0], and original installation prefix and directory, for relocatability. */ extern void set_program_name_and_installdir (const char *argv0, const char *orig_installprefix, const char *orig_installdir); #undef set_program_name #define set_program_name(ARG0) \ set_program_name_and_installdir (ARG0, INSTALLPREFIX, INSTALLDIR) /* Return the full pathname of the current executable, based on the earlier call to set_program_name_and_installdir. Return NULL if unknown. */ extern char *get_full_program_name (void); #endif #ifdef __cplusplus } #endif #endif /* _PROGNAME_H */ shishi-1.0.3/src/gl/progname.c0000644000000000000000000000615114273615075013053 00000000000000/* Program name management. Copyright (C) 2001-2003, 2005-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include /* Specification. */ #undef ENABLE_RELOCATABLE /* avoid defining set_program_name as a macro */ #include "progname.h" #include /* get program_invocation_name declaration */ #include #include #include /* String containing name the program is called with. To be initialized by main(). */ const char *program_name = NULL; /* Set program_name, based on argv[0]. argv0 must be a string allocated with indefinite extent, and must not be modified after this call. */ void set_program_name (const char *argv0) { /* libtool creates a temporary executable whose name is sometimes prefixed with "lt-" (depends on the platform). It also makes argv[0] absolute. But the name of the temporary executable is a detail that should not be visible to the end user and to the test suite. Remove this "/.libs/" or "/.libs/lt-" prefix here. */ const char *slash; const char *base; /* Sanity check. POSIX requires the invoking process to pass a non-NULL argv[0]. */ if (argv0 == NULL) { /* It's a bug in the invoking program. Help diagnosing it. */ fputs ("A NULL argv[0] was passed through an exec system call.\n", stderr); abort (); } slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) { argv0 = base; if (strncmp (base, "lt-", 3) == 0) { argv0 = base + 3; /* On glibc systems, remove the "lt-" prefix from the variable program_invocation_short_name. */ #if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME program_invocation_short_name = (char *) argv0; #endif } } /* But don't strip off a leading / in general, because when the user runs /some/hidden/place/bin/cp foo foo he should get the error message /some/hidden/place/bin/cp: `foo' and `foo' are the same file not cp: `foo' and `foo' are the same file */ program_name = argv0; /* On glibc systems, the error() function comes from libc and uses the variable program_invocation_name, not program_name. So set this variable as well. */ #if HAVE_DECL_PROGRAM_INVOCATION_NAME program_invocation_name = (char *) argv0; #endif } shishi-1.0.3/src/gl/stdio-read.c0000644000000000000000000001361414273615075013300 00000000000000/* POSIX compatible FILE stream read function. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2011. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Replace these functions only if module 'nonblocking' is requested. */ #if GNULIB_NONBLOCKING /* On native Windows platforms, when read() is called on a non-blocking pipe with an empty buffer, ReadFile() fails with error GetLastError() = ERROR_NO_DATA, and read() in consequence fails with error EINVAL. This read() function is at the basis of the function which fills the buffer of a FILE stream. */ # if defined _WIN32 && ! defined __CYGWIN__ # include # include # define WIN32_LEAN_AND_MEAN /* avoid including junk */ # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Don't assume that UNICODE is not defined. */ # undef GetNamedPipeHandleState # define GetNamedPipeHandleState GetNamedPipeHandleStateA # define CALL_WITH_ERRNO_FIX(RETTYPE, EXPRESSION, FAILED) \ if (ferror (stream)) \ return (EXPRESSION); \ else \ { \ RETTYPE ret; \ SetLastError (0); \ ret = (EXPRESSION); \ if (FAILED) \ { \ if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0) \ { \ HANDLE h = (HANDLE) _get_osfhandle (fd); \ if (GetFileType (h) == FILE_TYPE_PIPE) \ { \ /* h is a pipe or socket. */ \ DWORD state; \ if (GetNamedPipeHandleState (h, &state, NULL, NULL, \ NULL, NULL, 0) \ && (state & PIPE_NOWAIT) != 0) \ /* h is a pipe in non-blocking mode. \ Change errno from EINVAL to EAGAIN. */ \ errno = EAGAIN; \ } \ } \ } \ } \ return ret; \ } /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_SCANF int scanf (const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfscanf (stdin, format, args); va_end (args); return retval; } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_FSCANF int fscanf (FILE *stream, const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfscanf (stream, format, args); va_end (args); return retval; } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_VSCANF int vscanf (const char *format, va_list args) { return vfscanf (stdin, format, args); } # endif /* Enable this function definition only if gnulib's has prepared it. Otherwise we get a function definition conflict with mingw64's . */ # if GNULIB_VFSCANF int vfscanf (FILE *stream, const char *format, va_list args) #undef vfscanf { CALL_WITH_ERRNO_FIX (int, vfscanf (stream, format, args), ret == EOF) } # endif int getchar (void) { return fgetc (stdin); } int fgetc (FILE *stream) #undef fgetc { CALL_WITH_ERRNO_FIX (int, fgetc (stream), ret == EOF) } char * fgets (char *s, int n, FILE *stream) #undef fgets { CALL_WITH_ERRNO_FIX (char *, fgets (s, n, stream), ret == NULL) } /* We intentionally don't bother to fix gets. */ size_t fread (void *ptr, size_t s, size_t n, FILE *stream) #undef fread { CALL_WITH_ERRNO_FIX (size_t, fread (ptr, s, n, stream), ret < n) } # endif #endif shishi-1.0.3/src/gl/getopt.c0000644000000000000000000005711114273615074012546 00000000000000/* Getopt for GNU. Copyright (C) 1987-2022 Free Software Foundation, Inc. This file is part of the GNU C Library and is also part of gnulib. Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _LIBC # include #endif #include "getopt.h" #include #include #include #include #ifdef _LIBC /* When used as part of glibc, error printing must be done differently for standards compliance. getopt is not a cancellation point, so it must not call functions that are, and it is specified by an older standard than stdio locking, so it must not refer to functions in the "user namespace" related to stdio locking. Finally, it must use glibc's internal message translation so that the messages are looked up in the proper text domain. */ # include # define fprintf __fxprintf_nocancel # define flockfile(fp) _IO_flockfile (fp) # define funlockfile(fp) _IO_funlockfile (fp) #else # include "gettext.h" # define _(msgid) gettext (msgid) /* When used standalone, flockfile and funlockfile might not be available. */ # if (!defined _POSIX_THREAD_SAFE_FUNCTIONS \ || (defined _WIN32 && ! defined __CYGWIN__)) # define flockfile(fp) /* nop */ # define funlockfile(fp) /* nop */ # endif /* When used standalone, do not attempt to use alloca. */ # define __libc_use_alloca(size) 0 # undef alloca # define alloca(size) (abort (), (void *)0) #endif /* This implementation of 'getopt' has three modes for handling options interspersed with non-option arguments. It can stop scanning for options at the first non-option argument encountered, as POSIX specifies. It can continue scanning for options after the first non-option argument, but permute 'argv' as it goes so that, after 'getopt' is done, all the options precede all the non-option arguments and 'optind' points to the first non-option argument. Or, it can report non-option arguments as if they were arguments to the option character '\x01'. The default behavior of 'getopt_long' is to permute the argument list. When this implementation is used standalone, the default behavior of 'getopt' is to stop at the first non-option argument, but when it is used as part of GNU libc it also permutes the argument list. In both cases, setting the environment variable POSIXLY_CORRECT to any value disables permutation. If the first character of the OPTSTRING argument to 'getopt' or 'getopt_long' is '+', both functions will stop at the first non-option argument. If it is '-', both functions will report non-option arguments as arguments to the option character '\x01'. */ #include "getopt_int.h" /* For communication from 'getopt' to the caller. When 'getopt' finds an option that takes an argument, the argument value is returned here. Also, when 'ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to 'getopt'. On entry to 'getopt', zero means this is the first call; initialize. When 'getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, 'optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Keep a global copy of all internal members of getopt_data. */ static struct _getopt_data getopt_data; /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. 'first_nonopt' and 'last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ static void exchange (char **argv, struct _getopt_data *d) { int bottom = d->__first_nonopt; int middle = d->__last_nonopt; int top = d->optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ d->__first_nonopt += (d->optind - d->__last_nonopt); d->__last_nonopt = d->optind; } /* Process the argument starting with d->__nextchar as a long option. d->optind should *not* have been advanced over this argument. If the value returned is -1, it was not actually a long option, the state is unchanged, and the argument should be processed as a set of short options (this can only happen when long_only is true). Otherwise, the option (and its argument, if any) have been consumed and the return value is the value to return from _getopt_internal_r. */ static int process_long_option (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int print_errors, const char *prefix) { char *nameend; size_t namelen; const struct option *p; const struct option *pfound = NULL; int n_options; int option_index; for (nameend = d->__nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; namelen = nameend - d->__nextchar; /* First look for an exact match, counting the options as a side effect. */ for (p = longopts, n_options = 0; p->name; p++, n_options++) if (!strncmp (p->name, d->__nextchar, namelen) && namelen == strlen (p->name)) { /* Exact match found. */ pfound = p; option_index = n_options; break; } if (pfound == NULL) { /* Didn't find an exact match, so look for abbreviations. */ unsigned char *ambig_set = NULL; int ambig_malloced = 0; int ambig_fallback = 0; int indfound = -1; for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, d->__nextchar, namelen)) { if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else if (long_only || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) { /* Second or later nonexact match found. */ if (!ambig_fallback) { if (!print_errors) /* Don't waste effort tracking the ambig set if we're not going to print it anyway. */ ambig_fallback = 1; else if (!ambig_set) { if (__libc_use_alloca (n_options)) ambig_set = alloca (n_options); else if ((ambig_set = malloc (n_options)) == NULL) /* Fall back to simpler error message. */ ambig_fallback = 1; else ambig_malloced = 1; if (ambig_set) { memset (ambig_set, 0, n_options); ambig_set[indfound] = 1; } } if (ambig_set) ambig_set[option_index] = 1; } } } if (ambig_set || ambig_fallback) { if (print_errors) { if (ambig_fallback) fprintf (stderr, _("%s: option '%s%s' is ambiguous\n"), argv[0], prefix, d->__nextchar); else { flockfile (stderr); fprintf (stderr, _("%s: option '%s%s' is ambiguous; possibilities:"), argv[0], prefix, d->__nextchar); for (option_index = 0; option_index < n_options; option_index++) if (ambig_set[option_index]) fprintf (stderr, " '%s%s'", prefix, longopts[option_index].name); /* This must use 'fprintf' even though it's only printing a single character, so that it goes through __fxprintf_nocancel when compiled as part of glibc. */ fprintf (stderr, "\n"); funlockfile (stderr); } } if (ambig_malloced) free (ambig_set); d->__nextchar += strlen (d->__nextchar); d->optind++; d->optopt = 0; return '?'; } option_index = indfound; } if (pfound == NULL) { /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. */ if (!long_only || argv[d->optind][1] == '-' || strchr (optstring, *d->__nextchar) == NULL) { if (print_errors) fprintf (stderr, _("%s: unrecognized option '%s%s'\n"), argv[0], prefix, d->__nextchar); d->__nextchar = NULL; d->optind++; d->optopt = 0; return '?'; } /* Otherwise interpret it as a short option. */ return -1; } /* We have found a matching long option. Consume it. */ d->optind++; d->__nextchar = NULL; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) d->optarg = nameend + 1; else { if (print_errors) fprintf (stderr, _("%s: option '%s%s' doesn't allow an argument\n"), argv[0], prefix, pfound->name); d->optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (d->optind < argc) d->optarg = argv[d->optind++]; else { if (print_errors) fprintf (stderr, _("%s: option '%s%s' requires an argument\n"), argv[0], prefix, pfound->name); d->optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Initialize internal data upon the first call to getopt. */ static const char * _getopt_initialize (_GL_UNUSED int argc, _GL_UNUSED char **argv, const char *optstring, struct _getopt_data *d, int posixly_correct) { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ if (d->optind == 0) d->optind = 1; d->__first_nonopt = d->__last_nonopt = d->optind; d->__nextchar = NULL; /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { d->__ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { d->__ordering = REQUIRE_ORDER; ++optstring; } else if (posixly_correct || !!getenv ("POSIXLY_CORRECT")) d->__ordering = REQUIRE_ORDER; else d->__ordering = PERMUTE; d->__initialized = 1; return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If 'getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If 'getopt' finds another option character, it returns that character, updating 'optind' and 'nextchar' so that the next call to 'getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, 'getopt' returns -1. Then 'optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set 'opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in 'optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in 'optarg', otherwise 'optarg' is set to zero. If OPTSTRING starts with '-' or '+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with '--' instead of '-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a '=', or else the in next ARGV-element. When 'getopt' finds a long-named option, it returns 0 if that option's 'flag' field is nonzero, the value of the option's 'val' field if the 'flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of 'struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal_r (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int posixly_correct) { int print_errors = d->opterr; if (argc < 1) return -1; d->optarg = NULL; if (d->optind == 0 || !d->__initialized) optstring = _getopt_initialize (argc, argv, optstring, d, posixly_correct); else if (optstring[0] == '-' || optstring[0] == '+') optstring++; if (optstring[0] == ':') print_errors = 0; /* Test whether ARGV[optind] points to a non-option argument. */ #define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') if (d->__nextchar == NULL || *d->__nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (d->__last_nonopt > d->optind) d->__last_nonopt = d->optind; if (d->__first_nonopt > d->optind) d->__first_nonopt = d->optind; if (d->__ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange (argv, d); else if (d->__last_nonopt != d->optind) d->__first_nonopt = d->optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (d->optind < argc && NONOPTION_P) d->optind++; d->__last_nonopt = d->optind; } /* The special ARGV-element '--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (d->optind != argc && !strcmp (argv[d->optind], "--")) { d->optind++; if (d->__first_nonopt != d->__last_nonopt && d->__last_nonopt != d->optind) exchange (argv, d); else if (d->__first_nonopt == d->__last_nonopt) d->__first_nonopt = d->optind; d->__last_nonopt = argc; d->optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (d->optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (d->__first_nonopt != d->__last_nonopt) d->optind = d->__first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (d->__ordering == REQUIRE_ORDER) return -1; d->optarg = argv[d->optind++]; return 1; } /* We have found another option-ARGV-element. Check whether it might be a long option. */ if (longopts) { if (argv[d->optind][1] == '-') { /* "--foo" is always a long option. The special option "--" was handled above. */ d->__nextchar = argv[d->optind] + 2; return process_long_option (argc, argv, optstring, longopts, longind, long_only, d, print_errors, "--"); } /* If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (long_only && (argv[d->optind][2] || !strchr (optstring, argv[d->optind][1]))) { int code; d->__nextchar = argv[d->optind] + 1; code = process_long_option (argc, argv, optstring, longopts, longind, long_only, d, print_errors, "-"); if (code != -1) return code; } } /* It is not a long option. Skip the initial punctuation. */ d->__nextchar = argv[d->optind] + 1; } /* Look at and handle the next short option-character. */ { char c = *d->__nextchar++; const char *temp = strchr (optstring, c); /* Increment 'optind' when we start to process its last character. */ if (*d->__nextchar == '\0') ++d->optind; if (temp == NULL || c == ':' || c == ';') { if (print_errors) fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c); d->optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';' && longopts != NULL) { /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') d->optarg = d->__nextchar; else if (d->optind == argc) { if (print_errors) fprintf (stderr, _("%s: option requires an argument -- '%c'\n"), argv[0], c); d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else d->optarg = argv[d->optind]; d->__nextchar = d->optarg; d->optarg = NULL; return process_long_option (argc, argv, optstring, longopts, longind, 0 /* long_only */, d, print_errors, "-W "); } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; d->optind++; } else d->optarg = NULL; d->__nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*d->__nextchar != '\0') { d->optarg = d->__nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ d->optind++; } else if (d->optind == argc) { if (print_errors) fprintf (stderr, _("%s: option requires an argument -- '%c'\n"), argv[0], c); d->optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented 'optind' once; increment it again when taking next ARGV-elt as argument. */ d->optarg = argv[d->optind++]; d->__nextchar = NULL; } } return c; } } int _getopt_internal (int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct) { int result; getopt_data.optind = optind; getopt_data.opterr = opterr; result = _getopt_internal_r (argc, argv, optstring, longopts, longind, long_only, &getopt_data, posixly_correct); optind = getopt_data.optind; optarg = getopt_data.optarg; optopt = getopt_data.optopt; return result; } /* glibc gets a LSB-compliant getopt and a POSIX-complaint __posix_getopt. Standalone applications just get a POSIX-compliant getopt. POSIX and LSB both require these functions to take 'char *const *argv' even though this is incorrect (because of the permutation). */ #define GETOPT_ENTRY(NAME, POSIXLY_CORRECT) \ int \ NAME (int argc, char *const *argv, const char *optstring) \ { \ return _getopt_internal (argc, (char **)argv, optstring, \ 0, 0, 0, POSIXLY_CORRECT); \ } #ifdef _LIBC GETOPT_ENTRY(getopt, 0) GETOPT_ENTRY(__posix_getopt, 1) #else GETOPT_ENTRY(getopt, 1) #endif #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of 'getopt'. */ int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value '%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ shishi-1.0.3/src/gl/stat.c0000644000000000000000000003276514273615075012230 00000000000000/* Work around platform bugs in stat. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake and Bruno Haible. */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_stat doesn't recurse to rpl_stat. */ #define __need_system_sys_stat_h #include /* Get the original definition of stat. It might be defined as a macro. */ #include #include #undef __need_system_sys_stat_h #if defined _WIN32 && ! defined __CYGWIN__ # define WINDOWS_NATIVE #endif #if !defined WINDOWS_NATIVE static int orig_stat (const char *filename, struct stat *buf) { return stat (filename, buf); } #endif /* Specification. */ #ifdef __osf__ /* Write "sys/stat.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ # include "sys/stat.h" #else # include #endif #include "stat-time.h" #include #include #include #include #include "filename.h" #include "malloca.h" #include "verify.h" #ifdef WINDOWS_NATIVE # define WIN32_LEAN_AND_MEAN # include # include "stat-w32.h" /* Don't assume that UNICODE is not defined. */ # undef WIN32_FIND_DATA # define WIN32_FIND_DATA WIN32_FIND_DATAA # undef CreateFile # define CreateFile CreateFileA # undef FindFirstFile # define FindFirstFile FindFirstFileA #endif #ifdef WINDOWS_NATIVE /* Return TRUE if the given file name denotes an UNC root. */ static BOOL is_unc_root (const char *rname) { /* Test whether it has the syntax '\\server\share'. */ if (ISSLASH (rname[0]) && ISSLASH (rname[1])) { /* It starts with two slashes. Find the next slash. */ const char *p = rname + 2; const char *q = p; while (*q != '\0' && !ISSLASH (*q)) q++; if (q > p && *q != '\0') { /* Found the next slash at q. */ q++; const char *r = q; while (*r != '\0' && !ISSLASH (*r)) r++; if (r > q && *r == '\0') return TRUE; } } return FALSE; } #endif /* Store information about NAME into ST. Work around bugs with trailing slashes. Mingw has other bugs (such as st_ino always being 0 on success) which this wrapper does not work around. But at least this implementation provides the ability to emulate fchdir correctly. */ int rpl_stat (char const *name, struct stat *buf) { #ifdef WINDOWS_NATIVE /* Fill the fields ourselves, because the original stat function returns values for st_atime, st_mtime, st_ctime that depend on the current time zone. See */ /* XXX Should we convert to wchar_t* and prepend '\\?\', in order to work around length limitations ? */ /* POSIX specifies: "More than two leading characters shall be treated as a single character." */ if (ISSLASH (name[0]) && ISSLASH (name[1]) && ISSLASH (name[2])) { name += 2; while (ISSLASH (name[1])) name++; } size_t len = strlen (name); size_t drive_prefix_len = (HAS_DEVICE (name) ? 2 : 0); /* Remove trailing slashes (except the very first one, at position drive_prefix_len), but remember their presence. */ size_t rlen; bool check_dir = false; rlen = len; while (rlen > drive_prefix_len && ISSLASH (name[rlen-1])) { check_dir = true; if (rlen == drive_prefix_len + 1) break; rlen--; } /* Handle '' and 'C:'. */ if (!check_dir && rlen == drive_prefix_len) { errno = ENOENT; return -1; } /* Handle '\\'. */ if (rlen == 1 && ISSLASH (name[0]) && len >= 2) { errno = ENOENT; return -1; } const char *rname; char *malloca_rname; if (rlen == len) { rname = name; malloca_rname = NULL; } else { malloca_rname = malloca (rlen + 1); if (malloca_rname == NULL) { errno = ENOMEM; return -1; } memcpy (malloca_rname, name, rlen); malloca_rname[rlen] = '\0'; rname = malloca_rname; } /* There are two ways to get at the requested information: - by scanning the parent directory and examining the relevant directory entry, - by opening the file directly. The first approach fails for root directories (e.g. 'C:\') and UNC root directories (e.g. '\\server\share'). The second approach fails for some system files (e.g. 'C:\pagefile.sys' and 'C:\hiberfil.sys'): ERROR_SHARING_VIOLATION. The second approach gives more information (in particular, correct st_dev, st_ino, st_nlink fields). So we use the second approach and, as a fallback except for root and UNC root directories, also the first approach. */ { int ret; { /* Approach based on the file. */ /* Open a handle to the file. CreateFile */ HANDLE h = CreateFile (rname, FILE_READ_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, /* FILE_FLAG_POSIX_SEMANTICS (treat file names that differ only in case as different) makes sense only when applied to *all* filesystem operations. */ FILE_FLAG_BACKUP_SEMANTICS /* | FILE_FLAG_POSIX_SEMANTICS */, NULL); if (h != INVALID_HANDLE_VALUE) { ret = _gl_fstat_by_handle (h, rname, buf); CloseHandle (h); goto done; } } /* Test for root and UNC root directories. */ if ((rlen == drive_prefix_len + 1 && ISSLASH (rname[drive_prefix_len])) || is_unc_root (rname)) goto failed; /* Fallback. */ { /* Approach based on the directory entry. */ if (strchr (rname, '?') != NULL || strchr (rname, '*') != NULL) { /* Other Windows API functions would fail with error ERROR_INVALID_NAME. */ if (malloca_rname != NULL) freea (malloca_rname); errno = ENOENT; return -1; } /* Get the details about the directory entry. This can be done through FindFirstFile or through FindFirstFileEx with argument FindExInfoBasic */ WIN32_FIND_DATA info; HANDLE h = FindFirstFile (rname, &info); if (h == INVALID_HANDLE_VALUE) goto failed; /* Test for error conditions before starting to fill *buf. */ if (sizeof (buf->st_size) <= 4 && info.nFileSizeHigh > 0) { FindClose (h); if (malloca_rname != NULL) freea (malloca_rname); errno = EOVERFLOW; return -1; } # if _GL_WINDOWS_STAT_INODES buf->st_dev = 0; # if _GL_WINDOWS_STAT_INODES == 2 buf->st_ino._gl_ino[0] = buf->st_ino._gl_ino[1] = 0; # else /* _GL_WINDOWS_STAT_INODES == 1 */ buf->st_ino = 0; # endif # else /* st_ino is not wide enough for identifying a file on a device. Without st_ino, st_dev is pointless. */ buf->st_dev = 0; buf->st_ino = 0; # endif /* st_mode. */ unsigned int mode = /* XXX How to handle FILE_ATTRIBUTE_REPARSE_POINT ? */ ((info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? _S_IFDIR | S_IEXEC_UGO : _S_IFREG) | S_IREAD_UGO | ((info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? 0 : S_IWRITE_UGO); if (!(info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { /* Determine whether the file is executable by looking at the file name suffix. */ if (info.nFileSizeHigh > 0 || info.nFileSizeLow > 0) { const char *last_dot = NULL; const char *p; for (p = info.cFileName; *p != '\0'; p++) if (*p == '.') last_dot = p; if (last_dot != NULL) { const char *suffix = last_dot + 1; if (_stricmp (suffix, "exe") == 0 || _stricmp (suffix, "bat") == 0 || _stricmp (suffix, "cmd") == 0 || _stricmp (suffix, "com") == 0) mode |= S_IEXEC_UGO; } } } buf->st_mode = mode; /* st_nlink. Ignore hard links here. */ buf->st_nlink = 1; /* There's no easy way to map the Windows SID concept to an integer. */ buf->st_uid = 0; buf->st_gid = 0; /* st_rdev is irrelevant for normal files and directories. */ buf->st_rdev = 0; /* st_size. */ if (sizeof (buf->st_size) <= 4) /* Range check already done above. */ buf->st_size = info.nFileSizeLow; else buf->st_size = ((long long) info.nFileSizeHigh << 32) | (long long) info.nFileSizeLow; /* st_atime, st_mtime, st_ctime. */ # if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim = _gl_convert_FILETIME_to_timespec (&info.ftLastAccessTime); buf->st_mtim = _gl_convert_FILETIME_to_timespec (&info.ftLastWriteTime); buf->st_ctim = _gl_convert_FILETIME_to_timespec (&info.ftCreationTime); # else buf->st_atime = _gl_convert_FILETIME_to_POSIX (&info.ftLastAccessTime); buf->st_mtime = _gl_convert_FILETIME_to_POSIX (&info.ftLastWriteTime); buf->st_ctime = _gl_convert_FILETIME_to_POSIX (&info.ftCreationTime); # endif FindClose (h); ret = 0; } done: if (ret >= 0 && check_dir && !S_ISDIR (buf->st_mode)) { errno = ENOTDIR; ret = -1; } if (malloca_rname != NULL) { int saved_errno = errno; freea (malloca_rname); errno = saved_errno; } return ret; } failed: { DWORD error = GetLastError (); #if 0 fprintf (stderr, "rpl_stat error 0x%x\n", (unsigned int) error); #endif if (malloca_rname != NULL) freea (malloca_rname); switch (error) { /* Some of these errors probably cannot happen with the specific flags that we pass to CreateFile. But who knows... */ case ERROR_FILE_NOT_FOUND: /* The last component of rname does not exist. */ case ERROR_PATH_NOT_FOUND: /* Some directory component in rname does not exist. */ case ERROR_BAD_PATHNAME: /* rname is such as '\\server'. */ case ERROR_BAD_NET_NAME: /* rname is such as '\\server\nonexistentshare'. */ case ERROR_INVALID_NAME: /* rname contains wildcards, misplaced colon, etc. */ case ERROR_DIRECTORY: errno = ENOENT; break; case ERROR_ACCESS_DENIED: /* rname is such as 'C:\System Volume Information\foo'. */ case ERROR_SHARING_VIOLATION: /* rname is such as 'C:\pagefile.sys' (second approach only). */ /* XXX map to EACCES or EPERM? */ errno = EACCES; break; case ERROR_OUTOFMEMORY: errno = ENOMEM; break; case ERROR_WRITE_PROTECT: errno = EROFS; break; case ERROR_WRITE_FAULT: case ERROR_READ_FAULT: case ERROR_GEN_FAILURE: errno = EIO; break; case ERROR_BUFFER_OVERFLOW: case ERROR_FILENAME_EXCED_RANGE: errno = ENAMETOOLONG; break; case ERROR_DELETE_PENDING: /* XXX map to EACCES or EPERM? */ errno = EPERM; break; default: errno = EINVAL; break; } return -1; } #else int result = orig_stat (name, buf); if (result == 0) { # if REPLACE_FUNC_STAT_FILE /* Solaris 9 mistakenly succeeds when given a non-directory with a trailing slash. */ if (!S_ISDIR (buf->st_mode)) { size_t len = strlen (name); if (ISSLASH (name[len - 1])) { errno = ENOTDIR; return -1; } } # endif /* REPLACE_FUNC_STAT_FILE */ result = stat_time_normalize (result, buf); } return result; #endif } shishi-1.0.3/src/gl/stdio.in.h0000644000000000000000000017227214273615075013007 00000000000000/* A GNU-like . Copyright (C) 2004, 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H /* Special invocation convention: - Inside glibc header files. - On OSF/1 5.1 we have a sequence of nested includes -> -> -> -> -> -> -> . In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STDIO_H #define _GL_ALREADY_INCLUDING_STDIO_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ #undef _GL_ALREADY_INCLUDING_STDIO_H #ifndef _@GUARD_PREFIX@_STDIO_H #define _@GUARD_PREFIX@_STDIO_H /* Get va_list. Needed on many systems, including glibc 2.8. */ #include #include /* Get off_t and ssize_t. Needed on many systems, including glibc 2.8 and eglibc 2.11.2. May also define off_t to a 64-bit type on native Windows. */ #include /* Solaris 10 and NetBSD 7.0 declare renameat in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || defined __NetBSD__) \ && ! defined __GLIBC__ # include #endif /* Android 4.3 declares renameat in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ && ! defined __GLIBC__ # include #endif /* MSVC declares 'perror' in , not in . We must include it before we #define perror rpl_perror. */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) \ && ! defined __GLIBC__ # include #endif /* MSVC declares 'remove' in , not in . We must include it before we #define remove rpl_remove. */ /* MSVC declares 'rename' in , not in . We must include it before we #define rename rpl_rename. */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__) \ && ! defined __GLIBC__ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The __-protected variants of the attributes 'format' and 'printf' are accepted by gcc versions 2.6.4 (effectively 2.7) and later. We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because gnulib and libintl do '#define printf __printf__' when they override the 'printf' function. */ #ifndef _GL_ATTRIBUTE_FORMAT # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || defined __clang__ # define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec)) # else # define _GL_ATTRIBUTE_FORMAT(spec) /* empty */ # endif #endif /* An __attribute__ __format__ specifier for a function that takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD */ /* __gnu_printf__ is supported in GCC >= 4.4. */ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) # define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __gnu_printf__ #else # define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __printf__ #endif /* An __attribute__ __format__ specifier for a function that takes a format string and arguments, where the format string directives are the ones of the system printf(), rather than the ones standardized by ISO C99 and POSIX. _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM */ /* On mingw, Gnulib sets __USE_MINGW_ANSI_STDIO in order to get closer to the standards. The macro GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU indicates whether this change is effective. On older mingw, it is not. */ #if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU # define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD #else # define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM __printf__ #endif /* _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD indicates to GCC that the function takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, formatstring_parameter, first_argument)) /* _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD, except that it indicates to GCC that the supported format string directives are the ones of the system printf(), rather than the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, formatstring_parameter, first_argument)) /* _GL_ATTRIBUTE_FORMAT_SCANF indicates to GCC that the function takes a format string and arguments, where the format string directives are the ones standardized by ISO C99 and POSIX. */ #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__gnu_scanf__, formatstring_parameter, first_argument)) #else # define _GL_ATTRIBUTE_FORMAT_SCANF(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) #endif /* _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_SCANF, except that it indicates to GCC that the supported format string directives are the ones of the system scanf(), rather than the ones standardized by ISO C99 and POSIX. */ #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument) \ _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument)) /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Macros for stringification. */ #define _GL_STDIO_STRINGIZE(token) #token #define _GL_STDIO_MACROEXPAND_AND_STRINGIZE(token) _GL_STDIO_STRINGIZE(token) /* When also using extern inline, suppress the use of static inline in standard headers of problematic Apple configurations, as Libc at least through Libc-825.26 (2013-04-09) mishandles it; see, e.g., . Perhaps Apple will fix this some day. */ #if (defined _GL_EXTERN_INLINE_IN_USE && defined __APPLE__ \ && defined __GNUC__ && defined __STDC__) # undef putc_unlocked #endif #if @GNULIB_DPRINTF@ # if @REPLACE_DPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dprintf rpl_dprintf # endif _GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *restrict format, ...)); # else # if !@HAVE_DPRINTF@ _GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...)); # endif _GL_CXXALIASWARN (dprintf); #elif defined GNULIB_POSIXCHECK # undef dprintf # if HAVE_RAW_DECL_DPRINTF _GL_WARN_ON_USE (dprintf, "dprintf is unportable - " "use gnulib module dprintf for portability"); # endif #endif #if @GNULIB_FCLOSE@ /* Close STREAM and its underlying file descriptor. */ # if @REPLACE_FCLOSE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fclose rpl_fclose # endif _GL_FUNCDECL_RPL (fclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fclose, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (fclose, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fclose); # endif #elif defined GNULIB_POSIXCHECK # undef fclose /* Assume fclose is always declared. */ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - " "use gnulib module fclose for portable POSIX compliance"); #endif #if @GNULIB_MDA_FCLOSEALL@ /* On native Windows, map 'fcloseall' to '_fcloseall', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fcloseall on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcloseall # define fcloseall _fcloseall # endif _GL_CXXALIAS_MDA (fcloseall, int, (void)); # else # if @HAVE_DECL_FCLOSEALL@ # if defined __FreeBSD__ || defined __DragonFly__ _GL_CXXALIAS_SYS (fcloseall, void, (void)); # else _GL_CXXALIAS_SYS (fcloseall, int, (void)); # endif # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCLOSEALL@ _GL_CXXALIASWARN (fcloseall); # endif #endif #if @GNULIB_FDOPEN@ # if @REPLACE_FDOPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen rpl_fdopen # endif _GL_FUNCDECL_RPL (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen _fdopen # endif _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); # endif _GL_CXXALIASWARN (fdopen); #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fdopen /* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fdopen, FILE *, (int fd, const char *mode) _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef fdopen /* Assume fdopen is always declared. */ _GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - " "use gnulib module fdopen for portability"); # elif @GNULIB_MDA_FDOPEN@ /* On native Windows, map 'fdopen' to '_fdopen', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fdopen always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fdopen # define fdopen _fdopen # endif _GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode)); # else _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode)); # endif _GL_CXXALIASWARN (fdopen); # endif #endif #if @GNULIB_FFLUSH@ /* Flush all pending data on STREAM according to POSIX rules. Both output and seekable input streams are supported. Note! LOSS OF DATA can occur if fflush is applied on an input stream that is _not_seekable_ or on an update stream that is _not_seekable_ and in which the most recent operation was input. Seekability can be tested with lseek(fileno(fp),0,SEEK_CUR). */ # if @REPLACE_FFLUSH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fflush rpl_fflush # endif _GL_FUNCDECL_RPL (fflush, int, (FILE *gl_stream)); _GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream)); # else _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fflush); # endif #elif defined GNULIB_POSIXCHECK # undef fflush /* Assume fflush is always declared. */ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - " "use gnulib module fflush for portable POSIX compliance"); #endif #if @GNULIB_FGETC@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fgetc # define fgetc rpl_fgetc # endif _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fgetc); # endif #endif #if @GNULIB_FGETS@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fgets # define fgets rpl_fgets # endif _GL_FUNCDECL_RPL (fgets, char *, (char *restrict s, int n, FILE *restrict stream) _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (fgets, char *, (char *restrict s, int n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fgets, char *, (char *restrict s, int n, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fgets); # endif #endif #if @GNULIB_MDA_FILENO@ /* On native Windows, map 'fileno' to '_fileno', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fileno always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fileno # define fileno _fileno # endif _GL_CXXALIAS_MDA (fileno, int, (FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fileno, int, (FILE *restrict stream)); # endif _GL_CXXALIASWARN (fileno); #endif #if @GNULIB_FOPEN@ # if (@GNULIB_FOPEN@ && @REPLACE_FOPEN@) \ || (@GNULIB_FOPEN_GNU@ && @REPLACE_FOPEN_FOR_FOPEN_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fopen # define fopen rpl_fopen # endif _GL_FUNCDECL_RPL (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (fopen, FILE *, (const char *restrict filename, const char *restrict mode)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fopen); # endif #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fopen /* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (fopen, FILE *, (const char *restrict filename, const char *restrict mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef fopen /* Assume fopen is always declared. */ _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " "use gnulib module fopen for portability"); # endif #endif #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@ # if (@GNULIB_FPRINTF_POSIX@ && @REPLACE_FPRINTF@) \ || (@GNULIB_FPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fprintf rpl_fprintf # endif # define GNULIB_overrides_fprintf 1 # if @GNULIB_FPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # else _GL_FUNCDECL_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_RPL (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (fprintf, int, (FILE *restrict fp, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fprintf); # endif #endif #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_fprintf # undef fprintf # endif /* Assume fprintf is always declared. */ _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " "use gnulib module fprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_FPURGE@ /* Discard all pending buffered I/O data on STREAM. STREAM must not be wide-character oriented. When discarding pending output, the file position is set back to where it was before the write calls. When discarding pending input, the file position is advanced to match the end of the previously read input. Return 0 if successful. Upon error, return -1 and set errno. */ # if @REPLACE_FPURGE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define fpurge rpl_fpurge # endif _GL_FUNCDECL_RPL (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fpurge, int, (FILE *gl_stream)); # else # if !@HAVE_DECL_FPURGE@ _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); # endif _GL_CXXALIASWARN (fpurge); #elif defined GNULIB_POSIXCHECK # undef fpurge # if HAVE_RAW_DECL_FPURGE _GL_WARN_ON_USE (fpurge, "fpurge is not always present - " "use gnulib module fpurge for portability"); # endif #endif #if @GNULIB_FPUTC@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fputc # define fputc rpl_fputc # endif _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream)); # else _GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fputc); # endif #endif #if @GNULIB_FPUTS@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fputs # define fputs rpl_fputs # endif _GL_FUNCDECL_RPL (fputs, int, (const char *restrict string, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (fputs, int, (const char *restrict string, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fputs, int, (const char *restrict string, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fputs); # endif #endif #if @GNULIB_FREAD@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fread # define fread rpl_fread # endif _GL_FUNCDECL_RPL (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream) _GL_ARG_NONNULL ((4))); _GL_CXXALIAS_RPL (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fread, size_t, (void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fread); # endif #endif #if @GNULIB_FREOPEN@ # if @REPLACE_FREOPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef freopen # define freopen rpl_freopen # endif _GL_FUNCDECL_RPL (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (freopen, FILE *, (const char *restrict filename, const char *restrict mode, FILE *restrict stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (freopen); # endif #elif defined GNULIB_POSIXCHECK # undef freopen /* Assume freopen is always declared. */ _GL_WARN_ON_USE (freopen, "freopen on native Windows platforms is not POSIX compliant - " "use gnulib module freopen for portability"); #endif #if @GNULIB_FSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fscanf # define fscanf rpl_fscanf # endif _GL_FUNCDECL_RPL (fscanf, int, (FILE *restrict stream, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (fscanf, int, (FILE *restrict stream, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (fscanf, int, (FILE *restrict stream, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fscanf); # endif #endif /* Set up the following warnings, based on which modules are in use. GNU Coding Standards discourage the use of fseek, since it imposes an arbitrary limitation on some 32-bit hosts. Remember that the fseek module depends on the fseeko module, so we only have three cases to consider: 1. The developer is not using either module. Issue a warning under GNULIB_POSIXCHECK for both functions, to remind them that both functions have bugs on some systems. _GL_NO_LARGE_FILES has no impact on this warning. 2. The developer is using both modules. They may be unaware of the arbitrary limitations of fseek, so issue a warning under GNULIB_POSIXCHECK. On the other hand, they may be using both modules intentionally, so the developer can define _GL_NO_LARGE_FILES in the compilation units where the use of fseek is safe, to silence the warning. 3. The developer is using the fseeko module, but not fseek. Gnulib guarantees that fseek will still work around platform bugs in that case, but we presume that the developer is aware of the pitfalls of fseek and was trying to avoid it, so issue a warning even when GNULIB_POSIXCHECK is undefined. Again, _GL_NO_LARGE_FILES can be defined to silence the warning in particular compilation units. In C++ compilations with GNULIB_NAMESPACE, in order to avoid that fseek gets defined as a macro, it is recommended that the developer uses the fseek module, even if he is not calling the fseek function. Most gnulib clients that perform stream operations should fall into category 3. */ #if @GNULIB_FSEEK@ # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES # define _GL_FSEEK_WARN /* Category 2, above. */ # undef fseek # endif # if @REPLACE_FSEEK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fseek # define fseek rpl_fseek # endif _GL_FUNCDECL_RPL (fseek, int, (FILE *fp, long offset, int whence) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence)); # else _GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fseek); # endif #endif #if @GNULIB_FSEEKO@ # if !@GNULIB_FSEEK@ && !defined _GL_NO_LARGE_FILES # define _GL_FSEEK_WARN /* Category 3, above. */ # undef fseek # endif # if @REPLACE_FSEEKO@ /* Provide an fseeko function that is aware of a preceding fflush(), and which detects pipes. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fseeko # define fseeko rpl_fseeko # endif _GL_FUNCDECL_RPL (fseeko, int, (FILE *fp, off_t offset, int whence) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (fseeko, int, (FILE *fp, off_t offset, int whence)); # else # if ! @HAVE_DECL_FSEEKO@ _GL_FUNCDECL_SYS (fseeko, int, (FILE *fp, off_t offset, int whence) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (fseeko, int, (FILE *fp, off_t offset, int whence)); # endif _GL_CXXALIASWARN (fseeko); #elif defined GNULIB_POSIXCHECK # define _GL_FSEEK_WARN /* Category 1, above. */ # undef fseek # undef fseeko # if HAVE_RAW_DECL_FSEEKO _GL_WARN_ON_USE (fseeko, "fseeko is unportable - " "use gnulib module fseeko for portability"); # endif #endif #ifdef _GL_FSEEK_WARN # undef _GL_FSEEK_WARN /* Here, either fseek is undefined (but C89 guarantees that it is declared), or it is defined as rpl_fseek (declared above). */ _GL_WARN_ON_USE (fseek, "fseek cannot handle files larger than 4 GB " "on 32-bit platforms - " "use fseeko function for handling of large files"); #endif /* ftell, ftello. See the comments on fseek/fseeko. */ #if @GNULIB_FTELL@ # if defined GNULIB_POSIXCHECK && !defined _GL_NO_LARGE_FILES # define _GL_FTELL_WARN /* Category 2, above. */ # undef ftell # endif # if @REPLACE_FTELL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftell # define ftell rpl_ftell # endif _GL_FUNCDECL_RPL (ftell, long, (FILE *fp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ftell, long, (FILE *fp)); # else _GL_CXXALIAS_SYS (ftell, long, (FILE *fp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (ftell); # endif #endif #if @GNULIB_FTELLO@ # if !@GNULIB_FTELL@ && !defined _GL_NO_LARGE_FILES # define _GL_FTELL_WARN /* Category 3, above. */ # undef ftell # endif # if @REPLACE_FTELLO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftello # define ftello rpl_ftello # endif _GL_FUNCDECL_RPL (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ftello, off_t, (FILE *fp)); # else # if ! @HAVE_DECL_FTELLO@ _GL_FUNCDECL_SYS (ftello, off_t, (FILE *fp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (ftello, off_t, (FILE *fp)); # endif _GL_CXXALIASWARN (ftello); #elif defined GNULIB_POSIXCHECK # define _GL_FTELL_WARN /* Category 1, above. */ # undef ftell # undef ftello # if HAVE_RAW_DECL_FTELLO _GL_WARN_ON_USE (ftello, "ftello is unportable - " "use gnulib module ftello for portability"); # endif #endif #ifdef _GL_FTELL_WARN # undef _GL_FTELL_WARN /* Here, either ftell is undefined (but C89 guarantees that it is declared), or it is defined as rpl_ftell (declared above). */ _GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB " "on 32-bit platforms - " "use ftello function for handling of large files"); #endif #if @GNULIB_FWRITE@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fwrite # define fwrite rpl_fwrite # endif _GL_FUNCDECL_RPL (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream) _GL_ARG_NONNULL ((1, 4))); _GL_CXXALIAS_RPL (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (fwrite, size_t, (const void *restrict ptr, size_t s, size_t n, FILE *restrict stream)); /* Work around bug 11959 when fortifying glibc 2.4 through 2.15 , which sometimes causes an unwanted diagnostic for fwrite calls. This affects only function declaration attributes under certain versions of gcc and clang, and is not needed for C++. */ # if (0 < __USE_FORTIFY_LEVEL \ && __GLIBC__ == 2 && 4 <= __GLIBC_MINOR__ && __GLIBC_MINOR__ <= 15 \ && 3 < __GNUC__ + (4 <= __GNUC_MINOR__) \ && !defined __cplusplus) # undef fwrite # undef fwrite_unlocked extern size_t __REDIRECT (rpl_fwrite, (const void *__restrict, size_t, size_t, FILE *__restrict), fwrite); extern size_t __REDIRECT (rpl_fwrite_unlocked, (const void *__restrict, size_t, size_t, FILE *__restrict), fwrite_unlocked); # define fwrite rpl_fwrite # define fwrite_unlocked rpl_fwrite_unlocked # endif # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fwrite); # endif #endif #if @GNULIB_GETC@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getc # define getc rpl_fgetc # endif _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); # else _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (getc); # endif #endif #if @GNULIB_GETCHAR@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getchar # define getchar rpl_getchar # endif _GL_FUNCDECL_RPL (getchar, int, (void)); _GL_CXXALIAS_RPL (getchar, int, (void)); # else _GL_CXXALIAS_SYS (getchar, int, (void)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (getchar); # endif #endif #if @GNULIB_GETDELIM@ /* Read input, up to (and including) the next occurrence of DELIMITER, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ # if @REPLACE_GETDELIM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdelim # define getdelim rpl_getdelim # endif _GL_FUNCDECL_RPL (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 4))); _GL_CXXALIAS_RPL (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream)); # else # if !@HAVE_DECL_GETDELIM@ _GL_FUNCDECL_SYS (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 4))); # endif _GL_CXXALIAS_SYS (getdelim, ssize_t, (char **restrict lineptr, size_t *restrict linesize, int delimiter, FILE *restrict stream)); # endif _GL_CXXALIASWARN (getdelim); #elif defined GNULIB_POSIXCHECK # undef getdelim # if HAVE_RAW_DECL_GETDELIM _GL_WARN_ON_USE (getdelim, "getdelim is unportable - " "use gnulib module getdelim for portability"); # endif #endif #if @GNULIB_GETLINE@ /* Read a line, up to (and including) the next newline, from STREAM, store it in *LINEPTR (and NUL-terminate it). *LINEPTR is a pointer returned from malloc (or NULL), pointing to *LINESIZE bytes of space. It is realloc'd as necessary. Return the number of bytes read and stored at *LINEPTR (not including the NUL terminator), or -1 on error or EOF. */ # if @REPLACE_GETLINE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getline # define getline rpl_getline # endif _GL_FUNCDECL_RPL (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 3))); _GL_CXXALIAS_RPL (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream)); # else # if !@HAVE_DECL_GETLINE@ _GL_FUNCDECL_SYS (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (getline, ssize_t, (char **restrict lineptr, size_t *restrict linesize, FILE *restrict stream)); # endif # if @HAVE_DECL_GETLINE@ _GL_CXXALIASWARN (getline); # endif #elif defined GNULIB_POSIXCHECK # undef getline # if HAVE_RAW_DECL_GETLINE _GL_WARN_ON_USE (getline, "getline is unportable - " "use gnulib module getline for portability"); # endif #endif /* It is very rare that the developer ever has full control of stdin, so any use of gets warrants an unconditional warning; besides, C11 removed it. */ #undef gets #if HAVE_RAW_DECL_GETS && !defined __cplusplus _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); #endif #if @GNULIB_MDA_GETW@ /* On native Windows, map 'getw' to '_getw', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getw always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getw # define getw _getw # endif _GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream)); # else _GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream)); # endif _GL_CXXALIASWARN (getw); #endif #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ struct obstack; /* Grow an obstack with formatted output. Return the number of bytes added to OBS. No trailing nul byte is added, and the object should be closed with obstack_finish before use. Upon memory allocation error, call obstack_alloc_failed_handler. Upon other error, return -1. */ # if @REPLACE_OBSTACK_PRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define obstack_printf rpl_obstack_printf # endif _GL_FUNCDECL_RPL (obstack_printf, int, (struct obstack *obs, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (obstack_printf, int, (struct obstack *obs, const char *format, ...)); # else # if !@HAVE_DECL_OBSTACK_PRINTF@ _GL_FUNCDECL_SYS (obstack_printf, int, (struct obstack *obs, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (obstack_printf, int, (struct obstack *obs, const char *format, ...)); # endif _GL_CXXALIASWARN (obstack_printf); # if @REPLACE_OBSTACK_PRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define obstack_vprintf rpl_obstack_vprintf # endif _GL_FUNCDECL_RPL (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args)); # else # if !@HAVE_DECL_OBSTACK_PRINTF@ _GL_FUNCDECL_SYS (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (obstack_vprintf, int, (struct obstack *obs, const char *format, va_list args)); # endif _GL_CXXALIASWARN (obstack_vprintf); #endif #if @GNULIB_PCLOSE@ # if !@HAVE_PCLOSE@ _GL_FUNCDECL_SYS (pclose, int, (FILE *stream) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (pclose, int, (FILE *stream)); _GL_CXXALIASWARN (pclose); #elif defined GNULIB_POSIXCHECK # undef pclose # if HAVE_RAW_DECL_PCLOSE _GL_WARN_ON_USE (pclose, "pclose is unportable - " "use gnulib module pclose for more portability"); # endif #endif #if @GNULIB_PERROR@ /* Print a message to standard error, describing the value of ERRNO, (if STRING is not NULL and not empty) prefixed with STRING and ": ", and terminated with a newline. */ # if @REPLACE_PERROR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define perror rpl_perror # endif _GL_FUNCDECL_RPL (perror, void, (const char *string)); _GL_CXXALIAS_RPL (perror, void, (const char *string)); # else _GL_CXXALIAS_SYS (perror, void, (const char *string)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (perror); # endif #elif defined GNULIB_POSIXCHECK # undef perror /* Assume perror is always declared. */ _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - " "use gnulib module perror for portability"); #endif #if @GNULIB_POPEN@ # if @REPLACE_POPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef popen # define popen rpl_popen # endif _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); # else # if !@HAVE_POPEN@ || __GNUC__ >= 11 _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); # endif _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); # endif _GL_CXXALIASWARN (popen); #else # if @GNULIB_PCLOSE@ && __GNUC__ >= 11 && !defined popen /* For -Wmismatched-dealloc: Associate popen with pclose or rpl_pclose. */ _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef popen # if HAVE_RAW_DECL_POPEN _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " "use gnulib module popen or pipe for more portability"); # endif # endif #endif #if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@ # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \ || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if defined __GNUC__ || defined __clang__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) /* Don't break __attribute__((format(printf,M,N))). */ # define printf __printf__ # endif # if @GNULIB_PRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL_1 (__printf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2) _GL_ARG_NONNULL ((1))); # else _GL_FUNCDECL_RPL_1 (__printf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf)) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); # else # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define printf rpl_printf # endif _GL_FUNCDECL_RPL (printf, int, (const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (printf, int, (const char *restrict format, ...)); # endif # define GNULIB_overrides_printf 1 # else _GL_CXXALIAS_SYS (printf, int, (const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (printf); # endif #endif #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_printf # undef printf # endif /* Assume printf is always declared. */ _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " "use gnulib module printf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_PUTC@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putc # define putc rpl_fputc # endif _GL_FUNCDECL_RPL (fputc, int, (int c, FILE *stream) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream)); # else _GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (putc); # endif #endif #if @GNULIB_PUTCHAR@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putchar # define putchar rpl_putchar # endif _GL_FUNCDECL_RPL (putchar, int, (int c)); _GL_CXXALIAS_RPL (putchar, int, (int c)); # else _GL_CXXALIAS_SYS (putchar, int, (int c)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (putchar); # endif #endif #if @GNULIB_PUTS@ # if @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef puts # define puts rpl_puts # endif _GL_FUNCDECL_RPL (puts, int, (const char *string) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (puts, int, (const char *string)); # else _GL_CXXALIAS_SYS (puts, int, (const char *string)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (puts); # endif #endif #if @GNULIB_MDA_PUTW@ /* On native Windows, map 'putw' to '_putw', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::putw always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putw # define putw _putw # endif _GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream)); # else _GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream)); # endif _GL_CXXALIASWARN (putw); #endif #if @GNULIB_REMOVE@ # if @REPLACE_REMOVE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef remove # define remove rpl_remove # endif _GL_FUNCDECL_RPL (remove, int, (const char *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (remove, int, (const char *name)); # else _GL_CXXALIAS_SYS (remove, int, (const char *name)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (remove); # endif #elif defined GNULIB_POSIXCHECK # undef remove /* Assume remove is always declared. */ _GL_WARN_ON_USE (remove, "remove cannot handle directories on some platforms - " "use gnulib module remove for more portability"); #endif #if @GNULIB_RENAME@ # if @REPLACE_RENAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rename # define rename rpl_rename # endif _GL_FUNCDECL_RPL (rename, int, (const char *old_filename, const char *new_filename) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (rename, int, (const char *old_filename, const char *new_filename)); # else _GL_CXXALIAS_SYS (rename, int, (const char *old_filename, const char *new_filename)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (rename); # endif #elif defined GNULIB_POSIXCHECK # undef rename /* Assume rename is always declared. */ _GL_WARN_ON_USE (rename, "rename is buggy on some platforms - " "use gnulib module rename for more portability"); #endif #if @GNULIB_RENAMEAT@ # if @REPLACE_RENAMEAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef renameat # define renameat rpl_renameat # endif _GL_FUNCDECL_RPL (renameat, int, (int fd1, char const *file1, int fd2, char const *file2) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (renameat, int, (int fd1, char const *file1, int fd2, char const *file2)); # else # if !@HAVE_RENAMEAT@ _GL_FUNCDECL_SYS (renameat, int, (int fd1, char const *file1, int fd2, char const *file2) _GL_ARG_NONNULL ((2, 4))); # endif _GL_CXXALIAS_SYS (renameat, int, (int fd1, char const *file1, int fd2, char const *file2)); # endif _GL_CXXALIASWARN (renameat); #elif defined GNULIB_POSIXCHECK # undef renameat # if HAVE_RAW_DECL_RENAMEAT _GL_WARN_ON_USE (renameat, "renameat is not portable - " "use gnulib module renameat for portability"); # endif #endif #if @GNULIB_SCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if defined __GNUC__ || defined __clang__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef scanf /* Don't break __attribute__((format(scanf,M,N))). */ # define scanf __scanf__ # endif _GL_FUNCDECL_RPL_1 (__scanf__, int, (const char *restrict format, ...) __asm__ (@ASM_SYMBOL_PREFIX@ _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_scanf)) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *restrict format, ...)); # else # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef scanf # define scanf rpl_scanf # endif _GL_FUNCDECL_RPL (scanf, int, (const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (scanf, int, (const char *restrict format, ...)); # endif # else _GL_CXXALIAS_SYS (scanf, int, (const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (scanf); # endif #endif #if @GNULIB_SNPRINTF@ # if @REPLACE_SNPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define snprintf rpl_snprintf # endif # define GNULIB_overrides_snprintf 1 _GL_FUNCDECL_RPL (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4) _GL_ARG_NONNULL ((3))); _GL_CXXALIAS_RPL (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...)); # else # if !@HAVE_DECL_SNPRINTF@ _GL_FUNCDECL_SYS (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4) _GL_ARG_NONNULL ((3))); # endif _GL_CXXALIAS_SYS (snprintf, int, (char *restrict str, size_t size, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (snprintf); # endif #elif defined GNULIB_POSIXCHECK # undef snprintf # if HAVE_RAW_DECL_SNPRINTF _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " "use gnulib module snprintf for portability"); # endif #endif /* Some people would argue that all sprintf uses should be warned about (for example, OpenBSD issues a link warning for it), since it can cause security holes due to buffer overruns. However, we believe that sprintf can be used safely, and is more efficient than snprintf in those safe cases; and as proof of our belief, we use sprintf in several gnulib modules. So this header intentionally avoids adding a warning to sprintf except when GNULIB_POSIXCHECK is defined. */ #if @GNULIB_SPRINTF_POSIX@ # if @REPLACE_SPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define sprintf rpl_sprintf # endif # define GNULIB_overrides_sprintf 1 _GL_FUNCDECL_RPL (sprintf, int, (char *restrict str, const char *restrict format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (sprintf, int, (char *restrict str, const char *restrict format, ...)); # else _GL_CXXALIAS_SYS (sprintf, int, (char *restrict str, const char *restrict format, ...)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (sprintf); # endif #elif defined GNULIB_POSIXCHECK # undef sprintf /* Assume sprintf is always declared. */ _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " "use gnulib module sprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_MDA_TEMPNAM@ /* On native Windows, map 'tempnam' to '_tempnam', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::tempnam always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tempnam # define tempnam _tempnam # endif _GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix)); # else _GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix)); # endif _GL_CXXALIASWARN (tempnam); #endif #if @GNULIB_TMPFILE@ # if @REPLACE_TMPFILE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define tmpfile rpl_tmpfile # endif _GL_FUNCDECL_RPL (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (tmpfile); # endif #else # if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined tmpfile /* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */ _GL_FUNCDECL_SYS (tmpfile, FILE *, (void) _GL_ATTRIBUTE_DEALLOC (fclose, 1)); # endif # if defined GNULIB_POSIXCHECK # undef tmpfile # if HAVE_RAW_DECL_TMPFILE _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " "use gnulib module tmpfile for portability"); # endif # endif #endif #if @GNULIB_VASPRINTF@ /* Write formatted output to a string dynamically allocated with malloc(). If the memory allocation succeeds, store the address of the string in *RESULT and return the number of resulting bytes, excluding the trailing NUL. Upon memory allocation error, or some other error, return -1. */ # if @REPLACE_VASPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define asprintf rpl_asprintf # endif # define GNULIB_overrides_asprintf _GL_FUNCDECL_RPL (asprintf, int, (char **result, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (asprintf, int, (char **result, const char *format, ...)); # else # if !@HAVE_VASPRINTF@ _GL_FUNCDECL_SYS (asprintf, int, (char **result, const char *format, ...) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (asprintf, int, (char **result, const char *format, ...)); # endif _GL_CXXALIASWARN (asprintf); # if @REPLACE_VASPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vasprintf rpl_vasprintf # endif # define GNULIB_overrides_vasprintf 1 _GL_FUNCDECL_RPL (vasprintf, int, (char **result, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vasprintf, int, (char **result, const char *format, va_list args)); # else # if !@HAVE_VASPRINTF@ _GL_FUNCDECL_SYS (vasprintf, int, (char **result, const char *format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (vasprintf, int, (char **result, const char *format, va_list args)); # endif _GL_CXXALIASWARN (vasprintf); #endif #if @GNULIB_VDPRINTF@ # if @REPLACE_VDPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vdprintf rpl_vdprintf # endif _GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *restrict format, va_list args)); # else # if !@HAVE_VDPRINTF@ _GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((2))); # endif /* Need to cast, because on Solaris, the third parameter will likely be __va_list args. */ _GL_CXXALIAS_SYS_CAST (vdprintf, int, (int fd, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vdprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vdprintf # if HAVE_RAW_DECL_VDPRINTF _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - " "use gnulib module vdprintf for portability"); # endif #endif #if @GNULIB_VFPRINTF_POSIX@ || @GNULIB_VFPRINTF@ # if (@GNULIB_VFPRINTF_POSIX@ && @REPLACE_VFPRINTF@) \ || (@GNULIB_VFPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vfprintf rpl_vfprintf # endif # define GNULIB_overrides_vfprintf 1 # if @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); # else _GL_FUNCDECL_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 0) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_RPL (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the third parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vfprintf, int, (FILE *restrict fp, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vfprintf); # endif #endif #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_vfprintf # undef vfprintf # endif /* Assume vfprintf is always declared. */ _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " "use gnulib module vfprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_VFSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef vfscanf # define vfscanf rpl_vfscanf # endif _GL_FUNCDECL_RPL (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args)); # else _GL_CXXALIAS_SYS (vfscanf, int, (FILE *restrict stream, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vfscanf); # endif #endif #if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@ # if (@GNULIB_VPRINTF_POSIX@ && @REPLACE_VPRINTF@) \ || (@GNULIB_VPRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@)) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vprintf rpl_vprintf # endif # define GNULIB_overrides_vprintf 1 # if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@ _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 0) _GL_ARG_NONNULL ((1))); # else _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 0) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_RPL (vprintf, int, (const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the second parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vprintf); # endif #endif #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK # if !GNULIB_overrides_vprintf # undef vprintf # endif /* Assume vprintf is always declared. */ _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " "use gnulib module vprintf-posix for portable " "POSIX compliance"); #endif #if @GNULIB_VSCANF@ # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef vscanf # define vscanf rpl_vscanf # endif _GL_FUNCDECL_RPL (vscanf, int, (const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 0) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (vscanf, int, (const char *restrict format, va_list args)); # else _GL_CXXALIAS_SYS (vscanf, int, (const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vscanf); # endif #endif #if @GNULIB_VSNPRINTF@ # if @REPLACE_VSNPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vsnprintf rpl_vsnprintf # endif # define GNULIB_overrides_vsnprintf 1 _GL_FUNCDECL_RPL (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3))); _GL_CXXALIAS_RPL (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args)); # else # if !@HAVE_DECL_VSNPRINTF@ _GL_FUNCDECL_SYS (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3))); # endif _GL_CXXALIAS_SYS (vsnprintf, int, (char *restrict str, size_t size, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vsnprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vsnprintf # if HAVE_RAW_DECL_VSNPRINTF _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " "use gnulib module vsnprintf for portability"); # endif #endif #if @GNULIB_VSPRINTF_POSIX@ # if @REPLACE_VSPRINTF@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define vsprintf rpl_vsprintf # endif # define GNULIB_overrides_vsprintf 1 _GL_FUNCDECL_RPL (vsprintf, int, (char *restrict str, const char *restrict format, va_list args) _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (vsprintf, int, (char *restrict str, const char *restrict format, va_list args)); # else /* Need to cast, because on Solaris, the third parameter is __va_list args and GCC's fixincludes did not change this to __gnuc_va_list. */ _GL_CXXALIAS_SYS_CAST (vsprintf, int, (char *restrict str, const char *restrict format, va_list args)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (vsprintf); # endif #elif defined GNULIB_POSIXCHECK # undef vsprintf /* Assume vsprintf is always declared. */ _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " "use gnulib module vsprintf-posix for portable " "POSIX compliance"); #endif #endif /* _@GUARD_PREFIX@_STDIO_H */ #endif /* _@GUARD_PREFIX@_STDIO_H */ #endif shishi-1.0.3/src/gl/basename-lgpl.c0000644000000000000000000000346514273615074013756 00000000000000/* basename.c -- return the last element in a file name Copyright (C) 1990, 1998-2001, 2003-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "basename-lgpl.h" #include #include #include "filename.h" char * last_component (char const *name) { char const *base = name + FILE_SYSTEM_PREFIX_LEN (name); char const *p; bool last_was_slash = false; while (ISSLASH (*base)) base++; for (p = base; *p; p++) { if (ISSLASH (*p)) last_was_slash = true; else if (last_was_slash) { base = p; last_was_slash = false; } } return (char *) base; } size_t base_len (char const *name) { size_t len; size_t prefix_len = FILE_SYSTEM_PREFIX_LEN (name); for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) continue; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && len == 1 && ISSLASH (name[0]) && ISSLASH (name[1]) && ! name[2]) return 2; if (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE && prefix_len && len == prefix_len && ISSLASH (name[prefix_len])) return prefix_len + 1; return len; } shishi-1.0.3/src/gl/cloexec.h0000644000000000000000000000275514273615074012677 00000000000000/* cloexec.c - set or clear the close-on-exec descriptor flag Copyright (C) 2004, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, or clear the flag if VALUE is false. Return 0 on success, or -1 on error with 'errno' set. Note that on MingW, this function does NOT protect DESC from being inherited into spawned children. Instead, either use dup_cloexec followed by closing the original DESC, or use interfaces such as open or pipe2 that accept flags like O_CLOEXEC to create DESC non-inheritable in the first place. */ int set_cloexec_flag (int desc, bool value); /* Duplicates a file handle FD, while marking the copy to be closed prior to exec or spawn. Returns -1 and sets errno if FD could not be duplicated. */ int dup_cloexec (int fd); shishi-1.0.3/src/gl/stdint.in.h0000644000000000000000000005475414273615075013176 00000000000000/* Copyright (C) 2001-2002, 2004-2022 Free Software Foundation, Inc. Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood. This file is part of gnulib. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* * ISO C 99 for platforms that lack it. * */ #ifndef _@GUARD_PREFIX@_STDINT_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* When including a system file that in turn includes , use the system , not our substitute. This avoids problems with (for example) VMS, whose includes . */ #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* On Android (Bionic libc), includes this file before having defined 'time_t'. Therefore in this case avoid including other system header files; just include the system's . Ideally we should test __BIONIC__ here, but it is only defined after has been included; hence test __ANDROID__ instead. */ #if defined __ANDROID__ && defined _GL_INCLUDING_SYS_TYPES_H # @INCLUDE_NEXT@ @NEXT_STDINT_H@ #else /* Get those types that are already defined in other system include files, so that we can "#define int8_t signed char" below without worrying about a later system include file containing a "typedef signed char int8_t;" that will get messed up by our macro. Our macros should all be consistent with the system versions, except for the "fast" types and macros, which we recommend against using in public interfaces due to compiler differences. */ #if @HAVE_STDINT_H@ # if defined __sgi && ! defined __c99 /* Bypass IRIX's if in C89 mode, since it merely annoys users with "This header file is to be used only for c99 mode compilations" diagnostics. */ # define __STDINT_H__ # endif /* Some pre-C++11 implementations need this. */ # ifdef __cplusplus # ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS 1 # endif # ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 # endif # endif /* Other systems may have an incomplete or buggy . Include it before , since any "#include " in would reinclude us, skipping our contents because _@GUARD_PREFIX@_STDINT_H is defined. The include_next requires a split double-inclusion guard. */ # @INCLUDE_NEXT@ @NEXT_STDINT_H@ #endif #if ! defined _@GUARD_PREFIX@_STDINT_H && ! defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H #define _@GUARD_PREFIX@_STDINT_H /* Get SCHAR_MIN, SCHAR_MAX, UCHAR_MAX, INT_MIN, INT_MAX, LONG_MIN, LONG_MAX, ULONG_MAX, _GL_INTEGER_WIDTH. */ #include /* Override WINT_MIN and WINT_MAX if gnulib's or overrides wint_t. */ #if @GNULIBHEADERS_OVERRIDE_WINT_T@ # undef WINT_MIN # undef WINT_MAX # define WINT_MIN 0x0U # define WINT_MAX 0xffffffffU #endif #if ! @HAVE_C99_STDINT_H@ /* defines some of the stdint.h types as well, on glibc, IRIX 6.5, and OpenBSD 3.8 (via ). AIX 5.2 isn't needed and causes troubles. Mac OS X 10.4.6 includes (which is us), but relies on the system definitions, so include after @NEXT_STDINT_H@. */ # if @HAVE_SYS_TYPES_H@ && ! defined _AIX # include # endif # if @HAVE_INTTYPES_H@ /* In OpenBSD 3.8, includes , which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. also defines intptr_t and uintptr_t. */ # include # elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 has the types except the *_fast*_t types, and the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ # include # endif # if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__ /* Linux libc4 >= 4.6.7 and libc5 have a that defines int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is included by . */ # include # endif # undef _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* Minimum and maximum values for an integer type under the usual assumption. Return an unspecified value if BITS == 0, adding a check to pacify picky compilers. */ /* These are separate macros, because if you try to merge these macros into a single one, HP-UX cc rejects the resulting expression in constant expressions. */ # define _STDINT_UNSIGNED_MIN(bits, zero) \ (zero) # define _STDINT_SIGNED_MIN(bits, zero) \ (~ _STDINT_MAX (1, bits, zero)) # define _STDINT_MAX(signed, bits, zero) \ (((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1) #if !GNULIB_defined_stdint_types /* 7.18.1.1. Exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ # undef int8_t # undef uint8_t typedef signed char gl_int8_t; typedef unsigned char gl_uint8_t; # define int8_t gl_int8_t # define uint8_t gl_uint8_t # undef int16_t # undef uint16_t typedef short int gl_int16_t; typedef unsigned short int gl_uint16_t; # define int16_t gl_int16_t # define uint16_t gl_uint16_t # undef int32_t # undef uint32_t typedef int gl_int32_t; typedef unsigned int gl_uint32_t; # define int32_t gl_int32_t # define uint32_t gl_uint32_t /* If the system defines INT64_MAX, assume int64_t works. That way, if the underlying platform defines int64_t to be a 64-bit long long int, the code below won't mistakenly define it to be a 64-bit long int, which would mess up C++ name mangling. We must use #ifdef rather than #if, to avoid an error with HP-UX 10.20 cc. */ # ifdef INT64_MAX # define GL_INT64_T # else /* Do not undefine int64_t if gnulib is not being used with 64-bit types, since otherwise it breaks platforms like Tandem/NSK. */ # if LONG_MAX >> 31 >> 31 == 1 # undef int64_t typedef long int gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # elif defined _MSC_VER # undef int64_t typedef __int64 gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # else # undef int64_t typedef long long int gl_int64_t; # define int64_t gl_int64_t # define GL_INT64_T # endif # endif # ifdef UINT64_MAX # define GL_UINT64_T # else # if ULONG_MAX >> 31 >> 31 >> 1 == 1 # undef uint64_t typedef unsigned long int gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # elif defined _MSC_VER # undef uint64_t typedef unsigned __int64 gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # else # undef uint64_t typedef unsigned long long int gl_uint64_t; # define uint64_t gl_uint64_t # define GL_UINT64_T # endif # endif /* Avoid collision with Solaris 2.5.1 etc. */ # define _UINT8_T # define _UINT32_T # define _UINT64_T /* 7.18.1.2. Minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ # undef int_least8_t # undef uint_least8_t # undef int_least16_t # undef uint_least16_t # undef int_least32_t # undef uint_least32_t # undef int_least64_t # undef uint_least64_t # define int_least8_t int8_t # define uint_least8_t uint8_t # define int_least16_t int16_t # define uint_least16_t uint16_t # define int_least32_t int32_t # define uint_least32_t uint32_t # ifdef GL_INT64_T # define int_least64_t int64_t # endif # ifdef GL_UINT64_T # define uint_least64_t uint64_t # endif /* 7.18.1.3. Fastest minimum-width integer types */ /* Note: Other substitutes may define these types differently. It is not recommended to use these types in public header files. */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. The following code normally uses types consistent with glibc, as that lessens the chance of incompatibility with older GNU hosts. */ # undef int_fast8_t # undef uint_fast8_t # undef int_fast16_t # undef uint_fast16_t # undef int_fast32_t # undef uint_fast32_t # undef int_fast64_t # undef uint_fast64_t typedef signed char gl_int_fast8_t; typedef unsigned char gl_uint_fast8_t; # ifdef __sun /* Define types compatible with SunOS 5.10, so that code compiled under earlier SunOS versions works with code compiled under SunOS 5.10. */ typedef int gl_int_fast32_t; typedef unsigned int gl_uint_fast32_t; # else typedef long int gl_int_fast32_t; typedef unsigned long int gl_uint_fast32_t; # endif typedef gl_int_fast32_t gl_int_fast16_t; typedef gl_uint_fast32_t gl_uint_fast16_t; # define int_fast8_t gl_int_fast8_t # define uint_fast8_t gl_uint_fast8_t # define int_fast16_t gl_int_fast16_t # define uint_fast16_t gl_uint_fast16_t # define int_fast32_t gl_int_fast32_t # define uint_fast32_t gl_uint_fast32_t # ifdef GL_INT64_T # define int_fast64_t int64_t # endif # ifdef GL_UINT64_T # define uint_fast64_t uint64_t # endif /* 7.18.1.4. Integer types capable of holding object pointers */ /* kLIBC's defines _INTPTR_T_DECLARED and needs its own definitions of intptr_t and uintptr_t (which use int and unsigned) to avoid clashes with declarations of system functions like sbrk. Similarly, MinGW WSL-5.4.1 needs its own intptr_t and uintptr_t to avoid conflicting declarations of system functions like _findclose in . */ # if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \ || defined __MINGW32__) # undef intptr_t # undef uintptr_t # ifdef _WIN64 typedef long long int gl_intptr_t; typedef unsigned long long int gl_uintptr_t; # else typedef long int gl_intptr_t; typedef unsigned long int gl_uintptr_t; # endif # define intptr_t gl_intptr_t # define uintptr_t gl_uintptr_t # endif /* 7.18.1.5. Greatest-width integer types */ /* Note: These types are compiler dependent. It may be unwise to use them in public header files. */ /* If the system defines INTMAX_MAX, assume that intmax_t works, and similarly for UINTMAX_MAX and uintmax_t. This avoids problems with assuming one type where another is used by the system. */ # ifndef INTMAX_MAX # undef INTMAX_C # undef intmax_t # if LONG_MAX >> 30 == 1 typedef long long int gl_intmax_t; # define intmax_t gl_intmax_t # elif defined GL_INT64_T # define intmax_t int64_t # else typedef long int gl_intmax_t; # define intmax_t gl_intmax_t # endif # endif # ifndef UINTMAX_MAX # undef UINTMAX_C # undef uintmax_t # if ULONG_MAX >> 31 == 1 typedef unsigned long long int gl_uintmax_t; # define uintmax_t gl_uintmax_t # elif defined GL_UINT64_T # define uintmax_t uint64_t # else typedef unsigned long int gl_uintmax_t; # define uintmax_t gl_uintmax_t # endif # endif /* Verify that intmax_t and uintmax_t have the same size. Too much code breaks if this is not the case. If this check fails, the reason is likely to be found in the autoconf macros. */ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t) ? 1 : -1]; # define GNULIB_defined_stdint_types 1 # endif /* !GNULIB_defined_stdint_types */ /* 7.18.2. Limits of specified-width integer types */ /* 7.18.2.1. Limits of exact-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. */ # undef INT8_MIN # undef INT8_MAX # undef UINT8_MAX # define INT8_MIN (~ INT8_MAX) # define INT8_MAX 127 # define UINT8_MAX 255 # undef INT16_MIN # undef INT16_MAX # undef UINT16_MAX # define INT16_MIN (~ INT16_MAX) # define INT16_MAX 32767 # define UINT16_MAX 65535 # undef INT32_MIN # undef INT32_MAX # undef UINT32_MAX # define INT32_MIN (~ INT32_MAX) # define INT32_MAX 2147483647 # define UINT32_MAX 4294967295U # if defined GL_INT64_T && ! defined INT64_MAX /* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0 evaluates the latter incorrectly in preprocessor expressions. */ # define INT64_MIN (- INTMAX_C (1) << 63) # define INT64_MAX INTMAX_C (9223372036854775807) # endif # if defined GL_UINT64_T && ! defined UINT64_MAX # define UINT64_MAX UINTMAX_C (18446744073709551615) # endif /* 7.18.2.2. Limits of minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types are the same as the corresponding N_t types. */ # undef INT_LEAST8_MIN # undef INT_LEAST8_MAX # undef UINT_LEAST8_MAX # define INT_LEAST8_MIN INT8_MIN # define INT_LEAST8_MAX INT8_MAX # define UINT_LEAST8_MAX UINT8_MAX # undef INT_LEAST16_MIN # undef INT_LEAST16_MAX # undef UINT_LEAST16_MAX # define INT_LEAST16_MIN INT16_MIN # define INT_LEAST16_MAX INT16_MAX # define UINT_LEAST16_MAX UINT16_MAX # undef INT_LEAST32_MIN # undef INT_LEAST32_MAX # undef UINT_LEAST32_MAX # define INT_LEAST32_MIN INT32_MIN # define INT_LEAST32_MAX INT32_MAX # define UINT_LEAST32_MAX UINT32_MAX # undef INT_LEAST64_MIN # undef INT_LEAST64_MAX # ifdef GL_INT64_T # define INT_LEAST64_MIN INT64_MIN # define INT_LEAST64_MAX INT64_MAX # endif # undef UINT_LEAST64_MAX # ifdef GL_UINT64_T # define UINT_LEAST64_MAX UINT64_MAX # endif /* 7.18.2.3. Limits of fastest minimum-width integer types */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types are taken from the same list of types. */ # undef INT_FAST8_MIN # undef INT_FAST8_MAX # undef UINT_FAST8_MAX # define INT_FAST8_MIN SCHAR_MIN # define INT_FAST8_MAX SCHAR_MAX # define UINT_FAST8_MAX UCHAR_MAX # undef INT_FAST16_MIN # undef INT_FAST16_MAX # undef UINT_FAST16_MAX # define INT_FAST16_MIN INT_FAST32_MIN # define INT_FAST16_MAX INT_FAST32_MAX # define UINT_FAST16_MAX UINT_FAST32_MAX # undef INT_FAST32_MIN # undef INT_FAST32_MAX # undef UINT_FAST32_MAX # ifdef __sun # define INT_FAST32_MIN INT_MIN # define INT_FAST32_MAX INT_MAX # define UINT_FAST32_MAX UINT_MAX # else # define INT_FAST32_MIN LONG_MIN # define INT_FAST32_MAX LONG_MAX # define UINT_FAST32_MAX ULONG_MAX # endif # undef INT_FAST64_MIN # undef INT_FAST64_MAX # ifdef GL_INT64_T # define INT_FAST64_MIN INT64_MIN # define INT_FAST64_MAX INT64_MAX # endif # undef UINT_FAST64_MAX # ifdef GL_UINT64_T # define UINT_FAST64_MAX UINT64_MAX # endif /* 7.18.2.4. Limits of integer types capable of holding object pointers */ # undef INTPTR_MIN # undef INTPTR_MAX # undef UINTPTR_MAX # ifdef _WIN64 # define INTPTR_MIN LLONG_MIN # define INTPTR_MAX LLONG_MAX # define UINTPTR_MAX ULLONG_MAX # else # define INTPTR_MIN LONG_MIN # define INTPTR_MAX LONG_MAX # define UINTPTR_MAX ULONG_MAX # endif /* 7.18.2.5. Limits of greatest-width integer types */ # ifndef INTMAX_MAX # undef INTMAX_MIN # ifdef INT64_MAX # define INTMAX_MIN INT64_MIN # define INTMAX_MAX INT64_MAX # else # define INTMAX_MIN INT32_MIN # define INTMAX_MAX INT32_MAX # endif # endif # ifndef UINTMAX_MAX # ifdef UINT64_MAX # define UINTMAX_MAX UINT64_MAX # else # define UINTMAX_MAX UINT32_MAX # endif # endif /* 7.18.3. Limits of other integer types */ /* ptrdiff_t limits */ # undef PTRDIFF_MIN # undef PTRDIFF_MAX # if @APPLE_UNIVERSAL_BUILD@ # ifdef _LP64 # define PTRDIFF_MIN _STDINT_SIGNED_MIN (64, 0l) # define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l) # else # define PTRDIFF_MIN _STDINT_SIGNED_MIN (32, 0) # define PTRDIFF_MAX _STDINT_MAX (1, 32, 0) # endif # else # define PTRDIFF_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) # define PTRDIFF_MAX \ _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@) # endif /* sig_atomic_t limits */ # undef SIG_ATOMIC_MIN # undef SIG_ATOMIC_MAX # if @HAVE_SIGNED_SIG_ATOMIC_T@ # define SIG_ATOMIC_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_SIG_ATOMIC_T@, 0@SIG_ATOMIC_T_SUFFIX@) # else # define SIG_ATOMIC_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_SIG_ATOMIC_T@, 0@SIG_ATOMIC_T_SUFFIX@) # endif # define SIG_ATOMIC_MAX \ _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \ 0@SIG_ATOMIC_T_SUFFIX@) /* size_t limit */ # undef SIZE_MAX # if @APPLE_UNIVERSAL_BUILD@ # ifdef _LP64 # define SIZE_MAX _STDINT_MAX (0, 64, 0ul) # else # define SIZE_MAX _STDINT_MAX (0, 32, 0ul) # endif # else # define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) # endif /* wchar_t limits */ /* Get WCHAR_MIN, WCHAR_MAX. This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested includes -> -> -> , and the latter includes and assumes its types are already defined. */ # if @HAVE_WCHAR_H@ && ! (defined WCHAR_MIN && defined WCHAR_MAX) # define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H # include # undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H # endif # undef WCHAR_MIN # undef WCHAR_MAX # if @HAVE_SIGNED_WCHAR_T@ # define WCHAR_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) # else # define WCHAR_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) # endif # define WCHAR_MAX \ _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@) /* wint_t limits */ /* If gnulib's or overrides wint_t, @WINT_T_SUFFIX@ is not accurate, therefore use the definitions from above. */ # if !@GNULIBHEADERS_OVERRIDE_WINT_T@ # undef WINT_MIN # undef WINT_MAX # if @HAVE_SIGNED_WINT_T@ # define WINT_MIN \ _STDINT_SIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # else # define WINT_MIN \ _STDINT_UNSIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # endif # define WINT_MAX \ _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@) # endif /* 7.18.4. Macros for integer constants */ /* 7.18.4.1. Macros for minimum-width integer constants */ /* According to ISO C 99 Technical Corrigendum 1 */ /* Here we assume a standard architecture where the hardware integer types have 8, 16, 32, optionally 64 bits, and int is 32 bits. */ # undef INT8_C # undef UINT8_C # define INT8_C(x) x # define UINT8_C(x) x # undef INT16_C # undef UINT16_C # define INT16_C(x) x # define UINT16_C(x) x # undef INT32_C # undef UINT32_C # define INT32_C(x) x # define UINT32_C(x) x ## U # undef INT64_C # undef UINT64_C # if LONG_MAX >> 31 >> 31 == 1 # define INT64_C(x) x##L # elif defined _MSC_VER # define INT64_C(x) x##i64 # else # define INT64_C(x) x##LL # endif # if ULONG_MAX >> 31 >> 31 >> 1 == 1 # define UINT64_C(x) x##UL # elif defined _MSC_VER # define UINT64_C(x) x##ui64 # else # define UINT64_C(x) x##ULL # endif /* 7.18.4.2. Macros for greatest-width integer constants */ # ifndef INTMAX_C # if LONG_MAX >> 30 == 1 # define INTMAX_C(x) x##LL # elif defined GL_INT64_T # define INTMAX_C(x) INT64_C(x) # else # define INTMAX_C(x) x##L # endif # endif # ifndef UINTMAX_C # if ULONG_MAX >> 31 == 1 # define UINTMAX_C(x) x##ULL # elif defined GL_UINT64_T # define UINTMAX_C(x) UINT64_C(x) # else # define UINTMAX_C(x) x##UL # endif # endif #endif /* !@HAVE_C99_STDINT_H@ */ /* Macros specified by ISO/IEC TS 18661-1:2014. */ #if (!defined UINTMAX_WIDTH \ && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__)) # ifdef INT8_MAX # define INT8_WIDTH _GL_INTEGER_WIDTH (INT8_MIN, INT8_MAX) # endif # ifdef UINT8_MAX # define UINT8_WIDTH _GL_INTEGER_WIDTH (0, UINT8_MAX) # endif # ifdef INT16_MAX # define INT16_WIDTH _GL_INTEGER_WIDTH (INT16_MIN, INT16_MAX) # endif # ifdef UINT16_MAX # define UINT16_WIDTH _GL_INTEGER_WIDTH (0, UINT16_MAX) # endif # ifdef INT32_MAX # define INT32_WIDTH _GL_INTEGER_WIDTH (INT32_MIN, INT32_MAX) # endif # ifdef UINT32_MAX # define UINT32_WIDTH _GL_INTEGER_WIDTH (0, UINT32_MAX) # endif # ifdef INT64_MAX # define INT64_WIDTH _GL_INTEGER_WIDTH (INT64_MIN, INT64_MAX) # endif # ifdef UINT64_MAX # define UINT64_WIDTH _GL_INTEGER_WIDTH (0, UINT64_MAX) # endif # define INT_LEAST8_WIDTH _GL_INTEGER_WIDTH (INT_LEAST8_MIN, INT_LEAST8_MAX) # define UINT_LEAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST8_MAX) # define INT_LEAST16_WIDTH _GL_INTEGER_WIDTH (INT_LEAST16_MIN, INT_LEAST16_MAX) # define UINT_LEAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST16_MAX) # define INT_LEAST32_WIDTH _GL_INTEGER_WIDTH (INT_LEAST32_MIN, INT_LEAST32_MAX) # define UINT_LEAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST32_MAX) # define INT_LEAST64_WIDTH _GL_INTEGER_WIDTH (INT_LEAST64_MIN, INT_LEAST64_MAX) # define UINT_LEAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_LEAST64_MAX) # define INT_FAST8_WIDTH _GL_INTEGER_WIDTH (INT_FAST8_MIN, INT_FAST8_MAX) # define UINT_FAST8_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST8_MAX) # define INT_FAST16_WIDTH _GL_INTEGER_WIDTH (INT_FAST16_MIN, INT_FAST16_MAX) # define UINT_FAST16_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST16_MAX) # define INT_FAST32_WIDTH _GL_INTEGER_WIDTH (INT_FAST32_MIN, INT_FAST32_MAX) # define UINT_FAST32_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST32_MAX) # define INT_FAST64_WIDTH _GL_INTEGER_WIDTH (INT_FAST64_MIN, INT_FAST64_MAX) # define UINT_FAST64_WIDTH _GL_INTEGER_WIDTH (0, UINT_FAST64_MAX) # define INTPTR_WIDTH _GL_INTEGER_WIDTH (INTPTR_MIN, INTPTR_MAX) # define UINTPTR_WIDTH _GL_INTEGER_WIDTH (0, UINTPTR_MAX) # define INTMAX_WIDTH _GL_INTEGER_WIDTH (INTMAX_MIN, INTMAX_MAX) # define UINTMAX_WIDTH _GL_INTEGER_WIDTH (0, UINTMAX_MAX) # define PTRDIFF_WIDTH _GL_INTEGER_WIDTH (PTRDIFF_MIN, PTRDIFF_MAX) # define SIZE_WIDTH _GL_INTEGER_WIDTH (0, SIZE_MAX) # define WCHAR_WIDTH _GL_INTEGER_WIDTH (WCHAR_MIN, WCHAR_MAX) # ifdef WINT_MAX # define WINT_WIDTH _GL_INTEGER_WIDTH (WINT_MIN, WINT_MAX) # endif # ifdef SIG_ATOMIC_MAX # define SIG_ATOMIC_WIDTH _GL_INTEGER_WIDTH (SIG_ATOMIC_MIN, SIG_ATOMIC_MAX) # endif #endif /* !WINT_WIDTH && (_GNU_SOURCE || __STDC_WANT_IEC_60559_BFP_EXT__) */ #endif /* _@GUARD_PREFIX@_STDINT_H */ #endif /* !(defined __ANDROID__ && ...) */ #endif /* !defined _@GUARD_PREFIX@_STDINT_H && !defined _GL_JUST_INCLUDE_SYSTEM_STDINT_H */ shishi-1.0.3/src/gl/verify.h0000644000000000000000000003070114273615075012552 00000000000000/* Compile-time assert-like macros. Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */ #ifndef _GL_VERIFY_H #define _GL_VERIFY_H /* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert (R, DIAGNOSTIC) works as per C11. This is supported by GCC 4.6.0+ and by clang 4+. Define _GL_HAVE__STATIC_ASSERT1 to 1 if _Static_assert (R) works as per C2x. This is supported by GCC 9.1+. Support compilers claiming conformance to the relevant standard, and also support GCC when not pedantic. If we were willing to slow 'configure' down we could also use it with other compilers, but since this affects only the quality of diagnostics, why bother? */ #ifndef __cplusplus # if (201112L <= __STDC_VERSION__ \ || (!defined __STRICT_ANSI__ \ && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 5 <= __clang_major__))) # define _GL_HAVE__STATIC_ASSERT 1 # endif # if (202000L <= __STDC_VERSION__ \ || (!defined __STRICT_ANSI__ && 9 <= __GNUC__)) # define _GL_HAVE__STATIC_ASSERT1 1 # endif #endif /* FreeBSD 9.1 , included by and lots of other system headers, defines a conflicting _Static_assert that is no better than ours; override it. */ #ifndef _GL_HAVE__STATIC_ASSERT # include # undef _Static_assert #endif /* Each of these macros verifies that its argument R is nonzero. To be portable, R should be an integer constant expression. Unlike assert (R), there is no run-time overhead. If _Static_assert works, verify (R) uses it directly. Similarly, _GL_VERIFY_TRUE works by packaging a _Static_assert inside a struct that is an operand of sizeof. The code below uses several ideas for C++ compilers, and for C compilers that do not support _Static_assert: * The first step is ((R) ? 1 : -1). Given an expression R, of integral or boolean or floating-point type, this yields an expression of integral type, whose value is later verified to be constant and nonnegative. * Next this expression W is wrapped in a type struct _gl_verify_type { unsigned int _gl_verify_error_if_negative: W; }. If W is negative, this yields a compile-time error. No compiler can deal with a bit-field of negative size. One might think that an array size check would have the same effect, that is, that the type struct { unsigned int dummy[W]; } would work as well. However, inside a function, some compilers (such as C++ compilers and GNU C) allow local parameters and variables inside array size expressions. With these compilers, an array size check would not properly diagnose this misuse of the verify macro: void function (int n) { verify (n < 0); } * For the verify macro, the struct _gl_verify_type will need to somehow be embedded into a declaration. To be portable, this declaration must declare an object, a constant, a function, or a typedef name. If the declared entity uses the type directly, such as in struct dummy {...}; typedef struct {...} dummy; extern struct {...} *dummy; extern void dummy (struct {...} *); extern struct {...} *dummy (void); two uses of the verify macro would yield colliding declarations if the entity names are not disambiguated. A workaround is to attach the current line number to the entity name: #define _GL_CONCAT0(x, y) x##y #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) extern struct {...} * _GL_CONCAT (dummy, __LINE__); But this has the problem that two invocations of verify from within the same macro would collide, since the __LINE__ value would be the same for both invocations. (The GCC __COUNTER__ macro solves this problem, but is not portable.) A solution is to use the sizeof operator. It yields a number, getting rid of the identity of the type. Declarations like extern int dummy [sizeof (struct {...})]; extern void dummy (int [sizeof (struct {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; can be repeated. * Should the implementation use a named struct or an unnamed struct? Which of the following alternatives can be used? extern int dummy [sizeof (struct {...})]; extern int dummy [sizeof (struct _gl_verify_type {...})]; extern void dummy (int [sizeof (struct {...})]); extern void dummy (int [sizeof (struct _gl_verify_type {...})]); extern int (*dummy (void)) [sizeof (struct {...})]; extern int (*dummy (void)) [sizeof (struct _gl_verify_type {...})]; In the second and sixth case, the struct type is exported to the outer scope; two such declarations therefore collide. GCC warns about the first, third, and fourth cases. So the only remaining possibility is the fifth case: extern int (*dummy (void)) [sizeof (struct {...})]; * GCC warns about duplicate declarations of the dummy function if -Wredundant-decls is used. GCC 4.3 and later have a builtin __COUNTER__ macro that can let us generate unique identifiers for each dummy function, to suppress this warning. * This implementation exploits the fact that older versions of GCC, which do not support _Static_assert, also do not warn about the last declaration mentioned above. * GCC warns if -Wnested-externs is enabled and 'verify' is used within a function body; but inside a function, you can always arrange to use verify_expr instead. * In C++, any struct definition inside sizeof is invalid. Use a template type to work around the problem. */ /* Concatenate two preprocessor tokens. */ #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y) #define _GL_CONCAT0(x, y) x##y /* _GL_COUNTER is an integer, preferably one that changes each time we use it. Use __COUNTER__ if it works, falling back on __LINE__ otherwise. __LINE__ isn't perfect, but it's better than a constant. */ #if defined __COUNTER__ && __COUNTER__ != __COUNTER__ # define _GL_COUNTER __COUNTER__ #else # define _GL_COUNTER __LINE__ #endif /* Generate a symbol with the given prefix, making it unique if possible. */ #define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER) /* Verify requirement R at compile-time, as an integer constant expression that returns 1. If R is false, fail at compile-time, preferably with a diagnostic that includes the string-literal DIAGNOSTIC. */ #define _GL_VERIFY_TRUE(R, DIAGNOSTIC) \ (!!sizeof (_GL_VERIFY_TYPE (R, DIAGNOSTIC))) #ifdef __cplusplus # if !GNULIB_defined_struct__gl_verify_type template struct _gl_verify_type { unsigned int _gl_verify_error_if_negative: w; }; # define GNULIB_defined_struct__gl_verify_type 1 # endif # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ _gl_verify_type<(R) ? 1 : -1> #elif defined _GL_HAVE__STATIC_ASSERT # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ struct { \ _Static_assert (R, DIAGNOSTIC); \ int _gl_dummy; \ } #else # define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \ struct { unsigned int _gl_verify_error_if_negative: (R) ? 1 : -1; } #endif /* Verify requirement R at compile-time, as a declaration without a trailing ';'. If R is false, fail at compile-time. This macro requires three or more arguments but uses at most the first two, so that the _Static_assert macro optionally defined below supports both the C11 two-argument syntax and the C2x one-argument syntax. Unfortunately, unlike C11, this implementation must appear as an ordinary declaration, and cannot appear inside struct { ... }. */ #if 200410 <= __cpp_static_assert # define _GL_VERIFY(R, DIAGNOSTIC, ...) static_assert (R, DIAGNOSTIC) #elif defined _GL_HAVE__STATIC_ASSERT # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC) #else # define _GL_VERIFY(R, DIAGNOSTIC, ...) \ extern int (*_GL_GENSYM (_gl_verify_function) (void)) \ [_GL_VERIFY_TRUE (R, DIAGNOSTIC)] # if 4 < __GNUC__ + (6 <= __GNUC_MINOR__) # pragma GCC diagnostic ignored "-Wnested-externs" # endif #endif /* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */ #ifdef _GL_STATIC_ASSERT_H # if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert # define _Static_assert(...) \ _GL_VERIFY (__VA_ARGS__, "static assertion failed", -) # endif # if __cpp_static_assert < 201411 && !defined static_assert # define static_assert _Static_assert /* C11 requires this #define. */ # endif #endif /* @assert.h omit start@ */ #if 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__)) # define _GL_HAS_BUILTIN_TRAP 1 #elif defined __has_builtin # define _GL_HAS_BUILTIN_TRAP __has_builtin (__builtin_trap) #else # define _GL_HAS_BUILTIN_TRAP 0 #endif #if 4 < __GNUC__ + (5 <= __GNUC_MINOR__) # define _GL_HAS_BUILTIN_UNREACHABLE 1 #elif defined __has_builtin # define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable) #else # define _GL_HAS_BUILTIN_UNREACHABLE 0 #endif /* Each of these macros verifies that its argument R is nonzero. To be portable, R should be an integer constant expression. Unlike assert (R), there is no run-time overhead. There are two macros, since no single macro can be used in all contexts in C. verify_expr (R, E) is for scalar contexts, including integer constant expression contexts. verify (R) is for declaration contexts, e.g., the top level. */ /* Verify requirement R at compile-time. Return the value of the expression E. */ #define verify_expr(R, E) \ (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E)) /* Verify requirement R at compile-time, as a declaration without a trailing ';'. verify (R) acts like static_assert (R) except that it is portable to C11/C++14 and earlier, it can issue better diagnostics, and its name is shorter and may be more convenient. */ #ifdef __PGI /* PGI barfs if R is long. */ # define verify(R) _GL_VERIFY (R, "verify (...)", -) #else # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -) #endif /* Assume that R always holds. Behavior is undefined if R is false, fails to evaluate, or has side effects. 'assume (R)' is a directive from the programmer telling the compiler that R is true so the compiler needn't generate code to test R. This is why 'assume' is in verify.h: it's related to static checking (in this case, static checking done by the programmer), not dynamic checking. 'assume (R)' can affect compilation of all the code, not just code that happens to be executed after the assume (R) is "executed". For example, if the code mistakenly does 'assert (R); assume (R);' the compiler is entitled to optimize away the 'assert (R)'. Although assuming R can help a compiler generate better code or diagnostics, performance can suffer if R uses hard-to-optimize features such as function calls not inlined by the compiler. Avoid Clang's __builtin_assume, as it breaks GNU Emacs master as of 2020-08-23T21:09:49Z!eggert@cs.ucla.edu; see . It's not known whether this breakage is a Clang bug or an Emacs bug; play it safe for now. */ #if _GL_HAS_BUILTIN_UNREACHABLE # define assume(R) ((R) ? (void) 0 : __builtin_unreachable ()) #elif 1200 <= _MSC_VER # define assume(R) __assume (R) #elif (defined GCC_LINT || defined lint) && _GL_HAS_BUILTIN_TRAP /* Doing it this way helps various packages when configured with --enable-gcc-warnings, which compiles with -Dlint. It's nicer when 'assume' silences warnings even with older GCCs. */ # define assume(R) ((R) ? (void) 0 : __builtin_trap ()) #else /* Some tools grok NOTREACHED, e.g., Oracle Studio 12.6. */ # define assume(R) ((R) ? (void) 0 : /*NOTREACHED*/ (void) 0) #endif /* @assert.h omit end@ */ #endif shishi-1.0.3/src/gl/strerror-override.h0000644000000000000000000000405014273615075014743 00000000000000/* strerror-override.h --- POSIX compatible system error routine Copyright (C) 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_STRERROR_OVERRIDE_H # define _GL_STRERROR_OVERRIDE_H # include # include /* Reasonable buffer size that should never trigger ERANGE; if this proves too small, we intentionally abort(), to remind us to fix this value. */ # define STACKBUF_LEN 256 /* If ERRNUM maps to an errno value defined by gnulib, return a string describing the error. Otherwise return NULL. */ # if REPLACE_STRERROR_0 \ || GNULIB_defined_ESOCK \ || GNULIB_defined_ESTREAMS \ || GNULIB_defined_EWINSOCK \ || GNULIB_defined_ENOMSG \ || GNULIB_defined_EIDRM \ || GNULIB_defined_ENOLINK \ || GNULIB_defined_EPROTO \ || GNULIB_defined_EMULTIHOP \ || GNULIB_defined_EBADMSG \ || GNULIB_defined_EOVERFLOW \ || GNULIB_defined_ENOTSUP \ || GNULIB_defined_ENETRESET \ || GNULIB_defined_ECONNABORTED \ || GNULIB_defined_ESTALE \ || GNULIB_defined_EDQUOT \ || GNULIB_defined_ECANCELED \ || GNULIB_defined_EOWNERDEAD \ || GNULIB_defined_ENOTRECOVERABLE \ || GNULIB_defined_EILSEQ extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST; # else # define strerror_override(ignored) NULL # define GNULIB_defined_strerror_override_macro 1 # endif #endif /* _GL_STRERROR_OVERRIDE_H */ shishi-1.0.3/src/gl/sys_types.in.h0000644000000000000000000000617114273615075013721 00000000000000/* Provide a more complete sys/types.h. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _WIN32 && !defined __CYGWIN__ \ && (defined __need_off_t || defined __need___off64_t \ || defined __need_ssize_t || defined __need_time_t) /* Special invocation convention inside mingw header files. */ #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SYS_TYPES_H /* The include_next requires a split double-inclusion guard. */ # define _GL_INCLUDING_SYS_TYPES_H #@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@ # undef _GL_INCLUDING_SYS_TYPES_H #ifndef _@GUARD_PREFIX@_SYS_TYPES_H #define _@GUARD_PREFIX@_SYS_TYPES_H /* Override off_t if Large File Support is requested on native Windows. */ #if @WINDOWS_64_BIT_OFF_T@ /* Same as int64_t in . */ # if defined _MSC_VER # define off_t __int64 # else # define off_t long long int # endif /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_64_BIT_OFF_T 1 #endif /* Override dev_t and ino_t if distinguishable inodes support is requested on native Windows. */ #if @WINDOWS_STAT_INODES@ # if @WINDOWS_STAT_INODES@ == 2 /* Experimental, not useful in Windows 10. */ /* Define dev_t to a 64-bit type. */ # if !defined GNULIB_defined_dev_t typedef unsigned long long int rpl_dev_t; # undef dev_t # define dev_t rpl_dev_t # define GNULIB_defined_dev_t 1 # endif /* Define ino_t to a 128-bit type. */ # if !defined GNULIB_defined_ino_t /* MSVC does not have a 128-bit integer type. GCC has a 128-bit integer type __int128, but only on 64-bit targets. */ typedef struct { unsigned long long int _gl_ino[2]; } rpl_ino_t; # undef ino_t # define ino_t rpl_ino_t # define GNULIB_defined_ino_t 1 # endif # else /* @WINDOWS_STAT_INODES@ == 1 */ /* Define ino_t to a 64-bit type. */ # if !defined GNULIB_defined_ino_t typedef unsigned long long int rpl_ino_t; # undef ino_t # define ino_t rpl_ino_t # define GNULIB_defined_ino_t 1 # endif # endif /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_STAT_INODES @WINDOWS_STAT_INODES@ #endif /* MSVC 9 defines size_t in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (defined _WIN32 && ! defined __CYGWIN__) && ! defined __GLIBC__ # include #endif #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */ #endif /* _@GUARD_PREFIX@_SYS_TYPES_H */ #endif /* __need_XXX */ shishi-1.0.3/src/gl/stat-w32.c0000644000000000000000000004422414273615075012632 00000000000000/* Core of implementation of fstat and stat for native Windows. Copyright (C) 2017-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible. */ #include #if defined _WIN32 && ! defined __CYGWIN__ /* Attempt to make define FILE_ID_INFO. But ensure that the redefinition of _WIN32_WINNT does not make us assume Windows Vista or newer when building for an older version of Windows. */ #if HAVE_SDKDDKVER_H # include # if _WIN32_WINNT >= _WIN32_WINNT_VISTA # define WIN32_ASSUME_VISTA 1 # else # define WIN32_ASSUME_VISTA 0 # endif # if !defined _WIN32_WINNT || (_WIN32_WINNT < _WIN32_WINNT_WIN8) # undef _WIN32_WINNT # define _WIN32_WINNT _WIN32_WINNT_WIN8 # endif #else # define WIN32_ASSUME_VISTA (_WIN32_WINNT >= _WIN32_WINNT_VISTA) #endif #include #include #include #include #include #include #include /* Specification. */ #include "stat-w32.h" #include "pathmax.h" #include "verify.h" /* Don't assume that UNICODE is not defined. */ #undef LoadLibrary #define LoadLibrary LoadLibraryA #undef GetFinalPathNameByHandle #define GetFinalPathNameByHandle GetFinalPathNameByHandleA /* Older mingw headers do not define VOLUME_NAME_NONE. */ #ifndef VOLUME_NAME_NONE # define VOLUME_NAME_NONE 4 #endif #if !WIN32_ASSUME_VISTA /* Avoid warnings from gcc -Wcast-function-type. */ # define GetProcAddress \ (void *) GetProcAddress # if _GL_WINDOWS_STAT_INODES == 2 /* GetFileInformationByHandleEx was introduced only in Windows Vista. */ typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile, FILE_INFO_BY_HANDLE_CLASS fiClass, LPVOID lpBuffer, DWORD dwBufferSize); static GetFileInformationByHandleExFuncType GetFileInformationByHandleExFunc = NULL; # endif /* GetFinalPathNameByHandle was introduced only in Windows Vista. */ typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile, LPSTR lpFilePath, DWORD lenFilePath, DWORD dwFlags); static GetFinalPathNameByHandleFuncType GetFinalPathNameByHandleFunc = NULL; static BOOL initialized = FALSE; static void initialize (void) { HMODULE kernel32 = LoadLibrary ("kernel32.dll"); if (kernel32 != NULL) { # if _GL_WINDOWS_STAT_INODES == 2 GetFileInformationByHandleExFunc = (GetFileInformationByHandleExFuncType) GetProcAddress (kernel32, "GetFileInformationByHandleEx"); # endif GetFinalPathNameByHandleFunc = (GetFinalPathNameByHandleFuncType) GetProcAddress (kernel32, "GetFinalPathNameByHandleA"); } initialized = TRUE; } #else # define GetFileInformationByHandleExFunc GetFileInformationByHandleEx # define GetFinalPathNameByHandleFunc GetFinalPathNameByHandle #endif /* Converts a FILETIME to GMT time since 1970-01-01 00:00:00. */ #if _GL_WINDOWS_STAT_TIMESPEC struct timespec _gl_convert_FILETIME_to_timespec (const FILETIME *ft) { struct timespec result; /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; if (since_1601 == 0) { result.tv_sec = 0; result.tv_nsec = 0; } else { /* Between 1601-01-01 and 1970-01-01 there were 280 normal years and 89 leap years, in total 134774 days. */ unsigned long long since_1970 = since_1601 - (unsigned long long) 134774 * (unsigned long long) 86400 * (unsigned long long) 10000000; result.tv_sec = since_1970 / (unsigned long long) 10000000; result.tv_nsec = (unsigned long) (since_1970 % (unsigned long long) 10000000) * 100; } return result; } #else time_t _gl_convert_FILETIME_to_POSIX (const FILETIME *ft) { /* FILETIME: */ unsigned long long since_1601 = ((unsigned long long) ft->dwHighDateTime << 32) | (unsigned long long) ft->dwLowDateTime; if (since_1601 == 0) return 0; else { /* Between 1601-01-01 and 1970-01-01 there were 280 normal years and 89 leap years, in total 134774 days. */ unsigned long long since_1970 = since_1601 - (unsigned long long) 134774 * (unsigned long long) 86400 * (unsigned long long) 10000000; return since_1970 / (unsigned long long) 10000000; } } #endif /* Fill *BUF with information about the file designated by H. PATH is the file name, if known, otherwise NULL. Return 0 if successful, or -1 with errno set upon failure. */ int _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf) { /* GetFileType */ DWORD type = GetFileType (h); if (type == FILE_TYPE_DISK) { #if !WIN32_ASSUME_VISTA if (!initialized) initialize (); #endif /* st_mode can be determined through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileBasicInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ BY_HANDLE_FILE_INFORMATION info; if (! GetFileInformationByHandle (h, &info)) goto failed; /* Test for error conditions before starting to fill *buf. */ if (sizeof (buf->st_size) <= 4 && info.nFileSizeHigh > 0) { errno = EOVERFLOW; return -1; } #if _GL_WINDOWS_STAT_INODES /* st_ino can be determined through GetFileInformationByHandle as 64 bits, or through GetFileInformationByHandleEx with argument FileIdInfo as 128 bits. The latter requires -D_WIN32_WINNT=_WIN32_WINNT_WIN8 or higher. */ /* Experiments show that GetFileInformationByHandleEx does not provide much more information than GetFileInformationByHandle: * The dwVolumeSerialNumber from GetFileInformationByHandle is equal to the low 32 bits of the 64-bit VolumeSerialNumber from GetFileInformationByHandleEx, and is apparently sufficient for identifying the device. * The nFileIndex from GetFileInformationByHandle is equal to the low 64 bits of the 128-bit FileId from GetFileInformationByHandleEx, and the high 64 bits of this 128-bit FileId are zero. * On a FAT file system, GetFileInformationByHandleEx fails with error ERROR_INVALID_PARAMETER, whereas GetFileInformationByHandle succeeds. * On a CIFS/SMB file system, GetFileInformationByHandleEx fails with error ERROR_INVALID_LEVEL, whereas GetFileInformationByHandle succeeds. */ # if _GL_WINDOWS_STAT_INODES == 2 if (GetFileInformationByHandleExFunc != NULL) { FILE_ID_INFO id; if (GetFileInformationByHandleExFunc (h, FileIdInfo, &id, sizeof (id))) { buf->st_dev = id.VolumeSerialNumber; verify (sizeof (ino_t) == sizeof (id.FileId)); memcpy (&buf->st_ino, &id.FileId, sizeof (ino_t)); goto ino_done; } else { switch (GetLastError ()) { case ERROR_INVALID_PARAMETER: /* older Windows version, or FAT */ case ERROR_INVALID_LEVEL: /* CIFS/SMB file system */ goto fallback; default: goto failed; } } } fallback: ; /* Fallback for older Windows versions. */ buf->st_dev = info.dwVolumeSerialNumber; buf->st_ino._gl_ino[0] = ((ULONGLONG) info.nFileIndexHigh << 32) | (ULONGLONG) info.nFileIndexLow; buf->st_ino._gl_ino[1] = 0; ino_done: ; # else /* _GL_WINDOWS_STAT_INODES == 1 */ buf->st_dev = info.dwVolumeSerialNumber; buf->st_ino = ((ULONGLONG) info.nFileIndexHigh << 32) | (ULONGLONG) info.nFileIndexLow; # endif #else /* st_ino is not wide enough for identifying a file on a device. Without st_ino, st_dev is pointless. */ buf->st_dev = 0; buf->st_ino = 0; #endif /* st_mode. */ unsigned int mode = /* XXX How to handle FILE_ATTRIBUTE_REPARSE_POINT ? */ ((info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? _S_IFDIR | S_IEXEC_UGO : _S_IFREG) | S_IREAD_UGO | ((info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? 0 : S_IWRITE_UGO); if (!(info.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { /* Determine whether the file is executable by looking at the file name suffix. If the file name is already known, use it. Otherwise, for non-empty files, it can be determined through GetFinalPathNameByHandle or through GetFileInformationByHandleEx with argument FileNameInfo Both require -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (info.nFileSizeHigh > 0 || info.nFileSizeLow > 0) { char fpath[PATH_MAX]; if (path != NULL || (GetFinalPathNameByHandleFunc != NULL && GetFinalPathNameByHandleFunc (h, fpath, sizeof (fpath), VOLUME_NAME_NONE) < sizeof (fpath) && (path = fpath, 1))) { const char *last_dot = NULL; const char *p; for (p = path; *p != '\0'; p++) if (*p == '.') last_dot = p; if (last_dot != NULL) { const char *suffix = last_dot + 1; if (_stricmp (suffix, "exe") == 0 || _stricmp (suffix, "bat") == 0 || _stricmp (suffix, "cmd") == 0 || _stricmp (suffix, "com") == 0) mode |= S_IEXEC_UGO; } } else /* Cannot determine file name. Pretend that it is executable. */ mode |= S_IEXEC_UGO; } } buf->st_mode = mode; /* st_nlink can be determined through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileStandardInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ buf->st_nlink = (info.nNumberOfLinks > SHRT_MAX ? SHRT_MAX : info.nNumberOfLinks); /* There's no easy way to map the Windows SID concept to an integer. */ buf->st_uid = 0; buf->st_gid = 0; /* st_rdev is irrelevant for normal files and directories. */ buf->st_rdev = 0; /* st_size can be determined through GetFileSizeEx or through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileStandardInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ if (sizeof (buf->st_size) <= 4) /* Range check already done above. */ buf->st_size = info.nFileSizeLow; else buf->st_size = ((long long) info.nFileSizeHigh << 32) | (long long) info.nFileSizeLow; /* st_atime, st_mtime, st_ctime can be determined through GetFileTime or through GetFileAttributesEx or through GetFileInformationByHandle or through GetFileInformationByHandleEx with argument FileBasicInfo The latter requires -D_WIN32_WINNT=_WIN32_WINNT_VISTA or higher. */ #if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim = _gl_convert_FILETIME_to_timespec (&info.ftLastAccessTime); buf->st_mtim = _gl_convert_FILETIME_to_timespec (&info.ftLastWriteTime); buf->st_ctim = _gl_convert_FILETIME_to_timespec (&info.ftCreationTime); #else buf->st_atime = _gl_convert_FILETIME_to_POSIX (&info.ftLastAccessTime); buf->st_mtime = _gl_convert_FILETIME_to_POSIX (&info.ftLastWriteTime); buf->st_ctime = _gl_convert_FILETIME_to_POSIX (&info.ftCreationTime); #endif return 0; } else if (type == FILE_TYPE_CHAR || type == FILE_TYPE_PIPE) { buf->st_dev = 0; #if _GL_WINDOWS_STAT_INODES == 2 buf->st_ino._gl_ino[0] = buf->st_ino._gl_ino[1] = 0; #else buf->st_ino = 0; #endif buf->st_mode = (type == FILE_TYPE_PIPE ? _S_IFIFO : _S_IFCHR); buf->st_nlink = 1; buf->st_uid = 0; buf->st_gid = 0; buf->st_rdev = 0; if (type == FILE_TYPE_PIPE) { /* PeekNamedPipe */ DWORD bytes_available; if (PeekNamedPipe (h, NULL, 0, NULL, &bytes_available, NULL)) buf->st_size = bytes_available; else buf->st_size = 0; } else buf->st_size = 0; #if _GL_WINDOWS_STAT_TIMESPEC buf->st_atim.tv_sec = 0; buf->st_atim.tv_nsec = 0; buf->st_mtim.tv_sec = 0; buf->st_mtim.tv_nsec = 0; buf->st_ctim.tv_sec = 0; buf->st_ctim.tv_nsec = 0; #else buf->st_atime = 0; buf->st_mtime = 0; buf->st_ctime = 0; #endif return 0; } else { errno = ENOENT; return -1; } failed: { DWORD error = GetLastError (); #if 0 fprintf (stderr, "_gl_fstat_by_handle error 0x%x\n", (unsigned int) error); #endif switch (error) { case ERROR_ACCESS_DENIED: case ERROR_SHARING_VIOLATION: errno = EACCES; break; case ERROR_OUTOFMEMORY: errno = ENOMEM; break; case ERROR_WRITE_FAULT: case ERROR_READ_FAULT: case ERROR_GEN_FAILURE: errno = EIO; break; default: errno = EINVAL; break; } return -1; } } #else /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; #endif shishi-1.0.3/src/gl/m4/0000755000000000000000000000000014273616163011473 500000000000000shishi-1.0.3/src/gl/m4/getopt.m40000644000000000000000000003144514273615074013166 00000000000000# getopt.m4 serial 48 dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Request a POSIX compliant getopt function. AC_DEFUN([gl_FUNC_GETOPT_POSIX], [ m4_divert_text([DEFAULTS], [gl_getopt_required=POSIX]) AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) dnl Other modules can request the gnulib implementation of the getopt dnl functions unconditionally, by defining gl_REPLACE_GETOPT_ALWAYS. dnl argp.m4 does this. m4_ifdef([gl_REPLACE_GETOPT_ALWAYS], [ REPLACE_GETOPT=1 ], [ REPLACE_GETOPT=0 if test -n "$gl_replace_getopt"; then REPLACE_GETOPT=1 fi ]) GL_GENERATE_GETOPT_H=false GL_GENERATE_GETOPT_CDEFS_H=false if test $REPLACE_GETOPT = 1; then dnl Arrange for getopt.h to be created. gl_GETOPT_SUBSTITUTE_HEADER fi ]) # Request a POSIX compliant getopt function with GNU extensions (such as # options with optional arguments) and the functions getopt_long, # getopt_long_only. AC_DEFUN([gl_FUNC_GETOPT_GNU], [ dnl Set the variable gl_getopt_required, so that all invocations of dnl gl_GETOPT_CHECK_HEADERS in the scope of the current configure file dnl will check for getopt with GNU extensions. dnl This means that if one gnulib-tool invocation requests getopt-posix dnl and another gnulib-tool invocation requests getopt-gnu, it is as if dnl both had requested getopt-gnu. m4_divert_text([INIT_PREPARE], [gl_getopt_required=GNU]) dnl No need to invoke gl_FUNC_GETOPT_POSIX here; this is automatically dnl done through the module dependency getopt-gnu -> getopt-posix. ]) # Determine whether to replace the entire getopt facility. AC_DEFUN([gl_GETOPT_CHECK_HEADERS], [ AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles AC_REQUIRE([AC_PROG_AWK]) dnl for awk that supports ENVIRON dnl Persuade Solaris to declare optarg, optind, opterr, optopt. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) gl_CHECK_NEXT_HEADERS([getopt.h]) if test $ac_cv_header_getopt_h = yes; then HAVE_GETOPT_H=1 else HAVE_GETOPT_H=0 fi AC_SUBST([HAVE_GETOPT_H]) gl_replace_getopt= dnl Test whether is available. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then AC_CHECK_HEADERS([getopt.h], [], [gl_replace_getopt=yes]) fi dnl Test whether the function getopt_long is available. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then AC_CHECK_FUNCS([getopt_long_only], [], [gl_replace_getopt=yes]) fi dnl POSIX 2008 does not specify leading '+' behavior, but see dnl http://austingroupbugs.net/view.php?id=191 for a recommendation on dnl the next version of POSIX. For now, we only guarantee leading '+' dnl behavior with getopt-gnu. if test -z "$gl_replace_getopt"; then AC_CACHE_CHECK([whether getopt is POSIX compatible], [gl_cv_func_getopt_posix], [ dnl Merging these three different test programs into a single one dnl would require a reset mechanism. On BSD systems, it can be done dnl through 'optreset'; on some others (glibc), it can be done by dnl setting 'optind' to 0; on others again (HP-UX, IRIX, OSF/1, dnl Solaris 9, musl libc), there is no such mechanism. if test $cross_compiling = no; then dnl Sanity check. Succeeds everywhere (except on MSVC, dnl which lacks and getopt() entirely). AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include int main () { static char program[] = "program"; static char a[] = "-a"; static char foo[] = "foo"; static char bar[] = "bar"; char *argv[] = { program, a, foo, bar, NULL }; int c; c = getopt (4, argv, "ab"); if (!(c == 'a')) return 1; c = getopt (4, argv, "ab"); if (!(c == -1)) return 2; if (!(optind == 2)) return 3; return 0; } ]])], [gl_cv_func_getopt_posix=maybe], [gl_cv_func_getopt_posix=no]) if test $gl_cv_func_getopt_posix = maybe; then dnl Sanity check with '+'. Succeeds everywhere (except on MSVC, dnl which lacks and getopt() entirely). AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include int main () { static char program[] = "program"; static char donald[] = "donald"; static char p[] = "-p"; static char billy[] = "billy"; static char duck[] = "duck"; static char a[] = "-a"; static char bar[] = "bar"; char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; int c; c = getopt (7, argv, "+abp:q:"); if (!(c == -1)) return 4; if (!(strcmp (argv[0], "program") == 0)) return 5; if (!(strcmp (argv[1], "donald") == 0)) return 6; if (!(strcmp (argv[2], "-p") == 0)) return 7; if (!(strcmp (argv[3], "billy") == 0)) return 8; if (!(strcmp (argv[4], "duck") == 0)) return 9; if (!(strcmp (argv[5], "-a") == 0)) return 10; if (!(strcmp (argv[6], "bar") == 0)) return 11; if (!(optind == 1)) return 12; return 0; } ]])], [gl_cv_func_getopt_posix=maybe], [gl_cv_func_getopt_posix=no]) fi if test $gl_cv_func_getopt_posix = maybe; then dnl Detect Mac OS X 10.5, AIX 7.1, mingw bug. AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include #include int main () { static char program[] = "program"; static char ab[] = "-ab"; char *argv[3] = { program, ab, NULL }; if (getopt (2, argv, "ab:") != 'a') return 13; if (getopt (2, argv, "ab:") != '?') return 14; if (optopt != 'b') return 15; if (optind != 2) return 16; return 0; } ]])], [gl_cv_func_getopt_posix=yes], [gl_cv_func_getopt_posix=no]) fi else case "$host_os" in darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; *) gl_cv_func_getopt_posix="guessing yes";; esac fi ]) case "$gl_cv_func_getopt_posix" in *no) gl_replace_getopt=yes ;; esac fi if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then AC_CACHE_CHECK([for working GNU getopt function], [gl_cv_func_getopt_gnu], [# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the # optstring is necessary for programs like m4 that have POSIX-mandated # semantics for supporting options interspersed with files. # Also, since getopt_long is a GNU extension, we require optind=0. # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; # so take care to revert to the correct (non-)export state. dnl GNU Coding Standards currently allow awk but not env; besides, env dnl is ambiguous with environment values that contain newlines. gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" #include #include ]GL_NOCRASH[ ]], [[ int result = 0; nocrash_init(); /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10. */ { static char conftest[] = "conftest"; static char plus[] = "-+"; char *argv[3] = { conftest, plus, NULL }; opterr = 0; if (getopt (2, argv, "+a") != '?') result |= 1; } /* This code succeeds on glibc 2.8, mingw, and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ { static char program[] = "program"; static char p[] = "-p"; static char foo[] = "foo"; static char bar[] = "bar"; char *argv[] = { program, p, foo, bar, NULL }; optind = 1; if (getopt (4, argv, "p::") != 'p') result |= 2; else if (optarg != NULL) result |= 4; else if (getopt (4, argv, "p::") != -1) result |= 6; else if (optind != 2) result |= 8; } /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ { static char program[] = "program"; static char foo[] = "foo"; static char p[] = "-p"; char *argv[] = { program, foo, p, NULL }; optind = 0; if (getopt (3, argv, "-p") != 1) result |= 16; else if (getopt (3, argv, "-p") != 'p') result |= 16; } /* This code fails on glibc 2.11. */ { static char program[] = "program"; static char b[] = "-b"; static char a[] = "-a"; char *argv[] = { program, b, a, NULL }; optind = opterr = 0; if (getopt (3, argv, "+:a:b") != 'b') result |= 32; else if (getopt (3, argv, "+:a:b") != ':') result |= 32; } /* This code dumps core on glibc 2.14. */ { static char program[] = "program"; static char w[] = "-W"; static char dummy[] = "dummy"; char *argv[] = { program, w, dummy, NULL }; optind = opterr = 1; if (getopt (3, argv, "W;") != 'W') result |= 64; } return result; ]])], [gl_cv_func_getopt_gnu=yes], [gl_cv_func_getopt_gnu=no], [dnl Cross compiling. dnl Assume the worst, even on glibc platforms. dnl But obey --enable-cross-guesses. gl_cv_func_getopt_gnu="$gl_cross_guess_normal" ]) case $gl_had_POSIXLY_CORRECT in exported) ;; yes) AS_UNSET([POSIXLY_CORRECT]); POSIXLY_CORRECT=1 ;; *) AS_UNSET([POSIXLY_CORRECT]) ;; esac ]) if test "$gl_cv_func_getopt_gnu" != yes; then gl_replace_getopt=yes else AC_CACHE_CHECK([for working GNU getopt_long function], [gl_cv_func_getopt_long_gnu], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include ]], [[static const struct option long_options[] = { { "xtremely-",no_argument, NULL, 1003 }, { "xtra", no_argument, NULL, 1001 }, { "xtreme", no_argument, NULL, 1002 }, { "xtremely", no_argument, NULL, 1003 }, { NULL, 0, NULL, 0 } }; /* This code fails on OpenBSD 5.0. */ { static char program[] = "program"; static char xtremel[] = "--xtremel"; char *argv[] = { program, xtremel, NULL }; int option_index; optind = 1; opterr = 0; if (getopt_long (2, argv, "", long_options, &option_index) != 1003) return 1; } return 0; ]])], [gl_cv_func_getopt_long_gnu=yes], [gl_cv_func_getopt_long_gnu=no], [dnl Cross compiling. Guess no on OpenBSD, yes otherwise. case "$host_os" in openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; *) gl_cv_func_getopt_long_gnu="guessing yes";; esac ]) ]) case "$gl_cv_func_getopt_long_gnu" in *yes) ;; *) gl_replace_getopt=yes ;; esac fi fi ]) AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], [ AC_CHECK_HEADERS_ONCE([sys/cdefs.h]) if test $ac_cv_header_sys_cdefs_h = yes; then HAVE_SYS_CDEFS_H=1 else HAVE_SYS_CDEFS_H=0 fi AC_SUBST([HAVE_SYS_CDEFS_H]) AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], [Define to rpl_ if the getopt replacement functions and variables should be used.]) GL_GENERATE_GETOPT_H=true GL_GENERATE_GETOPT_CDEFS_H=true ]) shishi-1.0.3/src/gl/m4/nocrash.m40000644000000000000000000001055514273615074013320 00000000000000# nocrash.m4 serial 5 dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Based on libsigsegv, from Bruno Haible and Paolo Bonzini. AC_PREREQ([2.13]) dnl Expands to some code for use in .c programs that will cause the configure dnl test to exit instead of crashing. This is useful to avoid triggering dnl action from a background debugger and to avoid core dumps. dnl Usage: ... dnl ]GL_NOCRASH[ dnl ... dnl int main() { nocrash_init(); ... } AC_DEFUN([GL_NOCRASH],[[ #include #if defined __MACH__ && defined __APPLE__ /* Avoid a crash on Mac OS X. */ #include #include #include #include #include #include /* The exception port on which our thread listens. */ static mach_port_t our_exception_port; /* The main function of the thread listening for exceptions of type EXC_BAD_ACCESS. */ static void * mach_exception_thread (void *arg) { /* Buffer for a message to be received. */ struct { mach_msg_header_t head; mach_msg_body_t msgh_body; char data[1024]; } msg; mach_msg_return_t retval; /* Wait for a message on the exception port. */ retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); if (retval != MACH_MSG_SUCCESS) abort (); exit (1); } static void nocrash_init (void) { mach_port_t self = mach_task_self (); /* Allocate a port on which the thread shall listen for exceptions. */ if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) == KERN_SUCCESS) { /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ if (mach_port_insert_right (self, our_exception_port, our_exception_port, MACH_MSG_TYPE_MAKE_SEND) == KERN_SUCCESS) { /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting for us. */ exception_mask_t mask = EXC_MASK_BAD_ACCESS; /* Create the thread listening on the exception port. */ pthread_attr_t attr; pthread_t thread; if (pthread_attr_init (&attr) == 0 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { pthread_attr_destroy (&attr); /* Replace the exception port info for these exceptions with our own. Note that we replace the exception port for the entire task, not only for a particular thread. This has the effect that when our exception port gets the message, the thread specific exception port has already been asked, and we don't need to bother about it. See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ task_set_exception_ports (self, mask, our_exception_port, EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); } } } } #elif defined _WIN32 && ! defined __CYGWIN__ /* Avoid a crash on native Windows. */ #define WIN32_LEAN_AND_MEAN #include #include static LONG WINAPI exception_filter (EXCEPTION_POINTERS *ExceptionInfo) { switch (ExceptionInfo->ExceptionRecord->ExceptionCode) { case EXCEPTION_ACCESS_VIOLATION: case EXCEPTION_IN_PAGE_ERROR: case EXCEPTION_STACK_OVERFLOW: case EXCEPTION_GUARD_PAGE: case EXCEPTION_PRIV_INSTRUCTION: case EXCEPTION_ILLEGAL_INSTRUCTION: case EXCEPTION_DATATYPE_MISALIGNMENT: case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: case EXCEPTION_NONCONTINUABLE_EXCEPTION: exit (1); } return EXCEPTION_CONTINUE_SEARCH; } static void nocrash_init (void) { SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); } #else /* Avoid a crash on POSIX systems. */ #include #include /* A POSIX signal handler. */ static void exception_handler (int sig) { _exit (1); } static void nocrash_init (void) { #ifdef SIGSEGV signal (SIGSEGV, exception_handler); #endif #ifdef SIGBUS signal (SIGBUS, exception_handler); #endif } #endif ]]) shishi-1.0.3/src/gl/m4/error.m40000644000000000000000000000200314273615074013001 00000000000000#serial 15 # Copyright (C) 1996-1998, 2001-2004, 2009-2022 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_ERROR], [ dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer dnl maintained in Autoconf and because it invokes AC_LIBOBJ. AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[error_at_line (0, 0, "", 0, "an error occurred");]])], [ac_cv_lib_error_at_line=yes], [ac_cv_lib_error_at_line=no])]) ]) # Prerequisites of lib/error.c. AC_DEFUN([gl_PREREQ_ERROR], [ dnl Use system extensions on Android, so that AC_FUNC_STRERROR_R dnl discovers the GNU API for strerror_r on Android API level 23 and later. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([AC_FUNC_STRERROR_R]) : ]) shishi-1.0.3/src/gl/m4/version-etc.m40000644000000000000000000000222614273615075014116 00000000000000# version-etc.m4 serial 1 # Copyright (C) 2009-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. dnl $1 - configure flag and define name dnl $2 - human readable description m4_define([gl_VERSION_ETC_FLAG], [dnl AC_ARG_WITH([$1], [AS_HELP_STRING([--with-$1], [$2])], [dnl case $withval in yes|no) ;; *) AC_DEFINE_UNQUOTED(AS_TR_CPP([PACKAGE_$1]), ["$withval"], [$2]) ;; esac ]) ]) AC_DEFUN([gl_VERSION_ETC], [dnl gl_VERSION_ETC_FLAG([packager], [String identifying the packager of this software]) gl_VERSION_ETC_FLAG([packager-version], [Packager-specific version information]) gl_VERSION_ETC_FLAG([packager-bug-reports], [Packager info for bug reports (URL/e-mail/...)]) if test "X$with_packager" = "X" && \ test "X$with_packager_version$with_packager_bug_reports" != "X" then AC_MSG_ERROR([The --with-packager-{bug-reports,version} options require --with-packager]) fi ]) shishi-1.0.3/src/gl/m4/getprogname.m40000644000000000000000000000263314273615074014171 00000000000000# getprogname.m4 - check for getprogname or replacements for it # Copyright (C) 2016-2022 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([gl_FUNC_GETPROGNAME], [ AC_CHECK_FUNCS_ONCE([getprogname getexecname]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) ac_found=0 AC_CHECK_DECLS([program_invocation_name], [ac_found=1], [], [#include ]) AC_CHECK_DECLS([program_invocation_short_name], [ac_found=1], [], [#include ]) AC_CHECK_DECLS([__argv], [ac_found=1], [], [#include ]) # Incur the cost of this test only if none of the above worked. if test $ac_found = 0; then # On OpenBSD 5.1, using the global __progname variable appears to be # the only way to implement getprogname. AC_CACHE_CHECK([whether __progname is defined in default libraries], [gl_cv_var___progname], [ gl_cv_var___progname= AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[extern char *__progname;]], [[return *__progname;]] )], [gl_cv_var___progname=yes] ) ] ) if test "$gl_cv_var___progname" = yes; then AC_DEFINE([HAVE_VAR___PROGNAME], 1, [Define if you have a global __progname variable]) fi fi ]) shishi-1.0.3/src/gl/m4/ld-output-def.m40000644000000000000000000000204014273615074014342 00000000000000# ld-output-def.m4 serial 3 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson # gl_LD_OUTPUT_DEF() # ------------- # Check if linker supports -Wl,--output-def and define automake # conditional HAVE_LD_OUTPUT_DEF if it is. AC_DEFUN([gl_LD_OUTPUT_DEF], [ AC_CACHE_CHECK([if gcc/ld supports -Wl,--output-def], [gl_cv_ld_output_def], [if test "$enable_shared" = no; then gl_cv_ld_output_def="not needed, shared libraries are disabled" else gl_ldflags_save=$LDFLAGS LDFLAGS="-Wl,--output-def,conftest.def" AC_LINK_IFELSE([AC_LANG_PROGRAM([[]])], [gl_cv_ld_output_def=yes], [gl_cv_ld_output_def=no]) rm -f conftest.def LDFLAGS="$gl_ldflags_save" fi]) AM_CONDITIONAL([HAVE_LD_OUTPUT_DEF], test "x$gl_cv_ld_output_def" = "xyes") ]) shishi-1.0.3/src/gl/m4/double-slash-root.m40000644000000000000000000000312514273615074015221 00000000000000# double-slash-root.m4 serial 4 -*- Autoconf -*- dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_DOUBLE_SLASH_ROOT], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([whether // is distinct from /], [gl_cv_double_slash_root], [ if test x"$cross_compiling" = xyes ; then # When cross-compiling, there is no way to tell whether // is special # short of a list of hosts. However, the only known hosts to date # that have a distinct // are Apollo DomainOS (too old to port to), # Cygwin, and z/OS. If anyone knows of another system for which // has # special semantics and is distinct from /, please report it to # . case $host in *-cygwin | i370-ibm-openedition) gl_cv_double_slash_root=yes ;; *) # Be optimistic and assume that / and // are the same when we # don't know. gl_cv_double_slash_root='unknown, assuming no' ;; esac else set x `ls -di / // 2>/dev/null` if test "$[2]" = "$[4]" && wc //dev/null >/dev/null 2>&1; then gl_cv_double_slash_root=no else gl_cv_double_slash_root=yes fi fi]) if test "$gl_cv_double_slash_root" = yes; then AC_DEFINE([DOUBLE_SLASH_IS_DISTINCT_ROOT], [1], [Define to 1 if // is a file system root distinct from /.]) fi ]) shishi-1.0.3/src/gl/m4/locale_h.m40000644000000000000000000001375614273615074013437 00000000000000# locale_h.m4 serial 28 dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN_ONCE([gl_LOCALE_H], [ dnl Ensure to expand the default settings once only, before all statements dnl that occur in other macros. AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) dnl Persuade glibc to define locale_t and the int_p_*, int_n_* dnl members of 'struct lconv'. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) dnl If is replaced, then must also be replaced. AC_REQUIRE([gl_STDDEF_H]) AC_REQUIRE([gl_LOCALE_T]) dnl Solaris 11.0 defines the int_p_*, int_n_* members of 'struct lconv' dnl only if _LCONV_C99 is defined. AC_REQUIRE([AC_CANONICAL_HOST]) case "$host_os" in solaris*) AC_DEFINE([_LCONV_C99], [1], [Define to 1 on Solaris.]) ;; esac AC_CACHE_CHECK([whether locale.h conforms to POSIX:2001], [gl_cv_header_locale_h_posix2001], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include int x = LC_MESSAGES; int y = sizeof (((struct lconv *) 0)->decimal_point);]], [[]])], [gl_cv_header_locale_h_posix2001=yes], [gl_cv_header_locale_h_posix2001=no])]) dnl Check whether 'struct lconv' is complete. dnl Bionic libc's 'struct lconv' is just a dummy. dnl On OpenBSD 4.9, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.x, dnl mingw, MSVC 9, it lacks the int_p_* and int_n_* members. AC_CACHE_CHECK([whether struct lconv is properly defined], [gl_cv_sys_struct_lconv_ok], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include struct lconv l; int x = sizeof (l.decimal_point); int y = sizeof (l.int_p_cs_precedes);]], [[]])], [gl_cv_sys_struct_lconv_ok=yes], [gl_cv_sys_struct_lconv_ok=no]) ]) if test $gl_cv_sys_struct_lconv_ok = no; then dnl On native Windows with MSVC, merely define these member names as macros. dnl This avoids trouble in C++ mode. case "$host_os" in mingw*) AC_EGREP_CPP([Special], [ #ifdef _MSC_VER Special #endif ], [], [REPLACE_STRUCT_LCONV=1]) ;; *) REPLACE_STRUCT_LCONV=1 ;; esac fi dnl is always overridden, because of GNULIB_POSIXCHECK. gl_NEXT_HEADERS([locale.h]) dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include /* Some systems provide declarations in a non-standard header. */ #if HAVE_XLOCALE_H # include #endif ]], [setlocale newlocale duplocale freelocale]) ]) dnl Checks to determine whether the system has the locale_t type, dnl and how to obtain it. AC_DEFUN([gl_LOCALE_T], [ dnl Persuade glibc and Solaris to define locale_t. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) dnl Check whether use of locale_t requires inclusion of , dnl e.g. on Mac OS X 10.5. If does not define locale_t by dnl itself, we assume that will do so. AC_CACHE_CHECK([whether locale.h defines locale_t], [gl_cv_header_locale_has_locale_t], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include locale_t x;]], [[]])], [gl_cv_header_locale_has_locale_t=yes], [gl_cv_header_locale_has_locale_t=no]) ]) dnl Check for . AC_CHECK_HEADERS_ONCE([xlocale.h]) if test $ac_cv_header_xlocale_h = yes; then HAVE_XLOCALE_H=1 if test $gl_cv_header_locale_has_locale_t = yes; then gl_cv_header_locale_h_needs_xlocale_h=no else gl_cv_header_locale_h_needs_xlocale_h=yes fi HAVE_LOCALE_T=1 else HAVE_XLOCALE_H=0 gl_cv_header_locale_h_needs_xlocale_h=no if test $gl_cv_header_locale_has_locale_t = yes; then HAVE_LOCALE_T=1 else HAVE_LOCALE_T=0 fi fi AC_SUBST([HAVE_XLOCALE_H]) ]) # gl_LOCALE_MODULE_INDICATOR([modulename]) # sets the shell variable that indicates the presence of the given module # to a C preprocessor expression that will evaluate to 1. # This macro invocation must not occur in macros that are AC_REQUIREd. AC_DEFUN([gl_LOCALE_MODULE_INDICATOR], [ dnl Ensure to expand the default settings once only. gl_LOCALE_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_SET_VARIABLE([$1]) dnl Define it also as a C macro, for the benefit of the unit tests. gl_MODULE_INDICATOR_FOR_TESTS([$1]) ]) # Initializes the default values for AC_SUBSTed shell variables. # This macro must not be AC_REQUIREd. It must only be invoked, and only # outside of macros or in macros that are not AC_REQUIREd. AC_DEFUN([gl_LOCALE_H_REQUIRE_DEFAULTS], [ m4_defun(GL_MODULE_INDICATOR_PREFIX[_LOCALE_H_MODULE_INDICATOR_DEFAULTS], [ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOCALECONV]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETLOCALE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETLOCALE_NULL]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUPLOCALE]) gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOCALENAME]) ]) m4_require(GL_MODULE_INDICATOR_PREFIX[_LOCALE_H_MODULE_INDICATOR_DEFAULTS]) AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) ]) AC_DEFUN([gl_LOCALE_H_DEFAULTS], [ dnl Assume proper GNU behavior unless another module says otherwise. HAVE_NEWLOCALE=1; AC_SUBST([HAVE_NEWLOCALE]) HAVE_DUPLOCALE=1; AC_SUBST([HAVE_DUPLOCALE]) HAVE_FREELOCALE=1; AC_SUBST([HAVE_FREELOCALE]) REPLACE_LOCALECONV=0; AC_SUBST([REPLACE_LOCALECONV]) REPLACE_SETLOCALE=0; AC_SUBST([REPLACE_SETLOCALE]) REPLACE_NEWLOCALE=0; AC_SUBST([REPLACE_NEWLOCALE]) REPLACE_DUPLOCALE=0; AC_SUBST([REPLACE_DUPLOCALE]) REPLACE_FREELOCALE=0; AC_SUBST([REPLACE_FREELOCALE]) REPLACE_STRUCT_LCONV=0; AC_SUBST([REPLACE_STRUCT_LCONV]) LOCALENAME_ENHANCE_LOCALE_FUNCS=0; AC_SUBST([LOCALENAME_ENHANCE_LOCALE_FUNCS]) ]) shishi-1.0.3/src/gl/m4/autobuild.m40000644000000000000000000000200714273615074013644 00000000000000# autobuild.m4 serial 8 dnl Copyright (C) 2004, 2006-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson # Usage: AB_INIT([MODE]). AC_DEFUN([AB_INIT], [ AC_REQUIRE([AC_CANONICAL_BUILD]) AC_REQUIRE([AC_CANONICAL_HOST]) if test -z "$AB_PACKAGE"; then AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} fi AC_MSG_NOTICE([autobuild project... $AB_PACKAGE]) if test -z "$AB_VERSION"; then AB_VERSION=${PACKAGE_VERSION:-$VERSION} fi AC_MSG_NOTICE([autobuild revision... $AB_VERSION]) hostname=`hostname` if test "$hostname"; then AC_MSG_NOTICE([autobuild hostname... $hostname]) fi m4_if([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])]) date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` if test "$?" != 0; then date=`date` fi if test "$date"; then AC_MSG_NOTICE([autobuild timestamp... $date]) fi ]) shishi-1.0.3/src/gl/m4/warnings.m40000644000000000000000000000745614273615075013522 00000000000000# warnings.m4 serial 16 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson # gl_AS_VAR_APPEND(VAR, VALUE) # ---------------------------- # Provide the functionality of AS_VAR_APPEND if Autoconf does not have it. m4_ifdef([AS_VAR_APPEND], [m4_copy([AS_VAR_APPEND], [gl_AS_VAR_APPEND])], [m4_define([gl_AS_VAR_APPEND], [AS_VAR_SET([$1], [AS_VAR_GET([$1])$2])])]) # gl_COMPILER_OPTION_IF(OPTION, [IF-SUPPORTED], [IF-NOT-SUPPORTED], # [PROGRAM = AC_LANG_PROGRAM()]) # ----------------------------------------------------------------- # Check if the compiler supports OPTION when compiling PROGRAM. # # The effects of this macro depend on the current language (_AC_LANG). AC_DEFUN([gl_COMPILER_OPTION_IF], [ AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_[]_AC_LANG_ABBREV[]_$1])dnl AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl AS_LITERAL_IF([$1], [m4_pushdef([gl_Positive], m4_bpatsubst([$1], [^-Wno-], [-W]))], [gl_positive="$1" case $gl_positive in -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; esac m4_pushdef([gl_Positive], [$gl_positive])])dnl AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], [gl_Warn], [ gl_save_compiler_FLAGS="$gl_Flags" gl_AS_VAR_APPEND(m4_defn([gl_Flags]), [" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["]) AC_LINK_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([[]])])], [AS_VAR_SET([gl_Warn], [yes])], [AS_VAR_SET([gl_Warn], [no])]) gl_Flags="$gl_save_compiler_FLAGS" ]) AS_VAR_IF(gl_Warn, [yes], [$2], [$3]) m4_popdef([gl_Positive])dnl AS_VAR_POPDEF([gl_Flags])dnl AS_VAR_POPDEF([gl_Warn])dnl ]) # gl_UNKNOWN_WARNINGS_ARE_ERRORS # ------------------------------ # Clang doesn't complain about unknown warning options unless one also # specifies -Wunknown-warning-option -Werror. Detect this. # # The effects of this macro depend on the current language (_AC_LANG). AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS], [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) # Specialization for _AC_LANG = C. This macro can be AC_REQUIREd. AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)], [ AC_LANG_PUSH([C]) gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL AC_LANG_POP([C]) ]) # Specialization for _AC_LANG = C++. This macro can be AC_REQUIREd. AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)], [ AC_LANG_PUSH([C++]) gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL AC_LANG_POP([C++]) ]) # Specialization for _AC_LANG = Objective C. This macro can be AC_REQUIREd. AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)], [ AC_LANG_PUSH([Objective C]) gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL AC_LANG_POP([Objective C]) ]) AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL], [gl_COMPILER_OPTION_IF([-Werror -Wunknown-warning-option], [gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'], [gl_unknown_warnings_are_errors=])]) # gl_WARN_ADD(OPTION, [VARIABLE = WARN_CFLAGS/WARN_CXXFLAGS], # [PROGRAM = AC_LANG_PROGRAM()]) # ----------------------------------------------------------- # Adds parameter to WARN_CFLAGS/WARN_CXXFLAGS if the compiler supports it # when compiling PROGRAM. For example, gl_WARN_ADD([-Wparentheses]). # # If VARIABLE is a variable name, AC_SUBST it. # # The effects of this macro depend on the current language (_AC_LANG). AC_DEFUN([gl_WARN_ADD], [AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS(]_AC_LANG[)]) gl_COMPILER_OPTION_IF([$1], [gl_AS_VAR_APPEND(m4_if([$2], [], [[WARN_]_AC_LANG_PREFIX[FLAGS]], [[$2]]), [" $1"])], [], [$3]) m4_ifval([$2], [AS_LITERAL_IF([$2], [AC_SUBST([$2])])], [AC_SUBST([WARN_]_AC_LANG_PREFIX[FLAGS])])dnl ]) # Local Variables: # mode: autoconf # End: shishi-1.0.3/src/gl/m4/gnulib-comp.m40000644000000000000000000005241214273615076014077 00000000000000# DO NOT EDIT! GENERATED AUTOMATICALLY! # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # # This file represents the compiled summary of the specification in # gnulib-cache.m4. It lists the computed macro invocations that need # to be invoked from configure.ac. # In projects that use version control, this file can be treated like # other built files. # This macro should be invoked from ./configure.ac, in the section # "Checks for programs", right after AC_PROG_CC, and certainly before # any checks for libraries, header files, types and library functions. AC_DEFUN([gl_EARLY], [ m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace m4_pattern_allow([^gl_ES$])dnl a valid locale name m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable # Pre-early section. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_PROG_AR_RANLIB]) # Code from module absolute-header: # Code from module alloca-opt: # Code from module announce-gen: # Code from module autobuild: AB_INIT # Code from module basename-lgpl: # Code from module c99: # Code from module cloexec: # Code from module close: # Code from module do-release-commit-and-tag: # Code from module double-slash-root: # Code from module dup2: # Code from module errno: # Code from module error: # Code from module extensions: # Code from module extern-inline: # Code from module fcntl: # Code from module fcntl-h: # Code from module fd-hook: # Code from module filename: # Code from module fstat: # Code from module gen-header: # Code from module gendocs: # Code from module getdtablesize: # Code from module getopt-gnu: # Code from module getopt-posix: # Code from module getprogname: # Code from module gettext-h: # Code from module git-version-gen: # Code from module gitlog-to-changelog: # Code from module gnu-web-doc-update: # Code from module gnumakefile: # Code from module gnupload: # Code from module idx: # Code from module include_next: # Code from module intprops: # Code from module largefile: AC_REQUIRE([AC_SYS_LARGEFILE]) AC_REQUIRE([gl_YEAR2038_EARLY]) # Code from module lib-msvc-compat: # Code from module lib-symbol-versions: # Code from module limits-h: # Code from module locale: # Code from module maintainer-makefile: # Code from module malloca: # Code from module manywarnings: # Code from module msvc-inval: # Code from module msvc-nothrow: # Code from module multiarch: # Code from module nocrash: # Code from module open: # Code from module pathmax: # Code from module pmccabe2html: # Code from module progname: # Code from module readme-release: # Code from module snippet/_Noreturn: # Code from module snippet/arg-nonnull: # Code from module snippet/c++defs: # Code from module snippet/warn-on-use: # Code from module ssize_t: # Code from module stat: # Code from module stat-time: # Code from module std-gnu11: # Code from module stdarg: dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode dnl for the builtin va_copy to work. gl_PROG_CC_C99 arranges for this. gl_PROG_CC_C99 # Code from module stdbool: # Code from module stddef: # Code from module stdint: # Code from module stdio: # Code from module stdlib: # Code from module strerror: # Code from module strerror-override: # Code from module string: # Code from module sys_stat: # Code from module sys_types: # Code from module time: # Code from module unistd: # Code from module update-copyright: # Code from module useless-if-before-free: # Code from module valgrind-tests: # Code from module vararrays: # Code from module vc-list-files: # Code from module verify: # Code from module version-etc: # Code from module warnings: # Code from module xalloc-oversized: ]) # This macro should be invoked from ./configure.ac, in the section # "Check for header files, types and library functions". AC_DEFUN([gl_INIT], [ AM_CONDITIONAL([GL_COND_LIBTOOL], [true]) gl_cond_libtool=true gl_m4_base='src/gl/m4' m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) m4_pushdef([gl_LIBSOURCES_LIST], []) m4_pushdef([gl_LIBSOURCES_DIR], []) m4_pushdef([GL_MACRO_PREFIX], [gl]) m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL]) gl_COMMON gl_source_base='src/gl' gl_source_base_prefix= gl_FUNC_ALLOCA gl_CONDITIONAL_HEADER([alloca.h]) AC_PROG_MKDIR_P gl_MODULE_INDICATOR_FOR_TESTS([cloexec]) gl_FUNC_CLOSE gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1]) gl_UNISTD_MODULE_INDICATOR([close]) gl_DOUBLE_SLASH_ROOT gl_FUNC_DUP2 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1]) AM_COND_IF([GL_COND_OBJ_DUP2], [ gl_PREREQ_DUP2 ]) gl_UNISTD_MODULE_INDICATOR([dup2]) gl_HEADER_ERRNO_H gl_CONDITIONAL_HEADER([errno.h]) AC_PROG_MKDIR_P gl_ERROR gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no]) AM_COND_IF([GL_COND_OBJ_ERROR], [ gl_PREREQ_ERROR ]) m4_ifdef([AM_XGETTEXT_OPTION], [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) AC_REQUIRE([gl_EXTERN_INLINE]) gl_FUNC_FCNTL gl_CONDITIONAL([GL_COND_OBJ_FCNTL], [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]) gl_FCNTL_MODULE_INDICATOR([fcntl]) gl_FCNTL_H gl_FCNTL_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_FSTAT gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1]) AM_COND_IF([GL_COND_OBJ_FSTAT], [ case "$host_os" in mingw*) AC_LIBOBJ([stat-w32]) ;; esac gl_PREREQ_FSTAT ]) gl_SYS_STAT_MODULE_INDICATOR([fstat]) gl_FUNC_GETDTABLESIZE gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE], [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1]) AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [ gl_PREREQ_GETDTABLESIZE ]) gl_UNISTD_MODULE_INDICATOR([getdtablesize]) gl_FUNC_GETOPT_GNU dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are dnl done in the getopt-posix module. gl_FUNC_GETOPT_POSIX gl_CONDITIONAL_HEADER([getopt.h]) gl_CONDITIONAL_HEADER([getopt-cdefs.h]) AC_PROG_MKDIR_P gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1]) AM_COND_IF([GL_COND_OBJ_GETOPT], [ dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1. gl_UNISTD_H_REQUIRE_DEFAULTS gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1]) ]) gl_UNISTD_MODULE_INDICATOR([getopt-posix]) gl_FUNC_GETPROGNAME AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) # Autoconf 2.61a.99 and earlier don't support linking a file only # in VPATH builds. But since GNUmakefile is for maintainer use # only, it does not matter if we skip the link with older autoconf. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH # builds, so use a shell variable to bypass this. GNUmakefile=GNUmakefile m4_if(m4_version_compare([2.61a.100], m4_defn([m4_PACKAGE_VERSION])), [1], [], [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [], [GNUmakefile=$GNUmakefile])]) AC_REQUIRE([gl_LARGEFILE]) gl_LD_OUTPUT_DEF gl_LD_VERSION_SCRIPT gl_LIMITS_H gl_CONDITIONAL_HEADER([limits.h]) AC_PROG_MKDIR_P gl_LOCALE_H gl_LOCALE_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER], [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])]) AC_REQUIRE([AC_PROG_SED]) AC_REQUIRE([AC_PROG_GREP]) gl_MALLOCA AC_REQUIRE([gl_MSVC_INVAL]) gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL], [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1]) AC_REQUIRE([gl_MSVC_NOTHROW]) gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW], [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1]) gl_MODULE_INDICATOR([msvc-nothrow]) gl_MULTIARCH gl_FUNC_OPEN gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1]) AM_COND_IF([GL_COND_OBJ_OPEN], [ gl_PREREQ_OPEN ]) gl_FCNTL_MODULE_INDICATOR([open]) gl_PATHMAX AC_PATH_PROG([PMCCABE], [pmccabe], [false]) AC_CHECK_DECLS([program_invocation_name], [], [], [#include ]) AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include ]) gt_TYPE_SSIZE_T gl_FUNC_STAT gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1]) AM_COND_IF([GL_COND_OBJ_STAT], [ case "$host_os" in mingw*) AC_LIBOBJ([stat-w32]) ;; esac gl_PREREQ_STAT ]) gl_SYS_STAT_MODULE_INDICATOR([stat]) gl_STAT_TIME gl_STAT_BIRTHTIME gl_STDARG_H gl_CONDITIONAL_HEADER([stdarg.h]) AC_PROG_MKDIR_P gl_STDBOOL_H gl_CONDITIONAL_HEADER([stdbool.h]) AC_PROG_MKDIR_P gl_STDDEF_H gl_STDDEF_H_REQUIRE_DEFAULTS gl_CONDITIONAL_HEADER([stddef.h]) AC_PROG_MKDIR_P gl_STDINT_H gl_CONDITIONAL_HEADER([stdint.h]) dnl Because of gl_REPLACE_LIMITS_H: gl_CONDITIONAL_HEADER([limits.h]) AC_PROG_MKDIR_P gl_STDIO_H gl_STDIO_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1]) gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1]) dnl No need to create extra modules for these functions. Everyone who uses dnl likely needs them. gl_STDIO_MODULE_INDICATOR([fscanf]) gl_MODULE_INDICATOR([fscanf]) gl_STDIO_MODULE_INDICATOR([scanf]) gl_MODULE_INDICATOR([scanf]) gl_STDIO_MODULE_INDICATOR([fgetc]) gl_STDIO_MODULE_INDICATOR([getc]) gl_STDIO_MODULE_INDICATOR([getchar]) gl_STDIO_MODULE_INDICATOR([fgets]) gl_STDIO_MODULE_INDICATOR([fread]) dnl No need to create extra modules for these functions. Everyone who uses dnl likely needs them. gl_STDIO_MODULE_INDICATOR([fprintf]) gl_STDIO_MODULE_INDICATOR([printf]) gl_STDIO_MODULE_INDICATOR([vfprintf]) gl_STDIO_MODULE_INDICATOR([vprintf]) gl_STDIO_MODULE_INDICATOR([fputc]) gl_STDIO_MODULE_INDICATOR([putc]) gl_STDIO_MODULE_INDICATOR([putchar]) gl_STDIO_MODULE_INDICATOR([fputs]) gl_STDIO_MODULE_INDICATOR([puts]) gl_STDIO_MODULE_INDICATOR([fwrite]) gl_STDLIB_H gl_STDLIB_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_FUNC_STRERROR gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1]) gl_MODULE_INDICATOR([strerror]) gl_STRING_MODULE_INDICATOR([strerror]) AC_REQUIRE([gl_HEADER_ERRNO_H]) AC_REQUIRE([gl_FUNC_STRERROR_0]) gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE], [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1]) AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [ gl_PREREQ_SYS_H_WINSOCK2 ]) gl_STRING_H gl_STRING_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_STAT_H gl_SYS_STAT_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_SYS_TYPES_H gl_SYS_TYPES_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_TIME_H gl_TIME_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_UNISTD_H gl_UNISTD_H_REQUIRE_DEFAULTS AC_PROG_MKDIR_P gl_VALGRIND_TESTS AC_C_VARARRAYS gl_VERSION_ETC # End of code from modules m4_ifval(gl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || for gl_file in ]gl_LIBSOURCES_LIST[ ; do if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 exit 1 fi done])dnl m4_if(m4_sysval, [0], [], [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) ]) m4_popdef([GL_MODULE_INDICATOR_PREFIX]) m4_popdef([GL_MACRO_PREFIX]) m4_popdef([gl_LIBSOURCES_DIR]) m4_popdef([gl_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) AC_CONFIG_COMMANDS_PRE([ gl_libobjs= gl_ltlibobjs= gl_libobjdeps= if test -n "$gl_LIBOBJS"; then # Remove the extension. changequote(,)dnl sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' changequote([, ])dnl for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gl_libobjs="$gl_libobjs $i.$ac_objext" gl_ltlibobjs="$gl_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps]) ]) gltests_libdeps= gltests_ltlibdeps= m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) m4_pushdef([gltests_LIBSOURCES_LIST], []) m4_pushdef([gltests_LIBSOURCES_DIR], []) m4_pushdef([GL_MACRO_PREFIX], [gltests]) m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL]) gl_COMMON AC_REQUIRE([gl_CC_ALLOW_WARNINGS]) AC_REQUIRE([gl_CXX_ALLOW_WARNINGS]) gl_source_base='src/gl/tests' gl_source_base_prefix= changequote(,)dnl gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS changequote([, ])dnl AC_SUBST([gltests_WITNESS]) gl_module_indicator_condition=$gltests_WITNESS m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) gl_VALGRIND_TESTS m4_popdef([gl_MODULE_INDICATOR_CONDITION]) m4_ifval(gltests_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || for gl_file in ]gltests_LIBSOURCES_LIST[ ; do if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 exit 1 fi done])dnl m4_if(m4_sysval, [0], [], [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) ]) m4_popdef([GL_MODULE_INDICATOR_PREFIX]) m4_popdef([GL_MACRO_PREFIX]) m4_popdef([gltests_LIBSOURCES_DIR]) m4_popdef([gltests_LIBSOURCES_LIST]) m4_popdef([AC_LIBSOURCES]) m4_popdef([AC_REPLACE_FUNCS]) m4_popdef([AC_LIBOBJ]) AC_CONFIG_COMMANDS_PRE([ gltests_libobjs= gltests_ltlibobjs= gltests_libobjdeps= if test -n "$gltests_LIBOBJS"; then # Remove the extension. changequote(,)dnl sed_drop_objext='s/\.o$//;s/\.obj$//' sed_dirname1='s,//*,/,g' sed_dirname2='s,\(.\)/$,\1,' sed_dirname3='s,^[^/]*$,.,' sed_dirname4='s,\(.\)/[^/]*$,\1,' sed_basename1='s,.*/,,' changequote([, ])dnl for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do gltests_libobjs="$gltests_libobjs $i.$ac_objext" gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"` i_base=`echo "$i" | sed -e "$sed_basename1"` gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Plo" done fi AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps]) ]) AC_REQUIRE([gl_CC_GNULIB_WARNINGS]) LIBTESTS_LIBDEPS="$gltests_libdeps" AC_SUBST([LIBTESTS_LIBDEPS]) ]) # Like AC_LIBOBJ, except that the module name goes # into gl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gl_LIBOBJ], [ AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" ]) # Like AC_REPLACE_FUNCS, except that the module name goes # into gl_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gl_REPLACE_FUNCS], [ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) ]) # Like AC_LIBSOURCES, except the directory where the source file is # expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gl_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ m4_define([gl_LIBSOURCES_DIR], [src/gl]) m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) # Like AC_LIBOBJ, except that the module name goes # into gltests_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gltests_LIBOBJ], [ AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" ]) # Like AC_REPLACE_FUNCS, except that the module name goes # into gltests_LIBOBJS instead of into LIBOBJS. AC_DEFUN([gltests_REPLACE_FUNCS], [ m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) ]) # Like AC_LIBSOURCES, except the directory where the source file is # expected is derived from the gnulib-tool parameterization, # and alloca is special cased (for the alloca-opt module). # We could also entirely rely on EXTRA_lib..._SOURCES. AC_DEFUN([gltests_LIBSOURCES], [ m4_foreach([_gl_NAME], [$1], [ m4_if(_gl_NAME, [alloca.c], [], [ m4_define([gltests_LIBSOURCES_DIR], [src/gl/tests]) m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) ]) ]) ]) # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ build-aux/announce-gen build-aux/do-release-commit-and-tag build-aux/gendocs.sh build-aux/git-version-gen build-aux/gitlog-to-changelog build-aux/gnu-web-doc-update build-aux/gnupload build-aux/pmccabe.css build-aux/pmccabe2html build-aux/update-copyright build-aux/useless-if-before-free build-aux/vc-list-files doc/gendocs_template doc/gendocs_template_min lib/_Noreturn.h lib/alloca.in.h lib/arg-nonnull.h lib/basename-lgpl.c lib/basename-lgpl.h lib/c++defs.h lib/cloexec.c lib/cloexec.h lib/close.c lib/dup2.c lib/errno.in.h lib/error.c lib/error.h lib/fcntl.c lib/fcntl.in.h lib/fd-hook.c lib/fd-hook.h lib/filename.h lib/fstat.c lib/getdtablesize.c lib/getopt-cdefs.in.h lib/getopt-core.h lib/getopt-ext.h lib/getopt-pfx-core.h lib/getopt-pfx-ext.h lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/getprogname.c lib/getprogname.h lib/gettext.h lib/idx.h lib/intprops.h lib/limits.in.h lib/locale.in.h lib/malloca.c lib/malloca.h lib/msvc-inval.c lib/msvc-inval.h lib/msvc-nothrow.c lib/msvc-nothrow.h lib/open.c lib/pathmax.h lib/progname.c lib/progname.h lib/stat-time.c lib/stat-time.h lib/stat-w32.c lib/stat-w32.h lib/stat.c lib/stdarg.in.h lib/stdbool.in.h lib/stddef.in.h lib/stdint.in.h lib/stdio-read.c lib/stdio-write.c lib/stdio.in.h lib/stdlib.in.h lib/strerror-override.c lib/strerror-override.h lib/strerror.c lib/string.in.h lib/sys_stat.in.h lib/sys_types.in.h lib/time.in.h lib/unistd.c lib/unistd.in.h lib/verify.h lib/version-etc.c lib/version-etc.h lib/warn-on-use.h lib/xalloc-oversized.h m4/00gnulib.m4 m4/absolute-header.m4 m4/alloca.m4 m4/autobuild.m4 m4/close.m4 m4/double-slash-root.m4 m4/dup2.m4 m4/eealloc.m4 m4/errno_h.m4 m4/error.m4 m4/extensions.m4 m4/extern-inline.m4 m4/fcntl-o.m4 m4/fcntl.m4 m4/fcntl_h.m4 m4/fstat.m4 m4/getdtablesize.m4 m4/getopt.m4 m4/getprogname.m4 m4/gnulib-common.m4 m4/include_next.m4 m4/largefile.m4 m4/ld-output-def.m4 m4/ld-version-script.m4 m4/limits-h.m4 m4/locale_h.m4 m4/malloca.m4 m4/manywarnings-c++.m4 m4/manywarnings.m4 m4/mode_t.m4 m4/msvc-inval.m4 m4/msvc-nothrow.m4 m4/multiarch.m4 m4/nocrash.m4 m4/off_t.m4 m4/open-cloexec.m4 m4/open-slash.m4 m4/open.m4 m4/pathmax.m4 m4/pid_t.m4 m4/ssize_t.m4 m4/stat-time.m4 m4/stat.m4 m4/std-gnu11.m4 m4/stdarg.m4 m4/stdbool.m4 m4/stddef_h.m4 m4/stdint.m4 m4/stdio_h.m4 m4/stdlib_h.m4 m4/strerror.m4 m4/string_h.m4 m4/sys_socket_h.m4 m4/sys_stat_h.m4 m4/sys_types_h.m4 m4/time_h.m4 m4/unistd_h.m4 m4/valgrind-tests.m4 m4/vararrays.m4 m4/version-etc.m4 m4/warn-on-use.m4 m4/warnings.m4 m4/wchar_t.m4 m4/wint_t.m4 m4/year2038.m4 m4/zzgnulib.m4 tests=lib/_Noreturn.h tests=lib/arg-nonnull.h tests=lib/c++defs.h tests=lib/dummy.c tests=lib/warn-on-use.h top/GNUmakefile top/README-release top/maint.mk ]) shishi-1.0.3/src/gl/m4/ld-version-script.m40000644000000000000000000000320414273615074015240 00000000000000# ld-version-script.m4 serial 5 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson # FIXME: The test below returns a false positive for mingw # cross-compiles, 'local:' statements does not reduce number of # exported symbols in a DLL. Use --disable-ld-version-script to work # around the problem. # gl_LD_VERSION_SCRIPT # -------------------- # Check if LD supports linker scripts, and define automake conditional # HAVE_LD_VERSION_SCRIPT if so. AC_DEFUN([gl_LD_VERSION_SCRIPT], [ AC_ARG_ENABLE([ld-version-script], [AS_HELP_STRING([--enable-ld-version-script], [enable linker version script (default is enabled when possible)])], [have_ld_version_script=$enableval], [AC_CACHE_CHECK([if LD -Wl,--version-script works], [gl_cv_sys_ld_version_script], [gl_cv_sys_ld_version_script=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" echo foo >conftest.map AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [], [cat > conftest.map </dev/null if test $? = 0; then gl_cv_prog_valgrind_works=yes else gl_cv_prog_valgrind_works=no fi ], [gl_cv_prog_valgrind_works=no]) ]) fi AC_SUBST([AM_VALGRINDFLAGS]) AC_SUBST([LOG_VALGRIND], ["\$(VALGRIND_PROGRAM) \$(DEFAULT_VALGRINDFLAGS) \$(VALGRINDFLAGS) \$(AM_VALGRINDFLAGS)"]) if test "$gl_cv_prog_valgrind_works" != yes; then DEFAULT_VALGRINDFLAGS= LOG_VALGRIND= VALGRIND= VALGRINDFLAGS= VALGRIND_PROGRAM= fi fi ]) shishi-1.0.3/src/gl/m4/manywarnings.m40000644000000000000000000001472514273615074014403 00000000000000# manywarnings.m4 serial 23 dnl Copyright (C) 2008-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Simon Josefsson # gl_MANYWARN_COMPLEMENT(OUTVAR, LISTVAR, REMOVEVAR) # -------------------------------------------------- # Copy LISTVAR to OUTVAR except for the entries in REMOVEVAR. # Elements separated by whitespace. In set logic terms, the function # does OUTVAR = LISTVAR \ REMOVEVAR. AC_DEFUN([gl_MANYWARN_COMPLEMENT], [ gl_warn_set= set x $2; shift for gl_warn_item do case " $3 " in *" $gl_warn_item "*) ;; *) gl_AS_VAR_APPEND([gl_warn_set], [" $gl_warn_item"]) ;; esac done $1=$gl_warn_set ]) # gl_MANYWARN_ALL_GCC(VARIABLE) # ----------------------------- # Add all documented GCC warning parameters to variable VARIABLE. # Note that you need to test them using gl_WARN_ADD if you want to # make sure your gcc understands it. # # The effects of this macro depend on the current language (_AC_LANG). AC_DEFUN([gl_MANYWARN_ALL_GCC], [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)]) # Specialization for _AC_LANG = C. AC_DEFUN([gl_MANYWARN_ALL_GCC(C)], [ AC_LANG_PUSH([C]) dnl First, check for some issues that only occur when combining multiple dnl gcc warning categories. AC_REQUIRE([AC_PROG_CC]) if test -n "$GCC"; then dnl Check if -Wextra -Werror -Wno-missing-field-initializers is supported dnl with the current $CC $CFLAGS $CPPFLAGS. AC_CACHE_CHECK([whether -Wno-missing-field-initializers is supported], [gl_cv_cc_nomfi_supported], [gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[]], [[]])], [gl_cv_cc_nomfi_supported=yes], [gl_cv_cc_nomfi_supported=no]) CFLAGS="$gl_save_CFLAGS" ]) if test "$gl_cv_cc_nomfi_supported" = yes; then dnl Now check whether -Wno-missing-field-initializers is needed dnl for the { 0, } construct. AC_CACHE_CHECK([whether -Wno-missing-field-initializers is needed], [gl_cv_cc_nomfi_needed], [gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wextra -Werror" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[int f (void) { typedef struct { int a; int b; } s_t; s_t s1 = { 0, }; return s1.b; } ]], [[]])], [gl_cv_cc_nomfi_needed=no], [gl_cv_cc_nomfi_needed=yes]) CFLAGS="$gl_save_CFLAGS" ]) fi dnl Next, check if -Werror -Wuninitialized is useful with the dnl user's choice of $CFLAGS; some versions of gcc warn that it dnl has no effect if -O is not also used AC_CACHE_CHECK([whether -Wuninitialized is supported], [gl_cv_cc_uninitialized_supported], [gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror -Wuninitialized" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[]], [[]])], [gl_cv_cc_uninitialized_supported=yes], [gl_cv_cc_uninitialized_supported=no]) CFLAGS="$gl_save_CFLAGS" ]) fi # List all gcc warning categories. # To compare this list to your installed GCC's, run this Bash command: # # comm -3 \ # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \ # awk '/^[^#]/ {print $1}' ../build-aux/gcc-warning.spec) | sort) \ # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort) $1= for gl_manywarn_item in -fanalyzer -fno-common \ -Wall \ -Warith-conversion \ -Wbad-function-cast \ -Wcast-align=strict \ -Wdate-time \ -Wdisabled-optimization \ -Wdouble-promotion \ -Wduplicated-branches \ -Wduplicated-cond \ -Wextra \ -Wformat-signedness \ -Winit-self \ -Winline \ -Winvalid-pch \ -Wlogical-op \ -Wmissing-declarations \ -Wmissing-include-dirs \ -Wmissing-prototypes \ -Wnested-externs \ -Wnull-dereference \ -Wold-style-definition \ -Wopenmp-simd \ -Woverlength-strings \ -Wpacked \ -Wpointer-arith \ -Wshadow \ -Wstack-protector \ -Wstrict-overflow \ -Wstrict-prototypes \ -Wsuggest-attribute=cold \ -Wsuggest-attribute=const \ -Wsuggest-attribute=format \ -Wsuggest-attribute=malloc \ -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=pure \ -Wsuggest-final-methods \ -Wsuggest-final-types \ -Wsync-nand \ -Wsystem-headers \ -Wtrampolines \ -Wuninitialized \ -Wunknown-pragmas \ -Wunsafe-loop-optimizations \ -Wunused-macros \ -Wvariadic-macros \ -Wvector-operation-performance \ -Wvla \ -Wwrite-strings \ \ ; do gl_AS_VAR_APPEND([$1], [" $gl_manywarn_item"]) done # gcc --help=warnings outputs an unusual form for these options; list # them here so that the above 'comm' command doesn't report a false match. gl_AS_VAR_APPEND([$1], [' -Warray-bounds=2']) gl_AS_VAR_APPEND([$1], [' -Wattribute-alias=2']) gl_AS_VAR_APPEND([$1], [' -Wbidi-chars=any,ucn']) gl_AS_VAR_APPEND([$1], [' -Wformat-overflow=2']) gl_AS_VAR_APPEND([$1], [' -Wformat=2']) gl_AS_VAR_APPEND([$1], [' -Wformat-truncation=2']) gl_AS_VAR_APPEND([$1], [' -Wimplicit-fallthrough=5']) gl_AS_VAR_APPEND([$1], [' -Wshift-overflow=2']) gl_AS_VAR_APPEND([$1], [' -Wuse-after-free=3']) gl_AS_VAR_APPEND([$1], [' -Wunused-const-variable=2']) gl_AS_VAR_APPEND([$1], [' -Wvla-larger-than=4031']) # These are needed for older GCC versions. if test -n "$GCC"; then case `($CC --version) 2>/dev/null` in 'gcc (GCC) '[[0-3]].* | \ 'gcc (GCC) '4.[[0-7]].*) gl_AS_VAR_APPEND([$1], [' -fdiagnostics-show-option']) gl_AS_VAR_APPEND([$1], [' -funit-at-a-time']) ;; esac fi # Disable specific options as needed. if test "$gl_cv_cc_nomfi_needed" = yes; then gl_AS_VAR_APPEND([$1], [' -Wno-missing-field-initializers']) fi if test "$gl_cv_cc_uninitialized_supported" = no; then gl_AS_VAR_APPEND([$1], [' -Wno-uninitialized']) fi # This warning have too many false alarms in GCC 11.2.1. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713 gl_AS_VAR_APPEND([$1], [' -Wno-analyzer-malloc-leak']) AC_LANG_POP([C]) ]) # Specialization for _AC_LANG = C++. AC_DEFUN([gl_MANYWARN_ALL_GCC(C++)], [ gl_MANYWARN_ALL_GCC_CXX_IMPL([$1]) ]) shishi-1.0.3/src/gl/m4/gnulib-cache.m40000644000000000000000000000460114273615075014200 00000000000000# Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # # This file represents the specification of how gnulib-tool is used. # It acts as a cache: It is written and read by gnulib-tool. # In projects that use version control, this file is meant to be put under # version control, like the configure.ac and various Makefile.am files. # Specification in the form of a command-line invocation: # gnulib-tool --import --local-dir=src/gl \ # --lib=libgnu \ # --source-base=src/gl \ # --m4-base=src/gl/m4 \ # --doc-base=doc \ # --tests-base=src/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=gl \ # autobuild \ # error \ # getopt-gnu \ # git-version-gen \ # gitlog-to-changelog \ # lib-msvc-compat \ # lib-symbol-versions \ # locale \ # manywarnings \ # pmccabe2html \ # progname \ # readme-release \ # update-copyright \ # valgrind-tests \ # version-etc \ # warnings # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([src/gl]) gl_MODULES([ autobuild error getopt-gnu git-version-gen gitlog-to-changelog lib-msvc-compat lib-symbol-versions locale manywarnings pmccabe2html progname readme-release update-copyright valgrind-tests version-etc warnings ]) gl_AVOID([]) gl_SOURCE_BASE([src/gl]) gl_M4_BASE([src/gl/m4]) gl_PO_BASE([]) gl_DOC_BASE([doc]) gl_TESTS_BASE([src/gl/tests]) gl_LIB([libgnu]) gl_MAKEFILE_NAME([]) gl_LIBTOOL gl_MACRO_PREFIX([gl]) gl_PO_DOMAIN([]) gl_WITNESS_C_MACRO([]) shishi-1.0.3/src/gl/version-etc.c0000644000000000000000000002230514273615075013500 00000000000000/* Print --version and bug-reporting information in a consistent format. Copyright (C) 1999-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Jim Meyering. */ #include /* Specification. */ #include "version-etc.h" #include #include #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #include "gettext.h" #define _(msgid) gettext (msgid) /* If you use AM_INIT_AUTOMAKE's no-define option, PACKAGE is not defined. Use PACKAGE_TARNAME instead. */ #if ! defined PACKAGE && defined PACKAGE_TARNAME # define PACKAGE PACKAGE_TARNAME #endif enum { COPYRIGHT_YEAR = 2022 }; /* The three functions below display the --version information the standard way. If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of the program. The formats are therefore: PACKAGE VERSION or COMMAND_NAME (PACKAGE) VERSION. The functions differ in the way they are passed author names. */ /* Display the --version information the standard way. Author names are given in the array AUTHORS. N_AUTHORS is the number of elements in the array. */ void version_etc_arn (FILE *stream, const char *command_name, const char *package, const char *version, const char * const * authors, size_t n_authors) { if (command_name) fprintf (stream, "%s (%s) %s\n", command_name, package, version); else fprintf (stream, "%s %s\n", package, version); #ifdef PACKAGE_PACKAGER # ifdef PACKAGE_PACKAGER_VERSION fprintf (stream, _("Packaged by %s (%s)\n"), PACKAGE_PACKAGER, PACKAGE_PACKAGER_VERSION); # else fprintf (stream, _("Packaged by %s\n"), PACKAGE_PACKAGER); # endif #endif /* TRANSLATORS: Translate "(C)" to the copyright symbol (C-in-a-circle), if this symbol is available in the user's locale. Otherwise, do not translate "(C)"; leave it as-is. */ fprintf (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR); fputs ("\n", stream); /* TRANSLATORS: The %s placeholder is the web address of the GPL license. */ fprintf (stream, _("\ License GPLv3+: GNU GPL version 3 or later <%s>.\n\ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ "), "https://gnu.org/licenses/gpl.html"); fputs ("\n", stream); switch (n_authors) { case 0: /* No authors are given. The caller should output authorship info after calling this function. */ break; case 1: /* TRANSLATORS: %s denotes an author name. */ fprintf (stream, _("Written by %s.\n"), authors[0]); break; case 2: /* TRANSLATORS: Each %s denotes an author name. */ fprintf (stream, _("Written by %s and %s.\n"), authors[0], authors[1]); break; case 3: /* TRANSLATORS: Each %s denotes an author name. */ fprintf (stream, _("Written by %s, %s, and %s.\n"), authors[0], authors[1], authors[2]); break; case 4: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("Written by %s, %s, %s,\nand %s.\n"), authors[0], authors[1], authors[2], authors[3]); break; case 5: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("Written by %s, %s, %s,\n%s, and %s.\n"), authors[0], authors[1], authors[2], authors[3], authors[4]); break; case 6: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("Written by %s, %s, %s,\n%s, %s, and %s.\n"), authors[0], authors[1], authors[2], authors[3], authors[4], authors[5]); break; case 7: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("Written by %s, %s, %s,\n%s, %s, %s, and %s.\n"), authors[0], authors[1], authors[2], authors[3], authors[4], authors[5], authors[6]); break; case 8: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("\ Written by %s, %s, %s,\n%s, %s, %s, %s,\nand %s.\n"), authors[0], authors[1], authors[2], authors[3], authors[4], authors[5], authors[6], authors[7]); break; case 9: /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("\ Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, and %s.\n"), authors[0], authors[1], authors[2], authors[3], authors[4], authors[5], authors[6], authors[7], authors[8]); break; default: /* 10 or more authors. Use an abbreviation, since the human reader will probably not want to read the entire list anyway. */ /* TRANSLATORS: Each %s denotes an author name. You can use line breaks, estimating that each author name occupies ca. 16 screen columns and that a screen line has ca. 80 columns. */ fprintf (stream, _("\ Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, %s, and others.\n"), authors[0], authors[1], authors[2], authors[3], authors[4], authors[5], authors[6], authors[7], authors[8]); break; } } /* Display the --version information the standard way. See the initial comment to this module, for more information. Author names are given in the NULL-terminated array AUTHORS. */ void version_etc_ar (FILE *stream, const char *command_name, const char *package, const char *version, const char * const * authors) { size_t n_authors; for (n_authors = 0; authors[n_authors]; n_authors++) ; version_etc_arn (stream, command_name, package, version, authors, n_authors); } /* Display the --version information the standard way. See the initial comment to this module, for more information. Author names are given in the NULL-terminated va_list AUTHORS. */ void version_etc_va (FILE *stream, const char *command_name, const char *package, const char *version, va_list authors) { size_t n_authors; const char *authtab[10]; for (n_authors = 0; n_authors < 10 && (authtab[n_authors] = va_arg (authors, const char *)) != NULL; n_authors++) ; version_etc_arn (stream, command_name, package, version, authtab, n_authors); } /* Display the --version information the standard way. If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of the program. The formats are therefore: PACKAGE VERSION or COMMAND_NAME (PACKAGE) VERSION. The authors names are passed as separate arguments, with an additional NULL argument at the end. */ void version_etc (FILE *stream, const char *command_name, const char *package, const char *version, /* const char *author1, ...*/ ...) { va_list authors; va_start (authors, version); version_etc_va (stream, command_name, package, version, authors); va_end (authors); } void emit_bug_reporting_address (void) { fputs ("\n", stdout); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ printf (_("Report bugs to: %s\n"), PACKAGE_BUGREPORT); #ifdef PACKAGE_PACKAGER_BUG_REPORTS printf (_("Report %s bugs to: %s\n"), PACKAGE_PACKAGER, PACKAGE_PACKAGER_BUG_REPORTS); #endif #ifdef PACKAGE_URL printf (_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL); #else printf (_("%s home page: <%s>\n"), PACKAGE_NAME, "https://www.gnu.org/software/" PACKAGE "/"); #endif printf (_("General help using GNU software: <%s>\n"), "https://www.gnu.org/gethelp/"); } shishi-1.0.3/src/gl/getopt-core.h0000644000000000000000000000713214273615074013477 00000000000000/* Declarations for getopt (basic, portable features only). Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of the GNU C Library and is also part of gnulib. Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _GETOPT_CORE_H #define _GETOPT_CORE_H 1 /* This header should not be used directly; include getopt.h or unistd.h instead. Unlike most bits headers, it does not have a protective #error, because the guard macro for getopt.h in gnulib is not fixed. */ __BEGIN_DECLS /* For communication from 'getopt' to the caller. When 'getopt' finds an option that takes an argument, the argument value is returned here. Also, when 'ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to 'getopt'. On entry to 'getopt', zero means this is the first call; initialize. When 'getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, 'optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message 'getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. Return the option character from OPTS just read. Return -1 when there are no more options. For unrecognized options, or options missing arguments, 'optopt' is set to the option letter, and '?' is returned. The OPTS string is a list of characters which are recognized option letters, optionally followed by colons, specifying that that letter takes an argument, to be placed in 'optarg'. If a letter in OPTS is followed by two colons, its argument is optional. This behavior is specific to the GNU 'getopt'. The argument '--' causes premature termination of argument scanning, explicitly telling 'getopt' that there are no more options. If OPTS begins with '-', then non-option arguments are treated as arguments to the option '\1'. This behavior is specific to the GNU 'getopt'. If OPTS begins with '+', or POSIXLY_CORRECT is set in the environment, then do not permute arguments. For standards compliance, the 'argv' argument has the type char *const *, but this is inaccurate; if argument permutation is enabled, the argv array (not the strings it points to) must be writable. */ extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) __THROW _GL_ARG_NONNULL ((2, 3)); __END_DECLS #endif /* _GETOPT_CORE_H */ shishi-1.0.3/src/gl/string.in.h0000644000000000000000000014024514273615075013166 00000000000000/* A GNU-like . Copyright (C) 1995-1996, 2001-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined _GL_ALREADY_INCLUDING_STRING_H /* Special invocation convention: - On OS X/NetBSD we have a sequence of nested includes -> -> "string.h" In this situation system _chk variants due to -D_FORTIFY_SOURCE might be used after any replacements defined here. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STRING_H #define _GL_ALREADY_INCLUDING_STRING_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STRING_H@ #undef _GL_ALREADY_INCLUDING_STRING_H #ifndef _@GUARD_PREFIX@_STRING_H #define _@GUARD_PREFIX@_STRING_H /* NetBSD 5.0 mis-defines NULL. */ #include /* MirBSD defines mbslen as a macro. */ #if @GNULIB_MBSLEN@ && defined __MirBSD__ # include #endif /* NetBSD 5.0 declares strsignal in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if (@GNULIB_STRSIGNAL@ || defined GNULIB_POSIXCHECK) && defined __NetBSD__ \ && ! defined __GLIBC__ # include #endif /* AIX 7.2 declares ffsl and ffsll in , not in . */ /* But in any case avoid namespace pollution on glibc systems. */ #if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \ && defined _AIX) \ && ! defined __GLIBC__ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #ifndef _GL_ATTRIBUTE_MALLOC # if __GNUC__ >= 3 || defined __clang__ # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define _GL_ATTRIBUTE_MALLOC # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The attribute __pure__ was added in gcc 2.96. */ #ifndef _GL_ATTRIBUTE_PURE # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define _GL_ATTRIBUTE_PURE /* empty */ # endif #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though may not have been included yet. */ #if @GNULIB_FREE_POSIX@ # if (@REPLACE_FREE@ && !defined free \ && !(defined __cplusplus && defined GNULIB_NAMESPACE)) /* We can't do '#define free rpl_free' here. */ _GL_EXTERN_C void rpl_free (void *); # undef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1) # else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif # endif #else # if defined _MSC_VER && !defined free _GL_EXTERN_C # if defined _DLL __declspec (dllimport) # endif void __cdecl free (void *); # else # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_EXTERN_C void free (void *) throw (); # else _GL_EXTERN_C void free (void *); # endif # endif #endif /* Clear a block of memory. The compiler will not delete a call to this function, even if the block is dead after the call. */ #if @GNULIB_EXPLICIT_BZERO@ # if ! @HAVE_EXPLICIT_BZERO@ _GL_FUNCDECL_SYS (explicit_bzero, void, (void *__dest, size_t __n) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (explicit_bzero, void, (void *__dest, size_t __n)); _GL_CXXALIASWARN (explicit_bzero); #elif defined GNULIB_POSIXCHECK # undef explicit_bzero # if HAVE_RAW_DECL_EXPLICIT_BZERO _GL_WARN_ON_USE (explicit_bzero, "explicit_bzero is unportable - " "use gnulib module explicit_bzero for portability"); # endif #endif /* Find the index of the least-significant set bit. */ #if @GNULIB_FFSL@ # if !@HAVE_FFSL@ _GL_FUNCDECL_SYS (ffsl, int, (long int i)); # endif _GL_CXXALIAS_SYS (ffsl, int, (long int i)); _GL_CXXALIASWARN (ffsl); #elif defined GNULIB_POSIXCHECK # undef ffsl # if HAVE_RAW_DECL_FFSL _GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module"); # endif #endif /* Find the index of the least-significant set bit. */ #if @GNULIB_FFSLL@ # if @REPLACE_FFSLL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define ffsll rpl_ffsll # endif _GL_FUNCDECL_RPL (ffsll, int, (long long int i)); _GL_CXXALIAS_RPL (ffsll, int, (long long int i)); # else # if !@HAVE_FFSLL@ _GL_FUNCDECL_SYS (ffsll, int, (long long int i)); # endif _GL_CXXALIAS_SYS (ffsll, int, (long long int i)); # endif _GL_CXXALIASWARN (ffsll); #elif defined GNULIB_POSIXCHECK # undef ffsll # if HAVE_RAW_DECL_FFSLL _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module"); # endif #endif #if @GNULIB_MDA_MEMCCPY@ /* On native Windows, map 'memccpy' to '_memccpy', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::memccpy always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef memccpy # define memccpy _memccpy # endif _GL_CXXALIAS_MDA (memccpy, void *, (void *dest, const void *src, int c, size_t n)); # else _GL_CXXALIAS_SYS (memccpy, void *, (void *dest, const void *src, int c, size_t n)); # endif _GL_CXXALIASWARN (memccpy); #endif /* Return the first instance of C within N bytes of S, or NULL. */ #if @GNULIB_MEMCHR@ # if @REPLACE_MEMCHR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef memchr # define memchr rpl_memchr # endif _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); # else /* On some systems, this function is defined as an overloaded function: extern "C" { const void * std::memchr (const void *, int, size_t); } extern "C++" { void * std::memchr (void *, int, size_t); } */ _GL_CXXALIAS_SYS_CAST2 (memchr, void *, (void const *__s, int __c, size_t __n), void const *, (void const *__s, int __c, size_t __n)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n) throw ()); _GL_CXXALIASWARN1 (memchr, void const *, (void const *__s, int __c, size_t __n) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (memchr); # endif #elif defined GNULIB_POSIXCHECK # undef memchr /* Assume memchr is always declared. */ _GL_WARN_ON_USE (memchr, "memchr has platform-specific bugs - " "use gnulib module memchr for portability" ); #endif /* Return the first occurrence of NEEDLE in HAYSTACK. */ #if @GNULIB_MEMMEM@ # if @REPLACE_MEMMEM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define memmem rpl_memmem # endif _GL_FUNCDECL_RPL (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len)); # else # if ! @HAVE_DECL_MEMMEM@ _GL_FUNCDECL_SYS (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 3))); # endif _GL_CXXALIAS_SYS (memmem, void *, (void const *__haystack, size_t __haystack_len, void const *__needle, size_t __needle_len)); # endif _GL_CXXALIASWARN (memmem); #elif defined GNULIB_POSIXCHECK # undef memmem # if HAVE_RAW_DECL_MEMMEM _GL_WARN_ON_USE (memmem, "memmem is unportable and often quadratic - " "use gnulib module memmem-simple for portability, " "and module memmem for speed" ); # endif #endif /* Copy N bytes of SRC to DEST, return pointer to bytes after the last written byte. */ #if @GNULIB_MEMPCPY@ # if ! @HAVE_MEMPCPY@ _GL_FUNCDECL_SYS (mempcpy, void *, (void *restrict __dest, void const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (mempcpy, void *, (void *restrict __dest, void const *restrict __src, size_t __n)); _GL_CXXALIASWARN (mempcpy); #elif defined GNULIB_POSIXCHECK # undef mempcpy # if HAVE_RAW_DECL_MEMPCPY _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - " "use gnulib module mempcpy for portability"); # endif #endif /* Search backwards through a block for a byte (specified as an int). */ #if @GNULIB_MEMRCHR@ # if ! @HAVE_DECL_MEMRCHR@ _GL_FUNCDECL_SYS (memrchr, void *, (void const *, int, size_t) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const void * std::memrchr (const void *, int, size_t); } extern "C++" { void * std::memrchr (void *, int, size_t); } */ _GL_CXXALIAS_SYS_CAST2 (memrchr, void *, (void const *, int, size_t), void const *, (void const *, int, size_t)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (memrchr, void *, (void *, int, size_t) throw ()); _GL_CXXALIASWARN1 (memrchr, void const *, (void const *, int, size_t) throw ()); # else _GL_CXXALIASWARN (memrchr); # endif #elif defined GNULIB_POSIXCHECK # undef memrchr # if HAVE_RAW_DECL_MEMRCHR _GL_WARN_ON_USE (memrchr, "memrchr is unportable - " "use gnulib module memrchr for portability"); # endif #endif /* Find the first occurrence of C in S. More efficient than memchr(S,C,N), at the expense of undefined behavior if C does not occur within N bytes. */ #if @GNULIB_RAWMEMCHR@ # if ! @HAVE_RAWMEMCHR@ _GL_FUNCDECL_SYS (rawmemchr, void *, (void const *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const void * std::rawmemchr (const void *, int); } extern "C++" { void * std::rawmemchr (void *, int); } */ _GL_CXXALIAS_SYS_CAST2 (rawmemchr, void *, (void const *__s, int __c_in), void const *, (void const *__s, int __c_in)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (rawmemchr, void *, (void *__s, int __c_in) throw ()); _GL_CXXALIASWARN1 (rawmemchr, void const *, (void const *__s, int __c_in) throw ()); # else _GL_CXXALIASWARN (rawmemchr); # endif #elif defined GNULIB_POSIXCHECK # undef rawmemchr # if HAVE_RAW_DECL_RAWMEMCHR _GL_WARN_ON_USE (rawmemchr, "rawmemchr is unportable - " "use gnulib module rawmemchr for portability"); # endif #endif /* Copy SRC to DST, returning the address of the terminating '\0' in DST. */ #if @GNULIB_STPCPY@ # if ! @HAVE_STPCPY@ _GL_FUNCDECL_SYS (stpcpy, char *, (char *restrict __dst, char const *restrict __src) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (stpcpy, char *, (char *restrict __dst, char const *restrict __src)); _GL_CXXALIASWARN (stpcpy); #elif defined GNULIB_POSIXCHECK # undef stpcpy # if HAVE_RAW_DECL_STPCPY _GL_WARN_ON_USE (stpcpy, "stpcpy is unportable - " "use gnulib module stpcpy for portability"); # endif #endif /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ #if @GNULIB_STPNCPY@ # if @REPLACE_STPNCPY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef stpncpy # define stpncpy rpl_stpncpy # endif _GL_FUNCDECL_RPL (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n)); # else # if ! @HAVE_STPNCPY@ _GL_FUNCDECL_SYS (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (stpncpy, char *, (char *restrict __dst, char const *restrict __src, size_t __n)); # endif _GL_CXXALIASWARN (stpncpy); #elif defined GNULIB_POSIXCHECK # undef stpncpy # if HAVE_RAW_DECL_STPNCPY _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - " "use gnulib module stpncpy for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strchr /* Assume strchr is always declared. */ _GL_WARN_ON_USE_CXX (strchr, const char *, char *, (const char *, int), "strchr cannot work correctly on character strings " "in some multibyte locales - " "use mbschr if you care about internationalization"); #endif /* Find the first occurrence of C in S or the final NUL byte. */ #if @GNULIB_STRCHRNUL@ # if @REPLACE_STRCHRNUL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strchrnul rpl_strchrnul # endif _GL_FUNCDECL_RPL (strchrnul, char *, (const char *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strchrnul, char *, (const char *str, int ch)); # else # if ! @HAVE_STRCHRNUL@ _GL_FUNCDECL_SYS (strchrnul, char *, (char const *__s, int __c_in) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * std::strchrnul (const char *, int); } extern "C++" { char * std::strchrnul (char *, int); } */ _GL_CXXALIAS_SYS_CAST2 (strchrnul, char *, (char const *__s, int __c_in), char const *, (char const *__s, int __c_in)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strchrnul, char *, (char *__s, int __c_in) throw ()); _GL_CXXALIASWARN1 (strchrnul, char const *, (char const *__s, int __c_in) throw ()); # else _GL_CXXALIASWARN (strchrnul); # endif #elif defined GNULIB_POSIXCHECK # undef strchrnul # if HAVE_RAW_DECL_STRCHRNUL _GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - " "use gnulib module strchrnul for portability"); # endif #endif /* Duplicate S, returning an identical malloc'd string. */ #if @GNULIB_STRDUP@ # if @REPLACE_STRDUP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup rpl_strdup # endif _GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (strdup, char *, (char const *__s)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup _strdup # endif _GL_CXXALIAS_MDA (strdup, char *, (char const *__s)); # else # if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup /* strdup exists as a function and as a macro. Get rid of the macro. */ # undef strdup # endif # if (!@HAVE_DECL_STRDUP@ || __GNUC__ >= 11) && !defined strdup _GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif _GL_CXXALIASWARN (strdup); #else # if __GNUC__ >= 11 && !defined strdup /* For -Wmismatched-dealloc: Associate strdup with free or rpl_free. */ _GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef strdup # if HAVE_RAW_DECL_STRDUP _GL_WARN_ON_USE (strdup, "strdup is unportable - " "use gnulib module strdup for portability"); # endif # elif @GNULIB_MDA_STRDUP@ /* On native Windows, map 'creat' to '_creat', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::strdup always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strdup # define strdup _strdup # endif _GL_CXXALIAS_MDA (strdup, char *, (char const *__s)); # else # if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup # undef strdup # endif _GL_CXXALIAS_SYS (strdup, char *, (char const *__s)); # endif _GL_CXXALIASWARN (strdup); # endif #endif /* Append no more than N characters from SRC onto DEST. */ #if @GNULIB_STRNCAT@ # if @REPLACE_STRNCAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strncat # define strncat rpl_strncat # endif _GL_FUNCDECL_RPL (strncat, char *, (char *restrict dest, const char *restrict src, size_t n) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strncat, char *, (char *restrict dest, const char *restrict src, size_t n)); # else _GL_CXXALIAS_SYS (strncat, char *, (char *restrict dest, const char *restrict src, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strncat); # endif #elif defined GNULIB_POSIXCHECK # undef strncat # if HAVE_RAW_DECL_STRNCAT _GL_WARN_ON_USE (strncat, "strncat is unportable - " "use gnulib module strncat for portability"); # endif #endif /* Return a newly allocated copy of at most N bytes of STRING. */ #if @GNULIB_STRNDUP@ # if @REPLACE_STRNDUP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strndup # define strndup rpl_strndup # endif _GL_FUNCDECL_RPL (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (strndup, char *, (char const *__s, size_t __n)); # else # if !@HAVE_DECL_STRNDUP@ || (__GNUC__ >= 11 && !defined strndup) _GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (strndup, char *, (char const *__s, size_t __n)); # endif _GL_CXXALIASWARN (strndup); #else # if __GNUC__ >= 11 && !defined strndup /* For -Wmismatched-dealloc: Associate strndup with free or rpl_free. */ _GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef strndup # if HAVE_RAW_DECL_STRNDUP _GL_WARN_ON_USE (strndup, "strndup is unportable - " "use gnulib module strndup for portability"); # endif # endif #endif /* Find the length (number of bytes) of STRING, but scan at most MAXLEN bytes. If no '\0' terminator is found in that many bytes, return MAXLEN. */ #if @GNULIB_STRNLEN@ # if @REPLACE_STRNLEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strnlen # define strnlen rpl_strnlen # endif _GL_FUNCDECL_RPL (strnlen, size_t, (char const *__s, size_t __maxlen) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strnlen, size_t, (char const *__s, size_t __maxlen)); # else # if ! @HAVE_DECL_STRNLEN@ _GL_FUNCDECL_SYS (strnlen, size_t, (char const *__s, size_t __maxlen) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strnlen, size_t, (char const *__s, size_t __maxlen)); # endif _GL_CXXALIASWARN (strnlen); #elif defined GNULIB_POSIXCHECK # undef strnlen # if HAVE_RAW_DECL_STRNLEN _GL_WARN_ON_USE (strnlen, "strnlen is unportable - " "use gnulib module strnlen for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strcspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strcspn /* Assume strcspn is always declared. */ _GL_WARN_ON_USE (strcspn, "strcspn cannot work correctly on character strings " "in multibyte locales - " "use mbscspn if you care about internationalization"); #endif /* Find the first occurrence in S of any character in ACCEPT. */ #if @GNULIB_STRPBRK@ # if ! @HAVE_STRPBRK@ _GL_FUNCDECL_SYS (strpbrk, char *, (char const *__s, char const *__accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif /* On some systems, this function is defined as an overloaded function: extern "C" { const char * strpbrk (const char *, const char *); } extern "C++" { char * strpbrk (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strpbrk, char *, (char const *__s, char const *__accept), const char *, (char const *__s, char const *__accept)); # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept) throw ()); _GL_CXXALIASWARN1 (strpbrk, char const *, (char const *__s, char const *__accept) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (strpbrk); # endif # if defined GNULIB_POSIXCHECK /* strpbrk() assumes the second argument is a list of single-byte characters. Even in this simple case, it does not work with multibyte strings if the locale encoding is GB18030 and one of the characters to be searched is a digit. */ # undef strpbrk _GL_WARN_ON_USE_CXX (strpbrk, const char *, char *, (const char *, const char *), "strpbrk cannot work correctly on character strings " "in multibyte locales - " "use mbspbrk if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strpbrk # if HAVE_RAW_DECL_STRPBRK _GL_WARN_ON_USE_CXX (strpbrk, const char *, char *, (const char *, const char *), "strpbrk is unportable - " "use gnulib module strpbrk for portability"); # endif #endif #if defined GNULIB_POSIXCHECK /* strspn() assumes the second argument is a list of single-byte characters. Even in this simple case, it cannot work with multibyte strings. */ # undef strspn /* Assume strspn is always declared. */ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings " "in multibyte locales - " "use mbsspn if you care about internationalization"); #endif #if defined GNULIB_POSIXCHECK /* strrchr() does not work with multibyte strings if the locale encoding is GB18030 and the character to be searched is a digit. */ # undef strrchr /* Assume strrchr is always declared. */ _GL_WARN_ON_USE_CXX (strrchr, const char *, char *, (const char *, int), "strrchr cannot work correctly on character strings " "in some multibyte locales - " "use mbsrchr if you care about internationalization"); #endif /* Search the next delimiter (char listed in DELIM) starting at *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next char after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of strtok() that is multithread-safe and supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strtok_r(). */ #if @GNULIB_STRSEP@ # if ! @HAVE_STRSEP@ _GL_FUNCDECL_SYS (strsep, char *, (char **restrict __stringp, char const *restrict __delim) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (strsep, char *, (char **restrict __stringp, char const *restrict __delim)); _GL_CXXALIASWARN (strsep); # if defined GNULIB_POSIXCHECK # undef strsep _GL_WARN_ON_USE (strsep, "strsep cannot work correctly on character strings " "in multibyte locales - " "use mbssep if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strsep # if HAVE_RAW_DECL_STRSEP _GL_WARN_ON_USE (strsep, "strsep is unportable - " "use gnulib module strsep for portability"); # endif #endif #if @GNULIB_STRSTR@ # if @REPLACE_STRSTR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strstr rpl_strstr # endif _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle)); # else /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * strstr (const char *, const char *); } extern "C++" { char * strstr (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strstr, char *, (const char *haystack, const char *needle), const char *, (const char *haystack, const char *needle)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle) throw ()); _GL_CXXALIASWARN1 (strstr, const char *, (const char *haystack, const char *needle) throw ()); # elif __GLIBC__ >= 2 _GL_CXXALIASWARN (strstr); # endif #elif defined GNULIB_POSIXCHECK /* strstr() does not work with multibyte strings if the locale encoding is different from UTF-8: POSIX says that it operates on "strings", and "string" in POSIX is defined as a sequence of bytes, not of characters. */ # undef strstr /* Assume strstr is always declared. */ _GL_WARN_ON_USE (strstr, "strstr is quadratic on many systems, and cannot " "work correctly on character strings in most " "multibyte locales - " "use mbsstr if you care about internationalization, " "or use strstr if you care about speed"); #endif /* Find the first occurrence of NEEDLE in HAYSTACK, using case-insensitive comparison. */ #if @GNULIB_STRCASESTR@ # if @REPLACE_STRCASESTR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strcasestr rpl_strcasestr # endif _GL_FUNCDECL_RPL (strcasestr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (strcasestr, char *, (const char *haystack, const char *needle)); # else # if ! @HAVE_STRCASESTR@ _GL_FUNCDECL_SYS (strcasestr, char *, (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif /* On some systems, this function is defined as an overloaded function: extern "C++" { const char * strcasestr (const char *, const char *); } extern "C++" { char * strcasestr (char *, const char *); } */ _GL_CXXALIAS_SYS_CAST2 (strcasestr, char *, (const char *haystack, const char *needle), const char *, (const char *haystack, const char *needle)); # endif # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) \ || defined __clang__) _GL_CXXALIASWARN1 (strcasestr, char *, (char *haystack, const char *needle) throw ()); _GL_CXXALIASWARN1 (strcasestr, const char *, (const char *haystack, const char *needle) throw ()); # else _GL_CXXALIASWARN (strcasestr); # endif #elif defined GNULIB_POSIXCHECK /* strcasestr() does not work with multibyte strings: It is a glibc extension, and glibc implements it only for unibyte locales. */ # undef strcasestr # if HAVE_RAW_DECL_STRCASESTR _GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character " "strings in multibyte locales - " "use mbscasestr if you care about " "internationalization, or use c-strcasestr if you want " "a locale independent function"); # endif #endif /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = strtok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = strtok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = strtok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" This is a variant of strtok() that is multithread-safe. For the POSIX documentation for this function, see: https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtok.html Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. Caveat: It doesn't work with multibyte strings unless all of the delimiter characters are ASCII characters < 0x30. See also strsep(). */ #if @GNULIB_STRTOK_R@ # if @REPLACE_STRTOK_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strtok_r # define strtok_r rpl_strtok_r # endif _GL_FUNCDECL_RPL (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr)); # else # if @UNDEFINE_STRTOK_R@ || defined GNULIB_POSIXCHECK # undef strtok_r # endif # if ! @HAVE_DECL_STRTOK_R@ _GL_FUNCDECL_SYS (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (strtok_r, char *, (char *restrict s, char const *restrict delim, char **restrict save_ptr)); # endif _GL_CXXALIASWARN (strtok_r); # if defined GNULIB_POSIXCHECK _GL_WARN_ON_USE (strtok_r, "strtok_r cannot work correctly on character " "strings in multibyte locales - " "use mbstok_r if you care about internationalization"); # endif #elif defined GNULIB_POSIXCHECK # undef strtok_r # if HAVE_RAW_DECL_STRTOK_R _GL_WARN_ON_USE (strtok_r, "strtok_r is unportable - " "use gnulib module strtok_r for portability"); # endif #endif /* The following functions are not specified by POSIX. They are gnulib extensions. */ #if @GNULIB_MBSLEN@ /* Return the number of multibyte characters in the character string STRING. This considers multibyte characters, unlike strlen, which counts bytes. */ # ifdef __MirBSD__ /* MirBSD defines mbslen as a macro. Override it. */ # undef mbslen # endif # if @HAVE_MBSLEN@ /* AIX, OSF/1, MirBSD define mbslen already in libc. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbslen rpl_mbslen # endif _GL_FUNCDECL_RPL (mbslen, size_t, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbslen, size_t, (const char *string)); # else _GL_FUNCDECL_SYS (mbslen, size_t, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbslen, size_t, (const char *string)); # endif _GL_CXXALIASWARN (mbslen); #endif #if @GNULIB_MBSNLEN@ /* Return the number of multibyte characters in the character string starting at STRING and ending at STRING + LEN. */ _GL_EXTERN_C size_t mbsnlen (const char *string, size_t len) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1)); #endif #if @GNULIB_MBSCHR@ /* Locate the first single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # if defined __hpux # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbschr rpl_mbschr /* avoid collision with HP-UX function */ # endif _GL_FUNCDECL_RPL (mbschr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbschr, char *, (const char *string, int c)); # else _GL_FUNCDECL_SYS (mbschr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbschr, char *, (const char *string, int c)); # endif _GL_CXXALIASWARN (mbschr); #endif #if @GNULIB_MBSRCHR@ /* Locate the last single-byte character C in the character string STRING, and return a pointer to it. Return NULL if C is not found in STRING. Unlike strrchr(), this function works correctly in multibyte locales with encodings such as GB18030. */ # if defined __hpux || defined __INTERIX # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbsrchr rpl_mbsrchr /* avoid collision with system function */ # endif _GL_FUNCDECL_RPL (mbsrchr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mbsrchr, char *, (const char *string, int c)); # else _GL_FUNCDECL_SYS (mbsrchr, char *, (const char *string, int c) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (mbsrchr, char *, (const char *string, int c)); # endif _GL_CXXALIASWARN (mbsrchr); #endif #if @GNULIB_MBSSTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK. Return NULL if NEEDLE is not found in HAYSTACK. Unlike strstr(), this function works correctly in multibyte locales with encodings different from UTF-8. */ _GL_EXTERN_C char * mbsstr (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASECMP@ /* Compare the character strings S1 and S2, ignoring case, returning less than, equal to or greater than zero if S1 is lexicographically less than, equal to or greater than S2. Note: This function may, in multibyte locales, return 0 for strings of different lengths! Unlike strcasecmp(), this function works correctly in multibyte locales. */ _GL_EXTERN_C int mbscasecmp (const char *s1, const char *s2) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSNCASECMP@ /* Compare the initial segment of the character string S1 consisting of at most N characters with the initial segment of the character string S2 consisting of at most N characters, ignoring case, returning less than, equal to or greater than zero if the initial segment of S1 is lexicographically less than, equal to or greater than the initial segment of S2. Note: This function may, in multibyte locales, return 0 for initial segments of different lengths! Unlike strncasecmp(), this function works correctly in multibyte locales. But beware that N is not a byte count but a character count! */ _GL_EXTERN_C int mbsncasecmp (const char *s1, const char *s2, size_t n) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPCASECMP@ /* Compare the initial segment of the character string STRING consisting of at most mbslen (PREFIX) characters with the character string PREFIX, ignoring case. If the two match, return a pointer to the first byte after this prefix in STRING. Otherwise, return NULL. Note: This function may, in multibyte locales, return non-NULL if STRING is of smaller length than PREFIX! Unlike strncasecmp(), this function works correctly in multibyte locales. */ _GL_EXTERN_C char * mbspcasecmp (const char *string, const char *prefix) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCASESTR@ /* Find the first occurrence of the character string NEEDLE in the character string HAYSTACK, using case-insensitive comparison. Note: This function may, in multibyte locales, return success even if strlen (haystack) < strlen (needle) ! Unlike strcasestr(), this function works correctly in multibyte locales. */ _GL_EXTERN_C char * mbscasestr (const char *haystack, const char *needle) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSCSPN@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strcspn(), this function works correctly in multibyte locales. */ _GL_EXTERN_C size_t mbscspn (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSPBRK@ /* Find the first occurrence in the character string STRING of any character in the character string ACCEPT. Return the pointer to it, or NULL if none exists. Unlike strpbrk(), this function works correctly in multibyte locales. */ # if defined __hpux # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mbspbrk rpl_mbspbrk /* avoid collision with HP-UX function */ # endif _GL_FUNCDECL_RPL (mbspbrk, char *, (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (mbspbrk, char *, (const char *string, const char *accept)); # else _GL_FUNCDECL_SYS (mbspbrk, char *, (const char *string, const char *accept) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_SYS (mbspbrk, char *, (const char *string, const char *accept)); # endif _GL_CXXALIASWARN (mbspbrk); #endif #if @GNULIB_MBSSPN@ /* Find the first occurrence in the character string STRING of any character not in the character string REJECT. Return the number of bytes from the beginning of the string to this occurrence, or to the end of the string if none exists. Unlike strspn(), this function works correctly in multibyte locales. */ _GL_EXTERN_C size_t mbsspn (const char *string, const char *reject) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSSEP@ /* Search the next delimiter (multibyte character listed in the character string DELIM) starting at the character string *STRINGP. If one is found, overwrite it with a NUL, and advance *STRINGP to point to the next multibyte character after it. Otherwise, set *STRINGP to NULL. If *STRINGP was already NULL, nothing happens. Return the old value of *STRINGP. This is a variant of mbstok_r() that supports empty fields. Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbstok_r(). */ _GL_EXTERN_C char * mbssep (char **stringp, const char *delim) _GL_ARG_NONNULL ((1, 2)); #endif #if @GNULIB_MBSTOK_R@ /* Parse the character string STRING into tokens separated by characters in the character string DELIM. If STRING is NULL, the saved pointer in SAVE_PTR is used as the next starting point. For example: char s[] = "-abc-=-def"; char *sp; x = mbstok_r(s, "-", &sp); // x = "abc", sp = "=-def" x = mbstok_r(NULL, "-=", &sp); // x = "def", sp = NULL x = mbstok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. Caveat: The identity of the delimiting character is lost. See also mbssep(). */ _GL_EXTERN_C char * mbstok_r (char *restrict string, const char *delim, char **save_ptr) _GL_ARG_NONNULL ((2, 3)); #endif /* Map any int, typically from errno, into an error message. */ #if @GNULIB_STRERROR@ # if @REPLACE_STRERROR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerror # define strerror rpl_strerror # endif _GL_FUNCDECL_RPL (strerror, char *, (int)); _GL_CXXALIAS_RPL (strerror, char *, (int)); # else _GL_CXXALIAS_SYS (strerror, char *, (int)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strerror); # endif #elif defined GNULIB_POSIXCHECK # undef strerror /* Assume strerror is always declared. */ _GL_WARN_ON_USE (strerror, "strerror is unportable - " "use gnulib module strerror to guarantee non-NULL result"); #endif /* Map any int, typically from errno, into an error message. Multithread-safe. Uses the POSIX declaration, not the glibc declaration. */ #if @GNULIB_STRERROR_R@ # if @REPLACE_STRERROR_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerror_r # define strerror_r rpl_strerror_r # endif _GL_FUNCDECL_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (strerror_r, int, (int errnum, char *buf, size_t buflen)); # else # if !@HAVE_DECL_STRERROR_R@ _GL_FUNCDECL_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (strerror_r, int, (int errnum, char *buf, size_t buflen)); # endif # if @HAVE_DECL_STRERROR_R@ _GL_CXXALIASWARN (strerror_r); # endif #elif defined GNULIB_POSIXCHECK # undef strerror_r # if HAVE_RAW_DECL_STRERROR_R _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - " "use gnulib module strerror_r-posix for portability"); # endif #endif /* Return the name of the system error code ERRNUM. */ #if @GNULIB_STRERRORNAME_NP@ # if @REPLACE_STRERRORNAME_NP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef strerrorname_np # define strerrorname_np rpl_strerrorname_np # endif _GL_FUNCDECL_RPL (strerrorname_np, const char *, (int errnum)); _GL_CXXALIAS_RPL (strerrorname_np, const char *, (int errnum)); # else # if !@HAVE_STRERRORNAME_NP@ _GL_FUNCDECL_SYS (strerrorname_np, const char *, (int errnum)); # endif _GL_CXXALIAS_SYS (strerrorname_np, const char *, (int errnum)); # endif _GL_CXXALIASWARN (strerrorname_np); #elif defined GNULIB_POSIXCHECK # undef strerrorname_np # if HAVE_RAW_DECL_STRERRORNAME_NP _GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - " "use gnulib module strerrorname_np for portability"); # endif #endif /* Return an abbreviation string for the signal number SIG. */ #if @GNULIB_SIGABBREV_NP@ # if ! @HAVE_SIGABBREV_NP@ _GL_FUNCDECL_SYS (sigabbrev_np, const char *, (int sig)); # endif _GL_CXXALIAS_SYS (sigabbrev_np, const char *, (int sig)); _GL_CXXALIASWARN (sigabbrev_np); #elif defined GNULIB_POSIXCHECK # undef sigabbrev_np # if HAVE_RAW_DECL_SIGABBREV_NP _GL_WARN_ON_USE (sigabbrev_np, "sigabbrev_np is unportable - " "use gnulib module sigabbrev_np for portability"); # endif #endif /* Return an English description string for the signal number SIG. */ #if @GNULIB_SIGDESCR_NP@ # if ! @HAVE_SIGDESCR_NP@ _GL_FUNCDECL_SYS (sigdescr_np, const char *, (int sig)); # endif _GL_CXXALIAS_SYS (sigdescr_np, const char *, (int sig)); _GL_CXXALIASWARN (sigdescr_np); #elif defined GNULIB_POSIXCHECK # undef sigdescr_np # if HAVE_RAW_DECL_SIGDESCR_NP _GL_WARN_ON_USE (sigdescr_np, "sigdescr_np is unportable - " "use gnulib module sigdescr_np for portability"); # endif #endif #if @GNULIB_STRSIGNAL@ # if @REPLACE_STRSIGNAL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strsignal rpl_strsignal # endif _GL_FUNCDECL_RPL (strsignal, char *, (int __sig)); _GL_CXXALIAS_RPL (strsignal, char *, (int __sig)); # else # if ! @HAVE_DECL_STRSIGNAL@ _GL_FUNCDECL_SYS (strsignal, char *, (int __sig)); # endif /* Need to cast, because on Cygwin 1.5.x systems, the return type is 'const char *'. */ _GL_CXXALIAS_SYS_CAST (strsignal, char *, (int __sig)); # endif _GL_CXXALIASWARN (strsignal); #elif defined GNULIB_POSIXCHECK # undef strsignal # if HAVE_RAW_DECL_STRSIGNAL _GL_WARN_ON_USE (strsignal, "strsignal is unportable - " "use gnulib module strsignal for portability"); # endif #endif #if @GNULIB_STRVERSCMP@ # if !@HAVE_STRVERSCMP@ _GL_FUNCDECL_SYS (strverscmp, int, (const char *, const char *) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (strverscmp, int, (const char *, const char *)); _GL_CXXALIASWARN (strverscmp); #elif defined GNULIB_POSIXCHECK # undef strverscmp # if HAVE_RAW_DECL_STRVERSCMP _GL_WARN_ON_USE (strverscmp, "strverscmp is unportable - " "use gnulib module strverscmp for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_STRING_H */ #endif /* _@GUARD_PREFIX@_STRING_H */ #endif shishi-1.0.3/src/gl/warn-on-use.h0000644000000000000000000001553214273615075013426 00000000000000/* A C macro for emitting warnings if a function is used. Copyright (C) 2010-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* _GL_WARN_ON_USE (function, "literal string") issues a declaration for FUNCTION which will then trigger a compiler warning containing the text of "literal string" anywhere that function is called, if supported by the compiler. If the compiler does not support this feature, the macro expands to an unused extern declaration. _GL_WARN_ON_USE_ATTRIBUTE ("literal string") expands to the attribute used in _GL_WARN_ON_USE. If the compiler does not support this feature, it expands to empty. These macros are useful for marking a function as a potential portability trap, with the intent that "literal string" include instructions on the replacement function that should be used instead. _GL_WARN_ON_USE is for functions with 'extern' linkage. _GL_WARN_ON_USE_ATTRIBUTE is for functions with 'static' or 'inline' linkage. However, one of the reasons that a function is a portability trap is if it has the wrong signature. Declaring FUNCTION with a different signature in C is a compilation error, so this macro must use the same type as any existing declaration so that programs that avoid the problematic FUNCTION do not fail to compile merely because they included a header that poisoned the function. But this implies that _GL_WARN_ON_USE is only safe to use if FUNCTION is known to already have a declaration. Use of this macro implies that there must not be any other macro hiding the declaration of FUNCTION; but undefining FUNCTION first is part of the poisoning process anyway (although for symbols that are provided only via a macro, the result is a compilation error rather than a warning containing "literal string"). Also note that in C++, it is only safe to use if FUNCTION has no overloads. For an example, it is possible to poison 'getline' by: - adding a call to gl_WARN_ON_USE_PREPARE([[#include ]], [getline]) in configure.ac, which potentially defines HAVE_RAW_DECL_GETLINE - adding this code to a header that wraps the system : #undef getline #if HAVE_RAW_DECL_GETLINE _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" "not universally present; use the gnulib module getline"); #endif It is not possible to directly poison global variables. But it is possible to write a wrapper accessor function, and poison that (less common usage, like &environ, will cause a compilation error rather than issue the nice warning, but the end result of informing the developer about their portability problem is still achieved): #if HAVE_RAW_DECL_ENVIRON static char *** rpl_environ (void) { return &environ; } _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); # undef environ # define environ (*rpl_environ ()) #endif or better (avoiding contradictory use of 'static' and 'extern'): #if HAVE_RAW_DECL_ENVIRON static char *** _GL_WARN_ON_USE_ATTRIBUTE ("environ is not always properly declared") rpl_environ (void) { return &environ; } # undef environ # define environ (*rpl_environ ()) #endif */ #ifndef _GL_WARN_ON_USE # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) /* A compiler attribute is available in gcc versions 4.3.0 and later. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function __attribute__ ((__warning__ (message))) # define _GL_WARN_ON_USE_ATTRIBUTE(message) \ __attribute__ ((__warning__ (message))) # elif __clang_major__ >= 4 /* Another compiler attribute is available in clang. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function \ __attribute__ ((__diagnose_if__ (1, message, "warning"))) # define _GL_WARN_ON_USE_ATTRIBUTE(message) \ __attribute__ ((__diagnose_if__ (1, message, "warning"))) # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING /* Verify the existence of the function. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C __typeof__ (function) function # define _GL_WARN_ON_USE_ATTRIBUTE(message) # else /* Unsupported. */ # define _GL_WARN_ON_USE(function, message) \ _GL_WARN_EXTERN_C int _gl_warn_on_use # define _GL_WARN_ON_USE_ATTRIBUTE(message) # endif #endif /* _GL_WARN_ON_USE_CXX (function, rettype_gcc, rettype_clang, parameters_and_attributes, "message") is like _GL_WARN_ON_USE (function, "message"), except that in C++ mode the function is declared with the given prototype, consisting of return type, parameters, and attributes. This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does not work in this case. */ #ifndef _GL_WARN_ON_USE_CXX # if !defined __cplusplus # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ _GL_WARN_ON_USE (function, msg) # else # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) /* A compiler attribute is available in gcc versions 4.3.0 and later. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_gcc function parameters_and_attributes \ __attribute__ ((__warning__ (msg))) # elif __clang_major__ >= 4 /* Another compiler attribute is available in clang. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_clang function parameters_and_attributes \ __attribute__ ((__diagnose_if__ (1, msg, "warning"))) # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING /* Verify the existence of the function. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ extern rettype_gcc function parameters_and_attributes # else /* Unsupported. */ # define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \ _GL_WARN_EXTERN_C int _gl_warn_on_use # endif # endif #endif /* _GL_WARN_EXTERN_C declaration; performs the declaration with C linkage. */ #ifndef _GL_WARN_EXTERN_C # if defined __cplusplus # define _GL_WARN_EXTERN_C extern "C" # else # define _GL_WARN_EXTERN_C extern # endif #endif shishi-1.0.3/src/gl/basename-lgpl.h0000644000000000000000000000532414273615074013757 00000000000000/* Extract the last component (base name) of a file name. Copyright (C) 1998, 2001, 2003-2006, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _BASENAME_LGPL_H #define _BASENAME_LGPL_H #include #ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT # define DOUBLE_SLASH_IS_DISTINCT_ROOT 0 #endif #ifdef __cplusplus extern "C" { #endif /* Return the address of the last file name component of FILENAME. If FILENAME has some trailing slash(es), they are considered to be part of the last component. If FILENAME has no relative file name components because it is a file system root, return the empty string. Examples: FILENAME RESULT "foo.c" "foo.c" "foo/bar.c" "bar.c" "/foo/bar.c" "bar.c" "foo/bar/" "bar/" "foo/bar//" "bar//" "/" "" "//" "" "" "" The return value is a tail of the given FILENAME; do NOT free() it! */ /* This function was traditionally called 'basename', but we avoid this function name because * Various platforms have different functions in their libc. In particular, the glibc basename(), defined in , does not consider trailing slashes to be part of the component: FILENAME RESULT "foo/bar/" "" "foo/bar//" "" * The 'basename' command eliminates trailing slashes and for a root produces a non-empty result: FILENAME RESULT "foo/bar/" "bar" "foo/bar//" "bar" "/" "/" "//" "/" */ extern char *last_component (char const *filename) _GL_ATTRIBUTE_PURE; /* Return the length of the basename FILENAME. Typically FILENAME is the value returned by base_name or last_component. Act like strlen (FILENAME), except omit all trailing slashes. */ extern size_t base_len (char const *filename) _GL_ATTRIBUTE_PURE; #ifdef __cplusplus } /* extern "C" */ #endif #endif /* _BASENAME_LGPL_H */ shishi-1.0.3/src/gl/stat-time.c0000644000000000000000000000152014273615075013145 00000000000000/* stat-related time functions. Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_STAT_TIME_INLINE _GL_EXTERN_INLINE #include "stat-time.h" shishi-1.0.3/src/gl/unistd.in.h0000644000000000000000000023571714273615075013177 00000000000000/* Substitute for and wrapper around . Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_UNISTD_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if @HAVE_UNISTD_H@ && defined _GL_INCLUDING_UNISTD_H /* Special invocation convention: - On Mac OS X 10.3.9 we have a sequence of nested includes -> -> -> In this situation, the functions are not yet declared, therefore we cannot provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_UNISTD_H@ #else /* Normal invocation convention. */ /* The include_next requires a split double-inclusion guard. */ #if @HAVE_UNISTD_H@ # define _GL_INCLUDING_UNISTD_H # @INCLUDE_NEXT@ @NEXT_UNISTD_H@ # undef _GL_INCLUDING_UNISTD_H #endif /* Get all possible declarations of gethostname(). */ #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ \ && !defined _GL_INCLUDING_WINSOCK2_H # define _GL_INCLUDING_WINSOCK2_H # include # undef _GL_INCLUDING_WINSOCK2_H #endif #if !defined _@GUARD_PREFIX@_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H #define _@GUARD_PREFIX@_UNISTD_H /* NetBSD 5.0 mis-defines NULL. Also get size_t. */ /* But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include #endif /* mingw doesn't define the SEEK_* or *_FILENO macros in . */ /* MSVC declares 'unlink' in , not in . We must include it before we #define unlink rpl_unlink. */ /* Cygwin 1.7.1 declares symlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ || ((@GNULIB_UNLINK@ || defined GNULIB_POSIXCHECK) \ && (defined _WIN32 && ! defined __CYGWIN__)) \ || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \ && defined __CYGWIN__)) \ && ! defined __GLIBC__ # include #endif /* Cygwin 1.7.1 and Android 4.3 declare unlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) \ && (defined __CYGWIN__ || defined __ANDROID__) \ && ! defined __GLIBC__ # include #endif /* mingw fails to declare _exit in . */ /* mingw, MSVC, BeOS, Haiku declare environ in , not in . */ /* Solaris declares getcwd not only in but also in . */ /* OSF Tru64 Unix cannot see gnulib rpl_strtod when system is included here. */ /* But avoid namespace pollution on glibc systems. */ #if !defined __GLIBC__ && !defined __osf__ # define __need_system_stdlib_h # include # undef __need_system_stdlib_h #endif /* Native Windows platforms declare _chdir, _getcwd, _rmdir in and/or , not in . They also declare _access(), _chmod(), _close(), _dup(), _dup2(), _isatty(), _lseek(), _read(), _unlink(), _write() in . */ #if defined _WIN32 && !defined __CYGWIN__ # include # include #endif /* Native Windows platforms declare _execl*, _execv* in . */ #if defined _WIN32 && !defined __CYGWIN__ # include #endif /* AIX and OSF/1 5.1 declare getdomainname in , not in . NonStop Kernel declares gethostname in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \ || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \ && !defined __GLIBC__ # include #endif /* Mac OS X 10.13, Solaris 11.4, and Android 9.0 declare getentropy in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_GETENTROPY@ || defined GNULIB_POSIXCHECK) \ && ((defined __APPLE__ && defined __MACH__) || defined __sun \ || defined __ANDROID__) \ && @UNISTD_H_HAVE_SYS_RANDOM_H@ \ && !defined __GLIBC__ # include #endif /* Android 4.3 declares fchownat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (@GNULIB_FCHOWNAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \ && !defined __GLIBC__ # include #endif /* MSVC defines off_t in . May also define off_t to a 64-bit type on native Windows. */ /* Get off_t, ssize_t, mode_t. */ #include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Get getopt(), optarg, optind, opterr, optopt. */ #if @GNULIB_GETOPT_POSIX@ && @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT # include # include #endif #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_UNISTD_INLINE # define _GL_UNISTD_INLINE _GL_INLINE #endif /* Hide some function declarations from . */ #if @GNULIB_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@ # if !defined _@GUARD_PREFIX@_SYS_SOCKET_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef socket # define socket socket_used_without_including_sys_socket_h # undef connect # define connect connect_used_without_including_sys_socket_h # undef accept # define accept accept_used_without_including_sys_socket_h # undef bind # define bind bind_used_without_including_sys_socket_h # undef getpeername # define getpeername getpeername_used_without_including_sys_socket_h # undef getsockname # define getsockname getsockname_used_without_including_sys_socket_h # undef getsockopt # define getsockopt getsockopt_used_without_including_sys_socket_h # undef listen # define listen listen_used_without_including_sys_socket_h # undef recv # define recv recv_used_without_including_sys_socket_h # undef send # define send send_used_without_including_sys_socket_h # undef recvfrom # define recvfrom recvfrom_used_without_including_sys_socket_h # undef sendto # define sendto sendto_used_without_including_sys_socket_h # undef setsockopt # define setsockopt setsockopt_used_without_including_sys_socket_h # undef shutdown # define shutdown shutdown_used_without_including_sys_socket_h # else _GL_WARN_ON_USE (socket, "socket() used without including "); _GL_WARN_ON_USE (connect, "connect() used without including "); _GL_WARN_ON_USE (accept, "accept() used without including "); _GL_WARN_ON_USE (bind, "bind() used without including "); _GL_WARN_ON_USE (getpeername, "getpeername() used without including "); _GL_WARN_ON_USE (getsockname, "getsockname() used without including "); _GL_WARN_ON_USE (getsockopt, "getsockopt() used without including "); _GL_WARN_ON_USE (listen, "listen() used without including "); _GL_WARN_ON_USE (recv, "recv() used without including "); _GL_WARN_ON_USE (send, "send() used without including "); _GL_WARN_ON_USE (recvfrom, "recvfrom() used without including "); _GL_WARN_ON_USE (sendto, "sendto() used without including "); _GL_WARN_ON_USE (setsockopt, "setsockopt() used without including "); _GL_WARN_ON_USE (shutdown, "shutdown() used without including "); # endif # endif # if !defined _@GUARD_PREFIX@_SYS_SELECT_H # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef select # define select select_used_without_including_sys_select_h # else _GL_WARN_ON_USE (select, "select() used without including "); # endif # endif #endif /* OS/2 EMX lacks these macros. */ #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO # define STDOUT_FILENO 1 #endif #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif /* Ensure *_OK macros exist. */ #ifndef F_OK # define F_OK 0 # define X_OK 1 # define W_OK 2 # define R_OK 4 #endif /* Declare overridden functions. */ #if @GNULIB_ACCESS@ # if @REPLACE_ACCESS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access rpl_access # endif _GL_FUNCDECL_RPL (access, int, (const char *file, int mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (access, int, (const char *file, int mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access _access # endif _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); # else _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); # endif _GL_CXXALIASWARN (access); #elif defined GNULIB_POSIXCHECK # undef access # if HAVE_RAW_DECL_ACCESS /* The access() function is a security risk. */ _GL_WARN_ON_USE (access, "access does not always support X_OK - " "use gnulib module access for portability; " "also, this function is a security risk - " "use the gnulib module faccessat instead"); # endif #elif @GNULIB_MDA_ACCESS@ /* On native Windows, map 'access' to '_access', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::access always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef access # define access _access # endif _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); # else _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); # endif _GL_CXXALIASWARN (access); #endif #if @GNULIB_CHDIR@ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chdir # define chdir _chdir # endif _GL_CXXALIAS_MDA (chdir, int, (const char *file)); # else _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIASWARN (chdir); #elif defined GNULIB_POSIXCHECK # undef chdir # if HAVE_RAW_DECL_CHDIR _GL_WARN_ON_USE (chown, "chdir is not always in - " "use gnulib module chdir for portability"); # endif #elif @GNULIB_MDA_CHDIR@ /* On native Windows, map 'chdir' to '_chdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::chdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chdir # define chdir _chdir # endif _GL_CXXALIAS_MDA (chdir, int, (const char *file)); # else _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIASWARN (chdir); #endif #if @GNULIB_CHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_DUP2@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dup2 rpl_dup2 # endif _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd)); _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef dup2 # define dup2 _dup2 # endif _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); # else _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif _GL_CXXALIASWARN (dup2); #elif defined GNULIB_POSIXCHECK # undef dup2 # if HAVE_RAW_DECL_DUP2 _GL_WARN_ON_USE (dup2, "dup2 is unportable - " "use gnulib module dup2 for portability"); # endif #elif @GNULIB_MDA_DUP2@ /* On native Windows, map 'dup2' to '_dup2', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::dup2 always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef dup2 # define dup2 _dup2 # endif _GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd)); # else _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd)); # endif _GL_CXXALIASWARN (dup2); #endif #if @GNULIB_DUP3@ /* Copy the file descriptor OLDFD into file descriptor NEWFD, with the specified flags. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). Close NEWFD first if it is open. Return newfd if successful, otherwise -1 and errno set. See the Linux man page at . */ # if @HAVE_DUP3@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define dup3 rpl_dup3 # endif _GL_FUNCDECL_RPL (dup3, int, (int oldfd, int newfd, int flags)); _GL_CXXALIAS_RPL (dup3, int, (int oldfd, int newfd, int flags)); # else _GL_FUNCDECL_SYS (dup3, int, (int oldfd, int newfd, int flags)); _GL_CXXALIAS_SYS (dup3, int, (int oldfd, int newfd, int flags)); # endif _GL_CXXALIASWARN (dup3); #elif defined GNULIB_POSIXCHECK # undef dup3 # if HAVE_RAW_DECL_DUP3 _GL_WARN_ON_USE (dup3, "dup3 is unportable - " "use gnulib module dup3 for portability"); # endif #endif #if @GNULIB_ENVIRON@ # if defined __CYGWIN__ && !defined __i386__ /* The 'environ' variable is defined in a DLL. Therefore its declaration needs the '__declspec(dllimport)' attribute, but the system's lacks it. This leads to a link error on 64-bit Cygwin when the option -Wl,--disable-auto-import is in use. */ _GL_EXTERN_C __declspec(dllimport) char **environ; # endif # if !@HAVE_DECL_ENVIRON@ /* Set of environment variables and values. An array of strings of the form "VARIABLE=VALUE", terminated with a NULL. */ # if defined __APPLE__ && defined __MACH__ # include # if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR # define _GL_USE_CRT_EXTERNS # endif # endif # ifdef _GL_USE_CRT_EXTERNS # include # define environ (*_NSGetEnviron ()) # else # ifdef __cplusplus extern "C" { # endif extern char **environ; # ifdef __cplusplus } # endif # endif # endif #elif defined GNULIB_POSIXCHECK # if HAVE_RAW_DECL_ENVIRON _GL_UNISTD_INLINE char *** _GL_WARN_ON_USE_ATTRIBUTE ("environ is unportable - " "use gnulib module environ for portability") rpl_environ (void) { return &environ; } # undef environ # define environ (*rpl_environ ()) # endif #endif #if @GNULIB_EUIDACCESS@ /* Like access(), except that it uses the effective user id and group id of the current process. */ # if !@HAVE_EUIDACCESS@ _GL_FUNCDECL_SYS (euidaccess, int, (const char *filename, int mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (euidaccess, int, (const char *filename, int mode)); _GL_CXXALIASWARN (euidaccess); # if defined GNULIB_POSIXCHECK /* Like access(), this function is a security risk. */ _GL_WARN_ON_USE (euidaccess, "the euidaccess function is a security risk - " "use the gnulib module faccessat instead"); # endif #elif defined GNULIB_POSIXCHECK # undef euidaccess # if HAVE_RAW_DECL_EUIDACCESS _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - " "use gnulib module euidaccess for portability"); # endif #endif #if @GNULIB_EXECL@ # if @REPLACE_EXECL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execl # define execl rpl_execl # endif _GL_FUNCDECL_RPL (execl, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execl, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execl); #elif defined GNULIB_POSIXCHECK # undef execl # if HAVE_RAW_DECL_EXECL _GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - " "use gnulib module execl for portability"); # endif #elif @GNULIB_MDA_EXECL@ /* On native Windows, map 'execl' to '_execl', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execl always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execl # define execl _execl # endif _GL_CXXALIAS_MDA (execl, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execl); #endif #if @GNULIB_EXECLE@ # if @REPLACE_EXECLE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execle # define execle rpl_execle # endif _GL_FUNCDECL_RPL (execle, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execle, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execle); #elif defined GNULIB_POSIXCHECK # undef execle # if HAVE_RAW_DECL_EXECLE _GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - " "use gnulib module execle for portability"); # endif #elif @GNULIB_MDA_EXECLE@ /* On native Windows, map 'execle' to '_execle', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execle always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execle # define execle _execle # endif _GL_CXXALIAS_MDA (execle, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execle); #endif #if @GNULIB_EXECLP@ # if @REPLACE_EXECLP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execlp # define execlp rpl_execlp # endif _GL_FUNCDECL_RPL (execlp, int, (const char *program, const char *arg, ...) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (execlp, int, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execlp); #elif defined GNULIB_POSIXCHECK # undef execlp # if HAVE_RAW_DECL_EXECLP _GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - " "use gnulib module execlp for portability"); # endif #elif @GNULIB_MDA_EXECLP@ /* On native Windows, map 'execlp' to '_execlp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execlp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execlp # define execlp _execlp # endif _GL_CXXALIAS_MDA (execlp, intptr_t, (const char *program, const char *arg, ...)); # else _GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...)); # endif _GL_CXXALIASWARN (execlp); #endif #if @GNULIB_EXECV@ # if @REPLACE_EXECV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execv # define execv rpl_execv # endif _GL_FUNCDECL_RPL (execv, int, (const char *program, char * const *argv) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execv, int, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execv); #elif defined GNULIB_POSIXCHECK # undef execv # if HAVE_RAW_DECL_EXECV _GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - " "use gnulib module execv for portability"); # endif #elif @GNULIB_MDA_EXECV@ /* On native Windows, map 'execv' to '_execv', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execv always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execv # define execv _execv # endif _GL_CXXALIAS_MDA_CAST (execv, intptr_t, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execv); #endif #if @GNULIB_EXECVE@ # if @REPLACE_EXECVE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execve # define execve rpl_execve # endif _GL_FUNCDECL_RPL (execve, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execve, int, (const char *program, char * const *argv, char * const *env)); # else _GL_CXXALIAS_SYS (execve, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execve); #elif defined GNULIB_POSIXCHECK # undef execve # if HAVE_RAW_DECL_EXECVE _GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - " "use gnulib module execve for portability"); # endif #elif @GNULIB_MDA_EXECVE@ /* On native Windows, map 'execve' to '_execve', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execve always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execve # define execve _execve # endif _GL_CXXALIAS_MDA_CAST (execve, intptr_t, (const char *program, char * const *argv, char * const *env)); # else _GL_CXXALIAS_SYS (execve, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execve); #endif #if @GNULIB_EXECVP@ # if @REPLACE_EXECVP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvp # define execvp rpl_execvp # endif _GL_FUNCDECL_RPL (execvp, int, (const char *program, char * const *argv) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execvp, int, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execvp); #elif defined GNULIB_POSIXCHECK # undef execvp # if HAVE_RAW_DECL_EXECVP _GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - " "use gnulib module execvp for portability"); # endif #elif @GNULIB_MDA_EXECVP@ /* On native Windows, map 'execvp' to '_execvp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execvp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvp # define execvp _execvp # endif _GL_CXXALIAS_MDA_CAST (execvp, intptr_t, (const char *program, char * const *argv)); # else _GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv)); # endif _GL_CXXALIASWARN (execvp); #endif #if @GNULIB_EXECVPE@ # if @REPLACE_EXECVPE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvpe # define execvpe rpl_execvpe # endif _GL_FUNCDECL_RPL (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (execvpe, int, (const char *program, char * const *argv, char * const *env)); # else # if !@HAVE_DECL_EXECVPE@ _GL_FUNCDECL_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env)); # endif _GL_CXXALIASWARN (execvpe); #elif defined GNULIB_POSIXCHECK # undef execvpe # if HAVE_RAW_DECL_EXECVPE _GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - " "use gnulib module execvpe for portability"); # endif #elif @GNULIB_MDA_EXECVPE@ /* On native Windows, map 'execvpe' to '_execvpe', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::execvpe on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef execvpe # define execvpe _execvpe # endif _GL_CXXALIAS_MDA_CAST (execvpe, intptr_t, (const char *program, char * const *argv, char * const *env)); # elif @HAVE_EXECVPE@ # if !@HAVE_DECL_EXECVPE@ _GL_FUNCDECL_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (execvpe, int, (const char *program, char * const *argv, char * const *env)); # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_EXECVPE@ _GL_CXXALIASWARN (execvpe); # endif #endif #if @GNULIB_FACCESSAT@ # if @REPLACE_FACCESSAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef faccessat # define faccessat rpl_faccessat # endif _GL_FUNCDECL_RPL (faccessat, int, (int fd, char const *name, int mode, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (faccessat, int, (int fd, char const *name, int mode, int flag)); # else # if !@HAVE_FACCESSAT@ _GL_FUNCDECL_SYS (faccessat, int, (int fd, char const *file, int mode, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (faccessat, int, (int fd, char const *file, int mode, int flag)); # endif _GL_CXXALIASWARN (faccessat); #elif defined GNULIB_POSIXCHECK # undef faccessat # if HAVE_RAW_DECL_FACCESSAT _GL_WARN_ON_USE (faccessat, "faccessat is not portable - " "use gnulib module faccessat for portability"); # endif #endif #if @GNULIB_FCHDIR@ /* Change the process' current working directory to the directory on which the given file descriptor is open. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if ! @HAVE_FCHDIR@ _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); /* Gnulib internal hooks needed to maintain the fchdir metadata. */ _GL_EXTERN_C int _gl_register_fd (int fd, const char *filename) _GL_ARG_NONNULL ((2)); _GL_EXTERN_C void _gl_unregister_fd (int fd); _GL_EXTERN_C int _gl_register_dup (int oldfd, int newfd); _GL_EXTERN_C const char *_gl_directory_name (int fd); # else # if !@HAVE_DECL_FCHDIR@ _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/)); # endif # endif _GL_CXXALIAS_SYS (fchdir, int, (int /*fd*/)); _GL_CXXALIASWARN (fchdir); #elif defined GNULIB_POSIXCHECK # undef fchdir # if HAVE_RAW_DECL_FCHDIR _GL_WARN_ON_USE (fchdir, "fchdir is unportable - " "use gnulib module fchdir for portability"); # endif #endif #if @GNULIB_FCHOWNAT@ # if @REPLACE_FCHOWNAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fchownat # define fchownat rpl_fchownat # endif _GL_FUNCDECL_RPL (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag)); # else # if !@HAVE_FCHOWNAT@ _GL_FUNCDECL_SYS (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (fchownat, int, (int fd, char const *file, uid_t owner, gid_t group, int flag)); # endif _GL_CXXALIASWARN (fchownat); #elif defined GNULIB_POSIXCHECK # undef fchownat # if HAVE_RAW_DECL_FCHOWNAT _GL_WARN_ON_USE (fchownat, "fchownat is not portable - " "use gnulib module fchownat for portability"); # endif #endif #if @GNULIB_FDATASYNC@ /* Synchronize changes to a file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@ _GL_FUNCDECL_SYS (fdatasync, int, (int fd)); # endif _GL_CXXALIAS_SYS (fdatasync, int, (int fd)); _GL_CXXALIASWARN (fdatasync); #elif defined GNULIB_POSIXCHECK # undef fdatasync # if HAVE_RAW_DECL_FDATASYNC _GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - " "use gnulib module fdatasync for portability"); # endif #endif #if @GNULIB_FSYNC@ /* Synchronize changes, including metadata, to a file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if !@HAVE_FSYNC@ _GL_FUNCDECL_SYS (fsync, int, (int fd)); # endif _GL_CXXALIAS_SYS (fsync, int, (int fd)); _GL_CXXALIASWARN (fsync); #elif defined GNULIB_POSIXCHECK # undef fsync # if HAVE_RAW_DECL_FSYNC _GL_WARN_ON_USE (fsync, "fsync is unportable - " "use gnulib module fsync for portability"); # endif #endif #if @GNULIB_FTRUNCATE@ /* Change the size of the file to which FD is opened to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_FTRUNCATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ftruncate # define ftruncate rpl_ftruncate # endif _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); # else # if !@HAVE_FTRUNCATE@ _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); # endif _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); # endif _GL_CXXALIASWARN (ftruncate); #elif defined GNULIB_POSIXCHECK # undef ftruncate # if HAVE_RAW_DECL_FTRUNCATE _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - " "use gnulib module ftruncate for portability"); # endif #endif #if @GNULIB_GETCWD@ /* Get the name of the current working directory, and put it in SIZE bytes of BUF. Return BUF if successful, or NULL if the directory couldn't be determined or SIZE was too small. See the POSIX:2008 specification . Additionally, the gnulib module 'getcwd' guarantees the following GNU extension: If BUF is NULL, an array is allocated with 'malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary. */ # if @REPLACE_GETCWD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getcwd rpl_getcwd # endif _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size)); _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getcwd # define getcwd _getcwd # endif _GL_CXXALIAS_MDA (getcwd, char *, (char *buf, size_t size)); # else /* Need to cast, because on mingw, the second parameter is int size. */ _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif _GL_CXXALIASWARN (getcwd); #elif defined GNULIB_POSIXCHECK # undef getcwd # if HAVE_RAW_DECL_GETCWD _GL_WARN_ON_USE (getcwd, "getcwd is unportable - " "use gnulib module getcwd for portability"); # endif #elif @GNULIB_MDA_GETCWD@ /* On native Windows, map 'getcwd' to '_getcwd', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getcwd always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getcwd # define getcwd _getcwd # endif /* Need to cast, because on mingw, the second parameter is either 'int size' or 'size_t size'. */ _GL_CXXALIAS_MDA_CAST (getcwd, char *, (char *buf, size_t size)); # else _GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size)); # endif _GL_CXXALIASWARN (getcwd); #endif #if @GNULIB_GETDOMAINNAME@ /* Return the NIS domain name of the machine. WARNING! The NIS domain name is unrelated to the fully qualified host name of the machine. It is also unrelated to email addresses. WARNING! The NIS domain name is usually the empty string or "(none)" when not using NIS. Put up to LEN bytes of the NIS domain name into NAME. Null terminate it if the name is shorter than LEN. If the NIS domain name is longer than LEN, set errno = EINVAL and return -1. Return 0 if successful, otherwise set errno and return -1. */ # if @REPLACE_GETDOMAINNAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdomainname # define getdomainname rpl_getdomainname # endif _GL_FUNCDECL_RPL (getdomainname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getdomainname, int, (char *name, size_t len)); # else # if !@HAVE_DECL_GETDOMAINNAME@ _GL_FUNCDECL_SYS (getdomainname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getdomainname, int, (char *name, size_t len)); # endif _GL_CXXALIASWARN (getdomainname); #elif defined GNULIB_POSIXCHECK # undef getdomainname # if HAVE_RAW_DECL_GETDOMAINNAME _GL_WARN_ON_USE (getdomainname, "getdomainname is unportable - " "use gnulib module getdomainname for portability"); # endif #endif #if @GNULIB_GETDTABLESIZE@ /* Return the maximum number of file descriptors in the current process. In POSIX, this is same as sysconf (_SC_OPEN_MAX). */ # if @REPLACE_GETDTABLESIZE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getdtablesize # define getdtablesize rpl_getdtablesize # endif _GL_FUNCDECL_RPL (getdtablesize, int, (void)); _GL_CXXALIAS_RPL (getdtablesize, int, (void)); # else # if !@HAVE_GETDTABLESIZE@ _GL_FUNCDECL_SYS (getdtablesize, int, (void)); # endif /* Need to cast, because on AIX, the parameter list is (...). */ _GL_CXXALIAS_SYS_CAST (getdtablesize, int, (void)); # endif _GL_CXXALIASWARN (getdtablesize); #elif defined GNULIB_POSIXCHECK # undef getdtablesize # if HAVE_RAW_DECL_GETDTABLESIZE _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - " "use gnulib module getdtablesize for portability"); # endif #endif #if @GNULIB_GETENTROPY@ /* Fill a buffer with random bytes. */ # if !@HAVE_GETENTROPY@ _GL_FUNCDECL_SYS (getentropy, int, (void *buffer, size_t length)); # endif _GL_CXXALIAS_SYS (getentropy, int, (void *buffer, size_t length)); _GL_CXXALIASWARN (getentropy); #elif defined GNULIB_POSIXCHECK # undef getentropy # if HAVE_RAW_DECL_GETENTROPY _GL_WARN_ON_USE (getentropy, "getentropy is unportable - " "use gnulib module getentropy for portability"); # endif #endif #if @GNULIB_GETGROUPS@ /* Return the supplemental groups that the current process belongs to. It is unspecified whether the effective group id is in the list. If N is 0, return the group count; otherwise, N describes how many entries are available in GROUPS. Return -1 and set errno if N is not 0 and not large enough. Fails with ENOSYS on some systems. */ # if @REPLACE_GETGROUPS@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getgroups # define getgroups rpl_getgroups # endif _GL_FUNCDECL_RPL (getgroups, int, (int n, gid_t *groups)); _GL_CXXALIAS_RPL (getgroups, int, (int n, gid_t *groups)); # else # if !@HAVE_GETGROUPS@ _GL_FUNCDECL_SYS (getgroups, int, (int n, gid_t *groups)); # endif _GL_CXXALIAS_SYS (getgroups, int, (int n, gid_t *groups)); # endif _GL_CXXALIASWARN (getgroups); #elif defined GNULIB_POSIXCHECK # undef getgroups # if HAVE_RAW_DECL_GETGROUPS _GL_WARN_ON_USE (getgroups, "getgroups is unportable - " "use gnulib module getgroups for portability"); # endif #endif #if @GNULIB_GETHOSTNAME@ /* Return the standard host name of the machine. WARNING! The host name may or may not be fully qualified. Put up to LEN bytes of the host name into NAME. Null terminate it if the name is shorter than LEN. If the host name is longer than LEN, set errno = EINVAL and return -1. Return 0 if successful, otherwise set errno and return -1. */ # if @UNISTD_H_HAVE_WINSOCK2_H@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gethostname # define gethostname rpl_gethostname # endif _GL_FUNCDECL_RPL (gethostname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (gethostname, int, (char *name, size_t len)); # else # if !@HAVE_GETHOSTNAME@ _GL_FUNCDECL_SYS (gethostname, int, (char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 10 and OSF/1 5.1 systems, the second parameter is int len. */ _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len)); # endif _GL_CXXALIASWARN (gethostname); #elif @UNISTD_H_HAVE_WINSOCK2_H@ # undef gethostname # define gethostname gethostname_used_without_requesting_gnulib_module_gethostname #elif defined GNULIB_POSIXCHECK # undef gethostname # if HAVE_RAW_DECL_GETHOSTNAME _GL_WARN_ON_USE (gethostname, "gethostname is unportable - " "use gnulib module gethostname for portability"); # endif #endif #if @GNULIB_GETLOGIN@ /* Returns the user's login name, or NULL if it cannot be found. Upon error, returns NULL with errno set. See . Most programs don't need to use this function, because the information is available through environment variables: ${LOGNAME-$USER} on Unix platforms, $USERNAME on native Windows platforms. */ # if !@HAVE_DECL_GETLOGIN@ _GL_FUNCDECL_SYS (getlogin, char *, (void)); # endif _GL_CXXALIAS_SYS (getlogin, char *, (void)); _GL_CXXALIASWARN (getlogin); #elif defined GNULIB_POSIXCHECK # undef getlogin # if HAVE_RAW_DECL_GETLOGIN _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " "use gnulib module getlogin for portability"); # endif #endif #if @GNULIB_GETLOGIN_R@ /* Copies the user's login name to NAME. The array pointed to by NAME has room for SIZE bytes. Returns 0 if successful. Upon error, an error number is returned, or -1 in the case that the login name cannot be found but no specific error is provided (this case is hopefully rare but is left open by the POSIX spec). See . Most programs don't need to use this function, because the information is available through environment variables: ${LOGNAME-$USER} on Unix platforms, $USERNAME on native Windows platforms. */ # if @REPLACE_GETLOGIN_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getlogin_r rpl_getlogin_r # endif _GL_FUNCDECL_RPL (getlogin_r, int, (char *name, size_t size) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getlogin_r, int, (char *name, size_t size)); # else # if !@HAVE_DECL_GETLOGIN_R@ _GL_FUNCDECL_SYS (getlogin_r, int, (char *name, size_t size) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 10 systems, the second argument is int size. */ _GL_CXXALIAS_SYS_CAST (getlogin_r, int, (char *name, size_t size)); # endif _GL_CXXALIASWARN (getlogin_r); #elif defined GNULIB_POSIXCHECK # undef getlogin_r # if HAVE_RAW_DECL_GETLOGIN_R _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - " "use gnulib module getlogin_r for portability"); # endif #endif #if @GNULIB_GETPAGESIZE@ # if @REPLACE_GETPAGESIZE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getpagesize rpl_getpagesize # endif _GL_FUNCDECL_RPL (getpagesize, int, (void)); _GL_CXXALIAS_RPL (getpagesize, int, (void)); # else /* On HP-UX, getpagesize exists, but it is not declared in even if the compiler options -D_HPUX_SOURCE -D_XOPEN_SOURCE=600 are used. */ # if defined __hpux _GL_FUNCDECL_SYS (getpagesize, int, (void)); # endif # if !@HAVE_GETPAGESIZE@ # if !defined getpagesize /* This is for POSIX systems. */ # if !defined _gl_getpagesize && defined _SC_PAGESIZE # if ! (defined __VMS && __VMS_VER < 70000000) # define _gl_getpagesize() sysconf (_SC_PAGESIZE) # endif # endif /* This is for older VMS. */ # if !defined _gl_getpagesize && defined __VMS # ifdef __ALPHA # define _gl_getpagesize() 8192 # else # define _gl_getpagesize() 512 # endif # endif /* This is for BeOS. */ # if !defined _gl_getpagesize && @HAVE_OS_H@ # include # if defined B_PAGE_SIZE # define _gl_getpagesize() B_PAGE_SIZE # endif # endif /* This is for AmigaOS4.0. */ # if !defined _gl_getpagesize && defined __amigaos4__ # define _gl_getpagesize() 2048 # endif /* This is for older Unix systems. */ # if !defined _gl_getpagesize && @HAVE_SYS_PARAM_H@ # include # ifdef EXEC_PAGESIZE # define _gl_getpagesize() EXEC_PAGESIZE # else # ifdef NBPG # ifndef CLSIZE # define CLSIZE 1 # endif # define _gl_getpagesize() (NBPG * CLSIZE) # else # ifdef NBPC # define _gl_getpagesize() NBPC # endif # endif # endif # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define getpagesize() _gl_getpagesize () # else # if !GNULIB_defined_getpagesize_function _GL_UNISTD_INLINE int getpagesize () { return _gl_getpagesize (); } # define GNULIB_defined_getpagesize_function 1 # endif # endif # endif # endif /* Need to cast, because on Cygwin 1.5.x systems, the return type is size_t. */ _GL_CXXALIAS_SYS_CAST (getpagesize, int, (void)); # endif # if @HAVE_DECL_GETPAGESIZE@ _GL_CXXALIASWARN (getpagesize); # endif #elif defined GNULIB_POSIXCHECK # undef getpagesize # if HAVE_RAW_DECL_GETPAGESIZE _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " "use gnulib module getpagesize for portability"); # endif #endif #if @GNULIB_GETPASS@ /* Function getpass() from module 'getpass': Read a password from /dev/tty or stdin. Function getpass() from module 'getpass-gnu': Read a password of arbitrary length from /dev/tty or stdin. */ # if (@GNULIB_GETPASS@ && @REPLACE_GETPASS@) \ || (@GNULIB_GETPASS_GNU@ && @REPLACE_GETPASS_FOR_GETPASS_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getpass # define getpass rpl_getpass # endif _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); # else # if !@HAVE_GETPASS@ _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); # endif _GL_CXXALIASWARN (getpass); #elif defined GNULIB_POSIXCHECK # undef getpass # if HAVE_RAW_DECL_GETPASS _GL_WARN_ON_USE (getpass, "getpass is unportable - " "use gnulib module getpass or getpass-gnu for portability"); # endif #endif #if @GNULIB_MDA_GETPID@ /* On native Windows, map 'getpid' to '_getpid', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::getpid always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef getpid # define getpid _getpid # endif _GL_CXXALIAS_MDA (getpid, int, (void)); # else _GL_CXXALIAS_SYS (getpid, pid_t, (void)); # endif _GL_CXXALIASWARN (getpid); #endif #if @GNULIB_GETUSERSHELL@ /* Return the next valid login shell on the system, or NULL when the end of the list has been reached. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (getusershell, char *, (void)); # endif _GL_CXXALIAS_SYS (getusershell, char *, (void)); _GL_CXXALIASWARN (getusershell); #elif defined GNULIB_POSIXCHECK # undef getusershell # if HAVE_RAW_DECL_GETUSERSHELL _GL_WARN_ON_USE (getusershell, "getusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GETUSERSHELL@ /* Rewind to pointer that is advanced at each getusershell() call. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (setusershell, void, (void)); # endif _GL_CXXALIAS_SYS (setusershell, void, (void)); _GL_CXXALIASWARN (setusershell); #elif defined GNULIB_POSIXCHECK # undef setusershell # if HAVE_RAW_DECL_SETUSERSHELL _GL_WARN_ON_USE (setusershell, "setusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GETUSERSHELL@ /* Free the pointer that is advanced at each getusershell() call and associated resources. */ # if !@HAVE_DECL_GETUSERSHELL@ _GL_FUNCDECL_SYS (endusershell, void, (void)); # endif _GL_CXXALIAS_SYS (endusershell, void, (void)); _GL_CXXALIASWARN (endusershell); #elif defined GNULIB_POSIXCHECK # undef endusershell # if HAVE_RAW_DECL_ENDUSERSHELL _GL_WARN_ON_USE (endusershell, "endusershell is unportable - " "use gnulib module getusershell for portability"); # endif #endif #if @GNULIB_GROUP_MEMBER@ /* Determine whether group id is in calling user's group list. */ # if !@HAVE_GROUP_MEMBER@ _GL_FUNCDECL_SYS (group_member, int, (gid_t gid)); # endif _GL_CXXALIAS_SYS (group_member, int, (gid_t gid)); _GL_CXXALIASWARN (group_member); #elif defined GNULIB_POSIXCHECK # undef group_member # if HAVE_RAW_DECL_GROUP_MEMBER _GL_WARN_ON_USE (group_member, "group_member is unportable - " "use gnulib module group-member for portability"); # endif #endif #if @GNULIB_ISATTY@ # if @REPLACE_ISATTY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty rpl_isatty # endif # define GNULIB_defined_isatty 1 _GL_FUNCDECL_RPL (isatty, int, (int fd)); _GL_CXXALIAS_RPL (isatty, int, (int fd)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty _isatty # endif _GL_CXXALIAS_MDA (isatty, int, (int fd)); # else _GL_CXXALIAS_SYS (isatty, int, (int fd)); # endif _GL_CXXALIASWARN (isatty); #elif defined GNULIB_POSIXCHECK # undef isatty # if HAVE_RAW_DECL_ISATTY _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - " "use gnulib module isatty for portability"); # endif #elif @GNULIB_MDA_ISATTY@ /* On native Windows, map 'isatty' to '_isatty', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::isatty always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef isatty # define isatty _isatty # endif _GL_CXXALIAS_MDA (isatty, int, (int fd)); # else _GL_CXXALIAS_SYS (isatty, int, (int fd)); # endif _GL_CXXALIASWARN (isatty); #endif #if @GNULIB_LCHOWN@ /* Change the owner of FILE to UID (if UID is not -1) and the group of FILE to GID (if GID is not -1). Do not follow symbolic links. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_LCHOWN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lchown # define lchown rpl_lchown # endif _GL_FUNCDECL_RPL (lchown, int, (char const *file, uid_t owner, gid_t group) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (lchown, int, (char const *file, uid_t owner, gid_t group)); # else # if !@HAVE_LCHOWN@ _GL_FUNCDECL_SYS (lchown, int, (char const *file, uid_t owner, gid_t group) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (lchown, int, (char const *file, uid_t owner, gid_t group)); # endif _GL_CXXALIASWARN (lchown); #elif defined GNULIB_POSIXCHECK # undef lchown # if HAVE_RAW_DECL_LCHOWN _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - " "use gnulib module lchown for portability"); # endif #endif #if @GNULIB_LINK@ /* Create a new hard link for an existing file. Return 0 if successful, otherwise -1 and errno set. See POSIX:2008 specification . */ # if @REPLACE_LINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define link rpl_link # endif _GL_FUNCDECL_RPL (link, int, (const char *path1, const char *path2) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (link, int, (const char *path1, const char *path2)); # else # if !@HAVE_LINK@ _GL_FUNCDECL_SYS (link, int, (const char *path1, const char *path2) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (link, int, (const char *path1, const char *path2)); # endif _GL_CXXALIASWARN (link); #elif defined GNULIB_POSIXCHECK # undef link # if HAVE_RAW_DECL_LINK _GL_WARN_ON_USE (link, "link is unportable - " "use gnulib module link for portability"); # endif #endif #if @GNULIB_LINKAT@ /* Create a new hard link for an existing file, relative to two directories. FLAG controls whether symlinks are followed. Return 0 if successful, otherwise -1 and errno set. */ # if @REPLACE_LINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef linkat # define linkat rpl_linkat # endif _GL_FUNCDECL_RPL (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag)); # else # if !@HAVE_LINKAT@ _GL_FUNCDECL_SYS (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag) _GL_ARG_NONNULL ((2, 4))); # endif _GL_CXXALIAS_SYS (linkat, int, (int fd1, const char *path1, int fd2, const char *path2, int flag)); # endif _GL_CXXALIASWARN (linkat); #elif defined GNULIB_POSIXCHECK # undef linkat # if HAVE_RAW_DECL_LINKAT _GL_WARN_ON_USE (linkat, "linkat is unportable - " "use gnulib module linkat for portability"); # endif #endif #if @GNULIB_LSEEK@ /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END. Return the new offset if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_LSEEK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lseek rpl_lseek # endif _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lseek # define lseek _lseek # endif _GL_CXXALIAS_MDA (lseek, off_t, (int fd, off_t offset, int whence)); # else _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif _GL_CXXALIASWARN (lseek); #elif defined GNULIB_POSIXCHECK # undef lseek # if HAVE_RAW_DECL_LSEEK _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some " "systems - use gnulib module lseek for portability"); # endif #elif @GNULIB_MDA_LSEEK@ /* On native Windows, map 'lseek' to '_lseek', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::lseek always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lseek # define lseek _lseek # endif _GL_CXXALIAS_MDA (lseek, long, (int fd, long offset, int whence)); # else _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); # endif _GL_CXXALIASWARN (lseek); #endif #if @GNULIB_PIPE@ /* Create a pipe, defaulting to O_BINARY mode. Store the read-end as fd[0] and the write-end as fd[1]. Return 0 upon success, or -1 with errno set upon failure. */ # if !@HAVE_PIPE@ _GL_FUNCDECL_SYS (pipe, int, (int fd[2]) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (pipe, int, (int fd[2])); _GL_CXXALIASWARN (pipe); #elif defined GNULIB_POSIXCHECK # undef pipe # if HAVE_RAW_DECL_PIPE _GL_WARN_ON_USE (pipe, "pipe is unportable - " "use gnulib module pipe-posix for portability"); # endif #endif #if @GNULIB_PIPE2@ /* Create a pipe, applying the given flags when opening the read-end of the pipe and the write-end of the pipe. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). Store the read-end as fd[0] and the write-end as fd[1]. Return 0 upon success, or -1 with errno set upon failure. See also the Linux man page at . */ # if @HAVE_PIPE2@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define pipe2 rpl_pipe2 # endif _GL_FUNCDECL_RPL (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (pipe2, int, (int fd[2], int flags)); # else _GL_FUNCDECL_SYS (pipe2, int, (int fd[2], int flags) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_SYS (pipe2, int, (int fd[2], int flags)); # endif _GL_CXXALIASWARN (pipe2); #elif defined GNULIB_POSIXCHECK # undef pipe2 # if HAVE_RAW_DECL_PIPE2 _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " "use gnulib module pipe2 for portability"); # endif #endif #if @GNULIB_PREAD@ /* Read at most BUFSIZE bytes from FD into BUF, starting at OFFSET. Return the number of bytes placed into BUF if successful, otherwise set errno and return -1. 0 indicates EOF. See the POSIX:2008 specification . */ # if @REPLACE_PREAD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pread # define pread rpl_pread # endif _GL_FUNCDECL_RPL (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset)); # else # if !@HAVE_PREAD@ _GL_FUNCDECL_SYS (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (pread, ssize_t, (int fd, void *buf, size_t bufsize, off_t offset)); # endif _GL_CXXALIASWARN (pread); #elif defined GNULIB_POSIXCHECK # undef pread # if HAVE_RAW_DECL_PREAD _GL_WARN_ON_USE (pread, "pread is unportable - " "use gnulib module pread for portability"); # endif #endif #if @GNULIB_PWRITE@ /* Write at most BUFSIZE bytes from BUF into FD, starting at OFFSET. Return the number of bytes written if successful, otherwise set errno and return -1. 0 indicates nothing written. See the POSIX:2008 specification . */ # if @REPLACE_PWRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef pwrite # define pwrite rpl_pwrite # endif _GL_FUNCDECL_RPL (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset)); # else # if !@HAVE_PWRITE@ _GL_FUNCDECL_SYS (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (pwrite, ssize_t, (int fd, const void *buf, size_t bufsize, off_t offset)); # endif _GL_CXXALIASWARN (pwrite); #elif defined GNULIB_POSIXCHECK # undef pwrite # if HAVE_RAW_DECL_PWRITE _GL_WARN_ON_USE (pwrite, "pwrite is unportable - " "use gnulib module pwrite for portability"); # endif #endif #if @GNULIB_READ@ /* Read up to COUNT bytes from file descriptor FD into the buffer starting at BUF. See the POSIX:2008 specification . */ # if @REPLACE_READ@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read rpl_read # endif _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read _read # endif _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count)); # else _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); # endif _GL_CXXALIASWARN (read); #elif @GNULIB_MDA_READ@ /* On native Windows, map 'read' to '_read', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::read always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef read # define read _read # endif # ifdef __MINGW32__ _GL_CXXALIAS_MDA (read, int, (int fd, void *buf, unsigned int count)); # else _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, unsigned int count)); # endif # else _GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count)); # endif _GL_CXXALIASWARN (read); #endif #if @GNULIB_READLINK@ /* Read the contents of the symbolic link FILE and place the first BUFSIZE bytes of it into BUF. Return the number of bytes placed into BUF if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_READLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define readlink rpl_readlink # endif _GL_FUNCDECL_RPL (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize)); # else # if !@HAVE_READLINK@ _GL_FUNCDECL_SYS (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (readlink, ssize_t, (const char *restrict file, char *restrict buf, size_t bufsize)); # endif _GL_CXXALIASWARN (readlink); #elif defined GNULIB_POSIXCHECK # undef readlink # if HAVE_RAW_DECL_READLINK _GL_WARN_ON_USE (readlink, "readlink is unportable - " "use gnulib module readlink for portability"); # endif #endif #if @GNULIB_READLINKAT@ # if @REPLACE_READLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define readlinkat rpl_readlinkat # endif _GL_FUNCDECL_RPL (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len)); # else # if !@HAVE_READLINKAT@ _GL_FUNCDECL_SYS (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (readlinkat, ssize_t, (int fd, char const *restrict file, char *restrict buf, size_t len)); # endif _GL_CXXALIASWARN (readlinkat); #elif defined GNULIB_POSIXCHECK # undef readlinkat # if HAVE_RAW_DECL_READLINKAT _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - " "use gnulib module readlinkat for portability"); # endif #endif #if @GNULIB_RMDIR@ /* Remove the directory DIR. */ # if @REPLACE_RMDIR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define rmdir rpl_rmdir # endif _GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (rmdir, int, (char const *name)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rmdir # define rmdir _rmdir # endif _GL_CXXALIAS_MDA (rmdir, int, (char const *name)); # else _GL_CXXALIAS_SYS (rmdir, int, (char const *name)); # endif _GL_CXXALIASWARN (rmdir); #elif defined GNULIB_POSIXCHECK # undef rmdir # if HAVE_RAW_DECL_RMDIR _GL_WARN_ON_USE (rmdir, "rmdir is unportable - " "use gnulib module rmdir for portability"); # endif #elif @GNULIB_MDA_RMDIR@ /* On native Windows, map 'rmdir' to '_rmdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::rmdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef rmdir # define rmdir _rmdir # endif _GL_CXXALIAS_MDA (rmdir, int, (char const *name)); # else _GL_CXXALIAS_SYS (rmdir, int, (char const *name)); # endif _GL_CXXALIASWARN (rmdir); #endif #if @GNULIB_SETHOSTNAME@ /* Set the host name of the machine. The host name may or may not be fully qualified. Put LEN bytes of NAME into the host name. Return 0 if successful, otherwise, set errno and return -1. Platforms with no ability to set the hostname return -1 and set errno = ENOSYS. */ # if !@HAVE_SETHOSTNAME@ || !@HAVE_DECL_SETHOSTNAME@ _GL_FUNCDECL_SYS (sethostname, int, (const char *name, size_t len) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Solaris 11 2011-10, Mac OS X 10.5, IRIX 6.5 and FreeBSD 6.4 the second parameter is int. On Solaris 11 2011-10, the first parameter is not const. */ _GL_CXXALIAS_SYS_CAST (sethostname, int, (const char *name, size_t len)); _GL_CXXALIASWARN (sethostname); #elif defined GNULIB_POSIXCHECK # undef sethostname # if HAVE_RAW_DECL_SETHOSTNAME _GL_WARN_ON_USE (sethostname, "sethostname is unportable - " "use gnulib module sethostname for portability"); # endif #endif #if @GNULIB_SLEEP@ /* Pause the execution of the current thread for N seconds. Returns the number of seconds left to sleep. See the POSIX:2008 specification . */ # if @REPLACE_SLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef sleep # define sleep rpl_sleep # endif _GL_FUNCDECL_RPL (sleep, unsigned int, (unsigned int n)); _GL_CXXALIAS_RPL (sleep, unsigned int, (unsigned int n)); # else # if !@HAVE_SLEEP@ _GL_FUNCDECL_SYS (sleep, unsigned int, (unsigned int n)); # endif _GL_CXXALIAS_SYS (sleep, unsigned int, (unsigned int n)); # endif _GL_CXXALIASWARN (sleep); #elif defined GNULIB_POSIXCHECK # undef sleep # if HAVE_RAW_DECL_SLEEP _GL_WARN_ON_USE (sleep, "sleep is unportable - " "use gnulib module sleep for portability"); # endif #endif #if @GNULIB_MDA_SWAB@ /* On native Windows, map 'swab' to '_swab', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::swab always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef swab # define swab _swab # endif /* Need to cast, because in old mingw the arguments are (const char *from, char *to, size_t n). */ _GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n)); # else # if defined __hpux /* HP-UX */ _GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n)); # elif defined __sun && !defined _XPG4 /* Solaris */ _GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n)); # else _GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n)); # endif # endif _GL_CXXALIASWARN (swab); #endif #if @GNULIB_SYMLINK@ # if @REPLACE_SYMLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef symlink # define symlink rpl_symlink # endif _GL_FUNCDECL_RPL (symlink, int, (char const *contents, char const *file) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (symlink, int, (char const *contents, char const *file)); # else # if !@HAVE_SYMLINK@ _GL_FUNCDECL_SYS (symlink, int, (char const *contents, char const *file) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (symlink, int, (char const *contents, char const *file)); # endif _GL_CXXALIASWARN (symlink); #elif defined GNULIB_POSIXCHECK # undef symlink # if HAVE_RAW_DECL_SYMLINK _GL_WARN_ON_USE (symlink, "symlink is not portable - " "use gnulib module symlink for portability"); # endif #endif #if @GNULIB_SYMLINKAT@ # if @REPLACE_SYMLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef symlinkat # define symlinkat rpl_symlinkat # endif _GL_FUNCDECL_RPL (symlinkat, int, (char const *contents, int fd, char const *file) _GL_ARG_NONNULL ((1, 3))); _GL_CXXALIAS_RPL (symlinkat, int, (char const *contents, int fd, char const *file)); # else # if !@HAVE_SYMLINKAT@ _GL_FUNCDECL_SYS (symlinkat, int, (char const *contents, int fd, char const *file) _GL_ARG_NONNULL ((1, 3))); # endif _GL_CXXALIAS_SYS (symlinkat, int, (char const *contents, int fd, char const *file)); # endif _GL_CXXALIASWARN (symlinkat); #elif defined GNULIB_POSIXCHECK # undef symlinkat # if HAVE_RAW_DECL_SYMLINKAT _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - " "use gnulib module symlinkat for portability"); # endif #endif #if @GNULIB_TRUNCATE@ /* Change the size of the file designated by FILENAME to become equal to LENGTH. Return 0 if successful, otherwise -1 and errno set. See the POSIX:2008 specification . */ # if @REPLACE_TRUNCATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef truncate # define truncate rpl_truncate # endif _GL_FUNCDECL_RPL (truncate, int, (const char *filename, off_t length) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (truncate, int, (const char *filename, off_t length)); # else # if !@HAVE_DECL_TRUNCATE@ _GL_FUNCDECL_SYS (truncate, int, (const char *filename, off_t length) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (truncate, int, (const char *filename, off_t length)); # endif _GL_CXXALIASWARN (truncate); #elif defined GNULIB_POSIXCHECK # undef truncate # if HAVE_RAW_DECL_TRUNCATE _GL_WARN_ON_USE (truncate, "truncate is unportable - " "use gnulib module truncate for portability"); # endif #endif #if @GNULIB_TTYNAME_R@ /* Store at most BUFLEN characters of the pathname of the terminal FD is open on in BUF. Return 0 on success, otherwise an error number. */ # if @REPLACE_TTYNAME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ttyname_r # define ttyname_r rpl_ttyname_r # endif _GL_FUNCDECL_RPL (ttyname_r, int, (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (ttyname_r, int, (int fd, char *buf, size_t buflen)); # else # if !@HAVE_DECL_TTYNAME_R@ _GL_FUNCDECL_SYS (ttyname_r, int, (int fd, char *buf, size_t buflen) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (ttyname_r, int, (int fd, char *buf, size_t buflen)); # endif _GL_CXXALIASWARN (ttyname_r); #elif defined GNULIB_POSIXCHECK # undef ttyname_r # if HAVE_RAW_DECL_TTYNAME_R _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - " "use gnulib module ttyname_r for portability"); # endif #endif #if @GNULIB_UNLINK@ # if @REPLACE_UNLINK@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink rpl_unlink # endif _GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (unlink, int, (char const *file)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink _unlink # endif _GL_CXXALIAS_MDA (unlink, int, (char const *file)); # else _GL_CXXALIAS_SYS (unlink, int, (char const *file)); # endif _GL_CXXALIASWARN (unlink); #elif defined GNULIB_POSIXCHECK # undef unlink # if HAVE_RAW_DECL_UNLINK _GL_WARN_ON_USE (unlink, "unlink is not portable - " "use gnulib module unlink for portability"); # endif #elif @GNULIB_MDA_UNLINK@ /* On native Windows, map 'unlink' to '_unlink', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::unlink always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlink # define unlink _unlink # endif _GL_CXXALIAS_MDA (unlink, int, (char const *file)); # else _GL_CXXALIAS_SYS (unlink, int, (char const *file)); # endif _GL_CXXALIASWARN (unlink); #endif #if @GNULIB_UNLINKAT@ # if @REPLACE_UNLINKAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unlinkat # define unlinkat rpl_unlinkat # endif _GL_FUNCDECL_RPL (unlinkat, int, (int fd, char const *file, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (unlinkat, int, (int fd, char const *file, int flag)); # else # if !@HAVE_UNLINKAT@ _GL_FUNCDECL_SYS (unlinkat, int, (int fd, char const *file, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (unlinkat, int, (int fd, char const *file, int flag)); # endif _GL_CXXALIASWARN (unlinkat); #elif defined GNULIB_POSIXCHECK # undef unlinkat # if HAVE_RAW_DECL_UNLINKAT _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - " "use gnulib module unlinkat for portability"); # endif #endif #if @GNULIB_USLEEP@ /* Pause the execution of the current thread for N microseconds. Returns 0 on completion, or -1 on range error. See the POSIX:2001 specification . */ # if @REPLACE_USLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef usleep # define usleep rpl_usleep # endif _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); # else # if !@HAVE_USLEEP@ _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); # endif /* Need to cast, because on Haiku, the first parameter is unsigned int n. */ _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); # endif _GL_CXXALIASWARN (usleep); #elif defined GNULIB_POSIXCHECK # undef usleep # if HAVE_RAW_DECL_USLEEP _GL_WARN_ON_USE (usleep, "usleep is unportable - " "use gnulib module usleep for portability"); # endif #endif #if @GNULIB_WRITE@ /* Write up to COUNT bytes starting at BUF to file descriptor FD. See the POSIX:2008 specification . */ # if @REPLACE_WRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write rpl_write # endif _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write _write # endif _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, size_t count)); # else _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); # endif _GL_CXXALIASWARN (write); #elif @GNULIB_MDA_WRITE@ /* On native Windows, map 'write' to '_write', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::write always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef write # define write _write # endif # ifdef __MINGW32__ _GL_CXXALIAS_MDA (write, int, (int fd, const void *buf, unsigned int count)); # else _GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, unsigned int count)); # endif # else _GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); # endif _GL_CXXALIASWARN (write); #endif _GL_INLINE_HEADER_END #endif /* _@GUARD_PREFIX@_UNISTD_H */ #endif /* _GL_INCLUDING_UNISTD_H */ #endif /* _@GUARD_PREFIX@_UNISTD_H */ shishi-1.0.3/src/gl/msvc-nothrow.h0000644000000000000000000000302314273615075013711 00000000000000/* Wrappers that don't throw invalid parameter notifications with MSVC runtime libraries. Copyright (C) 2011-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MSVC_NOTHROW_H #define _MSVC_NOTHROW_H /* With MSVC runtime libraries with the "invalid parameter handler" concept, functions like fprintf(), dup2(), or close() crash when the caller passes an invalid argument. But POSIX wants error codes (such as EINVAL or EBADF) instead. This file defines wrappers that turn such an invalid parameter notification into an error code. */ #if defined _WIN32 && ! defined __CYGWIN__ /* Get original declaration of _get_osfhandle. */ # include # if HAVE_MSVC_INVALID_PARAMETER_HANDLER /* Override _get_osfhandle. */ extern intptr_t _gl_nothrow_get_osfhandle (int fd); # define _get_osfhandle _gl_nothrow_get_osfhandle # endif #endif #endif /* _MSVC_NOTHROW_H */ shishi-1.0.3/src/gl/error.c0000644000000000000000000002475114273615074012401 00000000000000/* Error handler for noninteractive utilities Copyright (C) 1990-1998, 2000-2007, 2009-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by David MacKenzie . */ #if !_LIBC # include #endif #include "error.h" #include #include #include #include #if !_LIBC && ENABLE_NLS # include "gettext.h" # define _(msgid) gettext (msgid) #endif #ifdef _LIBC # include # include # include # include # define mbsrtowcs __mbsrtowcs # define USE_UNLOCKED_IO 0 # define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(a, b) # define _GL_ARG_NONNULL(a) #else # include "getprogname.h" #endif #if USE_UNLOCKED_IO # include "unlocked-io.h" #endif #ifndef _ # define _(String) String #endif /* If NULL, error will flush stdout, then print on stderr the program name, a colon and a space. Otherwise, error will call this function without parameters instead. */ void (*error_print_progname) (void); /* This variable is incremented each time 'error' is called. */ unsigned int error_message_count; #ifdef _LIBC /* In the GNU C library, there is a predefined variable for this. */ # define program_name program_invocation_name # include # include # include /* In GNU libc we want do not want to use the common name 'error' directly. Instead make it a weak alias. */ extern void __error (int status, int errnum, const char *message, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern void __error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) __attribute__ ((__format__ (__printf__, 5, 6))); # define error __error # define error_at_line __error_at_line # include # define fflush(s) _IO_fflush (s) # undef putc # define putc(c, fp) _IO_putc (c, fp) # include #else /* not _LIBC */ # include # include # if defined _WIN32 && ! defined __CYGWIN__ /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN # include /* Get _get_osfhandle. */ # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif # endif /* The gnulib override of fcntl is not needed in this file. */ # undef fcntl # if !(GNULIB_STRERROR_R_POSIX || HAVE_DECL_STRERROR_R) # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" # endif # if STRERROR_R_CHAR_P char *strerror_r (int errnum, char *buf, size_t buflen); # else int strerror_r (int errnum, char *buf, size_t buflen); # endif # endif # define program_name getprogname () # if GNULIB_STRERROR_R_POSIX || HAVE_STRERROR_R || defined strerror_r # define __strerror_r strerror_r # endif /* GNULIB_STRERROR_R_POSIX || HAVE_STRERROR_R || defined strerror_r */ #endif /* not _LIBC */ #if !_LIBC /* Return non-zero if FD is open. */ static int is_open (int fd) { # if defined _WIN32 && ! defined __CYGWIN__ /* On native Windows: The initial state of unassigned standard file descriptors is that they are open but point to an INVALID_HANDLE_VALUE. There is no fcntl, and the gnulib replacement fcntl does not support F_GETFL. */ return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE; # else # ifndef F_GETFL # error Please port fcntl to your platform # endif return 0 <= fcntl (fd, F_GETFL); # endif } #endif static void flush_stdout (void) { #if !_LIBC int stdout_fd; # if GNULIB_FREOPEN_SAFER /* Use of gnulib's freopen-safer module normally ensures that fileno (stdout) == 1 whenever stdout is open. */ stdout_fd = STDOUT_FILENO; # else /* POSIX states that fileno (stdout) after fclose is unspecified. But in practice it is not a problem, because stdout is statically allocated and the fd of a FILE stream is stored as a field in its allocated memory. */ stdout_fd = fileno (stdout); # endif /* POSIX states that fflush (stdout) after fclose is unspecified; it is safe in glibc, but not on all other platforms. fflush (NULL) is always defined, but too draconian. */ if (0 <= stdout_fd && is_open (stdout_fd)) #endif fflush (stdout); } static void print_errno_message (int errnum) { char const *s; #if _LIBC || GNULIB_STRERROR_R_POSIX || defined HAVE_STRERROR_R char errbuf[1024]; # if _LIBC || (!GNULIB_STRERROR_R_POSIX && STRERROR_R_CHAR_P) s = __strerror_r (errnum, errbuf, sizeof errbuf); # else if (__strerror_r (errnum, errbuf, sizeof errbuf) == 0) s = errbuf; else s = 0; # endif #else s = strerror (errnum); #endif #if !_LIBC if (! s) s = _("Unknown system error"); #endif #if _LIBC __fxprintf (NULL, ": %s", s); #else fprintf (stderr, ": %s", s); #endif } static void _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3)) error_tail (int status, int errnum, const char *message, va_list args) { #if _LIBC if (_IO_fwide (stderr, 0) > 0) { size_t len = strlen (message) + 1; wchar_t *wmessage = NULL; mbstate_t st; size_t res; const char *tmp; bool use_malloc = false; while (1) { if (__libc_use_alloca (len * sizeof (wchar_t))) wmessage = (wchar_t *) alloca (len * sizeof (wchar_t)); else { if (!use_malloc) wmessage = NULL; wchar_t *p = (wchar_t *) realloc (wmessage, len * sizeof (wchar_t)); if (p == NULL) { free (wmessage); fputws_unlocked (L"out of memory\n", stderr); return; } wmessage = p; use_malloc = true; } memset (&st, '\0', sizeof (st)); tmp = message; res = mbsrtowcs (wmessage, &tmp, len, &st); if (res != len) break; if (__builtin_expect (len >= SIZE_MAX / sizeof (wchar_t) / 2, 0)) { /* This really should not happen if everything is fine. */ res = (size_t) -1; break; } len *= 2; } if (res == (size_t) -1) { /* The string cannot be converted. */ if (use_malloc) { free (wmessage); use_malloc = false; } wmessage = (wchar_t *) L"???"; } __vfwprintf (stderr, wmessage, args); if (use_malloc) free (wmessage); } else #endif vfprintf (stderr, message, args); ++error_message_count; if (errnum) print_errno_message (errnum); #if _LIBC __fxprintf (NULL, "\n"); #else putc ('\n', stderr); #endif fflush (stderr); if (status) exit (status); } /* Print the program name and error message MESSAGE, which is a printf-style format string with optional args. If ERRNUM is nonzero, print its corresponding system error message. Exit with status STATUS if it is nonzero. */ void error (int status, int errnum, const char *message, ...) { va_list args; #if defined _LIBC && defined __libc_ptf_call /* We do not want this call to be cut short by a thread cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), 0); #endif flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif if (error_print_progname) (*error_print_progname) (); else { #if _LIBC __fxprintf (NULL, "%s: ", program_name); #else fprintf (stderr, "%s: ", program_name); #endif } va_start (args, message); error_tail (status, errnum, message, args); va_end (args); #ifdef _LIBC _IO_funlockfile (stderr); # ifdef __libc_ptf_call __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0); # endif #endif } /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ int error_one_per_line; void error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message, ...) { va_list args; if (error_one_per_line) { static const char *old_file_name; static unsigned int old_line_number; if (old_line_number == line_number && (file_name == old_file_name || (old_file_name != NULL && file_name != NULL && strcmp (old_file_name, file_name) == 0))) /* Simply return and print nothing. */ return; old_file_name = file_name; old_line_number = line_number; } #if defined _LIBC && defined __libc_ptf_call /* We do not want this call to be cut short by a thread cancellation. Therefore disable cancellation for now. */ int state = PTHREAD_CANCEL_ENABLE; __libc_ptf_call (pthread_setcancelstate, (PTHREAD_CANCEL_DISABLE, &state), 0); #endif flush_stdout (); #ifdef _LIBC _IO_flockfile (stderr); #endif if (error_print_progname) (*error_print_progname) (); else { #if _LIBC __fxprintf (NULL, "%s:", program_name); #else fprintf (stderr, "%s:", program_name); #endif } #if _LIBC __fxprintf (NULL, file_name != NULL ? "%s:%u: " : " ", file_name, line_number); #else fprintf (stderr, file_name != NULL ? "%s:%u: " : " ", file_name, line_number); #endif va_start (args, message); error_tail (status, errnum, message, args); va_end (args); #ifdef _LIBC _IO_funlockfile (stderr); # ifdef __libc_ptf_call __libc_ptf_call (pthread_setcancelstate, (state, NULL), 0); # endif #endif } #ifdef _LIBC /* Make the weak alias. */ # undef error # undef error_at_line weak_alias (__error, error) weak_alias (__error_at_line, error_at_line) #endif shishi-1.0.3/src/gl/fd-hook.h0000644000000000000000000001136414273615074012600 00000000000000/* Hook for making file descriptor functions close(), ioctl() extensible. Copyright (C) 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef FD_HOOK_H #define FD_HOOK_H #ifdef __cplusplus extern "C" { #endif /* Currently, this entire code is only needed for the handling of sockets on native Windows platforms. */ #if WINDOWS_SOCKETS /* Type of function that closes FD. */ typedef int (*gl_close_fn) (int fd); /* Type of function that applies a control request to FD. */ typedef int (*gl_ioctl_fn) (int fd, int request, void *arg); /* An element of the list of file descriptor hooks. In CLOS (Common Lisp Object System) speak, it consists of an "around" method for the close() function and an "around" method for the ioctl() function. The fields of this structure are considered private. */ struct fd_hook { /* Doubly linked list. */ struct fd_hook *private_next; struct fd_hook *private_prev; /* Function that treats the types of FD that it knows about and calls execute_close_hooks (REMAINING_LIST, PRIMARY, FD) as a fallback. */ int (*private_close_fn) (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Function that treats the types of FD that it knows about and calls execute_ioctl_hooks (REMAINING_LIST, PRIMARY, FD, REQUEST, ARG) as a fallback. */ int (*private_ioctl_fn) (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); }; /* This type of function closes FD, applying special knowledge for the FD types it knows about, and calls execute_close_hooks (REMAINING_LIST, PRIMARY, FD) for the other FD types. In CLOS speak, REMAINING_LIST is the remaining list of "around" methods, and PRIMARY is the "primary" method for close(). */ typedef int (*close_hook_fn) (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Execute the close hooks in REMAINING_LIST, with PRIMARY as "primary" method. Return 0 or -1, like close() would do. */ extern int execute_close_hooks (const struct fd_hook *remaining_list, gl_close_fn primary, int fd); /* Execute all close hooks, with PRIMARY as "primary" method. Return 0 or -1, like close() would do. */ extern int execute_all_close_hooks (gl_close_fn primary, int fd); /* This type of function applies a control request to FD, applying special knowledge for the FD types it knows about, and calls execute_ioctl_hooks (REMAINING_LIST, PRIMARY, FD, REQUEST, ARG) for the other FD types. In CLOS speak, REMAINING_LIST is the remaining list of "around" methods, and PRIMARY is the "primary" method for ioctl(). */ typedef int (*ioctl_hook_fn) (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); /* Execute the ioctl hooks in REMAINING_LIST, with PRIMARY as "primary" method. Return 0 or -1, like ioctl() would do. */ extern int execute_ioctl_hooks (const struct fd_hook *remaining_list, gl_ioctl_fn primary, int fd, int request, void *arg); /* Execute all ioctl hooks, with PRIMARY as "primary" method. Return 0 or -1, like ioctl() would do. */ extern int execute_all_ioctl_hooks (gl_ioctl_fn primary, int fd, int request, void *arg); /* Add a function pair to the list of file descriptor hooks. CLOSE_HOOK and IOCTL_HOOK may be NULL, indicating no change. The LINK variable points to a piece of memory which is guaranteed to be accessible until the corresponding call to unregister_fd_hook. */ extern void register_fd_hook (close_hook_fn close_hook, ioctl_hook_fn ioctl_hook, struct fd_hook *link); /* Removes a hook from the list of file descriptor hooks. */ extern void unregister_fd_hook (struct fd_hook *link); #endif #ifdef __cplusplus } #endif #endif /* FD_HOOK_H */ shishi-1.0.3/src/gl/stdio-write.c0000644000000000000000000001670614273615075013524 00000000000000/* POSIX compatible FILE stream write function. Copyright (C) 2008-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include /* Replace these functions only if module 'nonblocking' or module 'sigpipe' is requested. */ #if GNULIB_NONBLOCKING || GNULIB_SIGPIPE /* On native Windows platforms, SIGPIPE does not exist. When write() is called on a pipe with no readers, WriteFile() fails with error GetLastError() = ERROR_NO_DATA, and write() in consequence fails with error EINVAL. This write() function is at the basis of the function which flushes the buffer of a FILE stream. */ # if defined _WIN32 && ! defined __CYGWIN__ # include # include # include # define WIN32_LEAN_AND_MEAN /* avoid including junk */ # include # if GNULIB_MSVC_NOTHROW # include "msvc-nothrow.h" # else # include # endif /* Don't assume that UNICODE is not defined. */ # undef GetNamedPipeHandleState # define GetNamedPipeHandleState GetNamedPipeHandleStateA # if GNULIB_NONBLOCKING # define CLEAR_ERRNO \ errno = 0; # define HANDLE_ENOSPC \ if (errno == ENOSPC && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0) \ { \ HANDLE h = (HANDLE) _get_osfhandle (fd); \ if (GetFileType (h) == FILE_TYPE_PIPE) \ { \ /* h is a pipe or socket. */ \ DWORD state; \ if (GetNamedPipeHandleState (h, &state, NULL, NULL, \ NULL, NULL, 0) \ && (state & PIPE_NOWAIT) != 0) \ /* h is a pipe in non-blocking mode. \ Change errno from ENOSPC to EAGAIN. */ \ errno = EAGAIN; \ } \ } \ } \ else # else # define CLEAR_ERRNO # define HANDLE_ENOSPC # endif # if GNULIB_SIGPIPE # define CLEAR_LastError \ SetLastError (0); # define HANDLE_ERROR_NO_DATA \ if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \ { \ int fd = fileno (stream); \ if (fd >= 0 \ && GetFileType ((HANDLE) _get_osfhandle (fd)) \ == FILE_TYPE_PIPE) \ { \ /* Try to raise signal SIGPIPE. */ \ raise (SIGPIPE); \ /* If it is currently blocked or ignored, change errno from \ EINVAL to EPIPE. */ \ errno = EPIPE; \ } \ } \ else # else # define CLEAR_LastError # define HANDLE_ERROR_NO_DATA # endif # define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \ if (ferror (stream)) \ return (EXPRESSION); \ else \ { \ RETTYPE ret; \ CLEAR_ERRNO \ CLEAR_LastError \ ret = (EXPRESSION); \ if (FAILED) \ { \ HANDLE_ENOSPC \ HANDLE_ERROR_NO_DATA \ ; \ } \ return ret; \ } # if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */ int printf (const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfprintf (stdout, format, args); va_end (args); return retval; } # endif # if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */ int fprintf (FILE *stream, const char *format, ...) { int retval; va_list args; va_start (args, format); retval = vfprintf (stream, format, args); va_end (args); return retval; } # endif # if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */ int vprintf (const char *format, va_list args) { return vfprintf (stdout, format, args); } # endif # if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */ int vfprintf (FILE *stream, const char *format, va_list args) #undef vfprintf { CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF) } # endif int putchar (int c) { return fputc (c, stdout); } int fputc (int c, FILE *stream) #undef fputc { CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF) } int fputs (const char *string, FILE *stream) #undef fputs { CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF) } int puts (const char *string) #undef puts { FILE *stream = stdout; CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF) } size_t fwrite (const void *ptr, size_t s, size_t n, FILE *stream) #undef fwrite { CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n) } # endif #endif shishi-1.0.3/src/gl/unistd.c0000644000000000000000000000154114273615075012547 00000000000000/* Inline functions for . Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE #include "unistd.h" typedef int dummy; shishi-1.0.3/src/gl/Makefile.am0000644000000000000000000017675014273615101013136 00000000000000## DO NOT EDIT! GENERATED AUTOMATICALLY! ## Process this file with automake to produce Makefile.in. # Copyright (C) 2002-2022 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this file. If not, see . # # As a special exception to the GNU General Public License, # this file may be distributed as part of a program that # contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. # Reproduce by: # gnulib-tool --import --local-dir=src/gl \ # --lib=libgnu \ # --source-base=src/gl \ # --m4-base=src/gl/m4 \ # --doc-base=doc \ # --tests-base=src/gl/tests \ # --aux-dir=build-aux \ # --no-conditional-dependencies \ # --libtool \ # --macro-prefix=gl \ # autobuild \ # error \ # getopt-gnu \ # git-version-gen \ # gitlog-to-changelog \ # lib-msvc-compat \ # lib-symbol-versions \ # locale \ # manywarnings \ # pmccabe2html \ # progname \ # readme-release \ # update-copyright \ # valgrind-tests \ # version-etc \ # warnings AUTOMAKE_OPTIONS = 1.14 gnits SUBDIRS = noinst_HEADERS = noinst_LIBRARIES = noinst_LTLIBRARIES = EXTRA_DIST = BUILT_SOURCES = SUFFIXES = MOSTLYCLEANFILES = core *.stackdump MOSTLYCLEANDIRS = CLEANFILES = DISTCLEANFILES = MAINTAINERCLEANFILES = # No GNU Make output. EXTRA_DIST += m4/gnulib-cache.m4 AM_CPPFLAGS = AM_CFLAGS = noinst_LTLIBRARIES += libgnu.la libgnu_la_SOURCES = libgnu_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) libgnu_la_LIBADD = $(gl_LTLIBOBJS) libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS) EXTRA_libgnu_la_SOURCES = libgnu_la_LDFLAGS = $(AM_LDFLAGS) libgnu_la_LDFLAGS += -no-undefined libgnu_la_LDFLAGS += $(LTLIBINTL) ## begin gnulib module absolute-header # Use this preprocessor expression to decide whether #include_next works. # Do not rely on a 'configure'-time test for this, since the expression # might appear in an installed header, which is used by some other compiler. HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER) ## end gnulib module absolute-header ## begin gnulib module alloca-opt BUILT_SOURCES += $(ALLOCA_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_ALLOCA_H alloca.h: alloca.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \ $(srcdir)/alloca.in.h > $@-t $(AM_V_at)mv $@-t $@ else alloca.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += alloca.h alloca.h-t EXTRA_DIST += alloca.in.h ## end gnulib module alloca-opt ## begin gnulib module announce-gen EXTRA_DIST += $(top_srcdir)/build-aux/announce-gen ## end gnulib module announce-gen ## begin gnulib module basename-lgpl libgnu_la_SOURCES += basename-lgpl.c EXTRA_DIST += basename-lgpl.h ## end gnulib module basename-lgpl ## begin gnulib module cloexec libgnu_la_SOURCES += cloexec.c EXTRA_DIST += cloexec.h ## end gnulib module cloexec ## begin gnulib module close if GL_COND_OBJ_CLOSE libgnu_la_SOURCES += close.c endif ## end gnulib module close ## begin gnulib module do-release-commit-and-tag EXTRA_DIST += $(top_srcdir)/build-aux/do-release-commit-and-tag ## end gnulib module do-release-commit-and-tag ## begin gnulib module dup2 if GL_COND_OBJ_DUP2 libgnu_la_SOURCES += dup2.c endif ## end gnulib module dup2 ## begin gnulib module errno BUILT_SOURCES += $(ERRNO_H) # We need the following in order to create when the system # doesn't have one that is POSIX compliant. if GL_GENERATE_ERRNO_H errno.h: errno.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \ -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \ -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \ -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \ $(srcdir)/errno.in.h > $@-t $(AM_V_at)mv $@-t $@ else errno.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += errno.h errno.h-t EXTRA_DIST += errno.in.h ## end gnulib module errno ## begin gnulib module error if GL_COND_OBJ_ERROR libgnu_la_SOURCES += error.c endif EXTRA_DIST += error.h ## end gnulib module error ## begin gnulib module fcntl if GL_COND_OBJ_FCNTL libgnu_la_SOURCES += fcntl.c endif ## end gnulib module fcntl ## begin gnulib module fcntl-h BUILT_SOURCES += fcntl.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \ -e 's/@''GNULIB_CREAT''@/$(GL_GNULIB_CREAT)/g' \ -e 's/@''GNULIB_FCNTL''@/$(GL_GNULIB_FCNTL)/g' \ -e 's/@''GNULIB_NONBLOCKING''@/$(GL_GNULIB_NONBLOCKING)/g' \ -e 's/@''GNULIB_OPEN''@/$(GL_GNULIB_OPEN)/g' \ -e 's/@''GNULIB_OPENAT''@/$(GL_GNULIB_OPENAT)/g' \ -e 's/@''GNULIB_MDA_CREAT''@/$(GL_GNULIB_MDA_CREAT)/g' \ -e 's/@''GNULIB_MDA_OPEN''@/$(GL_GNULIB_MDA_OPEN)/g' \ -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \ -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \ -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \ -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/fcntl.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += fcntl.h fcntl.h-t EXTRA_DIST += fcntl.in.h ## end gnulib module fcntl-h ## begin gnulib module fd-hook libgnu_la_SOURCES += fd-hook.c EXTRA_DIST += fd-hook.h ## end gnulib module fd-hook ## begin gnulib module filename EXTRA_DIST += filename.h ## end gnulib module filename ## begin gnulib module fstat if GL_COND_OBJ_FSTAT libgnu_la_SOURCES += fstat.c endif EXTRA_DIST += stat-w32.c stat-w32.h EXTRA_libgnu_la_SOURCES += stat-w32.c ## end gnulib module fstat ## begin gnulib module gen-header # In 'sed', replace the pattern space with a "DO NOT EDIT" comment. SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */, # '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT". SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G # '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading # "DO_NOT_EDIT". Although this could be done more simply via: # SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t # the -n and 'w' avoid a fork+exec, at least when GNU Make is used. SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t' # Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that gl_V_at = $(AM_V_GEN) ## end gnulib module gen-header ## begin gnulib module gendocs EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh ## end gnulib module gendocs ## begin gnulib module getdtablesize if GL_COND_OBJ_GETDTABLESIZE libgnu_la_SOURCES += getdtablesize.c endif ## end gnulib module getdtablesize ## begin gnulib module getopt-posix BUILT_SOURCES += $(GETOPT_H) $(GETOPT_CDEFS_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_GETOPT_H getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ $(srcdir)/getopt.in.h > $@-t $(AM_V_at)mv $@-t $@ else getopt.h: $(top_builddir)/config.status rm -f $@ endif if GL_GENERATE_GETOPT_CDEFS_H getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status $(AM_V_GEN)$(SED_HEADER_STDOUT) \ -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \ $(srcdir)/getopt-cdefs.in.h > $@-t $(AM_V_at)mv $@-t $@ else getopt-cdefs.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t if GL_COND_OBJ_GETOPT libgnu_la_SOURCES += getopt.c getopt1.c endif EXTRA_DIST += getopt-cdefs.in.h getopt-core.h getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h getopt.in.h getopt_int.h ## end gnulib module getopt-posix ## begin gnulib module getprogname libgnu_la_SOURCES += getprogname.h getprogname.c ## end gnulib module getprogname ## begin gnulib module gettext-h libgnu_la_SOURCES += gettext.h ## end gnulib module gettext-h ## begin gnulib module git-version-gen EXTRA_DIST += $(top_srcdir)/build-aux/git-version-gen ## end gnulib module git-version-gen ## begin gnulib module gitlog-to-changelog EXTRA_DIST += $(top_srcdir)/build-aux/gitlog-to-changelog ## end gnulib module gitlog-to-changelog ## begin gnulib module gnu-web-doc-update EXTRA_DIST += $(top_srcdir)/build-aux/gnu-web-doc-update ## end gnulib module gnu-web-doc-update ## begin gnulib module gnumakefile EXTRA_DIST += $(top_srcdir)/GNUmakefile distclean-local: clean-GNUmakefile clean-GNUmakefile: test '$(srcdir)' = . || rm -f $(top_builddir)/GNUmakefile ## end gnulib module gnumakefile ## begin gnulib module gnupload EXTRA_DIST += $(top_srcdir)/build-aux/gnupload ## end gnulib module gnupload ## begin gnulib module idx libgnu_la_SOURCES += idx.h ## end gnulib module idx ## begin gnulib module intprops EXTRA_DIST += intprops.h ## end gnulib module intprops ## begin gnulib module limits-h BUILT_SOURCES += $(LIMITS_H) # We need the following in order to create when the system # doesn't have one that is compatible with GNU. if GL_GENERATE_LIMITS_H limits.h: limits.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \ $(srcdir)/limits.in.h > $@-t $(AM_V_at)mv $@-t $@ else limits.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += limits.h limits.h-t EXTRA_DIST += limits.in.h ## end gnulib module limits-h ## begin gnulib module locale BUILT_SOURCES += locale.h # We need the following in order to create when the system # doesn't have one that provides all definitions. locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \ -e 's/@''GNULIB_LOCALECONV''@/$(GL_GNULIB_LOCALECONV)/g' \ -e 's/@''GNULIB_SETLOCALE''@/$(GL_GNULIB_SETLOCALE)/g' \ -e 's/@''GNULIB_SETLOCALE_NULL''@/$(GL_GNULIB_SETLOCALE_NULL)/g' \ -e 's/@''GNULIB_DUPLOCALE''@/$(GL_GNULIB_DUPLOCALE)/g' \ -e 's/@''GNULIB_LOCALENAME''@/$(GL_GNULIB_LOCALENAME)/g' \ -e 's|@''HAVE_NEWLOCALE''@|$(HAVE_NEWLOCALE)|g' \ -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \ -e 's|@''HAVE_FREELOCALE''@|$(HAVE_FREELOCALE)|g' \ -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \ -e 's|@''REPLACE_LOCALECONV''@|$(REPLACE_LOCALECONV)|g' \ -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \ -e 's|@''REPLACE_NEWLOCALE''@|$(REPLACE_NEWLOCALE)|g' \ -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \ -e 's|@''REPLACE_FREELOCALE''@|$(REPLACE_FREELOCALE)|g' \ -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \ -e 's|@''LOCALENAME_ENHANCE_LOCALE_FUNCS''@|$(LOCALENAME_ENHANCE_LOCALE_FUNCS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/locale.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += locale.h locale.h-t EXTRA_DIST += locale.in.h ## end gnulib module locale ## begin gnulib module maintainer-makefile EXTRA_DIST += $(top_srcdir)/maint.mk ## end gnulib module maintainer-makefile ## begin gnulib module malloca libgnu_la_SOURCES += malloca.c EXTRA_DIST += malloca.h ## end gnulib module malloca ## begin gnulib module msvc-inval if GL_COND_OBJ_MSVC_INVAL libgnu_la_SOURCES += msvc-inval.c endif EXTRA_DIST += msvc-inval.h ## end gnulib module msvc-inval ## begin gnulib module msvc-nothrow if GL_COND_OBJ_MSVC_NOTHROW libgnu_la_SOURCES += msvc-nothrow.c endif EXTRA_DIST += msvc-nothrow.h ## end gnulib module msvc-nothrow ## begin gnulib module open if GL_COND_OBJ_OPEN libgnu_la_SOURCES += open.c endif ## end gnulib module open ## begin gnulib module pathmax EXTRA_DIST += pathmax.h ## end gnulib module pathmax ## begin gnulib module pmccabe2html EXTRA_DIST += $(top_srcdir)/build-aux/pmccabe2html $(top_srcdir)/build-aux/pmccabe.css ## end gnulib module pmccabe2html ## begin gnulib module progname libgnu_la_SOURCES += progname.h progname.c ## end gnulib module progname ## begin gnulib module snippet/_Noreturn # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. _NORETURN_H=$(srcdir)/_Noreturn.h EXTRA_DIST += _Noreturn.h ## end gnulib module snippet/_Noreturn ## begin gnulib module snippet/arg-nonnull # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. ARG_NONNULL_H=$(srcdir)/arg-nonnull.h EXTRA_DIST += arg-nonnull.h ## end gnulib module snippet/arg-nonnull ## begin gnulib module snippet/c++defs # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. CXXDEFS_H=$(srcdir)/c++defs.h EXTRA_DIST += c++defs.h ## end gnulib module snippet/c++defs ## begin gnulib module snippet/warn-on-use # Because this Makefile snippet defines a variable used by other # gnulib Makefile snippets, it must be present in all makefiles that # need it. This is ensured by the applicability 'all' defined above. WARN_ON_USE_H=$(srcdir)/warn-on-use.h EXTRA_DIST += warn-on-use.h ## end gnulib module snippet/warn-on-use ## begin gnulib module stat if GL_COND_OBJ_STAT libgnu_la_SOURCES += stat.c endif EXTRA_DIST += stat-w32.c stat-w32.h EXTRA_libgnu_la_SOURCES += stat-w32.c ## end gnulib module stat ## begin gnulib module stat-time libgnu_la_SOURCES += stat-time.c EXTRA_DIST += stat-time.h ## end gnulib module stat-time ## begin gnulib module stdarg BUILT_SOURCES += $(STDARG_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDARG_H stdarg.h: stdarg.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \ $(srcdir)/stdarg.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdarg.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdarg.h stdarg.h-t EXTRA_DIST += stdarg.in.h ## end gnulib module stdarg ## begin gnulib module stdbool BUILT_SOURCES += $(STDBOOL_H) # We need the following in order to create when the system # doesn't have one that works. if GL_GENERATE_STDBOOL_H stdbool.h: stdbool.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \ $(srcdir)/stdbool.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdbool.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdbool.h stdbool.h-t EXTRA_DIST += stdbool.in.h ## end gnulib module stdbool ## begin gnulib module stddef BUILT_SOURCES += $(STDDEF_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDDEF_H stddef.h: stddef.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \ -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \ -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \ -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \ $(srcdir)/stddef.in.h > $@-t $(AM_V_at)mv $@-t $@ else stddef.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stddef.h stddef.h-t EXTRA_DIST += stddef.in.h ## end gnulib module stddef ## begin gnulib module stdint BUILT_SOURCES += $(STDINT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. if GL_GENERATE_STDINT_H stdint.h: stdint.in.h $(top_builddir)/config.status $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \ -e 's/@''HAVE_C99_STDINT_H''@/$(HAVE_C99_STDINT_H)/g' \ -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \ $(srcdir)/stdint.in.h > $@-t $(AM_V_at)mv $@-t $@ else stdint.h: $(top_builddir)/config.status rm -f $@ endif MOSTLYCLEANFILES += stdint.h stdint.h-t EXTRA_DIST += stdint.in.h ## end gnulib module stdint ## begin gnulib module stdio BUILT_SOURCES += stdio.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \ -e 's/@''GNULIB_DPRINTF''@/$(GL_GNULIB_DPRINTF)/g' \ -e 's/@''GNULIB_FCLOSE''@/$(GL_GNULIB_FCLOSE)/g' \ -e 's/@''GNULIB_FDOPEN''@/$(GL_GNULIB_FDOPEN)/g' \ -e 's/@''GNULIB_FFLUSH''@/$(GL_GNULIB_FFLUSH)/g' \ -e 's/@''GNULIB_FGETC''@/$(GL_GNULIB_FGETC)/g' \ -e 's/@''GNULIB_FGETS''@/$(GL_GNULIB_FGETS)/g' \ -e 's/@''GNULIB_FOPEN''@/$(GL_GNULIB_FOPEN)/g' \ -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_GNULIB_FOPEN_GNU)/g' \ -e 's/@''GNULIB_FPRINTF''@/$(GL_GNULIB_FPRINTF)/g' \ -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_GNULIB_FPRINTF_POSIX)/g' \ -e 's/@''GNULIB_FPURGE''@/$(GL_GNULIB_FPURGE)/g' \ -e 's/@''GNULIB_FPUTC''@/$(GL_GNULIB_FPUTC)/g' \ -e 's/@''GNULIB_FPUTS''@/$(GL_GNULIB_FPUTS)/g' \ -e 's/@''GNULIB_FREAD''@/$(GL_GNULIB_FREAD)/g' \ -e 's/@''GNULIB_FREOPEN''@/$(GL_GNULIB_FREOPEN)/g' \ -e 's/@''GNULIB_FSCANF''@/$(GL_GNULIB_FSCANF)/g' \ -e 's/@''GNULIB_FSEEK''@/$(GL_GNULIB_FSEEK)/g' \ -e 's/@''GNULIB_FSEEKO''@/$(GL_GNULIB_FSEEKO)/g' \ -e 's/@''GNULIB_FTELL''@/$(GL_GNULIB_FTELL)/g' \ -e 's/@''GNULIB_FTELLO''@/$(GL_GNULIB_FTELLO)/g' \ -e 's/@''GNULIB_FWRITE''@/$(GL_GNULIB_FWRITE)/g' \ -e 's/@''GNULIB_GETC''@/$(GL_GNULIB_GETC)/g' \ -e 's/@''GNULIB_GETCHAR''@/$(GL_GNULIB_GETCHAR)/g' \ -e 's/@''GNULIB_GETDELIM''@/$(GL_GNULIB_GETDELIM)/g' \ -e 's/@''GNULIB_GETLINE''@/$(GL_GNULIB_GETLINE)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_GNULIB_OBSTACK_PRINTF)/g' \ -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PCLOSE''@/$(GL_GNULIB_PCLOSE)/g' \ -e 's/@''GNULIB_PERROR''@/$(GL_GNULIB_PERROR)/g' \ -e 's/@''GNULIB_POPEN''@/$(GL_GNULIB_POPEN)/g' \ -e 's/@''GNULIB_PRINTF''@/$(GL_GNULIB_PRINTF)/g' \ -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_GNULIB_PRINTF_POSIX)/g' \ -e 's/@''GNULIB_PUTC''@/$(GL_GNULIB_PUTC)/g' \ -e 's/@''GNULIB_PUTCHAR''@/$(GL_GNULIB_PUTCHAR)/g' \ -e 's/@''GNULIB_PUTS''@/$(GL_GNULIB_PUTS)/g' \ -e 's/@''GNULIB_REMOVE''@/$(GL_GNULIB_REMOVE)/g' \ -e 's/@''GNULIB_RENAME''@/$(GL_GNULIB_RENAME)/g' \ -e 's/@''GNULIB_RENAMEAT''@/$(GL_GNULIB_RENAMEAT)/g' \ -e 's/@''GNULIB_SCANF''@/$(GL_GNULIB_SCANF)/g' \ -e 's/@''GNULIB_SNPRINTF''@/$(GL_GNULIB_SNPRINTF)/g' \ -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_GNULIB_SPRINTF_POSIX)/g' \ -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_GNULIB_STDIO_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_GNULIB_STDIO_H_SIGPIPE)/g' \ -e 's/@''GNULIB_TMPFILE''@/$(GL_GNULIB_TMPFILE)/g' \ -e 's/@''GNULIB_VASPRINTF''@/$(GL_GNULIB_VASPRINTF)/g' \ -e 's/@''GNULIB_VDPRINTF''@/$(GL_GNULIB_VDPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF''@/$(GL_GNULIB_VFPRINTF)/g' \ -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_GNULIB_VFPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VFSCANF''@/$(GL_GNULIB_VFSCANF)/g' \ -e 's/@''GNULIB_VSCANF''@/$(GL_GNULIB_VSCANF)/g' \ -e 's/@''GNULIB_VPRINTF''@/$(GL_GNULIB_VPRINTF)/g' \ -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_GNULIB_VPRINTF_POSIX)/g' \ -e 's/@''GNULIB_VSNPRINTF''@/$(GL_GNULIB_VSNPRINTF)/g' \ -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_GNULIB_VSPRINTF_POSIX)/g' \ -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_GNULIB_MDA_FCLOSEALL)/g' \ -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_GNULIB_MDA_FDOPEN)/g' \ -e 's/@''GNULIB_MDA_FILENO''@/$(GL_GNULIB_MDA_FILENO)/g' \ -e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \ -e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \ -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \ < $(srcdir)/stdio.in.h | \ sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \ -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \ -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \ -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \ -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \ -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \ -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \ -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \ -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \ -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \ -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \ -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \ -e 's|@''HAVE_PCLOSE''@|$(HAVE_PCLOSE)|g' \ -e 's|@''HAVE_POPEN''@|$(HAVE_POPEN)|g' \ -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \ -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \ -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \ -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \ -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \ -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \ -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \ -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \ -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \ -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \ -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \ -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \ -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \ -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \ -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \ -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \ -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \ -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \ -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \ -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \ -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \ -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \ -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \ -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \ -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \ -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \ -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \ -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \ -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \ -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \ -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \ -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \ -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \ -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \ -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \ -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \ -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += stdio.h stdio.h-t if GL_COND_OBJ_STDIO_READ libgnu_la_SOURCES += stdio-read.c endif if GL_COND_OBJ_STDIO_WRITE libgnu_la_SOURCES += stdio-write.c endif EXTRA_DIST += stdio.in.h ## end gnulib module stdio ## begin gnulib module stdlib BUILT_SOURCES += stdlib.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \ $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ -e 's/@''GNULIB__EXIT''@/$(GL_GNULIB__EXIT)/g' \ -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_GNULIB_ALIGNED_ALLOC)/g' \ -e 's/@''GNULIB_ATOLL''@/$(GL_GNULIB_ATOLL)/g' \ -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_GNULIB_CALLOC_GNU)/g' \ -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_GNULIB_CALLOC_POSIX)/g' \ -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \ -e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \ -e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \ -e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \ -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \ -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \ -e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \ -e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \ -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_GNULIB_MKOSTEMPS)/g' \ -e 's/@''GNULIB_MKSTEMP''@/$(GL_GNULIB_MKSTEMP)/g' \ -e 's/@''GNULIB_MKSTEMPS''@/$(GL_GNULIB_MKSTEMPS)/g' \ -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_GNULIB_POSIX_MEMALIGN)/g' \ -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_GNULIB_POSIX_OPENPT)/g' \ -e 's/@''GNULIB_PTSNAME''@/$(GL_GNULIB_PTSNAME)/g' \ -e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \ -e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \ -e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \ -e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \ -e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \ -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \ -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_GNULIB_REALLOC_POSIX)/g' \ -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_GNULIB_REALLOCARRAY)/g' \ -e 's/@''GNULIB_REALPATH''@/$(GL_GNULIB_REALPATH)/g' \ -e 's/@''GNULIB_RPMATCH''@/$(GL_GNULIB_RPMATCH)/g' \ -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_GNULIB_SECURE_GETENV)/g' \ -e 's/@''GNULIB_SETENV''@/$(GL_GNULIB_SETENV)/g' \ -e 's/@''GNULIB_STRTOD''@/$(GL_GNULIB_STRTOD)/g' \ -e 's/@''GNULIB_STRTOL''@/$(GL_GNULIB_STRTOL)/g' \ -e 's/@''GNULIB_STRTOLD''@/$(GL_GNULIB_STRTOLD)/g' \ -e 's/@''GNULIB_STRTOLL''@/$(GL_GNULIB_STRTOLL)/g' \ -e 's/@''GNULIB_STRTOUL''@/$(GL_GNULIB_STRTOUL)/g' \ -e 's/@''GNULIB_STRTOULL''@/$(GL_GNULIB_STRTOULL)/g' \ -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_GNULIB_SYSTEM_POSIX)/g' \ -e 's/@''GNULIB_UNLOCKPT''@/$(GL_GNULIB_UNLOCKPT)/g' \ -e 's/@''GNULIB_UNSETENV''@/$(GL_GNULIB_UNSETENV)/g' \ -e 's/@''GNULIB_WCTOMB''@/$(GL_GNULIB_WCTOMB)/g' \ -e 's/@''GNULIB_MDA_ECVT''@/$(GL_GNULIB_MDA_ECVT)/g' \ -e 's/@''GNULIB_MDA_FCVT''@/$(GL_GNULIB_MDA_FCVT)/g' \ -e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \ -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \ -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \ < $(srcdir)/stdlib.in.h | \ sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \ -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \ -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \ -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \ -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \ -e 's|@''HAVE_INITSTATE''@|$(HAVE_INITSTATE)|g' \ -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \ -e 's|@''HAVE_MBTOWC''@|$(HAVE_MBTOWC)|g' \ -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \ -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \ -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \ -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \ -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \ -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \ -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \ -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \ -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \ -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \ -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \ -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \ -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \ -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \ -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \ -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \ -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \ -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \ -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \ -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \ -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \ -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \ -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \ -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \ -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \ -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \ -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \ -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \ -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \ -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \ -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \ -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \ -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \ -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \ -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \ -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \ -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \ -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \ -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \ -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _Noreturn/r $(_NORETURN_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += stdlib.h stdlib.h-t EXTRA_DIST += stdlib.in.h ## end gnulib module stdlib ## begin gnulib module strerror if GL_COND_OBJ_STRERROR libgnu_la_SOURCES += strerror.c endif ## end gnulib module strerror ## begin gnulib module strerror-override if GL_COND_OBJ_STRERROR_OVERRIDE libgnu_la_SOURCES += strerror-override.c endif EXTRA_DIST += strerror-override.h ## end gnulib module strerror-override ## begin gnulib module string BUILT_SOURCES += string.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \ -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_GNULIB_EXPLICIT_BZERO)/g' \ -e 's/@''GNULIB_FFSL''@/$(GL_GNULIB_FFSL)/g' \ -e 's/@''GNULIB_FFSLL''@/$(GL_GNULIB_FFSLL)/g' \ -e 's/@''GNULIB_MBSLEN''@/$(GL_GNULIB_MBSLEN)/g' \ -e 's/@''GNULIB_MBSNLEN''@/$(GL_GNULIB_MBSNLEN)/g' \ -e 's/@''GNULIB_MBSCHR''@/$(GL_GNULIB_MBSCHR)/g' \ -e 's/@''GNULIB_MBSRCHR''@/$(GL_GNULIB_MBSRCHR)/g' \ -e 's/@''GNULIB_MBSSTR''@/$(GL_GNULIB_MBSSTR)/g' \ -e 's/@''GNULIB_MBSCASECMP''@/$(GL_GNULIB_MBSCASECMP)/g' \ -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_GNULIB_MBSNCASECMP)/g' \ -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_GNULIB_MBSPCASECMP)/g' \ -e 's/@''GNULIB_MBSCASESTR''@/$(GL_GNULIB_MBSCASESTR)/g' \ -e 's/@''GNULIB_MBSCSPN''@/$(GL_GNULIB_MBSCSPN)/g' \ -e 's/@''GNULIB_MBSPBRK''@/$(GL_GNULIB_MBSPBRK)/g' \ -e 's/@''GNULIB_MBSSPN''@/$(GL_GNULIB_MBSSPN)/g' \ -e 's/@''GNULIB_MBSSEP''@/$(GL_GNULIB_MBSSEP)/g' \ -e 's/@''GNULIB_MBSTOK_R''@/$(GL_GNULIB_MBSTOK_R)/g' \ -e 's/@''GNULIB_MEMCHR''@/$(GL_GNULIB_MEMCHR)/g' \ -e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \ -e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \ -e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \ -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \ -e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \ -e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \ -e 's/@''GNULIB_STRCHRNUL''@/$(GL_GNULIB_STRCHRNUL)/g' \ -e 's/@''GNULIB_STRDUP''@/$(GL_GNULIB_STRDUP)/g' \ -e 's/@''GNULIB_STRNCAT''@/$(GL_GNULIB_STRNCAT)/g' \ -e 's/@''GNULIB_STRNDUP''@/$(GL_GNULIB_STRNDUP)/g' \ -e 's/@''GNULIB_STRNLEN''@/$(GL_GNULIB_STRNLEN)/g' \ -e 's/@''GNULIB_STRPBRK''@/$(GL_GNULIB_STRPBRK)/g' \ -e 's/@''GNULIB_STRSEP''@/$(GL_GNULIB_STRSEP)/g' \ -e 's/@''GNULIB_STRSTR''@/$(GL_GNULIB_STRSTR)/g' \ -e 's/@''GNULIB_STRCASESTR''@/$(GL_GNULIB_STRCASESTR)/g' \ -e 's/@''GNULIB_STRTOK_R''@/$(GL_GNULIB_STRTOK_R)/g' \ -e 's/@''GNULIB_STRERROR''@/$(GL_GNULIB_STRERROR)/g' \ -e 's/@''GNULIB_STRERROR_R''@/$(GL_GNULIB_STRERROR_R)/g' \ -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_GNULIB_STRERRORNAME_NP)/g' \ -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_GNULIB_SIGABBREV_NP)/g' \ -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_GNULIB_SIGDESCR_NP)/g' \ -e 's/@''GNULIB_STRSIGNAL''@/$(GL_GNULIB_STRSIGNAL)/g' \ -e 's/@''GNULIB_STRVERSCMP''@/$(GL_GNULIB_STRVERSCMP)/g' \ -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \ -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \ -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \ < $(srcdir)/string.in.h | \ sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \ -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \ -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \ -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \ -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \ -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \ -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \ -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \ -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \ -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \ -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \ -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \ -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \ -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \ -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \ -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \ -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \ -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \ -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \ -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \ -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \ -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \ -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \ -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \ -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \ -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \ -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \ -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \ -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \ -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += string.h string.h-t EXTRA_DIST += string.in.h ## end gnulib module string ## begin gnulib module sys_stat BUILT_SOURCES += sys/stat.h # We need the following in order to create when the system # has one that is incomplete. sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \ -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \ -e 's/@''GNULIB_CHMOD''@/$(GL_GNULIB_CHMOD)/g' \ -e 's/@''GNULIB_FCHMODAT''@/$(GL_GNULIB_FCHMODAT)/g' \ -e 's/@''GNULIB_FSTAT''@/$(GL_GNULIB_FSTAT)/g' \ -e 's/@''GNULIB_FSTATAT''@/$(GL_GNULIB_FSTATAT)/g' \ -e 's/@''GNULIB_FUTIMENS''@/$(GL_GNULIB_FUTIMENS)/g' \ -e 's/@''GNULIB_GETUMASK''@/$(GL_GNULIB_GETUMASK)/g' \ -e 's/@''GNULIB_LCHMOD''@/$(GL_GNULIB_LCHMOD)/g' \ -e 's/@''GNULIB_LSTAT''@/$(GL_GNULIB_LSTAT)/g' \ -e 's/@''GNULIB_MKDIR''@/$(GL_GNULIB_MKDIR)/g' \ -e 's/@''GNULIB_MKDIRAT''@/$(GL_GNULIB_MKDIRAT)/g' \ -e 's/@''GNULIB_MKFIFO''@/$(GL_GNULIB_MKFIFO)/g' \ -e 's/@''GNULIB_MKFIFOAT''@/$(GL_GNULIB_MKFIFOAT)/g' \ -e 's/@''GNULIB_MKNOD''@/$(GL_GNULIB_MKNOD)/g' \ -e 's/@''GNULIB_MKNODAT''@/$(GL_GNULIB_MKNODAT)/g' \ -e 's/@''GNULIB_STAT''@/$(GL_GNULIB_STAT)/g' \ -e 's/@''GNULIB_UTIMENSAT''@/$(GL_GNULIB_UTIMENSAT)/g' \ -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \ -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_GNULIB_MDA_CHMOD)/g' \ -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_GNULIB_MDA_MKDIR)/g' \ -e 's/@''GNULIB_MDA_UMASK''@/$(GL_GNULIB_MDA_UMASK)/g' \ -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \ -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \ -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \ -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \ -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \ -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \ -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \ -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \ -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \ -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \ -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \ -e 's|@''REPLACE_CHMOD''@|$(REPLACE_CHMOD)|g' \ -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \ -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \ -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \ -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \ -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \ -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \ -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \ -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \ -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \ -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/sys_stat.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t MOSTLYCLEANDIRS += sys EXTRA_DIST += sys_stat.in.h ## end gnulib module sys_stat ## begin gnulib module sys_types BUILT_SOURCES += sys/types.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/types.h: sys_types.in.h $(top_builddir)/config.status $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' $(AM_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \ $(srcdir)/sys_types.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += sys/types.h sys/types.h-t EXTRA_DIST += sys_types.in.h ## end gnulib module sys_types ## begin gnulib module time BUILT_SOURCES += time.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \ -e 's/@''GNULIB_CTIME''@/$(GL_GNULIB_CTIME)/g' \ -e 's/@''GNULIB_LOCALTIME''@/$(GL_GNULIB_LOCALTIME)/g' \ -e 's/@''GNULIB_MKTIME''@/$(GL_GNULIB_MKTIME)/g' \ -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \ -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \ -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \ -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \ -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \ -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \ -e 's/@''GNULIB_TIME_R''@/$(GL_GNULIB_TIME_R)/g' \ -e 's/@''GNULIB_TIME_RZ''@/$(GL_GNULIB_TIME_RZ)/g' \ -e 's/@''GNULIB_TZSET''@/$(GL_GNULIB_TZSET)/g' \ -e 's/@''GNULIB_MDA_TZSET''@/$(GL_GNULIB_MDA_TZSET)/g' \ -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \ -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \ -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \ -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \ -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \ -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \ -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \ -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \ -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \ -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \ -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \ -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \ -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ $(srcdir)/time.in.h > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += time.h time.h-t EXTRA_DIST += time.in.h ## end gnulib module time ## begin gnulib module unistd BUILT_SOURCES += unistd.h libgnu_la_SOURCES += unistd.c # We need the following in order to create an empty placeholder for # when the system doesn't have one. unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(gl_V_at)$(SED_HEADER_STDOUT) \ -e 's|@''GUARD_PREFIX''@|GL|g' \ -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \ -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \ -e 's/@''GNULIB_ACCESS''@/$(GL_GNULIB_ACCESS)/g' \ -e 's/@''GNULIB_CHDIR''@/$(GL_GNULIB_CHDIR)/g' \ -e 's/@''GNULIB_CHOWN''@/$(GL_GNULIB_CHOWN)/g' \ -e 's/@''GNULIB_CLOSE''@/$(GL_GNULIB_CLOSE)/g' \ -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_GNULIB_COPY_FILE_RANGE)/g' \ -e 's/@''GNULIB_DUP''@/$(GL_GNULIB_DUP)/g' \ -e 's/@''GNULIB_DUP2''@/$(GL_GNULIB_DUP2)/g' \ -e 's/@''GNULIB_DUP3''@/$(GL_GNULIB_DUP3)/g' \ -e 's/@''GNULIB_ENVIRON''@/$(GL_GNULIB_ENVIRON)/g' \ -e 's/@''GNULIB_EUIDACCESS''@/$(GL_GNULIB_EUIDACCESS)/g' \ -e 's/@''GNULIB_EXECL''@/$(GL_GNULIB_EXECL)/g' \ -e 's/@''GNULIB_EXECLE''@/$(GL_GNULIB_EXECLE)/g' \ -e 's/@''GNULIB_EXECLP''@/$(GL_GNULIB_EXECLP)/g' \ -e 's/@''GNULIB_EXECV''@/$(GL_GNULIB_EXECV)/g' \ -e 's/@''GNULIB_EXECVE''@/$(GL_GNULIB_EXECVE)/g' \ -e 's/@''GNULIB_EXECVP''@/$(GL_GNULIB_EXECVP)/g' \ -e 's/@''GNULIB_EXECVPE''@/$(GL_GNULIB_EXECVPE)/g' \ -e 's/@''GNULIB_FACCESSAT''@/$(GL_GNULIB_FACCESSAT)/g' \ -e 's/@''GNULIB_FCHDIR''@/$(GL_GNULIB_FCHDIR)/g' \ -e 's/@''GNULIB_FCHOWNAT''@/$(GL_GNULIB_FCHOWNAT)/g' \ -e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \ -e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \ -e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \ -e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \ -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \ -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \ -e 's/@''GNULIB_GETENTROPY''@/$(GL_GNULIB_GETENTROPY)/g' \ -e 's/@''GNULIB_GETGROUPS''@/$(GL_GNULIB_GETGROUPS)/g' \ -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_GNULIB_GETHOSTNAME)/g' \ -e 's/@''GNULIB_GETLOGIN''@/$(GL_GNULIB_GETLOGIN)/g' \ -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_GNULIB_GETLOGIN_R)/g' \ -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_GNULIB_GETOPT_POSIX)/g' \ -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_GNULIB_GETPAGESIZE)/g' \ -e 's/@''GNULIB_GETPASS''@/$(GL_GNULIB_GETPASS)/g' \ -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_GNULIB_GETPASS_GNU)/g' \ -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_GNULIB_GETUSERSHELL)/g' \ -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_GNULIB_GROUP_MEMBER)/g' \ -e 's/@''GNULIB_ISATTY''@/$(GL_GNULIB_ISATTY)/g' \ -e 's/@''GNULIB_LCHOWN''@/$(GL_GNULIB_LCHOWN)/g' \ -e 's/@''GNULIB_LINK''@/$(GL_GNULIB_LINK)/g' \ -e 's/@''GNULIB_LINKAT''@/$(GL_GNULIB_LINKAT)/g' \ -e 's/@''GNULIB_LSEEK''@/$(GL_GNULIB_LSEEK)/g' \ -e 's/@''GNULIB_PIPE''@/$(GL_GNULIB_PIPE)/g' \ -e 's/@''GNULIB_PIPE2''@/$(GL_GNULIB_PIPE2)/g' \ -e 's/@''GNULIB_PREAD''@/$(GL_GNULIB_PREAD)/g' \ -e 's/@''GNULIB_PWRITE''@/$(GL_GNULIB_PWRITE)/g' \ -e 's/@''GNULIB_READ''@/$(GL_GNULIB_READ)/g' \ -e 's/@''GNULIB_READLINK''@/$(GL_GNULIB_READLINK)/g' \ -e 's/@''GNULIB_READLINKAT''@/$(GL_GNULIB_READLINKAT)/g' \ -e 's/@''GNULIB_RMDIR''@/$(GL_GNULIB_RMDIR)/g' \ -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_GNULIB_SETHOSTNAME)/g' \ -e 's/@''GNULIB_SLEEP''@/$(GL_GNULIB_SLEEP)/g' \ -e 's/@''GNULIB_SYMLINK''@/$(GL_GNULIB_SYMLINK)/g' \ -e 's/@''GNULIB_SYMLINKAT''@/$(GL_GNULIB_SYMLINKAT)/g' \ -e 's/@''GNULIB_TRUNCATE''@/$(GL_GNULIB_TRUNCATE)/g' \ -e 's/@''GNULIB_TTYNAME_R''@/$(GL_GNULIB_TTYNAME_R)/g' \ -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_GNULIB_UNISTD_H_GETOPT)/g' \ -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_GNULIB_UNISTD_H_NONBLOCKING)/g' \ -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_GNULIB_UNISTD_H_SIGPIPE)/g' \ -e 's/@''GNULIB_UNLINK''@/$(GL_GNULIB_UNLINK)/g' \ -e 's/@''GNULIB_UNLINKAT''@/$(GL_GNULIB_UNLINKAT)/g' \ -e 's/@''GNULIB_USLEEP''@/$(GL_GNULIB_USLEEP)/g' \ -e 's/@''GNULIB_WRITE''@/$(GL_GNULIB_WRITE)/g' \ -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_GNULIB_MDA_ACCESS)/g' \ -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_GNULIB_MDA_CHDIR)/g' \ -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_GNULIB_MDA_CLOSE)/g' \ -e 's/@''GNULIB_MDA_DUP''@/$(GL_GNULIB_MDA_DUP)/g' \ -e 's/@''GNULIB_MDA_DUP2''@/$(GL_GNULIB_MDA_DUP2)/g' \ -e 's/@''GNULIB_MDA_EXECL''@/$(GL_GNULIB_MDA_EXECL)/g' \ -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_GNULIB_MDA_EXECLE)/g' \ -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_GNULIB_MDA_EXECLP)/g' \ -e 's/@''GNULIB_MDA_EXECV''@/$(GL_GNULIB_MDA_EXECV)/g' \ -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_GNULIB_MDA_EXECVE)/g' \ -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_GNULIB_MDA_EXECVP)/g' \ -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_GNULIB_MDA_EXECVPE)/g' \ -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_GNULIB_MDA_GETCWD)/g' \ -e 's/@''GNULIB_MDA_GETPID''@/$(GL_GNULIB_MDA_GETPID)/g' \ -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_GNULIB_MDA_ISATTY)/g' \ -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_GNULIB_MDA_LSEEK)/g' \ -e 's/@''GNULIB_MDA_READ''@/$(GL_GNULIB_MDA_READ)/g' \ -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_GNULIB_MDA_RMDIR)/g' \ -e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \ -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \ -e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \ < $(srcdir)/unistd.in.h | \ sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \ -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \ -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \ -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \ -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \ -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \ -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \ -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \ -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \ -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \ -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \ -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \ -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \ -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \ -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \ -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \ -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \ -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \ -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \ -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \ -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \ -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \ -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \ -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \ -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \ -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \ -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \ -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \ -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \ -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \ -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \ -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \ -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \ -e 's|@''HAVE_DECL_TRUNCATE''@|$(HAVE_DECL_TRUNCATE)|g' \ -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ | \ sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \ -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \ -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \ -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \ -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \ -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \ -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \ -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \ -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \ -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \ -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \ -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \ -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \ -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \ -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \ -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \ -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \ -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \ -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \ -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \ -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \ -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \ -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \ -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \ -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \ -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \ -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \ -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \ -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \ -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \ -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \ -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \ -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \ -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ > $@-t $(AM_V_at)mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t EXTRA_DIST += unistd.in.h ## end gnulib module unistd ## begin gnulib module update-copyright EXTRA_DIST += $(top_srcdir)/build-aux/update-copyright ## end gnulib module update-copyright ## begin gnulib module useless-if-before-free EXTRA_DIST += $(top_srcdir)/build-aux/useless-if-before-free ## end gnulib module useless-if-before-free ## begin gnulib module vc-list-files EXTRA_DIST += $(top_srcdir)/build-aux/vc-list-files ## end gnulib module vc-list-files ## begin gnulib module verify EXTRA_DIST += verify.h ## end gnulib module verify ## begin gnulib module version-etc libgnu_la_SOURCES += version-etc.h version-etc.c ## end gnulib module version-etc ## begin gnulib module xalloc-oversized EXTRA_DIST += xalloc-oversized.h ## end gnulib module xalloc-oversized mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ if test -n "$$dir" && test -d $$dir; then \ echo "rmdir $$dir"; rmdir $$dir; \ fi; \ done; \ : distclean-local: distclean-gnulib-libobjs distclean-gnulib-libobjs: -rm -f @gl_LIBOBJDEPS@ maintainer-clean-local: distclean-gnulib-libobjs shishi-1.0.3/src/gl/c++defs.h0000644000000000000000000003557714273615074012477 00000000000000/* C++ compatible function declaration macros. Copyright (C) 2010-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_CXXDEFS_H #define _GL_CXXDEFS_H /* Begin/end the GNULIB_NAMESPACE namespace. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_BEGIN_NAMESPACE namespace GNULIB_NAMESPACE { # define _GL_END_NAMESPACE } #else # define _GL_BEGIN_NAMESPACE # define _GL_END_NAMESPACE #endif /* The three most frequent use cases of these macros are: * For providing a substitute for a function that is missing on some platforms, but is declared and works fine on the platforms on which it exists: #if @GNULIB_FOO@ # if !@HAVE_FOO@ _GL_FUNCDECL_SYS (foo, ...); # endif _GL_CXXALIAS_SYS (foo, ...); _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif * For providing a replacement for a function that exists on all platforms, but is broken/insufficient and needs to be replaced on some platforms: #if @GNULIB_FOO@ # if @REPLACE_FOO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef foo # define foo rpl_foo # endif _GL_FUNCDECL_RPL (foo, ...); _GL_CXXALIAS_RPL (foo, ...); # else _GL_CXXALIAS_SYS (foo, ...); # endif _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif * For providing a replacement for a function that exists on some platforms but is broken/insufficient and needs to be replaced on some of them and is additionally either missing or undeclared on some other platforms: #if @GNULIB_FOO@ # if @REPLACE_FOO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef foo # define foo rpl_foo # endif _GL_FUNCDECL_RPL (foo, ...); _GL_CXXALIAS_RPL (foo, ...); # else # if !@HAVE_FOO@ or if !@HAVE_DECL_FOO@ _GL_FUNCDECL_SYS (foo, ...); # endif _GL_CXXALIAS_SYS (foo, ...); # endif _GL_CXXALIASWARN (foo); #elif defined GNULIB_POSIXCHECK ... #endif */ /* _GL_EXTERN_C declaration; performs the declaration with C linkage. */ #if defined __cplusplus # define _GL_EXTERN_C extern "C" #else # define _GL_EXTERN_C extern #endif /* _GL_FUNCDECL_RPL (func, rettype, parameters_and_attributes); declares a replacement function, named rpl_func, with the given prototype, consisting of return type, parameters, and attributes. Example: _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); */ #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) #define _GL_FUNCDECL_RPL_1(rpl_func,rettype,parameters_and_attributes) \ _GL_EXTERN_C rettype rpl_func parameters_and_attributes /* _GL_FUNCDECL_SYS (func, rettype, parameters_and_attributes); declares the system function, named func, with the given prototype, consisting of return type, parameters, and attributes. Example: _GL_FUNCDECL_SYS (open, int, (const char *filename, int flags, ...) _GL_ARG_NONNULL ((1))); */ #define _GL_FUNCDECL_SYS(func,rettype,parameters_and_attributes) \ _GL_EXTERN_C rettype func parameters_and_attributes /* _GL_CXXALIAS_RPL (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that redirects to rpl_func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); Wrapping rpl_func in an object with an inline conversion operator avoids a reference to rpl_func unless GNULIB_NAMESPACE::func is actually used in the program. */ #define _GL_CXXALIAS_RPL(func,rettype,parameters) \ _GL_CXXALIAS_RPL_1 (func, rpl_##func, rettype, parameters) #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return ::rpl_func; \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_RPL_1(func,rpl_func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_MDA (func, rettype, parameters); is to be used when func is a Microsoft deprecated alias, on native Windows. It declares a C++ alias called GNULIB_NAMESPACE::func that redirects to _func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); */ #define _GL_CXXALIAS_MDA(func,rettype,parameters) \ _GL_CXXALIAS_RPL_1 (func, _##func, rettype, parameters) /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); except that the C function rpl_func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast(::rpl_func); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_RPL_CAST_1(func,rpl_func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_MDA_CAST (func, rettype, parameters); is like _GL_CXXALIAS_MDA (func, rettype, parameters); except that the C function func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #define _GL_CXXALIAS_MDA_CAST(func,rettype,parameters) \ _GL_CXXALIAS_RPL_CAST_1 (func, _##func, rettype, parameters) /* _GL_CXXALIAS_SYS (func, rettype, parameters); declares a C++ alias called GNULIB_NAMESPACE::func that redirects to the system provided function func, if GNULIB_NAMESPACE is defined. Example: _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); Wrapping func in an object with an inline conversion operator avoids a reference to func unless GNULIB_NAMESPACE::func is actually used in the program. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return ::func; \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS(func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_SYS_CAST (func, rettype, parameters); is like _GL_CXXALIAS_SYS (func, rettype, parameters); except that the C function func may have a slightly different declaration. A cast is used to silence the "invalid conversion" error that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast(::func); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS_CAST(func,rettype,parameters) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIAS_SYS_CAST2 (func, rettype, parameters, rettype2, parameters2); is like _GL_CXXALIAS_SYS (func, rettype, parameters); except that the C function is picked among a set of overloaded functions, namely the one with rettype2 and parameters2. Two consecutive casts are used to silence the "cannot find a match" and "invalid conversion" errors that would otherwise occur. */ #if defined __cplusplus && defined GNULIB_NAMESPACE /* The outer cast must be a reinterpret_cast. The inner cast: When the function is defined as a set of overloaded functions, it works as a static_cast<>, choosing the designated variant. When the function is defined as a single variant, it works as a reinterpret_cast<>. The parenthesized cast syntax works both ways. */ # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ namespace GNULIB_NAMESPACE \ { \ static const struct _gl_ ## func ## _wrapper \ { \ typedef rettype (*type) parameters; \ \ inline operator type () const \ { \ return reinterpret_cast((rettype2 (*) parameters2)(::func)); \ } \ } func = {}; \ } \ _GL_EXTERN_C int _gl_cxxalias_dummy #else # define _GL_CXXALIAS_SYS_CAST2(func,rettype,parameters,rettype2,parameters2) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIASWARN (func); causes a warning to be emitted when ::func is used but not when GNULIB_NAMESPACE::func is used. func must be defined without overloaded variants. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIASWARN(func) \ _GL_CXXALIASWARN_1 (func, GNULIB_NAMESPACE) # define _GL_CXXALIASWARN_1(func,namespace) \ _GL_CXXALIASWARN_2 (func, namespace) /* To work around GCC bug , we enable the warning only when not optimizing. */ # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) # define _GL_CXXALIASWARN_2(func,namespace) \ _GL_WARN_ON_USE (func, \ "The symbol ::" #func " refers to the system function. " \ "Use " #namespace "::" #func " instead.") # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING # define _GL_CXXALIASWARN_2(func,namespace) \ extern __typeof__ (func) func # else # define _GL_CXXALIASWARN_2(func,namespace) \ _GL_EXTERN_C int _gl_cxxalias_dummy # endif #else # define _GL_CXXALIASWARN(func) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif /* _GL_CXXALIASWARN1 (func, rettype, parameters_and_attributes); causes a warning to be emitted when the given overloaded variant of ::func is used but not when GNULIB_NAMESPACE::func is used. */ #if defined __cplusplus && defined GNULIB_NAMESPACE # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ _GL_CXXALIASWARN1_1 (func, rettype, parameters_and_attributes, \ GNULIB_NAMESPACE) # define _GL_CXXALIASWARN1_1(func,rettype,parameters_and_attributes,namespace) \ _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) /* To work around GCC bug , we enable the warning only when not optimizing. */ # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ _GL_WARN_ON_USE_CXX (func, rettype, rettype, parameters_and_attributes, \ "The symbol ::" #func " refers to the system function. " \ "Use " #namespace "::" #func " instead.") # else # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ _GL_EXTERN_C int _gl_cxxalias_dummy # endif #else # define _GL_CXXALIASWARN1(func,rettype,parameters_and_attributes) \ _GL_EXTERN_C int _gl_cxxalias_dummy #endif #endif /* _GL_CXXDEFS_H */ shishi-1.0.3/src/gl/open.c0000644000000000000000000001537714273615075012216 00000000000000/* Open a descriptor to a file. Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2007. */ /* If the user's config.h happens to include , let it include only the system's here, so that orig_open doesn't recurse to rpl_open. */ #define __need_system_fcntl_h #include /* Get the original definition of open. It might be defined as a macro. */ #include #include #undef __need_system_fcntl_h static int orig_open (const char *filename, int flags, mode_t mode) { #if defined _WIN32 && !defined __CYGWIN__ return _open (filename, flags, mode); #else return open (filename, flags, mode); #endif } /* Specification. */ /* Write "fcntl.h" here, not , otherwise OSF/1 5.1 DTK cc eliminates this include because of the preliminary #include above. */ #include "fcntl.h" #include "cloexec.h" #include #include #include #include #include #include #ifndef REPLACE_OPEN_DIRECTORY # define REPLACE_OPEN_DIRECTORY 0 #endif int open (const char *filename, int flags, ...) { /* 0 = unknown, 1 = yes, -1 = no. */ #if GNULIB_defined_O_CLOEXEC int have_cloexec = -1; #else static int have_cloexec; #endif mode_t mode; int fd; mode = 0; if (flags & O_CREAT) { va_list arg; va_start (arg, flags); /* We have to use PROMOTED_MODE_T instead of mode_t, otherwise GCC 4 creates crashing code when 'mode_t' is smaller than 'int'. */ mode = va_arg (arg, PROMOTED_MODE_T); va_end (arg); } #if GNULIB_defined_O_NONBLOCK /* The only known platform that lacks O_NONBLOCK is mingw, but it also lacks named pipes and Unix sockets, which are the only two file types that require non-blocking handling in open(). Therefore, it is safe to ignore O_NONBLOCK here. It is handy that mingw also lacks openat(), so that is also covered here. */ flags &= ~O_NONBLOCK; #endif #if defined _WIN32 && ! defined __CYGWIN__ if (strcmp (filename, "/dev/null") == 0) filename = "NUL"; #endif #if OPEN_TRAILING_SLASH_BUG /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename ends in a slash, as POSIX says such a filename must name a directory : "A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be resolved successfully unless the last pathname component before the trailing characters names an existing directory" If the named file already exists as a directory, then - if O_CREAT is specified, open() must fail because of the semantics of O_CREAT, - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX says that it fails with errno = EISDIR in this case. If the named file does not exist or does not name a directory, then - if O_CREAT is specified, open() must fail since open() cannot create directories, - if O_WRONLY or O_RDWR is specified, open() must fail because the file does not contain a '.' directory. */ if ((flags & O_CREAT) || (flags & O_ACCMODE) == O_RDWR || (flags & O_ACCMODE) == O_WRONLY) { size_t len = strlen (filename); if (len > 0 && filename[len - 1] == '/') { errno = EISDIR; return -1; } } #endif fd = orig_open (filename, flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode); if (flags & O_CLOEXEC) { if (! have_cloexec) { if (0 <= fd) have_cloexec = 1; else if (errno == EINVAL) { fd = orig_open (filename, flags & ~O_CLOEXEC, mode); have_cloexec = -1; } } if (have_cloexec < 0 && 0 <= fd) set_cloexec_flag (fd, true); } #if REPLACE_FCHDIR /* Implementing fchdir and fdopendir requires the ability to open a directory file descriptor. If open doesn't support that (as on mingw), we use a dummy file that behaves the same as directories on Linux (ie. always reports EOF on attempts to read()), and override fstat() in fchdir.c to hide the fact that we have a dummy. */ if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES && ((flags & O_ACCMODE) == O_RDONLY || (O_SEARCH != O_RDONLY && (flags & O_ACCMODE) == O_SEARCH))) { struct stat statbuf; if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) { /* Maximum recursion depth of 1. */ fd = open ("/dev/null", flags, mode); if (0 <= fd) fd = _gl_register_fd (fd, filename); } else errno = EACCES; } #endif #if OPEN_TRAILING_SLASH_BUG /* If the filename ends in a slash and fd does not refer to a directory, then fail. Rationale: POSIX says such a filename must name a directory : "A pathname that contains at least one non- character and that ends with one or more trailing characters shall not be resolved successfully unless the last pathname component before the trailing characters names an existing directory" If the named file without the slash is not a directory, open() must fail with ENOTDIR. */ if (fd >= 0) { /* We know len is positive, since open did not fail with ENOENT. */ size_t len = strlen (filename); if (filename[len - 1] == '/') { struct stat statbuf; if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode)) { close (fd); errno = ENOTDIR; return -1; } } } #endif #if REPLACE_FCHDIR if (!REPLACE_OPEN_DIRECTORY && 0 <= fd) fd = _gl_register_fd (fd, filename); #endif return fd; } shishi-1.0.3/src/gl/_Noreturn.h0000644000000000000000000000414614273615074013224 00000000000000/* A C macro for declaring that a function does not return. Copyright (C) 2011-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _Noreturn # if (defined __cplusplus \ && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \ || (defined _MSC_VER && 1900 <= _MSC_VER)) \ && 0) /* [[noreturn]] is not practically usable, because with it the syntax extern _Noreturn void func (...); would not be valid; such a declaration would only be valid with 'extern' and '_Noreturn' swapped, or without the 'extern' keyword. However, some AIX system header files and several gnulib header files use precisely this syntax with 'extern'. */ # define _Noreturn [[noreturn]] # elif ((!defined __cplusplus || defined __clang__) \ && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ || (!defined __STRICT_ANSI__ \ && (4 < __GNUC__ + (7 <= __GNUC_MINOR__) \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ : 3 < __clang_major__ + (5 <= __clang_minor__)))))) /* _Noreturn works as-is. */ # elif (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \ || 0x5110 <= __SUNPRO_C) # define _Noreturn __attribute__ ((__noreturn__)) # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0) # define _Noreturn __declspec (noreturn) # else # define _Noreturn # endif #endif shishi-1.0.3/src/gl/sys_stat.in.h0000644000000000000000000006453314273615075013536 00000000000000/* Provide a more complete sys/stat.h header file. Copyright (C) 2005-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Eric Blake, Paul Eggert, and Jim Meyering. */ /* This file is supposed to be used on platforms where is incomplete. It is intended to provide definitions and prototypes needed by an application. Start with what the system provides. */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_sys_stat_h /* Special invocation convention. */ #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_SYS_STAT_H /* Get nlink_t. May also define off_t to a 64-bit type on native Windows. */ #include /* Get struct timespec. */ #include /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@ #ifndef _@GUARD_PREFIX@_SYS_STAT_H #define _@GUARD_PREFIX@_SYS_STAT_H /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Before doing "#define mknod rpl_mknod" below, we need to include all headers that may declare mknod(). OS/2 kLIBC declares mknod() in , not in . */ #ifdef __KLIBC__ # include #endif /* Before doing "#define mkdir rpl_mkdir" below, we need to include all headers that may declare mkdir(). Native Windows platforms declare mkdir in and/or , not in . */ #if defined _WIN32 && ! defined __CYGWIN__ # include /* mingw32, mingw64 */ # include /* mingw64, MSVC 9 */ #endif /* Native Windows platforms declare umask() in . */ #if 0 && (defined _WIN32 && ! defined __CYGWIN__) # include #endif /* Large File Support on native Windows. */ #if @WINDOWS_64_BIT_ST_SIZE@ # define stat _stati64 #endif /* Optionally, override 'struct stat' on native Windows. */ #if @GNULIB_OVERRIDES_STRUCT_STAT@ # undef stat # if @GNULIB_STAT@ # define stat rpl_stat # else /* Provoke a clear link error if stat() is used as a function and module 'stat' is not in use. */ # define stat stat_used_without_requesting_gnulib_module_stat # endif # if !GNULIB_defined_struct_stat struct stat { dev_t st_dev; ino_t st_ino; mode_t st_mode; nlink_t st_nlink; # if 0 uid_t st_uid; # else /* uid_t is not defined by default on native Windows. */ short st_uid; # endif # if 0 gid_t st_gid; # else /* gid_t is not defined by default on native Windows. */ short st_gid; # endif dev_t st_rdev; off_t st_size; # if 0 blksize_t st_blksize; blkcnt_t st_blocks; # endif # if @WINDOWS_STAT_TIMESPEC@ struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # else time_t st_atime; time_t st_mtime; time_t st_ctime; # endif }; # if @WINDOWS_STAT_TIMESPEC@ # define st_atime st_atim.tv_sec # define st_mtime st_mtim.tv_sec # define st_ctime st_ctim.tv_sec /* Indicator, for gnulib internal purposes. */ # define _GL_WINDOWS_STAT_TIMESPEC 1 # endif # define GNULIB_defined_struct_stat 1 # endif /* Other possible values of st_mode. */ # if 0 # define _S_IFBLK 0x6000 # endif # if 0 # define _S_IFLNK 0xA000 # endif # if 0 # define _S_IFSOCK 0xC000 # endif #endif #ifndef S_IFIFO # ifdef _S_IFIFO # define S_IFIFO _S_IFIFO # endif #endif #ifndef S_IFMT # define S_IFMT 0170000 #endif #if STAT_MACROS_BROKEN # undef S_ISBLK # undef S_ISCHR # undef S_ISDIR # undef S_ISFIFO # undef S_ISLNK # undef S_ISNAM # undef S_ISMPB # undef S_ISMPC # undef S_ISNWK # undef S_ISREG # undef S_ISSOCK #endif #ifndef S_ISBLK # ifdef S_IFBLK # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) # else # define S_ISBLK(m) 0 # endif #endif #ifndef S_ISCHR # ifdef S_IFCHR # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) # else # define S_ISCHR(m) 0 # endif #endif #ifndef S_ISDIR # ifdef S_IFDIR # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) # else # define S_ISDIR(m) 0 # endif #endif #ifndef S_ISDOOR /* Solaris 2.5 and up */ # define S_ISDOOR(m) 0 #endif #ifndef S_ISFIFO # ifdef S_IFIFO # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) # else # define S_ISFIFO(m) 0 # endif #endif #ifndef S_ISLNK # ifdef S_IFLNK # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) # else # define S_ISLNK(m) 0 # endif #endif #ifndef S_ISMPB /* V7 */ # ifdef S_IFMPB # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) # else # define S_ISMPB(m) 0 # define S_ISMPC(m) 0 # endif #endif #ifndef S_ISMPX /* AIX */ # define S_ISMPX(m) 0 #endif #ifndef S_ISNAM /* Xenix */ # ifdef S_IFNAM # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) # else # define S_ISNAM(m) 0 # endif #endif #ifndef S_ISNWK /* HP/UX */ # ifdef S_IFNWK # define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) # else # define S_ISNWK(m) 0 # endif #endif #ifndef S_ISPORT /* Solaris 10 and up */ # define S_ISPORT(m) 0 #endif #ifndef S_ISREG # ifdef S_IFREG # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) # else # define S_ISREG(m) 0 # endif #endif #ifndef S_ISSOCK # ifdef S_IFSOCK # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) # else # define S_ISSOCK(m) 0 # endif #endif #ifndef S_TYPEISMQ # define S_TYPEISMQ(p) 0 #endif #ifndef S_TYPEISTMO # define S_TYPEISTMO(p) 0 #endif #ifndef S_TYPEISSEM # ifdef S_INSEM # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM) # else # define S_TYPEISSEM(p) 0 # endif #endif #ifndef S_TYPEISSHM # ifdef S_INSHD # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD) # else # define S_TYPEISSHM(p) 0 # endif #endif /* high performance ("contiguous data") */ #ifndef S_ISCTG # define S_ISCTG(p) 0 #endif /* Cray DMF (data migration facility): off line, with data */ #ifndef S_ISOFD # define S_ISOFD(p) 0 #endif /* Cray DMF (data migration facility): off line, with no data */ #ifndef S_ISOFL # define S_ISOFL(p) 0 #endif /* 4.4BSD whiteout */ #ifndef S_ISWHT # define S_ISWHT(m) 0 #endif /* If any of the following are undefined, define them to their de facto standard values. */ #if !S_ISUID # define S_ISUID 04000 #endif #if !S_ISGID # define S_ISGID 02000 #endif /* S_ISVTX is a common extension to POSIX. */ #ifndef S_ISVTX # define S_ISVTX 01000 #endif #if !S_IRUSR && S_IREAD # define S_IRUSR S_IREAD #endif #if !S_IRUSR # define S_IRUSR 00400 #endif #if !S_IRGRP # define S_IRGRP (S_IRUSR >> 3) #endif #if !S_IROTH # define S_IROTH (S_IRUSR >> 6) #endif #if !S_IWUSR && S_IWRITE # define S_IWUSR S_IWRITE #endif #if !S_IWUSR # define S_IWUSR 00200 #endif #if !S_IWGRP # define S_IWGRP (S_IWUSR >> 3) #endif #if !S_IWOTH # define S_IWOTH (S_IWUSR >> 6) #endif #if !S_IXUSR && S_IEXEC # define S_IXUSR S_IEXEC #endif #if !S_IXUSR # define S_IXUSR 00100 #endif #if !S_IXGRP # define S_IXGRP (S_IXUSR >> 3) #endif #if !S_IXOTH # define S_IXOTH (S_IXUSR >> 6) #endif #if !S_IRWXU # define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) #endif #if !S_IRWXG # define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) #endif #if !S_IRWXO # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) #endif /* Although S_IXUGO and S_IRWXUGO are not specified by POSIX and are not implemented in GNU/Linux, some Gnulib-using apps use the macros. */ #if !S_IXUGO # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) #endif #ifndef S_IRWXUGO # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO) #endif /* Macros for futimens and utimensat. */ #ifndef UTIME_NOW # define UTIME_NOW (-1) # define UTIME_OMIT (-2) #endif #if @GNULIB_CHMOD@ # if @REPLACE_CHMOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod rpl_chmod # endif _GL_FUNCDECL_RPL (chmod, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (chmod, int, (const char *filename, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod _chmod # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (chmod); #elif defined GNULIB_POSIXCHECK # undef chmod # if HAVE_RAW_DECL_CHMOD _GL_WARN_ON_USE (chmod, "chmod has portability problems - " "use gnulib module chmod for portability"); # endif #elif @GNULIB_MDA_CHMOD@ /* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::chmod always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef chmod # define chmod _chmod # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode)); # else _GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode)); # endif _GL_CXXALIASWARN (chmod); #endif #if @GNULIB_FCHMODAT@ # if @REPLACE_FCHMODAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fchmodat # define fchmodat rpl_fchmodat # endif _GL_FUNCDECL_RPL (fchmodat, int, (int fd, char const *file, mode_t mode, int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fchmodat, int, (int fd, char const *file, mode_t mode, int flag)); # else # if !@HAVE_FCHMODAT@ _GL_FUNCDECL_SYS (fchmodat, int, (int fd, char const *file, mode_t mode, int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (fchmodat, int, (int fd, char const *file, mode_t mode, int flag)); # endif _GL_CXXALIASWARN (fchmodat); #elif defined GNULIB_POSIXCHECK # undef fchmodat # if HAVE_RAW_DECL_FCHMODAT _GL_WARN_ON_USE (fchmodat, "fchmodat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_FSTAT@ # if @REPLACE_FSTAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fstat # define fstat rpl_fstat # endif _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf)); # else _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (fstat); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef fstat # define fstat fstat_used_without_requesting_gnulib_module_fstat #elif @WINDOWS_64_BIT_ST_SIZE@ /* Above, we define stat to _stati64. */ # define fstat _fstati64 #elif defined GNULIB_POSIXCHECK # undef fstat # if HAVE_RAW_DECL_FSTAT _GL_WARN_ON_USE (fstat, "fstat has portability problems - " "use gnulib module fstat for portability"); # endif #endif #if @GNULIB_FSTATAT@ # if @REPLACE_FSTATAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fstatat # define fstatat rpl_fstatat # endif _GL_FUNCDECL_RPL (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_RPL (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags)); # else # if !@HAVE_FSTATAT@ _GL_FUNCDECL_SYS (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags) _GL_ARG_NONNULL ((2, 3))); # endif _GL_CXXALIAS_SYS (fstatat, int, (int fd, char const *restrict name, struct stat *restrict st, int flags)); # endif _GL_CXXALIASWARN (fstatat); #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef fstatat # define fstatat fstatat_used_without_requesting_gnulib_module_fstatat #elif defined GNULIB_POSIXCHECK # undef fstatat # if HAVE_RAW_DECL_FSTATAT _GL_WARN_ON_USE (fstatat, "fstatat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_FUTIMENS@ /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our futimens implementation relies on futimesat, which on Solaris 10 makes an invocation to futimens that is meant to invoke the libc's futimens(), not gnulib's futimens(). */ # if @REPLACE_FUTIMENS@ || (!@HAVE_FUTIMENS@ && defined __sun) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef futimens # define futimens rpl_futimens # endif _GL_FUNCDECL_RPL (futimens, int, (int fd, struct timespec const times[2])); _GL_CXXALIAS_RPL (futimens, int, (int fd, struct timespec const times[2])); # else # if !@HAVE_FUTIMENS@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2])); # endif _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2])); # endif # if @HAVE_FUTIMENS@ _GL_CXXALIASWARN (futimens); # endif #elif defined GNULIB_POSIXCHECK # undef futimens # if HAVE_RAW_DECL_FUTIMENS _GL_WARN_ON_USE (futimens, "futimens is not portable - " "use gnulib module futimens for portability"); # endif #endif #if @GNULIB_GETUMASK@ # if !@HAVE_GETUMASK@ _GL_FUNCDECL_SYS (getumask, mode_t, (void)); # endif _GL_CXXALIAS_SYS (getumask, mode_t, (void)); # if @HAVE_GETUMASK@ _GL_CXXALIASWARN (getumask); # endif #elif defined GNULIB_POSIXCHECK # undef getumask # if HAVE_RAW_DECL_GETUMASK _GL_WARN_ON_USE (getumask, "getumask is not portable - " "use gnulib module getumask for portability"); # endif #endif #if @GNULIB_LCHMOD@ /* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME denotes a symbolic link. */ # if !@HAVE_LCHMOD@ || defined __hpux _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode)); _GL_CXXALIASWARN (lchmod); #elif defined GNULIB_POSIXCHECK # undef lchmod # if HAVE_RAW_DECL_LCHMOD _GL_WARN_ON_USE (lchmod, "lchmod is unportable - " "use gnulib module lchmod for portability"); # endif #endif #if @GNULIB_LSTAT@ # if ! @HAVE_LSTAT@ /* mingw does not support symlinks, therefore it does not have lstat. But without links, stat does just fine. */ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define lstat stat # endif _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *restrict name, struct stat *restrict buf)); # elif @REPLACE_LSTAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef lstat # define lstat rpl_lstat # endif _GL_FUNCDECL_RPL (lstat, int, (const char *restrict name, struct stat *restrict buf) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (lstat, int, (const char *restrict name, struct stat *restrict buf)); # else _GL_CXXALIAS_SYS (lstat, int, (const char *restrict name, struct stat *restrict buf)); # endif # if @HAVE_LSTAT@ _GL_CXXALIASWARN (lstat); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ # undef lstat # define lstat lstat_used_without_requesting_gnulib_module_lstat #elif defined GNULIB_POSIXCHECK # undef lstat # if HAVE_RAW_DECL_LSTAT _GL_WARN_ON_USE (lstat, "lstat is unportable - " "use gnulib module lstat for portability"); # endif #endif #if @GNULIB_MKDIR@ # if @REPLACE_MKDIR@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # elif defined _WIN32 && !defined __CYGWIN__ /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. Additionally, it declares _mkdir (and depending on compile flags, an alias mkdir), only in the nonstandard includes and , which are included above. */ # if !GNULIB_defined_rpl_mkdir static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } # define GNULIB_defined_rpl_mkdir 1 # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # else _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); # endif _GL_CXXALIASWARN (mkdir); #elif defined GNULIB_POSIXCHECK # undef mkdir # if HAVE_RAW_DECL_MKDIR _GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - " "use gnulib module mkdir for portability"); # endif #elif @GNULIB_MDA_MKDIR@ /* On native Windows, map 'mkdir' to '_mkdir', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::mkdir always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !GNULIB_defined_rpl_mkdir static int rpl_mkdir (char const *name, mode_t mode) { return _mkdir (name); } # define GNULIB_defined_rpl_mkdir 1 # endif # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkdir # define mkdir rpl_mkdir # endif _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); # else _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode)); # endif _GL_CXXALIASWARN (mkdir); #endif #if @GNULIB_MKDIRAT@ # if !@HAVE_MKDIRAT@ _GL_FUNCDECL_SYS (mkdirat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mkdirat, int, (int fd, char const *file, mode_t mode)); _GL_CXXALIASWARN (mkdirat); #elif defined GNULIB_POSIXCHECK # undef mkdirat # if HAVE_RAW_DECL_MKDIRAT _GL_WARN_ON_USE (mkdirat, "mkdirat is not portable - " "use gnulib module openat for portability"); # endif #endif #if @GNULIB_MKFIFO@ # if @REPLACE_MKFIFO@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkfifo # define mkfifo rpl_mkfifo # endif _GL_FUNCDECL_RPL (mkfifo, int, (char const *file, mode_t mode) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkfifo, int, (char const *file, mode_t mode)); # else # if !@HAVE_MKFIFO@ _GL_FUNCDECL_SYS (mkfifo, int, (char const *file, mode_t mode) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkfifo, int, (char const *file, mode_t mode)); # endif _GL_CXXALIASWARN (mkfifo); #elif defined GNULIB_POSIXCHECK # undef mkfifo # if HAVE_RAW_DECL_MKFIFO _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - " "use gnulib module mkfifo for portability"); # endif #endif #if @GNULIB_MKFIFOAT@ # if @REPLACE_MKFIFOAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mkfifoat # define mkfifoat rpl_mkfifoat # endif _GL_FUNCDECL_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode)); # else # if !@HAVE_MKFIFOAT@ _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)); # endif _GL_CXXALIASWARN (mkfifoat); #elif defined GNULIB_POSIXCHECK # undef mkfifoat # if HAVE_RAW_DECL_MKFIFOAT _GL_WARN_ON_USE (mkfifoat, "mkfifoat is not portable - " "use gnulib module mkfifoat for portability"); # endif #endif #if @GNULIB_MKNOD@ # if @REPLACE_MKNOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mknod # define mknod rpl_mknod # endif _GL_FUNCDECL_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mknod, int, (char const *file, mode_t mode, dev_t dev)); # else # if !@HAVE_MKNOD@ _GL_FUNCDECL_SYS (mknod, int, (char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on OSF/1 5.1, the third parameter is '...'. */ _GL_CXXALIAS_SYS_CAST (mknod, int, (char const *file, mode_t mode, dev_t dev)); # endif _GL_CXXALIASWARN (mknod); #elif defined GNULIB_POSIXCHECK # undef mknod # if HAVE_RAW_DECL_MKNOD _GL_WARN_ON_USE (mknod, "mknod is not portable - " "use gnulib module mknod for portability"); # endif #endif #if @GNULIB_MKNODAT@ # if @REPLACE_MKNODAT@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mknodat # define mknodat rpl_mknodat # endif _GL_FUNCDECL_RPL (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev)); # else # if !@HAVE_MKNODAT@ _GL_FUNCDECL_SYS (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (mknodat, int, (int fd, char const *file, mode_t mode, dev_t dev)); # endif _GL_CXXALIASWARN (mknodat); #elif defined GNULIB_POSIXCHECK # undef mknodat # if HAVE_RAW_DECL_MKNODAT _GL_WARN_ON_USE (mknodat, "mknodat is not portable - " "use gnulib module mkfifoat for portability"); # endif #endif #if @GNULIB_STAT@ # if @REPLACE_STAT@ # if !@GNULIB_OVERRIDES_STRUCT_STAT@ /* We can't use the object-like #define stat rpl_stat, because of struct stat. This means that rpl_stat will not be used if the user does (stat)(a,b). Oh well. */ # if defined _AIX && defined stat && defined _LARGE_FILES /* With _LARGE_FILES defined, AIX (only) defines stat to stat64, so we have to replace stat64() instead of stat(). */ # undef stat64 # define stat64(name, st) rpl_stat (name, st) # elif @WINDOWS_64_BIT_ST_SIZE@ /* Above, we define stat to _stati64. */ # if defined __MINGW32__ && defined _stati64 # ifndef _USE_32BIT_TIME_T /* The system headers define _stati64 to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # elif defined _MSC_VER && defined _stati64 # ifdef _USE_32BIT_TIME_T /* The system headers define _stati64 to _stat32i64. */ # undef _stat32i64 # define _stat32i64(name, st) rpl_stat (name, st) # else /* The system headers define _stati64 to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # else # undef _stati64 # define _stati64(name, st) rpl_stat (name, st) # endif # elif defined __MINGW32__ && defined stat # ifdef _USE_32BIT_TIME_T /* The system headers define stat to _stat32i64. */ # undef _stat32i64 # define _stat32i64(name, st) rpl_stat (name, st) # else /* The system headers define stat to _stat64. */ # undef _stat64 # define _stat64(name, st) rpl_stat (name, st) # endif # elif defined _MSC_VER && defined stat # ifdef _USE_32BIT_TIME_T /* The system headers define stat to _stat32. */ # undef _stat32 # define _stat32(name, st) rpl_stat (name, st) # else /* The system headers define stat to _stat64i32. */ # undef _stat64i32 # define _stat64i32(name, st) rpl_stat (name, st) # endif # else /* !(_AIX || __MINGW32__ || _MSC_VER) */ # undef stat # define stat(name, st) rpl_stat (name, st) # endif /* !_LARGE_FILES */ # endif /* !@GNULIB_OVERRIDES_STRUCT_STAT@ */ _GL_EXTERN_C int stat (const char *restrict name, struct stat *restrict buf) _GL_ARG_NONNULL ((1, 2)); # endif #elif @GNULIB_OVERRIDES_STRUCT_STAT@ /* see above: #define stat stat_used_without_requesting_gnulib_module_stat */ #elif defined GNULIB_POSIXCHECK # undef stat # if HAVE_RAW_DECL_STAT _GL_WARN_ON_USE (stat, "stat is unportable - " "use gnulib module stat for portability"); # endif #endif #if @GNULIB_MDA_UMASK@ /* On native Windows, map 'umask' to '_umask', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::umask always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef umask # define umask _umask # endif /* Need to cast, because in mingw the last argument is 'int mode'. */ _GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask)); # else _GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask)); # endif _GL_CXXALIASWARN (umask); #endif #if @GNULIB_UTIMENSAT@ /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat implementation relies on futimesat, which on Solaris 10 makes an invocation to utimensat that is meant to invoke the libc's utimensat(), not gnulib's utimensat(). */ # if @REPLACE_UTIMENSAT@ || (!@HAVE_UTIMENSAT@ && defined __sun) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef utimensat # define utimensat rpl_utimensat # endif _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag)); # else # if !@HAVE_UTIMENSAT@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, struct timespec const times[2], int flag)); # endif # if @HAVE_UTIMENSAT@ _GL_CXXALIASWARN (utimensat); # endif #elif defined GNULIB_POSIXCHECK # undef utimensat # if HAVE_RAW_DECL_UTIMENSAT _GL_WARN_ON_USE (utimensat, "utimensat is not portable - " "use gnulib module utimensat for portability"); # endif #endif #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ #endif /* _@GUARD_PREFIX@_SYS_STAT_H */ #endif shishi-1.0.3/src/gl/strerror-override.c0000644000000000000000000002164614273615075014750 00000000000000/* strerror-override.c --- POSIX compatible system error routine Copyright (C) 2010-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2010. */ #include #include "strerror-override.h" #include #if GNULIB_defined_EWINSOCK /* native Windows platforms */ # if HAVE_WINSOCK2_H # include # endif #endif #if !GNULIB_defined_strerror_override_macro /* If ERRNUM maps to an errno value defined by gnulib, return a string describing the error. Otherwise return NULL. */ const char * strerror_override (int errnum) { /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */ switch (errnum) { # if REPLACE_STRERROR_0 case 0: return "Success"; # endif # if GNULIB_defined_ESOCK /* native Windows platforms with older */ case EINPROGRESS: return "Operation now in progress"; case EALREADY: return "Operation already in progress"; case ENOTSOCK: return "Socket operation on non-socket"; case EDESTADDRREQ: return "Destination address required"; case EMSGSIZE: return "Message too long"; case EPROTOTYPE: return "Protocol wrong type for socket"; case ENOPROTOOPT: return "Protocol not available"; case EPROTONOSUPPORT: return "Protocol not supported"; case EOPNOTSUPP: return "Operation not supported"; case EAFNOSUPPORT: return "Address family not supported by protocol"; case EADDRINUSE: return "Address already in use"; case EADDRNOTAVAIL: return "Cannot assign requested address"; case ENETDOWN: return "Network is down"; case ENETUNREACH: return "Network is unreachable"; case ECONNRESET: return "Connection reset by peer"; case ENOBUFS: return "No buffer space available"; case EISCONN: return "Transport endpoint is already connected"; case ENOTCONN: return "Transport endpoint is not connected"; case ETIMEDOUT: return "Connection timed out"; case ECONNREFUSED: return "Connection refused"; case ELOOP: return "Too many levels of symbolic links"; case EHOSTUNREACH: return "No route to host"; case EWOULDBLOCK: return "Operation would block"; # endif # if GNULIB_defined_ESTREAMS /* native Windows platforms with older */ case ETXTBSY: return "Text file busy"; case ENODATA: return "No data available"; case ENOSR: return "Out of streams resources"; case ENOSTR: return "Device not a stream"; case ETIME: return "Timer expired"; case EOTHER: return "Other error"; # endif # if GNULIB_defined_EWINSOCK /* native Windows platforms */ case ESOCKTNOSUPPORT: return "Socket type not supported"; case EPFNOSUPPORT: return "Protocol family not supported"; case ESHUTDOWN: return "Cannot send after transport endpoint shutdown"; case ETOOMANYREFS: return "Too many references: cannot splice"; case EHOSTDOWN: return "Host is down"; case EPROCLIM: return "Too many processes"; case EUSERS: return "Too many users"; case EDQUOT: return "Disk quota exceeded"; case ESTALE: return "Stale NFS file handle"; case EREMOTE: return "Object is remote"; # if HAVE_WINSOCK2_H /* WSA_INVALID_HANDLE maps to EBADF */ /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */ /* WSA_INVALID_PARAMETER maps to EINVAL */ case WSA_OPERATION_ABORTED: return "Overlapped operation aborted"; case WSA_IO_INCOMPLETE: return "Overlapped I/O event object not in signaled state"; case WSA_IO_PENDING: return "Overlapped operations will complete later"; /* WSAEINTR maps to EINTR */ /* WSAEBADF maps to EBADF */ /* WSAEACCES maps to EACCES */ /* WSAEFAULT maps to EFAULT */ /* WSAEINVAL maps to EINVAL */ /* WSAEMFILE maps to EMFILE */ /* WSAEWOULDBLOCK maps to EWOULDBLOCK */ /* WSAEINPROGRESS maps to EINPROGRESS */ /* WSAEALREADY maps to EALREADY */ /* WSAENOTSOCK maps to ENOTSOCK */ /* WSAEDESTADDRREQ maps to EDESTADDRREQ */ /* WSAEMSGSIZE maps to EMSGSIZE */ /* WSAEPROTOTYPE maps to EPROTOTYPE */ /* WSAENOPROTOOPT maps to ENOPROTOOPT */ /* WSAEPROTONOSUPPORT maps to EPROTONOSUPPORT */ /* WSAESOCKTNOSUPPORT is ESOCKTNOSUPPORT */ /* WSAEOPNOTSUPP maps to EOPNOTSUPP */ /* WSAEPFNOSUPPORT is EPFNOSUPPORT */ /* WSAEAFNOSUPPORT maps to EAFNOSUPPORT */ /* WSAEADDRINUSE maps to EADDRINUSE */ /* WSAEADDRNOTAVAIL maps to EADDRNOTAVAIL */ /* WSAENETDOWN maps to ENETDOWN */ /* WSAENETUNREACH maps to ENETUNREACH */ /* WSAENETRESET maps to ENETRESET */ /* WSAECONNABORTED maps to ECONNABORTED */ /* WSAECONNRESET maps to ECONNRESET */ /* WSAENOBUFS maps to ENOBUFS */ /* WSAEISCONN maps to EISCONN */ /* WSAENOTCONN maps to ENOTCONN */ /* WSAESHUTDOWN is ESHUTDOWN */ /* WSAETOOMANYREFS is ETOOMANYREFS */ /* WSAETIMEDOUT maps to ETIMEDOUT */ /* WSAECONNREFUSED maps to ECONNREFUSED */ /* WSAELOOP maps to ELOOP */ /* WSAENAMETOOLONG maps to ENAMETOOLONG */ /* WSAEHOSTDOWN is EHOSTDOWN */ /* WSAEHOSTUNREACH maps to EHOSTUNREACH */ /* WSAENOTEMPTY maps to ENOTEMPTY */ /* WSAEPROCLIM is EPROCLIM */ /* WSAEUSERS is EUSERS */ /* WSAEDQUOT is EDQUOT */ /* WSAESTALE is ESTALE */ /* WSAEREMOTE is EREMOTE */ case WSASYSNOTREADY: return "Network subsystem is unavailable"; case WSAVERNOTSUPPORTED: return "Winsock.dll version out of range"; case WSANOTINITIALISED: return "Successful WSAStartup not yet performed"; case WSAEDISCON: return "Graceful shutdown in progress"; case WSAENOMORE: case WSA_E_NO_MORE: return "No more results"; case WSAECANCELLED: case WSA_E_CANCELLED: return "Call was canceled"; case WSAEINVALIDPROCTABLE: return "Procedure call table is invalid"; case WSAEINVALIDPROVIDER: return "Service provider is invalid"; case WSAEPROVIDERFAILEDINIT: return "Service provider failed to initialize"; case WSASYSCALLFAILURE: return "System call failure"; case WSASERVICE_NOT_FOUND: return "Service not found"; case WSATYPE_NOT_FOUND: return "Class type not found"; case WSAEREFUSED: return "Database query was refused"; case WSAHOST_NOT_FOUND: return "Host not found"; case WSATRY_AGAIN: return "Nonauthoritative host not found"; case WSANO_RECOVERY: return "Nonrecoverable error"; case WSANO_DATA: return "Valid name, no data record of requested type"; /* WSA_QOS_* omitted */ # endif # endif # if GNULIB_defined_ENOMSG case ENOMSG: return "No message of desired type"; # endif # if GNULIB_defined_EIDRM case EIDRM: return "Identifier removed"; # endif # if GNULIB_defined_ENOLINK case ENOLINK: return "Link has been severed"; # endif # if GNULIB_defined_EPROTO case EPROTO: return "Protocol error"; # endif # if GNULIB_defined_EMULTIHOP case EMULTIHOP: return "Multihop attempted"; # endif # if GNULIB_defined_EBADMSG case EBADMSG: return "Bad message"; # endif # if GNULIB_defined_EOVERFLOW case EOVERFLOW: return "Value too large for defined data type"; # endif # if GNULIB_defined_ENOTSUP case ENOTSUP: return "Not supported"; # endif # if GNULIB_defined_ENETRESET case ENETRESET: return "Network dropped connection on reset"; # endif # if GNULIB_defined_ECONNABORTED case ECONNABORTED: return "Software caused connection abort"; # endif # if GNULIB_defined_ESTALE case ESTALE: return "Stale NFS file handle"; # endif # if GNULIB_defined_EDQUOT case EDQUOT: return "Disk quota exceeded"; # endif # if GNULIB_defined_ECANCELED case ECANCELED: return "Operation canceled"; # endif # if GNULIB_defined_EOWNERDEAD case EOWNERDEAD: return "Owner died"; # endif # if GNULIB_defined_ENOTRECOVERABLE case ENOTRECOVERABLE: return "State not recoverable"; # endif # if GNULIB_defined_EILSEQ case EILSEQ: return "Invalid or incomplete multibyte or wide character"; # endif default: return NULL; } } #endif shishi-1.0.3/src/gl/getprogname.c0000644000000000000000000002232614273615074013554 00000000000000/* Program name management. Copyright (C) 2016-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #include /* Specification. */ #include "getprogname.h" #include /* get program_invocation_name declaration */ #include /* get __argv declaration */ #ifdef _AIX # include # include # include #endif #ifdef __MVS__ # ifndef _OPEN_SYS # define _OPEN_SYS # endif # include # include #endif #ifdef __hpux # include # include # include # include #endif #if defined __sgi || defined __osf__ # include # include # include # include # include #endif #if defined __SCO_VERSION__ || defined __sysv5__ # include # include # include #endif #include "basename-lgpl.h" #ifndef HAVE_GETPROGNAME /* not Mac OS X, FreeBSD, NetBSD, OpenBSD >= 5.4, Cygwin */ char const * getprogname (void) { # if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME /* glibc, BeOS */ /* https://www.gnu.org/software/libc/manual/html_node/Error-Messages.html */ return program_invocation_short_name; # elif HAVE_DECL_PROGRAM_INVOCATION_NAME /* glibc, BeOS */ /* https://www.gnu.org/software/libc/manual/html_node/Error-Messages.html */ return last_component (program_invocation_name); # elif HAVE_GETEXECNAME /* Solaris */ /* https://docs.oracle.com/cd/E19253-01/816-5168/6mbb3hrb1/index.html */ const char *p = getexecname (); if (!p) p = "?"; return last_component (p); # elif HAVE_DECL___ARGV /* mingw, MSVC */ /* https://docs.microsoft.com/en-us/cpp/c-runtime-library/argc-argv-wargv */ const char *p = __argv && __argv[0] ? __argv[0] : "?"; return last_component (p); # elif HAVE_VAR___PROGNAME /* OpenBSD, Android, QNX */ /* https://man.openbsd.org/style.9 */ /* http://www.qnx.de/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.neutrino_lib_ref%2Fp%2F__progname.html */ /* Be careful to declare this only when we absolutely need it (OpenBSD 5.1), rather than when it's available. Otherwise, its mere declaration makes program_invocation_short_name malfunction (have zero length) with Fedora 25's glibc. */ extern char *__progname; const char *p = __progname; # if defined __ANDROID__ return last_component (p); # else return p && p[0] ? p : "?"; # endif # elif _AIX /* AIX */ /* Idea by Bastien ROUCARIÈS, https://lists.gnu.org/r/bug-gnulib/2010-12/msg00095.html Reference: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_61/com.ibm.aix.basetrf1/getprocs.htm */ static char *p; static int first = 1; if (first) { first = 0; pid_t pid = getpid (); struct procentry64 procs; p = (0 < getprocs64 (&procs, sizeof procs, NULL, 0, &pid, 1) ? strdup (procs.pi_comm) : NULL); if (!p) p = "?"; } return p; # elif defined __hpux static char *p; static int first = 1; if (first) { first = 0; pid_t pid = getpid (); struct pst_status status; if (pstat_getproc (&status, sizeof status, 0, pid) > 0) { char *ucomm = status.pst_ucomm; char *cmd = status.pst_cmd; if (strlen (ucomm) < PST_UCOMMLEN - 1) p = ucomm; else { /* ucomm is truncated to length PST_UCOMMLEN - 1. Look at cmd instead. */ char *space = strchr (cmd, ' '); if (space != NULL) *space = '\0'; p = strrchr (cmd, '/'); if (p != NULL) p++; else p = cmd; if (strlen (p) > PST_UCOMMLEN - 1 && memcmp (p, ucomm, PST_UCOMMLEN - 1) == 0) /* p is less truncated than ucomm. */ ; else p = ucomm; } p = strdup (p); } else { # if !defined __LP64__ /* Support for 32-bit programs running in 64-bit HP-UX. The documented way to do this is to use the same source code as above, but in a compilation unit where '#define _PSTAT64 1' is in effect. I prefer a single compilation unit; the struct size and the offsets are not going to change. */ char status64[1216]; if (__pstat_getproc64 (status64, sizeof status64, 0, pid) > 0) { char *ucomm = status64 + 288; char *cmd = status64 + 168; if (strlen (ucomm) < PST_UCOMMLEN - 1) p = ucomm; else { /* ucomm is truncated to length PST_UCOMMLEN - 1. Look at cmd instead. */ char *space = strchr (cmd, ' '); if (space != NULL) *space = '\0'; p = strrchr (cmd, '/'); if (p != NULL) p++; else p = cmd; if (strlen (p) > PST_UCOMMLEN - 1 && memcmp (p, ucomm, PST_UCOMMLEN - 1) == 0) /* p is less truncated than ucomm. */ ; else p = ucomm; } p = strdup (p); } else # endif p = NULL; } if (!p) p = "?"; } return p; # elif __MVS__ /* z/OS */ /* https://www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.bpxbd00/rtwgetp.htm */ static char *p = "?"; static int first = 1; if (first) { pid_t pid = getpid (); int token; W_PSPROC buf; first = 0; memset (&buf, 0, sizeof(buf)); buf.ps_cmdptr = (char *) malloc (buf.ps_cmdlen = PS_CMDBLEN_LONG); buf.ps_conttyptr = (char *) malloc (buf.ps_conttylen = PS_CONTTYBLEN); buf.ps_pathptr = (char *) malloc (buf.ps_pathlen = PS_PATHBLEN); if (buf.ps_cmdptr && buf.ps_conttyptr && buf.ps_pathptr) { for (token = 0; token >= 0; token = w_getpsent (token, &buf, sizeof(buf))) { if (token > 0 && buf.ps_pid == pid) { char *s = strdup (last_component (buf.ps_pathptr)); if (s) p = s; break; } } } free (buf.ps_cmdptr); free (buf.ps_conttyptr); free (buf.ps_pathptr); } return p; # elif defined __sgi || defined __osf__ /* IRIX or Tru64 */ char filename[50]; int fd; # if defined __sgi sprintf (filename, "/proc/pinfo/%d", (int) getpid ()); # else sprintf (filename, "/proc/%d", (int) getpid ()); # endif fd = open (filename, O_RDONLY | O_CLOEXEC); if (0 <= fd) { prpsinfo_t buf; int ioctl_ok = 0 <= ioctl (fd, PIOCPSINFO, &buf); close (fd); if (ioctl_ok) { char *name = buf.pr_fname; size_t namesize = sizeof buf.pr_fname; /* It may not be NUL-terminated. */ char *namenul = memchr (name, '\0', namesize); size_t namelen = namenul ? namenul - name : namesize; char *namecopy = malloc (namelen + 1); if (namecopy) { namecopy[namelen] = '\0'; return memcpy (namecopy, name, namelen); } } } return NULL; # elif defined __SCO_VERSION__ || defined __sysv5__ /* SCO OpenServer6/UnixWare */ char buf[80]; int fd; sprintf (buf, "/proc/%d/cmdline", getpid()); fd = open (buf, O_RDONLY); if (0 <= fd) { size_t n = read (fd, buf, 79); if (n > 0) { buf[n] = '\0'; /* Guarantee null-termination */ char *progname; progname = strrchr (buf, '/'); if (progname) { progname = progname + 1; /* Skip the '/' */ } else { progname = buf; } char *ret; ret = malloc (strlen (progname) + 1); if (ret) { strcpy (ret, progname); return ret; } } close (fd); } return "?"; # else # error "getprogname module not ported to this OS" # endif } #endif /* * Hey Emacs! * Local Variables: * coding: utf-8 * End: */ shishi-1.0.3/src/gl/getopt1.c0000644000000000000000000000736014273615074012630 00000000000000/* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987-2022 Free Software Foundation, Inc. This file is part of the GNU C Library and is also part of gnulib. Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _LIBC # include #endif #include "getopt.h" #include "getopt_int.h" int getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, opt_index, 0, 0); } int _getopt_long_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 0, d, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (int argc, char *__getopt_argv_const *argv, const char *options, const struct option *long_options, int *opt_index) { return _getopt_internal (argc, (char **) argv, options, long_options, opt_index, 1, 0); } int _getopt_long_only_r (int argc, char **argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d) { return _getopt_internal_r (argc, argv, options, long_options, opt_index, 1, d, 0); } #ifdef TEST #include #include int main (int argc, char **argv) { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static const struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value '%s'\n", optarg); break; case 'd': printf ("option d with value '%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ shishi-1.0.3/src/gl/time.in.h0000644000000000000000000004066014273615075012616 00000000000000/* A more-standard . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* Don't get in the way of glibc when it includes time.h merely to declare a few standard symbols, rather than to declare all the symbols. (However, skip this for MinGW as it treats __need_time_t incompatibly.) Also, Solaris 8 eventually includes itself recursively; if that is happening, just include the system without adding our own declarations. */ #if (((defined __need_time_t || defined __need_clock_t \ || defined __need_timespec) \ && !defined __MINGW32__) \ || defined _@GUARD_PREFIX@_TIME_H) # @INCLUDE_NEXT@ @NEXT_TIME_H@ #else # define _@GUARD_PREFIX@_TIME_H /* mingw's provides the functions asctime_r, ctime_r, gmtime_r, localtime_r only if or has been included before. */ # if defined __MINGW32__ # include # endif # @INCLUDE_NEXT@ @NEXT_TIME_H@ /* NetBSD 5.0 mis-defines NULL. */ # include /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems don't define struct timespec (e.g., AIX 4.1). Or they define it with the wrong member names or define it in (e.g., FreeBSD circa 1997). Stock Mingw prior to 3.0 does not define it, but the pthreads-win32 library defines it in . */ # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ # include # elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ # include # elif @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ # include # else # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_struct_timespec # undef timespec # define timespec rpl_timespec struct timespec { time_t tv_sec; long int tv_nsec; }; # define GNULIB_defined_struct_timespec 1 # endif # ifdef __cplusplus } # endif # endif # endif # if !GNULIB_defined_struct_time_t_must_be_integral /* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html requires time_t to be an integer type, even though C99 permits floating point. We don't know of any implementation that uses floating point, and it is much easier to write code that doesn't have to worry about that corner case, so we force the issue. */ struct __time_t_must_be_integral { unsigned int __floating_time_t_unsupported : (time_t) 1; }; # define GNULIB_defined_struct_time_t_must_be_integral 1 # endif /* Define TIME_UTC, a positive integer constant used for timespec_get(). */ # if ! @TIME_H_DEFINES_TIME_UTC@ # if !GNULIB_defined_TIME_UTC # define TIME_UTC 1 # define GNULIB_defined_TIME_UTC 1 # endif # endif /* Set *TS to the current time, and return BASE. Upon failure, return 0. */ # if @GNULIB_TIMESPEC_GET@ # if ! @HAVE_TIMESPEC_GET@ _GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base)); _GL_CXXALIASWARN (timespec_get); # endif /* Set *TS to the current time resolution, and return BASE. Upon failure, return 0. */ # if @GNULIB_TIMESPEC_GETRES@ # if ! @HAVE_TIMESPEC_GETRES@ _GL_FUNCDECL_SYS (timespec_getres, int, (struct timespec *ts, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base)); _GL_CXXALIASWARN (timespec_getres); # endif /* Sleep for at least RQTP seconds unless interrupted, If interrupted, return -1 and store the remaining time into RMTP. See . */ # if @GNULIB_NANOSLEEP@ # if @REPLACE_NANOSLEEP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define nanosleep rpl_nanosleep # endif _GL_FUNCDECL_RPL (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp)); # else # if ! @HAVE_NANOSLEEP@ _GL_FUNCDECL_SYS (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (nanosleep, int, (struct timespec const *__rqtp, struct timespec *__rmtp)); # endif _GL_CXXALIASWARN (nanosleep); # endif /* Initialize time conversion information. */ # if @GNULIB_TZSET@ # if @REPLACE_TZSET@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset rpl_tzset # endif _GL_FUNCDECL_RPL (tzset, void, (void)); _GL_CXXALIAS_RPL (tzset, void, (void)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset _tzset # endif _GL_CXXALIAS_MDA (tzset, void, (void)); # else _GL_CXXALIAS_SYS (tzset, void, (void)); # endif _GL_CXXALIASWARN (tzset); # elif @GNULIB_MDA_TZSET@ /* On native Windows, map 'tzset' to '_tzset', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::tzset always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef tzset # define tzset _tzset # endif _GL_CXXALIAS_MDA (tzset, void, (void)); # else _GL_CXXALIAS_SYS (tzset, void, (void)); # endif _GL_CXXALIASWARN (tzset); # endif /* Return the 'time_t' representation of TP and normalize TP. */ # if @GNULIB_MKTIME@ # if @REPLACE_MKTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mktime rpl_mktime # endif _GL_FUNCDECL_RPL (mktime, time_t, (struct tm *__tp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp)); # else _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mktime); # endif # endif /* Convert TIMER to RESULT, assuming local time and UTC respectively. See and . */ # if @GNULIB_TIME_R@ # if @REPLACE_LOCALTIME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef localtime_r # define localtime_r rpl_localtime_r # endif _GL_FUNCDECL_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # else # if ! @HAVE_DECL_LOCALTIME_R@ _GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (localtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # endif # if @HAVE_DECL_LOCALTIME_R@ _GL_CXXALIASWARN (localtime_r); # endif # if @REPLACE_LOCALTIME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gmtime_r # define gmtime_r rpl_gmtime_r # endif _GL_FUNCDECL_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # else # if ! @HAVE_DECL_LOCALTIME_R@ _GL_FUNCDECL_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (gmtime_r, struct tm *, (time_t const *restrict __timer, struct tm *restrict __result)); # endif # if @HAVE_DECL_LOCALTIME_R@ _GL_CXXALIASWARN (gmtime_r); # endif # endif /* Convert TIMER to RESULT, assuming local time and UTC respectively. See and . */ # if @GNULIB_LOCALTIME@ || @REPLACE_LOCALTIME@ # if @REPLACE_LOCALTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef localtime # define localtime rpl_localtime # endif _GL_FUNCDECL_RPL (localtime, struct tm *, (time_t const *__timer) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (localtime, struct tm *, (time_t const *__timer)); # else _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (localtime); # endif # endif # if 0 || @REPLACE_GMTIME@ # if @REPLACE_GMTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gmtime # define gmtime rpl_gmtime # endif _GL_FUNCDECL_RPL (gmtime, struct tm *, (time_t const *__timer) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (gmtime, struct tm *, (time_t const *__timer)); # else _GL_CXXALIAS_SYS (gmtime, struct tm *, (time_t const *__timer)); # endif _GL_CXXALIASWARN (gmtime); # endif /* Parse BUF as a timestamp, assuming FORMAT specifies its layout, and store the resulting broken-down time into TM. See . */ # if @GNULIB_STRPTIME@ # if ! @HAVE_STRPTIME@ _GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf, char const *restrict __format, struct tm *restrict __tm) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (strptime, char *, (char const *restrict __buf, char const *restrict __format, struct tm *restrict __tm)); _GL_CXXALIASWARN (strptime); # endif /* Convert *TP to a date and time string. See . */ # if @GNULIB_CTIME@ # if @REPLACE_CTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define ctime rpl_ctime # endif _GL_FUNCDECL_RPL (ctime, char *, (time_t const *__tp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (ctime, char *, (time_t const *__tp)); # else _GL_CXXALIAS_SYS (ctime, char *, (time_t const *__tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (ctime); # endif # endif /* Convert *TP to a date and time string. See . */ # if @GNULIB_STRFTIME@ # if @REPLACE_STRFTIME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strftime rpl_strftime # endif _GL_FUNCDECL_RPL (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp) _GL_ARG_NONNULL ((1, 3, 4))); _GL_CXXALIAS_RPL (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp)); # else _GL_CXXALIAS_SYS (strftime, size_t, (char *restrict __buf, size_t __bufsize, const char *restrict __fmt, const struct tm *restrict __tp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strftime); # endif # endif # if defined _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@ /* Functions that use a first-class time zone data type, instead of relying on an implicit global time zone. Inspired by NetBSD. */ /* Represents a time zone. (timezone_t) NULL stands for UTC. */ typedef struct tm_zone *timezone_t; /* tzalloc (name) Returns a time zone object for the given time zone NAME. This object represents the time zone that other functions would use it the TZ environment variable was set to NAME. If NAME is NULL, the result represents the time zone that other functions would use it the TZ environment variable was unset. May return NULL if NAME is invalid (this is platform dependent) or upon memory allocation failure. */ _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name)); _GL_CXXALIAS_SYS (tzalloc, timezone_t, (char const *__name)); /* tzfree (tz) Frees a time zone object. The argument must have been returned by tzalloc(). */ _GL_FUNCDECL_SYS (tzfree, void, (timezone_t __tz)); _GL_CXXALIAS_SYS (tzfree, void, (timezone_t __tz)); /* localtime_rz (tz, &t, &result) Converts an absolute time T to a broken-down time RESULT, assuming the time zone TZ. This function is like 'localtime_r', but relies on the argument TZ instead of an implicit global time zone. */ _GL_FUNCDECL_SYS (localtime_rz, struct tm *, (timezone_t __tz, time_t const *restrict __timer, struct tm *restrict __result) _GL_ARG_NONNULL ((2, 3))); _GL_CXXALIAS_SYS (localtime_rz, struct tm *, (timezone_t __tz, time_t const *restrict __timer, struct tm *restrict __result)); /* mktime_z (tz, &tm) Normalizes the broken-down time TM and converts it to an absolute time, assuming the time zone TZ. Returns the absolute time. This function is like 'mktime', but relies on the argument TZ instead of an implicit global time zone. */ _GL_FUNCDECL_SYS (mktime_z, time_t, (timezone_t __tz, struct tm *restrict __tm) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_SYS (mktime_z, time_t, (timezone_t __tz, struct tm *restrict __tm)); /* Time zone abbreviation strings (returned by 'localtime_rz' or 'mktime_z' in the 'tm_zone' member of 'struct tm') are valid as long as - the 'struct tm' argument is not destroyed or overwritten, and - the 'timezone_t' argument is not freed through tzfree(). */ # endif /* Convert TM to a time_t value, assuming UTC. */ # if @GNULIB_TIMEGM@ # if @REPLACE_TIMEGM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef timegm # define timegm rpl_timegm # endif _GL_FUNCDECL_RPL (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (timegm, time_t, (struct tm *__tm)); # else # if ! @HAVE_TIMEGM@ _GL_FUNCDECL_SYS (timegm, time_t, (struct tm *__tm) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (timegm, time_t, (struct tm *__tm)); # endif _GL_CXXALIASWARN (timegm); # endif /* Encourage applications to avoid unsafe functions that can overrun buffers when given outlandish struct tm values. Portable applications should use strftime (or even sprintf) instead. */ # if defined GNULIB_POSIXCHECK # undef asctime _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef asctime_r _GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef ctime _GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif # if defined GNULIB_POSIXCHECK # undef ctime_r _GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - " "better use strftime (or even sprintf) instead"); # endif #endif shishi-1.0.3/src/gl/alloca.in.h0000644000000000000000000000467414273615074013117 00000000000000/* Memory allocation on the stack. Copyright (C) 1995, 1999, 2001-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H means there is a real alloca function. */ #ifndef _GL_ALLOCA_H #define _GL_ALLOCA_H /* alloca (N) returns a pointer to N bytes of memory allocated on the stack, which will last until the function returns. Use of alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns, - for huge N (say, N >= 65536) - you never know how large (or small) the stack is, and when the stack cannot fulfill the memory allocation request, the program just crashes. */ #ifndef alloca /* Some version of mingw have an that causes trouble when included after 'alloca' gets defined as a macro. As a workaround, include this first and define 'alloca' as a macro afterwards if needed. */ # if defined __GNUC__ && (defined _WIN32 && ! defined __CYGWIN__) && @HAVE_ALLOCA_H@ # include_next # endif #endif #ifndef alloca # if defined __GNUC__ || (__clang_major__ >= 4) # define alloca __builtin_alloca # elif defined _AIX # define alloca __alloca # elif defined _MSC_VER # include # define alloca _alloca # elif defined __DECC && defined __VMS # define alloca __ALLOCA # elif defined __TANDEM && defined _TNS_E_TARGET # ifdef __cplusplus extern "C" # endif void *_alloca (unsigned short); # pragma intrinsic (_alloca) # define alloca _alloca # elif defined __MVS__ # include # else # include # ifdef __cplusplus extern "C" # endif void *alloca (size_t); # endif #endif #endif /* _GL_ALLOCA_H */ shishi-1.0.3/src/gl/errno.in.h0000644000000000000000000001644714273615074013012 00000000000000/* A POSIX-like . Copyright (C) 2008-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_ERRNO_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_ERRNO_H@ #ifndef _@GUARD_PREFIX@_ERRNO_H #define _@GUARD_PREFIX@_ERRNO_H /* On native Windows platforms, many macros are not defined. */ # if defined _WIN32 && ! defined __CYGWIN__ /* These are the same values as defined by MSVC 10, for interoperability. */ # ifndef ENOMSG # define ENOMSG 122 # define GNULIB_defined_ENOMSG 1 # endif # ifndef EIDRM # define EIDRM 111 # define GNULIB_defined_EIDRM 1 # endif # ifndef ENOLINK # define ENOLINK 121 # define GNULIB_defined_ENOLINK 1 # endif # ifndef EPROTO # define EPROTO 134 # define GNULIB_defined_EPROTO 1 # endif # ifndef EBADMSG # define EBADMSG 104 # define GNULIB_defined_EBADMSG 1 # endif # ifndef EOVERFLOW # define EOVERFLOW 132 # define GNULIB_defined_EOVERFLOW 1 # endif # ifndef ENOTSUP # define ENOTSUP 129 # define GNULIB_defined_ENOTSUP 1 # endif # ifndef ENETRESET # define ENETRESET 117 # define GNULIB_defined_ENETRESET 1 # endif # ifndef ECONNABORTED # define ECONNABORTED 106 # define GNULIB_defined_ECONNABORTED 1 # endif # ifndef ECANCELED # define ECANCELED 105 # define GNULIB_defined_ECANCELED 1 # endif # ifndef EOWNERDEAD # define EOWNERDEAD 133 # define GNULIB_defined_EOWNERDEAD 1 # endif # ifndef ENOTRECOVERABLE # define ENOTRECOVERABLE 127 # define GNULIB_defined_ENOTRECOVERABLE 1 # endif # ifndef EINPROGRESS # define EINPROGRESS 112 # define EALREADY 103 # define ENOTSOCK 128 # define EDESTADDRREQ 109 # define EMSGSIZE 115 # define EPROTOTYPE 136 # define ENOPROTOOPT 123 # define EPROTONOSUPPORT 135 # define EOPNOTSUPP 130 # define EAFNOSUPPORT 102 # define EADDRINUSE 100 # define EADDRNOTAVAIL 101 # define ENETDOWN 116 # define ENETUNREACH 118 # define ECONNRESET 108 # define ENOBUFS 119 # define EISCONN 113 # define ENOTCONN 126 # define ETIMEDOUT 138 # define ECONNREFUSED 107 # define ELOOP 114 # define EHOSTUNREACH 110 # define EWOULDBLOCK 140 # define GNULIB_defined_ESOCK 1 # endif # ifndef ETXTBSY # define ETXTBSY 139 # define ENODATA 120 /* not required by POSIX */ # define ENOSR 124 /* not required by POSIX */ # define ENOSTR 125 /* not required by POSIX */ # define ETIME 137 /* not required by POSIX */ # define EOTHER 131 /* not required by POSIX */ # define GNULIB_defined_ESTREAMS 1 # endif /* These are intentionally the same values as the WSA* error numbers, defined in . */ # define ESOCKTNOSUPPORT 10044 /* not required by POSIX */ # define EPFNOSUPPORT 10046 /* not required by POSIX */ # define ESHUTDOWN 10058 /* not required by POSIX */ # define ETOOMANYREFS 10059 /* not required by POSIX */ # define EHOSTDOWN 10064 /* not required by POSIX */ # define EPROCLIM 10067 /* not required by POSIX */ # define EUSERS 10068 /* not required by POSIX */ # define EDQUOT 10069 # define ESTALE 10070 # define EREMOTE 10071 /* not required by POSIX */ # define GNULIB_defined_EWINSOCK 1 # endif /* On OSF/1 5.1, when _XOPEN_SOURCE_EXTENDED is not defined, the macros EMULTIHOP, ENOLINK, EOVERFLOW are not defined. */ # if @EMULTIHOP_HIDDEN@ # define EMULTIHOP @EMULTIHOP_VALUE@ # define GNULIB_defined_EMULTIHOP 1 # endif # if @ENOLINK_HIDDEN@ # define ENOLINK @ENOLINK_VALUE@ # define GNULIB_defined_ENOLINK 1 # endif # if @EOVERFLOW_HIDDEN@ # define EOVERFLOW @EOVERFLOW_VALUE@ # define GNULIB_defined_EOVERFLOW 1 # endif /* On OpenBSD 4.0 and on native Windows, the macros ENOMSG, EIDRM, ENOLINK, EPROTO, EMULTIHOP, EBADMSG, EOVERFLOW, ENOTSUP, ECANCELED are not defined. Likewise, on NonStop Kernel, EDQUOT is not defined. Define them here. Values >= 2000 seem safe to use: Solaris ESTALE = 151, HP-UX EWOULDBLOCK = 246, IRIX EDQUOT = 1133. Note: When one of these systems defines some of these macros some day, binaries will have to be recompiled so that they recognizes the new errno values from the system. */ # ifndef ENOMSG # define ENOMSG 2000 # define GNULIB_defined_ENOMSG 1 # endif # ifndef EIDRM # define EIDRM 2001 # define GNULIB_defined_EIDRM 1 # endif # ifndef ENOLINK # define ENOLINK 2002 # define GNULIB_defined_ENOLINK 1 # endif # ifndef EPROTO # define EPROTO 2003 # define GNULIB_defined_EPROTO 1 # endif # ifndef EMULTIHOP # define EMULTIHOP 2004 # define GNULIB_defined_EMULTIHOP 1 # endif # ifndef EBADMSG # define EBADMSG 2005 # define GNULIB_defined_EBADMSG 1 # endif # ifndef EOVERFLOW # define EOVERFLOW 2006 # define GNULIB_defined_EOVERFLOW 1 # endif # ifndef ENOTSUP # define ENOTSUP 2007 # define GNULIB_defined_ENOTSUP 1 # endif # ifndef ENETRESET # define ENETRESET 2011 # define GNULIB_defined_ENETRESET 1 # endif # ifndef ECONNABORTED # define ECONNABORTED 2012 # define GNULIB_defined_ECONNABORTED 1 # endif # ifndef ESTALE # define ESTALE 2009 # define GNULIB_defined_ESTALE 1 # endif # ifndef EDQUOT # define EDQUOT 2010 # define GNULIB_defined_EDQUOT 1 # endif # ifndef ECANCELED # define ECANCELED 2008 # define GNULIB_defined_ECANCELED 1 # endif /* On many platforms, the macros EOWNERDEAD and ENOTRECOVERABLE are not defined. */ # ifndef EOWNERDEAD # if defined __sun /* Use the same values as defined for Solaris >= 8, for interoperability. */ # define EOWNERDEAD 58 # define ENOTRECOVERABLE 59 # elif defined _WIN32 && ! defined __CYGWIN__ /* We have a conflict here: pthreads-win32 defines these values differently than MSVC 10. It's hairy to decide which one to use. */ # if defined __MINGW32__ && !defined USE_WINDOWS_THREADS /* Use the same values as defined by pthreads-win32, for interoperability. */ # define EOWNERDEAD 43 # define ENOTRECOVERABLE 44 # else /* Use the same values as defined by MSVC 10, for interoperability. */ # define EOWNERDEAD 133 # define ENOTRECOVERABLE 127 # endif # else # define EOWNERDEAD 2013 # define ENOTRECOVERABLE 2014 # endif # define GNULIB_defined_EOWNERDEAD 1 # define GNULIB_defined_ENOTRECOVERABLE 1 # endif # ifndef EILSEQ # define EILSEQ 2015 # define GNULIB_defined_EILSEQ 1 # endif #endif /* _@GUARD_PREFIX@_ERRNO_H */ #endif /* _@GUARD_PREFIX@_ERRNO_H */ shishi-1.0.3/src/gl/intprops.h0000644000000000000000000007101014273615074013121 00000000000000/* intprops.h -- properties of integer types Copyright (C) 2001-2022 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_INTPROPS_H #define _GL_INTPROPS_H #include /* Return a value with the common real type of E and V and the value of V. Do not evaluate E. */ #define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v)) /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see . */ #define _GL_INT_NEGATE_CONVERT(e, v) ((1 ? 0 : (e)) - (v)) /* The extra casts in the following macros work around compiler bugs, e.g., in Cray C 5.0.3.0. */ /* True if the arithmetic type T is an integer type. bool counts as an integer. */ #define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) /* True if the real type T is signed. */ #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) /* Return 1 if the real expression E, after promotion, has a signed or floating type. Do not evaluate E. */ #define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) /* Minimum and maximum values for integer types and expressions. */ /* The width in bits of the integer type or expression T. Do not evaluate T. T must not be a bit-field expression. Padding bits are not supported; this is checked at compile-time below. */ #define TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT) /* The maximum and minimum values for the integer type T. */ #define TYPE_MINIMUM(t) ((t) ~ TYPE_MAXIMUM (t)) #define TYPE_MAXIMUM(t) \ ((t) (! TYPE_SIGNED (t) \ ? (t) -1 \ : ((((t) 1 << (TYPE_WIDTH (t) - 2)) - 1) * 2 + 1))) /* The maximum and minimum values for the type of the expression E, after integer promotion. E is not evaluated. */ #define _GL_INT_MINIMUM(e) \ (EXPR_SIGNED (e) \ ? ~ _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_CONVERT (e, 0)) #define _GL_INT_MAXIMUM(e) \ (EXPR_SIGNED (e) \ ? _GL_SIGNED_INT_MAXIMUM (e) \ : _GL_INT_NEGATE_CONVERT (e, 1)) #define _GL_SIGNED_INT_MAXIMUM(e) \ (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1) /* Work around OpenVMS incompatibility with C99. */ #if !defined LLONG_MAX && defined __INT64_MAX # define LLONG_MAX __INT64_MAX # define LLONG_MIN __INT64_MIN #endif /* This include file assumes that signed types are two's complement without padding bits; the above macros have undefined behavior otherwise. If this is a problem for you, please let us know how to fix it for your host. This assumption is tested by the intprops-tests module. */ /* Does the __typeof__ keyword work? This could be done by 'configure', but for now it's easier to do it by hand. */ #if (2 <= __GNUC__ \ || (4 <= __clang_major__) \ || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \ || (0x5110 <= __SUNPRO_C && !__STDC__)) # define _GL_HAVE___TYPEOF__ 1 #else # define _GL_HAVE___TYPEOF__ 0 #endif /* Return 1 if the integer type or expression T might be signed. Return 0 if it is definitely unsigned. T must not be a bit-field expression. This macro does not evaluate its argument, and expands to an integer constant expression. */ #if _GL_HAVE___TYPEOF__ # define _GL_SIGNED_TYPE_OR_EXPR(t) TYPE_SIGNED (__typeof__ (t)) #else # define _GL_SIGNED_TYPE_OR_EXPR(t) 1 #endif /* Bound on length of the string representing an unsigned integer value representable in B bits. log10 (2.0) < 146/485. The smallest value of B where this bound is not tight is 2621. */ #define INT_BITS_STRLEN_BOUND(b) (((b) * 146 + 484) / 485) /* Bound on length of the string representing an integer type or expression T. T must not be a bit-field expression. Subtract 1 for the sign bit if T is signed, and then add 1 more for a minus sign if needed. Because _GL_SIGNED_TYPE_OR_EXPR sometimes returns 1 when its argument is unsigned, this macro may overestimate the true bound by one byte when applied to unsigned types of size 2, 4, 16, ... bytes. */ #define INT_STRLEN_BOUND(t) \ (INT_BITS_STRLEN_BOUND (TYPE_WIDTH (t) - _GL_SIGNED_TYPE_OR_EXPR (t)) \ + _GL_SIGNED_TYPE_OR_EXPR (t)) /* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. T must not be a bit-field expression. */ #define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) /* Range overflow checks. The INT__RANGE_OVERFLOW macros return 1 if the corresponding C operators might not yield numerically correct answers due to arithmetic overflow. They do not rely on undefined or implementation-defined behavior. Their implementations are simple and straightforward, but they are harder to use and may be less efficient than the INT__WRAPV, INT__OK, and INT__OVERFLOW macros described below. Example usage: long int i = ...; long int j = ...; if (INT_MULTIPLY_RANGE_OVERFLOW (i, j, LONG_MIN, LONG_MAX)) printf ("multiply would overflow"); else printf ("product is %ld", i * j); Restrictions on *_RANGE_OVERFLOW macros: These macros do not check for all possible numerical problems or undefined or unspecified behavior: they do not check for division by zero, for bad shift counts, or for shifting negative numbers. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. The arithmetic arguments (including the MIN and MAX arguments) must be of the same integer type after the usual arithmetic conversions, and the type must have minimum value MIN and maximum MAX. Unsigned types should use a zero MIN of the proper type. Because all arguments are subject to integer promotions, these macros typically do not work on types narrower than 'int'. These macros are tuned for constant MIN and MAX. For commutative operations such as A + B, they are also tuned for constant B. */ /* Return 1 if A + B would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? (a) < (min) - (b) \ : (max) - (b) < (a)) /* Return 1 if A - B would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? (max) + (b) < (a) \ : (a) < (min) + (b)) /* Return 1 if - A would overflow in [MIN,MAX] arithmetic. See above for restrictions. */ #define INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ ((min) < 0 \ ? (a) < - (max) \ : 0 < (a)) /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Avoid && and || as they tickle bugs in Sun C 5.11 2010/08/13 and other compilers; see . */ #define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ ((b) < 0 \ ? ((a) < 0 \ ? (a) < (max) / (b) \ : (b) == -1 \ ? 0 \ : (min) / (b) < (a)) \ : (b) == 0 \ ? 0 \ : ((a) < 0 \ ? (a) < (min) / (b) \ : (max) / (b) < (a))) /* Return 1 if A / B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Do not check for division by zero. */ #define INT_DIVIDE_RANGE_OVERFLOW(a, b, min, max) \ ((min) < 0 && (b) == -1 && (a) < - (max)) /* Return 1 if A % B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Do not check for division by zero. Mathematically, % should never overflow, but on x86-like hosts INT_MIN % -1 traps, and the C standard permits this, so treat this as an overflow too. */ #define INT_REMAINDER_RANGE_OVERFLOW(a, b, min, max) \ INT_DIVIDE_RANGE_OVERFLOW (a, b, min, max) /* Return 1 if A << B would overflow in [MIN,MAX] arithmetic. See above for restrictions. Here, MIN and MAX are for A only, and B need not be of the same type as the other arguments. The C standard says that behavior is undefined for shifts unless 0 <= B < wordwidth, and that when A is negative then A << B has undefined behavior and A >> B has implementation-defined behavior, but do not check these other restrictions. */ #define INT_LEFT_SHIFT_RANGE_OVERFLOW(a, b, min, max) \ ((a) < 0 \ ? (a) < (min) >> (b) \ : (max) >> (b) < (a)) /* True if __builtin_add_overflow (A, B, P) and __builtin_sub_overflow (A, B, P) work when P is non-null. */ #ifdef __EDG__ /* EDG-based compilers like nvc 22.1 cannot add 64-bit signed to unsigned . */ # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 #elif defined __has_builtin # define _GL_HAS_BUILTIN_ADD_OVERFLOW __has_builtin (__builtin_add_overflow) /* __builtin_{add,sub}_overflow exists but is not reliable in GCC 5.x and 6.x, see . */ #elif 7 <= __GNUC__ # define _GL_HAS_BUILTIN_ADD_OVERFLOW 1 #else # define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 #endif /* True if __builtin_mul_overflow (A, B, P) works when P is non-null. */ #if defined __clang_major__ && __clang_major__ < 14 /* Work around Clang bug . */ # define _GL_HAS_BUILTIN_MUL_OVERFLOW 0 #else # define _GL_HAS_BUILTIN_MUL_OVERFLOW _GL_HAS_BUILTIN_ADD_OVERFLOW #endif /* True if __builtin_add_overflow_p (A, B, C) works, and similarly for __builtin_sub_overflow_p and __builtin_mul_overflow_p. */ #ifdef __EDG__ /* In EDG-based compilers like ICC 2021.3 and earlier, __builtin_add_overflow_p etc. are not treated as integral constant expressions even when all arguments are. */ # define _GL_HAS_BUILTIN_OVERFLOW_P 0 #elif defined __has_builtin # define _GL_HAS_BUILTIN_OVERFLOW_P __has_builtin (__builtin_mul_overflow_p) #else # define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__) #endif /* The _GL*_OVERFLOW macros have the same restrictions as the *_RANGE_OVERFLOW macros, except that they do not assume that operands (e.g., A and B) have the same type as MIN and MAX. Instead, they assume that the result (e.g., A + B) has that type. */ #if _GL_HAS_BUILTIN_OVERFLOW_P # define _GL_ADD_OVERFLOW(a, b, min, max) \ __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0) # define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ __builtin_sub_overflow_p (a, b, (__typeof__ ((a) - (b))) 0) # define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ __builtin_mul_overflow_p (a, b, (__typeof__ ((a) * (b))) 0) #else # define _GL_ADD_OVERFLOW(a, b, min, max) \ ((min) < 0 ? INT_ADD_RANGE_OVERFLOW (a, b, min, max) \ : (a) < 0 ? (b) <= (a) + (b) \ : (b) < 0 ? (a) <= (a) + (b) \ : (a) + (b) < (b)) # define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ ((min) < 0 ? INT_SUBTRACT_RANGE_OVERFLOW (a, b, min, max) \ : (a) < 0 ? 1 \ : (b) < 0 ? (a) - (b) <= (a) \ : (a) < (b)) # define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ (((min) == 0 && (((a) < 0 && 0 < (b)) || ((b) < 0 && 0 < (a)))) \ || INT_MULTIPLY_RANGE_OVERFLOW (a, b, min, max)) #endif #define _GL_DIVIDE_OVERFLOW(a, b, min, max) \ ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ : (a) < 0 ? (b) <= (a) + (b) - 1 \ : (b) < 0 && (a) + (b) <= (a)) #define _GL_REMAINDER_OVERFLOW(a, b, min, max) \ ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ : (a) < 0 ? (a) % (b) != ((max) - (b) + 1) % (b) \ : (b) < 0 && ! _GL_UNSIGNED_NEG_MULTIPLE (a, b, max)) /* Return a nonzero value if A is a mathematical multiple of B, where A is unsigned, B is negative, and MAX is the maximum value of A's type. A's type must be the same as (A % B)'s type. Normally (A % -B == 0) suffices, but things get tricky if -B would overflow. */ #define _GL_UNSIGNED_NEG_MULTIPLE(a, b, max) \ (((b) < -_GL_SIGNED_INT_MAXIMUM (b) \ ? (_GL_SIGNED_INT_MAXIMUM (b) == (max) \ ? (a) \ : (a) % (_GL_INT_CONVERT (a, _GL_SIGNED_INT_MAXIMUM (b)) + 1)) \ : (a) % - (b)) \ == 0) /* Check for integer overflow, and report low order bits of answer. The INT__OVERFLOW macros return 1 if the corresponding C operators might not yield numerically correct answers due to arithmetic overflow. The INT__WRAPV macros compute the low-order bits of the sum, difference, and product of two C integers, and return 1 if these low-order bits are not numerically correct. These macros work correctly on all known practical hosts, and do not rely on undefined behavior due to signed arithmetic overflow. Example usage, assuming A and B are long int: if (INT_MULTIPLY_OVERFLOW (a, b)) printf ("result would overflow\n"); else printf ("result is %ld (no overflow)\n", a * b); Example usage with WRAPV flavor: long int result; bool overflow = INT_MULTIPLY_WRAPV (a, b, &result); printf ("result is %ld (%s)\n", result, overflow ? "after overflow" : "no overflow"); Restrictions on these macros: These macros do not check for all possible numerical problems or undefined or unspecified behavior: they do not check for division by zero, for bad shift counts, or for shifting negative numbers. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. The WRAPV macros are not constant expressions. They support only +, binary -, and *. Because the WRAPV macros convert the result, they report overflow in different circumstances than the OVERFLOW macros do. For example, in the typical case with 16-bit 'short' and 32-bit 'int', if A, B and R are all of type 'short' then INT_ADD_OVERFLOW (A, B) returns false because the addition cannot overflow after A and B are converted to 'int', whereas INT_ADD_WRAPV (A, B, &R) returns true or false depending on whether the sum fits into 'short'. These macros are tuned for their last input argument being a constant. Return 1 if the integer expressions A * B, A - B, -A, A * B, A / B, A % B, and A << B would overflow, respectively. */ #define INT_ADD_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_ADD_OVERFLOW) #define INT_SUBTRACT_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_SUBTRACT_OVERFLOW) #if _GL_HAS_BUILTIN_OVERFLOW_P # define INT_NEGATE_OVERFLOW(a) INT_SUBTRACT_OVERFLOW (0, a) #else # define INT_NEGATE_OVERFLOW(a) \ INT_NEGATE_RANGE_OVERFLOW (a, _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) #endif #define INT_MULTIPLY_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_MULTIPLY_OVERFLOW) #define INT_DIVIDE_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_DIVIDE_OVERFLOW) #define INT_REMAINDER_OVERFLOW(a, b) \ _GL_BINARY_OP_OVERFLOW (a, b, _GL_REMAINDER_OVERFLOW) #define INT_LEFT_SHIFT_OVERFLOW(a, b) \ INT_LEFT_SHIFT_RANGE_OVERFLOW (a, b, \ _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) /* Return 1 if the expression A B would overflow, where OP_RESULT_OVERFLOW (A, B, MIN, MAX) does the actual test, assuming MIN and MAX are the minimum and maximum for the result type. Arguments should be free of side effects. */ #define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ op_result_overflow (a, b, \ _GL_INT_MINIMUM (_GL_INT_CONVERT (a, b)), \ _GL_INT_MAXIMUM (_GL_INT_CONVERT (a, b))) /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. Return 1 if the result overflows. See above for restrictions. */ #if _GL_HAS_BUILTIN_ADD_OVERFLOW # define INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r) # define INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r) #else # define INT_ADD_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW) # define INT_SUBTRACT_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) #endif #if _GL_HAS_BUILTIN_MUL_OVERFLOW # if ((9 < __GNUC__ + (3 <= __GNUC_MINOR__) \ || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) \ && !defined __EDG__) # define INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r) # else /* Work around GCC bug 91450. */ # define INT_MULTIPLY_WRAPV(a, b, r) \ ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && EXPR_SIGNED (a) && EXPR_SIGNED (b) \ && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \ ? ((void) __builtin_mul_overflow (a, b, r), 1) \ : __builtin_mul_overflow (a, b, r)) # endif #else # define INT_MULTIPLY_WRAPV(a, b, r) \ _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW) #endif /* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 https://llvm.org/bugs/show_bug.cgi?id=25390 For now, assume all versions of GCC-like compilers generate bogus warnings for _Generic. This matters only for compilers that lack relevant builtins. */ #if __GNUC__ || defined __clang__ # define _GL__GENERIC_BOGUS 1 #else # define _GL__GENERIC_BOGUS 0 #endif /* Store the low-order bits of A B into *R, where OP specifies the operation and OVERFLOW the overflow predicate. Return 1 if the result overflows. See above for restrictions. */ #if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ (_Generic \ (*(r), \ signed char: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ signed char, SCHAR_MIN, SCHAR_MAX), \ unsigned char: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned char, 0, UCHAR_MAX), \ short int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ short int, SHRT_MIN, SHRT_MAX), \ unsigned short int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned short int, 0, USHRT_MAX), \ int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ int, INT_MIN, INT_MAX), \ unsigned int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned int, 0, UINT_MAX), \ long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX), \ unsigned long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX), \ long long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ long long int, LLONG_MIN, LLONG_MAX), \ unsigned long long int: \ _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ unsigned long long int, 0, ULLONG_MAX))) #else /* Store the low-order bits of A B into *R, where OP specifies the operation and OVERFLOW the overflow predicate. If *R is signed, its type is ST with bounds SMIN..SMAX; otherwise its type is UT with bounds U..UMAX. ST and UT are narrower than int. Return 1 if the result overflows. See above for restrictions. */ # if _GL_HAVE___TYPEOF__ # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ (TYPE_SIGNED (__typeof__ (*(r))) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax)) # else # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ (overflow (a, b, smin, smax) \ ? (overflow (a, b, 0, umax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \ : (overflow (a, b, 0, umax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0))) # endif # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ (sizeof *(r) == sizeof (signed char) \ ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ signed char, SCHAR_MIN, SCHAR_MAX, \ unsigned char, UCHAR_MAX) \ : sizeof *(r) == sizeof (short int) \ ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ short int, SHRT_MIN, SHRT_MAX, \ unsigned short int, USHRT_MAX) \ : sizeof *(r) == sizeof (int) \ ? (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ int, INT_MIN, INT_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ unsigned int, 0, UINT_MAX)) \ : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) # ifdef LLONG_MAX # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ (sizeof *(r) == sizeof (long int) \ ? (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX)) \ : (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ long long int, LLONG_MIN, LLONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ unsigned long long int, 0, ULLONG_MAX))) # else # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ (EXPR_SIGNED (*(r)) \ ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ long int, LONG_MIN, LONG_MAX) \ : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ unsigned long int, 0, ULONG_MAX)) # endif #endif /* Store the low-order bits of A B into *R, where the operation is given by OP. Use the unsigned type UT for calculation to avoid overflow problems. *R's type is T, with extrema TMIN and TMAX. T must be a signed integer type. Return 1 if the result overflows. */ #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ (overflow (a, b, tmin, tmax) \ ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \ : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0)) /* Return the low-order bits of A B, where the operation is given by OP. Use the unsigned type UT for calculation to avoid undefined behavior on signed integer overflow, and convert the result to type T. UT is at least as wide as T and is no narrower than unsigned int, T is two's complement, and there is no padding or trap representations. Assume that converting UT to T yields the low-order bits, as is done in all known two's-complement C compilers. E.g., see: https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html According to the C standard, converting UT to T yields an implementation-defined result or signal for values outside T's range. However, code that works around this theoretical problem runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: https://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html As the compiler bug is real, don't try to work around the theoretical problem. */ #define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \ ((t) ((ut) (a) op (ut) (b))) /* Return true if the numeric values A + B, A - B, A * B fall outside the range TMIN..TMAX. Arguments should be integer expressions without side effects. TMIN should be signed and nonpositive. TMAX should be positive, and should be signed unless TMIN is zero. */ #define _GL_INT_ADD_RANGE_OVERFLOW(a, b, tmin, tmax) \ ((b) < 0 \ ? (((tmin) \ ? ((EXPR_SIGNED (_GL_INT_CONVERT (a, (tmin) - (b))) || (b) < (tmin)) \ && (a) < (tmin) - (b)) \ : (a) <= -1 - (b)) \ || ((EXPR_SIGNED (a) ? 0 <= (a) : (tmax) < (a)) && (tmax) < (a) + (b))) \ : (a) < 0 \ ? (((tmin) \ ? ((EXPR_SIGNED (_GL_INT_CONVERT (b, (tmin) - (a))) || (a) < (tmin)) \ && (b) < (tmin) - (a)) \ : (b) <= -1 - (a)) \ || ((EXPR_SIGNED (_GL_INT_CONVERT (a, b)) || (tmax) < (b)) \ && (tmax) < (a) + (b))) \ : (tmax) < (b) || (tmax) - (b) < (a)) #define _GL_INT_SUBTRACT_RANGE_OVERFLOW(a, b, tmin, tmax) \ (((a) < 0) == ((b) < 0) \ ? ((a) < (b) \ ? !(tmin) || -1 - (tmin) < (b) - (a) - 1 \ : (tmax) < (a) - (b)) \ : (a) < 0 \ ? ((!EXPR_SIGNED (_GL_INT_CONVERT ((a) - (tmin), b)) && (a) - (tmin) < 0) \ || (a) - (tmin) < (b)) \ : ((! (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ && EXPR_SIGNED (_GL_INT_CONVERT ((tmax) + (b), a))) \ && (tmax) <= -1 - (b)) \ || (tmax) + (b) < (a))) #define _GL_INT_MULTIPLY_RANGE_OVERFLOW(a, b, tmin, tmax) \ ((b) < 0 \ ? ((a) < 0 \ ? (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ ? (a) < (tmax) / (b) \ : ((INT_NEGATE_OVERFLOW (b) \ ? _GL_INT_CONVERT (b, tmax) >> (TYPE_WIDTH (+ (b)) - 1) \ : (tmax) / -(b)) \ <= -1 - (a))) \ : INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (b, tmin)) && (b) == -1 \ ? (EXPR_SIGNED (a) \ ? 0 < (a) + (tmin) \ : 0 < (a) && -1 - (tmin) < (a) - 1) \ : (tmin) / (b) < (a)) \ : (b) == 0 \ ? 0 \ : ((a) < 0 \ ? (INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (a, tmin)) && (a) == -1 \ ? (EXPR_SIGNED (b) ? 0 < (b) + (tmin) : -1 - (tmin) < (b) - 1) \ : (tmin) / (a) < (b)) \ : (tmax) / (b) < (a))) /* The following macros compute A + B, A - B, and A * B, respectively. If no overflow occurs, they set *R to the result and return 1; otherwise, they return 0 and may modify *R. Example usage: long int result; if (INT_ADD_OK (a, b, &result)) printf ("result is %ld\n", result); else printf ("overflow\n"); A, B, and *R should be integers; they need not be the same type, and they need not be all signed or all unsigned. These macros work correctly on all known practical hosts, and do not rely on undefined behavior due to signed arithmetic overflow. These macros are not constant expressions. These macros may evaluate their arguments zero or multiple times, so the arguments should not have side effects. These macros are tuned for B being a constant. */ #define INT_ADD_OK(a, b, r) ! INT_ADD_WRAPV (a, b, r) #define INT_SUBTRACT_OK(a, b, r) ! INT_SUBTRACT_WRAPV (a, b, r) #define INT_MULTIPLY_OK(a, b, r) ! INT_MULTIPLY_WRAPV (a, b, r) #endif /* _GL_INTPROPS_H */ shishi-1.0.3/src/gl/malloca.h0000644000000000000000000001077314273615075012665 00000000000000/* Safe automatic memory allocation. Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _MALLOCA_H #define _MALLOCA_H #include #include #include #include #include "xalloc-oversized.h" #ifdef __cplusplus extern "C" { #endif /* safe_alloca(N) is equivalent to alloca(N) when it is safe to call alloca(N); otherwise it returns NULL. It either returns N bytes of memory allocated on the stack, that lasts until the function returns, or NULL. Use of safe_alloca should be avoided: - inside arguments of function calls - undefined behaviour, - in inline functions - the allocation may actually last until the calling function returns. */ #if HAVE_ALLOCA /* The OS usually guarantees only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely allocate anything larger than 4096 bytes. Also care for the possibility of a few compiler-allocated temporary stack slots. This must be a macro, not a function. */ # define safe_alloca(N) ((N) < 4032 ? alloca (N) : NULL) #else # define safe_alloca(N) ((void) (N), NULL) #endif /* Free a block of memory allocated through malloca(). */ #if HAVE_ALLOCA extern void freea (void *p); #else # define freea free #endif /* malloca(N) is a safe variant of alloca(N). It allocates N bytes of memory allocated on the stack, that must be freed using freea() before the function returns. Upon failure, it returns NULL. */ #if HAVE_ALLOCA # define malloca(N) \ ((N) < 4032 - (2 * sa_alignment_max - 1) \ ? (void *) (((uintptr_t) (char *) alloca ((N) + 2 * sa_alignment_max - 1) \ + (2 * sa_alignment_max - 1)) \ & ~(uintptr_t)(2 * sa_alignment_max - 1)) \ : mmalloca (N)) #else # define malloca(N) \ mmalloca (N) #endif extern void *mmalloca (size_t n) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (freea, 1) _GL_ATTRIBUTE_ALLOC_SIZE ((1)); /* nmalloca(N,S) is an overflow-safe variant of malloca (N * S). It allocates an array of N objects, each with S bytes of memory, on the stack. N and S should be nonnegative and free of side effects. The array must be freed using freea() before the function returns. */ #define nmalloca(n, s) \ (xalloc_oversized (n, s) ? NULL : malloca ((n) * (size_t) (s))) #ifdef __cplusplus } #endif /* ------------------- Auxiliary, non-public definitions ------------------- */ /* Determine the alignment of a type at compile time. */ #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ # define sa_alignof __alignof__ #elif defined __cplusplus template struct sa_alignof_helper { char __slot1; type __slot2; }; # define sa_alignof(type) offsetof (sa_alignof_helper, __slot2) #elif defined __hpux /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #elif defined _AIX /* Work around an AIX 3.2.5 xlc bug with enums constants defined as offsetof values. */ # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8) #else # define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; }, __slot2) #endif enum { /* The desired alignment of memory allocations is the maximum alignment among all elementary types. */ sa_alignment_long = sa_alignof (long), sa_alignment_double = sa_alignof (double), sa_alignment_longlong = sa_alignof (long long), sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1) | (sa_alignment_longlong - 1) | (sa_alignment_longdouble - 1) ) + 1 }; #endif /* _MALLOCA_H */ shishi-1.0.3/src/gl/locale.in.h0000644000000000000000000002370314273615074013115 00000000000000/* A POSIX . Copyright (C) 2007-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if (defined _WIN32 && !defined __CYGWIN__ && defined __need_locale_t) \ || defined _GL_ALREADY_INCLUDING_LOCALE_H /* Special invocation convention: - Inside mingw header files, - To handle Solaris header files (through Solaris 10) when combined with gettext's libintl.h. */ #@INCLUDE_NEXT@ @NEXT_LOCALE_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_LOCALE_H #define _GL_ALREADY_INCLUDING_LOCALE_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_LOCALE_H@ #undef _GL_ALREADY_INCLUDING_LOCALE_H #ifndef _@GUARD_PREFIX@_LOCALE_H #define _@GUARD_PREFIX@_LOCALE_H /* NetBSD 5.0 mis-defines NULL. */ #include /* Mac OS X 10.5 defines the locale_t type in . */ #if @HAVE_XLOCALE_H@ # include #endif /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C. On systems that don't define it, use the same value as GNU libintl. */ #if !defined LC_MESSAGES # define LC_MESSAGES 1729 #endif /* On native Windows with MSVC, 'struct lconv' lacks the members int_p_* and int_n_*. Instead of overriding 'struct lconv', merely define these member names as macros. This avoids trouble in C++ mode. */ #if defined _MSC_VER # define int_p_cs_precedes p_cs_precedes # define int_p_sign_posn p_sign_posn # define int_p_sep_by_space p_sep_by_space # define int_n_cs_precedes n_cs_precedes # define int_n_sign_posn n_sign_posn # define int_n_sep_by_space n_sep_by_space #endif /* Bionic libc's 'struct lconv' is just a dummy. */ #if @REPLACE_STRUCT_LCONV@ # define lconv rpl_lconv struct lconv { /* All 'char *' are actually 'const char *'. */ /* Members that depend on the LC_NUMERIC category of the locale. See */ /* Symbol used as decimal point. */ char *decimal_point; /* Symbol used to separate groups of digits to the left of the decimal point. */ char *thousands_sep; /* Definition of the size of groups of digits to the left of the decimal point. */ char *grouping; /* Members that depend on the LC_MONETARY category of the locale. See */ /* Symbol used as decimal point. */ char *mon_decimal_point; /* Symbol used to separate groups of digits to the left of the decimal point. */ char *mon_thousands_sep; /* Definition of the size of groups of digits to the left of the decimal point. */ char *mon_grouping; /* Sign used to indicate a value >= 0. */ char *positive_sign; /* Sign used to indicate a value < 0. */ char *negative_sign; /* For formatting local currency. */ /* Currency symbol (3 characters) followed by separator (1 character). */ char *currency_symbol; /* Number of digits after the decimal point. */ char frac_digits; /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it comes after the number. */ char p_cs_precedes; /* For values >= 0: Position of the sign. */ char p_sign_posn; /* For values >= 0: Placement of spaces between currency symbol, sign, and number. */ char p_sep_by_space; /* For values < 0: 1 if the currency symbol precedes the number, 0 if it comes after the number. */ char n_cs_precedes; /* For values < 0: Position of the sign. */ char n_sign_posn; /* For values < 0: Placement of spaces between currency symbol, sign, and number. */ char n_sep_by_space; /* For formatting international currency. */ /* Currency symbol (3 characters) followed by separator (1 character). */ char *int_curr_symbol; /* Number of digits after the decimal point. */ char int_frac_digits; /* For values >= 0: 1 if the currency symbol precedes the number, 0 if it comes after the number. */ char int_p_cs_precedes; /* For values >= 0: Position of the sign. */ char int_p_sign_posn; /* For values >= 0: Placement of spaces between currency symbol, sign, and number. */ char int_p_sep_by_space; /* For values < 0: 1 if the currency symbol precedes the number, 0 if it comes after the number. */ char int_n_cs_precedes; /* For values < 0: Position of the sign. */ char int_n_sign_posn; /* For values < 0: Placement of spaces between currency symbol, sign, and number. */ char int_n_sep_by_space; }; #endif #if @GNULIB_LOCALECONV@ # if @REPLACE_LOCALECONV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef localeconv # define localeconv rpl_localeconv # endif _GL_FUNCDECL_RPL (localeconv, struct lconv *, (void)); _GL_CXXALIAS_RPL (localeconv, struct lconv *, (void)); # else _GL_CXXALIAS_SYS (localeconv, struct lconv *, (void)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (localeconv); # endif #elif @REPLACE_STRUCT_LCONV@ # undef localeconv # define localeconv localeconv_used_without_requesting_gnulib_module_localeconv #elif defined GNULIB_POSIXCHECK # undef localeconv # if HAVE_RAW_DECL_LOCALECONV _GL_WARN_ON_USE (localeconv, "localeconv returns too few information on some platforms - " "use gnulib module localeconv for portability"); # endif #endif #if @GNULIB_SETLOCALE@ # if @REPLACE_SETLOCALE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setlocale # define setlocale rpl_setlocale # define GNULIB_defined_setlocale 1 # endif _GL_FUNCDECL_RPL (setlocale, char *, (int category, const char *locale)); _GL_CXXALIAS_RPL (setlocale, char *, (int category, const char *locale)); # else _GL_CXXALIAS_SYS (setlocale, char *, (int category, const char *locale)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (setlocale); # endif #elif defined GNULIB_POSIXCHECK # undef setlocale # if HAVE_RAW_DECL_SETLOCALE _GL_WARN_ON_USE (setlocale, "setlocale works differently on native Windows - " "use gnulib module setlocale for portability"); # endif #endif #if @GNULIB_SETLOCALE_NULL@ /* Included here for convenience. */ # include "setlocale_null.h" #endif #if /*@GNULIB_NEWLOCALE@ ||*/ (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_NEWLOCALE@) # if @REPLACE_NEWLOCALE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef newlocale # define newlocale rpl_newlocale # define GNULIB_defined_newlocale 1 # endif _GL_FUNCDECL_RPL (newlocale, locale_t, (int category_mask, const char *name, locale_t base) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (newlocale, locale_t, (int category_mask, const char *name, locale_t base)); # else # if @HAVE_NEWLOCALE@ _GL_CXXALIAS_SYS (newlocale, locale_t, (int category_mask, const char *name, locale_t base)); # endif # endif # if @HAVE_NEWLOCALE@ _GL_CXXALIASWARN (newlocale); # endif # if @HAVE_NEWLOCALE@ || @REPLACE_NEWLOCALE@ # ifndef HAVE_WORKING_NEWLOCALE # define HAVE_WORKING_NEWLOCALE 1 # endif # endif #elif defined GNULIB_POSIXCHECK # undef newlocale # if HAVE_RAW_DECL_NEWLOCALE _GL_WARN_ON_USE (newlocale, "newlocale is not portable"); # endif #endif #if @GNULIB_DUPLOCALE@ || (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_DUPLOCALE@) # if @REPLACE_DUPLOCALE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef duplocale # define duplocale rpl_duplocale # define GNULIB_defined_duplocale 1 # endif _GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale)); # else # if @HAVE_DUPLOCALE@ _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale)); # endif # endif # if @HAVE_DUPLOCALE@ _GL_CXXALIASWARN (duplocale); # endif # if @HAVE_DUPLOCALE@ || @REPLACE_DUPLOCALE@ # ifndef HAVE_WORKING_DUPLOCALE # define HAVE_WORKING_DUPLOCALE 1 # endif # endif #elif defined GNULIB_POSIXCHECK # undef duplocale # if HAVE_RAW_DECL_DUPLOCALE _GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - " "use gnulib module duplocale for portability"); # endif #endif #if /*@GNULIB_FREELOCALE@ ||*/ (@GNULIB_LOCALENAME@ && @LOCALENAME_ENHANCE_LOCALE_FUNCS@ && @HAVE_FREELOCALE@) # if @REPLACE_FREELOCALE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef freelocale # define freelocale rpl_freelocale # define GNULIB_defined_freelocale 1 # endif _GL_FUNCDECL_RPL (freelocale, void, (locale_t locale) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (freelocale, void, (locale_t locale)); # else # if @HAVE_FREELOCALE@ /* Need to cast, because on FreeBSD and Mac OS X 10.13, the return type is int. */ _GL_CXXALIAS_SYS_CAST (freelocale, void, (locale_t locale)); # endif # endif # if @HAVE_FREELOCALE@ _GL_CXXALIASWARN (freelocale); # endif #elif defined GNULIB_POSIXCHECK # undef freelocale # if HAVE_RAW_DECL_FREELOCALE _GL_WARN_ON_USE (freelocale, "freelocale is not portable"); # endif #endif #endif /* _@GUARD_PREFIX@_LOCALE_H */ #endif /* _@GUARD_PREFIX@_LOCALE_H */ #endif /* !(__need_locale_t || _GL_ALREADY_INCLUDING_LOCALE_H) */ shishi-1.0.3/src/gl/stdbool.in.h0000644000000000000000000001201114273615075013313 00000000000000/* Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _GL_STDBOOL_H #define _GL_STDBOOL_H /* ISO C 99 for platforms that lack it. */ /* Usage suggestions: Programs that use should be aware of some limitations and standards compliance issues. Standards compliance: - must be #included before 'bool', 'false', 'true' can be used. - You cannot assume that sizeof (bool) == 1. - Programs should not undefine the macros bool, true, and false, as C99 lists that as an "obsolescent feature". Limitations of this substitute, when used in a C89 environment: - must be #included before the '_Bool' type can be used. - You cannot assume that _Bool is a typedef; it might be a macro. - Bit-fields of type 'bool' are not supported. Portable code should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'. - In C99, casts and automatic conversions to '_Bool' or 'bool' are performed in such a way that every nonzero value gets converted to 'true', and zero gets converted to 'false'. This doesn't work with this substitute. With this substitute, only the values 0 and 1 give the expected result when converted to _Bool' or 'bool'. - C99 allows the use of (_Bool)0.0 in constant expressions, but this substitute cannot always provide this property. Also, it is suggested that programs use 'bool' rather than '_Bool'; this isn't required, but 'bool' is more common. */ /* 7.16. Boolean type and values */ /* BeOS already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ #if defined __BEOS__ && !defined __HAIKU__ # include /* defines bool but not _Bool */ # undef false # undef true #endif #ifdef __cplusplus # define _Bool bool # define bool bool #else # if defined __BEOS__ && !defined __HAIKU__ /* A compiler known to have 'bool'. */ /* If the compiler already has both 'bool' and '_Bool', we can assume they are the same types. */ # if !@HAVE__BOOL@ typedef bool _Bool; # endif # else # if !defined __GNUC__ /* If @HAVE__BOOL@: Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when the built-in _Bool type is used. See https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html https://lists.gnu.org/r/bug-coreutils/2005-10/msg00086.html Similar bugs are likely with other compilers as well; this file wouldn't be used if was working. So we override the _Bool type. If !@HAVE__BOOL@: Need to define _Bool ourselves. As 'signed char' or as an enum type? Use of a typedef, with SunPRO C, leads to a stupid "warning: _Bool is a keyword in ISO C99". Use of an enum type, with IRIX cc, leads to a stupid "warning(1185): enumerated type mixed with another type". Even the existence of an enum type, without a typedef, "Invalid enumerator. (badenum)" with HP-UX cc on Tru64. The only benefit of the enum, debuggability, is not important with these compilers. So use 'signed char' and no enum. */ # define _Bool signed char # else /* With this compiler, trust the _Bool type if the compiler has it. */ # if !@HAVE__BOOL@ /* For the sake of symbolic names in gdb, define true and false as enum constants, not only as macros. It is tempting to write typedef enum { false = 0, true = 1 } _Bool; so that gdb prints values of type 'bool' symbolically. But then values of type '_Bool' might promote to 'int' or 'unsigned int' (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; # endif # endif # endif # define bool _Bool #endif /* The other macros must be usable in preprocessor directives. */ #ifdef __cplusplus # define false false # define true true #else # define false 0 # define true 1 #endif #define __bool_true_false_are_defined 1 #endif /* _GL_STDBOOL_H */ shishi-1.0.3/src/gl/stat-time.h0000644000000000000000000001702414273615075013160 00000000000000/* stat-related time functions. Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ /* Written by Paul Eggert. */ #ifndef STAT_TIME_H #define STAT_TIME_H 1 #include "intprops.h" #include #include #include #include #ifndef _GL_INLINE_HEADER_BEGIN #error "Please include config.h first." #endif _GL_INLINE_HEADER_BEGIN #ifndef _GL_STAT_TIME_INLINE # define _GL_STAT_TIME_INLINE _GL_INLINE #endif #ifdef __cplusplus extern "C" { #endif /* STAT_TIMESPEC (ST, ST_XTIM) is the ST_XTIM member for *ST of type struct timespec, if available. If not, then STAT_TIMESPEC_NS (ST, ST_XTIM) is the nanosecond component of the ST_XTIM member for *ST, if available. ST_XTIM can be st_atim, st_ctim, st_mtim, or st_birthtim for access, status change, data modification, or birth (creation) time respectively. These macros are private to stat-time.h. */ #if _GL_WINDOWS_STAT_TIMESPEC || defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC # if _GL_WINDOWS_STAT_TIMESPEC || defined TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim) # else # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.tv_nsec) # endif #elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim##espec) #elif defined HAVE_STRUCT_STAT_ST_ATIMENSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim##ensec) #elif defined HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC # define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.st__tim.tv_nsec) #endif /* Return the nanosecond component of *ST's access time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_atime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_atim); # else return 0; # endif } /* Return the nanosecond component of *ST's status change time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_ctime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_ctim); # else return 0; # endif } /* Return the nanosecond component of *ST's data modification time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_mtime_ns (struct stat const *st) { # if defined STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim).tv_nsec; # elif defined STAT_TIMESPEC_NS return STAT_TIMESPEC_NS (st, st_mtim); # else return 0; # endif } /* Return the nanosecond component of *ST's birth time. */ _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE get_stat_birthtime_ns (_GL_UNUSED struct stat const *st) { # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC return STAT_TIMESPEC (st, st_birthtim).tv_nsec; # elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC return STAT_TIMESPEC_NS (st, st_birthtim); # else return 0; # endif } /* Return *ST's access time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_atime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_atim); #else struct timespec t; t.tv_sec = st->st_atime; t.tv_nsec = get_stat_atime_ns (st); return t; #endif } /* Return *ST's status change time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_ctime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_ctim); #else struct timespec t; t.tv_sec = st->st_ctime; t.tv_nsec = get_stat_ctime_ns (st); return t; #endif } /* Return *ST's data modification time. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_mtime (struct stat const *st) { #ifdef STAT_TIMESPEC return STAT_TIMESPEC (st, st_mtim); #else struct timespec t; t.tv_sec = st->st_mtime; t.tv_nsec = get_stat_mtime_ns (st); return t; #endif } /* Return *ST's birth time, if available; otherwise return a value with tv_sec and tv_nsec both equal to -1. */ _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE get_stat_birthtime (_GL_UNUSED struct stat const *st) { struct timespec t; #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC) t = STAT_TIMESPEC (st, st_birthtim); #elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC t.tv_sec = st->st_birthtime; t.tv_nsec = st->st_birthtimensec; #elif defined _WIN32 && ! defined __CYGWIN__ /* Native Windows platforms (but not Cygwin) put the "file creation time" in st_ctime (!). See . */ # if _GL_WINDOWS_STAT_TIMESPEC t = st->st_ctim; # else t.tv_sec = st->st_ctime; t.tv_nsec = 0; # endif #else /* Birth time is not supported. */ t.tv_sec = -1; t.tv_nsec = -1; #endif #if (defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC \ || defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC) /* FreeBSD and NetBSD sometimes signal the absence of knowledge by using zero. Attempt to work around this problem. Alas, this can report failure even for valid timestamps. Also, NetBSD sometimes returns junk in the birth time fields; work around this bug if it is detected. */ if (! (t.tv_sec && 0 <= t.tv_nsec && t.tv_nsec < 1000000000)) { t.tv_sec = -1; t.tv_nsec = -1; } #endif return t; } /* If a stat-like function returned RESULT, normalize the timestamps in *ST, in case this platform suffers from the Solaris 11 bug where tv_nsec might be negative. Return the adjusted RESULT, setting errno to EOVERFLOW if normalization overflowed. This function is intended to be private to this .h file. */ _GL_STAT_TIME_INLINE int stat_time_normalize (int result, _GL_UNUSED struct stat *st) { #if defined __sun && defined STAT_TIMESPEC if (result == 0) { long int timespec_hz = 1000000000; short int const ts_off[] = { offsetof (struct stat, st_atim), offsetof (struct stat, st_mtim), offsetof (struct stat, st_ctim) }; int i; for (i = 0; i < sizeof ts_off / sizeof *ts_off; i++) { struct timespec *ts = (struct timespec *) ((char *) st + ts_off[i]); long int q = ts->tv_nsec / timespec_hz; long int r = ts->tv_nsec % timespec_hz; if (r < 0) { r += timespec_hz; q--; } ts->tv_nsec = r; /* Overflow is possible, as Solaris 11 stat can yield tv_sec == TYPE_MINIMUM (time_t) && tv_nsec == -1000000000. INT_ADD_WRAPV is OK, since time_t is signed on Solaris. */ if (INT_ADD_WRAPV (q, ts->tv_sec, &ts->tv_sec)) { errno = EOVERFLOW; return -1; } } } #endif return result; } #ifdef __cplusplus } #endif _GL_INLINE_HEADER_END #endif shishi-1.0.3/src/gl/getopt.in.h0000644000000000000000000000412114273615074013151 00000000000000/* Declarations for getopt. Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of gnulib. Unlike most of the getopt implementation, it is NOT shared with the GNU C Library, which supplies a different version of this file. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #ifndef _@GUARD_PREFIX@_GETOPT_H #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ /* The include_next requires a split double-inclusion guard. We must also inform the replacement unistd.h to not recursively use ; our definitions will be present soon enough. */ #if @HAVE_GETOPT_H@ # define _GL_SYSTEM_GETOPT # @INCLUDE_NEXT@ @NEXT_GETOPT_H@ # undef _GL_SYSTEM_GETOPT #endif #define _@GUARD_PREFIX@_GETOPT_H 1 /* Standalone applications should #define __GETOPT_PREFIX to an identifier that prefixes the external functions and variables defined in getopt-core.h and getopt-ext.h. When this happens, include the headers that might declare getopt so that they will not cause confusion if included after this file (if the system had , we have already included it). */ #if defined __GETOPT_PREFIX # if !@HAVE_GETOPT_H@ # define __need_system_stdlib_h # include # undef __need_system_stdlib_h # include # include # endif #endif /* The definition of _GL_ARG_NONNULL is copied here. */ #include #include #include #endif /* _@GUARD_PREFIX@_GETOPT_H */ shishi-1.0.3/src/gl/stdlib.in.h0000644000000000000000000015312514273615075013142 00000000000000/* A GNU-like . Copyright (C) 1995, 2001-2004, 2006-2022 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . */ #if __GNUC__ >= 3 @PRAGMA_SYSTEM_HEADER@ #endif @PRAGMA_COLUMNS@ #if defined __need_system_stdlib_h || defined __need_malloc_and_calloc /* Special invocation conventions inside some gnulib header files, and inside some glibc header files, respectively. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #else /* Normal invocation convention. */ #ifndef _@GUARD_PREFIX@_STDLIB_H /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDLIB_H@ #ifndef _@GUARD_PREFIX@_STDLIB_H #define _@GUARD_PREFIX@_STDLIB_H /* NetBSD 5.0 mis-defines NULL. */ #include /* MirBSD 10 defines WEXITSTATUS in , not in . */ #if @GNULIB_SYSTEM_POSIX@ && !defined WEXITSTATUS # include #endif /* Solaris declares getloadavg() in . */ #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ /* OpenIndiana has a bug: must be included before . */ # include # include #endif /* Native Windows platforms declare _mktemp() in . */ #if defined _WIN32 && !defined __CYGWIN__ # include #endif #if @GNULIB_RANDOM_R@ /* OSF/1 5.1 declares 'struct random_data' in , which is included from if _REENTRANT is defined. Include it whenever we need 'struct random_data'. */ # if @HAVE_RANDOM_H@ # include # endif # if !@HAVE_STRUCT_RANDOM_DATA@ || @REPLACE_RANDOM_R@ || !@HAVE_RANDOM_R@ # include # endif # if !@HAVE_STRUCT_RANDOM_DATA@ /* Define 'struct random_data'. But allow multiple gnulib generated replacements to coexist. */ # if !GNULIB_defined_struct_random_data struct random_data { int32_t *fptr; /* Front pointer. */ int32_t *rptr; /* Rear pointer. */ int32_t *state; /* Array of state values. */ int rand_type; /* Type of random number generator. */ int rand_deg; /* Degree of random number generator. */ int rand_sep; /* Distance between front and rear. */ int32_t *end_ptr; /* Pointer behind state table. */ }; # define GNULIB_defined_struct_random_data 1 # endif # endif #endif #if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_MKOSTEMP@ || @GNULIB_MKOSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !(defined _WIN32 && ! defined __CYGWIN__) /* On Mac OS X 10.3, only declares mkstemp. */ /* On Mac OS X 10.5, only declares mkstemps. */ /* On Mac OS X 10.13, only declares mkostemp and mkostemps. */ /* On Cygwin 1.7.1, only declares getsubopt. */ /* But avoid namespace pollution on glibc systems and native Windows. */ # include #endif /* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers that can be freed by passing them as the Ith argument to the function F. */ #ifndef _GL_ATTRIBUTE_DEALLOC # if __GNUC__ >= 11 # define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i))) # else # define _GL_ATTRIBUTE_DEALLOC(f, i) # endif #endif /* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that can be freed via 'free'; it can be used only after declaring 'free'. */ /* Applies to: functions. Cannot be used on inline functions. */ #ifndef _GL_ATTRIBUTE_DEALLOC_FREE # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) #endif /* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly allocated memory. */ /* Applies to: functions. */ #ifndef _GL_ATTRIBUTE_MALLOC # if __GNUC__ >= 3 || defined __clang__ # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) # else # define _GL_ATTRIBUTE_MALLOC # endif #endif /* The __attribute__ feature is available in gcc versions 2.5 and later. The attribute __pure__ was added in gcc 2.96. */ #ifndef _GL_ATTRIBUTE_PURE # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) # else # define _GL_ATTRIBUTE_PURE /* empty */ # endif #endif /* The definition of _Noreturn is copied here. */ /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */ /* The definition of _GL_ARG_NONNULL is copied here. */ /* The definition of _GL_WARN_ON_USE is copied here. */ /* Some systems do not define EXIT_*, despite otherwise supporting C89. */ #ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 #endif /* Tandem/NSK and other platforms that define EXIT_FAILURE as -1 interfere with proper operation of xargs. */ #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 #elif EXIT_FAILURE != 1 # undef EXIT_FAILURE # define EXIT_FAILURE 1 #endif #if @GNULIB__EXIT@ /* Terminate the current process with the given return code, without running the 'atexit' handlers. */ # if !@HAVE__EXIT@ _GL_FUNCDECL_SYS (_Exit, _Noreturn void, (int status)); # endif _GL_CXXALIAS_SYS (_Exit, void, (int status)); _GL_CXXALIASWARN (_Exit); #elif defined GNULIB_POSIXCHECK # undef _Exit # if HAVE_RAW_DECL__EXIT _GL_WARN_ON_USE (_Exit, "_Exit is unportable - " "use gnulib module _Exit for portability"); # endif #endif #if @GNULIB_FREE_POSIX@ # if @REPLACE_FREE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef free # define free rpl_free # endif # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) _GL_FUNCDECL_RPL (free, void, (void *ptr) throw ()); # else _GL_FUNCDECL_RPL (free, void, (void *ptr)); # endif _GL_CXXALIAS_RPL (free, void, (void *ptr)); # else _GL_CXXALIAS_SYS (free, void, (void *ptr)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (free); # endif #elif defined GNULIB_POSIXCHECK # undef free /* Assume free is always declared. */ _GL_WARN_ON_USE (free, "free is not future POSIX compliant everywhere - " "use gnulib module free for portability"); #endif /* Allocate memory with indefinite extent and specified alignment. */ #if @GNULIB_ALIGNED_ALLOC@ # if @REPLACE_ALIGNED_ALLOC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef aligned_alloc # define aligned_alloc rpl_aligned_alloc # endif _GL_FUNCDECL_RPL (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (aligned_alloc, void *, (size_t alignment, size_t size)); # else # if @HAVE_ALIGNED_ALLOC@ # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */ _GL_FUNCDECL_SYS (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (aligned_alloc, void *, (size_t alignment, size_t size)); # endif # endif # if @HAVE_ALIGNED_ALLOC@ _GL_CXXALIASWARN (aligned_alloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined aligned_alloc /* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */ _GL_FUNCDECL_SYS (aligned_alloc, void *, (size_t alignment, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef aligned_alloc # if HAVE_RAW_DECL_ALIGNED_ALLOC _GL_WARN_ON_USE (aligned_alloc, "aligned_alloc is not portable - " "use gnulib module aligned_alloc for portability"); # endif # endif #endif #if @GNULIB_ATOLL@ /* Parse a signed decimal integer. Returns the value of the integer. Errors are not detected. */ # if !@HAVE_ATOLL@ _GL_FUNCDECL_SYS (atoll, long long, (const char *string) _GL_ATTRIBUTE_PURE _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (atoll, long long, (const char *string)); _GL_CXXALIASWARN (atoll); #elif defined GNULIB_POSIXCHECK # undef atoll # if HAVE_RAW_DECL_ATOLL _GL_WARN_ON_USE (atoll, "atoll is unportable - " "use gnulib module atoll for portability"); # endif #endif #if @GNULIB_CALLOC_POSIX@ # if (@GNULIB_CALLOC_POSIX@ && @REPLACE_CALLOC_FOR_CALLOC_POSIX@) \ || (@GNULIB_CALLOC_GNU@ && @REPLACE_CALLOC_FOR_CALLOC_GNU@) # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef calloc # define calloc rpl_calloc # endif _GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */ _GL_FUNCDECL_SYS (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (calloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined calloc /* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */ _GL_FUNCDECL_SYS (calloc, void *, (size_t nmemb, size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef calloc /* Assume calloc is always declared. */ _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - " "use gnulib module calloc-posix for portability"); # endif #endif #if @GNULIB_CANONICALIZE_FILE_NAME@ # if @REPLACE_CANONICALIZE_FILE_NAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define canonicalize_file_name rpl_canonicalize_file_name # endif _GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name)); # else # if !@HAVE_CANONICALIZE_FILE_NAME@ || __GNUC__ >= 11 _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name)); # endif # ifndef GNULIB_defined_canonicalize_file_name # define GNULIB_defined_canonicalize_file_name \ (!@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@) # endif _GL_CXXALIASWARN (canonicalize_file_name); #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined canonicalize_file_name /* For -Wmismatched-dealloc: Associate canonicalize_file_name with free or rpl_free. */ _GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name) _GL_ARG_NONNULL ((1)) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK # undef canonicalize_file_name # if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME _GL_WARN_ON_USE (canonicalize_file_name, "canonicalize_file_name is unportable - " "use gnulib module canonicalize-lgpl for portability"); # endif # endif #endif #if @GNULIB_MDA_ECVT@ /* On native Windows, map 'ecvt' to '_ecvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::ecvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ecvt # define ecvt _ecvt # endif _GL_CXXALIAS_MDA (ecvt, char *, (double number, int ndigits, int *decptp, int *signp)); # else # if @HAVE_DECL_ECVT@ _GL_CXXALIAS_SYS (ecvt, char *, (double number, int ndigits, int *decptp, int *signp)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_ECVT@ _GL_CXXALIASWARN (ecvt); # endif #endif #if @GNULIB_MDA_FCVT@ /* On native Windows, map 'fcvt' to '_fcvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::fcvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef fcvt # define fcvt _fcvt # endif _GL_CXXALIAS_MDA (fcvt, char *, (double number, int ndigits, int *decptp, int *signp)); # else # if @HAVE_DECL_FCVT@ _GL_CXXALIAS_SYS (fcvt, char *, (double number, int ndigits, int *decptp, int *signp)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCVT@ _GL_CXXALIASWARN (fcvt); # endif #endif #if @GNULIB_MDA_GCVT@ /* On native Windows, map 'gcvt' to '_gcvt', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::gcvt on all platforms that have it. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef gcvt # define gcvt _gcvt # endif _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf)); # else # if @HAVE_DECL_GCVT@ _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf)); # endif # endif # if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_GCVT@ _GL_CXXALIASWARN (gcvt); # endif #endif #if @GNULIB_GETLOADAVG@ /* Store max(NELEM,3) load average numbers in LOADAVG[]. The three numbers are the load average of the last 1 minute, the last 5 minutes, and the last 15 minutes, respectively. LOADAVG is an array of NELEM numbers. */ # if !@HAVE_DECL_GETLOADAVG@ _GL_FUNCDECL_SYS (getloadavg, int, (double loadavg[], int nelem) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (getloadavg, int, (double loadavg[], int nelem)); _GL_CXXALIASWARN (getloadavg); #elif defined GNULIB_POSIXCHECK # undef getloadavg # if HAVE_RAW_DECL_GETLOADAVG _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - " "use gnulib module getloadavg for portability"); # endif #endif #if @GNULIB_GETSUBOPT@ /* Assuming *OPTIONP is a comma separated list of elements of the form "token" or "token=value", getsubopt parses the first of these elements. If the first element refers to a "token" that is member of the given NULL-terminated array of tokens: - It replaces the comma with a NUL byte, updates *OPTIONP to point past the first option and the comma, sets *VALUEP to the value of the element (or NULL if it doesn't contain an "=" sign), - It returns the index of the "token" in the given array of tokens. Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined. For more details see the POSIX specification. https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsubopt.html */ # if !@HAVE_GETSUBOPT@ _GL_FUNCDECL_SYS (getsubopt, int, (char **optionp, char *const *tokens, char **valuep) _GL_ARG_NONNULL ((1, 2, 3))); # endif _GL_CXXALIAS_SYS (getsubopt, int, (char **optionp, char *const *tokens, char **valuep)); _GL_CXXALIASWARN (getsubopt); #elif defined GNULIB_POSIXCHECK # undef getsubopt # if HAVE_RAW_DECL_GETSUBOPT _GL_WARN_ON_USE (getsubopt, "getsubopt is unportable - " "use gnulib module getsubopt for portability"); # endif #endif #if @GNULIB_GRANTPT@ /* Change the ownership and access permission of the slave side of the pseudo-terminal whose master side is specified by FD. */ # if !@HAVE_GRANTPT@ _GL_FUNCDECL_SYS (grantpt, int, (int fd)); # endif _GL_CXXALIAS_SYS (grantpt, int, (int fd)); _GL_CXXALIASWARN (grantpt); #elif defined GNULIB_POSIXCHECK # undef grantpt # if HAVE_RAW_DECL_GRANTPT _GL_WARN_ON_USE (grantpt, "grantpt is not portable - " "use gnulib module grantpt for portability"); # endif #endif /* If _GL_USE_STDLIB_ALLOC is nonzero, the including module does not rely on GNU or POSIX semantics for malloc and realloc (for example, by never specifying a zero size), so it does not need malloc or realloc to be redefined. */ #if @GNULIB_MALLOC_POSIX@ # if (@GNULIB_MALLOC_POSIX@ && @REPLACE_MALLOC_FOR_MALLOC_POSIX@) \ || (@GNULIB_MALLOC_GNU@ && @REPLACE_MALLOC_FOR_MALLOC_GNU@) # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ || _GL_USE_STDLIB_ALLOC) # undef malloc # define malloc rpl_malloc # endif _GL_FUNCDECL_RPL (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (malloc, void *, (size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */ _GL_FUNCDECL_SYS (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (malloc, void *, (size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (malloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined malloc /* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */ _GL_FUNCDECL_SYS (malloc, void *, (size_t size) _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC # undef malloc /* Assume malloc is always declared. */ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " "use gnulib module malloc-posix for portability"); # endif #endif /* Convert a multibyte character to a wide character. */ #if @GNULIB_MBTOWC@ # if @REPLACE_MBTOWC@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mbtowc # define mbtowc rpl_mbtowc # endif _GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); _GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # else # if !@HAVE_MBTOWC@ _GL_FUNCDECL_SYS (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # endif _GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *restrict pwc, const char *restrict s, size_t n)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (mbtowc); # endif #elif defined GNULIB_POSIXCHECK # undef mbtowc # if HAVE_RAW_DECL_MBTOWC _GL_WARN_ON_USE (mbtowc, "mbtowc is not portable - " "use gnulib module mbtowc for portability"); # endif #endif #if @GNULIB_MKDTEMP@ /* Create a unique temporary directory from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the directory name unique. Returns TEMPLATE, or a null pointer if it cannot get a unique name. The directory is created mode 700. */ # if !@HAVE_MKDTEMP@ _GL_FUNCDECL_SYS (mkdtemp, char *, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkdtemp, char *, (char * /*template*/)); _GL_CXXALIASWARN (mkdtemp); #elif defined GNULIB_POSIXCHECK # undef mkdtemp # if HAVE_RAW_DECL_MKDTEMP _GL_WARN_ON_USE (mkdtemp, "mkdtemp is unportable - " "use gnulib module mkdtemp for portability"); # endif #endif #if @GNULIB_MKOSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). The file is then created, with the specified flags, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKOSTEMP@ _GL_FUNCDECL_SYS (mkostemp, int, (char * /*template*/, int /*flags*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkostemp, int, (char * /*template*/, int /*flags*/)); _GL_CXXALIASWARN (mkostemp); #elif defined GNULIB_POSIXCHECK # undef mkostemp # if HAVE_RAW_DECL_MKOSTEMP _GL_WARN_ON_USE (mkostemp, "mkostemp is unportable - " "use gnulib module mkostemp for portability"); # endif #endif #if @GNULIB_MKOSTEMPS@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE before a suffix of length SUFFIXLEN must be "XXXXXX"; they are replaced with a string that makes the file name unique. The flags are a bitmask, possibly including O_CLOEXEC (defined in ) and O_TEXT, O_BINARY (defined in "binary-io.h"). The file is then created, with the specified flags, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKOSTEMPS@ _GL_FUNCDECL_SYS (mkostemps, int, (char * /*template*/, int /*suffixlen*/, int /*flags*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkostemps, int, (char * /*template*/, int /*suffixlen*/, int /*flags*/)); _GL_CXXALIASWARN (mkostemps); #elif defined GNULIB_POSIXCHECK # undef mkostemps # if HAVE_RAW_DECL_MKOSTEMPS _GL_WARN_ON_USE (mkostemps, "mkostemps is unportable - " "use gnulib module mkostemps for portability"); # endif #endif #if @GNULIB_MKSTEMP@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique. The file is then created, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if @REPLACE_MKSTEMP@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define mkstemp rpl_mkstemp # endif _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); # else # if ! @HAVE_MKSTEMP@ _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); # endif _GL_CXXALIASWARN (mkstemp); #elif defined GNULIB_POSIXCHECK # undef mkstemp # if HAVE_RAW_DECL_MKSTEMP _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " "use gnulib module mkstemp for portability"); # endif #endif #if @GNULIB_MKSTEMPS@ /* Create a unique temporary file from TEMPLATE. The last six characters of TEMPLATE prior to a suffix of length SUFFIXLEN must be "XXXXXX"; they are replaced with a string that makes the file name unique. The file is then created, ensuring it didn't exist before. The file is created read-write (mask at least 0600 & ~umask), but it may be world-readable and world-writable (mask 0666 & ~umask), depending on the implementation. Returns the open file descriptor if successful, otherwise -1 and errno set. */ # if !@HAVE_MKSTEMPS@ _GL_FUNCDECL_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (mkstemps, int, (char * /*template*/, int /*suffixlen*/)); _GL_CXXALIASWARN (mkstemps); #elif defined GNULIB_POSIXCHECK # undef mkstemps # if HAVE_RAW_DECL_MKSTEMPS _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - " "use gnulib module mkstemps for portability"); # endif #endif #if @GNULIB_MDA_MKTEMP@ /* On native Windows, map 'mktemp' to '_mktemp', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::mktemp always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef mktemp # define mktemp _mktemp # endif _GL_CXXALIAS_MDA (mktemp, char *, (char * /*template*/)); # else _GL_CXXALIAS_SYS (mktemp, char *, (char * /*template*/)); # endif _GL_CXXALIASWARN (mktemp); #endif /* Allocate memory with indefinite extent and specified alignment. */ #if @GNULIB_POSIX_MEMALIGN@ # if @REPLACE_POSIX_MEMALIGN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef posix_memalign # define posix_memalign rpl_posix_memalign # endif _GL_FUNCDECL_RPL (posix_memalign, int, (void **memptr, size_t alignment, size_t size) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (posix_memalign, int, (void **memptr, size_t alignment, size_t size)); # else # if @HAVE_POSIX_MEMALIGN@ _GL_CXXALIAS_SYS (posix_memalign, int, (void **memptr, size_t alignment, size_t size)); # endif # endif # if @HAVE_POSIX_MEMALIGN@ _GL_CXXALIASWARN (posix_memalign); # endif #elif defined GNULIB_POSIXCHECK # undef posix_memalign # if HAVE_RAW_DECL_POSIX_MEMALIGN _GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - " "use gnulib module posix_memalign for portability"); # endif #endif #if @GNULIB_POSIX_OPENPT@ /* Return an FD open to the master side of a pseudo-terminal. Flags should include O_RDWR, and may also include O_NOCTTY. */ # if !@HAVE_POSIX_OPENPT@ _GL_FUNCDECL_SYS (posix_openpt, int, (int flags)); # endif _GL_CXXALIAS_SYS (posix_openpt, int, (int flags)); _GL_CXXALIASWARN (posix_openpt); #elif defined GNULIB_POSIXCHECK # undef posix_openpt # if HAVE_RAW_DECL_POSIX_OPENPT _GL_WARN_ON_USE (posix_openpt, "posix_openpt is not portable - " "use gnulib module posix_openpt for portability"); # endif #endif #if @GNULIB_PTSNAME@ /* Return the pathname of the pseudo-terminal slave associated with the master FD is open on, or NULL on errors. */ # if @REPLACE_PTSNAME@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ptsname # define ptsname rpl_ptsname # endif _GL_FUNCDECL_RPL (ptsname, char *, (int fd)); _GL_CXXALIAS_RPL (ptsname, char *, (int fd)); # else # if !@HAVE_PTSNAME@ _GL_FUNCDECL_SYS (ptsname, char *, (int fd)); # endif _GL_CXXALIAS_SYS (ptsname, char *, (int fd)); # endif _GL_CXXALIASWARN (ptsname); #elif defined GNULIB_POSIXCHECK # undef ptsname # if HAVE_RAW_DECL_PTSNAME _GL_WARN_ON_USE (ptsname, "ptsname is not portable - " "use gnulib module ptsname for portability"); # endif #endif #if @GNULIB_PTSNAME_R@ /* Set the pathname of the pseudo-terminal slave associated with the master FD is open on and return 0, or set errno and return non-zero on errors. */ # if @REPLACE_PTSNAME_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef ptsname_r # define ptsname_r rpl_ptsname_r # endif _GL_FUNCDECL_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); _GL_CXXALIAS_RPL (ptsname_r, int, (int fd, char *buf, size_t len)); # else # if !@HAVE_PTSNAME_R@ _GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); # endif _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len)); # endif # ifndef GNULIB_defined_ptsname_r # define GNULIB_defined_ptsname_r (!@HAVE_PTSNAME_R@ || @REPLACE_PTSNAME_R@) # endif _GL_CXXALIASWARN (ptsname_r); #elif defined GNULIB_POSIXCHECK # undef ptsname_r # if HAVE_RAW_DECL_PTSNAME_R _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - " "use gnulib module ptsname_r for portability"); # endif #endif #if @GNULIB_PUTENV@ # if @REPLACE_PUTENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv rpl_putenv # endif _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (putenv, int, (char *string)); # elif defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv _putenv # endif _GL_CXXALIAS_MDA (putenv, int, (char *string)); # else _GL_CXXALIAS_SYS (putenv, int, (char *string)); # endif _GL_CXXALIASWARN (putenv); #elif @GNULIB_MDA_PUTENV@ /* On native Windows, map 'putenv' to '_putenv', so that -loldnames is not required. In C++ with GNULIB_NAMESPACE, avoid differences between platforms by defining GNULIB_NAMESPACE::putenv always. */ # if defined _WIN32 && !defined __CYGWIN__ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef putenv # define putenv _putenv # endif /* Need to cast, because on mingw, the parameter is either 'const char *string' or 'char *string'. */ _GL_CXXALIAS_MDA_CAST (putenv, int, (char *string)); # else _GL_CXXALIAS_SYS (putenv, int, (char *string)); # endif _GL_CXXALIASWARN (putenv); #endif #if @GNULIB_QSORT_R@ /* Sort an array of NMEMB elements, starting at address BASE, each element occupying SIZE bytes, in ascending order according to the comparison function COMPARE. */ # ifdef __cplusplus extern "C" { # endif # if !GNULIB_defined_qsort_r_fn_types typedef int (*_gl_qsort_r_compar_fn) (void const *, void const *, void *); # define GNULIB_defined_qsort_r_fn_types 1 # endif # ifdef __cplusplus } # endif # if @REPLACE_QSORT_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef qsort_r # define qsort_r rpl_qsort_r # endif _GL_FUNCDECL_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg) _GL_ARG_NONNULL ((1, 4))); _GL_CXXALIAS_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg)); # else # if !@HAVE_QSORT_R@ _GL_FUNCDECL_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg) _GL_ARG_NONNULL ((1, 4))); # endif _GL_CXXALIAS_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size, _gl_qsort_r_compar_fn compare, void *arg)); # endif _GL_CXXALIASWARN (qsort_r); #elif defined GNULIB_POSIXCHECK # undef qsort_r # if HAVE_RAW_DECL_QSORT_R _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - " "use gnulib module qsort_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if !@HAVE_RANDOM_R@ # ifndef RAND_MAX # define RAND_MAX 2147483647 # endif # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_RANDOM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef random # define random rpl_random # endif _GL_FUNCDECL_RPL (random, long, (void)); _GL_CXXALIAS_RPL (random, long, (void)); # else # if !@HAVE_RANDOM@ _GL_FUNCDECL_SYS (random, long, (void)); # endif /* Need to cast, because on Haiku, the return type is int. */ _GL_CXXALIAS_SYS_CAST (random, long, (void)); # endif _GL_CXXALIASWARN (random); #elif defined GNULIB_POSIXCHECK # undef random # if HAVE_RAW_DECL_RANDOM _GL_WARN_ON_USE (random, "random is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_RANDOM@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef srandom # define srandom rpl_srandom # endif _GL_FUNCDECL_RPL (srandom, void, (unsigned int seed)); _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); # else # if !@HAVE_RANDOM@ _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); # endif /* Need to cast, because on FreeBSD, the first parameter is unsigned long seed. */ _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); # endif _GL_CXXALIASWARN (srandom); #elif defined GNULIB_POSIXCHECK # undef srandom # if HAVE_RAW_DECL_SRANDOM _GL_WARN_ON_USE (srandom, "srandom is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_INITSTATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef initstate # define initstate rpl_initstate # endif _GL_FUNCDECL_RPL (initstate, char *, (unsigned int seed, char *buf, size_t buf_size) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (initstate, char *, (unsigned int seed, char *buf, size_t buf_size)); # else # if !@HAVE_INITSTATE@ || !@HAVE_DECL_INITSTATE@ _GL_FUNCDECL_SYS (initstate, char *, (unsigned int seed, char *buf, size_t buf_size) _GL_ARG_NONNULL ((2))); # endif /* Need to cast, because on FreeBSD, the first parameter is unsigned long seed. */ _GL_CXXALIAS_SYS_CAST (initstate, char *, (unsigned int seed, char *buf, size_t buf_size)); # endif _GL_CXXALIASWARN (initstate); #elif defined GNULIB_POSIXCHECK # undef initstate # if HAVE_RAW_DECL_INITSTATE _GL_WARN_ON_USE (initstate, "initstate is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM@ # if @REPLACE_SETSTATE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setstate # define setstate rpl_setstate # endif _GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); # else # if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@ _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); # endif /* Need to cast, because on Mac OS X 10.13, HP-UX, Solaris the first parameter is const char *arg_state. */ _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); # endif _GL_CXXALIASWARN (setstate); #elif defined GNULIB_POSIXCHECK # undef setstate # if HAVE_RAW_DECL_SETSTATE _GL_WARN_ON_USE (setstate, "setstate is unportable - " "use gnulib module random for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef random_r # define random_r rpl_random_r # endif _GL_FUNCDECL_RPL (random_r, int, (struct random_data *buf, int32_t *result) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (random_r, int, (struct random_data *buf, int32_t *result)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (random_r, int, (struct random_data *buf, int32_t *result) _GL_ARG_NONNULL ((1, 2))); # endif _GL_CXXALIAS_SYS (random_r, int, (struct random_data *buf, int32_t *result)); # endif _GL_CXXALIASWARN (random_r); #elif defined GNULIB_POSIXCHECK # undef random_r # if HAVE_RAW_DECL_RANDOM_R _GL_WARN_ON_USE (random_r, "random_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef srandom_r # define srandom_r rpl_srandom_r # endif _GL_FUNCDECL_RPL (srandom_r, int, (unsigned int seed, struct random_data *rand_state) _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (srandom_r, int, (unsigned int seed, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state) _GL_ARG_NONNULL ((2))); # endif _GL_CXXALIAS_SYS (srandom_r, int, (unsigned int seed, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (srandom_r); #elif defined GNULIB_POSIXCHECK # undef srandom_r # if HAVE_RAW_DECL_SRANDOM_R _GL_WARN_ON_USE (srandom_r, "srandom_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef initstate_r # define initstate_r rpl_initstate_r # endif _GL_FUNCDECL_RPL (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state) _GL_ARG_NONNULL ((2, 4))); _GL_CXXALIAS_RPL (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state) _GL_ARG_NONNULL ((2, 4))); # endif /* Need to cast, because on Haiku, the third parameter is unsigned long buf_size. */ _GL_CXXALIAS_SYS_CAST (initstate_r, int, (unsigned int seed, char *buf, size_t buf_size, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (initstate_r); #elif defined GNULIB_POSIXCHECK # undef initstate_r # if HAVE_RAW_DECL_INITSTATE_R _GL_WARN_ON_USE (initstate_r, "initstate_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_RANDOM_R@ # if @REPLACE_RANDOM_R@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setstate_r # define setstate_r rpl_setstate_r # endif _GL_FUNCDECL_RPL (setstate_r, int, (char *arg_state, struct random_data *rand_state) _GL_ARG_NONNULL ((1, 2))); _GL_CXXALIAS_RPL (setstate_r, int, (char *arg_state, struct random_data *rand_state)); # else # if !@HAVE_RANDOM_R@ _GL_FUNCDECL_SYS (setstate_r, int, (char *arg_state, struct random_data *rand_state) _GL_ARG_NONNULL ((1, 2))); # endif /* Need to cast, because on Haiku, the first parameter is void *arg_state. */ _GL_CXXALIAS_SYS_CAST (setstate_r, int, (char *arg_state, struct random_data *rand_state)); # endif _GL_CXXALIASWARN (setstate_r); #elif defined GNULIB_POSIXCHECK # undef setstate_r # if HAVE_RAW_DECL_SETSTATE_R _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - " "use gnulib module random_r for portability"); # endif #endif #if @GNULIB_REALLOC_POSIX@ # if (@GNULIB_REALLOC_POSIX@ && @REPLACE_REALLOC_FOR_REALLOC_POSIX@) \ || (@GNULIB_REALLOC_GNU@ && @REPLACE_REALLOC_FOR_REALLOC_GNU@) # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \ || _GL_USE_STDLIB_ALLOC) # undef realloc # define realloc rpl_realloc # endif _GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size)); # else # if __GNUC__ >= 11 /* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */ _GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); # endif _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (realloc); # endif #else # if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined realloc /* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */ _GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size) _GL_ATTRIBUTE_DEALLOC_FREE); # endif # if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC # undef realloc /* Assume realloc is always declared. */ _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - " "use gnulib module realloc-posix for portability"); # endif #endif #if @GNULIB_REALLOCARRAY@ # if @REPLACE_REALLOCARRAY@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef reallocarray # define reallocarray rpl_reallocarray # endif _GL_FUNCDECL_RPL (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); _GL_CXXALIAS_RPL (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # else # if ! @HAVE_REALLOCARRAY@ _GL_FUNCDECL_SYS (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # endif _GL_CXXALIAS_SYS (reallocarray, void *, (void *ptr, size_t nmemb, size_t size)); # endif _GL_CXXALIASWARN (reallocarray); #elif defined GNULIB_POSIXCHECK # undef reallocarray # if HAVE_RAW_DECL_REALLOCARRAY _GL_WARN_ON_USE (reallocarray, "reallocarray is not portable - " "use gnulib module reallocarray for portability"); # endif #endif #if @GNULIB_REALPATH@ # if @REPLACE_REALPATH@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define realpath rpl_realpath # endif _GL_FUNCDECL_RPL (realpath, char *, (const char *restrict name, char *restrict resolved) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (realpath, char *, (const char *restrict name, char *restrict resolved)); # else # if !@HAVE_REALPATH@ _GL_FUNCDECL_SYS (realpath, char *, (const char *restrict name, char *restrict resolved) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (realpath, char *, (const char *restrict name, char *restrict resolved)); # endif _GL_CXXALIASWARN (realpath); #elif defined GNULIB_POSIXCHECK # undef realpath # if HAVE_RAW_DECL_REALPATH _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " "canonicalize or canonicalize-lgpl for portability"); # endif #endif #if @GNULIB_RPMATCH@ /* Test a user response to a question. Return 1 if it is affirmative, 0 if it is negative, or -1 if not clear. */ # if !@HAVE_RPMATCH@ _GL_FUNCDECL_SYS (rpmatch, int, (const char *response) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (rpmatch, int, (const char *response)); _GL_CXXALIASWARN (rpmatch); #elif defined GNULIB_POSIXCHECK # undef rpmatch # if HAVE_RAW_DECL_RPMATCH _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " "use gnulib module rpmatch for portability"); # endif #endif #if @GNULIB_SECURE_GETENV@ /* Look up NAME in the environment, returning 0 in insecure situations. */ # if !@HAVE_SECURE_GETENV@ _GL_FUNCDECL_SYS (secure_getenv, char *, (char const *name) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (secure_getenv, char *, (char const *name)); _GL_CXXALIASWARN (secure_getenv); #elif defined GNULIB_POSIXCHECK # undef secure_getenv # if HAVE_RAW_DECL_SECURE_GETENV _GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " "use gnulib module secure_getenv for portability"); # endif #endif #if @GNULIB_SETENV@ /* Set NAME to VALUE in the environment. If REPLACE is nonzero, overwrite an existing value. */ # if @REPLACE_SETENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef setenv # define setenv rpl_setenv # endif _GL_FUNCDECL_RPL (setenv, int, (const char *name, const char *value, int replace) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (setenv, int, (const char *name, const char *value, int replace)); # else # if !@HAVE_DECL_SETENV@ _GL_FUNCDECL_SYS (setenv, int, (const char *name, const char *value, int replace) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (setenv, int, (const char *name, const char *value, int replace)); # endif # if !(@REPLACE_SETENV@ && !@HAVE_DECL_SETENV@) _GL_CXXALIASWARN (setenv); # endif #elif defined GNULIB_POSIXCHECK # undef setenv # if HAVE_RAW_DECL_SETENV _GL_WARN_ON_USE (setenv, "setenv is unportable - " "use gnulib module setenv for portability"); # endif #endif #if @GNULIB_STRTOD@ /* Parse a double from STRING, updating ENDP if appropriate. */ # if @REPLACE_STRTOD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtod rpl_strtod # endif # define GNULIB_defined_strtod_function 1 _GL_FUNCDECL_RPL (strtod, double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtod, double, (const char *restrict str, char **restrict endp)); # else # if !@HAVE_STRTOD@ _GL_FUNCDECL_SYS (strtod, double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtod, double, (const char *restrict str, char **restrict endp)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (strtod); # endif #elif defined GNULIB_POSIXCHECK # undef strtod # if HAVE_RAW_DECL_STRTOD _GL_WARN_ON_USE (strtod, "strtod is unportable - " "use gnulib module strtod for portability"); # endif #endif #if @GNULIB_STRTOLD@ /* Parse a 'long double' from STRING, updating ENDP if appropriate. */ # if @REPLACE_STRTOLD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtold rpl_strtold # endif # define GNULIB_defined_strtold_function 1 _GL_FUNCDECL_RPL (strtold, long double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtold, long double, (const char *restrict str, char **restrict endp)); # else # if !@HAVE_STRTOLD@ _GL_FUNCDECL_SYS (strtold, long double, (const char *restrict str, char **restrict endp) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtold, long double, (const char *restrict str, char **restrict endp)); # endif _GL_CXXALIASWARN (strtold); #elif defined GNULIB_POSIXCHECK # undef strtold # if HAVE_RAW_DECL_STRTOLD _GL_WARN_ON_USE (strtold, "strtold is unportable - " "use gnulib module strtold for portability"); # endif #endif #if @GNULIB_STRTOL@ /* Parse a signed integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is LONG_MAX or LONG_MIN, and errno is set to ERANGE. */ # if @REPLACE_STRTOL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtol rpl_strtol # endif # define GNULIB_defined_strtol_function 1 _GL_FUNCDECL_RPL (strtol, long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtol, long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOL@ _GL_FUNCDECL_SYS (strtol, long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtol, long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtol); #elif defined GNULIB_POSIXCHECK # undef strtol # if HAVE_RAW_DECL_STRTOL _GL_WARN_ON_USE (strtol, "strtol is unportable - " "use gnulib module strtol for portability"); # endif #endif #if @GNULIB_STRTOLL@ /* Parse a signed integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set to ERANGE. */ # if @REPLACE_STRTOLL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoll rpl_strtoll # endif # define GNULIB_defined_strtoll_function 1 _GL_FUNCDECL_RPL (strtoll, long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoll, long long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOLL@ _GL_FUNCDECL_SYS (strtoll, long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoll, long long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoll); #elif defined GNULIB_POSIXCHECK # undef strtoll # if HAVE_RAW_DECL_STRTOLL _GL_WARN_ON_USE (strtoll, "strtoll is unportable - " "use gnulib module strtoll for portability"); # endif #endif #if @GNULIB_STRTOUL@ /* Parse an unsigned integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is ULONG_MAX, and errno is set to ERANGE. */ # if @REPLACE_STRTOUL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoul rpl_strtoul # endif # define GNULIB_defined_strtoul_function 1 _GL_FUNCDECL_RPL (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOUL@ _GL_FUNCDECL_SYS (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoul, unsigned long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoul); #elif defined GNULIB_POSIXCHECK # undef strtoul # if HAVE_RAW_DECL_STRTOUL _GL_WARN_ON_USE (strtoul, "strtoul is unportable - " "use gnulib module strtoul for portability"); # endif #endif #if @GNULIB_STRTOULL@ /* Parse an unsigned integer whose textual representation starts at STRING. The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, it may be decimal or octal (with prefix "0") or hexadecimal (with prefix "0x"). If ENDPTR is not NULL, the address of the first byte after the integer is stored in *ENDPTR. Upon overflow, the return value is ULLONG_MAX, and errno is set to ERANGE. */ # if @REPLACE_STRTOULL@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define strtoull rpl_strtoull # endif # define GNULIB_defined_strtoull_function 1 _GL_FUNCDECL_RPL (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base)); # else # if !@HAVE_STRTOULL@ _GL_FUNCDECL_SYS (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (strtoull, unsigned long long, (const char *restrict string, char **restrict endptr, int base)); # endif _GL_CXXALIASWARN (strtoull); #elif defined GNULIB_POSIXCHECK # undef strtoull # if HAVE_RAW_DECL_STRTOULL _GL_WARN_ON_USE (strtoull, "strtoull is unportable - " "use gnulib module strtoull for portability"); # endif #endif #if @GNULIB_UNLOCKPT@ /* Unlock the slave side of the pseudo-terminal whose master side is specified by FD, so that it can be opened. */ # if !@HAVE_UNLOCKPT@ _GL_FUNCDECL_SYS (unlockpt, int, (int fd)); # endif _GL_CXXALIAS_SYS (unlockpt, int, (int fd)); _GL_CXXALIASWARN (unlockpt); #elif defined GNULIB_POSIXCHECK # undef unlockpt # if HAVE_RAW_DECL_UNLOCKPT _GL_WARN_ON_USE (unlockpt, "unlockpt is not portable - " "use gnulib module unlockpt for portability"); # endif #endif #if @GNULIB_UNSETENV@ /* Remove the variable NAME from the environment. */ # if @REPLACE_UNSETENV@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef unsetenv # define unsetenv rpl_unsetenv # endif _GL_FUNCDECL_RPL (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (unsetenv, int, (const char *name)); # else # if !@HAVE_DECL_UNSETENV@ _GL_FUNCDECL_SYS (unsetenv, int, (const char *name) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (unsetenv, int, (const char *name)); # endif # if !(@REPLACE_UNSETENV@ && !@HAVE_DECL_UNSETENV@) _GL_CXXALIASWARN (unsetenv); # endif #elif defined GNULIB_POSIXCHECK # undef unsetenv # if HAVE_RAW_DECL_UNSETENV _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - " "use gnulib module unsetenv for portability"); # endif #endif /* Convert a wide character to a multibyte character. */ #if @GNULIB_WCTOMB@ # if @REPLACE_WCTOMB@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # undef wctomb # define wctomb rpl_wctomb # endif _GL_FUNCDECL_RPL (wctomb, int, (char *s, wchar_t wc)); _GL_CXXALIAS_RPL (wctomb, int, (char *s, wchar_t wc)); # else _GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (wctomb); # endif #endif #endif /* _@GUARD_PREFIX@_STDLIB_H */ #endif /* _@GUARD_PREFIX@_STDLIB_H */ #endif shishi-1.0.3/src/gl/getopt_int.h0000644000000000000000000001011214273615074013413 00000000000000/* Internal declarations for getopt. Copyright (C) 1989-2022 Free Software Foundation, Inc. This file is part of the GNU C Library and is also part of gnulib. Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifndef _GETOPT_INT_H #define _GETOPT_INT_H 1 #include extern int _getopt_internal (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, int __posixly_correct); /* Reentrant versions which can handle parsing multiple argument vectors at the same time. */ /* Describe how to deal with options that follow non-option ARGV-elements. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what POSIX specifies should happen. PERMUTE means permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. The special argument '--' forces an end of option-scanning regardless of the value of 'ordering'. In the case of RETURN_IN_ORDER, only '--' can cause 'getopt' to return -1 with 'optind' != ARGC. */ enum __ord { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }; /* Data type for reentrant functions. */ struct _getopt_data { /* These have exactly the same meaning as the corresponding global variables, except that they are used for the reentrant versions of getopt. */ int optind; int opterr; int optopt; char *optarg; /* Internal members. */ /* True if the internal members have been initialized. */ int __initialized; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ char *__nextchar; /* See __ord above. */ enum __ord __ordering; /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. 'first_nonopt' is the index in ARGV of the first of them; 'last_nonopt' is the index after the last of them. */ int __first_nonopt; int __last_nonopt; }; /* The initializer is necessary to set OPTIND and OPTERR to their default values and to clear the initialization flag. */ #define _GETOPT_DATA_INITIALIZER { 1, 1 } extern int _getopt_internal_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, int __long_only, struct _getopt_data *__data, int __posixly_correct); extern int _getopt_long_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); extern int _getopt_long_only_r (int ___argc, char **___argv, const char *__shortopts, const struct option *__longopts, int *__longind, struct _getopt_data *__data); #endif /* getopt_int.h */ shishi-1.0.3/src/resume.c0000644000000000000000000000541014273601533012130 00000000000000/* resume.c --- Handle the details of TLS session resumption. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Note: only use syslog to report errors in this file. */ /* Get Shishid stuff. */ #include "kdc.h" typedef struct { char *id; size_t id_size; char *data; size_t data_size; } CACHE; static CACHE *cache_db; static size_t cache_db_ptr = 0; static size_t cache_db_size = 0; int resume_db_store (void *dbf, gnutls_datum_t key, gnutls_datum_t data) { if (cache_db_size == 0) return -1; cache_db[cache_db_ptr].id = xrealloc (cache_db[cache_db_ptr].id, key.size); memcpy (cache_db[cache_db_ptr].id, key.data, key.size); cache_db[cache_db_ptr].id_size = key.size; cache_db[cache_db_ptr].data = xrealloc (cache_db[cache_db_ptr].data, data.size); memcpy (cache_db[cache_db_ptr].data, data.data, data.size); cache_db[cache_db_ptr].data_size = data.size; cache_db_ptr++; cache_db_ptr %= cache_db_size; return 0; } gnutls_datum_t resume_db_fetch (void *dbf, gnutls_datum_t key) { gnutls_datum_t res = { NULL, 0 }; size_t i; for (i = 0; i < cache_db_size; i++) if (key.size == cache_db[i].id_size && memcmp (key.data, cache_db[i].id, key.size) == 0) { res.size = cache_db[i].data_size; res.data = gnutls_malloc (res.size); if (res.data == NULL) return res; memcpy (res.data, cache_db[i].data, res.size); return res; } return res; } int resume_db_delete (void *dbf, gnutls_datum_t key) { size_t i; for (i = 0; i < cache_db_size; i++) if (key.size == cache_db[i].id_size && memcmp (key.data, cache_db[i].id, key.size) == 0) { cache_db[i].id_size = 0; cache_db[i].data_size = 0; return 0; } return -1; } void resume_db_init (size_t nconnections) { resume_db_done (); cache_db = xcalloc (nconnections, sizeof (*cache_db)); cache_db_size = nconnections; } void resume_db_done (void) { size_t i; for (i = 0; i < cache_db_size; i++) { free (cache_db[i].id); free (cache_db[i].data); } free (cache_db); } shishi-1.0.3/src/Makefile.am0000644000000000000000000001074314273603424012526 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SUBDIRS = gl AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) AM_CPPFLAGS = \ -I$(builddir)/gl -I$(srcdir)/gl \ -I$(top_builddir)/lib/gl -I$(top_srcdir)/lib/gl \ -I$(top_builddir)/lib -I$(top_srcdir)/lib \ -I$(top_srcdir)/db AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shishi.conf\" \ -DHOSTKEYSFILE=\"$(KEYDIR)/shishi.keys\" BUILT_SOURCES = shishi_cmd.c shishi_cmd.h shisa_cmd.c shisa_cmd.h \ shishid_cmd.c shishid_cmd.h keytab2shishi_cmd.c \ keytab2shishi_cmd.h ccache2shishi_cmd.c \ ccache2shishi_cmd.h MAINTAINERCLEANFILES = $(BUILT_SOURCES) bin_PROGRAMS = shishi shisa ccache2shishi sbin_PROGRAMS = keytab2shishi if ENABLE_SHISHID sbin_PROGRAMS += shishid endif noinst_LTLIBRARIES = shishi_SOURCES = shishi.c shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-shishi.la \ ../lib/libshishi.la $(LTLIBINTL) noinst_LTLIBRARIES += libcmd-shishi.la libcmd_shishi_la_CFLAGS = libcmd_shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shishi_la_SOURCES = shishi.ggo shishi_cmd.h shishi_cmd.c shishi_cmd.c shishi_cmd.h: $(srcdir)/shishi.ggo Makefile.am gengetopt --unamed-opts="CLIENT [SERVER]" \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shishi.ggo --file-name shishi_cmd shisa_SOURCES = shisa.c shisa_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-shisa.la \ ../db/libshisa.la ../lib/libshishi.la $(LTLIBINTL) noinst_LTLIBRARIES += libcmd-shisa.la libcmd_shisa_la_CFLAGS = libcmd_shisa_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shisa_la_SOURCES = shisa.ggo shisa_cmd.h shisa_cmd.c shisa_cmd.c shisa_cmd.h: $(srcdir)/shisa.ggo Makefile.am gengetopt --unamed-opts="REALM [PRINCIPAL]" \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shisa.ggo --file-name shisa_cmd shishid_SOURCES = shishid.c server.c kdc.h kdc.c if STARTTLS shishid_SOURCES += starttls.c resume.c endif shishid_LDADD = ../lib/gl/libgnu.la gl/libgnu.la ../lib/libshishi.la \ ../db/libshisa.la $(LTLIBGNUTLS) $(LTLIBINTL) libcmd-shishid.la noinst_LTLIBRARIES += libcmd-shishid.la libcmd_shishid_la_CFLAGS = libcmd_shishid_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_shishid_la_SOURCES = shishid.ggo shishid_cmd.h shishid_cmd.c shishid_cmd.c shishid_cmd.h: $(srcdir)/shishid.ggo Makefile.am gengetopt \ --no-handle-help --no-handle-error --no-handle-version \ --input $(srcdir)/shishid.ggo --file-name shishid_cmd keytab2shishi_SOURCES = keytab2shishi.c keytab2shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-keytab2shishi.la \ ../lib/libshishi.la $(LTLIBINTL) noinst_LTLIBRARIES += libcmd-keytab2shishi.la libcmd_keytab2shishi_la_CFLAGS = libcmd_keytab2shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_keytab2shishi_la_SOURCES = keytab2shishi.ggo \ keytab2shishi_cmd.h keytab2shishi_cmd.c keytab2shishi_cmd.c keytab2shishi_cmd.h: $(srcdir)/keytab2shishi.ggo Makefile.am gengetopt --unamed-opts="INFILE [OUTFILE]" \ --no-handle-help --no-handle-error \ --input $(srcdir)/keytab2shishi.ggo --file-name keytab2shishi_cmd ccache2shishi_SOURCES = ccache2shishi.c ccache2shishi_LDADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd-ccache2shishi.la \ ../lib/libshishi.la $(LTLIBINTL) noinst_LTLIBRARIES += libcmd-ccache2shishi.la libcmd_ccache2shishi_la_CFLAGS = libcmd_ccache2shishi_la_LIBADD = ../lib/gl/libgnu.la gl/libgnu.la libcmd_ccache2shishi_la_SOURCES = ccache2shishi.ggo \ ccache2shishi_cmd.h ccache2shishi_cmd.c ccache2shishi_cmd.c ccache2shishi_cmd.h: $(srcdir)/ccache2shishi.ggo Makefile.am gengetopt --unamed-opts="INFILE [OUTFILE]" \ --no-handle-help --no-handle-error \ --input $(srcdir)/ccache2shishi.ggo --file-name ccache2shishi_cmd shishi-1.0.3/src/ccache2shishi.c0000644000000000000000000000713214273601533013333 00000000000000/* ccache2shishi.c --- Print and convert MIT ccache files. * Copyright (C) 2006-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #if HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include /* For getuid. */ #include #include /* Get i18n. */ #include #include #define _(String) gettext (String) #include /* Get set_program_name and program_name. */ #include "progname.h" /* Get error. */ #include "error.h" #include "ccache2shishi_cmd.h" int main (int argc, char *argv[]) { struct gengetopt_args_info args; Shishi *sh; const char *infile = NULL; const char *outfile = NULL; int rc; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); set_program_name (argv[0]); if (cmdline_parser (argc, argv, &args) != 0) { fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); exit (EXIT_FAILURE); } if (args.inputs_num > 0) infile = args.inputs[0]; if (args.inputs_num > 1) outfile = args.inputs[1]; if (args.inputs_num > 2) { error (0, 0, _("too many arguments")); fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); exit (EXIT_FAILURE); } if (args.help_given) { cmdline_parser_print_help (); printf (_("\nMandatory arguments to long options are " "mandatory for short options too.\n\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); return EXIT_SUCCESS; } sh = shishi (); if (!sh) error (EXIT_FAILURE, 0, _("cannot initialize libshishi")); if (args.verbose_given > 0) shishi_cfg (sh, "verbose"); if (args.verbose_given > 1) shishi_cfg (sh, "verbose-noise"); if (args.verbose_given > 2) shishi_cfg (sh, "verbose-asn1"); if (args.verbose_given > 3) shishi_cfg (sh, "verbose-crypto"); if (args.verbose_given > 4) shishi_cfg (sh, "verbose-crypto-noise"); if (!infile) infile = shishi_tkts_default_ccache (sh); if (!outfile) outfile = shishi_tkts_default_file (sh); { Shishi_tkts *tkts; rc = shishi_tkts_from_ccache_file (sh, infile, &tkts); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s: %s", infile, shishi_strerror (rc)); if (args.verbose_given) shishi_tkts_print (tkts, stdout); rc = shishi_tkts_to_file (tkts, outfile); if (rc != SHISHI_OK) error (EXIT_FAILURE, errno, "%s:%s", outfile, shishi_strerror (rc)); if (!args.quiet_flag) { size_t ntkts = shishi_tkts_size (tkts); if (ntkts == 0) printf (_("No tickets written.\n")); else printf (ngettext ("%zu ticket written.\n", "%zu tickets written.\n", ntkts), ntkts); } shishi_tkts_done (&tkts); } shishi_done (sh); return EXIT_SUCCESS; } shishi-1.0.3/src/shishid.c0000644000000000000000000003276314273601533012276 00000000000000/* shishid.c --- Shishi Key Distribution Center daemon. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Get Shishid stuff. */ #include "kdc.h" /* Gnulib helpers. */ #include "progname.h" #include "version-etc.h" #include "error.h" /* Global variables. */ Shishi *handle; Shisa *dbh; struct gengetopt_args_info arg; struct listenspec *listenspec; char *fatal_krberror; size_t fatal_krberror_len; #ifdef USE_STARTTLS gnutls_dh_params_t dh_params; gnutls_anon_server_credentials_t anoncred; gnutls_certificate_credentials_t x509cred; #endif /* Listen to all listenspec's, removing entries that fail. */ static void kdc_listen (void) { struct listenspec *ls, *tmp, *last; int maxfd = 0; int yes; for (last = NULL, ls = listenspec; ls; last = ls, ls = ls->next) { restart: ls->sockfd = socket (ls->ai.ai_family, ls->ai.ai_socktype, ls->ai.ai_protocol); if (ls->sockfd == -1) { error (0, errno, "Cannot listen on %s because socket (%d,%d,%d) failed", ls->str, ls->ai.ai_family, ls->ai.ai_socktype, ls->ai.ai_protocol); goto error; } #ifdef IPV6_V6ONLY if (ls->ai.ai_family == AF_INET6) { yes = 1; if (setsockopt (ls->sockfd, IPPROTO_IPV6, IPV6_V6ONLY, (char *) &yes, sizeof (yes)) < 0) error (0, errno, "Cannot restrict %s to AF_INET6 only", ls->addrname); } #endif yes = 1; if (setsockopt (ls->sockfd, SOL_SOCKET, SO_REUSEADDR, (char *) &yes, sizeof (yes)) < 0) { error (0, errno, "Cannot listen on %s because setsockopt failed", ls->str); goto errorclose; } if (bind (ls->sockfd, ls->ai.ai_addr, ls->ai.ai_addrlen) != 0) { error (0, errno, "Cannot listen on %s because bind %s failed", ls->str, ls->addrname); goto errorclose; } if (ls->ai.ai_socktype == SOCK_STREAM && listen (ls->sockfd, SOMAXCONN) != 0) { error (0, errno, "Cannot listen on %s because listen failed", ls->str); goto errorclose; } if (!arg.quiet_flag) printf ("Listening on %s (%s)...\n", ls->str, ls->addrname); maxfd++; continue; errorclose: close (ls->sockfd); error: tmp = ls->next; if (last == NULL) listenspec = tmp; else last->next = tmp; free (ls->str); free (ls); ls = tmp; if (!ls) break; goto restart; } if (maxfd == 0) error (EXIT_FAILURE, 0, "cannot bind any ports"); if (!arg.quiet_flag) printf ("Listening on %d sockets...\n", maxfd); } /* Close open sockets, reporting any errors. */ static void kdc_unlisten (void) { struct listenspec *ls, *tmp; int rc; for (ls = listenspec; ls; ls = tmp) { tmp = ls->next; if (!ls->listening) syslog (LOG_NOTICE | LOG_DAEMON, "Closing outstanding connection to %s on socket %d", ls->str, ls->sockfd); if (ls->sockfd) { if (!arg.quiet_flag) printf ("Closing %s (%s)...\n", ls->str, ls->addrname); rc = close (ls->sockfd); if (rc != 0) syslog (LOG_ERR | LOG_DAEMON, "Could not close %s on socket %d: %s (%d)", ls->str, ls->sockfd, strerror (errno), errno); } free (ls->ai.ai_addr); free (ls->str); free (ls); } } /* If requested, abandon user privileges. */ static void kdc_setuid (void) { struct passwd *passwd; int rc; if (!arg.setuid_given) return; passwd = getpwnam (arg.setuid_arg); if (passwd == NULL) { if (errno) error (EXIT_FAILURE, errno, "Cannot setuid because getpwnam failed"); else error (EXIT_FAILURE, 0, "no such user `%s'", arg.setuid_arg); } rc = setuid (passwd->pw_uid); if (rc == -1) error (EXIT_FAILURE, errno, "Cannot setuid"); if (!arg.quiet_flag) printf ("User identity set to `%s' (%lu)...\n", passwd->pw_name, (unsigned long) passwd->pw_uid); } /* Create a hard coded error message that can be used in case kdc.c fail to produce */ static int setup_fatal_krberror (void) { Shishi_asn1 krberr; int rc; krberr = shishi_krberror (handle); if (!krberr) return SHISHI_MALLOC_ERROR; rc = shishi_krberror_set_etext (handle, krberr, "Internal KDC error, contact administrator"); if (rc != SHISHI_OK) return rc; rc = shishi_krberror_der (handle, krberr, &fatal_krberror, &fatal_krberror_len); if (rc != SHISHI_OK) return rc; return SHISHI_OK; } /* Core daemon part. Initialize and set up various things, and then hand over control to kdc.c via kdc_loop, and cleaning up afterwards. Note that kdc_loop only return when the process has received SIGINT or SIGTERM. */ static void doit (void) { int rc; rc = shishi_init_server_with_paths (&handle, arg.configuration_file_arg); if (rc) error (EXIT_FAILURE, 0, "Cannot initialize Shishi: %s (%d)", shishi_strerror (rc), rc); if (arg.verbose_given > 1) shishi_cfg (handle, "verbose"); if (arg.verbose_given > 2) shishi_cfg (handle, "verbose-noise"); if (arg.verbose_given > 3) shishi_cfg (handle, "verbose-asn1"); if (arg.verbose_given > 4) shishi_cfg (handle, "verbose-crypto"); if (arg.verbose_given > 5) shishi_cfg (handle, "verbose-crypto-noise"); rc = shisa_init (&dbh); if (rc) error (EXIT_FAILURE, 0, "Cannot initialize Shisa: %s (%d)", shisa_strerror (rc), rc); rc = setup_fatal_krberror (); if (rc) error (EXIT_FAILURE, 0, "Cannot allocate fatal error packet: %s (%d)", shisa_strerror (rc), rc); #ifdef USE_STARTTLS if (!arg.no_tls_flag) { if (!arg.quiet_flag) printf ("Initializing GNUTLS...\n"); rc = gnutls_global_init (); if (rc) error (EXIT_FAILURE, 0, "Cannot initialize GNUTLS: %s (%d)", gnutls_strerror (rc), rc); rc = gnutls_anon_allocate_server_credentials (&anoncred); if (rc) error (EXIT_FAILURE, 0, "Cannot allocate GNUTLS credential: %s (%d)", gnutls_strerror (rc), rc); rc = gnutls_certificate_allocate_credentials (&x509cred); if (rc) error (EXIT_FAILURE, 0, "Cannot allocate GNUTLS X.509 credential: %s (%d)", gnutls_strerror (rc), rc); if (arg.x509cafile_given) { int num; num = gnutls_certificate_set_x509_trust_file (x509cred, arg.x509cafile_arg, GNUTLS_X509_FMT_PEM); if (num <= 0) error (EXIT_FAILURE, 0, "No X.509 CAs found in `%s' (%d): %s", arg.x509cafile_arg, num, gnutls_strerror (num)); if (!arg.quiet_flag) printf ("Parsed %d CAs...\n", num); } if (arg.x509crlfile_given) { int num; num = gnutls_certificate_set_x509_crl_file (x509cred, arg.x509crlfile_arg, GNUTLS_X509_FMT_PEM); if (num <= 0) error (EXIT_FAILURE, 0, "No X.509 CRLs found in `%s' (%d): %s", arg.x509crlfile_arg, num, gnutls_strerror (num)); if (!arg.quiet_flag) printf ("Parsed %d CRLs...\n", num); } if (arg.x509certfile_given && arg.x509keyfile_given) { rc = gnutls_certificate_set_x509_key_file (x509cred, arg.x509certfile_arg, arg.x509keyfile_arg, GNUTLS_X509_FMT_PEM); if (rc != GNUTLS_E_SUCCESS) error (EXIT_FAILURE, 0, "No X.509 server certificate/key found in `%s'/`%s' (%d): %s", arg.x509certfile_arg, arg.x509keyfile_arg, rc, gnutls_strerror (rc)); if (!arg.quiet_flag) printf ("Loaded server certificate/key...\n"); } else if (arg.x509certfile_given || arg.x509keyfile_given) error (EXIT_FAILURE, 0, "Need both --x509certfile and --x509keyfile"); rc = gnutls_dh_params_init (&dh_params); if (rc) error (EXIT_FAILURE, 0, "Cannot initialize GNUTLS DH parameters: %s (%d)", gnutls_strerror (rc), rc); if (!arg.quiet_flag) printf ("Generating Diffie-Hellman parameters...\n"); rc = gnutls_dh_params_generate2 (dh_params, DH_BITS); if (rc) error (EXIT_FAILURE, 0, "Cannot generate GNUTLS DH parameters: %s (%d)", gnutls_strerror (rc), rc); gnutls_anon_set_server_dh_params (anoncred, dh_params); gnutls_certificate_set_dh_params (x509cred, dh_params); resume_db_init (arg.resume_limit_arg); if (!arg.quiet_flag) printf ("Initializing GNUTLS...done\n"); } #endif kdc_listen (); { const char *slash = strrchr (program_name, '/'); const char *shortname = (slash != NULL ? slash + 1 : program_name); #ifdef LOG_PERROR if (arg.verbose_given > 0) openlog (shortname, LOG_CONS | LOG_PERROR, LOG_AUTH); else #endif openlog (shortname, LOG_CONS, LOG_AUTH); } kdc_setuid (); kdc_loop (); kdc_unlisten (); #ifdef USE_STARTTLS if (!arg.no_tls_flag) { if (!arg.quiet_flag) printf ("Deinitializing GNUTLS...\n"); resume_db_done (); gnutls_global_deinit (); if (!arg.quiet_flag) printf ("Deinitializing GNUTLS...done\n"); } #endif shisa_done (dbh); shishi_done (handle); } #define FAMILY_IPV4 "IPv4:" #define FAMILY_IPV6 "IPv6:" #define LISTEN_DEFAULT "*:kerberos/udp, *:kerberos/tcp" /* Parse the --listen parameter, creating listenspec elements. */ static void parse_listen (char *listenstr) { char *ptrptr; char *val; int i; for (i = 0; (val = strtok_r (i == 0 ? listenstr : NULL, ", \t", &ptrptr)); i++) { char *name, *service, *proto; struct listenspec *ls; struct addrinfo hints, *res, *p; int rc; name = xstrdup (val); memset (&hints, 0, sizeof (hints)); if (strncmp (val, FAMILY_IPV4, strlen (FAMILY_IPV4)) == 0) { hints.ai_family = AF_INET; val += strlen (FAMILY_IPV4); } #ifdef WITH_IPV6 else if (strncmp (val, FAMILY_IPV6, strlen (FAMILY_IPV6)) == 0) { hints.ai_family = AF_INET6; val += strlen (FAMILY_IPV6); } #endif else hints.ai_family = AF_UNSPEC; proto = strrchr (val, '/'); if (proto == NULL) error (EXIT_FAILURE, 0, "Could not find protocol type in: `%s'", name); *proto = '\0'; proto++; if (strcmp (proto, "tcp") == 0) hints.ai_socktype = SOCK_STREAM; else if (strcmp (proto, "udp") == 0) hints.ai_socktype = SOCK_DGRAM; else error (EXIT_FAILURE, 0, "Unknown protocol type in `%s': %s", name, proto); service = strrchr (val, ':'); if (service == NULL) error (EXIT_FAILURE, 0, "Could not find service in listen spec: `%s'", name); *service = '\0'; service++; hints.ai_flags = AI_ADDRCONFIG; if (strcmp (val, "*") == 0) { hints.ai_flags |= AI_PASSIVE; rc = getaddrinfo (NULL, "kerberos", &hints, &res); } else rc = getaddrinfo (val, "kerberos", &hints, &res); if (rc != 0) error (EXIT_FAILURE, errno, "Cannot get listen socket for %s (host %s)", name, val); for (p = res; p; p = p->ai_next) { ls = xzalloc (sizeof (*ls)); ls->next = listenspec; listenspec = ls; ls->str = xstrdup (name); ls->bufpos = 0; ls->listening = 1; memcpy (&ls->ai, p, sizeof (*p)); ls->ai.ai_addr = xmemdup (p->ai_addr, p->ai_addrlen); ls->ai.ai_next = NULL; rc = getnameinfo (ls->ai.ai_addr, ls->ai.ai_addrlen, ls->addrname, sizeof (ls->addrname), NULL, 0, NI_NUMERICHOST); if (rc != 0) strncpy (ls->addrname, "unknown address", sizeof (ls->addrname)); } freeaddrinfo (res); free (name); } } const char version_etc_copyright[] = /* Do *not* mark this string for translation. %s is a copyright symbol suitable for this locale, and %d is the copyright year. */ "Copyright %s %d Simon Josefsson."; static void usage (int status) __attribute__((__noreturn__)); static void usage (int status) { if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else { cmdline_parser_print_help (); /* TRANSLATORS: The placeholder indicates the bug-reporting address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ printf (_("\nMandatory arguments to long options are " "mandatory for short options too.\n\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } exit (status); } int main (int argc, char *argv[]) { setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); set_program_name (argv[0]); if (cmdline_parser (argc, argv, &arg) != 0) usage (EXIT_FAILURE); if (arg.version_given) { version_etc (stdout, "shishid", PACKAGE_NAME, PACKAGE_VERSION, "Simon Josefsson", (char *) NULL); return EXIT_SUCCESS; } if (arg.help_given) usage (EXIT_SUCCESS); if (!arg.configuration_file_arg) arg.configuration_file_arg = strdup (SYSTEMCFGFILE); if (!arg.listen_given) arg.listen_arg = strdup (LISTEN_DEFAULT); parse_listen (arg.listen_arg); doit (); free (arg.listen_arg); free (arg.configuration_file_arg); free (arg.setuid_arg); return EXIT_SUCCESS; } shishi-1.0.3/db/0000755000000000000000000000000014273616163010347 500000000000000shishi-1.0.3/db/config.c0000644000000000000000000001204514273601533011675 00000000000000/* cfg.c --- Read Shisa Configuration file. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" /** * shisa_cfg_db: * @dbh: Shisa library handle created by shisa(). * @value: String containing database definition. * * Sets up and opens a new database. The syntax of the parameter * @value is "TYPE[ LOCATION[ PARAMETER]]", where TYPE is one of * the supported database types, typically "file". * * The above substrings LOCATION and PARAMETER are optional strings * passed on verbatim to the database during initialization. * Neither TYPE nor LOCATION may contain embedded spaces, * but PARAMETER may do so. * * Return value: Returns %SHISA_OK if a database was parsed and opened * successfully. **/ int shisa_cfg_db (Shisa * dbh, const char *value) { char *p; char *db; char *location = NULL; char *options = NULL; _Shisa_backend *backend; void *state; int rc; db = xstrdup (value); if ((p = strchr (db, ' '))) { *p++ = '\0'; location = p; if ((p = strchr (p, ' '))) { *p++ = '\0'; options = p; } } backend = _shisa_find_backend (db); if (backend == NULL) { shisa_info (dbh, "Unknown database type: `%s'.", db); free (db); return SHISA_CFG_SYNTAX_ERROR; } rc = backend->init (dbh, location, options, &state); if (rc != SHISA_OK) { shisa_info (dbh, "Cannot initialize `%s' database backend.\n" "Location `%s' and options `%s'.", db, location ? location : "N/A", options ? options : "N/A"); free (db); return rc; } free (db); dbh->dbs = xrealloc (dbh->dbs, ++dbh->ndbs * sizeof (*dbh->dbs)); dbh->dbs->backend = backend; dbh->dbs->state = state; return SHISA_OK; } /** * shisa_cfg: * @dbh: Shisa library handle created by shisa(). * @option: String with options to prime the Shisa library. * * Configures the Shisa library from the specification @option. * This call expects a string declaration of the form "db=VALUE", * or "db VALUE". Here VALUE is the same declaration as used by * shisa_cfg_db(), i.e., of the form "TYPE[ LOCATION[ PARAMETER]]". * * The prefix "db", mandatory in @option, makes shisa_cfg() suited * to a syntax with key-value pairs also in PARAMETER. * * Return value: Returns %SHISA_OK if @option is valid. **/ int shisa_cfg (Shisa * dbh, const char *option) { int rc; if (!option) return SHISA_OK; if (strncmp (option, "db=", 3) != 0 && strncmp (option, "db ", 3) != 0) { shisa_info (dbh, "Unknown option: `%s'.", option); return SHISA_CFG_SYNTAX_ERROR; } rc = shisa_cfg_db (dbh, option + 3); if (rc != SHISA_OK) return rc; return SHISA_OK; } /** * shisa_cfg_from_file: * @dbh: Shisa library handle created by shisa(). * @cfg: File name where to read configuration. * * Configures the Shisa library using a configuration file * located at @cfg. * * Return value: Returns %SHISA_OK if successful. Typically * returns %SHISA_CFG_NO_FILE in response to a misnamed file. **/ int shisa_cfg_from_file (Shisa * dbh, const char *cfg) { char *line = NULL; size_t len = 0; FILE *fh; int rc = SHISA_OK; if (cfg == NULL) return SHISA_OK; fh = fopen (cfg, "r"); if (fh == NULL) { perror (cfg); return SHISA_CFG_NO_FILE; } while (!feof (fh)) { ssize_t n = getline (&line, &len, fh); char *p = line; char *q; if (n <= 0) /* End of file or error. */ break; while (strlen (p) > 0 && (p[strlen (p) - 1] == '\n' || p[strlen (p) - 1] == '\r')) p[strlen (p) - 1] = '\0'; while (*p && strchr (" \t\r\n", *p)) p++; if (*p == '\0' || *p == '#') continue; q = strchr (p, ' '); if (q && (strchr (p, '=') == NULL || q < strchr (p, '='))) *q = '='; rc = shisa_cfg (dbh, p); if (rc != SHISA_OK) break; } free (line); if (ferror (fh)) if (rc == SHISA_OK) return SHISA_CFG_IO_ERROR; if (fclose (fh) != 0) if (rc == SHISA_OK) return SHISA_CFG_IO_ERROR; return rc; } /** * shisa_cfg_default_systemfile: * @dbh: Shisa library handle created by shisa(). * * Fetches information on the installed configuration. * * Return value: Returns file name of the active * system configuration. **/ const char * shisa_cfg_default_systemfile (Shisa * dbh) { return SYSTEMCFGFILE; } shishi-1.0.3/db/info.h0000644000000000000000000000775614273601533011405 00000000000000/* info.h --- Internal header file for shisa library. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef _INFO_H # define _INFO_H # if HAVE_CONFIG_H # include "config.h" # endif # include # include # include # include # include # include # include "gettext.h" # define _(String) dgettext (PACKAGE, String) # define gettext_noop(String) String # define N_(String) gettext_noop (String) /* Get xmalloc. */ # include "xalloc.h" /* Get prototypes. */ # include "shisa.h" typedef int (*_Shisa_db_init) (Shisa * dbh, const char *location, const char *options, void **state); typedef void (*_Shisa_db_done) (Shisa * dbh, void *state); typedef int (*_Shisa_db_enumerate_realms) (Shisa * dbh, void *state, char ***realms, size_t *nrealms); typedef int (*_Shisa_db_enumerate_principals) (Shisa * dbh, void *state, const char *realm, char ***principals, size_t *nprincipals); typedef int (*_Shisa_db_principal_find) (Shisa * dbh, void *state, const char *realm, const char *principal, Shisa_principal * ph); typedef int (*_Shisa_db_principal_update) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph); typedef int (*_Shisa_db_principal_add) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key); typedef int (*_Shisa_db_principal_remove) (Shisa * dbh, void *state, const char *realm, const char *principal); typedef int (*_Shisa_db_keys_find) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * hint, Shisa_key *** keys, size_t *nkeys); typedef int (*_Shisa_db_key_add) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key); typedef int (*_Shisa_db_key_update) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * oldkey, const Shisa_key * newkey); typedef int (*_Shisa_db_key_remove) (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key); struct _Shisa_backend { const char *name; _Shisa_db_init init; _Shisa_db_done done; _Shisa_db_enumerate_realms enumerate_realms; _Shisa_db_enumerate_principals enumerate_principals; _Shisa_db_principal_find principal_find; _Shisa_db_principal_update principal_update; _Shisa_db_principal_add principal_add; _Shisa_db_principal_remove principal_remove; _Shisa_db_keys_find keys_find; _Shisa_db_key_add key_add; _Shisa_db_key_update key_update; _Shisa_db_key_remove key_remove; }; typedef struct _Shisa_backend _Shisa_backend; struct _Shisa_db { _Shisa_backend *backend; void *state; }; typedef struct _Shisa_db _Shisa_db; struct Shisa { _Shisa_db *dbs; size_t ndbs; }; /* Return structure with function pointers implementing a Shisa backend, given a name (e.g., "file"). */ extern _Shisa_backend *_shisa_find_backend (const char *name); #endif /* _INFO_H */ shishi-1.0.3/db/Makefile.in0000644000000000000000000025203014273615653012341 00000000000000# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_LD_VERSION_SCRIPT_TRUE@am__append_1 = -Wl,--version-script=$(srcdir)/libshisa.map @HAVE_LD_VERSION_SCRIPT_FALSE@am__append_2 = -export-symbols-regex '^shisa.*' subdir = db ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/src/gl/m4/autobuild.m4 \ $(top_srcdir)/src/gl/m4/double-slash-root.m4 \ $(top_srcdir)/src/gl/m4/error.m4 \ $(top_srcdir)/src/gl/m4/getopt.m4 \ $(top_srcdir)/src/gl/m4/getprogname.m4 \ $(top_srcdir)/src/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/src/gl/m4/ld-output-def.m4 \ $(top_srcdir)/src/gl/m4/ld-version-script.m4 \ $(top_srcdir)/src/gl/m4/locale_h.m4 \ $(top_srcdir)/src/gl/m4/manywarnings.m4 \ $(top_srcdir)/src/gl/m4/nocrash.m4 \ $(top_srcdir)/src/gl/m4/valgrind-tests.m4 \ $(top_srcdir)/src/gl/m4/version-etc.m4 \ $(top_srcdir)/src/gl/m4/warnings.m4 \ $(top_srcdir)/lib/gl/m4/00gnulib.m4 \ $(top_srcdir)/lib/gl/m4/__inline.m4 \ $(top_srcdir)/lib/gl/m4/absolute-header.m4 \ $(top_srcdir)/lib/gl/m4/af_alg.m4 \ $(top_srcdir)/lib/gl/m4/alloca.m4 \ $(top_srcdir)/lib/gl/m4/arpa_inet_h.m4 \ $(top_srcdir)/lib/gl/m4/base64.m4 \ $(top_srcdir)/lib/gl/m4/bison.m4 \ $(top_srcdir)/lib/gl/m4/byteswap.m4 \ $(top_srcdir)/lib/gl/m4/calloc.m4 \ $(top_srcdir)/lib/gl/m4/clock_time.m4 \ $(top_srcdir)/lib/gl/m4/close.m4 \ $(top_srcdir)/lib/gl/m4/dup2.m4 \ $(top_srcdir)/lib/gl/m4/eealloc.m4 \ $(top_srcdir)/lib/gl/m4/environ.m4 \ $(top_srcdir)/lib/gl/m4/errno_h.m4 \ $(top_srcdir)/lib/gl/m4/explicit_bzero.m4 \ $(top_srcdir)/lib/gl/m4/exponentd.m4 \ $(top_srcdir)/lib/gl/m4/extensions.m4 \ $(top_srcdir)/lib/gl/m4/extern-inline.m4 \ $(top_srcdir)/lib/gl/m4/fcntl-o.m4 \ $(top_srcdir)/lib/gl/m4/fcntl.m4 \ $(top_srcdir)/lib/gl/m4/fcntl_h.m4 \ $(top_srcdir)/lib/gl/m4/fflush.m4 \ $(top_srcdir)/lib/gl/m4/flexmember.m4 \ $(top_srcdir)/lib/gl/m4/float_h.m4 \ $(top_srcdir)/lib/gl/m4/fopen.m4 \ $(top_srcdir)/lib/gl/m4/fpurge.m4 \ $(top_srcdir)/lib/gl/m4/freading.m4 \ $(top_srcdir)/lib/gl/m4/free.m4 \ $(top_srcdir)/lib/gl/m4/fseek.m4 \ $(top_srcdir)/lib/gl/m4/fseeko.m4 \ $(top_srcdir)/lib/gl/m4/fstat.m4 \ $(top_srcdir)/lib/gl/m4/ftell.m4 \ $(top_srcdir)/lib/gl/m4/ftello.m4 \ $(top_srcdir)/lib/gl/m4/gc-des.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc-hmac-sha1.m4 \ $(top_srcdir)/lib/gl/m4/gc-md4.m4 \ $(top_srcdir)/lib/gl/m4/gc-md5.m4 \ $(top_srcdir)/lib/gl/m4/gc.m4 \ $(top_srcdir)/lib/gl/m4/getaddrinfo.m4 \ $(top_srcdir)/lib/gl/m4/getdelim.m4 \ $(top_srcdir)/lib/gl/m4/getdomainname.m4 \ $(top_srcdir)/lib/gl/m4/getdtablesize.m4 \ $(top_srcdir)/lib/gl/m4/gethostname.m4 \ $(top_srcdir)/lib/gl/m4/getline.m4 \ $(top_srcdir)/lib/gl/m4/getpass.m4 \ $(top_srcdir)/lib/gl/m4/getrandom.m4 \ $(top_srcdir)/lib/gl/m4/getsubopt.m4 \ $(top_srcdir)/lib/gl/m4/gettime.m4 \ $(top_srcdir)/lib/gl/m4/gettimeofday.m4 \ $(top_srcdir)/lib/gl/m4/gl-openssl.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-common.m4 \ $(top_srcdir)/lib/gl/m4/gnulib-comp.m4 \ $(top_srcdir)/lib/gl/m4/host-cpu-c-abi.m4 \ $(top_srcdir)/lib/gl/m4/hostent.m4 \ $(top_srcdir)/lib/gl/m4/include_next.m4 \ $(top_srcdir)/lib/gl/m4/inet_ntop.m4 \ $(top_srcdir)/lib/gl/m4/intmax_t.m4 \ $(top_srcdir)/lib/gl/m4/inttypes.m4 \ $(top_srcdir)/lib/gl/m4/inttypes_h.m4 \ $(top_srcdir)/lib/gl/m4/largefile.m4 \ $(top_srcdir)/lib/gl/m4/lib-ld.m4 \ $(top_srcdir)/lib/gl/m4/lib-link.m4 \ $(top_srcdir)/lib/gl/m4/lib-prefix.m4 \ $(top_srcdir)/lib/gl/m4/libgcrypt.m4 \ $(top_srcdir)/lib/gl/m4/limits-h.m4 \ $(top_srcdir)/lib/gl/m4/lseek.m4 \ $(top_srcdir)/lib/gl/m4/malloc.m4 \ $(top_srcdir)/lib/gl/m4/malloca.m4 \ $(top_srcdir)/lib/gl/m4/md4.m4 $(top_srcdir)/lib/gl/m4/md5.m4 \ $(top_srcdir)/lib/gl/m4/memchr.m4 \ $(top_srcdir)/lib/gl/m4/memxor.m4 \ $(top_srcdir)/lib/gl/m4/minmax.m4 \ $(top_srcdir)/lib/gl/m4/mktime.m4 \ $(top_srcdir)/lib/gl/m4/mmap-anon.m4 \ $(top_srcdir)/lib/gl/m4/mode_t.m4 \ $(top_srcdir)/lib/gl/m4/msvc-inval.m4 \ $(top_srcdir)/lib/gl/m4/msvc-nothrow.m4 \ $(top_srcdir)/lib/gl/m4/multiarch.m4 \ $(top_srcdir)/lib/gl/m4/netdb_h.m4 \ $(top_srcdir)/lib/gl/m4/netinet_in_h.m4 \ $(top_srcdir)/lib/gl/m4/nstrftime.m4 \ $(top_srcdir)/lib/gl/m4/off_t.m4 \ $(top_srcdir)/lib/gl/m4/open-cloexec.m4 \ $(top_srcdir)/lib/gl/m4/open-slash.m4 \ $(top_srcdir)/lib/gl/m4/open.m4 \ $(top_srcdir)/lib/gl/m4/parse-datetime.m4 \ $(top_srcdir)/lib/gl/m4/pathmax.m4 \ $(top_srcdir)/lib/gl/m4/printf.m4 \ $(top_srcdir)/lib/gl/m4/rawmemchr.m4 \ $(top_srcdir)/lib/gl/m4/read-file.m4 \ $(top_srcdir)/lib/gl/m4/readlink.m4 \ $(top_srcdir)/lib/gl/m4/realloc.m4 \ $(top_srcdir)/lib/gl/m4/reallocarray.m4 \ $(top_srcdir)/lib/gl/m4/select.m4 \ $(top_srcdir)/lib/gl/m4/servent.m4 \ $(top_srcdir)/lib/gl/m4/setenv.m4 \ $(top_srcdir)/lib/gl/m4/sha1.m4 \ $(top_srcdir)/lib/gl/m4/signal_h.m4 \ $(top_srcdir)/lib/gl/m4/size_max.m4 \ $(top_srcdir)/lib/gl/m4/snprintf.m4 \ $(top_srcdir)/lib/gl/m4/socketlib.m4 \ $(top_srcdir)/lib/gl/m4/sockets.m4 \ $(top_srcdir)/lib/gl/m4/socklen.m4 \ $(top_srcdir)/lib/gl/m4/sockpfaf.m4 \ $(top_srcdir)/lib/gl/m4/ssize_t.m4 \ $(top_srcdir)/lib/gl/m4/stat-time.m4 \ $(top_srcdir)/lib/gl/m4/stat.m4 \ $(top_srcdir)/lib/gl/m4/stdalign.m4 \ $(top_srcdir)/lib/gl/m4/stdarg.m4 \ $(top_srcdir)/lib/gl/m4/stdbool.m4 \ $(top_srcdir)/lib/gl/m4/stddef_h.m4 \ $(top_srcdir)/lib/gl/m4/stdint.m4 \ $(top_srcdir)/lib/gl/m4/stdint_h.m4 \ $(top_srcdir)/lib/gl/m4/stdio_h.m4 \ $(top_srcdir)/lib/gl/m4/stdlib_h.m4 \ $(top_srcdir)/lib/gl/m4/strcase.m4 \ $(top_srcdir)/lib/gl/m4/strchrnul.m4 \ $(top_srcdir)/lib/gl/m4/strdup.m4 \ $(top_srcdir)/lib/gl/m4/strerror.m4 \ $(top_srcdir)/lib/gl/m4/string_h.m4 \ $(top_srcdir)/lib/gl/m4/strings_h.m4 \ $(top_srcdir)/lib/gl/m4/strndup.m4 \ $(top_srcdir)/lib/gl/m4/strnlen.m4 \ $(top_srcdir)/lib/gl/m4/strtok_r.m4 \ $(top_srcdir)/lib/gl/m4/strverscmp.m4 \ $(top_srcdir)/lib/gl/m4/sys_random_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_select_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_socket_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_stat_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_time_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_types_h.m4 \ $(top_srcdir)/lib/gl/m4/sys_uio_h.m4 \ $(top_srcdir)/lib/gl/m4/time_h.m4 \ $(top_srcdir)/lib/gl/m4/time_r.m4 \ $(top_srcdir)/lib/gl/m4/time_rz.m4 \ $(top_srcdir)/lib/gl/m4/timegm.m4 \ $(top_srcdir)/lib/gl/m4/timespec.m4 \ $(top_srcdir)/lib/gl/m4/tm_gmtoff.m4 \ $(top_srcdir)/lib/gl/m4/tzset.m4 \ $(top_srcdir)/lib/gl/m4/ungetc.m4 \ $(top_srcdir)/lib/gl/m4/unistd_h.m4 \ $(top_srcdir)/lib/gl/m4/vasnprintf.m4 \ $(top_srcdir)/lib/gl/m4/vasprintf.m4 \ $(top_srcdir)/lib/gl/m4/warn-on-use.m4 \ $(top_srcdir)/lib/gl/m4/wchar_h.m4 \ $(top_srcdir)/lib/gl/m4/wchar_t.m4 \ $(top_srcdir)/lib/gl/m4/wint_t.m4 \ $(top_srcdir)/lib/gl/m4/xalloc.m4 \ $(top_srcdir)/lib/gl/m4/xsize.m4 \ $(top_srcdir)/lib/gl/m4/xstrndup.m4 \ $(top_srcdir)/lib/gl/m4/xvasprintf.m4 \ $(top_srcdir)/lib/gl/m4/year2038.m4 \ $(top_srcdir)/lib/gl/m4/zzgnulib.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gtk-doc.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libshisa_la_DEPENDENCIES = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am_libshisa_la_OBJECTS = setup.lo config.lo db.lo err.lo core.lo \ file.lo fileutil.lo libshisa_la_OBJECTS = $(am_libshisa_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libshisa_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libshisa_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/config.Plo ./$(DEPDIR)/core.Plo \ ./$(DEPDIR)/db.Plo ./$(DEPDIR)/err.Plo ./$(DEPDIR)/file.Plo \ ./$(DEPDIR)/fileutil.Plo ./$(DEPDIR)/setup.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libshisa_la_SOURCES) DIST_SOURCES = $(libshisa_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALLOCA_H = @ALLOCA_H@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_VALGRINDFLAGS = @AM_VALGRINDFLAGS@ APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@ AR = @AR@ ARFLAGS = @ARFLAGS@ AS = @AS@ ASN1PARSER = @ASN1PARSER@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@ BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@ BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@ BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@ BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@ BYTESWAP_H = @BYTESWAP_H@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CONFDIR = @CONFDIR@ CONFIG_INCLUDE = @CONFIG_INCLUDE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CYGPATH_W = @CYGPATH_W@ DBDIR = @DBDIR@ DEFAULT_VALGRINDFLAGS = @DEFAULT_VALGRINDFLAGS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIA = @DIA@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@ EMULTIHOP_VALUE = @EMULTIHOP_VALUE@ ENOLINK_HIDDEN = @ENOLINK_HIDDEN@ ENOLINK_VALUE = @ENOLINK_VALUE@ EOVERFLOW_HIDDEN = @EOVERFLOW_HIDDEN@ EOVERFLOW_VALUE = @EOVERFLOW_VALUE@ ERRNO_H = @ERRNO_H@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FLOAT_H = @FLOAT_H@ GENGETOPT = @GENGETOPT@ GETADDRINFO_LIB = @GETADDRINFO_LIB@ GETHOSTNAME_LIB = @GETHOSTNAME_LIB@ GETOPT_CDEFS_H = @GETOPT_CDEFS_H@ GETOPT_H = @GETOPT_H@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@ GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@ GL_CXXFLAG_ALLOW_WARNINGS = @GL_CXXFLAG_ALLOW_WARNINGS@ GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@ GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@ GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@ GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@ GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@ GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@ GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@ GL_GNULIB_CHMOD = @GL_GNULIB_CHMOD@ GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@ GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@ GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@ GL_GNULIB_CREAT = @GL_GNULIB_CREAT@ GL_GNULIB_CTIME = @GL_GNULIB_CTIME@ GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@ GL_GNULIB_DUP = @GL_GNULIB_DUP@ GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@ GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@ GL_GNULIB_DUPLOCALE = @GL_GNULIB_DUPLOCALE@ GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@ GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@ GL_GNULIB_EXECL = @GL_GNULIB_EXECL@ GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@ GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@ GL_GNULIB_EXECV = @GL_GNULIB_EXECV@ GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@ GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@ GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@ GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@ GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@ GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@ GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@ GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@ GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@ GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@ GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@ GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@ GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@ GL_GNULIB_FFSL = @GL_GNULIB_FFSL@ GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@ GL_GNULIB_FGETC = @GL_GNULIB_FGETC@ GL_GNULIB_FGETS = @GL_GNULIB_FGETS@ GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@ GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@ GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@ GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@ GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@ GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@ GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@ GL_GNULIB_FREAD = @GL_GNULIB_FREAD@ GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@ GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@ GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@ GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@ GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@ GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@ GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@ GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@ GL_GNULIB_FTELL = @GL_GNULIB_FTELL@ GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@ GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@ GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@ GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@ GL_GNULIB_GETC = @GL_GNULIB_GETC@ GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@ GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@ GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@ GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@ GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@ GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@ GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@ GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@ GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@ GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@ GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@ GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@ GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@ GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@ GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@ GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@ GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@ GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@ GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@ GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@ GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@ GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@ GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@ GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@ GL_GNULIB_LINK = @GL_GNULIB_LINK@ GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@ GL_GNULIB_LOCALECONV = @GL_GNULIB_LOCALECONV@ GL_GNULIB_LOCALENAME = @GL_GNULIB_LOCALENAME@ GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@ GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@ GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@ GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@ GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@ GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@ GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@ GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@ GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@ GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@ GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@ GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@ GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@ GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@ GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@ GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@ GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@ GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@ GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@ GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@ GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@ GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@ GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@ GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@ GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@ GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@ GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@ GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@ GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@ GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@ GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@ GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@ GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@ GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@ GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@ GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@ GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@ GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@ GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@ GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@ GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@ GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@ GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@ GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@ GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@ GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@ GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@ GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@ GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@ GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@ GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@ GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@ GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@ GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@ GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@ GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@ GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@ GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@ GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@ GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@ GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@ GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@ GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@ GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@ GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@ GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@ GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@ GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@ GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@ GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@ GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@ GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@ GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@ GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@ GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@ GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@ GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@ GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@ GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@ GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_GNULIB_OPEN = @GL_GNULIB_OPEN@ GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@ GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@ GL_GNULIB_PERROR = @GL_GNULIB_PERROR@ GL_GNULIB_PIPE = @GL_GNULIB_PIPE@ GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@ GL_GNULIB_POPEN = @GL_GNULIB_POPEN@ GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@ GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@ GL_GNULIB_PREAD = @GL_GNULIB_PREAD@ GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@ GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@ GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@ GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@ GL_GNULIB_PUTC = @GL_GNULIB_PUTC@ GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@ GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@ GL_GNULIB_PUTS = @GL_GNULIB_PUTS@ GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@ GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@ GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@ GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@ GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@ GL_GNULIB_READ = @GL_GNULIB_READ@ GL_GNULIB_READLINK = @GL_GNULIB_READLINK@ GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@ GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@ GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@ GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@ GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@ GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@ GL_GNULIB_RENAME = @GL_GNULIB_RENAME@ GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@ GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@ GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@ GL_GNULIB_SCANF = @GL_GNULIB_SCANF@ GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@ GL_GNULIB_SETENV = @GL_GNULIB_SETENV@ GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@ GL_GNULIB_SETLOCALE = @GL_GNULIB_SETLOCALE@ GL_GNULIB_SETLOCALE_NULL = @GL_GNULIB_SETLOCALE_NULL@ GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@ GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@ GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@ GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@ GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@ GL_GNULIB_STAT = @GL_GNULIB_STAT@ GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@ GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@ GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@ GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@ GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@ GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@ GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@ GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@ GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@ GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@ GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@ GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@ GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@ GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@ GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@ GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@ GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@ GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@ GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@ GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@ GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@ GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@ GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@ GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@ GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@ GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@ GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@ GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@ GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@ GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@ GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@ GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@ GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@ GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@ GL_GNULIB_TZSET = @GL_GNULIB_TZSET@ GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@ GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@ GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@ GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@ GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@ GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@ GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@ GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@ GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@ GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@ GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@ GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@ GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@ GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@ GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@ GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@ GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@ GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@ GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@ GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@ GL_GNULIB_WRITE = @GL_GNULIB_WRITE@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@ GL_LIBGL_GNULIB_ACCEPT = @GL_LIBGL_GNULIB_ACCEPT@ GL_LIBGL_GNULIB_ACCEPT4 = @GL_LIBGL_GNULIB_ACCEPT4@ GL_LIBGL_GNULIB_ACCESS = @GL_LIBGL_GNULIB_ACCESS@ GL_LIBGL_GNULIB_ALIGNED_ALLOC = @GL_LIBGL_GNULIB_ALIGNED_ALLOC@ GL_LIBGL_GNULIB_ATOLL = @GL_LIBGL_GNULIB_ATOLL@ GL_LIBGL_GNULIB_BIND = @GL_LIBGL_GNULIB_BIND@ GL_LIBGL_GNULIB_BTOWC = @GL_LIBGL_GNULIB_BTOWC@ GL_LIBGL_GNULIB_CALLOC_GNU = @GL_LIBGL_GNULIB_CALLOC_GNU@ GL_LIBGL_GNULIB_CALLOC_POSIX = @GL_LIBGL_GNULIB_CALLOC_POSIX@ GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME = @GL_LIBGL_GNULIB_CANONICALIZE_FILE_NAME@ GL_LIBGL_GNULIB_CHDIR = @GL_LIBGL_GNULIB_CHDIR@ GL_LIBGL_GNULIB_CHMOD = @GL_LIBGL_GNULIB_CHMOD@ GL_LIBGL_GNULIB_CHOWN = @GL_LIBGL_GNULIB_CHOWN@ GL_LIBGL_GNULIB_CLOSE = @GL_LIBGL_GNULIB_CLOSE@ GL_LIBGL_GNULIB_CONNECT = @GL_LIBGL_GNULIB_CONNECT@ GL_LIBGL_GNULIB_COPY_FILE_RANGE = @GL_LIBGL_GNULIB_COPY_FILE_RANGE@ GL_LIBGL_GNULIB_CREAT = @GL_LIBGL_GNULIB_CREAT@ GL_LIBGL_GNULIB_CTIME = @GL_LIBGL_GNULIB_CTIME@ GL_LIBGL_GNULIB_DPRINTF = @GL_LIBGL_GNULIB_DPRINTF@ GL_LIBGL_GNULIB_DUP = @GL_LIBGL_GNULIB_DUP@ GL_LIBGL_GNULIB_DUP2 = @GL_LIBGL_GNULIB_DUP2@ GL_LIBGL_GNULIB_DUP3 = @GL_LIBGL_GNULIB_DUP3@ GL_LIBGL_GNULIB_ENVIRON = @GL_LIBGL_GNULIB_ENVIRON@ GL_LIBGL_GNULIB_EUIDACCESS = @GL_LIBGL_GNULIB_EUIDACCESS@ GL_LIBGL_GNULIB_EXECL = @GL_LIBGL_GNULIB_EXECL@ GL_LIBGL_GNULIB_EXECLE = @GL_LIBGL_GNULIB_EXECLE@ GL_LIBGL_GNULIB_EXECLP = @GL_LIBGL_GNULIB_EXECLP@ GL_LIBGL_GNULIB_EXECV = @GL_LIBGL_GNULIB_EXECV@ GL_LIBGL_GNULIB_EXECVE = @GL_LIBGL_GNULIB_EXECVE@ GL_LIBGL_GNULIB_EXECVP = @GL_LIBGL_GNULIB_EXECVP@ GL_LIBGL_GNULIB_EXECVPE = @GL_LIBGL_GNULIB_EXECVPE@ GL_LIBGL_GNULIB_EXPLICIT_BZERO = @GL_LIBGL_GNULIB_EXPLICIT_BZERO@ GL_LIBGL_GNULIB_FACCESSAT = @GL_LIBGL_GNULIB_FACCESSAT@ GL_LIBGL_GNULIB_FCHDIR = @GL_LIBGL_GNULIB_FCHDIR@ GL_LIBGL_GNULIB_FCHMODAT = @GL_LIBGL_GNULIB_FCHMODAT@ GL_LIBGL_GNULIB_FCHOWNAT = @GL_LIBGL_GNULIB_FCHOWNAT@ GL_LIBGL_GNULIB_FCLOSE = @GL_LIBGL_GNULIB_FCLOSE@ GL_LIBGL_GNULIB_FCNTL = @GL_LIBGL_GNULIB_FCNTL@ GL_LIBGL_GNULIB_FDATASYNC = @GL_LIBGL_GNULIB_FDATASYNC@ GL_LIBGL_GNULIB_FDOPEN = @GL_LIBGL_GNULIB_FDOPEN@ GL_LIBGL_GNULIB_FFLUSH = @GL_LIBGL_GNULIB_FFLUSH@ GL_LIBGL_GNULIB_FFS = @GL_LIBGL_GNULIB_FFS@ GL_LIBGL_GNULIB_FFSL = @GL_LIBGL_GNULIB_FFSL@ GL_LIBGL_GNULIB_FFSLL = @GL_LIBGL_GNULIB_FFSLL@ GL_LIBGL_GNULIB_FGETC = @GL_LIBGL_GNULIB_FGETC@ GL_LIBGL_GNULIB_FGETS = @GL_LIBGL_GNULIB_FGETS@ GL_LIBGL_GNULIB_FOPEN = @GL_LIBGL_GNULIB_FOPEN@ GL_LIBGL_GNULIB_FOPEN_GNU = @GL_LIBGL_GNULIB_FOPEN_GNU@ GL_LIBGL_GNULIB_FPRINTF = @GL_LIBGL_GNULIB_FPRINTF@ GL_LIBGL_GNULIB_FPRINTF_POSIX = @GL_LIBGL_GNULIB_FPRINTF_POSIX@ GL_LIBGL_GNULIB_FPURGE = @GL_LIBGL_GNULIB_FPURGE@ GL_LIBGL_GNULIB_FPUTC = @GL_LIBGL_GNULIB_FPUTC@ GL_LIBGL_GNULIB_FPUTS = @GL_LIBGL_GNULIB_FPUTS@ GL_LIBGL_GNULIB_FREAD = @GL_LIBGL_GNULIB_FREAD@ GL_LIBGL_GNULIB_FREE_POSIX = @GL_LIBGL_GNULIB_FREE_POSIX@ GL_LIBGL_GNULIB_FREOPEN = @GL_LIBGL_GNULIB_FREOPEN@ GL_LIBGL_GNULIB_FSCANF = @GL_LIBGL_GNULIB_FSCANF@ GL_LIBGL_GNULIB_FSEEK = @GL_LIBGL_GNULIB_FSEEK@ GL_LIBGL_GNULIB_FSEEKO = @GL_LIBGL_GNULIB_FSEEKO@ GL_LIBGL_GNULIB_FSTAT = @GL_LIBGL_GNULIB_FSTAT@ GL_LIBGL_GNULIB_FSTATAT = @GL_LIBGL_GNULIB_FSTATAT@ GL_LIBGL_GNULIB_FSYNC = @GL_LIBGL_GNULIB_FSYNC@ GL_LIBGL_GNULIB_FTELL = @GL_LIBGL_GNULIB_FTELL@ GL_LIBGL_GNULIB_FTELLO = @GL_LIBGL_GNULIB_FTELLO@ GL_LIBGL_GNULIB_FTRUNCATE = @GL_LIBGL_GNULIB_FTRUNCATE@ GL_LIBGL_GNULIB_FUTIMENS = @GL_LIBGL_GNULIB_FUTIMENS@ GL_LIBGL_GNULIB_FWRITE = @GL_LIBGL_GNULIB_FWRITE@ GL_LIBGL_GNULIB_GETADDRINFO = @GL_LIBGL_GNULIB_GETADDRINFO@ GL_LIBGL_GNULIB_GETC = @GL_LIBGL_GNULIB_GETC@ GL_LIBGL_GNULIB_GETCHAR = @GL_LIBGL_GNULIB_GETCHAR@ GL_LIBGL_GNULIB_GETCWD = @GL_LIBGL_GNULIB_GETCWD@ GL_LIBGL_GNULIB_GETDELIM = @GL_LIBGL_GNULIB_GETDELIM@ GL_LIBGL_GNULIB_GETDOMAINNAME = @GL_LIBGL_GNULIB_GETDOMAINNAME@ GL_LIBGL_GNULIB_GETDTABLESIZE = @GL_LIBGL_GNULIB_GETDTABLESIZE@ GL_LIBGL_GNULIB_GETENTROPY = @GL_LIBGL_GNULIB_GETENTROPY@ GL_LIBGL_GNULIB_GETGROUPS = @GL_LIBGL_GNULIB_GETGROUPS@ GL_LIBGL_GNULIB_GETHOSTNAME = @GL_LIBGL_GNULIB_GETHOSTNAME@ GL_LIBGL_GNULIB_GETLINE = @GL_LIBGL_GNULIB_GETLINE@ GL_LIBGL_GNULIB_GETLOADAVG = @GL_LIBGL_GNULIB_GETLOADAVG@ GL_LIBGL_GNULIB_GETLOGIN = @GL_LIBGL_GNULIB_GETLOGIN@ GL_LIBGL_GNULIB_GETLOGIN_R = @GL_LIBGL_GNULIB_GETLOGIN_R@ GL_LIBGL_GNULIB_GETOPT_POSIX = @GL_LIBGL_GNULIB_GETOPT_POSIX@ GL_LIBGL_GNULIB_GETPAGESIZE = @GL_LIBGL_GNULIB_GETPAGESIZE@ GL_LIBGL_GNULIB_GETPASS = @GL_LIBGL_GNULIB_GETPASS@ GL_LIBGL_GNULIB_GETPASS_GNU = @GL_LIBGL_GNULIB_GETPASS_GNU@ GL_LIBGL_GNULIB_GETPEERNAME = @GL_LIBGL_GNULIB_GETPEERNAME@ GL_LIBGL_GNULIB_GETRANDOM = @GL_LIBGL_GNULIB_GETRANDOM@ GL_LIBGL_GNULIB_GETSOCKNAME = @GL_LIBGL_GNULIB_GETSOCKNAME@ GL_LIBGL_GNULIB_GETSOCKOPT = @GL_LIBGL_GNULIB_GETSOCKOPT@ GL_LIBGL_GNULIB_GETSUBOPT = @GL_LIBGL_GNULIB_GETSUBOPT@ GL_LIBGL_GNULIB_GETTIMEOFDAY = @GL_LIBGL_GNULIB_GETTIMEOFDAY@ GL_LIBGL_GNULIB_GETUMASK = @GL_LIBGL_GNULIB_GETUMASK@ GL_LIBGL_GNULIB_GETUSERSHELL = @GL_LIBGL_GNULIB_GETUSERSHELL@ GL_LIBGL_GNULIB_GRANTPT = @GL_LIBGL_GNULIB_GRANTPT@ GL_LIBGL_GNULIB_GROUP_MEMBER = @GL_LIBGL_GNULIB_GROUP_MEMBER@ GL_LIBGL_GNULIB_IMAXABS = @GL_LIBGL_GNULIB_IMAXABS@ GL_LIBGL_GNULIB_IMAXDIV = @GL_LIBGL_GNULIB_IMAXDIV@ GL_LIBGL_GNULIB_INET_NTOP = @GL_LIBGL_GNULIB_INET_NTOP@ GL_LIBGL_GNULIB_INET_PTON = @GL_LIBGL_GNULIB_INET_PTON@ GL_LIBGL_GNULIB_ISATTY = @GL_LIBGL_GNULIB_ISATTY@ GL_LIBGL_GNULIB_LCHMOD = @GL_LIBGL_GNULIB_LCHMOD@ GL_LIBGL_GNULIB_LCHOWN = @GL_LIBGL_GNULIB_LCHOWN@ GL_LIBGL_GNULIB_LINK = @GL_LIBGL_GNULIB_LINK@ GL_LIBGL_GNULIB_LINKAT = @GL_LIBGL_GNULIB_LINKAT@ GL_LIBGL_GNULIB_LISTEN = @GL_LIBGL_GNULIB_LISTEN@ GL_LIBGL_GNULIB_LOCALTIME = @GL_LIBGL_GNULIB_LOCALTIME@ GL_LIBGL_GNULIB_LSEEK = @GL_LIBGL_GNULIB_LSEEK@ GL_LIBGL_GNULIB_LSTAT = @GL_LIBGL_GNULIB_LSTAT@ GL_LIBGL_GNULIB_MALLOC_GNU = @GL_LIBGL_GNULIB_MALLOC_GNU@ GL_LIBGL_GNULIB_MALLOC_POSIX = @GL_LIBGL_GNULIB_MALLOC_POSIX@ GL_LIBGL_GNULIB_MBRLEN = @GL_LIBGL_GNULIB_MBRLEN@ GL_LIBGL_GNULIB_MBRTOWC = @GL_LIBGL_GNULIB_MBRTOWC@ GL_LIBGL_GNULIB_MBSCASECMP = @GL_LIBGL_GNULIB_MBSCASECMP@ GL_LIBGL_GNULIB_MBSCASESTR = @GL_LIBGL_GNULIB_MBSCASESTR@ GL_LIBGL_GNULIB_MBSCHR = @GL_LIBGL_GNULIB_MBSCHR@ GL_LIBGL_GNULIB_MBSCSPN = @GL_LIBGL_GNULIB_MBSCSPN@ GL_LIBGL_GNULIB_MBSINIT = @GL_LIBGL_GNULIB_MBSINIT@ GL_LIBGL_GNULIB_MBSLEN = @GL_LIBGL_GNULIB_MBSLEN@ GL_LIBGL_GNULIB_MBSNCASECMP = @GL_LIBGL_GNULIB_MBSNCASECMP@ GL_LIBGL_GNULIB_MBSNLEN = @GL_LIBGL_GNULIB_MBSNLEN@ GL_LIBGL_GNULIB_MBSNRTOWCS = @GL_LIBGL_GNULIB_MBSNRTOWCS@ GL_LIBGL_GNULIB_MBSPBRK = @GL_LIBGL_GNULIB_MBSPBRK@ GL_LIBGL_GNULIB_MBSPCASECMP = @GL_LIBGL_GNULIB_MBSPCASECMP@ GL_LIBGL_GNULIB_MBSRCHR = @GL_LIBGL_GNULIB_MBSRCHR@ GL_LIBGL_GNULIB_MBSRTOWCS = @GL_LIBGL_GNULIB_MBSRTOWCS@ GL_LIBGL_GNULIB_MBSSEP = @GL_LIBGL_GNULIB_MBSSEP@ GL_LIBGL_GNULIB_MBSSPN = @GL_LIBGL_GNULIB_MBSSPN@ GL_LIBGL_GNULIB_MBSSTR = @GL_LIBGL_GNULIB_MBSSTR@ GL_LIBGL_GNULIB_MBSTOK_R = @GL_LIBGL_GNULIB_MBSTOK_R@ GL_LIBGL_GNULIB_MBTOWC = @GL_LIBGL_GNULIB_MBTOWC@ GL_LIBGL_GNULIB_MDA_ACCESS = @GL_LIBGL_GNULIB_MDA_ACCESS@ GL_LIBGL_GNULIB_MDA_CHDIR = @GL_LIBGL_GNULIB_MDA_CHDIR@ GL_LIBGL_GNULIB_MDA_CHMOD = @GL_LIBGL_GNULIB_MDA_CHMOD@ GL_LIBGL_GNULIB_MDA_CLOSE = @GL_LIBGL_GNULIB_MDA_CLOSE@ GL_LIBGL_GNULIB_MDA_CREAT = @GL_LIBGL_GNULIB_MDA_CREAT@ GL_LIBGL_GNULIB_MDA_DUP = @GL_LIBGL_GNULIB_MDA_DUP@ GL_LIBGL_GNULIB_MDA_DUP2 = @GL_LIBGL_GNULIB_MDA_DUP2@ GL_LIBGL_GNULIB_MDA_ECVT = @GL_LIBGL_GNULIB_MDA_ECVT@ GL_LIBGL_GNULIB_MDA_EXECL = @GL_LIBGL_GNULIB_MDA_EXECL@ GL_LIBGL_GNULIB_MDA_EXECLE = @GL_LIBGL_GNULIB_MDA_EXECLE@ GL_LIBGL_GNULIB_MDA_EXECLP = @GL_LIBGL_GNULIB_MDA_EXECLP@ GL_LIBGL_GNULIB_MDA_EXECV = @GL_LIBGL_GNULIB_MDA_EXECV@ GL_LIBGL_GNULIB_MDA_EXECVE = @GL_LIBGL_GNULIB_MDA_EXECVE@ GL_LIBGL_GNULIB_MDA_EXECVP = @GL_LIBGL_GNULIB_MDA_EXECVP@ GL_LIBGL_GNULIB_MDA_EXECVPE = @GL_LIBGL_GNULIB_MDA_EXECVPE@ GL_LIBGL_GNULIB_MDA_FCLOSEALL = @GL_LIBGL_GNULIB_MDA_FCLOSEALL@ GL_LIBGL_GNULIB_MDA_FCVT = @GL_LIBGL_GNULIB_MDA_FCVT@ GL_LIBGL_GNULIB_MDA_FDOPEN = @GL_LIBGL_GNULIB_MDA_FDOPEN@ GL_LIBGL_GNULIB_MDA_FILENO = @GL_LIBGL_GNULIB_MDA_FILENO@ GL_LIBGL_GNULIB_MDA_GCVT = @GL_LIBGL_GNULIB_MDA_GCVT@ GL_LIBGL_GNULIB_MDA_GETCWD = @GL_LIBGL_GNULIB_MDA_GETCWD@ GL_LIBGL_GNULIB_MDA_GETPID = @GL_LIBGL_GNULIB_MDA_GETPID@ GL_LIBGL_GNULIB_MDA_GETW = @GL_LIBGL_GNULIB_MDA_GETW@ GL_LIBGL_GNULIB_MDA_ISATTY = @GL_LIBGL_GNULIB_MDA_ISATTY@ GL_LIBGL_GNULIB_MDA_LSEEK = @GL_LIBGL_GNULIB_MDA_LSEEK@ GL_LIBGL_GNULIB_MDA_MEMCCPY = @GL_LIBGL_GNULIB_MDA_MEMCCPY@ GL_LIBGL_GNULIB_MDA_MKDIR = @GL_LIBGL_GNULIB_MDA_MKDIR@ GL_LIBGL_GNULIB_MDA_MKTEMP = @GL_LIBGL_GNULIB_MDA_MKTEMP@ GL_LIBGL_GNULIB_MDA_OPEN = @GL_LIBGL_GNULIB_MDA_OPEN@ GL_LIBGL_GNULIB_MDA_PUTENV = @GL_LIBGL_GNULIB_MDA_PUTENV@ GL_LIBGL_GNULIB_MDA_PUTW = @GL_LIBGL_GNULIB_MDA_PUTW@ GL_LIBGL_GNULIB_MDA_READ = @GL_LIBGL_GNULIB_MDA_READ@ GL_LIBGL_GNULIB_MDA_RMDIR = @GL_LIBGL_GNULIB_MDA_RMDIR@ GL_LIBGL_GNULIB_MDA_STRDUP = @GL_LIBGL_GNULIB_MDA_STRDUP@ GL_LIBGL_GNULIB_MDA_SWAB = @GL_LIBGL_GNULIB_MDA_SWAB@ GL_LIBGL_GNULIB_MDA_TEMPNAM = @GL_LIBGL_GNULIB_MDA_TEMPNAM@ GL_LIBGL_GNULIB_MDA_TZSET = @GL_LIBGL_GNULIB_MDA_TZSET@ GL_LIBGL_GNULIB_MDA_UMASK = @GL_LIBGL_GNULIB_MDA_UMASK@ GL_LIBGL_GNULIB_MDA_UNLINK = @GL_LIBGL_GNULIB_MDA_UNLINK@ GL_LIBGL_GNULIB_MDA_WCSDUP = @GL_LIBGL_GNULIB_MDA_WCSDUP@ GL_LIBGL_GNULIB_MDA_WRITE = @GL_LIBGL_GNULIB_MDA_WRITE@ GL_LIBGL_GNULIB_MEMCHR = @GL_LIBGL_GNULIB_MEMCHR@ GL_LIBGL_GNULIB_MEMMEM = @GL_LIBGL_GNULIB_MEMMEM@ GL_LIBGL_GNULIB_MEMPCPY = @GL_LIBGL_GNULIB_MEMPCPY@ GL_LIBGL_GNULIB_MEMRCHR = @GL_LIBGL_GNULIB_MEMRCHR@ GL_LIBGL_GNULIB_MKDIR = @GL_LIBGL_GNULIB_MKDIR@ GL_LIBGL_GNULIB_MKDIRAT = @GL_LIBGL_GNULIB_MKDIRAT@ GL_LIBGL_GNULIB_MKDTEMP = @GL_LIBGL_GNULIB_MKDTEMP@ GL_LIBGL_GNULIB_MKFIFO = @GL_LIBGL_GNULIB_MKFIFO@ GL_LIBGL_GNULIB_MKFIFOAT = @GL_LIBGL_GNULIB_MKFIFOAT@ GL_LIBGL_GNULIB_MKNOD = @GL_LIBGL_GNULIB_MKNOD@ GL_LIBGL_GNULIB_MKNODAT = @GL_LIBGL_GNULIB_MKNODAT@ GL_LIBGL_GNULIB_MKOSTEMP = @GL_LIBGL_GNULIB_MKOSTEMP@ GL_LIBGL_GNULIB_MKOSTEMPS = @GL_LIBGL_GNULIB_MKOSTEMPS@ GL_LIBGL_GNULIB_MKSTEMP = @GL_LIBGL_GNULIB_MKSTEMP@ GL_LIBGL_GNULIB_MKSTEMPS = @GL_LIBGL_GNULIB_MKSTEMPS@ GL_LIBGL_GNULIB_MKTIME = @GL_LIBGL_GNULIB_MKTIME@ GL_LIBGL_GNULIB_NANOSLEEP = @GL_LIBGL_GNULIB_NANOSLEEP@ GL_LIBGL_GNULIB_NONBLOCKING = @GL_LIBGL_GNULIB_NONBLOCKING@ GL_LIBGL_GNULIB_OBSTACK_PRINTF = @GL_LIBGL_GNULIB_OBSTACK_PRINTF@ GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_LIBGL_GNULIB_OBSTACK_PRINTF_POSIX@ GL_LIBGL_GNULIB_OPEN = @GL_LIBGL_GNULIB_OPEN@ GL_LIBGL_GNULIB_OPENAT = @GL_LIBGL_GNULIB_OPENAT@ GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_LIBGL_GNULIB_OVERRIDES_STRUCT_STAT@ GL_LIBGL_GNULIB_PCLOSE = @GL_LIBGL_GNULIB_PCLOSE@ GL_LIBGL_GNULIB_PERROR = @GL_LIBGL_GNULIB_PERROR@ GL_LIBGL_GNULIB_PIPE = @GL_LIBGL_GNULIB_PIPE@ GL_LIBGL_GNULIB_PIPE2 = @GL_LIBGL_GNULIB_PIPE2@ GL_LIBGL_GNULIB_POPEN = @GL_LIBGL_GNULIB_POPEN@ GL_LIBGL_GNULIB_POSIX_MEMALIGN = @GL_LIBGL_GNULIB_POSIX_MEMALIGN@ GL_LIBGL_GNULIB_POSIX_OPENPT = @GL_LIBGL_GNULIB_POSIX_OPENPT@ GL_LIBGL_GNULIB_PREAD = @GL_LIBGL_GNULIB_PREAD@ GL_LIBGL_GNULIB_PRINTF = @GL_LIBGL_GNULIB_PRINTF@ GL_LIBGL_GNULIB_PRINTF_POSIX = @GL_LIBGL_GNULIB_PRINTF_POSIX@ GL_LIBGL_GNULIB_PSELECT = @GL_LIBGL_GNULIB_PSELECT@ GL_LIBGL_GNULIB_PTHREAD_SIGMASK = @GL_LIBGL_GNULIB_PTHREAD_SIGMASK@ GL_LIBGL_GNULIB_PTSNAME = @GL_LIBGL_GNULIB_PTSNAME@ GL_LIBGL_GNULIB_PTSNAME_R = @GL_LIBGL_GNULIB_PTSNAME_R@ GL_LIBGL_GNULIB_PUTC = @GL_LIBGL_GNULIB_PUTC@ GL_LIBGL_GNULIB_PUTCHAR = @GL_LIBGL_GNULIB_PUTCHAR@ GL_LIBGL_GNULIB_PUTENV = @GL_LIBGL_GNULIB_PUTENV@ GL_LIBGL_GNULIB_PUTS = @GL_LIBGL_GNULIB_PUTS@ GL_LIBGL_GNULIB_PWRITE = @GL_LIBGL_GNULIB_PWRITE@ GL_LIBGL_GNULIB_QSORT_R = @GL_LIBGL_GNULIB_QSORT_R@ GL_LIBGL_GNULIB_RAISE = @GL_LIBGL_GNULIB_RAISE@ GL_LIBGL_GNULIB_RANDOM = @GL_LIBGL_GNULIB_RANDOM@ GL_LIBGL_GNULIB_RANDOM_R = @GL_LIBGL_GNULIB_RANDOM_R@ GL_LIBGL_GNULIB_RAWMEMCHR = @GL_LIBGL_GNULIB_RAWMEMCHR@ GL_LIBGL_GNULIB_READ = @GL_LIBGL_GNULIB_READ@ GL_LIBGL_GNULIB_READLINK = @GL_LIBGL_GNULIB_READLINK@ GL_LIBGL_GNULIB_READLINKAT = @GL_LIBGL_GNULIB_READLINKAT@ GL_LIBGL_GNULIB_REALLOCARRAY = @GL_LIBGL_GNULIB_REALLOCARRAY@ GL_LIBGL_GNULIB_REALLOC_GNU = @GL_LIBGL_GNULIB_REALLOC_GNU@ GL_LIBGL_GNULIB_REALLOC_POSIX = @GL_LIBGL_GNULIB_REALLOC_POSIX@ GL_LIBGL_GNULIB_REALPATH = @GL_LIBGL_GNULIB_REALPATH@ GL_LIBGL_GNULIB_RECV = @GL_LIBGL_GNULIB_RECV@ GL_LIBGL_GNULIB_RECVFROM = @GL_LIBGL_GNULIB_RECVFROM@ GL_LIBGL_GNULIB_REMOVE = @GL_LIBGL_GNULIB_REMOVE@ GL_LIBGL_GNULIB_RENAME = @GL_LIBGL_GNULIB_RENAME@ GL_LIBGL_GNULIB_RENAMEAT = @GL_LIBGL_GNULIB_RENAMEAT@ GL_LIBGL_GNULIB_RMDIR = @GL_LIBGL_GNULIB_RMDIR@ GL_LIBGL_GNULIB_RPMATCH = @GL_LIBGL_GNULIB_RPMATCH@ GL_LIBGL_GNULIB_SCANF = @GL_LIBGL_GNULIB_SCANF@ GL_LIBGL_GNULIB_SECURE_GETENV = @GL_LIBGL_GNULIB_SECURE_GETENV@ GL_LIBGL_GNULIB_SELECT = @GL_LIBGL_GNULIB_SELECT@ GL_LIBGL_GNULIB_SEND = @GL_LIBGL_GNULIB_SEND@ GL_LIBGL_GNULIB_SENDTO = @GL_LIBGL_GNULIB_SENDTO@ GL_LIBGL_GNULIB_SETENV = @GL_LIBGL_GNULIB_SETENV@ GL_LIBGL_GNULIB_SETHOSTNAME = @GL_LIBGL_GNULIB_SETHOSTNAME@ GL_LIBGL_GNULIB_SETSOCKOPT = @GL_LIBGL_GNULIB_SETSOCKOPT@ GL_LIBGL_GNULIB_SHUTDOWN = @GL_LIBGL_GNULIB_SHUTDOWN@ GL_LIBGL_GNULIB_SIGABBREV_NP = @GL_LIBGL_GNULIB_SIGABBREV_NP@ GL_LIBGL_GNULIB_SIGACTION = @GL_LIBGL_GNULIB_SIGACTION@ GL_LIBGL_GNULIB_SIGDESCR_NP = @GL_LIBGL_GNULIB_SIGDESCR_NP@ GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE = @GL_LIBGL_GNULIB_SIGNAL_H_SIGPIPE@ GL_LIBGL_GNULIB_SIGPROCMASK = @GL_LIBGL_GNULIB_SIGPROCMASK@ GL_LIBGL_GNULIB_SLEEP = @GL_LIBGL_GNULIB_SLEEP@ GL_LIBGL_GNULIB_SNPRINTF = @GL_LIBGL_GNULIB_SNPRINTF@ GL_LIBGL_GNULIB_SOCKET = @GL_LIBGL_GNULIB_SOCKET@ GL_LIBGL_GNULIB_SPRINTF_POSIX = @GL_LIBGL_GNULIB_SPRINTF_POSIX@ GL_LIBGL_GNULIB_STAT = @GL_LIBGL_GNULIB_STAT@ GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING = @GL_LIBGL_GNULIB_STDIO_H_NONBLOCKING@ GL_LIBGL_GNULIB_STDIO_H_SIGPIPE = @GL_LIBGL_GNULIB_STDIO_H_SIGPIPE@ GL_LIBGL_GNULIB_STPCPY = @GL_LIBGL_GNULIB_STPCPY@ GL_LIBGL_GNULIB_STPNCPY = @GL_LIBGL_GNULIB_STPNCPY@ GL_LIBGL_GNULIB_STRCASESTR = @GL_LIBGL_GNULIB_STRCASESTR@ GL_LIBGL_GNULIB_STRCHRNUL = @GL_LIBGL_GNULIB_STRCHRNUL@ GL_LIBGL_GNULIB_STRDUP = @GL_LIBGL_GNULIB_STRDUP@ GL_LIBGL_GNULIB_STRERROR = @GL_LIBGL_GNULIB_STRERROR@ GL_LIBGL_GNULIB_STRERRORNAME_NP = @GL_LIBGL_GNULIB_STRERRORNAME_NP@ GL_LIBGL_GNULIB_STRERROR_R = @GL_LIBGL_GNULIB_STRERROR_R@ GL_LIBGL_GNULIB_STRFTIME = @GL_LIBGL_GNULIB_STRFTIME@ GL_LIBGL_GNULIB_STRNCAT = @GL_LIBGL_GNULIB_STRNCAT@ GL_LIBGL_GNULIB_STRNDUP = @GL_LIBGL_GNULIB_STRNDUP@ GL_LIBGL_GNULIB_STRNLEN = @GL_LIBGL_GNULIB_STRNLEN@ GL_LIBGL_GNULIB_STRPBRK = @GL_LIBGL_GNULIB_STRPBRK@ GL_LIBGL_GNULIB_STRPTIME = @GL_LIBGL_GNULIB_STRPTIME@ GL_LIBGL_GNULIB_STRSEP = @GL_LIBGL_GNULIB_STRSEP@ GL_LIBGL_GNULIB_STRSIGNAL = @GL_LIBGL_GNULIB_STRSIGNAL@ GL_LIBGL_GNULIB_STRSTR = @GL_LIBGL_GNULIB_STRSTR@ GL_LIBGL_GNULIB_STRTOD = @GL_LIBGL_GNULIB_STRTOD@ GL_LIBGL_GNULIB_STRTOIMAX = @GL_LIBGL_GNULIB_STRTOIMAX@ GL_LIBGL_GNULIB_STRTOK_R = @GL_LIBGL_GNULIB_STRTOK_R@ GL_LIBGL_GNULIB_STRTOL = @GL_LIBGL_GNULIB_STRTOL@ GL_LIBGL_GNULIB_STRTOLD = @GL_LIBGL_GNULIB_STRTOLD@ GL_LIBGL_GNULIB_STRTOLL = @GL_LIBGL_GNULIB_STRTOLL@ GL_LIBGL_GNULIB_STRTOUL = @GL_LIBGL_GNULIB_STRTOUL@ GL_LIBGL_GNULIB_STRTOULL = @GL_LIBGL_GNULIB_STRTOULL@ GL_LIBGL_GNULIB_STRTOUMAX = @GL_LIBGL_GNULIB_STRTOUMAX@ GL_LIBGL_GNULIB_STRVERSCMP = @GL_LIBGL_GNULIB_STRVERSCMP@ GL_LIBGL_GNULIB_SYMLINK = @GL_LIBGL_GNULIB_SYMLINK@ GL_LIBGL_GNULIB_SYMLINKAT = @GL_LIBGL_GNULIB_SYMLINKAT@ GL_LIBGL_GNULIB_SYSTEM_POSIX = @GL_LIBGL_GNULIB_SYSTEM_POSIX@ GL_LIBGL_GNULIB_TIMEGM = @GL_LIBGL_GNULIB_TIMEGM@ GL_LIBGL_GNULIB_TIMESPEC_GET = @GL_LIBGL_GNULIB_TIMESPEC_GET@ GL_LIBGL_GNULIB_TIMESPEC_GETRES = @GL_LIBGL_GNULIB_TIMESPEC_GETRES@ GL_LIBGL_GNULIB_TIME_R = @GL_LIBGL_GNULIB_TIME_R@ GL_LIBGL_GNULIB_TIME_RZ = @GL_LIBGL_GNULIB_TIME_RZ@ GL_LIBGL_GNULIB_TMPFILE = @GL_LIBGL_GNULIB_TMPFILE@ GL_LIBGL_GNULIB_TRUNCATE = @GL_LIBGL_GNULIB_TRUNCATE@ GL_LIBGL_GNULIB_TTYNAME_R = @GL_LIBGL_GNULIB_TTYNAME_R@ GL_LIBGL_GNULIB_TZSET = @GL_LIBGL_GNULIB_TZSET@ GL_LIBGL_GNULIB_UNISTD_H_GETOPT = @GL_LIBGL_GNULIB_UNISTD_H_GETOPT@ GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING = @GL_LIBGL_GNULIB_UNISTD_H_NONBLOCKING@ GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE = @GL_LIBGL_GNULIB_UNISTD_H_SIGPIPE@ GL_LIBGL_GNULIB_UNLINK = @GL_LIBGL_GNULIB_UNLINK@ GL_LIBGL_GNULIB_UNLINKAT = @GL_LIBGL_GNULIB_UNLINKAT@ GL_LIBGL_GNULIB_UNLOCKPT = @GL_LIBGL_GNULIB_UNLOCKPT@ GL_LIBGL_GNULIB_UNSETENV = @GL_LIBGL_GNULIB_UNSETENV@ GL_LIBGL_GNULIB_USLEEP = @GL_LIBGL_GNULIB_USLEEP@ GL_LIBGL_GNULIB_UTIMENSAT = @GL_LIBGL_GNULIB_UTIMENSAT@ GL_LIBGL_GNULIB_VASPRINTF = @GL_LIBGL_GNULIB_VASPRINTF@ GL_LIBGL_GNULIB_VDPRINTF = @GL_LIBGL_GNULIB_VDPRINTF@ GL_LIBGL_GNULIB_VFPRINTF = @GL_LIBGL_GNULIB_VFPRINTF@ GL_LIBGL_GNULIB_VFPRINTF_POSIX = @GL_LIBGL_GNULIB_VFPRINTF_POSIX@ GL_LIBGL_GNULIB_VFSCANF = @GL_LIBGL_GNULIB_VFSCANF@ GL_LIBGL_GNULIB_VPRINTF = @GL_LIBGL_GNULIB_VPRINTF@ GL_LIBGL_GNULIB_VPRINTF_POSIX = @GL_LIBGL_GNULIB_VPRINTF_POSIX@ GL_LIBGL_GNULIB_VSCANF = @GL_LIBGL_GNULIB_VSCANF@ GL_LIBGL_GNULIB_VSNPRINTF = @GL_LIBGL_GNULIB_VSNPRINTF@ GL_LIBGL_GNULIB_VSPRINTF_POSIX = @GL_LIBGL_GNULIB_VSPRINTF_POSIX@ GL_LIBGL_GNULIB_WCPCPY = @GL_LIBGL_GNULIB_WCPCPY@ GL_LIBGL_GNULIB_WCPNCPY = @GL_LIBGL_GNULIB_WCPNCPY@ GL_LIBGL_GNULIB_WCRTOMB = @GL_LIBGL_GNULIB_WCRTOMB@ GL_LIBGL_GNULIB_WCSCASECMP = @GL_LIBGL_GNULIB_WCSCASECMP@ GL_LIBGL_GNULIB_WCSCAT = @GL_LIBGL_GNULIB_WCSCAT@ GL_LIBGL_GNULIB_WCSCHR = @GL_LIBGL_GNULIB_WCSCHR@ GL_LIBGL_GNULIB_WCSCMP = @GL_LIBGL_GNULIB_WCSCMP@ GL_LIBGL_GNULIB_WCSCOLL = @GL_LIBGL_GNULIB_WCSCOLL@ GL_LIBGL_GNULIB_WCSCPY = @GL_LIBGL_GNULIB_WCSCPY@ GL_LIBGL_GNULIB_WCSCSPN = @GL_LIBGL_GNULIB_WCSCSPN@ GL_LIBGL_GNULIB_WCSDUP = @GL_LIBGL_GNULIB_WCSDUP@ GL_LIBGL_GNULIB_WCSFTIME = @GL_LIBGL_GNULIB_WCSFTIME@ GL_LIBGL_GNULIB_WCSLEN = @GL_LIBGL_GNULIB_WCSLEN@ GL_LIBGL_GNULIB_WCSNCASECMP = @GL_LIBGL_GNULIB_WCSNCASECMP@ GL_LIBGL_GNULIB_WCSNCAT = @GL_LIBGL_GNULIB_WCSNCAT@ GL_LIBGL_GNULIB_WCSNCMP = @GL_LIBGL_GNULIB_WCSNCMP@ GL_LIBGL_GNULIB_WCSNCPY = @GL_LIBGL_GNULIB_WCSNCPY@ GL_LIBGL_GNULIB_WCSNLEN = @GL_LIBGL_GNULIB_WCSNLEN@ GL_LIBGL_GNULIB_WCSNRTOMBS = @GL_LIBGL_GNULIB_WCSNRTOMBS@ GL_LIBGL_GNULIB_WCSPBRK = @GL_LIBGL_GNULIB_WCSPBRK@ GL_LIBGL_GNULIB_WCSRCHR = @GL_LIBGL_GNULIB_WCSRCHR@ GL_LIBGL_GNULIB_WCSRTOMBS = @GL_LIBGL_GNULIB_WCSRTOMBS@ GL_LIBGL_GNULIB_WCSSPN = @GL_LIBGL_GNULIB_WCSSPN@ GL_LIBGL_GNULIB_WCSSTR = @GL_LIBGL_GNULIB_WCSSTR@ GL_LIBGL_GNULIB_WCSTOK = @GL_LIBGL_GNULIB_WCSTOK@ GL_LIBGL_GNULIB_WCSWIDTH = @GL_LIBGL_GNULIB_WCSWIDTH@ GL_LIBGL_GNULIB_WCSXFRM = @GL_LIBGL_GNULIB_WCSXFRM@ GL_LIBGL_GNULIB_WCTOB = @GL_LIBGL_GNULIB_WCTOB@ GL_LIBGL_GNULIB_WCTOMB = @GL_LIBGL_GNULIB_WCTOMB@ GL_LIBGL_GNULIB_WCWIDTH = @GL_LIBGL_GNULIB_WCWIDTH@ GL_LIBGL_GNULIB_WMEMCHR = @GL_LIBGL_GNULIB_WMEMCHR@ GL_LIBGL_GNULIB_WMEMCMP = @GL_LIBGL_GNULIB_WMEMCMP@ GL_LIBGL_GNULIB_WMEMCPY = @GL_LIBGL_GNULIB_WMEMCPY@ GL_LIBGL_GNULIB_WMEMMOVE = @GL_LIBGL_GNULIB_WMEMMOVE@ GL_LIBGL_GNULIB_WMEMPCPY = @GL_LIBGL_GNULIB_WMEMPCPY@ GL_LIBGL_GNULIB_WMEMSET = @GL_LIBGL_GNULIB_WMEMSET@ GL_LIBGL_GNULIB_WRITE = @GL_LIBGL_GNULIB_WRITE@ GL_LIBGL_GNULIB__EXIT = @GL_LIBGL_GNULIB__EXIT@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@ GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ HAVE_ACCEPT4 = @HAVE_ACCEPT4@ HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@ HAVE_ALLOCA_H = @HAVE_ALLOCA_H@ HAVE_ARPA_INET_H = @HAVE_ARPA_INET_H@ HAVE_ATOLL = @HAVE_ATOLL@ HAVE_BTOWC = @HAVE_BTOWC@ HAVE_C99_STDINT_H = @HAVE_C99_STDINT_H@ HAVE_CANONICALIZE_FILE_NAME = @HAVE_CANONICALIZE_FILE_NAME@ HAVE_CHOWN = @HAVE_CHOWN@ HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@ HAVE_CRTDEFS_H = @HAVE_CRTDEFS_H@ HAVE_DECL_ECVT = @HAVE_DECL_ECVT@ HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@ HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@ HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@ HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@ HAVE_DECL_FCVT = @HAVE_DECL_FCVT@ HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@ HAVE_DECL_FREEADDRINFO = @HAVE_DECL_FREEADDRINFO@ HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@ HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@ HAVE_DECL_GAI_STRERROR = @HAVE_DECL_GAI_STRERROR@ HAVE_DECL_GCVT = @HAVE_DECL_GCVT@ HAVE_DECL_GETADDRINFO = @HAVE_DECL_GETADDRINFO@ HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@ HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@ HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@ HAVE_DECL_GETLOADAVG = @HAVE_DECL_GETLOADAVG@ HAVE_DECL_GETLOGIN = @HAVE_DECL_GETLOGIN@ HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@ HAVE_DECL_GETNAMEINFO = @HAVE_DECL_GETNAMEINFO@ HAVE_DECL_GETPAGESIZE = @HAVE_DECL_GETPAGESIZE@ HAVE_DECL_GETUSERSHELL = @HAVE_DECL_GETUSERSHELL@ HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@ HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@ HAVE_DECL_INET_NTOP = @HAVE_DECL_INET_NTOP@ HAVE_DECL_INET_PTON = @HAVE_DECL_INET_PTON@ HAVE_DECL_INITSTATE = @HAVE_DECL_INITSTATE@ HAVE_DECL_LOCALTIME_R = @HAVE_DECL_LOCALTIME_R@ HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@ HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@ HAVE_DECL_OBSTACK_PRINTF = @HAVE_DECL_OBSTACK_PRINTF@ HAVE_DECL_SETENV = @HAVE_DECL_SETENV@ HAVE_DECL_SETHOSTNAME = @HAVE_DECL_SETHOSTNAME@ HAVE_DECL_SETSTATE = @HAVE_DECL_SETSTATE@ HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@ HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@ HAVE_DECL_STRERROR_R = @HAVE_DECL_STRERROR_R@ HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@ HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@ HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@ HAVE_DECL_STRSIGNAL = @HAVE_DECL_STRSIGNAL@ HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@ HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@ HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@ HAVE_DECL_TRUNCATE = @HAVE_DECL_TRUNCATE@ HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@ HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@ HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@ HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@ HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@ HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@ HAVE_DPRINTF = @HAVE_DPRINTF@ HAVE_DUP3 = @HAVE_DUP3@ HAVE_DUPLOCALE = @HAVE_DUPLOCALE@ HAVE_EUIDACCESS = @HAVE_EUIDACCESS@ HAVE_EXECVPE = @HAVE_EXECVPE@ HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@ HAVE_FACCESSAT = @HAVE_FACCESSAT@ HAVE_FCHDIR = @HAVE_FCHDIR@ HAVE_FCHMODAT = @HAVE_FCHMODAT@ HAVE_FCHOWNAT = @HAVE_FCHOWNAT@ HAVE_FCNTL = @HAVE_FCNTL@ HAVE_FDATASYNC = @HAVE_FDATASYNC@ HAVE_FEATURES_H = @HAVE_FEATURES_H@ HAVE_FFS = @HAVE_FFS@ HAVE_FFSL = @HAVE_FFSL@ HAVE_FFSLL = @HAVE_FFSLL@ HAVE_FREELOCALE = @HAVE_FREELOCALE@ HAVE_FSEEKO = @HAVE_FSEEKO@ HAVE_FSTATAT = @HAVE_FSTATAT@ HAVE_FSYNC = @HAVE_FSYNC@ HAVE_FTELLO = @HAVE_FTELLO@ HAVE_FTRUNCATE = @HAVE_FTRUNCATE@ HAVE_FUTIMENS = @HAVE_FUTIMENS@ HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@ HAVE_GETENTROPY = @HAVE_GETENTROPY@ HAVE_GETGROUPS = @HAVE_GETGROUPS@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ HAVE_GETLOGIN = @HAVE_GETLOGIN@ HAVE_GETOPT_H = @HAVE_GETOPT_H@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ HAVE_GETPASS = @HAVE_GETPASS@ HAVE_GETRANDOM = @HAVE_GETRANDOM@ HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ HAVE_GETUMASK = @HAVE_GETUMASK@ HAVE_GRANTPT = @HAVE_GRANTPT@ HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@ HAVE_IMAXDIV_T = @HAVE_IMAXDIV_T@ HAVE_INITSTATE = @HAVE_INITSTATE@ HAVE_INTTYPES_H = @HAVE_INTTYPES_H@ HAVE_LCHMOD = @HAVE_LCHMOD@ HAVE_LCHOWN = @HAVE_LCHOWN@ HAVE_LIBGCRYPT = @HAVE_LIBGCRYPT@ HAVE_LIBGNUTLS = @HAVE_LIBGNUTLS@ HAVE_LIBIDN = @HAVE_LIBIDN@ HAVE_LIBRESOLV = @HAVE_LIBRESOLV@ HAVE_LIBTASN1 = @HAVE_LIBTASN1@ HAVE_LINK = @HAVE_LINK@ HAVE_LINKAT = @HAVE_LINKAT@ HAVE_LSTAT = @HAVE_LSTAT@ HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@ HAVE_MBRLEN = @HAVE_MBRLEN@ HAVE_MBRTOWC = @HAVE_MBRTOWC@ HAVE_MBSINIT = @HAVE_MBSINIT@ HAVE_MBSLEN = @HAVE_MBSLEN@ HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@ HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@ HAVE_MBTOWC = @HAVE_MBTOWC@ HAVE_MEMPCPY = @HAVE_MEMPCPY@ HAVE_MKDIRAT = @HAVE_MKDIRAT@ HAVE_MKDTEMP = @HAVE_MKDTEMP@ HAVE_MKFIFO = @HAVE_MKFIFO@ HAVE_MKFIFOAT = @HAVE_MKFIFOAT@ HAVE_MKNOD = @HAVE_MKNOD@ HAVE_MKNODAT = @HAVE_MKNODAT@ HAVE_MKOSTEMP = @HAVE_MKOSTEMP@ HAVE_MKOSTEMPS = @HAVE_MKOSTEMPS@ HAVE_MKSTEMP = @HAVE_MKSTEMP@ HAVE_MKSTEMPS = @HAVE_MKSTEMPS@ HAVE_MSVC_INVALID_PARAMETER_HANDLER = @HAVE_MSVC_INVALID_PARAMETER_HANDLER@ HAVE_NANOSLEEP = @HAVE_NANOSLEEP@ HAVE_NETDB_H = @HAVE_NETDB_H@ HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_OPENAT = @HAVE_OPENAT@ HAVE_OS_H = @HAVE_OS_H@ HAVE_PCLOSE = @HAVE_PCLOSE@ HAVE_PIPE = @HAVE_PIPE@ HAVE_PIPE2 = @HAVE_PIPE2@ HAVE_POPEN = @HAVE_POPEN@ HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@ HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@ HAVE_POSIX_SIGNALBLOCKING = @HAVE_POSIX_SIGNALBLOCKING@ HAVE_PREAD = @HAVE_PREAD@ HAVE_PSELECT = @HAVE_PSELECT@ HAVE_PTHREAD_SIGMASK = @HAVE_PTHREAD_SIGMASK@ HAVE_PTSNAME = @HAVE_PTSNAME@ HAVE_PTSNAME_R = @HAVE_PTSNAME_R@ HAVE_PWRITE = @HAVE_PWRITE@ HAVE_QSORT_R = @HAVE_QSORT_R@ HAVE_RAISE = @HAVE_RAISE@ HAVE_RANDOM = @HAVE_RANDOM@ HAVE_RANDOM_H = @HAVE_RANDOM_H@ HAVE_RANDOM_R = @HAVE_RANDOM_R@ HAVE_RAWMEMCHR = @HAVE_RAWMEMCHR@ HAVE_READLINK = @HAVE_READLINK@ HAVE_READLINKAT = @HAVE_READLINKAT@ HAVE_REALLOCARRAY = @HAVE_REALLOCARRAY@ HAVE_REALPATH = @HAVE_REALPATH@ HAVE_RENAMEAT = @HAVE_RENAMEAT@ HAVE_RPMATCH = @HAVE_RPMATCH@ HAVE_SA_FAMILY_T = @HAVE_SA_FAMILY_T@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@ HAVE_SETENV = @HAVE_SETENV@ HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@ HAVE_SETSTATE = @HAVE_SETSTATE@ HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@ HAVE_SIGACTION = @HAVE_SIGACTION@ HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@ HAVE_SIGHANDLER_T = @HAVE_SIGHANDLER_T@ HAVE_SIGINFO_T = @HAVE_SIGINFO_T@ HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@ HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@ HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@ HAVE_SIGSET_T = @HAVE_SIGSET_T@ HAVE_SLEEP = @HAVE_SLEEP@ HAVE_STDINT_H = @HAVE_STDINT_H@ HAVE_STPCPY = @HAVE_STPCPY@ HAVE_STPNCPY = @HAVE_STPNCPY@ HAVE_STRCASECMP = @HAVE_STRCASECMP@ HAVE_STRCASESTR = @HAVE_STRCASESTR@ HAVE_STRCHRNUL = @HAVE_STRCHRNUL@ HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@ HAVE_STRINGS_H = @HAVE_STRINGS_H@ HAVE_STRPBRK = @HAVE_STRPBRK@ HAVE_STRPTIME = @HAVE_STRPTIME@ HAVE_STRSEP = @HAVE_STRSEP@ HAVE_STRTOD = @HAVE_STRTOD@ HAVE_STRTOL = @HAVE_STRTOL@ HAVE_STRTOLD = @HAVE_STRTOLD@ HAVE_STRTOLL = @HAVE_STRTOLL@ HAVE_STRTOUL = @HAVE_STRTOUL@ HAVE_STRTOULL = @HAVE_STRTOULL@ HAVE_STRUCT_ADDRINFO = @HAVE_STRUCT_ADDRINFO@ HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@ HAVE_STRUCT_SIGACTION_SA_SIGACTION = @HAVE_STRUCT_SIGACTION_SA_SIGACTION@ HAVE_STRUCT_SOCKADDR_STORAGE = @HAVE_STRUCT_SOCKADDR_STORAGE@ HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = @HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY@ HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@ HAVE_STRVERSCMP = @HAVE_STRVERSCMP@ HAVE_SYMLINK = @HAVE_SYMLINK@ HAVE_SYMLINKAT = @HAVE_SYMLINKAT@ HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@ HAVE_SYS_CDEFS_H = @HAVE_SYS_CDEFS_H@ HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@ HAVE_SYS_LOADAVG_H = @HAVE_SYS_LOADAVG_H@ HAVE_SYS_PARAM_H = @HAVE_SYS_PARAM_H@ HAVE_SYS_RANDOM_H = @HAVE_SYS_RANDOM_H@ HAVE_SYS_SELECT_H = @HAVE_SYS_SELECT_H@ HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@ HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@ HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@ HAVE_SYS_UIO_H = @HAVE_SYS_UIO_H@ HAVE_TIMEGM = @HAVE_TIMEGM@ HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@ HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@ HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T = @HAVE_TYPE_VOLATILE_SIG_ATOMIC_T@ HAVE_UNISTD_H = @HAVE_UNISTD_H@ HAVE_UNLINKAT = @HAVE_UNLINKAT@ HAVE_UNLOCKPT = @HAVE_UNLOCKPT@ HAVE_USLEEP = @HAVE_USLEEP@ HAVE_UTIMENSAT = @HAVE_UTIMENSAT@ HAVE_VASPRINTF = @HAVE_VASPRINTF@ HAVE_VDPRINTF = @HAVE_VDPRINTF@ HAVE_WCHAR_H = @HAVE_WCHAR_H@ HAVE_WCHAR_T = @HAVE_WCHAR_T@ HAVE_WCPCPY = @HAVE_WCPCPY@ HAVE_WCPNCPY = @HAVE_WCPNCPY@ HAVE_WCRTOMB = @HAVE_WCRTOMB@ HAVE_WCSCASECMP = @HAVE_WCSCASECMP@ HAVE_WCSCAT = @HAVE_WCSCAT@ HAVE_WCSCHR = @HAVE_WCSCHR@ HAVE_WCSCMP = @HAVE_WCSCMP@ HAVE_WCSCOLL = @HAVE_WCSCOLL@ HAVE_WCSCPY = @HAVE_WCSCPY@ HAVE_WCSCSPN = @HAVE_WCSCSPN@ HAVE_WCSDUP = @HAVE_WCSDUP@ HAVE_WCSFTIME = @HAVE_WCSFTIME@ HAVE_WCSLEN = @HAVE_WCSLEN@ HAVE_WCSNCASECMP = @HAVE_WCSNCASECMP@ HAVE_WCSNCAT = @HAVE_WCSNCAT@ HAVE_WCSNCMP = @HAVE_WCSNCMP@ HAVE_WCSNCPY = @HAVE_WCSNCPY@ HAVE_WCSNLEN = @HAVE_WCSNLEN@ HAVE_WCSNRTOMBS = @HAVE_WCSNRTOMBS@ HAVE_WCSPBRK = @HAVE_WCSPBRK@ HAVE_WCSRCHR = @HAVE_WCSRCHR@ HAVE_WCSRTOMBS = @HAVE_WCSRTOMBS@ HAVE_WCSSPN = @HAVE_WCSSPN@ HAVE_WCSSTR = @HAVE_WCSSTR@ HAVE_WCSTOK = @HAVE_WCSTOK@ HAVE_WCSWIDTH = @HAVE_WCSWIDTH@ HAVE_WCSXFRM = @HAVE_WCSXFRM@ HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@ HAVE_WINT_T = @HAVE_WINT_T@ HAVE_WMEMCHR = @HAVE_WMEMCHR@ HAVE_WMEMCMP = @HAVE_WMEMCMP@ HAVE_WMEMCPY = @HAVE_WMEMCPY@ HAVE_WMEMMOVE = @HAVE_WMEMMOVE@ HAVE_WMEMPCPY = @HAVE_WMEMPCPY@ HAVE_WMEMSET = @HAVE_WMEMSET@ HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@ HAVE_XLOCALE_H = @HAVE_XLOCALE_H@ HAVE__BOOL = @HAVE__BOOL@ HAVE__EXIT = @HAVE__EXIT@ HELP2MAN = @HELP2MAN@ HOSTENT_LIB = @HOSTENT_LIB@ HTML_DIR = @HTML_DIR@ INCLUDE_NEXT = @INCLUDE_NEXT@ INCLUDE_NEXT_AS_FIRST_DIRECTIVE = @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ INET_NTOP_LIB = @INET_NTOP_LIB@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@ INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ KEYDIR = @KEYDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBGCRYPT = @LIBGCRYPT@ LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ LIBGCRYPT_PREFIX = @LIBGCRYPT_PREFIX@ LIBGNUTLS = @LIBGNUTLS@ LIBGNUTLS_PREFIX = @LIBGNUTLS_PREFIX@ LIBICONV = @LIBICONV@ LIBIDN = @LIBIDN@ LIBIDN_PREFIX = @LIBIDN_PREFIX@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRESOLV = @LIBRESOLV@ LIBRESOLV_PREFIX = @LIBRESOLV_PREFIX@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTASN1 = @LIBTASN1@ LIBTASN1_PREFIX = @LIBTASN1_PREFIX@ LIBTESTS_LIBDEPS = @LIBTESTS_LIBDEPS@ LIBTOOL = @LIBTOOL@ LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@ LIB_CRYPTO = @LIB_CRYPTO@ LIB_GETRANDOM = @LIB_GETRANDOM@ LIB_SELECT = @LIB_SELECT@ LIMITS_H = @LIMITS_H@ LIPO = @LIPO@ LN_S = @LN_S@ LOCALENAME_ENHANCE_LOCALE_FUNCS = @LOCALENAME_ENHANCE_LOCALE_FUNCS@ LOG_VALGRIND = @LOG_VALGRIND@ LTALLOCA = @LTALLOCA@ LTLIBGCRYPT = @LTLIBGCRYPT@ LTLIBGNUTLS = @LTLIBGNUTLS@ LTLIBICONV = @LTLIBICONV@ LTLIBIDN = @LTLIBIDN@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LTLIBRESOLV = @LTLIBRESOLV@ LTLIBTASN1 = @LTLIBTASN1@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_REVISION = @LT_REVISION@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAJOR_VERSION = @MAJOR_VERSION@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MINOR_VERSION = @MINOR_VERSION@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NETINET_IN_H = @NETINET_IN_H@ NEXT_ARPA_INET_H = @NEXT_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H = @NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H = @NEXT_AS_FIRST_DIRECTIVE_ERRNO_H@ NEXT_AS_FIRST_DIRECTIVE_FCNTL_H = @NEXT_AS_FIRST_DIRECTIVE_FCNTL_H@ NEXT_AS_FIRST_DIRECTIVE_FLOAT_H = @NEXT_AS_FIRST_DIRECTIVE_FLOAT_H@ NEXT_AS_FIRST_DIRECTIVE_GETOPT_H = @NEXT_AS_FIRST_DIRECTIVE_GETOPT_H@ NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H = @NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H@ NEXT_AS_FIRST_DIRECTIVE_LIMITS_H = @NEXT_AS_FIRST_DIRECTIVE_LIMITS_H@ NEXT_AS_FIRST_DIRECTIVE_LOCALE_H = @NEXT_AS_FIRST_DIRECTIVE_LOCALE_H@ NEXT_AS_FIRST_DIRECTIVE_NETDB_H = @NEXT_AS_FIRST_DIRECTIVE_NETDB_H@ NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H = @NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H@ NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H = @NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H = @NEXT_AS_FIRST_DIRECTIVE_STDARG_H@ NEXT_AS_FIRST_DIRECTIVE_STDDEF_H = @NEXT_AS_FIRST_DIRECTIVE_STDDEF_H@ NEXT_AS_FIRST_DIRECTIVE_STDINT_H = @NEXT_AS_FIRST_DIRECTIVE_STDINT_H@ NEXT_AS_FIRST_DIRECTIVE_STDIO_H = @NEXT_AS_FIRST_DIRECTIVE_STDIO_H@ NEXT_AS_FIRST_DIRECTIVE_STDLIB_H = @NEXT_AS_FIRST_DIRECTIVE_STDLIB_H@ NEXT_AS_FIRST_DIRECTIVE_STRINGS_H = @NEXT_AS_FIRST_DIRECTIVE_STRINGS_H@ NEXT_AS_FIRST_DIRECTIVE_STRING_H = @NEXT_AS_FIRST_DIRECTIVE_STRING_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H@ NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H = @NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H@ NEXT_AS_FIRST_DIRECTIVE_TIME_H = @NEXT_AS_FIRST_DIRECTIVE_TIME_H@ NEXT_AS_FIRST_DIRECTIVE_UNISTD_H = @NEXT_AS_FIRST_DIRECTIVE_UNISTD_H@ NEXT_AS_FIRST_DIRECTIVE_WCHAR_H = @NEXT_AS_FIRST_DIRECTIVE_WCHAR_H@ NEXT_ERRNO_H = @NEXT_ERRNO_H@ NEXT_FCNTL_H = @NEXT_FCNTL_H@ NEXT_FLOAT_H = @NEXT_FLOAT_H@ NEXT_GETOPT_H = @NEXT_GETOPT_H@ NEXT_INTTYPES_H = @NEXT_INTTYPES_H@ NEXT_LIMITS_H = @NEXT_LIMITS_H@ NEXT_LOCALE_H = @NEXT_LOCALE_H@ NEXT_NETDB_H = @NEXT_NETDB_H@ NEXT_NETINET_IN_H = @NEXT_NETINET_IN_H@ NEXT_SIGNAL_H = @NEXT_SIGNAL_H@ NEXT_STDARG_H = @NEXT_STDARG_H@ NEXT_STDDEF_H = @NEXT_STDDEF_H@ NEXT_STDINT_H = @NEXT_STDINT_H@ NEXT_STDIO_H = @NEXT_STDIO_H@ NEXT_STDLIB_H = @NEXT_STDLIB_H@ NEXT_STRINGS_H = @NEXT_STRINGS_H@ NEXT_STRING_H = @NEXT_STRING_H@ NEXT_SYS_RANDOM_H = @NEXT_SYS_RANDOM_H@ NEXT_SYS_SELECT_H = @NEXT_SYS_SELECT_H@ NEXT_SYS_SOCKET_H = @NEXT_SYS_SOCKET_H@ NEXT_SYS_STAT_H = @NEXT_SYS_STAT_H@ NEXT_SYS_TIME_H = @NEXT_SYS_TIME_H@ NEXT_SYS_TYPES_H = @NEXT_SYS_TYPES_H@ NEXT_SYS_UIO_H = @NEXT_SYS_UIO_H@ NEXT_TIME_H = @NEXT_TIME_H@ NEXT_UNISTD_H = @NEXT_UNISTD_H@ NEXT_WCHAR_H = @NEXT_WCHAR_H@ NM = @NM@ NMEDIT = @NMEDIT@ NUMBER_VERSION = @NUMBER_VERSION@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PAMDIR = @PAMDIR@ PAM_SHISHI = @PAM_SHISHI@ PARSE_DATETIME_BISON = @PARSE_DATETIME_BISON@ PATCH_VERSION = @PATCH_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ PKG_CONFIG = @PKG_CONFIG@ PMCCABE = @PMCCABE@ POSUB = @POSUB@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ PRIPTR_PREFIX = @PRIPTR_PREFIX@ PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@ RANLIB = @RANLIB@ REPLACE_ACCESS = @REPLACE_ACCESS@ REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@ REPLACE_BTOWC = @REPLACE_BTOWC@ REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@ REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@ REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@ REPLACE_CHMOD = @REPLACE_CHMOD@ REPLACE_CHOWN = @REPLACE_CHOWN@ REPLACE_CLOSE = @REPLACE_CLOSE@ REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@ REPLACE_CREAT = @REPLACE_CREAT@ REPLACE_CTIME = @REPLACE_CTIME@ REPLACE_DPRINTF = @REPLACE_DPRINTF@ REPLACE_DUP = @REPLACE_DUP@ REPLACE_DUP2 = @REPLACE_DUP2@ REPLACE_DUPLOCALE = @REPLACE_DUPLOCALE@ REPLACE_EXECL = @REPLACE_EXECL@ REPLACE_EXECLE = @REPLACE_EXECLE@ REPLACE_EXECLP = @REPLACE_EXECLP@ REPLACE_EXECV = @REPLACE_EXECV@ REPLACE_EXECVE = @REPLACE_EXECVE@ REPLACE_EXECVP = @REPLACE_EXECVP@ REPLACE_EXECVPE = @REPLACE_EXECVPE@ REPLACE_FACCESSAT = @REPLACE_FACCESSAT@ REPLACE_FCHMODAT = @REPLACE_FCHMODAT@ REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@ REPLACE_FCLOSE = @REPLACE_FCLOSE@ REPLACE_FCNTL = @REPLACE_FCNTL@ REPLACE_FDOPEN = @REPLACE_FDOPEN@ REPLACE_FFLUSH = @REPLACE_FFLUSH@ REPLACE_FFSLL = @REPLACE_FFSLL@ REPLACE_FOPEN = @REPLACE_FOPEN@ REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@ REPLACE_FPRINTF = @REPLACE_FPRINTF@ REPLACE_FPURGE = @REPLACE_FPURGE@ REPLACE_FREE = @REPLACE_FREE@ REPLACE_FREELOCALE = @REPLACE_FREELOCALE@ REPLACE_FREOPEN = @REPLACE_FREOPEN@ REPLACE_FSEEK = @REPLACE_FSEEK@ REPLACE_FSEEKO = @REPLACE_FSEEKO@ REPLACE_FSTAT = @REPLACE_FSTAT@ REPLACE_FSTATAT = @REPLACE_FSTATAT@ REPLACE_FTELL = @REPLACE_FTELL@ REPLACE_FTELLO = @REPLACE_FTELLO@ REPLACE_FTRUNCATE = @REPLACE_FTRUNCATE@ REPLACE_FUTIMENS = @REPLACE_FUTIMENS@ REPLACE_GAI_STRERROR = @REPLACE_GAI_STRERROR@ REPLACE_GETADDRINFO = @REPLACE_GETADDRINFO@ REPLACE_GETCWD = @REPLACE_GETCWD@ REPLACE_GETDELIM = @REPLACE_GETDELIM@ REPLACE_GETDOMAINNAME = @REPLACE_GETDOMAINNAME@ REPLACE_GETDTABLESIZE = @REPLACE_GETDTABLESIZE@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ REPLACE_GETLINE = @REPLACE_GETLINE@ REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ REPLACE_GETPASS = @REPLACE_GETPASS@ REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@ REPLACE_GETRANDOM = @REPLACE_GETRANDOM@ REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ REPLACE_GMTIME = @REPLACE_GMTIME@ REPLACE_INET_NTOP = @REPLACE_INET_NTOP@ REPLACE_INET_PTON = @REPLACE_INET_PTON@ REPLACE_INITSTATE = @REPLACE_INITSTATE@ REPLACE_ISATTY = @REPLACE_ISATTY@ REPLACE_ITOLD = @REPLACE_ITOLD@ REPLACE_LCHOWN = @REPLACE_LCHOWN@ REPLACE_LINK = @REPLACE_LINK@ REPLACE_LINKAT = @REPLACE_LINKAT@ REPLACE_LOCALECONV = @REPLACE_LOCALECONV@ REPLACE_LOCALTIME = @REPLACE_LOCALTIME@ REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@ REPLACE_LSEEK = @REPLACE_LSEEK@ REPLACE_LSTAT = @REPLACE_LSTAT@ REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@ REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@ REPLACE_MBRLEN = @REPLACE_MBRLEN@ REPLACE_MBRTOWC = @REPLACE_MBRTOWC@ REPLACE_MBSINIT = @REPLACE_MBSINIT@ REPLACE_MBSNRTOWCS = @REPLACE_MBSNRTOWCS@ REPLACE_MBSRTOWCS = @REPLACE_MBSRTOWCS@ REPLACE_MBSTATE_T = @REPLACE_MBSTATE_T@ REPLACE_MBTOWC = @REPLACE_MBTOWC@ REPLACE_MEMCHR = @REPLACE_MEMCHR@ REPLACE_MEMMEM = @REPLACE_MEMMEM@ REPLACE_MKDIR = @REPLACE_MKDIR@ REPLACE_MKFIFO = @REPLACE_MKFIFO@ REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@ REPLACE_MKNOD = @REPLACE_MKNOD@ REPLACE_MKNODAT = @REPLACE_MKNODAT@ REPLACE_MKSTEMP = @REPLACE_MKSTEMP@ REPLACE_MKTIME = @REPLACE_MKTIME@ REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@ REPLACE_NEWLOCALE = @REPLACE_NEWLOCALE@ REPLACE_NULL = @REPLACE_NULL@ REPLACE_OBSTACK_PRINTF = @REPLACE_OBSTACK_PRINTF@ REPLACE_OPEN = @REPLACE_OPEN@ REPLACE_OPENAT = @REPLACE_OPENAT@ REPLACE_PERROR = @REPLACE_PERROR@ REPLACE_POPEN = @REPLACE_POPEN@ REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@ REPLACE_PREAD = @REPLACE_PREAD@ REPLACE_PRINTF = @REPLACE_PRINTF@ REPLACE_PSELECT = @REPLACE_PSELECT@ REPLACE_PTHREAD_SIGMASK = @REPLACE_PTHREAD_SIGMASK@ REPLACE_PTSNAME = @REPLACE_PTSNAME@ REPLACE_PTSNAME_R = @REPLACE_PTSNAME_R@ REPLACE_PUTENV = @REPLACE_PUTENV@ REPLACE_PWRITE = @REPLACE_PWRITE@ REPLACE_QSORT_R = @REPLACE_QSORT_R@ REPLACE_RAISE = @REPLACE_RAISE@ REPLACE_RANDOM = @REPLACE_RANDOM@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@ REPLACE_READ = @REPLACE_READ@ REPLACE_READLINK = @REPLACE_READLINK@ REPLACE_READLINKAT = @REPLACE_READLINKAT@ REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@ REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@ REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@ REPLACE_REALPATH = @REPLACE_REALPATH@ REPLACE_REMOVE = @REPLACE_REMOVE@ REPLACE_RENAME = @REPLACE_RENAME@ REPLACE_RENAMEAT = @REPLACE_RENAMEAT@ REPLACE_RMDIR = @REPLACE_RMDIR@ REPLACE_SELECT = @REPLACE_SELECT@ REPLACE_SETENV = @REPLACE_SETENV@ REPLACE_SETLOCALE = @REPLACE_SETLOCALE@ REPLACE_SETSTATE = @REPLACE_SETSTATE@ REPLACE_SLEEP = @REPLACE_SLEEP@ REPLACE_SNPRINTF = @REPLACE_SNPRINTF@ REPLACE_SPRINTF = @REPLACE_SPRINTF@ REPLACE_STAT = @REPLACE_STAT@ REPLACE_STDIO_READ_FUNCS = @REPLACE_STDIO_READ_FUNCS@ REPLACE_STDIO_WRITE_FUNCS = @REPLACE_STDIO_WRITE_FUNCS@ REPLACE_STPNCPY = @REPLACE_STPNCPY@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@ REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@ REPLACE_STRDUP = @REPLACE_STRDUP@ REPLACE_STRERROR = @REPLACE_STRERROR@ REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@ REPLACE_STRERROR_R = @REPLACE_STRERROR_R@ REPLACE_STRFTIME = @REPLACE_STRFTIME@ REPLACE_STRNCAT = @REPLACE_STRNCAT@ REPLACE_STRNDUP = @REPLACE_STRNDUP@ REPLACE_STRNLEN = @REPLACE_STRNLEN@ REPLACE_STRSIGNAL = @REPLACE_STRSIGNAL@ REPLACE_STRSTR = @REPLACE_STRSTR@ REPLACE_STRTOD = @REPLACE_STRTOD@ REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@ REPLACE_STRTOK_R = @REPLACE_STRTOK_R@ REPLACE_STRTOL = @REPLACE_STRTOL@ REPLACE_STRTOLD = @REPLACE_STRTOLD@ REPLACE_STRTOLL = @REPLACE_STRTOLL@ REPLACE_STRTOUL = @REPLACE_STRTOUL@ REPLACE_STRTOULL = @REPLACE_STRTOULL@ REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@ REPLACE_STRUCT_LCONV = @REPLACE_STRUCT_LCONV@ REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@ REPLACE_SYMLINK = @REPLACE_SYMLINK@ REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ REPLACE_TIMEGM = @REPLACE_TIMEGM@ REPLACE_TMPFILE = @REPLACE_TMPFILE@ REPLACE_TRUNCATE = @REPLACE_TRUNCATE@ REPLACE_TTYNAME_R = @REPLACE_TTYNAME_R@ REPLACE_TZSET = @REPLACE_TZSET@ REPLACE_UNLINK = @REPLACE_UNLINK@ REPLACE_UNLINKAT = @REPLACE_UNLINKAT@ REPLACE_UNSETENV = @REPLACE_UNSETENV@ REPLACE_USLEEP = @REPLACE_USLEEP@ REPLACE_UTIMENSAT = @REPLACE_UTIMENSAT@ REPLACE_VASPRINTF = @REPLACE_VASPRINTF@ REPLACE_VDPRINTF = @REPLACE_VDPRINTF@ REPLACE_VFPRINTF = @REPLACE_VFPRINTF@ REPLACE_VPRINTF = @REPLACE_VPRINTF@ REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@ REPLACE_VSPRINTF = @REPLACE_VSPRINTF@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@ REPLACE_WCSFTIME = @REPLACE_WCSFTIME@ REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@ REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@ REPLACE_WCSTOK = @REPLACE_WCSTOK@ REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@ REPLACE_WCTOB = @REPLACE_WCTOB@ REPLACE_WCTOMB = @REPLACE_WCTOMB@ REPLACE_WCWIDTH = @REPLACE_WCWIDTH@ REPLACE_WRITE = @REPLACE_WRITE@ SED = @SED@ SERVENT_LIB = @SERVENT_LIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@ SIZE_T_SUFFIX = @SIZE_T_SUFFIX@ SKELDIR = @SKELDIR@ SOVERSION = @SOVERSION@ STDALIGN_H = @STDALIGN_H@ STDARG_H = @STDARG_H@ STDBOOL_H = @STDBOOL_H@ STDDEF_H = @STDDEF_H@ STDINT_H = @STDINT_H@ STRIP = @STRIP@ SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@ UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@ UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@ UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@ UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@ UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ USE_NLS = @USE_NLS@ VALGRIND = @VALGRIND@ VALGRINDFLAGS = @VALGRINDFLAGS@ VALGRIND_PROGRAM = @VALGRIND_PROGRAM@ VERSION = @VERSION@ WARN_CFLAGS = @WARN_CFLAGS@ WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@ WERROR_CFLAGS = @WERROR_CFLAGS@ WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@ WINDOWS_64_BIT_ST_SIZE = @WINDOWS_64_BIT_ST_SIZE@ WINDOWS_STAT_INODES = @WINDOWS_STAT_INODES@ WINDOWS_STAT_TIMESPEC = @WINDOWS_STAT_TIMESPEC@ WINT_T_SUFFIX = @WINT_T_SUFFIX@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gl_LIBOBJDEPS = @gl_LIBOBJDEPS@ gl_LIBOBJS = @gl_LIBOBJS@ gl_LTLIBOBJS = @gl_LTLIBOBJS@ gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@ gltests_LIBOBJS = @gltests_LIBOBJS@ gltests_LTLIBOBJS = @gltests_LTLIBOBJS@ gltests_WITNESS = @gltests_WITNESS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ libgl_LIBOBJDEPS = @libgl_LIBOBJDEPS@ libgl_LIBOBJS = @libgl_LIBOBJS@ libgl_LTLIBOBJS = @libgl_LTLIBOBJS@ libgltests_LIBOBJDEPS = @libgltests_LIBOBJDEPS@ libgltests_LIBOBJS = @libgltests_LIBOBJS@ libgltests_LTLIBOBJS = @libgltests_LTLIBOBJS@ libgltests_WITNESS = @libgltests_WITNESS@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl \ -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shisa.conf\" \ -DDEFAULTDBPATH=\"$(DBDIR)\" include_HEADERS = shisa.h lib_LTLIBRARIES = libshisa.la libshisa_la_SOURCES = libshisa.map \ shisa.h info.h \ setup.c config.c db.c err.c core.c \ file.c file.h fileutil.h fileutil.c libshisa_la_LIBADD = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(LIB_CLOCK_GETTIME) $(LIBSOCKET) # XXX use different libtool version for this library? libshisa_la_LDFLAGS = -version-info \ $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -no-undefined \ $(am__append_1) $(am__append_2) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu db/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu db/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libshisa.la: $(libshisa_la_OBJECTS) $(libshisa_la_DEPENDENCIES) $(EXTRA_libshisa_la_DEPENDENCIES) $(AM_V_CCLD)$(libshisa_la_LINK) -rpath $(libdir) $(libshisa_la_OBJECTS) $(libshisa_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/core.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/err.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fileutil.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/setup.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/config.Plo -rm -f ./$(DEPDIR)/core.Plo -rm -f ./$(DEPDIR)/db.Plo -rm -f ./$(DEPDIR)/err.Plo -rm -f ./$(DEPDIR)/file.Plo -rm -f ./$(DEPDIR)/fileutil.Plo -rm -f ./$(DEPDIR)/setup.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-includeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/config.Plo -rm -f ./$(DEPDIR)/core.Plo -rm -f ./$(DEPDIR)/db.Plo -rm -f ./$(DEPDIR)/err.Plo -rm -f ./$(DEPDIR)/file.Plo -rm -f ./$(DEPDIR)/fileutil.Plo -rm -f ./$(DEPDIR)/setup.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am \ install-includeHEADERS install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: shishi-1.0.3/db/shisa.h0000644000000000000000000001411314273601533011542 00000000000000/* shisa.h --- Header file for concurrent write-safe user information database. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #ifndef SHISA_H # define SHISA_H # include /* size_t */ # include /* time_t */ # include /* int32_t, uint32_t */ /* Error codes */ enum Shisa_rc { SHISA_OK = 0, /* init.c */ SHISA_INIT_ERROR = 1, /* cfg.c */ SHISA_CFG_NO_FILE = 2, SHISA_CFG_IO_ERROR = 3, SHISA_CFG_SYNTAX_ERROR = 4, /* db.c: file.c */ SHISA_OPEN_ERROR = 5, SHISA_ENUMERATE_REALM_ERROR = 6, SHISA_ENUMERATE_PRINCIPAL_ERROR = 7, SHISA_ENUMERATE_KEY_ERROR = 23, SHISA_NO_REALM = 8, SHISA_NO_PRINCIPAL = 9, SHISA_NO_KEY = 10, SHISA_FIND_ERROR = 11, SHISA_ADD_REALM_EXISTS = 12, SHISA_ADD_REALM_ERROR = 13, SHISA_REMOVE_REALM_NONEMPTY = 14, SHISA_REMOVE_REALM_ERROR = 15, SHISA_ADD_PRINCIPAL_EXISTS = 16, SHISA_ADD_PRINCIPAL_ERROR = 17, SHISA_REMOVE_PRINCIPAL_NONEMPTY = 18, SHISA_REMOVE_PRINCIPAL_ERROR = 19, SHISA_ADD_KEY_ERROR = 20, SHISA_REMOVE_KEY_ERROR = 21, SHISA_MULTIPLE_KEY_MATCH = 22 }; typedef enum Shisa_rc Shisa_rc; typedef struct Shisa Shisa; struct Shisa_principal { int isdisabled; uint32_t kvno; time_t notusedbefore; time_t lastinitialtgt; /* time of last initial request for a TGT */ time_t lastinitialrequest; /* time of last initial request */ time_t lasttgt; /* time of issue for the newest TGT used */ time_t lastrenewal; /* time of the last renewal */ time_t passwordexpire; /* time when the password will expire */ time_t accountexpire; /* time when the account will expire. */ }; typedef struct Shisa_principal Shisa_principal; struct Shisa_key { uint32_t kvno; int32_t etype; int priority; char *key; size_t keylen; char *salt; size_t saltlen; char *str2keyparam; size_t str2keyparamlen; char *password; }; typedef struct Shisa_key Shisa_key; /* init.c */ extern Shisa *shisa (void); extern void shisa_done (Shisa * dbh); extern int shisa_init (Shisa ** dbh); extern int shisa_init_with_paths (Shisa ** dbh, const char *file); /* cfg.c */ extern int shisa_cfg (Shisa * dbh, const char *option); extern int shisa_cfg_db (Shisa * dbh, const char *value); extern int shisa_cfg_from_file (Shisa * dbh, const char *cfg); extern const char *shisa_cfg_default_systemfile (Shisa * dbh); /* error.c */ extern const char *shisa_strerror (int err); extern void shisa_info (Shisa * dbh, const char *format, ...); /* core.c */ extern void shisa_key_free (Shisa * dbh, Shisa_key * key); extern void shisa_keys_free (Shisa * dbh, Shisa_key ** keys, size_t nkeys); /************************************************************** Enumerators. */ /* Return a list of all realm names in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ extern int shisa_enumerate_realms (Shisa * dbh, char ***realms, size_t *nrealms); /* Return a list of all principals in realm in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ extern int shisa_enumerate_principals (Shisa * dbh, const char *realm, char ***principals, size_t *nprincipals); /**************************************** Functions operating on principals. */ /* Return information about specified PRINCIPAL@REALM. Can also be used check existence of principal entry, with a NULL PH. */ extern int shisa_principal_find (Shisa * dbh, const char *realm, const char *principal, Shisa_principal * ph); /* Add new PRINCIPAL@REALM with specified information and key. If PRINCIPAL is NULL, then add realm REALM. */ extern int shisa_principal_add (Shisa * dbh, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key); /* Modify information for specified PRINCIPAL@REALM. */ extern int shisa_principal_update (Shisa * dbh, const char *realm, const char *principal, const Shisa_principal * ph); /* Remove PRINCIPAL@REALM, or REALM if PRINCIPAL is NULL. Realms must be empty for them to be successfully removed. */ extern int shisa_principal_remove (Shisa * dbh, const char *realm, const char *principal); /********************************************** Functions operating on keys. */ /* Get all keys matching HINT for specified PRINCIPAL@REALM. The caller must deallocate the returned keys. If HINT is NULL, then all keys are returned. */ extern int shisa_keys_find (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * hint, Shisa_key *** keys, size_t *nkeys); /* Add key for PRINCIPAL@REALM. */ extern int shisa_key_add (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * key); /* Update a key for PRINCIPAL@REALM. The OLDKEY must uniquely determine the key to update, i.e., shishi_keys_find using OLDKEY as HINT must return exactly 1 key. */ extern int shisa_key_update (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * oldkey, const Shisa_key * newkey); /* Remove a key for PRINCIPAL@REALM. The KEY must uniquely determine the key to remove, i.e., shishi_keys_find using KEY as HINT must return exactly 1 key. */ extern int shisa_key_remove (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * key); #endif /* SHISA_H */ shishi-1.0.3/db/err.c0000644000000000000000000000740514273601533011224 00000000000000/* error.c --- Error handling functions for the Shisa library. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" struct shisa_error_msgs { int errorcode; const char *message; }; static const struct shisa_error_msgs _shisa_error_messages[] = { {SHISA_OK, N_("Shisa success")}, {SHISA_INIT_ERROR, N_("Shisa could not be initialized.")}, {SHISA_CFG_NO_FILE, N_("The Shisa configuration file does not exist.")}, {SHISA_CFG_IO_ERROR, N_("File I/O error for Shisa configuration file.")}, {SHISA_CFG_SYNTAX_ERROR, N_("Syntax error in Shisa configuration token.")}, {SHISA_OPEN_ERROR, N_("Shisa database could not be opened.")}, {SHISA_ENUMERATE_REALM_ERROR, N_("Error enumerating realms in database.")}, {SHISA_ENUMERATE_PRINCIPAL_ERROR, N_("Error enumerating principals in database.")}, {SHISA_ENUMERATE_KEY_ERROR, N_("Error enumerating keys in database.")}, {SHISA_NO_REALM, N_("Supplied realm does not exist.")}, {SHISA_NO_PRINCIPAL, N_("Supplied principal does not exist.")}, {SHISA_NO_KEY, N_("Principal is not associated with any matching key.")}, {SHISA_FIND_ERROR, N_("Error finding principal.")}, {SHISA_ADD_REALM_EXISTS, N_("Tried to add a realm that already exist.")}, {SHISA_ADD_REALM_ERROR, N_("Error adding realm to database.")}, {SHISA_REMOVE_REALM_NONEMPTY, N_("Tried to remove a non-empty realm.")}, {SHISA_REMOVE_REALM_ERROR, N_("Error removing realm from database.")}, {SHISA_ADD_PRINCIPAL_EXISTS, N_("Tried to add a principal that already exist.")}, {SHISA_ADD_PRINCIPAL_ERROR, N_("Error adding principal to database.")}, {SHISA_REMOVE_PRINCIPAL_ERROR, N_("Error removing principal from database.")}, {SHISA_ADD_KEY_ERROR, N_("Error adding key to principal.")}, {SHISA_REMOVE_KEY_ERROR, N_("Error removing key from principal.")}, {SHISA_MULTIPLE_KEY_MATCH, N_("More than one key match given search criteria.")} }; /** * shisa_strerror: * @err: Shisa error code. * * Explains verbally an error status @err. The returned string * can be used to compose a diagnostic message of benefit to a user. * * Return value: Returns a pointer to a statically allocated string, * containing a description of the error given as input argument. **/ const char * shisa_strerror (int err) { size_t i; for (i = 0; i < sizeof (_shisa_error_messages) / sizeof (_shisa_error_messages[0]); i++) if (_shisa_error_messages[i].errorcode == err) return _(_shisa_error_messages[i].message); return _("Unknown Shisa error"); } /** * shisa_info: * @dbh: Shisa library handle created by shisa(). * @format: printf style format string. * @...: printf style arguments. * * Prints an informational message to standard error. * The text is composed from the arguments, like printf(3). **/ void shisa_info (Shisa * dbh, const char *format, ...) { va_list ap; char *out; va_start (ap, format); vasprintf (&out, format, ap); fprintf (stderr, _("shisa: %s\n"), out); free (out); va_end (ap); } shishi-1.0.3/db/fileutil.c0000644000000000000000000002760614273601533012256 00000000000000/* fileutil.c --- Utility functions used by file.c. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" /* For stat. */ #include #include #include /* For readdir. */ #include #include #ifndef errno extern int errno; #endif #include "areadlink.h" /* Get specification. */ #include "fileutil.h" #define ishex(c) ((c >= '0' || c <= '9') || (c >= 'a' || c <= 'f')) #define tohex(c1,c2) (((c1 - '0' > 9 ? c1 - 'a' + 10 : c1 - '0') << 4) | \ (c2 - '0' > 9 ? c2 - 'a' + 10 : c2 - '0')) static char * unescape_filename (const char *path) { char *out = strdup (path); char *p = out; while (*path) { if (path[0] == '%' && path[1] && ishex (path[1]) && path[2] && ishex (path[2])) { *p++ = tohex (path[1], path[2]); path += 3; } else *p++ = *path++; } *p = '\0'; return out; } static char * escape_filename (const char *path) { char *out = malloc (strlen (path) * 3 + 1); char *p = out; while (*path) { if ((path[0] >= 'a' && path[0] <= 'z') || (path[0] >= 'A' && path[0] <= 'Z') || (path[0] >= '0' && path[0] <= '9') || path[0] == '-' || path[0] == '.') *p++ = *path++; else { int i; *p++ = '%'; i = (*path & 0xF0) >> 4; *p++ = i > 10 ? 'a' + i - 10 : '0' + i; i = (*path & 0x0f); *p++ = i > 10 ? 'a' + i - 10 : '0' + i; path++; } } *p = '\0'; return out; } int _shisa_isdir (const char *path) { struct stat buf; int rc; rc = stat (path, &buf); if (rc != 0 || !S_ISDIR (buf.st_mode)) return 0; return 1; } static int isdir2 (const char *path1, const char *path2) { char *tmp; int rc; asprintf (&tmp, "%s/%s", path1, path2); rc = _shisa_isdir (tmp); free (tmp); return rc; } int _shisa_isdir2 (const char *path1, const char *realm) { char *saferealm = escape_filename (realm); char *tmp; int rc; asprintf (&tmp, "%s/%s", path1, saferealm); free (saferealm); rc = _shisa_isdir (tmp); free (tmp); return rc; } int _shisa_isdir3 (const char *path1, const char *realm, const char *principal) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s", path1, saferealm, safeprincipal); free (saferealm); free (safeprincipal); rc = _shisa_isdir (tmp); free (tmp); return rc; } int _shisa_isdir4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = _shisa_isdir (tmp); free (tmp); return rc; } int _shisa_mkdir (const char *file) { int rc; rc = mkdir (file, S_IRUSR | S_IWUSR | S_IXUSR); if (rc != 0) { perror (file); return -1; } return 0; } int _shisa_mkdir2 (const char *path1, const char *realm) { char *saferealm = escape_filename (realm); char *tmp; int rc; asprintf (&tmp, "%s/%s", path1, saferealm); free (saferealm); rc = _shisa_mkdir (tmp); free (tmp); return rc; } int _shisa_mkdir3 (const char *path1, const char *realm, const char *principal) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s", path1, saferealm, safeprincipal); free (saferealm); free (safeprincipal); rc = _shisa_mkdir (tmp); free (tmp); return rc; } int _shisa_mkdir4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = _shisa_mkdir (tmp); free (tmp); return rc; } int _shisa_rmdir (const char *file) { int rc; rc = rmdir (file); if (rc != 0) { perror (file); return -1; } return 0; } int _shisa_rmdir2 (const char *path1, const char *realm) { char *saferealm = escape_filename (realm); char *tmp; int rc; asprintf (&tmp, "%s/%s", path1, saferealm); free (saferealm); rc = _shisa_rmdir (tmp); free (tmp); return rc; } int _shisa_rmdir3 (const char *path1, const char *realm, const char *principal) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s", path1, saferealm, safeprincipal); free (saferealm); free (safeprincipal); rc = _shisa_rmdir (tmp); free (tmp); return rc; } int _shisa_rmdir4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = _shisa_rmdir (tmp); free (tmp); return rc; } static time_t mtime (const char *file) { struct stat buf; int rc; rc = stat (file, &buf); if (rc != 0 || !S_ISREG (buf.st_mode)) return (time_t) - 1; return buf.st_atime; } int _shisa_mtime4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = mtime (tmp); free (tmp); return rc; } static int isfile (const char *path) { struct stat buf; int rc; rc = stat (path, &buf); if (rc != 0 || !S_ISREG (buf.st_mode)) return 0; return 1; } int _shisa_isfile4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = isfile (tmp); free (tmp); return rc; } static uint32_t uint32link (const char *file) { char *linkname; long n; linkname = areadlink (file); if (linkname == NULL) return 0; n = atol (linkname); free (linkname); return n; } int _shisa_uint32link4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = uint32link (tmp); free (tmp); return rc; } static int ls_1 (const char *path, int onlydir, char ***files, size_t *nfiles, DIR * dir) { struct dirent *de; while (errno = 0, (de = readdir (dir)) != NULL) { if (strcmp (de->d_name, ".") == 0 || strcmp (de->d_name, "..") == 0) continue; if (!onlydir || isdir2 (path, de->d_name)) { if (files) { *files = xrealloc (*files, (*nfiles + 1) * sizeof (**files)); (*files)[(*nfiles)] = unescape_filename (de->d_name); } (*nfiles)++; } } if (errno != 0) { size_t i; perror (path); if (files) { for (i = 0; i < *nfiles; i++) free (**files); if (*nfiles > 0) free (*files); } return -1; } return 0; } static int ls (const char *path, int onlydir, char ***files, size_t *nfiles) { DIR *dir; int rc; dir = opendir (path); if (dir == NULL) { perror (path); return -1; } if (ls_1 (path, onlydir, files, nfiles, dir) != 0) { rc = closedir (dir); if (rc != 0) perror (path); return -1; } rc = closedir (dir); if (rc != 0) { size_t i; perror (path); if (files) { for (i = 0; i < *nfiles; i++) free (**files); if (*nfiles > 0) free (*files); } return -1; } return 0; } int _shisa_ls (const char *path, char ***files, size_t *nfiles) { return ls (path, 0, files, nfiles); } int _shisa_ls2 (const char *path, const char *realm, char ***files, size_t *nfiles) { char *saferealm = escape_filename (realm); char *tmp; int rc; asprintf (&tmp, "%s/%s", path, saferealm); free (saferealm); rc = _shisa_ls (tmp, files, nfiles); free (tmp); return rc; } int _shisa_ls3 (const char *path, const char *realm, const char *principal, char ***files, size_t *nfiles) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s", path, saferealm, safeprincipal); free (saferealm); free (safeprincipal); rc = _shisa_ls (tmp, files, nfiles); free (tmp); return rc; } int _shisa_ls4 (const char *path, const char *realm, const char *principal, const char *path4, char ***files, size_t *nfiles) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = _shisa_ls (tmp, files, nfiles); free (tmp); return rc; } int _shisa_lsdir (const char *path, char ***files, size_t *nfiles) { return ls (path, 1, files, nfiles); } int _shisa_lsdir2 (const char *path, const char *realm, char ***files, size_t *nfiles) { char *saferealm = escape_filename (realm); char *tmp; int rc; asprintf (&tmp, "%s/%s", path, saferealm); free (saferealm); rc = _shisa_lsdir (tmp, files, nfiles); free (tmp); return rc; } static int rm (const char *path) { int rc; rc = unlink (path); if (rc != 0) { perror (path); return -1; } return 0; } int _shisa_rm4 (const char *path1, const char *realm, const char *principal, const char *path4) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); rc = rm (tmp); free (tmp); return rc; } int _shisa_rm5 (const char *path1, const char *realm, const char *principal, const char *path4, const char *path5) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; int rc; asprintf (&tmp, "%s/%s/%s/%s/%s", path1, saferealm, safeprincipal, path4, path5); free (saferealm); free (safeprincipal); rc = rm (tmp); free (tmp); return rc; } FILE * _shisa_fopen4 (const char *path1, const char *realm, const char *principal, const char *path4, const char *mode) { char *saferealm = escape_filename (realm); char *safeprincipal = escape_filename (principal); char *tmp; FILE *fh; asprintf (&tmp, "%s/%s/%s/%s", path1, saferealm, safeprincipal, path4); free (saferealm); free (safeprincipal); fh = fopen (tmp, mode); free (tmp); return fh; } shishi-1.0.3/db/file.c0000644000000000000000000004040314273601533011346 00000000000000/* file.c --- File based Shisa database. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* * Theory of operation: * * Data is stored in the standard file system, so it is subject to * normal access permission infrastructure, e.g. POSIX ACL or normal * Unix file permissions. A definition of the file database looks * like: * * file LOCATION OPTIONS * * Where LOCATION is a path name, e.g. /var/shisa. No OPTIONS are * currently implemented. * * Realms are directories in LOCATION. Principals are directories in * realm directories. Characters outside A-Za-z0-9_- are escaped * using the URL encoding, e.g. example/host%2fwww denote the * "host/www" principal in the "example" realm. * * Example file tree: * * LOCATION/EXAMPLE.ORG * LOCATION/EXAMPLE.ORG/krbtgt%2fEXAMPLE.ORG * LOCATION/EXAMPLE.ORG/host%2fwww.example.org * LOCATION/EXAMPLE.NET * LOCATION/EXAMPLE.NET/krbtgt%2fEXAMPLE.NET * */ /* XXX fix race conditions. */ #include "info.h" /* Get prototypes. */ #include "file.h" /* Get low-level file utilities. */ #include "fileutil.h" struct Shisa_file { char *path; int readonly; int allowcreate; }; typedef struct Shisa_file Shisa_file; enum { READ_ONLY_OPTION = 0, ALLOW_CREATE_OPTION = 1, THE_END }; static const char *const _shisa_file_opts[] = { /* [READ_ONLY_OPTION] = */ "read-only", /* [ALLOW_CREATE_OPTION] = */ "allow-create", /* [THE_END] = */ NULL }; static int shisa_file_cfg (Shisa * dbh, Shisa_file * info, const char *option) { char *opt = option ? xstrdup (option) : NULL; char *p = opt; char *value; int res; while (p != NULL && *p != '\0') { switch (getsubopt (&p, (char *const *) _shisa_file_opts, &value)) { case READ_ONLY_OPTION: info->readonly = 1; break; case ALLOW_CREATE_OPTION: info->allowcreate = 1; break; default: shisa_info (dbh, "Unknown file database option: `%s'.", value); res = SHISA_CFG_SYNTAX_ERROR; goto out; break; } } res = SHISA_OK; out: free (opt); return res; } /* Initialize file backend, i.e., parse options and check if file root exists and allocate backend handle. */ int shisa_file_init (Shisa * dbh, const char *location, const char *options, void **state) { Shisa_file *info; int rc; if (!_shisa_isdir (location)) return SHISA_OPEN_ERROR; *state = info = xcalloc (1, sizeof (*info)); rc = shisa_file_cfg (dbh, info, options); if (rc != SHISA_OK) return rc; info->path = xstrdup (location); return SHISA_OK; } /* Destroy backend handle. */ void shisa_file_done (Shisa * dbh, void *state) { Shisa_file *info = state; if (info) free (info->path); free (info); } /* Return a list of all realm names in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ int shisa_file_enumerate_realms (Shisa * dbh, void *state, char ***realms, size_t *nrealms) { Shisa_file *info = state; if (_shisa_lsdir (info->path, realms, nrealms) != 0) return SHISA_ENUMERATE_REALM_ERROR; return SHISA_OK; } /* Return a list of all principals in realm in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ int shisa_file_enumerate_principals (Shisa * dbh, void *state, const char *realm, char ***principals, size_t *nprincipals) { Shisa_file *info = state; if (!_shisa_isdir2 (info->path, realm)) return SHISA_NO_REALM; if (_shisa_lsdir2 (info->path, realm, principals, nprincipals) != 0) return SHISA_ENUMERATE_PRINCIPAL_ERROR; return SHISA_OK; } /* Return information about specified PRINCIPAL@REALM. Can also be used check existence of principal entry, with a NULL PH. */ int shisa_file_principal_find (Shisa * dbh, void *state, const char *realm, const char *principal, Shisa_principal * ph) { Shisa_file *info = state; if (!_shisa_isdir3 (info->path, realm, principal)) return SHISA_NO_PRINCIPAL; if (!ph) return SHISA_OK; ph->notusedbefore = _shisa_mtime4 (info->path, realm, principal, "validfrom.stamp"); ph->isdisabled = _shisa_isfile4 (info->path, realm, principal, "disabled.flag"); ph->kvno = _shisa_uint32link4 (info->path, realm, principal, "latest.key"); ph->lastinitialtgt = _shisa_mtime4 (info->path, realm, principal, "lastinitaltgt.stamp"); ph->lastinitialrequest = _shisa_mtime4 (info->path, realm, principal, "lastinitial.stamp"); ph->lasttgt = _shisa_mtime4 (info->path, realm, principal, "lasttgt.stamp"); ph->lastrenewal = _shisa_mtime4 (info->path, realm, principal, "lastrenewal.stamp"); ph->passwordexpire = _shisa_mtime4 (info->path, realm, principal, "passwordexpire.stamp"); ph->accountexpire = _shisa_mtime4 (info->path, realm, principal, "accountexpire.stamp"); return SHISA_OK; } static int realm_add (Shisa * dbh, void *state, const char *realm) { Shisa_file *info = state; if (_shisa_isdir2 (info->path, realm)) return SHISA_ADD_REALM_EXISTS; if (_shisa_mkdir2 (info->path, realm) != 0) return SHISA_ADD_REALM_ERROR; return SHISA_OK; } static int principal_add (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key) { Shisa_file *info = state; if (!_shisa_isdir2 (info->path, realm)) return SHISA_NO_REALM; if (_shisa_isdir3 (info->path, realm, principal)) return SHISA_ADD_PRINCIPAL_EXISTS; if (_shisa_mkdir3 (info->path, realm, principal) != 0) return SHISA_ADD_PRINCIPAL_ERROR; if (ph) shisa_file_principal_update (dbh, state, realm, principal, ph); if (key) shisa_file_key_add (dbh, state, realm, principal, key); return SHISA_OK; } /* Add new PRINCIPAL@REALM with specified information and key. If PRINCIPAL is NULL, then add realm REALM. */ int shisa_file_principal_add (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key) { int rc; if (principal == NULL) rc = realm_add (dbh, state, realm); else rc = principal_add (dbh, state, realm, principal, ph, key); return rc; } /* Modify information for specified PRINCIPAL@REALM. */ int shisa_file_principal_update (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph) { return SHISA_OK; } static int realm_remove (Shisa * dbh, void *state, const char *realm) { Shisa_file *info = state; size_t nprincipals = 0; int rc; if (!_shisa_isdir2 (info->path, realm)) return SHISA_NO_REALM; rc = shisa_file_enumerate_principals (dbh, state, realm, NULL, &nprincipals); if (rc != SHISA_OK) return rc; if (nprincipals > 0) return SHISA_REMOVE_REALM_NONEMPTY; if (_shisa_rmdir2 (info->path, realm) != 0) return SHISA_REMOVE_REALM_ERROR; return SHISA_OK; } static int remove_keys (Shisa * dbh, void *state, const char *realm, const char *principal) { Shisa_file *info = state; char **files; size_t nfiles; size_t i; int rc; files = NULL; nfiles = 0; rc = _shisa_ls4 (info->path, realm, principal, "keys", &files, &nfiles); if (rc != SHISA_OK) return rc; for (i = 0; i < nfiles; i++) { rc = _shisa_rm5 (info->path, realm, principal, "keys", files[i]); free (files[i]); } free (files); rc = _shisa_rmdir4 (info->path, realm, principal, "keys"); if (rc != SHISA_OK) return rc; return SHISA_OK; } #if 0 static int remove_info (Shisa * dbh, void *state, const char *realm, const char *principal) { Shisa_file *info = state; char **files; size_t nfiles; size_t i; int rc; files = NULL; nfiles = 0; rc = _shisa_ls3 (info->path, realm, principal, &files, &nfiles); if (rc != SHISA_OK) return rc; for (i = 0; i < nfiles; i++) { rc = _shisa_rm4 (info->path, realm, principal, files[i]); free (files[i]); } free (files); return SHISA_OK; } #endif static int principal_remove (Shisa * dbh, void *state, const char *realm, const char *principal) { Shisa_file *info = state; int rc; if (!_shisa_isdir2 (info->path, realm)) return SHISA_NO_REALM; if (!_shisa_isdir3 (info->path, realm, principal)) return SHISA_NO_PRINCIPAL; rc = remove_keys (dbh, state, realm, principal); if (rc != SHISA_OK) return rc; if (_shisa_rmdir3 (info->path, realm, principal) != 0) return SHISA_REMOVE_PRINCIPAL_ERROR; return SHISA_OK; } /* Remove PRINCIPAL@REALM, or REALM if PRINCIPAL is NULL. Realms must be empty for them to be successfully removed. */ int shisa_file_principal_remove (Shisa * dbh, void *state, const char *realm, const char *principal) { int rc; if (principal == NULL) rc = realm_remove (dbh, state, realm); else rc = principal_remove (dbh, state, realm, principal); return rc; } static int read_key (Shisa * dbh, Shisa_file * info, const char *realm, const char *principal, const char *keyfile, Shisa_key ** key) { Shisa_key tmpkey; FILE *fh; char *file; size_t passwdlen; char junk; int rc; asprintf (&file, "keys/%s", keyfile); fh = _shisa_fopen4 (info->path, realm, principal, file, "r"); free (file); if (!fh) return SHISA_NO_KEY; memset (&tmpkey, 0, sizeof (tmpkey)); rc = fscanf (fh, "%" PRIi32 " %zu %zu %zu %zu %d", &tmpkey.etype, &tmpkey.keylen, &tmpkey.saltlen, &tmpkey.str2keyparamlen, &passwdlen, &tmpkey.priority); if (rc != 5 && rc != 6) return SHISA_NO_KEY; if (rc == 5) tmpkey.priority = 0; if (rc == 6) /* We can't include '\n' in scanf format above, because any whitespace on the next line will be skipped. */ if (fread (&junk, 1, 1, fh) != 1 || junk != '\n') return SHISA_NO_KEY; if (tmpkey.keylen > 0) { tmpkey.key = xmalloc (tmpkey.keylen + 1); if (fread (tmpkey.key, 1, tmpkey.keylen, fh) != tmpkey.keylen) return SHISA_NO_KEY; tmpkey.key[tmpkey.keylen] = '\0'; } if (tmpkey.saltlen > 0) { tmpkey.salt = xmalloc (tmpkey.saltlen + 1); if (fread (tmpkey.salt, 1, tmpkey.saltlen, fh) != tmpkey.saltlen) return SHISA_NO_KEY; tmpkey.salt[tmpkey.saltlen] = '\0'; } if (tmpkey.str2keyparamlen > 0) { tmpkey.str2keyparam = xmalloc (tmpkey.str2keyparamlen + 1); if (fread (tmpkey.str2keyparam, 1, tmpkey.str2keyparamlen, fh) != tmpkey.str2keyparamlen) return SHISA_NO_KEY; tmpkey.str2keyparam[tmpkey.str2keyparamlen] = '\0'; } if (passwdlen > 0) { tmpkey.password = xmalloc (passwdlen + 1); if (fread (tmpkey.password, 1, passwdlen, fh) != passwdlen) return SHISA_NO_KEY; tmpkey.password[passwdlen] = '\0'; } rc = fclose (fh); if (rc != 0) { perror (keyfile); return SHISA_NO_KEY; } *key = xmalloc (sizeof (**key)); memcpy (*key, &tmpkey, sizeof (tmpkey)); return SHISA_OK; } static int key_match (const Shisa_key * hint, Shisa_key * key) { int ok = 1; if (hint->kvno) ok = ok && hint->kvno == key->kvno; if (hint->etype) ok = ok && hint->etype == key->etype; if (hint->keylen) ok = ok && hint->keylen == key->keylen && memcmp (hint->key, key->key, key->keylen) == 0; if (hint->saltlen) ok = ok && hint->saltlen == key->saltlen && memcmp (hint->salt, key->salt, key->saltlen) == 0; if (hint->str2keyparamlen) ok = ok && hint->str2keyparamlen == key->str2keyparamlen && memcmp (hint->str2keyparam, key->str2keyparam, key->str2keyparamlen) == 0; if (hint->password) ok = ok && strcmp (hint->password, key->password) == 0; return ok; } /* Get all keys matching HINT for specified PRINCIPAL@REALM. The caller must deallocate the returned keys. If HINT is NULL, then all keys are returned. */ int shisa_file_keys_find (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * hint, Shisa_key *** keys, size_t *nkeys) { Shisa_file *info = state; Shisa_key *tmpkey; char **files; size_t nfiles, matched = 0; size_t i; int rc; files = NULL; nfiles = 0; rc = _shisa_ls4 (info->path, realm, principal, "keys", &files, &nfiles); if (rc != SHISA_OK) return SHISA_ENUMERATE_KEY_ERROR; if (nkeys) *nkeys = nfiles; if (keys) *keys = xmalloc (nfiles * sizeof (**keys)); for (i = 0; i < nfiles; i++) { if (rc == SHISA_OK && (rc = read_key (dbh, info, realm, principal, files[i], &tmpkey)) == SHISA_OK) { if (hint == NULL || key_match (hint, tmpkey)) { if (keys) (*keys)[matched] = tmpkey; matched++; } else shisa_key_free (dbh, tmpkey); } free (files[i]); } if (nfiles > 0) free (files); if (nkeys) *nkeys = matched; return rc; } /* Add key for PRINCIPAL@REALM. */ int shisa_file_key_add (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key) { Shisa_file *info = state; size_t passwdlen = key && key->password ? strlen (key->password) : 0; char *file = NULL; size_t num = 0; FILE *fh; if (!key) return SHISA_NO_KEY; if (!_shisa_isdir4 (info->path, realm, principal, "keys") && _shisa_mkdir4 (info->path, realm, principal, "keys")) return SHISA_NO_KEY; do { free (file); asprintf (&file, "keys/%" PRIu32 "-%d-%lu.key", key->kvno, key->etype, num++); } while (_shisa_isfile4 (info->path, realm, principal, file)); fh = _shisa_fopen4 (info->path, realm, principal, file, "w"); free (file); if (!fh) { perror (file); return SHISA_ADD_KEY_ERROR; } fprintf (fh, "%" PRIi32 " %zu %zu %zu %zu %d\n", key->etype, key->keylen, key->saltlen, key->str2keyparamlen, passwdlen, key->priority); if (key->keylen > 0) fwrite (key->key, 1, key->keylen, fh); if (key->saltlen > 0) fwrite (key->salt, 1, key->saltlen, fh); if (key->str2keyparamlen > 0) fwrite (key->str2keyparam, 1, key->str2keyparamlen, fh); if (passwdlen > 0) fwrite (key->password, 1, passwdlen, fh); fclose (fh); return SHISA_OK; } /* Update a key for PRINCIPAL@REALM. The OLDKEY must uniquely determine the key to update, i.e., shishi_keys_find using OLDKEY as HINT must return exactly 1 key. */ int shisa_file_key_update (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * oldkey, const Shisa_key * newkey) { return SHISA_NO_KEY; } /* Remove a key for PRINCIPAL@REALM. The KEY must uniquely determine the key to remove, i.e., shishi_keys_find using KEY as HINT must return exactly 1 key. */ int shisa_file_key_remove (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key) { Shisa_file *info = state; Shisa_key *tmpkey; char **files; size_t nfiles; size_t i; int rc; char *found = NULL; files = NULL; nfiles = 0; rc = _shisa_ls4 (info->path, realm, principal, "keys", &files, &nfiles); if (rc != SHISA_OK) return rc; for (i = 0; i < nfiles; i++) { if (rc == SHISA_OK && (rc = read_key (dbh, info, realm, principal, files[i], &tmpkey)) == SHISA_OK) { if (key == NULL || key_match (key, tmpkey)) { if (found) { free (found); rc = SHISA_MULTIPLE_KEY_MATCH; } else found = xstrdup (files[i]); } shisa_key_free (dbh, tmpkey); } free (files[i]); } if (nfiles > 0) free (files); if (rc != SHISA_OK) return rc; if (!found) return SHISA_NO_KEY; rc = _shisa_rm5 (info->path, realm, principal, "keys", found); free (found); return rc; } shishi-1.0.3/db/file.h0000644000000000000000000001032614273601533011354 00000000000000/* file.h --- Prototypes for file based Shisa database. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /*************************************************** Initializor/destructor. */ /* Initialize file backend, i.e., parse options and check if file root exists and allocate backend handle. */ extern int shisa_file_init (Shisa * dbh, const char *location, const char *options, void **state); /* Destroy backend handle. */ extern void shisa_file_done (Shisa * dbh, void *state); /************************************************************** Enumerators. */ /* Return a list of all realm names in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ extern int shisa_file_enumerate_realms (Shisa * dbh, void *state, char ***realms, size_t *nrealms); /* Return a list of all principals in realm in backend, as zero-terminated UTF-8 strings. The caller must deallocate the strings. */ extern int shisa_file_enumerate_principals (Shisa * dbh, void *state, const char *realm, char ***principals, size_t *nprincipals); /**************************************** Functions operating on principals. */ /* Return information about specified PRINCIPAL@REALM. Can also be used check existence of principal entry, with a NULL PH. */ extern int shisa_file_principal_find (Shisa * dbh, void *state, const char *realm, const char *principal, Shisa_principal * ph); /* Add new PRINCIPAL@REALM with specified information and key. If PRINCIPAL is NULL, then add realm REALM. */ extern int shisa_file_principal_add (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key); /* Modify information for specified PRINCIPAL@REALM. */ extern int shisa_file_principal_update (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_principal * ph); /* Remove PRINCIPAL@REALM, or REALM if PRINCIPAL is NULL. Realms must be empty for them to be successfully removed. */ extern int shisa_file_principal_remove (Shisa * dbh, void *state, const char *realm, const char *principal); /********************************************** Functions operating on keys. */ /* Get all keys matching HINT for specified PRINCIPAL@REALM. The caller must deallocate the returned keys. If HINT is NULL, then all keys are returned. */ extern int shisa_file_keys_find (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * hint, Shisa_key *** keys, size_t *nkeys); /* Add key for PRINCIPAL@REALM. */ extern int shisa_file_key_add (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key); /* Update a key for PRINCIPAL@REALM. The OLDKEY must uniquely determine the key to update, i.e., shishi_keys_find using OLDKEY as HINT must return exactly 1 key. */ extern int shisa_file_key_update (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * oldkey, const Shisa_key * newkey); /* Remove a key for PRINCIPAL@REALM. The KEY must uniquely determine the key to remove, i.e., shishi_keys_find using KEY as HINT must return exactly 1 key. */ extern int shisa_file_key_remove (Shisa * dbh, void *state, const char *realm, const char *principal, const Shisa_key * key); shishi-1.0.3/db/core.c0000644000000000000000000003352614273601533011367 00000000000000/* core.c --- Core Shisa database API. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" /** * shisa_enumerate_realms: * @dbh: Shisa library handle created by shisa(). * @realms: Returned pointer to a newly allocated array of also * allocated and null-terminated UTF-8 strings with realm names. * @nrealms: Pointer to a number which is updated with the number * of just allocated and returned realm strings. * * Extracts a list of all realm names in backend, as null-terminated * UTF-8 strings. The caller is responsible for deallocating all * strings as well as the array *@realms. * * Return value: Returns %SHISA_OK on success, or an error code. **/ int shisa_enumerate_realms (Shisa * dbh, char ***realms, size_t *nrealms) { _Shisa_db *db; size_t i; int rc; *nrealms = 0; if (realms) *realms = NULL; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->enumerate_realms (dbh, db->state, realms, nrealms); if (rc != SHISA_OK) /* XXX mem leak. */ return rc; } return SHISA_OK; } /** * shisa_enumerate_principals: * @dbh: Shisa library handle created by shisa(). * @realm: Name of realm, as null-terminated UTF-8 string. * @principals: Returned pointer to newly allocated array of just * allocated null-terminated UTF-8 strings with principal names. * @nprincipals: Pointer to an integer updated with the number of just * allocated and returned principal names. * * Extracts a list of all principal names in backend belonging to * the realm @realm, as null-terminated UTF-8 strings. The caller * is responsible for deallocating all strings and the array * *@principals. * * Return value: Returns %SHISA_OK on success, %SHISA_NO_REALM if the * specified realm does not exist, or an error code otherwise. **/ int shisa_enumerate_principals (Shisa * dbh, const char *realm, char ***principals, size_t *nprincipals) { _Shisa_db *db; size_t i; int rc; *nprincipals = 0; if (principals) *principals = NULL; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->enumerate_principals (dbh, db->state, realm, principals, nprincipals); if (rc != SHISA_OK) /* XXX mem leak. */ return rc; } return SHISA_OK; } /** * shisa_principal_find: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of principal to get information about. * @ph: Pointer to a previously allocated principal structure * where information about the principal is to be stored. * * Extracts information about given the PRINCIPAL@REALM pair * selected by @principal and @realm. * * Return value: Returns %SHISA_OK if successful, %SHISA_NO_REALM if * the indicated realm does not exist, %SHISA_NO_PRINCIPAL if the * indicated principal does not exist, or an error code otherwise. **/ int shisa_principal_find (Shisa * dbh, const char *realm, const char *principal, Shisa_principal * ph) { _Shisa_db *db; size_t i; int rc; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->principal_find (dbh, db->state, realm, principal, ph); if (rc == SHISA_OK || (rc != SHISA_OK && rc != SHISA_NO_PRINCIPAL)) return rc; } return SHISA_NO_PRINCIPAL; } /** * shisa_principal_update: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of principal to get information about. * @ph: Pointer to an existing principal structure containing * information to store in the database. * * Modifies information stored about the given principal * PRINCIPAL@REALM. Note that it is usually a good idea to set * in @ph only the fields that are to be updated. * * It is generally suggested to first call shisa_principal_find(), * to get the current information, then to modify one field and * call shisa_principal_update(). * * Modifying several values is not recommended in general, * as this will 1) overwrite any modifications made to other * fields between the two calls (by other processes) and * 2) will cause all values to be written again, which may * generate more overhead. * * Return value: Returns %SHISA_OK if successful, %SHISA_NO_REALM if * the indicated realm does not exist, %SHISA_NO_PRINCIPAL if the * indicated principal does not exist, or an error code otherwise. **/ int shisa_principal_update (Shisa * dbh, const char *realm, const char *principal, const Shisa_principal * ph) { _Shisa_db *db; size_t i; int rc; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { /* XXX ignore read-only backends. */ rc = db->backend->principal_update (dbh, db->state, realm, principal, ph); /* XXX ignore error and continue for ignore-error backends. */ return rc; } return SHISA_ADD_PRINCIPAL_ERROR; } /** * shisa_principal_add: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of principal to add. When set to %NULL, * only the realm @realm is created. * @ph: Pointer to a principal structure with information to store * in the database. * @key: Pointer to a key structure with information to store in * the database. * * Inserts the given information into the database for the * principal PRINCIPAL@REALM. In case @principal is %NULL, * the parameters @ph and @key are not used, so only the realm * is added to the database. * * Return value: Returns %SHISA_OK if the information was * successfully added, or an error code otherwise. **/ int shisa_principal_add (Shisa * dbh, const char *realm, const char *principal, const Shisa_principal * ph, const Shisa_key * key) { _Shisa_db *db; size_t i; int rc; if (realm == NULL) return SHISA_NO_REALM; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { /* XXX ignore read-only backends. */ rc = db->backend->principal_add (dbh, db->state, realm, principal, ph, key); /* XXX ignore error and continue for ignore-error backends. */ return rc; } return SHISA_ADD_PRINCIPAL_ERROR; } /** * shisa_principal_remove: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of the principal to remove. Set to %NULL, * only the realm @realm is removed. * * Removes all information stored in the database for the given * principal PRINCIPAL@REALM. When @principal is %NULL, then the * realm @realm is itself removed, but this can only succeed if * the realm is already empty of principals. * * Return value: Returns %SHISA_OK if successful, or an error code. **/ int shisa_principal_remove (Shisa * dbh, const char *realm, const char *principal) { _Shisa_db *db; size_t i; int rc; if (realm == NULL) return SHISA_NO_REALM; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { /* XXX ignore read-only backends. */ rc = db->backend->principal_remove (dbh, db->state, realm, principal); /* XXX ignore error and continue for ignore-error backends. */ return rc; } return SHISA_REMOVE_PRINCIPAL_ERROR; } /** * shisa_keys_find: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of the principal whose keys are examined. * @hint: Pointer to a Shisa key structure with hints on matching * criteria for relevant keys. %NULL matches all keys. * @keys: Returned pointer to a newly allocated array of Shisa * key structures. * @nkeys: Pointer to an integer updated with the number of * allocated Shisa key structures in *@keys. * * Iterates through the set of keys belonging to PRINCIPAL@REALM, * as selected by @principal and @realm. Then extracts any keys * that match the criteria in @hint. * * Not all elements of @hint need to be filled in. Set only * the fields you are interested in. For example, if you want * to extract all keys of etype 3, i.e., DES-CBC-MD5, then set * the field @key->etype to 3, and all other fields to zero. * * Return value: Returns %SHISA_OK if successful, or an error code. **/ int shisa_keys_find (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * hint, Shisa_key *** keys, size_t *nkeys) { _Shisa_db *db; size_t i; int rc; *nkeys = 0; if (keys) *keys = NULL; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->keys_find (dbh, db->state, realm, principal, hint, keys, nkeys); if (rc != SHISA_OK) /* XXX mem leak. */ return rc; } return SHISA_OK; } /** * shisa_key_add: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of the principal to add a new key for. * @key: Pointer to a Shisa key structure with the new key. * * Adds a complete key @key to the database entry belonging * to the principal PRINCIPAL@REALM, as set by @principal and @realm. * * Return value: Returns %SHISA_OK if successful, or an error code. **/ int shisa_key_add (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * key) { _Shisa_db *db; size_t i; int rc; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->key_add (dbh, db->state, realm, principal, key); if (rc != SHISA_OK) return rc; } return SHISA_OK; } /** * shisa_key_update: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of the principal needing an updated key. * @oldkey: Pointer to a Shisa key structure giving matching * criteria for locating the key to be updated. * @newkey: Pointer to a complete Shisa key structure, in which * all fields are used for the new key. Note that @oldkey * normally has far fewer fields filled-in. * * Modifies data about a key stored in the database, a key * belonging to the principal selected by @principal and @realm. * First @oldkey is used to locate the key to update, as does * shisa_keys_find(). Then the found key is modified to carry * whatever information is stored in @newkey. * * Not all elements of @oldkey need to be filled out, only * sufficiently many so as to uniquely identify the desired key. * For example, if you want to modify the information stored about * a unique key of etype 3, i.e., DES-CBC-MD5, then set the field * @key->etype to 3, leaving all other fields as zero. * * Return value: Returns %SHISA_OK on success, %SHISA_NO_KEY if no * key could be located, %SHISA_MULTIPLE_KEY_MATCH if more * than a single key matched the given criteria, or an error code * otherwise. **/ int shisa_key_update (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * oldkey, const Shisa_key * newkey) { _Shisa_db *db; size_t i; int rc; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->key_update (dbh, db->state, realm, principal, oldkey, newkey); if (rc != SHISA_OK) return rc; } return SHISA_OK; } /** * shisa_key_remove: * @dbh: Shisa library handle created by shisa(). * @realm: Name of the realm the principal belongs to. * @principal: Name of the principal whose key is to be removed. * @key: Pointer to a Shisa key structure with hints on matching * criteria for the key to select. * * Removes from the Shisa database a key, matching the hints in @key, * for the user PRINCIPAL@REALM. Not all elements of @key need to be * filled in, only those relevant to locate the key uniquely. * * For example, if you want to remove the only key of etype 3, * i.e., DES-CBC-MD5, then set the field @key->etype to 3, and * all other fields to zero. * * Return value: Returns %SHISA_OK on success, %SHISA_NO_KEY if no key * could be located, %SHISA_MULTIPLE_KEY_MATCH if more than one * key matched the given criteria, or an error code otherwise. **/ int shisa_key_remove (Shisa * dbh, const char *realm, const char *principal, const Shisa_key * key) { _Shisa_db *db; size_t i; int rc; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) { rc = db->backend->key_remove (dbh, db->state, realm, principal, key); if (rc != SHISA_OK) return rc; } return SHISA_OK; } /** * shisa_key_free: * @dbh: Shisa library handle created by shisa(). * @key: Pointer to a Shisa key structure to deallocate. * * Deallocates the fields of a Shisa key structure, as well as * the structure itself. **/ void shisa_key_free (Shisa * dbh, Shisa_key * key) { free (key->key); free (key->salt); free (key->str2keyparam); free (key->password); free (key); } /** * shisa_keys_free: * @dbh: Shisa library handle created by shisa(). * @keys: Pointer to an array of Shisa key structures. * @nkeys: Number of key elements in the array @keys. * * Deallocates each key element in the array @keys of Shisa * database keys, using repeated calls to shisa_key_free(). **/ void shisa_keys_free (Shisa * dbh, Shisa_key ** keys, size_t nkeys) { size_t i; for (i = 0; i < nkeys; i++) shisa_key_free (dbh, keys[i]); } shishi-1.0.3/db/setup.c0000644000000000000000000000711114273601533011566 00000000000000/* init.c --- Initialization functions for the Shisa library. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" /** * shisa: * * Initializes the Shisa library. If this function fails, it may * print diagnostic errors to standard error. * * Return value: Returns a Shisa library handle, or %NULL on error. **/ Shisa * shisa (void) { Shisa *dbh; dbh = xcalloc (1, sizeof (*dbh)); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); return dbh; } /** * shisa_done: * @dbh: Shisa handle as allocated by shisa(). * * Deallocates the shisa library handle. The handle must not be used * in calls to any shisa function after the completion of this call. **/ void shisa_done (Shisa * dbh) { _Shisa_db *db; size_t i; for (i = 0, db = dbh->dbs; i < dbh->ndbs; i++, db++) db->backend->done (dbh, db->state); free (dbh->dbs); free (dbh); } /** * shisa_init: * @dbh: Returned pointer to a created Shisa library handle. * * Creates a Shisa library handle, using shisa(), reading the system * configuration file from its default location. The path to the * default system configuration file is decided at compile time * ($sysconfdir/shisa.conf). * * The handle is allocated regardless of return value, the only * exception being %SHISA_INIT_ERROR, which indicates a problem * in allocating the handle. Other error conditions arise while * reading a file. * * Return value: Returns %SHISA_OK, or an error code. The value * %SHISA_INIT_ERROR indicates a failure to create the handle. **/ int shisa_init (Shisa ** dbh) { return shisa_init_with_paths (dbh, NULL); } /** * shisa_init_with_paths: * @dbh: Returned pointer to a created Shisa library handle. * @file: Filename of system configuration, or %NULL. * * Creates a Shisa library handle, using shisa(), but reading * the system configuration file at the location @file, or at * the default location, should @file be %NULL. The path to * the default system configuration file is decided at compile * time ($sysconfdir/shisa.conf). * * The handle is allocated regardless of return value, the only * exception being %SHISA_INIT_ERROR, which indicates a problem * in allocating the handle. Other error conditions arise while * reading a file. * * Return value: Returns %SHISA_OK, or an error code. The value * %SHISA_INIT_ERROR indicates a failure to create the handle. **/ int shisa_init_with_paths (Shisa ** dbh, const char *file) { int rc; if (!dbh || !(*dbh = shisa ())) return SHISA_INIT_ERROR; if (!file) file = shisa_cfg_default_systemfile (*dbh); rc = shisa_cfg_from_file (*dbh, file); if (rc != SHISA_OK && rc != SHISA_CFG_NO_FILE) return rc; if ((*dbh)->ndbs == 0) { rc = shisa_cfg (*dbh, "db file " DEFAULTDBPATH); if (rc != SHISA_OK) return rc; } return SHISA_OK; } shishi-1.0.3/db/fileutil.h0000644000000000000000000000623314273601533012254 00000000000000/* fileutil.h --- Utility prototypes used by file.c. * Copyright (C) 2002-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ /* Get FILE, fopen. */ #include extern int _shisa_isdir (const char *path); extern int _shisa_isdir2 (const char *path1, const char *realm); extern int _shisa_isdir3 (const char *path1, const char *realm, const char *principal); extern int _shisa_isdir4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_mkdir (const char *file); extern int _shisa_mkdir2 (const char *path1, const char *realm); extern int _shisa_mkdir3 (const char *path1, const char *realm, const char *principal); extern int _shisa_mkdir4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_rmdir (const char *file); extern int _shisa_rmdir2 (const char *path1, const char *realm); extern int _shisa_rmdir3 (const char *path1, const char *realm, const char *principal); extern int _shisa_rmdir4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_mtime4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_isfile4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_uint32link4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_ls (const char *path, char ***files, size_t *nfiles); extern int _shisa_ls2 (const char *path, const char *realm, char ***files, size_t *nfiles); extern int _shisa_ls3 (const char *path, const char *realm, const char *principal, char ***files, size_t *nfiles); extern int _shisa_ls4 (const char *path, const char *realm, const char *principal, const char *path4, char ***files, size_t *nfiles); extern int _shisa_lsdir (const char *path, char ***files, size_t *nfiles); extern int _shisa_lsdir2 (const char *path, const char *realm, char ***files, size_t *nfiels); extern int _shisa_rm4 (const char *path1, const char *realm, const char *principal, const char *path4); extern int _shisa_rm5 (const char *path1, const char *path2, const char *path3, const char *path4, const char *path5); extern FILE *_shisa_fopen4 (const char *path1, const char *realm, const char *principal, const char *path4, const char *mode); shishi-1.0.3/db/Makefile.am0000644000000000000000000000324514273602672012327 00000000000000## Process this file with automake to produce Makefile.in # Copyright (C) 2002-2022 Simon Josefsson. # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAG_VISIBILITY) AM_CPPFLAGS = -I$(top_srcdir)/lib/gl -I$(top_builddir)/lib/gl AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\" \ -DSYSTEMCFGFILE=\"$(CONFDIR)/shisa.conf\" \ -DDEFAULTDBPATH=\"$(DBDIR)\" include_HEADERS = shisa.h lib_LTLIBRARIES = libshisa.la libshisa_la_SOURCES = libshisa.map \ shisa.h info.h \ setup.c config.c db.c err.c core.c \ file.c file.h fileutil.h fileutil.c libshisa_la_LIBADD = ../lib/gl/libgnu.la ../lib/libshishi.la \ $(LIB_CLOCK_GETTIME) $(LIBSOCKET) # XXX use different libtool version for this library? libshisa_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -no-undefined if HAVE_LD_VERSION_SCRIPT libshisa_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libshisa.map else libshisa_la_LDFLAGS += -export-symbols-regex '^shisa.*' endif shishi-1.0.3/db/libshisa.map0000644000000000000000000000321514273600463012561 00000000000000# Copyright (C) 2009-2022 Simon Josefsson # # This file is part of Shishi. # # Shishi is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Shishi is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Shishi; if not, see http://www.gnu.org/licenses or write # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. SHISA_0.0 { global: shisa; shisa_cfg; shisa_cfg_db; shisa_cfg_default_systemfile; shisa_cfg_from_file; shisa_done; shisa_enumerate_principals; shisa_enumerate_realms; shisa_file_done; shisa_file_enumerate_principals; shisa_file_enumerate_realms; shisa_file_init; shisa_file_key_add; shisa_file_key_remove; shisa_file_key_update; shisa_file_keys_find; shisa_file_principal_add; shisa_file_principal_find; shisa_file_principal_remove; shisa_file_principal_update; shisa_info; shisa_init; shisa_init_with_paths; shisa_key_add; shisa_key_free; shisa_key_remove; shisa_key_update; shisa_keys_find; shisa_keys_free; shisa_principal_add; shisa_principal_find; shisa_principal_remove; shisa_principal_update; shisa_strerror; local: *; }; shishi-1.0.3/db/db.c0000644000000000000000000000325614273601533011021 00000000000000/* db.c --- Definitions of all Shisa database backends. * Copyright (C) 2003-2022 Simon Josefsson * * This file is part of Shishi. * * Shishi is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Shishi is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Shishi; if not, see http://www.gnu.org/licenses or write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301, USA * */ #include "info.h" /* Get "file" database prototypes. */ #include "file.h" static _Shisa_backend _shisa_backends[] = { {"file", shisa_file_init, shisa_file_done, shisa_file_enumerate_realms, shisa_file_enumerate_principals, shisa_file_principal_find, shisa_file_principal_update, shisa_file_principal_add, shisa_file_principal_remove, shisa_file_keys_find, shisa_file_key_add, shisa_file_key_update, shisa_file_key_remove} }; /* Return structure with function pointers implementing a Shisa backend, given a name (e.g., "file"). */ _Shisa_backend * _shisa_find_backend (const char *name) { size_t i; for (i = 0; i < sizeof (_shisa_backends) / sizeof (_shisa_backends[0]); i++) if (strcmp (name, _shisa_backends[i].name) == 0) return &_shisa_backends[i]; return NULL; }